welcome-ui 8.0.0 → 8.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AXB53BZF-XKOjjeWO.mjs +25 -0
- package/dist/Accordion.mjs +30 -23
- package/dist/Alert.mjs +76 -70
- package/dist/AspectRatio.mjs +8 -10
- package/dist/Avatar.mjs +48 -47
- package/dist/{BYC7LY2E-CVjUW1dr.mjs → BYC7LY2E-CWSI38FM.mjs} +355 -351
- package/dist/Badge.mjs +25 -25
- package/dist/Box.mjs +5 -5
- package/dist/Breadcrumb.mjs +173 -168
- package/dist/Button.mjs +72 -67
- package/dist/ButtonGroup.mjs +13 -12
- package/dist/Card.mjs +14 -14
- package/dist/Checkbox.mjs +2 -2
- package/dist/ClearButton.mjs +15 -15
- package/dist/CloseButton.mjs +9 -9
- package/dist/{CustomInput-D_13Gd_3.mjs → CustomPopper-CZt4RioF.mjs} +3200 -3047
- package/dist/DatePicker.mjs +81 -80
- package/dist/DateTimePicker.mjs +67 -62
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.mjs +190 -174
- package/dist/DropdownMenu.mjs +389 -386
- package/dist/Field.mjs +104 -92
- package/dist/FieldGroup.mjs +12 -9
- package/dist/FileDrop.mjs +613 -576
- package/dist/FileUpload.mjs +95 -74
- package/dist/Files.mjs +46 -46
- package/dist/Flex.mjs +13 -13
- package/dist/Grid.mjs +29 -29
- package/dist/Hint.mjs +12 -12
- package/dist/ITI7HKP4-C89kOQb8.mjs +474 -0
- package/dist/Icon.mjs +24 -24
- package/dist/Icons.mjs +988 -988
- package/dist/IconsFont.mjs +159 -159
- package/dist/InputText.mjs +65 -57
- package/dist/{JC64G2H7-Dey-8h60.mjs → JC64G2H7-afsomHuH.mjs} +109 -108
- package/dist/KUU7WJ55-CzsjuIMv.mjs +61 -0
- package/dist/LVA2YJMS-C-kJ1lkr.mjs +873 -0
- package/dist/Label.mjs +37 -35
- package/dist/Link.mjs +28 -24
- package/dist/Loader.mjs +20 -16
- package/dist/Logo.mjs +55 -42
- package/dist/MTZPJQMC-TybFZCho.mjs +15 -0
- package/dist/Modal.mjs +272 -249
- package/dist/NLEBE274-oSxMftGy.mjs +84 -0
- package/dist/P2CTZE2T-DOT1mNnX.mjs +301 -0
- package/dist/P4IRICAX-CWSZLTGz.mjs +37 -0
- package/dist/Pagination.mjs +104 -104
- package/dist/PasswordInput.mjs +35 -34
- package/dist/Picker.mjs +35 -33
- package/dist/Popover.mjs +100 -93
- package/dist/QYJ6MIDR-DJ-vUdAM.mjs +98 -0
- package/dist/Radio.mjs +58 -52
- package/dist/RadioGroup.mjs +46 -46
- package/dist/RadioTab.mjs +37 -35
- package/dist/{SYRFVSLH-cVmYtx36.mjs → SYRFVSLH-B6m278Vb.mjs} +18 -17
- package/dist/Search.mjs +175 -161
- package/dist/Select.mjs +885 -847
- package/dist/Shape.mjs +9 -9
- package/dist/Slider.mjs +359 -336
- package/dist/Stack.mjs +22 -24
- package/dist/Swiper.mjs +324 -311
- package/dist/Table.mjs +23 -23
- package/dist/Tabs.mjs +250 -245
- package/dist/Tag.mjs +51 -49
- package/dist/Text.mjs +49 -47
- package/dist/Textarea.mjs +39 -39
- package/dist/TimePicker.mjs +57 -56
- package/dist/Toast.mjs +144 -137
- package/dist/Toggle.mjs +27 -24
- package/dist/Tooltip.mjs +115 -111
- package/dist/UniversalLink.mjs +16 -16
- package/dist/VEVQD5MH-0w9Y7Ytc.mjs +20 -0
- package/dist/{VGCJ63VH-B39w1tBw.mjs → VGCJ63VH-C0UPBY-5.mjs} +61 -62
- package/dist/VariantIcon.mjs +14 -22
- package/dist/WelcomeLoader.mjs +4863 -9223
- package/dist/WuiProvider.mjs +69 -58
- package/dist/X5NMLKT6-BJw3xE-K.mjs +25 -0
- package/dist/YV4JVR4I-DPC8mMuG.mjs +344 -0
- package/dist/downshift.esm-B7Jil1wW.mjs +1082 -0
- package/dist/{field-styles-DLIhqG_8.mjs → field-styles-BVlRlvuu.mjs} +2 -2
- package/dist/{hex-to-rgba-BIDK-3ab.mjs → hex-to-rgba-DU_XzKIK.mjs} +2 -2
- package/dist/hide-focus-rings-root-CCXdysih.mjs +15 -0
- package/dist/index-5HBq1O6Z.mjs +185 -0
- package/dist/{index-C7zM96J_.mjs → index-BaLGEKs7.mjs} +8 -8
- package/dist/{index-BYdkhqH4.mjs → index-CBBbX29m.mjs} +3652 -3584
- package/dist/index-CYmF7qCH.mjs +11 -0
- package/dist/index-C_k-m0Rl.mjs +36 -0
- package/dist/index-D8v_VJ9z.mjs +26 -0
- package/dist/{index-BNGGwOCo.mjs → index-DAZ1SYdj.mjs} +7 -7
- package/dist/{index-SbQUT2mU.mjs → index-DgSynio4.mjs} +244 -239
- package/dist/index-DpkNUfAS.mjs +11 -0
- package/dist/{index-DqBUFsqP.mjs → index-DvzWKxKE.mjs} +7 -7
- package/dist/{index-BJAZgeHL.mjs → index-QaLwIvZS.mjs} +8 -8
- package/dist/{index-BQtDgQBH.mjs → index-SQQQ4dEE.mjs} +8 -8
- package/dist/index-i_anpNhw.mjs +66 -0
- package/dist/index-wl3X6EM1.mjs +16 -0
- package/dist/jsx-runtime-B7I4PJ0H.mjs +613 -0
- package/dist/radio-group-C0fUHvam.mjs +52 -0
- package/dist/theme.mjs +1175 -1120
- package/dist/throttle-CW18pWlW.mjs +13 -0
- package/dist/types/components/Accordion/index.d.ts +1 -1
- package/dist/types/components/Accordion/styles.d.ts +2 -2
- package/dist/types/components/Accordion/theme.d.ts +1 -1
- package/dist/types/components/Alert/index.d.ts +2 -2
- package/dist/types/components/Alert/styles.d.ts +9 -9
- package/dist/types/components/Alert/theme.d.ts +4 -4
- package/dist/types/components/Avatar/index.d.ts +2 -3
- package/dist/types/components/Avatar/styles.d.ts +8 -8
- package/dist/types/components/Avatar/theme.d.ts +3 -3
- package/dist/types/components/Avatar/utils.d.ts +1 -1
- package/dist/types/components/Badge/index.d.ts +2 -2
- package/dist/types/components/Badge/styles.d.ts +5 -5
- package/dist/types/components/Badge/theme.d.ts +1 -1
- package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
- package/dist/types/components/Breadcrumb/index.d.ts +2 -2
- package/dist/types/components/Breadcrumb/theme.d.ts +1 -1
- package/dist/types/components/Button/index.d.ts +4 -5
- package/dist/types/components/Button/styles.d.ts +1 -1
- package/dist/types/components/Button/theme.d.ts +7 -7
- package/dist/types/components/ButtonGroup/index.d.ts +3 -3
- package/dist/types/components/Card/Cover.styles.d.ts +4 -4
- package/dist/types/components/Card/index.d.ts +2 -3
- package/dist/types/components/Card/theme.d.ts +1 -1
- package/dist/types/components/Checkbox/index.d.ts +2 -2
- package/dist/types/components/Checkbox/styles.d.ts +1 -1
- package/dist/types/components/Checkbox/theme.d.ts +1 -1
- package/dist/types/components/ClearButton/index.d.ts +5 -6
- package/dist/types/components/ClearButton/styles.d.ts +4 -4
- package/dist/types/components/CloseButton/styles.d.ts +4 -4
- package/dist/types/components/DatePicker/index.d.ts +3 -3
- package/dist/types/components/DateTimePicker/index.d.ts +2 -2
- package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
- package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
- package/dist/types/components/DateTimePickerCommon/theme.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/utils.d.ts +2 -2
- package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
- package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
- package/dist/types/components/Drawer/index.d.ts +12 -12
- package/dist/types/components/Drawer/styles.d.ts +5 -5
- package/dist/types/components/Drawer/theme.d.ts +2 -2
- package/dist/types/components/DropdownMenu/index.d.ts +4 -4
- package/dist/types/components/DropdownMenu/theme.d.ts +1 -1
- package/dist/types/components/Field/index.d.ts +8 -8
- package/dist/types/components/Field/styles.d.ts +1 -1
- package/dist/types/components/Field/utils.d.ts +1 -1
- package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
- package/dist/types/components/FileDrop/Message.d.ts +1 -1
- package/dist/types/components/FileDrop/index.d.ts +20 -20
- package/dist/types/components/FileDrop/theme.d.ts +1 -1
- package/dist/types/components/FileUpload/index.d.ts +13 -13
- package/dist/types/components/Files/index.d.ts +5 -5
- package/dist/types/components/Files/types.d.ts +1 -1
- package/dist/types/components/Hint/index.d.ts +1 -2
- package/dist/types/components/Hint/theme.d.ts +1 -1
- package/dist/types/components/Icon/index.d.ts +3 -3
- package/dist/types/components/Icon/styles.d.ts +3 -3
- package/dist/types/components/Icon/theme.d.ts +3 -3
- package/dist/types/components/Icons/Sun/content.json.d.ts +2 -1
- package/dist/types/components/Icons/index.d.ts +2 -2
- package/dist/types/components/IconsFont/index.d.ts +2 -3
- package/dist/types/components/IconsFont/styles.d.ts +1 -1
- package/dist/types/components/InputText/index.d.ts +1 -1
- package/dist/types/components/InputText/styles.d.ts +1 -1
- package/dist/types/components/Label/index.d.ts +2 -3
- package/dist/types/components/Label/theme.d.ts +1 -1
- package/dist/types/components/Link/index.d.ts +5 -5
- package/dist/types/components/Link/styles.d.ts +4 -4
- package/dist/types/components/Link/theme.d.ts +1 -1
- package/dist/types/components/Loader/index.d.ts +1 -1
- package/dist/types/components/Loader/styles.d.ts +4 -4
- package/dist/types/components/Loader/theme.d.ts +4 -4
- package/dist/types/components/Logo/Solutions.d.ts +1 -2
- package/dist/types/components/Logo/Symbol.d.ts +1 -2
- package/dist/types/components/Logo/Wui.d.ts +1 -2
- package/dist/types/components/Logo/index.d.ts +5 -5
- package/dist/types/components/Modal/Assets/Backdrop.d.ts +5 -6
- package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -2
- package/dist/types/components/Modal/Assets/index.d.ts +9 -9
- package/dist/types/components/Modal/Assets/styles.d.ts +8 -8
- package/dist/types/components/Modal/Close.d.ts +3 -4
- package/dist/types/components/Modal/Content.d.ts +3 -5
- package/dist/types/components/Modal/Footer.d.ts +1 -1
- package/dist/types/components/Modal/Header.d.ts +2 -2
- package/dist/types/components/Modal/index.d.ts +17 -17
- package/dist/types/components/Modal/styles.d.ts +7 -7
- package/dist/types/components/Modal/theme.d.ts +2 -2
- package/dist/types/components/Pagination/index.d.ts +2 -2
- package/dist/types/components/Pagination/theme.d.ts +1 -1
- package/dist/types/components/Pagination/utils.d.ts +1 -1
- package/dist/types/components/Picker/index.d.ts +1 -1
- package/dist/types/components/Picker/styles.d.ts +1 -1
- package/dist/types/components/Popover/Arrow.d.ts +1 -2
- package/dist/types/components/Popover/Content.d.ts +2 -3
- package/dist/types/components/Popover/Popover.d.ts +4 -5
- package/dist/types/components/Popover/PopoverHover.d.ts +3 -4
- package/dist/types/components/Popover/Trigger.d.ts +1 -1
- package/dist/types/components/Popover/styles.d.ts +4 -4
- package/dist/types/components/Popover/theme.d.ts +1 -1
- package/dist/types/components/Popover/usePopover.d.ts +6 -6
- package/dist/types/components/Radio/index.d.ts +3 -3
- package/dist/types/components/Radio/styles.d.ts +5 -5
- package/dist/types/components/Radio/theme.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +2 -2
- package/dist/types/components/RadioTab/index.d.ts +3 -3
- package/dist/types/components/RadioTab/styles.d.ts +3 -9
- package/dist/types/components/RadioTab/theme.d.ts +1 -1
- package/dist/types/components/Search/index.d.ts +5 -5
- package/dist/types/components/Select/index.d.ts +11 -11
- package/dist/types/components/Select/styles.d.ts +6 -6
- package/dist/types/components/Select/utils.d.ts +11 -7
- package/dist/types/components/Shape/index.d.ts +1 -1
- package/dist/types/components/Shape/styles.d.ts +3 -3
- package/dist/types/components/Slider/Range.d.ts +3 -3
- package/dist/types/components/Slider/index.d.ts +2 -2
- package/dist/types/components/Slider/styles.d.ts +16 -16
- package/dist/types/components/Slider/theme.d.ts +1 -1
- package/dist/types/components/Stack/index.d.ts +1 -1
- package/dist/types/components/Swiper/index.d.ts +17 -18
- package/dist/types/components/Swiper/styles.d.ts +56 -56
- package/dist/types/components/Swiper/theme.d.ts +1 -1
- package/dist/types/components/System/index.d.ts +14 -14
- package/dist/types/components/Table/index.d.ts +6 -7
- package/dist/types/components/Table/styles.d.ts +1 -1
- package/dist/types/components/Table/theme.d.ts +1 -1
- package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
- package/dist/types/components/Tabs/TabList.d.ts +4 -4
- package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
- package/dist/types/components/Tabs/styles.d.ts +2 -2
- package/dist/types/components/Tabs/theme.d.ts +2 -2
- package/dist/types/components/Tag/index.d.ts +2 -3
- package/dist/types/components/Tag/styles.d.ts +1 -1
- package/dist/types/components/Tag/theme.d.ts +3 -3
- package/dist/types/components/Text/index.d.ts +2 -2
- package/dist/types/components/Textarea/index.d.ts +1 -1
- package/dist/types/components/Textarea/theme.d.ts +1 -1
- package/dist/types/components/TimePicker/index.d.ts +2 -2
- package/dist/types/components/Toast/Growl.d.ts +1 -1
- package/dist/types/components/Toast/Snackbar.d.ts +1 -1
- package/dist/types/components/Toast/ToastWrapper.d.ts +5 -5
- package/dist/types/components/Toast/index.d.ts +6 -6
- package/dist/types/components/Toast/styles.d.ts +16 -16
- package/dist/types/components/Toast/theme.d.ts +2 -2
- package/dist/types/components/Toast/utils.d.ts +13 -13
- package/dist/types/components/Toggle/index.d.ts +3 -3
- package/dist/types/components/Toggle/styles.d.ts +5 -4
- package/dist/types/components/Toggle/theme.d.ts +6 -6
- package/dist/types/components/Tooltip/index.d.ts +2 -2
- package/dist/types/components/Tooltip/styles.d.ts +1 -1
- package/dist/types/components/Tooltip/theme.d.ts +1 -1
- package/dist/types/components/VariantIcon/index.d.ts +1 -1
- package/dist/types/components/VariantIcon/styles.d.ts +1 -1
- package/dist/types/components/VariantIcon/theme.d.ts +3 -3
- package/dist/types/components/WuiProvider/font.d.ts +3 -5
- package/dist/types/components/WuiProvider/index.d.ts +1 -1
- package/dist/types/theme/colors.d.ts +3 -11
- package/dist/types/theme/dark.d.ts +1 -1
- package/dist/types/theme/defaultFields.d.ts +10 -10
- package/dist/types/theme/fonts.d.ts +5 -5
- package/dist/types/theme/index.d.ts +31 -31
- package/dist/types/theme/screens.d.ts +1 -1
- package/dist/types/theme/space.d.ts +1 -1
- package/dist/types/theme/typography.d.ts +1 -1
- package/dist/types/utils/field-styles.d.ts +6 -6
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/ts-utils.d.ts +1 -1
- package/dist/types/utils/use-copy-text.d.ts +1 -1
- package/dist/types/utils/use-create-portal.d.ts +1 -1
- package/dist/types/utils/use-viewport.d.ts +2 -2
- package/dist/types/utils/wrap-children.d.ts +1 -1
- package/dist/{use-fork-ref-CUZErtAC.mjs → use-fork-ref-DvaCTfQ_.mjs} +4 -3
- package/dist/use-viewport-CWpjoHXy.mjs +16 -0
- package/dist/utils.mjs +96 -85
- package/dist/wrap-children-DBSD-X5-.mjs +9 -0
- package/package.json +9 -36
- package/dist/AXB53BZF-CGoc4K3d.mjs +0 -25
- package/dist/ITI7HKP4-BONrZ9Pq.mjs +0 -473
- package/dist/KUU7WJ55-3sP-w1F1.mjs +0 -61
- package/dist/LVA2YJMS-qFC9J-lt.mjs +0 -1479
- package/dist/MTZPJQMC-C0Xe_WK4.mjs +0 -13
- package/dist/NLEBE274-C94QU78N.mjs +0 -84
- package/dist/P2CTZE2T-YPes1GXe.mjs +0 -297
- package/dist/P4IRICAX-DzXqUYe-.mjs +0 -37
- package/dist/QYJ6MIDR-BLLqyXdd.mjs +0 -97
- package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +0 -20
- package/dist/X5NMLKT6-uFSu0Lii.mjs +0 -25
- package/dist/YV4JVR4I-BGfUf3Nu.mjs +0 -341
- package/dist/downshift.esm-CEHW4VDy.mjs +0 -1085
- package/dist/hide-focus-rings-root-BNyva1yb.mjs +0 -14
- package/dist/index-BDeIsk2X.mjs +0 -184
- package/dist/index-BRDOakbf.mjs +0 -11
- package/dist/index-BpRjq7lj.mjs +0 -11
- package/dist/index-BrfXjmHY.mjs +0 -36
- package/dist/index-CExLVjET.mjs +0 -26
- package/dist/index-DEJJvyGk.mjs +0 -66
- package/dist/index-u1oHKa7X.mjs +0 -16
- package/dist/radio-group-CGC6DTFJ.mjs +0 -51
- package/dist/throttle-BDBzFeFj.mjs +0 -13
- package/dist/use-viewport-m3glsbna.mjs +0 -16
- package/dist/wrap-children-aq69jtFP.mjs +0 -12
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CheckboxProps } from '../Checkbox';
|
|
2
2
|
import { ToggleOptions } from './index';
|
|
3
|
+
import { Size } from './theme';
|
|
3
4
|
import * as Ariakit from '@ariakit/react';
|
|
4
5
|
export declare const Toggle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Ariakit.CheckboxOptions<"input"> & Omit<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
5
|
-
ref?: import('react').
|
|
6
|
+
ref?: ((instance: HTMLInputElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLInputElement> | null | undefined;
|
|
6
7
|
}, keyof Ariakit.CheckboxOptions<T>> & {
|
|
7
8
|
[index: `data-${string}`]: unknown;
|
|
8
9
|
}, ToggleOptions>> & string & Omit<(props: Ariakit.CheckboxProps) => import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>, keyof import('react').Component<any, {}, any>>;
|
|
9
10
|
export declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, {
|
|
10
|
-
onClick:
|
|
11
|
+
onClick: CheckboxProps["onClick"];
|
|
11
12
|
}>> & string;
|
|
12
13
|
export declare const IconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, {
|
|
13
|
-
checked
|
|
14
|
+
checked?: boolean;
|
|
14
15
|
size: Size;
|
|
15
16
|
}>> & string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CSSObject } from '@xstyled/styled-components';
|
|
2
|
-
import { ThemeValues } from '
|
|
3
|
-
export type Size = '
|
|
4
|
-
type State = 'default' | 'checked' | 'disabled';
|
|
2
|
+
import { ThemeValues } from '../theme';
|
|
3
|
+
export type Size = 'md' | 'sm' | 'xs';
|
|
5
4
|
export type ThemeToggles = {
|
|
6
|
-
after: Record<
|
|
7
|
-
icon: Record<'
|
|
8
|
-
item: Record<
|
|
5
|
+
after: Record<'sizes' | State, CSSObject>;
|
|
6
|
+
icon: Record<'position' | 'sizes', CSSObject>;
|
|
7
|
+
item: Record<'sizes' | State, CSSObject>;
|
|
9
8
|
};
|
|
9
|
+
type State = 'checked' | 'default' | 'disabled';
|
|
10
10
|
export declare const getToggles: (theme: ThemeValues) => ThemeToggles;
|
|
11
11
|
export {};
|
|
@@ -3,9 +3,9 @@ import { CreateWuiProps } from '../System';
|
|
|
3
3
|
import * as Ariakit from '@ariakit/react';
|
|
4
4
|
export type TooltipOptions = {
|
|
5
5
|
children: React.ReactNode;
|
|
6
|
-
content:
|
|
6
|
+
content: JSX.Element | string;
|
|
7
7
|
fixed?: boolean;
|
|
8
8
|
withArrow?: boolean;
|
|
9
|
-
} & Pick<Ariakit.
|
|
9
|
+
} & Pick<Ariakit.TooltipOptions, 'gutter'> & Pick<Ariakit.TooltipStoreProps, 'placement'>;
|
|
10
10
|
export type TooltipProps = CreateWuiProps<'div', TooltipOptions>;
|
|
11
11
|
export declare const Tooltip: import('../System').CreateWuiComponent<"div", TooltipProps>;
|
|
@@ -2,7 +2,7 @@ import { TooltipProps } from './index';
|
|
|
2
2
|
type FadeIn = {
|
|
3
3
|
fixed?: boolean;
|
|
4
4
|
placement?: TooltipProps['placement'];
|
|
5
|
-
popoverHeight
|
|
5
|
+
popoverHeight?: number;
|
|
6
6
|
withArrow?: boolean;
|
|
7
7
|
};
|
|
8
8
|
export declare const FadeIn: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, FadeIn>> & string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { VariantIconOptions } from '.';
|
|
2
2
|
export declare const VariantIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, {
|
|
3
|
-
variant: VariantIconOptions["variant"]
|
|
3
|
+
variant: string | VariantIconOptions["variant"];
|
|
4
4
|
}>> & string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSObject } from '@xstyled/styled-components';
|
|
2
|
-
import { ThemeValues } from '
|
|
3
|
-
export type Size = '
|
|
4
|
-
export type Variant = 'danger' | 'warning' | 'success' | 'info' | 'default' | 'ai';
|
|
2
|
+
import { ThemeValues } from '../theme';
|
|
3
|
+
export type Size = 'lg' | 'md' | 'sm' | 'xl' | 'xs' | 'xxl';
|
|
5
4
|
export type ThemeVariantIcon = Record<Variant, CSSObject>;
|
|
5
|
+
export type Variant = 'ai' | 'danger' | 'default' | 'info' | 'success' | 'warning';
|
|
6
6
|
export declare const getVariantIcon: (theme: ThemeValues) => ThemeVariantIcon;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from '@xstyled/styled-components';
|
|
2
|
-
import { ThemeValues } from '
|
|
2
|
+
import { ThemeValues } from '../theme';
|
|
3
3
|
type FontVariation = {
|
|
4
4
|
display?: FontDisplay;
|
|
5
5
|
extensions?: string[];
|
|
@@ -9,8 +9,6 @@ type FontVariation = {
|
|
|
9
9
|
url: string;
|
|
10
10
|
weight?: string;
|
|
11
11
|
};
|
|
12
|
-
export declare function getSource(url: FontVariation['url'], extensions: FontVariation['extensions'], isVariable: FontVariation['isVariable']): string;
|
|
13
|
-
export declare const fonts: () =>
|
|
14
|
-
theme: ThemeValues;
|
|
15
|
-
}) => ReturnType<typeof css>;
|
|
12
|
+
export declare function getSource(url: FontVariation['url'], extensions: FontVariation['extensions'], isVariable: FontVariation['isVariable']): string | undefined;
|
|
13
|
+
export declare const fonts: (theme: ThemeValues) => null | ReturnType<typeof css>;
|
|
16
14
|
export {};
|
|
@@ -100,6 +100,7 @@ declare const palette: {
|
|
|
100
100
|
'yellow-90': string;
|
|
101
101
|
};
|
|
102
102
|
export declare const getColors: (systemColors: typeof palette) => {
|
|
103
|
+
overlay: string;
|
|
103
104
|
'primary-10': string;
|
|
104
105
|
'primary-20': string;
|
|
105
106
|
'primary-30': string;
|
|
@@ -115,7 +116,6 @@ export declare const getColors: (systemColors: typeof palette) => {
|
|
|
115
116
|
'secondary-pink': string;
|
|
116
117
|
'secondary-teal': string;
|
|
117
118
|
'secondary-violet': string;
|
|
118
|
-
overlay: string;
|
|
119
119
|
'beige-10': string;
|
|
120
120
|
'beige-20': string;
|
|
121
121
|
'beige-30': string;
|
|
@@ -217,6 +217,7 @@ export declare const getColors: (systemColors: typeof palette) => {
|
|
|
217
217
|
'yellow-90': string;
|
|
218
218
|
};
|
|
219
219
|
export declare const colors: {
|
|
220
|
+
overlay: string;
|
|
220
221
|
'primary-10': string;
|
|
221
222
|
'primary-20': string;
|
|
222
223
|
'primary-30': string;
|
|
@@ -232,7 +233,6 @@ export declare const colors: {
|
|
|
232
233
|
'secondary-pink': string;
|
|
233
234
|
'secondary-teal': string;
|
|
234
235
|
'secondary-violet': string;
|
|
235
|
-
overlay: string;
|
|
236
236
|
'beige-10': string;
|
|
237
237
|
'beige-20': string;
|
|
238
238
|
'beige-30': string;
|
|
@@ -334,13 +334,5 @@ export declare const colors: {
|
|
|
334
334
|
'yellow-90': string;
|
|
335
335
|
};
|
|
336
336
|
export type ThemeColors = typeof colors;
|
|
337
|
-
|
|
338
|
-
'blue' = 0,
|
|
339
|
-
'green' = 1,
|
|
340
|
-
'orange' = 2,
|
|
341
|
-
'pink' = 3,
|
|
342
|
-
'teal' = 4,
|
|
343
|
-
'violet' = 5
|
|
344
|
-
}
|
|
345
|
-
export type ThemeSecondaryColors = keyof typeof SecondaryColors;
|
|
337
|
+
export type ThemeSecondaryColors = 'blue' | 'green' | 'orange' | 'pink' | 'teal' | 'violet';
|
|
346
338
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ThemeValues } from '.';
|
|
2
2
|
type RecursivePartial<T> = {
|
|
3
|
-
[P in keyof T]?: T[P] |
|
|
3
|
+
[P in keyof T]?: RecursivePartial<T[P]> | T[P];
|
|
4
4
|
};
|
|
5
5
|
export declare const colorsDark: ThemeValues['colors'];
|
|
6
6
|
export declare const darkTheme: RecursivePartial<ThemeValues>;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { CSSObject } from '@xstyled/styled-components';
|
|
2
|
-
import { DefaultFieldStylesProps } from '../utils/field-styles';
|
|
3
2
|
import { ThemeValues } from '.';
|
|
4
|
-
|
|
5
|
-
danger: CSSObject;
|
|
6
|
-
success: CSSObject;
|
|
7
|
-
warning: CSSObject;
|
|
8
|
-
};
|
|
3
|
+
import { Size } from '../utils/field-styles';
|
|
9
4
|
export type ThemeDefaultFields = {
|
|
10
5
|
checkableField: {
|
|
11
6
|
checked: CSSObject;
|
|
@@ -18,11 +13,11 @@ export type ThemeDefaultFields = {
|
|
|
18
13
|
default: CSSObject;
|
|
19
14
|
disabled: CSSObject;
|
|
20
15
|
fieldset: CSSObject;
|
|
21
|
-
focused:
|
|
16
|
+
focused: {
|
|
22
17
|
default: CSSObject;
|
|
23
|
-
};
|
|
18
|
+
} & VariantsTheme;
|
|
24
19
|
hover: CSSObject;
|
|
25
|
-
iconPlacement: Record<
|
|
20
|
+
iconPlacement: Record<Size, CSSObject>;
|
|
26
21
|
placeholder: CSSObject;
|
|
27
22
|
select: {
|
|
28
23
|
default: CSSObject;
|
|
@@ -32,8 +27,13 @@ export type ThemeDefaultFields = {
|
|
|
32
27
|
selected: CSSObject;
|
|
33
28
|
selectedAndHighlighted: CSSObject;
|
|
34
29
|
};
|
|
35
|
-
sizes: Record<
|
|
30
|
+
sizes: Record<Size, CSSObject>;
|
|
36
31
|
variants: VariantsTheme;
|
|
37
32
|
};
|
|
33
|
+
type VariantsTheme = {
|
|
34
|
+
danger: CSSObject;
|
|
35
|
+
success: CSSObject;
|
|
36
|
+
warning: CSSObject;
|
|
37
|
+
};
|
|
38
38
|
export declare const getDefaultFields: (theme: ThemeValues) => ThemeDefaultFields;
|
|
39
39
|
export {};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { ThemeValues } from '.';
|
|
2
|
+
export type ThemeFontFaces = {
|
|
3
|
+
'welcome-font': FontFace[];
|
|
4
|
+
'welcome-icon-font': FontFace[];
|
|
5
|
+
'work-sans': FontFace[];
|
|
6
|
+
};
|
|
2
7
|
type FontFace = {
|
|
3
8
|
display?: FontDisplay;
|
|
4
9
|
extensions?: string[];
|
|
@@ -9,10 +14,5 @@ type FontFace = {
|
|
|
9
14
|
url: string;
|
|
10
15
|
weight?: string;
|
|
11
16
|
};
|
|
12
|
-
export type ThemeFontFaces = {
|
|
13
|
-
'welcome-font': FontFace[];
|
|
14
|
-
'welcome-icon-font': FontFace[];
|
|
15
|
-
'work-sans': FontFace[];
|
|
16
|
-
};
|
|
17
17
|
export declare const fontFaces: (theme: ThemeValues) => ThemeFontFaces;
|
|
18
18
|
export {};
|
|
@@ -6,16 +6,16 @@ import { ThemeBadges } from '../components/Badge/theme';
|
|
|
6
6
|
import { ThemeBreadcrumbs } from '../components/Breadcrumb/theme';
|
|
7
7
|
import { ThemeButtons } from '../components/Button/theme';
|
|
8
8
|
import { ThemeCards } from '../components/Card/theme';
|
|
9
|
-
import { ThemeDateTimePickerCommon } from '../components/DateTimePickerCommon/theme';
|
|
10
9
|
import { ThemeCheckboxes } from '../components/Checkbox/theme';
|
|
10
|
+
import { ThemeDateTimePickerCommon } from '../components/DateTimePickerCommon/theme';
|
|
11
11
|
import { ThemeDrawers } from '../components/Drawer/theme';
|
|
12
12
|
import { ThemeDropdownMenu } from '../components/DropdownMenu/theme';
|
|
13
13
|
import { ThemeFileDrops } from '../components/FileDrop/theme';
|
|
14
14
|
import { ThemeHints } from '../components/Hint/theme';
|
|
15
|
+
import { ThemeIcons } from '../components/Icon/theme';
|
|
15
16
|
import { ThemeLabels } from '../components/Label/theme';
|
|
16
17
|
import { ThemeLinks } from '../components/Link/theme';
|
|
17
18
|
import { ThemeLoaders } from '../components/Loader/theme';
|
|
18
|
-
import { ThemeIcons } from '../components/Icon/theme';
|
|
19
19
|
import { ThemeModals } from '../components/Modal/theme';
|
|
20
20
|
import { ThemePagination } from '../components/Pagination/theme';
|
|
21
21
|
import { ThemePopovers } from '../components/Popover/theme';
|
|
@@ -31,24 +31,33 @@ import { ThemeToasts } from '../components/Toast/theme';
|
|
|
31
31
|
import { ThemeToggles } from '../components/Toggle/theme';
|
|
32
32
|
import { ThemeTooltips } from '../components/Tooltip/theme';
|
|
33
33
|
import { ThemeVariantIcon } from '../components/VariantIcon/theme';
|
|
34
|
-
import {
|
|
34
|
+
import { ThemeBorderWidths } from './borders';
|
|
35
35
|
import { ThemeColors } from './colors';
|
|
36
|
+
import { ThemeDefaultFields } from './defaultFields';
|
|
37
|
+
import { ThemeFocus } from './focus';
|
|
36
38
|
import { ThemeFontFaces } from './fonts';
|
|
37
|
-
import { ThemeFonts, ThemeFontSizes, ThemeFontWeights, ThemeLetterSpacings, ThemeLineHeights, ThemeTexts, ThemeTextsFontColors, ThemeTextsFontFamily, ThemeTextsFontWeights, ThemeTextsTextTransform } from './typography';
|
|
38
|
-
import { ThemeTimingFunction, ThemeTransitions } from './transitions';
|
|
39
|
-
import { ThemeUnderline } from './underline';
|
|
40
39
|
import { ThemeRadii } from './radii';
|
|
41
|
-
import { ThemeBorderWidths } from './borders';
|
|
42
40
|
import { ThemeScreens } from './screens';
|
|
41
|
+
import { ThemeSelection } from './selection';
|
|
43
42
|
import { ThemeShadows } from './shadows';
|
|
44
43
|
import { ThemeSpace } from './space';
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
|
|
49
|
-
type
|
|
50
|
-
type
|
|
51
|
-
export
|
|
44
|
+
import { ThemeTimingFunction, ThemeTransitions } from './transitions';
|
|
45
|
+
import { ThemeFonts, ThemeFontSizes, ThemeFontWeights, ThemeLetterSpacings, ThemeLineHeights, ThemeTexts, ThemeTextsFontColors, ThemeTextsFontFamily, ThemeTextsFontWeights, ThemeTextsTextTransform } from './typography';
|
|
46
|
+
import { ThemeUnderline } from './underline';
|
|
47
|
+
import { darkTheme } from './dark';
|
|
48
|
+
export type ThemeColorTokens = keyof ThemeColors;
|
|
49
|
+
export type ThemeFontsUrl = 'https://cdn.welcome-ui.com/fonts' | 'https://cdn.welcometothejungle.com/fonts' | string;
|
|
50
|
+
export type ThemeProps = {
|
|
51
|
+
[param: string]: unknown;
|
|
52
|
+
defaultFontFamily?: string;
|
|
53
|
+
defaultFontSize?: number;
|
|
54
|
+
defaultLetterSpacing?: string;
|
|
55
|
+
defaultLineHeight?: number;
|
|
56
|
+
fontsUrl?: ThemeFontsUrl;
|
|
57
|
+
headingFontFamily?: string;
|
|
58
|
+
iconFontFamily?: string;
|
|
59
|
+
};
|
|
60
|
+
export interface ThemeValues extends Omit<XStyledTheme, 'transitions'>, StyledComponentsTheme {
|
|
52
61
|
accordions: ThemeAccordions;
|
|
53
62
|
alerts: ThemeAlerts;
|
|
54
63
|
avatars: ThemeAvatars;
|
|
@@ -68,10 +77,10 @@ export interface ThemeValues extends XStyledTheme, StyledComponentsTheme {
|
|
|
68
77
|
fileDrops: ThemeFileDrops;
|
|
69
78
|
focus: ThemeFocus;
|
|
70
79
|
fontFaces: ThemeFontFaces;
|
|
71
|
-
fontSizes: ThemeFontSizes;
|
|
72
|
-
fontWeights: ThemeFontWeights;
|
|
73
80
|
fonts: ThemeFonts;
|
|
81
|
+
fontSizes: ThemeFontSizes;
|
|
74
82
|
fontsUrl: ThemeFontsUrl;
|
|
83
|
+
fontWeights: ThemeFontWeights;
|
|
75
84
|
hints: ThemeHints;
|
|
76
85
|
icons: ThemeIcons;
|
|
77
86
|
inset: ThemeSpace;
|
|
@@ -102,12 +111,12 @@ export interface ThemeValues extends XStyledTheme, StyledComponentsTheme {
|
|
|
102
111
|
textsFontWeights: ThemeTextsFontWeights;
|
|
103
112
|
textsTextTransform: ThemeTextsTextTransform;
|
|
104
113
|
timingFunction: ThemeTimingFunction;
|
|
105
|
-
toEm: (int: number) => string;
|
|
106
|
-
toPx: (int: number) => string;
|
|
107
|
-
toRem: (int: number) => string;
|
|
108
114
|
toasts: ThemeToasts;
|
|
115
|
+
toEm: (int: number) => string;
|
|
109
116
|
toggles: ThemeToggles;
|
|
110
117
|
tooltips: ThemeTooltips;
|
|
118
|
+
toPx: (int: number) => string;
|
|
119
|
+
toRem: (int: number) => string;
|
|
111
120
|
transformers: {
|
|
112
121
|
border: (value: CSSScalar) => CSSScalar;
|
|
113
122
|
px: (value: CSSScalar) => CSSScalar;
|
|
@@ -116,17 +125,8 @@ export interface ThemeValues extends XStyledTheme, StyledComponentsTheme {
|
|
|
116
125
|
underline: ThemeUnderline;
|
|
117
126
|
variantIcon: ThemeVariantIcon;
|
|
118
127
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
[param: string]: unknown;
|
|
123
|
-
defaultFontFamily?: string;
|
|
124
|
-
defaultFontSize?: number;
|
|
125
|
-
defaultLetterSpacing?: string;
|
|
126
|
-
defaultLineHeight?: number;
|
|
127
|
-
fontsUrl?: ThemeFontsUrl;
|
|
128
|
-
headingFontFamily?: string;
|
|
129
|
-
iconFontFamily?: string;
|
|
130
|
-
};
|
|
128
|
+
type OverrideKeys = 'borderWidths' | 'colors' | 'fonts' | 'fontSizes' | 'fontWeights' | 'letterSpacings' | 'lineHeights' | 'radii' | 'screens' | 'shadows' | 'sizes' | 'space' | 'texts';
|
|
129
|
+
type StyledComponentsTheme = Omit<StyledComponentDefaultTheme, OverrideKeys>;
|
|
130
|
+
type XStyledTheme = Omit<XStyledDefaultTheme, OverrideKeys>;
|
|
131
131
|
export declare const createTheme: (options?: ThemeProps) => ThemeValues;
|
|
132
132
|
export { darkTheme };
|
|
@@ -127,7 +127,7 @@ export type ThemeTexts = {
|
|
|
127
127
|
export declare const getTexts: (theme: ThemeValues) => ThemeTexts;
|
|
128
128
|
export type ThemeFonts = {
|
|
129
129
|
headings: string;
|
|
130
|
-
icons
|
|
130
|
+
icons?: string;
|
|
131
131
|
texts: string;
|
|
132
132
|
};
|
|
133
133
|
export declare const getFonts: (defaultFontFamily: ThemeProps["defaultFontFamily"], headingFontFamily: ThemeProps["headingFontFamily"], iconFontFamily: ThemeProps["iconFontFamily"]) => ThemeFonts;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { css } from '@xstyled/styled-components';
|
|
2
2
|
export type DefaultFieldIconSize = 'sm' | 'xs';
|
|
3
|
-
export type Size = '
|
|
3
|
+
export type Size = 'lg' | 'md' | 'sm' | 'xs';
|
|
4
4
|
export declare const FIELD_ICON_SIZE: {
|
|
5
5
|
[key in Size]: DefaultFieldIconSize;
|
|
6
6
|
};
|
|
7
|
-
export type DefaultFieldStylesProps =
|
|
7
|
+
export type DefaultFieldStylesProps = {
|
|
8
8
|
hasIcon?: boolean;
|
|
9
|
-
iconPlacement?: '
|
|
9
|
+
iconPlacement?: 'both' | 'left' | 'right';
|
|
10
10
|
isClearable?: boolean;
|
|
11
|
-
size
|
|
11
|
+
size?: Size;
|
|
12
12
|
transparent?: boolean;
|
|
13
|
-
variant
|
|
14
|
-
}
|
|
13
|
+
variant?: 'danger' | 'success' | 'warning';
|
|
14
|
+
};
|
|
15
15
|
type DefaultFieldStyles = (args: DefaultFieldStylesProps) => ReturnType<typeof css>;
|
|
16
16
|
export declare const defaultFieldStyles: DefaultFieldStyles;
|
|
17
17
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
export * from './field-styles';
|
|
1
2
|
export * from './format-bytes';
|
|
2
3
|
export * from './hex-to-rgba';
|
|
3
|
-
export * from './field-styles';
|
|
4
4
|
export * from './overflow-ellipsis';
|
|
5
5
|
export * from './throttle';
|
|
6
|
+
export * from './ts-utils';
|
|
6
7
|
export * from './use-copy-text';
|
|
7
8
|
export * from './use-fork-ref';
|
|
8
9
|
export * from './use-isomorphic-layout-effect';
|
|
9
10
|
export * from './use-viewport';
|
|
10
|
-
export * from './ts-utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type Content = React.RefObject<HTMLElement | HTMLInputElement> |
|
|
1
|
+
type Content = number | React.RefObject<HTMLElement | HTMLInputElement> | string;
|
|
2
2
|
type Timeout = number;
|
|
3
3
|
type useCopyTextReturn = [() => void, boolean];
|
|
4
4
|
export declare function useCopyText(content: Content, timeout: Timeout): useCopyTextReturn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hook that mimic the React createPortal function in order to make it SSR friendly
|
|
3
3
|
*/
|
|
4
|
-
export declare function useCreatePortal(disable?: boolean): ((children: React.ReactNode) =>
|
|
4
|
+
export declare function useCreatePortal(disable?: boolean): ((children: React.ReactNode) => unknown) | ((children: React.ReactNode, container?: DocumentFragment | Element, key?: null | string) => import('react').ReactPortal);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const wrapChildren: (children?:
|
|
1
|
+
export declare const wrapChildren: (children?: JSX.Element | string) => unknown;
|
|
@@ -3,12 +3,13 @@ import { useMemo as e } from "react";
|
|
|
3
3
|
function o(u, n) {
|
|
4
4
|
typeof u == "function" ? u(n) : u && (u.current = n);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
return e(() => u == null && n == null ?
|
|
6
|
+
function s(u, n) {
|
|
7
|
+
return e(() => u == null && n == null ? () => {
|
|
8
|
+
} : (t) => {
|
|
8
9
|
o(u, t), o(n, t);
|
|
9
10
|
}, [u, n]);
|
|
10
11
|
}
|
|
11
12
|
export {
|
|
12
13
|
o as s,
|
|
13
|
-
|
|
14
|
+
s as u
|
|
14
15
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState as n } from "react";
|
|
3
|
+
import { u as o } from "./use-isomorphic-layout-effect-Izr-e2pi.mjs";
|
|
4
|
+
function w() {
|
|
5
|
+
const [t, e] = n({ height: void 0, width: void 0 });
|
|
6
|
+
return o(() => {
|
|
7
|
+
e({ height: window.innerHeight, width: window.innerWidth });
|
|
8
|
+
function i() {
|
|
9
|
+
e({ height: window.innerHeight, width: window.innerWidth });
|
|
10
|
+
}
|
|
11
|
+
return window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
|
|
12
|
+
}, []), t;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
w as u
|
|
16
|
+
};
|