@planningcenter/tapestry 3.2.2-rc.6 → 3.2.2-rc.8
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/combo-box/ComboBox.d.ts +21 -40
- package/dist/components/combo-box/ComboBox.d.ts.map +1 -1
- package/dist/components/combo-box/ComboBox.js +12 -10
- package/dist/components/combo-box/ComboBox.js.map +1 -1
- package/dist/components/combo-box/index.d.ts +1 -1
- package/dist/components/combo-box/index.d.ts.map +1 -1
- package/dist/reactRender.css +1379 -1379
- package/dist/reactRender.css.map +1 -1
- package/dist/reactRenderLegacy.css +1379 -1379
- package/dist/reactRenderLegacy.css.map +1 -1
- package/dist/utilities/reactAriaProps.d.ts +7 -0
- package/dist/utilities/reactAriaProps.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -1,77 +1,58 @@
|
|
|
1
1
|
import "../button/btn.css";
|
|
2
2
|
import "./index.css";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import type { CombineAriaPropsWithCustomProps } from "../../utilities/reactAriaProps";
|
|
4
|
+
import React, { type ReactNode } from "react";
|
|
5
|
+
import type { ComboBoxProps as AriaComboBoxProps, Key, ListBoxItemProps, ListBoxSectionProps } from "react-aria-components";
|
|
5
6
|
export type ComboBoxSize = "md" | "lg";
|
|
6
7
|
export interface ComboBoxProps<T extends object = object> {
|
|
7
|
-
/** Whether the combo box allows the menu to be open when the collection is empty. */
|
|
8
|
-
allowsEmptyCollection?: boolean;
|
|
9
8
|
/** The children of the combo box (ComboBoxItem elements or a render function). */
|
|
10
9
|
children: ReactNode | ((item: T) => ReactNode);
|
|
11
|
-
/** The default uncontrolled value of the text input. */
|
|
12
|
-
defaultInputValue?: string;
|
|
13
|
-
/** The default list of items (uncontrolled dynamic collection). */
|
|
14
|
-
defaultItems?: Iterable<T>;
|
|
15
|
-
/**
|
|
16
|
-
* The default uncontrolled selected value(s).
|
|
17
|
-
* Pass a `Key[]` when `selectionMode` is `"multiple"`.
|
|
18
|
-
*/
|
|
19
|
-
defaultValue?: Key | Key[] | null;
|
|
20
10
|
/** Helper text displayed below the component. Styled as error text when `invalid` is `true`. */
|
|
21
11
|
description?: string;
|
|
22
12
|
/** Disables the field and trigger button. */
|
|
23
13
|
disabled?: boolean;
|
|
24
|
-
/** Item keys that are disabled and cannot be selected or focused. */
|
|
25
|
-
disabledKeys?: Iterable<Key>;
|
|
26
14
|
/** Custom filter function for determining if an item should appear in the list. */
|
|
27
15
|
filter?: (textValue: string, inputValue: string) => boolean;
|
|
28
16
|
/** If `true`, the `label` text is rendered as an `aria-label` instead of a visible label element. */
|
|
29
17
|
hideLabel?: boolean;
|
|
30
|
-
/** The controlled value of the text input. */
|
|
31
|
-
inputValue?: string;
|
|
32
18
|
/** Whether the input is in an invalid state. */
|
|
33
19
|
invalid?: boolean;
|
|
34
|
-
/** The list of items (controlled dynamic collection). */
|
|
35
|
-
items?: Iterable<T>;
|
|
36
20
|
/** Accessible label for the field. */
|
|
37
21
|
label: string;
|
|
38
|
-
/** Controls when the listbox opens. */
|
|
39
|
-
menuTrigger?: "focus" | "input" | "manual";
|
|
40
|
-
/** Field name for form submission. */
|
|
41
|
-
name?: string;
|
|
42
22
|
/**
|
|
43
23
|
* Called when the selected value(s) change.
|
|
44
24
|
* Receives `Key[]` when `selectionMode` is `"multiple"`, otherwise `Key | null`.
|
|
45
25
|
*/
|
|
46
26
|
onChange?: ((value: Key | null) => void) | ((value: Key[]) => void);
|
|
47
|
-
/** Called when the input text changes. */
|
|
48
|
-
onInputChange?: (value: string) => void;
|
|
49
27
|
/** Placeholder text for the input. */
|
|
50
28
|
placeholder?: string;
|
|
51
29
|
/** If `true`, allows the value to be read but not changed. */
|
|
52
30
|
readOnly?: boolean;
|
|
53
31
|
/** If `true`, appends an asterisk at the end of the label text. */
|
|
54
32
|
required?: boolean;
|
|
55
|
-
/** Controls whether one or multiple items can be selected. Defaults to `"single"`. */
|
|
56
|
-
selectionMode?: "single" | "multiple";
|
|
57
33
|
/** The size of the combo box. */
|
|
58
34
|
size?: ComboBoxSize;
|
|
59
|
-
/**
|
|
60
|
-
* The controlled selected value(s).
|
|
61
|
-
* Pass a `Key[]` when `selectionMode` is `"multiple"`.
|
|
62
|
-
*/
|
|
63
|
-
value?: Key | Key[] | null;
|
|
64
35
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
};
|
|
69
|
-
export
|
|
70
|
-
|
|
71
|
-
|
|
36
|
+
type AriaComboBoxPropsToOmit = "slot";
|
|
37
|
+
type AriaComboBoxPropsToInclude = "allowsEmptyCollection" | "defaultInputValue" | "defaultItems" | "defaultValue" | "disabledKeys" | "inputValue" | "items" | "menuTrigger" | "name" | "onInputChange" | "selectionMode" | "value";
|
|
38
|
+
export type ComboBoxElementProps<T extends object = object> = CombineAriaPropsWithCustomProps<AriaComboBoxProps<T, "single" | "multiple">, ComboBoxProps<T>, AriaComboBoxPropsToOmit, AriaComboBoxPropsToInclude>;
|
|
39
|
+
export declare function ComboBox<T extends object>({ children, className, description, disabled, filter, hideLabel, invalid, label, menuTrigger, onChange, placeholder, readOnly, required, size, ...restProps }: ComboBoxElementProps<T>): React.JSX.Element;
|
|
40
|
+
export interface ComboBoxItemProps {
|
|
41
|
+
/** Disables the item. */
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
}
|
|
44
|
+
type AriaListBoxItemPropsToOmit = "isDisabled";
|
|
45
|
+
type AriaListBoxItemPropsToInclude = "onAction" | "textValue" | "value";
|
|
46
|
+
export type ComboBoxItemElementProps<T extends object = object> = CombineAriaPropsWithCustomProps<ListBoxItemProps<T>, ComboBoxItemProps, AriaListBoxItemPropsToOmit, AriaListBoxItemPropsToInclude>;
|
|
47
|
+
export declare function ComboBoxItem<T extends object>({ className, disabled, ...restProps }: ComboBoxItemElementProps<T>): React.JSX.Element;
|
|
48
|
+
export interface ComboBoxSectionProps {
|
|
49
|
+
/** The items rendered within the section. */
|
|
72
50
|
children: ReactNode;
|
|
51
|
+
/** Optional heading text rendered above the section's items. */
|
|
73
52
|
title?: string;
|
|
74
53
|
}
|
|
75
|
-
|
|
54
|
+
type AriaListBoxSectionPropsToInclude = "dependencies";
|
|
55
|
+
export type ComboBoxSectionElementProps<T extends object = object> = CombineAriaPropsWithCustomProps<ListBoxSectionProps<T>, ComboBoxSectionProps, never, AriaListBoxSectionPropsToInclude>;
|
|
56
|
+
export declare function ComboBoxSection<T extends object>({ children, className, title, ...restProps }: ComboBoxSectionElementProps<T>): React.JSX.Element;
|
|
76
57
|
export {};
|
|
77
58
|
//# sourceMappingURL=ComboBox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboBox.d.ts","sourceRoot":"","sources":["../../../src/components/combo-box/ComboBox.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAA;AAC1B,OAAO,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"ComboBox.d.ts","sourceRoot":"","sources":["../../../src/components/combo-box/ComboBox.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAA;AAC1B,OAAO,aAAa,CAAA;AAGpB,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAA;AAEhF,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,KAAK,EACV,aAAa,IAAI,iBAAiB,EAClC,GAAG,EACH,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,uBAAuB,CAAA;AAe9B,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,CAAA;AAEtC,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACtD,kFAAkF;IAClF,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,CAAC,CAAA;IAC9C,gGAAgG;IAChG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,6CAA6C;IAC7C,Q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Q,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,IAAW,EACX,GAAG,SAAS,EACb,EAAE,oBAAoB,CAAC,CAAC,CAAC,qBAqDzB;AAED,MAAM,WAAW,iBAAiB;IAChC,yBAAyB;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,KAAK,0BAA0B,GAAG,YAAY,CAAA;AAE9C,KAAK,6BAA6B,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CAAA;AAEvE,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAC5D,+BAA+B,CAC7B,gBAAgB,CAAC,CAAC,CAAC,EACnB,iBAAiB,EACjB,0BAA0B,EAC1B,6BAA6B,CAC9B,CAAA;AAEH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,EAC7C,SAAS,EACT,QAAQ,EACR,GAAG,SAAS,EACb,EAAE,wBAAwB,CAAC,CAAC,CAAC,qBAQ7B;AAED,MAAM,WAAW,oBAAoB;IACnC,6CAA6C;IAC7C,QAAQ,EAAE,SAAS,CAAA;IACnB,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,KAAK,gCAAgC,GAAG,cAAc,CAAA;AAEtD,MAAM,MAAM,2BAA2B,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAC/D,+BAA+B,CAC7B,mBAAmB,CAAC,CAAC,CAAC,EACtB,oBAAoB,EACpB,KAAK,EACL,gCAAgC,CACjC,CAAA;AAEH,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,EAChD,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,SAAS,EACb,EAAE,2BAA2B,CAAC,CAAC,CAAC,qBAYhC"}
|
|
@@ -3,14 +3,16 @@ import classNames from 'classnames';
|
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import { ComboBox as ComboBox$1, Label, Group, Input, Button, Popover, ListBox, Text, ListBoxItem, ListBoxSection, Header } from 'react-aria-components';
|
|
5
5
|
|
|
6
|
-
function ComboBox({
|
|
6
|
+
function ComboBox({ children, className, description, disabled, filter, hideLabel, invalid, label, menuTrigger, onChange, placeholder, readOnly, required, size = "md", ...restProps }) {
|
|
7
7
|
const combinedClassName = classNames("tds-combo-box", { "tds-combo-box--lg": size === "lg" }, className);
|
|
8
8
|
return (
|
|
9
|
-
// React Aria's ComboBox
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
|
|
9
|
+
// React Aria's ComboBox is generic over selection mode (M). We instantiate
|
|
10
|
+
// it with the union "single" | "multiple" so value/defaultValue/selectionMode
|
|
11
|
+
// accept both shapes. onChange still needs a cast because our type is a union
|
|
12
|
+
// of function types (to allow narrower handlers like
|
|
13
|
+
// `setValue: (Key|null) => void`), which isn't assignable to RAC's
|
|
14
|
+
// single-function signature.
|
|
15
|
+
React__default.createElement(ComboBox$1, { ...restProps, "aria-label": hideLabel ? label : undefined, className: combinedClassName, defaultFilter: filter, isDisabled: disabled, isInvalid: invalid, isReadOnly: readOnly, isRequired: required, menuTrigger: menuTrigger, onChange: onChange },
|
|
14
16
|
!hideLabel && React__default.createElement(Label, { className: "tds-combo-box-label" }, label),
|
|
15
17
|
React__default.createElement(Group, { className: "tds-combo-box-field" },
|
|
16
18
|
React__default.createElement(Input, { className: "tds-combo-box-input", placeholder: placeholder }),
|
|
@@ -22,11 +24,11 @@ function ComboBox({ allowsEmptyCollection, children, className, defaultInputValu
|
|
|
22
24
|
React__default.createElement(Icon, { "aria-hidden": true, className: "tds-combo-box-description-invalid-icon", symbol: "general#exclamation-triangle" }),
|
|
23
25
|
description))));
|
|
24
26
|
}
|
|
25
|
-
function ComboBoxItem(
|
|
26
|
-
return (React__default.createElement(ListBoxItem, { ...
|
|
27
|
+
function ComboBoxItem({ className, disabled, ...restProps }) {
|
|
28
|
+
return (React__default.createElement(ListBoxItem, { ...restProps, className: classNames("tds-combo-box-list-item", className), isDisabled: disabled }));
|
|
27
29
|
}
|
|
28
|
-
function ComboBoxSection({ children, title, ...
|
|
29
|
-
return (React__default.createElement(ListBoxSection, { ...
|
|
30
|
+
function ComboBoxSection({ children, className, title, ...restProps }) {
|
|
31
|
+
return (React__default.createElement(ListBoxSection, { ...restProps, className: classNames("tds-combo-box-list-section", className) },
|
|
30
32
|
title && (React__default.createElement(Header, { className: "tds-combo-box-section-header" }, title)),
|
|
31
33
|
children));
|
|
32
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboBox.js","sources":["../../../src/components/combo-box/ComboBox.tsx"],"sourcesContent":["import \"../button/btn.css\"\nimport \"./index.css\"\n\nimport Icon from \"@utilities/Icon\"\nimport classNames from \"classnames\"\nimport React, { type
|
|
1
|
+
{"version":3,"file":"ComboBox.js","sources":["../../../src/components/combo-box/ComboBox.tsx"],"sourcesContent":["import \"../button/btn.css\"\nimport \"./index.css\"\n\nimport Icon from \"@utilities/Icon\"\nimport type { CombineAriaPropsWithCustomProps } from \"@utilities/reactAriaProps\"\nimport classNames from \"classnames\"\nimport React, { type ReactNode } from \"react\"\nimport type {\n ComboBoxProps as AriaComboBoxProps,\n Key,\n ListBoxItemProps,\n ListBoxSectionProps,\n} from \"react-aria-components\"\nimport {\n Button,\n ComboBox as AriaComboBox,\n Group,\n Header,\n Input,\n Label,\n ListBox,\n ListBoxItem,\n ListBoxSection,\n Popover,\n Text,\n} from \"react-aria-components\"\n\nexport type ComboBoxSize = \"md\" | \"lg\"\n\nexport interface ComboBoxProps<T extends object = object> {\n /** The children of the combo box (ComboBoxItem elements or a render function). */\n children: ReactNode | ((item: T) => ReactNode)\n /** Helper text displayed below the component. Styled as error text when `invalid` is `true`. */\n description?: string\n /** Disables the field and trigger button. */\n disabled?: boolean\n /** Custom filter function for determining if an item should appear in the list. */\n filter?: (textValue: string, inputValue: string) => boolean\n /** If `true`, the `label` text is rendered as an `aria-label` instead of a visible label element. */\n hideLabel?: boolean\n /** Whether the input is in an invalid state. */\n invalid?: boolean\n /** Accessible label for the field. */\n label: string\n /**\n * Called when the selected value(s) change.\n * Receives `Key[]` when `selectionMode` is `\"multiple\"`, otherwise `Key | null`.\n */\n onChange?: ((value: Key | null) => void) | ((value: Key[]) => void)\n /** Placeholder text for the input. */\n placeholder?: string\n /** If `true`, allows the value to be read but not changed. */\n readOnly?: boolean\n /** If `true`, appends an asterisk at the end of the label text. */\n required?: boolean\n /** The size of the combo box. */\n size?: ComboBoxSize\n}\n\ntype AriaComboBoxPropsToOmit = \"slot\"\n\ntype AriaComboBoxPropsToInclude =\n | \"allowsEmptyCollection\"\n | \"defaultInputValue\"\n | \"defaultItems\"\n | \"defaultValue\"\n | \"disabledKeys\"\n | \"inputValue\"\n | \"items\"\n | \"menuTrigger\"\n | \"name\"\n | \"onInputChange\"\n | \"selectionMode\"\n | \"value\"\n\nexport type ComboBoxElementProps<T extends object = object> =\n CombineAriaPropsWithCustomProps<\n AriaComboBoxProps<T, \"single\" | \"multiple\">,\n ComboBoxProps<T>,\n AriaComboBoxPropsToOmit,\n AriaComboBoxPropsToInclude\n >\n\nexport function ComboBox<T extends object>({\n children,\n className,\n description,\n disabled,\n filter,\n hideLabel,\n invalid,\n label,\n menuTrigger,\n onChange,\n placeholder,\n readOnly,\n required,\n size = \"md\",\n ...restProps\n}: ComboBoxElementProps<T>) {\n const combinedClassName = classNames(\n \"tds-combo-box\",\n { \"tds-combo-box--lg\": size === \"lg\" },\n className\n )\n\n return (\n // React Aria's ComboBox is generic over selection mode (M). We instantiate\n // it with the union \"single\" | \"multiple\" so value/defaultValue/selectionMode\n // accept both shapes. onChange still needs a cast because our type is a union\n // of function types (to allow narrower handlers like\n // `setValue: (Key|null) => void`), which isn't assignable to RAC's\n // single-function signature.\n <AriaComboBox<T, \"single\" | \"multiple\">\n {...restProps}\n aria-label={hideLabel ? label : undefined}\n className={combinedClassName}\n defaultFilter={filter}\n isDisabled={disabled}\n isInvalid={invalid}\n isReadOnly={readOnly}\n isRequired={required}\n menuTrigger={menuTrigger}\n onChange={onChange as (value: Key | Key[] | null) => void}\n >\n {!hideLabel && <Label className=\"tds-combo-box-label\">{label}</Label>}\n <Group className=\"tds-combo-box-field\">\n <Input className=\"tds-combo-box-input\" placeholder={placeholder} />\n <Button\n className={classNames(\n \"tds-combo-box-button\",\n menuTrigger !== \"focus\" && \"tds-btn tds-btn--infield\"\n )}\n >\n <Icon aria-hidden symbol=\"general#down-caret\" />\n </Button>\n </Group>\n <Popover className=\"tds-combo-box-popover\">\n <ListBox className=\"tds-combo-box-list\">{children}</ListBox>\n </Popover>\n {description && (\n <Text className=\"tds-combo-box-description\" slot=\"description\">\n <Icon\n aria-hidden\n className=\"tds-combo-box-description-invalid-icon\"\n symbol=\"general#exclamation-triangle\"\n />\n {description}\n </Text>\n )}\n </AriaComboBox>\n )\n}\n\nexport interface ComboBoxItemProps {\n /** Disables the item. */\n disabled?: boolean\n}\n\ntype AriaListBoxItemPropsToOmit = \"isDisabled\"\n\ntype AriaListBoxItemPropsToInclude = \"onAction\" | \"textValue\" | \"value\"\n\nexport type ComboBoxItemElementProps<T extends object = object> =\n CombineAriaPropsWithCustomProps<\n ListBoxItemProps<T>,\n ComboBoxItemProps,\n AriaListBoxItemPropsToOmit,\n AriaListBoxItemPropsToInclude\n >\n\nexport function ComboBoxItem<T extends object>({\n className,\n disabled,\n ...restProps\n}: ComboBoxItemElementProps<T>) {\n return (\n <ListBoxItem\n {...restProps}\n className={classNames(\"tds-combo-box-list-item\", className)}\n isDisabled={disabled}\n />\n )\n}\n\nexport interface ComboBoxSectionProps {\n /** The items rendered within the section. */\n children: ReactNode\n /** Optional heading text rendered above the section's items. */\n title?: string\n}\n\ntype AriaListBoxSectionPropsToInclude = \"dependencies\"\n\nexport type ComboBoxSectionElementProps<T extends object = object> =\n CombineAriaPropsWithCustomProps<\n ListBoxSectionProps<T>,\n ComboBoxSectionProps,\n never,\n AriaListBoxSectionPropsToInclude\n >\n\nexport function ComboBoxSection<T extends object>({\n children,\n className,\n title,\n ...restProps\n}: ComboBoxSectionElementProps<T>) {\n return (\n <ListBoxSection\n {...restProps}\n className={classNames(\"tds-combo-box-list-section\", className)}\n >\n {title && (\n <Header className=\"tds-combo-box-section-header\">{title}</Header>\n )}\n {children}\n </ListBoxSection>\n )\n}\n"],"names":["React","AriaComboBox"],"mappings":";;;;;SAmFgB,QAAQ,CAAmB,EACzC,QAAQ,EACR,SAAS,EACT,WAAW,EACX,QAAQ,EACR,MAAM,EACN,SAAS,EACT,OAAO,EACP,KAAK,EACL,WAAW,EACX,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,IAAI,GAAG,IAAI,EACX,GAAG,SAAS,EACY,EAAA;AACxB,IAAA,MAAM,iBAAiB,GAAG,UAAU,CAClC,eAAe,EACf,EAAE,mBAAmB,EAAE,IAAI,KAAK,IAAI,EAAE,EACtC,SAAS,CACV;IAED;;;;;;;IAOEA,cAAA,CAAA,aAAA,CAACC,UAAY,OACP,SAAS,EAAA,YAAA,EACD,SAAS,GAAG,KAAK,GAAG,SAAS,EACzC,SAAS,EAAE,iBAAiB,EAC5B,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,QAAQ,EACpB,SAAS,EAAE,OAAO,EAClB,UAAU,EAAE,QAAQ,EACpB,UAAU,EAAE,QAAQ,EACpB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAA+C,EAAA;QAExD,CAAC,SAAS,IAAID,cAAA,CAAA,aAAA,CAAC,KAAK,EAAA,EAAC,SAAS,EAAC,qBAAqB,EAAA,EAAE,KAAK,CAAS;AACrE,QAAAA,cAAA,CAAA,aAAA,CAAC,KAAK,EAAA,EAAC,SAAS,EAAC,qBAAqB,EAAA;YACpCA,cAAA,CAAA,aAAA,CAAC,KAAK,IAAC,SAAS,EAAC,qBAAqB,EAAC,WAAW,EAAE,WAAW,EAAA,CAAI;AACnE,YAAAA,cAAA,CAAA,aAAA,CAAC,MAAM,EAAA,EACL,SAAS,EAAE,UAAU,CACn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|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
export type { ComboBoxElementProps, ComboBoxProps, ComboBoxSize, } from "./ComboBox";
|
|
2
|
+
export type { ComboBoxElementProps, ComboBoxItemElementProps, ComboBoxItemProps, ComboBoxProps, ComboBoxSectionElementProps, ComboBoxSectionProps, ComboBoxSize, } from "./ComboBox";
|
|
3
3
|
export { ComboBox, ComboBoxItem, ComboBoxSection } from "./ComboBox";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/combo-box/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,YAAY,EACV,oBAAoB,EACpB,aAAa,EACb,YAAY,GACb,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/combo-box/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,YAAY,EACV,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,aAAa,EACb,2BAA2B,EAC3B,oBAAoB,EACpB,YAAY,GACb,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA"}
|