@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
@@ -0,0 +1,176 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class SulaRadioButton {
3
+ constructor() {
4
+ /**
5
+ * Is radio button checked
6
+ */
7
+ this.checked = false;
8
+ /**
9
+ * Radio button label
10
+ */
11
+ this.label = '';
12
+ /**
13
+ * Is radio button disabled
14
+ */
15
+ this.disabled = false;
16
+ this.radioIsFocus = false;
17
+ this.handleFocus = () => {
18
+ if (this.disabled)
19
+ return;
20
+ this.radioIsFocus = true;
21
+ this.focusedOn.emit();
22
+ };
23
+ this.handleFocusOut = () => {
24
+ if (this.disabled)
25
+ return;
26
+ this.radioIsFocus = false;
27
+ this.focusedOut.emit();
28
+ };
29
+ this.handleClick = () => {
30
+ if (this.disabled)
31
+ return;
32
+ this.checked = !this.checked;
33
+ this.valueChanged.emit(this.checked);
34
+ };
35
+ }
36
+ render() {
37
+ return (h(Host, { key: '5e6d32905685f79fb6a56bb22fbe457eec04874e' }, h("div", { key: '7f3dcb3f71edcedbc54565dcaf60c90a2ea9e1a2', class: { 'w-fit': true, 'flex items-center': !!this.label }, onClick: this.handleClick }, h("div", { key: '1e1679902289efaacab3123b17518fcc47102b0f', class: {
38
+ 'w-[30px] h-[30px] rounded-full flex justify-center items-center outline-none': true,
39
+ 'active:bg-states-empty-bg-pressed cursor-pointer': !this.disabled,
40
+ 'bg-brand-primary': this.checked,
41
+ 'border border-line-input': !this.checked,
42
+ 'container-focus': this.radioIsFocus,
43
+ 'bg-states-bg-disabled border-2 border-states-bg-disabled cursor-not-allowed': this.disabled,
44
+ }, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleFocusOut }, this.checked && h("div", { key: '432be610a630997a939e3695a053a5fade13e109', class: "bg-transparent border-2 border-negative-negative-1 w-[18px] h-[18px] rounded-full" })), this.label && h("label", { key: '193035c8d746f073ab4ebfec2cca7fab87fe5dac', class: { 'ml-16 text-base text-text-primary': true, 'cursor-pointer': !this.disabled } }, this.label))));
45
+ }
46
+ static get is() { return "sula-radio-button"; }
47
+ static get encapsulation() { return "shadow"; }
48
+ static get originalStyleUrls() {
49
+ return {
50
+ "$": ["sula-radio-button.scss"]
51
+ };
52
+ }
53
+ static get styleUrls() {
54
+ return {
55
+ "$": ["sula-radio-button.css"]
56
+ };
57
+ }
58
+ static get properties() {
59
+ return {
60
+ "checked": {
61
+ "type": "boolean",
62
+ "attribute": "checked",
63
+ "mutable": true,
64
+ "complexType": {
65
+ "original": "boolean",
66
+ "resolved": "boolean",
67
+ "references": {}
68
+ },
69
+ "required": false,
70
+ "optional": false,
71
+ "docs": {
72
+ "tags": [],
73
+ "text": "Is radio button checked"
74
+ },
75
+ "getter": false,
76
+ "setter": false,
77
+ "reflect": false,
78
+ "defaultValue": "false"
79
+ },
80
+ "label": {
81
+ "type": "string",
82
+ "attribute": "label",
83
+ "mutable": true,
84
+ "complexType": {
85
+ "original": "string",
86
+ "resolved": "string",
87
+ "references": {}
88
+ },
89
+ "required": false,
90
+ "optional": false,
91
+ "docs": {
92
+ "tags": [],
93
+ "text": "Radio button label"
94
+ },
95
+ "getter": false,
96
+ "setter": false,
97
+ "reflect": false,
98
+ "defaultValue": "''"
99
+ },
100
+ "disabled": {
101
+ "type": "boolean",
102
+ "attribute": "disabled",
103
+ "mutable": true,
104
+ "complexType": {
105
+ "original": "boolean",
106
+ "resolved": "boolean",
107
+ "references": {}
108
+ },
109
+ "required": false,
110
+ "optional": false,
111
+ "docs": {
112
+ "tags": [],
113
+ "text": "Is radio button disabled"
114
+ },
115
+ "getter": false,
116
+ "setter": false,
117
+ "reflect": false,
118
+ "defaultValue": "false"
119
+ }
120
+ };
121
+ }
122
+ static get states() {
123
+ return {
124
+ "radioIsFocus": {}
125
+ };
126
+ }
127
+ static get events() {
128
+ return [{
129
+ "method": "valueChanged",
130
+ "name": "valueChanged",
131
+ "bubbles": true,
132
+ "cancelable": true,
133
+ "composed": true,
134
+ "docs": {
135
+ "tags": [],
136
+ "text": "Event emitted when radio button value changes."
137
+ },
138
+ "complexType": {
139
+ "original": "boolean",
140
+ "resolved": "boolean",
141
+ "references": {}
142
+ }
143
+ }, {
144
+ "method": "focusedOn",
145
+ "name": "focusedOn",
146
+ "bubbles": true,
147
+ "cancelable": true,
148
+ "composed": true,
149
+ "docs": {
150
+ "tags": [],
151
+ "text": "Event emitted when radio button is focused."
152
+ },
153
+ "complexType": {
154
+ "original": "void",
155
+ "resolved": "void",
156
+ "references": {}
157
+ }
158
+ }, {
159
+ "method": "focusedOut",
160
+ "name": "focusedOut",
161
+ "bubbles": true,
162
+ "cancelable": true,
163
+ "composed": true,
164
+ "docs": {
165
+ "tags": [],
166
+ "text": "Event emitted when radio button is focused out."
167
+ },
168
+ "complexType": {
169
+ "original": "void",
170
+ "resolved": "void",
171
+ "references": {}
172
+ }
173
+ }];
174
+ }
175
+ }
176
+ //# sourceMappingURL=sula-radio-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sula-radio-button.js","sourceRoot":"","sources":["../../../src/components/sula-radio-button/sula-radio-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOrF,MAAM,OAAO,eAAe;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C7F,EACD,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,MAAM,EAAE,IAAI,CAAC,cAAc,IAE1B,IAAI,CAAC,OAAO,IAAI,4DAAK,KAAK,EAAC,mFAAmF,GAAO,CAClH;gBACL,IAAI,CAAC,KAAK,IAAI,8DAAO,KAAK,EAAE,EAAE,mCAAmC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAG,IAAI,CAAC,KAAK,CAAS,CAC9H,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Host, Prop, State, h } from '@stencil/core';\n\n@Component({\n tag: 'sula-radio-button',\n styleUrl: 'sula-radio-button.scss',\n shadow: true,\n})\nexport class SulaRadioButton {\n /**\n * Is radio button checked\n */\n @Prop({ mutable: true }) checked: boolean = false;\n\n /**\n * Radio button label\n */\n @Prop({ mutable: true }) label: string = '';\n\n /**\n * Is radio button disabled\n */\n @Prop({ mutable: true }) disabled: boolean = false;\n\n /**\n * Event emitted when radio button value changes.\n */\n @Event()\n valueChanged: EventEmitter<boolean>;\n\n /**\n * Event emitted when radio button is focused.\n */\n @Event()\n focusedOn: EventEmitter<void>;\n\n /**\n * Event emitted when radio button is focused out.\n */\n @Event()\n focusedOut: EventEmitter<void>;\n\n @State()\n radioIsFocus: boolean = false;\n\n handleFocus = () => {\n if (this.disabled) return;\n\n this.radioIsFocus = true;\n this.focusedOn.emit();\n };\n\n handleFocusOut = () => {\n if (this.disabled) return;\n\n this.radioIsFocus = false;\n this.focusedOut.emit();\n };\n\n handleClick = () => {\n if (this.disabled) return;\n this.checked = !this.checked;\n this.valueChanged.emit(this.checked);\n };\n\n render() {\n return (\n <Host>\n <div class={{ 'w-fit': true, 'flex items-center': !!this.label }} onClick={this.handleClick}>\n <div\n class={{\n 'w-[30px] h-[30px] rounded-full flex justify-center items-center outline-none': true,\n 'active:bg-states-empty-bg-pressed cursor-pointer': !this.disabled,\n 'bg-brand-primary': this.checked,\n 'border border-line-input': !this.checked,\n 'container-focus': this.radioIsFocus,\n 'bg-states-bg-disabled border-2 border-states-bg-disabled cursor-not-allowed': this.disabled,\n }}\n tabIndex={0}\n onFocus={this.handleFocus}\n onBlur={this.handleFocusOut}\n >\n {this.checked && <div class=\"bg-transparent border-2 border-negative-negative-1 w-[18px] h-[18px] rounded-full\"></div>}\n </div>\n {this.label && <label class={{ 'ml-16 text-base text-text-primary': true, 'cursor-pointer': !this.disabled }}>{this.label}</label>}\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,123 @@
1
+ export default {
2
+ title: 'Components/sula-radio-button',
3
+ tags: ['autodocs'],
4
+ argTypes: {
5
+ label: {
6
+ control: 'text',
7
+ defaultValue: 'Label',
8
+ description: 'The radio button label',
9
+ type: {
10
+ required: false,
11
+ },
12
+ },
13
+ disabled: {
14
+ control: 'boolean',
15
+ defaultValue: false,
16
+ description: 'Whether the radio button is disabled',
17
+ type: {
18
+ required: false,
19
+ },
20
+ },
21
+ checked: {
22
+ control: 'boolean',
23
+ defaultValue: false,
24
+ description: 'Whether the radio button is checked',
25
+ type: {
26
+ required: false,
27
+ },
28
+ },
29
+ valueChanged: {
30
+ action: 'valueChanged',
31
+ description: 'Event emitted when radio button value changes',
32
+ },
33
+ focusedOn: {
34
+ action: 'focusedOn',
35
+ description: 'Event emitted when radio button is focused',
36
+ },
37
+ focusedOut: {
38
+ action: 'focusedOut',
39
+ description: 'Event emitted when radio button loses focus',
40
+ },
41
+ },
42
+ parameters: {
43
+ docs: {
44
+ description: {
45
+ component: 'O componente Radio Button Sula Design System é utilizado para que o usuário possa escolher uma única opção na interface.',
46
+ },
47
+ },
48
+ },
49
+ };
50
+ const Template = args => {
51
+ const container = document.createElement('div');
52
+ container.style.margin = '20px';
53
+ container.style.display = 'flex';
54
+ container.style.flexDirection = 'column';
55
+ container.style.gap = '20px';
56
+ const el = document.createElement('sula-radio-button');
57
+ if (args.label)
58
+ el.setAttribute('label', args.label);
59
+ el.setAttribute('disabled', args.disabled.toString());
60
+ el.setAttribute('checked', args.checked.toString());
61
+ el.addEventListener('valueChanged', args.valueChanged);
62
+ el.addEventListener('focusedOn', args.focusedOn);
63
+ el.addEventListener('focusedOut', args.focusedOut);
64
+ container.appendChild(el);
65
+ return container;
66
+ };
67
+ export const Default = Template.bind({});
68
+ Default.args = {
69
+ label: 'Opção padrão',
70
+ disabled: false,
71
+ checked: false,
72
+ };
73
+ export const DefaultChecked = Template.bind({});
74
+ DefaultChecked.args = Object.assign(Object.assign({}, Default.args), { checked: true });
75
+ export const DefaultDisabled = Template.bind({});
76
+ DefaultDisabled.args = Object.assign(Object.assign({}, Default.args), { disabled: true });
77
+ export const DefaultCheckedDisabled = Template.bind({});
78
+ DefaultCheckedDisabled.args = Object.assign(Object.assign({}, Default.args), { checked: true, disabled: true });
79
+ export const DefaultWithoutLabel = Template.bind({});
80
+ DefaultWithoutLabel.args = Object.assign(Object.assign({}, Default.args), { label: '' });
81
+ const RadioGroupTemplate = args => {
82
+ const container = document.createElement('div');
83
+ container.style.margin = '20px';
84
+ container.style.display = 'flex';
85
+ container.style.flexDirection = 'column';
86
+ container.style.gap = '12px';
87
+ const title = document.createElement('h3');
88
+ title.textContent = 'Selecione uma opção:';
89
+ title.style.marginBottom = '12px';
90
+ title.style.fontSize = '16px';
91
+ title.style.fontWeight = 'bold';
92
+ container.appendChild(title);
93
+ const options = ['Opção 1', 'Opção 2', 'Opção 3'];
94
+ options.forEach((option, index) => {
95
+ const el = document.createElement('sula-radio-button');
96
+ el.setAttribute('label', option);
97
+ el.setAttribute('disabled', args.disabled.toString());
98
+ el.setAttribute('checked', (index === 0).toString());
99
+ el.addEventListener('valueChanged', event => {
100
+ if (event.detail) {
101
+ container.querySelectorAll('sula-radio-button').forEach(radio => {
102
+ if (radio !== el) {
103
+ radio.setAttribute('checked', 'false');
104
+ }
105
+ });
106
+ }
107
+ args.valueChanged(event);
108
+ });
109
+ el.addEventListener('focusedOn', args.focusedOn);
110
+ el.addEventListener('focusedOut', args.focusedOut);
111
+ container.appendChild(el);
112
+ });
113
+ return container;
114
+ };
115
+ export const RadioGroup = RadioGroupTemplate.bind({});
116
+ RadioGroup.args = {
117
+ disabled: false,
118
+ };
119
+ export const RadioGroupDisabled = RadioGroupTemplate.bind({});
120
+ RadioGroupDisabled.args = {
121
+ disabled: true,
122
+ };
123
+ //# sourceMappingURL=sula-radio-button.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sula-radio-button.stories.js","sourceRoot":"","sources":["../../../src/components/sula-radio-button/sula-radio-button.stories.tsx"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,8BAA8B;IACrC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,OAAO;YACrB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,cAAc;YACtB,WAAW,EAAE,+CAA+C;SAC7D;QACD,SAAS,EAAE;YACT,MAAM,EAAE,WAAW;YACnB,WAAW,EAAE,4CAA4C;SAC1D;QACD,U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CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAEnD,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,UAAU,CAAC,IAAI,GAAG;IAChB,QAAQ,EAAE,KAAK;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9D,kBAAkB,CAAC,IAAI,GAAG;IACxB,QAAQ,EAAE,IAAI;CACf,CAAC","sourcesContent":["export default {\n title: 'Components/sula-radio-button',\n tags: ['autodocs'],\n argTypes: {\n label: {\n control: 'text',\n defaultValue: 'Label',\n description: 'The radio button label',\n type: {\n required: false,\n },\n },\n disabled: {\n control: 'boolean',\n defaultValue: false,\n description: 'Whether the radio button is disabled',\n type: {\n required: false,\n },\n },\n checked: {\n control: 'boolean',\n defaultValue: false,\n description: 'Whether the radio button is checked',\n type: {\n required: false,\n },\n },\n valueChanged: {\n action: 'valueChanged',\n description: 'Event emitted when radio button value changes',\n },\n focusedOn: {\n action: 'focusedOn',\n description: 'Event emitted when radio button is focused',\n },\n focusedOut: {\n action: 'focusedOut',\n description: 'Event emitted when radio button loses focus',\n },\n },\n parameters: {\n docs: {\n description: {\n component: 'O componente Radio Button Sula Design System é utilizado para que o usuário possa escolher uma única opção na interface.',\n },\n },\n },\n};\n\nconst Template = args => {\n const container = document.createElement('div');\n container.style.margin = '20px';\n container.style.display = 'flex';\n container.style.flexDirection = 'column';\n container.style.gap = '20px';\n\n const el = document.createElement('sula-radio-button');\n\n if (args.label) el.setAttribute('label', args.label);\n el.setAttribute('disabled', args.disabled.toString());\n el.setAttribute('checked', args.checked.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 label: 'Opção padrão',\n disabled: false,\n checked: false,\n};\n\nexport const DefaultChecked = Template.bind({});\nDefaultChecked.args = {\n ...Default.args,\n checked: true,\n};\n\nexport const DefaultDisabled = Template.bind({});\nDefaultDisabled.args = {\n ...Default.args,\n disabled: true,\n};\n\nexport const DefaultCheckedDisabled = Template.bind({});\nDefaultCheckedDisabled.args = {\n ...Default.args,\n checked: true,\n disabled: true,\n};\n\nexport const DefaultWithoutLabel = Template.bind({});\nDefaultWithoutLabel.args = {\n ...Default.args,\n label: '',\n};\n\nconst RadioGroupTemplate = args => {\n const container = document.createElement('div');\n container.style.margin = '20px';\n container.style.display = 'flex';\n container.style.flexDirection = 'column';\n container.style.gap = '12px';\n\n const title = document.createElement('h3');\n title.textContent = 'Selecione uma opção:';\n title.style.marginBottom = '12px';\n title.style.fontSize = '16px';\n title.style.fontWeight = 'bold';\n container.appendChild(title);\n\n const options = ['Opção 1', 'Opção 2', 'Opção 3'];\n\n options.forEach((option, index) => {\n const el = document.createElement('sula-radio-button');\n el.setAttribute('label', option);\n el.setAttribute('disabled', args.disabled.toString());\n el.setAttribute('checked', (index === 0).toString());\n\n el.addEventListener('valueChanged', event => {\n if (event.detail) {\n container.querySelectorAll('sula-radio-button').forEach(radio => {\n if (radio !== el) {\n radio.setAttribute('checked', 'false');\n }\n });\n }\n args.valueChanged(event);\n });\n\n el.addEventListener('focusedOn', args.focusedOn);\n el.addEventListener('focusedOut', args.focusedOut);\n\n container.appendChild(el);\n });\n\n return container;\n};\n\nexport const RadioGroup = RadioGroupTemplate.bind({});\nRadioGroup.args = {\n disabled: false,\n};\n\nexport const RadioGroupDisabled = RadioGroupTemplate.bind({});\nRadioGroupDisabled.args = {\n disabled: true,\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}.relative{position:relative}.block{display:block}.hidden{display:none}.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}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter}.ease-in-out,.transition{transition-timing-function:cubic-bezier(.4,0,.2,1)}:host{display:block}.container-focus,.switch-focus{outline:2px solid var(--color-feedback-informational)!important;outline-offset:2px!important}.switch-container{cursor:pointer;overflow:hidden;position:relative;transition:background-color .3s ease-in-out}.switch-thumb{position:relative;transition:transform .3s ease-in-out}.switch-on .switch-thumb{animation:slideFromLeft .3s ease-in-out forwards}.switch-off .switch-thumb{animation:slideFromRight .3s ease-in-out forwards}.switch-indicator{transition:width .3s ease-in-out,height .3s ease-in-out,background-color .3s ease-in-out}.switch-indicator-on{animation:growIndicator .3s ease-in-out forwards}.switch-indicator-off{animation:shrinkIndicator .3s ease-in-out forwards}@keyframes slideFromLeft{0%{opacity:0;transform:translateX(-100%)}50%{opacity:.7}to{opacity:1;transform:translateX(0)}}@keyframes slideFromRight{0%{opacity:0;transform:translateX(100%)}50%{opacity:.7}to{opacity:1;transform:translateX(0)}}@keyframes growIndicator{0%{height:4px;opacity:.5;width:10px}to{height:12px;opacity:1;width:12px}}@keyframes shrinkIndicator{0%{height:12px;opacity:.5;width:12px}to{height:4px;opacity:1;width:10px}}: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}.mr-16{margin-right:1rem}.flex{display:flex}.h-12{height:.75rem}.h-32{height:2rem}.h-4{height:.25rem}.h-\[28px\]{height:28px}.min-h-\[85px\]{min-height:85px}.w-12{width:.75rem}.w-56{width:3.5rem}.w-\[10px\]{width:10px}.w-\[280px\]{width:280px}.w-\[28px\]{width:28px}.flex-1{flex:1 1 0%}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-x-12>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.overflow-hidden{overflow:hidden}.break-words{overflow-wrap:break-word}.rounded-full{border-radius:9999px}.rounded-md{border-radius:1.25rem}.rounded-xxl{border-radius:18.75rem}.bg-brand-primary{background-color:var(--color-brand-primary)}.bg-negative-negative-1{background-color:var(--color-negative-negative-1)}.bg-neutral-neutral-3{background-color:var(--color-neutral-neutral-3)}.bg-neutral-neutral-4{background-color:var(--color-neutral-neutral-4)}.bg-states-bg-disabled{background-color:var(--color-states-bg-disabled)}.bg-surface-on-body{background-color:var(--color-surface-on-body)}.p-2{padding:.125rem}.px-24{padding-left:1.5rem;padding-right:1.5rem}.py-16{padding-bottom:1rem;padding-top:1rem}.text-base{font-size:1rem;line-height:1.5rem}.font-bold{font-weight:700}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.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)}.shadow,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.hover\:bg-states-empty-bg-hover:hover{background-color:var(--color-states-empty-bg-hover)}.active\:bg-states-empty-bg-pressed:active{background-color:var(--color-states-empty-bg-pressed)}
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}.relative{position:relative}.block{display:block}.hidden{display:none}.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}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter}.ease-in-out,.transition{transition-timing-function:cubic-bezier(.4,0,.2,1)}:host{display:block}.container-focus,.switch-focus{outline:2px solid var(--color-feedback-informational)!important;outline-offset:2px!important}.switch-container{cursor:pointer;overflow:hidden;position:relative;transition:background-color .3s ease-in-out}.switch-thumb{position:relative;transition:transform .3s ease-in-out}.switch-on .switch-thumb{animation:slideFromLeft .3s ease-in-out forwards}.switch-off .switch-thumb{animation:slideFromRight .3s ease-in-out forwards}.switch-indicator{transition:width .3s ease-in-out,height .3s ease-in-out,background-color .3s ease-in-out}.switch-indicator-on{animation:growIndicator .3s ease-in-out forwards}.switch-indicator-off{animation:shrinkIndicator .3s ease-in-out forwards}@keyframes slideFromLeft{0%{opacity:0;transform:translateX(-100%)}50%{opacity:.7}to{opacity:1;transform:translateX(0)}}@keyframes slideFromRight{0%{opacity:0;transform:translateX(100%)}50%{opacity:.7}to{opacity:1;transform:translateX(0)}}@keyframes growIndicator{0%{height:4px;opacity:.5;width:10px}to{height:12px;opacity:1;width:12px}}@keyframes shrinkIndicator{0%{height:12px;opacity:.5;width:12px}to{height:4px;opacity:1;width:10px}}: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}.mr-16{margin-right:1rem}.flex{display:flex}.h-12{height:.75rem}.h-32{height:2rem}.h-4{height:.25rem}.h-\[28px\]{height:28px}.min-h-\[85px\]{min-height:85px}.w-12{width:.75rem}.w-56{width:3.5rem}.w-\[10px\]{width:10px}.w-\[280px\]{width:280px}.w-\[28px\]{width:28px}.flex-1{flex:1 1 0%}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-x-12>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.overflow-hidden{overflow:hidden}.break-words{overflow-wrap:break-word}.rounded-full{border-radius:9999px}.rounded-md{border-radius:1.25rem}.rounded-xxl{border-radius:18.75rem}.bg-brand-primary{background-color:var(--color-brand-primary)}.bg-negative-negative-1{background-color:var(--color-negative-negative-1)}.bg-neutral-neutral-3{background-color:var(--color-neutral-neutral-3)}.bg-neutral-neutral-4{background-color:var(--color-neutral-neutral-4)}.bg-states-bg-disabled{background-color:var(--color-states-bg-disabled)}.bg-surface-on-body{background-color:var(--color-surface-on-body)}.p-2{padding:.125rem}.px-24{padding-left:1.5rem;padding-right:1.5rem}.py-16{padding-bottom:1rem;padding-top:1rem}.text-base{font-size:1rem;line-height:1.5rem}.font-bold{font-weight:700}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.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)}.shadow,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.hover\:bg-states-empty-bg-hover:hover{background-color:var(--color-states-empty-bg-hover)}.active\:bg-states-empty-bg-pressed:active{background-color:var(--color-states-empty-bg-pressed)}
@@ -35,23 +35,23 @@ export class SulaSwitch {
35
35
  };
