@lotte-innovate/ui-component-test 0.1.65 → 0.1.67

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. package/README.md +133 -133
  2. package/dist/globals.css +4 -4
  3. package/dist/lib/.storybook/main.d.ts +3 -0
  4. package/dist/lib/.storybook/manager.d.ts +1 -0
  5. package/dist/lib/.storybook/preview.d.ts +9 -0
  6. package/dist/lib/Typography/Header/index.d.ts +1 -1
  7. package/dist/lib/Typography/Text/index.d.ts +1 -1
  8. package/dist/lib/color/constants.d.ts +0 -15
  9. package/dist/lib/color/constants.js +0 -32
  10. package/dist/lib/color/constants.mjs.map +1 -1
  11. package/dist/lib/components/Accordion/index.d.ts +1 -0
  12. package/dist/lib/components/Accordion/index.js +18 -4
  13. package/dist/lib/components/Accordion/index.mjs +1 -1
  14. package/dist/lib/components/Accordion/index.mjs.map +1 -1
  15. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +2 -2
  16. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +2 -2
  17. package/dist/lib/components/AlertDialog/AlertDialogContent.d.ts +1 -1
  18. package/dist/lib/components/AlertDialog/AlertDialogRoot.js +9 -6
  19. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs +2 -1
  20. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs.map +1 -1
  21. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +2 -2
  22. package/dist/lib/components/AspectRatio/index.js +3 -1
  23. package/dist/lib/components/AspectRatio/index.mjs +1 -1
  24. package/dist/lib/components/AspectRatio/index.mjs.map +1 -1
  25. package/dist/lib/components/Avatar/index.d.ts +1 -1
  26. package/dist/lib/components/Avatar/index.js +9 -1
  27. package/dist/lib/components/Avatar/index.mjs +2 -1
  28. package/dist/lib/components/Avatar/index.mjs.map +1 -1
  29. package/dist/lib/components/Badge/index.d.ts +2 -2
  30. package/dist/lib/components/Badge/index.js +10 -1
  31. package/dist/lib/components/Badge/index.mjs +1 -1
  32. package/dist/lib/components/Badge/index.mjs.map +1 -1
  33. package/dist/lib/components/BubbleChart/index.js +1 -1
  34. package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
  35. package/dist/lib/components/Button/index.d.ts +2 -2
  36. package/dist/lib/components/Button/index.js +10 -1
  37. package/dist/lib/components/Button/index.mjs +1 -1
  38. package/dist/lib/components/Button/index.mjs.map +1 -1
  39. package/dist/lib/components/Callout/CalloutRoot.d.ts +1 -1
  40. package/dist/lib/components/Callout/CalloutRoot.js +11 -3
  41. package/dist/lib/components/Callout/CalloutRoot.mjs +2 -1
  42. package/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -1
  43. package/dist/lib/components/Card/index.d.ts +2 -2
  44. package/dist/lib/components/Card/index.js +8 -1
  45. package/dist/lib/components/Card/index.mjs +1 -1
  46. package/dist/lib/components/Card/index.mjs.map +1 -1
  47. package/dist/lib/components/Checkbox/index.d.ts +1 -1
  48. package/dist/lib/components/Checkbox/index.js +10 -2
  49. package/dist/lib/components/Checkbox/index.mjs +1 -1
  50. package/dist/lib/components/Checkbox/index.mjs.map +1 -1
  51. package/dist/lib/components/CheckboxCard/index.d.ts +1 -1
  52. package/dist/lib/components/CheckboxCard/index.js +8 -1
  53. package/dist/lib/components/CheckboxCard/index.mjs +1 -1
  54. package/dist/lib/components/CheckboxCard/index.mjs.map +1 -1
  55. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +11 -2
  56. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +2 -1
  57. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -1
  58. package/dist/lib/components/ContextMenu/ContextMenuContent.d.ts +1 -1
  59. package/dist/lib/components/ContextMenu/ContextMenuItem.d.ts +1 -1
  60. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.d.ts +1 -1
  61. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +1 -0
  62. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs +1 -0
  63. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs.map +1 -1
  64. package/dist/lib/components/ContextMenu/ContextMenuRoot.js +11 -2
  65. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs +2 -1
  66. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs.map +1 -1
  67. package/dist/lib/components/ContextMenu/ContextMenuSubContent.d.ts +1 -1
  68. package/dist/lib/components/DataList/DataListLabel.d.ts +1 -1
  69. package/dist/lib/components/DataList/DataListRoot.js +9 -2
  70. package/dist/lib/components/DataList/DataListRoot.mjs +2 -1
  71. package/dist/lib/components/DataList/DataListRoot.mjs.map +1 -1
  72. package/dist/lib/components/DataList/DataListValue.d.ts +1 -1
  73. package/dist/lib/components/Dialog/DialogAction.d.ts +1 -1
  74. package/dist/lib/components/Dialog/DialogCancel.d.ts +1 -1
  75. package/dist/lib/components/Dialog/DialogContent.d.ts +1 -1
  76. package/dist/lib/components/Dialog/DialogRoot.js +9 -1
  77. package/dist/lib/components/Dialog/DialogRoot.mjs +2 -1
  78. package/dist/lib/components/Dialog/DialogRoot.mjs.map +1 -1
  79. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.d.ts +1 -1
  80. package/dist/lib/components/DropdownMenu/DropdownMenuContent.d.ts +1 -1
  81. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
  82. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +1 -1
  83. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +10 -1
  84. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs +2 -1
  85. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -1
  86. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  87. package/dist/lib/components/HoverCard/HoverCardContent.d.ts +2 -2
  88. package/dist/lib/components/HoverCard/HoverCardRoot.js +10 -1
  89. package/dist/lib/components/HoverCard/HoverCardRoot.mjs +2 -1
  90. package/dist/lib/components/HoverCard/HoverCardRoot.mjs.map +1 -1
  91. package/dist/lib/components/IconButton/index.d.ts +1 -1
  92. package/dist/lib/components/IconButton/index.js +9 -1
  93. package/dist/lib/components/IconButton/index.mjs +1 -1
  94. package/dist/lib/components/IconButton/index.mjs.map +1 -1
  95. package/dist/lib/components/Inset/index.d.ts +1 -1
  96. package/dist/lib/components/Inset/index.js +7 -1
  97. package/dist/lib/components/Inset/index.mjs +1 -1
  98. package/dist/lib/components/Inset/index.mjs.map +1 -1
  99. package/dist/lib/components/Label/index.d.ts +1 -1
  100. package/dist/lib/components/Label/index.js +11 -3
  101. package/dist/lib/components/Label/index.mjs +1 -1
  102. package/dist/lib/components/Label/index.mjs.map +1 -1
  103. package/dist/lib/components/Menubar/MenubarContent.d.ts +1 -1
  104. package/dist/lib/components/Menubar/MenubarItem.d.ts +1 -1
  105. package/dist/lib/components/Menubar/MenubarItemIndicator.d.ts +1 -1
  106. package/dist/lib/components/Menubar/MenubarRadioGroup.js +1 -0
  107. package/dist/lib/components/Menubar/MenubarRadioGroup.mjs +1 -0
  108. package/dist/lib/components/Menubar/MenubarRadioGroup.mjs.map +1 -1
  109. package/dist/lib/components/Menubar/MenubarRoot.d.ts +1 -1
  110. package/dist/lib/components/Menubar/MenubarRoot.js +13 -3
  111. package/dist/lib/components/Menubar/MenubarRoot.mjs +2 -1
  112. package/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -1
  113. package/dist/lib/components/Menubar/MenubarSubContent.d.ts +1 -1
  114. package/dist/lib/components/Menubar/MenubarTrigger.d.ts +1 -1
  115. package/dist/lib/components/NavigationMenu/NavigationMenuContent.d.ts +1 -1
  116. package/dist/lib/components/NavigationMenu/NavigationMenuLink.d.ts +1 -1
  117. package/dist/lib/components/NavigationMenu/NavigationMenuList.d.ts +1 -1
  118. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +11 -2
  119. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs +2 -1
  120. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs.map +1 -1
  121. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.d.ts +1 -1
  122. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.d.ts +2 -2
  123. package/dist/lib/components/Popover/PopoverClose.d.ts +1 -1
  124. package/dist/lib/components/Popover/PopoverContent.d.ts +1 -1
  125. package/dist/lib/components/Popover/PopoverRoot.js +8 -1
  126. package/dist/lib/components/Popover/PopoverRoot.mjs +2 -1
  127. package/dist/lib/components/Popover/PopoverRoot.mjs.map +1 -1
  128. package/dist/lib/components/Progress/index.d.ts +1 -1
  129. package/dist/lib/components/Progress/index.js +11 -1
  130. package/dist/lib/components/Progress/index.mjs +1 -1
  131. package/dist/lib/components/Progress/index.mjs.map +1 -1
  132. package/dist/lib/components/RadarChart/index.js +1 -1
  133. package/dist/lib/components/RadarChart/index.mjs.map +1 -1
  134. package/dist/lib/components/Radio/index.js +10 -4
  135. package/dist/lib/components/Radio/index.mjs +1 -1
  136. package/dist/lib/components/Radio/index.mjs.map +1 -1
  137. package/dist/lib/components/RadioCards/RadioCardsItem.d.ts +1 -1
  138. package/dist/lib/components/RadioCards/RadioCardsRoot.js +12 -2
  139. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs +2 -1
  140. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -1
  141. package/dist/lib/components/RadioGroup/RadioGroupRoot.js +11 -2
  142. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +2 -1
  143. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -1
  144. package/dist/lib/components/ScrollArea/index.js +3 -1
  145. package/dist/lib/components/ScrollArea/index.mjs +1 -1
  146. package/dist/lib/components/ScrollArea/index.mjs.map +1 -1
  147. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +7 -1
  148. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +1 -1
  149. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -1
  150. package/dist/lib/components/Select/index.d.ts +4 -2
  151. package/dist/lib/components/Select/index.js +30 -13
  152. package/dist/lib/components/Select/index.mjs +1 -1
  153. package/dist/lib/components/Select/index.mjs.map +1 -1
  154. package/dist/lib/components/Separator/index.js +7 -1
  155. package/dist/lib/components/Separator/index.mjs +1 -1
  156. package/dist/lib/components/Separator/index.mjs.map +1 -1
  157. package/dist/lib/components/Skeleton/index.d.ts +1 -1
  158. package/dist/lib/components/Skeleton/index.js +4 -1
  159. package/dist/lib/components/Skeleton/index.mjs +1 -1
  160. package/dist/lib/components/Skeleton/index.mjs.map +1 -1
  161. package/dist/lib/components/Slider/index.d.ts +1 -1
  162. package/dist/lib/components/Slider/index.js +13 -5
  163. package/dist/lib/components/Slider/index.mjs +1 -1
  164. package/dist/lib/components/Slider/index.mjs.map +1 -1
  165. package/dist/lib/components/Spinner/index.js +3 -1
  166. package/dist/lib/components/Spinner/index.mjs +1 -1
  167. package/dist/lib/components/Spinner/index.mjs.map +1 -1
  168. package/dist/lib/components/TabNav/index.js +6 -4
  169. package/dist/lib/components/TabNav/index.mjs +1 -1
  170. package/dist/lib/components/TabNav/index.mjs.map +1 -1
  171. package/dist/lib/components/Table/index.d.ts +1 -1
  172. package/dist/lib/components/Table/index.js +7 -1
  173. package/dist/lib/components/Table/index.mjs +1 -1
  174. package/dist/lib/components/Table/index.mjs.map +1 -1
  175. package/dist/lib/components/Tabs/index.d.ts +1 -1
  176. package/dist/lib/components/Tabs/index.js +4 -4
  177. package/dist/lib/components/Tabs/index.mjs +1 -1
  178. package/dist/lib/components/Tabs/index.mjs.map +1 -1
  179. package/dist/lib/components/TextArea/index.d.ts +1 -1
  180. package/dist/lib/components/TextArea/index.js +11 -4
  181. package/dist/lib/components/TextArea/index.mjs +1 -1
  182. package/dist/lib/components/TextArea/index.mjs.map +1 -1
  183. package/dist/lib/components/TextField/index.d.ts +1 -1
  184. package/dist/lib/components/TextField/index.js +11 -4
  185. package/dist/lib/components/TextField/index.mjs +1 -1
  186. package/dist/lib/components/TextField/index.mjs.map +1 -1
  187. package/dist/lib/components/Toast/ToastActionButton.d.ts +1 -1
  188. package/dist/lib/components/Toast/ToastActionButton.js +2 -2
  189. package/dist/lib/components/Toast/ToastActionButton.mjs +1 -1
  190. package/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -1
  191. package/dist/lib/components/Toast/ToastRoot.d.ts +1 -1
  192. package/dist/lib/components/Toast/ToastRoot.js +11 -3
  193. package/dist/lib/components/Toast/ToastRoot.mjs +2 -1
  194. package/dist/lib/components/Toast/ToastRoot.mjs.map +1 -1
  195. package/dist/lib/components/Toggle/ToggleWithText.d.ts +1 -1
  196. package/dist/lib/components/Toggle/ToggleWithText.js +9 -1
  197. package/dist/lib/components/Toggle/ToggleWithText.mjs +1 -1
  198. package/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -1
  199. package/dist/lib/components/Toggle/index.d.ts +1 -1
  200. package/dist/lib/components/Toggle/index.js +9 -1
  201. package/dist/lib/components/Toggle/index.mjs +1 -1
  202. package/dist/lib/components/Toggle/index.mjs.map +1 -1
  203. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +10 -2
  204. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +2 -1
  205. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -1
  206. package/dist/lib/components/ToggleSwitch/index.d.ts +1 -1
  207. package/dist/lib/components/ToggleSwitch/index.js +13 -1
  208. package/dist/lib/components/ToggleSwitch/index.mjs +1 -1
  209. package/dist/lib/components/ToggleSwitch/index.mjs.map +1 -1
  210. package/dist/lib/components/Tooltip/index.d.ts +2 -2
  211. package/dist/lib/components/Tooltip/index.js +13 -8
  212. package/dist/lib/components/Tooltip/index.mjs +1 -1
  213. package/dist/lib/components/Tooltip/index.mjs.map +1 -1
  214. package/dist/lib/constants.d.ts +0 -2
  215. package/dist/lib/constants.js +7 -31
  216. package/dist/lib/constants.mjs +1 -1
  217. package/dist/lib/constants.mjs.map +1 -1
  218. package/dist/lib/index.d.ts +1 -0
  219. package/dist/lib/index.js +1 -0
  220. package/dist/lib/index.mjs +1 -1
  221. package/dist/lib/theme/ThemeProvider.d.ts +16 -0
  222. package/dist/lib/theme/ThemeProvider.js +29 -0
  223. package/dist/lib/theme/ThemeProvider.mjs +3 -0
  224. package/dist/lib/theme/ThemeProvider.mjs.map +1 -0
  225. package/dist/lib/theme/index.d.ts +2 -0
  226. package/dist/lib/theme/index.js +2 -0
  227. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  228. package/dist/lib/utils/classPrefixes.js +1 -0
  229. package/dist/lib/utils/useDarkMode.js +1 -0
  230. package/dist/lib/utils/useDarkMode.mjs +1 -0
  231. package/dist/lib/utils/useDarkMode.mjs.map +1 -1
  232. package/dist/tailwind.config.js +4 -7
  233. package/dist/tsconfig.tsbuildinfo +1 -1
  234. package/package.json +141 -140
