@webority/ui-react 0.150.0 → 0.153.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.
Files changed (49) hide show
  1. package/dist/canvas-kit/kit.js +200 -200
  2. package/dist/canvas-kit/manifest.json +624 -31
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/dist/components/AppAlert.js +1 -1
  5. package/dist/components/AppAsyncBlock.js +1 -1
  6. package/dist/components/AppBreadcrumbs.js +1 -1
  7. package/dist/components/AppButton.js +1 -1
  8. package/dist/components/AppCard.js +1 -1
  9. package/dist/components/AppCarousel.js +1 -1
  10. package/dist/components/AppCompareTable.js +1 -1
  11. package/dist/components/AppDashboardCell.js +1 -1
  12. package/dist/components/AppDropdown.js +1 -1
  13. package/dist/components/AppFileAttachment.js +1 -1
  14. package/dist/components/AppFilePicker.js +1 -1
  15. package/dist/components/AppFilterBar.js +1 -1
  16. package/dist/components/AppForm.js +1 -0
  17. package/dist/components/AppInlineEdit.js +1 -1
  18. package/dist/components/AppInput.js +1 -1
  19. package/dist/components/AppKanban.js +1 -1
  20. package/dist/components/AppLink.js +1 -1
  21. package/dist/components/AppModal.js +1 -1
  22. package/dist/components/AppPopover.js +1 -1
  23. package/dist/components/AppSearch.js +1 -1
  24. package/dist/components/AppSectionLeadCapture.js +1 -1
  25. package/dist/components/AppSelect.js +1 -1
  26. package/dist/components/AppShell.js +1 -1
  27. package/dist/components/AppTextarea.js +1 -1
  28. package/dist/components/AppThemeToggle.js +1 -1
  29. package/dist/components/AppTooltip.js +1 -1
  30. package/dist/components/AppWizard.js +1 -1
  31. package/dist/guidance.json +160 -16
  32. package/dist/lib/useFileDrop.js +1 -1
  33. package/dist/types/components/AppAsyncBlock.d.ts +2 -2
  34. package/dist/types/components/AppBreadcrumbs.d.ts +11 -0
  35. package/dist/types/components/AppButton.d.ts +3 -3
  36. package/dist/types/components/AppCompareTable.d.ts +7 -0
  37. package/dist/types/components/AppDashboardCell.d.ts +9 -5
  38. package/dist/types/components/AppDashboardGrid.d.ts +6 -5
  39. package/dist/types/components/AppDropdown.d.ts +19 -0
  40. package/dist/types/components/AppForm.d.ts +23 -0
  41. package/dist/types/components/AppKanban.d.ts +5 -0
  42. package/dist/types/components/AppLink.d.ts +2 -2
  43. package/dist/types/components/AppSearch.d.ts +1 -1
  44. package/dist/types/components/AppSelect.d.ts +7 -2
  45. package/dist/types/components/AppShell.d.ts +6 -0
  46. package/dist/types/index.d.ts +3 -0
  47. package/dist/ui-react.js +1 -1
  48. package/dist/web-core/dist/api/idempotencyKey.js +1 -0
  49. package/package.json +10 -9
@@ -2,7 +2,7 @@
2
2
  "kind": "WeborityWeb",
3
3
  "library": {
4
4
  "name": "@webority/ui-react",
5
- "version": "0.150.0"
5
+ "version": "0.153.0"
6
6
  },
7
7
  "rendererProtocolVersion": 13,
8
8
  "platform": "Web",
@@ -820,7 +820,7 @@
820
820
  "name": "state",
821
821
  "type": "object",
822
822
  "required": true,
823
- "description": "What the screen is showing: one DataState from useDataState, with status loading, error, empty or data."
823
+ "description": "What the screen is showing: one DataState from useDataState, with status idle, loading, error, empty or data. Idle is a skipped query and draws nothing."
824
824
  }
825
825
  ],
826
826
  "itemsTakeAction": [],
@@ -928,7 +928,7 @@
928
928
  }
929
929
  ],
930
930
  "a11y": [
931
- "Each state is marked with a data-state attribute on the wrapper: loading, error, empty or data.",
931
+ "Each drawn state is marked with a data-state attribute on the wrapper: loading, error, empty or data. Idle draws no wrapper.",
932
932
  "With no skeleton, the loading state is an indeterminate progress bar labelled Loading.",
933
933
  "The error state is an empty state with a Retry button that calls the state's retry.",
934
934
  "The component sets no aria attributes of its own."
@@ -1694,6 +1694,19 @@
1694
1694
  ],
1695
1695
  "required": true,
1696
1696
  "description": "The trail, root first, current page last. An item links when it has `href` or `to`, unless it is the current page."
1697
+ },
1698
+ {
1699
+ "name": "maxItems",
1700
+ "type": "number",
1701
+ "required": false,
1702
+ "description": "Below md, show only the last this many crumbs, with an ellipsis menu holding the rest. A whole number of 1 or more. Unset shows the whole trail."
1703
+ },
1704
+ {
1705
+ "name": "moreLabel",
1706
+ "type": "string",
1707
+ "required": false,
1708
+ "description": "The accessible name of the ellipsis button.",
1709
+ "default": "Show hidden levels"
1697
1710
  }
