@kimdw-rtk/ui 0.0.18 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/cjs.js +5 -0
- package/dist/_virtual/cssesc.js +5 -0
- package/dist/_virtual/jsx-runtime.js +5 -0
- package/dist/_virtual/jsx-runtime2.js +3 -0
- package/dist/_virtual/react-jsx-runtime.development.js +3 -0
- package/dist/_virtual/react-jsx-runtime.production.min.js +3 -0
- package/dist/components/Accordion/Accordion.css.d.ts +3 -6
- package/dist/components/Accordion/Accordion.css.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.css.js +27 -0
- package/dist/components/Accordion/Accordion.d.ts +6 -11
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.js +14 -0
- package/dist/components/Accordion/Accordion.spec.d.ts +2 -2
- package/dist/components/Accordion/Accordion.spec.d.ts.map +1 -0
- package/dist/components/Accordion/AccordionContent.css.d.ts +3 -6
- package/dist/components/Accordion/AccordionContent.css.d.ts.map +1 -0
- package/dist/components/Accordion/AccordionContent.css.js +25 -0
- package/dist/components/Accordion/AccordionContent.d.ts +4 -6
- package/dist/components/Accordion/AccordionContent.d.ts.map +1 -0
- package/dist/components/Accordion/AccordionContent.js +56 -0
- package/dist/components/Accordion/AccordionContext.d.ts +4 -7
- package/dist/components/Accordion/AccordionContext.d.ts.map +1 -0
- package/dist/components/Accordion/AccordionContext.js +8 -0
- package/dist/components/Accordion/AccordionTrigger.css.d.ts +3 -6
- package/dist/components/Accordion/AccordionTrigger.css.d.ts.map +1 -0
- package/dist/components/Accordion/AccordionTrigger.css.js +42 -0
- package/dist/components/Accordion/AccordionTrigger.d.ts +4 -6
- package/dist/components/Accordion/AccordionTrigger.d.ts.map +1 -0
- package/dist/components/Accordion/AccordionTrigger.js +16 -0
- package/dist/components/Accordion/index.d.ts +4 -10
- package/dist/components/Accordion/index.d.ts.map +1 -0
- package/dist/components/Alert/index.d.ts +4 -6
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Alert/index.js +14 -0
- package/dist/components/Box/Box.css.d.ts +2 -5
- package/dist/components/Box/Box.css.d.ts.map +1 -0
- package/dist/components/Box/Box.css.js +19 -0
- package/dist/components/Box/Box.spec.d.ts +2 -2
- package/dist/components/Box/Box.spec.d.ts.map +1 -0
- package/dist/components/Box/index.d.ts +7 -11
- package/dist/components/Box/index.d.ts.map +1 -0
- package/dist/components/Box/index.js +14 -0
- package/dist/components/Button/Button.css.d.ts +146 -2
- package/dist/components/Button/Button.css.d.ts.map +1 -0
- package/dist/components/Button/Button.css.js +185 -0
- package/dist/components/Button/Button.spec.d.ts +2 -2
- package/dist/components/Button/Button.spec.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +7 -13
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/index.js +22 -0
- package/dist/components/Card/Card.css.d.ts +61 -2
- package/dist/components/Card/Card.css.d.ts.map +1 -0
- package/dist/components/Card/Card.css.js +71 -0
- package/dist/components/Card/Card.d.ts +7 -13
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/Card.js +14 -0
- package/dist/components/Card/Card.spec.d.ts +2 -2
- package/dist/components/Card/Card.spec.d.ts.map +1 -0
- package/dist/components/Card/CardContent.css.d.ts +2 -3
- package/dist/components/Card/CardContent.css.d.ts.map +1 -0
- package/dist/components/Card/CardContent.css.js +9 -0
- package/dist/components/Card/CardContent.d.ts +4 -9
- package/dist/components/Card/CardContent.d.ts.map +1 -0
- package/dist/components/Card/CardContent.js +12 -0
- package/dist/components/Card/CardInteraction.css.d.ts +2 -3
- package/dist/components/Card/CardInteraction.css.d.ts.map +1 -0
- package/dist/components/Card/CardInteraction.css.js +11 -0
- package/dist/components/Card/CardInteraction.d.ts +4 -9
- package/dist/components/Card/CardInteraction.d.ts.map +1 -0
- package/dist/components/Card/CardInteraction.js +14 -0
- package/dist/components/Card/CardThumbnail.css.d.ts +2 -3
- package/dist/components/Card/CardThumbnail.css.d.ts.map +1 -0
- package/dist/components/Card/CardThumbnail.css.js +8 -0
- package/dist/components/Card/CardThumbnail.d.ts +4 -9
- package/dist/components/Card/CardThumbnail.d.ts.map +1 -0
- package/dist/components/Card/CardThumbnail.js +12 -0
- package/dist/components/Card/index.d.ts +5 -10
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/Chip/Chip.css.d.ts +46 -2
- package/dist/components/Chip/Chip.css.d.ts.map +1 -0
- package/dist/components/Chip/Chip.css.js +59 -0
- package/dist/components/Chip/Chip.d.ts +6 -12
- package/dist/components/Chip/Chip.d.ts.map +1 -0
- package/dist/components/Chip/Chip.js +14 -0
- package/dist/components/Chip/Chip.spec.d.ts +2 -2
- package/dist/components/Chip/Chip.spec.d.ts.map +1 -0
- package/dist/components/Chip/index.d.ts +2 -7
- package/dist/components/Chip/index.d.ts.map +1 -0
- package/dist/components/Confirm/index.d.ts +4 -6
- package/dist/components/Confirm/index.d.ts.map +1 -0
- package/dist/components/Confirm/index.js +19 -0
- package/dist/components/Dialog/Dialog.css.d.ts +3 -4
- package/dist/components/Dialog/Dialog.css.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.css.js +22 -0
- package/dist/components/Dialog/Dialog.d.ts +4 -9
- package/dist/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.js +13 -0
- package/dist/components/Dialog/Dialog.spec.d.ts +2 -2
- package/dist/components/Dialog/Dialog.spec.d.ts.map +1 -0
- package/dist/components/Dialog/DialogContent.css.d.ts +2 -3
- package/dist/components/Dialog/DialogContent.css.d.ts.map +1 -0
- package/dist/components/Dialog/DialogContent.css.js +15 -0
- package/dist/components/Dialog/DialogContent.d.ts +4 -9
- package/dist/components/Dialog/DialogContent.d.ts.map +1 -0
- package/dist/components/Dialog/DialogContent.js +13 -0
- package/dist/components/Dialog/DialogFooter.css.d.ts +3 -4
- package/dist/components/Dialog/DialogFooter.css.d.ts.map +1 -0
- package/dist/components/Dialog/DialogFooter.d.ts +4 -9
- package/dist/components/Dialog/DialogFooter.d.ts.map +1 -0
- package/dist/components/Dialog/DialogFooter.js +12 -0
- package/dist/components/Dialog/DialogHeader.css.d.ts +3 -4
- package/dist/components/Dialog/DialogHeader.css.d.ts.map +1 -0
- package/dist/components/Dialog/DialogHeader.css.js +26 -0
- package/dist/components/Dialog/DialogHeader.d.ts +4 -9
- package/dist/components/Dialog/DialogHeader.d.ts.map +1 -0
- package/dist/components/Dialog/DialogHeader.js +14 -0
- package/dist/components/Dialog/index.d.ts +5 -9
- package/dist/components/Dialog/index.d.ts.map +1 -0
- package/dist/components/Navigation/Navigation.spec.d.ts +2 -2
- package/dist/components/Navigation/Navigation.spec.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationAside.css.d.ts +2 -3
- package/dist/components/Navigation/NavigationAside.css.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationAside.css.js +9 -0
- package/dist/components/Navigation/NavigationAside.d.ts +4 -9
- package/dist/components/Navigation/NavigationAside.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationAside.js +12 -0
- package/dist/components/Navigation/NavigationBar.css.d.ts +15 -2
- package/dist/components/Navigation/NavigationBar.css.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationBar.css.js +35 -0
- package/dist/components/Navigation/NavigationBar.d.ts +6 -12
- package/dist/components/Navigation/NavigationBar.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationBar.js +14 -0
- package/dist/components/Navigation/NavigationContainer.css.d.ts +2 -3
- package/dist/components/Navigation/NavigationContainer.css.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationContainer.css.js +12 -0
- package/dist/components/Navigation/NavigationContainer.d.ts +4 -9
- package/dist/components/Navigation/NavigationContainer.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationContainer.js +12 -0
- package/dist/components/Navigation/NavigationDrawer.css.d.ts +4 -7
- package/dist/components/Navigation/NavigationDrawer.css.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationDrawer.css.js +52 -0
- package/dist/components/Navigation/NavigationDrawer.d.ts +4 -6
- package/dist/components/Navigation/NavigationDrawer.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationDrawer.js +27 -0
- package/dist/components/Navigation/NavigationItem.css.d.ts +2 -5
- package/dist/components/Navigation/NavigationItem.css.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationItem.css.js +38 -0
- package/dist/components/Navigation/NavigationItem.d.ts +6 -11
- package/dist/components/Navigation/NavigationItem.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationItem.js +12 -0
- package/dist/components/Navigation/NavigationLogo.css.d.ts +2 -3
- package/dist/components/Navigation/NavigationLogo.css.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationLogo.css.js +7 -0
- package/dist/components/Navigation/NavigationLogo.d.ts +4 -9
- package/dist/components/Navigation/NavigationLogo.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationLogo.js +12 -0
- package/dist/components/Navigation/NavigationMenu.css.d.ts +2 -1
- package/dist/components/Navigation/NavigationMenu.css.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationMenu.css.js +22 -0
- package/dist/components/Navigation/NavigationMenu.d.ts +5 -10
- package/dist/components/Navigation/NavigationMenu.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationMenu.js +14 -0
- package/dist/components/Navigation/index.d.ts +8 -16
- package/dist/components/Navigation/index.d.ts.map +1 -0
- package/dist/components/Range/Range.css.d.ts +49 -2
- package/dist/components/Range/Range.css.d.ts.map +1 -0
- package/dist/components/Range/Range.css.js +96 -0
- package/dist/components/Range/Range.d.ts +6 -12
- package/dist/components/Range/Range.d.ts.map +1 -0
- package/dist/components/Range/Range.js +40 -0
- package/dist/components/Range/Range.spec.d.ts +2 -2
- package/dist/components/Range/Range.spec.d.ts.map +1 -0
- package/dist/components/Range/index.d.ts +2 -7
- package/dist/components/Range/index.d.ts.map +1 -0
- package/dist/components/ScrollArea/ScrollArea.css.d.ts +6 -1
- package/dist/components/ScrollArea/ScrollArea.css.d.ts.map +1 -0
- package/dist/components/ScrollArea/ScrollArea.css.js +35 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +5 -10
- package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -0
- package/dist/components/ScrollArea/ScrollArea.js +37 -0
- package/dist/components/ScrollArea/ScrollArea.spec.d.ts +2 -2
- package/dist/components/ScrollArea/ScrollArea.spec.d.ts.map +1 -0
- package/dist/components/ScrollArea/index.d.ts +2 -7
- package/dist/components/ScrollArea/index.d.ts.map +1 -0
- package/dist/components/Select/Select.css.d.ts +14 -2
- package/dist/components/Select/Select.css.d.ts.map +1 -0
- package/dist/components/Select/Select.css.js +23 -0
- package/dist/components/Select/Select.d.ts +8 -16
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/Select.js +49 -0
- package/dist/components/Select/Select.spec.d.ts +2 -2
- package/dist/components/Select/Select.spec.d.ts.map +1 -0
- package/dist/components/Select/SelectContext.d.ts +5 -7
- package/dist/components/Select/SelectContext.d.ts.map +1 -0
- package/dist/components/Select/SelectContext.js +33 -0
- package/dist/components/Select/SelectOption.css.d.ts +2 -3
- package/dist/components/Select/SelectOption.css.d.ts.map +1 -0
- package/dist/components/Select/SelectOption.css.js +13 -0
- package/dist/components/Select/SelectOption.d.ts +4 -6
- package/dist/components/Select/SelectOption.d.ts.map +1 -0
- package/dist/components/Select/SelectOption.js +25 -0
- package/dist/components/Select/SelectOptionList.css.d.ts +2 -5
- package/dist/components/Select/SelectOptionList.css.d.ts.map +1 -0
- package/dist/components/Select/SelectOptionList.css.js +58 -0
- package/dist/components/Select/SelectOptionList.d.ts +4 -6
- package/dist/components/Select/SelectOptionList.d.ts.map +1 -0
- package/dist/components/Select/SelectOptionList.js +35 -0
- package/dist/components/Select/SelectTrigger.css.d.ts +4 -7
- package/dist/components/Select/SelectTrigger.css.d.ts.map +1 -0
- package/dist/components/Select/SelectTrigger.css.js +62 -0
- package/dist/components/Select/SelectTrigger.d.ts +6 -12
- package/dist/components/Select/SelectTrigger.d.ts.map +1 -0
- package/dist/components/Select/SelectTrigger.js +21 -0
- package/dist/components/Select/index.d.ts +3 -11
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.css.d.ts +2 -3
- package/dist/components/Skeleton/Skeleton.css.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.css.js +22 -0
- package/dist/components/Skeleton/Skeleton.spec.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.spec.d.ts.map +1 -0
- package/dist/components/Skeleton/index.d.ts +5 -10
- package/dist/components/Skeleton/index.d.ts.map +1 -0
- package/dist/components/Skeleton/index.js +12 -0
- package/dist/components/Table/Table.css.d.ts +3 -1
- package/dist/components/Table/Table.css.d.ts.map +1 -0
- package/dist/components/Table/Table.css.js +10 -0
- package/dist/components/Table/Table.d.ts +5 -10
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/Table.js +14 -0
- package/dist/components/Table/Table.spec.d.ts +2 -2
- package/dist/components/Table/Table.spec.d.ts.map +1 -0
- package/dist/components/Table/TableBody.d.ts +4 -10
- package/dist/components/Table/TableBody.d.ts.map +1 -0
- package/dist/components/Table/TableBody.js +9 -0
- package/dist/components/Table/TableCell.css.d.ts +2 -3
- package/dist/components/Table/TableCell.css.d.ts.map +1 -0
- package/dist/components/Table/TableCell.css.js +35 -0
- package/dist/components/Table/TableCell.d.ts +5 -10
- package/dist/components/Table/TableCell.d.ts.map +1 -0
- package/dist/components/Table/TableCell.js +10 -0
- package/dist/components/Table/TableHead.css.d.ts +2 -3
- package/dist/components/Table/TableHead.css.d.ts.map +1 -0
- package/dist/components/Table/TableHead.css.js +11 -0
- package/dist/components/Table/TableHead.d.ts +5 -10
- package/dist/components/Table/TableHead.d.ts.map +1 -0
- package/dist/components/Table/TableHead.js +10 -0
- package/dist/components/Table/TableHeader.d.ts +4 -10
- package/dist/components/Table/TableHeader.d.ts.map +1 -0
- package/dist/components/Table/TableHeader.js +9 -0
- package/dist/components/Table/TableRow.css.d.ts +2 -3
- package/dist/components/Table/TableRow.css.d.ts.map +1 -0
- package/dist/components/Table/TableRow.css.js +5 -0
- package/dist/components/Table/TableRow.d.ts +4 -10
- package/dist/components/Table/TableRow.d.ts.map +1 -0
- package/dist/components/Table/TableRow.js +10 -0
- package/dist/components/Table/index.d.ts +7 -13
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +4 -9
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.js +13 -0
- package/dist/components/Tabs/Tabs.spec.d.ts +2 -2
- package/dist/components/Tabs/Tabs.spec.d.ts.map +1 -0
- package/dist/components/Tabs/TabsContent.d.ts +5 -10
- package/dist/components/Tabs/TabsContent.d.ts.map +1 -0
- package/dist/components/Tabs/TabsContent.js +19 -0
- package/dist/components/Tabs/TabsList.css.d.ts +2 -3
- package/dist/components/Tabs/TabsList.css.d.ts.map +1 -0
- package/dist/components/Tabs/TabsList.css.js +11 -0
- package/dist/components/Tabs/TabsList.d.ts +4 -9
- package/dist/components/Tabs/TabsList.d.ts.map +1 -0
- package/dist/components/Tabs/TabsList.js +12 -0
- package/dist/components/Tabs/TabsProvider.d.ts +5 -7
- package/dist/components/Tabs/TabsProvider.d.ts.map +1 -0
- package/dist/components/Tabs/TabsProvider.js +8 -0
- package/dist/components/Tabs/TabsTrigger.css.d.ts +2 -5
- package/dist/components/Tabs/TabsTrigger.css.d.ts.map +1 -0
- package/dist/components/Tabs/TabsTrigger.css.js +32 -0
- package/dist/components/Tabs/TabsTrigger.d.ts +4 -9
- package/dist/components/Tabs/TabsTrigger.d.ts.map +1 -0
- package/dist/components/Tabs/TabsTrigger.js +21 -0
- package/dist/components/Tabs/index.d.ts +5 -9
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/TextField/TextField.css.d.ts +49 -2
- package/dist/components/TextField/TextField.css.d.ts.map +1 -0
- package/dist/components/TextField/TextField.css.js +62 -0
- package/dist/components/TextField/TextField.spec.d.ts +2 -2
- package/dist/components/TextField/TextField.spec.d.ts.map +1 -0
- package/dist/components/TextField/index.d.ts +6 -12
- package/dist/components/TextField/index.d.ts.map +1 -0
- package/dist/components/TextField/index.js +14 -0
- package/dist/components/Toast/Toast.css.d.ts +26 -2
- package/dist/components/Toast/Toast.css.d.ts.map +1 -0
- package/dist/components/Toast/Toast.css.js +65 -0
- package/dist/components/Toast/Toast.spec.d.ts +2 -2
- package/dist/components/Toast/Toast.spec.d.ts.map +1 -0
- package/dist/components/Toast/index.d.ts +6 -12
- package/dist/components/Toast/index.d.ts.map +1 -0
- package/dist/components/Toast/index.js +17 -0
- package/dist/components/Typography/Typography.css.d.ts +10 -2
- package/dist/components/Typography/Typography.css.d.ts.map +1 -0
- package/dist/components/Typography/Typography.css.js +18 -0
- package/dist/components/Typography/Typography.spec.d.ts +2 -2
- package/dist/components/Typography/Typography.spec.d.ts.map +1 -0
- package/dist/components/Typography/index.d.ts +7 -12
- package/dist/components/Typography/index.d.ts.map +1 -0
- package/dist/components/Typography/index.js +14 -0
- package/dist/components/index.d.ts +19 -64
- package/dist/components/index.d.ts.map +1 -0
- package/dist/contexts/UIProvider.d.ts +5 -7
- package/dist/contexts/UIProvider.d.ts.map +1 -0
- package/dist/contexts/UIProvider.js +10 -0
- package/dist/contexts/index.d.ts +2 -4
- package/dist/contexts/index.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +6 -13
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useDialog/index.d.ts +3 -5
- package/dist/hooks/useDialog/index.d.ts.map +1 -0
- package/dist/hooks/useDialog/index.js +31 -0
- package/dist/hooks/useDialog/useDialog.spec.d.ts +2 -2
- package/dist/hooks/useDialog/useDialog.spec.d.ts.map +1 -0
- package/dist/hooks/useMouseScroll/index.d.ts +2 -3
- package/dist/hooks/useMouseScroll/index.d.ts.map +1 -0
- package/dist/hooks/useMouseScroll/index.js +49 -0
- package/dist/hooks/usePointerSlider/index.d.ts +2 -3
- package/dist/hooks/usePointerSlider/index.d.ts.map +1 -0
- package/dist/hooks/usePointerSlider/index.js +46 -0
- package/dist/hooks/useRipple/index.d.ts +3 -6
- package/dist/hooks/useRipple/index.d.ts.map +1 -0
- package/dist/hooks/useRipple/index.js +111 -0
- package/dist/hooks/useRipple/ripple.css.d.ts +3 -6
- package/dist/hooks/useRipple/ripple.css.d.ts.map +1 -0
- package/dist/hooks/useRipple/ripple.css.js +33 -0
- package/dist/hooks/useToast/ToastContainer.css.d.ts +2 -3
- package/dist/hooks/useToast/ToastContainer.css.d.ts.map +1 -0
- package/dist/hooks/useToast/ToastContainer.css.js +13 -0
- package/dist/hooks/useToast/ToastContainer.d.ts +4 -6
- package/dist/hooks/useToast/ToastContainer.d.ts.map +1 -0
- package/dist/hooks/useToast/ToastContainer.js +8 -0
- package/dist/hooks/useToast/ToastProvider.d.ts +7 -15
- package/dist/hooks/useToast/ToastProvider.d.ts.map +1 -0
- package/dist/hooks/useToast/ToastProvider.js +49 -0
- package/dist/hooks/useToast/index.d.ts +3 -14
- package/dist/hooks/useToast/index.d.ts.map +1 -0
- package/dist/hooks/useToast/index.js +13 -0
- package/dist/index.d.ts +9 -77
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +78 -0
- package/dist/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js +55 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/adapter/dist/vanilla-extract-css-adapter.esm.js +51 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/taggedTemplateLiteral-10998315.esm.js +12 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/transformCss-0dba36bf.esm.js +955 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.esm.js +325 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/fileScope/dist/vanilla-extract-css-fileScope.esm.js +20 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/functionSerializer/dist/vanilla-extract-css-functionSerializer.esm.js +11 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/injectStyles/dist/vanilla-extract-css-injectStyles.esm.js +22 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js +26 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js +111 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/recipes/dist/vanilla-extract-recipes.esm.js +43 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_sprinkles@1.6.5_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/sprinkles/dist/createSprinkles-74286718.esm.js +190 -0
- package/dist/node_modules/.pnpm/@vanilla-extract_sprinkles@1.6.5_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/sprinkles/dist/vanilla-extract-sprinkles.esm.js +146 -0
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +3 -0
- package/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/parse.js +423 -0
- package/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/types.js +28 -0
- package/dist/node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js +119 -0
- package/dist/node_modules/.pnpm/dedent@1.6.0_babel-plugin-macros@3.1.0/node_modules/dedent/dist/dedent.js +68 -0
- package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js +142 -0
- package/dist/node_modules/.pnpm/lru-cache@10.4.3/node_modules/lru-cache/dist/esm/index.js +1542 -0
- package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js +45 -0
- package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js +30 -0
- package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js +20 -0
- package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/align-justify.js +18 -0
- package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-down.js +14 -0
- package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/x.js +17 -0
- package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js +28 -0
- package/dist/node_modules/.pnpm/media-query-parser@2.0.2/node_modules/media-query-parser/dist/media-query-parser.esm.js +1378 -0
- package/dist/node_modules/.pnpm/modern-ahocorasick@1.1.0/node_modules/modern-ahocorasick/dist/index.js +101 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +1315 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +24 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +19 -0
- package/dist/styles/globalStyle.css.d.ts +2 -2
- package/dist/styles/globalStyle.css.d.ts.map +1 -0
- package/dist/styles/index.d.ts +5 -3
- package/dist/styles/index.d.ts.map +1 -0
- package/dist/styles/layers.css.d.ts +3 -4
- package/dist/styles/layers.css.d.ts.map +1 -0
- package/dist/styles/layers.css.js +6 -0
- package/dist/styles/overlay.css.d.ts +4 -5
- package/dist/styles/overlay.css.d.ts.map +1 -0
- package/dist/styles/overlay.css.js +34 -0
- package/dist/styles/sprinkles.css.d.ts +7 -8
- package/dist/styles/sprinkles.css.d.ts.map +1 -0
- package/dist/styles/sprinkles.css.js +124 -0
- package/dist/styles/sx.d.ts +3 -5
- package/dist/styles/sx.d.ts.map +1 -0
- package/dist/styles/sx.js +13 -0
- package/dist/tests/uiTest.d.ts +3 -5
- package/dist/tests/uiTest.d.ts.map +1 -0
- package/dist/themes/darkTheme.css.d.ts +2 -3
- package/dist/themes/darkTheme.css.d.ts.map +1 -0
- package/dist/themes/darkTheme.css.js +32 -0
- package/dist/themes/index.d.ts +4 -3
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/lightTheme.css.d.ts +2 -3
- package/dist/themes/lightTheme.css.d.ts.map +1 -0
- package/dist/themes/lightTheme.css.js +32 -0
- package/dist/themes/theme.css.d.ts +2 -3
- package/dist/themes/theme.css.d.ts.map +1 -0
- package/dist/themes/theme.css.js +24 -0
- package/dist/tokens/index.d.ts +6 -5
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/scale/color.d.ts +5 -6
- package/dist/tokens/scale/color.d.ts.map +1 -0
- package/dist/tokens/scale/color.js +602 -0
- package/dist/tokens/semantic/breakpoint.d.ts +2 -3
- package/dist/tokens/semantic/breakpoint.d.ts.map +1 -0
- package/dist/tokens/semantic/breakpoint.js +4 -0
- package/dist/tokens/semantic/color.d.ts +2 -3
- package/dist/tokens/semantic/color.d.ts.map +1 -0
- package/dist/tokens/semantic/color.js +12 -0
- package/dist/tokens/semantic/spacing.d.ts +2 -3
- package/dist/tokens/semantic/spacing.d.ts.map +1 -0
- package/dist/tokens/semantic/spacing.js +11 -0
- package/dist/tokens/semantic/typography.d.ts +2 -3
- package/dist/tokens/semantic/typography.d.ts.map +1 -0
- package/dist/tokens/semantic/typography.js +34 -0
- package/dist/types/index.d.ts +2 -5
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/ui.types.d.ts +8 -9
- package/dist/types/ui.types.d.ts.map +1 -0
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/sprinklesUtils.d.ts +4 -6
- package/dist/utils/sprinklesUtils.d.ts.map +1 -0
- package/dist/utils/sprinklesUtils.js +22 -0
- package/dist/utils/styleUtils.css.d.ts +5 -7
- package/dist/utils/styleUtils.css.d.ts.map +1 -0
- package/dist/utils/styleUtils.css.js +64 -0
- package/package.json +8 -2
- package/dist/Button.css-CzeAAfQg.d.ts +0 -156
- package/dist/Card.css-CotPlKu4.d.ts +0 -69
- package/dist/Chip.css-lxhSCCWQ.d.ts +0 -54
- package/dist/NavigationBar.css-Dryo_NT0.d.ts +0 -24
- package/dist/NavigationMenu.css-B_dOkuGn.d.ts +0 -8
- package/dist/Range.css-DcxHoAAm.d.ts +0 -60
- package/dist/ScrollArea.css-CNx8Yliu.d.ts +0 -16
- package/dist/Select.css-BlJORB-N.d.ts +0 -22
- package/dist/Table.css-5Pm2Q-3j.d.ts +0 -10
- package/dist/TextField.css-DmXBuD66.d.ts +0 -57
- package/dist/Toast.css-Bm98ZkjT.d.ts +0 -35
- package/dist/Typography.css-Fgk6uUbK.d.ts +0 -18
- package/dist/components/Accordion/Accordion.css.mjs +0 -29
- package/dist/components/Accordion/Accordion.css.mjs.map +0 -1
- package/dist/components/Accordion/Accordion.mjs +0 -33
- package/dist/components/Accordion/Accordion.mjs.map +0 -1
- package/dist/components/Accordion/Accordion.spec.mjs +0 -6
- package/dist/components/Accordion/Accordion.spec.mjs.map +0 -1
- package/dist/components/Accordion/AccordionContent.css.mjs +0 -27
- package/dist/components/Accordion/AccordionContent.css.mjs.map +0 -1
- package/dist/components/Accordion/AccordionContent.mjs +0 -63
- package/dist/components/Accordion/AccordionContent.mjs.map +0 -1
- package/dist/components/Accordion/AccordionContext.mjs +0 -10
- package/dist/components/Accordion/AccordionContext.mjs.map +0 -1
- package/dist/components/Accordion/AccordionTrigger.css.mjs +0 -44
- package/dist/components/Accordion/AccordionTrigger.css.mjs.map +0 -1
- package/dist/components/Accordion/AccordionTrigger.mjs +0 -34
- package/dist/components/Accordion/AccordionTrigger.mjs.map +0 -1
- package/dist/components/Accordion/index.mjs +0 -4
- package/dist/components/Accordion/index.mjs.map +0 -1
- package/dist/components/Alert/index.mjs +0 -16
- package/dist/components/Alert/index.mjs.map +0 -1
- package/dist/components/Box/Box.css.mjs +0 -20
- package/dist/components/Box/Box.css.mjs.map +0 -1
- package/dist/components/Box/Box.spec.mjs +0 -6
- package/dist/components/Box/Box.spec.mjs.map +0 -1
- package/dist/components/Box/index.mjs +0 -36
- package/dist/components/Box/index.mjs.map +0 -1
- package/dist/components/Button/Button.css.mjs +0 -194
- package/dist/components/Button/Button.css.mjs.map +0 -1
- package/dist/components/Button/Button.spec.mjs +0 -22
- package/dist/components/Button/Button.spec.mjs.map +0 -1
- package/dist/components/Button/index.mjs +0 -51
- package/dist/components/Button/index.mjs.map +0 -1
- package/dist/components/Card/Card.css.mjs +0 -78
- package/dist/components/Card/Card.css.mjs.map +0 -1
- package/dist/components/Card/Card.mjs +0 -33
- package/dist/components/Card/Card.mjs.map +0 -1
- package/dist/components/Card/Card.spec.mjs +0 -19
- package/dist/components/Card/Card.spec.mjs.map +0 -1
- package/dist/components/Card/CardContent.css.mjs +0 -10
- package/dist/components/Card/CardContent.css.mjs.map +0 -1
- package/dist/components/Card/CardContent.mjs +0 -22
- package/dist/components/Card/CardContent.mjs.map +0 -1
- package/dist/components/Card/CardInteraction.css.mjs +0 -12
- package/dist/components/Card/CardInteraction.css.mjs.map +0 -1
- package/dist/components/Card/CardInteraction.mjs +0 -34
- package/dist/components/Card/CardInteraction.mjs.map +0 -1
- package/dist/components/Card/CardThumbnail.css.mjs +0 -9
- package/dist/components/Card/CardThumbnail.css.mjs.map +0 -1
- package/dist/components/Card/CardThumbnail.mjs +0 -22
- package/dist/components/Card/CardThumbnail.mjs.map +0 -1
- package/dist/components/Card/index.mjs +0 -5
- package/dist/components/Card/index.mjs.map +0 -1
- package/dist/components/Chip/Chip.css.mjs +0 -66
- package/dist/components/Chip/Chip.css.mjs.map +0 -1
- package/dist/components/Chip/Chip.mjs +0 -31
- package/dist/components/Chip/Chip.mjs.map +0 -1
- package/dist/components/Chip/Chip.spec.mjs +0 -6
- package/dist/components/Chip/Chip.spec.mjs.map +0 -1
- package/dist/components/Chip/index.mjs +0 -2
- package/dist/components/Chip/index.mjs.map +0 -1
- package/dist/components/Confirm/index.mjs +0 -28
- package/dist/components/Confirm/index.mjs.map +0 -1
- package/dist/components/Dialog/Dialog.css.mjs +0 -24
- package/dist/components/Dialog/Dialog.css.mjs.map +0 -1
- package/dist/components/Dialog/Dialog.mjs +0 -28
- package/dist/components/Dialog/Dialog.mjs.map +0 -1
- package/dist/components/Dialog/Dialog.spec.mjs +0 -22
- package/dist/components/Dialog/Dialog.spec.mjs.map +0 -1
- package/dist/components/Dialog/DialogContent.css.mjs +0 -16
- package/dist/components/Dialog/DialogContent.css.mjs.map +0 -1
- package/dist/components/Dialog/DialogContent.mjs +0 -24
- package/dist/components/Dialog/DialogContent.mjs.map +0 -1
- package/dist/components/Dialog/DialogFooter.css.mjs +0 -20
- package/dist/components/Dialog/DialogFooter.css.mjs.map +0 -1
- package/dist/components/Dialog/DialogFooter.mjs +0 -25
- package/dist/components/Dialog/DialogFooter.mjs.map +0 -1
- package/dist/components/Dialog/DialogHeader.css.mjs +0 -28
- package/dist/components/Dialog/DialogHeader.css.mjs.map +0 -1
- package/dist/components/Dialog/DialogHeader.mjs +0 -33
- package/dist/components/Dialog/DialogHeader.mjs.map +0 -1
- package/dist/components/Dialog/index.mjs +0 -5
- package/dist/components/Dialog/index.mjs.map +0 -1
- package/dist/components/Navigation/Navigation.spec.mjs +0 -18
- package/dist/components/Navigation/Navigation.spec.mjs.map +0 -1
- package/dist/components/Navigation/NavigationAside.css.mjs +0 -10
- package/dist/components/Navigation/NavigationAside.css.mjs.map +0 -1
- package/dist/components/Navigation/NavigationAside.mjs +0 -16
- package/dist/components/Navigation/NavigationAside.mjs.map +0 -1
- package/dist/components/Navigation/NavigationBar.css.mjs +0 -37
- package/dist/components/Navigation/NavigationBar.css.mjs.map +0 -1
- package/dist/components/Navigation/NavigationBar.mjs +0 -23
- package/dist/components/Navigation/NavigationBar.mjs.map +0 -1
- package/dist/components/Navigation/NavigationContainer.css.mjs +0 -13
- package/dist/components/Navigation/NavigationContainer.css.mjs.map +0 -1
- package/dist/components/Navigation/NavigationContainer.mjs +0 -21
- package/dist/components/Navigation/NavigationContainer.mjs.map +0 -1
- package/dist/components/Navigation/NavigationDrawer.css.mjs +0 -55
- package/dist/components/Navigation/NavigationDrawer.css.mjs.map +0 -1
- package/dist/components/Navigation/NavigationDrawer.mjs +0 -58
- package/dist/components/Navigation/NavigationDrawer.mjs.map +0 -1
- package/dist/components/Navigation/NavigationItem.css.mjs +0 -38
- package/dist/components/Navigation/NavigationItem.css.mjs.map +0 -1
- package/dist/components/Navigation/NavigationItem.mjs +0 -23
- package/dist/components/Navigation/NavigationItem.mjs.map +0 -1
- package/dist/components/Navigation/NavigationLogo.css.mjs +0 -8
- package/dist/components/Navigation/NavigationLogo.css.mjs.map +0 -1
- package/dist/components/Navigation/NavigationLogo.mjs +0 -27
- package/dist/components/Navigation/NavigationLogo.mjs.map +0 -1
- package/dist/components/Navigation/NavigationMenu.css.mjs +0 -23
- package/dist/components/Navigation/NavigationMenu.css.mjs.map +0 -1
- package/dist/components/Navigation/NavigationMenu.mjs +0 -23
- package/dist/components/Navigation/NavigationMenu.mjs.map +0 -1
- package/dist/components/Navigation/index.mjs +0 -8
- package/dist/components/Navigation/index.mjs.map +0 -1
- package/dist/components/Range/Range.css.mjs +0 -106
- package/dist/components/Range/Range.css.mjs.map +0 -1
- package/dist/components/Range/Range.mjs +0 -72
- package/dist/components/Range/Range.mjs.map +0 -1
- package/dist/components/Range/Range.spec.mjs +0 -6
- package/dist/components/Range/Range.spec.mjs.map +0 -1
- package/dist/components/Range/index.mjs +0 -2
- package/dist/components/Range/index.mjs.map +0 -1
- package/dist/components/ScrollArea/ScrollArea.css.mjs +0 -40
- package/dist/components/ScrollArea/ScrollArea.css.mjs.map +0 -1
- package/dist/components/ScrollArea/ScrollArea.mjs +0 -56
- package/dist/components/ScrollArea/ScrollArea.mjs.map +0 -1
- package/dist/components/ScrollArea/ScrollArea.spec.mjs +0 -6
- package/dist/components/ScrollArea/ScrollArea.spec.mjs.map +0 -1
- package/dist/components/ScrollArea/index.mjs +0 -2
- package/dist/components/ScrollArea/index.mjs.map +0 -1
- package/dist/components/Select/Select.css.mjs +0 -24
- package/dist/components/Select/Select.css.mjs.map +0 -1
- package/dist/components/Select/Select.mjs +0 -81
- package/dist/components/Select/Select.mjs.map +0 -1
- package/dist/components/Select/Select.spec.mjs +0 -51
- package/dist/components/Select/Select.spec.mjs.map +0 -1
- package/dist/components/Select/SelectContext.mjs +0 -39
- package/dist/components/Select/SelectContext.mjs.map +0 -1
- package/dist/components/Select/SelectOption.css.mjs +0 -14
- package/dist/components/Select/SelectOption.css.mjs.map +0 -1
- package/dist/components/Select/SelectOption.mjs +0 -26
- package/dist/components/Select/SelectOption.mjs.map +0 -1
- package/dist/components/Select/SelectOptionList.css.mjs +0 -59
- package/dist/components/Select/SelectOptionList.css.mjs.map +0 -1
- package/dist/components/Select/SelectOptionList.mjs +0 -45
- package/dist/components/Select/SelectOptionList.mjs.map +0 -1
- package/dist/components/Select/SelectTrigger.css.mjs +0 -65
- package/dist/components/Select/SelectTrigger.css.mjs.map +0 -1
- package/dist/components/Select/SelectTrigger.mjs +0 -42
- package/dist/components/Select/SelectTrigger.mjs.map +0 -1
- package/dist/components/Select/index.mjs +0 -3
- package/dist/components/Select/index.mjs.map +0 -1
- package/dist/components/Skeleton/Skeleton.css.mjs +0 -23
- package/dist/components/Skeleton/Skeleton.css.mjs.map +0 -1
- package/dist/components/Skeleton/Skeleton.spec.mjs +0 -6
- package/dist/components/Skeleton/Skeleton.spec.mjs.map +0 -1
- package/dist/components/Skeleton/index.mjs +0 -23
- package/dist/components/Skeleton/index.mjs.map +0 -1
- package/dist/components/Table/Table.css.mjs +0 -12
- package/dist/components/Table/Table.css.mjs.map +0 -1
- package/dist/components/Table/Table.mjs +0 -23
- package/dist/components/Table/Table.mjs.map +0 -1
- package/dist/components/Table/Table.spec.mjs +0 -6
- package/dist/components/Table/Table.spec.mjs.map +0 -1
- package/dist/components/Table/TableBody.mjs +0 -14
- package/dist/components/Table/TableBody.mjs.map +0 -1
- package/dist/components/Table/TableCell.css.mjs +0 -36
- package/dist/components/Table/TableCell.css.mjs.map +0 -1
- package/dist/components/Table/TableCell.mjs +0 -26
- package/dist/components/Table/TableCell.mjs.map +0 -1
- package/dist/components/Table/TableHead.css.mjs +0 -12
- package/dist/components/Table/TableHead.css.mjs.map +0 -1
- package/dist/components/Table/TableHead.mjs +0 -26
- package/dist/components/Table/TableHead.mjs.map +0 -1
- package/dist/components/Table/TableHeader.mjs +0 -14
- package/dist/components/Table/TableHeader.mjs.map +0 -1
- package/dist/components/Table/TableRow.css.mjs +0 -6
- package/dist/components/Table/TableRow.css.mjs.map +0 -1
- package/dist/components/Table/TableRow.mjs +0 -22
- package/dist/components/Table/TableRow.mjs.map +0 -1
- package/dist/components/Table/index.mjs +0 -7
- package/dist/components/Table/index.mjs.map +0 -1
- package/dist/components/Tabs/Tabs.mjs +0 -26
- package/dist/components/Tabs/Tabs.mjs.map +0 -1
- package/dist/components/Tabs/Tabs.spec.mjs +0 -41
- package/dist/components/Tabs/Tabs.spec.mjs.map +0 -1
- package/dist/components/Tabs/TabsContent.mjs +0 -23
- package/dist/components/Tabs/TabsContent.mjs.map +0 -1
- package/dist/components/Tabs/TabsList.css.mjs +0 -12
- package/dist/components/Tabs/TabsList.css.mjs.map +0 -1
- package/dist/components/Tabs/TabsList.mjs +0 -23
- package/dist/components/Tabs/TabsList.mjs.map +0 -1
- package/dist/components/Tabs/TabsProvider.mjs +0 -11
- package/dist/components/Tabs/TabsProvider.mjs.map +0 -1
- package/dist/components/Tabs/TabsTrigger.css.mjs +0 -33
- package/dist/components/Tabs/TabsTrigger.css.mjs.map +0 -1
- package/dist/components/Tabs/TabsTrigger.mjs +0 -34
- package/dist/components/Tabs/TabsTrigger.mjs.map +0 -1
- package/dist/components/Tabs/index.mjs +0 -5
- package/dist/components/Tabs/index.mjs.map +0 -1
- package/dist/components/TextField/TextField.css.mjs +0 -69
- package/dist/components/TextField/TextField.css.mjs.map +0 -1
- package/dist/components/TextField/TextField.spec.mjs +0 -6
- package/dist/components/TextField/TextField.spec.mjs.map +0 -1
- package/dist/components/TextField/index.mjs +0 -31
- package/dist/components/TextField/index.mjs.map +0 -1
- package/dist/components/Toast/Toast.css.mjs +0 -70
- package/dist/components/Toast/Toast.css.mjs.map +0 -1
- package/dist/components/Toast/Toast.spec.mjs +0 -6
- package/dist/components/Toast/Toast.spec.mjs.map +0 -1
- package/dist/components/Toast/index.mjs +0 -45
- package/dist/components/Toast/index.mjs.map +0 -1
- package/dist/components/Typography/Typography.css.mjs +0 -19
- package/dist/components/Typography/Typography.css.mjs.map +0 -1
- package/dist/components/Typography/Typography.spec.mjs +0 -29
- package/dist/components/Typography/Typography.spec.mjs.map +0 -1
- package/dist/components/Typography/index.mjs +0 -41
- package/dist/components/Typography/index.mjs.map +0 -1
- package/dist/components/index.mjs +0 -19
- package/dist/components/index.mjs.map +0 -1
- package/dist/contexts/UIProvider.mjs +0 -22
- package/dist/contexts/UIProvider.mjs.map +0 -1
- package/dist/contexts/index.mjs +0 -2
- package/dist/contexts/index.mjs.map +0 -1
- package/dist/hooks/index.mjs +0 -6
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/hooks/useDialog/index.mjs +0 -49
- package/dist/hooks/useDialog/index.mjs.map +0 -1
- package/dist/hooks/useDialog/useDialog.spec.mjs +0 -59
- package/dist/hooks/useDialog/useDialog.spec.mjs.map +0 -1
- package/dist/hooks/useMouseScroll/index.mjs +0 -48
- package/dist/hooks/useMouseScroll/index.mjs.map +0 -1
- package/dist/hooks/usePointerSlider/index.mjs +0 -58
- package/dist/hooks/usePointerSlider/index.mjs.map +0 -1
- package/dist/hooks/useRipple/index.mjs +0 -116
- package/dist/hooks/useRipple/index.mjs.map +0 -1
- package/dist/hooks/useRipple/ripple.css.mjs +0 -35
- package/dist/hooks/useRipple/ripple.css.mjs.map +0 -1
- package/dist/hooks/useToast/ToastContainer.css.mjs +0 -14
- package/dist/hooks/useToast/ToastContainer.css.mjs.map +0 -1
- package/dist/hooks/useToast/ToastContainer.mjs +0 -9
- package/dist/hooks/useToast/ToastContainer.mjs.map +0 -1
- package/dist/hooks/useToast/ToastProvider.mjs +0 -99
- package/dist/hooks/useToast/ToastProvider.mjs.map +0 -1
- package/dist/hooks/useToast/index.mjs +0 -14
- package/dist/hooks/useToast/index.mjs.map +0 -1
- package/dist/index.mjs +0 -9
- package/dist/index.mjs.map +0 -1
- package/dist/styles/globalStyle.css.mjs +0 -27
- package/dist/styles/globalStyle.css.mjs.map +0 -1
- package/dist/styles/index.mjs +0 -5
- package/dist/styles/index.mjs.map +0 -1
- package/dist/styles/layers.css.mjs +0 -8
- package/dist/styles/layers.css.mjs.map +0 -1
- package/dist/styles/overlay.css.mjs +0 -37
- package/dist/styles/overlay.css.mjs.map +0 -1
- package/dist/styles/sprinkles.css.mjs +0 -141
- package/dist/styles/sprinkles.css.mjs.map +0 -1
- package/dist/styles/sx.mjs +0 -14
- package/dist/styles/sx.mjs.map +0 -1
- package/dist/tests/uiTest.mjs +0 -49
- package/dist/tests/uiTest.mjs.map +0 -1
- package/dist/themes/darkTheme.css.mjs +0 -33
- package/dist/themes/darkTheme.css.mjs.map +0 -1
- package/dist/themes/index.mjs +0 -7
- package/dist/themes/index.mjs.map +0 -1
- package/dist/themes/lightTheme.css.mjs +0 -33
- package/dist/themes/lightTheme.css.mjs.map +0 -1
- package/dist/themes/theme.css.mjs +0 -28
- package/dist/themes/theme.css.mjs.map +0 -1
- package/dist/tokens/index.mjs +0 -14
- package/dist/tokens/index.mjs.map +0 -1
- package/dist/tokens/scale/color.mjs +0 -606
- package/dist/tokens/scale/color.mjs.map +0 -1
- package/dist/tokens/semantic/breakpoint.mjs +0 -10
- package/dist/tokens/semantic/breakpoint.mjs.map +0 -1
- package/dist/tokens/semantic/color.mjs +0 -14
- package/dist/tokens/semantic/color.mjs.map +0 -1
- package/dist/tokens/semantic/spacing.mjs +0 -13
- package/dist/tokens/semantic/spacing.mjs.map +0 -1
- package/dist/tokens/semantic/typography.mjs +0 -36
- package/dist/tokens/semantic/typography.mjs.map +0 -1
- package/dist/types/index.mjs +0 -2
- package/dist/types/index.mjs.map +0 -1
- package/dist/types/ui.types.mjs +0 -1
- package/dist/types/ui.types.mjs.map +0 -1
- package/dist/utils/index.mjs +0 -2
- package/dist/utils/index.mjs.map +0 -1
- package/dist/utils/sprinklesUtils.mjs +0 -24
- package/dist/utils/sprinklesUtils.mjs.map +0 -1
- package/dist/utils/styleUtils.css.mjs +0 -65
- package/dist/utils/styleUtils.css.mjs.map +0 -1
|
@@ -0,0 +1,955 @@
|
|
|
1
|
+
import { getVarName } from '../../../../../@vanilla-extract_private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js';
|
|
2
|
+
import cssescExports from '../../../../../../../_virtual/cssesc.js';
|
|
3
|
+
import AhoCorasick from '../../../../../modern-ahocorasick@1.1.0/node_modules/modern-ahocorasick/dist/index.js';
|
|
4
|
+
import { markCompositionUsed } from '../adapter/dist/vanilla-extract-css-adapter.esm.js';
|
|
5
|
+
import { _ as _taggedTemplateLiteral } from './taggedTemplateLiteral-10998315.esm.js';
|
|
6
|
+
import dedent from '../../../../../dedent@1.6.0_babel-plugin-macros@3.1.0/node_modules/dedent/dist/dedent.js';
|
|
7
|
+
import { toAST } from '../../../../../media-query-parser@2.0.2/node_modules/media-query-parser/dist/media-query-parser.esm.js';
|
|
8
|
+
import { parse } from '../../../../../css-what@6.2.2/node_modules/css-what/lib/es/parse.js';
|
|
9
|
+
|
|
10
|
+
function toPrimitive(t, r) {
|
|
11
|
+
if ("object" != typeof t || !t) return t;
|
|
12
|
+
var e = t[Symbol.toPrimitive];
|
|
13
|
+
if (void 0 !== e) {
|
|
14
|
+
var i = e.call(t, r);
|
|
15
|
+
if ("object" != typeof i) return i;
|
|
16
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
17
|
+
}
|
|
18
|
+
return ("string" === r ? String : Number)(t);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function toPropertyKey(t) {
|
|
22
|
+
var i = toPrimitive(t, "string");
|
|
23
|
+
return "symbol" == typeof i ? i : String(i);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function _defineProperty(obj, key, value) {
|
|
27
|
+
key = toPropertyKey(key);
|
|
28
|
+
if (key in obj) {
|
|
29
|
+
Object.defineProperty(obj, key, {
|
|
30
|
+
value: value,
|
|
31
|
+
enumerable: true,
|
|
32
|
+
configurable: true,
|
|
33
|
+
writable: true
|
|
34
|
+
});
|
|
35
|
+
} else {
|
|
36
|
+
obj[key] = value;
|
|
37
|
+
}
|
|
38
|
+
return obj;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function ownKeys(e, r) {
|
|
42
|
+
var t = Object.keys(e);
|
|
43
|
+
if (Object.getOwnPropertySymbols) {
|
|
44
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
45
|
+
r && (o = o.filter(function (r) {
|
|
46
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
47
|
+
})), t.push.apply(t, o);
|
|
48
|
+
}
|
|
49
|
+
return t;
|
|
50
|
+
}
|
|
51
|
+
function _objectSpread2(e) {
|
|
52
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
53
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
54
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
55
|
+
_defineProperty(e, r, t[r]);
|
|
56
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
57
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
return e;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
64
|
+
if (source == null) return {};
|
|
65
|
+
var target = {};
|
|
66
|
+
var sourceKeys = Object.keys(source);
|
|
67
|
+
var key, i;
|
|
68
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
69
|
+
key = sourceKeys[i];
|
|
70
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
71
|
+
target[key] = source[key];
|
|
72
|
+
}
|
|
73
|
+
return target;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function _objectWithoutProperties(source, excluded) {
|
|
77
|
+
if (source == null) return {};
|
|
78
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
79
|
+
var key, i;
|
|
80
|
+
if (Object.getOwnPropertySymbols) {
|
|
81
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
82
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
83
|
+
key = sourceSymbolKeys[i];
|
|
84
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
85
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
86
|
+
target[key] = source[key];
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return target;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function forEach(obj, fn) {
|
|
93
|
+
for (var _key in obj) {
|
|
94
|
+
fn(obj[_key], _key);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function omit(obj, omitKeys) {
|
|
98
|
+
var result = {};
|
|
99
|
+
for (var _key2 in obj) {
|
|
100
|
+
if (omitKeys.indexOf(_key2) === -1) {
|
|
101
|
+
result[_key2] = obj[_key2];
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return result;
|
|
105
|
+
}
|
|
106
|
+
function mapKeys(obj, fn) {
|
|
107
|
+
var result = {};
|
|
108
|
+
for (var _key3 in obj) {
|
|
109
|
+
result[fn(obj[_key3], _key3)] = obj[_key3];
|
|
110
|
+
}
|
|
111
|
+
return result;
|
|
112
|
+
}
|
|
113
|
+
function composeStylesIntoSet(set) {
|
|
114
|
+
for (var _len = arguments.length, classNames = new Array(_len > 1 ? _len - 1 : 0), _key5 = 1; _key5 < _len; _key5++) {
|
|
115
|
+
classNames[_key5 - 1] = arguments[_key5];
|
|
116
|
+
}
|
|
117
|
+
for (var className of classNames) {
|
|
118
|
+
if (className.length === 0) {
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
if (typeof className === 'string') {
|
|
122
|
+
if (className.includes(' ')) {
|
|
123
|
+
composeStylesIntoSet(set, ...className.trim().split(' '));
|
|
124
|
+
} else {
|
|
125
|
+
set.add(className);
|
|
126
|
+
}
|
|
127
|
+
} else if (Array.isArray(className)) {
|
|
128
|
+
composeStylesIntoSet(set, ...className);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
function dudupeAndJoinClassList(classNames) {
|
|
133
|
+
var set = new Set();
|
|
134
|
+
composeStylesIntoSet(set, ...classNames);
|
|
135
|
+
return Array.from(set).join(' ');
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
var _templateObject$1;
|
|
139
|
+
|
|
140
|
+
// https://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
|
141
|
+
function escapeRegex(string) {
|
|
142
|
+
return string.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
143
|
+
}
|
|
144
|
+
var validateSelector = (selector, targetClassName) => {
|
|
145
|
+
var replaceTarget = () => {
|
|
146
|
+
var targetRegex = new RegExp(".".concat(escapeRegex(cssescExports(targetClassName, {
|
|
147
|
+
isIdentifier: true
|
|
148
|
+
}))), 'g');
|
|
149
|
+
return selector.replace(targetRegex, '&');
|
|
150
|
+
};
|
|
151
|
+
var selectorParts;
|
|
152
|
+
try {
|
|
153
|
+
selectorParts = parse(selector);
|
|
154
|
+
} catch (err) {
|
|
155
|
+
throw new Error("Invalid selector: ".concat(replaceTarget()));
|
|
156
|
+
}
|
|
157
|
+
selectorParts.forEach(tokens => {
|
|
158
|
+
try {
|
|
159
|
+
for (var i = tokens.length - 1; i >= -1; i--) {
|
|
160
|
+
if (!tokens[i]) {
|
|
161
|
+
throw new Error();
|
|
162
|
+
}
|
|
163
|
+
var token = tokens[i];
|
|
164
|
+
if (token.type === 'child' || token.type === 'parent' || token.type === 'sibling' || token.type === 'adjacent' || token.type === 'descendant') {
|
|
165
|
+
throw new Error();
|
|
166
|
+
}
|
|
167
|
+
if (token.type === 'attribute' && token.name === 'class' && token.value === targetClassName) {
|
|
168
|
+
return; // Found it
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
} catch (err) {
|
|
172
|
+
throw new Error(dedent(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n Invalid selector: ", "\n \n Style selectors must target the '&' character (along with any modifiers), e.g. ", " or ", ".\n \n This is to ensure that each style block only affects the styling of a single class.\n \n If your selector is targeting another class, you should move it to the style definition for that class, e.g. given we have styles for 'parent' and 'child' elements, instead of adding a selector of ", ") to 'parent', you should add ", " to 'child').\n \n If your selector is targeting something global, use the 'globalStyle' function instead, e.g. if you wanted to write ", ", you should instead write 'globalStyle(", ", { ... })'\n "])), replaceTarget(), '`${parent} &`', '`${parent} &:hover`', '`& ${child}`', '`${parent} &`', '`& h1`', '`${parent} h1`'));
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
/** e.g. @media screen and (min-width: 500px) */
|
|
178
|
+
|
|
179
|
+
class ConditionalRuleset {
|
|
180
|
+
/**
|
|
181
|
+
* Stores information about where conditions must be in relation to other conditions
|
|
182
|
+
*
|
|
183
|
+
* e.g. mobile -> tablet, desktop
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
constructor() {
|
|
187
|
+
this.ruleset = new Map();
|
|
188
|
+
this.precedenceLookup = new Map();
|
|
189
|
+
}
|
|
190
|
+
findOrCreateCondition(conditionQuery) {
|
|
191
|
+
var targetCondition = this.ruleset.get(conditionQuery);
|
|
192
|
+
if (!targetCondition) {
|
|
193
|
+
// No target condition so create one
|
|
194
|
+
targetCondition = {
|
|
195
|
+
query: conditionQuery,
|
|
196
|
+
rules: [],
|
|
197
|
+
children: new ConditionalRuleset()
|
|
198
|
+
};
|
|
199
|
+
this.ruleset.set(conditionQuery, targetCondition);
|
|
200
|
+
}
|
|
201
|
+
return targetCondition;
|
|
202
|
+
}
|
|
203
|
+
getConditionalRulesetByPath(conditionPath) {
|
|
204
|
+
var currRuleset = this;
|
|
205
|
+
for (var query of conditionPath) {
|
|
206
|
+
var condition = currRuleset.findOrCreateCondition(query);
|
|
207
|
+
currRuleset = condition.children;
|
|
208
|
+
}
|
|
209
|
+
return currRuleset;
|
|
210
|
+
}
|
|
211
|
+
addRule(rule, conditionQuery, conditionPath) {
|
|
212
|
+
var ruleset = this.getConditionalRulesetByPath(conditionPath);
|
|
213
|
+
var targetCondition = ruleset.findOrCreateCondition(conditionQuery);
|
|
214
|
+
if (!targetCondition) {
|
|
215
|
+
throw new Error('Failed to add conditional rule');
|
|
216
|
+
}
|
|
217
|
+
targetCondition.rules.push(rule);
|
|
218
|
+
}
|
|
219
|
+
addConditionPrecedence(conditionPath, conditionOrder) {
|
|
220
|
+
var ruleset = this.getConditionalRulesetByPath(conditionPath);
|
|
221
|
+
for (var i = 0; i < conditionOrder.length; i++) {
|
|
222
|
+
var _ruleset$precedenceLo;
|
|
223
|
+
var query = conditionOrder[i];
|
|
224
|
+
var conditionPrecedence = (_ruleset$precedenceLo = ruleset.precedenceLookup.get(query)) !== null && _ruleset$precedenceLo !== void 0 ? _ruleset$precedenceLo : new Set();
|
|
225
|
+
for (var lowerPrecedenceCondition of conditionOrder.slice(i + 1)) {
|
|
226
|
+
conditionPrecedence.add(lowerPrecedenceCondition);
|
|
227
|
+
}
|
|
228
|
+
ruleset.precedenceLookup.set(query, conditionPrecedence);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
isCompatible(incomingRuleset) {
|
|
232
|
+
for (var [condition, orderPrecedence] of this.precedenceLookup.entries()) {
|
|
233
|
+
for (var lowerPrecedenceCondition of orderPrecedence) {
|
|
234
|
+
var _incomingRuleset$prec;
|
|
235
|
+
if ((_incomingRuleset$prec = incomingRuleset.precedenceLookup.get(lowerPrecedenceCondition)) !== null && _incomingRuleset$prec !== void 0 && _incomingRuleset$prec.has(condition)) {
|
|
236
|
+
return false;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// Check that children are compatible
|
|
242
|
+
for (var {
|
|
243
|
+
query,
|
|
244
|
+
children
|
|
245
|
+
} of incomingRuleset.ruleset.values()) {
|
|
246
|
+
var matchingCondition = this.ruleset.get(query);
|
|
247
|
+
if (matchingCondition && !matchingCondition.children.isCompatible(children)) {
|
|
248
|
+
return false;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return true;
|
|
252
|
+
}
|
|
253
|
+
merge(incomingRuleset) {
|
|
254
|
+
// Merge rulesets into one array
|
|
255
|
+
for (var {
|
|
256
|
+
query,
|
|
257
|
+
rules,
|
|
258
|
+
children
|
|
259
|
+
} of incomingRuleset.ruleset.values()) {
|
|
260
|
+
var matchingCondition = this.ruleset.get(query);
|
|
261
|
+
if (matchingCondition) {
|
|
262
|
+
matchingCondition.rules.push(...rules);
|
|
263
|
+
matchingCondition.children.merge(children);
|
|
264
|
+
} else {
|
|
265
|
+
this.ruleset.set(query, {
|
|
266
|
+
query,
|
|
267
|
+
rules,
|
|
268
|
+
children
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// Merge order precedences
|
|
274
|
+
for (var [condition, incomingOrderPrecedence] of incomingRuleset.precedenceLookup.entries()) {
|
|
275
|
+
var _this$precedenceLooku;
|
|
276
|
+
var orderPrecedence = (_this$precedenceLooku = this.precedenceLookup.get(condition)) !== null && _this$precedenceLooku !== void 0 ? _this$precedenceLooku : new Set();
|
|
277
|
+
this.precedenceLookup.set(condition, new Set([...orderPrecedence, ...incomingOrderPrecedence]));
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Merge another ConditionalRuleset into this one if they are compatible
|
|
283
|
+
*
|
|
284
|
+
* @returns true if successful, false if the ruleset is incompatible
|
|
285
|
+
*/
|
|
286
|
+
mergeIfCompatible(incomingRuleset) {
|
|
287
|
+
if (!this.isCompatible(incomingRuleset)) {
|
|
288
|
+
return false;
|
|
289
|
+
}
|
|
290
|
+
this.merge(incomingRuleset);
|
|
291
|
+
return true;
|
|
292
|
+
}
|
|
293
|
+
getSortedRuleset() {
|
|
294
|
+
var _this = this;
|
|
295
|
+
var sortedRuleset = [];
|
|
296
|
+
|
|
297
|
+
// Loop through all queries and add them to the sorted ruleset
|
|
298
|
+
var _loop = function _loop(dependents) {
|
|
299
|
+
var conditionForQuery = _this.ruleset.get(query);
|
|
300
|
+
if (!conditionForQuery) {
|
|
301
|
+
throw new Error("Can't find condition for ".concat(query));
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
// Find the location of the first dependent condition in the sortedRuleset
|
|
305
|
+
// A dependent condition is a condition that must be placed *after* the current one
|
|
306
|
+
var firstMatchingDependent = sortedRuleset.findIndex(condition => dependents.has(condition.query));
|
|
307
|
+
if (firstMatchingDependent > -1) {
|
|
308
|
+
// Insert the condition before the dependent one
|
|
309
|
+
sortedRuleset.splice(firstMatchingDependent, 0, conditionForQuery);
|
|
310
|
+
} else {
|
|
311
|
+
// No match, just insert at the end
|
|
312
|
+
sortedRuleset.push(conditionForQuery);
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
for (var [query, dependents] of this.precedenceLookup.entries()) {
|
|
316
|
+
_loop(dependents);
|
|
317
|
+
}
|
|
318
|
+
return sortedRuleset;
|
|
319
|
+
}
|
|
320
|
+
renderToArray() {
|
|
321
|
+
var arr = [];
|
|
322
|
+
for (var {
|
|
323
|
+
query,
|
|
324
|
+
rules,
|
|
325
|
+
children
|
|
326
|
+
} of this.getSortedRuleset()) {
|
|
327
|
+
var selectors = {};
|
|
328
|
+
for (var rule of rules) {
|
|
329
|
+
selectors[rule.selector] = _objectSpread2(_objectSpread2({}, selectors[rule.selector]), rule.rule);
|
|
330
|
+
}
|
|
331
|
+
Object.assign(selectors, ...children.renderToArray());
|
|
332
|
+
arr.push({
|
|
333
|
+
[query]: selectors
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
return arr;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
var simplePseudoMap = {
|
|
341
|
+
':-moz-any-link': true,
|
|
342
|
+
':-moz-full-screen': true,
|
|
343
|
+
':-moz-placeholder': true,
|
|
344
|
+
':-moz-read-only': true,
|
|
345
|
+
':-moz-read-write': true,
|
|
346
|
+
':-ms-fullscreen': true,
|
|
347
|
+
':-ms-input-placeholder': true,
|
|
348
|
+
':-webkit-any-link': true,
|
|
349
|
+
':-webkit-full-screen': true,
|
|
350
|
+
'::-moz-color-swatch': true,
|
|
351
|
+
'::-moz-list-bullet': true,
|
|
352
|
+
'::-moz-list-number': true,
|
|
353
|
+
'::-moz-page-sequence': true,
|
|
354
|
+
'::-moz-page': true,
|
|
355
|
+
'::-moz-placeholder': true,
|
|
356
|
+
'::-moz-progress-bar': true,
|
|
357
|
+
'::-moz-range-progress': true,
|
|
358
|
+
'::-moz-range-thumb': true,
|
|
359
|
+
'::-moz-range-track': true,
|
|
360
|
+
'::-moz-scrolled-page-sequence': true,
|
|
361
|
+
'::-moz-selection': true,
|
|
362
|
+
'::-ms-backdrop': true,
|
|
363
|
+
'::-ms-browse': true,
|
|
364
|
+
'::-ms-check': true,
|
|
365
|
+
'::-ms-clear': true,
|
|
366
|
+
'::-ms-fill-lower': true,
|
|
367
|
+
'::-ms-fill-upper': true,
|
|
368
|
+
'::-ms-fill': true,
|
|
369
|
+
'::-ms-reveal': true,
|
|
370
|
+
'::-ms-thumb': true,
|
|
371
|
+
'::-ms-ticks-after': true,
|
|
372
|
+
'::-ms-ticks-before': true,
|
|
373
|
+
'::-ms-tooltip': true,
|
|
374
|
+
'::-ms-track': true,
|
|
375
|
+
'::-ms-value': true,
|
|
376
|
+
'::-webkit-backdrop': true,
|
|
377
|
+
'::-webkit-calendar-picker-indicator': true,
|
|
378
|
+
'::-webkit-inner-spin-button': true,
|
|
379
|
+
'::-webkit-input-placeholder': true,
|
|
380
|
+
'::-webkit-meter-bar': true,
|
|
381
|
+
'::-webkit-meter-even-less-good-value': true,
|
|
382
|
+
'::-webkit-meter-inner-element': true,
|
|
383
|
+
'::-webkit-meter-optimum-value': true,
|
|
384
|
+
'::-webkit-meter-suboptimum-value': true,
|
|
385
|
+
'::-webkit-outer-spin-button': true,
|
|
386
|
+
'::-webkit-progress-bar': true,
|
|
387
|
+
'::-webkit-progress-inner-element': true,
|
|
388
|
+
'::-webkit-progress-inner-value': true,
|
|
389
|
+
'::-webkit-progress-value': true,
|
|
390
|
+
'::-webkit-resizer': true,
|
|
391
|
+
'::-webkit-scrollbar-button': true,
|
|
392
|
+
'::-webkit-scrollbar-corner': true,
|
|
393
|
+
'::-webkit-scrollbar-thumb': true,
|
|
394
|
+
'::-webkit-scrollbar-track-piece': true,
|
|
395
|
+
'::-webkit-scrollbar-track': true,
|
|
396
|
+
'::-webkit-scrollbar': true,
|
|
397
|
+
'::-webkit-search-cancel-button': true,
|
|
398
|
+
'::-webkit-search-results-button': true,
|
|
399
|
+
'::-webkit-slider-runnable-track': true,
|
|
400
|
+
'::-webkit-slider-thumb': true,
|
|
401
|
+
'::after': true,
|
|
402
|
+
'::backdrop': true,
|
|
403
|
+
'::before': true,
|
|
404
|
+
'::cue': true,
|
|
405
|
+
'::file-selector-button': true,
|
|
406
|
+
'::first-letter': true,
|
|
407
|
+
'::first-line': true,
|
|
408
|
+
'::grammar-error': true,
|
|
409
|
+
'::marker': true,
|
|
410
|
+
'::placeholder': true,
|
|
411
|
+
'::selection': true,
|
|
412
|
+
'::spelling-error': true,
|
|
413
|
+
'::target-text': true,
|
|
414
|
+
'::view-transition-group': true,
|
|
415
|
+
'::view-transition-image-pair': true,
|
|
416
|
+
'::view-transition-new': true,
|
|
417
|
+
'::view-transition-old': true,
|
|
418
|
+
'::view-transition': true,
|
|
419
|
+
':active': true,
|
|
420
|
+
':after': true,
|
|
421
|
+
':any-link': true,
|
|
422
|
+
':before': true,
|
|
423
|
+
':blank': true,
|
|
424
|
+
':checked': true,
|
|
425
|
+
':default': true,
|
|
426
|
+
':defined': true,
|
|
427
|
+
':disabled': true,
|
|
428
|
+
':empty': true,
|
|
429
|
+
':enabled': true,
|
|
430
|
+
':first-child': true,
|
|
431
|
+
':first-letter': true,
|
|
432
|
+
':first-line': true,
|
|
433
|
+
':first-of-type': true,
|
|
434
|
+
':first': true,
|
|
435
|
+
':focus-visible': true,
|
|
436
|
+
':focus-within': true,
|
|
437
|
+
':focus': true,
|
|
438
|
+
':fullscreen': true,
|
|
439
|
+
':hover': true,
|
|
440
|
+
':in-range': true,
|
|
441
|
+
':indeterminate': true,
|
|
442
|
+
':invalid': true,
|
|
443
|
+
':last-child': true,
|
|
444
|
+
':last-of-type': true,
|
|
445
|
+
':left': true,
|
|
446
|
+
':link': true,
|
|
447
|
+
':only-child': true,
|
|
448
|
+
':only-of-type': true,
|
|
449
|
+
':optional': true,
|
|
450
|
+
':out-of-range': true,
|
|
451
|
+
':placeholder-shown': true,
|
|
452
|
+
':read-only': true,
|
|
453
|
+
':read-write': true,
|
|
454
|
+
':required': true,
|
|
455
|
+
':right': true,
|
|
456
|
+
':root': true,
|
|
457
|
+
':scope': true,
|
|
458
|
+
':target': true,
|
|
459
|
+
':valid': true,
|
|
460
|
+
':visited': true
|
|
461
|
+
};
|
|
462
|
+
var simplePseudos = Object.keys(simplePseudoMap);
|
|
463
|
+
var simplePseudoLookup = simplePseudoMap;
|
|
464
|
+
|
|
465
|
+
var _templateObject;
|
|
466
|
+
var createMediaQueryError = (mediaQuery, msg) => new Error(dedent(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n Invalid media query: \"", "\"\n\n ", "\n\n Read more on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries\n "])), mediaQuery, msg));
|
|
467
|
+
var validateMediaQuery = mediaQuery => {
|
|
468
|
+
// Empty queries will start with '@media '
|
|
469
|
+
if (mediaQuery === '@media ') {
|
|
470
|
+
throw createMediaQueryError(mediaQuery, 'Query is empty');
|
|
471
|
+
}
|
|
472
|
+
try {
|
|
473
|
+
toAST(mediaQuery);
|
|
474
|
+
} catch (e) {
|
|
475
|
+
throw createMediaQueryError(mediaQuery, e.message);
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
var _excluded = ["vars"],
|
|
480
|
+
_excluded2 = ["content"];
|
|
481
|
+
var DECLARATION = '__DECLARATION';
|
|
482
|
+
var UNITLESS = {
|
|
483
|
+
animationIterationCount: true,
|
|
484
|
+
borderImage: true,
|
|
485
|
+
borderImageOutset: true,
|
|
486
|
+
borderImageSlice: true,
|
|
487
|
+
borderImageWidth: true,
|
|
488
|
+
boxFlex: true,
|
|
489
|
+
boxFlexGroup: true,
|
|
490
|
+
columnCount: true,
|
|
491
|
+
columns: true,
|
|
492
|
+
flex: true,
|
|
493
|
+
flexGrow: true,
|
|
494
|
+
flexShrink: true,
|
|
495
|
+
fontWeight: true,
|
|
496
|
+
gridArea: true,
|
|
497
|
+
gridColumn: true,
|
|
498
|
+
gridColumnEnd: true,
|
|
499
|
+
gridColumnStart: true,
|
|
500
|
+
gridRow: true,
|
|
501
|
+
gridRowEnd: true,
|
|
502
|
+
gridRowStart: true,
|
|
503
|
+
initialLetter: true,
|
|
504
|
+
lineClamp: true,
|
|
505
|
+
lineHeight: true,
|
|
506
|
+
maxLines: true,
|
|
507
|
+
opacity: true,
|
|
508
|
+
order: true,
|
|
509
|
+
orphans: true,
|
|
510
|
+
scale: true,
|
|
511
|
+
tabSize: true,
|
|
512
|
+
WebkitLineClamp: true,
|
|
513
|
+
widows: true,
|
|
514
|
+
zIndex: true,
|
|
515
|
+
zoom: true,
|
|
516
|
+
// svg properties
|
|
517
|
+
fillOpacity: true,
|
|
518
|
+
floodOpacity: true,
|
|
519
|
+
maskBorder: true,
|
|
520
|
+
maskBorderOutset: true,
|
|
521
|
+
maskBorderSlice: true,
|
|
522
|
+
maskBorderWidth: true,
|
|
523
|
+
shapeImageThreshold: true,
|
|
524
|
+
stopOpacity: true,
|
|
525
|
+
strokeDashoffset: true,
|
|
526
|
+
strokeMiterlimit: true,
|
|
527
|
+
strokeOpacity: true,
|
|
528
|
+
strokeWidth: true
|
|
529
|
+
};
|
|
530
|
+
function dashify(str) {
|
|
531
|
+
return str.replace(/([A-Z])/g, '-$1').replace(/^ms-/, '-ms-').toLowerCase();
|
|
532
|
+
}
|
|
533
|
+
function replaceBetweenIndexes(target, startIndex, endIndex, replacement) {
|
|
534
|
+
var start = target.slice(0, startIndex);
|
|
535
|
+
var end = target.slice(endIndex);
|
|
536
|
+
return "".concat(start).concat(replacement).concat(end);
|
|
537
|
+
}
|
|
538
|
+
var DOUBLE_SPACE = ' ';
|
|
539
|
+
var specialKeys = [...simplePseudos, '@layer', '@media', '@supports', '@container', 'selectors'];
|
|
540
|
+
class Stylesheet {
|
|
541
|
+
constructor(localClassNames, composedClassLists) {
|
|
542
|
+
this.rules = [];
|
|
543
|
+
this.conditionalRulesets = [new ConditionalRuleset()];
|
|
544
|
+
this.fontFaceRules = [];
|
|
545
|
+
this.keyframesRules = [];
|
|
546
|
+
this.propertyRules = [];
|
|
547
|
+
this.localClassNamesMap = new Map(localClassNames.map(localClassName => [localClassName, localClassName]));
|
|
548
|
+
this.localClassNamesSearch = new AhoCorasick(localClassNames);
|
|
549
|
+
this.layers = new Map();
|
|
550
|
+
|
|
551
|
+
// Class list compositions should be priortized by Newer > Older
|
|
552
|
+
// Therefore we reverse the array as they are added in sequence
|
|
553
|
+
this.composedClassLists = composedClassLists.map(_ref => {
|
|
554
|
+
var {
|
|
555
|
+
identifier,
|
|
556
|
+
classList
|
|
557
|
+
} = _ref;
|
|
558
|
+
return {
|
|
559
|
+
identifier,
|
|
560
|
+
regex: RegExp("(".concat(classList, ")"), 'g')
|
|
561
|
+
};
|
|
562
|
+
}).reverse();
|
|
563
|
+
}
|
|
564
|
+
processCssObj(root) {
|
|
565
|
+
if (root.type === 'fontFace') {
|
|
566
|
+
this.fontFaceRules.push(root.rule);
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
if (root.type === 'property') {
|
|
570
|
+
this.propertyRules.push(root);
|
|
571
|
+
return;
|
|
572
|
+
}
|
|
573
|
+
if (root.type === 'keyframes') {
|
|
574
|
+
root.rule = Object.fromEntries(Object.entries(root.rule).map(_ref2 => {
|
|
575
|
+
var [keyframe, rule] = _ref2;
|
|
576
|
+
return [keyframe, this.transformVars(this.transformProperties(rule))];
|
|
577
|
+
}));
|
|
578
|
+
this.keyframesRules.push(root);
|
|
579
|
+
return;
|
|
580
|
+
}
|
|
581
|
+
this.currConditionalRuleset = new ConditionalRuleset();
|
|
582
|
+
if (root.type === 'layer') {
|
|
583
|
+
var layerDefinition = "@layer ".concat(root.name);
|
|
584
|
+
this.addLayer([layerDefinition]);
|
|
585
|
+
} else {
|
|
586
|
+
// Add main styles
|
|
587
|
+
var mainRule = omit(root.rule, specialKeys);
|
|
588
|
+
this.addRule({
|
|
589
|
+
selector: root.selector,
|
|
590
|
+
rule: mainRule
|
|
591
|
+
});
|
|
592
|
+
this.transformLayer(root, root.rule['@layer']);
|
|
593
|
+
this.transformMedia(root, root.rule['@media']);
|
|
594
|
+
this.transformSupports(root, root.rule['@supports']);
|
|
595
|
+
this.transformContainer(root, root.rule['@container']);
|
|
596
|
+
this.transformSimplePseudos(root, root.rule);
|
|
597
|
+
this.transformSelectors(root, root.rule);
|
|
598
|
+
}
|
|
599
|
+
var activeConditionalRuleset = this.conditionalRulesets[this.conditionalRulesets.length - 1];
|
|
600
|
+
if (!activeConditionalRuleset.mergeIfCompatible(this.currConditionalRuleset)) {
|
|
601
|
+
// Ruleset merge failed due to incompatibility. We now deopt by starting a fresh ConditionalRuleset
|
|
602
|
+
this.conditionalRulesets.push(this.currConditionalRuleset);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
addConditionalRule(cssRule, conditions) {
|
|
606
|
+
// Run `transformProperties` before `transformVars` as we don't want to pixelify CSS Vars
|
|
607
|
+
var rule = this.transformVars(this.transformProperties(cssRule.rule));
|
|
608
|
+
var selector = this.transformSelector(cssRule.selector);
|
|
609
|
+
if (!this.currConditionalRuleset) {
|
|
610
|
+
throw new Error("Couldn't add conditional rule");
|
|
611
|
+
}
|
|
612
|
+
var conditionQuery = conditions[conditions.length - 1];
|
|
613
|
+
var parentConditions = conditions.slice(0, conditions.length - 1);
|
|
614
|
+
this.currConditionalRuleset.addRule({
|
|
615
|
+
selector,
|
|
616
|
+
rule
|
|
617
|
+
}, conditionQuery, parentConditions);
|
|
618
|
+
}
|
|
619
|
+
addRule(cssRule) {
|
|
620
|
+
// Run `transformProperties` before `transformVars` as we don't want to pixelify CSS Vars
|
|
621
|
+
var rule = this.transformVars(this.transformProperties(cssRule.rule));
|
|
622
|
+
var selector = this.transformSelector(cssRule.selector);
|
|
623
|
+
this.rules.push({
|
|
624
|
+
selector,
|
|
625
|
+
rule
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
addLayer(layer) {
|
|
629
|
+
var uniqueLayerKey = layer.join(' - ');
|
|
630
|
+
this.layers.set(uniqueLayerKey, layer);
|
|
631
|
+
}
|
|
632
|
+
transformProperties(cssRule) {
|
|
633
|
+
return this.transformContent(this.pixelifyProperties(cssRule));
|
|
634
|
+
}
|
|
635
|
+
pixelifyProperties(cssRule) {
|
|
636
|
+
forEach(cssRule, (value, key) => {
|
|
637
|
+
if (typeof value === 'number' && value !== 0 && !UNITLESS[key]) {
|
|
638
|
+
// @ts-expect-error Any ideas?
|
|
639
|
+
cssRule[key] = "".concat(value, "px");
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
return cssRule;
|
|
643
|
+
}
|
|
644
|
+
transformVars(_ref3) {
|
|
645
|
+
var {
|
|
646
|
+
vars
|
|
647
|
+
} = _ref3,
|
|
648
|
+
rest = _objectWithoutProperties(_ref3, _excluded);
|
|
649
|
+
if (!vars) {
|
|
650
|
+
return rest;
|
|
651
|
+
}
|
|
652
|
+
return _objectSpread2(_objectSpread2({}, mapKeys(vars, (_value, key) => getVarName(key))), rest);
|
|
653
|
+
}
|
|
654
|
+
transformContent(_ref4) {
|
|
655
|
+
var {
|
|
656
|
+
content
|
|
657
|
+
} = _ref4,
|
|
658
|
+
rest = _objectWithoutProperties(_ref4, _excluded2);
|
|
659
|
+
if (typeof content === 'undefined') {
|
|
660
|
+
return rest;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
// Handle fallback arrays:
|
|
664
|
+
var contentArray = Array.isArray(content) ? content : [content];
|
|
665
|
+
return _objectSpread2({
|
|
666
|
+
content: contentArray.map(value =>
|
|
667
|
+
// This logic was adapted from Stitches :)
|
|
668
|
+
value && (value.includes('"') || value.includes("'") || /^([A-Za-z\-]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)(\s|$)/.test(value)) ? value : "\"".concat(value, "\""))
|
|
669
|
+
}, rest);
|
|
670
|
+
}
|
|
671
|
+
transformClassname(identifier) {
|
|
672
|
+
return ".".concat(cssescExports(identifier, {
|
|
673
|
+
isIdentifier: true
|
|
674
|
+
}));
|
|
675
|
+
}
|
|
676
|
+
transformSelector(selector) {
|
|
677
|
+
// Map class list compositions to single identifiers
|
|
678
|
+
var transformedSelector = selector;
|
|
679
|
+
var _loop = function _loop(identifier) {
|
|
680
|
+
transformedSelector = transformedSelector.replace(regex, () => {
|
|
681
|
+
markCompositionUsed(identifier);
|
|
682
|
+
return identifier;
|
|
683
|
+
});
|
|
684
|
+
};
|
|
685
|
+
for (var {
|
|
686
|
+
identifier,
|
|
687
|
+
regex
|
|
688
|
+
} of this.composedClassLists) {
|
|
689
|
+
_loop(identifier);
|
|
690
|
+
}
|
|
691
|
+
if (this.localClassNamesMap.has(transformedSelector)) {
|
|
692
|
+
return this.transformClassname(transformedSelector);
|
|
693
|
+
}
|
|
694
|
+
var results = this.localClassNamesSearch.search(transformedSelector);
|
|
695
|
+
var lastReplaceIndex = transformedSelector.length;
|
|
696
|
+
|
|
697
|
+
// Perform replacements backwards to simplify index handling
|
|
698
|
+
for (var i = results.length - 1; i >= 0; i--) {
|
|
699
|
+
var [endIndex, [firstMatch]] = results[i];
|
|
700
|
+
var startIndex = endIndex - firstMatch.length + 1;
|
|
701
|
+
|
|
702
|
+
// Class names can be substrings of other class names
|
|
703
|
+
// e.g. '_1g1ptzo1' and '_1g1ptzo10'
|
|
704
|
+
//
|
|
705
|
+
// Additionally, concatenated classnames can contain substrings equal to other classnames
|
|
706
|
+
// e.g. '&&' where '&' is 'debugName_hash1' and 'debugName_hash1d' is also a local classname
|
|
707
|
+
// Before transforming the selector, this would look like `debugName_hash1debugName_hash1`
|
|
708
|
+
// which contains the substring `debugName_hash1d`’.
|
|
709
|
+
//
|
|
710
|
+
// In either of these cases, the last replace index will occur either before or within the
|
|
711
|
+
// current replacement range (from `startIndex` to `endIndex`).
|
|
712
|
+
// If this occurs, we skip the replacement to avoid transforming the selector incorrectly.
|
|
713
|
+
var skipReplacement = lastReplaceIndex <= endIndex;
|
|
714
|
+
if (skipReplacement) {
|
|
715
|
+
continue;
|
|
716
|
+
}
|
|
717
|
+
lastReplaceIndex = startIndex;
|
|
718
|
+
|
|
719
|
+
// If class names already starts with a '.' then skip
|
|
720
|
+
if (transformedSelector[startIndex - 1] !== '.') {
|
|
721
|
+
transformedSelector = replaceBetweenIndexes(transformedSelector, startIndex, endIndex + 1, this.transformClassname(firstMatch));
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
return transformedSelector;
|
|
725
|
+
}
|
|
726
|
+
transformSelectors(root, rule, conditions) {
|
|
727
|
+
forEach(rule.selectors, (selectorRule, selector) => {
|
|
728
|
+
if (root.type !== 'local') {
|
|
729
|
+
throw new Error("Selectors are not allowed within ".concat(root.type === 'global' ? '"globalStyle"' : '"selectors"'));
|
|
730
|
+
}
|
|
731
|
+
var transformedSelector = this.transformSelector(selector.replace(RegExp('&', 'g'), root.selector));
|
|
732
|
+
validateSelector(transformedSelector, root.selector);
|
|
733
|
+
var rule = {
|
|
734
|
+
selector: transformedSelector,
|
|
735
|
+
rule: omit(selectorRule, specialKeys)
|
|
736
|
+
};
|
|
737
|
+
if (conditions) {
|
|
738
|
+
this.addConditionalRule(rule, conditions);
|
|
739
|
+
} else {
|
|
740
|
+
this.addRule(rule);
|
|
741
|
+
}
|
|
742
|
+
var selectorRoot = {
|
|
743
|
+
type: 'selector',
|
|
744
|
+
selector: transformedSelector,
|
|
745
|
+
rule: selectorRule
|
|
746
|
+
};
|
|
747
|
+
this.transformLayer(selectorRoot, selectorRule['@layer'], conditions);
|
|
748
|
+
this.transformSupports(selectorRoot, selectorRule['@supports'], conditions);
|
|
749
|
+
this.transformMedia(selectorRoot, selectorRule['@media'], conditions);
|
|
750
|
+
this.transformContainer(selectorRoot, selectorRule['@container'], conditions);
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
transformMedia(root, rules) {
|
|
754
|
+
var parentConditions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
755
|
+
if (rules) {
|
|
756
|
+
var _this$currConditional;
|
|
757
|
+
(_this$currConditional = this.currConditionalRuleset) === null || _this$currConditional === void 0 || _this$currConditional.addConditionPrecedence(parentConditions, Object.keys(rules).map(query => "@media ".concat(query)));
|
|
758
|
+
for (var [query, mediaRule] of Object.entries(rules)) {
|
|
759
|
+
var mediaQuery = "@media ".concat(query);
|
|
760
|
+
validateMediaQuery(mediaQuery);
|
|
761
|
+
var conditions = [...parentConditions, mediaQuery];
|
|
762
|
+
this.addConditionalRule({
|
|
763
|
+
selector: root.selector,
|
|
764
|
+
rule: omit(mediaRule, specialKeys)
|
|
765
|
+
}, conditions);
|
|
766
|
+
if (root.type === 'local') {
|
|
767
|
+
this.transformSimplePseudos(root, mediaRule, conditions);
|
|
768
|
+
this.transformSelectors(root, mediaRule, conditions);
|
|
769
|
+
}
|
|
770
|
+
this.transformLayer(root, mediaRule['@layer'], conditions);
|
|
771
|
+
this.transformSupports(root, mediaRule['@supports'], conditions);
|
|
772
|
+
this.transformContainer(root, mediaRule['@container'], conditions);
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
transformContainer(root, rules) {
|
|
777
|
+
var parentConditions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
778
|
+
if (rules) {
|
|
779
|
+
var _this$currConditional2;
|
|
780
|
+
(_this$currConditional2 = this.currConditionalRuleset) === null || _this$currConditional2 === void 0 || _this$currConditional2.addConditionPrecedence(parentConditions, Object.keys(rules).map(query => "@container ".concat(query)));
|
|
781
|
+
forEach(rules, (containerRule, query) => {
|
|
782
|
+
var containerQuery = "@container ".concat(query);
|
|
783
|
+
var conditions = [...parentConditions, containerQuery];
|
|
784
|
+
this.addConditionalRule({
|
|
785
|
+
selector: root.selector,
|
|
786
|
+
rule: omit(containerRule, specialKeys)
|
|
787
|
+
}, conditions);
|
|
788
|
+
if (root.type === 'local') {
|
|
789
|
+
this.transformSimplePseudos(root, containerRule, conditions);
|
|
790
|
+
this.transformSelectors(root, containerRule, conditions);
|
|
791
|
+
}
|
|
792
|
+
this.transformLayer(root, containerRule['@layer'], conditions);
|
|
793
|
+
this.transformSupports(root, containerRule['@supports'], conditions);
|
|
794
|
+
this.transformMedia(root, containerRule['@media'], conditions);
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
transformLayer(root, rules) {
|
|
799
|
+
var parentConditions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
800
|
+
if (rules) {
|
|
801
|
+
var _this$currConditional3;
|
|
802
|
+
(_this$currConditional3 = this.currConditionalRuleset) === null || _this$currConditional3 === void 0 || _this$currConditional3.addConditionPrecedence(parentConditions, Object.keys(rules).map(name => "@layer ".concat(name)));
|
|
803
|
+
forEach(rules, (layerRule, name) => {
|
|
804
|
+
var conditions = [...parentConditions, "@layer ".concat(name)];
|
|
805
|
+
this.addLayer(conditions);
|
|
806
|
+
this.addConditionalRule({
|
|
807
|
+
selector: root.selector,
|
|
808
|
+
rule: omit(layerRule, specialKeys)
|
|
809
|
+
}, conditions);
|
|
810
|
+
if (root.type === 'local') {
|
|
811
|
+
this.transformSimplePseudos(root, layerRule, conditions);
|
|
812
|
+
this.transformSelectors(root, layerRule, conditions);
|
|
813
|
+
}
|
|
814
|
+
this.transformMedia(root, layerRule['@media'], conditions);
|
|
815
|
+
this.transformSupports(root, layerRule['@supports'], conditions);
|
|
816
|
+
this.transformContainer(root, layerRule['@container'], conditions);
|
|
817
|
+
});
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
transformSupports(root, rules) {
|
|
821
|
+
var parentConditions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
822
|
+
if (rules) {
|
|
823
|
+
var _this$currConditional4;
|
|
824
|
+
(_this$currConditional4 = this.currConditionalRuleset) === null || _this$currConditional4 === void 0 || _this$currConditional4.addConditionPrecedence(parentConditions, Object.keys(rules).map(query => "@supports ".concat(query)));
|
|
825
|
+
forEach(rules, (supportsRule, query) => {
|
|
826
|
+
var conditions = [...parentConditions, "@supports ".concat(query)];
|
|
827
|
+
this.addConditionalRule({
|
|
828
|
+
selector: root.selector,
|
|
829
|
+
rule: omit(supportsRule, specialKeys)
|
|
830
|
+
}, conditions);
|
|
831
|
+
if (root.type === 'local') {
|
|
832
|
+
this.transformSimplePseudos(root, supportsRule, conditions);
|
|
833
|
+
this.transformSelectors(root, supportsRule, conditions);
|
|
834
|
+
}
|
|
835
|
+
this.transformLayer(root, supportsRule['@layer'], conditions);
|
|
836
|
+
this.transformMedia(root, supportsRule['@media'], conditions);
|
|
837
|
+
this.transformContainer(root, supportsRule['@container'], conditions);
|
|
838
|
+
});
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
transformSimplePseudos(root, rule, conditions) {
|
|
842
|
+
for (var key of Object.keys(rule)) {
|
|
843
|
+
// Process simple pseudos
|
|
844
|
+
if (simplePseudoLookup[key]) {
|
|
845
|
+
if (root.type !== 'local') {
|
|
846
|
+
throw new Error("Simple pseudos are not valid in ".concat(root.type === 'global' ? '"globalStyle"' : '"selectors"'));
|
|
847
|
+
}
|
|
848
|
+
if (conditions) {
|
|
849
|
+
this.addConditionalRule({
|
|
850
|
+
selector: "".concat(root.selector).concat(key),
|
|
851
|
+
rule: rule[key]
|
|
852
|
+
}, conditions);
|
|
853
|
+
} else {
|
|
854
|
+
this.addRule({
|
|
855
|
+
conditions,
|
|
856
|
+
selector: "".concat(root.selector).concat(key),
|
|
857
|
+
rule: rule[key]
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
toCss() {
|
|
864
|
+
var css = [];
|
|
865
|
+
|
|
866
|
+
// Render font-face rules
|
|
867
|
+
for (var fontFaceRule of this.fontFaceRules) {
|
|
868
|
+
css.push(renderCss({
|
|
869
|
+
'@font-face': fontFaceRule
|
|
870
|
+
}));
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
// Render property rules
|
|
874
|
+
for (var property of this.propertyRules) {
|
|
875
|
+
css.push(renderCss({
|
|
876
|
+
["@property ".concat(property.name)]: property.rule
|
|
877
|
+
}));
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
// Render keyframes
|
|
881
|
+
for (var keyframe of this.keyframesRules) {
|
|
882
|
+
css.push(renderCss({
|
|
883
|
+
["@keyframes ".concat(keyframe.name)]: keyframe.rule
|
|
884
|
+
}));
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
// Render layer definitions
|
|
888
|
+
for (var layer of this.layers.values()) {
|
|
889
|
+
var [definition, ...nesting] = layer.reverse();
|
|
890
|
+
var cssObj = {
|
|
891
|
+
[definition]: DECLARATION
|
|
892
|
+
};
|
|
893
|
+
for (var part of nesting) {
|
|
894
|
+
cssObj = {
|
|
895
|
+
[part]: cssObj
|
|
896
|
+
};
|
|
897
|
+
}
|
|
898
|
+
css.push(renderCss(cssObj));
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
// Render unconditional rules
|
|
902
|
+
for (var rule of this.rules) {
|
|
903
|
+
css.push(renderCss({
|
|
904
|
+
[rule.selector]: rule.rule
|
|
905
|
+
}));
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
// Render conditional rules
|
|
909
|
+
for (var conditionalRuleset of this.conditionalRulesets) {
|
|
910
|
+
for (var conditionalRule of conditionalRuleset.renderToArray()) {
|
|
911
|
+
css.push(renderCss(conditionalRule));
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
return css.filter(Boolean);
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
function renderCss(v) {
|
|
918
|
+
var indent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
919
|
+
var rules = [];
|
|
920
|
+
var _loop2 = function _loop2(key) {
|
|
921
|
+
var value = v[key];
|
|
922
|
+
if (value && Array.isArray(value)) {
|
|
923
|
+
rules.push(...value.map(v => renderCss({
|
|
924
|
+
[key]: v
|
|
925
|
+
}, indent)));
|
|
926
|
+
} else if (value && typeof value === 'object') {
|
|
927
|
+
var isEmpty = Object.keys(value).length === 0;
|
|
928
|
+
if (!isEmpty) {
|
|
929
|
+
rules.push("".concat(indent).concat(key, " {\n").concat(renderCss(value, indent + DOUBLE_SPACE), "\n").concat(indent, "}"));
|
|
930
|
+
}
|
|
931
|
+
} else if (value === DECLARATION) {
|
|
932
|
+
rules.push("".concat(indent).concat(key, ";"));
|
|
933
|
+
} else {
|
|
934
|
+
rules.push("".concat(indent).concat(key.startsWith('--') ? key : dashify(key), ": ").concat(value, ";"));
|
|
935
|
+
}
|
|
936
|
+
};
|
|
937
|
+
for (var key of Object.keys(v)) {
|
|
938
|
+
_loop2(key);
|
|
939
|
+
}
|
|
940
|
+
return rules.join('\n');
|
|
941
|
+
}
|
|
942
|
+
function transformCss(_ref5) {
|
|
943
|
+
var {
|
|
944
|
+
localClassNames,
|
|
945
|
+
cssObjs,
|
|
946
|
+
composedClassLists
|
|
947
|
+
} = _ref5;
|
|
948
|
+
var stylesheet = new Stylesheet(localClassNames, composedClassLists);
|
|
949
|
+
for (var root of cssObjs) {
|
|
950
|
+
stylesheet.processCssObj(root);
|
|
951
|
+
}
|
|
952
|
+
return stylesheet.toCss();
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
export { _objectSpread2 as _, _objectWithoutProperties as a, dudupeAndJoinClassList as d, transformCss as t };
|