@altruist03/ui 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/images/noData.webp +0 -0
- package/dist/index.js +15237 -650
- package/dist/index.js.map +1 -1
- package/dist/noData-XPRHKMFR.webp +0 -0
- package/package.json +21 -7
- package/src/ThemeProvider/ThemeContext.tsx +75 -0
- package/src/ThemeProvider/index.ts +7 -0
- package/src/assets/images/noData.webp +0 -0
- package/src/assets.d.ts +10 -0
- package/src/components/Accordion/Accordion.stories.tsx +64 -0
- package/src/components/Accordion/Accordion.tsx +219 -0
- package/src/components/Accordion/Accordion.types.ts +16 -0
- package/src/components/Avatar/Avatar.stories.tsx +304 -0
- package/src/components/Avatar/Avatar.tsx +211 -0
- package/src/components/Avatar/Avatar.types.ts +33 -0
- package/src/components/Badge/Badge.stories.tsx +143 -0
- package/src/components/Badge/Badge.tsx +138 -0
- package/src/components/Badge/Badge.types.ts +24 -0
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +114 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +120 -0
- package/src/components/Breadcrumb/Breadcrumb.types.ts +22 -0
- package/src/components/Button/Button.stories.tsx +457 -0
- package/src/components/Button/Button.tsx +202 -0
- package/src/components/Button/Button.types.ts +18 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +254 -0
- package/src/components/Checkbox/Checkbox.tsx +352 -0
- package/src/components/Checkbox/Checkbox.types.ts +123 -0
- package/src/components/CloseButton/CloseButton.stories.tsx +100 -0
- package/src/components/CloseButton/CloseButton.tsx +117 -0
- package/src/components/CloseButton/CloseButton.types.ts +15 -0
- package/src/components/CollapsibleSearch/CollapsibleSearch.tsx +120 -0
- package/src/components/DataTable/DataTable.stories.tsx +233 -0
- package/src/components/DataTable/DataTable.tsx +968 -0
- package/src/components/DataTable/DataTable.types.ts +49 -0
- package/src/components/DatePicker/DatePicker.stories.tsx +341 -0
- package/src/components/DatePicker/DatePicker.tsx +669 -0
- package/src/components/DatePicker/DatePicker.types.ts +105 -0
- package/src/components/DatePicker/DateTimePicker.tsx +35 -0
- package/src/components/DateRangePicker/DateRangePicker.tsx +179 -0
- package/src/components/DateRangePicker/DateRangePicker.types.ts +34 -0
- package/src/components/Drawer/Drawer.stories.tsx +243 -0
- package/src/components/Drawer/Drawer.tsx +196 -0
- package/src/components/Drawer/Drawer.types.ts +60 -0
- package/src/components/FileUpload/FileUpload.stories.tsx +162 -0
- package/src/components/FileUpload/FileUpload.tsx +216 -0
- package/src/components/FileUpload/FileUpload.types.ts +80 -0
- package/src/components/FilterPopover/FilterPopover.stories.tsx +173 -0
- package/src/components/FilterPopover/FilterPopover.tsx +310 -0
- package/src/components/FilterPopover/FilterPopover.types.ts +26 -0
- package/src/components/ImageViewer/ImageViewerToolbar.jsx +81 -0
- package/src/components/ImageViewer/useImagePanRotate.js +102 -0
- package/src/components/IpWhitelistField/IpWhitelistField.stories.tsx +138 -0
- package/src/components/IpWhitelistField/IpWhitelistField.tsx +164 -0
- package/src/components/IpWhitelistField/IpWhitelistField.types.ts +42 -0
- package/src/components/Loader/Loader.stories.tsx +95 -0
- package/src/components/Loader/Loader.tsx +132 -0
- package/src/components/Loader/Loader.types.ts +6 -0
- package/src/components/Menu/Menu.tsx +143 -0
- package/src/components/Menu/Menu.types.ts +28 -0
- package/src/components/MenuButton/MenuButton.stories.tsx +140 -0
- package/src/components/MenuButton/MenuButton.tsx +45 -0
- package/src/components/MenuButton/MenuButton.types.ts +21 -0
- package/src/components/Modal/Modal.stories.tsx +266 -0
- package/src/components/Modal/Modal.tsx +399 -0
- package/src/components/Modal/index.ts +2 -0
- package/src/components/Modal/types.ts +126 -0
- package/src/components/Pagination/Pagination.stories.tsx +167 -0
- package/src/components/Pagination/Pagination.tsx +266 -0
- package/src/components/Pagination/Pagination.types.ts +20 -0
- package/src/components/PeriodSelector/PeriodSelector.stories.tsx +50 -0
- package/src/components/PeriodSelector/PeriodSelector.tsx +47 -0
- package/src/components/PeriodSelector/PeriodSelector.types.ts +10 -0
- package/src/components/PhoneField/PhoneField.stories.tsx +141 -0
- package/src/components/PhoneField/PhoneField.tsx +284 -0
- package/src/components/PhoneField/PhoneField.types.ts +89 -0
- package/src/components/PhoneField/countryCodes.ts +236 -0
- package/src/components/Progress/Progress.stories.tsx +83 -0
- package/src/components/Progress/Progress.tsx +91 -0
- package/src/components/Progress/Progress.types.ts +22 -0
- package/src/components/RadioButton/RadioButton.stories.tsx +332 -0
- package/src/components/RadioButton/RadioButton.tsx +427 -0
- package/src/components/RadioButton/RadioButton.types.ts +117 -0
- package/src/components/ReportCard/ReportCard.tsx +183 -0
- package/src/components/ReportCard/ReportCard.types.ts +17 -0
- package/src/components/SectionIcon/SectionIcon.tsx +87 -0
- package/src/components/SectionIcon/SectionIcon.types.ts +23 -0
- package/src/components/SegmentedInputField/SegmentedInputField.stories.tsx +165 -0
- package/src/components/SegmentedInputField/SegmentedInputField.tsx +174 -0
- package/src/components/SegmentedInputField/SegmentedInputField.types.ts +51 -0
- package/src/components/SelectScroll/SelectScroll.stories.tsx +336 -0
- package/src/components/SelectScroll/SelectScroll.tsx +1119 -0
- package/src/components/SelectScroll/SelectScroll.types.ts +60 -0
- package/src/components/Selector/Selector.stories.tsx +382 -0
- package/src/components/Selector/Selector.tsx +1310 -0
- package/src/components/Selector/Selector.types.ts +71 -0
- package/src/components/Skeleton/Skeleton.stories.tsx +133 -0
- package/src/components/Skeleton/Skeleton.tsx +20 -0
- package/src/components/Skeleton/Skeleton.types.ts +3 -0
- package/src/components/Spinner/Spinner.stories.tsx +84 -0
- package/src/components/Spinner/Spinner.tsx +79 -0
- package/src/components/Spinner/Spinner.types.ts +8 -0
- package/src/components/StatCard/StatCard.stories.tsx +125 -0
- package/src/components/StatCard/StatCard.tsx +167 -0
- package/src/components/StatCard/StatCard.types.ts +20 -0
- package/src/components/StatusBadge/StatusBadge.stories.tsx +179 -0
- package/src/components/StatusBadge/StatusBadge.tsx +74 -0
- package/src/components/StatusBadge/StatusBadge.types.ts +23 -0
- package/src/components/Stepper/Stepper.stories.tsx +85 -0
- package/src/components/Stepper/Stepper.tsx +138 -0
- package/src/components/Stepper/Stepper.types.ts +16 -0
- package/src/components/SubTabs/SubTabs.stories.tsx +128 -0
- package/src/components/SubTabs/SubTabs.tsx +279 -0
- package/src/components/SubTabs/SubTabs.types.ts +44 -0
- package/src/components/SummaryCard/SummaryCard.stories.tsx +100 -0
- package/src/components/SummaryCard/SummaryCard.tsx +141 -0
- package/src/components/SummaryCard/SummaryCard.types.ts +22 -0
- package/src/components/Switch/Switch.stories.tsx +59 -0
- package/src/components/Switch/Switch.tsx +217 -0
- package/src/components/Switch/Switch.types.ts +22 -0
- package/src/components/Tabs/Tabs.stories.tsx +178 -0
- package/src/components/Tabs/Tabs.tsx +197 -0
- package/src/components/Tabs/Tabs.types.ts +34 -0
- package/src/components/TextField/TextField.stories.tsx +249 -0
- package/src/components/TextField/TextField.tsx +462 -0
- package/src/components/TextField/TextField.types.ts +141 -0
- package/src/components/Toast/Toast.stories.tsx +237 -0
- package/src/components/Toast/Toast.tsx +246 -0
- package/src/components/Toast/Toast.types.ts +31 -0
- package/src/components/ToggleButton/ToggleButton.stories.tsx +105 -0
- package/src/components/ToggleButton/ToggleButton.tsx +267 -0
- package/src/components/ToggleButton/ToggleButton.types.ts +19 -0
- package/src/components/UploadDropzone/UploadDropzone.jsx +78 -0
- package/src/components/UploadDropzone2/UploadDropzone.stories.tsx +94 -0
- package/src/components/UploadDropzone2/UploadDropzone.tsx +222 -0
- package/src/components/UploadDropzone2/UploadDropzone.types.ts +54 -0
- package/src/components/ViewEditToggle/ViewEditToggle.stories.tsx +40 -0
- package/src/components/ViewEditToggle/ViewEditToggle.tsx +239 -0
- package/src/components/ViewEditToggle/ViewEditToggle.types.ts +27 -0
- package/src/components/index.ts +157 -0
- package/src/icons/ReportDollarIcon.tsx +71 -0
- package/src/icons/index.ts +27 -0
- package/src/index.ts +214 -0
- package/src/storybook/preview.tsx +64 -0
- package/src/theme/index.ts +4 -0
- package/src/theme/types.d.ts +1 -0
- package/src/themes/cpc.ts +4 -0
- package/src/themes/firebird.ts +4 -0
- package/src/tokens/brands/cpc/themes/dark.json +82 -0
- package/src/tokens/brands/cpc/themes/light.json +1 -0
- package/src/tokens/brands/default/brand.json +20 -0
- package/src/tokens/brands/firebird/themes/dark.json +28 -0
- package/src/tokens/brands/firebird/themes/light.json +20 -0
- package/src/tokens/button.ts +24 -0
- package/src/tokens/components/accordion.json +52 -0
- package/src/tokens/components/avatar.json +40 -0
- package/src/tokens/components/badge.json +41 -0
- package/src/tokens/components/breadcrumb.json +13 -0
- package/src/tokens/components/button.json +67 -0
- package/src/tokens/components/card.json +39 -0
- package/src/tokens/components/checkbox.json +64 -0
- package/src/tokens/components/closebutton.json +55 -0
- package/src/tokens/components/datatable.json +40 -0
- package/src/tokens/components/datepicker.json +99 -0
- package/src/tokens/components/drawer.json +23 -0
- package/src/tokens/components/field.json +29 -0
- package/src/tokens/components/fileupload.json +57 -0
- package/src/tokens/components/filterpopover.json +29 -0
- package/src/tokens/components/input.json +31 -0
- package/src/tokens/components/ipwhitelistfield.json +16 -0
- package/src/tokens/components/loader.json +15 -0
- package/src/tokens/components/menu.json +21 -0
- package/src/tokens/components/modal.json +25 -0
- package/src/tokens/components/pagination.json +45 -0
- package/src/tokens/components/phonefield.json +41 -0
- package/src/tokens/components/progress.json +12 -0
- package/src/tokens/components/radio.json +87 -0
- package/src/tokens/components/reportcard.json +17 -0
- package/src/tokens/components/selector.json +87 -0
- package/src/tokens/components/selectscroll.json +65 -0
- package/src/tokens/components/skeleton.json +6 -0
- package/src/tokens/components/stepper.json +38 -0
- package/src/tokens/components/subtabs.json +45 -0
- package/src/tokens/components/switch.json +55 -0
- package/src/tokens/components/tabs.json +38 -0
- package/src/tokens/components/textfield.json +59 -0
- package/src/tokens/components/togglebutton.json +48 -0
- package/src/tokens/components/uploaddropzone.json +61 -0
- package/src/tokens/drawer.ts +37 -0
- package/src/tokens/foundation/breakpoints.json +10 -0
- package/src/tokens/foundation/colors.json +122 -0
- package/src/tokens/foundation/opacity.json +16 -0
- package/src/tokens/foundation/radius.json +14 -0
- package/src/tokens/foundation/size.json +38 -0
- package/src/tokens/foundation/spacing.json +19 -0
- package/src/tokens/foundation/typography.json +43 -0
- package/src/tokens/index.ts +3665 -0
- package/src/tokens/modal.ts +42 -0
- package/src/tokens/semantic/color.json +148 -0
- package/src/tokens/semantic/field.json +28 -0
- package/src/tokens/semantic/opacity.json +5 -0
- package/src/tokens/semantic/size.json +722 -0
- package/src/tokens/semantic/spacing.json +27 -0
- package/src/tokens/semantic/typography.json +87 -0
- package/src/utils/scrollLock.ts +44 -0
- package/dist/index.css +0 -514
- package/dist/index.css.map +0 -1
- package/dist/index.d.ts +0 -289
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"color": {
|
|
3
|
+
"primary": {
|
|
4
|
+
"default": "{colors.gray.600}",
|
|
5
|
+
"hover": "{colors.gray.700}",
|
|
6
|
+
"active": "{colors.gray.800}"
|
|
7
|
+
},
|
|
8
|
+
"border": {
|
|
9
|
+
"default": "{colors.gray.600}",
|
|
10
|
+
"active": "{colors.gray.500}",
|
|
11
|
+
"disabled": "{colors.gray.600}"
|
|
12
|
+
},
|
|
13
|
+
"background": {
|
|
14
|
+
"default": "{colors.gray.900}",
|
|
15
|
+
"secondary": "{colors.gray.800}",
|
|
16
|
+
"tertiary": "{colors.gray.700}",
|
|
17
|
+
"disabled": "{colors.gray.600}",
|
|
18
|
+
"modalHeader": "{colors.gray.800}"
|
|
19
|
+
},
|
|
20
|
+
"text": {
|
|
21
|
+
"primary": "{colors.white}",
|
|
22
|
+
"secondary": "{colors.gray.300}",
|
|
23
|
+
"tertiary": "{colors.gray.400}",
|
|
24
|
+
"disabled": "{colors.gray.500}",
|
|
25
|
+
"inverse": "{colors.gray.900}"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"color": {
|
|
3
|
+
"primary": {
|
|
4
|
+
"default": "{colors.blue.600}",
|
|
5
|
+
"hover": "{colors.blue.700}",
|
|
6
|
+
"active": "{colors.blue.800}"
|
|
7
|
+
},
|
|
8
|
+
"brand": {
|
|
9
|
+
"default": "{colors.brand.gold}",
|
|
10
|
+
"secondary": "{colors.brand.cream}",
|
|
11
|
+
"textDefault": "{colors.brand.goldDark}",
|
|
12
|
+
"textSecondary": "{colors.brand.arabianGulf}"
|
|
13
|
+
},
|
|
14
|
+
"background": {
|
|
15
|
+
"default": "{colors.gray.75}",
|
|
16
|
+
"brandDefault": "{colors.brand.gold}",
|
|
17
|
+
"brandSecondary": "{colors.brand.cream}"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type ButtonVariant = "blue" | "red" | "grey";
|
|
2
|
+
|
|
3
|
+
export type ButtonSize = "sm" | "md" | "lg";
|
|
4
|
+
|
|
5
|
+
export type ButtonShape = "rounded" | "square" | "pill";
|
|
6
|
+
|
|
7
|
+
export interface ButtonColorToken {
|
|
8
|
+
background: string;
|
|
9
|
+
color: string;
|
|
10
|
+
hover: string;
|
|
11
|
+
border?: string;
|
|
12
|
+
/** Optional: override text/icon color on hover */
|
|
13
|
+
hoverTextColor?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ButtonSizeToken {
|
|
17
|
+
width?: string;
|
|
18
|
+
height: string;
|
|
19
|
+
padding: string;
|
|
20
|
+
fontSize: number;
|
|
21
|
+
borderRadius: string;
|
|
22
|
+
/** Space between icon/spinner and label (px). */
|
|
23
|
+
contentGap?: number;
|
|
24
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"accordion": {
|
|
3
|
+
"container": {
|
|
4
|
+
"width": "100%",
|
|
5
|
+
"borderWidth": "{size.1}",
|
|
6
|
+
"borderColor": "{color.border.default}",
|
|
7
|
+
"borderRadius": "{radius.lg}",
|
|
8
|
+
"background": "{color.background.default}"
|
|
9
|
+
},
|
|
10
|
+
"header": {
|
|
11
|
+
"padding": "{spacing.5}",
|
|
12
|
+
"gap": "{spacing.4}",
|
|
13
|
+
"contentGap": "{spacing.4}",
|
|
14
|
+
"defaultBackground": "{color.background.subtle}",
|
|
15
|
+
"hoverBackground": "{color.background.surface}",
|
|
16
|
+
"expandedBackground": "{color.success.light}"
|
|
17
|
+
},
|
|
18
|
+
"statusIcon": {
|
|
19
|
+
"size": "{size.40}",
|
|
20
|
+
"background": "{color.success.default}",
|
|
21
|
+
"color": "{color.text.inverse}",
|
|
22
|
+
"symbol": "✓",
|
|
23
|
+
"fontSize": "{typography.fontSize.2xl}",
|
|
24
|
+
"fontWeight": "{typography.fontWeight.bold}",
|
|
25
|
+
"lineHeight": "{typography.lineHeight.tight}"
|
|
26
|
+
},
|
|
27
|
+
"title": {
|
|
28
|
+
"fontFamily": "{typography.fontFamily.sans}",
|
|
29
|
+
"fontSize": "{typography.fontSize.base}",
|
|
30
|
+
"fontWeight": "{typography.fontWeight.bold}",
|
|
31
|
+
"lineHeight": "{typography.lineHeight.normal}",
|
|
32
|
+
"color": "{color.text.primary}"
|
|
33
|
+
},
|
|
34
|
+
"subtitle": {
|
|
35
|
+
"fontFamily": "{typography.fontFamily.sans}",
|
|
36
|
+
"fontSize": "{typography.fontSize.sm}",
|
|
37
|
+
"fontStyle": "italic",
|
|
38
|
+
"fontWeight": "{typography.fontWeight.medium}",
|
|
39
|
+
"lineHeight": "{typography.lineHeight.normal}",
|
|
40
|
+
"color": "{color.text.secondary}"
|
|
41
|
+
},
|
|
42
|
+
"actionIcon": {
|
|
43
|
+
"size": "{size.24}",
|
|
44
|
+
"color": "{color.success.default}",
|
|
45
|
+
"strokeWidth": "{size.2}"
|
|
46
|
+
},
|
|
47
|
+
"content": {
|
|
48
|
+
"padding": "{spacing.5}",
|
|
49
|
+
"background": "{color.background.default}"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"avatar": {
|
|
3
|
+
"background": "{color.background.secondary}",
|
|
4
|
+
"textColor": "{color.text.primary}",
|
|
5
|
+
"iconColor": "{color.icon.default}",
|
|
6
|
+
"placeholderBackground": "{color.background.tertiary}",
|
|
7
|
+
"placeholderShape": "{color.border.secondary}",
|
|
8
|
+
"shape": {
|
|
9
|
+
"circle": "{radius.full}",
|
|
10
|
+
"square": "{radius.sm}"
|
|
11
|
+
},
|
|
12
|
+
"size": {
|
|
13
|
+
"xs": "{size.avatar.xs.size}",
|
|
14
|
+
"sm": "{size.avatar.sm.size}",
|
|
15
|
+
"md": "{size.avatar.md.size}",
|
|
16
|
+
"lg": "{size.avatar.lg.size}",
|
|
17
|
+
"xl": "{size.avatar.xl.size}",
|
|
18
|
+
"xxl": "{size.avatar.xxl.size}",
|
|
19
|
+
"xxxl": "{size.avatar.xxxl.size}"
|
|
20
|
+
},
|
|
21
|
+
"fontSize": {
|
|
22
|
+
"xs": "{size.avatar.xs.fontSize}",
|
|
23
|
+
"sm": "{size.avatar.sm.fontSize}",
|
|
24
|
+
"md": "{size.avatar.md.fontSize}",
|
|
25
|
+
"lg": "{size.avatar.lg.fontSize}",
|
|
26
|
+
"xl": "{size.avatar.xl.fontSize}",
|
|
27
|
+
"xxl": "{size.avatar.xxl.fontSize}",
|
|
28
|
+
"xxxl": "{size.avatar.xxxl.fontSize}"
|
|
29
|
+
},
|
|
30
|
+
"iconSize": {
|
|
31
|
+
"xs": "{size.avatar.xs.iconSize}",
|
|
32
|
+
"sm": "{size.avatar.sm.iconSize}",
|
|
33
|
+
"md": "{size.avatar.md.iconSize}",
|
|
34
|
+
"lg": "{size.avatar.lg.iconSize}",
|
|
35
|
+
"xl": "{size.avatar.xl.iconSize}",
|
|
36
|
+
"xxl": "{size.avatar.xxl.iconSize}",
|
|
37
|
+
"xxxl": "{size.avatar.xxxl.iconSize}"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"badge": {
|
|
3
|
+
"size": {
|
|
4
|
+
"xs": {
|
|
5
|
+
"height": "{size.20}",
|
|
6
|
+
"padding": "{spacing.xxs} {spacing.1_5}",
|
|
7
|
+
"fontSize": "{typography.fontSize.xs}",
|
|
8
|
+
"borderRadius": "{radius.xl}",
|
|
9
|
+
"removeIconSize": "{typography.fontSize.xs}"
|
|
10
|
+
},
|
|
11
|
+
"sm": {
|
|
12
|
+
"height": "{semantic.size.sm.height}",
|
|
13
|
+
"padding": "{semantic.size.sm.paddingY} {semantic.size.sm.paddingX}",
|
|
14
|
+
"fontSize": "{semantic.size.sm.fontSize}",
|
|
15
|
+
"borderRadius": "{radius.xl}",
|
|
16
|
+
"removeIconSize": "{typography.fontSize.sm}"
|
|
17
|
+
},
|
|
18
|
+
"md": {
|
|
19
|
+
"height": "{semantic.size.md.height}",
|
|
20
|
+
"padding": "{semantic.size.md.paddingY} {semantic.size.md.paddingX}",
|
|
21
|
+
"fontSize": "{semantic.size.md.fontSize}",
|
|
22
|
+
"borderRadius": "{radius.xl}",
|
|
23
|
+
"removeIconSize": "{typography.fontSize.sm}"
|
|
24
|
+
},
|
|
25
|
+
"lg": {
|
|
26
|
+
"height": "{semantic.size.lg.height}",
|
|
27
|
+
"padding": "{semantic.size.lg.paddingY} {semantic.size.lg.paddingX}",
|
|
28
|
+
"fontSize": "{semantic.size.lg.fontSize}",
|
|
29
|
+
"borderRadius": "{radius.xl}",
|
|
30
|
+
"removeIconSize": "{typography.fontSize.base}"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"background": "{color.background.badge}",
|
|
34
|
+
"backgroundWhite": "{colors.white}",
|
|
35
|
+
"color": "{color.text.badge}",
|
|
36
|
+
"removeButtonColor": "{color.text.primary}",
|
|
37
|
+
"removeButtonHoverColor": "{color.text.secondary}",
|
|
38
|
+
"boxShadow": "0 1px 2px rgba(0, 0, 0, 0.05)",
|
|
39
|
+
"borderColor": "{color.border.default}"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"breadcrumb": {
|
|
3
|
+
"itemColor": "{color.text.primary}",
|
|
4
|
+
"currentColor": "{color.text.primary}",
|
|
5
|
+
"separatorColor": "{color.text.primary}",
|
|
6
|
+
"fontFamily": "{typography.fontFamily.sans}",
|
|
7
|
+
"fontSize": "{typography.fontSize.base}",
|
|
8
|
+
"fontWeight": "{typography.fontWeight.normal}",
|
|
9
|
+
"itemFontWeight": "{typography.fontWeight.semibold}",
|
|
10
|
+
"lineHeight": "{typography.lineHeight.md}",
|
|
11
|
+
"gap": "{spacing.2}"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"button": {
|
|
3
|
+
"variant": {
|
|
4
|
+
"blue": {
|
|
5
|
+
"background": "{color.primary.default}",
|
|
6
|
+
"color": "{color.text.inverse}",
|
|
7
|
+
"hover": {
|
|
8
|
+
"background": "{color.primary.hover}",
|
|
9
|
+
"color": "{color.text.inverse}"
|
|
10
|
+
},
|
|
11
|
+
"border": "none"
|
|
12
|
+
},
|
|
13
|
+
"red": {
|
|
14
|
+
"background": "#c82f2f",
|
|
15
|
+
"color": "{color.text.inverse}",
|
|
16
|
+
"hover": {
|
|
17
|
+
"background": "{color.destructive.active}",
|
|
18
|
+
"color": "{color.text.inverse}"
|
|
19
|
+
},
|
|
20
|
+
"border": "none"
|
|
21
|
+
},
|
|
22
|
+
"grey": {
|
|
23
|
+
"background": "{color.neutral.default}",
|
|
24
|
+
"color": "{color.text.primary}",
|
|
25
|
+
"hover": {
|
|
26
|
+
"background": "{color.neutral.hover}",
|
|
27
|
+
"color": "{color.text.primary}"
|
|
28
|
+
},
|
|
29
|
+
"border": "none"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"size": {
|
|
33
|
+
"sm": {
|
|
34
|
+
"height": "{semantic.size.sm.height}",
|
|
35
|
+
"padding": "{semantic.size.sm.paddingY} {semantic.size.sm.paddingX}",
|
|
36
|
+
"fontSize": "{semantic.size.sm.fontSize}",
|
|
37
|
+
"borderRadius": "{radius.md}",
|
|
38
|
+
"contentGap": "{spacing.1_25}"
|
|
39
|
+
},
|
|
40
|
+
"md": {
|
|
41
|
+
"height": "{semantic.size.md.height}",
|
|
42
|
+
"padding": "{semantic.size.md.paddingY} {semantic.size.md.paddingX}",
|
|
43
|
+
"fontSize": "{semantic.size.md.fontSize}",
|
|
44
|
+
"borderRadius": "{radius.md}",
|
|
45
|
+
"contentGap": "{spacing.2}"
|
|
46
|
+
},
|
|
47
|
+
"lg": {
|
|
48
|
+
"height": "{semantic.size.lg.height}",
|
|
49
|
+
"padding": "{semantic.size.lg.paddingY} {semantic.size.lg.paddingX}",
|
|
50
|
+
"fontSize": "{semantic.size.lg.fontSize}",
|
|
51
|
+
"borderRadius": "{radius.md}",
|
|
52
|
+
"contentGap": "{spacing.3}"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"shape": {
|
|
56
|
+
"rounded": "{radius.xl}",
|
|
57
|
+
"square": "{radius.sm}",
|
|
58
|
+
"pill": "{radius.pill}"
|
|
59
|
+
},
|
|
60
|
+
"fontFamily": "{typography.body.medium.fontFamily}",
|
|
61
|
+
"fontWeight": "{typography.label.medium.fontWeight}",
|
|
62
|
+
"lineHeight": "{typography.body.medium.lineHeight}",
|
|
63
|
+
"disabled": {
|
|
64
|
+
"opacity": "0.3"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"card": {
|
|
3
|
+
"background": "{color.background.default}",
|
|
4
|
+
"border": "1px solid {color.border.default}",
|
|
5
|
+
"borderRadius": "{semantic.size.md.radius}",
|
|
6
|
+
"padding": {
|
|
7
|
+
"sm": "{semantic.size.sm.paddingY} {semantic.size.sm.paddingX}",
|
|
8
|
+
"md": "{semantic.size.md.paddingY} {semantic.size.md.paddingX}",
|
|
9
|
+
"lg": "{semantic.size.lg.paddingY} {semantic.size.lg.paddingX}"
|
|
10
|
+
},
|
|
11
|
+
"shadow": {
|
|
12
|
+
"sm": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
13
|
+
"md": "0 4px 6px -1px rgba(0, 0, 0, 0.1)",
|
|
14
|
+
"lg": "0 10px 15px -3px rgba(0, 0, 0, 0.1)"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"statCard": {
|
|
18
|
+
"surfaceBackground": "{color.background.badge}",
|
|
19
|
+
"border": "1px solid {color.border.default}",
|
|
20
|
+
"borderRadius": "{radius.xl}",
|
|
21
|
+
"padding": "{spacing.3} {spacing.4}",
|
|
22
|
+
"gap": "{spacing.3}",
|
|
23
|
+
"iconWell": {
|
|
24
|
+
"size": "{size.34}",
|
|
25
|
+
"borderRadius": "{radius.md}",
|
|
26
|
+
"accentMixPercent": "14"
|
|
27
|
+
},
|
|
28
|
+
"label": {
|
|
29
|
+
"fontSize": "{typography.fontSize.sm}",
|
|
30
|
+
"fontWeight": "{typography.fontWeight.semibold}",
|
|
31
|
+
"color": "{color.text.primary}"
|
|
32
|
+
},
|
|
33
|
+
"value": {
|
|
34
|
+
"fontSize": "{typography.fontSize.lg}",
|
|
35
|
+
"fontWeight": "{typography.fontWeight.bold}",
|
|
36
|
+
"color": "{color.text.description}"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"checkbox": {
|
|
3
|
+
"heading": {
|
|
4
|
+
"fontSize": "{typography.label.medium.fontSize}",
|
|
5
|
+
"fontWeight": "{typography.label.medium.fontWeight}",
|
|
6
|
+
"color": "{color.text.primary}",
|
|
7
|
+
"marginBottom": "{spacing.2}"
|
|
8
|
+
},
|
|
9
|
+
"label": {
|
|
10
|
+
"fontSize": "{typography.body.medium.fontSize}",
|
|
11
|
+
"fontWeight": "{typography.body.medium.fontWeight}",
|
|
12
|
+
"color": {
|
|
13
|
+
"active": "{color.text.primary}",
|
|
14
|
+
"inactive": "{color.text.secondary}"
|
|
15
|
+
},
|
|
16
|
+
"marginLeft": "{spacing.2}"
|
|
17
|
+
},
|
|
18
|
+
"group": {
|
|
19
|
+
"gapHorizontal": "{spacing.4}",
|
|
20
|
+
"gapVertical": "{spacing.3}"
|
|
21
|
+
},
|
|
22
|
+
"checkbox": {
|
|
23
|
+
"size": "18px",
|
|
24
|
+
"borderRadius": "{radius.sm}",
|
|
25
|
+
"color": {
|
|
26
|
+
"active": "{color.checkbox.color.active}",
|
|
27
|
+
"inactive": "{colors.gray.650}"
|
|
28
|
+
},
|
|
29
|
+
"background": {
|
|
30
|
+
"inactive": "{color.background.default}"
|
|
31
|
+
},
|
|
32
|
+
"border": {
|
|
33
|
+
"checked": "{colors.blue.600}"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"size": {
|
|
37
|
+
"sm": {
|
|
38
|
+
"checkboxSize": "{size.16}",
|
|
39
|
+
"borderRadius": "{radius.sm}",
|
|
40
|
+
"labelFontSize": "{typography.body.small.fontSize}",
|
|
41
|
+
"headingFontSize": "{typography.label.medium.fontSize}"
|
|
42
|
+
},
|
|
43
|
+
"md": {
|
|
44
|
+
"checkboxSize": "18px",
|
|
45
|
+
"borderRadius": "{radius.sm}",
|
|
46
|
+
"labelFontSize": "{typography.body.medium.fontSize}",
|
|
47
|
+
"headingFontSize": "{typography.label.medium.fontSize}"
|
|
48
|
+
},
|
|
49
|
+
"lg": {
|
|
50
|
+
"checkboxSize": "{size.20}",
|
|
51
|
+
"borderRadius": "{radius.sm}",
|
|
52
|
+
"labelFontSize": "{typography.body.large.fontSize}",
|
|
53
|
+
"headingFontSize": "{typography.label.medium.fontSize}"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"helper": {
|
|
57
|
+
"textFontSizes": "{typography.body.medium.fontSize}",
|
|
58
|
+
"textFontWeight": "{typography.body.small.fontWeight}",
|
|
59
|
+
"textColor": "{color.icon.caption}",
|
|
60
|
+
"errorColor": "{color.error.default}",
|
|
61
|
+
"marginTop": "{spacing.1}"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"closebutton": {
|
|
3
|
+
"variant": {
|
|
4
|
+
"filled": {
|
|
5
|
+
"background": "{color.background.closeButton}",
|
|
6
|
+
"backgroundWhite": "{colors.white}",
|
|
7
|
+
"color": "{color.icon.default}",
|
|
8
|
+
"hover": {
|
|
9
|
+
"background": "{color.background.tertiary}",
|
|
10
|
+
"backgroundWhite": "{colors.white}",
|
|
11
|
+
"color": "{color.icon.default}"
|
|
12
|
+
},
|
|
13
|
+
"border": "none"
|
|
14
|
+
},
|
|
15
|
+
"outline": {
|
|
16
|
+
"background": "transparent",
|
|
17
|
+
"color": "{color.icon.default}",
|
|
18
|
+
"border": "{color.border.default}",
|
|
19
|
+
"hover": {
|
|
20
|
+
"border": "{color.border.secondary}",
|
|
21
|
+
"color": "{color.icon.secondary}"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"size": {
|
|
26
|
+
"xs": {
|
|
27
|
+
"size": "{size.closebutton.xs.size}",
|
|
28
|
+
"padding": "{size.closebutton.xs.padding}",
|
|
29
|
+
"iconSize": "{size.closebutton.xs.iconSize}",
|
|
30
|
+
"borderRadius": "{size.closebutton.xs.borderRadius}"
|
|
31
|
+
},
|
|
32
|
+
"sm": {
|
|
33
|
+
"size": "{size.closebutton.sm.size}",
|
|
34
|
+
"padding": "{size.closebutton.sm.padding}",
|
|
35
|
+
"iconSize": "{size.closebutton.sm.iconSize}",
|
|
36
|
+
"borderRadius": "{size.closebutton.sm.borderRadius}"
|
|
37
|
+
},
|
|
38
|
+
"md": {
|
|
39
|
+
"size": "{size.closebutton.md.size}",
|
|
40
|
+
"padding": "{size.closebutton.md.padding}",
|
|
41
|
+
"iconSize": "{size.closebutton.md.iconSize}",
|
|
42
|
+
"borderRadius": "{size.closebutton.md.borderRadius}"
|
|
43
|
+
},
|
|
44
|
+
"lg": {
|
|
45
|
+
"size": "{size.closebutton.lg.size}",
|
|
46
|
+
"padding": "{size.closebutton.lg.padding}",
|
|
47
|
+
"iconSize": "{size.closebutton.lg.iconSize}",
|
|
48
|
+
"borderRadius": "{size.closebutton.lg.borderRadius}"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"disabled": {
|
|
52
|
+
"opacity": "0.5"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"datatable": {
|
|
3
|
+
"header": {
|
|
4
|
+
"background": "{color.background.tableHeader}",
|
|
5
|
+
"color": "{color.text.tableHeader}",
|
|
6
|
+
"fontWeight": "{typography.fontWeight.medium}",
|
|
7
|
+
"fontSize": "{typography.fontSize.sm}",
|
|
8
|
+
"padding": "{spacing.4}",
|
|
9
|
+
"borderBottom": "{color.border.default}",
|
|
10
|
+
"borderRight": "{color.border.tableHeaderPartition}"
|
|
11
|
+
},
|
|
12
|
+
"cell": {
|
|
13
|
+
"padding": "{spacing.4}",
|
|
14
|
+
"fontSize": "{typography.fontSize.sm}",
|
|
15
|
+
"color": "{color.text.primary}",
|
|
16
|
+
"borderBottom": "{color.border.default}"
|
|
17
|
+
},
|
|
18
|
+
"row": {
|
|
19
|
+
"background": "{color.background.tableRow}",
|
|
20
|
+
"stripeBackground": "{color.background.tableRowStripe}",
|
|
21
|
+
"hoverBackground": "{color.background.tableRowHover}"
|
|
22
|
+
},
|
|
23
|
+
"skeleton": {
|
|
24
|
+
"baseColor": "{color.background.tertiary}",
|
|
25
|
+
"height": "{spacing.4}",
|
|
26
|
+
"borderRadius": "{radius.md}"
|
|
27
|
+
},
|
|
28
|
+
"emptyState": {
|
|
29
|
+
"color": "{color.text.secondary}",
|
|
30
|
+
"fontSize": "{typography.fontSize.md}"
|
|
31
|
+
},
|
|
32
|
+
"table": {
|
|
33
|
+
"border": "{color.border.tableBorder}"
|
|
34
|
+
},
|
|
35
|
+
"sortIcon": {
|
|
36
|
+
"width": "{typography.fontSize.md}",
|
|
37
|
+
"height": "{typography.fontSize.md}"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"datepicker": {
|
|
3
|
+
"wrapper": {
|
|
4
|
+
"padding": "{semantic.size.md.paddingY} {semantic.size.md.paddingX}",
|
|
5
|
+
"paddingRightIcon": "56px",
|
|
6
|
+
"border": {
|
|
7
|
+
"default": "1px solid {color.border.default}",
|
|
8
|
+
"active": "2px solid {color.border.active}",
|
|
9
|
+
"error": "2px solid {color.error.default}"
|
|
10
|
+
},
|
|
11
|
+
"borderRadius": "{semantic.size.md.radius}",
|
|
12
|
+
"background": "{color.background.default}",
|
|
13
|
+
"backgroundDisabled": "{color.background.disabled}"
|
|
14
|
+
},
|
|
15
|
+
"input": {
|
|
16
|
+
"fontSize": "{semantic.typography.size.md.fontSize}",
|
|
17
|
+
"color": "{color.text.primary}",
|
|
18
|
+
"fontFamily": "{typography.body.medium.fontFamily}"
|
|
19
|
+
},
|
|
20
|
+
"header": {
|
|
21
|
+
"padding": "{spacing.component.xs} {spacing.component.sm}",
|
|
22
|
+
"borderBottom": "1px solid {color.border.default}",
|
|
23
|
+
"fontSize": "{typography.body.small.fontSize}"
|
|
24
|
+
},
|
|
25
|
+
"headerButton": {
|
|
26
|
+
"padding": "2px",
|
|
27
|
+
"fontSize": "{typography.body.large.fontSize}"
|
|
28
|
+
},
|
|
29
|
+
"headerSelect": {
|
|
30
|
+
"padding": "2px 6px",
|
|
31
|
+
"borderRadius": "{radius.md}",
|
|
32
|
+
"border": "1px solid {color.border.default}",
|
|
33
|
+
"background": "{color.background.default}",
|
|
34
|
+
"fontSize": "{typography.body.small.fontSize}"
|
|
35
|
+
},
|
|
36
|
+
"label": {
|
|
37
|
+
"fontSize": "{typography.label.medium.fontSize}",
|
|
38
|
+
"color": "{color.text.primary}",
|
|
39
|
+
"requiredColor": "{color.error.default}"
|
|
40
|
+
},
|
|
41
|
+
"helper": {
|
|
42
|
+
"fontSize": "{typography.body.medium.fontSize}",
|
|
43
|
+
"bgColor": "{color.text.secondary}",
|
|
44
|
+
"color": "{color.text.primary}",
|
|
45
|
+
"errorColor": "{color.error.default}"
|
|
46
|
+
},
|
|
47
|
+
"placeholderColor": "{color.text.tertiary}",
|
|
48
|
+
"calendar": {
|
|
49
|
+
"border": "1px solid {color.border.default}",
|
|
50
|
+
"borderRadius": "{radius.xl}",
|
|
51
|
+
"headerBackground": "{color.background.default}",
|
|
52
|
+
"selectedBackground": "{color.primary.default}",
|
|
53
|
+
"selectedColor": "{color.text.inverse}",
|
|
54
|
+
"hoverBackground": "{color.background.tertiary}",
|
|
55
|
+
"disabledColor": "{color.border.default}"
|
|
56
|
+
},
|
|
57
|
+
"size": {
|
|
58
|
+
"sm": {
|
|
59
|
+
"inputFontSize": "{semantic.typography.size.sm.fontSize}",
|
|
60
|
+
"wrapperBorderRadius": "{semantic.size.sm.radius}",
|
|
61
|
+
"wrapperPadding": "{semantic.size.sm.paddingY} {semantic.size.sm.paddingX}",
|
|
62
|
+
"labelFontSize": "{typography.label.small.fontSize}",
|
|
63
|
+
"wrapperBorder": {
|
|
64
|
+
"default": "1px solid {color.border.default}",
|
|
65
|
+
"active": "2px solid {color.border.active}",
|
|
66
|
+
"error": "2px solid {color.error.default}"
|
|
67
|
+
},
|
|
68
|
+
"wrapperBackground": "{color.background.default}",
|
|
69
|
+
"wrapperBackgroundDisabled": "{color.background.disabled}"
|
|
70
|
+
},
|
|
71
|
+
"md": {
|
|
72
|
+
"inputFontSize": "{semantic.typography.size.md.fontSize}",
|
|
73
|
+
"wrapperBorderRadius": "{semantic.size.md.radius}",
|
|
74
|
+
"wrapperPadding": "{semantic.size.md.paddingY} {semantic.size.md.paddingX}",
|
|
75
|
+
"labelFontSize": "{typography.label.medium.fontSize}",
|
|
76
|
+
"wrapperBorder": {
|
|
77
|
+
"default": "1px solid {color.border.default}",
|
|
78
|
+
"active": "2px solid {color.border.active}",
|
|
79
|
+
"error": "2px solid {color.error.default}"
|
|
80
|
+
},
|
|
81
|
+
"wrapperBackground": "{color.background.default}",
|
|
82
|
+
"wrapperBackgroundDisabled": "{color.background.disabled}"
|
|
83
|
+
},
|
|
84
|
+
"lg": {
|
|
85
|
+
"inputFontSize": "{semantic.typography.size.lg.fontSize}",
|
|
86
|
+
"wrapperBorderRadius": "{semantic.size.lg.radius}",
|
|
87
|
+
"wrapperPadding": "{semantic.size.lg.paddingY} {semantic.size.lg.paddingX}",
|
|
88
|
+
"labelFontSize": "{typography.label.large.fontSize}",
|
|
89
|
+
"wrapperBorder": {
|
|
90
|
+
"default": "1px solid {color.border.default}",
|
|
91
|
+
"active": "2px solid {color.border.active}",
|
|
92
|
+
"error": "2px solid {color.error.default}"
|
|
93
|
+
},
|
|
94
|
+
"wrapperBackground": "{color.background.default}",
|
|
95
|
+
"wrapperBackgroundDisabled": "{color.background.disabled}"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"drawer": {
|
|
3
|
+
"background": "{color.background.dropdown}",
|
|
4
|
+
"backdrop": {
|
|
5
|
+
"background": "{color.background.overlay}",
|
|
6
|
+
"opacityVisible": "1",
|
|
7
|
+
"opacityHidden": "0"
|
|
8
|
+
},
|
|
9
|
+
"radius": "{radius.md}",
|
|
10
|
+
"transitionDuration": "300ms",
|
|
11
|
+
"size": {
|
|
12
|
+
"sm": {
|
|
13
|
+
"width": "{size.550}"
|
|
14
|
+
},
|
|
15
|
+
"md": {
|
|
16
|
+
"width": "800px"
|
|
17
|
+
},
|
|
18
|
+
"lg": {
|
|
19
|
+
"width": "{size.1200}"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"field": {
|
|
3
|
+
"input": {
|
|
4
|
+
"height": "{semantic.field.height}",
|
|
5
|
+
"padding": "{semantic.field.paddingY} {semantic.field.paddingX}",
|
|
6
|
+
"borderRadius": "{semantic.field.borderRadius}",
|
|
7
|
+
"fontSize": "{semantic.field.fontSize}",
|
|
8
|
+
"color": "{semantic.field.color}",
|
|
9
|
+
"background": "{semantic.field.background}",
|
|
10
|
+
"backgroundDisabled": "{semantic.field.backgroundDisabled}",
|
|
11
|
+
|
|
12
|
+
"border": {
|
|
13
|
+
"default": "{semantic.field.border.default}",
|
|
14
|
+
"focus": "{semantic.field.border.focus}",
|
|
15
|
+
"error": "{semantic.field.border.error}"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
"label": {
|
|
20
|
+
"color": "{semantic.field.labelColor}",
|
|
21
|
+
"requiredColor": "{semantic.field.labelRequiredColor}"
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
"helper": {
|
|
25
|
+
"color": "{semantic.field.helperColor}",
|
|
26
|
+
"errorColor": "{semantic.field.helperErrorColor}"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|