@sula-tech/webcomponents 0.17.5 → 0.17.7

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 (84) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{sula-avatar_29.cjs.entry.js → sula-avatar_30.cjs.entry.js} +318 -40
  3. package/dist/cjs/sula-avatar_30.cjs.entry.js.map +1 -0
  4. package/dist/cjs/webcomponents.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +1 -0
  6. package/dist/collection/components/sula-icon/sula-icon.css +1 -1
  7. package/dist/collection/components/sula-menu/model/sula-menu.model.js +2 -0
  8. package/dist/collection/components/sula-menu/model/sula-menu.model.js.map +1 -0
  9. package/dist/collection/components/sula-menu/sula-menu.css +1 -0
  10. package/dist/collection/components/sula-menu/sula-menu.js +442 -0
  11. package/dist/collection/components/sula-menu/sula-menu.js.map +1 -0
  12. package/dist/collection/components/sula-menu/sula-menu.stories.js +401 -0
  13. package/dist/collection/components/sula-menu/sula-menu.stories.js.map +1 -0
  14. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +1 -1
  15. package/dist/collection/components/sula-progress-bar/sula-progress-bar.js +2 -2
  16. package/dist/collection/components/sula-radio-button/sula-radio-button.js +2 -2
  17. package/dist/collection/components/sula-search-bar/sula-search-bar.js +2 -2
  18. package/dist/collection/components/sula-segmented-control/sula-segmented-control.js +1 -1
  19. package/dist/collection/components/sula-switch/sula-switch.js +4 -4
  20. package/dist/collection/components/sula-table/sula-table.js +3 -3
  21. package/dist/collection/components/sula-table-body/sula-table-body.js +1 -1
  22. package/dist/collection/components/sula-table-cell/sula-table-cell.js +2 -2
  23. package/dist/collection/components/sula-table-head-cell/sula-table-head-cell.js +2 -2
  24. package/dist/collection/components/sula-table-header/sula-table-header.js +1 -1
  25. package/dist/collection/components/sula-table-row/sula-table-row.js +1 -1
  26. package/dist/collection/components/sula-tag/sula-tag.js +3 -3
  27. package/dist/collection/components/sula-textarea/sula-textarea.js +6 -6
  28. package/dist/collection/components/sula-textfield/sula-textfield.js +2 -2
  29. package/dist/collection/components/sula-tiles/sula-tiles.js +1 -1
  30. package/dist/collection/components/sula-timeline-list/sula-timeline-list.js +1 -1
  31. package/dist/collection/components/sula-toggle/sula-toggle.js +1 -1
  32. package/dist/collection/components/sula-tooltip/sula-tooltip.js +1 -1
  33. package/dist/components/{p-fgs5TBQ7.js → p-B2GnTWgR.js} +3 -3
  34. package/dist/components/{p-fgs5TBQ7.js.map → p-B2GnTWgR.js.map} +1 -1
  35. package/dist/components/{p-Ds1BVj4V.js → p-BJMnU9Gv.js} +3 -3
  36. package/dist/components/{p-Ds1BVj4V.js.map → p-BJMnU9Gv.js.map} +1 -1
  37. package/dist/components/{p-DksR9NcR.js → p-DtVItq_Q.js} +3 -3
  38. package/dist/components/{p-DksR9NcR.js.map → p-DtVItq_Q.js.map} +1 -1
  39. package/dist/components/sula-avatar.js +1 -1
  40. package/dist/components/sula-badge.js +1 -1
  41. package/dist/components/sula-breadcrumb.js +1 -1
  42. package/dist/components/sula-button.js +1 -1
  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 +2 -2
  46. package/dist/components/sula-icon.js +1 -1
  47. package/dist/components/sula-menu-select-list.js +1 -1
  48. package/dist/components/sula-menu.d.ts +11 -0
  49. package/dist/components/sula-menu.js +317 -0
  50. package/dist/components/sula-menu.js.map +1 -0
  51. package/dist/components/sula-modal.js +2 -2
  52. package/dist/components/sula-progress-bar.js +3 -3
  53. package/dist/components/sula-radio-button.js +2 -2
  54. package/dist/components/sula-search-bar.js +3 -3
  55. package/dist/components/sula-segmented-control.js +2 -2
  56. package/dist/components/sula-switch.js +4 -4
  57. package/dist/components/sula-table-body.js +1 -1
  58. package/dist/components/sula-table-cell.js +2 -2
  59. package/dist/components/sula-table-head-cell.js +2 -2
  60. package/dist/components/sula-table-header.js +1 -1
  61. package/dist/components/sula-table-row.js +1 -1
  62. package/dist/components/sula-table.js +3 -3
  63. package/dist/components/sula-tag.js +4 -4
  64. package/dist/components/sula-textarea.js +6 -6
  65. package/dist/components/sula-textfield.js +3 -3
  66. package/dist/components/sula-tiles.js +2 -2
  67. package/dist/components/sula-timeline-list.js +2 -2
  68. package/dist/components/sula-toggle.js +2 -2
  69. package/dist/components/sula-tooltip.js +2 -2
  70. package/dist/esm/loader.js +1 -1
  71. package/dist/esm/{sula-avatar_29.entry.js → sula-avatar_30.entry.js} +318 -41
  72. package/dist/esm/sula-avatar_30.entry.js.map +1 -0
  73. package/dist/esm/webcomponents.js +1 -1
  74. package/dist/types/components/sula-menu/model/sula-menu.model.d.ts +21 -0
  75. package/dist/types/components/sula-menu/sula-menu.d.ts +73 -0
  76. package/dist/types/components/sula-menu/sula-menu.stories.d.ts +56 -0
  77. package/dist/types/components.d.ts +74 -0
  78. package/dist/webcomponents/{p-342be8e3.entry.js → p-b58b85c4.entry.js} +832 -416
  79. package/dist/webcomponents/p-b58b85c4.entry.js.map +1 -0
  80. package/dist/webcomponents/webcomponents.esm.js +14 -5
  81. package/package.json +1 -1
  82. package/dist/cjs/sula-avatar_29.cjs.entry.js.map +0 -1
  83. package/dist/esm/sula-avatar_29.entry.js.map +0 -1
  84. package/dist/webcomponents/p-342be8e3.entry.js.map +0 -1
