welcome-ui 1.0.0-beta.3 → 1.0.0-beta.4
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/AXB53BZF-BxNazDnS.mjs +25 -0
- package/dist/AXB53BZF-KWM2jKTz.js +1 -0
- package/dist/Accordion.js +16 -30
- package/dist/Accordion.mjs +27 -515
- package/dist/Alert.js +37 -1
- package/dist/Alert.mjs +118 -5
- package/dist/AspectRatio.mjs +7 -7
- package/dist/Avatar.js +3 -3
- package/dist/Avatar.mjs +16 -15
- package/dist/BYC7LY2E-BAjGN7k_.mjs +1074 -0
- package/dist/BYC7LY2E-BkAEL2VD.js +1 -0
- package/dist/Badge.js +3 -3
- package/dist/Badge.mjs +10 -10
- package/dist/Breadcrumb.js +1 -54
- package/dist/Breadcrumb.mjs +7 -437
- package/dist/Button.js +78 -0
- package/dist/Button.mjs +136 -0
- package/dist/ButtonGroup.js +32 -0
- package/dist/ButtonGroup.mjs +51 -0
- package/dist/Card.js +17 -0
- package/dist/Card.mjs +29 -0
- package/dist/Checkbox.js +1 -0
- package/dist/Checkbox.mjs +6 -0
- package/dist/ClearButton.js +14 -0
- package/dist/ClearButton.mjs +26 -0
- package/dist/CloseButton.js +6 -0
- package/dist/CloseButton.mjs +15 -0
- package/dist/CustomInput-9aCUiD6o.js +1070 -0
- package/dist/CustomInput-CenfXh_H.mjs +7825 -0
- package/dist/DatePicker.js +1 -0
- package/dist/DatePicker.mjs +108 -0
- package/dist/DateTimePicker.js +38 -0
- package/dist/DateTimePicker.mjs +109 -0
- package/dist/DateTimePickerCommon.js +1 -0
- package/dist/DateTimePickerCommon.mjs +14 -0
- package/dist/Drawer.js +64 -0
- package/dist/Drawer.mjs +267 -0
- package/dist/DropdownMenu.js +45 -0
- package/dist/DropdownMenu.mjs +776 -0
- package/dist/Field.js +72 -0
- package/dist/Field.mjs +177 -0
- package/dist/FieldGroup.js +13 -0
- package/dist/FieldGroup.mjs +26 -0
- package/dist/FileDrop.js +46 -0
- package/dist/FileDrop.mjs +2325 -0
- package/dist/FileUpload.js +3 -0
- package/dist/FileUpload.mjs +88 -0
- package/dist/Grid.js +1 -0
- package/dist/Grid.mjs +57 -0
- package/dist/Hint.js +8 -0
- package/dist/Hint.mjs +22 -0
- package/dist/ITI7HKP4-BPa8qpnl.js +1 -0
- package/dist/ITI7HKP4-Couz1Z73.mjs +473 -0
- package/dist/Icon.js +17 -0
- package/dist/Icon.mjs +51 -0
- package/dist/IconFont.js +17 -0
- package/dist/IconFont.mjs +348 -0
- package/dist/InputText.js +8 -0
- package/dist/InputText.mjs +81 -0
- package/dist/JC64G2H7-CQsqXPS_.mjs +965 -0
- package/dist/JC64G2H7-YkBMNrtl.js +1 -0
- package/dist/KUU7WJ55-DN8gk6_R.js +1 -0
- package/dist/KUU7WJ55-bC4FU_j7.mjs +61 -0
- package/dist/LVA2YJMS-B2HZjIhJ.js +14 -0
- package/dist/LVA2YJMS-Dm5ieEMw.mjs +1479 -0
- package/dist/Label.js +35 -0
- package/dist/Label.mjs +78 -0
- package/dist/Link.js +43 -0
- package/dist/Link.mjs +77 -0
- package/dist/Loader.js +30 -0
- package/dist/Loader.mjs +48 -0
- package/dist/Logo.js +1 -0
- package/dist/Logo.mjs +8 -0
- package/dist/MTZPJQMC-5Xg78Uyy.js +1 -0
- package/dist/MTZPJQMC-DZ3zg4be.mjs +13 -0
- package/dist/Modal.js +181 -0
- package/dist/Modal.mjs +365 -0
- package/dist/NLEBE274-DvH3XTTw.js +1 -0
- package/dist/NLEBE274-FThuwZH_.mjs +84 -0
- package/dist/P2CTZE2T-5jxBu6ix.mjs +297 -0
- package/dist/P2CTZE2T-q8vyaGc0.js +1 -0
- package/dist/P4IRICAX-DF0_vmod.mjs +37 -0
- package/dist/P4IRICAX-nhgZ26A1.js +1 -0
- package/dist/Pagination.js +46 -0
- package/dist/Pagination.mjs +158 -0
- package/dist/PasswordInput.js +1 -0
- package/dist/PasswordInput.mjs +54 -0
- package/dist/Picker.js +8 -0
- package/dist/Picker.mjs +50 -0
- package/dist/Popover.js +1 -0
- package/dist/Popover.mjs +8 -0
- package/dist/QYJ6MIDR-CRK3satR.js +1 -0
- package/dist/QYJ6MIDR-Cy39pEs2.mjs +97 -0
- package/dist/Radio.js +60 -0
- package/dist/Radio.mjs +118 -0
- package/dist/RadioGroup.js +8 -0
- package/dist/RadioGroup.mjs +68 -0
- package/dist/RadioTab.js +61 -0
- package/dist/RadioTab.mjs +104 -0
- package/dist/SYRFVSLH-BpAfr7UE.js +1 -0
- package/dist/SYRFVSLH-DyepaZf7.mjs +48 -0
- package/dist/Search.js +70 -0
- package/dist/Search.mjs +225 -0
- package/dist/Select.js +122 -0
- package/dist/Select.mjs +1071 -0
- package/dist/Shape.js +23 -0
- package/dist/Shape.mjs +37 -0
- package/dist/Slider.js +190 -0
- package/dist/Slider.mjs +531 -0
- package/dist/Stack.js +1 -0
- package/dist/Stack.mjs +32 -0
- package/dist/Swiper.js +141 -0
- package/dist/Swiper.mjs +448 -0
- package/dist/System.js +1 -1
- package/dist/System.mjs +5 -5
- package/dist/Table.js +55 -0
- package/dist/Table.mjs +75 -0
- package/dist/Tabs.js +82 -0
- package/dist/Tabs.mjs +539 -0
- package/dist/Tag.js +78 -0
- package/dist/Tag.mjs +135 -0
- package/dist/Text.js +46 -0
- package/dist/Text.mjs +97 -0
- package/dist/Textarea.js +6 -0
- package/dist/Textarea.mjs +55 -0
- package/dist/TimePicker.js +4 -0
- package/dist/TimePicker.mjs +88 -0
- package/dist/Toast.js +42 -0
- package/dist/Toast.mjs +264 -0
- package/dist/Toggle.js +75 -0
- package/dist/Toggle.mjs +93 -0
- package/dist/Tooltip.js +68 -0
- package/dist/Tooltip.mjs +303 -0
- package/dist/UniversalLink.js +4 -0
- package/dist/UniversalLink.mjs +25 -0
- package/dist/VEVQD5MH-De4r89YE.mjs +20 -0
- package/dist/VEVQD5MH-mN1wMozH.js +1 -0
- package/dist/VGCJ63VH-BNLwLOaC.js +1 -0
- package/dist/VGCJ63VH-fv0YLRh8.mjs +186 -0
- package/dist/VariantIcon.js +8 -0
- package/dist/VariantIcon.mjs +32 -0
- package/dist/Welcome-BNr4uu5n.mjs +48 -0
- package/dist/Welcome-Dw9OaREs.js +3 -0
- package/dist/WelcomeLoader.js +11 -0
- package/dist/WelcomeLoader.mjs +9453 -0
- package/dist/X5NMLKT6-BzhcQu_I.js +1 -0
- package/dist/X5NMLKT6-DGZEtYXj.mjs +25 -0
- package/dist/YV4JVR4I-1ezWeCCz.mjs +341 -0
- package/dist/YV4JVR4I-DIthYWMj.js +15 -0
- package/dist/_commonjsHelpers-CXJ7dpIk.mjs +9 -0
- package/dist/_commonjsHelpers-DvH0V_XJ.js +1 -0
- package/dist/create-event-YSlay9Ef.js +1 -0
- package/dist/create-event-rXDe5aCQ.mjs +8 -0
- package/dist/downshift.esm-DAo-GJwH.js +1 -0
- package/dist/downshift.esm-K4YLLQXl.mjs +1085 -0
- package/dist/field-styles-CeV7pnOp.mjs +86 -0
- package/dist/field-styles-D_gf6ypV.js +63 -0
- package/dist/get-max-width-height-CDLBnp_J.js +1 -0
- package/dist/get-max-width-height-DoUro2T7.mjs +8 -0
- package/dist/hide-focus-rings-root-BNyva1yb.mjs +14 -0
- package/dist/hide-focus-rings-root-DGU4Klq5.js +5 -0
- package/dist/index-1C9Z0d5Q.mjs +446 -0
- package/dist/index-BHi0wohR.js +142 -0
- package/dist/index-BLom3M2B.js +2 -0
- package/dist/{index-WmqrMIzg.mjs → index-BYdkhqH4.mjs} +6344 -6386
- package/dist/index-C_r0bVmL.js +56 -0
- package/dist/index-CgT8GWHS.js +1 -0
- package/dist/index-ColyClKR.mjs +239 -0
- package/dist/index-CrhKWaM2.js +54 -0
- package/dist/index-Cs1IZBks.js +17 -0
- package/dist/index-DCOLdphy.mjs +184 -0
- package/dist/index-DHOW43M6.mjs +132 -0
- package/dist/index-SbQUT2mU.mjs +639 -0
- package/dist/index.js +5 -147
- package/dist/index.mjs +1448 -537
- package/dist/overflow-ellipsis-C2ESrF8C.js +5 -0
- package/dist/overflow-ellipsis-DGV5Kgt-.mjs +10 -0
- package/dist/radio-group-29lMl-2M.mjs +51 -0
- package/dist/radio-group-BpImAAmy.js +1 -0
- package/dist/throttle-BB1Y3bfD.js +1 -0
- package/dist/throttle-BDBzFeFj.mjs +13 -0
- package/dist/types/components/Alert/Title.d.ts +1 -1
- package/dist/types/components/Alert/index.d.ts +3 -3
- package/dist/types/components/Alert/styles.d.ts +2 -2
- package/dist/types/components/Avatar/index.d.ts +1 -1
- package/dist/types/components/Avatar/styles.d.ts +2 -2
- package/dist/types/components/Badge/styles.d.ts +2 -2
- package/dist/types/components/Card/Cover.d.ts +1 -1
- package/dist/types/components/Card/Cover.styles.d.ts +1 -1
- package/dist/types/components/Checkbox/index.d.ts +13 -0
- package/dist/types/components/Checkbox/styles.d.ts +3 -0
- package/dist/types/components/Checkbox/theme.d.ts +8 -0
- package/dist/types/components/ClearButton/styles.d.ts +1 -1
- package/dist/types/components/CloseButton/styles.d.ts +1 -1
- package/dist/types/components/DatePicker/index.d.ts +15 -0
- package/dist/types/components/DateTimePicker/index.d.ts +5 -0
- package/dist/types/components/DateTimePicker/styles.d.ts +1 -0
- package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +18 -0
- package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +17 -0
- package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +4 -0
- package/dist/types/components/DateTimePickerCommon/datePickerStyles.d.ts +1 -0
- package/dist/types/components/DateTimePickerCommon/index.d.ts +5 -0
- package/dist/types/components/DateTimePickerCommon/styles.d.ts +9 -0
- package/dist/types/components/DateTimePickerCommon/theme.d.ts +9 -0
- package/dist/types/components/DateTimePickerCommon/utils.d.ts +6 -0
- package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +31 -0
- package/dist/types/components/Drawer/AssetDrawer/index.d.ts +4 -0
- package/dist/types/components/Drawer/AssetDrawer/styles.d.ts +3 -0
- package/dist/types/components/Drawer/Close.d.ts +5 -0
- package/dist/types/components/Drawer/Content.d.ts +4 -0
- package/dist/types/components/Drawer/Footer.d.ts +4 -0
- package/dist/types/components/Drawer/Title.d.ts +3 -0
- package/dist/types/components/Drawer/index.d.ts +52 -0
- package/dist/types/components/Drawer/styles.d.ts +10 -0
- package/dist/types/components/Drawer/theme.d.ts +17 -0
- package/dist/types/components/DropdownMenu/Arrow.d.ts +4 -0
- package/dist/types/components/DropdownMenu/Arrow.styled.d.ts +4 -0
- package/dist/types/components/DropdownMenu/Item.d.ts +4 -0
- package/dist/types/components/DropdownMenu/Item.styled.d.ts +1 -0
- package/dist/types/components/DropdownMenu/Separator.d.ts +4 -0
- package/dist/types/components/DropdownMenu/Separator.styled.d.ts +1 -0
- package/dist/types/components/DropdownMenu/index.d.ts +25 -0
- package/dist/types/components/DropdownMenu/styles.d.ts +1 -0
- package/dist/types/components/DropdownMenu/theme.d.ts +8 -0
- package/dist/types/components/Field/index.d.ts +26 -0
- package/dist/types/components/Field/styles.d.ts +21 -0
- package/dist/types/components/Field/utils.d.ts +5 -0
- package/dist/types/components/FieldGroup/index.d.ts +11 -0
- package/dist/types/components/FieldGroup/styles.d.ts +1 -0
- package/dist/types/components/FileDrop/FilePreview.d.ts +9 -0
- package/dist/types/components/FileDrop/Message.d.ts +7 -0
- package/dist/types/components/FileDrop/Preview.d.ts +3 -0
- package/dist/types/components/FileDrop/index.d.ts +52 -0
- package/dist/types/components/FileDrop/styles.d.ts +9 -0
- package/dist/types/components/FileDrop/theme.d.ts +9 -0
- package/dist/types/components/FileDrop/utils.d.ts +3 -0
- package/dist/types/components/FileUpload/index.d.ts +35 -0
- package/dist/types/components/FileUpload/styles.d.ts +1 -0
- package/dist/types/components/Files/index.d.ts +8 -0
- package/dist/types/components/Files/types.d.ts +72 -0
- package/dist/types/components/Grid/Item.d.ts +14 -0
- package/dist/types/components/Grid/index.d.ts +31 -0
- package/dist/types/components/Hint/index.d.ts +10 -0
- package/dist/types/components/Hint/styles.d.ts +4 -0
- package/dist/types/components/Hint/theme.d.ts +9 -0
- package/dist/types/components/Icon/index.d.ts +26 -0
- package/dist/types/components/Icon/styles.d.ts +9 -0
- package/dist/types/components/Icon/theme.d.ts +10 -0
- package/dist/types/components/IconFont/index.d.ts +311 -0
- package/dist/types/components/IconFont/styles.d.ts +7 -0
- package/dist/types/components/IconFont/unicode.json.d.ts +303 -0
- package/dist/types/components/InputText/index.d.ts +21 -0
- package/dist/types/components/InputText/styles.d.ts +3 -0
- package/dist/types/components/Label/index.d.ts +16 -0
- package/dist/types/components/Label/styles.d.ts +5 -0
- package/dist/types/components/Label/theme.d.ts +4 -0
- package/dist/types/components/Link/index.d.ts +15 -0
- package/dist/types/components/Link/styles.d.ts +2 -0
- package/dist/types/components/Link/theme.d.ts +16 -0
- package/dist/types/components/Link/utils.d.ts +1 -0
- package/dist/types/components/Loader/index.d.ts +11 -0
- package/dist/types/components/Loader/styles.d.ts +6 -0
- package/dist/types/components/Loader/theme.d.ts +8 -0
- package/dist/types/components/Logo/Solutions.d.ts +3 -0
- package/dist/types/components/Logo/Symbol.d.ts +3 -0
- package/dist/types/components/Logo/Welcome.d.ts +3 -0
- package/dist/types/components/Logo/Wui.d.ts +3 -0
- package/dist/types/components/Logo/index.d.ts +7 -0
- package/dist/types/components/Logo/styles.d.ts +1 -0
- package/dist/types/components/Modal/Assets/AssetWithTitle.d.ts +9 -0
- package/dist/types/components/Modal/Assets/Backdrop.d.ts +4 -0
- package/dist/types/components/Modal/Assets/Iframe.d.ts +5 -0
- package/dist/types/components/Modal/Assets/index.d.ts +17 -0
- package/dist/types/components/Modal/Assets/styles.d.ts +7 -0
- package/dist/types/components/Modal/Close.d.ts +6 -0
- package/dist/types/components/Modal/Content.d.ts +16 -0
- package/dist/types/components/Modal/Footer.d.ts +12 -0
- package/dist/types/components/Modal/Header.d.ts +12 -0
- package/dist/types/components/Modal/index.d.ts +53 -0
- package/dist/types/components/Modal/styles.d.ts +11 -0
- package/dist/types/components/Modal/theme.d.ts +17 -0
- package/dist/types/components/Pagination/index.d.ts +14 -0
- package/dist/types/components/Pagination/styles.d.ts +7 -0
- package/dist/types/components/Pagination/theme.d.ts +9 -0
- package/dist/types/components/Pagination/utils.d.ts +7 -0
- package/dist/types/components/PasswordInput/ToggleButton.d.ts +9 -0
- package/dist/types/components/PasswordInput/index.d.ts +5 -0
- package/dist/types/components/Picker/index.d.ts +17 -0
- package/dist/types/components/Picker/styles.d.ts +2 -0
- package/dist/types/components/Popover/Arrow.d.ts +6 -0
- package/dist/types/components/Popover/Content.d.ts +9 -0
- package/dist/types/components/Popover/Popover.d.ts +14 -0
- package/dist/types/components/Popover/PopoverHover.d.ts +14 -0
- package/dist/types/components/Popover/Trigger.d.ts +10 -0
- package/dist/types/components/Popover/index.d.ts +3 -0
- package/dist/types/components/Popover/styles.d.ts +12 -0
- package/dist/types/components/Popover/theme.d.ts +8 -0
- package/dist/types/components/Popover/usePopover.d.ts +15 -0
- package/dist/types/components/Radio/index.d.ts +12 -0
- package/dist/types/components/Radio/styles.d.ts +7 -0
- package/dist/types/components/Radio/theme.d.ts +11 -0
- package/dist/types/components/RadioGroup/index.d.ts +17 -0
- package/dist/types/components/RadioGroup/styles.d.ts +4 -0
- package/dist/types/components/RadioTab/index.d.ts +14 -0
- package/dist/types/components/RadioTab/styles.d.ts +18 -0
- package/dist/types/components/RadioTab/theme.d.ts +7 -0
- package/dist/types/components/Search/index.d.ts +29 -0
- package/dist/types/components/Search/styles.d.ts +15 -0
- package/dist/types/components/Select/index.d.ts +54 -0
- package/dist/types/components/Select/multipleSelections.d.ts +3 -0
- package/dist/types/components/Select/styles.d.ts +32 -0
- package/dist/types/components/Select/utils.d.ts +18 -0
- package/dist/types/components/Shape/index.d.ts +6 -0
- package/dist/types/components/Shape/styles.d.ts +2 -0
- package/dist/types/components/Slider/Range.d.ts +17 -0
- package/dist/types/components/Slider/index.d.ts +27 -0
- package/dist/types/components/Slider/styles.d.ts +19 -0
- package/dist/types/components/Slider/theme.d.ts +11 -0
- package/dist/types/components/Stack/index.d.ts +7 -0
- package/dist/types/components/Swiper/index.d.ts +80 -0
- package/dist/types/components/Swiper/styles.d.ts +138 -0
- package/dist/types/components/Swiper/theme.d.ts +11 -0
- package/dist/types/components/Swiper/use-interval.d.ts +1 -0
- package/dist/types/components/Table/index.d.ts +18 -0
- package/dist/types/components/Table/styles.d.ts +13 -0
- package/dist/types/components/Table/theme.d.ts +15 -0
- package/dist/types/components/Tabs/ActiveBar.d.ts +13 -0
- package/dist/types/components/Tabs/TabList.d.ts +13 -0
- package/dist/types/components/Tabs/TabPanel.d.ts +11 -0
- package/dist/types/components/Tabs/index.d.ts +18 -0
- package/dist/types/components/Tabs/styles.d.ts +9 -0
- package/dist/types/components/Tabs/theme.d.ts +28 -0
- package/dist/types/components/Tabs/utils.d.ts +1 -0
- package/dist/types/components/Tag/index.d.ts +17 -0
- package/dist/types/components/Tag/styles.d.ts +15 -0
- package/dist/types/components/Tag/theme.d.ts +14 -0
- package/dist/types/components/Text/index.d.ts +25 -0
- package/dist/types/components/Text/styles.d.ts +2 -0
- package/dist/types/components/Textarea/index.d.ts +18 -0
- package/dist/types/components/Textarea/styles.d.ts +2 -0
- package/dist/types/components/Textarea/theme.d.ts +4 -0
- package/dist/types/components/TimePicker/index.d.ts +13 -0
- package/dist/types/components/TimePicker/styles.d.ts +1 -0
- package/dist/types/components/Toast/Growl.d.ts +12 -0
- package/dist/types/components/Toast/Snackbar.d.ts +18 -0
- package/dist/types/components/Toast/ToastWrapper.d.ts +16 -0
- package/dist/types/components/Toast/index.d.ts +27 -0
- package/dist/types/components/Toast/styles.d.ts +19 -0
- package/dist/types/components/Toast/theme.d.ts +22 -0
- package/dist/types/components/Toast/utils.d.ts +26 -0
- package/dist/types/components/Toggle/index.d.ts +11 -0
- package/dist/types/components/Toggle/styles.d.ts +12 -0
- package/dist/types/components/Toggle/theme.d.ts +10 -0
- package/dist/types/components/Tooltip/index.d.ts +11 -0
- package/dist/types/components/Tooltip/styles.d.ts +10 -0
- package/dist/types/components/Tooltip/theme.d.ts +4 -0
- package/dist/types/components/UniversalLink/index.d.ts +7 -0
- package/dist/types/components/UniversalLink/styles.d.ts +1 -0
- package/dist/types/components/VariantIcon/index.d.ts +11 -0
- package/dist/types/components/VariantIcon/styles.d.ts +4 -0
- package/dist/types/components/VariantIcon/theme.d.ts +10 -0
- package/dist/types/components/WelcomeLoader/index.d.ts +2 -0
- package/dist/types/components/WelcomeLoader/loader.json.d.ts +3 -0
- package/dist/types/components/index.d.ts +43 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/theme/defaultFields.d.ts +39 -0
- package/dist/types/theme/index.d.ts +52 -2
- package/dist/types/theme/typography.d.ts +2 -2
- package/dist/types/utils/clamp.d.ts +1 -0
- package/dist/types/utils/create-event.d.ts +8 -0
- package/dist/types/utils/field-styles.d.ts +21 -0
- package/dist/types/utils/format-bytes.d.ts +1 -0
- package/dist/types/utils/get-max-width-height.d.ts +1 -0
- package/dist/types/utils/hex-to-rgb.d.ts +1 -0
- package/dist/types/utils/hex-to-rgba.d.ts +1 -0
- package/dist/types/utils/hide-focus-rings-root.d.ts +8 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/overflow-ellipsis.d.ts +1 -0
- package/dist/types/utils/throttle.d.ts +5 -0
- package/dist/types/utils/use-copy-text.d.ts +5 -0
- package/dist/types/utils/use-create-portal.d.ts +4 -0
- package/dist/types/utils/use-fork-ref.d.ts +3 -0
- package/dist/types/utils/use-isomorphic-layout-effect.d.ts +2 -0
- package/dist/types/utils/use-viewport.d.ts +6 -0
- package/dist/types/utils/wrap-children.d.ts +1 -0
- package/dist/use-isomorphic-layout-effect-C1_Gy5Nu.js +1 -0
- package/dist/use-isomorphic-layout-effect-Izr-e2pi.mjs +6 -0
- package/dist/use-viewport-BDDjd1nl.js +1 -0
- package/dist/use-viewport-m3glsbna.mjs +16 -0
- package/dist/usePopover-CZsYHcTW.js +31 -0
- package/dist/usePopover-CcsC9Y-s.mjs +143 -0
- package/dist/wrap-children-BLDjJiiy.js +1 -0
- package/dist/wrap-children-aq69jtFP.mjs +12 -0
- package/package.json +56 -4
- package/dist/X5NMLKT6-BC1Q56kB.mjs +0 -1258
- package/dist/X5NMLKT6-vrNG8i_R.js +0 -14
- package/dist/index-0MPAX4B5.mjs +0 -320
- package/dist/index-BNA_A0oa.js +0 -155
- package/dist/index-BXJQXgy9.js +0 -13
- package/dist/index-Bwrtxit1.mjs +0 -84
- package/dist/index-Ct2FOeyM.js +0 -17
- package/dist/index-DRNn5iIc.js +0 -142
- package/dist/index-Du8Nrf16.mjs +0 -128
- package/dist/index-MifIgNHW.mjs +0 -47
- package/dist/index-V28zHt_Z.js +0 -68
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { css as a, th as d } from "@xstyled/styled-components";
|
|
3
|
+
const o = {
|
|
4
|
+
xs: "xs",
|
|
5
|
+
sm: "sm",
|
|
6
|
+
md: "sm",
|
|
7
|
+
lg: "sm"
|
|
8
|
+
}, f = ({
|
|
9
|
+
iconPlacement: e,
|
|
10
|
+
isClearable: i,
|
|
11
|
+
size: l,
|
|
12
|
+
transparent: $,
|
|
13
|
+
variant: s
|
|
14
|
+
}) => {
|
|
15
|
+
const t = o[l];
|
|
16
|
+
return a`
|
|
17
|
+
${d("defaultFields.default")};
|
|
18
|
+
${s && d(`defaultFields.variants.${s}`)};
|
|
19
|
+
width: 100%;
|
|
20
|
+
transition: medium;
|
|
21
|
+
appearance: none;
|
|
22
|
+
${l && d(`defaultFields.sizes.${l}`)};
|
|
23
|
+
|
|
24
|
+
${/* left icon or both */
|
|
25
|
+
(e === "left" || e === "both") && a`
|
|
26
|
+
padding-left: calc(
|
|
27
|
+
${d(`defaultFields.sizes.${l}.paddingLeft`)} + ${d(`icons.${t}`)} +
|
|
28
|
+
${d("space.sm")}
|
|
29
|
+
);
|
|
30
|
+
`};
|
|
31
|
+
|
|
32
|
+
${/* is clearable or right icon */
|
|
33
|
+
(i || e === "right" || e === "both") && a`
|
|
34
|
+
padding-right: calc(
|
|
35
|
+
${d(`defaultFields.sizes.${l}.paddingLeft`)} + ${d(`icons.${t}`)} +
|
|
36
|
+
${d("space.sm")}
|
|
37
|
+
);
|
|
38
|
+
`};
|
|
39
|
+
|
|
40
|
+
${/* is clearable and got a right/both icon */
|
|
41
|
+
i && (e === "right" || e === "both") && a`
|
|
42
|
+
padding-right: calc(
|
|
43
|
+
${d(`defaultFields.sizes.${l}.paddingLeft`)} + ${d(`icons.${t}`)} +
|
|
44
|
+
${d(`icons.${t}`)} + ${d("space.sm")} + ${d("space.sm")}
|
|
45
|
+
);
|
|
46
|
+
`};
|
|
47
|
+
|
|
48
|
+
&:hover {
|
|
49
|
+
${!s && d("defaultFields.hover.default")};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
${!s && $ && a`
|
|
53
|
+
border-color: transparent;
|
|
54
|
+
background-color: transparent;
|
|
55
|
+
|
|
56
|
+
&:hover {
|
|
57
|
+
${d("defaultFields.hover.transparency")};
|
|
58
|
+
}
|
|
59
|
+
`}
|
|
60
|
+
|
|
61
|
+
&::placeholder {
|
|
62
|
+
${d("defaultFields.placeholder")};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:focus {
|
|
66
|
+
${!s && d("defaultFields.focused.default")};
|
|
67
|
+
${s === "danger" && d("defaultFields.focused.danger")};
|
|
68
|
+
${s === "warning" && d("defaultFields.focused.warning")};
|
|
69
|
+
${s === "success" && d("defaultFields.focused.success")};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&[disabled] {
|
|
73
|
+
${d("defaultFields.disabled")};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:invalid,
|
|
77
|
+
&:-moz-submit-invalid,
|
|
78
|
+
&:-moz-ui-invalid {
|
|
79
|
+
box-shadow: none;
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
82
|
+
};
|
|
83
|
+
export {
|
|
84
|
+
o as F,
|
|
85
|
+
f as d
|
|
86
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";"use strict";const s=require("@xstyled/styled-components"),h={xs:"xs",sm:"sm",md:"sm",lg:"sm"},$=({iconPlacement:e,isClearable:i,size:t,transparent:a,variant:d})=>{const l=h[t];return s.css`
|
|
2
|
+
${s.th("defaultFields.default")};
|
|
3
|
+
${d&&s.th(`defaultFields.variants.${d}`)};
|
|
4
|
+
width: 100%;
|
|
5
|
+
transition: medium;
|
|
6
|
+
appearance: none;
|
|
7
|
+
${t&&s.th(`defaultFields.sizes.${t}`)};
|
|
8
|
+
|
|
9
|
+
${(e==="left"||e==="both")&&s.css`
|
|
10
|
+
padding-left: calc(
|
|
11
|
+
${s.th(`defaultFields.sizes.${t}.paddingLeft`)} + ${s.th(`icons.${l}`)} +
|
|
12
|
+
${s.th("space.sm")}
|
|
13
|
+
);
|
|
14
|
+
`};
|
|
15
|
+
|
|
16
|
+
${(i||e==="right"||e==="both")&&s.css`
|
|
17
|
+
padding-right: calc(
|
|
18
|
+
${s.th(`defaultFields.sizes.${t}.paddingLeft`)} + ${s.th(`icons.${l}`)} +
|
|
19
|
+
${s.th("space.sm")}
|
|
20
|
+
);
|
|
21
|
+
`};
|
|
22
|
+
|
|
23
|
+
${i&&(e==="right"||e==="both")&&s.css`
|
|
24
|
+
padding-right: calc(
|
|
25
|
+
${s.th(`defaultFields.sizes.${t}.paddingLeft`)} + ${s.th(`icons.${l}`)} +
|
|
26
|
+
${s.th(`icons.${l}`)} + ${s.th("space.sm")} + ${s.th("space.sm")}
|
|
27
|
+
);
|
|
28
|
+
`};
|
|
29
|
+
|
|
30
|
+
&:hover {
|
|
31
|
+
${!d&&s.th("defaultFields.hover.default")};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
${!d&&a&&s.css`
|
|
35
|
+
border-color: transparent;
|
|
36
|
+
background-color: transparent;
|
|
37
|
+
|
|
38
|
+
&:hover {
|
|
39
|
+
${s.th("defaultFields.hover.transparency")};
|
|
40
|
+
}
|
|
41
|
+
`}
|
|
42
|
+
|
|
43
|
+
&::placeholder {
|
|
44
|
+
${s.th("defaultFields.placeholder")};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:focus {
|
|
48
|
+
${!d&&s.th("defaultFields.focused.default")};
|
|
49
|
+
${d==="danger"&&s.th("defaultFields.focused.danger")};
|
|
50
|
+
${d==="warning"&&s.th("defaultFields.focused.warning")};
|
|
51
|
+
${d==="success"&&s.th("defaultFields.focused.success")};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&[disabled] {
|
|
55
|
+
${s.th("defaultFields.disabled")};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:invalid,
|
|
59
|
+
&:-moz-submit-invalid,
|
|
60
|
+
&:-moz-ui-invalid {
|
|
61
|
+
box-shadow: none;
|
|
62
|
+
}
|
|
63
|
+
`};exports.FIELD_ICON_SIZE=h;exports.defaultFieldStyles=$;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const a=(t,e=t)=>{const s=parseInt(t,10),n=parseInt(e,10);return s-n>=0?t:e};exports.getMax=a;
|
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import g, { useRef as _, useState as q, Children as me, cloneElement as xe, useCallback as J, useMemo as Ee, useEffect as U } from "react";
|
|
3
|
+
import { R as Re } from "./index-ColyClKR.mjs";
|
|
4
|
+
import { forwardRef as ie } from "./System.mjs";
|
|
5
|
+
import { t as we } from "./throttle-BDBzFeFj.mjs";
|
|
6
|
+
import { Box as ze } from "./Box.mjs";
|
|
7
|
+
import B, { th as w, css as oe } from "@xstyled/styled-components";
|
|
8
|
+
var x = [], Be = function() {
|
|
9
|
+
return x.some(function(e) {
|
|
10
|
+
return e.activeTargets.length > 0;
|
|
11
|
+
});
|
|
12
|
+
}, Oe = function() {
|
|
13
|
+
return x.some(function(e) {
|
|
14
|
+
return e.skippedTargets.length > 0;
|
|
15
|
+
});
|
|
16
|
+
}, Y = "ResizeObserver loop completed with undelivered notifications.", ye = function() {
|
|
17
|
+
var e;
|
|
18
|
+
typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
|
|
19
|
+
message: Y
|
|
20
|
+
}) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = Y), window.dispatchEvent(e);
|
|
21
|
+
}, $;
|
|
22
|
+
(function(e) {
|
|
23
|
+
e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
24
|
+
})($ || ($ = {}));
|
|
25
|
+
var E = function(e) {
|
|
26
|
+
return Object.freeze(e);
|
|
27
|
+
}, Te = /* @__PURE__ */ function() {
|
|
28
|
+
function e(t, r) {
|
|
29
|
+
this.inlineSize = t, this.blockSize = r, E(this);
|
|
30
|
+
}
|
|
31
|
+
return e;
|
|
32
|
+
}(), se = function() {
|
|
33
|
+
function e(t, r, n, i) {
|
|
34
|
+
return this.x = t, this.y = r, this.width = n, this.height = i, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, E(this);
|
|
35
|
+
}
|
|
36
|
+
return e.prototype.toJSON = function() {
|
|
37
|
+
var t = this, r = t.x, n = t.y, i = t.top, s = t.right, o = t.bottom, l = t.left, d = t.width, c = t.height;
|
|
38
|
+
return { x: r, y: n, top: i, right: s, bottom: o, left: l, width: d, height: c };
|
|
39
|
+
}, e.fromRect = function(t) {
|
|
40
|
+
return new e(t.x, t.y, t.width, t.height);
|
|
41
|
+
}, e;
|
|
42
|
+
}(), V = function(e) {
|
|
43
|
+
return e instanceof SVGElement && "getBBox" in e;
|
|
44
|
+
}, ae = function(e) {
|
|
45
|
+
if (V(e)) {
|
|
46
|
+
var t = e.getBBox(), r = t.width, n = t.height;
|
|
47
|
+
return !r && !n;
|
|
48
|
+
}
|
|
49
|
+
var i = e, s = i.offsetWidth, o = i.offsetHeight;
|
|
50
|
+
return !(s || o || e.getClientRects().length);
|
|
51
|
+
}, K = function(e) {
|
|
52
|
+
var t;
|
|
53
|
+
if (e instanceof Element)
|
|
54
|
+
return !0;
|
|
55
|
+
var r = (t = e == null ? void 0 : e.ownerDocument) === null || t === void 0 ? void 0 : t.defaultView;
|
|
56
|
+
return !!(r && e instanceof r.Element);
|
|
57
|
+
}, Se = function(e) {
|
|
58
|
+
switch (e.tagName) {
|
|
59
|
+
case "INPUT":
|
|
60
|
+
if (e.type !== "image")
|
|
61
|
+
break;
|
|
62
|
+
case "VIDEO":
|
|
63
|
+
case "AUDIO":
|
|
64
|
+
case "EMBED":
|
|
65
|
+
case "OBJECT":
|
|
66
|
+
case "CANVAS":
|
|
67
|
+
case "IFRAME":
|
|
68
|
+
case "IMG":
|
|
69
|
+
return !0;
|
|
70
|
+
}
|
|
71
|
+
return !1;
|
|
72
|
+
}, C = typeof window < "u" ? window : {}, A = /* @__PURE__ */ new WeakMap(), Q = /auto|scroll/, Ce = /^tb|vertical/, $e = /msie|trident/i.test(C.navigator && C.navigator.userAgent), v = function(e) {
|
|
73
|
+
return parseFloat(e || "0");
|
|
74
|
+
}, z = function(e, t, r) {
|
|
75
|
+
return e === void 0 && (e = 0), t === void 0 && (t = 0), r === void 0 && (r = !1), new Te((r ? t : e) || 0, (r ? e : t) || 0);
|
|
76
|
+
}, Z = E({
|
|
77
|
+
devicePixelContentBoxSize: z(),
|
|
78
|
+
borderBoxSize: z(),
|
|
79
|
+
contentBoxSize: z(),
|
|
80
|
+
contentRect: new se(0, 0, 0, 0)
|
|
81
|
+
}), ce = function(e, t) {
|
|
82
|
+
if (t === void 0 && (t = !1), A.has(e) && !t)
|
|
83
|
+
return A.get(e);
|
|
84
|
+
if (ae(e))
|
|
85
|
+
return A.set(e, Z), Z;
|
|
86
|
+
var r = getComputedStyle(e), n = V(e) && e.ownerSVGElement && e.getBBox(), i = !$e && r.boxSizing === "border-box", s = Ce.test(r.writingMode || ""), o = !n && Q.test(r.overflowY || ""), l = !n && Q.test(r.overflowX || ""), d = n ? 0 : v(r.paddingTop), c = n ? 0 : v(r.paddingRight), O = n ? 0 : v(r.paddingBottom), f = n ? 0 : v(r.paddingLeft), N = n ? 0 : v(r.borderTopWidth), k = n ? 0 : v(r.borderRightWidth), D = n ? 0 : v(r.borderBottomWidth), W = n ? 0 : v(r.borderLeftWidth), y = f + c, m = d + O, T = W + k, S = N + D, a = l ? e.offsetHeight - S - e.clientHeight : 0, u = o ? e.offsetWidth - T - e.clientWidth : 0, h = i ? y + T : 0, p = i ? m + S : 0, b = n ? n.width : v(r.width) - h - u, R = n ? n.height : v(r.height) - p - a, be = b + y + u + T, ge = R + m + a + S, X = E({
|
|
87
|
+
devicePixelContentBoxSize: z(Math.round(b * devicePixelRatio), Math.round(R * devicePixelRatio), s),
|
|
88
|
+
borderBoxSize: z(be, ge, s),
|
|
89
|
+
contentBoxSize: z(b, R, s),
|
|
90
|
+
contentRect: new se(f, d, b, R)
|
|
91
|
+
});
|
|
92
|
+
return A.set(e, X), X;
|
|
93
|
+
}, ue = function(e, t, r) {
|
|
94
|
+
var n = ce(e, r), i = n.borderBoxSize, s = n.contentBoxSize, o = n.devicePixelContentBoxSize;
|
|
95
|
+
switch (t) {
|
|
96
|
+
case $.DEVICE_PIXEL_CONTENT_BOX:
|
|
97
|
+
return o;
|
|
98
|
+
case $.BORDER_BOX:
|
|
99
|
+
return i;
|
|
100
|
+
default:
|
|
101
|
+
return s;
|
|
102
|
+
}
|
|
103
|
+
}, ke = /* @__PURE__ */ function() {
|
|
104
|
+
function e(t) {
|
|
105
|
+
var r = ce(t);
|
|
106
|
+
this.target = t, this.contentRect = r.contentRect, this.borderBoxSize = E([r.borderBoxSize]), this.contentBoxSize = E([r.contentBoxSize]), this.devicePixelContentBoxSize = E([r.devicePixelContentBoxSize]);
|
|
107
|
+
}
|
|
108
|
+
return e;
|
|
109
|
+
}(), le = function(e) {
|
|
110
|
+
if (ae(e))
|
|
111
|
+
return 1 / 0;
|
|
112
|
+
for (var t = 0, r = e.parentNode; r; )
|
|
113
|
+
t += 1, r = r.parentNode;
|
|
114
|
+
return t;
|
|
115
|
+
}, De = function() {
|
|
116
|
+
var e = 1 / 0, t = [];
|
|
117
|
+
x.forEach(function(o) {
|
|
118
|
+
if (o.activeTargets.length !== 0) {
|
|
119
|
+
var l = [];
|
|
120
|
+
o.activeTargets.forEach(function(c) {
|
|
121
|
+
var O = new ke(c.target), f = le(c.target);
|
|
122
|
+
l.push(O), c.lastReportedSize = ue(c.target, c.observedBox), f < e && (e = f);
|
|
123
|
+
}), t.push(function() {
|
|
124
|
+
o.callback.call(o.observer, l, o.observer);
|
|
125
|
+
}), o.activeTargets.splice(0, o.activeTargets.length);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
for (var r = 0, n = t; r < n.length; r++) {
|
|
129
|
+
var i = n[r];
|
|
130
|
+
i();
|
|
131
|
+
}
|
|
132
|
+
return e;
|
|
133
|
+
}, j = function(e) {
|
|
134
|
+
x.forEach(function(r) {
|
|
135
|
+
r.activeTargets.splice(0, r.activeTargets.length), r.skippedTargets.splice(0, r.skippedTargets.length), r.observationTargets.forEach(function(i) {
|
|
136
|
+
i.isActive() && (le(i.target) > e ? r.activeTargets.push(i) : r.skippedTargets.push(i));
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
}, Ae = function() {
|
|
140
|
+
var e = 0;
|
|
141
|
+
for (j(e); Be(); )
|
|
142
|
+
e = De(), j(e);
|
|
143
|
+
return Oe() && ye(), e > 0;
|
|
144
|
+
}, P, de = [], Ie = function() {
|
|
145
|
+
return de.splice(0).forEach(function(e) {
|
|
146
|
+
return e();
|
|
147
|
+
});
|
|
148
|
+
}, Le = function(e) {
|
|
149
|
+
if (!P) {
|
|
150
|
+
var t = 0, r = document.createTextNode(""), n = { characterData: !0 };
|
|
151
|
+
new MutationObserver(function() {
|
|
152
|
+
return Ie();
|
|
153
|
+
}).observe(r, n), P = function() {
|
|
154
|
+
r.textContent = "".concat(t ? t-- : t++);
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
de.push(e), P();
|
|
158
|
+
}, Me = function(e) {
|
|
159
|
+
Le(function() {
|
|
160
|
+
requestAnimationFrame(e);
|
|
161
|
+
});
|
|
162
|
+
}, M = 0, Ne = function() {
|
|
163
|
+
return !!M;
|
|
164
|
+
}, We = 250, _e = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, ee = [
|
|
165
|
+
"resize",
|
|
166
|
+
"load",
|
|
167
|
+
"transitionend",
|
|
168
|
+
"animationend",
|
|
169
|
+
"animationstart",
|
|
170
|
+
"animationiteration",
|
|
171
|
+
"keyup",
|
|
172
|
+
"keydown",
|
|
173
|
+
"mouseup",
|
|
174
|
+
"mousedown",
|
|
175
|
+
"mouseover",
|
|
176
|
+
"mouseout",
|
|
177
|
+
"blur",
|
|
178
|
+
"focus"
|
|
179
|
+
], te = function(e) {
|
|
180
|
+
return e === void 0 && (e = 0), Date.now() + e;
|
|
181
|
+
}, F = !1, Pe = function() {
|
|
182
|
+
function e() {
|
|
183
|
+
var t = this;
|
|
184
|
+
this.stopped = !0, this.listener = function() {
|
|
185
|
+
return t.schedule();
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
return e.prototype.run = function(t) {
|
|
189
|
+
var r = this;
|
|
190
|
+
if (t === void 0 && (t = We), !F) {
|
|
191
|
+
F = !0;
|
|
192
|
+
var n = te(t);
|
|
193
|
+
Me(function() {
|
|
194
|
+
var i = !1;
|
|
195
|
+
try {
|
|
196
|
+
i = Ae();
|
|
197
|
+
} finally {
|
|
198
|
+
if (F = !1, t = n - te(), !Ne())
|
|
199
|
+
return;
|
|
200
|
+
i ? r.run(1e3) : t > 0 ? r.run(t) : r.start();
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
}, e.prototype.schedule = function() {
|
|
205
|
+
this.stop(), this.run();
|
|
206
|
+
}, e.prototype.observe = function() {
|
|
207
|
+
var t = this, r = function() {
|
|
208
|
+
return t.observer && t.observer.observe(document.body, _e);
|
|
209
|
+
};
|
|
210
|
+
document.body ? r() : C.addEventListener("DOMContentLoaded", r);
|
|
211
|
+
}, e.prototype.start = function() {
|
|
212
|
+
var t = this;
|
|
213
|
+
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), ee.forEach(function(r) {
|
|
214
|
+
return C.addEventListener(r, t.listener, !0);
|
|
215
|
+
}));
|
|
216
|
+
}, e.prototype.stop = function() {
|
|
217
|
+
var t = this;
|
|
218
|
+
this.stopped || (this.observer && this.observer.disconnect(), ee.forEach(function(r) {
|
|
219
|
+
return C.removeEventListener(r, t.listener, !0);
|
|
220
|
+
}), this.stopped = !0);
|
|
221
|
+
}, e;
|
|
222
|
+
}(), G = new Pe(), re = function(e) {
|
|
223
|
+
!M && e > 0 && G.start(), M += e, !M && G.stop();
|
|
224
|
+
}, Fe = function(e) {
|
|
225
|
+
return !V(e) && !Se(e) && getComputedStyle(e).display === "inline";
|
|
226
|
+
}, He = function() {
|
|
227
|
+
function e(t, r) {
|
|
228
|
+
this.target = t, this.observedBox = r || $.CONTENT_BOX, this.lastReportedSize = {
|
|
229
|
+
inlineSize: 0,
|
|
230
|
+
blockSize: 0
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
return e.prototype.isActive = function() {
|
|
234
|
+
var t = ue(this.target, this.observedBox, !0);
|
|
235
|
+
return Fe(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
|
|
236
|
+
}, e;
|
|
237
|
+
}(), Ge = /* @__PURE__ */ function() {
|
|
238
|
+
function e(t, r) {
|
|
239
|
+
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = t, this.callback = r;
|
|
240
|
+
}
|
|
241
|
+
return e;
|
|
242
|
+
}(), I = /* @__PURE__ */ new WeakMap(), ne = function(e, t) {
|
|
243
|
+
for (var r = 0; r < e.length; r += 1)
|
|
244
|
+
if (e[r].target === t)
|
|
245
|
+
return r;
|
|
246
|
+
return -1;
|
|
247
|
+
}, L = function() {
|
|
248
|
+
function e() {
|
|
249
|
+
}
|
|
250
|
+
return e.connect = function(t, r) {
|
|
251
|
+
var n = new Ge(t, r);
|
|
252
|
+
I.set(t, n);
|
|
253
|
+
}, e.observe = function(t, r, n) {
|
|
254
|
+
var i = I.get(t), s = i.observationTargets.length === 0;
|
|
255
|
+
ne(i.observationTargets, r) < 0 && (s && x.push(i), i.observationTargets.push(new He(r, n && n.box)), re(1), G.schedule());
|
|
256
|
+
}, e.unobserve = function(t, r) {
|
|
257
|
+
var n = I.get(t), i = ne(n.observationTargets, r), s = n.observationTargets.length === 1;
|
|
258
|
+
i >= 0 && (s && x.splice(x.indexOf(n), 1), n.observationTargets.splice(i, 1), re(-1));
|
|
259
|
+
}, e.disconnect = function(t) {
|
|
260
|
+
var r = this, n = I.get(t);
|
|
261
|
+
n.observationTargets.slice().forEach(function(i) {
|
|
262
|
+
return r.unobserve(t, i.target);
|
|
263
|
+
}), n.activeTargets.splice(0, n.activeTargets.length);
|
|
264
|
+
}, e;
|
|
265
|
+
}(), Ve = function() {
|
|
266
|
+
function e(t) {
|
|
267
|
+
if (arguments.length === 0)
|
|
268
|
+
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
269
|
+
if (typeof t != "function")
|
|
270
|
+
throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
271
|
+
L.connect(this, t);
|
|
272
|
+
}
|
|
273
|
+
return e.prototype.observe = function(t, r) {
|
|
274
|
+
if (arguments.length === 0)
|
|
275
|
+
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
276
|
+
if (!K(t))
|
|
277
|
+
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
278
|
+
L.observe(this, t, r);
|
|
279
|
+
}, e.prototype.unobserve = function(t) {
|
|
280
|
+
if (arguments.length === 0)
|
|
281
|
+
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
282
|
+
if (!K(t))
|
|
283
|
+
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
284
|
+
L.unobserve(this, t);
|
|
285
|
+
}, e.prototype.disconnect = function() {
|
|
286
|
+
L.disconnect(this);
|
|
287
|
+
}, e.toString = function() {
|
|
288
|
+
return "function ResizeObserver () { [polyfill code] }";
|
|
289
|
+
}, e;
|
|
290
|
+
}();
|
|
291
|
+
const Xe = (e, t, r) => Math.min(Math.max(e, t), r), qe = B.aBox`
|
|
292
|
+
${w("breadcrumbs.item.default")};
|
|
293
|
+
align-items: center;
|
|
294
|
+
transition: medium;
|
|
295
|
+
direction: initial;
|
|
296
|
+
|
|
297
|
+
&:hover {
|
|
298
|
+
${w("breadcrumbs.item.hover")};
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
&[aria-current='page'] {
|
|
302
|
+
${w("breadcrumbs.item.active")};
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
&[aria-disabled='true'] {
|
|
306
|
+
pointer-events: none;
|
|
307
|
+
cursor: default;
|
|
308
|
+
}
|
|
309
|
+
`, Je = B.spanBox`
|
|
310
|
+
${w("breadcrumbs.separator")};
|
|
311
|
+
display: flex;
|
|
312
|
+
align-items: center;
|
|
313
|
+
`, Ue = ie(
|
|
314
|
+
({ children: e, dataTestId: t, isActive: r, separator: n, ...i }, s) => {
|
|
315
|
+
const o = i.href || i.to;
|
|
316
|
+
return /* @__PURE__ */ g.createElement(
|
|
317
|
+
ze,
|
|
318
|
+
{
|
|
319
|
+
"aria-label": "breadcrumb",
|
|
320
|
+
as: "li",
|
|
321
|
+
"data-testid": t,
|
|
322
|
+
display: "inline-flex",
|
|
323
|
+
flex: "0 0 auto",
|
|
324
|
+
lineHeight: "normal"
|
|
325
|
+
},
|
|
326
|
+
n && /* @__PURE__ */ g.createElement(Je, { role: "presentation" }, n),
|
|
327
|
+
/* @__PURE__ */ g.createElement(
|
|
328
|
+
qe,
|
|
329
|
+
{
|
|
330
|
+
"aria-current": r ? "page" : void 0,
|
|
331
|
+
"aria-disabled": !o,
|
|
332
|
+
...i,
|
|
333
|
+
ref: s
|
|
334
|
+
},
|
|
335
|
+
e
|
|
336
|
+
)
|
|
337
|
+
);
|
|
338
|
+
}
|
|
339
|
+
), H = (e, t, r) => parseInt(e.substring(t, r), 16), Ye = (e) => /(^[0-9a-fA-F]{6}$)|(^[0-9a-fA-F]{3}$)/.test(e), Ke = (e) => {
|
|
340
|
+
if (!e || (e = e.replace("#", ""), !Ye(e)))
|
|
341
|
+
return;
|
|
342
|
+
e.length === 3 && (e = `${e[0]}${e[0]}${e[1]}${e[1]}${e[2]}${e[2]}`);
|
|
343
|
+
const t = (i) => H(i, 0, 2), r = (i) => H(i, 2, 4), n = (i) => H(i, 4, 6);
|
|
344
|
+
return `${t(e)}, ${r(e)}, ${n(e)}`;
|
|
345
|
+
}, Qe = (e, t = 1) => e ? e.startsWith("#") ? `rgba(${Ke(e)}, ${t})` : e : void 0, fe = B.spanBox(
|
|
346
|
+
({ gradientBackground: e, theme: t }) => oe`
|
|
347
|
+
left: 0;
|
|
348
|
+
background-image: ${he(t, e)};
|
|
349
|
+
transform-origin: left;
|
|
350
|
+
`
|
|
351
|
+
), ve = B.spanBox(
|
|
352
|
+
({ gradientBackground: e, theme: t }) => oe`
|
|
353
|
+
right: 0;
|
|
354
|
+
background-image: ${he(t, e, "left")};
|
|
355
|
+
transform-origin: right;
|
|
356
|
+
`
|
|
357
|
+
), Ze = B.divBox`
|
|
358
|
+
${w("breadcrumbs.list")};
|
|
359
|
+
height: 100%;
|
|
360
|
+
position: relative;
|
|
361
|
+
overflow-x: hidden;
|
|
362
|
+
|
|
363
|
+
${fe},
|
|
364
|
+
${ve} {
|
|
365
|
+
position: absolute;
|
|
366
|
+
bottom: 0;
|
|
367
|
+
top: 0;
|
|
368
|
+
width: 30;
|
|
369
|
+
}
|
|
370
|
+
`, je = B.olBox`
|
|
371
|
+
display: inline-flex;
|
|
372
|
+
align-items: center;
|
|
373
|
+
max-width: 100%;
|
|
374
|
+
height: 100%;
|
|
375
|
+
overflow-x: auto;
|
|
376
|
+
margin: 0;
|
|
377
|
+
padding: 0;
|
|
378
|
+
list-style: none;
|
|
379
|
+
white-space: nowrap;
|
|
380
|
+
`, he = (e, t, r = "right") => {
|
|
381
|
+
const n = w(`colors.${t}`)({ theme: e }), i = Qe(n, 0);
|
|
382
|
+
return `linear-gradient(to ${r}, ${n}, ${i} 100%)`;
|
|
383
|
+
}, pe = ie(
|
|
384
|
+
({
|
|
385
|
+
children: e,
|
|
386
|
+
gradientBackground: t = "neutral-10",
|
|
387
|
+
lastChildNotClickable: r = !0,
|
|
388
|
+
separator: n = /* @__PURE__ */ g.createElement(Re, { size: "xs" }),
|
|
389
|
+
...i
|
|
390
|
+
}, s) => {
|
|
391
|
+
const o = _(null), l = _(), d = _(), [c, O] = q(!1), [f, N] = q(0), k = me.toArray(e).filter(Boolean), D = k.length, W = k.map((a, u) => {
|
|
392
|
+
const h = D === 1 || D === u + 1, p = h && r;
|
|
393
|
+
return xe(a, {
|
|
394
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
395
|
+
key: `breadcrumb-${u}`,
|
|
396
|
+
separator: h ? void 0 : n,
|
|
397
|
+
isActive: p,
|
|
398
|
+
...a.props
|
|
399
|
+
});
|
|
400
|
+
});
|
|
401
|
+
function y(a, u) {
|
|
402
|
+
a && (a.style.transform = `scale3d(${u}, 1, 1)`);
|
|
403
|
+
}
|
|
404
|
+
const m = J((a) => {
|
|
405
|
+
const u = 1 - a;
|
|
406
|
+
y(l.current, u), y(d.current, a);
|
|
407
|
+
}, []), T = J(() => {
|
|
408
|
+
const {
|
|
409
|
+
current: { offsetWidth: a, scrollLeft: u, scrollWidth: h }
|
|
410
|
+
} = o, p = h - a, R = Xe(Math.abs(u - f), 0, p) / p;
|
|
411
|
+
m(R);
|
|
412
|
+
}, [f, m]), S = Ee(
|
|
413
|
+
() => we(
|
|
414
|
+
(a) => {
|
|
415
|
+
const [
|
|
416
|
+
{
|
|
417
|
+
// Is offsetWidth really needed ?
|
|
418
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
419
|
+
// @ts-ignore
|
|
420
|
+
target: { offsetWidth: u, scrollLeft: h, scrollWidth: p }
|
|
421
|
+
}
|
|
422
|
+
] = a, b = p - u;
|
|
423
|
+
f || N(h === 0 ? 0 : b), O(b > 0);
|
|
424
|
+
},
|
|
425
|
+
300,
|
|
426
|
+
!1
|
|
427
|
+
),
|
|
428
|
+
[f]
|
|
429
|
+
);
|
|
430
|
+
return U(() => {
|
|
431
|
+
const a = new Ve(S);
|
|
432
|
+
return a.observe(o.current), () => a.disconnect();
|
|
433
|
+
}, []), U(() => {
|
|
434
|
+
l.current && d.current && m(0);
|
|
435
|
+
}, [c, m]), /* @__PURE__ */ g.createElement(Ze, { as: "nav", ref: s, ...i }, c && /* @__PURE__ */ g.createElement(fe, { gradientBackground: t, ref: l }), /* @__PURE__ */ g.createElement(je, { dir: "rtl", onScroll: T, ref: o }, W.reverse()), c && /* @__PURE__ */ g.createElement(ve, { gradientBackground: t, ref: d }));
|
|
436
|
+
}
|
|
437
|
+
);
|
|
438
|
+
pe.displayName = "Breadcrumb";
|
|
439
|
+
const st = Object.assign(pe, {
|
|
440
|
+
Item: Ue
|
|
441
|
+
});
|
|
442
|
+
export {
|
|
443
|
+
pe as B,
|
|
444
|
+
st as a,
|
|
445
|
+
Qe as h
|
|
446
|
+
};
|