@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.
Files changed (195) hide show
  1. package/README.md +1 -1
  2. package/dist/atoms/AddButton.d.ts +1 -1
  3. package/dist/atoms/AddButton.doc.d.ts +21 -0
  4. package/dist/atoms/AddGlyph.doc.d.ts +16 -0
  5. package/dist/atoms/Chip.doc.d.ts +29 -0
  6. package/dist/atoms/ChipSkeletons.doc.d.ts +21 -0
  7. package/dist/atoms/FieldHeading.doc.d.ts +15 -0
  8. package/dist/atoms/HoverSwap.doc.d.ts +25 -0
  9. package/dist/atoms/InfoTip.doc.d.ts +25 -0
  10. package/dist/atoms/InfoTip.js +2 -0
  11. package/dist/atoms/JointLabel.doc.d.ts +15 -0
  12. package/dist/atoms/LabeledDivider.d.ts +1 -1
  13. package/dist/atoms/LabeledDivider.doc.d.ts +21 -0
  14. package/dist/atoms/LogoImage.doc.d.ts +21 -0
  15. package/dist/atoms/PanelSearchInput.d.ts +1 -1
  16. package/dist/atoms/PanelSearchInput.doc.d.ts +25 -0
  17. package/dist/atoms/PathMark.doc.d.ts +16 -0
  18. package/dist/atoms/RemoveButton.doc.d.ts +16 -0
  19. package/dist/atoms/RowSkeletons.doc.d.ts +25 -0
  20. package/dist/atoms/TextAction.d.ts +3 -3
  21. package/dist/atoms/TextAction.doc.d.ts +25 -0
  22. package/dist/atoms/TruncatedOption.d.ts +1 -1
  23. package/dist/atoms/TruncatedOption.doc.d.ts +24 -0
  24. package/dist/atoms/TruncatedText.doc.d.ts +15 -0
  25. package/dist/cli.js +248 -0
  26. package/dist/doc/schema.d.ts +34 -0
  27. package/dist/doc/schema.js +33 -0
  28. package/dist/docs.json +1 -0
  29. package/dist/index.d.ts +2 -0
  30. package/dist/index.js +53 -51
  31. package/dist/lib/useLoadingShown.d.ts +1 -1
  32. package/dist/molecules/AccentCard.d.ts +2 -3
  33. package/dist/molecules/AccentCard.doc.d.ts +25 -0
  34. package/dist/molecules/CheckGroup.doc.d.ts +25 -0
  35. package/dist/molecules/CheckRow.d.ts +1 -1
  36. package/dist/molecules/CheckRow.doc.d.ts +25 -0
  37. package/dist/molecules/ChoiceDialog.doc.d.ts +21 -0
  38. package/dist/molecules/ChoiceTiles.d.ts +1 -1
  39. package/dist/molecules/ChoiceTiles.doc.d.ts +21 -0
  40. package/dist/molecules/CommitTextField.doc.d.ts +29 -0
  41. package/dist/molecules/ConfirmDialog.doc.d.ts +21 -0
  42. package/dist/molecules/DateTimeInput.doc.d.ts +25 -0
  43. package/dist/molecules/DurationInput.doc.d.ts +25 -0
  44. package/dist/molecules/FieldGroup.d.ts +1 -1
  45. package/dist/molecules/FieldGroup.doc.d.ts +25 -0
  46. package/dist/molecules/FieldRow.d.ts +1 -1
  47. package/dist/molecules/FieldRow.doc.d.ts +24 -0
  48. package/dist/molecules/FieldSkeleton.doc.d.ts +25 -0
  49. package/dist/molecules/FrequencyLimitRow.doc.d.ts +25 -0
  50. package/dist/molecules/InlineEditableText.doc.d.ts +25 -0
  51. package/dist/molecules/LoadMoreRow.doc.d.ts +21 -0
  52. package/dist/molecules/LoadState.doc.d.ts +21 -0
  53. package/dist/molecules/MetaTable.d.ts +1 -1
  54. package/dist/molecules/MetaTable.doc.d.ts +25 -0
  55. package/dist/molecules/PercentRow.doc.d.ts +25 -0
  56. package/dist/molecules/PhoneFrame.d.ts +1 -1
  57. package/dist/molecules/PhoneFrame.doc.d.ts +21 -0
  58. package/dist/molecules/ProblemsButton.doc.d.ts +25 -0
  59. package/dist/molecules/RemovableRow.d.ts +1 -1
  60. package/dist/molecules/RemovableRow.doc.d.ts +25 -0
  61. package/dist/molecules/RevealRadioGroup.doc.d.ts +25 -0
  62. package/dist/molecules/RevealSwitch.doc.d.ts +25 -0
  63. package/dist/molecules/RuleRow.doc.d.ts +25 -0
  64. package/dist/molecules/Select.d.ts +2 -2
  65. package/dist/molecules/Select.doc.d.ts +30 -0
  66. package/dist/molecules/Select.js +27 -27
  67. package/dist/molecules/SideLabelRow.d.ts +1 -1
  68. package/dist/molecules/SideLabelRow.doc.d.ts +20 -0
  69. package/dist/molecules/SplitButton.d.ts +1 -1
  70. package/dist/molecules/SplitButton.doc.d.ts +25 -0
  71. package/dist/molecules/StatusButton.doc.d.ts +25 -0
  72. package/dist/molecules/TagSelect.d.ts +2 -2
  73. package/dist/molecules/TagSelect.doc.d.ts +25 -0
  74. package/dist/molecules/ToggleGrid.doc.d.ts +25 -0
  75. package/dist/molecules/TokenTextField.doc.d.ts +29 -0
  76. package/dist/molecules/TransferLayout.d.ts +1 -1
  77. package/dist/molecules/TransferLayout.doc.d.ts +25 -0
  78. package/dist/molecules/TreeOptions.d.ts +1 -1
  79. package/dist/molecules/TreeOptions.doc.d.ts +25 -0
  80. package/dist/organisms/ChipListAddPopover.doc.d.ts +25 -0
  81. package/dist/organisms/HourOfDayRow.doc.d.ts +25 -0
  82. package/dist/organisms/HourOfWeekGrid.doc.d.ts +25 -0
  83. package/dist/organisms/RepeatableList.doc.d.ts +21 -0
  84. package/dist/organisms/ResizableDrawer.doc.d.ts +25 -0
  85. package/dist/organisms/RuleGroups.d.ts +3 -3
  86. package/dist/organisms/RuleGroups.doc.d.ts +21 -0
  87. package/dist/organisms/RuleList.doc.d.ts +25 -0
  88. package/dist/organisms/SearchableGroupedList.d.ts +1 -1
  89. package/dist/organisms/SearchableGroupedList.doc.d.ts +25 -0
  90. package/dist/organisms/TokenPickerDialog.doc.d.ts +21 -0
  91. package/dist/organisms/TransferPicker.d.ts +1 -1
  92. package/dist/organisms/TransferPicker.doc.d.ts +29 -0
  93. package/dist/organisms/TreeSearchPanel.doc.d.ts +25 -0
  94. package/dist/organisms/TreeSelect.d.ts +3 -3
  95. package/dist/organisms/TreeSelect.doc.d.ts +29 -0
  96. package/dist/theme/AntsomiTheme.doc.d.ts +15 -0
  97. package/dist/theme/AntsomiTheme.doc.js +22 -0
  98. package/package.json +17 -6
  99. package/src/atoms/AddButton.doc.ts +36 -0
  100. package/src/atoms/AddButton.tsx +1 -1
  101. package/src/atoms/AddGlyph.doc.ts +26 -0
  102. package/src/atoms/Chip.doc.ts +45 -0
  103. package/src/atoms/Chip.tsx +2 -2
  104. package/src/atoms/ChipSkeletons.doc.ts +31 -0
  105. package/src/atoms/FieldHeading.doc.ts +22 -0
  106. package/src/atoms/HoverSwap.doc.ts +39 -0
  107. package/src/atoms/InfoTip.doc.ts +37 -0
  108. package/src/atoms/InfoTip.tsx +2 -2
  109. package/src/atoms/JointLabel.doc.ts +23 -0
  110. package/src/atoms/LabeledDivider.doc.ts +35 -0
  111. package/src/atoms/LabeledDivider.tsx +1 -1
  112. package/src/atoms/LogoImage.doc.ts +42 -0
  113. package/src/atoms/PanelSearchInput.doc.ts +41 -0
  114. package/src/atoms/PanelSearchInput.tsx +1 -1
  115. package/src/atoms/PathMark.doc.ts +25 -0
  116. package/src/atoms/RemoveButton.doc.ts +26 -0
  117. package/src/atoms/RowSkeletons.doc.ts +43 -0
  118. package/src/atoms/TextAction.doc.ts +40 -0
  119. package/src/atoms/TextAction.tsx +4 -4
  120. package/src/atoms/TruncatedOption.doc.ts +39 -0
  121. package/src/atoms/TruncatedOption.tsx +1 -1
  122. package/src/atoms/TruncatedText.doc.ts +22 -0
  123. package/src/doc/schema.ts +67 -0
  124. package/src/index.ts +2 -0
  125. package/src/lib/useLoadMore.ts +1 -2
  126. package/src/lib/useLoadingShown.ts +1 -1
  127. package/src/molecules/AccentCard.doc.ts +43 -0
  128. package/src/molecules/AccentCard.tsx +7 -8
  129. package/src/molecules/CheckGroup.doc.ts +40 -0
  130. package/src/molecules/CheckRow.doc.ts +43 -0
  131. package/src/molecules/CheckRow.tsx +1 -1
  132. package/src/molecules/ChoiceDialog.doc.ts +48 -0
  133. package/src/molecules/ChoiceTiles.doc.ts +42 -0
  134. package/src/molecules/ChoiceTiles.tsx +3 -3
  135. package/src/molecules/CommitTextField.doc.ts +41 -0
  136. package/src/molecules/ConfirmDialog.doc.ts +43 -0
  137. package/src/molecules/DateTimeInput.doc.ts +48 -0
  138. package/src/molecules/DurationInput.doc.ts +36 -0
  139. package/src/molecules/DurationInput.tsx +2 -2
  140. package/src/molecules/FieldGroup.doc.ts +41 -0
  141. package/src/molecules/FieldGroup.tsx +1 -1
  142. package/src/molecules/FieldRow.doc.ts +36 -0
  143. package/src/molecules/FieldRow.tsx +1 -1
  144. package/src/molecules/FieldSkeleton.doc.ts +38 -0
  145. package/src/molecules/FrequencyLimitRow.doc.ts +48 -0
  146. package/src/molecules/FrequencyLimitRow.tsx +1 -1
  147. package/src/molecules/InlineEditableText.doc.ts +41 -0
  148. package/src/molecules/LoadMoreRow.doc.ts +36 -0
  149. package/src/molecules/LoadState.doc.ts +42 -0
  150. package/src/molecules/MetaTable.doc.ts +46 -0
  151. package/src/molecules/MetaTable.tsx +1 -1
  152. package/src/molecules/PercentRow.doc.ts +48 -0
  153. package/src/molecules/PhoneFrame.doc.ts +46 -0
  154. package/src/molecules/PhoneFrame.tsx +2 -2
  155. package/src/molecules/ProblemsButton.doc.ts +41 -0
  156. package/src/molecules/RemovableRow.doc.ts +48 -0
  157. package/src/molecules/RemovableRow.tsx +2 -2
  158. package/src/molecules/RevealRadioGroup.doc.ts +41 -0
  159. package/src/molecules/RevealSwitch.doc.ts +38 -0
  160. package/src/molecules/RuleRow.doc.ts +43 -0
  161. package/src/molecules/Select.doc.ts +62 -0
  162. package/src/molecules/Select.tsx +2 -2
  163. package/src/molecules/SideLabelRow.doc.ts +35 -0
  164. package/src/molecules/SideLabelRow.tsx +2 -2
  165. package/src/molecules/SplitButton.doc.ts +41 -0
  166. package/src/molecules/SplitButton.tsx +1 -1
  167. package/src/molecules/StatusButton.doc.ts +39 -0
  168. package/src/molecules/TagSelect.doc.ts +41 -0
  169. package/src/molecules/TagSelect.tsx +5 -5
  170. package/src/molecules/ToggleGrid.doc.ts +43 -0
  171. package/src/molecules/TokenTextField.doc.ts +41 -0
  172. package/src/molecules/TransferLayout.doc.ts +42 -0
  173. package/src/molecules/TransferLayout.tsx +2 -3
  174. package/src/molecules/TreeOptions.doc.ts +38 -0
  175. package/src/molecules/TreeOptions.tsx +6 -6
  176. package/src/organisms/ChipListAddPopover.doc.ts +54 -0
  177. package/src/organisms/HourOfDayRow.doc.ts +43 -0
  178. package/src/organisms/HourOfDayRow.tsx +1 -1
  179. package/src/organisms/HourOfWeekGrid.doc.ts +48 -0
  180. package/src/organisms/HourOfWeekGrid.tsx +1 -1
  181. package/src/organisms/RepeatableList.doc.ts +49 -0
  182. package/src/organisms/ResizableDrawer.doc.ts +48 -0
  183. package/src/organisms/RuleGroups.doc.ts +49 -0
  184. package/src/organisms/RuleGroups.tsx +3 -3
  185. package/src/organisms/RuleList.doc.ts +43 -0
  186. package/src/organisms/SearchableGroupedList.doc.ts +49 -0
  187. package/src/organisms/SearchableGroupedList.tsx +2 -2
  188. package/src/organisms/TokenPickerDialog.doc.ts +54 -0
  189. package/src/organisms/TransferPicker.doc.ts +69 -0
  190. package/src/organisms/TransferPicker.tsx +3 -3
  191. package/src/organisms/TreeSearchPanel.doc.ts +43 -0
  192. package/src/organisms/TreeSearchPanel.tsx +1 -1
  193. package/src/organisms/TreeSelect.doc.ts +56 -0
  194. package/src/organisms/TreeSelect.tsx +4 -4
  195. package/src/theme/AntsomiTheme.doc.ts +23 -0
