@antscorp/ui 0.1.1 → 0.1.3
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/README.md +1 -1
- package/dist/atoms/AddButton.d.ts +1 -1
- package/dist/atoms/AddButton.doc.d.ts +21 -0
- package/dist/atoms/AddGlyph.doc.d.ts +16 -0
- package/dist/atoms/Chip.doc.d.ts +29 -0
- package/dist/atoms/ChipSkeletons.doc.d.ts +21 -0
- package/dist/atoms/FieldHeading.doc.d.ts +15 -0
- package/dist/atoms/HoverSwap.doc.d.ts +25 -0
- package/dist/atoms/InfoTip.doc.d.ts +25 -0
- package/dist/atoms/InfoTip.js +2 -0
- package/dist/atoms/JointLabel.doc.d.ts +15 -0
- package/dist/atoms/LabeledDivider.d.ts +1 -1
- package/dist/atoms/LabeledDivider.doc.d.ts +21 -0
- package/dist/atoms/LogoImage.doc.d.ts +21 -0
- package/dist/atoms/PanelSearchInput.d.ts +1 -1
- package/dist/atoms/PanelSearchInput.doc.d.ts +25 -0
- package/dist/atoms/PathMark.doc.d.ts +16 -0
- package/dist/atoms/RemoveButton.doc.d.ts +16 -0
- package/dist/atoms/RowSkeletons.doc.d.ts +25 -0
- package/dist/atoms/TextAction.d.ts +3 -3
- package/dist/atoms/TextAction.doc.d.ts +25 -0
- package/dist/atoms/TruncatedOption.d.ts +1 -1
- package/dist/atoms/TruncatedOption.doc.d.ts +24 -0
- package/dist/atoms/TruncatedText.doc.d.ts +15 -0
- package/dist/cli.js +248 -0
- package/dist/doc/schema.d.ts +34 -0
- package/dist/doc/schema.js +33 -0
- package/dist/docs.json +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +53 -51
- package/dist/lib/useLoadingShown.d.ts +1 -1
- package/dist/molecules/AccentCard.d.ts +2 -3
- package/dist/molecules/AccentCard.doc.d.ts +25 -0
- package/dist/molecules/CheckGroup.doc.d.ts +25 -0
- package/dist/molecules/CheckRow.d.ts +1 -1
- package/dist/molecules/CheckRow.doc.d.ts +25 -0
- package/dist/molecules/ChoiceDialog.doc.d.ts +21 -0
- package/dist/molecules/ChoiceTiles.d.ts +1 -1
- package/dist/molecules/ChoiceTiles.doc.d.ts +21 -0
- package/dist/molecules/CommitTextField.doc.d.ts +29 -0
- package/dist/molecules/ConfirmDialog.doc.d.ts +21 -0
- package/dist/molecules/DateTimeInput.doc.d.ts +25 -0
- package/dist/molecules/DurationInput.doc.d.ts +25 -0
- package/dist/molecules/FieldGroup.d.ts +1 -1
- package/dist/molecules/FieldGroup.doc.d.ts +25 -0
- package/dist/molecules/FieldRow.d.ts +1 -1
- package/dist/molecules/FieldRow.doc.d.ts +24 -0
- package/dist/molecules/FieldSkeleton.doc.d.ts +25 -0
- package/dist/molecules/FrequencyLimitRow.doc.d.ts +25 -0
- package/dist/molecules/InlineEditableText.doc.d.ts +25 -0
- package/dist/molecules/LoadMoreRow.doc.d.ts +21 -0
- package/dist/molecules/LoadState.doc.d.ts +21 -0
- package/dist/molecules/MetaTable.d.ts +1 -1
- package/dist/molecules/MetaTable.doc.d.ts +25 -0
- package/dist/molecules/PercentRow.doc.d.ts +25 -0
- package/dist/molecules/PhoneFrame.d.ts +1 -1
- package/dist/molecules/PhoneFrame.doc.d.ts +21 -0
- package/dist/molecules/ProblemsButton.doc.d.ts +25 -0
- package/dist/molecules/RemovableRow.d.ts +1 -1
- package/dist/molecules/RemovableRow.doc.d.ts +25 -0
- package/dist/molecules/RevealRadioGroup.doc.d.ts +25 -0
- package/dist/molecules/RevealSwitch.doc.d.ts +25 -0
- package/dist/molecules/RuleRow.doc.d.ts +25 -0
- package/dist/molecules/Select.d.ts +2 -2
- package/dist/molecules/Select.doc.d.ts +30 -0
- package/dist/molecules/Select.js +27 -27
- package/dist/molecules/SideLabelRow.d.ts +1 -1
- package/dist/molecules/SideLabelRow.doc.d.ts +20 -0
- package/dist/molecules/SplitButton.d.ts +1 -1
- package/dist/molecules/SplitButton.doc.d.ts +25 -0
- package/dist/molecules/StatusButton.doc.d.ts +25 -0
- package/dist/molecules/TagSelect.d.ts +2 -2
- package/dist/molecules/TagSelect.doc.d.ts +25 -0
- package/dist/molecules/ToggleGrid.doc.d.ts +25 -0
- package/dist/molecules/TokenTextField.doc.d.ts +29 -0
- package/dist/molecules/TransferLayout.d.ts +1 -1
- package/dist/molecules/TransferLayout.doc.d.ts +25 -0
- package/dist/molecules/TreeOptions.d.ts +1 -1
- package/dist/molecules/TreeOptions.doc.d.ts +25 -0
- package/dist/organisms/ChipListAddPopover.doc.d.ts +25 -0
- package/dist/organisms/HourOfDayRow.doc.d.ts +25 -0
- package/dist/organisms/HourOfWeekGrid.doc.d.ts +25 -0
- package/dist/organisms/RepeatableList.doc.d.ts +21 -0
- package/dist/organisms/ResizableDrawer.doc.d.ts +25 -0
- package/dist/organisms/RuleGroups.d.ts +3 -3
- package/dist/organisms/RuleGroups.doc.d.ts +21 -0
- package/dist/organisms/RuleList.doc.d.ts +25 -0
- package/dist/organisms/SearchableGroupedList.d.ts +1 -1
- package/dist/organisms/SearchableGroupedList.doc.d.ts +25 -0
- package/dist/organisms/TokenPickerDialog.doc.d.ts +21 -0
- package/dist/organisms/TransferPicker.d.ts +1 -1
- package/dist/organisms/TransferPicker.doc.d.ts +29 -0
- package/dist/organisms/TreeSearchPanel.doc.d.ts +25 -0
- package/dist/organisms/TreeSelect.d.ts +3 -3
- package/dist/organisms/TreeSelect.doc.d.ts +29 -0
- package/dist/theme/AntsomiTheme.doc.d.ts +15 -0
- package/dist/theme/AntsomiTheme.doc.js +22 -0
- package/package.json +17 -6
- package/src/atoms/AddButton.doc.ts +36 -0
- package/src/atoms/AddButton.tsx +1 -1
- package/src/atoms/AddGlyph.doc.ts +26 -0
- package/src/atoms/Chip.doc.ts +45 -0
- package/src/atoms/Chip.tsx +2 -2
- package/src/atoms/ChipSkeletons.doc.ts +31 -0
- package/src/atoms/FieldHeading.doc.ts +22 -0
- package/src/atoms/HoverSwap.doc.ts +39 -0
- package/src/atoms/InfoTip.doc.ts +37 -0
- package/src/atoms/InfoTip.tsx +2 -2
- package/src/atoms/JointLabel.doc.ts +23 -0
- package/src/atoms/LabeledDivider.doc.ts +35 -0
- package/src/atoms/LabeledDivider.tsx +1 -1
- package/src/atoms/LogoImage.doc.ts +42 -0
- package/src/atoms/PanelSearchInput.doc.ts +41 -0
- package/src/atoms/PanelSearchInput.tsx +1 -1
- package/src/atoms/PathMark.doc.ts +25 -0
- package/src/atoms/RemoveButton.doc.ts +26 -0
- package/src/atoms/RowSkeletons.doc.ts +43 -0
- package/src/atoms/TextAction.doc.ts +40 -0
- package/src/atoms/TextAction.tsx +4 -4
- package/src/atoms/TruncatedOption.doc.ts +39 -0
- package/src/atoms/TruncatedOption.tsx +1 -1
- package/src/atoms/TruncatedText.doc.ts +22 -0
- package/src/doc/schema.ts +67 -0
- package/src/index.ts +2 -0
- package/src/lib/useLoadMore.ts +1 -2
- package/src/lib/useLoadingShown.ts +1 -1
- package/src/molecules/AccentCard.doc.ts +43 -0
- package/src/molecules/AccentCard.tsx +7 -8
- package/src/molecules/CheckGroup.doc.ts +40 -0
- package/src/molecules/CheckRow.doc.ts +43 -0
- package/src/molecules/CheckRow.tsx +1 -1
- package/src/molecules/ChoiceDialog.doc.ts +48 -0
- package/src/molecules/ChoiceTiles.doc.ts +42 -0
- package/src/molecules/ChoiceTiles.tsx +3 -3
- package/src/molecules/CommitTextField.doc.ts +41 -0
- package/src/molecules/ConfirmDialog.doc.ts +43 -0
- package/src/molecules/DateTimeInput.doc.ts +48 -0
- package/src/molecules/DurationInput.doc.ts +36 -0
- package/src/molecules/DurationInput.tsx +2 -2
- package/src/molecules/FieldGroup.doc.ts +41 -0
- package/src/molecules/FieldGroup.tsx +1 -1
- package/src/molecules/FieldRow.doc.ts +36 -0
- package/src/molecules/FieldRow.tsx +1 -1
- package/src/molecules/FieldSkeleton.doc.ts +38 -0
- package/src/molecules/FrequencyLimitRow.doc.ts +48 -0
- package/src/molecules/FrequencyLimitRow.tsx +1 -1
- package/src/molecules/InlineEditableText.doc.ts +41 -0
- package/src/molecules/LoadMoreRow.doc.ts +36 -0
- package/src/molecules/LoadState.doc.ts +42 -0
- package/src/molecules/MetaTable.doc.ts +46 -0
- package/src/molecules/MetaTable.tsx +1 -1
- package/src/molecules/PercentRow.doc.ts +48 -0
- package/src/molecules/PhoneFrame.doc.ts +46 -0
- package/src/molecules/PhoneFrame.tsx +2 -2
- package/src/molecules/ProblemsButton.doc.ts +41 -0
- package/src/molecules/RemovableRow.doc.ts +48 -0
- package/src/molecules/RemovableRow.tsx +2 -2
- package/src/molecules/RevealRadioGroup.doc.ts +41 -0
- package/src/molecules/RevealSwitch.doc.ts +38 -0
- package/src/molecules/RuleRow.doc.ts +43 -0
- package/src/molecules/Select.doc.ts +62 -0
- package/src/molecules/Select.tsx +2 -2
- package/src/molecules/SideLabelRow.doc.ts +35 -0
- package/src/molecules/SideLabelRow.tsx +2 -2
- package/src/molecules/SplitButton.doc.ts +41 -0
- package/src/molecules/SplitButton.tsx +1 -1
- package/src/molecules/StatusButton.doc.ts +39 -0
- package/src/molecules/TagSelect.doc.ts +41 -0
- package/src/molecules/TagSelect.tsx +5 -5
- package/src/molecules/ToggleGrid.doc.ts +43 -0
- package/src/molecules/TokenTextField.doc.ts +41 -0
- package/src/molecules/TransferLayout.doc.ts +42 -0
- package/src/molecules/TransferLayout.tsx +2 -3
- package/src/molecules/TreeOptions.doc.ts +38 -0
- package/src/molecules/TreeOptions.tsx +6 -6
- package/src/organisms/ChipListAddPopover.doc.ts +54 -0
- package/src/organisms/HourOfDayRow.doc.ts +43 -0
- package/src/organisms/HourOfDayRow.tsx +1 -1
- package/src/organisms/HourOfWeekGrid.doc.ts +48 -0
- package/src/organisms/HourOfWeekGrid.tsx +1 -1
- package/src/organisms/RepeatableList.doc.ts +49 -0
- package/src/organisms/ResizableDrawer.doc.ts +48 -0
- package/src/organisms/RuleGroups.doc.ts +49 -0
- package/src/organisms/RuleGroups.tsx +3 -3
- package/src/organisms/RuleList.doc.ts +43 -0
- package/src/organisms/SearchableGroupedList.doc.ts +49 -0
- package/src/organisms/SearchableGroupedList.tsx +2 -2
- package/src/organisms/TokenPickerDialog.doc.ts +54 -0
- package/src/organisms/TransferPicker.doc.ts +69 -0
- package/src/organisms/TransferPicker.tsx +3 -3
- package/src/organisms/TreeSearchPanel.doc.ts +43 -0
- package/src/organisms/TreeSearchPanel.tsx +1 -1
- package/src/organisms/TreeSelect.doc.ts +56 -0
- package/src/organisms/TreeSelect.tsx +4 -4
- package/src/theme/AntsomiTheme.doc.ts +23 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Usage guidance for PercentRow. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Inputs";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
usage: {
|
|
6
|
+
description: string;
|
|
7
|
+
bestPractices: ({
|
|
8
|
+
guidance: true;
|
|
9
|
+
description: string;
|
|
10
|
+
} | {
|
|
11
|
+
guidance: false;
|
|
12
|
+
description: string;
|
|
13
|
+
})[];
|
|
14
|
+
anatomy: ({
|
|
15
|
+
name: string;
|
|
16
|
+
required: false;
|
|
17
|
+
description: string;
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
required: true;
|
|
21
|
+
description: string;
|
|
22
|
+
})[];
|
|
23
|
+
};
|
|
24
|
+
accessibility: string[];
|
|
25
|
+
};
|
|
@@ -13,7 +13,7 @@ export type PhoneFrameProps = {
|
|
|
13
13
|
readonly children: ReactNode;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
|
-
* A phone to preview content in,
|
|
16
|
+
* A phone frame with a branding bar to preview content in,
|
|
17
17
|
* drawn rather than pictured: a dark rounded device with a camera island, a status bar (clock,
|
|
18
18
|
* signal, battery), a header with a back chevron, the avatar and the title, and the content under
|
|
19
19
|
* it, scrolling when it is taller than the screen. As wide as its container, up to 290px, with a
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Usage guidance for PhoneFrame. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Layout";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
usage: {
|
|
6
|
+
description: string;
|
|
7
|
+
bestPractices: ({
|
|
8
|
+
guidance: true;
|
|
9
|
+
description: string;
|
|
10
|
+
} | {
|
|
11
|
+
guidance: false;
|
|
12
|
+
description: string;
|
|
13
|
+
})[];
|
|
14
|
+
anatomy: {
|
|
15
|
+
name: string;
|
|
16
|
+
required: true;
|
|
17
|
+
description: string;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
accessibility: string[];
|
|
21
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Usage guidance for ProblemsButton. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Feedback";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
usage: {
|
|
6
|
+
description: string;
|
|
7
|
+
bestPractices: ({
|
|
8
|
+
guidance: true;
|
|
9
|
+
description: string;
|
|
10
|
+
} | {
|
|
11
|
+
guidance: false;
|
|
12
|
+
description: string;
|
|
13
|
+
})[];
|
|
14
|
+
anatomy: ({
|
|
15
|
+
name: string;
|
|
16
|
+
required: true;
|
|
17
|
+
description: string;
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
required: false;
|
|
21
|
+
description: string;
|
|
22
|
+
})[];
|
|
23
|
+
};
|
|
24
|
+
accessibility: string[];
|
|
25
|
+
};
|
|
@@ -19,7 +19,7 @@ export type RemovableRowProps = {
|
|
|
19
19
|
*/
|
|
20
20
|
readonly hoverContent?: ReactNode;
|
|
21
21
|
/**
|
|
22
|
-
* A bordered box around the row
|
|
22
|
+
* A bordered box around the row: its text on one line, the whole text
|
|
23
23
|
* in a tooltip when cut. As high as `RowSkeletons variant="framed"`.
|
|
24
24
|
*/
|
|
25
25
|
readonly isFramed?: boolean | undefined;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Usage guidance for RemovableRow. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Inputs";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
usage: {
|
|
6
|
+
description: string;
|
|
7
|
+
bestPractices: ({
|
|
8
|
+
guidance: true;
|
|
9
|
+
description: string;
|
|
10
|
+
} | {
|
|
11
|
+
guidance: false;
|
|
12
|
+
description: string;
|
|
13
|
+
})[];
|
|
14
|
+
anatomy: ({
|
|
15
|
+
name: string;
|
|
16
|
+
required: true;
|
|
17
|
+
description: string;
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
required: false;
|
|
21
|
+
description: string;
|
|
22
|
+
})[];
|
|
23
|
+
};
|
|
24
|
+
accessibility: string[];
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Usage guidance for RevealRadioGroup. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Selection";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
usage: {
|
|
6
|
+
description: string;
|
|
7
|
+
bestPractices: ({
|
|
8
|
+
guidance: true;
|
|
9
|
+
description: string;
|
|
10
|
+
} | {
|
|
11
|
+
guidance: false;
|
|
12
|
+
description: string;
|
|
13
|
+
})[];
|
|
14
|
+
anatomy: ({
|
|
15
|
+
name: string;
|
|
16
|
+
required: true;
|
|
17
|
+
description: string;
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
required: false;
|
|
21
|
+
description: string;
|
|
22
|
+
})[];
|
|
23
|
+
};
|
|
24
|
+
accessibility: string[];
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Usage guidance for RevealSwitch. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Selection";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
usage: {
|
|
6
|
+
description: string;
|
|
7
|
+
bestPractices: ({
|
|
8
|
+
guidance: true;
|
|
9
|
+
description: string;
|
|
10
|
+
} | {
|
|
11
|
+
guidance: false;
|
|
12
|
+
description: string;
|
|
13
|
+
})[];
|
|
14
|
+
anatomy: ({
|
|
15
|
+
name: string;
|
|
16
|
+
required: true;
|
|
17
|
+
description: string;
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
required: false;
|
|
21
|
+
description: string;
|
|
22
|
+
})[];
|
|
23
|
+
};
|
|
24
|
+
accessibility: string[];
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Usage guidance for RuleRow. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Inputs";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
usage: {
|
|
6
|
+
description: string;
|
|
7
|
+
bestPractices: ({
|
|
8
|
+
guidance: true;
|
|
9
|
+
description: string;
|
|
10
|
+
} | {
|
|
11
|
+
guidance: false;
|
|
12
|
+
description: string;
|
|
13
|
+
})[];
|
|
14
|
+
anatomy: ({
|
|
15
|
+
name: string;
|
|
16
|
+
required: false;
|
|
17
|
+
description: string;
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
required: true;
|
|
21
|
+
description: string;
|
|
22
|
+
})[];
|
|
23
|
+
};
|
|
24
|
+
accessibility: string[];
|
|
25
|
+
};
|
|
@@ -24,7 +24,7 @@ export type SelectProps = {
|
|
|
24
24
|
readonly hasSearch?: boolean | undefined;
|
|
25
25
|
/** The trigger's look: an underlined field (`input`, the default) or a bare text button (`ghost`). */
|
|
26
26
|
readonly variant?: "input" | "ghost" | undefined;
|
|
27
|
-
/** The trigger's size, `md` by default (
|
|
27
|
+
/** The trigger's size, `md` by default (the theme's 30px control height). */
|
|
28
28
|
readonly size?: "sm" | "md" | undefined;
|
|
29
29
|
/** The trigger's width, in pixels or any CSS length such as `"100%"`. */
|
|
30
30
|
readonly width?: number | string | undefined;
|
|
@@ -56,7 +56,7 @@ export type SelectProps = {
|
|
|
56
56
|
} | undefined;
|
|
57
57
|
};
|
|
58
58
|
/**
|
|
59
|
-
* The kit's select
|
|
59
|
+
* The kit's select on Astryx's `Selector`: the list is as wide as the
|
|
60
60
|
* trigger (the theme) and a long option label ends in an ellipsis with the whole label in a
|
|
61
61
|
* tooltip. Every select is one rather than Astryx's `Selector` (lint-enforced). It holds no state.
|
|
62
62
|
*/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** Usage guidance for Select. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Selection";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
related: {
|
|
6
|
+
name: string;
|
|
7
|
+
when: string;
|
|
8
|
+
}[];
|
|
9
|
+
example: string;
|
|
10
|
+
usage: {
|
|
11
|
+
description: string;
|
|
12
|
+
bestPractices: ({
|
|
13
|
+
guidance: true;
|
|
14
|
+
description: string;
|
|
15
|
+
} | {
|
|
16
|
+
guidance: false;
|
|
17
|
+
description: string;
|
|
18
|
+
})[];
|
|
19
|
+
anatomy: ({
|
|
20
|
+
name: string;
|
|
21
|
+
required: true;
|
|
22
|
+
description: string;
|
|
23
|
+
} | {
|
|
24
|
+
name: string;
|
|
25
|
+
required: false;
|
|
26
|
+
description: string;
|
|
27
|
+
})[];
|
|
28
|
+
};
|
|
29
|
+
accessibility: string[];
|
|
30
|
+
};
|
package/dist/molecules/Select.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { TruncatedOption as e } from "../atoms/TruncatedOption.js";
|
|
2
|
+
import { errorStatus as t } from "../lib/errorStatus.js";
|
|
3
|
+
import { useLoadingShown as n } from "../lib/useLoadingShown.js";
|
|
4
4
|
import { c as r } from "react/compiler-runtime";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
6
6
|
import { Selector as a } from "@astryxdesign/core/Selector";
|
|
7
7
|
// src/molecules/Select.tsx
|
|
8
|
-
function o(
|
|
9
|
-
let o = r(69), { labels: l, onClear: u, onChange: d } =
|
|
8
|
+
function o(e) {
|
|
9
|
+
let o = r(69), { labels: l, onClear: u, onChange: d } = e, f;
|
|
10
10
|
o[0] === l ? f = o[1] : (f = l === void 0 ? {} : l, o[0] = l, o[1] = f);
|
|
11
|
-
let p = f, m =
|
|
12
|
-
o[2] !== h || o[3] !== p.value || o[4] !==
|
|
11
|
+
let p = f, m = e.value ?? void 0, { isBusy: h, isShown: g } = n(e.isLoading === !0), _;
|
|
12
|
+
o[2] !== h || o[3] !== p.value || o[4] !== e.options || o[5] !== m ? (_ = h && m !== void 0 && p.value !== void 0 && !c(e.options, m) ? [{
|
|
13
13
|
value: m,
|
|
14
14
|
label: p.value
|
|
15
|
-
}] : [], o[2] = h, o[3] = p.value, o[4] =
|
|
15
|
+
}] : [], o[2] = h, o[3] = p.value, o[4] = e.options, o[5] = m, o[6] = _) : _ = o[6];
|
|
16
16
|
let v = _, y;
|
|
17
|
-
o[7] !==
|
|
17
|
+
o[7] !== e.options || o[8] !== v ? (y = [...e.options, ...v], o[7] = e.options, o[8] = v, o[9] = y) : y = o[9];
|
|
18
18
|
let b;
|
|
19
|
-
o[10] !== p.warning || o[11] !==
|
|
19
|
+
o[10] !== p.warning || o[11] !== e.error ? (b = p.warning === void 0 ? t(e.error) : {
|
|
20
20
|
status: {
|
|
21
21
|
type: "warning",
|
|
22
22
|
message: p.warning
|
|
23
23
|
},
|
|
24
24
|
statusVariant: "tooltip"
|
|
25
|
-
}, o[10] = p.warning, o[11] =
|
|
25
|
+
}, o[10] = p.warning, o[11] = e.error, o[12] = b) : b = o[12];
|
|
26
26
|
let x;
|
|
27
|
-
o[13] ===
|
|
27
|
+
o[13] === e.isLabelHidden ? x = o[14] : (x = e.isLabelHidden !== void 0 && { isLabelHidden: e.isLabelHidden }, o[13] = e.isLabelHidden, o[14] = x);
|
|
28
28
|
let S;
|
|
29
|
-
o[15] ===
|
|
29
|
+
o[15] === e.description ? S = o[16] : (S = e.description !== void 0 && { description: e.description }, o[15] = e.description, o[16] = S);
|
|
30
30
|
let C;
|
|
31
|
-
o[17] !== h || o[18] !== g || o[19] !==
|
|
31
|
+
o[17] !== h || o[18] !== g || o[19] !== e.placeholder ? (C = h ? {
|
|
32
32
|
isLoading: g,
|
|
33
33
|
isReadOnly: !0,
|
|
34
34
|
placeholder: ""
|
|
35
|
-
} :
|
|
35
|
+
} : e.placeholder !== void 0 && { placeholder: e.placeholder }, o[17] = h, o[18] = g, o[19] = e.placeholder, o[20] = C) : C = o[20];
|
|
36
36
|
let w;
|
|
37
|
-
o[21] ===
|
|
37
|
+
o[21] === e.hasSearch ? w = o[22] : (w = e.hasSearch !== void 0 && { hasSearch: e.hasSearch }, o[21] = e.hasSearch, o[22] = w);
|
|
38
38
|
let T;
|
|
39
|
-
o[23] ===
|
|
39
|
+
o[23] === e.variant ? T = o[24] : (T = e.variant !== void 0 && { variant: e.variant }, o[23] = e.variant, o[24] = T);
|
|
40
40
|
let E;
|
|
41
|
-
o[25] ===
|
|
41
|
+
o[25] === e.size ? E = o[26] : (E = e.size !== void 0 && { size: e.size }, o[25] = e.size, o[26] = E);
|
|
42
42
|
let D;
|
|
43
|
-
o[27] ===
|
|
43
|
+
o[27] === e.width ? D = o[28] : (D = e.width !== void 0 && { width: e.width }, o[27] = e.width, o[28] = D);
|
|
44
44
|
let O;
|
|
45
|
-
o[29] ===
|
|
45
|
+
o[29] === e.isDisabled ? O = o[30] : (O = e.isDisabled !== void 0 && { isDisabled: e.isDisabled }, o[29] = e.isDisabled, o[30] = O);
|
|
46
46
|
let k;
|
|
47
|
-
o[31] !== h || o[32] !==
|
|
47
|
+
o[31] !== h || o[32] !== e.isReadOnly ? (k = e.isReadOnly !== void 0 && !h && { isReadOnly: e.isReadOnly }, o[31] = h, o[32] = e.isReadOnly, o[33] = k) : k = o[33];
|
|
48
48
|
let A;
|
|
49
|
-
o[34] ===
|
|
49
|
+
o[34] === e.isRequired ? A = o[35] : (A = e.isRequired !== void 0 && { isRequired: e.isRequired }, o[34] = e.isRequired, o[35] = A);
|
|
50
50
|
let j;
|
|
51
51
|
o[36] === p.search ? j = o[37] : (j = p.search !== void 0 && { searchPlaceholder: p.search }, o[36] = p.search, o[37] = j);
|
|
52
52
|
let M;
|
|
53
53
|
o[38] === p.noMatch ? M = o[39] : (M = p.noMatch !== void 0 && { emptySearchText: p.noMatch }, o[38] = p.noMatch, o[39] = M);
|
|
54
54
|
let N;
|
|
55
|
-
o[40] !==
|
|
56
|
-
label:
|
|
55
|
+
o[40] !== e.label || o[41] !== E || o[42] !== D || o[43] !== O || o[44] !== k || o[45] !== A || o[46] !== j || o[47] !== M || o[48] !== y || o[49] !== b || o[50] !== x || o[51] !== S || o[52] !== C || o[53] !== w || o[54] !== T ? (N = {
|
|
56
|
+
label: e.label,
|
|
57
57
|
options: y,
|
|
58
58
|
renderOption: s,
|
|
59
59
|
...b,
|
|
@@ -69,7 +69,7 @@ function o(n) {
|
|
|
69
69
|
...A,
|
|
70
70
|
...j,
|
|
71
71
|
...M
|
|
72
|
-
}, o[40] =
|
|
72
|
+
}, o[40] = e.label, o[41] = E, o[42] = D, o[43] = O, o[44] = k, o[45] = A, o[46] = j, o[47] = M, o[48] = y, o[49] = b, o[50] = x, o[51] = S, o[52] = C, o[53] = w, o[54] = T, o[55] = N) : N = o[55];
|
|
73
73
|
let P = N;
|
|
74
74
|
if (u === void 0) {
|
|
75
75
|
let e;
|
|
@@ -93,8 +93,8 @@ function o(n) {
|
|
|
93
93
|
onChange: I
|
|
94
94
|
}), o[65] = P, o[66] = F, o[67] = I, o[68] = L) : L = o[68], L;
|
|
95
95
|
}
|
|
96
|
-
function s(
|
|
97
|
-
return /* @__PURE__ */ i(
|
|
96
|
+
function s(t) {
|
|
97
|
+
return /* @__PURE__ */ i(e, { option: t });
|
|
98
98
|
}
|
|
99
99
|
function c(e, t) {
|
|
100
100
|
return e.some((e) => typeof e == "string" ? e === t : "value" in e ? e.value === t : e.type === "section" && c(e.options, t));
|
|
@@ -10,7 +10,7 @@ export type SideLabelRowProps = {
|
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* One row of a card: a narrow label column and the row's controls, padded as a card's rows are.
|
|
13
|
-
* The label sits centred on the first line of controls (`md` high,
|
|
13
|
+
* The label sits centred on the first line of controls (`md` high, the theme's 30px); where the controls would get
|
|
14
14
|
* narrower than 240px they move under the label. It holds no state.
|
|
15
15
|
*/
|
|
16
16
|
export declare function SideLabelRow({ label, labelWidth, children }: SideLabelRowProps): ReactNode;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Usage guidance for SideLabelRow. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Layout";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
usage: {
|
|
6
|
+
description: string;
|
|
7
|
+
bestPractices: ({
|
|
8
|
+
guidance: true;
|
|
9
|
+
description: string;
|
|
10
|
+
} | {
|
|
11
|
+
guidance: false;
|
|
12
|
+
description: string;
|
|
13
|
+
})[];
|
|
14
|
+
anatomy: {
|
|
15
|
+
name: string;
|
|
16
|
+
required: true;
|
|
17
|
+
description: string;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -29,7 +29,7 @@ export type SplitButtonProps = {
|
|
|
29
29
|
readonly isMainDisabled?: boolean | undefined;
|
|
30
30
|
/** The main button shows a spinner and is announced as busy; the menu is not affected. */
|
|
31
31
|
readonly isLoading?: boolean | undefined;
|
|
32
|
-
/** Rounds its two ends into a pill
|
|
32
|
+
/** Rounds its two ends into a pill; the inner corners stay square. */
|
|
33
33
|
readonly isRound?: boolean | undefined;
|
|
34
34
|
/** The button's weight, `primary` by default. */
|
|
35
35
|
readonly variant?: "primary" | "secondary" | undefined;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Usage guidance for SplitButton. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Inputs";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
usage: {
|
|
6
|
+
description: string;
|
|
7
|
+
bestPractices: ({
|
|
8
|
+
guidance: true;
|
|
9
|
+
description: string;
|
|
10
|
+
} | {
|
|
11
|
+
guidance: false;
|
|
12
|
+
description: string;
|
|
13
|
+
})[];
|
|
14
|
+
anatomy: ({
|
|
15
|
+
name: string;
|
|
16
|
+
required: true;
|
|
17
|
+
description: string;
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
required: false;
|
|
21
|
+
description: string;
|
|
22
|
+
})[];
|
|
23
|
+
};
|
|
24
|
+
accessibility: string[];
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Usage guidance for StatusButton. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Feedback";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
usage: {
|
|
6
|
+
description: string;
|
|
7
|
+
bestPractices: ({
|
|
8
|
+
guidance: true;
|
|
9
|
+
description: string;
|
|
10
|
+
} | {
|
|
11
|
+
guidance: false;
|
|
12
|
+
description: string;
|
|
13
|
+
})[];
|
|
14
|
+
anatomy: ({
|
|
15
|
+
name: string;
|
|
16
|
+
required: true;
|
|
17
|
+
description: string;
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
required: false;
|
|
21
|
+
description: string;
|
|
22
|
+
})[];
|
|
23
|
+
};
|
|
24
|
+
accessibility: string[];
|
|
25
|
+
};
|
|
@@ -29,7 +29,7 @@ export type TagSelectProps<V extends string> = {
|
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
31
|
* A small coloured tag showing the picked value; pressing it opens a popover with a heading and
|
|
32
|
-
* every tag, wrapping, each picked by a press, which closes the popover.
|
|
33
|
-
*
|
|
32
|
+
* every tag, wrapping, each picked by a press, which closes the popover.
|
|
33
|
+
* Its state is whether the popover is open.
|
|
34
34
|
*/
|
|
35
35
|
export declare function TagSelect<V extends string>(props: TagSelectProps<V>): ReactNode;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Usage guidance for TagSelect. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Selection";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
usage: {
|
|
6
|
+
description: string;
|
|
7
|
+
bestPractices: ({
|
|
8
|
+
guidance: true;
|
|
9
|
+
description: string;
|
|
10
|
+
} | {
|
|
11
|
+
guidance: false;
|
|
12
|
+
description: string;
|
|
13
|
+
})[];
|
|
14
|
+
anatomy: ({
|
|
15
|
+
name: string;
|
|
16
|
+
required: true;
|
|
17
|
+
description: string;
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
required: false;
|
|
21
|
+
description: string;
|
|
22
|
+
})[];
|
|
23
|
+
};
|
|
24
|
+
accessibility: string[];
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Usage guidance for ToggleGrid. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Selection";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
usage: {
|
|
6
|
+
description: string;
|
|
7
|
+
bestPractices: ({
|
|
8
|
+
guidance: true;
|
|
9
|
+
description: string;
|
|
10
|
+
} | {
|
|
11
|
+
guidance: false;
|
|
12
|
+
description: string;
|
|
13
|
+
})[];
|
|
14
|
+
anatomy: ({
|
|
15
|
+
name: string;
|
|
16
|
+
required: true;
|
|
17
|
+
description: string;
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
required: false;
|
|
21
|
+
description: string;
|
|
22
|
+
})[];
|
|
23
|
+
};
|
|
24
|
+
accessibility: string[];
|
|
25
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** Usage guidance for TokenTextField. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Inputs";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
related: {
|
|
6
|
+
name: string;
|
|
7
|
+
when: string;
|
|
8
|
+
}[];
|
|
9
|
+
usage: {
|
|
10
|
+
description: string;
|
|
11
|
+
bestPractices: ({
|
|
12
|
+
guidance: true;
|
|
13
|
+
description: string;
|
|
14
|
+
} | {
|
|
15
|
+
guidance: false;
|
|
16
|
+
description: string;
|
|
17
|
+
})[];
|
|
18
|
+
anatomy: ({
|
|
19
|
+
name: string;
|
|
20
|
+
required: true;
|
|
21
|
+
description: string;
|
|
22
|
+
} | {
|
|
23
|
+
name: string;
|
|
24
|
+
required: false;
|
|
25
|
+
description: string;
|
|
26
|
+
})[];
|
|
27
|
+
};
|
|
28
|
+
accessibility: string[];
|
|
29
|
+
};
|
|
@@ -33,7 +33,7 @@ export type TransferLayoutProps = {
|
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
36
|
-
* Two columns side by side in one frame
|
|
36
|
+
* Two columns side by side in one frame: a header strip over two
|
|
37
37
|
* equal columns of a fixed height whose lists scroll on their own, 1px lines between the parts
|
|
38
38
|
* and no gap, and an optional footer under the start column. The headers and the lists' titles
|
|
39
39
|
* sit outside the scrolling areas. Pure layout: every part is a slot. It holds no state.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Usage guidance for TransferLayout. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Layout";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
usage: {
|
|
6
|
+
description: string;
|
|
7
|
+
bestPractices: ({
|
|
8
|
+
guidance: true;
|
|
9
|
+
description: string;
|
|
10
|
+
} | {
|
|
11
|
+
guidance: false;
|
|
12
|
+
description: string;
|
|
13
|
+
})[];
|
|
14
|
+
anatomy: ({
|
|
15
|
+
name: string;
|
|
16
|
+
required: true;
|
|
17
|
+
description: string;
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
required: false;
|
|
21
|
+
description: string;
|
|
22
|
+
})[];
|
|
23
|
+
};
|
|
24
|
+
accessibility: string[];
|
|
25
|
+
};
|
|
@@ -32,7 +32,7 @@ export type TreeOptionsProps = {
|
|
|
32
32
|
readonly size?: "sm" | "md" | undefined;
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
35
|
-
* The rows of a two-level tree to pick from
|
|
35
|
+
* The rows of a two-level tree to pick from: a group row shows its chevron
|
|
36
36
|
* at the end (right when closed, down when open) and only opens and closes; a leaf is picked; a
|
|
37
37
|
* disabled row does neither. Rows are the Selector's option rows (its styles, its option-row and
|
|
38
38
|
* check theme targets, its check on the picked leaf at the end, where a group shows its chevron),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Usage guidance for TreeOptions. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Selection";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
usage: {
|
|
6
|
+
description: string;
|
|
7
|
+
bestPractices: ({
|
|
8
|
+
guidance: true;
|
|
9
|
+
description: string;
|
|
10
|
+
} | {
|
|
11
|
+
guidance: false;
|
|
12
|
+
description: string;
|
|
13
|
+
})[];
|
|
14
|
+
anatomy: ({
|
|
15
|
+
name: string;
|
|
16
|
+
required: true;
|
|
17
|
+
description: string;
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
required: false;
|
|
21
|
+
description: string;
|
|
22
|
+
})[];
|
|
23
|
+
};
|
|
24
|
+
accessibility: string[];
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Usage guidance for ChipListAddPopover. */
|
|
2
|
+
export declare const doc: {
|
|
3
|
+
category: "Selection";
|
|
4
|
+
keywords: string[];
|
|
5
|
+
related: {
|
|
6
|
+
name: string;
|
|
7
|
+
when: string;
|
|
8
|
+
}[];
|
|
9
|
+
usage: {
|
|
10
|
+
description: string;
|
|
11
|
+
bestPractices: ({
|
|
12
|
+
guidance: true;
|
|
13
|
+
description: string;
|
|
14
|
+
} | {
|
|
15
|
+
guidance: false;
|
|
16
|
+
description: string;
|
|
17
|
+
})[];
|
|
18
|
+
anatomy: {
|
|
19
|
+
name: string;
|
|
20
|
+
required: false;
|
|
21
|
+
description: string;
|
|
22
|
+
}[];
|
|
23
|
+
};
|
|
24
|
+
accessibility: string[];
|
|
25
|
+
};
|