Skip to content

Commit 1cd1063

Browse files
committed
chore: version bump
1 parent 452f9f9 commit 1cd1063

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
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.1",
3+
"version": "1.9.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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +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`,
2223
[ComponentSizeType.xxs]: `${COMPONENT_SIZE_TYPE_TO_FONT_AND_BLOCK_PADDING_MAP[ComponentSizeType.xxs]} px-9 fw-6 dc__gap-6 mw-48`,
2324
[ComponentSizeType.xs]: `${COMPONENT_SIZE_TYPE_TO_FONT_AND_BLOCK_PADDING_MAP[ComponentSizeType.xs]} px-9 fw-6 dc__gap-6 mw-48`,
2425
[ComponentSizeType.small]: `${COMPONENT_SIZE_TYPE_TO_FONT_AND_BLOCK_PADDING_MAP[ComponentSizeType.small]} px-9 fw-6 dc__gap-8 mw-48`,
@@ -28,6 +29,7 @@ export const BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string>
2829
} as const
2930

3031
export const ICON_BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string> = {
32+
[ComponentSizeType.xxxs]: `p-3`,
3133
[ComponentSizeType.xxs]: 'p-1',
3234
[ComponentSizeType.xs]: 'p-3',
3335
[ComponentSizeType.small]: 'p-5',
@@ -37,6 +39,7 @@ export const ICON_BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], str
3739
} as const
3840

3941
export const BUTTON_SIZE_TO_ICON_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']> = {
42+
[ComponentSizeType.xxxs]: 12,
4043
[ComponentSizeType.xxs]: 14,
4144
[ComponentSizeType.xs]: 14,
4245
[ComponentSizeType.small]: 16,
@@ -46,6 +49,7 @@ export const BUTTON_SIZE_TO_ICON_SIZE_MAP: Record<ButtonProps['size'], Progressi
4649
} as const
4750

4851
export const ICON_BUTTON_SIZE_TO_ICON_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']> = {
52+
[ComponentSizeType.xxxs]: 12,
4953
[ComponentSizeType.xxs]: 16,
5054
[ComponentSizeType.xs]: 16,
5155
[ComponentSizeType.small]: 16,

src/Shared/constants.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ export const ANSI_UP_REGEX = /\x1B\[.*?m/g
424424
* Size variants for components
425425
*/
426426
export enum ComponentSizeType {
427+
xxxs = 'xxxs',
427428
xxs = 'xxs',
428429
xs = 'xs',
429430
small = 'small',
@@ -433,6 +434,7 @@ export enum ComponentSizeType {
433434
}
434435

435436
export const COMPONENT_SIZE_TYPE_TO_FONT_AND_BLOCK_PADDING_MAP: Record<ComponentSizeType, string> = {
437+
[ComponentSizeType.xxxs]: 'py-1 fs-12 lh-20',
436438
[ComponentSizeType.xxs]: 'py-1 fs-12 lh-20',
437439
[ComponentSizeType.xs]: 'py-1 fs-12 lh-20',
438440
[ComponentSizeType.small]: 'py-3 fs-12 lh-20',
@@ -442,6 +444,7 @@ export const COMPONENT_SIZE_TYPE_TO_FONT_AND_BLOCK_PADDING_MAP: Record<Component
442444
} as const
443445

444446
export const COMPONENT_SIZE_TYPE_TO_INLINE_PADDING_MAP: Record<ComponentSizeType, string> = {
447+
[ComponentSizeType.xxxs]: 'px-1',
445448
[ComponentSizeType.xxs]: 'px-5',
446449
[ComponentSizeType.xs]: 'px-5',
447450
[ComponentSizeType.small]: 'px-5',
@@ -451,6 +454,7 @@ export const COMPONENT_SIZE_TYPE_TO_INLINE_PADDING_MAP: Record<ComponentSizeType
451454
} as const
452455

453456
export const COMPONENT_SIZE_TYPE_TO_ICON_SIZE_MAP: Record<ComponentSizeType, number> = {
457+
[ComponentSizeType.xxxs]: 12,
454458
[ComponentSizeType.xxs]: 14,
455459
[ComponentSizeType.xs]: 14,
456460
[ComponentSizeType.small]: 16,

0 commit comments

Comments
 (0)