1698
1711
  ],
1699
1712
  "itemsTakeAction": [
@@ -1777,7 +1790,8 @@
1777
1790
  ],
1778
1791
  "a11y": [
1779
1792
  "The last item is the current page: it is text with aria-current page, never a link, unless the trail sits in a bar page header, where every crumb is a parent link.",
1780
- "An item with no target renders as a plain span, so it is never announced as a button with no link."
1793
+ "An item with no target renders as a plain span, so it is never announced as a button with no link.",
1794
+ "With maxItems, the hidden crumbs sit in an ellipsis menu below md, reachable by keyboard like any dropdown."
1781
1795
  ]
1782
1796
  }
1783
1797
  },
@@ -1892,10 +1906,11 @@
1892
1906
  "enum": [
1893
1907
  "lg",
1894
1908
  "md",
1895
- "sm"
1909
+ "sm",
1910
+ "xl"
1896
1911
  ],
1897
1912
  "required": false,
1898
- "description": "Control size.",
1913
+ "description": "Control size. xl is a marketing call to action: 55px tall with larger text, and 45px below 992px.",
1899
1914
  "default": "md"
1900
1915
  },
1901
1916
  {
@@ -5093,11 +5108,48 @@
5093
5108
  "note": "One Columns button in the toolbar actions, beside search and export.",
5094
5109
  "example": [
5095
5110
  {
5096
- "component": "AppTableToolbar",
5111
+ "component": "div",
5097
5112
  "props": {
5098
- "actions": {
5099
- "component": "AppColumnMenu",
5113
+ "className": "w-100"
5114
+ },
5115
+ "children": [
5116
+ {
5117
+ "component": "AppTableToolbar",
5118
+ "props": {
5119
+ "actions": {
5120
+ "component": "AppColumnMenu",
5121
+ "props": {
5122
+ "columns": [
5123
+ {
5124
+ "key": "name",
5125
+ "label": "Building"
5126
+ },
5127
+ {
5128
+ "key": "owner",
5129
+ "label": "Owner",
5130
+ "hideable": true
5131
+ },
5132
+ {
5133
+ "key": "floors",
5134
+ "label": "Floors",
5135
+ "hideable": true
5136
+ },
5137
+ {
5138
+ "key": "status",
5139
+ "label": "Status"
5140
+ }
5141
+ ],
5142
+ "hiddenColumns": []
5143
+ }
5144
+ }
5145
+ }
5146
+ },
5147
+ {
5148
+ "component": "AppDataTable",
5100
5149
  "props": {
5150
+ "id": "wui-column-menu-usage",
5151
+ "ariaLabel": "Buildings",
5152
+ "density": "compact",
5101
5153
  "columns": [
5102
5154
  {
5103
5155
  "key": "name",
@@ -5118,10 +5170,32 @@
5118
5170
  "label": "Status"
5119
5171
  }
5120
5172
  ],
5121
- "hiddenColumns": []
5173
+ "rows": [
5174
+ {
5175
+ "id": 1,
5176
+ "name": "Corporate Office",
5177
+ "owner": "Asha Rao",
5178
+ "floors": 12,
5179
+ "status": "Draft"
5180
+ },
5181
+ {
5182
+ "id": 2,
5183
+ "name": "Warehouse Annexe",
5184
+ "owner": "Vikram Shah",
5185
+ "floors": 3,
5186
+ "status": "Compliant"
5187
+ },
5188
+ {
5189
+ "id": 3,
5190
+ "name": "Server Room",
5191
+ "owner": "Asha Rao",
5192
+ "floors": 1,
5193
+ "status": "Draft"
5194
+ }
5195
+ ]
5122
5196
  }
5123
5197
  }
5124
- }
5198
+ ]
5125
5199
  }
5126
5200
  ]
5127
5201
  }
@@ -6141,6 +6215,17 @@
6141
6215
  "description": "The header row stays on screen while a long table scrolls past it.",
6142
6216
  "default": false
6143
6217
  },
