@sula-tech/webcomponents 0.24.0 → 0.25.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 (86) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/sula-avatar_32.cjs.entry.js +46 -15
  3. package/dist/cjs/sula-avatar_32.cjs.entry.js.map +1 -1
  4. package/dist/cjs/sula-workbench-menu.cjs.entry.js +29 -5
  5. package/dist/cjs/sula-workbench-menu.cjs.entry.js.map +1 -1
  6. package/dist/cjs/sula-workbench-menu.entry.cjs.js.map +1 -1
  7. package/dist/cjs/webcomponents.cjs.js +1 -1
  8. package/dist/collection/components/sula-button/sula-button.css +1 -1
  9. package/dist/collection/components/sula-icon/sula-icon.css +1 -1
  10. package/dist/collection/components/sula-loader/sula-loader.css +1 -1
  11. package/dist/collection/components/sula-modal/sula-modal.css +1 -1
  12. package/dist/collection/components/sula-modal/sula-modal.js +142 -11
  13. package/dist/collection/components/sula-modal/sula-modal.js.map +1 -1
  14. package/dist/collection/components/sula-modal/sula-modal.stories.js +48 -0
  15. package/dist/collection/components/sula-modal/sula-modal.stories.js.map +1 -1
  16. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.js +48 -4
  17. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.js.map +1 -1
  18. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.stories.js +40 -0
  19. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.stories.js.map +1 -1
  20. package/dist/components/{p-KitH8bea.js → p-BSlKsiiN.js} +3 -3
  21. package/dist/components/{p-KitH8bea.js.map → p-BSlKsiiN.js.map} +1 -1
  22. package/dist/components/{p-BORy1230.js → p-BlRYoc3b.js} +3 -3
  23. package/dist/components/{p-BORy1230.js.map → p-BlRYoc3b.js.map} +1 -1
  24. package/dist/components/{p-DK8hW-Cd.js → p-CNJmyTBM.js} +3 -3
  25. package/dist/components/{p-DK8hW-Cd.js.map → p-CNJmyTBM.js.map} +1 -1
  26. package/dist/components/{p-B_WIoxzn.js → p-Chv1iPo7.js} +4 -4
  27. package/dist/components/{p-B_WIoxzn.js.map → p-Chv1iPo7.js.map} +1 -1
  28. package/dist/components/{p-CGpfhGAG.js → p-CkBDMANF.js} +3 -3
  29. package/dist/components/{p-CGpfhGAG.js.map → p-CkBDMANF.js.map} +1 -1
  30. package/dist/components/{p-CWTfj4TV.js → p-Ckrg2kct.js} +3 -3
  31. package/dist/components/{p-CWTfj4TV.js.map → p-Ckrg2kct.js.map} +1 -1
  32. package/dist/components/{p-GEr9Dmhq.js → p-CqrWuXvX.js} +3 -3
  33. package/dist/components/{p-GEr9Dmhq.js.map → p-CqrWuXvX.js.map} +1 -1
  34. package/dist/components/{p-DwZCdDhF.js → p-DOhCUb27.js} +3 -3
  35. package/dist/components/{p-DwZCdDhF.js.map → p-DOhCUb27.js.map} +1 -1
  36. package/dist/components/{p-BssyNhpP.js → p-ej3XWtzq.js} +5 -5
  37. package/dist/components/{p-BssyNhpP.js.map → p-ej3XWtzq.js.map} +1 -1
  38. package/dist/components/sula-avatar.js +1 -1
  39. package/dist/components/sula-badge.js +1 -1
  40. package/dist/components/sula-breadcrumb.js +1 -1
  41. package/dist/components/sula-button.js +1 -1
  42. package/dist/components/sula-calendar.js +2 -2
  43. package/dist/components/sula-checkbox.js +1 -1
  44. package/dist/components/sula-chip.js +2 -2
  45. package/dist/components/sula-dropdown.js +1 -1
  46. package/dist/components/sula-icon-picker.js +4 -4
  47. package/dist/components/sula-icon.js +1 -1
  48. package/dist/components/sula-loader.js +1 -1
  49. package/dist/components/sula-menu-select-list.js +1 -1
  50. package/dist/components/sula-menu.js +1 -1
  51. package/dist/components/sula-modal.js +51 -15
  52. package/dist/components/sula-modal.js.map +1 -1
  53. package/dist/components/sula-profile-menu.js +1 -1
  54. package/dist/components/sula-progress-bar.js +1 -1
  55. package/dist/components/sula-search-bar.js +1 -1
  56. package/dist/components/sula-segmented-control.js +1 -1
  57. package/dist/components/sula-tag.js +1 -1
  58. package/dist/components/sula-textfield.js +1 -1
  59. package/dist/components/sula-tiles.js +1 -1
  60. package/dist/components/sula-timeline-list.js +1 -1
  61. package/dist/components/sula-toast-stack.js +2 -2
  62. package/dist/components/sula-toast.js +1 -1
  63. package/dist/components/sula-toggle.js +1 -1
  64. package/dist/components/sula-tooltip.js +1 -1
  65. package/dist/components/sula-workbench-menu.js +34 -8
  66. package/dist/components/sula-workbench-menu.js.map +1 -1
  67. package/dist/esm/loader.js +1 -1
  68. package/dist/esm/sula-avatar_32.entry.js +46 -15
  69. package/dist/esm/sula-avatar_32.entry.js.map +1 -1
  70. package/dist/esm/sula-workbench-menu.entry.js +29 -5
  71. package/dist/esm/sula-workbench-menu.entry.js.map +1 -1
  72. package/dist/esm/webcomponents.js +1 -1
  73. package/dist/types/components/sula-modal/sula-modal.d.ts +21 -0
  74. package/dist/types/components/sula-modal/sula-modal.stories.d.ts +22 -0
  75. package/dist/types/components/sula-workbench-menu/sula-workbench-menu.d.ts +7 -0
  76. package/dist/types/components/sula-workbench-menu/sula-workbench-menu.stories.d.ts +23 -0
  77. package/dist/types/components.d.ts +58 -0
  78. package/dist/webcomponents/{p-907588e9.entry.js → p-28e25fac.entry.js} +52 -19
  79. package/dist/webcomponents/p-28e25fac.entry.js.map +1 -0
  80. package/dist/webcomponents/{p-68a6d489.entry.js → p-50ad82d0.entry.js} +26 -6
  81. package/dist/webcomponents/p-50ad82d0.entry.js.map +1 -0
  82. package/dist/webcomponents/sula-workbench-menu.entry.esm.js.map +1 -1
  83. package/dist/webcomponents/webcomponents.esm.js +10 -3
  84. package/package.json +1 -1
  85. package/dist/webcomponents/p-68a6d489.entry.js.map +0 -1
  86. package/dist/webcomponents/p-907588e9.entry.js.map +0 -1
