@sula-tech/webcomponents 0.4.1 → 0.6.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 (129) hide show
  1. package/dist/cjs/{index-BtkenDV1.js → index-Bbryl0vg.js} +30 -4
  2. package/dist/cjs/index-Bbryl0vg.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/{sula-avatar_14.cjs.entry.js → sula-avatar_18.cjs.entry.js} +386 -48
  5. package/dist/cjs/sula-avatar_18.cjs.entry.js.map +1 -0
  6. package/dist/cjs/webcomponents.cjs.js +2 -2
  7. package/dist/collection/collection-manifest.json +5 -1
  8. package/dist/collection/components/sula-button/sula-button.css +1 -1
  9. package/dist/collection/components/sula-button/sula-button.js +66 -6
  10. package/dist/collection/components/sula-button/sula-button.js.map +1 -1
  11. package/dist/collection/components/sula-button/sula-button.stories.js +260 -97
  12. package/dist/collection/components/sula-button/sula-button.stories.js.map +1 -1
  13. package/dist/collection/components/sula-checkbox/sula-checkbox.js +3 -3
  14. package/dist/collection/components/sula-chip/sula-chip.css +1 -1
  15. package/dist/collection/components/sula-chip/sula-chip.js +3 -3
  16. package/dist/collection/components/sula-dropdown/sula-dropdown.css +1 -0
  17. package/dist/collection/components/sula-dropdown/sula-dropdown.js +275 -0
  18. package/dist/collection/components/sula-dropdown/sula-dropdown.js.map +1 -0
  19. package/dist/collection/components/sula-dropdown/sula-dropdown.stories.js +155 -0
  20. package/dist/collection/components/sula-dropdown/sula-dropdown.stories.js.map +1 -0
  21. package/dist/collection/components/sula-icon/sula-icon.css +1 -1
  22. package/dist/collection/components/sula-icon/sula-icon.js +1 -1
  23. package/dist/collection/components/sula-loader/sula-loader.css +1 -1
  24. package/dist/collection/components/sula-loader/sula-loader.js +1 -1
  25. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.css +1 -1
  26. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +29 -1
  27. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js.map +1 -1
  28. package/dist/collection/components/sula-progress-bar/model/sula-progress-bar.model.js +15 -0
  29. package/dist/collection/components/sula-progress-bar/model/sula-progress-bar.model.js.map +1 -0
  30. package/dist/collection/components/sula-progress-bar/sula-progress-bar.css +1 -0
  31. package/dist/collection/components/sula-progress-bar/sula-progress-bar.js +213 -0
  32. package/dist/collection/components/sula-progress-bar/sula-progress-bar.js.map +1 -0
  33. package/dist/collection/components/sula-progress-bar/sula-progress.stories.js +172 -0
  34. package/dist/collection/components/sula-progress-bar/sula-progress.stories.js.map +1 -0
  35. package/dist/collection/components/sula-radio-button/sula-radio-button.js +2 -2
  36. package/dist/collection/components/sula-search-bar/model/sula-search.bar-model.js +6 -0
  37. package/dist/collection/components/sula-search-bar/model/sula-search.bar-model.js.map +1 -0
  38. package/dist/collection/components/sula-search-bar/sula-search-bar.css +1 -0
  39. package/dist/collection/components/sula-search-bar/sula-search-bar.js +240 -0
  40. package/dist/collection/components/sula-search-bar/sula-search-bar.js.map +1 -0
  41. package/dist/collection/components/sula-search-bar/sula-search-bar.stories.js +119 -0
  42. package/dist/collection/components/sula-search-bar/sula-search-bar.stories.js.map +1 -0
  43. package/dist/collection/components/sula-switch/sula-switch.js +4 -4
  44. package/dist/collection/components/sula-tag/sula-tag.js +3 -3
  45. package/dist/collection/components/sula-textarea/sula-textarea.js +6 -6
  46. package/dist/collection/components/sula-textfield/sula-textfield.js +2 -2
  47. package/dist/collection/components/sula-tiles/sula-tiles.js +1 -1
  48. package/dist/collection/components/sula-timeline-list/model/sula-timeline-list.model.js +7 -0
  49. package/dist/collection/components/sula-timeline-list/model/sula-timeline-list.model.js.map +1 -0
  50. package/dist/collection/components/sula-timeline-list/sula-timeline-list.css +1 -0
  51. package/dist/collection/components/sula-timeline-list/sula-timeline-list.js +123 -0
  52. package/dist/collection/components/sula-timeline-list/sula-timeline-list.js.map +1 -0
  53. package/dist/collection/components/sula-timeline-list/sula-timeline-list.stories.js +217 -0
  54. package/dist/collection/components/sula-timeline-list/sula-timeline-list.stories.js.map +1 -0
  55. package/dist/components/index.js +20 -2
  56. package/dist/components/index.js.map +1 -1
  57. package/dist/components/{p-DJGFqp8r.js → p-BNtk_d_S.js} +14 -5
  58. package/dist/components/p-BNtk_d_S.js.map +1 -0
  59. package/dist/components/p-CYBZuKr6.js +27129 -0
  60. package/dist/components/p-CYBZuKr6.js.map +1 -0
  61. package/dist/components/{p-CEU3PNQs.js → p-DULnDBOY.js} +4 -4
  62. package/dist/components/{p-CEU3PNQs.js.map → p-DULnDBOY.js.map} +1 -1
  63. package/dist/components/sula-avatar.js +1 -1
  64. package/dist/components/sula-badge.js +1 -1
  65. package/dist/components/sula-button.js +38 -9
  66. package/dist/components/sula-button.js.map +1 -1
  67. package/dist/components/sula-checkbox.js +4 -4
  68. package/dist/components/sula-chip.js +6 -6
  69. package/dist/components/sula-chip.js.map +1 -1
  70. package/dist/components/sula-dropdown.d.ts +11 -0
  71. package/dist/components/sula-dropdown.js +137 -0
  72. package/dist/components/sula-dropdown.js.map +1 -0
  73. package/dist/components/sula-icon.js +1 -1
  74. package/dist/components/sula-loader.js +1 -27124
  75. package/dist/components/sula-loader.js.map +1 -1
  76. package/dist/components/sula-menu-select-list.js +1 -1
  77. package/dist/components/sula-progress-bar.d.ts +11 -0
  78. package/dist/components/sula-progress-bar.js +122 -0
  79. package/dist/components/sula-progress-bar.js.map +1 -0
  80. package/dist/components/sula-radio-button.js +2 -2
  81. package/dist/components/sula-search-bar.d.ts +11 -0
  82. package/dist/components/sula-search-bar.js +104 -0
  83. package/dist/components/sula-search-bar.js.map +1 -0
  84. package/dist/components/sula-switch.js +4 -4
  85. package/dist/components/sula-tag.js +4 -4
  86. package/dist/components/sula-textarea.js +6 -6
  87. package/dist/components/sula-textfield.js +3 -3
  88. package/dist/components/sula-tiles.js +2 -2
  89. package/dist/components/sula-timeline-list.d.ts +11 -0
  90. package/dist/components/sula-timeline-list.js +101 -0
  91. package/dist/components/sula-timeline-list.js.map +1 -0
  92. package/dist/esm/{index-Yyeke16a.js → index-or7qTZgT.js} +30 -4
  93. package/dist/esm/index-or7qTZgT.js.map +1 -0
  94. package/dist/esm/loader.js +3 -3
  95. package/dist/esm/{sula-avatar_14.entry.js → sula-avatar_18.entry.js} +383 -49
  96. package/dist/esm/sula-avatar_18.entry.js.map +1 -0
  97. package/dist/esm/webcomponents.js +3 -3
  98. package/dist/types/components/sula-button/sula-button.d.ts +11 -1
  99. package/dist/types/components/sula-button/sula-button.stories.d.ts +124 -33
  100. package/dist/types/components/sula-dropdown/sula-dropdown.d.ts +49 -0
  101. package/dist/types/components/sula-dropdown/sula-dropdown.stories.d.ts +68 -0
  102. package/dist/types/components/sula-menu-select-list/sula-menu-select-list.d.ts +4 -0
  103. package/dist/types/components/sula-progress-bar/model/sula-progress-bar.model.d.ts +12 -0
  104. package/dist/types/components/sula-progress-bar/sula-progress-bar.d.ts +33 -0
  105. package/dist/types/components/sula-progress-bar/sula-progress.stories.d.ts +84 -0
  106. package/dist/types/components/sula-search-bar/model/sula-search.bar-model.d.ts +4 -0
  107. package/dist/types/components/sula-search-bar/sula-search-bar.d.ts +50 -0
  108. package/dist/types/components/sula-search-bar/sula-search-bar.stories.d.ts +84 -0
  109. package/dist/types/components/sula-timeline-list/model/sula-timeline-list.model.d.ts +16 -0
  110. package/dist/types/components/sula-timeline-list/sula-timeline-list.d.ts +17 -0
  111. package/dist/types/components/sula-timeline-list/sula-timeline-list.stories.d.ts +47 -0
  112. package/dist/types/components.d.ts +315 -0
  113. package/dist/webcomponents/{p-5ba79323.entry.js → p-2a133394.entry.js} +3656 -3167
  114. package/dist/webcomponents/p-2a133394.entry.js.map +1 -0
  115. package/dist/webcomponents/{p-Yyeke16a.js → p-or7qTZgT.js} +229 -204
  116. package/dist/webcomponents/p-or7qTZgT.js.map +1 -0
  117. package/dist/webcomponents/webcomponents.esm.js +50 -18
  118. package/package.json +1 -1
  119. package/readme.md +79 -19
  120. package/dist/cjs/index-BtkenDV1.js.map +0 -1
  121. package/dist/cjs/sula-avatar.sula-badge.sula-button.sula-checkbox.sula-chip.sula-icon.sula-loader.sula-menu-select-list.sula-radio-button.sula-switch.sula-tag.sula-textarea.sula-textfield.sula-tiles.entry.cjs.js.map +0 -1
  122. package/dist/cjs/sula-avatar_14.cjs.entry.js.map +0 -1
  123. package/dist/components/p-DJGFqp8r.js.map +0 -1
  124. package/dist/esm/index-Yyeke16a.js.map +0 -1
  125. package/dist/esm/sula-avatar.sula-badge.sula-button.sula-checkbox.sula-chip.sula-icon.sula-loader.sula-menu-select-list.sula-radio-button.sula-switch.sula-tag.sula-textarea.sula-textfield.sula-tiles.entry.js.map +0 -1
  126. package/dist/esm/sula-avatar_14.entry.js.map +0 -1
  127. package/dist/webcomponents/p-5ba79323.entry.js.map +0 -1
  128. package/dist/webcomponents/p-Yyeke16a.js.map +0 -1
  129. package/dist/webcomponents/sula-avatar.sula-badge.sula-button.sula-checkbox.sula-chip.sula-icon.sula-loader.sula-menu-select-list.sula-radio-button.sula-switch.sula-tag.sula-textarea.sula-textfield.sula-tiles.entry.esm.js.map +0 -1
