@cscfi/csc-ui 4.0.0-alpha.2 → 4.0.0-alpha.21

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 (88) hide show
  1. package/dist/csc-ui.js +10212 -7251
  2. package/dist/custom-elements.json +2278 -257
  3. package/dist/docs/c-alert/usage.md +24 -0
  4. package/dist/docs/c-autocomplete/usage.md +152 -0
  5. package/dist/docs/c-button-group/usage.md +14 -1
  6. package/dist/docs/c-checkbox/usage.md +53 -0
  7. package/dist/docs/c-main/usage.md +21 -1
  8. package/dist/docs/c-menu/usage.md +15 -0
  9. package/dist/docs/c-menu-item/usage.md +6 -0
  10. package/dist/docs/c-option-value/usage.md +1 -0
  11. package/dist/docs/c-popover/usage.md +33 -0
  12. package/dist/docs/c-progress-bar/usage.md +23 -0
  13. package/dist/docs/c-progress-circle/usage.md +25 -0
  14. package/dist/docs/c-radio/usage.md +45 -0
  15. package/dist/docs/c-radio-group/usage.md +67 -0
  16. package/dist/docs/c-select/usage.md +127 -0
  17. package/dist/docs/c-side-navigation/usage.md +21 -0
  18. package/dist/docs/c-spinner/usage.md +21 -0
  19. package/dist/docs/c-switch/usage.md +36 -0
  20. package/dist/docs/c-tab-buttons/usage.md +7 -0
  21. package/dist/docs/c-table/usage.md +14 -0
  22. package/dist/docs/c-toolbar/usage.md +17 -0
  23. package/dist/docs/c-tooltip/usage.md +30 -0
  24. package/dist/docs/c-tree-select/usage.md +156 -0
  25. package/dist/styles/css/tailwind-theme.css +32 -0
  26. package/dist/styles/css/tokens.css +707 -197
  27. package/dist/vscode.css-custom-data.json +286 -19
  28. package/dist/vscode.html-custom-data.json +334 -51
  29. package/dist/web-types.json +1200 -190
  30. package/dist-types/components/c-alert/CAlert.vue.d.ts +18 -4
  31. package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +118 -18
  32. package/dist-types/components/c-button/CButton.vue.d.ts +1 -1
  33. package/dist-types/components/c-button-group/CButtonGroup.vue.d.ts +1 -1
  34. package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +3 -3
  35. package/dist-types/components/c-data-table/CDataTable.vue.d.ts +6 -2
  36. package/dist-types/components/c-dropdown/CDropdown.vue.d.ts +48 -5
  37. package/dist-types/components/c-icon/CIcon.vue.d.ts +1 -1
  38. package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +1 -1
  39. package/dist-types/components/c-input/CInput.vue.d.ts +6 -2
  40. package/dist-types/components/c-login-button/CLoginButton.vue.d.ts +4 -2
  41. package/dist-types/components/c-main/CMain.vue.d.ts +9 -2
  42. package/dist-types/components/c-menu/CMenu.vue.d.ts +14 -4
  43. package/dist-types/components/c-menu-item/CMenuItem.vue.d.ts +30 -3
  44. package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +1 -1
  45. package/dist-types/components/c-pagination/CPagination.vue.d.ts +1 -1
  46. package/dist-types/components/c-popover/CPopover.vue.d.ts +43 -0
  47. package/dist-types/components/c-progress-circle/CProgressCircle.vue.d.ts +32 -0
  48. package/dist-types/components/c-radio/CRadio.vue.d.ts +7 -11
  49. package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +9 -47
  50. package/dist-types/components/c-select/CSelect.vue.d.ts +115 -24
  51. package/dist-types/components/c-side-navigation/CSideNavigation.vue.d.ts +1 -1
  52. package/dist-types/components/c-spinner/CSpinner.vue.d.ts +1 -1
  53. package/dist-types/components/c-switch/CSwitch.vue.d.ts +1 -1
  54. package/dist-types/components/c-table/CTable.vue.d.ts +11 -1
  55. package/dist-types/components/c-table/injectTableStyles.d.ts +1 -0
  56. package/dist-types/components/c-tag/CTag.vue.d.ts +8 -1
  57. package/dist-types/components/c-text-field/CTextField.vue.d.ts +15 -4
  58. package/dist-types/components/c-toolbar/CToolbar.vue.d.ts +10 -1
  59. package/dist-types/components/c-tooltip/CTooltip.vue.d.ts +49 -0
  60. package/dist-types/components/c-tree-select/CTreeSelect.vue.d.ts +261 -0
  61. package/dist-types/index.d.ts +14 -2
  62. package/dist-types/shared/FieldMessage.vue.d.ts +21 -0
  63. package/dist-types/shared/PanelHeadingRow.vue.d.ts +13 -0
  64. package/dist-types/shared/SelectionIndicator.vue.d.ts +21 -0
  65. package/dist-types/shared/appDefaults.d.ts +75 -0
  66. package/dist-types/shared/defineElement.d.ts +1 -0
  67. package/dist-types/shared/lightDismiss.d.ts +35 -0
  68. package/dist-types/shared/modalStack.d.ts +4 -3
  69. package/dist-types/shared/optionLabel.d.ts +18 -0
  70. package/dist-types/shared/pageLock.d.ts +26 -0
  71. package/dist-types/shared/peekCap.d.ts +35 -0
  72. package/dist-types/shared/popoverChain.d.ts +65 -0
  73. package/dist-types/shared/positionArea.d.ts +13 -0
  74. package/dist-types/shared/selectAll.d.ts +29 -0
  75. package/dist-types/shared/splitMatches.d.ts +18 -0
  76. package/dist-types/shared/useAnchoredPanel.d.ts +98 -0
  77. package/dist-types/shared/useDesignatedTrigger.d.ts +40 -0
  78. package/dist-types/shared/useHostStates.d.ts +25 -0
  79. package/dist-types/shared/useNarrowViewport.d.ts +19 -0
  80. package/dist-types/shared/useScrollStrip.d.ts +39 -0
  81. package/dist-types/shared/useStatusAnnouncer.d.ts +33 -0
  82. package/dist-types/shared/visualViewport.d.ts +51 -0
  83. package/dist-types/tag-name-map.d.ts +440 -51
  84. package/dist-types/theme/chart-data.d.ts +51 -0
  85. package/dist-types/theme/ramp.d.ts +38 -0
  86. package/dist-types/theme/themeMode.d.ts +51 -0
  87. package/dist-types/types.d.ts +13 -0
  88. package/package.json +19 -8
