welcome-ui 1.0.0-beta.2 → 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 +75 -0
- package/dist/Accordion.mjs +91 -0
- package/dist/Alert.js +37 -0
- package/dist/Alert.mjs +120 -0
- package/dist/AspectRatio.js +29 -0
- package/dist/AspectRatio.mjs +41 -0
- package/dist/Avatar.js +5 -0
- package/dist/Avatar.mjs +56 -0
- package/dist/BYC7LY2E-BAjGN7k_.mjs +1074 -0
- package/dist/BYC7LY2E-BkAEL2VD.js +1 -0
- package/dist/Badge.js +17 -0
- package/dist/Badge.mjs +53 -0
- package/dist/{box.js → Box.js} +1 -1
- package/dist/Box.mjs +8 -0
- package/dist/Breadcrumb.js +1 -0
- package/dist/Breadcrumb.mjs +9 -0
- 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/Flex.js +1 -0
- package/dist/Flex.mjs +26 -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 → System.js} +1 -1
- package/dist/{system.mjs → 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-BYdkhqH4.mjs +19028 -0
- 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 -5
- package/dist/index.mjs +1699 -237
- 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/Accordion/index.d.ts +16 -0
- package/dist/types/components/Accordion/styles.d.ts +6 -0
- package/dist/types/components/Accordion/theme.d.ts +10 -0
- package/dist/types/components/Alert/Title.d.ts +7 -0
- package/dist/types/components/Alert/index.d.ts +24 -0
- package/dist/types/components/Alert/styles.d.ts +6 -0
- package/dist/types/components/Alert/theme.d.ts +15 -0
- package/dist/types/components/AspectRatio/index.d.ts +6 -0
- package/dist/types/components/AspectRatio/styles.d.ts +2 -0
- package/dist/types/components/Avatar/index.d.ts +16 -0
- package/dist/types/components/Avatar/styles.d.ts +2 -0
- package/dist/types/components/Avatar/theme.d.ts +9 -0
- package/dist/types/components/Avatar/utils.d.ts +3 -0
- package/dist/types/components/Badge/index.d.ts +11 -0
- package/dist/types/components/Badge/styles.d.ts +8 -0
- package/dist/types/components/Badge/theme.d.ts +18 -0
- package/dist/types/components/Breadcrumb/Item.d.ts +13 -0
- package/dist/types/components/Breadcrumb/Item.styles.d.ts +2 -0
- package/dist/types/components/Breadcrumb/index.d.ts +18 -0
- package/dist/types/components/Breadcrumb/styles.d.ts +6 -0
- package/dist/types/components/Breadcrumb/theme.d.ts +12 -0
- package/dist/types/components/Button/index.d.ts +21 -0
- package/dist/types/components/Button/styles.d.ts +2 -0
- package/dist/types/components/Button/theme.d.ts +13 -0
- package/dist/types/components/ButtonGroup/index.d.ts +15 -0
- package/dist/types/components/ButtonGroup/styles.d.ts +1 -0
- package/dist/types/components/Card/Cover.d.ts +10 -0
- package/dist/types/components/Card/Cover.styles.d.ts +1 -0
- package/dist/types/components/Card/index.d.ts +8 -0
- package/dist/types/components/Card/styles.d.ts +2 -0
- package/dist/types/components/Card/theme.d.ts +6 -0
- 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/index.d.ts +5 -0
- package/dist/types/components/ClearButton/styles.d.ts +1 -0
- package/dist/types/components/CloseButton/index.d.ts +3 -0
- package/dist/types/components/CloseButton/styles.d.ts +1 -0
- 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/Flex/index.d.ts +19 -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 +55 -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 +64 -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 +61 -4
- package/dist/box.mjs +0 -8
- /package/dist/{wui-provider.js → WuiProvider.js} +0 -0
- /package/dist/{wui-provider.mjs → WuiProvider.mjs} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { u } from "./P4IRICAX-DF0_vmod.mjs";
|
|
3
|
+
import { u as c } from "./VGCJ63VH-fv0YLRh8.mjs";
|
|
4
|
+
import { c as l, _ as p, i as D, a, g as m, f as g, b as v } from "./LVA2YJMS-Dm5ieEMw.mjs";
|
|
5
|
+
var f = "button", d = l(
|
|
6
|
+
function(r) {
|
|
7
|
+
var s = r, { store: o } = s, e = p(s, ["store"]);
|
|
8
|
+
const i = c();
|
|
9
|
+
o = o || i, D(
|
|
10
|
+
o,
|
|
11
|
+
process.env.NODE_ENV !== "production" && "DialogDisclosure must receive a `store` prop or be wrapped in a DialogProvider component."
|
|
12
|
+
);
|
|
13
|
+
const n = o.useState("contentElement");
|
|
14
|
+
return e = a({
|
|
15
|
+
"aria-haspopup": m(n, "dialog")
|
|
16
|
+
}, e), e = u(a({ store: o }, e)), e;
|
|
17
|
+
}
|
|
18
|
+
), P = g(function(r) {
|
|
19
|
+
const s = d(r);
|
|
20
|
+
return v(f, s);
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
P as D,
|
|
24
|
+
d as u
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const c=require("./P4IRICAX-nhgZ26A1.js"),l=require("./VGCJ63VH-BNLwLOaC.js"),e=require("./LVA2YJMS-B2HZjIhJ.js");var D="button",i=e.createHook(function(t){var s=t,{store:o}=s,r=e.__objRest(s,["store"]);const n=l.useDialogProviderContext();o=o||n,e.invariant(o,process.env.NODE_ENV!=="production"&&"DialogDisclosure must receive a `store` prop or be wrapped in a DialogProvider component.");const u=o.useState("contentElement");return r=e.__spreadValues({"aria-haspopup":e.getPopupRole(u,"dialog")},r),r=c.useDisclosure(e.__spreadValues({store:o},r)),r}),p=e.forwardRef2(function(t){const s=i(t);return e.createElement(D,s)});exports.DialogDisclosure=p;exports.useDialogDisclosure=i;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),u=require("./index-Cs1IZBks.js"),m=require("./System.js"),e=require("@xstyled/styled-components"),p=require("./P4IRICAX-nhgZ26A1.js"),c=require("./VGCJ63VH-BNLwLOaC.js"),g=e.div`
|
|
2
|
+
${e.th("accordions.wrapper")};
|
|
3
|
+
${e.system};
|
|
4
|
+
transition: medium;
|
|
5
|
+
|
|
6
|
+
&:hover {
|
|
7
|
+
border-color: neutral-50;
|
|
8
|
+
}
|
|
9
|
+
`,r=e.divBox`
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
${e.th("accordions.icon")};
|
|
12
|
+
transform: rotate3d(0);
|
|
13
|
+
transition: medium;
|
|
14
|
+
width: 24;
|
|
15
|
+
height: 24;
|
|
16
|
+
color: inherit;
|
|
17
|
+
display: flex;
|
|
18
|
+
border-radius: 12;
|
|
19
|
+
|
|
20
|
+
& *:first-child {
|
|
21
|
+
margin: auto;
|
|
22
|
+
}
|
|
23
|
+
`,f=e(p.Disclosure)`
|
|
24
|
+
${e.th("accordions.title")};
|
|
25
|
+
width: 100%;
|
|
26
|
+
padding: ${e.th("accordions.padding")};
|
|
27
|
+
background-color: transparent;
|
|
28
|
+
border: 0;
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: xxl;
|
|
33
|
+
|
|
34
|
+
&[aria-expanded='true'] {
|
|
35
|
+
${r} {
|
|
36
|
+
transform: rotate3d(0, 0, 1, 90deg);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:focus,
|
|
41
|
+
&:hover {
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
${r} {
|
|
44
|
+
background-color: neutral-30;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:focus {
|
|
49
|
+
outline: 0;
|
|
50
|
+
${r} {
|
|
51
|
+
color: inherit;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
`,h=e(c.DisclosureContent)`
|
|
55
|
+
display: grid;
|
|
56
|
+
grid-template-rows: 0fr;
|
|
57
|
+
transition-property: grid-template-rows;
|
|
58
|
+
transition-timing-function: linear;
|
|
59
|
+
transition-duration: 200ms;
|
|
60
|
+
animation-duration: 200ms;
|
|
61
|
+
|
|
62
|
+
> * {
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
padding: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&[data-enter] {
|
|
68
|
+
grid-template-rows: 1fr;
|
|
69
|
+
}
|
|
70
|
+
`,$=e.div`
|
|
71
|
+
${e.th("accordions.content")};
|
|
72
|
+
padding: ${e.th("accordions.padding")};
|
|
73
|
+
padding-top: 0;
|
|
74
|
+
color: neutral-70;
|
|
75
|
+
`,y=m.forwardRef(({children:o,dataTestId:n,icon:d=t.createElement(u.RightIcon,null),store:i,title:a,...s},l)=>t.createElement(g,{"data-testid":n,ref:l,...s},t.createElement(f,{"data-testid":n?`${n}-title`:void 0,store:i},a,t.createElement(r,null,t.cloneElement(d,{size:"sm"}))),t.createElement(h,{"data-testid":n?`${n}-content`:void 0,store:i},t.createElement("div",null,t.createElement($,null,o)))));function w(o){return c.useDisclosureStore({animated:!0,...o})}exports.Accordion=y;exports.useAccordion=w;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import t, { cloneElement as m } from "react";
|
|
3
|
+
import { R as u } from "./index-ColyClKR.mjs";
|
|
4
|
+
import { forwardRef as p } from "./System.mjs";
|
|
5
|
+
import r, { th as o, system as f } from "@xstyled/styled-components";
|
|
6
|
+
import { D as g } from "./P4IRICAX-DF0_vmod.mjs";
|
|
7
|
+
import { d as h, e as $ } from "./VGCJ63VH-fv0YLRh8.mjs";
|
|
8
|
+
const w = r.div`
|
|
9
|
+
${o("accordions.wrapper")};
|
|
10
|
+
${f};
|
|
11
|
+
transition: medium;
|
|
12
|
+
|
|
13
|
+
&:hover {
|
|
14
|
+
border-color: neutral-50;
|
|
15
|
+
}
|
|
16
|
+
`, n = r.divBox`
|
|
17
|
+
flex-shrink: 0;
|
|
18
|
+
${o("accordions.icon")};
|
|
19
|
+
transform: rotate3d(0);
|
|
20
|
+
transition: medium;
|
|
21
|
+
width: 24;
|
|
22
|
+
height: 24;
|
|
23
|
+
color: inherit;
|
|
24
|
+
display: flex;
|
|
25
|
+
border-radius: 12;
|
|
26
|
+
|
|
27
|
+
& *:first-child {
|
|
28
|
+
margin: auto;
|
|
29
|
+
}
|
|
30
|
+
`, x = r(g)`
|
|
31
|
+
${o("accordions.title")};
|
|
32
|
+
width: 100%;
|
|
33
|
+
padding: ${o("accordions.padding")};
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
border: 0;
|
|
36
|
+
display: flex;
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: xxl;
|
|
40
|
+
|
|
41
|
+
&[aria-expanded='true'] {
|
|
42
|
+
${n} {
|
|
43
|
+
transform: rotate3d(0, 0, 1, 90deg);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:focus,
|
|
48
|
+
&:hover {
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
${n} {
|
|
51
|
+
background-color: neutral-30;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:focus {
|
|
56
|
+
outline: 0;
|
|
57
|
+
${n} {
|
|
58
|
+
color: inherit;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`, E = r(h)`
|
|
62
|
+
display: grid;
|
|
63
|
+
grid-template-rows: 0fr;
|
|
64
|
+
transition-property: grid-template-rows;
|
|
65
|
+
transition-timing-function: linear;
|
|
66
|
+
transition-duration: 200ms;
|
|
67
|
+
animation-duration: 200ms;
|
|
68
|
+
|
|
69
|
+
> * {
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
padding: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&[data-enter] {
|
|
75
|
+
grid-template-rows: 1fr;
|
|
76
|
+
}
|
|
77
|
+
`, v = r.div`
|
|
78
|
+
${o("accordions.content")};
|
|
79
|
+
padding: ${o("accordions.padding")};
|
|
80
|
+
padding-top: 0;
|
|
81
|
+
color: neutral-70;
|
|
82
|
+
`, k = p(
|
|
83
|
+
({ children: i, dataTestId: e, icon: c = /* @__PURE__ */ t.createElement(u, null), store: a, title: d, ...s }, l) => /* @__PURE__ */ t.createElement(w, { "data-testid": e, ref: l, ...s }, /* @__PURE__ */ t.createElement(x, { "data-testid": e ? `${e}-title` : void 0, store: a }, d, /* @__PURE__ */ t.createElement(n, null, m(c, { size: "sm" }))), /* @__PURE__ */ t.createElement(E, { "data-testid": e ? `${e}-content` : void 0, store: a }, /* @__PURE__ */ t.createElement("div", null, /* @__PURE__ */ t.createElement(v, null, i))))
|
|
84
|
+
);
|
|
85
|
+
function A(i) {
|
|
86
|
+
return $({ animated: !0, ...i });
|
|
87
|
+
}
|
|
88
|
+
export {
|
|
89
|
+
k as Accordion,
|
|
90
|
+
A as useAccordion
|
|
91
|
+
};
|
package/dist/Alert.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),v=require("./CloseButton.js"),x=require("./Button.js"),f=require("./System.js"),u=require("./Box.js"),t=require("@xstyled/styled-components"),I=require("./Text.js"),T=require("./VariantIcon.js"),m=t.divBox`
|
|
2
|
+
flex: 1;
|
|
3
|
+
`,y=t(T.VariantIcon)`
|
|
4
|
+
position: absolute;
|
|
5
|
+
align-self: flex-start;
|
|
6
|
+
`,R=t.divBox(({icon:r,isFullWidth:o,size:s,variant:a})=>t.css`
|
|
7
|
+
position: relative;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: flex-start;
|
|
10
|
+
width: 100%;
|
|
11
|
+
max-width: ${o?"100%":"max-content"};
|
|
12
|
+
${t.th("alerts.default")};
|
|
13
|
+
${t.th(`alerts.${a}`)};
|
|
14
|
+
${t.th(`alerts.sizes.${s}`)};
|
|
15
|
+
${t.system};
|
|
16
|
+
|
|
17
|
+
${r!==null&&s==="sm"&&t.css`
|
|
18
|
+
${m} {
|
|
19
|
+
margin-left: calc(${t.th("icons.sm")} + ${t.th("space.md")});
|
|
20
|
+
}
|
|
21
|
+
`}
|
|
22
|
+
|
|
23
|
+
${r!==null&&s==="md"&&t.css`
|
|
24
|
+
${m} {
|
|
25
|
+
margin-left: calc(${t.th("icons.md")} + ${t.th("space.lg")});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
${y} {
|
|
29
|
+
margin-top: -3;
|
|
30
|
+
}
|
|
31
|
+
`}
|
|
32
|
+
`),V=t(I.Text)(({variant:r})=>t.css`
|
|
33
|
+
font-weight: medium;
|
|
34
|
+
${t.th("alerts.title.default")};
|
|
35
|
+
${t.th(`alerts.title.sizes.${r}`)};
|
|
36
|
+
${t.system};
|
|
37
|
+
`),g=({children:r,dataTestId:o,variant:s})=>e.createElement(V,{"data-testid":o,variant:s},r),j=f.forwardRef(({children:r,cta:o,dataTestId:s,handleClose:a,icon:c,isFullWidth:w,size:l="sm",variant:i="default",...b},h)=>{const q=s?`${s}-close-button`:void 0,A=i==="beige"?"default":i,C=e.Children.toArray(r).map(n=>n.type===g?e.cloneElement(n,{variant:l}):n),p=n=>{var $;if(n){if(n.type===B)return e.cloneElement(n,{size:l});if(n.type===E)return e.cloneElement(n,{size:l});if(($=n.props)!=null&&$.children)return e.cloneElement(n,{...n.props,children:e.Children.map(n.props.children,S=>p(S))})}return n},d=e.isValidElement(o)?p(o):o;return e.createElement(R,{"data-testid":s,icon:c,isFullWidth:w,ref:h,size:l,variant:i,...b},!!a&&e.createElement(v.CloseButton,{dataTestId:q,onClick:a,position:"absolute",right:"sm",size:"xs",top:"sm"}),c!==null&&e.createElement(y,{icon:c,size:l,variant:A}),e.createElement(m,null,e.createElement(u.Box,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:"md",justifyContent:"space-between"},e.createElement(u.Box,{flex:1},C),!!d&&e.createElement(u.Box,{alignItems:"center",display:"flex",gap:"sm"},d))))}),B=f.forwardRef((r,o)=>e.createElement(x.Button,{flexShrink:0,ref:o,w:"fit-content",...r,variant:"secondary"})),E=f.forwardRef((r,o)=>e.createElement(x.Button,{flexShrink:0,ref:o,w:"fit-content",...r,variant:"tertiary"})),k=Object.assign(j,{Title:g,Button:B,SecondaryButton:E});exports.Alert=k;
|
package/dist/Alert.mjs
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import r, { Children as E, cloneElement as i } from "react";
|
|
3
|
+
import { CloseButton as D } from "./CloseButton.mjs";
|
|
4
|
+
import { Button as B } from "./Button.mjs";
|
|
5
|
+
import { forwardRef as d } from "./System.mjs";
|
|
6
|
+
import { Box as p } from "./Box.mjs";
|
|
7
|
+
import c, { css as m, th as l, system as w } from "@xstyled/styled-components";
|
|
8
|
+
import { Text as R } from "./Text.mjs";
|
|
9
|
+
import { VariantIcon as O } from "./VariantIcon.mjs";
|
|
10
|
+
const $ = c.divBox`
|
|
11
|
+
flex: 1;
|
|
12
|
+
`, A = c(O)`
|
|
13
|
+
position: absolute;
|
|
14
|
+
align-self: flex-start;
|
|
15
|
+
`, q = c.divBox(({ icon: e, isFullWidth: n, size: o, variant: s }) => m`
|
|
16
|
+
position: relative;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: flex-start;
|
|
19
|
+
width: 100%;
|
|
20
|
+
max-width: ${n ? "100%" : "max-content"};
|
|
21
|
+
${l("alerts.default")};
|
|
22
|
+
${l(`alerts.${s}`)};
|
|
23
|
+
${l(`alerts.sizes.${o}`)};
|
|
24
|
+
${w};
|
|
25
|
+
|
|
26
|
+
${e !== null && o === "sm" && m`
|
|
27
|
+
${$} {
|
|
28
|
+
margin-left: calc(${l("icons.sm")} + ${l("space.md")});
|
|
29
|
+
}
|
|
30
|
+
`}
|
|
31
|
+
|
|
32
|
+
${e !== null && o === "md" && m`
|
|
33
|
+
${$} {
|
|
34
|
+
margin-left: calc(${l("icons.md")} + ${l("space.lg")});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
${A} {
|
|
38
|
+
margin-top: -3;
|
|
39
|
+
}
|
|
40
|
+
`}
|
|
41
|
+
`), F = c(R)(({ variant: e }) => m`
|
|
42
|
+
font-weight: medium;
|
|
43
|
+
${l("alerts.title.default")};
|
|
44
|
+
${l(`alerts.title.sizes.${e}`)};
|
|
45
|
+
${w};
|
|
46
|
+
`), b = ({ children: e, dataTestId: n, variant: o }) => /* @__PURE__ */ r.createElement(F, { "data-testid": n, variant: o }, e), G = d(
|
|
47
|
+
({
|
|
48
|
+
children: e,
|
|
49
|
+
cta: n,
|
|
50
|
+
dataTestId: o,
|
|
51
|
+
handleClose: s,
|
|
52
|
+
icon: f,
|
|
53
|
+
isFullWidth: I,
|
|
54
|
+
size: a = "sm",
|
|
55
|
+
variant: u = "default",
|
|
56
|
+
...S
|
|
57
|
+
}, _) => {
|
|
58
|
+
const k = o ? `${o}-close-button` : void 0, T = u === "beige" ? "default" : u, V = E.toArray(e).map((t) => t.type === b ? i(t, { variant: a }) : t), x = (t) => {
|
|
59
|
+
var y;
|
|
60
|
+
if (t) {
|
|
61
|
+
if (t.type === v) return i(t, { size: a });
|
|
62
|
+
if (t.type === C) return i(t, { size: a });
|
|
63
|
+
if ((y = t.props) != null && y.children)
|
|
64
|
+
return i(t, {
|
|
65
|
+
...t.props,
|
|
66
|
+
children: E.map(
|
|
67
|
+
t.props.children,
|
|
68
|
+
(j) => x(j)
|
|
69
|
+
)
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return t;
|
|
73
|
+
}, g = r.isValidElement(n) ? x(n) : n;
|
|
74
|
+
return /* @__PURE__ */ r.createElement(
|
|
75
|
+
q,
|
|
76
|
+
{
|
|
77
|
+
"data-testid": o,
|
|
78
|
+
icon: f,
|
|
79
|
+
isFullWidth: I,
|
|
80
|
+
ref: _,
|
|
81
|
+
size: a,
|
|
82
|
+
variant: u,
|
|
83
|
+
...S
|
|
84
|
+
},
|
|
85
|
+
!!s && /* @__PURE__ */ r.createElement(
|
|
86
|
+
D,
|
|
87
|
+
{
|
|
88
|
+
dataTestId: k,
|
|
89
|
+
onClick: s,
|
|
90
|
+
position: "absolute",
|
|
91
|
+
right: "sm",
|
|
92
|
+
size: "xs",
|
|
93
|
+
top: "sm"
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
f !== null && /* @__PURE__ */ r.createElement(A, { icon: f, size: a, variant: T }),
|
|
97
|
+
/* @__PURE__ */ r.createElement($, null, /* @__PURE__ */ r.createElement(
|
|
98
|
+
p,
|
|
99
|
+
{
|
|
100
|
+
alignItems: "flex-start",
|
|
101
|
+
display: "flex",
|
|
102
|
+
flexDirection: "column",
|
|
103
|
+
gap: "md",
|
|
104
|
+
justifyContent: "space-between"
|
|
105
|
+
},
|
|
106
|
+
/* @__PURE__ */ r.createElement(p, { flex: 1 }, V),
|
|
107
|
+
!!g && /* @__PURE__ */ r.createElement(p, { alignItems: "center", display: "flex", gap: "sm" }, g)
|
|
108
|
+
))
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
), v = d((e, n) => /* @__PURE__ */ r.createElement(B, { flexShrink: 0, ref: n, w: "fit-content", ...e, variant: "secondary" })), C = d(
|
|
112
|
+
(e, n) => /* @__PURE__ */ r.createElement(B, { flexShrink: 0, ref: n, w: "fit-content", ...e, variant: "tertiary" })
|
|
113
|
+
), U = Object.assign(G, {
|
|
114
|
+
Title: b,
|
|
115
|
+
Button: v,
|
|
116
|
+
SecondaryButton: C
|
|
117
|
+
});
|
|
118
|
+
export {
|
|
119
|
+
U as Alert
|
|
120
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),r=require("./System.js"),t=require("@xstyled/styled-components"),n=t.divBox(({ratio:e})=>t.css`
|
|
2
|
+
position: relative;
|
|
3
|
+
|
|
4
|
+
& > * {
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
bottom: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
& > img,
|
|
19
|
+
& > video {
|
|
20
|
+
object-fit: cover;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:before {
|
|
24
|
+
height: 0;
|
|
25
|
+
content: '';
|
|
26
|
+
display: block;
|
|
27
|
+
padding-bottom: ${1/e*100}%;
|
|
28
|
+
}
|
|
29
|
+
`),o=r.forwardRef(({ratio:e=4/3,...i},s)=>c.createElement(n,{ratio:e,ref:s,...i}));o.displayName="AspectRatio";exports.AspectRatio=o;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import i from "react";
|
|
3
|
+
import { forwardRef as r } from "./System.mjs";
|
|
4
|
+
import s, { css as a } from "@xstyled/styled-components";
|
|
5
|
+
const c = s.divBox(
|
|
6
|
+
({ ratio: t }) => a`
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
& > * {
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
& > img,
|
|
24
|
+
& > video {
|
|
25
|
+
object-fit: cover;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:before {
|
|
29
|
+
height: 0;
|
|
30
|
+
content: '';
|
|
31
|
+
display: block;
|
|
32
|
+
padding-bottom: ${1 / t * 100}%;
|
|
33
|
+
}
|
|
34
|
+
`
|
|
35
|
+
), n = r(
|
|
36
|
+
({ ratio: t = 4 / 3, ...e }, o) => /* @__PURE__ */ i.createElement(c, { ratio: t, ref: o, ...e })
|
|
37
|
+
);
|
|
38
|
+
n.displayName = "AspectRatio";
|
|
39
|
+
export {
|
|
40
|
+
n as AspectRatio
|
|
41
|
+
};
|
package/dist/Avatar.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),s=require("@xstyled/styled-components"),y=require("./System.js"),x=require("./Box.js"),S=require("./Shape.js"),b=require("./Text.js");function q(o,e=""){const t=Object.keys(o).filter(r=>r.startsWith("secondary-")),n=e.length%t.length;return t[n]}function A(o=""){const[e,t]=o.split(" ");return e&&t?`${e.charAt(0).toUpperCase()}${t.charAt(0).toUpperCase()}`:e.substring(0,2).toUpperCase()}const C=s(S.Shape)`
|
|
2
|
+
flex-shrink: 0;
|
|
3
|
+
`,$=s(b.Text)`
|
|
4
|
+
${s.th("avatars.text")};
|
|
5
|
+
`,h=a.memo(y.forwardRef(({color:o,fontSize:e,getInitials:t=A,h:n,name:r,shape:m="circle",size:g="md",src:c,w:i,...d},p)=>{const l=s.useTheme(),f=o||q(l.colors,r),u=l.avatars.sizes[g],v=e||`calc(${i?l.toRem(i):u} / 2.5)`;return a.createElement(C,{"aria-label":r,backgroundColor:f,h:n||u,ref:p,role:"img",shape:m,w:i||u,...d},c&&a.createElement("img",{alt:r,src:c}),!c&&a.createElement(x.Box,null,a.createElement($,{fontSize:v,m:0},t(r))))}));h.displayName="Avatar";exports.Avatar=h;
|
package/dist/Avatar.mjs
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import a, { memo as x } from "react";
|
|
3
|
+
import m, { th as v, useTheme as y } from "@xstyled/styled-components";
|
|
4
|
+
import { forwardRef as C } from "./System.mjs";
|
|
5
|
+
import { Box as $ } from "./Box.mjs";
|
|
6
|
+
import { Shape as b } from "./Shape.mjs";
|
|
7
|
+
import { Text as A } from "./Text.mjs";
|
|
8
|
+
function z(o, t = "") {
|
|
9
|
+
const e = Object.keys(o).filter((r) => r.startsWith("secondary-")), s = t.length % e.length;
|
|
10
|
+
return e[s];
|
|
11
|
+
}
|
|
12
|
+
function E(o = "") {
|
|
13
|
+
const [t, e] = o.split(" ");
|
|
14
|
+
return t && e ? `${t.charAt(0).toUpperCase()}${e.charAt(0).toUpperCase()}` : t.substring(0, 2).toUpperCase();
|
|
15
|
+
}
|
|
16
|
+
const S = m(b)`
|
|
17
|
+
flex-shrink: 0;
|
|
18
|
+
`, T = m(A)`
|
|
19
|
+
${v("avatars.text")};
|
|
20
|
+
`, _ = x(
|
|
21
|
+
C(
|
|
22
|
+
({
|
|
23
|
+
color: o,
|
|
24
|
+
fontSize: t,
|
|
25
|
+
getInitials: e = E,
|
|
26
|
+
h: s,
|
|
27
|
+
name: r,
|
|
28
|
+
shape: f = "circle",
|
|
29
|
+
size: p = "md",
|
|
30
|
+
src: n,
|
|
31
|
+
w: l,
|
|
32
|
+
...u
|
|
33
|
+
}, h) => {
|
|
34
|
+
const i = y(), d = o || z(i.colors, r), c = i.avatars.sizes[p], g = t || `calc(${l ? i.toRem(l) : c} / 2.5)`;
|
|
35
|
+
return /* @__PURE__ */ a.createElement(
|
|
36
|
+
S,
|
|
37
|
+
{
|
|
38
|
+
"aria-label": r,
|
|
39
|
+
backgroundColor: d,
|
|
40
|
+
h: s || c,
|
|
41
|
+
ref: h,
|
|
42
|
+
role: "img",
|
|
43
|
+
shape: f,
|
|
44
|
+
w: l || c,
|
|
45
|
+
...u
|
|
46
|
+
},
|
|
47
|
+
n && /* @__PURE__ */ a.createElement("img", { alt: r, src: n }),
|
|
48
|
+
!n && /* @__PURE__ */ a.createElement($, null, /* @__PURE__ */ a.createElement(T, { fontSize: g, m: 0 }, e(r)))
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
);
|
|
53
|
+
_.displayName = "Avatar";
|
|
54
|
+
export {
|
|
55
|
+
_ as Avatar
|
|
56
|
+
};
|