@stokelp/ui 2.126.1 → 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 +1 -1
- package/dist/components/tag/Tag.cjs.map +1 -1
- package/dist/components/tag/Tag.js +19 -14
- 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 +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 +24 -11
- 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
|
@@ -7,7 +7,7 @@ import { avatar as a, avatarGroup as o } from "@stokelp/styled-system/recipes";
|
|
|
7
7
|
import { Children as s, cloneElement as c, forwardRef as l } from "react";
|
|
8
8
|
import { jsxs as u } from "react/jsx-runtime";
|
|
9
9
|
import { runIfFn as d } from "@zag-js/utils";
|
|
10
|
-
|
|
10
|
+
// src/components/avatar/styled.tsx
|
|
11
11
|
var f = /* @__PURE__ */ e({
|
|
12
12
|
Context: () => x,
|
|
13
13
|
Fallback: () => b,
|
|
@@ -23,7 +23,6 @@ var f = /* @__PURE__ */ e({
|
|
|
23
23
|
children: [s.map(l, (e) => c(e, a.raw({ size: t }))), r && f.length > 0 ? c(d(r, f.length), { "data-overflow": "" }) : null]
|
|
24
24
|
});
|
|
25
25
|
}), v = p(i(n.Root), "root"), y = m(i(n.Image), "image"), b = m(i(n.Fallback), "fallback"), x = n.Context;
|
|
26
|
-
|
|
27
|
-
export { b as Fallback, y as Image, v as Root, f as styled_exports };
|
|
26
|
+
export { x as Context, b as Fallback, _ as Group, y as Image, v as Root, f as styled_exports };
|
|
28
27
|
|
|
29
28
|
//# sourceMappingURL=styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled.js","names":[],"sources":["../../../src/components/avatar/styled.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ark, Avatar } from '@ark-ui/react'\nimport { runIfFn } from '@zag-js/utils'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { avatar, avatarGroup } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { Children, cloneElement, ComponentProps, forwardRef, ReactNode } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(avatar)\n\nconst InnerGroup = styled(ark.div, avatarGroup)\n\nconst partition = (children: ReactNode[], max: number) => {\n const first = children.slice(0, max)\n const rest = children.slice(max)\n\n return [first, rest]\n}\n\nexport const Group = forwardRef<HTMLDivElement, AvatarGroupProps>(\n ({ children, size, max = 4, overflowContent, ...props }, ref) => {\n const [avatars, overflow] = partition(Children.toArray(children), max)\n\n return (\n <InnerGroup ref={ref} size={size} {...props}>\n {Children.map(avatars, a => {\n return cloneElement(a as any, avatar.raw({ size }))\n })}\n {overflowContent && overflow.length > 0\n ? cloneElement(runIfFn(overflowContent, overflow.length) as any, { 'data-overflow': '' })\n : null}\n </InnerGroup>\n )\n },\n)\n\nexport const Root = withProvider(styled(Avatar.Root), 'root')\nexport const Image = withContext(styled(Avatar.Image), 'image')\nexport const Fallback = withContext(styled(Avatar.Fallback), 'fallback')\nexport const Context = Avatar.Context\n\nexport interface AvatarProps extends ComponentProps<typeof Root> {}\nexport type AvatarGroupProps = ComponentProps<typeof InnerGroup> & {\n overflowContent?: ((count: number) => ReactNode) | ReactNode\n max?: number\n}\nexport interface AvatarImageProps extends ComponentProps<typeof Image> {}\nexport interface AvatarFallbackProps extends ComponentProps<typeof Fallback> {}\nexport interface AvatarContextProps extends ComponentProps<typeof Context> {}\n"],"mappings":";;;;;;;;;;;;;;;;IAQM,EAAE,iBAAc,
|
|
1
|
+
{"version":3,"file":"styled.js","names":["styled_exports","Context","Fallback","Group","Image","Root","createStyleContext","avatar","InnerGroup","styled","ark","avatarGroup","partition","children","max","forwardRef","props","avatars","overflow","Children","cloneElement","a","overflowContent","runIfFn","withProvider","Avatar","withContext"],"sources":["../../../src/components/avatar/styled.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ark, Avatar } from '@ark-ui/react'\nimport { runIfFn } from '@zag-js/utils'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { avatar, avatarGroup } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { Children, cloneElement, ComponentProps, forwardRef, ReactNode } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(avatar)\n\nconst InnerGroup = styled(ark.div, avatarGroup)\n\nconst partition = (children: ReactNode[], max: number) => {\n const first = children.slice(0, max)\n const rest = children.slice(max)\n\n return [first, rest]\n}\n\nexport const Group = forwardRef<HTMLDivElement, AvatarGroupProps>(\n ({ children, size, max = 4, overflowContent, ...props }, ref) => {\n const [avatars, overflow] = partition(Children.toArray(children), max)\n\n return (\n <InnerGroup ref={ref} size={size} {...props}>\n {Children.map(avatars, a => {\n return cloneElement(a as any, avatar.raw({ size }))\n })}\n {overflowContent && overflow.length > 0\n ? cloneElement(runIfFn(overflowContent, overflow.length) as any, { 'data-overflow': '' })\n : null}\n </InnerGroup>\n )\n },\n)\n\nexport const Root = withProvider(styled(Avatar.Root), 'root')\nexport const Image = withContext(styled(Avatar.Image), 'image')\nexport const Fallback = withContext(styled(Avatar.Fallback), 'fallback')\nexport const Context = Avatar.Context\n\nexport interface AvatarProps extends ComponentProps<typeof Root> {}\nexport type AvatarGroupProps = ComponentProps<typeof InnerGroup> & {\n overflowContent?: ((count: number) => ReactNode) | ReactNode\n max?: number\n}\nexport interface AvatarImageProps extends ComponentProps<typeof Image> {}\nexport interface AvatarFallbackProps extends ComponentProps<typeof Fallback> {}\nexport interface AvatarContextProps extends ComponentProps<typeof Context> {}\n"],"mappings":";;;;;;;;;;;;;;;;A,IAQM,EAAE,iBAAc,mBAAgBM,EAAmBC,CAAM,GAEzDC,IAAaC,EAAOC,EAAI,KAAKC,CAAW,GAExCC,KAAa,GAAuB,MAIjC,CAHOC,EAAS,MAAM,GAAGC,CAGxB,GAFKD,EAAS,MAAMC,CAEb,CAAI,GAGRX,IAAQY,GAClB,EAAE,aAAU,SAAM,SAAM,GAAG,oBAAiB,GAAGC,KAAS,MAAQ;CAC/D,IAAM,CAACC,GAASC,KAAYN,EAAUO,EAAS,QAAQN,CAAQ,GAAGC,CAAG;CAErE,OACE,kBAACN,GAAD;EAAiB;EAAW;EAAM,GAAIQ;EAAtC,UAAA,CACGG,EAAS,IAAIF,IAAS,MACdG,EAAaC,GAAUd,EAAO,IAAI,EAAE,QAAK,CAAC,CAAC,CACnD,GACAe,KAAmBJ,EAAS,SAAS,IAClCE,EAAaG,EAAQD,GAAiBJ,EAAS,MAAM,GAAU,EAAE,iBAAiB,GAAG,CAAC,IACtF,IACM;;AAEhB,CACF,GAEab,IAAOmB,EAAaf,EAAOgB,EAAO,IAAI,GAAG,MAAM,GAC/CrB,IAAQsB,EAAYjB,EAAOgB,EAAO,KAAK,GAAG,OAAO,GACjDvB,IAAWwB,EAAYjB,EAAOgB,EAAO,QAAQ,GAAG,UAAU,GAC1DxB,IAAUwB,EAAO"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";let e=require("@stokelp/styled-system/jsx"),t=require("react"),n=require("react/jsx-runtime");var r=r=>{let{as:i=`div`,...a}=r
|
|
1
|
+
"use client";let e=require("@stokelp/styled-system/jsx"),t=require("react"),n=require("react/jsx-runtime");var r=r=>{let{as:i=`div`,...a}=r,o=(0,t.useMemo)(()=>(0,e.styled)(i),[i]);return(0,n.jsx)(o,{...a})};exports.Box=r;
|
|
2
2
|
//# sourceMappingURL=Box.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.cjs","names":[],"sources":["../../../src/components/box/Box.tsx"],"sourcesContent":["import { useMemo } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { type HTMLStyledProps, type StyledComponent } from '@stokelp/styled-system/types'\n\ntype As = 'span' | 'div' | 'nav' | 'aside' | 'ul' | 'li' | 'main' | 'section' | 'header' | 'footer'\n\nexport type BoxProps = {\n as?: As\n} & HTMLStyledProps<As>\n\nexport const Box = (props: BoxProps) => {\n const { as = 'div', ...localProps } = props\n const Component = useMemo(() => styled(as) as StyledComponent<As>, [as])\n\n return <Component {...localProps} />\n}\n"],"mappings":"2GAWA,
|
|
1
|
+
{"version":3,"file":"Box.cjs","names":["useMemo","styled","_stokelp_styled_system_jsx","react","react_jsx_runtime","Box","localProps","props","Component","as"],"sources":["../../../src/components/box/Box.tsx"],"sourcesContent":["import { useMemo } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { type HTMLStyledProps, type StyledComponent } from '@stokelp/styled-system/types'\n\ntype As = 'span' | 'div' | 'nav' | 'aside' | 'ul' | 'li' | 'main' | 'section' | 'header' | 'footer'\n\nexport type BoxProps = {\n as?: As\n} & HTMLStyledProps<As>\n\nexport const Box = (props: BoxProps) => {\n const { as = 'div', ...localProps } = props\n const Component = useMemo(() => styled(as) as StyledComponent<As>, [as])\n\n return <Component {...localProps} />\n}\n"],"mappings":"A,2GAWA,IAAaK,EAAO,GAAoB,CACtC,GAAM,CAAE,KAAK,MAAO,GAAGC,GAAeC,EAChCC,GAAA,EAAYR,EAAAA,QAAAA,MAAAA,EAAcC,EAAAA,OAAAA,CAAOQ,CAAE,EAA0B,CAACA,CAAE,CAAC,EAEvE,OAAO,EAAAL,EAAA,IAAA,CAACI,EAAD,CAAW,GAAIF,CAAa,CAAA,CACrC,E"}
|
|
@@ -3,5 +3,5 @@ type As = 'span' | 'div' | 'nav' | 'aside' | 'ul' | 'li' | 'main' | 'section' |
|
|
|
3
3
|
export type BoxProps = {
|
|
4
4
|
as?: As;
|
|
5
5
|
} & HTMLStyledProps<As>;
|
|
6
|
-
export declare const Box: (props: BoxProps) => import(
|
|
6
|
+
export declare const Box: (props: BoxProps) => import('react').JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
import { styled as e } from "@stokelp/styled-system/jsx";
|
|
3
3
|
import { useMemo as t } from "react";
|
|
4
4
|
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/box/Box.tsx
|
|
6
6
|
var r = (r) => {
|
|
7
|
-
let { as: i = "div", ...a } = r;
|
|
8
|
-
return /* @__PURE__ */ n(
|
|
7
|
+
let { as: i = "div", ...a } = r, o = t(() => e(i), [i]);
|
|
8
|
+
return /* @__PURE__ */ n(o, { ...a });
|
|
9
9
|
};
|
|
10
|
-
//#endregion
|
|
11
10
|
export { r as Box };
|
|
12
11
|
|
|
13
12
|
//# sourceMappingURL=Box.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.js","names":[],"sources":["../../../src/components/box/Box.tsx"],"sourcesContent":["import { useMemo } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { type HTMLStyledProps, type StyledComponent } from '@stokelp/styled-system/types'\n\ntype As = 'span' | 'div' | 'nav' | 'aside' | 'ul' | 'li' | 'main' | 'section' | 'header' | 'footer'\n\nexport type BoxProps = {\n as?: As\n} & HTMLStyledProps<As>\n\nexport const Box = (props: BoxProps) => {\n const { as = 'div', ...localProps } = props\n const Component = useMemo(() => styled(as) as StyledComponent<As>, [as])\n\n return <Component {...localProps} />\n}\n"],"mappings":";;;;;AAWA,
|
|
1
|
+
{"version":3,"file":"Box.js","names":["Box","Box$1","localProps","props","Component","useMemo","styled","as"],"sources":["../../../src/components/box/Box.tsx"],"sourcesContent":["import { useMemo } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { type HTMLStyledProps, type StyledComponent } from '@stokelp/styled-system/types'\n\ntype As = 'span' | 'div' | 'nav' | 'aside' | 'ul' | 'li' | 'main' | 'section' | 'header' | 'footer'\n\nexport type BoxProps = {\n as?: As\n} & HTMLStyledProps<As>\n\nexport const Box = (props: BoxProps) => {\n const { as = 'div', ...localProps } = props\n const Component = useMemo(() => styled(as) as StyledComponent<As>, [as])\n\n return <Component {...localProps} />\n}\n"],"mappings":";;;;;AAWA,IAAaA,KAAO,MAAoB;CACtC,IAAM,EAAE,QAAK,OAAO,GAAGE,MAAeC,GAChCC,IAAYC,QAAcC,EAAOC,CAAE,GAA0B,CAACA,CAAE,CAAC;CAEvE,OAAO,kBAACH,GAAD,EAAW,GAAIF,EAAa,CAAA;AACrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.cjs","names":[],"sources":["../../../src/components/breadcrumb/Breadcrumb.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { breadcrumb } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { ark } from '@ark-ui/react'\nimport * as ReactIs from 'react-is'\nimport { Children, cloneElement, ComponentProps, type FC, forwardRef, type JSX, ReactElement, ReactNode } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(breadcrumb)\n\n// See Table.tsx for why we pin the literal tag.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nconst StyledBreadcrumb = withProvider(styledTag('nav'), 'root')\nconst StyledBreadcrumbList = withContext(styledTag('ol'), 'list')\n\nexport const BreadcrumbItem = withContext(styledTag('li'), 'item')\nexport const BreadcrumbLink = withContext(styled(ark.a), 'link')\n\nconst DefaultSeparator = (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M16.2803 11.4741C16.5732 11.767 16.5732 12.2418 16.2803 12.5347L8.78033 20.0347C8.48744 20.3276 8.01256 20.3276 7.71967 20.0347C7.42678 19.7418 7.42678 19.267 7.71967 18.9741L14.6893 12.0044L7.71967 5.03472C7.42678 4.74183 7.42678 4.26696 7.71967 3.97406C8.01256 3.68117 8.48744 3.68117 8.78033 3.97406L16.2803 11.4741Z\"\n fill=\"#1E3A76\"\n />\n </svg>\n)\n\nexport const Breadcrumb = forwardRef<HTMLElement, BreadcrumbProps>(\n ({ children, separator = DefaultSeparator, ...props }, ref) => {\n const child = Children.toArray(\n ReactIs.isFragment(children) ? undefined : children,\n ) as ReactElement<BreadcrumbItemProps>[]\n\n return (\n <StyledBreadcrumb {...props} aria-label={props['aria-label'] ?? 'breadcrumb'} ref={ref}>\n <StyledBreadcrumbList>\n {child.map((item, index) => {\n return cloneElement<BreadcrumbItemProps>(item, {\n 'aria-current': index === child.length - 1 ? 'page' : undefined,\n children:\n index === child.length - 1 ? (\n item.props.children\n ) : (\n <>\n {item.props.children}\n {separator ? (\n <>\n {typeof separator === 'object' ? (\n cloneElement(separator as ReactElement)\n ) : (\n <span role=\"presentation\">{separator}</span>\n )}\n </>\n ) : null}\n </>\n ),\n })\n })}\n </StyledBreadcrumbList>\n </StyledBreadcrumb>\n )\n },\n) as FC<BreadcrumbProps>\n\nexport type BreadcrumbLinkProps = ComponentProps<typeof BreadcrumbLink>\nexport type BreadcrumbItemProps = ComponentProps<typeof BreadcrumbItem>\nexport type BreadcrumbProps = ComponentProps<typeof StyledBreadcrumb> & {\n separator?: ReactNode\n}\n"],"mappings":"oTAQA,GAAM,CAAE,eAAc,
|
|
1
|
+
{"version":3,"file":"Breadcrumb.cjs","names":["createStyleContext","breadcrumb","styled","ark","forwardRef","Children","ReactIs","cloneElement","_Fragment","require_runtime","require_slots","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","react_is","styledTag","tag","StyledBreadcrumb","withProvider","StyledBreadcrumbList","withContext","BreadcrumbItem","BreadcrumbLink","DefaultSeparator","Breadcrumb","props","child","children","item","index","separator"],"sources":["../../../src/components/breadcrumb/Breadcrumb.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { breadcrumb } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { ark } from '@ark-ui/react'\nimport * as ReactIs from 'react-is'\nimport { Children, cloneElement, ComponentProps, type FC, forwardRef, type JSX, ReactElement, ReactNode } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(breadcrumb)\n\n// See Table.tsx for why we pin the literal tag.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nconst StyledBreadcrumb = withProvider(styledTag('nav'), 'root')\nconst StyledBreadcrumbList = withContext(styledTag('ol'), 'list')\n\nexport const BreadcrumbItem = withContext(styledTag('li'), 'item')\nexport const BreadcrumbLink = withContext(styled(ark.a), 'link')\n\nconst DefaultSeparator = (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M16.2803 11.4741C16.5732 11.767 16.5732 12.2418 16.2803 12.5347L8.78033 20.0347C8.48744 20.3276 8.01256 20.3276 7.71967 20.0347C7.42678 19.7418 7.42678 19.267 7.71967 18.9741L14.6893 12.0044L7.71967 5.03472C7.42678 4.74183 7.42678 4.26696 7.71967 3.97406C8.01256 3.68117 8.48744 3.68117 8.78033 3.97406L16.2803 11.4741Z\"\n fill=\"#1E3A76\"\n />\n </svg>\n)\n\nexport const Breadcrumb = forwardRef<HTMLElement, BreadcrumbProps>(\n ({ children, separator = DefaultSeparator, ...props }, ref) => {\n const child = Children.toArray(\n ReactIs.isFragment(children) ? undefined : children,\n ) as ReactElement<BreadcrumbItemProps>[]\n\n return (\n <StyledBreadcrumb {...props} aria-label={props['aria-label'] ?? 'breadcrumb'} ref={ref}>\n <StyledBreadcrumbList>\n {child.map((item, index) => {\n return cloneElement<BreadcrumbItemProps>(item, {\n 'aria-current': index === child.length - 1 ? 'page' : undefined,\n children:\n index === child.length - 1 ? (\n item.props.children\n ) : (\n <>\n {item.props.children}\n {separator ? (\n <>\n {typeof separator === 'object' ? (\n cloneElement(separator as ReactElement)\n ) : (\n <span role=\"presentation\">{separator}</span>\n )}\n </>\n ) : null}\n </>\n ),\n })\n })}\n </StyledBreadcrumbList>\n </StyledBreadcrumb>\n )\n },\n) as FC<BreadcrumbProps>\n\nexport type BreadcrumbLinkProps = ComponentProps<typeof BreadcrumbLink>\nexport type BreadcrumbItemProps = ComponentProps<typeof BreadcrumbItem>\nexport type BreadcrumbProps = ComponentProps<typeof StyledBreadcrumb> & {\n separator?: ReactNode\n}\n"],"mappings":"A,oTAQA,GAAM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,UAAU,EAG7DgB,EAAoD,IAAA,EACxDf,EAAAA,OAAAA,CAAOgB,CAAG,EAENC,EAAmBC,EAAaH,EAAU,KAAK,EAAG,MAAM,EACxDI,EAAuBC,EAAYL,EAAU,IAAI,EAAG,MAAM,EAEnDM,EAAiBD,EAAYL,EAAU,IAAI,EAAG,MAAM,EACpDO,EAAiBF,GAAA,EAAYpB,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,CAAC,EAAG,MAAM,EAEzDsB,GACJ,EAAAV,EAAA,IAAA,CAAC,MAAD,CAAK,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,MAAM,6BAChE,UAAA,EAAAA,EAAA,IAAA,CAAC,OAAD,CACE,SAAS,UACT,SAAS,UACT,EAAE,kUACF,KAAK,SACN,CAAA,CACE,CAAA,EAGMW,GAAA,EAAatB,EAAAA,WAAAA,EACvB,CAAE,WAAU,YAAYqB,EAAkB,GAAGE,GAAS,IAAQ,CAC7D,IAAMC,EAAQvB,EAAAA,SAAS,QACrBC,EAAQ,WAAWuB,CAAQ,EAAI,IAAA,GAAYA,CAC7C,EAEA,OACE,EAAAd,EAAA,IAAA,CAACI,EAAD,CAAkB,GAAIQ,EAAO,aAAYA,EAAM,eAAiB,aAAmB,MACjF,UAAA,EAAAZ,EAAA,IAAA,CAACM,EAAD,CAAA,SACGO,EAAM,KAAK,EAAM,KAChB,EAAOrB,EAAAA,aAAAA,CAAkCuB,EAAM,CAC7C,eAAgBC,IAAUH,EAAM,OAAS,EAAI,OAAS,IAAA,GACtD,SACEG,IAAUH,EAAM,OAAS,EACvBE,EAAK,MAAM,UAEX,EAAAf,EAAA,KAAA,CAAAP,EAAAA,SAAA,CAAA,SAAA,CACGsB,EAAK,MAAM,SACXE,GACC,EAAAjB,EAAA,IAAA,CAAAP,EAAAA,SAAA,CAAA,SACG,OAAOwB,GAAc,UAAA,EACpBzB,EAAAA,aAAAA,CAAayB,CAAyB,GAEtC,EAAAjB,EAAA,IAAA,CAAC,OAAD,CAAM,KAAK,eAAgB,SAAAiB,CAAgB,CAAA,CAE7C,CAAA,EACA,IACJ,CAAA,CAAA,CAER,CAAC,CACF,CACmB,CAAA,CACN,CAAA,CAEtB,CACF,E"}
|
|
@@ -6,7 +6,7 @@ import { breadcrumb as r } from "@stokelp/styled-system/recipes";
|
|
|
6
6
|
import { Children as i, cloneElement as a, forwardRef as o } from "react";
|
|
7
7
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
8
|
import * as u from "react-is";
|
|
9
|
-
|
|
9
|
+
// src/components/breadcrumb/Breadcrumb.tsx
|
|
10
10
|
var { withProvider: d, withContext: f } = e(r), p = (e) => n(e), m = d(p("nav"), "root"), h = f(p("ol"), "list"), g = f(p("li"), "item"), _ = f(n(t.a), "link"), v = /* @__PURE__ */ c("svg", {
|
|
11
11
|
width: "16",
|
|
12
12
|
height: "16",
|
|
@@ -34,7 +34,6 @@ var { withProvider: d, withContext: f } = e(r), p = (e) => n(e), m = d(p("nav"),
|
|
|
34
34
|
})) })
|
|
35
35
|
});
|
|
36
36
|
});
|
|
37
|
-
//#endregion
|
|
38
37
|
export { y as Breadcrumb, g as BreadcrumbItem, _ as BreadcrumbLink };
|
|
39
38
|
|
|
40
39
|
//# sourceMappingURL=Breadcrumb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.js","names":[],"sources":["../../../src/components/breadcrumb/Breadcrumb.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { breadcrumb } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { ark } from '@ark-ui/react'\nimport * as ReactIs from 'react-is'\nimport { Children, cloneElement, ComponentProps, type FC, forwardRef, type JSX, ReactElement, ReactNode } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(breadcrumb)\n\n// See Table.tsx for why we pin the literal tag.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nconst StyledBreadcrumb = withProvider(styledTag('nav'), 'root')\nconst StyledBreadcrumbList = withContext(styledTag('ol'), 'list')\n\nexport const BreadcrumbItem = withContext(styledTag('li'), 'item')\nexport const BreadcrumbLink = withContext(styled(ark.a), 'link')\n\nconst DefaultSeparator = (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M16.2803 11.4741C16.5732 11.767 16.5732 12.2418 16.2803 12.5347L8.78033 20.0347C8.48744 20.3276 8.01256 20.3276 7.71967 20.0347C7.42678 19.7418 7.42678 19.267 7.71967 18.9741L14.6893 12.0044L7.71967 5.03472C7.42678 4.74183 7.42678 4.26696 7.71967 3.97406C8.01256 3.68117 8.48744 3.68117 8.78033 3.97406L16.2803 11.4741Z\"\n fill=\"#1E3A76\"\n />\n </svg>\n)\n\nexport const Breadcrumb = forwardRef<HTMLElement, BreadcrumbProps>(\n ({ children, separator = DefaultSeparator, ...props }, ref) => {\n const child = Children.toArray(\n ReactIs.isFragment(children) ? undefined : children,\n ) as ReactElement<BreadcrumbItemProps>[]\n\n return (\n <StyledBreadcrumb {...props} aria-label={props['aria-label'] ?? 'breadcrumb'} ref={ref}>\n <StyledBreadcrumbList>\n {child.map((item, index) => {\n return cloneElement<BreadcrumbItemProps>(item, {\n 'aria-current': index === child.length - 1 ? 'page' : undefined,\n children:\n index === child.length - 1 ? (\n item.props.children\n ) : (\n <>\n {item.props.children}\n {separator ? (\n <>\n {typeof separator === 'object' ? (\n cloneElement(separator as ReactElement)\n ) : (\n <span role=\"presentation\">{separator}</span>\n )}\n </>\n ) : null}\n </>\n ),\n })\n })}\n </StyledBreadcrumbList>\n </StyledBreadcrumb>\n )\n },\n) as FC<BreadcrumbProps>\n\nexport type BreadcrumbLinkProps = ComponentProps<typeof BreadcrumbLink>\nexport type BreadcrumbItemProps = ComponentProps<typeof BreadcrumbItem>\nexport type BreadcrumbProps = ComponentProps<typeof StyledBreadcrumb> & {\n separator?: ReactNode\n}\n"],"mappings":";;;;;;;;;AAQA,IAAM,EAAE,iBAAc,
|
|
1
|
+
{"version":3,"file":"Breadcrumb.js","names":["_Fragment","Fragment$1","ReactIs","createStyleContext","breadcrumb","styledTag","styled","tag","StyledBreadcrumb","withProvider","StyledBreadcrumbList","withContext","BreadcrumbItem","BreadcrumbLink","ark","DefaultSeparator","Breadcrumb","forwardRef","props","child","Children","children","cloneElement","item","index","separator"],"sources":["../../../src/components/breadcrumb/Breadcrumb.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { breadcrumb } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { ark } from '@ark-ui/react'\nimport * as ReactIs from 'react-is'\nimport { Children, cloneElement, ComponentProps, type FC, forwardRef, type JSX, ReactElement, ReactNode } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(breadcrumb)\n\n// See Table.tsx for why we pin the literal tag.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nconst StyledBreadcrumb = withProvider(styledTag('nav'), 'root')\nconst StyledBreadcrumbList = withContext(styledTag('ol'), 'list')\n\nexport const BreadcrumbItem = withContext(styledTag('li'), 'item')\nexport const BreadcrumbLink = withContext(styled(ark.a), 'link')\n\nconst DefaultSeparator = (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M16.2803 11.4741C16.5732 11.767 16.5732 12.2418 16.2803 12.5347L8.78033 20.0347C8.48744 20.3276 8.01256 20.3276 7.71967 20.0347C7.42678 19.7418 7.42678 19.267 7.71967 18.9741L14.6893 12.0044L7.71967 5.03472C7.42678 4.74183 7.42678 4.26696 7.71967 3.97406C8.01256 3.68117 8.48744 3.68117 8.78033 3.97406L16.2803 11.4741Z\"\n fill=\"#1E3A76\"\n />\n </svg>\n)\n\nexport const Breadcrumb = forwardRef<HTMLElement, BreadcrumbProps>(\n ({ children, separator = DefaultSeparator, ...props }, ref) => {\n const child = Children.toArray(\n ReactIs.isFragment(children) ? undefined : children,\n ) as ReactElement<BreadcrumbItemProps>[]\n\n return (\n <StyledBreadcrumb {...props} aria-label={props['aria-label'] ?? 'breadcrumb'} ref={ref}>\n <StyledBreadcrumbList>\n {child.map((item, index) => {\n return cloneElement<BreadcrumbItemProps>(item, {\n 'aria-current': index === child.length - 1 ? 'page' : undefined,\n children:\n index === child.length - 1 ? (\n item.props.children\n ) : (\n <>\n {item.props.children}\n {separator ? (\n <>\n {typeof separator === 'object' ? (\n cloneElement(separator as ReactElement)\n ) : (\n <span role=\"presentation\">{separator}</span>\n )}\n </>\n ) : null}\n </>\n ),\n })\n })}\n </StyledBreadcrumbList>\n </StyledBreadcrumb>\n )\n },\n) as FC<BreadcrumbProps>\n\nexport type BreadcrumbLinkProps = ComponentProps<typeof BreadcrumbLink>\nexport type BreadcrumbItemProps = ComponentProps<typeof BreadcrumbItem>\nexport type BreadcrumbProps = ComponentProps<typeof StyledBreadcrumb> & {\n separator?: ReactNode\n}\n"],"mappings":";;;;;;;;;AAQA,IAAM,EAAE,iBAAc,mBAAgBG,EAAmBC,CAAU,GAG7DC,KAAoD,MACxDC,EAAOC,CAAG,GAENC,IAAmBC,EAAaJ,EAAU,KAAK,GAAG,MAAM,GACxDK,IAAuBC,EAAYN,EAAU,IAAI,GAAG,MAAM,GAEnDO,IAAiBD,EAAYN,EAAU,IAAI,GAAG,MAAM,GACpDQ,IAAiBF,EAAYL,EAAOQ,EAAI,CAAC,GAAG,MAAM,GAEzDC,IACJ,kBAAC,OAAD;CAAK,OAAM;CAAK,QAAO;CAAK,SAAQ;CAAY,MAAK;CAAO,OAAM;CAChE,UAAA,kBAAC,QAAD;EACE,UAAS;EACT,UAAS;EACT,GAAE;EACF,MAAK;CACN,CAAA;AACE,CAAA,GAGMC,IAAaC,GACvB,EAAE,aAAU,eAAYF,GAAkB,GAAGG,KAAS,MAAQ;CAC7D,IAAMC,IAAQC,EAAS,QACrBlB,EAAQ,WAAWmB,CAAQ,IAAI,KAAA,IAAYA,CAC7C;CAEA,OACE,kBAACb,GAAD;EAAkB,GAAIU;EAAO,cAAYA,EAAM,iBAAiB;EAAmB;EACjF,UAAA,kBAACR,GAAD,EAAA,UACGS,EAAM,KAAK,GAAM,MACTG,EAAkCC,GAAM;GAC7C,gBAAgBC,MAAUL,EAAM,SAAS,IAAI,SAAS,KAAA;GACtD,UACEK,MAAUL,EAAM,SAAS,IACvBI,EAAK,MAAM,WAEX,kBAAAvB,GAAA,EAAA,UAAA,CACGuB,EAAK,MAAM,UACXE,IACC,kBAAAzB,GAAA,EAAA,UACG,OAAOyB,KAAc,WACpBH,EAAaG,CAAyB,IAEtC,kBAAC,QAAD;IAAM,MAAK;IAAgB,UAAAA;GAAgB,CAAA,EAE7C,CAAA,IACA,IACJ,EAAA,CAAA;EAER,CAAC,CACF,EACmB,CAAA;CACN,CAAA;AAEtB,CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.cjs","names":[],"sources":["../../../src/components/button/Button.tsx"],"sourcesContent":["import { ark, type HTMLArkProps } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { button, type ButtonVariantProps } from '@stokelp/styled-system/recipes'\nimport type { JsxStyleProps } from '@stokelp/styled-system/types'\nimport type { ComponentProps, JSX } from 'react'\n\n// We need three things from the Button typing:\n// 1. Native `<button>` HTML attrs (including a properly-typed onClick event)\n// 2. ark's polymorphic `asChild` prop\n// 3. The button recipe's variant props\n//\n// `styled(ark.button, button)` runtime is correct, but TS d.ts emit widens\n// the inferred component type and consumers lose onClick typing (TS7006).\n// This explicit cast pins all three layers.\ntype ButtonComponentProps = HTMLArkProps<'button'> & JsxStyleProps & ButtonVariantProps\ntype ButtonComponent = ((props: ButtonComponentProps) => JSX.Element) & { displayName?: string }\n\nexport const Button = styled(ark.button, button) as unknown as ButtonComponent\nexport type ButtonProps = ComponentProps<typeof Button>\n"],"mappings":"gIAiBA,
|
|
1
|
+
{"version":3,"file":"Button.cjs","names":["styled","ark","button","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","Button"],"sources":["../../../src/components/button/Button.tsx"],"sourcesContent":["import { ark, type HTMLArkProps } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { button, type ButtonVariantProps } from '@stokelp/styled-system/recipes'\nimport type { JsxStyleProps } from '@stokelp/styled-system/types'\nimport type { ComponentProps, JSX } from 'react'\n\n// We need three things from the Button typing:\n// 1. Native `<button>` HTML attrs (including a properly-typed onClick event)\n// 2. ark's polymorphic `asChild` prop\n// 3. The button recipe's variant props\n//\n// `styled(ark.button, button)` runtime is correct, but TS d.ts emit widens\n// the inferred component type and consumers lose onClick typing (TS7006).\n// This explicit cast pins all three layers.\ntype ButtonComponentProps = HTMLArkProps<'button'> & JsxStyleProps & ButtonVariantProps\ntype ButtonComponent = ((props: ButtonComponentProps) => JSX.Element) & { displayName?: string }\n\nexport const Button = styled(ark.button, button) as unknown as ButtonComponent\nexport type ButtonProps = ComponentProps<typeof Button>\n"],"mappings":"A,gIAiBA,IAAaM,GAAA,EAASN,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,OAAQC,EAAAA,MAAM,E"}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import { ark as e } from "@ark-ui/react";
|
|
3
3
|
import { styled as t } from "@stokelp/styled-system/jsx";
|
|
4
4
|
import { button as n } from "@stokelp/styled-system/recipes";
|
|
5
|
-
|
|
5
|
+
// src/components/button/Button.tsx
|
|
6
6
|
var r = t(e.button, n);
|
|
7
|
-
//#endregion
|
|
8
7
|
export { r as Button };
|
|
9
8
|
|
|
10
9
|
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","names":[],"sources":["../../../src/components/button/Button.tsx"],"sourcesContent":["import { ark, type HTMLArkProps } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { button, type ButtonVariantProps } from '@stokelp/styled-system/recipes'\nimport type { JsxStyleProps } from '@stokelp/styled-system/types'\nimport type { ComponentProps, JSX } from 'react'\n\n// We need three things from the Button typing:\n// 1. Native `<button>` HTML attrs (including a properly-typed onClick event)\n// 2. ark's polymorphic `asChild` prop\n// 3. The button recipe's variant props\n//\n// `styled(ark.button, button)` runtime is correct, but TS d.ts emit widens\n// the inferred component type and consumers lose onClick typing (TS7006).\n// This explicit cast pins all three layers.\ntype ButtonComponentProps = HTMLArkProps<'button'> & JsxStyleProps & ButtonVariantProps\ntype ButtonComponent = ((props: ButtonComponentProps) => JSX.Element) & { displayName?: string }\n\nexport const Button = styled(ark.button, button) as unknown as ButtonComponent\nexport type ButtonProps = ComponentProps<typeof Button>\n"],"mappings":";;;;;AAiBA,
|
|
1
|
+
{"version":3,"file":"Button.js","names":["Button","styled","ark","button"],"sources":["../../../src/components/button/Button.tsx"],"sourcesContent":["import { ark, type HTMLArkProps } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { button, type ButtonVariantProps } from '@stokelp/styled-system/recipes'\nimport type { JsxStyleProps } from '@stokelp/styled-system/types'\nimport type { ComponentProps, JSX } from 'react'\n\n// We need three things from the Button typing:\n// 1. Native `<button>` HTML attrs (including a properly-typed onClick event)\n// 2. ark's polymorphic `asChild` prop\n// 3. The button recipe's variant props\n//\n// `styled(ark.button, button)` runtime is correct, but TS d.ts emit widens\n// the inferred component type and consumers lose onClick typing (TS7006).\n// This explicit cast pins all three layers.\ntype ButtonComponentProps = HTMLArkProps<'button'> & JsxStyleProps & ButtonVariantProps\ntype ButtonComponent = ((props: ButtonComponentProps) => JSX.Element) & { displayName?: string }\n\nexport const Button = styled(ark.button, button) as unknown as ButtonComponent\nexport type ButtonProps = ComponentProps<typeof Button>\n"],"mappings":";;;;;AAiBA,IAAaA,IAASC,EAAOC,EAAI,QAAQC,CAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonFilter.cjs","names":[],"sources":["../../../src/components/button-filter/ButtonFilter.tsx"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { buttonFilter } from '@stokelp/styled-system/recipes'\nimport type { ComponentProps } from 'react'\n\nexport const ButtonFilter = styled(ark.button, buttonFilter)\nexport interface ButtonFilterProps extends ComponentProps<typeof ButtonFilter> {}\n"],"mappings":"gIAKA,
|
|
1
|
+
{"version":3,"file":"ButtonFilter.cjs","names":["styled","ark","buttonFilter","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","ButtonFilter"],"sources":["../../../src/components/button-filter/ButtonFilter.tsx"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { buttonFilter } from '@stokelp/styled-system/recipes'\nimport type { ComponentProps } from 'react'\n\nexport const ButtonFilter = styled(ark.button, buttonFilter)\nexport interface ButtonFilterProps extends ComponentProps<typeof ButtonFilter> {}\n"],"mappings":"A,gIAKA,IAAaM,GAAA,EAAeN,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,OAAQC,EAAAA,YAAY,E"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
import { StyledComponent } from '@stokelp/styled-system/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}>;
|
|
2
|
+
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
3
|
+
import { Assign, AnyProps } from '@stokelp/styled-system/types';
|
|
4
|
+
import { ButtonFilterVariantProps } from '@stokelp/styled-system/recipes';
|
|
5
|
+
export declare const ButtonFilter: StyledComponent<any, Assign<AnyProps, ButtonFilterVariantProps>>;
|
|
7
6
|
export interface ButtonFilterProps extends ComponentProps<typeof ButtonFilter> {
|
|
8
7
|
}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import { ark as e } from "@ark-ui/react";
|
|
3
3
|
import { styled as t } from "@stokelp/styled-system/jsx";
|
|
4
4
|
import { buttonFilter as n } from "@stokelp/styled-system/recipes";
|
|
5
|
-
|
|
5
|
+
// src/components/button-filter/ButtonFilter.tsx
|
|
6
6
|
var r = t(e.button, n);
|
|
7
|
-
//#endregion
|
|
8
7
|
export { r as ButtonFilter };
|
|
9
8
|
|
|
10
9
|
//# sourceMappingURL=ButtonFilter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonFilter.js","names":[],"sources":["../../../src/components/button-filter/ButtonFilter.tsx"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { buttonFilter } from '@stokelp/styled-system/recipes'\nimport type { ComponentProps } from 'react'\n\nexport const ButtonFilter = styled(ark.button, buttonFilter)\nexport interface ButtonFilterProps extends ComponentProps<typeof ButtonFilter> {}\n"],"mappings":";;;;;AAKA,
|
|
1
|
+
{"version":3,"file":"ButtonFilter.js","names":["ButtonFilter","styled","ark","buttonFilter"],"sources":["../../../src/components/button-filter/ButtonFilter.tsx"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { buttonFilter } from '@stokelp/styled-system/recipes'\nimport type { ComponentProps } from 'react'\n\nexport const ButtonFilter = styled(ark.button, buttonFilter)\nexport interface ButtonFilterProps extends ComponentProps<typeof ButtonFilter> {}\n"],"mappings":";;;;;AAKA,IAAaA,IAAeC,EAAOC,EAAI,QAAQC,CAAY"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utils/slots.cjs"),n=require("./ChatMessage.cjs"),r=require("./ChatDocumentMessage.cjs"),i=require("./ChatProfileAvatar.cjs");let a=require("@ark-ui/react"),o=require("@stokelp/styled-system/jsx"),s=require("@stokelp/styled-system/recipes"),c=require("react/jsx-runtime");var l=e.__exportAll({DocumentMessage:()=>m,Message:()=>p,MessageContainer:()=>f,ProfileAvatar:()=>h,Root:()=>g}),{withProvider:u}=t.createStyleContext(s.chat),d=u((0,o.styled)(a.ark.div),`root`),f=u(a.ark.div,`message-container`),p=u(n.ChatMessage,`message`),m=u(r.ChatDocumentMessage,`document-message`),h=u(i.ChatProfileAvatar,`document-message`),g=({messages:e=[],...t})=>(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(d,{...t,children:(0,c.jsxs)(c.Fragment,{children:[e.map((e,t)=>(0,c.jsx)(f,{className:`chat-message-container-${e.side}`,children:e.children},t)),(0,c.jsx)(o.Box,{id:`chat-anchor`})]})})});Object.defineProperty(exports,"Chat_exports",{enumerable:!0,get:function(){return l}});
|
|
1
|
+
"use client";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utils/slots.cjs"),n=require("./ChatMessage.cjs"),r=require("./ChatDocumentMessage.cjs"),i=require("./ChatProfileAvatar.cjs");let a=require("@ark-ui/react"),o=require("@stokelp/styled-system/jsx"),s=require("@stokelp/styled-system/recipes"),c=require("react/jsx-runtime");var l=e.__exportAll({DocumentMessage:()=>m,Message:()=>p,MessageContainer:()=>f,ProfileAvatar:()=>h,Root:()=>g}),{withProvider:u}=t.createStyleContext(s.chat),d=u((0,o.styled)(a.ark.div),`root`),f=u(a.ark.div,`message-container`),p=u(n.ChatMessage,`message`),m=u(r.ChatDocumentMessage,`document-message`),h=u(i.ChatProfileAvatar,`document-message`),g=({messages:e=[],...t})=>(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(d,{...t,children:(0,c.jsxs)(c.Fragment,{children:[e.map((e,t)=>(0,c.jsx)(f,{className:`chat-message-container-${e.side}`,children:e.children},t)),(0,c.jsx)(o.Box,{id:`chat-anchor`})]})})});Object.defineProperty(exports,"Chat_exports",{enumerable:!0,get:function(){return l}}),exports.DocumentMessage=m,exports.Message=p,exports.MessageContainer=f,exports.ProfileAvatar=h,exports.Root=g;
|
|
2
2
|
//# sourceMappingURL=Chat.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.cjs","names":[],"sources":["../../../src/components/chat/Chat.tsx"],"sourcesContent":["import { FC, ReactElement } from 'react'\nimport { chat } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots.tsx'\nimport { ChatMessage, ChatMessageProps } from '~/components/chat/ChatMessage.tsx'\nimport { ChatDocumentMessage, ChatDocumentMessageProps } from '~/components/chat/ChatDocumentMessage.tsx'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { ark } from '@ark-ui/react'\nimport { Box, styled } from '@stokelp/styled-system/jsx'\nimport { ChatProfileAvatar, ChatProfileAvatarProps } from '~/components/chat/ChatProfileAvatar.tsx'\n\nconst { withProvider } = createStyleContext(chat)\n\nconst RootStyleElement = withProvider(styled(ark.div), 'root')\nexport const MessageContainer = withProvider(ark.div, 'message-container')\nexport const Message = withProvider(ChatMessage, 'message')\nexport const DocumentMessage = withProvider(ChatDocumentMessage, 'document-message')\nexport const ProfileAvatar = withProvider(ChatProfileAvatar, 'document-message')\n\ntype ChatRootMessage = {\n side?: 'left' | 'right' | 'center'\n children: ReactElement\n}\n\nexport type RootProps = {\n messages?: ChatRootMessage[]\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof chat>\n\nexport interface MessageProps extends ChatMessageProps {}\nexport interface DocumentMessageProps extends ChatDocumentMessageProps {}\nexport interface ProfileAvatarProps extends ChatProfileAvatarProps {}\n\nexport const Root: FC<RootProps> = ({ messages = [], ...props }) => {\n return (\n <>\n {\n <RootStyleElement\n {...props}\n children={\n <>\n {messages.map((MessageComponent: ChatRootMessage, index: number) => (\n <MessageContainer key={index} className={`chat-message-container-${MessageComponent.side}`}>\n {MessageComponent.children}\n </MessageContainer>\n ))}\n <Box id=\"chat-anchor\" />\n </>\n }\n />\n }\n </>\n )\n}\n"],"mappings":"sdAUM,CAAE,
|
|
1
|
+
{"version":3,"file":"Chat.cjs","names":["createStyleContext","chat","styled","ark","ChatMessage","ChatDocumentMessage","ChatProfileAvatar","_Fragment","Box","require_runtime","require_slots","require_ChatMessage","require_ChatDocumentMessage","require_ChatProfileAvatar","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react_jsx_runtime","Chat_exports","DocumentMessage","Message","MessageContainer","ProfileAvatar","Root","RootStyleElement","withProvider","props","messages","MessageComponent","index"],"sources":["../../../src/components/chat/Chat.tsx"],"sourcesContent":["import { FC, ReactElement } from 'react'\nimport { chat } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots.tsx'\nimport { ChatMessage, ChatMessageProps } from '~/components/chat/ChatMessage.tsx'\nimport { ChatDocumentMessage, ChatDocumentMessageProps } from '~/components/chat/ChatDocumentMessage.tsx'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { ark } from '@ark-ui/react'\nimport { Box, styled } from '@stokelp/styled-system/jsx'\nimport { ChatProfileAvatar, ChatProfileAvatarProps } from '~/components/chat/ChatProfileAvatar.tsx'\n\nconst { withProvider } = createStyleContext(chat)\n\nconst RootStyleElement = withProvider(styled(ark.div), 'root')\nexport const MessageContainer = withProvider(ark.div, 'message-container')\nexport const Message = withProvider(ChatMessage, 'message')\nexport const DocumentMessage = withProvider(ChatDocumentMessage, 'document-message')\nexport const ProfileAvatar = withProvider(ChatProfileAvatar, 'document-message')\n\ntype ChatRootMessage = {\n side?: 'left' | 'right' | 'center'\n children: ReactElement\n}\n\nexport type RootProps = {\n messages?: ChatRootMessage[]\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof chat>\n\nexport interface MessageProps extends ChatMessageProps {}\nexport interface DocumentMessageProps extends ChatDocumentMessageProps {}\nexport interface ProfileAvatarProps extends ChatProfileAvatarProps {}\n\nexport const Root: FC<RootProps> = ({ messages = [], ...props }) => {\n return (\n <>\n {\n <RootStyleElement\n {...props}\n children={\n <>\n {messages.map((MessageComponent: ChatRootMessage, index: number) => (\n <MessageContainer key={index} className={`chat-message-container-${MessageComponent.side}`}>\n {MessageComponent.children}\n </MessageContainer>\n ))}\n <Box id=\"chat-anchor\" />\n </>\n }\n />\n }\n </>\n )\n}\n"],"mappings":"A,sdAUM,CAAE,gBAAiBA,EAAAA,mBAAmBC,EAAAA,IAAI,EAE1CuB,EAAmBC,GAAA,EAAavB,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,GAAG,EAAG,MAAM,EAChDkB,EAAmBI,EAAatB,EAAAA,IAAI,IAAK,mBAAmB,EAC5DiB,EAAUK,EAAarB,EAAAA,YAAa,SAAS,EAC7Ce,EAAkBM,EAAapB,EAAAA,oBAAqB,kBAAkB,EACtEiB,EAAgBG,EAAanB,EAAAA,kBAAmB,kBAAkB,EAgBlEiB,GAAuB,CAAE,WAAW,CAAC,EAAG,GAAGG,MAEpD,EAAAT,EAAA,IAAA,CAAAV,EAAAA,SAAA,CAAA,UAEI,EAAAU,EAAA,IAAA,CAACO,EAAD,CACE,GAAIE,EACJ,UACE,EAAAT,EAAA,KAAA,CAAAV,EAAAA,SAAA,CAAA,SAAA,CACGoB,EAAS,KAAK,EAAmC,KAChD,EAAAV,EAAA,IAAA,CAACI,EAAD,CAA8B,UAAW,0BAA0BO,EAAiB,OACjF,SAAAA,EAAiB,QACF,EAFKC,CAEL,CACnB,GACD,EAAAZ,EAAA,IAAA,CAACT,EAAAA,IAAD,CAAK,GAAG,aAAe,CAAA,CACvB,CAAA,CAAA,CAEL,CAAA,CAEH,CAAA,E"}
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { FC, ReactElement, ForwardRefExoticComponent, ClassAttributes, HTMLAttributes } from 'react';
|
|
2
|
-
import { chat, ChatRecipe } from '@stokelp/styled-system/recipes';
|
|
2
|
+
import { chat, ChatRecipe, ChatMessageVariantProps } from '@stokelp/styled-system/recipes';
|
|
3
3
|
import { ChatMessageProps } from './ChatMessage.tsx';
|
|
4
4
|
import { ChatDocumentMessageProps } from './ChatDocumentMessage.tsx';
|
|
5
|
-
import { HTMLStyledProps, RecipeVariantProps,
|
|
5
|
+
import { HTMLStyledProps, RecipeVariantProps, Assign, AnyProps } from '@stokelp/styled-system/types';
|
|
6
6
|
import { ChatProfileAvatarProps } from './ChatProfileAvatar.tsx';
|
|
7
7
|
import { ComponentVariants } from '../../utils/slots.tsx';
|
|
8
8
|
import { PolymorphicProps } from '@ark-ui/react';
|
|
9
|
+
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
9
10
|
export declare const MessageContainer: ComponentVariants<ForwardRefExoticComponent< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & PolymorphicProps>, ChatRecipe>;
|
|
10
|
-
export declare const Message: ComponentVariants<StyledComponent<any,
|
|
11
|
-
[x: string]: unknown;
|
|
12
|
-
[x: number]: unknown;
|
|
13
|
-
side?: unknown;
|
|
14
|
-
variant?: unknown;
|
|
15
|
-
}>, ChatRecipe>;
|
|
11
|
+
export declare const Message: ComponentVariants<StyledComponent<any, Assign<AnyProps, ChatMessageVariantProps>>, ChatRecipe>;
|
|
16
12
|
export declare const DocumentMessage: ComponentVariants<FC<any>, ChatRecipe>;
|
|
17
13
|
export declare const ProfileAvatar: ComponentVariants<FC<any>, ChatRecipe>;
|
|
18
14
|
type ChatRootMessage = {
|
|
@@ -8,7 +8,7 @@ import { ark as a } from "@ark-ui/react";
|
|
|
8
8
|
import { Box as o, styled as s } from "@stokelp/styled-system/jsx";
|
|
9
9
|
import { chat as c } from "@stokelp/styled-system/recipes";
|
|
10
10
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
11
|
-
|
|
11
|
+
// src/components/chat/Chat.tsx
|
|
12
12
|
var f = /* @__PURE__ */ e({
|
|
13
13
|
DocumentMessage: () => _,
|
|
14
14
|
Message: () => g,
|
|
@@ -22,7 +22,6 @@ var f = /* @__PURE__ */ e({
|
|
|
22
22
|
children: e.children
|
|
23
23
|
}, t)), /* @__PURE__ */ u(o, { id: "chat-anchor" })] })
|
|
24
24
|
}) });
|
|
25
|
-
|
|
26
|
-
export { f as Chat_exports };
|
|
25
|
+
export { f as Chat_exports, _ as DocumentMessage, g as Message, h as MessageContainer, v as ProfileAvatar, y as Root };
|
|
27
26
|
|
|
28
27
|
//# sourceMappingURL=Chat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.js","names":[],"sources":["../../../src/components/chat/Chat.tsx"],"sourcesContent":["import { FC, ReactElement } from 'react'\nimport { chat } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots.tsx'\nimport { ChatMessage, ChatMessageProps } from '~/components/chat/ChatMessage.tsx'\nimport { ChatDocumentMessage, ChatDocumentMessageProps } from '~/components/chat/ChatDocumentMessage.tsx'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { ark } from '@ark-ui/react'\nimport { Box, styled } from '@stokelp/styled-system/jsx'\nimport { ChatProfileAvatar, ChatProfileAvatarProps } from '~/components/chat/ChatProfileAvatar.tsx'\n\nconst { withProvider } = createStyleContext(chat)\n\nconst RootStyleElement = withProvider(styled(ark.div), 'root')\nexport const MessageContainer = withProvider(ark.div, 'message-container')\nexport const Message = withProvider(ChatMessage, 'message')\nexport const DocumentMessage = withProvider(ChatDocumentMessage, 'document-message')\nexport const ProfileAvatar = withProvider(ChatProfileAvatar, 'document-message')\n\ntype ChatRootMessage = {\n side?: 'left' | 'right' | 'center'\n children: ReactElement\n}\n\nexport type RootProps = {\n messages?: ChatRootMessage[]\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof chat>\n\nexport interface MessageProps extends ChatMessageProps {}\nexport interface DocumentMessageProps extends ChatDocumentMessageProps {}\nexport interface ProfileAvatarProps extends ChatProfileAvatarProps {}\n\nexport const Root: FC<RootProps> = ({ messages = [], ...props }) => {\n return (\n <>\n {\n <RootStyleElement\n {...props}\n children={\n <>\n {messages.map((MessageComponent: ChatRootMessage, index: number) => (\n <MessageContainer key={index} className={`chat-message-container-${MessageComponent.side}`}>\n {MessageComponent.children}\n </MessageContainer>\n ))}\n <Box id=\"chat-anchor\" />\n </>\n }\n />\n }\n </>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;IAUM,EAAE,
|
|
1
|
+
{"version":3,"file":"Chat.js","names":["_Fragment","Chat_exports","DocumentMessage","Message","MessageContainer","ProfileAvatar","Root","createStyleContext","chat","RootStyleElement","withProvider","styled","ark","ChatMessage","ChatDocumentMessage","ChatProfileAvatar","props","Fragment","messages","MessageComponent","index","Box"],"sources":["../../../src/components/chat/Chat.tsx"],"sourcesContent":["import { FC, ReactElement } from 'react'\nimport { chat } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots.tsx'\nimport { ChatMessage, ChatMessageProps } from '~/components/chat/ChatMessage.tsx'\nimport { ChatDocumentMessage, ChatDocumentMessageProps } from '~/components/chat/ChatDocumentMessage.tsx'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { ark } from '@ark-ui/react'\nimport { Box, styled } from '@stokelp/styled-system/jsx'\nimport { ChatProfileAvatar, ChatProfileAvatarProps } from '~/components/chat/ChatProfileAvatar.tsx'\n\nconst { withProvider } = createStyleContext(chat)\n\nconst RootStyleElement = withProvider(styled(ark.div), 'root')\nexport const MessageContainer = withProvider(ark.div, 'message-container')\nexport const Message = withProvider(ChatMessage, 'message')\nexport const DocumentMessage = withProvider(ChatDocumentMessage, 'document-message')\nexport const ProfileAvatar = withProvider(ChatProfileAvatar, 'document-message')\n\ntype ChatRootMessage = {\n side?: 'left' | 'right' | 'center'\n children: ReactElement\n}\n\nexport type RootProps = {\n messages?: ChatRootMessage[]\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof chat>\n\nexport interface MessageProps extends ChatMessageProps {}\nexport interface DocumentMessageProps extends ChatDocumentMessageProps {}\nexport interface ProfileAvatarProps extends ChatProfileAvatarProps {}\n\nexport const Root: FC<RootProps> = ({ messages = [], ...props }) => {\n return (\n <>\n {\n <RootStyleElement\n {...props}\n children={\n <>\n {messages.map((MessageComponent: ChatRootMessage, index: number) => (\n <MessageContainer key={index} className={`chat-message-container-${MessageComponent.side}`}>\n {MessageComponent.children}\n </MessageContainer>\n ))}\n <Box id=\"chat-anchor\" />\n </>\n }\n />\n }\n </>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;A,IAUM,EAAE,oBAAiBO,EAAmBC,CAAI,GAE1CC,IAAmBC,EAAaC,EAAOC,EAAI,GAAG,GAAG,MAAM,GAChDR,IAAmBM,EAAaE,EAAI,KAAK,mBAAmB,GAC5DT,IAAUO,EAAaG,GAAa,SAAS,GAC7CX,IAAkBQ,EAAaI,GAAqB,kBAAkB,GACtET,IAAgBK,EAAaK,GAAmB,kBAAkB,GAgBlET,KAAuB,EAAE,cAAW,CAAC,GAAG,GAAGU,QAEpD,kBAAAhB,GAAA,EAAA,UAEI,kBAACS,GAAD;CACE,GAAIO;CACJ,UACE,kBAAAhB,GAAA,EAAA,UAAA,CACGkB,EAAS,KAAK,GAAmC,MAChD,kBAACd,GAAD;EAA8B,WAAW,0BAA0Be,EAAiB;EACjF,UAAAA,EAAiB;CACF,GAFKC,CAEL,CACnB,GACD,kBAACC,GAAD,EAAK,IAAG,cAAe,CAAA,CACvB,EAAA,CAAA;AAEL,CAAA,EAEH,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require("../text/Text.cjs"),t=require("../icon/Icon.cjs"),n=require("../../node_modules/.pnpm/@heroicons_react@2.2.0_react@19.
|
|
1
|
+
"use client";const e=require("../text/Text.cjs"),t=require("../icon/Icon.cjs"),n=require("../../node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs"),r=require("../../node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs");let i=require("@stokelp/styled-system/jsx"),a=require("@stokelp/styled-system/recipes"),o=require("react/jsx-runtime");var s=(0,i.styled)(i.HStack,a.chatDocumentMessage),c=({documentID:a,documentName:c,onCardClick:l,...u})=>(0,o.jsxs)(s,{onClick:e=>{l&&l(e,a)},...u,children:[(0,o.jsxs)(i.HStack,{gap:`space-8`,children:[(0,o.jsx)(t.Icon,{size:`xs`,color:`primary.900`,children:(0,o.jsx)(r.default,{})}),(0,o.jsx)(e.Text,{bold:!0,children:c})]}),(0,o.jsx)(t.Icon,{size:`xs`,color:`primary.500`,children:(0,o.jsx)(n.default,{})})]});exports.ChatDocumentMessage=c;
|
|
2
2
|
//# sourceMappingURL=ChatDocumentMessage.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatDocumentMessage.cjs","names":[],"sources":["../../../src/components/chat/ChatDocumentMessage.tsx"],"sourcesContent":["import { FC } from 'react'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { chatDocumentMessage } from '@stokelp/styled-system/recipes'\nimport { HStack, styled } from '@stokelp/styled-system/jsx'\nimport { Icon, Text } from '~/components'\nimport { DocumentTextIcon, ArrowDownTrayIcon } from '@heroicons/react/24/outline'\n\nexport type ChatDocumentMessageProps = {\n documentID: number | string\n documentName: string\n documentUrl?: string\n onCardClick?: (event: React.MouseEvent<HTMLDivElement>, documentID: number | string) => void\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof chatDocumentMessage>\n\nconst StyledHStack = styled(HStack, chatDocumentMessage)\n\nexport const ChatDocumentMessage: FC<ChatDocumentMessageProps> = ({\n documentID,\n documentName,\n onCardClick,\n ...props\n}) => {\n return (\n <StyledHStack\n onClick={(event: React.MouseEvent<HTMLDivElement>) => {\n if (onCardClick) {\n onCardClick(event, documentID)\n }\n }}\n {...props}\n >\n <HStack gap=\"space-8\">\n <Icon size=\"xs\" color=\"primary.900\">\n <DocumentTextIcon />\n </Icon>\n <Text bold>{documentName}</Text>\n </HStack>\n <Icon size=\"xs\" color=\"primary.500\">\n <ArrowDownTrayIcon />\n </Icon>\n </StyledHStack>\n )\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatDocumentMessage.cjs","names":["styled","HStack","chatDocumentMessage","Icon","DocumentTextIcon","Text","ArrowDownTrayIcon","require_Text","require_Icon","require_ArrowDownTrayIcon","require_DocumentTextIcon","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react_jsx_runtime","StyledHStack","ChatDocumentMessage","props","onCardClick","event","documentID","documentName"],"sources":["../../../src/components/chat/ChatDocumentMessage.tsx"],"sourcesContent":["import { FC } from 'react'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { chatDocumentMessage } from '@stokelp/styled-system/recipes'\nimport { HStack, styled } from '@stokelp/styled-system/jsx'\nimport { Icon, Text } from '~/components'\nimport { DocumentTextIcon, ArrowDownTrayIcon } from '@heroicons/react/24/outline'\n\nexport type ChatDocumentMessageProps = {\n documentID: number | string\n documentName: string\n documentUrl?: string\n onCardClick?: (event: React.MouseEvent<HTMLDivElement>, documentID: number | string) => void\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof chatDocumentMessage>\n\nconst StyledHStack = styled(HStack, chatDocumentMessage)\n\nexport const ChatDocumentMessage: FC<ChatDocumentMessageProps> = ({\n documentID,\n documentName,\n onCardClick,\n ...props\n}) => {\n return (\n <StyledHStack\n onClick={(event: React.MouseEvent<HTMLDivElement>) => {\n if (onCardClick) {\n onCardClick(event, documentID)\n }\n }}\n {...props}\n >\n <HStack gap=\"space-8\">\n <Icon size=\"xs\" color=\"primary.900\">\n <DocumentTextIcon />\n </Icon>\n <Text bold>{documentName}</Text>\n </HStack>\n <Icon size=\"xs\" color=\"primary.500\">\n <ArrowDownTrayIcon />\n </Icon>\n </StyledHStack>\n )\n}\n"],"mappings":"A,+dAeA,IAAMc,GAAA,EAAed,EAAAA,OAAAA,CAAOC,EAAAA,OAAQC,EAAAA,mBAAmB,EAE1Ca,GAAqD,CAChE,aACA,eACA,cACA,GAAGC,MAGD,EAAAH,EAAA,KAAA,CAACC,EAAD,CACE,QAAU,GAA4C,CAChDG,GACFA,EAAYC,EAAOC,CAAU,CAEjC,EACA,GAAIH,EANN,SAAA,EAQE,EAAAH,EAAA,KAAA,CAACZ,EAAAA,OAAD,CAAQ,IAAI,UAAZ,SAAA,EACE,EAAAY,EAAA,IAAA,CAACV,EAAAA,KAAD,CAAM,KAAK,KAAK,MAAM,cACpB,UAAA,EAAAU,EAAA,IAAA,CAACT,EAAAA,QAAD,CAAmB,CAAA,CACf,CAAA,GACN,EAAAS,EAAA,IAAA,CAACR,EAAAA,KAAD,CAAM,KAAA,GAAM,SAAAe,CAAmB,CAAA,CACzB,CACR,CAAA,GAAA,EAAAP,EAAA,IAAA,CAACV,EAAAA,KAAD,CAAM,KAAK,KAAK,MAAM,cACpB,UAAA,EAAAU,EAAA,IAAA,CAACP,EAAAA,QAAD,CAAoB,CAAA,CAChB,CAAA,CACM,C"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Text as e } from "../text/Text.js";
|
|
3
3
|
import { Icon as t } from "../icon/Icon.js";
|
|
4
|
-
import n from "../../node_modules/.pnpm/@heroicons_react@2.2.0_react@19.
|
|
5
|
-
import r from "../../node_modules/.pnpm/@heroicons_react@2.2.0_react@19.
|
|
4
|
+
import n from "../../node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js";
|
|
5
|
+
import r from "../../node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js";
|
|
6
6
|
import { HStack as i, styled as a } from "@stokelp/styled-system/jsx";
|
|
7
7
|
import { chatDocumentMessage as o } from "@stokelp/styled-system/recipes";
|
|
8
8
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// src/components/chat/ChatDocumentMessage.tsx
|
|
10
10
|
var l = a(i, o), u = ({ documentID: a, documentName: o, onCardClick: u, ...d }) => /* @__PURE__ */ c(l, {
|
|
11
11
|
onClick: (e) => {
|
|
12
12
|
u && u(e, a);
|
|
@@ -28,7 +28,6 @@ var l = a(i, o), u = ({ documentID: a, documentName: o, onCardClick: u, ...d })
|
|
|
28
28
|
children: /* @__PURE__ */ s(n, {})
|
|
29
29
|
})]
|
|
30
30
|
});
|
|
31
|
-
//#endregion
|
|
32
31
|
export { u as ChatDocumentMessage };
|
|
33
32
|
|
|
34
33
|
//# sourceMappingURL=ChatDocumentMessage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatDocumentMessage.js","names":[],"sources":["../../../src/components/chat/ChatDocumentMessage.tsx"],"sourcesContent":["import { FC } from 'react'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { chatDocumentMessage } from '@stokelp/styled-system/recipes'\nimport { HStack, styled } from '@stokelp/styled-system/jsx'\nimport { Icon, Text } from '~/components'\nimport { DocumentTextIcon, ArrowDownTrayIcon } from '@heroicons/react/24/outline'\n\nexport type ChatDocumentMessageProps = {\n documentID: number | string\n documentName: string\n documentUrl?: string\n onCardClick?: (event: React.MouseEvent<HTMLDivElement>, documentID: number | string) => void\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof chatDocumentMessage>\n\nconst StyledHStack = styled(HStack, chatDocumentMessage)\n\nexport const ChatDocumentMessage: FC<ChatDocumentMessageProps> = ({\n documentID,\n documentName,\n onCardClick,\n ...props\n}) => {\n return (\n <StyledHStack\n onClick={(event: React.MouseEvent<HTMLDivElement>) => {\n if (onCardClick) {\n onCardClick(event, documentID)\n }\n }}\n {...props}\n >\n <HStack gap=\"space-8\">\n <Icon size=\"xs\" color=\"primary.900\">\n <DocumentTextIcon />\n </Icon>\n <Text bold>{documentName}</Text>\n </HStack>\n <Icon size=\"xs\" color=\"primary.500\">\n <ArrowDownTrayIcon />\n </Icon>\n </StyledHStack>\n )\n}\n"],"mappings":";;;;;;;;;AAeA,
|
|
1
|
+
{"version":3,"file":"ChatDocumentMessage.js","names":["DocumentTextIcon","ArrowDownTrayIcon","ForwardRef","ForwardRef$1","StyledHStack","styled","HStack","chatDocumentMessage","ChatDocumentMessage","props","onCardClick","event","documentID","Icon","Text","documentName"],"sources":["../../../src/components/chat/ChatDocumentMessage.tsx"],"sourcesContent":["import { FC } from 'react'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { chatDocumentMessage } from '@stokelp/styled-system/recipes'\nimport { HStack, styled } from '@stokelp/styled-system/jsx'\nimport { Icon, Text } from '~/components'\nimport { DocumentTextIcon, ArrowDownTrayIcon } from '@heroicons/react/24/outline'\n\nexport type ChatDocumentMessageProps = {\n documentID: number | string\n documentName: string\n documentUrl?: string\n onCardClick?: (event: React.MouseEvent<HTMLDivElement>, documentID: number | string) => void\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof chatDocumentMessage>\n\nconst StyledHStack = styled(HStack, chatDocumentMessage)\n\nexport const ChatDocumentMessage: FC<ChatDocumentMessageProps> = ({\n documentID,\n documentName,\n onCardClick,\n ...props\n}) => {\n return (\n <StyledHStack\n onClick={(event: React.MouseEvent<HTMLDivElement>) => {\n if (onCardClick) {\n onCardClick(event, documentID)\n }\n }}\n {...props}\n >\n <HStack gap=\"space-8\">\n <Icon size=\"xs\" color=\"primary.900\">\n <DocumentTextIcon />\n </Icon>\n <Text bold>{documentName}</Text>\n </HStack>\n <Icon size=\"xs\" color=\"primary.500\">\n <ArrowDownTrayIcon />\n </Icon>\n </StyledHStack>\n )\n}\n"],"mappings":";;;;;;;;;AAeA,IAAMI,IAAeC,EAAOC,GAAQC,CAAmB,GAE1CC,KAAqD,EAChE,eACA,iBACA,gBACA,GAAGC,QAGD,kBAACL,GAAD;CACE,UAAU,MAA4C;EACpD,AAAIM,KACFA,EAAYC,GAAOC,CAAU;CAEjC;CACA,GAAIH;CANN,UAAA,CAQE,kBAACH,GAAD;EAAQ,KAAI;EAAZ,UAAA,CACE,kBAACO,GAAD;GAAM,MAAK;GAAK,OAAM;GACpB,UAAA,kBAACb,GAAD,CAAmB,CAAA;EACf,CAAA,GACN,kBAACc,GAAD;GAAM,MAAA;GAAM,UAAAC;EAAmB,CAAA,CACzB;CACR,CAAA,GAAA,kBAACF,GAAD;EAAM,MAAK;EAAK,OAAM;EACpB,UAAA,kBAACZ,GAAD,CAAoB,CAAA;CAChB,CAAA,CACM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessage.cjs","names":[],"sources":["../../../src/components/chat/ChatMessage.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { chatMessage } from '@stokelp/styled-system/recipes'\nimport type { ComponentProps } from 'react'\nimport { ark } from '@ark-ui/react'\n\nexport const ChatMessage = styled(ark.div, chatMessage)\nexport interface ChatMessageProps extends ComponentProps<typeof ChatMessage> {}\n"],"mappings":"gIAKA,
|
|
1
|
+
{"version":3,"file":"ChatMessage.cjs","names":["styled","ark","chatMessage","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","ChatMessage"],"sources":["../../../src/components/chat/ChatMessage.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { chatMessage } from '@stokelp/styled-system/recipes'\nimport type { ComponentProps } from 'react'\nimport { ark } from '@ark-ui/react'\n\nexport const ChatMessage = styled(ark.div, chatMessage)\nexport interface ChatMessageProps extends ComponentProps<typeof ChatMessage> {}\n"],"mappings":"A,gIAKA,IAAaM,GAAA,EAAcN,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,IAAKC,EAAAA,WAAW,E"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
import { StyledComponent } from '@stokelp/styled-system/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
side?: unknown;
|
|
7
|
-
variant?: unknown;
|
|
8
|
-
}>;
|
|
2
|
+
import { StyledComponent } from '@stokelp/styled-system/jsx';
|
|
3
|
+
import { Assign, AnyProps } from '@stokelp/styled-system/types';
|
|
4
|
+
import { ChatMessageVariantProps } from '@stokelp/styled-system/recipes';
|
|
5
|
+
export declare const ChatMessage: StyledComponent<any, Assign<AnyProps, ChatMessageVariantProps>>;
|
|
9
6
|
export interface ChatMessageProps extends ComponentProps<typeof ChatMessage> {
|
|
10
7
|
}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import { ark as e } from "@ark-ui/react";
|
|
3
3
|
import { styled as t } from "@stokelp/styled-system/jsx";
|
|
4
4
|
import { chatMessage as n } from "@stokelp/styled-system/recipes";
|
|
5
|
-
|
|
5
|
+
// src/components/chat/ChatMessage.tsx
|
|
6
6
|
var r = t(e.div, n);
|
|
7
|
-
//#endregion
|
|
8
7
|
export { r as ChatMessage };
|
|
9
8
|
|
|
10
9
|
//# sourceMappingURL=ChatMessage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessage.js","names":[],"sources":["../../../src/components/chat/ChatMessage.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { chatMessage } from '@stokelp/styled-system/recipes'\nimport type { ComponentProps } from 'react'\nimport { ark } from '@ark-ui/react'\n\nexport const ChatMessage = styled(ark.div, chatMessage)\nexport interface ChatMessageProps extends ComponentProps<typeof ChatMessage> {}\n"],"mappings":";;;;;AAKA,
|
|
1
|
+
{"version":3,"file":"ChatMessage.js","names":["ChatMessage","styled","ark","chatMessage"],"sources":["../../../src/components/chat/ChatMessage.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { chatMessage } from '@stokelp/styled-system/recipes'\nimport type { ComponentProps } from 'react'\nimport { ark } from '@ark-ui/react'\n\nexport const ChatMessage = styled(ark.div, chatMessage)\nexport interface ChatMessageProps extends ComponentProps<typeof ChatMessage> {}\n"],"mappings":";;;;;AAKA,IAAaA,IAAcC,EAAOC,EAAI,KAAKC,CAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatProfileAvatar.cjs","names":[],"sources":["../../../src/components/chat/ChatProfileAvatar.tsx"],"sourcesContent":["import { FC } from 'react'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { Box, styled } from '@stokelp/styled-system/jsx'\nimport { Avatar, Text } from '~/components'\nimport { chatProfileAvatar } from '@stokelp/styled-system/recipes'\n\nexport type ChatProfileAvatarProps = {\n name: string\n fallbackText: string\n imageUrl?: string\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof chatProfileAvatar>\n\nconst StyledHStack = styled(Box, chatProfileAvatar)\n\nexport const ChatProfileAvatar: FC<ChatProfileAvatarProps> = ({ name, fallbackText, imageUrl, ...props }) => {\n return (\n <StyledHStack {...props}>\n <Avatar.Root border=\"solid 1px\" borderColor=\"grey.100\" hasBorder>\n <Avatar.Image src={imageUrl} />\n <Avatar.Fallback>{fallbackText}</Avatar.Fallback>\n </Avatar.Root>\n <Text bold size=\"sm\" color=\"primary.900\">\n {name}\n </Text>\n </StyledHStack>\n )\n}\n"],"mappings":"0MAaA,
|
|
1
|
+
{"version":3,"file":"ChatProfileAvatar.cjs","names":["styled","Box","chatProfileAvatar","Text","require_Text","require_styled","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react_jsx_runtime","StyledHStack","ChatProfileAvatar","props","imageUrl","fallbackText","name"],"sources":["../../../src/components/chat/ChatProfileAvatar.tsx"],"sourcesContent":["import { FC } from 'react'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { Box, styled } from '@stokelp/styled-system/jsx'\nimport { Avatar, Text } from '~/components'\nimport { chatProfileAvatar } from '@stokelp/styled-system/recipes'\n\nexport type ChatProfileAvatarProps = {\n name: string\n fallbackText: string\n imageUrl?: string\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof chatProfileAvatar>\n\nconst StyledHStack = styled(Box, chatProfileAvatar)\n\nexport const ChatProfileAvatar: FC<ChatProfileAvatarProps> = ({ name, fallbackText, imageUrl, ...props }) => {\n return (\n <StyledHStack {...props}>\n <Avatar.Root border=\"solid 1px\" borderColor=\"grey.100\" hasBorder>\n <Avatar.Image src={imageUrl} />\n <Avatar.Fallback>{fallbackText}</Avatar.Fallback>\n </Avatar.Root>\n <Text bold size=\"sm\" color=\"primary.900\">\n {name}\n </Text>\n </StyledHStack>\n )\n}\n"],"mappings":"A,0MAaA,IAAMS,GAAA,EAAeT,EAAAA,OAAAA,CAAOC,EAAAA,IAAKC,EAAAA,iBAAiB,EAErCQ,GAAiD,CAAE,OAAM,eAAc,WAAU,GAAGC,MAE7F,EAAAH,EAAA,KAAA,CAACC,EAAD,CAAc,GAAIE,EAAlB,SAAA,EACE,EAAAH,EAAA,KAAA,CAAAH,EAAA,KAAA,CAAa,OAAO,YAAY,YAAY,WAAW,UAAA,GAAvD,SAAA,EACE,EAAAG,EAAA,IAAA,CAAAH,EAAA,MAAA,CAAc,IAAKO,CAAW,CAAA,GAC9B,EAAAJ,EAAA,IAAA,CAAAH,EAAA,SAAA,CAAA,SAAkBQ,CAA8B,CAAA,CACrC,CACb,CAAA,GAAA,EAAAL,EAAA,IAAA,CAACL,EAAAA,KAAD,CAAM,KAAA,GAAK,KAAK,KAAK,MAAM,cACxB,SAAAW,CACG,CAAA,CACM,C"}
|
|
@@ -4,7 +4,7 @@ import { Fallback as t, Image as n, Root as r } from "../avatar/styled.js";
|
|
|
4
4
|
import { Box as i, styled as a } from "@stokelp/styled-system/jsx";
|
|
5
5
|
import { chatProfileAvatar as o } from "@stokelp/styled-system/recipes";
|
|
6
6
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/chat/ChatProfileAvatar.tsx
|
|
8
8
|
var l = a(i, o), u = ({ name: i, fallbackText: a, imageUrl: o, ...u }) => /* @__PURE__ */ c(l, {
|
|
9
9
|
...u,
|
|
10
10
|
children: [/* @__PURE__ */ c(r, {
|
|
@@ -19,7 +19,6 @@ var l = a(i, o), u = ({ name: i, fallbackText: a, imageUrl: o, ...u }) => /* @__
|
|
|
19
19
|
children: i
|
|
20
20
|
})]
|
|
21
21
|
});
|
|
22
|
-
//#endregion
|
|
23
22
|
export { u as ChatProfileAvatar };
|
|
24
23
|
|
|
25
24
|
//# sourceMappingURL=ChatProfileAvatar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatProfileAvatar.js","names":[],"sources":["../../../src/components/chat/ChatProfileAvatar.tsx"],"sourcesContent":["import { FC } from 'react'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { Box, styled } from '@stokelp/styled-system/jsx'\nimport { Avatar, Text } from '~/components'\nimport { chatProfileAvatar } from '@stokelp/styled-system/recipes'\n\nexport type ChatProfileAvatarProps = {\n name: string\n fallbackText: string\n imageUrl?: string\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof chatProfileAvatar>\n\nconst StyledHStack = styled(Box, chatProfileAvatar)\n\nexport const ChatProfileAvatar: FC<ChatProfileAvatarProps> = ({ name, fallbackText, imageUrl, ...props }) => {\n return (\n <StyledHStack {...props}>\n <Avatar.Root border=\"solid 1px\" borderColor=\"grey.100\" hasBorder>\n <Avatar.Image src={imageUrl} />\n <Avatar.Fallback>{fallbackText}</Avatar.Fallback>\n </Avatar.Root>\n <Text bold size=\"sm\" color=\"primary.900\">\n {name}\n </Text>\n </StyledHStack>\n )\n}\n"],"mappings":";;;;;;;AAaA,
|
|
1
|
+
{"version":3,"file":"ChatProfileAvatar.js","names":["Avatar.Root","Avatar.Image","Avatar.Fallback","StyledHStack","styled","Box","chatProfileAvatar","ChatProfileAvatar","props","Root","Image","imageUrl","Fallback","fallbackText","Text","name"],"sources":["../../../src/components/chat/ChatProfileAvatar.tsx"],"sourcesContent":["import { FC } from 'react'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { Box, styled } from '@stokelp/styled-system/jsx'\nimport { Avatar, Text } from '~/components'\nimport { chatProfileAvatar } from '@stokelp/styled-system/recipes'\n\nexport type ChatProfileAvatarProps = {\n name: string\n fallbackText: string\n imageUrl?: string\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof chatProfileAvatar>\n\nconst StyledHStack = styled(Box, chatProfileAvatar)\n\nexport const ChatProfileAvatar: FC<ChatProfileAvatarProps> = ({ name, fallbackText, imageUrl, ...props }) => {\n return (\n <StyledHStack {...props}>\n <Avatar.Root border=\"solid 1px\" borderColor=\"grey.100\" hasBorder>\n <Avatar.Image src={imageUrl} />\n <Avatar.Fallback>{fallbackText}</Avatar.Fallback>\n </Avatar.Root>\n <Text bold size=\"sm\" color=\"primary.900\">\n {name}\n </Text>\n </StyledHStack>\n )\n}\n"],"mappings":";;;;;;;AAaA,IAAMG,IAAeC,EAAOC,GAAKC,CAAiB,GAErCC,KAAiD,EAAE,SAAM,iBAAc,aAAU,GAAGC,QAE7F,kBAACL,GAAD;CAAc,GAAIK;CAAlB,UAAA,CACE,kBAACR,GAAD;EAAa,QAAO;EAAY,aAAY;EAAW,WAAA;EAAvD,UAAA,CACE,kBAACC,GAAD,EAAc,KAAKU,EAAW,CAAA,GAC9B,kBAACT,GAAD,EAAA,UAAkBW,EAA8B,CAAA,CACrC;CACb,CAAA,GAAA,kBAACC,GAAD;EAAM,MAAA;EAAK,MAAK;EAAK,OAAM;EACxB,UAAAC;CACG,CAAA,CACM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatScoreBreakdown.cjs","names":[],"sources":["../../../src/components/chat/ChatScoreBreakdown.tsx"],"sourcesContent":["import { Box, HStack, VStack } from '@stokelp/styled-system/jsx'\nimport { Text } from '~/components'\n\nexport type ScoreSetAttributeKey =\n | 'origin'\n | 'rawMaterialOrigin'\n | 'temperature'\n | 'cutting'\n | 'cooking'\n | 'treatment'\n | 'label'\n | 'packaging'\n\nexport type ScoreNumericAttributeKey = 'grammageGsm' | 'recycledPct' | 'thicknessMicron'\n\nexport type ScoreAttributeKey = ScoreSetAttributeKey | ScoreNumericAttributeKey\n\n/** Proximity bucket for free numeric packaging specs: egal (equal) → non_correspondant (no match). */\nexport type ScoreLevel = 'egal' | 'proche' | 'eloigne' | 'non_correspondant'\n\nexport type ScoreAttributeDetail = {\n matched: number | null\n total: number | null\n level?: ScoreLevel | null\n}\n\nexport type ChatScoreBreakdownLabels = {\n title: string\n compared: string\n notSpecified: string\n attributes: Record<ScoreSetAttributeKey, string> & Partial<Record<ScoreNumericAttributeKey, string>>\n levels?: Record<ScoreLevel, string>\n footer?: string\n}\n\nexport type ChatScoreBreakdownProps = {\n percent: number\n detail: Record<string, ScoreAttributeDetail>\n labels: ChatScoreBreakdownLabels\n /** Typology id of the AO product (1 = packaging). When provided, drives which attribute family is shown; falls back to inferring from the numeric specs when absent. */\n typologyId?: number\n}\n\nconst PACKAGING_TYPOLOGY_ID = 1\n\nconst ATTRIBUTE_ORDER: ScoreAttributeKey[] = [\n 'origin',\n 'rawMaterialOrigin',\n 'temperature',\n 'cutting',\n 'cooking',\n 'treatment',\n 'label',\n 'packaging',\n 'grammageGsm',\n 'recycledPct',\n 'thicknessMicron',\n]\n\n// Attributes that only exist for food products; hidden for packaging products.\nconst FOOD_ONLY_KEYS: ScoreAttributeKey[] = ['temperature', 'cutting', 'cooking']\n// Free numeric specs that only exist for packaging products; hidden for food products.\nconst PACKAGING_ONLY_KEYS: ScoreNumericAttributeKey[] = ['grammageGsm', 'recycledPct', 'thicknessMicron']\n\nconst LEVEL_COLORS: Record<ScoreLevel, { bg: string; color: string }> = {\n egal: { bg: '#E6F3D9', color: '#3B6D11' },\n proche: { bg: '#F0F6DC', color: '#5E8516' },\n eloigne: { bg: '#FDF0E0', color: '#C2740C' },\n non_correspondant: { bg: '#FCEBEB', color: '#A32D2D' },\n}\n\nfunction getHeadlineColor(percent: number): string {\n if (percent >= 70) return '#3B6D11'\n if (percent >= 40) return '#854F0B'\n return '#A32D2D'\n}\n\nfunction getBarColor(ratioPercent: number): string {\n if (ratioPercent >= 70) return '#639922'\n if (ratioPercent >= 40) return '#BA7517'\n return '#E24B4A'\n}\n\nfunction hasLevel(detail?: ScoreAttributeDetail): boolean {\n return detail?.level != null\n}\n\nfunction isFraction(detail?: ScoreAttributeDetail): boolean {\n return detail?.matched != null && detail?.total != null\n}\n\nfunction isComparable(detail?: ScoreAttributeDetail): boolean {\n return hasLevel(detail) || isFraction(detail)\n}\n\nexport const ChatScoreBreakdown = ({ percent, detail, labels, typologyId }: ChatScoreBreakdownProps) => {\n // A packaging product hides food attributes (temperature/cutting/cooking) and shows the\n // numeric specs, and vice versa. Two independent signals mark a packaging product, combined\n // so neither can wrongly override the other: the AO product typology (authoritative, and the\n // only signal when no numeric spec is comparable), and the presence of a comparable numeric\n // spec (covers cases where the typology is absent or not sent as the expected value).\n const isPackaging =\n Number(typologyId) === PACKAGING_TYPOLOGY_ID || PACKAGING_ONLY_KEYS.some(key => detail[key]?.level != null)\n const hiddenKeys = new Set<ScoreAttributeKey>(isPackaging ? FOOD_ONLY_KEYS : PACKAGING_ONLY_KEYS)\n const visibleKeys = ATTRIBUTE_ORDER.filter(key => !hiddenKeys.has(key))\n\n const compared = visibleKeys.filter(key => isComparable(detail[key]))\n const notSpecified = visibleKeys.filter(key => !isComparable(detail[key]) && labels.attributes[key] != null)\n\n return (\n <Box\n bg=\"white\"\n borderRadius=\"radius-8\"\n p=\"space-16\"\n minW=\"220px\"\n maxW=\"240px\"\n css={{ '& *': { fontFamily: 'inherit' } }}\n >\n <HStack justify=\"space-between\" alignItems=\"baseline\" mb=\"space-8\">\n <Text as=\"span\" fontSize=\"body.md\" fontWeight=\"bold\">\n {labels.title}\n </Text>\n <Text as=\"span\" fontSize=\"body.lg\" fontWeight=\"medium\" style={{ color: getHeadlineColor(percent) }}>\n {Math.round(percent)} %\n </Text>\n </HStack>\n\n <Box h=\"1px\" bg=\"grey.100\" mb=\"space-8\" />\n\n {compared.length > 0 && (\n <VStack alignItems=\"stretch\" gap=\"space-4\" mb=\"space-8\">\n <Text as=\"span\" fontSize=\"body.sm\" fontWeight=\"bold\" color=\"grey.400\">\n {labels.compared}\n </Text>\n {compared.map(key => {\n const entry = detail[key]\n if (hasLevel(entry)) {\n const level = entry.level as ScoreLevel\n const colors = LEVEL_COLORS[level]\n return (\n <HStack key={key} h=\"18px\" alignItems=\"center\" gap=\"space-8\" justify=\"space-between\">\n <Text as=\"span\" fontSize=\"body.sm\" color=\"grey.500\" minW=\"80px\">\n {labels.attributes[key]}\n </Text>\n <Box\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n h=\"100%\"\n px=\"space-6\"\n borderRadius=\"full\"\n flexShrink=\"0\"\n style={{ backgroundColor: colors.bg }}\n >\n <Text\n as=\"span\"\n fontSize=\"body.sm\"\n fontWeight=\"medium\"\n style={{ color: colors.color, whiteSpace: 'nowrap', lineHeight: 1 }}\n >\n {labels.levels?.[level] ?? level}\n </Text>\n </Box>\n </HStack>\n )\n }\n\n const matched = entry.matched as number\n const total = entry.total as number\n const ratioPercent = total > 0 ? (matched / total) * 100 : 0\n return (\n <HStack key={key} h=\"18px\" alignItems=\"center\" gap=\"space-8\">\n <Text as=\"span\" fontSize=\"body.sm\" color=\"grey.500\" minW=\"80px\">\n {labels.attributes[key]}\n </Text>\n <Box flex=\"1\" h=\"3px\" bg=\"grey.100\" borderRadius=\"full\" overflow=\"hidden\">\n <Box\n h=\"100%\"\n borderRadius=\"full\"\n style={{ width: `${ratioPercent}%`, background: getBarColor(ratioPercent) }}\n />\n </Box>\n <Text\n as=\"span\"\n fontSize=\"body.sm\"\n fontWeight=\"medium\"\n minW=\"40px\"\n textAlign=\"right\"\n style={{ color: getBarColor(ratioPercent), lineHeight: 1 }}\n >\n {matched}/{total}\n </Text>\n </HStack>\n )\n })}\n </VStack>\n )}\n\n {compared.length > 0 && notSpecified.length > 0 && <Box h=\"1px\" bg=\"grey.100\" mb=\"space-8\" />}\n\n {notSpecified.length > 0 && (\n <VStack alignItems=\"stretch\" gap=\"space-4\">\n <Text as=\"span\" fontSize=\"body.sm\" fontWeight=\"bold\" color=\"grey.400\">\n {labels.notSpecified}\n </Text>\n <HStack flexWrap=\"wrap\" gap=\"space-4\">\n {notSpecified.map(key => (\n <Text\n key={key}\n as=\"span\"\n fontSize=\"body.sm\"\n color=\"grey.400\"\n border=\"1px solid\"\n borderColor=\"grey.100\"\n px=\"space-8\"\n py=\"2px\"\n borderRadius=\"full\"\n >\n {labels.attributes[key]}\n </Text>\n ))}\n </HStack>\n </VStack>\n )}\n\n {labels.footer && (\n <>\n <Box h=\"1px\" bg=\"grey.100\" mt=\"space-8\" mb=\"space-8\" />\n <Text as=\"span\" fontSize=\"9px\" color=\"grey.300\" style={{ lineHeight: 1 }}>\n {labels.footer}\n </Text>\n </>\n )}\n </Box>\n )\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"ChatScoreBreakdown.cjs","names":["Box","HStack","Text","VStack","_Fragment","require_Text","_stokelp_styled_system_jsx","react_jsx_runtime","PACKAGING_TYPOLOGY_ID","ATTRIBUTE_ORDER","FOOD_ONLY_KEYS","PACKAGING_ONLY_KEYS","LEVEL_COLORS","getHeadlineColor","percent","getBarColor","ratioPercent","hasLevel","detail","isFraction","isComparable","ChatScoreBreakdown","isPackaging","typologyId","key","hiddenKeys","visibleKeys","compared","notSpecified","labels","entry","level","colors","matched","total"],"sources":["../../../src/components/chat/ChatScoreBreakdown.tsx"],"sourcesContent":["import { Box, HStack, VStack } from '@stokelp/styled-system/jsx'\nimport { Text } from '~/components'\n\nexport type ScoreSetAttributeKey =\n 'origin' | 'rawMaterialOrigin' | 'temperature' | 'cutting' | 'cooking' | 'treatment' | 'label' | 'packaging'\n\nexport type ScoreNumericAttributeKey = 'grammageGsm' | 'recycledPct' | 'thicknessMicron'\n\nexport type ScoreAttributeKey = ScoreSetAttributeKey | ScoreNumericAttributeKey\n\n/** Proximity bucket for free numeric packaging specs: egal (equal) → non_correspondant (no match). */\nexport type ScoreLevel = 'egal' | 'proche' | 'eloigne' | 'non_correspondant'\n\nexport type ScoreAttributeDetail = {\n matched: number | null\n total: number | null\n level?: ScoreLevel | null\n}\n\nexport type ChatScoreBreakdownLabels = {\n title: string\n compared: string\n notSpecified: string\n attributes: Record<ScoreSetAttributeKey, string> & Partial<Record<ScoreNumericAttributeKey, string>>\n levels?: Record<ScoreLevel, string>\n footer?: string\n}\n\nexport type ChatScoreBreakdownProps = {\n percent: number\n detail: Record<string, ScoreAttributeDetail>\n labels: ChatScoreBreakdownLabels\n /** Typology id of the AO product (1 = packaging). When provided, drives which attribute family is shown; falls back to inferring from the numeric specs when absent. */\n typologyId?: number\n}\n\nconst PACKAGING_TYPOLOGY_ID = 1\n\nconst ATTRIBUTE_ORDER: ScoreAttributeKey[] = [\n 'origin',\n 'rawMaterialOrigin',\n 'temperature',\n 'cutting',\n 'cooking',\n 'treatment',\n 'label',\n 'packaging',\n 'grammageGsm',\n 'recycledPct',\n 'thicknessMicron',\n]\n\n// Attributes that only exist for food products; hidden for packaging products.\nconst FOOD_ONLY_KEYS: ScoreAttributeKey[] = ['temperature', 'cutting', 'cooking']\n// Free numeric specs that only exist for packaging products; hidden for food products.\nconst PACKAGING_ONLY_KEYS: ScoreNumericAttributeKey[] = ['grammageGsm', 'recycledPct', 'thicknessMicron']\n\nconst LEVEL_COLORS: Record<ScoreLevel, { bg: string; color: string }> = {\n egal: { bg: '#E6F3D9', color: '#3B6D11' },\n proche: { bg: '#F0F6DC', color: '#5E8516' },\n eloigne: { bg: '#FDF0E0', color: '#C2740C' },\n non_correspondant: { bg: '#FCEBEB', color: '#A32D2D' },\n}\n\nfunction getHeadlineColor(percent: number): string {\n if (percent >= 70) return '#3B6D11'\n if (percent >= 40) return '#854F0B'\n return '#A32D2D'\n}\n\nfunction getBarColor(ratioPercent: number): string {\n if (ratioPercent >= 70) return '#639922'\n if (ratioPercent >= 40) return '#BA7517'\n return '#E24B4A'\n}\n\nfunction hasLevel(detail?: ScoreAttributeDetail): boolean {\n return detail?.level != null\n}\n\nfunction isFraction(detail?: ScoreAttributeDetail): boolean {\n return detail?.matched != null && detail?.total != null\n}\n\nfunction isComparable(detail?: ScoreAttributeDetail): boolean {\n return hasLevel(detail) || isFraction(detail)\n}\n\nexport const ChatScoreBreakdown = ({ percent, detail, labels, typologyId }: ChatScoreBreakdownProps) => {\n // A packaging product hides food attributes (temperature/cutting/cooking) and shows the\n // numeric specs, and vice versa. Two independent signals mark a packaging product, combined\n // so neither can wrongly override the other: the AO product typology (authoritative, and the\n // only signal when no numeric spec is comparable), and the presence of a comparable numeric\n // spec (covers cases where the typology is absent or not sent as the expected value).\n const isPackaging =\n Number(typologyId) === PACKAGING_TYPOLOGY_ID || PACKAGING_ONLY_KEYS.some(key => detail[key]?.level != null)\n const hiddenKeys = new Set<ScoreAttributeKey>(isPackaging ? FOOD_ONLY_KEYS : PACKAGING_ONLY_KEYS)\n const visibleKeys = ATTRIBUTE_ORDER.filter(key => !hiddenKeys.has(key))\n\n const compared = visibleKeys.filter(key => isComparable(detail[key]))\n const notSpecified = visibleKeys.filter(key => !isComparable(detail[key]) && labels.attributes[key] != null)\n\n return (\n <Box\n bg=\"white\"\n borderRadius=\"radius-8\"\n p=\"space-16\"\n minW=\"220px\"\n maxW=\"240px\"\n css={{ '& *': { fontFamily: 'inherit' } }}\n >\n <HStack justify=\"space-between\" alignItems=\"baseline\" mb=\"space-8\">\n <Text as=\"span\" fontSize=\"body.md\" fontWeight=\"bold\">\n {labels.title}\n </Text>\n <Text as=\"span\" fontSize=\"body.lg\" fontWeight=\"medium\" style={{ color: getHeadlineColor(percent) }}>\n {Math.round(percent)} %\n </Text>\n </HStack>\n\n <Box h=\"1px\" bg=\"grey.100\" mb=\"space-8\" />\n\n {compared.length > 0 && (\n <VStack alignItems=\"stretch\" gap=\"space-4\" mb=\"space-8\">\n <Text as=\"span\" fontSize=\"body.sm\" fontWeight=\"bold\" color=\"grey.400\">\n {labels.compared}\n </Text>\n {compared.map(key => {\n const entry = detail[key]\n if (hasLevel(entry)) {\n const level = entry.level as ScoreLevel\n const colors = LEVEL_COLORS[level]\n return (\n <HStack key={key} h=\"18px\" alignItems=\"center\" gap=\"space-8\" justify=\"space-between\">\n <Text as=\"span\" fontSize=\"body.sm\" color=\"grey.500\" minW=\"80px\">\n {labels.attributes[key]}\n </Text>\n <Box\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n h=\"100%\"\n px=\"space-6\"\n borderRadius=\"full\"\n flexShrink=\"0\"\n style={{ backgroundColor: colors.bg }}\n >\n <Text\n as=\"span\"\n fontSize=\"body.sm\"\n fontWeight=\"medium\"\n style={{ color: colors.color, whiteSpace: 'nowrap', lineHeight: 1 }}\n >\n {labels.levels?.[level] ?? level}\n </Text>\n </Box>\n </HStack>\n )\n }\n\n const matched = entry.matched as number\n const total = entry.total as number\n const ratioPercent = total > 0 ? (matched / total) * 100 : 0\n return (\n <HStack key={key} h=\"18px\" alignItems=\"center\" gap=\"space-8\">\n <Text as=\"span\" fontSize=\"body.sm\" color=\"grey.500\" minW=\"80px\">\n {labels.attributes[key]}\n </Text>\n <Box flex=\"1\" h=\"3px\" bg=\"grey.100\" borderRadius=\"full\" overflow=\"hidden\">\n <Box\n h=\"100%\"\n borderRadius=\"full\"\n style={{ width: `${ratioPercent}%`, background: getBarColor(ratioPercent) }}\n />\n </Box>\n <Text\n as=\"span\"\n fontSize=\"body.sm\"\n fontWeight=\"medium\"\n minW=\"40px\"\n textAlign=\"right\"\n style={{ color: getBarColor(ratioPercent), lineHeight: 1 }}\n >\n {matched}/{total}\n </Text>\n </HStack>\n )\n })}\n </VStack>\n )}\n\n {compared.length > 0 && notSpecified.length > 0 && <Box h=\"1px\" bg=\"grey.100\" mb=\"space-8\" />}\n\n {notSpecified.length > 0 && (\n <VStack alignItems=\"stretch\" gap=\"space-4\">\n <Text as=\"span\" fontSize=\"body.sm\" fontWeight=\"bold\" color=\"grey.400\">\n {labels.notSpecified}\n </Text>\n <HStack flexWrap=\"wrap\" gap=\"space-4\">\n {notSpecified.map(key => (\n <Text\n key={key}\n as=\"span\"\n fontSize=\"body.sm\"\n color=\"grey.400\"\n border=\"1px solid\"\n borderColor=\"grey.100\"\n px=\"space-8\"\n py=\"2px\"\n borderRadius=\"full\"\n >\n {labels.attributes[key]}\n </Text>\n ))}\n </HStack>\n </VStack>\n )}\n\n {labels.footer && (\n <>\n <Box h=\"1px\" bg=\"grey.100\" mt=\"space-8\" mb=\"space-8\" />\n <Text as=\"span\" fontSize=\"9px\" color=\"grey.300\" style={{ lineHeight: 1 }}>\n {labels.footer}\n </Text>\n </>\n )}\n </Box>\n )\n}\n"],"mappings":"A,4HAoCA,IAAMQ,EAAwB,EAExBC,EAAuC,CAC3C,SACA,oBACA,cACA,UACA,UACA,YACA,QACA,YACA,cACA,cACA,iBACF,EAGMC,EAAsC,CAAC,cAAe,UAAW,SAAS,EAE1EC,EAAkD,CAAC,cAAe,cAAe,iBAAiB,EAElGC,EAAkE,CACtE,KAAM,CAAE,GAAI,UAAW,MAAO,SAAU,EACxC,OAAQ,CAAE,GAAI,UAAW,MAAO,SAAU,EAC1C,QAAS,CAAE,GAAI,UAAW,MAAO,SAAU,EAC3C,kBAAmB,CAAE,GAAI,UAAW,MAAO,SAAU,CACvD,EAEA,SAASC,EAAiB,EAAyB,CAGjD,OAFIC,GAAW,GAAW,UACtBA,GAAW,GAAW,UACnB,SACT,CAEA,SAASC,EAAY,EAA8B,CAGjD,OAFIC,GAAgB,GAAW,UAC3BA,GAAgB,GAAW,UACxB,SACT,CAEA,SAASC,EAAS,EAAwC,CACxD,OAAOC,GAAQ,OAAS,IAC1B,CAEA,SAASC,EAAW,EAAwC,CAC1D,OAAOD,GAAQ,SAAW,MAAQA,GAAQ,OAAS,IACrD,CAEA,SAASE,EAAa,EAAwC,CAC5D,OAAOH,EAASC,CAAM,GAAKC,EAAWD,CAAM,CAC9C,CAEA,IAAaG,GAAsB,CAAE,UAAS,SAAQ,SAAQ,gBAA0C,CAMtG,IAAMC,EACJ,OAAOC,CAAU,IAAMf,GAAyBG,EAAoB,KAAK,GAAOO,EAAOM,EAAI,EAAE,OAAS,IAAI,EACtGC,EAAa,IAAI,IAAuBH,EAAcZ,EAAiBC,CAAmB,EAC1Fe,EAAcjB,EAAgB,OAAO,GAAO,CAACgB,EAAW,IAAID,CAAG,CAAC,EAEhEG,EAAWD,EAAY,OAAO,GAAON,EAAaF,EAAOM,EAAI,CAAC,EAC9DI,EAAeF,EAAY,OAAO,GAAO,CAACN,EAAaF,EAAOM,EAAI,GAAKK,EAAO,WAAWL,IAAQ,IAAI,EAE3G,OACE,EAAAjB,EAAA,KAAA,CAACP,EAAAA,IAAD,CACE,GAAG,QACH,aAAa,WACb,EAAE,WACF,KAAK,QACL,KAAK,QACL,IAAK,CAAE,MAAO,CAAE,WAAY,SAAU,CAAE,EAN1C,SAAA,EAQE,EAAAO,EAAA,KAAA,CAACN,EAAAA,OAAD,CAAQ,QAAQ,gBAAgB,WAAW,WAAW,GAAG,UAAzD,SAAA,EACE,EAAAM,EAAA,IAAA,CAACL,EAAAA,KAAD,CAAM,GAAG,OAAO,SAAS,UAAU,WAAW,OAC3C,SAAA2B,EAAO,KACJ,CAAA,GACN,EAAAtB,EAAA,KAAA,CAACL,EAAAA,KAAD,CAAM,GAAG,OAAO,SAAS,UAAU,WAAW,SAAS,MAAO,CAAE,MAAOW,EAAiBC,CAAO,CAAE,EAAjG,SAAA,CACG,KAAK,MAAMA,CAAO,EAAE,IACjB,CACA,CAAA,CAAA,C,IAER,EAAAP,EAAA,IAAA,CAACP,EAAAA,IAAD,CAAK,EAAE,MAAM,GAAG,WAAW,GAAG,SAAW,CAAA,EAExC2B,EAAS,OAAS,IACjB,EAAApB,EAAA,KAAA,CAACJ,EAAAA,OAAD,CAAQ,WAAW,UAAU,IAAI,UAAU,GAAG,UAA9C,SAAA,EACE,EAAAI,EAAA,IAAA,CAACL,EAAAA,KAAD,CAAM,GAAG,OAAO,SAAS,UAAU,WAAW,OAAO,MAAM,WACxD,SAAA2B,EAAO,QACJ,CAAA,EACLF,EAAS,IAAI,GAAO,CACnB,IAAMG,EAAQZ,EAAOM,GACrB,GAAIP,EAASa,CAAK,EAAG,CACnB,IAAMC,EAAQD,EAAM,MACdE,EAASpB,EAAamB,GAC5B,OACE,EAAAxB,EAAA,KAAA,CAACN,EAAAA,OAAD,CAAkB,EAAE,OAAO,WAAW,SAAS,IAAI,UAAU,QAAQ,gBAArE,SAAA,EACE,EAAAM,EAAA,IAAA,CAACL,EAAAA,KAAD,CAAM,GAAG,OAAO,SAAS,UAAU,MAAM,WAAW,KAAK,OACtD,SAAA2B,EAAO,WAAWL,EACf,CAAA,GACN,EAAAjB,EAAA,IAAA,CAACP,EAAAA,IAAD,CACE,QAAQ,OACR,WAAW,SACX,eAAe,SACf,EAAE,OACF,GAAG,UACH,aAAa,OACb,WAAW,IACX,MAAO,CAAE,gBAAiBgC,EAAO,EAAG,EAEpC,UAAA,EAAAzB,EAAA,IAAA,CAACL,EAAAA,KAAD,CACE,GAAG,OACH,SAAS,UACT,WAAW,SACX,MAAO,CAAE,MAAO8B,EAAO,MAAO,WAAY,SAAU,WAAY,CAAE,EAEjE,SAAAH,EAAO,SAASE,IAAUA,CACvB,CAAA,CACH,CAAA,CACC,CAvBK,EAAAP,CAuBL,CAEZ,CAEA,IAAMS,EAAUH,EAAM,QAChBI,EAAQJ,EAAM,MACdd,EAAekB,EAAQ,EAAKD,EAAUC,EAAS,IAAM,EAC3D,OACE,EAAA3B,EAAA,KAAA,CAACN,EAAAA,OAAD,CAAkB,EAAE,OAAO,WAAW,SAAS,IAAI,UAAnD,SAAA,EACE,EAAAM,EAAA,IAAA,CAACL,EAAAA,KAAD,CAAM,GAAG,OAAO,SAAS,UAAU,MAAM,WAAW,KAAK,OACtD,SAAA2B,EAAO,WAAWL,EACf,CAAA,GACN,EAAAjB,EAAA,IAAA,CAACP,EAAAA,IAAD,CAAK,KAAK,IAAI,EAAE,MAAM,GAAG,WAAW,aAAa,OAAO,SAAS,SAC/D,UAAA,EAAAO,EAAA,IAAA,CAACP,EAAAA,IAAD,CACE,EAAE,OACF,aAAa,OACb,MAAO,CAAE,MAAO,GAAGgB,EAAa,GAAI,WAAYD,EAAYC,CAAY,CAAE,CAC3E,CAAA,CACE,CAAA,GACL,EAAAT,EAAA,KAAA,CAACL,EAAAA,KAAD,CACE,GAAG,OACH,SAAS,UACT,WAAW,SACX,KAAK,OACL,UAAU,QACV,MAAO,CAAE,MAAOa,EAAYC,CAAY,EAAG,WAAY,CAAE,EAN3D,SAAA,CAQGiB,EAAQ,IAAEC,CACP,C,EACA,CArBK,EAAAV,CAqBL,CAEZ,CAAC,CACK,C,GAGTG,EAAS,OAAS,GAAKC,EAAa,OAAS,IAAK,EAAArB,EAAA,IAAA,CAACP,EAAAA,IAAD,CAAK,EAAE,MAAM,GAAG,WAAW,GAAG,SAAW,CAAA,EAE3F4B,EAAa,OAAS,IACrB,EAAArB,EAAA,KAAA,CAACJ,EAAAA,OAAD,CAAQ,WAAW,UAAU,IAAI,UAAjC,SAAA,EACE,EAAAI,EAAA,IAAA,CAACL,EAAAA,KAAD,CAAM,GAAG,OAAO,SAAS,UAAU,WAAW,OAAO,MAAM,WACxD,SAAA2B,EAAO,YACJ,CAAA,GACN,EAAAtB,EAAA,IAAA,CAACN,EAAAA,OAAD,CAAQ,SAAS,OAAO,IAAI,UACzB,SAAA2B,EAAa,IAAI,IAChB,EAAArB,EAAA,IAAA,CAACL,EAAAA,KAAD,CAEE,GAAG,OACH,SAAS,UACT,MAAM,WACN,OAAO,YACP,YAAY,WACZ,GAAG,UACH,GAAG,MACH,aAAa,OAEZ,SAAA2B,EAAO,WAAWL,EACf,EAXCA,CAWD,CACP,CACK,CAAA,CACF,C,GAGTK,EAAO,SACN,EAAAtB,EAAA,KAAA,CAAAH,EAAAA,SAAA,CAAA,SAAA,EACE,EAAAG,EAAA,IAAA,CAACP,EAAAA,IAAD,CAAK,EAAE,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,SAAW,CAAA,GACtD,EAAAO,EAAA,IAAA,CAACL,EAAAA,KAAD,CAAM,GAAG,OAAO,SAAS,MAAM,MAAM,WAAW,MAAO,CAAE,WAAY,CAAE,EACpE,SAAA2B,EAAO,MACJ,CAAA,CACN,CAAA,CAAA,CAED,C,EAET,E"}
|
|
@@ -23,4 +23,4 @@ export type ChatScoreBreakdownProps = {
|
|
|
23
23
|
/** Typology id of the AO product (1 = packaging). When provided, drives which attribute family is shown; falls back to inferring from the numeric specs when absent. */
|
|
24
24
|
typologyId?: number;
|
|
25
25
|
};
|
|
26
|
-
export declare const ChatScoreBreakdown: ({ percent, detail, labels, typologyId }: ChatScoreBreakdownProps) => import(
|
|
26
|
+
export declare const ChatScoreBreakdown: ({ percent, detail, labels, typologyId }: ChatScoreBreakdownProps) => import('react').JSX.Element;
|