36
36
  }
37
37
  render() {
38
- return (h(Host, { key: '5fba5bf4066f179cd147357f6a80d7c1513723e9' }, h("div", { key: '359784f411172191cd1454095d287e5c6df4a725', class: {
38
+ return (h(Host, { key: '8c4e5a433806b881586f923d9c2a504bdce6746d' }, h("div", { key: '22d49911604bac2bf3da72635365dbf2a6f37dd6', class: {
39
39
  'outline-none': true,
40
40
  'flex items-center space-x-12': !!this.label && this.type === SulaSwitchType.Default,
41
41
  'flex items-center justify-between bg-surface-on-body rounded-md w-[280px] min-h-[85px] px-24 py-16': this.type === SulaSwitchType.List,
42
42
  'hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed cursor-pointer': this.type === SulaSwitchType.List && !this.disabled,
43
43
  'container-focus': this.isFocus && this.type === SulaSwitchType.List,
44
- }, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleClick, tabIndex: 0 }, this.type === SulaSwitchType.List && (h("div", { key: '7d9a24510c3a53f36770d3e082b426a3b146bf2b', class: "flex flex-col flex-1 mr-16 overflow-hidden" }, !!this.label && h("label", { key: 'f07f3ac2185d7fd2620dd4b81cdb84308432a5f0', class: "text-text-primary font-bold text-base cursor-pointer break-words" }, this.label), !!this.subTitle && h("span", { key: '06e91e4e9d30ffd8d5f401d0a3cc38d5ade9e86a', class: "text-text-secondary text-base break-words" }, this.subTitle))), h("div", { key: '540ec3811c7a16d4ff7d6aa00b22b4cd81efb3ce', class: {
44
+ }, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleClick, tabIndex: 0 }, this.type === SulaSwitchType.List && (h("div", { key: '7076e6b15b0c48d1f1a9e7a27eaeacc2504eaaf2', class: "flex flex-col flex-1 mr-16 overflow-hidden" }, !!this.label && h("label", { key: 'c669a1d88a26e897a1b8bcbdb96f6060d02e9fcb', class: "text-text-primary font-bold text-base cursor-pointer break-words" }, this.label), !!this.subTitle && h("span", { key: 'c428df447fd46a4639512065672923b0ef52c5a2', class: "text-text-secondary text-base break-words" }, this.subTitle))), h("div", { key: '01aab6ae10a1ebc05dcfd973045777ab31395c84', class: {
45
45
  'switch-container w-56 h-32 flex items-center rounded-xxl p-2 outline-none': true,
46
46
  'switch-on bg-brand-primary justify-end': this.active,
47
47
  'switch-off bg-neutral-neutral-3 justify-start': !this.active,
48
48
  'cursor-not-allowed bg-states-bg-disabled': this.disabled,
49
49
  'switch-focus': this.isFocus && this.type === SulaSwitchType.Default,
50
- }, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '72643cf70fed83ce49b2528db7d4b516d1b1cb38', class: {
50
+ }, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '4c7e11b5e66699eef10cdfc1790133da5fe2512f', class: {
51
51
  'switch-thumb w-[28px] h-[28px] rounded-full flex justify-center items-center': true,
52
52
  'bg-negative-negative-1': !this.disabled,
53
53
  'bg-states-bg-disabled shadow-md': this.disabled,
54
- } }, h("div", { key: 'c891324c8cdb8532f7ed7224c7d9419f2e2f3dc1', class: {
54
+ } }, h("div", { key: 'dc4b278d4bae9c541d132ac0637155200c32e5b0', class: {
55
55
  'switch-indicator rounded-full': true,
56
56
  'switch-indicator-on w-12 h-12 bg-brand-primary': this.active,
57
57
  'switch-indicator-off w-[10px] h-4 bg-neutral-neutral-4': !this.active,
@@ -74,6 +74,7 @@ export class SulaSwitch {
74
74
  return {
75
75
  "type": {
76
76
  "type": "string",
77
+ "attribute": "type",
77
78
  "mutable": true,
78
79
  "complexType": {
79
80
  "original": "SulaSwitchType",
@@ -94,12 +95,12 @@ export class SulaSwitch {
94
95
  },
95
96
  "getter": false,
96
97
  "setter": false,
97
- "attribute": "type",
98
98
  "reflect": false,
99
99
  "defaultValue": "SulaSwitchType.Default"
100
100
  },
101
101
  "active": {
102
102
  "type": "boolean",
103
+ "attribute": "active",
103
104
  "mutable": true,
104
105
  "complexType": {
105
106
  "original": "boolean",
@@ -114,12 +115,12 @@ export class SulaSwitch {
114
115
  },
115
116
  "getter": false,
116
117
  "setter": false,
117
- "attribute": "active",
118
118
  "reflect": false,
119
119
  "defaultValue": "false"
120
120
  },
121
121
  "disabled": {
122
122
  "type": "boolean",
123
+ "attribute": "disabled",
123
124
  "mutable": true,
124
125
  "complexType": {
125
126
  "original": "boolean",
@@ -134,12 +135,12 @@ export class SulaSwitch {
134
135
  },
135
136
  "getter": false,
136
137
  "setter": false,
137
- "attribute": "disabled",
138
138
  "reflect": false,
139
139
  "defaultValue": "false"
140
140
  },
141
141
  "label": {
142
142
  "type": "string",
143
+ "attribute": "label",
143
144
  "mutable": true,
144
145
  "complexType": {
145
146
  "original": "string",
@@ -154,11 +155,11 @@ export class SulaSwitch {
154
155
  },
155
156
  "getter": false,
156
157
  "setter": false,
157
- "attribute": "label",
158
158
  "reflect": false
159
159
  },
160
160
  "subTitle": {
161
161
  "type": "string",
162
+ "attribute": "sub-title",
162
163
  "mutable": true,
163
164
  "complexType": {
164
165
  "original": "string",
@@ -173,7 +174,6 @@ export class SulaSwitch {
173
174
  },
174
175
  "getter": false,
175
176
  "setter": false,
176
- "attribute": "sub-title",
177
177
  "reflect": false
178
178
  }
179
179
  };
@@ -57,6 +57,13 @@ export default {
57
57
  description: 'Event emitted when switch loses focus',
58
58
  },
59
59
  },
60
+ parameters: {
61
+ docs: {
62
+ description: {
63
+ component: 'O componente Switch Sula Design System é um componente que permite ao usuário alternar entre os estados de on (ativo) e off (inativo) em uma interface.',
64
+ },
65
+ },
66
+ },
60
67
  };
61
68
  const Template = args => {
62
69
  const container = document.createElement('div');
@@ -1 +1 @@
1
- {"version":3,"file":"sula-switch.stories.js","sourceRoot":"","sources":["../../../src/components/sula-switch/sula-switch.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,eAAe;IACb,KAAK,EAAE,wBAAwB;IAC/B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC;YACtC,YAAY,EAAE,cAAc,CAAC,OAAO;YACpC,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,MAAM,EAAE;YACN,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,OAAO;YACrB,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,mDAAmD;YAChE,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,cAAc;YACtB,WAAW,EAAE,yCAAyC;SACvD;QACD,SAAS,EAAE;YACT,MAAM,EAAE,WAAW;YACnB,WAAW,EAAE,sCAAsC;SACpD;QACD,UAAU,EAAE;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C,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,mCACV,IAAI,CAAC,IAAI,KACZ,MAAM,EAAE,IAAI,GACb,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9C,YAAY,CAAC,IAAI,mCACZ,IAAI,CAAC,IAAI,KACZ,QAAQ,EAAE,IAAI,GACf,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,kBAAkB,CAAC,IAAI,mCAClB,IAAI,CAAC,IAAI,KACZ,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,IAAI,GACf,CAAC","sourcesContent":["import { SulaSwitchType } from './model/sula-switch.model';\n\nexport default {\n title: 'Components/sula-switch',\n tags: ['autodocs'],\n argTypes: {\n type: {\n control: { type: 'select' },\n options: Object.values(SulaSwitchType),\n defaultValue: SulaSwitchType.Default,\n description: 'The switch type',\n type: {\n required: false,\n },\n },\n active: {\n control: 'boolean',\n defaultValue: false,\n description: 'Whether the switch is active',\n type: {\n required: false,\n },\n },\n disabled: {\n control: 'boolean',\n defaultValue: false,\n description: 'Whether the switch is disabled',\n type: {\n required: false,\n },\n },\n label: {\n control: 'text',\n defaultValue: 'Label',\n description: 'The switch label',\n type: {\n required: false,\n },\n },\n subTitle: {\n control: 'text',\n defaultValue: '',\n description: 'The switch subtitle (available when type is List)',\n type: {\n required: false,\n },\n },\n valueChanged: {\n action: 'valueChanged',\n description: 'Event emitted when switch value changes',\n },\n focusedOn: {\n action: 'focusedOn',\n description: 'Event emitted when switch is focused',\n },\n focusedOut: {\n action: 'focusedOut',\n description: 'Event emitted when switch loses focus',\n },\n },\n};\n\nconst Template = args => {\n const container = document.createElement('div');\n container.style.margin = '20px';\n container.style.display = 'flex';\n container.style.flexDirection = 'column';\n container.style.gap = '20px';\n\n const el = document.createElement('sula-switch');\n\n el.setAttribute('type', args.type);\n if (args.label) el.setAttribute('label', args.label);\n if (args.subTitle) el.setAttribute('sub-title', args.subTitle);\n el.setAttribute('disabled', args.disabled.toString());\n el.setAttribute('active', args.active.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 type: SulaSwitchType.Default,\n label: 'Ativar notificações',\n subTitle: '',\n disabled: false,\n active: false,\n};\n\nexport const DefaultActive = Template.bind({});\nDefaultActive.args = {\n ...Default.args,\n active: true,\n};\n\nexport const DefaultDisabled = Template.bind({});\nDefaultDisabled.args = {\n ...Default.args,\n disabled: true,\n};\n\nexport const DefaultActiveDisabled = Template.bind({});\nDefaultActiveDisabled.args = {\n ...Default.args,\n active: true,\n disabled: true,\n};\n\nexport const DefaultWithoutLabel = Template.bind({});\nDefaultWithoutLabel.args = {\n ...Default.args,\n label: '',\n};\n\nexport const List = Template.bind({});\nList.args = {\n type: SulaSwitchType.List,\n label: 'Modo escuro',\n subTitle: 'Alterar para tema escuro da aplicação',\n disabled: false,\n active: false,\n};\n\nexport const ListActive = Template.bind({});\nListActive.args = {\n ...List.args,\n active: true,\n};\n\nexport const ListDisabled = Template.bind({});\nListDisabled.args = {\n ...List.args,\n disabled: true,\n};\n\nexport const ListActiveDisabled = Template.bind({});\nListActiveDisabled.args = {\n ...List.args,\n active: true,\n disabled: true,\n};\n"]}
1
+ {"version":3,"file":"sula-switch.stories.js","sourceRoot":"","sources":["../../../src/components/sula-switch/sula-switch.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,eAAe;IACb,KAAK,EAAE,wBAAwB;IAC/B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,IAAI,EAAE;Y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MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9C,YAAY,CAAC,IAAI,mCACZ,IAAI,CAAC,IAAI,KACZ,QAAQ,EAAE,IAAI,GACf,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,kBAAkB,CAAC,IAAI,mCAClB,IAAI,CAAC,IAAI,KACZ,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,IAAI,GACf,CAAC","sourcesContent":["import { SulaSwitchType } from './model/sula-switch.model';\n\nexport default {\n title: 'Components/sula-switch',\n tags: ['autodocs'],\n argTypes: {\n type: {\n control: { type: 'select' },\n options: Object.values(SulaSwitchType),\n defaultValue: SulaSwitchType.Default,\n description: 'The switch type',\n type: {\n required: false,\n },\n },\n active: {\n control: 'boolean',\n defaultValue: false,\n description: 'Whether the switch is active',\n type: {\n required: false,\n },\n },\n disabled: {\n control: 'boolean',\n defaultValue: false,\n description: 'Whether the switch is disabled',\n type: {\n required: false,\n },\n },\n label: {\n control: 'text',\n defaultValue: 'Label',\n description: 'The switch label',\n type: {\n required: false,\n },\n },\n subTitle: {\n control: 'text',\n defaultValue: '',\n description: 'The switch subtitle (available when type is List)',\n type: {\n required: false,\n },\n },\n valueChanged: {\n action: 'valueChanged',\n description: 'Event emitted when switch value changes',\n },\n focusedOn: {\n action: 'focusedOn',\n description: 'Event emitted when switch is focused',\n },\n focusedOut: {\n action: 'focusedOut',\n description: 'Event emitted when switch loses focus',\n },\n },\n parameters: {\n docs: {\n description: {\n component: 'O componente Switch Sula Design System é um componente que permite ao usuário alternar entre os estados de on (ativo) e off (inativo) em uma interface.',\n },\n },\n },\n};\n\nconst Template = args => {\n const container = document.createElement('div');\n container.style.margin = '20px';\n container.style.display = 'flex';\n container.style.flexDirection = 'column';\n container.style.gap = '20px';\n\n const el = document.createElement('sula-switch');\n\n el.setAttribute('type', args.type);\n if (args.label) el.setAttribute('label', args.label);\n if (args.subTitle) el.setAttribute('sub-title', args.subTitle);\n el.setAttribute('disabled', args.disabled.toString());\n el.setAttribute('active', args.active.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 type: SulaSwitchType.Default,\n label: 'Ativar notificações',\n subTitle: '',\n disabled: false,\n active: false,\n};\n\nexport const DefaultActive = Template.bind({});\nDefaultActive.args = {\n ...Default.args,\n active: true,\n};\n\nexport const DefaultDisabled = Template.bind({});\nDefaultDisabled.args = {\n ...Default.args,\n disabled: true,\n};\n\nexport const DefaultActiveDisabled = Template.bind({});\nDefaultActiveDisabled.args = {\n ...Default.args,\n active: true,\n disabled: true,\n};\n\nexport const DefaultWithoutLabel = Template.bind({});\nDefaultWithoutLabel.args = {\n ...Default.args,\n label: '',\n};\n\nexport const List = Template.bind({});\nList.args = {\n type: SulaSwitchType.List,\n label: 'Modo escuro',\n subTitle: 'Alterar para tema escuro da aplicação',\n disabled: false,\n active: false,\n};\n\nexport const ListActive = Template.bind({});\nListActive.args = {\n ...List.args,\n active: true,\n};\n\nexport const ListDisabled = Template.bind({});\nListDisabled.args = {\n ...List.args,\n disabled: true,\n};\n\nexport const ListActiveDisabled = Template.bind({});\nListActiveDisabled.args = {\n ...List.args,\n active: true,\n disabled: true,\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}:host{display:block}: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}.mr-8{margin-right:.5rem}.flex{display:flex}.w-fit{width:fit-content}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-full{border-radius:9999px}.rounded-xxl{border-radius:18.75rem}.border{border-width:1px}.border-line-general{border-color:var(--color-line-general)}.bg-brand-primary{background-color:var(--color-brand-primary)}.bg-feedback-alert{background-color:var(--color-feedback-alert)}.bg-feedback-error{background-color:var(--color-feedback-error)}.bg-feedback-informational{background-color:var(--color-feedback-informational)}.bg-feedback-success{background-color:var(--color-feedback-success)}.bg-negative-negative-1{background-color:var(--color-negative-negative-1)}.bg-opacity-body{background-color:var(--color-opacity-body)}.bg-opacity-on-body{background-color:var(--color-opacity-on-body)}.bg-surface-on-body-blue{background-color:var(--color-surface-on-body-blue)}.bg-surface-on-body-brand{background-color:var(--color-surface-on-body-brand)}.bg-transparent{background-color:transparent}.px-12{padding-left:.75rem;padding-right:.75rem}.px-2{padding-left:.125rem;padding-right:.125rem}.px-8{padding-left:.5rem;padding-right:.5rem}.py-1{padding-bottom:.0625rem;padding-top:.0625rem}.py-4{padding-bottom:.25rem;padding-top:.25rem}.py-8{padding-bottom:.5rem;padding-top:.5rem}.text-base{font-size:1rem;line-height:1.5rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.leading-4{line-height:1rem}.text-negative-negative-1{color:var(--color-negative-negative-1)}.text-negative-negative-2{color:var(--color-negative-negative-2)}.text-text-primary{color:var(--color-text-primary)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}
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}:host{display:block}: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}.mr-8{margin-right:.5rem}.flex{display:flex}.w-fit{width:fit-content}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-full{border-radius:9999px}.rounded-xxl{border-radius:18.75rem}.border{border-width:1px}.border-line-general{border-color:var(--color-line-general)}.bg-brand-primary{background-color:var(--color-brand-primary)}.bg-feedback-alert{background-color:var(--color-feedback-alert)}.bg-feedback-error{background-color:var(--color-feedback-error)}.bg-feedback-informational{background-color:var(--color-feedback-informational)}.bg-feedback-success{background-color:var(--color-feedback-success)}.bg-negative-negative-1{background-color:var(--color-negative-negative-1)}.bg-opacity-body{background-color:var(--color-opacity-body)}.bg-opacity-on-body{background-color:var(--color-opacity-on-body)}.bg-surface-on-body-blue{background-color:var(--color-surface-on-body-blue)}.bg-surface-on-body-brand{background-color:var(--color-surface-on-body-brand)}.bg-transparent{background-color:transparent}.px-12{padding-left:.75rem;padding-right:.75rem}.px-2{padding-left:.125rem;padding-right:.125rem}.px-8{padding-left:.5rem;padding-right:.5rem}.py-1{padding-bottom:.0625rem;padding-top:.0625rem}.py-4{padding-bottom:.25rem;padding-top:.25rem}.py-8{padding-bottom:.5rem;padding-top:.5rem}.text-base{font-size:1rem;line-height:1.5rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.leading-4{line-height:1rem}.text-negative-negative-1{color:var(--color-negative-negative-1)}.text-negative-negative-2{color:var(--color-negative-negative-2)}.text-text-primary{color:var(--color-text-primary)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}