@sula-tech/webcomponents 0.3.3 → 0.4.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 (190) hide show
  1. package/dist/cjs/{index-87eec792.js → index-BtkenDV1.js} +205 -156
  2. package/dist/cjs/index-BtkenDV1.js.map +1 -0
  3. package/dist/cjs/index.cjs.js +1 -0
  4. package/dist/cjs/index.cjs.js.map +1 -1
  5. package/dist/cjs/loader.cjs.js +4 -6
  6. package/dist/cjs/loader.cjs.js.map +1 -1
  7. 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 +1 -0
  8. package/dist/cjs/sula-avatar_14.cjs.entry.js +28270 -0
  9. package/dist/cjs/sula-avatar_14.cjs.entry.js.map +1 -0
  10. package/dist/cjs/webcomponents.cjs.js +8 -8
  11. package/dist/cjs/webcomponents.cjs.js.map +1 -1
  12. package/dist/collection/assets/lottie/loader.json +1 -0
  13. package/dist/collection/collection-manifest.json +7 -2
  14. package/dist/collection/components/sula-avatar/sula-avatar.css +1 -1
  15. package/dist/collection/components/sula-avatar/sula-avatar.js +4 -4
  16. package/dist/collection/components/sula-avatar/sula-avatar.stories.js +7 -0
  17. package/dist/collection/components/sula-avatar/sula-avatar.stories.js.map +1 -1
  18. package/dist/collection/components/sula-badge/sula-badge.css +1 -1
  19. package/dist/collection/components/sula-badge/sula-badge.js +5 -5
  20. package/dist/collection/components/sula-badge/sula-badge.stories.js +7 -0
  21. package/dist/collection/components/sula-badge/sula-badge.stories.js.map +1 -1
  22. package/dist/collection/components/sula-button/sula-button.css +1 -1
  23. package/dist/collection/components/sula-button/sula-button.js +8 -8
  24. package/dist/collection/components/sula-button/sula-button.stories.js +7 -0
  25. package/dist/collection/components/sula-button/sula-button.stories.js.map +1 -1
  26. package/dist/collection/components/sula-checkbox/sula-checkbox.css +1 -1
  27. package/dist/collection/components/sula-checkbox/sula-checkbox.js +5 -5
  28. package/dist/collection/components/sula-checkbox/sula-checkbox.stories.js +7 -0
  29. package/dist/collection/components/sula-checkbox/sula-checkbox.stories.js.map +1 -1
  30. package/dist/collection/components/sula-chip/model/sula-chip.model.js +6 -0
  31. package/dist/collection/components/sula-chip/model/sula-chip.model.js.map +1 -0
  32. package/dist/collection/components/sula-chip/sula-chip.css +1 -0
  33. package/dist/collection/components/sula-chip/sula-chip.js +243 -0
  34. package/dist/collection/components/sula-chip/sula-chip.js.map +1 -0
  35. package/dist/collection/components/sula-chip/sula-chip.stories.js +125 -0
  36. package/dist/collection/components/sula-chip/sula-chip.stories.js.map +1 -0
  37. package/dist/collection/components/sula-icon/sula-icon.css +1 -1
  38. package/dist/collection/components/sula-icon/sula-icon.js +3 -3
  39. package/dist/collection/components/sula-loader/model/sula-loader.model.js +7 -0
  40. package/dist/collection/components/sula-loader/model/sula-loader.model.js.map +1 -0
  41. package/dist/collection/components/sula-loader/sula-loader.css +1 -0
  42. package/dist/collection/components/sula-loader/sula-loader.js +102 -0
  43. package/dist/collection/components/sula-loader/sula-loader.js.map +1 -0
  44. package/dist/collection/components/sula-loader/sula-loader.stories.js +48 -0
  45. package/dist/collection/components/sula-loader/sula-loader.stories.js.map +1 -0
  46. package/dist/collection/components/sula-loader/test/__mocks__/lottie-web.js +10 -0
  47. package/dist/collection/components/sula-loader/test/__mocks__/lottie-web.js.map +1 -0
  48. package/dist/collection/components/sula-menu-select-list/model/sula-menu-select-list.model.js +2 -0
  49. package/dist/collection/components/sula-menu-select-list/model/sula-menu-select-list.model.js.map +1 -0
  50. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.css +1 -0
  51. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +81 -0
  52. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js.map +1 -0
  53. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.stories.js +91 -0
  54. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.stories.js.map +1 -0
  55. package/dist/collection/components/sula-radio-button/sula-radio-button.css +1 -0
  56. package/dist/collection/components/sula-radio-button/sula-radio-button.js +176 -0
  57. package/dist/collection/components/sula-radio-button/sula-radio-button.js.map +1 -0
  58. package/dist/collection/components/sula-radio-button/sula-radio-button.stories.js +123 -0
  59. package/dist/collection/components/sula-radio-button/sula-radio-button.stories.js.map +1 -0
  60. package/dist/collection/components/sula-switch/sula-switch.css +1 -1
  61. package/dist/collection/components/sula-switch/sula-switch.js +9 -9
  62. package/dist/collection/components/sula-switch/sula-switch.stories.js +7 -0
  63. package/dist/collection/components/sula-switch/sula-switch.stories.js.map +1 -1
  64. package/dist/collection/components/sula-tag/sula-tag.css +1 -1
  65. package/dist/collection/components/sula-tag/sula-tag.js +9 -9
  66. package/dist/collection/components/sula-tag/sula-tag.stories.js +7 -0
  67. package/dist/collection/components/sula-tag/sula-tag.stories.js.map +1 -1
  68. package/dist/collection/components/sula-textarea/sula-textarea.css +1 -1
  69. package/dist/collection/components/sula-textarea/sula-textarea.js +14 -14
  70. package/dist/collection/components/sula-textarea/sula-textarea.js.map +1 -1
  71. package/dist/collection/components/sula-textarea/sula-textarea.stories.js +7 -0
  72. package/dist/collection/components/sula-textarea/sula-textarea.stories.js.map +1 -1
  73. package/dist/collection/components/sula-textfield/sula-textfield.css +1 -1
  74. package/dist/collection/components/sula-textfield/sula-textfield.js +12 -12
  75. package/dist/collection/components/sula-textfield/sula-textfield.js.map +1 -1
  76. package/dist/collection/components/sula-textfield/sula-textfield.stories.js +7 -0
  77. package/dist/collection/components/sula-textfield/sula-textfield.stories.js.map +1 -1
  78. package/dist/collection/components/sula-tiles/model/sula-tiles.model.js +11 -0
  79. package/dist/collection/components/sula-tiles/model/sula-tiles.model.js.map +1 -0
  80. package/dist/collection/components/sula-tiles/sula-tiles.css +1 -0
  81. package/dist/collection/components/sula-tiles/sula-tiles.js +316 -0
  82. package/dist/collection/components/sula-tiles/sula-tiles.js.map +1 -0
  83. package/dist/collection/components/sula-tiles/sula-tiles.stories.js +420 -0
  84. package/dist/collection/components/sula-tiles/sula-tiles.stories.js.map +1 -0
  85. package/dist/components/index.js +1251 -1
  86. package/dist/components/index.js.map +1 -1
  87. package/dist/components/{p-b0d1214f.js → p-CEU3PNQs.js} +6 -6
  88. package/dist/components/p-CEU3PNQs.js.map +1 -0
  89. package/dist/components/p-DJGFqp8r.js +44 -0
  90. package/dist/components/p-DJGFqp8r.js.map +1 -0
  91. package/dist/components/sula-avatar.js +5 -5
  92. package/dist/components/sula-avatar.js.map +1 -1
  93. package/dist/components/sula-badge.js +5 -5
  94. package/dist/components/sula-badge.js.map +1 -1
  95. package/dist/components/sula-button.js +6 -6
  96. package/dist/components/sula-button.js.map +1 -1
  97. package/dist/components/sula-checkbox.js +8 -8
  98. package/dist/components/sula-checkbox.js.map +1 -1
  99. package/dist/components/sula-chip.d.ts +11 -0
  100. package/dist/components/sula-chip.js +136 -0
  101. package/dist/components/sula-chip.js.map +1 -0
  102. package/dist/components/sula-icon.js +2 -1
  103. package/dist/components/sula-loader.d.ts +11 -0
  104. package/dist/components/sula-loader.js +27132 -0
  105. package/dist/components/sula-loader.js.map +1 -0
  106. package/dist/components/sula-menu-select-list.d.ts +11 -0
  107. package/dist/components/sula-menu-select-list.js +9 -0
  108. package/dist/components/sula-menu-select-list.js.map +1 -0
  109. package/dist/components/sula-radio-button.d.ts +11 -0
  110. package/dist/components/sula-radio-button.js +83 -0
  111. package/dist/components/sula-radio-button.js.map +1 -0
  112. package/dist/components/sula-switch.js +11 -11
  113. package/dist/components/sula-switch.js.map +1 -1
  114. package/dist/components/sula-tag.js +8 -8
  115. package/dist/components/sula-tag.js.map +1 -1
  116. package/dist/components/sula-textarea.js +13 -13
  117. package/dist/components/sula-textarea.js.map +1 -1
  118. package/dist/components/sula-textfield.js +11 -11
  119. package/dist/components/sula-textfield.js.map +1 -1
  120. package/dist/components/sula-tiles.d.ts +11 -0
  121. package/dist/components/sula-tiles.js +180 -0
  122. package/dist/components/sula-tiles.js.map +1 -0
  123. package/dist/esm/{index-aa1c5f36.js → index-Yyeke16a.js} +203 -135
  124. package/dist/esm/index-Yyeke16a.js.map +1 -0
  125. package/dist/esm/index.js +1 -0
  126. package/dist/esm/index.js.map +1 -1
  127. package/dist/esm/loader.js +4 -4
  128. package/dist/esm/loader.js.map +1 -1
  129. 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 +1 -0
  130. package/dist/esm/sula-avatar_14.entry.js +28255 -0
  131. package/dist/esm/sula-avatar_14.entry.js.map +1 -0
  132. package/dist/esm/webcomponents.js +6 -5
  133. package/dist/esm/webcomponents.js.map +1 -1
  134. package/dist/types/components/sula-avatar/sula-avatar.stories.d.ts +7 -0
  135. package/dist/types/components/sula-badge/sula-badge.stories.d.ts +7 -0
  136. package/dist/types/components/sula-button/sula-button.stories.d.ts +7 -0
  137. package/dist/types/components/sula-checkbox/sula-checkbox.stories.d.ts +7 -0
  138. package/dist/types/components/sula-chip/model/sula-chip.model.d.ts +4 -0
  139. package/dist/types/components/sula-chip/sula-chip.d.ts +40 -0
  140. package/dist/types/components/sula-chip/sula-chip.stories.d.ts +64 -0
  141. package/dist/types/components/sula-loader/model/sula-loader.model.d.ts +5 -0
  142. package/dist/types/components/sula-loader/sula-loader.d.ts +19 -0
  143. package/dist/types/components/sula-loader/sula-loader.stories.d.ts +29 -0
  144. package/dist/types/components/sula-loader/test/__mocks__/lottie-web.d.ts +4 -0
  145. package/dist/types/components/sula-menu-select-list/model/sula-menu-select-list.model.d.ts +4 -0
  146. package/dist/types/components/sula-menu-select-list/sula-menu-select-list.d.ts +14 -0
  147. package/dist/types/components/sula-menu-select-list/sula-menu-select-list.stories.d.ts +32 -0
  148. package/dist/types/components/sula-radio-button/sula-radio-button.d.ts +32 -0
  149. package/dist/types/components/sula-radio-button/sula-radio-button.stories.d.ts +57 -0
  150. package/dist/types/components/sula-switch/sula-switch.stories.d.ts +7 -0
  151. package/dist/types/components/sula-tag/sula-tag.stories.d.ts +7 -0
  152. package/dist/types/components/sula-textarea/sula-textarea.stories.d.ts +7 -0
  153. package/dist/types/components/sula-textfield/sula-textfield.stories.d.ts +7 -0
  154. package/dist/types/components/sula-tiles/model/sula-tiles.model.d.ts +8 -0
  155. package/dist/types/components/sula-tiles/sula-tiles.d.ts +54 -0
  156. package/dist/types/components/sula-tiles/sula-tiles.stories.d.ts +99 -0
  157. package/dist/types/components.d.ts +383 -0
  158. package/dist/types/stencil-public-runtime.d.ts +23 -1
  159. package/dist/webcomponents/assets/lottie/loader.json +1 -0
  160. package/dist/webcomponents/index.esm.js +1 -0
  161. package/dist/webcomponents/index.esm.js.map +1 -1
  162. package/dist/webcomponents/loader.esm.js.map +1 -0
  163. package/dist/webcomponents/p-67f9fa90.entry.js +21628 -0
  164. package/dist/webcomponents/p-67f9fa90.entry.js.map +1 -0
  165. package/dist/webcomponents/p-Yyeke16a.js +1469 -0
  166. package/dist/webcomponents/p-Yyeke16a.js.map +1 -0
  167. 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 +1 -0
  168. package/dist/webcomponents/webcomponents.esm.js +33 -9
  169. package/dist/webcomponents/webcomponents.esm.js.map +1 -1
  170. package/package.json +5 -2
  171. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  172. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  173. package/dist/cjs/index-87eec792.js.map +0 -1
  174. package/dist/cjs/sula-avatar_9.cjs.entry.js +0 -865
  175. package/dist/cjs/sula-avatar_9.cjs.entry.js.map +0 -1
  176. package/dist/components/p-881c6b35.js +0 -1198
  177. package/dist/components/p-881c6b35.js.map +0 -1
  178. package/dist/components/p-b0d1214f.js.map +0 -1
  179. package/dist/esm/app-globals-0f993ce5.js +0 -5
  180. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  181. package/dist/esm/index-aa1c5f36.js.map +0 -1
  182. package/dist/esm/sula-avatar_9.entry.js +0 -853
  183. package/dist/esm/sula-avatar_9.entry.js.map +0 -1
  184. package/dist/webcomponents/p-5a36af0f.js +0 -1492
  185. package/dist/webcomponents/p-5a36af0f.js.map +0 -1
  186. package/dist/webcomponents/p-7cde1edf.entry.js +0 -1123
  187. package/dist/webcomponents/p-7cde1edf.entry.js.map +0 -1
  188. package/dist/webcomponents/p-e1255160.js +0 -4
  189. package/dist/webcomponents/p-e1255160.js.map +0 -1
  190. package/loader/package.json +0 -11