@@ -0,0 +1,401 @@
1
+ const BRAND_IMAGE = `data:image/svg+xml;utf8,${encodeURIComponent(`
2
+ <svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <rect width="80" height="80" rx="20" fill="#E5231B"/>
4
+ <rect x="12" y="12" width="56" height="56" rx="18" fill="white" fill-opacity="0.08"/>
5
+ <path d="M52 24H35.5C31.3579 24 28 27.3579 28 31.5C28 35.6421 31.3579 39 35.5 39H44.5C48.6421 39 52 42.3579 52 46.5C52 50.6421 48.6421 54 44.5 54H28" stroke="white" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
6
+ </svg>
7
+ `)}`;
8
+ const defaultItems = [
9
+ {
10
+ id: 'overview',
11
+ label: 'Visao Geral',
12
+ icon: 'ph ph-house-line',
13
+ selected: true,
14
+ },
15
+ {
16
+ id: 'operations',
17
+ label: 'Operacoes',
18
+ icon: 'ph ph-briefcase',
19
+ expanded: true,
20
+ children: [
21
+ {
22
+ id: 'policies',
23
+ label: 'Apolices',
24
+ icon: 'ph ph-files',
25
+ },
26
+ {
27
+ id: 'endorsements',
28
+ label: 'Endossos',
29
+ icon: 'ph ph-arrows-clockwise',
30
+ },
31
+ {
32
+ id: 'claims',
33
+ label: 'Sinistros',
34
+ icon: 'ph ph-warning-circle',
35
+ },
36
+ ],
37
+ },
38
+ {
39
+ id: 'settings',
40
+ label: 'Configuracoes',
41
+ icon: 'ph ph-gear-six',
42
+ children: [
43
+ {
44
+ id: 'teams',
45
+ label: 'Times',
46
+ icon: 'ph ph-users-three',
47
+ },
48
+ {
49
+ id: 'permissions',
50
+ label: 'Permissoes',
51
+ icon: 'ph ph-lock-key',
52
+ },
53
+ ],
54
+ },
55
+ ];
56
+ const nestedItems = [
57
+ {
58
+ id: 'sula-os',
59
+ label: 'Sula OS',
60
+ icon: 'ph ph-app-window',
61
+ expanded: true,
62
+ children: [
63
+ {
64
+ id: 'dashboard',
65
+ label: 'Dashboard',
66
+ icon: 'ph ph-gauge',
67
+ },
68
+ {
69
+ id: 'canvas',
70
+ label: 'Canvas',
71
+ icon: 'ph ph-frame-corners',
72
+ expanded: true,
73
+ children: [
74
+ {
75
+ id: 'chapters',
76
+ label: 'Capitulos/Jornadas',
77
+ icon: 'ph ph-dot-outline',
78
+ selected: true,
79
+ },
80
+ {
81
+ id: 'tribes',
82
+ label: 'Tribes/Areas',
83
+ icon: 'ph ph-dot-outline',
84
+ },
85
+ ],
86
+ },
87
+ ],
88
+ },
89
+ {
90
+ id: 'analytics',
91
+ label: 'Analytics',
92
+ icon: 'ph ph-chart-line-up',
93
+ children: [
94
+ {
95
+ id: 'portfolio',
96
+ label: 'Portfolio',
97
+ icon: 'ph ph-chart-pie-slice',
98
+ },
99
+ ],
100
+ },
101
+ ];
102
+ const longLabelItems = [
103
+ {
104
+ id: 'protocol-center',
105
+ label: 'Central de protocolos e acompanhamentos operacionais',
106
+ icon: 'ph ph-folders',
107
+ expanded: true,
108
+ children: [
109
+ {
110
+ id: 'technical-underwriting',
111
+ label: 'Analise tecnica e de subscricao para contas corporativas',
112
+ icon: 'ph ph-file-search',
113
+ selected: true,
114
+ },
115
+ {
116
+ id: 'journey-builder',
117
+ label: 'Construtor de jornadas e configuracoes de experiencia',
118
+ icon: 'ph ph-path',
119
+ expanded: true,
120
+ children: [
121
+ {
122
+ id: 'audiences',
123
+ label: 'Segmentos e audiencias de relacionamento',
124
+ icon: 'ph ph-dot-outline',
125
+ },
126
+ {
127
+ id: 'rules',
128
+ label: 'Regras e validacoes com nomenclaturas extensas',
129
+ icon: 'ph ph-dot-outline',
130
+ },
131
+ ],
132
+ },
133
+ ],
134
+ },
135
+ {
136
+ id: 'governance',
137
+ label: 'Governanca de acessos e seguranca',
138
+ icon: 'ph ph-shield-check',
139
+ },
140
+ ];
141
+ const hiddenItems = [
142
+ {
143
+ id: 'overview-hidden',
144
+ label: 'Visao Geral',
145
+ icon: 'ph ph-house-line',
146
+ hidden: true,
147
+ },
148
+ {
149
+ id: 'reports',
150
+ label: 'Relatorios',
151
+ icon: 'ph ph-chart-bar',
152
+ expanded: true,
153
+ children: [
154
+ {
155
+ id: 'archived',
156
+ label: 'Arquivados',
157
+ icon: 'ph ph-archive-box',
158
+ hidden: true,
159
+ },
160
+ ],
161
+ },
162
+ {
163
+ id: 'settings-hidden',
164
+ label: 'Configuracoes',
165
+ icon: 'ph ph-gear-six',
166
+ expanded: true,
167
+ children: [
168
+ {
169
+ id: 'users-hidden',
170
+ label: 'Usuarios ocultos',
171
+ icon: 'ph ph-users-three',
172
+ hidden: true,
173
+ },
174
+ {
175
+ id: 'roles',
176
+ label: 'Perfis de acesso',
177
+ icon: 'ph ph-lock-key',
178
+ expanded: true,
179
+ children: [
180
+ {
181
+ id: 'legacy-role',
182
+ label: 'Perfil legado',
183
+ icon: 'ph ph-dot-outline',
184
+ hidden: true,
185
+ },
186
+ {
187
+ id: 'brokers',
188
+ label: 'Corretores',
189
+ icon: 'ph ph-dot-outline',
190
+ selected: true,
191
+ },
192
+ ],
193
+ },
194
+ {
195
+ id: 'teams-visible',
196
+ label: 'Times',
197
+ icon: 'ph ph-users-three',
198
+ },
199
+ ],
200
+ },
201
+ ];
202
+ const cloneMenuItems = (items) => {
203
+ return items.map(item => {
204
+ var _a;
205
+ return (Object.assign(Object.assign({}, item), { children: (_a = item.children) === null || _a === void 0 ? void 0 : _a.map(child => {
206
+ var _a;
207
+ return (Object.assign(Object.assign({}, child), { children: (_a = child.children) === null || _a === void 0 ? void 0 : _a.map(grandchild => (Object.assign({}, grandchild))) }));
208
+ }) }));
209
+ });
210
+ };
211
+ const createStoryShell = () => {
212
+ const container = document.createElement('div');
213
+ container.style.margin = '20px';
214
+ container.style.padding = '24px';
215
+ container.style.background = 'linear-gradient(180deg, #f8f9f9 0%, #eef2f2 100%)';
216
+ container.style.borderRadius = '24px';
217
+ container.style.boxSizing = 'border-box';
218
+ const shell = document.createElement('div');
219
+ shell.style.display = 'flex';
220
+ shell.style.width = '960px';
221
+ shell.style.maxWidth = '100%';
222
+ shell.style.height = '720px';
223
+ shell.style.borderRadius = '24px';
224
+ shell.style.overflow = 'visible';
225
+ shell.style.background = '#ffffff';
226
+ shell.style.border = '1px solid #dfe5e5';
227
+ shell.style.boxShadow = '0 20px 48px rgba(15, 23, 42, 0.08)';
228
+ const contentPanel = document.createElement('div');
229
+ contentPanel.style.flex = '1';
230
+ contentPanel.style.padding = '40px';
231
+ contentPanel.style.background = 'linear-gradient(180deg, #ffffff 0%, #f7f9f9 100%)';
232
+ contentPanel.style.borderRadius = '0 24px 24px 0';
233
+ contentPanel.style.boxSizing = 'border-box';
234
+ const contentTitle = document.createElement('h3');
235
+ contentTitle.textContent = 'Area de conteudo';
236
+ contentTitle.style.margin = '0 0 12px';
237
+ contentTitle.style.fontSize = '24px';
238
+ contentTitle.style.fontWeight = '700';
239
+ contentTitle.style.color = '#2f3131';
240
+ const contentDescription = document.createElement('p');
241
+ contentDescription.textContent = 'Use o botao no rodape do menu para colapsar, passe o mouse sobre o menu colapsado para visualizar o preview e clique nos itens para observar os eventos no painel Actions.';
242
+ contentDescription.style.margin = '0 0 24px';
243
+ contentDescription.style.maxWidth = '520px';
244
+ contentDescription.style.fontSize = '14px';
245
+ contentDescription.style.lineHeight = '22px';
246
+ contentDescription.style.color = '#6c6e6e';
247
+ const infoCard = document.createElement('div');
248
+ infoCard.style.padding = '20px 24px';
249
+ infoCard.style.borderRadius = '20px';
250
+ infoCard.style.background = '#f4f7f7';
251
+ infoCard.style.border = '1px solid #e3e9e9';
252
+ infoCard.style.maxWidth = '460px';
253
+ const infoTitle = document.createElement('strong');
254
+ infoTitle.textContent = 'Fluxos demonstrados';
255
+ infoTitle.style.display = 'block';
256
+ infoTitle.style.marginBottom = '12px';
257
+ infoTitle.style.fontSize = '15px';
258
+ infoTitle.style.color = '#2f3131';
259
+ const infoList = document.createElement('ul');
260
+ infoList.style.margin = '0';
261
+ infoList.style.paddingLeft = '18px';
262
+ infoList.style.color = '#5d5f5f';
263
+ infoList.style.fontSize = '14px';
264
+ infoList.style.lineHeight = '22px';
265
+ infoList.innerHTML = '<li>Selecao unica de itens folha</li><li>Expansao independente de branches</li><li>Submenus em dois niveis</li><li>Preview do menu sobre o conteudo</li>';
266
+ infoCard.appendChild(infoTitle);
267
+ infoCard.appendChild(infoList);
268
+ contentPanel.appendChild(contentTitle);
269
+ contentPanel.appendChild(contentDescription);
270
+ contentPanel.appendChild(infoCard);
271
+ shell.appendChild(contentPanel);
272
+ container.appendChild(shell);
273
+ return { container, shell };
274
+ };
275
+ export default {
276
+ title: 'Components/sula-menu',
277
+ tags: ['autodocs'],
278
+ argTypes: {
279
+ menuTitle: {
280
+ control: 'text',
281
+ defaultValue: 'Sula Hub',
282
+ description: 'Titulo exibido no cabecalho do menu.',
283
+ type: {
284
+ required: false,
285
+ },
286
+ },
287
+ image: {
288
+ control: 'text',
289
+ defaultValue: BRAND_IMAGE,
290
+ description: 'Imagem de marca exibida ao lado do titulo.',
291
+ type: {
292
+ required: false,
293
+ },
294
+ },
295
+ items: {
296
+ control: 'object',
297
+ defaultValue: defaultItems,
298
+ description: 'Estrutura hierarquica do menu, com suporte a itens, subitens, netos e ocultacao via hidden.',
299
+ type: {
300
+ required: false,
301
+ },
302
+ },
303
+ itemSelected: {
304
+ action: 'itemSelected',
305
+ description: 'Evento emitido quando um item folha e selecionado.',
306
+ },
307
+ itemClicked: {
308
+ action: 'itemClicked',
309
+ description: 'Evento emitido a cada clique em qualquer item do menu.',
310
+ },
311
+ menuToggled: {
312
+ action: 'menuToggled',
313
+ description: 'Evento emitido ao colapsar ou expandir o menu.',
314
+ },
315
+ },
316
+ parameters: {
317
+ docs: {
318
+ description: {
319
+ component: 'O componente Sula Menu organiza navegacao hierarquica com suporte a expansao de submenus, selecao unica de itens folha, ocultacao declarativa via hidden, colapso com preview em hover e emissao de eventos para clique, selecao e toggle do container.',
320
+ },
321
+ },
322
+ },
323
+ };
324
+ const Template = (args) => {
325
+ const { container, shell } = createStoryShell();
326
+ const el = document.createElement('sula-menu');
327
+ el.menuTitle = args.menuTitle;
328
+ el.image = args.image;
329
+ el.items = cloneMenuItems(args.items);
330
+ el.addEventListener('itemSelected', args.itemSelected);
331
+ el.addEventListener('itemClicked', args.itemClicked);
332
+ el.addEventListener('menuToggled', args.menuToggled);
333
+ shell.prepend(el);
334
+ return container;
335
+ };
336
+ export const Default = Template.bind({});
337
+ Default.args = {
338
+ menuTitle: 'Sula Hub',
339
+ image: BRAND_IMAGE,
340
+ items: defaultItems,
341
+ };
342
+ Default.parameters = {
343
+ docs: {
344
+ description: {
345
+ story: 'Exemplo principal do menu com marca, um item folha selecionado e uma secao expandida. Interaja com os itens e com o toggle do rodape para validar os eventos e os estados visuais.',
346
+ },
347
+ },
348
+ };
349
+ export const WithNestedNavigation = Template.bind({});
350
+ WithNestedNavigation.args = {
351
+ menuTitle: 'Sula OS',
352
+ image: BRAND_IMAGE,
353
+ items: nestedItems,
354
+ };
355
+ WithNestedNavigation.parameters = {
356
+ docs: {
357
+ description: {
358
+ story: 'Demonstra a navegacao com branch aninhado e um neto previamente selecionado, cobrindo o fluxo de expansao em dois niveis.',
359
+ },
360
+ },
361
+ };
362
+ export const WithLongLabels = Template.bind({});
363
+ WithLongLabels.args = {
364
+ menuTitle: 'Governanca',
365
+ image: BRAND_IMAGE,
366
+ items: longLabelItems,
367
+ };
368
+ WithLongLabels.parameters = {
369
+ docs: {
370
+ description: {
371
+ story: 'Cenario voltado para validacao visual de truncamento e alinhamento quando itens e subitens possuem labels extensas.',
372
+ },
373
+ },
374
+ };
375
+ export const WithHiddenItems = Template.bind({});
376
+ WithHiddenItems.args = {
377
+ menuTitle: 'Administracao',
378
+ image: BRAND_IMAGE,
379
+ items: hiddenItems,
380
+ };
381
+ WithHiddenItems.parameters = {
382
+ docs: {
383
+ description: {
384
+ story: 'Demonstra a omissao de itens marcados com hidden em todos os niveis, incluindo o caso em que um branch deixa de expandir porque seus descendentes visiveis foram filtrados.',
385
+ },
386
+ },
387
+ };
388
+ export const WithoutBrandImage = Template.bind({});
389
+ WithoutBrandImage.args = {
390
+ menuTitle: 'Menu sem logomarca',
391
+ image: '',
392
+ items: defaultItems,
393
+ };
394
+ WithoutBrandImage.parameters = {
395
+ docs: {
396
+ description: {
397
+ story: 'Mostra o comportamento do componente quando apenas o titulo e exibido no cabecalho, sem imagem de marca.',
398
+ },
399
+ },
400
+ };
401
+ //# sourceMappingURL=sula-menu.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sula-menu.stories.js","sourceRoot":"","sources":["../../../src/components/sula-menu/sula-menu.stories.tsx"],"names":[],"mappings":"AAWA,MAAM,W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K,EAAE,qHAAqH;SAC5H;KACD;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACtB,SAAS,EAAE,eAAe;IAC1B,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,WAAW;CAClB,CAAC;AACF,eAAe,CAAC,UAAU,GAAG;IAC5B,IAAI,EAAE;QACL,WAAW,EAAE;YACZ,KAAK,EAAE,6KAA6K;SACpL;KACD;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnD,iBAAiB,CAAC,IAAI,GAAG;IACxB,SAAS,EAAE,oBAAoB;IAC/B,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,YAAY;CACnB,CAAC;AACF,iBAAiB,CAAC,UAAU,GAAG;IAC9B,IAAI,EAAE;QACL,WAAW,EAAE;YACZ,KAAK,EAAE,0GAA0G;SACjH;KACD;CACD,CAAC","sourcesContent":["import { SulaMenuMainItem } from './model/sula-menu.model';\n\ntype StoryArgs = {\n\tmenuTitle: string;\n\timage: string;\n\titems: SulaMenuMainItem[];\n\titemSelected: EventListener;\n\titemClicked: EventListener;\n\tmenuToggled: EventListener;\n};\n\nconst BRAND_IMAGE = `data:image/svg+xml;utf8,${encodeURIComponent(`\n\t<svg width=\"80\" height=\"80\" viewBox=\"0 0 80 80\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<rect width=\"80\" height=\"80\" rx=\"20\" fill=\"#E5231B\"/>\n\t\t<rect x=\"12\" y=\"12\" width=\"56\" height=\"56\" rx=\"18\" fill=\"white\" fill-opacity=\"0.08\"/>\n\t\t<path d=\"M52 24H35.5C31.3579 24 28 27.3579 28 31.5C28 35.6421 31.3579 39 35.5 39H44.5C48.6421 39 52 42.3579 52 46.5C52 50.6421 48.6421 54 44.5 54H28\" stroke=\"white\" stroke-width=\"8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n\t</svg>\n`)}`;\n\nconst defaultItems: SulaMenuMainItem[] = [\n\t{\n\t\tid: 'overview',\n\t\tlabel: 'Visao Geral',\n\t\ticon: 'ph ph-house-line',\n\t\tselected: true,\n\t},\n\t{\n\t\tid: 'operations',\n\t\tlabel: 'Operacoes',\n\t\ticon: 'ph ph-briefcase',\n\t\texpanded: true,\n\t\tchildren: [\n\t\t\t{\n\t\t\t\tid: 'policies',\n\t\t\t\tlabel: 'Apolices',\n\t\t\t\ticon: 'ph ph-files',\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: 'endorsements',\n\t\t\t\tlabel: 'Endossos',\n\t\t\t\ticon: 'ph ph-arrows-clockwise',\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: 'claims',\n\t\t\t\tlabel: 'Sinistros',\n\t\t\t\ticon: 'ph ph-warning-circle',\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tid: 'settings',\n\t\tlabel: 'Configuracoes',\n\t\ticon: 'ph ph-gear-six',\n\t\tchildren: [\n\t\t\t{\n\t\t\t\tid: 'teams',\n\t\t\t\tlabel: 'Times',\n\t\t\t\ticon: 'ph ph-users-three',\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: 'permissions',\n\t\t\t\tlabel: 'Permissoes',\n\t\t\t\ticon: 'ph ph-lock-key',\n\t\t\t},\n\t\t],\n\t},\n];\n\nconst nestedItems: SulaMenuMainItem[] = [\n\t{\n\t\tid: 'sula-os',\n\t\tlabel: 'Sula OS',\n\t\ticon: 'ph ph-app-window',\n\t\texpanded: true,\n\t\tchildren: [\n\t\t\t{\n\t\t\t\tid: 'dashboard',\n\t\t\t\tlabel: 'Dashboard',\n\t\t\t\ticon: 'ph ph-gauge',\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: 'canvas',\n\t\t\t\tlabel: 'Canvas',\n\t\t\t\ticon: 'ph ph-frame-corners',\n\t\t\t\texpanded: true,\n\t\t\t\tchildren: [\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 'chapters',\n\t\t\t\t\t\tlabel: 'Capitulos/Jornadas',\n\t\t\t\t\t\ticon: 'ph ph-dot-outline',\n\t\t\t\t\t\tselected: true,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 'tribes',\n\t\t\t\t\t\tlabel: 'Tribes/Areas',\n\t\t\t\t\t\ticon: 'ph ph-dot-outline',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tid: 'analytics',\n\t\tlabel: 'Analytics',\n\t\ticon: 'ph ph-chart-line-up',\n\t\tchildren: [\n\t\t\t{\n\t\t\t\tid: 'portfolio',\n\t\t\t\tlabel: 'Portfolio',\n\t\t\t\ticon: 'ph ph-chart-pie-slice',\n\t\t\t},\n\t\t],\n\t},\n];\n\nconst longLabelItems: SulaMenuMainItem[] = [\n\t{\n\t\tid: 'protocol-center',\n\t\tlabel: 'Central de protocolos e acompanhamentos operacionais',\n\t\ticon: 'ph ph-folders',\n\t\texpanded: true,\n\t\tchildren: [\n\t\t\t{\n\t\t\t\tid: 'technical-underwriting',\n\t\t\t\tlabel: 'Analise tecnica e de subscricao para contas corporativas',\n\t\t\t\ticon: 'ph ph-file-search',\n\t\t\t\tselected: true,\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: 'journey-builder',\n\t\t\t\tlabel: 'Construtor de jornadas e configuracoes de experiencia',\n\t\t\t\ticon: 'ph ph-path',\n\t\t\t\texpanded: true,\n\t\t\t\tchildren: [\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 'audiences',\n\t\t\t\t\t\tlabel: 'Segmentos e audiencias de relacionamento',\n\t\t\t\t\t\ticon: 'ph ph-dot-outline',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 'rules',\n\t\t\t\t\t\tlabel: 'Regras e validacoes com nomenclaturas extensas',\n\t\t\t\t\t\ticon: 'ph ph-dot-outline',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tid: 'governance',\n\t\tlabel: 'Governanca de acessos e seguranca',\n\t\ticon: 'ph ph-shield-check',\n\t},\n];\n\nconst hiddenItems: SulaMenuMainItem[] = [\n\t{\n\t\tid: 'overview-hidden',\n\t\tlabel: 'Visao Geral',\n\t\ticon: 'ph ph-house-line',\n\t\thidden: true,\n\t},\n\t{\n\t\tid: 'reports',\n\t\tlabel: 'Relatorios',\n\t\ticon: 'ph ph-chart-bar',\n\t\texpanded: true,\n\t\tchildren: [\n\t\t\t{\n\t\t\t\tid: 'archived',\n\t\t\t\tlabel: 'Arquivados',\n\t\t\t\ticon: 'ph ph-archive-box',\n\t\t\t\thidden: true,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tid: 'settings-hidden',\n\t\tlabel: 'Configuracoes',\n\t\ticon: 'ph ph-gear-six',\n\t\texpanded: true,\n\t\tchildren: [\n\t\t\t{\n\t\t\t\tid: 'users-hidden',\n\t\t\t\tlabel: 'Usuarios ocultos',\n\t\t\t\ticon: 'ph ph-users-three',\n\t\t\t\thidden: true,\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: 'roles',\n\t\t\t\tlabel: 'Perfis de acesso',\n\t\t\t\ticon: 'ph ph-lock-key',\n\t\t\t\texpanded: true,\n\t\t\t\tchildren: [\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 'legacy-role',\n\t\t\t\t\t\tlabel: 'Perfil legado',\n\t\t\t\t\t\ticon: 'ph ph-dot-outline',\n\t\t\t\t\t\thidden: true,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 'brokers',\n\t\t\t\t\t\tlabel: 'Corretores',\n\t\t\t\t\t\ticon: 'ph ph-dot-outline',\n\t\t\t\t\t\tselected: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: 'teams-visible',\n\t\t\t\tlabel: 'Times',\n\t\t\t\ticon: 'ph ph-users-three',\n\t\t\t},\n\t\t],\n\t},\n];\n\nconst cloneMenuItems = (items: SulaMenuMainItem[]) => {\n\treturn items.map(item => ({\n\t\t...item,\n\t\tchildren: item.children?.map(child => ({\n\t\t\t...child,\n\t\t\tchildren: child.children?.map(grandchild => ({ ...grandchild })),\n\t\t})),\n\t}));\n};\n\nconst createStoryShell = () => {\n\tconst container = document.createElement('div');\n\tcontainer.style.margin = '20px';\n\tcontainer.style.padding = '24px';\n\tcontainer.style.background = 'linear-gradient(180deg, #f8f9f9 0%, #eef2f2 100%)';\n\tcontainer.style.borderRadius = '24px';\n\tcontainer.style.boxSizing = 'border-box';\n\n\tconst shell = document.createElement('div');\n\tshell.style.display = 'flex';\n\tshell.style.width = '960px';\n\tshell.style.maxWidth = '100%';\n\tshell.style.height = '720px';\n\tshell.style.borderRadius = '24px';\n\tshell.style.overflow = 'visible';\n\tshell.style.background = '#ffffff';\n\tshell.style.border = '1px solid #dfe5e5';\n\tshell.style.boxShadow = '0 20px 48px rgba(15, 23, 42, 0.08)';\n\n\tconst contentPanel = document.createElement('div');\n\tcontentPanel.style.flex = '1';\n\tcontentPanel.style.padding = '40px';\n\tcontentPanel.style.background = 'linear-gradient(180deg, #ffffff 0%, #f7f9f9 100%)';\n\tcontentPanel.style.borderRadius = '0 24px 24px 0';\n\tcontentPanel.style.boxSizing = 'border-box';\n\n\tconst contentTitle = document.createElement('h3');\n\tcontentTitle.textContent = 'Area de conteudo';\n\tcontentTitle.style.margin = '0 0 12px';\n\tcontentTitle.style.fontSize = '24px';\n\tcontentTitle.style.fontWeight = '700';\n\tcontentTitle.style.color = '#2f3131';\n\n\tconst contentDescription = document.createElement('p');\n\tcontentDescription.textContent = 'Use o botao no rodape do menu para colapsar, passe o mouse sobre o menu colapsado para visualizar o preview e clique nos itens para observar os eventos no painel Actions.';\n\tcontentDescription.style.margin = '0 0 24px';\n\tcontentDescription.style.maxWidth = '520px';\n\tcontentDescription.style.fontSize = '14px';\n\tcontentDescription.style.lineHeight = '22px';\n\tcontentDescription.style.color = '#6c6e6e';\n\n\tconst infoCard = document.createElement('div');\n\tinfoCard.style.padding = '20px 24px';\n\tinfoCard.style.borderRadius = '20px';\n\tinfoCard.style.background = '#f4f7f7';\n\tinfoCard.style.border = '1px solid #e3e9e9';\n\tinfoCard.style.maxWidth = '460px';\n\n\tconst infoTitle = document.createElement('strong');\n\tinfoTitle.textContent = 'Fluxos demonstrados';\n\tinfoTitle.style.display = 'block';\n\tinfoTitle.style.marginBottom = '12px';\n\tinfoTitle.style.fontSize = '15px';\n\tinfoTitle.style.color = '#2f3131';\n\n\tconst infoList = document.createElement('ul');\n\tinfoList.style.margin = '0';\n\tinfoList.style.paddingLeft = '18px';\n\tinfoList.style.color = '#5d5f5f';\n\tinfoList.style.fontSize = '14px';\n\tinfoList.style.lineHeight = '22px';\n\tinfoList.innerHTML = '<li>Selecao unica de itens folha</li><li>Expansao independente de branches</li><li>Submenus em dois niveis</li><li>Preview do menu sobre o conteudo</li>';\n\n\tinfoCard.appendChild(infoTitle);\n\tinfoCard.appendChild(infoList);\n\tcontentPanel.appendChild(contentTitle);\n\tcontentPanel.appendChild(contentDescription);\n\tcontentPanel.appendChild(infoCard);\n\tshell.appendChild(contentPanel);\n\tcontainer.appendChild(shell);\n\n\treturn { container, shell };\n};\n\nexport default {\n\ttitle: 'Components/sula-menu',\n\ttags: ['autodocs'],\n\targTypes: {\n\t\tmenuTitle: {\n\t\t\tcontrol: 'text',\n\t\t\tdefaultValue: 'Sula Hub',\n\t\t\tdescription: 'Titulo exibido no cabecalho do menu.',\n\t\t\ttype: {\n\t\t\t\trequired: false,\n\t\t\t},\n\t\t},\n\t\timage: {\n\t\t\tcontrol: 'text',\n\t\t\tdefaultValue: BRAND_IMAGE,\n\t\t\tdescription: 'Imagem de marca exibida ao lado do titulo.',\n\t\t\ttype: {\n\t\t\t\trequired: false,\n\t\t\t},\n\t\t},\n\t\titems: {\n\t\t\tcontrol: 'object',\n\t\t\tdefaultValue: defaultItems,\n\t\t\tdescription: 'Estrutura hierarquica do menu, com suporte a itens, subitens, netos e ocultacao via hidden.',\n\t\t\ttype: {\n\t\t\t\trequired: false,\n\t\t\t},\n\t\t},\n\t\titemSelected: {\n\t\t\taction: 'itemSelected',\n\t\t\tdescription: 'Evento emitido quando um item folha e selecionado.',\n\t\t},\n\t\titemClicked: {\n\t\t\taction: 'itemClicked',\n\t\t\tdescription: 'Evento emitido a cada clique em qualquer item do menu.',\n\t\t},\n\t\tmenuToggled: {\n\t\t\taction: 'menuToggled',\n\t\t\tdescription: 'Evento emitido ao colapsar ou expandir o menu.',\n\t\t},\n\t},\n\tparameters: {\n\t\tdocs: {\n\t\t\tdescription: {\n\t\t\t\tcomponent:\n\t\t\t\t\t'O componente Sula Menu organiza navegacao hierarquica com suporte a expansao de submenus, selecao unica de itens folha, ocultacao declarativa via hidden, colapso com preview em hover e emissao de eventos para clique, selecao e toggle do container.',\n\t\t\t},\n\t\t},\n\t},\n};\n\nconst Template: any = (args: StoryArgs) => {\n\tconst { container, shell } = createStoryShell();\n\tconst el = document.createElement('sula-menu');\n\n\tel.menuTitle = args.menuTitle;\n\tel.image = args.image;\n\tel.items = cloneMenuItems(args.items);\n\n\tel.addEventListener('itemSelected', args.itemSelected);\n\tel.addEventListener('itemClicked', args.itemClicked);\n\tel.addEventListener('menuToggled', args.menuToggled);\n\n\tshell.prepend(el);\n\n\treturn container;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n\tmenuTitle: 'Sula Hub',\n\timage: BRAND_IMAGE,\n\titems: defaultItems,\n};\nDefault.parameters = {\n\tdocs: {\n\t\tdescription: {\n\t\t\tstory: 'Exemplo principal do menu com marca, um item folha selecionado e uma secao expandida. Interaja com os itens e com o toggle do rodape para validar os eventos e os estados visuais.',\n\t\t},\n\t},\n};\n\nexport const WithNestedNavigation = Template.bind({});\nWithNestedNavigation.args = {\n\tmenuTitle: 'Sula OS',\n\timage: BRAND_IMAGE,\n\titems: nestedItems,\n};\nWithNestedNavigation.parameters = {\n\tdocs: {\n\t\tdescription: {\n\t\t\tstory: 'Demonstra a navegacao com branch aninhado e um neto previamente selecionado, cobrindo o fluxo de expansao em dois niveis.',\n\t\t},\n\t},\n};\n\nexport const WithLongLabels = Template.bind({});\nWithLongLabels.args = {\n\tmenuTitle: 'Governanca',\n\timage: BRAND_IMAGE,\n\titems: longLabelItems,\n};\nWithLongLabels.parameters = {\n\tdocs: {\n\t\tdescription: {\n\t\t\tstory: 'Cenario voltado para validacao visual de truncamento e alinhamento quando itens e subitens possuem labels extensas.',\n\t\t},\n\t},\n};\n\nexport const WithHiddenItems = Template.bind({});\nWithHiddenItems.args = {\n\tmenuTitle: 'Administracao',\n\timage: BRAND_IMAGE,\n\titems: hiddenItems,\n};\nWithHiddenItems.parameters = {\n\tdocs: {\n\t\tdescription: {\n\t\t\tstory: 'Demonstra a omissao de itens marcados com hidden em todos os niveis, incluindo o caso em que um branch deixa de expandir porque seus descendentes visiveis foram filtrados.',\n\t\t},\n\t},\n};\n\nexport const WithoutBrandImage = Template.bind({});\nWithoutBrandImage.args = {\n\tmenuTitle: 'Menu sem logomarca',\n\timage: '',\n\titems: defaultItems,\n};\nWithoutBrandImage.parameters = {\n\tdocs: {\n\t\tdescription: {\n\t\t\tstory: 'Mostra o comportamento do componente quando apenas o titulo e exibido no cabecalho, sem imagem de marca.',\n\t\t},\n\t},\n};\n"]}
@@ -18,7 +18,7 @@ export class SulaMenuSelectList {
18
18
  };