package/README.md CHANGED
@@ -23,5 +23,5 @@ export function Example() {
23
23
  ```
24
24
 
25
25
  StyleX consumers select `antscorp-source` and extract their own CSS instead of importing
26
- `ui.css`. See the [repository README](https://bitbucket.org/git-vn/at.antsomi-ui/src/main/README.md)
26
+ `ui.css`. See the [repository README](../../README.md)
27
27
  for source configuration, linked development and releases.
@@ -9,7 +9,7 @@ export type AddButtonProps = {
9
9
  readonly size?: "sm" | "md" | undefined;
10
10
  /** `default` keeps the button's own corners; `pill` rounds them fully; the theme colours its outline. */
11
11
  readonly shape?: "default" | "pill" | undefined;
12
- /** `sentence` (default) shows the label as given; `upper` in capitals, as fe-app's "+ AND". */
12
+ /** `sentence` (default) shows the label as given; `upper` in capitals, such as "+ AND". */
13
13
  readonly case?: "sentence" | "upper" | undefined;
14
14
  /** Dimmed and not pressable, e.g. when a limit is reached. */
15
15
  readonly isDisabled?: boolean | undefined;
@@ -0,0 +1,21 @@
1
+ /** Usage guidance for AddButton. */
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
+ };
20
+ accessibility: string[];
21
+ };
@@ -0,0 +1,16 @@
1
+ /** Usage guidance for AddGlyph. */
2
+ export declare const doc: {
3
+ category: "Data display";
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
+ };
15
+ accessibility: string[];
16
+ };
@@ -0,0 +1,29 @@
1
+ /** Usage guidance for Chip. */
2
+ export declare const doc: {
3
+ category: "Data display";
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
+ };
@@ -0,0 +1,21 @@
1
+ /** Usage guidance for ChipSkeletons. */
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
+ };
20
+ accessibility: string[];
21
+ };
@@ -0,0 +1,15 @@
1
+ /** Usage guidance for FieldHeading. */
2
+ export declare const doc: {
3
+ category: "Data display";
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
+ };
15
+ };
@@ -0,0 +1,25 @@
1
+ /** Usage guidance for HoverSwap. */
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: false;
17
+ description: string;
18
+ } | {
19
+ name: string;
20
+ required: true;
21
+ description: string;
22
+ })[];
23
+ };
24
+ accessibility: string[];
25
+ };
@@ -0,0 +1,25 @@
1
+ /** Usage guidance for InfoTip. */
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
+ };
@@ -17,6 +17,7 @@ function a(a) {
17
17
  let m;
18
18
  s[5] !== c || s[6] !== p ? (m = /* @__PURE__ */ t(i, {
19
19
  as: "span",
20
+ tabIndex: 0,
20
21
  color: "accent",
21
22
  "aria-label": c,
22
23
  xstyle: o.info,
@@ -25,6 +26,7 @@ function a(a) {
25
26
  let h;
26
27
  return s[8] !== c || s[9] !== m ? (h = /* @__PURE__ */ t(r, {
27
28
  content: c,
29
+ focusTrigger: "always",
28
30
  children: m
29
31
  }), s[8] = c, s[9] = m, s[10] = h) : h = s[10], h;
30
32
  }
@@ -0,0 +1,15 @@
1
+ /** Usage guidance for JointLabel. */
2
+ export declare const doc: {
3
+ category: "Data display";
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
+ };
15
+ };
@@ -3,7 +3,7 @@ import type { ReactNode } from "react";
3
3
  export type LabeledDividerProps = {
4
4
  /** The short word on the rule, such as "or"; it also names the separator. */
5
5
  readonly label: string;
6
- /** `sentence` (default) shows the word as given; `upper` in capitals, as fe-app's "OR". */
6
+ /** `sentence` (default) shows the word as given; `upper` in capitals, such as "OR". */
7
7
  readonly case?: "sentence" | "upper" | undefined;
8
8
  };
9
9
  /**
@@ -0,0 +1,21 @@
1
+ /** Usage guidance for LabeledDivider. */
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,21 @@
1
+ /** Usage guidance for LogoImage. */
2
+ export declare const doc: {
3
+ category: "Data display";
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
+ };
20
+ accessibility: string[];
21
+ };
@@ -14,7 +14,7 @@ export type PanelSearchInputProps = {
14
14
  /** The clear button's name, such as "Clear search"; it shows only an icon. */
15
15
  readonly clear: string;
16
16
  };
17
- /** Where the magnifier sits: `start` (default) or `end`, after the clear button, as fe-app's search. */
17
+ /** Where the magnifier sits: `start` (default) or `end`, after the clear button. */
18
18
  readonly iconPosition?: "start" | "end" | undefined;
19
19
  /** The input element, to focus it (with `useFocusLater` in a pop-over, say). */
20
20
  readonly ref?: Ref<HTMLInputElement> | undefined;
@@ -0,0 +1,25 @@
1
+ /** Usage guidance for PanelSearchInput. */
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,16 @@
1
+ /** Usage guidance for PathMark. */
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
+ };
15
+ accessibility: string[];
16
+ };
@@ -0,0 +1,16 @@
1
+ /** Usage guidance for RemoveButton. */
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
+ };
15
+ accessibility: string[];
16
+ };
@@ -0,0 +1,25 @@
1
+ /** Usage guidance for RowSkeletons. */
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
+ };
@@ -5,7 +5,7 @@ export type TextActionProps = {
5
5
  readonly label: string;
6
6
  /** A glyph before the text, in the text's colour, such as an Astryx `Icon` of a bin for a removal. */
7
7
  readonly icon?: ReactNode;
8
- /** `upper` (default) shows the label in capitals, as fe-app's "REMOVE ALL"; `sentence` as given, as fe-app's text buttons. */
8
+ /** `upper` (default) shows the label in capitals, such as "REMOVE ALL"; `sentence` as given. */
9
9
  readonly case?: "upper" | "sentence" | undefined;
10
10
  /**
11
11
  * Called when it is pressed. Leave it out when a wrapper handles the presses, such as an Astryx
@@ -18,8 +18,8 @@ export type TextActionProps = {
18
18
  readonly isDisabled?: boolean | undefined;
19
19
  };
20
20
  /**
21
- * An action drawn as text alone: bold capitals in the accent, no frame, as fe-app's "REMOVE ALL"
22
- * and "CREATE NEW … ▾", or in sentence case with a glyph before it, as fe-app's text buttons
21
+ * An action drawn as text alone: bold capitals in the accent, no frame, such as "REMOVE ALL"
22
+ * and "CREATE NEW … ▾", or in sentence case with a glyph before it
23
23
  * (a bin, then "Remove"). An Astryx `Link` without an `href`, so a `<button>` in a link's look, with
24
24
  * a down chevron after the text when it opens a menu; still a button without `onClick`, so it can
25
25
  * be a `Popover`'s trigger. It holds no state.
@@ -0,0 +1,25 @@
1
+ /** Usage guidance for TextAction. */
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
+ };
@@ -7,7 +7,7 @@ export type TruncatedOptionProps = {
7
7
  };
8
8
  /**
9
9
  * A Selector option whose label ends in an ellipsis when it is wider than the pop-up, with the
10
- * whole label in a tooltip on hover, as antd's Select. Its icon and description show as the
10
+ * whole label in a tooltip on hover. Its icon and description show as the
11
11
  * Selector's own option's. It holds no state.
12
12
  */
13
13
  export declare function TruncatedOption({ option }: TruncatedOptionProps): ReactNode;
@@ -0,0 +1,24 @@
1
+ /** Usage guidance for TruncatedOption. */
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
+ };
@@ -0,0 +1,15 @@
1
+ /** Usage guidance for TruncatedText. */
2
+ export declare const doc: {
3
+ category: "Data display";
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
+ };
15
+ };