@@ -6,6 +6,7 @@ export var classPrefixesByScale = {
6
6
  'hover:bg': [2, 3, 4, 6, 9, 10],
7
7
  'hover:border': [4, 6, 7, 8, 9],
8
8
  'hover:text': [1, 10, 11, 12],
9
+ 'hover:fill': [1, 12],
9
10
  'active:bg': [3, 4, 5, 6, 8, 9, 10],
10
11
  'active:border': [6, 8, 9],
11
12
  'active:text': [10, 11, 12],
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { slateA, slateDarkA } from '../../lib/color/alpha';
2
3
  import { useEffect, useState } from 'react';
3
4
  export var useDarkMode = function (isRAxes) {
@@ -1,2 +1,3 @@
1
+ "use client";
1
2
  import{slateA as r,slateDarkA as o}from"../color/alpha.mjs";import{useState as c,useEffect as t}from"react";var n=function(n){void 0===n&&(n=!1);var i={},e={};!0===n?(i={r:{grid:{color:r[8]}}},e={r:{grid:{color:o[8]},ticks:{backdropColor:"rgba(0, 0, 0, 0)"}}}):(i={x:{grid:{color:r[8]}},y:{grid:{color:r[8]}}},e={x:{grid:{color:o[8]}},y:{grid:{color:o[8]}}});var a=c(b()),l=a[0],s=a[1],d=c({linescale:{}}),u=d[0],f=d[1];function b(){return document.body.classList.contains("dark")}return t((function(){s(b()),f({linescale:b()?e:i});var r=new MutationObserver((function(r){r.forEach((function(r){"class"===r.attributeName&&(s(b()),f({linescale:b()?e:i}))}))}));return r.observe(document.body,{attributes:!0}),function(){r.disconnect()}}),[]),[l,u]};export{n as useDarkMode};
2
3
  //# sourceMappingURL=useDarkMode.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDarkMode.mjs","sources":["../../lib/utils/useDarkMode.js"],"sourcesContent":["import { slateA, slateDarkA } from '../../lib/color/alpha';\nimport { useEffect, useState } from 'react';\nexport var useDarkMode = function (isRAxes) {\n if (isRAxes === void 0) { isRAxes = false; }\n var lightmode = {};\n var darkmode = {};\n if (isRAxes === true) {\n lightmode = {\n r: { grid: { color: slateA[8] } },\n };\n darkmode = {\n r: { grid: { color: slateDarkA[8] }, ticks: { backdropColor: 'rgba(0, 0, 0, 0)' } },\n };\n }\n else {\n lightmode = {\n x: { grid: { color: slateA[8] } },\n y: { grid: { color: slateA[8] } },\n };\n darkmode = {\n x: { grid: { color: slateDarkA[8] } },\n y: { grid: { color: slateDarkA[8] } },\n };\n }\n var _a = useState(checkDarkMode()), isDarkMode = _a[0], setIsDarkMode = _a[1];\n var _b = useState({\n linescale: {},\n }), defaultOptions = _b[0], setDefaultOptions = _b[1];\n function checkDarkMode() {\n return document.body.classList.contains('dark');\n }\n useEffect(function () {\n setIsDarkMode(checkDarkMode());\n setDefaultOptions({ linescale: !checkDarkMode() ? lightmode : darkmode });\n var mutationObserver = new MutationObserver(function (mutations) {\n mutations.forEach(function (mutation) {\n if (mutation.attributeName === 'class') {\n setIsDarkMode(checkDarkMode());\n setDefaultOptions({ linescale: !checkDarkMode() ? lightmode : darkmode });\n }\n });\n });\n mutationObserver.observe(document.body, { attributes: true });\n return function () {\n mutationObserver.disconnect();\n };\n }, []);\n return [isDarkMode, defaultOptions];\n};\n"],"names":["useDarkMode","isRAxes","lightmode","darkmode","r","grid","color","slateA","slateDarkA","ticks","backdropColor","x","y","_a","useState","checkDarkMode","isDarkMode","setIsDarkMode","_b","linescale","defaultOptions","setDefaultOptions","document","body","classList","contains","useEffect","mutationObserver","MutationObserver","mutations","forEach","mutation","attributeName","observe","attributes","disconnect"],"mappings":"4GAEU,IAACA,EAAc,SAAUC,QACf,IAAZA,IAAsBA,GAAU,GACpC,IAAIC,EAAY,CAAA,EACZC,EAAW,CAAA,GACC,IAAZF,GACAC,EAAY,CACRE,EAAG,CAAEC,KAAM,CAAEC,MAAOC,EAAO,MAE/BJ,EAAW,CACPC,EAAG,CAAEC,KAAM,CAAEC,MAAOE,EAAW,IAAMC,MAAO,CAAEC,cAAe,wBAIjER,EAAY,CACRS,EAAG,CAAEN,KAAM,CAAEC,MAAOC,EAAO,KAC3BK,EAAG,CAAEP,KAAM,CAAEC,MAAOC,EAAO,MAE/BJ,EAAW,CACPQ,EAAG,CAAEN,KAAM,CAAEC,MAAOE,EAAW,KAC/BI,EAAG,CAAEP,KAAM,CAAEC,MAAOE,EAAW,OAGvC,IAAIK,EAAKC,EAASC,KAAkBC,EAAaH,EAAG,GAAII,EAAgBJ,EAAG,GACvEK,EAAKJ,EAAS,CACdK,UAAW,CAAE,IACbC,EAAiBF,EAAG,GAAIG,EAAoBH,EAAG,GACnD,SAASH,IACL,OAAOO,SAASC,KAAKC,UAAUC,SAAS,OAC3C,CAiBD,OAhBAC,GAAU,WACNT,EAAcF,KACdM,EAAkB,CAAEF,UAAYJ,IAA8BZ,EAAZD,IAClD,IAAIyB,EAAmB,IAAIC,kBAAiB,SAAUC,GAClDA,EAAUC,SAAQ,SAAUC,GACO,UAA3BA,EAASC,gBACTf,EAAcF,KACdM,EAAkB,CAAEF,UAAYJ,IAA8BZ,EAAZD,IAEtE,GACA,IAEQ,OADAyB,EAAiBM,QAAQX,SAASC,KAAM,CAAEW,YAAY,IAC/C,WACHP,EAAiBQ,YAC7B,CACK,GAAE,IACI,CAACnB,EAAYI,EACxB"}
1
+ {"version":3,"file":"useDarkMode.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -21,7 +21,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
21
21
  import * as lightColors from './lib/color/light';
22
22
  import * as darkColors from './lib/color/dark';
23
23
  import * as alphaColors from './lib/color/alpha';
24
- import { colorOptions, alphaColorOptions } from './lib/color/constants';
24
+ import { colorOptions, alphaColorOptions, darkColorOptions } from './lib/color/constants';
25
25
  import { classPrefixesByScale } from './lib/utils/classPrefixes';
26
26
  var classes = [];
27
27
  var allColorOptions = [colorOptions, alphaColorOptions];
@@ -37,15 +37,12 @@ var generateClasses = function (colorList, mode) {
37
37
  };
38
38
  allColorOptions.forEach(function (options) {
39
39
  classes = classes.concat(generateClasses(options));
40
+ });
41
+ [darkColorOptions].forEach(function (options) {
40
42
  classes = classes.concat(generateClasses(options, 'dark:'));
41
43
  });
42
44
  var config = {
43
- content: [
44
- './src/app/**/*.{js,ts,jsx,tsx,mdx,zip}',
45
- './lib/**/*.{js,ts,jsx,tsx,mdx,zip}',
46
- './src/stories/**/*.{js,ts,jsx,tsx,mdx,zip}',
47
- './src/**/*.{js,ts,jsx,tsx,mdx,zip}',
48
- ],
45
+ content: ['./src/**/*.{js,ts,jsx,tsx,mdx,zip}'],
49
46
  safelist: __spreadArray([], classes, true),
50
47
  theme: {
51
48
  extend: {