@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
|
@@ -1,62 +1,47 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
type
|
|
6
|
-
|
|
7
|
-
interface AccordionProps {
|
|
8
|
-
children: React.ReactNode;
|
|
2
|
+
import * as RadixAccordion from '@radix-ui/react-accordion';
|
|
3
|
+
import { FlexProps } from '../Flex';
|
|
4
|
+
type Size = 'S' | 'M';
|
|
5
|
+
type Variant = 'primary' | 'secondary';
|
|
6
|
+
interface ContextValue {
|
|
9
7
|
/**
|
|
10
|
-
*
|
|
8
|
+
* @default "S"
|
|
11
9
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
* If the `Accordion` is as child of an `AccordionGroup`, this prop will be set to `false` automatically.
|
|
24
|
-
* The error message of the `AccordionGroup` will be shown below the group instead of the Accordion itself.
|
|
25
|
-
*/
|
|
26
|
-
hasErrorMessage?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* The id of the component.
|
|
29
|
-
*/
|
|
30
|
-
id?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The callback invoked after a click event on the `AccordionToggle`.
|
|
33
|
-
*/
|
|
34
|
-
onToggle?: () => void;
|
|
35
|
-
/**
|
|
36
|
-
* Shadow name (see `theme.shadows`)
|
|
37
|
-
*/
|
|
38
|
-
shadow?: keyof DefaultTheme['shadows'];
|
|
39
|
-
/**
|
|
40
|
-
* @preserve
|
|
41
|
-
* @deprecated use `onToggle` instead
|
|
42
|
-
* The callback invoked after a click event on the `AccordionToggle`.
|
|
43
|
-
*/
|
|
44
|
-
toggle?: () => void;
|
|
10
|
+
size: Size;
|
|
11
|
+
}
|
|
12
|
+
type Element = HTMLDivElement;
|
|
13
|
+
type Props = Omit<RadixAccordion.AccordionSingleProps, 'type'> & Partial<ContextValue>;
|
|
14
|
+
declare const Root: React.ForwardRefExoticComponent<Omit<RadixAccordion.AccordionSingleProps, "type"> & Partial<ContextValue> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
type ItemElement = HTMLDivElement;
|
|
16
|
+
interface ItemProps extends RadixAccordion.AccordionItemProps {
|
|
17
|
+
}
|
|
18
|
+
declare const Item: React.ForwardRefExoticComponent<ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
type TriggerElement = HTMLButtonElement;
|
|
20
|
+
interface TriggerProps extends Omit<RadixAccordion.AccordionTriggerProps, 'asChild'> {
|
|
45
21
|
/**
|
|
46
|
-
*
|
|
22
|
+
* @default "left"
|
|
47
23
|
*/
|
|
48
|
-
|
|
24
|
+
caretPosition?: 'left' | 'right';
|
|
25
|
+
description?: string;
|
|
26
|
+
icon?: React.ElementType;
|
|
27
|
+
}
|
|
28
|
+
declare const Trigger: React.ForwardRefExoticComponent<TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
29
|
+
type ActionsElement = HTMLSpanElement;
|
|
30
|
+
interface ActionsProps extends FlexProps<'span'> {
|
|
31
|
+
}
|
|
32
|
+
declare const Actions: React.ForwardRefExoticComponent<Omit<ActionsProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
33
|
+
type HeaderElement = HTMLHeadingElement;
|
|
34
|
+
interface HeaderProps extends Omit<RadixAccordion.AccordionHeaderProps, 'asChild'> {
|
|
49
35
|
/**
|
|
50
|
-
*
|
|
51
|
-
* This is useful when you want to display a list and alternate the colors of the accordions.
|
|
36
|
+
* @default "primary"
|
|
52
37
|
*/
|
|
53
|
-
variant?:
|
|
38
|
+
variant?: Variant;
|
|
39
|
+
}
|
|
40
|
+
declare const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
41
|
+
type ContentElement = HTMLDivElement;
|
|
42
|
+
interface ContentProps extends RadixAccordion.AccordionContentProps {
|
|
54
43
|
}
|
|
55
|
-
declare const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
ref?: ((instance: unknown) => void) | React.RefObject<unknown> | null | undefined;
|
|
59
|
-
}, PropsToTransientProps<AccordionWrapperProps>>> & Omit<BoxComponent<"div">, keyof React.Component<any, {}, any>>;
|
|
60
|
-
export { Accordion, AccordionWrapper };
|
|
61
|
-
export type { AccordionProps, AccordionSize, AccordionVariant };
|
|
44
|
+
declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
export { Root, Item, Header, Trigger, Actions, Content };
|
|
46
|
+
export type { ContextValue, Element, Props, ItemElement, ItemProps, HeaderElement, HeaderProps, TriggerElement, TriggerProps, ActionsElement, ActionsProps, ContentElement, ContentProps, Size, Variant, };
|
|
62
47
|
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,cAAc,MAAM,2BAA2B,CAAC;AAM5D,OAAO,EAAuB,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzD,KAAK,IAAI,GAAG,GAAG,GAAG,GAAG,CAAC;AACtB,KAAK,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;AAMvC,UAAU,YAAY;IACpB;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;CACZ;AAID,KAAK,OAAO,GAAG,cAAc,CAAC;AAE9B,KAAK,KAAK,GAAG,IAAI,CAAC,cAAc,CAAC,oBAAoB,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAEvF,QAAA,MAAM,IAAI,kJAMR,CAAC;AAqBH,KAAK,WAAW,GAAG,cAAc,CAAC;AAElC,UAAU,SAAU,SAAQ,cAAc,CAAC,kBAAkB;CAAG;AAEhE,QAAA,MAAM,IAAI,kFAIR,CAAC;AA+BH,KAAK,cAAc,GAAG,iBAAiB,CAAC;AAExC,UAAU,YAAa,SAAQ,IAAI,CAAC,cAAc,CAAC,qBAAqB,EAAE,SAAS,CAAC;IAClF;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC1B;AAED,QAAA,MAAM,OAAO,wFAoCZ,CAAC;AA8DF,KAAK,cAAc,GAAG,eAAe,CAAC;AAEtC,UAAU,YAAa,SAAQ,SAAS,CAAC,MAAM,CAAC;CAAG;AAEnD,QAAA,MAAM,OAAO,mGAIX,CAAC;AAyBH,KAAK,aAAa,GAAG,kBAAkB,CAAC;AAExC,UAAU,WAAY,SAAQ,IAAI,CAAC,cAAc,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAChF;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,MAAM,wFAEV,CAAC;AA4CH,KAAK,cAAc,GAAG,cAAc,CAAC;AAErC,UAAU,YAAa,SAAQ,cAAc,CAAC,qBAAqB;CAAG;AAEtE,QAAA,MAAM,OAAO,qFAEX,CAAC;AAoCH,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;AACzD,YAAY,EACV,YAAY,EACZ,OAAO,EACP,KAAK,EACL,WAAW,EACX,SAAS,EACT,aAAa,EACb,WAAW,EACX,cAAc,EACd,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,IAAI,EACJ,OAAO,GACR,CAAC"}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type { AccordionProps, AccordionSize, AccordionVariant } from './Accordion';
|
|
3
|
-
export * from './AccordionContent';
|
|
4
|
-
export { AccordionToggle } from './AccordionToggle';
|
|
5
|
-
export type { AccordionToggleProps } from './AccordionToggle';
|
|
6
|
-
export * from './AccordionGroup';
|
|
1
|
+
export * as Accordion from './Accordion';
|
|
7
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC"}
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import * as Avatar from '@radix-ui/react-avatar';
|
|
2
3
|
import { FlexProps } from '../Flex';
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
type ItemElement = HTMLSpanElement;
|
|
5
|
+
interface ItemProps extends Avatar.AvatarProps, Pick<Avatar.AvatarImageProps, 'onLoadingStatusChange' | 'src' | 'alt'> {
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
+
* @default 600
|
|
8
|
+
* @description Useful for delaying rendering so it only
|
|
9
|
+
* appears for those with slower connections.
|
|
7
10
|
*/
|
|
8
|
-
|
|
11
|
+
delayMs?: Avatar.AvatarFallbackProps['delayMs'];
|
|
12
|
+
fallback: React.ReactNode;
|
|
9
13
|
/**
|
|
10
|
-
*
|
|
14
|
+
* @default false
|
|
15
|
+
* @description Useful for showing a preview of the image
|
|
16
|
+
* on hover in a tooltip.
|
|
11
17
|
*/
|
|
12
|
-
preview?: boolean
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
preview?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const Item: React.ForwardRefExoticComponent<ItemProps & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
type GroupElement = HTMLDivElement;
|
|
22
|
+
interface GroupProps extends Omit<FlexProps, 'tag'> {
|
|
17
23
|
}
|
|
18
|
-
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
export declare const Initials: ({ children, background, textColor }: InitialsProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare const Group: React.ForwardRefExoticComponent<Omit<GroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export { Item, Group };
|
|
26
|
+
export type { ItemElement, ItemProps, GroupElement, GroupProps };
|
|
23
27
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAOjD,OAAO,EAAuB,SAAS,EAAE,MAAM,SAAS,CAAC;AAgBzD,KAAK,WAAW,GAAG,eAAe,CAAC;AAEnC,UAAU,SAAU,SAAQ,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,uBAAuB,GAAG,KAAK,GAAG,KAAK,CAAC;IACpH;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAChD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,IAAI,mFA+CT,CAAC;AA6DF,KAAK,YAAY,GAAG,cAAc,CAAC;AAEnC,UAAU,UAAW,SAAQ,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;CAAG;AAEtD,QAAA,MAAM,KAAK,gGAET,CAAC;AAQH,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AACvB,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { type DefaultTheme } from 'styled-components';
|
|
2
2
|
import { FlexProps } from '../Flex';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type BadgeSize = 'S' | 'M';
|
|
4
|
+
interface BadgeProps extends FlexProps {
|
|
5
5
|
/**
|
|
6
6
|
* If `true`, it changes the `backgroundColor` to `primary200` and the `textColor` to `primary600`
|
|
7
7
|
*/
|
|
8
8
|
active?: boolean;
|
|
9
9
|
backgroundColor?: keyof DefaultTheme['colors'];
|
|
10
|
+
/**
|
|
11
|
+
* @default 'M'
|
|
12
|
+
*/
|
|
10
13
|
size?: BadgeSize;
|
|
11
14
|
textColor?: keyof DefaultTheme['colors'];
|
|
12
15
|
}
|
|
13
|
-
|
|
16
|
+
declare const Badge: ({ active, size, textColor, backgroundColor, children, minWidth, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export { Badge };
|
|
18
|
+
export type { BadgeProps, BadgeSize };
|
|
14
19
|
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEnE,OAAO,EAAuB,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzD,KAAK,SAAS,GAAG,GAAG,GAAG,GAAG,CAAC;AAE3B,UAAU,UAAW,SAAQ,SAAS;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC/C;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,YAAY,CAAC,QAAQ,CAAC,CAAC;CAC1C;AAED,QAAA,MAAM,KAAK,+EAQR,UAAU,4CAoBZ,CAAC;AAmBF,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { type CSSProperties, type DefaultTheme } from 'styled-components';
|
|
3
3
|
import { ResponsiveValue } from '../../helpers/handleResponsiveValues';
|
|
4
4
|
import { DefaultThemeOrCSSProp, PolymorphicComponentPropsWithRef } from '../../types';
|
|
5
|
-
interface TransientBoxProps extends Pick<CSSProperties, 'alignItems' | 'justifyContent' | 'flexDirection' | 'gap' | 'flexWrap' | 'pointerEvents' | 'display' | 'position' | '
|
|
5
|
+
interface TransientBoxProps extends Pick<CSSProperties, 'alignItems' | 'justifyContent' | 'flexDirection' | 'gap' | 'flexWrap' | 'pointerEvents' | 'display' | 'position' | 'overflow' | 'cursor' | 'transition' | 'transform' | 'animation' | 'textAlign' | 'textTransform'> {
|
|
6
6
|
/**
|
|
7
7
|
* Background color
|
|
8
8
|
*/
|
|
@@ -18,7 +18,7 @@ interface TransientBoxProps extends Pick<CSSProperties, 'alignItems' | 'justifyC
|
|
|
18
18
|
/**
|
|
19
19
|
* Text color
|
|
20
20
|
*/
|
|
21
|
-
color?:
|
|
21
|
+
color?: DefaultThemeOrCSSProp<'colors', 'color'>;
|
|
22
22
|
/**
|
|
23
23
|
* Flex
|
|
24
24
|
*/
|
|
@@ -90,13 +90,13 @@ interface TransientBoxProps extends Pick<CSSProperties, 'alignItems' | 'justifyC
|
|
|
90
90
|
borderRadius?: CSSProperties['borderRadius'];
|
|
91
91
|
borderStyle?: CSSProperties['borderStyle'];
|
|
92
92
|
borderWidth?: CSSProperties['borderWidth'];
|
|
93
|
+
zIndex?: DefaultThemeOrCSSProp<'zIndicies', 'zIndex'>;
|
|
93
94
|
}
|
|
94
|
-
|
|
95
|
+
type BoxProps<C extends React.ElementType = 'div'> = PolymorphicComponentPropsWithRef<C, TransientBoxProps & {
|
|
95
96
|
children?: React.ReactNode;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
type BoxComponent<C extends React.ElementType = 'div'> = typeof Box<C>;
|
|
97
|
+
}>;
|
|
98
|
+
declare const Box: BoxComponent<"div">;
|
|
99
|
+
type BoxComponent<C extends React.ElementType = 'div'> = <T extends React.ElementType = C>(props: BoxProps<T>) => JSX.Element;
|
|
100
100
|
export { Box };
|
|
101
101
|
export type { BoxComponent, BoxProps, TransientBoxProps };
|
|
102
102
|
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAU,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAElF,OAAO,EAA0B,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAE/F,OAAO,EACL,qBAAqB,EACrB,gCAAgC,EAGjC,MAAM,aAAa,CAAC;AAGrB,UAAU,iBACR,SAAQ,IAAI,CACV,aAAa,EACX,YAAY,GACZ,gBAAgB,GAChB,eAAe,GACf,KAAK,GACL,UAAU,GACV,eAAe,GACf,SAAS,GACT,UAAU,GACV,
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BaseButtonProps } from '../BaseButton';
|
|
3
|
-
import {
|
|
3
|
+
import { ButtonVariant, ButtonSize } from './constants';
|
|
4
4
|
type ButtonProps<C extends React.ElementType = 'button'> = BaseButtonProps<C> & {
|
|
5
5
|
endIcon?: React.ReactNode;
|
|
6
6
|
fullWidth?: boolean;
|
|
7
7
|
loading?: boolean;
|
|
8
8
|
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
-
size?:
|
|
9
|
+
size?: ButtonSize;
|
|
10
10
|
startIcon?: React.ReactNode;
|
|
11
|
-
variant?:
|
|
11
|
+
variant?: ButtonVariant;
|
|
12
12
|
};
|
|
13
13
|
declare const Button: <C extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "button">(props: React.PropsWithoutRef<ButtonProps<C>> & React.RefAttributes<unknown>) => React.ReactNode;
|
|
14
14
|
type ButtonComponent<C extends React.ElementType = 'button'> = (props: ButtonProps<C>) => React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAmC,eAAe,EAAE,MAAM,eAAe,CAAC;AAKjF,OAAO,EAAgB,aAAa,EAAE,UAAU,EAAW,MAAM,aAAa,CAAC;AAG/E,KAAK,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,IAAI,eAAe,CAAC,CAAC,CAAC,GAAG;IAC9E,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,MAAM,kLAqDX,CAAC;AAEF,KAAK,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;AAmD1G,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -9,6 +9,6 @@ export declare const GHOST = "ghost";
|
|
|
9
9
|
export declare const LIGHT_VARIANTS: readonly ["success-light", "danger-light"];
|
|
10
10
|
export declare const VARIANTS: readonly ["default", "tertiary", "secondary", "danger", "success", "ghost", "success-light", "danger-light"];
|
|
11
11
|
export declare const BUTTON_SIZES: readonly ["S", "M", "L"];
|
|
12
|
-
export type
|
|
13
|
-
export type
|
|
12
|
+
export type ButtonVariant = (typeof VARIANTS)[number];
|
|
13
|
+
export type ButtonSize = (typeof BUTTON_SIZES)[number];
|
|
14
14
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/Button/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,QAAQ,aAAa,CAAC;AACnC,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,KAAK,UAAU,CAAC;AAE7B,eAAO,MAAM,cAAc,4CAAyC,CAAC;AACrE,eAAO,MAAM,QAAQ,8GAAqF,CAAC;AAC3G,eAAO,MAAM,YAAY,0BAA2B,CAAC;AAErD,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/Button/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,QAAQ,aAAa,CAAC;AACnC,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,KAAK,UAAU,CAAC;AAE7B,eAAO,MAAM,cAAc,4CAAyC,CAAC;AACrE,eAAO,MAAM,QAAQ,8GAAqF,CAAC;AAC3G,eAAO,MAAM,YAAY,0BAA2B,CAAC;AAErD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AACtD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { DefaultTheme } from 'styled-components';
|
|
2
|
-
import {
|
|
3
|
-
export declare const getVariantColorName: (variant:
|
|
2
|
+
import { type ButtonVariant } from './constants';
|
|
3
|
+
export declare const getVariantColorName: (variant: ButtonVariant) => 'success' | 'danger' | 'neutral' | 'primary';
|
|
4
4
|
export declare const getDisabledStyle: ({ theme }: {
|
|
5
5
|
theme: DefaultTheme;
|
|
6
6
|
}) => import("styled-components").RuleSet<object>;
|
|
7
7
|
export declare const getHoverStyle: ({ theme, $variant }: {
|
|
8
8
|
theme: DefaultTheme;
|
|
9
|
-
$variant:
|
|
9
|
+
$variant: ButtonVariant;
|
|
10
10
|
}) => import("styled-components").RuleSet<object>;
|
|
11
11
|
export declare const getActiveStyle: ({ theme, $variant }: {
|
|
12
12
|
theme: DefaultTheme;
|
|
13
|
-
$variant:
|
|
13
|
+
$variant: ButtonVariant;
|
|
14
14
|
}) => import("styled-components").RuleSet<object>;
|
|
15
15
|
export declare const getVariantStyle: ({ theme, $variant }: {
|
|
16
16
|
theme: DefaultTheme;
|
|
17
|
-
$variant:
|
|
17
|
+
$variant: ButtonVariant;
|
|
18
18
|
}) => import("styled-components").RuleSet<object>;
|
|
19
19
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Button/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAO,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAWL,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Button/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAO,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAWL,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,mBAAmB,YAAa,aAAa,KAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAa/F,CAAC;AAEF,eAAO,MAAM,gBAAgB,cAAe;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,gDAMlE,CAAC;AAEF,eAAO,MAAM,aAAa,wBAAyB;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,aAAa,CAAA;CAAE,gDA6BlG,CAAC;AAEF,eAAO,MAAM,cAAc,wBAAyB;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,aAAa,CAAA;CAAE,gDAkBnG,CAAC;AAEF,eAAO,MAAM,eAAe,wBAAyB;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,aAAa,CAAA;CAAE,gDA2CpG,CAAC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
type
|
|
2
|
+
type CardAssetSize = 'S' | 'M';
|
|
3
3
|
interface CardAssetProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* @default 'M'
|
|
6
|
+
*/
|
|
7
|
+
size?: CardAssetSize;
|
|
5
8
|
children?: React.ReactNode;
|
|
6
9
|
}
|
|
7
10
|
declare const CardAsset: ({ size, children, ...props }: CardAssetProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export { CardAsset };
|
|
9
|
-
export type { CardAssetProps };
|
|
12
|
+
export type { CardAssetProps, CardAssetSize };
|
|
10
13
|
//# sourceMappingURL=CardAsset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardAsset.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardAsset.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CardAsset.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardAsset.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,aAAa,GAAG,GAAG,GAAG,GAAG,CAAC;AAE/B,UAAU,cAAe,SAAQ,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC;IACxE;;OAEG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,SAAS,iCAAwC,cAAc,4CAIpE,CAAC;AAwBF,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { CheckboxProps } from '../Checkbox';
|
|
2
|
+
interface CardCheckboxProps extends CheckboxProps {
|
|
3
|
+
}
|
|
4
|
+
declare const CardCheckbox: (props: CardCheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { CardCheckbox };
|
|
6
|
+
export type { CardCheckboxProps };
|
|
4
7
|
//# sourceMappingURL=CardCheckbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardCheckbox.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CardCheckbox.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,aAAa,EAAE,MAAM,aAAa,CAAC;AAKtD,UAAU,iBAAkB,SAAQ,aAAa;CAAG;AAEpD,QAAA,MAAM,YAAY,UAAW,iBAAiB,4CAQ7C,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TypographyProps } from '../Typography';
|
|
2
2
|
export type CardTitleProps = TypographyProps;
|
|
3
3
|
export declare const CardTitle: (props: CardTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export type CardSubtitleProps = Omit<TypographyProps
|
|
4
|
+
export type CardSubtitleProps = Omit<TypographyProps<'div'>, 'textColor' | 'as'>;
|
|
5
5
|
export declare const CardSubtitle: (props: CardSubtitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=CardTitle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardTitle.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAI5D,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC;AAE7C,eAAO,MAAM,SAAS,UAAW,cAAc,4CAI9C,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,eAAe,EAAE,WAAW,GAAG,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"CardTitle.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAI5D,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC;AAE7C,eAAO,MAAM,SAAS,UAAW,cAAc,4CAI9C,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC,CAAC;AAEjF,eAAO,MAAM,YAAY,UAAW,iBAAiB,4CAEpD,CAAC"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { FlexProps } from '../Flex';
|
|
2
2
|
export interface CarouselActionsProps extends FlexProps {
|
|
3
3
|
horizontal?: boolean;
|
|
4
|
-
/**
|
|
5
|
-
* @preserve
|
|
6
|
-
* @deprecated use `gap` instead
|
|
7
|
-
*/
|
|
8
|
-
spacing?: FlexProps['gap'];
|
|
9
4
|
}
|
|
10
|
-
export declare const CarouselActions: ({ horizontal,
|
|
5
|
+
export declare const CarouselActions: ({ horizontal, ...props }: CarouselActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
6
|
//# sourceMappingURL=CarouselActions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselActions.d.ts","sourceRoot":"","sources":["../../../src/components/CarouselInput/CarouselActions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,oBAAqB,SAAQ,SAAS;IACrD,UAAU,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CarouselActions.d.ts","sourceRoot":"","sources":["../../../src/components/CarouselInput/CarouselActions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,oBAAqB,SAAQ,SAAS;IACrD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,6BAAqC,oBAAoB,4CAUpF,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
3
|
-
interface
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
disabled?: boolean;
|
|
2
|
+
import * as Checkbox from '@radix-ui/react-checkbox';
|
|
3
|
+
interface CheckboxElProps extends Checkbox.CheckboxProps {
|
|
6
4
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
type CheckboxElement = HTMLButtonElement;
|
|
6
|
+
interface CheckboxProps extends CheckboxElProps {
|
|
7
|
+
}
|
|
8
|
+
declare const CheckboxImpl: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
export { CheckboxImpl as Checkbox };
|
|
10
|
+
export type { CheckboxProps, CheckboxElProps, CheckboxElement };
|
|
10
11
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,QAAQ,MAAM,0BAA0B,CAAC;AAkCrD,UAAU,eAAgB,SAAQ,QAAQ,CAAC,aAAa;CAAG;AAE3D,KAAK,eAAe,GAAG,iBAAiB,CAAC;AA0EzC,UAAU,aAAc,SAAQ,eAAe;CAAG;AAElD,QAAA,MAAM,YAAY,yFAehB,CAAC;AAEH,OAAO,EAAE,YAAY,IAAI,QAAQ,EAAE,CAAC;AACpC,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,40 +1,27 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Combobox as ComboboxPrimitive } from '@strapi/ui-primitives';
|
|
3
3
|
import { Field } from '../Field';
|
|
4
|
-
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
className?: string;
|
|
4
|
+
interface ComboboxProps extends Pick<ComboboxPrimitive.RootProps, 'allowCustomValue' | 'autocomplete' | 'children' | 'disabled' | 'defaultTextValue' | 'defaultOpen' | 'defaultFilterValue' | 'filterValue' | 'isPrintableCharacter' | 'open' | 'onOpenChange' | 'onFilterValueChange' | 'onTextValueChange' | 'required' | 'textValue' | 'value'>, Pick<Field.InputProps, 'hasError' | 'name' | 'id'>, Omit<ComboboxPrimitive.TextInputProps, 'required' | 'disabled' | 'value' | 'onChange' | 'size'> {
|
|
7
5
|
clearLabel?: string;
|
|
8
6
|
creatable?: boolean;
|
|
9
|
-
createMessage?: (
|
|
10
|
-
defaultFilterValue?: string;
|
|
11
|
-
defaultTextValue?: string;
|
|
12
|
-
defaultOpen?: boolean;
|
|
13
|
-
open?: boolean;
|
|
14
|
-
filterValue?: string;
|
|
7
|
+
createMessage?: (value: string) => string;
|
|
15
8
|
hasMoreItems?: boolean;
|
|
16
9
|
loading?: boolean;
|
|
17
10
|
loadingMessage?: string;
|
|
18
|
-
noOptionsMessage?: (
|
|
19
|
-
onChange?:
|
|
20
|
-
onClear?:
|
|
21
|
-
onCreateOption?: (
|
|
22
|
-
onFilterValueChange?: (filterValue?: string) => void;
|
|
23
|
-
onInputChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
11
|
+
noOptionsMessage?: (value: string) => string;
|
|
12
|
+
onChange?: ComboboxPrimitive.RootProps['onValueChange'];
|
|
13
|
+
onClear?: React.MouseEventHandler<HTMLButtonElement | HTMLDivElement>;
|
|
14
|
+
onCreateOption?: (value: string) => void;
|
|
24
15
|
onLoadMore?: (entry: IntersectionObserverEntry) => void;
|
|
25
|
-
|
|
26
|
-
onTextValueChange?: (textValue?: string) => void;
|
|
27
|
-
placeholder?: string;
|
|
28
|
-
size?: 'S' | 'M';
|
|
16
|
+
onInputChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
29
17
|
startIcon?: React.ReactNode;
|
|
30
18
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
19
|
+
type ComboboxInputElement = HTMLInputElement;
|
|
20
|
+
declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
21
|
+
interface ComboboxOptionProps extends ComboboxPrimitive.ItemProps {
|
|
34
22
|
children: React.ReactNode;
|
|
35
23
|
}
|
|
36
|
-
|
|
37
|
-
export
|
|
38
|
-
|
|
39
|
-
}>>;
|
|
24
|
+
declare const Option: React.ForwardRefExoticComponent<ComboboxOptionProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export { Combobox, Option as ComboboxOption };
|
|
26
|
+
export type { ComboboxInputElement, ComboboxOptionProps, ComboboxProps };
|
|
40
27
|
//# sourceMappingURL=Combobox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAWtE,OAAO,EAAE,KAAK,EAAY,MAAM,UAAU,CAAC;AAS3C,UAAU,aACR,SAAQ,IAAI,CACR,iBAAiB,CAAC,SAAS,EACzB,kBAAkB,GAClB,cAAc,GACd,UAAU,GACV,UAAU,GACV,kBAAkB,GAClB,aAAa,GACb,oBAAoB,GACpB,aAAa,GACb,sBAAsB,GACtB,MAAM,GACN,cAAc,GACd,qBAAqB,GACrB,mBAAmB,GACnB,UAAU,GACV,WAAW,GACX,OAAO,CACV,EACD,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC,EAClD,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;IACjG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC7C,QAAQ,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IACxD,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,GAAG,cAAc,CAAC,CAAC;IACtE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACxD,aAAa,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IAC3D,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,KAAK,oBAAoB,GAAG,gBAAgB,CAAC;AAE7C,QAAA,MAAM,QAAQ,wFAuOb,CAAC;AAwGF,UAAU,mBAAoB,SAAQ,iBAAiB,CAAC,SAAS;IAC/D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,MAAM,4FAYX,CAAC;AA8BF,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,cAAc,EAAE,CAAC;AAC9C,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -25,7 +25,7 @@ interface DatePickerContextValue {
|
|
|
25
25
|
trigger: DatePickerTriggerElement | null;
|
|
26
26
|
value?: CalendarDate;
|
|
27
27
|
}
|
|
28
|
-
interface DatePickerProps extends Pick<Partial<DatePickerContextValue>, 'disabled' | 'locale'>, Pick<CalendarProps, 'monthSelectLabel' | 'yearSelectLabel'>,
|
|
28
|
+
interface DatePickerProps extends Pick<Partial<DatePickerContextValue>, 'disabled' | 'locale'>, Pick<CalendarProps, 'monthSelectLabel' | 'yearSelectLabel'>, Omit<TextInputProps, 'onChange' | 'value' | 'ref'> {
|
|
29
29
|
calendarLabel?: string;
|
|
30
30
|
className?: string;
|
|
31
31
|
minDate?: Date;
|
|
@@ -33,33 +33,17 @@ interface DatePickerProps extends Pick<Partial<DatePickerContextValue>, 'disable
|
|
|
33
33
|
/**
|
|
34
34
|
* @default Now
|
|
35
35
|
*/
|
|
36
|
-
initialDate?: Date
|
|
36
|
+
initialDate?: Date;
|
|
37
37
|
/**
|
|
38
38
|
* onChange function, passed from a parent component, it takes the actual date value and it is used inside the different handlers related to the change event for the DatePicker and the TimePicker and also the clear event for the TimePicker
|
|
39
39
|
*/
|
|
40
40
|
onChange?: (date: Date | undefined) => void;
|
|
41
|
-
selectedDate?: Date | string;
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated This is no longer used.
|
|
44
|
-
*/
|
|
45
|
-
ariaLabel?: string;
|
|
46
|
-
/**
|
|
47
|
-
* @preserve
|
|
48
|
-
* @deprecated This is no longer used.
|
|
49
|
-
*/
|
|
50
|
-
selectedDateLabel?: (date: string) => string;
|
|
51
41
|
onClear?: (e: React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLDivElement>) => void;
|
|
52
42
|
clearLabel?: string;
|
|
43
|
+
value?: Date;
|
|
53
44
|
}
|
|
54
45
|
declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLInputElement>>;
|
|
55
46
|
type DatePickerTriggerElement = HTMLDivElement;
|
|
56
|
-
interface TriggerProps extends FlexProps {
|
|
57
|
-
hasError?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* @default "M"
|
|
60
|
-
*/
|
|
61
|
-
size?: 'S' | 'M';
|
|
62
|
-
}
|
|
63
47
|
type DatePickerTextInputElement = HTMLInputElement;
|
|
64
48
|
interface TextInputProps extends React.ComponentPropsWithRef<'input'>, Pick<Field.InputProps, 'hasError'> {
|
|
65
49
|
}
|