@jonmilner/ui 0.11.3 → 0.11.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/dist/Avatar/Avatar.css +1 -1
- package/dist/Badge/Badge.css +1 -1
- package/dist/Box/Box.css +1 -1
- package/dist/Button/Button.css +1 -1
- package/dist/Checkbox/Checkbox.css +1 -1
- package/dist/Chip/Chip.css +1 -1
- package/dist/Clickable/Clickable.css +1 -1
- package/dist/ColorField/ColorField.css +1 -1
- package/dist/Dialog/Dialog.css +1 -1
- package/dist/Field/Field.css +1 -1
- package/dist/Heading/Heading.css +1 -1
- package/dist/Icon/Icon.css +1 -1
- package/dist/IconButton/IconButton.css +1 -1
- package/dist/Inline/Inline.css +1 -1
- package/dist/Menu/Menu.css +1 -1
- package/dist/MultiSelect/MultiSelect.css +1 -1
- package/dist/SearchField/SearchField.css +1 -1
- package/dist/Stack/Stack.css +1 -1
- package/dist/Switch/Switch.css +2 -0
- package/dist/Switch/Switch.css.mjs +7 -0
- package/dist/Switch/index.d.mts +29 -0
- package/dist/Switch/index.mjs +59 -0
- package/dist/Table/Table.css +2 -0
- package/dist/Table/Table.css.mjs +16 -0
- package/dist/Table/index.d.mts +61 -0
- package/dist/Table/index.mjs +110 -0
- package/dist/Tabs/Tabs.css +1 -1
- package/dist/Tag/Tag.css +1 -1
- package/dist/Text/Text.css +2 -2
- package/dist/Text/Text.css.mjs +6 -6
- package/dist/Text/index.d.mts +2 -1
- package/dist/Text/index.mjs +12 -11
- package/dist/TextField/TextField.css +1 -1
- package/dist/Textarea/Textarea.css +2 -0
- package/dist/Textarea/Textarea.css.mjs +17 -0
- package/dist/Textarea/index.d.mts +23 -0
- package/dist/Textarea/index.mjs +40 -0
- package/dist/Toast/Toast.css +1 -1
- package/dist/VisuallyHidden/VisuallyHidden.css +1 -1
- package/dist/base.css +1 -1
- package/dist/contrast/mixes.mjs +38 -17
- package/dist/docs/Box.md +1 -0
- package/dist/docs/Button.md +1 -1
- package/dist/docs/Checkbox.md +1 -1
- package/dist/docs/Chip.md +1 -0
- package/dist/docs/Field.md +6 -3
- package/dist/docs/Heading.md +1 -0
- package/dist/docs/Stack.md +1 -0
- package/dist/docs/Switch.md +119 -0
- package/dist/docs/Table.md +192 -0
- package/dist/docs/Tabs.md +1 -0
- package/dist/docs/Text.md +2 -0
- package/dist/docs/TextField.md +1 -1
- package/dist/docs/Textarea.md +103 -0
- package/dist/docs/lint.md +1 -1
- package/dist/docs/llms.txt +3 -0
- package/dist/docs/manifest.json +444 -1
- package/dist/index.d.mts +4 -1
- package/dist/index.mjs +12 -9
- package/dist/lint/index.mjs +2 -0
- package/dist/styles/atoms.css +1 -1
- package/dist/styles/hover-tint.mjs +1 -1
- package/dist/styles/layers.css +1 -1
- package/dist/styles/responsive.css +1 -1
- package/dist/styles/split-text-props.mjs +1 -0
- package/package.json +13 -1
package/dist/docs/Text.md
CHANGED
|
@@ -25,6 +25,7 @@ The base of all visible text, and the primitive every text component builds on.
|
|
|
25
25
|
- `font` takes a font role: `body` (default), `heading`, `display`, `label`, `mono`. The brand maps roles to fonts.
|
|
26
26
|
- `weight` takes `regular` (default), `medium`, `semibold` or `bold`.
|
|
27
27
|
- `leading` takes a unitless line height: `sm`, `med` (default) or `lg`. The trim follows it.
|
|
28
|
+
- `tabularNums` gives every digit the same width, so figures in a column or a ticking count line up: amounts, durations, counts in a table. Prose numbers keep the font's own figures.
|
|
28
29
|
- `color` takes a color role (`fg`, `fgMuted`, `accent`, …), never a raw color. Unset, it inherits.
|
|
29
30
|
- `truncate` keeps one line and cuts it with an ellipsis, without clipping ascenders or descenders. It sets the block margins, so do not combine it with margin props.
|
|
30
31
|
- `truncate="box"` cuts a part of another Text's line (a field's summary inside a button's label) at its own box: untrimmed, in the outer Text's font until its own props say otherwise. Use it only inside another Text, below a Box or element that is not a Text run.
|
|
@@ -115,6 +116,7 @@ Generated from the TypeScript types.
|
|
|
115
116
|
| `font` | `"body" \| "display" \| "heading" \| "label" \| "mono"` | no | |
|
|
116
117
|
| `leading` | `"lg" \| "med" \| "sm"` | no | |
|
|
117
118
|
| `size` | `"2xl" \| "3xl" \| "4xl" \| "lg" \| "med" \| "sm" \| "xl" \| "xs"` | no | |
|
|
119
|
+
| `tabularNums` | `boolean` | no | |
|
|
118
120
|
| `truncate` | `"box" \| boolean` | no | |
|
|
119
121
|
| `weight` | `"bold" \| "medium" \| "regular" \| "semibold"` | no | |
|
|
120
122
|
| `wrap` | `"nowrap" \| "pre" \| "pre-wrap"` | no | |
|
package/dist/docs/TextField.md
CHANGED
|
@@ -12,7 +12,7 @@ A form field for one line of text that is not a search: an `<input>` (role `text
|
|
|
12
12
|
## When not to use
|
|
13
13
|
|
|
14
14
|
- A query that searches or filters: use `SearchField`; it is announced as a search and has a clear button.
|
|
15
|
-
- Several lines of text:
|
|
15
|
+
- Several lines of text (a reply, a note, a description): use `Textarea`.
|
|
16
16
|
- A number with steppers or a range: a number field is not planned (ADR 0133); use `TextField` with `inputMode` in `inputProps` and validate in the app.
|
|
17
17
|
- Picking from a known list as the user types: wait for `Combobox` (planned).
|
|
18
18
|
- Picking one or several values from a list: use `MultiSelect` or `ChipGroup`.
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Textarea
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
A form field for several lines of free text: a `<textarea>` (role `textbox`, multi-line) with TextField's look. Built on Base UI's `Input` rendered as a textarea (ADR 0003); it composes `Field` for its label, description and error (ADR 0026, 0136). `rows` sets its starting height, three by default, and the user can drag it taller or shorter. Three sizes (`sm`, `med`, `lg`) set TextField's text size and padding, so the first line sits where a TextField's text does (ADR 0124).
|
|
6
|
+
|
|
7
|
+
## When to use
|
|
8
|
+
|
|
9
|
+
- A reply, a note, a comment, a description, a message: free text that may run to several lines or paragraphs.
|
|
10
|
+
- A settings or edit form whose fields line up with a `TextField`: they share the border, the text size and the inline padding.
|
|
11
|
+
|
|
12
|
+
## When not to use
|
|
13
|
+
|
|
14
|
+
- One line of text (a name, an email, a title): use `TextField`; Enter submits its form.
|
|
15
|
+
- A query that searches or filters: use `SearchField`.
|
|
16
|
+
- Formatted text (bold, links, lists): a rich text editor is out of scope; take Markdown in a Textarea and render it in the app.
|
|
17
|
+
- A character counter or a box that grows with its text: neither is built in. Set `maxLength` in `inputProps` for a hard cap, and `rows` for the height the content usually needs.
|
|
18
|
+
|
|
19
|
+
## Rules
|
|
20
|
+
|
|
21
|
+
- `label` is required and names the textarea, even when the design shows none: pass `hideLabel` to keep it for assistive technology and hide it from sight. Never pass an empty label, and never let `placeholder` stand in for one.
|
|
22
|
+
- `value` with `onValueChange` controls it; `defaultValue` leaves it uncontrolled. `onValueChange` gets the new string on each keystroke, line breaks as `\n`.
|
|
23
|
+
- `rows` (default `3`) sets the starting height in lines. The user may resize it vertically only, never under one line or one control height, and not while it is disabled; text longer than the box scrolls inside it.
|
|
24
|
+
- `description` and `error` render below the textarea through `Field`; a non-empty `error` marks the field invalid (`aria-invalid`, a danger border) and joins the textarea's `aria-describedby`. Field's error slot announces it (ADR 0097): never add a `role="alert"` of your own.
|
|
25
|
+
- `disabled` uses the native `disabled`: the textarea leaves the tab order and does not submit, with a dashed border. `required` sets the native `required`.
|
|
26
|
+
- `name` submits the value with its form. A native form reset puts an uncontrolled field back to its `defaultValue` but fires no change, so `onValueChange` misses it; control the field if the form resets and you track the value.
|
|
27
|
+
- Enter adds a line; it never submits the form. Submitting on Mod+Enter is the app's choice, with its own `onKeyDown` in `inputProps`.
|
|
28
|
+
- Style props, `className` and `style` go to the `Field` around the label, textarea and messages, not to the textarea.
|
|
29
|
+
- `inputProps` reach the textarea: `ref`, `id`, `autoFocus`, `autoComplete`, `spellCheck`, `enterKeyHint`, `inputMode`, `maxLength`, `minLength`, `onKeyDown`, and only the `aria-*` valid on a text box (ADR 0110, 0136): `aria-controls`, `aria-activedescendant`, `aria-autocomplete`, `aria-placeholder`, `aria-details`, `aria-keyshortcuts`, `aria-owns`, `aria-flowto`, `aria-current`, `aria-roledescription`, `aria-busy`, `aria-live`, `aria-atomic` and `aria-relevant`. `label` owns the name, Field owns `aria-invalid`, `aria-describedby` and `aria-errormessage`, `disabled` and `required` own their state, and the native textarea is multi-line already, so those, `aria-readonly`, `aria-hidden` and `aria-multiline` are not among them. The type closes the set, so an object literal with another `aria-*` is a type error; nothing strips one at runtime. Hint with `placeholder`, not `aria-placeholder`: the textarea has a native placeholder.
|
|
30
|
+
- The field handles no keys; a consumer `onKeyDown` is passed straight through.
|
|
31
|
+
- A consumer `ref` gets the textarea. A consumer `id` takes over from Field's generated one at hydration, and the label follows it.
|
|
32
|
+
- The module has no hooks, so a server component can render it; `onValueChange`, and an `inputProps` `ref` or `onKeyDown`, must come from a client component.
|
|
33
|
+
|
|
34
|
+
## Do
|
|
35
|
+
|
|
36
|
+
```tsx
|
|
37
|
+
<Textarea label="Reply" name="reply" required rows={5} />
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```tsx
|
|
41
|
+
<Textarea
|
|
42
|
+
label="Description"
|
|
43
|
+
description="Shown on the project page."
|
|
44
|
+
error={errors?.description}
|
|
45
|
+
name="description"
|
|
46
|
+
inputProps={{ maxLength: 2000 }}
|
|
47
|
+
/>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
```tsx
|
|
51
|
+
<Textarea label="Note" value={note} onValueChange={setNote} inputProps={{ spellCheck: true }} />
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Don't
|
|
55
|
+
|
|
56
|
+
```tsx
|
|
57
|
+
// A hand-rolled alert: Field's error slot already announces it and joins the description.
|
|
58
|
+
<Textarea label="Reply" />
|
|
59
|
+
<Text role="alert">{error}</Text>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
```tsx
|
|
63
|
+
// Another name for the textarea: `label` names it, visible or not.
|
|
64
|
+
<Textarea label="Reply" inputProps={{ "aria-label": "Your reply" }} />
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
```tsx
|
|
68
|
+
// A one-line Textarea: a title is a TextField, and Enter submits its form.
|
|
69
|
+
<Textarea label="Title" rows={1} />
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Accessibility
|
|
73
|
+
|
|
74
|
+
- The textarea is a multi-line `textbox` named by the label, visible or not.
|
|
75
|
+
- Invalid adds a danger border and the error message with its icon, never color alone; disabled adds a dashed border. Every size is at least 24 px tall. Under forced colors the border, text and disabled state use system colors. On a coarse pointer (a touch screen) the text is 16px at every size, so iOS Safari does not zoom the page when the field takes focus.
|
|
76
|
+
- Text longer than the box scrolls inside it, with the keyboard as with a pointer; the page around it does not move.
|
|
77
|
+
|
|
78
|
+
## Props
|
|
79
|
+
|
|
80
|
+
Generated from the TypeScript types.
|
|
81
|
+
|
|
82
|
+
### Textarea
|
|
83
|
+
|
|
84
|
+
| Prop | Type | Required | Description |
|
|
85
|
+
| --- | --- | --- | --- |
|
|
86
|
+
| `className` | `string` | no | |
|
|
87
|
+
| `defaultValue` | `string` | no | |
|
|
88
|
+
| `description` | `ReactNode` | no | |
|
|
89
|
+
| `disabled` | `boolean` | no | |
|
|
90
|
+
| `error` | `ReactNode` | no | |
|
|
91
|
+
| `hideLabel` | `boolean` | no | |
|
|
92
|
+
| `inputProps` | `TextareaInputProps` | no | |
|
|
93
|
+
| `label` | `ReactNode` | yes | |
|
|
94
|
+
| `name` | `string` | no | |
|
|
95
|
+
| `onValueChange` | `((value: string) => void)` | no | |
|
|
96
|
+
| `placeholder` | `string` | no | |
|
|
97
|
+
| `required` | `boolean` | no | |
|
|
98
|
+
| `rows` | `number` | no | |
|
|
99
|
+
| `size` | `"lg" \| "med" \| "sm"` | no | |
|
|
100
|
+
| `style` | `CSSProperties` | no | |
|
|
101
|
+
| `value` | `string` | no | |
|
|
102
|
+
|
|
103
|
+
Also accepts the style props (see `manifest.json` `styleProps`).
|
package/dist/docs/lint.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## textComponents
|
|
6
6
|
|
|
7
|
-
The library's components and parts that render their children through `Text`, plus `VisuallyHidden`, whose children are hidden text. Pass it as `textComponents`, so documented usage such as `<Tabs.Tab>Privacy</Tabs.Tab>`, `<Field.Label>Email</Field.Label>` or `<VisuallyHidden>unread messages</VisuallyHidden>` passes `ui/no-bare-text`.
|
|
7
|
+
The library's components and parts that render their children through `Text`, plus `VisuallyHidden`, whose children are hidden text. Pass it as `textComponents`, so documented usage such as `<Tabs.Tab>Privacy</Tabs.Tab>`, `<Field.Label>Email</Field.Label>`, `<Table.Cell>Paid</Table.Cell>` or `<VisuallyHidden>unread messages</VisuallyHidden>` passes `ui/no-bare-text`.
|
|
8
8
|
|
|
9
9
|
```ts
|
|
10
10
|
import { lint, uiLint } from "@jonmilner/oxlint-config";
|
package/dist/docs/llms.txt
CHANGED
|
@@ -30,10 +30,13 @@
|
|
|
30
30
|
- [MultiSelect](MultiSelect.md): A form field for picking any number of values from a list too long to show at once. A trigger styled as Button's secondary look opens a listbox of options; each selected option shows a check mark, and the trigger summarises the selection as the joined labels, or a count ("3 selected") once the labels would not fit. Built on Base UI's `Select` in multiple mode (ADR 0003), which owns the keyboard and focus: arrow keys, Home and End move through the options, typing jumps to a match, Esc and an outside click close it, and focus returns to the trigger. It composes `Field` for its label, description and error (ADR 0026).
|
|
31
31
|
- [SearchField](SearchField.md): A form field for a search query: an `<input type="search">` (role `searchbox`) with a search icon at its inline start and, while it holds a value, a clear button at its inline end. Escape empties a field that has a value, and the clear button empties it and puts focus back in the input, so a keyboard user never loses their place (ADR 0087). Built on Base UI's `Input` (ADR 0003); it composes `Field` for its label, description and error (ADR 0026). Three sizes at Button's heights (`sm`, `med`, `lg`: 24, 32 and 40 px, ADR 0124); the clear button is 24px, or 32px in `lg`.
|
|
32
32
|
- [Stack](Stack.md): A vertical column of children with even space between them. `Stack` is a `Box` with `display="flex"` and `flexDirection="column"` as default style props, spaced by a required `gap`. Children render as they are: no wrapper per child.
|
|
33
|
+
- [Switch](Switch.md): Turns one setting on or off, and the change applies the moment it flips. Built on Base UI `Switch` (ADR 0003, 0137): a `span` with `role="switch"` and `aria-checked`, plus a hidden checkbox input that submits with a form. The span is a 24 px target with the shared focus ring around a pill track: off is an outlined track with the thumb at the start, on a filled `accent` track with the thumb at the end. It composes `Field` for its label, description and error (ADR 0026), with the label after the switch.
|
|
34
|
+
- [Table](Table.md): Records in rows that share named columns, so a reader can scan and compare them: transactions, members, invoices. A native `table` with parts for each element (`Table.Head`, `Table.Body`, `Table.Foot`, `Table.Row`, `Table.HeaderCell`, `Table.Cell`, `Table.ColumnGroup`, `Table.Column`). It has no `grid` role and no roving focus: a link, `Checkbox` or `Menu` in a cell keeps the page's tab order, and a screen reader's table commands work as on any table.
|
|
33
35
|
- [Tabs](Tabs.md): Switches between views that share one place on the page. The parts are `Tabs` (the root, a flex column; a row when vertical), `Tabs.List` (the `tablist`), `Tabs.Tab` (a `tab` button on `Clickable`) and `Tabs.Panel` (the `tabpanel`). Built on Base UI `Tabs` (ADR 0003, 0046): it owns the selection, one tab stop with arrow-key roving, `aria-selected`, and the ids that tie each tab to its panel. The selected tab shows an accent bar that fades and grows in (ADR 0049).
|
|
34
36
|
- [Tag](Tag.md): A label that puts content in a category: a topic, a label, a user-made category. A `span` with a subtle tone fill (gray by default) and an `lg` radius (half a one-line tag's height, so one line reads as a pill and wrapped lines stay inside the fill) around a `Text` in the `label` font. It can be read-only, a link, or removable.
|
|
35
37
|
- [Text](Text.md): The base of all visible text, and the primitive every text component builds on. Capsize trims the box to the cap height and the baseline, so the gap around text is the visible space. It takes every Box style prop (`color`, `textAlign`, margins), plus `size`, `font`, `weight`, `leading`, `truncate` and `wrap`.
|
|
36
38
|
- [TextField](TextField.md): A form field for one line of text that is not a search: an `<input>` (role `textbox`) with SearchField's look and no icon or button over it. `type` picks `text`, `email`, `url` or `tel`. Built on Base UI's `Input` (ADR 0003); it composes `Field` for its label, description and error (ADR 0026, 0110). Three sizes at Button's heights (`sm`, `med`, `lg`: 24, 32 and 40 px, ADR 0124).
|
|
39
|
+
- [Textarea](Textarea.md): A form field for several lines of free text: a `<textarea>` (role `textbox`, multi-line) with TextField's look. Built on Base UI's `Input` rendered as a textarea (ADR 0003); it composes `Field` for its label, description and error (ADR 0026, 0136). `rows` sets its starting height, three by default, and the user can drag it taller or shorter. Three sizes (`sm`, `med`, `lg`) set TextField's text size and padding, so the first line sits where a TextField's text does (ADR 0124).
|
|
37
40
|
- [Toast](Toast.md): Tells the user briefly about the result of an action without interrupting them: "Changes saved", "Message sent", "Couldn't upload the file". Material calls it a snackbar and Atlassian a flag. Built on Base UI's Toast, which owns the queue, the timers and swipe-to-dismiss. The parts add the look: a raised card in a stack at the bottom end corner, an icon per variant, a close button, and a slide-up-and-fade that is a plain fade under reduced motion. A toast never takes focus and moves nothing on the page.
|
|
38
41
|
- [VisuallyHidden](VisuallyHidden.md): Text that screen readers read and nobody sees: a 1px clipped box, out of the layout, still in the accessibility tree. Use it for words a sighted user gets from the layout, an icon or a color, never to hide a control or a skip link. One element, chosen with `as`, a `span` by default.
|
|
39
42
|
|
package/dist/docs/manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./manifest.schema.json",
|
|
3
3
|
"package": "@jonmilner/ui",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.5",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
7
7
|
"name": "AlertDialog",
|
|
@@ -810,6 +810,11 @@
|
|
|
810
810
|
"xs"
|
|
811
811
|
]
|
|
812
812
|
},
|
|
813
|
+
{
|
|
814
|
+
"name": "tabularNums",
|
|
815
|
+
"type": "boolean",
|
|
816
|
+
"required": false
|
|
817
|
+
},
|
|
813
818
|
{
|
|
814
819
|
"name": "truncate",
|
|
815
820
|
"type": "\"box\" | boolean",
|
|
@@ -885,6 +890,11 @@
|
|
|
885
890
|
"xs"
|
|
886
891
|
]
|
|
887
892
|
},
|
|
893
|
+
{
|
|
894
|
+
"name": "tabularNums",
|
|
895
|
+
"type": "boolean",
|
|
896
|
+
"required": false
|
|
897
|
+
},
|
|
888
898
|
{
|
|
889
899
|
"name": "truncate",
|
|
890
900
|
"type": "\"box\" | boolean",
|
|
@@ -960,6 +970,11 @@
|
|
|
960
970
|
"xs"
|
|
961
971
|
]
|
|
962
972
|
},
|
|
973
|
+
{
|
|
974
|
+
"name": "tabularNums",
|
|
975
|
+
"type": "boolean",
|
|
976
|
+
"required": false
|
|
977
|
+
},
|
|
963
978
|
{
|
|
964
979
|
"name": "truncate",
|
|
965
980
|
"type": "\"box\" | boolean",
|
|
@@ -1042,6 +1057,11 @@
|
|
|
1042
1057
|
"xl"
|
|
1043
1058
|
]
|
|
1044
1059
|
},
|
|
1060
|
+
{
|
|
1061
|
+
"name": "tabularNums",
|
|
1062
|
+
"type": "boolean",
|
|
1063
|
+
"required": false
|
|
1064
|
+
},
|
|
1045
1065
|
{
|
|
1046
1066
|
"name": "truncate",
|
|
1047
1067
|
"type": "\"box\" | boolean",
|
|
@@ -1816,6 +1836,326 @@
|
|
|
1816
1836
|
"parts": [],
|
|
1817
1837
|
"exports": []
|
|
1818
1838
|
},
|
|
1839
|
+
{
|
|
1840
|
+
"name": "Switch",
|
|
1841
|
+
"styleProps": true,
|
|
1842
|
+
"props": [
|
|
1843
|
+
{
|
|
1844
|
+
"name": "aria-label",
|
|
1845
|
+
"type": "string",
|
|
1846
|
+
"required": false
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
"name": "busy",
|
|
1850
|
+
"type": "boolean",
|
|
1851
|
+
"required": false
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
"name": "checked",
|
|
1855
|
+
"type": "boolean",
|
|
1856
|
+
"required": false
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
"name": "className",
|
|
1860
|
+
"type": "string",
|
|
1861
|
+
"required": false
|
|
1862
|
+
},
|
|
1863
|
+
{
|
|
1864
|
+
"name": "defaultChecked",
|
|
1865
|
+
"type": "boolean",
|
|
1866
|
+
"required": false
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
"name": "description",
|
|
1870
|
+
"type": "ReactNode",
|
|
1871
|
+
"required": false
|
|
1872
|
+
},
|
|
1873
|
+
{
|
|
1874
|
+
"name": "disabled",
|
|
1875
|
+
"type": "boolean",
|
|
1876
|
+
"required": false
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
"name": "error",
|
|
1880
|
+
"type": "ReactNode",
|
|
1881
|
+
"required": false
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
"name": "hideLabel",
|
|
1885
|
+
"type": "boolean",
|
|
1886
|
+
"required": false
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
"name": "label",
|
|
1890
|
+
"type": "ReactNode",
|
|
1891
|
+
"required": false
|
|
1892
|
+
},
|
|
1893
|
+
{
|
|
1894
|
+
"name": "name",
|
|
1895
|
+
"type": "string",
|
|
1896
|
+
"required": false
|
|
1897
|
+
},
|
|
1898
|
+
{
|
|
1899
|
+
"name": "onCheckedChange",
|
|
1900
|
+
"type": "((checked: boolean) => void)",
|
|
1901
|
+
"required": false
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
"name": "readOnly",
|
|
1905
|
+
"type": "boolean",
|
|
1906
|
+
"required": false
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
"name": "required",
|
|
1910
|
+
"type": "boolean",
|
|
1911
|
+
"required": false
|
|
1912
|
+
},
|
|
1913
|
+
{
|
|
1914
|
+
"name": "style",
|
|
1915
|
+
"type": "CSSProperties",
|
|
1916
|
+
"required": false
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
"name": "uncheckedValue",
|
|
1920
|
+
"type": "string",
|
|
1921
|
+
"required": false
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
"name": "value",
|
|
1925
|
+
"type": "string",
|
|
1926
|
+
"required": false
|
|
1927
|
+
}
|
|
1928
|
+
],
|
|
1929
|
+
"parts": [],
|
|
1930
|
+
"exports": []
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
"name": "Table",
|
|
1934
|
+
"styleProps": true,
|
|
1935
|
+
"props": [
|
|
1936
|
+
{
|
|
1937
|
+
"name": "aria-label",
|
|
1938
|
+
"type": "string",
|
|
1939
|
+
"required": false,
|
|
1940
|
+
"description": "Defines a string value that labels the current element."
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
"name": "aria-labelledby",
|
|
1944
|
+
"type": "string",
|
|
1945
|
+
"required": false,
|
|
1946
|
+
"description": "Identifies the element (or elements) that labels the current element."
|
|
1947
|
+
},
|
|
1948
|
+
{
|
|
1949
|
+
"name": "caption",
|
|
1950
|
+
"type": "string | ReactElement<unknown, string | JSXElementConstructor<any>>",
|
|
1951
|
+
"required": false
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
"name": "hideCaption",
|
|
1955
|
+
"type": "boolean",
|
|
1956
|
+
"required": false
|
|
1957
|
+
},
|
|
1958
|
+
{
|
|
1959
|
+
"name": "layout",
|
|
1960
|
+
"type": "\"auto\" | \"fixed\"",
|
|
1961
|
+
"required": false,
|
|
1962
|
+
"values": [
|
|
1963
|
+
"auto",
|
|
1964
|
+
"fixed"
|
|
1965
|
+
]
|
|
1966
|
+
}
|
|
1967
|
+
],
|
|
1968
|
+
"parts": [
|
|
1969
|
+
{
|
|
1970
|
+
"name": "Table.Body",
|
|
1971
|
+
"styleProps": true,
|
|
1972
|
+
"props": []
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
"name": "Table.Cell",
|
|
1976
|
+
"styleProps": true,
|
|
1977
|
+
"props": [
|
|
1978
|
+
{
|
|
1979
|
+
"name": "font",
|
|
1980
|
+
"type": "\"body\" | \"display\" | \"heading\" | \"label\" | \"mono\"",
|
|
1981
|
+
"required": false,
|
|
1982
|
+
"values": [
|
|
1983
|
+
"body",
|
|
1984
|
+
"display",
|
|
1985
|
+
"heading",
|
|
1986
|
+
"label",
|
|
1987
|
+
"mono"
|
|
1988
|
+
]
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
"name": "leading",
|
|
1992
|
+
"type": "\"lg\" | \"med\" | \"sm\"",
|
|
1993
|
+
"required": false,
|
|
1994
|
+
"values": [
|
|
1995
|
+
"lg",
|
|
1996
|
+
"med",
|
|
1997
|
+
"sm"
|
|
1998
|
+
]
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
"name": "numeric",
|
|
2002
|
+
"type": "boolean",
|
|
2003
|
+
"required": false
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
"name": "size",
|
|
2007
|
+
"type": "\"2xl\" | \"3xl\" | \"4xl\" | \"lg\" | \"med\" | \"sm\" | \"xl\" | \"xs\"",
|
|
2008
|
+
"required": false,
|
|
2009
|
+
"values": [
|
|
2010
|
+
"2xl",
|
|
2011
|
+
"3xl",
|
|
2012
|
+
"4xl",
|
|
2013
|
+
"lg",
|
|
2014
|
+
"med",
|
|
2015
|
+
"sm",
|
|
2016
|
+
"xl",
|
|
2017
|
+
"xs"
|
|
2018
|
+
]
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
"name": "weight",
|
|
2022
|
+
"type": "\"bold\" | \"medium\" | \"regular\" | \"semibold\"",
|
|
2023
|
+
"required": false,
|
|
2024
|
+
"values": [
|
|
2025
|
+
"bold",
|
|
2026
|
+
"medium",
|
|
2027
|
+
"regular",
|
|
2028
|
+
"semibold"
|
|
2029
|
+
]
|
|
2030
|
+
},
|
|
2031
|
+
{
|
|
2032
|
+
"name": "wrap",
|
|
2033
|
+
"type": "\"nowrap\" | \"pre\" | \"pre-wrap\"",
|
|
2034
|
+
"required": false,
|
|
2035
|
+
"values": [
|
|
2036
|
+
"nowrap",
|
|
2037
|
+
"pre",
|
|
2038
|
+
"pre-wrap"
|
|
2039
|
+
]
|
|
2040
|
+
}
|
|
2041
|
+
]
|
|
2042
|
+
},
|
|
2043
|
+
{
|
|
2044
|
+
"name": "Table.Column",
|
|
2045
|
+
"styleProps": true,
|
|
2046
|
+
"props": []
|
|
2047
|
+
},
|
|
2048
|
+
{
|
|
2049
|
+
"name": "Table.ColumnGroup",
|
|
2050
|
+
"styleProps": true,
|
|
2051
|
+
"props": []
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
"name": "Table.Foot",
|
|
2055
|
+
"styleProps": true,
|
|
2056
|
+
"props": []
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
"name": "Table.Head",
|
|
2060
|
+
"styleProps": true,
|
|
2061
|
+
"props": []
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
"name": "Table.HeaderCell",
|
|
2065
|
+
"styleProps": true,
|
|
2066
|
+
"props": [
|
|
2067
|
+
{
|
|
2068
|
+
"name": "font",
|
|
2069
|
+
"type": "\"body\" | \"display\" | \"heading\" | \"label\" | \"mono\"",
|
|
2070
|
+
"required": false,
|
|
2071
|
+
"values": [
|
|
2072
|
+
"body",
|
|
2073
|
+
"display",
|
|
2074
|
+
"heading",
|
|
2075
|
+
"label",
|
|
2076
|
+
"mono"
|
|
2077
|
+
]
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
"name": "hideLabel",
|
|
2081
|
+
"type": "boolean",
|
|
2082
|
+
"required": false
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
"name": "leading",
|
|
2086
|
+
"type": "\"lg\" | \"med\" | \"sm\"",
|
|
2087
|
+
"required": false,
|
|
2088
|
+
"values": [
|
|
2089
|
+
"lg",
|
|
2090
|
+
"med",
|
|
2091
|
+
"sm"
|
|
2092
|
+
]
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
"name": "numeric",
|
|
2096
|
+
"type": "boolean",
|
|
2097
|
+
"required": false
|
|
2098
|
+
},
|
|
2099
|
+
{
|
|
2100
|
+
"name": "size",
|
|
2101
|
+
"type": "\"2xl\" | \"3xl\" | \"4xl\" | \"lg\" | \"med\" | \"sm\" | \"xl\" | \"xs\"",
|
|
2102
|
+
"required": false,
|
|
2103
|
+
"values": [
|
|
2104
|
+
"2xl",
|
|
2105
|
+
"3xl",
|
|
2106
|
+
"4xl",
|
|
2107
|
+
"lg",
|
|
2108
|
+
"med",
|
|
2109
|
+
"sm",
|
|
2110
|
+
"xl",
|
|
2111
|
+
"xs"
|
|
2112
|
+
]
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
"name": "weight",
|
|
2116
|
+
"type": "\"bold\" | \"medium\" | \"regular\" | \"semibold\"",
|
|
2117
|
+
"required": false,
|
|
2118
|
+
"values": [
|
|
2119
|
+
"bold",
|
|
2120
|
+
"medium",
|
|
2121
|
+
"regular",
|
|
2122
|
+
"semibold"
|
|
2123
|
+
]
|
|
2124
|
+
},
|
|
2125
|
+
{
|
|
2126
|
+
"name": "wrap",
|
|
2127
|
+
"type": "\"nowrap\" | \"pre\" | \"pre-wrap\"",
|
|
2128
|
+
"required": false,
|
|
2129
|
+
"values": [
|
|
2130
|
+
"nowrap",
|
|
2131
|
+
"pre",
|
|
2132
|
+
"pre-wrap"
|
|
2133
|
+
]
|
|
2134
|
+
}
|
|
2135
|
+
]
|
|
2136
|
+
},
|
|
2137
|
+
{
|
|
2138
|
+
"name": "Table.Row",
|
|
2139
|
+
"styleProps": true,
|
|
2140
|
+
"props": [
|
|
2141
|
+
{
|
|
2142
|
+
"name": "tone",
|
|
2143
|
+
"type": "\"accent\" | \"danger\" | \"done\" | \"neutral\" | \"success\" | \"warning\"",
|
|
2144
|
+
"required": false,
|
|
2145
|
+
"values": [
|
|
2146
|
+
"accent",
|
|
2147
|
+
"danger",
|
|
2148
|
+
"done",
|
|
2149
|
+
"neutral",
|
|
2150
|
+
"success",
|
|
2151
|
+
"warning"
|
|
2152
|
+
]
|
|
2153
|
+
}
|
|
2154
|
+
]
|
|
2155
|
+
}
|
|
2156
|
+
],
|
|
2157
|
+
"exports": []
|
|
2158
|
+
},
|
|
1819
2159
|
{
|
|
1820
2160
|
"name": "Tabs",
|
|
1821
2161
|
"styleProps": true,
|
|
@@ -1939,6 +2279,11 @@
|
|
|
1939
2279
|
"xs"
|
|
1940
2280
|
]
|
|
1941
2281
|
},
|
|
2282
|
+
{
|
|
2283
|
+
"name": "tabularNums",
|
|
2284
|
+
"type": "boolean",
|
|
2285
|
+
"required": false
|
|
2286
|
+
},
|
|
1942
2287
|
{
|
|
1943
2288
|
"name": "value",
|
|
1944
2289
|
"type": "any",
|
|
@@ -2062,6 +2407,11 @@
|
|
|
2062
2407
|
"xs"
|
|
2063
2408
|
]
|
|
2064
2409
|
},
|
|
2410
|
+
{
|
|
2411
|
+
"name": "tabularNums",
|
|
2412
|
+
"type": "boolean",
|
|
2413
|
+
"required": false
|
|
2414
|
+
},
|
|
2065
2415
|
{
|
|
2066
2416
|
"name": "truncate",
|
|
2067
2417
|
"type": "\"box\" | boolean",
|
|
@@ -2192,6 +2542,99 @@
|
|
|
2192
2542
|
"parts": [],
|
|
2193
2543
|
"exports": []
|
|
2194
2544
|
},
|
|
2545
|
+
{
|
|
2546
|
+
"name": "Textarea",
|
|
2547
|
+
"styleProps": true,
|
|
2548
|
+
"props": [
|
|
2549
|
+
{
|
|
2550
|
+
"name": "className",
|
|
2551
|
+
"type": "string",
|
|
2552
|
+
"required": false
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
"name": "defaultValue",
|
|
2556
|
+
"type": "string",
|
|
2557
|
+
"required": false
|
|
2558
|
+
},
|
|
2559
|
+
{
|
|
2560
|
+
"name": "description",
|
|
2561
|
+
"type": "ReactNode",
|
|
2562
|
+
"required": false
|
|
2563
|
+
},
|
|
2564
|
+
{
|
|
2565
|
+
"name": "disabled",
|
|
2566
|
+
"type": "boolean",
|
|
2567
|
+
"required": false
|
|
2568
|
+
},
|
|
2569
|
+
{
|
|
2570
|
+
"name": "error",
|
|
2571
|
+
"type": "ReactNode",
|
|
2572
|
+
"required": false
|
|
2573
|
+
},
|
|
2574
|
+
{
|
|
2575
|
+
"name": "hideLabel",
|
|
2576
|
+
"type": "boolean",
|
|
2577
|
+
"required": false
|
|
2578
|
+
},
|
|
2579
|
+
{
|
|
2580
|
+
"name": "inputProps",
|
|
2581
|
+
"type": "TextareaInputProps",
|
|
2582
|
+
"required": false
|
|
2583
|
+
},
|
|
2584
|
+
{
|
|
2585
|
+
"name": "label",
|
|
2586
|
+
"type": "ReactNode",
|
|
2587
|
+
"required": true
|
|
2588
|
+
},
|
|
2589
|
+
{
|
|
2590
|
+
"name": "name",
|
|
2591
|
+
"type": "string",
|
|
2592
|
+
"required": false
|
|
2593
|
+
},
|
|
2594
|
+
{
|
|
2595
|
+
"name": "onValueChange",
|
|
2596
|
+
"type": "((value: string) => void)",
|
|
2597
|
+
"required": false
|
|
2598
|
+
},
|
|
2599
|
+
{
|
|
2600
|
+
"name": "placeholder",
|
|
2601
|
+
"type": "string",
|
|
2602
|
+
"required": false
|
|
2603
|
+
},
|
|
2604
|
+
{
|
|
2605
|
+
"name": "required",
|
|
2606
|
+
"type": "boolean",
|
|
2607
|
+
"required": false
|
|
2608
|
+
},
|
|
2609
|
+
{
|
|
2610
|
+
"name": "rows",
|
|
2611
|
+
"type": "number",
|
|
2612
|
+
"required": false
|
|
2613
|
+
},
|
|
2614
|
+
{
|
|
2615
|
+
"name": "size",
|
|
2616
|
+
"type": "\"lg\" | \"med\" | \"sm\"",
|
|
2617
|
+
"required": false,
|
|
2618
|
+
"values": [
|
|
2619
|
+
"lg",
|
|
2620
|
+
"med",
|
|
2621
|
+
"sm"
|
|
2622
|
+
]
|
|
2623
|
+
},
|
|
2624
|
+
{
|
|
2625
|
+
"name": "style",
|
|
2626
|
+
"type": "CSSProperties",
|
|
2627
|
+
"required": false
|
|
2628
|
+
},
|
|
2629
|
+
{
|
|
2630
|
+
"name": "value",
|
|
2631
|
+
"type": "string",
|
|
2632
|
+
"required": false
|
|
2633
|
+
}
|
|
2634
|
+
],
|
|
2635
|
+
"parts": [],
|
|
2636
|
+
"exports": []
|
|
2637
|
+
},
|
|
2195
2638
|
{
|
|
2196
2639
|
"name": "Toast",
|
|
2197
2640
|
"namespace": true,
|