@synergy-design-system/components 1.8.0 → 1.9.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 (230) hide show
  1. package/dist/chunks/{chunk.23HTU3YE.js → chunk.2EI3TNL7.js} +1 -16
  2. package/dist/chunks/chunk.2EI3TNL7.js.map +7 -0
  3. package/dist/chunks/{chunk.RSONAU45.js → chunk.2RF7KO5I.js} +1 -12
  4. package/dist/chunks/chunk.2RF7KO5I.js.map +7 -0
  5. package/dist/chunks/{chunk.WDX7XUUK.js → chunk.3DE5ARIC.js} +22 -2
  6. package/dist/chunks/chunk.3DE5ARIC.js.map +7 -0
  7. package/dist/chunks/{chunk.2IBWQADW.js → chunk.3O5WTWSN.js} +2 -2
  8. package/dist/chunks/{chunk.4CBN5LPQ.js → chunk.3STW62TA.js} +1 -12
  9. package/dist/chunks/chunk.3STW62TA.js.map +7 -0
  10. package/dist/chunks/{chunk.EKOK7YPB.js → chunk.4QS5IWYB.js} +1 -16
  11. package/dist/chunks/chunk.4QS5IWYB.js.map +7 -0
  12. package/dist/chunks/{chunk.6PWB7EUW.js → chunk.5BMNRZ7L.js} +2 -2
  13. package/dist/chunks/{chunk.A2WGLZOL.js → chunk.5CB3CVZ7.js} +2 -2
  14. package/dist/chunks/{chunk.UVYPEAQZ.js → chunk.5R3OVMH2.js} +23 -8
  15. package/dist/chunks/chunk.5R3OVMH2.js.map +7 -0
  16. package/dist/chunks/{chunk.MB3YZTYP.js → chunk.6MS3WNDW.js} +6 -5
  17. package/dist/chunks/chunk.6MS3WNDW.js.map +7 -0
  18. package/dist/chunks/{chunk.4ZURABYO.js → chunk.A7IIJ2LL.js} +1 -7
  19. package/dist/chunks/{chunk.O7USYXBT.js.map → chunk.A7IIJ2LL.js.map} +3 -3
  20. package/dist/chunks/{chunk.PGCXJ2PT.js → chunk.ACTJFDNK.js} +1 -12
  21. package/dist/chunks/chunk.ACTJFDNK.js.map +7 -0
  22. package/dist/chunks/{chunk.MNMITYTH.js → chunk.ADRKUQGR.js} +1 -12
  23. package/dist/chunks/chunk.ADRKUQGR.js.map +7 -0
  24. package/dist/chunks/{chunk.CUU2VBEZ.js → chunk.AJU6C4KC.js} +2 -2
  25. package/dist/chunks/{chunk.QHFGD6WW.js → chunk.BGHK4NQA.js} +1 -12
  26. package/dist/chunks/chunk.BGHK4NQA.js.map +7 -0
  27. package/dist/chunks/{chunk.HW5TASOL.js → chunk.BGKFRWWO.js} +3 -3
  28. package/dist/chunks/{chunk.XI6MSNHF.js → chunk.BJYVLDYR.js} +83 -5
  29. package/dist/chunks/chunk.BJYVLDYR.js.map +7 -0
  30. package/dist/chunks/{chunk.GZVDP7WZ.js → chunk.BLOH2ZNU.js} +137 -42
  31. package/dist/chunks/chunk.BLOH2ZNU.js.map +7 -0
  32. package/dist/chunks/{chunk.F3YEAZYJ.js → chunk.BTZX6ZFZ.js} +2 -2
  33. package/dist/chunks/{chunk.W6V7TPGK.js → chunk.CFIQXXMW.js} +1 -12
  34. package/dist/chunks/chunk.CFIQXXMW.js.map +7 -0
  35. package/dist/chunks/{chunk.K4ELZCXB.js → chunk.F4THECWA.js} +2 -2
  36. package/dist/chunks/{chunk.AWZ4FSAL.js → chunk.FSONLJTT.js} +15 -11
  37. package/dist/chunks/chunk.FSONLJTT.js.map +7 -0
  38. package/dist/chunks/{chunk.COKV3ZN7.js → chunk.FUNZW7ES.js} +2 -2
  39. package/dist/chunks/{chunk.4ZGN7AEC.js → chunk.GAPQVJGQ.js} +18 -10
  40. package/dist/chunks/chunk.GAPQVJGQ.js.map +7 -0
  41. package/dist/chunks/{chunk.GUQN6XL4.js → chunk.GBOII6N4.js} +10 -6
  42. package/dist/chunks/chunk.GBOII6N4.js.map +7 -0
  43. package/dist/chunks/{chunk.2KKPNUPU.js → chunk.GTSRMEPE.js} +2 -4
  44. package/dist/chunks/chunk.GTSRMEPE.js.map +7 -0
  45. package/dist/chunks/{chunk.KA7L2PMA.js → chunk.HF75YRVS.js} +20 -13
  46. package/dist/chunks/chunk.HF75YRVS.js.map +7 -0
  47. package/dist/chunks/{chunk.NWWHBSV7.js → chunk.IOPUYG6Q.js} +2 -2
  48. package/dist/chunks/{chunk.BGPAHVPK.js → chunk.IR2PZHC7.js} +2 -2
  49. package/dist/chunks/{chunk.HNRD7DBS.js → chunk.K3O2PP7X.js} +6 -5
  50. package/dist/chunks/chunk.K3O2PP7X.js.map +7 -0
  51. package/dist/chunks/{chunk.JBHQJWOB.js → chunk.KDDTDU4B.js} +71 -33
  52. package/dist/chunks/chunk.KDDTDU4B.js.map +7 -0
  53. package/dist/chunks/{chunk.Y4QKFZLK.js → chunk.KNXO2FGQ.js} +84 -46
  54. package/dist/chunks/chunk.KNXO2FGQ.js.map +7 -0
  55. package/dist/chunks/{chunk.JSO3PKB4.js → chunk.KUO3KJOC.js} +2 -2
  56. package/dist/chunks/{chunk.WP6T5CG2.js → chunk.LF2XSSHD.js} +2 -2
  57. package/dist/chunks/{chunk.2FN5DTS6.js → chunk.LJQ7LEPV.js} +1 -12
  58. package/dist/chunks/chunk.LJQ7LEPV.js.map +7 -0
  59. package/dist/chunks/{chunk.OJUBVHIK.js → chunk.LZE7OXKV.js} +2 -2
  60. package/dist/chunks/{chunk.RS4Z4KDT.js → chunk.MDZ22YWD.js} +10 -6
  61. package/dist/chunks/chunk.MDZ22YWD.js.map +7 -0
  62. package/dist/chunks/{chunk.JN7CLMQZ.js → chunk.MIMALEWP.js} +21 -7
  63. package/dist/chunks/chunk.MIMALEWP.js.map +7 -0
  64. package/dist/chunks/{chunk.DAROCSFO.js → chunk.O6AXKVFJ.js} +10 -6
  65. package/dist/chunks/chunk.O6AXKVFJ.js.map +7 -0
  66. package/dist/chunks/{chunk.N2I6HVX3.js → chunk.OSBC36KQ.js} +4 -9
  67. package/dist/chunks/chunk.OSBC36KQ.js.map +7 -0
  68. package/dist/chunks/{chunk.NV7W5R6V.js → chunk.PHSJD47V.js} +1 -12
  69. package/dist/chunks/chunk.PHSJD47V.js.map +7 -0
  70. package/dist/chunks/{chunk.JBYBQ5TQ.js → chunk.PKO6FEOM.js} +1 -12
  71. package/dist/chunks/chunk.PKO6FEOM.js.map +7 -0
  72. package/dist/chunks/{chunk.MRAXEK5D.js → chunk.PRZRH7SN.js} +2 -2
  73. package/dist/chunks/{chunk.35PHCFSV.js → chunk.PWMSNMDF.js} +9 -5
  74. package/dist/chunks/chunk.PWMSNMDF.js.map +7 -0
  75. package/dist/chunks/{chunk.6XU6OLZ3.js → chunk.QNQNR3RY.js} +1 -16
  76. package/dist/chunks/chunk.QNQNR3RY.js.map +7 -0
  77. package/dist/chunks/{chunk.2XCLA4MQ.js → chunk.QY6MKIMK.js} +2 -2
  78. package/dist/chunks/{chunk.RVFNEWM3.js → chunk.RMQZMRVP.js} +2 -2
  79. package/dist/chunks/{chunk.AJWDVZRI.js → chunk.RMZBSKRR.js} +45 -19
  80. package/dist/chunks/chunk.RMZBSKRR.js.map +7 -0
  81. package/dist/chunks/{chunk.OJ4KOC7R.js → chunk.SJMMPKWP.js} +1 -12
  82. package/dist/chunks/chunk.SJMMPKWP.js.map +7 -0
  83. package/dist/chunks/{chunk.2Z2GYRLO.js → chunk.SZCGMXW5.js} +2 -2
  84. package/dist/chunks/chunk.SZCGMXW5.js.map +7 -0
  85. package/dist/chunks/{chunk.JHXCBOUD.js → chunk.TTL762VF.js} +57 -60
  86. package/dist/chunks/chunk.TTL762VF.js.map +7 -0
  87. package/dist/chunks/{chunk.B75SET3J.js → chunk.UZFPGR6M.js} +6 -5
  88. package/dist/chunks/chunk.UZFPGR6M.js.map +7 -0
  89. package/dist/chunks/{chunk.NAAFLDZ3.js → chunk.VATYXV2O.js} +2 -2
  90. package/dist/chunks/{chunk.AFEABUNX.js → chunk.W5JK7V7K.js} +6 -1
  91. package/dist/chunks/chunk.W5JK7V7K.js.map +7 -0
  92. package/dist/chunks/{chunk.G66TSLVT.js → chunk.WC5SV4TV.js} +23 -13
  93. package/dist/chunks/chunk.WC5SV4TV.js.map +7 -0
  94. package/dist/chunks/{chunk.ERNEIORV.js → chunk.XEI5ZP7Y.js} +9 -5
  95. package/dist/chunks/chunk.XEI5ZP7Y.js.map +7 -0
  96. package/dist/chunks/{chunk.4I6M5V6O.js → chunk.XIUSSERX.js} +1 -16
  97. package/dist/chunks/chunk.XIUSSERX.js.map +7 -0
  98. package/dist/chunks/{chunk.5TFG753C.js → chunk.Y72MIUNI.js} +2 -2
  99. package/dist/chunks/{chunk.IKKMWFWH.js → chunk.ZIQXX272.js} +2 -2
  100. package/dist/chunks/{chunk.UG5FC6UD.js → chunk.ZT5DUKVA.js} +2 -2
  101. package/dist/components/button/button.component.js +9 -10
  102. package/dist/components/button/button.js +10 -11
  103. package/dist/components/button/button.styles.js +1 -3
  104. package/dist/components/button-group/button-group.component.js +3 -4
  105. package/dist/components/button-group/button-group.js +4 -5
  106. package/dist/components/button-group/button-group.styles.js +1 -2
  107. package/dist/components/checkbox/checkbox.component.d.ts +5 -0
  108. package/dist/components/checkbox/checkbox.component.js +8 -7
  109. package/dist/components/checkbox/checkbox.js +9 -8
  110. package/dist/components/checkbox/checkbox.styles.js +1 -3
  111. package/dist/components/divider/divider.component.js +3 -4
  112. package/dist/components/divider/divider.js +4 -5
  113. package/dist/components/divider/divider.styles.js +1 -3
  114. package/dist/components/drawer/drawer.component.d.ts +1 -0
  115. package/dist/components/drawer/drawer.component.js +9 -10
  116. package/dist/components/drawer/drawer.js +10 -11
  117. package/dist/components/drawer/drawer.styles.js +1 -3
  118. package/dist/components/icon/icon.component.js +3 -4
  119. package/dist/components/icon/icon.js +4 -5
  120. package/dist/components/icon/icon.styles.js +1 -3
  121. package/dist/components/icon-button/icon-button.component.js +5 -6
  122. package/dist/components/icon-button/icon-button.js +6 -7
  123. package/dist/components/icon-button/icon-button.styles.js +1 -3
  124. package/dist/components/input/input.component.js +10 -11
  125. package/dist/components/input/input.js +11 -12
  126. package/dist/components/input/input.styles.js +1 -4
  127. package/dist/components/optgroup/optgroup.component.js +4 -5
  128. package/dist/components/optgroup/optgroup.js +5 -6
  129. package/dist/components/option/option.component.js +5 -6
  130. package/dist/components/option/option.js +6 -7
  131. package/dist/components/option/option.styles.js +1 -3
  132. package/dist/components/popup/popup.component.d.ts +9 -0
  133. package/dist/components/popup/popup.component.js +3 -4
  134. package/dist/components/popup/popup.styles.js +1 -2
  135. package/dist/components/radio/radio.component.js +5 -6
  136. package/dist/components/radio/radio.js +6 -7
  137. package/dist/components/radio/radio.styles.js +1 -3
  138. package/dist/components/radio-button/radio-button.component.js +4 -6
  139. package/dist/components/radio-button/radio-button.js +5 -7
  140. package/dist/components/radio-button/radio-button.styles.js +2 -4
  141. package/dist/components/radio-group/radio-group.component.d.ts +1 -0
  142. package/dist/components/radio-group/radio-group.component.js +7 -8
  143. package/dist/components/radio-group/radio-group.js +8 -9
  144. package/dist/components/radio-group/radio-group.styles.js +1 -4
  145. package/dist/components/select/select.component.d.ts +1 -0
  146. package/dist/components/select/select.component.js +15 -16
  147. package/dist/components/select/select.js +16 -17
  148. package/dist/components/select/select.styles.js +1 -4
  149. package/dist/components/spinner/spinner.component.js +3 -4
  150. package/dist/components/spinner/spinner.styles.js +1 -2
  151. package/dist/components/switch/switch.component.d.ts +5 -0
  152. package/dist/components/switch/switch.component.js +7 -6
  153. package/dist/components/switch/switch.custom.styles.js +1 -1
  154. package/dist/components/switch/switch.js +8 -7
  155. package/dist/components/switch/switch.styles.js +1 -3
  156. package/dist/components/tag/tag.component.js +7 -8
  157. package/dist/components/tag/tag.js +8 -9
  158. package/dist/components/tag/tag.styles.js +1 -3
  159. package/dist/components/textarea/textarea.component.js +5 -6
  160. package/dist/components/textarea/textarea.js +6 -7
  161. package/dist/components/textarea/textarea.styles.js +1 -4
  162. package/dist/custom-elements.json +263 -147
  163. package/dist/internal/longpress.d.ts +2 -2
  164. package/dist/internal/modal.d.ts +3 -0
  165. package/dist/synergy.js +61 -62
  166. package/dist/utilities/form.js +2 -2
  167. package/dist/vscode.html-custom-data.json +36 -21
  168. package/package.json +2 -4
  169. package/dist/chunks/chunk.23HTU3YE.js.map +0 -7
  170. package/dist/chunks/chunk.2FN5DTS6.js.map +0 -7
  171. package/dist/chunks/chunk.2KKPNUPU.js.map +0 -7
  172. package/dist/chunks/chunk.2Z2GYRLO.js.map +0 -7
  173. package/dist/chunks/chunk.35PHCFSV.js.map +0 -7
  174. package/dist/chunks/chunk.4CBN5LPQ.js.map +0 -7
  175. package/dist/chunks/chunk.4I6M5V6O.js.map +0 -7
  176. package/dist/chunks/chunk.4ZGN7AEC.js.map +0 -7
  177. package/dist/chunks/chunk.4ZURABYO.js.map +0 -7
  178. package/dist/chunks/chunk.6XU6OLZ3.js.map +0 -7
  179. package/dist/chunks/chunk.AFEABUNX.js.map +0 -7
  180. package/dist/chunks/chunk.AJWDVZRI.js.map +0 -7
  181. package/dist/chunks/chunk.AWZ4FSAL.js.map +0 -7
  182. package/dist/chunks/chunk.B75SET3J.js.map +0 -7
  183. package/dist/chunks/chunk.DAROCSFO.js.map +0 -7
  184. package/dist/chunks/chunk.EKOK7YPB.js.map +0 -7
  185. package/dist/chunks/chunk.ERNEIORV.js.map +0 -7
  186. package/dist/chunks/chunk.G66TSLVT.js.map +0 -7
  187. package/dist/chunks/chunk.GUQN6XL4.js.map +0 -7
  188. package/dist/chunks/chunk.GZVDP7WZ.js.map +0 -7
  189. package/dist/chunks/chunk.HNRD7DBS.js.map +0 -7
  190. package/dist/chunks/chunk.JBHQJWOB.js.map +0 -7
  191. package/dist/chunks/chunk.JBYBQ5TQ.js.map +0 -7
  192. package/dist/chunks/chunk.JHXCBOUD.js.map +0 -7
  193. package/dist/chunks/chunk.JN7CLMQZ.js.map +0 -7
  194. package/dist/chunks/chunk.KA7L2PMA.js.map +0 -7
  195. package/dist/chunks/chunk.MB3YZTYP.js.map +0 -7
  196. package/dist/chunks/chunk.MNMITYTH.js.map +0 -7
  197. package/dist/chunks/chunk.N2I6HVX3.js.map +0 -7
  198. package/dist/chunks/chunk.NV7W5R6V.js.map +0 -7
  199. package/dist/chunks/chunk.O7USYXBT.js +0 -23
  200. package/dist/chunks/chunk.OJ4KOC7R.js.map +0 -7
  201. package/dist/chunks/chunk.PGCXJ2PT.js.map +0 -7
  202. package/dist/chunks/chunk.QHFGD6WW.js.map +0 -7
  203. package/dist/chunks/chunk.RS4Z4KDT.js.map +0 -7
  204. package/dist/chunks/chunk.RSONAU45.js.map +0 -7
  205. package/dist/chunks/chunk.UVYPEAQZ.js.map +0 -7
  206. package/dist/chunks/chunk.W6V7TPGK.js.map +0 -7
  207. package/dist/chunks/chunk.WDX7XUUK.js.map +0 -7
  208. package/dist/chunks/chunk.XI6MSNHF.js.map +0 -7
  209. package/dist/chunks/chunk.Y4QKFZLK.js.map +0 -7
  210. package/dist/web-types.json +0 -2580
  211. /package/dist/chunks/{chunk.2IBWQADW.js.map → chunk.3O5WTWSN.js.map} +0 -0
  212. /package/dist/chunks/{chunk.6PWB7EUW.js.map → chunk.5BMNRZ7L.js.map} +0 -0
  213. /package/dist/chunks/{chunk.A2WGLZOL.js.map → chunk.5CB3CVZ7.js.map} +0 -0
  214. /package/dist/chunks/{chunk.CUU2VBEZ.js.map → chunk.AJU6C4KC.js.map} +0 -0
  215. /package/dist/chunks/{chunk.HW5TASOL.js.map → chunk.BGKFRWWO.js.map} +0 -0
  216. /package/dist/chunks/{chunk.F3YEAZYJ.js.map → chunk.BTZX6ZFZ.js.map} +0 -0
  217. /package/dist/chunks/{chunk.K4ELZCXB.js.map → chunk.F4THECWA.js.map} +0 -0
  218. /package/dist/chunks/{chunk.COKV3ZN7.js.map → chunk.FUNZW7ES.js.map} +0 -0
  219. /package/dist/chunks/{chunk.NWWHBSV7.js.map → chunk.IOPUYG6Q.js.map} +0 -0
  220. /package/dist/chunks/{chunk.BGPAHVPK.js.map → chunk.IR2PZHC7.js.map} +0 -0
  221. /package/dist/chunks/{chunk.JSO3PKB4.js.map → chunk.KUO3KJOC.js.map} +0 -0
  222. /package/dist/chunks/{chunk.WP6T5CG2.js.map → chunk.LF2XSSHD.js.map} +0 -0
  223. /package/dist/chunks/{chunk.OJUBVHIK.js.map → chunk.LZE7OXKV.js.map} +0 -0
  224. /package/dist/chunks/{chunk.MRAXEK5D.js.map → chunk.PRZRH7SN.js.map} +0 -0
  225. /package/dist/chunks/{chunk.2XCLA4MQ.js.map → chunk.QY6MKIMK.js.map} +0 -0
  226. /package/dist/chunks/{chunk.RVFNEWM3.js.map → chunk.RMQZMRVP.js.map} +0 -0
  227. /package/dist/chunks/{chunk.NAAFLDZ3.js.map → chunk.VATYXV2O.js.map} +0 -0
  228. /package/dist/chunks/{chunk.5TFG753C.js.map → chunk.Y72MIUNI.js.map} +0 -0
  229. /package/dist/chunks/{chunk.IKKMWFWH.js.map → chunk.ZIQXX272.js.map} +0 -0
  230. /package/dist/chunks/{chunk.UG5FC6UD.js.map → chunk.ZT5DUKVA.js.map} +0 -0
