@wirecore/wirelayer-react 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ContextMenu-GCeoPu8T.js +1523 -0
- package/dist/{Input-C8T3WLd5.js → Input-CtYSQznO.js} +41 -40
- package/dist/PasswordInput-CxZXGV2m.js +449 -0
- package/dist/Select-CGyqfOm3.js +256 -0
- package/dist/components/Alert/Alert.d.ts +3 -1
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.d.ts +3 -1
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +3 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +9 -5
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Code/Code.d.ts +11 -0
- package/dist/components/Code/Code.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +10 -1
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.d.ts +14 -4
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +12 -3
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts +7 -2
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Menu/Menu.d.ts +27 -3
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/NativeSelect/NativeSelect.d.ts +14 -8
- package/dist/components/NativeSelect/NativeSelect.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +12 -4
- package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +7 -2
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/components/Progress/Progress.d.ts +15 -1
- package/dist/components/Progress/Progress.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +16 -7
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroupItem.d.ts +3 -2
- package/dist/components/RadioGroup/RadioGroupItem.d.ts.map +1 -1
- package/dist/components/RadioGroup/context.d.ts +3 -0
- package/dist/components/RadioGroup/context.d.ts.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +14 -5
- package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +20 -5
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.d.ts +3 -1
- package/dist/components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +11 -2
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.d.ts +7 -2
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/components/Wizard/Wizard.d.ts +11 -3
- package/dist/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/data-table.js +3 -3
- package/dist/form.js +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/media.d.ts +7 -0
- package/dist/hooks/media.d.ts.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2111 -2026
- package/dist/pdf.js +2 -2
- package/dist/sources/Code.css +2 -0
- package/llms-full.txt +106 -28
- package/llms.txt +6 -4
- package/package.json +3 -3
- package/dist/ContextMenu-BD72S5n6.js +0 -1452
- package/dist/PasswordInput-SjO66gZB.js +0 -422
- package/dist/Select-7rfeNmJb.js +0 -242
package/dist/pdf.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { a as e, i as t, n } from "./RecipesProvider-0idafuGm.js";
|
|
3
3
|
import { t as r } from "./Button-Cd7lufvJ.js";
|
|
4
4
|
import { t as i } from "./Field-DkYxlVar.js";
|
|
5
|
-
import { n as a, t as o } from "./Select-
|
|
6
|
-
import { c as s, i as c, l, n as u, s as d, t as ee, u as te } from "./PasswordInput-
|
|
5
|
+
import { n as a, t as o } from "./Select-CGyqfOm3.js";
|
|
6
|
+
import { c as s, i as c, l, n as u, s as d, t as ee, u as te } from "./PasswordInput-CxZXGV2m.js";
|
|
7
7
|
import { t as ne } from "./Tree-DVjwp6FG.js";
|
|
8
8
|
import { PDF_ZOOM_MAX as re, PDF_ZOOM_MIN as ie, clampPdfPage as ae, clampPdfZoom as f, downloadBytes as p, input as oe, normalizePdfRotation as m, parsePdfPage as se, pdfFileName as ce, pdfKeyAction as le, pdfPrintDocument as ue, pdfSearchText as de, pdfThumbnailSize as fe, pdfTools as h, pdfViewer as pe, pdfZoomFromKey as me, pdfZoomKey as he, pdfZoomStep as g, pdfZoomSteps as _, pdfZoomSteps as v, resolvePdfTools as ge, setupToolbar as _e } from "@wirecore/wirelayer-recipes";
|
|
9
9
|
import { CaseSensitive as ve, ChevronDown as ye, ChevronUp as be, Download as xe, FileWarning as Se, Maximize as Ce, Minimize as we, PanelLeft as Te, Printer as Ee, RotateCw as De, Search as Oe, X as ke, ZoomIn as Ae, ZoomOut as je } from "lucide-react";
|
package/llms-full.txt
CHANGED
|
@@ -119,6 +119,7 @@ Message box with status colour, icon, title and text; role="alert" for errors an
|
|
|
119
119
|
| dismissLabel? | `string` | Accessible name of the close button |
|
|
120
120
|
| duration? | `number` | Calls `onDismiss` after this many milliseconds. The time pauses while the pointer is over the alert or the focus is in it (WCAG 2.2.1); prefer `dismissible` for messages people need to read |
|
|
121
121
|
| onDismiss? | `() => void` | |
|
|
122
|
+
| actions? | `ReactNode` | Buttons in the message, e.g. "Unlock" or "Reconnect" – beside the text, below it when there is little room |
|
|
122
123
|
| classes? | `RecipeClasses<typeof alertRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
123
124
|
|
|
124
125
|
### AngleSlider
|
|
@@ -305,6 +306,7 @@ Image, initials or icon of a person or organisation; `as="button"` makes it a tr
|
|
|
305
306
|
| Prop | Type | Description |
|
|
306
307
|
| --- | --- | --- |
|
|
307
308
|
| name? | `string` | Person or organisation – accessible name of the avatar and source of the initials |
|
|
309
|
+
| initials? | `string` | Own initials instead of the ones taken from `name`, e.g. "MS" for "my-server" |
|
|
308
310
|
| src? | `string` | Image URL; initials (or the icon) are shown while it loads or if it fails |
|
|
309
311
|
| icon? | `IconComponent` | Icon shown when there is neither an image nor a name (default: user icon) |
|
|
310
312
|
| variant? | `AvatarVariant` | |
|
|
@@ -599,6 +601,7 @@ Surface for grouped content, optionally with title, media and footer; interactiv
|
|
|
599
601
|
| subtitle? | `ReactNode` | Line below the title |
|
|
600
602
|
| titleTag? | `'h2' \| 'h3' \| 'h4' \| 'h5' \| 'h6' \| 'p'` | Element of the title – pick the level that fits the page outline |
|
|
601
603
|
| orientation? | `'vertical' \| 'horizontal'` | `horizontal`: media at the start, the content beside it |
|
|
604
|
+
| size? | `'sm' \| 'md'` | `sm`: smaller radius, padding and title, e.g. for cards in a list inside a dialog |
|
|
602
605
|
| media? | `ReactNode` | Image or video above the content (beside it when horizontal) |
|
|
603
606
|
| header? | `ReactNode` | Extra content in the header, after the title (e.g. a badge or a menu) |
|
|
604
607
|
| footer? | `ReactNode` | Actions at the end of the card |
|
|
@@ -849,13 +852,13 @@ Checkbox with label (also indeterminate), works inside Field
|
|
|
849
852
|
- Import: `import { Checkbox } from '@wirecore/wirelayer-react'`
|
|
850
853
|
- Category: Forms
|
|
851
854
|
- Example: https://wirecore.github.io/WireLayer/?path=/story/react_forms-checkbox--playground
|
|
852
|
-
- Also takes: Omit<ComponentProps<'input'>, 'checked' | 'defaultChecked' | 'value' | 'type'>
|
|
855
|
+
- Also takes: Omit< ComponentProps<'input'>, 'checked' | 'defaultChecked' | 'value' | 'type' >
|
|
853
856
|
|
|
854
857
|
| Prop | Type | Description |
|
|
855
858
|
| --- | --- | --- |
|
|
856
|
-
| checked? | `
|
|
857
|
-
| defaultChecked? | `
|
|
858
|
-
| onCheckedChange? | `(checked:
|
|
859
|
+
| checked? | `C` | |
|
|
860
|
+
| defaultChecked? | `C` | |
|
|
861
|
+
| onCheckedChange? | `(checked: C) => void` | |
|
|
859
862
|
| invalid? | `boolean` | |
|
|
860
863
|
| value? | `string` | |
|
|
861
864
|
| children? | `ReactNode` | |
|
|
@@ -937,6 +940,20 @@ Filter chips: one or several options as toggle buttons
|
|
|
937
940
|
| disabled? | `boolean` | |
|
|
938
941
|
| classes? | `RecipeClasses<typeof chipGroupRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
939
942
|
|
|
943
|
+
### Code
|
|
944
|
+
|
|
945
|
+
Code inside a sentence, without syntax colours: the look of InlineCode (/code) without shiki
|
|
946
|
+
|
|
947
|
+
- Import: `import { Code } from '@wirecore/wirelayer-react'`
|
|
948
|
+
- Category: Data
|
|
949
|
+
- Example: https://wirecore.github.io/WireLayer/?path=/story/react_data-code--playground
|
|
950
|
+
- Also takes: ComponentProps<'code'>
|
|
951
|
+
|
|
952
|
+
| Prop | Type | Description |
|
|
953
|
+
| --- | --- | --- |
|
|
954
|
+
| code? | `string` | The code (one line) – or pass it as the content |
|
|
955
|
+
| classes? | `RecipeClasses<typeof inlineCodeRecipe>` | Extra classes of the recipe (see the recipe inlineCode) |
|
|
956
|
+
|
|
940
957
|
### CodeHighlight
|
|
941
958
|
|
|
942
959
|
Code block with syntax colours; the scroll area is focusable, the copy button copies the plain code
|
|
@@ -1122,6 +1139,9 @@ Text field with suggestions (autocomplete): type to filter, arrow keys to choose
|
|
|
1122
1139
|
| dataSource? | `DataSource<T>` | Loads the options for the typed text (after a typing pause, outdated answers dropped; pages while scrolling); `getItemsByKeys` gives the label of a chosen value that is not loaded |
|
|
1123
1140
|
| minSearchLength? | `number` | Fewest characters typed before the data source is asked |
|
|
1124
1141
|
| pageSize? | `number` | Options per request of the data source (default 50) |
|
|
1142
|
+
| open? | `boolean` | Whether the list is open (controlled, with onOpenChange) |
|
|
1143
|
+
| onOpenChange? | `(open: boolean) => void` | The list opened or closed |
|
|
1144
|
+
| stopKeyPropagation? | `boolean` | Keeps the keys the open list handles itself (Enter choosing, Escape closing, Tab leaving) from bubbling up – e.g. in a dialog with window shortcuts for Enter (save) and Escape (cancel) |
|
|
1125
1145
|
| renderItem? | `(item: T, state: ListItemState) => ReactNode` | Content of an option (instead of icon and label) |
|
|
1126
1146
|
| classes? | `RecipeClasses<typeof comboboxRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
1127
1147
|
|
|
@@ -1289,12 +1309,15 @@ Opens at the pointer on right click, on touch screens with a long press (and wit
|
|
|
1289
1309
|
- Import: `import { ContextMenu } from '@wirecore/wirelayer-react'`
|
|
1290
1310
|
- Category: Overlays
|
|
1291
1311
|
- Example: https://wirecore.github.io/WireLayer/?path=/story/react_overlays-contextmenu--playground
|
|
1292
|
-
- Also takes: MenuItemOptions
|
|
1312
|
+
- Also takes: MenuItemOptions, MenuBehaviorOptions
|
|
1293
1313
|
|
|
1294
1314
|
| Prop | Type | Description |
|
|
1295
1315
|
| --- | --- | --- |
|
|
1296
1316
|
| items | `readonly MenuEntry[]` | Items, groups, separators, checkbox items, radio groups and submenus – as in Menu |
|
|
1297
1317
|
| label? | `string` | Accessible name of the menu – without it the menu is named by the area's content |
|
|
1318
|
+
| open? | `boolean` | Whether the menu is open (controlled, with onOpenChange) |
|
|
1319
|
+
| onOpenChange? | `(open: boolean) => void` | The menu opened or closed – e.g. to pause list shortcuts while it is open |
|
|
1320
|
+
| onBeforeOpen? | `(target: Element, details: ContextMenuOpenDetails) => void` | A right click, long press or the menu key is opening the menu, on this element (e.g. the row under the pointer – select it before the menu shows); `details.source` tells pointer from keyboard, with the keyboard `details.focused` is the focused element (e.g. the row with the focus) |
|
|
1298
1321
|
| ref? | `Ref<OverlayHandle>` | open(anchor), close(), toggle(anchor) – e.g. open(event) from your own handler |
|
|
1299
1322
|
| children | `ReactElement` | The area that opens the menu |
|
|
1300
1323
|
| classes? | `RecipeClasses<typeof menuRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
@@ -1727,6 +1750,7 @@ The modal window of a Dialog: title, description, focus trap, Escape closes
|
|
|
1727
1750
|
| --- | --- | --- |
|
|
1728
1751
|
| title | `string` | |
|
|
1729
1752
|
| hideTitle? | `boolean` | The title only for screen readers – it still names the dialog (e.g. a video in a dialog) |
|
|
1753
|
+
| titlePosition? | `'body' \| 'header'` | `body` (default): the title below the header row; `header`: in the row of the close button, after a smaller icon, the header separated by a line (as on the Drawer) |
|
|
1730
1754
|
| description? | `string` | |
|
|
1731
1755
|
| icon? | `IconComponent` | Icon component in the coloured box at the top |
|
|
1732
1756
|
| status? | `DialogStatus` | |
|
|
@@ -2619,7 +2643,7 @@ Shows a value as a button; activating it swaps in the editor (Escape closes it)
|
|
|
2619
2643
|
|
|
2620
2644
|
### Input
|
|
2621
2645
|
|
|
2622
|
-
Text field with sizes, leading icon, prefix and suffix; works inside Field
|
|
2646
|
+
Text field with sizes, leading icon, prefix and suffix; works inside Field. `ref` reaches the native input (focus, select, setSelectionRange)
|
|
2623
2647
|
|
|
2624
2648
|
- Import: `import { Input } from '@wirecore/wirelayer-react'`
|
|
2625
2649
|
|
|
@@ -2636,6 +2660,7 @@ Text field with sizes, leading icon, prefix and suffix; works inside Field
|
|
|
2636
2660
|
| leadingIcon? | `IconComponent` | Icon component rendered inside the field, before the text |
|
|
2637
2661
|
| prefix? | `string` | Static text segment before the input, e.g. `https://` |
|
|
2638
2662
|
| suffix? | `string` | Static text segment after the input, e.g. `.de` |
|
|
2663
|
+
| mono? | `boolean` | Monospace font of the theme (JetBrains Mono) – for paths, tokens, codes, URLs and keys |
|
|
2639
2664
|
| classes? | `RecipeClasses<typeof inputRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
2640
2665
|
|
|
2641
2666
|
### InputGroup
|
|
@@ -3070,7 +3095,7 @@ The trigger is the slotted element (e.g. a Button or IconButton)
|
|
|
3070
3095
|
- Import: `import { Menu } from '@wirecore/wirelayer-react'`
|
|
3071
3096
|
- Category: Overlays
|
|
3072
3097
|
- Example: https://wirecore.github.io/WireLayer/?path=/story/react_overlays-menu--playground
|
|
3073
|
-
- Also takes: MenuItemOptions
|
|
3098
|
+
- Also takes: MenuItemOptions, MenuBehaviorOptions
|
|
3074
3099
|
|
|
3075
3100
|
| Prop | Type | Description |
|
|
3076
3101
|
| --- | --- | --- |
|
|
@@ -3262,9 +3287,9 @@ The browser's select: its own keyboard and mobile pickers; inside a Field it is
|
|
|
3262
3287
|
|
|
3263
3288
|
| Prop | Type | Description |
|
|
3264
3289
|
| --- | --- | --- |
|
|
3265
|
-
| items | `readonly NativeSelectOption[]` | |
|
|
3266
|
-
| onValueChange? | `(value: string) => void` |
|
|
3267
|
-
| placeholder? | `
|
|
3290
|
+
| items | `readonly NativeSelectOption<V>[]` | |
|
|
3291
|
+
| onValueChange? | `(value: P extends string ? V \| '' : V) => void` | The chosen option's value with its type; the placeholder option gives an empty string |
|
|
3292
|
+
| placeholder? | `P` | First, empty option, e.g. "Please choose" – without it onValueChange only gets values (typed `V`, not `V \| ''`) |
|
|
3268
3293
|
| size? | `Size` | |
|
|
3269
3294
|
| invalid? | `boolean` | |
|
|
3270
3295
|
| classes? | `RecipeClasses<typeof nativeSelectRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
@@ -3346,7 +3371,7 @@ A number in the format of the locale ("€1,234.50")
|
|
|
3346
3371
|
|
|
3347
3372
|
### NumberInput
|
|
3348
3373
|
|
|
3349
|
-
Number field with − / + buttons, arrow keys and locale formatting ("1,234.5")
|
|
3374
|
+
Number field with − / + buttons, arrow keys and locale formatting ("1,234.5"); `ref` reaches the native input
|
|
3350
3375
|
|
|
3351
3376
|
- Import: `import { NumberInput } from '@wirecore/wirelayer-react'`
|
|
3352
3377
|
- Category: Forms
|
|
@@ -3357,7 +3382,7 @@ Number field with − / + buttons, arrow keys and locale formatting ("1,234.5")
|
|
|
3357
3382
|
| --- | --- | --- |
|
|
3358
3383
|
| value? | `number \| null` | |
|
|
3359
3384
|
| defaultValue? | `number \| null` | |
|
|
3360
|
-
| onValueChange? | `(value: number \| null) => void` | |
|
|
3385
|
+
| onValueChange? | `(value: F extends string ? number : number \| null) => void` | |
|
|
3361
3386
|
| min? | `number` | |
|
|
3362
3387
|
| max? | `number` | |
|
|
3363
3388
|
| step? | `number` | |
|
|
@@ -3378,6 +3403,7 @@ Number field with − / + buttons, arrow keys and locale formatting ("1,234.5")
|
|
|
3378
3403
|
| allowDecimal? | `boolean` | Allows decimals (default); false blocks the decimal separator and rounds to whole numbers |
|
|
3379
3404
|
| decimals? | `number` | Exactly this many decimals, e.g. 2 → "12.50" |
|
|
3380
3405
|
| clampBehavior? | `'blur' \| 'strict' \| 'none'` | Out of min/max: `blur` corrects the value when the field is left (default), `strict` does not let it leave the range, `none` keeps it (mark it invalid yourself) |
|
|
3406
|
+
| emptyFallback? | `F` | A number is always set: an emptied field falls back to `min` (or 0) or to the last valid number (`previous`) when it is left or Enter is pressed – onValueChange then only gets numbers (typed `number`, not `number \| null`) |
|
|
3381
3407
|
| selectOnFocus? | `boolean` | Selects the whole number when the field gets the focus |
|
|
3382
3408
|
| loading? | `boolean` | Shows a spinner in the field and marks it busy (aria-busy) |
|
|
3383
3409
|
| clearable? | `boolean` | Shows a button that empties the field while it has a value |
|
|
@@ -3556,7 +3582,7 @@ Card with a heading (and actions); toggleable: the heading holds a button with a
|
|
|
3556
3582
|
|
|
3557
3583
|
### PasswordInput
|
|
3558
3584
|
|
|
3559
|
-
Password field with a button that shows/hides the password (named "Show/Hide password")
|
|
3585
|
+
Password field with a button that shows/hides the password (named "Show/Hide password"); `ref` reaches the native input
|
|
3560
3586
|
|
|
3561
3587
|
- Import: `import { PasswordInput } from '@wirecore/wirelayer-react'`
|
|
3562
3588
|
- Category: Forms
|
|
@@ -3576,6 +3602,7 @@ Password field with a button that shows/hides the password (named "Show/Hide pas
|
|
|
3576
3602
|
| loading? | `boolean` | Shows a spinner in the field and marks it busy (aria-busy) |
|
|
3577
3603
|
| clearable? | `boolean` | Shows a button that empties the field while it has a value |
|
|
3578
3604
|
| clearLabel? | `string` | Accessible name of the clear button (default "Clear input") |
|
|
3605
|
+
| mono? | `boolean` | Monospace font of the theme (JetBrains Mono) – for tokens, passphrases and keys |
|
|
3579
3606
|
| classes? | `RecipeClasses<typeof passwordInputRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
3580
3607
|
|
|
3581
3608
|
### PdfViewer
|
|
@@ -3825,6 +3852,10 @@ Ark names the progressbar after its value; the label is the name, the value its
|
|
|
3825
3852
|
| striped? | `boolean` | Diagonal stripes on the filled part |
|
|
3826
3853
|
| animated? | `boolean` | Moving stripes (only without reduced motion) |
|
|
3827
3854
|
| orientation? | `'horizontal' \| 'vertical'` | Vertical bar (fills the height of its parent) |
|
|
3855
|
+
| size? | `'xs' \| 'md'` | `xs`: a thin bar with small text, e.g. in a list or a status bar |
|
|
3856
|
+
| status? | `'info' \| 'success' \| 'warn' \| 'danger' \| 'neutral'` | Colour of the filled part by its state, e.g. `danger` for a failed transfer, `neutral` (grey) for a cancelled one |
|
|
3857
|
+
| hideLabel? | `boolean` | The label only for screen readers – it still names the progress bar |
|
|
3858
|
+
| barText? | `string` | Short text in the bar, e.g. "42 %", "waiting" or "failed" (a taller bar; horizontal, without segments or steps) – screen readers get it after the value |
|
|
3828
3859
|
| classes? | `RecipeClasses<typeof progressRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
3829
3860
|
|
|
3830
3861
|
### ProgressCircle
|
|
@@ -3939,19 +3970,19 @@ One choice out of several (role="radiogroup", arrow keys), horizontal or vertica
|
|
|
3939
3970
|
- Import: `import { RadioGroup } from '@wirecore/wirelayer-react'`
|
|
3940
3971
|
- Category: Forms
|
|
3941
3972
|
- Example: https://wirecore.github.io/WireLayer/?path=/story/react_forms-radiogroup--playground
|
|
3942
|
-
- Also takes: Omit<ComponentProps<'div'>, 'defaultValue' | 'dir'>
|
|
3973
|
+
- Also takes: Omit< ComponentProps<'div'>, 'defaultValue' | 'dir' >
|
|
3943
3974
|
|
|
3944
3975
|
| Prop | Type | Description |
|
|
3945
3976
|
| --- | --- | --- |
|
|
3946
|
-
| value? | `
|
|
3947
|
-
| defaultValue? | `
|
|
3948
|
-
| onValueChange? | `(value:
|
|
3977
|
+
| value? | `V \| null` | Selected value; numbers when the items have number values |
|
|
3978
|
+
| defaultValue? | `V \| null` | |
|
|
3979
|
+
| onValueChange? | `(value: R extends true ? V : V \| null) => void` | |
|
|
3949
3980
|
| label? | `string` | Visible group label (otherwise pass aria-label – or place the group in a Field with a label) |
|
|
3950
3981
|
| orientation? | `RadioGroupOrientation` | |
|
|
3951
3982
|
| columns? | `number` | Cards in a grid with this many columns (one column on small screens) – for RadioCard |
|
|
3952
3983
|
| disabled? | `boolean` | |
|
|
3953
3984
|
| invalid? | `boolean` | |
|
|
3954
|
-
| required? | `
|
|
3985
|
+
| required? | `R` | A choice is required (aria-required). onValueChange then only gets values (typed `V`, not `V \| null`): a form reset back to an empty start is not passed on |
|
|
3955
3986
|
| name? | `string` | |
|
|
3956
3987
|
| classes? | `RecipeClasses<typeof radioGroupRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
3957
3988
|
|
|
@@ -3966,7 +3997,7 @@ One option of a RadioGroup
|
|
|
3966
3997
|
|
|
3967
3998
|
| Prop | Type | Description |
|
|
3968
3999
|
| --- | --- | --- |
|
|
3969
|
-
| value | `string` |
|
|
4000
|
+
| value | `string \| number` | Value of the option – a number makes the group's value a number |
|
|
3970
4001
|
| disabled? | `boolean` | |
|
|
3971
4002
|
| classes? | `RecipeClasses<typeof radioGroupRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
3972
4003
|
|
|
@@ -4243,16 +4274,17 @@ Few exclusive options as a segmented switch (radio group)
|
|
|
4243
4274
|
- Import: `import { SegmentedControl } from '@wirecore/wirelayer-react'`
|
|
4244
4275
|
- Category: Buttons
|
|
4245
4276
|
- Example: https://wirecore.github.io/WireLayer/?path=/story/react_buttons-segmentedcontrol--playground
|
|
4246
|
-
- Also takes: Omit<ComponentProps<'div'>, 'defaultValue' | 'dir'>
|
|
4277
|
+
- Also takes: Omit< ComponentProps<'div'>, 'defaultValue' | 'dir' >
|
|
4247
4278
|
|
|
4248
4279
|
| Prop | Type | Description |
|
|
4249
4280
|
| --- | --- | --- |
|
|
4250
|
-
| value? | `
|
|
4251
|
-
| defaultValue? | `
|
|
4252
|
-
| onValueChange? | `(value:
|
|
4281
|
+
| value? | `V \| null` | |
|
|
4282
|
+
| defaultValue? | `V` | |
|
|
4283
|
+
| onValueChange? | `(value: R extends true ? V : V \| null) => void` | |
|
|
4253
4284
|
| label? | `string` | Accessible name of the group (visually hidden) – inside a Field with a label, the Field's label names it |
|
|
4254
4285
|
| size? | `SegmentedControlSize` | |
|
|
4255
4286
|
| disabled? | `boolean` | |
|
|
4287
|
+
| required? | `R` | A value is required (aria-required). onValueChange then only gets values (typed `V`, not `V \| null`): a form reset back to an empty start is not passed on |
|
|
4256
4288
|
| name? | `string` | |
|
|
4257
4289
|
| classes? | `RecipeClasses<typeof segmentedControlRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
4258
4290
|
|
|
@@ -4284,9 +4316,10 @@ Dropdown list for one option: arrow keys, typeahead, Escape; native select hidde
|
|
|
4284
4316
|
| Prop | Type | Description |
|
|
4285
4317
|
| --- | --- | --- |
|
|
4286
4318
|
| items | `readonly T[]` | Options: SelectItem objects – or any objects or values, read with itemValue/itemLabel/itemDisabled/itemGroup |
|
|
4287
|
-
| value? | `V \| null` | Selected value; any type (string, number, boolean, object) |
|
|
4288
|
-
| defaultValue? | `V \| null` | |
|
|
4289
|
-
| onValueChange? | `(value: V \|
|
|
4319
|
+
| value? | `V \| NoInfer<E> \| null` | Selected value; any type (string, number, boolean, object) |
|
|
4320
|
+
| defaultValue? | `V \| NoInfer<E> \| null` | |
|
|
4321
|
+
| onValueChange? | `(value: V \| NoInfer<E>) => void` | |
|
|
4322
|
+
| emptyValue? | `E` | The value that means "nothing chosen" instead of null, e.g. `""`: it shows the placeholder, and clearing gives it back (onValueChange is then typed `V \| E`, without null) |
|
|
4290
4323
|
| placeholder? | `string` | |
|
|
4291
4324
|
| invalid? | `boolean` | |
|
|
4292
4325
|
| required? | `boolean` | |
|
|
@@ -4311,6 +4344,9 @@ Dropdown list for one option: arrow keys, typeahead, Escape; native select hidde
|
|
|
4311
4344
|
| minSearchLength? | `number` | Fewest characters the search needs before the data source is asked |
|
|
4312
4345
|
| pageSize? | `number` | Options per request of the data source (default 50) |
|
|
4313
4346
|
| standalone? | `boolean` | Not labelled by a surrounding Field – for a second control inside it (e.g. PhoneInput's country) |
|
|
4347
|
+
| open? | `boolean` | Whether the list is open (controlled, with onOpenChange) |
|
|
4348
|
+
| onOpenChange? | `(open: boolean) => void` | The list opened or closed |
|
|
4349
|
+
| stopKeyPropagation? | `boolean` | Keeps the keys the list handles itself (Enter choosing or opening, Escape closing, Tab leaving) from bubbling up – e.g. in a dialog with window shortcuts for Enter (save) and Escape (cancel) |
|
|
4314
4350
|
| renderItem? | `(item: T, state: ListItemState) => ReactNode` | Content of an option (instead of icon and label) |
|
|
4315
4351
|
| renderValue? | `(item: T) => ReactNode` | Content of the field for the selected item |
|
|
4316
4352
|
| classes? | `RecipeClasses<typeof selectRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
@@ -4723,6 +4759,7 @@ Steps list (tabs) with one panel per step and back/next buttons; the last "Next"
|
|
|
4723
4759
|
| isStepValid? | `(index: number) => boolean` | Blocks "Next" while a step is not valid (with linear) |
|
|
4724
4760
|
| orientation? | `'horizontal' \| 'vertical'` | Steps listed top to bottom beside the content |
|
|
4725
4761
|
| labelPlacement? | `'end' \| 'bottom'` | Label beside the number (default) or below it |
|
|
4762
|
+
| finishLabel? | `string` | Text of the last "Next" button, e.g. "Create" (default "Finish") |
|
|
4726
4763
|
| children | `(index: number) => ReactNode` | Content of a step |
|
|
4727
4764
|
| completed? | `ReactNode` | Shown after the last step |
|
|
4728
4765
|
| className? | `string` | |
|
|
@@ -4840,7 +4877,7 @@ Tab panels: tab list with arrow keys, one panel visible
|
|
|
4840
4877
|
|
|
4841
4878
|
| Prop | Type | Description |
|
|
4842
4879
|
| --- | --- | --- |
|
|
4843
|
-
| value? | `string` |
|
|
4880
|
+
| value? | `string \| null` | Selected tab; `null`: no tab selected (e.g. tabs of panels that live elsewhere – the first tab stays reachable with Tab) |
|
|
4844
4881
|
| defaultValue? | `string` | |
|
|
4845
4882
|
| onValueChange? | `(value: string \| null) => void` | |
|
|
4846
4883
|
| label? | `string` | Accessible name of the tab list |
|
|
@@ -4892,6 +4929,7 @@ One tab button
|
|
|
4892
4929
|
| icon? | `IconComponent` | Icon component before the label |
|
|
4893
4930
|
| closable? | `boolean` | Shows a close button (pointer) and closes with the Delete key; onClose reports it – remove the tab (and select another one) yourself. The focus moves to the neighbouring tab |
|
|
4894
4931
|
| onClose? | `(value: string) => void` | |
|
|
4932
|
+
| controls? | `string \| null` | Id of the element the tab shows, when it is not a TabsContent of these Tabs (e.g. a pane elsewhere, hidden while not selected) – `null`: none (tabs without panels) |
|
|
4895
4933
|
| classes? | `RecipeClasses<typeof tabsRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
4896
4934
|
|
|
4897
4935
|
### TagsInput
|
|
@@ -4932,7 +4970,7 @@ Free entries: Enter or "," adds, Backspace on the empty field selects the last e
|
|
|
4932
4970
|
|
|
4933
4971
|
### Textarea
|
|
4934
4972
|
|
|
4935
|
-
Multi-line text field, optionally growing with the text (autoResize) and with a counter; works inside Field
|
|
4973
|
+
Multi-line text field, optionally growing with the text (autoResize) and with a counter; works inside Field. `ref` reaches the native textarea
|
|
4936
4974
|
|
|
4937
4975
|
- Import: `import { Textarea } from '@wirecore/wirelayer-react'`
|
|
4938
4976
|
- Category: Forms
|
|
@@ -4951,6 +4989,7 @@ Multi-line text field, optionally growing with the text (autoResize) and with a
|
|
|
4951
4989
|
| loading? | `boolean` | Shows a spinner in the corner and marks the field busy (aria-busy) |
|
|
4952
4990
|
| clearable? | `boolean` | Shows a button that empties the field while it has text |
|
|
4953
4991
|
| clearLabel? | `string` | Accessible name of the clear button (default "Clear input") |
|
|
4992
|
+
| mono? | `boolean` | Monospace font of the theme (JetBrains Mono) – for keys, codes and logs |
|
|
4954
4993
|
| classes? | `RecipeClasses<typeof textareaRecipe> & RecipeClasses<typeof textareaPartsRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipes textarea and textareaParts) |
|
|
4955
4994
|
|
|
4956
4995
|
### TimeGrid
|
|
@@ -5516,6 +5555,8 @@ Multi-step form on the Stepper: "Next" checks the step (async with a spinner), "
|
|
|
5516
5555
|
| summaryLabel? | `string` | Name of the summary step (default "Summary") |
|
|
5517
5556
|
| completed? | `ReactNode` | Shown after finishing |
|
|
5518
5557
|
| orientation? | `'horizontal' \| 'vertical'` | Steps listed top to bottom beside the content |
|
|
5558
|
+
| finishLabel? | `string` | Text of the last button, e.g. "Create" (default "Finish") |
|
|
5559
|
+
| focusOnStepChange? | `boolean` | Moves the focus into a new step when the step changes: to the element marked data-autoselect (text selected), data-autofocus or autofocus, otherwise to the step's first field |
|
|
5519
5560
|
| classes? | `RecipeClasses<typeof wizardRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
5520
5561
|
|
|
5521
5562
|
### YearPicker
|
|
@@ -5575,6 +5616,7 @@ Year field ("2026"): type the digits, or pick from the year grid; range: start
|
|
|
5575
5616
|
- `emptyConditionGroup` (`@wirecore/wirelayer-react`): –
|
|
5576
5617
|
- `expandRecurrence` (`@wirecore/wirelayer-react`): –
|
|
5577
5618
|
- `firstError` (`@wirecore/wirelayer-react/form`): First readable message of TanStack Form errors (strings or Standard Schema issues).
|
|
5619
|
+
- `focusFirst` (`@wirecore/wirelayer-react`): –
|
|
5578
5620
|
- `formatColor` (`@wirecore/wirelayer-react`): –
|
|
5579
5621
|
- `formatHotkey` (`@wirecore/wirelayer-react`): –
|
|
5580
5622
|
- `formatHotkeyText` (`@wirecore/wirelayer-react`): –
|
|
@@ -5606,6 +5648,7 @@ Year field ("2026"): type the digits, or pick from the year grid; range: start
|
|
|
5606
5648
|
- `prompt` (`@wirecore/wirelayer-react`): Asks for a text in the app-wide <ConfirmDialog />. Resolves with the (valid) text, or null when cancelled.
|
|
5607
5649
|
- `registerLocale` (`@wirecore/wirelayer-react`): –
|
|
5608
5650
|
- `removeTreeNode` (`@wirecore/wirelayer-react`): –
|
|
5651
|
+
- `resolveTokens` (`@wirecore/wirelayer-react`): –
|
|
5609
5652
|
- `rowsToDataSource` (`@wirecore/wirelayer-react/data-table`): –
|
|
5610
5653
|
- `toast` (`@wirecore/wirelayer-react`): –
|
|
5611
5654
|
- `toaster` (`@wirecore/wirelayer-react`): –
|
|
@@ -5643,6 +5686,7 @@ Year field ("2026"): type the digits, or pick from the year grid; range: start
|
|
|
5643
5686
|
- `useReducedMotion` (`@wirecore/wirelayer-react`): Whether the user asked for less motion (prefers-reduced-motion: reduce)
|
|
5644
5687
|
- `useRegisteredHotkeys` (`@wirecore/wirelayer-react`): The registered shortcuts (enabled, with a description), updated as components register them
|
|
5645
5688
|
- `useResizeObserver` (`@wirecore/wirelayer-react`): The content box of an element as it changes (pass `ref` to it)
|
|
5689
|
+
- `useResolvedTokens` (`@wirecore/wirelayer-react`): The token colours as fixed values (hex, see resolveTokens) – for canvas libraries like xterm.js that cannot read CSS variables; new values when the mode, the theme or the system colour scheme changes. On the server: the light base colours as written
|
|
5646
5690
|
- `useScrollSpy` (`@wirecore/wirelayer-react`): The id of the section being read: the last of `ids` whose top passed `offset` px (e.g. a sticky header) – for a table of contents
|
|
5647
5691
|
- `useSelection` (`@wirecore/wirelayer-react`): Selected items of a list: toggle, select all, clear – with "all"/"some" for a header checkbox
|
|
5648
5692
|
- `useSessionStorage` (`@wirecore/wirelayer-react`): Like useLocalStorage, in sessionStorage (this tab only, gone when it closes)
|
|
@@ -5654,6 +5698,7 @@ Year field ("2026"): type the digits, or pick from the year grid; range: start
|
|
|
5654
5698
|
- `useWindowScroll` (`@wirecore/wirelayer-react`): Scroll position of the window and `scrollTo` (0 on the server)
|
|
5655
5699
|
- `validateFields` (`@wirecore/wirelayer-react/form`): Validates some fields of a TanStack form (e.g. one Wizard step) and marks them touched, so their errors show. Resolves with true when none has an error.
|
|
5656
5700
|
- `virtualRows` (`@wirecore/wirelayer-react/virtual`): DataTable feature: only the visible rows are rendered with `virtual` – `<DataTable features={[virtualRows]} virtual>`
|
|
5701
|
+
- `watchTokens` (`@wirecore/wirelayer-react`): –
|
|
5657
5702
|
|
|
5658
5703
|
## Guides
|
|
5659
5704
|
|
|
@@ -6345,6 +6390,39 @@ as `pdfjs-dist` (Apache-2.0), Chart.js, Tiptap and Shiki are installed by the ap
|
|
|
6345
6390
|
- **Brand colours:** `checkTheme` lists the pairs below WCAG AA, `suggestThemeFixes` the nearest colours (and `on-*`
|
|
6346
6391
|
colours) that meet them – an orange `primary` with white text, common in PrimeVue themes, does not.
|
|
6347
6392
|
|
|
6393
|
+
### Desktop apps (dense UI, many dialogs)
|
|
6394
|
+
|
|
6395
|
+
- **Focus from code:** the text fields expose `focus()`, `select()`, `setSelectionRange()` and the native input
|
|
6396
|
+
(`element`) through a template ref – no `$el.querySelector('input')`. In a dialog, mark the first field with
|
|
6397
|
+
`data-autofocus`: a `focus()` in `onMounted` is overridden by the dialog's focus trap.
|
|
6398
|
+
- **Window shortcuts in dialogs:** Enter/Escape listeners on `window` also get the keys of an open list. `Select` and
|
|
6399
|
+
`Combobox` take `stop-key-propagation` and report `v-model:open`; `ContextMenu` reports `v-model:open` and the
|
|
6400
|
+
right-clicked element (`@before-open`).
|
|
6401
|
+
- **Menus at a point:** `close-on-scroll`, `close-on-resize`, `close-on-blur`, and `highlight-first` so Enter takes the
|
|
6402
|
+
first item.
|
|
6403
|
+
- **Closable tabs** are built in: `TabsTrigger closable @close` – the close button is not nested in the tab, Delete
|
|
6404
|
+
closes the focused tab and the focus moves to its neighbour.
|
|
6405
|
+
- **Typed values:** `RadioGroup`, `SegmentedControl` and `NativeSelect` keep the type of the bound value (unions,
|
|
6406
|
+
numbers); `Checkbox` with a boolean model gives booleans.
|
|
6407
|
+
- **Compact parts:** `Progress size="xs"` with `hide-label`, `bar-text` and `status`; `Alert #actions`; `mono` on text
|
|
6408
|
+
fields; `DialogContent title-position="header"` puts the title next to the close button.
|
|
6409
|
+
- **Values that are never empty:** with `required`, `RadioGroup` and `SegmentedControl` give v-model `V` instead of
|
|
6410
|
+
`V | null`; `NativeSelect` without `placeholder` gives `V` instead of `V | ''`; `NumberInput empty-fallback="min"` or
|
|
6411
|
+
`"previous"` refills an emptied field when it is left (typed `number`). `Select empty-value=""` treats an empty string
|
|
6412
|
+
like null – the placeholder shows, clearing gives `""` back.
|
|
6413
|
+
- **Focus in dialogs and wizards:** `data-autoselect` focuses a field and selects its text when the dialog opens (e.g. a
|
|
6414
|
+
prefilled name). For content that changes while it is open, `DialogContent` exposes `focusFirst()` (React:
|
|
6415
|
+
`focusFirst(element)`), and `Wizard focus-on-step-change` moves the focus into each new step. `Wizard finish-label`
|
|
6416
|
+
names the last button; `validate` may return a text, shown as the step's error.
|
|
6417
|
+
- **Panels elsewhere:** `TabsTrigger controls="pane-id"` points a tab at a pane outside the Tabs (`:controls="null"`
|
|
6418
|
+
for none); `Tabs` takes `null` for "no tab selected" – the first tab stays reachable with Tab.
|
|
6419
|
+
- **Context menus by keyboard:** `@before-open` gets a second argument `{ source: 'pointer' | 'keyboard', focused }` –
|
|
6420
|
+
with Shift+F10 or the menu key `focused` is the element with the focus (e.g. the list row).
|
|
6421
|
+
- **Canvas libraries** (xterm.js, charts): `resolveTokens()` gives the token colours of the current mode and theme as hex;
|
|
6422
|
+
`useResolvedTokens()` updates when the mode, the theme or the system colour scheme changes.
|
|
6423
|
+
- **More compact parts:** `Card size="sm"` for lists in dialogs, `Progress status="neutral"` for cancelled work,
|
|
6424
|
+
`Avatar initials="MS"`, and `Code` for code in a sentence without shiki (the look of `InlineCode` from `/code`).
|
|
6425
|
+
|
|
6348
6426
|
### Custom theme
|
|
6349
6427
|
|
|
6350
6428
|
A theme overrides any colors per mode. `themeToCss` generates the CSS for it,
|
package/llms.txt
CHANGED
|
@@ -58,6 +58,7 @@ Full API (props, events, slots, examples) in llms-full.txt next to this file. MC
|
|
|
58
58
|
- [ChatThinking](https://wirecore.github.io/WireLayer/?path=/story/react_data-chat--playground): The reasoning of an answer: collapsed by default, "Thinking …" while it is being written (`@wirecore/wirelayer-react`)
|
|
59
59
|
- [ChatToolCall](https://wirecore.github.io/WireLayer/?path=/story/react_data-chat--playground): A tool call of an assistant: name and status in the summary, arguments and result inside (`@wirecore/wirelayer-react`)
|
|
60
60
|
- [Chip](https://wirecore.github.io/WireLayer/?path=/story/react_data-chip--playground): One option of a ChipGroup (a toggle button); outside a ChipGroup a standalone chip, optionally removable (`@wirecore/wirelayer-react`)
|
|
61
|
+
- [Code](https://wirecore.github.io/WireLayer/?path=/story/react_data-code--playground): Code inside a sentence, without syntax colours: the look of InlineCode (/code) without shiki (`@wirecore/wirelayer-react`)
|
|
61
62
|
- [CodeHighlight](https://wirecore.github.io/WireLayer/?path=/story/react_data-codehighlight--playground): Code block with syntax colours; the scroll area is focusable, the copy button copies the plain code (`@wirecore/wirelayer-react/code`)
|
|
62
63
|
- [CodeHighlightTabs](https://wirecore.github.io/WireLayer/?path=/story/react_data-codehighlight--playground): Several files: tabs with the file names (and an icon by type) above the shown code (`@wirecore/wirelayer-react/code`)
|
|
63
64
|
- [CompositeChart](https://wirecore.github.io/WireLayer/?path=/story/react_data-compositechart--playground): Bars and lines in one chart (series[].type), e.g. revenue as bars and margin as a line on a second axis (`@wirecore/wirelayer-react/chart`)
|
|
@@ -169,8 +170,8 @@ Full API (props, events, slots, examples) in llms-full.txt next to this file. MC
|
|
|
169
170
|
- [MonthPicker](https://wirecore.github.io/WireLayer/?path=/story/react_forms-monthpicker--playground): Month field ("10.2026"): type the digits in one go, or pick from the month grid; range: start – end (`@wirecore/wirelayer-react`)
|
|
170
171
|
- [MultiSelect](https://wirecore.github.io/WireLayer/?path=/story/react_forms-multiselect--playground): Select with several values: the list stays open while choosing, Space/Enter toggle an option (`@wirecore/wirelayer-react`)
|
|
171
172
|
- [NativeSelect](https://wirecore.github.io/WireLayer/?path=/story/react_forms-nativeselect--playground): The browser's select: its own keyboard and mobile pickers; inside a Field it is labelled and described (`@wirecore/wirelayer-react`)
|
|
172
|
-
- [NumberInput](https://wirecore.github.io/WireLayer/?path=/story/react_forms-numberinput--playground): Number field with − / + buttons, arrow keys and locale formatting ("1,234.5") (`@wirecore/wirelayer-react`)
|
|
173
|
-
- [PasswordInput](https://wirecore.github.io/WireLayer/?path=/story/react_forms-passwordinput--playground): Password field with a button that shows/hides the password (named "Show/Hide password") (`@wirecore/wirelayer-react`)
|
|
173
|
+
- [NumberInput](https://wirecore.github.io/WireLayer/?path=/story/react_forms-numberinput--playground): Number field with − / + buttons, arrow keys and locale formatting ("1,234.5"); `ref` reaches the native input (`@wirecore/wirelayer-react`)
|
|
174
|
+
- [PasswordInput](https://wirecore.github.io/WireLayer/?path=/story/react_forms-passwordinput--playground): Password field with a button that shows/hides the password (named "Show/Hide password"); `ref` reaches the native input (`@wirecore/wirelayer-react`)
|
|
174
175
|
- [PhoneInput](https://wirecore.github.io/WireLayer/?path=/story/react_forms-phoneinput--playground): Country (flag and calling code, searchable) and the number, formatted for the country; the value is E.164 (`@wirecore/wirelayer-react`)
|
|
175
176
|
- [PinInput](https://wirecore.github.io/WireLayer/?path=/story/react_forms-pininput--playground): Code input (OTP, PIN): one box per character, typing moves on, pasting fills all boxes (`@wirecore/wirelayer-react`)
|
|
176
177
|
- [QuarterPicker](https://wirecore.github.io/WireLayer/?path=/story/react_forms-quarterpicker--playground): Quarter field: type "Q4 2026" (also "2026-Q4", "4/2026") or pick from the four quarters of a year; with range a start and an end quarter. Arrow keys move between the quarters and on into the next or previous year. (`@wirecore/wirelayer-react`)
|
|
@@ -185,7 +186,7 @@ Full API (props, events, slots, examples) in llms-full.txt next to this file. MC
|
|
|
185
186
|
- [Switch](https://wirecore.github.io/WireLayer/?path=/story/react_forms-switch--playground): Without a text the label is left out: Ark names the input by it, an empty one would hide a <label for> (`@wirecore/wirelayer-react`)
|
|
186
187
|
- [SwitchGroup](https://wirecore.github.io/WireLayer/?path=/story/react_forms-switchgroup--playground): role="group" named by its label, described by helper and error text; Switches with a value inside (`@wirecore/wirelayer-react`)
|
|
187
188
|
- [TagsInput](https://wirecore.github.io/WireLayer/?path=/story/react_forms-tagsinput--playground): Free entries: Enter or "," adds, Backspace on the empty field selects the last entry (again removes it), arrow keys move between entries; additions and removals are announced. With suggestions the field is a combobox: Arrow down opens them, Enter adds the highlighted one. (`@wirecore/wirelayer-react`)
|
|
188
|
-
- [Textarea](https://wirecore.github.io/WireLayer/?path=/story/react_forms-textarea--auto-resize): Multi-line text field, optionally growing with the text (autoResize) and with a counter; works inside Field (`@wirecore/wirelayer-react`)
|
|
189
|
+
- [Textarea](https://wirecore.github.io/WireLayer/?path=/story/react_forms-textarea--auto-resize): Multi-line text field, optionally growing with the text (autoResize) and with a counter; works inside Field. `ref` reaches the native textarea (`@wirecore/wirelayer-react`)
|
|
189
190
|
- [TimeGrid](https://wirecore.github.io/WireLayer/?path=/story/react_forms-timegrid--playground): Free time slots for a booking: radio buttons for one time (arrow keys move and choose), toggle buttons for a range (start, then end). Taken slots stay visible but cannot be chosen. (`@wirecore/wirelayer-react`)
|
|
190
191
|
- [TimePicker](https://wirecore.github.io/WireLayer/?path=/story/react_forms-timepicker--playground): Time field: type the digits one after another ("1430"), arrow keys change hour or minute – or pick from the list of times (every `step` minutes). Gives "HH:mm". (`@wirecore/wirelayer-react`)
|
|
191
192
|
- [TimeRangePicker](https://wirecore.github.io/WireLayer/?path=/story/react_forms-timerangepicker--playground): Start and end time in one field ("09:00 – 17:30"): typing runs on from start to end (`@wirecore/wirelayer-react`)
|
|
@@ -274,7 +275,7 @@ Full API (props, events, slots, examples) in llms-full.txt next to this file. MC
|
|
|
274
275
|
## Other
|
|
275
276
|
|
|
276
277
|
- FilterChips: The active filters as a list of chips with remove buttons ("Remove filter Location: Frankfurt") (`@wirecore/wirelayer-react`)
|
|
277
|
-
- Input: Text field with sizes, leading icon, prefix and suffix; works inside Field (`@wirecore/wirelayer-react`)
|
|
278
|
+
- Input: Text field with sizes, leading icon, prefix and suffix; works inside Field. `ref` reaches the native input (focus, select, setSelectionRange) (`@wirecore/wirelayer-react`)
|
|
278
279
|
- KeyValueEditor: Key-value pairs (FormList preset): two inputs per row, duplicate keys marked (`@wirecore/wirelayer-react/form`)
|
|
279
280
|
- LocaleProvider: Renders nothing itself; Ark's provider passes locale and direction (keyboard order) on to Ark (`@wirecore/wirelayer-react`)
|
|
280
281
|
|
|
@@ -310,5 +311,6 @@ Full API (props, events, slots, examples) in llms-full.txt next to this file. MC
|
|
|
310
311
|
- License
|
|
311
312
|
- Components and APIs side by side
|
|
312
313
|
- Pitfalls
|
|
314
|
+
- Desktop apps (dense UI, many dialogs)
|
|
313
315
|
- Custom theme
|
|
314
316
|
- Component sizes and shapes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecore/wirelayer-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "WireLayer components for React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -166,8 +166,8 @@
|
|
|
166
166
|
"dependencies": {
|
|
167
167
|
"@ark-ui/react": "^5.39.3",
|
|
168
168
|
"@internationalized/date": "^3.12.4",
|
|
169
|
-
"@wirecore/wirelayer-recipes": "^0.
|
|
170
|
-
"@wirecore/wirelayer-tokens": "^0.
|
|
169
|
+
"@wirecore/wirelayer-recipes": "^0.8.0",
|
|
170
|
+
"@wirecore/wirelayer-tokens": "^0.5.0",
|
|
171
171
|
"lucide-react": "^1.59.0"
|
|
172
172
|
},
|
|
173
173
|
"devDependencies": {
|