@@ -6,6 +6,7 @@ type StoryArgs = {
6
6
  density: SulaMenuDensity;
7
7
  labelOverflow: SulaMenuLabelOverflow;
8
8
  drilldownLevel: number;
9
+ drillPath?: string[];
9
10
  items: SulaWorkbenchMenuItem[];
10
11
  user: SulaWorkbenchMenuUser;
11
12
  profileItems?: SulaProfileMenuItem[];
@@ -47,6 +48,10 @@ declare const _default: {
47
48
  };
48
49
  description: string;
49
50
  };
51
+ drillPath: {
52
+ control: string;
53
+ description: string;
54
+ };
50
55
  items: {
51
56
  control: string;
52
57
  description: string;
@@ -122,6 +127,24 @@ export declare const WithProfileMenu: {
122
127
  };
123
128
  };
124
129
  export declare const CustomProfileItems: any;
130
+ export declare const ControlledDrillPath: {
131
+ (args: StoryArgs): HTMLDivElement;
132
+ args: {
133
+ menuTitle: string;
134
+ density: SulaMenuDensity;
135
+ labelOverflow: SulaMenuLabelOverflow;
136
+ drilldownLevel: number;
137
+ items: SulaWorkbenchMenuItem[];
138
+ user: SulaWorkbenchMenuUser;
139
+ };
140
+ parameters: {
141
+ docs: {
142
+ description: {
143
+ story: string;
144
+ };
145
+ };
146
+ };
147
+ };
125
148
  export declare const InlineOnly: any;
