@synergy-design-system/components 1.18.0 → 1.20.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 (220) hide show
  1. package/dist/chunks/{chunk.MU2UKMFS.js → chunk.2HMAZW6A.js} +2 -2
  2. package/dist/chunks/{chunk.3XSHKQTX.js → chunk.32GEMZZV.js} +2 -2
  3. package/dist/chunks/{chunk.3XSHKQTX.js.map → chunk.32GEMZZV.js.map} +1 -1
  4. package/dist/chunks/{chunk.XH3MA254.js → chunk.35WADEQD.js} +2 -2
  5. package/dist/chunks/{chunk.ALJZ43KV.js → chunk.3NEF2ECB.js} +2 -2
  6. package/dist/chunks/{chunk.RH56E6RP.js → chunk.3Z63ZDCN.js} +2 -2
  7. package/dist/chunks/{chunk.IZUY7TUK.js → chunk.47JB5OS5.js} +9 -9
  8. package/dist/chunks/{chunk.DP66NN4T.js → chunk.524IJCDT.js} +3 -3
  9. package/dist/chunks/{chunk.FRDS4YDO.js → chunk.54HPCZLM.js} +2 -2
  10. package/dist/chunks/{chunk.5G2YSQBG.js → chunk.5NSIAXSA.js} +2 -2
  11. package/dist/chunks/{chunk.VJWNNZNH.js → chunk.A6AAFCG3.js} +2 -2
  12. package/dist/chunks/chunk.AMAK44YX.js +27 -0
  13. package/dist/chunks/chunk.AMAK44YX.js.map +7 -0
  14. package/dist/chunks/{chunk.CFFJSWFS.js → chunk.AOQTVAEY.js} +2 -2
  15. package/dist/chunks/{chunk.MR7U25T2.js → chunk.AQKOFOYX.js} +2 -2
  16. package/dist/chunks/{chunk.NVEZ4QNM.js → chunk.AUURIE7A.js} +3 -3
  17. package/dist/chunks/{chunk.ITVKE7NY.js → chunk.AWAHSLMZ.js} +5 -5
  18. package/dist/chunks/{chunk.G34JOXVF.js → chunk.CKQLSMDO.js} +2 -2
  19. package/dist/chunks/{chunk.O54BQSFI.js → chunk.CSXBPQFP.js} +7 -7
  20. package/dist/chunks/{chunk.ENPKDAIZ.js → chunk.CWHSZ4BH.js} +9 -9
  21. package/dist/chunks/{chunk.POVJ44KS.js → chunk.DHBMSKDO.js} +5 -5
  22. package/dist/chunks/{chunk.QTL6QHN6.js → chunk.DKUZB46V.js} +10 -10
  23. package/dist/chunks/{chunk.EWF2AO27.js → chunk.EPZGNWBV.js} +2 -2
  24. package/dist/chunks/{chunk.S7GUBN44.js → chunk.EUKFLHGG.js} +5 -5
  25. package/dist/chunks/{chunk.VFL2ABHB.js → chunk.EZDC4UMG.js} +2 -2
  26. package/dist/chunks/{chunk.53VFVSIM.js → chunk.F4A2CST4.js} +2 -2
  27. package/dist/chunks/{chunk.GBXK6QMT.js → chunk.FQFZOZEN.js} +2 -2
  28. package/dist/chunks/{chunk.OPIYLV55.js → chunk.FTBYTDD5.js} +2 -2
  29. package/dist/chunks/{chunk.KTX5YB4Z.js → chunk.FTG2II25.js} +3 -3
  30. package/dist/chunks/{chunk.FJGYUKQB.js → chunk.GE3ZKSIL.js} +2 -2
  31. package/dist/chunks/chunk.GM27OBUM.js +12 -0
  32. package/dist/chunks/chunk.GM27OBUM.js.map +7 -0
  33. package/dist/chunks/{chunk.K5FUJGJ7.js → chunk.HAOJSHHP.js} +2 -2
  34. package/dist/chunks/{chunk.3MHH6ND2.js → chunk.HL7SBENS.js} +3 -3
  35. package/dist/chunks/{chunk.TWTFELWJ.js → chunk.HXG34EFO.js} +2 -2
  36. package/dist/chunks/{chunk.R7ZKZ6JE.js → chunk.I4HVPXQK.js} +2 -2
  37. package/dist/chunks/{chunk.B4VL2R3N.js → chunk.IFBYW5FA.js} +2 -2
  38. package/dist/chunks/{chunk.YJAGURE4.js → chunk.IGFBLFXD.js} +10 -10
  39. package/dist/chunks/{chunk.6CUDSTFZ.js → chunk.JHY3MH4D.js} +2 -2
  40. package/dist/chunks/chunk.JRYXECAY.js +94 -0
  41. package/dist/chunks/chunk.JRYXECAY.js.map +7 -0
  42. package/dist/chunks/{chunk.ORRBYZK7.js → chunk.L3ANONV5.js} +3 -3
  43. package/dist/chunks/{chunk.WV7JKJPD.js → chunk.L55DODNB.js} +2 -2
  44. package/dist/chunks/{chunk.XDKUBSEZ.js → chunk.LDN3IDWU.js} +2 -2
  45. package/dist/chunks/{chunk.ZP62IDKA.js → chunk.LJJHFA3A.js} +2 -2
  46. package/dist/chunks/{chunk.XALEH2Z2.js → chunk.LT2IOL3W.js} +5 -5
  47. package/dist/chunks/{chunk.AMHVRA6L.js → chunk.NSW46LNB.js} +6 -6
  48. package/dist/chunks/{chunk.XOEDYQWT.js → chunk.O63F2VQH.js} +2 -2
  49. package/dist/chunks/{chunk.AYPU2CVS.js → chunk.PIGPCN4I.js} +2 -2
  50. package/dist/chunks/chunk.PS4UJFYT.js +60 -0
  51. package/dist/chunks/chunk.PS4UJFYT.js.map +7 -0
  52. package/dist/chunks/{chunk.3NKRV5WI.js → chunk.RA4T4PSL.js} +2 -2
  53. package/dist/chunks/{chunk.3WXUF3OF.js → chunk.RKLLBPDJ.js} +2 -2
  54. package/dist/chunks/chunk.RRCGUD4A.js +69 -0
  55. package/dist/chunks/chunk.RRCGUD4A.js.map +7 -0
  56. package/dist/chunks/{chunk.XHHUDQGP.js → chunk.RWIYH2J5.js} +2 -2
  57. package/dist/chunks/{chunk.QO53BVNG.js → chunk.SOA43S6O.js} +2 -2
  58. package/dist/chunks/{chunk.T4CNSRSR.js → chunk.SW3IVEWX.js} +2 -2
  59. package/dist/chunks/{chunk.ZSZ3RXHE.js → chunk.TGGCQSF3.js} +6 -6
  60. package/dist/chunks/{chunk.LLS2ZY55.js → chunk.TLBRAHTC.js} +2 -2
  61. package/dist/chunks/{chunk.VC3APXJ3.js → chunk.TVUPDAKK.js} +14 -14
  62. package/dist/chunks/{chunk.HWDX5ZOJ.js → chunk.UEVDP3J5.js} +3 -3
  63. package/dist/chunks/chunk.UINFNZLR.js +217 -0
  64. package/dist/chunks/chunk.UINFNZLR.js.map +7 -0
  65. package/dist/chunks/{chunk.MKYRLUII.js → chunk.VMECHIZN.js} +2 -2
  66. package/dist/chunks/{chunk.JGXFT7JF.js → chunk.VWZE6BIA.js} +2 -2
  67. package/dist/chunks/{chunk.YOBIFHIM.js → chunk.WQNQONGU.js} +2 -2
  68. package/dist/chunks/chunk.XBUAZUNQ.js +91 -0
  69. package/dist/chunks/chunk.XBUAZUNQ.js.map +7 -0
  70. package/dist/chunks/chunk.XOYMSEKT.js +12 -0
  71. package/dist/chunks/chunk.XOYMSEKT.js.map +7 -0
  72. package/dist/chunks/{chunk.HSRG6R67.js → chunk.YLVTDJCD.js} +6 -6
  73. package/dist/chunks/{chunk.I5UERUDK.js → chunk.YVG2RYSG.js} +2 -2
  74. package/dist/chunks/{chunk.4LFIZT4V.js → chunk.YXI6WDAW.js} +6 -6
  75. package/dist/chunks/{chunk.QV2W7HAY.js → chunk.ZGVJ3KBH.js} +5 -5
  76. package/dist/components/alert/alert.component.d.ts +70 -0
  77. package/dist/components/alert/alert.component.js +27 -0
  78. package/dist/components/alert/alert.component.js.map +7 -0
  79. package/dist/components/alert/alert.custom.styles.d.ts +2 -0
  80. package/dist/components/alert/alert.custom.styles.js +8 -0
  81. package/dist/components/alert/alert.custom.styles.js.map +7 -0
  82. package/dist/components/alert/alert.d.ts +8 -0
  83. package/dist/components/alert/alert.js +28 -0
  84. package/dist/components/alert/alert.js.map +7 -0
  85. package/dist/components/alert/alert.styles.d.ts +2 -0
  86. package/dist/components/alert/alert.styles.js +8 -0
  87. package/dist/components/alert/alert.styles.js.map +7 -0
  88. package/dist/components/badge/badge.component.js +4 -4
  89. package/dist/components/badge/badge.js +5 -5
  90. package/dist/components/button/button.component.js +9 -9
  91. package/dist/components/button/button.js +10 -10
  92. package/dist/components/button-group/button-group.component.js +2 -2
  93. package/dist/components/button-group/button-group.js +3 -3
  94. package/dist/components/checkbox/checkbox.component.js +7 -7
  95. package/dist/components/checkbox/checkbox.js +8 -8
  96. package/dist/components/divider/divider.component.js +2 -2
  97. package/dist/components/divider/divider.js +3 -3
  98. package/dist/components/drawer/drawer.component.js +10 -10
  99. package/dist/components/drawer/drawer.js +11 -11
  100. package/dist/components/dropdown/dropdown.component.js +4 -4
  101. package/dist/components/dropdown/dropdown.js +5 -5
  102. package/dist/components/header/header.component.js +7 -7
  103. package/dist/components/header/header.js +8 -8
  104. package/dist/components/icon/icon.component.js +4 -4
  105. package/dist/components/icon/icon.js +5 -5
  106. package/dist/components/icon-button/icon-button.component.js +5 -5
  107. package/dist/components/icon-button/icon-button.js +6 -6
  108. package/dist/components/input/input.component.js +9 -9
  109. package/dist/components/input/input.js +10 -10
  110. package/dist/components/menu/menu.component.js +2 -2
  111. package/dist/components/menu/menu.js +3 -3
  112. package/dist/components/menu-item/menu-item.component.js +8 -8
  113. package/dist/components/menu-item/menu-item.js +9 -9
  114. package/dist/components/menu-label/menu-label.component.js +3 -3
  115. package/dist/components/menu-label/menu-label.js +4 -4
  116. package/dist/components/nav-item/nav-item.component.js +3 -3
  117. package/dist/components/nav-item/nav-item.js +4 -4
  118. package/dist/components/optgroup/optgroup.component.js +3 -3
  119. package/dist/components/optgroup/optgroup.js +4 -4
  120. package/dist/components/option/option.component.js +7 -7
  121. package/dist/components/option/option.js +8 -8
  122. package/dist/components/popup/popup.component.js +2 -2
  123. package/dist/components/popup/popup.js +3 -3
  124. package/dist/components/prio-nav/prio-nav.component.js +13 -13
  125. package/dist/components/prio-nav/prio-nav.js +14 -14
  126. package/dist/components/progress-bar/progress-bar.component.d.ts +31 -0
  127. package/dist/components/progress-bar/progress-bar.component.js +13 -0
  128. package/dist/components/progress-bar/progress-bar.component.js.map +7 -0
  129. package/dist/components/progress-bar/progress-bar.custom.styles.d.ts +2 -0
  130. package/dist/components/progress-bar/progress-bar.custom.styles.js +8 -0
  131. package/dist/components/progress-bar/progress-bar.custom.styles.js.map +7 -0
  132. package/dist/components/progress-bar/progress-bar.d.ts +8 -0
  133. package/dist/components/progress-bar/progress-bar.js +14 -0
  134. package/dist/components/progress-bar/progress-bar.js.map +7 -0
  135. package/dist/components/progress-bar/progress-bar.styles.d.ts +2 -0
  136. package/dist/components/progress-bar/progress-bar.styles.js +8 -0
  137. package/dist/components/progress-bar/progress-bar.styles.js.map +7 -0
  138. package/dist/components/progress-ring/progress-ring.component.js +2 -2
  139. package/dist/components/progress-ring/progress-ring.js +3 -3
  140. package/dist/components/radio/radio.component.js +5 -5
  141. package/dist/components/radio/radio.js +6 -6
  142. package/dist/components/radio-button/radio-button.component.js +2 -2
  143. package/dist/components/radio-button/radio-button.js +3 -3
  144. package/dist/components/radio-group/radio-group.component.js +4 -4
  145. package/dist/components/radio-group/radio-group.js +5 -5
  146. package/dist/components/select/select.component.js +12 -12
  147. package/dist/components/select/select.js +13 -13
  148. package/dist/components/side-nav/side-nav.component.js +13 -13
  149. package/dist/components/side-nav/side-nav.js +14 -14
  150. package/dist/components/spinner/spinner.component.js +2 -2
  151. package/dist/components/switch/switch.component.js +2 -2
  152. package/dist/components/switch/switch.js +3 -3
  153. package/dist/components/tag/tag.component.js +7 -7
  154. package/dist/components/tag/tag.js +8 -8
  155. package/dist/components/textarea/textarea.component.js +2 -2
  156. package/dist/components/textarea/textarea.js +3 -3
  157. package/dist/custom-elements.json +403 -1
  158. package/dist/internal/test/data-testid-helpers.d.ts +12 -0
  159. package/dist/synergy.d.ts +2 -0
  160. package/dist/synergy.js +117 -103
  161. package/dist/themes/utility.css +1 -1
  162. package/dist/vscode.html-custom-data.json +65 -0
  163. package/package.json +3 -3
  164. /package/dist/chunks/{chunk.MU2UKMFS.js.map → chunk.2HMAZW6A.js.map} +0 -0
  165. /package/dist/chunks/{chunk.XH3MA254.js.map → chunk.35WADEQD.js.map} +0 -0
  166. /package/dist/chunks/{chunk.ALJZ43KV.js.map → chunk.3NEF2ECB.js.map} +0 -0
  167. /package/dist/chunks/{chunk.RH56E6RP.js.map → chunk.3Z63ZDCN.js.map} +0 -0
  168. /package/dist/chunks/{chunk.IZUY7TUK.js.map → chunk.47JB5OS5.js.map} +0 -0
  169. /package/dist/chunks/{chunk.DP66NN4T.js.map → chunk.524IJCDT.js.map} +0 -0
  170. /package/dist/chunks/{chunk.FRDS4YDO.js.map → chunk.54HPCZLM.js.map} +0 -0
  171. /package/dist/chunks/{chunk.5G2YSQBG.js.map → chunk.5NSIAXSA.js.map} +0 -0
  172. /package/dist/chunks/{chunk.VJWNNZNH.js.map → chunk.A6AAFCG3.js.map} +0 -0
  173. /package/dist/chunks/{chunk.CFFJSWFS.js.map → chunk.AOQTVAEY.js.map} +0 -0
  174. /package/dist/chunks/{chunk.MR7U25T2.js.map → chunk.AQKOFOYX.js.map} +0 -0
  175. /package/dist/chunks/{chunk.NVEZ4QNM.js.map → chunk.AUURIE7A.js.map} +0 -0
  176. /package/dist/chunks/{chunk.ITVKE7NY.js.map → chunk.AWAHSLMZ.js.map} +0 -0
  177. /package/dist/chunks/{chunk.G34JOXVF.js.map → chunk.CKQLSMDO.js.map} +0 -0
  178. /package/dist/chunks/{chunk.O54BQSFI.js.map → chunk.CSXBPQFP.js.map} +0 -0
  179. /package/dist/chunks/{chunk.ENPKDAIZ.js.map → chunk.CWHSZ4BH.js.map} +0 -0
  180. /package/dist/chunks/{chunk.POVJ44KS.js.map → chunk.DHBMSKDO.js.map} +0 -0
  181. /package/dist/chunks/{chunk.QTL6QHN6.js.map → chunk.DKUZB46V.js.map} +0 -0
  182. /package/dist/chunks/{chunk.EWF2AO27.js.map → chunk.EPZGNWBV.js.map} +0 -0
  183. /package/dist/chunks/{chunk.S7GUBN44.js.map → chunk.EUKFLHGG.js.map} +0 -0
  184. /package/dist/chunks/{chunk.VFL2ABHB.js.map → chunk.EZDC4UMG.js.map} +0 -0
  185. /package/dist/chunks/{chunk.53VFVSIM.js.map → chunk.F4A2CST4.js.map} +0 -0
  186. /package/dist/chunks/{chunk.GBXK6QMT.js.map → chunk.FQFZOZEN.js.map} +0 -0
  187. /package/dist/chunks/{chunk.OPIYLV55.js.map → chunk.FTBYTDD5.js.map} +0 -0
  188. /package/dist/chunks/{chunk.KTX5YB4Z.js.map → chunk.FTG2II25.js.map} +0 -0
  189. /package/dist/chunks/{chunk.FJGYUKQB.js.map → chunk.GE3ZKSIL.js.map} +0 -0
  190. /package/dist/chunks/{chunk.K5FUJGJ7.js.map → chunk.HAOJSHHP.js.map} +0 -0
  191. /package/dist/chunks/{chunk.3MHH6ND2.js.map → chunk.HL7SBENS.js.map} +0 -0
  192. /package/dist/chunks/{chunk.TWTFELWJ.js.map → chunk.HXG34EFO.js.map} +0 -0
  193. /package/dist/chunks/{chunk.R7ZKZ6JE.js.map → chunk.I4HVPXQK.js.map} +0 -0
  194. /package/dist/chunks/{chunk.B4VL2R3N.js.map → chunk.IFBYW5FA.js.map} +0 -0
  195. /package/dist/chunks/{chunk.YJAGURE4.js.map → chunk.IGFBLFXD.js.map} +0 -0
  196. /package/dist/chunks/{chunk.6CUDSTFZ.js.map → chunk.JHY3MH4D.js.map} +0 -0
  197. /package/dist/chunks/{chunk.ORRBYZK7.js.map → chunk.L3ANONV5.js.map} +0 -0
  198. /package/dist/chunks/{chunk.WV7JKJPD.js.map → chunk.L55DODNB.js.map} +0 -0
  199. /package/dist/chunks/{chunk.XDKUBSEZ.js.map → chunk.LDN3IDWU.js.map} +0 -0
  200. /package/dist/chunks/{chunk.ZP62IDKA.js.map → chunk.LJJHFA3A.js.map} +0 -0
  201. /package/dist/chunks/{chunk.XALEH2Z2.js.map → chunk.LT2IOL3W.js.map} +0 -0
  202. /package/dist/chunks/{chunk.AMHVRA6L.js.map → chunk.NSW46LNB.js.map} +0 -0
  203. /package/dist/chunks/{chunk.XOEDYQWT.js.map → chunk.O63F2VQH.js.map} +0 -0
  204. /package/dist/chunks/{chunk.AYPU2CVS.js.map → chunk.PIGPCN4I.js.map} +0 -0
  205. /package/dist/chunks/{chunk.3NKRV5WI.js.map → chunk.RA4T4PSL.js.map} +0 -0
  206. /package/dist/chunks/{chunk.3WXUF3OF.js.map → chunk.RKLLBPDJ.js.map} +0 -0
  207. /package/dist/chunks/{chunk.XHHUDQGP.js.map → chunk.RWIYH2J5.js.map} +0 -0
  208. /package/dist/chunks/{chunk.QO53BVNG.js.map → chunk.SOA43S6O.js.map} +0 -0
  209. /package/dist/chunks/{chunk.T4CNSRSR.js.map → chunk.SW3IVEWX.js.map} +0 -0
  210. /package/dist/chunks/{chunk.ZSZ3RXHE.js.map → chunk.TGGCQSF3.js.map} +0 -0
  211. /package/dist/chunks/{chunk.LLS2ZY55.js.map → chunk.TLBRAHTC.js.map} +0 -0
  212. /package/dist/chunks/{chunk.VC3APXJ3.js.map → chunk.TVUPDAKK.js.map} +0 -0
  213. /package/dist/chunks/{chunk.HWDX5ZOJ.js.map → chunk.UEVDP3J5.js.map} +0 -0
  214. /package/dist/chunks/{chunk.MKYRLUII.js.map → chunk.VMECHIZN.js.map} +0 -0
  215. /package/dist/chunks/{chunk.JGXFT7JF.js.map → chunk.VWZE6BIA.js.map} +0 -0
  216. /package/dist/chunks/{chunk.YOBIFHIM.js.map → chunk.WQNQONGU.js.map} +0 -0
  217. /package/dist/chunks/{chunk.HSRG6R67.js.map → chunk.YLVTDJCD.js.map} +0 -0
  218. /package/dist/chunks/{chunk.I5UERUDK.js.map → chunk.YVG2RYSG.js.map} +0 -0
  219. /package/dist/chunks/{chunk.4LFIZT4V.js.map → chunk.YXI6WDAW.js.map} +0 -0
  220. /package/dist/chunks/{chunk.QV2W7HAY.js.map → chunk.ZGVJ3KBH.js.map} +0 -0