package/dist/synergy.js CHANGED
@@ -1,132 +1,131 @@
1
1
  import {
2
2
  textarea_default
3
- } from "./chunks/chunk.BGPAHVPK.js";
3
+ } from "./chunks/chunk.IR2PZHC7.js";
4
4
  import {
5
5
  getFormControls,
6
6
  serialize
7
- } from "./chunks/chunk.JSO3PKB4.js";
7
+ } from "./chunks/chunk.KUO3KJOC.js";
8
8
  import "./chunks/chunk.NKIYFJN2.js";
9
9
  import {
10
10
  switch_default
11
- } from "./chunks/chunk.RVFNEWM3.js";
11
+ } from "./chunks/chunk.RMQZMRVP.js";
12
12
  import {
13
13
  tag_default
14
- } from "./chunks/chunk.A2WGLZOL.js";
15
- import "./chunks/chunk.KA7L2PMA.js";
16
- import "./chunks/chunk.23HTU3YE.js";
14
+ } from "./chunks/chunk.5CB3CVZ7.js";
15
+ import "./chunks/chunk.HF75YRVS.js";
16
+ import "./chunks/chunk.2EI3TNL7.js";
17
17
  import "./chunks/chunk.YBIBWRKC.js";
18
18
  import {
19
19
  select_default
20
- } from "./chunks/chunk.OJUBVHIK.js";
21
- import "./chunks/chunk.AJWDVZRI.js";
22
- import "./chunks/chunk.GUQN6XL4.js";
23
- import "./chunks/chunk.QHFGD6WW.js";
20
+ } from "./chunks/chunk.LZE7OXKV.js";
21
+ import "./chunks/chunk.RMZBSKRR.js";
22
+ import "./chunks/chunk.GBOII6N4.js";
24
23
  import "./chunks/chunk.7W73A57K.js";