126
149
  export declare const ComparisonWithCurrentSulaMenu: {
127
150
  (): HTMLDivElement;
@@ -503,11 +503,21 @@ export namespace Components {
503
503
  * @default ''
504
504
  */
505
505
  "modalTitle": string;
506
+ /**
507
+ * Modal width on desktop (any CSS value, e.g. `900px`). Empty keeps the type default
508
+ * @default ''
509
+ */
510
+ "modalWidth": string;
506
511
  /**
507
512
  * Is modal opened
508
513
  * @default false
509
514
  */
510
515
  "opened": boolean;
516
+ /**
517
+ * Disable the primary button
518
+ * @default false
519
+ */
520
+ "primaryButtonDisabled": boolean;
511
521
  /**
512
522
  * Primary button text
513
523
  * @default ''
@@ -518,11 +528,26 @@ export namespace Components {
518
528
  * @default ''
519
529
  */
520
530
  "promoImage": string;
531
+ /**
532
+ * Disable the secondary button
533
+ * @default false
534
+ */
535
+ "secondaryButtonDisabled": boolean;
521
536
  /**
522
537
  * Secondary button text
523
538
  * @default ''
524
539
  */
525
540
  "secondaryButtonText": string;
541
+ /**
542
+ * Let the modal grow with its content (no slot scroll); the overlay scrolls instead when it exceeds the viewport
543
+ * @default false
544
+ */
545
+ "slotAutoHeight": boolean;
546
+ /**
547
+ * Max height of the slot area (any CSS value, e.g. `60vh`). Empty keeps the type default
548
+ * @default ''
549
+ */
550
+ "slotMaxHeight": string;
526
551
  /**
527
552
  * Slot overflow behavior
528
553
  * @default SulaModalSlotOverflow.Auto
@@ -1005,6 +1030,10 @@ export namespace Components {
1005
1030
  * @default SulaMenuDensity.Default
1006
1031
  */
1007
1032
  "density": SulaMenuDensity;
1033
+ /**
1034
+ * Controls the drill-down from the host: ids from the root to the item whose children are shown. An empty array shows the tree (leaves the drill-down). Leave it undefined to let only user clicks navigate.
1035
+ */
1036
+ "drillPath"?: string[];
1008
1037
  /**
1009
1038
  * Depth (1-based) from which items with children open a drill-down panel instead of expanding in place. With the default of 3, the first two levels expand inline and deeper branches drill down.
1010
1039
  * @default 3
@@ -2255,6 +2284,11 @@ declare namespace LocalJSX {
2255
2284
  * @default ''
2256
2285
  */
2257
2286
  "modalTitle"?: string;
2287
+ /**
2288
+ * Modal width on desktop (any CSS value, e.g. `900px`). Empty keeps the type default
2289
+ * @default ''
2290
+ */
2291
+ "modalWidth"?: string;
2258
2292
  /**
2259
2293
  * Event emitted when the modal is closed
2260
2294
  */
@@ -2272,6 +2306,11 @@ declare namespace LocalJSX {
2272
2306
  * @default false
2273
2307
  */
2274
2308
  "opened"?: boolean;
2309
+ /**
2310
+ * Disable the primary button
2311
+ * @default false
2312
+ */
2313
+ "primaryButtonDisabled"?: boolean;
2275
2314
  /**
2276
2315
  * Primary button text
2277
2316
  * @default ''
@@ -2282,11 +2321,26 @@ declare namespace LocalJSX {
2282
2321
  * @default ''
2283
2322
  */
2284
2323
  "promoImage"?: string;
2324
+ /**
2325
+ * Disable the secondary button
2326
+ * @default false
2327
+ */
2328
+ "secondaryButtonDisabled"?: boolean;
2285
2329
  /**
2286
2330
  * Secondary button text
2287
2331
  * @default ''
2288
2332
  */
2289
2333
  "secondaryButtonText"?: string;
2334
+ /**
2335
+ * Let the modal grow with its content (no slot scroll); the overlay scrolls instead when it exceeds the viewport
2336
+ * @default false
2337
+ */
2338
+ "slotAutoHeight"?: boolean;
2339
+ /**
2340
+ * Max height of the slot area (any CSS value, e.g. `60vh`). Empty keeps the type default
2341
+ * @default ''
2342
+ */
2343
+ "slotMaxHeight"?: string;
2290
2344
  /**
2291
2345
  * Slot overflow behavior
2292
2346
  * @default SulaModalSlotOverflow.Auto
@@ -2887,6 +2941,10 @@ declare namespace LocalJSX {
2887
2941
  * @default SulaMenuDensity.Default
2888
2942
  */
2889
2943
  "density"?: SulaMenuDensity;
2944
+ /**
2945
+ * Controls the drill-down from the host: ids from the root to the item whose children are shown. An empty array shows the tree (leaves the drill-down). Leave it undefined to let only user clicks navigate.
2946
+ */
2947
+ "drillPath"?: string[];
2890
2948
  /**
2891
2949
  * Depth (1-based) from which items with children open a drill-down panel instead of expanding in place. With the default of 3, the first two levels expand inline and deeper branches drill down.
2892
2950
  * @default 3