@@ -6,6 +6,11 @@
6
6
  "name": "--c-font-family",
7
7
  "description": "Font stack applied to the label (native buttons do not inherit it).",
8
8
  "values": []
9
+ },
10
+ {
11
+ "name": "--c-main-viewport-height",
12
+ "description": "Height of the scroll viewport the layout pins against (default `100dvh`); a bounded shell with its own scrollbar sets it to its box height",
13
+ "values": []
9
14
  }
10
15
  ],
11
16
  "pseudoElements": [
@@ -31,15 +36,20 @@
31
36
  },
32
37
  {
33
38
  "name": "::part(root)",
34
- "description": "The outer bordered box carrying the type's accent color"
39
+ "description": "The tinted box carrying the type's wash, hairline border and accent edge"
35
40
  },
41
+ { "name": "::part(icon)", "description": "The status icon svg" },
36
42
  {
37
- "name": "::part(icon)",
38
- "description": "The status icon svg shown for the error/info/success/warning types"
43
+ "name": "::part(content)",
44
+ "description": "The wrapper around the heading and message content"
39
45
  },
40
46
  {
41
- "name": "::part(content)",
42
- "description": "The wrapper around the slotted title and message content"
47
+ "name": "::part(heading)",
48
+ "description": "The heading paragraph rendered from the `heading` prop"
49
+ },
50
+ {
51
+ "name": "::part(dismiss)",
52
+ "description": "The dismiss button rendered when `dismissible` is set"
43
53
  },
44
54
  {
45
55
  "name": "::part(panel)",
@@ -49,15 +59,56 @@
49
59
  "name": "::part(card)",
50
60
  "description": "The elevated surface inside the panel holding the search row and the list"
51
61
  },
