@antscorp/ui 0.1.3 → 0.1.5
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 +25 -1
- package/dist/atoms/AddButton.d.ts +3 -5
- package/dist/atoms/Chip.d.ts +3 -3
- package/dist/atoms/Chip.js +1 -1
- package/dist/atoms/RemoveButton.d.ts +3 -5
- package/dist/atoms/TextAction.d.ts +3 -3
- package/dist/docs.json +1 -1
- package/dist/lib/forwardable.d.ts +8 -0
- package/dist/lib/iso.d.ts +2 -2
- package/dist/lib/iso.js +16 -8
- package/dist/lib/tokenEditorExtensions.js +1 -1
- package/dist/molecules/AccentCard.js +2 -2
- package/dist/molecules/CheckGroup.d.ts +2 -1
- package/dist/molecules/CheckRow.d.ts +3 -5
- package/dist/molecules/ChoiceTiles.js +1 -1
- package/dist/molecules/CommitTextField.d.ts +2 -19
- package/dist/molecules/CommitTextField.js +21 -18
- package/dist/molecules/ConfirmDialog.d.ts +3 -7
- package/dist/molecules/DateTimeInput.d.ts +7 -3
- package/dist/molecules/DateTimeInput.js +82 -73
- package/dist/molecules/DurationInput.d.ts +2 -1
- package/dist/molecules/PercentRow.d.ts +2 -1
- package/dist/molecules/RemovableRow.js +32 -32
- package/dist/molecules/RevealRadioGroup.d.ts +3 -9
- package/dist/molecules/RevealSwitch.d.ts +3 -7
- package/dist/molecules/Select.d.ts +8 -23
- package/dist/molecules/Select.js +26 -20
- package/dist/molecules/StatusButton.d.ts +3 -7
- package/dist/molecules/ToggleGrid.d.ts +2 -1
- package/dist/molecules/TokenTextField.d.ts +2 -1
- package/dist/molecules/TreeOptions.d.ts +3 -2
- package/dist/molecules/TreeOptions.js +67 -44
- package/dist/organisms/HourOfDayRow.js +2 -2
- package/dist/organisms/HourOfWeekGrid.js +2 -2
- package/dist/organisms/TokenPickerDialog.d.ts +2 -1
- package/dist/organisms/TransferPicker.d.ts +2 -1
- package/dist/organisms/TreeSearchPanel.js +50 -47
- package/dist/theme/AntsomiTheme.d.ts +3 -2
- package/dist/theme/AntsomiTheme.js +8 -7
- package/dist/ui.css +1 -1
- package/package.json +23 -17
- package/src/atoms/AddButton.tsx +3 -6
- package/src/atoms/Chip.tsx +6 -5
- package/src/atoms/RemoveButton.tsx +4 -6
- package/src/atoms/TextAction.tsx +4 -4
- package/src/lib/forwardable.ts +8 -0
- package/src/lib/iso.ts +15 -3
- package/src/lib/tokenEditorExtensions.ts +1 -1
- package/src/molecules/AccentCard.tsx +4 -2
- package/src/molecules/CheckGroup.tsx +3 -3
- package/src/molecules/CheckRow.tsx +3 -6
- package/src/molecules/ChoiceTiles.tsx +3 -1
- package/src/molecules/CommitTextField.tsx +18 -20
- package/src/molecules/ConfirmDialog.tsx +6 -8
- package/src/molecules/DateTimeInput.tsx +87 -68
- package/src/molecules/DurationInput.tsx +4 -1
- package/src/molecules/PercentRow.tsx +3 -2
- package/src/molecules/RemovableRow.tsx +1 -1
- package/src/molecules/RevealRadioGroup.tsx +5 -10
- package/src/molecules/RevealSwitch.tsx +4 -8
- package/src/molecules/Select.tsx +25 -22
- package/src/molecules/StatusButton.tsx +4 -8
- package/src/molecules/ToggleGrid.tsx +3 -3
- package/src/molecules/TokenTextField.tsx +3 -3
- package/src/molecules/TreeOptions.tsx +86 -62
- package/src/organisms/HourOfDayRow.tsx +4 -2
- package/src/organisms/HourOfWeekGrid.tsx +4 -2
- package/src/organisms/TokenPickerDialog.tsx +2 -1
- package/src/organisms/TransferPicker.tsx +3 -3
- package/src/organisms/TreeSearchPanel.tsx +1 -1
- package/src/theme/AntsomiTheme.tsx +9 -3
- package/dist/atoms/AddButton.doc.d.ts +0 -21
- package/dist/atoms/AddGlyph.doc.d.ts +0 -16
- package/dist/atoms/Chip.doc.d.ts +0 -29
- package/dist/atoms/ChipSkeletons.doc.d.ts +0 -21
- package/dist/atoms/FieldHeading.doc.d.ts +0 -15
- package/dist/atoms/HoverSwap.doc.d.ts +0 -25
- package/dist/atoms/InfoTip.doc.d.ts +0 -25
- package/dist/atoms/JointLabel.doc.d.ts +0 -15
- package/dist/atoms/LabeledDivider.doc.d.ts +0 -21
- package/dist/atoms/LogoImage.doc.d.ts +0 -21
- package/dist/atoms/PanelSearchInput.doc.d.ts +0 -25
- package/dist/atoms/PathMark.doc.d.ts +0 -16
- package/dist/atoms/RemoveButton.doc.d.ts +0 -16
- package/dist/atoms/RowSkeletons.doc.d.ts +0 -25
- package/dist/atoms/TextAction.doc.d.ts +0 -25
- package/dist/atoms/TruncatedOption.doc.d.ts +0 -24
- package/dist/atoms/TruncatedText.doc.d.ts +0 -15
- package/dist/molecules/AccentCard.doc.d.ts +0 -25
- package/dist/molecules/CheckGroup.doc.d.ts +0 -25
- package/dist/molecules/CheckRow.doc.d.ts +0 -25
- package/dist/molecules/ChoiceDialog.doc.d.ts +0 -21
- package/dist/molecules/ChoiceTiles.doc.d.ts +0 -21
- package/dist/molecules/CommitTextField.doc.d.ts +0 -29
- package/dist/molecules/ConfirmDialog.doc.d.ts +0 -21
- package/dist/molecules/DateTimeInput.doc.d.ts +0 -25
- package/dist/molecules/DurationInput.doc.d.ts +0 -25
- package/dist/molecules/FieldGroup.doc.d.ts +0 -25
- package/dist/molecules/FieldRow.doc.d.ts +0 -24
- package/dist/molecules/FieldSkeleton.doc.d.ts +0 -25
- package/dist/molecules/FrequencyLimitRow.doc.d.ts +0 -25
- package/dist/molecules/InlineEditableText.doc.d.ts +0 -25
- package/dist/molecules/LoadMoreRow.doc.d.ts +0 -21
- package/dist/molecules/LoadState.doc.d.ts +0 -21
- package/dist/molecules/MetaTable.doc.d.ts +0 -25
- package/dist/molecules/PercentRow.doc.d.ts +0 -25
- package/dist/molecules/PhoneFrame.doc.d.ts +0 -21
- package/dist/molecules/ProblemsButton.doc.d.ts +0 -25
- package/dist/molecules/RemovableRow.doc.d.ts +0 -25
- package/dist/molecules/RevealRadioGroup.doc.d.ts +0 -25
- package/dist/molecules/RevealSwitch.doc.d.ts +0 -25
- package/dist/molecules/RuleRow.doc.d.ts +0 -25
- package/dist/molecules/Select.doc.d.ts +0 -30
- package/dist/molecules/SideLabelRow.doc.d.ts +0 -20
- package/dist/molecules/SplitButton.doc.d.ts +0 -25
- package/dist/molecules/StatusButton.doc.d.ts +0 -25
- package/dist/molecules/TagSelect.doc.d.ts +0 -25
- package/dist/molecules/ToggleGrid.doc.d.ts +0 -25
- package/dist/molecules/TokenTextField.doc.d.ts +0 -29
- package/dist/molecules/TransferLayout.doc.d.ts +0 -25
- package/dist/molecules/TreeOptions.doc.d.ts +0 -25
- package/dist/organisms/ChipListAddPopover.doc.d.ts +0 -25
- package/dist/organisms/HourOfDayRow.doc.d.ts +0 -25
- package/dist/organisms/HourOfWeekGrid.doc.d.ts +0 -25
- package/dist/organisms/RepeatableList.doc.d.ts +0 -21
- package/dist/organisms/ResizableDrawer.doc.d.ts +0 -25
- package/dist/organisms/RuleGroups.doc.d.ts +0 -21
- package/dist/organisms/RuleList.doc.d.ts +0 -25
- package/dist/organisms/SearchableGroupedList.doc.d.ts +0 -25
- package/dist/organisms/TokenPickerDialog.doc.d.ts +0 -21
- package/dist/organisms/TransferPicker.doc.d.ts +0 -29
- package/dist/organisms/TreeSearchPanel.doc.d.ts +0 -25
- package/dist/organisms/TreeSelect.doc.d.ts +0 -29
- package/dist/theme/AntsomiTheme.doc.d.ts +0 -15
- package/dist/theme/AntsomiTheme.doc.js +0 -22
- package/src/atoms/AddButton.doc.ts +0 -36
- package/src/atoms/AddGlyph.doc.ts +0 -26
- package/src/atoms/Chip.doc.ts +0 -45
- package/src/atoms/ChipSkeletons.doc.ts +0 -31
- package/src/atoms/FieldHeading.doc.ts +0 -22
- package/src/atoms/HoverSwap.doc.ts +0 -39
- package/src/atoms/InfoTip.doc.ts +0 -37
- package/src/atoms/JointLabel.doc.ts +0 -23
- package/src/atoms/LabeledDivider.doc.ts +0 -35
- package/src/atoms/LogoImage.doc.ts +0 -42
- package/src/atoms/PanelSearchInput.doc.ts +0 -41
- package/src/atoms/PathMark.doc.ts +0 -25
- package/src/atoms/RemoveButton.doc.ts +0 -26
- package/src/atoms/RowSkeletons.doc.ts +0 -43
- package/src/atoms/TextAction.doc.ts +0 -40
- package/src/atoms/TruncatedOption.doc.ts +0 -39
- package/src/atoms/TruncatedText.doc.ts +0 -22
- package/src/molecules/AccentCard.doc.ts +0 -43
- package/src/molecules/CheckGroup.doc.ts +0 -40
- package/src/molecules/CheckRow.doc.ts +0 -43
- package/src/molecules/ChoiceDialog.doc.ts +0 -48
- package/src/molecules/ChoiceTiles.doc.ts +0 -42
- package/src/molecules/CommitTextField.doc.ts +0 -41
- package/src/molecules/ConfirmDialog.doc.ts +0 -43
- package/src/molecules/DateTimeInput.doc.ts +0 -48
- package/src/molecules/DurationInput.doc.ts +0 -36
- package/src/molecules/FieldGroup.doc.ts +0 -41
- package/src/molecules/FieldRow.doc.ts +0 -36
- package/src/molecules/FieldSkeleton.doc.ts +0 -38
- package/src/molecules/FrequencyLimitRow.doc.ts +0 -48
- package/src/molecules/InlineEditableText.doc.ts +0 -41
- package/src/molecules/LoadMoreRow.doc.ts +0 -36
- package/src/molecules/LoadState.doc.ts +0 -42
- package/src/molecules/MetaTable.doc.ts +0 -46
- package/src/molecules/PercentRow.doc.ts +0 -48
- package/src/molecules/PhoneFrame.doc.ts +0 -46
- package/src/molecules/ProblemsButton.doc.ts +0 -41
- package/src/molecules/RemovableRow.doc.ts +0 -48
- package/src/molecules/RevealRadioGroup.doc.ts +0 -41
- package/src/molecules/RevealSwitch.doc.ts +0 -38
- package/src/molecules/RuleRow.doc.ts +0 -43
- package/src/molecules/Select.doc.ts +0 -62
- package/src/molecules/SideLabelRow.doc.ts +0 -35
- package/src/molecules/SplitButton.doc.ts +0 -41
- package/src/molecules/StatusButton.doc.ts +0 -39
- package/src/molecules/TagSelect.doc.ts +0 -41
- package/src/molecules/ToggleGrid.doc.ts +0 -43
- package/src/molecules/TokenTextField.doc.ts +0 -41
- package/src/molecules/TransferLayout.doc.ts +0 -42
- package/src/molecules/TreeOptions.doc.ts +0 -38
- package/src/organisms/ChipListAddPopover.doc.ts +0 -54
- package/src/organisms/HourOfDayRow.doc.ts +0 -43
- package/src/organisms/HourOfWeekGrid.doc.ts +0 -48
- package/src/organisms/RepeatableList.doc.ts +0 -49
- package/src/organisms/ResizableDrawer.doc.ts +0 -48
- package/src/organisms/RuleGroups.doc.ts +0 -49
- package/src/organisms/RuleList.doc.ts +0 -43
- package/src/organisms/SearchableGroupedList.doc.ts +0 -49
- package/src/organisms/TokenPickerDialog.doc.ts +0 -54
- package/src/organisms/TransferPicker.doc.ts +0 -69
- package/src/organisms/TreeSearchPanel.doc.ts +0 -43
- package/src/organisms/TreeSelect.doc.ts +0 -56
- package/src/theme/AntsomiTheme.doc.ts +0 -23
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { ComponentDoc } from "../doc/schema";
|
|
2
|
-
|
|
3
|
-
/** Usage guidance for HourOfDayRow. */
|
|
4
|
-
export const doc = {
|
|
5
|
-
category: "Selection",
|
|
6
|
-
keywords: ["hours", "day", "schedule", "drag"],
|
|
7
|
-
usage: {
|
|
8
|
-
description:
|
|
9
|
-
"Pick hours in one day by toggling cells or dragging a run. Use HourOfWeekGrid when selections vary by weekday.",
|
|
10
|
-
bestPractices: [
|
|
11
|
-
{
|
|
12
|
-
guidance: true,
|
|
13
|
-
description:
|
|
14
|
-
"Pass hours from 0 to 23 and format names through labels.hour; store the sorted unique result from onChange.",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
guidance: false,
|
|
18
|
-
description:
|
|
19
|
-
"Do not compress the cells to fit a narrow panel; the row keeps its cell size and scrolls horizontally.",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
anatomy: [
|
|
23
|
-
{
|
|
24
|
-
name: "Hour cells",
|
|
25
|
-
required: true,
|
|
26
|
-
description: "Twenty-four cells showing picked hours and drag preview.",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: "Hour labels",
|
|
30
|
-
required: true,
|
|
31
|
-
description: "Every third hour named below the row.",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: "Error",
|
|
35
|
-
required: false,
|
|
36
|
-
description: "A translated problem below the selection.",
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
accessibility: [
|
|
41
|
-
"label names the row; arrow keys move between hours and Space or Enter toggles the focused hour.",
|
|
42
|
-
],
|
|
43
|
-
} satisfies ComponentDoc;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { ComponentDoc } from "../doc/schema";
|
|
2
|
-
|
|
3
|
-
/** Usage guidance for HourOfWeekGrid. */
|
|
4
|
-
export const doc = {
|
|
5
|
-
category: "Selection",
|
|
6
|
-
keywords: ["hours", "week", "schedule", "grid"],
|
|
7
|
-
usage: {
|
|
8
|
-
description:
|
|
9
|
-
"Pick hours across seven days by dragging a rectangle, toggling a day, or using the everyday row. Use HourOfDayRow when one daily selection is sufficient.",
|
|
10
|
-
bestPractices: [
|
|
11
|
-
{
|
|
12
|
-
guidance: true,
|
|
13
|
-
description:
|
|
14
|
-
"Supply seven day labels Monday first and store cells as day * 24 + hour, from 0 to 167.",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
guidance: false,
|
|
18
|
-
description:
|
|
19
|
-
"Do not assume read-only matches disabled presentation; read-only hides the everyday editing row while disabled keeps it.",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
anatomy: [
|
|
23
|
-
{
|
|
24
|
-
name: "Day rows",
|
|
25
|
-
required: true,
|
|
26
|
-
description: "Seven rows of twenty-four hour cells, with day-name actions.",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: "Everyday row",
|
|
30
|
-
required: false,
|
|
31
|
-
description: "Controls that toggle whole hours across all days, hidden when read-only.",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: "Hour axis",
|
|
35
|
-
required: true,
|
|
36
|
-
description: "Formatted hour names along the grid.",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: "Error",
|
|
40
|
-
required: false,
|
|
41
|
-
description: "A translated problem below the grid.",
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
accessibility: [
|
|
46
|
-
"label names the grid even when visually hidden; cells expose selection, arrow keys move focus, and Space or Enter toggles a cell.",
|
|
47
|
-
],
|
|
48
|
-
} satisfies ComponentDoc;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { ComponentDoc } from "../doc/schema";
|
|
2
|
-
|
|
3
|
-
/** Usage guidance for RepeatableList. */
|
|
4
|
-
export const doc = {
|
|
5
|
-
category: "Inputs",
|
|
6
|
-
keywords: ["list", "repeatable", "add", "rows"],
|
|
7
|
-
usage: {
|
|
8
|
-
description:
|
|
9
|
-
"Compose an editable list whose items and removal controls are supplied by the host. Use RuleList when every item should have a RuleRow and first/rest joining words.",
|
|
10
|
-
bestPractices: [
|
|
11
|
-
{
|
|
12
|
-
guidance: true,
|
|
13
|
-
description:
|
|
14
|
-
"Provide stable itemKey values and pass disabled or read-only state into the controls rendered by renderItem.",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
guidance: false,
|
|
18
|
-
description:
|
|
19
|
-
"Do not hide the add button yourself at max; the list keeps it disabled with labels.maxReached when supplied.",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
anatomy: [
|
|
23
|
-
{
|
|
24
|
-
name: "Items",
|
|
25
|
-
required: false,
|
|
26
|
-
description:
|
|
27
|
-
"Host-rendered rows when items exist, optionally sharing column headings and tracks.",
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: "Separators",
|
|
31
|
-
required: false,
|
|
32
|
-
description: "Joint words or labeled dividers between items.",
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: "Add row",
|
|
36
|
-
required: false,
|
|
37
|
-
description: "A named add button, optionally placed by renderAdd.",
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: "Feedback",
|
|
41
|
-
required: false,
|
|
42
|
-
description: "Empty, maximum and validation messages.",
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
},
|
|
46
|
-
accessibility: [
|
|
47
|
-
"label names the list's group; supply labels.add for its add action and accessible names inside rendered items.",
|
|
48
|
-
],
|
|
49
|
-
} satisfies ComponentDoc;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { ComponentDoc } from "../doc/schema";
|
|
2
|
-
|
|
3
|
-
/** Usage guidance for ResizableDrawer. */
|
|
4
|
-
export const doc = {
|
|
5
|
-
category: "Overlays",
|
|
6
|
-
keywords: ["drawer", "resize", "panel", "expand"],
|
|
7
|
-
usage: {
|
|
8
|
-
description:
|
|
9
|
-
"Place a resizable panel at the bottom of its parent, with a fixed header and scrolling body. Expansion covers that parent and Escape shrinks an expanded drawer.",
|
|
10
|
-
bestPractices: [
|
|
11
|
-
{
|
|
12
|
-
guidance: true,
|
|
13
|
-
description:
|
|
14
|
-
"Keep isExpanded controlled through onExpandedChange and provide labels and glyphs for expand and shrink.",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
guidance: false,
|
|
18
|
-
description:
|
|
19
|
-
"Do not expect the drawer to cover the browser viewport unless its parent is sized for that purpose.",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
anatomy: [
|
|
23
|
-
{
|
|
24
|
-
name: "Resize bar",
|
|
25
|
-
required: true,
|
|
26
|
-
description: "The handle for changing the local drawer height.",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: "Header",
|
|
30
|
-
required: true,
|
|
31
|
-
description: "Host title, optional end content, expand and close buttons.",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: "Banners",
|
|
35
|
-
required: false,
|
|
36
|
-
description: "Host messages above the body.",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: "Body",
|
|
40
|
-
required: true,
|
|
41
|
-
description: "Scrolling host content.",
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
accessibility: [
|
|
46
|
-
"label names the drawer; labels names the expand, shrink, close and optional resize controls; Escape shrinks when expanded.",
|
|
47
|
-
],
|
|
48
|
-
} satisfies ComponentDoc;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { ComponentDoc } from "../doc/schema";
|
|
2
|
-
|
|
3
|
-
/** Usage guidance for RuleGroups. */
|
|
4
|
-
export const doc = {
|
|
5
|
-
category: "Inputs",
|
|
6
|
-
keywords: ["rules", "groups", "conditions", "and", "or"],
|
|
7
|
-
usage: {
|
|
8
|
-
description:
|
|
9
|
-
"Edit alternative groups of rules, where all rules in one group must hold. Use RuleList for a single flat conjunction of rules.",
|
|
10
|
-
bestPractices: [
|
|
11
|
-
{
|
|
12
|
-
guidance: true,
|
|
13
|
-
description:
|
|
14
|
-
"Keep groups controlled and configure controls returned by renderRule for the same disabled or read-only state as the groups.",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
guidance: false,
|
|
18
|
-
description:
|
|
19
|
-
"Do not expect a disabled add at maxRules or maxGroups; this view hides adds at their limits and protects the final rule from removal.",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
anatomy: [
|
|
23
|
-
{
|
|
24
|
-
name: "Rule cards",
|
|
25
|
-
required: false,
|
|
26
|
-
description:
|
|
27
|
-
"Titled accent cards containing host controls and optional close actions when groups contain rules.",
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: "And joints",
|
|
31
|
-
required: false,
|
|
32
|
-
description: "Words and add-rule buttons within each group.",
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: "Or dividers",
|
|
36
|
-
required: false,
|
|
37
|
-
description: "Dashed separators and the add-group action.",
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: "Error",
|
|
41
|
-
required: false,
|
|
42
|
-
description: "A translated problem with all groups.",
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
},
|
|
46
|
-
accessibility: [
|
|
47
|
-
"label names the whole group and labels.remove names rule-card close actions; supplied controls keep their own labels.",
|
|
48
|
-
],
|
|
49
|
-
} satisfies ComponentDoc;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { ComponentDoc } from "../doc/schema";
|
|
2
|
-
|
|
3
|
-
/** Usage guidance for RuleList. */
|
|
4
|
-
export const doc = {
|
|
5
|
-
category: "Inputs",
|
|
6
|
-
keywords: ["rules", "list", "conditions", "joint"],
|
|
7
|
-
usage: {
|
|
8
|
-
description:
|
|
9
|
-
"Edit rules that all must hold, with one joining word on the first row and another on later rows. Use RuleGroups when alternatives need separate groups of rule cards.",
|
|
10
|
-
bestPractices: [
|
|
11
|
-
{
|
|
12
|
-
guidance: true,
|
|
13
|
-
description:
|
|
14
|
-
"Provide stable itemKey values and pass the list's size and lock state to controls returned by renderControls.",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
guidance: false,
|
|
18
|
-
description:
|
|
19
|
-
"Do not expect isReadOnly to change host-rendered controls; it hides the list's add and remove actions.",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
anatomy: [
|
|
23
|
-
{
|
|
24
|
-
name: "Rule rows",
|
|
25
|
-
required: true,
|
|
26
|
-
description: "RuleRow controls with first/rest joint labels and removal actions.",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: "Add row",
|
|
30
|
-
required: false,
|
|
31
|
-
description: "An optional add action, with a joint when hasAddJoint is enabled.",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: "Feedback",
|
|
35
|
-
required: false,
|
|
36
|
-
description: "Empty, maximum and validation messages.",
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
accessibility: [
|
|
41
|
-
"label names the list; labels.remove and labels.add name editing actions, and each supplied control needs its own label.",
|
|
42
|
-
],
|
|
43
|
-
} satisfies ComponentDoc;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { ComponentDoc } from "../doc/schema";
|
|
2
|
-
|
|
3
|
-
/** Usage guidance for SearchableGroupedList. */
|
|
4
|
-
export const doc = {
|
|
5
|
-
category: "Selection",
|
|
6
|
-
keywords: ["search", "groups", "list", "tiles"],
|
|
7
|
-
usage: {
|
|
8
|
-
description:
|
|
9
|
-
"Browse host-rendered items in titled groups, filtering locally as text is typed. Use TreeSelect when the result must be a single leaf chosen from two-level groups.",
|
|
10
|
-
bestPractices: [
|
|
11
|
-
{
|
|
12
|
-
guidance: true,
|
|
13
|
-
description:
|
|
14
|
-
"Provide stable group keys and globally unique item keys; use itemText for the text to match and placeholder for independently loading groups.",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
guidance: false,
|
|
18
|
-
description:
|
|
19
|
-
"Do not expect isDisabled to block host-rendered item actions; it only affects the uncapped list's search control.",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
anatomy: [
|
|
23
|
-
{
|
|
24
|
-
name: "Search",
|
|
25
|
-
required: true,
|
|
26
|
-
description: "The local query input with clear action.",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: "Group headings",
|
|
30
|
-
required: true,
|
|
31
|
-
description: "Titles, optionally toggling collapsed groups.",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: "Items",
|
|
35
|
-
required: true,
|
|
36
|
-
description:
|
|
37
|
-
"Host rows or three-column tiles, replaced by group placeholders when supplied.",
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: "No-match message",
|
|
41
|
-
required: false,
|
|
42
|
-
description: "Shown when there are no matching items.",
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
},
|
|
46
|
-
accessibility: [
|
|
47
|
-
"Supply labels.search and labels.clear, and scroll.label when using a scrolling region; item renderers supply their own accessible controls.",
|
|
48
|
-
],
|
|
49
|
-
} satisfies ComponentDoc;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { ComponentDoc } from "../doc/schema";
|
|
2
|
-
|
|
3
|
-
/** Usage guidance for TokenPickerDialog. */
|
|
4
|
-
export const doc = {
|
|
5
|
-
category: "Overlays",
|
|
6
|
-
keywords: ["token", "picker", "definition", "dialog"],
|
|
7
|
-
usage: {
|
|
8
|
-
description:
|
|
9
|
-
"Compose a token definition from a group, a leaf, a display name and fallback text. Use TokenTextField to edit the resulting raw token string inline.",
|
|
10
|
-
bestPractices: [
|
|
11
|
-
{
|
|
12
|
-
guidance: true,
|
|
13
|
-
description:
|
|
14
|
-
"Keep the definition controlled and reset its draft and items when onGroupChange selects a different group.",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
guidance: false,
|
|
18
|
-
description:
|
|
19
|
-
"Do not expect confirmation while loading, without a picked item or with a blank display name; read-only mode hides confirmation.",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
anatomy: [
|
|
23
|
-
{
|
|
24
|
-
name: "Dialog heading",
|
|
25
|
-
required: true,
|
|
26
|
-
description: "The supplied title.",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: "Group and item selectors",
|
|
30
|
-
required: true,
|
|
31
|
-
description:
|
|
32
|
-
"A group choice and a searchable flat or two-level leaf choice, with a loading skeleton when needed.",
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: "Fallback text",
|
|
36
|
-
required: true,
|
|
37
|
-
description: "The controlled defaultValue field.",
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: "Display name",
|
|
41
|
-
required: true,
|
|
42
|
-
description: "A required name, defaulted from the picked leaf until customized.",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: "Actions",
|
|
46
|
-
required: true,
|
|
47
|
-
description: "Cancel and, when editable, Insert or Save according to mode.",
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
},
|
|
51
|
-
accessibility: [
|
|
52
|
-
"Provide the translated group, item, displayName and defaultValue field labels; the dialog uses Astryx Dialog behavior.",
|
|
53
|
-
],
|
|
54
|
-
} satisfies ComponentDoc;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { ComponentDoc } from "../doc/schema";
|
|
2
|
-
|
|
3
|
-
/** Usage guidance for TransferPicker. */
|
|
4
|
-
export const doc = {
|
|
5
|
-
category: "Selection",
|
|
6
|
-
keywords: ["transfer", "multiple", "picked", "paging"],
|
|
7
|
-
related: [
|
|
8
|
-
{
|
|
9
|
-
name: "ChipListAddPopover",
|
|
10
|
-
when: "Use compact removable chips and apply checkbox changes as one draft.",
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
|
-
usage: {
|
|
14
|
-
description:
|
|
15
|
-
"Pick several options in two columns, keeping available rows and removable picks visible together. Use ChipListAddPopover when a compact chip list with an Apply draft is more appropriate.",
|
|
16
|
-
bestPractices: [
|
|
17
|
-
{
|
|
18
|
-
guidance: true,
|
|
19
|
-
description:
|
|
20
|
-
"Supply labels.loadMoreError, labels.retry and onRetryLoadMore together for paging recovery. The error pauses automatic loading; clear it and set isLoadingMore while retrying, then update options and hasMore after success.",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
guidance: false,
|
|
24
|
-
description:
|
|
25
|
-
"Do not treat select-all as only adding visible rows: when picks already exist, it clears the entire selection, including unknown picks.",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
guidance: true,
|
|
29
|
-
description:
|
|
30
|
-
"Supply pickedOptions or pickedLabels for values absent from the loaded options and use onSearchChange when the host performs search.",
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
guidance: false,
|
|
34
|
-
description:
|
|
35
|
-
"Do not replace the current pick with only the visible options after search or paging; unknown picks are intentionally retained.",
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
anatomy: [
|
|
39
|
-
{
|
|
40
|
-
name: "Available column",
|
|
41
|
-
required: true,
|
|
42
|
-
description: "Search, a title and checkbox rows, with optional details and select-all.",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: "Picked column",
|
|
46
|
-
required: true,
|
|
47
|
-
description: "Framed picked rows with optional remove-all and row actions.",
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: "Loading and paging rows",
|
|
51
|
-
required: false,
|
|
52
|
-
description: "Skeletons or a failed-page retry row that preserve loaded content.",
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
name: "Host slots",
|
|
56
|
-
required: false,
|
|
57
|
-
description: "Toolbar, end header and footer content.",
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: "Error",
|
|
61
|
-
required: false,
|
|
62
|
-
description: "A translated selection problem below the picker.",
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
},
|
|
66
|
-
accessibility: [
|
|
67
|
-
"Supply search, clearSearch, picked and remove labels; disabled and read-only states block picking while search remains usable.",
|
|
68
|
-
],
|
|
69
|
-
} satisfies ComponentDoc;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { ComponentDoc } from "../doc/schema";
|
|
2
|
-
|
|
3
|
-
/** Usage guidance for TreeSearchPanel. */
|
|
4
|
-
export const doc = {
|
|
5
|
-
category: "Selection",
|
|
6
|
-
keywords: ["tree", "search", "panel", "paging"],
|
|
7
|
-
usage: {
|
|
8
|
-
description:
|
|
9
|
-
"Compose the search and results panel used inside TreeSelect. Use TreeSelect for a complete trigger and popover around this panel.",
|
|
10
|
-
bestPractices: [
|
|
11
|
-
{
|
|
12
|
-
guidance: true,
|
|
13
|
-
description:
|
|
14
|
-
"Keep search value and selectedValue controlled, and use isSearchedByHost when items are already filtered remotely.",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
guidance: false,
|
|
18
|
-
description:
|
|
19
|
-
"Do not expect the panel to close a surrounding popover after onPick; its host owns that behavior.",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
anatomy: [
|
|
23
|
-
{
|
|
24
|
-
name: "Search input",
|
|
25
|
-
required: true,
|
|
26
|
-
description: "A controlled query that focuses a frame after mounting.",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: "Results",
|
|
30
|
-
required: true,
|
|
31
|
-
description: "TreeOptions, loading rows or a no-match message.",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: "Paging row",
|
|
35
|
-
required: false,
|
|
36
|
-
description: "A load-more sentinel, loading placeholders or a retry action.",
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
accessibility: [
|
|
41
|
-
"label names the tree and labels supplies the search and clear names; TreeOptions handles row focus and keyboard activation.",
|
|
42
|
-
],
|
|
43
|
-
} satisfies ComponentDoc;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { ComponentDoc } from "../doc/schema";
|
|
2
|
-
|
|
3
|
-
/** Usage guidance for TreeSelect. */
|
|
4
|
-
export const doc = {
|
|
5
|
-
category: "Selection",
|
|
6
|
-
keywords: ["tree", "select", "search", "leaf"],
|
|
7
|
-
related: [
|
|
8
|
-
{ name: "Select", when: "Choose one value from flat options or sections without a tree." },
|
|
9
|
-
],
|
|
10
|
-
usage: {
|
|
11
|
-
description:
|
|
12
|
-
"Choose a single leaf through a searchable two-level tree in a popover. Use Select for a conventional flat or sectioned options list.",
|
|
13
|
-
bestPractices: [
|
|
14
|
-
{
|
|
15
|
-
guidance: true,
|
|
16
|
-
description:
|
|
17
|
-
"Supply labels.search, labels.noMatch and labels.clear for the panel. For paging recovery, supply labels.loadMoreError, labels.retry and onRetryLoadMore together; clear the error and set isLoadingMore while retrying, then update items and hasMore after success.",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
guidance: true,
|
|
21
|
-
description:
|
|
22
|
-
"Keep item values unique and supply labels.value for a selected leaf that is absent from the loaded items.",
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
guidance: false,
|
|
26
|
-
description:
|
|
27
|
-
"Do not expect group rows to become selected values or nesting deeper than two levels to render.",
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
anatomy: [
|
|
31
|
-
{
|
|
32
|
-
name: "Trigger",
|
|
33
|
-
required: true,
|
|
34
|
-
description: "The selected label or placeholder, with loading or read-only presentation.",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
name: "Start addon",
|
|
38
|
-
required: false,
|
|
39
|
-
description: "A separate host control sharing the frame, outside the trigger button.",
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: "Panel",
|
|
43
|
-
required: false,
|
|
44
|
-
description: "Search, a tree, and optional paging or retry rows while the popover is open.",
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: "Error",
|
|
48
|
-
required: false,
|
|
49
|
-
description: "A translated problem below the trigger.",
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
accessibility: [
|
|
54
|
-
"Supply label even when hidden; the tree supports Up and Down, Enter and Space, and Escape closes the popover.",
|
|
55
|
-
],
|
|
56
|
-
} satisfies ComponentDoc;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { ComponentDoc } from "../doc/schema";
|
|
2
|
-
|
|
3
|
-
/** Usage guidance for AntsomiTheme. */
|
|
4
|
-
export const doc = {
|
|
5
|
-
category: "Theme",
|
|
6
|
-
keywords: ["theme", "provider", "tokens", "icons", "mode"],
|
|
7
|
-
usage: {
|
|
8
|
-
description:
|
|
9
|
-
"Apply the Antsomi base theme to a subtree and forward Astryx's light, dark or system mode. Extend antsomiTheme with defineTheme and pass the result through theme for a scoped override.",
|
|
10
|
-
bestPractices: [
|
|
11
|
-
{
|
|
12
|
-
guidance: true,
|
|
13
|
-
description:
|
|
14
|
-
"Import @antscorp/ui/theme.css separately and load Roboto in the host; nest providers when an override should affect only a subtree.",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
guidance: false,
|
|
18
|
-
description:
|
|
19
|
-
"Do not expect the provider to load CSS or fonts, or replace theme tokens with hard-coded colors in consuming views.",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
},
|
|
23
|
-
} satisfies ComponentDoc;
|