@voxel51/voodo 2.13.0-app-revamp.1 → 2.13.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/Avatar/Avatar.d.ts +5 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +0 -2
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/labelAttr.d.ts +3 -0
- package/dist/components/Button/labelAttr.d.ts.map +1 -0
- package/dist/components/CollapsibleCard/CollapsibleCard.d.ts +13 -16
- package/dist/components/CollapsibleCard/CollapsibleCard.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts +33 -5
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/Datepicker/DatepickerInput.d.ts +1 -2
- package/dist/components/Datepicker/DatepickerInput.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/Dropzone/Dropzone.d.ts +1 -1
- package/dist/components/Dropzone/Dropzone.d.ts.map +1 -1
- package/dist/components/EmptyArt/EmptyArt.d.ts +78 -1
- package/dist/components/EmptyArt/EmptyArt.d.ts.map +1 -1
- package/dist/components/EmptyState/DocsButton.d.ts +25 -0
- package/dist/components/EmptyState/DocsButton.d.ts.map +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +47 -1
- package/dist/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/components/EmptyState/index.d.ts +1 -0
- package/dist/components/EmptyState/index.d.ts.map +1 -1
- package/dist/components/IconAction/IconAction.d.ts.map +1 -1
- package/dist/components/Icons/Spinner.d.ts +19 -1
- package/dist/components/Icons/Spinner.d.ts.map +1 -1
- package/dist/components/Icons/icons.d.ts +3 -5
- package/dist/components/Icons/icons.d.ts.map +1 -1
- package/dist/components/Icons/index.d.ts +1 -0
- package/dist/components/Icons/index.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/MarkdownEditor/MarkdownEditor.d.ts.map +1 -1
- package/dist/components/Menu/MenuIconTextItem.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts +4 -3
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Slider/Slider.d.ts +10 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Slider/SliderBar.d.ts +2 -0
- package/dist/components/Slider/SliderBar.d.ts.map +1 -1
- package/dist/components/Slider/SliderMarks.d.ts +19 -0
- package/dist/components/Slider/SliderMarks.d.ts.map +1 -0
- package/dist/components/SplitButton/SplitButton.d.ts.map +1 -1
- package/dist/components/StatTile/StatTile.d.ts +97 -0
- package/dist/components/StatTile/StatTile.d.ts.map +1 -0
- package/dist/components/StatTile/index.d.ts +2 -0
- package/dist/components/StatTile/index.d.ts.map +1 -0
- package/dist/components/StepRail/StepRail.d.ts.map +1 -1
- package/dist/components/Table/Table.d.ts +21 -13
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Tabs/Tab.d.ts +2 -1
- package/dist/components/Tabs/Tab.d.ts.map +1 -1
- package/dist/components/TagInput/TagInput.d.ts +3 -0
- package/dist/components/TagInput/TagInput.d.ts.map +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +26 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/dist/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -1
- 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.js +5915 -5619
- package/dist/index.js.map +1 -1
- package/dist/styles/focus.d.ts +3 -0
- package/dist/styles/focus.d.ts.map +1 -0
- package/dist/types/transition.d.ts +3 -3
- package/dist/util/useCompactRow.d.ts.map +1 -1
- package/dist/voodo.css +1 -1
- package/package.json +1 -1
- package/dist/components/ListToolbar/ListToolbar.d.ts +0 -72
- package/dist/components/ListToolbar/ListToolbar.d.ts.map +0 -1
- package/dist/components/ListToolbar/index.d.ts +0 -2
- package/dist/components/ListToolbar/index.d.ts.map +0 -1
|
@@ -18,6 +18,8 @@ export interface AvatarProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
18
18
|
colorKey?: string;
|
|
19
19
|
/** Rounded square instead of a circle, for a group rather than a person. */
|
|
20
20
|
square?: boolean;
|
|
21
|
+
/** Brand-tinted fill and glyph, for the hovered row or card it leads. */
|
|
22
|
+
highlighted?: boolean;
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* A round picture of a person, falling back to their initials when there is
|
|
@@ -32,6 +34,7 @@ export interface AvatarProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
32
34
|
* <Avatar name="ada@example.com" icon={<MailOutlineIcon size="md" />} />
|
|
33
35
|
* <Avatar name="Labelers" icon={<UsersRoundIcon size={14} />} />
|
|
34
36
|
* <Avatar name="Ada Lovelace" colorKey={user.email} />
|
|
37
|
+
* <Avatar name="Run" icon={<LayersIcon size="sm" />} size="lg" highlighted={hovering} />
|
|
35
38
|
* ```
|
|
36
39
|
*
|
|
37
40
|
* @param name The person's name: it makes the initials and the accessible label.
|
|
@@ -48,6 +51,8 @@ export interface AvatarProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
48
51
|
* @param colorKey What picks the colour: a stable id such as the email.
|
|
49
52
|
* Defaults to the initials.
|
|
50
53
|
* @param square Rounded square instead of a circle, for a group.
|
|
54
|
+
* @param highlighted Tints the fill and glyph in brand, as when the row or
|
|
55
|
+
* card it leads is hovered.
|
|
51
56
|
* @param className `class` overrides to apply to the component.
|
|
52
57
|
* @param props Additional HTML properties to apply to the component.
|
|
53
58
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"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AAC,eAAe,CAAC;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4EAA4E;IAC5E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,yEAAyE;IACzE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAqHD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAsFlC,CAAC"}
|
|
@@ -27,8 +27,6 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Pi
|
|
|
27
27
|
*/
|
|
28
28
|
hint?: ReactNode;
|
|
29
29
|
}
|
|
30
|
-
/** Marks an element child as the button's text label, so the button is not read as icon-only. */
|
|
31
|
-
export declare const LABEL_ATTR = "data-button-label";
|
|
32
30
|
/**
|
|
33
31
|
* A basic button component.
|
|
34
32
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EAEpB,EAAE,EAGF,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,KAAK,SAAS,EAAe,MAAM,oBAAoB,CAAC;AAEjE,OAAuB,EACrB,KAAK,QAAQ,EAGd,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EAEpB,EAAE,EAGF,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,KAAK,SAAS,EAAe,MAAM,oBAAoB,CAAC;AAEjE,OAAuB,EACrB,KAAK,QAAQ,EAGd,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAOL,IAAI,EAIJ,OAAO,EACR,MAAM,SAAS,CAAC;AAQjB,KAAK,UAAU,GAAG,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;AAExD,MAAM,WAAW,WACf,SACE,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IAC1E;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AA8ID;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAmIlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labelAttr.d.ts","sourceRoot":"","sources":["../../../src/components/Button/labelAttr.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,eAAO,MAAM,UAAU,sBAAsB,CAAC"}
|
|
@@ -1,43 +1,40 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { CardBackground } from '../Card';
|
|
3
2
|
import { IconInput } from '../Icons/Icon';
|
|
4
3
|
import { UseDisclosureOptions } from '../../util/useDisclosure';
|
|
5
4
|
export interface CollapsibleCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "title">, UseDisclosureOptions {
|
|
6
5
|
/** The section's name, in the header. */
|
|
7
6
|
title: ReactNode;
|
|
8
7
|
/** One line after the title, such as the current choice; cut with an ellipsis. */
|
|
9
|
-
summary?:
|
|
8
|
+
summary?: ReactNode;
|
|
10
9
|
/** An 18px icon before the title; it brightens while the card is open. */
|
|
11
10
|
icon?: IconInput;
|
|
12
11
|
/** Small borderless controls shown in the header while open, left of the chevron. */
|
|
13
12
|
actions?: ReactNode;
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
/** A rule between the header and the content, with roomier content. */
|
|
19
|
-
divided?: boolean;
|
|
13
|
+
/** Shows a spinner in place of the chevron while the section's work runs. */
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
/** Keeps the content mounted (hidden) while closed, so its state and fetches survive folding. */
|
|
16
|
+
keepMounted?: boolean;
|
|
20
17
|
/** The section's content, shown while open. */
|
|
21
18
|
children?: ReactNode;
|
|
22
19
|
}
|
|
23
20
|
/**
|
|
24
21
|
* A card whose header folds its content away: an icon, a title, a one-line
|
|
25
|
-
* summary of the current choice and a chevron
|
|
26
|
-
* sections, such as a
|
|
22
|
+
* summary of the current choice and a chevron, with a rule between the header
|
|
23
|
+
* and the content. For long forms split into sections, such as a job's
|
|
24
|
+
* source, options and output.
|
|
27
25
|
*
|
|
28
26
|
* @example
|
|
29
27
|
* ```tsx
|
|
30
|
-
* <CollapsibleCard icon={
|
|
31
|
-
* <RadioGroup
|
|
28
|
+
* <CollapsibleCard icon={FolderIcon} title="Source" summary="All files (200)">
|
|
29
|
+
* <RadioGroup value={source} onChange={setSource} options={sources} />
|
|
32
30
|
* </CollapsibleCard>
|
|
33
31
|
* ```
|
|
34
32
|
*
|
|
35
33
|
* @param title The section's name, in the header.
|
|
36
34
|
* @param summary One line after the title, such as the current choice; a cut summary shows in full in a tooltip.
|
|
37
35
|
* @param icon An 18px icon before the title, emphasised while open.
|
|
38
|
-
* @param
|
|
39
|
-
* @param
|
|
40
|
-
* @param divided Draws a rule under the header and opens the content up; for a card on a plain surface.
|
|
36
|
+
* @param loading Shows a spinner in place of the chevron; the header still folds the card.
|
|
37
|
+
* @param keepMounted Keeps the content mounted but hidden while closed. Defaults to `false`.
|
|
41
38
|
* @param actions Small borderless controls shown in the header while open; a click on one never folds the card.
|
|
42
39
|
* @param defaultOpen Initial open state when uncontrolled. Defaults to `true`.
|
|
43
40
|
* @param open Controlled open state, with `onOpenChange`.
|
|
@@ -46,7 +43,7 @@ export interface CollapsibleCardProps extends Omit<HTMLAttributes<HTMLDivElement
|
|
|
46
43
|
* @param props Additional HTML properties for the card.
|
|
47
44
|
*/
|
|
48
45
|
export declare const CollapsibleCard: {
|
|
49
|
-
({ title, summary, icon, actions,
|
|
46
|
+
({ title, summary, icon, actions, loading, keepMounted, defaultOpen, open: controlledOpen, onOpenChange, className, children, ...props }: CollapsibleCardProps): ReactNode;
|
|
50
47
|
displayName: string;
|
|
51
48
|
};
|
|
52
49
|
//# sourceMappingURL=CollapsibleCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleCard.d.ts","sourceRoot":"","sources":["../../../src/components/CollapsibleCard/CollapsibleCard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CollapsibleCard.d.ts","sourceRoot":"","sources":["../../../src/components/CollapsibleCard/CollapsibleCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AAKnE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAczD,OAAO,EAAiB,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEhF,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,EAAE,oBAAoB;IAC3E,yCAAyC;IACzC,KAAK,EAAE,SAAS,CAAC;IACjB,kFAAkF;IAClF,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,qFAAqF;IACrF,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iGAAiG;IACjG,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,eAAe;8IAazB,oBAAoB,GAAG,SAAS;;CA2FlC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
1
|
+
import { FC, HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
|
|
2
2
|
import { IconInput } from '../Icons';
|
|
3
3
|
import { Size, ZIndex } from '../../types';
|
|
4
4
|
/** `data-*` attributes a host attaches to a part — a test id, a tracking hook. */
|
|
@@ -33,10 +33,14 @@ export interface ComboboxProps extends Omit<HTMLAttributes<HTMLDivElement>, "onC
|
|
|
33
33
|
options: ComboboxOption[];
|
|
34
34
|
/** The picked option, or `null` when nothing is picked. */
|
|
35
35
|
value: ComboboxOption | null;
|
|
36
|
-
/**
|
|
37
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Text in the field. Controlled, so the caller can drive a query from it
|
|
38
|
+
* and filter `options` itself. Leave it unset to let the combobox keep the
|
|
39
|
+
* text and filter `options` by label, description and group.
|
|
40
|
+
*/
|
|
41
|
+
inputValue?: string;
|
|
38
42
|
/** Fires on every keystroke with the next field text. */
|
|
39
|
-
onInputChange
|
|
43
|
+
onInputChange?: (value: string) => void;
|
|
40
44
|
/**
|
|
41
45
|
* Fires when the user picks a row, clears the field, or — with
|
|
42
46
|
* `allowFreeText` — commits text that matches no row (as an option whose
|
|
@@ -116,6 +120,15 @@ export interface ComboboxProps extends Omit<HTMLAttributes<HTMLDivElement>, "onC
|
|
|
116
120
|
* @default false
|
|
117
121
|
*/
|
|
118
122
|
autoHighlight?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Makes it a searchable pick-one list in a popover this element opens (a
|
|
125
|
+
* `DropdownTrigger`): a search field, the rows, and `footer`. Picking a row
|
|
126
|
+
* or Escape closes it; the picked row is checked. The field only searches,
|
|
127
|
+
* so typing never clears `value`.
|
|
128
|
+
*/
|
|
129
|
+
trigger?: ReactElement;
|
|
130
|
+
/** With `trigger`, pinned under the list whatever it is scrolled to. */
|
|
131
|
+
footer?: ReactNode;
|
|
119
132
|
}
|
|
120
133
|
/**
|
|
121
134
|
* A text field that suggests rows as you type.
|
|
@@ -154,9 +167,22 @@ export interface ComboboxProps extends Omit<HTMLAttributes<HTMLDivElement>, "onC
|
|
|
154
167
|
* <Combobox allowFreeText options={knownTypes} value={type} inputValue={text} onInputChange={setText} onChange={setType} />
|
|
155
168
|
* ```
|
|
156
169
|
*
|
|
170
|
+
* @example
|
|
171
|
+
* ```tsx
|
|
172
|
+
* // A searchable pick-one popover; the combobox keeps and filters the text.
|
|
173
|
+
* <Combobox
|
|
174
|
+
* trigger={<DropdownTrigger borderless prefix="Color by">{field.label}</DropdownTrigger>}
|
|
175
|
+
* options={fields}
|
|
176
|
+
* value={field}
|
|
177
|
+
* onChange={(option) => option && setField(option)}
|
|
178
|
+
* placeholder="Search fields"
|
|
179
|
+
* footer={<TextAction onClick={addField}>Add a field</TextAction>}
|
|
180
|
+
* />
|
|
181
|
+
* ```
|
|
182
|
+
*
|
|
157
183
|
* @param options Rows to offer, already filtered by the caller.
|
|
158
184
|
* @param value The picked option, or `null`.
|
|
159
|
-
* @param inputValue Controlled field text.
|
|
185
|
+
* @param inputValue Controlled field text; the caller then filters `options`. Unset, the combobox keeps the text and filters by label, description and group.
|
|
160
186
|
* @param onInputChange Fires with the next field text.
|
|
161
187
|
* @param onChange Fires when a row is picked, the field is cleared, or free text is committed.
|
|
162
188
|
* @param allowFreeText Accept text that matches no row.
|
|
@@ -179,6 +205,8 @@ export interface ComboboxProps extends Omit<HTMLAttributes<HTMLDivElement>, "onC
|
|
|
179
205
|
* @param header Shown above the list's contents whenever the list is open.
|
|
180
206
|
* @param listProps Attributes for the list.
|
|
181
207
|
* @param onOpenChange Fires when the list opens or closes.
|
|
208
|
+
* @param trigger Makes it a searchable pick-one list in a popover this element opens: picking a row or Escape closes it, and the picked row is checked.
|
|
209
|
+
* @param footer With `trigger`, pinned under the list.
|
|
182
210
|
* @param props Additional HTML properties for the wrapper.
|
|
183
211
|
*/
|
|
184
212
|
export declare const Combobox: FC<ComboboxProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.tsx"],"names":[],"mappings":"AASA,OAAO,EAOL,KAAK,EAAE,EACP,KAAK,cAAc,EAEnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.tsx"],"names":[],"mappings":"AASA,OAAO,EAOL,KAAK,EAAE,EACP,KAAK,cAAc,EAEnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,oBAAoB,CAAC;AAM5B,OAAO,EAIL,IAAI,EAIJ,MAAM,EAEP,MAAM,SAAS,CAAC;AAGjB,kFAAkF;AAClF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,QAAQ,MAAM,EAAE,EAAE,MAAM,GAAG,SAA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S,CAAC,CAAC;IACzE,2DAA2D;IAC3D,UAAU,CAAC,EAAE,cAAc,CAAC,gBAAgB,CAAC,GAAG,cAAc,CAAC;IAC/D,4EAA4E;IAC5E,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,cAAc,CAAC;IAC5D,2CAA2C;IAC3C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACvC;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,sEAAsE;IACtE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iEAAiE;IACjE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,sEAAsE;IACtE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,wEAAwE;IACxE,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAobD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAwDtC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
1
|
import { Radius, Size } from '../../types';
|
|
3
2
|
export interface DatepickerInputProps {
|
|
4
3
|
value?: string;
|
|
@@ -24,6 +23,6 @@ export interface DatepickerInputProps {
|
|
|
24
23
|
*
|
|
25
24
|
* @internal For use by {@link DatePicker}.
|
|
26
25
|
*/
|
|
27
|
-
export declare const DatepickerInput:
|
|
26
|
+
export declare const DatepickerInput: import('react').ForwardRefExoticComponent<DatepickerInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
28
27
|
export default DatepickerInput;
|
|
29
28
|
//# sourceMappingURL=DatepickerInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatepickerInput.d.ts","sourceRoot":"","sources":["../../../src/components/Datepicker/DatepickerInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DatepickerInput.d.ts","sourceRoot":"","sources":["../../../src/components/Datepicker/DatepickerInput.tsx"],"names":[],"mappings":"AAKA,OAAO,EAML,MAAM,EACN,IAAI,EAGL,MAAM,SAAS,CAAC;AA4CjB,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,mHAmE3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -40,6 +40,8 @@ interface DropdownBaseProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
40
40
|
children: ReactNode;
|
|
41
41
|
/** Position of the menu panel relative to the trigger. */
|
|
42
42
|
anchor?: DropdownAnchor;
|
|
43
|
+
/** `class` overrides for the trigger wrapper. */
|
|
44
|
+
triggerClassName?: string;
|
|
43
45
|
/**
|
|
44
46
|
* Renders the menu panel in a portal so it escapes overflow-hidden
|
|
45
47
|
* ancestors and stacks above complex layouts (modals, mosaic grids,
|
|
@@ -134,6 +136,7 @@ export type DropdownProps = DropdownBaseProps & ({
|
|
|
134
136
|
* @param disabled If `true`, the menu cannot be opened.
|
|
135
137
|
* @param open Whether the menu is open, when its owner controls it; requires `onOpenChange`. Ignored while disabled.
|
|
136
138
|
* @param onOpenChange Called with the open state the menu asks for.
|
|
139
|
+
* @param triggerClassName `class` overrides for the trigger wrapper.
|
|
137
140
|
* @param className `class` overrides for the root wrapper.
|
|
138
141
|
* @param props Additional HTML properties for the root wrapper.
|
|
139
142
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,EAAE,EACP,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,MAAM,EAAgB,MAAM,SAAS,CAAC;AAG/C;;;;;GAKG;AACH,eAAO,MAAM,cAAc;IACzB,gDAAgD;;IAEhD,gEAAgE;;IAEhE,+DAA+D;;IAE/D,gDAAgD;;IAEhD,gEAAgE;;IAEhE,+DAA+D;;CAEvD,CAAC;AACX,MAAM,MAAM,cAAc,GACxB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,EAAE,CAAC;AAE5D,yBAAiB,cAAc,CAAC;IAC9B,KAAY,MAAM,GAAG,OAAO,cAAc,CAAC,MAAM,CAAC;IAClD,KAAY,WAAW,GAAG,OAAO,cAAc,CAAC,WAAW,CAAC;IAC5D,KAAY,SAAS,GAAG,OAAO,cAAc,CAAC,SAAS,CAAC;IACxD,KAAY,GAAG,GAAG,OAAO,cAAc,CAAC,GAAG,CAAC;IAC5C,KAAY,QAAQ,GAAG,OAAO,cAAc,CAAC,QAAQ,CAAC;IACtD,KAAY,MAAM,GAAG,OAAO,cAAc,CAAC,MAAM,CAAC;CACnD;AAm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C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export interface DropzoneProps extends Omit<HTMLAttributes<HTMLDivElement>, "onDrop" | "onDragOver" | "onDragLeave" | "onClick" | "onKeyDown" | "title"> {
|
|
2
|
+
export interface DropzoneProps extends Omit<HTMLAttributes<HTMLDivElement>, "onDrop" | "onDragEnter" | "onDragOver" | "onDragLeave" | "onClick" | "onKeyDown" | "title"> {
|
|
3
3
|
onFiles: (files: File[]) => void;
|
|
4
4
|
title: ReactNode;
|
|
5
5
|
description?: ReactNode;
|
|
@@ -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;AAcf,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,cAAc,CAAC,cAAc,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,EAC5B,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,aAAa,GACb,SAAS,GACT,WAAW,GACX,OAAO,CACV;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,CA2FtC,CAAC"}
|
|
@@ -1,7 +1,84 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
2
|
export interface EmptyArtProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* The palette an {@link EmptyArtFrame} drawing uses: one accent carrying the
|
|
7
|
+
* motion over neutral line work. Each value is a CSS color the frame sets.
|
|
8
|
+
*/
|
|
9
|
+
export declare const EmptyArtColor: {
|
|
10
|
+
readonly Accent: "var(--ea-accent)";
|
|
11
|
+
readonly Border: "var(--ea-border)";
|
|
12
|
+
readonly BorderStrong: "var(--ea-border-strong)";
|
|
13
|
+
readonly Card: "var(--ea-card)";
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Classes that animate a part of an {@link EmptyArtFrame} drawing, one idea
|
|
17
|
+
* each, on a shared 5s loop (`Sweep` 6s); set `transform-origin` (and any
|
|
18
|
+
* `animation-delay`) on the element. All stop under reduced motion.
|
|
19
|
+
*/
|
|
20
|
+
export declare const EmptyArtMotion: {
|
|
21
|
+
/** Slides across the frame, left to right. */
|
|
22
|
+
readonly Sweep: string;
|
|
23
|
+
/** Closes in from a larger scale, holds, then lets go. */
|
|
24
|
+
readonly Lock: string;
|
|
25
|
+
/** Draws a dashed path (`stroke-dasharray` 64) in. */
|
|
26
|
+
readonly Thread: string;
|
|
27
|
+
/** Rings out from its origin and fades. */
|
|
28
|
+
readonly Ripple: string;
|
|
29
|
+
/** A soft pulse of opacity. */
|
|
30
|
+
readonly Core: string;
|
|
31
|
+
/** Grows along x from its origin, like a line being typed. */
|
|
32
|
+
readonly Typeline: string;
|
|
33
|
+
/** Rises into place, holds, then rises out. */
|
|
34
|
+
readonly Rise: string;
|
|
35
|
+
/** Draws a dashed path (`stroke-dasharray` 72) in. */
|
|
36
|
+
readonly Spine: string;
|
|
37
|
+
/** Travels down 34px and back. */
|
|
38
|
+
readonly Scan: string;
|
|
39
|
+
/** A slow pulse of opacity. */
|
|
40
|
+
readonly Breathe: string;
|
|
41
|
+
/** Gathers in from a larger scale, holds, then scatters. */
|
|
42
|
+
readonly Gather: string;
|
|
43
|
+
/** Grows along y from its origin, like a bar. */
|
|
44
|
+
readonly Grow: string;
|
|
45
|
+
/** Drops in from above with a small bounce, holds, then fades. */
|
|
46
|
+
readonly Drop: string;
|
|
47
|
+
/** Moves 46px right while fading in and out. */
|
|
48
|
+
readonly Flow: string;
|
|
49
|
+
};
|
|
50
|
+
export interface EmptyArtFrameProps extends EmptyArtProps {
|
|
51
|
+
/** Names the art for assistive tech, e.g. `"No locations yet"`. */
|
|
52
|
+
label: string;
|
|
53
|
+
/** The accent glow behind the drawing, in the 160×112 viewBox. */
|
|
54
|
+
glow: {
|
|
55
|
+
cx: number;
|
|
56
|
+
cy: number;
|
|
57
|
+
rx: number;
|
|
58
|
+
ry: number;
|
|
59
|
+
};
|
|
60
|
+
/** Draws the art; given an id unique to this instance, to prefix gradient and clip ids. */
|
|
61
|
+
children: (id: string) => ReactNode;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The frame every empty-state art draws in, for an app's own arts: a 160×112
|
|
65
|
+
* SVG that fills its container's width, with the accent glow, the
|
|
66
|
+
* {@link EmptyArtColor} palette and the {@link EmptyArtMotion} classes, stopped
|
|
67
|
+
* under reduced motion.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```tsx
|
|
71
|
+
* <EmptyArtFrame label="No locations yet" glow={{ cx: 80, cy: 58, rx: 58, ry: 40 }}>
|
|
72
|
+
* {() => <circle cx="80" cy="56" r="8" stroke={EmptyArtColor.Accent} className={EmptyArtMotion.Breathe} />}
|
|
73
|
+
* </EmptyArtFrame>
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* @param label Names the art for assistive tech.
|
|
77
|
+
* @param glow The accent glow behind the drawing, in viewBox units.
|
|
78
|
+
* @param children Draws the art, given an instance-unique id for its defs.
|
|
79
|
+
* @param className Extra classes for the SVG.
|
|
80
|
+
*/
|
|
81
|
+
export declare const EmptyArtFrame: FC<EmptyArtFrameProps>;
|
|
5
82
|
/**
|
|
6
83
|
* Attention travelling across a frame and resolving into a thread: the
|
|
7
84
|
* "no comments yet" art.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyArt.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyArt/EmptyArt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"EmptyArt.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyArt/EmptyArt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,EAAE,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AAM3E,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,cAAc;IACzB,8CAA8C;;IAE9C,0DAA0D;;IAE1D,sDAAsD;;IAEtD,2CAA2C;;IAE3C,+BAA+B;;IAE/B,8DAA8D;;IAE9D,+CAA+C;;IAE/C,sDAAsD;;IAEtD,kCAAkC;;IAElC,+BAA+B;;IAE/B,4DAA4D;;IAE5D,iDAAiD;;IAEjD,kEAAkE;;IAElE,gDAAgD;;CAExC,CAAC;AAaX,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,mEAAmE;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACzD,2FAA2F;IAC3F,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,SAAS,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAyBhD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,aAAa,CAwH9C,CAAC;AAGF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,aAAa,CAkD7C,CAAC;AAGF;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,aAAa,CAoD5C,CAAC;AAGF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,aAAa,CAqDhD,CAAC;AAGF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,aAAa,CA0ChD,CAAC;AAGF;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,aAAa,CAoC3C,CAAC;AAGF;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,aAAa,CA6ChD,CAAC;AAGF;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,aAAa,CAuD5C,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ButtonProps } from '../Button';
|
|
3
|
+
export interface DocsButtonProps extends Omit<ButtonProps, "href" | "children" | "variant" | "leadingIcon" | "collapse"> {
|
|
4
|
+
/** The docs page, opened in a new tab. */
|
|
5
|
+
href: string;
|
|
6
|
+
/** Defaults to `"View Docs"`. */
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The secondary "View Docs" link button of empty states, steps and toolbars:
|
|
11
|
+
* it opens the docs in a new tab and drops to its icon while the enclosing
|
|
12
|
+
* row is short of room.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <DocsButton href="https://docs.voxel51.com/teams/data_lens.html" />
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @param href The docs page, opened in a new tab.
|
|
20
|
+
* @param label The button text and accessible name. Defaults to `"View Docs"`.
|
|
21
|
+
* @param size Button size. Defaults to `"sm"`.
|
|
22
|
+
* @param props Additional {@link Button} properties.
|
|
23
|
+
*/
|
|
24
|
+
export declare const DocsButton: FC<DocsButtonProps>;
|
|
25
|
+
//# sourceMappingURL=DocsButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocsButton.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/DocsButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAI/D,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,WAAW,EACX,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,aAAa,GAAG,UAAU,CAC7D;IACC,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAkB1C,CAAC"}
|
|
@@ -2,12 +2,35 @@ import { FC, ReactNode } from 'react';
|
|
|
2
2
|
import { IconInput } from '../Icons';
|
|
3
3
|
import { StackProps } from '../Stack';
|
|
4
4
|
import { Size } from '../../types';
|
|
5
|
+
/** One card in an {@link EmptyState}'s "how to get started" row. */
|
|
6
|
+
export interface EmptyStateStep {
|
|
7
|
+
icon?: IconInput;
|
|
8
|
+
/** Numbered by the caller, such as `"1. Connect a source"`. */
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
/** The step's own call to action; a step without one only informs. */
|
|
12
|
+
action?: ReactNode;
|
|
13
|
+
}
|
|
5
14
|
export interface EmptyStateProps extends StackProps {
|
|
6
15
|
icon?: IconInput;
|
|
7
16
|
art?: ReactNode;
|
|
8
17
|
title: string;
|
|
9
18
|
description?: string;
|
|
10
19
|
size?: EmptyStateSize;
|
|
20
|
+
/** Calls to action in a centred row, the primary first. */
|
|
21
|
+
actions?: ReactNode;
|
|
22
|
+
/** Adds a {@link DocsButton} to this page after the actions. */
|
|
23
|
+
docsHref?: string;
|
|
24
|
+
/** The docs button's text. Defaults to `"View Docs"`. */
|
|
25
|
+
docsLabel?: string;
|
|
26
|
+
/** Context under the actions: why they are disabled, what to expect. */
|
|
27
|
+
note?: ReactNode;
|
|
28
|
+
/** A "how to get started" row of cards, wrapping when narrow. */
|
|
29
|
+
steps?: EmptyStateStep[];
|
|
30
|
+
/** Heading above the steps, such as `"How it works"`. */
|
|
31
|
+
stepsTitle?: string;
|
|
32
|
+
/** Small print under everything, such as a permission note. */
|
|
33
|
+
footer?: ReactNode;
|
|
11
34
|
}
|
|
12
35
|
/** `sm` for narrow sidebars and inline list slots, `md` for panels and pages. */
|
|
13
36
|
export type EmptyStateSize = `${Extract<Size, "sm" | "md">}`;
|
|
@@ -40,7 +63,30 @@ export type EmptyStateSize = `${Extract<Size, "sm" | "md">}`;
|
|
|
40
63
|
* @param size `"sm"` for narrow sidebars and list slots (104px art, tighter
|
|
41
64
|
* padding and smaller text), `"md"` for panels and pages. Applies to the
|
|
42
65
|
* illustrated layout. Defaults to `"md"`.
|
|
43
|
-
*
|
|
66
|
+
* With actions, a docs link and steps:
|
|
67
|
+
*
|
|
68
|
+
* ```tsx
|
|
69
|
+
* <EmptyState
|
|
70
|
+
* art={<DataLensEmptyArt />}
|
|
71
|
+
* title="Connect to your data source"
|
|
72
|
+
* actions={<Button variant="primary" size="sm">Add data source</Button>}
|
|
73
|
+
* docsHref="https://docs.voxel51.com/teams/data_lens.html"
|
|
74
|
+
* steps={[
|
|
75
|
+
* { icon: CodeIcon, title: "1. Define your pipeline", description: "Tell FiftyOne how to query it." },
|
|
76
|
+
* { icon: HubOutlinedIcon, title: "2. Connect it", description: "Register your operator." },
|
|
77
|
+
* ]}
|
|
78
|
+
* />
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* @param actions Calls to action in a centred, wrapping row, the primary first.
|
|
82
|
+
* @param docsHref Adds a {@link DocsButton} to this page after the actions.
|
|
83
|
+
* @param docsLabel The docs button's text. Defaults to `"View Docs"`.
|
|
84
|
+
* @param note Context under the actions: why they are disabled, what to expect.
|
|
85
|
+
* @param steps A "how to get started" row of bordered {@link RichCard}s, as
|
|
86
|
+
* many columns as fit (each at least 220px).
|
|
87
|
+
* @param stepsTitle Heading above the steps.
|
|
88
|
+
* @param footer Small print under everything.
|
|
89
|
+
* @param children Free-form content under the actions and note (a form, say).
|
|
44
90
|
* @param props Additional {@link Stack} properties to apply to the component.
|
|
45
91
|
*/
|
|
46
92
|
export declare const EmptyState: FC<EmptyStateProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,KAAK,SAAS,EAAoB,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAS,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGvD,OAAO,EAQL,IAAI,EAIL,MAAM,SAAS,CAAC;AAKjB,oEAAoE;AACpE,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,sEAAsE;IACtE,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wEAAwE;IACxE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,iEAAiE;IACjE,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;IACzB,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,iFAAiF;AACjF,MAAM,MAAM,cAAc,GAAG,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAmH1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
|
|
@@ -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,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,KAAK,SAAS,EAAe,MAAM,oBAAoB,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;AAKjE,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,CA+E1C,CAAC"}
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { IconProps } from './
|
|
2
|
+
import { IconProps } from './IconBase';
|
|
3
|
+
/**
|
|
4
|
+
* The spinning ring of {@link Spinner} as a plain icon, for a busy control's
|
|
5
|
+
* icon slot (a button's `leadingIcon` while its action runs). It always spins
|
|
6
|
+
* and is hidden from assistive tech: mark the control busy (`aria-busy`)
|
|
7
|
+
* instead. For a standalone loading indicator use {@link Spinner}.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <Button leadingIcon={busy ? SpinnerIcon : PlayIcon} aria-busy={busy}>
|
|
12
|
+
* Run
|
|
13
|
+
* </Button>
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @param size A {@link Size} token or pixels; fills the parent when unset.
|
|
17
|
+
* @param color Color of the icon; inherits the text color by default.
|
|
18
|
+
* @param className `class` overrides to apply to the icon.
|
|
19
|
+
* @param style `style` overrides to apply to the icon.
|
|
20
|
+
*/
|
|
3
21
|
export declare const SpinnerIcon: FC<IconProps>;
|
|
4
22
|
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AAI1C,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAyBtD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,SAAS,CAErC,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { IconProps } from './IconBase';
|
|
3
|
-
export declare const AgentIcon: FC<IconProps>;
|
|
4
3
|
export declare const AIIcon: FC<IconProps>;
|
|
5
4
|
export declare const AccessTimeIcon: FC<IconProps>;
|
|
6
5
|
export declare const AccountTreeIcon: FC<IconProps>;
|
|
@@ -101,8 +100,6 @@ export declare const CloudIcon: FC<IconProps>;
|
|
|
101
100
|
export declare const CloudCogIcon: FC<IconProps>;
|
|
102
101
|
export declare const CloudDownloadIcon: FC<IconProps>;
|
|
103
102
|
export declare const CloudOutlinedIcon: FC<IconProps>;
|
|
104
|
-
export declare const CloudUploadLucideIcon: FC<IconProps>;
|
|
105
|
-
export declare const UserPlusIcon: FC<IconProps>;
|
|
106
103
|
export declare const CloudUploadIcon: FC<IconProps>;
|
|
107
104
|
export declare const CodeIcon: FC<IconProps>;
|
|
108
105
|
export declare const CodeOutlinedIcon: FC<IconProps>;
|
|
@@ -199,7 +196,6 @@ export declare const HubOutlinedIcon: FC<IconProps>;
|
|
|
199
196
|
export declare const IdCardIcon: FC<IconProps>;
|
|
200
197
|
export declare const ImageIcon: FC<IconProps>;
|
|
201
198
|
export declare const ImageAspectRatioIcon: FC<IconProps>;
|
|
202
|
-
export declare const ImagePlusIcon: FC<IconProps>;
|
|
203
199
|
export declare const ImageSearchIcon: FC<IconProps>;
|
|
204
200
|
export declare const ImagesIcon: FC<IconProps>;
|
|
205
201
|
export declare const InfinityIcon: FC<IconProps>;
|
|
@@ -367,7 +363,8 @@ export declare const TextIcon: FC<IconProps>;
|
|
|
367
363
|
export declare const TextSelectIcon: FC<IconProps>;
|
|
368
364
|
export declare const TextureIcon: FC<IconProps>;
|
|
369
365
|
export declare const ThreeSixtyIcon: FC<IconProps>;
|
|
370
|
-
export declare const
|
|
366
|
+
export declare const ThumbsDownIcon: FC<IconProps>;
|
|
367
|
+
export declare const ThumbsUpIcon: FC<IconProps>;
|
|
371
368
|
export declare const TimelineIcon: FC<IconProps>;
|
|
372
369
|
export declare const TimelineOutlinedIcon: FC<IconProps>;
|
|
373
370
|
export declare const TimerIcon: FC<IconProps>;
|
|
@@ -385,6 +382,7 @@ export declare const UnsupportedIcon: FC<IconProps>;
|
|
|
385
382
|
export declare const UpgradeOutlinedIcon: FC<IconProps>;
|
|
386
383
|
export declare const UploadIcon: FC<IconProps>;
|
|
387
384
|
export declare const UserIcon: FC<IconProps>;
|
|
385
|
+
export declare const UserPlusIcon: FC<IconProps>;
|
|
388
386
|
export declare const UserRoundIcon: FC<IconProps>;
|
|
389
387
|
export declare const UsersIcon: FC<IconProps>;
|
|
390
388
|
export declare const UsersRoundIcon: FC<IconProps>;
|