62
+ {
63
+ "name": "::part(heading-row)",
64
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
65
+ },
66
+ {
67
+ "name": "::part(heading)",
68
+ "description": "The field label naming the fullscreen panel"
69
+ },
70
+ {
71
+ "name": "::part(close)",
72
+ "description": "The close button of the fullscreen panel"
73
+ },
52
74
  {
53
75
  "name": "::part(search)",
54
76
  "description": "The search-input row at the top of the panel"
55
77
  },
56
78
  { "name": "::part(list)", "description": "The scrollable options listbox" },
79
+ { "name": "::part(item)", "description": "One option row in the list" },
80
+ {
81
+ "name": "::part(select-all)",
82
+ "description": "The pinned select-all row at the top of the list (`multiple` mode with `select-all`); carries the same indicator / mark parts as an option row"
83
+ },
84
+ {
85
+ "name": "::part(indicator)",
86
+ "description": "The decorative checkbox box on an option row in `multiple` mode; border, fill and glyph draw with `currentColor`, so `color` recolours them together (the c-checkbox recipe)"
87
+ },
88
+ {
89
+ "name": "::part(mark)",
90
+ "description": "The check glyph inside a row indicator; draws with `currentColor`"
91
+ },
92
+ {
93
+ "name": "::part(match)",
94
+ "description": "A run of an option's label equal to the query, in the row; underlined in the primary colour, text inherits the row"
95
+ },
57
96
  {
58
97
  "name": "::part(info)",
59
98
  "description": "The info row: loading while `loading` with an empty list, otherwise no-results when the query matches no options"
60
99
  },
100
+ {
101
+ "name": "::part(tags)",
102
+ "description": "The row of selected-value tags inside the field (`multiple` mode)"
103
+ },
104
+ {
105
+ "name": "::part(tag)",
106
+ "description": "One selected-value tag: the `c-tag` host, including the overflow tag"
107
+ },
108
+ {
109
+ "name": "::part(tag-root)",
110
+ "description": "The pill box inside each tag (the `c-tag` `root` part), for colours and borders"
111
+ },
61
112
  {
62
113
  "name": "::part(root)",
63
114
  "description": "The badge pill itself, absolutely positioned at the top right corner of its parent"
@@ -76,7 +127,7 @@
76
127
  },
77
128
  {
78
129
  "name": "::part(root)",
79
- "description": "The segmented-control box that frames the buttons"
130
+ "description": "The track: the framed segmented-control box the buttons sit in"
80
131
  },
81
132
  {
82
133
  "name": "::part(label)",
@@ -84,7 +135,7 @@
84
135
  },
85
136
  {
86
137
  "name": "::part(root)",
87
- "description": "The card's visible surface, carries the background, border, radius, shadow and section spacing"
138
+ "description": "The card's visible surface, carries the background and its ink, border, radius, shadow and section spacing"
88
139
  },
89
140
  {
90
141
  "name": "::part(fullscreen-toggle)",
@@ -132,7 +183,11 @@
132
183
  },
133
184
  {
134
185
  "name": "::part(indicator)",
135
- "description": "The circular ripple surface holding the checkbox box and checkmark"
186
+ "description": "The checkbox box itself — the bordered square that fills when checked; border, fill and the keyboard focus ring (its `::before`) all draw with `currentColor`, so `color` recolours them together"
187
+ },
188
+ {
189
+ "name": "::part(mark)",
190
+ "description": "The SVG check / indeterminate glyph revealed inside the indicator; draws with `currentColor`, so `color` recolours it"
136
191
  },
137
192
  {
138
193
  "name": "::part(content)",
@@ -140,7 +195,7 @@
140
195
  },
141
196
  {
142
197
  "name": "::part(message)",
143
- "description": "The hint / error message line below the checkbox"
198
+ "description": "The hint / error message area below the checkbox (always reserved unless `hide-details`)"
144
199
  },
145
200
  {
146
201
  "name": "::part(root)",
@@ -182,6 +237,36 @@
182
237
  "name": "::part(root)",
183
238
  "description": "The separator line element itself"
184
239
  },
