@strapi/design-system 2.0.0-beta.3 → 2.0.0-beta.5
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/components/Accordion/Accordion.d.ts +38 -53
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/index.d.ts +1 -6
- package/dist/components/Accordion/index.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.d.ts +19 -15
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar/index.d.ts +1 -2
- package/dist/components/Avatar/index.d.ts.map +1 -1
- package/dist/components/Badge/Badge.d.ts +8 -3
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Box/Box.d.ts +7 -7
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/constants.d.ts +2 -2
- package/dist/components/Button/constants.d.ts.map +1 -1
- package/dist/components/Button/utils.d.ts +5 -5
- package/dist/components/Button/utils.d.ts.map +1 -1
- package/dist/components/Card/CardAsset.d.ts +6 -3
- package/dist/components/Card/CardAsset.d.ts.map +1 -1
- package/dist/components/Card/CardCheckbox.d.ts +6 -3
- package/dist/components/Card/CardCheckbox.d.ts.map +1 -1
- package/dist/components/Card/CardTitle.d.ts +1 -1
- package/dist/components/Card/CardTitle.d.ts.map +1 -1
- package/dist/components/CarouselInput/CarouselActions.d.ts +1 -6
- package/dist/components/CarouselInput/CarouselActions.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +8 -7
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts +13 -26
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox/index.d.ts +1 -3
- package/dist/components/Combobox/index.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +3 -19
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.d.ts +2 -2
- package/dist/components/DateTimePicker/DateTimePicker.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +45 -7
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/index.d.ts +1 -3
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Divider/Divider.d.ts +6 -7
- package/dist/components/Divider/Divider.d.ts.map +1 -1
- package/dist/components/Field/Field.d.ts +1 -3
- package/dist/components/Field/Field.d.ts.map +1 -1
- package/dist/components/Grid/Grid.d.ts +14 -5
- package/dist/components/Grid/Grid.d.ts.map +1 -1
- package/dist/components/Grid/index.d.ts +1 -2
- package/dist/components/Grid/index.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.d.ts +18 -29
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/JSONInput/utils/decorationExtension.d.ts +1 -1
- package/dist/components/JSONInput/utils/decorationExtension.d.ts.map +1 -1
- package/dist/components/LinkButton/LinkButton.d.ts +3 -3
- package/dist/components/LinkButton/LinkButton.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts +46 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts +16 -16
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Popover/index.d.ts +1 -3
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Radio/Radio.d.ts +11 -5
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/Radio/index.d.ts +1 -2
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/RawTable/RawCell.d.ts.map +1 -1
- package/dist/components/Searchbar/Searchbar.d.ts.map +1 -1
- package/dist/components/Select/MultiSelect.d.ts +2 -14
- package/dist/components/Select/MultiSelect.d.ts.map +1 -1
- package/dist/components/Select/SelectParts.d.ts +5 -9
- package/dist/components/Select/SelectParts.d.ts.map +1 -1
- package/dist/components/Select/SingleSelect.d.ts +2 -2
- package/dist/components/Select/SingleSelect.d.ts.map +1 -1
- package/dist/components/SimpleMenu/Menu.d.ts +3 -4
- package/dist/components/SimpleMenu/Menu.d.ts.map +1 -1
- package/dist/components/SimpleMenu/SimpleMenu.d.ts +1 -1
- package/dist/components/SimpleMenu/SimpleMenu.d.ts.map +1 -1
- package/dist/components/SubNav/SubNavHeader.d.ts.map +1 -1
- package/dist/components/Table/Cell.d.ts +3 -0
- package/dist/components/Table/Cell.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +36 -14
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/index.d.ts +1 -3
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/components/Toggle/Toggle.d.ts +0 -2
- package/dist/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +24 -9
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Typography/Typography.d.ts +4 -4
- package/dist/components/Typography/Typography.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -9
- package/dist/components/index.d.ts.map +1 -1
- package/dist/hooks/useControllableState.d.ts +9 -19
- package/dist/hooks/useControllableState.d.ts.map +1 -1
- package/dist/hooks/useId.d.ts.map +1 -1
- package/dist/hooks/useIntersection.d.ts +3 -0
- package/dist/hooks/useIntersection.d.ts.map +1 -1
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +12 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/hooks/useMeasure.d.ts +7 -0
- package/dist/hooks/useMeasure.d.ts.map +1 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1931 -2353
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1925 -2356
- package/dist/index.mjs.map +1 -1
- package/dist/styles/global.d.ts +4 -0
- package/dist/styles/global.d.ts.map +1 -0
- package/dist/styles/motion.d.ts +55 -0
- package/dist/styles/motion.d.ts.map +1 -0
- package/dist/themes/common-theme.d.ts +15 -1
- package/dist/themes/common-theme.d.ts.map +1 -1
- package/dist/themes/sizes.d.ts +0 -9
- package/dist/themes/sizes.d.ts.map +1 -1
- package/dist/utilities/DesignSystemProvider.d.ts +16 -0
- package/dist/utilities/DesignSystemProvider.d.ts.map +1 -0
- package/dist/utilities/DismissibleLayer/index.d.ts.map +1 -0
- package/dist/utilities/FocusTrap/FocusTrap.d.ts.map +1 -0
- package/dist/utilities/FocusTrap/index.d.ts.map +1 -0
- package/dist/{components → utilities}/KeyboardNavigable/KeyboardNavigable.d.ts +1 -1
- package/dist/utilities/KeyboardNavigable/KeyboardNavigable.d.ts.map +1 -0
- package/dist/utilities/KeyboardNavigable/index.d.ts.map +1 -0
- package/dist/utilities/Portal/Portal.d.ts +13 -0
- package/dist/utilities/Portal/Portal.d.ts.map +1 -0
- package/dist/utilities/Portal/index.d.ts.map +1 -0
- package/dist/utilities/ScrollArea/ScrollArea.d.ts +15 -0
- package/dist/utilities/ScrollArea/ScrollArea.d.ts.map +1 -0
- package/dist/utilities/ScrollArea/index.d.ts +2 -0
- package/dist/utilities/ScrollArea/index.d.ts.map +1 -0
- package/package.json +27 -17
- package/dist/DesignSystemProvider.d.ts +0 -11
- package/dist/DesignSystemProvider.d.ts.map +0 -1
- package/dist/components/Accordion/AccordionContent.d.ts +0 -6
- package/dist/components/Accordion/AccordionContent.d.ts.map +0 -1
- package/dist/components/Accordion/AccordionContext.d.ts +0 -14
- package/dist/components/Accordion/AccordionContext.d.ts.map +0 -1
- package/dist/components/Accordion/AccordionGroup.d.ts +0 -13
- package/dist/components/Accordion/AccordionGroup.d.ts.map +0 -1
- package/dist/components/Accordion/AccordionToggle.d.ts +0 -31
- package/dist/components/Accordion/AccordionToggle.d.ts.map +0 -1
- package/dist/components/Avatar/AvatarGroup.d.ts +0 -6
- package/dist/components/Avatar/AvatarGroup.d.ts.map +0 -1
- package/dist/components/Avatar/constants.d.ts +0 -3
- package/dist/components/Avatar/constants.d.ts.map +0 -1
- package/dist/components/BaseCheckbox/BaseCheckbox.d.ts +0 -27
- package/dist/components/BaseCheckbox/BaseCheckbox.d.ts.map +0 -1
- package/dist/components/BaseCheckbox/index.d.ts +0 -2
- package/dist/components/BaseCheckbox/index.d.ts.map +0 -1
- package/dist/components/BaseCheckbox/utils.d.ts +0 -5
- package/dist/components/BaseCheckbox/utils.d.ts.map +0 -1
- package/dist/components/BaseRadio/BaseRadio.d.ts +0 -9
- package/dist/components/BaseRadio/BaseRadio.d.ts.map +0 -1
- package/dist/components/BaseRadio/RadioGroup.d.ts +0 -13
- package/dist/components/BaseRadio/RadioGroup.d.ts.map +0 -1
- package/dist/components/BaseRadio/context.d.ts +0 -10
- package/dist/components/BaseRadio/context.d.ts.map +0 -1
- package/dist/components/BaseRadio/index.d.ts +0 -3
- package/dist/components/BaseRadio/index.d.ts.map +0 -1
- package/dist/components/BaseRadio/utils.d.ts +0 -5
- package/dist/components/BaseRadio/utils.d.ts.map +0 -1
- package/dist/components/Combobox/ComboboxList.d.ts +0 -11
- package/dist/components/Combobox/ComboboxList.d.ts.map +0 -1
- package/dist/components/Combobox/ComboboxOption.d.ts +0 -5
- package/dist/components/Combobox/ComboboxOption.d.ts.map +0 -1
- package/dist/components/Dialog/DialogBody.d.ts +0 -7
- package/dist/components/Dialog/DialogBody.d.ts.map +0 -1
- package/dist/components/Dialog/DialogFooter.d.ts +0 -7
- package/dist/components/Dialog/DialogFooter.d.ts.map +0 -1
- package/dist/components/DismissibleLayer/index.d.ts.map +0 -1
- package/dist/components/EmptyStateLayout/story-assets/Illo.d.ts +0 -2
- package/dist/components/EmptyStateLayout/story-assets/Illo.d.ts.map +0 -1
- package/dist/components/FocusTrap/FocusTrap.d.ts.map +0 -1
- package/dist/components/FocusTrap/index.d.ts.map +0 -1
- package/dist/components/Grid/GridItem.d.ts +0 -9
- package/dist/components/Grid/GridItem.d.ts.map +0 -1
- package/dist/components/KeyboardNavigable/KeyboardNavigable.d.ts.map +0 -1
- package/dist/components/KeyboardNavigable/index.d.ts.map +0 -1
- package/dist/components/Layout/Layout.d.ts +0 -8
- package/dist/components/Layout/Layout.d.ts.map +0 -1
- package/dist/components/MainNav/MainNav.d.ts +0 -6
- package/dist/components/MainNav/MainNav.d.ts.map +0 -1
- package/dist/components/MainNav/MainNavContext.d.ts +0 -4
- package/dist/components/MainNav/MainNavContext.d.ts.map +0 -1
- package/dist/components/MainNav/NavBrand.d.ts +0 -10
- package/dist/components/MainNav/NavBrand.d.ts.map +0 -1
- package/dist/components/MainNav/NavCondense.d.ts +0 -6
- package/dist/components/MainNav/NavCondense.d.ts.map +0 -1
- package/dist/components/MainNav/NavFooter.d.ts +0 -6
- package/dist/components/MainNav/NavFooter.d.ts.map +0 -1
- package/dist/components/MainNav/NavLink.d.ts +0 -12
- package/dist/components/MainNav/NavLink.d.ts.map +0 -1
- package/dist/components/MainNav/NavSection.d.ts +0 -10
- package/dist/components/MainNav/NavSection.d.ts.map +0 -1
- package/dist/components/MainNav/NavSections.d.ts +0 -9
- package/dist/components/MainNav/NavSections.d.ts.map +0 -1
- package/dist/components/MainNav/NavUser.d.ts +0 -9
- package/dist/components/MainNav/NavUser.d.ts.map +0 -1
- package/dist/components/MainNav/index.d.ts +0 -9
- package/dist/components/MainNav/index.d.ts.map +0 -1
- package/dist/components/ModalLayout/ModalBody.d.ts +0 -3
- package/dist/components/ModalLayout/ModalBody.d.ts.map +0 -1
- package/dist/components/ModalLayout/ModalContext.d.ts +0 -4
- package/dist/components/ModalLayout/ModalContext.d.ts.map +0 -1
- package/dist/components/ModalLayout/ModalFooter.d.ts +0 -7
- package/dist/components/ModalLayout/ModalFooter.d.ts.map +0 -1
- package/dist/components/ModalLayout/ModalHeader.d.ts +0 -8
- package/dist/components/ModalLayout/ModalHeader.d.ts.map +0 -1
- package/dist/components/ModalLayout/ModalLayout.d.ts +0 -7
- package/dist/components/ModalLayout/ModalLayout.d.ts.map +0 -1
- package/dist/components/ModalLayout/index.d.ts +0 -5
- package/dist/components/ModalLayout/index.d.ts.map +0 -1
- package/dist/components/Popover/primitives.d.ts +0 -4
- package/dist/components/Popover/primitives.d.ts.map +0 -1
- package/dist/components/Portal/Portal.d.ts +0 -7
- package/dist/components/Portal/Portal.d.ts.map +0 -1
- package/dist/components/Portal/index.d.ts.map +0 -1
- package/dist/components/Tabs/TabGroup.d.ts +0 -15
- package/dist/components/Tabs/TabGroup.d.ts.map +0 -1
- package/dist/components/Tabs/TabPanels.d.ts +0 -10
- package/dist/components/Tabs/TabPanels.d.ts.map +0 -1
- package/dist/components/Tabs/TabsContext.d.ts +0 -12
- package/dist/components/Tabs/TabsContext.d.ts.map +0 -1
- package/dist/components/Tabs/components.d.ts +0 -23
- package/dist/components/Tabs/components.d.ts.map +0 -1
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +0 -11
- package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +0 -1
- package/dist/components/ThemeProvider/hooks.d.ts +0 -2
- package/dist/components/ThemeProvider/hooks.d.ts.map +0 -1
- package/dist/components/ThemeProvider/index.d.ts +0 -3
- package/dist/components/ThemeProvider/index.d.ts.map +0 -1
- package/dist/components/Tooltip/hooks/useTooltipHandlers.d.ts +0 -8
- package/dist/components/Tooltip/hooks/useTooltipHandlers.d.ts.map +0 -1
- package/dist/components/Tooltip/hooks/useTooltipLayout.d.ts +0 -7
- package/dist/components/Tooltip/hooks/useTooltipLayout.d.ts.map +0 -1
- package/dist/components/Tooltip/utils/positionTooltip.d.ts +0 -6
- package/dist/components/Tooltip/utils/positionTooltip.d.ts.map +0 -1
- package/dist/helpers/getDefaultLocale.d.ts +0 -6
- package/dist/helpers/getDefaultLocale.d.ts.map +0 -1
- package/dist/hooks/useLockScroll.d.ts +0 -3
- package/dist/hooks/useLockScroll.d.ts.map +0 -1
- package/dist/hooks/usePrevious.d.ts +0 -2
- package/dist/hooks/usePrevious.d.ts.map +0 -1
- package/dist/styles/inputs.d.ts +0 -1
- package/dist/styles/inputs.d.ts.map +0 -1
- /package/dist/{components → utilities}/DismissibleLayer/index.d.ts +0 -0
- /package/dist/{components → utilities}/FocusTrap/FocusTrap.d.ts +0 -0
- /package/dist/{components → utilities}/FocusTrap/index.d.ts +0 -0
- /package/dist/{components → utilities}/KeyboardNavigable/index.d.ts +0 -0
- /package/dist/{components → utilities}/Portal/index.d.ts +0 -0
|
@@ -12,10 +12,6 @@ interface TriggerProps extends BoxProps<'div'>, Pick<Field.InputProps, 'name' |
|
|
|
12
12
|
hasError?: boolean;
|
|
13
13
|
onClear?: (e: React.MouseEvent<HTMLButtonElement | HTMLDivElement>) => void;
|
|
14
14
|
startIcon?: React.ReactElement;
|
|
15
|
-
/**
|
|
16
|
-
* @default "M"
|
|
17
|
-
*/
|
|
18
|
-
size?: 'S' | 'M';
|
|
19
15
|
}
|
|
20
16
|
interface ValueProps extends Omit<TypographyProps, 'children' | 'placeholder'>, Pick<Select.SelectValueProps, 'placeholder' | 'children'> {
|
|
21
17
|
asChild?: boolean;
|
|
@@ -29,23 +25,23 @@ declare const Root: {
|
|
|
29
25
|
displayName: string;
|
|
30
26
|
};
|
|
31
27
|
declare const Trigger: React.ForwardRefExoticComponent<Omit<TriggerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
-
declare const Value: React.ForwardRefExoticComponent<
|
|
28
|
+
declare const Value: React.ForwardRefExoticComponent<ValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
33
29
|
declare const Portal: {
|
|
34
30
|
(props: Select.SelectPortalProps & {
|
|
35
31
|
__scopeSelect?: import("@radix-ui/react-context").Scope;
|
|
36
32
|
}): import("react/jsx-runtime").JSX.Element;
|
|
37
33
|
displayName: string;
|
|
38
34
|
};
|
|
39
|
-
declare const Content: import("styled-components").
|
|
35
|
+
declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Select.SelectContentImplProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
40
36
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
41
|
-
}, never>> & Omit<React.ForwardRefExoticComponent<Select.SelectContentImplProps & React.RefAttributes<HTMLDivElement>>, keyof React.Component<any, {}, any>>;
|
|
42
|
-
declare const Viewport: import("styled-components").
|
|
37
|
+
}, never>> & string & Omit<React.ForwardRefExoticComponent<Select.SelectContentImplProps & React.RefAttributes<HTMLDivElement>>, keyof React.Component<any, {}, any>>;
|
|
38
|
+
declare const Viewport: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
43
39
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
44
40
|
} & {
|
|
45
41
|
asChild?: boolean | undefined;
|
|
46
42
|
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
47
43
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
48
|
-
}, never>> & Omit<React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
44
|
+
}, never>> & string & Omit<React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
49
45
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
50
46
|
} & {
|
|
51
47
|
asChild?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectParts.d.ts","sourceRoot":"","sources":["../../../src/components/Select/SelectParts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"SelectParts.d.ts","sourceRoot":"","sources":["../../../src/components/Select/SelectParts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAM/C,OAAO,EAAqB,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,KAAK,EAAY,MAAM,UAAU,CAAC;AAE3C,OAAO,EAAmC,eAAe,EAAE,MAAM,eAAe,CAAC;AAMjF,UAAU,YAAa,SAAQ,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnF;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,GAAG,cAAc,CAAC,KAAK,IAAI,CAAC;IAC5E,SAAS,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;CAChC;AAkHD,UAAU,UACR,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,aAAa,CAAC,EACvD,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,aAAa,GAAG,UAAU,CAAC;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAgED,UAAU,SAAU,SAAQ,MAAM,CAAC,eAAe;CAAG;AA2CrD,QAAA,MAAM,IAAI;;;;;CAAc,CAAC;A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1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as SelectParts from './SelectParts';
|
|
3
|
-
type SingleSelectPropsWithoutLabel = Omit<SelectParts.SingleSelectProps, 'value'> & Pick<SelectParts.ContentProps, 'onCloseAutoFocus'> & Pick<SelectParts.TriggerProps, 'clearLabel' | 'onClear' | '
|
|
3
|
+
type SingleSelectPropsWithoutLabel = Omit<SelectParts.SingleSelectProps, 'value'> & Pick<SelectParts.ContentProps, 'onCloseAutoFocus'> & Pick<SelectParts.TriggerProps, 'clearLabel' | 'onClear' | 'startIcon' | 'name' | 'id' | 'hasError'> & Pick<SelectParts.ValueProps, 'placeholder'> & {
|
|
4
4
|
/**
|
|
5
5
|
* @default (value) => value.toString()
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export type SingleSelectProps = SingleSelectPropsWithoutLabel & {
|
|
|
14
14
|
'aria-describedby'?: string;
|
|
15
15
|
};
|
|
16
16
|
export type SingleSelectElement = HTMLDivElement;
|
|
17
|
-
export declare const SingleSelect: React.ForwardRefExoticComponent<Omit<import("@strapi/ui-primitives/dist/components/Select/Select").SingleSelectProps, "value"> & Pick<import("@strapi/ui-primitives/dist/components/Select/Select").SelectContentImplProps, "onCloseAutoFocus"> & Pick<SelectParts.TriggerProps, "
|
|
17
|
+
export declare const SingleSelect: React.ForwardRefExoticComponent<Omit<import("@strapi/ui-primitives/dist/components/Select/Select").SingleSelectProps, "value"> & Pick<import("@strapi/ui-primitives/dist/components/Select/Select").SelectContentImplProps, "onCloseAutoFocus"> & Pick<SelectParts.TriggerProps, "id" | "name" | "startIcon" | "hasError" | "clearLabel" | "onClear"> & Pick<SelectParts.ValueProps, "placeholder"> & {
|
|
18
18
|
/**
|
|
19
19
|
* @default (value) => value.toString()
|
|
20
20
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleSelect.d.ts","sourceRoot":"","sources":["../../../src/components/Select/SingleSelect.tsx"],"names":[],"mappings":"AAAA,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AM,MAAM,mBAAmB,GAAG,cAAc,CAAC;AAEjD,eAAO,MAAM,YAAY;IAbrB;;OAEG;8BACuB,MAAM,GAAG,MAAM,GAAG,MAAM;wBAC/B,MAAM,GAAG,MAAM,KAAK,IAAI;0BACtB,yBAAyB,KAAK,IAAI;;;;;wCAqI1D,CAAC;AAMF,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,OAAO,CAAC;IACnF,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,kBAAkB,gGAe9B,CAAC"}
|
|
@@ -5,7 +5,6 @@ import { BoxProps } from '../Box';
|
|
|
5
5
|
import { ButtonProps } from '../Button';
|
|
6
6
|
import { FlexProps } from '../Flex';
|
|
7
7
|
import { LinkProps } from '../Link';
|
|
8
|
-
import { POPOVER_PLACEMENTS } from '../Popover';
|
|
9
8
|
import { TypographyProps } from '../Typography';
|
|
10
9
|
interface RootProps extends DropdownMenu.DropdownMenuProps {
|
|
11
10
|
}
|
|
@@ -13,7 +12,7 @@ interface TriggerProps extends ButtonProps {
|
|
|
13
12
|
}
|
|
14
13
|
interface ContentProps extends FlexProps<'div'> {
|
|
15
14
|
intersectionId?: string;
|
|
16
|
-
popoverPlacement?:
|
|
15
|
+
popoverPlacement?: `${NonNullable<DropdownMenu.DropdownMenuContentProps['side']>}-${NonNullable<DropdownMenu.DropdownMenuContentProps['align']>}`;
|
|
17
16
|
}
|
|
18
17
|
interface ItemSharedProps extends Pick<DropdownMenu.MenuItemProps, 'disabled' | 'onSelect'> {
|
|
19
18
|
children?: React.ReactNode;
|
|
@@ -47,8 +46,8 @@ interface SubContentProps extends FlexProps<'div'> {
|
|
|
47
46
|
declare const Root: React.FC<DropdownMenu.DropdownMenuProps>;
|
|
48
47
|
declare const Trigger: React.ForwardRefExoticComponent<Omit<TriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
49
48
|
declare const Content: React.ForwardRefExoticComponent<Omit<ContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
-
declare const Item: ({ onSelect, disabled, ...props }: ItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
-
declare const Label: React.ForwardRefExoticComponent<
|
|
49
|
+
declare const Item: ({ onSelect, disabled, isLink, ...props }: ItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLSpanElement>>;
|
|
52
51
|
declare const SubRoot: React.FC<DropdownMenu.DropdownMenuSubProps>;
|
|
53
52
|
declare const SubTrigger: React.ForwardRefExoticComponent<Omit<SubTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
54
53
|
declare const SubContent: React.ForwardRefExoticComponent<Omit<SubContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleMenu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,YAAY,MAAM,+BAA+B,CAAC;AAK9D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAO,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAU,WAAW,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAuB,SAAS,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAQ,SAAS,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleMenu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,YAAY,MAAM,+BAA+B,CAAC;AA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ps extends Omit<Menu.TriggerProps, 'children'>, Pick<Menu
|
|
|
11
11
|
onReachEnd?: (entry: IntersectionObserverEntry) => void;
|
|
12
12
|
}
|
|
13
13
|
declare const SimpleMenu: ({ children, onOpen, onClose, popoverPlacement, onReachEnd, ...props }: SimpleMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare const MenuItem: ({ onSelect, disabled, ...props }: Menu.ItemProps<(props: Omit<import("..").BaseLinkProps<"a">, "ref"> & React.RefAttributes<HTMLAnchorElement>) => React.ReactNode>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const MenuItem: ({ onSelect, disabled, isLink, ...props }: Menu.ItemProps<(props: Omit<import("..").BaseLinkProps<"a">, "ref"> & React.RefAttributes<HTMLAnchorElement>) => React.ReactNode>) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
type MenuItemProps = Menu.ItemProps;
|
|
16
16
|
export { SimpleMenu, MenuItem, Menu };
|
|
17
17
|
export type { SimpleMenuProps, MenuItemProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleMenu.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleMenu/SimpleMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAM/B,UAAU,eACR,SAAQ,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,EACzC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,kBAAkB,GAAG,gBAAgB,CAAC;IAChE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACzD;AAED,QAAA,MAAM,UAAU,0EAA2E,eAAe,4CA4CzG,CAAC;AAEF,QAAA,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"SimpleMenu.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleMenu/SimpleMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAM/B,UAAU,eACR,SAAQ,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,EACzC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,kBAAkB,GAAG,gBAAgB,CAAC;IAChE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACzD;AAED,QAAA,MAAM,UAAU,0EAA2E,eAAe,4CA4CzG,CAAC;AAEF,QAAA,MAAM,QAAQ,0NAAY,CAAC;AAC3B,KAAK,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACtC,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubNavHeader.d.ts","sourceRoot":"","sources":["../../../src/components/SubNav/SubNavHeader.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAa,cAAc,EAAc,MAAM,cAAc,CAAC;AACrE,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAO5D,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,EACxC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC;IACpE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,YAAY,qFAUtB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"SubNavHeader.d.ts","sourceRoot":"","sources":["../../../src/components/SubNav/SubNavHeader.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAa,cAAc,EAAc,MAAM,cAAc,CAAC;AACrE,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAO5D,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,EACxC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC;IACpE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,YAAY,qFAUtB,iBAAiB,4CAgFnB,CAAC"}
|
|
@@ -2,6 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import { RawTdProps } from '../RawTable/RawCell';
|
|
3
3
|
export interface ThProps extends RawTdProps {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated just pass everything as children.
|
|
7
|
+
*/
|
|
5
8
|
action?: React.ReactNode;
|
|
6
9
|
}
|
|
7
10
|
export declare const Th: ({ children, action, ...props }: ThProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAgB/D,MAAM,WAAW,OAAQ,SAAQ,UAAU;IACzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,EAAE,mCAAoC,OAAO,4CASzD,CAAC;AAEF,eAAO,MAAM,EAAE,2BAA4B,UAAU,4CAEpD,CAAC"}
|
|
@@ -1,18 +1,40 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import * as Tabs from '@radix-ui/react-tabs';
|
|
3
|
+
type Variant = 'regular' | 'simple';
|
|
4
|
+
interface ContextValue {
|
|
5
|
+
/**
|
|
6
|
+
* @default false
|
|
7
|
+
* @description This will disable all tabs, you can pass
|
|
8
|
+
* this attribute to individual triggers to disable them.
|
|
9
|
+
* If you provide a string, it should be the value of a trigger.
|
|
10
|
+
*/
|
|
11
|
+
disabled: boolean | string;
|
|
12
|
+
/**
|
|
13
|
+
* @description This will show an error state on the tab
|
|
14
|
+
* that matches the value provided.
|
|
15
|
+
*/
|
|
16
|
+
hasError?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @default 'regular'
|
|
19
|
+
*/
|
|
20
|
+
variant: Variant;
|
|
5
21
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
hasError?: boolean;
|
|
11
|
-
id?: string;
|
|
12
|
-
index?: number;
|
|
13
|
-
onTabClick?: () => void;
|
|
14
|
-
selectedTabIndex?: number;
|
|
15
|
-
variant?: 'simple';
|
|
22
|
+
type Element = HTMLDivElement;
|
|
23
|
+
interface Props extends Tabs.TabsProps, Partial<ContextValue> {
|
|
16
24
|
}
|
|
17
|
-
|
|
25
|
+
declare const Root: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
type ListElement = HTMLDivElement;
|
|
27
|
+
interface ListProps extends Tabs.TabsListProps {
|
|
28
|
+
}
|
|
29
|
+
declare const List: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
type TriggerElement = HTMLButtonElement;
|
|
31
|
+
interface TriggerProps extends Tabs.TabsTriggerProps {
|
|
32
|
+
}
|
|
33
|
+
declare const Trigger: React.ForwardRefExoticComponent<TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
34
|
+
type ContentElement = HTMLDivElement;
|
|
35
|
+
interface ContentProps extends Tabs.TabsContentProps {
|
|
36
|
+
}
|
|
37
|
+
declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
export { Root, List, Trigger, Content };
|
|
39
|
+
export type { Props, Element, ListProps, ListElement, TriggerProps, TriggerElement, ContentProps, ContentElement };
|
|
18
40
|
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAC;AAU7C,KAAK,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEpC,UAAU,YAAY;IACpB;;;;;OAKG;IACH,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,KAAK,OAAO,GAAG,cAAc,CAAC;AAE9B,UAAU,KAAM,SAAQ,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,YAAY,CAAC;CAAG;AAEhE,QAAA,MAAM,IAAI,8EAQT,CAAC;AAWF,KAAK,WAAW,GAAG,cAAc,CAAC;AAElC,UAAU,SAAU,SAAQ,IAAI,CAAC,aAAa;CAAG;AAEjD,QAAA,MAAM,IAAI,kFAGR,CAAC;AAaH,KAAK,cAAc,GAAG,iBAAiB,CAAC;AAExC,UAAU,YAAa,SAAQ,IAAI,CAAC,gBAAgB;CAAG;AAEvD,QAAA,MAAM,OAAO,wFAgBZ,CAAC;AA2FF,KAAK,cAAc,GAAG,cAAc,CAAC;AAErC,UAAU,YAAa,SAAQ,IAAI,CAAC,gBAAgB;CAAG;AAEvD,QAAA,MAAM,OAAO,qFAIX,CAAC;AAgBH,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;AACxC,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../src/components/TimePicker/TimePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../src/components/TimePicker/TimePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAY,aAAa,EAAwC,MAAM,sBAAsB,CAAC;AAUrG,MAAM,WAAW,eACf,SAAQ,IAAI,CACV,aAAa,EACX,UAAU,GACV,cAAc,GACd,WAAW,GACX,aAAa,GACb,kBAAkB,GAClB,qBAAqB,GACrB,aAAa,GACb,OAAO,GACP,cAAc,GACd,kBAAkB,GAClB,WAAW,GACX,mBAAmB,CACtB;IACD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,UAAU,0FA8GtB,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Field } from '../Field';
|
|
3
|
-
import type { InputSizes } from '../../themes/sizes';
|
|
4
3
|
interface ToggleProps extends Omit<React.ComponentPropsWithoutRef<'input'>, 'name' | 'children' | 'required' | 'id' | 'size' | 'checked'>, Pick<Field.InputProps, 'required' | 'name' | 'id' | 'hasError'> {
|
|
5
4
|
onLabel: string;
|
|
6
5
|
offLabel: string;
|
|
7
6
|
checked?: boolean | null;
|
|
8
|
-
size?: InputSizes;
|
|
9
7
|
}
|
|
10
8
|
/**
|
|
11
9
|
* TODO: This should probably follow the switch button pattern
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/Toggle.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,KAAK,EAAY,MAAM,UAAU,CAAC;AAI3C,
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/Toggle.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,KAAK,EAAY,MAAM,UAAU,CAAC;AAI3C,UAAU,WACR,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,CAAC,EACjH,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,UAAU,CAAC;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC1B;AAID;;;GAGG;AACH,QAAA,MAAM,MAAM,sFAmHX,CAAC;AAoBF,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,14 +1,29 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
interface TooltipProps extends
|
|
2
|
+
import * as Tooltip from '@radix-ui/react-tooltip';
|
|
3
|
+
type TooltipElement = HTMLDivElement;
|
|
4
|
+
interface TooltipProps extends Tooltip.TooltipContentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The duration from when the pointer enters the trigger until the tooltip gets opened. This will
|
|
9
|
+
* override the prop with the same name passed to Provider.
|
|
10
|
+
* @default 500
|
|
11
|
+
*/
|
|
12
|
+
delayDuration?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `label` instead.
|
|
15
|
+
*/
|
|
5
16
|
description?: string;
|
|
6
|
-
|
|
7
|
-
|
|
17
|
+
/**
|
|
18
|
+
* When `true`, trying to hover the content will result in the tooltip closing as the pointer leaves the trigger.
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
disableHoverableContent?: boolean;
|
|
8
22
|
label?: React.ReactNode;
|
|
9
|
-
|
|
23
|
+
onOpenChange?: (open: boolean) => void;
|
|
24
|
+
open?: boolean;
|
|
10
25
|
}
|
|
11
|
-
declare const
|
|
12
|
-
export { Tooltip };
|
|
13
|
-
export type { TooltipProps };
|
|
26
|
+
declare const TooltipImpl: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export { TooltipImpl as Tooltip };
|
|
28
|
+
export type { TooltipProps, TooltipElement };
|
|
14
29
|
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AAMnD,KAAK,cAAc,GAAG,cAAc,CAAC;AAErC,UAAU,YAAa,SAAQ,OAAO,CAAC,mBAAmB;IACxD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,QAAA,MAAM,WAAW,qFAkChB,CAAC;AAkBF,OAAO,EAAE,WAAW,IAAI,OAAO,EAAE,CAAC;AAClC,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type CSSProperties, type DefaultTheme } from 'styled-components';
|
|
3
3
|
import { type TEXT_VARIANTS } from '../../styles/type';
|
|
4
|
-
import { DefaultThemeOrCSSProp } from '../../types';
|
|
4
|
+
import { DefaultThemeOrCSSProp, PolymorphicComponentPropsWithRef } from '../../types';
|
|
5
5
|
import { BoxProps } from '../Box';
|
|
6
6
|
interface TransientTypographyProps {
|
|
7
7
|
ellipsis?: boolean;
|
|
@@ -14,9 +14,9 @@ interface TransientTypographyProps {
|
|
|
14
14
|
textTransform?: CSSProperties['textTransform'];
|
|
15
15
|
variant?: (typeof TEXT_VARIANTS)[number];
|
|
16
16
|
}
|
|
17
|
-
type TypographyProps<C extends React.ElementType = 'span'> = BoxProps<C> & TransientTypographyProps;
|
|
18
|
-
declare const Typography: <
|
|
19
|
-
type TypographyComponent<C extends React.ElementType = 'span'> =
|
|
17
|
+
type TypographyProps<C extends React.ElementType = 'span'> = Omit<BoxProps<C>, 'ref'> & TransientTypographyProps;
|
|
18
|
+
declare const Typography: TypographyComponent<"span">;
|
|
19
|
+
type TypographyComponent<C extends React.ElementType = 'span'> = <T extends React.ElementType = C>(props: PolymorphicComponentPropsWithRef<T, TypographyProps<T>>) => JSX.Element;
|
|
20
20
|
export { Typography };
|
|
21
21
|
export type { TypographyProps, TypographyComponent, TransientTypographyProps };
|
|
22
22
|
//# sourceMappingURL=Typography.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAU,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGlF,OAAO,EAAqB,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,
|
|
1
|
+
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAU,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGlF,OAAO,EAAqB,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EACL,qBAAqB,EACrB,gCAAgC,EAGjC,MAAM,aAAa,CAAC;AAErB,OAAO,EAAqB,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAErD,UAAU,wBAAwB;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,YAAY,CAAC,WAAW,CAAC,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,YAAY,CAAC,aAAa,CAAC,CAAC;IAC/C,UAAU,CAAC,EAAE,qBAAqB,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;IAChE,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,qBAAqB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACrD,cAAc,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACjD,aAAa,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;CAC1C;AAED,KAAK,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,wBAAwB,CAAC;AAEjH,QAAA,MAAM,UAAU,6BA6BQ,CAAC;AAEzB,KAAK,mBAAmB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,IAAI,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,CAAC,EAC/F,KAAK,EAAE,gCAAgC,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,KAC3D,GAAG,CAAC,OAAO,CAAC;AAiBjB,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -3,9 +3,7 @@ export * from './Alert';
|
|
|
3
3
|
export * from './Avatar';
|
|
4
4
|
export * from './Badge';
|
|
5
5
|
export * from './BaseButton';
|
|
6
|
-
export * from './BaseCheckbox';
|
|
7
6
|
export * from './BaseLink';
|
|
8
|
-
export { BaseRadio } from './BaseRadio';
|
|
9
7
|
export * from './Box';
|
|
10
8
|
export * from './Breadcrumbs';
|
|
11
9
|
export * from './Button';
|
|
@@ -14,28 +12,24 @@ export * from './CarouselInput';
|
|
|
14
12
|
export * from './Checkbox';
|
|
15
13
|
export * from './Combobox';
|
|
16
14
|
export * from './Dialog';
|
|
17
|
-
export * from './DismissibleLayer';
|
|
18
15
|
export * from './DatePicker';
|
|
19
16
|
export * from './DateTimePicker';
|
|
20
17
|
export * from './Divider';
|
|
21
18
|
export * from './EmptyStateLayout';
|
|
22
19
|
export * from './Field';
|
|
23
|
-
export * from '
|
|
20
|
+
export * from '../utilities/FocusTrap';
|
|
24
21
|
export * from './Grid';
|
|
25
22
|
export * from './IconButton';
|
|
26
23
|
export * from './JSONInput';
|
|
27
|
-
export * from './KeyboardNavigable';
|
|
28
24
|
export * from './Link';
|
|
29
25
|
export * from './LinkButton';
|
|
30
26
|
export * from './LiveRegions';
|
|
31
27
|
export * from './Loader';
|
|
32
28
|
export * from './Main';
|
|
33
|
-
export * from './
|
|
34
|
-
export * from './ModalLayout';
|
|
29
|
+
export * from './Modal';
|
|
35
30
|
export * from './NumberInput';
|
|
36
31
|
export * from './Pagination';
|
|
37
32
|
export * from './Popover';
|
|
38
|
-
export * from './Portal';
|
|
39
33
|
export * from './ProgressBar';
|
|
40
34
|
export * from './Radio';
|
|
41
35
|
export * from './RawTable';
|
|
@@ -52,7 +46,6 @@ export * from './Tag';
|
|
|
52
46
|
export * from './TextButton';
|
|
53
47
|
export * from './TextInput';
|
|
54
48
|
export * from './Textarea';
|
|
55
|
-
export * from './ThemeProvider';
|
|
56
49
|
export * from './TimePicker';
|
|
57
50
|
export * from './Toggle';
|
|
58
51
|
export * from './Tooltip';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
|
|
@@ -1,20 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
prop?: TProp | undefined | ((state?: TProp | undefined) => TProp | undefined);
|
|
11
|
-
defaultProp?: TProp | undefined;
|
|
12
|
-
onChange?: (state?: TProp) => void;
|
|
13
|
-
}
|
|
14
|
-
type SetStateFn<TState> = (prevState: TState) => TState;
|
|
15
|
-
declare function useControllableState<TProp>({ prop, defaultProp, onChange, }: UseControllableStateParams<TProp>): [
|
|
16
|
-
TProp | undefined,
|
|
17
|
-
(nextState: TProp | undefined | SetStateFn<TProp | undefined>) => void
|
|
18
|
-
];
|
|
19
|
-
export { useControllableState };
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type UseControllableStateParams<T> = {
|
|
3
|
+
prop?: T | undefined;
|
|
4
|
+
defaultProp?: T | undefined;
|
|
5
|
+
onChange?: (state: T) => void;
|
|
6
|
+
};
|
|
7
|
+
declare function useControllableState<T>({ prop, defaultProp, onChange }: UseControllableStateParams<T>): readonly [T | undefined, React.Dispatch<React.SetStateAction<T | undefined>>];
|
|
8
|
+
declare function useUncontrolledState<T>({ defaultProp, onChange }: Omit<UseControllableStateParams<T>, 'prop'>): [T | undefined, React.Dispatch<React.SetStateAction<T | undefined>>];
|
|
9
|
+
export { useControllableState, useUncontrolledState as _internaluseUncontrolledState };
|
|
20
10
|
//# sourceMappingURL=useControllableState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useControllableState.d.ts","sourceRoot":"","sources":["../../src/hooks/useControllableState.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useControllableState.d.ts","sourceRoot":"","sources":["../../src/hooks/useControllableState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,0BAA0B,CAAC,CAAC,IAAI;IACnC,IAAI,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;CAC/B,CAAC;AAIF,iBAAS,oBAAoB,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,QAAmB,EAAE,EAAE,0BAA0B,CAAC,CAAC,CAAC,iFAoBzG;AAED,iBAAS,oBAAoB,CAAC,CAAC,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,wEActG;AAED,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,IAAI,6BAA6B,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useId.d.ts","sourceRoot":"","sources":["../../src/hooks/useId.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useId.d.ts","sourceRoot":"","sources":["../../src/hooks/useId.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,KAAK,eAAgB,MAAM,GAAG,MAAM,GAAG,SAAS,KAAG,MAS/D,CAAC"}
|
|
@@ -3,6 +3,9 @@ interface UseIntersectionOptions {
|
|
|
3
3
|
selectorToWatch: string;
|
|
4
4
|
skipWhen?: boolean;
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* TODO: refactor this before v2 stable.
|
|
8
|
+
*/
|
|
6
9
|
export declare const useIntersection: (scrollableAreaRef: React.MutableRefObject<HTMLElement | null>, callback: (entry: IntersectionObserverEntry) => void, { selectorToWatch, skipWhen }: UseIntersectionOptions) => void;
|
|
7
10
|
export {};
|
|
8
11
|
//# sourceMappingURL=useIntersection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIntersection.d.ts","sourceRoot":"","sources":["../../src/hooks/useIntersection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,UAAU,sBAAsB;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,sBACP,MAAM,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,YACnD,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,iCACb,sBAAsB,SAqC9D,CAAC"}
|
|
1
|
+
{"version":3,"file":"useIntersection.d.ts","sourceRoot":"","sources":["../../src/hooks/useIntersection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,UAAU,sBAAsB;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AAEH,eAAO,MAAM,eAAe,sBACP,MAAM,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,YACnD,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,iCACb,sBAAsB,SAqC9D,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
export declare const isSSR: () => boolean;
|
|
3
|
+
/**
|
|
4
|
+
* Use this to read layout from the DOM and synchronously
|
|
5
|
+
* re-render if the isSSR returns true. Updates scheduled
|
|
6
|
+
* inside `useIsomorphicLayoutEffect` will be flushed
|
|
7
|
+
* synchronously in the browser, before the browser has
|
|
8
|
+
* a chance to paint.
|
|
9
|
+
*/
|
|
10
|
+
declare const useIsomorphicLayoutEffect: typeof useEffect;
|
|
11
|
+
export { useIsomorphicLayoutEffect };
|
|
12
|
+
//# sourceMappingURL=useIsomorphicLayoutEffect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsomorphicLayoutEffect.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsomorphicLayoutEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAmB,MAAM,OAAO,CAAC;AAKnD,eAAO,MAAM,KAAK,eACoG,CAAC;AAEvH;;;;;;GAMG;AACH,QAAA,MAAM,yBAAyB,kBAAwC,CAAC;AAExE,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type UseMeasureRect = Pick<DOMRectReadOnly, 'x' | 'y' | 'top' | 'left' | 'right' | 'bottom' | 'height' | 'width'>;
|
|
2
|
+
type UseMeasureRef<E extends Element = Element> = (element: E) => void;
|
|
3
|
+
type UseMeasureResult<E extends Element = Element> = [UseMeasureRef<E>, UseMeasureRect];
|
|
4
|
+
declare function useMeasure<E extends Element = Element>(): UseMeasureResult<E>;
|
|
5
|
+
export { useMeasure };
|
|
6
|
+
export type { UseMeasureRect, UseMeasureRef, UseMeasureResult };
|
|
7
|
+
//# sourceMappingURL=useMeasure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMeasure.d.ts","sourceRoot":"","sources":["../../src/hooks/useMeasure.ts"],"names":[],"mappings":"AAIA,KAAK,cAAc,GAAG,IAAI,CAAC,eAAe,EAAE,GAAG,GAAG,GAAG,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAC;AAClH,KAAK,aAAa,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,IAAI,CAAC;AACvE,KAAK,gBAAgB,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;AAaxF,iBAAS,UAAU,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,KAAK,gBAAgB,CAAC,CAAC,CAAC,CAwBtE;AAED,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
export * from './components';
|
|
2
|
-
export * from './DesignSystemProvider';
|
|
3
2
|
export * from './themes';
|
|
4
3
|
export * from './hooks/useComposeRefs';
|
|
4
|
+
export * from './hooks/useControllableState';
|
|
5
5
|
export * from './hooks/useDateFormatter';
|
|
6
|
+
export * from './hooks/useId';
|
|
7
|
+
export * from './hooks/useIsomorphicLayoutEffect';
|
|
8
|
+
export * from './hooks/useMeasure';
|
|
6
9
|
export * from './utilities/AccessibleIcon';
|
|
10
|
+
export * from './utilities/DesignSystemProvider';
|
|
11
|
+
export * from './utilities/DismissibleLayer';
|
|
12
|
+
export * from './utilities/FocusTrap';
|
|
13
|
+
export * from './utilities/KeyboardNavigable';
|
|
14
|
+
export * from './utilities/Portal';
|
|
15
|
+
export * from './utilities/ScrollArea';
|
|
7
16
|
export * from './utilities/VisuallyHidden';
|
|
8
17
|
export { useFilter, useCollator, type Filter, useCallbackRef, composeEventHandlers } from '@strapi/ui-primitives';
|
|
9
18
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AAKzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,mCAAmC,CAAC;AAClD,cAAc,oBAAoB,CAAC;AAKnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAK3C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,MAAM,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC"}
|