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
|
@@ -5,6 +5,31 @@ import { ThemeAvatars } from '../components/Avatar/theme';
|
|
|
5
5
|
import { ThemeBadges } from '../components/Badge/theme';
|
|
6
6
|
import { ThemeBreadcrumbs } from '../components/Breadcrumb/theme';
|
|
7
7
|
import { ThemeCards } from '../components/Card/theme';
|
|
8
|
+
import { ThemeDateTimePickerCommon } from '../components/DateTimePickerCommon/theme';
|
|
9
|
+
import { ThemeCheckboxes } from '../components/Checkbox/theme';
|
|
10
|
+
import { ThemeDrawers } from '../components/Drawer/theme';
|
|
11
|
+
import { ThemeDropdownMenu } from '../components/DropdownMenu/theme';
|
|
12
|
+
import { ThemeFileDrops } from '../components/FileDrop/theme';
|
|
13
|
+
import { ThemeHints } from '../components/Hint/theme';
|
|
14
|
+
import { ThemeLabels } from '../components/Label/theme';
|
|
15
|
+
import { ThemeLinks } from '../components/Link/theme';
|
|
16
|
+
import { ThemeLoaders } from '../components/Loader/theme';
|
|
17
|
+
import { ThemeIcons } from '../components/Icon/theme';
|
|
18
|
+
import { ThemeModals } from '../components/Modal/theme';
|
|
19
|
+
import { ThemePagination } from '../components/Pagination/theme';
|
|
20
|
+
import { ThemePopovers } from '../components/Popover/theme';
|
|
21
|
+
import { ThemeRadios } from '../components/Radio/theme';
|
|
22
|
+
import { ThemeRadioTabs } from '../components/RadioTab/theme';
|
|
23
|
+
import { ThemeSliders } from '../components/Slider/theme';
|
|
24
|
+
import { ThemeSwipers } from '../components/Swiper/theme';
|
|
25
|
+
import { ThemeTables } from '../components/Table/theme';
|
|
26
|
+
import { ThemeTabs } from '../components/Tabs/theme';
|
|
27
|
+
import { ThemeTags } from '../components/Tag/theme';
|
|
28
|
+
import { ThemeTextareas } from '../components/Textarea/theme';
|
|
29
|
+
import { ThemeToasts } from '../components/Toast/theme';
|
|
30
|
+
import { ThemeToggles } from '../components/Toggle/theme';
|
|
31
|
+
import { ThemeTooltips } from '../components/Tooltip/theme';
|
|
32
|
+
import { ThemeVariantIcon } from '../components/VariantIcon/theme';
|
|
8
33
|
import { darkTheme } from './dark';
|
|
9
34
|
import { ThemeColors } from './colors';
|
|
10
35
|
import { ThemeFontFaces } from './fonts';
|
|
@@ -29,23 +54,44 @@ export interface ThemeValues extends XStyledTheme, StyledComponentsTheme {
|
|
|
29
54
|
borderWidths: ThemeBorderWidths;
|
|
30
55
|
breadcrumbs: ThemeBreadcrumbs;
|
|
31
56
|
cards: ThemeCards;
|
|
57
|
+
checkboxes: ThemeCheckboxes;
|
|
32
58
|
colors: ThemeColors;
|
|
59
|
+
dateTimePickerCommon: ThemeDateTimePickerCommon;
|
|
33
60
|
defaultLetterSpacing: string;
|
|
34
61
|
defaultLineHeight: number;
|
|
62
|
+
drawers: ThemeDrawers;
|
|
63
|
+
dropdownMenu: ThemeDropdownMenu;
|
|
64
|
+
fileDrops: ThemeFileDrops;
|
|
35
65
|
focus: ThemeFocus;
|
|
36
66
|
fontFaces: ThemeFontFaces;
|
|
37
67
|
fontSizes: ThemeFontSizes;
|
|
38
68
|
fontWeights: ThemeFontWeights;
|
|
39
69
|
fonts: ThemeFonts;
|
|
40
70
|
fontsUrl: ThemeFontsUrl;
|
|
71
|
+
hints: ThemeHints;
|
|
72
|
+
icons: ThemeIcons;
|
|
41
73
|
inset: ThemeSpace;
|
|
74
|
+
labels: ThemeLabels;
|
|
42
75
|
letterSpacings: ThemeLetterSpacings;
|
|
43
76
|
lineHeights: ThemeLineHeights;
|
|
77
|
+
links: ThemeLinks;
|
|
78
|
+
loaders: ThemeLoaders;
|
|
79
|
+
modal: ThemeModals;
|
|
80
|
+
pagination: ThemePagination;
|
|
81
|
+
popovers: ThemePopovers;
|
|
44
82
|
radii: ThemeRadii;
|
|
83
|
+
radios: ThemeRadios;
|
|
84
|
+
radiosTab: ThemeRadioTabs;
|
|
45
85
|
screens: ThemeScreens;
|
|
46
86
|
selection: ThemeSelection;
|
|
47
87
|
shadows: ThemeShadows;
|
|
88
|
+
sliders: ThemeSliders;
|
|
48
89
|
space: ThemeSpace;
|
|
90
|
+
swipers: ThemeSwipers;
|
|
91
|
+
tables: ThemeTables;
|
|
92
|
+
tabs: ThemeTabs;
|
|
93
|
+
tags: ThemeTags;
|
|
94
|
+
textareas: ThemeTextareas;
|
|
49
95
|
texts: ThemeTexts;
|
|
50
96
|
textsFontFamily: ThemeTextsFontFamily;
|
|
51
97
|
textsFontWeights: ThemeTextsFontWeights;
|
|
@@ -54,15 +100,19 @@ export interface ThemeValues extends XStyledTheme, StyledComponentsTheme {
|
|
|
54
100
|
toEm: (int: number) => string;
|
|
55
101
|
toPx: (int: number) => string;
|
|
56
102
|
toRem: (int: number) => string;
|
|
103
|
+
toasts: ThemeToasts;
|
|
104
|
+
toggles: ThemeToggles;
|
|
105
|
+
tooltips: ThemeTooltips;
|
|
57
106
|
transformers: {
|
|
58
107
|
border: (value: CSSScalar) => CSSScalar;
|
|
59
108
|
px: (value: CSSScalar) => CSSScalar;
|
|
60
109
|
};
|
|
61
110
|
transitions: ThemeTransitions;
|
|
62
111
|
underline: ThemeUnderline;
|
|
112
|
+
variantIcon: ThemeVariantIcon;
|
|
63
113
|
}
|
|
64
114
|
export type ThemeFontsUrl = 'https://cdn.welcome-ui.com/fonts' | 'https://cdn.welcometothejungle.com/fonts' | string;
|
|
65
|
-
export type
|
|
115
|
+
export type ThemeProps = {
|
|
66
116
|
[param: string]: unknown;
|
|
67
117
|
defaultFontFamily?: string;
|
|
68
118
|
defaultFontSize?: number;
|
|
@@ -72,5 +122,5 @@ export type Options = {
|
|
|
72
122
|
headingFontFamily?: string;
|
|
73
123
|
iconFontFamily?: string;
|
|
74
124
|
};
|
|
75
|
-
export declare const createTheme: (options?:
|
|
125
|
+
export declare const createTheme: (options?: ThemeProps) => ThemeValues;
|
|
76
126
|
export { darkTheme };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSObject } from '@xstyled/styled-components';
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeProps, ThemeValues } from '.';
|
|
3
3
|
export type ThemeFontSizes = {
|
|
4
4
|
[key: number]: string;
|
|
5
5
|
h0: string;
|
|
@@ -130,4 +130,4 @@ export type ThemeFonts = {
|
|
|
130
130
|
icons: string;
|
|
131
131
|
texts: string;
|
|
132
132
|
};
|
|
133
|
-
export declare const getFonts: (defaultFontFamily:
|
|
133
|
+
export declare const getFonts: (defaultFontFamily: ThemeProps["defaultFontFamily"], headingFontFamily: ThemeProps["headingFontFamily"], iconFontFamily: ThemeProps["iconFontFamily"]) => ThemeFonts;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const clamp: (value: number, min: number, max: number) => number;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { css } from '@xstyled/styled-components';
|
|
2
|
+
type FieldIconSizes = {
|
|
3
|
+
lg: 'sm';
|
|
4
|
+
md: 'sm';
|
|
5
|
+
sm: 'sm';
|
|
6
|
+
xs: 'xs';
|
|
7
|
+
};
|
|
8
|
+
export declare const FIELD_ICON_SIZE: FieldIconSizes;
|
|
9
|
+
export type Size = 'xs' | 'sm' | 'md' | 'lg';
|
|
10
|
+
export type FieldIconSize = 'xs' | 'sm';
|
|
11
|
+
export type DefaultFieldStylesProps = Partial<{
|
|
12
|
+
hasIcon?: boolean;
|
|
13
|
+
iconPlacement?: 'right' | 'left' | 'both';
|
|
14
|
+
isClearable?: boolean;
|
|
15
|
+
size: Size;
|
|
16
|
+
transparent?: boolean;
|
|
17
|
+
variant: 'danger' | 'success' | 'warning';
|
|
18
|
+
}>;
|
|
19
|
+
type DefaultFieldStyles = (args: DefaultFieldStylesProps) => ReturnType<typeof css>;
|
|
20
|
+
export declare const defaultFieldStyles: DefaultFieldStyles;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatBytes: (bytes: number, decimals?: number) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getMax: (width: string, height?: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hexToRGB: (hex: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hexToRGBA: (hex: string, transparency?: number) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const hideFocusRingsDataAttribute = "data-wui-hidefocusrings";
|
|
3
|
+
interface HideFocusRingsRootProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
reactRootId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const HideFocusRingsRoot: React.FC<HideFocusRingsRootProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-copy-text';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const overflowEllipsis: import('styled-components').FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook that mimic the React createPortal function in order to make it SSR friendly
|
|
3
|
+
*/
|
|
4
|
+
export declare function useCreatePortal(disable?: boolean): ((children: React.ReactNode) => any) | ((children: React.ReactNode, container?: Element | DocumentFragment, key?: string | null) => import('react').ReactPortal);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const wrapChildren: (children?: string | JSX.Element) => unknown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const e=require("react"),t=typeof window>"u"?e.useEffect:e.useLayoutEffect;exports.useIsomorphicLayoutEffect=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const n=require("react"),r=require("./use-isomorphic-layout-effect-C1_Gy5Nu.js");function o(){const[t,e]=n.useState({height:void 0,width:void 0});return r.useIsomorphicLayoutEffect(()=>{e({width:window.innerWidth,height:window.innerHeight});function i(){e({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),t}exports.useViewportSize=o;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState as t } from "react";
|
|
3
|
+
import { u as r } from "./use-isomorphic-layout-effect-Izr-e2pi.mjs";
|
|
4
|
+
function w() {
|
|
5
|
+
const [n, e] = t({ height: void 0, width: void 0 });
|
|
6
|
+
return r(() => {
|
|
7
|
+
e({ width: window.innerWidth, height: window.innerHeight });
|
|
8
|
+
function i() {
|
|
9
|
+
e({ width: window.innerWidth, height: window.innerHeight });
|
|
10
|
+
}
|
|
11
|
+
return window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
|
|
12
|
+
}, []), n;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
w as u
|
|
16
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client";"use strict";const n=require("react"),l=require("./System.js"),o=require("@xstyled/styled-components"),u=require("./QYJ6MIDR-CRK3satR.js"),a=require("./BYC7LY2E-BkAEL2VD.js"),f=require("./index-Cs1IZBks.js"),g=require("./Box.js"),h=require("./Button.js"),P=o(u.PopoverArrow)`
|
|
2
|
+
color: ${o.th("popovers.default.backgroundColor")};
|
|
3
|
+
`,w=o.svgBox(({$transform:t})=>o.css`
|
|
4
|
+
transform: ${t};
|
|
5
|
+
`),v=o.div`
|
|
6
|
+
${o.th("popovers.content")};
|
|
7
|
+
`,p=o.h6`
|
|
8
|
+
margin: 0;
|
|
9
|
+
${o.th("popovers.title")};
|
|
10
|
+
`,m=o(a.Popover)(({$withCloseButton:t})=>o.css`
|
|
11
|
+
${o.th("popovers.default")};
|
|
12
|
+
outline: none;
|
|
13
|
+
opacity: 0;
|
|
14
|
+
transition: opacity 150ms ease-in-out;
|
|
15
|
+
${o.system};
|
|
16
|
+
|
|
17
|
+
/* on open popover for animation */
|
|
18
|
+
&[data-enter] {
|
|
19
|
+
opacity: 1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
${t&&o.css`
|
|
23
|
+
${p} {
|
|
24
|
+
padding-right: 50;
|
|
25
|
+
}
|
|
26
|
+
`}
|
|
27
|
+
`);o(u.PopoverDisclosure)`
|
|
28
|
+
${o.system};
|
|
29
|
+
`;const C=o(a.HovercardAnchor)`
|
|
30
|
+
${o.system};
|
|
31
|
+
`,$=l.forwardRef(({as:t,store:r,...e},s)=>n.createElement(u.PopoverDisclosure,{ref:s,render:t?c=>n.createElement(t,{...c}):void 0,store:r,...e})),E=l.forwardRef(({as:t,store:r,...e},s)=>n.createElement(C,{store:r,...e,forwardedAs:t,ref:s})),H={top:"rotateZ(180deg)",right:"rotateZ(-90deg)",bottom:"rotateZ(360deg)",left:"rotateZ(90deg)"},B=({store:t})=>{const r=t.useState("currentPlacement"),[e]=r.split("-"),s=H[e];return n.createElement(P,{store:t},n.createElement(w,{$transform:s,h:30,w:30,xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M7 30L15 22L23 30H7Z",fill:"currentColor",fillRule:"nonzero",id:"stroke"}),n.createElement("path",{d:"M8 30L15 23L22 30H8Z",fill:"currentColor",fillRule:"nonzero"})))},d=({children:t,onClose:r,store:e})=>{const s=()=>{r&&r(),e==null||e.hide()},{withCloseButton:c}=e;return n.createElement(g.Box,{position:"relative"},n.createElement(B,{store:e}),t,c&&n.createElement(h.Button,{flex:"0 0 auto",ml:"md",onClick:s,position:"absolute",right:1,shape:"square",size:"xs",top:1,variant:"secondary"},n.createElement(f.CrossIcon,null)))},q=l.forwardRef(({children:t,onClose:r,store:e,...s},c)=>{const{withCloseButton:i}=e;return n.createElement(m,{$withCloseButton:i,ref:c,store:e,...s},n.createElement(d,{onClose:r,store:e},t))}),y=Object.assign(q,{Content:v,Title:p,Trigger:$}),R=l.forwardRef(({children:t,onClose:r,store:e,...s},c)=>{const{withCloseButton:i}=e;return n.createElement(m,{as:a.Hovercard,store:e,...s,$withCloseButton:i,ref:c},n.createElement(d,{onClose:r,store:e},t))}),T=Object.assign(R,{Content:v,Title:p,Trigger:E}),x=({animated:t=150,withCloseButton:r=!1,...e}={})=>({...a.usePopoverStore({animated:t,...e}),withCloseButton:r}),Z=({animated:t=150,hideTimeout:r=300,showTimeout:e=500,withCloseButton:s=!1,...c}={})=>({...a.useHovercardStore({animated:t,hideTimeout:r,showTimeout:e,...c}),withCloseButton:s});exports.Popover=y;exports.PopoverHover=T;exports.usePopover=x;exports.usePopoverHover=Z;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import r from "react";
|
|
3
|
+
import { forwardRef as l } from "./System.mjs";
|
|
4
|
+
import s, { th as i, css as p, system as m } from "@xstyled/styled-components";
|
|
5
|
+
import { P, a as v } from "./QYJ6MIDR-Cy39pEs2.mjs";
|
|
6
|
+
import { P as h, H as $, a as C, u as w, b as E } from "./BYC7LY2E-BAjGN7k_.mjs";
|
|
7
|
+
import { C as H } from "./index-ColyClKR.mjs";
|
|
8
|
+
import { Box as B } from "./Box.mjs";
|
|
9
|
+
import { Button as T } from "./Button.mjs";
|
|
10
|
+
const b = s(P)`
|
|
11
|
+
color: ${i("popovers.default.backgroundColor")};
|
|
12
|
+
`, x = s.svgBox(
|
|
13
|
+
({ $transform: t }) => p`
|
|
14
|
+
transform: ${t};
|
|
15
|
+
`
|
|
16
|
+
), d = s.div`
|
|
17
|
+
${i("popovers.content")};
|
|
18
|
+
`, u = s.h6`
|
|
19
|
+
margin: 0;
|
|
20
|
+
${i("popovers.title")};
|
|
21
|
+
`, f = s(h)(
|
|
22
|
+
({ $withCloseButton: t }) => p`
|
|
23
|
+
${i("popovers.default")};
|
|
24
|
+
outline: none;
|
|
25
|
+
opacity: 0;
|
|
26
|
+
transition: opacity 150ms ease-in-out;
|
|
27
|
+
${m};
|
|
28
|
+
|
|
29
|
+
/* on open popover for animation */
|
|
30
|
+
&[data-enter] {
|
|
31
|
+
opacity: 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
${t && p`
|
|
35
|
+
${u} {
|
|
36
|
+
padding-right: 50;
|
|
37
|
+
}
|
|
38
|
+
`}
|
|
39
|
+
`
|
|
40
|
+
);
|
|
41
|
+
s(v)`
|
|
42
|
+
${m};
|
|
43
|
+
`;
|
|
44
|
+
const y = s($)`
|
|
45
|
+
${m};
|
|
46
|
+
`, Z = l(
|
|
47
|
+
({ as: t, store: o, ...e }, n) => /* @__PURE__ */ r.createElement(
|
|
48
|
+
v,
|
|
49
|
+
{
|
|
50
|
+
ref: n,
|
|
51
|
+
render: t ? (a) => /* @__PURE__ */ r.createElement(t, { ...a }) : void 0,
|
|
52
|
+
store: o,
|
|
53
|
+
...e
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
), A = l(
|
|
57
|
+
({ as: t, store: o, ...e }, n) => /* @__PURE__ */ r.createElement(y, { store: o, ...e, forwardedAs: t, ref: n })
|
|
58
|
+
), L = {
|
|
59
|
+
top: "rotateZ(180deg)",
|
|
60
|
+
right: "rotateZ(-90deg)",
|
|
61
|
+
bottom: "rotateZ(360deg)",
|
|
62
|
+
left: "rotateZ(90deg)"
|
|
63
|
+
}, R = ({ store: t }) => {
|
|
64
|
+
const o = t.useState("currentPlacement"), [e] = o.split("-"), n = L[e];
|
|
65
|
+
return /* @__PURE__ */ r.createElement(b, { store: t }, /* @__PURE__ */ r.createElement(x, { $transform: n, h: 30, w: 30, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ r.createElement("path", { d: "M7 30L15 22L23 30H7Z", fill: "currentColor", fillRule: "nonzero", id: "stroke" }), /* @__PURE__ */ r.createElement("path", { d: "M8 30L15 23L22 30H8Z", fill: "currentColor", fillRule: "nonzero" })));
|
|
66
|
+
}, g = ({ children: t, onClose: o, store: e }) => {
|
|
67
|
+
const n = () => {
|
|
68
|
+
o && o(), e == null || e.hide();
|
|
69
|
+
}, { withCloseButton: a } = e;
|
|
70
|
+
return /* @__PURE__ */ r.createElement(B, { position: "relative" }, /* @__PURE__ */ r.createElement(R, { store: e }), t, a && /* @__PURE__ */ r.createElement(
|
|
71
|
+
T,
|
|
72
|
+
{
|
|
73
|
+
flex: "0 0 auto",
|
|
74
|
+
ml: "md",
|
|
75
|
+
onClick: n,
|
|
76
|
+
position: "absolute",
|
|
77
|
+
right: 1,
|
|
78
|
+
shape: "square",
|
|
79
|
+
size: "xs",
|
|
80
|
+
top: 1,
|
|
81
|
+
variant: "secondary"
|
|
82
|
+
},
|
|
83
|
+
/* @__PURE__ */ r.createElement(H, null)
|
|
84
|
+
));
|
|
85
|
+
}, _ = l(
|
|
86
|
+
({ children: t, onClose: o, store: e, ...n }, a) => {
|
|
87
|
+
const { withCloseButton: c } = e;
|
|
88
|
+
return /* @__PURE__ */ r.createElement(f, { $withCloseButton: c, ref: a, store: e, ...n }, /* @__PURE__ */ r.createElement(g, { onClose: o, store: e }, t));
|
|
89
|
+
}
|
|
90
|
+
), F = Object.assign(_, {
|
|
91
|
+
Content: d,
|
|
92
|
+
Title: u,
|
|
93
|
+
Trigger: Z
|
|
94
|
+
}), k = l(
|
|
95
|
+
({ children: t, onClose: o, store: e, ...n }, a) => {
|
|
96
|
+
const { withCloseButton: c } = e;
|
|
97
|
+
return /* @__PURE__ */ r.createElement(
|
|
98
|
+
f,
|
|
99
|
+
{
|
|
100
|
+
as: C,
|
|
101
|
+
store: e,
|
|
102
|
+
...n,
|
|
103
|
+
$withCloseButton: c,
|
|
104
|
+
ref: a
|
|
105
|
+
},
|
|
106
|
+
/* @__PURE__ */ r.createElement(g, { onClose: o, store: e }, t)
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
), G = Object.assign(k, {
|
|
110
|
+
Content: d,
|
|
111
|
+
Title: u,
|
|
112
|
+
Trigger: A
|
|
113
|
+
}), J = ({
|
|
114
|
+
animated: t = 150,
|
|
115
|
+
withCloseButton: o = !1,
|
|
116
|
+
...e
|
|
117
|
+
} = {}) => ({
|
|
118
|
+
...w({
|
|
119
|
+
animated: t,
|
|
120
|
+
...e
|
|
121
|
+
}),
|
|
122
|
+
withCloseButton: o
|
|
123
|
+
}), K = ({
|
|
124
|
+
animated: t = 150,
|
|
125
|
+
hideTimeout: o = 300,
|
|
126
|
+
showTimeout: e = 500,
|
|
127
|
+
withCloseButton: n = !1,
|
|
128
|
+
...a
|
|
129
|
+
} = {}) => ({
|
|
130
|
+
...E({
|
|
131
|
+
animated: t,
|
|
132
|
+
hideTimeout: o,
|
|
133
|
+
showTimeout: e,
|
|
134
|
+
...a
|
|
135
|
+
}),
|
|
136
|
+
withCloseButton: n
|
|
137
|
+
});
|
|
138
|
+
export {
|
|
139
|
+
F as P,
|
|
140
|
+
G as a,
|
|
141
|
+
K as b,
|
|
142
|
+
J as u
|
|
143
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const r=require("react"),t=n=>r.Children.toArray(n).map(e=>["number","string"].includes(typeof e)?r.createElement("span",{key:e},e):e);exports.wrapChildren=t;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import r from "react";
|
|
3
|
+
const a = (t) => r.Children.toArray(t).map(
|
|
4
|
+
(e) => (
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6
|
+
/* @ts-ignore */
|
|
7
|
+
["number", "string"].includes(typeof e) ? /* @__PURE__ */ r.createElement("span", { key: e }, e) : e
|
|
8
|
+
)
|
|
9
|
+
);
|
|
10
|
+
export {
|
|
11
|
+
a as w
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "welcome-ui",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.4",
|
|
4
4
|
"description": "Customizable design system with react • styled-components • styled-system and ariakit.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -52,22 +52,74 @@
|
|
|
52
52
|
"@testing-library/jest-dom": "^6.6.3",
|
|
53
53
|
"@testing-library/react": "^16.1.0",
|
|
54
54
|
"@testing-library/user-event": "^14.5.2",
|
|
55
|
+
"@types/lodash.capitalize": "^4.2.9",
|
|
56
|
+
"@types/lodash.debounce": "^4.0.6",
|
|
57
|
+
"@types/react-datepicker": "^4.15.0",
|
|
55
58
|
"@types/react": "^18.3.12",
|
|
56
59
|
"@xstyled/styled-components": "^3.7.3",
|
|
57
|
-
"
|
|
60
|
+
"copy-to-clipboard": "^3.3.3",
|
|
61
|
+
"date-fns": "^4.1.0",
|
|
62
|
+
"downshift": "^7.4.1",
|
|
63
|
+
"lodash.capitalize": "^4.2.1",
|
|
64
|
+
"lodash.debounce": "^4.0.8",
|
|
65
|
+
"lottie-light-react": "^2.4.0",
|
|
66
|
+
"match-sorter": "^8.0.0",
|
|
67
|
+
"react-datepicker": "^4.16.0",
|
|
58
68
|
"react-docgen-typescript": "^2.2.2",
|
|
69
|
+
"react-dropzone": "^14.3.5",
|
|
70
|
+
"react-flatten-children": "^1.0.0",
|
|
71
|
+
"react-hot-toast": "^2.4.1",
|
|
72
|
+
"react": "^18.0.0",
|
|
59
73
|
"rollup-preserve-directives": "^1.1.3",
|
|
60
74
|
"styled-components": "^5.3.9",
|
|
61
75
|
"typescript": "^5.6.3",
|
|
62
|
-
"vite": "^5.4.10",
|
|
63
76
|
"vite-plugin-dts": "^4.3.0",
|
|
77
|
+
"vite": "^5.4.10",
|
|
64
78
|
"wttj-config": "^3.0.1"
|
|
65
79
|
},
|
|
66
80
|
"peerDependencies": {
|
|
67
81
|
"@xstyled/styled-components": "^3.7.3",
|
|
68
|
-
"
|
|
82
|
+
"copy-to-clipboard": "^3.3.3",
|
|
83
|
+
"date-fns": "^4.1.0",
|
|
84
|
+
"downshift": "^7.4.1",
|
|
85
|
+
"lottie-light-react": "^2.4.0",
|
|
86
|
+
"match-sorter": "^8.0.0",
|
|
87
|
+
"react-datepicker": "^4.16.0",
|
|
88
|
+
"react-dropzone": "^14.3.5",
|
|
89
|
+
"react-flatten-children": "^1.0.0",
|
|
90
|
+
"react-hot-toast": "^2.4.1",
|
|
91
|
+
"react": "^18^.0.0",
|
|
69
92
|
"styled-components": "^5.3.9"
|
|
70
93
|
},
|
|
94
|
+
"peerDependenciesMeta": {
|
|
95
|
+
"copy-to-clipboard": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
98
|
+
"date-fns": {
|
|
99
|
+
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"downshift": {
|
|
102
|
+
"optional": true
|
|
103
|
+
},
|
|
104
|
+
"lottie-light-react": {
|
|
105
|
+
"optional": true
|
|
106
|
+
},
|
|
107
|
+
"match-sorter": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
110
|
+
"react-datepicker": {
|
|
111
|
+
"optional": true
|
|
112
|
+
},
|
|
113
|
+
"react-dropzone": {
|
|
114
|
+
"optional": true
|
|
115
|
+
},
|
|
116
|
+
"react-flatten-children": {
|
|
117
|
+
"optional": true
|
|
118
|
+
},
|
|
119
|
+
"react-hot-toast": {
|
|
120
|
+
"optional": true
|
|
121
|
+
}
|
|
122
|
+
},
|
|
71
123
|
"resolutions": {
|
|
72
124
|
"loader-utils": "2.0.3"
|
|
73
125
|
},
|