@stokelp/ui 2.103.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 -63
- 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,2 +1,2 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
//# sourceMappingURL=HighlightedInput.cjs.map
|
|
1
|
+
"use client";const e=require("../../utils/slots.cjs"),t=require("./Input.cjs");let n=require("@stokelp/styled-system/jsx"),r=require("@stokelp/styled-system/recipes"),i=require("react"),a=require("react/jsx-runtime");var{withProvider:o,withContext:s}=e.createStyleContext(r.highlightedInput,{dataAttr:!0}),c=o((0,n.styled)(`div`),`root`),l=s(t.Input,`input`),u=s((0,n.styled)(`p`),`renderer`),d=s((0,n.styled)(`span`),`highlight`),f=({patterns:e,value:t,defaultValue:n,onChange:r,onScroll:o,...s})=>{let f=t!==void 0,[p,m]=(0,i.useState)(n?.toString()??``),h=f?String(t):p,g=(0,i.useRef)(null),[_,v]=(0,i.useState)(0),y=e=>{v(e.currentTarget.scrollLeft),o?.(e)};(0,i.useEffect)(()=>{g.current&&(g.current.scrollLeft=_)},[_]);let b=new RegExp(e.map(e=>e.regex.source).join(`|`),`gi`),x=()=>{let t=[],n=0;for(let r of h.matchAll(b)){let i=r.index??0,o=i+r[0].length;i>n&&t.push((0,a.jsx)(`span`,{children:h.slice(n,i)},`text-${n}`));let s=e.find(e=>e.regex.test(r[0]));e.forEach(e=>e.regex.lastIndex=0),t.push(s?(0,a.jsx)(d,{style:{color:s.color??`secondary.500`},children:r[0]},`highlight-${i}`):(0,a.jsx)(`span`,{children:r[0]},`text-${i}`)),n=o}return n<h.length&&t.push((0,a.jsx)(`span`,{children:h.slice(n)},`text-${n}`)),t};return(0,a.jsxs)(c,{children:[(0,a.jsx)(l,{...s,value:h,defaultValue:void 0,onScroll:y,onChange:e=>{f||m(e.target.value),r?.(e)}}),(0,a.jsx)(u,{ref:g,children:x()})]})};exports.Highlight=d,exports.HighlightedInput=f,exports.InputSlot=l,exports.Renderer=u,exports.Root=c;
|
|
2
|
+
//# sourceMappingURL=HighlightedInput.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HighlightedInput.cjs","sources":["../../../src/components/input/HighlightedInput.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { highlightedInput } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { Input } from '~/components'\nimport { ComponentProps, type ElementRef, FC, ReactNode, useEffect, useRef, useState } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(highlightedInput, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled('div'), 'root')\nexport const InputSlot = withContext(Input, 'input')\nexport const Renderer = withContext(styled('p'), 'renderer')\nexport const Highlight = withContext(styled('span'), 'highlight')\n\nexport
|
|
1
|
+
{"version":3,"file":"HighlightedInput.cjs","names":[],"sources":["../../../src/components/input/HighlightedInput.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { highlightedInput } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { Input } from '~/components'\nimport { ComponentProps, type ElementRef, FC, ReactNode, useEffect, useRef, useState } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(highlightedInput, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled('div'), 'root')\nexport const InputSlot = withContext(Input, 'input')\nexport const Renderer = withContext(styled('p'), 'renderer')\nexport const Highlight = withContext(styled('span'), 'highlight')\n\nexport type HighlightedInputRootProps = ComponentProps<typeof Root>\nexport type HighlightedInputInputProps = ComponentProps<typeof InputSlot>\nexport type HighlightedInputRendererProps = ComponentProps<typeof Renderer>\nexport type HighlightedInputHighlightProps = ComponentProps<typeof Highlight>\n\ntype HighlightPattern = { regex: RegExp; color: string }\n\ntype HighlightedInputProps = {\n patterns: HighlightPattern[]\n placeholder?: string\n} & HighlightedInputInputProps\n\nexport const HighlightedInput: FC<HighlightedInputProps> = ({\n patterns,\n value: controlledValue,\n defaultValue,\n onChange,\n onScroll,\n ...inputProps\n}) => {\n const isControlled = controlledValue !== undefined\n\n const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue?.toString() ?? '')\n\n const value = isControlled ? String(controlledValue) : uncontrolledValue\n\n const textBlockRef = useRef<ElementRef<typeof Renderer>>(null)\n const [scrollValue, setScrollValue] = useState(0)\n\n const handleScroll = (e: { currentTarget: { scrollLeft: number } }) => {\n setScrollValue(e.currentTarget.scrollLeft)\n onScroll?.(e as React.UIEvent<HTMLInputElement>)\n }\n\n useEffect(() => {\n if (textBlockRef.current) {\n textBlockRef.current.scrollLeft = scrollValue\n }\n }, [scrollValue])\n\n const combinedRegex = new RegExp(patterns.map((p: HighlightPattern) => p.regex.source).join('|'), 'gi')\n\n const renderHighlightedText = () => {\n const nodes: ReactNode[] = []\n let lastIndex = 0\n\n for (const match of value.matchAll(combinedRegex)) {\n const start = match.index ?? 0\n const end = start + match[0].length\n\n if (start > lastIndex) {\n nodes.push(<span key={`text-${lastIndex}`}>{value.slice(lastIndex, start)}</span>)\n }\n\n const matchedPattern = patterns.find((p: HighlightPattern) => p.regex.test(match[0]))\n patterns.forEach((p: HighlightPattern) => (p.regex.lastIndex = 0))\n\n nodes.push(\n matchedPattern ? (\n <Highlight key={`highlight-${start}`} style={{ color: matchedPattern.color ?? 'secondary.500' }}>\n {match[0]}\n </Highlight>\n ) : (\n <span key={`text-${start}`}>{match[0]}</span>\n ),\n )\n\n lastIndex = end\n }\n\n if (lastIndex < value.length) {\n nodes.push(<span key={`text-${lastIndex}`}>{value.slice(lastIndex)}</span>)\n }\n\n return nodes\n }\n\n return (\n <Root>\n <InputSlot\n {...inputProps}\n value={value}\n defaultValue={undefined} // prevent React warning\n onScroll={handleScroll}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) => {\n if (!isControlled) {\n setUncontrolledValue(e.target.value)\n }\n onChange?.(e)\n }}\n />\n\n <Renderer ref={textBlockRef}>{renderHighlightedText()}</Renderer>\n </Root>\n )\n}\n"],"mappings":"yNAMA,GAAM,CAAE,eAAc,eAAgB,EAAA,mBAAmB,EAAA,iBAAkB,CACzE,SAAU,EACZ,CAAC,EAEY,EAAO,GAAA,EAAA,EAAA,QAAoB,KAAK,EAAG,MAAM,EACzC,EAAY,EAAY,EAAA,MAAO,OAAO,EACtC,EAAW,GAAA,EAAA,EAAA,QAAmB,GAAG,EAAG,UAAU,EAC9C,EAAY,GAAA,EAAA,EAAA,QAAmB,MAAM,EAAG,WAAW,EAcnD,GAA+C,CAC1D,WACA,MAAO,EACP,eACA,WACA,WACA,GAAG,KACC,CACJ,IAAM,EAAe,IAAoB,IAAA,GAEnC,CAAC,EAAmB,IAAA,EAAA,EAAA,UAAiC,GAAc,SAAS,GAAK,EAAE,EAEnF,EAAQ,EAAe,OAAO,CAAe,EAAI,EAEjD,GAAA,EAAA,EAAA,QAAmD,IAAI,EACvD,CAAC,EAAa,IAAA,EAAA,EAAA,UAA2B,CAAC,EAE1C,EAAgB,GAAiD,CACrE,EAAe,EAAE,cAAc,UAAU,EACzC,IAAW,CAAoC,CACjD,GAEA,EAAA,EAAA,eAAgB,CACV,EAAa,UACf,EAAa,QAAQ,WAAa,EAEtC,EAAG,CAAC,CAAW,CAAC,EAEhB,IAAM,EAAgB,IAAI,OAAO,EAAS,IAAK,GAAwB,EAAE,MAAM,MAAM,EAAE,KAAK,GAAG,EAAG,IAAI,EAEhG,MAA8B,CAClC,IAAM,EAAqB,CAAC,EACxB,EAAY,EAEhB,IAAK,IAAM,KAAS,EAAM,SAAS,CAAa,EAAG,CACjD,IAAM,EAAQ,EAAM,OAAS,EACvB,EAAM,EAAQ,EAAM,GAAG,OAEzB,EAAQ,GACV,EAAM,MAAK,EAAA,EAAA,KAAC,OAAD,CAAA,SAAiC,EAAM,MAAM,EAAW,CAAK,CAAQ,EAA1D,QAAQ,GAAkD,CAAC,EAGnF,IAAM,EAAiB,EAAS,KAAM,GAAwB,EAAE,MAAM,KAAK,EAAM,EAAE,CAAC,EACpF,EAAS,QAAS,GAAyB,EAAE,MAAM,UAAY,CAAE,EAEjE,EAAM,KACJ,GACE,EAAA,EAAA,KAAC,EAAD,CAAsC,MAAO,CAAE,MAAO,EAAe,OAAS,eAAgB,WAC3F,EAAM,EACE,EAFK,aAAa,GAElB,GAEX,EAAA,EAAA,KAAC,OAAD,CAAA,SAA6B,EAAM,EAAS,EAAjC,QAAQ,GAAyB,CAEhD,EAEA,EAAY,CACd,CAMA,OAJI,EAAY,EAAM,QACpB,EAAM,MAAK,EAAA,EAAA,KAAC,OAAD,CAAA,SAAiC,EAAM,MAAM,CAAS,CAAQ,EAAnD,QAAQ,GAA2C,CAAC,EAGrE,CACT,EAEA,OACE,EAAA,EAAA,MAAC,EAAD,CAAA,SAAA,EACE,EAAA,EAAA,KAAC,EAAD,CACE,GAAI,EACG,QACP,aAAc,IAAA,GACd,SAAU,EACV,SAAW,GAA2C,CAC/C,GACH,EAAqB,EAAE,OAAO,KAAK,EAErC,IAAW,CAAC,CACd,CACD,CAAA,GAED,EAAA,EAAA,KAAC,EAAD,CAAU,IAAK,WAAe,EAAsB,CAAY,CAAA,CAC5D,CAAA,CAAA,CAEV"}
|
|
@@ -6,19 +6,16 @@ export declare const Root: ComponentVariants<StyledComponent<"div", {}>, Highlig
|
|
|
6
6
|
export declare const InputSlot: StyledComponent<"input", InputVariantProps>;
|
|
7
7
|
export declare const Renderer: StyledComponent<"p", {}>;
|
|
8
8
|
export declare const Highlight: StyledComponent<"span", {}>;
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
9
|
+
export type HighlightedInputRootProps = ComponentProps<typeof Root>;
|
|
10
|
+
export type HighlightedInputInputProps = ComponentProps<typeof InputSlot>;
|
|
11
|
+
export type HighlightedInputRendererProps = ComponentProps<typeof Renderer>;
|
|
12
|
+
export type HighlightedInputHighlightProps = ComponentProps<typeof Highlight>;
|
|
13
|
+
type HighlightPattern = {
|
|
14
|
+
regex: RegExp;
|
|
15
|
+
color: string;
|
|
16
|
+
};
|
|
17
17
|
type HighlightedInputProps = {
|
|
18
|
-
patterns:
|
|
19
|
-
regex: RegExp;
|
|
20
|
-
color: string;
|
|
21
|
-
}[];
|
|
18
|
+
patterns: HighlightPattern[];
|
|
22
19
|
placeholder?: string;
|
|
23
20
|
} & HighlightedInputInputProps;
|
|
24
21
|
export declare const HighlightedInput: FC<HighlightedInputProps>;
|
|
@@ -1,60 +1,45 @@
|
|
|
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
|
-
...v,
|
|
42
|
-
value: n,
|
|
43
|
-
defaultValue: void 0,
|
|
44
|
-
onScroll: C,
|
|
45
|
-
onChange: (t) => {
|
|
46
|
-
a || R(t.target.value), m?.(t);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
),
|
|
50
|
-
/* @__PURE__ */ o(B, { ref: s, children: $() })
|
|
51
|
-
] });
|
|
2
|
+
import { createStyleContext as e } from "../../utils/slots.js";
|
|
3
|
+
import { Input as t } from "./Input.js";
|
|
4
|
+
import { styled as n } from "@stokelp/styled-system/jsx";
|
|
5
|
+
import { highlightedInput as r } from "@stokelp/styled-system/recipes";
|
|
6
|
+
import { useEffect as i, useRef as a, useState as o } from "react";
|
|
7
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
//#region src/components/input/HighlightedInput.tsx
|
|
9
|
+
var { withProvider: l, withContext: u } = e(r, { dataAttr: !0 }), d = l(n("div"), "root"), f = u(t, "input"), p = u(n("p"), "renderer"), m = u(n("span"), "highlight"), h = ({ patterns: e, value: t, defaultValue: n, onChange: r, onScroll: l, ...u }) => {
|
|
10
|
+
let h = t !== void 0, [g, _] = o(n?.toString() ?? ""), v = h ? String(t) : g, y = a(null), [b, x] = o(0), S = (e) => {
|
|
11
|
+
x(e.currentTarget.scrollLeft), l?.(e);
|
|
12
|
+
};
|
|
13
|
+
i(() => {
|
|
14
|
+
y.current && (y.current.scrollLeft = b);
|
|
15
|
+
}, [b]);
|
|
16
|
+
let C = new RegExp(e.map((e) => e.regex.source).join("|"), "gi"), w = () => {
|
|
17
|
+
let t = [], n = 0;
|
|
18
|
+
for (let r of v.matchAll(C)) {
|
|
19
|
+
let i = r.index ?? 0, a = i + r[0].length;
|
|
20
|
+
i > n && t.push(/* @__PURE__ */ s("span", { children: v.slice(n, i) }, `text-${n}`));
|
|
21
|
+
let o = e.find((e) => e.regex.test(r[0]));
|
|
22
|
+
e.forEach((e) => e.regex.lastIndex = 0), t.push(o ? /* @__PURE__ */ s(m, {
|
|
23
|
+
style: { color: o.color ?? "secondary.500" },
|
|
24
|
+
children: r[0]
|
|
25
|
+
}, `highlight-${i}`) : /* @__PURE__ */ s("span", { children: r[0] }, `text-${i}`)), n = a;
|
|
26
|
+
}
|
|
27
|
+
return n < v.length && t.push(/* @__PURE__ */ s("span", { children: v.slice(n) }, `text-${n}`)), t;
|
|
28
|
+
};
|
|
29
|
+
return /* @__PURE__ */ c(d, { children: [/* @__PURE__ */ s(f, {
|
|
30
|
+
...u,
|
|
31
|
+
value: v,
|
|
32
|
+
defaultValue: void 0,
|
|
33
|
+
onScroll: S,
|
|
34
|
+
onChange: (e) => {
|
|
35
|
+
h || _(e.target.value), r?.(e);
|
|
36
|
+
}
|
|
37
|
+
}), /* @__PURE__ */ s(p, {
|
|
38
|
+
ref: y,
|
|
39
|
+
children: w()
|
|
40
|
+
})] });
|
|
52
41
|
};
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
B as Renderer,
|
|
58
|
-
b as Root
|
|
59
|
-
};
|
|
60
|
-
//# sourceMappingURL=HighlightedInput.js.map
|
|
42
|
+
//#endregion
|
|
43
|
+
export { m as Highlight, h as HighlightedInput, f as InputSlot, p as Renderer, d as Root };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=HighlightedInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HighlightedInput.js","sources":["../../../src/components/input/HighlightedInput.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { highlightedInput } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { Input } from '~/components'\nimport { ComponentProps, type ElementRef, FC, ReactNode, useEffect, useRef, useState } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(highlightedInput, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled('div'), 'root')\nexport const InputSlot = withContext(Input, 'input')\nexport const Renderer = withContext(styled('p'), 'renderer')\nexport const Highlight = withContext(styled('span'), 'highlight')\n\nexport
|
|
1
|
+
{"version":3,"file":"HighlightedInput.js","names":[],"sources":["../../../src/components/input/HighlightedInput.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { highlightedInput } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { Input } from '~/components'\nimport { ComponentProps, type ElementRef, FC, ReactNode, useEffect, useRef, useState } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(highlightedInput, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled('div'), 'root')\nexport const InputSlot = withContext(Input, 'input')\nexport const Renderer = withContext(styled('p'), 'renderer')\nexport const Highlight = withContext(styled('span'), 'highlight')\n\nexport type HighlightedInputRootProps = ComponentProps<typeof Root>\nexport type HighlightedInputInputProps = ComponentProps<typeof InputSlot>\nexport type HighlightedInputRendererProps = ComponentProps<typeof Renderer>\nexport type HighlightedInputHighlightProps = ComponentProps<typeof Highlight>\n\ntype HighlightPattern = { regex: RegExp; color: string }\n\ntype HighlightedInputProps = {\n patterns: HighlightPattern[]\n placeholder?: string\n} & HighlightedInputInputProps\n\nexport const HighlightedInput: FC<HighlightedInputProps> = ({\n patterns,\n value: controlledValue,\n defaultValue,\n onChange,\n onScroll,\n ...inputProps\n}) => {\n const isControlled = controlledValue !== undefined\n\n const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue?.toString() ?? '')\n\n const value = isControlled ? String(controlledValue) : uncontrolledValue\n\n const textBlockRef = useRef<ElementRef<typeof Renderer>>(null)\n const [scrollValue, setScrollValue] = useState(0)\n\n const handleScroll = (e: { currentTarget: { scrollLeft: number } }) => {\n setScrollValue(e.currentTarget.scrollLeft)\n onScroll?.(e as React.UIEvent<HTMLInputElement>)\n }\n\n useEffect(() => {\n if (textBlockRef.current) {\n textBlockRef.current.scrollLeft = scrollValue\n }\n }, [scrollValue])\n\n const combinedRegex = new RegExp(patterns.map((p: HighlightPattern) => p.regex.source).join('|'), 'gi')\n\n const renderHighlightedText = () => {\n const nodes: ReactNode[] = []\n let lastIndex = 0\n\n for (const match of value.matchAll(combinedRegex)) {\n const start = match.index ?? 0\n const end = start + match[0].length\n\n if (start > lastIndex) {\n nodes.push(<span key={`text-${lastIndex}`}>{value.slice(lastIndex, start)}</span>)\n }\n\n const matchedPattern = patterns.find((p: HighlightPattern) => p.regex.test(match[0]))\n patterns.forEach((p: HighlightPattern) => (p.regex.lastIndex = 0))\n\n nodes.push(\n matchedPattern ? (\n <Highlight key={`highlight-${start}`} style={{ color: matchedPattern.color ?? 'secondary.500' }}>\n {match[0]}\n </Highlight>\n ) : (\n <span key={`text-${start}`}>{match[0]}</span>\n ),\n )\n\n lastIndex = end\n }\n\n if (lastIndex < value.length) {\n nodes.push(<span key={`text-${lastIndex}`}>{value.slice(lastIndex)}</span>)\n }\n\n return nodes\n }\n\n return (\n <Root>\n <InputSlot\n {...inputProps}\n value={value}\n defaultValue={undefined} // prevent React warning\n onScroll={handleScroll}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) => {\n if (!isControlled) {\n setUncontrolledValue(e.target.value)\n }\n onChange?.(e)\n }}\n />\n\n <Renderer ref={textBlockRef}>{renderHighlightedText()}</Renderer>\n </Root>\n )\n}\n"],"mappings":";;;;;;;;AAMA,IAAM,EAAE,iBAAc,mBAAgB,EAAmB,GAAkB,EACzE,UAAU,GACZ,CAAC,GAEY,IAAO,EAAa,EAAO,KAAK,GAAG,MAAM,GACzC,IAAY,EAAY,GAAO,OAAO,GACtC,IAAW,EAAY,EAAO,GAAG,GAAG,UAAU,GAC9C,IAAY,EAAY,EAAO,MAAM,GAAG,WAAW,GAcnD,KAA+C,EAC1D,aACA,OAAO,GACP,iBACA,aACA,aACA,GAAG,QACC;CACJ,IAAM,IAAe,MAAoB,KAAA,GAEnC,CAAC,GAAmB,KAAwB,EAAS,GAAc,SAAS,KAAK,EAAE,GAEnF,IAAQ,IAAe,OAAO,CAAe,IAAI,GAEjD,IAAe,EAAoC,IAAI,GACvD,CAAC,GAAa,KAAkB,EAAS,CAAC,GAE1C,KAAgB,MAAiD;EAErE,AADA,EAAe,EAAE,cAAc,UAAU,GACzC,IAAW,CAAoC;CACjD;CAEA,QAAgB;EACd,AAAI,EAAa,YACf,EAAa,QAAQ,aAAa;CAEtC,GAAG,CAAC,CAAW,CAAC;CAEhB,IAAM,IAAgB,IAAI,OAAO,EAAS,KAAK,MAAwB,EAAE,MAAM,MAAM,EAAE,KAAK,GAAG,GAAG,IAAI,GAEhG,UAA8B;EAClC,IAAM,IAAqB,CAAC,GACxB,IAAY;EAEhB,KAAK,IAAM,KAAS,EAAM,SAAS,CAAa,GAAG;GACjD,IAAM,IAAQ,EAAM,SAAS,GACvB,IAAM,IAAQ,EAAM,GAAG;GAE7B,AAAI,IAAQ,KACV,EAAM,KAAK,kBAAC,QAAD,EAAA,UAAiC,EAAM,MAAM,GAAW,CAAK,EAAQ,GAA1D,QAAQ,GAAkD,CAAC;GAGnF,IAAM,IAAiB,EAAS,MAAM,MAAwB,EAAE,MAAM,KAAK,EAAM,EAAE,CAAC;GAapF,AAZA,EAAS,SAAS,MAAyB,EAAE,MAAM,YAAY,CAAE,GAEjE,EAAM,KACJ,IACE,kBAAC,GAAD;IAAsC,OAAO,EAAE,OAAO,EAAe,SAAS,gBAAgB;cAC3F,EAAM;GACE,GAFK,aAAa,GAElB,IAEX,kBAAC,QAAD,EAAA,UAA6B,EAAM,GAAS,GAAjC,QAAQ,GAAyB,CAEhD,GAEA,IAAY;EACd;EAMA,OAJI,IAAY,EAAM,UACpB,EAAM,KAAK,kBAAC,QAAD,EAAA,UAAiC,EAAM,MAAM,CAAS,EAAQ,GAAnD,QAAQ,GAA2C,CAAC,GAGrE;CACT;CAEA,OACE,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;EACE,GAAI;EACG;EACP,cAAc,KAAA;EACd,UAAU;EACV,WAAW,MAA2C;GAIpD,AAHK,KACH,EAAqB,EAAE,OAAO,KAAK,GAErC,IAAW,CAAC;EACd;CACD,CAAA,GAED,kBAAC,GAAD;EAAU,KAAK;YAAe,EAAsB;CAAY,CAAA,CAC5D,EAAA,CAAA;AAEV"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
//# sourceMappingURL=Input.cjs.map
|
|
1
|
+
"use client";let e=require("@stokelp/styled-system/jsx"),t=require("@stokelp/styled-system/recipes");var n=(0,e.styled)(`input`,t.input,{defaultProps:{onWheel:e=>{e.currentTarget.type===`number`&&e.currentTarget.blur()}},dataAttr:!0});exports.Input=n;
|
|
2
|
+
//# sourceMappingURL=Input.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.cjs","sources":["../../../src/components/input/Input.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { input } from '@stokelp/styled-system/recipes'\n\nexport const Input = styled('input', input, {\n defaultProps: {\n onWheel: event => {\n if (event.currentTarget.type === 'number') {\n event.currentTarget.blur()\n }\n },\n },\n dataAttr: true,\n})\n\nexport
|
|
1
|
+
{"version":3,"file":"Input.cjs","names":[],"sources":["../../../src/components/input/Input.tsx"],"sourcesContent":["import type { ComponentProps, WheelEvent } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { input } from '@stokelp/styled-system/recipes'\n\nexport const Input = styled('input', input, {\n defaultProps: {\n onWheel: (event: WheelEvent<HTMLInputElement>) => {\n if (event.currentTarget.type === 'number') {\n event.currentTarget.blur()\n }\n },\n },\n dataAttr: true,\n})\n\nexport type InputProps = ComponentProps<typeof Input>\n"],"mappings":"qGAKA,IAAa,GAAA,EAAA,EAAA,QAAe,QAAS,EAAA,MAAO,CAC1C,aAAc,CACZ,QAAU,GAAwC,CAC5C,EAAM,cAAc,OAAS,UAC/B,EAAM,cAAc,KAAK,CAE7B,CACF,EACA,SAAU,EACZ,CAAC"}
|
|
@@ -2,5 +2,4 @@ import { ComponentProps } from 'react';
|
|
|
2
2
|
import { StyledComponent } from '@stokelp/styled-system/types';
|
|
3
3
|
import { InputVariantProps } from '@stokelp/styled-system/recipes';
|
|
4
4
|
export declare const Input: StyledComponent<"input", InputVariantProps>;
|
|
5
|
-
export
|
|
6
|
-
}
|
|
5
|
+
export type InputProps = ComponentProps<typeof Input>;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { styled as
|
|
3
|
-
import { input as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
dataAttr: !0
|
|
2
|
+
import { styled as e } from "@stokelp/styled-system/jsx";
|
|
3
|
+
import { input as t } from "@stokelp/styled-system/recipes";
|
|
4
|
+
//#region src/components/input/Input.tsx
|
|
5
|
+
var n = e("input", t, {
|
|
6
|
+
defaultProps: { onWheel: (e) => {
|
|
7
|
+
e.currentTarget.type === "number" && e.currentTarget.blur();
|
|
8
|
+
} },
|
|
9
|
+
dataAttr: !0
|
|
11
10
|
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=Input.js.map
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as Input };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=Input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sources":["../../../src/components/input/Input.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { input } from '@stokelp/styled-system/recipes'\n\nexport const Input = styled('input', input, {\n defaultProps: {\n onWheel: event => {\n if (event.currentTarget.type === 'number') {\n event.currentTarget.blur()\n }\n },\n },\n dataAttr: true,\n})\n\nexport
|
|
1
|
+
{"version":3,"file":"Input.js","names":[],"sources":["../../../src/components/input/Input.tsx"],"sourcesContent":["import type { ComponentProps, WheelEvent } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { input } from '@stokelp/styled-system/recipes'\n\nexport const Input = styled('input', input, {\n defaultProps: {\n onWheel: (event: WheelEvent<HTMLInputElement>) => {\n if (event.currentTarget.type === 'number') {\n event.currentTarget.blur()\n }\n },\n },\n dataAttr: true,\n})\n\nexport type InputProps = ComponentProps<typeof Input>\n"],"mappings":";;;;AAKA,IAAa,IAAQ,EAAO,SAAS,GAAO;CAC1C,cAAc,EACZ,UAAU,MAAwC;EAChD,AAAI,EAAM,cAAc,SAAS,YAC/B,EAAM,cAAc,KAAK;CAE7B,EACF;CACA,UAAU;AACZ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
//# sourceMappingURL=InputAddon.cjs.map
|
|
1
|
+
"use client";let e=require("@ark-ui/react"),t=require("@stokelp/styled-system/jsx"),n=require("@stokelp/styled-system/recipes");var r=(0,t.styled)(e.ark.div,n.inputAddon,{dataAttr:!0});exports.InputAddon=r;
|
|
2
|
+
//# sourceMappingURL=InputAddon.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputAddon.cjs","sources":["../../../src/components/input/InputAddon.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputAddon } from '@stokelp/styled-system/recipes'\nimport { ark } from '@ark-ui/react'\n\nexport const InputAddon = styled(ark.div, inputAddon, {\n dataAttr: true,\n})\n\nexport interface InputAddonProps extends ComponentProps<typeof InputAddon> {}\n"],"
|
|
1
|
+
{"version":3,"file":"InputAddon.cjs","names":[],"sources":["../../../src/components/input/InputAddon.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputAddon } from '@stokelp/styled-system/recipes'\nimport { ark } from '@ark-ui/react'\n\nexport const InputAddon = styled(ark.div, inputAddon, {\n dataAttr: true,\n})\n\nexport interface InputAddonProps extends ComponentProps<typeof InputAddon> {}\n"],"mappings":"gIAMA,IAAa,GAAA,EAAA,EAAA,QAAoB,EAAA,IAAI,IAAK,EAAA,WAAY,CACpD,SAAU,EACZ,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { ark as e } from "@ark-ui/react";
|
|
2
3
|
import { styled as t } from "@stokelp/styled-system/jsx";
|
|
3
|
-
import { inputAddon as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=InputAddon.js.map
|
|
4
|
+
import { inputAddon as n } from "@stokelp/styled-system/recipes";
|
|
5
|
+
//#region src/components/input/InputAddon.tsx
|
|
6
|
+
var r = t(e.div, n, { dataAttr: !0 });
|
|
7
|
+
//#endregion
|
|
8
|
+
export { r as InputAddon };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=InputAddon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputAddon.js","sources":["../../../src/components/input/InputAddon.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputAddon } from '@stokelp/styled-system/recipes'\nimport { ark } from '@ark-ui/react'\n\nexport const InputAddon = styled(ark.div, inputAddon, {\n dataAttr: true,\n})\n\nexport interface InputAddonProps extends ComponentProps<typeof InputAddon> {}\n"],"
|
|
1
|
+
{"version":3,"file":"InputAddon.js","names":[],"sources":["../../../src/components/input/InputAddon.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputAddon } from '@stokelp/styled-system/recipes'\nimport { ark } from '@ark-ui/react'\n\nexport const InputAddon = styled(ark.div, inputAddon, {\n dataAttr: true,\n})\n\nexport interface InputAddonProps extends ComponentProps<typeof InputAddon> {}\n"],"mappings":";;;;;AAMA,IAAa,IAAa,EAAO,EAAI,KAAK,GAAY,EACpD,UAAU,GACZ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
//# sourceMappingURL=InputGroup.cjs.map
|
|
1
|
+
"use client";let e=require("@stokelp/styled-system/jsx"),t=require("@stokelp/styled-system/recipes");var n=(0,e.styled)(`div`,t.inputGroup,{dataAttr:!0});exports.InputGroup=n;
|
|
2
|
+
//# sourceMappingURL=InputGroup.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputGroup.cjs","sources":["../../../src/components/input/InputGroup.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputGroup } from '@stokelp/styled-system/recipes'\n\nexport const InputGroup = styled('div', inputGroup, {\n dataAttr: true,\n})\n\nexport interface InputGroupProps extends ComponentProps<typeof InputGroup> {}\n"],"
|
|
1
|
+
{"version":3,"file":"InputGroup.cjs","names":[],"sources":["../../../src/components/input/InputGroup.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputGroup } from '@stokelp/styled-system/recipes'\n\nexport const InputGroup = styled('div', inputGroup, {\n dataAttr: true,\n})\n\nexport interface InputGroupProps extends ComponentProps<typeof InputGroup> {}\n"],"mappings":"qGAKA,IAAa,GAAA,EAAA,EAAA,QAAoB,MAAO,EAAA,WAAY,CAClD,SAAU,EACZ,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { styled as
|
|
3
|
-
import { inputGroup as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=InputGroup.js.map
|
|
2
|
+
import { styled as e } from "@stokelp/styled-system/jsx";
|
|
3
|
+
import { inputGroup as t } from "@stokelp/styled-system/recipes";
|
|
4
|
+
//#region src/components/input/InputGroup.tsx
|
|
5
|
+
var n = e("div", t, { dataAttr: !0 });
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as InputGroup };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=InputGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputGroup.js","sources":["../../../src/components/input/InputGroup.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputGroup } from '@stokelp/styled-system/recipes'\n\nexport const InputGroup = styled('div', inputGroup, {\n dataAttr: true,\n})\n\nexport interface InputGroupProps extends ComponentProps<typeof InputGroup> {}\n"],"
|
|
1
|
+
{"version":3,"file":"InputGroup.js","names":[],"sources":["../../../src/components/input/InputGroup.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputGroup } from '@stokelp/styled-system/recipes'\n\nexport const InputGroup = styled('div', inputGroup, {\n dataAttr: true,\n})\n\nexport interface InputGroupProps extends ComponentProps<typeof InputGroup> {}\n"],"mappings":";;;;AAKA,IAAa,IAAa,EAAO,OAAO,GAAY,EAClD,UAAU,GACZ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
//# sourceMappingURL=PhoneNumberInput.cjs.map
|
|
1
|
+
"use client";const e=require("../../_virtual/_rolldown/runtime.cjs");let t=require("react-phone-number-input");t=e.__toESM(t,1);let n=require("@stokelp/styled-system/jsx"),r=require("@stokelp/styled-system/recipes"),i=require("react"),a=require("react/jsx-runtime");var o=(0,n.styled)(t.default,r.phoneNumberInput,{dataAttr:!0}),s=(0,i.forwardRef)((e,t)=>{let[n,r]=(0,i.useState)(),[s,c]=(0,i.useState)();return(0,a.jsx)(o,{international:!0,defaultCountry:`FR`,value:s,onChange:c,country:n,onCountryChange:r,...e,ref:t})});exports.PhoneNumberInput=s;
|
|
2
|
+
//# sourceMappingURL=PhoneNumberInput.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneNumberInput.cjs","sources":["../../../src/components/input/PhoneNumberInput.tsx"],"sourcesContent":["import NumberInput, { type Props as FeatureProps } from 'react-phone-number-input'\nimport { ComponentProps, ElementRef, FC, forwardRef, useState } from 'react'\nimport { HTMLStyledProps, styled } from '@stokelp/styled-system/jsx'\nimport { phoneNumberInput } from '@stokelp/styled-system/recipes'\n\nconst StyledNumberInput = styled(NumberInput, phoneNumberInput, { dataAttr: true })\n\ntype Ref = ElementRef<typeof NumberInput>\ntype ForwardPhoneNumberInputProps = FeatureProps<ComponentProps<typeof StyledNumberInput>>\n\ntype StyledFeatureProps = FeatureProps<HTMLStyledProps<'input'>>\n\nexport type PhoneNumberInputProps = Omit<StyledFeatureProps, 'onChange'> & {\n onChange?: StyledFeatureProps['onChange']\n}\n\nexport const PhoneNumberInput = forwardRef<Ref, ForwardPhoneNumberInputProps>((props, ref) => {\n const [country, setCountry] = useState()\n const [value, setValue] = useState()\n\n return (\n <StyledNumberInput\n international\n defaultCountry=\"FR\"\n value={value}\n onChange={setValue}\n country={country}\n onCountryChange={setCountry}\n {...props}\n ref={ref}\n />\n )\n}) as FC<PhoneNumberInputProps>\n"],"
|
|
1
|
+
{"version":3,"file":"PhoneNumberInput.cjs","names":[],"sources":["../../../src/components/input/PhoneNumberInput.tsx"],"sourcesContent":["import NumberInput, { type Props as FeatureProps } from 'react-phone-number-input'\nimport { ComponentProps, ElementRef, FC, forwardRef, useState } from 'react'\nimport { HTMLStyledProps, styled } from '@stokelp/styled-system/jsx'\nimport { phoneNumberInput } from '@stokelp/styled-system/recipes'\n\nconst StyledNumberInput = styled(NumberInput, phoneNumberInput, { dataAttr: true })\n\ntype Ref = ElementRef<typeof NumberInput>\ntype ForwardPhoneNumberInputProps = FeatureProps<ComponentProps<typeof StyledNumberInput>>\n\ntype StyledFeatureProps = FeatureProps<HTMLStyledProps<'input'>>\n\nexport type PhoneNumberInputProps = Omit<StyledFeatureProps, 'onChange'> & {\n onChange?: StyledFeatureProps['onChange']\n}\n\nexport const PhoneNumberInput = forwardRef<Ref, ForwardPhoneNumberInputProps>((props, ref) => {\n const [country, setCountry] = useState()\n const [value, setValue] = useState()\n\n return (\n <StyledNumberInput\n international\n defaultCountry=\"FR\"\n value={value}\n onChange={setValue}\n country={country}\n onCountryChange={setCountry}\n {...props}\n ref={ref}\n />\n )\n}) as FC<PhoneNumberInputProps>\n"],"mappings":"0QAKA,IAAM,GAAA,EAAA,EAAA,QAA2B,EAAA,QAAa,EAAA,iBAAkB,CAAE,SAAU,EAAK,CAAC,EAWrE,GAAA,EAAA,EAAA,aAAkE,EAAO,IAAQ,CAC5F,GAAM,CAAC,EAAS,IAAA,EAAA,EAAA,UAAuB,EACjC,CAAC,EAAO,IAAA,EAAA,EAAA,UAAqB,EAEnC,OACE,EAAA,EAAA,KAAC,EAAD,CACE,cAAA,GACA,eAAe,KACR,QACP,SAAU,EACD,UACT,gBAAiB,EACjB,GAAI,EACC,KACN,CAAA,CAEL,CAAC"}
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import e from "react-phone-number-input";
|
|
3
|
+
import { styled as t } from "@stokelp/styled-system/jsx";
|
|
4
|
+
import { phoneNumberInput as n } from "@stokelp/styled-system/recipes";
|
|
5
|
+
import { forwardRef as r, useState as i } from "react";
|
|
2
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
country: o,
|
|
17
|
-
onCountryChange: n,
|
|
18
|
-
...r,
|
|
19
|
-
ref: e
|
|
20
|
-
}
|
|
21
|
-
);
|
|
7
|
+
//#region src/components/input/PhoneNumberInput.tsx
|
|
8
|
+
var o = t(e, n, { dataAttr: !0 }), s = r((e, t) => {
|
|
9
|
+
let [n, r] = i(), [s, c] = i();
|
|
10
|
+
return /* @__PURE__ */ a(o, {
|
|
11
|
+
international: !0,
|
|
12
|
+
defaultCountry: "FR",
|
|
13
|
+
value: s,
|
|
14
|
+
onChange: c,
|
|
15
|
+
country: n,
|
|
16
|
+
onCountryChange: r,
|
|
17
|
+
...e,
|
|
18
|
+
ref: t
|
|
19
|
+
});
|
|
22
20
|
});
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
//# sourceMappingURL=PhoneNumberInput.js.map
|
|
21
|
+
//#endregion
|
|
22
|
+
export { s as PhoneNumberInput };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=PhoneNumberInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneNumberInput.js","sources":["../../../src/components/input/PhoneNumberInput.tsx"],"sourcesContent":["import NumberInput, { type Props as FeatureProps } from 'react-phone-number-input'\nimport { ComponentProps, ElementRef, FC, forwardRef, useState } from 'react'\nimport { HTMLStyledProps, styled } from '@stokelp/styled-system/jsx'\nimport { phoneNumberInput } from '@stokelp/styled-system/recipes'\n\nconst StyledNumberInput = styled(NumberInput, phoneNumberInput, { dataAttr: true })\n\ntype Ref = ElementRef<typeof NumberInput>\ntype ForwardPhoneNumberInputProps = FeatureProps<ComponentProps<typeof StyledNumberInput>>\n\ntype StyledFeatureProps = FeatureProps<HTMLStyledProps<'input'>>\n\nexport type PhoneNumberInputProps = Omit<StyledFeatureProps, 'onChange'> & {\n onChange?: StyledFeatureProps['onChange']\n}\n\nexport const PhoneNumberInput = forwardRef<Ref, ForwardPhoneNumberInputProps>((props, ref) => {\n const [country, setCountry] = useState()\n const [value, setValue] = useState()\n\n return (\n <StyledNumberInput\n international\n defaultCountry=\"FR\"\n value={value}\n onChange={setValue}\n country={country}\n onCountryChange={setCountry}\n {...props}\n ref={ref}\n />\n )\n}) as FC<PhoneNumberInputProps>\n"],"
|
|
1
|
+
{"version":3,"file":"PhoneNumberInput.js","names":[],"sources":["../../../src/components/input/PhoneNumberInput.tsx"],"sourcesContent":["import NumberInput, { type Props as FeatureProps } from 'react-phone-number-input'\nimport { ComponentProps, ElementRef, FC, forwardRef, useState } from 'react'\nimport { HTMLStyledProps, styled } from '@stokelp/styled-system/jsx'\nimport { phoneNumberInput } from '@stokelp/styled-system/recipes'\n\nconst StyledNumberInput = styled(NumberInput, phoneNumberInput, { dataAttr: true })\n\ntype Ref = ElementRef<typeof NumberInput>\ntype ForwardPhoneNumberInputProps = FeatureProps<ComponentProps<typeof StyledNumberInput>>\n\ntype StyledFeatureProps = FeatureProps<HTMLStyledProps<'input'>>\n\nexport type PhoneNumberInputProps = Omit<StyledFeatureProps, 'onChange'> & {\n onChange?: StyledFeatureProps['onChange']\n}\n\nexport const PhoneNumberInput = forwardRef<Ref, ForwardPhoneNumberInputProps>((props, ref) => {\n const [country, setCountry] = useState()\n const [value, setValue] = useState()\n\n return (\n <StyledNumberInput\n international\n defaultCountry=\"FR\"\n value={value}\n onChange={setValue}\n country={country}\n onCountryChange={setCountry}\n {...props}\n ref={ref}\n />\n )\n}) as FC<PhoneNumberInputProps>\n"],"mappings":";;;;;;;AAKA,IAAM,IAAoB,EAAO,GAAa,GAAkB,EAAE,UAAU,GAAK,CAAC,GAWrE,IAAmB,GAA+C,GAAO,MAAQ;CAC5F,IAAM,CAAC,GAAS,KAAc,EAAS,GACjC,CAAC,GAAO,KAAY,EAAS;CAEnC,OACE,kBAAC,GAAD;EACE,eAAA;EACA,gBAAe;EACR;EACP,UAAU;EACD;EACT,iBAAiB;EACjB,GAAI;EACC;CACN,CAAA;AAEL,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
//# sourceMappingURL=Menu.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");var s=e.__exportAll({Content:()=>p,Item:()=>m,ItemGroup:()=>h,ItemGroupLabel:()=>g,Root:()=>u,Separator:()=>_,Trigger:()=>v,TriggerItem:()=>y}),{withProvider:c,withContext:l}=t.createStyleContext(i.menu),u=c(n.Menu.Root,void 0,{defaultProps:{lazyMount:!0,loopFocus:!0,unmountOnExit:!0}}),d=l((0,r.styled)(n.Menu.Positioner),`positioner`),f=(0,a.forwardRef)(({children:e,...t},r)=>(0,o.jsx)(n.Portal,{children:(0,o.jsx)(d,{children:(0,o.jsx)(n.Menu.Content,{ref:r,...t,children:e})})}));f.displayName=n.Menu.Content.displayName;var p=l((0,r.styled)(f),`content`),m=l((0,r.styled)(n.Menu.Item),`item`),h=l((0,r.styled)(n.Menu.ItemGroup),`itemGroup`),g=l((0,r.styled)(n.Menu.ItemGroupLabel),`itemGroupLabel`),_=l((0,r.styled)(n.Menu.Separator),`separator`),v=l((0,r.styled)(n.Menu.Trigger),`trigger`),y=l((0,r.styled)(n.Menu.TriggerItem),`triggerItem`);Object.defineProperty(exports,"Menu_exports",{enumerable:!0,get:function(){return s}});
|
|
2
|
+
//# sourceMappingURL=Menu.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.cjs","sources":["../../../src/components/menu/Menu.tsx"],"sourcesContent":["import { Menu as ArkMenu } from '@ark-ui/react'\nimport { ComponentProps, ComponentPropsWithoutRef, ElementRef, forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { createStyleContext } from '~/utils/slots'\nimport { menu } from '@stokelp/styled-system/recipes'\nimport { Portal } from '@ark-ui/react'\n\nconst { withProvider, withContext } = createStyleContext(menu)\n\nexport const Root = withProvider(ArkMenu.Root, undefined, {\n defaultProps: {\n lazyMount: true,\n loopFocus: true,\n unmountOnExit: true,\n },\n})\nconst Positioner = withContext(styled(ArkMenu.Positioner), 'positioner')\n\nconst InnerContent = forwardRef<ElementRef<typeof ArkMenu.Content>, ComponentPropsWithoutRef<typeof ArkMenu.Content>>(\n ({ children, ...props }, ref) => {\n return (\n <Portal>\n <Positioner>\n <ArkMenu.Content ref={ref} {...props}>\n {children}\n </ArkMenu.Content>\n </Positioner>\n </Portal>\n )\n },\n)\nInnerContent.displayName = ArkMenu.Content.displayName\n\nexport const Content = withContext(styled(InnerContent), 'content')\nexport const Item = withContext(styled(ArkMenu.Item), 'item')\nexport const ItemGroup = withContext(styled(ArkMenu.ItemGroup), 'itemGroup')\nexport const ItemGroupLabel = withContext(styled(ArkMenu.ItemGroupLabel), 'itemGroupLabel')\nexport const Separator = withContext(styled(ArkMenu.Separator), 'separator')\nexport const Trigger = withContext(styled(ArkMenu.Trigger), 'trigger')\nexport const TriggerItem = withContext(styled(ArkMenu.TriggerItem), 'triggerItem')\n\nexport interface MenuProps extends ComponentProps<typeof Root> {}\nexport interface MenuContentProps extends ComponentProps<typeof Content> {}\nexport interface MenuItemProps extends ComponentProps<typeof Item> {}\nexport interface MenuItemGroupProps extends ComponentProps<typeof ItemGroup> {}\nexport interface MenuItemGroupLabelProps extends ComponentProps<typeof ItemGroupLabel> {}\nexport interface MenuSeparatorProps extends ComponentProps<typeof Separator> {}\nexport interface MenuTriggerProps extends ComponentProps<typeof Trigger> {}\nexport interface MenuTriggerItemProps extends ComponentProps<typeof TriggerItem> {}\n"],"
|
|
1
|
+
{"version":3,"file":"Menu.cjs","names":[],"sources":["../../../src/components/menu/Menu.tsx"],"sourcesContent":["import { Menu as ArkMenu } from '@ark-ui/react'\nimport { ComponentProps, ComponentPropsWithoutRef, ElementRef, forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { createStyleContext } from '~/utils/slots'\nimport { menu } from '@stokelp/styled-system/recipes'\nimport { Portal } from '@ark-ui/react'\n\nconst { withProvider, withContext } = createStyleContext(menu)\n\nexport const Root = withProvider(ArkMenu.Root, undefined, {\n defaultProps: {\n lazyMount: true,\n loopFocus: true,\n unmountOnExit: true,\n },\n})\nconst Positioner = withContext(styled(ArkMenu.Positioner), 'positioner')\n\nconst InnerContent = forwardRef<ElementRef<typeof ArkMenu.Content>, ComponentPropsWithoutRef<typeof ArkMenu.Content>>(\n ({ children, ...props }, ref) => {\n return (\n <Portal>\n <Positioner>\n <ArkMenu.Content ref={ref} {...props}>\n {children}\n </ArkMenu.Content>\n </Positioner>\n </Portal>\n )\n },\n)\nInnerContent.displayName = ArkMenu.Content.displayName\n\nexport const Content = withContext(styled(InnerContent), 'content')\nexport const Item = withContext(styled(ArkMenu.Item), 'item')\nexport const ItemGroup = withContext(styled(ArkMenu.ItemGroup), 'itemGroup')\nexport const ItemGroupLabel = withContext(styled(ArkMenu.ItemGroupLabel), 'itemGroupLabel')\nexport const Separator = withContext(styled(ArkMenu.Separator), 'separator')\nexport const Trigger = withContext(styled(ArkMenu.Trigger), 'trigger')\nexport const TriggerItem = withContext(styled(ArkMenu.TriggerItem), 'triggerItem')\n\nexport interface MenuProps extends ComponentProps<typeof Root> {}\nexport interface MenuContentProps extends ComponentProps<typeof Content> {}\nexport interface MenuItemProps extends ComponentProps<typeof Item> {}\nexport interface MenuItemGroupProps extends ComponentProps<typeof ItemGroup> {}\nexport interface MenuItemGroupLabelProps extends ComponentProps<typeof ItemGroupLabel> {}\nexport interface MenuSeparatorProps extends ComponentProps<typeof Separator> {}\nexport interface MenuTriggerProps extends ComponentProps<typeof Trigger> {}\nexport interface MenuTriggerItemProps extends ComponentProps<typeof TriggerItem> {}\n"],"mappings":"6ZAOM,CAAE,eAAc,eAAgB,EAAA,mBAAmB,EAAA,IAAI,EAEhD,EAAO,EAAa,EAAA,KAAQ,KAAM,IAAA,GAAW,CACxD,aAAc,CACZ,UAAW,GACX,UAAW,GACX,cAAe,EACjB,CACF,CAAC,EACK,EAAa,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAQ,UAAU,EAAG,YAAY,EAEjE,GAAA,EAAA,EAAA,aACH,CAAE,WAAU,GAAG,GAAS,KAErB,EAAA,EAAA,KAAC,EAAA,OAAD,CAAA,UACE,EAAA,EAAA,KAAC,EAAD,CAAA,UACE,EAAA,EAAA,KAAC,EAAA,KAAQ,QAAT,CAAsB,MAAK,GAAI,EAC5B,UACc,CAAA,CACP,CAAA,CACN,CAAA,CAGd,EACA,EAAa,YAAc,EAAA,KAAQ,QAAQ,YAE3C,IAAa,EAAU,GAAA,EAAA,EAAA,QAAmB,CAAY,EAAG,SAAS,EACrD,EAAO,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAQ,IAAI,EAAG,MAAM,EAC/C,EAAY,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAQ,SAAS,EAAG,WAAW,EAC9D,EAAiB,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAQ,cAAc,EAAG,gBAAgB,EAC7E,EAAY,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAQ,SAAS,EAAG,WAAW,EAC9D,EAAU,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAQ,OAAO,EAAG,SAAS,EACxD,EAAc,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAQ,WAAW,EAAG,aAAa"}
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { styled as
|
|
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
|
-
|
|
2
|
+
import { __exportAll as e } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { createStyleContext as t } from "../../utils/slots.js";
|
|
4
|
+
import { Menu as n, Portal as r } from "@ark-ui/react";
|
|
5
|
+
import { styled as i } from "@stokelp/styled-system/jsx";
|
|
6
|
+
import { menu as a } from "@stokelp/styled-system/recipes";
|
|
7
|
+
import { forwardRef as o } from "react";
|
|
8
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/menu/Menu.tsx
|
|
10
|
+
var c = /* @__PURE__ */ e({
|
|
11
|
+
Content: () => m,
|
|
12
|
+
Item: () => h,
|
|
13
|
+
ItemGroup: () => g,
|
|
14
|
+
ItemGroupLabel: () => _,
|
|
15
|
+
Root: () => d,
|
|
16
|
+
Separator: () => v,
|
|
17
|
+
Trigger: () => y,
|
|
18
|
+
TriggerItem: () => b
|
|
19
|
+
}), { withProvider: l, withContext: u } = t(a), d = l(n.Root, void 0, { defaultProps: {
|
|
20
|
+
lazyMount: !0,
|
|
21
|
+
loopFocus: !0,
|
|
22
|
+
unmountOnExit: !0
|
|
23
|
+
} }), f = u(i(n.Positioner), "positioner"), p = o(({ children: e, ...t }, i) => /* @__PURE__ */ s(r, { children: /* @__PURE__ */ s(f, { children: /* @__PURE__ */ s(n.Content, {
|
|
24
|
+
ref: i,
|
|
25
|
+
...t,
|
|
26
|
+
children: e
|
|
27
|
+
}) }) }));
|
|
28
|
+
p.displayName = n.Content.displayName;
|
|
29
|
+
var m = u(i(p), "content"), h = u(i(n.Item), "item"), g = u(i(n.ItemGroup), "itemGroup"), _ = u(i(n.ItemGroupLabel), "itemGroupLabel"), v = u(i(n.Separator), "separator"), y = u(i(n.Trigger), "trigger"), b = u(i(n.TriggerItem), "triggerItem");
|
|
30
|
+
//#endregion
|
|
31
|
+
export { c as Menu_exports };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=Menu.js.map
|