@rovula/ui 0.0.65 → 0.0.67

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.
Files changed (129) hide show
  1. package/dist/cjs/bundle.css +993 -979
  2. package/dist/cjs/bundle.js +3 -3
  3. package/dist/cjs/bundle.js.map +1 -1
  4. package/dist/cjs/types/components/ActionButton/ActionButton.d.ts +6 -6
  5. package/dist/cjs/types/components/ActionButton/ActionButton.stories.d.ts +97 -96
  6. package/dist/cjs/types/components/AlertDialog/AlertDialog.stories.d.ts +1 -1
  7. package/dist/cjs/types/components/Avatar/Avatar.stories.d.ts +7 -7
  8. package/dist/cjs/types/components/Avatar/AvatarGroup.stories.d.ts +1 -1
  9. package/dist/cjs/types/components/Button/Button.d.ts +9 -9
  10. package/dist/cjs/types/components/Button/Buttons.stories.d.ts +139 -138
  11. package/dist/cjs/types/components/Calendar/Calendar.stories.d.ts +213 -388
  12. package/dist/cjs/types/components/Checkbox/Checkbox.stories.d.ts +92 -91
  13. package/dist/cjs/types/components/Collapsible/Collapsible.d.ts +3 -3
  14. package/dist/cjs/types/components/DataTable/DataTable.stories.d.ts +1 -1
  15. package/dist/cjs/types/components/DatePicker/DatePicker.stories.d.ts +224 -399
  16. package/dist/cjs/types/components/Dialog/Dialog.d.ts +2 -2
  17. package/dist/cjs/types/components/Dialog/Dialog.stories.d.ts +1 -1
  18. package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +21 -21
  19. package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +134 -134
  20. package/dist/cjs/types/components/DropdownMenu/DropdownMenu.d.ts +3 -3
  21. package/dist/cjs/types/components/DropdownMenu/DropdownMenu.stories.d.ts +1 -1
  22. package/dist/cjs/types/components/Icon/Icon.stories.d.ts +294 -294
  23. package/dist/cjs/types/components/Input/Input.d.ts +8 -8
  24. package/dist/cjs/types/components/Input/Input.stories.d.ts +225 -225
  25. package/dist/cjs/types/components/InputFilter/InputFilter.d.ts +18 -18
  26. package/dist/cjs/types/components/InputFilter/InputFilter.stories.d.ts +127 -127
  27. package/dist/cjs/types/components/Label/Label.stories.d.ts +87 -86
  28. package/dist/cjs/types/components/Loading/Loading.stories.d.ts +10 -10
  29. package/dist/cjs/types/components/Navbar/Navbar.stories.d.ts +1 -1
  30. package/dist/cjs/types/components/Popover/Popover.stories.d.ts +1 -1
  31. package/dist/cjs/types/components/ProgressBar/ProgressBar.stories.d.ts +9 -9
  32. package/dist/cjs/types/components/RadioGroup/RadioGroup.stories.d.ts +85 -84
  33. package/dist/cjs/types/components/Search/Search.stories.d.ts +114 -114
  34. package/dist/cjs/types/components/Slider/Slider.stories.d.ts +85 -83
  35. package/dist/cjs/types/components/Switch/Switch.stories.d.ts +92 -91
  36. package/dist/cjs/types/components/Table/Table.d.ts +2 -2
  37. package/dist/cjs/types/components/Table/Table.stories.d.ts +87 -86
  38. package/dist/cjs/types/components/Tabs/Tabs.d.ts +6 -0
  39. package/dist/cjs/types/components/Tabs/Tabs.stories.d.ts +57 -31
  40. package/dist/cjs/types/components/Text/Text.stories.d.ts +3 -3
  41. package/dist/cjs/types/components/TextInput/TextInput.d.ts +21 -21
  42. package/dist/cjs/types/components/TextInput/TextInput.stories.d.ts +128 -128
  43. package/dist/cjs/types/components/Toast/Toast.stories.d.ts +91 -90
  44. package/dist/cjs/types/components/Tooltip/Tooltip.stories.d.ts +1 -1
  45. package/dist/cjs/types/icons/type.d.ts +0 -1
  46. package/dist/components/Dropdown/Dropdown.js +8 -10
  47. package/dist/components/Tabs/Tabs.js +24 -15
  48. package/dist/components/Tabs/Tabs.stories.js +12 -0
  49. package/dist/esm/bundle.css +993 -979
  50. package/dist/esm/bundle.js +3 -3
  51. package/dist/esm/bundle.js.map +1 -1
  52. package/dist/esm/types/components/ActionButton/ActionButton.d.ts +6 -6
  53. package/dist/esm/types/components/ActionButton/ActionButton.stories.d.ts +97 -96
  54. package/dist/esm/types/components/AlertDialog/AlertDialog.stories.d.ts +1 -1
  55. package/dist/esm/types/components/Avatar/Avatar.stories.d.ts +7 -7
  56. package/dist/esm/types/components/Avatar/AvatarGroup.stories.d.ts +1 -1
  57. package/dist/esm/types/components/Button/Button.d.ts +9 -9
  58. package/dist/esm/types/components/Button/Buttons.stories.d.ts +139 -138
  59. package/dist/esm/types/components/Calendar/Calendar.stories.d.ts +213 -388
  60. package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +92 -91
  61. package/dist/esm/types/components/Collapsible/Collapsible.d.ts +3 -3
  62. package/dist/esm/types/components/DataTable/DataTable.stories.d.ts +1 -1
  63. package/dist/esm/types/components/DatePicker/DatePicker.stories.d.ts +224 -399
  64. package/dist/esm/types/components/Dialog/Dialog.d.ts +2 -2
  65. package/dist/esm/types/components/Dialog/Dialog.stories.d.ts +1 -1
  66. package/dist/esm/types/components/Dropdown/Dropdown.d.ts +21 -21
  67. package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +134 -134
  68. package/dist/esm/types/components/DropdownMenu/DropdownMenu.d.ts +3 -3
  69. package/dist/esm/types/components/DropdownMenu/DropdownMenu.stories.d.ts +1 -1
  70. package/dist/esm/types/components/Icon/Icon.stories.d.ts +294 -294
  71. package/dist/esm/types/components/Input/Input.d.ts +8 -8
  72. package/dist/esm/types/components/Input/Input.stories.d.ts +225 -225
  73. package/dist/esm/types/components/InputFilter/InputFilter.d.ts +18 -18
  74. package/dist/esm/types/components/InputFilter/InputFilter.stories.d.ts +127 -127
  75. package/dist/esm/types/components/Label/Label.stories.d.ts +87 -86
  76. package/dist/esm/types/components/Loading/Loading.stories.d.ts +10 -10
  77. package/dist/esm/types/components/Navbar/Navbar.stories.d.ts +1 -1
  78. package/dist/esm/types/components/Popover/Popover.stories.d.ts +1 -1
  79. package/dist/esm/types/components/ProgressBar/ProgressBar.stories.d.ts +9 -9
  80. package/dist/esm/types/components/RadioGroup/RadioGroup.stories.d.ts +85 -84
  81. package/dist/esm/types/components/Search/Search.stories.d.ts +114 -114
  82. package/dist/esm/types/components/Slider/Slider.stories.d.ts +85 -83
  83. package/dist/esm/types/components/Switch/Switch.stories.d.ts +92 -91
  84. package/dist/esm/types/components/Table/Table.d.ts +2 -2
  85. package/dist/esm/types/components/Table/Table.stories.d.ts +87 -86
  86. package/dist/esm/types/components/Tabs/Tabs.d.ts +6 -0
  87. package/dist/esm/types/components/Tabs/Tabs.stories.d.ts +57 -31
  88. package/dist/esm/types/components/Text/Text.stories.d.ts +3 -3
  89. package/dist/esm/types/components/TextInput/TextInput.d.ts +21 -21
  90. package/dist/esm/types/components/TextInput/TextInput.stories.d.ts +128 -128
  91. package/dist/esm/types/components/Toast/Toast.stories.d.ts +91 -90
  92. package/dist/esm/types/components/Tooltip/Tooltip.stories.d.ts +1 -1
  93. package/dist/esm/types/icons/type.d.ts +0 -1
  94. package/dist/index.d.ts +99 -93
  95. package/dist/src/theme/global.css +998 -981
  96. package/package.json +2 -1
  97. package/src/components/Dropdown/Dropdown.tsx +9 -11
  98. package/src/components/Tabs/Tabs.stories.tsx +38 -0
  99. package/src/components/Tabs/Tabs.tsx +31 -9
  100. package/dist/theme/global.css +0 -30
  101. package/dist/theme/main-preset.js +0 -283
  102. package/dist/theme/plugins/utilities/typography.js +0 -93
  103. package/dist/theme/presets/colors.js +0 -136
  104. package/dist/theme/theme.d.ts +0 -69
  105. package/dist/theme/themes/xspector/baseline.css +0 -9
  106. package/dist/theme/themes/xspector/color.css +0 -81
  107. package/dist/theme/themes/xspector/components/action-button.css +0 -100
  108. package/dist/theme/themes/xspector/components/dropdown-menu.css +0 -28
  109. package/dist/theme/themes/xspector/components/loading.css +0 -11
  110. package/dist/theme/themes/xspector/components/switch.css +0 -30
  111. package/dist/theme/themes/xspector/palette.css +0 -122
  112. package/dist/theme/themes/xspector/state.css +0 -89
  113. package/dist/theme/themes/xspector/transparent.css +0 -68
  114. package/dist/theme/themes/xspector/typography.css +0 -27
  115. package/dist/theme/tokens/baseline.css +0 -12
  116. package/dist/theme/tokens/color.css +0 -78
  117. package/dist/theme/tokens/components/action-button.css +0 -127
  118. package/dist/theme/tokens/components/button.css +0 -512
  119. package/dist/theme/tokens/components/dropdown-menu.css +0 -27
  120. package/dist/theme/tokens/components/loading.css +0 -11
  121. package/dist/theme/tokens/components/navbar.css +0 -8
  122. package/dist/theme/tokens/components/progress-bar.css +0 -8
  123. package/dist/theme/tokens/components/switch.css +0 -30
  124. package/dist/theme/tokens/palette.css +0 -122
  125. package/dist/theme/tokens/state.css +0 -82
  126. package/dist/theme/tokens/transparent.css +0 -68
  127. package/dist/theme/tokens/typography.css +0 -199
  128. package/dist/theme/tokens/variables.css +0 -28
  129. package/dist/theme/utils.js +0 -109
