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,21 @@
|
|
|
1
|
+
import { WuiProps } from '../System';
|
|
2
|
+
import { FieldIconSize } from '../../utils/field-styles';
|
|
3
|
+
type StyledFieldProps = {
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
flexDirection: WuiProps['flexDirection'];
|
|
6
|
+
isCheckable?: boolean;
|
|
7
|
+
isRadioGroup?: boolean;
|
|
8
|
+
withHintText?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const Field: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, StyledFieldProps, never>;
|
|
11
|
+
export declare const Label: import('styled-components').StyledComponent<string, import('@xstyled/system').Theme, {}, never>;
|
|
12
|
+
export declare const LabelWithHint: import('styled-components').StyledComponent<string, import('@xstyled/system').Theme, {}, never>;
|
|
13
|
+
type IconWrapperProps = {
|
|
14
|
+
iconPlacement: 'left' | 'right';
|
|
15
|
+
size?: FieldIconSize;
|
|
16
|
+
};
|
|
17
|
+
export declare const IconWrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & IconWrapperProps, never>;
|
|
18
|
+
export declare const IconGroupWrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
|
|
19
|
+
size: FieldIconSize;
|
|
20
|
+
}, never>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FieldOptions } from '.';
|
|
2
|
+
export declare const getBaseType: (type: string) => string;
|
|
3
|
+
export declare const getVariant: ({ error, success, warning, }: Pick<FieldOptions, "error" | "success" | "warning">) => "danger" | "warning" | "success";
|
|
4
|
+
export declare const generateRandomId: () => string;
|
|
5
|
+
export declare const forwardedProps: string[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { LabelOptions } from '../Label';
|
|
3
|
+
import { CreateWuiProps } from '../System';
|
|
4
|
+
export interface FieldGroupOptions {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
label?: React.ReactElement;
|
|
7
|
+
required?: LabelOptions['required'];
|
|
8
|
+
}
|
|
9
|
+
export type FieldGroupProps = CreateWuiProps<'fieldset', FieldGroupOptions>;
|
|
10
|
+
export declare const FieldGroup: import('../System').CreateWuiComponent<"fieldset", FieldGroupProps>;
|
|
11
|
+
export declare const StyledFieldGroup: import('styled-components').StyledComponent<"fieldset", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FieldGroup: import('styled-components').StyledComponent<"fieldset", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ForceFileType } from '../Files';
|
|
3
|
+
import { FileDropChildren } from './index';
|
|
4
|
+
export interface MessageProps {
|
|
5
|
+
file: FileDropChildren['file'];
|
|
6
|
+
fileName?: string;
|
|
7
|
+
forceFileType?: ForceFileType;
|
|
8
|
+
}
|
|
9
|
+
export declare const FilePreview: React.FC<MessageProps & FileDropChildren['wordings']>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FileDropChildren } from './index';
|
|
3
|
+
export interface MessageProps {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
openFile?: FileDropChildren['openFile'];
|
|
6
|
+
}
|
|
7
|
+
export declare const Message: React.FC<MessageProps & FileDropChildren['wordings']>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Accept, DropEvent, DropzoneProps, DropzoneState } from 'react-dropzone';
|
|
3
|
+
import { ForceFileType } from '../Files';
|
|
4
|
+
import { CreateWuiProps } from '../System';
|
|
5
|
+
import { CreateEvent } from '../../utils/create-event';
|
|
6
|
+
export interface FileWithPreview extends File {
|
|
7
|
+
preview?: string;
|
|
8
|
+
}
|
|
9
|
+
type FileType = string | FileWithPreview;
|
|
10
|
+
type FileUrlType = string | URL;
|
|
11
|
+
type OpenType = DropzoneState['open'];
|
|
12
|
+
type WordingsType = {
|
|
13
|
+
fileButtonText?: string | JSX.Element;
|
|
14
|
+
hint?: string | JSX.Element;
|
|
15
|
+
previewButtonText?: string | JSX.Element;
|
|
16
|
+
title?: string | JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
export type FileDropChildren = {
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
error?: string;
|
|
21
|
+
file?: FileType;
|
|
22
|
+
fileName?: string;
|
|
23
|
+
fileUrl?: FileUrlType;
|
|
24
|
+
forceFileType?: ForceFileType;
|
|
25
|
+
isAnImage?: boolean;
|
|
26
|
+
isHoverAccept?: DropzoneState['isDragAccept'];
|
|
27
|
+
isHoverReject?: DropzoneState['isDragReject'];
|
|
28
|
+
openFile?: OpenType;
|
|
29
|
+
wordings?: WordingsType;
|
|
30
|
+
};
|
|
31
|
+
export interface FileDropOptions {
|
|
32
|
+
/** Pass a comma-separated string of file types e.g. "image/png" or "image/png,image/jpeg" */
|
|
33
|
+
accept?: Accept;
|
|
34
|
+
children?: (state: FileDropChildren) => JSX.Element;
|
|
35
|
+
fileName?: string;
|
|
36
|
+
forceFileType?: ForceFileType;
|
|
37
|
+
handleAddFile?: (event: DropEvent | React.ChangeEvent<HTMLInputElement> | CreateEvent) => void;
|
|
38
|
+
handleRemoveFile?: (event: DropEvent | React.ChangeEvent<HTMLInputElement> | CreateEvent) => void;
|
|
39
|
+
isClearable?: boolean;
|
|
40
|
+
isEditable?: boolean;
|
|
41
|
+
name?: string;
|
|
42
|
+
onBlur?: () => void;
|
|
43
|
+
onChange?: (event: DropEvent | React.ChangeEvent<HTMLInputElement> | CreateEvent) => void;
|
|
44
|
+
onError?: (event?: string) => void;
|
|
45
|
+
value: FileType;
|
|
46
|
+
/** Pass an object with optional fields title, hint, fileButtonText and/or previewButtonText (string or JSX.Element) */
|
|
47
|
+
wordings?: WordingsType;
|
|
48
|
+
}
|
|
49
|
+
export type FileDropProps = CreateWuiProps<'div', FileDropOptions> & Omit<DropzoneProps, 'children'>;
|
|
50
|
+
export declare const FileDrop: import('../System').CreateWuiComponent<"div", FileDropProps>;
|
|
51
|
+
export declare const ImagePreview: import('styled-components').StyledComponent<"img", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface StyledFileDropProps {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
isDragAccept?: boolean;
|
|
4
|
+
isDragReject?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const FileDrop: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, StyledFileDropProps, never>;
|
|
7
|
+
export declare const FilePreview: import('styled-components').StyledComponent<string, import('@xstyled/system').Theme, {}, never>;
|
|
8
|
+
export declare const ImagePreview: import('styled-components').StyledComponent<"img", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
9
|
+
export declare const Actions: import('styled-components').StyledComponent<string, import('@xstyled/system').Theme, {}, never>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CSSObject } from '@xstyled/styled-components';
|
|
2
|
+
import { ThemeValues } from '../../theme';
|
|
3
|
+
export type ThemeFileDrops = {
|
|
4
|
+
default: CSSObject;
|
|
5
|
+
disabled: CSSObject;
|
|
6
|
+
dragAccept: Record<string, unknown>;
|
|
7
|
+
dragReject: Record<string, unknown>;
|
|
8
|
+
};
|
|
9
|
+
export declare const getFileDrops: (theme: ThemeValues) => ThemeFileDrops;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CreateWuiProps } from '../System';
|
|
3
|
+
import { createEvent } from '../../utils/create-event';
|
|
4
|
+
import { FileType } from '../Files';
|
|
5
|
+
import { TagProps } from '../Tag';
|
|
6
|
+
type FileWithPreview = File & {
|
|
7
|
+
name?: string;
|
|
8
|
+
preview?: string;
|
|
9
|
+
};
|
|
10
|
+
type FileWithPreviewType = FileWithPreview | string;
|
|
11
|
+
type HandleRemoveType = (file: FileWithPreviewType) => void;
|
|
12
|
+
export type FileUploadPreviewProps = {
|
|
13
|
+
file: FileType;
|
|
14
|
+
onRemove: TagProps['onRemove'];
|
|
15
|
+
};
|
|
16
|
+
export interface FileUploadOptions {
|
|
17
|
+
/** Pass a comma-separated string of file types e.g. "image/png" or "image/png,image/jpeg" */
|
|
18
|
+
accept?: string;
|
|
19
|
+
children?: (props: {
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
files: FileWithPreviewType[];
|
|
22
|
+
onRemoveFile: HandleRemoveType;
|
|
23
|
+
openFile: () => void;
|
|
24
|
+
}) => React.ReactNode;
|
|
25
|
+
handleAddFile?: (files: FileWithPreviewType[] | FileWithPreviewType) => void;
|
|
26
|
+
handleRemoveFile?: HandleRemoveType;
|
|
27
|
+
maxSize?: number;
|
|
28
|
+
onBlur?: () => void;
|
|
29
|
+
onChange?: (event: ReturnType<typeof createEvent>) => void;
|
|
30
|
+
preview?: typeof DefaultPreview;
|
|
31
|
+
}
|
|
32
|
+
export type FileUploadProps = CreateWuiProps<'input', FileUploadOptions>;
|
|
33
|
+
declare const DefaultPreview: React.FC<FileUploadPreviewProps>;
|
|
34
|
+
export declare const FileUpload: import('../System').CreateWuiComponent<"input", FileUploadProps>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Input: import('styled-components').StyledComponent<"input", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconProps } from '../Icon';
|
|
3
|
+
export type FileType = string | File;
|
|
4
|
+
export type ForceFileType = 'image' | 'audio' | 'video';
|
|
5
|
+
export declare function getFileName(file: FileType): string;
|
|
6
|
+
export declare function getMimeType(file: FileType): string;
|
|
7
|
+
export declare function getFileSize(file: FileType): string;
|
|
8
|
+
export declare function getFileIcon(file: FileType, forceFileType?: ForceFileType): React.FC<IconProps>;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export interface Types {
|
|
2
|
+
'7z': 'application/x-7z-compressed';
|
|
3
|
+
aac: 'audio/aac';
|
|
4
|
+
aif: 'audio/x-aiff';
|
|
5
|
+
aifc: 'audio/x-aiff';
|
|
6
|
+
aiff: 'audio/x-aiff';
|
|
7
|
+
au: 'audio/basic';
|
|
8
|
+
avi: 'video/x-msvideo';
|
|
9
|
+
bmp: 'image/x-ms-bmp';
|
|
10
|
+
bz: 'application/x-bzip';
|
|
11
|
+
bz2: 'application/x-bzip2';
|
|
12
|
+
csv: 'text/csv';
|
|
13
|
+
doc: 'application/msword';
|
|
14
|
+
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
|
|
15
|
+
gif: 'image/gif';
|
|
16
|
+
gz: 'application/gzip';
|
|
17
|
+
ico: 'image/x-icon';
|
|
18
|
+
jpe: 'image/jpeg';
|
|
19
|
+
jpeg: 'image/jpeg';
|
|
20
|
+
jpg: 'image/jpeg';
|
|
21
|
+
m1v: 'video/mpeg';
|
|
22
|
+
mid: 'audio/midi';
|
|
23
|
+
midi: 'audio/x-midi';
|
|
24
|
+
mov: 'video/quicktime';
|
|
25
|
+
movie: 'video/x-sgi-movie';
|
|
26
|
+
mp2: 'audio/mpeg';
|
|
27
|
+
mp3: 'audio/mpeg';
|
|
28
|
+
mp4: 'video/mp4';
|
|
29
|
+
mpa: 'video/mpeg';
|
|
30
|
+
mpe: 'video/mpeg';
|
|
31
|
+
mpeg: 'video/mpeg';
|
|
32
|
+
mpg: 'video/mpeg';
|
|
33
|
+
pbm: 'image/x-portable-bitmap';
|
|
34
|
+
pdf: 'application/pdf';
|
|
35
|
+
pgm: 'image/x-portable-graymap';
|
|
36
|
+
png: 'image/png';
|
|
37
|
+
pnm: 'image/x-portable-anymap';
|
|
38
|
+
pot: 'application/vnd.ms-powerpoint';
|
|
39
|
+
ppa: 'application/vnd.ms-powerpoint';
|
|
40
|
+
ppm: 'image/x-portable-pixmap';
|
|
41
|
+
pps: 'application/vnd.ms-powerpoint';
|
|
42
|
+
ppt: 'application/vnd.ms-powerpoint';
|
|
43
|
+
pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation';
|
|
44
|
+
ps: 'application/postscript';
|
|
45
|
+
pwz: 'application/vnd.ms-powerpoint';
|
|
46
|
+
qt: 'video/quicktime';
|
|
47
|
+
ra: 'audio/x-pn-realaudio';
|
|
48
|
+
rar: 'application/vnd.rar';
|
|
49
|
+
ras: 'image/x-cmu-raster';
|
|
50
|
+
rgb: 'image/x-rgb';
|
|
51
|
+
snd: 'audio/basic';
|
|
52
|
+
svg: 'image/svg+xml';
|
|
53
|
+
tif: 'image/tiff';
|
|
54
|
+
tiff: 'image/tiff';
|
|
55
|
+
wav: 'audio/x-wav';
|
|
56
|
+
weba: 'audio/webm';
|
|
57
|
+
webm: 'video/webm';
|
|
58
|
+
webp: 'image/webp';
|
|
59
|
+
wiz: 'application/msword';
|
|
60
|
+
xbm: 'image/x-xbitmap';
|
|
61
|
+
xls: 'application/vnd.ms-excel';
|
|
62
|
+
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
|
|
63
|
+
xpm: 'image/x-xpixmap';
|
|
64
|
+
xwd: 'image/x-xwindowdump';
|
|
65
|
+
zip: 'application/zip';
|
|
66
|
+
}
|
|
67
|
+
export type Type = Types[keyof Types] | (string & {});
|
|
68
|
+
interface TypesWithString extends Types {
|
|
69
|
+
[key: string]: string;
|
|
70
|
+
}
|
|
71
|
+
export declare const types: TypesWithString;
|
|
72
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CreateWuiProps, WuiProps } from '../System';
|
|
2
|
+
export interface ItemOptions {
|
|
3
|
+
/** same as gridArea */
|
|
4
|
+
area?: WuiProps['gridArea'];
|
|
5
|
+
/** same as gridColumn */
|
|
6
|
+
column?: WuiProps['gridColumn'];
|
|
7
|
+
/** same as gridRow */
|
|
8
|
+
row?: WuiProps['row'];
|
|
9
|
+
}
|
|
10
|
+
export type ItemProps = CreateWuiProps<'div', ItemOptions>;
|
|
11
|
+
/**
|
|
12
|
+
* @name Grid.Item
|
|
13
|
+
*/
|
|
14
|
+
export declare const Item: import('../System').CreateWuiComponent<"div", ItemProps>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CreateWuiProps, WuiProps } from '../System';
|
|
2
|
+
export interface GridOptions {
|
|
3
|
+
/** same as gridArea */
|
|
4
|
+
area?: WuiProps['gridArea'];
|
|
5
|
+
/** same as gridAutoColumns */
|
|
6
|
+
autoColumns?: WuiProps['gridAutoColumns'];
|
|
7
|
+
/** same as gridAutoFlow */
|
|
8
|
+
autoFlow?: WuiProps['gridAutoFlow'];
|
|
9
|
+
/** same as gridAutoRows */
|
|
10
|
+
autoRows?: WuiProps['gridAutoRows'];
|
|
11
|
+
/** same as gridColumn */
|
|
12
|
+
column?: WuiProps['gridColumn'];
|
|
13
|
+
/** same as columnGap */
|
|
14
|
+
columnGap?: WuiProps['columnGap'];
|
|
15
|
+
/** same as gridGap */
|
|
16
|
+
gap?: WuiProps['gap'];
|
|
17
|
+
/** same as gridRow */
|
|
18
|
+
row?: WuiProps['gridRow'];
|
|
19
|
+
/** same as gridRowGap */
|
|
20
|
+
rowGap?: WuiProps['rowGap'];
|
|
21
|
+
/** same as gridTemplateAreas */
|
|
22
|
+
templateAreas?: WuiProps['gridTemplateAreas'];
|
|
23
|
+
/** same as gridTemplateColumns */
|
|
24
|
+
templateColumns?: WuiProps['gridTemplateColumns'];
|
|
25
|
+
/** same as gridTemplateRows */
|
|
26
|
+
templateRows?: WuiProps['gridTemplateRows'];
|
|
27
|
+
}
|
|
28
|
+
export type GridProps = CreateWuiProps<'div', GridOptions>;
|
|
29
|
+
export declare const Grid: import('../System').CreateWuiComponent<"div", GridProps> & {
|
|
30
|
+
Item: import('../System').CreateWuiComponent<"div", import('./Item').ItemProps>;
|
|
31
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CreateWuiProps } from '../System';
|
|
2
|
+
export interface HintOptions {
|
|
3
|
+
checkableField?: boolean;
|
|
4
|
+
variant?: 'danger' | 'success' | 'warning';
|
|
5
|
+
}
|
|
6
|
+
export type HintProps = CreateWuiProps<'div', HintOptions>;
|
|
7
|
+
export declare const Hint: import('../System').CreateWuiComponent<"div", HintProps>;
|
|
8
|
+
export declare const StyledHint: import('styled-components').StyledComponent<string, import('@xstyled/system').Theme, {
|
|
9
|
+
variant: HintOptions["variant"];
|
|
10
|
+
}, never>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CSSObject } from '@xstyled/styled-components';
|
|
2
|
+
import { ThemeValues } from '../../theme';
|
|
3
|
+
export type ThemeHints = {
|
|
4
|
+
danger: CSSObject;
|
|
5
|
+
default: CSSObject;
|
|
6
|
+
success: CSSObject;
|
|
7
|
+
warning: CSSObject;
|
|
8
|
+
};
|
|
9
|
+
export declare const getHints: (theme: ThemeValues) => ThemeHints;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CreateWuiProps } from '../System';
|
|
3
|
+
import * as S from './styles';
|
|
4
|
+
type IconContent = {
|
|
5
|
+
block?: string;
|
|
6
|
+
height?: number;
|
|
7
|
+
isFlag?: boolean;
|
|
8
|
+
stroked?: boolean;
|
|
9
|
+
viewBox?: string;
|
|
10
|
+
width?: number;
|
|
11
|
+
};
|
|
12
|
+
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number | string;
|
|
13
|
+
export interface IconOptions {
|
|
14
|
+
content?: IconContent;
|
|
15
|
+
name?: string;
|
|
16
|
+
onClick?: (event: React.MouseEvent<SVGSVGElement>) => void;
|
|
17
|
+
size?: Size;
|
|
18
|
+
title?: string;
|
|
19
|
+
}
|
|
20
|
+
export type IconProps = CreateWuiProps<typeof S.Icon, IconOptions>;
|
|
21
|
+
export declare const Icon: import('../System').CreateWuiComponent<"svg", IconProps>;
|
|
22
|
+
export declare const StyledIcon: import('styled-components').StyledComponent<"svg", import('@xstyled/system').Theme, Pick<IconOptions, "size"> & Pick<IconContent, "isFlag" | "stroked"> & import('../System').WuiProps & Partial<{
|
|
23
|
+
alt: string;
|
|
24
|
+
title: string;
|
|
25
|
+
}>, never>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Theme } from '@xstyled/styled-components';
|
|
2
|
+
import { WuiProps } from '../System';
|
|
3
|
+
import { IconOptions } from './index';
|
|
4
|
+
type StyledIconProps = Pick<IconOptions, 'size'> & Pick<IconOptions['content'], 'isFlag' | 'stroked'> & WuiProps & Partial<{
|
|
5
|
+
alt: string;
|
|
6
|
+
title: string;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const Icon: import('styled-components').StyledComponent<"svg", Theme, StyledIconProps, never>;
|
|
9
|
+
export {};
|