@wirecore/wirelayer-react 0.7.0 → 0.8.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-C6ZaMtqf.js +1511 -0
- package/dist/{Input-C8T3WLd5.js → Input-CtYSQznO.js} +41 -40
- package/dist/{PasswordInput-SjO66gZB.js → PasswordInput-dpeKVREo.js} +67 -64
- package/dist/Select-C2CiPTCK.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/Checkbox/Checkbox.d.ts +9 -5
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- 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 +12 -3
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +6 -1
- 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 +9 -6
- package/dist/components/NativeSelect/NativeSelect.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +1 -1
- 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 +12 -1
- package/dist/components/Progress/Progress.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +8 -6
- 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 +6 -5
- package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +10 -1
- package/dist/components/Select/Select.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/data-table.js +3 -3
- package/dist/form.js +1 -1
- package/dist/index.js +803 -751
- package/dist/pdf.js +2 -2
- package/llms-full.txt +57 -22
- package/llms.txt +5 -4
- package/package.json +2 -2
- package/dist/ContextMenu-BD72S5n6.js +0 -1452
- 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-C2CiPTCK.js";
|
|
6
|
+
import { c as s, i as c, l, n as u, s as d, t as ee, u as te } from "./PasswordInput-dpeKVREo.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
|
|
@@ -849,13 +850,13 @@ Checkbox with label (also indeterminate), works inside Field
|
|
|
849
850
|
- Import: `import { Checkbox } from '@wirecore/wirelayer-react'`
|
|
850
851
|
- Category: Forms
|
|
851
852
|
- Example: https://wirecore.github.io/WireLayer/?path=/story/react_forms-checkbox--playground
|
|
852
|
-
- Also takes: Omit<ComponentProps<'input'>, 'checked' | 'defaultChecked' | 'value' | 'type'>
|
|
853
|
+
- Also takes: Omit< ComponentProps<'input'>, 'checked' | 'defaultChecked' | 'value' | 'type' >
|
|
853
854
|
|
|
854
855
|
| Prop | Type | Description |
|
|
855
856
|
| --- | --- | --- |
|
|
856
|
-
| checked? | `
|
|
857
|
-
| defaultChecked? | `
|
|
858
|
-
| onCheckedChange? | `(checked:
|
|
857
|
+
| checked? | `C` | |
|
|
858
|
+
| defaultChecked? | `C` | |
|
|
859
|
+
| onCheckedChange? | `(checked: C) => void` | |
|
|
859
860
|
| invalid? | `boolean` | |
|
|
860
861
|
| value? | `string` | |
|
|
861
862
|
| children? | `ReactNode` | |
|
|
@@ -1122,6 +1123,9 @@ Text field with suggestions (autocomplete): type to filter, arrow keys to choose
|
|
|
1122
1123
|
| 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
1124
|
| minSearchLength? | `number` | Fewest characters typed before the data source is asked |
|
|
1124
1125
|
| pageSize? | `number` | Options per request of the data source (default 50) |
|
|
1126
|
+
| open? | `boolean` | Whether the list is open (controlled, with onOpenChange) |
|
|
1127
|
+
| onOpenChange? | `(open: boolean) => void` | The list opened or closed |
|
|
1128
|
+
| 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
1129
|
| renderItem? | `(item: T, state: ListItemState) => ReactNode` | Content of an option (instead of icon and label) |
|
|
1126
1130
|
| classes? | `RecipeClasses<typeof comboboxRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
1127
1131
|
|
|
@@ -1289,12 +1293,15 @@ Opens at the pointer on right click, on touch screens with a long press (and wit
|
|
|
1289
1293
|
- Import: `import { ContextMenu } from '@wirecore/wirelayer-react'`
|
|
1290
1294
|
- Category: Overlays
|
|
1291
1295
|
- Example: https://wirecore.github.io/WireLayer/?path=/story/react_overlays-contextmenu--playground
|
|
1292
|
-
- Also takes: MenuItemOptions
|
|
1296
|
+
- Also takes: MenuItemOptions, MenuBehaviorOptions
|
|
1293
1297
|
|
|
1294
1298
|
| Prop | Type | Description |
|
|
1295
1299
|
| --- | --- | --- |
|
|
1296
1300
|
| items | `readonly MenuEntry[]` | Items, groups, separators, checkbox items, radio groups and submenus – as in Menu |
|
|
1297
1301
|
| label? | `string` | Accessible name of the menu – without it the menu is named by the area's content |
|
|
1302
|
+
| open? | `boolean` | Whether the menu is open (controlled, with onOpenChange) |
|
|
1303
|
+
| onOpenChange? | `(open: boolean) => void` | The menu opened or closed – e.g. to pause list shortcuts while it is open |
|
|
1304
|
+
| onBeforeOpen? | `(target: Element) => 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) |
|
|
1298
1305
|
| ref? | `Ref<OverlayHandle>` | open(anchor), close(), toggle(anchor) – e.g. open(event) from your own handler |
|
|
1299
1306
|
| children | `ReactElement` | The area that opens the menu |
|
|
1300
1307
|
| classes? | `RecipeClasses<typeof menuRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
@@ -1727,6 +1734,7 @@ The modal window of a Dialog: title, description, focus trap, Escape closes
|
|
|
1727
1734
|
| --- | --- | --- |
|
|
1728
1735
|
| title | `string` | |
|
|
1729
1736
|
| hideTitle? | `boolean` | The title only for screen readers – it still names the dialog (e.g. a video in a dialog) |
|
|
1737
|
+
| 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
1738
|
| description? | `string` | |
|
|
1731
1739
|
| icon? | `IconComponent` | Icon component in the coloured box at the top |
|
|
1732
1740
|
| status? | `DialogStatus` | |
|
|
@@ -2619,7 +2627,7 @@ Shows a value as a button; activating it swaps in the editor (Escape closes it)
|
|
|
2619
2627
|
|
|
2620
2628
|
### Input
|
|
2621
2629
|
|
|
2622
|
-
Text field with sizes, leading icon, prefix and suffix; works inside Field
|
|
2630
|
+
Text field with sizes, leading icon, prefix and suffix; works inside Field. `ref` reaches the native input (focus, select, setSelectionRange)
|
|
2623
2631
|
|
|
2624
2632
|
- Import: `import { Input } from '@wirecore/wirelayer-react'`
|
|
2625
2633
|
|
|
@@ -2636,6 +2644,7 @@ Text field with sizes, leading icon, prefix and suffix; works inside Field
|
|
|
2636
2644
|
| leadingIcon? | `IconComponent` | Icon component rendered inside the field, before the text |
|
|
2637
2645
|
| prefix? | `string` | Static text segment before the input, e.g. `https://` |
|
|
2638
2646
|
| suffix? | `string` | Static text segment after the input, e.g. `.de` |
|
|
2647
|
+
| mono? | `boolean` | Monospace font of the theme (JetBrains Mono) – for paths, tokens, codes, URLs and keys |
|
|
2639
2648
|
| classes? | `RecipeClasses<typeof inputRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
2640
2649
|
|
|
2641
2650
|
### InputGroup
|
|
@@ -3070,7 +3079,7 @@ The trigger is the slotted element (e.g. a Button or IconButton)
|
|
|
3070
3079
|
- Import: `import { Menu } from '@wirecore/wirelayer-react'`
|
|
3071
3080
|
- Category: Overlays
|
|
3072
3081
|
- Example: https://wirecore.github.io/WireLayer/?path=/story/react_overlays-menu--playground
|
|
3073
|
-
- Also takes: MenuItemOptions
|
|
3082
|
+
- Also takes: MenuItemOptions, MenuBehaviorOptions
|
|
3074
3083
|
|
|
3075
3084
|
| Prop | Type | Description |
|
|
3076
3085
|
| --- | --- | --- |
|
|
@@ -3258,12 +3267,12 @@ The browser's select: its own keyboard and mobile pickers; inside a Field it is
|
|
|
3258
3267
|
- Import: `import { NativeSelect } from '@wirecore/wirelayer-react'`
|
|
3259
3268
|
- Category: Forms
|
|
3260
3269
|
- Example: https://wirecore.github.io/WireLayer/?path=/story/react_forms-nativeselect--playground
|
|
3261
|
-
- Also takes: Omit<ComponentProps<'select'>, 'size' | 'onChange'>
|
|
3270
|
+
- Also takes: Omit< ComponentProps<'select'>, 'size' | 'onChange' >
|
|
3262
3271
|
|
|
3263
3272
|
| Prop | Type | Description |
|
|
3264
3273
|
| --- | --- | --- |
|
|
3265
|
-
| items | `readonly NativeSelectOption[]` | |
|
|
3266
|
-
| onValueChange? | `(value:
|
|
3274
|
+
| items | `readonly NativeSelectOption<V>[]` | |
|
|
3275
|
+
| onValueChange? | `(value: V \| '') => void` | The chosen option's value with its type; the placeholder option gives an empty string |
|
|
3267
3276
|
| placeholder? | `string` | First, empty option, e.g. "Please choose" |
|
|
3268
3277
|
| size? | `Size` | |
|
|
3269
3278
|
| invalid? | `boolean` | |
|
|
@@ -3346,7 +3355,7 @@ A number in the format of the locale ("€1,234.50")
|
|
|
3346
3355
|
|
|
3347
3356
|
### NumberInput
|
|
3348
3357
|
|
|
3349
|
-
Number field with − / + buttons, arrow keys and locale formatting ("1,234.5")
|
|
3358
|
+
Number field with − / + buttons, arrow keys and locale formatting ("1,234.5"); `ref` reaches the native input
|
|
3350
3359
|
|
|
3351
3360
|
- Import: `import { NumberInput } from '@wirecore/wirelayer-react'`
|
|
3352
3361
|
- Category: Forms
|
|
@@ -3556,7 +3565,7 @@ Card with a heading (and actions); toggleable: the heading holds a button with a
|
|
|
3556
3565
|
|
|
3557
3566
|
### PasswordInput
|
|
3558
3567
|
|
|
3559
|
-
Password field with a button that shows/hides the password (named "Show/Hide password")
|
|
3568
|
+
Password field with a button that shows/hides the password (named "Show/Hide password"); `ref` reaches the native input
|
|
3560
3569
|
|
|
3561
3570
|
- Import: `import { PasswordInput } from '@wirecore/wirelayer-react'`
|
|
3562
3571
|
- Category: Forms
|
|
@@ -3576,6 +3585,7 @@ Password field with a button that shows/hides the password (named "Show/Hide pas
|
|
|
3576
3585
|
| loading? | `boolean` | Shows a spinner in the field and marks it busy (aria-busy) |
|
|
3577
3586
|
| clearable? | `boolean` | Shows a button that empties the field while it has a value |
|
|
3578
3587
|
| clearLabel? | `string` | Accessible name of the clear button (default "Clear input") |
|
|
3588
|
+
| mono? | `boolean` | Monospace font of the theme (JetBrains Mono) – for tokens, passphrases and keys |
|
|
3579
3589
|
| classes? | `RecipeClasses<typeof passwordInputRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
3580
3590
|
|
|
3581
3591
|
### PdfViewer
|
|
@@ -3825,6 +3835,10 @@ Ark names the progressbar after its value; the label is the name, the value its
|
|
|
3825
3835
|
| striped? | `boolean` | Diagonal stripes on the filled part |
|
|
3826
3836
|
| animated? | `boolean` | Moving stripes (only without reduced motion) |
|
|
3827
3837
|
| orientation? | `'horizontal' \| 'vertical'` | Vertical bar (fills the height of its parent) |
|
|
3838
|
+
| size? | `'xs' \| 'md'` | `xs`: a thin bar with small text, e.g. in a list or a status bar |
|
|
3839
|
+
| status? | `'info' \| 'success' \| 'warn' \| 'danger'` | Colour of the filled part by its state, e.g. `danger` for a failed transfer |
|
|
3840
|
+
| hideLabel? | `boolean` | The label only for screen readers – it still names the progress bar |
|
|
3841
|
+
| 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
3842
|
| classes? | `RecipeClasses<typeof progressRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
3829
3843
|
|
|
3830
3844
|
### ProgressCircle
|
|
@@ -3939,13 +3953,13 @@ One choice out of several (role="radiogroup", arrow keys), horizontal or vertica
|
|
|
3939
3953
|
- Import: `import { RadioGroup } from '@wirecore/wirelayer-react'`
|
|
3940
3954
|
- Category: Forms
|
|
3941
3955
|
- Example: https://wirecore.github.io/WireLayer/?path=/story/react_forms-radiogroup--playground
|
|
3942
|
-
- Also takes: Omit<ComponentProps<'div'>, 'defaultValue' | 'dir'>
|
|
3956
|
+
- Also takes: Omit< ComponentProps<'div'>, 'defaultValue' | 'dir' >
|
|
3943
3957
|
|
|
3944
3958
|
| Prop | Type | Description |
|
|
3945
3959
|
| --- | --- | --- |
|
|
3946
|
-
| value? | `
|
|
3947
|
-
| defaultValue? | `
|
|
3948
|
-
| onValueChange? | `(value:
|
|
3960
|
+
| value? | `V \| null` | Selected value; numbers when the items have number values |
|
|
3961
|
+
| defaultValue? | `V \| null` | |
|
|
3962
|
+
| onValueChange? | `(value: V \| null) => void` | |
|
|
3949
3963
|
| label? | `string` | Visible group label (otherwise pass aria-label – or place the group in a Field with a label) |
|
|
3950
3964
|
| orientation? | `RadioGroupOrientation` | |
|
|
3951
3965
|
| columns? | `number` | Cards in a grid with this many columns (one column on small screens) – for RadioCard |
|
|
@@ -3966,7 +3980,7 @@ One option of a RadioGroup
|
|
|
3966
3980
|
|
|
3967
3981
|
| Prop | Type | Description |
|
|
3968
3982
|
| --- | --- | --- |
|
|
3969
|
-
| value | `string` |
|
|
3983
|
+
| value | `string \| number` | Value of the option – a number makes the group's value a number |
|
|
3970
3984
|
| disabled? | `boolean` | |
|
|
3971
3985
|
| classes? | `RecipeClasses<typeof radioGroupRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
3972
3986
|
|
|
@@ -4243,13 +4257,13 @@ Few exclusive options as a segmented switch (radio group)
|
|
|
4243
4257
|
- Import: `import { SegmentedControl } from '@wirecore/wirelayer-react'`
|
|
4244
4258
|
- Category: Buttons
|
|
4245
4259
|
- Example: https://wirecore.github.io/WireLayer/?path=/story/react_buttons-segmentedcontrol--playground
|
|
4246
|
-
- Also takes: Omit<ComponentProps<'div'>, 'defaultValue' | 'dir'>
|
|
4260
|
+
- Also takes: Omit< ComponentProps<'div'>, 'defaultValue' | 'dir' >
|
|
4247
4261
|
|
|
4248
4262
|
| Prop | Type | Description |
|
|
4249
4263
|
| --- | --- | --- |
|
|
4250
|
-
| value? | `
|
|
4251
|
-
| defaultValue? | `
|
|
4252
|
-
| onValueChange? | `(value:
|
|
4264
|
+
| value? | `V \| null` | |
|
|
4265
|
+
| defaultValue? | `V` | |
|
|
4266
|
+
| onValueChange? | `(value: V \| null) => void` | |
|
|
4253
4267
|
| label? | `string` | Accessible name of the group (visually hidden) – inside a Field with a label, the Field's label names it |
|
|
4254
4268
|
| size? | `SegmentedControlSize` | |
|
|
4255
4269
|
| disabled? | `boolean` | |
|
|
@@ -4311,6 +4325,9 @@ Dropdown list for one option: arrow keys, typeahead, Escape; native select hidde
|
|
|
4311
4325
|
| minSearchLength? | `number` | Fewest characters the search needs before the data source is asked |
|
|
4312
4326
|
| pageSize? | `number` | Options per request of the data source (default 50) |
|
|
4313
4327
|
| standalone? | `boolean` | Not labelled by a surrounding Field – for a second control inside it (e.g. PhoneInput's country) |
|
|
4328
|
+
| open? | `boolean` | Whether the list is open (controlled, with onOpenChange) |
|
|
4329
|
+
| onOpenChange? | `(open: boolean) => void` | The list opened or closed |
|
|
4330
|
+
| 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
4331
|
| renderItem? | `(item: T, state: ListItemState) => ReactNode` | Content of an option (instead of icon and label) |
|
|
4315
4332
|
| renderValue? | `(item: T) => ReactNode` | Content of the field for the selected item |
|
|
4316
4333
|
| classes? | `RecipeClasses<typeof selectRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
|
|
@@ -4932,7 +4949,7 @@ Free entries: Enter or "," adds, Backspace on the empty field selects the last e
|
|
|
4932
4949
|
|
|
4933
4950
|
### Textarea
|
|
4934
4951
|
|
|
4935
|
-
Multi-line text field, optionally growing with the text (autoResize) and with a counter; works inside Field
|
|
4952
|
+
Multi-line text field, optionally growing with the text (autoResize) and with a counter; works inside Field. `ref` reaches the native textarea
|
|
4936
4953
|
|
|
4937
4954
|
- Import: `import { Textarea } from '@wirecore/wirelayer-react'`
|
|
4938
4955
|
- Category: Forms
|
|
@@ -4951,6 +4968,7 @@ Multi-line text field, optionally growing with the text (autoResize) and with a
|
|
|
4951
4968
|
| loading? | `boolean` | Shows a spinner in the corner and marks the field busy (aria-busy) |
|
|
4952
4969
|
| clearable? | `boolean` | Shows a button that empties the field while it has text |
|
|
4953
4970
|
| clearLabel? | `string` | Accessible name of the clear button (default "Clear input") |
|
|
4971
|
+
| mono? | `boolean` | Monospace font of the theme (JetBrains Mono) – for keys, codes and logs |
|
|
4954
4972
|
| classes? | `RecipeClasses<typeof textareaRecipe> & RecipeClasses<typeof textareaPartsRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipes textarea and textareaParts) |
|
|
4955
4973
|
|
|
4956
4974
|
### TimeGrid
|
|
@@ -6345,6 +6363,23 @@ as `pdfjs-dist` (Apache-2.0), Chart.js, Tiptap and Shiki are installed by the ap
|
|
|
6345
6363
|
- **Brand colours:** `checkTheme` lists the pairs below WCAG AA, `suggestThemeFixes` the nearest colours (and `on-*`
|
|
6346
6364
|
colours) that meet them – an orange `primary` with white text, common in PrimeVue themes, does not.
|
|
6347
6365
|
|
|
6366
|
+
### Desktop apps (dense UI, many dialogs)
|
|
6367
|
+
|
|
6368
|
+
- **Focus from code:** the text fields expose `focus()`, `select()`, `setSelectionRange()` and the native input
|
|
6369
|
+
(`element`) through a template ref – no `$el.querySelector('input')`. In a dialog, mark the first field with
|
|
6370
|
+
`data-autofocus`: a `focus()` in `onMounted` is overridden by the dialog's focus trap.
|
|
6371
|
+
- **Window shortcuts in dialogs:** Enter/Escape listeners on `window` also get the keys of an open list. `Select` and
|
|
6372
|
+
`Combobox` take `stop-key-propagation` and report `v-model:open`; `ContextMenu` reports `v-model:open` and the
|
|
6373
|
+
right-clicked element (`@before-open`).
|
|
6374
|
+
- **Menus at a point:** `close-on-scroll`, `close-on-resize`, `close-on-blur`, and `highlight-first` so Enter takes the
|
|
6375
|
+
first item.
|
|
6376
|
+
- **Closable tabs** are built in: `TabsTrigger closable @close` – the close button is not nested in the tab, Delete
|
|
6377
|
+
closes the focused tab and the focus moves to its neighbour.
|
|
6378
|
+
- **Typed values:** `RadioGroup`, `SegmentedControl` and `NativeSelect` keep the type of the bound value (unions,
|
|
6379
|
+
numbers); `Checkbox` with a boolean model gives booleans.
|
|
6380
|
+
- **Compact parts:** `Progress size="xs"` with `hide-label`, `bar-text` and `status`; `Alert #actions`; `mono` on text
|
|
6381
|
+
fields; `DialogContent title-position="header"` puts the title next to the close button.
|
|
6382
|
+
|
|
6348
6383
|
### Custom theme
|
|
6349
6384
|
|
|
6350
6385
|
A theme overrides any colors per mode. `themeToCss` generates the CSS for it,
|
package/llms.txt
CHANGED
|
@@ -169,8 +169,8 @@ Full API (props, events, slots, examples) in llms-full.txt next to this file. MC
|
|
|
169
169
|
- [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
170
|
- [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
171
|
- [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`)
|
|
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"); `ref` reaches the native input (`@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"); `ref` reaches the native input (`@wirecore/wirelayer-react`)
|
|
174
174
|
- [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
175
|
- [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
176
|
- [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 +185,7 @@ Full API (props, events, slots, examples) in llms-full.txt next to this file. MC
|
|
|
185
185
|
- [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
186
|
- [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
187
|
- [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`)
|
|
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. `ref` reaches the native textarea (`@wirecore/wirelayer-react`)
|
|
189
189
|
- [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
190
|
- [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
191
|
- [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 +274,7 @@ Full API (props, events, slots, examples) in llms-full.txt next to this file. MC
|
|
|
274
274
|
## Other
|
|
275
275
|
|
|
276
276
|
- 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`)
|
|
277
|
+
- 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
278
|
- KeyValueEditor: Key-value pairs (FormList preset): two inputs per row, duplicate keys marked (`@wirecore/wirelayer-react/form`)
|
|
279
279
|
- LocaleProvider: Renders nothing itself; Ark's provider passes locale and direction (keyboard order) on to Ark (`@wirecore/wirelayer-react`)
|
|
280
280
|
|
|
@@ -310,5 +310,6 @@ Full API (props, events, slots, examples) in llms-full.txt next to this file. MC
|
|
|
310
310
|
- License
|
|
311
311
|
- Components and APIs side by side
|
|
312
312
|
- Pitfalls
|
|
313
|
+
- Desktop apps (dense UI, many dialogs)
|
|
313
314
|
- Custom theme
|
|
314
315
|
- 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.8.0",
|
|
4
4
|
"description": "WireLayer components for React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"dependencies": {
|
|
167
167
|
"@ark-ui/react": "^5.39.3",
|
|
168
168
|
"@internationalized/date": "^3.12.4",
|
|
169
|
-
"@wirecore/wirelayer-recipes": "^0.
|
|
169
|
+
"@wirecore/wirelayer-recipes": "^0.7.0",
|
|
170
170
|
"@wirecore/wirelayer-tokens": "^0.4.0",
|
|
171
171
|
"lucide-react": "^1.59.0"
|
|
172
172
|
},
|