@mp-front/components 0.0.1-next-13 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/flags/index.d.ts +0 -1
- package/dist/assets/icons/index.d.ts +0 -1
- package/dist/carousel.component-BoAJeEI-.cjs +54 -0
- package/dist/{carousel.component-CdgrJtst.js → carousel.component-C1gCC7qn.js} +3502 -3320
- package/dist/{classNames-BiTpavcN.js → classNames-B-jGgM9Z.js} +33 -34
- package/dist/classNames-DOJgtGms.cjs +1 -0
- package/dist/components/Portal.d.ts +1 -2
- package/dist/components/accordion/accordion.component.d.ts +0 -1
- package/dist/components/accordion/accordion.content.d.ts +0 -1
- package/dist/components/accordion/accordion.item.d.ts +0 -1
- package/dist/components/accordion/accordion.stories.d.ts +0 -1
- package/dist/components/accordion/accordion.test.d.ts +0 -1
- package/dist/components/accordion/accordion.trigger.d.ts +0 -1
- package/dist/components/accordion/accordion.types.d.ts +0 -1
- package/dist/components/accordion/index.d.ts +0 -1
- package/dist/components/alert/alert.component.d.ts +0 -1
- package/dist/components/alert/alert.stories.d.ts +0 -1
- package/dist/components/alert/alert.test.d.ts +0 -1
- package/dist/components/alert/alert.types.d.ts +0 -1
- package/dist/components/alert/index.d.ts +0 -1
- package/dist/components/animation/count-up/count-up.component.d.ts +0 -1
- package/dist/components/animation/count-up/count-up.stories.d.ts +0 -1
- package/dist/components/animation/count-up/count-up.test.d.ts +0 -1
- package/dist/components/animation/count-up/count-up.types.d.ts +0 -1
- package/dist/components/animation/index.d.ts +0 -1
- package/dist/components/avatar/avatar.component.d.ts +0 -1
- package/dist/components/avatar/avatar.stories.d.ts +0 -1
- package/dist/components/avatar/avatar.types.d.ts +0 -1
- package/dist/components/avatar/index.d.ts +0 -1
- package/dist/components/button/button.component.d.ts +0 -1
- package/dist/components/button/button.stories.d.ts +0 -1
- package/dist/components/button/button.test.d.ts +0 -1
- package/dist/components/button/button.types.d.ts +0 -1
- package/dist/components/button/constants/color-variants.d.ts +0 -1
- package/dist/components/button/constants/cursor-variants.d.ts +0 -1
- package/dist/components/button/constants/size-variants.d.ts +0 -1
- package/dist/components/button/helpers/getAccumulatedSizeStyles.d.ts +0 -1
- package/dist/components/button/helpers/getBaseButtonStyles.d.ts +0 -1
- package/dist/components/button/index.d.ts +0 -1
- package/dist/components/card/card.component.d.ts +0 -1
- package/dist/components/card/card.stories.d.ts +0 -1
- package/dist/components/card/card.test.d.ts +0 -1
- package/dist/components/card/card.types.d.ts +0 -1
- package/dist/components/card/index.d.ts +0 -1
- package/dist/components/carousel/carousel-container.component.d.ts +0 -1
- package/dist/components/carousel/carousel-dots.component.d.ts +0 -1
- package/dist/components/carousel/carousel-item.component.d.ts +0 -1
- package/dist/components/carousel/carousel-next-button.component.d.ts +0 -1
- package/dist/components/carousel/carousel-prev-button.component.d.ts +0 -1
- package/dist/components/carousel/carousel.component.d.ts +0 -1
- package/dist/components/carousel/carousel.constants.d.ts +0 -1
- package/dist/components/carousel/carousel.context.d.ts +1 -2
- package/dist/components/carousel/carousel.stories.d.ts +0 -1
- package/dist/components/carousel/carousel.types.d.ts +0 -1
- package/dist/components/carousel/utils/handle-key-down.d.ts +0 -1
- package/dist/components/carousel/utils/index.d.ts +0 -1
- package/dist/components/carousel/utils/number-with-range.d.ts +0 -1
- package/dist/components/carousel/utils/tween-scale.d.ts +0 -1
- package/dist/components/checkbox/checkbox.component.d.ts +0 -1
- package/dist/components/checkbox/checkbox.icon.d.ts +0 -1
- package/dist/components/checkbox/checkbox.label.d.ts +1 -2
- package/dist/components/checkbox/checkbox.stories.d.ts +0 -1
- package/dist/components/checkbox/checkbox.test.d.ts +0 -1
- package/dist/components/checkbox/checkbox.types.d.ts +1 -2
- package/dist/components/checkbox/index.d.ts +0 -1
- package/dist/components/divider/divider.component.d.ts +0 -1
- package/dist/components/divider/divider.stories.d.ts +0 -1
- package/dist/components/divider/divider.test.d.ts +0 -1
- package/dist/components/divider/divider.types.d.ts +0 -1
- package/dist/components/divider/index.d.ts +0 -1
- package/dist/components/drawer/constants/animation-config.d.ts +0 -1
- package/dist/components/drawer/constants/base-styles.d.ts +0 -1
- package/dist/components/drawer/constants/position-variants.d.ts +0 -1
- package/dist/components/drawer/drawer.component.d.ts +0 -1
- package/dist/components/drawer/drawer.stories.d.ts +0 -1
- package/dist/components/drawer/drawer.test.d.ts +0 -1
- package/dist/components/drawer/drawer.types.d.ts +0 -1
- package/dist/components/drawer/index.d.ts +0 -1
- package/dist/components/dropdown/dropdown.component.d.ts +0 -1
- package/dist/components/dropdown/dropdown.content.d.ts +0 -1
- package/dist/components/dropdown/dropdown.item.d.ts +0 -1
- package/dist/components/dropdown/dropdown.label.d.ts +0 -1
- package/dist/components/dropdown/dropdown.renderers.d.ts +1 -2
- package/dist/components/dropdown/dropdown.separator.d.ts +0 -1
- package/dist/components/dropdown/dropdown.stories.d.ts +0 -1
- package/dist/components/dropdown/dropdown.test.d.ts +0 -1
- package/dist/components/dropdown/dropdown.trigger.d.ts +0 -1
- package/dist/components/dropdown/dropdown.types.d.ts +0 -1
- package/dist/components/dropdown/index.d.ts +0 -1
- package/dist/components/empty/empty.component.d.ts +0 -1
- package/dist/components/empty/empty.constants.d.ts +0 -1
- package/dist/components/empty/empty.stories.d.ts +0 -1
- package/dist/components/empty/empty.types.d.ts +0 -1
- package/dist/components/empty/index.d.ts +0 -1
- package/dist/components/flex/flex.component.d.ts +0 -1
- package/dist/components/flex/flex.stories.d.ts +0 -1
- package/dist/components/flex/index.d.ts +0 -1
- package/dist/components/grid/col/col.component.d.ts +0 -1
- package/dist/components/grid/col/index.d.ts +0 -1
- package/dist/components/grid/grid.stories.d.ts +0 -1
- package/dist/components/grid/grid.test.d.ts +0 -1
- package/dist/components/grid/grid.types.d.ts +12 -13
- package/dist/components/grid/index.d.ts +0 -1
- package/dist/components/grid/row/index.d.ts +0 -1
- package/dist/components/grid/row/row.component.d.ts +0 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/components/input/common.d.ts +2 -3
- package/dist/components/input/index.d.ts +0 -1
- package/dist/components/input/input.clearbtn.d.ts +0 -1
- package/dist/components/input/number/index.d.ts +0 -1
- package/dist/components/input/number/number.component.d.ts +0 -1
- package/dist/components/input/number/number.functions.d.ts +0 -1
- package/dist/components/input/number/number.stories.d.ts +0 -1
- package/dist/components/input/number/number.test.d.ts +0 -1
- package/dist/components/input/number/number.types.d.ts +0 -1
- package/dist/components/input/number/useInputNumber.d.ts +359 -358
- package/dist/components/input/text/index.d.ts +0 -1
- package/dist/components/input/text/text.component.d.ts +0 -1
- package/dist/components/input/text/text.stories.d.ts +0 -1
- package/dist/components/input/text/text.test.d.ts +0 -1
- package/dist/components/input/text/text.types.d.ts +0 -1
- package/dist/components/list/index.d.ts +0 -1
- package/dist/components/list/list.component.d.ts +0 -1
- package/dist/components/list/list.container.d.ts +0 -1
- package/dist/components/list/list.empty.d.ts +0 -1
- package/dist/components/list/list.functions.d.ts +0 -1
- package/dist/components/list/list.item.d.ts +0 -1
- package/dist/components/list/list.stories.d.ts +0 -1
- package/dist/components/list/list.test.d.ts +0 -1
- package/dist/components/list/list.title.d.ts +0 -1
- package/dist/components/list/list.types.d.ts +0 -1
- package/dist/components/modal/dialog.overlay.d.ts +0 -1
- package/dist/components/modal/dialog.types.d.ts +0 -1
- package/dist/components/modal/index.d.ts +0 -1
- package/dist/components/modal/modal.component.d.ts +0 -1
- package/dist/components/modal/modal.content.d.ts +0 -1
- package/dist/components/modal/modal.footer.d.ts +1 -2
- package/dist/components/modal/modal.header.d.ts +1 -2
- package/dist/components/modal/modal.motion.d.ts +0 -1
- package/dist/components/modal/modal.stories.d.ts +0 -1
- package/dist/components/notification/index.d.ts +0 -1
- package/dist/components/notification/notification.close.button.d.ts +0 -1
- package/dist/components/notification/notification.component.d.ts +0 -1
- package/dist/components/notification/notification.component.test.d.ts +0 -1
- package/dist/components/notification/notification.content.d.ts +0 -1
- package/dist/components/notification/notification.icon.d.ts +1 -2
- package/dist/components/notification/notification.stories.d.ts +0 -1
- package/dist/components/notification/notification.types.d.ts +0 -1
- package/dist/components/pagination/index.d.ts +0 -1
- package/dist/components/pagination/page.number.d.ts +0 -1
- package/dist/components/pagination/pagination.button.d.ts +0 -1
- package/dist/components/pagination/pagination.component.d.ts +0 -1
- package/dist/components/pagination/pagination.ellipsis.d.ts +0 -1
- package/dist/components/pagination/pagination.functions.d.ts +0 -1
- package/dist/components/pagination/pagination.stories.d.ts +0 -1
- package/dist/components/pagination/pagination.test.d.ts +0 -1
- package/dist/components/pagination/pagination.types.d.ts +0 -1
- package/dist/components/popover/components/index.d.ts +0 -1
- package/dist/components/popover/components/popover-anchor.component.d.ts +0 -1
- package/dist/components/popover/components/popover-arrow.component.d.ts +0 -1
- package/dist/components/popover/components/popover-close.component.d.ts +0 -1
- package/dist/components/popover/components/popover-content.component.d.ts +0 -1
- package/dist/components/popover/components/popover-portal.component.d.ts +0 -1
- package/dist/components/popover/components/popover-trigger.component.d.ts +0 -1
- package/dist/components/popover/index.d.ts +0 -1
- package/dist/components/popover/popover.component.d.ts +6 -2
- package/dist/components/popover/popover.context.d.ts +0 -1
- package/dist/components/popover/popover.stories.d.ts +0 -1
- package/dist/components/popover/popover.test.d.ts +0 -1
- package/dist/components/popover/popover.types.d.ts +0 -1
- package/dist/components/progress/index.d.ts +0 -1
- package/dist/components/progress/progress.component.d.ts +0 -1
- package/dist/components/progress/progress.stories.d.ts +0 -1
- package/dist/components/progress/progress.test.d.ts +0 -1
- package/dist/components/progress/progress.types.d.ts +0 -1
- package/dist/components/qr-barcode/barcode.d.ts +0 -1
- package/dist/components/qr-barcode/index.d.ts +0 -1
- package/dist/components/qr-barcode/qr-barcode.component.d.ts +1 -2
- package/dist/components/qr-barcode/qr-barcode.stories.d.ts +0 -1
- package/dist/components/qr-barcode/qr-barcode.test.d.ts +0 -1
- package/dist/components/qr-barcode/qr-barcode.types.d.ts +0 -1
- package/dist/components/qr-barcode/qr.d.ts +0 -1
- package/dist/components/radio-group/index.d.ts +0 -1
- package/dist/components/radio-group/radio-group.component.d.ts +0 -1
- package/dist/components/radio-group/radio-group.stories.d.ts +0 -1
- package/dist/components/radio-group/radio-group.test.d.ts +0 -1
- package/dist/components/radio-group/radio-group.types.d.ts +0 -1
- package/dist/components/segmented/components/SegmentedIndicator.d.ts +0 -1
- package/dist/components/segmented/components/SegmentedOption.d.ts +0 -1
- package/dist/components/segmented/constants/animation-config.d.ts +0 -1
- package/dist/components/segmented/constants/base-styles.d.ts +0 -1
- package/dist/components/segmented/constants/size-variants.d.ts +0 -1
- package/dist/components/segmented/helpers/createItemClickHandler.d.ts +0 -1
- package/dist/components/segmented/helpers/getAccumulatedSizeStyles.d.ts +0 -1
- package/dist/components/segmented/helpers/getContainerStyles.d.ts +0 -1
- package/dist/components/segmented/helpers/getCurrentValue.d.ts +2 -2
- package/dist/components/segmented/helpers/getItemStyles.d.ts +0 -1
- package/dist/components/segmented/helpers/normalizeOptions.d.ts +2 -3
- package/dist/components/segmented/hooks/useActiveIndex.d.ts +3 -3
- package/dist/components/segmented/hooks/useIndicatorStyle.d.ts +1 -2
- package/dist/components/segmented/index.d.ts +0 -1
- package/dist/components/segmented/segmented.component.d.ts +2 -3
- package/dist/components/segmented/segmented.stories.d.ts +0 -1
- package/dist/components/segmented/segmented.test.d.ts +0 -1
- package/dist/components/segmented/segmented.types.d.ts +11 -22
- package/dist/components/select/hooks/useSelectSearch.d.ts +1 -2
- package/dist/components/select/hooks/useSelectValue.d.ts +1 -2
- package/dist/components/select/hooks/useSelectWidth.d.ts +1 -2
- package/dist/components/select/index.d.ts +0 -1
- package/dist/components/select/select.component.d.ts +0 -1
- package/dist/components/select/select.content.d.ts +0 -1
- package/dist/components/select/select.empty-state.d.ts +0 -1
- package/dist/components/select/select.item.d.ts +0 -1
- package/dist/components/select/select.search-input.d.ts +0 -1
- package/dist/components/select/select.stories.d.ts +0 -1
- package/dist/components/select/select.test.d.ts +0 -1
- package/dist/components/select/select.trigger.d.ts +0 -1
- package/dist/components/select/select.types.d.ts +4 -4
- package/dist/components/skeleton/index.d.ts +0 -1
- package/dist/components/skeleton/skeleton.component.d.ts +0 -1
- package/dist/components/skeleton/skeleton.stories.d.ts +0 -1
- package/dist/components/skeleton/skeleton.test.d.ts +0 -1
- package/dist/components/skeleton/skeleton.types.d.ts +0 -1
- package/dist/components/skeleton/variants/avatar.sk.component.d.ts +0 -1
- package/dist/components/skeleton/variants/default.sk.component.d.ts +0 -1
- package/dist/components/skeleton/variants/image.sk.component.d.ts +0 -1
- package/dist/components/skeleton/variants/imagedescription.sk.component.d.ts +0 -1
- package/dist/components/skeleton/variants/list.sk.component.d.ts +0 -1
- package/dist/components/slider/index.d.ts +0 -1
- package/dist/components/slider/slider.component.d.ts +0 -1
- package/dist/components/slider/slider.stories.d.ts +0 -1
- package/dist/components/slider/slider.test.d.ts +0 -1
- package/dist/components/slider/slider.types.d.ts +0 -1
- package/dist/components/spinner/index.d.ts +0 -1
- package/dist/components/spinner/spinner.component.d.ts +0 -1
- package/dist/components/spinner/spinner.stories.d.ts +0 -1
- package/dist/components/spinner/spinner.test.d.ts +0 -1
- package/dist/components/spinner/spinner.types.d.ts +0 -1
- package/dist/components/steps/index.d.ts +0 -1
- package/dist/components/steps/step.button.d.ts +0 -1
- package/dist/components/steps/step.item.d.ts +0 -1
- package/dist/components/steps/steps.component.d.ts +0 -1
- package/dist/components/steps/steps.functions.d.ts +0 -1
- package/dist/components/steps/steps.list.d.ts +0 -1
- package/dist/components/steps/steps.stories.d.ts +0 -1
- package/dist/components/steps/steps.test.d.ts +0 -1
- package/dist/components/steps/steps.types.d.ts +0 -1
- package/dist/components/switch/constants/base-styles.d.ts +0 -1
- package/dist/components/switch/constants/size-variants.d.ts +0 -1
- package/dist/components/switch/constants/type-variants.d.ts +0 -1
- package/dist/components/switch/helpers/getChildrenStyles.d.ts +0 -1
- package/dist/components/switch/helpers/getLabelHelpers.d.ts +0 -1
- package/dist/components/switch/helpers/getSwitchRootStyles.d.ts +0 -1
- package/dist/components/switch/helpers/getThumbConfig.d.ts +0 -1
- package/dist/components/switch/index.d.ts +0 -1
- package/dist/components/switch/switch.component.d.ts +0 -1
- package/dist/components/switch/switch.stories.d.ts +0 -1
- package/dist/components/switch/switch.test.d.ts +0 -1
- package/dist/components/switch/switch.types.d.ts +0 -1
- package/dist/components/tabs/index.d.ts +0 -1
- package/dist/components/tabs/tabs.component.d.ts +0 -1
- package/dist/components/tabs/tabs.stories.d.ts +0 -1
- package/dist/components/tabs/tabs.styles.d.ts +0 -1
- package/dist/components/tabs/tabs.test.d.ts +0 -1
- package/dist/components/tabs/tabs.types.d.ts +0 -2
- package/dist/components/tabs/tabs.utils.d.ts +0 -1
- package/dist/components/tabs/tabsContent.d.ts +0 -1
- package/dist/components/tabs/tabsList.d.ts +0 -1
- package/dist/components/tag/index.d.ts +0 -1
- package/dist/components/tag/tag.component.d.ts +0 -1
- package/dist/components/tag/tag.stories.d.ts +0 -1
- package/dist/components/tag/tag.test.d.ts +0 -1
- package/dist/components/tag/tag.types.d.ts +0 -1
- package/dist/components/textArea/index.d.ts +0 -1
- package/dist/components/textArea/text-area.stories.d.ts +0 -1
- package/dist/components/textArea/text.area.component.d.ts +0 -1
- package/dist/components/textArea/text.area.constants.d.ts +0 -1
- package/dist/components/textArea/text.area.control.d.ts +0 -1
- package/dist/components/textArea/text.area.field.d.ts +0 -1
- package/dist/components/textArea/text.area.footer.d.ts +0 -1
- package/dist/components/textArea/text.area.helpers.d.ts +0 -1
- package/dist/components/textArea/types.d.ts +0 -1
- package/dist/components/toggle/constants/variants.d.ts +4 -5
- package/dist/components/toggle/index.d.ts +0 -1
- package/dist/components/toggle/toggle.component.d.ts +0 -1
- package/dist/components/toggle/toggle.stories.d.ts +0 -1
- package/dist/components/toggle/toggle.test.d.ts +0 -1
- package/dist/components/toggle-group/index.d.ts +0 -1
- package/dist/components/toggle-group/toggle-group-context.d.ts +4 -5
- package/dist/components/toggle-group/toggle-group-item.component.d.ts +0 -1
- package/dist/components/toggle-group/toggle-group.component.d.ts +0 -1
- package/dist/components/toggle-group/toggle-group.stories.d.ts +0 -1
- package/dist/components/toggle-group/toggle-group.test.d.ts +0 -1
- package/dist/components/tooltip/index.d.ts +0 -1
- package/dist/components/tooltip/tooltip.component.d.ts +0 -1
- package/dist/components/tooltip/tooltip.stories.d.ts +0 -1
- package/dist/components/tooltip/tooltip.test.d.ts +0 -1
- package/dist/components/tooltip/tooltip.types.d.ts +0 -1
- package/dist/components/typography/index.d.ts +0 -1
- package/dist/components/typography/typography.component.d.ts +0 -1
- package/dist/components/typography/typography.constants.d.ts +0 -1
- package/dist/components/typography/typography.text.d.ts +0 -1
- package/dist/components/typography/typography.title.d.ts +0 -1
- package/dist/components/typography/typography.types.d.ts +0 -1
- package/dist/components/typography/utils/index.d.ts +0 -1
- package/dist/components/utils/chunks.d.ts +0 -1
- package/dist/components/utils/generate-colors.d.ts +0 -1
- package/dist/components/utils/index.d.ts +0 -1
- package/dist/constants/alert/index.d.ts +0 -1
- package/dist/constants/charts/doughnut.d.ts +0 -1
- package/dist/constants/charts/index.d.ts +0 -1
- package/dist/constants/charts/vertical-horizontal.d.ts +60 -62
- package/dist/constants/common/index.d.ts +0 -1
- package/dist/constants/langs/index.d.ts +0 -1
- package/dist/constants/list/index.d.ts +0 -1
- package/dist/constants/list/sizes.d.ts +0 -1
- package/dist/constants/notification/index.d.ts +0 -1
- package/dist/constants/pagination/index.d.ts +0 -1
- package/dist/constants/pagination/sizes.d.ts +0 -1
- package/dist/constants/progress/index.d.ts +0 -1
- package/dist/constants/slider/index.d.ts +0 -1
- package/dist/constants/steps/index.d.ts +0 -1
- package/dist/constants/steps/sizes.d.ts +0 -1
- package/dist/constants/tag/index.d.ts +0 -1
- package/dist/constants/transitions/command-palette.transition.d.ts +0 -1
- package/dist/constants/transitions/dropdown.transition.d.ts +0 -1
- package/dist/constants/transitions/flyout-from-bottom.transition.d.ts +0 -1
- package/dist/constants/transitions/flyout-from-top.transition.d.ts +0 -1
- package/dist/constants/transitions/index.d.ts +0 -1
- package/dist/constants/transitions/modal-overlay.transition.d.ts +0 -1
- package/dist/constants/transitions/modal.transition.d.ts +0 -1
- package/dist/constants/transitions/notification.transition.d.ts +0 -1
- package/dist/constants/transitions/position-drawer.transition.d.ts +0 -1
- package/dist/constants/transitions/select-transition.d.ts +0 -1
- package/dist/constants/transitions/simple.transition.d.ts +0 -1
- package/dist/constants/transitions/slide-over.transition.d.ts +0 -1
- package/dist/constants/transitions/slide-overlay.transition.d.ts +0 -1
- package/dist/constants/transitions/spin-in.transition.d.ts +0 -1
- package/dist/constants/typography/title/index.d.ts +0 -1
- package/dist/constants/version-number.d.ts +0 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/use-controlled-state.d.ts +0 -1
- package/dist/hooks/useBoolean/index.d.ts +0 -1
- package/dist/hooks/useBreakpoint/index.d.ts +0 -1
- package/dist/hooks/useDarkMode/index.d.ts +0 -1
- package/dist/hooks/useItemsId.d.ts +0 -1
- package/dist/hooks/useLang/index.d.ts +0 -1
- package/dist/hooks/useWindowLoading/index.d.ts +0 -1
- package/dist/index-DqeuLqYH.cjs +1 -0
- package/dist/index-Uukw7yyL.js +18 -0
- package/dist/interfaces/accordion/index.d.ts +0 -1
- package/dist/interfaces/bullets-navigation/index.d.ts +0 -1
- package/dist/interfaces/button/index.d.ts +0 -1
- package/dist/interfaces/card-product/index.d.ts +0 -1
- package/dist/interfaces/card-status/index.d.ts +0 -1
- package/dist/interfaces/charts/index.d.ts +1 -3
- package/dist/interfaces/checkbox/index.d.ts +0 -1
- package/dist/interfaces/common/index.d.ts +0 -1
- package/dist/interfaces/custom/config-card.d.ts +0 -1
- package/dist/interfaces/custom/customer-name-card.d.ts +0 -1
- package/dist/interfaces/custom/index.d.ts +0 -1
- package/dist/interfaces/custom/instructions-carousel.d.ts +0 -1
- package/dist/interfaces/custom/switch-option-list.d.ts +0 -1
- package/dist/interfaces/custom/switch-option.d.ts +0 -1
- package/dist/interfaces/custom/tooltip.d.ts +0 -1
- package/dist/interfaces/date-range-picker/index.d.ts +0 -1
- package/dist/interfaces/divider/index.d.ts +0 -1
- package/dist/interfaces/drawer/index.d.ts +0 -1
- package/dist/interfaces/flex/index.d.ts +5 -6
- package/dist/interfaces/footer/index.d.ts +0 -1
- package/dist/interfaces/grid/index.d.ts +12 -13
- package/dist/interfaces/index.d.ts +0 -1
- package/dist/interfaces/input/index.d.ts +0 -1
- package/dist/interfaces/input-number/index.d.ts +0 -1
- package/dist/interfaces/input-text/index.d.ts +0 -1
- package/dist/interfaces/layout/container/index.d.ts +0 -1
- package/dist/interfaces/layout/footer/index.d.ts +0 -1
- package/dist/interfaces/layout/index.d.ts +1 -14
- package/dist/interfaces/layout/navbar/index.d.ts +0 -1
- package/dist/interfaces/layout/sidebar/index.d.ts +0 -1
- package/dist/interfaces/loadings/idle-coco.d.ts +0 -1
- package/dist/interfaces/loadings/index.d.ts +0 -1
- package/dist/interfaces/menu/index.d.ts +0 -1
- package/dist/interfaces/modal/index.d.ts +0 -1
- package/dist/interfaces/navbar/index.d.ts +0 -1
- package/dist/interfaces/qr-code/index.d.ts +0 -1
- package/dist/interfaces/radio/index.d.ts +0 -1
- package/dist/interfaces/select/index.d.ts +0 -1
- package/dist/interfaces/sidebar/index.d.ts +0 -1
- package/dist/interfaces/steps/index.d.ts +0 -1
- package/dist/interfaces/switch/index.d.ts +0 -1
- package/dist/interfaces/table/index.d.ts +0 -1
- package/dist/interfaces/tabs/index.d.ts +0 -1
- package/dist/interfaces/text-area/index.d.ts +0 -1
- package/dist/interfaces/toast/index.d.ts +0 -1
- package/dist/interfaces/tooltip/index.d.ts +0 -1
- package/dist/interfaces/typography/title/index.d.ts +0 -1
- package/dist/interfaces/utils/index.d.ts +0 -1
- package/dist/lang/es_MX/index.d.ts +0 -1
- package/dist/lang/i18n.d.ts +0 -1
- package/dist/lang/layout/index.d.ts +0 -1
- package/dist/lang/layout/login/es_MX/index.d.ts +0 -1
- package/dist/lang/layout/login/index.d.ts +0 -1
- package/dist/layout/content.component.d.ts +0 -1
- package/dist/layout/footer.component.d.ts +0 -1
- package/dist/layout/header/header.component.d.ts +3 -4
- package/dist/layout/header/header.types.d.ts +0 -1
- package/dist/layout/header/left-side.component.d.ts +0 -1
- package/dist/layout/header/right-side.component.d.ts +1 -2
- package/dist/layout/header/store.component.d.ts +1 -2
- package/dist/layout/header/user.component.d.ts +1 -2
- package/dist/layout/index.d.ts +0 -1
- package/dist/layout/root-layout.component.d.ts +3 -4
- package/dist/layout/root-layout.stories.d.ts +0 -1
- package/dist/layout/root-layout.test.d.ts +0 -1
- package/dist/layout/root-layout.types.d.ts +0 -1
- package/dist/proxy-BNq8UxLM.cjs +6 -0
- package/dist/proxy-C0b_a64j.js +5271 -0
- package/dist/styles.css +2 -2
- package/dist/types/common/index.d.ts +0 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/ui-components-animation.cjs +1 -1
- package/dist/ui-components-animation.js +114 -113
- package/dist/ui-components-hooks.cjs +1 -1
- package/dist/ui-components-hooks.js +15 -16
- package/dist/ui-components-index.cjs +3 -3
- package/dist/ui-components-index.js +1364 -1537
- package/dist/ui-components-layout.cjs +1 -1
- package/dist/ui-components-layout.js +462 -492
- package/dist/ui-components-utils.cjs +1 -1
- package/dist/ui-components-utils.js +2 -2
- package/dist/use-controlled-state-C0HvoCoS.cjs +1 -0
- package/dist/use-controlled-state-sYRbMlAp.js +153 -0
- package/dist/useTranslation-CLkKuRlk.js +184 -0
- package/dist/useTranslation-nEZUFBIW.cjs +1 -0
- package/dist/utils/buildId.d.ts +0 -1
- package/dist/utils/classNames.d.ts +0 -1
- package/dist/utils/context/get-context.d.ts +1 -2
- package/dist/utils/context/index.d.ts +0 -1
- package/dist/utils/context/types.d.ts +0 -1
- package/dist/utils/generateClasses/index.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/package.json +16 -41
- package/dist/assets/flags/index.d.ts.map +0 -1
- package/dist/assets/icons/index.d.ts.map +0 -1
- package/dist/carousel.component-BcjDXzve.cjs +0 -80
- package/dist/classNames-CN12fVA7.cjs +0 -1
- package/dist/components/Portal.d.ts.map +0 -1
- package/dist/components/accordion/accordion.component.d.ts.map +0 -1
- package/dist/components/accordion/accordion.content.d.ts.map +0 -1
- package/dist/components/accordion/accordion.item.d.ts.map +0 -1
- package/dist/components/accordion/accordion.stories.d.ts.map +0 -1
- package/dist/components/accordion/accordion.test.d.ts.map +0 -1
- package/dist/components/accordion/accordion.trigger.d.ts.map +0 -1
- package/dist/components/accordion/accordion.types.d.ts.map +0 -1
- package/dist/components/accordion/index.d.ts.map +0 -1
- package/dist/components/alert/alert.component.d.ts.map +0 -1
- package/dist/components/alert/alert.stories.d.ts.map +0 -1
- package/dist/components/alert/alert.test.d.ts.map +0 -1
- package/dist/components/alert/alert.types.d.ts.map +0 -1
- package/dist/components/alert/index.d.ts.map +0 -1
- package/dist/components/animation/count-up/count-up.component.d.ts.map +0 -1
- package/dist/components/animation/count-up/count-up.stories.d.ts.map +0 -1
- package/dist/components/animation/count-up/count-up.test.d.ts.map +0 -1
- package/dist/components/animation/count-up/count-up.types.d.ts.map +0 -1
- package/dist/components/animation/index.d.ts.map +0 -1
- package/dist/components/avatar/avatar.component.d.ts.map +0 -1
- package/dist/components/avatar/avatar.stories.d.ts.map +0 -1
- package/dist/components/avatar/avatar.types.d.ts.map +0 -1
- package/dist/components/avatar/index.d.ts.map +0 -1
- package/dist/components/button/button.component.d.ts.map +0 -1
- package/dist/components/button/button.stories.d.ts.map +0 -1
- package/dist/components/button/button.test.d.ts.map +0 -1
- package/dist/components/button/button.types.d.ts.map +0 -1
- package/dist/components/button/constants/color-variants.d.ts.map +0 -1
- package/dist/components/button/constants/cursor-variants.d.ts.map +0 -1
- package/dist/components/button/constants/size-variants.d.ts.map +0 -1
- package/dist/components/button/helpers/getAccumulatedSizeStyles.d.ts.map +0 -1
- package/dist/components/button/helpers/getBaseButtonStyles.d.ts.map +0 -1
- package/dist/components/button/index.d.ts.map +0 -1
- package/dist/components/card/card.component.d.ts.map +0 -1
- package/dist/components/card/card.stories.d.ts.map +0 -1
- package/dist/components/card/card.test.d.ts.map +0 -1
- package/dist/components/card/card.types.d.ts.map +0 -1
- package/dist/components/card/index.d.ts.map +0 -1
- package/dist/components/carousel/carousel-container.component.d.ts.map +0 -1
- package/dist/components/carousel/carousel-dots.component.d.ts.map +0 -1
- package/dist/components/carousel/carousel-item.component.d.ts.map +0 -1
- package/dist/components/carousel/carousel-next-button.component.d.ts.map +0 -1
- package/dist/components/carousel/carousel-prev-button.component.d.ts.map +0 -1
- package/dist/components/carousel/carousel.component.d.ts.map +0 -1
- package/dist/components/carousel/carousel.constants.d.ts.map +0 -1
- package/dist/components/carousel/carousel.context.d.ts.map +0 -1
- package/dist/components/carousel/carousel.stories.d.ts.map +0 -1
- package/dist/components/carousel/carousel.types.d.ts.map +0 -1
- package/dist/components/carousel/utils/handle-key-down.d.ts.map +0 -1
- package/dist/components/carousel/utils/index.d.ts.map +0 -1
- package/dist/components/carousel/utils/number-with-range.d.ts.map +0 -1
- package/dist/components/carousel/utils/tween-scale.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox.component.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox.icon.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox.label.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox.stories.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox.test.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox.types.d.ts.map +0 -1
- package/dist/components/checkbox/index.d.ts.map +0 -1
- package/dist/components/divider/divider.component.d.ts.map +0 -1
- package/dist/components/divider/divider.stories.d.ts.map +0 -1
- package/dist/components/divider/divider.test.d.ts.map +0 -1
- package/dist/components/divider/divider.types.d.ts.map +0 -1
- package/dist/components/divider/index.d.ts.map +0 -1
- package/dist/components/drawer/constants/animation-config.d.ts.map +0 -1
- package/dist/components/drawer/constants/base-styles.d.ts.map +0 -1
- package/dist/components/drawer/constants/position-variants.d.ts.map +0 -1
- package/dist/components/drawer/drawer.component.d.ts.map +0 -1
- package/dist/components/drawer/drawer.stories.d.ts.map +0 -1
- package/dist/components/drawer/drawer.test.d.ts.map +0 -1
- package/dist/components/drawer/drawer.types.d.ts.map +0 -1
- package/dist/components/drawer/index.d.ts.map +0 -1
- package/dist/components/dropdown/dropdown.component.d.ts.map +0 -1
- package/dist/components/dropdown/dropdown.content.d.ts.map +0 -1
- package/dist/components/dropdown/dropdown.item.d.ts.map +0 -1
- package/dist/components/dropdown/dropdown.label.d.ts.map +0 -1
- package/dist/components/dropdown/dropdown.renderers.d.ts.map +0 -1
- package/dist/components/dropdown/dropdown.separator.d.ts.map +0 -1
- package/dist/components/dropdown/dropdown.stories.d.ts.map +0 -1
- package/dist/components/dropdown/dropdown.test.d.ts.map +0 -1
- package/dist/components/dropdown/dropdown.trigger.d.ts.map +0 -1
- package/dist/components/dropdown/dropdown.types.d.ts.map +0 -1
- package/dist/components/dropdown/index.d.ts.map +0 -1
- package/dist/components/empty/empty.component.d.ts.map +0 -1
- package/dist/components/empty/empty.constants.d.ts.map +0 -1
- package/dist/components/empty/empty.stories.d.ts.map +0 -1
- package/dist/components/empty/empty.types.d.ts.map +0 -1
- package/dist/components/empty/index.d.ts.map +0 -1
- package/dist/components/flex/flex.component.d.ts.map +0 -1
- package/dist/components/flex/flex.stories.d.ts.map +0 -1
- package/dist/components/flex/index.d.ts.map +0 -1
- package/dist/components/grid/col/col.component.d.ts.map +0 -1
- package/dist/components/grid/col/index.d.ts.map +0 -1
- package/dist/components/grid/grid.stories.d.ts.map +0 -1
- package/dist/components/grid/grid.test.d.ts.map +0 -1
- package/dist/components/grid/grid.types.d.ts.map +0 -1
- package/dist/components/grid/index.d.ts.map +0 -1
- package/dist/components/grid/row/index.d.ts.map +0 -1
- package/dist/components/grid/row/row.component.d.ts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/input/common.d.ts.map +0 -1
- package/dist/components/input/index.d.ts.map +0 -1
- package/dist/components/input/input.clearbtn.d.ts.map +0 -1
- package/dist/components/input/number/index.d.ts.map +0 -1
- package/dist/components/input/number/number.component.d.ts.map +0 -1
- package/dist/components/input/number/number.functions.d.ts.map +0 -1
- package/dist/components/input/number/number.stories.d.ts.map +0 -1
- package/dist/components/input/number/number.test.d.ts.map +0 -1
- package/dist/components/input/number/number.types.d.ts.map +0 -1
- package/dist/components/input/number/useInputNumber.d.ts.map +0 -1
- package/dist/components/input/text/index.d.ts.map +0 -1
- package/dist/components/input/text/text.component.d.ts.map +0 -1
- package/dist/components/input/text/text.stories.d.ts.map +0 -1
- package/dist/components/input/text/text.test.d.ts.map +0 -1
- package/dist/components/input/text/text.types.d.ts.map +0 -1
- package/dist/components/list/index.d.ts.map +0 -1
- package/dist/components/list/list.component.d.ts.map +0 -1
- package/dist/components/list/list.container.d.ts.map +0 -1
- package/dist/components/list/list.empty.d.ts.map +0 -1
- package/dist/components/list/list.functions.d.ts.map +0 -1
- package/dist/components/list/list.item.d.ts.map +0 -1
- package/dist/components/list/list.stories.d.ts.map +0 -1
- package/dist/components/list/list.test.d.ts.map +0 -1
- package/dist/components/list/list.title.d.ts.map +0 -1
- package/dist/components/list/list.types.d.ts.map +0 -1
- package/dist/components/modal/dialog.overlay.d.ts.map +0 -1
- package/dist/components/modal/dialog.types.d.ts.map +0 -1
- package/dist/components/modal/index.d.ts.map +0 -1
- package/dist/components/modal/modal.component.d.ts.map +0 -1
- package/dist/components/modal/modal.content.d.ts.map +0 -1
- package/dist/components/modal/modal.footer.d.ts.map +0 -1
- package/dist/components/modal/modal.header.d.ts.map +0 -1
- package/dist/components/modal/modal.motion.d.ts.map +0 -1
- package/dist/components/modal/modal.stories.d.ts.map +0 -1
- package/dist/components/notification/index.d.ts.map +0 -1
- package/dist/components/notification/notification.close.button.d.ts.map +0 -1
- package/dist/components/notification/notification.component.d.ts.map +0 -1
- package/dist/components/notification/notification.component.test.d.ts.map +0 -1
- package/dist/components/notification/notification.content.d.ts.map +0 -1
- package/dist/components/notification/notification.icon.d.ts.map +0 -1
- package/dist/components/notification/notification.stories.d.ts.map +0 -1
- package/dist/components/notification/notification.types.d.ts.map +0 -1
- package/dist/components/pagination/index.d.ts.map +0 -1
- package/dist/components/pagination/page.number.d.ts.map +0 -1
- package/dist/components/pagination/pagination.button.d.ts.map +0 -1
- package/dist/components/pagination/pagination.component.d.ts.map +0 -1
- package/dist/components/pagination/pagination.ellipsis.d.ts.map +0 -1
- package/dist/components/pagination/pagination.functions.d.ts.map +0 -1
- package/dist/components/pagination/pagination.stories.d.ts.map +0 -1
- package/dist/components/pagination/pagination.test.d.ts.map +0 -1
- package/dist/components/pagination/pagination.types.d.ts.map +0 -1
- package/dist/components/popover/components/index.d.ts.map +0 -1
- package/dist/components/popover/components/popover-anchor.component.d.ts.map +0 -1
- package/dist/components/popover/components/popover-arrow.component.d.ts.map +0 -1
- package/dist/components/popover/components/popover-close.component.d.ts.map +0 -1
- package/dist/components/popover/components/popover-content.component.d.ts.map +0 -1
- package/dist/components/popover/components/popover-portal.component.d.ts.map +0 -1
- package/dist/components/popover/components/popover-trigger.component.d.ts.map +0 -1
- package/dist/components/popover/index.d.ts.map +0 -1
- package/dist/components/popover/popover.component.d.ts.map +0 -1
- package/dist/components/popover/popover.context.d.ts.map +0 -1
- package/dist/components/popover/popover.stories.d.ts.map +0 -1
- package/dist/components/popover/popover.test.d.ts.map +0 -1
- package/dist/components/popover/popover.types.d.ts.map +0 -1
- package/dist/components/progress/index.d.ts.map +0 -1
- package/dist/components/progress/progress.component.d.ts.map +0 -1
- package/dist/components/progress/progress.stories.d.ts.map +0 -1
- package/dist/components/progress/progress.test.d.ts.map +0 -1
- package/dist/components/progress/progress.types.d.ts.map +0 -1
- package/dist/components/qr-barcode/barcode.d.ts.map +0 -1
- package/dist/components/qr-barcode/index.d.ts.map +0 -1
- package/dist/components/qr-barcode/qr-barcode.component.d.ts.map +0 -1
- package/dist/components/qr-barcode/qr-barcode.stories.d.ts.map +0 -1
- package/dist/components/qr-barcode/qr-barcode.test.d.ts.map +0 -1
- package/dist/components/qr-barcode/qr-barcode.types.d.ts.map +0 -1
- package/dist/components/qr-barcode/qr.d.ts.map +0 -1
- package/dist/components/radio-group/index.d.ts.map +0 -1
- package/dist/components/radio-group/radio-group.component.d.ts.map +0 -1
- package/dist/components/radio-group/radio-group.stories.d.ts.map +0 -1
- package/dist/components/radio-group/radio-group.test.d.ts.map +0 -1
- package/dist/components/radio-group/radio-group.types.d.ts.map +0 -1
- package/dist/components/segmented/components/SegmentedIndicator.d.ts.map +0 -1
- package/dist/components/segmented/components/SegmentedOption.d.ts.map +0 -1
- package/dist/components/segmented/constants/animation-config.d.ts.map +0 -1
- package/dist/components/segmented/constants/base-styles.d.ts.map +0 -1
- package/dist/components/segmented/constants/size-variants.d.ts.map +0 -1
- package/dist/components/segmented/helpers/createItemClickHandler.d.ts.map +0 -1
- package/dist/components/segmented/helpers/getAccumulatedSizeStyles.d.ts.map +0 -1
- package/dist/components/segmented/helpers/getContainerStyles.d.ts.map +0 -1
- package/dist/components/segmented/helpers/getCurrentValue.d.ts.map +0 -1
- package/dist/components/segmented/helpers/getItemStyles.d.ts.map +0 -1
- package/dist/components/segmented/helpers/normalizeOptions.d.ts.map +0 -1
- package/dist/components/segmented/hooks/useActiveIndex.d.ts.map +0 -1
- package/dist/components/segmented/hooks/useIndicatorStyle.d.ts.map +0 -1
- package/dist/components/segmented/index.d.ts.map +0 -1
- package/dist/components/segmented/segmented.component.d.ts.map +0 -1
- package/dist/components/segmented/segmented.stories.d.ts.map +0 -1
- package/dist/components/segmented/segmented.test.d.ts.map +0 -1
- package/dist/components/segmented/segmented.types.d.ts.map +0 -1
- package/dist/components/select/hooks/useSelectSearch.d.ts.map +0 -1
- package/dist/components/select/hooks/useSelectValue.d.ts.map +0 -1
- package/dist/components/select/hooks/useSelectWidth.d.ts.map +0 -1
- package/dist/components/select/index.d.ts.map +0 -1
- package/dist/components/select/select.component.d.ts.map +0 -1
- package/dist/components/select/select.content.d.ts.map +0 -1
- package/dist/components/select/select.empty-state.d.ts.map +0 -1
- package/dist/components/select/select.item.d.ts.map +0 -1
- package/dist/components/select/select.search-input.d.ts.map +0 -1
- package/dist/components/select/select.stories.d.ts.map +0 -1
- package/dist/components/select/select.test.d.ts.map +0 -1
- package/dist/components/select/select.trigger.d.ts.map +0 -1
- package/dist/components/select/select.types.d.ts.map +0 -1
- package/dist/components/skeleton/index.d.ts.map +0 -1
- package/dist/components/skeleton/skeleton.component.d.ts.map +0 -1
- package/dist/components/skeleton/skeleton.stories.d.ts.map +0 -1
- package/dist/components/skeleton/skeleton.test.d.ts.map +0 -1
- package/dist/components/skeleton/skeleton.types.d.ts.map +0 -1
- package/dist/components/skeleton/variants/avatar.sk.component.d.ts.map +0 -1
- package/dist/components/skeleton/variants/default.sk.component.d.ts.map +0 -1
- package/dist/components/skeleton/variants/image.sk.component.d.ts.map +0 -1
- package/dist/components/skeleton/variants/imagedescription.sk.component.d.ts.map +0 -1
- package/dist/components/skeleton/variants/list.sk.component.d.ts.map +0 -1
- package/dist/components/slider/index.d.ts.map +0 -1
- package/dist/components/slider/slider.component.d.ts.map +0 -1
- package/dist/components/slider/slider.stories.d.ts.map +0 -1
- package/dist/components/slider/slider.test.d.ts.map +0 -1
- package/dist/components/slider/slider.types.d.ts.map +0 -1
- package/dist/components/spinner/index.d.ts.map +0 -1
- package/dist/components/spinner/spinner.component.d.ts.map +0 -1
- package/dist/components/spinner/spinner.stories.d.ts.map +0 -1
- package/dist/components/spinner/spinner.test.d.ts.map +0 -1
- package/dist/components/spinner/spinner.types.d.ts.map +0 -1
- package/dist/components/steps/index.d.ts.map +0 -1
- package/dist/components/steps/step.button.d.ts.map +0 -1
- package/dist/components/steps/step.item.d.ts.map +0 -1
- package/dist/components/steps/steps.component.d.ts.map +0 -1
- package/dist/components/steps/steps.functions.d.ts.map +0 -1
- package/dist/components/steps/steps.list.d.ts.map +0 -1
- package/dist/components/steps/steps.stories.d.ts.map +0 -1
- package/dist/components/steps/steps.test.d.ts.map +0 -1
- package/dist/components/steps/steps.types.d.ts.map +0 -1
- package/dist/components/switch/constants/base-styles.d.ts.map +0 -1
- package/dist/components/switch/constants/size-variants.d.ts.map +0 -1
- package/dist/components/switch/constants/type-variants.d.ts.map +0 -1
- package/dist/components/switch/helpers/getChildrenStyles.d.ts.map +0 -1
- package/dist/components/switch/helpers/getLabelHelpers.d.ts.map +0 -1
- package/dist/components/switch/helpers/getSwitchRootStyles.d.ts.map +0 -1
- package/dist/components/switch/helpers/getThumbConfig.d.ts.map +0 -1
- package/dist/components/switch/index.d.ts.map +0 -1
- package/dist/components/switch/switch.component.d.ts.map +0 -1
- package/dist/components/switch/switch.stories.d.ts.map +0 -1
- package/dist/components/switch/switch.test.d.ts.map +0 -1
- package/dist/components/switch/switch.types.d.ts.map +0 -1
- package/dist/components/tabs/index.d.ts.map +0 -1
- package/dist/components/tabs/tabs.component.d.ts.map +0 -1
- package/dist/components/tabs/tabs.stories.d.ts.map +0 -1
- package/dist/components/tabs/tabs.styles.d.ts.map +0 -1
- package/dist/components/tabs/tabs.test.d.ts.map +0 -1
- package/dist/components/tabs/tabs.types.d.ts.map +0 -1
- package/dist/components/tabs/tabs.utils.d.ts.map +0 -1
- package/dist/components/tabs/tabsContent.d.ts.map +0 -1
- package/dist/components/tabs/tabsList.d.ts.map +0 -1
- package/dist/components/tag/index.d.ts.map +0 -1
- package/dist/components/tag/tag.component.d.ts.map +0 -1
- package/dist/components/tag/tag.stories.d.ts.map +0 -1
- package/dist/components/tag/tag.test.d.ts.map +0 -1
- package/dist/components/tag/tag.types.d.ts.map +0 -1
- package/dist/components/textArea/index.d.ts.map +0 -1
- package/dist/components/textArea/text-area.stories.d.ts.map +0 -1
- package/dist/components/textArea/text.area.component.d.ts.map +0 -1
- package/dist/components/textArea/text.area.constants.d.ts.map +0 -1
- package/dist/components/textArea/text.area.control.d.ts.map +0 -1
- package/dist/components/textArea/text.area.field.d.ts.map +0 -1
- package/dist/components/textArea/text.area.footer.d.ts.map +0 -1
- package/dist/components/textArea/text.area.helpers.d.ts.map +0 -1
- package/dist/components/textArea/types.d.ts.map +0 -1
- package/dist/components/toggle/constants/variants.d.ts.map +0 -1
- package/dist/components/toggle/index.d.ts.map +0 -1
- package/dist/components/toggle/toggle.component.d.ts.map +0 -1
- package/dist/components/toggle/toggle.stories.d.ts.map +0 -1
- package/dist/components/toggle/toggle.test.d.ts.map +0 -1
- package/dist/components/toggle-group/index.d.ts.map +0 -1
- package/dist/components/toggle-group/toggle-group-context.d.ts.map +0 -1
- package/dist/components/toggle-group/toggle-group-item.component.d.ts.map +0 -1
- package/dist/components/toggle-group/toggle-group.component.d.ts.map +0 -1
- package/dist/components/toggle-group/toggle-group.stories.d.ts.map +0 -1
- package/dist/components/toggle-group/toggle-group.test.d.ts.map +0 -1
- package/dist/components/tooltip/index.d.ts.map +0 -1
- package/dist/components/tooltip/tooltip.component.d.ts.map +0 -1
- package/dist/components/tooltip/tooltip.stories.d.ts.map +0 -1
- package/dist/components/tooltip/tooltip.test.d.ts.map +0 -1
- package/dist/components/tooltip/tooltip.types.d.ts.map +0 -1
- package/dist/components/typography/index.d.ts.map +0 -1
- package/dist/components/typography/typography.component.d.ts.map +0 -1
- package/dist/components/typography/typography.constants.d.ts.map +0 -1
- package/dist/components/typography/typography.text.d.ts.map +0 -1
- package/dist/components/typography/typography.title.d.ts.map +0 -1
- package/dist/components/typography/typography.types.d.ts.map +0 -1
- package/dist/components/typography/utils/index.d.ts.map +0 -1
- package/dist/components/utils/chunks.d.ts.map +0 -1
- package/dist/components/utils/generate-colors.d.ts.map +0 -1
- package/dist/components/utils/index.d.ts.map +0 -1
- package/dist/constants/alert/index.d.ts.map +0 -1
- package/dist/constants/charts/doughnut.d.ts.map +0 -1
- package/dist/constants/charts/index.d.ts.map +0 -1
- package/dist/constants/charts/vertical-horizontal.d.ts.map +0 -1
- package/dist/constants/common/index.d.ts.map +0 -1
- package/dist/constants/langs/index.d.ts.map +0 -1
- package/dist/constants/list/index.d.ts.map +0 -1
- package/dist/constants/list/sizes.d.ts.map +0 -1
- package/dist/constants/notification/index.d.ts.map +0 -1
- package/dist/constants/pagination/index.d.ts.map +0 -1
- package/dist/constants/pagination/sizes.d.ts.map +0 -1
- package/dist/constants/progress/index.d.ts.map +0 -1
- package/dist/constants/slider/index.d.ts.map +0 -1
- package/dist/constants/steps/index.d.ts.map +0 -1
- package/dist/constants/steps/sizes.d.ts.map +0 -1
- package/dist/constants/tag/index.d.ts.map +0 -1
- package/dist/constants/transitions/command-palette.transition.d.ts.map +0 -1
- package/dist/constants/transitions/dropdown.transition.d.ts.map +0 -1
- package/dist/constants/transitions/flyout-from-bottom.transition.d.ts.map +0 -1
- package/dist/constants/transitions/flyout-from-top.transition.d.ts.map +0 -1
- package/dist/constants/transitions/index.d.ts.map +0 -1
- package/dist/constants/transitions/modal-overlay.transition.d.ts.map +0 -1
- package/dist/constants/transitions/modal.transition.d.ts.map +0 -1
- package/dist/constants/transitions/notification.transition.d.ts.map +0 -1
- package/dist/constants/transitions/position-drawer.transition.d.ts.map +0 -1
- package/dist/constants/transitions/select-transition.d.ts.map +0 -1
- package/dist/constants/transitions/simple.transition.d.ts.map +0 -1
- package/dist/constants/transitions/slide-over.transition.d.ts.map +0 -1
- package/dist/constants/transitions/slide-overlay.transition.d.ts.map +0 -1
- package/dist/constants/transitions/spin-in.transition.d.ts.map +0 -1
- package/dist/constants/typography/title/index.d.ts.map +0 -1
- package/dist/constants/version-number.d.ts.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/use-controlled-state.d.ts.map +0 -1
- package/dist/hooks/useBoolean/index.d.ts.map +0 -1
- package/dist/hooks/useBreakpoint/index.d.ts.map +0 -1
- package/dist/hooks/useDarkMode/index.d.ts.map +0 -1
- package/dist/hooks/useItemsId.d.ts.map +0 -1
- package/dist/hooks/useLang/index.d.ts.map +0 -1
- package/dist/hooks/useWindowLoading/index.d.ts.map +0 -1
- package/dist/index-B2-I-g4_.js +0 -18
- package/dist/index-CFlnP8Em.cjs +0 -1
- package/dist/index-DGDeDoym.cjs +0 -17
- package/dist/index-q_fyr_Rn.js +0 -156
- package/dist/interfaces/accordion/index.d.ts.map +0 -1
- package/dist/interfaces/bullets-navigation/index.d.ts.map +0 -1
- package/dist/interfaces/button/index.d.ts.map +0 -1
- package/dist/interfaces/card-product/index.d.ts.map +0 -1
- package/dist/interfaces/card-status/index.d.ts.map +0 -1
- package/dist/interfaces/charts/index.d.ts.map +0 -1
- package/dist/interfaces/checkbox/index.d.ts.map +0 -1
- package/dist/interfaces/common/index.d.ts.map +0 -1
- package/dist/interfaces/custom/config-card.d.ts.map +0 -1
- package/dist/interfaces/custom/customer-name-card.d.ts.map +0 -1
- package/dist/interfaces/custom/index.d.ts.map +0 -1
- package/dist/interfaces/custom/instructions-carousel.d.ts.map +0 -1
- package/dist/interfaces/custom/switch-option-list.d.ts.map +0 -1
- package/dist/interfaces/custom/switch-option.d.ts.map +0 -1
- package/dist/interfaces/custom/tooltip.d.ts.map +0 -1
- package/dist/interfaces/date-range-picker/index.d.ts.map +0 -1
- package/dist/interfaces/divider/index.d.ts.map +0 -1
- package/dist/interfaces/drawer/index.d.ts.map +0 -1
- package/dist/interfaces/flex/index.d.ts.map +0 -1
- package/dist/interfaces/footer/index.d.ts.map +0 -1
- package/dist/interfaces/grid/index.d.ts.map +0 -1
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/input/index.d.ts.map +0 -1
- package/dist/interfaces/input-number/index.d.ts.map +0 -1
- package/dist/interfaces/input-text/index.d.ts.map +0 -1
- package/dist/interfaces/layout/container/index.d.ts.map +0 -1
- package/dist/interfaces/layout/footer/index.d.ts.map +0 -1
- package/dist/interfaces/layout/index.d.ts.map +0 -1
- package/dist/interfaces/layout/navbar/index.d.ts.map +0 -1
- package/dist/interfaces/layout/sidebar/index.d.ts.map +0 -1
- package/dist/interfaces/loadings/idle-coco.d.ts.map +0 -1
- package/dist/interfaces/loadings/index.d.ts.map +0 -1
- package/dist/interfaces/menu/index.d.ts.map +0 -1
- package/dist/interfaces/modal/index.d.ts.map +0 -1
- package/dist/interfaces/navbar/index.d.ts.map +0 -1
- package/dist/interfaces/qr-code/index.d.ts.map +0 -1
- package/dist/interfaces/radio/index.d.ts.map +0 -1
- package/dist/interfaces/select/index.d.ts.map +0 -1
- package/dist/interfaces/sidebar/index.d.ts.map +0 -1
- package/dist/interfaces/steps/index.d.ts.map +0 -1
- package/dist/interfaces/switch/index.d.ts.map +0 -1
- package/dist/interfaces/table/index.d.ts.map +0 -1
- package/dist/interfaces/tabs/index.d.ts.map +0 -1
- package/dist/interfaces/text-area/index.d.ts.map +0 -1
- package/dist/interfaces/toast/index.d.ts.map +0 -1
- package/dist/interfaces/tooltip/index.d.ts.map +0 -1
- package/dist/interfaces/typography/title/index.d.ts.map +0 -1
- package/dist/interfaces/utils/index.d.ts.map +0 -1
- package/dist/lang/es_MX/index.d.ts.map +0 -1
- package/dist/lang/i18n.d.ts.map +0 -1
- package/dist/lang/layout/index.d.ts.map +0 -1
- package/dist/lang/layout/login/es_MX/index.d.ts.map +0 -1
- package/dist/lang/layout/login/index.d.ts.map +0 -1
- package/dist/layout/content.component.d.ts.map +0 -1
- package/dist/layout/footer.component.d.ts.map +0 -1
- package/dist/layout/header/header.component.d.ts.map +0 -1
- package/dist/layout/header/header.types.d.ts.map +0 -1
- package/dist/layout/header/left-side.component.d.ts.map +0 -1
- package/dist/layout/header/right-side.component.d.ts.map +0 -1
- package/dist/layout/header/store.component.d.ts.map +0 -1
- package/dist/layout/header/user.component.d.ts.map +0 -1
- package/dist/layout/index.d.ts.map +0 -1
- package/dist/layout/root-layout.component.d.ts.map +0 -1
- package/dist/layout/root-layout.stories.d.ts.map +0 -1
- package/dist/layout/root-layout.test.d.ts.map +0 -1
- package/dist/layout/root-layout.types.d.ts.map +0 -1
- package/dist/proxy-2cglvzJh.cjs +0 -31
- package/dist/proxy-uRb7Bek8.js +0 -5497
- package/dist/types/common/index.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/use-controlled-state-CNjWcDSI.js +0 -19
- package/dist/use-controlled-state-Ci1ztv5B.cjs +0 -1
- package/dist/useTranslation-2Dz5dMlm.cjs +0 -1
- package/dist/useTranslation-B0fSob9I.js +0 -189
- package/dist/utils/buildId.d.ts.map +0 -1
- package/dist/utils/classNames.d.ts.map +0 -1
- package/dist/utils/context/get-context.d.ts.map +0 -1
- package/dist/utils/context/index.d.ts.map +0 -1
- package/dist/utils/context/types.d.ts.map +0 -1
- package/dist/utils/generateClasses/index.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { j as n, m as
|
|
2
|
-
import { c as p, a as
|
|
3
|
-
import { P as
|
|
4
|
-
import {
|
|
5
|
-
import * as
|
|
6
|
-
import { useEffect as D, cloneElement as
|
|
7
|
-
import { S as
|
|
8
|
-
import { S as
|
|
9
|
-
import { u as
|
|
10
|
-
import {
|
|
11
|
-
const
|
|
1
|
+
import { j as n, m as T } from "./proxy-C0b_a64j.js";
|
|
2
|
+
import { c as p, a as Rr } from "./classNames-B-jGgM9Z.js";
|
|
3
|
+
import { P as k, u as _, c as R, a as Q, b as B, d as Re, e as J, R as ot, I as st, f as ce, g as de, h as Te, i as ke, j as Tr, k as at, l as kr, A as Ir, m as _r, n as Pr, o as it, D as Ar, C as Mr, p as Fr, q as Dr, r as Lr, s as Or, T as Vr, t as Br, F as W, v as $r, w as Ie, S as Gr, x as zr, y as Hr, z as Ur, B as Kr, N as qr, Q as Yr, E as Wr, G as Xr, V as Zr, H as Qr, J as Jr, K as en, L as tn, M as rn, O as nn, U as on, W as sn, X as an } from "./carousel.component-C1gCC7qn.js";
|
|
4
|
+
import { Y as Oi, Z as Vi, _ as Bi, $ as $i, a0 as Gi, a1 as zi, a2 as Hi, a3 as Ui } from "./carousel.component-C1gCC7qn.js";
|
|
5
|
+
import * as u from "react";
|
|
6
|
+
import { useEffect as D, cloneElement as ln, useState as F, useMemo as ue, useRef as _e, useCallback as cn, useId as dn } from "react";
|
|
7
|
+
import { S as Pe, a as Xe, b as un } from "./indeterminate-CSEeEKiJ.js";
|
|
8
|
+
import { S as lt, a as ct, b as dt, c as ut, d as mn, e as fn, f as gn, g as xn, h as hn, i as pn, j as mt, k as bn, l as ft } from "./skeleton-avatar-Cp8o0kUa.js";
|
|
9
|
+
import { u as vn } from "./use-controlled-state-sYRbMlAp.js";
|
|
10
|
+
import { g as O } from "./index-Uukw7yyL.js";
|
|
11
|
+
const yn = {
|
|
12
12
|
sm: "size-8",
|
|
13
13
|
md: "size-12",
|
|
14
14
|
lg: "size-16",
|
|
15
15
|
xl: "size-20"
|
|
16
|
-
},
|
|
16
|
+
}, di = ({
|
|
17
17
|
size: e = "sm",
|
|
18
18
|
text: t,
|
|
19
19
|
className: r,
|
|
@@ -23,7 +23,7 @@ const Dn = {
|
|
|
23
23
|
"output",
|
|
24
24
|
{
|
|
25
25
|
className: p(
|
|
26
|
-
|
|
26
|
+
yn[e],
|
|
27
27
|
"animate-spin rounded-full border-4",
|
|
28
28
|
o,
|
|
29
29
|
r
|
|
@@ -33,101 +33,100 @@ const Dn = {
|
|
|
33
33
|
),
|
|
34
34
|
!!t && /* @__PURE__ */ n.jsx("span", { className: "flex justify-center", children: t })
|
|
35
35
|
] }) });
|
|
36
|
-
var
|
|
37
|
-
|
|
36
|
+
var Cn = "Label", gt = u.forwardRef((e, t) => /* @__PURE__ */ n.jsx(
|
|
37
|
+
k.label,
|
|
38
38
|
{
|
|
39
39
|
...e,
|
|
40
40
|
ref: t,
|
|
41
41
|
onMouseDown: (r) => {
|
|
42
|
-
|
|
43
|
-
r.target.closest("button, input, select, textarea") || ((s = e.onMouseDown) == null || s.call(e, r), !r.defaultPrevented && r.detail > 1 && r.preventDefault());
|
|
42
|
+
r.target.closest("button, input, select, textarea") || (e.onMouseDown?.(r), !r.defaultPrevented && r.detail > 1 && r.preventDefault());
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
));
|
|
47
|
-
|
|
48
|
-
var [
|
|
46
|
+
gt.displayName = Cn;
|
|
47
|
+
var [Ae] = B("Form"), Me = "Form", [jn, ee] = Ae(Me), [wn, xt] = Ae(Me), ht = u.forwardRef(
|
|
49
48
|
(e, t) => {
|
|
50
49
|
const { __scopeForm: r, onClearServerErrors: o = () => {
|
|
51
|
-
}, ...s } = e, i =
|
|
50
|
+
}, ...s } = e, i = u.useRef(null), a = _(t, i), [l, c] = u.useState({}), d = u.useCallback(
|
|
52
51
|
(S) => l[S],
|
|
53
52
|
[l]
|
|
54
|
-
), f =
|
|
55
|
-
(S,
|
|
56
|
-
...
|
|
57
|
-
[S]: { ...
|
|
53
|
+
), f = u.useCallback(
|
|
54
|
+
(S, E) => c((N) => ({
|
|
55
|
+
...N,
|
|
56
|
+
[S]: { ...N[S] ?? {}, ...E }
|
|
58
57
|
})),
|
|
59
58
|
[]
|
|
60
|
-
),
|
|
61
|
-
c((
|
|
62
|
-
}, []), [
|
|
63
|
-
(S) =>
|
|
64
|
-
[
|
|
65
|
-
),
|
|
66
|
-
|
|
67
|
-
...
|
|
68
|
-
[S]: [...
|
|
59
|
+
), m = u.useCallback((S) => {
|
|
60
|
+
c((E) => ({ ...E, [S]: void 0 })), y((E) => ({ ...E, [S]: {} }));
|
|
61
|
+
}, []), [g, x] = u.useState({}), h = u.useCallback(
|
|
62
|
+
(S) => g[S] ?? [],
|
|
63
|
+
[g]
|
|
64
|
+
), v = u.useCallback((S, E) => {
|
|
65
|
+
x((N) => ({
|
|
66
|
+
...N,
|
|
67
|
+
[S]: [...N[S] ?? [], E]
|
|
69
68
|
}));
|
|
70
|
-
}, []),
|
|
71
|
-
|
|
72
|
-
...
|
|
73
|
-
[S]: (
|
|
74
|
-
(
|
|
69
|
+
}, []), b = u.useCallback((S, E) => {
|
|
70
|
+
x((N) => ({
|
|
71
|
+
...N,
|
|
72
|
+
[S]: (N[S] ?? []).filter(
|
|
73
|
+
(A) => A.id !== E
|
|
75
74
|
)
|
|
76
75
|
}));
|
|
77
|
-
}, []), [C, y] =
|
|
76
|
+
}, []), [C, y] = u.useState({}), j = u.useCallback(
|
|
78
77
|
(S) => C[S] ?? {},
|
|
79
78
|
[C]
|
|
80
|
-
),
|
|
81
|
-
y((
|
|
82
|
-
...
|
|
83
|
-
[S]: { ...
|
|
79
|
+
), w = u.useCallback((S, E) => {
|
|
80
|
+
y((N) => ({
|
|
81
|
+
...N,
|
|
82
|
+
[S]: { ...N[S] ?? {}, ...E }
|
|
84
83
|
}));
|
|
85
|
-
}, []), [
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
return { ...
|
|
84
|
+
}, []), [I, P] = u.useState({}), M = u.useCallback((S, E) => {
|
|
85
|
+
P((N) => {
|
|
86
|
+
const A = new Set(N[S]).add(E);
|
|
87
|
+
return { ...N, [S]: A };
|
|
89
88
|
});
|
|
90
|
-
}, []),
|
|
91
|
-
|
|
92
|
-
const
|
|
93
|
-
return
|
|
89
|
+
}, []), G = u.useCallback((S, E) => {
|
|
90
|
+
P((N) => {
|
|
91
|
+
const A = new Set(N[S]);
|
|
92
|
+
return A.delete(E), { ...N, [S]: A };
|
|
94
93
|
});
|
|
95
|
-
}, []), z =
|
|
96
|
-
(S) => Array.from(
|
|
97
|
-
[
|
|
94
|
+
}, []), z = u.useCallback(
|
|
95
|
+
(S) => Array.from(I[S] ?? []).join(" ") || void 0,
|
|
96
|
+
[I]
|
|
98
97
|
);
|
|
99
98
|
return /* @__PURE__ */ n.jsx(
|
|
100
|
-
|
|
99
|
+
jn,
|
|
101
100
|
{
|
|
102
101
|
scope: r,
|
|
103
|
-
getFieldValidity:
|
|
102
|
+
getFieldValidity: d,
|
|
104
103
|
onFieldValidityChange: f,
|
|
105
|
-
getFieldCustomMatcherEntries:
|
|
106
|
-
onFieldCustomMatcherEntryAdd:
|
|
107
|
-
onFieldCustomMatcherEntryRemove:
|
|
108
|
-
getFieldCustomErrors:
|
|
109
|
-
onFieldCustomErrorsChange:
|
|
110
|
-
onFieldValiditionClear:
|
|
104
|
+
getFieldCustomMatcherEntries: h,
|
|
105
|
+
onFieldCustomMatcherEntryAdd: v,
|
|
106
|
+
onFieldCustomMatcherEntryRemove: b,
|
|
107
|
+
getFieldCustomErrors: j,
|
|
108
|
+
onFieldCustomErrorsChange: w,
|
|
109
|
+
onFieldValiditionClear: m,
|
|
111
110
|
children: /* @__PURE__ */ n.jsx(
|
|
112
|
-
|
|
111
|
+
wn,
|
|
113
112
|
{
|
|
114
113
|
scope: r,
|
|
115
114
|
onFieldMessageIdAdd: M,
|
|
116
|
-
onFieldMessageIdRemove:
|
|
115
|
+
onFieldMessageIdRemove: G,
|
|
117
116
|
getFieldDescription: z,
|
|
118
117
|
children: /* @__PURE__ */ n.jsx(
|
|
119
|
-
|
|
118
|
+
k.form,
|
|
120
119
|
{
|
|
121
120
|
...s,
|
|
122
121
|
ref: a,
|
|
123
|
-
onInvalid:
|
|
124
|
-
const
|
|
125
|
-
|
|
122
|
+
onInvalid: R(e.onInvalid, (S) => {
|
|
123
|
+
const E = Ct(S.currentTarget);
|
|
124
|
+
E === S.target && E.focus(), S.preventDefault();
|
|
126
125
|
}),
|
|
127
|
-
onSubmit:
|
|
126
|
+
onSubmit: R(e.onSubmit, o, {
|
|
128
127
|
checkForDefaultPrevented: !1
|
|
129
128
|
}),
|
|
130
|
-
onReset:
|
|
129
|
+
onReset: R(e.onReset, o)
|
|
131
130
|
}
|
|
132
131
|
)
|
|
133
132
|
}
|
|
@@ -136,30 +135,30 @@ var [Le] = L("Form"), Ve = "Form", [Ln, re] = Le(Ve), [Vn, jt] = Le(Ve), St = d.
|
|
|
136
135
|
);
|
|
137
136
|
}
|
|
138
137
|
);
|
|
139
|
-
|
|
140
|
-
var
|
|
138
|
+
ht.displayName = Me;
|
|
139
|
+
var Fe = "FormField", [Sn, De] = Ae(Fe), pt = u.forwardRef(
|
|
141
140
|
(e, t) => {
|
|
142
|
-
const { __scopeForm: r, name: o, serverInvalid: s = !1, ...i } = e, l =
|
|
143
|
-
return /* @__PURE__ */ n.jsx(
|
|
144
|
-
|
|
141
|
+
const { __scopeForm: r, name: o, serverInvalid: s = !1, ...i } = e, l = ee(Fe, r).getFieldValidity(o), c = Q();
|
|
142
|
+
return /* @__PURE__ */ n.jsx(Sn, { scope: r, id: c, name: o, serverInvalid: s, children: /* @__PURE__ */ n.jsx(
|
|
143
|
+
k.div,
|
|
145
144
|
{
|
|
146
|
-
"data-valid":
|
|
147
|
-
"data-invalid":
|
|
145
|
+
"data-valid": Oe(l, s),
|
|
146
|
+
"data-invalid": Ve(l, s),
|
|
148
147
|
...i,
|
|
149
148
|
ref: t
|
|
150
149
|
}
|
|
151
150
|
) });
|
|
152
151
|
}
|
|
153
152
|
);
|
|
154
|
-
|
|
155
|
-
var
|
|
153
|
+
pt.displayName = Fe;
|
|
154
|
+
var Ce = "FormLabel", bt = u.forwardRef(
|
|
156
155
|
(e, t) => {
|
|
157
|
-
const { __scopeForm: r, ...o } = e, s =
|
|
156
|
+
const { __scopeForm: r, ...o } = e, s = ee(Ce, r), i = De(Ce, r), a = o.htmlFor || i.id, l = s.getFieldValidity(i.name);
|
|
158
157
|
return /* @__PURE__ */ n.jsx(
|
|
159
|
-
|
|
158
|
+
gt,
|
|
160
159
|
{
|
|
161
|
-
"data-valid":
|
|
162
|
-
"data-invalid":
|
|
160
|
+
"data-valid": Oe(l, i.serverInvalid),
|
|
161
|
+
"data-invalid": Ve(l, i.serverInvalid),
|
|
163
162
|
...o,
|
|
164
163
|
ref: t,
|
|
165
164
|
htmlFor: a
|
|
@@ -167,84 +166,83 @@ var Ee = "FormLabel", Rt = d.forwardRef(
|
|
|
167
166
|
);
|
|
168
167
|
}
|
|
169
168
|
);
|
|
170
|
-
|
|
171
|
-
var
|
|
169
|
+
bt.displayName = Ce;
|
|
170
|
+
var ie = "FormControl", vt = u.forwardRef(
|
|
172
171
|
(e, t) => {
|
|
173
|
-
const { __scopeForm: r, ...o } = e, s =
|
|
172
|
+
const { __scopeForm: r, ...o } = e, s = ee(ie, r), i = De(ie, r), a = xt(ie, r), l = u.useRef(null), c = _(t, l), d = o.name || i.name, f = o.id || i.id, m = s.getFieldCustomMatcherEntries(d), { onFieldValidityChange: g, onFieldCustomErrorsChange: x, onFieldValiditionClear: h } = s, v = u.useCallback(
|
|
174
173
|
async (y) => {
|
|
175
|
-
if (
|
|
176
|
-
const
|
|
177
|
-
|
|
174
|
+
if (jt(y.validity)) {
|
|
175
|
+
const N = be(y.validity);
|
|
176
|
+
g(d, N);
|
|
178
177
|
return;
|
|
179
178
|
}
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
|
|
179
|
+
const j = y.form ? new FormData(y.form) : new FormData(), w = [y.value, j], I = [], P = [];
|
|
180
|
+
m.forEach((N) => {
|
|
181
|
+
An(N, w) ? P.push(N) : Mn(N) && I.push(N);
|
|
183
182
|
});
|
|
184
|
-
const M =
|
|
185
|
-
y.setCustomValidity(S ?
|
|
186
|
-
const
|
|
187
|
-
if (
|
|
188
|
-
const
|
|
189
|
-
({ id:
|
|
190
|
-
),
|
|
191
|
-
y.setCustomValidity(
|
|
192
|
-
const V =
|
|
193
|
-
|
|
183
|
+
const M = I.map(({ id: N, match: A }) => [N, A(...w)]), G = Object.fromEntries(M), z = Object.values(G).some(Boolean), S = z;
|
|
184
|
+
y.setCustomValidity(S ? X : "");
|
|
185
|
+
const E = be(y.validity);
|
|
186
|
+
if (g(d, E), x(d, G), !z && P.length > 0) {
|
|
187
|
+
const N = P.map(
|
|
188
|
+
({ id: L, match: oe }) => oe(...w).then((Er) => [L, Er])
|
|
189
|
+
), A = await Promise.all(N), K = Object.fromEntries(A), $ = Object.values(K).some(Boolean);
|
|
190
|
+
y.setCustomValidity($ ? X : "");
|
|
191
|
+
const V = be(y.validity);
|
|
192
|
+
g(d, V), x(d, K);
|
|
194
193
|
}
|
|
195
194
|
},
|
|
196
|
-
[
|
|
195
|
+
[m, d, x, g]
|
|
197
196
|
);
|
|
198
|
-
|
|
197
|
+
u.useEffect(() => {
|
|
199
198
|
const y = l.current;
|
|
200
199
|
if (y) {
|
|
201
|
-
const
|
|
202
|
-
return y.addEventListener("change",
|
|
200
|
+
const j = () => v(y);
|
|
201
|
+
return y.addEventListener("change", j), () => y.removeEventListener("change", j);
|
|
203
202
|
}
|
|
204
|
-
}, [
|
|
205
|
-
const
|
|
203
|
+
}, [v]);
|
|
204
|
+
const b = u.useCallback(() => {
|
|
206
205
|
const y = l.current;
|
|
207
|
-
y && (y.setCustomValidity(""),
|
|
208
|
-
}, [
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
const y = (w = l.current) == null ? void 0 : w.form;
|
|
206
|
+
y && (y.setCustomValidity(""), h(d));
|
|
207
|
+
}, [d, h]);
|
|
208
|
+
u.useEffect(() => {
|
|
209
|
+
const y = l.current?.form;
|
|
212
210
|
if (y)
|
|
213
|
-
return y.addEventListener("reset",
|
|
214
|
-
}, [
|
|
215
|
-
const y = l.current,
|
|
216
|
-
if (
|
|
217
|
-
const
|
|
218
|
-
|
|
211
|
+
return y.addEventListener("reset", b), () => y.removeEventListener("reset", b);
|
|
212
|
+
}, [b]), u.useEffect(() => {
|
|
213
|
+
const y = l.current, j = y?.closest("form");
|
|
214
|
+
if (j && i.serverInvalid) {
|
|
215
|
+
const w = Ct(j);
|
|
216
|
+
w === y && w.focus();
|
|
219
217
|
}
|
|
220
218
|
}, [i.serverInvalid]);
|
|
221
|
-
const C = s.getFieldValidity(
|
|
219
|
+
const C = s.getFieldValidity(d);
|
|
222
220
|
return /* @__PURE__ */ n.jsx(
|
|
223
|
-
|
|
221
|
+
k.input,
|
|
224
222
|
{
|
|
225
|
-
"data-valid":
|
|
226
|
-
"data-invalid":
|
|
223
|
+
"data-valid": Oe(C, i.serverInvalid),
|
|
224
|
+
"data-invalid": Ve(C, i.serverInvalid),
|
|
227
225
|
"aria-invalid": i.serverInvalid ? !0 : void 0,
|
|
228
|
-
"aria-describedby": a.getFieldDescription(
|
|
226
|
+
"aria-describedby": a.getFieldDescription(d),
|
|
229
227
|
title: "",
|
|
230
228
|
...o,
|
|
231
229
|
ref: c,
|
|
232
230
|
id: f,
|
|
233
|
-
name:
|
|
234
|
-
onInvalid:
|
|
235
|
-
const
|
|
236
|
-
|
|
231
|
+
name: d,
|
|
232
|
+
onInvalid: R(e.onInvalid, (y) => {
|
|
233
|
+
const j = y.currentTarget;
|
|
234
|
+
v(j);
|
|
237
235
|
}),
|
|
238
|
-
onChange:
|
|
239
|
-
|
|
236
|
+
onChange: R(e.onChange, (y) => {
|
|
237
|
+
b();
|
|
240
238
|
})
|
|
241
239
|
}
|
|
242
240
|
);
|
|
243
241
|
}
|
|
244
242
|
);
|
|
245
|
-
|
|
246
|
-
var
|
|
247
|
-
badInput:
|
|
243
|
+
vt.displayName = ie;
|
|
244
|
+
var X = "This value is not valid", Nn = {
|
|
245
|
+
badInput: X,
|
|
248
246
|
patternMismatch: "This value does not match the required pattern",
|
|
249
247
|
rangeOverflow: "This value is too large",
|
|
250
248
|
rangeUnderflow: "This value is too small",
|
|
@@ -254,66 +252,66 @@ var J = "This value is not valid", Gn = {
|
|
|
254
252
|
typeMismatch: "This value does not match the required type",
|
|
255
253
|
valid: void 0,
|
|
256
254
|
valueMissing: "This value is missing"
|
|
257
|
-
},
|
|
255
|
+
}, te = "FormMessage", yt = u.forwardRef(
|
|
258
256
|
(e, t) => {
|
|
259
|
-
const { match: r, name: o, ...s } = e, i =
|
|
260
|
-
return r === void 0 ? /* @__PURE__ */ n.jsx(
|
|
257
|
+
const { match: r, name: o, ...s } = e, i = De(te, e.__scopeForm), a = o ?? i.name;
|
|
258
|
+
return r === void 0 ? /* @__PURE__ */ n.jsx(Le, { ...s, ref: t, name: a, children: e.children || X }) : typeof r == "function" ? /* @__PURE__ */ n.jsx(Rn, { match: r, ...s, ref: t, name: a }) : /* @__PURE__ */ n.jsx(En, { match: r, ...s, ref: t, name: a });
|
|
261
259
|
}
|
|
262
260
|
);
|
|
263
|
-
|
|
264
|
-
var
|
|
261
|
+
yt.displayName = te;
|
|
262
|
+
var En = u.forwardRef(
|
|
265
263
|
(e, t) => {
|
|
266
|
-
const { match: r, forceMatch: o = !1, name: s, children: i, ...a } = e, c =
|
|
267
|
-
return o ||
|
|
264
|
+
const { match: r, forceMatch: o = !1, name: s, children: i, ...a } = e, c = ee(te, a.__scopeForm).getFieldValidity(s);
|
|
265
|
+
return o || c?.[r] ? /* @__PURE__ */ n.jsx(Le, { ref: t, ...a, name: s, children: i ?? Nn[r] }) : null;
|
|
268
266
|
}
|
|
269
|
-
),
|
|
267
|
+
), Rn = u.forwardRef(
|
|
270
268
|
(e, t) => {
|
|
271
|
-
const { match: r, forceMatch: o = !1, name: s, id: i, children: a, ...l } = e, c =
|
|
272
|
-
|
|
273
|
-
const
|
|
274
|
-
return o ||
|
|
269
|
+
const { match: r, forceMatch: o = !1, name: s, id: i, children: a, ...l } = e, c = ee(te, l.__scopeForm), d = u.useRef(null), f = _(t, d), m = Q(), g = i ?? m, x = u.useMemo(() => ({ id: g, match: r }), [g, r]), { onFieldCustomMatcherEntryAdd: h, onFieldCustomMatcherEntryRemove: v } = c;
|
|
270
|
+
u.useEffect(() => (h(s, x), () => v(s, x.id)), [x, s, h, v]);
|
|
271
|
+
const b = c.getFieldValidity(s), y = c.getFieldCustomErrors(s)[g];
|
|
272
|
+
return o || b && !jt(b) && y ? /* @__PURE__ */ n.jsx(Le, { id: g, ref: f, ...l, name: s, children: a ?? X }) : null;
|
|
275
273
|
}
|
|
276
|
-
),
|
|
274
|
+
), Le = u.forwardRef(
|
|
277
275
|
(e, t) => {
|
|
278
|
-
const { __scopeForm: r, id: o, name: s, ...i } = e, a =
|
|
279
|
-
return
|
|
276
|
+
const { __scopeForm: r, id: o, name: s, ...i } = e, a = xt(te, r), l = Q(), c = o ?? l, { onFieldMessageIdAdd: d, onFieldMessageIdRemove: f } = a;
|
|
277
|
+
return u.useEffect(() => (d(s, c), () => f(s, c)), [s, c, d, f]), /* @__PURE__ */ n.jsx(k.span, { id: c, ...i, ref: t });
|
|
280
278
|
}
|
|
281
|
-
),
|
|
279
|
+
), Tn = "FormSubmit", kn = u.forwardRef(
|
|
282
280
|
(e, t) => {
|
|
283
281
|
const { __scopeForm: r, ...o } = e;
|
|
284
|
-
return /* @__PURE__ */ n.jsx(
|
|
282
|
+
return /* @__PURE__ */ n.jsx(k.button, { type: "submit", ...o, ref: t });
|
|
285
283
|
}
|
|
286
284
|
);
|
|
287
|
-
|
|
288
|
-
function
|
|
285
|
+
kn.displayName = Tn;
|
|
286
|
+
function be(e) {
|
|
289
287
|
const t = {};
|
|
290
288
|
for (const r in e)
|
|
291
289
|
t[r] = e[r];
|
|
292
290
|
return t;
|
|
293
291
|
}
|
|
294
|
-
function
|
|
292
|
+
function In(e) {
|
|
295
293
|
return e instanceof HTMLElement;
|
|
296
294
|
}
|
|
297
|
-
function
|
|
295
|
+
function _n(e) {
|
|
298
296
|
return "validity" in e;
|
|
299
297
|
}
|
|
300
|
-
function
|
|
301
|
-
return
|
|
298
|
+
function Pn(e) {
|
|
299
|
+
return _n(e) && (e.validity.valid === !1 || e.getAttribute("aria-invalid") === "true");
|
|
302
300
|
}
|
|
303
|
-
function
|
|
304
|
-
const t = e.elements, [r] = Array.from(t).filter(
|
|
301
|
+
function Ct(e) {
|
|
302
|
+
const t = e.elements, [r] = Array.from(t).filter(In).filter(Pn);
|
|
305
303
|
return r;
|
|
306
304
|
}
|
|
307
|
-
function
|
|
308
|
-
return e.match.constructor.name === "AsyncFunction" ||
|
|
305
|
+
function An(e, t) {
|
|
306
|
+
return e.match.constructor.name === "AsyncFunction" || Fn(e.match, t);
|
|
309
307
|
}
|
|
310
|
-
function
|
|
308
|
+
function Mn(e) {
|
|
311
309
|
return e.match.constructor.name === "Function";
|
|
312
310
|
}
|
|
313
|
-
function
|
|
311
|
+
function Fn(e, t) {
|
|
314
312
|
return e(...t) instanceof Promise;
|
|
315
313
|
}
|
|
316
|
-
function
|
|
314
|
+
function jt(e) {
|
|
317
315
|
let t = !1;
|
|
318
316
|
for (const r in e) {
|
|
319
317
|
const o = r;
|
|
@@ -324,240 +322,34 @@ function _t(e) {
|
|
|
324
322
|
}
|
|
325
323
|
return t;
|
|
326
324
|
}
|
|
327
|
-
function
|
|
328
|
-
if (
|
|
325
|
+
function Oe(e, t) {
|
|
326
|
+
if (e?.valid === !0 && !t) return !0;
|
|
329
327
|
}
|
|
330
|
-
function
|
|
331
|
-
if (
|
|
332
|
-
}
|
|
333
|
-
var Qn = St, Jn = Et, eo = Rt, to = Pt, ro = Tt, he = "Popover", [It] = L(he, [
|
|
334
|
-
fe
|
|
335
|
-
]), oe = fe(), [no, G] = It(he), Nt = (e) => {
|
|
336
|
-
const {
|
|
337
|
-
__scopePopover: t,
|
|
338
|
-
children: r,
|
|
339
|
-
open: o,
|
|
340
|
-
defaultOpen: s,
|
|
341
|
-
onOpenChange: i,
|
|
342
|
-
modal: a = !1
|
|
343
|
-
} = e, l = oe(t), c = d.useRef(null), [u, f] = d.useState(!1), [g, x] = q({
|
|
344
|
-
prop: o,
|
|
345
|
-
defaultProp: s ?? !1,
|
|
346
|
-
onChange: i,
|
|
347
|
-
caller: he
|
|
348
|
-
});
|
|
349
|
-
return /* @__PURE__ */ n.jsx(ct, { ...l, children: /* @__PURE__ */ n.jsx(
|
|
350
|
-
no,
|
|
351
|
-
{
|
|
352
|
-
scope: t,
|
|
353
|
-
contentId: $(),
|
|
354
|
-
triggerRef: c,
|
|
355
|
-
open: g,
|
|
356
|
-
onOpenChange: x,
|
|
357
|
-
onOpenToggle: d.useCallback(() => x((h) => !h), [x]),
|
|
358
|
-
hasCustomAnchor: u,
|
|
359
|
-
onCustomAnchorAdd: d.useCallback(() => f(!0), []),
|
|
360
|
-
onCustomAnchorRemove: d.useCallback(() => f(!1), []),
|
|
361
|
-
modal: a,
|
|
362
|
-
children: r
|
|
363
|
-
}
|
|
364
|
-
) });
|
|
365
|
-
};
|
|
366
|
-
Nt.displayName = he;
|
|
367
|
-
var At = "PopoverAnchor", oo = d.forwardRef(
|
|
368
|
-
(e, t) => {
|
|
369
|
-
const { __scopePopover: r, ...o } = e, s = G(At, r), i = oe(r), { onCustomAnchorAdd: a, onCustomAnchorRemove: l } = s;
|
|
370
|
-
return d.useEffect(() => (a(), () => l()), [a, l]), /* @__PURE__ */ n.jsx(Ie, { ...i, ...o, ref: t });
|
|
371
|
-
}
|
|
372
|
-
);
|
|
373
|
-
oo.displayName = At;
|
|
374
|
-
var Mt = "PopoverTrigger", so = d.forwardRef(
|
|
375
|
-
(e, t) => {
|
|
376
|
-
const { __scopePopover: r, ...o } = e, s = G(Mt, r), i = oe(r), a = I(t, s.triggerRef), l = /* @__PURE__ */ n.jsx(
|
|
377
|
-
T.button,
|
|
378
|
-
{
|
|
379
|
-
type: "button",
|
|
380
|
-
"aria-haspopup": "dialog",
|
|
381
|
-
"aria-expanded": s.open,
|
|
382
|
-
"aria-controls": s.contentId,
|
|
383
|
-
"data-state": Ot(s.open),
|
|
384
|
-
...o,
|
|
385
|
-
ref: a,
|
|
386
|
-
onClick: P(e.onClick, s.onOpenToggle)
|
|
387
|
-
}
|
|
388
|
-
);
|
|
389
|
-
return s.hasCustomAnchor ? l : /* @__PURE__ */ n.jsx(Ie, { asChild: !0, ...i, children: l });
|
|
390
|
-
}
|
|
391
|
-
);
|
|
392
|
-
so.displayName = Mt;
|
|
393
|
-
var ao = "PopoverPortal", [Ii, io] = It(ao, {
|
|
394
|
-
forceMount: void 0
|
|
395
|
-
}), U = "PopoverContent", lo = d.forwardRef(
|
|
396
|
-
(e, t) => {
|
|
397
|
-
const r = io(U, e.__scopePopover), { forceMount: o = r.forceMount, ...s } = e, i = G(U, e.__scopePopover);
|
|
398
|
-
return /* @__PURE__ */ n.jsx(te, { present: o || i.open, children: i.modal ? /* @__PURE__ */ n.jsx(uo, { ...s, ref: t }) : /* @__PURE__ */ n.jsx(fo, { ...s, ref: t }) });
|
|
399
|
-
}
|
|
400
|
-
);
|
|
401
|
-
lo.displayName = U;
|
|
402
|
-
var co = $r("PopoverContent.RemoveScroll"), uo = d.forwardRef(
|
|
403
|
-
(e, t) => {
|
|
404
|
-
const r = G(U, e.__scopePopover), o = d.useRef(null), s = I(t, o), i = d.useRef(!1);
|
|
405
|
-
return d.useEffect(() => {
|
|
406
|
-
const a = o.current;
|
|
407
|
-
if (a) return Hr(a);
|
|
408
|
-
}, []), /* @__PURE__ */ n.jsx(zr, { as: co, allowPinchZoom: !0, children: /* @__PURE__ */ n.jsx(
|
|
409
|
-
Ft,
|
|
410
|
-
{
|
|
411
|
-
...e,
|
|
412
|
-
ref: s,
|
|
413
|
-
trapFocus: r.open,
|
|
414
|
-
disableOutsidePointerEvents: !0,
|
|
415
|
-
onCloseAutoFocus: P(e.onCloseAutoFocus, (a) => {
|
|
416
|
-
var l;
|
|
417
|
-
a.preventDefault(), i.current || (l = r.triggerRef.current) == null || l.focus();
|
|
418
|
-
}),
|
|
419
|
-
onPointerDownOutside: P(
|
|
420
|
-
e.onPointerDownOutside,
|
|
421
|
-
(a) => {
|
|
422
|
-
const l = a.detail.originalEvent, c = l.button === 0 && l.ctrlKey === !0, u = l.button === 2 || c;
|
|
423
|
-
i.current = u;
|
|
424
|
-
},
|
|
425
|
-
{ checkForDefaultPrevented: !1 }
|
|
426
|
-
),
|
|
427
|
-
onFocusOutside: P(
|
|
428
|
-
e.onFocusOutside,
|
|
429
|
-
(a) => a.preventDefault(),
|
|
430
|
-
{ checkForDefaultPrevented: !1 }
|
|
431
|
-
)
|
|
432
|
-
}
|
|
433
|
-
) });
|
|
434
|
-
}
|
|
435
|
-
), fo = d.forwardRef(
|
|
436
|
-
(e, t) => {
|
|
437
|
-
const r = G(U, e.__scopePopover), o = d.useRef(!1), s = d.useRef(!1);
|
|
438
|
-
return /* @__PURE__ */ n.jsx(
|
|
439
|
-
Ft,
|
|
440
|
-
{
|
|
441
|
-
...e,
|
|
442
|
-
ref: t,
|
|
443
|
-
trapFocus: !1,
|
|
444
|
-
disableOutsidePointerEvents: !1,
|
|
445
|
-
onCloseAutoFocus: (i) => {
|
|
446
|
-
var a, l;
|
|
447
|
-
(a = e.onCloseAutoFocus) == null || a.call(e, i), i.defaultPrevented || (o.current || (l = r.triggerRef.current) == null || l.focus(), i.preventDefault()), o.current = !1, s.current = !1;
|
|
448
|
-
},
|
|
449
|
-
onInteractOutside: (i) => {
|
|
450
|
-
var c, u;
|
|
451
|
-
(c = e.onInteractOutside) == null || c.call(e, i), i.defaultPrevented || (o.current = !0, i.detail.originalEvent.type === "pointerdown" && (s.current = !0));
|
|
452
|
-
const a = i.target;
|
|
453
|
-
((u = r.triggerRef.current) == null ? void 0 : u.contains(a)) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && s.current && i.preventDefault();
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
);
|
|
457
|
-
}
|
|
458
|
-
), Ft = d.forwardRef(
|
|
459
|
-
(e, t) => {
|
|
460
|
-
const {
|
|
461
|
-
__scopePopover: r,
|
|
462
|
-
trapFocus: o,
|
|
463
|
-
onOpenAutoFocus: s,
|
|
464
|
-
onCloseAutoFocus: i,
|
|
465
|
-
disableOutsidePointerEvents: a,
|
|
466
|
-
onEscapeKeyDown: l,
|
|
467
|
-
onPointerDownOutside: c,
|
|
468
|
-
onFocusOutside: u,
|
|
469
|
-
onInteractOutside: f,
|
|
470
|
-
...g
|
|
471
|
-
} = e, x = G(U, r), h = oe(r);
|
|
472
|
-
return Ur(), /* @__PURE__ */ n.jsx(
|
|
473
|
-
Kr,
|
|
474
|
-
{
|
|
475
|
-
asChild: !0,
|
|
476
|
-
loop: !0,
|
|
477
|
-
trapped: o,
|
|
478
|
-
onMountAutoFocus: s,
|
|
479
|
-
onUnmountAutoFocus: i,
|
|
480
|
-
children: /* @__PURE__ */ n.jsx(
|
|
481
|
-
dt,
|
|
482
|
-
{
|
|
483
|
-
asChild: !0,
|
|
484
|
-
disableOutsidePointerEvents: a,
|
|
485
|
-
onInteractOutside: f,
|
|
486
|
-
onEscapeKeyDown: l,
|
|
487
|
-
onPointerDownOutside: c,
|
|
488
|
-
onFocusOutside: u,
|
|
489
|
-
onDismiss: () => x.onOpenChange(!1),
|
|
490
|
-
children: /* @__PURE__ */ n.jsx(
|
|
491
|
-
ut,
|
|
492
|
-
{
|
|
493
|
-
"data-state": Ot(x.open),
|
|
494
|
-
role: "dialog",
|
|
495
|
-
id: x.contentId,
|
|
496
|
-
...h,
|
|
497
|
-
...g,
|
|
498
|
-
ref: t,
|
|
499
|
-
style: {
|
|
500
|
-
...g.style,
|
|
501
|
-
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
502
|
-
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
503
|
-
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
504
|
-
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
505
|
-
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
)
|
|
509
|
-
}
|
|
510
|
-
)
|
|
511
|
-
}
|
|
512
|
-
);
|
|
513
|
-
}
|
|
514
|
-
), Dt = "PopoverClose", go = d.forwardRef(
|
|
515
|
-
(e, t) => {
|
|
516
|
-
const { __scopePopover: r, ...o } = e, s = G(Dt, r);
|
|
517
|
-
return /* @__PURE__ */ n.jsx(
|
|
518
|
-
T.button,
|
|
519
|
-
{
|
|
520
|
-
type: "button",
|
|
521
|
-
...o,
|
|
522
|
-
ref: t,
|
|
523
|
-
onClick: P(e.onClick, () => s.onOpenChange(!1))
|
|
524
|
-
}
|
|
525
|
-
);
|
|
526
|
-
}
|
|
527
|
-
);
|
|
528
|
-
go.displayName = Dt;
|
|
529
|
-
var xo = "PopoverArrow", ho = d.forwardRef(
|
|
530
|
-
(e, t) => {
|
|
531
|
-
const { __scopePopover: r, ...o } = e, s = oe(r);
|
|
532
|
-
return /* @__PURE__ */ n.jsx(ft, { ...s, ...o, ref: t });
|
|
533
|
-
}
|
|
534
|
-
);
|
|
535
|
-
ho.displayName = xo;
|
|
536
|
-
function Ot(e) {
|
|
537
|
-
return e ? "open" : "closed";
|
|
328
|
+
function Ve(e, t) {
|
|
329
|
+
if (e?.valid === !1 || t) return !0;
|
|
538
330
|
}
|
|
539
|
-
var
|
|
331
|
+
var Dn = ht, Ln = pt, On = bt, Vn = vt, Bn = yt, Be = "Progress", $e = 100, [$n] = B(Be), [Gn, zn] = $n(Be), wt = u.forwardRef(
|
|
540
332
|
(e, t) => {
|
|
541
333
|
const {
|
|
542
334
|
__scopeProgress: r,
|
|
543
335
|
value: o = null,
|
|
544
336
|
max: s,
|
|
545
|
-
getValueLabel: i =
|
|
337
|
+
getValueLabel: i = Hn,
|
|
546
338
|
...a
|
|
547
339
|
} = e;
|
|
548
|
-
(s || s === 0) && !
|
|
549
|
-
const l =
|
|
550
|
-
o !== null && !
|
|
551
|
-
const c =
|
|
552
|
-
return /* @__PURE__ */ n.jsx(
|
|
553
|
-
|
|
340
|
+
(s || s === 0) && !Ze(s) && console.error(Un(`${s}`, "Progress"));
|
|
341
|
+
const l = Ze(s) ? s : $e;
|
|
342
|
+
o !== null && !Qe(o, l) && console.error(Kn(`${o}`, "Progress"));
|
|
343
|
+
const c = Qe(o, l) ? o : null, d = le(c) ? i(c, l) : void 0;
|
|
344
|
+
return /* @__PURE__ */ n.jsx(Gn, { scope: r, value: c, max: l, children: /* @__PURE__ */ n.jsx(
|
|
345
|
+
k.div,
|
|
554
346
|
{
|
|
555
347
|
"aria-valuemax": l,
|
|
556
348
|
"aria-valuemin": 0,
|
|
557
|
-
"aria-valuenow":
|
|
558
|
-
"aria-valuetext":
|
|
349
|
+
"aria-valuenow": le(c) ? c : void 0,
|
|
350
|
+
"aria-valuetext": d,
|
|
559
351
|
role: "progressbar",
|
|
560
|
-
"data-state":
|
|
352
|
+
"data-state": Et(c, l),
|
|
561
353
|
"data-value": c ?? void 0,
|
|
562
354
|
"data-max": l,
|
|
563
355
|
...a,
|
|
@@ -566,14 +358,14 @@ var mo = Nt, Ke = "Progress", $e = 100, [po] = L(Ke), [vo, bo] = po(Ke), Lt = d.
|
|
|
566
358
|
) });
|
|
567
359
|
}
|
|
568
360
|
);
|
|
569
|
-
|
|
570
|
-
var
|
|
361
|
+
wt.displayName = Be;
|
|
362
|
+
var St = "ProgressIndicator", Nt = u.forwardRef(
|
|
571
363
|
(e, t) => {
|
|
572
|
-
const { __scopeProgress: r, ...o } = e, s =
|
|
364
|
+
const { __scopeProgress: r, ...o } = e, s = zn(St, r);
|
|
573
365
|
return /* @__PURE__ */ n.jsx(
|
|
574
|
-
|
|
366
|
+
k.div,
|
|
575
367
|
{
|
|
576
|
-
"data-state":
|
|
368
|
+
"data-state": Et(s.value, s.max),
|
|
577
369
|
"data-value": s.value ?? void 0,
|
|
578
370
|
"data-max": s.max,
|
|
579
371
|
...o,
|
|
@@ -582,26 +374,26 @@ var Vt = "ProgressIndicator", Bt = d.forwardRef(
|
|
|
582
374
|
);
|
|
583
375
|
}
|
|
584
376
|
);
|
|
585
|
-
|
|
586
|
-
function
|
|
377
|
+
Nt.displayName = St;
|
|
378
|
+
function Hn(e, t) {
|
|
587
379
|
return `${Math.round(e / t * 100)}%`;
|
|
588
380
|
}
|
|
589
|
-
function
|
|
381
|
+
function Et(e, t) {
|
|
590
382
|
return e == null ? "indeterminate" : e === t ? "complete" : "loading";
|
|
591
383
|
}
|
|
592
|
-
function
|
|
384
|
+
function le(e) {
|
|
593
385
|
return typeof e == "number";
|
|
594
386
|
}
|
|
595
|
-
function
|
|
596
|
-
return
|
|
387
|
+
function Ze(e) {
|
|
388
|
+
return le(e) && !isNaN(e) && e > 0;
|
|
597
389
|
}
|
|
598
|
-
function
|
|
599
|
-
return
|
|
390
|
+
function Qe(e, t) {
|
|
391
|
+
return le(e) && !isNaN(e) && e <= t && e >= 0;
|
|
600
392
|
}
|
|
601
|
-
function
|
|
393
|
+
function Un(e, t) {
|
|
602
394
|
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${$e}\`.`;
|
|
603
395
|
}
|
|
604
|
-
function
|
|
396
|
+
function Kn(e, t) {
|
|
605
397
|
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
606
398
|
- a positive number
|
|
607
399
|
- less than the value passed to \`max\` (or ${$e} if no \`max\` prop is set)
|
|
@@ -609,7 +401,7 @@ function wo(e, t) {
|
|
|
609
401
|
|
|
610
402
|
Defaulting to \`null\`.`;
|
|
611
403
|
}
|
|
612
|
-
var
|
|
404
|
+
var qn = wt, Yn = Nt, Ge = "Radio", [Wn, Rt] = B(Ge), [Xn, Zn] = Wn(Ge), Tt = u.forwardRef(
|
|
613
405
|
(e, t) => {
|
|
614
406
|
const {
|
|
615
407
|
__scopeRadio: r,
|
|
@@ -619,52 +411,52 @@ var jo = Lt, So = Bt, qe = "Radio", [Eo, Ht] = L(qe), [Ro, Po] = Eo(qe), zt = d.
|
|
|
619
411
|
disabled: a,
|
|
620
412
|
value: l = "on",
|
|
621
413
|
onCheck: c,
|
|
622
|
-
form:
|
|
414
|
+
form: d,
|
|
623
415
|
...f
|
|
624
|
-
} = e, [
|
|
625
|
-
return /* @__PURE__ */ n.jsxs(
|
|
416
|
+
} = e, [m, g] = u.useState(null), x = _(t, (b) => g(b)), h = u.useRef(!1), v = m ? d || !!m.closest("form") : !0;
|
|
417
|
+
return /* @__PURE__ */ n.jsxs(Xn, { scope: r, checked: s, disabled: a, children: [
|
|
626
418
|
/* @__PURE__ */ n.jsx(
|
|
627
|
-
|
|
419
|
+
k.button,
|
|
628
420
|
{
|
|
629
421
|
type: "button",
|
|
630
422
|
role: "radio",
|
|
631
423
|
"aria-checked": s,
|
|
632
|
-
"data-state":
|
|
424
|
+
"data-state": Pt(s),
|
|
633
425
|
"data-disabled": a ? "" : void 0,
|
|
634
426
|
disabled: a,
|
|
635
427
|
value: l,
|
|
636
428
|
...f,
|
|
637
|
-
ref:
|
|
638
|
-
onClick:
|
|
639
|
-
s || c
|
|
429
|
+
ref: x,
|
|
430
|
+
onClick: R(e.onClick, (b) => {
|
|
431
|
+
s || c?.(), v && (h.current = b.isPropagationStopped(), h.current || b.stopPropagation());
|
|
640
432
|
})
|
|
641
433
|
}
|
|
642
434
|
),
|
|
643
|
-
|
|
644
|
-
|
|
435
|
+
v && /* @__PURE__ */ n.jsx(
|
|
436
|
+
_t,
|
|
645
437
|
{
|
|
646
|
-
control:
|
|
647
|
-
bubbles: !
|
|
438
|
+
control: m,
|
|
439
|
+
bubbles: !h.current,
|
|
648
440
|
name: o,
|
|
649
441
|
value: l,
|
|
650
442
|
checked: s,
|
|
651
443
|
required: i,
|
|
652
444
|
disabled: a,
|
|
653
|
-
form:
|
|
445
|
+
form: d,
|
|
654
446
|
style: { transform: "translateX(-100%)" }
|
|
655
447
|
}
|
|
656
448
|
)
|
|
657
449
|
] });
|
|
658
450
|
}
|
|
659
451
|
);
|
|
660
|
-
|
|
661
|
-
var
|
|
452
|
+
Tt.displayName = Ge;
|
|
453
|
+
var kt = "RadioIndicator", It = u.forwardRef(
|
|
662
454
|
(e, t) => {
|
|
663
|
-
const { __scopeRadio: r, forceMount: o, ...s } = e, i =
|
|
664
|
-
return /* @__PURE__ */ n.jsx(
|
|
665
|
-
|
|
455
|
+
const { __scopeRadio: r, forceMount: o, ...s } = e, i = Zn(kt, r);
|
|
456
|
+
return /* @__PURE__ */ n.jsx(de, { present: o || i.checked, children: /* @__PURE__ */ n.jsx(
|
|
457
|
+
k.span,
|
|
666
458
|
{
|
|
667
|
-
"data-state":
|
|
459
|
+
"data-state": Pt(i.checked),
|
|
668
460
|
"data-disabled": i.disabled ? "" : void 0,
|
|
669
461
|
...s,
|
|
670
462
|
ref: t
|
|
@@ -672,8 +464,8 @@ var Ut = "RadioIndicator", Kt = d.forwardRef(
|
|
|
672
464
|
) });
|
|
673
465
|
}
|
|
674
466
|
);
|
|
675
|
-
|
|
676
|
-
var
|
|
467
|
+
It.displayName = kt;
|
|
468
|
+
var Qn = "RadioBubbleInput", _t = u.forwardRef(
|
|
677
469
|
({
|
|
678
470
|
__scopeRadio: e,
|
|
679
471
|
control: t,
|
|
@@ -681,20 +473,20 @@ var To = "RadioBubbleInput", $t = d.forwardRef(
|
|
|
681
473
|
bubbles: o = !0,
|
|
682
474
|
...s
|
|
683
475
|
}, i) => {
|
|
684
|
-
const a =
|
|
685
|
-
return
|
|
476
|
+
const a = u.useRef(null), l = _(a, i), c = Te(r), d = ke(t);
|
|
477
|
+
return u.useEffect(() => {
|
|
686
478
|
const f = a.current;
|
|
687
479
|
if (!f) return;
|
|
688
|
-
const
|
|
689
|
-
|
|
480
|
+
const m = window.HTMLInputElement.prototype, x = Object.getOwnPropertyDescriptor(
|
|
481
|
+
m,
|
|
690
482
|
"checked"
|
|
691
483
|
).set;
|
|
692
|
-
if (c !== r &&
|
|
693
|
-
const
|
|
694
|
-
|
|
484
|
+
if (c !== r && x) {
|
|
485
|
+
const h = new Event("click", { bubbles: o });
|
|
486
|
+
x.call(f, r), f.dispatchEvent(h);
|
|
695
487
|
}
|
|
696
488
|
}, [c, r, o]), /* @__PURE__ */ n.jsx(
|
|
697
|
-
|
|
489
|
+
k.input,
|
|
698
490
|
{
|
|
699
491
|
type: "radio",
|
|
700
492
|
"aria-hidden": !0,
|
|
@@ -704,7 +496,7 @@ var To = "RadioBubbleInput", $t = d.forwardRef(
|
|
|
704
496
|
ref: l,
|
|
705
497
|
style: {
|
|
706
498
|
...s.style,
|
|
707
|
-
...
|
|
499
|
+
...d,
|
|
708
500
|
position: "absolute",
|
|
709
501
|
pointerEvents: "none",
|
|
710
502
|
opacity: 0,
|
|
@@ -714,14 +506,14 @@ var To = "RadioBubbleInput", $t = d.forwardRef(
|
|
|
714
506
|
);
|
|
715
507
|
}
|
|
716
508
|
);
|
|
717
|
-
|
|
718
|
-
function
|
|
509
|
+
_t.displayName = Qn;
|
|
510
|
+
function Pt(e) {
|
|
719
511
|
return e ? "checked" : "unchecked";
|
|
720
512
|
}
|
|
721
|
-
var
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
]),
|
|
513
|
+
var Jn = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], me = "RadioGroup", [eo] = B(me, [
|
|
514
|
+
ce,
|
|
515
|
+
Rt
|
|
516
|
+
]), At = ce(), Mt = Rt(), [to, ro] = eo(me), Ft = u.forwardRef(
|
|
725
517
|
(e, t) => {
|
|
726
518
|
const {
|
|
727
519
|
__scopeRadioGroup: r,
|
|
@@ -731,42 +523,42 @@ var ko = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], me = "RadioGroup",
|
|
|
731
523
|
required: a = !1,
|
|
732
524
|
disabled: l = !1,
|
|
733
525
|
orientation: c,
|
|
734
|
-
dir:
|
|
526
|
+
dir: d,
|
|
735
527
|
loop: f = !0,
|
|
736
|
-
onValueChange:
|
|
737
|
-
...
|
|
738
|
-
} = e,
|
|
528
|
+
onValueChange: m,
|
|
529
|
+
...g
|
|
530
|
+
} = e, x = At(r), h = Re(d), [v, b] = J({
|
|
739
531
|
prop: i,
|
|
740
532
|
defaultProp: s ?? null,
|
|
741
|
-
onChange:
|
|
533
|
+
onChange: m,
|
|
742
534
|
caller: me
|
|
743
535
|
});
|
|
744
536
|
return /* @__PURE__ */ n.jsx(
|
|
745
|
-
|
|
537
|
+
to,
|
|
746
538
|
{
|
|
747
539
|
scope: r,
|
|
748
540
|
name: o,
|
|
749
541
|
required: a,
|
|
750
542
|
disabled: l,
|
|
751
|
-
value:
|
|
752
|
-
onValueChange:
|
|
543
|
+
value: v,
|
|
544
|
+
onValueChange: b,
|
|
753
545
|
children: /* @__PURE__ */ n.jsx(
|
|
754
|
-
|
|
546
|
+
ot,
|
|
755
547
|
{
|
|
756
548
|
asChild: !0,
|
|
757
|
-
...
|
|
549
|
+
...x,
|
|
758
550
|
orientation: c,
|
|
759
|
-
dir:
|
|
551
|
+
dir: h,
|
|
760
552
|
loop: f,
|
|
761
553
|
children: /* @__PURE__ */ n.jsx(
|
|
762
|
-
|
|
554
|
+
k.div,
|
|
763
555
|
{
|
|
764
556
|
role: "radiogroup",
|
|
765
557
|
"aria-required": a,
|
|
766
558
|
"aria-orientation": c,
|
|
767
559
|
"data-disabled": l ? "" : void 0,
|
|
768
|
-
dir:
|
|
769
|
-
...
|
|
560
|
+
dir: h,
|
|
561
|
+
...g,
|
|
770
562
|
ref: t
|
|
771
563
|
}
|
|
772
564
|
)
|
|
@@ -776,41 +568,40 @@ var ko = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], me = "RadioGroup",
|
|
|
776
568
|
);
|
|
777
569
|
}
|
|
778
570
|
);
|
|
779
|
-
|
|
780
|
-
var
|
|
571
|
+
Ft.displayName = me;
|
|
572
|
+
var Dt = "RadioGroupItem", Lt = u.forwardRef(
|
|
781
573
|
(e, t) => {
|
|
782
|
-
const { __scopeRadioGroup: r, disabled: o, ...s } = e, i =
|
|
783
|
-
return
|
|
784
|
-
const
|
|
785
|
-
|
|
786
|
-
},
|
|
787
|
-
return document.addEventListener("keydown",
|
|
788
|
-
document.removeEventListener("keydown",
|
|
574
|
+
const { __scopeRadioGroup: r, disabled: o, ...s } = e, i = ro(Dt, r), a = i.disabled || o, l = At(r), c = Mt(r), d = u.useRef(null), f = _(t, d), m = i.value === s.value, g = u.useRef(!1);
|
|
575
|
+
return u.useEffect(() => {
|
|
576
|
+
const x = (v) => {
|
|
577
|
+
Jn.includes(v.key) && (g.current = !0);
|
|
578
|
+
}, h = () => g.current = !1;
|
|
579
|
+
return document.addEventListener("keydown", x), document.addEventListener("keyup", h), () => {
|
|
580
|
+
document.removeEventListener("keydown", x), document.removeEventListener("keyup", h);
|
|
789
581
|
};
|
|
790
582
|
}, []), /* @__PURE__ */ n.jsx(
|
|
791
|
-
|
|
583
|
+
st,
|
|
792
584
|
{
|
|
793
585
|
asChild: !0,
|
|
794
586
|
...l,
|
|
795
587
|
focusable: !a,
|
|
796
|
-
active:
|
|
588
|
+
active: m,
|
|
797
589
|
children: /* @__PURE__ */ n.jsx(
|
|
798
|
-
|
|
590
|
+
Tt,
|
|
799
591
|
{
|
|
800
592
|
disabled: a,
|
|
801
593
|
required: i.required,
|
|
802
|
-
checked:
|
|
594
|
+
checked: m,
|
|
803
595
|
...c,
|
|
804
596
|
...s,
|
|
805
597
|
name: i.name,
|
|
806
598
|
ref: f,
|
|
807
599
|
onCheck: () => i.onValueChange(s.value),
|
|
808
|
-
onKeyDown:
|
|
809
|
-
|
|
600
|
+
onKeyDown: R((x) => {
|
|
601
|
+
x.key === "Enter" && x.preventDefault();
|
|
810
602
|
}),
|
|
811
|
-
onFocus:
|
|
812
|
-
|
|
813
|
-
x.current && ((h = u.current) == null || h.click());
|
|
603
|
+
onFocus: R(s.onFocus, () => {
|
|
604
|
+
g.current && d.current?.click();
|
|
814
605
|
})
|
|
815
606
|
}
|
|
816
607
|
)
|
|
@@ -818,22 +609,22 @@ var Zt = "RadioGroupItem", Qt = d.forwardRef(
|
|
|
818
609
|
);
|
|
819
610
|
}
|
|
820
611
|
);
|
|
821
|
-
|
|
822
|
-
var
|
|
612
|
+
Lt.displayName = Dt;
|
|
613
|
+
var no = "RadioGroupIndicator", Ot = u.forwardRef(
|
|
823
614
|
(e, t) => {
|
|
824
|
-
const { __scopeRadioGroup: r, ...o } = e, s =
|
|
825
|
-
return /* @__PURE__ */ n.jsx(
|
|
615
|
+
const { __scopeRadioGroup: r, ...o } = e, s = Mt(r);
|
|
616
|
+
return /* @__PURE__ */ n.jsx(It, { ...s, ...o, ref: t });
|
|
826
617
|
}
|
|
827
618
|
);
|
|
828
|
-
|
|
829
|
-
var
|
|
619
|
+
Ot.displayName = no;
|
|
620
|
+
var oo = Ft, so = Lt, ao = Ot, Vt = ["PageUp", "PageDown"], Bt = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], $t = {
|
|
830
621
|
"from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
831
622
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
832
623
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
833
624
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
834
|
-
},
|
|
835
|
-
|
|
836
|
-
]), [
|
|
625
|
+
}, U = "Slider", [je, io, lo] = Tr(U), [Gt] = B(U, [
|
|
626
|
+
lo
|
|
627
|
+
]), [co, fe] = Gt(U), zt = u.forwardRef(
|
|
837
628
|
(e, t) => {
|
|
838
629
|
const {
|
|
839
630
|
name: r,
|
|
@@ -843,48 +634,47 @@ var Mo = Xt, Fo = Qt, Do = Jt, er = ["PageUp", "PageDown"], tr = ["ArrowUp", "Ar
|
|
|
843
634
|
orientation: a = "horizontal",
|
|
844
635
|
disabled: l = !1,
|
|
845
636
|
minStepsBetweenThumbs: c = 0,
|
|
846
|
-
defaultValue:
|
|
637
|
+
defaultValue: d = [o],
|
|
847
638
|
value: f,
|
|
848
|
-
onValueChange:
|
|
639
|
+
onValueChange: m = () => {
|
|
849
640
|
},
|
|
850
|
-
onValueCommit:
|
|
641
|
+
onValueCommit: g = () => {
|
|
851
642
|
},
|
|
852
|
-
inverted:
|
|
853
|
-
form:
|
|
854
|
-
...
|
|
855
|
-
} = e,
|
|
643
|
+
inverted: x = !1,
|
|
644
|
+
form: h,
|
|
645
|
+
...v
|
|
646
|
+
} = e, b = u.useRef(/* @__PURE__ */ new Set()), C = u.useRef(0), j = a === "horizontal" ? uo : mo, [w = [], I] = J({
|
|
856
647
|
prop: f,
|
|
857
|
-
defaultProp:
|
|
858
|
-
onChange: (
|
|
859
|
-
|
|
860
|
-
(N = [...v.current][C.current]) == null || N.focus(), g(R);
|
|
648
|
+
defaultProp: d,
|
|
649
|
+
onChange: (E) => {
|
|
650
|
+
[...b.current][C.current]?.focus(), m(E);
|
|
861
651
|
}
|
|
862
|
-
}),
|
|
863
|
-
function M(
|
|
864
|
-
const
|
|
865
|
-
S(
|
|
652
|
+
}), P = u.useRef(w);
|
|
653
|
+
function M(E) {
|
|
654
|
+
const N = po(w, E);
|
|
655
|
+
S(E, N);
|
|
866
656
|
}
|
|
867
|
-
function
|
|
868
|
-
S(
|
|
657
|
+
function G(E) {
|
|
658
|
+
S(E, C.current);
|
|
869
659
|
}
|
|
870
660
|
function z() {
|
|
871
|
-
const
|
|
872
|
-
|
|
661
|
+
const E = P.current[C.current];
|
|
662
|
+
w[C.current] !== E && g(w);
|
|
873
663
|
}
|
|
874
|
-
function S(
|
|
875
|
-
const
|
|
876
|
-
|
|
877
|
-
const
|
|
878
|
-
if (
|
|
879
|
-
C.current =
|
|
880
|
-
const
|
|
881
|
-
return
|
|
664
|
+
function S(E, N, { commit: A } = { commit: !1 }) {
|
|
665
|
+
const K = Co(i), ne = jo(Math.round((E - o) / i) * i + o, K), $ = at(ne, [o, s]);
|
|
666
|
+
I((V = []) => {
|
|
667
|
+
const L = xo(V, $, N);
|
|
668
|
+
if (yo(L, c * i)) {
|
|
669
|
+
C.current = L.indexOf($);
|
|
670
|
+
const oe = String(L) !== String(V);
|
|
671
|
+
return oe && A && g(L), oe ? L : V;
|
|
882
672
|
} else
|
|
883
673
|
return V;
|
|
884
674
|
});
|
|
885
675
|
}
|
|
886
676
|
return /* @__PURE__ */ n.jsx(
|
|
887
|
-
|
|
677
|
+
co,
|
|
888
678
|
{
|
|
889
679
|
scope: e.__scopeSlider,
|
|
890
680
|
name: r,
|
|
@@ -892,32 +682,32 @@ var Mo = Xt, Fo = Qt, Do = Jt, er = ["PageUp", "PageDown"], tr = ["ArrowUp", "Ar
|
|
|
892
682
|
min: o,
|
|
893
683
|
max: s,
|
|
894
684
|
valueIndexToChangeRef: C,
|
|
895
|
-
thumbs:
|
|
896
|
-
values:
|
|
685
|
+
thumbs: b.current,
|
|
686
|
+
values: w,
|
|
897
687
|
orientation: a,
|
|
898
|
-
form:
|
|
899
|
-
children: /* @__PURE__ */ n.jsx(
|
|
900
|
-
|
|
688
|
+
form: h,
|
|
689
|
+
children: /* @__PURE__ */ n.jsx(je.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ n.jsx(je.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ n.jsx(
|
|
690
|
+
j,
|
|
901
691
|
{
|
|
902
692
|
"aria-disabled": l,
|
|
903
693
|
"data-disabled": l ? "" : void 0,
|
|
904
|
-
...
|
|
694
|
+
...v,
|
|
905
695
|
ref: t,
|
|
906
|
-
onPointerDown:
|
|
907
|
-
l || (
|
|
696
|
+
onPointerDown: R(v.onPointerDown, () => {
|
|
697
|
+
l || (P.current = w);
|
|
908
698
|
}),
|
|
909
699
|
min: o,
|
|
910
700
|
max: s,
|
|
911
|
-
inverted:
|
|
701
|
+
inverted: x,
|
|
912
702
|
onSlideStart: l ? void 0 : M,
|
|
913
|
-
onSlideMove: l ? void 0 :
|
|
703
|
+
onSlideMove: l ? void 0 : G,
|
|
914
704
|
onSlideEnd: l ? void 0 : z,
|
|
915
705
|
onHomeKeyDown: () => !l && S(o, 0, { commit: !0 }),
|
|
916
|
-
onEndKeyDown: () => !l && S(s,
|
|
917
|
-
onStepKeyDown: ({ event:
|
|
706
|
+
onEndKeyDown: () => !l && S(s, w.length - 1, { commit: !0 }),
|
|
707
|
+
onStepKeyDown: ({ event: E, direction: N }) => {
|
|
918
708
|
if (!l) {
|
|
919
|
-
const
|
|
920
|
-
S(V +
|
|
709
|
+
const ne = Vt.includes(E.key) || E.shiftKey && Bt.includes(E.key) ? 10 : 1, $ = C.current, V = w[$], L = i * ne * N;
|
|
710
|
+
S(V + L, $, { commit: !0 });
|
|
921
711
|
}
|
|
922
712
|
}
|
|
923
713
|
}
|
|
@@ -926,13 +716,13 @@ var Mo = Xt, Fo = Qt, Do = Jt, er = ["PageUp", "PageDown"], tr = ["ArrowUp", "Ar
|
|
|
926
716
|
);
|
|
927
717
|
}
|
|
928
718
|
);
|
|
929
|
-
|
|
930
|
-
var [
|
|
719
|
+
zt.displayName = U;
|
|
720
|
+
var [Ht, Ut] = Gt(U, {
|
|
931
721
|
startEdge: "left",
|
|
932
722
|
endEdge: "right",
|
|
933
723
|
size: "width",
|
|
934
724
|
direction: 1
|
|
935
|
-
}),
|
|
725
|
+
}), uo = u.forwardRef(
|
|
936
726
|
(e, t) => {
|
|
937
727
|
const {
|
|
938
728
|
min: r,
|
|
@@ -942,15 +732,15 @@ var [sr, ar] = nr(Y, {
|
|
|
942
732
|
onSlideStart: a,
|
|
943
733
|
onSlideMove: l,
|
|
944
734
|
onSlideEnd: c,
|
|
945
|
-
onStepKeyDown:
|
|
735
|
+
onStepKeyDown: d,
|
|
946
736
|
...f
|
|
947
|
-
} = e, [
|
|
948
|
-
function y(
|
|
949
|
-
const
|
|
950
|
-
return
|
|
737
|
+
} = e, [m, g] = u.useState(null), x = _(t, (j) => g(j)), h = u.useRef(void 0), v = Re(s), b = v === "ltr", C = b && !i || !b && i;
|
|
738
|
+
function y(j) {
|
|
739
|
+
const w = h.current || m.getBoundingClientRect(), I = [0, w.width], M = ze(I, C ? [r, o] : [o, r]);
|
|
740
|
+
return h.current = w, M(j - w.left);
|
|
951
741
|
}
|
|
952
742
|
return /* @__PURE__ */ n.jsx(
|
|
953
|
-
|
|
743
|
+
Ht,
|
|
954
744
|
{
|
|
955
745
|
scope: e.__scopeSlider,
|
|
956
746
|
startEdge: C ? "left" : "right",
|
|
@@ -958,37 +748,37 @@ var [sr, ar] = nr(Y, {
|
|
|
958
748
|
direction: C ? 1 : -1,
|
|
959
749
|
size: "width",
|
|
960
750
|
children: /* @__PURE__ */ n.jsx(
|
|
961
|
-
|
|
751
|
+
Kt,
|
|
962
752
|
{
|
|
963
|
-
dir:
|
|
753
|
+
dir: v,
|
|
964
754
|
"data-orientation": "horizontal",
|
|
965
755
|
...f,
|
|
966
|
-
ref:
|
|
756
|
+
ref: x,
|
|
967
757
|
style: {
|
|
968
758
|
...f.style,
|
|
969
759
|
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
970
760
|
},
|
|
971
|
-
onSlideStart: (
|
|
972
|
-
const
|
|
973
|
-
a
|
|
761
|
+
onSlideStart: (j) => {
|
|
762
|
+
const w = y(j.clientX);
|
|
763
|
+
a?.(w);
|
|
974
764
|
},
|
|
975
|
-
onSlideMove: (
|
|
976
|
-
const
|
|
977
|
-
l
|
|
765
|
+
onSlideMove: (j) => {
|
|
766
|
+
const w = y(j.clientX);
|
|
767
|
+
l?.(w);
|
|
978
768
|
},
|
|
979
769
|
onSlideEnd: () => {
|
|
980
|
-
|
|
770
|
+
h.current = void 0, c?.();
|
|
981
771
|
},
|
|
982
|
-
onStepKeyDown: (
|
|
983
|
-
const
|
|
984
|
-
|
|
772
|
+
onStepKeyDown: (j) => {
|
|
773
|
+
const I = $t[C ? "from-left" : "from-right"].includes(j.key);
|
|
774
|
+
d?.({ event: j, direction: I ? -1 : 1 });
|
|
985
775
|
}
|
|
986
776
|
}
|
|
987
777
|
)
|
|
988
778
|
}
|
|
989
779
|
);
|
|
990
780
|
}
|
|
991
|
-
),
|
|
781
|
+
), mo = u.forwardRef(
|
|
992
782
|
(e, t) => {
|
|
993
783
|
const {
|
|
994
784
|
min: r,
|
|
@@ -998,51 +788,51 @@ var [sr, ar] = nr(Y, {
|
|
|
998
788
|
onSlideMove: a,
|
|
999
789
|
onSlideEnd: l,
|
|
1000
790
|
onStepKeyDown: c,
|
|
1001
|
-
...
|
|
1002
|
-
} = e, f =
|
|
1003
|
-
function
|
|
1004
|
-
const
|
|
1005
|
-
return
|
|
791
|
+
...d
|
|
792
|
+
} = e, f = u.useRef(null), m = _(t, f), g = u.useRef(void 0), x = !s;
|
|
793
|
+
function h(v) {
|
|
794
|
+
const b = g.current || f.current.getBoundingClientRect(), C = [0, b.height], j = ze(C, x ? [o, r] : [r, o]);
|
|
795
|
+
return g.current = b, j(v - b.top);
|
|
1006
796
|
}
|
|
1007
797
|
return /* @__PURE__ */ n.jsx(
|
|
1008
|
-
|
|
798
|
+
Ht,
|
|
1009
799
|
{
|
|
1010
800
|
scope: e.__scopeSlider,
|
|
1011
|
-
startEdge:
|
|
1012
|
-
endEdge:
|
|
801
|
+
startEdge: x ? "bottom" : "top",
|
|
802
|
+
endEdge: x ? "top" : "bottom",
|
|
1013
803
|
size: "height",
|
|
1014
|
-
direction:
|
|
804
|
+
direction: x ? 1 : -1,
|
|
1015
805
|
children: /* @__PURE__ */ n.jsx(
|
|
1016
|
-
|
|
806
|
+
Kt,
|
|
1017
807
|
{
|
|
1018
808
|
"data-orientation": "vertical",
|
|
1019
|
-
...
|
|
1020
|
-
ref:
|
|
809
|
+
...d,
|
|
810
|
+
ref: m,
|
|
1021
811
|
style: {
|
|
1022
|
-
...
|
|
812
|
+
...d.style,
|
|
1023
813
|
"--radix-slider-thumb-transform": "translateY(50%)"
|
|
1024
814
|
},
|
|
1025
|
-
onSlideStart: (
|
|
1026
|
-
const
|
|
1027
|
-
i
|
|
815
|
+
onSlideStart: (v) => {
|
|
816
|
+
const b = h(v.clientY);
|
|
817
|
+
i?.(b);
|
|
1028
818
|
},
|
|
1029
|
-
onSlideMove: (
|
|
1030
|
-
const
|
|
1031
|
-
a
|
|
819
|
+
onSlideMove: (v) => {
|
|
820
|
+
const b = h(v.clientY);
|
|
821
|
+
a?.(b);
|
|
1032
822
|
},
|
|
1033
823
|
onSlideEnd: () => {
|
|
1034
|
-
|
|
824
|
+
g.current = void 0, l?.();
|
|
1035
825
|
},
|
|
1036
|
-
onStepKeyDown: (
|
|
1037
|
-
const C =
|
|
1038
|
-
c
|
|
826
|
+
onStepKeyDown: (v) => {
|
|
827
|
+
const C = $t[x ? "from-bottom" : "from-top"].includes(v.key);
|
|
828
|
+
c?.({ event: v, direction: C ? -1 : 1 });
|
|
1039
829
|
}
|
|
1040
830
|
}
|
|
1041
831
|
)
|
|
1042
832
|
}
|
|
1043
833
|
);
|
|
1044
834
|
}
|
|
1045
|
-
),
|
|
835
|
+
), Kt = u.forwardRef(
|
|
1046
836
|
(e, t) => {
|
|
1047
837
|
const {
|
|
1048
838
|
__scopeSlider: r,
|
|
@@ -1052,35 +842,35 @@ var [sr, ar] = nr(Y, {
|
|
|
1052
842
|
onHomeKeyDown: a,
|
|
1053
843
|
onEndKeyDown: l,
|
|
1054
844
|
onStepKeyDown: c,
|
|
1055
|
-
...
|
|
1056
|
-
} = e, f =
|
|
845
|
+
...d
|
|
846
|
+
} = e, f = fe(U, r);
|
|
1057
847
|
return /* @__PURE__ */ n.jsx(
|
|
1058
|
-
|
|
848
|
+
k.span,
|
|
1059
849
|
{
|
|
1060
|
-
...
|
|
850
|
+
...d,
|
|
1061
851
|
ref: t,
|
|
1062
|
-
onKeyDown:
|
|
1063
|
-
|
|
852
|
+
onKeyDown: R(e.onKeyDown, (m) => {
|
|
853
|
+
m.key === "Home" ? (a(m), m.preventDefault()) : m.key === "End" ? (l(m), m.preventDefault()) : Vt.concat(Bt).includes(m.key) && (c(m), m.preventDefault());
|
|
1064
854
|
}),
|
|
1065
|
-
onPointerDown:
|
|
1066
|
-
const
|
|
1067
|
-
|
|
855
|
+
onPointerDown: R(e.onPointerDown, (m) => {
|
|
856
|
+
const g = m.target;
|
|
857
|
+
g.setPointerCapture(m.pointerId), m.preventDefault(), f.thumbs.has(g) ? g.focus() : o(m);
|
|
1068
858
|
}),
|
|
1069
|
-
onPointerMove:
|
|
1070
|
-
|
|
859
|
+
onPointerMove: R(e.onPointerMove, (m) => {
|
|
860
|
+
m.target.hasPointerCapture(m.pointerId) && s(m);
|
|
1071
861
|
}),
|
|
1072
|
-
onPointerUp:
|
|
1073
|
-
const
|
|
1074
|
-
|
|
862
|
+
onPointerUp: R(e.onPointerUp, (m) => {
|
|
863
|
+
const g = m.target;
|
|
864
|
+
g.hasPointerCapture(m.pointerId) && (g.releasePointerCapture(m.pointerId), i(m));
|
|
1075
865
|
})
|
|
1076
866
|
}
|
|
1077
867
|
);
|
|
1078
868
|
}
|
|
1079
|
-
),
|
|
869
|
+
), qt = "SliderTrack", Yt = u.forwardRef(
|
|
1080
870
|
(e, t) => {
|
|
1081
|
-
const { __scopeSlider: r, ...o } = e, s =
|
|
871
|
+
const { __scopeSlider: r, ...o } = e, s = fe(qt, r);
|
|
1082
872
|
return /* @__PURE__ */ n.jsx(
|
|
1083
|
-
|
|
873
|
+
k.span,
|
|
1084
874
|
{
|
|
1085
875
|
"data-disabled": s.disabled ? "" : void 0,
|
|
1086
876
|
"data-orientation": s.orientation,
|
|
@@ -1090,14 +880,14 @@ var [sr, ar] = nr(Y, {
|
|
|
1090
880
|
);
|
|
1091
881
|
}
|
|
1092
882
|
);
|
|
1093
|
-
|
|
1094
|
-
var
|
|
883
|
+
Yt.displayName = qt;
|
|
884
|
+
var we = "SliderRange", Wt = u.forwardRef(
|
|
1095
885
|
(e, t) => {
|
|
1096
|
-
const { __scopeSlider: r, ...o } = e, s =
|
|
1097
|
-
(
|
|
1098
|
-
), f = c > 1 ? Math.min(...
|
|
886
|
+
const { __scopeSlider: r, ...o } = e, s = fe(we, r), i = Ut(we, r), a = u.useRef(null), l = _(t, a), c = s.values.length, d = s.values.map(
|
|
887
|
+
(g) => Qt(g, s.min, s.max)
|
|
888
|
+
), f = c > 1 ? Math.min(...d) : 0, m = 100 - Math.max(...d);
|
|
1099
889
|
return /* @__PURE__ */ n.jsx(
|
|
1100
|
-
|
|
890
|
+
k.span,
|
|
1101
891
|
{
|
|
1102
892
|
"data-orientation": s.orientation,
|
|
1103
893
|
"data-disabled": s.disabled ? "" : void 0,
|
|
@@ -1106,25 +896,25 @@ var Pe = "SliderRange", dr = d.forwardRef(
|
|
|
1106
896
|
style: {
|
|
1107
897
|
...e.style,
|
|
1108
898
|
[i.startEdge]: f + "%",
|
|
1109
|
-
[i.endEdge]:
|
|
899
|
+
[i.endEdge]: m + "%"
|
|
1110
900
|
}
|
|
1111
901
|
}
|
|
1112
902
|
);
|
|
1113
903
|
}
|
|
1114
904
|
);
|
|
1115
|
-
|
|
1116
|
-
var
|
|
905
|
+
Wt.displayName = we;
|
|
906
|
+
var Se = "SliderThumb", Xt = u.forwardRef(
|
|
1117
907
|
(e, t) => {
|
|
1118
|
-
const r =
|
|
908
|
+
const r = io(e.__scopeSlider), [o, s] = u.useState(null), i = _(t, (l) => s(l)), a = u.useMemo(
|
|
1119
909
|
() => o ? r().findIndex((l) => l.ref.current === o) : -1,
|
|
1120
910
|
[r, o]
|
|
1121
911
|
);
|
|
1122
|
-
return /* @__PURE__ */ n.jsx(
|
|
912
|
+
return /* @__PURE__ */ n.jsx(fo, { ...e, ref: i, index: a });
|
|
1123
913
|
}
|
|
1124
|
-
),
|
|
914
|
+
), fo = u.forwardRef(
|
|
1125
915
|
(e, t) => {
|
|
1126
|
-
const { __scopeSlider: r, index: o, name: s, ...i } = e, a =
|
|
1127
|
-
return
|
|
916
|
+
const { __scopeSlider: r, index: o, name: s, ...i } = e, a = fe(Se, r), l = Ut(Se, r), [c, d] = u.useState(null), f = _(t, (y) => d(y)), m = c ? a.form || !!c.closest("form") : !0, g = ke(c), x = a.values[o], h = x === void 0 ? 0 : Qt(x, a.min, a.max), v = ho(o, a.values.length), b = g?.[l.size], C = b ? bo(b, h, l.direction) : 0;
|
|
917
|
+
return u.useEffect(() => {
|
|
1128
918
|
if (c)
|
|
1129
919
|
return a.thumbs.add(c), () => {
|
|
1130
920
|
a.thumbs.delete(c);
|
|
@@ -1135,16 +925,16 @@ var Te = "SliderThumb", ur = d.forwardRef(
|
|
|
1135
925
|
style: {
|
|
1136
926
|
transform: "var(--radix-slider-thumb-transform)",
|
|
1137
927
|
position: "absolute",
|
|
1138
|
-
[l.startEdge]: `calc(${
|
|
928
|
+
[l.startEdge]: `calc(${h}% + ${C}px)`
|
|
1139
929
|
},
|
|
1140
930
|
children: [
|
|
1141
|
-
/* @__PURE__ */ n.jsx(
|
|
1142
|
-
|
|
931
|
+
/* @__PURE__ */ n.jsx(je.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ n.jsx(
|
|
932
|
+
k.span,
|
|
1143
933
|
{
|
|
1144
934
|
role: "slider",
|
|
1145
|
-
"aria-label": e["aria-label"] ||
|
|
935
|
+
"aria-label": e["aria-label"] || v,
|
|
1146
936
|
"aria-valuemin": a.min,
|
|
1147
|
-
"aria-valuenow":
|
|
937
|
+
"aria-valuenow": x,
|
|
1148
938
|
"aria-valuemax": a.max,
|
|
1149
939
|
"aria-orientation": a.orientation,
|
|
1150
940
|
"data-orientation": a.orientation,
|
|
@@ -1152,18 +942,18 @@ var Te = "SliderThumb", ur = d.forwardRef(
|
|
|
1152
942
|
tabIndex: a.disabled ? void 0 : 0,
|
|
1153
943
|
...i,
|
|
1154
944
|
ref: f,
|
|
1155
|
-
style:
|
|
1156
|
-
onFocus:
|
|
945
|
+
style: x === void 0 ? { display: "none" } : e.style,
|
|
946
|
+
onFocus: R(e.onFocus, () => {
|
|
1157
947
|
a.valueIndexToChangeRef.current = o;
|
|
1158
948
|
})
|
|
1159
949
|
}
|
|
1160
950
|
) }),
|
|
1161
|
-
|
|
1162
|
-
|
|
951
|
+
m && /* @__PURE__ */ n.jsx(
|
|
952
|
+
Zt,
|
|
1163
953
|
{
|
|
1164
954
|
name: s ?? (a.name ? a.name + (a.values.length > 1 ? "[]" : "") : void 0),
|
|
1165
955
|
form: a.form,
|
|
1166
|
-
value:
|
|
956
|
+
value: x
|
|
1167
957
|
},
|
|
1168
958
|
o
|
|
1169
959
|
)
|
|
@@ -1172,20 +962,20 @@ var Te = "SliderThumb", ur = d.forwardRef(
|
|
|
1172
962
|
);
|
|
1173
963
|
}
|
|
1174
964
|
);
|
|
1175
|
-
|
|
1176
|
-
var
|
|
965
|
+
Xt.displayName = Se;
|
|
966
|
+
var go = "RadioBubbleInput", Zt = u.forwardRef(
|
|
1177
967
|
({ __scopeSlider: e, value: t, ...r }, o) => {
|
|
1178
|
-
const s =
|
|
1179
|
-
return
|
|
968
|
+
const s = u.useRef(null), i = _(s, o), a = Te(t);
|
|
969
|
+
return u.useEffect(() => {
|
|
1180
970
|
const l = s.current;
|
|
1181
971
|
if (!l) return;
|
|
1182
972
|
const c = window.HTMLInputElement.prototype, f = Object.getOwnPropertyDescriptor(c, "value").set;
|
|
1183
973
|
if (a !== t && f) {
|
|
1184
|
-
const
|
|
1185
|
-
f.call(l, t), l.dispatchEvent(
|
|
974
|
+
const m = new Event("input", { bubbles: !0 });
|
|
975
|
+
f.call(l, t), l.dispatchEvent(m);
|
|
1186
976
|
}
|
|
1187
977
|
}, [a, t]), /* @__PURE__ */ n.jsx(
|
|
1188
|
-
|
|
978
|
+
k.input,
|
|
1189
979
|
{
|
|
1190
980
|
style: { display: "none" },
|
|
1191
981
|
...r,
|
|
@@ -1195,52 +985,52 @@ var zo = "RadioBubbleInput", fr = d.forwardRef(
|
|
|
1195
985
|
);
|
|
1196
986
|
}
|
|
1197
987
|
);
|
|
1198
|
-
|
|
1199
|
-
function
|
|
988
|
+
Zt.displayName = go;
|
|
989
|
+
function xo(e = [], t, r) {
|
|
1200
990
|
const o = [...e];
|
|
1201
991
|
return o[r] = t, o.sort((s, i) => s - i);
|
|
1202
992
|
}
|
|
1203
|
-
function
|
|
993
|
+
function Qt(e, t, r) {
|
|
1204
994
|
const i = 100 / (r - t) * (e - t);
|
|
1205
|
-
return
|
|
995
|
+
return at(i, [0, 100]);
|
|
1206
996
|
}
|
|
1207
|
-
function
|
|
997
|
+
function ho(e, t) {
|
|
1208
998
|
return t > 2 ? `Value ${e + 1} of ${t}` : t === 2 ? ["Minimum", "Maximum"][e] : void 0;
|
|
1209
999
|
}
|
|
1210
|
-
function
|
|
1000
|
+
function po(e, t) {
|
|
1211
1001
|
if (e.length === 1) return 0;
|
|
1212
1002
|
const r = e.map((s) => Math.abs(s - t)), o = Math.min(...r);
|
|
1213
1003
|
return r.indexOf(o);
|
|
1214
1004
|
}
|
|
1215
|
-
function
|
|
1216
|
-
const o = e / 2, i =
|
|
1005
|
+
function bo(e, t, r) {
|
|
1006
|
+
const o = e / 2, i = ze([0, 50], [0, o]);
|
|
1217
1007
|
return (o - i(t) * r) * r;
|
|
1218
1008
|
}
|
|
1219
|
-
function
|
|
1009
|
+
function vo(e) {
|
|
1220
1010
|
return e.slice(0, -1).map((t, r) => e[r + 1] - t);
|
|
1221
1011
|
}
|
|
1222
|
-
function
|
|
1012
|
+
function yo(e, t) {
|
|
1223
1013
|
if (t > 0) {
|
|
1224
|
-
const r =
|
|
1014
|
+
const r = vo(e);
|
|
1225
1015
|
return Math.min(...r) >= t;
|
|
1226
1016
|
}
|
|
1227
1017
|
return !0;
|
|
1228
1018
|
}
|
|
1229
|
-
function
|
|
1019
|
+
function ze(e, t) {
|
|
1230
1020
|
return (r) => {
|
|
1231
1021
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
1232
1022
|
const o = (t[1] - t[0]) / (e[1] - e[0]);
|
|
1233
1023
|
return t[0] + o * (r - e[0]);
|
|
1234
1024
|
};
|
|
1235
1025
|
}
|
|
1236
|
-
function
|
|
1026
|
+
function Co(e) {
|
|
1237
1027
|
return (String(e).split(".")[1] || "").length;
|
|
1238
1028
|
}
|
|
1239
|
-
function
|
|
1029
|
+
function jo(e, t) {
|
|
1240
1030
|
const r = Math.pow(10, t);
|
|
1241
1031
|
return Math.round(e * r) / r;
|
|
1242
1032
|
}
|
|
1243
|
-
var
|
|
1033
|
+
var wo = zt, So = Yt, No = Wt, Eo = Xt, ge = "Switch", [Ro] = B(ge), [To, ko] = Ro(ge), Jt = u.forwardRef(
|
|
1244
1034
|
(e, t) => {
|
|
1245
1035
|
const {
|
|
1246
1036
|
__scopeSwitch: r,
|
|
@@ -1250,39 +1040,39 @@ var Qo = or, Jo = cr, es = dr, ts = ur, ve = "Switch", [rs] = L(ve), [ns, os] =
|
|
|
1250
1040
|
required: a,
|
|
1251
1041
|
disabled: l,
|
|
1252
1042
|
value: c = "on",
|
|
1253
|
-
onCheckedChange:
|
|
1043
|
+
onCheckedChange: d,
|
|
1254
1044
|
form: f,
|
|
1255
|
-
...
|
|
1256
|
-
} = e, [
|
|
1045
|
+
...m
|
|
1046
|
+
} = e, [g, x] = u.useState(null), h = _(t, (j) => x(j)), v = u.useRef(!1), b = g ? f || !!g.closest("form") : !0, [C, y] = J({
|
|
1257
1047
|
prop: s,
|
|
1258
1048
|
defaultProp: i ?? !1,
|
|
1259
|
-
onChange:
|
|
1260
|
-
caller:
|
|
1049
|
+
onChange: d,
|
|
1050
|
+
caller: ge
|
|
1261
1051
|
});
|
|
1262
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1052
|
+
return /* @__PURE__ */ n.jsxs(To, { scope: r, checked: C, disabled: l, children: [
|
|
1263
1053
|
/* @__PURE__ */ n.jsx(
|
|
1264
|
-
|
|
1054
|
+
k.button,
|
|
1265
1055
|
{
|
|
1266
1056
|
type: "button",
|
|
1267
1057
|
role: "switch",
|
|
1268
1058
|
"aria-checked": C,
|
|
1269
1059
|
"aria-required": a,
|
|
1270
|
-
"data-state":
|
|
1060
|
+
"data-state": nr(C),
|
|
1271
1061
|
"data-disabled": l ? "" : void 0,
|
|
1272
1062
|
disabled: l,
|
|
1273
1063
|
value: c,
|
|
1274
|
-
...
|
|
1275
|
-
ref:
|
|
1276
|
-
onClick:
|
|
1277
|
-
y((
|
|
1064
|
+
...m,
|
|
1065
|
+
ref: h,
|
|
1066
|
+
onClick: R(e.onClick, (j) => {
|
|
1067
|
+
y((w) => !w), b && (v.current = j.isPropagationStopped(), v.current || j.stopPropagation());
|
|
1278
1068
|
})
|
|
1279
1069
|
}
|
|
1280
1070
|
),
|
|
1281
|
-
|
|
1282
|
-
|
|
1071
|
+
b && /* @__PURE__ */ n.jsx(
|
|
1072
|
+
rr,
|
|
1283
1073
|
{
|
|
1284
|
-
control:
|
|
1285
|
-
bubbles: !
|
|
1074
|
+
control: g,
|
|
1075
|
+
bubbles: !v.current,
|
|
1286
1076
|
name: o,
|
|
1287
1077
|
value: c,
|
|
1288
1078
|
checked: C,
|
|
@@ -1295,14 +1085,14 @@ var Qo = or, Jo = cr, es = dr, ts = ur, ve = "Switch", [rs] = L(ve), [ns, os] =
|
|
|
1295
1085
|
] });
|
|
1296
1086
|
}
|
|
1297
1087
|
);
|
|
1298
|
-
|
|
1299
|
-
var
|
|
1088
|
+
Jt.displayName = ge;
|
|
1089
|
+
var er = "SwitchThumb", tr = u.forwardRef(
|
|
1300
1090
|
(e, t) => {
|
|
1301
|
-
const { __scopeSwitch: r, ...o } = e, s =
|
|
1091
|
+
const { __scopeSwitch: r, ...o } = e, s = ko(er, r);
|
|
1302
1092
|
return /* @__PURE__ */ n.jsx(
|
|
1303
|
-
|
|
1093
|
+
k.span,
|
|
1304
1094
|
{
|
|
1305
|
-
"data-state":
|
|
1095
|
+
"data-state": nr(s.checked),
|
|
1306
1096
|
"data-disabled": s.disabled ? "" : void 0,
|
|
1307
1097
|
...o,
|
|
1308
1098
|
ref: t
|
|
@@ -1310,8 +1100,8 @@ var hr = "SwitchThumb", mr = d.forwardRef(
|
|
|
1310
1100
|
);
|
|
1311
1101
|
}
|
|
1312
1102
|
);
|
|
1313
|
-
|
|
1314
|
-
var
|
|
1103
|
+
tr.displayName = er;
|
|
1104
|
+
var Io = "SwitchBubbleInput", rr = u.forwardRef(
|
|
1315
1105
|
({
|
|
1316
1106
|
__scopeSwitch: e,
|
|
1317
1107
|
control: t,
|
|
@@ -1319,17 +1109,17 @@ var ss = "SwitchBubbleInput", pr = d.forwardRef(
|
|
|
1319
1109
|
bubbles: o = !0,
|
|
1320
1110
|
...s
|
|
1321
1111
|
}, i) => {
|
|
1322
|
-
const a =
|
|
1323
|
-
return
|
|
1112
|
+
const a = u.useRef(null), l = _(a, i), c = Te(r), d = ke(t);
|
|
1113
|
+
return u.useEffect(() => {
|
|
1324
1114
|
const f = a.current;
|
|
1325
1115
|
if (!f) return;
|
|
1326
|
-
const
|
|
1327
|
-
|
|
1116
|
+
const m = window.HTMLInputElement.prototype, x = Object.getOwnPropertyDescriptor(
|
|
1117
|
+
m,
|
|
1328
1118
|
"checked"
|
|
1329
1119
|
).set;
|
|
1330
|
-
if (c !== r &&
|
|
1331
|
-
const
|
|
1332
|
-
|
|
1120
|
+
if (c !== r && x) {
|
|
1121
|
+
const h = new Event("click", { bubbles: o });
|
|
1122
|
+
x.call(f, r), f.dispatchEvent(h);
|
|
1333
1123
|
}
|
|
1334
1124
|
}, [c, r, o]), /* @__PURE__ */ n.jsx(
|
|
1335
1125
|
"input",
|
|
@@ -1342,7 +1132,7 @@ var ss = "SwitchBubbleInput", pr = d.forwardRef(
|
|
|
1342
1132
|
ref: l,
|
|
1343
1133
|
style: {
|
|
1344
1134
|
...s.style,
|
|
1345
|
-
...
|
|
1135
|
+
...d,
|
|
1346
1136
|
position: "absolute",
|
|
1347
1137
|
pointerEvents: "none",
|
|
1348
1138
|
opacity: 0,
|
|
@@ -1352,13 +1142,13 @@ var ss = "SwitchBubbleInput", pr = d.forwardRef(
|
|
|
1352
1142
|
);
|
|
1353
1143
|
}
|
|
1354
1144
|
);
|
|
1355
|
-
|
|
1356
|
-
function
|
|
1145
|
+
rr.displayName = Io;
|
|
1146
|
+
function nr(e) {
|
|
1357
1147
|
return e ? "checked" : "unchecked";
|
|
1358
1148
|
}
|
|
1359
|
-
var
|
|
1360
|
-
|
|
1361
|
-
]),
|
|
1149
|
+
var _o = Jt, Po = tr, xe = "Tabs", [Ao] = B(xe, [
|
|
1150
|
+
ce
|
|
1151
|
+
]), or = ce(), [Mo, He] = Ao(xe), sr = u.forwardRef(
|
|
1362
1152
|
(e, t) => {
|
|
1363
1153
|
const {
|
|
1364
1154
|
__scopeTabs: r,
|
|
@@ -1368,29 +1158,29 @@ var as = xr, is = mr, be = "Tabs", [ls] = L(be, [
|
|
|
1368
1158
|
orientation: a = "horizontal",
|
|
1369
1159
|
dir: l,
|
|
1370
1160
|
activationMode: c = "automatic",
|
|
1371
|
-
...
|
|
1372
|
-
} = e, f =
|
|
1161
|
+
...d
|
|
1162
|
+
} = e, f = Re(l), [m, g] = J({
|
|
1373
1163
|
prop: o,
|
|
1374
1164
|
onChange: s,
|
|
1375
1165
|
defaultProp: i ?? "",
|
|
1376
|
-
caller:
|
|
1166
|
+
caller: xe
|
|
1377
1167
|
});
|
|
1378
1168
|
return /* @__PURE__ */ n.jsx(
|
|
1379
|
-
|
|
1169
|
+
Mo,
|
|
1380
1170
|
{
|
|
1381
1171
|
scope: r,
|
|
1382
|
-
baseId:
|
|
1383
|
-
value:
|
|
1384
|
-
onValueChange:
|
|
1172
|
+
baseId: Q(),
|
|
1173
|
+
value: m,
|
|
1174
|
+
onValueChange: g,
|
|
1385
1175
|
orientation: a,
|
|
1386
1176
|
dir: f,
|
|
1387
1177
|
activationMode: c,
|
|
1388
1178
|
children: /* @__PURE__ */ n.jsx(
|
|
1389
|
-
|
|
1179
|
+
k.div,
|
|
1390
1180
|
{
|
|
1391
1181
|
dir: f,
|
|
1392
1182
|
"data-orientation": a,
|
|
1393
|
-
...
|
|
1183
|
+
...d,
|
|
1394
1184
|
ref: t
|
|
1395
1185
|
}
|
|
1396
1186
|
)
|
|
@@ -1398,12 +1188,12 @@ var as = xr, is = mr, be = "Tabs", [ls] = L(be, [
|
|
|
1398
1188
|
);
|
|
1399
1189
|
}
|
|
1400
1190
|
);
|
|
1401
|
-
|
|
1402
|
-
var
|
|
1191
|
+
sr.displayName = xe;
|
|
1192
|
+
var ar = "TabsList", ir = u.forwardRef(
|
|
1403
1193
|
(e, t) => {
|
|
1404
|
-
const { __scopeTabs: r, loop: o = !0, ...s } = e, i =
|
|
1194
|
+
const { __scopeTabs: r, loop: o = !0, ...s } = e, i = He(ar, r), a = or(r);
|
|
1405
1195
|
return /* @__PURE__ */ n.jsx(
|
|
1406
|
-
|
|
1196
|
+
ot,
|
|
1407
1197
|
{
|
|
1408
1198
|
asChild: !0,
|
|
1409
1199
|
...a,
|
|
@@ -1411,7 +1201,7 @@ var Cr = "TabsList", wr = d.forwardRef(
|
|
|
1411
1201
|
dir: i.dir,
|
|
1412
1202
|
loop: o,
|
|
1413
1203
|
children: /* @__PURE__ */ n.jsx(
|
|
1414
|
-
|
|
1204
|
+
k.div,
|
|
1415
1205
|
{
|
|
1416
1206
|
role: "tablist",
|
|
1417
1207
|
"aria-orientation": i.orientation,
|
|
@@ -1423,39 +1213,39 @@ var Cr = "TabsList", wr = d.forwardRef(
|
|
|
1423
1213
|
);
|
|
1424
1214
|
}
|
|
1425
1215
|
);
|
|
1426
|
-
|
|
1427
|
-
var
|
|
1216
|
+
ir.displayName = ar;
|
|
1217
|
+
var lr = "TabsTrigger", cr = u.forwardRef(
|
|
1428
1218
|
(e, t) => {
|
|
1429
|
-
const { __scopeTabs: r, value: o, disabled: s = !1, ...i } = e, a =
|
|
1219
|
+
const { __scopeTabs: r, value: o, disabled: s = !1, ...i } = e, a = He(lr, r), l = or(r), c = mr(a.baseId, o), d = fr(a.baseId, o), f = o === a.value;
|
|
1430
1220
|
return /* @__PURE__ */ n.jsx(
|
|
1431
|
-
|
|
1221
|
+
st,
|
|
1432
1222
|
{
|
|
1433
1223
|
asChild: !0,
|
|
1434
1224
|
...l,
|
|
1435
1225
|
focusable: !s,
|
|
1436
1226
|
active: f,
|
|
1437
1227
|
children: /* @__PURE__ */ n.jsx(
|
|
1438
|
-
|
|
1228
|
+
k.button,
|
|
1439
1229
|
{
|
|
1440
1230
|
type: "button",
|
|
1441
1231
|
role: "tab",
|
|
1442
1232
|
"aria-selected": f,
|
|
1443
|
-
"aria-controls":
|
|
1233
|
+
"aria-controls": d,
|
|
1444
1234
|
"data-state": f ? "active" : "inactive",
|
|
1445
1235
|
"data-disabled": s ? "" : void 0,
|
|
1446
1236
|
disabled: s,
|
|
1447
1237
|
id: c,
|
|
1448
1238
|
...i,
|
|
1449
1239
|
ref: t,
|
|
1450
|
-
onMouseDown:
|
|
1451
|
-
!s &&
|
|
1240
|
+
onMouseDown: R(e.onMouseDown, (m) => {
|
|
1241
|
+
!s && m.button === 0 && m.ctrlKey === !1 ? a.onValueChange(o) : m.preventDefault();
|
|
1452
1242
|
}),
|
|
1453
|
-
onKeyDown:
|
|
1454
|
-
[" ", "Enter"].includes(
|
|
1243
|
+
onKeyDown: R(e.onKeyDown, (m) => {
|
|
1244
|
+
[" ", "Enter"].includes(m.key) && a.onValueChange(o);
|
|
1455
1245
|
}),
|
|
1456
|
-
onFocus:
|
|
1457
|
-
const
|
|
1458
|
-
!f && !s &&
|
|
1246
|
+
onFocus: R(e.onFocus, () => {
|
|
1247
|
+
const m = a.activationMode !== "manual";
|
|
1248
|
+
!f && !s && m && a.onValueChange(o);
|
|
1459
1249
|
})
|
|
1460
1250
|
}
|
|
1461
1251
|
)
|
|
@@ -1463,80 +1253,80 @@ var jr = "TabsTrigger", Sr = d.forwardRef(
|
|
|
1463
1253
|
);
|
|
1464
1254
|
}
|
|
1465
1255
|
);
|
|
1466
|
-
|
|
1467
|
-
var
|
|
1256
|
+
cr.displayName = lr;
|
|
1257
|
+
var dr = "TabsContent", ur = u.forwardRef(
|
|
1468
1258
|
(e, t) => {
|
|
1469
|
-
const { __scopeTabs: r, value: o, forceMount: s, children: i, ...a } = e, l =
|
|
1470
|
-
return
|
|
1471
|
-
const
|
|
1472
|
-
return () => cancelAnimationFrame(
|
|
1473
|
-
}, []), /* @__PURE__ */ n.jsx(
|
|
1474
|
-
|
|
1259
|
+
const { __scopeTabs: r, value: o, forceMount: s, children: i, ...a } = e, l = He(dr, r), c = mr(l.baseId, o), d = fr(l.baseId, o), f = o === l.value, m = u.useRef(f);
|
|
1260
|
+
return u.useEffect(() => {
|
|
1261
|
+
const g = requestAnimationFrame(() => m.current = !1);
|
|
1262
|
+
return () => cancelAnimationFrame(g);
|
|
1263
|
+
}, []), /* @__PURE__ */ n.jsx(de, { present: s || f, children: ({ present: g }) => /* @__PURE__ */ n.jsx(
|
|
1264
|
+
k.div,
|
|
1475
1265
|
{
|
|
1476
1266
|
"data-state": f ? "active" : "inactive",
|
|
1477
1267
|
"data-orientation": l.orientation,
|
|
1478
1268
|
role: "tabpanel",
|
|
1479
1269
|
"aria-labelledby": c,
|
|
1480
|
-
hidden: !
|
|
1481
|
-
id:
|
|
1270
|
+
hidden: !g,
|
|
1271
|
+
id: d,
|
|
1482
1272
|
tabIndex: 0,
|
|
1483
1273
|
...a,
|
|
1484
1274
|
ref: t,
|
|
1485
1275
|
style: {
|
|
1486
1276
|
...e.style,
|
|
1487
|
-
animationDuration:
|
|
1277
|
+
animationDuration: m.current ? "0s" : void 0
|
|
1488
1278
|
},
|
|
1489
|
-
children:
|
|
1279
|
+
children: g && i
|
|
1490
1280
|
}
|
|
1491
1281
|
) });
|
|
1492
1282
|
}
|
|
1493
1283
|
);
|
|
1494
|
-
|
|
1495
|
-
function
|
|
1284
|
+
ur.displayName = dr;
|
|
1285
|
+
function mr(e, t) {
|
|
1496
1286
|
return `${e}-trigger-${t}`;
|
|
1497
1287
|
}
|
|
1498
|
-
function
|
|
1288
|
+
function fr(e, t) {
|
|
1499
1289
|
return `${e}-content-${t}`;
|
|
1500
1290
|
}
|
|
1501
|
-
var
|
|
1502
|
-
|
|
1503
|
-
]),
|
|
1291
|
+
var Fo = sr, Do = ir, Lo = cr, Je = ur, [he] = B("Tooltip", [
|
|
1292
|
+
it
|
|
1293
|
+
]), pe = it(), gr = "TooltipProvider", Oo = 700, Ne = "tooltip.open", [Vo, Ue] = he(gr), xr = (e) => {
|
|
1504
1294
|
const {
|
|
1505
1295
|
__scopeTooltip: t,
|
|
1506
|
-
delayDuration: r =
|
|
1296
|
+
delayDuration: r = Oo,
|
|
1507
1297
|
skipDelayDuration: o = 300,
|
|
1508
1298
|
disableHoverableContent: s = !1,
|
|
1509
1299
|
children: i
|
|
1510
|
-
} = e, a =
|
|
1511
|
-
return
|
|
1512
|
-
const
|
|
1513
|
-
return () => window.clearTimeout(
|
|
1300
|
+
} = e, a = u.useRef(!0), l = u.useRef(!1), c = u.useRef(0);
|
|
1301
|
+
return u.useEffect(() => {
|
|
1302
|
+
const d = c.current;
|
|
1303
|
+
return () => window.clearTimeout(d);
|
|
1514
1304
|
}, []), /* @__PURE__ */ n.jsx(
|
|
1515
|
-
|
|
1305
|
+
Vo,
|
|
1516
1306
|
{
|
|
1517
1307
|
scope: t,
|
|
1518
1308
|
isOpenDelayedRef: a,
|
|
1519
1309
|
delayDuration: r,
|
|
1520
|
-
onOpen:
|
|
1310
|
+
onOpen: u.useCallback(() => {
|
|
1521
1311
|
window.clearTimeout(c.current), a.current = !1;
|
|
1522
1312
|
}, []),
|
|
1523
|
-
onClose:
|
|
1313
|
+
onClose: u.useCallback(() => {
|
|
1524
1314
|
window.clearTimeout(c.current), c.current = window.setTimeout(
|
|
1525
1315
|
() => a.current = !0,
|
|
1526
1316
|
o
|
|
1527
1317
|
);
|
|
1528
1318
|
}, [o]),
|
|
1529
1319
|
isPointerInTransitRef: l,
|
|
1530
|
-
onPointerInTransitChange:
|
|
1531
|
-
l.current =
|
|
1320
|
+
onPointerInTransitChange: u.useCallback((d) => {
|
|
1321
|
+
l.current = d;
|
|
1532
1322
|
}, []),
|
|
1533
1323
|
disableHoverableContent: s,
|
|
1534
1324
|
children: i
|
|
1535
1325
|
}
|
|
1536
1326
|
);
|
|
1537
1327
|
};
|
|
1538
|
-
|
|
1539
|
-
var
|
|
1328
|
+
xr.displayName = gr;
|
|
1329
|
+
var Z = "Tooltip", [Bo, re] = he(Z), hr = (e) => {
|
|
1540
1330
|
const {
|
|
1541
1331
|
__scopeTooltip: t,
|
|
1542
1332
|
children: r,
|
|
@@ -1545,115 +1335,115 @@ var ee = "Tooltip", [hs, se] = ye(ee), Ir = (e) => {
|
|
|
1545
1335
|
onOpenChange: i,
|
|
1546
1336
|
disableHoverableContent: a,
|
|
1547
1337
|
delayDuration: l
|
|
1548
|
-
} = e, c =
|
|
1338
|
+
} = e, c = Ue(Z, e.__scopeTooltip), d = pe(t), [f, m] = u.useState(null), g = Q(), x = u.useRef(0), h = a ?? c.disableHoverableContent, v = l ?? c.delayDuration, b = u.useRef(!1), [C, y] = J({
|
|
1549
1339
|
prop: o,
|
|
1550
1340
|
defaultProp: s ?? !1,
|
|
1551
1341
|
onChange: (M) => {
|
|
1552
|
-
M ? (c.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
1342
|
+
M ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Ne))) : c.onClose(), i?.(M);
|
|
1553
1343
|
},
|
|
1554
|
-
caller:
|
|
1555
|
-
}),
|
|
1556
|
-
window.clearTimeout(
|
|
1557
|
-
}, [y]),
|
|
1558
|
-
window.clearTimeout(
|
|
1559
|
-
}, [y]),
|
|
1560
|
-
window.clearTimeout(
|
|
1561
|
-
|
|
1562
|
-
},
|
|
1563
|
-
}, [
|
|
1564
|
-
return
|
|
1565
|
-
|
|
1566
|
-
}, []), /* @__PURE__ */ n.jsx(
|
|
1567
|
-
|
|
1344
|
+
caller: Z
|
|
1345
|
+
}), j = u.useMemo(() => C ? b.current ? "delayed-open" : "instant-open" : "closed", [C]), w = u.useCallback(() => {
|
|
1346
|
+
window.clearTimeout(x.current), x.current = 0, b.current = !1, y(!0);
|
|
1347
|
+
}, [y]), I = u.useCallback(() => {
|
|
1348
|
+
window.clearTimeout(x.current), x.current = 0, y(!1);
|
|
1349
|
+
}, [y]), P = u.useCallback(() => {
|
|
1350
|
+
window.clearTimeout(x.current), x.current = window.setTimeout(() => {
|
|
1351
|
+
b.current = !0, y(!0), x.current = 0;
|
|
1352
|
+
}, v);
|
|
1353
|
+
}, [v, y]);
|
|
1354
|
+
return u.useEffect(() => () => {
|
|
1355
|
+
x.current && (window.clearTimeout(x.current), x.current = 0);
|
|
1356
|
+
}, []), /* @__PURE__ */ n.jsx(kr, { ...d, children: /* @__PURE__ */ n.jsx(
|
|
1357
|
+
Bo,
|
|
1568
1358
|
{
|
|
1569
1359
|
scope: t,
|
|
1570
|
-
contentId:
|
|
1360
|
+
contentId: g,
|
|
1571
1361
|
open: C,
|
|
1572
|
-
stateAttribute:
|
|
1362
|
+
stateAttribute: j,
|
|
1573
1363
|
trigger: f,
|
|
1574
|
-
onTriggerChange:
|
|
1575
|
-
onTriggerEnter:
|
|
1576
|
-
c.isOpenDelayedRef.current ?
|
|
1577
|
-
}, [c.isOpenDelayedRef,
|
|
1578
|
-
onTriggerLeave:
|
|
1579
|
-
|
|
1580
|
-
}, [
|
|
1581
|
-
onOpen:
|
|
1582
|
-
onClose:
|
|
1583
|
-
disableHoverableContent:
|
|
1364
|
+
onTriggerChange: m,
|
|
1365
|
+
onTriggerEnter: u.useCallback(() => {
|
|
1366
|
+
c.isOpenDelayedRef.current ? P() : w();
|
|
1367
|
+
}, [c.isOpenDelayedRef, P, w]),
|
|
1368
|
+
onTriggerLeave: u.useCallback(() => {
|
|
1369
|
+
h ? I() : (window.clearTimeout(x.current), x.current = 0);
|
|
1370
|
+
}, [I, h]),
|
|
1371
|
+
onOpen: w,
|
|
1372
|
+
onClose: I,
|
|
1373
|
+
disableHoverableContent: h,
|
|
1584
1374
|
children: r
|
|
1585
1375
|
}
|
|
1586
1376
|
) });
|
|
1587
1377
|
};
|
|
1588
|
-
|
|
1589
|
-
var
|
|
1378
|
+
hr.displayName = Z;
|
|
1379
|
+
var Ee = "TooltipTrigger", pr = u.forwardRef(
|
|
1590
1380
|
(e, t) => {
|
|
1591
|
-
const { __scopeTooltip: r, ...o } = e, s =
|
|
1592
|
-
return
|
|
1593
|
-
|
|
1381
|
+
const { __scopeTooltip: r, ...o } = e, s = re(Ee, r), i = Ue(Ee, r), a = pe(r), l = u.useRef(null), c = _(t, l, s.onTriggerChange), d = u.useRef(!1), f = u.useRef(!1), m = u.useCallback(() => d.current = !1, []);
|
|
1382
|
+
return u.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ n.jsx(Ir, { asChild: !0, ...a, children: /* @__PURE__ */ n.jsx(
|
|
1383
|
+
k.button,
|
|
1594
1384
|
{
|
|
1595
1385
|
"aria-describedby": s.open ? s.contentId : void 0,
|
|
1596
1386
|
"data-state": s.stateAttribute,
|
|
1597
1387
|
...o,
|
|
1598
1388
|
ref: c,
|
|
1599
|
-
onPointerMove:
|
|
1600
|
-
|
|
1389
|
+
onPointerMove: R(e.onPointerMove, (g) => {
|
|
1390
|
+
g.pointerType !== "touch" && !f.current && !i.isPointerInTransitRef.current && (s.onTriggerEnter(), f.current = !0);
|
|
1601
1391
|
}),
|
|
1602
|
-
onPointerLeave:
|
|
1392
|
+
onPointerLeave: R(e.onPointerLeave, () => {
|
|
1603
1393
|
s.onTriggerLeave(), f.current = !1;
|
|
1604
1394
|
}),
|
|
1605
|
-
onPointerDown:
|
|
1606
|
-
s.open && s.onClose(),
|
|
1395
|
+
onPointerDown: R(e.onPointerDown, () => {
|
|
1396
|
+
s.open && s.onClose(), d.current = !0, document.addEventListener("pointerup", m, { once: !0 });
|
|
1607
1397
|
}),
|
|
1608
|
-
onFocus:
|
|
1609
|
-
|
|
1398
|
+
onFocus: R(e.onFocus, () => {
|
|
1399
|
+
d.current || s.onOpen();
|
|
1610
1400
|
}),
|
|
1611
|
-
onBlur:
|
|
1612
|
-
onClick:
|
|
1401
|
+
onBlur: R(e.onBlur, s.onClose),
|
|
1402
|
+
onClick: R(e.onClick, s.onClose)
|
|
1613
1403
|
}
|
|
1614
1404
|
) });
|
|
1615
1405
|
}
|
|
1616
1406
|
);
|
|
1617
|
-
|
|
1618
|
-
var
|
|
1407
|
+
pr.displayName = Ee;
|
|
1408
|
+
var Ke = "TooltipPortal", [$o, Go] = he(Ke, {
|
|
1619
1409
|
forceMount: void 0
|
|
1620
|
-
}),
|
|
1621
|
-
const { __scopeTooltip: t, forceMount: r, children: o, container: s } = e, i =
|
|
1622
|
-
return /* @__PURE__ */ n.jsx(
|
|
1410
|
+
}), br = (e) => {
|
|
1411
|
+
const { __scopeTooltip: t, forceMount: r, children: o, container: s } = e, i = re(Ke, t);
|
|
1412
|
+
return /* @__PURE__ */ n.jsx($o, { scope: t, forceMount: r, children: /* @__PURE__ */ n.jsx(de, { present: r || i.open, children: /* @__PURE__ */ n.jsx(_r, { asChild: !0, container: s, children: o }) }) });
|
|
1623
1413
|
};
|
|
1624
|
-
|
|
1625
|
-
var
|
|
1414
|
+
br.displayName = Ke;
|
|
1415
|
+
var H = "TooltipContent", vr = u.forwardRef(
|
|
1626
1416
|
(e, t) => {
|
|
1627
|
-
const r =
|
|
1628
|
-
return /* @__PURE__ */ n.jsx(
|
|
1629
|
-
}
|
|
1630
|
-
),
|
|
1631
|
-
const r =
|
|
1632
|
-
l(null),
|
|
1633
|
-
}, [
|
|
1634
|
-
(
|
|
1635
|
-
const
|
|
1636
|
-
l(
|
|
1417
|
+
const r = Go(H, e.__scopeTooltip), { forceMount: o = r.forceMount, side: s = "top", ...i } = e, a = re(H, e.__scopeTooltip);
|
|
1418
|
+
return /* @__PURE__ */ n.jsx(de, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ n.jsx(yr, { side: s, ...i, ref: t }) : /* @__PURE__ */ n.jsx(zo, { side: s, ...i, ref: t }) });
|
|
1419
|
+
}
|
|
1420
|
+
), zo = u.forwardRef((e, t) => {
|
|
1421
|
+
const r = re(H, e.__scopeTooltip), o = Ue(H, e.__scopeTooltip), s = u.useRef(null), i = _(t, s), [a, l] = u.useState(null), { trigger: c, onClose: d } = r, f = s.current, { onPointerInTransitChange: m } = o, g = u.useCallback(() => {
|
|
1422
|
+
l(null), m(!1);
|
|
1423
|
+
}, [m]), x = u.useCallback(
|
|
1424
|
+
(h, v) => {
|
|
1425
|
+
const b = h.currentTarget, C = { x: h.clientX, y: h.clientY }, y = qo(C, b.getBoundingClientRect()), j = Yo(C, y), w = Wo(v.getBoundingClientRect()), I = Zo([...j, ...w]);
|
|
1426
|
+
l(I), m(!0);
|
|
1637
1427
|
},
|
|
1638
|
-
[
|
|
1428
|
+
[m]
|
|
1639
1429
|
);
|
|
1640
|
-
return
|
|
1430
|
+
return u.useEffect(() => () => g(), [g]), u.useEffect(() => {
|
|
1641
1431
|
if (c && f) {
|
|
1642
|
-
const
|
|
1643
|
-
return c.addEventListener("pointerleave",
|
|
1644
|
-
c.removeEventListener("pointerleave",
|
|
1432
|
+
const h = (b) => x(b, f), v = (b) => x(b, c);
|
|
1433
|
+
return c.addEventListener("pointerleave", h), f.addEventListener("pointerleave", v), () => {
|
|
1434
|
+
c.removeEventListener("pointerleave", h), f.removeEventListener("pointerleave", v);
|
|
1645
1435
|
};
|
|
1646
1436
|
}
|
|
1647
|
-
}, [c, f,
|
|
1437
|
+
}, [c, f, x, g]), u.useEffect(() => {
|
|
1648
1438
|
if (a) {
|
|
1649
|
-
const
|
|
1650
|
-
const
|
|
1651
|
-
y ?
|
|
1439
|
+
const h = (v) => {
|
|
1440
|
+
const b = v.target, C = { x: v.clientX, y: v.clientY }, y = c?.contains(b) || f?.contains(b), j = !Xo(C, a);
|
|
1441
|
+
y ? g() : j && (g(), d());
|
|
1652
1442
|
};
|
|
1653
|
-
return document.addEventListener("pointermove",
|
|
1443
|
+
return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
|
|
1654
1444
|
}
|
|
1655
|
-
}, [c, f, a,
|
|
1656
|
-
}), [
|
|
1445
|
+
}, [c, f, a, d, g]), /* @__PURE__ */ n.jsx(yr, { ...e, ref: i });
|
|
1446
|
+
}), [Ho, Uo] = he(Z, { isInside: !1 }), Ko = Dr("TooltipContent"), yr = u.forwardRef(
|
|
1657
1447
|
(e, t) => {
|
|
1658
1448
|
const {
|
|
1659
1449
|
__scopeTooltip: r,
|
|
@@ -1662,29 +1452,28 @@ var K = "TooltipContent", Mr = d.forwardRef(
|
|
|
1662
1452
|
onEscapeKeyDown: i,
|
|
1663
1453
|
onPointerDownOutside: a,
|
|
1664
1454
|
...l
|
|
1665
|
-
} = e, c =
|
|
1666
|
-
return
|
|
1455
|
+
} = e, c = re(H, r), d = pe(r), { onClose: f } = c;
|
|
1456
|
+
return u.useEffect(() => (document.addEventListener(Ne, f), () => document.removeEventListener(Ne, f)), [f]), u.useEffect(() => {
|
|
1667
1457
|
if (c.trigger) {
|
|
1668
|
-
const
|
|
1669
|
-
|
|
1670
|
-
h != null && h.contains(c.trigger) && f();
|
|
1458
|
+
const m = (g) => {
|
|
1459
|
+
g.target?.contains(c.trigger) && f();
|
|
1671
1460
|
};
|
|
1672
|
-
return window.addEventListener("scroll",
|
|
1461
|
+
return window.addEventListener("scroll", m, { capture: !0 }), () => window.removeEventListener("scroll", m, { capture: !0 });
|
|
1673
1462
|
}
|
|
1674
1463
|
}, [c.trigger, f]), /* @__PURE__ */ n.jsx(
|
|
1675
|
-
|
|
1464
|
+
Ar,
|
|
1676
1465
|
{
|
|
1677
1466
|
asChild: !0,
|
|
1678
1467
|
disableOutsidePointerEvents: !1,
|
|
1679
1468
|
onEscapeKeyDown: i,
|
|
1680
1469
|
onPointerDownOutside: a,
|
|
1681
|
-
onFocusOutside: (
|
|
1470
|
+
onFocusOutside: (m) => m.preventDefault(),
|
|
1682
1471
|
onDismiss: f,
|
|
1683
1472
|
children: /* @__PURE__ */ n.jsxs(
|
|
1684
|
-
|
|
1473
|
+
Mr,
|
|
1685
1474
|
{
|
|
1686
1475
|
"data-state": c.stateAttribute,
|
|
1687
|
-
...
|
|
1476
|
+
...d,
|
|
1688
1477
|
...l,
|
|
1689
1478
|
ref: t,
|
|
1690
1479
|
style: {
|
|
@@ -1696,8 +1485,8 @@ var K = "TooltipContent", Mr = d.forwardRef(
|
|
|
1696
1485
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1697
1486
|
},
|
|
1698
1487
|
children: [
|
|
1699
|
-
/* @__PURE__ */ n.jsx(
|
|
1700
|
-
/* @__PURE__ */ n.jsx(
|
|
1488
|
+
/* @__PURE__ */ n.jsx(Ko, { children: o }),
|
|
1489
|
+
/* @__PURE__ */ n.jsx(Ho, { scope: r, isInside: !0, children: /* @__PURE__ */ n.jsx(Fr, { id: c.contentId, role: "tooltip", children: s || o }) })
|
|
1701
1490
|
]
|
|
1702
1491
|
}
|
|
1703
1492
|
)
|
|
@@ -1705,18 +1494,18 @@ var K = "TooltipContent", Mr = d.forwardRef(
|
|
|
1705
1494
|
);
|
|
1706
1495
|
}
|
|
1707
1496
|
);
|
|
1708
|
-
|
|
1709
|
-
var
|
|
1497
|
+
vr.displayName = H;
|
|
1498
|
+
var Cr = "TooltipArrow", jr = u.forwardRef(
|
|
1710
1499
|
(e, t) => {
|
|
1711
|
-
const { __scopeTooltip: r, ...o } = e, s =
|
|
1712
|
-
return
|
|
1713
|
-
|
|
1500
|
+
const { __scopeTooltip: r, ...o } = e, s = pe(r);
|
|
1501
|
+
return Uo(
|
|
1502
|
+
Cr,
|
|
1714
1503
|
r
|
|
1715
|
-
).isInside ? null : /* @__PURE__ */ n.jsx(
|
|
1504
|
+
).isInside ? null : /* @__PURE__ */ n.jsx(Pr, { ...s, ...o, ref: t });
|
|
1716
1505
|
}
|
|
1717
1506
|
);
|
|
1718
|
-
|
|
1719
|
-
function
|
|
1507
|
+
jr.displayName = Cr;
|
|
1508
|
+
function qo(e, t) {
|
|
1720
1509
|
const r = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), s = Math.abs(t.right - e.x), i = Math.abs(t.left - e.x);
|
|
1721
1510
|
switch (Math.min(r, o, s, i)) {
|
|
1722
1511
|
case i:
|
|
@@ -1731,7 +1520,7 @@ function ws(e, t) {
|
|
|
1731
1520
|
throw new Error("unreachable");
|
|
1732
1521
|
}
|
|
1733
1522
|
}
|
|
1734
|
-
function
|
|
1523
|
+
function Yo(e, t, r = 5) {
|
|
1735
1524
|
const o = [];
|
|
1736
1525
|
switch (t) {
|
|
1737
1526
|
case "top":
|
|
@@ -1761,7 +1550,7 @@ function js(e, t, r = 5) {
|
|
|
1761
1550
|
}
|
|
1762
1551
|
return o;
|
|
1763
1552
|
}
|
|
1764
|
-
function
|
|
1553
|
+
function Wo(e) {
|
|
1765
1554
|
const { top: t, right: r, bottom: o, left: s } = e;
|
|
1766
1555
|
return [
|
|
1767
1556
|
{ x: s, y: t },
|
|
@@ -1770,20 +1559,20 @@ function Ss(e) {
|
|
|
1770
1559
|
{ x: s, y: o }
|
|
1771
1560
|
];
|
|
1772
1561
|
}
|
|
1773
|
-
function
|
|
1562
|
+
function Xo(e, t) {
|
|
1774
1563
|
const { x: r, y: o } = e;
|
|
1775
1564
|
let s = !1;
|
|
1776
1565
|
for (let i = 0, a = t.length - 1; i < t.length; a = i++) {
|
|
1777
|
-
const l = t[i], c = t[a],
|
|
1778
|
-
f > o !=
|
|
1566
|
+
const l = t[i], c = t[a], d = l.x, f = l.y, m = c.x, g = c.y;
|
|
1567
|
+
f > o != g > o && r < (m - d) * (o - f) / (g - f) + d && (s = !s);
|
|
1779
1568
|
}
|
|
1780
1569
|
return s;
|
|
1781
1570
|
}
|
|
1782
|
-
function
|
|
1571
|
+
function Zo(e) {
|
|
1783
1572
|
const t = e.slice();
|
|
1784
|
-
return t.sort((r, o) => r.x < o.x ? -1 : r.x > o.x ? 1 : r.y < o.y ? -1 : r.y > o.y ? 1 : 0),
|
|
1573
|
+
return t.sort((r, o) => r.x < o.x ? -1 : r.x > o.x ? 1 : r.y < o.y ? -1 : r.y > o.y ? 1 : 0), Qo(t);
|
|
1785
1574
|
}
|
|
1786
|
-
function
|
|
1575
|
+
function Qo(e) {
|
|
1787
1576
|
if (e.length <= 1) return e.slice();
|
|
1788
1577
|
const t = [];
|
|
1789
1578
|
for (let o = 0; o < e.length; o++) {
|
|
@@ -1808,60 +1597,60 @@ function Ps(e) {
|
|
|
1808
1597
|
}
|
|
1809
1598
|
return r.pop(), t.length === 1 && r.length === 1 && t[0].x === r[0].x && t[0].y === r[0].y ? t : t.concat(r);
|
|
1810
1599
|
}
|
|
1811
|
-
var
|
|
1812
|
-
const
|
|
1600
|
+
var Jo = xr, es = hr, ts = pr, rs = br, ns = vr, os = jr;
|
|
1601
|
+
const ui = ({
|
|
1813
1602
|
items: e,
|
|
1814
1603
|
classNames: t,
|
|
1815
1604
|
showDivider: r,
|
|
1816
1605
|
defaultValue: o
|
|
1817
1606
|
}) => /* @__PURE__ */ n.jsx(
|
|
1818
|
-
|
|
1607
|
+
Lr,
|
|
1819
1608
|
{
|
|
1820
|
-
className: p("flex flex-col space-y-4", t
|
|
1609
|
+
className: p("flex flex-col space-y-4", t?.container),
|
|
1821
1610
|
type: "single",
|
|
1822
1611
|
defaultValue: o,
|
|
1823
1612
|
collapsible: !0,
|
|
1824
|
-
children: e
|
|
1613
|
+
children: e?.map((s) => /* @__PURE__ */ n.jsxs(Or, { className: t?.item, value: s.id, children: [
|
|
1825
1614
|
/* @__PURE__ */ n.jsx(
|
|
1826
|
-
|
|
1615
|
+
Vr,
|
|
1827
1616
|
{
|
|
1828
|
-
className: t
|
|
1829
|
-
triggerIcon: s
|
|
1617
|
+
className: t?.trigger,
|
|
1618
|
+
triggerIcon: s?.triggerIcon,
|
|
1830
1619
|
children: s.title
|
|
1831
1620
|
}
|
|
1832
1621
|
),
|
|
1833
1622
|
/* @__PURE__ */ n.jsx(
|
|
1834
|
-
|
|
1623
|
+
Br,
|
|
1835
1624
|
{
|
|
1836
1625
|
showDivider: r,
|
|
1837
|
-
dividerClassName: t
|
|
1838
|
-
className: t
|
|
1626
|
+
dividerClassName: t?.divider,
|
|
1627
|
+
className: t?.content,
|
|
1839
1628
|
children: s.content
|
|
1840
1629
|
}
|
|
1841
1630
|
)
|
|
1842
1631
|
] }, s.id))
|
|
1843
1632
|
}
|
|
1844
|
-
),
|
|
1845
|
-
success: /* @__PURE__ */ n.jsx(
|
|
1846
|
-
info: /* @__PURE__ */ n.jsx(
|
|
1847
|
-
warning: /* @__PURE__ */ n.jsx(
|
|
1848
|
-
error: /* @__PURE__ */ n.jsx(
|
|
1849
|
-
},
|
|
1633
|
+
), ss = {
|
|
1634
|
+
success: /* @__PURE__ */ n.jsx(ut, { width: 24, height: 24 }),
|
|
1635
|
+
info: /* @__PURE__ */ n.jsx(dt, { width: 24, height: 24 }),
|
|
1636
|
+
warning: /* @__PURE__ */ n.jsx(ct, { width: 24, height: 24 }),
|
|
1637
|
+
error: /* @__PURE__ */ n.jsx(lt, { width: 24, height: 24 })
|
|
1638
|
+
}, as = {
|
|
1850
1639
|
success: "text-green-6",
|
|
1851
1640
|
info: "text-blue-6",
|
|
1852
1641
|
warning: "text-gold-6",
|
|
1853
1642
|
error: "text-red-6"
|
|
1854
|
-
},
|
|
1643
|
+
}, is = {
|
|
1855
1644
|
success: "text-gray-6 hover:bg-gray-100 cursor-pointer",
|
|
1856
1645
|
error: "text-gray-6 hover:bg-gray-100 cursor-pointer",
|
|
1857
1646
|
warning: "text-gray-6 hover:bg-gray-100 cursor-pointer",
|
|
1858
1647
|
info: "text-gray-6 hover:bg-gray-100 cursor-pointer"
|
|
1859
|
-
},
|
|
1648
|
+
}, ls = {
|
|
1860
1649
|
success: "bg-green-1 border border-green-3",
|
|
1861
1650
|
info: "bg-blue-1 border border-blue-3",
|
|
1862
1651
|
warning: "bg-gold-1 border border-gold-3",
|
|
1863
1652
|
error: "bg-red-1 border border-red-3"
|
|
1864
|
-
},
|
|
1653
|
+
}, mi = ({
|
|
1865
1654
|
type: e = "info",
|
|
1866
1655
|
title: t,
|
|
1867
1656
|
description: r,
|
|
@@ -1872,28 +1661,28 @@ const Ni = ({
|
|
|
1872
1661
|
children: l,
|
|
1873
1662
|
...c
|
|
1874
1663
|
}) => {
|
|
1875
|
-
const
|
|
1664
|
+
const d = !!t && !r && !l || !t && !!r && !l;
|
|
1876
1665
|
return /* @__PURE__ */ n.jsxs(
|
|
1877
|
-
|
|
1666
|
+
T.div,
|
|
1878
1667
|
{
|
|
1879
1668
|
initial: { opacity: 0, y: -10 },
|
|
1880
1669
|
animate: { opacity: 1, y: 0 },
|
|
1881
1670
|
exit: { opacity: 0, y: -10 },
|
|
1882
1671
|
transition: { duration: 0.2 },
|
|
1883
|
-
className: p("relative border rounded-lg p-4",
|
|
1672
|
+
className: p("relative border rounded-lg p-4", ls[e], {
|
|
1884
1673
|
[a]: a
|
|
1885
1674
|
}),
|
|
1886
1675
|
...c,
|
|
1887
1676
|
children: [
|
|
1888
|
-
/* @__PURE__ */ n.jsxs(
|
|
1889
|
-
o && /* @__PURE__ */ n.jsx("div", { className: p("shrink-0",
|
|
1677
|
+
/* @__PURE__ */ n.jsxs(W, { gap: 4, align: d ? "center" : "start", children: [
|
|
1678
|
+
o && /* @__PURE__ */ n.jsx("div", { className: p("shrink-0", as[e]), children: ss[e] }),
|
|
1890
1679
|
/* @__PURE__ */ n.jsxs(
|
|
1891
|
-
|
|
1680
|
+
W,
|
|
1892
1681
|
{
|
|
1893
|
-
direction:
|
|
1682
|
+
direction: d ? "horizontal" : "vertical",
|
|
1894
1683
|
gap: 0,
|
|
1895
1684
|
className: "flex-1 min-w-0",
|
|
1896
|
-
align:
|
|
1685
|
+
align: d ? "center" : "start",
|
|
1897
1686
|
children: [
|
|
1898
1687
|
t && /* @__PURE__ */ n.jsx("h4", { className: "text-base font-medium leading-tight text-gray-12", children: t }),
|
|
1899
1688
|
r && /* @__PURE__ */ n.jsx(
|
|
@@ -1901,7 +1690,7 @@ const Ni = ({
|
|
|
1901
1690
|
{
|
|
1902
1691
|
className: p(
|
|
1903
1692
|
"text-sm font-medium leading-tight text-gray-12",
|
|
1904
|
-
{ "mt-2": !!t && !
|
|
1693
|
+
{ "mt-2": !!t && !d }
|
|
1905
1694
|
),
|
|
1906
1695
|
children: r
|
|
1907
1696
|
}
|
|
@@ -1917,16 +1706,16 @@ const Ni = ({
|
|
|
1917
1706
|
onClick: i,
|
|
1918
1707
|
className: p(
|
|
1919
1708
|
"absolute top-4 right-4 p-1 rounded transition-colors",
|
|
1920
|
-
|
|
1709
|
+
is[e]
|
|
1921
1710
|
),
|
|
1922
1711
|
"aria-label": "Cerrar alerta",
|
|
1923
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1712
|
+
children: /* @__PURE__ */ n.jsx(Pe, { width: 16, height: 16 })
|
|
1924
1713
|
}
|
|
1925
1714
|
)
|
|
1926
1715
|
]
|
|
1927
1716
|
}
|
|
1928
1717
|
);
|
|
1929
|
-
},
|
|
1718
|
+
}, fi = ({
|
|
1930
1719
|
children: e,
|
|
1931
1720
|
className: t = "",
|
|
1932
1721
|
align: r = "horizontal",
|
|
@@ -1961,7 +1750,7 @@ const Ni = ({
|
|
|
1961
1750
|
}
|
|
1962
1751
|
);
|
|
1963
1752
|
return /* @__PURE__ */ n.jsx(
|
|
1964
|
-
|
|
1753
|
+
T.div,
|
|
1965
1754
|
{
|
|
1966
1755
|
initial: { opacity: 0, scale: 0.95 },
|
|
1967
1756
|
animate: { opacity: 1, scale: 1 },
|
|
@@ -1972,7 +1761,7 @@ const Ni = ({
|
|
|
1972
1761
|
children: e
|
|
1973
1762
|
}
|
|
1974
1763
|
);
|
|
1975
|
-
},
|
|
1764
|
+
}, gi = ({
|
|
1976
1765
|
children: e,
|
|
1977
1766
|
className: t,
|
|
1978
1767
|
width: r = "min-w-full w-full",
|
|
@@ -2007,16 +1796,16 @@ const Ni = ({
|
|
|
2007
1796
|
)
|
|
2008
1797
|
}
|
|
2009
1798
|
);
|
|
2010
|
-
},
|
|
1799
|
+
}, q = {
|
|
2011
1800
|
backdrop: "fixed inset-0 bg-black/50",
|
|
2012
1801
|
drawer: "fixed top-0 h-full w-80 bg-white shadow-xl",
|
|
2013
1802
|
header: "flex justify-end absolute right-7",
|
|
2014
1803
|
closeButton: "text-gray-500 hover:text-gray-700",
|
|
2015
1804
|
children: "overflow-y-auto h-[calc(100%-3rem)]"
|
|
2016
|
-
},
|
|
1805
|
+
}, cs = {
|
|
2017
1806
|
right: "right-0",
|
|
2018
1807
|
left: "left-0"
|
|
2019
|
-
},
|
|
1808
|
+
}, se = {
|
|
2020
1809
|
backdrop: {
|
|
2021
1810
|
initial: { opacity: 0 },
|
|
2022
1811
|
animate: { opacity: 1 },
|
|
@@ -2025,7 +1814,7 @@ const Ni = ({
|
|
|
2025
1814
|
drawer: {
|
|
2026
1815
|
transition: { type: "tween", duration: 0.2 }
|
|
2027
1816
|
}
|
|
2028
|
-
},
|
|
1817
|
+
}, xi = ({
|
|
2029
1818
|
open: e,
|
|
2030
1819
|
onClose: t,
|
|
2031
1820
|
children: r,
|
|
@@ -2037,74 +1826,74 @@ const Ni = ({
|
|
|
2037
1826
|
l.key === "Escape" && t();
|
|
2038
1827
|
};
|
|
2039
1828
|
return e && document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
|
|
2040
|
-
}, [e, t]), /* @__PURE__ */ n.jsx(
|
|
1829
|
+
}, [e, t]), /* @__PURE__ */ n.jsx($r, { id: "drawer", children: /* @__PURE__ */ n.jsx(Ie, { children: e && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2041
1830
|
/* @__PURE__ */ n.jsx(
|
|
2042
|
-
|
|
1831
|
+
T.div,
|
|
2043
1832
|
{
|
|
2044
|
-
className: p(
|
|
2045
|
-
initial:
|
|
2046
|
-
animate:
|
|
2047
|
-
exit:
|
|
1833
|
+
className: p(q.backdrop, i.backdrop),
|
|
1834
|
+
initial: se.backdrop.initial,
|
|
1835
|
+
animate: se.backdrop.animate,
|
|
1836
|
+
exit: se.backdrop.exit,
|
|
2048
1837
|
onClick: t
|
|
2049
1838
|
}
|
|
2050
1839
|
),
|
|
2051
1840
|
/* @__PURE__ */ n.jsxs(
|
|
2052
|
-
|
|
1841
|
+
T.div,
|
|
2053
1842
|
{
|
|
2054
1843
|
className: p(
|
|
2055
|
-
|
|
2056
|
-
|
|
1844
|
+
q.drawer,
|
|
1845
|
+
cs[o],
|
|
2057
1846
|
i.drawer,
|
|
2058
1847
|
s
|
|
2059
1848
|
),
|
|
2060
1849
|
initial: { x: o === "right" ? "100%" : "-100%" },
|
|
2061
1850
|
animate: { x: 0 },
|
|
2062
1851
|
exit: { x: o === "right" ? "100%" : "-100%" },
|
|
2063
|
-
transition:
|
|
1852
|
+
transition: se.drawer.transition,
|
|
2064
1853
|
children: [
|
|
2065
|
-
/* @__PURE__ */ n.jsx("div", { className: p(
|
|
2066
|
-
/* @__PURE__ */ n.jsx("div", { className: p(
|
|
1854
|
+
/* @__PURE__ */ n.jsx("div", { className: p(q.header, i.header), children: /* @__PURE__ */ n.jsx("button", { onClick: t, className: q.closeButton, children: "✕" }) }),
|
|
1855
|
+
/* @__PURE__ */ n.jsx("div", { className: p(q.children, i.children), children: r })
|
|
2067
1856
|
]
|
|
2068
1857
|
}
|
|
2069
1858
|
)
|
|
2070
|
-
] }) }) })),
|
|
1859
|
+
] }) }) })), ae = {
|
|
2071
1860
|
container: "container mx-auto",
|
|
2072
1861
|
wrapper: "flex flex-col items-center",
|
|
2073
1862
|
icon: "text-3xl text-gray-300",
|
|
2074
1863
|
text: "mt-3 text-base text-gray-300 font-normal"
|
|
2075
|
-
},
|
|
1864
|
+
}, hi = ({
|
|
2076
1865
|
text: e = "No hay datos para mostrar",
|
|
2077
1866
|
className: t = "",
|
|
2078
|
-
icon: r = /* @__PURE__ */ n.jsx(
|
|
2079
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
2080
|
-
|
|
1867
|
+
icon: r = /* @__PURE__ */ n.jsx(mn, {})
|
|
1868
|
+
}) => /* @__PURE__ */ n.jsx(Gr, { children: /* @__PURE__ */ n.jsx(
|
|
1869
|
+
T.section,
|
|
2081
1870
|
{
|
|
2082
1871
|
"data-cy": "empty-component",
|
|
2083
1872
|
initial: { opacity: 0, y: 8 },
|
|
2084
1873
|
animate: { opacity: 1, y: 0 },
|
|
2085
1874
|
transition: { duration: 0.25, ease: "easeOut" },
|
|
2086
|
-
className: p(
|
|
2087
|
-
children: /* @__PURE__ */ n.jsxs("div", { className:
|
|
1875
|
+
className: p(ae.container, t),
|
|
1876
|
+
children: /* @__PURE__ */ n.jsxs("div", { className: ae.wrapper, children: [
|
|
2088
1877
|
/* @__PURE__ */ n.jsx(
|
|
2089
|
-
|
|
1878
|
+
T.div,
|
|
2090
1879
|
{
|
|
2091
1880
|
initial: { scale: 0.9 },
|
|
2092
1881
|
animate: { scale: 1 },
|
|
2093
1882
|
transition: { duration: 0.2 },
|
|
2094
|
-
children:
|
|
1883
|
+
children: ln(r, {
|
|
1884
|
+
...r.props,
|
|
2095
1885
|
className: p(
|
|
2096
|
-
|
|
1886
|
+
ae.icon,
|
|
2097
1887
|
r.props.className
|
|
2098
|
-
)
|
|
2099
|
-
...r.props
|
|
1888
|
+
)
|
|
2100
1889
|
})
|
|
2101
1890
|
}
|
|
2102
1891
|
),
|
|
2103
1892
|
/* @__PURE__ */ n.jsx(
|
|
2104
|
-
|
|
1893
|
+
T.h1,
|
|
2105
1894
|
{
|
|
2106
1895
|
"data-cy": "empty-text",
|
|
2107
|
-
className:
|
|
1896
|
+
className: ae.text,
|
|
2108
1897
|
initial: { opacity: 0 },
|
|
2109
1898
|
animate: { opacity: 1 },
|
|
2110
1899
|
transition: { delay: 0.1 },
|
|
@@ -2113,7 +1902,7 @@ const Ni = ({
|
|
|
2113
1902
|
)
|
|
2114
1903
|
] })
|
|
2115
1904
|
}
|
|
2116
|
-
) }),
|
|
1905
|
+
) }), ds = ({
|
|
2117
1906
|
error: e,
|
|
2118
1907
|
size: t = "md",
|
|
2119
1908
|
check: r,
|
|
@@ -2123,15 +1912,15 @@ const Ni = ({
|
|
|
2123
1912
|
disabled: a = !1,
|
|
2124
1913
|
variant: l = "default",
|
|
2125
1914
|
className: c,
|
|
2126
|
-
...
|
|
1915
|
+
...d
|
|
2127
1916
|
}) => {
|
|
2128
|
-
const [f,
|
|
1917
|
+
const [f, m] = F(d.value ?? ""), { baseStyles: g, variantStyles: x, sizeStyles: h, stateStyles: v } = Hr(
|
|
2129
1918
|
l,
|
|
2130
1919
|
t,
|
|
2131
1920
|
e,
|
|
2132
1921
|
r,
|
|
2133
1922
|
!!o
|
|
2134
|
-
),
|
|
1923
|
+
), b = ue(() => i && f ? /* @__PURE__ */ n.jsx(zr, { disabled: a, onClick: () => m("") }) : s ? /* @__PURE__ */ n.jsx(
|
|
2135
1924
|
"div",
|
|
2136
1925
|
{
|
|
2137
1926
|
className: p("absolute right-3 top-1/2 -translate-y-1/2", {
|
|
@@ -2151,47 +1940,47 @@ const Ni = ({
|
|
|
2151
1940
|
}
|
|
2152
1941
|
),
|
|
2153
1942
|
/* @__PURE__ */ n.jsx(
|
|
2154
|
-
|
|
1943
|
+
T.input,
|
|
2155
1944
|
{
|
|
2156
|
-
...
|
|
1945
|
+
...d,
|
|
2157
1946
|
value: f,
|
|
2158
1947
|
disabled: a,
|
|
2159
|
-
onChange: (C) =>
|
|
1948
|
+
onChange: (C) => m(C.target.value),
|
|
2160
1949
|
className: p(
|
|
1950
|
+
...g,
|
|
2161
1951
|
...x,
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
b,
|
|
1952
|
+
h,
|
|
1953
|
+
v,
|
|
2165
1954
|
c
|
|
2166
1955
|
)
|
|
2167
1956
|
}
|
|
2168
1957
|
),
|
|
2169
|
-
/* @__PURE__ */ n.jsx(
|
|
1958
|
+
/* @__PURE__ */ n.jsx(Ie, { children: b })
|
|
2170
1959
|
] });
|
|
2171
|
-
},
|
|
2172
|
-
Text:
|
|
2173
|
-
Number:
|
|
2174
|
-
},
|
|
1960
|
+
}, pi = {
|
|
1961
|
+
Text: ds,
|
|
1962
|
+
Number: Ur
|
|
1963
|
+
}, us = ({ title: e, className: t = "" }) => /* @__PURE__ */ n.jsx(Kr.Title, { level: 3, className: t, children: e }), ms = {
|
|
2175
1964
|
sm: "12rem",
|
|
2176
1965
|
md: "16rem",
|
|
2177
1966
|
lg: "20rem",
|
|
2178
1967
|
xl: "24rem"
|
|
2179
|
-
},
|
|
1968
|
+
}, fs = {
|
|
2180
1969
|
sm: "w-56",
|
|
2181
1970
|
md: "w-64",
|
|
2182
1971
|
lg: "w-80",
|
|
2183
1972
|
xl: "w-96"
|
|
2184
|
-
},
|
|
1973
|
+
}, gs = {
|
|
2185
1974
|
sm: "px-2 py-1.5",
|
|
2186
1975
|
md: "px-3 py-2",
|
|
2187
1976
|
lg: "px-4 py-2.5",
|
|
2188
1977
|
xl: "px-5 py-3"
|
|
2189
|
-
},
|
|
1978
|
+
}, wr = {
|
|
2190
1979
|
sm: "text-sm",
|
|
2191
1980
|
md: "text-base",
|
|
2192
1981
|
lg: "text-lg",
|
|
2193
1982
|
xl: "text-xl"
|
|
2194
|
-
},
|
|
1983
|
+
}, xs = ({
|
|
2195
1984
|
item: e,
|
|
2196
1985
|
index: t,
|
|
2197
1986
|
isLast: r,
|
|
@@ -2200,7 +1989,7 @@ const Ni = ({
|
|
|
2200
1989
|
}) => {
|
|
2201
1990
|
const i = e.href ? "a" : "button", a = e.href ? { href: e.href } : { onClick: e.onClick, type: "button" };
|
|
2202
1991
|
return /* @__PURE__ */ n.jsx(
|
|
2203
|
-
|
|
1992
|
+
T.li,
|
|
2204
1993
|
{
|
|
2205
1994
|
initial: { opacity: 0, x: -10 },
|
|
2206
1995
|
animate: { opacity: 1, x: 0 },
|
|
@@ -2217,8 +2006,8 @@ const Ni = ({
|
|
|
2217
2006
|
disabled: e.disabled,
|
|
2218
2007
|
className: p(
|
|
2219
2008
|
"w-full text-left block",
|
|
2220
|
-
|
|
2221
|
-
|
|
2009
|
+
gs[o],
|
|
2010
|
+
wr[o],
|
|
2222
2011
|
"text-gray-12 no-underline",
|
|
2223
2012
|
"focus:outline-none focus:ring-2 focus:ring-primary-blue focus:ring-inset",
|
|
2224
2013
|
{
|
|
@@ -2233,16 +2022,16 @@ const Ni = ({
|
|
|
2233
2022
|
},
|
|
2234
2023
|
e.id
|
|
2235
2024
|
);
|
|
2236
|
-
},
|
|
2025
|
+
}, hs = ({ message: e, size: t }) => /* @__PURE__ */ n.jsx(
|
|
2237
2026
|
"li",
|
|
2238
2027
|
{
|
|
2239
2028
|
className: p(
|
|
2240
2029
|
"flex items-center justify-center h-full text-gray-9",
|
|
2241
|
-
|
|
2030
|
+
wr[t]
|
|
2242
2031
|
),
|
|
2243
2032
|
children: e
|
|
2244
2033
|
}
|
|
2245
|
-
),
|
|
2034
|
+
), ps = ({
|
|
2246
2035
|
paginatedItems: e,
|
|
2247
2036
|
containerHeight: t,
|
|
2248
2037
|
size: r,
|
|
@@ -2255,30 +2044,30 @@ const Ni = ({
|
|
|
2255
2044
|
"ul",
|
|
2256
2045
|
{
|
|
2257
2046
|
style: { height: o ? "auto" : t },
|
|
2258
|
-
className: p(
|
|
2047
|
+
className: p(fs[r], "rounded-lg", {
|
|
2259
2048
|
"border border-gray-6": s,
|
|
2260
2049
|
"shadow-md": i,
|
|
2261
2050
|
"overflow-y-auto scroll-smooth": !o
|
|
2262
2051
|
}),
|
|
2263
|
-
children: e.length === 0 ? /* @__PURE__ */ n.jsx(
|
|
2264
|
-
|
|
2052
|
+
children: e.length === 0 ? /* @__PURE__ */ n.jsx(hs, { message: a, size: r }) : e.map((c, d) => /* @__PURE__ */ n.jsx(
|
|
2053
|
+
xs,
|
|
2265
2054
|
{
|
|
2266
2055
|
item: c,
|
|
2267
|
-
index:
|
|
2268
|
-
isLast:
|
|
2056
|
+
index: d,
|
|
2057
|
+
isLast: d === e.length - 1,
|
|
2269
2058
|
size: r,
|
|
2270
2059
|
itemClassName: l
|
|
2271
2060
|
},
|
|
2272
2061
|
c.id
|
|
2273
2062
|
))
|
|
2274
2063
|
}
|
|
2275
|
-
),
|
|
2064
|
+
), bs = (e, t, r, o) => ue(() => {
|
|
2276
2065
|
if (!t) return e;
|
|
2277
2066
|
const s = (r - 1) * o, i = s + o;
|
|
2278
2067
|
return e.slice(s, i);
|
|
2279
|
-
}, [e, t, r, o]),
|
|
2068
|
+
}, [e, t, r, o]), vs = (e, t) => ue(() => Math.ceil(e / t), [e, t]), ys = (e, t) => t || ms[e], Cs = (e) => (t) => {
|
|
2280
2069
|
e && e(t);
|
|
2281
|
-
},
|
|
2070
|
+
}, bi = ({
|
|
2282
2071
|
items: e,
|
|
2283
2072
|
title: t,
|
|
2284
2073
|
size: r = "md",
|
|
@@ -2288,57 +2077,57 @@ const Ni = ({
|
|
|
2288
2077
|
onPageChange: a,
|
|
2289
2078
|
showBorder: l = !0,
|
|
2290
2079
|
showShadow: c = !0,
|
|
2291
|
-
height:
|
|
2080
|
+
height: d,
|
|
2292
2081
|
className: f = "",
|
|
2293
|
-
titleClassName:
|
|
2294
|
-
itemClassName:
|
|
2295
|
-
emptyMessage:
|
|
2296
|
-
onAnimationStart:
|
|
2297
|
-
onAnimationEnd:
|
|
2298
|
-
onAnimationIteration:
|
|
2082
|
+
titleClassName: m = "",
|
|
2083
|
+
itemClassName: g = "",
|
|
2084
|
+
emptyMessage: x = "No items to display",
|
|
2085
|
+
onAnimationStart: h,
|
|
2086
|
+
onAnimationEnd: v,
|
|
2087
|
+
onAnimationIteration: b,
|
|
2299
2088
|
...C
|
|
2300
2089
|
}) => {
|
|
2301
|
-
const y =
|
|
2090
|
+
const y = bs(
|
|
2302
2091
|
e,
|
|
2303
2092
|
o,
|
|
2304
2093
|
s,
|
|
2305
2094
|
i
|
|
2306
|
-
),
|
|
2095
|
+
), j = vs(e.length, i), w = ys(r, d), I = Cs(a);
|
|
2307
2096
|
return /* @__PURE__ */ n.jsx(
|
|
2308
2097
|
"div",
|
|
2309
2098
|
{
|
|
2310
|
-
onAnimationStart:
|
|
2311
|
-
onAnimationEnd:
|
|
2312
|
-
onAnimationIteration:
|
|
2099
|
+
onAnimationStart: h,
|
|
2100
|
+
onAnimationEnd: v,
|
|
2101
|
+
onAnimationIteration: b,
|
|
2313
2102
|
...C,
|
|
2314
2103
|
children: /* @__PURE__ */ n.jsxs(
|
|
2315
|
-
|
|
2104
|
+
T.div,
|
|
2316
2105
|
{
|
|
2317
2106
|
initial: { opacity: 0, y: -10 },
|
|
2318
2107
|
animate: { opacity: 1, y: 0 },
|
|
2319
2108
|
transition: { duration: 0.3 },
|
|
2320
2109
|
className: p("flex flex-col", { [f]: f }),
|
|
2321
2110
|
children: [
|
|
2322
|
-
t && /* @__PURE__ */ n.jsx(
|
|
2111
|
+
t && /* @__PURE__ */ n.jsx(us, { title: t, size: r, className: m }),
|
|
2323
2112
|
/* @__PURE__ */ n.jsx(
|
|
2324
|
-
|
|
2113
|
+
ps,
|
|
2325
2114
|
{
|
|
2326
2115
|
paginatedItems: y,
|
|
2327
|
-
containerHeight:
|
|
2116
|
+
containerHeight: w,
|
|
2328
2117
|
size: r,
|
|
2329
2118
|
withPagination: o,
|
|
2330
2119
|
showBorder: l,
|
|
2331
2120
|
showShadow: c,
|
|
2332
|
-
emptyMessage:
|
|
2333
|
-
itemClassName:
|
|
2121
|
+
emptyMessage: x,
|
|
2122
|
+
itemClassName: g
|
|
2334
2123
|
}
|
|
2335
2124
|
),
|
|
2336
|
-
o &&
|
|
2337
|
-
|
|
2125
|
+
o && j > 1 && /* @__PURE__ */ n.jsx(
|
|
2126
|
+
Ps,
|
|
2338
2127
|
{
|
|
2339
2128
|
currentPage: s,
|
|
2340
|
-
totalPages:
|
|
2341
|
-
onPageChange:
|
|
2129
|
+
totalPages: j,
|
|
2130
|
+
onPageChange: I,
|
|
2342
2131
|
size: r
|
|
2343
2132
|
}
|
|
2344
2133
|
)
|
|
@@ -2347,33 +2136,33 @@ const Ni = ({
|
|
|
2347
2136
|
)
|
|
2348
2137
|
}
|
|
2349
2138
|
);
|
|
2350
|
-
},
|
|
2139
|
+
}, js = {
|
|
2351
2140
|
success: {
|
|
2352
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
2141
|
+
icon: /* @__PURE__ */ n.jsx(xn, { className: "size-6" }),
|
|
2353
2142
|
borderColor: "border-green-6",
|
|
2354
2143
|
iconColor: "text-green-6"
|
|
2355
2144
|
},
|
|
2356
2145
|
error: {
|
|
2357
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
2146
|
+
icon: /* @__PURE__ */ n.jsx(Xe, { className: "size-6" }),
|
|
2358
2147
|
borderColor: "border-primary-red",
|
|
2359
2148
|
iconColor: "text-primary-red"
|
|
2360
2149
|
},
|
|
2361
2150
|
warning: {
|
|
2362
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
2151
|
+
icon: /* @__PURE__ */ n.jsx(gn, { className: "size-6" }),
|
|
2363
2152
|
borderColor: "border-gold-6",
|
|
2364
2153
|
iconColor: "text-gold-6"
|
|
2365
2154
|
},
|
|
2366
2155
|
info: {
|
|
2367
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
2156
|
+
icon: /* @__PURE__ */ n.jsx(fn, { className: "size-6" }),
|
|
2368
2157
|
borderColor: "border-blue-500",
|
|
2369
2158
|
iconColor: "text-blue-500"
|
|
2370
2159
|
},
|
|
2371
2160
|
default: {
|
|
2372
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
2161
|
+
icon: /* @__PURE__ */ n.jsx(Xe, { className: "size-6" }),
|
|
2373
2162
|
borderColor: "border-gray-300",
|
|
2374
2163
|
iconColor: "text-primary-blue"
|
|
2375
2164
|
}
|
|
2376
|
-
},
|
|
2165
|
+
}, ws = (e) => ({
|
|
2377
2166
|
"top-left": {
|
|
2378
2167
|
initial: { opacity: 0, x: -100, scale: 0.95 },
|
|
2379
2168
|
animate: { opacity: 1, x: 0, scale: 1 },
|
|
@@ -2404,24 +2193,24 @@ const Ni = ({
|
|
|
2404
2193
|
animate: { opacity: 1, y: 0, scale: 1 },
|
|
2405
2194
|
exit: { opacity: 0, y: 50, scale: 0.95 }
|
|
2406
2195
|
}
|
|
2407
|
-
})[e || "top-right"],
|
|
2196
|
+
})[e || "top-right"], Ss = ({
|
|
2408
2197
|
onClose: e,
|
|
2409
2198
|
id: t
|
|
2410
2199
|
}) => /* @__PURE__ */ n.jsx(
|
|
2411
2200
|
"button",
|
|
2412
2201
|
{
|
|
2413
2202
|
type: "button",
|
|
2414
|
-
onClick: () => e
|
|
2203
|
+
onClick: () => e?.(t),
|
|
2415
2204
|
className: "absolute top-2 right-2 shrink-0 p-1 rounded-md transition-colors text-gray-10 hover:text-gray-12 hover:bg-gray-4 focus:outline-none focus:ring-2 focus:ring-gray-7 cursor-pointer",
|
|
2416
2205
|
"aria-label": "Close notification",
|
|
2417
|
-
children: /* @__PURE__ */ n.jsx(
|
|
2206
|
+
children: /* @__PURE__ */ n.jsx(Pe, { className: "size-6" })
|
|
2418
2207
|
}
|
|
2419
|
-
),
|
|
2208
|
+
), Ns = ({
|
|
2420
2209
|
IconComponent: e,
|
|
2421
2210
|
iconColor: t,
|
|
2422
2211
|
defaultIconColor: r
|
|
2423
2212
|
}) => e ? /* @__PURE__ */ n.jsx(
|
|
2424
|
-
|
|
2213
|
+
W,
|
|
2425
2214
|
{
|
|
2426
2215
|
align: "center",
|
|
2427
2216
|
justify: "center",
|
|
@@ -2431,7 +2220,7 @@ const Ni = ({
|
|
|
2431
2220
|
),
|
|
2432
2221
|
children: e
|
|
2433
2222
|
}
|
|
2434
|
-
) : null,
|
|
2223
|
+
) : null, vi = ({
|
|
2435
2224
|
type: e = "default",
|
|
2436
2225
|
title: t,
|
|
2437
2226
|
message: r,
|
|
@@ -2441,78 +2230,78 @@ const Ni = ({
|
|
|
2441
2230
|
showIcon: a = !0,
|
|
2442
2231
|
closable: l = !1,
|
|
2443
2232
|
onClose: c,
|
|
2444
|
-
className:
|
|
2233
|
+
className: d = "",
|
|
2445
2234
|
children: f,
|
|
2446
|
-
borderColor:
|
|
2447
|
-
iconColor:
|
|
2448
|
-
...
|
|
2235
|
+
borderColor: m,
|
|
2236
|
+
iconColor: g,
|
|
2237
|
+
...x
|
|
2449
2238
|
}) => {
|
|
2450
|
-
const { initial:
|
|
2239
|
+
const { initial: h, animate: v, exit: b } = ws(i);
|
|
2451
2240
|
D(() => {
|
|
2452
2241
|
if (o > 0) {
|
|
2453
|
-
const
|
|
2454
|
-
c
|
|
2242
|
+
const w = setTimeout(() => {
|
|
2243
|
+
c?.(s);
|
|
2455
2244
|
}, o);
|
|
2456
|
-
return () => clearTimeout(
|
|
2245
|
+
return () => clearTimeout(w);
|
|
2457
2246
|
}
|
|
2458
2247
|
}, [o, s, c]);
|
|
2459
|
-
const C = e ?
|
|
2248
|
+
const C = e ? js[e] : null, y = C?.icon, j = p(
|
|
2460
2249
|
"px-6 py-4 rounded flex gap-4 max-w-96 shadow-md relative border bg-white",
|
|
2461
|
-
|
|
2462
|
-
|
|
2250
|
+
m || C?.borderColor,
|
|
2251
|
+
d
|
|
2463
2252
|
);
|
|
2464
2253
|
return /* @__PURE__ */ n.jsxs(
|
|
2465
|
-
|
|
2254
|
+
T.div,
|
|
2466
2255
|
{
|
|
2467
2256
|
layout: !0,
|
|
2468
|
-
initial:
|
|
2469
|
-
animate:
|
|
2470
|
-
exit:
|
|
2257
|
+
initial: h,
|
|
2258
|
+
animate: v,
|
|
2259
|
+
exit: b,
|
|
2471
2260
|
transition: { duration: 0.35, ease: "easeOut" },
|
|
2472
|
-
className:
|
|
2261
|
+
className: j,
|
|
2473
2262
|
role: "alert",
|
|
2474
2263
|
"aria-live": "polite",
|
|
2475
|
-
...
|
|
2264
|
+
...x,
|
|
2476
2265
|
children: [
|
|
2477
|
-
l && /* @__PURE__ */ n.jsx(
|
|
2266
|
+
l && /* @__PURE__ */ n.jsx(Ss, { onClose: c, id: s }),
|
|
2478
2267
|
a && /* @__PURE__ */ n.jsx(
|
|
2479
|
-
|
|
2268
|
+
Ns,
|
|
2480
2269
|
{
|
|
2481
2270
|
IconComponent: y,
|
|
2482
|
-
iconColor:
|
|
2483
|
-
defaultIconColor: C
|
|
2271
|
+
iconColor: g,
|
|
2272
|
+
defaultIconColor: C?.iconColor
|
|
2484
2273
|
}
|
|
2485
2274
|
),
|
|
2486
|
-
/* @__PURE__ */ n.jsx(
|
|
2275
|
+
/* @__PURE__ */ n.jsx(qr, { title: t, message: r, children: f })
|
|
2487
2276
|
]
|
|
2488
2277
|
}
|
|
2489
2278
|
);
|
|
2490
|
-
},
|
|
2279
|
+
}, qe = {
|
|
2491
2280
|
sm: "text-sm",
|
|
2492
2281
|
md: "text-base",
|
|
2493
2282
|
lg: "text-lg",
|
|
2494
2283
|
xl: "text-xl"
|
|
2495
|
-
},
|
|
2284
|
+
}, Ye = {
|
|
2496
2285
|
sm: "min-w-8 h-8",
|
|
2497
2286
|
md: "min-w-9 h-9",
|
|
2498
2287
|
lg: "min-w-10 h-10",
|
|
2499
2288
|
xl: "min-w-12 h-12"
|
|
2500
|
-
},
|
|
2289
|
+
}, Es = 5, et = ({
|
|
2501
2290
|
onClick: e,
|
|
2502
2291
|
disabled: t,
|
|
2503
2292
|
size: r,
|
|
2504
2293
|
label: o,
|
|
2505
2294
|
children: s
|
|
2506
2295
|
}) => /* @__PURE__ */ n.jsx(
|
|
2507
|
-
|
|
2296
|
+
T.button,
|
|
2508
2297
|
{
|
|
2509
2298
|
whileHover: { scale: 1.05 },
|
|
2510
2299
|
whileTap: { scale: 0.95 },
|
|
2511
2300
|
onClick: e,
|
|
2512
2301
|
disabled: t,
|
|
2513
2302
|
className: p(
|
|
2514
|
-
|
|
2515
|
-
|
|
2303
|
+
Ye[r],
|
|
2304
|
+
qe[r],
|
|
2516
2305
|
"flex items-center justify-center rounded-md border border-gray-6",
|
|
2517
2306
|
"transition-colors duration-200",
|
|
2518
2307
|
"hover:bg-gray-3 active:bg-gray-4",
|
|
@@ -2521,20 +2310,20 @@ const Ni = ({
|
|
|
2521
2310
|
"aria-label": o,
|
|
2522
2311
|
children: s
|
|
2523
2312
|
}
|
|
2524
|
-
),
|
|
2313
|
+
), Rs = ({
|
|
2525
2314
|
pageNumber: e,
|
|
2526
2315
|
isActive: t,
|
|
2527
2316
|
onPageChange: r,
|
|
2528
2317
|
size: o
|
|
2529
2318
|
}) => /* @__PURE__ */ n.jsx(
|
|
2530
|
-
|
|
2319
|
+
T.button,
|
|
2531
2320
|
{
|
|
2532
2321
|
whileHover: { scale: t ? 1 : 1.05 },
|
|
2533
2322
|
whileTap: { scale: 0.95 },
|
|
2534
2323
|
onClick: () => r(e),
|
|
2535
2324
|
className: p(
|
|
2536
|
-
|
|
2537
|
-
|
|
2325
|
+
Ye[o],
|
|
2326
|
+
qe[o],
|
|
2538
2327
|
"flex items-center justify-center rounded-md border transition-colors duration-200",
|
|
2539
2328
|
{
|
|
2540
2329
|
"bg-primary-blue text-white border-primary-blue": t,
|
|
@@ -2546,18 +2335,18 @@ const Ni = ({
|
|
|
2546
2335
|
children: e
|
|
2547
2336
|
},
|
|
2548
2337
|
e
|
|
2549
|
-
),
|
|
2338
|
+
), Ts = ({ prevPage: e, nextPage: t, size: r }) => /* @__PURE__ */ n.jsx(
|
|
2550
2339
|
"span",
|
|
2551
2340
|
{
|
|
2552
2341
|
className: p(
|
|
2553
|
-
|
|
2554
|
-
|
|
2342
|
+
Ye[r],
|
|
2343
|
+
qe[r],
|
|
2555
2344
|
"flex items-center justify-center"
|
|
2556
2345
|
),
|
|
2557
2346
|
children: "..."
|
|
2558
2347
|
},
|
|
2559
2348
|
`ellipsis-${e}-${t}`
|
|
2560
|
-
),
|
|
2349
|
+
), ks = (e, t) => t <= Es ? Array.from({ length: t }, (r, o) => o + 1) : e <= 3 ? [1, 2, 3, 4, "...", t] : e >= t - 2 ? [
|
|
2561
2350
|
1,
|
|
2562
2351
|
"...",
|
|
2563
2352
|
t - 3,
|
|
@@ -2572,20 +2361,20 @@ const Ni = ({
|
|
|
2572
2361
|
e + 1,
|
|
2573
2362
|
"...",
|
|
2574
2363
|
t
|
|
2575
|
-
],
|
|
2364
|
+
], Is = (e, t) => () => {
|
|
2576
2365
|
e > 1 && t(e - 1);
|
|
2577
|
-
},
|
|
2366
|
+
}, _s = (e, t, r) => () => {
|
|
2578
2367
|
e < t && r(e + 1);
|
|
2579
|
-
},
|
|
2368
|
+
}, Ps = ({
|
|
2580
2369
|
currentPage: e,
|
|
2581
2370
|
totalPages: t,
|
|
2582
2371
|
onPageChange: r,
|
|
2583
2372
|
size: o = "md",
|
|
2584
2373
|
className: s = ""
|
|
2585
2374
|
}) => {
|
|
2586
|
-
const i =
|
|
2375
|
+
const i = Is(e, r), a = _s(e, t, r), l = ks(e, t);
|
|
2587
2376
|
return /* @__PURE__ */ n.jsxs(
|
|
2588
|
-
|
|
2377
|
+
T.div,
|
|
2589
2378
|
{
|
|
2590
2379
|
initial: { opacity: 0 },
|
|
2591
2380
|
animate: { opacity: 1 },
|
|
@@ -2594,7 +2383,7 @@ const Ni = ({
|
|
|
2594
2383
|
}),
|
|
2595
2384
|
children: [
|
|
2596
2385
|
/* @__PURE__ */ n.jsx(
|
|
2597
|
-
|
|
2386
|
+
et,
|
|
2598
2387
|
{
|
|
2599
2388
|
onClick: i,
|
|
2600
2389
|
disabled: e === 1,
|
|
@@ -2603,33 +2392,33 @@ const Ni = ({
|
|
|
2603
2392
|
children: "←"
|
|
2604
2393
|
}
|
|
2605
2394
|
),
|
|
2606
|
-
l.map((c,
|
|
2395
|
+
l.map((c, d, f) => {
|
|
2607
2396
|
if (c === "...") {
|
|
2608
|
-
const
|
|
2397
|
+
const x = f[d - 1] || "start", h = f[d + 1] || "end";
|
|
2609
2398
|
return /* @__PURE__ */ n.jsx(
|
|
2610
|
-
|
|
2399
|
+
Ts,
|
|
2611
2400
|
{
|
|
2612
|
-
prevPage:
|
|
2613
|
-
nextPage:
|
|
2401
|
+
prevPage: x,
|
|
2402
|
+
nextPage: h,
|
|
2614
2403
|
size: o
|
|
2615
2404
|
},
|
|
2616
|
-
`ellipsis-${
|
|
2405
|
+
`ellipsis-${x}-${h}`
|
|
2617
2406
|
);
|
|
2618
2407
|
}
|
|
2619
|
-
const
|
|
2408
|
+
const m = c, g = m === e;
|
|
2620
2409
|
return /* @__PURE__ */ n.jsx(
|
|
2621
|
-
|
|
2410
|
+
Rs,
|
|
2622
2411
|
{
|
|
2623
|
-
pageNumber:
|
|
2624
|
-
isActive:
|
|
2412
|
+
pageNumber: m,
|
|
2413
|
+
isActive: g,
|
|
2625
2414
|
onPageChange: r,
|
|
2626
2415
|
size: o
|
|
2627
2416
|
},
|
|
2628
|
-
|
|
2417
|
+
m
|
|
2629
2418
|
);
|
|
2630
2419
|
}),
|
|
2631
2420
|
/* @__PURE__ */ n.jsx(
|
|
2632
|
-
|
|
2421
|
+
et,
|
|
2633
2422
|
{
|
|
2634
2423
|
onClick: a,
|
|
2635
2424
|
disabled: e === t,
|
|
@@ -2641,32 +2430,18 @@ const Ni = ({
|
|
|
2641
2430
|
]
|
|
2642
2431
|
}
|
|
2643
2432
|
);
|
|
2644
|
-
},
|
|
2645
|
-
const [t, r] = Mn({
|
|
2646
|
-
value: e == null ? void 0 : e.open,
|
|
2647
|
-
defaultValue: e == null ? void 0 : e.defaultOpen,
|
|
2648
|
-
onChange: e == null ? void 0 : e.onOpenChange
|
|
2649
|
-
});
|
|
2650
|
-
return /* @__PURE__ */ n.jsx(cn, { value: { open: t, setOpen: r }, children: /* @__PURE__ */ n.jsx(
|
|
2651
|
-
mo,
|
|
2652
|
-
{
|
|
2653
|
-
"data-slot": "popover",
|
|
2654
|
-
...e,
|
|
2655
|
-
onOpenChange: r
|
|
2656
|
-
}
|
|
2657
|
-
) });
|
|
2658
|
-
}, la = {
|
|
2433
|
+
}, As = {
|
|
2659
2434
|
sm: "h-1",
|
|
2660
2435
|
md: "h-2",
|
|
2661
2436
|
lg: "h-3",
|
|
2662
2437
|
xl: "h-4"
|
|
2663
|
-
},
|
|
2438
|
+
}, Ms = {
|
|
2664
2439
|
primary: "bg-primary-blue",
|
|
2665
2440
|
success: "bg-green-500",
|
|
2666
2441
|
warning: "bg-yellow-500",
|
|
2667
2442
|
error: "bg-red-500",
|
|
2668
2443
|
info: "bg-blue-400"
|
|
2669
|
-
},
|
|
2444
|
+
}, yi = ({
|
|
2670
2445
|
value: e = 0,
|
|
2671
2446
|
classNames: t,
|
|
2672
2447
|
indicatorColor: r = "primary",
|
|
@@ -2678,22 +2453,22 @@ const Ni = ({
|
|
|
2678
2453
|
...c
|
|
2679
2454
|
}) => /* @__PURE__ */ n.jsxs("div", { className: "w-full", children: [
|
|
2680
2455
|
/* @__PURE__ */ n.jsx(
|
|
2681
|
-
|
|
2456
|
+
qn,
|
|
2682
2457
|
{
|
|
2683
2458
|
className: p(
|
|
2684
2459
|
"relative w-full overflow-hidden rounded-full bg-gray-200",
|
|
2685
|
-
|
|
2686
|
-
t
|
|
2460
|
+
As[s],
|
|
2461
|
+
t?.root
|
|
2687
2462
|
),
|
|
2688
2463
|
value: e,
|
|
2689
2464
|
...c,
|
|
2690
|
-
children: /* @__PURE__ */ n.jsx(
|
|
2691
|
-
|
|
2465
|
+
children: /* @__PURE__ */ n.jsx(Yn, { asChild: !0, children: /* @__PURE__ */ n.jsx(
|
|
2466
|
+
T.div,
|
|
2692
2467
|
{
|
|
2693
2468
|
className: p(
|
|
2694
2469
|
"size-full",
|
|
2695
|
-
o ||
|
|
2696
|
-
t
|
|
2470
|
+
o || Ms[r],
|
|
2471
|
+
t?.indicator
|
|
2697
2472
|
),
|
|
2698
2473
|
transition: {
|
|
2699
2474
|
duration: 3,
|
|
@@ -2720,7 +2495,7 @@ const Ni = ({
|
|
|
2720
2495
|
]
|
|
2721
2496
|
}
|
|
2722
2497
|
)
|
|
2723
|
-
] }),
|
|
2498
|
+
] }), Fs = (e) => {
|
|
2724
2499
|
const {
|
|
2725
2500
|
value: t,
|
|
2726
2501
|
className: r = "",
|
|
@@ -2730,13 +2505,13 @@ const Ni = ({
|
|
|
2730
2505
|
level: a = "M",
|
|
2731
2506
|
marginSize: l = 4,
|
|
2732
2507
|
imageSettings: c,
|
|
2733
|
-
...
|
|
2508
|
+
...d
|
|
2734
2509
|
} = e, f = p(
|
|
2735
2510
|
"flex items-center justify-center",
|
|
2736
2511
|
r
|
|
2737
2512
|
);
|
|
2738
|
-
return /* @__PURE__ */ n.jsx("div", { className: f, ...
|
|
2739
|
-
|
|
2513
|
+
return /* @__PURE__ */ n.jsx("div", { className: f, ...d, children: /* @__PURE__ */ n.jsx(
|
|
2514
|
+
Yr,
|
|
2740
2515
|
{
|
|
2741
2516
|
value: t,
|
|
2742
2517
|
size: o,
|
|
@@ -2747,7 +2522,7 @@ const Ni = ({
|
|
|
2747
2522
|
imageSettings: c
|
|
2748
2523
|
}
|
|
2749
2524
|
) });
|
|
2750
|
-
},
|
|
2525
|
+
}, Ds = (e) => {
|
|
2751
2526
|
const {
|
|
2752
2527
|
value: t,
|
|
2753
2528
|
className: r = "",
|
|
@@ -2757,15 +2532,15 @@ const Ni = ({
|
|
|
2757
2532
|
displayValue: a = !0,
|
|
2758
2533
|
fontSize: l = 20,
|
|
2759
2534
|
background: c = "#FFFFFF",
|
|
2760
|
-
lineColor:
|
|
2535
|
+
lineColor: d = "#000000",
|
|
2761
2536
|
margin: f = 10,
|
|
2762
|
-
...
|
|
2763
|
-
} = e,
|
|
2537
|
+
...m
|
|
2538
|
+
} = e, g = p(
|
|
2764
2539
|
"flex items-center justify-center",
|
|
2765
2540
|
r
|
|
2766
2541
|
);
|
|
2767
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
2768
|
-
|
|
2542
|
+
return /* @__PURE__ */ n.jsx("div", { className: g, ...m, children: /* @__PURE__ */ n.jsx(
|
|
2543
|
+
Wr,
|
|
2769
2544
|
{
|
|
2770
2545
|
value: t,
|
|
2771
2546
|
format: o,
|
|
@@ -2774,14 +2549,14 @@ const Ni = ({
|
|
|
2774
2549
|
displayValue: a,
|
|
2775
2550
|
fontSize: l,
|
|
2776
2551
|
background: c,
|
|
2777
|
-
lineColor:
|
|
2552
|
+
lineColor: d,
|
|
2778
2553
|
margin: f
|
|
2779
2554
|
}
|
|
2780
2555
|
) });
|
|
2781
|
-
},
|
|
2556
|
+
}, Ci = (e) => {
|
|
2782
2557
|
const { variant: t } = e;
|
|
2783
|
-
return t === "qr" ? /* @__PURE__ */ n.jsx(
|
|
2784
|
-
},
|
|
2558
|
+
return t === "qr" ? /* @__PURE__ */ n.jsx(Fs, { ...e }) : t === "barcode" ? /* @__PURE__ */ n.jsx(Ds, { ...e }) : null;
|
|
2559
|
+
}, ji = ({
|
|
2785
2560
|
classNames: e,
|
|
2786
2561
|
group: t = [],
|
|
2787
2562
|
defaultValue: r = "",
|
|
@@ -2789,37 +2564,37 @@ const Ni = ({
|
|
|
2789
2564
|
onValueChange: s,
|
|
2790
2565
|
...i
|
|
2791
2566
|
}) => /* @__PURE__ */ n.jsx(
|
|
2792
|
-
|
|
2567
|
+
oo,
|
|
2793
2568
|
{
|
|
2794
2569
|
className: "flex flex-row gap-4",
|
|
2795
2570
|
defaultValue: r,
|
|
2796
2571
|
"aria-label": o,
|
|
2797
2572
|
onValueChange: s,
|
|
2798
2573
|
...i,
|
|
2799
|
-
children: t
|
|
2574
|
+
children: t?.map(({ id: a, label: l, value: c, checked: d, disabled: f }) => /* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
|
|
2800
2575
|
/* @__PURE__ */ n.jsx(
|
|
2801
|
-
|
|
2576
|
+
so,
|
|
2802
2577
|
{
|
|
2803
2578
|
className: p(
|
|
2804
2579
|
"size-4 cursor-pointer rounded-full bg-white outline-1 hover:outline-primary-blue focus:outline-primary-blue data-[state=checked]:outline-1 data-[state=checked]:outline-primary-blue outline-neutral-3",
|
|
2805
2580
|
{
|
|
2806
2581
|
"cursor-not-allowed outline-gray-5 bg-gray-3 hover:outline-neutral-3 data-[state=checked]:outline-neutral-3": f
|
|
2807
2582
|
},
|
|
2808
|
-
e
|
|
2583
|
+
e?.item
|
|
2809
2584
|
),
|
|
2810
2585
|
disabled: f,
|
|
2811
|
-
defaultChecked:
|
|
2586
|
+
defaultChecked: d,
|
|
2812
2587
|
value: c,
|
|
2813
2588
|
id: a,
|
|
2814
2589
|
children: /* @__PURE__ */ n.jsx(
|
|
2815
|
-
|
|
2590
|
+
ao,
|
|
2816
2591
|
{
|
|
2817
2592
|
className: p(
|
|
2818
2593
|
"relative flex size-full items-center justify-center after:block after:size-2 after:rounded-full after:bg-primary-blue",
|
|
2819
2594
|
{
|
|
2820
2595
|
"after:bg-black/25": f
|
|
2821
2596
|
},
|
|
2822
|
-
e
|
|
2597
|
+
e?.indicator
|
|
2823
2598
|
)
|
|
2824
2599
|
}
|
|
2825
2600
|
)
|
|
@@ -2831,7 +2606,7 @@ const Ni = ({
|
|
|
2831
2606
|
className: p(
|
|
2832
2607
|
"pl-2 text-[15px] leading-none text-black cursor-pointer",
|
|
2833
2608
|
{ "cursor-not-allowed text-black/25": f },
|
|
2834
|
-
e
|
|
2609
|
+
e?.label
|
|
2835
2610
|
),
|
|
2836
2611
|
htmlFor: a,
|
|
2837
2612
|
children: l
|
|
@@ -2839,220 +2614,33 @@ const Ni = ({
|
|
|
2839
2614
|
)
|
|
2840
2615
|
] }, a))
|
|
2841
2616
|
}
|
|
2842
|
-
),
|
|
2843
|
-
sm: "h-6 rounded-md",
|
|
2844
|
-
md: "h-8",
|
|
2845
|
-
lg: "h-10 rounded-lg",
|
|
2846
|
-
xl: "h-12 rounded-lg"
|
|
2847
|
-
}, va = {
|
|
2848
|
-
sm: "w-6 rounded-md",
|
|
2849
|
-
md: "w-8",
|
|
2850
|
-
lg: "w-10 rounded-lg",
|
|
2851
|
-
xl: "w-12 rounded-lg"
|
|
2852
|
-
}, ba = {
|
|
2853
|
-
sm: "px-3 py-[3px]",
|
|
2854
|
-
md: "px-3 py-[3px]",
|
|
2855
|
-
lg: "px-3 py-[3px]",
|
|
2856
|
-
xl: "px-3 py-[3px]"
|
|
2857
|
-
}, ya = (e, t = !1) => (t ? va : pa)[e] || "", Ca = (e, t, r, o) => p(
|
|
2858
|
-
fa,
|
|
2859
|
-
ya(e, t),
|
|
2860
|
-
t && ma,
|
|
2861
|
-
r && "opacity-50 cursor-not-allowed",
|
|
2862
|
-
o
|
|
2863
|
-
), wa = (e, t, r) => (o, s) => {
|
|
2864
|
-
e || o.disabled || (t(s), r == null || r(o.value));
|
|
2865
|
-
}, ja = (e, t) => e ?? t, Sa = (e) => e.map((t) => typeof t == "string" || typeof t == "number" ? {
|
|
2866
|
-
label: t,
|
|
2867
|
-
value: t
|
|
2868
|
-
} : t), Ea = (e, t) => {
|
|
2869
|
-
const [r, o] = F(0), s = xe(() => Sa(e), [e]);
|
|
2870
|
-
return D(() => {
|
|
2871
|
-
const i = s.findIndex(
|
|
2872
|
-
(a) => a.value === t
|
|
2873
|
-
);
|
|
2874
|
-
i !== -1 && o(i);
|
|
2875
|
-
}, [t, s]), { activeIndex: r, setActiveIndex: o, normalizedOptions: s };
|
|
2876
|
-
}, Ra = (e, t, r, o) => {
|
|
2877
|
-
const [s, i] = F({
|
|
2878
|
-
width: 0,
|
|
2879
|
-
height: 0,
|
|
2880
|
-
x: 0,
|
|
2881
|
-
y: 0
|
|
2882
|
-
}), a = Sn(() => {
|
|
2883
|
-
if (e.current) {
|
|
2884
|
-
const l = e.current.children[t + 1];
|
|
2885
|
-
if (l) {
|
|
2886
|
-
const c = e.current.getBoundingClientRect(), u = l.getBoundingClientRect();
|
|
2887
|
-
i({
|
|
2888
|
-
width: u.width,
|
|
2889
|
-
height: u.height,
|
|
2890
|
-
x: u.left - c.left,
|
|
2891
|
-
y: u.top - c.top
|
|
2892
|
-
});
|
|
2893
|
-
}
|
|
2894
|
-
}
|
|
2895
|
-
}, [e, t]);
|
|
2896
|
-
return D(() => {
|
|
2897
|
-
a();
|
|
2898
|
-
}, [a, r, o]), D(() => {
|
|
2899
|
-
if (!e.current) return;
|
|
2900
|
-
const l = new ResizeObserver(() => {
|
|
2901
|
-
a();
|
|
2902
|
-
});
|
|
2903
|
-
return l.observe(e.current), () => {
|
|
2904
|
-
l.disconnect();
|
|
2905
|
-
};
|
|
2906
|
-
}, [a]), s;
|
|
2907
|
-
}, Pa = {
|
|
2908
|
-
sm: "rounded-md",
|
|
2909
|
-
lg: "rounded-lg",
|
|
2910
|
-
xl: "rounded-lg"
|
|
2911
|
-
}, Ta = ({
|
|
2912
|
-
indicatorStyle: e,
|
|
2913
|
-
vertical: t,
|
|
2914
|
-
size: r
|
|
2915
|
-
}) => {
|
|
2916
|
-
const o = Pa[r] || "rounded-lg";
|
|
2917
|
-
return /* @__PURE__ */ n.jsx(
|
|
2918
|
-
_.div,
|
|
2919
|
-
{
|
|
2920
|
-
className: p(
|
|
2921
|
-
"absolute bg-white shadow-md",
|
|
2922
|
-
o,
|
|
2923
|
-
t ? "left-1 right-1" : "top-1 bottom-1"
|
|
2924
|
-
),
|
|
2925
|
-
animate: {
|
|
2926
|
-
left: t ? 4 : e.x,
|
|
2927
|
-
top: t ? e.y : 4,
|
|
2928
|
-
width: t ? "calc(100% - 8px)" : e.width,
|
|
2929
|
-
height: t ? e.height : "calc(100% - 8px)"
|
|
2930
|
-
},
|
|
2931
|
-
transition: { type: "spring", stiffness: 500, damping: 30 }
|
|
2932
|
-
}
|
|
2933
|
-
);
|
|
2934
|
-
}, ka = (e, t, r) => p(
|
|
2935
|
-
ga,
|
|
2936
|
-
ba[e],
|
|
2937
|
-
t && xa,
|
|
2938
|
-
r ? "w-full" : "flex-shrink-0"
|
|
2939
|
-
), _a = ({
|
|
2940
|
-
option: e,
|
|
2941
|
-
index: t,
|
|
2942
|
-
isActive: r,
|
|
2943
|
-
disabled: o,
|
|
2944
|
-
vertical: s,
|
|
2945
|
-
size: i,
|
|
2946
|
-
onClick: a
|
|
2947
|
-
}) => {
|
|
2948
|
-
const l = ka(i, e.disabled || o, s);
|
|
2949
|
-
return /* @__PURE__ */ n.jsxs(
|
|
2950
|
-
"button",
|
|
2951
|
-
{
|
|
2952
|
-
type: "button",
|
|
2953
|
-
className: p(l, r && ha),
|
|
2954
|
-
onClick: () => a(e, t),
|
|
2955
|
-
disabled: o || e.disabled,
|
|
2956
|
-
children: [
|
|
2957
|
-
e.icon && /* @__PURE__ */ n.jsx("span", { className: "text-base", children: e.icon }),
|
|
2958
|
-
e.label
|
|
2959
|
-
]
|
|
2960
|
-
},
|
|
2961
|
-
`${e.value}-${t}`
|
|
2962
|
-
);
|
|
2963
|
-
}, Ia = {
|
|
2964
|
-
initial: { opacity: 0, scale: 0.95 },
|
|
2965
|
-
animate: { opacity: 1, scale: 1 },
|
|
2966
|
-
transition: { duration: 0.3, ease: "easeOut" }
|
|
2967
|
-
}, Ki = ({
|
|
2968
|
-
options: e,
|
|
2969
|
-
value: t,
|
|
2970
|
-
defaultValue: r,
|
|
2971
|
-
onChange: o,
|
|
2972
|
-
size: s = "md",
|
|
2973
|
-
disabled: i = !1,
|
|
2974
|
-
vertical: a = !1,
|
|
2975
|
-
className: l,
|
|
2976
|
-
...c
|
|
2977
|
-
}) => {
|
|
2978
|
-
const u = En(), f = De(null), { activeIndex: g, setActiveIndex: x, normalizedOptions: h } = Ea(
|
|
2979
|
-
e,
|
|
2980
|
-
ja(t, r)
|
|
2981
|
-
), m = Ra(
|
|
2982
|
-
f,
|
|
2983
|
-
g,
|
|
2984
|
-
s,
|
|
2985
|
-
a
|
|
2986
|
-
), b = wa(
|
|
2987
|
-
i,
|
|
2988
|
-
x,
|
|
2989
|
-
o
|
|
2990
|
-
), v = Ca(
|
|
2991
|
-
s,
|
|
2992
|
-
a,
|
|
2993
|
-
i,
|
|
2994
|
-
l
|
|
2995
|
-
);
|
|
2996
|
-
return /* @__PURE__ */ n.jsxs(
|
|
2997
|
-
_.div,
|
|
2998
|
-
{
|
|
2999
|
-
ref: f,
|
|
3000
|
-
id: `${u}-segmented`,
|
|
3001
|
-
className: v,
|
|
3002
|
-
...Ia,
|
|
3003
|
-
...c,
|
|
3004
|
-
children: [
|
|
3005
|
-
/* @__PURE__ */ n.jsx(
|
|
3006
|
-
Ta,
|
|
3007
|
-
{
|
|
3008
|
-
indicatorStyle: m,
|
|
3009
|
-
vertical: a,
|
|
3010
|
-
size: s
|
|
3011
|
-
}
|
|
3012
|
-
),
|
|
3013
|
-
h.map((C, y) => /* @__PURE__ */ n.jsx(
|
|
3014
|
-
_a,
|
|
3015
|
-
{
|
|
3016
|
-
option: C,
|
|
3017
|
-
index: y,
|
|
3018
|
-
isActive: y === g,
|
|
3019
|
-
disabled: i,
|
|
3020
|
-
vertical: a,
|
|
3021
|
-
size: s,
|
|
3022
|
-
onClick: b
|
|
3023
|
-
},
|
|
3024
|
-
`${C.value}-${y}`
|
|
3025
|
-
))
|
|
3026
|
-
]
|
|
3027
|
-
}
|
|
3028
|
-
);
|
|
3029
|
-
}, Na = {
|
|
2617
|
+
), Ls = {
|
|
3030
2618
|
sm: "h-6 text-sm py-px rounded-sm",
|
|
3031
2619
|
md: "h-8 text-base py-[5px] rounded-md",
|
|
3032
2620
|
lg: "h-10 text-lg py-2 rounded-lg",
|
|
3033
2621
|
xl: "h-12 text-lg p-3 rounded-lg"
|
|
3034
|
-
},
|
|
2622
|
+
}, Os = ({
|
|
3035
2623
|
size: e,
|
|
3036
2624
|
disabled: t,
|
|
3037
2625
|
className: r,
|
|
3038
2626
|
triggerRef: o,
|
|
3039
2627
|
placeholder: s
|
|
3040
2628
|
}) => /* @__PURE__ */ n.jsxs(
|
|
3041
|
-
|
|
2629
|
+
Xr,
|
|
3042
2630
|
{
|
|
3043
2631
|
ref: o,
|
|
3044
2632
|
disabled: t,
|
|
3045
2633
|
className: p(
|
|
3046
2634
|
"outline-1 outline-gray-7 px-3 py-[5px] bg-white flex justify-between items-center cursor-pointer h-auto!",
|
|
3047
2635
|
r,
|
|
3048
|
-
|
|
2636
|
+
Ls[e],
|
|
3049
2637
|
{
|
|
3050
2638
|
"bg-gray-3 text-gray-6 outline-gray-5 cursor-not-allowed": t
|
|
3051
2639
|
}
|
|
3052
2640
|
),
|
|
3053
2641
|
children: [
|
|
3054
2642
|
/* @__PURE__ */ n.jsx(
|
|
3055
|
-
|
|
2643
|
+
Zr,
|
|
3056
2644
|
{
|
|
3057
2645
|
className: p("text-black truncate flex-1", {
|
|
3058
2646
|
"text-gray-6": t
|
|
@@ -3060,17 +2648,17 @@ const Ni = ({
|
|
|
3060
2648
|
placeholder: s
|
|
3061
2649
|
}
|
|
3062
2650
|
),
|
|
3063
|
-
/* @__PURE__ */ n.jsx(
|
|
3064
|
-
|
|
2651
|
+
/* @__PURE__ */ n.jsx(Qr, { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
|
|
2652
|
+
hn,
|
|
3065
2653
|
{
|
|
3066
2654
|
className: p("-rotate-90", { "text-gray-6": t })
|
|
3067
2655
|
}
|
|
3068
2656
|
) })
|
|
3069
2657
|
]
|
|
3070
2658
|
}
|
|
3071
|
-
),
|
|
2659
|
+
), Vs = ({
|
|
3072
2660
|
message: e = "No hay elementos disponibles."
|
|
3073
|
-
}) => /* @__PURE__ */ n.jsx("div", { className: "w-full h-24 flex justify-center items-center text-gray-6 text-sm", children: e }),
|
|
2661
|
+
}) => /* @__PURE__ */ n.jsx("div", { className: "w-full h-24 flex justify-center items-center text-gray-6 text-sm", children: e }), Bs = ({
|
|
3074
2662
|
width: e,
|
|
3075
2663
|
allItems: t,
|
|
3076
2664
|
filteredItems: r,
|
|
@@ -3080,14 +2668,14 @@ const Ni = ({
|
|
|
3080
2668
|
searchValue: a = "",
|
|
3081
2669
|
onSearchChange: l,
|
|
3082
2670
|
searchPlaceholder: c,
|
|
3083
|
-
disabled:
|
|
2671
|
+
disabled: d,
|
|
3084
2672
|
notFoundContent: f,
|
|
3085
|
-
inputRef:
|
|
2673
|
+
inputRef: m
|
|
3086
2674
|
}) => {
|
|
3087
|
-
const
|
|
3088
|
-
let
|
|
3089
|
-
return a && f ?
|
|
3090
|
-
|
|
2675
|
+
const g = r?.length === 0 && !o;
|
|
2676
|
+
let x;
|
|
2677
|
+
return a && f ? x = f : a ? x = "No results found" : x = s || "No elements available.", /* @__PURE__ */ n.jsxs(
|
|
2678
|
+
Jr,
|
|
3091
2679
|
{
|
|
3092
2680
|
position: "popper",
|
|
3093
2681
|
sideOffset: 5,
|
|
@@ -3097,73 +2685,72 @@ const Ni = ({
|
|
|
3097
2685
|
style: e ? { width: e } : {},
|
|
3098
2686
|
children: [
|
|
3099
2687
|
i && l && /* @__PURE__ */ n.jsx(
|
|
3100
|
-
|
|
2688
|
+
en,
|
|
3101
2689
|
{
|
|
3102
|
-
ref:
|
|
2690
|
+
ref: m,
|
|
3103
2691
|
value: a,
|
|
3104
2692
|
onChange: l,
|
|
3105
2693
|
placeholder: c,
|
|
3106
|
-
disabled:
|
|
2694
|
+
disabled: d
|
|
3107
2695
|
}
|
|
3108
2696
|
),
|
|
3109
|
-
/* @__PURE__ */ n.jsx(
|
|
3110
|
-
const
|
|
3111
|
-
(
|
|
2697
|
+
/* @__PURE__ */ n.jsx(tn, { className: "space-y-1", children: g ? /* @__PURE__ */ n.jsx(Vs, { message: x }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: t?.map((h) => {
|
|
2698
|
+
const v = r.some(
|
|
2699
|
+
(b) => b.value === h.value
|
|
3112
2700
|
);
|
|
3113
2701
|
return /* @__PURE__ */ n.jsx(
|
|
3114
|
-
|
|
2702
|
+
rn,
|
|
3115
2703
|
{
|
|
3116
|
-
value:
|
|
3117
|
-
disabled:
|
|
3118
|
-
className:
|
|
3119
|
-
children:
|
|
2704
|
+
value: h.value,
|
|
2705
|
+
disabled: h?.disabled,
|
|
2706
|
+
className: v ? "" : "hidden",
|
|
2707
|
+
children: h.children
|
|
3120
2708
|
},
|
|
3121
|
-
|
|
2709
|
+
h.value
|
|
3122
2710
|
);
|
|
3123
2711
|
}) }) })
|
|
3124
2712
|
]
|
|
3125
2713
|
}
|
|
3126
2714
|
);
|
|
3127
|
-
},
|
|
3128
|
-
const [t, r] = F(0), o =
|
|
2715
|
+
}, $s = (e) => {
|
|
2716
|
+
const [t, r] = F(0), o = _e(null);
|
|
3129
2717
|
return D(() => {
|
|
3130
2718
|
o.current && r(o.current.offsetWidth);
|
|
3131
2719
|
}, [e]), {
|
|
3132
2720
|
triggerWidth: t,
|
|
3133
2721
|
triggerRef: o
|
|
3134
2722
|
};
|
|
3135
|
-
},
|
|
2723
|
+
}, Gs = ({
|
|
3136
2724
|
showSearch: e,
|
|
3137
2725
|
items: t,
|
|
3138
2726
|
filterOption: r,
|
|
3139
2727
|
onSearch: o
|
|
3140
2728
|
}) => {
|
|
3141
|
-
const [s, i] = F(""), [a, l] = F(!1), c =
|
|
2729
|
+
const [s, i] = F(""), [a, l] = F(!1), c = _e(null);
|
|
3142
2730
|
D(() => {
|
|
3143
2731
|
a || i("");
|
|
3144
2732
|
}, [a]), D(() => {
|
|
3145
2733
|
a && e && c.current && requestAnimationFrame(() => {
|
|
3146
|
-
|
|
3147
|
-
(x = c.current) == null || x.focus();
|
|
2734
|
+
c.current?.focus();
|
|
3148
2735
|
});
|
|
3149
2736
|
}, [a, e, s]);
|
|
3150
|
-
const
|
|
3151
|
-
if (!
|
|
3152
|
-
const
|
|
3153
|
-
return
|
|
3154
|
-
}, f = e ? t.filter((
|
|
2737
|
+
const d = (g, x) => {
|
|
2738
|
+
if (!g) return !0;
|
|
2739
|
+
const h = g.toLowerCase(), v = typeof x.children == "string" ? x.children.toLowerCase() : "", b = x.value.toLowerCase();
|
|
2740
|
+
return v.includes(h) || b.includes(h);
|
|
2741
|
+
}, f = e ? t.filter((g) => (r || d)(s, g)) : t;
|
|
3155
2742
|
return {
|
|
3156
2743
|
searchValue: s,
|
|
3157
2744
|
open: a,
|
|
3158
2745
|
setOpen: l,
|
|
3159
2746
|
filteredItems: f,
|
|
3160
|
-
handleSearchChange: (
|
|
3161
|
-
const
|
|
3162
|
-
i(
|
|
2747
|
+
handleSearchChange: (g) => {
|
|
2748
|
+
const x = g.target.value;
|
|
2749
|
+
i(x), o?.(x);
|
|
3163
2750
|
},
|
|
3164
2751
|
inputRef: c
|
|
3165
2752
|
};
|
|
3166
|
-
},
|
|
2753
|
+
}, zs = ({
|
|
3167
2754
|
value: e,
|
|
3168
2755
|
defaultValue: t,
|
|
3169
2756
|
onValueChange: r
|
|
@@ -3176,10 +2763,10 @@ const Ni = ({
|
|
|
3176
2763
|
}, [e]), {
|
|
3177
2764
|
currentValue: e ?? o,
|
|
3178
2765
|
handleValueChange: (l) => {
|
|
3179
|
-
e === void 0 && s(l), r
|
|
2766
|
+
e === void 0 && s(l), r?.(l);
|
|
3180
2767
|
}
|
|
3181
2768
|
};
|
|
3182
|
-
},
|
|
2769
|
+
}, wi = ({
|
|
3183
2770
|
disabled: e,
|
|
3184
2771
|
className: t,
|
|
3185
2772
|
value: r,
|
|
@@ -3189,39 +2776,39 @@ const Ni = ({
|
|
|
3189
2776
|
placeholder: a = "Selecciona un elemento...",
|
|
3190
2777
|
emptyMessage: l = "No hay elementos disponibles.",
|
|
3191
2778
|
onValueChange: c,
|
|
3192
|
-
showSearch:
|
|
2779
|
+
showSearch: d = !1,
|
|
3193
2780
|
searchPlaceholder: f = "Buscar...",
|
|
3194
|
-
onSearch:
|
|
3195
|
-
filterOption:
|
|
3196
|
-
notFoundContent:
|
|
2781
|
+
onSearch: m,
|
|
2782
|
+
filterOption: g,
|
|
2783
|
+
notFoundContent: x
|
|
3197
2784
|
}) => {
|
|
3198
|
-
const { currentValue:
|
|
2785
|
+
const { currentValue: h, handleValueChange: v } = zs({
|
|
3199
2786
|
value: r,
|
|
3200
2787
|
defaultValue: o,
|
|
3201
2788
|
onValueChange: c
|
|
3202
|
-
}), { triggerWidth:
|
|
2789
|
+
}), { triggerWidth: b, triggerRef: C } = $s(t), {
|
|
3203
2790
|
searchValue: y,
|
|
3204
|
-
open:
|
|
3205
|
-
setOpen:
|
|
3206
|
-
filteredItems:
|
|
3207
|
-
handleSearchChange:
|
|
2791
|
+
open: j,
|
|
2792
|
+
setOpen: w,
|
|
2793
|
+
filteredItems: I,
|
|
2794
|
+
handleSearchChange: P,
|
|
3208
2795
|
inputRef: M
|
|
3209
|
-
} =
|
|
3210
|
-
showSearch:
|
|
2796
|
+
} = Gs({
|
|
2797
|
+
showSearch: d,
|
|
3211
2798
|
items: i,
|
|
3212
|
-
filterOption:
|
|
3213
|
-
onSearch:
|
|
2799
|
+
filterOption: g,
|
|
2800
|
+
onSearch: m
|
|
3214
2801
|
});
|
|
3215
2802
|
return /* @__PURE__ */ n.jsxs(
|
|
3216
|
-
|
|
2803
|
+
nn,
|
|
3217
2804
|
{
|
|
3218
|
-
value:
|
|
3219
|
-
onValueChange:
|
|
3220
|
-
open:
|
|
3221
|
-
onOpenChange:
|
|
2805
|
+
value: h,
|
|
2806
|
+
onValueChange: v,
|
|
2807
|
+
open: j,
|
|
2808
|
+
onOpenChange: w,
|
|
3222
2809
|
children: [
|
|
3223
2810
|
/* @__PURE__ */ n.jsx(
|
|
3224
|
-
|
|
2811
|
+
Os,
|
|
3225
2812
|
{
|
|
3226
2813
|
size: s,
|
|
3227
2814
|
disabled: e,
|
|
@@ -3230,36 +2817,36 @@ const Ni = ({
|
|
|
3230
2817
|
placeholder: a
|
|
3231
2818
|
}
|
|
3232
2819
|
),
|
|
3233
|
-
/* @__PURE__ */ n.jsx(
|
|
3234
|
-
|
|
2820
|
+
/* @__PURE__ */ n.jsx(on, { children: /* @__PURE__ */ n.jsx(
|
|
2821
|
+
Bs,
|
|
3235
2822
|
{
|
|
3236
|
-
width:
|
|
2823
|
+
width: b,
|
|
3237
2824
|
allItems: i,
|
|
3238
|
-
filteredItems:
|
|
3239
|
-
currentValue:
|
|
2825
|
+
filteredItems: I,
|
|
2826
|
+
currentValue: h,
|
|
3240
2827
|
emptyMessage: l,
|
|
3241
|
-
showSearch:
|
|
2828
|
+
showSearch: d,
|
|
3242
2829
|
searchValue: y,
|
|
3243
|
-
onSearchChange:
|
|
2830
|
+
onSearchChange: P,
|
|
3244
2831
|
searchPlaceholder: f,
|
|
3245
2832
|
disabled: e,
|
|
3246
|
-
notFoundContent:
|
|
2833
|
+
notFoundContent: x,
|
|
3247
2834
|
inputRef: M
|
|
3248
2835
|
}
|
|
3249
2836
|
) })
|
|
3250
2837
|
]
|
|
3251
2838
|
}
|
|
3252
2839
|
);
|
|
3253
|
-
},
|
|
2840
|
+
}, Hs = () => /* @__PURE__ */ n.jsxs("div", { role: "status", className: "animate-pulse", children: [
|
|
3254
2841
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-center mt-4", children: [
|
|
3255
|
-
/* @__PURE__ */ n.jsx(
|
|
2842
|
+
/* @__PURE__ */ n.jsx(pn, {}),
|
|
3256
2843
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col space-y-2", children: [
|
|
3257
2844
|
/* @__PURE__ */ n.jsx("div", { className: "w-20 h-3.5 bg-gray-200 rounded-full dark:bg-gray-700 me-3" }),
|
|
3258
2845
|
/* @__PURE__ */ n.jsx("div", { className: "w-24 h-4 bg-gray-200 rounded-full dark:bg-gray-700" })
|
|
3259
2846
|
] })
|
|
3260
2847
|
] }),
|
|
3261
2848
|
/* @__PURE__ */ n.jsx("span", { className: "sr-only", children: "Loading..." })
|
|
3262
|
-
] }),
|
|
2849
|
+
] }), Sr = () => /* @__PURE__ */ n.jsxs("div", { role: "status", "aria-hidden": !0, className: "animate-pulse", children: [
|
|
3263
2850
|
/* @__PURE__ */ n.jsx("div", { className: "h-3.5 bg-gray-200 rounded-full dark:bg-gray-700 w-48 mb-4" }),
|
|
3264
2851
|
/* @__PURE__ */ n.jsx("div", { className: "h-4 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5" }),
|
|
3265
2852
|
/* @__PURE__ */ n.jsx("div", { className: "h-4 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5" }),
|
|
@@ -3267,23 +2854,23 @@ const Ni = ({
|
|
|
3267
2854
|
/* @__PURE__ */ n.jsx("div", { className: "h-4 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5" }),
|
|
3268
2855
|
/* @__PURE__ */ n.jsx("div", { className: "h-4 bg-gray-200 rounded-full dark:bg-gray-700 " }),
|
|
3269
2856
|
/* @__PURE__ */ n.jsx("span", { className: "sr-only", children: "Loading..." })
|
|
3270
|
-
] }),
|
|
2857
|
+
] }), Us = () => /* @__PURE__ */ n.jsxs(
|
|
3271
2858
|
"div",
|
|
3272
2859
|
{
|
|
3273
2860
|
role: "status",
|
|
3274
2861
|
className: "space-y-8 animate-pulse md:space-y-0 md:space-x-8 rtl:space-x-reverse md:flex md:items-center",
|
|
3275
2862
|
children: [
|
|
3276
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex items-center justify-center w-full h-48 bg-gray-300 rounded sm:w-96 dark:bg-gray-700", children: /* @__PURE__ */ n.jsx(
|
|
2863
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex items-center justify-center w-full h-48 bg-gray-300 rounded sm:w-96 dark:bg-gray-700", children: /* @__PURE__ */ n.jsx(mt, {}) }),
|
|
3277
2864
|
/* @__PURE__ */ n.jsx("span", { className: "sr-only", children: "Loading..." })
|
|
3278
2865
|
]
|
|
3279
2866
|
}
|
|
3280
|
-
),
|
|
2867
|
+
), Ks = () => /* @__PURE__ */ n.jsxs(
|
|
3281
2868
|
"div",
|
|
3282
2869
|
{
|
|
3283
2870
|
role: "status",
|
|
3284
2871
|
className: "space-y-8 animate-pulse md:space-y-0 md:space-x-8 rtl:space-x-reverse md:flex md:items-center",
|
|
3285
2872
|
children: [
|
|
3286
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex items-center justify-center w-full h-48 bg-gray-300 rounded sm:w-96 dark:bg-gray-700", children: /* @__PURE__ */ n.jsx(
|
|
2873
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex items-center justify-center w-full h-48 bg-gray-300 rounded sm:w-96 dark:bg-gray-700", children: /* @__PURE__ */ n.jsx(mt, {}) }),
|
|
3287
2874
|
/* @__PURE__ */ n.jsxs("div", { className: "w-full", children: [
|
|
3288
2875
|
/* @__PURE__ */ n.jsx("div", { className: "h-3.5 bg-gray-200 rounded-full dark:bg-gray-700 w-48 mb-4" }),
|
|
3289
2876
|
/* @__PURE__ */ n.jsx("div", { className: "h-4 bg-gray-200 rounded-full dark:bg-gray-700 max-w-[480px] mb-2.5" }),
|
|
@@ -3295,7 +2882,7 @@ const Ni = ({
|
|
|
3295
2882
|
/* @__PURE__ */ n.jsx("span", { className: "sr-only", children: "Loading..." })
|
|
3296
2883
|
]
|
|
3297
2884
|
}
|
|
3298
|
-
),
|
|
2885
|
+
), qs = () => /* @__PURE__ */ n.jsxs(
|
|
3299
2886
|
"div",
|
|
3300
2887
|
{
|
|
3301
2888
|
role: "status",
|
|
@@ -3339,32 +2926,32 @@ const Ni = ({
|
|
|
3339
2926
|
/* @__PURE__ */ n.jsx("span", { className: "sr-only", children: "Loading..." })
|
|
3340
2927
|
]
|
|
3341
2928
|
}
|
|
3342
|
-
),
|
|
3343
|
-
default:
|
|
3344
|
-
avatar:
|
|
3345
|
-
image:
|
|
3346
|
-
"image-description":
|
|
3347
|
-
list:
|
|
3348
|
-
},
|
|
3349
|
-
const t =
|
|
2929
|
+
), Ys = {
|
|
2930
|
+
default: Sr,
|
|
2931
|
+
avatar: Hs,
|
|
2932
|
+
image: Us,
|
|
2933
|
+
"image-description": Ks,
|
|
2934
|
+
list: qs
|
|
2935
|
+
}, Si = ({ type: e = "default" }) => {
|
|
2936
|
+
const t = Ys[e] ?? Sr;
|
|
3350
2937
|
return /* @__PURE__ */ n.jsx(t, {});
|
|
3351
|
-
},
|
|
2938
|
+
}, Ws = {
|
|
3352
2939
|
sm: "h-1",
|
|
3353
2940
|
md: "h-2",
|
|
3354
2941
|
lg: "h-3",
|
|
3355
2942
|
xl: "h-4"
|
|
3356
|
-
},
|
|
2943
|
+
}, Xs = {
|
|
3357
2944
|
primary: "bg-primary-blue",
|
|
3358
2945
|
success: "bg-green-500",
|
|
3359
2946
|
warning: "bg-yellow-500",
|
|
3360
2947
|
error: "bg-red-500",
|
|
3361
2948
|
info: "bg-blue-400"
|
|
3362
|
-
},
|
|
2949
|
+
}, Zs = {
|
|
3363
2950
|
sm: "h-4 w-4",
|
|
3364
2951
|
md: "h-5 w-5",
|
|
3365
2952
|
lg: "h-6 w-6",
|
|
3366
2953
|
xl: "h-7 w-7"
|
|
3367
|
-
},
|
|
2954
|
+
}, Ni = ({
|
|
3368
2955
|
classNames: e,
|
|
3369
2956
|
rangeColor: t = "primary",
|
|
3370
2957
|
customRangeClass: r,
|
|
@@ -3375,48 +2962,48 @@ const Ni = ({
|
|
|
3375
2962
|
max: l = 100,
|
|
3376
2963
|
...c
|
|
3377
2964
|
}) => {
|
|
3378
|
-
const
|
|
2965
|
+
const d = (f) => i ? i(f) : f.toString();
|
|
3379
2966
|
return /* @__PURE__ */ n.jsxs("div", { className: "w-full", children: [
|
|
3380
2967
|
/* @__PURE__ */ n.jsxs(
|
|
3381
|
-
|
|
2968
|
+
wo,
|
|
3382
2969
|
{
|
|
3383
2970
|
className: p(
|
|
3384
2971
|
"relative flex items-center select-none touch-none w-full",
|
|
3385
|
-
e
|
|
2972
|
+
e?.root
|
|
3386
2973
|
),
|
|
3387
2974
|
min: a,
|
|
3388
2975
|
max: l,
|
|
3389
2976
|
...c,
|
|
3390
2977
|
children: [
|
|
3391
2978
|
/* @__PURE__ */ n.jsx(
|
|
3392
|
-
|
|
2979
|
+
So,
|
|
3393
2980
|
{
|
|
3394
2981
|
className: p(
|
|
3395
2982
|
"relative grow rounded-full bg-gray-200",
|
|
3396
|
-
|
|
3397
|
-
e
|
|
2983
|
+
Ws[o],
|
|
2984
|
+
e?.track
|
|
3398
2985
|
),
|
|
3399
2986
|
children: /* @__PURE__ */ n.jsx(
|
|
3400
|
-
|
|
2987
|
+
No,
|
|
3401
2988
|
{
|
|
3402
2989
|
className: p(
|
|
3403
2990
|
"absolute rounded-full h-full",
|
|
3404
|
-
r ||
|
|
3405
|
-
e
|
|
2991
|
+
r || Xs[t],
|
|
2992
|
+
e?.range
|
|
3406
2993
|
)
|
|
3407
2994
|
}
|
|
3408
2995
|
)
|
|
3409
2996
|
}
|
|
3410
2997
|
),
|
|
3411
2998
|
/* @__PURE__ */ n.jsx(
|
|
3412
|
-
|
|
2999
|
+
Eo,
|
|
3413
3000
|
{
|
|
3414
3001
|
className: p(
|
|
3415
3002
|
"block rounded-full bg-white border-2 border-primary-blue shadow-md hover:shadow-lg",
|
|
3416
3003
|
"focus:outline-none focus:ring-2 focus:ring-primary-blue focus:ring-offset-2",
|
|
3417
3004
|
"transition-shadow cursor-pointer",
|
|
3418
|
-
|
|
3419
|
-
e
|
|
3005
|
+
Zs[o],
|
|
3006
|
+
e?.thumb
|
|
3420
3007
|
)
|
|
3421
3008
|
}
|
|
3422
3009
|
)
|
|
@@ -3428,52 +3015,52 @@ const Ni = ({
|
|
|
3428
3015
|
{
|
|
3429
3016
|
className: p(
|
|
3430
3017
|
"flex justify-between mt-2 text-sm text-gray-600",
|
|
3431
|
-
e
|
|
3018
|
+
e?.labels
|
|
3432
3019
|
),
|
|
3433
3020
|
children: [
|
|
3434
|
-
/* @__PURE__ */ n.jsx("span", { className: e
|
|
3435
|
-
/* @__PURE__ */ n.jsx("span", { className: e
|
|
3021
|
+
/* @__PURE__ */ n.jsx("span", { className: e?.startLabelClass, children: d(a) }),
|
|
3022
|
+
/* @__PURE__ */ n.jsx("span", { className: e?.endLabelClass, children: d(l) })
|
|
3436
3023
|
]
|
|
3437
3024
|
}
|
|
3438
3025
|
)
|
|
3439
3026
|
] });
|
|
3440
|
-
},
|
|
3027
|
+
}, Qs = {
|
|
3441
3028
|
sm: "size-6",
|
|
3442
3029
|
md: "size-8",
|
|
3443
3030
|
lg: "size-10",
|
|
3444
3031
|
xl: "size-12"
|
|
3445
|
-
},
|
|
3032
|
+
}, Js = {
|
|
3446
3033
|
sm: "size-5",
|
|
3447
3034
|
md: "size-6",
|
|
3448
3035
|
lg: "size-7",
|
|
3449
3036
|
xl: "size-8"
|
|
3450
|
-
},
|
|
3037
|
+
}, ve = {
|
|
3451
3038
|
sm: "text-xs",
|
|
3452
3039
|
md: "text-sm",
|
|
3453
3040
|
lg: "text-base",
|
|
3454
3041
|
xl: "text-lg"
|
|
3455
|
-
},
|
|
3042
|
+
}, ea = {
|
|
3456
3043
|
sm: "size-6",
|
|
3457
3044
|
md: "size-8",
|
|
3458
3045
|
lg: "size-10",
|
|
3459
3046
|
xl: "size-12"
|
|
3460
|
-
},
|
|
3047
|
+
}, ta = {
|
|
3461
3048
|
sm: 2,
|
|
3462
3049
|
md: 4,
|
|
3463
3050
|
lg: 6,
|
|
3464
3051
|
xl: 8
|
|
3465
|
-
},
|
|
3052
|
+
}, tt = ({
|
|
3466
3053
|
disabled: e,
|
|
3467
3054
|
onClick: t,
|
|
3468
3055
|
arrow: r,
|
|
3469
3056
|
size: o
|
|
3470
3057
|
}) => {
|
|
3471
3058
|
const s = `${e ? "text-gray-6" : "text-primary-blue"}`, i = {
|
|
3472
|
-
right: /* @__PURE__ */ n.jsx(
|
|
3473
|
-
left: /* @__PURE__ */ n.jsx(
|
|
3059
|
+
right: /* @__PURE__ */ n.jsx(ft, { className: s }),
|
|
3060
|
+
left: /* @__PURE__ */ n.jsx(bn, { className: s })
|
|
3474
3061
|
}, a = p(
|
|
3475
3062
|
"flex items-center justify-center rounded-md border disabled:border-zinc-300 disabled:bg-neutral-100 disabled:text-stone-300 shadow-none transition-colors duration-300 ease-linear bg-white border-gray-5 text-gray-4 transitions-all easy-out hover:text-blue-900 hover:border-blue-900",
|
|
3476
|
-
|
|
3063
|
+
Qs[o]
|
|
3477
3064
|
);
|
|
3478
3065
|
return /* @__PURE__ */ n.jsx(
|
|
3479
3066
|
"button",
|
|
@@ -3486,7 +3073,7 @@ const Ni = ({
|
|
|
3486
3073
|
children: i[r]
|
|
3487
3074
|
}
|
|
3488
3075
|
);
|
|
3489
|
-
},
|
|
3076
|
+
}, ra = ({
|
|
3490
3077
|
id: e,
|
|
3491
3078
|
name: t,
|
|
3492
3079
|
status: r,
|
|
@@ -3495,7 +3082,7 @@ const Ni = ({
|
|
|
3495
3082
|
}) => {
|
|
3496
3083
|
const i = p(
|
|
3497
3084
|
"flex items-center justify-center rounded-full",
|
|
3498
|
-
|
|
3085
|
+
Js[s],
|
|
3499
3086
|
{
|
|
3500
3087
|
"border border-primary-blue": r === "COMPLETE",
|
|
3501
3088
|
"bg-primary-blue": r === "CURRENT",
|
|
@@ -3503,12 +3090,12 @@ const Ni = ({
|
|
|
3503
3090
|
}
|
|
3504
3091
|
), a = p(
|
|
3505
3092
|
"font-medium",
|
|
3506
|
-
|
|
3093
|
+
ve[s],
|
|
3507
3094
|
{
|
|
3508
3095
|
"text-primary-blue": r === "CURRENT",
|
|
3509
3096
|
"text-gray-6": r === "PENDING"
|
|
3510
3097
|
}
|
|
3511
|
-
), l = p("font-medium",
|
|
3098
|
+
), l = p("font-medium", ve[s], {
|
|
3512
3099
|
"text-white": r === "CURRENT",
|
|
3513
3100
|
"text-gray-6": r === "PENDING"
|
|
3514
3101
|
});
|
|
@@ -3518,15 +3105,15 @@ const Ni = ({
|
|
|
3518
3105
|
href: o,
|
|
3519
3106
|
className: p(
|
|
3520
3107
|
"flex gap-2 font-medium items-center",
|
|
3521
|
-
|
|
3108
|
+
ve[s]
|
|
3522
3109
|
),
|
|
3523
3110
|
children: [
|
|
3524
3111
|
/* @__PURE__ */ n.jsx("span", { className: i, children: r === "COMPLETE" ? /* @__PURE__ */ n.jsx(
|
|
3525
|
-
|
|
3112
|
+
un,
|
|
3526
3113
|
{
|
|
3527
3114
|
className: p(
|
|
3528
3115
|
"text-primary-blue",
|
|
3529
|
-
|
|
3116
|
+
ea[s]
|
|
3530
3117
|
),
|
|
3531
3118
|
"aria-hidden": "true"
|
|
3532
3119
|
}
|
|
@@ -3535,67 +3122,67 @@ const Ni = ({
|
|
|
3535
3122
|
]
|
|
3536
3123
|
}
|
|
3537
3124
|
);
|
|
3538
|
-
},
|
|
3539
|
-
const r =
|
|
3540
|
-
return /* @__PURE__ */ n.jsx(
|
|
3541
|
-
/* @__PURE__ */ n.jsx(
|
|
3542
|
-
s + 1 !== e.length && /* @__PURE__ */ n.jsx(
|
|
3125
|
+
}, na = ({ visibleSteps: e, size: t }) => {
|
|
3126
|
+
const r = ta[t];
|
|
3127
|
+
return /* @__PURE__ */ n.jsx(W, { gap: r, justify: "center", children: e.map((o, s) => /* @__PURE__ */ n.jsxs(W, { gap: r, align: "center", children: [
|
|
3128
|
+
/* @__PURE__ */ n.jsx(ra, { ...o, size: t }),
|
|
3129
|
+
s + 1 !== e.length && /* @__PURE__ */ n.jsx(ft, { className: "text-gray-5" })
|
|
3543
3130
|
] }, crypto.randomUUID())) });
|
|
3544
|
-
},
|
|
3131
|
+
}, ye = (e, t, r, o) => e ? 4 : t ? 3 : r ? 2 : o ? 1 : 3, oa = (e) => {
|
|
3545
3132
|
const t = e.find((r) => r.status === "CURRENT");
|
|
3546
3133
|
return t ? Number(t.id) - 1 : 0;
|
|
3547
|
-
},
|
|
3134
|
+
}, sa = (e) => e === 0, aa = (e, t, r) => e >= t - r, ia = (e) => e - 1, la = (e) => e + 1, ca = {
|
|
3548
3135
|
start: "justify-start",
|
|
3549
3136
|
center: "justify-center",
|
|
3550
3137
|
end: "justify-end"
|
|
3551
|
-
},
|
|
3138
|
+
}, Ei = ({
|
|
3552
3139
|
steps: e,
|
|
3553
3140
|
size: t = "md",
|
|
3554
3141
|
className: r = "",
|
|
3555
3142
|
withNavigation: o = !0,
|
|
3556
3143
|
align: s = "center"
|
|
3557
3144
|
}) => {
|
|
3558
|
-
const { xs: i, sm: a, md: l, lg: c } =
|
|
3559
|
-
() =>
|
|
3560
|
-
),
|
|
3561
|
-
const
|
|
3562
|
-
return Math.min(
|
|
3563
|
-
}), [
|
|
3145
|
+
const { xs: i, sm: a, md: l, lg: c } = vn(), [d, f] = F(
|
|
3146
|
+
() => ye(c, l, a, i)
|
|
3147
|
+
), m = oa(e), [g, x] = F(() => {
|
|
3148
|
+
const w = ye(c, l, a, i), I = Math.max(0, e.length - w);
|
|
3149
|
+
return Math.min(m, I);
|
|
3150
|
+
}), [h, v] = F([]);
|
|
3564
3151
|
D(() => {
|
|
3565
|
-
f(
|
|
3152
|
+
f(ye(c, l, a, i));
|
|
3566
3153
|
}, [i, a, l, c]), D(() => {
|
|
3567
|
-
const
|
|
3568
|
-
|
|
3569
|
-
}, [
|
|
3570
|
-
const
|
|
3571
|
-
|
|
3154
|
+
const w = Math.min(g + d, e.length);
|
|
3155
|
+
v(e.slice(g, w));
|
|
3156
|
+
}, [g, e, d]);
|
|
3157
|
+
const b = () => x(ia(g)), C = () => x(la(g)), y = sa(g), j = aa(
|
|
3158
|
+
g,
|
|
3572
3159
|
e.length,
|
|
3573
|
-
|
|
3160
|
+
d
|
|
3574
3161
|
);
|
|
3575
3162
|
return /* @__PURE__ */ n.jsxs(
|
|
3576
3163
|
"div",
|
|
3577
3164
|
{
|
|
3578
3165
|
className: p(
|
|
3579
3166
|
"flex flex-row items-center w-full gap-4",
|
|
3580
|
-
o ? "justify-between" :
|
|
3167
|
+
o ? "justify-between" : ca[s],
|
|
3581
3168
|
{ [r]: r }
|
|
3582
3169
|
),
|
|
3583
3170
|
children: [
|
|
3584
3171
|
o && /* @__PURE__ */ n.jsx(
|
|
3585
|
-
|
|
3172
|
+
tt,
|
|
3586
3173
|
{
|
|
3587
3174
|
arrow: "left",
|
|
3588
3175
|
disabled: y,
|
|
3589
|
-
onClick:
|
|
3176
|
+
onClick: b,
|
|
3590
3177
|
size: t
|
|
3591
3178
|
}
|
|
3592
3179
|
),
|
|
3593
|
-
/* @__PURE__ */ n.jsx(
|
|
3180
|
+
/* @__PURE__ */ n.jsx(na, { visibleSteps: h, size: t }),
|
|
3594
3181
|
o && /* @__PURE__ */ n.jsx(
|
|
3595
|
-
|
|
3182
|
+
tt,
|
|
3596
3183
|
{
|
|
3597
3184
|
arrow: "right",
|
|
3598
|
-
disabled:
|
|
3185
|
+
disabled: j,
|
|
3599
3186
|
onClick: C,
|
|
3600
3187
|
size: t
|
|
3601
3188
|
}
|
|
@@ -3603,7 +3190,7 @@ const Ni = ({
|
|
|
3603
3190
|
]
|
|
3604
3191
|
}
|
|
3605
3192
|
);
|
|
3606
|
-
},
|
|
3193
|
+
}, We = {
|
|
3607
3194
|
md: {
|
|
3608
3195
|
root: "h-[22px] w-11",
|
|
3609
3196
|
thumb: "size-[18px]",
|
|
@@ -3614,34 +3201,34 @@ const Ni = ({
|
|
|
3614
3201
|
thumb: "size-3",
|
|
3615
3202
|
children: "h-3 w-3 text-[10px]"
|
|
3616
3203
|
}
|
|
3617
|
-
},
|
|
3204
|
+
}, Y = {
|
|
3618
3205
|
root: "relative peer focus-visible:border-ring focus-visible:ring-ring/50 flex px-px shrink-0 items-center justify-start rounded-full border border-transparent shadow-xs outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[state=unchecked]:bg-gray-6 dark:data-[state=unchecked]:bg-input/80 data-[state=checked]:justify-end transition-colors duration-200",
|
|
3619
3206
|
thumb: "relative z-10 bg-white pointer-events-none block rounded-full ring-0 shadow-sm",
|
|
3620
3207
|
children: "absolute flex items-center justify-center text-white/80 transition-opacity duration-200",
|
|
3621
3208
|
unCheckedChildren: "left-1 data-[state=checked]:opacity-0 data-[state=checked]:invisible",
|
|
3622
3209
|
checkedChildren: "right-1 data-[state=unchecked]:opacity-0 data-[state=unchecked]:invisible"
|
|
3623
|
-
},
|
|
3210
|
+
}, da = {
|
|
3624
3211
|
default: "data-[state=checked]:bg-[#0047BA]",
|
|
3625
3212
|
success: "data-[state=checked]:bg-green-500",
|
|
3626
3213
|
danger: "data-[state=checked]:bg-red-500"
|
|
3627
|
-
},
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3214
|
+
}, ua = (e, t, r, o) => p(
|
|
3215
|
+
Y.root,
|
|
3216
|
+
da[e],
|
|
3217
|
+
We[t].root,
|
|
3631
3218
|
r && "cursor-not-allowed",
|
|
3632
3219
|
o
|
|
3633
|
-
),
|
|
3634
|
-
const r = t ?
|
|
3635
|
-
return p(
|
|
3636
|
-
},
|
|
3220
|
+
), rt = (e, t) => {
|
|
3221
|
+
const r = t ? Y.checkedChildren : Y.unCheckedChildren;
|
|
3222
|
+
return p(Y.children, r, We[e].children);
|
|
3223
|
+
}, ma = (e) => {
|
|
3637
3224
|
const t = typeof e == "string" ? e : e.text, r = typeof e == "string" ? "right" : e.position;
|
|
3638
3225
|
return { labelText: t, labelPosition: r };
|
|
3639
|
-
},
|
|
3226
|
+
}, nt = (e) => p("text-sm text-foreground", e && "opacity-50"), fa = (e) => p("flex items-center gap-2", e && "cursor-not-allowed"), ga = {
|
|
3640
3227
|
type: "spring",
|
|
3641
3228
|
stiffness: 500,
|
|
3642
3229
|
damping: 30,
|
|
3643
3230
|
mass: 1
|
|
3644
|
-
},
|
|
3231
|
+
}, Ri = ({
|
|
3645
3232
|
className: e,
|
|
3646
3233
|
label: t,
|
|
3647
3234
|
type: r = "default",
|
|
@@ -3651,72 +3238,72 @@ const Ni = ({
|
|
|
3651
3238
|
disabled: a = !1,
|
|
3652
3239
|
onCheckedChange: l,
|
|
3653
3240
|
checkedChildren: c,
|
|
3654
|
-
unCheckedChildren:
|
|
3241
|
+
unCheckedChildren: d,
|
|
3655
3242
|
...f
|
|
3656
3243
|
}) => {
|
|
3657
|
-
const
|
|
3658
|
-
|
|
3244
|
+
const m = We[o], g = /* @__PURE__ */ n.jsxs(
|
|
3245
|
+
_o,
|
|
3659
3246
|
{
|
|
3660
|
-
className:
|
|
3247
|
+
className: ua(r, o, a, e),
|
|
3661
3248
|
checked: s,
|
|
3662
3249
|
defaultChecked: i,
|
|
3663
3250
|
disabled: a,
|
|
3664
3251
|
onCheckedChange: l,
|
|
3665
3252
|
...f,
|
|
3666
3253
|
children: [
|
|
3667
|
-
|
|
3668
|
-
/* @__PURE__ */ n.jsx(
|
|
3669
|
-
|
|
3254
|
+
d && /* @__PURE__ */ n.jsx("div", { className: rt(o, !1), children: d }),
|
|
3255
|
+
/* @__PURE__ */ n.jsx(Po, { asChild: !0, children: /* @__PURE__ */ n.jsx(
|
|
3256
|
+
T.div,
|
|
3670
3257
|
{
|
|
3671
|
-
className: p(
|
|
3258
|
+
className: p(Y.thumb, m.thumb),
|
|
3672
3259
|
layout: !0,
|
|
3673
|
-
transition:
|
|
3260
|
+
transition: ga,
|
|
3674
3261
|
whileTap: { scale: 0.95 }
|
|
3675
3262
|
}
|
|
3676
3263
|
) }),
|
|
3677
|
-
c && /* @__PURE__ */ n.jsx("div", { className:
|
|
3264
|
+
c && /* @__PURE__ */ n.jsx("div", { className: rt(o, !0), children: c })
|
|
3678
3265
|
]
|
|
3679
3266
|
}
|
|
3680
3267
|
);
|
|
3681
3268
|
if (t) {
|
|
3682
|
-
const { labelText:
|
|
3683
|
-
return /* @__PURE__ */ n.jsxs("div", { className:
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3269
|
+
const { labelText: x, labelPosition: h } = ma(t);
|
|
3270
|
+
return /* @__PURE__ */ n.jsxs("div", { className: fa(a), children: [
|
|
3271
|
+
h === "left" && /* @__PURE__ */ n.jsx("span", { className: nt(a), children: x }),
|
|
3272
|
+
g,
|
|
3273
|
+
h === "right" && /* @__PURE__ */ n.jsx("span", { className: nt(a), children: x })
|
|
3687
3274
|
] });
|
|
3688
3275
|
}
|
|
3689
|
-
return
|
|
3690
|
-
},
|
|
3276
|
+
return g;
|
|
3277
|
+
}, xa = {
|
|
3691
3278
|
success: {
|
|
3692
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3279
|
+
icon: /* @__PURE__ */ n.jsx(ut, { width: 16, height: 16 }),
|
|
3693
3280
|
bgColor: "bg-green-1",
|
|
3694
3281
|
textColor: "text-green-6",
|
|
3695
3282
|
borderColor: "border-green-3",
|
|
3696
3283
|
closeButtonColor: "hover:bg-green-2"
|
|
3697
3284
|
},
|
|
3698
3285
|
info: {
|
|
3699
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3286
|
+
icon: /* @__PURE__ */ n.jsx(dt, { width: 16, height: 16 }),
|
|
3700
3287
|
bgColor: "bg-blue-1",
|
|
3701
3288
|
textColor: "text-blue-6",
|
|
3702
3289
|
borderColor: "border-blue-3",
|
|
3703
3290
|
closeButtonColor: "hover:bg-blue-2"
|
|
3704
3291
|
},
|
|
3705
3292
|
warning: {
|
|
3706
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3293
|
+
icon: /* @__PURE__ */ n.jsx(ct, { width: 16, height: 16 }),
|
|
3707
3294
|
bgColor: "bg-gold-1",
|
|
3708
3295
|
textColor: "text-gold-6",
|
|
3709
3296
|
borderColor: "border-gold-3",
|
|
3710
3297
|
closeButtonColor: "hover:bg-gold-2"
|
|
3711
3298
|
},
|
|
3712
3299
|
error: {
|
|
3713
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3300
|
+
icon: /* @__PURE__ */ n.jsx(lt, { width: 16, height: 16 }),
|
|
3714
3301
|
bgColor: "bg-red-1",
|
|
3715
3302
|
textColor: "text-red-6",
|
|
3716
3303
|
borderColor: "border-red-3",
|
|
3717
3304
|
closeButtonColor: "hover:bg-red-2"
|
|
3718
3305
|
}
|
|
3719
|
-
},
|
|
3306
|
+
}, Ti = ({
|
|
3720
3307
|
children: e,
|
|
3721
3308
|
type: t = "info",
|
|
3722
3309
|
showIcon: r = !1,
|
|
@@ -3726,78 +3313,77 @@ const Ni = ({
|
|
|
3726
3313
|
icon: a,
|
|
3727
3314
|
bgColor: l,
|
|
3728
3315
|
textColor: c,
|
|
3729
|
-
borderColor:
|
|
3316
|
+
borderColor: d,
|
|
3730
3317
|
...f
|
|
3731
3318
|
}) => {
|
|
3732
|
-
const
|
|
3319
|
+
const m = !!(l || c || d), g = xa[t], x = a || (r ? g.icon : null), h = p(
|
|
3733
3320
|
"inline-flex items-center gap-2 px-2 py-2 rounded border text-sm font-medium leading-none rounded-sm",
|
|
3734
3321
|
{
|
|
3735
|
-
[
|
|
3736
|
-
[
|
|
3737
|
-
[
|
|
3322
|
+
[g.bgColor]: !m,
|
|
3323
|
+
[g.textColor]: !m,
|
|
3324
|
+
[g.borderColor]: !m,
|
|
3738
3325
|
[i]: i
|
|
3739
3326
|
}
|
|
3740
|
-
),
|
|
3327
|
+
), v = m ? {
|
|
3741
3328
|
backgroundColor: l,
|
|
3742
3329
|
color: c,
|
|
3743
|
-
borderColor:
|
|
3744
|
-
} : void 0,
|
|
3330
|
+
borderColor: d
|
|
3331
|
+
} : void 0, b = p(
|
|
3745
3332
|
"rounded transition-colors cursor-pointer text-black/[0.45]",
|
|
3746
3333
|
{
|
|
3747
|
-
[
|
|
3334
|
+
[g.closeButtonColor]: !m
|
|
3748
3335
|
}
|
|
3749
3336
|
);
|
|
3750
|
-
return /* @__PURE__ */ n.jsxs("span", { className:
|
|
3751
|
-
|
|
3337
|
+
return /* @__PURE__ */ n.jsxs("span", { className: h, style: v, ...f, children: [
|
|
3338
|
+
x && /* @__PURE__ */ n.jsx("span", { className: "inline-flex shrink-0", children: x }),
|
|
3752
3339
|
/* @__PURE__ */ n.jsx("span", { className: "inline-flex items-center", children: e }),
|
|
3753
3340
|
o && /* @__PURE__ */ n.jsx(
|
|
3754
3341
|
"button",
|
|
3755
3342
|
{
|
|
3756
3343
|
onClick: s,
|
|
3757
|
-
className:
|
|
3344
|
+
className: b,
|
|
3758
3345
|
"aria-label": "Remove tag",
|
|
3759
3346
|
type: "button",
|
|
3760
|
-
children: /* @__PURE__ */ n.jsx(
|
|
3347
|
+
children: /* @__PURE__ */ n.jsx(Pe, { width: 16, height: 16 })
|
|
3761
3348
|
}
|
|
3762
3349
|
)
|
|
3763
3350
|
] });
|
|
3764
|
-
},
|
|
3351
|
+
}, ha = {
|
|
3765
3352
|
initial: { opacity: 0, x: 16 },
|
|
3766
3353
|
animate: { opacity: 1, x: 0 },
|
|
3767
3354
|
exit: { opacity: 0, x: -20 }
|
|
3768
|
-
},
|
|
3355
|
+
}, pa = ({
|
|
3769
3356
|
type: e,
|
|
3770
3357
|
items: t,
|
|
3771
3358
|
currentActiveKey: r,
|
|
3772
3359
|
contentClassName: o
|
|
3773
3360
|
}) => {
|
|
3774
|
-
var s;
|
|
3775
3361
|
if (e === "segmented") {
|
|
3776
|
-
const
|
|
3777
|
-
return /* @__PURE__ */ n.jsx(
|
|
3778
|
-
|
|
3362
|
+
const s = t.find((i) => i.key === r)?.content;
|
|
3363
|
+
return /* @__PURE__ */ n.jsx(Je, { value: r, forceMount: !0, asChild: !0, children: /* @__PURE__ */ n.jsx(Ie, { mode: "wait", initial: !1, children: /* @__PURE__ */ n.jsx(
|
|
3364
|
+
T.div,
|
|
3779
3365
|
{
|
|
3780
3366
|
className: p("min-w-full", o),
|
|
3781
|
-
variants:
|
|
3367
|
+
variants: ha,
|
|
3782
3368
|
initial: "initial",
|
|
3783
3369
|
animate: "animate",
|
|
3784
3370
|
exit: "exit",
|
|
3785
3371
|
transition: { duration: 0.25, ease: "easeInOut" },
|
|
3786
|
-
children:
|
|
3372
|
+
children: s
|
|
3787
3373
|
},
|
|
3788
3374
|
r
|
|
3789
3375
|
) }) });
|
|
3790
3376
|
}
|
|
3791
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t.map((
|
|
3792
|
-
|
|
3377
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t.map((s) => /* @__PURE__ */ n.jsx(
|
|
3378
|
+
Je,
|
|
3793
3379
|
{
|
|
3794
|
-
value:
|
|
3380
|
+
value: s.key,
|
|
3795
3381
|
className: p("min-w-full", o),
|
|
3796
|
-
children:
|
|
3382
|
+
children: s.content
|
|
3797
3383
|
},
|
|
3798
|
-
|
|
3384
|
+
s.key
|
|
3799
3385
|
)) });
|
|
3800
|
-
},
|
|
3386
|
+
}, ba = (e, t) => p(
|
|
3801
3387
|
{
|
|
3802
3388
|
"text-sm font-normal": e === "default" || e === "underline" || e === "pills",
|
|
3803
3389
|
"border-b border-gray-200": e === "underline",
|
|
@@ -3805,40 +3391,40 @@ const Ni = ({
|
|
|
3805
3391
|
"bg-gray-100 rounded-xl p-1 text-lg text-grays-Macropay-07 font-normal": e === "segmented"
|
|
3806
3392
|
},
|
|
3807
3393
|
t
|
|
3808
|
-
),
|
|
3394
|
+
), va = (e) => p("select-none", {
|
|
3809
3395
|
"flex flex-wrap text-center text-gray-500 border-b border-gray-200 font-normal": e === "default" || e === "pills",
|
|
3810
3396
|
"-mb-px": e === "underline",
|
|
3811
3397
|
"flex flex-wrap -mb-px font-normal text-sm text-center text-gray-500": e === "with-icon",
|
|
3812
3398
|
"grid grid-flow-col justify-stretch items-center text-lg font-normal text-center text-lg sm:w-full": e === "segmented"
|
|
3813
|
-
}),
|
|
3399
|
+
}), ya = (e) => p({
|
|
3814
3400
|
"inline-block p-3 py-3 rounded-t-lg active:text-gray-500 active:bg-gray-50": e === "default" || e === "pills",
|
|
3815
3401
|
"inline-block p-3 py-3 border-b-2 rounded-t-lg active:border-primary-blue": e === "underline",
|
|
3816
3402
|
"inline-flex items-center justify-center p-3 border-b-2 rounded-t-lg active:border-gray-300": e === "with-icon",
|
|
3817
3403
|
"md:inline-block px-2 py-3 rounded-lg min-w-full h-full items-center text-center flex justify-center text-sm": e === "segmented"
|
|
3818
|
-
}),
|
|
3404
|
+
}), Ca = (e, t) => p({
|
|
3819
3405
|
[`font-bold text-${t} bg-white`]: e === "default" || e === "pills",
|
|
3820
3406
|
[`text-${t} border-b-2 border-primary-blue`]: e === "underline" || e === "with-icon",
|
|
3821
3407
|
[`font-bold text-${t} active:text-${t}`]: e === "segmented"
|
|
3822
|
-
}),
|
|
3408
|
+
}), ja = ({
|
|
3823
3409
|
type: e,
|
|
3824
3410
|
items: t,
|
|
3825
3411
|
currentActiveKey: r,
|
|
3826
3412
|
activeColorTabs: o,
|
|
3827
3413
|
className: s
|
|
3828
|
-
}) => /* @__PURE__ */ n.jsx("div", { className:
|
|
3829
|
-
|
|
3414
|
+
}) => /* @__PURE__ */ n.jsx("div", { className: ba(e, s), children: /* @__PURE__ */ n.jsx(Do, { className: va(e), children: t.map(({ key: i, label: a, disabled: l }) => /* @__PURE__ */ n.jsxs(
|
|
3415
|
+
Lo,
|
|
3830
3416
|
{
|
|
3831
3417
|
value: i,
|
|
3832
3418
|
disabled: l,
|
|
3833
3419
|
className: p(
|
|
3834
3420
|
"h-full relative",
|
|
3835
|
-
|
|
3836
|
-
i === r &&
|
|
3421
|
+
ya(e),
|
|
3422
|
+
i === r && Ca(e, o),
|
|
3837
3423
|
l && "text-gray-300 cursor-not-allowed"
|
|
3838
3424
|
),
|
|
3839
3425
|
children: [
|
|
3840
3426
|
e === "segmented" && i === r && /* @__PURE__ */ n.jsx(
|
|
3841
|
-
|
|
3427
|
+
T.div,
|
|
3842
3428
|
{
|
|
3843
3429
|
layoutId: "segmented-indicator",
|
|
3844
3430
|
className: "absolute inset-0 bg-white rounded-lg z-0",
|
|
@@ -3853,7 +3439,7 @@ const Ni = ({
|
|
|
3853
3439
|
]
|
|
3854
3440
|
},
|
|
3855
3441
|
i
|
|
3856
|
-
)) }) }),
|
|
3442
|
+
)) }) }), ki = ({
|
|
3857
3443
|
currentActiveKey: e,
|
|
3858
3444
|
type: t = "default",
|
|
3859
3445
|
items: r,
|
|
@@ -3862,14 +3448,14 @@ const Ni = ({
|
|
|
3862
3448
|
contentClassName: i,
|
|
3863
3449
|
activeColorTabs: a = "primary-blue"
|
|
3864
3450
|
}) => /* @__PURE__ */ n.jsxs(
|
|
3865
|
-
|
|
3451
|
+
Fo,
|
|
3866
3452
|
{
|
|
3867
3453
|
value: e,
|
|
3868
3454
|
onValueChange: o,
|
|
3869
3455
|
className: "flex flex-col gap-4",
|
|
3870
3456
|
children: [
|
|
3871
3457
|
/* @__PURE__ */ n.jsx(
|
|
3872
|
-
|
|
3458
|
+
ja,
|
|
3873
3459
|
{
|
|
3874
3460
|
type: t,
|
|
3875
3461
|
items: r,
|
|
@@ -3879,7 +3465,7 @@ const Ni = ({
|
|
|
3879
3465
|
}
|
|
3880
3466
|
),
|
|
3881
3467
|
/* @__PURE__ */ n.jsx(
|
|
3882
|
-
|
|
3468
|
+
pa,
|
|
3883
3469
|
{
|
|
3884
3470
|
type: t,
|
|
3885
3471
|
items: r,
|
|
@@ -3889,10 +3475,10 @@ const Ni = ({
|
|
|
3889
3475
|
)
|
|
3890
3476
|
]
|
|
3891
3477
|
}
|
|
3892
|
-
),
|
|
3893
|
-
t && /* @__PURE__ */ n.jsx(
|
|
3478
|
+
), wa = ({ name: e, label: t, children: r }) => /* @__PURE__ */ n.jsxs(Ln, { name: e, children: [
|
|
3479
|
+
t && /* @__PURE__ */ n.jsx(On, { children: t }),
|
|
3894
3480
|
r
|
|
3895
|
-
] }),
|
|
3481
|
+
] }), Sa = ({
|
|
3896
3482
|
type: e,
|
|
3897
3483
|
error: t,
|
|
3898
3484
|
disabled: r,
|
|
@@ -3922,9 +3508,9 @@ const Ni = ({
|
|
|
3922
3508
|
"h-12 text-base": s === "xl",
|
|
3923
3509
|
/* EXTERNAL */
|
|
3924
3510
|
[i]: i,
|
|
3925
|
-
[
|
|
3511
|
+
[a?.input ?? ""]: a?.input
|
|
3926
3512
|
}
|
|
3927
|
-
),
|
|
3513
|
+
), Na = ({
|
|
3928
3514
|
type: e = "normal",
|
|
3929
3515
|
inputSize: t = "xl",
|
|
3930
3516
|
className: r,
|
|
@@ -3932,11 +3518,11 @@ const Ni = ({
|
|
|
3932
3518
|
clearOnFocus: s,
|
|
3933
3519
|
onFocus: i,
|
|
3934
3520
|
...a
|
|
3935
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
3521
|
+
}) => /* @__PURE__ */ n.jsx(Vn, { asChild: !0, children: /* @__PURE__ */ n.jsx(
|
|
3936
3522
|
"textarea",
|
|
3937
3523
|
{
|
|
3938
3524
|
...a,
|
|
3939
|
-
className:
|
|
3525
|
+
className: Sa({
|
|
3940
3526
|
type: e,
|
|
3941
3527
|
inputSize: t,
|
|
3942
3528
|
className: r,
|
|
@@ -3945,13 +3531,13 @@ const Ni = ({
|
|
|
3945
3531
|
readOnly: a.readOnly
|
|
3946
3532
|
}),
|
|
3947
3533
|
onFocus: (l) => {
|
|
3948
|
-
s && (l.currentTarget.value = ""), i
|
|
3534
|
+
s && (l.currentTarget.value = ""), i?.(l);
|
|
3949
3535
|
}
|
|
3950
3536
|
}
|
|
3951
|
-
) }),
|
|
3537
|
+
) }), Ea = ({ footer: e, current: t = 0, max: r }) => /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between pt-1 text-sm text-gray-7", children: [
|
|
3952
3538
|
/* @__PURE__ */ n.jsx("span", { children: e }),
|
|
3953
3539
|
r && /* @__PURE__ */ n.jsx("span", { children: `${t} / ${r}` })
|
|
3954
|
-
] }),
|
|
3540
|
+
] }), Ii = ({
|
|
3955
3541
|
name: e,
|
|
3956
3542
|
label: t,
|
|
3957
3543
|
labelFooter: r,
|
|
@@ -3962,46 +3548,45 @@ const Ni = ({
|
|
|
3962
3548
|
classesNames: l,
|
|
3963
3549
|
...c
|
|
3964
3550
|
}) => {
|
|
3965
|
-
const [
|
|
3966
|
-
return /* @__PURE__ */ n.jsx(
|
|
3967
|
-
|
|
3551
|
+
const [d, f] = F(a);
|
|
3552
|
+
return /* @__PURE__ */ n.jsx(Dn, { children: /* @__PURE__ */ n.jsxs(
|
|
3553
|
+
T.div,
|
|
3968
3554
|
{
|
|
3969
3555
|
initial: { opacity: 0 },
|
|
3970
3556
|
animate: { opacity: 1 },
|
|
3971
3557
|
transition: { duration: 0.2 },
|
|
3972
|
-
className: l
|
|
3558
|
+
className: l?.container,
|
|
3973
3559
|
children: [
|
|
3974
|
-
/* @__PURE__ */ n.jsx(
|
|
3975
|
-
|
|
3560
|
+
/* @__PURE__ */ n.jsx(wa, { name: e, label: t, children: /* @__PURE__ */ n.jsx(
|
|
3561
|
+
Na,
|
|
3976
3562
|
{
|
|
3977
3563
|
...c,
|
|
3978
3564
|
maxLength: s,
|
|
3979
3565
|
minLength: i,
|
|
3980
|
-
value:
|
|
3981
|
-
onChange: (
|
|
3982
|
-
|
|
3983
|
-
f(g.target.value), (x = c.onChange) == null || x.call(c, g);
|
|
3566
|
+
value: d,
|
|
3567
|
+
onChange: (m) => {
|
|
3568
|
+
f(m.target.value), c.onChange?.(m);
|
|
3984
3569
|
}
|
|
3985
3570
|
}
|
|
3986
3571
|
) }),
|
|
3987
3572
|
/* @__PURE__ */ n.jsx(
|
|
3988
|
-
|
|
3573
|
+
Ea,
|
|
3989
3574
|
{
|
|
3990
3575
|
footer: r ?? `${i} caracteres requeridos`,
|
|
3991
|
-
current:
|
|
3576
|
+
current: d.length,
|
|
3992
3577
|
max: s
|
|
3993
3578
|
}
|
|
3994
3579
|
),
|
|
3995
|
-
o && /* @__PURE__ */ n.jsx(
|
|
3580
|
+
o && /* @__PURE__ */ n.jsx(Bn, { className: l?.messageError, children: o })
|
|
3996
3581
|
]
|
|
3997
3582
|
}
|
|
3998
3583
|
) });
|
|
3999
|
-
},
|
|
3584
|
+
}, _i = ({ className: e, content: t, children: r, ...o }) => {
|
|
4000
3585
|
const s = typeof t == "string";
|
|
4001
|
-
return /* @__PURE__ */ n.jsx(
|
|
4002
|
-
/* @__PURE__ */ n.jsx(
|
|
4003
|
-
/* @__PURE__ */ n.jsx(
|
|
4004
|
-
|
|
3586
|
+
return /* @__PURE__ */ n.jsx(Jo, { children: /* @__PURE__ */ n.jsxs(es, { children: [
|
|
3587
|
+
/* @__PURE__ */ n.jsx(ts, { asChild: !0, children: r }),
|
|
3588
|
+
/* @__PURE__ */ n.jsx(rs, { children: /* @__PURE__ */ n.jsx(ns, { className: e, asChild: !0, ...o, children: /* @__PURE__ */ n.jsxs(
|
|
3589
|
+
T.div,
|
|
4005
3590
|
{
|
|
4006
3591
|
className: p({
|
|
4007
3592
|
"bg-gray-800 text-white rounded shadow-lg select-none px-4 py-2 outline-none border-0": s && !e
|
|
@@ -4012,62 +3597,304 @@ const Ni = ({
|
|
|
4012
3597
|
transition: { duration: 0.15 },
|
|
4013
3598
|
children: [
|
|
4014
3599
|
t,
|
|
4015
|
-
/* @__PURE__ */ n.jsx(
|
|
3600
|
+
/* @__PURE__ */ n.jsx(os, { className: "w-4 h-2" })
|
|
4016
3601
|
]
|
|
4017
3602
|
}
|
|
4018
3603
|
) }) })
|
|
4019
3604
|
] }) });
|
|
4020
|
-
},
|
|
3605
|
+
}, Nr = {
|
|
3606
|
+
cols: "grid-cols",
|
|
3607
|
+
gap: "gap",
|
|
3608
|
+
justifyItems: "justify-items",
|
|
3609
|
+
alignContent: "content",
|
|
3610
|
+
span: "col-span",
|
|
3611
|
+
start: "col-start",
|
|
3612
|
+
end: "col-end",
|
|
3613
|
+
justifySelf: "justify-self",
|
|
3614
|
+
alignSelf: "self"
|
|
3615
|
+
}, { cols: Ra, gap: Ta, justifyItems: ka, alignContent: Ia } = Nr, Pi = ({ cols: e, align: t, gap: r, justify: o, className: s = "", ...i }) => /* @__PURE__ */ n.jsx(
|
|
3616
|
+
T.div,
|
|
3617
|
+
{
|
|
3618
|
+
className: p(
|
|
3619
|
+
"grid",
|
|
3620
|
+
{
|
|
3621
|
+
[s]: s
|
|
3622
|
+
},
|
|
3623
|
+
O(Ra, e),
|
|
3624
|
+
O(Ta, r),
|
|
3625
|
+
O(ka, o),
|
|
3626
|
+
O(Ia, t)
|
|
3627
|
+
),
|
|
3628
|
+
...i
|
|
3629
|
+
}
|
|
3630
|
+
), {
|
|
3631
|
+
span: _a,
|
|
3632
|
+
start: Pa,
|
|
3633
|
+
end: Aa,
|
|
3634
|
+
justifySelf: Ma,
|
|
3635
|
+
alignSelf: Fa
|
|
3636
|
+
} = Nr, Ai = ({
|
|
3637
|
+
align: e,
|
|
3638
|
+
end: t,
|
|
3639
|
+
justify: r,
|
|
3640
|
+
span: o,
|
|
3641
|
+
start: s,
|
|
3642
|
+
className: i = "",
|
|
3643
|
+
...a
|
|
3644
|
+
}) => /* @__PURE__ */ n.jsx(
|
|
3645
|
+
T.div,
|
|
3646
|
+
{
|
|
3647
|
+
...a,
|
|
3648
|
+
className: p(
|
|
3649
|
+
{
|
|
3650
|
+
[i]: i
|
|
3651
|
+
},
|
|
3652
|
+
O(_a, o),
|
|
3653
|
+
O(Pa, s),
|
|
3654
|
+
O(Aa, t),
|
|
3655
|
+
O(Ma, r),
|
|
3656
|
+
O(Fa, e)
|
|
3657
|
+
)
|
|
3658
|
+
}
|
|
3659
|
+
), Mi = ({
|
|
4021
3660
|
className: e,
|
|
4022
3661
|
variant: t = "default",
|
|
4023
3662
|
size: r = "default",
|
|
4024
3663
|
...o
|
|
4025
3664
|
}) => /* @__PURE__ */ n.jsx(
|
|
4026
|
-
|
|
3665
|
+
sn,
|
|
4027
3666
|
{
|
|
4028
3667
|
"data-slot": "toggle",
|
|
4029
|
-
className:
|
|
3668
|
+
className: Rr(an({ variant: t, size: r, className: e })),
|
|
4030
3669
|
...o
|
|
4031
3670
|
}
|
|
4032
|
-
)
|
|
3671
|
+
), Da = "relative flex bg-gray-100 rounded-xl p-1 md:w-fit", La = "relative text-grays-Macropay-07 z-10 inline-flex items-center gap-1 text-sm font-medium transition-colors duration-200 justify-center flex-1 whitespace-nowrap", Oa = "cursor-not-allowed bg-gray-3 text-gray-6 opacity-50", Va = "text-primary-blue", Ba = "flex-col", $a = {
|
|
3672
|
+
sm: "h-6 rounded-md",
|
|
3673
|
+
md: "h-8",
|
|
3674
|
+
lg: "h-10 rounded-lg",
|
|
3675
|
+
xl: "h-12 rounded-lg"
|
|
3676
|
+
}, Ga = {
|
|
3677
|
+
sm: "w-6 rounded-md",
|
|
3678
|
+
md: "w-8",
|
|
3679
|
+
lg: "w-10 rounded-lg",
|
|
3680
|
+
xl: "w-12 rounded-lg"
|
|
3681
|
+
}, za = {
|
|
3682
|
+
sm: "px-3 py-[3px]",
|
|
3683
|
+
md: "px-3 py-[3px]",
|
|
3684
|
+
lg: "px-3 py-[3px]",
|
|
3685
|
+
xl: "px-3 py-[3px]"
|
|
3686
|
+
}, Ha = (e, t = !1) => (t ? Ga : $a)[e] || "", Ua = (e, t, r, o) => p(
|
|
3687
|
+
Da,
|
|
3688
|
+
Ha(e, t),
|
|
3689
|
+
t && Ba,
|
|
3690
|
+
r && "opacity-50 cursor-not-allowed",
|
|
3691
|
+
o
|
|
3692
|
+
), Ka = (e, t, r) => (o, s) => {
|
|
3693
|
+
e || o.disabled || (t(s), r?.(o.value));
|
|
3694
|
+
}, qa = (e = "", t) => t || e, Ya = (e) => e.map((t) => typeof t == "string" || typeof t == "number" ? {
|
|
3695
|
+
label: t,
|
|
3696
|
+
value: t
|
|
3697
|
+
} : t), Wa = (e, t) => {
|
|
3698
|
+
const [r, o] = F(0), s = ue(() => Ya(e), [e]);
|
|
3699
|
+
return D(() => {
|
|
3700
|
+
const i = s.findIndex(
|
|
3701
|
+
(a) => a.value === t
|
|
3702
|
+
);
|
|
3703
|
+
i !== -1 && o(i);
|
|
3704
|
+
}, [t, s]), { activeIndex: r, setActiveIndex: o, normalizedOptions: s };
|
|
3705
|
+
}, Xa = (e, t, r, o) => {
|
|
3706
|
+
const [s, i] = F({
|
|
3707
|
+
width: 0,
|
|
3708
|
+
height: 0,
|
|
3709
|
+
x: 0,
|
|
3710
|
+
y: 0
|
|
3711
|
+
}), a = cn(() => {
|
|
3712
|
+
if (e.current) {
|
|
3713
|
+
const l = e.current.children[t + 1];
|
|
3714
|
+
if (l) {
|
|
3715
|
+
const c = e.current.getBoundingClientRect(), d = l.getBoundingClientRect();
|
|
3716
|
+
i({
|
|
3717
|
+
width: d.width,
|
|
3718
|
+
height: d.height,
|
|
3719
|
+
x: d.left - c.left,
|
|
3720
|
+
y: d.top - c.top
|
|
3721
|
+
});
|
|
3722
|
+
}
|
|
3723
|
+
}
|
|
3724
|
+
}, [e, t]);
|
|
3725
|
+
return D(() => {
|
|
3726
|
+
a();
|
|
3727
|
+
}, [a, r, o]), D(() => {
|
|
3728
|
+
if (!e.current) return;
|
|
3729
|
+
const l = new ResizeObserver(() => {
|
|
3730
|
+
a();
|
|
3731
|
+
});
|
|
3732
|
+
return l.observe(e.current), () => {
|
|
3733
|
+
l.disconnect();
|
|
3734
|
+
};
|
|
3735
|
+
}, [a]), s;
|
|
3736
|
+
}, Za = {
|
|
3737
|
+
sm: "rounded-md",
|
|
3738
|
+
lg: "rounded-lg",
|
|
3739
|
+
xl: "rounded-lg"
|
|
3740
|
+
}, Qa = ({
|
|
3741
|
+
indicatorStyle: e,
|
|
3742
|
+
vertical: t,
|
|
3743
|
+
size: r
|
|
3744
|
+
}) => {
|
|
3745
|
+
const o = Za[r] || "rounded-lg";
|
|
3746
|
+
return /* @__PURE__ */ n.jsx(
|
|
3747
|
+
T.div,
|
|
3748
|
+
{
|
|
3749
|
+
initial: !1,
|
|
3750
|
+
className: p(
|
|
3751
|
+
"absolute bg-white shadow-md",
|
|
3752
|
+
o,
|
|
3753
|
+
t ? "left-1 right-1" : "top-1 bottom-1"
|
|
3754
|
+
),
|
|
3755
|
+
animate: {
|
|
3756
|
+
left: t ? 4 : e.x,
|
|
3757
|
+
top: t ? e.y : 4,
|
|
3758
|
+
width: t ? "calc(100% - 8px)" : e.width,
|
|
3759
|
+
height: t ? e.height : "calc(100% - 8px)"
|
|
3760
|
+
},
|
|
3761
|
+
transition: { type: "spring", stiffness: 500, damping: 30 }
|
|
3762
|
+
}
|
|
3763
|
+
);
|
|
3764
|
+
}, Ja = (e, t, r) => p(
|
|
3765
|
+
La,
|
|
3766
|
+
za[e],
|
|
3767
|
+
t && Oa,
|
|
3768
|
+
r ? "w-full" : "flex-shrink-0"
|
|
3769
|
+
), ei = ({
|
|
3770
|
+
option: e,
|
|
3771
|
+
index: t,
|
|
3772
|
+
isActive: r,
|
|
3773
|
+
disabled: o,
|
|
3774
|
+
vertical: s,
|
|
3775
|
+
size: i,
|
|
3776
|
+
onClick: a
|
|
3777
|
+
}) => {
|
|
3778
|
+
const l = Ja(i, e.disabled || o, s);
|
|
3779
|
+
return /* @__PURE__ */ n.jsxs(
|
|
3780
|
+
"button",
|
|
3781
|
+
{
|
|
3782
|
+
type: "button",
|
|
3783
|
+
className: p(l, r && Va),
|
|
3784
|
+
onClick: () => a(e, t),
|
|
3785
|
+
disabled: o || e.disabled,
|
|
3786
|
+
children: [
|
|
3787
|
+
e.icon && /* @__PURE__ */ n.jsx("span", { className: "text-base", children: e.icon }),
|
|
3788
|
+
e.label
|
|
3789
|
+
]
|
|
3790
|
+
},
|
|
3791
|
+
`${e.value}-${t}`
|
|
3792
|
+
);
|
|
3793
|
+
}, ti = {
|
|
3794
|
+
initial: { opacity: 0, scale: 0.95 },
|
|
3795
|
+
animate: { opacity: 1, scale: 1 },
|
|
3796
|
+
transition: { duration: 0.3, ease: "easeOut" }
|
|
3797
|
+
}, Fi = ({
|
|
3798
|
+
options: e,
|
|
3799
|
+
value: t,
|
|
3800
|
+
defaultValue: r,
|
|
3801
|
+
onChange: o,
|
|
3802
|
+
size: s = "md",
|
|
3803
|
+
disabled: i = !1,
|
|
3804
|
+
vertical: a = !1,
|
|
3805
|
+
className: l,
|
|
3806
|
+
...c
|
|
3807
|
+
}) => {
|
|
3808
|
+
const d = dn(), f = _e(null), { activeIndex: m, setActiveIndex: g, normalizedOptions: x } = Wa(
|
|
3809
|
+
e,
|
|
3810
|
+
qa(r, t)
|
|
3811
|
+
), h = Xa(
|
|
3812
|
+
f,
|
|
3813
|
+
m,
|
|
3814
|
+
s,
|
|
3815
|
+
a
|
|
3816
|
+
), v = Ka(
|
|
3817
|
+
i,
|
|
3818
|
+
g,
|
|
3819
|
+
o
|
|
3820
|
+
), b = Ua(
|
|
3821
|
+
s,
|
|
3822
|
+
a,
|
|
3823
|
+
i,
|
|
3824
|
+
l
|
|
3825
|
+
);
|
|
3826
|
+
return /* @__PURE__ */ n.jsxs(
|
|
3827
|
+
T.div,
|
|
3828
|
+
{
|
|
3829
|
+
ref: f,
|
|
3830
|
+
id: `${d}-segmented`,
|
|
3831
|
+
className: b,
|
|
3832
|
+
...ti,
|
|
3833
|
+
...c,
|
|
3834
|
+
children: [
|
|
3835
|
+
/* @__PURE__ */ n.jsx(
|
|
3836
|
+
Qa,
|
|
3837
|
+
{
|
|
3838
|
+
indicatorStyle: h,
|
|
3839
|
+
vertical: a,
|
|
3840
|
+
size: s
|
|
3841
|
+
}
|
|
3842
|
+
),
|
|
3843
|
+
x.map((C, y) => /* @__PURE__ */ n.jsx(
|
|
3844
|
+
ei,
|
|
3845
|
+
{
|
|
3846
|
+
option: C,
|
|
3847
|
+
index: y,
|
|
3848
|
+
isActive: y === m,
|
|
3849
|
+
disabled: i,
|
|
3850
|
+
vertical: a,
|
|
3851
|
+
size: s,
|
|
3852
|
+
onClick: v
|
|
3853
|
+
},
|
|
3854
|
+
`${C.value}-${y}`
|
|
3855
|
+
))
|
|
3856
|
+
]
|
|
3857
|
+
}
|
|
3858
|
+
);
|
|
3859
|
+
};
|
|
4033
3860
|
export {
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
3861
|
+
ui as Accordion,
|
|
3862
|
+
mi as Alert,
|
|
3863
|
+
Oi as Avatar,
|
|
3864
|
+
Vi as Button,
|
|
3865
|
+
fi as Card,
|
|
3866
|
+
Bi as Carousel,
|
|
3867
|
+
$i as Checkbox,
|
|
3868
|
+
Ai as Col,
|
|
3869
|
+
gi as Divider,
|
|
3870
|
+
xi as Drawer,
|
|
3871
|
+
Gi as Dropdown,
|
|
3872
|
+
hi as Empty,
|
|
3873
|
+
W as Flex,
|
|
3874
|
+
pi as Input,
|
|
3875
|
+
bi as List,
|
|
3876
|
+
zi as Modal,
|
|
3877
|
+
vi as Notification,
|
|
3878
|
+
Ps as Pagination,
|
|
3879
|
+
Hi as Popover,
|
|
3880
|
+
$r as Portal,
|
|
3881
|
+
yi as Progress,
|
|
3882
|
+
Ci as QRBarcode,
|
|
3883
|
+
ji as RadioGroup,
|
|
3884
|
+
Pi as Row,
|
|
3885
|
+
Fi as Segmented,
|
|
3886
|
+
wi as Select,
|
|
3887
|
+
Si as Skeleton,
|
|
3888
|
+
Ni as Slider,
|
|
3889
|
+
di as Spinner,
|
|
3890
|
+
yn as SpinnerSizeMap,
|
|
3891
|
+
Ei as Steps,
|
|
3892
|
+
Ri as Switch,
|
|
3893
|
+
ki as Tabs,
|
|
3894
|
+
Ti as Tag,
|
|
3895
|
+
Ii as TextArea,
|
|
3896
|
+
Mi as Toggle,
|
|
3897
|
+
Ui as ToggleGroup,
|
|
3898
|
+
_i as Tooltip,
|
|
3899
|
+
Kr as Typography
|
|
4073
3900
|
};
|