@@ -5,81 +5,111 @@ export default {
5
5
  argTypes: {
6
6
  text: {
7
7
  control: 'text',
8
- defaultValue: 'Button Text',
9
- description: 'Button text when is text type',
10
- type: {
11
- required: false,
8
+ description: 'Texto do botão quando é do tipo texto',
9
+ table: {
10
+ type: { summary: 'string' },
11
+ defaultValue: { summary: 'undefined' },
12
12
  },
13
13
  },
14
14
  icon: {
15
15
  control: 'text',
16
- defaultValue: 'ph ph-house',
17
- description: 'Button icon when is Icon type',
18
- type: {
19
- required: false,
16
+ description: 'Ícone do botão quando é do tipo ícone',
17
+ table: {
18
+ type: { summary: 'string' },
19
+ defaultValue: { summary: 'undefined' },
20
+ },
21
+ },
22
+ leftIcon: {
23
+ control: 'text',
24
+ description: 'Ícone à esquerda do texto',
25
+ table: {
26
+ type: { summary: 'string' },
27
+ defaultValue: { summary: 'undefined' },
28
+ },
29
+ },
30
+ rightIcon: {
31
+ control: 'text',
32
+ description: 'Ícone à direita do texto',
33
+ table: {
34
+ type: { summary: 'string' },
35
+ defaultValue: { summary: 'undefined' },
20
36
  },
21
37
  },
22
38
  appearance: {
23
39
  control: { type: 'select' },
24
40
  options: Object.values(SulaButtonAppearance),
25
- defaultValue: SulaButtonAppearance.Default,
26
- description: 'Button appearance',
27
- type: {
28
- required: false,
41
+ description: 'Aparência visual do botão',
42
+ table: {
43
+ type: { summary: 'SulaButtonAppearance' },
44
+ defaultValue: { summary: 'SulaButtonAppearance.Default' },
29
45
  },
30
46
  },
31
47
  type: {
32
48
  control: { type: 'select' },
33
49
  options: Object.values(SulaButtonType),
34
- defaultValue: SulaButtonType.Text,
35
- description: 'Button type',
36
- type: {
37
- required: false,
50
+ description: 'Tipo do botão (texto ou ícone)',
51
+ table: {
52
+ type: { summary: 'SulaButtonType' },
53
+ defaultValue: { summary: 'SulaButtonType.Text' },
38
54
  },
39
55
  },
40
56
  size: {
41
57
  control: { type: 'select' },
42
58
  options: Object.values(SulaButtonSize),
43
- defaultValue: SulaButtonSize.Default,
44
- description: 'Button size',
45
- type: {
46
- required: false,
59
+ description: 'Tamanho do botão',
60
+ table: {
61
+ type: { summary: 'SulaButtonSize' },
62
+ defaultValue: { summary: 'SulaButtonSize.Default' },
47
63
  },
48
64
  },
49
65
  status: {
50
66
  control: { type: 'select' },
51
67
  options: Object.values(SulaButtonStatus),
52
- defaultValue: SulaButtonStatus.Primary,
53
- description: 'Button status',
54
- type: {
55
- required: false,
68
+ description: 'Status/cor do botão',
69
+ table: {
70
+ type: { summary: 'SulaButtonStatus' },
71
+ defaultValue: { summary: 'SulaButtonStatus.Primary' },
56
72
  },
57
73
  },
58
74
  loading: {
59
75
  control: 'boolean',
60
- defaultValue: false,
61
- description: 'Is button loading',
62
- type: {
63
- required: false,
76
+ description: 'Estado de carregamento do botão',
77
+ table: {
78
+ type: { summary: 'boolean' },
79
+ defaultValue: { summary: 'false' },
64
80
  },
65
81
  },
66
82
  buttonDisabled: {
67
83
  control: 'boolean',
68
- defaultValue: false,
69
- description: 'Is button disabled',
70
- type: {
71
- required: false,
84
+ description: 'Estado desabilitado do botão',
85
+ table: {
86
+ type: { summary: 'boolean' },
87
+ defaultValue: { summary: 'false' },
72
88
  },
73
89
  },
74
90
  buttonClicked: {
75
91
  action: 'buttonClicked',
76
92
  description: 'Evento emitido quando o botão é clicado',
93
+ table: {
94
+ type: { summary: 'CustomEvent<void>' },
95
+ },
77
96
  },
78
97
  },
79
98
  parameters: {
80
99
  docs: {
81
100
  description: {
82
- component: 'O componente Icon Button Sula Design System é utilizado como a representação visual para ações de clique. Eles serão utilizados para comunicar ações que os usuários podem tomar e permitir que eles interajam com a página de várias maneiras.',
101
+ component: `
102
+ O componente **Sula Button** é utilizado como representação visual para ações de clique.
103
+ Ele permite que os usuários interajam com a interface de diferentes maneiras, comunicando
104
+ ações disponíveis através de variações visuais e estados.
105
+
106
+ ### Características principais:
107
+ - Suporte a diferentes aparências (Default, Secondary, Text)
108
+ - Tipos de botão (Texto e Ícone)
109
+ - Estados de carregamento e desabilitado
110
+ - Diferentes tamanhos e status de cor
111
+ - Suporte a ícones laterais
112
+ `,
83
113
  },
84
114
  },
85
115
  },
@@ -87,25 +117,32 @@ export default {
87
117
  const Template = args => {
88
118
  const container = document.createElement('div');
89
119
  container.style.margin = '20px';
120
+ container.style.display = 'flex';
121
+ container.style.alignItems = 'center';
122
+ container.style.justifyContent = 'center';
123
+ container.style.minHeight = '80px';
90
124
  const el = document.createElement('sula-button');
91
125
  if (args.text)
92
126
  el.setAttribute('text', args.text);
93
127
  if (args.icon)
94
128
  el.setAttribute('icon', args.icon);
129
+ if (args.leftIcon)
130
+ el.setAttribute('left-icon', args.leftIcon);
131
+ if (args.rightIcon)
132
+ el.setAttribute('right-icon', args.rightIcon);
95
133
  el.setAttribute('appearance', args.appearance);
96
134
  el.setAttribute('type', args.type);
97
135
  el.setAttribute('size', args.size);
98
136
  el.setAttribute('status', args.status);
99
- el.setAttribute('loading', args.loading.toString());
100
- el.setAttribute('button-disabled', args.buttonDisabled.toString());
137
+ el.setAttribute('loading', args.loading ? args.loading.toString() : 'false');
138
+ el.setAttribute('button-disabled', args.buttonDisabled ? args.buttonDisabled.toString() : 'false');
101
139
  el.addEventListener('buttonClicked', args.buttonClicked);
102
140
  container.appendChild(el);
103
141
  return container;
104
142
  };
105
- export const Default = Template.bind({});
106
- Default.args = {
107
- text: 'Default Button',
108
- icon: '',
143
+ export const Playground = Template.bind({});
144
+ Playground.args = {
145
+ text: 'Button Text',
109
146
  appearance: SulaButtonAppearance.Default,
110
147
  type: SulaButtonType.Text,
111
148
  size: SulaButtonSize.Default,
@@ -113,103 +150,229 @@ Default.args = {
113
150
  loading: false,
114
151
  buttonDisabled: false,
115
152
  };
116
- export const IconButton = Template.bind({});
117
- IconButton.args = {
118
- text: '',
119
- icon: 'ph ph-house',
153
+ export const DefaultAppearance = Template.bind({});
154
+ DefaultAppearance.args = {
155
+ text: 'Default Button',
120
156
  appearance: SulaButtonAppearance.Default,
121
- type: SulaButtonType.Icon,
157
+ type: SulaButtonType.Text,
158
+ size: SulaButtonSize.Default,
159
+ status: SulaButtonStatus.Primary,
160
+ };
161
+ DefaultAppearance.parameters = {
162
+ docs: {
163
+ description: {
164
+ story: 'Botão com aparência padrão (preenchido).',
165
+ },
166
+ },
167
+ };
168
+ export const SecondaryAppearance = Template.bind({});
169
+ SecondaryAppearance.args = {
170
+ text: 'Secondary Button',
171
+ appearance: SulaButtonAppearance.Secondary,
172
+ type: SulaButtonType.Text,
122
173
  size: SulaButtonSize.Default,
123
174
  status: SulaButtonStatus.Primary,
124
- loading: false,
125
- buttonDisabled: false,
175
+ };
176
+ SecondaryAppearance.parameters = {
177
+ docs: {
178
+ description: {
179
+ story: 'Botão com aparência secundária (com borda).',
180
+ },
181
+ },
126
182
  };
127
183
  export const TextAppearance = Template.bind({});
128
184
  TextAppearance.args = {
129
185
  text: 'Text Button',
130
- icon: '',
131
186
  appearance: SulaButtonAppearance.Text,
132
187
  type: SulaButtonType.Text,
133
188
  size: SulaButtonSize.Default,
134
189
  status: SulaButtonStatus.Primary,
135
- loading: false,
136
- buttonDisabled: false,
137
190
  };
138
- export const SecondaryButton = Template.bind({});
139
- SecondaryButton.args = {
140
- text: 'Secondary Button',
141
- icon: '',
142
- appearance: SulaButtonAppearance.Secondary,
143
- type: SulaButtonType.Text,
144
- size: SulaButtonSize.Default,
145
- status: SulaButtonStatus.Primary,
146
- loading: false,
147
- buttonDisabled: false,
191
+ TextAppearance.parameters = {
192
+ docs: {
193
+ description: {
194
+ story: 'Botão com aparência de texto (sem fundo).',
195
+ },
196
+ },
148
197
  };
149
- export const LargeButton = Template.bind({});
150
- LargeButton.args = {
151
- text: 'Large Button',
152
- icon: '',
198
+ export const IconButton = Template.bind({});
199
+ IconButton.args = {
200
+ icon: 'ph ph-house',
153
201
  appearance: SulaButtonAppearance.Default,
154
- type: SulaButtonType.Text,
155
- size: SulaButtonSize.Large,
202
+ type: SulaButtonType.Icon,
203
+ size: SulaButtonSize.Default,
156
204
  status: SulaButtonStatus.Primary,
157
- loading: false,
158
- buttonDisabled: false,
159
205
  };
160
- export const DangerButton = Template.bind({});
161
- DangerButton.args = {
162
- text: 'Danger Button',
163
- icon: '',
206
+ IconButton.parameters = {
207
+ docs: {
208
+ description: {
209
+ story: 'Botão contendo apenas um ícone.',
210
+ },
211
+ },
212
+ };
213
+ export const Sizes = () => {
214
+ const container = document.createElement('div');
215
+ container.style.display = 'flex';
216
+ container.style.gap = '16px';
217
+ container.style.alignItems = 'center';
218
+ container.style.padding = '20px';
219
+ const defaultButton = document.createElement('sula-button');
220
+ defaultButton.setAttribute('text', 'Default Size');
221
+ defaultButton.setAttribute('size', SulaButtonSize.Default);
222
+ const largeButton = document.createElement('sula-button');
223
+ largeButton.setAttribute('text', 'Large Size');
224
+ largeButton.setAttribute('size', SulaButtonSize.Large);
225
+ container.appendChild(defaultButton);
226
+ container.appendChild(largeButton);
227
+ return container;
228
+ };
229
+ Sizes.parameters = {
230
+ docs: {
231
+ description: {
232
+ story: 'Comparação entre os diferentes tamanhos disponíveis.',
233
+ },
234
+ },
235
+ };
236
+ export const StatusVariations = () => {
237
+ const container = document.createElement('div');
238
+ container.style.display = 'flex';
239
+ container.style.gap = '16px';
240
+ container.style.alignItems = 'center';
241
+ container.style.padding = '20px';
242
+ const primaryButton = document.createElement('sula-button');
243
+ primaryButton.setAttribute('text', 'Primary');
244
+ primaryButton.setAttribute('status', SulaButtonStatus.Primary);
245
+ const dangerButton = document.createElement('sula-button');
246
+ dangerButton.setAttribute('text', 'Danger');
247
+ dangerButton.setAttribute('status', SulaButtonStatus.Danger);
248
+ const negativeButton = document.createElement('sula-button');
249
+ negativeButton.setAttribute('text', 'Negative');
250
+ negativeButton.setAttribute('status', SulaButtonStatus.Negative);
251
+ container.appendChild(primaryButton);
252
+ container.appendChild(dangerButton);
253
+ container.appendChild(negativeButton);
254
+ return container;
255
+ };
256
+ StatusVariations.parameters = {
257
+ docs: {
258
+ description: {
259
+ story: 'Diferentes status/cores disponíveis para o botão.',
260
+ },
261
+ },
262
+ };
263
+ export const WithLeftIcon = Template.bind({});
264
+ WithLeftIcon.args = {
265
+ text: 'With Left Icon',
266
+ leftIcon: 'ph ph-plus',
164
267
  appearance: SulaButtonAppearance.Default,
165
268
  type: SulaButtonType.Text,
166
269
  size: SulaButtonSize.Default,
167
- status: SulaButtonStatus.Danger,
168
- loading: false,
169
- buttonDisabled: false,
270
+ status: SulaButtonStatus.Primary,
271
+ };
272
+ WithLeftIcon.parameters = {
273
+ docs: {
274
+ description: {
275
+ story: 'Botão com ícone à esquerda do texto.',
276
+ },
277
+ },
170
278
  };
171
- export const NegativeButton = Template.bind({});
172
- NegativeButton.args = {
173
- text: 'Negative Button',
174
- icon: '',
279
+ export const WithRightIcon = Template.bind({});
280
+ WithRightIcon.args = {
281
+ text: 'With Right Icon',
282
+ rightIcon: 'ph ph-arrow-right',
175
283
  appearance: SulaButtonAppearance.Default,
176
284
  type: SulaButtonType.Text,
177
285
  size: SulaButtonSize.Default,
178
- status: SulaButtonStatus.Negative,
179
- loading: false,
180
- buttonDisabled: false,
286
+ status: SulaButtonStatus.Primary,
181
287
  };
182
- export const DisabledButton = Template.bind({});
183
- DisabledButton.args = {
184
- text: 'Disabled Button',
185
- icon: '',
288
+ WithRightIcon.parameters = {
289
+ docs: {
290
+ description: {
291
+ story: 'Botão com ícone à direita do texto.',
292
+ },
293
+ },
294
+ };
295
+ export const WithBothIcons = Template.bind({});
296
+ WithBothIcons.args = {
297
+ text: 'Both Icons',
298
+ leftIcon: 'ph ph-download',
299
+ rightIcon: 'ph ph-arrow-down',
186
300
  appearance: SulaButtonAppearance.Default,
187
301
  type: SulaButtonType.Text,
188
302
  size: SulaButtonSize.Default,
189
303
  status: SulaButtonStatus.Primary,
190
- loading: false,
191
- buttonDisabled: true,
192
304
  };
193
- export const LoadingButton = Template.bind({});
194
- LoadingButton.args = {
305
+ WithBothIcons.parameters = {
306
+ docs: {
307
+ description: {
308
+ story: 'Botão com ícones em ambos os lados do texto.',
309
+ },
310
+ },
311
+ };
312
+ export const LoadingState = Template.bind({});
313
+ LoadingState.args = {
195
314
  text: 'Loading Button',
196
- icon: '',
197
315
  appearance: SulaButtonAppearance.Default,
198
316
  type: SulaButtonType.Text,
199
317
  size: SulaButtonSize.Default,
200
318
  status: SulaButtonStatus.Primary,
201
319
  loading: true,
202
- buttonDisabled: false,
203
320
  };
204
- export const IconAndTextButton = Template.bind({});
205
- IconAndTextButton.args = {
206
- text: 'Icon and Text',
207
- icon: 'ph ph-house',
321
+ LoadingState.parameters = {
322
+ docs: {
323
+ description: {
324
+ story: 'Botão em estado de carregamento.',
325
+ },
326
+ },
327
+ };
328
+ export const DisabledState = Template.bind({});
329
+ DisabledState.args = {
330
+ text: 'Disabled Button',
208
331
  appearance: SulaButtonAppearance.Default,
209
332
  type: SulaButtonType.Text,
210
333
  size: SulaButtonSize.Default,
211
334
  status: SulaButtonStatus.Primary,
212
- loading: false,
213
- buttonDisabled: false,
335
+ buttonDisabled: true,
336
+ };
337
+ DisabledState.parameters = {
338
+ docs: {
339
+ description: {
340
+ story: 'Botão em estado desabilitado.',
341
+ },
342
+ },
343
+ };
344
+ export const AllVariations = () => {
345
+ const container = document.createElement('div');
346
+ container.style.display = 'grid';
347
+ container.style.gridTemplateColumns = 'repeat(auto-fit, minmax(200px, 1fr))';
348
+ container.style.gap = '16px';
349
+ container.style.padding = '20px';
350
+ const variations = [
351
+ { text: 'Default Primary', appearance: SulaButtonAppearance.Default, status: SulaButtonStatus.Primary },
352
+ { text: 'Default Danger', appearance: SulaButtonAppearance.Default, status: SulaButtonStatus.Danger },
353
+ { text: 'Default Negative', appearance: SulaButtonAppearance.Default, status: SulaButtonStatus.Negative },
354
+ { text: 'Secondary Primary', appearance: SulaButtonAppearance.Secondary, status: SulaButtonStatus.Primary },
355
+ { text: 'Secondary Danger', appearance: SulaButtonAppearance.Secondary, status: SulaButtonStatus.Danger },
356
+ { text: 'Secondary Negative', appearance: SulaButtonAppearance.Secondary, status: SulaButtonStatus.Negative },
357
+ { text: 'Text Primary', appearance: SulaButtonAppearance.Text, status: SulaButtonStatus.Primary },
358
+ { text: 'Text Danger', appearance: SulaButtonAppearance.Text, status: SulaButtonStatus.Danger },
359
+ ];
360
+ variations.forEach(variation => {
361
+ const button = document.createElement('sula-button');
362
+ button.setAttribute('text', variation.text);
363
+ button.setAttribute('appearance', variation.appearance);
364
+ button.setAttribute('status', variation.status);
365
+ button.setAttribute('type', SulaButtonType.Text);
366
+ button.setAttribute('size', SulaButtonSize.Default);
367
+ container.appendChild(button);
368
+ });
369
+ return container;
370
+ };
371
+ AllVariations.parameters = {
372
+ docs: {
373
+ description: {
374
+ story: 'Visão geral de todas as combinações de aparência e status.',
375
+ },
376
+ },
214
377
  };
215
378
  //# sourceMappingURL=sula-button.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sula-button.stories.js","source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IACR,UAAU,EAAE,oBAAoB,CAAC,OAAO;IACxC,IAAI,EAAE,cAAc,CAAC,IAAI;IACzB,IAAI,EAAE,cAAc,CAAC,OAAO;IAC5B,MAAM,EAAE,gBAAgB,CAAC,OAAO;IAChC,OAAO,EAAE,IAAI;IACb,cAAc,EAAE,KAAK;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnD,iBAAiB,CAAC,IAAI,GAAG;IACvB,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,aAAa;IACnB,UAAU,EAAE,oBAAoB,CAAC,OAAO;IACxC,IAAI,EAAE,cAAc,CAAC,IAAI;IACzB,IAAI,EAAE,cAAc,CAAC,OAAO;IAC5B,MAAM,EAAE,gBAAgB,CAAC,OAAO;IAChC,OAAO,EAAE,KAAK;IACd,cAAc,EAAE,KAAK;CACtB,CAAC","sourcesContent":["import { SulaButtonAppearance, SulaButtonSize, SulaButtonStatus, SulaButtonType } from './model/sula-button.model';\n\nexport default {\n title: 'Components/sula-button',\n tags: ['autodocs'],\n argTypes: {\n text: {\n control: 'text',\n defaultValue: 'Button Text',\n description: 'Button text when is text type',\n type: {\n required: false,\n },\n },\n icon: {\n control: 'text',\n defaultValue: 'ph ph-house',\n description: 'Button icon when is Icon type',\n type: {\n required: false,\n },\n },\n appearance: {\n control: { type: 'select' },\n options: Object.values(SulaButtonAppearance),\n defaultValue: SulaButtonAppearance.Default,\n description: 'Button appearance',\n type: {\n required: false,\n },\n },\n type: {\n control: { type: 'select' },\n options: Object.values(SulaButtonType),\n defaultValue: SulaButtonType.Text,\n description: 'Button type',\n type: {\n required: false,\n },\n },\n size: {\n control: { type: 'select' },\n options: Object.values(SulaButtonSize),\n defaultValue: SulaButtonSize.Default,\n description: 'Button size',\n type: {\n required: false,\n },\n },\n status: {\n control: { type: 'select' },\n options: Object.values(SulaButtonStatus),\n defaultValue: SulaButtonStatus.Primary,\n description: 'Button status',\n type: {\n required: false,\n },\n },\n loading: {\n control: 'boolean',\n defaultValue: false,\n description: 'Is button loading',\n type: {\n required: false,\n },\n },\n buttonDisabled: {\n control: 'boolean',\n defaultValue: false,\n description: 'Is button disabled',\n type: {\n required: false,\n },\n },\n buttonClicked: {\n action: 'buttonClicked',\n description: 'Evento emitido quando o botão é clicado',\n },\n },\n parameters: {\n docs: {\n description: {\n component:\n 'O componente Icon Button Sula Design System é utilizado como a representação visual para ações de clique. Eles serão utilizados para comunicar ações que os usuários podem tomar e permitir que eles interajam com a página de várias maneiras.',\n },\n },\n },\n};\n\nconst Template = args => {\n const container = document.createElement('div');\n container.style.margin = '20px';\n\n const el = document.createElement('sula-button');\n\n if (args.text) el.setAttribute('text', args.text);\n if (args.icon) el.setAttribute('icon', args.icon);\n el.setAttribute('appearance', args.appearance);\n el.setAttribute('type', args.type);\n el.setAttribute('size', args.size);\n el.setAttribute('status', args.status);\n el.setAttribute('loading', args.loading.toString());\n el.setAttribute('button-disabled', args.buttonDisabled.toString());\n\n el.addEventListener('buttonClicked', args.buttonClicked);\n\n container.appendChild(el);\n\n return container;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n text: 'Default Button',\n icon: '',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n loading: false,\n buttonDisabled: false,\n};\n\nexport const IconButton = Template.bind({});\nIconButton.args = {\n text: '',\n icon: 'ph ph-house',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Icon,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n loading: false,\n buttonDisabled: false,\n};\n\nexport const TextAppearance = Template.bind({});\nTextAppearance.args = {\n text: 'Text Button',\n icon: '',\n appearance: SulaButtonAppearance.Text,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n loading: false,\n buttonDisabled: false,\n};\n\nexport const SecondaryButton = Template.bind({});\nSecondaryButton.args = {\n text: 'Secondary Button',\n icon: '',\n appearance: SulaButtonAppearance.Secondary,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n loading: false,\n buttonDisabled: false,\n};\n\nexport const LargeButton = Template.bind({});\nLargeButton.args = {\n text: 'Large Button',\n icon: '',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Large,\n status: SulaButtonStatus.Primary,\n loading: false,\n buttonDisabled: false,\n};\n\nexport const DangerButton = Template.bind({});\nDangerButton.args = {\n text: 'Danger Button',\n icon: '',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Danger,\n loading: false,\n buttonDisabled: false,\n};\n\nexport const NegativeButton = Template.bind({});\nNegativeButton.args = {\n text: 'Negative Button',\n icon: '',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Negative,\n loading: false,\n buttonDisabled: false,\n};\n\nexport const DisabledButton = Template.bind({});\nDisabledButton.args = {\n text: 'Disabled Button',\n icon: '',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n loading: false,\n buttonDisabled: true,\n};\n\nexport const LoadingButton = Template.bind({});\nLoadingButton.args = {\n text: 'Loading Button',\n icon: '',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n loading: true,\n buttonDisabled: false,\n};\n\nexport const IconAndTextButton = Template.bind({});\nIconAndTextButton.args = {\n text: 'Icon and Text',\n icon: 'ph ph-house',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n loading: false,\n buttonDisabled: false,\n};\n"]}
1
+ {"version":3,"file":"sula-button.stories.js","sourceRoot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QACrD,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,CAAC,YAAY,CAAC,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QACxD,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;QAChD,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;QACjD,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;QACpD,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AACF,aAAa,CAAC,UAAU,GAAG;IACzB,IAAI,EAAE;QACJ,WAAW,EAAE;YACX,KAAK,EAAE,4DAA4D;SACpE;KACF;CACF,CAAC","sourcesContent":["import { SulaButtonAppearance, SulaButtonSize, SulaButtonStatus, SulaButtonType } from './model/sula-button.model';\n\nexport default {\n title: 'Components/sula-button',\n tags: ['autodocs'],\n argTypes: {\n text: {\n control: 'text',\n description: 'Texto do botão quando é do tipo texto',\n table: {\n type: { summary: 'string' },\n defaultValue: { summary: 'undefined' },\n },\n },\n icon: {\n control: 'text',\n description: 'Ícone do botão quando é do tipo ícone',\n table: {\n type: { summary: 'string' },\n defaultValue: { summary: 'undefined' },\n },\n },\n leftIcon: {\n control: 'text',\n description: 'Ícone à esquerda do texto',\n table: {\n type: { summary: 'string' },\n defaultValue: { summary: 'undefined' },\n },\n },\n rightIcon: {\n control: 'text',\n description: 'Ícone à direita do texto',\n table: {\n type: { summary: 'string' },\n defaultValue: { summary: 'undefined' },\n },\n },\n appearance: {\n control: { type: 'select' },\n options: Object.values(SulaButtonAppearance),\n description: 'Aparência visual do botão',\n table: {\n type: { summary: 'SulaButtonAppearance' },\n defaultValue: { summary: 'SulaButtonAppearance.Default' },\n },\n },\n type: {\n control: { type: 'select' },\n options: Object.values(SulaButtonType),\n description: 'Tipo do botão (texto ou ícone)',\n table: {\n type: { summary: 'SulaButtonType' },\n defaultValue: { summary: 'SulaButtonType.Text' },\n },\n },\n size: {\n control: { type: 'select' },\n options: Object.values(SulaButtonSize),\n description: 'Tamanho do botão',\n table: {\n type: { summary: 'SulaButtonSize' },\n defaultValue: { summary: 'SulaButtonSize.Default' },\n },\n },\n status: {\n control: { type: 'select' },\n options: Object.values(SulaButtonStatus),\n description: 'Status/cor do botão',\n table: {\n type: { summary: 'SulaButtonStatus' },\n defaultValue: { summary: 'SulaButtonStatus.Primary' },\n },\n },\n loading: {\n control: 'boolean',\n description: 'Estado de carregamento do botão',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: 'false' },\n },\n },\n buttonDisabled: {\n control: 'boolean',\n description: 'Estado desabilitado do botão',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: 'false' },\n },\n },\n buttonClicked: {\n action: 'buttonClicked',\n description: 'Evento emitido quando o botão é clicado',\n table: {\n type: { summary: 'CustomEvent<void>' },\n },\n },\n },\n parameters: {\n docs: {\n description: {\n component: `\nO componente **Sula Button** é utilizado como representação visual para ações de clique. \nEle permite que os usuários interajam com a interface de diferentes maneiras, comunicando \nações disponíveis através de variações visuais e estados.\n\n### Características principais:\n- Suporte a diferentes aparências (Default, Secondary, Text)\n- Tipos de botão (Texto e Ícone)\n- Estados de carregamento e desabilitado\n- Diferentes tamanhos e status de cor\n- Suporte a ícones laterais\n `,\n },\n },\n },\n};\n\nconst Template = args => {\n const container = document.createElement('div');\n container.style.margin = '20px';\n container.style.display = 'flex';\n container.style.alignItems = 'center';\n container.style.justifyContent = 'center';\n container.style.minHeight = '80px';\n\n const el = document.createElement('sula-button');\n\n if (args.text) el.setAttribute('text', args.text);\n if (args.icon) el.setAttribute('icon', args.icon);\n if (args.leftIcon) el.setAttribute('left-icon', args.leftIcon);\n if (args.rightIcon) el.setAttribute('right-icon', args.rightIcon);\n\n el.setAttribute('appearance', args.appearance);\n el.setAttribute('type', args.type);\n el.setAttribute('size', args.size);\n el.setAttribute('status', args.status);\n el.setAttribute('loading', args.loading ? args.loading.toString() : 'false');\n el.setAttribute('button-disabled', args.buttonDisabled ? args.buttonDisabled.toString() : 'false');\n\n el.addEventListener('buttonClicked', args.buttonClicked);\n\n container.appendChild(el);\n return container;\n};\n\nexport const Playground = Template.bind({});\nPlayground.args = {\n text: 'Button Text',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n loading: false,\n buttonDisabled: false,\n};\n\nexport const DefaultAppearance = Template.bind({});\nDefaultAppearance.args = {\n text: 'Default Button',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n};\nDefaultAppearance.parameters = {\n docs: {\n description: {\n story: 'Botão com aparência padrão (preenchido).',\n },\n },\n};\n\nexport const SecondaryAppearance = Template.bind({});\nSecondaryAppearance.args = {\n text: 'Secondary Button',\n appearance: SulaButtonAppearance.Secondary,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n};\nSecondaryAppearance.parameters = {\n docs: {\n description: {\n story: 'Botão com aparência secundária (com borda).',\n },\n },\n};\n\nexport const TextAppearance = Template.bind({});\nTextAppearance.args = {\n text: 'Text Button',\n appearance: SulaButtonAppearance.Text,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n};\nTextAppearance.parameters = {\n docs: {\n description: {\n story: 'Botão com aparência de texto (sem fundo).',\n },\n },\n};\n\nexport const IconButton = Template.bind({});\nIconButton.args = {\n icon: 'ph ph-house',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Icon,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n};\nIconButton.parameters = {\n docs: {\n description: {\n story: 'Botão contendo apenas um ícone.',\n },\n },\n};\n\nexport const Sizes = () => {\n const container = document.createElement('div');\n container.style.display = 'flex';\n container.style.gap = '16px';\n container.style.alignItems = 'center';\n container.style.padding = '20px';\n\n const defaultButton = document.createElement('sula-button');\n defaultButton.setAttribute('text', 'Default Size');\n defaultButton.setAttribute('size', SulaButtonSize.Default);\n\n const largeButton = document.createElement('sula-button');\n largeButton.setAttribute('text', 'Large Size');\n largeButton.setAttribute('size', SulaButtonSize.Large);\n\n container.appendChild(defaultButton);\n container.appendChild(largeButton);\n\n return container;\n};\nSizes.parameters = {\n docs: {\n description: {\n story: 'Comparação entre os diferentes tamanhos disponíveis.',\n },\n },\n};\n\nexport const StatusVariations = () => {\n const container = document.createElement('div');\n container.style.display = 'flex';\n container.style.gap = '16px';\n container.style.alignItems = 'center';\n container.style.padding = '20px';\n\n const primaryButton = document.createElement('sula-button');\n primaryButton.setAttribute('text', 'Primary');\n primaryButton.setAttribute('status', SulaButtonStatus.Primary);\n\n const dangerButton = document.createElement('sula-button');\n dangerButton.setAttribute('text', 'Danger');\n dangerButton.setAttribute('status', SulaButtonStatus.Danger);\n\n const negativeButton = document.createElement('sula-button');\n negativeButton.setAttribute('text', 'Negative');\n negativeButton.setAttribute('status', SulaButtonStatus.Negative);\n\n container.appendChild(primaryButton);\n container.appendChild(dangerButton);\n container.appendChild(negativeButton);\n\n return container;\n};\nStatusVariations.parameters = {\n docs: {\n description: {\n story: 'Diferentes status/cores disponíveis para o botão.',\n },\n },\n};\n\nexport const WithLeftIcon = Template.bind({});\nWithLeftIcon.args = {\n text: 'With Left Icon',\n leftIcon: 'ph ph-plus',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n};\nWithLeftIcon.parameters = {\n docs: {\n description: {\n story: 'Botão com ícone à esquerda do texto.',\n },\n },\n};\n\nexport const WithRightIcon = Template.bind({});\nWithRightIcon.args = {\n text: 'With Right Icon',\n rightIcon: 'ph ph-arrow-right',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n};\nWithRightIcon.parameters = {\n docs: {\n description: {\n story: 'Botão com ícone à direita do texto.',\n },\n },\n};\n\nexport const WithBothIcons = Template.bind({});\nWithBothIcons.args = {\n text: 'Both Icons',\n leftIcon: 'ph ph-download',\n rightIcon: 'ph ph-arrow-down',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n};\nWithBothIcons.parameters = {\n docs: {\n description: {\n story: 'Botão com ícones em ambos os lados do texto.',\n },\n },\n};\n\nexport const LoadingState = Template.bind({});\nLoadingState.args = {\n text: 'Loading Button',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n loading: true,\n};\nLoadingState.parameters = {\n docs: {\n description: {\n story: 'Botão em estado de carregamento.',\n },\n },\n};\n\nexport const DisabledState = Template.bind({});\nDisabledState.args = {\n text: 'Disabled Button',\n appearance: SulaButtonAppearance.Default,\n type: SulaButtonType.Text,\n size: SulaButtonSize.Default,\n status: SulaButtonStatus.Primary,\n buttonDisabled: true,\n};\nDisabledState.parameters = {\n docs: {\n description: {\n story: 'Botão em estado desabilitado.',\n },\n },\n};\n\nexport const AllVariations = () => {\n const container = document.createElement('div');\n container.style.display = 'grid';\n container.style.gridTemplateColumns = 'repeat(auto-fit, minmax(200px, 1fr))';\n container.style.gap = '16px';\n container.style.padding = '20px';\n\n const variations = [\n { text: 'Default Primary', appearance: SulaButtonAppearance.Default, status: SulaButtonStatus.Primary },\n { text: 'Default Danger', appearance: SulaButtonAppearance.Default, status: SulaButtonStatus.Danger },\n { text: 'Default Negative', appearance: SulaButtonAppearance.Default, status: SulaButtonStatus.Negative },\n { text: 'Secondary Primary', appearance: SulaButtonAppearance.Secondary, status: SulaButtonStatus.Primary },\n { text: 'Secondary Danger', appearance: SulaButtonAppearance.Secondary, status: SulaButtonStatus.Danger },\n { text: 'Secondary Negative', appearance: SulaButtonAppearance.Secondary, status: SulaButtonStatus.Negative },\n { text: 'Text Primary', appearance: SulaButtonAppearance.Text, status: SulaButtonStatus.Primary },\n { text: 'Text Danger', appearance: SulaButtonAppearance.Text, status: SulaButtonStatus.Danger },\n ];\n\n variations.forEach(variation => {\n const button = document.createElement('sula-button');\n button.setAttribute('text', variation.text);\n button.setAttribute('appearance', variation.appearance);\n button.setAttribute('status', variation.status);\n button.setAttribute('type', SulaButtonType.Text);\n button.setAttribute('size', SulaButtonSize.Default);\n container.appendChild(button);\n });\n\n return container;\n};\nAllVariations.parameters = {\n docs: {\n description: {\n story: 'Visão geral de todas as combinações de aparência e status.',\n },\n },\n};\n"]}
@@ -41,20 +41,20 @@ export class SulaCheckbox {
41
41
  return 'text-negative-negative-1';
42
42
  }
43
43
  render() {
44
- return (h(Host, { key: '56a8c43bf6e8cdd4a687f5730b86485522486ded' }, h("div", { key: '924f574fecc6e3a92cfc82cd63b9e8345afbe11a', class: {
44
+ return (h(Host, { key: '1f62bb3865134760716112f168c78a1412b770d0' }, h("div", { key: '2edbfdbfc3b48135383c5681cf5763b276942ff9', class: {
45
45
  'outline-none': true,
46
46
  'flex items-center space-x-12': !!this.label && this.type === SulaCheckboxType.Default,
47
47
  'flex items-center justify-between bg-surface-on-body rounded-md w-[280px] min-h-[85px] px-24 py-16': this.type === SulaCheckboxType.List,
48
48
  'hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed cursor-pointer': this.type === SulaCheckboxType.List && !this.disabled,
49
49
  'container-focus': this.isFocus && this.type === SulaCheckboxType.List,
50
- }, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.toggle, tabIndex: 0 }, this.type === SulaCheckboxType.List && (h("div", { key: '7b0ba9c45a7a6733fba4520e8fffe5e9cc1f775e', class: "flex flex-col flex-1 mr-16 overflow-hidden" }, !!this.label && h("label", { key: '61b673e866c72a33ab623f656fe882e3df4f04a3', class: "text-text-primary font-bold text-base cursor-pointer break-words" }, this.label), !!this.subTitle && h("span", { key: '3b3a40d2a4fd14b943722a13c06e2478d19337c9', class: "text-text-secondary text-base break-words" }, this.subTitle))), h("div", { key: '03b6d405c2b7aadd113f1314bc12c99103bc72ac', tabIndex: 0, class: {
50
+ }, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.toggle, tabIndex: 0 }, this.type === SulaCheckboxType.List && (h("div", { key: '577dc485bf9f39bb64ae98f0e17b410af4910d9a', class: "flex flex-col flex-1 mr-16 overflow-hidden" }, !!this.label && h("label", { key: '5c352cfa5f71a29848e4dd0069b487968cf31018', class: "text-text-primary font-bold text-base cursor-pointer break-words" }, this.label), !!this.subTitle && h("span", { key: '473f6dcdb47d590037970172455dcc705350b9b1', class: "text-text-secondary text-base break-words" }, this.subTitle))), h("div", { key: 'dbc2782e0f323927dc42c90c7eaceaa04ce8d870', tabIndex: 0, class: {
51
51
  'flex justify-center items-center rounded-xs w-[27px] h-[27px] border outline-none flex-shrink-0': true,
52
52
  'checkbox-focus': this.isFocus && this.type === SulaCheckboxType.Default,
53
53
  'cursor-pointer active:bg-states-empty-bg-pressed': !this.disabled,
54
54
  'bg-states-bg-disabled border-states-bg-disabled': this.disabled,
55
55
  'bg-brand-primary border-brand-primary': this.checked,
56
56
  'bg-surface-body border-line-input': !this.checked,
57
- }, onFocus: this.handleFocus, onBlur: this.handleBlur }, this.checked && (h("div", { key: 'ede285c57a75d7a12a4477b31b9c195cd42efca1', class: "flex justify-center items-center" }, h("sula-icon", { key: '5546613a4121659fadb2061e4701ab831dd3bbc6', icon: "ph-bold ph-check", customClass: `${this.getIconColor()} text-xl` })))), !!this.label && this.type === SulaCheckboxType.Default && h("label", { key: '5f1fa7508c159f4b486dad0d4392706e2ca704f1', class: "text-text-secondary text-base cursor-pointer break-words" }, this.label))));
57
+ }, onFocus: this.handleFocus, onBlur: this.handleBlur }, this.checked && (h("div", { key: 'bc2712c3d43788ffbddcee8bd920f985d867d357', class: "flex justify-center items-center" }, h("sula-icon", { key: '00808ef092a0f06a1692f77cf11a700f5e6be3ce', icon: "ph-bold ph-check", customClass: `${this.getIconColor()} text-xl` })))), !!this.label && this.type === SulaCheckboxType.Default && h("label", { key: '67a977a81ee6e282976fff2621630f6f45c96da3', class: "text-text-secondary text-base cursor-pointer break-words" }, this.label))));
58
58
  }
59
59
  static get is() { return "sula-checkbox"; }
60
60
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- *,:after,:before{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}.outline{outline-style:solid}:host{display:block}.chip-focus{outline:2px solid var(--color-feedback-informational)!important;outline-offset:2px!important}.chip-opened{box-shadow:0 0 0 2px hsla(0,0%,8%,.102)}:root{--color-green-50:#f1f9f4;--color-green-100:#e6f4ed;--color-green-200:#cae7d8;--color-green-300:#a0d4b8;--color-green-400:#68bb8e;--color-green-500:#04843f;--color-green-600:#037236;--color-green-700:#03632f;--color-green-800:#035428;--color-green-900:#024521;--color-green-950:#02361a;--color-red-50:#fef6f6;--color-red-100:#fde8e8;--color-red-200:#fad1d1;--color-red-300:#f7abab;--color-red-400:#f17474;--color-red-500:#c80505;--color-red-600:#b30404;--color-red-700:#9f0404;--color-red-800:#860303;--color-red-900:#6d0303;--color-red-950:#500202;--color-yellow-50:#fdf4e7;--color-yellow-100:#fcedd9;--color-yellow-200:#fae0bd;--color-yellow-300:#f6c788;--color-yellow-400:#f3b159;--color-yellow-500:#ef9928;--color-yellow-600:#e49226;--color-yellow-700:#d17e10;--color-yellow-800:#b46d0e;--color-yellow-900:#93590b;--color-yellow-950:#683f08;--color-orange-50:#fef4f1;--color-orange-100:#fde8e2;--color-orange-200:#fbd2c6;--color-orange-300:#f8b4a0;--color-orange-400:#f58e70;--color-orange-500:#f05223;--color-orange-600:#ea4210;--color-orange-700:#d23b0e;--color-orange-800:#b5330c;--color-orange-900:#942a0a;--color-orange-950:#691e07;--color-blue-50:#ecf0f9;--color-blue-100:#dde3f4;--color-blue-200:#b2c2e5;--color-blue-300:#7994d2;--color-blue-400:#4066bf;--color-blue-500:#001e64;--color-blue-600:#001c5c;--color-blue-700:#00174c;--color-blue-800:#00123d;--color-blue-900:#000f33;--color-blue-950:#000d2b;--color-ambar-50:#fff6eb;--color-ambar-100:#ffefdc;--color-ambar-200:#fedfb9;--color-ambar-300:#fdca8b;--color-ambar-400:#fdb359;--color-ambar-500:#fc9c26;--color-ambar-600:#ec8403;--color-ambar-700:#d87803;--color-ambar-800:#ba6803;--color-ambar-900:#975402;--color-ambar-950:#6a3b01;--color-gray-50:#fff;--color-gray-100:#f4f4f4;--color-gray-200:#e6e6e6;--color-gray-300:#c3c3c3;--color-gray-400:#b9b9b9;--color-gray-500:#949494;--color-gray-600:#737373;--color-gray-700:#5c5c5c;--color-gray-800:#323232;--color-gray-900:#292929;--color-gray-950:#141414;--color-white-opacity-50:#ffffff0d;--color-white-opacity-100:#ffffff1a;--color-white-opacity-200:#ffffff26;--color-white-opacity-300:#ffffff45;--color-white-opacity-400:#ffffff5c;--color-white-opacity-500:#ffffff80;--color-white-opacity-600:#ffffff8c;--color-white-opacity-700:#ffffffa3;--color-white-opacity-800:#ffffffba;--color-white-opacity-900:#fffc;--color-white-opacity-950:#ffffffe8;--color-ciano-50:#f1f6fe;--color-ciano-100:#dfeafc;--color-ciano-200:#c3d9f9;--color-ciano-300:#90b9f4;--color-ciano-400:#5d98ee;--color-ciano-500:#1769e0;--color-ciano-600:#155fcb;--color-ciano-700:#1355b4;--color-ciano-800:#104899;--color-ciano-900:#0d3b7d;--color-ciano-950:#0a2e61;--color-extra-color-blue-light:#e7f0f4;--color-extra-color-blue-dark:#162931;--color-black-opacity-50:#14141405;--color-black-opacity-100:#1414141a;--color-black-opacity-200:#14141426;--color-black-opacity-300:#14141445;--color-black-opacity-400:#1414145c;--color-black-opacity-500:#14141480;--color-black-opacity-600:#1414148c;--color-black-opacity-700:#141414a3;--color-black-opacity-800:#141414ba;--color-black-opacity-900:#141414cc;--color-black-opacity-950:#141414e8;--color-feedback-success:#04843f;--color-feedback-error:#c80505;--color-feedback-informational:#1355b4;--color-feedback-alert:#ef9928;--color-brand-primary:#f05223;--color-brand-secondary:#001c5c;--color-brand-tertiary-1:#1769e0;--color-brand-tertiary-2:#fc9c26;--color-surface-body:#fff;--color-surface-on-body:#f4f4f4;--color-surface-on-body-blue:#e7f0f4;--color-surface-on-body-brand:#fff6eb;--color-surface-on-body-feedback-success:#e6f4ed;--color-surface-on-body-feedback-error:#fde8e8;--color-surface-on-body-feedback-alert:#fdf4e7;--color-surface-on-body-feedback-info:#dfeafc;--color-text-brand:#f05223;--color-text-primary:#323232;--color-text-secondary:#5c5c5c;--color-text-disabled:#949494;--color-text-link:#1355b4;--color-states-empty-bg-hover:#1414141a;--color-states-empty-bg-pressed:#14141426;--color-states-bg-disabled:#14141405;--color-states-bg-focus:#1355b4;--color-states-primary-hover:#ea4210;--color-states-primary-pressed:#d23b0e;--color-states-danger-hover:#b30404;--color-states-danger-pressed:#9f0404;--color-states-negative-hover:#e6e6e6;--color-states-negative-pressed:#c3c3c3;--color-icon-primary:#5c5c5c;--color-icon-secondary:#fff;--color-icon-tertiary:#b30404;--color-icon-disabled:#b9b9b9;--color-neutral-neutral-1:#fff;--color-neutral-neutral-2:#f4f4f4;--color-neutral-neutral-3:#b9b9b9;--color-neutral-neutral-4:#949494;--color-neutral-neutral-5:#737373;--color-neutral-neutral-6:#5c5c5c;--color-neutral-neutral-7:#323232;--color-neutral-neutral-8:#292929;--color-negative-negative-1:#fff;--color-negative-negative-2:#323232;--color-opacity-body:#fffc;--color-opacity-on-body:#14141405;--color-opacity-overlay:#1414148c;--color-opacity-on-overlay:#ffffff1a;--color-line-input:#949494;--color-line-general-strong:#c3c3c3;--color-line-general:#e6e6e6}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-40{top:2.5rem}.z-50{z-index:50}.ml-8{margin-left:.5rem}.flex{display:flex}.min-h-40{min-height:2.5rem}.w-fit{width:fit-content}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-xxl{border-radius:18.75rem}.border{border-width:1px}.border-line-input{border-color:var(--color-line-input)}.bg-negative-negative-1{background-color:var(--color-negative-negative-1)}.bg-states-bg-disabled{background-color:var(--color-states-bg-disabled)}.bg-states-empty-bg-pressed{background-color:var(--color-states-empty-bg-pressed)}.bg-states-negative-pressed{background-color:var(--color-states-negative-pressed)}.bg-surface-on-body{background-color:var(--color-surface-on-body)}.px-16{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.125rem;padding-top:.125rem}.text-base{font-size:1rem;line-height:1.5rem}.font-bold{font-weight:700}.leading-4{line-height:1rem}.text-negative-negative-2{color:var(--color-negative-negative-2)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-primary{color:var(--color-text-primary)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.hover\:bg-states-empty-bg-hover:hover{background-color:var(--color-states-empty-bg-hover)}.hover\:bg-states-negative-hover:hover{background-color:var(--color-states-negative-hover)}.active\:bg-states-empty-bg-pressed:active{background-color:var(--color-states-empty-bg-pressed)}.active\:bg-states-negative-pressed:active{background-color:var(--color-states-negative-pressed)}.w-300{width:18.75rem}.w-full{width:100%}.rounded-sm{border-radius:.75rem}.border-line-general{border-color:var(--color-line-general)}.bg-surface-body{background-color:var(--color-surface-body)}.px-24{padding-left:1.5rem;padding-right:1.5rem}.py-12{padding-bottom:.75rem;padding-top:.75rem}.py-16{padding-bottom:1rem;padding-top:1rem}
1
+ *,:after,:before{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}.outline{outline-style:solid}:host{display:block}.chip-focus{outline:2px solid var(--color-feedback-informational)!important;outline-offset:2px!important}.chip-opened{box-shadow:0 0 0 2px hsla(0,0%,8%,.102)}:root{--color-green-50:#f1f9f4;--color-green-100:#e6f4ed;--color-green-200:#cae7d8;--color-green-300:#a0d4b8;--color-green-400:#68bb8e;--color-green-500:#04843f;--color-green-600:#037236;--color-green-700:#03632f;--color-green-800:#035428;--color-green-900:#024521;--color-green-950:#02361a;--color-red-50:#fef6f6;--color-red-100:#fde8e8;--color-red-200:#fad1d1;--color-red-300:#f7abab;--color-red-400:#f17474;--color-red-500:#c80505;--color-red-600:#b30404;--color-red-700:#9f0404;--color-red-800:#860303;--color-red-900:#6d0303;--color-red-950:#500202;--color-yellow-50:#fdf4e7;--color-yellow-100:#fcedd9;--color-yellow-200:#fae0bd;--color-yellow-300:#f6c788;--color-yellow-400:#f3b159;--color-yellow-500:#ef9928;--color-yellow-600:#e49226;--color-yellow-700:#d17e10;--color-yellow-800:#b46d0e;--color-yellow-900:#93590b;--color-yellow-950:#683f08;--color-orange-50:#fef4f1;--color-orange-100:#fde8e2;--color-orange-200:#fbd2c6;--color-orange-300:#f8b4a0;--color-orange-400:#f58e70;--color-orange-500:#f05223;--color-orange-600:#ea4210;--color-orange-700:#d23b0e;--color-orange-800:#b5330c;--color-orange-900:#942a0a;--color-orange-950:#691e07;--color-blue-50:#ecf0f9;--color-blue-100:#dde3f4;--color-blue-200:#b2c2e5;--color-blue-300:#7994d2;--color-blue-400:#4066bf;--color-blue-500:#001e64;--color-blue-600:#001c5c;--color-blue-700:#00174c;--color-blue-800:#00123d;--color-blue-900:#000f33;--color-blue-950:#000d2b;--color-ambar-50:#fff6eb;--color-ambar-100:#ffefdc;--color-ambar-200:#fedfb9;--color-ambar-300:#fdca8b;--color-ambar-400:#fdb359;--color-ambar-500:#fc9c26;--color-ambar-600:#ec8403;--color-ambar-700:#d87803;--color-ambar-800:#ba6803;--color-ambar-900:#975402;--color-ambar-950:#6a3b01;--color-gray-50:#fff;--color-gray-100:#f4f4f4;--color-gray-200:#e6e6e6;--color-gray-300:#c3c3c3;--color-gray-400:#b9b9b9;--color-gray-500:#949494;--color-gray-600:#737373;--color-gray-700:#5c5c5c;--color-gray-800:#323232;--color-gray-900:#292929;--color-gray-950:#141414;--color-white-opacity-50:#ffffff0d;--color-white-opacity-100:#ffffff1a;--color-white-opacity-200:#ffffff26;--color-white-opacity-300:#ffffff45;--color-white-opacity-400:#ffffff5c;--color-white-opacity-500:#ffffff80;--color-white-opacity-600:#ffffff8c;--color-white-opacity-700:#ffffffa3;--color-white-opacity-800:#ffffffba;--color-white-opacity-900:#fffc;--color-white-opacity-950:#ffffffe8;--color-ciano-50:#f1f6fe;--color-ciano-100:#dfeafc;--color-ciano-200:#c3d9f9;--color-ciano-300:#90b9f4;--color-ciano-400:#5d98ee;--color-ciano-500:#1769e0;--color-ciano-600:#155fcb;--color-ciano-700:#1355b4;--color-ciano-800:#104899;--color-ciano-900:#0d3b7d;--color-ciano-950:#0a2e61;--color-extra-color-blue-light:#e7f0f4;--color-extra-color-blue-dark:#162931;--color-black-opacity-50:#14141405;--color-black-opacity-100:#1414141a;--color-black-opacity-200:#14141426;--color-black-opacity-300:#14141445;--color-black-opacity-400:#1414145c;--color-black-opacity-500:#14141480;--color-black-opacity-600:#1414148c;--color-black-opacity-700:#141414a3;--color-black-opacity-800:#141414ba;--color-black-opacity-900:#141414cc;--color-black-opacity-950:#141414e8;--color-feedback-success:#04843f;--color-feedback-error:#c80505;--color-feedback-informational:#1355b4;--color-feedback-alert:#ef9928;--color-brand-primary:#f05223;--color-brand-secondary:#001c5c;--color-brand-tertiary-1:#1769e0;--color-brand-tertiary-2:#fc9c26;--color-surface-body:#fff;--color-surface-on-body:#f4f4f4;--color-surface-on-body-blue:#e7f0f4;--color-surface-on-body-brand:#fff6eb;--color-surface-on-body-feedback-success:#e6f4ed;--color-surface-on-body-feedback-error:#fde8e8;--color-surface-on-body-feedback-alert:#fdf4e7;--color-surface-on-body-feedback-info:#dfeafc;--color-text-brand:#f05223;--color-text-primary:#323232;--color-text-secondary:#5c5c5c;--color-text-disabled:#949494;--color-text-link:#1355b4;--color-states-empty-bg-hover:#1414141a;--color-states-empty-bg-pressed:#14141426;--color-states-bg-disabled:#14141405;--color-states-bg-focus:#1355b4;--color-states-primary-hover:#ea4210;--color-states-primary-pressed:#d23b0e;--color-states-danger-hover:#b30404;--color-states-danger-pressed:#9f0404;--color-states-negative-hover:#e6e6e6;--color-states-negative-pressed:#c3c3c3;--color-icon-primary:#5c5c5c;--color-icon-secondary:#fff;--color-icon-tertiary:#b30404;--color-icon-disabled:#b9b9b9;--color-neutral-neutral-1:#fff;--color-neutral-neutral-2:#f4f4f4;--color-neutral-neutral-3:#b9b9b9;--color-neutral-neutral-4:#949494;--color-neutral-neutral-5:#737373;--color-neutral-neutral-6:#5c5c5c;--color-neutral-neutral-7:#323232;--color-neutral-neutral-8:#292929;--color-negative-negative-1:#fff;--color-negative-negative-2:#323232;--color-opacity-body:#fffc;--color-opacity-on-body:#14141405;--color-opacity-overlay:#1414148c;--color-opacity-on-overlay:#ffffff1a;--color-line-input:#949494;--color-line-general-strong:#c3c3c3;--color-line-general:#e6e6e6}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-40{top:2.5rem}.z-50{z-index:50}.ml-8{margin-left:.5rem}.flex{display:flex}.min-h-40{min-height:2.5rem}.w-fit{width:fit-content}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-xxl{border-radius:18.75rem}.border{border-width:1px}.border-line-input{border-color:var(--color-line-input)}.bg-negative-negative-1{background-color:var(--color-negative-negative-1)}.bg-states-bg-disabled{background-color:var(--color-states-bg-disabled)}.bg-states-empty-bg-pressed{background-color:var(--color-states-empty-bg-pressed)}.bg-states-negative-pressed{background-color:var(--color-states-negative-pressed)}.bg-surface-on-body{background-color:var(--color-surface-on-body)}.px-16{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.125rem;padding-top:.125rem}.text-base{font-size:1rem;line-height:1.5rem}.font-bold{font-weight:700}.leading-4{line-height:1rem}.text-negative-negative-2{color:var(--color-negative-negative-2)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-primary{color:var(--color-text-primary)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.hover\:bg-states-empty-bg-hover:hover{background-color:var(--color-states-empty-bg-hover)}.hover\:bg-states-negative-hover:hover{background-color:var(--color-states-negative-hover)}.active\:bg-states-empty-bg-pressed:active{background-color:var(--color-states-empty-bg-pressed)}.active\:bg-states-negative-pressed:active{background-color:var(--color-states-negative-pressed)}.max-h-\[260px\]{max-height:260px}.w-300{width:18.75rem}.w-full{width:100%}.overflow-auto{overflow:auto}.rounded-sm{border-radius:.75rem}.border-line-general{border-color:var(--color-line-general)}.bg-surface-body{background-color:var(--color-surface-body)}.px-24{padding-left:1.5rem;padding-right:1.5rem}.py-12{padding-bottom:.75rem;padding-top:.75rem}.py-16{padding-bottom:1rem;padding-top:1rem}