@central-ui/react 0.1.2 → 0.3.0

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 (287) hide show
  1. package/LICENSE +49 -0
  2. package/dist/components/accordion/index.d.ts +4 -3
  3. package/dist/components/accordion/index.js +7 -4
  4. package/dist/components/autocomplete/index.d.ts +23 -30
  5. package/dist/components/autocomplete/index.js +81 -56
  6. package/dist/components/avatar/index.d.ts +1 -2
  7. package/dist/components/avatar/index.js +0 -1
  8. package/dist/components/badge/index.d.ts +0 -1
  9. package/dist/components/badge/index.js +2 -2
  10. package/dist/components/banner/index.d.ts +1 -1
  11. package/dist/components/banner/index.js +23 -25
  12. package/dist/components/barchart/index.d.ts +106 -0
  13. package/dist/components/barchart/index.js +122 -0
  14. package/dist/components/breadcrumb/index.d.ts +0 -1
  15. package/dist/components/breadcrumb/index.js +6 -7
  16. package/dist/components/button/index.d.ts +2 -3
  17. package/dist/components/button/index.js +11 -12
  18. package/dist/components/card/index.d.ts +0 -1
  19. package/dist/components/card/index.js +0 -1
  20. package/dist/components/carousel/index.d.ts +169 -0
  21. package/dist/components/carousel/index.js +299 -0
  22. package/dist/components/checkbox/index.d.ts +13 -11
  23. package/dist/components/checkbox/index.js +51 -31
  24. package/dist/components/chip/index.d.ts +1 -1
  25. package/dist/components/chip/index.js +2 -3
  26. package/dist/components/combobox/index.d.ts +33 -49
  27. package/dist/components/combobox/index.js +102 -70
  28. package/dist/components/datepicker/index.d.ts +18 -31
  29. package/dist/components/datepicker/index.js +81 -99
  30. package/dist/components/dialog/index.d.ts +14 -27
  31. package/dist/components/dialog/index.js +17 -18
  32. package/dist/components/divider/index.d.ts +0 -1
  33. package/dist/components/divider/index.js +0 -1
  34. package/dist/components/donutchart/index.d.ts +100 -0
  35. package/dist/components/donutchart/index.js +178 -0
  36. package/dist/components/drawer/index.d.ts +12 -21
  37. package/dist/components/drawer/index.js +34 -36
  38. package/dist/components/empty/index.d.ts +3 -3
  39. package/dist/components/empty/index.js +4 -5
  40. package/dist/components/exception/index.d.ts +86 -0
  41. package/dist/components/exception/index.js +116 -0
  42. package/dist/components/fileupload/index.d.ts +4 -9
  43. package/dist/components/fileupload/index.js +26 -38
  44. package/dist/components/form/index.d.ts +0 -1
  45. package/dist/components/form/index.js +0 -1
  46. package/dist/components/horizontalbarchart/index.d.ts +120 -0
  47. package/dist/components/horizontalbarchart/index.js +193 -0
  48. package/dist/components/input/index.d.ts +22 -22
  49. package/dist/components/input/index.js +76 -105
  50. package/dist/components/linechart/index.d.ts +114 -0
  51. package/dist/components/linechart/index.js +139 -0
  52. package/dist/components/menu/index.d.ts +9 -11
  53. package/dist/components/menu/index.js +42 -39
  54. package/dist/components/metric/index.d.ts +0 -1
  55. package/dist/components/metric/index.js +0 -1
  56. package/dist/components/numberinput/index.d.ts +14 -21
  57. package/dist/components/numberinput/index.js +40 -53
  58. package/dist/components/otpinput/index.d.ts +14 -9
  59. package/dist/components/otpinput/index.js +25 -18
  60. package/dist/components/page/index.d.ts +0 -1
  61. package/dist/components/page/index.js +1 -3
  62. package/dist/components/passwordinput/index.d.ts +14 -11
  63. package/dist/components/passwordinput/index.js +36 -45
  64. package/dist/components/popover/index.d.ts +21 -19
  65. package/dist/components/popover/index.js +34 -15
  66. package/dist/components/radio/index.d.ts +13 -9
  67. package/dist/components/radio/index.js +69 -60
  68. package/dist/components/ratinginput/index.d.ts +13 -8
  69. package/dist/components/ratinginput/index.js +37 -17
  70. package/dist/components/select/index.d.ts +30 -30
  71. package/dist/components/select/index.js +80 -41
  72. package/dist/components/skeleton/index.d.ts +0 -1
  73. package/dist/components/skeleton/index.js +0 -1
  74. package/dist/components/slider/index.d.ts +14 -9
  75. package/dist/components/slider/index.js +64 -63
  76. package/dist/components/spinner/index.d.ts +1 -2
  77. package/dist/components/spinner/index.js +2 -3
  78. package/dist/components/splitter/index.d.ts +1 -2
  79. package/dist/components/splitter/index.js +5 -6
  80. package/dist/components/stepper/index.d.ts +8 -20
  81. package/dist/components/stepper/index.js +15 -16
  82. package/dist/components/switch/index.d.ts +12 -10
  83. package/dist/components/switch/index.js +46 -30
  84. package/dist/components/table/index.d.ts +3 -3
  85. package/dist/components/table/index.js +14 -13
  86. package/dist/components/tabs/index.d.ts +0 -1
  87. package/dist/components/tabs/index.js +1 -2
  88. package/dist/components/textarea/index.d.ts +14 -11
  89. package/dist/components/textarea/index.js +37 -46
  90. package/dist/components/textlink/index.d.ts +3 -1
  91. package/dist/components/textlink/index.js +4 -1
  92. package/dist/components/toast/index.d.ts +8 -14
  93. package/dist/components/toast/index.js +48 -48
  94. package/dist/components/toggle/index.d.ts +0 -1
  95. package/dist/components/toggle/index.js +17 -24
  96. package/dist/components/tooltip/index.d.ts +11 -13
  97. package/dist/components/tooltip/index.js +12 -9
  98. package/dist/components/tour/index.d.ts +154 -0
  99. package/dist/components/tour/index.js +280 -0
  100. package/dist/index.d.ts +7 -2
  101. package/dist/index.js +7 -1
  102. package/dist/types/Icon.d.ts +0 -1
  103. package/dist/types/Icon.js +0 -1
  104. package/dist/types/Style.d.ts +0 -1
  105. package/dist/types/Style.js +0 -1
  106. package/dist/types/Validation.d.ts +12 -0
  107. package/dist/types/Validation.js +1 -0
  108. package/dist/utils/ArkStateToDataAttributes.d.ts +0 -1
  109. package/dist/utils/ArkStateToDataAttributes.js +0 -1
  110. package/dist/utils/Validation.d.ts +14 -0
  111. package/dist/utils/Validation.js +23 -0
  112. package/dist/utils/asChild.d.ts +41 -0
  113. package/dist/utils/asChild.js +15 -0
  114. package/dist/utils/icons.d.ts +24 -0
  115. package/dist/utils/icons.js +160 -0
  116. package/dist/utils/useForwardClickToInput.d.ts +0 -1
  117. package/dist/utils/useForwardClickToInput.js +0 -1
  118. package/dist/utils/virtualization/useVirtualizedAutocomplete.d.ts +0 -1
  119. package/dist/utils/virtualization/useVirtualizedAutocomplete.js +0 -1
  120. package/dist/utils/virtualization/useVirtualizedCombobox.d.ts +0 -1
  121. package/dist/utils/virtualization/useVirtualizedCombobox.js +0 -1
  122. package/dist/utils/virtualization/useVirtualizedTable.d.ts +0 -1
  123. package/dist/utils/virtualization/useVirtualizedTable.js +0 -1
  124. package/package.json +14 -11
  125. package/src/presets/shopify-polaris/shopify-polaris-autocomplete.css +2 -2
  126. package/src/presets/shopify-polaris/shopify-polaris-barchart.css +64 -0
  127. package/src/presets/shopify-polaris/shopify-polaris-carousel.css +62 -0
  128. package/src/presets/shopify-polaris/shopify-polaris-checkbox.css +2 -2
  129. package/src/presets/shopify-polaris/shopify-polaris-combobox.css +2 -2
  130. package/src/presets/shopify-polaris/shopify-polaris-datepicker.css +4 -4
  131. package/src/presets/shopify-polaris/shopify-polaris-dialog.css +16 -0
  132. package/src/presets/shopify-polaris/shopify-polaris-donutchart.css +172 -0
  133. package/src/presets/shopify-polaris/shopify-polaris-drawer.css +16 -0
  134. package/src/presets/shopify-polaris/shopify-polaris-exception.css +40 -0
  135. package/src/presets/shopify-polaris/shopify-polaris-fileupload.css +1 -1
  136. package/src/presets/shopify-polaris/shopify-polaris-horizontalbarchart.css +60 -0
  137. package/src/presets/shopify-polaris/shopify-polaris-input.css +2 -2
  138. package/src/presets/shopify-polaris/shopify-polaris-linechart.css +68 -0
  139. package/src/presets/shopify-polaris/shopify-polaris-menu.css +16 -0
  140. package/src/presets/shopify-polaris/shopify-polaris-numberinput.css +2 -2
  141. package/src/presets/shopify-polaris/shopify-polaris-otpinput.css +2 -2
  142. package/src/presets/shopify-polaris/shopify-polaris-passwordinput.css +2 -2
  143. package/src/presets/shopify-polaris/shopify-polaris-popover.css +29 -0
  144. package/src/presets/shopify-polaris/shopify-polaris-radio.css +2 -2
  145. package/src/presets/shopify-polaris/shopify-polaris-ratinginput.css +2 -2
  146. package/src/presets/shopify-polaris/shopify-polaris-select.css +2 -2
  147. package/src/presets/shopify-polaris/shopify-polaris-slider.css +2 -2
  148. package/src/presets/shopify-polaris/shopify-polaris-stepper.css +16 -0
  149. package/src/presets/shopify-polaris/shopify-polaris-switch.css +2 -2
  150. package/src/presets/shopify-polaris/shopify-polaris-textarea.css +2 -2
  151. package/src/presets/shopify-polaris/shopify-polaris-tooltip.css +16 -0
  152. package/src/presets/shopify-polaris/shopify-polaris.css +6 -0
  153. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-autocomplete.css +2 -2
  154. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-barchart.css +64 -0
  155. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-carousel.css +55 -0
  156. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-checkbox.css +2 -2
  157. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-combobox.css +2 -2
  158. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-datepicker.css +2 -2
  159. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-dialog.css +9 -0
  160. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-donutchart.css +172 -0
  161. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-drawer.css +9 -0
  162. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-exception.css +40 -0
  163. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-fileupload.css +1 -1
  164. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-horizontalbarchart.css +60 -0
  165. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-input.css +2 -2
  166. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-linechart.css +68 -0
  167. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-menu.css +9 -0
  168. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-numberinput.css +2 -2
  169. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-otpinput.css +2 -2
  170. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-passwordinput.css +2 -2
  171. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-popover.css +22 -0
  172. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-radio.css +2 -2
  173. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-ratinginput.css +2 -2
  174. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-slider.css +2 -2
  175. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-stepper.css +9 -0
  176. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-switch.css +2 -2
  177. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-textarea.css +2 -2
  178. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-tooltip.css +9 -0
  179. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy.css +6 -0
  180. package/dist/components/accordion/index.d.ts.map +0 -1
  181. package/dist/components/accordion/index.js.map +0 -1
  182. package/dist/components/autocomplete/index.d.ts.map +0 -1
  183. package/dist/components/autocomplete/index.js.map +0 -1
  184. package/dist/components/avatar/index.d.ts.map +0 -1
  185. package/dist/components/avatar/index.js.map +0 -1
  186. package/dist/components/badge/index.d.ts.map +0 -1
  187. package/dist/components/badge/index.js.map +0 -1
  188. package/dist/components/banner/index.d.ts.map +0 -1
  189. package/dist/components/banner/index.js.map +0 -1
  190. package/dist/components/breadcrumb/index.d.ts.map +0 -1
  191. package/dist/components/breadcrumb/index.js.map +0 -1
  192. package/dist/components/button/index.d.ts.map +0 -1
  193. package/dist/components/button/index.js.map +0 -1
  194. package/dist/components/card/index.d.ts.map +0 -1
  195. package/dist/components/card/index.js.map +0 -1
  196. package/dist/components/checkbox/index.d.ts.map +0 -1
  197. package/dist/components/checkbox/index.js.map +0 -1
  198. package/dist/components/chip/index.d.ts.map +0 -1
  199. package/dist/components/chip/index.js.map +0 -1
  200. package/dist/components/combobox/index.d.ts.map +0 -1
  201. package/dist/components/combobox/index.js.map +0 -1
  202. package/dist/components/datepicker/index.d.ts.map +0 -1
  203. package/dist/components/datepicker/index.js.map +0 -1
  204. package/dist/components/dialog/index.d.ts.map +0 -1
  205. package/dist/components/dialog/index.js.map +0 -1
  206. package/dist/components/divider/index.d.ts.map +0 -1
  207. package/dist/components/divider/index.js.map +0 -1
  208. package/dist/components/drawer/index.d.ts.map +0 -1
  209. package/dist/components/drawer/index.js.map +0 -1
  210. package/dist/components/empty/index.d.ts.map +0 -1
  211. package/dist/components/empty/index.js.map +0 -1
  212. package/dist/components/fileupload/index.d.ts.map +0 -1
  213. package/dist/components/fileupload/index.js.map +0 -1
  214. package/dist/components/form/index.d.ts.map +0 -1
  215. package/dist/components/form/index.js.map +0 -1
  216. package/dist/components/input/index.d.ts.map +0 -1
  217. package/dist/components/input/index.js.map +0 -1
  218. package/dist/components/menu/index.d.ts.map +0 -1
  219. package/dist/components/menu/index.js.map +0 -1
  220. package/dist/components/metric/index.d.ts.map +0 -1
  221. package/dist/components/metric/index.js.map +0 -1
  222. package/dist/components/numberinput/index.d.ts.map +0 -1
  223. package/dist/components/numberinput/index.js.map +0 -1
  224. package/dist/components/otpinput/index.d.ts.map +0 -1
  225. package/dist/components/otpinput/index.js.map +0 -1
  226. package/dist/components/page/index.d.ts.map +0 -1
  227. package/dist/components/page/index.js.map +0 -1
  228. package/dist/components/passwordinput/index.d.ts.map +0 -1
  229. package/dist/components/passwordinput/index.js.map +0 -1
  230. package/dist/components/popover/index.d.ts.map +0 -1
  231. package/dist/components/popover/index.js.map +0 -1
  232. package/dist/components/radio/index.d.ts.map +0 -1
  233. package/dist/components/radio/index.js.map +0 -1
  234. package/dist/components/ratinginput/index.d.ts.map +0 -1
  235. package/dist/components/ratinginput/index.js.map +0 -1
  236. package/dist/components/select/index.d.ts.map +0 -1
  237. package/dist/components/select/index.js.map +0 -1
  238. package/dist/components/skeleton/index.d.ts.map +0 -1
  239. package/dist/components/skeleton/index.js.map +0 -1
  240. package/dist/components/slider/index.d.ts.map +0 -1
  241. package/dist/components/slider/index.js.map +0 -1
  242. package/dist/components/spinner/index.d.ts.map +0 -1
  243. package/dist/components/spinner/index.js.map +0 -1
  244. package/dist/components/splitter/index.d.ts.map +0 -1
  245. package/dist/components/splitter/index.js.map +0 -1
  246. package/dist/components/stepper/index.d.ts.map +0 -1
  247. package/dist/components/stepper/index.js.map +0 -1
  248. package/dist/components/switch/index.d.ts.map +0 -1
  249. package/dist/components/switch/index.js.map +0 -1
  250. package/dist/components/table/index.d.ts.map +0 -1
  251. package/dist/components/table/index.js.map +0 -1
  252. package/dist/components/tabs/index.d.ts.map +0 -1
  253. package/dist/components/tabs/index.js.map +0 -1
  254. package/dist/components/textarea/index.d.ts.map +0 -1
  255. package/dist/components/textarea/index.js.map +0 -1
  256. package/dist/components/textlink/index.d.ts.map +0 -1
  257. package/dist/components/textlink/index.js.map +0 -1
  258. package/dist/components/toast/index.d.ts.map +0 -1
  259. package/dist/components/toast/index.js.map +0 -1
  260. package/dist/components/toggle/index.d.ts.map +0 -1
  261. package/dist/components/toggle/index.js.map +0 -1
  262. package/dist/components/tooltip/index.d.ts.map +0 -1
  263. package/dist/components/tooltip/index.js.map +0 -1
  264. package/dist/index.d.ts.map +0 -1
  265. package/dist/index.js.map +0 -1
  266. package/dist/types/Icon.d.ts.map +0 -1
  267. package/dist/types/Icon.js.map +0 -1
  268. package/dist/types/Style.d.ts.map +0 -1
  269. package/dist/types/Style.js.map +0 -1
  270. package/dist/types/Tone.d.ts +0 -4
  271. package/dist/types/Tone.d.ts.map +0 -1
  272. package/dist/types/Tone.js +0 -2
  273. package/dist/types/Tone.js.map +0 -1
  274. package/dist/utils/ArkStateToDataAttributes.d.ts.map +0 -1
  275. package/dist/utils/ArkStateToDataAttributes.js.map +0 -1
  276. package/dist/utils/Tone.d.ts +0 -3
  277. package/dist/utils/Tone.d.ts.map +0 -1
  278. package/dist/utils/Tone.js +0 -7
  279. package/dist/utils/Tone.js.map +0 -1
  280. package/dist/utils/useForwardClickToInput.d.ts.map +0 -1
  281. package/dist/utils/useForwardClickToInput.js.map +0 -1
  282. package/dist/utils/virtualization/useVirtualizedAutocomplete.d.ts.map +0 -1
  283. package/dist/utils/virtualization/useVirtualizedAutocomplete.js.map +0 -1
  284. package/dist/utils/virtualization/useVirtualizedCombobox.d.ts.map +0 -1
  285. package/dist/utils/virtualization/useVirtualizedCombobox.js.map +0 -1
  286. package/dist/utils/virtualization/useVirtualizedTable.d.ts.map +0 -1
  287. package/dist/utils/virtualization/useVirtualizedTable.js.map +0 -1
