Skip to content

Commit d1c04ce

Browse files
committed
chore: version bump
1 parent 1cd1063 commit d1c04ce

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.9.2",
3+
"version": "1.9.1-beta-2",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Components/Button/constants.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { ProgressingProps } from '@Common/Types'
1919
import { ButtonProps } from './types'
2020

2121
export const BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string> = {
22-
[ComponentSizeType.xxxs]: `${COMPONENT_SIZE_TYPE_TO_FONT_AND_BLOCK_PADDING_MAP[ComponentSizeType.xxs]} px-9 fw-6 dc__gap-6 mw-48`,
22+
[ComponentSizeType.xxs_small_icon]: `${COMPONENT_SIZE_TYPE_TO_FONT_AND_BLOCK_PADDING_MAP[ComponentSizeType.xxs]} px-9 fw-6 dc__gap-6 mw-48`,
2323
[ComponentSizeType.xxs]: `${COMPONENT_SIZE_TYPE_TO_FONT_AND_BLOCK_PADDING_MAP[ComponentSizeType.xxs]} px-9 fw-6 dc__gap-6 mw-48`,
2424
[ComponentSizeType.xs]: `${COMPONENT_SIZE_TYPE_TO_FONT_AND_BLOCK_PADDING_MAP[ComponentSizeType.xs]} px-9 fw-6 dc__gap-6 mw-48`,
2525
[ComponentSizeType.small]: `${COMPONENT_SIZE_TYPE_TO_FONT_AND_BLOCK_PADDING_MAP[ComponentSizeType.small]} px-9 fw-6 dc__gap-8 mw-48`,
@@ -29,7 +29,7 @@ export const BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string>
2929
} as const
3030

3131
export const ICON_BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string> = {
32-
[ComponentSizeType.xxxs]: `p-3`,
32+
[ComponentSizeType.xxs_small_icon]: 'p-4',
3333
[ComponentSizeType.xxs]: 'p-1',
3434
[ComponentSizeType.xs]: 'p-3',
3535
[ComponentSizeType.small]: 'p-5',
@@ -39,7 +39,7 @@ export const ICON_BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], str
3939
} as const
4040

4141
export const BUTTON_SIZE_TO_ICON_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']> = {
42-
[ComponentSizeType.xxxs]: 12,
42+
[ComponentSizeType.xxs_small_icon]: 12,
4343
[ComponentSizeType.xxs]: 14,
4444
[ComponentSizeType.xs]: 14,
4545
[ComponentSizeType.small]: 16,
@@ -49,7 +49,7 @@ export const BUTTON_SIZE_TO_ICON_SIZE_MAP: Record<ButtonProps['size'], Progressi
4949
} as const
5050

5151
export const ICON_BUTTON_SIZE_TO_ICON_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']> = {
52-
[ComponentSizeType.xxxs]: 12,
52+
[ComponentSizeType.xxs_small_icon]: 12,
5353
[ComponentSizeType.xxs]: 16,
5454
[ComponentSizeType.xs]: 16,
5555
[ComponentSizeType.small]: 16,

src/Shared/constants.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ export const ANSI_UP_REGEX = /\x1B\[.*?m/g
424424
* Size variants for components
425425
*/
426426
export enum ComponentSizeType {
427-
xxxs = 'xxxs',
427+
xxs_small_icon = 'xxs-small-icon',
428428
xxs = 'xxs',
429429
xs = 'xs',
430430
small = 'small',
@@ -434,7 +434,7 @@ export enum ComponentSizeType {
434434
}
435435

436436
export const COMPONENT_SIZE_TYPE_TO_FONT_AND_BLOCK_PADDING_MAP: Record<ComponentSizeType, string> = {
437-
[ComponentSizeType.xxxs]: 'py-1 fs-12 lh-20',
437+
[ComponentSizeType.xxs_small_icon]: 'py-1 fs-12 lh-20',
438438
[ComponentSizeType.xxs]: 'py-1 fs-12 lh-20',
439439
[ComponentSizeType.xs]: 'py-1 fs-12 lh-20',
440440
[ComponentSizeType.small]: 'py-3 fs-12 lh-20',
@@ -444,7 +444,7 @@ export const COMPONENT_SIZE_TYPE_TO_FONT_AND_BLOCK_PADDING_MAP: Record<Component
444444
} as const
445445

446446
export const COMPONENT_SIZE_TYPE_TO_INLINE_PADDING_MAP: Record<ComponentSizeType, string> = {
447-
[ComponentSizeType.xxxs]: 'px-1',
447+
[ComponentSizeType.xxs_small_icon]: 'px-4',
448448
[ComponentSizeType.xxs]: 'px-5',
449449
[ComponentSizeType.xs]: 'px-5',
450450
[ComponentSizeType.small]: 'px-5',
@@ -454,7 +454,7 @@ export const COMPONENT_SIZE_TYPE_TO_INLINE_PADDING_MAP: Record<ComponentSizeType
454454
} as const
455455

456456
export const COMPONENT_SIZE_TYPE_TO_ICON_SIZE_MAP: Record<ComponentSizeType, number> = {
457-
[ComponentSizeType.xxxs]: 12,
457+
[ComponentSizeType.xxs_small_icon]: 12,
458458
[ComponentSizeType.xxs]: 14,
459459
[ComponentSizeType.xs]: 14,
460460
[ComponentSizeType.small]: 16,

0 commit comments

Comments
 (0)