6218
+ {
6219
+ "name": "variant",
6220
+ "type": "enum",
6221
+ "enum": [
6222
+ "boxed",
6223
+ "plain"
6224
+ ],
6225
+ "required": false,
6226
+ "description": "plain draws a figure table: ruled rows with no outer border, rounded corners or shaded first column, and body-size text.",
6227
+ "default": "boxed"
6228
+ },
6144
6229
  {
6145
6230
  "name": "warningLabel",
6146
6231
  "type": "string",
@@ -6162,6 +6247,7 @@
6162
6247
  "usage": {
6163
6248
  "when": [
6164
6249
  "A reader is choosing between two to four options on the same criteria.",
6250
+ "A page shows figures in ruled rows with no frame, such as rates and charges (variant plain).",
6165
6251
  "The rows are authored capabilities, not records from a query.",
6166
6252
  "Seeing the options side by side is what makes the choice obvious."
6167
6253
  ],
@@ -6683,6 +6769,96 @@
6683
6769
  {
6684
6770
  "name": "items",
6685
6771
  "type": "array",
6772
+ "itemFields": [
6773
+ {
6774
+ "name": "checked",
6775
+ "type": "boolean",
6776
+ "required": false,
6777
+ "description": "Shows a check mark beside the label, for a selection."
6778
+ },
6779
+ {
6780
+ "name": "disabled",
6781
+ "type": "boolean",
6782
+ "required": false,
6783
+ "description": "The row is listed but skipped by the arrow keys and cannot be chosen."
6784
+ },
6785
+ {
6786
+ "name": "divider",
6787
+ "type": "boolean",
6788
+ "required": false,
6789
+ "description": "Draws a separator; the row then needs only its key."
6790
+ },
6791
+ {
6792
+ "name": "hint",
6793
+ "type": "string",
6794
+ "required": false,
6795
+ "description": "Muted text after the label, such as a keyboard shortcut."
6796
+ },
6797
+ {
6798
+ "name": "icon",
6799
+ "type": "icon",
6800
+ "required": false,
6801
+ "description": "A library icon name or a node shown before the label."
6802
+ },
6803
+ {
6804
+ "name": "image",
6805
+ "type": "string",
6806
+ "required": false,
6807
+ "description": "A picture URL shown instead of the icon."
6808
+ },
6809
+ {
6810
+ "name": "items",
6811
+ "type": "array",
6812
+ "required": false,
6813
+ "description": "Makes the row open a further side menu, in the same item model."
6814
+ },
6815
+ {
6816
+ "name": "key",
6817
+ "type": "string",
6818
+ "required": true,
6819
+ "description": "A unique id for the row."
6820
+ },
6821
+ {
6822
+ "name": "label",
6823
+ "type": "string",
6824
+ "required": false,
6825
+ "description": "The row's text."
6826
+ },
6827
+ {
6828
+ "name": "searchPlaceholder",
6829
+ "type": "string",
6830
+ "required": false,
6831
+ "description": "The placeholder of the filter field on a searchable side menu.",
6832
+ "default": "Search"
6833
+ },
6834
+ {
6835
+ "name": "searchable",
6836
+ "type": "boolean",
6837
+ "required": false,
6838
+ "description": "On a row with items, puts a filter field at the top of its side menu."
6839
+ },
6840
+ {
6841
+ "name": "shortcut",
6842
+ "type": "string",
6843
+ "required": false,
6844
+ "description": "The key that runs the row, drawn as a key chip at the end of the row."
6845
+ },
6846
+ {
6847
+ "name": "to",
6848
+ "type": "string",
6849
+ "required": false,
6850
+ "description": "Makes the row a link to this address."
6851
+ },
6852
+ {
6853
+ "name": "tone",
6854
+ "type": "enum",
6855
+ "enum": [
6856
+ "danger"
6857
+ ],
6858
+ "required": false,
6859
+ "description": "tone=\"danger\" styles the row as a destructive action."
6860
+ }
6861
+ ],
6686
6862
  "required": false,
6687
6863
  "description": "Makes the row open a side menu of these rows, in the same item model."
6688
6864
  },
@@ -6994,16 +7170,16 @@
6994
7170
  "name": "span",
6995
7171
  "type": "enum",
6996
7172
  "enum": [
6997
- 3,
6998
- 4,
6999
- 6,
7000
- 8,
7001
- 12,
7002
- "fifth"
7173
+ "Fifth",
7174
+ "Full",
7175
+ "Half",
7176
+ "Quarter",
7177
+ "Third",
7178
+ "TwoThirds"
7003
7179
  ],
7004
7180
  "required": false,
7005
- "description": "How many of the twelve columns the cell spans, or fifth for five to a row on wide screens.",
7006
- "default": 12
7181
+ "description": "The share of the row the cell takes, by name: Quarter, Third, Half or TwoThirds of the twelve columns, Full (the default), or Fifth for five to a row on wide screens.",
7182
+ "default": "Full"
7007
7183
  }
7008
7184
  ],
7009
7185
  "itemsTakeAction": [],
@@ -7016,7 +7192,7 @@
7016
7192
  ],
7017
7193
  "whenNot": [
7018
7194
  {
7019
- "text": "A layout that needs other widths than 3, 4, 6, 8 or 12.",
7195
+ "text": "A layout that needs other widths than Quarter, Third, Half, TwoThirds or Full.",
7020
7196
  "instead": "Bootstrap's Row and Col"
7021
7197
  }
7022
7198
  ],
@@ -7055,7 +7231,7 @@
7055
7231
  "instead": "AppFormSection"
7056
7232
  },
7057
7233
  {
7058
- "text": "A layout that needs other widths than 3, 4, 6, 8 or 12.",
7234
+ "text": "A layout that needs other widths than a quarter, a third, a half, two thirds, a fifth or the full row.",
7059
7235
  "instead": "Bootstrap's Row and Col"
7060
7236
  }
7061
7237
  ],
@@ -7242,6 +7418,12 @@
7242
7418
  "required": false,
7243
7419
  "description": "The key, as rowKey returns it, of a row drawn in its hover look without a pointer, for previews and design tools. The row carries the theme class wui-force-hover and otherwise looks and behaves as any other row."
7244
7420
  },
