@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":"use-pagination.js","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":";;;;AAKA,
|
|
1
|
+
{"version":3,"file":"use-pagination.js","names":["range","length","end","start","index","DOTS","usePagination","_total","total","activePage","setActivePage","useUncontrolled","page","initialPage","setPage","pageNumber","useMemo","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":";;;;AAKA,SAASA,EAAM,GAAe,GAAa;CACzC,IAAMC,IAASC,IAAMC,IAAQ;CAC7B,OAAO,MAAM,KAAK,EAAE,UAAO,IAAI,GAAG,MAAUC,IAAQD,CAAK;AAC3D;AAEA,IAAaE,IAAsB,OAAO,MAAM,GAWnCC,KAAiB,EAC5B,UACA,cAAW,GACX,gBAAa,GACb,SACA,iBAAc,GACd,kBACsB;CACtB,IAAMC,IAAS,KAAK,IAAI,KAAK,MAAMC,CAAK,GAAG,CAAC,GACtC,CAACC,GAAYC,KAAiBC,EAAgB;EAClD,OAAOC;EACP;EACA,cAAcC;EACd,YAAYA;CACd,CAAC,GAEKC,KAAW,MAAuB;EACtC,AACEJ,EADEK,KAAc,IACF,IACLA,IAAaR,IACRA,IAEAQ,CAAU;CAE5B;CAsCA,OAAO;EACL,OAhCsBC,QAAwC;GAE9D,IADyBC,IAAW,IAAI,IAAIC,IAAa,KACjCX,GACtB,OAAOP,EAAM,GAAGO,CAAM;GAGxB,IAAMY,IAAmB,KAAK,IAAIV,IAAaQ,GAAUC,CAAU,GAC7DE,IAAoB,KAAK,IAAIX,IAAaQ,GAAUV,IAASW,CAAU,GAEvEG,IAAqBF,IAAmBD,IAAa,GACrDI,IAAsBF,IAAoBb,KAAUW,IAAa;GAEvE,IAAI,CAACG,KAAsBC,GAEzB,OAAO;IAAC,GAAGtB,EAAM,GADKiB,IAAW,IAAIC,IAAa,CACjB;IAAGb;IAAM,GAAGL,EAAMO,KAAUW,IAAa,IAAIX,CAAM;GAAC;GAGvF,IAAIc,KAAsB,CAACC,GAAqB;IAC9C,IAAMC,IAAiBL,IAAa,IAAI,IAAID;IAC5C,OAAO;KAAC,GAAGjB,EAAM,GAAGkB,CAAU;KAAGb;KAAM,GAAGL,EAAMO,IAASgB,GAAgBhB,CAAM;IAAC;GAClF;GAEA,OAAO;IACL,GAAGP,EAAM,GAAGkB,CAAU;IACtBb;IACA,GAAGL,EAAMmB,GAAkBC,CAAiB;IAC5Cf;IACA,GAAGL,EAAMO,IAASW,IAAa,GAAGX,CAAM;GAC1C;EACF,GAAG;GAACA;GAAQU;GAAUC;GAAYT;EAAU,CAGnC;EACP,QAAQA;EACR;EACA,YAxCiBK,EAAQL,IAAa,CAAC;EAyCvC,gBAxCqBK,EAAQL,IAAa,CAAC;EAyC3C,aAxCkBK,EAAQ,CAAC;EAyC3B,YAxCiBA,EAAQP,CAAM;CAyCjC;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.cjs","names":[],"sources":["../../../src/components/popover/Popover.tsx"],"sourcesContent":["import { Portal } from '@ark-ui/react'\nimport { Popover as ArkPopover } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { popover } from '@stokelp/styled-system/recipes'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\n\nimport { createStyleContext } from '~/utils/slots'\n\nconst { withProvider, withContext } = createStyleContext(popover)\n\nexport const Popover = withProvider(ArkPopover.Root, undefined, {\n defaultProps: {\n unmountOnExit: true,\n lazyMount: true,\n portalled: true,\n },\n})\nexport const PopoverCloseTrigger = withContext(styled(ArkPopover.CloseTrigger), 'closeTrigger')\nexport const PopoverTrigger = withContext(styled(ArkPopover.Trigger), 'trigger')\nexport const PopoverAnchor = withContext(styled(ArkPopover.Anchor), 'anchor')\n\nconst PopoverPositioner = withContext(styled(ArkPopover.Positioner), 'positioner')\n\nconst Content = forwardRef<ElementRef<typeof ArkPopover.Content>, ComponentPropsWithoutRef<typeof ArkPopover.Content>>(\n ({ children, ...props }, ref) => (\n <Portal>\n <PopoverPositioner>\n <ArkPopover.Content ref={ref} {...props}>\n {children}\n </ArkPopover.Content>\n </PopoverPositioner>\n </Portal>\n ),\n)\nContent.displayName = ArkPopover.Content.displayName\n\nexport const PopoverContent = withContext(styled(Content), 'content')\nexport const PopoverContext = ArkPopover.Context\n\nexport interface PopoverProps extends ComponentProps<typeof Popover> {}\nexport interface PopoverCloseTriggerProps extends ComponentProps<typeof PopoverCloseTrigger> {}\nexport interface PopoverContentProps extends ComponentProps<typeof PopoverContent> {}\nexport interface PopoverTriggerProps extends ComponentProps<typeof PopoverTrigger> {}\nexport interface PopoverAnchorProps extends ComponentProps<typeof PopoverAnchor> {}\nexport interface PopoverContextProps extends ComponentProps<typeof PopoverContext> {}\n"],"mappings":"2NASA,GAAM,CAAE,eAAc,
|
|
1
|
+
{"version":3,"file":"Popover.cjs","names":["createStyleContext","popover","ArkPopover","styled","forwardRef","Portal","require_slots","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","Popover","withProvider","PopoverCloseTrigger","withContext","PopoverTrigger","PopoverAnchor","PopoverPositioner","Content","props","PopoverContent","PopoverContext"],"sources":["../../../src/components/popover/Popover.tsx"],"sourcesContent":["import { Portal } from '@ark-ui/react'\nimport { Popover as ArkPopover } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { popover } from '@stokelp/styled-system/recipes'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\n\nimport { createStyleContext } from '~/utils/slots'\n\nconst { withProvider, withContext } = createStyleContext(popover)\n\nexport const Popover = withProvider(ArkPopover.Root, undefined, {\n defaultProps: {\n unmountOnExit: true,\n lazyMount: true,\n portalled: true,\n },\n})\nexport const PopoverCloseTrigger = withContext(styled(ArkPopover.CloseTrigger), 'closeTrigger')\nexport const PopoverTrigger = withContext(styled(ArkPopover.Trigger), 'trigger')\nexport const PopoverAnchor = withContext(styled(ArkPopover.Anchor), 'anchor')\n\nconst PopoverPositioner = withContext(styled(ArkPopover.Positioner), 'positioner')\n\nconst Content = forwardRef<ElementRef<typeof ArkPopover.Content>, ComponentPropsWithoutRef<typeof ArkPopover.Content>>(\n ({ children, ...props }, ref) => (\n <Portal>\n <PopoverPositioner>\n <ArkPopover.Content ref={ref} {...props}>\n {children}\n </ArkPopover.Content>\n </PopoverPositioner>\n </Portal>\n ),\n)\nContent.displayName = ArkPopover.Content.displayName\n\nexport const PopoverContent = withContext(styled(Content), 'content')\nexport const PopoverContext = ArkPopover.Context\n\nexport interface PopoverProps extends ComponentProps<typeof Popover> {}\nexport interface PopoverCloseTriggerProps extends ComponentProps<typeof PopoverCloseTrigger> {}\nexport interface PopoverContentProps extends ComponentProps<typeof PopoverContent> {}\nexport interface PopoverTriggerProps extends ComponentProps<typeof PopoverTrigger> {}\nexport interface PopoverAnchorProps extends ComponentProps<typeof PopoverAnchor> {}\nexport interface PopoverContextProps extends ComponentProps<typeof PopoverContext> {}\n"],"mappings":"A,2NASA,GAAM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,OAAO,EAEnDW,EAAUC,EAAaX,EAAAA,QAAW,KAAM,IAAA,GAAW,CAC9D,aAAc,CACZ,cAAe,GACf,UAAW,GACX,UAAW,EACb,CACF,CAAC,EACYY,EAAsBC,GAAA,EAAYZ,EAAAA,OAAAA,CAAOD,EAAAA,QAAW,YAAY,EAAG,cAAc,EACjFc,EAAiBD,GAAA,EAAYZ,EAAAA,OAAAA,CAAOD,EAAAA,QAAW,OAAO,EAAG,SAAS,EAClEe,EAAgBF,GAAA,EAAYZ,EAAAA,OAAAA,CAAOD,EAAAA,QAAW,MAAM,EAAG,QAAQ,EAEtEgB,EAAoBH,GAAA,EAAYZ,EAAAA,OAAAA,CAAOD,EAAAA,QAAW,UAAU,EAAG,YAAY,EAE3EiB,GAAA,EAAUf,EAAAA,WAAAA,EACb,CAAE,WAAU,GAAGgB,GAAS,KACvB,EAAAT,EAAA,IAAA,CAACN,EAAAA,OAAD,CAAA,UACE,EAAAM,EAAA,IAAA,CAACO,EAAD,CAAA,UACE,EAAAP,EAAA,IAAA,CAACT,EAAAA,QAAW,QAAZ,CAAyB,MAAK,GAAIkB,EAC/B,UACiB,CAAA,CACH,CAAA,CACb,CAAA,CAEZ,EACA,EAAQ,YAAclB,EAAAA,QAAW,QAAQ,YAEzC,IAAamB,EAAiBN,GAAA,EAAYZ,EAAAA,OAAAA,CAAOgB,CAAO,EAAG,SAAS,EACvDG,EAAiBpB,EAAAA,QAAW,Q"}
|
|
@@ -2,8 +2,8 @@ import { Popover as ArkPopover } from '@ark-ui/react';
|
|
|
2
2
|
import { ComponentProps, ForwardRefExoticComponent, RefAttributes, ReactNode } from 'react';
|
|
3
3
|
import { ComponentVariants } from '../../utils/slots';
|
|
4
4
|
import { PopoverRecipe } from '@stokelp/styled-system/recipes';
|
|
5
|
-
import { StyledComponent } from '@stokelp/styled-system/
|
|
6
|
-
export declare const Popover: ComponentVariants<(props: ArkPopover.RootProps) => import(
|
|
5
|
+
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
6
|
+
export declare const Popover: ComponentVariants<(props: ArkPopover.RootProps) => import('react').JSX.Element, PopoverRecipe>;
|
|
7
7
|
export declare const PopoverCloseTrigger: StyledComponent<ForwardRefExoticComponent<ArkPopover.CloseTriggerProps & RefAttributes<HTMLButtonElement>>, {}>;
|
|
8
8
|
export declare const PopoverTrigger: StyledComponent<ForwardRefExoticComponent<ArkPopover.TriggerProps & RefAttributes<HTMLButtonElement>>, {}>;
|
|
9
9
|
export declare const PopoverAnchor: StyledComponent<ForwardRefExoticComponent<ArkPopover.AnchorProps & RefAttributes<HTMLDivElement>>, {}>;
|
|
@@ -5,7 +5,7 @@ import { styled as r } from "@stokelp/styled-system/jsx";
|
|
|
5
5
|
import { popover as i } from "@stokelp/styled-system/recipes";
|
|
6
6
|
import { forwardRef as a } from "react";
|
|
7
7
|
import { jsx as o } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/popover/Popover.tsx
|
|
9
9
|
var { withProvider: s, withContext: c } = e(i), l = s(t.Root, void 0, { defaultProps: {
|
|
10
10
|
unmountOnExit: !0,
|
|
11
11
|
lazyMount: !0,
|
|
@@ -17,7 +17,6 @@ var { withProvider: s, withContext: c } = e(i), l = s(t.Root, void 0, { defaultP
|
|
|
17
17
|
}) }) }));
|
|
18
18
|
m.displayName = t.Content.displayName;
|
|
19
19
|
var h = c(r(m), "content"), g = t.Context;
|
|
20
|
-
//#endregion
|
|
21
20
|
export { l as Popover, f as PopoverAnchor, u as PopoverCloseTrigger, h as PopoverContent, g as PopoverContext, d as PopoverTrigger };
|
|
22
21
|
|
|
23
22
|
//# sourceMappingURL=Popover.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.js","names":[],"sources":["../../../src/components/popover/Popover.tsx"],"sourcesContent":["import { Portal } from '@ark-ui/react'\nimport { Popover as ArkPopover } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { popover } from '@stokelp/styled-system/recipes'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\n\nimport { createStyleContext } from '~/utils/slots'\n\nconst { withProvider, withContext } = createStyleContext(popover)\n\nexport const Popover = withProvider(ArkPopover.Root, undefined, {\n defaultProps: {\n unmountOnExit: true,\n lazyMount: true,\n portalled: true,\n },\n})\nexport const PopoverCloseTrigger = withContext(styled(ArkPopover.CloseTrigger), 'closeTrigger')\nexport const PopoverTrigger = withContext(styled(ArkPopover.Trigger), 'trigger')\nexport const PopoverAnchor = withContext(styled(ArkPopover.Anchor), 'anchor')\n\nconst PopoverPositioner = withContext(styled(ArkPopover.Positioner), 'positioner')\n\nconst Content = forwardRef<ElementRef<typeof ArkPopover.Content>, ComponentPropsWithoutRef<typeof ArkPopover.Content>>(\n ({ children, ...props }, ref) => (\n <Portal>\n <PopoverPositioner>\n <ArkPopover.Content ref={ref} {...props}>\n {children}\n </ArkPopover.Content>\n </PopoverPositioner>\n </Portal>\n ),\n)\nContent.displayName = ArkPopover.Content.displayName\n\nexport const PopoverContent = withContext(styled(Content), 'content')\nexport const PopoverContext = ArkPopover.Context\n\nexport interface PopoverProps extends ComponentProps<typeof Popover> {}\nexport interface PopoverCloseTriggerProps extends ComponentProps<typeof PopoverCloseTrigger> {}\nexport interface PopoverContentProps extends ComponentProps<typeof PopoverContent> {}\nexport interface PopoverTriggerProps extends ComponentProps<typeof PopoverTrigger> {}\nexport interface PopoverAnchorProps extends ComponentProps<typeof PopoverAnchor> {}\nexport interface PopoverContextProps extends ComponentProps<typeof PopoverContext> {}\n"],"mappings":";;;;;;;;AASA,IAAM,EAAE,iBAAc,
|
|
1
|
+
{"version":3,"file":"Popover.js","names":["Popover","ArkPopover","createStyleContext","popover","Popover$1","withProvider","Popover","PopoverCloseTrigger","withContext","styled","PopoverTrigger","PopoverAnchor","PopoverPositioner","Content","forwardRef","props","Portal","PopoverContent","PopoverContext"],"sources":["../../../src/components/popover/Popover.tsx"],"sourcesContent":["import { Portal } from '@ark-ui/react'\nimport { Popover as ArkPopover } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { popover } from '@stokelp/styled-system/recipes'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\n\nimport { createStyleContext } from '~/utils/slots'\n\nconst { withProvider, withContext } = createStyleContext(popover)\n\nexport const Popover = withProvider(ArkPopover.Root, undefined, {\n defaultProps: {\n unmountOnExit: true,\n lazyMount: true,\n portalled: true,\n },\n})\nexport const PopoverCloseTrigger = withContext(styled(ArkPopover.CloseTrigger), 'closeTrigger')\nexport const PopoverTrigger = withContext(styled(ArkPopover.Trigger), 'trigger')\nexport const PopoverAnchor = withContext(styled(ArkPopover.Anchor), 'anchor')\n\nconst PopoverPositioner = withContext(styled(ArkPopover.Positioner), 'positioner')\n\nconst Content = forwardRef<ElementRef<typeof ArkPopover.Content>, ComponentPropsWithoutRef<typeof ArkPopover.Content>>(\n ({ children, ...props }, ref) => (\n <Portal>\n <PopoverPositioner>\n <ArkPopover.Content ref={ref} {...props}>\n {children}\n </ArkPopover.Content>\n </PopoverPositioner>\n </Portal>\n ),\n)\nContent.displayName = ArkPopover.Content.displayName\n\nexport const PopoverContent = withContext(styled(Content), 'content')\nexport const PopoverContext = ArkPopover.Context\n\nexport interface PopoverProps extends ComponentProps<typeof Popover> {}\nexport interface PopoverCloseTriggerProps extends ComponentProps<typeof PopoverCloseTrigger> {}\nexport interface PopoverContentProps extends ComponentProps<typeof PopoverContent> {}\nexport interface PopoverTriggerProps extends ComponentProps<typeof PopoverTrigger> {}\nexport interface PopoverAnchorProps extends ComponentProps<typeof PopoverAnchor> {}\nexport interface PopoverContextProps extends ComponentProps<typeof PopoverContext> {}\n"],"mappings":";;;;;;;;AASA,IAAM,EAAE,iBAAc,mBAAgBE,EAAmBC,CAAO,GAEnDH,IAAUK,EAAaJ,EAAW,MAAM,KAAA,GAAW,EAC9D,cAAc;CACZ,eAAe;CACf,WAAW;CACX,WAAW;AACb,EACF,CAAC,GACYM,IAAsBC,EAAYC,EAAOR,EAAW,YAAY,GAAG,cAAc,GACjFS,IAAiBF,EAAYC,EAAOR,EAAW,OAAO,GAAG,SAAS,GAClEU,IAAgBH,EAAYC,EAAOR,EAAW,MAAM,GAAG,QAAQ,GAEtEW,IAAoBJ,EAAYC,EAAOR,EAAW,UAAU,GAAG,YAAY,GAE3EY,IAAUC,GACb,EAAE,aAAU,GAAGC,KAAS,MACvB,kBAACC,GAAD,EAAA,UACE,kBAACJ,GAAD,EAAA,UACE,kBAACX,EAAW,SAAZ;CAAyB;CAAK,GAAIc;CAC/B;AACiB,CAAA,EACH,CAAA,EACb,CAAA,CAEZ;AACA,EAAQ,cAAcd,EAAW,QAAQ;AAEzC,IAAagB,IAAiBT,EAAYC,EAAOI,CAAO,GAAG,SAAS,GACvDK,IAAiBjB,EAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButtonGroup.cjs","names":[],"sources":["../../../src/components/radio-button-group/RadioButtonGroup.tsx"],"sourcesContent":["import { RadioGroup as ArkRadioGroup } from '@ark-ui/react'\nimport { radioButtonGroup } from '@stokelp/styled-system/recipes'\n\nimport { createStyleContext } from '~/utils/slots'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nconst { withProvider, withContext } = createStyleContext(radioButtonGroup)\n\nconst RadioButtonGroupItemControl = withContext(styled(ArkRadioGroup.ItemControl), 'itemControl')\nconst RadioButtonGroupItemText = withContext(styled(ArkRadioGroup.ItemText), 'itemText')\ntype ArkItemProps = ComponentPropsWithoutRef<typeof ArkRadioGroup.Item>\ntype ItemProps = Omit<ArkItemProps, 'value'> & { value: string | number | boolean }\nconst Item = forwardRef<ElementRef<typeof ArkRadioGroup.Item>, ItemProps>(({ children, value, ...props }, ref) => (\n <ArkRadioGroup.Item ref={ref} {...props} value={value as string}>\n <RadioButtonGroupItemText>{children}</RadioButtonGroupItemText>\n <RadioButtonGroupItemControl />\n <ArkRadioGroup.ItemHiddenInput />\n </ArkRadioGroup.Item>\n))\n\nexport const RadioButtonGroup = withProvider(styled(ArkRadioGroup.Root), 'root', {\n defaultProps: {\n orientation: 'horizontal',\n },\n})\nexport const RadioButtonGroupItem = withContext(styled(Item), 'item')\nexport const RadioButtonGroupLabel = withContext(styled(ArkRadioGroup.Label), 'label')\n\nexport interface RadioButtonGroupProps extends ComponentProps<typeof RadioButtonGroup> {}\nexport interface RadioButtonGroupItemProps extends ComponentProps<typeof RadioButtonGroupItem> {}\nexport interface RadioButtonGroupLabelProps extends ComponentProps<typeof RadioButtonGroupLabel> {}\n"],"mappings":"2NAQA,GAAM,CAAE,eAAc,
|
|
1
|
+
{"version":3,"file":"RadioButtonGroup.cjs","names":["createStyleContext","radioButtonGroup","styled","ArkRadioGroup","forwardRef","require_slots","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","RadioButtonGroupItemControl","withContext","RadioButtonGroupItemText","Item","props","RadioButtonGroup","withProvider","RadioButtonGroupItem","RadioButtonGroupLabel"],"sources":["../../../src/components/radio-button-group/RadioButtonGroup.tsx"],"sourcesContent":["import { RadioGroup as ArkRadioGroup } from '@ark-ui/react'\nimport { radioButtonGroup } from '@stokelp/styled-system/recipes'\n\nimport { createStyleContext } from '~/utils/slots'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nconst { withProvider, withContext } = createStyleContext(radioButtonGroup)\n\nconst RadioButtonGroupItemControl = withContext(styled(ArkRadioGroup.ItemControl), 'itemControl')\nconst RadioButtonGroupItemText = withContext(styled(ArkRadioGroup.ItemText), 'itemText')\ntype ArkItemProps = ComponentPropsWithoutRef<typeof ArkRadioGroup.Item>\ntype ItemProps = Omit<ArkItemProps, 'value'> & { value: string | number | boolean }\nconst Item = forwardRef<ElementRef<typeof ArkRadioGroup.Item>, ItemProps>(({ children, value, ...props }, ref) => (\n <ArkRadioGroup.Item ref={ref} {...props} value={value as string}>\n <RadioButtonGroupItemText>{children}</RadioButtonGroupItemText>\n <RadioButtonGroupItemControl />\n <ArkRadioGroup.ItemHiddenInput />\n </ArkRadioGroup.Item>\n))\n\nexport const RadioButtonGroup = withProvider(styled(ArkRadioGroup.Root), 'root', {\n defaultProps: {\n orientation: 'horizontal',\n },\n})\nexport const RadioButtonGroupItem = withContext(styled(Item), 'item')\nexport const RadioButtonGroupLabel = withContext(styled(ArkRadioGroup.Label), 'label')\n\nexport interface RadioButtonGroupProps extends ComponentProps<typeof RadioButtonGroup> {}\nexport interface RadioButtonGroupItemProps extends ComponentProps<typeof RadioButtonGroupItem> {}\nexport interface RadioButtonGroupLabelProps extends ComponentProps<typeof RadioButtonGroupLabel> {}\n"],"mappings":"A,2NAQA,GAAM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,gBAAgB,EAEnEU,EAA8BC,GAAA,EAAYV,EAAAA,OAAAA,CAAOC,EAAAA,WAAc,WAAW,EAAG,aAAa,EAC1FU,EAA2BD,GAAA,EAAYV,EAAAA,OAAAA,CAAOC,EAAAA,WAAc,QAAQ,EAAG,UAAU,EAGjFW,GAAA,EAAOV,EAAAA,WAAAA,EAA8D,CAAE,WAAU,QAAO,GAAGW,GAAS,KACxG,EAAAL,EAAA,KAAA,CAACP,EAAAA,WAAc,KAAf,CAAyB,MAAK,GAAIY,EAAc,QAAhD,SAAA,EACE,EAAAL,EAAA,IAAA,CAACG,EAAD,CAA2B,UAAmC,CAAA,GAC9D,EAAAH,EAAA,IAAA,CAACC,EAAD,CAA8B,CAAA,GAC9B,EAAAD,EAAA,IAAA,CAACP,EAAAA,WAAc,gBAAf,CAAgC,CAAA,CACd,CACrB,CAAA,CAAA,EAEYa,EAAmBC,GAAA,EAAaf,EAAAA,OAAAA,CAAOC,EAAAA,WAAc,IAAI,EAAG,OAAQ,CAC/E,aAAc,CACZ,YAAa,YACf,CACF,CAAC,EACYe,EAAuBN,GAAA,EAAYV,EAAAA,OAAAA,CAAOY,CAAI,EAAG,MAAM,EACvDK,EAAwBP,GAAA,EAAYV,EAAAA,OAAAA,CAAOC,EAAAA,WAAc,KAAK,EAAG,OAAO,E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RadioGroup as ArkRadioGroup } from '@ark-ui/react';
|
|
2
2
|
import { ComponentProps, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
import { ComponentVariants } from '../../utils/slots';
|
|
4
|
-
import { StyledComponent } from '@stokelp/styled-system/
|
|
4
|
+
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
5
5
|
import { RadioButtonGroupRecipe } from '@stokelp/styled-system/recipes';
|
|
6
6
|
export declare const RadioButtonGroup: ComponentVariants<StyledComponent<ForwardRefExoticComponent<ArkRadioGroup.RootProps & RefAttributes<HTMLDivElement>>, {}>, RadioButtonGroupRecipe>;
|
|
7
7
|
export declare const RadioButtonGroupItem: StyledComponent<ForwardRefExoticComponent<Omit<Omit<ArkRadioGroup.ItemProps & RefAttributes<HTMLLabelElement>, "ref">, "value"> & {
|
|
@@ -5,7 +5,7 @@ import { styled as n } from "@stokelp/styled-system/jsx";
|
|
|
5
5
|
import { radioButtonGroup as r } from "@stokelp/styled-system/recipes";
|
|
6
6
|
import { forwardRef as i } from "react";
|
|
7
7
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/radio-button-group/RadioButtonGroup.tsx
|
|
9
9
|
var { withProvider: s, withContext: c } = e(r), l = c(n(t.ItemControl), "itemControl"), u = c(n(t.ItemText), "itemText"), d = i(({ children: e, value: n, ...r }, i) => /* @__PURE__ */ o(t.Item, {
|
|
10
10
|
ref: i,
|
|
11
11
|
...r,
|
|
@@ -16,7 +16,6 @@ var { withProvider: s, withContext: c } = e(r), l = c(n(t.ItemControl), "itemCon
|
|
|
16
16
|
/* @__PURE__ */ a(t.ItemHiddenInput, {})
|
|
17
17
|
]
|
|
18
18
|
})), f = s(n(t.Root), "root", { defaultProps: { orientation: "horizontal" } }), p = c(n(d), "item"), m = c(n(t.Label), "label");
|
|
19
|
-
//#endregion
|
|
20
19
|
export { f as RadioButtonGroup, p as RadioButtonGroupItem, m as RadioButtonGroupLabel };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=RadioButtonGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButtonGroup.js","names":[],"sources":["../../../src/components/radio-button-group/RadioButtonGroup.tsx"],"sourcesContent":["import { RadioGroup as ArkRadioGroup } from '@ark-ui/react'\nimport { radioButtonGroup } from '@stokelp/styled-system/recipes'\n\nimport { createStyleContext } from '~/utils/slots'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nconst { withProvider, withContext } = createStyleContext(radioButtonGroup)\n\nconst RadioButtonGroupItemControl = withContext(styled(ArkRadioGroup.ItemControl), 'itemControl')\nconst RadioButtonGroupItemText = withContext(styled(ArkRadioGroup.ItemText), 'itemText')\ntype ArkItemProps = ComponentPropsWithoutRef<typeof ArkRadioGroup.Item>\ntype ItemProps = Omit<ArkItemProps, 'value'> & { value: string | number | boolean }\nconst Item = forwardRef<ElementRef<typeof ArkRadioGroup.Item>, ItemProps>(({ children, value, ...props }, ref) => (\n <ArkRadioGroup.Item ref={ref} {...props} value={value as string}>\n <RadioButtonGroupItemText>{children}</RadioButtonGroupItemText>\n <RadioButtonGroupItemControl />\n <ArkRadioGroup.ItemHiddenInput />\n </ArkRadioGroup.Item>\n))\n\nexport const RadioButtonGroup = withProvider(styled(ArkRadioGroup.Root), 'root', {\n defaultProps: {\n orientation: 'horizontal',\n },\n})\nexport const RadioButtonGroupItem = withContext(styled(Item), 'item')\nexport const RadioButtonGroupLabel = withContext(styled(ArkRadioGroup.Label), 'label')\n\nexport interface RadioButtonGroupProps extends ComponentProps<typeof RadioButtonGroup> {}\nexport interface RadioButtonGroupItemProps extends ComponentProps<typeof RadioButtonGroupItem> {}\nexport interface RadioButtonGroupLabelProps extends ComponentProps<typeof RadioButtonGroupLabel> {}\n"],"mappings":";;;;;;;;AAQA,IAAM,EAAE,iBAAc,
|
|
1
|
+
{"version":3,"file":"RadioButtonGroup.js","names":["ArkRadioGroup","createStyleContext","radioButtonGroup","RadioButtonGroupItemControl","withContext","styled","RadioGroup","RadioButtonGroupItemText","Item","forwardRef","props","RadioButtonGroup","withProvider","RadioButtonGroupItem","RadioButtonGroupLabel"],"sources":["../../../src/components/radio-button-group/RadioButtonGroup.tsx"],"sourcesContent":["import { RadioGroup as ArkRadioGroup } from '@ark-ui/react'\nimport { radioButtonGroup } from '@stokelp/styled-system/recipes'\n\nimport { createStyleContext } from '~/utils/slots'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nconst { withProvider, withContext } = createStyleContext(radioButtonGroup)\n\nconst RadioButtonGroupItemControl = withContext(styled(ArkRadioGroup.ItemControl), 'itemControl')\nconst RadioButtonGroupItemText = withContext(styled(ArkRadioGroup.ItemText), 'itemText')\ntype ArkItemProps = ComponentPropsWithoutRef<typeof ArkRadioGroup.Item>\ntype ItemProps = Omit<ArkItemProps, 'value'> & { value: string | number | boolean }\nconst Item = forwardRef<ElementRef<typeof ArkRadioGroup.Item>, ItemProps>(({ children, value, ...props }, ref) => (\n <ArkRadioGroup.Item ref={ref} {...props} value={value as string}>\n <RadioButtonGroupItemText>{children}</RadioButtonGroupItemText>\n <RadioButtonGroupItemControl />\n <ArkRadioGroup.ItemHiddenInput />\n </ArkRadioGroup.Item>\n))\n\nexport const RadioButtonGroup = withProvider(styled(ArkRadioGroup.Root), 'root', {\n defaultProps: {\n orientation: 'horizontal',\n },\n})\nexport const RadioButtonGroupItem = withContext(styled(Item), 'item')\nexport const RadioButtonGroupLabel = withContext(styled(ArkRadioGroup.Label), 'label')\n\nexport interface RadioButtonGroupProps extends ComponentProps<typeof RadioButtonGroup> {}\nexport interface RadioButtonGroupItemProps extends ComponentProps<typeof RadioButtonGroupItem> {}\nexport interface RadioButtonGroupLabelProps extends ComponentProps<typeof RadioButtonGroupLabel> {}\n"],"mappings":";;;;;;;;AAQA,IAAM,EAAE,iBAAc,mBAAgBC,EAAmBC,CAAgB,GAEnEC,IAA8BC,EAAYC,EAAOL,EAAc,WAAW,GAAG,aAAa,GAC1FO,IAA2BH,EAAYC,EAAOL,EAAc,QAAQ,GAAG,UAAU,GAGjFQ,IAAOC,GAA8D,EAAE,aAAU,UAAO,GAAGC,KAAS,MACxG,kBAACV,EAAc,MAAf;CAAyB;CAAK,GAAIU;CAAc;CAAhD,UAAA;EACE,kBAACH,GAAD,EAA2B,YAAmC,CAAA;EAC9D,kBAACJ,GAAD,CAA8B,CAAA;EAC9B,kBAACH,EAAc,iBAAf,CAAgC,CAAA;CACd;AACrB,CAAA,CAAA,GAEYW,IAAmBC,EAAaP,EAAOL,EAAc,IAAI,GAAG,QAAQ,EAC/E,cAAc,EACZ,aAAa,aACf,EACF,CAAC,GACYa,IAAuBT,EAAYC,EAAOG,CAAI,GAAG,MAAM,GACvDM,IAAwBV,EAAYC,EAAOL,EAAc,KAAK,GAAG,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioCardGroup.cjs","names":[],"sources":["../../../src/components/radio-card-group/RadioCardGroup.tsx"],"sourcesContent":["import { ark, RadioGroup as ArkRadioGroup } from '@ark-ui/react'\nimport { radioCardGroup } from '@stokelp/styled-system/recipes'\n\nimport { createStyleContext } from '~/utils/slots'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nconst { withProvider, withContext } = createStyleContext(radioCardGroup, {\n dataAttr: true,\n})\n\nconst RadioCardGroupItemControl = withContext(styled(ArkRadioGroup.ItemControl), 'itemControl')\n\nexport const RadioCardGroupItemTitle = withContext(styled(ArkRadioGroup.ItemText), 'itemTitle')\nexport const RadioCardGroupItemContent = withContext(styled('div'), 'itemContent')\nexport const RadioCardGroupItemDescription = withContext(styled('p'), 'itemDescription')\nexport const RadioCardGroupItemImage = withContext(styled(ark.img), 'itemImage')\n\ntype ArkItemProps = ComponentPropsWithoutRef<typeof ArkRadioGroup.Item>\ntype ItemProps = Omit<ArkItemProps, 'value'> & { value: string | number | boolean }\nconst Item = forwardRef<ElementRef<typeof ArkRadioGroup.Item>, ItemProps>(({ children, value, ...props }, ref) => (\n <ArkRadioGroup.Item ref={ref} {...props} value={value as string}>\n <RadioCardGroupItemControl />\n {children}\n <ArkRadioGroup.ItemHiddenInput />\n </ArkRadioGroup.Item>\n))\n\nexport const RadioCardGroup = withProvider(styled(ArkRadioGroup.Root), 'root')\nexport const RadioCardGroupItem = withContext(styled(Item), 'item')\n\nexport interface RadioCardGroupProps extends ComponentProps<typeof RadioCardGroup> {}\nexport interface RadioCardGroupItemProps extends ComponentProps<typeof RadioCardGroupItem> {}\nexport interface RadioCardGroupItemTitleProps extends ComponentProps<typeof RadioCardGroupItemTitle> {}\nexport interface RadioCardGroupItemContentProps extends ComponentProps<typeof RadioCardGroupItemContent> {}\nexport interface RadioCardGroupItemDescriptionProps extends ComponentProps<typeof RadioCardGroupItemDescription> {}\nexport interface RadioCardGroupItemImageProps extends ComponentProps<typeof RadioCardGroupItemImage> {}\n"],"mappings":"2NAQA,GAAM,CAAE,eAAc,
|
|
1
|
+
{"version":3,"file":"RadioCardGroup.cjs","names":["createStyleContext","radioCardGroup","styled","ArkRadioGroup","ark","forwardRef","require_slots","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","RadioCardGroupItemControl","withContext","RadioCardGroupItemTitle","RadioCardGroupItemContent","RadioCardGroupItemDescription","RadioCardGroupItemImage","Item","props","children","RadioCardGroup","withProvider","RadioCardGroupItem"],"sources":["../../../src/components/radio-card-group/RadioCardGroup.tsx"],"sourcesContent":["import { ark, RadioGroup as ArkRadioGroup } from '@ark-ui/react'\nimport { radioCardGroup } from '@stokelp/styled-system/recipes'\n\nimport { createStyleContext } from '~/utils/slots'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nconst { withProvider, withContext } = createStyleContext(radioCardGroup, {\n dataAttr: true,\n})\n\nconst RadioCardGroupItemControl = withContext(styled(ArkRadioGroup.ItemControl), 'itemControl')\n\nexport const RadioCardGroupItemTitle = withContext(styled(ArkRadioGroup.ItemText), 'itemTitle')\nexport const RadioCardGroupItemContent = withContext(styled('div'), 'itemContent')\nexport const RadioCardGroupItemDescription = withContext(styled('p'), 'itemDescription')\nexport const RadioCardGroupItemImage = withContext(styled(ark.img), 'itemImage')\n\ntype ArkItemProps = ComponentPropsWithoutRef<typeof ArkRadioGroup.Item>\ntype ItemProps = Omit<ArkItemProps, 'value'> & { value: string | number | boolean }\nconst Item = forwardRef<ElementRef<typeof ArkRadioGroup.Item>, ItemProps>(({ children, value, ...props }, ref) => (\n <ArkRadioGroup.Item ref={ref} {...props} value={value as string}>\n <RadioCardGroupItemControl />\n {children}\n <ArkRadioGroup.ItemHiddenInput />\n </ArkRadioGroup.Item>\n))\n\nexport const RadioCardGroup = withProvider(styled(ArkRadioGroup.Root), 'root')\nexport const RadioCardGroupItem = withContext(styled(Item), 'item')\n\nexport interface RadioCardGroupProps extends ComponentProps<typeof RadioCardGroup> {}\nexport interface RadioCardGroupItemProps extends ComponentProps<typeof RadioCardGroupItem> {}\nexport interface RadioCardGroupItemTitleProps extends ComponentProps<typeof RadioCardGroupItemTitle> {}\nexport interface RadioCardGroupItemContentProps extends ComponentProps<typeof RadioCardGroupItemContent> {}\nexport interface RadioCardGroupItemDescriptionProps extends ComponentProps<typeof RadioCardGroupItemDescription> {}\nexport interface RadioCardGroupItemImageProps extends ComponentProps<typeof RadioCardGroupItemImage> {}\n"],"mappings":"A,2NAQA,GAAM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,eAAgB,CACvE,SAAU,EACZ,CAAC,EAEKW,EAA4BC,GAAA,EAAYX,EAAAA,OAAAA,CAAOC,EAAAA,WAAc,WAAW,EAAG,aAAa,EAEjFW,EAA0BD,GAAA,EAAYX,EAAAA,OAAAA,CAAOC,EAAAA,WAAc,QAAQ,EAAG,WAAW,EACjFY,EAA4BF,GAAA,EAAYX,EAAAA,OAAAA,CAAO,KAAK,EAAG,aAAa,EACpEc,EAAgCH,GAAA,EAAYX,EAAAA,OAAAA,CAAO,GAAG,EAAG,iBAAiB,EAC1Ee,EAA0BJ,GAAA,EAAYX,EAAAA,OAAAA,CAAOE,EAAAA,IAAI,GAAG,EAAG,WAAW,EAIzEc,GAAA,EAAOb,EAAAA,WAAAA,EAA8D,CAAE,WAAU,QAAO,GAAGc,GAAS,KACxG,EAAAR,EAAA,KAAA,CAACR,EAAAA,WAAc,KAAf,CAAyB,MAAK,GAAIgB,EAAc,QAAhD,SAAA,EACE,EAAAR,EAAA,IAAA,CAACC,EAAD,CAA4B,CAAA,EAC3BQ,GACD,EAAAT,EAAA,IAAA,CAACR,EAAAA,WAAc,gBAAf,CAAgC,CAAA,CACd,CACrB,CAAA,CAAA,EAEYkB,EAAiBC,GAAA,EAAapB,EAAAA,OAAAA,CAAOC,EAAAA,WAAc,IAAI,EAAG,MAAM,EAChEoB,EAAqBV,GAAA,EAAYX,EAAAA,OAAAA,CAAOgB,CAAI,EAAG,MAAM,E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RadioGroup as ArkRadioGroup, PolymorphicProps } from '@ark-ui/react';
|
|
2
2
|
import { ComponentProps, ForwardRefExoticComponent, RefAttributes, ClassAttributes, ImgHTMLAttributes } from 'react';
|
|
3
|
-
import { StyledComponent } from '@stokelp/styled-system/
|
|
3
|
+
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
4
4
|
import { ComponentVariants } from '../../utils/slots';
|
|
5
5
|
import { RadioCardGroupRecipe } from '@stokelp/styled-system/recipes';
|
|
6
6
|
export declare const RadioCardGroupItemTitle: StyledComponent<ForwardRefExoticComponent<ArkRadioGroup.ItemTextProps & RefAttributes<HTMLSpanElement>>, {}>;
|
|
@@ -5,7 +5,7 @@ import { styled as r } from "@stokelp/styled-system/jsx";
|
|
|
5
5
|
import { radioCardGroup as i } from "@stokelp/styled-system/recipes";
|
|
6
6
|
import { forwardRef as a } from "react";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/radio-card-group/RadioCardGroup.tsx
|
|
9
9
|
var { withProvider: c, withContext: l } = e(i, { dataAttr: !0 }), u = l(r(t.ItemControl), "itemControl"), d = l(r(t.ItemText), "itemTitle"), f = l(r("div"), "itemContent"), p = l(r("p"), "itemDescription"), m = l(r(n.img), "itemImage"), h = a(({ children: e, value: n, ...r }, i) => /* @__PURE__ */ s(t.Item, {
|
|
10
10
|
ref: i,
|
|
11
11
|
...r,
|
|
@@ -16,7 +16,6 @@ var { withProvider: c, withContext: l } = e(i, { dataAttr: !0 }), u = l(r(t.Item
|
|
|
16
16
|
/* @__PURE__ */ o(t.ItemHiddenInput, {})
|
|
17
17
|
]
|
|
18
18
|
})), g = c(r(t.Root), "root"), _ = l(r(h), "item");
|
|
19
|
-
//#endregion
|
|
20
19
|
export { g as RadioCardGroup, _ as RadioCardGroupItem, f as RadioCardGroupItemContent, p as RadioCardGroupItemDescription, m as RadioCardGroupItemImage, d as RadioCardGroupItemTitle };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=RadioCardGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioCardGroup.js","names":[],"sources":["../../../src/components/radio-card-group/RadioCardGroup.tsx"],"sourcesContent":["import { ark, RadioGroup as ArkRadioGroup } from '@ark-ui/react'\nimport { radioCardGroup } from '@stokelp/styled-system/recipes'\n\nimport { createStyleContext } from '~/utils/slots'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nconst { withProvider, withContext } = createStyleContext(radioCardGroup, {\n dataAttr: true,\n})\n\nconst RadioCardGroupItemControl = withContext(styled(ArkRadioGroup.ItemControl), 'itemControl')\n\nexport const RadioCardGroupItemTitle = withContext(styled(ArkRadioGroup.ItemText), 'itemTitle')\nexport const RadioCardGroupItemContent = withContext(styled('div'), 'itemContent')\nexport const RadioCardGroupItemDescription = withContext(styled('p'), 'itemDescription')\nexport const RadioCardGroupItemImage = withContext(styled(ark.img), 'itemImage')\n\ntype ArkItemProps = ComponentPropsWithoutRef<typeof ArkRadioGroup.Item>\ntype ItemProps = Omit<ArkItemProps, 'value'> & { value: string | number | boolean }\nconst Item = forwardRef<ElementRef<typeof ArkRadioGroup.Item>, ItemProps>(({ children, value, ...props }, ref) => (\n <ArkRadioGroup.Item ref={ref} {...props} value={value as string}>\n <RadioCardGroupItemControl />\n {children}\n <ArkRadioGroup.ItemHiddenInput />\n </ArkRadioGroup.Item>\n))\n\nexport const RadioCardGroup = withProvider(styled(ArkRadioGroup.Root), 'root')\nexport const RadioCardGroupItem = withContext(styled(Item), 'item')\n\nexport interface RadioCardGroupProps extends ComponentProps<typeof RadioCardGroup> {}\nexport interface RadioCardGroupItemProps extends ComponentProps<typeof RadioCardGroupItem> {}\nexport interface RadioCardGroupItemTitleProps extends ComponentProps<typeof RadioCardGroupItemTitle> {}\nexport interface RadioCardGroupItemContentProps extends ComponentProps<typeof RadioCardGroupItemContent> {}\nexport interface RadioCardGroupItemDescriptionProps extends ComponentProps<typeof RadioCardGroupItemDescription> {}\nexport interface RadioCardGroupItemImageProps extends ComponentProps<typeof RadioCardGroupItemImage> {}\n"],"mappings":";;;;;;;;AAQA,IAAM,EAAE,iBAAc,
|
|
1
|
+
{"version":3,"file":"RadioCardGroup.js","names":["ArkRadioGroup","createStyleContext","radioCardGroup","RadioCardGroupItemControl","withContext","styled","RadioGroup","RadioCardGroupItemTitle","RadioCardGroupItemContent","RadioCardGroupItemDescription","RadioCardGroupItemImage","ark","Item","forwardRef","props","children","RadioCardGroup","withProvider","RadioCardGroupItem"],"sources":["../../../src/components/radio-card-group/RadioCardGroup.tsx"],"sourcesContent":["import { ark, RadioGroup as ArkRadioGroup } from '@ark-ui/react'\nimport { radioCardGroup } from '@stokelp/styled-system/recipes'\n\nimport { createStyleContext } from '~/utils/slots'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nconst { withProvider, withContext } = createStyleContext(radioCardGroup, {\n dataAttr: true,\n})\n\nconst RadioCardGroupItemControl = withContext(styled(ArkRadioGroup.ItemControl), 'itemControl')\n\nexport const RadioCardGroupItemTitle = withContext(styled(ArkRadioGroup.ItemText), 'itemTitle')\nexport const RadioCardGroupItemContent = withContext(styled('div'), 'itemContent')\nexport const RadioCardGroupItemDescription = withContext(styled('p'), 'itemDescription')\nexport const RadioCardGroupItemImage = withContext(styled(ark.img), 'itemImage')\n\ntype ArkItemProps = ComponentPropsWithoutRef<typeof ArkRadioGroup.Item>\ntype ItemProps = Omit<ArkItemProps, 'value'> & { value: string | number | boolean }\nconst Item = forwardRef<ElementRef<typeof ArkRadioGroup.Item>, ItemProps>(({ children, value, ...props }, ref) => (\n <ArkRadioGroup.Item ref={ref} {...props} value={value as string}>\n <RadioCardGroupItemControl />\n {children}\n <ArkRadioGroup.ItemHiddenInput />\n </ArkRadioGroup.Item>\n))\n\nexport const RadioCardGroup = withProvider(styled(ArkRadioGroup.Root), 'root')\nexport const RadioCardGroupItem = withContext(styled(Item), 'item')\n\nexport interface RadioCardGroupProps extends ComponentProps<typeof RadioCardGroup> {}\nexport interface RadioCardGroupItemProps extends ComponentProps<typeof RadioCardGroupItem> {}\nexport interface RadioCardGroupItemTitleProps extends ComponentProps<typeof RadioCardGroupItemTitle> {}\nexport interface RadioCardGroupItemContentProps extends ComponentProps<typeof RadioCardGroupItemContent> {}\nexport interface RadioCardGroupItemDescriptionProps extends ComponentProps<typeof RadioCardGroupItemDescription> {}\nexport interface RadioCardGroupItemImageProps extends ComponentProps<typeof RadioCardGroupItemImage> {}\n"],"mappings":";;;;;;;;AAQA,IAAM,EAAE,iBAAc,mBAAgBC,EAAmBC,GAAgB,EACvE,UAAU,GACZ,CAAC,GAEKC,IAA4BC,EAAYC,EAAOL,EAAc,WAAW,GAAG,aAAa,GAEjFO,IAA0BH,EAAYC,EAAOL,EAAc,QAAQ,GAAG,WAAW,GACjFQ,IAA4BJ,EAAYC,EAAO,KAAK,GAAG,aAAa,GACpEI,IAAgCL,EAAYC,EAAO,GAAG,GAAG,iBAAiB,GAC1EK,IAA0BN,EAAYC,EAAOM,EAAI,GAAG,GAAG,WAAW,GAIzEC,IAAOC,GAA8D,EAAE,aAAU,UAAO,GAAGC,KAAS,MACxG,kBAACd,EAAc,MAAf;CAAyB;CAAK,GAAIc;CAAc;CAAhD,UAAA;EACE,kBAACX,GAAD,CAA4B,CAAA;EAC3BY;EACD,kBAACf,EAAc,iBAAf,CAAgC,CAAA;CACd;AACrB,CAAA,CAAA,GAEYgB,IAAiBC,EAAaZ,EAAOL,EAAc,IAAI,GAAG,MAAM,GAChEkB,IAAqBd,EAAYC,EAAOO,CAAI,GAAG,MAAM"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./RadioCardGroup.cjs");var n=e.__exportAll({Item:()=>t.RadioCardGroupItem,ItemContent:()=>t.RadioCardGroupItemContent,ItemDescription:()=>t.RadioCardGroupItemDescription,ItemImage:()=>t.RadioCardGroupItemImage,ItemTitle:()=>t.RadioCardGroupItemTitle,Root:()=>t.RadioCardGroup});Object.defineProperty(exports,"namespace_exports",{enumerable:!0,get:function(){return n}});
|
|
1
|
+
"use client";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./RadioCardGroup.cjs");var n=e.__exportAll({Item:()=>t.RadioCardGroupItem,ItemContent:()=>t.RadioCardGroupItemContent,ItemDescription:()=>t.RadioCardGroupItemDescription,ItemImage:()=>t.RadioCardGroupItemImage,ItemTitle:()=>t.RadioCardGroupItemTitle,Root:()=>t.RadioCardGroup});exports.Item=t.RadioCardGroupItem,exports.ItemContent=t.RadioCardGroupItemContent,exports.ItemDescription=t.RadioCardGroupItemDescription,exports.ItemImage=t.RadioCardGroupItemImage,exports.ItemTitle=t.RadioCardGroupItemTitle,exports.Root=t.RadioCardGroup,Object.defineProperty(exports,"namespace_exports",{enumerable:!0,get:function(){return n}});
|
|
2
2
|
//# sourceMappingURL=namespace.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespace.cjs","names":[],"sources":["../../../src/components/radio-card-group/namespace.ts"],"sourcesContent":["export {\n RadioCardGroup as Root,\n RadioCardGroupItem as Item,\n RadioCardGroupItemTitle as ItemTitle,\n RadioCardGroupItemContent as ItemContent,\n RadioCardGroupItemDescription as ItemDescription,\n RadioCardGroupItemImage as ItemImage,\n} from './RadioCardGroup'\n\nexport type {\n RadioCardGroupProps as RootProps,\n RadioCardGroupItemProps as ItemProps,\n RadioCardGroupItemTitleProps as ItemTitleProps,\n RadioCardGroupItemContentProps as ItemContentProps,\n RadioCardGroupItemDescriptionProps as ItemDescriptionProps,\n RadioCardGroupItemImageProps as ItemImageProps,\n} from './RadioCardGroup'\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"namespace.cjs","names":["require_runtime","require_RadioCardGroup","namespace_exports"],"sources":["../../../src/components/radio-card-group/namespace.ts"],"sourcesContent":["export {\n RadioCardGroup as Root,\n RadioCardGroupItem as Item,\n RadioCardGroupItemTitle as ItemTitle,\n RadioCardGroupItemContent as ItemContent,\n RadioCardGroupItemDescription as ItemDescription,\n RadioCardGroupItemImage as ItemImage,\n} from './RadioCardGroup'\n\nexport type {\n RadioCardGroupProps as RootProps,\n RadioCardGroupItemProps as ItemProps,\n RadioCardGroupItemTitleProps as ItemTitleProps,\n RadioCardGroupItemContentProps as ItemContentProps,\n RadioCardGroupItemDescriptionProps as ItemDescriptionProps,\n RadioCardGroupItemImageProps as ItemImageProps,\n} from './RadioCardGroup'\n"],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { __exportAll as e } from "../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { RadioCardGroup as t, RadioCardGroupItem as n, RadioCardGroupItemContent as r, RadioCardGroupItemDescription as i, RadioCardGroupItemImage as a, RadioCardGroupItemTitle as o } from "./RadioCardGroup.js";
|
|
4
|
-
|
|
4
|
+
// src/components/radio-card-group/namespace.ts
|
|
5
5
|
var s = /* @__PURE__ */ e({
|
|
6
6
|
Item: () => n,
|
|
7
7
|
ItemContent: () => r,
|
|
@@ -10,7 +10,6 @@ var s = /* @__PURE__ */ e({
|
|
|
10
10
|
ItemTitle: () => o,
|
|
11
11
|
Root: () => t
|
|
12
12
|
});
|
|
13
|
-
|
|
14
|
-
export { s as namespace_exports };
|
|
13
|
+
export { n as Item, r as ItemContent, i as ItemDescription, a as ItemImage, o as ItemTitle, t as Root, s as namespace_exports };
|
|
15
14
|
|
|
16
15
|
//# sourceMappingURL=namespace.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespace.js","names":[],"sources":["../../../src/components/radio-card-group/namespace.ts"],"sourcesContent":["export {\n RadioCardGroup as Root,\n RadioCardGroupItem as Item,\n RadioCardGroupItemTitle as ItemTitle,\n RadioCardGroupItemContent as ItemContent,\n RadioCardGroupItemDescription as ItemDescription,\n RadioCardGroupItemImage as ItemImage,\n} from './RadioCardGroup'\n\nexport type {\n RadioCardGroupProps as RootProps,\n RadioCardGroupItemProps as ItemProps,\n RadioCardGroupItemTitleProps as ItemTitleProps,\n RadioCardGroupItemContentProps as ItemContentProps,\n RadioCardGroupItemDescriptionProps as ItemDescriptionProps,\n RadioCardGroupItemImageProps as ItemImageProps,\n} from './RadioCardGroup'\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"namespace.js","names":["namespace_exports","RadioCardGroupItem","RadioCardGroupItemContent","RadioCardGroupItemDescription","RadioCardGroupItemImage","RadioCardGroupItemTitle","RadioCardGroup"],"sources":["../../../src/components/radio-card-group/namespace.ts"],"sourcesContent":["export {\n RadioCardGroup as Root,\n RadioCardGroupItem as Item,\n RadioCardGroupItemTitle as ItemTitle,\n RadioCardGroupItemContent as ItemContent,\n RadioCardGroupItemDescription as ItemDescription,\n RadioCardGroupItemImage as ItemImage,\n} from './RadioCardGroup'\n\nexport type {\n RadioCardGroupProps as RootProps,\n RadioCardGroupItemProps as ItemProps,\n RadioCardGroupItemTitleProps as ItemTitleProps,\n RadioCardGroupItemContentProps as ItemContentProps,\n RadioCardGroupItemDescriptionProps as ItemDescriptionProps,\n RadioCardGroupItemImageProps as ItemImageProps,\n} from './RadioCardGroup'\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.cjs","names":[],"sources":["../../../src/components/radio-group/RadioGroup.tsx"],"sourcesContent":["import { RadioGroup as ArkRadioGroup } from '@ark-ui/react'\nimport { radioGroup } from '@stokelp/styled-system/recipes'\n\nimport { createStyleContext } from '~/utils/slots'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nconst { withProvider, withContext } = createStyleContext(radioGroup)\n\nconst RadioGroupItemControl = withContext(styled(ArkRadioGroup.ItemControl), 'itemControl')\nconst RadioGroupItemText = withContext(styled(ArkRadioGroup.ItemText), 'itemText')\ntype ArkItemProps = ComponentPropsWithoutRef<typeof ArkRadioGroup.Item>\ntype ItemProps = Omit<ArkItemProps, 'value'> & { value: string | number | boolean }\nconst Item = forwardRef<ElementRef<typeof ArkRadioGroup.Item>, ItemProps>(({ children, value, ...props }, ref) => (\n <ArkRadioGroup.Item ref={ref} {...props} value={value as string}>\n <RadioGroupItemControl />\n <RadioGroupItemText>{children}</RadioGroupItemText>\n <ArkRadioGroup.ItemHiddenInput />\n </ArkRadioGroup.Item>\n))\n\nexport const RadioGroup = withProvider(styled(ArkRadioGroup.Root), 'root', {\n defaultProps: {\n orientation: 'horizontal',\n },\n})\nexport const RadioGroupItem = withContext(styled(Item), 'item')\nexport const RadioGroupLabel = withContext(styled(ArkRadioGroup.Label), 'label')\n\nexport interface RadioGroupProps extends ComponentProps<typeof RadioGroup> {}\nexport interface RadioGroupItemProps extends ComponentProps<typeof RadioGroupItem> {}\nexport interface RadioGroupLabelProps extends ComponentProps<typeof RadioGroupLabel> {}\n"],"mappings":"2NAQA,GAAM,CAAE,eAAc,
|
|
1
|
+
{"version":3,"file":"RadioGroup.cjs","names":["createStyleContext","radioGroup","styled","ArkRadioGroup","forwardRef","require_slots","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","RadioGroupItemControl","withContext","RadioGroupItemText","Item","props","RadioGroup","withProvider","RadioGroupItem","RadioGroupLabel"],"sources":["../../../src/components/radio-group/RadioGroup.tsx"],"sourcesContent":["import { RadioGroup as ArkRadioGroup } from '@ark-ui/react'\nimport { radioGroup } from '@stokelp/styled-system/recipes'\n\nimport { createStyleContext } from '~/utils/slots'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nconst { withProvider, withContext } = createStyleContext(radioGroup)\n\nconst RadioGroupItemControl = withContext(styled(ArkRadioGroup.ItemControl), 'itemControl')\nconst RadioGroupItemText = withContext(styled(ArkRadioGroup.ItemText), 'itemText')\ntype ArkItemProps = ComponentPropsWithoutRef<typeof ArkRadioGroup.Item>\ntype ItemProps = Omit<ArkItemProps, 'value'> & { value: string | number | boolean }\nconst Item = forwardRef<ElementRef<typeof ArkRadioGroup.Item>, ItemProps>(({ children, value, ...props }, ref) => (\n <ArkRadioGroup.Item ref={ref} {...props} value={value as string}>\n <RadioGroupItemControl />\n <RadioGroupItemText>{children}</RadioGroupItemText>\n <ArkRadioGroup.ItemHiddenInput />\n </ArkRadioGroup.Item>\n))\n\nexport const RadioGroup = withProvider(styled(ArkRadioGroup.Root), 'root', {\n defaultProps: {\n orientation: 'horizontal',\n },\n})\nexport const RadioGroupItem = withContext(styled(Item), 'item')\nexport const RadioGroupLabel = withContext(styled(ArkRadioGroup.Label), 'label')\n\nexport interface RadioGroupProps extends ComponentProps<typeof RadioGroup> {}\nexport interface RadioGroupItemProps extends ComponentProps<typeof RadioGroupItem> {}\nexport interface RadioGroupLabelProps extends ComponentProps<typeof RadioGroupLabel> {}\n"],"mappings":"A,2NAQA,GAAM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,UAAU,EAE7DU,EAAwBC,GAAA,EAAYV,EAAAA,OAAAA,CAAOC,EAAAA,WAAc,WAAW,EAAG,aAAa,EACpFU,EAAqBD,GAAA,EAAYV,EAAAA,OAAAA,CAAOC,EAAAA,WAAc,QAAQ,EAAG,UAAU,EAG3EW,GAAA,EAAOV,EAAAA,WAAAA,EAA8D,CAAE,WAAU,QAAO,GAAGW,GAAS,KACxG,EAAAL,EAAA,KAAA,CAACP,EAAAA,WAAc,KAAf,CAAyB,MAAK,GAAIY,EAAc,QAAhD,SAAA,EACE,EAAAL,EAAA,IAAA,CAACC,EAAD,CAAwB,CAAA,GACxB,EAAAD,EAAA,IAAA,CAACG,EAAD,CAAqB,UAA6B,CAAA,GAClD,EAAAH,EAAA,IAAA,CAACP,EAAAA,WAAc,gBAAf,CAAgC,CAAA,CACd,CACrB,CAAA,CAAA,EAEYa,EAAaC,GAAA,EAAaf,EAAAA,OAAAA,CAAOC,EAAAA,WAAc,IAAI,EAAG,OAAQ,CACzE,aAAc,CACZ,YAAa,YACf,CACF,CAAC,EACYe,EAAiBN,GAAA,EAAYV,EAAAA,OAAAA,CAAOY,CAAI,EAAG,MAAM,EACjDK,EAAkBP,GAAA,EAAYV,EAAAA,OAAAA,CAAOC,EAAAA,WAAc,KAAK,EAAG,OAAO,E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RadioGroup as ArkRadioGroup } from '@ark-ui/react';
|
|
2
2
|
import { ComponentProps, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
import { ComponentVariants } from '../../utils/slots';
|
|
4
|
-
import { StyledComponent } from '@stokelp/styled-system/
|
|
4
|
+
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
5
5
|
import { RadioGroupRecipe } from '@stokelp/styled-system/recipes';
|
|
6
6
|
export declare const RadioGroup: ComponentVariants<StyledComponent<ForwardRefExoticComponent<ArkRadioGroup.RootProps & RefAttributes<HTMLDivElement>>, {}>, RadioGroupRecipe>;
|
|
7
7
|
export declare const RadioGroupItem: StyledComponent<ForwardRefExoticComponent<Omit<Omit<ArkRadioGroup.ItemProps & RefAttributes<HTMLLabelElement>, "ref">, "value"> & {
|
|
@@ -5,7 +5,7 @@ import { styled as n } from "@stokelp/styled-system/jsx";
|
|
|
5
5
|
import { radioGroup as r } from "@stokelp/styled-system/recipes";
|
|
6
6
|
import { forwardRef as i } from "react";
|
|
7
7
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/radio-group/RadioGroup.tsx
|
|
9
9
|
var { withProvider: s, withContext: c } = e(r), l = c(n(t.ItemControl), "itemControl"), u = c(n(t.ItemText), "itemText"), d = i(({ children: e, value: n, ...r }, i) => /* @__PURE__ */ o(t.Item, {
|
|
10
10
|
ref: i,
|
|
11
11
|
...r,
|
|
@@ -16,7 +16,6 @@ var { withProvider: s, withContext: c } = e(r), l = c(n(t.ItemControl), "itemCon
|
|
|
16
16
|
/* @__PURE__ */ a(t.ItemHiddenInput, {})
|
|
17
17
|
]
|
|
18
18
|
})), f = s(n(t.Root), "root", { defaultProps: { orientation: "horizontal" } }), p = c(n(d), "item"), m = c(n(t.Label), "label");
|
|
19
|
-
//#endregion
|
|
20
19
|
export { f as RadioGroup, p as RadioGroupItem, m as RadioGroupLabel };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=RadioGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.js","names":[],"sources":["../../../src/components/radio-group/RadioGroup.tsx"],"sourcesContent":["import { RadioGroup as ArkRadioGroup } from '@ark-ui/react'\nimport { radioGroup } from '@stokelp/styled-system/recipes'\n\nimport { createStyleContext } from '~/utils/slots'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nconst { withProvider, withContext } = createStyleContext(radioGroup)\n\nconst RadioGroupItemControl = withContext(styled(ArkRadioGroup.ItemControl), 'itemControl')\nconst RadioGroupItemText = withContext(styled(ArkRadioGroup.ItemText), 'itemText')\ntype ArkItemProps = ComponentPropsWithoutRef<typeof ArkRadioGroup.Item>\ntype ItemProps = Omit<ArkItemProps, 'value'> & { value: string | number | boolean }\nconst Item = forwardRef<ElementRef<typeof ArkRadioGroup.Item>, ItemProps>(({ children, value, ...props }, ref) => (\n <ArkRadioGroup.Item ref={ref} {...props} value={value as string}>\n <RadioGroupItemControl />\n <RadioGroupItemText>{children}</RadioGroupItemText>\n <ArkRadioGroup.ItemHiddenInput />\n </ArkRadioGroup.Item>\n))\n\nexport const RadioGroup = withProvider(styled(ArkRadioGroup.Root), 'root', {\n defaultProps: {\n orientation: 'horizontal',\n },\n})\nexport const RadioGroupItem = withContext(styled(Item), 'item')\nexport const RadioGroupLabel = withContext(styled(ArkRadioGroup.Label), 'label')\n\nexport interface RadioGroupProps extends ComponentProps<typeof RadioGroup> {}\nexport interface RadioGroupItemProps extends ComponentProps<typeof RadioGroupItem> {}\nexport interface RadioGroupLabelProps extends ComponentProps<typeof RadioGroupLabel> {}\n"],"mappings":";;;;;;;;AAQA,IAAM,EAAE,iBAAc,
|
|
1
|
+
{"version":3,"file":"RadioGroup.js","names":["ArkRadioGroup","RadioGroup","createStyleContext","radioGroup","RadioGroupItemControl","withContext","styled","RadioGroup","RadioGroupItemText","Item","forwardRef","props","RadioGroup$1","withProvider","RadioGroupItem","RadioGroupLabel"],"sources":["../../../src/components/radio-group/RadioGroup.tsx"],"sourcesContent":["import { RadioGroup as ArkRadioGroup } from '@ark-ui/react'\nimport { radioGroup } from '@stokelp/styled-system/recipes'\n\nimport { createStyleContext } from '~/utils/slots'\nimport type { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react'\nimport { forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nconst { withProvider, withContext } = createStyleContext(radioGroup)\n\nconst RadioGroupItemControl = withContext(styled(ArkRadioGroup.ItemControl), 'itemControl')\nconst RadioGroupItemText = withContext(styled(ArkRadioGroup.ItemText), 'itemText')\ntype ArkItemProps = ComponentPropsWithoutRef<typeof ArkRadioGroup.Item>\ntype ItemProps = Omit<ArkItemProps, 'value'> & { value: string | number | boolean }\nconst Item = forwardRef<ElementRef<typeof ArkRadioGroup.Item>, ItemProps>(({ children, value, ...props }, ref) => (\n <ArkRadioGroup.Item ref={ref} {...props} value={value as string}>\n <RadioGroupItemControl />\n <RadioGroupItemText>{children}</RadioGroupItemText>\n <ArkRadioGroup.ItemHiddenInput />\n </ArkRadioGroup.Item>\n))\n\nexport const RadioGroup = withProvider(styled(ArkRadioGroup.Root), 'root', {\n defaultProps: {\n orientation: 'horizontal',\n },\n})\nexport const RadioGroupItem = withContext(styled(Item), 'item')\nexport const RadioGroupLabel = withContext(styled(ArkRadioGroup.Label), 'label')\n\nexport interface RadioGroupProps extends ComponentProps<typeof RadioGroup> {}\nexport interface RadioGroupItemProps extends ComponentProps<typeof RadioGroupItem> {}\nexport interface RadioGroupLabelProps extends ComponentProps<typeof RadioGroupLabel> {}\n"],"mappings":";;;;;;;;AAQA,IAAM,EAAE,iBAAc,mBAAgBE,EAAmBC,CAAU,GAE7DC,IAAwBC,EAAYC,EAAON,EAAc,WAAW,GAAG,aAAa,GACpFQ,IAAqBH,EAAYC,EAAON,EAAc,QAAQ,GAAG,UAAU,GAG3ES,IAAOC,GAA8D,EAAE,aAAU,UAAO,GAAGC,KAAS,MACxG,kBAACX,EAAc,MAAf;CAAyB;CAAK,GAAIW;CAAc;CAAhD,UAAA;EACE,kBAACP,GAAD,CAAwB,CAAA;EACxB,kBAACI,GAAD,EAAqB,YAA6B,CAAA;EAClD,kBAACR,EAAc,iBAAf,CAAgC,CAAA;CACd;AACrB,CAAA,CAAA,GAEYC,IAAaY,EAAaP,EAAON,EAAc,IAAI,GAAG,QAAQ,EACzE,cAAc,EACZ,aAAa,aACf,EACF,CAAC,GACYc,IAAiBT,EAAYC,EAAOG,CAAI,GAAG,MAAM,GACjDM,IAAkBV,EAAYC,EAAON,EAAc,KAAK,GAAG,OAAO"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require("../../utils/slots.cjs"),t=require("../tooltip/Tooltip.cjs"),n=require("../text/Text.cjs"),r=require("../../shared/ConditionalWrapper.cjs"),i=require("../ui-labels/UiLabelsProvider.cjs");let a=require("@ark-ui/react"),o=require("@stokelp/styled-system/jsx"),s=require("@stokelp/styled-system/recipes"),c=require("react"),l=require("react/jsx-runtime"),u=require("@stokelp/styled-system/css"),d=require("react-window");var{withProvider:f,withContext:p}=e.createStyleContext(s.select),m=f((0,o.styled)(a.Select.Root),`root`,{defaultProps:{loopFocus:!0}}),h=p((0,o.styled)(a.Select.ClearTrigger),`clearTrigger`),g=p((0,o.styled)(a.Select.Content),`content`),_=p((0,o.styled)(a.Select.Control),`control`),v=p((0,o.styled)(a.Select.Indicator),`indicator`),y=p((0,o.styled)(a.Select.Item),`item`),b=p((0,o.styled)(a.Select.ItemGroup),`itemGroup`),x=p((0,o.styled)(a.Select.ItemGroupLabel),`itemGroupLabel`),S=p((0,o.styled)(a.Select.ItemText),`itemText`),C=p((0,o.styled)(a.Select.Positioner),`positioner`),w=p((0,o.styled)(a.Select.Trigger),`trigger`),T=p((0,o.styled)(a.Select.ValueText),`valueText`),E=()=>(0,l.jsxs)(`svg`,{width:`16`,height:`17`,viewBox:`0 0 16 17`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,l.jsx)(`rect`,{x:`0.5`,y:`1`,width:`15`,height:`15`,rx:`3.5`,fill:`white`}),(0,l.jsx)(`rect`,{x:`0.5`,y:`1`,width:`15`,height:`15`,rx:`3.5`,className:(0,u.css)({stroke:`grey.100`})})]}),D=()=>(0,l.jsxs)(`svg`,{width:`16`,height:`17`,viewBox:`0 0 16 17`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,l.jsx)(`rect`,{y:`0.5`,width:`16`,height:`16`,rx:`4`,className:(0,u.css)({fill:`primary.500`})}),(0,l.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11.958 4.81298C12.1303 4.92787 12.1769 5.16069 12.062 5.33301L7.56202 12.083C7.4997 12.1765 7.39875 12.2371 7.28695 12.2482C7.17515 12.2592 7.06428 12.2196 6.98483 12.1402L3.98483 9.14017C3.83839 8.99372 3.83839 8.75628 3.98483 8.60984C4.13128 8.46339 4.36872 8.46339 4.51517 8.60984L7.19172 11.2864L11.438 4.91699C11.5529 4.74467 11.7857 4.6981 11.958 4.81298Z`,fill:`white`})]});function O({placeholder:e,allSelectedLabel:t}){let n=(0,a.useSelectContext)(),r=n.collection.items,i=n.selectedItems;return n.multiple&&i.filter(e=>!e.disabled).length>=r.filter(e=>!e.disabled).length&&t?(0,l.jsx)(T,{className:`custom`,truncate:!0,children:t}):(0,l.jsx)(T,{truncate:!0,placeholder:e})}function k({renderTrigger:e,placeholder:t,allSelectedLabel:n}){let r=(0,a.useSelectContext)(),i=r.value&&r.value.length>0?r.collection.findMany(r.value):[];if(i.length===0)return(0,l.jsx)(T,{className:`custom`,truncate:!0,placeholder:t});let o=r.selectedItems;return r.multiple&&o.filter(e=>!e.disabled).length>=r.collection.items.filter(e=>!e.disabled).length&&n?(0,l.jsx)(T,{className:`custom`,truncate:!0,children:n}):(0,l.jsx)(T,{className:`custom`,placeholder:t,children:i.map(t=>(0,l.jsx)(`span`,{children:e(t)},t.value))})}function A({item:e,isMultiple:t,renderItem:n}){let r=(0,a.useSelectItemContext)();return(0,l.jsxs)(l.Fragment,{children:[t?r.selected?(0,l.jsx)(D,{}):(0,l.jsx)(E,{}):null,n?n(e):(0,l.jsx)(S,{truncate:!0,children:e.label})]})}function j(e){let t=[];for(let n of e){let e=t[t.length-1];
|
|
1
|
+
"use client";const e=require("../../utils/slots.cjs"),t=require("../tooltip/Tooltip.cjs"),n=require("../text/Text.cjs"),r=require("../../shared/ConditionalWrapper.cjs"),i=require("../ui-labels/UiLabelsProvider.cjs");let a=require("@ark-ui/react"),o=require("@stokelp/styled-system/jsx"),s=require("@stokelp/styled-system/recipes"),c=require("react"),l=require("react/jsx-runtime"),u=require("@stokelp/styled-system/css"),d=require("react-window");var{withProvider:f,withContext:p}=e.createStyleContext(s.select),m=f((0,o.styled)(a.Select.Root),`root`,{defaultProps:{loopFocus:!0}}),h=p((0,o.styled)(a.Select.ClearTrigger),`clearTrigger`),g=p((0,o.styled)(a.Select.Content),`content`),_=p((0,o.styled)(a.Select.Control),`control`),v=p((0,o.styled)(a.Select.Indicator),`indicator`),y=p((0,o.styled)(a.Select.Item),`item`),b=p((0,o.styled)(a.Select.ItemGroup),`itemGroup`),x=p((0,o.styled)(a.Select.ItemGroupLabel),`itemGroupLabel`),S=p((0,o.styled)(a.Select.ItemText),`itemText`),C=p((0,o.styled)(a.Select.Positioner),`positioner`),w=p((0,o.styled)(a.Select.Trigger),`trigger`),T=p((0,o.styled)(a.Select.ValueText),`valueText`),E=()=>(0,l.jsxs)(`svg`,{width:`16`,height:`17`,viewBox:`0 0 16 17`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,l.jsx)(`rect`,{x:`0.5`,y:`1`,width:`15`,height:`15`,rx:`3.5`,fill:`white`}),(0,l.jsx)(`rect`,{x:`0.5`,y:`1`,width:`15`,height:`15`,rx:`3.5`,className:(0,u.css)({stroke:`grey.100`})})]}),D=()=>(0,l.jsxs)(`svg`,{width:`16`,height:`17`,viewBox:`0 0 16 17`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,l.jsx)(`rect`,{y:`0.5`,width:`16`,height:`16`,rx:`4`,className:(0,u.css)({fill:`primary.500`})}),(0,l.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11.958 4.81298C12.1303 4.92787 12.1769 5.16069 12.062 5.33301L7.56202 12.083C7.4997 12.1765 7.39875 12.2371 7.28695 12.2482C7.17515 12.2592 7.06428 12.2196 6.98483 12.1402L3.98483 9.14017C3.83839 8.99372 3.83839 8.75628 3.98483 8.60984C4.13128 8.46339 4.36872 8.46339 4.51517 8.60984L7.19172 11.2864L11.438 4.91699C11.5529 4.74467 11.7857 4.6981 11.958 4.81298Z`,fill:`white`})]});function O({placeholder:e,allSelectedLabel:t}){let n=(0,a.useSelectContext)(),r=n.collection.items,i=n.selectedItems;return n.multiple&&i.filter(e=>!e.disabled).length>=r.filter(e=>!e.disabled).length&&t?(0,l.jsx)(T,{className:`custom`,truncate:!0,children:t}):(0,l.jsx)(T,{truncate:!0,placeholder:e})}function k({renderTrigger:e,placeholder:t,allSelectedLabel:n}){let r=(0,a.useSelectContext)(),i=r.value&&r.value.length>0?r.collection.findMany(r.value):[];if(i.length===0)return(0,l.jsx)(T,{className:`custom`,truncate:!0,placeholder:t});let o=r.selectedItems;return r.multiple&&o.filter(e=>!e.disabled).length>=r.collection.items.filter(e=>!e.disabled).length&&n?(0,l.jsx)(T,{className:`custom`,truncate:!0,children:n}):(0,l.jsx)(T,{className:`custom`,placeholder:t,children:i.map(t=>(0,l.jsx)(`span`,{children:e(t)},t.value))})}function A({item:e,isMultiple:t,renderItem:n}){let r=(0,a.useSelectItemContext)();return(0,l.jsxs)(l.Fragment,{children:[t?r.selected?(0,l.jsx)(D,{}):(0,l.jsx)(E,{}):null,n?n(e):(0,l.jsx)(S,{truncate:!0,children:e.label})]})}function j(e){let t=[];for(let n of e){let e=t[t.length-1];e&&e.label===n.groupLabel?e.items.push(n):t.push({label:n.groupLabel,items:[n]})}return t}function M({items:e,placeholder:o,emptyLabel:s,usePortal:f=!0,positioning:p,renderItem:S,renderTrigger:T,virtualized:E,rowHeight:D=34,...M}){let N=i.useUiLabels(),P=(0,a.createListCollection)({items:e}),F=(0,c.useRef)(null),I=e=>(0,l.jsxs)(c.Fragment,{children:[(0,l.jsx)(r.ConditionalWrapper,{when:!!e.tooltip,wrapper:n=>(0,l.jsx)(t.Tooltip,{label:e.tooltip,children:n}),children:(0,l.jsx)(y,{item:e,children:(0,l.jsx)(A,{renderItem:S,item:e,isMultiple:M.multiple})},e.value)},e.value),e.separatorAfter&&(0,l.jsx)(`div`,{role:`separator`,className:(0,u.css)({height:`1px`,flexShrink:0,backgroundColor:`grey.100`,marginY:`space-4`,marginX:`space-8`})})]},e.value);return(0,l.jsxs)(m,{lazyMount:!0,unmountOnExit:!0,collection:P,positioning:{sameWidth:!0,gutter:0,...p},"data-recipe":`select`,...M,ref:e=>{e&&(F.current=e.closest(`[role="dialog"]`))},children:[(0,l.jsxs)(_,{children:[(0,l.jsxs)(w,{children:[T?(0,l.jsx)(k,{renderTrigger:T,placeholder:o,allSelectedLabel:M.allSelectedLabel}):(0,l.jsx)(O,{placeholder:o,allSelectedLabel:M.allSelectedLabel}),(0,l.jsx)(v,{asChild:!0,children:(0,l.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,l.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z`,fill:`currentColor`})})})]}),(0,l.jsx)(h,{disabled:M.readOnly,asChild:!0,children:(0,l.jsx)(`button`,{children:(0,l.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,l.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10 3.125C6.20304 3.125 3.125 6.20304 3.125 10C3.125 13.797 6.20304 16.875 10 16.875C13.797 16.875 16.875 13.797 16.875 10C16.875 6.20304 13.797 3.125 10 3.125ZM1.875 10C1.875 5.51269 5.51269 1.875 10 1.875C14.4873 1.875 18.125 5.51269 18.125 10C18.125 14.4873 14.4873 18.125 10 18.125C5.51269 18.125 1.875 14.4873 1.875 10ZM7.68306 7.68306C7.92714 7.43898 8.32286 7.43898 8.56694 7.68306L10 9.11612L11.4331 7.68306C11.6771 7.43898 12.0729 7.43898 12.3169 7.68306C12.561 7.92714 12.561 8.32286 12.3169 8.56694L10.8839 10L12.3169 11.4331C12.561 11.6771 12.561 12.0729 12.3169 12.3169C12.0729 12.561 11.6771 12.561 11.4331 12.3169L10 10.8839L8.56694 12.3169C8.32286 12.561 7.92714 12.561 7.68306 12.3169C7.43898 12.0729 7.43898 11.6771 7.68306 11.4331L9.11612 10L7.68306 8.56694C7.43898 8.32286 7.43898 7.92714 7.68306 7.68306Z`,fill:`currentColor`})})})})]}),(0,l.jsx)(r.ConditionalWrapper,{when:f,wrapper:e=>(0,l.jsx)(a.Portal,{container:F,children:e}),children:(0,l.jsx)(C,{children:(0,l.jsx)(g,{children:e.length===0?(0,l.jsx)(n.Text,{px:`space-8`,textAlign:`center`,children:s??N.noResults}):E?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(d.FixedSizeList,{height:Math.min(D*e.length,180),itemCount:e.length,itemSize:D,width:`100%`,children:({index:n,style:i})=>(0,l.jsx)(r.ConditionalWrapper,{when:!!e[n].tooltip,wrapper:r=>(0,l.jsx)(t.Tooltip,{label:e[n].tooltip,children:r}),children:(0,l.jsx)(y,{item:e[n],style:i,children:(0,l.jsx)(A,{renderItem:S,item:e[n]})},e[n].value)},e[n].value)})}):j(e).map((e,t)=>e.label===void 0?(0,l.jsx)(c.Fragment,{children:e.items.map(I)},`group-${t}`):(0,l.jsxs)(b,{children:[(0,l.jsx)(x,{children:e.label}),e.items.map(I)]},`group-${t}`))})})}),(0,l.jsx)(a.Select.HiddenSelect,{})]})}exports.Select=M;
|
|
2
2
|
//# sourceMappingURL=Select.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.cjs","names":[],"sources":["../../../src/components/select/Select.tsx"],"sourcesContent":["import {\n createListCollection,\n Portal,\n Select as ArkSelect,\n type SelectRootProps,\n useSelectItemContext,\n useSelectContext,\n} from '@ark-ui/react'\nimport { FC, Fragment, ReactNode, useRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nimport { select } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\n\nimport { ConditionalWrapper } from '~/shared/ConditionalWrapper'\nimport { Text } from '~/components/text/Text'\nimport { Tooltip } from '~/components/tooltip/Tooltip'\nimport { useUiLabels } from '~/components/ui-labels/UiLabelsProvider'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { FixedSizeList } from 'react-window'\nimport { css } from '@stokelp/styled-system/css'\n\nconst { withProvider, withContext } = createStyleContext(select)\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst Root = withProvider(styled(ArkSelect.Root<any>), 'root', {\n defaultProps: {\n loopFocus: true,\n },\n})\n\nconst ClearTrigger = withContext(styled(ArkSelect.ClearTrigger), 'clearTrigger')\nconst Content = withContext(styled(ArkSelect.Content), 'content')\nconst Control = withContext(styled(ArkSelect.Control), 'control')\nconst Indicator = withContext(styled(ArkSelect.Indicator), 'indicator')\nconst Item = withContext(styled(ArkSelect.Item), 'item')\nconst ItemGroup = withContext(styled(ArkSelect.ItemGroup), 'itemGroup')\nconst ItemGroupLabel = withContext(styled(ArkSelect.ItemGroupLabel), 'itemGroupLabel')\nconst ItemText = withContext(styled(ArkSelect.ItemText), 'itemText')\nconst Positioner = withContext(styled(ArkSelect.Positioner), 'positioner')\nconst Trigger = withContext(styled(ArkSelect.Trigger), 'trigger')\nconst ValueText = withContext(styled(ArkSelect.ValueText), 'valueText')\n\nexport interface SelectItem {\n value: string | number\n label: string\n tooltip?: ReactNode\n disabled?: boolean\n /**\n * Renders a thin divider line after this item, separating option groups.\n * Ignored by the virtualized list (fixed row heights).\n */\n separatorAfter?: boolean\n /**\n * Heading for the group this item belongs to. Consecutive items sharing a label are\n * wrapped in one labelled group, so the heading is announced by screen readers instead\n * of being faked with a decorative row inside `renderItem`. Items without a label stay\n * ungrouped. Ignored by the virtualized list (fixed row heights).\n */\n groupLabel?: string\n}\n\nexport type SelectProps<Item extends SelectItem> = Omit<SelectRootProps<Item>, 'collection'> & {\n items: Item[] | readonly Item[]\n renderItem?: (item: Item) => ReactNode\n renderTrigger?: (item: Item) => ReactNode\n emptyLabel?: string\n placeholder?: string\n allSelectedLabel?: string\n usePortal?: boolean\n virtualized?: boolean\n rowHeight?: number\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof select>\n\nconst MultipleUncheckedIndicator: FC = () => (\n <svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"0.5\" y=\"1\" width=\"15\" height=\"15\" rx=\"3.5\" fill=\"white\" />\n <rect x=\"0.5\" y=\"1\" width=\"15\" height=\"15\" rx=\"3.5\" className={css({ stroke: 'grey.100' })} />\n </svg>\n)\n\nconst MultipleCheckedIndicator: FC = () => (\n <svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect y=\"0.5\" width=\"16\" height=\"16\" rx=\"4\" className={css({ fill: 'primary.500' })} />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11.958 4.81298C12.1303 4.92787 12.1769 5.16069 12.062 5.33301L7.56202 12.083C7.4997 12.1765 7.39875 12.2371 7.28695 12.2482C7.17515 12.2592 7.06428 12.2196 6.98483 12.1402L3.98483 9.14017C3.83839 8.99372 3.83839 8.75628 3.98483 8.60984C4.13128 8.46339 4.36872 8.46339 4.51517 8.60984L7.19172 11.2864L11.438 4.91699C11.5529 4.74467 11.7857 4.6981 11.958 4.81298Z\"\n fill=\"white\"\n />\n </svg>\n)\n\ninterface InnerItemProps<Item extends SelectItem> {\n item: Item\n isMultiple?: boolean\n renderItem?: (item: Item) => ReactNode\n}\n\ninterface InnerTriggerProps<Item extends SelectItem> {\n renderTrigger: (item: Item) => ReactNode\n placeholder?: string\n allSelectedLabel?: string\n}\n\ninterface DefaultInnerTriggerProps {\n placeholder?: string\n allSelectedLabel?: string\n}\n\nfunction DefaultInnerTrigger({ placeholder, allSelectedLabel }: DefaultInnerTriggerProps) {\n const context = useSelectContext()\n const items = context.collection.items\n const selectedItems = context.selectedItems\n\n if (\n context.multiple &&\n selectedItems.filter(item => !item.disabled).length >= items.filter(item => !item.disabled).length &&\n allSelectedLabel\n ) {\n return (\n <ValueText className=\"custom\" truncate>\n {allSelectedLabel}\n </ValueText>\n )\n }\n\n return <ValueText truncate placeholder={placeholder} />\n}\n\nfunction CustomInnerTrigger<Item extends SelectItem>({\n renderTrigger,\n placeholder,\n allSelectedLabel,\n}: InnerTriggerProps<Item>) {\n const context = useSelectContext()\n const items = context.value && context.value.length > 0 ? context.collection.findMany(context.value) : []\n\n if (items.length === 0) {\n return <ValueText className=\"custom\" truncate placeholder={placeholder} />\n }\n\n const selectedItems = context.selectedItems\n\n if (\n context.multiple &&\n selectedItems.filter(item => !item.disabled).length >=\n context.collection.items.filter(item => !item.disabled).length &&\n allSelectedLabel\n ) {\n return (\n <ValueText className=\"custom\" truncate>\n {allSelectedLabel}\n </ValueText>\n )\n }\n\n return (\n <ValueText className=\"custom\" placeholder={placeholder}>\n {items.map(item => (\n <span key={item.value}>{renderTrigger(item)}</span>\n ))}\n </ValueText>\n )\n}\n\nfunction CustomInnerItem<Item extends SelectItem>({ item, isMultiple, renderItem }: InnerItemProps<Item>) {\n const context = useSelectItemContext()\n\n return (\n <>\n {isMultiple ? context.selected ? <MultipleCheckedIndicator /> : <MultipleUncheckedIndicator /> : null}\n {renderItem ? renderItem(item) : <ItemText truncate>{item.label}</ItemText>}\n </>\n )\n}\n\n/**\n * Splits the flat item list into consecutive runs sharing a `groupLabel`. Runs are built\n * from adjacency rather than by collecting every item with the same label, so the caller\n * keeps full control of the order: sorting is the caller's business, grouping is ours.\n */\nfunction toGroupRuns<Item extends SelectItem>(items: readonly Item[]) {\n const runs: Array<{ label?: string; items: Item[] }> = []\n\n for (const item of items) {\n const current = runs[runs.length - 1]\n if (current && current.label === item.groupLabel) {\n current.items.push(item)\n continue\n }\n runs.push({ label: item.groupLabel, items: [item] })\n }\n\n return runs\n}\n\nexport function Select<Item extends SelectItem>({\n items,\n placeholder,\n emptyLabel,\n usePortal = true,\n positioning,\n renderItem,\n renderTrigger,\n virtualized,\n rowHeight = 34,\n ...props\n}: SelectProps<Item>) {\n const uiLabels = useUiLabels()\n const collection = createListCollection({\n items,\n })\n const $dialogContent = useRef<HTMLDivElement | null>(null)\n\n const renderOption = (item: Item) => (\n <Fragment key={item.value}>\n <ConditionalWrapper\n key={item.value}\n when={!!item.tooltip}\n wrapper={children => <Tooltip label={item.tooltip}>{children}</Tooltip>}\n >\n <Item key={item.value} item={item}>\n <CustomInnerItem renderItem={renderItem} item={item} isMultiple={props.multiple} />\n </Item>\n </ConditionalWrapper>\n {item.separatorAfter && (\n <div\n role=\"separator\"\n className={css({\n height: '1px',\n flexShrink: 0,\n backgroundColor: 'grey.100',\n marginY: 'space-4',\n marginX: 'space-8',\n })}\n />\n )}\n </Fragment>\n )\n\n return (\n <Root\n lazyMount\n unmountOnExit\n collection={collection}\n positioning={{ sameWidth: true, gutter: 0, ...positioning }}\n data-recipe=\"select\"\n {...props}\n ref={(node: HTMLDivElement | null) => {\n if (node) {\n $dialogContent.current = node.closest('[role=\"dialog\"]') as HTMLDivElement | null\n }\n }}\n >\n <Control>\n <Trigger>\n {renderTrigger ? (\n <CustomInnerTrigger\n renderTrigger={renderTrigger}\n placeholder={placeholder}\n allSelectedLabel={props.allSelectedLabel}\n />\n ) : (\n <DefaultInnerTrigger placeholder={placeholder} allSelectedLabel={props.allSelectedLabel} />\n )}\n <Indicator asChild>\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z\"\n fill=\"currentColor\"\n />\n </svg>\n </Indicator>\n </Trigger>\n <ClearTrigger disabled={props.readOnly} asChild>\n <button>\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10 3.125C6.20304 3.125 3.125 6.20304 3.125 10C3.125 13.797 6.20304 16.875 10 16.875C13.797 16.875 16.875 13.797 16.875 10C16.875 6.20304 13.797 3.125 10 3.125ZM1.875 10C1.875 5.51269 5.51269 1.875 10 1.875C14.4873 1.875 18.125 5.51269 18.125 10C18.125 14.4873 14.4873 18.125 10 18.125C5.51269 18.125 1.875 14.4873 1.875 10ZM7.68306 7.68306C7.92714 7.43898 8.32286 7.43898 8.56694 7.68306L10 9.11612L11.4331 7.68306C11.6771 7.43898 12.0729 7.43898 12.3169 7.68306C12.561 7.92714 12.561 8.32286 12.3169 8.56694L10.8839 10L12.3169 11.4331C12.561 11.6771 12.561 12.0729 12.3169 12.3169C12.0729 12.561 11.6771 12.561 11.4331 12.3169L10 10.8839L8.56694 12.3169C8.32286 12.561 7.92714 12.561 7.68306 12.3169C7.43898 12.0729 7.43898 11.6771 7.68306 11.4331L9.11612 10L7.68306 8.56694C7.43898 8.32286 7.43898 7.92714 7.68306 7.68306Z\"\n fill=\"currentColor\"\n />\n </svg>\n </button>\n </ClearTrigger>\n </Control>\n <ConditionalWrapper when={usePortal} wrapper={children => <Portal container={$dialogContent}>{children}</Portal>}>\n <Positioner>\n <Content>\n {items.length === 0 ? (\n <Text px=\"space-8\" textAlign=\"center\">\n {emptyLabel ?? uiLabels.noResults}\n </Text>\n ) : virtualized ? (\n <>\n <FixedSizeList\n height={Math.min(rowHeight * items.length, 180)}\n itemCount={items.length}\n itemSize={rowHeight}\n width=\"100%\"\n >\n {({ index, style }) => (\n <ConditionalWrapper\n key={items[index].value}\n when={!!items[index].tooltip}\n wrapper={children => <Tooltip label={items[index].tooltip}>{children}</Tooltip>}\n >\n <Item key={items[index].value} item={items[index]} style={style}>\n <CustomInnerItem renderItem={renderItem} item={items[index]} />\n </Item>\n </ConditionalWrapper>\n )}\n </FixedSizeList>\n </>\n ) : (\n toGroupRuns<Item>(items).map((run, runIndex) =>\n run.label === undefined ? (\n <Fragment key={`group-${runIndex}`}>{run.items.map(renderOption)}</Fragment>\n ) : (\n <ItemGroup key={`group-${runIndex}`}>\n <ItemGroupLabel>{run.label}</ItemGroupLabel>\n {run.items.map(renderOption)}\n </ItemGroup>\n ),\n )\n )}\n </Content>\n </Positioner>\n </ConditionalWrapper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AEF,EAAkB,CAAK,EAAE,KAAK,EAAK,IACjC,EAAI,QAAU,IAAA,IACZ,EAAA,EAAA,KAAC,EAAA,SAAD,CAAA,SAAqC,EAAI,MAAM,IAAI,CAAY,CAAY,EAA5D,SAAS,GAAmD,GAE3E,EAAA,EAAA,MAAC,EAAD,CAAA,SAAA,EACE,EAAA,EAAA,KAAC,EAAD,CAAA,SAAiB,EAAI,KAAsB,CAAA,EAC1C,EAAI,MAAM,IAAI,CAAY,CAClB,CAAA,EAHK,SAAS,GAGd,CAEf,CAEK,CAAA,CACC,CAAA,CACM,CAAA,GACpB,EAAA,EAAA,KAAC,EAAA,OAAU,aAAX,CAAyB,CAAA,CACrB,GAEV"}
|
|
1
|
+
{"version":3,"file":"Select.cjs","names":["createStyleContext","select","styled","ArkSelect","css","useSelectContext","useSelectItemContext","_Fragment","useUiLabels","createListCollection","useRef","Fragment","ConditionalWrapper","Tooltip","Portal","Text","FixedSizeList","require_slots","require_Tooltip","require_Text","require_ConditionalWrapper","require_UiLabelsProvider","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","_stokelp_styled_system_css","react_window","Root","withProvider","ClearTrigger","withContext","Content","Control","Indicator","Item","ItemGroup","ItemGroupLabel","ItemText","Positioner","Trigger","ValueText","MultipleUncheckedIndicator","MultipleCheckedIndicator","DefaultInnerTrigger","context","items","selectedItems","item","allSelectedLabel","CustomInnerTrigger","renderTrigger","CustomInnerItem","isMultiple","renderItem","toGroupRuns","runs","current","Select","props","uiLabels","collection","$dialogContent","renderOption","positioning","node","usePortal","emptyLabel","virtualized","rowHeight","index","run","runIndex"],"sources":["../../../src/components/select/Select.tsx"],"sourcesContent":["import {\n createListCollection,\n Portal,\n Select as ArkSelect,\n type SelectRootProps,\n useSelectItemContext,\n useSelectContext,\n} from '@ark-ui/react'\nimport { FC, Fragment, ReactNode, useRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nimport { select } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\n\nimport { ConditionalWrapper } from '~/shared/ConditionalWrapper'\nimport { Text } from '~/components/text/Text'\nimport { Tooltip } from '~/components/tooltip/Tooltip'\nimport { useUiLabels } from '~/components/ui-labels/UiLabelsProvider'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { FixedSizeList } from 'react-window'\nimport { css } from '@stokelp/styled-system/css'\n\nconst { withProvider, withContext } = createStyleContext(select)\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst Root = withProvider(styled(ArkSelect.Root<any>), 'root', {\n defaultProps: {\n loopFocus: true,\n },\n})\n\nconst ClearTrigger = withContext(styled(ArkSelect.ClearTrigger), 'clearTrigger')\nconst Content = withContext(styled(ArkSelect.Content), 'content')\nconst Control = withContext(styled(ArkSelect.Control), 'control')\nconst Indicator = withContext(styled(ArkSelect.Indicator), 'indicator')\nconst Item = withContext(styled(ArkSelect.Item), 'item')\nconst ItemGroup = withContext(styled(ArkSelect.ItemGroup), 'itemGroup')\nconst ItemGroupLabel = withContext(styled(ArkSelect.ItemGroupLabel), 'itemGroupLabel')\nconst ItemText = withContext(styled(ArkSelect.ItemText), 'itemText')\nconst Positioner = withContext(styled(ArkSelect.Positioner), 'positioner')\nconst Trigger = withContext(styled(ArkSelect.Trigger), 'trigger')\nconst ValueText = withContext(styled(ArkSelect.ValueText), 'valueText')\n\nexport interface SelectItem {\n value: string | number\n label: string\n tooltip?: ReactNode\n disabled?: boolean\n /**\n * Renders a thin divider line after this item, separating option groups.\n * Ignored by the virtualized list (fixed row heights).\n */\n separatorAfter?: boolean\n /**\n * Heading for the group this item belongs to. Consecutive items sharing a label are\n * wrapped in one labelled group, so the heading is announced by screen readers instead\n * of being faked with a decorative row inside `renderItem`. Items without a label stay\n * ungrouped. Ignored by the virtualized list (fixed row heights).\n */\n groupLabel?: string\n}\n\nexport type SelectProps<Item extends SelectItem> = Omit<SelectRootProps<Item>, 'collection'> & {\n items: Item[] | readonly Item[]\n renderItem?: (item: Item) => ReactNode\n renderTrigger?: (item: Item) => ReactNode\n emptyLabel?: string\n placeholder?: string\n allSelectedLabel?: string\n usePortal?: boolean\n virtualized?: boolean\n rowHeight?: number\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof select>\n\nconst MultipleUncheckedIndicator: FC = () => (\n <svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"0.5\" y=\"1\" width=\"15\" height=\"15\" rx=\"3.5\" fill=\"white\" />\n <rect x=\"0.5\" y=\"1\" width=\"15\" height=\"15\" rx=\"3.5\" className={css({ stroke: 'grey.100' })} />\n </svg>\n)\n\nconst MultipleCheckedIndicator: FC = () => (\n <svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect y=\"0.5\" width=\"16\" height=\"16\" rx=\"4\" className={css({ fill: 'primary.500' })} />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11.958 4.81298C12.1303 4.92787 12.1769 5.16069 12.062 5.33301L7.56202 12.083C7.4997 12.1765 7.39875 12.2371 7.28695 12.2482C7.17515 12.2592 7.06428 12.2196 6.98483 12.1402L3.98483 9.14017C3.83839 8.99372 3.83839 8.75628 3.98483 8.60984C4.13128 8.46339 4.36872 8.46339 4.51517 8.60984L7.19172 11.2864L11.438 4.91699C11.5529 4.74467 11.7857 4.6981 11.958 4.81298Z\"\n fill=\"white\"\n />\n </svg>\n)\n\ninterface InnerItemProps<Item extends SelectItem> {\n item: Item\n isMultiple?: boolean\n renderItem?: (item: Item) => ReactNode\n}\n\ninterface InnerTriggerProps<Item extends SelectItem> {\n renderTrigger: (item: Item) => ReactNode\n placeholder?: string\n allSelectedLabel?: string\n}\n\ninterface DefaultInnerTriggerProps {\n placeholder?: string\n allSelectedLabel?: string\n}\n\nfunction DefaultInnerTrigger({ placeholder, allSelectedLabel }: DefaultInnerTriggerProps) {\n const context = useSelectContext()\n const items = context.collection.items\n const selectedItems = context.selectedItems\n\n if (\n context.multiple &&\n selectedItems.filter(item => !item.disabled).length >= items.filter(item => !item.disabled).length &&\n allSelectedLabel\n ) {\n return (\n <ValueText className=\"custom\" truncate>\n {allSelectedLabel}\n </ValueText>\n )\n }\n\n return <ValueText truncate placeholder={placeholder} />\n}\n\nfunction CustomInnerTrigger<Item extends SelectItem>({\n renderTrigger,\n placeholder,\n allSelectedLabel,\n}: InnerTriggerProps<Item>) {\n const context = useSelectContext()\n const items = context.value && context.value.length > 0 ? context.collection.findMany(context.value) : []\n\n if (items.length === 0) {\n return <ValueText className=\"custom\" truncate placeholder={placeholder} />\n }\n\n const selectedItems = context.selectedItems\n\n if (\n context.multiple &&\n selectedItems.filter(item => !item.disabled).length >=\n context.collection.items.filter(item => !item.disabled).length &&\n allSelectedLabel\n ) {\n return (\n <ValueText className=\"custom\" truncate>\n {allSelectedLabel}\n </ValueText>\n )\n }\n\n return (\n <ValueText className=\"custom\" placeholder={placeholder}>\n {items.map(item => (\n <span key={item.value}>{renderTrigger(item)}</span>\n ))}\n </ValueText>\n )\n}\n\nfunction CustomInnerItem<Item extends SelectItem>({ item, isMultiple, renderItem }: InnerItemProps<Item>) {\n const context = useSelectItemContext()\n\n return (\n <>\n {isMultiple ? context.selected ? <MultipleCheckedIndicator /> : <MultipleUncheckedIndicator /> : null}\n {renderItem ? renderItem(item) : <ItemText truncate>{item.label}</ItemText>}\n </>\n )\n}\n\n/**\n * Splits the flat item list into consecutive runs sharing a `groupLabel`. Runs are built\n * from adjacency rather than by collecting every item with the same label, so the caller\n * keeps full control of the order: sorting is the caller's business, grouping is ours.\n */\nfunction toGroupRuns<Item extends SelectItem>(items: readonly Item[]) {\n const runs: Array<{ label?: string; items: Item[] }> = []\n\n for (const item of items) {\n const current = runs[runs.length - 1]\n if (current && current.label === item.groupLabel) {\n current.items.push(item)\n continue\n }\n runs.push({ label: item.groupLabel, items: [item] })\n }\n\n return runs\n}\n\nexport function Select<Item extends SelectItem>({\n items,\n placeholder,\n emptyLabel,\n usePortal = true,\n positioning,\n renderItem,\n renderTrigger,\n virtualized,\n rowHeight = 34,\n ...props\n}: SelectProps<Item>) {\n const uiLabels = useUiLabels()\n const collection = createListCollection({\n items,\n })\n const $dialogContent = useRef<HTMLDivElement | null>(null)\n\n const renderOption = (item: Item) => (\n <Fragment key={item.value}>\n <ConditionalWrapper\n key={item.value}\n when={!!item.tooltip}\n wrapper={children => <Tooltip label={item.tooltip}>{children}</Tooltip>}\n >\n <Item key={item.value} item={item}>\n <CustomInnerItem renderItem={renderItem} item={item} isMultiple={props.multiple} />\n </Item>\n </ConditionalWrapper>\n {item.separatorAfter && (\n <div\n role=\"separator\"\n className={css({\n height: '1px',\n flexShrink: 0,\n backgroundColor: 'grey.100',\n marginY: 'space-4',\n marginX: 'space-8',\n })}\n />\n )}\n </Fragment>\n )\n\n return (\n <Root\n lazyMount\n unmountOnExit\n collection={collection}\n positioning={{ sameWidth: true, gutter: 0, ...positioning }}\n data-recipe=\"select\"\n {...props}\n ref={(node: HTMLDivElement | null) => {\n if (node) {\n $dialogContent.current = node.closest('[role=\"dialog\"]') as HTMLDivElement | null\n }\n }}\n >\n <Control>\n <Trigger>\n {renderTrigger ? (\n <CustomInnerTrigger\n renderTrigger={renderTrigger}\n placeholder={placeholder}\n allSelectedLabel={props.allSelectedLabel}\n />\n ) : (\n <DefaultInnerTrigger placeholder={placeholder} allSelectedLabel={props.allSelectedLabel} />\n )}\n <Indicator asChild>\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z\"\n fill=\"currentColor\"\n />\n </svg>\n </Indicator>\n </Trigger>\n <ClearTrigger disabled={props.readOnly} asChild>\n <button>\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10 3.125C6.20304 3.125 3.125 6.20304 3.125 10C3.125 13.797 6.20304 16.875 10 16.875C13.797 16.875 16.875 13.797 16.875 10C16.875 6.20304 13.797 3.125 10 3.125ZM1.875 10C1.875 5.51269 5.51269 1.875 10 1.875C14.4873 1.875 18.125 5.51269 18.125 10C18.125 14.4873 14.4873 18.125 10 18.125C5.51269 18.125 1.875 14.4873 1.875 10ZM7.68306 7.68306C7.92714 7.43898 8.32286 7.43898 8.56694 7.68306L10 9.11612L11.4331 7.68306C11.6771 7.43898 12.0729 7.43898 12.3169 7.68306C12.561 7.92714 12.561 8.32286 12.3169 8.56694L10.8839 10L12.3169 11.4331C12.561 11.6771 12.561 12.0729 12.3169 12.3169C12.0729 12.561 11.6771 12.561 11.4331 12.3169L10 10.8839L8.56694 12.3169C8.32286 12.561 7.92714 12.561 7.68306 12.3169C7.43898 12.0729 7.43898 11.6771 7.68306 11.4331L9.11612 10L7.68306 8.56694C7.43898 8.32286 7.43898 7.92714 7.68306 7.68306Z\"\n fill=\"currentColor\"\n />\n </svg>\n </button>\n </ClearTrigger>\n </Control>\n <ConditionalWrapper when={usePortal} wrapper={children => <Portal container={$dialogContent}>{children}</Portal>}>\n <Positioner>\n <Content>\n {items.length === 0 ? (\n <Text px=\"space-8\" textAlign=\"center\">\n {emptyLabel ?? uiLabels.noResults}\n </Text>\n ) : virtualized ? (\n <>\n <FixedSizeList\n height={Math.min(rowHeight * items.length, 180)}\n itemCount={items.length}\n itemSize={rowHeight}\n width=\"100%\"\n >\n {({ index, style }) => (\n <ConditionalWrapper\n key={items[index].value}\n when={!!items[index].tooltip}\n wrapper={children => <Tooltip label={items[index].tooltip}>{children}</Tooltip>}\n >\n <Item key={items[index].value} item={items[index]} style={style}>\n <CustomInnerItem renderItem={renderItem} item={items[index]} />\n </Item>\n </ConditionalWrapper>\n )}\n </FixedSizeList>\n </>\n ) : (\n toGroupRuns<Item>(items).map((run, runIndex) =>\n run.label === undefined ? (\n <Fragment key={`group-${runIndex}`}>{run.items.map(renderOption)}</Fragment>\n ) : (\n <ItemGroup key={`group-${runIndex}`}>\n <ItemGroupLabel>{run.label}</ItemGroupLabel>\n {run.items.map(renderOption)}\n </ItemGroup>\n ),\n )\n )}\n </Content>\n </Positioner>\n </ConditionalWrapper>\n <ArkSelect.HiddenSelect />\n </Root>\n )\n}\n"],"mappings":"A,+bAsBA,GAAM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,MAAM,EAGzD4B,EAAOC,GAAA,EAAa5B,EAAAA,OAAAA,CAAOC,EAAAA,OAAU,IAAS,EAAG,OAAQ,CAC7D,aAAc,CACZ,UAAW,EACb,CACF,CAAC,EAEK4B,EAAeC,GAAA,EAAY9B,EAAAA,OAAAA,CAAOC,EAAAA,OAAU,YAAY,EAAG,cAAc,EACzE8B,EAAUD,GAAA,EAAY9B,EAAAA,OAAAA,CAAOC,EAAAA,OAAU,OAAO,EAAG,SAAS,EAC1D+B,EAAUF,GAAA,EAAY9B,EAAAA,OAAAA,CAAOC,EAAAA,OAAU,OAAO,EAAG,SAAS,EAC1DgC,EAAYH,GAAA,EAAY9B,EAAAA,OAAAA,CAAOC,EAAAA,OAAU,SAAS,EAAG,WAAW,EAChEiC,EAAOJ,GAAA,EAAY9B,EAAAA,OAAAA,CAAOC,EAAAA,OAAU,IAAI,EAAG,MAAM,EACjDkC,EAAYL,GAAA,EAAY9B,EAAAA,OAAAA,CAAOC,EAAAA,OAAU,SAAS,EAAG,WAAW,EACh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AAMW,EAAMwB,GAAe,QACxD,UAAA,EAAA7C,EAAA,IAAA,CAAC2B,EAAD,CAA6B,aAAY,KAAMN,EAAMwB,EAAS,CAAA,CAC1D,EAFKxB,EAAMwB,EAAM,CAAC,KAElB,CACY,EAPbxB,EAAMwB,EAAM,CAAC,KAOA,CAET,CAAA,CACf,CAAA,EAEFf,EAAkBT,CAAK,CAAC,CAAC,KAAK,EAAK,IACjCyB,EAAI,QAAU,IAAA,IACZ,EAAA9C,EAAA,IAAA,CAACf,EAAAA,SAAD,CAAA,SAAqC6D,EAAI,MAAM,IAAIR,CAAY,CAAY,EAA5D,SAASS,GAAmD,GAE3E,EAAA/C,EAAA,KAAA,CAACW,EAAD,CAAA,SAAA,EACE,EAAAX,EAAA,IAAA,CAACY,EAAD,CAAA,SAAiBkC,EAAI,KAAsB,CAAA,EAC1CA,EAAI,MAAM,IAAIR,CAAY,CAClB,CAAA,EAHK,SAASS,GAGd,CAEf,CAEK,CAAA,CACC,CAAA,CACM,CAAA,GACpB,EAAA/C,EAAA,IAAA,CAACvB,EAAAA,OAAU,aAAX,CAAyB,CAAA,CACrB,C,EAEV,C"}
|
|
@@ -31,4 +31,4 @@ export type SelectProps<Item extends SelectItem> = Omit<SelectRootProps<Item>, '
|
|
|
31
31
|
virtualized?: boolean;
|
|
32
32
|
rowHeight?: number;
|
|
33
33
|
} & HTMLStyledProps<'div'> & RecipeVariantProps<typeof select>;
|
|
34
|
-
export declare function Select<Item extends SelectItem>({ items, placeholder, emptyLabel, usePortal, positioning, renderItem, renderTrigger, virtualized, rowHeight, ...props }: SelectProps<Item>): import(
|
|
34
|
+
export declare function Select<Item extends SelectItem>({ items, placeholder, emptyLabel, usePortal, positioning, renderItem, renderTrigger, virtualized, rowHeight, ...props }: SelectProps<Item>): import('react').JSX.Element;
|
|
@@ -11,7 +11,7 @@ import { Fragment as f, useRef as p } from "react";
|
|
|
11
11
|
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
12
12
|
import { css as _ } from "@stokelp/styled-system/css";
|
|
13
13
|
import { FixedSizeList as v } from "react-window";
|
|
14
|
-
|
|
14
|
+
// src/components/select/Select.tsx
|
|
15
15
|
var { withProvider: y, withContext: b } = e(d), x = y(u(o.Root), "root", { defaultProps: { loopFocus: !0 } }), S = b(u(o.ClearTrigger), "clearTrigger"), C = b(u(o.Content), "content"), w = b(u(o.Control), "control"), T = b(u(o.Indicator), "indicator"), E = b(u(o.Item), "item"), D = b(u(o.ItemGroup), "itemGroup"), O = b(u(o.ItemGroupLabel), "itemGroupLabel"), k = b(u(o.ItemText), "itemText"), A = b(u(o.Positioner), "positioner"), j = b(u(o.Trigger), "trigger"), M = b(u(o.ValueText), "valueText"), N = () => /* @__PURE__ */ g("svg", {
|
|
16
16
|
width: "16",
|
|
17
17
|
height: "17",
|
|
@@ -92,11 +92,7 @@ function R(e) {
|
|
|
92
92
|
let t = [];
|
|
93
93
|
for (let n of e) {
|
|
94
94
|
let e = t[t.length - 1];
|
|
95
|
-
|
|
96
|
-
e.items.push(n);
|
|
97
|
-
continue;
|
|
98
|
-
}
|
|
99
|
-
t.push({
|
|
95
|
+
e && e.label === n.groupLabel ? e.items.push(n) : t.push({
|
|
100
96
|
label: n.groupLabel,
|
|
101
97
|
items: [n]
|
|
102
98
|
});
|
|
@@ -218,7 +214,6 @@ function z({ items: e, placeholder: c, emptyLabel: l, usePortal: u = !0, positio
|
|
|
218
214
|
]
|
|
219
215
|
});
|
|
220
216
|
}
|
|
221
|
-
//#endregion
|
|
222
217
|
export { z as Select };
|
|
223
218
|
|
|
224
219
|
//# sourceMappingURL=Select.js.map
|