240
+ {
241
+ "name": "::part(menu)",
242
+ "description": "The positioned dialog surface holding the field and the list"
243
+ },
244
+ {
245
+ "name": "::part(heading-row)",
246
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
247
+ },
248
+ {
249
+ "name": "::part(heading)",
250
+ "description": "The field label naming the fullscreen panel"
251
+ },
252
+ {
253
+ "name": "::part(close)",
254
+ "description": "The close button of the fullscreen panel"
255
+ },
256
+ { "name": "::part(list)", "description": "The scrolling listbox" },
257
+ { "name": "::part(item)", "description": "One option row" },
258
+ {
259
+ "name": "::part(select-all)",
260
+ "description": "The pinned select-all row at the top of the list in `multiple` mode; carries the same indicator / mark parts as an option row"
261
+ },
262
+ {
263
+ "name": "::part(indicator)",
264
+ "description": "The decorative checkbox box on an option row in `multiple` mode; border, fill and glyph draw with `currentColor`, so `color` recolours them together"
265
+ },
266
+ {
267
+ "name": "::part(mark)",
268
+ "description": "The check glyph inside a row indicator; draws with `currentColor`"
269
+ },
185
270
  {
186
271
  "name": "::part(root)",
187
272
  "description": "The `<svg>` element rendering the icon"
@@ -246,9 +331,13 @@
246
331
  "name": "::part(root)",
247
332
  "description": "The anchor element forming the whole clickable card"
248
333
  },
334
+ {
335
+ "name": "::part(image-wrap)",
336
+ "description": "The area above the title bar that centers the logo (default image or slotted content)"
337
+ },
249
338
  {
250
339
  "name": "::part(image)",
251
- "description": "The provider logo image centered in the card"
340
+ "description": "The default provider logo `<img>` (absent when the `image` slot is used)"
252
341
  },
253
342
  {
254
343
  "name": "::part(title)",
@@ -285,7 +374,7 @@
285
374
  },
286
375
  {
287
376
  "name": "::part(root)",
288
- "description": "The main element carrying the page background and dashboard grid layout"
377
+ "description": "The main element carrying the page canvas and the dashboard grid layout"
289
378
  },
290
379
  {
291
380
  "name": "::part(trigger)",
@@ -307,6 +396,14 @@
307
396
  "name": "::part(content)",
308
397
  "description": "The flex wrapper around the default-slot content"
309
398
  },
399
+ {
400
+ "name": "::part(icon)",
401
+ "description": "The leading icon rendered from the `icon` prop"
402
+ },
403
+ {
404
+ "name": "::part(check)",
405
+ "description": "The trailing indicator icon shown while the item is active"
406
+ },
310
407
  {
311
408
  "name": "::part(submenu-panel)",
312
409
  "description": "The floating popover holding the submenu"
@@ -353,7 +450,7 @@
353
450
  },
354
451
  {
355
452
  "name": "::part(scroll-indicator)",
356
- "description": "The fixed progress bar at the top of the viewport tracking scroll position"
453
+ "description": "The fixed progress bar at the top of the viewport tracking how far the document is scrolled"
357
454
  },
358
455
  {
359
456
  "name": "::part(container)",
@@ -375,6 +472,18 @@
375
472
  "name": "::part(pages)",
376
473
  "description": "The `<ul>` list of page buttons and the prev/next controls"
377
474
  },
475
+ {
476
+ "name": "::part(trigger)",
477
+ "description": "The inline wrapper around the slotted trigger, serving as the panel's anchor"
478
+ },
479
+ {
480
+ "name": "::part(panel)",
481
+ "description": "The floating popover surface positioned against the trigger"
482
+ },
483
+ {
484
+ "name": "::part(heading)",
485
+ "description": "The heading rendered from the `heading` prop"
486
+ },
378
487
  {
379
488
  "name": "::part(root)",
380
489
  "description": "The outer flex wrapper around the bar and the details line"
@@ -389,21 +498,94 @@
389
498
  },