7421
+ {
7422
+ "name": "id",
7423
+ "type": "string",
7424
+ "required": false,
7425
+ "description": "DOM id on the table's outer box; a column menu's for names it."
7426
+ },
7245
7427
  {
7246
7428
  "name": "loading",
7247
7429
  "type": "boolean",
@@ -7264,6 +7446,54 @@
7264
7446
  {
7265
7447
  "name": "pagination",
7266
7448
  "type": "object",
7449
+ "fields": [
7450
+ {
7451
+ "name": "mode",
7452
+ "type": "enum",
7453
+ "enum": [
7454
+ "numbered",
7455
+ "prev-next"
7456
+ ],
7457
+ "required": false,
7458
+ "description": "numbered shows page buttons; prev-next shows only the previous and next buttons."
7459
+ },
7460
+ {
7461
+ "name": "page",
7462
+ "type": "number",
7463
+ "required": true,
7464
+ "description": "The current page, counted from 1."
7465
+ },
7466
+ {
7467
+ "name": "pageSize",
7468
+ "type": "number",
7469
+ "required": true,
7470
+ "description": "The rows shown on one page."
7471
+ },
7472
+ {
7473
+ "name": "pageSizes",
7474
+ "type": "array",
7475
+ "required": false,
7476
+ "description": "The page sizes the size menu offers."
7477
+ },
7478
+ {
7479
+ "name": "summary",
7480
+ "type": "boolean",
7481
+ "required": false,
7482
+ "description": "Draws \"Showing x to y of z\" at the start of the footer."
7483
+ },
7484
+ {
7485
+ "name": "total",
7486
+ "type": "number",
7487
+ "required": true,
7488
+ "description": "The number of rows across every page."
7489
+ },
7490
+ {
7491
+ "name": "totalPages",
7492
+ "type": "number",
7493
+ "required": false,
7494
+ "description": "The number of pages; wins over the count worked out from total."
7495
+ }
7496
+ ],
7267
7497
  "required": false,
7268
7498
  "description": "The footer's state, usually straight from usePagination. The footer shows once total is above the smallest page size and stays in place while loading."
7269
7499
  },
@@ -8705,6 +8935,12 @@
8705
8935
  "name": "items",
8706
8936
  "type": "array",
8707
8937
  "itemFields": [
8938
+ {
8939
+ "name": "description",
8940
+ "type": "string",
8941
+ "required": false,
8942
+ "description": "A muted second line under the label, for a short hint about what the row does."
8943
+ },
8708
8944
  {
8709
8945
  "name": "disabled",
8710
8946
  "type": "boolean",
@@ -8741,6 +8977,12 @@
8741
8977
  "required": false,
8742
8978
  "description": "The breakpoint from which the row is hidden."
8743
8979
  },
8980
+ {
8981
+ "name": "href",
8982
+ "type": "string",
8983
+ "required": false,
8984
+ "description": "A plain link the item opens, never routed through linkComponent (an external page, a download). An item takes to or href, not both."
8985
+ },
8744
8986
  {
8745
8987
  "name": "icon",
8746
8988
  "type": "icon",
@@ -8816,12 +9058,32 @@
8816
9058
  "required": false,
8817
9059
  "description": "A fixed menu width (15, 20 or 25rem; long rows wrap instead of widening the menu), or fit: no minimum, the menu is as wide as its widest row. Unset, the menu is at least 12rem wide."
8818
9060
  },
9061
+ {
9062
+ "name": "noMatchText",
9063
+ "type": "string",
9064
+ "required": false,
9065
+ "description": "Text shown when no row matches the search. Needs searchable.",
9066
+ "default": "No matches."
9067
+ },
8819
9068
  {
8820
9069
  "name": "open",
8821
9070
  "type": "boolean",
8822
9071
  "required": false,
8823
9072
  "description": "Controlled open state. Leave it out and the menu manages its own; set it and the caller owns it, updating it from onOpenChange."
8824
9073
  },
9074
+ {
9075
+ "name": "searchPlaceholder",
9076
+ "type": "string",
9077
+ "required": false,
9078
+ "description": "Placeholder and accessible name of the search box. Needs searchable.",
9079
+ "default": "Search"
9080
+ },
9081
+ {
9082
+ "name": "searchable",
9083
+ "type": "boolean",
9084
+ "required": false,
9085
+ "description": "Puts a search box above the rows that filters them by label as the user types, for a long menu. It filters items, so it cannot be combined with children."
9086
+ },
8825
9087
  {
8826
9088
  "name": "toggleClassName",
8827
9089
  "type": "string",
@@ -8853,7 +9115,8 @@
8853
9115
  "when": [
8854
9116
  "A row or card has several secondary actions that would clutter the layout as buttons.",
8855
9117
  "You want a consistent “⋯” affordance for overflow actions across every row.",
8856
- "The actions are related and belong under one grouped trigger."
9118
+ "The actions are related and belong under one grouped trigger.",
9119
+ "A menu lists more than about ten rows and the user knows the name of the one they want."
8857
9120
  ],
8858
9121
  "whenNot": [
8859
9122
  {
@@ -10734,6 +10997,46 @@
10734
10997
  ]
10735
10998
  }
10736
10999
  },
11000
+ {
11001
+ "name": "AppForm",
11002
+ "marker": "AppForm",
11003
+ "acceptsChildren": true,
11004
+ "props": [
11005
+ {
11006
+ "name": "className",
11007
+ "type": "string",
11008
+ "required": false,
11009
+ "description": "Extra class names added to the form element.",
11010
+ "default": ""
11011
+ }
11012
+ ],
11013
+ "itemsTakeAction": [],
11014
+ "takesAction": [],
11015
+ "source": "@webority/ui-react",
11016
+ "usage": {
11017
+ "when": [
11018
+ "A form submits to the server and must not send twice: a double click or Enter while a save is in flight is dropped.",
11019
+ "A submit may be retried after a failure and the server must recognise the retry as the same request.",
11020
+ "Child buttons must show a pending state while the form submits: AppButton inside AppForm reads it."
11021
+ ],
11022
+ "whenNot": [
11023
+ {
11024
+ "text": "The form is a dialog or modal",
11025
+ "instead": "AppModal or AppConfirmDialog own the footer logic"
11026
+ },
11027
+ {
11028
+ "text": "The control is a single button with no form around it",
11029
+ "instead": "use AppButton with its own onClick"
11030
+ }
11031
+ ],
11032
+ "do": [],
11033
+ "dont": [],
11034
+ "a11y": [
11035
+ "Renders a plain form element. While a submit is pending it sets aria-busy=\"true\" so assistive technology knows the form is updating.",
11036
+ "Extra attributes such as aria-label and id pass through to the form element."
11037
+ ]
11038
+ }
11039
+ },
10737
11040
  {
10738
11041
  "name": "AppFormActions",
10739
11042
  "marker": "AppFormActions",
@@ -12791,6 +13094,13 @@
12791
13094
  "required": false,
12792
13095
  "description": "The text of the phone hint that swipeHint shows, for other languages.",
12793
13096
  "default": "Swipe sideways or tap a column"
13097
+ },
13098
+ {
13099
+ "name": "truncateHeads",
13100
+ "type": "boolean",
13101
+ "required": false,
13102
+ "description": "Keeps each stage name on one line, ends a long one in an ellipsis and shows the full name on hover.",
13103
+ "default": false
12794
13104
  }
12795
13105
  ],
12796
13106
  "itemsTakeAction": [
@@ -13487,6 +13797,7 @@
13487
13797
  "highlight",
13488
13798
  "icon",
13489
13799
  "none",
13800
+ "rotate",
13490
13801
  "shine",
13491
13802
  "slide",
13492
13803
  "static",
@@ -13494,7 +13805,7 @@
13494
13805
  "underline-center"
13495
13806
  ],
13496
13807
  "required": false,
13497
- "description": "The hover treatment: underline slides a line in from the left, underline-center grows it from the middle, static is an always-visible underline with no motion, slide nudges the label and icons right, icon slides a trailing icon in (an arrow when none is given), highlight wipes a tinted background across, bracket slides brackets in around the label, fade shifts colour only, grow opens up the letter spacing, glow adds a soft glow, shine sweeps a light shimmer across the label, and none is a plain coloured link.",
13808
+ "description": "The hover treatment: underline slides a line in from the left, underline-center grows it from the middle, static is an always-visible underline with no motion, slide nudges the label and icons right, icon slides a trailing icon in (an arrow when none is given), rotate turns the trailing icon a quarter-eighth turn (45 degrees) on hover and focus (an up-right arrow when none is given), highlight wipes a tinted background across, bracket slides brackets in around the label, fade shifts colour only, grow opens up the letter spacing, glow adds a soft glow, shine sweeps a light shimmer across the label, and none is a plain coloured link.",
13498
13809
  "default": "underline"
13499
13810
  },