25
- import "./chunks/chunk.6XU6OLZ3.js";
24
+ import "./chunks/chunk.BGHK4NQA.js";
26
25
  import "./chunks/chunk.OWMT6OL2.js";
27
- import "./chunks/chunk.JBHQJWOB.js";
28
- import "./chunks/chunk.MNMITYTH.js";
29
- import "./chunks/chunk.AFEABUNX.js";
26
+ import "./chunks/chunk.QNQNR3RY.js";
27
+ import "./chunks/chunk.KDDTDU4B.js";
28
+ import "./chunks/chunk.ADRKUQGR.js";
29
+ import "./chunks/chunk.W5JK7V7K.js";
30
30
  import {
31
31
  radio_default
32
- } from "./chunks/chunk.COKV3ZN7.js";
32
+ } from "./chunks/chunk.FUNZW7ES.js";
33
33
  import {
34
34
  radio_button_default
35
- } from "./chunks/chunk.NAAFLDZ3.js";
36
- import "./chunks/chunk.B75SET3J.js";
37
- import "./chunks/chunk.IKKMWFWH.js";
35
+ } from "./chunks/chunk.VATYXV2O.js";
36
+ import "./chunks/chunk.UZFPGR6M.js";
37
+ import "./chunks/chunk.ZIQXX272.js";
38
38
  import {
39
39
  radio_group_default
40
- } from "./chunks/chunk.NWWHBSV7.js";
41
- import "./chunks/chunk.4ZGN7AEC.js";
42
- import "./chunks/chunk.4I6M5V6O.js";
40
+ } from "./chunks/chunk.IOPUYG6Q.js";
41
+ import "./chunks/chunk.GAPQVJGQ.js";
43
42
  import "./chunks/chunk.F4MRQLNL.js";
43
+ import "./chunks/chunk.XIUSSERX.js";
44
44
  import {
45
45
  option_default
46
- } from "./chunks/chunk.5TFG753C.js";
47
- import "./chunks/chunk.XI6MSNHF.js";
48
- import "./chunks/chunk.JN7CLMQZ.js";
49
- import "./chunks/chunk.RS4Z4KDT.js";
50
- import "./chunks/chunk.JBYBQ5TQ.js";
46
+ } from "./chunks/chunk.Y72MIUNI.js";
47
+ import "./chunks/chunk.BJYVLDYR.js";
48
+ import "./chunks/chunk.MIMALEWP.js";
49
+ import "./chunks/chunk.MDZ22YWD.js";
51
50
  import "./chunks/chunk.V6VND4OF.js";
51
+ import "./chunks/chunk.PKO6FEOM.js";
52
52
  import {
53
53
  input_default
54
- } from "./chunks/chunk.6PWB7EUW.js";
55
- import "./chunks/chunk.G66TSLVT.js";
56
- import "./chunks/chunk.EKOK7YPB.js";
57
- import "./chunks/chunk.JHXCBOUD.js";
54
+ } from "./chunks/chunk.5BMNRZ7L.js";
55
+ import "./chunks/chunk.WC5SV4TV.js";
58
56
  import "./chunks/chunk.2OLVTQ5P.js";
57
+ import "./chunks/chunk.4QS5IWYB.js";
59
58
  import {
60
59
  optgroup_default
61
- } from "./chunks/chunk.CUU2VBEZ.js";
62
- import "./chunks/chunk.HW5TASOL.js";
60
+ } from "./chunks/chunk.AJU6C4KC.js";
61
+ import "./chunks/chunk.BGKFRWWO.js";
63
62
  import "./chunks/chunk.KG52EHDB.js";
64
- import "./chunks/chunk.UVYPEAQZ.js";
65
- import "./chunks/chunk.W6V7TPGK.js";
63
+ import "./chunks/chunk.5R3OVMH2.js";
66
64
  import "./chunks/chunk.3B24TYVN.js";
65
+ import "./chunks/chunk.CFIQXXMW.js";
67
66
  import {
68
67
  icon_default
69
- } from "./chunks/chunk.F3YEAZYJ.js";
68
+ } from "./chunks/chunk.BTZX6ZFZ.js";
70
69
  import {
71
70
  icon_button_default
72
- } from "./chunks/chunk.UG5FC6UD.js";
71
+ } from "./chunks/chunk.ZT5DUKVA.js";
73
72
  import {
74
73
  divider_default
75
- } from "./chunks/chunk.WP6T5CG2.js";
74
+ } from "./chunks/chunk.LF2XSSHD.js";
76
75
  import {
77
76
  drawer_default
78
- } from "./chunks/chunk.2IBWQADW.js";
79
- import "./chunks/chunk.GZVDP7WZ.js";
80
- import "./chunks/chunk.2KKPNUPU.js";
77
+ } from "./chunks/chunk.3O5WTWSN.js";
78
+ import "./chunks/chunk.BLOH2ZNU.js";
79
+ import "./chunks/chunk.GTSRMEPE.js";
81
80
  import "./chunks/chunk.QAUTITK3.js";
82
- import "./chunks/chunk.DAROCSFO.js";
83
- import "./chunks/chunk.2FN5DTS6.js";
81
+ import "./chunks/chunk.O6AXKVFJ.js";
84
82
  import "./chunks/chunk.OJF7KL44.js";
85
- import "./chunks/chunk.NV7W5R6V.js";
83
+ import "./chunks/chunk.LJQ7LEPV.js";
86
84
  import "./chunks/chunk.UYD2OVFV.js";
85
+ import "./chunks/chunk.PHSJD47V.js";
87
86
  import {
88
87
  button_group_default
89
- } from "./chunks/chunk.K4ELZCXB.js";
88
+ } from "./chunks/chunk.F4THECWA.js";
90
89
  import {
91
90
  checkbox_default
92
- } from "./chunks/chunk.MRAXEK5D.js";
93
- import "./chunks/chunk.Y4QKFZLK.js";
91
+ } from "./chunks/chunk.PRZRH7SN.js";
92
+ import "./chunks/chunk.KNXO2FGQ.js";
94
93
  import "./chunks/chunk.WFAJR3FN.js";
95
- import "./chunks/chunk.4CBN5LPQ.js";
94
+ import "./chunks/chunk.TTL762VF.js";
96
95
  import "./chunks/chunk.2XZKXVMR.js";
97
- import "./chunks/chunk.ERNEIORV.js";
98
- import "./chunks/chunk.PGCXJ2PT.js";
96
+ import "./chunks/chunk.3STW62TA.js";
97
+ import "./chunks/chunk.XEI5ZP7Y.js";
99
98
  import "./chunks/chunk.FA6V2WD6.js";
99
+ import "./chunks/chunk.ACTJFDNK.js";
100
100
  import {
101
101
  button_default
102
- } from "./chunks/chunk.2XCLA4MQ.js";
103
- import "./chunks/chunk.AWZ4FSAL.js";
104
- import "./chunks/chunk.HNRD7DBS.js";
105
- import "./chunks/chunk.N2I6HVX3.js";
106
- import "./chunks/chunk.XGXFE6IF.js";
102
+ } from "./chunks/chunk.QY6MKIMK.js";
103
+ import "./chunks/chunk.FSONLJTT.js";
104
+ import "./chunks/chunk.K3O2PP7X.js";
105
+ import "./chunks/chunk.OSBC36KQ.js";
107
106
  import "./chunks/chunk.LAB4YJYE.js";
108
107
  import "./chunks/chunk.A3SKDWCT.js";
109
- import "./chunks/chunk.2Z2GYRLO.js";
110
- import "./chunks/chunk.35PHCFSV.js";
108
+ import "./chunks/chunk.SZCGMXW5.js";
109
+ import "./chunks/chunk.XGXFE6IF.js";
110
+ import "./chunks/chunk.PWMSNMDF.js";
111
111
  import {
112
112
  registerIconLibrary,
113
113
  unregisterIconLibrary
114
114
  } from "./chunks/chunk.JRXQK6LG.js";
115
115
  import "./chunks/chunk.6C4JXZZN.js";
116
116
  import "./chunks/chunk.5AAIHRMI.js";
117
- import "./chunks/chunk.RSONAU45.js";
118
117
  import "./chunks/chunk.PJO6TM3T.js";
118
+ import "./chunks/chunk.2RF7KO5I.js";
119
119
  import "./chunks/chunk.AVTU2BGE.js";
120
120
  import {
121
121
  getBasePath,
122
122
  setBasePath
123
123
  } from "./chunks/chunk.C7624ITA.js";
124
- import "./chunks/chunk.OJ4KOC7R.js";
125
124
  import "./chunks/chunk.K55MKNUR.js";
126
- import "./chunks/chunk.MB3YZTYP.js";
127
- import "./chunks/chunk.WDX7XUUK.js";
128
- import "./chunks/chunk.4ZURABYO.js";
129
- import "./chunks/chunk.O7USYXBT.js";
125
+ import "./chunks/chunk.SJMMPKWP.js";
126
+ import "./chunks/chunk.6MS3WNDW.js";
127
+ import "./chunks/chunk.3DE5ARIC.js";
128
+ import "./chunks/chunk.A7IIJ2LL.js";
130
129
  import "./chunks/chunk.QNDC5KWA.js";
131
130
  export {
132
131
  button_default as SynButton,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  getFormControls,
3
3
  serialize
4
- } from "../chunks/chunk.JSO3PKB4.js";
5
- import "../chunks/chunk.2Z2GYRLO.js";
4
+ } from "../chunks/chunk.KUO3KJOC.js";
5
+ import "../chunks/chunk.SZCGMXW5.js";
6
6
  import "../chunks/chunk.QNDC5KWA.js";
7
7
  export {
8
8
  getFormControls,
@@ -2,6 +2,23 @@
2
2
  "$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
3
3
  "version": 1.1,
4
4
  "tags": [
5
+ {
6
+ "name": "syn-button-group",
7
+ "description": "Button groups can be used to group related buttons into sections.\n---\n\n\n### **Slots:**\n - _default_ - One or more `<syn-button>` elements to display in the button group.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
8
+ "attributes": [
9
+ {
10
+ "name": "label",
11
+ "description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
12
+ "values": []
13
+ }
14
+ ],
15
+ "references": [
16
+ {
17
+ "name": "Documentation",
18
+ "url": "https://synergy.style/components/button-group"
19
+ }
20
+ ]
21
+ },
5
22
  {
6
23
  "name": "syn-button",
7
24
  "description": "Buttons represent actions that are available to the user.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the button loses focus.\n- **syn-focus** - Emitted when the button gains focus.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the button.\n- **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **prefix** - The container that wraps the prefix.\n- **label** - The button's label.\n- **suffix** - The container that wraps the suffix.\n- **caret** - The button's caret icon, an `<syn-icon>` element.\n- **spinner** - The spinner that shows when the button is in the loading state.",
@@ -131,26 +148,9 @@
131
148
  }
132
149
  ]
133
150
  },