@@ -72,14 +72,14 @@ export class SulaTag {
72
72
  return iconStatusStyles[this.iconStatus];
73
73
  }
74
74
  render() {
75
- return (h(Host, { key: '7e0e4b7d7154a39e20c2b57945167efc690e4796' }, h("div", { key: 'f06f2ec0369383b87f4d03e3c1d07cdf7f244b2d', class: {
75
+ return (h(Host, { key: '436412de610889b17970a85abf5ec197a8e47436' }, h("div", { key: '604f05fe84b218eb4b7470e9be5bdc9de3aa8357', class: {
76
76
  'flex items-center rounded-xxl w-fit': true,
77
77
  [this.getSizeClass()]: true,
78
78
  [this.getAppearanceClass()]: true,
79
- } }, this.icon && (h("div", { key: '3735de1b6f93802d3a56e28b7c4d262d565c863f', class: {
79
+ } }, this.icon && (h("div", { key: 'c156b45c46625a17f99ca988da012aff3f486b82', class: {
80
80
  'flex justify-center items-center mr-8 rounded-full leading-4 px-2 py-1': true,
81
81
  [this.getIconStatusClass()]: true,
82
- } }, h("sula-icon", { key: 'f059688dab53e5ccfbab562ab9546c7bb4551857', icon: this.icon, "custom-class": "text-base text-negative-negative-1 leading-4" }))), h("span", { key: 'f9bfbac5f1260d327504b9b4eab3c524320d03b0', class: {
82
+ } }, h("sula-icon", { key: '0d128f0f6936aa0f5f4f021993002c31c4642fb7', icon: this.icon, "custom-class": "text-base text-negative-negative-1 leading-4" }))), h("span", { key: 'f9c361d1fce206a071a8e629067d82bd253bd106', class: {
83
83
  'text-base leading-4': true,
84
84
  [this.getTextColorClass()]: true,
85
85
  [this.getTextWeightClass()]: true,
@@ -101,6 +101,7 @@ export class SulaTag {
101
101
  return {
102
102
  "label": {
103
103
  "type": "string",
104
+ "attribute": "label",
104
105
  "mutable": true,
105
106
  "complexType": {
106
107
  "original": "string",
@@ -115,12 +116,12 @@ export class SulaTag {
115
116
  },
116
117
  "getter": false,
117
118
  "setter": false,
118
- "attribute": "label",
119
119
  "reflect": false,
120
120
  "defaultValue": "''"
121
121
  },
122
122
  "icon": {
123
123
  "type": "string",
124
+ "attribute": "icon",
124
125
  "mutable": true,
125
126
  "complexType": {
126
127
  "original": "string",
@@ -135,12 +136,12 @@ export class SulaTag {
135
136
  },
136
137
  "getter": false,
137
138
  "setter": false,
138
- "attribute": "icon",
139
139
  "reflect": false,
140
140
  "defaultValue": "''"
141
141
  },
142
142
  "iconStatus": {
143
143
  "type": "string",
144
+ "attribute": "icon-status",
144
145
  "mutable": true,
145
146
  "complexType": {
146
147
  "original": "SulaTagIconStatus",
@@ -161,12 +162,12 @@ export class SulaTag {
161
162
  },
162
163
  "getter": false,
163
164
  "setter": false,
164
- "attribute": "icon-status",
165
165
  "reflect": false,
166
166
  "defaultValue": "SulaTagIconStatus.Success"
167
167
  },
168
168
  "size": {
169
169
  "type": "string",
170
+ "attribute": "size",
170
171
  "mutable": true,
171
172
  "complexType": {
172
173
  "original": "SulaTagSize",
@@ -187,12 +188,12 @@ export class SulaTag {
187
188
  },
188
189
  "getter": false,
189
190
  "setter": false,
190
- "attribute": "size",
191
191
  "reflect": false,
192
192
  "defaultValue": "SulaTagSize.Default"
193
193
  },
194
194
  "appearance": {
195
195
  "type": "string",
196
+ "attribute": "appearance",
196
197
  "mutable": true,
197
198
  "complexType": {
198
199
  "original": "SulaTagAppearance",
@@ -213,12 +214,12 @@ export class SulaTag {
213
214
  },
214
215
  "getter": false,
215
216
  "setter": false,
216
- "attribute": "appearance",
217
217
  "reflect": false,
218
218
  "defaultValue": "SulaTagAppearance.Bordered"
219
219
  },
220
220
  "fontWeight": {
221
221
  "type": "string",
222
+ "attribute": "font-weight",
222
223
  "mutable": true,
223
224
  "complexType": {
224
225
  "original": "SulaTagFontWeight",
@@ -239,7 +240,6 @@ export class SulaTag {
239
240
  },
240
241
  "getter": false,
241
242
  "setter": false,
242
- "attribute": "font-weight",
243
243
  "reflect": false,
244
244
  "defaultValue": "SulaTagFontWeight.Normal"
245
245
  }
@@ -56,6 +56,13 @@ export default {
56
56
  },
57
57
  },
58
58
  },
59
+ parameters: {
60
+ docs: {
61
+ description: {
62
+ component: 'O componente Tag Sula Design System é utilizado como sinalizador e destaque dentro da interface e não deve ser usado como elemento de clique.',
63
+ },
64
+ },
65
+ },
59
66
  };
60
67
  const Template = args => {
61
68
  const container = document.createElement('div');
@@ -1 +1 @@
1
- {"version":3,"file":"sula-tag.stories.js","sourceRoot":"","sources":["../../../src/components/sula-tag/sula-tag.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE9G,eAAe;IACb,KAAK,EAAE,qBAAqB;IAC5B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,WAAW;YACzB,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,UAAU,EAAE;YACV,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EA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iB,CAAC,OAAO;IACrC,IAAI,EAAE,WAAW,CAAC,OAAO;IACzB,UAAU,EAAE,iBAAiB,CAAC,UAAU;IACxC,UAAU,EAAE,iBAAiB,CAAC,IAAI;CACnC,CAAC","sourcesContent":["import { SulaTagAppearance, SulaTagFontWeight, SulaTagIconStatus, SulaTagSize } from './model/sula-tag.model';\n\nexport default {\n title: 'Components/sula-tag',\n tags: ['autodocs'],\n argTypes: {\n label: {\n control: 'text',\n defaultValue: 'Tag Label',\n description: 'Tag label text',\n type: {\n required: false,\n },\n },\n icon: {\n control: 'text',\n defaultValue: '',\n description: 'Tag icon class',\n type: {\n required: false,\n },\n },\n iconStatus: {\n control: { type: 'select' },\n options: Object.values(SulaTagIconStatus),\n defaultValue: SulaTagIconStatus.Success,\n description: 'Tag icon status',\n type: {\n required: false,\n },\n },\n size: {\n control: { type: 'select' },\n options: Object.values(SulaTagSize),\n defaultValue: SulaTagSize.Default,\n description: 'Tag size',\n type: {\n required: false,\n },\n },\n appearance: {\n control: { type: 'select' },\n options: Object.values(SulaTagAppearance),\n defaultValue: SulaTagAppearance.Bordered,\n description: 'Tag appearance',\n type: {\n required: false,\n },\n },\n fontWeight: {\n control: { type: 'select' },\n options: Object.values(SulaTagFontWeight),\n defaultValue: SulaTagFontWeight.Normal,\n description: 'Tag font weight',\n type: {\n required: false,\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-tag');\n\n if (args.label) el.setAttribute('label', args.label);\n if (args.icon) el.setAttribute('icon', args.icon);\n el.setAttribute('icon-status', args.iconStatus);\n el.setAttribute('size', args.size);\n el.setAttribute('appearance', args.appearance);\n el.setAttribute('font-weight', args.fontWeight);\n\n container.appendChild(el);\n\n return container;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n label: 'Default Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Bordered,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const WithIcon = Template.bind({});\nWithIcon.args = {\n label: 'Tag with Icon',\n icon: 'ph ph-check',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Bordered,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const BrandAppearance = Template.bind({});\nBrandAppearance.args = {\n label: 'Brand Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Brand,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const LightBlueAppearance = Template.bind({});\nLightBlueAppearance.args = {\n label: 'Light Blue Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.LightBlue,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const LightBrandAppearance = Template.bind({});\nLightBrandAppearance.args = {\n label: 'Light Brand Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.LightBrand,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const NegativeAppearance = Template.bind({});\nNegativeAppearance.args = {\n label: 'Negative Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Negative,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const OpacityGreyAppearance = Template.bind({});\nOpacityGreyAppearance.args = {\n label: 'Opacity Grey Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.OpacityGrey,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const OpacityWhiteAppearance = Template.bind({});\nOpacityWhiteAppearance.args = {\n label: 'Opacity White Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.OpacityWhite,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const SmallSize = Template.bind({});\nSmallSize.args = {\n label: 'Small Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Small,\n appearance: SulaTagAppearance.Bordered,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const BoldFont = Template.bind({});\nBoldFont.args = {\n label: 'Bold Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Bordered,\n fontWeight: SulaTagFontWeight.Bold,\n};\n\nexport const WarningIcon = Template.bind({});\nWarningIcon.args = {\n label: 'Warning Tag',\n icon: 'ph ph-exclamation-mark',\n iconStatus: SulaTagIconStatus.Warning,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Bordered,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const ErrorIcon = Template.bind({});\nErrorIcon.args = {\n label: 'Error Tag',\n icon: 'ph ph-exclamation-mark',\n iconStatus: SulaTagIconStatus.Error,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Bordered,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const InfoIcon = Template.bind({});\nInfoIcon.args = {\n label: 'Info Tag',\n icon: 'ph ph-exclamation-mark',\n iconStatus: SulaTagIconStatus.Info,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Bordered,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const CompleteExample = Template.bind({});\nCompleteExample.args = {\n label: 'Complete Tag',\n icon: 'ph ph-check',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.LightBrand,\n fontWeight: SulaTagFontWeight.Bold,\n};\n"]}
1
+ {"version":3,"file":"sula-tag.stories.js","sourceRoot":"","sources":["../../../src/components/sula-tag/sula-tag.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM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IACtC,UAAU,EAAE,iBAAiB,CAAC,MAAM;CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACd,KAAK,EAAE,UAAU;IACjB,IAAI,EAAE,wBAAwB;IAC9B,UAAU,EAAE,iBAAiB,CAAC,IAAI;IAClC,IAAI,EAAE,WAAW,CAAC,OAAO;IACzB,UAAU,EAAE,iBAAiB,CAAC,QAAQ;IACtC,UAAU,EAAE,iBAAiB,CAAC,MAAM;CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACrB,KAAK,EAAE,cAAc;IACrB,IAAI,EAAE,aAAa;IACnB,UAAU,EAAE,iBAAiB,CAAC,OAAO;IACrC,IAAI,EAAE,WAAW,CAAC,OAAO;IACzB,UAAU,EAAE,iBAAiB,CAAC,UAAU;IACxC,UAAU,EAAE,iBAAiB,CAAC,IAAI;CACnC,CAAC","sourcesContent":["import { SulaTagAppearance, SulaTagFontWeight, SulaTagIconStatus, SulaTagSize } from './model/sula-tag.model';\n\nexport default {\n title: 'Components/sula-tag',\n tags: ['autodocs'],\n argTypes: {\n label: {\n control: 'text',\n defaultValue: 'Tag Label',\n description: 'Tag label text',\n type: {\n required: false,\n },\n },\n icon: {\n control: 'text',\n defaultValue: '',\n description: 'Tag icon class',\n type: {\n required: false,\n },\n },\n iconStatus: {\n control: { type: 'select' },\n options: Object.values(SulaTagIconStatus),\n defaultValue: SulaTagIconStatus.Success,\n description: 'Tag icon status',\n type: {\n required: false,\n },\n },\n size: {\n control: { type: 'select' },\n options: Object.values(SulaTagSize),\n defaultValue: SulaTagSize.Default,\n description: 'Tag size',\n type: {\n required: false,\n },\n },\n appearance: {\n control: { type: 'select' },\n options: Object.values(SulaTagAppearance),\n defaultValue: SulaTagAppearance.Bordered,\n description: 'Tag appearance',\n type: {\n required: false,\n },\n },\n fontWeight: {\n control: { type: 'select' },\n options: Object.values(SulaTagFontWeight),\n defaultValue: SulaTagFontWeight.Normal,\n description: 'Tag font weight',\n type: {\n required: false,\n },\n },\n },\n parameters: {\n docs: {\n description: {\n component: 'O componente Tag Sula Design System é utilizado como sinalizador e destaque dentro da interface e não deve ser usado como elemento de clique.',\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-tag');\n\n if (args.label) el.setAttribute('label', args.label);\n if (args.icon) el.setAttribute('icon', args.icon);\n el.setAttribute('icon-status', args.iconStatus);\n el.setAttribute('size', args.size);\n el.setAttribute('appearance', args.appearance);\n el.setAttribute('font-weight', args.fontWeight);\n\n container.appendChild(el);\n\n return container;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n label: 'Default Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Bordered,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const WithIcon = Template.bind({});\nWithIcon.args = {\n label: 'Tag with Icon',\n icon: 'ph ph-check',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Bordered,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const BrandAppearance = Template.bind({});\nBrandAppearance.args = {\n label: 'Brand Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Brand,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const LightBlueAppearance = Template.bind({});\nLightBlueAppearance.args = {\n label: 'Light Blue Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.LightBlue,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const LightBrandAppearance = Template.bind({});\nLightBrandAppearance.args = {\n label: 'Light Brand Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.LightBrand,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const NegativeAppearance = Template.bind({});\nNegativeAppearance.args = {\n label: 'Negative Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Negative,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const OpacityGreyAppearance = Template.bind({});\nOpacityGreyAppearance.args = {\n label: 'Opacity Grey Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.OpacityGrey,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const OpacityWhiteAppearance = Template.bind({});\nOpacityWhiteAppearance.args = {\n label: 'Opacity White Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.OpacityWhite,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const SmallSize = Template.bind({});\nSmallSize.args = {\n label: 'Small Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Small,\n appearance: SulaTagAppearance.Bordered,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const BoldFont = Template.bind({});\nBoldFont.args = {\n label: 'Bold Tag',\n icon: '',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Bordered,\n fontWeight: SulaTagFontWeight.Bold,\n};\n\nexport const WarningIcon = Template.bind({});\nWarningIcon.args = {\n label: 'Warning Tag',\n icon: 'ph ph-exclamation-mark',\n iconStatus: SulaTagIconStatus.Warning,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Bordered,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const ErrorIcon = Template.bind({});\nErrorIcon.args = {\n label: 'Error Tag',\n icon: 'ph ph-exclamation-mark',\n iconStatus: SulaTagIconStatus.Error,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Bordered,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const InfoIcon = Template.bind({});\nInfoIcon.args = {\n label: 'Info Tag',\n icon: 'ph ph-exclamation-mark',\n iconStatus: SulaTagIconStatus.Info,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.Bordered,\n fontWeight: SulaTagFontWeight.Normal,\n};\n\nexport const CompleteExample = Template.bind({});\nCompleteExample.args = {\n label: 'Complete Tag',\n icon: 'ph ph-check',\n iconStatus: SulaTagIconStatus.Success,\n size: SulaTagSize.Default,\n appearance: SulaTagAppearance.LightBrand,\n fontWeight: SulaTagFontWeight.Bold,\n};\n"]}
@@ -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;width:100%}.textarea-focus{outline:2px solid var(--color-feedback-informational)!important;outline-offset:2px!important}.textarea-error{outline:2px solid var(--color-feedback-error)!important;outline-offset:2px!important}.label-up{animation:labelMoveUp .2s ease-in-out}.label-down{animation:labelMoveDown .2s ease-in-out}@keyframes labelMoveUp{0%{font-size:1rem;left:12px;top:16px}to{font-size:.875rem;left:16px;top:12px}}@keyframes labelMoveDown{0%{font-size:.875rem;left:16px;top:12px}to{font-size:1rem;left:12px;top:16px}}: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-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}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-12{left:.75rem}.left-16{left:1rem}.top-12{top:.75rem}.top-16{top:1rem}.z-10{z-index:10}.mt-4{margin-top:.25rem}.flex{display:flex}.h-full{height:100%}.w-\[85\%\]{width:85%}.w-full{width:100%}.cursor-not-allowed{cursor:not-allowed}.cursor-text{cursor:text}.resize-none{resize:none}.items-center{align-items:center}.justify-between{justify-content:space-between}.overflow-hidden{overflow:hidden}.rounded-sm{border-radius:.75rem}.border{border-width:1px}.border-none{border-style:none}.border-line-general{border-color:var(--color-line-general)}.border-line-input{border-color:var(--color-line-input)}.bg-states-bg-disabled{background-color:var(--color-states-bg-disabled)}.bg-surface-body{background-color:var(--color-surface-body)}.bg-transparent{background-color:transparent}.px-16{padding-left:1rem;padding-right:1rem}.py-12{padding-bottom:.75rem;padding-top:.75rem}.pt-0{padding-top:0}.pt-6{padding-top:1.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-feedback-error{color:var(--color-feedback-error)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-primary{color:var(--color-text-primary)}.caret-brand-primary{caret-color:var(--color-brand-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}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,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;width:100%}.textarea-focus{outline:2px solid var(--color-feedback-informational)!important;outline-offset:2px!important}.textarea-error{outline:2px solid var(--color-feedback-error)!important;outline-offset:2px!important}.label-up{animation:labelMoveUp .2s ease-in-out}.label-down{animation:labelMoveDown .2s ease-in-out}@keyframes labelMoveUp{0%{font-size:1rem;left:12px;top:16px}to{font-size:.875rem;left:16px;top:12px}}@keyframes labelMoveDown{0%{font-size:.875rem;left:16px;top:12px}to{font-size:1rem;left:12px;top:16px}}: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}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-12{left:.75rem}.left-16{left:1rem}.top-12{top:.75rem}.top-16{top:1rem}.z-10{z-index:10}.mt-4{margin-top:.25rem}.flex{display:flex}.h-full{height:100%}.w-\[85\%\]{width:85%}.w-full{width:100%}.cursor-not-allowed{cursor:not-allowed}.cursor-text{cursor:text}.resize-none{resize:none}.items-center{align-items:center}.justify-between{justify-content:space-between}.overflow-hidden{overflow:hidden}.rounded-sm{border-radius:.75rem}.border{border-width:1px}.border-none{border-style:none}.border-line-general{border-color:var(--color-line-general)}.border-line-input{border-color:var(--color-line-input)}.bg-states-bg-disabled{background-color:var(--color-states-bg-disabled)}.bg-surface-body{background-color:var(--color-surface-body)}.bg-transparent{background-color:transparent}.px-16{padding-left:1rem;padding-right:1rem}.py-12{padding-bottom:.75rem;padding-top:.75rem}.pt-0{padding-top:0}.pt-6{padding-top:1.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-feedback-error{color:var(--color-feedback-error)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-primary{color:var(--color-text-primary)}.caret-brand-primary{caret-color:var(--color-brand-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}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}
@@ -49,7 +49,7 @@ export class SulaTextarea {
49
49
  };
50
50
  }
51
51
  handleClick(event) {
52
- if (!this.node)
52
+ if (!this.node || !this.textareaIsFocused)
53
53
  return;
54
54
  const clickInside = this.node.contains(event.target);
55
55
  if (!clickInside && (!this.textValue || this.textValue.trim().length === 0)) {
@@ -83,13 +83,13 @@ export class SulaTextarea {
83
83
  }
84
84
  render() {
85
85
  const containerHeight = this.rows * 24 + 48;
86
- return (h(Host, { key: '69db08ba2dfa48ab4972febe5fb1ece24574c0d1', ref: node => (this.node = node) }, h("div", { key: '2aa2f346436687068696e73f9a8a4d89b24d69ec' }, h("div", { key: '35c9c074790112d6622b032f0dff0f54c99ab7f8', id: "textarea-container", class: {
86
+ return (h(Host, { key: '57c232e61727c00ddebfff0aec234d32b5d7ab20', ref: node => (this.node = node) }, h("div", { key: '9973953fb0a42915f5829c464966a85fc8de29a5' }, h("div", { key: '5a0e22f5a0da4b3a5f756b9630f1aa81c7bc89c4', id: "textarea-container", class: {
87
87
  'relative border rounded-sm px-16 py-12 outline-none caret-brand-primary': true,
88
88
  'textarea-focus': this.textareaIsFocused && !this.disabled && this.status === SulaTextareaStatus.Default,
89
89
  'textarea-error': this.status === SulaTextareaStatus.Error && !this.disabled,
90
90
  'bg-states-bg-disabled border-line-general cursor-not-allowed': this.disabled,
91
91
  'bg-surface-body border-line-input cursor-text': !this.disabled,
92
- }, style: { height: `${containerHeight}px` }, tabIndex: 0, onFocus: this.handleFocus, onClick: this.handleTextareaClick }, h("label", { key: 'fe14082916a84da099bfc0798a10eee16169b9f7', class: {
92
+ }, style: { height: `${containerHeight}px` }, tabIndex: 0, onFocus: this.handleFocus, onClick: this.handleTextareaClick }, h("label", { key: '18c83444b42e60e93dd8245127f9f84e6fc4dcc0', class: {
93
93
  'absolute font-bold transition-all duration-200 ease-in-out pointer-events-none z-10 w-[85%]': true,
94
94
  'text-sm top-12 left-16': this.isActive,
95
95
  'text-base top-16 left-12': !this.isActive,
@@ -97,17 +97,17 @@ export class SulaTextarea {
97
97
  'text-text-disabled': this.disabled,
98
98
  'bg-surface-body': !this.disabled && this.isActive,
99
99
  [this.labelAnimationClass]: true,
100
- }, style: this.isActive ? { padding: '0 4px', marginLeft: '-4px' } : {} }, this.label), h("textarea", { key: 'a0a611ffc887e3b5a751e93bd994feb4f63a0ad6', ref: node => (this.textareaElement = node), placeholder: this.isActive ? this.placeholder : '', rows: this.rows, maxLength: this.maxLength, disabled: this.disabled, class: {
100
+ }, style: this.isActive ? { padding: '0 4px', marginLeft: '-4px' } : {} }, this.label), h("textarea", { key: '17049dd7636d3bee5dc37a6270f2a1289c6777b6', ref: node => (this.textareaElement = node), placeholder: this.isActive ? this.placeholder : '', rows: this.rows, maxLength: this.maxLength, disabled: this.disabled, class: {
101
101
  'w-full h-full outline-none text-base bg-transparent border-none resize-none': true,
102
102
  'pt-6': this.isActive,
103
103
  'pt-0': !this.isActive,
104
104
  'text-text-primary': !this.disabled,
105
105
  'text-text-disabled cursor-not-allowed overflow-hidden': this.disabled,
106
- }, onInput: this.handleTextareaChanges, onFocus: this.handleTextareaFocus, onBlur: this.handleBlur, value: this.textValue })), (this.helpText || this.maxLength) && (h("div", { key: 'a80df9745209ff2116815600e8077ab0c81dc122', class: "flex justify-between items-center px-16 mt-4 text-sm" }, this.helpText && (h("div", { key: '0882feb0b690fd6b56ea8911f1ddea994ef27228', id: "textarea-help-text", class: {
106
+ }, onInput: this.handleTextareaChanges, onFocus: this.handleTextareaFocus, onBlur: this.handleBlur, value: this.textValue })), (this.helpText || this.maxLength) && (h("div", { key: 'e0cc23cc8dc42a88627ab81cf68d6f2d57441df4', class: "flex justify-between items-center px-16 mt-4 text-sm" }, this.helpText && (h("div", { key: 'c208c32ea302af2dd85606582733f1ad83a4167b', id: "textarea-help-text", class: {
107
107
  'text-text-primary': this.status === SulaTextareaStatus.Default && !this.disabled,
108
108
  'text-feedback-error': this.status === SulaTextareaStatus.Error && !this.disabled,
109
109
  'text-text-disabled': this.disabled,
110
- } }, this.helpText)), this.maxLength && (h("div", { key: '2f4150bec1a2cff4e484b35f6c92d5ee90791a6c', id: "max-length-container", class: {
110
+ } }, this.helpText)), this.maxLength && (h("div", { key: '0c397be8232862d45b922bc0eab6eef452d02040', id: "max-length-container", class: {
111
111
  'text-text-primary': this.status === SulaTextareaStatus.Default && !this.disabled,
112
112
  'text-feedback-error': this.status === SulaTextareaStatus.Error && !this.disabled,
113
113
  'text-text-disabled': this.disabled,
@@ -129,6 +129,7 @@ export class SulaTextarea {
129
129
  return {
130
130
  "value": {
131
131
  "type": "string",
132
+ "attribute": "value",
132
133
  "mutable": true,
133
134
  "complexType": {
134
135
  "original": "string",
@@ -143,11 +144,11 @@ export class SulaTextarea {
143
144
  },
144
145
  "getter": false,
145
146
  "setter": false,
146
- "attribute": "value",
147
147
  "reflect": false
148
148
  },
149
149
  "status": {
150
150
  "type": "string",
151
+ "attribute": "status",
151
152
  "mutable": true,
152
153
  "complexType": {
153
154
  "original": "SulaTextareaStatus",
@@ -168,12 +169,12 @@ export class SulaTextarea {
168
169
  },
169
170
  "getter": false,
170
171
  "setter": false,
171
- "attribute": "status",
172
172
  "reflect": false,
173
173
  "defaultValue": "SulaTextareaStatus.Default"
174
174
  },
175
175
  "label": {
176
176
  "type": "string",
177
+ "attribute": "label",
177
178
  "mutable": false,
178
179
  "complexType": {
179
180
  "original": "string",
@@ -188,11 +189,11 @@ export class SulaTextarea {
188
189
  },
189
190
  "getter": false,
190
191
  "setter": false,
191
- "attribute": "label",
192
192
  "reflect": false
193
193
  },
194
194
  "placeholder": {
195
195
  "type": "string",
196
+ "attribute": "placeholder",
196
197
  "mutable": false,
197
198
  "complexType": {
198
199
  "original": "string",
@@ -207,11 +208,11 @@ export class SulaTextarea {
207
208
  },
208
209
  "getter": false,
209
210
  "setter": false,
210
- "attribute": "placeholder",
211
211
  "reflect": false
212
212
  },
213
213
  "disabled": {
214
214
  "type": "boolean",
215
+ "attribute": "disabled",
215
216
  "mutable": true,
216
217
  "complexType": {
217
218
  "original": "boolean",
@@ -226,11 +227,11 @@ export class SulaTextarea {
226
227
  },
227
228
  "getter": false,
228
229
  "setter": false,
229
- "attribute": "disabled",
230
230
  "reflect": false
231
231
  },
232
232
  "helpText": {
233
233
  "type": "string",
234
+ "attribute": "help-text",
234
235
  "mutable": false,
235
236
  "complexType": {
236
237
  "original": "string",
@@ -245,11 +246,11 @@ export class SulaTextarea {
245
246
  },
246
247
  "getter": false,
247
248
  "setter": false,
248
- "attribute": "help-text",
249
249
  "reflect": false
250
250
  },
251
251
  "maxLength": {
252
252
  "type": "number",
253
+ "attribute": "max-length",
253
254
  "mutable": false,
254
255
  "complexType": {
255
256
  "original": "number",
@@ -264,11 +265,11 @@ export class SulaTextarea {
264
265
  },
265
266
  "getter": false,
266
267
  "setter": false,
267
- "attribute": "max-length",
268
268
  "reflect": false
269
269
  },
270
270
  "rows": {
271
271
  "type": "number",
272
+ "attribute": "rows",
272
273
  "mutable": false,
273
274
  "complexType": {
274
275
  "original": "number",
@@ -283,7 +284,6 @@ export class SulaTextarea {
283
284
  },
284
285
  "getter": false,
285
286
  "setter": false,
286
- "attribute": "rows",
287
287
  "reflect": false,
288
288
  "defaultValue": "4"
289
289
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sula-textarea.js","sourceRoot":"","sources":["../../../src/components/sula-textarea/sula-textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAOjE,MAAM,OAAO,YAAY;IALzB;QAYE;;WAEG;QACsB,WAAM,GAAuB,kBAAkB,CAAC,OAAO,CAAC;QA2BjF;;WAEG;QACK,SAAI,GAAW,CAAC,CAAC;QAqBzB,aAAQ,GAAG,KAAK,CAAC;QAGjB,cAAS,GAAW,EAAE,CAAC;QAGvB,sBAAiB,GAAG,KAAK,CAAC;QAG1B,wBAAmB,GAAG,EAAE,CAAC;QA8CzB,wBAAmB,GAAG,GAAG,EAAE;YACzB,IAAI,IAAI,CAAC,QAAQ;gBAAE,OAAO;YAC1B,IAAI,CAAC,UAAU,EAAE,CAAC;YAClB,IAAI,CAAC,eAAe,EAAE,CAAC;QACzB,CAAC,CAAC;QAEF,0BAAqB,GAAG,CAAC,KAAiB,EAA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AAE,IAAI,CAAC,MAAM,KAAK,kBAAkB,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ;4BACjF,qBAAqB,EAAE,IAAI,CAAC,MAAM,KAAK,kBAAkB,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,QAAQ;4BACjF,oBAAoB,EAAE,IAAI,CAAC,QAAQ;yBACpC;wBAEA,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;;wBAAG,IAAI,CAAC,SAAS,CACxD,CACP,CACG,CACP,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Host, Listen, Prop, State, h } from '@stencil/core';\nimport { SulaTextareaStatus } from './model/sula-textarea.model';\n\n@Component({\n tag: 'sula-textarea',\n styleUrl: 'sula-textarea.scss',\n shadow: true,\n})\nexport class SulaTextarea {\n /**\n * Value for the textarea.\n */\n @Prop({ mutable: true })\n value?: string;\n\n /**\n * The textarea status\n */\n @Prop({ mutable: true }) status: SulaTextareaStatus = SulaTextareaStatus.Default;\n\n /**\n * The textarea label\n */\n @Prop() label: string;\n\n /**\n * The textarea placeholder\n */\n @Prop() placeholder: string;\n\n /**\n * The textarea is disabled\n */\n @Prop({ mutable: true }) disabled: boolean;\n\n /**\n * The help text for textarea\n */\n @Prop() helpText?: string;\n\n /**\n * The textarea max length\n */\n @Prop() maxLength?: number;\n\n /**\n * The textarea rows (height)\n */\n @Prop() rows: number = 4;\n\n /**\n * Event emitted when textarea value changes.\n */\n @Event()\n valueChanged: EventEmitter<string>;\n\n /**\n * Event emitted when textarea is focused.\n */\n @Event()\n focusedOn: EventEmitter<void>;\n\n /**\n * Event emitted when textarea is focused out.\n */\n @Event()\n focusedOut: EventEmitter<void>;\n\n @State()\n isActive = false;\n\n @State()\n textValue: string = '';\n\n @State()\n textareaIsFocused = false;\n\n @State()\n labelAnimationClass = '';\n\n textareaElement: HTMLTextAreaElement;\n\n node?: HTMLElement;\n\n @Listen('click', { target: 'document' })\n handleClick(event: Event) {\n if (!this.node) return;\n\n const clickInside = this.node.contains(event.target as Node);\n\n if (!clickInside && (!this.textValue || this.textValue.trim().length === 0)) {\n this.setLabelDown();\n this.focusedOut.emit();\n this.textareaIsFocused = false;\n }\n }\n\n focusOnTextarea() {\n setTimeout(() => {\n this.textareaElement.focus();\n }, 0);\n }\n\n componentWillLoad() {\n if (this.value && this.value.trim().length > 0) {\n this.textValue = this.value;\n this.isActive = true;\n }\n }\n\n setLabelUp() {\n if (!this.isActive) {\n this.labelAnimationClass = 'label-up';\n this.isActive = true;\n }\n }\n\n setLabelDown() {\n if (this.isActive && (!this.textValue || this.textValue.trim().length === 0)) {\n this.labelAnimationClass = 'label-down';\n this.isActive = false;\n }\n }\n\n handleTextareaClick = () => {\n if (this.disabled) return;\n this.setLabelUp();\n this.focusOnTextarea();\n };\n\n handleTextareaChanges = (event: InputEvent) => {\n const newValue = (event.target as HTMLTextAreaElement).value;\n this.textValue = newValue;\n this.value = newValue;\n\n if (newValue.length > 0 || this.textareaIsFocused) {\n this.setLabelUp();\n }\n\n this.valueChanged.emit(newValue);\n };\n\n handleFocus = () => {\n if (this.disabled) return;\n\n this.setLabelUp();\n this.focusOnTextarea();\n };\n\n handleBlur = () => {\n if (!this.textValue || this.textValue.trim().length === 0) {\n this.setLabelDown();\n }\n\n this.focusedOut.emit();\n this.textareaIsFocused = false;\n };\n\n handleTextareaFocus = () => {\n this.focusedOn.emit();\n this.textareaIsFocused = true;\n this.setLabelUp();\n };\n\n render() {\n const containerHeight = this.rows * 24 + 48;\n\n return (\n <Host ref={node => (this.node = node)}>\n <div>\n <div\n id=\"textarea-container\"\n class={{\n 'relative border rounded-sm px-16 py-12 outline-none caret-brand-primary': true,\n 'textarea-focus': this.textareaIsFocused && !this.disabled && this.status === SulaTextareaStatus.Default,\n 'textarea-error': this.status === SulaTextareaStatus.Error && !this.disabled,\n 'bg-states-bg-disabled border-line-general cursor-not-allowed': this.disabled,\n 'bg-surface-body border-line-input cursor-text': !this.disabled,\n }}\n style={{ height: `${containerHeight}px` }}\n tabIndex={0}\n onFocus={this.handleFocus}\n onClick={this.handleTextareaClick}\n >\n <label\n class={{\n 'absolute font-bold transition-all duration-200 ease-in-out pointer-events-none z-10 w-[85%]': true,\n 'text-sm top-12 left-16': this.isActive,\n 'text-base top-16 left-12': !this.isActive,\n 'text-text-primary': !this.disabled && (this.isActive || this.status === SulaTextareaStatus.Default),\n 'text-text-disabled': this.disabled,\n 'bg-surface-body': !this.disabled && this.isActive,\n [this.labelAnimationClass]: true,\n }}\n style={this.isActive ? { padding: '0 4px', marginLeft: '-4px' } : {}}\n >\n {this.label}\n </label>\n\n <textarea\n ref={node => (this.textareaElement = node)}\n placeholder={this.isActive ? this.placeholder : ''}\n rows={this.rows}\n maxLength={this.maxLength}\n disabled={this.disabled}\n class={{\n 'w-full h-full outline-none text-base bg-transparent border-none resize-none': true,\n 'pt-6': this.isActive,\n 'pt-0': !this.isActive,\n 'text-text-primary': !this.disabled,\n 'text-text-disabled cursor-not-allowed overflow-hidden': this.disabled,\n }}\n onInput={this.handleTextareaChanges}\n onFocus={this.handleTextareaFocus}\n onBlur={this.handleBlur}\n value={this.textValue}\n />\n </div>\n\n {(this.helpText || this.maxLength) && (\n <div class=\"flex justify-between items-center px-16 mt-4 text-sm\">\n {this.helpText && (\n <div\n id=\"textarea-help-text\"\n class={{\n 'text-text-primary': this.status === SulaTextareaStatus.Default && !this.disabled,\n 'text-feedback-error': this.status === SulaTextareaStatus.Error && !this.disabled,\n 'text-text-disabled': this.disabled,\n }}\n >\n {this.helpText}\n </div>\n )}\n {this.maxLength && (\n <div\n id=\"max-length-container\"\n class={{\n 'text-text-primary': this.status === SulaTextareaStatus.Default && !this.disabled,\n 'text-feedback-error': this.status === SulaTextareaStatus.Error && !this.disabled,\n 'text-text-disabled': this.disabled,\n }}\n >\n {this.textValue ? this.textValue.length : 0}/{this.maxLength}\n </div>\n )}\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"sula-textarea.js","sourceRoot":"","sources":["../../../src/components/sula-textarea/sula-textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAOjE,MAAM,OAAO,YAAY;IALzB;QAYE;;WAEG;QACsB,WAAM,GAAuB,kBAAkB,CAAC,OAAO,CAAC;QA2BjF;;WAEG;QACK,SAAI,GAAW,CAAC,CAAC;QAqBzB,aAAQ,GAAG,KAAK,CAAC;QAGjB,cAAS,GAAW,EAAE,CAAC;QAGvB,sBAAiB,GAAG,KAAK,CAAC;QAG1B,wBAAmB,GAAG,EAAE,CAAC;QA8CzB,wBAAmB,GAAG,GAAG,EAAE;YACzB,IAAI,IAAI,CAAC,QAAQ;gBAAE,OAAO;YAC1B,IAAI,CAAC,UAAU,EAAE,CAAC;YAClB,IAAI,CAAC,eAAe,EAAE,CAAC;QACzB,CAAC,CAAC;QAEF,0BAAqB,GAAG,CAAC,KAAiB,EAAE,EAAE;YAC5C,MAAM,QAAQ,GAAI,KAAK,CAAC,MAA8B,CAAC,KAAK,CAAC;YAC7D,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;YAC1B,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC;YAEtB,IA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,KAAK,IAAI,CAAC,IAAI,CAAC,QAAQ;4BACjF,oBAAoB,EAAE,IAAI,CAAC,QAAQ;yBACpC;wBAEA,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;;wBAAG,IAAI,CAAC,SAAS,CACxD,CACP,CACG,CACP,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Host, Listen, Prop, State, h } from '@stencil/core';\nimport { SulaTextareaStatus } from './model/sula-textarea.model';\n\n@Component({\n tag: 'sula-textarea',\n styleUrl: 'sula-textarea.scss',\n shadow: true,\n})\nexport class SulaTextarea {\n /**\n * Value for the textarea.\n */\n @Prop({ mutable: true })\n value?: string;\n\n /**\n * The textarea status\n */\n @Prop({ mutable: true }) status: SulaTextareaStatus = SulaTextareaStatus.Default;\n\n /**\n * The textarea label\n */\n @Prop() label: string;\n\n /**\n * The textarea placeholder\n */\n @Prop() placeholder: string;\n\n /**\n * The textarea is disabled\n */\n @Prop({ mutable: true }) disabled: boolean;\n\n /**\n * The help text for textarea\n */\n @Prop() helpText?: string;\n\n /**\n * The textarea max length\n */\n @Prop() maxLength?: number;\n\n /**\n * The textarea rows (height)\n */\n @Prop() rows: number = 4;\n\n /**\n * Event emitted when textarea value changes.\n */\n @Event()\n valueChanged: EventEmitter<string>;\n\n /**\n * Event emitted when textarea is focused.\n */\n @Event()\n focusedOn: EventEmitter<void>;\n\n /**\n * Event emitted when textarea is focused out.\n */\n @Event()\n focusedOut: EventEmitter<void>;\n\n @State()\n isActive = false;\n\n @State()\n textValue: string = '';\n\n @State()\n textareaIsFocused = false;\n\n @State()\n labelAnimationClass = '';\n\n textareaElement: HTMLTextAreaElement;\n\n node?: HTMLElement;\n\n @Listen('click', { target: 'document' })\n handleClick(event: Event) {\n if (!this.node || !this.textareaIsFocused) return;\n\n const clickInside = this.node.contains(event.target as Node);\n\n if (!clickInside && (!this.textValue || this.textValue.trim().length === 0)) {\n this.setLabelDown();\n this.focusedOut.emit();\n this.textareaIsFocused = false;\n }\n }\n\n focusOnTextarea() {\n setTimeout(() => {\n this.textareaElement.focus();\n }, 0);\n }\n\n componentWillLoad() {\n if (this.value && this.value.trim().length > 0) {\n this.textValue = this.value;\n this.isActive = true;\n }\n }\n\n setLabelUp() {\n if (!this.isActive) {\n this.labelAnimationClass = 'label-up';\n this.isActive = true;\n }\n }\n\n setLabelDown() {\n if (this.isActive && (!this.textValue || this.textValue.trim().length === 0)) {\n this.labelAnimationClass = 'label-down';\n this.isActive = false;\n }\n }\n\n handleTextareaClick = () => {\n if (this.disabled) return;\n this.setLabelUp();\n this.focusOnTextarea();\n };\n\n handleTextareaChanges = (event: InputEvent) => {\n const newValue = (event.target as HTMLTextAreaElement).value;\n this.textValue = newValue;\n this.value = newValue;\n\n if (newValue.length > 0 || this.textareaIsFocused) {\n this.setLabelUp();\n }\n\n this.valueChanged.emit(newValue);\n };\n\n handleFocus = () => {\n if (this.disabled) return;\n\n this.setLabelUp();\n this.focusOnTextarea();\n };\n\n handleBlur = () => {\n if (!this.textValue || this.textValue.trim().length === 0) {\n this.setLabelDown();\n }\n\n this.focusedOut.emit();\n this.textareaIsFocused = false;\n };\n\n handleTextareaFocus = () => {\n this.focusedOn.emit();\n this.textareaIsFocused = true;\n this.setLabelUp();\n };\n\n render() {\n const containerHeight = this.rows * 24 + 48;\n\n return (\n <Host ref={node => (this.node = node)}>\n <div>\n <div\n id=\"textarea-container\"\n class={{\n 'relative border rounded-sm px-16 py-12 outline-none caret-brand-primary': true,\n 'textarea-focus': this.textareaIsFocused && !this.disabled && this.status === SulaTextareaStatus.Default,\n 'textarea-error': this.status === SulaTextareaStatus.Error && !this.disabled,\n 'bg-states-bg-disabled border-line-general cursor-not-allowed': this.disabled,\n 'bg-surface-body border-line-input cursor-text': !this.disabled,\n }}\n style={{ height: `${containerHeight}px` }}\n tabIndex={0}\n onFocus={this.handleFocus}\n onClick={this.handleTextareaClick}\n >\n <label\n class={{\n 'absolute font-bold transition-all duration-200 ease-in-out pointer-events-none z-10 w-[85%]': true,\n 'text-sm top-12 left-16': this.isActive,\n 'text-base top-16 left-12': !this.isActive,\n 'text-text-primary': !this.disabled && (this.isActive || this.status === SulaTextareaStatus.Default),\n 'text-text-disabled': this.disabled,\n 'bg-surface-body': !this.disabled && this.isActive,\n [this.labelAnimationClass]: true,\n }}\n style={this.isActive ? { padding: '0 4px', marginLeft: '-4px' } : {}}\n >\n {this.label}\n </label>\n\n <textarea\n ref={node => (this.textareaElement = node)}\n placeholder={this.isActive ? this.placeholder : ''}\n rows={this.rows}\n maxLength={this.maxLength}\n disabled={this.disabled}\n class={{\n 'w-full h-full outline-none text-base bg-transparent border-none resize-none': true,\n 'pt-6': this.isActive,\n 'pt-0': !this.isActive,\n 'text-text-primary': !this.disabled,\n 'text-text-disabled cursor-not-allowed overflow-hidden': this.disabled,\n }}\n onInput={this.handleTextareaChanges}\n onFocus={this.handleTextareaFocus}\n onBlur={this.handleBlur}\n value={this.textValue}\n />\n </div>\n\n {(this.helpText || this.maxLength) && (\n <div class=\"flex justify-between items-center px-16 mt-4 text-sm\">\n {this.helpText && (\n <div\n id=\"textarea-help-text\"\n class={{\n 'text-text-primary': this.status === SulaTextareaStatus.Default && !this.disabled,\n 'text-feedback-error': this.status === SulaTextareaStatus.Error && !this.disabled,\n 'text-text-disabled': this.disabled,\n }}\n >\n {this.helpText}\n </div>\n )}\n {this.maxLength && (\n <div\n id=\"max-length-container\"\n class={{\n 'text-text-primary': this.status === SulaTextareaStatus.Default && !this.disabled,\n 'text-feedback-error': this.status === SulaTextareaStatus.Error && !this.disabled,\n 'text-text-disabled': this.disabled,\n }}\n >\n {this.textValue ? this.textValue.length : 0}/{this.maxLength}\n </div>\n )}\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -81,6 +81,13 @@ export default {
81
81
  description: 'Evento emitido quando o textarea perde foco',
82
82
  },
83
83
  },
84
+ parameters: {
85
+ docs: {
86
+ description: {
87
+ component: 'O componente Textarea Sula Design System é utilizado para inclusão de informações em telas que precisam de uma área maior para textos. Foi desenvolvido suportando cenário de erro.',
88
+ },
89
+ },
90
+ },
84
91
  };
85
92
  const Template = args => {
86
93
  const container = document.createElement('div');
@@ -1 +1 @@
1
- {"version":3,"file":"sula-textarea.stories.js","sourceRoot":"","sources":["../../../src/components/sula-textarea/sula-textarea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,eAAe;IACb,KAAK,EAAE,0BAA0B;IACjC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,MAAM,EAAE;YACN,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC;YAC1C,YAAY,EAAE,kBAAkB,CAAC,OAAO;YACxC,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,OAAO;YACrB,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK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M,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,mCACf,OAAO,CAAC,IAAI,KACf,KAAK,EAAE,sBAAsB,EAC7B,WAAW,EAAE,yCAAyC,EACtD,SAAS,EAAE,GAAG,EACd,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,oDAAoD,EAC9D,KAAK,EAAE,6DAA6D,GACrE,CAAC","sourcesContent":["import { SulaTextareaStatus } from './model/sula-textarea.model';\n\nexport default {\n title: 'Components/sula-textarea',\n tags: ['autodocs'],\n argTypes: {\n value: {\n control: 'text',\n defaultValue: '',\n description: 'Value for the textarea',\n type: {\n required: false,\n },\n },\n status: {\n control: { type: 'select' },\n options: Object.values(SulaTextareaStatus),\n defaultValue: SulaTextareaStatus.Default,\n description: 'The textarea status',\n type: {\n required: false,\n },\n },\n label: {\n control: 'text',\n defaultValue: 'Label',\n description: 'The textarea label',\n type: {\n required: false,\n },\n },\n placeholder: {\n control: 'text',\n defaultValue: 'Placeholder',\n description: 'The textarea placeholder',\n type: {\n required: false,\n },\n },\n disabled: {\n control: 'boolean',\n defaultValue: false,\n description: 'The textarea is disabled',\n type: {\n required: false,\n },\n },\n helpText: {\n control: 'text',\n defaultValue: '',\n description: 'The help text for textarea',\n type: {\n required: false,\n },\n },\n maxLength: {\n control: 'number',\n defaultValue: 0,\n description: 'The textarea max length',\n type: {\n required: false,\n },\n },\n rows: {\n control: 'number',\n defaultValue: 4,\n description: 'The textarea rows (height)',\n type: {\n required: false,\n },\n },\n valueChanged: {\n action: 'valueChanged',\n description: 'Evento emitido quando o valor do textarea muda',\n },\n focusedOn: {\n action: 'focusedOn',\n description: 'Evento emitido quando o textarea recebe foco',\n },\n focusedOut: {\n action: 'focusedOut',\n description: 'Evento emitido quando o textarea perde foco',\n },\n },\n};\n\nconst Template = args => {\n const container = document.createElement('div');\n container.style.maxWidth = '400px';\n container.style.margin = '20px';\n\n const el = document.createElement('sula-textarea');\n\n if (args.value) el.setAttribute('value', args.value);\n el.setAttribute('status', args.status);\n el.setAttribute('label', args.label);\n el.setAttribute('placeholder', args.placeholder);\n el.setAttribute('disabled', args.disabled.toString());\n el.setAttribute('rows', args.rows.toString());\n\n if (args.helpText) el.setAttribute('help-text', args.helpText);\n if (args.maxLength > 0) el.setAttribute('max-length', args.maxLength.toString());\n\n el.addEventListener('valueChanged', args.valueChanged);\n el.addEventListener('focusedOn', args.focusedOn);\n el.addEventListener('focusedOut', args.focusedOut);\n\n container.appendChild(el);\n\n return container;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n value: '',\n status: SulaTextareaStatus.Default,\n label: 'Comentário',\n placeholder: 'Digite seu comentário',\n disabled: false,\n helpText: '',\n maxLength: 0,\n rows: 4,\n};\n\nexport const WithValue = Template.bind({});\nWithValue.args = {\n ...Default.args,\n value: 'Este é um texto de exemplo já preenchido no textarea.',\n label: 'Descrição',\n placeholder: 'Digite uma descrição',\n};\n\nexport const WithHelpText = Template.bind({});\nWithHelpText.args = {\n ...Default.args,\n label: 'Feedback',\n placeholder: 'Compartilhe seu feedback',\n helpText: 'Sua opinião é muito importante para nós',\n};\n\nexport const WithMaxLength = Template.bind({});\nWithMaxLength.args = {\n ...Default.args,\n label: 'Mensagem',\n placeholder: 'Digite sua mensagem',\n maxLength: 200,\n helpText: 'Máximo de 200 caracteres',\n};\n\nexport const LargeTextarea = Template.bind({});\nLargeTextarea.args = {\n ...Default.args,\n label: 'Artigo',\n placeholder: 'Escreva seu artigo aqui',\n rows: 8,\n helpText: 'Área maior para textos longos',\n};\n\nexport const SmallTextarea = Template.bind({});\nSmallTextarea.args = {\n ...Default.args,\n label: 'Nota rápida',\n placeholder: 'Adicione uma nota',\n rows: 2,\n helpText: 'Área compacta para notas curtas',\n};\n\nexport const Error = Template.bind({});\nError.args = {\n ...Default.args,\n status: SulaTextareaStatus.Error,\n label: 'Comentário obrigatório',\n placeholder: 'Digite seu comentário',\n helpText: 'Este campo é obrigatório',\n};\n\nexport const Disabled = Template.bind({});\nDisabled.args = {\n ...Default.args,\n disabled: true,\n label: 'Campo desabilitado',\n value: 'Este textarea está desabilitado',\n helpText: 'Este campo não pode ser editado',\n};\n\nexport const WithMaxLengthAndValue = Template.bind({});\nWithMaxLengthAndValue.args = {\n ...Default.args,\n label: 'Resumo',\n placeholder: 'Digite um resumo',\n maxLength: 100,\n value: 'Este é um exemplo de texto que mostra como o contador de caracteres funciona.',\n helpText: 'Mantenha o resumo conciso',\n};\n\nexport const ErrorWithMaxLength = Template.bind({});\nErrorWithMaxLength.args = {\n ...Default.args,\n status: SulaTextareaStatus.Error,\n label: 'Descrição do problema',\n placeholder: 'Descreva o problema',\n maxLength: 150,\n helpText: 'Descrição muito longa. Reduza o texto.',\n value: 'Esta é uma descrição muito longa que excede o limite de caracteres permitido para este campo, demonstrando o estado de erro quando há muito texto.',\n};\n\nexport const CompleteExample = Template.bind({});\nCompleteExample.args = {\n ...Default.args,\n label: 'Avaliação do produto',\n placeholder: 'Conte-nos sua experiência com o produto',\n maxLength: 500,\n rows: 6,\n helpText: 'Sua avaliação nos ajuda a melhorar nossos produtos',\n value: 'Produto excelente! A qualidade superou minhas expectativas.',\n};\n"]}
1
+ {"version":3,"file":"sula-textarea.stories.js","sourceRoot":"","sources":["../../../src/components/sula-textarea/sula-textarea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,eAAe;IACb,KAAK,EAAE,0BAA0B;IACjC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,MAAM,EAAE;YACN,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,OAAO,EAAE,MAAM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EAAE,+EAA+E,EACtF,QAAQ,EAAE,2BAA2B,GACtC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,kBAAkB,CAAC,IAAI,mCAClB,OAAO,CAAC,IAAI,KACf,MAAM,EAAE,kBAAkB,CAAC,KAAK,EAChC,KAAK,EAAE,uBAAuB,EAC9B,WAAW,EAAE,qBAAqB,EAClC,SAAS,EAAE,GAAG,EACd,QAAQ,EAAE,wCAAwC,EAClD,KAAK,EAAE,oJAAoJ,GAC5J,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,mCACf,OAAO,CAAC,IAAI,KACf,KAAK,EAAE,sBAAsB,EAC7B,WAAW,EAAE,yCAAyC,EACtD,SAAS,EAAE,GAAG,EACd,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,oDAAoD,EAC9D,KAAK,EAAE,6DAA6D,GACrE,CAAC","sourcesContent":["import { SulaTextareaStatus } from './model/sula-textarea.model';\n\nexport default {\n title: 'Components/sula-textarea',\n tags: ['autodocs'],\n argTypes: {\n value: {\n control: 'text',\n defaultValue: '',\n description: 'Value for the textarea',\n type: {\n required: false,\n },\n },\n status: {\n control: { type: 'select' },\n options: Object.values(SulaTextareaStatus),\n defaultValue: SulaTextareaStatus.Default,\n description: 'The textarea status',\n type: {\n required: false,\n },\n },\n label: {\n control: 'text',\n defaultValue: 'Label',\n description: 'The textarea label',\n type: {\n required: false,\n },\n },\n placeholder: {\n control: 'text',\n defaultValue: 'Placeholder',\n description: 'The textarea placeholder',\n type: {\n required: false,\n },\n },\n disabled: {\n control: 'boolean',\n defaultValue: false,\n description: 'The textarea is disabled',\n type: {\n required: false,\n },\n },\n helpText: {\n control: 'text',\n defaultValue: '',\n description: 'The help text for textarea',\n type: {\n required: false,\n },\n },\n maxLength: {\n control: 'number',\n defaultValue: 0,\n description: 'The textarea max length',\n type: {\n required: false,\n },\n },\n rows: {\n control: 'number',\n defaultValue: 4,\n description: 'The textarea rows (height)',\n type: {\n required: false,\n },\n },\n valueChanged: {\n action: 'valueChanged',\n description: 'Evento emitido quando o valor do textarea muda',\n },\n focusedOn: {\n action: 'focusedOn',\n description: 'Evento emitido quando o textarea recebe foco',\n },\n focusedOut: {\n action: 'focusedOut',\n description: 'Evento emitido quando o textarea perde foco',\n },\n },\n parameters: {\n docs: {\n description: {\n component:\n 'O componente Textarea Sula Design System é utilizado para inclusão de informações em telas que precisam de uma área maior para textos. Foi desenvolvido suportando cenário de erro.',\n },\n },\n },\n};\n\nconst Template = args => {\n const container = document.createElement('div');\n container.style.maxWidth = '400px';\n container.style.margin = '20px';\n\n const el = document.createElement('sula-textarea');\n\n if (args.value) el.setAttribute('value', args.value);\n el.setAttribute('status', args.status);\n el.setAttribute('label', args.label);\n el.setAttribute('placeholder', args.placeholder);\n el.setAttribute('disabled', args.disabled.toString());\n el.setAttribute('rows', args.rows.toString());\n\n if (args.helpText) el.setAttribute('help-text', args.helpText);\n if (args.maxLength > 0) el.setAttribute('max-length', args.maxLength.toString());\n\n el.addEventListener('valueChanged', args.valueChanged);\n el.addEventListener('focusedOn', args.focusedOn);\n el.addEventListener('focusedOut', args.focusedOut);\n\n container.appendChild(el);\n\n return container;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n value: '',\n status: SulaTextareaStatus.Default,\n label: 'Comentário',\n placeholder: 'Digite seu comentário',\n disabled: false,\n helpText: '',\n maxLength: 0,\n rows: 4,\n};\n\nexport const WithValue = Template.bind({});\nWithValue.args = {\n ...Default.args,\n value: 'Este é um texto de exemplo já preenchido no textarea.',\n label: 'Descrição',\n placeholder: 'Digite uma descrição',\n};\n\nexport const WithHelpText = Template.bind({});\nWithHelpText.args = {\n ...Default.args,\n label: 'Feedback',\n placeholder: 'Compartilhe seu feedback',\n helpText: 'Sua opinião é muito importante para nós',\n};\n\nexport const WithMaxLength = Template.bind({});\nWithMaxLength.args = {\n ...Default.args,\n label: 'Mensagem',\n placeholder: 'Digite sua mensagem',\n maxLength: 200,\n helpText: 'Máximo de 200 caracteres',\n};\n\nexport const LargeTextarea = Template.bind({});\nLargeTextarea.args = {\n ...Default.args,\n label: 'Artigo',\n placeholder: 'Escreva seu artigo aqui',\n rows: 8,\n helpText: 'Área maior para textos longos',\n};\n\nexport const SmallTextarea = Template.bind({});\nSmallTextarea.args = {\n ...Default.args,\n label: 'Nota rápida',\n placeholder: 'Adicione uma nota',\n rows: 2,\n helpText: 'Área compacta para notas curtas',\n};\n\nexport const Error = Template.bind({});\nError.args = {\n ...Default.args,\n status: SulaTextareaStatus.Error,\n label: 'Comentário obrigatório',\n placeholder: 'Digite seu comentário',\n helpText: 'Este campo é obrigatório',\n};\n\nexport const Disabled = Template.bind({});\nDisabled.args = {\n ...Default.args,\n disabled: true,\n label: 'Campo desabilitado',\n value: 'Este textarea está desabilitado',\n helpText: 'Este campo não pode ser editado',\n};\n\nexport const WithMaxLengthAndValue = Template.bind({});\nWithMaxLengthAndValue.args = {\n ...Default.args,\n label: 'Resumo',\n placeholder: 'Digite um resumo',\n maxLength: 100,\n value: 'Este é um exemplo de texto que mostra como o contador de caracteres funciona.',\n helpText: 'Mantenha o resumo conciso',\n};\n\nexport const ErrorWithMaxLength = Template.bind({});\nErrorWithMaxLength.args = {\n ...Default.args,\n status: SulaTextareaStatus.Error,\n label: 'Descrição do problema',\n placeholder: 'Descreva o problema',\n maxLength: 150,\n helpText: 'Descrição muito longa. Reduza o texto.',\n value: 'Esta é uma descrição muito longa que excede o limite de caracteres permitido para este campo, demonstrando o estado de erro quando há muito texto.',\n};\n\nexport const CompleteExample = Template.bind({});\nCompleteExample.args = {\n ...Default.args,\n label: 'Avaliação do produto',\n placeholder: 'Conte-nos sua experiência com o produto',\n maxLength: 500,\n rows: 6,\n helpText: 'Sua avaliação nos ajuda a melhorar nossos produtos',\n value: 'Produto excelente! A qualidade superou minhas expectativas.',\n};\n"]}
@@ -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}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.outline{outline-style:solid}:host{display:block}.button-focus{outline:2px solid var(--color-feedback-informational)!important;outline-offset:2px!important}.button-error{outline:2px solid var(--color-feedback-error)!important;outline-offset:2px!important}.from-down{animation:from-down .2s ease-in-out}.from-up{animation:from-up .2s ease-in-out}@keyframes from-down{0%{opacity:0;transform:translateY(75%)}to{opacity:1;transform:translateY(0)}}@keyframes from-up{0%{opacity:0;transform:translateY(-75%)}to{opacity:1;transform:translateY(0)}}: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-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}.mt-4{margin-top:.25rem}.flex{display:flex}.hidden{display:none}.h-\[72px\]{height:72px}.w-full{width:100%}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:.75rem}.border{border-width:1px}.border-line-general{border-color:var(--color-line-general)}.border-line-input{border-color:var(--color-line-input)}.bg-states-bg-disabled{background-color:var(--color-states-bg-disabled)}.bg-surface-body{background-color:var(--color-surface-body)}.bg-transparent{background-color:transparent}.px-16{padding-left:1rem;padding-right:1rem}.pr-12{padding-right:.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-feedback-error{color:var(--color-feedback-error)}.text-icon-disabled{color:var(--color-icon-disabled)}.text-icon-primary{color:var(--color-icon-primary)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-primary{color:var(--color-text-primary)}.caret-brand-primary{caret-color:var(--color-brand-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}
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}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.outline{outline-style:solid}:host{display:block}.button-focus{outline:2px solid var(--color-feedback-informational)!important;outline-offset:2px!important}.button-error{outline:2px solid var(--color-feedback-error)!important;outline-offset:2px!important}.from-down{animation:from-down .2s ease-in-out}.from-up{animation:from-up .2s ease-in-out}@keyframes from-down{0%{opacity:0;transform:translateY(75%)}to{opacity:1;transform:translateY(0)}}@keyframes from-up{0%{opacity:0;transform:translateY(-75%)}to{opacity:1;transform:translateY(0)}}: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}.mt-4{margin-top:.25rem}.flex{display:flex}.hidden{display:none}.h-\[72px\]{height:72px}.w-full{width:100%}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:.75rem}.border{border-width:1px}.border-line-general{border-color:var(--color-line-general)}.border-line-input{border-color:var(--color-line-input)}.bg-states-bg-disabled{background-color:var(--color-states-bg-disabled)}.bg-surface-body{background-color:var(--color-surface-body)}.bg-transparent{background-color:transparent}.px-16{padding-left:1rem;padding-right:1rem}.pr-12{padding-right:.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-feedback-error{color:var(--color-feedback-error)}.text-icon-disabled{color:var(--color-icon-disabled)}.text-icon-primary{color:var(--color-icon-primary)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-primary{color:var(--color-text-primary)}.caret-brand-primary{caret-color:var(--color-brand-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}