13500
13811
  {
@@ -14791,7 +15102,8 @@
14791
15102
  "when": [
14792
15103
  "A portal's list of things that happened to the person: approvals, comments, runs finished.",
14793
15104
  "Anything that links to a record.",
14794
- "A row needs its own controls, such as Accept and Decline buttons: pass renderItem(item), which returns the row's content in place of the icon, title, text and time. The dot, the Unread prefix and the read handling stay."
15105
+ "A row needs its own controls, such as Accept and Decline buttons: pass renderItem(item), which returns the row's content in place of the icon, title, text and time. The dot, the Unread prefix and the read handling stay.",
15106
+ "A product brands the unread count: set --wui-notification-count-bg (the fill, default the strong danger colour) and --wui-notification-count-fg (the text, default white) on .wui-notification-center or an ancestor. No prop or class override is needed."
14795
15107
  ],
14796
15108
  "whenNot": [
14797
15109
  {
@@ -20684,6 +20996,13 @@
20684
20996
  "required": false,
20685
20997
  "description": "Shows the list open, for a design preview or a controlled caller."
20686
20998
  },
20999
+ {
21000
+ "name": "openOnHover",
21001
+ "type": "boolean",
21002
+ "required": false,
21003
+ "description": "Open the list when the mouse rests on the control, and close it when the mouse leaves the control and the list. Mouse only: touch and pen keep tap to open. A select with a search box (search mode, or searchable) and tag mode ignore it. A click on the control right after it opened on hover keeps the list open.",
21004
+ "default": false
21005
+ },
20687
21006
  {
20688
21007
  "name": "optional",
20689
21008
  "type": "boolean",
@@ -20836,13 +21155,13 @@
20836
21155
  "name": "searchPlaceholder",
20837
21156
  "type": "string",
20838
21157
  "required": false,
20839
- "description": "The placeholder of the search box in the menu. Left unset, the element's default applies: Search… in every mode except country, which shows Search countries…"
21158
+ "description": "The placeholder of the search box in the menu. Left unset, it is Search and the field's label (Search Client…) in single, multiple and search modes, Search… without a label, and Search countries… in country mode."
20840
21159
  },
20841
21160
  {
20842
21161
  "name": "searchable",
20843
21162
  "type": "boolean",
20844
21163
  "required": false,
20845
- "description": "Show the search box in the menu. Multiple and country modes are searchable by default; passing false turns it off. Single mode is not searchable by default."
21164
+ "description": "Show the search box in the menu. Default: on in multiple and country, on in single when there are more than ten options, off otherwise. true or false forces it either way."
20846
21165
  },
20847
21166
  {
20848
21167
  "name": "searchingText",
@@ -20951,16 +21270,14 @@
20951
21270
  "do": [
20952
21271
  {
20953
21272
  "title": "Searchable past ten options",
20954
- "note": "Past ~10 options, searchable turns a long scroll into a quick type-to-find.",
21273
+ "note": "Past ten options the search box shows on its own, so leave searchable unset.",
20955
21274
  "example": [
20956
21275
  {
20957
21276
  "component": "AppSelect",
20958
21277
  "props": {
20959
21278
  "label": "Client",
20960
21279
  "value": "",
20961
- "searchable": true,
20962
21280
  "placeholder": "Select a client…",
20963
- "searchPlaceholder": "Search clients…",
20964
21281
  "options": [
20965
21282
  {
20966
21283
  "value": "rpg",
@@ -20977,6 +21294,34 @@
20977
21294
  {
20978
21295
  "value": "lt",
20979
21296
  "label": "L&T Construction"
21297
+ },
21298
+ {
21299
+ "value": "jsw",
21300
+ "label": "JSW Steel Vijayanagar"
21301
+ },
21302
+ {
21303
+ "value": "ntpc",
21304
+ "label": "NTPC Dadri"
21305
+ },
21306
+ {
21307
+ "value": "bhel",
21308
+ "label": "BHEL Haridwar"
21309
+ },
21310
+ {
21311
+ "value": "ongc",
21312
+ "label": "ONGC Hazira"
21313
+ },
21314
+ {
21315
+ "value": "sail",
21316
+ "label": "SAIL Bokaro"
21317
+ },
21318
+ {
21319
+ "value": "hind",
21320
+ "label": "Hindalco Renukoot"
21321
+ },
21322
+ {
21323
+ "value": "bpcl",
21324
+ "label": "BPCL Kochi"
20980
21325
  }
20981
21326
  ]
20982
21327
  }
@@ -21052,7 +21397,7 @@
21052
21397
  "dont": [
21053
21398
  {
21054
21399
  "title": "Searchable past ten options",
21055
- "note": "A long, unsearchable list forces the user to scroll and scan every time.",
21400
+ "note": "Turning the search box off on a long list forces the user to scroll and scan every time.",
21056
21401
  "example": [
21057
21402
  {
21058
21403
  "component": "AppSelect",
@@ -21060,6 +21405,7 @@
21060
21405
  "label": "Client",
21061
21406
  "value": "",
21062
21407
  "placeholder": "Select a client…",
21408
+ "searchable": false,
21063
21409
  "options": [
21064
21410
  {
21065
21411
  "value": "rpg",
@@ -21076,6 +21422,34 @@
21076
21422
  {
21077
21423
  "value": "lt",
21078
21424
  "label": "L&T Construction"
21425
+ },
21426
+ {
21427
+ "value": "jsw",
21428
+ "label": "JSW Steel Vijayanagar"
21429
+ },
21430
+ {
21431
+ "value": "ntpc",
21432
+ "label": "NTPC Dadri"
21433
+ },
21434
+ {
21435
+ "value": "bhel",
21436
+ "label": "BHEL Haridwar"
21437
+ },
21438
+ {
21439
+ "value": "ongc",
21440
+ "label": "ONGC Hazira"
21441
+ },
21442
+ {
21443
+ "value": "sail",
21444
+ "label": "SAIL Bokaro"
21445
+ },
21446
+ {
21447
+ "value": "hind",
21448
+ "label": "Hindalco Renukoot"
21449
+ },
21450
+ {
21451
+ "value": "bpcl",
21452
+ "label": "BPCL Kochi"
21079
21453
  }
21080
21454
  ]
21081
21455
  }
@@ -21859,6 +22233,115 @@
21859
22233
  "required": false,
21860
22234
  "description": "Pinned below the scrolling nav."
21861
22235
  },
22236
+ {
22237
+ "name": "sidebarFooterItems",
22238
+ "type": "array",
22239
+ "itemFields": [
22240
+ {
22241
+ "name": "active",
22242
+ "type": "boolean",
22243
+ "required": false,
22244
+ "description": "Unset, the row is decided from currentPath. True or false forces it."
22245
+ },
22246
+ {
22247
+ "name": "badge",
22248
+ "type": "node",
22249
+ "required": false,
22250
+ "description": "A count or short status at the row's end."
22251
+ },
22252
+ {
22253
+ "name": "badgeTitle",
22254
+ "type": "string",
22255
+ "required": false,
22256
+ "description": "The badge's hover text, such as 3 invoices overdue."
22257
+ },
22258
+ {
22259
+ "name": "badgeTone",
22260
+ "type": "enum",
22261
+ "enum": [
22262
+ "danger",
22263
+ "success",
22264
+ "warning"
22265
+ ],
22266
+ "required": false,
22267
+ "description": "Tints the badge for an alert count."
22268
+ },
22269
+ {
22270
+ "name": "href",
22271
+ "type": "url",
22272
+ "required": false,
22273
+ "description": "Where the label links."
22274
+ },
22275
+ {
22276
+ "name": "icon",
22277
+ "type": "icon",
22278
+ "required": false,
22279
+ "description": "A library icon name, or a node for a product's own icon set."
22280
+ },
22281
+ {
22282
+ "name": "iconSize",
22283
+ "type": "number",
22284
+ "required": false,
22285
+ "description": "The icon's width and height in px. Defaults to 22."
22286
+ },
22287
+ {
22288
+ "name": "iconVariant",
22289
+ "type": "enum",
22290
+ "enum": [
22291
+ "bold",
22292
+ "broken",
22293
+ "bulk",
22294
+ "linear",
22295
+ "outline",
22296
+ "twotone"
22297
+ ],
22298
+ "required": false,
22299
+ "description": "The iconsax style of a named icon. Defaults to linear."
22300
+ },
22301
+ {
22302
+ "name": "key",
22303
+ "type": "string",
22304
+ "required": false,
22305
+ "description": "Stable key of the row."
22306
+ },
22307
+ {
22308
+ "name": "label",
22309
+ "type": "string",
22310
+ "required": false,
22311
+ "description": "The visible label of the row."
22312
+ },
22313
+ {
22314
+ "name": "match",
22315
+ "type": "enum",
22316
+ "enum": [
22317
+ "exact",
22318
+ "prefix"
22319
+ ],
22320
+ "required": false,
22321
+ "description": "How href is matched against currentPath. Defaults to prefix."
22322
+ },
22323
+ {
22324
+ "name": "matchAlso",
22325
+ "type": "array",
22326
+ "required": false,
22327
+ "description": "Extra path prefixes that also make this row the current page."
22328
+ },
22329
+ {
22330
+ "name": "newUntil",
22331
+ "type": "string",
22332
+ "required": false,
22333
+ "description": "An ISO date (yyyy-MM-dd, India time). A green New pill shows after the label through that day, and none after it."
22334
+ },
22335
+ {
22336
+ "name": "trailingIcon",
22337
+ "type": "icon",
22338
+ "required": false,
22339
+ "description": "A right-aligned secondary glyph, such as a lock or an external arrow."
22340
+ }
22341
+ ],
22342
+ "required": false,
22343
+ "description": "Nav links pinned in the sidebar footer, matched and marked active with the menu links. Flat links only: no children, no tab, no header."
22344
+ },
21862
22345
  {
21863
22346
  "name": "sidebarStart",
21864
22347
  "type": "node",
@@ -22013,6 +22496,13 @@
22013
22496
  "required": true,
22014
22497
  "description": "The person's full name. The avatar's initials come from it."
22015
22498
  },
22499
+ {
22500
+ "name": "noTriggerRole",
22501
+ "type": "boolean",
22502
+ "required": false,
22503
+ "description": "Leave the job title off the topbar trigger, so it shows the name only. The opened menu still shows it.",
22504
+ "default": false
22505
+ },
22016
22506
  {
22017
22507
  "name": "photo",
22018
22508
  "type": "string",
@@ -22061,7 +22551,9 @@
22061
22551
  "default": "View all"
22062
22552
  }
22063
22553
  ],
22064
- "itemsTakeAction": [],
22554
+ "itemsTakeAction": [
22555
+ "sidebarFooterItems"
22556
+ ],
22065
22557
  "takesAction": [],
22066
22558
  "source": "@webority/ui-react",
22067
22559
  "usage": {
@@ -28194,6 +28686,22 @@
28194
28686
  "scrollbar",
28195
28687
  "scrollbar-active",
28196
28688
  "scrollbar-hover",
28689
+ "shell-accent",
28690
+ "shell-accent-ring",
28691
+ "shell-active",
28692
+ "shell-bg",
28693
+ "shell-bg-deep",
28694
+ "shell-bg-raised",
28695
+ "shell-border",
28696
+ "shell-border-strong",
28697
+ "shell-fill",
28698
+ "shell-fill-strong",
28699
+ "shell-fill-subtle",
28700
+ "shell-hover",
28701
+ "shell-rule",
28702
+ "shell-text",
28703
+ "shell-text-muted",
28704
+ "shell-text-strong",
28197
28705
  "success",
28198
28706
  "success-border",
28199
28707
  "success-pressed",
@@ -28364,6 +28872,22 @@
28364
28872
  "scrollbar": "Resting thumb colour of a thin scrollbar.",
28365
28873
  "scrollbar-active": "Scrollbar thumb colour while it is dragged.",
28366
28874
  "scrollbar-hover": "Scrollbar thumb colour while it is hovered.",
28875
+ "shell-accent": "Warm accent on the dark shell that marks where the user is: the active icon, the open group's guide line, the focus outline and the avatar.",
28876
+ "shell-accent-ring": "Translucent accent halo on the dark shell, for a selection or focus ring.",
28877
+ "shell-active": "Fill of the active nav row on the dark shell.",
28878
+ "shell-bg": "Dark navigation shell background, the sidebar behind the nav items and the workspace switcher.",
28879
+ "shell-bg-deep": "Deepest shell tone, the ink on an accent mark or an avatar in the shell.",
28880
+ "shell-bg-raised": "Raised shell band, the fill of the active page row inside an open group.",
28881
+ "shell-border": "Border of a control on the dark shell, shown on hover.",
28882
+ "shell-border-strong": "Border of a focused or open control on the dark shell.",
28883
+ "shell-fill": "Translucent fill for a badge and a focused or open switcher on the dark shell.",
28884
+ "shell-fill-strong": "Strongest translucent fill on the dark shell, for a control that is held.",
28885
+ "shell-fill-subtle": "Faint translucent fill on the dark shell, for the open group band and the workspace switcher pill.",
28886
+ "shell-hover": "Hover fill for a nav row or the sidebar toggle on the dark shell.",
28887
+ "shell-rule": "Hairline divider between shell groups and under the shell brand.",
28888
+ "shell-text": "Body text and nav item labels on the dark shell.",
28889
+ "shell-text-muted": "Quiet text on the dark shell: group labels, nav icons, carets and the sidebar toggle.",
28890
+ "shell-text-strong": "Emphasis text on the dark shell: the brand name, hovered and open rows, the switcher label.",
28367
28891
  "success": "Vivid success fill for badges, dots and success buttons.",
28368
28892
  "success-border": "Tinted success border of alerts and badges.",
28369
28893
  "success-pressed": "Success fill while a control is pressed.",
@@ -28732,6 +29256,70 @@
28732
29256
  "light": "#919eaba6",
28733
29257
  "dark": "#ffffff47"
28734
29258
  },
29259
+ "shell-accent": {
29260
+ "light": "#f4a261",
29261
+ "dark": "#f4a261"
29262
+ },
29263
+ "shell-accent-ring": {
29264
+ "light": "#f4a26140",
29265
+ "dark": "#f4a26140"
29266
+ },
29267
+ "shell-active": {
29268
+ "light": "#ffffff1f",
29269
+ "dark": "#ffffff1f"
29270
+ },
29271
+ "shell-bg": {
29272
+ "light": "#1f2d5c",
29273
+ "dark": "#1f2d5c"
29274
+ },
29275
+ "shell-bg-deep": {
29276
+ "light": "#141e42",
29277
+ "dark": "#141e42"
29278
+ },
29279
+ "shell-bg-raised": {
29280
+ "light": "#2c3f7a",
29281
+ "dark": "#2c3f7a"
29282
+ },
29283
+ "shell-border": {
29284
+ "light": "#ffffff38",
29285
+ "dark": "#ffffff38"
29286
+ },
29287
+ "shell-border-strong": {
29288
+ "light": "#ffffff66",
29289
+ "dark": "#ffffff66"
29290
+ },
29291
+ "shell-fill": {
29292
+ "light": "#ffffff1f",
29293
+ "dark": "#ffffff1f"
29294
+ },
29295
+ "shell-fill-strong": {
29296
+ "light": "#ffffff2e",
29297
+ "dark": "#ffffff2e"
29298
+ },
29299
+ "shell-fill-subtle": {
29300
+ "light": "#ffffff14",
29301
+ "dark": "#ffffff14"
29302
+ },
29303
+ "shell-hover": {
29304
+ "light": "#ffffff12",
29305
+ "dark": "#ffffff12"
29306
+ },
29307
+ "shell-rule": {
29308
+ "light": "#ffffff1a",
29309
+ "dark": "#ffffff1a"
29310
+ },
29311
+ "shell-text": {
29312
+ "light": "#c9d1e6",
29313
+ "dark": "#c9d1e6"
29314
+ },
29315
+ "shell-text-muted": {
29316
+ "light": "#8792b4",
29317
+ "dark": "#8792b4"
29318
+ },
29319
+ "shell-text-strong": {
29320
+ "light": "#ffffff",
29321
+ "dark": "#ffffff"
29322
+ },
28735
29323
  "success": {
28736
29324
  "light": "#04b440",
28737
29325
  "dark": "#30c780"
@@ -30649,6 +31237,11 @@
30649
31237
  }
30650
31238
  ],
30651
31239
  "values": {}
31240
+ },
31241
+ {
31242
+ "version": "0.152.0",
31243
+ "components": [],
31244
+ "values": {}
30652
31245
  }
30653
31246
  ]
30654
31247
  }