@@ -0,0 +1,40 @@
1
+ /* exception */
2
+ @layer components {
3
+ :where(:not([data-style-disabled])) {
4
+ &:where([data-component='exception-surface']) {
5
+ @apply flex h-full w-full flex-1 flex-col items-center justify-center p-4;
6
+ }
7
+
8
+ &:where([data-component='exception-body']) {
9
+ @apply flex h-fit w-full max-w-150 flex-col items-center justify-center gap-1;
10
+ }
11
+
12
+ &:where([data-component='exception-title']) {
13
+ @apply text-sm font-semibold text-center text-neutral-950;
14
+ }
15
+
16
+ &:where([data-component='exception-title'][data-tone='critical']) {
17
+ @apply text-red-700;
18
+ }
19
+
20
+ &:where([data-component='exception-description']) {
21
+ @apply text-sm font-normal text-center text-neutral-600;
22
+ }
23
+
24
+ &:where([data-component='exception-image']) {
25
+ @apply mb-4 h-16 w-fit;
26
+ }
27
+
28
+ &:where([data-component='exception-icon']) {
29
+ @apply mb-2 h-8 w-fit text-neutral-950;
30
+ }
31
+
32
+ &:where([data-component='exception-actionslist']) {
33
+ @apply mt-3 flex w-fit items-center gap-4;
34
+ }
35
+
36
+ &:where([data-component='exception-helptext']) {
37
+ @apply mt-3 text-xs text-center text-neutral-500;
38
+ }
39
+ }
40
+ }
@@ -13,7 +13,7 @@
13
13
  @apply bg-white flex w-full cursor-pointer flex-col items-center gap-1 rounded-xl border border-dashed border-neutral-300 p-8 pt-8 shadow-xs hover:bg-neutral-50 data-[dragging]:border-blue-500 data-[dragging]:bg-blue-50;