390
499
  {
391
500
  "name": "::part(root)",
392
- "description": "The radiogroup wrapper element carrying the disabled/error states"
501
+ "description": "The wrapper around the ring and the centered content"
502
+ },
503
+ {
504
+ "name": "::part(track)",
505
+ "description": "The background ring (SVG circle)"
506
+ },
507
+ { "name": "::part(bar)", "description": "The value arc (SVG circle)" },
508
+ {
509
+ "name": "::part(content)",
510
+ "description": "The centered slot-content wrapper"
511
+ },
512
+ {
513
+ "name": "::part(root)",
514
+ "description": "The `<label>` row wrapping the input, indicator and label content"
515
+ },
516
+ {
517
+ "name": "::part(indicator)",
518
+ "description": "The radio ring itself; the selection dot is its `::after` and the keyboard focus ring its `::before` — all three follow `currentColor`, so `color` recolours the whole indicator, focus ring included"
519
+ },
520
+ {
521
+ "name": "::part(content)",
522
+ "description": "Wrapper around the slotted label content"
393
523
  },
524
+ { "name": "::part(root)", "description": "The radiogroup wrapper element" },
394
525
  {
395
526
  "name": "::part(label)",
396
527
  "description": "The group label above the radio buttons"
397
528
  },
398
529
  {
399
530
  "name": "::part(items)",
400
- "description": "The wrapper around the rendered radio button rows"
531
+ "description": "The container the radios are slotted into"
401
532
  },
402
533
  {
403
534
  "name": "::part(message)",
404
- "description": "The hint/error message line below the radios"
535
+ "description": "The hint/error message area below the radios (always reserved unless `hide-details`)"
536
+ },
537
+ {
538
+ "name": "::part(menu)",
539
+ "description": "The dropdown surface (the positioned dialog) holding the field and the list"
540
+ },
541
+ {
542
+ "name": "::part(heading-row)",
543
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
544
+ },
545
+ {
546
+ "name": "::part(heading)",
547
+ "description": "The field label naming the fullscreen panel"
548
+ },
549
+ {
550
+ "name": "::part(close)",
551
+ "description": "The close button of the fullscreen panel"
552
+ },
553
+ {
554
+ "name": "::part(list)",
555
+ "description": "The scrolling listbox of options"
556
+ },
557
+ {
558
+ "name": "::part(item)",
559
+ "description": "One option row in the list. Any `part` attribute set on content inside a slotted `<c-option>` is exported too, so `c-select::part(<name>)` reaches the consumer's own option markup"
560
+ },
561
+ {
562
+ "name": "::part(select-all)",
563
+ "description": "The pinned select-all row at the top of the list (`multiple` mode with `select-all`); carries the same indicator / mark parts as an option row"
564
+ },
565
+ {
566
+ "name": "::part(indicator)",
567
+ "description": "The decorative checkbox box on an option row in `multiple` mode; border, fill and glyph draw with `currentColor`, so `color` recolours them together (the c-checkbox recipe)"
568
+ },
569
+ {
570
+ "name": "::part(mark)",
571
+ "description": "The check glyph inside a row indicator; draws with `currentColor`"
572
+ },
573
+ {
574
+ "name": "::part(tags)",
575
+ "description": "The row of selected-value tags inside the field (`multiple` mode)"
576
+ },
577
+ {
578
+ "name": "::part(tag)",
579
+ "description": "One selected-value tag: the `c-tag` host, including the overflow tag"
580
+ },
581
+ {
582
+ "name": "::part(tag-root)",
583
+ "description": "The pill box inside each tag (the `c-tag` `root` part), for colours and borders"
584
+ },
585
+ {
586
+ "name": "::part(root)",
587
+ "description": "The outer drawer container: the item list above the bottom slot's region"
405
588
  },
406
- { "name": "::part(root)", "description": "The outer drawer container" },
407
589
  {
408
590
  "name": "::part(nav)",
409
591
  "description": "The scrollable `<nav>` element holding the navigation items"
@@ -512,6 +694,14 @@
512
694
  "name": "::part(indicator)",
513
695
  "description": "The sliding fill highlighting the active tab"
514
696
  },
