@rovula/ui 0.1.6 → 0.1.8
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/dist/cjs/bundle.css +630 -467
- package/dist/cjs/bundle.js +1545 -1545
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/AlertDialog/AlertDialog.stories.d.ts +3 -0
- package/dist/cjs/types/components/Dialog/Dialog.d.ts +7 -1
- package/dist/cjs/types/components/Dialog/Dialog.stories.d.ts +3 -0
- package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +2 -0
- package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +2 -0
- package/dist/cjs/types/components/Form/Field.d.ts +26 -0
- package/dist/cjs/types/components/Form/FieldMessage.d.ts +7 -0
- package/dist/cjs/types/components/Form/Form.d.ts +49 -11
- package/dist/cjs/types/components/Form/Form.stories.d.ts +23 -0
- package/dist/cjs/types/components/Form/ValidationHintList.d.ts +17 -0
- package/dist/cjs/types/components/Form/ValidationHintList.stories.d.ts +9 -0
- package/dist/cjs/types/components/Form/index.d.ts +10 -0
- package/dist/cjs/types/components/Form/useOptionBridge.d.ts +17 -0
- package/dist/cjs/types/components/OtpInput/OtpInput.d.ts +17 -0
- package/dist/cjs/types/components/OtpInput/OtpInput.stories.d.ts +15 -0
- package/dist/cjs/types/components/OtpInput/OtpInputGroup.d.ts +25 -0
- package/dist/cjs/types/components/OtpInput/index.d.ts +5 -0
- package/dist/cjs/types/components/TextInput/TextInput.styles.d.ts +3 -0
- package/dist/cjs/types/index.d.ts +5 -0
- package/dist/cjs/types/theme/ThemeColorCoverageRuntime.stories.d.ts +10 -0
- package/dist/cjs/types/utils/colors.d.ts +351 -267
- package/dist/components/ActionButton/ActionButton.stories.js +2 -2
- package/dist/components/ActionButton/ActionButton.styles.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.js +6 -6
- package/dist/components/AlertDialog/AlertDialog.stories.js +3 -0
- package/dist/components/Avatar/Avatar.stories.js +1 -1
- package/dist/components/Avatar/Avatar.styles.js +1 -1
- package/dist/components/Avatar/AvatarBase.js +1 -1
- package/dist/components/Avatar/AvatarGroup.stories.js +1 -1
- package/dist/components/Button/Buttons.stories.js +2 -2
- package/dist/components/Calendar/Calendar.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +17 -7
- package/dist/components/Collapsible/Collapsible.styles.js +1 -1
- package/dist/components/DataTable/DataTable.js +2 -2
- package/dist/components/Dialog/Dialog.js +12 -7
- package/dist/components/Dialog/Dialog.stories.js +90 -2
- package/dist/components/Dropdown/Dropdown.js +2 -2
- package/dist/components/DropdownMenu/DropdownMenu.js +3 -3
- package/dist/components/FocusedScrollView/FocusedScrollView.stories.js +6 -6
- package/dist/components/Form/Field.js +60 -0
- package/dist/components/Form/FieldMessage.js +24 -0
- package/dist/components/Form/Form.js +73 -41
- package/dist/components/Form/Form.stories.js +221 -0
- package/dist/components/Form/ValidationHintList.js +30 -0
- package/dist/components/Form/ValidationHintList.stories.js +50 -0
- package/dist/components/Form/index.js +5 -0
- package/dist/components/Form/useOptionBridge.js +27 -0
- package/dist/components/InputFilter/InputFilter.js +5 -4
- package/dist/components/InputFilter/InputFilter.stories.js +1 -1
- package/dist/components/InputFilter/InputFilter.styles.js +14 -1
- package/dist/components/Label/Label.styles.js +1 -1
- package/dist/components/Menu/Menu.js +2 -2
- package/dist/components/NumberInput/NumberInput.stories.js +1 -1
- package/dist/components/OtpInput/OtpInput.js +118 -0
- package/dist/components/OtpInput/OtpInput.stories.js +60 -0
- package/dist/components/OtpInput/OtpInputGroup.js +23 -0
- package/dist/components/OtpInput/index.js +3 -0
- package/dist/components/PasswordInput/PasswordInput.stories.js +1 -1
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +2 -2
- package/dist/components/Search/Search.js +13 -1
- package/dist/components/Search/Search.stories.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider.stories.js +5 -5
- package/dist/components/Switch/Switch.stories.js +2 -2
- package/dist/components/Switch/Switch.styles.js +1 -1
- package/dist/components/Table/Table.js +5 -5
- package/dist/components/Tabs/Tabs.js +12 -9
- package/dist/components/Tabs/Tabs.stories.js +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/Text/Text.stories.js +1 -1
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/TextArea/TextArea.styles.js +3 -3
- package/dist/components/TextInput/TextInput.js +3 -2
- package/dist/components/TextInput/TextInput.stories.js +3 -3
- package/dist/components/TextInput/TextInput.styles.js +41 -19
- package/dist/components/Toast/Toast.js +4 -2
- package/dist/components/Toast/Toast.stories.js +1 -1
- package/dist/components/Toast/Toast.styles.js +4 -4
- package/dist/components/Toast/Toaster.js +2 -2
- package/dist/components/Tree/Tree.stories.js +1 -1
- package/dist/components/Tree/TreeItem.js +1 -1
- package/dist/esm/bundle.css +630 -467
- package/dist/esm/bundle.js +1545 -1545
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/AlertDialog/AlertDialog.stories.d.ts +3 -0
- package/dist/esm/types/components/Dialog/Dialog.d.ts +7 -1
- package/dist/esm/types/components/Dialog/Dialog.stories.d.ts +3 -0
- package/dist/esm/types/components/Dropdown/Dropdown.d.ts +2 -0
- package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +2 -0
- package/dist/esm/types/components/Form/Field.d.ts +26 -0
- package/dist/esm/types/components/Form/FieldMessage.d.ts +7 -0
- package/dist/esm/types/components/Form/Form.d.ts +49 -11
- package/dist/esm/types/components/Form/Form.stories.d.ts +23 -0
- package/dist/esm/types/components/Form/ValidationHintList.d.ts +17 -0
- package/dist/esm/types/components/Form/ValidationHintList.stories.d.ts +9 -0
- package/dist/esm/types/components/Form/index.d.ts +10 -0
- package/dist/esm/types/components/Form/useOptionBridge.d.ts +17 -0
- package/dist/esm/types/components/OtpInput/OtpInput.d.ts +17 -0
- package/dist/esm/types/components/OtpInput/OtpInput.stories.d.ts +15 -0
- package/dist/esm/types/components/OtpInput/OtpInputGroup.d.ts +25 -0
- package/dist/esm/types/components/OtpInput/index.d.ts +5 -0
- package/dist/esm/types/components/TextInput/TextInput.styles.d.ts +3 -0
- package/dist/esm/types/index.d.ts +5 -0
- package/dist/esm/types/theme/ThemeColorCoverageRuntime.stories.d.ts +10 -0
- package/dist/esm/types/utils/colors.d.ts +351 -267
- package/dist/index.d.ts +512 -269
- package/dist/index.js +3 -0
- package/dist/src/theme/global.css +2739 -2681
- package/dist/theme/ThemeColorCoverageRuntime.stories.js +91 -0
- package/dist/utils/colors.js +359 -267
- package/package.json +4 -2
- package/src/components/ActionButton/ActionButton.stories.tsx +6 -6
- package/src/components/ActionButton/ActionButton.styles.ts +1 -1
- package/src/components/AlertDialog/AlertDialog.stories.tsx +22 -0
- package/src/components/AlertDialog/AlertDialog.tsx +6 -6
- package/src/components/Avatar/Avatar.stories.tsx +1 -1
- package/src/components/Avatar/Avatar.styles.ts +1 -1
- package/src/components/Avatar/AvatarBase.tsx +1 -1
- package/src/components/Avatar/AvatarGroup.stories.tsx +1 -1
- package/src/components/Button/Buttons.stories.tsx +25 -17
- package/src/components/Calendar/Calendar.tsx +3 -3
- package/src/components/Checkbox/Checkbox.stories.tsx +35 -12
- package/src/components/Checkbox/Checkbox.tsx +7 -5
- package/src/components/Collapsible/Collapsible.styles.ts +1 -1
- package/src/components/DataTable/DataTable.tsx +2 -2
- package/src/components/Dialog/Dialog.stories.tsx +173 -0
- package/src/components/Dialog/Dialog.tsx +32 -15
- package/src/components/Dropdown/Dropdown.styles.ts +1 -1
- package/src/components/Dropdown/Dropdown.tsx +16 -14
- package/src/components/DropdownMenu/DropdownMenu.tsx +3 -3
- package/src/components/FocusedScrollView/FocusedScrollView.stories.tsx +10 -10
- package/src/components/Form/Field.tsx +160 -0
- package/src/components/Form/FieldMessage.tsx +38 -0
- package/src/components/Form/Form.docs.mdx +67 -0
- package/src/components/Form/Form.stories.tsx +490 -0
- package/src/components/Form/Form.tsx +185 -87
- package/src/components/Form/README.md +284 -0
- package/src/components/Form/ValidationHintList.stories.tsx +118 -0
- package/src/components/Form/ValidationHintList.tsx +82 -0
- package/src/components/Form/index.ts +28 -0
- package/src/components/Form/useOptionBridge.ts +55 -0
- package/src/components/InputFilter/InputFilter.stories.tsx +1 -1
- package/src/components/InputFilter/InputFilter.styles.ts +14 -1
- package/src/components/InputFilter/InputFilter.tsx +33 -28
- package/src/components/Label/Label.styles.ts +2 -2
- package/src/components/Label/Label.tsx +1 -1
- package/src/components/Menu/Menu.tsx +12 -12
- package/src/components/NumberInput/NumberInput.stories.tsx +1 -1
- package/src/components/OtpInput/OtpInput.stories.tsx +168 -0
- package/src/components/OtpInput/OtpInput.tsx +210 -0
- package/src/components/OtpInput/OtpInputGroup.tsx +74 -0
- package/src/components/OtpInput/index.ts +5 -0
- package/src/components/PasswordInput/PasswordInput.stories.tsx +1 -1
- package/src/components/Popover/Popover.tsx +1 -1
- package/src/components/RadioGroup/RadioGroup.stories.tsx +4 -4
- package/src/components/RadioGroup/RadioGroup.tsx +2 -1
- package/src/components/Search/Search.stories.tsx +1 -1
- package/src/components/Search/Search.tsx +6 -2
- package/src/components/Slider/Slider.stories.tsx +7 -7
- package/src/components/Slider/Slider.tsx +1 -1
- package/src/components/Switch/Switch.stories.tsx +4 -4
- package/src/components/Switch/Switch.styles.ts +1 -1
- package/src/components/Table/Table.tsx +5 -5
- package/src/components/Tabs/Tabs.stories.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +29 -18
- package/src/components/Text/Text.stories.tsx +1 -1
- package/src/components/Text/Text.tsx +1 -1
- package/src/components/TextArea/TextArea.stories.tsx +1 -1
- package/src/components/TextArea/TextArea.styles.ts +3 -3
- package/src/components/TextInput/TextInput.stories.tsx +7 -7
- package/src/components/TextInput/TextInput.styles.ts +42 -19
- package/src/components/TextInput/TextInput.tsx +3 -1
- package/src/components/Toast/Toast.stories.tsx +1 -1
- package/src/components/Toast/Toast.styles.tsx +7 -7
- package/src/components/Toast/Toast.tsx +5 -4
- package/src/components/Toast/Toaster.tsx +17 -20
- package/src/components/Tree/Tree.stories.tsx +1 -1
- package/src/components/Tree/TreeItem.tsx +1 -1
- package/src/index.ts +5 -0
- package/src/theme/THEME_MAPPING.md +36 -37
- package/src/theme/ThemeColorCoverageRuntime.stories.tsx +236 -0
- package/src/theme/direct-token-migration-plan.md +121 -0
- package/src/theme/figma-mcp-check-report.md +225 -0
- package/src/theme/figma-mcp-component-checklist.json +1250 -0
- package/src/theme/global.css +7 -3
- package/src/theme/presets/colors.js +173 -64
- package/src/theme/themes/skyller/baseline.css +0 -4
- package/src/theme/themes/variable-mapping.css +1064 -0
- package/src/theme/themes/variable.css +248 -230
- package/src/theme/themes/xspector/baseline.css +0 -4
- package/src/theme/themes/xspector/components/dropdown-menu.css +4 -4
- package/src/theme/themes/xspector/components/loading.css +2 -2
- package/src/theme/tokens/baseline.css +0 -3
- package/src/theme/tokens/color.css +36 -65
- package/src/theme/tokens/components/action-button.css +6 -6
- package/src/theme/tokens/components/button.css +189 -189
- package/src/theme/tokens/components/dropdown-menu.css +5 -5
- package/src/theme/tokens/components/footer.css +1 -1
- package/src/theme/tokens/components/loading.css +2 -2
- package/src/theme/tokens/components/switch.css +11 -11
- package/src/theme/tokens/typography.css +28 -28
- package/src/theme/tokens_old/baseline.css +13 -0
- package/src/theme/tokens_old/color.css +78 -0
- package/src/theme/tokens_old/components/action-button.css +127 -0
- package/src/theme/tokens_old/components/button.css +512 -0
- package/src/theme/tokens_old/components/dropdown-menu.css +27 -0
- package/src/theme/tokens_old/components/footer.css +9 -0
- package/src/theme/tokens_old/components/loading.css +11 -0
- package/src/theme/tokens_old/components/navbar.css +9 -0
- package/src/theme/tokens_old/components/progress-bar.css +8 -0
- package/src/theme/tokens_old/components/switch.css +29 -0
- package/src/theme/tokens_old/typography.css +199 -0
- package/src/theme/tokens_old/variables.css +28 -0
- package/src/theme/utils.js +172 -33
- package/src/utils/colors.ts +367 -278
- package/src/theme/themes/skyller/color.css +0 -79
- package/src/theme/themes/skyller/palette.css +0 -143
- package/src/theme/themes/skyller/state.css +0 -94
- package/src/theme/themes/skyller/transparent.css +0 -94
- package/src/theme/themes/xspector/color.css +0 -83
- package/src/theme/themes/xspector/palette.css +0 -142
- package/src/theme/themes/xspector/state.css +0 -94
- package/src/theme/themes/xspector/transparent.css +0 -93
- /package/src/theme/{tokens → tokens_old}/palette.css +0 -0
- /package/src/theme/{tokens → tokens_old}/state.css +0 -0
- /package/src/theme/{tokens → tokens_old}/transparent.css +0 -0
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
|
|
12
12
|
/* Default State */
|
|
13
13
|
--dropdown-menu-default-bg: transparent;
|
|
14
|
-
--dropdown-menu-default-text:
|
|
14
|
+
--dropdown-menu-default-text: var(--text-g-contrast-high);
|
|
15
15
|
|
|
16
16
|
/* Hover State */
|
|
17
|
-
--dropdown-menu-hover-bg: var(--state-
|
|
18
|
-
--dropdown-menu-hover-text:
|
|
17
|
+
--dropdown-menu-hover-bg: var(--state-primary-hover-bg);
|
|
18
|
+
--dropdown-menu-hover-text: var(--text-g-contrast-high);
|
|
19
19
|
|
|
20
20
|
/* Selected State */
|
|
21
21
|
--dropdown-menu-selected-bg: transparent;
|
|
22
|
-
--dropdown-menu-selected-text:
|
|
22
|
+
--dropdown-menu-selected-text: var(--text-g-contrast-high);
|
|
23
23
|
|
|
24
24
|
/* Disabled State */
|
|
25
25
|
--dropdown-menu-disabled-bg: transparent;
|
|
26
|
-
--dropdown-menu-disabled-text: var(--state-
|
|
26
|
+
--dropdown-menu-disabled-text: var(--state-disable-outline);
|
|
27
27
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* Footer */
|
|
3
3
|
--footer-height: 58px;
|
|
4
4
|
--footer-height-simple: 48px;
|
|
5
|
-
--footer-bg-color: var(--state-
|
|
5
|
+
--footer-bg-color: var(--state-primary-default);
|
|
6
6
|
--footer-text-color: var(--primary-foreground);
|
|
7
7
|
--footer-border-color: var(--primary-foreground);
|
|
8
8
|
--footer-gap: 16px;
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
/* Element: [progress, track] */
|
|
7
7
|
/* ------------------------------------------------------------------ */
|
|
8
8
|
|
|
9
|
-
--loading-process-color: var(--
|
|
10
|
-
--loading-track-color:
|
|
9
|
+
--loading-process-color: var(--brand-rvl-yellow);
|
|
10
|
+
--loading-track-color: var(--transparent-grey-32);
|
|
11
11
|
}
|
|
@@ -7,23 +7,23 @@
|
|
|
7
7
|
/* ------------------------------------------------------------------ */
|
|
8
8
|
|
|
9
9
|
/* Default State */
|
|
10
|
-
--switch-default-color: rgb(from var(--
|
|
11
|
-
--switch-thumb-default-color: var(--
|
|
12
|
-
--switch-thumb-filter: drop-shadow(0
|
|
10
|
+
--switch-default-color: rgb(from var(--ramps-grey-100, #9e9e9e) r g b / 0.32);
|
|
11
|
+
--switch-thumb-default-color: var(--ramps-grey-100, #9e9e9e);
|
|
12
|
+
--switch-thumb-filter: drop-shadow(0 8px 16px #00000014);
|
|
13
13
|
|
|
14
14
|
/* Hover State */
|
|
15
|
-
--switch-hover-color: rgb(from var(--
|
|
16
|
-
--switch-thumb-hover-color: var(--
|
|
15
|
+
--switch-hover-color: rgb(from var(--ramps-grey-80, #b1b1b1) r g b / 0.48);
|
|
16
|
+
--switch-thumb-hover-color: var(--ramps-grey-80, #b1b1b1);
|
|
17
17
|
|
|
18
18
|
/* Active State */
|
|
19
|
-
--switch-active-color: rgb(from var(--state-
|
|
20
|
-
--switch-thumb-active-color: var(--state-
|
|
19
|
+
--switch-active-color: rgb(from var(--state-primary-active) r g b / 0.32);
|
|
20
|
+
--switch-thumb-active-color: var(--state-primary-active, #ddcd00);
|
|
21
21
|
|
|
22
22
|
/* Active Hover State */
|
|
23
|
-
--switch-active-hover-color: rgb(from var(--state-
|
|
24
|
-
--switch-thumb-active-hover-color: var(--state-
|
|
23
|
+
--switch-active-hover-color: rgb(from var(--state-primary-text-hover) r g b / 0.48);
|
|
24
|
+
--switch-thumb-active-hover-color: var(--state-primary-text-hover);
|
|
25
25
|
|
|
26
26
|
/* Disabled State */
|
|
27
|
-
--switch-disabled-color: rgb(from var(--state-
|
|
28
|
-
--switch-thumb-disabled-color: var(--state-
|
|
27
|
+
--switch-disabled-color: rgb(from var(--state-disable-solid) r g b / 0.32);
|
|
28
|
+
--switch-thumb-disabled-color: var(--state-disable-solid, #454f5b);
|
|
29
29
|
}
|
|
@@ -1,195 +1,195 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
/* TYPE */
|
|
3
|
-
--h1-family: "
|
|
3
|
+
--h1-family: "Poppins";
|
|
4
4
|
--h1-size: 64px;
|
|
5
5
|
--h1-size-rem: 4rem;
|
|
6
6
|
--h1-weight: 700;
|
|
7
7
|
--h1-style: normal;
|
|
8
8
|
--h1-line-height: 80px;
|
|
9
9
|
--h1-line-height-rem: 5rem;
|
|
10
|
-
--h2-family: "
|
|
10
|
+
--h2-family: "Poppins";
|
|
11
11
|
--h2-size: 48px;
|
|
12
12
|
--h2-size-rem: 3rem;
|
|
13
13
|
--h2-weight: 700;
|
|
14
14
|
--h2-style: normal;
|
|
15
15
|
--h2-line-height: 60px;
|
|
16
16
|
--h2-line-height-rem: 3.75rem;
|
|
17
|
-
--h3-family: "
|
|
17
|
+
--h3-family: "Poppins";
|
|
18
18
|
--h3-size: 32px;
|
|
19
19
|
--h3-size-rem: 2rem;
|
|
20
20
|
--h3-weight: 700;
|
|
21
21
|
--h3-style: normal;
|
|
22
22
|
--h3-line-height: 48px;
|
|
23
23
|
--h3-line-height-rem: 3rem;
|
|
24
|
-
--h4-family: "
|
|
24
|
+
--h4-family: "Poppins";
|
|
25
25
|
--h4-size: 24px;
|
|
26
26
|
--h4-size-rem: 1.5rem;
|
|
27
27
|
--h4-weight: 700;
|
|
28
28
|
--h4-style: normal;
|
|
29
29
|
--h4-line-height: 32px;
|
|
30
30
|
--h4-line-height-rem: 2rem;
|
|
31
|
-
--h5-family: "
|
|
31
|
+
--h5-family: "Poppins";
|
|
32
32
|
--h5-size: 20px;
|
|
33
33
|
--h5-size-rem: 1.25rem;
|
|
34
34
|
--h5-weight: 700;
|
|
35
35
|
--h5-style: normal;
|
|
36
36
|
--h5-line-height: 28px;
|
|
37
37
|
--h5-line-height-rem: 1.75rem;
|
|
38
|
-
--h6-family: "
|
|
38
|
+
--h6-family: "Poppins";
|
|
39
39
|
--h6-size: 18px;
|
|
40
40
|
--h6-size-rem: 1.125rem;
|
|
41
41
|
--h6-weight: 700;
|
|
42
42
|
--h6-style: normal;
|
|
43
43
|
--h6-line-height: 24px;
|
|
44
44
|
--h6-line-height-rem: 1.5rem;
|
|
45
|
-
--subtitle1-family: "
|
|
45
|
+
--subtitle1-family: "Poppins";
|
|
46
46
|
--subtitle1-size: 16px;
|
|
47
47
|
--subtitle1-size-rem: 1rem;
|
|
48
48
|
--subtitle1-weight: 400;
|
|
49
49
|
--subtitle1-style: normal;
|
|
50
50
|
--subtitle1-line-height: 24px;
|
|
51
51
|
--subtitle1-line-height-rem: 1.5rem;
|
|
52
|
-
--subtitle2-family: "
|
|
52
|
+
--subtitle2-family: "Poppins";
|
|
53
53
|
--subtitle2-size: 16px;
|
|
54
54
|
--subtitle2-size-rem: 1rem;
|
|
55
55
|
--subtitle2-weight: 500;
|
|
56
56
|
--subtitle2-style: normal;
|
|
57
57
|
--subtitle2-line-height: 24px;
|
|
58
58
|
--subtitle2-line-height-rem: 1.5rem;
|
|
59
|
-
--subtitle3-family: "
|
|
59
|
+
--subtitle3-family: "Poppins";
|
|
60
60
|
--subtitle3-size: 16px;
|
|
61
61
|
--subtitle3-size-rem: 1rem;
|
|
62
62
|
--subtitle3-weight: 600;
|
|
63
63
|
--subtitle3-style: normal;
|
|
64
64
|
--subtitle3-line-height: 24px;
|
|
65
65
|
--subtitle3-line-height-rem: 1.5rem;
|
|
66
|
-
--subtitle4-family: "
|
|
66
|
+
--subtitle4-family: "Poppins";
|
|
67
67
|
--subtitle4-size: 14px;
|
|
68
68
|
--subtitle4-size-rem: 0.875rem;
|
|
69
69
|
--subtitle4-weight: 400;
|
|
70
70
|
--subtitle4-style: normal;
|
|
71
71
|
--subtitle4-line-height: 22px;
|
|
72
72
|
--subtitle4-line-height-rem: 1.375rem;
|
|
73
|
-
--subtitle5-family: "
|
|
73
|
+
--subtitle5-family: "Poppins";
|
|
74
74
|
--subtitle5-size: 14px;
|
|
75
75
|
--subtitle5-size-rem: 0.875rem;
|
|
76
76
|
--subtitle5-weight: 500;
|
|
77
77
|
--subtitle5-style: normal;
|
|
78
78
|
--subtitle5-line-height: 22px;
|
|
79
79
|
--subtitle5-line-height-rem: 1.375rem;
|
|
80
|
-
--subtitle6-family: "
|
|
80
|
+
--subtitle6-family: "Poppins";
|
|
81
81
|
--subtitle6-size: 14px;
|
|
82
82
|
--subtitle6-size-rem: 0.875rem;
|
|
83
83
|
--subtitle6-weight: 600;
|
|
84
84
|
--subtitle6-style: normal;
|
|
85
85
|
--subtitle6-line-height: 22px;
|
|
86
86
|
--subtitle6-line-height-rem: 1.375rem;
|
|
87
|
-
--body1-family: "
|
|
87
|
+
--body1-family: "Poppins";
|
|
88
88
|
--body1-size: 16px;
|
|
89
89
|
--body1-size-rem: 1rem;
|
|
90
90
|
--body1-weight: 400;
|
|
91
91
|
--body1-style: normal;
|
|
92
92
|
--body1-line-height: 20px;
|
|
93
93
|
--body1-line-height-rem: 1.25rem;
|
|
94
|
-
--body2-family: "
|
|
94
|
+
--body2-family: "Poppins";
|
|
95
95
|
--body2-size: 16px;
|
|
96
96
|
--body2-size-rem: 1rem;
|
|
97
97
|
--body2-weight: 500;
|
|
98
98
|
--body2-style: normal;
|
|
99
99
|
--body2-line-height: 20px;
|
|
100
100
|
--body2-line-height-rem: 1.25rem;
|
|
101
|
-
--body3-family: "
|
|
101
|
+
--body3-family: "Poppins";
|
|
102
102
|
--body3-size: 14px;
|
|
103
103
|
--body3-size-rem: 0.875rem;
|
|
104
104
|
--body3-weight: 400;
|
|
105
105
|
--body3-style: normal;
|
|
106
106
|
--body3-line-height: 18px;
|
|
107
107
|
--body3-line-height-rem: 1.125rem;
|
|
108
|
-
--body4-family: "
|
|
108
|
+
--body4-family: "Poppins";
|
|
109
109
|
--body4-size: 14px;
|
|
110
110
|
--body4-size-rem: 0.875rem;
|
|
111
111
|
--body4-weight: 500;
|
|
112
112
|
--body4-style: normal;
|
|
113
113
|
--body4-line-height: 18px;
|
|
114
114
|
--body4-line-height-rem: 1.125rem;
|
|
115
|
-
--small1-family: "
|
|
115
|
+
--small1-family: "Poppins";
|
|
116
116
|
--small1-size: 12px;
|
|
117
117
|
--small1-size-rem: 0.75rem;
|
|
118
118
|
--small1-weight: 400;
|
|
119
119
|
--small1-style: normal;
|
|
120
120
|
--small1-line-height: 14px;
|
|
121
121
|
--small1-line-height-rem: 0.875rem;
|
|
122
|
-
--small2-family: "
|
|
122
|
+
--small2-family: "Poppins";
|
|
123
123
|
--small2-size: 12px;
|
|
124
124
|
--small2-size-rem: 0.75rem;
|
|
125
125
|
--small2-weight: 500;
|
|
126
126
|
--small2-style: normal;
|
|
127
127
|
--small2-line-height: 14px;
|
|
128
128
|
--small2-line-height-rem: 0.875rem;
|
|
129
|
-
--small3-family: "
|
|
129
|
+
--small3-family: "Poppins";
|
|
130
130
|
--small3-size: 12px;
|
|
131
131
|
--small3-size-rem: 0.75rem;
|
|
132
132
|
--small3-weight: 600;
|
|
133
133
|
--small3-style: normal;
|
|
134
134
|
--small3-line-height: 14px;
|
|
135
135
|
--small3-line-height-rem: 0.875rem;
|
|
136
|
-
--small4-family: "
|
|
136
|
+
--small4-family: "Poppins";
|
|
137
137
|
--small4-size: 10px;
|
|
138
138
|
--small4-size-rem: 0.625rem;
|
|
139
139
|
--small4-weight: 400;
|
|
140
140
|
--small4-style: normal;
|
|
141
141
|
--small4-line-height: 12px;
|
|
142
142
|
--small4-line-height-rem: 0.75rem;
|
|
143
|
-
--small5-family: "
|
|
143
|
+
--small5-family: "Poppins";
|
|
144
144
|
--small5-size: 10px;
|
|
145
145
|
--small5-size-rem: 0.625rem;
|
|
146
146
|
--small5-weight: 500;
|
|
147
147
|
--small5-style: normal;
|
|
148
148
|
--small5-line-height: 12px;
|
|
149
149
|
--small5-line-height-rem: 0.75rem;
|
|
150
|
-
--small6-family: "
|
|
150
|
+
--small6-family: "Poppins";
|
|
151
151
|
--small6-size: 10px;
|
|
152
152
|
--small6-size-rem: 0.625rem;
|
|
153
153
|
--small6-weight: 600;
|
|
154
154
|
--small6-style: normal;
|
|
155
155
|
--small6-line-height: 12px;
|
|
156
156
|
--small6-line-height-rem: 0.75rem;
|
|
157
|
-
--small7-family: "
|
|
157
|
+
--small7-family: "Poppins";
|
|
158
158
|
--small7-size: 8px;
|
|
159
159
|
--small7-size-rem: 0.5rem;
|
|
160
160
|
--small7-weight: 600;
|
|
161
161
|
--small7-style: normal;
|
|
162
162
|
--small7-line-height: 10px;
|
|
163
163
|
--small7-line-height-rem: 0.625rem;
|
|
164
|
-
--small8-family: "
|
|
164
|
+
--small8-family: "Poppins";
|
|
165
165
|
--small8-size: 8px;
|
|
166
166
|
--small8-size-rem: 0.5rem;
|
|
167
167
|
--small8-weight: 700;
|
|
168
168
|
--small8-style: normal;
|
|
169
169
|
--small8-line-height: 10px;
|
|
170
170
|
--small8-line-height-rem: 0.625rem;
|
|
171
|
-
--label-label1-family: "
|
|
171
|
+
--label-label1-family: "Poppins";
|
|
172
172
|
--label-label1-size: 12px;
|
|
173
173
|
--label-label1-size-rem: 0.75rem;
|
|
174
174
|
--label-label1-weight: 400;
|
|
175
175
|
--label-label1-style: normal;
|
|
176
176
|
--label-label1-line-height: 12px;
|
|
177
177
|
--label-label1-line-height-rem: 0.75rem;
|
|
178
|
-
--label-label2-family: "
|
|
178
|
+
--label-label2-family: "Poppins";
|
|
179
179
|
--label-label2-size: 10px;
|
|
180
180
|
--label-label2-size-rem: 0.625rem;
|
|
181
181
|
--label-label2-weight: 400;
|
|
182
182
|
--label-label2-style: normal;
|
|
183
183
|
--label-label2-line-height: 10px;
|
|
184
184
|
--label-label2-line-height-rem: 0.625rem;
|
|
185
|
-
--button-button-l-family: "
|
|
185
|
+
--button-button-l-family: "Poppins";
|
|
186
186
|
--button-button-l-size: 16px;
|
|
187
187
|
--button-button-l-size-rem: 1rem;
|
|
188
188
|
--button-button-l-weight: 700;
|
|
189
189
|
--button-button-l-style: normal;
|
|
190
190
|
--button-button-l-line-height: 24px;
|
|
191
191
|
--button-button-l-line-height-rem: 1.5rem;
|
|
192
|
-
--button-button-ms-family: "
|
|
192
|
+
--button-button-ms-family: "Poppins";
|
|
193
193
|
--button-button-ms-size: 14px;
|
|
194
194
|
--button-button-ms-size-rem: 0.875rem;
|
|
195
195
|
--button-button-ms-weight: 700;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@import url(palette.css);
|
|
2
|
+
@import url(state.css);
|
|
3
|
+
@import url(color.css);
|
|
4
|
+
@import url(transparent.css);
|
|
5
|
+
@import url(variables.css);
|
|
6
|
+
@import url(typography.css);
|
|
7
|
+
@import url(components/button.css);
|
|
8
|
+
@import url(components/action-button.css);
|
|
9
|
+
@import url(components/loading.css);
|
|
10
|
+
@import url(components/navbar.css);
|
|
11
|
+
@import url(components/footer.css);
|
|
12
|
+
@import url(components/dropdown-menu.css);
|
|
13
|
+
@import url(components/switch.css);
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
|
|
2
|
+
:root {
|
|
3
|
+
/* Base from design */
|
|
4
|
+
--input-color-default-text: #9e9e9e;
|
|
5
|
+
--input-color-default-stroke: #cfcfcf;
|
|
6
|
+
--input-color-filled-text: #4f4f4f;
|
|
7
|
+
--input-color-active-stroke: #9e9e9e;
|
|
8
|
+
--input-color-disable-text: #919eab;
|
|
9
|
+
--input-color-disable-stroke: #e7ebed;
|
|
10
|
+
--input-color-disable-bg: #f2f5f5;
|
|
11
|
+
--input-color-label-bg: #ffffff;/* #2d2e30; */
|
|
12
|
+
--input-color-error: #ed2f15;
|
|
13
|
+
|
|
14
|
+
/* Function button */
|
|
15
|
+
--function-default-solid: #1e3249;
|
|
16
|
+
--function-default-hover: #35475b;
|
|
17
|
+
--function-default-hover-bg: rgba(30 50 73 / 0.08);
|
|
18
|
+
--function-default-stroke: rgba(30 50 73 / 0.48);
|
|
19
|
+
--function-default-icon: #ffffff;
|
|
20
|
+
--function-default-outline-icon: #1e3249;
|
|
21
|
+
--function-active-solid: #9b8f00;
|
|
22
|
+
--function-active-hover: #b1a400;
|
|
23
|
+
--function-active-hover-bg: rgba(221 205 0 / 0.08);
|
|
24
|
+
--function-active-stroke: rgba(177 164 0 / 0.48);
|
|
25
|
+
--function-active-icon: #ffffff;
|
|
26
|
+
|
|
27
|
+
--text-black: #000000;
|
|
28
|
+
--text-dark: #18283a;
|
|
29
|
+
--text-medium: #4b5b6d;
|
|
30
|
+
--text-light: #8e98a4;
|
|
31
|
+
--text-grey-dark: #4f4f4f;
|
|
32
|
+
--text-grey-medium: #7e7e7e;
|
|
33
|
+
--text-grey-light: #9e9e9e;
|
|
34
|
+
--text-white: #ffffff;
|
|
35
|
+
|
|
36
|
+
--base-color-bg: #f5f5f5;
|
|
37
|
+
--base-color-bg2: #f5f5f5;
|
|
38
|
+
--base-color-bg3: #d8d8d8;
|
|
39
|
+
--base-color-workspace-stroke: #e2e2e2;
|
|
40
|
+
--base-color-guideline-stroke: #c5c5c5;
|
|
41
|
+
--base-color-popup: #ffffff;
|
|
42
|
+
--base-color-popup-highlight: #343638;
|
|
43
|
+
--base-color-popup-curtain: rgba(0 0 0 / 0.6);
|
|
44
|
+
--common-white: #ffffff;
|
|
45
|
+
--common-black: #000000;
|
|
46
|
+
|
|
47
|
+
/* ------- Addon base ---------- */
|
|
48
|
+
--background: var(--base-color-bg);
|
|
49
|
+
--foreground: var(--common-black);
|
|
50
|
+
|
|
51
|
+
--primary: var(--primary-ramps-primary-100);
|
|
52
|
+
--secondary: var(--secondary-ramps-secondary-100);
|
|
53
|
+
--tertiary: var(--tertiary-ramps-tertiary-100);
|
|
54
|
+
--info: var(--info-info-100);
|
|
55
|
+
--success: var(--success-success-100);
|
|
56
|
+
--warning: var(--warning-warning-100);
|
|
57
|
+
--error: var(--error-error-100);
|
|
58
|
+
--grey: var(--grey-grey-100);
|
|
59
|
+
--grey2: var(--grey2-grey2-100);
|
|
60
|
+
|
|
61
|
+
--primary-foreground: var(--state-color-primary-text-solid);
|
|
62
|
+
--secondary-foreground: var(--state-color-secondary-text-solid);
|
|
63
|
+
--tertiary-foreground: var(--state-color-tertiary-text-solid);
|
|
64
|
+
--info-foreground: var(--state-color-info-text-solid);
|
|
65
|
+
--success-foreground: var(--state-color-success-text-solid);
|
|
66
|
+
--warning-foreground: var(--state-color-warning-text-solid);
|
|
67
|
+
--error-foreground: var(--state-color-error-text-solid);
|
|
68
|
+
--grey-foreground: var(--common-black);
|
|
69
|
+
--grey2-foreground: var(--common-black);
|
|
70
|
+
|
|
71
|
+
--surface: var(--base-color-bg);
|
|
72
|
+
--surface-foreground: var(--common-black);
|
|
73
|
+
|
|
74
|
+
--primary-foreground: var(--common-white);
|
|
75
|
+
--secondary-foreground: var(--common-white);
|
|
76
|
+
|
|
77
|
+
--base-color-popup-foreground: var(--text-dark);
|
|
78
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* --------------------------------------------------------------------------------- */
|
|
3
|
+
/* Action Button Component Tokens */
|
|
4
|
+
/* --------------------------------------------------------------------------------- */
|
|
5
|
+
/* Naming Convention: --[component]-[mode]-[state]-[property] */
|
|
6
|
+
/* Mone: [solid, outline, icon] */
|
|
7
|
+
/* States: [default, hover, pressed, active, active-pressed active-hover disabled] */
|
|
8
|
+
/* --------------------------------------------------------------------------------- */
|
|
9
|
+
|
|
10
|
+
/* ------------------------------------------------------------------ */
|
|
11
|
+
/* Solid Mode Tokens */
|
|
12
|
+
/* ------------------------------------------------------------------ */
|
|
13
|
+
|
|
14
|
+
/* Default State */
|
|
15
|
+
--action-button-solid-default-bg: var(--function-default-solid);
|
|
16
|
+
--action-button-solid-default-border: var(--function-default-solid);
|
|
17
|
+
--action-button-solid-default-text: var(--function-default-icon);
|
|
18
|
+
|
|
19
|
+
/* Hover State */
|
|
20
|
+
--action-button-solid-hover-bg: var(--function-default-hover);
|
|
21
|
+
--action-button-solid-hover-border: var(--function-default-hover);
|
|
22
|
+
--action-button-solid-hover-text: var(--function-default-icon);
|
|
23
|
+
|
|
24
|
+
/* Pressed State */
|
|
25
|
+
--action-button-solid-pressed-bg: var(--function-default-solid);
|
|
26
|
+
--action-button-solid-pressed-border: var(--function-default-solid);
|
|
27
|
+
--action-button-solid-pressed-text: var(--function-default-icon);
|
|
28
|
+
|
|
29
|
+
/* Active State */
|
|
30
|
+
--action-button-solid-active-bg: var(--function-active-solid);
|
|
31
|
+
--action-button-solid-active-border: var(--function-active-solid);
|
|
32
|
+
--action-button-solid-active-text: var(--function-active-icon);
|
|
33
|
+
|
|
34
|
+
/* Active Hover State */
|
|
35
|
+
--action-button-solid-active-hover-bg: var(--function-active-hover);
|
|
36
|
+
--action-button-solid-active-hover-border: var(--function-active-hover);
|
|
37
|
+
--action-button-solid-active-hover-text: var(--function-active-icon);
|
|
38
|
+
|
|
39
|
+
/* Active Pressed State */
|
|
40
|
+
--action-button-solid-active-pressed-bg: var(--function-active-solid);
|
|
41
|
+
--action-button-solid-active-pressed-border: var(--function-active-solid);
|
|
42
|
+
--action-button-solid-active-pressed-text: var(--function-active-icon);
|
|
43
|
+
|
|
44
|
+
/* Disabled State */
|
|
45
|
+
--action-button-solid-disabled-bg: var(--state-color-disable-solid);
|
|
46
|
+
--action-button-solid-disabled-border: var(--state-color-disable-solid);
|
|
47
|
+
--action-button-solid-disabled-text: var(--state-color-disable-outline);
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
/* ------------------------------------------------------------------ */
|
|
51
|
+
/* Outline Mode Tokens */
|
|
52
|
+
/* ------------------------------------------------------------------ */
|
|
53
|
+
|
|
54
|
+
/* Default State */
|
|
55
|
+
--action-button-outline-default-bg: transparent;
|
|
56
|
+
--action-button-outline-default-border: var(--function-default-stroke);
|
|
57
|
+
--action-button-outline-default-text: var(--function-default-outline-icon);
|
|
58
|
+
|
|
59
|
+
/* Hover State */
|
|
60
|
+
--action-button-outline-hover-bg: var(--function-default-hover-bg);
|
|
61
|
+
--action-button-outline-hover-border: var(--function-default-hover);
|
|
62
|
+
--action-button-outline-hover-text: var(--function-default-hover);
|
|
63
|
+
|
|
64
|
+
/* Pressed State */
|
|
65
|
+
--action-button-outline-pressed-bg: var(--function-default-hover-bg);
|
|
66
|
+
--action-button-outline-pressed-border: var(--function-default-stroke);
|
|
67
|
+
--action-button-outline-pressed-text: var(--function-default-outline-icon);
|
|
68
|
+
|
|
69
|
+
/* Active State */
|
|
70
|
+
--action-button-outline-active-bg: transparent;
|
|
71
|
+
--action-button-outline-active-border: var(--function-active-stroke);
|
|
72
|
+
--action-button-outline-active-text: var(--function-active-solid);
|
|
73
|
+
|
|
74
|
+
/* Active Hover State */
|
|
75
|
+
--action-button-outline-active-hover-bg: var(--function-active-hover-bg);;
|
|
76
|
+
--action-button-outline-active-hover-border: var(--function-active-hover);
|
|
77
|
+
--action-button-outline-active-hover-text: var(--function-active-hover);
|
|
78
|
+
|
|
79
|
+
/* Active Pressed State */
|
|
80
|
+
--action-button-outline-active-pressed-bg: var(--function-active-hover-bg);;
|
|
81
|
+
--action-button-outline-active-pressed-border: var(--function-active-stroke);
|
|
82
|
+
--action-button-outline-active-pressed-text: var(--function-active-solid);
|
|
83
|
+
|
|
84
|
+
/* Disabled State */
|
|
85
|
+
--action-button-outline-disabled-bg: transparent;
|
|
86
|
+
--action-button-outline-disabled-border: var(--state-color-disable-outline);
|
|
87
|
+
--action-button-outline-disabled-text: var(--state-color-disable-outline);
|
|
88
|
+
|
|
89
|
+
/* ------------------------------------------------------------------ */
|
|
90
|
+
/* Icon Mode Tokens */
|
|
91
|
+
/* ------------------------------------------------------------------ */
|
|
92
|
+
|
|
93
|
+
/* Default State */
|
|
94
|
+
--action-button-icon-default-bg: transparent;
|
|
95
|
+
--action-button-icon-default-border: transparent;
|
|
96
|
+
--action-button-icon-default-text: var(--function-default-outline-icon);
|
|
97
|
+
|
|
98
|
+
/* Hover State */
|
|
99
|
+
--action-button-icon-hover-bg: var(--function-default-hover-bg);
|
|
100
|
+
--action-button-icon-hover-border: transparent;
|
|
101
|
+
--action-button-icon-hover-text: var(--function-default-hover);
|
|
102
|
+
|
|
103
|
+
/* Pressed State */
|
|
104
|
+
--action-button-icon-pressed-bg: transparent;
|
|
105
|
+
--action-button-icon-pressed-border: transparent;
|
|
106
|
+
--action-button-icon-pressed-text: var(--function-default-outline-icon);
|
|
107
|
+
|
|
108
|
+
/* Active State */
|
|
109
|
+
--action-button-icon-active-bg: transparent;
|
|
110
|
+
--action-button-icon-active-border: transparent;
|
|
111
|
+
--action-button-icon-active-text: var(--function-active-solid);
|
|
112
|
+
|
|
113
|
+
/* Active Hover State */
|
|
114
|
+
--action-button-icon-active-hover-bg: var(--function-active-hover-bg);
|
|
115
|
+
--action-button-icon-active-hover-border: transparent;
|
|
116
|
+
--action-button-icon-active-hover-text: var(--function-active-hover);
|
|
117
|
+
|
|
118
|
+
/* Active Pressed State */
|
|
119
|
+
--action-button-icon-active-pressed-bg: transparent;
|
|
120
|
+
--action-button-icon-active-pressed-border: transparent;
|
|
121
|
+
--action-button-icon-active-pressed-text: var(--function-active-solid);
|
|
122
|
+
|
|
123
|
+
/* Disabled State */
|
|
124
|
+
--action-button-icon-disabled-bg: transparent;
|
|
125
|
+
--action-button-icon-disabled-border: transparent;
|
|
126
|
+
--action-button-icon-disabled-text: var(--state-color-disable-outline);
|
|
127
|
+
}
|