134
- {
135
- "name": "syn-button-group",
136
- "description": "Button groups can be used to group related buttons into sections.\n---\n\n\n### **Slots:**\n - _default_ - One or more `<syn-button>` elements to display in the button group.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
137
- "attributes": [
138
- {
139
- "name": "label",
140
- "description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
141
- "values": []
142
- }
143
- ],
144
- "references": [
145
- {
146
- "name": "Documentation",
147
- "url": "https://synergy.style/components/button-group"
148
- }
149
- ]
150
- },
151
151
  {
152
152
  "name": "syn-checkbox",
153
- "description": "Checkboxes allow the user to toggle an option on or off.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the checkbox loses focus.\n- **syn-change** - Emitted when the checked state changes.\n- **syn-focus** - Emitted when the checkbox gains focus.\n- **syn-input** - Emitted when the checkbox receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<syn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<syn-icon>` element.\n- **label** - The container that wraps the checkbox's label.",
153
+ "description": "Checkboxes allow the user to toggle an option on or off.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the checkbox loses focus.\n- **syn-change** - Emitted when the checked state changes.\n- **syn-focus** - Emitted when the checkbox gains focus.\n- **syn-input** - Emitted when the checkbox receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n- **help-text** - Text that describes how to use the checkbox. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<syn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<syn-icon>` element.\n- **label** - The container that wraps the checkbox's label.\n- **form-control-help-text** - The help text's wrapper.",
154
154
  "attributes": [
155
155
  { "name": "title", "values": [] },
156
156
  {
@@ -196,6 +196,11 @@
196
196
  "name": "required",
197
197
  "description": "Makes the checkbox a required field.",
198
198
  "values": []
199
+ },
200
+ {
201
+ "name": "help-text",
202
+ "description": "The checkbox's help text. If you need to display HTML, use the `help-text` slot instead.",
203
+ "values": []
199
204
  }
200
205
  ],
201
206
  "references": [
@@ -611,7 +616,7 @@
611
616
  },
612
617
  {
613
618
  "name": "syn-popup",
614
- "description": "Popup is a utility that lets you declaratively anchor \"popup\" containers to another element.\n---\n\n\n### **Events:**\n - **syn-reposition** - Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive operations in your listener or consider debouncing it.\n\n### **Methods:**\n - **reposition()** - Forces the popup to recalculate and reposition itself.\n\n### **Slots:**\n - _default_ - The popup's content.\n- **anchor** - The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the `anchor` attribute or property instead.\n\n### **CSS Properties:**\n - **--arrow-size** - The size of the arrow. Note that an arrow won't be shown unless the `arrow` attribute is used. _(default: 6px)_\n- **--arrow-color** - The color of the arrow. _(default: var(--syn-color-neutral-0))_\n- **--auto-size-available-width** - A read-only custom property that determines the amount of width the popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only available when using `auto-size`. _(default: undefined)_\n- **--auto-size-available-height** - A read-only custom property that determines the amount of height the popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only available when using `auto-size`. _(default: undefined)_\n\n### **CSS Parts:**\n - **arrow** - The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and maybe a border or box shadow.\n- **popup** - The popup's container. Useful for setting a background color, box shadow, etc.",
619
+ "description": "Popup is a utility that lets you declaratively anchor \"popup\" containers to another element.\n---\n\n\n### **Events:**\n - **syn-reposition** - Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive operations in your listener or consider debouncing it.\n\n### **Methods:**\n - **reposition()** - Forces the popup to recalculate and reposition itself.\n\n### **Slots:**\n - _default_ - The popup's content.\n- **anchor** - The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the `anchor` attribute or property instead.\n\n### **CSS Properties:**\n - **--arrow-size** - The size of the arrow. Note that an arrow won't be shown unless the `arrow` attribute is used. _(default: 6px)_\n- **--arrow-color** - The color of the arrow. _(default: var(--syn-color-neutral-0))_\n- **--auto-size-available-width** - A read-only custom property that determines the amount of width the popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only available when using `auto-size`. _(default: undefined)_\n- **--auto-size-available-height** - A read-only custom property that determines the amount of height the popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only available when using `auto-size`. _(default: undefined)_\n\n### **CSS Parts:**\n - **arrow** - The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and maybe a border or box shadow.\n- **popup** - The popup's container. Useful for setting a background color, box shadow, etc.\n- **hover-bridge** - The hover bridge element. Only available when the `hover-bridge` option is enabled.",
615
620
  "attributes": [
616
621
  {
617
622
  "name": "anchor",
@@ -744,6 +749,11 @@
744
749
  "name": "auto-size-padding",
745
750
  "description": "The amount of padding, in pixels, to exceed before the auto-size behavior will occur.",
746
751
  "values": []
752
+ },
753
+ {
754
+ "name": "hover-bridge",
755
+ "description": "When a gap exists between the anchor and the popup element, this option will add a \"hover bridge\" that fills the\ngap using an invisible element. This makes listening for events such as `mouseenter` and `mouseleave` more sane\nbecause the pointer never technically leaves the element. The hover bridge will only be drawn when the popover is\nactive.",
756
+ "values": []
747
757
  }
748
758
  ],
749
759
  "references": [
@@ -817,7 +827,7 @@
817
827
  },
818
828
  {
819
829
  "name": "syn-radio-group",
820
- "description": "Radio groups are used to group multiple [radios](/components/radio) or [radio buttons](/components/radio-button) so they function as a single form control.\n---\n\n\n### **Events:**\n - **syn-change** - Emitted when the radio group's selected value changes.\n- **syn-input** - Emitted when the radio group receives user input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot where `<syn-radio>` or `<syn-radio-button>` elements are placed.\n- **label** - The radio group's label. Required for proper accessibility. Alternatively, you can use the `label` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **button-group** - The button group that wraps radio buttons.\n- **button-group__base** - The button group's `base` part.",
830
+ "description": "Radio groups are used to group multiple [radios](/components/radio) or [radio buttons](/components/radio-button) so they function as a single form control.\n---\n\n\n### **Events:**\n - **syn-change** - Emitted when the radio group's selected value changes.\n- **syn-input** - Emitted when the radio group receives user input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot where `<syn-radio>` or `<syn-radio-button>` elements are placed.\n- **label** - The radio group's label. Required for proper accessibility. Alternatively, you can use the `label` attribute.\n- **help-text** - Text that describes how to use the radio group. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **button-group** - The button group that wraps radio buttons.\n- **button-group__base** - The button group's `base` part.",
821
831
  "attributes": [
822
832
  {
823
833
  "name": "label",
@@ -978,7 +988,7 @@
978
988
  },
979
989
  {
980
990
  "name": "syn-switch",
981
- "description": "Switches allow the user to toggle an option on or off.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-change** - Emitted when the control's checked state changes.\n- **syn-input** - Emitted when the control receives input.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the switch.\n- **focus(options: _FocusOptions_)** - Sets focus on the switch.\n- **blur()** - Removes focus from the switch.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The switch's label.\n\n### **CSS Properties:**\n - **--width** - The width of the switch. _(default: undefined)_\n- **--height** - The height of the switch. _(default: undefined)_\n- **--thumb-size** - The size of the thumb. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The control that houses the switch's thumb.\n- **thumb** - The switch's thumb.\n- **label** - The switch's label.",
991
+ "description": "Switches allow the user to toggle an option on or off.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-change** - Emitted when the control's checked state changes.\n- **syn-input** - Emitted when the control receives input.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the switch.\n- **focus(options: _FocusOptions_)** - Sets focus on the switch.\n- **blur()** - Removes focus from the switch.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The switch's label.\n- **help-text** - Text that describes how to use the switch. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--width** - The width of the switch. _(default: undefined)_\n- **--height** - The height of the switch. _(default: undefined)_\n- **--thumb-size** - The size of the thumb. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The control that houses the switch's thumb.\n- **thumb** - The switch's thumb.\n- **label** - The switch's label.\n- **form-control-help-text** - The help text's wrapper.",
982
992
  "attributes": [
983
993
  { "name": "title", "values": [] },
984
994
  {
@@ -1019,6 +1029,11 @@
1019
1029
  "name": "required",
1020
1030
  "description": "Makes the switch a required field.",
1021
1031
  "values": []
1032
+ },
1033
+ {
1034
+ "name": "help-text",
1035
+ "description": "The switch's help text. If you need to display HTML, use the `help-text` slot instead.",
1036
+ "values": []
1022
1037
  }
1023
1038
  ],
1024
1039
  "references": [
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "url": "https://www.sick.com"
5
5
  },
6
6
  "name": "@synergy-design-system/components",
7
- "version": "1.8.0",
7
+ "version": "1.9.0",
8
8
  "description": "",
9
9
  "repository": {
10
10
  "type": "git",
@@ -58,7 +58,6 @@
58
58
  "change-case": "^5.4.2",
59
59
  "command-line-args": "^5.2.1",
60
60
  "comment-parser": "^1.4.1",
61
- "custom-element-jet-brains-integration": "^1.4.3",
62
61
  "custom-element-vs-code-integration": "^1.2.2",
63
62
  "del": "^7.1.0",
64
63
  "esbuild": "^0.20.0",
@@ -91,7 +90,7 @@
91
90
  "vue-tsc": "^1.8.27",
92
91
  "@synergy-design-system/eslint-config-syn": "0.1.0",
93
92
  "@synergy-design-system/stylelint-config-syn": "0.1.0",
94
- "@synergy-design-system/tokens": "1.7.0"
93
+ "@synergy-design-system/tokens": "1.7.1"
95
94
  },
96
95
  "release": {
97
96
  "branches": [
@@ -158,7 +157,6 @@
158
157
  "composed-offset-position": "^0.0.4",
159
158
  "lit": "^3.1.2"
160
159
  },
161
- "web-types": "./dist/web-types.json",
162
160
  "scripts": {
163
161
  "build": "node scripts/build.js",
164
162
  "test": "web-test-runner --group default",
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/textarea/textarea.styles.ts"],
4
- "sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { css } from 'lit';\nimport customStyles from './textarea.custom.styles.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport formControlStyles from '../../styles/form-control.styles.js';\n\nexport default css`\n\t/* stylelint-disable */\n ${componentStyles}\n ${formControlStyles}\n\n :host {\n display: block;\n }\n\n .textarea {\n display: flex;\n align-items: center;\n position: relative;\n width: 100%;\n font-family: var(--syn-input-font-family);\n font-weight: var(--syn-input-font-weight);\n line-height: var(--syn-line-height-normal);\n letter-spacing: var(--syn-input-letter-spacing);\n vertical-align: middle;\n transition:\n var(--syn-transition-fast) color,\n var(--syn-transition-fast) border,\n var(--syn-transition-fast) box-shadow,\n var(--syn-transition-fast) background-color;\n cursor: text;\n }\n\n /* Standard textareas */\n .textarea--standard {\n background-color: var(--syn-input-background-color);\n border: solid var(--syn-input-border-width) var(--syn-input-border-color);\n }\n\n .textarea--standard:hover:not(.textarea--disabled) {\n background-color: var(--syn-input-background-color-hover);\n border-color: var(--syn-input-border-color-hover);\n }\n .textarea--standard:hover:not(.textarea--disabled) .textarea__control {\n color: var(--syn-input-color-hover);\n }\n\n .textarea--standard.textarea--focused:not(.textarea--disabled) {\n background-color: var(--syn-input-background-color-focus);\n border-color: var(--syn-input-border-color-focus);\n color: var(--syn-input-color-focus);\n box-shadow: 0 0 0 var(--syn-focus-ring-width) var(--syn-input-focus-ring-color);\n }\n\n .textarea--standard.textarea--focused:not(.textarea--disabled) .textarea__control {\n color: var(--syn-input-color-focus);\n }\n\n .textarea--standard.textarea--disabled {\n background-color: var(--syn-input-background-color-disabled);\n border-color: var(--syn-input-border-color-disabled);\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .textarea--standard.textarea--disabled .textarea__control {\n color: var(--syn-input-color-disabled);\n }\n\n .textarea--standard.textarea--disabled .textarea__control::placeholder {\n color: var(--syn-input-placeholder-color-disabled);\n }\n\n /* Readonly textareas */\n .textarea--readonly {\n border: none;\n background-color: var(--syn-input-readonly-background-color);\n color: var(--syn-input-color);\n }\n\n .textarea--readonly:hover:not(.textarea--disabled) {\n background-color: var(--syn-input-readonly-background-color-hover);\n }\n\n .textarea--readonly.textarea--focused:not(.textarea--disabled) {\n background-color: var(--syn-input-readonly-background-color-focus);\n outline: var(--syn-focus-ring);\n outline-offset: var(--syn-focus-ring-offset);\n }\n\n .textarea--readonly.textarea--disabled {\n background-color: var(--syn-input-readonly-background-color-disabled);\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .textarea__control {\n flex: 1 1 auto;\n font-family: inherit;\n font-size: inherit;\n font-weight: inherit;\n line-height: 1.4;\n color: var(--syn-input-color);\n border: none;\n background: none;\n box-shadow: none;\n cursor: inherit;\n -webkit-appearance: none;\n }\n\n .textarea__control::-webkit-search-decoration,\n .textarea__control::-webkit-search-cancel-button,\n .textarea__control::-webkit-search-results-button,\n .textarea__control::-webkit-search-results-decoration {\n -webkit-appearance: none;\n }\n\n .textarea__control::placeholder {\n color: var(--syn-input-placeholder-color);\n user-select: none;\n -webkit-user-select: none;\n }\n\n .textarea__control:focus {\n outline: none;\n }\n\n /*\n * Size modifiers\n */\n\n .textarea--small {\n border-radius: var(--syn-input-border-radius-small);\n font-size: var(--syn-input-font-size-small);\n }\n\n .textarea--small .textarea__control {\n padding: 0.5em var(--syn-input-spacing-small);\n }\n\n .textarea--medium {\n border-radius: var(--syn-input-border-radius-medium);\n font-size: var(--syn-input-font-size-medium);\n }\n\n .textarea--medium .textarea__control {\n padding: 0.5em var(--syn-input-spacing-medium);\n }\n\n .textarea--large {\n border-radius: var(--syn-input-border-radius-large);\n font-size: var(--syn-input-font-size-large);\n }\n\n .textarea--large .textarea__control {\n padding: 0.5em var(--syn-input-spacing-large);\n }\n\n /*\n * Resize types\n */\n\n .textarea--resize-none .textarea__control {\n resize: none;\n }\n\n .textarea--resize-vertical .textarea__control {\n resize: vertical;\n }\n\n .textarea--resize-auto .textarea__control {\n height: auto;\n resize: none;\n overflow-y: hidden;\n }\n\n ${customStyles}\n`;\n\n"],
5
-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ourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { css } from 'lit';\nimport customStyles from './icon-button.custom.styles.js';\nimport componentStyles from '../../styles/component.styles.js';\n\nexport default css`\n\t/* stylelint-disable */\n ${componentStyles}\n\n :host {\n display: inline-block;\n color: var(--syn-color-neutral-600);\n }\n\n .icon-button {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n background: none;\n border: none;\n border-radius: var(--syn-border-radius-medium);\n font-size: inherit;\n color: inherit;\n padding: var(--syn-spacing-x-small);\n cursor: pointer;\n transition: var(--syn-transition-x-fast) color;\n -webkit-appearance: none;\n }\n\n .icon-button:hover:not(.icon-button--disabled),\n .icon-button:focus-visible:not(.icon-button--disabled) {\n color: var(--syn-color-primary-600);\n }\n\n .icon-button:active:not(.icon-button--disabled) {\n color: var(--syn-color-primary-700);\n }\n\n .icon-button:focus {\n outline: none;\n }\n\n .icon-button--disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .icon-button:focus-visible {\n outline: var(--syn-focus-ring);\n outline-offset: var(--syn-focus-ring-offset);\n }\n\n .icon-button__icon {\n pointer-events: none;\n }\n\n ${customStyles}\n`;\n\n"],
5
- "mappings": ";;;;;;;;AAMA,SAAS,WAAW;AAIpB,IAAO,6BAAQ;AAAA;AAAA,IAEX,wBAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAiDf,iCAAY;AAAA;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/internal/animate.ts", "../../src/internal/offset.ts", "../../src/internal/scroll.ts", "../../src/internal/event.ts"],
4
- "sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\n/**\n * Animates an element using keyframes. Returns a promise that resolves after the animation completes or gets canceled.\n */\nexport function animateTo(el: HTMLElement, keyframes: Keyframe[], options?: KeyframeAnimationOptions) {\n return new Promise(resolve => {\n if (options?.duration === Infinity) {\n throw new Error('Promise-based animations must be finite.');\n }\n\n const animation = el.animate(keyframes, {\n ...options,\n duration: prefersReducedMotion() ? 0 : options!.duration\n });\n\n animation.addEventListener('cancel', resolve, { once: true });\n animation.addEventListener('finish', resolve, { once: true });\n });\n}\n\n/** Parses a CSS duration and returns the number of milliseconds. */\nexport function parseDuration(delay: number | string) {\n delay = delay.toString().toLowerCase();\n\n if (delay.indexOf('ms') > -1) {\n return parseFloat(delay);\n }\n\n if (delay.indexOf('s') > -1) {\n return parseFloat(delay) * 1000;\n }\n\n return parseFloat(delay);\n}\n\n/** Tells if the user has enabled the \"reduced motion\" setting in their browser or OS. */\nexport function prefersReducedMotion() {\n const query = window.matchMedia('(prefers-reduced-motion: reduce)');\n return query.matches;\n}\n\n/**\n * Stops all active animations on the target element. Returns a promise that resolves after all animations are canceled.\n */\nexport function stopAnimations(el: HTMLElement) {\n return Promise.all(\n el.getAnimations().map(animation => {\n return new Promise(resolve => {\n const handleAnimationEvent = requestAnimationFrame(resolve);\n\n animation.addEventListener('cancel', () => handleAnimationEvent, { once: true });\n animation.addEventListener('finish', () => handleAnimationEvent, { once: true });\n animation.cancel();\n });\n })\n );\n}\n\n/**\n * We can't animate `height: auto`, but we can calculate the height and shim keyframes by replacing it with the\n * element's scrollHeight before the animation.\n */\nexport function shimKeyframesHeightAuto(keyframes: Keyframe[], calculatedHeight: number) {\n return keyframes.map(keyframe => ({\n ...keyframe,\n height: keyframe.height === 'auto' ? `${calculatedHeight}px` : keyframe.height\n }));\n}\n", "// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\n/**\n * Returns an element's offset relative to its parent. Similar to element.offsetTop and element.offsetLeft, except the\n * parent doesn't have to be positioned relative or absolute.\n *\n * NOTE: This was created to work around what appears to be a bug in Chrome where a slotted element's offsetParent seems\n * to ignore elements inside the surrounding shadow DOM: https://bugs.chromium.org/p/chromium/issues/detail?id=920069\n */\nexport function getOffset(element: HTMLElement, parent: HTMLElement) {\n return {\n top: Math.round(element.getBoundingClientRect().top - parent.getBoundingClientRect().top),\n left: Math.round(element.getBoundingClientRect().left - parent.getBoundingClientRect().left)\n };\n}\n", "// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { getOffset } from './offset.js';\n\nconst locks = new Set();\n\n/** Returns the width of the document's scrollbar */\nfunction getScrollbarWidth() {\n const documentWidth = document.documentElement.clientWidth;\n return Math.abs(window.innerWidth - documentWidth);\n}\n\n/**\n * Prevents body scrolling. Keeps track of which elements requested a lock so multiple levels of locking are possible\n * without premature unlocking.\n */\nexport function lockBodyScrolling(lockingEl: HTMLElement) {\n locks.add(lockingEl);\n\n // When the first lock is created, set the scroll lock size to match the scrollbar's width to prevent content from\n // shifting. We only do this on the first lock because the scrollbar width will measure zero after overflow is hidden.\n if (!document.body.classList.contains('syn-scroll-lock')) {\n const scrollbarWidth = getScrollbarWidth(); // must be measured before the `syn-scroll-lock` class is applied\n document.body.classList.add('syn-scroll-lock');\n document.body.style.setProperty('--syn-scroll-lock-size', `${scrollbarWidth}px`);\n }\n}\n\n/**\n * Unlocks body scrolling. Scrolling will only be unlocked once all elements that requested a lock call this method.\n */\nexport function unlockBodyScrolling(lockingEl: HTMLElement) {\n locks.delete(lockingEl);\n\n if (locks.size === 0) {\n document.body.classList.remove('syn-scroll-lock');\n document.body.style.removeProperty('--syn-scroll-lock-size');\n }\n}\n\n/** Scrolls an element into view of its container. If the element is already in view, nothing will happen. */\nexport function scrollIntoView(\n element: HTMLElement,\n container: HTMLElement,\n direction: 'horizontal' | 'vertical' | 'both' = 'vertical',\n behavior: 'smooth' | 'auto' = 'smooth'\n) {\n const offset = getOffset(element, container);\n const offsetTop = offset.top + container.scrollTop;\n const offsetLeft = offset.left + container.scrollLeft;\n const minX = container.scrollLeft;\n const maxX = container.scrollLeft + container.offsetWidth;\n const minY = container.scrollTop;\n const maxY = container.scrollTop + container.offsetHeight;\n\n if (direction === 'horizontal' || direction === 'both') {\n if (offsetLeft < minX) {\n container.scrollTo({ left: offsetLeft, behavior });\n } else if (offsetLeft + element.clientWidth > maxX) {\n container.scrollTo({ left: offsetLeft - container.offsetWidth + element.clientWidth, behavior });\n }\n }\n\n if (direction === 'vertical' || direction === 'both') {\n if (offsetTop < minY) {\n container.scrollTo({ top: offsetTop, behavior });\n } else if (offsetTop + element.clientHeight > maxY) {\n container.scrollTo({ top: offsetTop - container.offsetHeight + element.clientHeight, behavior });\n }\n }\n}\n", "// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\n/** Waits for a specific event to be emitted from an element. Ignores events that bubble up from child elements. */\nexport function waitForEvent(el: HTMLElement, eventName: string) {\n return new Promise<void>(resolve => {\n function done(event: Event) {\n if (event.target === el) {\n el.removeEventListener(eventName, done);\n resolve();\n }\n }\n\n el.addEventListener(eventName, done);\n });\n}\n"],
5
- "mappings": ";;;;;;AASO,SAAS,UAAU,IAAiB,WAAuB,SAAoC;AACpG,SAAO,IAAI,QAAQ,aAAW;AAC5B,SAAI,mCAAS,cAAa,UAA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I;AACvB,WAAG,oBAAoB,WAAW,IAAI;AACtC,gBAAQ;AAAA,MACV;AAAA,IACF;AAEA,OAAG,iBAAiB,WAAW,IAAI;AAAA,EACrC,CAAC;AACH;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/internal/form.ts"],
4
- "sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport type { ReactiveController, ReactiveControllerHost } from 'lit';\nimport type { SynergyFormControl } from '../internal/synergy-element.js';\nimport type SynButton from '../components/button/button.js';\n\n//\n// We store a WeakMap of forms + controls so we can keep references to all Synergy controls within a given form. As\n// elements connect and disconnect to/from the DOM, their containing form is used as the key and the form control is\n// added and removed from the form's set, respectively.\n//\nexport const formCollections: WeakMap<HTMLFormElement, Set<SynergyFormControl>> = new WeakMap();\n\n//\n// We store a WeakMap of reportValidity() overloads so we can override it when form controls connect to the DOM and\n// restore the original behavior when they disconnect.\n//\nconst reportValidityOverloads: WeakMap<HTMLFormElement, () => boolean> = new WeakMap();\nconst checkValidityOverloads: WeakMap<HTMLFormElement, () => boolean> = new WeakMap();\n\n//\n// We store a Set of controls that users have interacted with. This allows us to determine the interaction state\n// without littering the DOM with additional data attributes.\n//\nconst userInteractedControls: WeakSet<SynergyFormControl> = new WeakSet();\n\n//\n// We store a WeakMap of interactions for each form control so we can track when all conditions are met for validation.\n//\nconst interactions = new WeakMap<SynergyFormControl, string[]>();\n\nexport interface FormControlControllerOptions {\n /** A function that returns the form containing the form control. */\n form: (input: SynergyFormControl) => HTMLFormElement | null;\n /** A function that returns the form control's name, which will be submitted with the form data. */\n name: (input: SynergyFormControl) => string;\n /** A function that returns the form control's current value. */\n value: (input: SynergyFormControl) => unknown | unknown[];\n /** A function that returns the form control's default value. */\n defaultValue: (input: SynergyFormControl) => unknown | unknown[];\n /** A function that returns the form control's current disabled state. If disabled, the value won't be submitted. */\n disabled: (input: SynergyFormControl) => boolean;\n /**\n * A function that maps to the form control's reportValidity() function. When the control is invalid, this will\n * prevent submission and trigger the browser's constraint violation warning.\n */\n reportValidity: (input: SynergyFormControl) => boolean;\n\n /**\n * A function that maps to the form control's `checkValidity()` function. When the control is invalid, this will return false.\n * this is helpful is you want to check validation without triggering the native browser constraint violation warning.\n */\n checkValidity: (input: SynergyFormControl) => boolean;\n /** A function that sets the form control's value */\n setValue: (input: SynergyFormControl, value: unknown) => void;\n /**\n * An array of event names to listen to. When all events in the list are emitted, the control will receive validity\n * states such as user-valid and user-invalid.user interacted validity states. */\n assumeInteractionOn: string[];\n}\n\n/** A reactive controller to allow form controls to participate in form submission, validation, etc. */\nexport class FormControlController implements ReactiveController {\n host: SynergyFormControl & ReactiveControllerHost;\n form?: HTMLFormElement | null;\n options: FormControlControllerOptions;\n\n constructor(host: ReactiveControllerHost & SynergyFormControl, options?: Partial<FormControlControllerOptions>) {\n (this.host = host).addController(this);\n this.options = {\n form: input => {\n // If there's a form attribute, use it to find the target form by id\n // Controls may not always reflect the 'form' property. For example, `<syn-button>` doesn't reflect.\n const formId = input.form;\n\n if (formId) {\n const root = input.getRootNode() as Document | ShadowRoot;\n\n const form = root.getElementById(formId);\n\n if (form) {\n return form as HTMLFormElement;\n }\n }\n\n return input.closest('form');\n },\n name: input => input.name,\n value: input => input.value,\n defaultValue: input => input.defaultValue,\n disabled: input => input.disabled ?? false,\n reportValidity: input => (typeof input.reportValidity === 'function' ? input.reportValidity() : true),\n checkValidity: input => (typeof input.checkValidity === 'function' ? input.checkValidity() : true),\n setValue: (input, value: string) => (input.value = value),\n assumeInteractionOn: ['syn-input'],\n ...options\n };\n }\n\n hostConnected() {\n const form = this.options.form(this.host);\n\n if (form) {\n this.attachForm(form);\n }\n\n // Listen for interactions\n interactions.set(this.host, []);\n this.options.assumeInteractionOn.forEach(event => {\n this.host.addEventListener(event, this.handleInteraction);\n });\n }\n\n hostDisconnected() {\n this.detachForm();\n\n // Clean up interactions\n interactions.delete(this.host);\n this.options.assumeInteractionOn.forEach(event => {\n this.host.removeEventListener(event, this.handleInteraction);\n });\n }\n\n hostUpdated() {\n const form = this.options.form(this.host);\n\n // Detach if the form no longer exists\n if (!form) {\n this.detachForm();\n }\n\n // If the form has changed, reattach it\n if (form && this.form !== form) {\n this.detachForm();\n this.attachForm(form);\n }\n\n if (this.host.hasUpdated) {\n this.setValidity(this.host.validity.valid);\n }\n }\n\n private attachForm(form?: HTMLFormElement) {\n if (form) {\n this.form = form;\n\n // Add this element to the form's collection\n if (formCollections.has(this.form)) {\n formCollections.get(this.form)!.add(this.host);\n } else {\n formCollections.set(this.form, new Set<SynergyFormControl>([this.host]));\n }\n\n this.form.addEventListener('formdata', this.handleFormData);\n this.form.addEventListener('submit', this.handleFormSubmit);\n this.form.addEventListener('reset', this.handleFormReset);\n\n // Overload the form's reportValidity() method so it looks at Synergy form controls\n if (!reportValidityOverloads.has(this.form)) {\n reportValidityOverloads.set(this.form, this.form.reportValidity);\n this.form.reportValidity = () => this.reportFormValidity();\n }\n\n // Overload the form's checkValidity() method so it looks at Synergy form controls\n if (!checkValidityOverloads.has(this.form)) {\n checkValidityOverloads.set(this.form, this.form.checkValidity);\n this.form.checkValidity = () => this.checkFormValidity();\n }\n } else {\n this.form = undefined;\n }\n }\n\n private detachForm() {\n if (!this.form) return;\n\n const formCollection = formCollections.get(this.form);\n\n if (!formCollection) {\n return;\n }\n\n // Remove this host from the form's collection\n formCollection.delete(this.host);\n\n // Check to make sure there's no other form controls in the collection. If we do this\n // without checking if any other controls are still in the collection, then we will wipe out the\n // validity checks for all other elements.\n // see: https://github.com/synergy-design-system/synergy/issues/1703\n if (formCollection.size <= 0) {\n this.form.removeEventListener('formdata', this.handleFormData);\n this.form.removeEventListener('submit', this.handleFormSubmit);\n this.form.removeEventListener('reset', this.handleFormReset);\n\n // Remove the overload and restore the original method\n if (reportValidityOverloads.has(this.form)) {\n this.form.reportValidity = reportValidityOverloads.get(this.form)!;\n reportValidityOverloads.delete(this.form);\n }\n\n if (checkValidityOverloads.has(this.form)) {\n this.form.checkValidity = checkValidityOverloads.get(this.form)!;\n checkValidityOverloads.delete(this.form);\n }\n\n // So it looks weird here to not always set the form to undefined. But I _think_ if we unattach this.form here,\n // we end up in this fun spot where future validity checks don't have a reference to the form validity handler.\n // First form element in sets the validity handler. So we can't clean up `this.form` until there are no other form elements in the form.\n this.form = undefined;\n }\n }\n\n private handleFormData = (event: FormDataEvent) => {\n const disabled = this.options.disabled(this.host);\n const name = this.options.name(this.host);\n const value = this.options.value(this.host);\n\n // For buttons, we only submit the value if they were the submitter. This is currently done in doAction() by\n // injecting the name/value on a temporary button, so we can just skip them here.\n const isButton = this.host.tagName.toLowerCase() === 'syn-button';\n\n if (!disabled && !isButton && typeof name === 'string' && name.length > 0 && typeof value !== 'undefined') {\n if (Array.isArray(value)) {\n (value as unknown[]).forEach(val => {\n event.formData.append(name, (val as string | number | boolean).toString());\n });\n } else {\n event.formData.append(name, (value as string | number | boolean).toString());\n }\n }\n };\n\n private handleFormSubmit = (event: Event) => {\n const disabled = this.options.disabled(this.host);\n const reportValidity = this.options.reportValidity;\n\n // Update the interacted state for all controls when the form is submitted\n if (this.form && !this.form.noValidate) {\n formCollections.get(this.form)?.forEach(control => {\n this.setUserInteracted(control, true);\n });\n }\n\n if (this.form && !this.form.noValidate && !disabled && !reportValidity(this.host)) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n };\n\n private handleFormReset = () => {\n this.options.setValue(this.host, this.options.defaultValue(this.host));\n this.setUserInteracted(this.host, false);\n interactions.set(this.host, []);\n };\n\n private handleInteraction = (event: Event) => {\n const emittedEvents = interactions.get(this.host)!;\n\n if (!emittedEvents.includes(event.type)) {\n emittedEvents.push(event.type);\n }\n\n // Mark it as user-interacted as soon as all associated events have been emitted\n if (emittedEvents.length === this.options.assumeInteractionOn.length) {\n this.setUserInteracted(this.host, true);\n }\n };\n\n private checkFormValidity = () => {\n //\n // This is very similar to the `reportFormValidity` function, but it does not trigger native constraint validation\n // Allow the user to simply check if the form is valid and handling validity in their own way.\n //\n // We preserve the original method in a WeakMap, but we don't call it from the overload because that would trigger\n // validations in an unexpected order. When the element disconnects, we revert to the original behavior. This won't\n // be necessary once we can use ElementInternals.\n //\n // Note that we're also honoring the form's novalidate attribute.\n //\n if (this.form && !this.form.noValidate) {\n // This seems sloppy, but checking all elements will cover native inputs, Synergy inputs, and other custom\n // elements that support the constraint validation API.\n const elements = this.form.querySelectorAll<HTMLInputElement>('*');\n\n for (const element of elements) {\n if (typeof element.checkValidity === 'function') {\n if (!element.checkValidity()) {\n return false;\n }\n }\n }\n }\n\n return true;\n };\n\n private reportFormValidity = () => {\n //\n // Synergy form controls work hard to act like regular form controls. They support the Constraint Validation API\n // and its associated methods such as setCustomValidity() and reportValidity(). However, the HTMLFormElement also\n // has a reportValidity() method that will trigger validation on all child controls. Since we're not yet using\n // ElementInternals, we need to overload this method so it looks for any element with the reportValidity() method.\n //\n // We preserve the original method in a WeakMap, but we don't call it from the overload because that would trigger\n // validations in an unexpected order. When the element disconnects, we revert to the original behavior. This won't\n // be necessary once we can use ElementInternals.\n //\n // Note that we're also honoring the form's novalidate attribute.\n //\n if (this.form && !this.form.noValidate) {\n // This seems sloppy, but checking all elements will cover native inputs, Synergy inputs, and other custom\n // elements that support the constraint validation API.\n const elements = this.form.querySelectorAll<HTMLInputElement>('*');\n\n for (const element of elements) {\n if (typeof element.reportValidity === 'function') {\n if (!element.reportValidity()) {\n return false;\n }\n }\n }\n }\n\n return true;\n };\n\n private setUserInteracted(el: SynergyFormControl, hasInteracted: boolean) {\n if (hasInteracted) {\n userInteractedControls.add(el);\n } else {\n userInteractedControls.delete(el);\n }\n\n el.requestUpdate();\n }\n\n private doAction(type: 'submit' | 'reset', submitter?: HTMLInputElement | SynButton) {\n if (this.form) {\n const button = document.createElement('button');\n button.type = type;\n button.style.position = 'absolute';\n button.style.width = '0';\n button.style.height = '0';\n button.style.clipPath = 'inset(50%)';\n button.style.overflow = 'hidden';\n button.style.whiteSpace = 'nowrap';\n\n // Pass name, value, and form attributes through to the temporary button\n if (submitter) {\n button.name = submitter.name;\n button.value = submitter.value;\n\n ['formaction', 'formenctype', 'formmethod', 'formnovalidate', 'formtarget'].forEach(attr => {\n if (submitter.hasAttribute(attr)) {\n button.setAttribute(attr, submitter.getAttribute(attr)!);\n }\n });\n }\n\n this.form.append(button);\n button.click();\n button.remove();\n }\n }\n\n /** Returns the associated `<form>` element, if one exists. */\n getForm() {\n return this.form ?? null;\n }\n\n /** Resets the form, restoring all the control to their default value */\n reset(submitter?: HTMLInputElement | SynButton) {\n this.doAction('reset', submitter);\n }\n\n /** Submits the form, triggering validation and form data injection. */\n submit(submitter?: HTMLInputElement | SynButton) {\n // Calling form.submit() bypasses the submit event and constraint validation. To prevent this, we can inject a\n // native submit button into the form, \"click\" it, then remove it to simulate a standard form submission.\n this.doAction('submit', submitter);\n }\n\n /**\n * Synchronously sets the form control's validity. Call this when you know the future validity but need to update\n * the host element immediately, i.e. before Lit updates the component in the next update.\n */\n setValidity(isValid: boolean) {\n const host = this.host;\n const hasInteracted = Boolean(userInteractedControls.has(host));\n const required = Boolean(host.required);\n\n //\n // We're mapping the following \"states\" to data attributes. In the future, we can use ElementInternals.states to\n // create a similar mapping, but instead of [data-invalid] it will look like :--invalid.\n //\n // See this RFC for more details: https://github.com/synergy-design-system/synergy/issues/1011\n //\n host.toggleAttribute('data-required', required);\n host.toggleAttribute('data-optional', !required);\n host.toggleAttribute('data-invalid', !isValid);\n host.toggleAttribute('data-valid', isValid);\n host.toggleAttribute('data-user-invalid', !isValid && hasInteracted);\n host.toggleAttribute('data-user-valid', isValid && hasInteracted);\n }\n\n /**\n * Updates the form control's validity based on the current value of `host.validity.valid`. Call this when anything\n * that affects constraint validation changes so the component receives the correct validity states.\n */\n updateValidity() {\n const host = this.host;\n this.setValidity(host.validity.valid);\n }\n\n /**\n * Dispatches a non-bubbling, cancelable custom event of type `syn-invalid`.\n * If the `syn-invalid` event will be cancelled then the original `invalid`\n * event (which may have been passed as argument) will also be cancelled.\n * If no original `invalid` event has been passed then the `syn-invalid`\n * event will be cancelled before being dispatched.\n */\n emitInvalidEvent(originalInvalidEvent?: Event) {\n const slInvalidEvent = new CustomEvent<Record<PropertyKey, never>>('syn-invalid', {\n bubbles: false,\n composed: false,\n cancelable: true,\n detail: {}\n });\n\n if (!originalInvalidEvent) {\n slInvalidEvent.preventDefault();\n }\n\n if (!this.host.dispatchEvent(slInvalidEvent)) {\n originalInvalidEvent?.preventDefault();\n }\n }\n}\n\n/*\n * Predefined common validity states.\n * All of them are read-only.\n */\n\n// A validity state object that represents `valid`\nexport const validValidityState: ValidityState = Object.freeze({\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valid: true,\n valueMissing: false\n});\n\n// A validity state object that represents `value missing`\nexport const valueMissingValidityState: ValidityState = Object.freeze({\n ...validValidityState,\n valid: false,\n valueMissing: true\n});\n\n// A validity state object that represents a custom error\nexport const customErrorValidityState: ValidityState = Object.freeze({\n ...validValidityState,\n valid: false,\n customError: true\n});\n"],
5
- "mappings": ";;;;;;AAeO,IAAM,kBAAqE,oBAAI,QAAQ;AAM9F,IAAM,0BAAmE,oBAAI,QAAQ;AACrF,IAAM,yBAAkE,oBAAI,QAAQ;AAMpF,IAAM,yBAAsD,oBAAI,QAAQ;AAKxE,IAAM,eAAe,oBAAI,QAAsC;AAiCxD,IAAM,wBAAN,MAA0D;AAAA,EAK/D,YAAY,MAAmD,SAAiD;AAiJhH,SAAQ,iBAAiB,CAAC,UAAyB;AACjD,YAAM,WAAW,KAAK,QAAQ,SAAS,KAAK,IAAI;AAChD,YAAM,OAAO,KAAK,QAAQ,KAAK,KAAK,IAAI;AACxC,YAAM,QAAQ,KAAK,QAAQ,MAAM,KAAK,IAAI;AAI1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AAC,OAAO;AAC7C,SAAK,gBAAgB,cAAc,OAAO;AAC1C,SAAK,gBAAgB,qBAAqB,CAAC,WAAW,aAAa;AACnE,SAAK,gBAAgB,mBAAmB,WAAW,aAAa;AAAA,EAClE;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,iBAAiB;AACf,UAAM,OAAO,KAAK;AAClB,SAAK,YAAY,KAAK,SAAS,KAAK;AAAA,EACtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,iBAAiB,sBAA8B;AAC7C,UAAM,iBAAiB,IAAI,YAAwC,eAAe;AAAA,MAChF,SAAS;AAAA,MACT,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,QAAQ,CAAC;AAAA,IACX,CAAC;AAED,QAAI,CAAC,sBAAsB;AACzB,qBAAe,eAAe;AAAA,IAChC;AAEA,QAAI,CAAC,KAAK,KAAK,cAAc,cAAc,GAAG;AAC5C,mEAAsB;AAAA,IACxB;AAAA,EACF;AACF;AAQO,IAAM,qBAAoC,OAAO,OAAO;AAAA,EAC7D,UAAU;AAAA,EACV,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,SAAS;AAAA,EACT,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO;AAAA,EACP,cAAc;AAChB,CAAC;AAGM,IAAM,4BAA2C,OAAO,OAAO,iCACjE,qBADiE;AAAA,EAEpE,OAAO;AAAA,EACP,cAAc;AAChB,EAAC;AAGM,IAAM,2BAA0C,OAAO,OAAO,iCAChE,qBADgE;AAAA,EAEnE,OAAO;AAAA,EACP,aAAa;AACf,EAAC;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/icon/icon.component.ts"],
4
- "sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { getIconLibrary, type IconLibrary, unwatchIcon, watchIcon } from './library.js';\nimport { html } from 'lit';\nimport { isTemplateResult } from 'lit/directive-helpers.js';\nimport { property, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './icon.styles.js';\n\nimport type { CSSResultGroup, HTMLTemplateResult } from 'lit';\n\nconst CACHEABLE_ERROR = Symbol();\nconst RETRYABLE_ERROR = Symbol();\ntype SVGResult = HTMLTemplateResult | SVGSVGElement | typeof RETRYABLE_ERROR | typeof CACHEABLE_ERROR;\n\nlet parser: DOMParser;\nconst iconCache = new Map<string, Promise<SVGResult>>();\n\ninterface IconSource {\n url?: string;\n fromLibrary: boolean;\n}\n\n/**\n * @summary Icons are symbols that can be used to represent various options within an application.\n * @documentation https://synergy.style/components/icon\n * @status stable\n * @since 2.0\n *\n * @event syn-load - Emitted when the icon has loaded. When using `spriteSheet: true` this will not emit.\n * @event syn-error - Emitted when the icon fails to load due to an error. When using `spriteSheet: true` this will not emit.\n *\n * @csspart svg - The internal SVG element.\n * @csspart use - The <use> element generated when using `spriteSheet: true`\n */\nexport default class SynIcon extends SynergyElement {\n static styles: CSSResultGroup = styles;\n\n private initialRender = false;\n\n /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */\n private async resolveIcon(url: string, library?: IconLibrary): Promise<SVGResult> {\n let fileData: Response;\n\n if (library?.spriteSheet) {\n return html`<svg part=\"svg\">\n <use part=\"use\" href=\"${url}\"></use>\n </svg>`;\n }\n\n try {\n fileData = await fetch(url, { mode: 'cors' });\n if (!fileData.ok) return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;\n } catch {\n return RETRYABLE_ERROR;\n }\n\n try {\n const div = document.createElement('div');\n div.innerHTML = await fileData.text();\n\n const svg = div.firstElementChild;\n if (svg?.tagName?.toLowerCase() !== 'svg') return CACHEABLE_ERROR;\n\n if (!parser) parser = new DOMParser();\n const doc = parser.parseFromString(svg.outerHTML, 'text/html');\n\n const svgEl = doc.body.querySelector('svg');\n if (!svgEl) return CACHEABLE_ERROR;\n\n svgEl.part.add('svg');\n return document.adoptNode(svgEl);\n } catch {\n return CACHEABLE_ERROR;\n }\n }\n\n @state() private svg: SVGElement | HTMLTemplateResult | null = null;\n\n /** The name of the icon to draw. Available names depend on the icon library being used. */\n @property({ reflect: true }) name?: string;\n\n /**\n * An external URL of an SVG file. Be sure you trust the content you are including, as it will be executed as code and\n * can result in XSS attacks.\n */\n @property() src?: string;\n\n /**\n * An alternate description to use for assistive devices. If omitted, the icon will be considered presentational and\n * ignored by assistive devices.\n */\n @property() label = '';\n\n /** The name of a registered custom icon library. */\n @property({ reflect: true }) library = 'default';\n\n connectedCallback() {\n super.connectedCallback();\n watchIcon(this);\n }\n\n firstUpdated() {\n this.initialRender = true;\n this.setIcon();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n unwatchIcon(this);\n }\n\n private getIconSource(): IconSource {\n const library = getIconLibrary(this.library);\n if (this.name && library) {\n return {\n url: library.resolver(this.name),\n fromLibrary: true\n };\n }\n\n return {\n url: this.src,\n fromLibrary: false\n };\n }\n\n @watch('label')\n handleLabelChange() {\n const hasLabel = typeof this.label === 'string' && this.label.length > 0;\n\n if (hasLabel) {\n this.setAttribute('role', 'img');\n this.setAttribute('aria-label', this.label);\n this.removeAttribute('aria-hidden');\n } else {\n this.removeAttribute('role');\n this.removeAttribute('aria-label');\n this.setAttribute('aria-hidden', 'true');\n }\n }\n\n @watch(['name', 'src', 'library'])\n async setIcon() {\n const { url, fromLibrary } = this.getIconSource();\n const library = fromLibrary ? getIconLibrary(this.library) : undefined;\n\n if (!url) {\n this.svg = null;\n return;\n }\n\n let iconResolver = iconCache.get(url);\n if (!iconResolver) {\n iconResolver = this.resolveIcon(url, library);\n iconCache.set(url, iconResolver);\n }\n\n // If we haven't rendered yet, exit early. This avoids unnecessary work due to watching multiple props.\n if (!this.initialRender) {\n return;\n }\n\n const svg = await iconResolver;\n\n if (svg === RETRYABLE_ERROR) {\n iconCache.delete(url);\n }\n\n if (url !== this.getIconSource().url) {\n // If the url has changed while fetching the icon, ignore this request\n return;\n }\n\n if (isTemplateResult(svg)) {\n this.svg = svg;\n return;\n }\n\n switch (svg) {\n case RETRYABLE_ERROR:\n case CACHEABLE_ERROR:\n this.svg = null;\n this.emit('syn-error');\n break;\n default:\n this.svg = svg.cloneNode(true) as SVGElement;\n library?.mutator?.(this.svg);\n this.emit('syn-load');\n }\n }\n\n render() {\n return this.svg;\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAOA,SAAS,YAAY;AACrB,SAAS,wBAAwB;AACjC,SAAS,UAAU,aAAa;AAOhC,IAAM,kBAAkB,OAAO;AAC/B,IAAM,kBAAkB,OAAO;AAG/B,IAAI;AACJ,IAAM,YAAY,oBAAI,IAAgC;AAmBtD,IAAqB,UAArB,cAAqC,eAAe;AAAA,EAApD;AAAA;AAGE,SAAQ,gBAAgB;AAuCf,SAAQ,MAA8C;AAenD,iBAAQ;AAGS,mBAAU;AAAA;AAAA;AAAA,EAtDvC,MAAc,YAAY,KAAa,SAA2C;AA9CpF;AA+CI,QAAI;AAEJ,QAAI,mCAAS,aAAa;AACxB,aAAO;AAAA,gCACmB,GAAG;AAAA;AAAA,IAE/B;AAEA,QAAI;AACF,iBAAW,MAAM,MAAM,KAAK,EAAE,MAAM,OAAO,CAAC;AAC5C,UAAI,CAAC,SAAS;AAAI,eAAO,SAAS,WAAW,MAAM,kBAAkB;AAAA,IACvE,SAAQ;AACN,aAAO;AAAA,IACT;AAEA,QAAI;AACF,YAAM,MAAM,SAAS,cAAc,KAAK;AACxC,UAAI,YAAY,MAAM,SAAS,KAAK;AAEpC,YAAM,MAAM,IAAI;AAChB,YAAI,gCAAK,YAAL,mBAAc,mBAAkB;AAAO,eAAO;AAElD,UAAI,CAAC;AAAQ,iBAAS,IAAI,UAAU;AACpC,YAAM,MAAM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AAG;AACpC,QAAI,CAAC,cAAc;AACjB,qBAAe,KAAK,YAAY,KAAK,OAAO;AAC5C,gBAAU,IAAI,KAAK,YAAY;AAAA,IACjC;AAGA,QAAI,CAAC,KAAK,eAAe;AACvB;AAAA,IACF;AAEA,UAAM,MAAM,MAAM;AAElB,QAAI,QAAQ,iBAAiB;AAC3B,gBAAU,OAAO,GAAG;AAAA,IACtB;AAEA,QAAI,QAAQ,KAAK,cAAc,EAAE,KAAK;AAEpC;AAAA,IACF;AAEA,QAAI,iBAAiB,GAAG,GAAG;AACzB,WAAK,MAAM;AACX;AAAA,IACF;AAEA,YAAQ,KAAK;AAAA,MACX,KAAK;AAAA,MACL,KAAK;AACH,aAAK,MAAM;AACX,aAAK,KAAK,WAAW;AACrB;AAAA,MACF;AACE,aAAK,MAAM,IAAI,UAAU,IAAI;AAC7B,iDAAS,YAAT,iCAAmB,KAAK;AACxB,aAAK,KAAK,UAAU;AAAA,IACxB;AAAA,EACF;AAAA,EAEA,SAAS;AACP,WAAO,KAAK;AAAA,EACd;AACF;AAhKqB,QACZ,SAAyB;AAyCf;AAAA,EAAhB,MAAM;AAAA,GA1CY,QA0CF;AAGY;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GA7CR,QA6CU;AAMjB;AAAA,EAAX,SAAS;AAAA,GAnDS,QAmDP;AAMA;AAAA,EAAX,SAAS;AAAA,GAzDS,QAyDP;AAGiB;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GA5DR,QA4DU;AAiC7B;AAAA,EADC,MAAM,OAAO;AAAA,GA5FK,QA6FnB;AAeM;AAAA,EADL,MAAM,CAAC,QAAQ,OAAO,SAAS,CAAC;AAAA,GA3Gd,QA4Gb;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/checkbox/checkbox.styles.ts"],
4
- "sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { css } from 'lit';\nimport customStyles from './checkbox.custom.styles.js';\nimport componentStyles from '../../styles/component.styles.js';\n\nexport default css`\n\t/* stylelint-disable */\n ${componentStyles}\n\n :host {\n display: inline-block;\n }\n\n .checkbox {\n position: relative;\n display: inline-flex;\n align-items: flex-start;\n font-family: var(--syn-input-font-family);\n font-weight: var(--syn-input-font-weight);\n color: var(--syn-input-label-color);\n vertical-align: middle;\n cursor: pointer;\n }\n\n .checkbox--small {\n --toggle-size: var(--syn-toggle-size-small);\n font-size: var(--syn-input-font-size-small);\n }\n\n .checkbox--medium {\n --toggle-size: var(--syn-toggle-size-medium);\n font-size: var(--syn-input-font-size-medium);\n }\n\n .checkbox--large {\n --toggle-size: var(--syn-toggle-size-large);\n font-size: var(--syn-input-font-size-large);\n }\n\n .checkbox__control {\n flex: 0 0 auto;\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--toggle-size);\n height: var(--toggle-size);\n border: solid var(--syn-input-border-width) var(--syn-input-border-color);\n border-radius: 2px;\n background-color: var(--syn-input-background-color);\n color: var(--syn-color-neutral-0);\n transition:\n var(--syn-transition-fast) border-color,\n var(--syn-transition-fast) background-color,\n var(--syn-transition-fast) color,\n var(--syn-transition-fast) box-shadow;\n }\n\n .checkbox__input {\n position: absolute;\n opacity: 0;\n padding: 0;\n margin: 0;\n pointer-events: none;\n }\n\n .checkbox__checked-icon,\n .checkbox__indeterminate-icon {\n display: inline-flex;\n width: var(--toggle-size);\n height: var(--toggle-size);\n }\n\n /* Hover */\n .checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover {\n border-color: var(--syn-input-border-color-hover);\n background-color: var(--syn-input-background-color-hover);\n }\n\n /* Focus */\n .checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__input:focus-visible ~ .checkbox__control {\n outline: var(--syn-focus-ring);\n outline-offset: var(--syn-focus-ring-offset);\n }\n\n /* Checked/indeterminate */\n .checkbox--checked .checkbox__control,\n .checkbox--indeterminate .checkbox__control {\n border-color: var(--syn-color-primary-600);\n background-color: var(--syn-color-primary-600);\n }\n\n /* Checked/indeterminate + hover */\n .checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,\n .checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover {\n border-color: var(--syn-color-primary-500);\n background-color: var(--syn-color-primary-500);\n }\n\n /* Checked/indeterminate + focus */\n .checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__input:focus-visible ~ .checkbox__control,\n .checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__input:focus-visible ~ .checkbox__control {\n outline: var(--syn-focus-ring);\n outline-offset: var(--syn-focus-ring-offset);\n }\n\n /* Disabled */\n .checkbox--disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .checkbox__label {\n display: inline-block;\n color: var(--syn-input-label-color);\n line-height: var(--toggle-size);\n margin-inline-start: 0.5em;\n user-select: none;\n -webkit-user-select: none;\n }\n\n :host([required]) .checkbox__label::after {\n content: var(--syn-input-required-content);\n margin-inline-start: var(--syn-input-required-content-offset);\n }\n\n ${customStyles}\n`;\n\n"],
5
- "mappings": ";;;;;;;;AAMA,SAAS,WAAW;AAIpB,IAAO,0BAAQ;AAAA;AAAA,IAEX,wBAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAuHf,8BAAY;AAAA;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/radio-group/radio-group.styles.ts"],
4
- "sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { css } from 'lit';\nimport customStyles from './radio-group.custom.styles.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport formControlStyles from '../../styles/form-control.styles.js';\n\nexport default css`\n\t/* stylelint-disable */\n ${componentStyles}\n ${formControlStyles}\n\n :host {\n display: block;\n }\n\n .form-control {\n position: relative;\n border: none;\n padding: 0;\n margin: 0;\n }\n\n .form-control__label {\n padding: 0;\n }\n\n .radio-group--required .radio-group__label::after {\n content: var(--syn-input-required-content);\n margin-inline-start: var(--syn-input-required-content-offset);\n }\n\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n }\n\n ${customStyles}\n`;\n\n"],
5
- "mappings": ";;;;;;;;;;;AAMA,SAAS,WAAW;AAKpB,IAAO,6BAAQ;AAAA;AAAA,IAEX,wBAAe;AAAA,IACf,2BAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAkCjB,iCAAY;AAAA;",
6
- "names": []
7
- }