@stokelp/ui 2.127.0 → 3.0.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/README.md +1 -1
- package/dist/_virtual/_rolldown/runtime.cjs +1 -1
- package/dist/_virtual/_rolldown/runtime.js +4 -5
- package/dist/components/accordion/Accordion.cjs +1 -1
- package/dist/components/accordion/Accordion.cjs.map +1 -1
- package/dist/components/accordion/Accordion.d.ts +1 -1
- package/dist/components/accordion/Accordion.js +1 -2
- package/dist/components/accordion/Accordion.js.map +1 -1
- package/dist/components/action-card/ActionCard.cjs.map +1 -1
- package/dist/components/action-card/ActionCard.d.ts +1 -1
- package/dist/components/action-card/ActionCard.js +1 -2
- package/dist/components/action-card/ActionCard.js.map +1 -1
- package/dist/components/alert/Alert.cjs.map +1 -1
- package/dist/components/alert/Alert.d.ts +1 -1
- package/dist/components/alert/Alert.js +1 -2
- package/dist/components/alert/Alert.js.map +1 -1
- package/dist/components/app/mobile-card/MobileCardEntityRow.cjs.map +1 -1
- package/dist/components/app/mobile-card/MobileCardEntityRow.d.ts +1 -1
- package/dist/components/app/mobile-card/MobileCardEntityRow.js +1 -2
- package/dist/components/app/mobile-card/MobileCardEntityRow.js.map +1 -1
- package/dist/components/app/mobile-card/MobileCardHeader.cjs.map +1 -1
- package/dist/components/app/mobile-card/MobileCardHeader.d.ts +1 -1
- package/dist/components/app/mobile-card/MobileCardHeader.js +1 -2
- package/dist/components/app/mobile-card/MobileCardHeader.js.map +1 -1
- package/dist/components/app/mobile-card/MobileCardNotificationBadge.cjs +1 -1
- package/dist/components/app/mobile-card/MobileCardNotificationBadge.cjs.map +1 -1
- package/dist/components/app/mobile-card/MobileCardNotificationBadge.d.ts +1 -1
- package/dist/components/app/mobile-card/MobileCardNotificationBadge.js +2 -3
- package/dist/components/app/mobile-card/MobileCardNotificationBadge.js.map +1 -1
- package/dist/components/app/mobile-card/MobileCardShell.cjs.map +1 -1
- package/dist/components/app/mobile-card/MobileCardShell.d.ts +1 -1
- package/dist/components/app/mobile-card/MobileCardShell.js +1 -2
- package/dist/components/app/mobile-card/MobileCardShell.js.map +1 -1
- package/dist/components/app/mobile-card/MobileCardSkeleton.cjs.map +1 -1
- package/dist/components/app/mobile-card/MobileCardSkeleton.d.ts +3 -3
- package/dist/components/app/mobile-card/MobileCardSkeleton.js +1 -2
- package/dist/components/app/mobile-card/MobileCardSkeleton.js.map +1 -1
- package/dist/components/app/mobile-navigation/MobileNavigation.cjs +1 -1
- package/dist/components/app/mobile-navigation/MobileNavigation.cjs.map +1 -1
- package/dist/components/app/mobile-navigation/MobileNavigation.js +2 -3
- package/dist/components/app/mobile-navigation/MobileNavigation.js.map +1 -1
- package/dist/components/app/navigation/AppNavigation.cjs +1 -1
- package/dist/components/app/navigation/AppNavigation.cjs.map +1 -1
- package/dist/components/app/navigation/AppNavigation.js +3 -4
- package/dist/components/app/navigation/AppNavigation.js.map +1 -1
- package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.cjs +1 -1
- package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.cjs.map +1 -1
- package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.js +5 -6
- package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.js.map +1 -1
- package/dist/components/app/price-tag/PriceTag.cjs.map +1 -1
- package/dist/components/app/price-tag/PriceTag.d.ts +3 -5
- package/dist/components/app/price-tag/PriceTag.js +1 -2
- package/dist/components/app/price-tag/PriceTag.js.map +1 -1
- package/dist/components/app/product-card-catalog/styled.cjs +1 -1
- package/dist/components/app/product-card-catalog/styled.cjs.map +1 -1
- package/dist/components/app/product-card-catalog/styled.d.ts +1 -1
- package/dist/components/app/product-card-catalog/styled.js +2 -3
- package/dist/components/app/product-card-catalog/styled.js.map +1 -1
- package/dist/components/avatar/styled.cjs +1 -1
- package/dist/components/avatar/styled.cjs.map +1 -1
- package/dist/components/avatar/styled.d.ts +4 -7
- package/dist/components/avatar/styled.js +2 -3
- package/dist/components/avatar/styled.js.map +1 -1
- package/dist/components/box/Box.cjs +1 -1
- package/dist/components/box/Box.cjs.map +1 -1
- package/dist/components/box/Box.d.ts +1 -1
- package/dist/components/box/Box.js +3 -4
- package/dist/components/box/Box.js.map +1 -1
- package/dist/components/breadcrumb/Breadcrumb.cjs.map +1 -1
- package/dist/components/breadcrumb/Breadcrumb.js +1 -2
- package/dist/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/button/Button.cjs.map +1 -1
- package/dist/components/button/Button.js +1 -2
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/button-filter/ButtonFilter.cjs.map +1 -1
- package/dist/components/button-filter/ButtonFilter.d.ts +4 -5
- package/dist/components/button-filter/ButtonFilter.js +1 -2
- package/dist/components/button-filter/ButtonFilter.js.map +1 -1
- package/dist/components/chat/Chat.cjs +1 -1
- package/dist/components/chat/Chat.cjs.map +1 -1
- package/dist/components/chat/Chat.d.ts +4 -8
- package/dist/components/chat/Chat.js +2 -3
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/ChatDocumentMessage.cjs +1 -1
- package/dist/components/chat/ChatDocumentMessage.cjs.map +1 -1
- package/dist/components/chat/ChatDocumentMessage.js +3 -4
- package/dist/components/chat/ChatDocumentMessage.js.map +1 -1
- package/dist/components/chat/ChatMessage.cjs.map +1 -1
- package/dist/components/chat/ChatMessage.d.ts +4 -7
- package/dist/components/chat/ChatMessage.js +1 -2
- package/dist/components/chat/ChatMessage.js.map +1 -1
- package/dist/components/chat/ChatProfileAvatar.cjs.map +1 -1
- package/dist/components/chat/ChatProfileAvatar.js +1 -2
- package/dist/components/chat/ChatProfileAvatar.js.map +1 -1
- package/dist/components/chat/ChatScoreBreakdown.cjs.map +1 -1
- package/dist/components/chat/ChatScoreBreakdown.d.ts +1 -1
- package/dist/components/chat/ChatScoreBreakdown.js +1 -2
- package/dist/components/chat/ChatScoreBreakdown.js.map +1 -1
- package/dist/components/chat/ChatTextInput.cjs.map +1 -1
- package/dist/components/chat/ChatTextInput.js +1 -2
- package/dist/components/chat/ChatTextInput.js.map +1 -1
- package/dist/components/checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/checkbox/Checkbox.js +1 -2
- package/dist/components/checkbox/Checkbox.js.map +1 -1
- package/dist/components/checkbox-card/CheckboxCard.cjs.map +1 -1
- package/dist/components/checkbox-card/CheckboxCard.js +1 -2
- package/dist/components/checkbox-card/CheckboxCard.js.map +1 -1
- package/dist/components/checkbox-card/namespace.cjs +1 -1
- package/dist/components/checkbox-card/namespace.cjs.map +1 -1
- package/dist/components/checkbox-card/namespace.js +2 -3
- package/dist/components/checkbox-card/namespace.js.map +1 -1
- package/dist/components/chip/Chip.cjs.map +1 -1
- package/dist/components/chip/Chip.d.ts +1 -1
- package/dist/components/chip/Chip.js +1 -2
- package/dist/components/chip/Chip.js.map +1 -1
- package/dist/components/collapsible/styled.cjs +1 -1
- package/dist/components/collapsible/styled.cjs.map +1 -1
- package/dist/components/collapsible/styled.d.ts +1 -1
- package/dist/components/collapsible/styled.js +2 -3
- package/dist/components/collapsible/styled.js.map +1 -1
- package/dist/components/combobox/Combobox.cjs +1 -1
- package/dist/components/combobox/Combobox.cjs.map +1 -1
- package/dist/components/combobox/Combobox.d.ts +1 -1
- package/dist/components/combobox/Combobox.js +6 -5
- package/dist/components/combobox/Combobox.js.map +1 -1
- package/dist/components/date-picker/DatePicker.cjs.map +1 -1
- package/dist/components/date-picker/DatePicker.js +1 -2
- package/dist/components/date-picker/DatePicker.js.map +1 -1
- package/dist/components/dialog/styled.cjs +1 -1
- package/dist/components/dialog/styled.cjs.map +1 -1
- package/dist/components/dialog/styled.d.ts +2 -2
- package/dist/components/dialog/styled.js +2 -3
- package/dist/components/dialog/styled.js.map +1 -1
- package/dist/components/drawer/Drawer.cjs.map +1 -1
- package/dist/components/drawer/Drawer.d.ts +2 -2
- package/dist/components/drawer/Drawer.js +1 -2
- package/dist/components/drawer/Drawer.js.map +1 -1
- package/dist/components/flag/styled.cjs.map +1 -1
- package/dist/components/flag/styled.d.ts +209 -211
- package/dist/components/flag/styled.js +1 -2
- package/dist/components/flag/styled.js.map +1 -1
- package/dist/components/form/FormControl.cjs +1 -1
- package/dist/components/form/FormControl.cjs.map +1 -1
- package/dist/components/form/FormControl.js +11 -7
- package/dist/components/form/FormControl.js.map +1 -1
- package/dist/components/form/FormHelperText.cjs.map +1 -1
- package/dist/components/form/FormHelperText.js +1 -2
- package/dist/components/form/FormHelperText.js.map +1 -1
- package/dist/components/form/FormLabel.cjs.map +1 -1
- package/dist/components/form/FormLabel.js +1 -2
- package/dist/components/form/FormLabel.js.map +1 -1
- package/dist/components/heading/Heading.cjs +1 -1
- package/dist/components/heading/Heading.cjs.map +1 -1
- package/dist/components/heading/Heading.d.ts +1 -1
- package/dist/components/heading/Heading.js +3 -4
- package/dist/components/heading/Heading.js.map +1 -1
- package/dist/components/icon/Icon.cjs.map +1 -1
- package/dist/components/icon/Icon.js +1 -2
- package/dist/components/icon/Icon.js.map +1 -1
- package/dist/components/icon-button/IconButton.cjs.map +1 -1
- package/dist/components/icon-button/IconButton.js +1 -2
- package/dist/components/icon-button/IconButton.js.map +1 -1
- package/dist/components/illustration/Illustration.cjs.map +1 -1
- package/dist/components/illustration/Illustration.js +1 -2
- package/dist/components/illustration/Illustration.js.map +1 -1
- package/dist/components/illustration/patterns.cjs.map +1 -1
- package/dist/components/illustration/patterns.js +1 -2
- package/dist/components/illustration/patterns.js.map +1 -1
- package/dist/components/input/HighlightedInput.cjs.map +1 -1
- package/dist/components/input/HighlightedInput.d.ts +1 -1
- package/dist/components/input/HighlightedInput.js +1 -2
- package/dist/components/input/HighlightedInput.js.map +1 -1
- package/dist/components/input/Input.cjs.map +1 -1
- package/dist/components/input/Input.js +1 -2
- package/dist/components/input/Input.js.map +1 -1
- package/dist/components/input/InputAddon.cjs.map +1 -1
- package/dist/components/input/InputAddon.d.ts +4 -5
- package/dist/components/input/InputAddon.js +1 -2
- package/dist/components/input/InputAddon.js.map +1 -1
- package/dist/components/input/InputGroup.cjs.map +1 -1
- package/dist/components/input/InputGroup.js +1 -2
- package/dist/components/input/InputGroup.js.map +1 -1
- package/dist/components/input/PhoneNumberInput.cjs.map +1 -1
- package/dist/components/input/PhoneNumberInput.js +1 -2
- package/dist/components/input/PhoneNumberInput.js.map +1 -1
- package/dist/components/menu/Menu.cjs +1 -1
- package/dist/components/menu/Menu.cjs.map +1 -1
- package/dist/components/menu/Menu.d.ts +2 -2
- package/dist/components/menu/Menu.js +2 -3
- package/dist/components/menu/Menu.js.map +1 -1
- package/dist/components/origin-select/OriginSelect.cjs.map +1 -1
- package/dist/components/origin-select/OriginSelect.d.ts +1 -1
- package/dist/components/origin-select/OriginSelect.js +1 -2
- package/dist/components/origin-select/OriginSelect.js.map +1 -1
- package/dist/components/pagination/Pagination.cjs.map +1 -1
- package/dist/components/pagination/Pagination.d.ts +1 -1
- package/dist/components/pagination/Pagination.js +1 -2
- package/dist/components/pagination/Pagination.js.map +1 -1
- package/dist/components/pagination/use-pagination.cjs.map +1 -1
- package/dist/components/pagination/use-pagination.js +1 -2
- package/dist/components/pagination/use-pagination.js.map +1 -1
- package/dist/components/popover/Popover.cjs.map +1 -1
- package/dist/components/popover/Popover.d.ts +2 -2
- package/dist/components/popover/Popover.js +1 -2
- package/dist/components/popover/Popover.js.map +1 -1
- package/dist/components/radio-button-group/RadioButtonGroup.cjs.map +1 -1
- package/dist/components/radio-button-group/RadioButtonGroup.d.ts +1 -1
- package/dist/components/radio-button-group/RadioButtonGroup.js +1 -2
- package/dist/components/radio-button-group/RadioButtonGroup.js.map +1 -1
- package/dist/components/radio-card-group/RadioCardGroup.cjs.map +1 -1
- package/dist/components/radio-card-group/RadioCardGroup.d.ts +1 -1
- package/dist/components/radio-card-group/RadioCardGroup.js +1 -2
- package/dist/components/radio-card-group/RadioCardGroup.js.map +1 -1
- package/dist/components/radio-card-group/namespace.cjs +1 -1
- package/dist/components/radio-card-group/namespace.cjs.map +1 -1
- package/dist/components/radio-card-group/namespace.js +2 -3
- package/dist/components/radio-card-group/namespace.js.map +1 -1
- package/dist/components/radio-group/RadioGroup.cjs.map +1 -1
- package/dist/components/radio-group/RadioGroup.d.ts +1 -1
- package/dist/components/radio-group/RadioGroup.js +1 -2
- package/dist/components/radio-group/RadioGroup.js.map +1 -1
- package/dist/components/select/Select.cjs +1 -1
- package/dist/components/select/Select.cjs.map +1 -1
- package/dist/components/select/Select.d.ts +1 -1
- package/dist/components/select/Select.js +2 -7
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/select-language/SelectLanguage.cjs +1 -1
- package/dist/components/select-language/SelectLanguage.cjs.map +1 -1
- package/dist/components/select-language/SelectLanguage.js +45 -43
- package/dist/components/select-language/SelectLanguage.js.map +1 -1
- package/dist/components/status-tag-select/StatusTagSelect.cjs +1 -1
- package/dist/components/status-tag-select/StatusTagSelect.cjs.map +1 -1
- package/dist/components/status-tag-select/StatusTagSelect.js +30 -31
- package/dist/components/status-tag-select/StatusTagSelect.js.map +1 -1
- package/dist/components/steps/Steps.cjs.map +1 -1
- package/dist/components/steps/Steps.d.ts +1 -1
- package/dist/components/steps/Steps.js +1 -2
- package/dist/components/steps/Steps.js.map +1 -1
- package/dist/components/supplier-rating-badge/SupplierRatingBadge.cjs.map +1 -1
- package/dist/components/supplier-rating-badge/SupplierRatingBadge.d.ts +1 -1
- package/dist/components/supplier-rating-badge/SupplierRatingBadge.js +1 -2
- package/dist/components/supplier-rating-badge/SupplierRatingBadge.js.map +1 -1
- package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.cjs +1 -1
- package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.cjs.map +1 -1
- package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.d.ts +1 -1
- package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.js +53 -54
- package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.js.map +1 -1
- package/dist/components/supplier-rating-badge/labels.cjs.map +1 -1
- package/dist/components/supplier-rating-badge/labels.js +1 -2
- package/dist/components/supplier-rating-badge/labels.js.map +1 -1
- package/dist/components/switch/Switch.cjs.map +1 -1
- package/dist/components/switch/Switch.js +1 -2
- package/dist/components/switch/Switch.js.map +1 -1
- package/dist/components/switch-card/SwitchCard.cjs.map +1 -1
- package/dist/components/switch-card/SwitchCard.d.ts +2 -1
- package/dist/components/switch-card/SwitchCard.js +1 -2
- package/dist/components/switch-card/SwitchCard.js.map +1 -1
- package/dist/components/switch-card/namespace.cjs +1 -1
- package/dist/components/switch-card/namespace.cjs.map +1 -1
- package/dist/components/switch-card/namespace.js +2 -3
- package/dist/components/switch-card/namespace.js.map +1 -1
- package/dist/components/table/Table.cjs +1 -1
- package/dist/components/table/Table.cjs.map +1 -1
- package/dist/components/table/Table.js +3 -4
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/TableProvider.cjs.map +1 -1
- package/dist/components/table/TableProvider.js +1 -2
- package/dist/components/table/TableProvider.js.map +1 -1
- package/dist/components/tabs/Tabs.cjs.map +1 -1
- package/dist/components/tabs/Tabs.d.ts +4 -7
- package/dist/components/tabs/Tabs.js +1 -2
- package/dist/components/tabs/Tabs.js.map +1 -1
- package/dist/components/tag/Tag.cjs.map +1 -1
- package/dist/components/tag/Tag.js +1 -2
- package/dist/components/tag/Tag.js.map +1 -1
- package/dist/components/text/Text.cjs +1 -1
- package/dist/components/text/Text.cjs.map +1 -1
- package/dist/components/text/Text.d.ts +1 -1
- package/dist/components/text/Text.js +3 -4
- package/dist/components/text/Text.js.map +1 -1
- package/dist/components/textarea/Textarea.cjs.map +1 -1
- package/dist/components/textarea/Textarea.d.ts +4 -5
- package/dist/components/textarea/Textarea.js +1 -2
- package/dist/components/textarea/Textarea.js.map +1 -1
- package/dist/components/tooltip/Tooltip.cjs.map +1 -1
- package/dist/components/tooltip/Tooltip.d.ts +2 -2
- package/dist/components/tooltip/Tooltip.js +1 -2
- package/dist/components/tooltip/Tooltip.js.map +1 -1
- package/dist/components/ui-labels/UiLabelsProvider.cjs.map +1 -1
- package/dist/components/ui-labels/UiLabelsProvider.js +1 -2
- package/dist/components/ui-labels/UiLabelsProvider.js.map +1 -1
- package/dist/icons/index.cjs.map +1 -1
- package/dist/icons/index.js +1 -2
- package/dist/icons/index.js.map +1 -1
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs.map +1 -0
- package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js +4 -5
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js.map +1 -0
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs.map +1 -0
- package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js +4 -5
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js.map +1 -0
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs.map +1 -0
- package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js +4 -5
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js.map +1 -0
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/CheckCircleIcon.cjs.map +1 -0
- package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/CheckCircleIcon.js +4 -5
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/CheckCircleIcon.js.map +1 -0
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs.map +1 -0
- package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js +4 -5
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js.map +1 -0
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/XCircleIcon.cjs.map +1 -0
- package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/XCircleIcon.js +4 -5
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/XCircleIcon.js.map +1 -0
- package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.cjs +1 -1
- package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.cjs.map +1 -1
- package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js +2 -3
- package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js.map +1 -1
- package/dist/preset.cjs +1 -1
- package/dist/preset.cjs.map +1 -1
- package/dist/preset.js +7 -6
- package/dist/preset.js.map +1 -1
- package/dist/shared/ConditionalWrapper.cjs.map +1 -1
- package/dist/shared/ConditionalWrapper.js +1 -2
- package/dist/shared/ConditionalWrapper.js.map +1 -1
- package/dist/shared/assets/icons.cjs.map +1 -1
- package/dist/shared/assets/icons.d.ts +2 -2
- package/dist/shared/assets/icons.js +1 -2
- package/dist/shared/assets/icons.js.map +1 -1
- package/dist/shared/hooks/useUncontrolled.cjs.map +1 -1
- package/dist/shared/hooks/useUncontrolled.js +1 -2
- package/dist/shared/hooks/useUncontrolled.js.map +1 -1
- package/dist/shared/utils/events.cjs.map +1 -1
- package/dist/shared/utils/events.js +1 -2
- package/dist/shared/utils/events.js.map +1 -1
- package/dist/theme/breakpoints.cjs.map +1 -1
- package/dist/theme/breakpoints.js +1 -2
- package/dist/theme/breakpoints.js.map +1 -1
- package/dist/theme/conditions.cjs.map +1 -1
- package/dist/theme/conditions.js +1 -2
- package/dist/theme/conditions.js.map +1 -1
- package/dist/theme/containers.cjs +1 -1
- package/dist/theme/containers.cjs.map +1 -1
- package/dist/theme/containers.d.ts +1 -1
- package/dist/theme/containers.js +2 -3
- package/dist/theme/containers.js.map +1 -1
- package/dist/theme/globalCss.cjs.map +1 -1
- package/dist/theme/globalCss.d.ts +1 -1
- package/dist/theme/globalCss.js +1 -2
- package/dist/theme/globalCss.js.map +1 -1
- package/dist/theme/keyframes.cjs.map +1 -1
- package/dist/theme/keyframes.d.ts +1 -1
- package/dist/theme/keyframes.js +1 -2
- package/dist/theme/keyframes.js.map +1 -1
- package/dist/theme/recipes/accordion.cjs.map +1 -1
- package/dist/theme/recipes/accordion.d.ts +32 -2
- package/dist/theme/recipes/accordion.js +1 -2
- package/dist/theme/recipes/accordion.js.map +1 -1
- package/dist/theme/recipes/action-card.cjs.map +1 -1
- package/dist/theme/recipes/action-card.d.ts +2 -2
- package/dist/theme/recipes/action-card.js +1 -2
- package/dist/theme/recipes/action-card.js.map +1 -1
- package/dist/theme/recipes/alert.cjs.map +1 -1
- package/dist/theme/recipes/alert.d.ts +30 -2
- package/dist/theme/recipes/alert.js +1 -2
- package/dist/theme/recipes/alert.js.map +1 -1
- package/dist/theme/recipes/app/mobile-navigation.cjs.map +1 -1
- package/dist/theme/recipes/app/mobile-navigation.d.ts +51 -2
- package/dist/theme/recipes/app/mobile-navigation.js +1 -2
- package/dist/theme/recipes/app/mobile-navigation.js.map +1 -1
- package/dist/theme/recipes/app/navigation-language-select.cjs +1 -1
- package/dist/theme/recipes/app/navigation-language-select.cjs.map +1 -1
- package/dist/theme/recipes/app/navigation-language-select.d.ts +105 -2
- package/dist/theme/recipes/app/navigation-language-select.js +31 -39
- package/dist/theme/recipes/app/navigation-language-select.js.map +1 -1
- package/dist/theme/recipes/app/navigation.cjs.map +1 -1
- package/dist/theme/recipes/app/navigation.d.ts +125 -2
- package/dist/theme/recipes/app/navigation.js +1 -2
- package/dist/theme/recipes/app/navigation.js.map +1 -1
- package/dist/theme/recipes/app/price-tag.cjs.map +1 -1
- package/dist/theme/recipes/app/price-tag.d.ts +41 -2
- package/dist/theme/recipes/app/price-tag.js +1 -2
- package/dist/theme/recipes/app/price-tag.js.map +1 -1
- package/dist/theme/recipes/app/product-card-catalog.cjs.map +1 -1
- package/dist/theme/recipes/app/product-card-catalog.d.ts +2 -2
- package/dist/theme/recipes/app/product-card-catalog.js +1 -2
- package/dist/theme/recipes/app/product-card-catalog.js.map +1 -1
- package/dist/theme/recipes/avatar-group.cjs.map +1 -1
- package/dist/theme/recipes/avatar-group.d.ts +14 -2
- package/dist/theme/recipes/avatar-group.js +1 -2
- package/dist/theme/recipes/avatar-group.js.map +1 -1
- package/dist/theme/recipes/avatar.cjs.map +1 -1
- package/dist/theme/recipes/avatar.d.ts +53 -2
- package/dist/theme/recipes/avatar.js +1 -2
- package/dist/theme/recipes/avatar.js.map +1 -1
- package/dist/theme/recipes/breadcrumb.cjs.map +1 -1
- package/dist/theme/recipes/breadcrumb.d.ts +2 -2
- package/dist/theme/recipes/breadcrumb.js +1 -2
- package/dist/theme/recipes/breadcrumb.js.map +1 -1
- package/dist/theme/recipes/button-filter.cjs.map +1 -1
- package/dist/theme/recipes/button-filter.d.ts +1 -1
- package/dist/theme/recipes/button-filter.js +1 -2
- package/dist/theme/recipes/button-filter.js.map +1 -1
- package/dist/theme/recipes/button.cjs.map +1 -1
- package/dist/theme/recipes/button.d.ts +93 -2
- package/dist/theme/recipes/button.js +1 -2
- package/dist/theme/recipes/button.js.map +1 -1
- package/dist/theme/recipes/chat/chat-document-message.cjs.map +1 -1
- package/dist/theme/recipes/chat/chat-document-message.d.ts +1 -1
- package/dist/theme/recipes/chat/chat-document-message.js +1 -2
- package/dist/theme/recipes/chat/chat-document-message.js.map +1 -1
- package/dist/theme/recipes/chat/chat-input-text.cjs.map +1 -1
- package/dist/theme/recipes/chat/chat-input-text.d.ts +1 -1
- package/dist/theme/recipes/chat/chat-input-text.js +1 -2
- package/dist/theme/recipes/chat/chat-input-text.js.map +1 -1
- package/dist/theme/recipes/chat/chat-message.cjs.map +1 -1
- package/dist/theme/recipes/chat/chat-message.d.ts +28 -2
- package/dist/theme/recipes/chat/chat-message.js +1 -2
- package/dist/theme/recipes/chat/chat-message.js.map +1 -1
- package/dist/theme/recipes/chat/chat-profile-avatar.cjs.map +1 -1
- package/dist/theme/recipes/chat/chat-profile-avatar.d.ts +9 -2
- package/dist/theme/recipes/chat/chat-profile-avatar.js +1 -2
- package/dist/theme/recipes/chat/chat-profile-avatar.js.map +1 -1
- package/dist/theme/recipes/chat/chat.cjs.map +1 -1
- package/dist/theme/recipes/chat/chat.d.ts +2 -2
- package/dist/theme/recipes/chat/chat.js +1 -2
- package/dist/theme/recipes/chat/chat.js.map +1 -1
- package/dist/theme/recipes/checkbox-card.cjs.map +1 -1
- package/dist/theme/recipes/checkbox-card.d.ts +1 -1
- package/dist/theme/recipes/checkbox-card.js +1 -2
- package/dist/theme/recipes/checkbox-card.js.map +1 -1
- package/dist/theme/recipes/checkbox-group.cjs.map +1 -1
- package/dist/theme/recipes/checkbox-group.d.ts +1 -1
- package/dist/theme/recipes/checkbox-group.js +1 -2
- package/dist/theme/recipes/checkbox-group.js.map +1 -1
- package/dist/theme/recipes/checkbox.cjs +1 -1
- package/dist/theme/recipes/checkbox.cjs.map +1 -1
- package/dist/theme/recipes/checkbox.d.ts +26 -2
- package/dist/theme/recipes/checkbox.js +7 -8
- package/dist/theme/recipes/checkbox.js.map +1 -1
- package/dist/theme/recipes/chip.cjs.map +1 -1
- package/dist/theme/recipes/chip.d.ts +148 -2
- package/dist/theme/recipes/chip.js +1 -2
- package/dist/theme/recipes/chip.js.map +1 -1
- package/dist/theme/recipes/collapsible.cjs.map +1 -1
- package/dist/theme/recipes/collapsible.d.ts +2 -2
- package/dist/theme/recipes/collapsible.js +1 -2
- package/dist/theme/recipes/collapsible.js.map +1 -1
- package/dist/theme/recipes/combobox.cjs +1 -1
- package/dist/theme/recipes/combobox.cjs.map +1 -1
- package/dist/theme/recipes/combobox.d.ts +33 -2
- package/dist/theme/recipes/combobox.js +6 -6
- package/dist/theme/recipes/combobox.js.map +1 -1
- package/dist/theme/recipes/common/group-card.cjs.map +1 -1
- package/dist/theme/recipes/common/group-card.d.ts +1 -1
- package/dist/theme/recipes/common/group-card.js +1 -2
- package/dist/theme/recipes/common/group-card.js.map +1 -1
- package/dist/theme/recipes/datepicker.cjs +1 -1
- package/dist/theme/recipes/datepicker.cjs.map +1 -1
- package/dist/theme/recipes/datepicker.d.ts +2 -2
- package/dist/theme/recipes/datepicker.js +6 -7
- package/dist/theme/recipes/datepicker.js.map +1 -1
- package/dist/theme/recipes/dialog.cjs.map +1 -1
- package/dist/theme/recipes/dialog.d.ts +2 -2
- package/dist/theme/recipes/dialog.js +1 -2
- package/dist/theme/recipes/dialog.js.map +1 -1
- package/dist/theme/recipes/drawer.cjs.map +1 -1
- package/dist/theme/recipes/drawer.d.ts +31 -2
- package/dist/theme/recipes/drawer.js +4 -4
- package/dist/theme/recipes/drawer.js.map +1 -1
- package/dist/theme/recipes/flag.cjs.map +1 -1
- package/dist/theme/recipes/flag.d.ts +15 -2
- package/dist/theme/recipes/flag.js +1 -2
- package/dist/theme/recipes/flag.js.map +1 -1
- package/dist/theme/recipes/form/control.cjs.map +1 -1
- package/dist/theme/recipes/form/control.d.ts +1 -1
- package/dist/theme/recipes/form/control.js +1 -2
- package/dist/theme/recipes/form/control.js.map +1 -1
- package/dist/theme/recipes/form/helper-text.cjs.map +1 -1
- package/dist/theme/recipes/form/helper-text.d.ts +1 -1
- package/dist/theme/recipes/form/helper-text.js +1 -2
- package/dist/theme/recipes/form/helper-text.js.map +1 -1
- package/dist/theme/recipes/form/label.cjs.map +1 -1
- package/dist/theme/recipes/form/label.d.ts +15 -2
- package/dist/theme/recipes/form/label.js +1 -2
- package/dist/theme/recipes/form/label.js.map +1 -1
- package/dist/theme/recipes/heading.cjs.map +1 -1
- package/dist/theme/recipes/heading.d.ts +33 -2
- package/dist/theme/recipes/heading.js +1 -2
- package/dist/theme/recipes/heading.js.map +1 -1
- package/dist/theme/recipes/highlightedInput.cjs.map +1 -1
- package/dist/theme/recipes/highlightedInput.d.ts +2 -2
- package/dist/theme/recipes/highlightedInput.js +1 -2
- package/dist/theme/recipes/highlightedInput.js.map +1 -1
- package/dist/theme/recipes/icon-button.cjs.map +1 -1
- package/dist/theme/recipes/icon-button.d.ts +1 -1
- package/dist/theme/recipes/icon-button.js +0 -1
- package/dist/theme/recipes/icon-button.js.map +1 -1
- package/dist/theme/recipes/icon.cjs.map +1 -1
- package/dist/theme/recipes/icon.d.ts +25 -2
- package/dist/theme/recipes/icon.js +1 -2
- package/dist/theme/recipes/icon.js.map +1 -1
- package/dist/theme/recipes/illustration.cjs.map +1 -1
- package/dist/theme/recipes/illustration.d.ts +29 -2
- package/dist/theme/recipes/illustration.js +1 -2
- package/dist/theme/recipes/illustration.js.map +1 -1
- package/dist/theme/recipes/index.cjs +1 -1
- package/dist/theme/recipes/index.cjs.map +1 -1
- package/dist/theme/recipes/index.d.ts +1464 -49
- package/dist/theme/recipes/index.js +3 -4
- package/dist/theme/recipes/index.js.map +1 -1
- package/dist/theme/recipes/input-addon.cjs.map +1 -1
- package/dist/theme/recipes/input-addon.d.ts +1 -1
- package/dist/theme/recipes/input-addon.js +1 -2
- package/dist/theme/recipes/input-addon.js.map +1 -1
- package/dist/theme/recipes/input-group.cjs.map +1 -1
- package/dist/theme/recipes/input-group.d.ts +1 -1
- package/dist/theme/recipes/input-group.js +1 -2
- package/dist/theme/recipes/input-group.js.map +1 -1
- package/dist/theme/recipes/input.cjs +1 -1
- package/dist/theme/recipes/input.cjs.map +1 -1
- package/dist/theme/recipes/input.d.ts +9 -2
- package/dist/theme/recipes/input.js +5 -6
- package/dist/theme/recipes/input.js.map +1 -1
- package/dist/theme/recipes/menu.cjs.map +1 -1
- package/dist/theme/recipes/menu.d.ts +20 -2
- package/dist/theme/recipes/menu.js +1 -2
- package/dist/theme/recipes/menu.js.map +1 -1
- package/dist/theme/recipes/pagination.cjs +1 -1
- package/dist/theme/recipes/pagination.cjs.map +1 -1
- package/dist/theme/recipes/pagination.d.ts +2 -2
- package/dist/theme/recipes/pagination.js +3 -4
- package/dist/theme/recipes/pagination.js.map +1 -1
- package/dist/theme/recipes/phone-number-input.cjs.map +1 -1
- package/dist/theme/recipes/phone-number-input.d.ts +9 -2
- package/dist/theme/recipes/phone-number-input.js +1 -2
- package/dist/theme/recipes/phone-number-input.js.map +1 -1
- package/dist/theme/recipes/popover.cjs.map +1 -1
- package/dist/theme/recipes/popover.d.ts +2 -2
- package/dist/theme/recipes/popover.js +1 -2
- package/dist/theme/recipes/popover.js.map +1 -1
- package/dist/theme/recipes/radio-button-group.cjs.map +1 -1
- package/dist/theme/recipes/radio-button-group.d.ts +25 -2
- package/dist/theme/recipes/radio-button-group.js +1 -2
- package/dist/theme/recipes/radio-button-group.js.map +1 -1
- package/dist/theme/recipes/radio-card-group.cjs.map +1 -1
- package/dist/theme/recipes/radio-card-group.d.ts +36 -2
- package/dist/theme/recipes/radio-card-group.js +1 -2
- package/dist/theme/recipes/radio-card-group.js.map +1 -1
- package/dist/theme/recipes/radio-group.cjs.map +1 -1
- package/dist/theme/recipes/radio-group.d.ts +27 -2
- package/dist/theme/recipes/radio-group.js +1 -2
- package/dist/theme/recipes/radio-group.js.map +1 -1
- package/dist/theme/recipes/select-language.cjs.map +1 -1
- package/dist/theme/recipes/select-language.d.ts +15 -2
- package/dist/theme/recipes/select-language.js +1 -2
- package/dist/theme/recipes/select-language.js.map +1 -1
- package/dist/theme/recipes/select.cjs +1 -1
- package/dist/theme/recipes/select.cjs.map +1 -1
- package/dist/theme/recipes/select.d.ts +30 -2
- package/dist/theme/recipes/select.js +3 -18
- package/dist/theme/recipes/select.js.map +1 -1
- package/dist/theme/recipes/status-tag-select.cjs.map +1 -1
- package/dist/theme/recipes/status-tag-select.d.ts +125 -2
- package/dist/theme/recipes/status-tag-select.js +1 -2
- package/dist/theme/recipes/status-tag-select.js.map +1 -1
- package/dist/theme/recipes/steps.cjs.map +1 -1
- package/dist/theme/recipes/steps.d.ts +2 -2
- package/dist/theme/recipes/steps.js +1 -2
- package/dist/theme/recipes/steps.js.map +1 -1
- package/dist/theme/recipes/switch-card.cjs.map +1 -1
- package/dist/theme/recipes/switch-card.d.ts +1 -1
- package/dist/theme/recipes/switch-card.js +1 -2
- package/dist/theme/recipes/switch-card.js.map +1 -1
- package/dist/theme/recipes/switch.cjs.map +1 -1
- package/dist/theme/recipes/switch.d.ts +22 -2
- package/dist/theme/recipes/switch.js +1 -2
- package/dist/theme/recipes/switch.js.map +1 -1
- package/dist/theme/recipes/table-container.cjs.map +1 -1
- package/dist/theme/recipes/table-container.d.ts +1 -1
- package/dist/theme/recipes/table-container.js +1 -2
- package/dist/theme/recipes/table-container.js.map +1 -1
- package/dist/theme/recipes/table-empty-row.cjs.map +1 -1
- package/dist/theme/recipes/table-empty-row.d.ts +1 -1
- package/dist/theme/recipes/table-empty-row.js +1 -2
- package/dist/theme/recipes/table-empty-row.js.map +1 -1
- package/dist/theme/recipes/table-group-title.cjs.map +1 -1
- package/dist/theme/recipes/table-group-title.d.ts +15 -2
- package/dist/theme/recipes/table-group-title.js +1 -2
- package/dist/theme/recipes/table-group-title.js.map +1 -1
- package/dist/theme/recipes/table.cjs.map +1 -1
- package/dist/theme/recipes/table.d.ts +2 -2
- package/dist/theme/recipes/table.js +1 -2
- package/dist/theme/recipes/table.js.map +1 -1
- package/dist/theme/recipes/tabs-chip.cjs.map +1 -1
- package/dist/theme/recipes/tabs-chip.d.ts +29 -2
- package/dist/theme/recipes/tabs-chip.js +1 -2
- package/dist/theme/recipes/tabs-chip.js.map +1 -1
- package/dist/theme/recipes/tabs.cjs.map +1 -1
- package/dist/theme/recipes/tabs.d.ts +49 -2
- package/dist/theme/recipes/tabs.js +1 -2
- package/dist/theme/recipes/tabs.js.map +1 -1
- package/dist/theme/recipes/tag.cjs.map +1 -1
- package/dist/theme/recipes/tag.d.ts +109 -2
- package/dist/theme/recipes/tag.js +1 -2
- package/dist/theme/recipes/tag.js.map +1 -1
- package/dist/theme/recipes/text.cjs.map +1 -1
- package/dist/theme/recipes/text.d.ts +29 -2
- package/dist/theme/recipes/text.js +1 -2
- package/dist/theme/recipes/text.js.map +1 -1
- package/dist/theme/recipes/textarea.cjs.map +1 -1
- package/dist/theme/recipes/textarea.d.ts +1 -1
- package/dist/theme/recipes/textarea.js +1 -2
- package/dist/theme/recipes/textarea.js.map +1 -1
- package/dist/theme/recipes/tooltip.cjs.map +1 -1
- package/dist/theme/recipes/tooltip.d.ts +2 -2
- package/dist/theme/recipes/tooltip.js +1 -2
- package/dist/theme/recipes/tooltip.js.map +1 -1
- package/dist/theme/semantic-tokens/colors.cjs.map +1 -1
- package/dist/theme/semantic-tokens/colors.js +1 -2
- package/dist/theme/semantic-tokens/colors.js.map +1 -1
- package/dist/theme/semantic-tokens/gradients.cjs.map +1 -1
- package/dist/theme/semantic-tokens/gradients.js +1 -2
- package/dist/theme/semantic-tokens/gradients.js.map +1 -1
- package/dist/theme/semantic-tokens/index.cjs.map +1 -1
- package/dist/theme/semantic-tokens/index.js +1 -2
- package/dist/theme/semantic-tokens/index.js.map +1 -1
- package/dist/theme/text-styles.cjs.map +1 -1
- package/dist/theme/text-styles.d.ts +1 -1
- package/dist/theme/text-styles.js +1 -2
- package/dist/theme/text-styles.js.map +1 -1
- package/dist/theme/tokens/animations.cjs.map +1 -1
- package/dist/theme/tokens/animations.js +1 -2
- package/dist/theme/tokens/animations.js.map +1 -1
- package/dist/theme/tokens/aspect-ratios.cjs.map +1 -1
- package/dist/theme/tokens/aspect-ratios.js +1 -2
- package/dist/theme/tokens/aspect-ratios.js.map +1 -1
- package/dist/theme/tokens/blurs.cjs.map +1 -1
- package/dist/theme/tokens/blurs.js +1 -2
- package/dist/theme/tokens/blurs.js.map +1 -1
- package/dist/theme/tokens/borders.cjs.map +1 -1
- package/dist/theme/tokens/borders.js +1 -2
- package/dist/theme/tokens/borders.js.map +1 -1
- package/dist/theme/tokens/colors.cjs.map +1 -1
- package/dist/theme/tokens/colors.js +1 -2
- package/dist/theme/tokens/colors.js.map +1 -1
- package/dist/theme/tokens/durations.cjs.map +1 -1
- package/dist/theme/tokens/durations.js +1 -2
- package/dist/theme/tokens/durations.js.map +1 -1
- package/dist/theme/tokens/easings.cjs.map +1 -1
- package/dist/theme/tokens/easings.js +1 -2
- package/dist/theme/tokens/easings.js.map +1 -1
- package/dist/theme/tokens/index.cjs.map +1 -1
- package/dist/theme/tokens/index.js +1 -2
- package/dist/theme/tokens/index.js.map +1 -1
- package/dist/theme/tokens/radii.cjs.map +1 -1
- package/dist/theme/tokens/radii.js +1 -2
- package/dist/theme/tokens/radii.js.map +1 -1
- package/dist/theme/tokens/shadows.cjs.map +1 -1
- package/dist/theme/tokens/shadows.js +1 -2
- package/dist/theme/tokens/shadows.js.map +1 -1
- package/dist/theme/tokens/sizes.cjs.map +1 -1
- package/dist/theme/tokens/sizes.js +1 -2
- package/dist/theme/tokens/sizes.js.map +1 -1
- package/dist/theme/tokens/spacing.cjs.map +1 -1
- package/dist/theme/tokens/spacing.js +1 -2
- package/dist/theme/tokens/spacing.js.map +1 -1
- package/dist/theme/tokens/typography.cjs.map +1 -1
- package/dist/theme/tokens/typography.js +1 -2
- package/dist/theme/tokens/typography.js.map +1 -1
- package/dist/theme/tokens/z-index.cjs.map +1 -1
- package/dist/theme/tokens/z-index.js +1 -2
- package/dist/theme/tokens/z-index.js.map +1 -1
- package/dist/theme/utilities.cjs.map +1 -1
- package/dist/theme/utilities.js +0 -1
- package/dist/theme/utilities.js.map +1 -1
- package/dist/ui.css +1 -1
- package/dist/utils/slots.cjs +1 -1
- package/dist/utils/slots.cjs.map +1 -1
- package/dist/utils/slots.js +3 -4
- package/dist/utils/slots.js.map +1 -1
- package/package.json +9 -9
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs.map +0 -1
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js.map +0 -1
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs.map +0 -1
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js.map +0 -1
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs.map +0 -1
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js.map +0 -1
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/CheckCircleIcon.cjs.map +0 -1
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/CheckCircleIcon.js.map +0 -1
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs.map +0 -1
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js.map +0 -1
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/XCircleIcon.cjs.map +0 -1
- package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/XCircleIcon.js.map +0 -1
- /package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/CheckCircleIcon.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/XCircleIcon.cjs +0 -0
|
@@ -1 +1 @@
|
|
|
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,
|
|
1
|
+
{"version":3,"file":"HighlightedInput.cjs","names":["createStyleContext","highlightedInput","styled","Input","useState","useRef","require_slots","require_Input","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","Root","withProvider","InputSlot","withContext","Renderer","Highlight","HighlightedInput","controlledValue","inputProps","isControlled","uncontrolledValue","setUncontrolledValue","defaultValue","value","textBlockRef","scrollValue","setScrollValue","handleScroll","onScroll","combinedRegex","patterns","p","renderHighlightedText","nodes","lastIndex","match","start","end","matchedPattern","onChange"],"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":"A,yNAMA,GAAM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,iBAAkB,CACzE,SAAU,EACZ,CAAC,EAEYW,EAAOC,GAAA,EAAaX,EAAAA,OAAAA,CAAO,KAAK,EAAG,MAAM,EACzCY,EAAYC,EAAYZ,EAAAA,MAAO,OAAO,EACtCa,EAAWD,GAAA,EAAYb,EAAAA,OAAAA,CAAO,GAAG,EAAG,UAAU,EAC9Ce,EAAYF,GAAA,EAAYb,EAAAA,OAAAA,CAAO,MAAM,EAAG,WAAW,EAcnDgB,GAA+C,CAC1D,WACA,MAAOC,EACP,eACA,WACA,WACA,GAAGC,KACC,CACJ,IAAMC,EAAeF,IAAoB,IAAA,GAEnC,CAACG,EAAmBC,IAAA,EAAwBnB,EAAAA,SAAAA,CAASoB,GAAc,SAAS,GAAK,EAAE,EAEnFC,EAAQJ,EAAe,OAAOF,CAAe,EAAIG,EAEjDI,GAAA,EAAerB,EAAAA,OAAAA,CAAoC,IAAI,EACvD,CAACsB,EAAaC,IAAA,EAAkBxB,EAAAA,SAAAA,CAAS,CAAC,EAE1CyB,EAAgB,GAAiD,CACrED,EAAe,EAAE,cAAc,UAAU,EACzCE,IAAW,CAAoC,CACjD,GAEA,EAAApB,EAAA,UAAA,KAAgB,CACVgB,EAAa,UACf,EAAa,QAAQ,WAAaC,EAEtC,EAAG,CAACA,CAAW,CAAC,EAEhB,IAAMI,EAAgB,IAAI,OAAOC,EAAS,IAAK,GAAwBC,EAAE,MAAM,MAAM,CAAC,CAAC,KAAK,GAAG,EAAG,IAAI,EAEhGC,MAA8B,CAClC,IAAMC,EAAqB,CAAC,EACxBC,EAAY,EAEhB,IAAK,IAAMC,KAASZ,EAAM,SAASM,CAAa,EAAG,CACjD,IAAMO,EAAQD,EAAM,OAAS,EACvBE,EAAMD,EAAQD,EAAM,EAAE,CAAC,OAEzBC,EAAQF,GACVD,EAAM,MAAK,EAAAxB,EAAA,IAAA,CAAC,OAAD,CAAA,SAAiCc,EAAM,MAAMW,EAAWE,CAAK,CAAQ,EAA1D,QAAQF,GAAkD,CAAC,EAGnF,IAAMI,EAAiBR,EAAS,KAAM,GAAwBC,EAAE,MAAM,KAAKI,EAAM,EAAE,CAAC,EACpFL,EAAS,QAAS,GAAyB,EAAE,MAAM,UAAY,CAAE,EAEjEG,EAAM,KACJK,GACE,EAAA7B,EAAA,IAAA,CAACM,EAAD,CAAsC,MAAO,CAAE,MAAOuB,EAAe,OAAS,eAAgB,EAC3F,SAAAH,EAAM,EACE,EAFK,aAAaC,GAElB,GAEX,EAAA3B,EAAA,IAAA,CAAC,OAAD,CAAA,SAA6B0B,EAAM,EAAS,EAAjC,QAAQC,GAAyB,CAEhD,EAEA,EAAYC,CACd,CAMA,OAJIH,EAAYX,EAAM,QACpBU,EAAM,MAAK,EAAAxB,EAAA,IAAA,CAAC,OAAD,CAAA,SAAiCc,EAAM,MAAMW,CAAS,CAAQ,EAAnD,QAAQA,GAA2C,CAAC,EAGrED,CACT,EAEA,OACE,EAAAxB,EAAA,KAAA,CAACC,EAAD,CAAA,SAAA,EACE,EAAAD,EAAA,IAAA,CAACG,EAAD,CACE,GAAIM,EACG,QACP,aAAc,IAAA,GACd,SAAUS,EACV,SAAW,GAA2C,CAC/CR,GACHE,EAAqB,EAAE,OAAO,KAAK,EAErCkB,IAAW,CAAC,CACd,CACD,CAAA,GAED,EAAA9B,EAAA,IAAA,CAACK,EAAD,CAAU,IAAKU,EAAe,SAAAQ,EAAsB,CAAY,CAAA,CAC5D,CAAA,CAAA,CAEV,E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, FC } from 'react';
|
|
2
2
|
import { ComponentVariants } from '../../utils/slots';
|
|
3
|
-
import { StyledComponent } from '@stokelp/styled-system/
|
|
3
|
+
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
4
4
|
import { HighlightedInputRecipe, InputVariantProps } from '@stokelp/styled-system/recipes';
|
|
5
5
|
export declare const Root: ComponentVariants<StyledComponent<string, {}>, HighlightedInputRecipe>;
|
|
6
6
|
export declare const InputSlot: StyledComponent<"input", InputVariantProps>;
|
|
@@ -5,7 +5,7 @@ import { styled as n } from "@stokelp/styled-system/jsx";
|
|
|
5
5
|
import { highlightedInput as r } from "@stokelp/styled-system/recipes";
|
|
6
6
|
import { useEffect as i, useRef as a, useState as o } from "react";
|
|
7
7
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/input/HighlightedInput.tsx
|
|
9
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
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
11
|
x(e.currentTarget.scrollLeft), l?.(e);
|
|
@@ -39,7 +39,6 @@ var { withProvider: l, withContext: u } = e(r, { dataAttr: !0 }), d = l(n("div")
|
|
|
39
39
|
children: w()
|
|
40
40
|
})] });
|
|
41
41
|
};
|
|
42
|
-
//#endregion
|
|
43
42
|
export { m as Highlight, h as HighlightedInput, f as InputSlot, p as Renderer, d as Root };
|
|
44
43
|
|
|
45
44
|
//# sourceMappingURL=HighlightedInput.js.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
1
|
+
{"version":3,"file":"HighlightedInput.js","names":["createStyleContext","highlightedInput","Root","withProvider","styled","InputSlot","withContext","Input","Renderer","Highlight","HighlightedInput","controlledValue","inputProps","isControlled","uncontrolledValue","setUncontrolledValue","useState","defaultValue","value","textBlockRef","useRef","scrollValue","setScrollValue","handleScroll","onScroll","combinedRegex","patterns","p","renderHighlightedText","nodes","lastIndex","match","start","end","matchedPattern","onChange"],"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,mBAAgBA,EAAmBC,GAAkB,EACzE,UAAU,GACZ,CAAC,GAEYC,IAAOC,EAAaC,EAAO,KAAK,GAAG,MAAM,GACzCC,IAAYC,EAAYC,GAAO,OAAO,GACtCC,IAAWF,EAAYF,EAAO,GAAG,GAAG,UAAU,GAC9CK,IAAYH,EAAYF,EAAO,MAAM,GAAG,WAAW,GAcnDM,KAA+C,EAC1D,aACA,OAAOC,GACP,iBACA,aACA,aACA,GAAGC,QACC;CACJ,IAAMC,IAAeF,MAAoB,KAAA,GAEnC,CAACG,GAAmBC,KAAwBC,EAASC,GAAc,SAAS,KAAK,EAAE,GAEnFC,IAAQL,IAAe,OAAOF,CAAe,IAAIG,GAEjDK,IAAeC,EAAoC,IAAI,GACvD,CAACC,GAAaC,KAAkBN,EAAS,CAAC,GAE1CO,KAAgB,MAAiD;EAErE,AADAD,EAAe,EAAE,cAAc,UAAU,GACzCE,IAAW,CAAoC;CACjD;CAEA,QAAgB;EACd,AAAIL,EAAa,YACf,EAAa,QAAQ,aAAaE;CAEtC,GAAG,CAACA,CAAW,CAAC;CAEhB,IAAMI,IAAgB,IAAI,OAAOC,EAAS,KAAK,MAAwBC,EAAE,MAAM,MAAM,CAAC,CAAC,KAAK,GAAG,GAAG,IAAI,GAEhGC,UAA8B;EAClC,IAAMC,IAAqB,CAAC,GACxBC,IAAY;EAEhB,KAAK,IAAMC,KAASb,EAAM,SAASO,CAAa,GAAG;GACjD,IAAMO,IAAQD,EAAM,SAAS,GACvBE,IAAMD,IAAQD,EAAM,EAAE,CAAC;GAE7B,AAAIC,IAAQF,KACVD,EAAM,KAAK,kBAAC,QAAD,EAAA,UAAiCX,EAAM,MAAMY,GAAWE,CAAK,EAAQ,GAA1D,QAAQF,GAAkD,CAAC;GAGnF,IAAMI,IAAiBR,EAAS,MAAM,MAAwBC,EAAE,MAAM,KAAKI,EAAM,EAAE,CAAC;GAapF,AAZAL,EAAS,SAAS,MAAyB,EAAE,MAAM,YAAY,CAAE,GAEjEG,EAAM,KACJK,IACE,kBAACzB,GAAD;IAAsC,OAAO,EAAE,OAAOyB,EAAe,SAAS,gBAAgB;IAC3F,UAAAH,EAAM;GACE,GAFK,aAAaC,GAElB,IAEX,kBAAC,QAAD,EAAA,UAA6BD,EAAM,GAAS,GAAjC,QAAQC,GAAyB,CAEhD,GAEA,IAAYC;EACd;EAMA,OAJIH,IAAYZ,EAAM,UACpBW,EAAM,KAAK,kBAAC,QAAD,EAAA,UAAiCX,EAAM,MAAMY,CAAS,EAAQ,GAAnD,QAAQA,GAA2C,CAAC,GAGrED;CACT;CAEA,OACE,kBAAC3B,GAAD,EAAA,UAAA,CACE,kBAACG,GAAD;EACE,GAAIO;EACG;EACP,cAAc,KAAA;EACd,UAAUW;EACV,WAAW,MAA2C;GAIpD,AAHKV,KACHE,EAAqB,EAAE,OAAO,KAAK,GAErCoB,IAAW,CAAC;EACd;CACD,CAAA,GAED,kBAAC3B,GAAD;EAAU,KAAKW;EAAe,UAAAS,EAAsB;CAAY,CAAA,CAC5D,EAAA,CAAA;AAEV"}
|
|
@@ -1 +1 @@
|
|
|
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, type InputVariantProps } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\n\n// See FormControl.tsx for why we pin the literal tag with an `as` cast.\n// Without this, `Input` becomes `StyledComponent<string, …>` and loses every\n// native HTML input attribute (type, placeholder, value, ref, etc.) in the\n// emitted d.ts.\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}) as StyledComponent<'input', InputVariantProps>\n\nexport type InputProps = ComponentProps<typeof Input>\n"],"mappings":"qGAUA,
|
|
1
|
+
{"version":3,"file":"Input.cjs","names":["styled","input","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","Input","event"],"sources":["../../../src/components/input/Input.tsx"],"sourcesContent":["import type { ComponentProps, WheelEvent } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { input, type InputVariantProps } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\n\n// See FormControl.tsx for why we pin the literal tag with an `as` cast.\n// Without this, `Input` becomes `StyledComponent<string, …>` and loses every\n// native HTML input attribute (type, placeholder, value, ref, etc.) in the\n// emitted d.ts.\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}) as StyledComponent<'input', InputVariantProps>\n\nexport type InputProps = ComponentProps<typeof Input>\n"],"mappings":"A,qGAUA,IAAaI,GAAA,EAAQJ,EAAAA,OAAAA,CAAO,QAASC,EAAAA,MAAO,CAC1C,aAAc,CACZ,QAAU,GAAwC,CAC5CI,EAAM,cAAc,OAAS,UAC/BA,EAAM,cAAc,KAAK,CAE7B,CACF,EACA,SAAU,EACZ,CAAC,E"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { styled as e } from "@stokelp/styled-system/jsx";
|
|
3
3
|
import { input as t } from "@stokelp/styled-system/recipes";
|
|
4
|
-
|
|
4
|
+
// src/components/input/Input.tsx
|
|
5
5
|
var n = e("input", t, {
|
|
6
6
|
defaultProps: { onWheel: (e) => {
|
|
7
7
|
e.currentTarget.type === "number" && e.currentTarget.blur();
|
|
8
8
|
} },
|
|
9
9
|
dataAttr: !0
|
|
10
10
|
});
|
|
11
|
-
//#endregion
|
|
12
11
|
export { n as Input };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=Input.js.map
|
|
@@ -1 +1 @@
|
|
|
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, type InputVariantProps } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\n\n// See FormControl.tsx for why we pin the literal tag with an `as` cast.\n// Without this, `Input` becomes `StyledComponent<string, …>` and loses every\n// native HTML input attribute (type, placeholder, value, ref, etc.) in the\n// emitted d.ts.\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}) as StyledComponent<'input', InputVariantProps>\n\nexport type InputProps = ComponentProps<typeof Input>\n"],"mappings":";;;;AAUA,
|
|
1
|
+
{"version":3,"file":"Input.js","names":["Input","styled","input","event"],"sources":["../../../src/components/input/Input.tsx"],"sourcesContent":["import type { ComponentProps, WheelEvent } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { input, type InputVariantProps } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\n\n// See FormControl.tsx for why we pin the literal tag with an `as` cast.\n// Without this, `Input` becomes `StyledComponent<string, …>` and loses every\n// native HTML input attribute (type, placeholder, value, ref, etc.) in the\n// emitted d.ts.\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}) as StyledComponent<'input', InputVariantProps>\n\nexport type InputProps = ComponentProps<typeof Input>\n"],"mappings":";;;;AAUA,IAAaA,IAAQC,EAAO,SAASC,GAAO;CAC1C,cAAc,EACZ,UAAU,MAAwC;EAChD,AAAIC,EAAM,cAAc,SAAS,YAC/BA,EAAM,cAAc,KAAK;CAE7B,EACF;CACA,UAAU;AACZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
1
|
+
{"version":3,"file":"InputAddon.cjs","names":["styled","ark","inputAddon","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","InputAddon"],"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":"A,gIAMA,IAAaM,GAAA,EAAaN,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,IAAKC,EAAAA,WAAY,CACpD,SAAU,EACZ,CAAC,E"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
import { StyledComponent } from '@stokelp/styled-system/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}>;
|
|
2
|
+
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
3
|
+
import { Assign, AnyProps } from '@stokelp/styled-system/types';
|
|
4
|
+
import { InputAddonVariantProps } from '@stokelp/styled-system/recipes';
|
|
5
|
+
export declare const InputAddon: StyledComponent<any, Assign<AnyProps, InputAddonVariantProps>>;
|
|
7
6
|
export interface InputAddonProps extends ComponentProps<typeof InputAddon> {
|
|
8
7
|
}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import { ark as e } from "@ark-ui/react";
|
|
3
3
|
import { styled as t } from "@stokelp/styled-system/jsx";
|
|
4
4
|
import { inputAddon as n } from "@stokelp/styled-system/recipes";
|
|
5
|
-
|
|
5
|
+
// src/components/input/InputAddon.tsx
|
|
6
6
|
var r = t(e.div, n, { dataAttr: !0 });
|
|
7
|
-
//#endregion
|
|
8
7
|
export { r as InputAddon };
|
|
9
8
|
|
|
10
9
|
//# sourceMappingURL=InputAddon.js.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
1
|
+
{"version":3,"file":"InputAddon.js","names":["InputAddon","styled","ark","inputAddon"],"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,IAAaA,IAAaC,EAAOC,EAAI,KAAKC,GAAY,EACpD,UAAU,GACZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
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, type InputGroupVariantProps } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\n\n// See FormControl.tsx for why we pin the literal tag with an `as` cast.\nexport const InputGroup = styled('div', inputGroup, {\n dataAttr: true,\n}) as StyledComponent<'div', InputGroupVariantProps>\n\nexport interface InputGroupProps extends ComponentProps<typeof InputGroup> {}\n"],"mappings":"qGAOA,
|
|
1
|
+
{"version":3,"file":"InputGroup.cjs","names":["styled","inputGroup","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","InputGroup"],"sources":["../../../src/components/input/InputGroup.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputGroup, type InputGroupVariantProps } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\n\n// See FormControl.tsx for why we pin the literal tag with an `as` cast.\nexport const InputGroup = styled('div', inputGroup, {\n dataAttr: true,\n}) as StyledComponent<'div', InputGroupVariantProps>\n\nexport interface InputGroupProps extends ComponentProps<typeof InputGroup> {}\n"],"mappings":"A,qGAOA,IAAaI,GAAA,EAAaJ,EAAAA,OAAAA,CAAO,MAAOC,EAAAA,WAAY,CAClD,SAAU,EACZ,CAAC,E"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { styled as e } from "@stokelp/styled-system/jsx";
|
|
3
3
|
import { inputGroup as t } from "@stokelp/styled-system/recipes";
|
|
4
|
-
|
|
4
|
+
// src/components/input/InputGroup.tsx
|
|
5
5
|
var n = e("div", t, { dataAttr: !0 });
|
|
6
|
-
//#endregion
|
|
7
6
|
export { n as InputGroup };
|
|
8
7
|
|
|
9
8
|
//# sourceMappingURL=InputGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
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, type InputGroupVariantProps } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\n\n// See FormControl.tsx for why we pin the literal tag with an `as` cast.\nexport const InputGroup = styled('div', inputGroup, {\n dataAttr: true,\n}) as StyledComponent<'div', InputGroupVariantProps>\n\nexport interface InputGroupProps extends ComponentProps<typeof InputGroup> {}\n"],"mappings":";;;;AAOA,
|
|
1
|
+
{"version":3,"file":"InputGroup.js","names":["InputGroup","styled","inputGroup"],"sources":["../../../src/components/input/InputGroup.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputGroup, type InputGroupVariantProps } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\n\n// See FormControl.tsx for why we pin the literal tag with an `as` cast.\nexport const InputGroup = styled('div', inputGroup, {\n dataAttr: true,\n}) as StyledComponent<'div', InputGroupVariantProps>\n\nexport interface InputGroupProps extends ComponentProps<typeof InputGroup> {}\n"],"mappings":";;;;AAOA,IAAaA,IAAaC,EAAO,OAAOC,GAAY,EAClD,UAAU,GACZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
1
|
+
{"version":3,"file":"PhoneNumberInput.cjs","names":["styled","NumberInput","phoneNumberInput","forwardRef","useState","require_runtime","react_phone_number_input","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","StyledNumberInput","PhoneNumberInput","country","setCountry","value","setValue","props"],"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":"A,0QAKA,IAAMW,GAAA,EAAoBX,EAAAA,OAAAA,CAAOC,EAAAA,QAAaC,EAAAA,iBAAkB,CAAE,SAAU,EAAK,CAAC,EAWrEU,GAAA,EAAmBT,EAAAA,WAAAA,EAA+C,EAAO,IAAQ,CAC5F,GAAM,CAACU,EAASC,IAAA,EAAcV,EAAAA,SAAAA,CAAS,EACjC,CAACW,EAAOC,IAAA,EAAYZ,EAAAA,SAAAA,CAAS,EAEnC,OACE,EAAAM,EAAA,IAAA,CAACC,EAAD,CACE,cAAA,GACA,eAAe,KACR,QACP,SAAUK,EACD,UACT,gBAAiBF,EACjB,GAAIG,EACC,KACN,CAAA,CAEL,CAAC,E"}
|
|
@@ -4,7 +4,7 @@ import { styled as t } from "@stokelp/styled-system/jsx";
|
|
|
4
4
|
import { phoneNumberInput as n } from "@stokelp/styled-system/recipes";
|
|
5
5
|
import { forwardRef as r, useState as i } from "react";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/input/PhoneNumberInput.tsx
|
|
8
8
|
var o = t(e, n, { dataAttr: !0 }), s = r((e, t) => {
|
|
9
9
|
let [n, r] = i(), [s, c] = i();
|
|
10
10
|
return /* @__PURE__ */ a(o, {
|
|
@@ -18,7 +18,6 @@ var o = t(e, n, { dataAttr: !0 }), s = r((e, t) => {
|
|
|
18
18
|
ref: t
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
|
-
//#endregion
|
|
22
21
|
export { s as PhoneNumberInput };
|
|
23
22
|
|
|
24
23
|
//# sourceMappingURL=PhoneNumberInput.js.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
1
|
+
{"version":3,"file":"PhoneNumberInput.js","names":["NumberInput","StyledNumberInput","styled","phoneNumberInput","PhoneNumberInput","forwardRef","country","setCountry","useState","value","setValue","props"],"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,IAAMC,IAAoBC,EAAOF,GAAaG,GAAkB,EAAE,UAAU,GAAK,CAAC,GAWrEC,IAAmBC,GAA+C,GAAO,MAAQ;CAC5F,IAAM,CAACC,GAASC,KAAcC,EAAS,GACjC,CAACC,GAAOC,KAAYF,EAAS;CAEnC,OACE,kBAACP,GAAD;EACE,eAAA;EACA,gBAAe;EACR;EACP,UAAUS;EACD;EACT,iBAAiBH;EACjB,GAAII;EACC;CACN,CAAA;AAEL,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
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}});
|
|
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`);exports.Content=p,exports.Item=m,exports.ItemGroup=h,exports.ItemGroupLabel=g,Object.defineProperty(exports,"Menu_exports",{enumerable:!0,get:function(){return s}}),exports.Root=u,exports.Separator=_,exports.Trigger=v,exports.TriggerItem=y;
|
|
2
2
|
//# sourceMappingURL=Menu.cjs.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
1
|
+
{"version":3,"file":"Menu.cjs","names":["createStyleContext","menu","ArkMenu","styled","forwardRef","Portal","require_runtime","require_slots","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","Menu_exports","Content","Item","ItemGroup","ItemGroupLabel","Root","Separator","Trigger","TriggerItem","withProvider","Positioner","withContext","InnerContent","props"],"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":"A,6ZAOM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,IAAI,EAEhDiB,EAAOI,EAAapB,EAAAA,KAAQ,KAAM,IAAA,GAAW,CACxD,aAAc,CACZ,UAAW,GACX,UAAW,GACX,cAAe,EACjB,CACF,CAAC,EACKqB,EAAaC,GAAA,EAAYrB,EAAAA,OAAAA,CAAOD,EAAAA,KAAQ,UAAU,EAAG,YAAY,EAEjEuB,GAAA,EAAerB,EAAAA,WAAAA,EAClB,CAAE,WAAU,GAAGsB,GAAS,KAErB,EAAAd,EAAA,IAAA,CAACP,EAAAA,OAAD,CAAA,UACE,EAAAO,EAAA,IAAA,CAACW,EAAD,CAAA,UACE,EAAAX,EAAA,IAAA,CAACV,EAAAA,KAAQ,QAAT,CAAsB,MAAK,GAAIwB,EAC5B,UACc,CAAA,CACP,CAAA,CACN,CAAA,CAGd,EACA,EAAa,YAAcxB,EAAAA,KAAQ,QAAQ,YAE3C,IAAaY,EAAUU,GAAA,EAAYrB,EAAAA,OAAAA,CAAOsB,CAAY,EAAG,SAAS,EACrDV,EAAOS,GAAA,EAAYrB,EAAAA,OAAAA,CAAOD,EAAAA,KAAQ,IAAI,EAAG,MAAM,EAC/Cc,EAAYQ,GAAA,EAAYrB,EAAAA,OAAAA,CAAOD,EAAAA,KAAQ,SAAS,EAAG,WAAW,EAC9De,EAAiBO,GAAA,EAAYrB,EAAAA,OAAAA,CAAOD,EAAAA,KAAQ,cAAc,EAAG,gBAAgB,EAC7EiB,EAAYK,GAAA,EAAYrB,EAAAA,OAAAA,CAAOD,EAAAA,KAAQ,SAAS,EAAG,WAAW,EAC9DkB,EAAUI,GAAA,EAAYrB,EAAAA,OAAAA,CAAOD,EAAAA,KAAQ,OAAO,EAAG,SAAS,EACxDmB,EAAcG,GAAA,EAAYrB,EAAAA,OAAAA,CAAOD,EAAAA,KAAQ,WAAW,EAAG,aAAa,E"}
|
|
@@ -2,8 +2,8 @@ import { Menu as ArkMenu } from '@ark-ui/react';
|
|
|
2
2
|
import { ComponentProps, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
import { ComponentVariants } from '../../utils/slots';
|
|
4
4
|
import { MenuRecipe } from '@stokelp/styled-system/recipes';
|
|
5
|
-
import { StyledComponent } from '@stokelp/styled-system/
|
|
6
|
-
export declare const Root: ComponentVariants<(props: ArkMenu.RootProps) => import(
|
|
5
|
+
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
6
|
+
export declare const Root: ComponentVariants<(props: ArkMenu.RootProps) => import('react').JSX.Element, MenuRecipe>;
|
|
7
7
|
export declare const Content: StyledComponent<ForwardRefExoticComponent<Omit<ArkMenu.ContentProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>, {}>;
|
|
8
8
|
export declare const Item: StyledComponent<ForwardRefExoticComponent<ArkMenu.ItemProps & RefAttributes<HTMLDivElement>>, {}>;
|
|
9
9
|
export declare const ItemGroup: StyledComponent<ForwardRefExoticComponent<ArkMenu.ItemGroupProps & RefAttributes<HTMLDivElement>>, {}>;
|
|
@@ -6,7 +6,7 @@ import { styled as i } from "@stokelp/styled-system/jsx";
|
|
|
6
6
|
import { menu as a } from "@stokelp/styled-system/recipes";
|
|
7
7
|
import { forwardRef as o } from "react";
|
|
8
8
|
import { jsx as s } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// src/components/menu/Menu.tsx
|
|
10
10
|
var c = /* @__PURE__ */ e({
|
|
11
11
|
Content: () => m,
|
|
12
12
|
Item: () => h,
|
|
@@ -27,7 +27,6 @@ var c = /* @__PURE__ */ e({
|
|
|
27
27
|
}) }) }));
|
|
28
28
|
p.displayName = n.Content.displayName;
|
|
29
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
|
-
|
|
31
|
-
export { c as Menu_exports };
|
|
30
|
+
export { m as Content, h as Item, g as ItemGroup, _ as ItemGroupLabel, c as Menu_exports, d as Root, v as Separator, y as Trigger, b as TriggerItem };
|
|
32
31
|
|
|
33
32
|
//# sourceMappingURL=Menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.js","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":";;;;;;;;;;;;;;;;;;IAOM,EAAE,iBAAc,
|
|
1
|
+
{"version":3,"file":"Menu.js","names":["ArkMenu","Menu_exports","Content","Item","ItemGroup","ItemGroupLabel","Root","Separator","Trigger","TriggerItem","createStyleContext","menu","withProvider","Menu","Positioner","withContext","styled","InnerContent","forwardRef","props","Portal"],"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":";;;;;;;;;;;;;;;;;;A,IAOM,EAAE,iBAAc,mBAAgBU,EAAmBC,CAAI,GAEhDL,IAAOM,EAAaZ,EAAQ,MAAM,KAAA,GAAW,EACxD,cAAc;CACZ,WAAW;CACX,WAAW;CACX,eAAe;AACjB,EACF,CAAC,GACKc,IAAaC,EAAYC,EAAOhB,EAAQ,UAAU,GAAG,YAAY,GAEjEiB,IAAeC,GAClB,EAAE,aAAU,GAAGC,KAAS,MAErB,kBAACC,GAAD,EAAA,UACE,kBAACN,GAAD,EAAA,UACE,kBAACd,EAAQ,SAAT;CAAsB;CAAK,GAAImB;CAC5B;AACc,CAAA,EACP,CAAA,EACN,CAAA,CAGd;AACA,EAAa,cAAcnB,EAAQ,QAAQ;AAE3C,IAAaE,IAAUa,EAAYC,EAAOC,CAAY,GAAG,SAAS,GACrDd,IAAOY,EAAYC,EAAOhB,EAAQ,IAAI,GAAG,MAAM,GAC/CI,IAAYW,EAAYC,EAAOhB,EAAQ,SAAS,GAAG,WAAW,GAC9DK,IAAiBU,EAAYC,EAAOhB,EAAQ,cAAc,GAAG,gBAAgB,GAC7EO,IAAYQ,EAAYC,EAAOhB,EAAQ,SAAS,GAAG,WAAW,GAC9DQ,IAAUO,EAAYC,EAAOhB,EAAQ,OAAO,GAAG,SAAS,GACxDS,IAAcM,EAAYC,EAAOhB,EAAQ,WAAW,GAAG,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OriginSelect.cjs","names":[],"sources":["../../../src/components/origin-select/OriginSelect.tsx"],"sourcesContent":["import { Combobox, type ComboboxItem, type ComboboxProps } from '~/components/combobox'\nimport { ChipLabel } from '~/components/chip'\nimport { Flag, FlagCountryCodes, type FlagCountryCode } from '~/components/flag'\nimport { Text } from '~/components/text'\n\nexport type OriginSelectItem = ComboboxItem & {\n /**\n * ISO-3166 alpha-2 country code (case-insensitive). When it maps to a known\n * flag it is rendered next to the label, both in the list and in the selected\n * chips. Origins without a country code (e.g. FAO fishing areas) render label\n * only.\n */\n countryCode?: string\n}\n\n/**\n * A searchable (optionally multiple) origin picker built on top of `Combobox`.\n * Options are countries: each row shows the flag + name, and in `multiple` mode\n * the selection is displayed as removable flag chips. Search, keyboard nav and\n * chip removal come from `Combobox` for free.\n */\nexport type OriginSelectProps = Omit<ComboboxProps<OriginSelectItem>, 'renderItem' | 'renderValue'>\n\nconst toFlagCode = (countryCode?: string): FlagCountryCode | undefined => {\n if (!countryCode) return undefined\n const code = countryCode.toLowerCase()\n return (FlagCountryCodes as string[]).includes(code) ? (code as FlagCountryCode) : undefined\n}\n\nexport const OriginSelect = (props: OriginSelectProps) => (\n <Combobox<OriginSelectItem>\n {...props}\n renderItem={(item: OriginSelectItem) => {\n const code = toFlagCode(item.countryCode)\n return (\n <>\n {code && <Flag countryCode={code} />}\n <Text truncate>{item.label}</Text>\n </>\n )\n }}\n renderValue={(item: OriginSelectItem) => {\n const code = toFlagCode(item.countryCode)\n return (\n <>\n {code && <Flag countryCode={code} />}\n <ChipLabel>{item.label}</ChipLabel>\n </>\n )\n }}\n />\n)\n"],"mappings":"wLAuBA,
|
|
1
|
+
{"version":3,"file":"OriginSelect.cjs","names":["FlagCountryCodes","Combobox","_Fragment","Flag","Text","ChipLabel","require_Text","require_Chip","require_Combobox","require_styled","react_jsx_runtime","toFlagCode","countryCode","code","OriginSelect","props","item"],"sources":["../../../src/components/origin-select/OriginSelect.tsx"],"sourcesContent":["import { Combobox, type ComboboxItem, type ComboboxProps } from '~/components/combobox'\nimport { ChipLabel } from '~/components/chip'\nimport { Flag, FlagCountryCodes, type FlagCountryCode } from '~/components/flag'\nimport { Text } from '~/components/text'\n\nexport type OriginSelectItem = ComboboxItem & {\n /**\n * ISO-3166 alpha-2 country code (case-insensitive). When it maps to a known\n * flag it is rendered next to the label, both in the list and in the selected\n * chips. Origins without a country code (e.g. FAO fishing areas) render label\n * only.\n */\n countryCode?: string\n}\n\n/**\n * A searchable (optionally multiple) origin picker built on top of `Combobox`.\n * Options are countries: each row shows the flag + name, and in `multiple` mode\n * the selection is displayed as removable flag chips. Search, keyboard nav and\n * chip removal come from `Combobox` for free.\n */\nexport type OriginSelectProps = Omit<ComboboxProps<OriginSelectItem>, 'renderItem' | 'renderValue'>\n\nconst toFlagCode = (countryCode?: string): FlagCountryCode | undefined => {\n if (!countryCode) return undefined\n const code = countryCode.toLowerCase()\n return (FlagCountryCodes as string[]).includes(code) ? (code as FlagCountryCode) : undefined\n}\n\nexport const OriginSelect = (props: OriginSelectProps) => (\n <Combobox<OriginSelectItem>\n {...props}\n renderItem={(item: OriginSelectItem) => {\n const code = toFlagCode(item.countryCode)\n return (\n <>\n {code && <Flag countryCode={code} />}\n <Text truncate>{item.label}</Text>\n </>\n )\n }}\n renderValue={(item: OriginSelectItem) => {\n const code = toFlagCode(item.countryCode)\n return (\n <>\n {code && <Flag countryCode={code} />}\n <ChipLabel>{item.label}</ChipLabel>\n </>\n )\n }}\n />\n)\n"],"mappings":"A,wLAuBA,IAAMW,EAAc,GAAsD,CACxE,GAAI,CAACC,EAAa,OAClB,IAAMC,EAAOD,EAAY,YAAY,EACrC,OAAQZ,EAAAA,iBAA8B,SAASa,CAAI,EAAKA,EAA2B,IAAA,EACrF,EAEaC,EAAgB,IAC3B,EAAAJ,EAAA,IAAA,CAACT,EAAAA,SAAD,CACE,GAAIc,EACJ,WAAa,GAA2B,CACtC,IAAMF,EAAOF,EAAWK,EAAK,WAAW,EACxC,OACE,EAAAN,EAAA,KAAA,CAAAR,EAAAA,SAAA,CAAA,SAAA,CACGW,IAAQ,EAAAH,EAAA,IAAA,CAACP,EAAAA,KAAD,CAAM,YAAaU,CAAO,CAAA,GACnC,EAAAH,EAAA,IAAA,CAACN,EAAAA,KAAD,CAAM,SAAA,GAAU,SAAAY,EAAK,KAAY,CAAA,CACjC,CAAA,CAAA,CAEN,EACA,YAAc,GAA2B,CACvC,IAAMH,EAAOF,EAAWK,EAAK,WAAW,EACxC,OACE,EAAAN,EAAA,KAAA,CAAAR,EAAAA,SAAA,CAAA,SAAA,CACGW,IAAQ,EAAAH,EAAA,IAAA,CAACP,EAAAA,KAAD,CAAM,YAAaU,CAAO,CAAA,GACnC,EAAAH,EAAA,IAAA,CAACL,EAAAA,UAAD,CAAA,SAAYW,EAAK,KAAiB,CAAA,CAClC,CAAA,CAAA,CAEN,CACD,CAAA,E"}
|
|
@@ -15,4 +15,4 @@ export type OriginSelectItem = ComboboxItem & {
|
|
|
15
15
|
* chip removal come from `Combobox` for free.
|
|
16
16
|
*/
|
|
17
17
|
export type OriginSelectProps = Omit<ComboboxProps<OriginSelectItem>, 'renderItem' | 'renderValue'>;
|
|
18
|
-
export declare const OriginSelect: (props: OriginSelectProps) => import(
|
|
18
|
+
export declare const OriginSelect: (props: OriginSelectProps) => import('react').JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { ChipLabel as t } from "../chip/Chip.js";
|
|
|
4
4
|
import { Combobox as n } from "../combobox/Combobox.js";
|
|
5
5
|
import { Flag as r, FlagCountryCodes as i } from "../flag/styled.js";
|
|
6
6
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/origin-select/OriginSelect.tsx
|
|
8
8
|
var c = (e) => {
|
|
9
9
|
if (!e) return;
|
|
10
10
|
let t = e.toLowerCase();
|
|
@@ -23,7 +23,6 @@ var c = (e) => {
|
|
|
23
23
|
return /* @__PURE__ */ s(a, { children: [n && /* @__PURE__ */ o(r, { countryCode: n }), /* @__PURE__ */ o(t, { children: e.label })] });
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
//#endregion
|
|
27
26
|
export { l as OriginSelect };
|
|
28
27
|
|
|
29
28
|
//# sourceMappingURL=OriginSelect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OriginSelect.js","names":[],"sources":["../../../src/components/origin-select/OriginSelect.tsx"],"sourcesContent":["import { Combobox, type ComboboxItem, type ComboboxProps } from '~/components/combobox'\nimport { ChipLabel } from '~/components/chip'\nimport { Flag, FlagCountryCodes, type FlagCountryCode } from '~/components/flag'\nimport { Text } from '~/components/text'\n\nexport type OriginSelectItem = ComboboxItem & {\n /**\n * ISO-3166 alpha-2 country code (case-insensitive). When it maps to a known\n * flag it is rendered next to the label, both in the list and in the selected\n * chips. Origins without a country code (e.g. FAO fishing areas) render label\n * only.\n */\n countryCode?: string\n}\n\n/**\n * A searchable (optionally multiple) origin picker built on top of `Combobox`.\n * Options are countries: each row shows the flag + name, and in `multiple` mode\n * the selection is displayed as removable flag chips. Search, keyboard nav and\n * chip removal come from `Combobox` for free.\n */\nexport type OriginSelectProps = Omit<ComboboxProps<OriginSelectItem>, 'renderItem' | 'renderValue'>\n\nconst toFlagCode = (countryCode?: string): FlagCountryCode | undefined => {\n if (!countryCode) return undefined\n const code = countryCode.toLowerCase()\n return (FlagCountryCodes as string[]).includes(code) ? (code as FlagCountryCode) : undefined\n}\n\nexport const OriginSelect = (props: OriginSelectProps) => (\n <Combobox<OriginSelectItem>\n {...props}\n renderItem={(item: OriginSelectItem) => {\n const code = toFlagCode(item.countryCode)\n return (\n <>\n {code && <Flag countryCode={code} />}\n <Text truncate>{item.label}</Text>\n </>\n )\n }}\n renderValue={(item: OriginSelectItem) => {\n const code = toFlagCode(item.countryCode)\n return (\n <>\n {code && <Flag countryCode={code} />}\n <ChipLabel>{item.label}</ChipLabel>\n </>\n )\n }}\n />\n)\n"],"mappings":";;;;;;;AAuBA,
|
|
1
|
+
{"version":3,"file":"OriginSelect.js","names":["_Fragment","toFlagCode","countryCode","code","FlagCountryCodes","OriginSelect","Combobox","props","item","Fragment","Flag","Text","ChipLabel"],"sources":["../../../src/components/origin-select/OriginSelect.tsx"],"sourcesContent":["import { Combobox, type ComboboxItem, type ComboboxProps } from '~/components/combobox'\nimport { ChipLabel } from '~/components/chip'\nimport { Flag, FlagCountryCodes, type FlagCountryCode } from '~/components/flag'\nimport { Text } from '~/components/text'\n\nexport type OriginSelectItem = ComboboxItem & {\n /**\n * ISO-3166 alpha-2 country code (case-insensitive). When it maps to a known\n * flag it is rendered next to the label, both in the list and in the selected\n * chips. Origins without a country code (e.g. FAO fishing areas) render label\n * only.\n */\n countryCode?: string\n}\n\n/**\n * A searchable (optionally multiple) origin picker built on top of `Combobox`.\n * Options are countries: each row shows the flag + name, and in `multiple` mode\n * the selection is displayed as removable flag chips. Search, keyboard nav and\n * chip removal come from `Combobox` for free.\n */\nexport type OriginSelectProps = Omit<ComboboxProps<OriginSelectItem>, 'renderItem' | 'renderValue'>\n\nconst toFlagCode = (countryCode?: string): FlagCountryCode | undefined => {\n if (!countryCode) return undefined\n const code = countryCode.toLowerCase()\n return (FlagCountryCodes as string[]).includes(code) ? (code as FlagCountryCode) : undefined\n}\n\nexport const OriginSelect = (props: OriginSelectProps) => (\n <Combobox<OriginSelectItem>\n {...props}\n renderItem={(item: OriginSelectItem) => {\n const code = toFlagCode(item.countryCode)\n return (\n <>\n {code && <Flag countryCode={code} />}\n <Text truncate>{item.label}</Text>\n </>\n )\n }}\n renderValue={(item: OriginSelectItem) => {\n const code = toFlagCode(item.countryCode)\n return (\n <>\n {code && <Flag countryCode={code} />}\n <ChipLabel>{item.label}</ChipLabel>\n </>\n )\n }}\n />\n)\n"],"mappings":";;;;;;;AAuBA,IAAMC,KAAc,MAAsD;CACxE,IAAI,CAACC,GAAa;CAClB,IAAMC,IAAOD,EAAY,YAAY;CACrC,OAAQE,EAA8B,SAASD,CAAI,IAAKA,IAA2B,KAAA;AACrF,GAEaE,KAAgB,MAC3B,kBAACC,GAAD;CACE,GAAIC;CACJ,aAAa,MAA2B;EACtC,IAAMJ,IAAOF,EAAWO,EAAK,WAAW;EACxC,OACE,kBAAAR,GAAA,EAAA,UAAA,CACGG,KAAQ,kBAACO,GAAD,EAAM,aAAaP,EAAO,CAAA,GACnC,kBAACQ,GAAD;GAAM,UAAA;GAAU,UAAAH,EAAK;EAAY,CAAA,CACjC,EAAA,CAAA;CAEN;CACA,cAAc,MAA2B;EACvC,IAAML,IAAOF,EAAWO,EAAK,WAAW;EACxC,OACE,kBAAAR,GAAA,EAAA,UAAA,CACGG,KAAQ,kBAACO,GAAD,EAAM,aAAaP,EAAO,CAAA,GACnC,kBAACS,GAAD,EAAA,UAAYJ,EAAK,MAAiB,CAAA,CAClC,EAAA,CAAA;CAEN;AACD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.cjs","names":[],"sources":["../../../src/components/pagination/Pagination.tsx"],"sourcesContent":["import type { ComponentProps, FC } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { pagination } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { DOTS, usePagination } from './use-pagination'\nimport { createEventHandler } from '~/shared/utils/events'\nimport { IconButton } from '~/components/icon-button'\n\nconst { withProvider, withContext } = createStyleContext(pagination)\n\nconst StyledPagination = withProvider(styled('div'), 'root')\ntype StyledPaginationProps = ComponentProps<typeof StyledPagination>\n\nconst PaginationItem = withContext(styled('button'), 'item')\nconst PaginationDots = withContext(styled('div'), 'dots')\n\nexport interface PaginationProps extends Omit<StyledPaginationProps, 'children' | 'defaultValue' | 'onChange'> {\n total: number\n value?: number\n defaultValue?: number\n onChange?: (value: number) => void\n disabled?: boolean\n siblings?: number\n boundaries?: number\n onNextPage?: () => void\n onPrevPage?: () => void\n}\n\nexport const Pagination: FC<PaginationProps> = ({\n total,\n value,\n defaultValue,\n onChange,\n disabled,\n onNextPage,\n onPrevPage,\n siblings = 2,\n boundaries = 1,\n ...props\n}: PaginationProps) => {\n const { range, setPage, next, previous, active } = usePagination({\n page: value,\n initialPage: defaultValue,\n onChange,\n total,\n siblings,\n boundaries,\n })\n\n const handleNextPage = createEventHandler(onNextPage, next)\n const handlePreviousPage = createEventHandler(onPrevPage, previous)\n\n return (\n <StyledPagination {...props}>\n <IconButton\n size=\"md\"\n variant=\"tertiary\"\n aria-label=\"Previous\"\n disabled={disabled || active === 1}\n onClick={handlePreviousPage}\n >\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L10.1464 2.64645C10.3417 2.45119 10.6583 2.45119 10.8536 2.64645C11.0488 2.84171 11.0488 3.15829 10.8536 3.35355L6.20711 8L10.8536 12.6464C11.0488 12.8417 11.0488 13.1583 10.8536 13.3536C10.6583 13.5488 10.3417 13.5488 10.1464 13.3536L5.14645 8.35355Z\"\n fill=\"currentColor\"\n />\n </svg>\n </IconButton>\n {range.map((pageNumber, index) => {\n if (pageNumber === DOTS) {\n return (\n <PaginationDots {...(disabled ? { 'data-disabled': true } : {})} key={index}>\n ...\n </PaginationDots>\n )\n }\n\n const isSelected = pageNumber === active\n\n return (\n <PaginationItem\n key={index}\n disabled={disabled}\n {...(isSelected\n ? {\n 'data-selected': true,\n }\n : {})}\n onClick={() => setPage(pageNumber)}\n >\n {pageNumber}\n </PaginationItem>\n )\n })}\n <IconButton\n size=\"md\"\n variant=\"tertiary\"\n aria-label=\"Previous\"\n disabled={disabled || active === total}\n onClick={handleNextPage}\n >\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10.8536 7.64645C11.0488 7.84171 11.0488 8.15829 10.8536 8.35355L5.85355 13.3536C5.65829 13.5488 5.34171 13.5488 5.14645 13.3536C4.95118 13.1583 4.95118 12.8417 5.14645 12.6464L9.79289 8L5.14645 3.35355C4.95118 3.15829 4.95118 2.84171 5.14645 2.64645C5.34171 2.45118 5.65829 2.45118 5.85355 2.64645L10.8536 7.64645Z\"\n fill=\"currentColor\"\n />\n </svg>\n </IconButton>\n </StyledPagination>\n )\n}\n"],"mappings":"wTAQA,GAAM,CAAE,eAAc,
|
|
1
|
+
{"version":3,"file":"Pagination.cjs","names":["createStyleContext","pagination","styled","usePagination","createEventHandler","IconButton","DOTS","require_slots","require_IconButton","require_use_pagination","require_events","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","StyledPagination","withProvider","PaginationItem","withContext","PaginationDots","Pagination","props","value","defaultValue","handleNextPage","onNextPage","next","handlePreviousPage","onPrevPage","previous","disabled","active","range","pageNumber","index","setPage","total"],"sources":["../../../src/components/pagination/Pagination.tsx"],"sourcesContent":["import type { ComponentProps, FC } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { pagination } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { DOTS, usePagination } from './use-pagination'\nimport { createEventHandler } from '~/shared/utils/events'\nimport { IconButton } from '~/components/icon-button'\n\nconst { withProvider, withContext } = createStyleContext(pagination)\n\nconst StyledPagination = withProvider(styled('div'), 'root')\ntype StyledPaginationProps = ComponentProps<typeof StyledPagination>\n\nconst PaginationItem = withContext(styled('button'), 'item')\nconst PaginationDots = withContext(styled('div'), 'dots')\n\nexport interface PaginationProps extends Omit<StyledPaginationProps, 'children' | 'defaultValue' | 'onChange'> {\n total: number\n value?: number\n defaultValue?: number\n onChange?: (value: number) => void\n disabled?: boolean\n siblings?: number\n boundaries?: number\n onNextPage?: () => void\n onPrevPage?: () => void\n}\n\nexport const Pagination: FC<PaginationProps> = ({\n total,\n value,\n defaultValue,\n onChange,\n disabled,\n onNextPage,\n onPrevPage,\n siblings = 2,\n boundaries = 1,\n ...props\n}: PaginationProps) => {\n const { range, setPage, next, previous, active } = usePagination({\n page: value,\n initialPage: defaultValue,\n onChange,\n total,\n siblings,\n boundaries,\n })\n\n const handleNextPage = createEventHandler(onNextPage, next)\n const handlePreviousPage = createEventHandler(onPrevPage, previous)\n\n return (\n <StyledPagination {...props}>\n <IconButton\n size=\"md\"\n variant=\"tertiary\"\n aria-label=\"Previous\"\n disabled={disabled || active === 1}\n onClick={handlePreviousPage}\n >\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L10.1464 2.64645C10.3417 2.45119 10.6583 2.45119 10.8536 2.64645C11.0488 2.84171 11.0488 3.15829 10.8536 3.35355L6.20711 8L10.8536 12.6464C11.0488 12.8417 11.0488 13.1583 10.8536 13.3536C10.6583 13.5488 10.3417 13.5488 10.1464 13.3536L5.14645 8.35355Z\"\n fill=\"currentColor\"\n />\n </svg>\n </IconButton>\n {range.map((pageNumber, index) => {\n if (pageNumber === DOTS) {\n return (\n <PaginationDots {...(disabled ? { 'data-disabled': true } : {})} key={index}>\n ...\n </PaginationDots>\n )\n }\n\n const isSelected = pageNumber === active\n\n return (\n <PaginationItem\n key={index}\n disabled={disabled}\n {...(isSelected\n ? {\n 'data-selected': true,\n }\n : {})}\n onClick={() => setPage(pageNumber)}\n >\n {pageNumber}\n </PaginationItem>\n )\n })}\n <IconButton\n size=\"md\"\n variant=\"tertiary\"\n aria-label=\"Previous\"\n disabled={disabled || active === total}\n onClick={handleNextPage}\n >\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10.8536 7.64645C11.0488 7.84171 11.0488 8.15829 10.8536 8.35355L5.85355 13.3536C5.65829 13.5488 5.34171 13.5488 5.14645 13.3536C4.95118 13.1583 4.95118 12.8417 5.14645 12.6464L9.79289 8L5.14645 3.35355C4.95118 3.15829 4.95118 2.84171 5.14645 2.64645C5.34171 2.45118 5.65829 2.45118 5.85355 2.64645L10.8536 7.64645Z\"\n fill=\"currentColor\"\n />\n </svg>\n </IconButton>\n </StyledPagination>\n )\n}\n"],"mappings":"A,wTAQA,GAAM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,UAAU,EAE7Dc,EAAmBC,GAAA,EAAad,EAAAA,OAAAA,CAAO,KAAK,EAAG,MAAM,EAGrDe,EAAiBC,GAAA,EAAYhB,EAAAA,OAAAA,CAAO,QAAQ,EAAG,MAAM,EACrDiB,EAAiBD,GAAA,EAAYhB,EAAAA,OAAAA,CAAO,KAAK,EAAG,MAAM,EAc3CkB,GAAmC,CAC9C,QACA,QACA,eACA,WACA,WACA,aACA,aACA,WAAW,EACX,aAAa,EACb,GAAGC,KACkB,CACrB,GAAM,CAAE,QAAO,UAAS,OAAM,WAAU,UAAWlB,EAAAA,cAAc,CAC/D,KAAMmB,EACN,YAAaC,EACb,WACA,QACA,WACA,YACF,CAAC,EAEKC,EAAiBpB,EAAAA,mBAAmBqB,EAAYC,CAAI,EACpDC,EAAqBvB,EAAAA,mBAAmBwB,EAAYC,CAAQ,EAElE,OACE,EAAAf,EAAA,KAAA,CAACC,EAAD,CAAkB,GAAIM,EAAtB,SAAA,EACE,EAAAP,EAAA,IAAA,CAACT,EAAAA,WAAD,CACE,KAAK,KACL,QAAQ,WACR,aAAW,WACX,SAAUyB,GAAYC,IAAW,EACjC,QAASJ,EAET,UAAA,EAAAb,EAAA,IAAA,CAAC,MAAD,CAAK,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,MAAM,6BAChE,UAAA,EAAAA,EAAA,IAAA,CAAC,OAAD,CACE,SAAS,UACT,SAAS,UACT,EAAE,8TACF,KAAK,cACN,CAAA,CACE,CAAA,CACK,CAAA,EACXkB,EAAM,KAAK,EAAY,IAClBC,IAAe3B,EAAAA,MAEf,EAAAO,EAAA,cAAA,CAACM,EAAD,CAAgB,GAAKW,EAAW,CAAE,gBAAiB,EAAK,EAAI,CAAC,EAAI,IAAKI,CAEtD,EAF6D,KAE7D,GAOlB,EAAApB,EAAA,IAAA,CAACG,EAAD,CAEY,WACV,GANegB,IAAeF,EAO1B,CACE,gBAAiB,EACnB,EACA,CAAC,EACL,YAAeI,EAAQF,CAAU,EAEhC,SAAAA,CACa,EAVTC,CAUS,CAEnB,GACD,EAAApB,EAAA,IAAA,CAACT,EAAAA,WAAD,CACE,KAAK,KACL,QAAQ,WACR,aAAW,WACX,SAAUyB,GAAYC,IAAWK,EACjC,QAASZ,EAET,UAAA,EAAAV,EAAA,IAAA,CAAC,MAAD,CAAK,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,MAAM,6BAChE,UAAA,EAAAA,EAAA,IAAA,CAAC,OAAD,CACE,SAAS,UACT,SAAS,UACT,EAAE,8TACF,KAAK,cACN,CAAA,CACE,CAAA,CACK,CAAA,CACI,C,EAEtB,E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, FC } from 'react';
|
|
2
2
|
import { ComponentVariants } from '../../utils/slots';
|
|
3
|
-
import { StyledComponent } from '@stokelp/styled-system/
|
|
3
|
+
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
4
4
|
import { PaginationRecipe } from '@stokelp/styled-system/recipes';
|
|
5
5
|
declare const StyledPagination: ComponentVariants<StyledComponent<string, {}>, PaginationRecipe>;
|
|
6
6
|
type StyledPaginationProps = ComponentProps<typeof StyledPagination>;
|
|
@@ -7,7 +7,7 @@ import { styled as a } from "@stokelp/styled-system/jsx";
|
|
|
7
7
|
import { pagination as o } from "@stokelp/styled-system/recipes";
|
|
8
8
|
import { createElement as s } from "react";
|
|
9
9
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/components/pagination/Pagination.tsx
|
|
11
11
|
var { withProvider: u, withContext: d } = e(o), f = u(a("div"), "root"), p = d(a("button"), "item"), m = d(a("div"), "dots"), h = ({ total: e, value: a, defaultValue: o, onChange: u, disabled: d, onNextPage: h, onPrevPage: g, siblings: _ = 2, boundaries: v = 1, ...y }) => {
|
|
12
12
|
let { range: b, setPage: x, next: S, previous: C, active: w } = r({
|
|
13
13
|
page: a,
|
|
@@ -72,7 +72,6 @@ var { withProvider: u, withContext: d } = e(o), f = u(a("div"), "root"), p = d(a
|
|
|
72
72
|
]
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
|
-
//#endregion
|
|
76
75
|
export { h as Pagination };
|
|
77
76
|
|
|
78
77
|
//# sourceMappingURL=Pagination.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.js","names":[],"sources":["../../../src/components/pagination/Pagination.tsx"],"sourcesContent":["import type { ComponentProps, FC } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { pagination } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { DOTS, usePagination } from './use-pagination'\nimport { createEventHandler } from '~/shared/utils/events'\nimport { IconButton } from '~/components/icon-button'\n\nconst { withProvider, withContext } = createStyleContext(pagination)\n\nconst StyledPagination = withProvider(styled('div'), 'root')\ntype StyledPaginationProps = ComponentProps<typeof StyledPagination>\n\nconst PaginationItem = withContext(styled('button'), 'item')\nconst PaginationDots = withContext(styled('div'), 'dots')\n\nexport interface PaginationProps extends Omit<StyledPaginationProps, 'children' | 'defaultValue' | 'onChange'> {\n total: number\n value?: number\n defaultValue?: number\n onChange?: (value: number) => void\n disabled?: boolean\n siblings?: number\n boundaries?: number\n onNextPage?: () => void\n onPrevPage?: () => void\n}\n\nexport const Pagination: FC<PaginationProps> = ({\n total,\n value,\n defaultValue,\n onChange,\n disabled,\n onNextPage,\n onPrevPage,\n siblings = 2,\n boundaries = 1,\n ...props\n}: PaginationProps) => {\n const { range, setPage, next, previous, active } = usePagination({\n page: value,\n initialPage: defaultValue,\n onChange,\n total,\n siblings,\n boundaries,\n })\n\n const handleNextPage = createEventHandler(onNextPage, next)\n const handlePreviousPage = createEventHandler(onPrevPage, previous)\n\n return (\n <StyledPagination {...props}>\n <IconButton\n size=\"md\"\n variant=\"tertiary\"\n aria-label=\"Previous\"\n disabled={disabled || active === 1}\n onClick={handlePreviousPage}\n >\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L10.1464 2.64645C10.3417 2.45119 10.6583 2.45119 10.8536 2.64645C11.0488 2.84171 11.0488 3.15829 10.8536 3.35355L6.20711 8L10.8536 12.6464C11.0488 12.8417 11.0488 13.1583 10.8536 13.3536C10.6583 13.5488 10.3417 13.5488 10.1464 13.3536L5.14645 8.35355Z\"\n fill=\"currentColor\"\n />\n </svg>\n </IconButton>\n {range.map((pageNumber, index) => {\n if (pageNumber === DOTS) {\n return (\n <PaginationDots {...(disabled ? { 'data-disabled': true } : {})} key={index}>\n ...\n </PaginationDots>\n )\n }\n\n const isSelected = pageNumber === active\n\n return (\n <PaginationItem\n key={index}\n disabled={disabled}\n {...(isSelected\n ? {\n 'data-selected': true,\n }\n : {})}\n onClick={() => setPage(pageNumber)}\n >\n {pageNumber}\n </PaginationItem>\n )\n })}\n <IconButton\n size=\"md\"\n variant=\"tertiary\"\n aria-label=\"Previous\"\n disabled={disabled || active === total}\n onClick={handleNextPage}\n >\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10.8536 7.64645C11.0488 7.84171 11.0488 8.15829 10.8536 8.35355L5.85355 13.3536C5.65829 13.5488 5.34171 13.5488 5.14645 13.3536C4.95118 13.1583 4.95118 12.8417 5.14645 12.6464L9.79289 8L5.14645 3.35355C4.95118 3.15829 4.95118 2.84171 5.14645 2.64645C5.34171 2.45118 5.65829 2.45118 5.85355 2.64645L10.8536 7.64645Z\"\n fill=\"currentColor\"\n />\n </svg>\n </IconButton>\n </StyledPagination>\n )\n}\n"],"mappings":";;;;;;;;;;AAQA,IAAM,EAAE,iBAAc,
|
|
1
|
+
{"version":3,"file":"Pagination.js","names":["createStyleContext","pagination","StyledPagination","withProvider","styled","PaginationItem","withContext","PaginationDots","Pagination","props","usePagination","value","defaultValue","handleNextPage","createEventHandler","onNextPage","next","handlePreviousPage","onPrevPage","previous","IconButton","disabled","active","range","pageNumber","DOTS","index","setPage","total"],"sources":["../../../src/components/pagination/Pagination.tsx"],"sourcesContent":["import type { ComponentProps, FC } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { pagination } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { DOTS, usePagination } from './use-pagination'\nimport { createEventHandler } from '~/shared/utils/events'\nimport { IconButton } from '~/components/icon-button'\n\nconst { withProvider, withContext } = createStyleContext(pagination)\n\nconst StyledPagination = withProvider(styled('div'), 'root')\ntype StyledPaginationProps = ComponentProps<typeof StyledPagination>\n\nconst PaginationItem = withContext(styled('button'), 'item')\nconst PaginationDots = withContext(styled('div'), 'dots')\n\nexport interface PaginationProps extends Omit<StyledPaginationProps, 'children' | 'defaultValue' | 'onChange'> {\n total: number\n value?: number\n defaultValue?: number\n onChange?: (value: number) => void\n disabled?: boolean\n siblings?: number\n boundaries?: number\n onNextPage?: () => void\n onPrevPage?: () => void\n}\n\nexport const Pagination: FC<PaginationProps> = ({\n total,\n value,\n defaultValue,\n onChange,\n disabled,\n onNextPage,\n onPrevPage,\n siblings = 2,\n boundaries = 1,\n ...props\n}: PaginationProps) => {\n const { range, setPage, next, previous, active } = usePagination({\n page: value,\n initialPage: defaultValue,\n onChange,\n total,\n siblings,\n boundaries,\n })\n\n const handleNextPage = createEventHandler(onNextPage, next)\n const handlePreviousPage = createEventHandler(onPrevPage, previous)\n\n return (\n <StyledPagination {...props}>\n <IconButton\n size=\"md\"\n variant=\"tertiary\"\n aria-label=\"Previous\"\n disabled={disabled || active === 1}\n onClick={handlePreviousPage}\n >\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L10.1464 2.64645C10.3417 2.45119 10.6583 2.45119 10.8536 2.64645C11.0488 2.84171 11.0488 3.15829 10.8536 3.35355L6.20711 8L10.8536 12.6464C11.0488 12.8417 11.0488 13.1583 10.8536 13.3536C10.6583 13.5488 10.3417 13.5488 10.1464 13.3536L5.14645 8.35355Z\"\n fill=\"currentColor\"\n />\n </svg>\n </IconButton>\n {range.map((pageNumber, index) => {\n if (pageNumber === DOTS) {\n return (\n <PaginationDots {...(disabled ? { 'data-disabled': true } : {})} key={index}>\n ...\n </PaginationDots>\n )\n }\n\n const isSelected = pageNumber === active\n\n return (\n <PaginationItem\n key={index}\n disabled={disabled}\n {...(isSelected\n ? {\n 'data-selected': true,\n }\n : {})}\n onClick={() => setPage(pageNumber)}\n >\n {pageNumber}\n </PaginationItem>\n )\n })}\n <IconButton\n size=\"md\"\n variant=\"tertiary\"\n aria-label=\"Previous\"\n disabled={disabled || active === total}\n onClick={handleNextPage}\n >\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10.8536 7.64645C11.0488 7.84171 11.0488 8.15829 10.8536 8.35355L5.85355 13.3536C5.65829 13.5488 5.34171 13.5488 5.14645 13.3536C4.95118 13.1583 4.95118 12.8417 5.14645 12.6464L9.79289 8L5.14645 3.35355C4.95118 3.15829 4.95118 2.84171 5.14645 2.64645C5.34171 2.45118 5.65829 2.45118 5.85355 2.64645L10.8536 7.64645Z\"\n fill=\"currentColor\"\n />\n </svg>\n </IconButton>\n </StyledPagination>\n )\n}\n"],"mappings":";;;;;;;;;;AAQA,IAAM,EAAE,iBAAc,mBAAgBA,EAAmBC,CAAU,GAE7DC,IAAmBC,EAAaC,EAAO,KAAK,GAAG,MAAM,GAGrDC,IAAiBC,EAAYF,EAAO,QAAQ,GAAG,MAAM,GACrDG,IAAiBD,EAAYF,EAAO,KAAK,GAAG,MAAM,GAc3CI,KAAmC,EAC9C,UACA,UACA,iBACA,aACA,aACA,eACA,eACA,cAAW,GACX,gBAAa,GACb,GAAGC,QACkB;CACrB,IAAM,EAAE,UAAO,YAAS,SAAM,aAAU,cAAWC,EAAc;EAC/D,MAAMC;EACN,aAAaC;EACb;EACA;EACA;EACA;CACF,CAAC,GAEKC,IAAiBC,EAAmBC,GAAYC,CAAI,GACpDC,IAAqBH,EAAmBI,GAAYC,CAAQ;CAElE,OACE,kBAACjB,GAAD;EAAkB,GAAIO;EAAtB,UAAA;GACE,kBAACW,GAAD;IACE,MAAK;IACL,SAAQ;IACR,cAAW;IACX,UAAUC,KAAYC,MAAW;IACjC,SAASL;IAET,UAAA,kBAAC,OAAD;KAAK,OAAM;KAAK,QAAO;KAAK,SAAQ;KAAY,MAAK;KAAO,OAAM;KAChE,UAAA,kBAAC,QAAD;MACE,UAAS;MACT,UAAS;MACT,GAAE;MACF,MAAK;KACN,CAAA;IACE,CAAA;GACK,CAAA;GACXM,EAAM,KAAK,GAAY,MAClBC,MAAeC,IAEf,kBAAClB,GAAD;IAAgB,GAAKc,IAAW,EAAE,iBAAiB,GAAK,IAAI,CAAC;IAAI,KAAKK;GAEtD,GAF6D,KAE7D,IAOlB,kBAACrB,GAAD;IAEY;IACV,GANemB,MAAeF,IAO1B,EACE,iBAAiB,GACnB,IACA,CAAC;IACL,eAAeK,EAAQH,CAAU;IAEhC,UAAAA;GACa,GAVTE,CAUS,CAEnB;GACD,kBAACN,GAAD;IACE,MAAK;IACL,SAAQ;IACR,cAAW;IACX,UAAUC,KAAYC,MAAWM;IACjC,SAASf;IAET,UAAA,kBAAC,OAAD;KAAK,OAAM;KAAK,QAAO;KAAK,SAAQ;KAAY,MAAK;KAAO,OAAM;KAChE,UAAA,kBAAC,QAAD;MACE,UAAS;MACT,UAAS;MACT,GAAE;MACF,MAAK;KACN,CAAA;IACE,CAAA;GACK,CAAA;EACI;;AAEtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-pagination.cjs","names":[],"sources":["../../../src/components/pagination/use-pagination.ts"],"sourcesContent":["// https://github.com/mantinedev/mantine/blob/95115daf60364ba2e5aba5e5d42d69103f90cb1a/packages/%40mantine/hooks/src/use-pagination/use-pagination.ts\n\nimport { useMemo } from 'react'\nimport { useUncontrolled } from '~/shared/hooks/useUncontrolled'\n\nfunction range(start: number, end: number) {\n const length = end - start + 1\n return Array.from({ length }, (_, index) => index + start)\n}\n\nexport const DOTS: unique symbol = Symbol('dots')\n\nexport interface PaginationParams {\n initialPage?: number\n page?: number\n total: number\n siblings?: number\n boundaries?: number\n onChange?: (page: number) => void\n}\n\nexport const usePagination = ({\n total,\n siblings = 1,\n boundaries = 1,\n page,\n initialPage = 1,\n onChange,\n}: PaginationParams) => {\n const _total = Math.max(Math.trunc(total), 0)\n const [activePage, setActivePage] = useUncontrolled({\n value: page,\n onChange,\n defaultValue: initialPage,\n finalValue: initialPage,\n })\n\n const setPage = (pageNumber: number) => {\n if (pageNumber <= 0) {\n setActivePage(1)\n } else if (pageNumber > _total) {\n setActivePage(_total)\n } else {\n setActivePage(pageNumber)\n }\n }\n\n const next = () => setPage(activePage + 1)\n const previous = () => setPage(activePage - 1)\n const first = () => setPage(1)\n const last = () => setPage(_total)\n\n const paginationRange = useMemo((): (number | typeof DOTS)[] => {\n const totalPageNumbers = siblings * 2 + 3 + boundaries * 2\n if (totalPageNumbers >= _total) {\n return range(1, _total)\n }\n\n const leftSiblingIndex = Math.max(activePage - siblings, boundaries)\n const rightSiblingIndex = Math.min(activePage + siblings, _total - boundaries)\n\n const shouldShowLeftDots = leftSiblingIndex > boundaries + 2\n const shouldShowRightDots = rightSiblingIndex < _total - (boundaries + 1)\n\n if (!shouldShowLeftDots && shouldShowRightDots) {\n const leftItemCount = siblings * 2 + boundaries + 2\n return [...range(1, leftItemCount), DOTS, ...range(_total - (boundaries - 1), _total)]\n }\n\n if (shouldShowLeftDots && !shouldShowRightDots) {\n const rightItemCount = boundaries + 1 + 2 * siblings\n return [...range(1, boundaries), DOTS, ...range(_total - rightItemCount, _total)]\n }\n\n return [\n ...range(1, boundaries),\n DOTS,\n ...range(leftSiblingIndex, rightSiblingIndex),\n DOTS,\n ...range(_total - boundaries + 1, _total),\n ]\n }, [_total, siblings, boundaries, activePage])\n\n return {\n range: paginationRange,\n active: activePage,\n setPage,\n next,\n previous,\n first,\n last,\n }\n}\n"],"mappings":"8FAKA,
|
|
1
|
+
{"version":3,"file":"use-pagination.cjs","names":["useUncontrolled","useMemo","require_useUncontrolled","react","range","length","end","start","index","DOTS","usePagination","_total","total","activePage","setActivePage","page","initialPage","setPage","pageNumber","siblings","boundaries","leftSiblingIndex","rightSiblingIndex","shouldShowLeftDots","shouldShowRightDots","rightItemCount"],"sources":["../../../src/components/pagination/use-pagination.ts"],"sourcesContent":["// https://github.com/mantinedev/mantine/blob/95115daf60364ba2e5aba5e5d42d69103f90cb1a/packages/%40mantine/hooks/src/use-pagination/use-pagination.ts\n\nimport { useMemo } from 'react'\nimport { useUncontrolled } from '~/shared/hooks/useUncontrolled'\n\nfunction range(start: number, end: number) {\n const length = end - start + 1\n return Array.from({ length }, (_, index) => index + start)\n}\n\nexport const DOTS: unique symbol = Symbol('dots')\n\nexport interface PaginationParams {\n initialPage?: number\n page?: number\n total: number\n siblings?: number\n boundaries?: number\n onChange?: (page: number) => void\n}\n\nexport const usePagination = ({\n total,\n siblings = 1,\n boundaries = 1,\n page,\n initialPage = 1,\n onChange,\n}: PaginationParams) => {\n const _total = Math.max(Math.trunc(total), 0)\n const [activePage, setActivePage] = useUncontrolled({\n value: page,\n onChange,\n defaultValue: initialPage,\n finalValue: initialPage,\n })\n\n const setPage = (pageNumber: number) => {\n if (pageNumber <= 0) {\n setActivePage(1)\n } else if (pageNumber > _total) {\n setActivePage(_total)\n } else {\n setActivePage(pageNumber)\n }\n }\n\n const next = () => setPage(activePage + 1)\n const previous = () => setPage(activePage - 1)\n const first = () => setPage(1)\n const last = () => setPage(_total)\n\n const paginationRange = useMemo((): (number | typeof DOTS)[] => {\n const totalPageNumbers = siblings * 2 + 3 + boundaries * 2\n if (totalPageNumbers >= _total) {\n return range(1, _total)\n }\n\n const leftSiblingIndex = Math.max(activePage - siblings, boundaries)\n const rightSiblingIndex = Math.min(activePage + siblings, _total - boundaries)\n\n const shouldShowLeftDots = leftSiblingIndex > boundaries + 2\n const shouldShowRightDots = rightSiblingIndex < _total - (boundaries + 1)\n\n if (!shouldShowLeftDots && shouldShowRightDots) {\n const leftItemCount = siblings * 2 + boundaries + 2\n return [...range(1, leftItemCount), DOTS, ...range(_total - (boundaries - 1), _total)]\n }\n\n if (shouldShowLeftDots && !shouldShowRightDots) {\n const rightItemCount = boundaries + 1 + 2 * siblings\n return [...range(1, boundaries), DOTS, ...range(_total - rightItemCount, _total)]\n }\n\n return [\n ...range(1, boundaries),\n DOTS,\n ...range(leftSiblingIndex, rightSiblingIndex),\n DOTS,\n ...range(_total - boundaries + 1, _total),\n ]\n }, [_total, siblings, boundaries, activePage])\n\n return {\n range: paginationRange,\n active: activePage,\n setPage,\n next,\n previous,\n first,\n last,\n }\n}\n"],"mappings":"A,8FAKA,SAASI,EAAM,EAAe,EAAa,CACzC,IAAMC,EAASC,EAAMC,EAAQ,EAC7B,OAAO,MAAM,KAAK,CAAE,QAAO,GAAI,EAAG,IAAUC,EAAQD,CAAK,CAC3D,CAEA,IAAaE,EAAsB,OAAO,MAAM,EAWnCC,GAAiB,CAC5B,QACA,WAAW,EACX,aAAa,EACb,OACA,cAAc,EACd,cACsB,CACtB,IAAMC,EAAS,KAAK,IAAI,KAAK,MAAMC,CAAK,EAAG,CAAC,EACtC,CAACC,EAAYC,GAAiBd,EAAAA,gBAAgB,CAClD,MAAOe,EACP,WACA,aAAcC,EACd,WAAYA,CACd,CAAC,EAEKC,EAAW,GAAuB,CAEpCH,EADEI,GAAc,EACF,EACLA,EAAaP,EACRA,EAEAO,CAAU,CAE5B,EAsCA,MAAO,CACL,OAAA,EAhCsBjB,EAAAA,QAAAA,KAAwC,CAE9D,GADyBkB,EAAW,EAAI,EAAIC,EAAa,GACjCT,EACtB,OAAOP,EAAM,EAAGO,CAAM,EAGxB,IAAMU,EAAmB,KAAK,IAAIR,EAAaM,EAAUC,CAAU,EAC7DE,EAAoB,KAAK,IAAIT,EAAaM,EAAUR,EAASS,CAAU,EAEvEG,EAAqBF,EAAmBD,EAAa,EACrDI,EAAsBF,EAAoBX,GAAUS,EAAa,GAEvE,GAAI,CAACG,GAAsBC,EAEzB,MAAO,CAAC,GAAGpB,EAAM,EADKe,EAAW,EAAIC,EAAa,CACjB,EAAGX,EAAM,GAAGL,EAAMO,GAAUS,EAAa,GAAIT,CAAM,CAAC,EAGvF,GAAIY,GAAsB,CAACC,EAAqB,CAC9C,IAAMC,EAAiBL,EAAa,EAAI,EAAID,EAC5C,MAAO,CAAC,GAAGf,EAAM,EAAGgB,CAAU,EAAGX,EAAM,GAAGL,EAAMO,EAASc,EAAgBd,CAAM,CAAC,CAClF,CAEA,MAAO,CACL,GAAGP,EAAM,EAAGgB,CAAU,EACtBX,EACA,GAAGL,EAAMiB,EAAkBC,CAAiB,EAC5Cb,EACA,GAAGL,EAAMO,EAASS,EAAa,EAAGT,CAAM,CAC1C,CACF,EAAG,CAACA,EAAQQ,EAAUC,EAAYP,CAAU,CAGnC,EACP,OAAQA,EACR,UACA,SAxCiBI,EAAQJ,EAAa,CAAC,EAyCvC,aAxCqBI,EAAQJ,EAAa,CAAC,EAyC3C,UAxCkBI,EAAQ,CAAC,EAyC3B,SAxCiBA,EAAQN,CAAM,CAyCjC,CACF,E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useUncontrolled as e } from "../../shared/hooks/useUncontrolled.js";
|
|
3
3
|
import { useMemo as t } from "react";
|
|
4
|
-
|
|
4
|
+
// src/components/pagination/use-pagination.ts
|
|
5
5
|
function n(e, t) {
|
|
6
6
|
let n = t - e + 1;
|
|
7
7
|
return Array.from({ length: n }, (t, n) => n + e);
|
|
@@ -53,7 +53,6 @@ var r = Symbol("dots"), i = ({ total: i, siblings: a = 1, boundaries: o = 1, pag
|
|
|
53
53
|
last: () => p(u)
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
//#endregion
|
|
57
56
|
export { r as DOTS, i as usePagination };
|
|
58
57
|
|
|
59
58
|
//# sourceMappingURL=use-pagination.js.map
|