@stokelp/ui 2.102.0 → 2.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/_virtual/_rolldown/runtime.js +21 -0
- package/dist/components/accordion/Accordion.cjs +2 -2
- package/dist/components/accordion/Accordion.cjs.map +1 -1
- package/dist/components/accordion/Accordion.js +22 -27
- package/dist/components/accordion/Accordion.js.map +1 -1
- package/dist/components/action-card/ActionCard.cjs +2 -2
- package/dist/components/action-card/ActionCard.cjs.map +1 -1
- package/dist/components/action-card/ActionCard.js +23 -26
- package/dist/components/action-card/ActionCard.js.map +1 -1
- package/dist/components/alert/Alert.cjs +2 -2
- package/dist/components/alert/Alert.cjs.map +1 -1
- package/dist/components/alert/Alert.js +117 -84
- package/dist/components/alert/Alert.js.map +1 -1
- package/dist/components/app/mobile-card/MobileCardEntityRow.cjs +2 -2
- package/dist/components/app/mobile-card/MobileCardEntityRow.cjs.map +1 -1
- package/dist/components/app/mobile-card/MobileCardEntityRow.js +44 -25
- package/dist/components/app/mobile-card/MobileCardEntityRow.js.map +1 -1
- package/dist/components/app/mobile-card/MobileCardHeader.cjs +2 -2
- package/dist/components/app/mobile-card/MobileCardHeader.cjs.map +1 -1
- package/dist/components/app/mobile-card/MobileCardHeader.js +18 -20
- package/dist/components/app/mobile-card/MobileCardHeader.js.map +1 -1
- package/dist/components/app/mobile-card/MobileCardNotificationBadge.cjs +2 -2
- package/dist/components/app/mobile-card/MobileCardNotificationBadge.cjs.map +1 -1
- package/dist/components/app/mobile-card/MobileCardNotificationBadge.js +31 -13
- package/dist/components/app/mobile-card/MobileCardNotificationBadge.js.map +1 -1
- package/dist/components/app/mobile-card/MobileCardShell.cjs +2 -2
- package/dist/components/app/mobile-card/MobileCardShell.cjs.map +1 -1
- package/dist/components/app/mobile-card/MobileCardShell.js +17 -19
- package/dist/components/app/mobile-card/MobileCardShell.js.map +1 -1
- package/dist/components/app/mobile-card/MobileCardSkeleton.cjs +2 -2
- package/dist/components/app/mobile-card/MobileCardSkeleton.cjs.map +1 -1
- package/dist/components/app/mobile-card/MobileCardSkeleton.js +45 -22
- package/dist/components/app/mobile-card/MobileCardSkeleton.js.map +1 -1
- package/dist/components/app/mobile-navigation/MobileNavigation.cjs +2 -2
- package/dist/components/app/mobile-navigation/MobileNavigation.cjs.map +1 -1
- package/dist/components/app/mobile-navigation/MobileNavigation.js +16 -18
- package/dist/components/app/mobile-navigation/MobileNavigation.js.map +1 -1
- package/dist/components/app/navigation/AppNavigation.cjs +2 -2
- package/dist/components/app/navigation/AppNavigation.cjs.map +1 -1
- package/dist/components/app/navigation/AppNavigation.js +35 -47
- package/dist/components/app/navigation/AppNavigation.js.map +1 -1
- package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.cjs +2 -2
- package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.cjs.map +1 -1
- package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.js +188 -119
- package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.js.map +1 -1
- package/dist/components/app/price-tag/PriceTag.cjs +2 -2
- package/dist/components/app/price-tag/PriceTag.cjs.map +1 -1
- package/dist/components/app/price-tag/PriceTag.js +25 -19
- package/dist/components/app/price-tag/PriceTag.js.map +1 -1
- package/dist/components/app/product-card-catalog/styled.cjs +2 -2
- package/dist/components/app/product-card-catalog/styled.cjs.map +1 -1
- package/dist/components/app/product-card-catalog/styled.js +23 -21
- package/dist/components/app/product-card-catalog/styled.js.map +1 -1
- package/dist/components/avatar/styled.cjs +2 -2
- package/dist/components/avatar/styled.cjs.map +1 -1
- package/dist/components/avatar/styled.d.ts +2 -2
- package/dist/components/avatar/styled.js +28 -27
- package/dist/components/avatar/styled.js.map +1 -1
- package/dist/components/box/Box.cjs +2 -2
- package/dist/components/box/Box.cjs.map +1 -1
- package/dist/components/box/Box.js +11 -10
- package/dist/components/box/Box.js.map +1 -1
- package/dist/components/breadcrumb/Breadcrumb.cjs +2 -2
- package/dist/components/breadcrumb/Breadcrumb.cjs.map +1 -1
- package/dist/components/breadcrumb/Breadcrumb.d.ts +4 -6
- package/dist/components/breadcrumb/Breadcrumb.js +39 -35
- package/dist/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/button/Button.cjs +2 -2
- package/dist/components/button/Button.cjs.map +1 -1
- package/dist/components/button/Button.js +9 -8
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/button-filter/ButtonFilter.cjs +2 -2
- package/dist/components/button-filter/ButtonFilter.cjs.map +1 -1
- package/dist/components/button-filter/ButtonFilter.js +9 -8
- package/dist/components/button-filter/ButtonFilter.js.map +1 -1
- package/dist/components/chat/Chat.cjs +2 -2
- package/dist/components/chat/Chat.cjs.map +1 -1
- package/dist/components/chat/Chat.d.ts +6 -4
- package/dist/components/chat/Chat.js +27 -26
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/ChatDocumentMessage.cjs +2 -2
- package/dist/components/chat/ChatDocumentMessage.cjs.map +1 -1
- package/dist/components/chat/ChatDocumentMessage.js +32 -31
- package/dist/components/chat/ChatDocumentMessage.js.map +1 -1
- package/dist/components/chat/ChatMessage.cjs +2 -2
- package/dist/components/chat/ChatMessage.cjs.map +1 -1
- package/dist/components/chat/ChatMessage.js +8 -7
- package/dist/components/chat/ChatMessage.js.map +1 -1
- package/dist/components/chat/ChatProfileAvatar.cjs +2 -2
- package/dist/components/chat/ChatProfileAvatar.cjs.map +1 -1
- package/dist/components/chat/ChatProfileAvatar.js +24 -16
- package/dist/components/chat/ChatProfileAvatar.js.map +1 -1
- package/dist/components/chat/ChatTextInput.cjs +2 -2
- package/dist/components/chat/ChatTextInput.cjs.map +1 -1
- package/dist/components/chat/ChatTextInput.d.ts +2 -2
- package/dist/components/chat/ChatTextInput.js +44 -52
- package/dist/components/chat/ChatTextInput.js.map +1 -1
- package/dist/components/checkbox/Checkbox.cjs +2 -2
- package/dist/components/checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/checkbox/Checkbox.js +36 -34
- package/dist/components/checkbox/Checkbox.js.map +1 -1
- package/dist/components/checkbox-card/CheckboxCard.cjs +2 -2
- package/dist/components/checkbox-card/CheckboxCard.cjs.map +1 -1
- package/dist/components/checkbox-card/CheckboxCard.js +33 -38
- package/dist/components/checkbox-card/CheckboxCard.js.map +1 -1
- package/dist/components/checkbox-card/namespace.cjs +2 -2
- package/dist/components/checkbox-card/namespace.cjs.map +1 -1
- package/dist/components/checkbox-card/namespace.js +14 -9
- package/dist/components/checkbox-card/namespace.js.map +1 -1
- package/dist/components/chip/Chip.cjs +2 -2
- package/dist/components/chip/Chip.cjs.map +1 -1
- package/dist/components/chip/Chip.js +23 -23
- package/dist/components/chip/Chip.js.map +1 -1
- package/dist/components/collapsible/styled.cjs +2 -2
- package/dist/components/collapsible/styled.cjs.map +1 -1
- package/dist/components/collapsible/styled.js +15 -11
- package/dist/components/collapsible/styled.js.map +1 -1
- package/dist/components/combobox/Combobox.cjs +2 -2
- package/dist/components/combobox/Combobox.cjs.map +1 -1
- package/dist/components/combobox/Combobox.js +206 -173
- package/dist/components/combobox/Combobox.js.map +1 -1
- package/dist/components/date-picker/DatePicker.cjs +2 -2
- package/dist/components/date-picker/DatePicker.cjs.map +1 -1
- package/dist/components/date-picker/DatePicker.d.ts +2 -2
- package/dist/components/date-picker/DatePicker.js +151 -127
- package/dist/components/date-picker/DatePicker.js.map +1 -1
- package/dist/components/dialog/styled.cjs +2 -2
- package/dist/components/dialog/styled.cjs.map +1 -1
- package/dist/components/dialog/styled.js +75 -65
- package/dist/components/dialog/styled.js.map +1 -1
- package/dist/components/drawer/Drawer.cjs +2 -2
- package/dist/components/drawer/Drawer.cjs.map +1 -1
- package/dist/components/drawer/Drawer.js +62 -68
- package/dist/components/drawer/Drawer.js.map +1 -1
- package/dist/components/flag/styled.cjs +2 -2
- package/dist/components/flag/styled.cjs.map +1 -1
- package/dist/components/flag/styled.d.ts +2 -2
- package/dist/components/flag/styled.js +8437 -3751
- package/dist/components/flag/styled.js.map +1 -1
- package/dist/components/form/FormControl.cjs +2 -2
- package/dist/components/form/FormControl.cjs.map +1 -1
- package/dist/components/form/FormControl.d.ts +2 -2
- package/dist/components/form/FormControl.js +13 -18
- package/dist/components/form/FormControl.js.map +1 -1
- package/dist/components/form/FormHelperText.cjs +2 -2
- package/dist/components/form/FormHelperText.cjs.map +1 -1
- package/dist/components/form/FormHelperText.js +8 -9
- package/dist/components/form/FormHelperText.js.map +1 -1
- package/dist/components/form/FormLabel.cjs +2 -2
- package/dist/components/form/FormLabel.cjs.map +1 -1
- package/dist/components/form/FormLabel.d.ts +2 -2
- package/dist/components/form/FormLabel.js +38 -33
- package/dist/components/form/FormLabel.js.map +1 -1
- package/dist/components/heading/Heading.cjs +2 -2
- package/dist/components/heading/Heading.cjs.map +1 -1
- package/dist/components/heading/Heading.js +14 -10
- package/dist/components/heading/Heading.js.map +1 -1
- package/dist/components/icon/Icon.cjs +2 -2
- package/dist/components/icon/Icon.cjs.map +1 -1
- package/dist/components/icon/Icon.d.ts +2 -2
- package/dist/components/icon/Icon.js +15 -10
- package/dist/components/icon/Icon.js.map +1 -1
- package/dist/components/icon-button/IconButton.cjs +2 -2
- package/dist/components/icon-button/IconButton.cjs.map +1 -1
- package/dist/components/icon-button/IconButton.d.ts +2 -3
- package/dist/components/icon-button/IconButton.js +8 -7
- package/dist/components/icon-button/IconButton.js.map +1 -1
- package/dist/components/illustration/Illustration.cjs +2 -2
- package/dist/components/illustration/Illustration.cjs.map +1 -1
- package/dist/components/illustration/Illustration.js +35 -39
- package/dist/components/illustration/Illustration.js.map +1 -1
- package/dist/components/illustration/patterns.cjs +2 -2
- package/dist/components/illustration/patterns.cjs.map +1 -1
- package/dist/components/illustration/patterns.js +5563 -8897
- package/dist/components/illustration/patterns.js.map +1 -1
- package/dist/components/input/HighlightedInput.cjs +2 -2
- package/dist/components/input/HighlightedInput.cjs.map +1 -1
- package/dist/components/input/HighlightedInput.d.ts +9 -12
- package/dist/components/input/HighlightedInput.js +43 -58
- package/dist/components/input/HighlightedInput.js.map +1 -1
- package/dist/components/input/Input.cjs +2 -2
- package/dist/components/input/Input.cjs.map +1 -1
- package/dist/components/input/Input.d.ts +1 -2
- package/dist/components/input/Input.js +12 -13
- package/dist/components/input/Input.js.map +1 -1
- package/dist/components/input/InputAddon.cjs +2 -2
- package/dist/components/input/InputAddon.cjs.map +1 -1
- package/dist/components/input/InputAddon.js +8 -9
- package/dist/components/input/InputAddon.js.map +1 -1
- package/dist/components/input/InputGroup.cjs +2 -2
- package/dist/components/input/InputGroup.cjs.map +1 -1
- package/dist/components/input/InputGroup.js +8 -9
- package/dist/components/input/InputGroup.js.map +1 -1
- package/dist/components/input/PhoneNumberInput.cjs +2 -2
- package/dist/components/input/PhoneNumberInput.cjs.map +1 -1
- package/dist/components/input/PhoneNumberInput.js +21 -23
- package/dist/components/input/PhoneNumberInput.js.map +1 -1
- package/dist/components/menu/Menu.cjs +2 -2
- package/dist/components/menu/Menu.cjs.map +1 -1
- package/dist/components/menu/Menu.js +32 -28
- package/dist/components/menu/Menu.js.map +1 -1
- package/dist/components/pagination/Pagination.cjs +2 -2
- package/dist/components/pagination/Pagination.cjs.map +1 -1
- package/dist/components/pagination/Pagination.js +76 -84
- package/dist/components/pagination/Pagination.js.map +1 -1
- package/dist/components/pagination/use-pagination.cjs +2 -2
- package/dist/components/pagination/use-pagination.cjs.map +1 -1
- package/dist/components/pagination/use-pagination.js +56 -54
- package/dist/components/pagination/use-pagination.js.map +1 -1
- package/dist/components/popover/Popover.cjs +2 -2
- package/dist/components/popover/Popover.cjs.map +1 -1
- package/dist/components/popover/Popover.js +21 -25
- package/dist/components/popover/Popover.js.map +1 -1
- package/dist/components/radio-button-group/RadioButtonGroup.cjs +2 -2
- package/dist/components/radio-button-group/RadioButtonGroup.cjs.map +1 -1
- package/dist/components/radio-button-group/RadioButtonGroup.js +20 -20
- package/dist/components/radio-button-group/RadioButtonGroup.js.map +1 -1
- package/dist/components/radio-card-group/RadioCardGroup.cjs +2 -2
- package/dist/components/radio-card-group/RadioCardGroup.cjs.map +1 -1
- package/dist/components/radio-card-group/RadioCardGroup.js +21 -22
- package/dist/components/radio-card-group/RadioCardGroup.js.map +1 -1
- package/dist/components/radio-card-group/namespace.cjs +2 -2
- package/dist/components/radio-card-group/namespace.cjs.map +1 -1
- package/dist/components/radio-card-group/namespace.js +15 -10
- package/dist/components/radio-card-group/namespace.js.map +1 -1
- package/dist/components/radio-group/RadioGroup.cjs +2 -2
- package/dist/components/radio-group/RadioGroup.cjs.map +1 -1
- package/dist/components/radio-group/RadioGroup.js +21 -21
- package/dist/components/radio-group/RadioGroup.js.map +1 -1
- package/dist/components/select/Select.cjs +2 -2
- package/dist/components/select/Select.cjs.map +1 -1
- package/dist/components/select/Select.js +194 -141
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/select-language/SelectLanguage.cjs +2 -2
- package/dist/components/select-language/SelectLanguage.cjs.map +1 -1
- package/dist/components/select-language/SelectLanguage.js +114 -88
- package/dist/components/select-language/SelectLanguage.js.map +1 -1
- package/dist/components/status-tag-select/StatusTagSelect.cjs +2 -2
- package/dist/components/status-tag-select/StatusTagSelect.cjs.map +1 -1
- package/dist/components/status-tag-select/StatusTagSelect.js +93 -115
- package/dist/components/status-tag-select/StatusTagSelect.js.map +1 -1
- package/dist/components/switch/Switch.cjs +2 -2
- package/dist/components/switch/Switch.cjs.map +1 -1
- package/dist/components/switch/Switch.js +30 -18
- package/dist/components/switch/Switch.js.map +1 -1
- package/dist/components/switch-card/SwitchCard.cjs +2 -2
- package/dist/components/switch-card/SwitchCard.cjs.map +1 -1
- package/dist/components/switch-card/SwitchCard.js +28 -25
- package/dist/components/switch-card/SwitchCard.js.map +1 -1
- package/dist/components/switch-card/namespace.cjs +2 -2
- package/dist/components/switch-card/namespace.cjs.map +1 -1
- package/dist/components/switch-card/namespace.js +14 -9
- package/dist/components/switch-card/namespace.js.map +1 -1
- package/dist/components/table/Table.cjs +2 -2
- package/dist/components/table/Table.cjs.map +1 -1
- package/dist/components/table/Table.d.ts +3 -4
- package/dist/components/table/Table.js +133 -109
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/TableProvider.cjs +2 -2
- package/dist/components/table/TableProvider.cjs.map +1 -1
- package/dist/components/table/TableProvider.js +36 -39
- package/dist/components/table/TableProvider.js.map +1 -1
- package/dist/components/tabs/Tabs.cjs +2 -2
- package/dist/components/tabs/Tabs.cjs.map +1 -1
- package/dist/components/tabs/Tabs.js +18 -26
- package/dist/components/tabs/Tabs.js.map +1 -1
- package/dist/components/tag/Tag.cjs +2 -2
- package/dist/components/tag/Tag.cjs.map +1 -1
- package/dist/components/tag/Tag.js +22 -16
- package/dist/components/tag/Tag.js.map +1 -1
- package/dist/components/text/Text.cjs +2 -2
- package/dist/components/text/Text.cjs.map +1 -1
- package/dist/components/text/Text.js +12 -11
- package/dist/components/text/Text.js.map +1 -1
- package/dist/components/textarea/Textarea.cjs +2 -2
- package/dist/components/textarea/Textarea.cjs.map +1 -1
- package/dist/components/textarea/Textarea.d.ts +1 -2
- package/dist/components/textarea/Textarea.js +9 -8
- package/dist/components/textarea/Textarea.js.map +1 -1
- package/dist/components/tooltip/Tooltip.cjs +2 -2
- package/dist/components/tooltip/Tooltip.cjs.map +1 -1
- package/dist/components/tooltip/Tooltip.js +38 -42
- package/dist/components/tooltip/Tooltip.js.map +1 -1
- package/dist/icons/index.cjs +2 -2
- package/dist/icons/index.cjs.map +1 -1
- package/dist/icons/index.js +65 -58
- package/dist/icons/index.js.map +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.js +66 -191
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs +2 -2
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs.map +1 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js +22 -27
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js.map +1 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs +2 -2
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs.map +1 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js +22 -27
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js.map +1 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs +2 -2
- package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs.map +1 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js +22 -27
- package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js.map +1 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs +2 -2
- package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs.map +1 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js +22 -27
- package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js.map +1 -1
- package/dist/node_modules/deepmerge/dist/cjs.cjs +2 -2
- package/dist/node_modules/deepmerge/dist/cjs.cjs.map +1 -1
- package/dist/node_modules/deepmerge/dist/cjs.js +76 -80
- package/dist/node_modules/deepmerge/dist/cjs.js.map +1 -1
- package/dist/preset.cjs +2 -2
- package/dist/preset.cjs.map +1 -1
- package/dist/preset.js +30 -31
- package/dist/preset.js.map +1 -1
- package/dist/shared/ConditionalWrapper.cjs +2 -2
- package/dist/shared/ConditionalWrapper.cjs.map +1 -1
- package/dist/shared/ConditionalWrapper.js +6 -5
- package/dist/shared/ConditionalWrapper.js.map +1 -1
- package/dist/shared/assets/icons.cjs +2 -2
- package/dist/shared/assets/icons.cjs.map +1 -1
- package/dist/shared/assets/icons.js +30 -22
- package/dist/shared/assets/icons.js.map +1 -1
- package/dist/shared/hooks/useUncontrolled.cjs +2 -2
- package/dist/shared/hooks/useUncontrolled.cjs.map +1 -1
- package/dist/shared/hooks/useUncontrolled.js +19 -16
- package/dist/shared/hooks/useUncontrolled.js.map +1 -1
- package/dist/shared/utils/events.cjs +2 -2
- package/dist/shared/utils/events.cjs.map +1 -1
- package/dist/shared/utils/events.js +7 -6
- package/dist/shared/utils/events.js.map +1 -1
- package/dist/theme/breakpoints.cjs +2 -2
- package/dist/theme/breakpoints.cjs.map +1 -1
- package/dist/theme/breakpoints.js +10 -9
- package/dist/theme/breakpoints.js.map +1 -1
- package/dist/theme/conditions.cjs +2 -2
- package/dist/theme/conditions.cjs.map +1 -1
- package/dist/theme/conditions.js +23 -24
- package/dist/theme/conditions.js.map +1 -1
- package/dist/theme/containers.cjs +2 -2
- package/dist/theme/containers.cjs.map +1 -1
- package/dist/theme/containers.js +18 -17
- package/dist/theme/containers.js.map +1 -1
- package/dist/theme/globalCss.cjs +4 -4
- package/dist/theme/globalCss.cjs.map +1 -1
- package/dist/theme/globalCss.js +94 -99
- package/dist/theme/globalCss.js.map +1 -1
- package/dist/theme/keyframes.cjs +2 -2
- package/dist/theme/keyframes.cjs.map +1 -1
- package/dist/theme/keyframes.js +256 -171
- package/dist/theme/keyframes.js.map +1 -1
- package/dist/theme/recipes/accordion.cjs +2 -2
- package/dist/theme/recipes/accordion.cjs.map +1 -1
- package/dist/theme/recipes/accordion.js +93 -110
- package/dist/theme/recipes/accordion.js.map +1 -1
- package/dist/theme/recipes/action-card.cjs +2 -2
- package/dist/theme/recipes/action-card.cjs.map +1 -1
- package/dist/theme/recipes/action-card.js +88 -84
- package/dist/theme/recipes/action-card.js.map +1 -1
- package/dist/theme/recipes/alert.cjs +2 -2
- package/dist/theme/recipes/alert.cjs.map +1 -1
- package/dist/theme/recipes/alert.js +52 -65
- package/dist/theme/recipes/alert.js.map +1 -1
- package/dist/theme/recipes/app/mobile-navigation.cjs +2 -2
- package/dist/theme/recipes/app/mobile-navigation.cjs.map +1 -1
- package/dist/theme/recipes/app/mobile-navigation.js +94 -108
- package/dist/theme/recipes/app/mobile-navigation.js.map +1 -1
- package/dist/theme/recipes/app/navigation-language-select.cjs +2 -2
- package/dist/theme/recipes/app/navigation-language-select.cjs.map +1 -1
- package/dist/theme/recipes/app/navigation-language-select.js +135 -148
- package/dist/theme/recipes/app/navigation-language-select.js.map +1 -1
- package/dist/theme/recipes/app/navigation.cjs +2 -2
- package/dist/theme/recipes/app/navigation.cjs.map +1 -1
- package/dist/theme/recipes/app/navigation.js +214 -269
- package/dist/theme/recipes/app/navigation.js.map +1 -1
- package/dist/theme/recipes/app/price-tag.cjs +2 -2
- package/dist/theme/recipes/app/price-tag.cjs.map +1 -1
- package/dist/theme/recipes/app/price-tag.js +59 -70
- package/dist/theme/recipes/app/price-tag.js.map +1 -1
- package/dist/theme/recipes/app/product-card-catalog.cjs +2 -2
- package/dist/theme/recipes/app/product-card-catalog.cjs.map +1 -1
- package/dist/theme/recipes/app/product-card-catalog.js +189 -194
- package/dist/theme/recipes/app/product-card-catalog.js.map +1 -1
- package/dist/theme/recipes/avatar-group.cjs +2 -2
- package/dist/theme/recipes/avatar-group.cjs.map +1 -1
- package/dist/theme/recipes/avatar-group.js +27 -38
- package/dist/theme/recipes/avatar-group.js.map +1 -1
- package/dist/theme/recipes/avatar.cjs +2 -2
- package/dist/theme/recipes/avatar.cjs.map +1 -1
- package/dist/theme/recipes/avatar.js +97 -95
- package/dist/theme/recipes/avatar.js.map +1 -1
- package/dist/theme/recipes/breadcrumb.cjs +2 -2
- package/dist/theme/recipes/breadcrumb.cjs.map +1 -1
- package/dist/theme/recipes/breadcrumb.js +35 -31
- package/dist/theme/recipes/breadcrumb.js.map +1 -1
- package/dist/theme/recipes/button-filter.cjs +2 -2
- package/dist/theme/recipes/button-filter.cjs.map +1 -1
- package/dist/theme/recipes/button-filter.js +57 -60
- package/dist/theme/recipes/button-filter.js.map +1 -1
- package/dist/theme/recipes/button.cjs +2 -2
- package/dist/theme/recipes/button.cjs.map +1 -1
- package/dist/theme/recipes/button.js +287 -295
- package/dist/theme/recipes/button.js.map +1 -1
- package/dist/theme/recipes/chat/chat-document-message.cjs +2 -2
- package/dist/theme/recipes/chat/chat-document-message.cjs.map +1 -1
- package/dist/theme/recipes/chat/chat-document-message.js +38 -43
- package/dist/theme/recipes/chat/chat-document-message.js.map +1 -1
- package/dist/theme/recipes/chat/chat-input-text.cjs +2 -2
- package/dist/theme/recipes/chat/chat-input-text.cjs.map +1 -1
- package/dist/theme/recipes/chat/chat-input-text.js +26 -27
- package/dist/theme/recipes/chat/chat-input-text.js.map +1 -1
- package/dist/theme/recipes/chat/chat-message.cjs +2 -2
- package/dist/theme/recipes/chat/chat-message.cjs.map +1 -1
- package/dist/theme/recipes/chat/chat-message.js +49 -45
- package/dist/theme/recipes/chat/chat-message.js.map +1 -1
- package/dist/theme/recipes/chat/chat-profile-avatar.cjs +2 -2
- package/dist/theme/recipes/chat/chat-profile-avatar.cjs.map +1 -1
- package/dist/theme/recipes/chat/chat-profile-avatar.js +20 -25
- package/dist/theme/recipes/chat/chat-profile-avatar.js.map +1 -1
- package/dist/theme/recipes/chat/chat.cjs +2 -2
- package/dist/theme/recipes/chat/chat.cjs.map +1 -1
- package/dist/theme/recipes/chat/chat.js +51 -56
- package/dist/theme/recipes/chat/chat.js.map +1 -1
- package/dist/theme/recipes/checkbox-card.cjs +2 -2
- package/dist/theme/recipes/checkbox-card.cjs.map +1 -1
- package/dist/theme/recipes/checkbox-card.js +44 -40
- package/dist/theme/recipes/checkbox-card.js.map +1 -1
- package/dist/theme/recipes/checkbox-group.cjs +2 -2
- package/dist/theme/recipes/checkbox-group.cjs.map +1 -1
- package/dist/theme/recipes/checkbox-group.js +13 -12
- package/dist/theme/recipes/checkbox-group.js.map +1 -1
- package/dist/theme/recipes/checkbox.cjs +2 -2
- package/dist/theme/recipes/checkbox.cjs.map +1 -1
- package/dist/theme/recipes/checkbox.js +110 -129
- package/dist/theme/recipes/checkbox.js.map +1 -1
- package/dist/theme/recipes/chip.cjs +2 -2
- package/dist/theme/recipes/chip.cjs.map +1 -1
- package/dist/theme/recipes/chip.js +144 -182
- package/dist/theme/recipes/chip.js.map +1 -1
- package/dist/theme/recipes/collapsible.cjs +2 -2
- package/dist/theme/recipes/collapsible.cjs.map +1 -1
- package/dist/theme/recipes/collapsible.js +30 -28
- package/dist/theme/recipes/collapsible.js.map +1 -1
- package/dist/theme/recipes/combobox.cjs +2 -2
- package/dist/theme/recipes/combobox.cjs.map +1 -1
- package/dist/theme/recipes/combobox.js +149 -176
- package/dist/theme/recipes/combobox.js.map +1 -1
- package/dist/theme/recipes/common/group-card.cjs +2 -2
- package/dist/theme/recipes/common/group-card.cjs.map +1 -1
- package/dist/theme/recipes/common/group-card.js +60 -80
- package/dist/theme/recipes/common/group-card.js.map +1 -1
- package/dist/theme/recipes/datepicker.cjs +2 -2
- package/dist/theme/recipes/datepicker.cjs.map +1 -1
- package/dist/theme/recipes/datepicker.js +149 -176
- package/dist/theme/recipes/datepicker.js.map +1 -1
- package/dist/theme/recipes/dialog.cjs +2 -2
- package/dist/theme/recipes/dialog.cjs.map +1 -1
- package/dist/theme/recipes/dialog.js +137 -151
- package/dist/theme/recipes/dialog.js.map +1 -1
- package/dist/theme/recipes/drawer.cjs +2 -2
- package/dist/theme/recipes/drawer.cjs.map +1 -1
- package/dist/theme/recipes/drawer.js +105 -125
- package/dist/theme/recipes/drawer.js.map +1 -1
- package/dist/theme/recipes/flag.cjs +2 -2
- package/dist/theme/recipes/flag.cjs.map +1 -1
- package/dist/theme/recipes/flag.js +21 -30
- package/dist/theme/recipes/flag.js.map +1 -1
- package/dist/theme/recipes/form/control.cjs +2 -2
- package/dist/theme/recipes/form/control.cjs.map +1 -1
- package/dist/theme/recipes/form/control.js +27 -34
- package/dist/theme/recipes/form/control.js.map +1 -1
- package/dist/theme/recipes/form/helper-text.cjs +2 -2
- package/dist/theme/recipes/form/helper-text.cjs.map +1 -1
- package/dist/theme/recipes/form/helper-text.js +14 -13
- package/dist/theme/recipes/form/helper-text.js.map +1 -1
- package/dist/theme/recipes/form/label.cjs +2 -2
- package/dist/theme/recipes/form/label.cjs.map +1 -1
- package/dist/theme/recipes/form/label.js +47 -48
- package/dist/theme/recipes/form/label.js.map +1 -1
- package/dist/theme/recipes/heading.cjs +2 -2
- package/dist/theme/recipes/heading.cjs.map +1 -1
- package/dist/theme/recipes/heading.js +25 -34
- package/dist/theme/recipes/heading.js.map +1 -1
- package/dist/theme/recipes/highlightedInput.cjs +2 -2
- package/dist/theme/recipes/highlightedInput.cjs.map +1 -1
- package/dist/theme/recipes/highlightedInput.js +54 -45
- package/dist/theme/recipes/highlightedInput.js.map +1 -1
- package/dist/theme/recipes/icon-button.cjs +2 -2
- package/dist/theme/recipes/icon-button.cjs.map +1 -1
- package/dist/theme/recipes/icon-button.js +81 -89
- package/dist/theme/recipes/icon-button.js.map +1 -1
- package/dist/theme/recipes/icon.cjs +2 -2
- package/dist/theme/recipes/icon.cjs.map +1 -1
- package/dist/theme/recipes/icon.js +39 -42
- package/dist/theme/recipes/icon.js.map +1 -1
- package/dist/theme/recipes/illustration.cjs +2 -2
- package/dist/theme/recipes/illustration.cjs.map +1 -1
- package/dist/theme/recipes/illustration.js +29 -48
- package/dist/theme/recipes/illustration.js.map +1 -1
- package/dist/theme/recipes/index.cjs +2 -2
- package/dist/theme/recipes/index.cjs.map +1 -1
- package/dist/theme/recipes/index.js +127 -127
- package/dist/theme/recipes/index.js.map +1 -1
- package/dist/theme/recipes/input-addon.cjs +2 -2
- package/dist/theme/recipes/input-addon.cjs.map +1 -1
- package/dist/theme/recipes/input-addon.js +24 -24
- package/dist/theme/recipes/input-addon.js.map +1 -1
- package/dist/theme/recipes/input-group.cjs +2 -2
- package/dist/theme/recipes/input-group.cjs.map +1 -1
- package/dist/theme/recipes/input-group.js +40 -49
- package/dist/theme/recipes/input-group.js.map +1 -1
- package/dist/theme/recipes/input.cjs +2 -2
- package/dist/theme/recipes/input.cjs.map +1 -1
- package/dist/theme/recipes/input.js +48 -61
- package/dist/theme/recipes/input.js.map +1 -1
- package/dist/theme/recipes/menu.cjs +2 -2
- package/dist/theme/recipes/menu.cjs.map +1 -1
- package/dist/theme/recipes/menu.js +96 -100
- package/dist/theme/recipes/menu.js.map +1 -1
- package/dist/theme/recipes/pagination.cjs +2 -2
- package/dist/theme/recipes/pagination.cjs.map +1 -1
- package/dist/theme/recipes/pagination.js +76 -71
- package/dist/theme/recipes/pagination.js.map +1 -1
- package/dist/theme/recipes/phone-number-input.cjs +2 -2
- package/dist/theme/recipes/phone-number-input.cjs.map +1 -1
- package/dist/theme/recipes/phone-number-input.js +55 -66
- package/dist/theme/recipes/phone-number-input.js.map +1 -1
- package/dist/theme/recipes/popover.cjs +2 -2
- package/dist/theme/recipes/popover.cjs.map +1 -1
- package/dist/theme/recipes/popover.js +30 -28
- package/dist/theme/recipes/popover.js.map +1 -1
- package/dist/theme/recipes/radio-button-group.cjs +2 -2
- package/dist/theme/recipes/radio-button-group.cjs.map +1 -1
- package/dist/theme/recipes/radio-button-group.js +83 -94
- package/dist/theme/recipes/radio-button-group.js.map +1 -1
- package/dist/theme/recipes/radio-card-group.cjs +2 -2
- package/dist/theme/recipes/radio-card-group.cjs.map +1 -1
- package/dist/theme/recipes/radio-card-group.js +64 -67
- package/dist/theme/recipes/radio-card-group.js.map +1 -1
- package/dist/theme/recipes/radio-group.cjs +2 -2
- package/dist/theme/recipes/radio-group.cjs.map +1 -1
- package/dist/theme/recipes/radio-group.js +101 -118
- package/dist/theme/recipes/radio-group.js.map +1 -1
- package/dist/theme/recipes/select-language.cjs +2 -2
- package/dist/theme/recipes/select-language.cjs.map +1 -1
- package/dist/theme/recipes/select-language.js +93 -112
- package/dist/theme/recipes/select-language.js.map +1 -1
- package/dist/theme/recipes/select.cjs +2 -2
- package/dist/theme/recipes/select.cjs.map +1 -1
- package/dist/theme/recipes/select.js +194 -206
- package/dist/theme/recipes/select.js.map +1 -1
- package/dist/theme/recipes/status-tag-select.cjs +2 -2
- package/dist/theme/recipes/status-tag-select.cjs.map +1 -1
- package/dist/theme/recipes/status-tag-select.js +162 -175
- package/dist/theme/recipes/status-tag-select.js.map +1 -1
- package/dist/theme/recipes/switch-card.cjs +2 -2
- package/dist/theme/recipes/switch-card.cjs.map +1 -1
- package/dist/theme/recipes/switch-card.js +43 -42
- package/dist/theme/recipes/switch-card.js.map +1 -1
- package/dist/theme/recipes/switch.cjs +2 -2
- package/dist/theme/recipes/switch.cjs.map +1 -1
- package/dist/theme/recipes/switch.js +71 -86
- package/dist/theme/recipes/switch.js.map +1 -1
- package/dist/theme/recipes/table-container.cjs +2 -2
- package/dist/theme/recipes/table-container.cjs.map +1 -1
- package/dist/theme/recipes/table-container.js +19 -18
- package/dist/theme/recipes/table-container.js.map +1 -1
- package/dist/theme/recipes/table-empty-row.cjs +2 -2
- package/dist/theme/recipes/table-empty-row.cjs.map +1 -1
- package/dist/theme/recipes/table-empty-row.js +17 -16
- package/dist/theme/recipes/table-empty-row.js.map +1 -1
- package/dist/theme/recipes/table-group-title.cjs +2 -2
- package/dist/theme/recipes/table-group-title.cjs.map +1 -1
- package/dist/theme/recipes/table-group-title.js +26 -33
- package/dist/theme/recipes/table-group-title.js.map +1 -1
- package/dist/theme/recipes/table.cjs +2 -2
- package/dist/theme/recipes/table.cjs.map +1 -1
- package/dist/theme/recipes/table.js +111 -109
- package/dist/theme/recipes/table.js.map +1 -1
- package/dist/theme/recipes/tabs-chip.cjs +2 -2
- package/dist/theme/recipes/tabs-chip.cjs.map +1 -1
- package/dist/theme/recipes/tabs-chip.js +43 -46
- package/dist/theme/recipes/tabs-chip.js.map +1 -1
- package/dist/theme/recipes/tabs.cjs +2 -2
- package/dist/theme/recipes/tabs.cjs.map +1 -1
- package/dist/theme/recipes/tabs.js +92 -125
- package/dist/theme/recipes/tabs.js.map +1 -1
- package/dist/theme/recipes/tag.cjs +2 -2
- package/dist/theme/recipes/tag.cjs.map +1 -1
- package/dist/theme/recipes/tag.js +110 -121
- package/dist/theme/recipes/tag.js.map +1 -1
- package/dist/theme/recipes/text.cjs +2 -2
- package/dist/theme/recipes/text.cjs.map +1 -1
- package/dist/theme/recipes/text.js +25 -38
- package/dist/theme/recipes/text.js.map +1 -1
- package/dist/theme/recipes/textarea.cjs +2 -2
- package/dist/theme/recipes/textarea.cjs.map +1 -1
- package/dist/theme/recipes/textarea.js +15 -14
- package/dist/theme/recipes/textarea.js.map +1 -1
- package/dist/theme/recipes/tooltip.cjs +2 -2
- package/dist/theme/recipes/tooltip.cjs.map +1 -1
- package/dist/theme/recipes/tooltip.js +47 -62
- package/dist/theme/recipes/tooltip.js.map +1 -1
- package/dist/theme/semantic-tokens/colors.cjs +2 -2
- package/dist/theme/semantic-tokens/colors.cjs.map +1 -1
- package/dist/theme/semantic-tokens/colors.js +189 -140
- package/dist/theme/semantic-tokens/colors.js.map +1 -1
- package/dist/theme/semantic-tokens/index.cjs +2 -2
- package/dist/theme/semantic-tokens/index.cjs.map +1 -1
- package/dist/theme/semantic-tokens/index.js +7 -8
- package/dist/theme/semantic-tokens/index.js.map +1 -1
- package/dist/theme/text-styles.cjs +2 -2
- package/dist/theme/text-styles.cjs.map +1 -1
- package/dist/theme/text-styles.js +70 -87
- package/dist/theme/text-styles.js.map +1 -1
- package/dist/theme/tokens/animations.cjs +2 -2
- package/dist/theme/tokens/animations.cjs.map +1 -1
- package/dist/theme/tokens/animations.js +22 -45
- package/dist/theme/tokens/animations.js.map +1 -1
- package/dist/theme/tokens/aspect-ratios.cjs +2 -2
- package/dist/theme/tokens/aspect-ratios.cjs.map +1 -1
- package/dist/theme/tokens/aspect-ratios.js +12 -11
- package/dist/theme/tokens/aspect-ratios.js.map +1 -1
- package/dist/theme/tokens/blurs.cjs +2 -2
- package/dist/theme/tokens/blurs.cjs.map +1 -1
- package/dist/theme/tokens/blurs.js +13 -12
- package/dist/theme/tokens/blurs.js.map +1 -1
- package/dist/theme/tokens/borders.cjs +2 -2
- package/dist/theme/tokens/borders.cjs.map +1 -1
- package/dist/theme/tokens/borders.js +6 -9
- package/dist/theme/tokens/borders.js.map +1 -1
- package/dist/theme/tokens/colors.cjs +2 -2
- package/dist/theme/tokens/colors.cjs.map +1 -1
- package/dist/theme/tokens/colors.js +78 -77
- package/dist/theme/tokens/colors.js.map +1 -1
- package/dist/theme/tokens/durations.cjs +2 -2
- package/dist/theme/tokens/durations.cjs.map +1 -1
- package/dist/theme/tokens/durations.js +14 -13
- package/dist/theme/tokens/durations.js.map +1 -1
- package/dist/theme/tokens/easings.cjs +3 -3
- package/dist/theme/tokens/easings.cjs.map +1 -1
- package/dist/theme/tokens/easings.js +24 -92
- package/dist/theme/tokens/easings.js.map +1 -1
- package/dist/theme/tokens/index.cjs +2 -2
- package/dist/theme/tokens/index.cjs.map +1 -1
- package/dist/theme/tokens/index.js +36 -35
- package/dist/theme/tokens/index.js.map +1 -1
- package/dist/theme/tokens/radii.cjs +2 -2
- package/dist/theme/tokens/radii.cjs.map +1 -1
- package/dist/theme/tokens/radii.js +28 -27
- package/dist/theme/tokens/radii.js.map +1 -1
- package/dist/theme/tokens/shadows.cjs +2 -2
- package/dist/theme/tokens/shadows.cjs.map +1 -1
- package/dist/theme/tokens/shadows.js +14 -13
- package/dist/theme/tokens/shadows.js.map +1 -1
- package/dist/theme/tokens/sizes.cjs +2 -2
- package/dist/theme/tokens/sizes.cjs.map +1 -1
- package/dist/theme/tokens/sizes.js +35 -84
- package/dist/theme/tokens/sizes.js.map +1 -1
- package/dist/theme/tokens/spacing.cjs +2 -2
- package/dist/theme/tokens/spacing.cjs.map +1 -1
- package/dist/theme/tokens/spacing.js +32 -83
- package/dist/theme/tokens/spacing.js.map +1 -1
- package/dist/theme/tokens/typography.cjs +2 -2
- package/dist/theme/tokens/typography.cjs.map +1 -1
- package/dist/theme/tokens/typography.js +82 -85
- package/dist/theme/tokens/typography.js.map +1 -1
- package/dist/theme/tokens/z-index.cjs +2 -2
- package/dist/theme/tokens/z-index.cjs.map +1 -1
- package/dist/theme/tokens/z-index.js +18 -41
- package/dist/theme/tokens/z-index.js.map +1 -1
- package/dist/theme/utilities.cjs +2 -2
- package/dist/theme/utilities.cjs.map +1 -1
- package/dist/theme/utilities.js +15 -16
- package/dist/theme/utilities.js.map +1 -1
- package/dist/ui.css +2 -1
- package/dist/utils/slots.cjs +2 -2
- package/dist/utils/slots.cjs.map +1 -1
- package/dist/utils/slots.js +42 -40
- package/dist/utils/slots.js.map +1 -1
- package/package.json +11 -7
- package/dist/_virtual/_commonjsHelpers.cjs +0 -2
- package/dist/_virtual/_commonjsHelpers.cjs.map +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -10
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/cjs.cjs +0 -2
- package/dist/_virtual/cjs.cjs.map +0 -1
- package/dist/_virtual/cjs.js +0 -9
- package/dist/_virtual/cjs.js.map +0 -1
- package/dist/_virtual/lodash.cjs +0 -2
- package/dist/_virtual/lodash.cjs.map +0 -1
- package/dist/_virtual/lodash.js +0 -7
- package/dist/_virtual/lodash.js.map +0 -1
- package/dist/_virtual/lodash2.cjs +0 -2
- package/dist/_virtual/lodash2.cjs.map +0 -1
- package/dist/_virtual/lodash2.js +0 -6
- package/dist/_virtual/lodash2.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/node_modules/@pandacss/shared/dist/index.cjs +0 -2
- package/dist/node_modules/@pandacss/shared/dist/index.cjs.map +0 -1
- package/dist/node_modules/@pandacss/shared/dist/index.js +0 -469
- package/dist/node_modules/@pandacss/shared/dist/index.js.map +0 -1
- package/dist/node_modules/@zag-js/utils/dist/functions.cjs +0 -2
- package/dist/node_modules/@zag-js/utils/dist/functions.cjs.map +0 -1
- package/dist/node_modules/@zag-js/utils/dist/functions.js +0 -6
- package/dist/node_modules/@zag-js/utils/dist/functions.js.map +0 -1
- package/dist/node_modules/lodash/lodash.cjs +0 -21
- package/dist/node_modules/lodash/lodash.cjs.map +0 -1
- package/dist/node_modules/lodash/lodash.js +0 -3686
- package/dist/node_modules/lodash/lodash.js.map +0 -1
|
@@ -1,120 +1,189 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
2
|
+
import { createStyleContext as e } from "../../../../utils/slots.js";
|
|
3
|
+
import { ConditionalWrapper as t } from "../../../../shared/ConditionalWrapper.js";
|
|
4
|
+
import { Portal as n, Select as r, createListCollection as i, useSelectContext as a } from "@ark-ui/react";
|
|
5
|
+
import { HStack as o, styled as s } from "@stokelp/styled-system/jsx";
|
|
6
|
+
import { appNavigationLanguageSelect as c } from "@stokelp/styled-system/recipes";
|
|
7
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
|
+
//#region src/components/app/navigation/language-select/AppNavigationLanguageSelect.tsx
|
|
9
|
+
var { withProvider: d, withContext: f } = e(c), p = d(s(r.Root), "root", { defaultProps: { loopFocus: !0 } }), m = f(s(r.Content), "content"), h = f(s(r.Control), "control"), g = f(s(r.Indicator), "indicator"), _ = f(s(r.Item), "item"), v = f(s(r.ItemText), "itemText"), y = f(s(r.Positioner), "positioner"), b = f(s(r.Trigger), "trigger"), x = f(s(r.ValueText), "valueText"), S = [
|
|
10
|
+
{
|
|
11
|
+
value: "fr",
|
|
12
|
+
label: "Français",
|
|
13
|
+
flag: /* @__PURE__ */ u("svg", {
|
|
14
|
+
width: "21",
|
|
15
|
+
height: "15",
|
|
16
|
+
viewBox: "0 0 21 15",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
children: [/* @__PURE__ */ u("g", {
|
|
20
|
+
clipPath: "url(#clip0_1401_7428)",
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ l("rect", {
|
|
23
|
+
width: "21",
|
|
24
|
+
height: "15",
|
|
25
|
+
rx: "3",
|
|
26
|
+
fill: "white"
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ l("path", {
|
|
29
|
+
fillRule: "evenodd",
|
|
30
|
+
clipRule: "evenodd",
|
|
31
|
+
d: "M14 0H21V15H14V0Z",
|
|
32
|
+
fill: "#F93939"
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ l("path", {
|
|
35
|
+
fillRule: "evenodd",
|
|
36
|
+
clipRule: "evenodd",
|
|
37
|
+
d: "M0 0H7V15H0V0Z",
|
|
38
|
+
fill: "#1A47B8"
|
|
39
|
+
})
|
|
40
|
+
]
|
|
41
|
+
}), /* @__PURE__ */ l("defs", { children: /* @__PURE__ */ l("clipPath", {
|
|
42
|
+
id: "clip0_1401_7428",
|
|
43
|
+
children: /* @__PURE__ */ l("rect", {
|
|
44
|
+
width: "21",
|
|
45
|
+
height: "15",
|
|
46
|
+
rx: "3",
|
|
47
|
+
fill: "white"
|
|
48
|
+
})
|
|
49
|
+
}) })]
|
|
50
|
+
})
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
value: "en",
|
|
54
|
+
label: "English",
|
|
55
|
+
flag: /* @__PURE__ */ u("svg", {
|
|
56
|
+
width: "21",
|
|
57
|
+
height: "15",
|
|
58
|
+
viewBox: "0 0 21 15",
|
|
59
|
+
fill: "none",
|
|
60
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
61
|
+
children: [/* @__PURE__ */ u("g", {
|
|
62
|
+
clipPath: "url(#clip0_1401_5918)",
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ l("rect", {
|
|
65
|
+
width: "21",
|
|
66
|
+
height: "15",
|
|
67
|
+
fill: "#1A47B8"
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ l("path", {
|
|
70
|
+
fillRule: "evenodd",
|
|
71
|
+
clipRule: "evenodd",
|
|
72
|
+
d: "M2.23397 0H0V2.5L18.7539 15L21 15V12.5L2.23397 0Z",
|
|
73
|
+
fill: "white"
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ l("path", {
|
|
76
|
+
d: "M0.745098 0L21 13.5354V15H20.2724L0 1.45056V0H0.745098Z",
|
|
77
|
+
fill: "#F93939"
|
|
78
|
+
}),
|
|
79
|
+
/* @__PURE__ */ l("path", {
|
|
80
|
+
fillRule: "evenodd",
|
|
81
|
+
clipRule: "evenodd",
|
|
82
|
+
d: "M19 0H21V2.5C21 2.5 8.0098 10.8281 2 15H0V12.5L19 0Z",
|
|
83
|
+
fill: "white"
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ l("path", {
|
|
86
|
+
d: "M21 0H20.3218L0 13.5471V15H0.745098L21 1.46151V0Z",
|
|
87
|
+
fill: "#F93939"
|
|
88
|
+
}),
|
|
89
|
+
/* @__PURE__ */ l("path", {
|
|
90
|
+
fillRule: "evenodd",
|
|
91
|
+
clipRule: "evenodd",
|
|
92
|
+
d: "M7.63708 0H13.3804V4.62682H21V10.3701H13.3804V15H7.63708V10.3701H0V4.62682H7.63708V0Z",
|
|
93
|
+
fill: "white"
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ l("path", {
|
|
96
|
+
fillRule: "evenodd",
|
|
97
|
+
clipRule: "evenodd",
|
|
98
|
+
d: "M8.8421 0H12.1579V5.76923H21V9.23077H12.1579V15H8.8421V9.23077H0V5.76923H8.8421V0Z",
|
|
99
|
+
fill: "#F93939"
|
|
100
|
+
})
|
|
101
|
+
]
|
|
102
|
+
}), /* @__PURE__ */ l("defs", { children: /* @__PURE__ */ l("clipPath", {
|
|
103
|
+
id: "clip0_1401_5918",
|
|
104
|
+
children: /* @__PURE__ */ l("rect", {
|
|
105
|
+
width: "21",
|
|
106
|
+
height: "15",
|
|
107
|
+
fill: "white"
|
|
108
|
+
})
|
|
109
|
+
}) })]
|
|
110
|
+
})
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
value: "es",
|
|
114
|
+
label: "Español",
|
|
115
|
+
flag: /* @__PURE__ */ u("svg", {
|
|
116
|
+
width: "21",
|
|
117
|
+
height: "15",
|
|
118
|
+
viewBox: "0 0 21 15",
|
|
119
|
+
fill: "none",
|
|
120
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
121
|
+
children: [/* @__PURE__ */ l("rect", {
|
|
122
|
+
width: "21",
|
|
123
|
+
height: "15",
|
|
124
|
+
rx: "3",
|
|
125
|
+
fill: "#AA151B"
|
|
126
|
+
}), /* @__PURE__ */ l("rect", {
|
|
127
|
+
y: "4",
|
|
128
|
+
width: "21",
|
|
129
|
+
height: "7",
|
|
130
|
+
fill: "#F1BF00"
|
|
131
|
+
})]
|
|
132
|
+
})
|
|
133
|
+
}
|
|
134
|
+
], C = () => {
|
|
135
|
+
let e = a();
|
|
136
|
+
return /* @__PURE__ */ u(o, {
|
|
137
|
+
gap: "space-8",
|
|
138
|
+
width: "full",
|
|
139
|
+
css: { "& > svg": { borderRadius: "3px" } },
|
|
140
|
+
children: [(e.value && e.value.length > 0 ? e.collection.find(e.value[0]) : null)?.flag, /* @__PURE__ */ l(x, { truncate: !0 })]
|
|
141
|
+
});
|
|
142
|
+
}, w = ({ usePortal: e = !0, positioning: a, ...o }) => /* @__PURE__ */ u(p, {
|
|
143
|
+
lazyMount: !0,
|
|
144
|
+
unmountOnExit: !0,
|
|
145
|
+
multiple: !1,
|
|
146
|
+
collection: i({ items: S }),
|
|
147
|
+
positioning: {
|
|
148
|
+
sameWidth: !0,
|
|
149
|
+
gutter: 0,
|
|
150
|
+
...a
|
|
151
|
+
},
|
|
152
|
+
"data-recipe": "app-navigation-language-select",
|
|
153
|
+
defaultValue: ["en"],
|
|
154
|
+
...o,
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ l(h, { children: /* @__PURE__ */ u(b, { children: [/* @__PURE__ */ l(C, {}), /* @__PURE__ */ l(g, {
|
|
157
|
+
asChild: !0,
|
|
158
|
+
children: /* @__PURE__ */ l("svg", {
|
|
159
|
+
width: "24",
|
|
160
|
+
height: "24",
|
|
161
|
+
viewBox: "0 0 24 24",
|
|
162
|
+
fill: "none",
|
|
163
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
164
|
+
children: /* @__PURE__ */ l("path", {
|
|
165
|
+
fillRule: "evenodd",
|
|
166
|
+
clipRule: "evenodd",
|
|
167
|
+
d: "M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z",
|
|
168
|
+
fill: "currentColor"
|
|
169
|
+
})
|
|
170
|
+
})
|
|
171
|
+
})] }) }),
|
|
172
|
+
/* @__PURE__ */ l(t, {
|
|
173
|
+
when: e,
|
|
174
|
+
wrapper: (e) => /* @__PURE__ */ l(n, { children: e }),
|
|
175
|
+
children: /* @__PURE__ */ l(y, { children: /* @__PURE__ */ l(m, { children: S.map((e) => /* @__PURE__ */ l(_, {
|
|
176
|
+
item: e,
|
|
177
|
+
children: /* @__PURE__ */ l(v, {
|
|
178
|
+
truncate: !0,
|
|
179
|
+
children: e.label
|
|
180
|
+
})
|
|
181
|
+
}, e.value)) }) })
|
|
182
|
+
}),
|
|
183
|
+
/* @__PURE__ */ l(r.HiddenSelect, {})
|
|
184
|
+
]
|
|
185
|
+
});
|
|
186
|
+
//#endregion
|
|
187
|
+
export { w as AppNavigationLanguageSelect };
|
|
188
|
+
|
|
189
|
+
//# sourceMappingURL=AppNavigationLanguageSelect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppNavigationLanguageSelect.js","sources":["../../../../../src/components/app/navigation/language-select/AppNavigationLanguageSelect.tsx"],"sourcesContent":["import {\n createListCollection,\n Portal,\n Select as ArkSelect,\n type SelectRootProps,\n useSelectContext,\n} from '@ark-ui/react'\nimport type { FC, ReactNode } from 'react'\nimport { HStack, styled } from '@stokelp/styled-system/jsx'\n\nimport { appNavigationLanguageSelect } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\n\nimport { ConditionalWrapper } from '~/shared/ConditionalWrapper'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\n\nconst { withProvider, withContext } = createStyleContext(appNavigationLanguageSelect)\n\nconst Root = withProvider(styled(ArkSelect.Root<SelectItem>), 'root', {\n defaultProps: {\n loopFocus: true,\n },\n})\n\nconst Content = withContext(styled(ArkSelect.Content), 'content')\nconst Control = withContext(styled(ArkSelect.Control), 'control')\nconst Indicator = withContext(styled(ArkSelect.Indicator), 'indicator')\nconst Item = withContext(styled(ArkSelect.Item), 'item')\nconst ItemText = withContext(styled(ArkSelect.ItemText), 'itemText')\nconst Positioner = withContext(styled(ArkSelect.Positioner), 'positioner')\nconst Trigger = withContext(styled(ArkSelect.Trigger), 'trigger')\nconst ValueText = withContext(styled(ArkSelect.ValueText), 'valueText')\n\ntype SelectItem = { value: string | number; label: string; disabled?: boolean; flag: ReactNode }\n\nexport type AppNavigationLanguageSelectProps = Omit<SelectRootProps<SelectItem>, 'collection' | 'multiple'> & {\n usePortal?: boolean\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof appNavigationLanguageSelect>\n\nconst AVAILABLE_LANGUAGES = [\n {\n value: 'fr',\n label: 'Français',\n flag: (\n <svg width=\"21\" height=\"15\" viewBox=\"0 0 21 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clipPath=\"url(#clip0_1401_7428)\">\n <rect width=\"21\" height=\"15\" rx=\"3\" fill=\"white\" />\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M14 0H21V15H14V0Z\" fill=\"#F93939\" />\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M0 0H7V15H0V0Z\" fill=\"#1A47B8\" />\n </g>\n <defs>\n <clipPath id=\"clip0_1401_7428\">\n <rect width=\"21\" height=\"15\" rx=\"3\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n ),\n },\n {\n value: 'en',\n label: 'English',\n flag: (\n <svg width=\"21\" height=\"15\" viewBox=\"0 0 21 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clipPath=\"url(#clip0_1401_5918)\">\n <rect width=\"21\" height=\"15\" fill=\"#1A47B8\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M2.23397 0H0V2.5L18.7539 15L21 15V12.5L2.23397 0Z\"\n fill=\"white\"\n />\n <path d=\"M0.745098 0L21 13.5354V15H20.2724L0 1.45056V0H0.745098Z\" fill=\"#F93939\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M19 0H21V2.5C21 2.5 8.0098 10.8281 2 15H0V12.5L19 0Z\"\n fill=\"white\"\n />\n <path d=\"M21 0H20.3218L0 13.5471V15H0.745098L21 1.46151V0Z\" fill=\"#F93939\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M7.63708 0H13.3804V4.62682H21V10.3701H13.3804V15H7.63708V10.3701H0V4.62682H7.63708V0Z\"\n fill=\"white\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8.8421 0H12.1579V5.76923H21V9.23077H12.1579V15H8.8421V9.23077H0V5.76923H8.8421V0Z\"\n fill=\"#F93939\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_1401_5918\">\n <rect width=\"21\" height=\"15\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n ),\n },\n] satisfies SelectItem[]\n\nconst InnerTrigger: FC = () => {\n const context = useSelectContext()\n const selected = context.value && context.value.length > 0 ? context.collection.find(context.value[0]) : null\n\n return (\n <HStack gap=\"space-8\" width=\"full\" css={{ '& > svg': { borderRadius: '3px' } }}>\n {selected?.flag}\n <ValueText truncate />\n </HStack>\n )\n}\n\nexport const AppNavigationLanguageSelect: FC<AppNavigationLanguageSelectProps> = ({\n usePortal = true,\n positioning,\n ...props\n}) => {\n const collection = createListCollection<SelectItem>({\n items: AVAILABLE_LANGUAGES,\n })\n\n return (\n <Root\n lazyMount\n unmountOnExit\n multiple={false}\n collection={collection}\n positioning={{ sameWidth: true, gutter: 0, ...positioning }}\n data-recipe=\"app-navigation-language-select\"\n defaultValue={['en']}\n {...props}\n >\n <Control>\n <Trigger>\n <InnerTrigger />\n <Indicator asChild>\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z\"\n fill=\"currentColor\"\n />\n </svg>\n </Indicator>\n </Trigger>\n </Control>\n <ConditionalWrapper when={usePortal} wrapper={children => <Portal>{children}</Portal>}>\n <Positioner>\n <Content>\n {AVAILABLE_LANGUAGES.map(item => (\n <Item key={item.value} item={item}>\n <ItemText truncate>{item.label}</ItemText>\n </Item>\n ))}\n </Content>\n </Positioner>\n </ConditionalWrapper>\n <ArkSelect.HiddenSelect />\n </Root>\n )\n}\n"],"names":["withProvider","withContext","createStyleContext","appNavigationLanguageSelect","Root","styled","ArkSelect","Content","Control","Indicator","Item","ItemText","Positioner","Trigger","ValueText","AVAILABLE_LANGUAGES","jsxs","jsx","InnerTrigger","context","useSelectContext","selected","HStack","AppNavigationLanguageSelect","usePortal","positioning","props","collection","createListCollection","ConditionalWrapper","children","Portal","item"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"AppNavigationLanguageSelect.js","names":[],"sources":["../../../../../src/components/app/navigation/language-select/AppNavigationLanguageSelect.tsx"],"sourcesContent":["import {\n createListCollection,\n Portal,\n Select as ArkSelect,\n type SelectRootProps,\n useSelectContext,\n} from '@ark-ui/react'\nimport type { FC, ReactNode } from 'react'\nimport { HStack, styled } from '@stokelp/styled-system/jsx'\n\nimport { appNavigationLanguageSelect } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\n\nimport { ConditionalWrapper } from '~/shared/ConditionalWrapper'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\n\nconst { withProvider, withContext } = createStyleContext(appNavigationLanguageSelect)\n\nconst Root = withProvider(styled(ArkSelect.Root<SelectItem>), 'root', {\n defaultProps: {\n loopFocus: true,\n },\n})\n\nconst Content = withContext(styled(ArkSelect.Content), 'content')\nconst Control = withContext(styled(ArkSelect.Control), 'control')\nconst Indicator = withContext(styled(ArkSelect.Indicator), 'indicator')\nconst Item = withContext(styled(ArkSelect.Item), 'item')\nconst ItemText = withContext(styled(ArkSelect.ItemText), 'itemText')\nconst Positioner = withContext(styled(ArkSelect.Positioner), 'positioner')\nconst Trigger = withContext(styled(ArkSelect.Trigger), 'trigger')\nconst ValueText = withContext(styled(ArkSelect.ValueText), 'valueText')\n\ntype SelectItem = { value: string | number; label: string; disabled?: boolean; flag: ReactNode }\n\nexport type AppNavigationLanguageSelectProps = Omit<SelectRootProps<SelectItem>, 'collection' | 'multiple'> & {\n usePortal?: boolean\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof appNavigationLanguageSelect>\n\nconst AVAILABLE_LANGUAGES = [\n {\n value: 'fr',\n label: 'Français',\n flag: (\n <svg width=\"21\" height=\"15\" viewBox=\"0 0 21 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clipPath=\"url(#clip0_1401_7428)\">\n <rect width=\"21\" height=\"15\" rx=\"3\" fill=\"white\" />\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M14 0H21V15H14V0Z\" fill=\"#F93939\" />\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M0 0H7V15H0V0Z\" fill=\"#1A47B8\" />\n </g>\n <defs>\n <clipPath id=\"clip0_1401_7428\">\n <rect width=\"21\" height=\"15\" rx=\"3\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n ),\n },\n {\n value: 'en',\n label: 'English',\n flag: (\n <svg width=\"21\" height=\"15\" viewBox=\"0 0 21 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clipPath=\"url(#clip0_1401_5918)\">\n <rect width=\"21\" height=\"15\" fill=\"#1A47B8\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M2.23397 0H0V2.5L18.7539 15L21 15V12.5L2.23397 0Z\"\n fill=\"white\"\n />\n <path d=\"M0.745098 0L21 13.5354V15H20.2724L0 1.45056V0H0.745098Z\" fill=\"#F93939\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M19 0H21V2.5C21 2.5 8.0098 10.8281 2 15H0V12.5L19 0Z\"\n fill=\"white\"\n />\n <path d=\"M21 0H20.3218L0 13.5471V15H0.745098L21 1.46151V0Z\" fill=\"#F93939\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M7.63708 0H13.3804V4.62682H21V10.3701H13.3804V15H7.63708V10.3701H0V4.62682H7.63708V0Z\"\n fill=\"white\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8.8421 0H12.1579V5.76923H21V9.23077H12.1579V15H8.8421V9.23077H0V5.76923H8.8421V0Z\"\n fill=\"#F93939\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_1401_5918\">\n <rect width=\"21\" height=\"15\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n ),\n },\n {\n value: 'es',\n label: 'Español',\n flag: (\n <svg width=\"21\" height=\"15\" viewBox=\"0 0 21 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect width=\"21\" height=\"15\" rx=\"3\" fill=\"#AA151B\" />\n <rect y=\"4\" width=\"21\" height=\"7\" fill=\"#F1BF00\" />\n </svg>\n ),\n },\n] satisfies SelectItem[]\n\nconst InnerTrigger: FC = () => {\n const context = useSelectContext()\n const selected = context.value && context.value.length > 0 ? context.collection.find(context.value[0]) : null\n\n return (\n <HStack gap=\"space-8\" width=\"full\" css={{ '& > svg': { borderRadius: '3px' } }}>\n {selected?.flag}\n <ValueText truncate />\n </HStack>\n )\n}\n\nexport const AppNavigationLanguageSelect: FC<AppNavigationLanguageSelectProps> = ({\n usePortal = true,\n positioning,\n ...props\n}) => {\n const collection = createListCollection<SelectItem>({\n items: AVAILABLE_LANGUAGES,\n })\n\n return (\n <Root\n lazyMount\n unmountOnExit\n multiple={false}\n collection={collection}\n positioning={{ sameWidth: true, gutter: 0, ...positioning }}\n data-recipe=\"app-navigation-language-select\"\n defaultValue={['en']}\n {...props}\n >\n <Control>\n <Trigger>\n <InnerTrigger />\n <Indicator asChild>\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z\"\n fill=\"currentColor\"\n />\n </svg>\n </Indicator>\n </Trigger>\n </Control>\n <ConditionalWrapper when={usePortal} wrapper={children => <Portal>{children}</Portal>}>\n <Positioner>\n <Content>\n {AVAILABLE_LANGUAGES.map(item => (\n <Item key={item.value} item={item}>\n <ItemText truncate>{item.label}</ItemText>\n </Item>\n ))}\n </Content>\n </Positioner>\n </ConditionalWrapper>\n <ArkSelect.HiddenSelect />\n </Root>\n )\n}\n"],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
//# sourceMappingURL=PriceTag.cjs.map
|
|
1
|
+
"use client";let e=require("@stokelp/styled-system/jsx"),t=require("@stokelp/styled-system/recipes"),n=require("react"),r=require("react/jsx-runtime"),i=require("@stokelp/styled-system/css");var a=(0,n.forwardRef)((n,a)=>{let[o,s]=t.priceTag.splitVariantProps(n),[c,l]=(0,e.splitCssProps)(s),{className:u,unit:d,price:f,...p}=l,m=(0,t.priceTag)(o),h=!!d;return(0,r.jsxs)(`span`,{ref:a,className:(0,i.cx)(`price-tag`,m.root,(0,i.css)(c),u),...p,children:[(0,r.jsx)(`span`,{className:m.price,children:f}),h?(0,r.jsxs)(`span`,{className:m.unit,children:[`/ `,d]}):null]})});a.displayName=`PriceTag`,exports.PriceTag=a;
|
|
2
|
+
//# sourceMappingURL=PriceTag.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceTag.cjs","sources":["../../../../src/components/app/price-tag/PriceTag.tsx"],"sourcesContent":["import { type JsxStyleProps, type RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { priceTag } from '@stokelp/styled-system/recipes'\nimport { splitCssProps } from '@stokelp/styled-system/jsx'\nimport { type Assign, type HTMLProps } from '@ark-ui/react'\n\nimport type { ReactNode } from 'react'\nimport { forwardRef } from 'react'\n\ntype PriceTagVariants = RecipeVariantProps<typeof priceTag>\n\nexport type PriceTagProps = Assign<JsxStyleProps, HTMLProps<'span'>> &\n PriceTagVariants & {\n price: ReactNode\n unit?: ReactNode\n }\n\nexport const PriceTag = forwardRef<HTMLSpanElement, PriceTagProps>((props, ref) => {\n const [variantProps, priceTagProps] = priceTag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(priceTagProps)\n const { className, unit, price, ...rootProps } = localProps\n const styles = priceTag(variantProps)\n\n const hasUnit = !!unit\n\n return (\n <span ref={ref} className={cx('price-tag', styles.root, css(cssProps), className)} {...rootProps}>\n <span className={styles.price}>{price}</span>\n {hasUnit ? <span className={styles.unit}>/ {unit}</span> : null}\n </span>\n )\n})\n\nPriceTag.displayName = 'PriceTag'\n"],"
|
|
1
|
+
{"version":3,"file":"PriceTag.cjs","names":[],"sources":["../../../../src/components/app/price-tag/PriceTag.tsx"],"sourcesContent":["import { type JsxStyleProps, type RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { priceTag } from '@stokelp/styled-system/recipes'\nimport { splitCssProps } from '@stokelp/styled-system/jsx'\nimport { type Assign, type HTMLProps } from '@ark-ui/react'\n\nimport type { ReactNode } from 'react'\nimport { forwardRef } from 'react'\n\ntype PriceTagVariants = RecipeVariantProps<typeof priceTag>\n\nexport type PriceTagProps = Assign<JsxStyleProps, HTMLProps<'span'>> &\n PriceTagVariants & {\n price: ReactNode\n unit?: ReactNode\n }\n\nexport const PriceTag = forwardRef<HTMLSpanElement, PriceTagProps>((props, ref) => {\n const [variantProps, priceTagProps] = priceTag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(priceTagProps)\n const { className, unit, price, ...rootProps } = localProps\n const styles = priceTag(variantProps)\n\n const hasUnit = !!unit\n\n return (\n <span ref={ref} className={cx('price-tag', styles.root, css(cssProps), className)} {...rootProps}>\n <span className={styles.price}>{price}</span>\n {hasUnit ? <span className={styles.unit}>/ {unit}</span> : null}\n </span>\n )\n})\n\nPriceTag.displayName = 'PriceTag'\n"],"mappings":"+LAiBA,IAAa,GAAA,EAAA,EAAA,aAAuD,EAAO,IAAQ,CACjF,GAAM,CAAC,EAAc,GAAiB,EAAA,SAAS,kBAAkB,CAAK,EAChE,CAAC,EAAU,IAAA,EAAA,EAAA,eAA4B,CAAa,EACpD,CAAE,YAAW,OAAM,QAAO,GAAG,GAAc,EAC3C,GAAA,EAAA,EAAA,UAAkB,CAAY,EAE9B,EAAU,CAAC,CAAC,EAElB,OACE,EAAA,EAAA,MAAC,OAAD,CAAW,MAAK,WAAA,EAAA,EAAA,IAAc,YAAa,EAAO,MAAA,EAAA,EAAA,KAAU,CAAQ,EAAG,CAAS,EAAG,GAAI,WAAvF,EACE,EAAA,EAAA,KAAC,OAAD,CAAM,UAAW,EAAO,eAAQ,CAAY,CAAA,EAC3C,GAAU,EAAA,EAAA,MAAC,OAAD,CAAM,UAAW,EAAO,cAAxB,CAA8B,KAAG,CAAW,IAAI,IACvD,GAEV,CAAC,EAED,EAAS,YAAc"}
|
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
import { splitCssProps as e } from "@stokelp/styled-system/jsx";
|
|
3
|
+
import { priceTag as t } from "@stokelp/styled-system/recipes";
|
|
4
|
+
import { forwardRef as n } from "react";
|
|
5
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
|
+
import { css as a, cx as o } from "@stokelp/styled-system/css";
|
|
7
|
+
//#region src/components/app/price-tag/PriceTag.tsx
|
|
8
|
+
var s = n((n, s) => {
|
|
9
|
+
let [c, l] = t.splitVariantProps(n), [u, d] = e(l), { className: f, unit: p, price: m, ...h } = d, g = t(c), _ = !!p;
|
|
10
|
+
return /* @__PURE__ */ i("span", {
|
|
11
|
+
ref: s,
|
|
12
|
+
className: o("price-tag", g.root, a(u), f),
|
|
13
|
+
...h,
|
|
14
|
+
children: [/* @__PURE__ */ r("span", {
|
|
15
|
+
className: g.price,
|
|
16
|
+
children: m
|
|
17
|
+
}), _ ? /* @__PURE__ */ i("span", {
|
|
18
|
+
className: g.unit,
|
|
19
|
+
children: ["/ ", p]
|
|
20
|
+
}) : null]
|
|
21
|
+
});
|
|
16
22
|
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=PriceTag.js.map
|
|
23
|
+
s.displayName = "PriceTag";
|
|
24
|
+
//#endregion
|
|
25
|
+
export { s as PriceTag };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=PriceTag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceTag.js","sources":["../../../../src/components/app/price-tag/PriceTag.tsx"],"sourcesContent":["import { type JsxStyleProps, type RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { priceTag } from '@stokelp/styled-system/recipes'\nimport { splitCssProps } from '@stokelp/styled-system/jsx'\nimport { type Assign, type HTMLProps } from '@ark-ui/react'\n\nimport type { ReactNode } from 'react'\nimport { forwardRef } from 'react'\n\ntype PriceTagVariants = RecipeVariantProps<typeof priceTag>\n\nexport type PriceTagProps = Assign<JsxStyleProps, HTMLProps<'span'>> &\n PriceTagVariants & {\n price: ReactNode\n unit?: ReactNode\n }\n\nexport const PriceTag = forwardRef<HTMLSpanElement, PriceTagProps>((props, ref) => {\n const [variantProps, priceTagProps] = priceTag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(priceTagProps)\n const { className, unit, price, ...rootProps } = localProps\n const styles = priceTag(variantProps)\n\n const hasUnit = !!unit\n\n return (\n <span ref={ref} className={cx('price-tag', styles.root, css(cssProps), className)} {...rootProps}>\n <span className={styles.price}>{price}</span>\n {hasUnit ? <span className={styles.unit}>/ {unit}</span> : null}\n </span>\n )\n})\n\nPriceTag.displayName = 'PriceTag'\n"],"
|
|
1
|
+
{"version":3,"file":"PriceTag.js","names":[],"sources":["../../../../src/components/app/price-tag/PriceTag.tsx"],"sourcesContent":["import { type JsxStyleProps, type RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { priceTag } from '@stokelp/styled-system/recipes'\nimport { splitCssProps } from '@stokelp/styled-system/jsx'\nimport { type Assign, type HTMLProps } from '@ark-ui/react'\n\nimport type { ReactNode } from 'react'\nimport { forwardRef } from 'react'\n\ntype PriceTagVariants = RecipeVariantProps<typeof priceTag>\n\nexport type PriceTagProps = Assign<JsxStyleProps, HTMLProps<'span'>> &\n PriceTagVariants & {\n price: ReactNode\n unit?: ReactNode\n }\n\nexport const PriceTag = forwardRef<HTMLSpanElement, PriceTagProps>((props, ref) => {\n const [variantProps, priceTagProps] = priceTag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(priceTagProps)\n const { className, unit, price, ...rootProps } = localProps\n const styles = priceTag(variantProps)\n\n const hasUnit = !!unit\n\n return (\n <span ref={ref} className={cx('price-tag', styles.root, css(cssProps), className)} {...rootProps}>\n <span className={styles.price}>{price}</span>\n {hasUnit ? <span className={styles.unit}>/ {unit}</span> : null}\n </span>\n )\n})\n\nPriceTag.displayName = 'PriceTag'\n"],"mappings":";;;;;;;AAiBA,IAAa,IAAW,GAA4C,GAAO,MAAQ;CACjF,IAAM,CAAC,GAAc,KAAiB,EAAS,kBAAkB,CAAK,GAChE,CAAC,GAAU,KAAc,EAAc,CAAa,GACpD,EAAE,cAAW,SAAM,UAAO,GAAG,MAAc,GAC3C,IAAS,EAAS,CAAY,GAE9B,IAAU,CAAC,CAAC;CAElB,OACE,kBAAC,QAAD;EAAW;EAAK,WAAW,EAAG,aAAa,EAAO,MAAM,EAAI,CAAQ,GAAG,CAAS;EAAG,GAAI;YAAvF,CACE,kBAAC,QAAD;GAAM,WAAW,EAAO;aAAQ;EAAY,CAAA,GAC3C,IAAU,kBAAC,QAAD;GAAM,WAAW,EAAO;aAAxB,CAA8B,MAAG,CAAW;OAAI,IACvD;;AAEV,CAAC;AAED,EAAS,cAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
//# sourceMappingURL=styled.cjs.map
|
|
1
|
+
"use client";const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../utils/slots.cjs");let n=require("@ark-ui/react"),r=require("@stokelp/styled-system/jsx"),i=require("@stokelp/styled-system/recipes");var a=e.__exportAll({Badge:()=>_,BadgeList:()=>g,Content:()=>f,Description:()=>p,Highlight:()=>m,Image:()=>u,ImageContainer:()=>d,Root:()=>c,ShortLivedTag:()=>v,Tag:()=>h,Title:()=>l}),{withProvider:o,withContext:s}=t.createStyleContext(i.productCardCatalog,{dataAttr:!0}),c=o((0,r.styled)(n.ark.div),`root`),l=s((0,r.styled)(n.ark.h3),`title`),u=s((0,r.styled)(n.ark.img),`image`),d=s((0,r.styled)(n.ark.div),`imageContainer`),f=s((0,r.styled)(n.ark.div),`content`),p=s((0,r.styled)(n.ark.p),`description`),m=s((0,r.styled)(n.ark.span),`highlight`),h=s((0,r.styled)(n.ark.span),`tag`),g=s((0,r.styled)(n.ark.div),`badgeList`),_=s((0,r.styled)(n.ark.span),`badge`),v=s((0,r.styled)(n.ark.span),`shortLivedTag`);Object.defineProperty(exports,"styled_exports",{enumerable:!0,get:function(){return a}});
|
|
2
|
+
//# sourceMappingURL=styled.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled.cjs","sources":["../../../../src/components/app/product-card-catalog/styled.ts"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { productCardCatalog } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(productCardCatalog, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled(ark.div), 'root')\nexport const Title = withContext(styled(ark.h3), 'title')\nexport const Image = withContext(styled(ark.img), 'image')\nexport const ImageContainer = withContext(styled(ark.div), 'imageContainer')\nexport const Content = withContext(styled(ark.div), 'content')\nexport const Description = withContext(styled(ark.p), 'description')\nexport const Highlight = withContext(styled(ark.span), 'highlight')\nexport const Tag = withContext(styled(ark.span), 'tag')\nexport const BadgeList = withContext(styled(ark.div), 'badgeList')\nexport const Badge = withContext(styled(ark.span), 'badge')\nexport const ShortLivedTag = withContext(styled(ark.span), 'shortLivedTag')\n\nexport interface ProductCardCatalogProps extends ComponentProps<typeof Root> {}\nexport interface ProductCardCatalogTitleProps extends ComponentProps<typeof Title> {}\nexport interface ProductCardCatalogImageProps extends ComponentProps<typeof Image> {}\nexport interface ProductCardCatalogImageContainerProps extends ComponentProps<typeof ImageContainer> {}\nexport interface ProductCardCatalogContentProps extends ComponentProps<typeof Content> {}\nexport interface ProductCardCatalogDescriptionProps extends ComponentProps<typeof Description> {}\nexport interface ProductCardCatalogHighlightProps extends ComponentProps<typeof Highlight> {}\nexport interface ProductCardCatalogTagProps extends ComponentProps<typeof Tag> {}\nexport interface ProductCardCatalogBadgeListProps extends ComponentProps<typeof BadgeList> {}\nexport interface ProductCardCatalogBadgeProps extends ComponentProps<typeof Badge> {}\nexport interface ProductCardCatalogShortLivedTagProps extends ComponentProps<typeof ShortLivedTag> {}\n"],"
|
|
1
|
+
{"version":3,"file":"styled.cjs","names":[],"sources":["../../../../src/components/app/product-card-catalog/styled.ts"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { productCardCatalog } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(productCardCatalog, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled(ark.div), 'root')\nexport const Title = withContext(styled(ark.h3), 'title')\nexport const Image = withContext(styled(ark.img), 'image')\nexport const ImageContainer = withContext(styled(ark.div), 'imageContainer')\nexport const Content = withContext(styled(ark.div), 'content')\nexport const Description = withContext(styled(ark.p), 'description')\nexport const Highlight = withContext(styled(ark.span), 'highlight')\nexport const Tag = withContext(styled(ark.span), 'tag')\nexport const BadgeList = withContext(styled(ark.div), 'badgeList')\nexport const Badge = withContext(styled(ark.span), 'badge')\nexport const ShortLivedTag = withContext(styled(ark.span), 'shortLivedTag')\n\nexport interface ProductCardCatalogProps extends ComponentProps<typeof Root> {}\nexport interface ProductCardCatalogTitleProps extends ComponentProps<typeof Title> {}\nexport interface ProductCardCatalogImageProps extends ComponentProps<typeof Image> {}\nexport interface ProductCardCatalogImageContainerProps extends ComponentProps<typeof ImageContainer> {}\nexport interface ProductCardCatalogContentProps extends ComponentProps<typeof Content> {}\nexport interface ProductCardCatalogDescriptionProps extends ComponentProps<typeof Description> {}\nexport interface ProductCardCatalogHighlightProps extends ComponentProps<typeof Highlight> {}\nexport interface ProductCardCatalogTagProps extends ComponentProps<typeof Tag> {}\nexport interface ProductCardCatalogBadgeListProps extends ComponentProps<typeof BadgeList> {}\nexport interface ProductCardCatalogBadgeProps extends ComponentProps<typeof Badge> {}\nexport interface ProductCardCatalogShortLivedTagProps extends ComponentProps<typeof ShortLivedTag> {}\n"],"mappings":"0ZAMM,CAAE,eAAc,eAAgB,EAAA,mBAAmB,EAAA,mBAAoB,CAC3E,SAAU,EACZ,CAAC,EAEY,EAAO,GAAA,EAAA,EAAA,QAAoB,EAAA,IAAI,GAAG,EAAG,MAAM,EAC3C,EAAQ,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,EAAE,EAAG,OAAO,EAC3C,EAAQ,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,GAAG,EAAG,OAAO,EAC5C,EAAiB,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,GAAG,EAAG,gBAAgB,EAC9D,EAAU,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,GAAG,EAAG,SAAS,EAChD,EAAc,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,CAAC,EAAG,aAAa,EACtD,EAAY,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,IAAI,EAAG,WAAW,EACrD,EAAM,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,IAAI,EAAG,KAAK,EACzC,EAAY,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,GAAG,EAAG,WAAW,EACpD,EAAQ,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,IAAI,EAAG,OAAO,EAC7C,EAAgB,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,IAAI,EAAG,eAAe"}
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
import { __exportAll as e } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { createStyleContext as t } from "../../../utils/slots.js";
|
|
4
|
+
import { ark as n } from "@ark-ui/react";
|
|
5
|
+
import { styled as r } from "@stokelp/styled-system/jsx";
|
|
6
|
+
import { productCardCatalog as i } from "@stokelp/styled-system/recipes";
|
|
7
|
+
//#region src/components/app/product-card-catalog/styled.ts
|
|
8
|
+
var a = /* @__PURE__ */ e({
|
|
9
|
+
Badge: () => _,
|
|
10
|
+
BadgeList: () => g,
|
|
11
|
+
Content: () => f,
|
|
12
|
+
Description: () => p,
|
|
13
|
+
Highlight: () => m,
|
|
14
|
+
Image: () => u,
|
|
15
|
+
ImageContainer: () => d,
|
|
16
|
+
Root: () => c,
|
|
17
|
+
ShortLivedTag: () => v,
|
|
18
|
+
Tag: () => h,
|
|
19
|
+
Title: () => l
|
|
20
|
+
}), { withProvider: o, withContext: s } = t(i, { dataAttr: !0 }), c = o(r(n.div), "root"), l = s(r(n.h3), "title"), u = s(r(n.img), "image"), d = s(r(n.div), "imageContainer"), f = s(r(n.div), "content"), p = s(r(n.p), "description"), m = s(r(n.span), "highlight"), h = s(r(n.span), "tag"), g = s(r(n.div), "badgeList"), _ = s(r(n.span), "badge"), v = s(r(n.span), "shortLivedTag");
|
|
21
|
+
//#endregion
|
|
22
|
+
export { a as styled_exports };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled.js","sources":["../../../../src/components/app/product-card-catalog/styled.ts"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { productCardCatalog } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(productCardCatalog, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled(ark.div), 'root')\nexport const Title = withContext(styled(ark.h3), 'title')\nexport const Image = withContext(styled(ark.img), 'image')\nexport const ImageContainer = withContext(styled(ark.div), 'imageContainer')\nexport const Content = withContext(styled(ark.div), 'content')\nexport const Description = withContext(styled(ark.p), 'description')\nexport const Highlight = withContext(styled(ark.span), 'highlight')\nexport const Tag = withContext(styled(ark.span), 'tag')\nexport const BadgeList = withContext(styled(ark.div), 'badgeList')\nexport const Badge = withContext(styled(ark.span), 'badge')\nexport const ShortLivedTag = withContext(styled(ark.span), 'shortLivedTag')\n\nexport interface ProductCardCatalogProps extends ComponentProps<typeof Root> {}\nexport interface ProductCardCatalogTitleProps extends ComponentProps<typeof Title> {}\nexport interface ProductCardCatalogImageProps extends ComponentProps<typeof Image> {}\nexport interface ProductCardCatalogImageContainerProps extends ComponentProps<typeof ImageContainer> {}\nexport interface ProductCardCatalogContentProps extends ComponentProps<typeof Content> {}\nexport interface ProductCardCatalogDescriptionProps extends ComponentProps<typeof Description> {}\nexport interface ProductCardCatalogHighlightProps extends ComponentProps<typeof Highlight> {}\nexport interface ProductCardCatalogTagProps extends ComponentProps<typeof Tag> {}\nexport interface ProductCardCatalogBadgeListProps extends ComponentProps<typeof BadgeList> {}\nexport interface ProductCardCatalogBadgeProps extends ComponentProps<typeof Badge> {}\nexport interface ProductCardCatalogShortLivedTagProps extends ComponentProps<typeof ShortLivedTag> {}\n"],"
|
|
1
|
+
{"version":3,"file":"styled.js","names":[],"sources":["../../../../src/components/app/product-card-catalog/styled.ts"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { productCardCatalog } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(productCardCatalog, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled(ark.div), 'root')\nexport const Title = withContext(styled(ark.h3), 'title')\nexport const Image = withContext(styled(ark.img), 'image')\nexport const ImageContainer = withContext(styled(ark.div), 'imageContainer')\nexport const Content = withContext(styled(ark.div), 'content')\nexport const Description = withContext(styled(ark.p), 'description')\nexport const Highlight = withContext(styled(ark.span), 'highlight')\nexport const Tag = withContext(styled(ark.span), 'tag')\nexport const BadgeList = withContext(styled(ark.div), 'badgeList')\nexport const Badge = withContext(styled(ark.span), 'badge')\nexport const ShortLivedTag = withContext(styled(ark.span), 'shortLivedTag')\n\nexport interface ProductCardCatalogProps extends ComponentProps<typeof Root> {}\nexport interface ProductCardCatalogTitleProps extends ComponentProps<typeof Title> {}\nexport interface ProductCardCatalogImageProps extends ComponentProps<typeof Image> {}\nexport interface ProductCardCatalogImageContainerProps extends ComponentProps<typeof ImageContainer> {}\nexport interface ProductCardCatalogContentProps extends ComponentProps<typeof Content> {}\nexport interface ProductCardCatalogDescriptionProps extends ComponentProps<typeof Description> {}\nexport interface ProductCardCatalogHighlightProps extends ComponentProps<typeof Highlight> {}\nexport interface ProductCardCatalogTagProps extends ComponentProps<typeof Tag> {}\nexport interface ProductCardCatalogBadgeListProps extends ComponentProps<typeof BadgeList> {}\nexport interface ProductCardCatalogBadgeProps extends ComponentProps<typeof Badge> {}\nexport interface ProductCardCatalogShortLivedTagProps extends ComponentProps<typeof ShortLivedTag> {}\n"],"mappings":";;;;;;;;;;;;;;;;;;;IAMM,EAAE,iBAAc,mBAAgB,EAAmB,GAAoB,EAC3E,UAAU,GACZ,CAAC,GAEY,IAAO,EAAa,EAAO,EAAI,GAAG,GAAG,MAAM,GAC3C,IAAQ,EAAY,EAAO,EAAI,EAAE,GAAG,OAAO,GAC3C,IAAQ,EAAY,EAAO,EAAI,GAAG,GAAG,OAAO,GAC5C,IAAiB,EAAY,EAAO,EAAI,GAAG,GAAG,gBAAgB,GAC9D,IAAU,EAAY,EAAO,EAAI,GAAG,GAAG,SAAS,GAChD,IAAc,EAAY,EAAO,EAAI,CAAC,GAAG,aAAa,GACtD,IAAY,EAAY,EAAO,EAAI,IAAI,GAAG,WAAW,GACrD,IAAM,EAAY,EAAO,EAAI,IAAI,GAAG,KAAK,GACzC,IAAY,EAAY,EAAO,EAAI,GAAG,GAAG,WAAW,GACpD,IAAQ,EAAY,EAAO,EAAI,IAAI,GAAG,OAAO,GAC7C,IAAgB,EAAY,EAAO,EAAI,IAAI,GAAG,eAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
//# sourceMappingURL=styled.cjs.map
|
|
1
|
+
"use client";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utils/slots.cjs");let n=require("@ark-ui/react"),r=require("@stokelp/styled-system/jsx"),i=require("@stokelp/styled-system/recipes"),a=require("react"),o=require("react/jsx-runtime"),s=require("@zag-js/utils");var c=e.__exportAll({Context:()=>_,Fallback:()=>g,Group:()=>p,Image:()=>h,Root:()=>m}),{withProvider:l,withContext:u}=t.createStyleContext(i.avatar),d=(0,r.styled)(n.ark.div,i.avatarGroup),f=(e,t)=>[e.slice(0,t),e.slice(t)],p=(0,a.forwardRef)(({children:e,size:t,max:n=4,overflowContent:r,...c},l)=>{let[u,p]=f(a.Children.toArray(e),n);return(0,o.jsxs)(d,{ref:l,size:t,...c,children:[a.Children.map(u,e=>(0,a.cloneElement)(e,i.avatar.raw({size:t}))),r&&p.length>0?(0,a.cloneElement)((0,s.runIfFn)(r,p.length),{"data-overflow":``}):null]})}),m=l((0,r.styled)(n.Avatar.Root),`root`),h=u((0,r.styled)(n.Avatar.Image),`image`),g=u((0,r.styled)(n.Avatar.Fallback),`fallback`),_=n.Avatar.Context;exports.Fallback=g,exports.Image=h,exports.Root=m,Object.defineProperty(exports,"styled_exports",{enumerable:!0,get:function(){return c}});
|
|
2
|
+
//# sourceMappingURL=styled.cjs.map
|