@rovula/ui 0.0.21 → 0.0.22
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 +155 -495
- package/dist/cjs/bundle.js +3 -3
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/ActionButton/ActionButton.stories.d.ts +7 -7
- package/dist/cjs/types/components/Button/Button.d.ts +1 -1
- package/dist/cjs/types/components/Button/Button.styles.d.ts +1 -1
- package/dist/cjs/types/components/Button/Buttons.stories.d.ts +13 -13
- package/dist/cjs/types/components/Checkbox/Checkbox.stories.d.ts +60 -60
- package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +64 -64
- package/dist/cjs/types/components/Icon/Icon.d.ts +11 -0
- package/dist/cjs/types/components/Icon/Icon.stories.d.ts +508 -0
- package/dist/cjs/types/components/Icon/Icon.styles.d.ts +4 -0
- package/dist/cjs/types/components/Input/Input.stories.d.ts +115 -115
- package/dist/cjs/types/components/Label/Label.stories.d.ts +51 -51
- package/dist/cjs/types/components/RadioGroup/RadioGroup.stories.d.ts +54 -54
- package/dist/cjs/types/components/Search/Search.stories.d.ts +64 -64
- package/dist/cjs/types/components/Slider/Slider.d.ts +5 -0
- package/dist/cjs/types/components/Slider/Slider.stories.d.ts +303 -0
- package/dist/cjs/types/components/Switch/Switch.d.ts +4 -0
- package/dist/cjs/types/components/Switch/Switch.stories.d.ts +305 -0
- package/dist/cjs/types/components/Table/Table.stories.d.ts +7 -7
- package/dist/cjs/types/components/Tabs/Tabs.d.ts +12 -3
- package/dist/cjs/types/components/Tabs/Tabs.stories.d.ts +18 -0
- package/dist/cjs/types/components/TextInput/TextInput.stories.d.ts +62 -62
- package/dist/cjs/types/components/TextInput/TextInput.styles.d.ts +1 -1
- package/dist/cjs/types/icons/heroIconConfig.d.ts +1 -0
- package/dist/cjs/types/icons/iconConfig.d.ts +2 -0
- package/dist/cjs/types/icons/iconRegistry.d.ts +19 -0
- package/dist/cjs/types/icons/index.d.ts +1 -0
- package/dist/cjs/types/icons/material-icon/outline/ChevronDownIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/CollapseContentIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/ContentCopyIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/ContentPasteIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/DataTableIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/ExpandCircleDownIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/ExpandCircleRightIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/ExpandCircleUpIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/ExpandContentIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/InterestsIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/SaveIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/TableChartIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/index.d.ts +12 -0
- package/dist/cjs/types/icons/material-icon/solid/ChevronDownIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/CollapseContentIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/ContentCopyIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/ContentPasteIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/DataTableIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/ExpandCircleDownIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/ExpandCircleRightIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/ExpandCircleUpIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/ExpandContentIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/InterestsIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/SaveIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/TableChartIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/index.d.ts +12 -0
- package/dist/cjs/types/icons/materialIconConfig.d.ts +1 -0
- package/dist/cjs/types/icons/type.d.ts +8 -0
- package/dist/cjs/types/icons/utils.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +4 -0
- package/dist/components/ActionButton/ActionButton.js +8 -19
- package/dist/components/ActionButton/ActionButton.stories.js +12 -22
- package/dist/components/ActionButton/ActionButton.styles.js +33 -8
- package/dist/components/AlertDialog/Alert.stories.js +5 -16
- package/dist/components/AlertDialog/AlertDialog.js +27 -38
- package/dist/components/Avatar/Avatar.js +7 -8
- package/dist/components/Avatar/Avatar.stories.js +11 -22
- package/dist/components/Avatar/Avatar.styles.js +1 -1
- package/dist/components/Avatar/AvatarBase.js +9 -20
- package/dist/components/Avatar/AvatarGroup.js +9 -10
- package/dist/components/Avatar/AvatarGroup.stories.js +9 -20
- package/dist/components/Button/Button.js +4 -15
- package/dist/components/Button/Button.styles.js +1 -1
- package/dist/components/Button/Buttons.stories.js +18 -29
- package/dist/components/Calendar/Calendar.js +3 -14
- package/dist/components/Calendar/Calendar.stories.js +6 -17
- package/dist/components/Checkbox/Checkbox.js +3 -14
- package/dist/components/Checkbox/Checkbox.stories.js +12 -23
- package/dist/components/Collapsible/Collapsible.js +14 -17
- package/dist/components/Collapsible/Collapsible.stories.js +9 -20
- package/dist/components/Collapsible/Collapsible.styles.js +4 -4
- package/dist/components/Collapsible/CollapsibleContext.js +9 -10
- package/dist/components/DataTable/DataTable.js +25 -26
- package/dist/components/DataTable/DataTable.stories.js +10 -21
- package/dist/components/DatePicker/DatePicker.js +4 -20
- package/dist/components/DatePicker/DatePicker.stories.js +6 -17
- package/dist/components/Dialog/Dialog.js +22 -33
- package/dist/components/Dialog/Dialog.stories.js +8 -19
- package/dist/components/Dropdown/Dropdown.js +26 -37
- package/dist/components/Dropdown/Dropdown.stories.js +36 -55
- package/dist/components/Dropdown/Dropdown.styles.js +3 -3
- package/dist/components/Form/Form.js +26 -87
- package/dist/components/Form/Text.js +2 -3
- package/dist/components/Form/TextInput.js +2 -3
- package/dist/components/Icon/Icon.js +37 -0
- package/dist/components/Icon/Icon.stories.js +356 -0
- package/dist/components/Icon/Icon.styles.js +25 -0
- package/dist/components/Input/Input.js +9 -20
- package/dist/components/Input/Input.stories.js +6 -17
- package/dist/components/Input/Input.styles.js +1 -1
- package/dist/components/Label/Label.js +3 -14
- package/dist/components/Label/Label.stories.js +5 -16
- package/dist/components/Label/Label.styles.js +1 -1
- package/dist/components/Loading/Loading.js +5 -17
- package/dist/components/Loading/Loading.stories.js +6 -17
- package/dist/components/Navbar/Navbar.js +3 -4
- package/dist/components/Navbar/Navbar.stories.js +8 -19
- package/dist/components/Popover/Popover.js +5 -16
- package/dist/components/Popover/Popover.stories.js +5 -16
- package/dist/components/ProgressBar/ProgressBar.js +8 -9
- package/dist/components/ProgressBar/ProgressBar.stories.js +14 -27
- package/dist/components/RadioGroup/RadioGroup.js +6 -17
- package/dist/components/RadioGroup/RadioGroup.stories.js +9 -20
- package/dist/components/Search/Search.js +2 -13
- package/dist/components/Search/Search.stories.js +10 -21
- package/dist/components/Slider/Slider.js +22 -0
- package/dist/components/Slider/Slider.stories.js +33 -0
- package/dist/components/Switch/Switch.js +22 -0
- package/dist/components/Switch/Switch.stories.js +32 -0
- package/dist/components/Table/Datagrid.js +2 -3
- package/dist/components/Table/Table.js +24 -35
- package/dist/components/Table/Table.stories.js +5 -16
- package/dist/components/Tabs/Tabs.js +56 -9
- package/dist/components/Tabs/Tabs.stories.js +13 -24
- package/dist/components/Text/Text.js +3 -4
- package/dist/components/Text/Text.stories.js +12 -23
- package/dist/components/TextInput/TextInput.js +30 -41
- package/dist/components/TextInput/TextInput.stories.js +17 -28
- package/dist/components/TextInput/TextInput.styles.js +7 -7
- package/dist/components/ThemeToggle.js +3 -3
- package/dist/esm/bundle.css +155 -495
- package/dist/esm/bundle.js +3 -3
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/ActionButton/ActionButton.stories.d.ts +7 -7
- package/dist/esm/types/components/Button/Button.d.ts +1 -1
- package/dist/esm/types/components/Button/Button.styles.d.ts +1 -1
- package/dist/esm/types/components/Button/Buttons.stories.d.ts +13 -13
- package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +60 -60
- package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +64 -64
- package/dist/esm/types/components/Icon/Icon.d.ts +11 -0
- package/dist/esm/types/components/Icon/Icon.stories.d.ts +508 -0
- package/dist/esm/types/components/Icon/Icon.styles.d.ts +4 -0
- package/dist/esm/types/components/Input/Input.stories.d.ts +115 -115
- package/dist/esm/types/components/Label/Label.stories.d.ts +51 -51
- package/dist/esm/types/components/RadioGroup/RadioGroup.stories.d.ts +54 -54
- package/dist/esm/types/components/Search/Search.stories.d.ts +64 -64
- package/dist/esm/types/components/Slider/Slider.d.ts +5 -0
- package/dist/esm/types/components/Slider/Slider.stories.d.ts +303 -0
- package/dist/esm/types/components/Switch/Switch.d.ts +4 -0
- package/dist/esm/types/components/Switch/Switch.stories.d.ts +305 -0
- package/dist/esm/types/components/Table/Table.stories.d.ts +7 -7
- package/dist/esm/types/components/Tabs/Tabs.d.ts +12 -3
- package/dist/esm/types/components/Tabs/Tabs.stories.d.ts +18 -0
- package/dist/esm/types/components/TextInput/TextInput.stories.d.ts +62 -62
- package/dist/esm/types/components/TextInput/TextInput.styles.d.ts +1 -1
- package/dist/esm/types/icons/heroIconConfig.d.ts +1 -0
- package/dist/esm/types/icons/iconConfig.d.ts +2 -0
- package/dist/esm/types/icons/iconRegistry.d.ts +19 -0
- package/dist/esm/types/icons/index.d.ts +1 -0
- package/dist/esm/types/icons/material-icon/outline/ChevronDownIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/CollapseContentIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/ContentCopyIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/ContentPasteIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/DataTableIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/ExpandCircleDownIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/ExpandCircleRightIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/ExpandCircleUpIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/ExpandContentIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/InterestsIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/SaveIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/TableChartIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/index.d.ts +12 -0
- package/dist/esm/types/icons/material-icon/solid/ChevronDownIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/CollapseContentIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/ContentCopyIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/ContentPasteIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/DataTableIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/ExpandCircleDownIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/ExpandCircleRightIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/ExpandCircleUpIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/ExpandContentIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/InterestsIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/SaveIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/TableChartIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/index.d.ts +12 -0
- package/dist/esm/types/icons/materialIconConfig.d.ts +1 -0
- package/dist/esm/types/icons/type.d.ts +8 -0
- package/dist/esm/types/icons/utils.d.ts +1 -0
- package/dist/esm/types/index.d.ts +4 -0
- package/dist/icons/heroIconConfig.js +13 -0
- package/dist/icons/iconConfig.js +2 -0
- package/dist/icons/iconRegistry.js +47 -0
- package/dist/icons/index.js +1 -0
- package/dist/icons/material-icon/outline/ChevronDownIcon.js +3 -0
- package/dist/icons/material-icon/outline/CollapseContentIcon.js +3 -0
- package/dist/icons/material-icon/outline/ContentCopyIcon.js +3 -0
- package/dist/icons/material-icon/outline/ContentPasteIcon.js +3 -0
- package/dist/icons/material-icon/outline/DataTableIcon.js +3 -0
- package/dist/icons/material-icon/outline/ExpandCircleDownIcon.js +3 -0
- package/dist/icons/material-icon/outline/ExpandCircleRightIcon.js +3 -0
- package/dist/icons/material-icon/outline/ExpandCircleUpIcon.js +3 -0
- package/dist/icons/material-icon/outline/ExpandContentIcon.js +3 -0
- package/dist/icons/material-icon/outline/InterestsIcon.js +3 -0
- package/dist/icons/material-icon/outline/SaveIcon.js +3 -0
- package/dist/icons/material-icon/outline/TableChartIcon.js +3 -0
- package/dist/icons/material-icon/outline/index.js +12 -0
- package/dist/icons/material-icon/solid/ChevronDownIcon.js +3 -0
- package/dist/icons/material-icon/solid/CollapseContentIcon.js +3 -0
- package/dist/icons/material-icon/solid/ContentCopyIcon.js +3 -0
- package/dist/icons/material-icon/solid/ContentPasteIcon.js +3 -0
- package/dist/icons/material-icon/solid/DataTableIcon.js +3 -0
- package/dist/icons/material-icon/solid/ExpandCircleDownIcon.js +3 -0
- package/dist/icons/material-icon/solid/ExpandCircleRightIcon.js +3 -0
- package/dist/icons/material-icon/solid/ExpandCircleUpIcon.js +3 -0
- package/dist/icons/material-icon/solid/ExpandContentIcon.js +3 -0
- package/dist/icons/material-icon/solid/InterestsIcon.js +3 -0
- package/dist/icons/material-icon/solid/SaveIcon.js +3 -0
- package/dist/icons/material-icon/solid/TableChartIcon.js +3 -0
- package/dist/icons/material-icon/solid/index.js +12 -0
- package/dist/icons/materialIconConfig.js +13 -0
- package/dist/icons/type.js +1 -0
- package/dist/icons/utils.js +6 -0
- package/dist/index.d.ts +30 -4
- package/dist/index.js +4 -0
- package/dist/src/theme/global.css +187 -619
- package/dist/stories/ColorGroupPreview.js +6 -9
- package/dist/stories/ColorPreview.js +1 -2
- package/dist/theme/presets/colors.js +2 -1
- package/dist/utils/cn.js +1 -5
- package/dist/utils/datetime.js +12 -12
- package/package.json +3 -1
- package/src/components/ActionButton/ActionButton.stories.tsx +32 -13
- package/src/components/ActionButton/ActionButton.styles.ts +33 -8
- package/src/components/DataTable/DataTable.tsx +2 -2
- package/src/components/Icon/Icon.stories.tsx +450 -0
- package/src/components/Icon/Icon.styles.ts +26 -0
- package/src/components/Icon/Icon.tsx +67 -0
- package/src/components/Slider/Slider.stories.tsx +47 -0
- package/src/components/Slider/Slider.tsx +32 -0
- package/src/components/Switch/Switch.stories.tsx +46 -0
- package/src/components/Switch/Switch.tsx +32 -0
- package/src/components/Table/Table.tsx +2 -2
- package/src/components/Tabs/Tabs.tsx +99 -12
- package/src/icons/heroIconConfig.ts +23 -0
- package/src/icons/iconConfig.ts +2 -0
- package/src/icons/iconRegistry.ts +76 -0
- package/src/icons/index.ts +1 -0
- package/src/icons/material-icon/outline/ChevronDownIcon.tsx +22 -0
- package/src/icons/material-icon/outline/CollapseContentIcon.tsx +20 -0
- package/src/icons/material-icon/outline/ContentCopyIcon.tsx +20 -0
- package/src/icons/material-icon/outline/ContentPasteIcon.tsx +20 -0
- package/src/icons/material-icon/outline/DataTableIcon.tsx +20 -0
- package/src/icons/material-icon/outline/ExpandCircleDownIcon.tsx +20 -0
- package/src/icons/material-icon/outline/ExpandCircleRightIcon.tsx +20 -0
- package/src/icons/material-icon/outline/ExpandCircleUpIcon.tsx +20 -0
- package/src/icons/material-icon/outline/ExpandContentIcon.tsx +20 -0
- package/src/icons/material-icon/outline/InterestsIcon.tsx +20 -0
- package/src/icons/material-icon/outline/SaveIcon.tsx +20 -0
- package/src/icons/material-icon/outline/TableChartIcon.tsx +20 -0
- package/src/icons/material-icon/outline/index.ts +12 -0
- package/src/icons/material-icon/solid/ChevronDownIcon.tsx +22 -0
- package/src/icons/material-icon/solid/CollapseContentIcon.tsx +20 -0
- package/src/icons/material-icon/solid/ContentCopyIcon.tsx +20 -0
- package/src/icons/material-icon/solid/ContentPasteIcon.tsx +20 -0
- package/src/icons/material-icon/solid/DataTableIcon.tsx +20 -0
- package/src/icons/material-icon/solid/ExpandCircleDownIcon.tsx +20 -0
- package/src/icons/material-icon/solid/ExpandCircleRightIcon.tsx +20 -0
- package/src/icons/material-icon/solid/ExpandCircleUpIcon.tsx +20 -0
- package/src/icons/material-icon/solid/ExpandContentIcon.tsx +20 -0
- package/src/icons/material-icon/solid/InterestsIcon.tsx +20 -0
- package/src/icons/material-icon/solid/SaveIcon.tsx +20 -0
- package/src/icons/material-icon/solid/TableChartIcon.tsx +20 -0
- package/src/icons/material-icon/solid/index.ts +12 -0
- package/src/icons/materialIconConfig.tsx +23 -0
- package/src/icons/type.ts +11 -0
- package/src/icons/utils.ts +6 -0
- package/src/index.ts +5 -0
- package/src/theme/presets/colors.js +2 -1
- package/dist/cjs/types/components/ActionButton/ActionButton.styles copy.d.ts +0 -6
- package/dist/cjs/types/components/Button/Button.styles copy.d.ts +0 -7
- package/dist/components/ActionButton/ActionButton.styles copy.js +0 -90
- package/dist/components/Button/Button.styles copy.js +0 -210
- package/dist/esm/types/components/ActionButton/ActionButton.styles copy.d.ts +0 -6
- package/dist/esm/types/components/Button/Button.styles copy.d.ts +0 -7
- package/src/_theme/global copy.css +0 -761
- package/src/_theme/global.css +0 -39
- package/src/_theme/main-preset.js +0 -239
- package/src/_theme/plugins/utilities/typography.js +0 -81
- package/src/_theme/presets/colors copy 2.js +0 -319
- package/src/_theme/presets/colors copy.js +0 -229
- package/src/_theme/presets/colors.js +0 -94
- package/src/_theme/theme.d.ts +0 -69
- package/src/_theme/variables/base/button.css +0 -334
- package/src/_theme/variables/base/components copy.css +0 -19
- package/src/_theme/variables/default/colors.css +0 -292
- package/src/_theme/variables/default/typography.css +0 -178
- package/src/_theme/variables/xspector/colors.css +0 -468
- package/src/_theme/variables/xspector/typography.css +0 -178
- package/src/components/ActionButton/ActionButton.styles copy.ts +0 -95
- package/src/components/Button/Button.styles copy.ts +0 -214
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
const { DEFAULTS } = require("@rollup/plugin-node-resolve");
|
|
2
|
-
|
|
3
|
-
/** @type {import('tailwindcss').Config} */
|
|
4
|
-
module.exports = {
|
|
5
|
-
theme: {
|
|
6
|
-
extend: {
|
|
7
|
-
colors: {
|
|
8
|
-
border: "hsl(var(--border))",
|
|
9
|
-
ring: "hsl(var(--ring))",
|
|
10
|
-
background: "rgb(var(--background) / <alpha-value>)",
|
|
11
|
-
foreground: "rgb(var(--foreground) / <alpha-value>)",
|
|
12
|
-
// Palette colors
|
|
13
|
-
themes: {
|
|
14
|
-
50: "rgb(var(--themes-50) / <alpha-value>)",
|
|
15
|
-
100: "rgb(var(--themes-100) / <alpha-value>)",
|
|
16
|
-
200: "rgb(var(--themes-200) / <alpha-value>)",
|
|
17
|
-
300: "rgb(var(--themes-300) / <alpha-value>)",
|
|
18
|
-
400: "rgb(var(--themes-400) / <alpha-value>)",
|
|
19
|
-
500: "rgb(var(--themes-500) / <alpha-value>)",
|
|
20
|
-
600: "rgb(var(--themes-600) / <alpha-value>)",
|
|
21
|
-
700: "rgb(var(--themes-700) / <alpha-value>)",
|
|
22
|
-
800: "rgb(var(--themes-800) / <alpha-value>)",
|
|
23
|
-
900: "rgb(var(--themes-900) / <alpha-value>)",
|
|
24
|
-
DEFAULT: "rgb(var(--themes-default) / <alpha-value>)",
|
|
25
|
-
foreground: "rgb(var(--themes-foreground) / <alpha-value>)",
|
|
26
|
-
},
|
|
27
|
-
primary: {
|
|
28
|
-
5: "rgb(var(--primary-5) / <alpha-value>)",
|
|
29
|
-
10: "rgb(var(--primary-10) / <alpha-value>)",
|
|
30
|
-
20: "rgb(var(--primary-20) / <alpha-value>)",
|
|
31
|
-
30: "rgb(var(--primary-30) / <alpha-value>)",
|
|
32
|
-
40: "rgb(var(--primary-40) / <alpha-value>)",
|
|
33
|
-
50: "rgb(var(--primary-50) / <alpha-value>)",
|
|
34
|
-
60: "rgb(var(--primary-60) / <alpha-value>)",
|
|
35
|
-
70: "rgb(var(--primary-70) / <alpha-value>)",
|
|
36
|
-
80: "rgb(var(--primary-80) / <alpha-value>)",
|
|
37
|
-
90: "rgb(var(--primary-90) / <alpha-value>)",
|
|
38
|
-
100: "rgb(var(--primary-100) / <alpha-value>)",
|
|
39
|
-
110: "rgb(var(--primary-110) / <alpha-value>)",
|
|
40
|
-
120: "rgb(var(--primary-120) / <alpha-value>)",
|
|
41
|
-
130: "rgb(var(--primary-130) / <alpha-value>)",
|
|
42
|
-
140: "rgb(var(--primary-140) / <alpha-value>)",
|
|
43
|
-
150: "rgb(var(--primary-150) / <alpha-value>)",
|
|
44
|
-
DEFAULT: "rgb(var(--primary-default) / <alpha-value>)",
|
|
45
|
-
foreground: "rgb(var(--primary-foreground) / <alpha-value>)",
|
|
46
|
-
},
|
|
47
|
-
secondary: {
|
|
48
|
-
5: "rgb(var(--secondary-5) / <alpha-value>)",
|
|
49
|
-
10: "rgb(var(--secondary-10) / <alpha-value>)",
|
|
50
|
-
20: "rgb(var(--secondary-20) / <alpha-value>)",
|
|
51
|
-
30: "rgb(var(--secondary-30) / <alpha-value>)",
|
|
52
|
-
40: "rgb(var(--secondary-40) / <alpha-value>)",
|
|
53
|
-
50: "rgb(var(--secondary-50) / <alpha-value>)",
|
|
54
|
-
60: "rgb(var(--secondary-60) / <alpha-value>)",
|
|
55
|
-
70: "rgb(var(--secondary-70) / <alpha-value>)",
|
|
56
|
-
80: "rgb(var(--secondary-80) / <alpha-value>)",
|
|
57
|
-
90: "rgb(var(--secondary-90) / <alpha-value>)",
|
|
58
|
-
100: "rgb(var(--secondary-100) / <alpha-value>)",
|
|
59
|
-
110: "rgb(var(--secondary-110) / <alpha-value>)",
|
|
60
|
-
120: "rgb(var(--secondary-120) / <alpha-value>)",
|
|
61
|
-
130: "rgb(var(--secondary-130) / <alpha-value>)",
|
|
62
|
-
140: "rgb(var(--secondary-140) / <alpha-value>)",
|
|
63
|
-
150: "rgb(var(--secondary-150) / <alpha-value>)",
|
|
64
|
-
DEFAULT: "rgb(var(--secondary-default) / <alpha-value>)",
|
|
65
|
-
foreground: "rgb(var(--secondary-foreground) / <alpha-value>)",
|
|
66
|
-
},
|
|
67
|
-
tertiary: {
|
|
68
|
-
5: "rgb(var(--tertiary-5) / <alpha-value>)",
|
|
69
|
-
10: "rgb(var(--tertiary-10) / <alpha-value>)",
|
|
70
|
-
20: "rgb(var(--tertiary-20) / <alpha-value>)",
|
|
71
|
-
30: "rgb(var(--tertiary-30) / <alpha-value>)",
|
|
72
|
-
40: "rgb(var(--tertiary-40) / <alpha-value>)",
|
|
73
|
-
50: "rgb(var(--tertiary-50) / <alpha-value>)",
|
|
74
|
-
60: "rgb(var(--tertiary-60) / <alpha-value>)",
|
|
75
|
-
70: "rgb(var(--tertiary-70) / <alpha-value>)",
|
|
76
|
-
80: "rgb(var(--tertiary-80) / <alpha-value>)",
|
|
77
|
-
90: "rgb(var(--tertiary-90) / <alpha-value>)",
|
|
78
|
-
100: "rgb(var(--tertiary-100) / <alpha-value>)",
|
|
79
|
-
110: "rgb(var(--tertiary-110) / <alpha-value>)",
|
|
80
|
-
120: "rgb(var(--tertiary-120) / <alpha-value>)",
|
|
81
|
-
130: "rgb(var(--tertiary-130) / <alpha-value>)",
|
|
82
|
-
140: "rgb(var(--tertiary-140) / <alpha-value>)",
|
|
83
|
-
150: "rgb(var(--tertiary-150) / <alpha-value>)",
|
|
84
|
-
DEFAULT: "rgb(var(--tertiary-default) / <alpha-value>)",
|
|
85
|
-
foreground: "rgb(var(--tertiary-foreground) / <alpha-value>)",
|
|
86
|
-
},
|
|
87
|
-
grey: {
|
|
88
|
-
5: "rgb(var(--grey-5) / <alpha-value>)",
|
|
89
|
-
10: "rgb(var(--grey-10) / <alpha-value>)",
|
|
90
|
-
20: "rgb(var(--grey-20) / <alpha-value>)",
|
|
91
|
-
30: "rgb(var(--grey-30) / <alpha-value>)",
|
|
92
|
-
40: "rgb(var(--grey-40) / <alpha-value>)",
|
|
93
|
-
50: "rgb(var(--grey-50) / <alpha-value>)",
|
|
94
|
-
60: "rgb(var(--grey-60) / <alpha-value>)",
|
|
95
|
-
70: "rgb(var(--grey-70) / <alpha-value>)",
|
|
96
|
-
80: "rgb(var(--grey-80) / <alpha-value>)",
|
|
97
|
-
90: "rgb(var(--grey-90) / <alpha-value>)",
|
|
98
|
-
100: "rgb(var(--grey-100) / <alpha-value>)",
|
|
99
|
-
110: "rgb(var(--grey-110) / <alpha-value>)",
|
|
100
|
-
120: "rgb(var(--grey-120) / <alpha-value>)",
|
|
101
|
-
130: "rgb(var(--grey-130) / <alpha-value>)",
|
|
102
|
-
140: "rgb(var(--grey-140) / <alpha-value>)",
|
|
103
|
-
150: "rgb(var(--grey-150) / <alpha-value>)",
|
|
104
|
-
DEFAULT: "rgb(var(--grey-default) / <alpha-value>)",
|
|
105
|
-
foreground: "rgb(var(--grey-foreground) / <alpha-value>)",
|
|
106
|
-
},
|
|
107
|
-
grey2: {
|
|
108
|
-
100: "rgb(var(--grey2-100) / <alpha-value>)",
|
|
109
|
-
200: "rgb(var(--grey2-200) / <alpha-value>)",
|
|
110
|
-
300: "rgb(var(--grey2-300) / <alpha-value>)",
|
|
111
|
-
400: "rgb(var(--grey2-400) / <alpha-value>)",
|
|
112
|
-
500: "rgb(var(--grey2-500) / <alpha-value>)",
|
|
113
|
-
600: "rgb(var(--grey2-600) / <alpha-value>)",
|
|
114
|
-
700: "rgb(var(--grey2-700) / <alpha-value>)",
|
|
115
|
-
800: "rgb(var(--grey2-800) / <alpha-value>)",
|
|
116
|
-
900: "rgb(var(--grey2-900) / <alpha-value>)",
|
|
117
|
-
DEFAULT: "rgb(var(--grey2-default) / <alpha-value>)",
|
|
118
|
-
foreground: "rgb(var(--grey2-foreground) / <alpha-value>)",
|
|
119
|
-
},
|
|
120
|
-
info: {
|
|
121
|
-
lighter: "rgb(var(--info-lighter)) / <alpha-value>)",
|
|
122
|
-
light: "rgb(var(--info-light)) / <alpha-value>)",
|
|
123
|
-
100: "rgb(var(--info-100)) / <alpha-value>)",
|
|
124
|
-
120: "rgb(var(--info-120)) / <alpha-value>)",
|
|
125
|
-
dark: "rgb(var(--info-dark)) / <alpha-value>)",
|
|
126
|
-
darker: "rgb(var(--info-darker)) / <alpha-value>)",
|
|
127
|
-
DEFAULT: "rgb(var(--info-default) / <alpha-value>)",
|
|
128
|
-
foreground: "rgb(var(--info-foreground) / <alpha-value>)",
|
|
129
|
-
},
|
|
130
|
-
success: {
|
|
131
|
-
lighter: "rgb(var(--success-lighter)) / <alpha-value>)",
|
|
132
|
-
light: "rgb(var(--success-light)) / <alpha-value>)",
|
|
133
|
-
100: "rgb(var(--success-100)) / <alpha-value>)",
|
|
134
|
-
120: "rgb(var(--success-120)) / <alpha-value>)",
|
|
135
|
-
dark: "rgb(var(--success-dark)) / <alpha-value>)",
|
|
136
|
-
darker: "rgb(var(--success-darker)) / <alpha-value>)",
|
|
137
|
-
DEFAULT: "rgb(var(--success-default) / <alpha-value>)",
|
|
138
|
-
foreground: "rgb(var(--success-foreground) / <alpha-value>)",
|
|
139
|
-
},
|
|
140
|
-
warning: {
|
|
141
|
-
lighter: "rgb(var(--warning-lighter)) / <alpha-value>)",
|
|
142
|
-
light: "rgb(var(--warning-light)) / <alpha-value>)",
|
|
143
|
-
100: "rgb(var(--warning-100) / <alpha-value>)",
|
|
144
|
-
120: "rgb(var(--warning-120) / <alpha-value>)",
|
|
145
|
-
dark: "rgb(var(--warning-dark)) / <alpha-value>)",
|
|
146
|
-
darker: "rgb(var(--warning-darker)) / <alpha-value>)",
|
|
147
|
-
DEFAULT: "rgb(var(--warning-default) / <alpha-value>)",
|
|
148
|
-
foreground: "rgb(var(--warning-foreground) / <alpha-value>)",
|
|
149
|
-
},
|
|
150
|
-
error: {
|
|
151
|
-
lighter: "rgb(var(--error-lighter)) / <alpha-value>)",
|
|
152
|
-
light: "rgb(var(--error-light)) / <alpha-value>)",
|
|
153
|
-
100: "rgb(var(--error-100) / <alpha-value>)",
|
|
154
|
-
120: "rgb(var(--error-120) / <alpha-value>)",
|
|
155
|
-
dark: "rgb(var(--error-dark)) / <alpha-value>)",
|
|
156
|
-
darker: "rgb(var(--error-darker)) / <alpha-value>)",
|
|
157
|
-
DEFAULT: "rgb(var(--error-100) / <alpha-value>)",
|
|
158
|
-
foreground: "rgb(var(--error-foreground) / <alpha-value>)",
|
|
159
|
-
},
|
|
160
|
-
main: {
|
|
161
|
-
transparent: {
|
|
162
|
-
primary: {
|
|
163
|
-
8: "rgb(var(--main-transparent-primary) / 0.8)",
|
|
164
|
-
12: "rgb(var(--main-transparent-primary) / 0.12)",
|
|
165
|
-
16: "rgb(var(--main-transparent-primary) / 0.16)",
|
|
166
|
-
24: "rgb(var(--main-transparent-primary) / 0.24)",
|
|
167
|
-
32: "rgb(var(--main-transparent-primary) / 0.32)",
|
|
168
|
-
48: "rgb(var(--main-transparent-primary) / 0.48)",
|
|
169
|
-
},
|
|
170
|
-
secondary: {
|
|
171
|
-
8: "rgb(var(--main-transparent-secondary) / 0.8)",
|
|
172
|
-
12: "rgb(var(--main-transparent-secondary) / 0.12)",
|
|
173
|
-
16: "rgb(var(--main-transparent-secondary) / 0.16)",
|
|
174
|
-
24: "rgb(var(--main-transparent-secondary) / 0.24)",
|
|
175
|
-
32: "rgb(var(--main-transparent-secondary) / 0.32)",
|
|
176
|
-
48: "rgb(var(--main-transparent-secondary) / 0.48)",
|
|
177
|
-
},
|
|
178
|
-
tertiary: {
|
|
179
|
-
8: "rgb(var(--main-transparent-tertiary) / 0.8)",
|
|
180
|
-
12: "rgb(var(--main-transparent-tertiary) / 0.12)",
|
|
181
|
-
16: "rgb(var(--main-transparent-tertiary) / 0.16)",
|
|
182
|
-
24: "rgb(var(--main-transparent-tertiary) / 0.24)",
|
|
183
|
-
32: "rgb(var(--main-transparent-tertiary) / 0.32)",
|
|
184
|
-
48: "rgb(var(--main-transparent-tertiary) / 0.48)",
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
// Component color
|
|
189
|
-
input: {
|
|
190
|
-
text: {
|
|
191
|
-
DEFAULT: "rgb(var(--input-default-text-color) / <alpha-value>)",
|
|
192
|
-
active: "rgb(var(--input-active-text-color) / <alpha-value>)",
|
|
193
|
-
disabled: "rgb(var(--input-disabled-text-color) / <alpha-value>)",
|
|
194
|
-
},
|
|
195
|
-
stroke: {
|
|
196
|
-
DEFAULT: "rgb(var(--input-default-stroke-color) / <alpha-value>)",
|
|
197
|
-
active: "rgb(var(--input-active-stroke-color) / <alpha-value>)",
|
|
198
|
-
disabled: "rgb(var(--input-disabled-stroke-color) / <alpha-value>)",
|
|
199
|
-
},
|
|
200
|
-
background: {
|
|
201
|
-
DEFAULT: "transparent",
|
|
202
|
-
active: "transparent",
|
|
203
|
-
disabled:
|
|
204
|
-
"rgb(var(--input-disabled-background-color) / <alpha-value>)",
|
|
205
|
-
},
|
|
206
|
-
label: {
|
|
207
|
-
background:
|
|
208
|
-
"rgb(var(--input-label-background-color) / <alpha-value>)",
|
|
209
|
-
},
|
|
210
|
-
},
|
|
211
|
-
textcolor: {
|
|
212
|
-
dark: "rgb(var(--text-default-dark) / <alpha-value>)",
|
|
213
|
-
medium: "rgb(var(--text-default-medium) / <alpha-value>)",
|
|
214
|
-
light: "rgb(var(--text-default-light) / <alpha-value>)",
|
|
215
|
-
grey: {
|
|
216
|
-
dark: "rgb(var(--text-grey-dark) / <alpha-value>)",
|
|
217
|
-
medium: "rgb(var(--text-grey-medium) / <alpha-value>)",
|
|
218
|
-
light: "rgb(var(--text-grey-light) / <alpha-value>)",
|
|
219
|
-
},
|
|
220
|
-
white: "rgb(var(--text-white) / <alpha-value>)",
|
|
221
|
-
},
|
|
222
|
-
popup: {
|
|
223
|
-
background: "rgb(var(--popup-background) / <alpha-value>)",
|
|
224
|
-
overlay: "rgb(var(--popup-overlay) / var(--popup-overlay-alpha))",
|
|
225
|
-
},
|
|
226
|
-
},
|
|
227
|
-
},
|
|
228
|
-
},
|
|
229
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
const generateColorConfig = (
|
|
3
|
-
baseName,
|
|
4
|
-
variablePrefix,
|
|
5
|
-
range = [5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150]
|
|
6
|
-
) => {
|
|
7
|
-
const colors = {};
|
|
8
|
-
|
|
9
|
-
range.forEach((num) => {
|
|
10
|
-
colors[`${baseName}-${num}`] = `var(--${variablePrefix}-${num})`;
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
// Add additional colors like foreground, background if needed
|
|
14
|
-
colors[`${baseName}-foreground`] = `var(--${baseName}-foreground)`;
|
|
15
|
-
colors[`${baseName}-default`] = `var(--state-color-${baseName}-default)`;
|
|
16
|
-
colors[`${baseName}-hover`] = `var(--state-color-${baseName}-hover)`;
|
|
17
|
-
colors[`${baseName}-stroke`] = `var(--state-color-${baseName}-stroke)`;
|
|
18
|
-
colors[`${baseName}-hover-bg`] = `var(--state-color-${baseName}-hover-bg)`;
|
|
19
|
-
colors[`${baseName}-pressed`] = `var(--state-color-${baseName}-pressed)`;
|
|
20
|
-
colors[`${baseName}-active`] = `var(--state-color-${baseName}-active)`;
|
|
21
|
-
|
|
22
|
-
return colors;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const secondaryShade = [
|
|
26
|
-
"50",
|
|
27
|
-
"100",
|
|
28
|
-
"200",
|
|
29
|
-
"300",
|
|
30
|
-
"400",
|
|
31
|
-
"500",
|
|
32
|
-
"600",
|
|
33
|
-
"700",
|
|
34
|
-
"800",
|
|
35
|
-
"900",
|
|
36
|
-
"950",
|
|
37
|
-
];
|
|
38
|
-
|
|
39
|
-
module.exports = {
|
|
40
|
-
theme: {
|
|
41
|
-
extend: {
|
|
42
|
-
colors: {
|
|
43
|
-
"main-primary": "var(--main-color-primary)",
|
|
44
|
-
"main-secondary": "var(--main-color-secondary)",
|
|
45
|
-
"main-tertiary": "var(--main-color-tertiary)",
|
|
46
|
-
|
|
47
|
-
"text-dark": "var(--text-dark)",
|
|
48
|
-
"text-medium": "var(--text-medium)",
|
|
49
|
-
"text-light": "var(--text-light)",
|
|
50
|
-
"text-grey-dark": "var(--text-grey-dark)",
|
|
51
|
-
"text-grey-medium": "var(--text-grey-medium)",
|
|
52
|
-
"text-grey-light": "var(--text-grey-light)",
|
|
53
|
-
"text-white": "var(--text-white)",
|
|
54
|
-
|
|
55
|
-
...generateColorConfig("primary", "primary-ramps-primary"),
|
|
56
|
-
...generateColorConfig("secondary", "secondary-ramps-secondary"),
|
|
57
|
-
...generateColorConfig("tertiary", "tertiary-ramps-tertiary"),
|
|
58
|
-
...generateColorConfig("grey", "grey"),
|
|
59
|
-
|
|
60
|
-
...generateColorConfig("grey2", "grey2", secondaryShade),
|
|
61
|
-
...generateColorConfig("info", "info", secondaryShade),
|
|
62
|
-
...generateColorConfig("success", "success", secondaryShade),
|
|
63
|
-
...generateColorConfig("warning", "warning", secondaryShade),
|
|
64
|
-
...generateColorConfig("error", "error", secondaryShade),
|
|
65
|
-
|
|
66
|
-
"disable-solid": "var(--state-color-disable-solid)",
|
|
67
|
-
"disable-outline": "var(--state-color-disable-outline)",
|
|
68
|
-
|
|
69
|
-
"input-default-text": "var(--input-color-default-text)",
|
|
70
|
-
"input-default-stroke": "var(--input-color-default-stroke)",
|
|
71
|
-
"input-filled-text": "var(--input-color-filled-text)",
|
|
72
|
-
"input-active-stroke": "var(--input-color-active-stroke)",
|
|
73
|
-
"input-disable-text": "var(--input-color-disable-text)",
|
|
74
|
-
"input-disable-stroke": "var(--input-color-disable-stroke)",
|
|
75
|
-
"input-disable-bg": "var(--input-color-disable-bg)",
|
|
76
|
-
"input-label-bg": "var(--input-color-label-bg)",
|
|
77
|
-
"input-error": "var(--input-color-error)",
|
|
78
|
-
|
|
79
|
-
"other-bg": "var(--other-bg)",
|
|
80
|
-
"other-bg2": "var(--other-bg2)",
|
|
81
|
-
"other-popup": "var(--other-popup)",
|
|
82
|
-
"other-popup-highlight": "var(--other-popup-hightlight)", // naming wrong
|
|
83
|
-
"other-popup-curtain": "var(--other-popup-curtain)",
|
|
84
|
-
|
|
85
|
-
"common-white": "var(--common-white)",
|
|
86
|
-
"common-black": "var(--common-black)",
|
|
87
|
-
|
|
88
|
-
// ---
|
|
89
|
-
surface: "var(--surface)",
|
|
90
|
-
"surface-foreground": "var(--surface-foreground)",
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
};
|
package/src/_theme/theme.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
type ThemeColorState = {
|
|
2
|
-
default: string; // bg
|
|
3
|
-
hover: string; // bg
|
|
4
|
-
stroke: string; // stroke
|
|
5
|
-
"hover-bg": string; // bg
|
|
6
|
-
pressed: string; // bg
|
|
7
|
-
active: string; // bg
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
type ThemeColorTransparent = {
|
|
11
|
-
"8": string;
|
|
12
|
-
"12": string;
|
|
13
|
-
"16": string;
|
|
14
|
-
"24": string;
|
|
15
|
-
"32": string;
|
|
16
|
-
"48": string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
type ThemeMainShadeColor = {
|
|
20
|
-
default: string;
|
|
21
|
-
"5": string;
|
|
22
|
-
"10": string;
|
|
23
|
-
"20": string;
|
|
24
|
-
"30": string;
|
|
25
|
-
"40": string;
|
|
26
|
-
"50": string;
|
|
27
|
-
"60": string;
|
|
28
|
-
"70": string;
|
|
29
|
-
"80": string;
|
|
30
|
-
"90": string;
|
|
31
|
-
"100": string;
|
|
32
|
-
"110": string;
|
|
33
|
-
"120": string;
|
|
34
|
-
"130": string;
|
|
35
|
-
"140": string;
|
|
36
|
-
"150": string;
|
|
37
|
-
foreground: string;
|
|
38
|
-
} & ThemeColorState;
|
|
39
|
-
|
|
40
|
-
type ThemeSecondaryShadeColor = {
|
|
41
|
-
default: string;
|
|
42
|
-
"50": string;
|
|
43
|
-
"100": string;
|
|
44
|
-
"200": string;
|
|
45
|
-
"300": string;
|
|
46
|
-
"400": string;
|
|
47
|
-
"500": string;
|
|
48
|
-
"600": string;
|
|
49
|
-
"700": string;
|
|
50
|
-
"800": string;
|
|
51
|
-
"900": string;
|
|
52
|
-
"950": string;
|
|
53
|
-
foreground: string;
|
|
54
|
-
} & ThemeColorState;
|
|
55
|
-
|
|
56
|
-
type Theme = {
|
|
57
|
-
primary: ThemeMainShadeColor;
|
|
58
|
-
secondary: ThemeMainShadeColor;
|
|
59
|
-
tertiary: ThemeMainShadeColor;
|
|
60
|
-
grey: ThemeMainShadeColor;
|
|
61
|
-
grey2: ThemeSecondaryShadeColor;
|
|
62
|
-
info: ThemeSecondaryShadeColor;
|
|
63
|
-
grey2: ThemeSecondaryShadeColor;
|
|
64
|
-
success: ThemeSecondaryShadeColor;
|
|
65
|
-
warning: ThemeSecondaryShadeColor;
|
|
66
|
-
error: ThemeSecondaryShadeColor;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
const myTheme: Theme = {};
|