@voxel51/voodo 2.10.0-app-revamp.1 → 2.10.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/dist/components/Alert/Alert.d.ts +39 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +4 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.d.ts +3 -3
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/Divider/Divider.d.ts +4 -0
- package/dist/components/Divider/Divider.d.ts.map +1 -1
- package/dist/components/Dropzone/Dropzone.d.ts.map +1 -1
- package/dist/components/FormField/FieldText.d.ts +16 -0
- package/dist/components/FormField/FieldText.d.ts.map +1 -0
- package/dist/components/FormField/FormField.d.ts +1 -1
- package/dist/components/IconAction/IconAction.d.ts +8 -2
- package/dist/components/IconAction/IconAction.d.ts.map +1 -1
- package/dist/components/ListRow/ListRow.d.ts +6 -0
- package/dist/components/ListRow/ListRow.d.ts.map +1 -1
- package/dist/components/Menu/MenuCheckItem.d.ts +4 -1
- package/dist/components/Menu/MenuCheckItem.d.ts.map +1 -1
- package/dist/components/Menu/MenuIconTextItem.d.ts +3 -0
- package/dist/components/Menu/MenuIconTextItem.d.ts.map +1 -1
- package/dist/components/MetaList/MetaList.d.ts +21 -0
- package/dist/components/MetaList/MetaList.d.ts.map +1 -0
- package/dist/components/MetaList/index.d.ts +2 -0
- package/dist/components/MetaList/index.d.ts.map +1 -0
- package/dist/components/Modal/Modal.d.ts +2 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/OverflowRow/OverflowRow.d.ts +9 -0
- package/dist/components/OverflowRow/OverflowRow.d.ts.map +1 -1
- package/dist/components/Radio/Radio.d.ts +4 -1
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/Radio/RadioGroup.d.ts +2 -0
- package/dist/components/Radio/RadioGroup.d.ts.map +1 -1
- package/dist/components/Select/Option.d.ts +1 -0
- package/dist/components/Select/Option.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +2 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Slider/Slider.d.ts +6 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.d.ts +41 -0
- package/dist/components/SplitButton/SplitButton.d.ts.map +1 -0
- package/dist/components/SplitButton/index.d.ts +2 -0
- package/dist/components/SplitButton/index.d.ts.map +1 -0
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/TagInput/TagInput.d.ts +1 -1
- package/dist/components/TagInput/TagInput.d.ts.map +1 -1
- package/dist/components/TextLink/TextLink.d.ts +27 -0
- package/dist/components/TextLink/TextLink.d.ts.map +1 -0
- package/dist/components/TextLink/index.d.ts +2 -0
- package/dist/components/TextLink/index.d.ts.map +1 -0
- package/dist/components/Toggle/Toggle.d.ts +4 -1
- package/dist/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4742 -4369
- package/dist/index.js.map +1 -1
- package/dist/styles/rule.d.ts +5 -0
- package/dist/styles/rule.d.ts.map +1 -0
- package/dist/util/compact.d.ts +4 -0
- package/dist/util/compact.d.ts.map +1 -1
- package/dist/util/useOverflowFit.d.ts +2 -0
- package/dist/util/useOverflowFit.d.ts.map +1 -1
- package/dist/util/useTextHighlight.d.ts +21 -0
- package/dist/util/useTextHighlight.d.ts.map +1 -0
- package/dist/voodo.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export declare const AlertTone: {
|
|
3
|
+
readonly Failure: "failure";
|
|
4
|
+
readonly Warning: "warning";
|
|
5
|
+
readonly Info: "info";
|
|
6
|
+
readonly Success: "success";
|
|
7
|
+
};
|
|
8
|
+
export type AlertTone = `${(typeof AlertTone)[keyof typeof AlertTone]}`;
|
|
9
|
+
export declare namespace AlertTone {
|
|
10
|
+
type Failure = typeof AlertTone.Failure;
|
|
11
|
+
type Warning = typeof AlertTone.Warning;
|
|
12
|
+
type Info = typeof AlertTone.Info;
|
|
13
|
+
type Success = typeof AlertTone.Success;
|
|
14
|
+
}
|
|
15
|
+
export interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
16
|
+
tone?: AlertTone;
|
|
17
|
+
action?: ReactNode;
|
|
18
|
+
multiline?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A single-line inline message on a tinted surface, with an optional action,
|
|
22
|
+
* for a state the page should call out, such as why a run failed.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <Alert tone="failure" action={<TextAction size="sm">View errors</TextAction>}>
|
|
27
|
+
* PackageError: umap-learn is not installed
|
|
28
|
+
* </Alert>
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @param tone The {@link AlertTone}: `"failure"` (default), `"warning"`, `"info"` or `"success"`.
|
|
32
|
+
* @param action Control shown at the end of the row, such as a {@link TextAction}; it takes the tone's text colour.
|
|
33
|
+
* @param multiline Wraps a long message over several lines instead of cutting it with an ellipsis.
|
|
34
|
+
* @param className `class` overrides to apply to the component.
|
|
35
|
+
* @param children The message; cut with an ellipsis when it does not fit unless `multiline`.
|
|
36
|
+
* @param props Additional HTML properties to apply to the component.
|
|
37
|
+
*/
|
|
38
|
+
export declare const Alert: FC<AlertProps>;
|
|
39
|
+
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAM3D,eAAO,MAAM,SAAS;;;;;CAKZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,EAAE,CAAC;AAExE,yBAAiB,SAAS,CAAC;IACzB,KAAY,OAAO,GAAG,OAAO,SAAS,CAAC,OAAO,CAAC;IAC/C,KAAY,OAAO,GAAG,OAAO,SAAS,CAAC,OAAO,CAAC;IAC/C,KAAY,IAAI,GAAG,OAAO,SAAS,CAAC,IAAI,CAAC;IACzC,KAAY,OAAO,GAAG,OAAO,SAAS,CAAC,OAAO,CAAC;CAChD;AAED,MAAM,WAAW,UAAW,SAAQ,IAAI,CACtC,cAAc,CAAC,cAAc,CAAC,EAC9B,OAAO,CACR;IACC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AA4BD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAgChC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, InputHTMLAttributes } from 'react';
|
|
1
|
+
import { FC, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Radius, Size } from '../../types';
|
|
3
3
|
type ModifiedCheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "checked" | "disabled" | "className">;
|
|
4
4
|
export interface CheckboxProps extends ModifiedCheckboxProps {
|
|
@@ -6,6 +6,8 @@ export interface CheckboxProps extends ModifiedCheckboxProps {
|
|
|
6
6
|
onChange?: (checked: boolean) => void;
|
|
7
7
|
indeterminate?: boolean;
|
|
8
8
|
label?: string;
|
|
9
|
+
/** Helper text under the label, tertiary caption. */
|
|
10
|
+
description?: ReactNode;
|
|
9
11
|
disabled?: boolean;
|
|
10
12
|
size?: Size;
|
|
11
13
|
radius?: Radius;
|
|
@@ -43,6 +45,7 @@ export interface CheckboxProps extends ModifiedCheckboxProps {
|
|
|
43
45
|
* @param labelClassName `class` overrides for custom styling of the checkbox's label.
|
|
44
46
|
* @param disabled If `true`, disables the checkbox.
|
|
45
47
|
* @param label Label to display alongside the checkbox.
|
|
48
|
+
* @param description Helper text under the label.
|
|
46
49
|
* @param showUnsetHint If `true`, displays a hint to the user for checkbox interaction.
|
|
47
50
|
* @param props Additional HTML properties to apply to the checkbox.
|
|
48
51
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,mBAAmB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAOrE,OAAO,EAML,MAAM,EACN,IAAI,EAIL,MAAM,SAAS,CAAC;AAGjB,KAAK,qBAAqB,GAAG,IAAI,CAC/B,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,CAC3D,CAAC;AAEF,MAAM,WAAW,aAAc,SAAQ,qBAAqB;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAsBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAoGtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../../src/components/CodeBlock/CodeBlock.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,EAAE,EACP,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAwDf,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,cAAc,CAAC,cAAc,CAAC,EAC9B,QAAQ,GAAG,UAAU,CACtB;IACC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../../src/components/CodeBlock/CodeBlock.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,EAAE,EACP,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAwDf,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,cAAc,CAAC,cAAc,CAAC,EAC9B,QAAQ,GAAG,UAAU,CACtB;IACC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAgExC,CAAC"}
|
|
@@ -44,8 +44,8 @@ export interface DataTableProps {
|
|
|
44
44
|
rows: DataTableRow[];
|
|
45
45
|
/** Shown in place of the rows when there are none. */
|
|
46
46
|
empty?: ReactNode;
|
|
47
|
-
/** The table shows cards while it is narrower than this. Defaults to `"sm"`. */
|
|
48
|
-
cardBelow?: Breakpoint;
|
|
47
|
+
/** The table shows cards while it is narrower than this; `"never"` keeps the table. Defaults to `"sm"`. */
|
|
48
|
+
cardBelow?: Breakpoint | "never";
|
|
49
49
|
className?: string;
|
|
50
50
|
/** Names the table for assistive technology. */
|
|
51
51
|
"aria-label"?: string;
|
|
@@ -88,7 +88,7 @@ export interface DataTableProps {
|
|
|
88
88
|
* @param columns The columns, in wide-mode order. See {@link DataTableColumn}.
|
|
89
89
|
* @param rows The rows. See {@link DataTableRow}.
|
|
90
90
|
* @param empty Shown in place of the rows when there are none.
|
|
91
|
-
* @param cardBelow Breakpoint under which the table shows cards. Defaults to `"sm"` (640px).
|
|
91
|
+
* @param cardBelow Breakpoint under which the table shows cards. Defaults to `"sm"` (640px); `"never"` keeps the table at any width, such as in a modal.
|
|
92
92
|
* @param className Additional CSS class names for the table, or the box holding the cards.
|
|
93
93
|
* @param aria-label Names the table for assistive technology.
|
|
94
94
|
* @param children More rows as {@link DataTableRowItem} elements, for rows with hooks or state.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,EAAE,EACF,cAAc,EAEd,SAAS,EACT,cAAc,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,EAAE,EACF,cAAc,EAEd,SAAS,EACT,cAAc,EACf,MAAM,OAAO,CAAC;AAuBf,OAAO,EAAqB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKxE,uCAAuC;AACvC,MAAM,MAAM,eAAe,GAAG;IAC5B,uDAAuD;IACvD,GAAG,EAAE,MAAM,CAAC;IACZ,yDAAyD;IACzD,KAAK,EAAE,SAAS,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IACjD,yFAAyF;IACzF,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IACxB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,oCAAoC;AACpC,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACjC,kGAAkG;IAClG,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1C,4EAA4E;IAC5E,KAAK,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,CAAC;IAC5C;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,sDAAsD;IACtD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,2GAA2G;IAC3G,SAAS,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAyOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAkDxC,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAQzD,CAAC"}
|
|
@@ -28,6 +28,7 @@ export interface DividerProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
28
28
|
*/
|
|
29
29
|
dividerStyle?: DividerStyle;
|
|
30
30
|
textProps?: TextProps;
|
|
31
|
+
onCard?: boolean;
|
|
31
32
|
}
|
|
32
33
|
/**
|
|
33
34
|
* A divider component used to separate content.
|
|
@@ -53,6 +54,9 @@ export interface DividerProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
53
54
|
* Defaults to `"line"`. Use `"dot"` to render a dotted line, or, when no
|
|
54
55
|
* `label` is present, a single centered dot separator.
|
|
55
56
|
* @param textProps Additional props forwarded to the label {@link Text}.
|
|
57
|
+
* @param onCard Draws the rule as {@link Table} rows do (default border color at
|
|
58
|
+
* 30%). Use it on a card surface, where the subtle rule is the card's own
|
|
59
|
+
* color in the dark theme and cannot be seen.
|
|
56
60
|
* @param props Additional HTML properties to apply to the component.
|
|
57
61
|
*/
|
|
58
62
|
export declare const Divider: FC<DividerProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAQ,SAAS,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAQ,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAGL,WAAW,EAGZ,MAAM,SAAS,CAAC;AAGjB;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AACX,MAAM,MAAM,YAAY,GACtB,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,EAAE,CAAC;AAExD,yBAAiB,YAAY,CAAC;IAC5B,KAAY,IAAI,GAAG,OAAO,YAAY,CAAC,IAAI,CAAC;IAC5C,KAAY,GAAG,GAAG,OAAO,YAAY,CAAC,GAAG,CAAC;CAC3C;AAED,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAClE,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAYD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CA8EpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropzone.d.ts","sourceRoot":"","sources":["../../../src/components/Dropzone/Dropzone.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EAAE,EACP,KAAK,cAAc,EACnB,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Dropzone.d.ts","sourceRoot":"","sources":["../../../src/components/Dropzone/Dropzone.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EAAE,EACP,KAAK,cAAc,EACnB,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AAcf,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,cAAc,CAAC,cAAc,CAAC,EAC9B,QAAQ,GAAG,YAAY,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAC5E;IACC,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACjC,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAqFtC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Label and optional helper line beside a choice control (Checkbox, Toggle,
|
|
4
|
+
* Radio); must render inside a headless `Field`.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
* @param label The control's label node.
|
|
8
|
+
* @param description Helper text under the label.
|
|
9
|
+
* @example
|
|
10
|
+
* <FieldText label={<Label>Label</Label>} description="Helper" />
|
|
11
|
+
*/
|
|
12
|
+
export declare const FieldText: FC<{
|
|
13
|
+
label?: ReactNode;
|
|
14
|
+
description?: ReactNode;
|
|
15
|
+
}>;
|
|
16
|
+
//# sourceMappingURL=FieldText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldText.d.ts","sourceRoot":"","sources":["../../../src/components/FormField/FieldText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAM3C;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC;IAAE,KAAK,CAAC,EAAE,SAAS,CAAC;IAAC,WAAW,CAAC,EAAE,SAAS,CAAA;CAAE,CAkBtE,CAAC"}
|
|
@@ -14,7 +14,7 @@ export interface FormFieldProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
14
14
|
* and error message.
|
|
15
15
|
*
|
|
16
16
|
* This component applies standard form best-practices to the contained elements, such as ensuring the label and form
|
|
17
|
-
* control are properly linked.
|
|
17
|
+
* control are properly linked. It links one control: give any extra control (a min/max pair, say) its own `id`.
|
|
18
18
|
*
|
|
19
19
|
* See also {@link FormFieldGroup}.
|
|
20
20
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, FC } from 'react';
|
|
1
|
+
import { ButtonHTMLAttributes, FC, ReactNode } from 'react';
|
|
2
2
|
import { IconInput } from '../Icons';
|
|
3
3
|
import { Size } from '../../types';
|
|
4
4
|
type IconActionSize = `${Size.Xs | Size.Sm | Size.Md | Size.Lg}`;
|
|
@@ -10,6 +10,10 @@ export interface IconActionProps extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
10
10
|
active?: boolean;
|
|
11
11
|
/** `"brand"`: brand-tinted on hover while off, as it is when on. `"danger"`: a danger fill on hover (remove, delete). */
|
|
12
12
|
tone?: IconActionTone;
|
|
13
|
+
/** Names the action in a tooltip, from its `aria-label`. */
|
|
14
|
+
tooltip?: boolean;
|
|
15
|
+
/** More about the action, such as why it is disabled: a dimmed line under its name in the tooltip. */
|
|
16
|
+
hint?: ReactNode;
|
|
13
17
|
"aria-label": string;
|
|
14
18
|
}
|
|
15
19
|
/**
|
|
@@ -24,7 +28,9 @@ export interface IconActionProps extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
24
28
|
* @param size `"xs"`, `"sm"`, `"md"` or `"lg"`. Defaults to `"md"`.
|
|
25
29
|
* @param active Shows the action as on: a filled brand-coloured glyph on a nested-card fill, brand-tinted on hover.
|
|
26
30
|
* @param tone `"brand"` gives the off state the same brand-tinted hover (a pin that is not pinned yet); `"danger"` fills with the danger colour on hover (remove, delete). Defaults to `"default"`.
|
|
27
|
-
* @param
|
|
31
|
+
* @param tooltip Names the action in a tooltip, from its `aria-label`.
|
|
32
|
+
* @param hint More about the action, such as why it is disabled: its tooltip, under its name with `tooltip`.
|
|
33
|
+
* @param aria-label Required, because the action has no visible text. In an {@link OverflowRow}'s menu it is the row's label.
|
|
28
34
|
* @param className Additional CSS class names to apply to the button.
|
|
29
35
|
* @param props Additional HTML button properties, such as `onClick`.
|
|
30
36
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconAction.d.ts","sourceRoot":"","sources":["../../../src/components/IconAction/IconAction.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"IconAction.d.ts","sourceRoot":"","sources":["../../../src/components/IconAction/IconAction.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,KAAK,SAAS,EAAe,MAAM,oBAAoB,CAAC;AAIjE,OAAO,EAOL,IAAI,EAEL,MAAM,SAAS,CAAC;AAGjB,KAAK,cAAc,GAAG,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;AAEjE,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE5D,MAAM,WAAW,eAAgB,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC9E,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,mFAAmF;IACnF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,yHAAyH;IACzH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sGAAsG;IACtG,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAoBD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA8E1C,CAAC"}
|
|
@@ -8,6 +8,10 @@ export interface ListRowProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElemen
|
|
|
8
8
|
leading?: ReactNode;
|
|
9
9
|
/** Controls at the row's end, outside the link (an unpin `IconAction`, say). */
|
|
10
10
|
actions?: ReactNode;
|
|
11
|
+
/** Draws the row in its hover surface, for a keyboard-highlighted row in a list. */
|
|
12
|
+
active?: boolean;
|
|
13
|
+
/** Dims the row and blocks its click; actions stay usable. */
|
|
14
|
+
disabled?: boolean;
|
|
11
15
|
}
|
|
12
16
|
/**
|
|
13
17
|
* A compact clickable row for side lists such as recent runs or pinned items:
|
|
@@ -28,6 +32,8 @@ export interface ListRowProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElemen
|
|
|
28
32
|
* @param subtitle A second line under the title, in secondary text.
|
|
29
33
|
* @param leading A marker before the text, aligned with the title (a `StatusDot`, say).
|
|
30
34
|
* @param actions Controls at the row's end, kept outside the link or button.
|
|
35
|
+
* @param active Draws the row in its hover surface (a keyboard-highlighted row).
|
|
36
|
+
* @param disabled Dims the row and blocks its click; actions stay usable.
|
|
31
37
|
* @param href Makes the row a link; without it the row is a button (use `onClick`).
|
|
32
38
|
* @param className `class` overrides for the row.
|
|
33
39
|
* @param props Additional link (or button) properties, applied to the clickable part.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListRow.d.ts","sourceRoot":"","sources":["../../../src/components/ListRow/ListRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAEpB,SAAS,EACV,MAAM,OAAO,CAAC;AAef,MAAM,WAAW,YAAa,SAAQ,IAAI,CACxC,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,OAAO,CACR;IACC,wFAAwF;IACxF,KAAK,EAAE,SAAS,CAAC;IACjB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,gFAAgF;IAChF,OAAO,CAAC,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ListRow.d.ts","sourceRoot":"","sources":["../../../src/components/ListRow/ListRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAEpB,SAAS,EACV,MAAM,OAAO,CAAC;AAef,MAAM,WAAW,YAAa,SAAQ,IAAI,CACxC,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,OAAO,CACR;IACC,wFAAwF;IACxF,KAAK,EAAE,SAAS,CAAC;IACjB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,gFAAgF;IAChF,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,oFAAoF;IACpF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,OAAO,4GAiFnB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react';
|
|
1
|
+
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Props for {@link MenuCheckItem}.
|
|
4
4
|
*/
|
|
@@ -9,6 +9,8 @@ export interface MenuCheckItemProps extends HTMLAttributes<HTMLButtonElement> {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
/** A single-select option: the check trails the label and choosing closes the menu. */
|
|
11
11
|
select?: boolean;
|
|
12
|
+
/** A second line under the label, wrapping if it is long. */
|
|
13
|
+
description?: ReactNode;
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* A selectable menu item with a leading checkmark indicator.
|
|
@@ -43,6 +45,7 @@ export interface MenuCheckItemProps extends HTMLAttributes<HTMLButtonElement> {
|
|
|
43
45
|
* @param checked If `true`, a checkmark is shown in the leading slot.
|
|
44
46
|
* @param disabled If `true`, the item cannot be interacted with.
|
|
45
47
|
* @param select A single-select option: trailing check, closes the menu on click.
|
|
48
|
+
* @param description A second line under the label, such as what a permission allows.
|
|
46
49
|
* @param children The label text.
|
|
47
50
|
* @param className `class` overrides to apply to the component.
|
|
48
51
|
* @param props Additional HTML properties to apply to the component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuCheckItem.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuCheckItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuCheckItem.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuCheckItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAS3D;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,iBAAiB,CAAC;IAC3E,uDAAuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sFAAsF;IACtF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uFAAuF;IACvF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA+DhD,CAAC"}
|
|
@@ -14,6 +14,8 @@ export interface MenuIconTextItemProps extends HTMLAttributes<HTMLButtonElement>
|
|
|
14
14
|
text: string;
|
|
15
15
|
/** Optional secondary description shown below the primary text. */
|
|
16
16
|
subtext?: string;
|
|
17
|
+
/** A short tag after the text, e.g. a `TextBadge` reading "Beta". */
|
|
18
|
+
badge?: ReactNode;
|
|
17
19
|
/** If `true`, the item cannot be interacted with and is rendered in a muted style. */
|
|
18
20
|
disabled?: boolean;
|
|
19
21
|
/** If `true`, renders the text and icon in the failure color, and fills the row with the danger color (white content) on hover and focus. */
|
|
@@ -48,6 +50,7 @@ export interface MenuIconTextItemProps extends HTMLAttributes<HTMLButtonElement>
|
|
|
48
50
|
*
|
|
49
51
|
* @param icon An icon element (e.g. `<EditIcon />`) rendered in the leading slot; a legacy {@link IconName} is still accepted.
|
|
50
52
|
* @param text The primary label for the item.
|
|
53
|
+
* @param badge A short tag after the text, e.g. `<TextBadge color="text-tertiary">Beta</TextBadge>`.
|
|
51
54
|
* @param subtext An optional secondary line rendered below the primary text in muted color.
|
|
52
55
|
* @param disabled If `true`, the item cannot be interacted with.
|
|
53
56
|
* @param destructive If `true`, renders the text and icon in the failure color, and fills the row with the danger color (white content) on hover and focus.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuIconTextItem.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuIconTextItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI3D,OAAO,EAEL,QAAQ,EACR,SAAS,EAET,WAA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ACH,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA+EtD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC, HTMLAttributes } from 'react';
|
|
2
|
+
export type MetaListProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
+
/**
|
|
4
|
+
* A wrapping line of short facts separated by dim dots, such as
|
|
5
|
+
* `Dev User · Started 7 days ago · Ran for 7s`.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <MetaList>
|
|
10
|
+
* <span>Dev User</span>
|
|
11
|
+
* <span>Started 7 days ago</span>
|
|
12
|
+
* <span>Ran for 7s</span>
|
|
13
|
+
* </MetaList>
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @param className `class` overrides to apply to the component.
|
|
17
|
+
* @param children The facts; empty children (`false`, `null`) are skipped.
|
|
18
|
+
* @param props Additional HTML properties to apply to the component.
|
|
19
|
+
*/
|
|
20
|
+
export declare const MetaList: FC<MetaListProps>;
|
|
21
|
+
//# sourceMappingURL=MetaList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetaList.d.ts","sourceRoot":"","sources":["../../../src/components/MetaList/MetaList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,EAAE,EACP,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAMf,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAE3D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA2BtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MetaList/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -67,6 +67,8 @@ export interface ModalProps {
|
|
|
67
67
|
contentClassName?: string;
|
|
68
68
|
/** Accessible name when there is no visible `title`. */
|
|
69
69
|
"aria-label"?: string;
|
|
70
|
+
/** Test id for the modal's root. */
|
|
71
|
+
"data-testid"?: string;
|
|
70
72
|
/** Modal content. */
|
|
71
73
|
children?: ReactNode;
|
|
72
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAK3E,OAAO,EAcL,MAAM,EAEP,MAAM,SAAS,CAAC;AAGjB;;;GAGG;AACH,eAAO,MAAM,SAAS;IACpB,oDAAoD;;IAEpD,8DAA8D;;IAE9D,4CAA4C;;IAE5C,6BAA6B;;CAErB,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,EAAE,CAAC;AAExE,yBAAiB,SAAS,CAAC;IACzB,KAAY,EAAE,GAAG,OAAO,SAAS,CAAC,EAAE,CAAC;IACrC,KAAY,EAAE,GAAG,OAAO,SAAS,CAAC,EAAE,CAAC;IACrC,KAAY,EAAE,GAAG,OAAO,SAAS,CAAC,EAAE,CAAC;IACrC,KAAY,EAAE,GAAG,OAAO,SAAS,CAAC,EAAE,CAAC;CACtC;AASD,MAAM,WAAW,UAAU;IACzB,mEAAmE;IACnE,IAAI,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,iDAAiD;IACjD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,8EAA8E;IAC9E,WAAW,CAAC,EAAE,SAAS,CAAC;IACx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AE,MAAM,CAAC;IACtB,oCAAoC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAkJhC,CAAC"}
|
|
@@ -11,6 +11,13 @@ export interface OverflowRowProps extends Omit<HTMLAttributes<HTMLDivElement>, "
|
|
|
11
11
|
* both; see {@link useOverflowRowFit}). Default `false`.
|
|
12
12
|
*/
|
|
13
13
|
compactable?: boolean;
|
|
14
|
+
/** Size of the overflow button: `"md"` (default) or `"sm"`, beside small actions. */
|
|
15
|
+
size?: "sm" | "md";
|
|
16
|
+
/**
|
|
17
|
+
* Takes only the width its items need, shrinking (and folding items into the
|
|
18
|
+
* menu) when the parent is narrower, instead of filling the parent. Default `false`.
|
|
19
|
+
*/
|
|
20
|
+
hug?: boolean;
|
|
14
21
|
/**
|
|
15
22
|
* Called when the row shortens or restores its items: whether they are cut,
|
|
16
23
|
* compact or partly in the menu, so neighbours can shrink alongside.
|
|
@@ -32,6 +39,8 @@ export type { OverflowRowFit };
|
|
|
32
39
|
* @param children The items, in priority order: the last ones move into the menu first.
|
|
33
40
|
* @param label Accessible label of the overflow button. Default `"More"`.
|
|
34
41
|
* @param onFitChange Called when the row shortens or restores its items, so neighbours can shrink alongside.
|
|
42
|
+
* @param size Size of the overflow button: `"md"` (default) or `"sm"`, beside small actions. Items in its menu render in full: an {@link IconAction} becomes a labelled menu row.
|
|
43
|
+
* @param hug Takes only the width its items need, shrinking and folding when the parent is narrower, instead of filling it. Default `false`.
|
|
35
44
|
* @param compactable Lets the items shrink before any move into the menu: labels cut widest first, then icon-only (see {@link useOverflowRowFit}). Default `false`.
|
|
36
45
|
* @param className `class` overrides for the root.
|
|
37
46
|
* @param props Additional HTML properties for the root.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverflowRow.d.ts","sourceRoot":"","sources":["../../../src/components/OverflowRow/OverflowRow.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,EAAE,EACP,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAMf,OAAO,
|
|
1
|
+
{"version":3,"file":"OverflowRow.d.ts","sourceRoot":"","sources":["../../../src/components/OverflowRow/OverflowRow.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,EAAE,EACP,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAMf,OAAO,EAEL,yBAAyB,EACzB,KAAK,cAAc,EACnB,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AASxB,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAC5C,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,CACX;IACC,4EAA4E;IAC5E,QAAQ,EAAE,SAAS,CAAC;IACpB,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qFAAqF;IACrF,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,GAAG;QAAE,MAAM,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;CACnE;AAED,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,CAAC;AAC/E,YAAY,EAAE,cAAc,EAAE,CAAC;AAK/B;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA2E5C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, HTMLAttributes, InputHTMLAttributes } from 'react';
|
|
1
|
+
import { FC, HTMLAttributes, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Size } from '../../types';
|
|
3
3
|
type DataAttributes = {
|
|
4
4
|
[key: `data-${string}`]: string | undefined;
|
|
@@ -7,6 +7,8 @@ type ModifiedRadioProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "
|
|
|
7
7
|
export interface RadioProps extends ModifiedRadioProps {
|
|
8
8
|
value?: string;
|
|
9
9
|
label?: string;
|
|
10
|
+
/** Helper text under the label, tertiary caption. */
|
|
11
|
+
description?: ReactNode;
|
|
10
12
|
disabled?: boolean;
|
|
11
13
|
/**
|
|
12
14
|
* @deprecated Figma draws one radio size, so this no longer changes the
|
|
@@ -39,6 +41,7 @@ export interface RadioProps extends ModifiedRadioProps {
|
|
|
39
41
|
* @param className `class` overrides to apply to the radio.
|
|
40
42
|
* @param labelClassName `class` overrides to apply to the radio's label.
|
|
41
43
|
* @param label Label to display for the radio element.
|
|
44
|
+
* @param description Helper text under the label.
|
|
42
45
|
* @param disabled If `true`, disables the radio element.
|
|
43
46
|
* @param fieldProps Additional HTML properties to apply to the row holding the radio and its label.
|
|
44
47
|
* @param props Additional HTML properties to apply to the radio.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EAAE,EACP,KAAK,cAAc,EACnB,mBAAmB,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,IAAI,EAA0C,MAAM,SAAS,CAAC;AAKvE,KAAK,cAAc,GAAG;IAAE,CAAC,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAEtE,KAAK,kBAAkB,GAAG,IAAI,CAC5B,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CACpE,CAAC;AAEF,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,cAAc,CAAC;CAC9D;AASD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAwGhC,CAAC"}
|
|
@@ -4,6 +4,8 @@ import { RadioProps } from './Radio';
|
|
|
4
4
|
export interface RadioOption {
|
|
5
5
|
value: string;
|
|
6
6
|
label: string;
|
|
7
|
+
/** Helper text under the option label. */
|
|
8
|
+
description?: RadioProps["description"];
|
|
7
9
|
disabled?: boolean;
|
|
8
10
|
/** Additional HTML properties for this option's row alone */
|
|
9
11
|
fieldProps?: RadioProps["fieldProps"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/RadioGroup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,cAAc,EAAW,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAI/B,OAAO,EAAS,UAAU,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,WA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CAAC,aAAa,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6DAA6D;IAC7D,UAAU,CAAC,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;CACvC;AAED,MAAM,MAAM,cAAc,GAAG,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;AAEzD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,CACX;IACC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4FAA4F;IAC5F,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAgD1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Option.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAiBhD,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Option.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAiBhD,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAoClC,CAAC"}
|
|
@@ -26,6 +26,7 @@ export interface SelectProps extends Omit<HTMLAttributes<HTMLDivElement>, "onCha
|
|
|
26
26
|
options?: Descriptor<{
|
|
27
27
|
label: string;
|
|
28
28
|
content?: ReactNode;
|
|
29
|
+
disabled?: boolean;
|
|
29
30
|
}>[];
|
|
30
31
|
zIndex?: ZIndex;
|
|
31
32
|
portal?: boolean;
|
|
@@ -108,7 +109,7 @@ export interface SelectProps extends Omit<HTMLAttributes<HTMLDivElement>, "onCha
|
|
|
108
109
|
* @param onChange Callback triggered when selection state changes. Receives the
|
|
109
110
|
* selected option `id` (a string, or `null`) when `exclusive`, otherwise an
|
|
110
111
|
* array of selected `id`s.
|
|
111
|
-
* @param options List of component descriptors which will be used to create {@link Option} child components.
|
|
112
|
+
* @param options List of component descriptors which will be used to create {@link Option} child components; `data.disabled` makes an option unselectable.
|
|
112
113
|
* @param zIndex Z-index level for the dropdown.
|
|
113
114
|
* @param portal If `true`, renders the options in a portal that always stacks
|
|
114
115
|
* above modals, overriding `zIndex`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAOA,OAAO,EACL,EAAE,EACF,cAAc,EACd,SAAS,EAMV,MAAM,OAAO,CAAC;AAOf,OAAO,EAKL,UAAU,EAGV,IAAI,EAGJ,MAAM,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFG;AACH,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CA4JlC,CAAC"}
|
|
@@ -4,6 +4,8 @@ export interface SliderProps extends Omit<HTMLAttributes<HTMLDivElement>, "onCha
|
|
|
4
4
|
bare?: boolean;
|
|
5
5
|
debounceDelay?: number;
|
|
6
6
|
formatLabel?: (value: number) => ReactNode;
|
|
7
|
+
formatInput?: (value: number) => string;
|
|
8
|
+
parseInput?: (text: string) => number;
|
|
7
9
|
labeled?: boolean;
|
|
8
10
|
knobLabel?: boolean;
|
|
9
11
|
min: number;
|
|
@@ -51,6 +53,10 @@ export interface MultiValueSliderProps extends Omit<SliderProps, "multi" | "onCh
|
|
|
51
53
|
* Note that internal state updates are *not* debounced, so this value does not affect slider responsiveness.
|
|
52
54
|
* @param formatLabel Renders the endpoint and knob labels for a value, e.g. a date for a timestamp.
|
|
53
55
|
* Defaults to the value truncated to `step`.
|
|
56
|
+
* @param formatInput Renders a value as the text of a numeric input, e.g. `40` for `0.4` as a percent.
|
|
57
|
+
* Defaults to the plain number. Pair it with `parseInput`.
|
|
58
|
+
* @param parseInput Reads a numeric input's text back into a value, the inverse of `formatInput`.
|
|
59
|
+
* Defaults to `Number.parseFloat`.
|
|
54
60
|
* @param labeled If `true`, displays labels for `min` and `max` slider endpoints.
|
|
55
61
|
* @param knobLabel If `true`, displays labels above all slider knobs.
|
|
56
62
|
* With `labeled`, a knob label near an endpoint is hidden so it can't overlap the endpoint label;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,EAAE,EACF,cAAc,EACd,SAAS,
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,EAAE,EACF,cAAc,EACd,S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E,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CACjD,WAAW,EACX,OAAO,GAAG,UAAU,GAAG,mBAAmB,GAAG,OAAO,CACrD;IACC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9C,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAYD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,WAAW,CA+LtC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAexD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAetD,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps } from '../Button';
|
|
3
|
+
export interface SplitButtonProps extends Omit<ButtonProps, "trailingIcon" | "collapse"> {
|
|
4
|
+
/** Menu content for the chevron half: the Menu* primitives, such as other ways to run the action. */
|
|
5
|
+
menu?: ReactNode;
|
|
6
|
+
/** Accessible name of the chevron that opens the menu. Defaults to `"More options"`. */
|
|
7
|
+
menuLabel?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A button joined to a chevron that opens a menu of related choices, such as
|
|
11
|
+
* running an action now or scheduling it.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <SplitButton
|
|
16
|
+
* onClick={run}
|
|
17
|
+
* menu={
|
|
18
|
+
* <>
|
|
19
|
+
* <MenuCheckItem select checked={mode === "now"} onClick={() => setMode("now")}>
|
|
20
|
+
* Execute
|
|
21
|
+
* </MenuCheckItem>
|
|
22
|
+
* <MenuCheckItem select checked={mode === "later"} onClick={() => setMode("later")}>
|
|
23
|
+
* Schedule
|
|
24
|
+
* </MenuCheckItem>
|
|
25
|
+
* </>
|
|
26
|
+
* }
|
|
27
|
+
* >
|
|
28
|
+
* Execute
|
|
29
|
+
* </SplitButton>
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @param menu Menu content for the chevron half; without it the button renders alone.
|
|
33
|
+
* @param menuLabel Accessible name of the chevron. Defaults to `"More options"`.
|
|
34
|
+
* @param variant The variant of both halves. Defaults to `"primary"`.
|
|
35
|
+
* @param size The size of both halves. Defaults to `"md"`.
|
|
36
|
+
* @param disabled Disables both halves.
|
|
37
|
+
* @param className `class` overrides for the main button.
|
|
38
|
+
* @param props Additional {@link Button} properties for the main button.
|
|
39
|
+
*/
|
|
40
|
+
export declare const SplitButton: FC<SplitButtonProps>;
|
|
41
|
+
//# sourceMappingURL=SplitButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitButton.d.ts","sourceRoot":"","sources":["../../../src/components/SplitButton/SplitButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAK/D,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAC5C,WAAW,EACX,cAAc,GAAG,UAAU,CAC5B;IACC,qGAAqG;IACrG,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAgD5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SplitButton/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,EAAE,EACF,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,EAAE,EACF,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,OAAO,CAAC;AAgBf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CACpB,cAAc,CAAC,gBAAgB,CAAC,GAAG;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,CAiBjE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAqB5D,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,cAAc,CAAC,uBAAuB,CAAC,CAUnE,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,uBAAuB,CAAC,CAKjE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAkBhE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAkBhE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC, HTMLAttributes } from 'react';
|
|
2
|
-
export interface TagInputProps extends Omit<HTMLAttributes<
|
|
2
|
+
export interface TagInputProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "children"> {
|
|
3
3
|
/** The committed tags, shown as chips. */
|
|
4
4
|
value: string[];
|
|
5
5
|
/** Fires with the next tag list when a tag is added or removed. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagInput.d.ts","sourceRoot":"","sources":["../../../src/components/TagInput/TagInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EAAE,EACP,KAAK,cAAc,EAIpB,MAAM,OAAO,CAAC;AAiBf,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"TagInput.d.ts","sourceRoot":"","sources":["../../../src/components/TagInput/TagInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EAAE,EACP,KAAK,cAAc,EAIpB,MAAM,OAAO,CAAC;AAiBf,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,GAAG,UAAU,CACxB;IACC,0CAA0C;IAC1C,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,mEAAmE;IACnE,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnC,wFAAwF;IACxF,UAAU,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,iFAAiF;IACjF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAsHtC,CAAC"}
|