19
19
  }
20
20
  render() {
21
- return (h(Host, { key: '2a2fdaa683ff196bbed89135c74ebd4e1c6e40d6' }, h("ul", { key: '2deeba582947828b4548d41a5a231c9646f38b0e', class: {
21
+ return (h(Host, { key: 'dc2231f2ce0112a4699bd2290af24d2a8d53aa75' }, h("ul", { key: '6729b9d92f8dfe34e41c1fb01018e312673d48ff', class: {
22
22
  'bg-surface-body border border-line-general sula-menu-select-list rounded-sm py-12 overflow-auto': true,
23
23
  'w-300': !this.fullWidth,
24
24
  'w-full': this.fullWidth,
@@ -53,10 +53,10 @@ export class SulaProgressBar {
53
53
  }
54
54
  }
55
55
  render() {
56
- return (h(Host, { key: 'd584c2e2c020ec016a426650fa48fcd843f0c523' }, h("div", { key: 'f2b4e9940cde1280934377ad3db3bab063a5d28d', class: "flex flex-col w-full space-y-8" }, h("div", { key: '8b597aa608fdb404d98f2cbf8022efb539bf999d', class: "flex justify-between items-center" }, h("label", { key: '73763e3827e31b967310142c65b67a0587691711', class: "text-sm text-text-secondary leading-[14px]" }, this.topLabel), this.getProgressBarStateElement()), h("div", { key: 'd240b3850e4dfccea231fbdda5bd8366c8c0cc05', style: { width: `${this.progress}%` }, class: {
56
+ return (h(Host, { key: '1e587e3e42170718cf760afac9eaa7654a67d761' }, h("div", { key: 'a92b92be28b41a1e130abd4e0c6c047410a5565b', class: "flex flex-col w-full space-y-8" }, h("div", { key: '519faec52f5c42c08b950f789786389ee14a4174', class: "flex justify-between items-center" }, h("label", { key: '67a9cfbbdd6fb001631dc45dc2115bfb1fb1a43f', class: "text-sm text-text-secondary leading-[14px]" }, this.topLabel), this.getProgressBarStateElement()), h("div", { key: '62b55986b354b50aaf4c204c595ca7df99f2d6dc', style: { width: `${this.progress}%` }, class: {
57
57
  'h-12 rounded-xxl': true,
58
58
  [this.getProgressBarStyle()]: true,
59
- } }), h("label", { key: 'ffe21db4a0c39f1272370acc780b2d3ba061cd53', class: "text-sm text-text-secondary leading-[14px]" }, this.bottomLabel))));
59
+ } }), h("label", { key: 'f4379cc3dd23159e4f47468ec3a4fcd142719009', class: "text-sm text-text-secondary leading-[14px]" }, this.bottomLabel))));
60
60
  }
61
61
  static get is() { return "sula-progress-bar"; }
62
62
  static get encapsulation() { return "shadow"; }
@@ -34,14 +34,14 @@ export class SulaRadioButton {
34
34
  };
35
35
  }
36
36
  render() {
37
- return (h(Host, { key: '5427806e9da1752271b0b4be480ab0a2039a8ee0' }, h("div", { key: '0f6a35b1263d47bd28aa54dd895976abe8d48159', class: { 'w-fit': true, 'flex items-center': !!this.label }, onClick: this.handleClick }, h("div", { key: 'cf61f1205714408193621f4c8455adecf2798dcb', class: {
37
+ return (h(Host, { key: '76b654c70059ac7a5447a99b18429a36ffb38009' }, h("div", { key: '73cea738dad4e3de662e63147b8d74117207c98c', class: { 'w-fit': true, 'flex items-center': !!this.label }, onClick: this.handleClick }, h("div", { key: '9fda4d875d3762edf57196f85112c189b5c7cad8', class: {
38
38
  'min-w-[30px] min-h-[30px] rounded-full flex justify-center items-center outline-none': true,
39
39
  'active:bg-states-empty-bg-pressed cursor-pointer': !this.disabled,
40
40
  'bg-brand-primary': this.checked,
41
41
  'border border-line-input': !this.checked,
42
42
  'container-focus': this.radioIsFocus,
43
43
  'bg-states-bg-disabled border-2 border-states-bg-disabled cursor-not-allowed': this.disabled,
44
- }, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleFocusOut }, this.checked && h("div", { key: 'e8c87ab372235aac8ce7258d1a91081b63a519eb', class: "bg-transparent border-2 border-negative-negative-1 w-[18px] h-[18px] rounded-full" })), this.label && h("label", { key: 'b7fdb7bdf9e8aaa5e5049cac408b24e912a4399a', class: { 'ml-16 text-base text-text-primary': true, 'cursor-pointer': !this.disabled } }, this.label))));
44
+ }, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleFocusOut }, this.checked && h("div", { key: '555088b218f1b5c4393291e49ee17d516ac73793', class: "bg-transparent border-2 border-negative-negative-1 w-[18px] h-[18px] rounded-full" })), this.label && h("label", { key: '79f6e85446e2ae1bb01b46026247d1e57deaf4ba', class: { 'ml-16 text-base text-text-primary': true, 'cursor-pointer': !this.disabled } }, this.label))));
45
45
  }
46
46
  static get is() { return "sula-radio-button"; }
47
47
  static get encapsulation() { return "shadow"; }
@@ -43,11 +43,11 @@ export class SulaSearchBar {
43
43
  return style[this.searchBarStyle];
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: 'e5d8f7608d743e75d2071dde601f3bbb295cc415' }, h("div", { key: '84e01e17c71129cce09372b1a76ed486ce3d168b', class: {
46
+ return (h(Host, { key: '603ee71ccbb796bd2ca6643dff042d5f89653b50' }, h("div", { key: '8dd4945346cbc443ef48b971ba6bb93db51f0aeb', class: {
47
47
  'flex flex-row items-center space-x-12 px-16 rounded-xxl h-44 caret-brand-primary outline-none group': true,
48
48
  [this.getStyleClass()]: true,
49
49
  'search-bar-focus': this.isFocused,
50
- }, tabIndex: 0, onFocus: this.handleInputFocus, onClick: this.handleInputFocus }, !this.isFocused && this.leftIcon && (h("div", { key: 'f8f61d01078eea0273ca1eabdea401f841a7931a', class: "flex justify-center items-center leading-6" }, h("sula-icon", { key: '6567a11f541d140dac9303607371c7e2f8b04f96', icon: this.leftIcon, customClass: "text-2xl text-icon-primary group-hover:text-brand-primary" }))), h("input", { key: '69dc721e94529cb2f6c22baa9fd917754d7e0dff', ref: node => (this.inputElement = node), type: "text", class: "outline-none border-none w-full bg-transparent text-text-primary", placeholder: this.placeholder, onBlur: this.handleInputBlur, value: this.value, onInput: this.handleValueChanges }), this.rightIcon && (h("div", { key: '5b3b9aca94cf85dcef78605738e05900838efcf6', class: "flex justify-center items-center leading-6 cursor-pointer", onClick: this.handleRightIconClick, onMouseDown: e => e.preventDefault() }, h("sula-icon", { key: '04a65741683ccf50852e3015c085ffc5714bb0f6', icon: this.rightIcon, customClass: "text-2xl text-icon-primary" }))))));
50
+ }, tabIndex: 0, onFocus: this.handleInputFocus, onClick: this.handleInputFocus }, !this.isFocused && this.leftIcon && (h("div", { key: 'b785f0a1bb7e07dd3d4a3ca847b209cb1c1dfa0c', class: "flex justify-center items-center leading-6" }, h("sula-icon", { key: 'e4e570356743fa162d194ff5e2b3d1ae00b1a552', icon: this.leftIcon, customClass: "text-2xl text-icon-primary group-hover:text-brand-primary" }))), h("input", { key: '7810ed5b2a892752511352ea6fe2bf11f27ef83d', ref: node => (this.inputElement = node), type: "text", class: "outline-none border-none w-full bg-transparent text-text-primary", placeholder: this.placeholder, onBlur: this.handleInputBlur, value: this.value, onInput: this.handleValueChanges }), this.rightIcon && (h("div", { key: 'eb52f29b7ef083d1ded95eec79e603e2cc99ab81', class: "flex justify-center items-center leading-6 cursor-pointer", onClick: this.handleRightIconClick, onMouseDown: e => e.preventDefault() }, h("sula-icon", { key: '9bbd1f1a860461dffe16e1f49ab0232741717e0a', icon: this.rightIcon, customClass: "text-2xl text-icon-primary" }))))));
51
51
  }
52
52
  static get is() { return "sula-search-bar"; }
53
53
  static get encapsulation() { return "shadow"; }
@@ -36,7 +36,7 @@ export class SulaSegmentedControl {
36
36
  return item.selected ? 'text-brand-primary' : 'text-text-primary';
37
37
  }
38
38
  render() {
39
- return (h(Host, { key: '047229bea44614f1b7570d405d342c1924e7f368' }, h("div", { key: '14df0e4cf5316c609a5961c7b5a9e2adf75efdda', class: {
39
+ return (h(Host, { key: '60e6ede4d76518a4539f4e356dcaafe851104f0a' }, h("div", { key: 'd1f18567a2a63d584dc9bc1077727231084b5438', class: {
40
40
  'flex flex-row items-center rounded-xxl p-2 w-fit backdrop-blur-[20px]': true,
41
41
  'bg-opacity-on-body': this.color === SulaSegmentedControlColor.Gray,
42
42
  'bg-opacity-body': this.color === SulaSegmentedControlColor.White,
@@ -40,7 +40,7 @@ export class SulaSwitch {
40
40
  };
41
41
  }
42
42
  render() {
43
- return (h(Host, { key: '63e6240141744f8747d886c4ae377ec6e75a1430' }, h("div", { key: '734068ba86c268d388e892a9601dac6c5af585a9', class: {
43
+ return (h(Host, { key: '8ef093d3f68af0f413f945a4dd730e5e96d7a5a1' }, h("div", { key: '3d608aad735b972fafcbd528645b75f5315550c9', class: {
44
44
  'outline-none': true,
45
45
  'flex items-center space-x-12': !!this.label && this.type === SulaSwitchType.Default,
46
46
  'flex items-center justify-between bg-surface-on-body rounded-md min-h-[85px] px-24 py-16': this.type === SulaSwitchType.List,
@@ -48,17 +48,17 @@ export class SulaSwitch {
48
48
  'w-[280px]': this.type === SulaSwitchType.List && !this.responsive,
49
49
  'hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed cursor-pointer': this.type === SulaSwitchType.List && !this.disabled,
50
50
  'container-focus': this.isFocus && this.type === SulaSwitchType.List,
51
- }, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleClick, tabIndex: 0 }, this.type === SulaSwitchType.List && (h("div", { key: 'ab024dd2bd23e5ed2aaa970eb129d3df8f957df1', class: "flex flex-col flex-1 mr-16 overflow-hidden" }, !!this.label && h("label", { key: '26f9c644700d2e2209111220381b9848fc70d8a9', class: "text-text-primary font-bold text-base cursor-pointer break-words" }, this.label), !!this.subTitle && h("span", { key: 'aa7e3aceb3ef01b6cb36f1dc787c844eff1f5c46', class: "text-text-secondary text-base break-words" }, this.subTitle))), h("div", { key: '61634f3d849823aafb178cdde05ae31b1e76bf0b', class: {
51
+ }, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleClick, tabIndex: 0 }, this.type === SulaSwitchType.List && (h("div", { key: '605441ac6b207c8d58904f74f9215c652c0600ee', class: "flex flex-col flex-1 mr-16 overflow-hidden" }, !!this.label && h("label", { key: 'dc3e22543fb3b9c9ab3c51eb51a1f566d7ab5ef7', class: "text-text-primary font-bold text-base cursor-pointer break-words" }, this.label), !!this.subTitle && h("span", { key: 'b96976dbcbf641c577ca0ae2332156adf1e045b3', class: "text-text-secondary text-base break-words" }, this.subTitle))), h("div", { key: '49282abab10575fcc85d4c77766dbfd3dd2adb8b', class: {
52
52
  'switch-container w-56 h-32 flex items-center rounded-xxl p-2 outline-none': true,
53
53
  'switch-on bg-brand-primary justify-end': this.active,
54
54
  'switch-off bg-neutral-neutral-3 justify-start': !this.active,
55
55
  'cursor-not-allowed bg-states-bg-disabled': this.disabled,
56
56
  'switch-focus': this.isFocus && this.type === SulaSwitchType.Default,
57
- }, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '3bb4ef78190458168de783224a21620bd134d8d5', class: {
57
+ }, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: 'ddb3e2bc4cb310be34db555e12952ab8e49ae326', class: {
58
58
  'switch-thumb w-[28px] h-[28px] rounded-full flex justify-center items-center': true,
59
59
  'bg-negative-negative-1': !this.disabled,
60
60
  'bg-states-bg-disabled shadow-md': this.disabled,
61
- } }, h("div", { key: '867441effcc9169ca9aeb24d16e919a8896b4cc2', class: {
61
+ } }, h("div", { key: 'bfebb2de0032b2a350f89bf36fde37d46a440c07', class: {
62
62
  'switch-indicator rounded-full': true,
63
63
  'switch-indicator-on w-12 h-12 bg-brand-primary': this.active,
64
64
  'switch-indicator-off w-[10px] h-4 bg-neutral-neutral-4': !this.active,
@@ -16,15 +16,15 @@ export class SulaTable {
16
16
  this.fullWidth = true;
17
17
  }
18
18
  render() {
19
- return (h(Host, { key: 'f89ff123aa21b03dac2851520b1f4f9a456b733e', class: {
19
+ return (h(Host, { key: '145ad23cf5a01a06445ce80efdf0f64b71fdbd29', class: {
20
20
  'block max-w-full overflow-x-auto': true,
21
- } }, h("table", { key: 'fadb3c57fd65dc625799c6e4d9ceec9b810ec5b6', class: {
21
+ } }, h("table", { key: '294dbcbf266c228fc13865dbc2d10aefd213f36a', class: {
22
22
  'w-full': this.fullWidth && this.equalWidth,
23
23
  'w-max': !this.equalWidth,
24
24
  'min-w-full': this.fullWidth && !this.equalWidth,
25
25
  'table-fixed': this.equalWidth,
26
26
  'border-collapse border-spacing-0 box-border': true,
27
- } }, h("slot", { key: 'e6de13e3cd929e6ef4dd2bddafdbc3f0a57f4b7e' }))));
27
+ } }, h("slot", { key: '5d2ce3b351c909ae1c67d18bd65b5fc54594b9d7' }))));
28
28
  }
29
29
  static get is() { return "sula-table"; }
30
30
  static get originalStyleUrls() {
@@ -5,7 +5,7 @@ export class SulaTableBody {
5
5
  replaceHostWithRenderedElement(this.host, 'tbody');
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: '255fb81b2515c7de6f3dbda43a77db8564eb345e' }, h("tbody", { key: '792001ad301eed9649dcdc61c0ae7f9823697ae2' }, h("slot", { key: '1f30c22854d060ed58bd96d60f66f74e037e1fcb' }))));
8
+ return (h(Host, { key: 'e06c2725a5040c7fb9df4235bf1e653d95d5d719' }, h("tbody", { key: '0155edd3b5e0f536015d45e6036221f6c72ba4b6' }, h("slot", { key: '7b8e12821c6434b62e75f61e08ae492c41ac4401' }))));
9
9
  }
10
10
  static get is() { return "sula-table-body"; }
11
11
  static get originalStyleUrls() {
@@ -10,13 +10,13 @@ export class SulaTableCell {
10
10
  replaceHostWithRenderedElement(this.host, 'td');
11
11
  }
12
12
  render() {
13
- return (h(Host, { key: 'b2bf27030078f512b8ff89582d49e4c1d1c91f50' }, h("td", { key: '45ec20643f36908cee9ed79520a48cf9d2377bba', class: "align-middle text-left border-b border-dashed border-line-general" }, h("div", { key: '9c5f102be6d7588b0583d9cc02ddbb07bb93eaf2', class: {
13
+ return (h(Host, { key: '1b644425472c68880a9be150d52029a64d75ea26' }, h("td", { key: 'ee6740c73a9b05607e9f21a332bd47afa59338c7', class: "align-middle text-left border-b border-dashed border-line-general" }, h("div", { key: 'a145fa09de084ed3b8bd9555ca853d7aacfc71c3', class: {
14
14
  'px-16 py-4 w-full flex flex-col justify-center items-start box-border text-label-medium-regular text-text-secondary': true,
15
15
  'min-h-56': this.tableDensity === SulaTableDensity.Compact,
16
16
  'min-h-60': this.tableDensity === SulaTableDensity.Default,
17
17
  'min-h-64': this.tableDensity === SulaTableDensity.Spaced,
18
18
  'min-h-72': this.tableDensity === SulaTableDensity.Confortable,
19
- } }, h("slot", { key: 'ee02175ef133a387df99e0378df6c1089947d5b7' })))));
19
+ } }, h("slot", { key: '99055031e7b481629d2b254451345e959ee02e5b' })))));
20
20
  }
21
21
  static get is() { return "sula-table-cell"; }
22
22
  static get originalStyleUrls() {
@@ -10,13 +10,13 @@ export class SulaTableHeadCell {
10
10
  replaceHostWithRenderedElement(this.host, 'th');
11
11
  }
12
12
  render() {
13
- return (h(Host, { key: '0009d544b5ef7e7a2894cac4c766f40975469286' }, h("th", { key: '20b704d626c2d8f17c141ecc925f06014dc814aa', scope: "col", class: "align-middle text-left border-b border-line-general" }, h("div", { key: '7cd2c2167c2172fd1a77e9fadcafffb488344081', class: {
13
+ return (h(Host, { key: '232edc6dc291b82f88610f09f5deb426ce81f1d3' }, h("th", { key: 'a8f04a6834b65e33a1253ee605c462bfbe72c02d', scope: "col", class: "align-middle text-left border-b border-line-general" }, h("div", { key: '0efce93d109eed9d2f777a7b89314add9d039431', class: {
14
14
  'px-16 py-4 w-full flex justify-start items-center box-border text-label-small-bold text-text-secondary': true,
15
15
  'min-h-40': this.tableDensity === SulaTableDensity.Compact,
16
16
  'min-h-44': this.tableDensity === SulaTableDensity.Default,
17
17
  'min-h-48': this.tableDensity === SulaTableDensity.Spaced,
18
18
  'min-h-56': this.tableDensity === SulaTableDensity.Confortable,
19
- } }, h("slot", { key: '0c308962f97f0013ec93db54f4f8479912e566e7' })))));
19
+ } }, h("slot", { key: '3530e023f76c70da396ac9eed4c34e09121180c0' })))));
20
20
  }
21
21
  static get is() { return "sula-table-head-cell"; }
22
22
  static get originalStyleUrls() {
@@ -5,7 +5,7 @@ export class SulaTableHeader {
5
5
  replaceHostWithRenderedElement(this.host, 'thead');
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: 'bf6dd6f339e1486b47d4a3d95ba96f788efbd6d2' }, h("thead", { key: 'd8b8ddc23f128d4376aca8e20a2f343722658353' }, h("slot", { key: '9518f745123ca7c098cd80f4ae526fbc00f551a9' }))));
8
+ return (h(Host, { key: 'af51d1606b951c52a09c995fc5939323da083793' }, h("thead", { key: '308ac597f7aab44327dc8f73a47acf17f26b3b43' }, h("slot", { key: '8f2271a931e060c422aa423c56e68495f6b54105' }))));
9
9
  }
10
10
  static get is() { return "sula-table-header"; }
11
11
  static get originalStyleUrls() {