@@ -2,6 +2,263 @@
2
2
  "schemaVersion": "1.0.0",
3
3
  "readme": "",
4
4
  "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "components/alert/alert.js",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "",
12
+ "name": "SynAlert",
13
+ "cssParts": [
14
+ {
15
+ "description": "The component's base wrapper.",
16
+ "name": "base"
17
+ },
18
+ {
19
+ "description": "The container that wraps the optional icon.",
20
+ "name": "icon"
21
+ },
22
+ {
23
+ "description": "The container that wraps the alert's main content.",
24
+ "name": "message"
25
+ },
26
+ {
27
+ "description": "The close button, an `<syn-icon-button>`.",
28
+ "name": "close-button"
29
+ },
30
+ {
31
+ "description": "The close button's exported `base` part.",
32
+ "name": "close-button__base"
33
+ }
34
+ ],
35
+ "slots": [
36
+ {
37
+ "description": "The alert's main content.",
38
+ "name": ""
39
+ },
40
+ {
41
+ "description": "An icon to show in the alert. Works best with `<syn-icon>`.",
42
+ "name": "icon"
43
+ }
44
+ ],
45
+ "members": [
46
+ {
47
+ "kind": "field",
48
+ "name": "dependencies",
49
+ "type": {
50
+ "text": "object"
51
+ },
52
+ "static": true,
53
+ "default": "{ 'syn-icon-button': SynIconButton }"
54
+ },
55
+ {
56
+ "kind": "field",
57
+ "name": "autoHideTimeout",
58
+ "type": {
59
+ "text": "number"
60
+ },
61
+ "privacy": "private"
62
+ },
63
+ {
64
+ "kind": "field",
65
+ "name": "hasSlotController",
66
+ "privacy": "private",
67
+ "readonly": true,
68
+ "default": "new HasSlotController(this, 'icon', 'suffix')"
69
+ },
70
+ {
71
+ "kind": "field",
72
+ "name": "localize",
73
+ "privacy": "private",
74
+ "readonly": true,
75
+ "default": "new LocalizeController(this)"
76
+ },
77
+ {
78
+ "kind": "field",
79
+ "name": "base",
80
+ "type": {
81
+ "text": "HTMLElement"
82
+ }
83
+ },
84
+ {
85
+ "kind": "field",
86
+ "name": "open",
87
+ "type": {
88
+ "text": "boolean"
89
+ },
90
+ "default": "false",
91
+ "description": "Indicates whether or not the alert is open. You can toggle this attribute to show and hide the alert, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the alert's open state.",
92
+ "attribute": "open",
93
+ "reflects": true
94
+ },
95
+ {
96
+ "kind": "field",
97
+ "name": "closable",
98
+ "type": {
99
+ "text": "boolean"
100
+ },
101
+ "default": "false",
102
+ "description": "Enables a close button that allows the user to dismiss the alert.",
103
+ "attribute": "closable",
104
+ "reflects": true
105
+ },
106
+ {
107
+ "kind": "field",
108
+ "name": "variant",
109
+ "type": {
110
+ "text": "'primary' | 'success' | 'neutral' | 'warning' | 'danger'"
111
+ },
112
+ "default": "'primary'",
113
+ "description": "The alert's theme variant.",
114
+ "attribute": "variant",
115
+ "reflects": true
116
+ },
117
+ {
118
+ "kind": "field",
119
+ "name": "duration",
120
+ "default": "Infinity",
121
+ "description": "The length of time, in milliseconds, the alert will show before closing itself. If the user interacts with\nthe alert before it closes (e.g. moves the mouse over it), the timer will restart. Defaults to `Infinity`, meaning\nthe alert will not close on its own.",
122
+ "attribute": "duration"
123
+ },
124
+ {
125
+ "kind": "method",
126
+ "name": "restartAutoHide",
127
+ "privacy": "private"
128
+ },
129
+ {
130
+ "kind": "method",
131
+ "name": "handleCloseClick",
132
+ "privacy": "private"
133
+ },
134
+ {
135
+ "kind": "method",
136
+ "name": "handleMouseMove",
137
+ "privacy": "private"
138
+ },
139
+ {
140
+ "kind": "method",
141
+ "name": "handleOpenChange"
142
+ },
143
+ {
144
+ "kind": "method",
145
+ "name": "handleDurationChange"
146
+ },
147
+ {
148
+ "kind": "method",
149
+ "name": "show",
150
+ "description": "Shows the alert."
151
+ },
152
+ {
153
+ "kind": "method",
154
+ "name": "hide",
155
+ "description": "Hides the alert"
156
+ },
157
+ {
158
+ "kind": "method",
159
+ "name": "toast",
160
+ "description": "Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when\ndismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by\ncalling this method again. The returned promise will resolve after the alert is hidden."
161
+ }
162
+ ],
163
+ "events": [
164
+ {
165
+ "description": "Emitted when the alert opens.",
166
+ "name": "syn-show",
167
+ "reactName": "onSynShow",
168
+ "eventName": "SynShowEvent"
169
+ },
170
+ {
171
+ "description": "Emitted after the alert opens and all animations are complete.",
172
+ "name": "syn-after-show",
173
+ "reactName": "onSynAfterShow",
174
+ "eventName": "SynAfterShowEvent"
175
+ },
176
+ {
177
+ "description": "Emitted when the alert closes.",
178
+ "name": "syn-hide",
179
+ "reactName": "onSynHide",
180
+ "eventName": "SynHideEvent"
181
+ },
182
+ {
183
+ "description": "Emitted after the alert closes and all animations are complete.",
184
+ "name": "syn-after-hide",
185
+ "reactName": "onSynAfterHide",
186
+ "eventName": "SynAfterHideEvent"
187
+ }
188
+ ],
189
+ "attributes": [
190
+ {
191
+ "name": "open",
192
+ "type": {
193
+ "text": "boolean"
194
+ },
195
+ "default": "false",
196
+ "description": "Indicates whether or not the alert is open. You can toggle this attribute to show and hide the alert, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the alert's open state.",
197
+ "fieldName": "open"
198
+ },
199
+ {
200
+ "name": "closable",
201
+ "type": {
202
+ "text": "boolean"
203
+ },
204
+ "default": "false",
205
+ "description": "Enables a close button that allows the user to dismiss the alert.",
206
+ "fieldName": "closable"
207
+ },
208
+ {
209
+ "name": "variant",
210
+ "type": {
211
+ "text": "'primary' | 'success' | 'neutral' | 'warning' | 'danger'"
212
+ },
213
+ "default": "'primary'",
214
+ "description": "The alert's theme variant.",
215
+ "fieldName": "variant"
216
+ },
217
+ {
218
+ "name": "duration",
219
+ "default": "Infinity",
220
+ "description": "The length of time, in milliseconds, the alert will show before closing itself. If the user interacts with\nthe alert before it closes (e.g. moves the mouse over it), the timer will restart. Defaults to `Infinity`, meaning\nthe alert will not close on its own.",
221
+ "fieldName": "duration"
222
+ }
223
+ ],
224
+ "superclass": {
225
+ "name": "SynergyElement",
226
+ "module": "/src/internal/synergy-element.js"
227
+ },
228
+ "summary": "Alerts are used to display important messages inline or as toast notifications.",
229
+ "tagNameWithoutPrefix": "alert",
230
+ "tagName": "syn-alert",
231
+ "customElement": true,
232
+ "jsDoc": "/**\n * @summary Alerts are used to display important messages inline or as toast notifications.\n * @documentation https://synergy.style/components/alert\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The alert's main content.\n * @slot icon - An icon to show in the alert. Works best with `<syn-icon>`.\n *\n * @event syn-show - Emitted when the alert opens.\n * @event syn-after-show - Emitted after the alert opens and all animations are complete.\n * @event syn-hide - Emitted when the alert closes.\n * @event syn-after-hide - Emitted after the alert closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart icon - The container that wraps the optional icon.\n * @csspart message - The container that wraps the alert's main content.\n * @csspart close-button - The close button, an `<syn-icon-button>`.\n * @csspart close-button__base - The close button's exported `base` part.\n *\n * @animation alert.show - The animation to use when showing the alert.\n * @animation alert.hide - The animation to use when hiding the alert.\n */",
233
+ "documentation": "https://synergy.style/components/alert",
234
+ "status": "stable",
235
+ "since": "2.0",
236
+ "dependencies": [
237
+ "syn-icon-button"
238
+ ],
239
+ "animations": [
240
+ {
241
+ "name": "alert.show",
242
+ "description": "The animation to use when showing the alert."
243
+ },
244
+ {
245
+ "name": "alert.hide",
246
+ "description": "The animation to use when hiding the alert."
247
+ }
248
+ ]
249
+ }
250
+ ],
251
+ "exports": [
252
+ {
253
+ "kind": "js",
254
+ "name": "default",
255
+ "declaration": {
256
+ "name": "SynAlert",
257
+ "module": "components/alert/alert.js"
258
+ }
259
+ }
260
+ ]
261
+ },
5
262
  {
6
263
  "kind": "javascript-module",
7
264
  "path": "components/badge/badge.js",
@@ -6110,6 +6367,151 @@
6110
6367
  }
