@strapi/design-system 2.0.0-beta.5 → 2.0.0-rc.7
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.map +1 -1
- package/dist/components/BaseLink/BaseLink.d.ts +2 -2
- package/dist/components/BaseLink/BaseLink.d.ts.map +1 -1
- package/dist/components/Box/Box.d.ts +1 -1
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +2 -4
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/Crumb.d.ts +2 -4
- package/dist/components/Breadcrumbs/Crumb.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/CrumbLink.d.ts +2 -4
- package/dist/components/Breadcrumbs/CrumbLink.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/CrumbSimpleMenu.d.ts +2 -5
- package/dist/components/Breadcrumbs/CrumbSimpleMenu.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +3 -2
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/utils.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +2 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/CardAction.d.ts +2 -1
- package/dist/components/Card/CardAction.d.ts.map +1 -1
- package/dist/components/Card/CardCheckbox.d.ts +2 -1
- package/dist/components/Card/CardCheckbox.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts +4 -0
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +5 -1
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/EmptyStateLayout/EmptyStateLayout.d.ts +2 -2
- package/dist/components/EmptyStateLayout/EmptyStateLayout.d.ts.map +1 -1
- package/dist/components/Field/Field.d.ts +4 -0
- package/dist/components/Field/Field.d.ts.map +1 -1
- package/dist/components/Grid/Grid.d.ts +2 -1
- package/dist/components/Grid/Grid.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.d.ts +7 -18
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/components/Link/Link.d.ts.map +1 -1
- package/dist/components/LinkButton/LinkButton.d.ts +4 -10
- package/dist/components/LinkButton/LinkButton.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +8 -11
- package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/components/RawTable/RawCell.d.ts +1 -1
- package/dist/components/RawTable/RawCell.d.ts.map +1 -1
- package/dist/components/RawTable/RawTable.d.ts +1 -1
- package/dist/components/RawTable/RawTable.d.ts.map +1 -1
- package/dist/components/Searchbar/Searchbar.d.ts.map +1 -1
- package/dist/components/Select/MultiSelect.d.ts +2 -2
- package/dist/components/Select/MultiSelect.d.ts.map +1 -1
- package/dist/components/Select/SelectParts.d.ts +6 -0
- 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/SimpleMenu.d.ts +1 -1
- package/dist/components/SimpleMenu/SimpleMenu.d.ts.map +1 -1
- package/dist/components/SubNav/SubNavLink.d.ts.map +1 -1
- package/dist/components/Switch/Switch.d.ts +4 -6
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Table/Cell.d.ts +2 -2
- package/dist/components/Table/Cell.d.ts.map +1 -1
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Tag/Tag.d.ts +5 -2
- package/dist/components/Tag/Tag.d.ts.map +1 -1
- package/dist/components/TextButton/TextButton.d.ts +8 -3
- package/dist/components/TextButton/TextButton.d.ts.map +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.js +706 -649
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +703 -648
- package/dist/index.mjs.map +1 -1
- package/dist/styles/global.d.ts.map +1 -1
- package/package.json +9 -7
- package/dist/components/BaseButton/BaseButton.d.ts +0 -10
- package/dist/components/BaseButton/BaseButton.d.ts.map +0 -1
- package/dist/components/BaseButton/index.d.ts +0 -2
- package/dist/components/BaseButton/index.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as SelectParts from './SelectParts';
|
|
3
|
-
type MultiSelectPropsWithoutLabel = Omit<SelectParts.MultiSelectProps, 'value' | 'multi'> & Pick<SelectParts.ContentProps, 'onCloseAutoFocus'> & Pick<SelectParts.TriggerProps, 'clearLabel' | 'onClear' | 'startIcon' | 'hasError' | 'id' | 'name'> & Pick<SelectParts.ValueProps, 'placeholder'> & {
|
|
3
|
+
type MultiSelectPropsWithoutLabel = Omit<SelectParts.MultiSelectProps, 'value' | 'multi'> & Pick<SelectParts.ContentProps, 'onCloseAutoFocus'> & Pick<SelectParts.TriggerProps, 'clearLabel' | 'onClear' | 'startIcon' | 'hasError' | 'id' | 'name' | 'size'> & Pick<SelectParts.ValueProps, 'placeholder'> & {
|
|
4
4
|
/**
|
|
5
5
|
* @default (value) => value.join(',')
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export type MultiSelectProps = MultiSelectPropsWithoutLabel & {
|
|
|
14
14
|
'aria-label'?: string;
|
|
15
15
|
'aria-describedby'?: string;
|
|
16
16
|
};
|
|
17
|
-
export declare const MultiSelect: React.ForwardRefExoticComponent<Omit<import("@strapi/ui-primitives/dist/components/Select/Select").MultiSelectProps, "value" | "multi"> & Pick<import("@strapi/ui-primitives/dist/components/Select/Select").SelectContentImplProps, "onCloseAutoFocus"> & Pick<SelectParts.TriggerProps, "id" | "name" | "startIcon" | "hasError" | "clearLabel" | "onClear"> & Pick<SelectParts.ValueProps, "placeholder"> & {
|
|
17
|
+
export declare const MultiSelect: React.ForwardRefExoticComponent<Omit<import("@strapi/ui-primitives/dist/components/Select/Select").MultiSelectProps, "value" | "multi"> & Pick<import("@strapi/ui-primitives/dist/components/Select/Select").SelectContentImplProps, "onCloseAutoFocus"> & Pick<SelectParts.TriggerProps, "id" | "name" | "size" | "startIcon" | "hasError" | "clearLabel" | "onClear"> & Pick<SelectParts.ValueProps, "placeholder"> & {
|
|
18
18
|
/**
|
|
19
19
|
* @default (value) => value.join(',')
|
|
20
20
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../src/components/Select/MultiSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAE7C,KAAK,4BAA4B,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,OAAO,GAAG,OAAO,CAAC,GACvF,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,kBAAkB,CAAC,GAClD,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,IAAI,GAAG,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../src/components/Select/MultiSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAE7C,KAAK,4BAA4B,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAA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KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,eAAO,MAAM,gBAAgB,8FAmB5B,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { Select } from '@strapi/ui-primitives';
|
|
|
3
3
|
import { BoxProps } from '../Box';
|
|
4
4
|
import { Field } from '../Field';
|
|
5
5
|
import { TypographyProps } from '../Typography';
|
|
6
|
+
type TriggerSize = 'S' | 'M';
|
|
6
7
|
interface TriggerProps extends BoxProps<'div'>, Pick<Field.InputProps, 'name' | 'id'> {
|
|
7
8
|
/**
|
|
8
9
|
* @default "Clear"
|
|
@@ -11,7 +12,12 @@ interface TriggerProps extends BoxProps<'div'>, Pick<Field.InputProps, 'name' |
|
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
hasError?: boolean;
|
|
13
14
|
onClear?: (e: React.MouseEvent<HTMLButtonElement | HTMLDivElement>) => void;
|
|
15
|
+
/**
|
|
16
|
+
* @default "M"
|
|
17
|
+
*/
|
|
18
|
+
size?: TriggerSize;
|
|
14
19
|
startIcon?: React.ReactElement;
|
|
20
|
+
withTags?: boolean;
|
|
15
21
|
}
|
|
16
22
|
interface ValueProps extends Omit<TypographyProps, 'children' | 'placeholder'>, Pick<Select.SelectValueProps, 'placeholder' | 'children'> {
|
|
17
23
|
asChild?: boolean;
|
|
@@ -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;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,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,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AACjG,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,UAAU,EACV,aAAa,EACb,WAAW,EACX,YAAY,EACZ,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,aAAa,EACb,UAAU,GACX,CAAC"}
|
|
@@ -1,6 +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' | 'startIcon' | 'name' | 'id' | 'hasError'> & Pick<SelectParts.ValueProps, 'placeholder'> & {
|
|
3
|
+
type SingleSelectPropsWithoutLabel = Omit<SelectParts.SingleSelectProps, 'value'> & Pick<SelectParts.ContentProps, 'onCloseAutoFocus'> & Pick<SelectParts.TriggerProps, 'clearLabel' | 'onClear' | 'startIcon' | 'name' | 'id' | 'hasError' | 'size'> & 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, "id" | "name" | "startIcon" | "hasError" | "clearLabel" | "onClear"> & Pick<SelectParts.ValueProps, "placeholder"> & {
|
|
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" | "size" | "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,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAE7C,KAAK,6BAA6B,GAAG,IAAI,CAAC,WAAW,CAAC,iBAAiB,EAAE,OAAO,CAAC,GAC/E,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,kBAAkB,CAAC,GAClD,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"SingleSelect.d.ts","sourceRoot":"","sources":["../../../src/components/Select/SingleSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAE7C,KAAK,6BAA6B,GAAG,IAAI,CAAC,WAAW,CAAC,iBAAiB,EAAE,OAAO,CAAC,GAC/E,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,kBAAkB,CAAC,GAClD,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,UAAU,GAAG,MAAM,CAAC,GAC5G,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG;IAC5C;;OAEG;IACH,gBAAgB,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACnD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC5C,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACxD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAChC,CAAC;AAEJ,MAAM,MAAM,iBAAiB,GAAG,6BAA6B,GAAG;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvH,MAAM,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;;;;;wCAuI1D,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"}
|
|
@@ -10,7 +10,7 @@ interface SimpleMenuProps extends Omit<Menu.TriggerProps, 'children'>, Pick<Menu
|
|
|
10
10
|
*/
|
|
11
11
|
onReachEnd?: (entry: IntersectionObserverEntry) => void;
|
|
12
12
|
}
|
|
13
|
-
declare const SimpleMenu:
|
|
13
|
+
declare const SimpleMenu: React.ForwardRefExoticComponent<Omit<SimpleMenuProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
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 };
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"SimpleMenu.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleMenu/SimpleMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/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,wGAkDf,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":"SubNavLink.d.ts","sourceRoot":"","sources":["../../../src/components/SubNav/SubNavLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAY,aAAa,EAAqB,MAAM,aAAa,CAAC;AAIzE,KAAK,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG;IACrE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,UAAU,iLA0Bf,CAAC;AAEF,KAAK,mBAAmB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IAAI,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"SubNavLink.d.ts","sourceRoot":"","sources":["../../../src/components/SubNav/SubNavLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAY,aAAa,EAAqB,MAAM,aAAa,CAAC;AAIzE,KAAK,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG;IACrE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,UAAU,iLA0Bf,CAAC;AAEF,KAAK,mBAAmB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IAAI,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;AA8CvG,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
onChange: React.MouseEventHandler<HTMLButtonElement>;
|
|
2
|
+
import * as Switch from '@radix-ui/react-switch';
|
|
3
|
+
interface SwitchProps extends Omit<Switch.SwitchProps, 'children'> {
|
|
5
4
|
onLabel?: string;
|
|
6
5
|
offLabel?: string;
|
|
7
|
-
selected?: boolean;
|
|
8
6
|
visibleLabels?: boolean;
|
|
9
7
|
}
|
|
10
|
-
declare const
|
|
11
|
-
export { Switch };
|
|
8
|
+
declare const SwitchImpl: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
export { SwitchImpl as Switch };
|
|
12
10
|
export type { SwitchProps };
|
|
13
11
|
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAQjD,UAAU,WAAY,SAAQ,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,QAAA,MAAM,UAAU,uFA0Cf,CAAC;AAmDF,OAAO,EAAE,UAAU,IAAI,MAAM,EAAE,CAAC;AAChC,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -7,6 +7,6 @@ export interface ThProps extends RawTdProps {
|
|
|
7
7
|
*/
|
|
8
8
|
action?: React.ReactNode;
|
|
9
9
|
}
|
|
10
|
-
export declare const Th:
|
|
11
|
-
export declare const Td:
|
|
10
|
+
export declare const Th: React.ForwardRefExoticComponent<Omit<ThProps, "ref"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
11
|
+
export declare const Td: React.ForwardRefExoticComponent<Omit<RawTdProps, "ref"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
12
12
|
//# sourceMappingURL=Cell.d.ts.map
|
|
@@ -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;AAe/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,mGASb,CAAC;AAEH,eAAO,MAAM,EAAE,sGAMb,CAAC"}
|
|
@@ -4,5 +4,5 @@ export type Overflowing = 'both' | 'left' | 'right';
|
|
|
4
4
|
export interface TableProps extends RawTableProps {
|
|
5
5
|
footer?: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const Table:
|
|
7
|
+
export declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
|
|
8
8
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAY,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAY/D,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAiCpD,MAAM,WAAW,UAAW,SAAQ,aAAa;IAC/C,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAY,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAY/D,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAiCpD,MAAM,WAAW,UAAW,SAAQ,aAAa;IAC/C,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,KAAK,qFAwChB,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FlexProps } from '../Flex';
|
|
3
|
-
export interface TagProps extends FlexProps
|
|
3
|
+
export interface TagProps extends Omit<FlexProps, 'onClick'> {
|
|
4
4
|
icon: React.ReactNode;
|
|
5
|
+
label?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
8
|
}
|
|
6
|
-
export declare const Tag: ({ children, icon, disabled, onClick, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Tag: ({ children, icon, label, disabled, onClick, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
10
|
//# sourceMappingURL=Tag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAQ,SAAS,EAAE,MAAM,SAAS,CAAC;AAqB1C,MAAM,WAAW,QAAS,SAAQ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IAC1D,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC5D;AAED,eAAO,MAAM,GAAG,2DAAoE,QAAQ,4CAkC3F,CAAC"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { PolymorphicComponentPropsWithRef } from '../../types';
|
|
2
3
|
import { FlexProps } from '../Flex';
|
|
3
|
-
|
|
4
|
+
type TextButtonProps<C extends React.ElementType = 'button'> = FlexProps<C> & {
|
|
5
|
+
disabled?: boolean;
|
|
4
6
|
endIcon?: React.ReactNode;
|
|
5
7
|
loading?: boolean;
|
|
6
8
|
startIcon?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
+
};
|
|
10
|
+
declare const TextButton: TextButtonComponent<"button">;
|
|
11
|
+
type TextButtonComponent<C extends React.ElementType = 'button'> = <T extends React.ElementType = C>(props: PolymorphicComponentPropsWithRef<T, TextButtonProps<T>>) => JSX.Element;
|
|
12
|
+
export { TextButton };
|
|
13
|
+
export type { TextButtonProps };
|
|
9
14
|
//# sourceMappingURL=TextButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextButton.d.ts","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAuB,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"TextButton.d.ts","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,gCAAgC,EAAkB,MAAM,aAAa,CAAC;AAE/E,OAAO,EAAuB,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzD,KAAK,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,GAAG;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CAAC;AAEF,QAAA,MAAM,UAAU,+BA+BQ,CAAC;AAEzB,KAAK,mBAAmB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,IAAI,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,CAAC,EACjG,KAAK,EAAE,gCAAgC,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,KAC3D,GAAG,CAAC,OAAO,CAAC;AA+BjB,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -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,
|
|
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,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,C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