@webority/ui-react 0.104.1 → 0.106.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/canvas-kit/kit.js +18175 -17507
- package/dist/canvas-kit/manifest.json +439 -5
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppAccordion.js +1 -1
- package/dist/components/AppCommentThread.js +1 -1
- package/dist/components/AppConfirmDialog.js +1 -1
- package/dist/components/AppDetailPane.js +1 -0
- package/dist/components/AppDrawer.js +1 -1
- package/dist/components/AppFilePicker.js +1 -1
- package/dist/components/AppFileTiles.js +1 -0
- package/dist/components/AppModal.js +1 -1
- package/dist/components/AppNavList.js +1 -0
- package/dist/components/AppPageHeader.js +1 -1
- package/dist/components/AppSortableList.js +1 -1
- package/dist/components/AppTablePagination.js +1 -1
- package/dist/guidance.json +131 -1
- package/dist/types/components/AppAccordion.d.ts +8 -1
- package/dist/types/components/AppCalendar.d.ts +6 -1
- package/dist/types/components/AppCommentThread.d.ts +18 -0
- package/dist/types/components/AppConfirmDialog.d.ts +6 -0
- package/dist/types/components/AppDetailPane.d.ts +33 -0
- package/dist/types/components/AppDrawer.d.ts +3 -3
- package/dist/types/components/AppFilePicker.d.ts +12 -0
- package/dist/types/components/AppFileTiles.d.ts +30 -0
- package/dist/types/components/AppModal.d.ts +3 -0
- package/dist/types/components/AppNavList.d.ts +35 -0
- package/dist/types/components/AppPageHeader.d.ts +6 -0
- package/dist/types/components/AppSortableList.d.ts +10 -0
- package/dist/types/components/AppTablePagination.d.ts +2 -2
- package/dist/types/index.d.ts +3 -0
- package/dist/ui-react.js +1 -1
- package/package.json +5 -5
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"kind": "WeborityWeb",
|
|
3
3
|
"library": {
|
|
4
4
|
"name": "@webority/ui-react",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.106.0"
|
|
6
6
|
},
|
|
7
7
|
"rendererProtocolVersion": 12,
|
|
8
8
|
"platform": "Web",
|
|
@@ -37,6 +37,12 @@
|
|
|
37
37
|
"required": true,
|
|
38
38
|
"description": "The body that opens and closes."
|
|
39
39
|
},
|
|
40
|
+
{
|
|
41
|
+
"name": "count",
|
|
42
|
+
"type": "number",
|
|
43
|
+
"required": false,
|
|
44
|
+
"description": "A count chip after the title. Null shows none; 0 shows 0."
|
|
45
|
+
},
|
|
40
46
|
{
|
|
41
47
|
"name": "key",
|
|
42
48
|
"type": "string",
|
|
@@ -71,6 +77,17 @@
|
|
|
71
77
|
"type": "array",
|
|
72
78
|
"required": false,
|
|
73
79
|
"description": "The keys of the panes that start open. It replaces each item's own open flag and is read again when its content changes. Without multiple only the first key opens."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "variant",
|
|
83
|
+
"type": "enum",
|
|
84
|
+
"enum": [
|
|
85
|
+
"bordered",
|
|
86
|
+
"flat"
|
|
87
|
+
],
|
|
88
|
+
"required": false,
|
|
89
|
+
"description": "bordered (default) | flat: a text toggle with a leading chevron and an optional count chip, for a section header rather than a card of questions.",
|
|
90
|
+
"default": "bordered"
|
|
74
91
|
}
|
|
75
92
|
],
|
|
76
93
|
"itemsTakeAction": [],
|
|
@@ -2322,6 +2339,32 @@
|
|
|
2322
2339
|
"required": false,
|
|
2323
2340
|
"description": "Identifies the event."
|
|
2324
2341
|
},
|
|
2342
|
+
{
|
|
2343
|
+
"name": "stack",
|
|
2344
|
+
"type": "object",
|
|
2345
|
+
"fields": [
|
|
2346
|
+
{
|
|
2347
|
+
"name": "count",
|
|
2348
|
+
"type": "number",
|
|
2349
|
+
"required": true,
|
|
2350
|
+
"description": "How many more events the card stands for; a whole number above 0."
|
|
2351
|
+
},
|
|
2352
|
+
{
|
|
2353
|
+
"name": "label",
|
|
2354
|
+
"type": "string",
|
|
2355
|
+
"required": true,
|
|
2356
|
+
"description": "The link's tooltip and screen-reader name."
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
"name": "url",
|
|
2360
|
+
"type": "url",
|
|
2361
|
+
"required": true,
|
|
2362
|
+
"description": "Where the `+count` link goes."
|
|
2363
|
+
}
|
|
2364
|
+
],
|
|
2365
|
+
"required": false,
|
|
2366
|
+
"description": "Draws a `+count` link of its own inside the card, for a card that stands for several events."
|
|
2367
|
+
},
|
|
2325
2368
|
{
|
|
2326
2369
|
"name": "start",
|
|
2327
2370
|
"type": "string",
|
|
@@ -2362,7 +2405,7 @@
|
|
|
2362
2405
|
"name": "eventsUrl",
|
|
2363
2406
|
"type": "url",
|
|
2364
2407
|
"required": false,
|
|
2365
|
-
"description": "Called with `start` and `
|
|
2408
|
+
"description": "Called with `start`, `end` and `view` (month, week, day or list; IST days) whenever the visible period changes; answers a JSON list of events."
|
|
2366
2409
|
},
|
|
2367
2410
|
{
|
|
2368
2411
|
"name": "firstDay",
|
|
@@ -4991,6 +5034,12 @@
|
|
|
4991
5034
|
"description": "False leaves out the Reply action and the reply box; existing replies still show.",
|
|
4992
5035
|
"default": true
|
|
4993
5036
|
},
|
|
5037
|
+
{
|
|
5038
|
+
"name": "author",
|
|
5039
|
+
"type": "string",
|
|
5040
|
+
"required": false,
|
|
5041
|
+
"description": "The name for the inline composer's avatar. Ignored when stacked."
|
|
5042
|
+
},
|
|
4994
5043
|
{
|
|
4995
5044
|
"name": "className",
|
|
4996
5045
|
"type": "string",
|
|
@@ -5197,12 +5246,29 @@
|
|
|
5197
5246
|
"description": "Top-level comments, oldest first.",
|
|
5198
5247
|
"default": []
|
|
5199
5248
|
},
|
|
5249
|
+
{
|
|
5250
|
+
"name": "composer",
|
|
5251
|
+
"type": "enum",
|
|
5252
|
+
"enum": [
|
|
5253
|
+
"inline",
|
|
5254
|
+
"stacked"
|
|
5255
|
+
],
|
|
5256
|
+
"required": false,
|
|
5257
|
+
"description": "stacked: the box under the list. inline: one row with the author's avatar, the box and the post button.",
|
|
5258
|
+
"default": "stacked"
|
|
5259
|
+
},
|
|
5200
5260
|
{
|
|
5201
5261
|
"name": "composerPlaceholder",
|
|
5202
5262
|
"type": "string",
|
|
5203
5263
|
"required": false,
|
|
5204
5264
|
"description": "The composer box's placeholder. Without it the standard placeholder asks for a comment and names @ mentions."
|
|
5205
5265
|
},
|
|
5266
|
+
{
|
|
5267
|
+
"name": "composerRows",
|
|
5268
|
+
"type": "number",
|
|
5269
|
+
"required": false,
|
|
5270
|
+
"description": "The composer box's rows. Without it, 3 stacked and 1 inline."
|
|
5271
|
+
},
|
|
5206
5272
|
{
|
|
5207
5273
|
"name": "id",
|
|
5208
5274
|
"type": "string",
|
|
@@ -5248,6 +5314,13 @@
|
|
|
5248
5314
|
"required": false,
|
|
5249
5315
|
"description": "The people the boxes offer after @."
|
|
5250
5316
|
},
|
|
5317
|
+
{
|
|
5318
|
+
"name": "postLabel",
|
|
5319
|
+
"type": "string",
|
|
5320
|
+
"required": false,
|
|
5321
|
+
"description": "The post button's text.",
|
|
5322
|
+
"default": "Comment"
|
|
5323
|
+
},
|
|
5251
5324
|
{
|
|
5252
5325
|
"name": "reactionChoices",
|
|
5253
5326
|
"type": "array",
|
|
@@ -5587,6 +5660,17 @@
|
|
|
5587
5660
|
],
|
|
5588
5661
|
"required": false,
|
|
5589
5662
|
"description": "The status icon. Unset, it is delete when danger is set and info otherwise."
|
|
5663
|
+
},
|
|
5664
|
+
{
|
|
5665
|
+
"name": "variant",
|
|
5666
|
+
"type": "enum",
|
|
5667
|
+
"enum": [
|
|
5668
|
+
"default",
|
|
5669
|
+
"plain"
|
|
5670
|
+
],
|
|
5671
|
+
"required": false,
|
|
5672
|
+
"description": "default keeps the status illustration and equal-width actions. plain drops the illustration, starts the text at the edge and sizes the actions small, right-aligned.",
|
|
5673
|
+
"default": "default"
|
|
5590
5674
|
}
|
|
5591
5675
|
],
|
|
5592
5676
|
"itemsTakeAction": [],
|
|
@@ -7378,6 +7462,115 @@
|
|
|
7378
7462
|
]
|
|
7379
7463
|
}
|
|
7380
7464
|
},
|
|
7465
|
+
{
|
|
7466
|
+
"name": "AppDetailPane",
|
|
7467
|
+
"marker": "AppDetailPane",
|
|
7468
|
+
"acceptsChildren": true,
|
|
7469
|
+
"props": [
|
|
7470
|
+
{
|
|
7471
|
+
"name": "className",
|
|
7472
|
+
"type": "string",
|
|
7473
|
+
"required": false,
|
|
7474
|
+
"description": "Extra classes on the pane.",
|
|
7475
|
+
"default": ""
|
|
7476
|
+
},
|
|
7477
|
+
{
|
|
7478
|
+
"name": "label",
|
|
7479
|
+
"type": "string",
|
|
7480
|
+
"required": true,
|
|
7481
|
+
"description": "The accessible name of the pane region."
|
|
7482
|
+
},
|
|
7483
|
+
{
|
|
7484
|
+
"name": "open",
|
|
7485
|
+
"type": "boolean",
|
|
7486
|
+
"required": false,
|
|
7487
|
+
"description": "Shows the pane. Closed, the pane is hidden and takes no room. The caller owns it and closes it in onClose.",
|
|
7488
|
+
"default": false
|
|
7489
|
+
},
|
|
7490
|
+
{
|
|
7491
|
+
"name": "sticky",
|
|
7492
|
+
"type": "boolean",
|
|
7493
|
+
"required": false,
|
|
7494
|
+
"description": "Keeps the pane in view under the top bar while the list beside it scrolls.",
|
|
7495
|
+
"default": true
|
|
7496
|
+
}
|
|
7497
|
+
],
|
|
7498
|
+
"itemsTakeAction": [],
|
|
7499
|
+
"takesAction": [],
|
|
7500
|
+
"source": "@webority/ui-react",
|
|
7501
|
+
"usage": {
|
|
7502
|
+
"when": [
|
|
7503
|
+
"A person keeps working in a list and reads the details of one item beside it.",
|
|
7504
|
+
"Choosing an item should not change page, and the list must stay where it is."
|
|
7505
|
+
],
|
|
7506
|
+
"whenNot": [
|
|
7507
|
+
{
|
|
7508
|
+
"text": "The items form a queue the person works through one by one.",
|
|
7509
|
+
"instead": "AppSplitView"
|
|
7510
|
+
},
|
|
7511
|
+
{
|
|
7512
|
+
"text": "The detail is an overlay that covers the page.",
|
|
7513
|
+
"instead": "AppDrawer"
|
|
7514
|
+
},
|
|
7515
|
+
{
|
|
7516
|
+
"text": "The detail is a short task that interrupts the flow.",
|
|
7517
|
+
"instead": "AppModal"
|
|
7518
|
+
}
|
|
7519
|
+
],
|
|
7520
|
+
"do": [
|
|
7521
|
+
{
|
|
7522
|
+
"note": "The pane sits beside the list it details. Escape inside it calls onClose.",
|
|
7523
|
+
"example": [
|
|
7524
|
+
{
|
|
7525
|
+
"component": "AppDetailPane",
|
|
7526
|
+
"props": {
|
|
7527
|
+
"label": "Request details",
|
|
7528
|
+
"open": true
|
|
7529
|
+
},
|
|
7530
|
+
"children": [
|
|
7531
|
+
{
|
|
7532
|
+
"component": "p",
|
|
7533
|
+
"children": "Expense claim: client travel. Dev Patel, Sales."
|
|
7534
|
+
}
|
|
7535
|
+
]
|
|
7536
|
+
}
|
|
7537
|
+
]
|
|
7538
|
+
}
|
|
7539
|
+
],
|
|
7540
|
+
"dont": [
|
|
7541
|
+
{
|
|
7542
|
+
"note": "Use a detail pane to cover the page or hold a multi-step task; use AppDrawer or AppModal for that.",
|
|
7543
|
+
"example": [
|
|
7544
|
+
{
|
|
7545
|
+
"component": "AppDetailPane",
|
|
7546
|
+
"props": {
|
|
7547
|
+
"label": "New leave request",
|
|
7548
|
+
"open": true
|
|
7549
|
+
},
|
|
7550
|
+
"children": [
|
|
7551
|
+
{
|
|
7552
|
+
"component": "p",
|
|
7553
|
+
"children": "Step 1 of 3: choose the leave type."
|
|
7554
|
+
},
|
|
7555
|
+
{
|
|
7556
|
+
"component": "AppButton",
|
|
7557
|
+
"props": {
|
|
7558
|
+
"variant": "outline",
|
|
7559
|
+
"size": "sm"
|
|
7560
|
+
},
|
|
7561
|
+
"children": "Next"
|
|
7562
|
+
}
|
|
7563
|
+
]
|
|
7564
|
+
}
|
|
7565
|
+
]
|
|
7566
|
+
}
|
|
7567
|
+
],
|
|
7568
|
+
"a11y": [
|
|
7569
|
+
"The pane is a region named by label. Escape inside it calls onClose.",
|
|
7570
|
+
"A closed pane is hidden from assistive technology, so it is not read while it is closed."
|
|
7571
|
+
]
|
|
7572
|
+
}
|
|
7573
|
+
},
|
|
7381
7574
|
{
|
|
7382
7575
|
"name": "AppDrawer",
|
|
7383
7576
|
"marker": "AppDrawer",
|
|
@@ -7453,10 +7646,11 @@
|
|
|
7453
7646
|
"enum": [
|
|
7454
7647
|
"lg",
|
|
7455
7648
|
"md",
|
|
7456
|
-
"sm"
|
|
7649
|
+
"sm",
|
|
7650
|
+
"xl"
|
|
7457
7651
|
],
|
|
7458
7652
|
"required": false,
|
|
7459
|
-
"description": "The side drawer's width: 360, 480 or
|
|
7653
|
+
"description": "The side drawer's width: 360, 480, 640 or 720 px.",
|
|
7460
7654
|
"default": "md"
|
|
7461
7655
|
},
|
|
7462
7656
|
{
|
|
@@ -8457,6 +8651,13 @@
|
|
|
8457
8651
|
"description": "Accepted file types (the accept attribute). Widen it, for example image/*,application/pdf, and non-image files show a file-type icon instead of a thumbnail.",
|
|
8458
8652
|
"default": ".jpg,.jpeg,.png"
|
|
8459
8653
|
},
|
|
8654
|
+
{
|
|
8655
|
+
"name": "buttonLabel",
|
|
8656
|
+
"type": "string",
|
|
8657
|
+
"required": false,
|
|
8658
|
+
"description": "The button form's text.",
|
|
8659
|
+
"default": "Add file"
|
|
8660
|
+
},
|
|
8460
8661
|
{
|
|
8461
8662
|
"name": "className",
|
|
8462
8663
|
"type": "string",
|
|
@@ -8538,6 +8739,17 @@
|
|
|
8538
8739
|
"type": "any",
|
|
8539
8740
|
"required": false,
|
|
8540
8741
|
"description": "The chosen file or files: a File, an object with a url and an optional name, an array of those, or null."
|
|
8742
|
+
},
|
|
8743
|
+
{
|
|
8744
|
+
"name": "variant",
|
|
8745
|
+
"type": "enum",
|
|
8746
|
+
"enum": [
|
|
8747
|
+
"button",
|
|
8748
|
+
"dropzone"
|
|
8749
|
+
],
|
|
8750
|
+
"required": false,
|
|
8751
|
+
"description": "dropzone is the tall drop target. button is a small outline button that opens the file dialog, with no preview and no list.",
|
|
8752
|
+
"default": "dropzone"
|
|
8541
8753
|
}
|
|
8542
8754
|
],
|
|
8543
8755
|
"itemsTakeAction": [],
|
|
@@ -8626,6 +8838,59 @@
|
|
|
8626
8838
|
]
|
|
8627
8839
|
}
|
|
8628
8840
|
},
|
|
8841
|
+
{
|
|
8842
|
+
"name": "AppFileTiles",
|
|
8843
|
+
"marker": "AppFileTiles",
|
|
8844
|
+
"acceptsChildren": false,
|
|
8845
|
+
"props": [
|
|
8846
|
+
{
|
|
8847
|
+
"name": "className",
|
|
8848
|
+
"type": "string",
|
|
8849
|
+
"required": false,
|
|
8850
|
+
"description": "Extra class names added to the list.",
|
|
8851
|
+
"default": ""
|
|
8852
|
+
},
|
|
8853
|
+
{
|
|
8854
|
+
"name": "files",
|
|
8855
|
+
"type": "any",
|
|
8856
|
+
"required": false,
|
|
8857
|
+
"description": "The files, each { key, name, href, sizeBytes, meta }. name's extension makes the type tile; href makes the tile a link; sizeBytes is the size in bytes; meta is text after the size.",
|
|
8858
|
+
"default": []
|
|
8859
|
+
},
|
|
8860
|
+
{
|
|
8861
|
+
"name": "label",
|
|
8862
|
+
"type": "string",
|
|
8863
|
+
"required": true,
|
|
8864
|
+
"description": "Accessible name of the list."
|
|
8865
|
+
}
|
|
8866
|
+
],
|
|
8867
|
+
"itemsTakeAction": [],
|
|
8868
|
+
"takesAction": [],
|
|
8869
|
+
"source": "@webority/ui-react",
|
|
8870
|
+
"usage": {
|
|
8871
|
+
"when": [
|
|
8872
|
+
"A few files attached to a record that the person reads rather than edits.",
|
|
8873
|
+
"Files that open or download from the page, each shown with its type and size."
|
|
8874
|
+
],
|
|
8875
|
+
"whenNot": [
|
|
8876
|
+
{
|
|
8877
|
+
"text": "The person picks or uploads the files.",
|
|
8878
|
+
"instead": "AppFileAttachment"
|
|
8879
|
+
},
|
|
8880
|
+
{
|
|
8881
|
+
"text": "One file to read in the page.",
|
|
8882
|
+
"instead": "AppFileViewer"
|
|
8883
|
+
}
|
|
8884
|
+
],
|
|
8885
|
+
"do": [],
|
|
8886
|
+
"dont": [],
|
|
8887
|
+
"a11y": [
|
|
8888
|
+
"The list takes its accessible name from label.",
|
|
8889
|
+
"The type tile is hidden from assistive technology; the file name carries the meaning.",
|
|
8890
|
+
"A file with an href is a link; a file without one is plain text."
|
|
8891
|
+
]
|
|
8892
|
+
}
|
|
8893
|
+
},
|
|
8629
8894
|
{
|
|
8630
8895
|
"name": "AppFileViewer",
|
|
8631
8896
|
"marker": "AppFileViewer",
|
|
@@ -12165,6 +12430,12 @@
|
|
|
12165
12430
|
"required": false,
|
|
12166
12431
|
"description": "Content pinned at the bottom, usually the action buttons."
|
|
12167
12432
|
},
|
|
12433
|
+
{
|
|
12434
|
+
"name": "headerActions",
|
|
12435
|
+
"type": "node",
|
|
12436
|
+
"required": false,
|
|
12437
|
+
"description": "Actions drawn beside the title, before the close button, such as Previous and Next. Not drawn while hideHeader is set."
|
|
12438
|
+
},
|
|
12168
12439
|
{
|
|
12169
12440
|
"name": "headerIcon",
|
|
12170
12441
|
"type": "icon",
|
|
@@ -12766,6 +13037,116 @@
|
|
|
12766
13037
|
]
|
|
12767
13038
|
}
|
|
12768
13039
|
},
|
|
13040
|
+
{
|
|
13041
|
+
"name": "AppNavList",
|
|
13042
|
+
"marker": "AppNavList",
|
|
13043
|
+
"acceptsChildren": false,
|
|
13044
|
+
"props": [
|
|
13045
|
+
{
|
|
13046
|
+
"name": "items",
|
|
13047
|
+
"type": "array",
|
|
13048
|
+
"itemFields": [
|
|
13049
|
+
{
|
|
13050
|
+
"name": "active",
|
|
13051
|
+
"type": "boolean",
|
|
13052
|
+
"required": false,
|
|
13053
|
+
"description": "Marks the current row."
|
|
13054
|
+
},
|
|
13055
|
+
{
|
|
13056
|
+
"name": "count",
|
|
13057
|
+
"type": "number",
|
|
13058
|
+
"required": false,
|
|
13059
|
+
"description": "A count on the right; hidden at zero."
|
|
13060
|
+
},
|
|
13061
|
+
{
|
|
13062
|
+
"name": "divider",
|
|
13063
|
+
"type": "boolean",
|
|
13064
|
+
"required": false,
|
|
13065
|
+
"description": "Draws a hairline instead of a row."
|
|
13066
|
+
},
|
|
13067
|
+
{
|
|
13068
|
+
"name": "dotTone",
|
|
13069
|
+
"type": "enum",
|
|
13070
|
+
"enum": [
|
|
13071
|
+
"danger",
|
|
13072
|
+
"info",
|
|
13073
|
+
"neutral",
|
|
13074
|
+
"primary",
|
|
13075
|
+
"success",
|
|
13076
|
+
"warning"
|
|
13077
|
+
],
|
|
13078
|
+
"required": false,
|
|
13079
|
+
"description": "A 10 px coloured dot in place of the icon."
|
|
13080
|
+
},
|
|
13081
|
+
{
|
|
13082
|
+
"name": "icon",
|
|
13083
|
+
"type": "icon",
|
|
13084
|
+
"required": false,
|
|
13085
|
+
"description": "An icon drawn before the text. Not together with dotTone."
|
|
13086
|
+
},
|
|
13087
|
+
{
|
|
13088
|
+
"name": "key",
|
|
13089
|
+
"type": "stringOrNumber",
|
|
13090
|
+
"required": true,
|
|
13091
|
+
"description": "The row's key; not shown."
|
|
13092
|
+
},
|
|
13093
|
+
{
|
|
13094
|
+
"name": "label",
|
|
13095
|
+
"type": "node",
|
|
13096
|
+
"required": false,
|
|
13097
|
+
"description": "The row text."
|
|
13098
|
+
},
|
|
13099
|
+
{
|
|
13100
|
+
"name": "to",
|
|
13101
|
+
"type": "string",
|
|
13102
|
+
"required": false,
|
|
13103
|
+
"description": "Where the row links."
|
|
13104
|
+
}
|
|
13105
|
+
],
|
|
13106
|
+
"required": false,
|
|
13107
|
+
"description": "The rows, top to bottom. A row with a target is a link; without one it is a button. A divider item draws a hairline between groups.",
|
|
13108
|
+
"default": []
|
|
13109
|
+
},
|
|
13110
|
+
{
|
|
13111
|
+
"name": "label",
|
|
13112
|
+
"type": "string",
|
|
13113
|
+
"required": true,
|
|
13114
|
+
"description": "The accessible name of the navigation landmark."
|
|
13115
|
+
}
|
|
13116
|
+
],
|
|
13117
|
+
"itemsTakeAction": [
|
|
13118
|
+
"items"
|
|
13119
|
+
],
|
|
13120
|
+
"takesAction": [],
|
|
13121
|
+
"source": "@webority/ui-react",
|
|
13122
|
+
"role": "navigation",
|
|
13123
|
+
"usage": {
|
|
13124
|
+
"when": [
|
|
13125
|
+
"A page has a short rail of destinations or groups, each with a count, beside its content.",
|
|
13126
|
+
"The rows pick one current destination, and some rows are coloured by a status dot."
|
|
13127
|
+
],
|
|
13128
|
+
"whenNot": [
|
|
13129
|
+
{
|
|
13130
|
+
"text": "A site's top navigation with dropdown panels.",
|
|
13131
|
+
"instead": "AppNavigationMenu"
|
|
13132
|
+
},
|
|
13133
|
+
{
|
|
13134
|
+
"text": "A signed-in app's sidebar of destinations.",
|
|
13135
|
+
"instead": "AppSidebarMenu"
|
|
13136
|
+
},
|
|
13137
|
+
{
|
|
13138
|
+
"text": "A choice between several values in a form.",
|
|
13139
|
+
"instead": "AppRadioGroup"
|
|
13140
|
+
}
|
|
13141
|
+
],
|
|
13142
|
+
"do": [],
|
|
13143
|
+
"dont": [],
|
|
13144
|
+
"a11y": [
|
|
13145
|
+
"The rows sit in a navigation landmark named by label, and the current row is marked with aria-current page.",
|
|
13146
|
+
"A dot is decorative: the row's label carries the meaning, so the dot is hidden from assistive tech."
|
|
13147
|
+
]
|
|
13148
|
+
}
|
|
13149
|
+
},
|
|
12769
13150
|
{
|
|
12770
13151
|
"name": "AppNavigationMenu",
|
|
12771
13152
|
"marker": "AppNavigationMenu",
|
|
@@ -13628,6 +14009,17 @@
|
|
|
13628
14009
|
"required": false,
|
|
13629
14010
|
"description": "A count, status, or short description."
|
|
13630
14011
|
},
|
|
14012
|
+
{
|
|
14013
|
+
"name": "subtitlePlacement",
|
|
14014
|
+
"type": "enum",
|
|
14015
|
+
"enum": [
|
|
14016
|
+
"below",
|
|
14017
|
+
"inline"
|
|
14018
|
+
],
|
|
14019
|
+
"required": false,
|
|
14020
|
+
"description": "Where the subtitle sits: under the title, or on the title line after it. Size bar ignores it.",
|
|
14021
|
+
"default": "below"
|
|
14022
|
+
},
|
|
13631
14023
|
{
|
|
13632
14024
|
"name": "title",
|
|
13633
14025
|
"type": "node",
|
|
@@ -19883,6 +20275,13 @@
|
|
|
19883
20275
|
"required": true,
|
|
19884
20276
|
"description": "Names the list for assistive tech; also used in announcements when an item moves between lists."
|
|
19885
20277
|
},
|
|
20278
|
+
{
|
|
20279
|
+
"name": "bordered",
|
|
20280
|
+
"type": "boolean",
|
|
20281
|
+
"required": false,
|
|
20282
|
+
"description": "False draws no border, fill or padding around each item.",
|
|
20283
|
+
"default": true
|
|
20284
|
+
},
|
|
19886
20285
|
{
|
|
19887
20286
|
"name": "className",
|
|
19888
20287
|
"type": "string",
|
|
@@ -19910,6 +20309,17 @@
|
|
|
19910
20309
|
"description": "Drag only from the handle. Without it an item can also be dragged from its body (links, buttons and inputs inside it keep working).",
|
|
19911
20310
|
"default": false
|
|
19912
20311
|
},
|
|
20312
|
+
{
|
|
20313
|
+
"name": "handleDisplay",
|
|
20314
|
+
"type": "enum",
|
|
20315
|
+
"enum": [
|
|
20316
|
+
"always",
|
|
20317
|
+
"hover"
|
|
20318
|
+
],
|
|
20319
|
+
"required": false,
|
|
20320
|
+
"description": "always shows every handle; hover shows it on item hover, handle focus, while lifted, and always on touch screens. Hover also turns the handle on.",
|
|
20321
|
+
"default": "always"
|
|
20322
|
+
},
|
|
19913
20323
|
{
|
|
19914
20324
|
"name": "items",
|
|
19915
20325
|
"type": "array",
|
|
@@ -21547,7 +21957,7 @@
|
|
|
21547
21957
|
"name": "pageSizes",
|
|
21548
21958
|
"type": "array",
|
|
21549
21959
|
"required": false,
|
|
21550
|
-
"description": "The page sizes the menu offers. It offers 5, 10, 25 and 50 when left out."
|
|
21960
|
+
"description": "The page sizes the menu offers. It offers 5, 10, 25 and 50 when left out. The current pageSize is added when it is not in the list."
|
|
21551
21961
|
},
|
|
21552
21962
|
{
|
|
21553
21963
|
"name": "showPageSize",
|
|
@@ -25026,6 +25436,8 @@
|
|
|
25026
25436
|
"on-scrim",
|
|
25027
25437
|
"on-success",
|
|
25028
25438
|
"on-success-strong",
|
|
25439
|
+
"on-surface-dark",
|
|
25440
|
+
"on-surface-dark-muted",
|
|
25029
25441
|
"on-warning",
|
|
25030
25442
|
"on-warning-strong",
|
|
25031
25443
|
"primary",
|
|
@@ -25049,6 +25461,8 @@
|
|
|
25049
25461
|
"success-text",
|
|
25050
25462
|
"success-text-on-soft",
|
|
25051
25463
|
"surface",
|
|
25464
|
+
"surface-dark",
|
|
25465
|
+
"surface-dark-border",
|
|
25052
25466
|
"surface-inverse",
|
|
25053
25467
|
"surface-inverse-elevated",
|
|
25054
25468
|
"surface-inverse-raised",
|
|
@@ -25181,6 +25595,8 @@
|
|
|
25181
25595
|
"on-scrim": "Ink on a scrim, such as the text of an overlay.",
|
|
25182
25596
|
"on-success": "Ink on a solid success fill.",
|
|
25183
25597
|
"on-success-strong": "Ink on a deep success fill.",
|
|
25598
|
+
"on-surface-dark": "Text and icons on a surface-dark band.",
|
|
25599
|
+
"on-surface-dark-muted": "Secondary text on a surface-dark band.",
|
|
25184
25600
|
"on-warning": "Ink on a solid warning fill.",
|
|
25185
25601
|
"on-warning-strong": "Ink on a deep warning fill.",
|
|
25186
25602
|
"primary": "Primary fill for buttons, selected states and borders.",
|
|
@@ -25204,6 +25620,8 @@
|
|
|
25204
25620
|
"success-text": "Success colour as text on a page or a soft success tint.",
|
|
25205
25621
|
"success-text-on-soft": "Success text on its own soft tint, such as an alert heading.",
|
|
25206
25622
|
"surface": "Card and panel surface.",
|
|
25623
|
+
"surface-dark": "Band that stays dark in light and dark mode, such as a site footer or a dark hero.",
|
|
25624
|
+
"surface-dark-border": "Hairline border or divider on a surface-dark band.",
|
|
25207
25625
|
"surface-inverse": "Inverse band on a page, such as a dark footer or an inverse toast.",
|
|
25208
25626
|
"surface-inverse-elevated": "A floating or highlighted surface two layers up on an inverse band.",
|
|
25209
25627
|
"surface-inverse-raised": "A card or panel one layer up on an inverse band.",
|
|
@@ -25477,6 +25895,14 @@
|
|
|
25477
25895
|
"light": "#ffffff",
|
|
25478
25896
|
"dark": "#0f0f0f"
|
|
25479
25897
|
},
|
|
25898
|
+
"on-surface-dark": {
|
|
25899
|
+
"light": "#ffffff",
|
|
25900
|
+
"dark": "#ffffff"
|
|
25901
|
+
},
|
|
25902
|
+
"on-surface-dark-muted": {
|
|
25903
|
+
"light": "#babdc7",
|
|
25904
|
+
"dark": "#babdc7"
|
|
25905
|
+
},
|
|
25480
25906
|
"on-warning": {
|
|
25481
25907
|
"light": "#ffffff",
|
|
25482
25908
|
"dark": "#0f0f1a"
|
|
@@ -25569,6 +25995,14 @@
|
|
|
25569
25995
|
"light": "#ffffff",
|
|
25570
25996
|
"dark": "#181b23"
|
|
25571
25997
|
},
|
|
25998
|
+
"surface-dark": {
|
|
25999
|
+
"light": "#071437",
|
|
26000
|
+
"dark": "#071437"
|
|
26001
|
+
},
|
|
26002
|
+
"surface-dark-border": {
|
|
26003
|
+
"light": "#2a3553",
|
|
26004
|
+
"dark": "#2a3553"
|
|
26005
|
+
},
|
|
25572
26006
|
"surface-inverse": {
|
|
25573
26007
|
"light": "#071437",
|
|
25574
26008
|
"dark": "#e6e8ee"
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webority-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.106.0",
|
|
4
4
|
"platform": "Web",
|
|
5
5
|
"kitModuleVersion": 2,
|
|
6
6
|
"rendererProtocolVersion": 12,
|
|
7
7
|
"library": {
|
|
8
8
|
"name": "@webority/ui-react",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.106.0"
|
|
10
10
|
},
|
|
11
11
|
"files": {
|
|
12
12
|
"manifest.json": {
|
|
13
|
-
"sha256": "
|
|
14
|
-
"bytes":
|
|
13
|
+
"sha256": "efb71f83ae259eb8d7b1c9108727f8d55b70a6171395b464dddc3670cd38e586",
|
|
14
|
+
"bytes": 870484
|
|
15
15
|
},
|
|
16
16
|
"kit.js": {
|
|
17
|
-
"sha256": "
|
|
18
|
-
"bytes":
|
|
17
|
+
"sha256": "5f53206bead098d17b3ffb5df8c45274011f0f237de665e33297c6d0b869410c",
|
|
18
|
+
"bytes": 10909277
|
|
19
19
|
},
|
|
20
20
|
"kit.css": {
|
|
21
21
|
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./
|
|
1
|
+
import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import{useEffect as i,useId as a,useState as o}from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";var l=[`bordered`,`flat`];function u(e,t,n){if(Array.isArray(n)){let e=n.map(String);return new Set(t?e:e.slice(0,1))}let r=e.map((e,t)=>({item:e,key:e.key??String(t)})).filter(({item:e})=>e.open).map(({key:e})=>e);return new Set(t?r:r.slice(0,1))}function d(d){let{items:f=[],multiple:p=!1,openItems:m,variant:h=`bordered`,id:g,className:_=``,...v}=d;n(`AppAccordion`,v),t(`AppAccordion`,`variant`,h,l);let y=h===`flat`,b=s(`span`,{className:`faq-q-icon`,children:s(r,{name:`chevron-down`,size:18})}),x=a(),S=g||x,[C,w]=o(()=>u(f,p,m)),T=Array.isArray(m)?m.map(String).join(`\0`):null;i(()=>{T!==null&&w(u(f,p,m))},[T,p]);let E=(e,t)=>e.key??String(t),D=e=>{w(t=>{let n=new Set(p?t:[]);return t.has(e)?n.delete(e):n.add(e),n})};return s(`div`,{className:`faq-list${y?` wui-accordion-flat`:``}${_?` ${_}`:``}`,...e(`AppAccordion`,d),...v,children:f.map((e,t)=>{let n=E(e,t),r=C.has(n),i=`${S}-${t}`,a=`${i}-q`;return c(`div`,{className:`faq-item${r?` open`:``}`,children:[c(`button`,{type:`button`,className:`faq-q`,id:a,"aria-expanded":r,"aria-controls":i,onClick:()=>D(n),children:[y?b:null,e.title,e.count==null?null:s(`span`,{className:`wui-accordion-count`,children:e.count}),y?null:b]}),s(`section`,{className:`faq-a-wrap`,id:i,"aria-labelledby":a,inert:!r,"aria-hidden":!r||void 0,children:s(`div`,{className:`faq-a-inner`,children:e.content})})]},n)})})}export{d as default};
|