@@ -1,122 +0,0 @@
1
-
2
- :root {
3
- --primary-ramps-primary-5: #f4f5f6;
4
- --primary-ramps-primary-10: #e8eaed;
5
- --primary-ramps-primary-20: #d2d6db;
6
- --primary-ramps-primary-30: #bbc1c8;
7
- --primary-ramps-primary-40: #a5adb6;
8
- --primary-ramps-primary-50: #8e98a4;
9
- --primary-ramps-primary-60: #788492;
10
- --primary-ramps-primary-70: #627080;
11
- --primary-ramps-primary-80: #4b5b6d;
12
- --primary-ramps-primary-90: #35475b;
13
- --primary-ramps-primary-100: #1e3249;
14
- --primary-ramps-primary-110: #1b2d42;
15
- --primary-ramps-primary-120: #18283a;
16
- --primary-ramps-primary-130: #152333;
17
- --primary-ramps-primary-140: #121e2c;
18
- --primary-ramps-primary-150: #0f1925;
19
- --secondary-ramps-secondary-5: #fdfcf2;
20
- --secondary-ramps-secondary-10: #fcfae5;
21
- --secondary-ramps-secondary-20: #f8f5cc;
22
- --secondary-ramps-secondary-30: #f5f0b2;
23
- --secondary-ramps-secondary-40: #f1eb99;
24
- --secondary-ramps-secondary-50: #eee680;
25
- --secondary-ramps-secondary-60: #ebe166;
26
- --secondary-ramps-secondary-70: #e7dc4d;
27
- --secondary-ramps-secondary-80: #e4d733;
28
- --secondary-ramps-secondary-90: #e0d21a;
29
- --secondary-ramps-secondary-100: #ddcd00;
30
- --secondary-ramps-secondary-110: #c7b800;
31
- --secondary-ramps-secondary-120: #b1a400;
32
- --secondary-ramps-secondary-130: #9b8f00;
33
- --secondary-ramps-secondary-140: #857b00;
34
- --secondary-ramps-secondary-150: #6f6700;
35
- --tertiary-ramps-tertiary-5: #fafafa;
36
- --tertiary-ramps-tertiary-10: #f5f5f5;
37
- --tertiary-ramps-tertiary-20: #ececec;
38
- --tertiary-ramps-tertiary-30: #e2e2e2;
39
- --tertiary-ramps-tertiary-40: #d8d8d8;
40
- --tertiary-ramps-tertiary-50: #cfcfcf;
41
- --tertiary-ramps-tertiary-60: #c5c5c5;
42
- --tertiary-ramps-tertiary-70: #bbbbbb;
43
- --tertiary-ramps-tertiary-80: #b1b1b1;
44
- --tertiary-ramps-tertiary-90: #a8a8a8;
45
- --tertiary-ramps-tertiary-100: #9e9e9e;
46
- --tertiary-ramps-tertiary-110: #8e8e8e;
47
- --tertiary-ramps-tertiary-120: #7e7e7e;
48
- --tertiary-ramps-tertiary-130: #6f6f6f;
49
- --tertiary-ramps-tertiary-140: #5f5f5f;
50
- --tertiary-ramps-tertiary-150: #4f4f4f;
51
- --grey-grey-5: #fafafa;
52
- --grey-grey-10: #f5f5f5;
53
- --grey-grey-20: #ececec;
54
- --grey-grey-30: #e2e2e2;
55
- --grey-grey-40: #d8d8d8;
56
- --grey-grey-50: #cfcfcf;
57
- --grey-grey-60: #c5c5c5;
58
- --grey-grey-70: #bbbbbb;
59
- --grey-grey-80: #b1b1b1;
60
- --grey-grey-90: #a8a8a8;
61
- --grey-grey-100: #9e9e9e;
62
- --grey-grey-110: #8e8e8e;
63
- --grey-grey-120: #7e7e7e;
64
- --grey-grey-130: #6f6f6f;
65
- --grey-grey-140: #5f5f5f;
66
- --grey-grey-150: #4f4f4f;
67
- --grey2-grey2-50: #f8fafa;
68
- --grey2-grey2-100: #f2f5f5;
69
- --grey2-grey2-200: #e7ebed;
70
- --grey2-grey2-300: #d3dadf;
71
- --grey2-grey2-400: #bac5cb;
72
- --grey2-grey2-500: #9dabb5;
73
- --grey2-grey2-600: #919eab;
74
- --grey2-grey2-700: #72808f;
75
- --grey2-grey2-800: #606b77;
76
- --grey2-grey2-900: #4f5863;
77
- --grey2-grey2-950: #343b41;
78
- --info-info-50: #eef8ff;
79
- --info-info-100: #d9efff;
80
- --info-info-200: #bce4ff;
81
- --info-info-300: #8ed5ff;
82
- --info-info-400: #59bbff;
83
- --info-info-500: #2998ff;
84
- --info-info-600: #1b7df5;
85
- --info-info-700: #1466e1;
86
- --info-info-800: #1752b6;
87
- --info-info-900: #19478f;
88
- --info-info-950: #142c57;
89
- --success-success-50: #effce9;
90
- --success-success-100: #daf9ce;
91
- --success-success-200: #b8f3a3;
92
- --success-success-300: #8ce86e;
93
- --success-success-400: #54d62c;
94
- --success-success-500: #44c022;
95
- --success-success-600: #319917;
96
- --success-success-700: #277516;
97
- --success-success-800: #235d17;
98
- --success-success-900: #214f18;
99
- --success-success-950: #0c2b08;
100
- --warning-warning-50: #ffffea;
101
- --warning-warning-100: #fffbc5;
102
- --warning-warning-200: #fff885;
103
- --warning-warning-300: #ffee46;
104
- --warning-warning-400: #ffdf1b;
105
- --warning-warning-500: #ffc107;
106
- --warning-warning-600: #e29400;
107
- --warning-warning-700: #bb6902;
108
- --warning-warning-800: #985108;
109
- --warning-warning-900: #7c420b;
110
- --warning-warning-950: #482200;
111
- --error-error-50: #fff3f1;
112
- --error-error-100: #ffe3df;
113
- --error-error-200: #ffccc5;
114
- --error-error-300: #ffa99d;
115
- --error-error-400: #ff7664;
116
- --error-error-500: #ff4d35;
117
- --error-error-600: #ed2f15;
118
- --error-error-700: #c8230d;
119
- --error-error-800: #a5210f;
120
- --error-error-900: #882214;
121
- --error-error-950: #4b0c04;
122
- }
@@ -1,82 +0,0 @@
1
-
2
- :root {
3
- /* ------------------------------------------------------------------ */
4
- /* State Tokens */
5
- /* ------------------------------------------------------------------ */
6
- /* Naming Convention: --state-color-[theme]-[element?]-[state] */
7
- /* States: [default, hover, pressed, disabled] */
8
-
9
- --state-color-primary-default: #1e3249;
10
- --state-color-primary-hover: #35475b;
11
- --state-color-primary-stroke: rgba(30 50 73 / 0.64);
12
- --state-color-primary-hover-bg: rgba(30 50 73 / 0.08);
13
- --state-color-primary-pressed: #152333;
14
- --state-color-primary-active: #35475b;
15
- --state-color-primary-text-solid: #ffffff;
16
- --state-color-primary-text-outline: #1e3249;
17
- --state-color-primary-text-hover: #35475b;
18
- --state-color-primary-text-pressed: #152333;
19
- --state-color-secondary-default: #9b8f00;
20
- --state-color-secondary-hover: #b1a400;
21
- --state-color-secondary-stroke: rgba(155 143 0 / 0.64);
22
- --state-color-secondary-hover-bg: rgba(221 205 0 / 0.08);
23
- --state-color-secondary-pressed: #6f6700;
24
- --state-color-secondary-active: #b1a400;
25
- --state-color-secondary-text-solid: #ffffff;
26
- --state-color-secondary-text-outline: #9b8f00;
27
- --state-color-secondary-text-hover: #b1a400;
28
- --state-color-secondary-text-pressed: #6f6700;
29
- --state-color-tertiary-default: #4f4f4f;
30
- --state-color-tertiary-hover: #6f6f6f;
31
- --state-color-tertiary-stroke: rgba(79 79 79 / 0.48);
32
- --state-color-tertiary-hover-bg: rgba(158 158 158 / 0.08);
33
- --state-color-tertiary-pressed: #b1b1b1;
34
- --state-color-tertiary-active: #6f6f6f;
35
- --state-color-tertiary-text-solid: #ffffff;
36
- --state-color-tertiary-text-outline: #4f4f4f;
37
- --state-color-tertiary-text-hover: #6f6f6f;
38
- --state-color-tertiary-text-pressed: #b1b1b1;
39
- --state-color-info-default: #1b7df5;
40
- --state-color-info-hover: #2998ff;
41
- --state-color-info-stroke: rgba(41 152 255 / 0.48);
42
- --state-color-info-hover-bg: rgba(41 152 255 / 0.08);
43
- --state-color-info-pressed: #1752b6;
44
- --state-color-info-active: #2998ff;
45
- --state-color-info-text-solid: #ffffff;
46
- --state-color-info-text-outline: #1b7df5;
47
- --state-color-info-text-hover: #2998ff;
48
- --state-color-info-text-pressed: #1752b6;
49
- --state-color-success-default: #319917;
50
- --state-color-success-hover: #44c022;
51
- --state-color-success-stroke: rgba(68 192 34 / 0.48);
52
- --state-color-success-hover-bg: rgba(84 214 44 / 0.08);
53
- --state-color-success-pressed: #235d17;
54
- --state-color-success-active: #44c022;
55
- --state-color-success-text-solid: #ffffff;
56
- --state-color-success-text-outline: #319917;
57
- --state-color-success-text-hover: #44c022;
58
- --state-color-success-text-pressed: #235d17;
59
- --state-color-warning-default: #ffc107;
60
- --state-color-warning-hover: #ffdf1b;
61
- --state-color-warning-stroke: rgba(255 223 27 / 0.48);
62
- --state-color-warning-hover-bg: rgba(255 193 7 / 0.08);
63
- --state-color-warning-pressed: #985108;
64
- --state-color-warning-active: #ffc107;
65
- --state-color-warning-text-solid: #1e3249;
66
- --state-color-warning-text-outline: #ffc107;
67
- --state-color-warning-text-hover: #ffdf1b;
68
- --state-color-warning-text-pressed: #985108;
69
- --state-color-error-default: #ed2f15;
70
- --state-color-error-hover: #ff4d35;
71
- --state-color-error-stroke: rgba(237 47 21 / 0.64);
72
- --state-color-error-hover-bg: rgba(255 77 53 / 0.08);
73
- --state-color-error-pressed: #a5210f;
74
- --state-color-error-active: #ff4d35;
75
- --state-color-error-text-solid: #ffffff;
76
- --state-color-error-text-outline: #ed2f15;
77
- --state-color-error-text-hover: #ff4d35;
78
- --state-color-error-text-pressed: #a5210f;
79
- --state-color-disable-solid: #d3dadf;
80
- --state-color-disable-outline: #9dabb5;
81
- }
82
-
@@ -1,68 +0,0 @@
1
- :root {
2
- --main-transparency-primary-8: rgba(30 50 73 / 0.08);
3
- --main-transparency-primary-12: rgba(30 50 73 / 0.12);
4
- --main-transparency-primary-16: rgba(30 50 73 / 0.16);
5
- --main-transparency-primary-24: rgba(30 50 73 / 0.24);
6
- --main-transparency-primary-32: rgba(30 50 73 / 0.32);
7
- --main-transparency-primary-48: rgba(30 50 73 / 0.48);
8
- --main-transparency-secondary-8: rgba(221 205 0 / 0.08);
9
- --main-transparency-secondary-12: rgba(221 205 0 / 0.12);
10
- --main-transparency-secondary-16: rgba(221 205 0 / 0.16);
11
- --main-transparency-secondary-24: rgba(221 205 0 / 0.24);
12
- --main-transparency-secondary-32: rgba(221 205 0 / 0.32);
13
- --main-transparency-secondary-48: rgba(221 205 0 / 0.48);
14
- --main-transparency-tertiary-8: rgba(158 158 158 / 0.08);
15
- --main-transparency-tertiary-12: rgba(158 158 158 / 0.12);
16
- --main-transparency-tertiary-16: rgba(158 158 158 / 0.16);
17
- --main-transparency-tertiary-24: rgba(158 158 158 / 0.24);
18
- --main-transparency-tertiary-32: rgba(158 158 158 / 0.32);
19
- --main-transparency-tertiary-48: rgba(158 158 158 / 0.48);
20
- --other-transparency-info-8: rgba(41 152 255 / 0.08);
21
- --other-transparency-info-12: rgba(41 152 255 / 0.12);
22
- --other-transparency-info-16: rgba(41 152 255 / 0.16);
23
- --other-transparency-info-24: rgba(41 152 255 / 0.24);
24
- --other-transparency-info-32: rgba(41 152 255 / 0.32);
25
- --other-transparency-info-48: rgba(41 152 255 / 0.48);
26
- --other-transparency-success-8: rgba(84 214 44 / 0.08);
27
- --other-transparency-success-12: rgba(84 214 44 / 0.12);
28
- --other-transparency-success-16: rgba(84 214 44 / 0.16);
29
- --other-transparency-success-24: rgba(84 214 44 / 0.24);
30
- --other-transparency-success-32: rgba(84 214 44 / 0.32);
31
- --other-transparency-success-48: rgba(84 214 44 / 0.48);
32
- --other-transparency-warning-8: rgba(255 193 7 / 0.08);
33
- --other-transparency-warning-12: rgba(255 193 7 / 0.12);
34
- --other-transparency-warning-16: rgba(255 193 7 / 0.16);
35
- --other-transparency-warning-24: rgba(255 193 7 / 0.24);
36
- --other-transparency-warning-32: rgba(255 193 7 / 0.32);
37
- --other-transparency-warning-48: rgba(255 193 7 / 0.48);
38
- --other-transparency-error-8: rgba(255 72 66 / 0.08);
39
- --other-transparency-error-12: rgba(255 72 66 / 0.12);
40
- --other-transparency-error-16: rgba(255 72 66 / 0.16);
41
- --other-transparency-error-24: rgba(255 72 66 / 0.24);
42
- --other-transparency-error-32: rgba(255 72 66 / 0.32);
43
- --other-transparency-error-48: rgba(255 72 66 / 0.48);
44
- --other-transparency-grey-8: rgba(158 158 158 / 0.08);
45
- --other-transparency-grey-12: rgba(158 158 158 / 0.12);
46
- --other-transparency-grey-16: rgba(158 158 158 / 0.16);
47
- --other-transparency-grey-24: rgba(158 158 158 / 0.24);
48
- --other-transparency-grey-32: rgba(158 158 158 / 0.32);
49
- --other-transparency-grey-48: rgba(158 158 158 / 0.48);
50
- --other-transparency-grey2-8: rgba(145 158 171 / 0.08);
51
- --other-transparency-grey2-12: rgba(145 158 171 / 0.12);
52
- --other-transparency-grey2-16: rgba(145 158 171 / 0.16);
53
- --other-transparency-grey2-24: rgba(145 158 171 / 0.24);
54
- --other-transparency-grey2-32: rgba(145 158 171 / 0.32);
55
- --other-transparency-grey2-48: rgba(145 158 171 / 0.48);
56
- --other-transparency-white-8: rgba(255 255 255 / 0.08);
57
- --other-transparency-white-12: rgba(255 255 255 / 0.12);
58
- --other-transparency-white-16: rgba(255 255 255 / 0.16);
59
- --other-transparency-white-24: rgba(255 255 255 / 0.24);
60
- --other-transparency-white-32: rgba(255 255 255 / 0.32);
61
- --other-transparency-white-48: rgba(255 255 255 / 0.48);
62
- --other-transparency-black-8: rgba(0 0 0 / 0.08);
63
- --other-transparency-black-12: rgba(0 0 0 / 0.12);
64
- --other-transparency-black-16: rgba(0 0 0 / 0.16);
65
- --other-transparency-black-24: rgba(0 0 0 / 0.24);
66
- --other-transparency-black-32: rgba(0 0 0 / 0.32);
67
- --other-transparency-black-48: rgba(0 0 0 / 0.48);
68
- }
@@ -1,199 +0,0 @@
1
- :root {
2
- /* TYPE */
3
- --h1-family: "Montserrat";
4
- --h1-size: 64px;
5
- --h1-size-rem: 4rem;
6
- --h1-weight: 700;
7
- --h1-style: normal;
8
- --h1-line-height: 80px;
9
- --h1-line-height-rem: 5rem;
10
- --h2-family: "Montserrat";
11
- --h2-size: 48px;
12
- --h2-size-rem: 3rem;
13
- --h2-weight: 700;
14
- --h2-style: normal;
15
- --h2-line-height: 60px;
16
- --h2-line-height-rem: 3.75rem;
17
- --h3-family: "Montserrat";
18
- --h3-size: 32px;
19
- --h3-size-rem: 2rem;
20
- --h3-weight: 700;
21
- --h3-style: normal;
22
- --h3-line-height: 48px;
23
- --h3-line-height-rem: 3rem;
24
- --h4-family: "Montserrat";
25
- --h4-size: 24px;
26
- --h4-size-rem: 1.5rem;
27
- --h4-weight: 700;
28
- --h4-style: normal;
29
- --h4-line-height: 32px;
30
- --h4-line-height-rem: 2rem;
31
- --h5-family: "Montserrat";
32
- --h5-size: 20px;
33
- --h5-size-rem: 1.25rem;
34
- --h5-weight: 700;
35
- --h5-style: normal;
36
- --h5-line-height: 28px;
37
- --h5-line-height-rem: 1.75rem;
38
- --h6-family: "Montserrat";
39
- --h6-size: 18px;
40
- --h6-size-rem: 1.125rem;
41
- --h6-weight: 700;
42
- --h6-style: normal;
43
- --h6-line-height: 24px;
44
- --h6-line-height-rem: 1.5rem;
45
- --subtitle1-family: "Montserrat";
46
- --subtitle1-size: 16px;
47
- --subtitle1-size-rem: 1rem;
48
- --subtitle1-weight: 400;
49
- --subtitle1-style: normal;
50
- --subtitle1-line-height: 24px;
51
- --subtitle1-line-height-rem: 1.5rem;
52
- --subtitle2-family: "Montserrat";
53
- --subtitle2-size: 16px;
54
- --subtitle2-size-rem: 1rem;
55
- --subtitle2-weight: 500;
56
- --subtitle2-style: normal;
57
- --subtitle2-line-height: 24px;
58
- --subtitle2-line-height-rem: 1.5rem;
59
- --subtitle3-family: "Montserrat";
60
- --subtitle3-size: 16px;
61
- --subtitle3-size-rem: 1rem;
62
- --subtitle3-weight: 600;
63
- --subtitle3-style: normal;
64
- --subtitle3-line-height: 24px;
65
- --subtitle3-line-height-rem: 1.5rem;
66
- --subtitle4-family: "Montserrat";
67
- --subtitle4-size: 14px;
68
- --subtitle4-size-rem: 0.875rem;
69
- --subtitle4-weight: 400;
70
- --subtitle4-style: normal;
71
- --subtitle4-line-height: 22px;
72
- --subtitle4-line-height-rem: 1.375rem;
73
- --subtitle5-family: "Montserrat";
74
- --subtitle5-size: 14px;
75
- --subtitle5-size-rem: 0.875rem;
76
- --subtitle5-weight: 500;
77
- --subtitle5-style: normal;
78
- --subtitle5-line-height: 22px;
79
- --subtitle5-line-height-rem: 1.375rem;
80
- --subtitle6-family: "Montserrat";
81
- --subtitle6-size: 14px;
82
- --subtitle6-size-rem: 0.875rem;
83
- --subtitle6-weight: 600;
84
- --subtitle6-style: normal;
85
- --subtitle6-line-height: 22px;
86
- --subtitle6-line-height-rem: 1.375rem;
87
- --body1-family: "Montserrat";
88
- --body1-size: 16px;
89
- --body1-size-rem: 1rem;
90
- --body1-weight: 400;
91
- --body1-style: normal;
92
- --body1-line-height: 20px;
93
- --body1-line-height-rem: 1.25rem;
94
- --body2-family: "Montserrat";
95
- --body2-size: 16px;
96
- --body2-size-rem: 1rem;
97
- --body2-weight: 500;
98
- --body2-style: normal;
99
- --body2-line-height: 20px;
100
- --body2-line-height-rem: 1.25rem;
101
- --body3-family: "Montserrat";
102
- --body3-size: 14px;
103
- --body3-size-rem: 0.875rem;
104
- --body3-weight: 400;
105
- --body3-style: normal;
106
- --body3-line-height: 18px;
107
- --body3-line-height-rem: 1.125rem;
108
- --body4-family: "Montserrat";
109
- --body4-size: 14px;
110
- --body4-size-rem: 0.875rem;
111
- --body4-weight: 500;
112
- --body4-style: normal;
113
- --body4-line-height: 18px;
114
- --body4-line-height-rem: 1.125rem;
115
- --small1-family: "Montserrat";
116
- --small1-size: 12px;
117
- --small1-size-rem: 0.75rem;
118
- --small1-weight: 400;
119
- --small1-style: normal;
120
- --small1-line-height: 14px;
121
- --small1-line-height-rem: 0.875rem;
122
- --small2-family: "Montserrat";
123
- --small2-size: 12px;
124
- --small2-size-rem: 0.75rem;
125
- --small2-weight: 500;
126
- --small2-style: normal;
127
- --small2-line-height: 14px;
128
- --small2-line-height-rem: 0.875rem;
129
- --small3-family: "Montserrat";
130
- --small3-size: 12px;
131
- --small3-size-rem: 0.75rem;
132
- --small3-weight: 600;
133
- --small3-style: normal;
134
- --small3-line-height: 14px;
135
- --small3-line-height-rem: 0.875rem;
136
- --small4-family: "Montserrat";
137
- --small4-size: 10px;
138
- --small4-size-rem: 0.625rem;
139
- --small4-weight: 400;
140
- --small4-style: normal;
141
- --small4-line-height: 12px;
142
- --small4-line-height-rem: 0.75rem;
143
- --small5-family: "Montserrat";
144
- --small5-size: 10px;
145
- --small5-size-rem: 0.625rem;
146
- --small5-weight: 500;
147
- --small5-style: normal;
148
- --small5-line-height: 12px;
149
- --small5-line-height-rem: 0.75rem;
150
- --small6-family: "Montserrat";
151
- --small6-size: 10px;
152
- --small6-size-rem: 0.625rem;
153
- --small6-weight: 600;
154
- --small6-style: normal;
155
- --small6-line-height: 12px;
156
- --small6-line-height-rem: 0.75rem;
157
- --small7-family: "Montserrat";
158
- --small7-size: 8px;
159
- --small7-size-rem: 0.5rem;
160
- --small7-weight: 600;
161
- --small7-style: normal;
162
- --small7-line-height: 10px;
163
- --small7-line-height-rem: 0.625rem;
164
- --small8-family: "Montserrat";
165
- --small8-size: 8px;
166
- --small8-size-rem: 0.5rem;
167
- --small8-weight: 700;
168
- --small8-style: normal;
169
- --small8-line-height: 10px;
170
- --small8-line-height-rem: 0.625rem;
171
- --label-label1-family: "Montserrat";
172
- --label-label1-size: 12px;
173
- --label-label1-size-rem: 0.75rem;
174
- --label-label1-weight: 400;
175
- --label-label1-style: normal;
176
- --label-label1-line-height: 12px;
177
- --label-label1-line-height-rem: 0.75rem;
178
- --label-label2-family: "Montserrat";
179
- --label-label2-size: 10px;
180
- --label-label2-size-rem: 0.625rem;
181
- --label-label2-weight: 400;
182
- --label-label2-style: normal;
183
- --label-label2-line-height: 10px;
184
- --label-label2-line-height-rem: 0.625rem;
185
- --button-button-l-family: "Montserrat";
186
- --button-button-l-size: 16px;
187
- --button-button-l-size-rem: 1rem;
188
- --button-button-l-weight: 700;
189
- --button-button-l-style: normal;
190
- --button-button-l-line-height: 24px;
191
- --button-button-l-line-height-rem: 1.5rem;
192
- --button-button-ms-family: "Montserrat";
193
- --button-button-ms-size: 14px;
194
- --button-button-ms-size-rem: 0.875rem;
195
- --button-button-ms-weight: 700;
196
- --button-button-ms-style: normal;
197
- --button-button-ms-line-height: 22px;
198
- --button-button-ms-line-height-rem: 1.375rem;
199
- }
@@ -1,28 +0,0 @@
1
- :root {
2
- --radius-radius-xl: 16px;
3
- --radius-radius-xl-rem: 1rem;
4
- --radius-radius-l: 12px;
5
- --radius-radius-l-rem: 0.75rem;
6
- --radius-radius-m: 8px;
7
- --radius-radius-m-rem: 0.5rem;
8
- --radius-radius-s: 6px;
9
- --radius-radius-s-rem: 0.375rem;
10
- --radius-radius-xs: 4px;
11
- --radius-radius-xs-rem: 0.25rem;
12
- --spacing-spacing-xxs: 2px;
13
- --spacing-spacing-xxs-rem: 0.125rem;
14
- --spacing-spacing-xs: 4px;
15
- --spacing-spacing-xs-rem: 0.25rem;
16
- --spacing-spacing-s: 8px;
17
- --spacing-spacing-s-rem: 0.5rem;
18
- --spacing-spacing-m: 12px;
19
- --spacing-spacing-m-rem: 0.75rem;
20
- --spacing-spacing-l: 16px;
21
- --spacing-spacing-l-rem: 1rem;
22
- --spacing-spacing-xl: 24px;
23
- --spacing-spacing-xl-rem: 1.5rem;
24
- --spacing-spacing-xxl: 32px;
25
- --spacing-spacing-xxl-rem: 2rem;
26
- --spacing-spacing-xxxl: 48px;
27
- --spacing-spacing-xxxl-rem: 3rem;
28
- }
@@ -1,109 +0,0 @@
1
- export const withColorMixin = (variable) =>
2
- `color-mix(in srgb, var(${variable}) calc(100% * <alpha-value>), transparent)`;
3
-
4
- export const generateColorConfig = (
5
- baseName,
6
- variablePrefix,
7
- range = [5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150]
8
- ) => {
9
- const colors = {};
10
-
11
- range.forEach((num) => {
12
- colors[`${baseName}-${num}`] = withColorMixin(`--${variablePrefix}-${num}`);
13
- });
14
-
15
- colors[`${baseName}-foreground`] = withColorMixin(`--${baseName}-foreground`);
16
- colors[`${baseName}`] = withColorMixin(`--state-color-${baseName}-default`); // TODO should be dynamic
17
- colors[`${baseName}-default`] = withColorMixin(
18
- `--state-color-${baseName}-default`
19
- );
20
- colors[`${baseName}-hover`] = withColorMixin(
21
- `--state-color-${baseName}-hover`
22
- );
23
- colors[`${baseName}-stroke`] = withColorMixin(
24
- `--state-color-${baseName}-stroke`
25
- );
26
- colors[`${baseName}-hover-bg`] = withColorMixin(
27
- `--state-color-${baseName}-hover-bg`
28
- );
29
- colors[`${baseName}-pressed`] = withColorMixin(
30
- `--state-color-${baseName}-pressed`
31
- );
32
- colors[`${baseName}-active`] = withColorMixin(
33
- `--state-color-${baseName}-active`
34
- );
35
-
36
- // text
37
- colors[`${baseName}-text-solid`] = withColorMixin(
38
- `--state-color-${baseName}-text-solid`
39
- );
40
- colors[`${baseName}-text-outline`] = withColorMixin(
41
- `--state-color-${baseName}-text-outline`
42
- );
43
- colors[`${baseName}-text-pressed`] = withColorMixin(
44
- `--state-color-${baseName}-text-pressed`
45
- );
46
-
47
- return colors;
48
- };
49
-
50
- export function generateButtonStyles(type) {
51
- const themes = [
52
- "primary",
53
- "secondary",
54
- "tertiary",
55
- "info",
56
- "success",
57
- "warning",
58
- "error",
59
- ];
60
- const modes = ["solid", "outline", "flat"];
61
- return themes.reduce((prev, theme) => {
62
- modes.forEach((mode) => {
63
- const prefix = `button-${theme}-${mode}`;
64
- prev[`${prefix}-default`] = withColorMixin(`--${prefix}-default-${type}`);
65
- prev[`${prefix}-hover`] = withColorMixin(`--${prefix}-hover-${type}`);
66
- prev[`${prefix}-active`] = withColorMixin(`--${prefix}-active-${type}`);
67
- prev[`${prefix}-disabled`] = withColorMixin(
68
- `--${prefix}-disabled-${type}`
69
- );
70
- });
71
- return prev;
72
- }, {});
73
- }
74
-
75
- // action-button-solid-hover
76
- export function generateActionButtonStyles(type) {
77
- const modes = ["solid", "outline", "icon"];
78
-
79
- return modes.reduce((prev, mode) => {
80
- const prefix = `action-button-${mode}`;
81
- prev[`${prefix}-default`] = withColorMixin(`--${prefix}-default-${type}`);
82
- prev[`${prefix}-hover`] = withColorMixin(`--${prefix}-hover-${type}`);
83
- prev[`${prefix}-pressed`] = withColorMixin(`--${prefix}-pressed-${type}`);
84
- prev[`${prefix}-active`] = withColorMixin(`--${prefix}-active-${type}`);
85
- prev[`${prefix}-active-pressed`] = withColorMixin(
86
- `--${prefix}-active-pressed-${type}`
87
- );
88
- prev[`${prefix}-active-hover`] = withColorMixin(
89
- `--${prefix}-active-hover-${type}`
90
- );
91
- prev[`${prefix}-disabled`] = withColorMixin(`--${prefix}-disabled-${type}`);
92
- return prev;
93
- }, {});
94
- }
95
-
96
- // bg-primary-transparent-8
97
- export const generateTransparentColorConfig = (baseName, type) => {
98
- const colors = {};
99
-
100
- const range = [8, 12, 16, 24, 32, 48];
101
-
102
- range.forEach((num) => {
103
- colors[`${baseName}-transparent-${num}`] = withColorMixin(
104
- `--${type}-transparency-${baseName}-${num}`
105
- );
106
- });
107
-
108
- return colors;
109
- };