@wordpress/components 28.4.0 → 28.5.0
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/CHANGELOG.md +31 -1
- package/build/autocomplete/autocompleter-ui.js +2 -0
- package/build/autocomplete/autocompleter-ui.js.map +1 -1
- package/build/base-control/styles/base-control-styles.js +8 -8
- package/build/base-control/styles/base-control-styles.js.map +1 -1
- package/build/border-control/styles.js +18 -24
- package/build/border-control/styles.js.map +1 -1
- package/build/color-palette/index.js +1 -1
- package/build/color-palette/index.js.map +1 -1
- package/build/custom-select-control/index.js +37 -14
- package/build/custom-select-control/index.js.map +1 -1
- package/build/custom-select-control/types.js.map +1 -1
- package/build/custom-select-control-v2/styles.js +9 -9
- package/build/custom-select-control-v2/styles.js.map +1 -1
- package/build/date-time/index.js +0 -7
- package/build/date-time/index.js.map +1 -1
- package/build/date-time/time/index.js +66 -38
- package/build/date-time/time/index.js.map +1 -1
- package/build/date-time/time/styles.js +11 -11
- package/build/date-time/time/styles.js.map +1 -1
- package/build/date-time/{time-input → time/time-input}/index.js +7 -7
- package/build/date-time/time/time-input/index.js.map +1 -0
- package/build/dropdown-menu-v2/styles.js +14 -14
- package/build/dropdown-menu-v2/styles.js.map +1 -1
- package/build/form-toggle/index.js +24 -24
- package/build/form-toggle/index.js.map +1 -1
- package/build/guide/index.js +2 -0
- package/build/guide/index.js.map +1 -1
- package/build/heading/types.js.map +1 -1
- package/build/modal/index.js +18 -11
- package/build/modal/index.js.map +1 -1
- package/build/query-controls/index.js +1 -1
- package/build/query-controls/index.js.map +1 -1
- package/build/radio-control/index.js +35 -8
- package/build/radio-control/index.js.map +1 -1
- package/build/radio-control/types.js.map +1 -1
- package/build/select-control/index.js +20 -8
- package/build/select-control/index.js.map +1 -1
- package/build/select-control/types.js.map +1 -1
- package/build/text-control/index.js +1 -0
- package/build/text-control/index.js.map +1 -1
- package/build/toggle-control/index.js +27 -25
- package/build/toggle-control/index.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/component.js +6 -1
- package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control-option/component.js +6 -1
- package/build/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control-option-icon/component.js +14 -14
- package/build/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
- package/build/tooltip/index.js +12 -1
- package/build/tooltip/index.js.map +1 -1
- package/build/tree-select/index.js +1 -2
- package/build/tree-select/index.js.map +1 -1
- package/build/utils/config-values.js +6 -0
- package/build/utils/config-values.js.map +1 -1
- package/build-module/autocomplete/autocompleter-ui.js +2 -0
- package/build-module/autocomplete/autocompleter-ui.js.map +1 -1
- package/build-module/base-control/styles/base-control-styles.js +8 -8
- package/build-module/base-control/styles/base-control-styles.js.map +1 -1
- package/build-module/border-control/styles.js +13 -23
- package/build-module/border-control/styles.js.map +1 -1
- package/build-module/color-palette/index.js +1 -1
- package/build-module/color-palette/index.js.map +1 -1
- package/build-module/custom-select-control/index.js +38 -14
- package/build-module/custom-select-control/index.js.map +1 -1
- package/build-module/custom-select-control/types.js.map +1 -1
- package/build-module/custom-select-control-v2/styles.js +9 -9
- package/build-module/custom-select-control-v2/styles.js.map +1 -1
- package/build-module/date-time/index.js +1 -2
- package/build-module/date-time/index.js.map +1 -1
- package/build-module/date-time/time/index.js +66 -38
- package/build-module/date-time/time/index.js.map +1 -1
- package/build-module/date-time/time/styles.js +11 -11
- package/build-module/date-time/time/styles.js.map +1 -1
- package/build-module/date-time/{time-input → time/time-input}/index.js +7 -7
- package/build-module/date-time/time/time-input/index.js.map +1 -0
- package/build-module/dropdown-menu-v2/styles.js +14 -14
- package/build-module/dropdown-menu-v2/styles.js.map +1 -1
- package/build-module/form-toggle/index.js +23 -22
- package/build-module/form-toggle/index.js.map +1 -1
- package/build-module/guide/index.js +2 -0
- package/build-module/guide/index.js.map +1 -1
- package/build-module/heading/types.js.map +1 -1
- package/build-module/modal/index.js +17 -11
- package/build-module/modal/index.js.map +1 -1
- package/build-module/query-controls/index.js +1 -1
- package/build-module/query-controls/index.js.map +1 -1
- package/build-module/radio-control/index.js +36 -10
- package/build-module/radio-control/index.js.map +1 -1
- package/build-module/radio-control/types.js.map +1 -1
- package/build-module/select-control/index.js +20 -8
- package/build-module/select-control/index.js.map +1 -1
- package/build-module/select-control/types.js.map +1 -1
- package/build-module/text-control/index.js +1 -0
- package/build-module/text-control/index.js.map +1 -1
- package/build-module/toggle-control/index.js +26 -24
- package/build-module/toggle-control/index.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control/component.js +6 -1
- package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option/component.js +6 -1
- package/build-module/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js +14 -14
- package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
- package/build-module/tooltip/index.js +13 -2
- package/build-module/tooltip/index.js.map +1 -1
- package/build-module/tree-select/index.js +1 -2
- package/build-module/tree-select/index.js.map +1 -1
- package/build-module/utils/config-values.js +6 -0
- package/build-module/utils/config-values.js.map +1 -1
- package/build-style/style-rtl.css +60 -24
- package/build-style/style.css +60 -24
- package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -1
- package/build-types/border-control/styles.d.ts.map +1 -1
- package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/color-palette/index.d.ts.map +1 -1
- package/build-types/color-palette/styles.d.ts +2 -2
- package/build-types/color-picker/styles.d.ts +3 -1
- package/build-types/color-picker/styles.d.ts.map +1 -1
- package/build-types/custom-select-control/index.d.ts +2 -2
- package/build-types/custom-select-control/index.d.ts.map +1 -1
- package/build-types/custom-select-control/stories/index.story.d.ts +3 -3
- package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control/types.d.ts +7 -7
- package/build-types/custom-select-control/types.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/styles.d.ts +16 -28
- package/build-types/custom-select-control-v2/styles.d.ts.map +1 -1
- package/build-types/date-time/date/styles.d.ts +2 -2
- package/build-types/date-time/index.d.ts +1 -2
- package/build-types/date-time/index.d.ts.map +1 -1
- package/build-types/date-time/stories/time.story.d.ts +5 -0
- package/build-types/date-time/stories/time.story.d.ts.map +1 -1
- package/build-types/date-time/time/index.d.ts +3 -0
- package/build-types/date-time/time/index.d.ts.map +1 -1
- package/build-types/date-time/time/styles.d.ts.map +1 -1
- package/build-types/date-time/{time-input → time/time-input}/index.d.ts +1 -1
- package/build-types/date-time/time/time-input/index.d.ts.map +1 -0
- package/build-types/date-time/time/time-input/test/index.d.ts.map +1 -0
- package/build-types/dropdown-menu-v2/styles.d.ts +24 -42
- package/build-types/dropdown-menu-v2/styles.d.ts.map +1 -1
- package/build-types/form-toggle/index.d.ts +2 -5
- package/build-types/form-toggle/index.d.ts.map +1 -1
- package/build-types/guide/index.d.ts.map +1 -1
- package/build-types/heading/component.d.ts +1 -1
- package/build-types/heading/types.d.ts +1 -1
- package/build-types/heading/types.d.ts.map +1 -1
- package/build-types/modal/index.d.ts.map +1 -1
- package/build-types/navigation/styles/navigation-styles.d.ts +2 -2
- package/build-types/palette-edit/styles.d.ts +2 -2
- package/build-types/query-controls/index.d.ts.map +1 -1
- package/build-types/radio-control/index.d.ts.map +1 -1
- package/build-types/radio-control/stories/index.story.d.ts +1 -0
- package/build-types/radio-control/stories/index.story.d.ts.map +1 -1
- package/build-types/radio-control/test/index.d.ts +2 -0
- package/build-types/radio-control/test/index.d.ts.map +1 -0
- package/build-types/radio-control/types.d.ts +4 -0
- package/build-types/radio-control/types.d.ts.map +1 -1
- package/build-types/select-control/index.d.ts +4 -1
- package/build-types/select-control/index.d.ts.map +1 -1
- package/build-types/select-control/stories/index.story.d.ts +9 -3
- package/build-types/select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/select-control/types.d.ts +27 -27
- package/build-types/select-control/types.d.ts.map +1 -1
- package/build-types/tabs/styles.d.ts +8 -14
- package/build-types/tabs/styles.d.ts.map +1 -1
- package/build-types/text-control/index.d.ts +1 -0
- package/build-types/text-control/index.d.ts.map +1 -1
- package/build-types/toggle-control/index.d.ts +3 -9
- package/build-types/toggle-control/index.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/component.d.ts +6 -1
- package/build-types/toggle-group-control/toggle-group-control/component.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts +6 -1
- package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option-icon/component.d.ts +14 -14
- package/build-types/tooltip/index.d.ts.map +1 -1
- package/build-types/tooltip/test/utils/index.d.ts +1 -5
- package/build-types/tooltip/test/utils/index.d.ts.map +1 -1
- package/build-types/tree-select/index.d.ts +1 -1
- package/build-types/tree-select/index.d.ts.map +1 -1
- package/build-types/utils/config-values.d.ts +6 -0
- package/package.json +20 -20
- package/src/alignment-matrix-control/test/index.tsx +1 -3
- package/src/autocomplete/autocompleter-ui.tsx +2 -0
- package/src/autocomplete/style.scss +0 -6
- package/src/base-control/styles/base-control-styles.ts +1 -1
- package/src/border-control/styles.ts +0 -5
- package/src/button/stories/e2e/index.story.tsx +103 -21
- package/src/button/style.scss +49 -21
- package/src/button/test/index.tsx +18 -40
- package/src/circular-option-picker/test/index.tsx +1 -4
- package/src/color-palette/index.tsx +22 -20
- package/src/composite/legacy/test/index.tsx +2 -18
- package/src/custom-select-control/index.tsx +55 -25
- package/src/custom-select-control/test/index.tsx +47 -30
- package/src/custom-select-control/types.ts +7 -7
- package/src/custom-select-control-v2/styles.ts +7 -6
- package/src/custom-select-control-v2/test/index.tsx +15 -19
- package/src/date-time/index.ts +1 -2
- package/src/date-time/stories/time.story.tsx +17 -0
- package/src/date-time/time/index.tsx +46 -16
- package/src/date-time/time/styles.ts +1 -0
- package/src/date-time/{time-input → time/time-input}/index.tsx +9 -9
- package/src/dropdown-menu-v2/styles.ts +18 -17
- package/src/dropdown-menu-v2/test/index.tsx +1 -4
- package/src/font-size-picker/test/index.tsx +50 -43
- package/src/form-toggle/index.tsx +23 -21
- package/src/guide/index.tsx +2 -0
- package/src/heading/types.ts +1 -4
- package/src/modal/index.tsx +21 -20
- package/src/placeholder/style.scss +11 -2
- package/src/query-controls/index.tsx +5 -1
- package/src/radio-control/index.tsx +48 -7
- package/src/radio-control/stories/index.story.tsx +23 -0
- package/src/radio-control/style.scss +26 -2
- package/src/radio-control/test/index.tsx +274 -0
- package/src/radio-control/types.ts +4 -0
- package/src/select-control/README.md +8 -1
- package/src/select-control/index.tsx +33 -22
- package/src/select-control/test/select-control.tsx +148 -4
- package/src/select-control/types.ts +70 -65
- package/src/tab-panel/test/index.tsx +1 -8
- package/src/tabs/test/index.tsx +68 -84
- package/src/text-control/README.md +1 -0
- package/src/text-control/index.tsx +1 -0
- package/src/text-control/style.scss +5 -0
- package/src/toggle-control/README.md +9 -0
- package/src/toggle-control/index.tsx +25 -22
- package/src/toggle-control/style.scss +2 -1
- package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +6 -6
- package/src/toggle-group-control/test/index.tsx +0 -6
- package/src/toggle-group-control/toggle-group-control/README.md +13 -1
- package/src/toggle-group-control/toggle-group-control/component.tsx +6 -1
- package/src/toggle-group-control/toggle-group-control-option/README.md +6 -1
- package/src/toggle-group-control/toggle-group-control-option/component.tsx +6 -1
- package/src/toggle-group-control/toggle-group-control-option-icon/README.md +1 -1
- package/src/toggle-group-control/toggle-group-control-option-icon/component.tsx +14 -14
- package/src/tooltip/index.tsx +15 -2
- package/src/tooltip/test/index.tsx +0 -5
- package/src/tooltip/test/utils/index.tsx +5 -5
- package/src/tree-select/index.tsx +1 -2
- package/src/utils/config-values.js +6 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/build/date-time/time-input/index.js.map +0 -1
- package/build-module/date-time/time-input/index.js.map +0 -1
- package/build-types/date-time/stories/time-input.story.d.ts +0 -12
- package/build-types/date-time/stories/time-input.story.d.ts.map +0 -1
- package/build-types/date-time/time-input/index.d.ts.map +0 -1
- package/build-types/date-time/time-input/test/index.d.ts.map +0 -1
- package/src/date-time/stories/time-input.story.tsx +0 -36
- /package/build-types/date-time/{time-input → time/time-input}/test/index.d.ts +0 -0
- /package/src/date-time/{time-input → time/time-input}/test/index.tsx +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/custom-select-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAElE;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/custom-select-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,CAAE,GAAG,EAAE,MAAM,GAAI,GAAG,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,KAAK,wBAAwB,CAAE,CAAC,SAAS,kBAAkB,IAAK;IAC/D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,CAAC,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAE,CAAC,SAAS,kBAAkB,IAAK;IAC/D;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAE,QAAQ,EAAE,wBAAwB,CAAE,CAAC,CAAE,KAAM,IAAI,CAAC;IAC/D;;;;OAIG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAE,iBAAiB,CAAE,CAAC;IAChD;;;;OAIG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAE,iBAAiB,CAAE,CAAC;IACjD;;;;OAIG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAE,iBAAiB,CAAE,CAAC;IACpD;;;;OAIG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAE,iBAAiB,CAAE,CAAC;IACrD;;OAEG;IACH,OAAO,EAAE,KAAK,CAAE,CAAC,CAAE,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,kBAAkB,CAAC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,CAAC;IACV;;;;OAIG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC"}
|
|
@@ -3,37 +3,28 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Ariakit from '@ariakit/react';
|
|
5
5
|
import type { CustomSelectButtonSize } from './types';
|
|
6
|
-
export declare const Select: import("@emotion/styled").StyledComponent<Ariakit.SelectOptions<"button"> & {
|
|
7
|
-
[index: `data-${string}`]: unknown;
|
|
8
|
-
wrapElement?: import("@ariakit/react-core/cjs/utils/types").WrapElement;
|
|
9
|
-
children?: import("@ariakit/react-core/cjs/utils/types").Children;
|
|
10
|
-
render?: import("@ariakit/react-core/cjs/utils/types").RenderProp | import("react").ReactElement;
|
|
11
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
6
|
+
export declare const Select: import("@emotion/styled").StyledComponent<Ariakit.SelectOptions<"button"> & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
12
7
|
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
13
|
-
},
|
|
8
|
+
}, keyof Ariakit.SelectOptions<T>> & {
|
|
9
|
+
[index: `data-${string}`]: unknown;
|
|
10
|
+
} & {
|
|
14
11
|
theme?: import("@emotion/react").Theme;
|
|
15
12
|
} & {
|
|
16
13
|
size: NonNullable<CustomSelectButtonSize["size"]>;
|
|
17
14
|
hasCustomRenderProp: boolean;
|
|
18
15
|
}, {}, {}>;
|
|
19
|
-
export declare const SelectPopover: import("@emotion/styled").StyledComponent<Ariakit.SelectPopoverOptions<"div"> & {
|
|
20
|
-
[index: `data-${string}`]: unknown;
|
|
21
|
-
wrapElement?: import("@ariakit/react-core/cjs/utils/types").WrapElement;
|
|
22
|
-
children?: import("@ariakit/react-core/cjs/utils/types").Children;
|
|
23
|
-
render?: import("@ariakit/react-core/cjs/utils/types").RenderProp | import("react").ReactElement;
|
|
24
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
|
+
export declare const SelectPopover: import("@emotion/styled").StyledComponent<Ariakit.SelectPopoverOptions<"div"> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
25
17
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
26
|
-
},
|
|
18
|
+
}, keyof Ariakit.SelectPopoverOptions<T>> & {
|
|
19
|
+
[index: `data-${string}`]: unknown;
|
|
20
|
+
} & {
|
|
27
21
|
theme?: import("@emotion/react").Theme;
|
|
28
22
|
}, {}, {}>;
|
|
29
|
-
export declare const SelectItem: import("@emotion/styled").StyledComponent<Ariakit.SelectItemOptions<"div"> & {
|
|
30
|
-
[index: `data-${string}`]: unknown;
|
|
31
|
-
wrapElement?: import("@ariakit/react-core/cjs/utils/types").WrapElement;
|
|
32
|
-
children?: import("@ariakit/react-core/cjs/utils/types").Children;
|
|
33
|
-
render?: import("@ariakit/react-core/cjs/utils/types").RenderProp | import("react").ReactElement;
|
|
34
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
23
|
+
export declare const SelectItem: import("@emotion/styled").StyledComponent<Ariakit.SelectItemOptions<"div"> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
35
24
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
36
|
-
},
|
|
25
|
+
}, keyof Ariakit.SelectItemOptions<T>> & {
|
|
26
|
+
[index: `data-${string}`]: unknown;
|
|
27
|
+
} & {
|
|
37
28
|
theme?: import("@emotion/react").Theme;
|
|
38
29
|
} & {
|
|
39
30
|
size: NonNullable<CustomSelectButtonSize["size"]>;
|
|
@@ -54,14 +45,11 @@ export declare const WithHintItemHint: import("@emotion/styled").StyledComponent
|
|
|
54
45
|
theme?: import("@emotion/react").Theme;
|
|
55
46
|
as?: React.ElementType;
|
|
56
47
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
57
|
-
export declare const SelectedItemCheck: import("@emotion/styled").StyledComponent<Ariakit.SelectItemCheckOptions<"span"> & {
|
|
58
|
-
[index: `data-${string}`]: unknown;
|
|
59
|
-
wrapElement?: import("@ariakit/react-core/cjs/utils/types").WrapElement;
|
|
60
|
-
children?: import("@ariakit/react-core/cjs/utils/types").Children;
|
|
61
|
-
render?: import("@ariakit/react-core/cjs/utils/types").RenderProp | import("react").ReactElement;
|
|
62
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
48
|
+
export declare const SelectedItemCheck: import("@emotion/styled").StyledComponent<Ariakit.SelectItemCheckOptions<"span"> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
63
49
|
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
64
|
-
},
|
|
50
|
+
}, keyof Ariakit.SelectItemCheckOptions<T>> & {
|
|
51
|
+
[index: `data-${string}`]: unknown;
|
|
52
|
+
} & {
|
|
65
53
|
theme?: import("@emotion/react").Theme;
|
|
66
54
|
}, {}, {}>;
|
|
67
55
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/custom-select-control-v2/styles.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAU1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AA+DtD,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/custom-select-control-v2/styles.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAU1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AA+DtD,eAAO,MAAM,MAAM;;;;;;;UAQX,WAAW,CAAE,sBAAsB,CAAE,MAAM,CAAE,CAAE;yBAChC,OAAO;UAoB7B,CAAC;AAUF,eAAO,MAAM,aAAa;;;;;;UAgCzB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;UAIf,WAAW,CAAE,sBAAsB,CAAE,MAAM,CAAE,CAAE;UAuBtD,CAAC;AAQF,eAAO,MAAM,+BAA+B;;SAzKd,MAAO,WAAW;yGA2K/C,CAAC;AAEF,eAAO,MAAM,4BAA4B;;eA7KJ,WAAW;2GAgL/C,CAAC;AAEF,eAAO,MAAM,mBAAmB;;eAlLK,WAAW;yGAyL/C,CAAC;AAEF,eAAO,MAAM,gBAAgB;;eA3LQ,WAAW;2GAiM/C,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;UAmB7B,CAAC"}
|
|
@@ -10,12 +10,12 @@ export declare const Navigator: import("@emotion/styled").StyledComponent<Omit<i
|
|
|
10
10
|
} & {
|
|
11
11
|
theme?: import("@emotion/react").Theme;
|
|
12
12
|
}, {}, {}>;
|
|
13
|
-
export declare const NavigatorHeading: import("@emotion/styled").StyledComponent<Omit<import("../../text/types").Props, "color" | "
|
|
13
|
+
export declare const NavigatorHeading: import("@emotion/styled").StyledComponent<Omit<import("../../text/types").Props, "color" | "weight" | "isBlock"> & {
|
|
14
14
|
level?: import("../../heading/types").HeadingSize;
|
|
15
15
|
isBlock?: import("../../text/types").Props["isBlock"];
|
|
16
16
|
color?: import("../../text/types").Props["color"];
|
|
17
17
|
weight?: import("../../text/types").Props["weight"];
|
|
18
|
-
} & import("react").RefAttributes<any> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, "color" | "ellipsis" | "weight" | "display" | "letterSpacing" | "lineHeight" | "children" | "align" | "as" | "level" | "variant" | keyof import("react").RefAttributes<any> | "isBlock" | "ellipsizeMode" | "limit" | "numberOfLines" | "adjustLineHeightForInnerControls" | "isDestructive" | "highlightEscape" | "highlightCaseSensitive" | "highlightSanitize" | "optimizeReadabilityFor" | "truncate" | "upperCase" | "highlightWords"> & {
|
|
18
|
+
} & import("react").RefAttributes<any> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, "color" | "ellipsis" | "size" | "weight" | "display" | "letterSpacing" | "lineHeight" | "children" | "align" | "as" | "level" | "variant" | keyof import("react").RefAttributes<any> | "isBlock" | "ellipsizeMode" | "limit" | "numberOfLines" | "adjustLineHeightForInnerControls" | "isDestructive" | "highlightEscape" | "highlightCaseSensitive" | "highlightSanitize" | "optimizeReadabilityFor" | "truncate" | "upperCase" | "highlightWords"> & {
|
|
19
19
|
as?: keyof JSX.IntrinsicElements | undefined;
|
|
20
20
|
} & {
|
|
21
21
|
theme?: import("@emotion/react").Theme;
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { default as DatePicker } from './date';
|
|
5
5
|
import { default as TimePicker } from './time';
|
|
6
|
-
import { default as TimeInput } from './time-input';
|
|
7
6
|
import { default as DateTimePicker } from './date-time';
|
|
8
|
-
export { DatePicker, TimePicker
|
|
7
|
+
export { DatePicker, TimePicker };
|
|
9
8
|
export default DateTimePicker;
|
|
10
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/date-time/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/date-time/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AAClC,eAAe,cAAc,CAAC"}
|
|
@@ -9,4 +9,9 @@ import TimePicker from '../time';
|
|
|
9
9
|
declare const meta: Meta<typeof TimePicker>;
|
|
10
10
|
export default meta;
|
|
11
11
|
export declare const Default: StoryFn<typeof TimePicker>;
|
|
12
|
+
/**
|
|
13
|
+
* The time input can be used in isolation as `<TimePicker.TimeInput />`. In this case, the `value` will be passed
|
|
14
|
+
* as an object in 24-hour format (`{ hours: number, minutes: number }`).
|
|
15
|
+
*/
|
|
16
|
+
export declare const TimeInput: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").TimeInputProps>;
|
|
12
17
|
//# sourceMappingURL=time.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.story.d.ts","sourceRoot":"","sources":["../../../src/date-time/stories/time.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAOtD;;GAEG;AACH,OAAO,UAAU,MAAM,SAAS,CAAC;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,UAAU,
|
|
1
|
+
{"version":3,"file":"time.story.d.ts","sourceRoot":"","sources":["../../../src/date-time/stories/time.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAOtD;;GAEG;AACH,OAAO,UAAU,MAAM,SAAS,CAAC;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,UAAU,CAalC,CAAC;AACF,eAAe,IAAI,CAAC;AAuBpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,UAAU,CAAwB,CAAC;AAMzE;;;GAGG;AACH,eAAO,MAAM,SAAS,0HAA+B,CAAC"}
|
|
@@ -20,5 +20,8 @@ import type { TimePickerProps } from '../types';
|
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
22
|
export declare function TimePicker({ is12Hour, currentTime, onChange, dateOrder: dateOrderProp, }: TimePickerProps): import("react").JSX.Element;
|
|
23
|
+
export declare namespace TimePicker {
|
|
24
|
+
var TimeInput: typeof import("./time-input").TimeInput;
|
|
25
|
+
}
|
|
23
26
|
export default TimePicker;
|
|
24
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/date-time/time/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,UAAU,CAAC;AAqBhE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAE,EAC3B,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,SAAS,EAAE,aAAa,GACxB,EAAE,eAAe,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/date-time/time/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,UAAU,CAAC;AAqBhE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAE,EAC3B,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,SAAS,EAAE,aAAa,GACxB,EAAE,eAAe,+BAkMjB;yBAvMe,UAAU;;;AAkO1B,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/date-time/time/styles.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,OAAO;;SAOhB,MAAO,WAAW;yGAJrB,CAAC;AAEF,eAAO,MAAM,QAAQ;;eAEV,WAAW;2HAMrB,CAAC;AAEF,eAAO,MAAM,WAAW;;eARb,WAAW;yGAWrB,CAAC;AAUF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;UActB,CAAC;AAEF,eAAO,MAAM,aAAa;;eArCf,WAAW;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/date-time/time/styles.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,OAAO;;SAOhB,MAAO,WAAW;yGAJrB,CAAC;AAEF,eAAO,MAAM,QAAQ;;eAEV,WAAW;2HAMrB,CAAC;AAEF,eAAO,MAAM,WAAW;;eARb,WAAW;yGAWrB,CAAC;AAUF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;UActB,CAAC;AAEF,eAAO,MAAM,aAAa;;eArCf,WAAW;2GA6CrB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;UAcxB,CAAC;AAIF,eAAO,MAAM,kBAAkB;;eAjEpB,WAAW;yGAmErB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;UAIpB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;UAIrB,CAAC;AAEF,eAAO,MAAM,QAAQ;;eAjFV,WAAW;yGAmFrB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TimeInputProps } from '
|
|
1
|
+
import type { TimeInputProps } from '../../types';
|
|
2
2
|
export declare function TimeInput({ value: valueProp, defaultValue, is12Hour, label, minutesProps, onChange, }: TimeInputProps): import("react").JSX.Element;
|
|
3
3
|
export default TimeInput;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/date-time/time/time-input/index.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAKlD,wBAAgB,SAAS,CAAE,EAC1B,KAAK,EAAE,SAAS,EAChB,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,QAAQ,GACR,EAAE,cAAc,+BAwJhB;AACD,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/date-time/time/time-input/test/index.tsx"],"names":[],"mappings":""}
|
|
@@ -3,44 +3,32 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Ariakit from '@ariakit/react';
|
|
5
5
|
import type { DropdownMenuContext } from './types';
|
|
6
|
-
export declare const DropdownMenu: import("@emotion/styled").StyledComponent<Ariakit.MenuOptions<"div"> & {
|
|
7
|
-
[index: `data-${string}`]: unknown;
|
|
8
|
-
wrapElement?: import("@ariakit/react-core/cjs/utils/types").WrapElement;
|
|
9
|
-
children?: import("@ariakit/react-core/cjs/utils/types").Children;
|
|
10
|
-
render?: import("@ariakit/react-core/cjs/utils/types").RenderProp | import("react").ReactElement;
|
|
11
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
|
+
export declare const DropdownMenu: import("@emotion/styled").StyledComponent<Ariakit.MenuOptions<"div"> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
12
7
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
-
},
|
|
8
|
+
}, keyof Ariakit.MenuOptions<T>> & {
|
|
9
|
+
[index: `data-${string}`]: unknown;
|
|
10
|
+
} & {
|
|
14
11
|
theme?: import("@emotion/react").Theme;
|
|
15
12
|
} & Pick<DropdownMenuContext, "variant">, {}, {}>;
|
|
16
|
-
export declare const DropdownMenuItem: import("@emotion/styled").StyledComponent<Ariakit.MenuItemOptions<"div"> & {
|
|
17
|
-
[index: `data-${string}`]: unknown;
|
|
18
|
-
wrapElement?: import("@ariakit/react-core/cjs/utils/types").WrapElement;
|
|
19
|
-
children?: import("@ariakit/react-core/cjs/utils/types").Children;
|
|
20
|
-
render?: import("@ariakit/react-core/cjs/utils/types").RenderProp | import("react").ReactElement;
|
|
21
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
13
|
+
export declare const DropdownMenuItem: import("@emotion/styled").StyledComponent<Ariakit.MenuItemOptions<"div"> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
22
14
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
23
|
-
},
|
|
15
|
+
}, keyof Ariakit.MenuItemOptions<T>> & {
|
|
16
|
+
[index: `data-${string}`]: unknown;
|
|
17
|
+
} & {
|
|
24
18
|
theme?: import("@emotion/react").Theme;
|
|
25
19
|
}, {}, {}>;
|
|
26
|
-
export declare const DropdownMenuCheckboxItem: import("@emotion/styled").StyledComponent<Ariakit.MenuItemCheckboxOptions<"div"> & {
|
|
27
|
-
[index: `data-${string}`]: unknown;
|
|
28
|
-
wrapElement?: import("@ariakit/react-core/cjs/utils/types").WrapElement;
|
|
29
|
-
children?: import("@ariakit/react-core/cjs/utils/types").Children;
|
|
30
|
-
render?: import("@ariakit/react-core/cjs/utils/types").RenderProp | import("react").ReactElement;
|
|
31
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
|
+
export declare const DropdownMenuCheckboxItem: import("@emotion/styled").StyledComponent<Ariakit.MenuItemCheckboxOptions<"div"> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
32
21
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
33
|
-
},
|
|
22
|
+
}, keyof Ariakit.MenuItemCheckboxOptions<T>> & {
|
|
23
|
+
[index: `data-${string}`]: unknown;
|
|
24
|
+
} & {
|
|
34
25
|
theme?: import("@emotion/react").Theme;
|
|
35
26
|
}, {}, {}>;
|
|
36
|
-
export declare const DropdownMenuRadioItem: import("@emotion/styled").StyledComponent<Ariakit.MenuItemRadioOptions<"div"> & {
|
|
37
|
-
[index: `data-${string}`]: unknown;
|
|
38
|
-
wrapElement?: import("@ariakit/react-core/cjs/utils/types").WrapElement;
|
|
39
|
-
children?: import("@ariakit/react-core/cjs/utils/types").Children;
|
|
40
|
-
render?: import("@ariakit/react-core/cjs/utils/types").RenderProp | import("react").ReactElement;
|
|
41
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
27
|
+
export declare const DropdownMenuRadioItem: import("@emotion/styled").StyledComponent<Ariakit.MenuItemRadioOptions<"div"> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
42
28
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
43
|
-
},
|
|
29
|
+
}, keyof Ariakit.MenuItemRadioOptions<T>> & {
|
|
30
|
+
[index: `data-${string}`]: unknown;
|
|
31
|
+
} & {
|
|
44
32
|
theme?: import("@emotion/react").Theme;
|
|
45
33
|
}, {}, {}>;
|
|
46
34
|
export declare const ItemPrefixWrapper: import("@emotion/styled").StyledComponent<{
|
|
@@ -59,24 +47,18 @@ export declare const ItemSuffixWrapper: import("@emotion/styled").StyledComponen
|
|
|
59
47
|
theme?: import("@emotion/react").Theme;
|
|
60
48
|
as?: React.ElementType;
|
|
61
49
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
62
|
-
export declare const DropdownMenuGroup: import("@emotion/styled").StyledComponent<Ariakit.MenuGroupOptions<"div"> & {
|
|
63
|
-
[index: `data-${string}`]: unknown;
|
|
64
|
-
wrapElement?: import("@ariakit/react-core/cjs/utils/types").WrapElement;
|
|
65
|
-
children?: import("@ariakit/react-core/cjs/utils/types").Children;
|
|
66
|
-
render?: import("@ariakit/react-core/cjs/utils/types").RenderProp | import("react").ReactElement;
|
|
67
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
50
|
+
export declare const DropdownMenuGroup: import("@emotion/styled").StyledComponent<Ariakit.MenuGroupOptions<"div"> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
68
51
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
69
|
-
},
|
|
52
|
+
}, keyof Ariakit.MenuGroupOptions<T>> & {
|
|
53
|
+
[index: `data-${string}`]: unknown;
|
|
54
|
+
} & {
|
|
70
55
|
theme?: import("@emotion/react").Theme;
|
|
71
56
|
}, {}, {}>;
|
|
72
|
-
export declare const DropdownMenuSeparator: import("@emotion/styled").StyledComponent<Ariakit.MenuSeparatorOptions<"hr"> & {
|
|
73
|
-
[index: `data-${string}`]: unknown;
|
|
74
|
-
wrapElement?: import("@ariakit/react-core/cjs/utils/types").WrapElement;
|
|
75
|
-
children?: import("@ariakit/react-core/cjs/utils/types").Children;
|
|
76
|
-
render?: import("@ariakit/react-core/cjs/utils/types").RenderProp | import("react").ReactElement;
|
|
77
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & {
|
|
57
|
+
export declare const DropdownMenuSeparator: import("@emotion/styled").StyledComponent<Ariakit.MenuSeparatorOptions<"hr"> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & {
|
|
78
58
|
ref?: ((instance: HTMLHRElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLHRElement> | null | undefined;
|
|
79
|
-
},
|
|
59
|
+
}, keyof Ariakit.MenuSeparatorOptions<T>> & {
|
|
60
|
+
[index: `data-${string}`]: unknown;
|
|
61
|
+
} & {
|
|
80
62
|
theme?: import("@emotion/react").Theme;
|
|
81
63
|
} & Pick<DropdownMenuContext, "variant">, {}, {}>;
|
|
82
64
|
export declare const SubmenuChevronIcon: import("@emotion/styled").StyledComponent<import("../icon").Props & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/dropdown-menu-v2/styles.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAW1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAwDnD,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/dropdown-menu-v2/styles.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAW1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAwDnD,eAAO,MAAM,YAAY;;;;;;iDAmDxB,CAAC;AAmFF,eAAO,MAAM,gBAAgB;;;;;;UAE5B,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;UAEpC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;UAEjC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;SApM7B,MAEG,WAAW;2GAqOd,CAAC;AAEF,eAAO,MAAM,8BAA8B;;eAvOvC,WAAW;yGAoPd,CAAC;AAEF,eAAO,MAAM,+BAA+B;;eAtPxC,WAAW;yGA4Pd,CAAC;AAEF,eAAO,MAAM,iBAAiB;;eA9P1B,WAAW;2GAmRd,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;UAG7B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;iDAkBjC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;UAU9B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;UAIjC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;UAUpC,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type { ForwardedRef } from 'react';
|
|
2
1
|
/**
|
|
3
2
|
* Internal dependencies
|
|
4
3
|
*/
|
|
5
4
|
import type { FormToggleProps } from './types';
|
|
6
|
-
import type { WordPressComponentProps } from '../context';
|
|
7
5
|
export declare const noop: () => void;
|
|
8
6
|
/**
|
|
9
7
|
* FormToggle switches a single setting on or off.
|
|
@@ -24,7 +22,6 @@ export declare const noop: () => void;
|
|
|
24
22
|
* };
|
|
25
23
|
* ```
|
|
26
24
|
*/
|
|
27
|
-
export declare
|
|
28
|
-
|
|
29
|
-
export default _default;
|
|
25
|
+
export declare const FormToggle: import("react").ForwardRefExoticComponent<FormToggleProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "children" | "as" | keyof FormToggleProps> & import("react").RefAttributes<HTMLInputElement>>;
|
|
26
|
+
export default FormToggle;
|
|
30
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/form-toggle/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/form-toggle/index.tsx"],"names":[],"mappings":"AAWA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/C,eAAO,MAAM,IAAI,YAAW,CAAC;AAqC7B;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,UAAU,yRAAsC,CAAC;AAE9D,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/guide/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,iBAAS,KAAK,CAAE,EACf,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,gBAAiC,EACjC,QAAQ,EACR,KAAU,GACV,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/guide/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,iBAAS,KAAK,CAAE,EACf,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,gBAAiC,EACjC,QAAQ,EACR,KAAU,GACV,EAAE,UAAU,sCAmHZ;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* }
|
|
10
10
|
* ```
|
|
11
11
|
*/
|
|
12
|
-
export declare const Heading: import("../context").WordPressComponent<"h1", Omit<import("../text/types").Props, "color" | "
|
|
12
|
+
export declare const Heading: import("../context").WordPressComponent<"h1", Omit<import("../text/types").Props, "color" | "weight" | "isBlock"> & {
|
|
13
13
|
level?: import("./types").HeadingSize;
|
|
14
14
|
isBlock?: import("../text/types").Props["isBlock"];
|
|
15
15
|
color?: import("../text/types").Props["color"];
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { Props as TextProps } from '../text/types';
|
|
5
5
|
export type HeadingSize = 1 | 2 | 3 | 4 | 5 | 6 | '1' | '2' | '3' | '4' | '5' | '6';
|
|
6
|
-
export type HeadingProps = Omit<TextProps, '
|
|
6
|
+
export type HeadingProps = Omit<TextProps, 'isBlock' | 'color' | 'weight'> & {
|
|
7
7
|
/**
|
|
8
8
|
* Passing any of the heading levels to `level` will both render the correct
|
|
9
9
|
* typographic text size as well as the semantic element corresponding to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/heading/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,MAAM,WAAW,GACpB,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAC;AAEP,MAAM,MAAM,YAAY,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/heading/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,MAAM,WAAW,GACpB,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAC;AAEP,MAAM,MAAM,YAAY,GAAG,IAAI,CAAE,SAAS,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAE,GAAG;IAC9E;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,SAAS,CAAE,SAAS,CAAE,CAAC;IACjC;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAE,OAAO,CAAE,CAAC;IAC7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAE,QAAQ,CAAE,CAAC;CAC/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modal/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modal/index.tsx"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAmU1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,KAAK,uGAAiC,CAAC;AAEpD,eAAe,KAAK,CAAC"}
|
|
@@ -21,12 +21,12 @@ export declare const MenuTitleActionsUI: import("@emotion/styled").StyledCompone
|
|
|
21
21
|
theme?: import("@emotion/react").Theme;
|
|
22
22
|
as?: React.ElementType;
|
|
23
23
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
24
|
-
export declare const GroupTitleUI: import("@emotion/styled").StyledComponent<Omit<import("../../text/types").Props, "color" | "
|
|
24
|
+
export declare const GroupTitleUI: import("@emotion/styled").StyledComponent<Omit<import("../../text/types").Props, "color" | "weight" | "isBlock"> & {
|
|
25
25
|
level?: import("../../heading/types").HeadingSize;
|
|
26
26
|
isBlock?: import("../../text/types").Props["isBlock"];
|
|
27
27
|
color?: import("../../text/types").Props["color"];
|
|
28
28
|
weight?: import("../../text/types").Props["weight"];
|
|
29
|
-
} & import("react").RefAttributes<any> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, "color" | "ellipsis" | "weight" | "display" | "letterSpacing" | "lineHeight" | "children" | "align" | "as" | "level" | "variant" | keyof import("react").RefAttributes<any> | "isBlock" | "ellipsizeMode" | "limit" | "numberOfLines" | "adjustLineHeightForInnerControls" | "isDestructive" | "highlightEscape" | "highlightCaseSensitive" | "highlightSanitize" | "optimizeReadabilityFor" | "truncate" | "upperCase" | "highlightWords"> & {
|
|
29
|
+
} & import("react").RefAttributes<any> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, "color" | "ellipsis" | "size" | "weight" | "display" | "letterSpacing" | "lineHeight" | "children" | "align" | "as" | "level" | "variant" | keyof import("react").RefAttributes<any> | "isBlock" | "ellipsizeMode" | "limit" | "numberOfLines" | "adjustLineHeightForInnerControls" | "isDestructive" | "highlightEscape" | "highlightCaseSensitive" | "highlightSanitize" | "optimizeReadabilityFor" | "truncate" | "upperCase" | "highlightWords"> & {
|
|
30
30
|
as?: keyof JSX.IntrinsicElements | undefined;
|
|
31
31
|
} & {
|
|
32
32
|
theme?: import("@emotion/react").Theme;
|
|
@@ -264,12 +264,12 @@ export declare const NameContainer: import("@emotion/styled").StyledComponent<{
|
|
|
264
264
|
theme?: import("@emotion/react").Theme;
|
|
265
265
|
as?: React.ElementType;
|
|
266
266
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
267
|
-
export declare const PaletteHeading: import("@emotion/styled").StyledComponent<Omit<import("../text/types").Props, "color" | "
|
|
267
|
+
export declare const PaletteHeading: import("@emotion/styled").StyledComponent<Omit<import("../text/types").Props, "color" | "weight" | "isBlock"> & {
|
|
268
268
|
level?: import("../heading/types").HeadingSize;
|
|
269
269
|
isBlock?: import("../text/types").Props["isBlock"];
|
|
270
270
|
color?: import("../text/types").Props["color"];
|
|
271
271
|
weight?: import("../text/types").Props["weight"];
|
|
272
|
-
} & import("react").RefAttributes<any> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, "color" | "ellipsis" | "weight" | "display" | "letterSpacing" | "lineHeight" | "children" | "align" | "as" | "level" | "variant" | keyof import("react").RefAttributes<any> | "isBlock" | "ellipsizeMode" | "limit" | "numberOfLines" | "adjustLineHeightForInnerControls" | "isDestructive" | "highlightEscape" | "highlightCaseSensitive" | "highlightSanitize" | "optimizeReadabilityFor" | "truncate" | "upperCase" | "highlightWords"> & {
|
|
272
|
+
} & import("react").RefAttributes<any> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, "color" | "ellipsis" | "size" | "weight" | "display" | "letterSpacing" | "lineHeight" | "children" | "align" | "as" | "level" | "variant" | keyof import("react").RefAttributes<any> | "isBlock" | "ellipsizeMode" | "limit" | "numberOfLines" | "adjustLineHeightForInnerControls" | "isDestructive" | "highlightEscape" | "highlightCaseSensitive" | "highlightSanitize" | "optimizeReadabilityFor" | "truncate" | "upperCase" | "highlightWords"> & {
|
|
273
273
|
as?: keyof JSX.IntrinsicElements | undefined;
|
|
274
274
|
} & {
|
|
275
275
|
theme?: import("@emotion/react").Theme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/query-controls/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACX,kBAAkB,EAGlB,MAAM,SAAS,CAAC;AAkBjB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAAE,EAC9B,qBAA6B,EAC7B,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,KAAK,EACL,OAAO,EACP,QAA4B,EAC5B,QAA4B,EAC5B,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,eAAe,EAGf,GAAG,KAAK,EACR,EAAE,kBAAkB,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/query-controls/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACX,kBAAkB,EAGlB,MAAM,SAAS,CAAC;AAkBjB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAAE,EAC9B,qBAA6B,EAC7B,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,KAAK,EACL,OAAO,EACP,QAA4B,EAC5B,QAA4B,EAC5B,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,eAAe,EAGf,GAAG,KAAK,EACR,EAAE,kBAAkB,+BA4HpB;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/radio-control/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/radio-control/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAajD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,YAAY,CAC3B,KAAK,EAAE,uBAAuB,CAAE,iBAAiB,EAAE,OAAO,EAAE,KAAK,CAAE,sCA2FnE;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -9,4 +9,5 @@ import RadioControl from '..';
|
|
|
9
9
|
declare const meta: Meta<typeof RadioControl>;
|
|
10
10
|
export default meta;
|
|
11
11
|
export declare const Default: StoryFn<typeof RadioControl>;
|
|
12
|
+
export declare const WithOptionDescriptions: StoryFn<typeof RadioControl>;
|
|
12
13
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/radio-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAOtD;;GAEG;AACH,OAAO,YAAY,MAAM,IAAI,CAAC;AAE9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,YAAY,CAuBpC,CAAC;AACF,eAAe,IAAI,CAAC;AAsBpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,YAAY,CAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/radio-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAOtD;;GAEG;AACH,OAAO,YAAY,MAAM,IAAI,CAAC;AAE9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,YAAY,CAuBpC,CAAC;AACF,eAAe,IAAI,CAAC;AAsBpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,YAAY,CAAwB,CAAC;AAU3E,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAE,OAAO,YAAY,CAC7C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/radio-control/test/index.tsx"],"names":[],"mappings":""}
|
|
@@ -20,6 +20,10 @@ export type RadioControlProps = Pick<BaseControlProps, 'label' | 'help' | 'hideL
|
|
|
20
20
|
* The internal value compared against select and passed to onChange
|
|
21
21
|
*/
|
|
22
22
|
value: string;
|
|
23
|
+
/**
|
|
24
|
+
* Optional help text to be shown in addition the label.
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
23
27
|
}[];
|
|
24
28
|
/**
|
|
25
29
|
* The value property of the currently selected option.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/radio-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,MAAM,iBAAiB,GAAG,IAAI,CACnC,gBAAgB,EAChB,OAAO,GAAG,MAAM,GAAG,qBAAqB,CACxC,GAAG;IACH;;;OAGG;IACH,QAAQ,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE;QACT;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/radio-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,MAAM,iBAAiB,GAAG,IAAI,CACnC,gBAAgB,EAChB,OAAO,GAAG,MAAM,GAAG,qBAAqB,CACxC,GAAG;IACH;;;OAGG;IACH,QAAQ,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE;QACT;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACrB,EAAE,CAAC;IACJ;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -13,6 +13,7 @@ import type { SelectControlProps } from './types';
|
|
|
13
13
|
*
|
|
14
14
|
* return (
|
|
15
15
|
* <SelectControl
|
|
16
|
+
* __nextHasNoMarginBottom
|
|
16
17
|
* label="Size"
|
|
17
18
|
* value={ size }
|
|
18
19
|
* options={ [
|
|
@@ -26,6 +27,8 @@ import type { SelectControlProps } from './types';
|
|
|
26
27
|
* };
|
|
27
28
|
* ```
|
|
28
29
|
*/
|
|
29
|
-
export declare const SelectControl:
|
|
30
|
+
export declare const SelectControl: <V extends string>(props: WordPressComponentProps<SelectControlProps<V>, "select", false> & {
|
|
31
|
+
ref?: React.Ref<HTMLSelectElement>;
|
|
32
|
+
}) => React.JSX.Element | null;
|
|
30
33
|
export default SelectControl;
|
|
31
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/select-control/index.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/select-control/index.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AA6HlD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,aAAa,EAA6C,CACtE,CAAgB,SAAN,MAAM,EAEhB,KAAK,EAAE,uBAAuB,CAC7B,kBAAkB,CAAE,CAAC,CAAE,EACvB,QAAQ,EACR,KAAK,CACL,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAE,iBAAiB,CAAE,CAAA;CAAE,KACxC,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;AAE9B,eAAe,aAAa,CAAC"}
|
|
@@ -8,12 +8,18 @@ import type { Meta, StoryFn } from '@storybook/react';
|
|
|
8
8
|
import SelectControl from '../';
|
|
9
9
|
declare const meta: Meta<typeof SelectControl>;
|
|
10
10
|
export default meta;
|
|
11
|
-
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../../context").WordPressComponentProps<import("../types").SelectControlProps
|
|
12
|
-
|
|
11
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../../context").WordPressComponentProps<import("../types").SelectControlProps<string>, "select", false> & {
|
|
12
|
+
ref?: React.Ref<HTMLSelectElement>;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const WithLabelAndHelpText: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../../context").WordPressComponentProps<import("../types").SelectControlProps<string>, "select", false> & {
|
|
15
|
+
ref?: React.Ref<HTMLSelectElement>;
|
|
16
|
+
}>;
|
|
13
17
|
/**
|
|
14
18
|
* As an alternative to the `options` prop, `optgroup`s and `options` can be
|
|
15
19
|
* passed in as `children` for more customizeability.
|
|
16
20
|
*/
|
|
17
21
|
export declare const WithCustomChildren: StoryFn<typeof SelectControl>;
|
|
18
|
-
export declare const Minimal: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../../context").WordPressComponentProps<import("../types").SelectControlProps
|
|
22
|
+
export declare const Minimal: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../../context").WordPressComponentProps<import("../types").SelectControlProps<string>, "select", false> & {
|
|
23
|
+
ref?: React.Ref<HTMLSelectElement>;
|
|
24
|
+
}>;
|
|
19
25
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/select-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAOtD;;GAEG;AACH,OAAO,aAAa,MAAM,KAAK,CAAC;AAEhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,aAAa,CAerC,CAAC;AACF,eAAe,IAAI,CAAC;AAgCpB,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/select-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAOtD;;GAEG;AACH,OAAO,aAAa,MAAM,KAAK,CAAC;AAEhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,aAAa,CAerC,CAAC;AACF,eAAe,IAAI,CAAC;AAgCpB,eAAO,MAAM,OAAO;UA6Cm0D,MAAO,GAAG;EA7CzyD,CAAC;AAUzD,eAAO,MAAM,oBAAoB;gBAmC6zD,GAAG;EAnC5xD,CAAC;AAOtE;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAE,OAAO,aAAa,CAiB7D,CAAC;AAEF,eAAO,MAAM,OAAO;gBAK00D,GAAG;EALzyD,CAAC"}
|