14
14
  }
15
15
 
16
- &:where([data-component='fileupload-filepickeropenbutton']) {
16
+ &:where([data-component='fileupload-pickerbutton']) {
17
17
  @apply mt-2 relative flex w-fit cursor-pointer items-center justify-center gap-1.5 rounded-full font-medium text-nowrap select-none outline-none focus-visible:outline-2 focus-visible:outline-blue-500 enabled:active:scale-97 transition-[background-color,box-shadow,transform] duration-400 ease-[cubic-bezier(0.2,0.8,0,1)] motion-reduce:transition-none disabled:pointer-events-none disabled:cursor-default min-h-7 px-4 py-1 text-[0.8rem] leading-4;
18
18
  &:not(:disabled) {
19
19
  @apply bg-neutral-200 text-neutral-950 hover:bg-neutral-300 focus-visible:bg-neutral-300 active:bg-neutral-300 aria-expanded:bg-neutral-300;
@@ -0,0 +1,60 @@
1
+ /* horizontalbarchart */
2
+ @layer components {
3
+ :where(:not([data-style-disabled])) {
4
+ &:where([data-component='horizontalbarchart-gridline']) {
5
+ @apply stroke-neutral-200;
6
+ }
7
+
8
+ &:where([data-component='horizontalbarchart-xaxis-ticklabel']) {
9
+ @apply fill-neutral-500;
10
+ }
11
+
12
+ &:where([data-component='horizontalbarchart-xaxis-line']) {
13
+ @apply stroke-neutral-300;
14
+ }
15
+
16
+ &:where([data-component='horizontalbarchart-xaxis-tickline']) {
17
+ @apply stroke-neutral-300;
18
+ }
19
+
20
+ &:where([data-component='horizontalbarchart-hoverguide']) {
21
+ @apply stroke-neutral-400/50;
22
+ }
23
+
24
+ &:where([data-component='horizontalbarchart-bar']) {
25
+ @apply fill-[#13ACF0];
26
+ }
27
+
28
+ &:where([data-component='horizontalbarchart-bar'])[data-active] {
29
+ @apply opacity-80;
30
+ }
31
+
32
+ &:where([data-component='horizontalbarchart-label']) {
33
+ @apply fill-neutral-500;
34
+ }
35
+
36
+ &:where([data-component='horizontalbarchart-value']) {
37
+ @apply fill-neutral-500;
38
+ }
39
+
40
+ &:where([data-component='horizontalbarchart-tooltip']) {
41
+ @apply grid min-w-56 grid-cols-[auto_1fr] items-center gap-x-1 gap-y-2 rounded-md border border-neutral-700 bg-neutral-900 p-2.5 shadow-md;
42
+ }
43
+
44
+ &:where([data-component='horizontalbarchart-tooltiptitle']) {
45
+ @apply col-span-full row-start-1 text-xs font-semibold leading-4 text-neutral-200;
46
+ }
47
+
48
+ &:where([data-component='horizontalbarchart-tooltiplabel']) {
49
+ @apply col-start-2 row-start-2 text-xs font-medium leading-4 text-neutral-400;
50
+ }
51
+
52
+ &:where([data-component='horizontalbarchart-tooltipvalue']) {
53
+ @apply col-span-full row-start-3 justify-self-start rounded-md bg-neutral-600 px-1.25 py-0.5 font-mono text-sm font-medium leading-5 text-neutral-200 tabular-nums;
54
+ }
55
+
56
+ &:where([data-component='horizontalbarchart-tooltipcolorindicator']) {
57
+ @apply col-start-1 row-start-2 h-2.5 w-2.5 rounded-sm bg-[#13ACF0];
58
+ }
59
+ }
60
+ }
@@ -7,10 +7,10 @@
7
7
 
8
8
  &:where([data-component='input-inputgroup']) {
9
9
  @apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-300 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
10
- &[data-tone='invalid'] {
10
+ &[data-validation='error'] {
11
11
  @apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
12
12
  }
13
- &[data-tone='valid'] {
13
+ &[data-validation='success'] {
14
14
  @apply border-green-600 focus-within:border-green-600 focus-within:ring-green-600/10;
15
15
  }
16
16
  }
@@ -0,0 +1,68 @@
1
+ /* linechart */
2
+ @layer components {
3
+ :where(:not([data-style-disabled])) {
4
+ &:where([data-component='linechart-gridline']) {
5
+ @apply stroke-neutral-200;
6
+ }
7
+
8
+ &:where([data-component='linechart-xaxis-ticklabel']) {
9
+ @apply fill-neutral-500;
10
+ }
11
+
12
+ &:where([data-component='linechart-yaxis-ticklabel']) {
13
+ @apply fill-neutral-500;
14
+ }
15
+
16
+ &:where([data-component='linechart-xaxis-line']) {
17
+ @apply stroke-neutral-300;
18
+ }
19
+
20
+ &:where([data-component='linechart-yaxis-line']) {
21
+ @apply stroke-neutral-300;
22
+ }
23
+
24
+ &:where([data-component='linechart-xaxis-tickline']) {
25
+ @apply stroke-neutral-300;
26
+ }
27
+
28
+ &:where([data-component='linechart-yaxis-tickline']) {
29
+ @apply stroke-neutral-300;
30
+ }
31
+
32
+ &:where([data-component='linechart-hoverguide']) {
33
+ @apply stroke-neutral-400/50;
34
+ }
35
+
36
+ &:where([data-component='linechart-line']) {
37
+ @apply stroke-[#13ACF0];
38
+ }
39
+
40
+ &:where([data-component='linechart-activedot']) {
41
+ @apply fill-[#13ACF0] stroke-white;
42
+ }
43
+
44
+ &:where([data-component='linechart-area']) {
45
+ @apply fill-[#13ACF0]/12;
46
+ }
47
+
48
+ &:where([data-component='linechart-tooltip']) {
49
+ @apply grid min-w-56 grid-cols-[auto_1fr] items-center gap-x-1 gap-y-2 rounded-md border border-neutral-700 bg-neutral-900 p-2.5 shadow-md;
50
+ }
51
+
52
+ &:where([data-component='linechart-tooltiptitle']) {
53
+ @apply col-span-full row-start-1 text-xs font-semibold leading-4 text-neutral-200;
54
+ }
55
+
56
+ &:where([data-component='linechart-tooltiplabel']) {
57
+ @apply col-start-2 row-start-2 text-xs font-medium leading-4 text-neutral-400;
58
+ }
59
+
60
+ &:where([data-component='linechart-tooltipvalue']) {
61
+ @apply col-span-full row-start-3 justify-self-start rounded-md bg-neutral-600 px-1.25 py-0.5 font-mono text-sm font-medium leading-5 text-neutral-200 tabular-nums;
62
+ }
63
+
64
+ &:where([data-component='linechart-tooltipcolorindicator']) {
65
+ @apply col-start-1 row-start-2 h-2.5 w-2.5 rounded-sm bg-[#13ACF0];
66
+ }
67
+ }
68
+ }
@@ -135,3 +135,19 @@
135
135
  }
136
136
  }
137
137
  }
138
+
139
+ /* menu action buttons, styled like a secondary Button */
140
+ @layer components {
141
+ :where(:not([data-style-disabled])) {
142
+ &:where([data-component='menu-openbutton']) {
143
+ @apply relative flex w-fit cursor-pointer items-center justify-center gap-1.5 rounded-full font-medium text-nowrap select-none outline-none focus-visible:outline-2 focus-visible:outline-blue-500 enabled:active:scale-97 transition-[background-color,box-shadow,transform] duration-400 ease-[cubic-bezier(0.2,0.8,0,1)] motion-reduce:transition-none disabled:pointer-events-none disabled:cursor-default min-h-7 px-4 py-1 text-[0.8rem] leading-4;
144
+
145
+ &:not(:disabled) {
146
+ @apply bg-neutral-200 text-neutral-950 hover:bg-neutral-300 focus-visible:bg-neutral-300 active:bg-neutral-300 aria-expanded:bg-neutral-300;
147
+ }
148
+ &:disabled {
149
+ @apply bg-black/3 text-neutral-400;
150
+ }
151
+ }
152
+ }
153
+ }
@@ -53,10 +53,10 @@
53
53
 
54
54
  &:where([data-component='numberinput-inputgroup']) {
55
55
  @apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-300 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
56
- &[data-tone='invalid'] {
56
+ &[data-validation='error'] {
57
57
  @apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
58
58
  }
59
- &[data-tone='valid'] {
59
+ &[data-validation='success'] {
60
60
  @apply border-green-600 focus-within:border-green-600 focus-within:ring-green-600/10;
61
61
  }
62
62
  }
@@ -3,10 +3,10 @@
3
3
  :where(:not([data-style-disabled])) {
4
4
  &:where([data-component='otpinput-input']) {
5
5
  @apply m-0 h-9.5 aspect-square w-9.5 rounded-xl border border-neutral-300 bg-white p-0 text-center text-base text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus:border-blue-500 focus:ring-2 focus:ring-blue-500/10 focus:shadow-sm data-disabled:cursor-not-allowed data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:bg-neutral-50 placeholder:text-neutral-600;
6
- &[data-tone='invalid'] {
6
+ &[data-validation='error'] {
7
7
  @apply border-red-500 focus:border-red-500 focus:ring-red-500/10;
8
8
  }
9
- &[data-tone='valid'] {
9
+ &[data-validation='success'] {
10
10
  @apply border-green-600 focus:border-green-600 focus:ring-green-600/10;
11
11
  }
12
12
  }
@@ -7,10 +7,10 @@
7
7
 
8
8
  &:where([data-component='passwordinput-inputgroup']) {
9
9
  @apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-300 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
10
- &[data-tone='invalid'] {
10
+ &[data-validation='error'] {
11
11
  @apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
12
12
  }
13
- &[data-tone='valid'] {
13
+ &[data-validation='success'] {
14
14
  @apply border-green-600 focus-within:border-green-600 focus-within:ring-green-600/10;
15
15
  }
16
16
  }
@@ -45,3 +45,32 @@
45
45
  }
46
46
  }
47
47
  }
48
+
49
+ /* popover action buttons, styled like a secondary Button */
50
+ @layer components {
51
+ :where(:not([data-style-disabled])) {
52
+ &:where([data-component='popover-openbutton']) {
53
+ @apply relative flex w-fit cursor-pointer items-center justify-center gap-1.5 rounded-full font-medium text-nowrap select-none outline-none focus-visible:outline-2 focus-visible:outline-blue-500 enabled:active:scale-97 transition-[background-color,box-shadow,transform] duration-400 ease-[cubic-bezier(0.2,0.8,0,1)] motion-reduce:transition-none disabled:pointer-events-none disabled:cursor-default min-h-7 px-4 py-1 text-[0.8rem] leading-4;
54
+
55
+ &:not(:disabled) {
56
+ @apply bg-neutral-200 text-neutral-950 hover:bg-neutral-300 focus-visible:bg-neutral-300 active:bg-neutral-300 aria-expanded:bg-neutral-300;
57
+ }
58
+ &:disabled {
59
+ @apply bg-black/3 text-neutral-400;
60
+ }
61
+ }
62
+ }
63
+ }
64
+
65
+ /* popover close button, cloned from Dialog's */
66
+ @layer components {
67
+ :where(:not([data-style-disabled])) {
68
+ &:where([data-component='popover-closebutton']) {
69
+ @apply absolute top-4 right-4 flex h-7 aspect-square w-7 shrink-0 cursor-pointer items-center justify-center rounded-full border border-neutral-200 bg-white p-0 text-neutral-950 shadow-sm hover:bg-neutral-100 hover:text-neutral-950 active:bg-neutral-200 active:text-neutral-950 focus-visible:outline-2 focus-visible:outline-blue-500;
70
+ }
71
+
72
+ &:where([data-component='popover-closebuttonicon']) {
73
+ @apply h-4 w-fit shrink-0 text-inherit;
74
+ }
75
+ }
76
+ }
@@ -19,10 +19,10 @@
19
19
 
20
20
  &:where([data-component='radio-itembutton']) {
21
21
  @apply mt-0.5 items-center justify-center flex aspect-square size-4 shrink-0 cursor-pointer rounded-full border border-neutral-300 bg-white shadow-xs transition-all data-checked:border-4 data-checked:border-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 data-disabled:cursor-not-allowed data-disabled:opacity-50;
22
- &[data-tone='invalid'] {
22
+ &[data-validation='error'] {
23
23
  @apply border-red-600 data-checked:border-red-600;
24
24
  }
25
- &[data-tone='valid'] {
25
+ &[data-validation='success'] {
26
26
  @apply border-green-700 data-checked:border-green-700;
27
27
  }
28
28
  }
@@ -19,10 +19,10 @@
19
19
 
20
20
  &:where([data-component='ratinginput-staricon']) {
21
21
  @apply pointer-events-none h-5 w-fit text-neutral-950 data-highlighted:fill-current data-highlighted:data-half:fill-[var(--star-half-fill)] rtl:data-highlighted:data-half:fill-[var(--star-half-fill-rtl)];
22
- &[data-tone='valid'] {
22
+ &[data-validation='success'] {
23
23
  @apply text-green-700;
24
24
  }
25
- &[data-tone='invalid'] {
25
+ &[data-validation='error'] {
26
26
  @apply text-red-600;
27
27
  }
28
28
  }
@@ -58,10 +58,10 @@
58
58
 
59
59
  &:where([data-component='select-openbutton']) {
60
60
  @apply flex h-8.5 w-fit shrink-0 cursor-pointer items-center justify-center gap-0 overflow-hidden rounded-xl border border-neutral-300 bg-white px-2.5 text-sm font-normal text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-visible:border-blue-500 focus-visible:ring-2 focus-visible:ring-blue-500/10 focus-visible:shadow-sm disabled:pointer-events-none disabled:bg-white disabled:text-neutral-400 disabled:shadow-none data-popup-open:border-blue-500 data-popup-open:ring-2 data-popup-open:ring-blue-500/10 data-popup-open:shadow-sm;
61
- &[data-tone='invalid'] {
61
+ &[data-validation='error'] {
62
62
  @apply border-red-500 focus-visible:border-red-500 focus-visible:ring-red-500/10 data-popup-open:border-red-500 data-popup-open:ring-red-500/10;
63
63
  }
64
- &[data-tone='valid'] {
64
+ &[data-validation='success'] {
65
65
  @apply border-green-600 focus-visible:border-green-600 focus-visible:ring-green-600/10 data-popup-open:border-green-600 data-popup-open:ring-green-600/10;
66
66
  }
67
67
  }
@@ -32,10 +32,10 @@
32
32
  &[data-orientation='vertical'] {
33
33
  @apply h-auto w-full;
34
34
  }
35
- &[data-tone='invalid'] {
35
+ &[data-validation='error'] {
36
36
  @apply bg-red-600;
37
37
  }
38
- &[data-tone='valid'] {
38
+ &[data-validation='success'] {
39
39
  @apply bg-green-700;
40
40
  }
41
41
  }
@@ -53,3 +53,19 @@
53
53
  }
54
54
  }
55
55
  }
56
+
57
+ /* stepper action buttons, styled like a secondary Button */
58
+ @layer components {
59
+ :where(:not([data-style-disabled])) {
60
+ &:where([data-component='stepper-nextbutton'], [data-component='stepper-previousbutton']) {
61
+ @apply relative flex w-fit cursor-pointer items-center justify-center gap-1.5 rounded-full font-medium text-nowrap select-none outline-none focus-visible:outline-2 focus-visible:outline-blue-500 enabled:active:scale-97 transition-[background-color,box-shadow,transform] duration-400 ease-[cubic-bezier(0.2,0.8,0,1)] motion-reduce:transition-none disabled:pointer-events-none disabled:cursor-default min-h-7 px-4 py-1 text-[0.8rem] leading-4;
62
+
63
+ &:not(:disabled) {
64
+ @apply bg-neutral-200 text-neutral-950 hover:bg-neutral-300 focus-visible:bg-neutral-300 active:bg-neutral-300 aria-expanded:bg-neutral-300;
65
+ }
66
+ &:disabled {
67
+ @apply bg-black/3 text-neutral-400;
68
+ }
69
+ }
70
+ }
71
+ }
@@ -7,10 +7,10 @@
7
7
 
8
8
  &:where([data-component='switch-button']) {
9
9
  @apply col-start-1 row-start-1 inline-flex h-4.5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-neutral-300 bg-white transition-all hover:brightness-95 data-checked:border-neutral-950 data-checked:bg-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 data-disabled:cursor-not-allowed data-disabled:opacity-50;
10
- &[data-tone='invalid'] {
10
+ &[data-validation='error'] {
11
11
  @apply border-red-600 bg-red-50 data-checked:border-red-600 data-checked:bg-red-600;
12
12
  }
13
- &[data-tone='valid'] {
13
+ &[data-validation='success'] {
14
14
  @apply border-green-700 bg-green-50 data-checked:border-green-700 data-checked:bg-green-700;
15
15
  }
16
16
  }
@@ -7,10 +7,10 @@
7
7
 
8
8
  &:where([data-component='textarea-textareagroup']) {
9
9
  @apply p-0 flex w-full min-w-0 flex-col items-stretch overflow-hidden rounded-xl border border-neutral-300 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
10
- &[data-tone='invalid'] {
10
+ &[data-validation='error'] {
11
11
  @apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
12
12
  }
13
- &[data-tone='valid'] {
13
+ &[data-validation='success'] {
14
14
  @apply border-green-600 focus-within:border-green-600 focus-within:ring-green-600/10;
15
15
  }
16
16
  }
@@ -29,3 +29,19 @@
29
29
  }
30
30
  }
31
31
  }
32
+
33
+ /* tooltip action buttons, styled like a secondary Button */
34
+ @layer components {
35
+ :where(:not([data-style-disabled])) {
36
+ &:where([data-component='tooltip-openbutton']) {
37
+ @apply relative flex w-fit cursor-pointer items-center justify-center gap-1.5 rounded-full font-medium text-nowrap select-none outline-none focus-visible:outline-2 focus-visible:outline-blue-500 enabled:active:scale-97 transition-[background-color,box-shadow,transform] duration-400 ease-[cubic-bezier(0.2,0.8,0,1)] motion-reduce:transition-none disabled:pointer-events-none disabled:cursor-default min-h-7 px-4 py-1 text-[0.8rem] leading-4;
38
+
39
+ &:not(:disabled) {
40
+ @apply bg-neutral-200 text-neutral-950 hover:bg-neutral-300 focus-visible:bg-neutral-300 active:bg-neutral-300 aria-expanded:bg-neutral-300;
41
+ }
42
+ &:disabled {
43
+ @apply bg-black/3 text-neutral-400;
44
+ }
45
+ }
46
+ }
47
+ }
@@ -29,10 +29,12 @@
29
29
  @import './shopify-polaris-chip.css';
30
30
  @import './shopify-polaris-textlink.css';
31
31
  @import './shopify-polaris-empty.css';
32
+ @import './shopify-polaris-exception.css';
32
33
  @import './shopify-polaris-spinner.css';
33
34
  @import './shopify-polaris-popover.css';
34
35
  @import './shopify-polaris-table.css';
35
36
  @import './shopify-polaris-card.css';
37
+ @import './shopify-polaris-carousel.css';
36
38
  @import './shopify-polaris-skeleton.css';
37
39
  @import './shopify-polaris-avatar.css';
38
40
  @import './shopify-polaris-metric.css';
@@ -379,3 +381,7 @@
379
381
  transition-duration: 0.01ms;
380
382
  }
381
383
  }
384
+ @import './shopify-polaris-barchart.css';
385
+ @import './shopify-polaris-linechart.css';
386
+ @import './shopify-polaris-horizontalbarchart.css';
387
+ @import './shopify-polaris-donutchart.css';
@@ -76,10 +76,10 @@
76
76
 
77
77
  &:where([data-component='autocomplete-inputgroup']) {
78
78
  @apply flex w-full min-w-0 items-center overflow-hidden rounded-lg border border-neutral-400 bg-white p-0 text-[0.8rem] text-neutral-900 outline-blue-600 outline-offset-1! hover:bg-neutral-50 focus-within:outline-2 data-disabled:cursor-not-allowed data-disabled:bg-neutral-100 data-disabled:text-neutral-500 data-disabled:hover:bg-neutral-100;
79
- &[data-tone='invalid'] {
79
+ &[data-validation='error'] {
80
80
  @apply border-red-800;
81
81
  }
82
- &[data-tone='valid'] {
82
+ &[data-validation='success'] {
83
83
  @apply border-green-700;
84
84
  }
85
85
  }
@@ -0,0 +1,64 @@
1
+ /* barchart */
2
+ @layer components {
3
+ :where(:not([data-style-disabled])) {
4
+ &:where([data-component='barchart-gridline']) {
5
+ @apply stroke-neutral-200;
6
+ }
7
+
8
+ &:where([data-component='barchart-xaxis-ticklabel']) {
9
+ @apply fill-neutral-500;
10
+ }
11
+
12
+ &:where([data-component='barchart-yaxis-ticklabel']) {
13
+ @apply fill-neutral-500;
14
+ }
15
+
16
+ &:where([data-component='barchart-xaxis-line']) {
17
+ @apply stroke-neutral-300;
18
+ }
19
+
20
+ &:where([data-component='barchart-yaxis-line']) {
21
+ @apply stroke-neutral-300;
22
+ }
23
+
24
+ &:where([data-component='barchart-xaxis-tickline']) {
25
+ @apply stroke-neutral-300;
26
+ }
27
+
28
+ &:where([data-component='barchart-yaxis-tickline']) {
29
+ @apply stroke-neutral-300;
30
+ }
31
+
32
+ &:where([data-component='barchart-hoverguide']) {
33
+ @apply stroke-neutral-400/50;
34
+ }
35
+
36
+ &:where([data-component='barchart-bar']) {
37
+ @apply fill-[#13ACF0];
38
+ }
39
+
40
+ &:where([data-component='barchart-bar'])[data-active] {
41
+ @apply opacity-80;
42
+ }
43
+
44
+ &:where([data-component='barchart-tooltip']) {
45
+ @apply grid min-w-56 grid-cols-[auto_1fr] items-center gap-x-1 gap-y-2 rounded-md border border-neutral-700 bg-neutral-900 p-2.5 shadow-md;
46
+ }
47
+
48
+ &:where([data-component='barchart-tooltiptitle']) {
49
+ @apply col-span-full row-start-1 text-xs font-semibold leading-4 text-neutral-200;
50
+ }
51
+
52
+ &:where([data-component='barchart-tooltiplabel']) {
53
+ @apply col-start-2 row-start-2 text-xs font-medium leading-4 text-neutral-400;
54
+ }
55
+
56
+ &:where([data-component='barchart-tooltipvalue']) {
57
+ @apply col-span-full row-start-3 justify-self-start rounded-md bg-neutral-600 px-1.25 py-0.5 font-mono text-sm font-medium leading-5 text-neutral-200 tabular-nums;
58
+ }
59
+
60
+ &:where([data-component='barchart-tooltipcolorindicator']) {
61
+ @apply col-start-1 row-start-2 h-2.5 w-2.5 rounded-sm bg-[#13ACF0];
62
+ }
63
+ }
64
+ }
@@ -0,0 +1,55 @@
1
+ /* carousel */
2
+ @layer components {
3
+ :where(:not([data-style-disabled])) {
4
+ &:where([data-component='carousel-slideslist']) {
5
+ @apply w-full rounded-lg;
6
+ &[data-orientation='vertical'] {
7
+ @apply h-72;
8
+ }
9
+ }
10
+
11
+ &:where([data-component='carousel-slide']) {
12
+ @apply basis-full;
13
+ }
14
+
15
+ &:where([data-component='carousel-previousbutton']),
16
+ &:where([data-component='carousel-nextbutton']) {
17
+ @apply flex size-7.5 shrink-0 cursor-pointer items-center justify-center rounded-lg p-0 bg-white text-neutral-700 outline-none focus-visible:outline-2 focus-visible:outline-blue-500 shadow-[0_-1px_0_0_#b5b5b5_inset,0_0_0_1px_rgba(0,0,0,0.1)_inset,0_0.5px_0_1.5px_#fff_inset] hover:bg-neutral-50 active:pt-[0.1rem] active:shadow-[0px_2px_1px_0px_rgba(0,0,0,0.19)_inset,0px_0px_0px_50px_rgba(0,0,0,0.025)_inset,0px_-1px_1px_0px_rgba(0,0,0,0.1)_inset] disabled:pointer-events-none disabled:opacity-50;
18
+ }
19
+
20
+ &:where([data-component='carousel-previousbuttonicon']),
21
+ &:where([data-component='carousel-nextbuttonicon']) {
22
+ @apply h-4 w-fit shrink-0;
23
+ &[data-orientation='vertical'] {
24
+ @apply rotate-90;
25
+ }
26
+ }
27
+
28
+ &:where([data-component='carousel-indicatorlist']) {
29
+ @apply flex items-center justify-center gap-1.5;
30
+ &[data-orientation='vertical'] {
31
+ @apply flex-col;
32
+ }
33
+ }
34
+
35
+ &:where([data-component='carousel-indicatorbutton']) {
36
+ @apply flex shrink-0 cursor-pointer items-center justify-center p-0 outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 transition-[width,height,background-color,opacity] duration-300 motion-reduce:transition-none disabled:pointer-events-none disabled:opacity-50;
37
+
38
+ /* A dot when empty, stretching into a pill while selected */
39
+ &:empty {
40
+ @apply size-2 rounded-full bg-neutral-300 hover:bg-neutral-400 data-selected:bg-neutral-800;
41
+ &[data-selected][data-orientation='horizontal'] {
42
+ @apply w-5;
43
+ }
44
+ &[data-selected][data-orientation='vertical'] {
45
+ @apply h-5;
46
+ }
47
+ }
48
+
49
+ /* Custom content, like a thumbnail, faded until selected */
50
+ &:not(:empty) {
51
+ @apply overflow-hidden rounded-md opacity-50 hover:opacity-80 data-selected:opacity-100;
52
+ }
53
+ }
54
+ }
55
+ }
@@ -11,10 +11,10 @@
11
11
 
12
12
  &:where([data-component='checkbox-button']) {
13
13
  @apply mt-0.5 row-start-1 flex size-4.25 shrink-0 cursor-pointer items-center justify-center rounded-[0.3rem] border border-neutral-500 bg-neutral-50 text-white transition-all duration-150 data-checked:border-neutral-800 data-checked:bg-neutral-800 data-indeterminate:border-neutral-800 data-indeterminate:bg-neutral-800 data-disabled:cursor-not-allowed data-disabled:opacity-50;
14
- &[data-tone='invalid'] {
14
+ &[data-validation='error'] {
15
15
  @apply border-red-800 bg-red-100 data-checked:bg-red-800 data-indeterminate:bg-red-800;
16
16
  }
17
- &[data-tone='valid'] {
17
+ &[data-validation='success'] {
18
18
  @apply border-green-700 bg-green-100 data-checked:bg-green-700 data-indeterminate:bg-green-700;
19
19
  }
20
20
  }
@@ -84,10 +84,10 @@
84
84
 
85
85
  &:where([data-component='combobox-inputgroup']) {
86
86
  @apply flex w-full min-w-0 items-center overflow-hidden rounded-lg border border-neutral-400 bg-white p-0 text-[0.8rem] text-neutral-900 outline-blue-600 outline-offset-1! hover:bg-neutral-50 focus-within:outline-2 data-disabled:cursor-not-allowed data-disabled:bg-neutral-100 data-disabled:text-neutral-500 data-disabled:hover:bg-neutral-100;
87
- &[data-tone='invalid'] {
87
+ &[data-validation='error'] {
88
88
  @apply border-red-800;
89
89
  }
90
- &[data-tone='valid'] {
90
+ &[data-validation='success'] {
91
91
  @apply border-green-700;
92
92
  }
93
93
  }
@@ -11,10 +11,10 @@
11
11
 
12
12
  &:where([data-component='datepicker-inputgroup']) {
13
13
  @apply flex w-full min-w-0 items-center overflow-hidden rounded-lg border border-neutral-400 bg-white p-0 text-[0.8rem] text-neutral-900 outline-blue-600 outline-offset-1! hover:bg-neutral-50 data-disabled:cursor-not-allowed data-disabled:bg-neutral-100 data-disabled:text-neutral-500 data-disabled:hover:bg-neutral-100 data-[focus-within]:outline-2;
14
- &[data-tone='invalid'] {
14
+ &[data-validation='error'] {
15
15
  @apply border-red-800;
16
16
  }
17
- &[data-tone='valid'] {
17
+ &[data-validation='success'] {
18
18
  @apply border-green-700;
19
19
  }
20
20
  }
@@ -38,3 +38,12 @@
38
38
  }
39
39
  }
40
40
  }
41
+
42
+ /* dialog action buttons, styled like a secondary Button */
43
+ @layer components {
44
+ :where(:not([data-style-disabled])) {
45
+ &:where([data-component='dialog-openbutton']) {
46
+ @apply flex w-fit cursor-pointer items-center justify-center gap-1 text-nowrap font-semibold disabled:pointer-events-none disabled:opacity-50 h-7.5 px-[0.7rem] text-[0.8rem] rounded-lg bg-white text-neutral-700 shadow-[0_-1px_0_0_#b5b5b5_inset,0_0_0_1px_rgba(0,0,0,0.1)_inset,0_0.5px_0_1.5px_#fff_inset] hover:bg-neutral-50 active:pt-[0.1rem] aria-expanded:pt-[0.1rem] active:shadow-[0px_2px_1px_0px_rgba(0,0,0,0.19)_inset,0px_0px_0px_50px_rgba(0,0,0,0.025)_inset,0px_-1px_1px_0px_rgba(0,0,0,0.1)_inset] aria-expanded:shadow-[0px_2px_1px_0px_rgba(0,0,0,0.19)_inset,0px_0px_0px_50px_rgba(0,0,0,0.025)_inset,0px_-1px_1px_0px_rgba(0,0,0,0.1)_inset];
47
+ }
48
+ }
49
+ }