6111
6368
  ]
6112
6369
  },
6370
+ {
6371
+ "kind": "javascript-module",
6372
+ "path": "components/progress-bar/progress-bar.js",
6373
+ "declarations": [
6374
+ {
6375
+ "kind": "class",
6376
+ "description": "",
6377
+ "name": "SynProgressBar",
6378
+ "cssProperties": [
6379
+ {
6380
+ "description": "The progress bar's height.",
6381
+ "name": "--height"
6382
+ },
6383
+ {
6384
+ "description": "The color of the track.",
6385
+ "name": "--track-color"
6386
+ },
6387
+ {
6388
+ "description": "The color of the indicator.",
6389
+ "name": "--indicator-color"
6390
+ },
6391
+ {
6392
+ "description": "The color of the label.",
6393
+ "name": "--label-color"
6394
+ },
6395
+ {
6396
+ "description": "The speed of the progress bar when in indeterminate state.",
6397
+ "name": "--speed"
6398
+ }
6399
+ ],
6400
+ "cssParts": [
6401
+ {
6402
+ "description": "The component's base wrapper.",
6403
+ "name": "base"
6404
+ },
6405
+ {
6406
+ "description": "The progress bar's indicator.",
6407
+ "name": "indicator"
6408
+ },
6409
+ {
6410
+ "description": "The progress bar's label.",
6411
+ "name": "label"
6412
+ }
6413
+ ],
6414
+ "slots": [
6415
+ {
6416
+ "description": "A label to show inside the progress indicator.",
6417
+ "name": ""
6418
+ }
6419
+ ],
6420
+ "members": [
6421
+ {
6422
+ "kind": "field",
6423
+ "name": "localize",
6424
+ "privacy": "private",
6425
+ "readonly": true,
6426
+ "default": "new LocalizeController(this)"
6427
+ },
6428
+ {
6429
+ "kind": "field",
6430
+ "name": "value",
6431
+ "type": {
6432
+ "text": "number"
6433
+ },
6434
+ "default": "0",
6435
+ "description": "The current progress as a percentage, 0 to 100.",
6436
+ "attribute": "value",
6437
+ "reflects": true
6438
+ },
6439
+ {
6440
+ "kind": "field",
6441
+ "name": "indeterminate",
6442
+ "type": {
6443
+ "text": "boolean"
6444
+ },
6445
+ "default": "false",
6446
+ "description": "When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state.",
6447
+ "attribute": "indeterminate",
6448
+ "reflects": true
6449
+ },
6450
+ {
6451
+ "kind": "field",
6452
+ "name": "label",
6453
+ "type": {
6454
+ "text": "string"
6455
+ },
6456
+ "default": "''",
6457
+ "description": "A custom label for assistive devices.",
6458
+ "attribute": "label"
6459
+ }
6460
+ ],
6461
+ "attributes": [
6462
+ {
6463
+ "name": "value",
6464
+ "type": {
6465
+ "text": "number"
6466
+ },
6467
+ "default": "0",
6468
+ "description": "The current progress as a percentage, 0 to 100.",
6469
+ "fieldName": "value"
6470
+ },
6471
+ {
6472
+ "name": "indeterminate",
6473
+ "type": {
6474
+ "text": "boolean"
6475
+ },
6476
+ "default": "false",
6477
+ "description": "When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state.",
6478
+ "fieldName": "indeterminate"
6479
+ },
6480
+ {
6481
+ "name": "label",
6482
+ "type": {
6483
+ "text": "string"
6484
+ },
6485
+ "default": "''",
6486
+ "description": "A custom label for assistive devices.",
6487
+ "fieldName": "label"
6488
+ }
6489
+ ],
6490
+ "superclass": {
6491
+ "name": "SynergyElement",
6492
+ "module": "/src/internal/synergy-element.js"
6493
+ },
6494
+ "summary": "Progress bars are used to show the status of an ongoing operation.",
6495
+ "tagNameWithoutPrefix": "progress-bar",
6496
+ "tagName": "syn-progress-bar",
6497
+ "customElement": true,
6498
+ "jsDoc": "/**\n * @summary Progress bars are used to show the status of an ongoing operation.\n * @documentation https://synergy.style/components/progress-bar\n * @status stable\n * @since 2.0\n *\n * @slot - A label to show inside the progress indicator.\n *\n * @csspart base - The component's base wrapper.\n * @csspart indicator - The progress bar's indicator.\n * @csspart label - The progress bar's label.\n *\n * @cssproperty --height - The progress bar's height.\n * @cssproperty --track-color - The color of the track.\n * @cssproperty --indicator-color - The color of the indicator.\n * @cssproperty --label-color - The color of the label.\n * @cssproperty --speed - The speed of the progress bar when in indeterminate state.\n */",
6499
+ "documentation": "https://synergy.style/components/progress-bar",
6500
+ "status": "stable",
6501
+ "since": "2.0"
6502
+ }
6503
+ ],
6504
+ "exports": [
6505
+ {
6506
+ "kind": "js",
6507
+ "name": "default",
6508
+ "declaration": {
6509
+ "name": "SynProgressBar",
6510
+ "module": "components/progress-bar/progress-bar.js"
6511
+ }
6512
+ }
6513
+ ]
6514
+ },
6113
6515
  {
6114
6516
  "kind": "javascript-module",
6115
6517
  "path": "components/progress-ring/progress-ring.js",
@@ -9780,7 +10182,7 @@
9780
10182
  "package": {
9781
10183
  "name": "@synergy-design-system/components",
9782
10184
  "description": "",
9783
- "version": "1.18.0",
10185
+ "version": "1.20.0",
9784
10186
  "author": {
9785
10187
  "name": "SICK Global UX Foundation",
9786
10188
  "url": "https://www.sick.com"
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Allows you to find a DOM element based on the value of its `data-testid` attribute.
3
+ * This attribute can be used to decouple identifying dom elements for testing from
4
+ * styling (which is typically done via class selectors) or other ids which serve
5
+ * different purposes.
6
+ * See also https://kentcdodds.com/blog/making-your-ui-tests-resilient-to-change
7
+ * Inspired by https://testing-library.com/docs/queries/bytestid/
8
+ * @param {HTMLElement} container - A parent element of the DOM element to find
9
+ * @param {string} testId - The value of the `data-testid` attribute of the component to find.
10
+ * @returns The found element or null if there was no such element
11
+ */
12
+ export declare const queryByTestId: <T extends Element>(container: HTMLElement, testId: string) => T | null;
package/dist/synergy.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { default as SynAlert } from './components/alert/alert.js';
1
2
  export { default as SynBadge } from './components/badge/badge.js';
2
3
  export { default as SynButtonGroup } from './components/button-group/button-group.js';
3
4
  export { default as SynButton } from './components/button/button.js';
@@ -17,6 +18,7 @@ export { default as SynOptgroup } from './components/optgroup/optgroup.js';
17
18
  export { default as SynOption } from './components/option/option.js';
18
19
  export { default as SynPopup } from './components/popup/popup.js';
19
20
  export { default as SynPrioNav } from './components/prio-nav/prio-nav.js';
21
+ export { default as SynProgressBar } from './components/progress-bar/progress-bar.js';
20
22
  export { default as SynProgressRing } from './components/progress-ring/progress-ring.js';
21
23
  export { default as SynRadioButton } from './components/radio-button/radio-button.js';
22
24
  export { default as SynRadioGroup } from './components/radio-group/radio-group.js';