697
+ {
698
+ "name": "::part(scroll-back)",
699
+ "description": "The edge arrow that scrolls an overflowing strip back"
700
+ },
701
+ {
702
+ "name": "::part(scroll-forward)",
703
+ "description": "The edge arrow that scrolls an overflowing strip forward"
704
+ },
515
705
  {
516
706
  "name": "::part(root)",
517
707
  "description": "The panel's padded content wrapper"
@@ -550,7 +740,7 @@
550
740
  },
551
741
  {
552
742
  "name": "::part(root)",
553
- "description": "The toast's outer box carrying the accent border and shadow"
743
+ "description": "The toast's outer box: the inverted-surface pill carrying the shadow"
554
744
  },
555
745
  {
556
746
  "name": "::part(custom)",
@@ -562,7 +752,15 @@
562
752
  },
563
753
  {
564
754
  "name": "::part(item)",
565
- "description": "Row layout of a standard toast: type icon, message body and close button"
755
+ "description": "Row layout of a standard toast: status badge, message body and dismiss button"
756
+ },
757
+ {
758
+ "name": "::part(badge)",
759
+ "description": "The circular tinted badge holding the status icon"
760
+ },
761
+ {
762
+ "name": "::part(dismiss)",
763
+ "description": "The dismiss button (icon-only, or labelled when the message sets `closeText`)"
566
764
  },
567
765
  {
568
766
  "name": "::part(progress)",
@@ -574,7 +772,76 @@
574
772
  },
575
773
  {
576
774
  "name": "::part(root)",
577
- "description": "The toolbar bar itself, fixed to the top of the viewport"
775
+ "description": "The toolbar bar itself: pinned to the top of its scroll container by default, in flow when `static`"
776
+ },
777
+ {
778
+ "name": "::part(trigger)",
779
+ "description": "The inline wrapper around the slotted trigger, serving as the panel's anchor"
780
+ },
781
+ {
782
+ "name": "::part(panel)",
783
+ "description": "The floating tooltip bubble positioned against the trigger"
784
+ },
785
+ {
786
+ "name": "::part(panel)",
787
+ "description": "The top-layer popover container anchored below the field"
788
+ },
789
+ {
790
+ "name": "::part(card)",
791
+ "description": "The elevated surface inside the panel holding the search row, the breadcrumb, the header and the list"
792
+ },
793
+ {
794
+ "name": "::part(heading-row)",
795
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
796
+ },
797
+ {
798
+ "name": "::part(heading)",
799
+ "description": "The field label naming the fullscreen panel"
800
+ },
801
+ {
802
+ "name": "::part(close)",
803
+ "description": "The close button of the fullscreen panel"
804
+ },
805
+ {
806
+ "name": "::part(search)",
807
+ "description": "The search-input row at the top of the panel"
808
+ },
809
+ {
810
+ "name": "::part(breadcrumb)",
811
+ "description": "The breadcrumb navigation naming the browsed level's path"
812
+ },
813
+ {
814
+ "name": "::part(crumb)",
815
+ "description": "One crumb in the breadcrumb: the root crumb, an ancestor, or the collapsed \"…\" crumb"
816
+ },
817
+ {
818
+ "name": "::part(header)",
819
+ "description": "The header line under the breadcrumb: the level to choose and its step counter, or the match count and the \"Browse instead\" control"
820
+ },
821
+ {
822
+ "name": "::part(list)",
823
+ "description": "The scrollable listbox: the level list while browsing, the results while searching"
824
+ },
825
+ { "name": "::part(item)", "description": "One item row in the list" },
826
+ {
827
+ "name": "::part(select-branch)",
828
+ "description": "The pinned select-branch row at the top of a level list inside a branch (`allow-branch`)"
829
+ },
830
+ {
831
+ "name": "::part(code)",
832
+ "description": "An item's code column, in a row and in the closed field"
833
+ },
834
+ {
835
+ "name": "::part(path)",
836
+ "description": "The ancestor path line under a search result's label"
837
+ },
838
+ {
839
+ "name": "::part(match)",
840
+ "description": "A run of an item's code, label or path equal to the query, in a row; underlined in the primary colour, text inherits the row"
841
+ },
842
+ {
843
+ "name": "::part(info)",
844
+ "description": "The no-results row shown when nothing is listed"
578
845
  }
579
846
  ]
580
847
  }