@synergy-design-system/components 1.7.0 → 1.8.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 (196) hide show
  1. package/README.md +8 -0
  2. package/dist/chunks/chunk.2IBWQADW.js +12 -0
  3. package/dist/chunks/chunk.2IBWQADW.js.map +7 -0
  4. package/dist/chunks/chunk.2KKPNUPU.js +110 -0
  5. package/dist/chunks/chunk.2KKPNUPU.js.map +7 -0
  6. package/dist/chunks/{chunk.Q7X5NOPZ.js → chunk.2XCLA4MQ.js} +2 -2
  7. package/dist/chunks/{chunk.AMTCNRDE.js → chunk.2Z2GYRLO.js} +2 -2
  8. package/dist/chunks/{chunk.4MYR27GF.js → chunk.35PHCFSV.js} +7 -7
  9. package/dist/chunks/{chunk.MFFJYORB.js → chunk.4CBN5LPQ.js} +4 -4
  10. package/dist/chunks/{chunk.OJREQD2D.js → chunk.4ZGN7AEC.js} +8 -8
  11. package/dist/chunks/{chunk.6V3HOZNE.js → chunk.5TFG753C.js} +2 -2
  12. package/dist/chunks/{chunk.ULMZHWWW.js → chunk.6PWB7EUW.js} +2 -2
  13. package/dist/chunks/{chunk.SMSP5C6C.js → chunk.A2WGLZOL.js} +2 -2
  14. package/dist/chunks/{chunk.XXF35USM.js → chunk.AJWDVZRI.js} +22 -98
  15. package/dist/chunks/chunk.AJWDVZRI.js.map +7 -0
  16. package/dist/chunks/{chunk.VZ7S7YYN.js → chunk.AVTU2BGE.js} +2 -2
  17. package/dist/chunks/{chunk.Z4NKFCKY.js → chunk.AWZ4FSAL.js} +10 -10
  18. package/dist/chunks/{chunk.7EGCXNF2.js → chunk.B75SET3J.js} +4 -4
  19. package/dist/chunks/{chunk.5THN2K5Q.js → chunk.BGPAHVPK.js} +2 -2
  20. package/dist/chunks/{chunk.PMTVLWNZ.js → chunk.COKV3ZN7.js} +2 -2
  21. package/dist/chunks/{chunk.5OPODPPZ.js → chunk.CUU2VBEZ.js} +2 -2
  22. package/dist/chunks/{chunk.XSXBQCWN.js → chunk.DAROCSFO.js} +4 -4
  23. package/dist/chunks/{chunk.HKCTVD3U.js → chunk.ERNEIORV.js} +4 -4
  24. package/dist/chunks/{chunk.USYR7G7Z.js → chunk.F3YEAZYJ.js} +2 -2
  25. package/dist/chunks/{chunk.IRT2DA6R.js → chunk.G66TSLVT.js} +10 -10
  26. package/dist/chunks/{chunk.NAX6WP3D.js → chunk.GUQN6XL4.js} +4 -4
  27. package/dist/chunks/chunk.GZVDP7WZ.js +541 -0
  28. package/dist/chunks/chunk.GZVDP7WZ.js.map +7 -0
  29. package/dist/chunks/{chunk.SBEIXLRW.js → chunk.HNRD7DBS.js} +2 -2
  30. package/dist/chunks/{chunk.LWXCBEHD.js → chunk.HW5TASOL.js} +5 -5
  31. package/dist/chunks/{chunk.TUYEX4KP.js → chunk.JBHQJWOB.js} +5 -5
  32. package/dist/chunks/{chunk.HG5QC5EW.js → chunk.JSO3PKB4.js} +2 -2
  33. package/dist/chunks/{chunk.RA2WSKQT.js → chunk.K4ELZCXB.js} +2 -2
  34. package/dist/chunks/{chunk.JAKJHV44.js → chunk.KA7L2PMA.js} +8 -8
  35. package/dist/chunks/{chunk.EI34C7LC.js → chunk.MB3YZTYP.js} +5 -5
  36. package/dist/chunks/{chunk.7KSU2SUD.js → chunk.MRAXEK5D.js} +2 -2
  37. package/dist/chunks/{chunk.SXW2KV3B.js → chunk.NAAFLDZ3.js} +2 -2
  38. package/dist/chunks/chunk.NV7W5R6V.js +173 -0
  39. package/dist/chunks/chunk.NV7W5R6V.js.map +7 -0
  40. package/dist/chunks/{chunk.7VOPIPHW.js → chunk.NWWHBSV7.js} +2 -2
  41. package/dist/chunks/{chunk.KP7SYG4K.js → chunk.OJUBVHIK.js} +2 -2
  42. package/dist/chunks/{chunk.BQG5LF7J.js → chunk.QAUTITK3.js} +2 -2
  43. package/dist/chunks/{chunk.DJOAQ4JU.js → chunk.QNDC5KWA.js} +43 -2
  44. package/dist/chunks/{chunk.CYN675Z6.js → chunk.RS4Z4KDT.js} +5 -5
  45. package/dist/chunks/{chunk.VQWUZKDS.js → chunk.RVFNEWM3.js} +2 -2
  46. package/dist/chunks/{chunk.GOVLCQY5.js → chunk.UG5FC6UD.js} +2 -2
  47. package/dist/chunks/{chunk.GMUVD5B2.js → chunk.UVYPEAQZ.js} +5 -5
  48. package/dist/chunks/chunk.UYD2OVFV.js +83 -0
  49. package/dist/chunks/chunk.UYD2OVFV.js.map +7 -0
  50. package/dist/chunks/{chunk.GHMKOVA3.js → chunk.WDX7XUUK.js} +3 -3
  51. package/dist/chunks/{chunk.GHMKOVA3.js.map → chunk.WDX7XUUK.js.map} +1 -1
  52. package/dist/chunks/{chunk.B6AKFQJS.js → chunk.WP6T5CG2.js} +2 -2
  53. package/dist/chunks/{chunk.3ZHSSMBL.js → chunk.XI6MSNHF.js} +3 -3
  54. package/dist/chunks/{chunk.5BOEKFIJ.js → chunk.Y4QKFZLK.js} +7 -7
  55. package/dist/components/button/button.component.js +11 -11
  56. package/dist/components/button/button.custom.styles.js +1 -1
  57. package/dist/components/button/button.js +12 -12
  58. package/dist/components/button/button.styles.js +1 -1
  59. package/dist/components/button-group/button-group.component.js +3 -3
  60. package/dist/components/button-group/button-group.js +4 -4
  61. package/dist/components/button-group/button-group.styles.js +1 -1
  62. package/dist/components/checkbox/checkbox.component.js +10 -10
  63. package/dist/components/checkbox/checkbox.custom.styles.js +1 -1
  64. package/dist/components/checkbox/checkbox.js +11 -11
  65. package/dist/components/checkbox/checkbox.styles.js +3 -3
  66. package/dist/components/divider/divider.component.js +4 -4
  67. package/dist/components/divider/divider.custom.styles.js +1 -1
  68. package/dist/components/divider/divider.js +5 -5
  69. package/dist/components/divider/divider.styles.js +1 -1
  70. package/dist/components/drawer/drawer.component.d.ts +109 -0
  71. package/dist/components/drawer/drawer.component.js +28 -0
  72. package/dist/components/drawer/drawer.component.js.map +7 -0
  73. package/dist/components/drawer/drawer.custom.styles.d.ts +2 -0
  74. package/dist/components/drawer/drawer.custom.styles.js +8 -0
  75. package/dist/components/drawer/drawer.custom.styles.js.map +7 -0
  76. package/dist/components/drawer/drawer.d.ts +8 -0
  77. package/dist/components/drawer/drawer.js +29 -0
  78. package/dist/components/drawer/drawer.js.map +7 -0
  79. package/dist/components/drawer/drawer.styles.d.ts +2 -0
  80. package/dist/components/drawer/drawer.styles.js +10 -0
  81. package/dist/components/drawer/drawer.styles.js.map +7 -0
  82. package/dist/components/icon/icon.component.js +6 -6
  83. package/dist/components/icon/icon.custom.styles.js +1 -1
  84. package/dist/components/icon/icon.js +7 -7
  85. package/dist/components/icon/icon.styles.js +1 -1
  86. package/dist/components/icon/library.default.js +1 -1
  87. package/dist/components/icon/library.js +1 -1
  88. package/dist/components/icon/library.system.js +1 -1
  89. package/dist/components/icon-button/icon-button.component.js +7 -7
  90. package/dist/components/icon-button/icon-button.custom.styles.js +1 -1
  91. package/dist/components/icon-button/icon-button.js +8 -8
  92. package/dist/components/icon-button/icon-button.styles.js +1 -1
  93. package/dist/components/input/input.component.js +10 -10
  94. package/dist/components/input/input.custom.styles.js +1 -1
  95. package/dist/components/input/input.js +11 -11
  96. package/dist/components/input/input.styles.js +1 -1
  97. package/dist/components/optgroup/optgroup.component.js +5 -5
  98. package/dist/components/optgroup/optgroup.js +6 -6
  99. package/dist/components/optgroup/optgroup.styles.js +1 -1
  100. package/dist/components/option/option.component.js +7 -7
  101. package/dist/components/option/option.custom.styles.js +1 -1
  102. package/dist/components/option/option.js +8 -8
  103. package/dist/components/option/option.styles.js +1 -1
  104. package/dist/components/popup/popup.component.js +3 -3
  105. package/dist/components/popup/popup.styles.js +1 -1
  106. package/dist/components/radio/radio.component.js +7 -7
  107. package/dist/components/radio/radio.custom.styles.js +1 -1
  108. package/dist/components/radio/radio.js +8 -8
  109. package/dist/components/radio/radio.styles.js +1 -1
  110. package/dist/components/radio-button/radio-button.component.js +4 -4
  111. package/dist/components/radio-button/radio-button.js +5 -5
  112. package/dist/components/radio-button/radio-button.styles.js +1 -1
  113. package/dist/components/radio-group/radio-group.component.js +7 -7
  114. package/dist/components/radio-group/radio-group.custom.styles.js +1 -1
  115. package/dist/components/radio-group/radio-group.js +8 -8
  116. package/dist/components/radio-group/radio-group.styles.js +1 -1
  117. package/dist/components/select/select.component.js +15 -14
  118. package/dist/components/select/select.custom.styles.js +1 -1
  119. package/dist/components/select/select.js +16 -15
  120. package/dist/components/select/select.styles.js +1 -1
  121. package/dist/components/spinner/spinner.component.js +3 -3
  122. package/dist/components/spinner/spinner.styles.js +1 -1
  123. package/dist/components/switch/switch.component.js +5 -5
  124. package/dist/components/switch/switch.custom.styles.js +1 -1
  125. package/dist/components/switch/switch.js +6 -6
  126. package/dist/components/switch/switch.styles.js +1 -1
  127. package/dist/components/tag/tag.component.js +8 -8
  128. package/dist/components/tag/tag.custom.styles.js +1 -1
  129. package/dist/components/tag/tag.js +9 -9
  130. package/dist/components/tag/tag.styles.js +1 -1
  131. package/dist/components/textarea/textarea.component.js +6 -6
  132. package/dist/components/textarea/textarea.custom.styles.js +1 -1
  133. package/dist/components/textarea/textarea.js +7 -7
  134. package/dist/components/textarea/textarea.styles.js +1 -1
  135. package/dist/custom-elements.json +411 -1
  136. package/dist/events/events.d.ts +2 -0
  137. package/dist/events/syn-initial-focus.d.ts +6 -0
  138. package/dist/events/syn-request-close.d.ts +8 -0
  139. package/dist/internal/active-elements.d.ts +15 -0
  140. package/dist/internal/modal.d.ts +21 -0
  141. package/dist/internal/string.d.ts +2 -0
  142. package/dist/internal/tabbable.d.ts +9 -0
  143. package/dist/synergy-autoloader.js +1 -1
  144. package/dist/synergy.d.ts +1 -0
  145. package/dist/synergy.js +78 -70
  146. package/dist/themes/utility.css +29 -0
  147. package/dist/translations/de.js +1 -1
  148. package/dist/translations/en.js +1 -1
  149. package/dist/utilities/animation-registry.js +2 -2
  150. package/dist/utilities/base-path.js +1 -1
  151. package/dist/utilities/form.js +3 -3
  152. package/dist/utilities/icon-library.js +1 -1
  153. package/dist/utilities/localize.js +1 -1
  154. package/dist/vscode.html-custom-data.json +42 -0
  155. package/dist/web-types.json +132 -1
  156. package/package.json +4 -3
  157. package/dist/chunks/chunk.XXF35USM.js.map +0 -7
  158. /package/dist/chunks/{chunk.Q7X5NOPZ.js.map → chunk.2XCLA4MQ.js.map} +0 -0
  159. /package/dist/chunks/{chunk.AMTCNRDE.js.map → chunk.2Z2GYRLO.js.map} +0 -0
  160. /package/dist/chunks/{chunk.4MYR27GF.js.map → chunk.35PHCFSV.js.map} +0 -0
  161. /package/dist/chunks/{chunk.MFFJYORB.js.map → chunk.4CBN5LPQ.js.map} +0 -0
  162. /package/dist/chunks/{chunk.OJREQD2D.js.map → chunk.4ZGN7AEC.js.map} +0 -0
  163. /package/dist/chunks/{chunk.6V3HOZNE.js.map → chunk.5TFG753C.js.map} +0 -0
  164. /package/dist/chunks/{chunk.ULMZHWWW.js.map → chunk.6PWB7EUW.js.map} +0 -0
  165. /package/dist/chunks/{chunk.SMSP5C6C.js.map → chunk.A2WGLZOL.js.map} +0 -0
  166. /package/dist/chunks/{chunk.VZ7S7YYN.js.map → chunk.AVTU2BGE.js.map} +0 -0
  167. /package/dist/chunks/{chunk.Z4NKFCKY.js.map → chunk.AWZ4FSAL.js.map} +0 -0
  168. /package/dist/chunks/{chunk.7EGCXNF2.js.map → chunk.B75SET3J.js.map} +0 -0
  169. /package/dist/chunks/{chunk.5THN2K5Q.js.map → chunk.BGPAHVPK.js.map} +0 -0
  170. /package/dist/chunks/{chunk.PMTVLWNZ.js.map → chunk.COKV3ZN7.js.map} +0 -0
  171. /package/dist/chunks/{chunk.5OPODPPZ.js.map → chunk.CUU2VBEZ.js.map} +0 -0
  172. /package/dist/chunks/{chunk.XSXBQCWN.js.map → chunk.DAROCSFO.js.map} +0 -0
  173. /package/dist/chunks/{chunk.HKCTVD3U.js.map → chunk.ERNEIORV.js.map} +0 -0
  174. /package/dist/chunks/{chunk.USYR7G7Z.js.map → chunk.F3YEAZYJ.js.map} +0 -0
  175. /package/dist/chunks/{chunk.IRT2DA6R.js.map → chunk.G66TSLVT.js.map} +0 -0
  176. /package/dist/chunks/{chunk.NAX6WP3D.js.map → chunk.GUQN6XL4.js.map} +0 -0
  177. /package/dist/chunks/{chunk.SBEIXLRW.js.map → chunk.HNRD7DBS.js.map} +0 -0
  178. /package/dist/chunks/{chunk.LWXCBEHD.js.map → chunk.HW5TASOL.js.map} +0 -0
  179. /package/dist/chunks/{chunk.TUYEX4KP.js.map → chunk.JBHQJWOB.js.map} +0 -0
  180. /package/dist/chunks/{chunk.HG5QC5EW.js.map → chunk.JSO3PKB4.js.map} +0 -0
  181. /package/dist/chunks/{chunk.RA2WSKQT.js.map → chunk.K4ELZCXB.js.map} +0 -0
  182. /package/dist/chunks/{chunk.JAKJHV44.js.map → chunk.KA7L2PMA.js.map} +0 -0
  183. /package/dist/chunks/{chunk.EI34C7LC.js.map → chunk.MB3YZTYP.js.map} +0 -0
  184. /package/dist/chunks/{chunk.7KSU2SUD.js.map → chunk.MRAXEK5D.js.map} +0 -0
  185. /package/dist/chunks/{chunk.SXW2KV3B.js.map → chunk.NAAFLDZ3.js.map} +0 -0
  186. /package/dist/chunks/{chunk.7VOPIPHW.js.map → chunk.NWWHBSV7.js.map} +0 -0
  187. /package/dist/chunks/{chunk.KP7SYG4K.js.map → chunk.OJUBVHIK.js.map} +0 -0
  188. /package/dist/chunks/{chunk.BQG5LF7J.js.map → chunk.QAUTITK3.js.map} +0 -0
  189. /package/dist/chunks/{chunk.DJOAQ4JU.js.map → chunk.QNDC5KWA.js.map} +0 -0
  190. /package/dist/chunks/{chunk.CYN675Z6.js.map → chunk.RS4Z4KDT.js.map} +0 -0
  191. /package/dist/chunks/{chunk.VQWUZKDS.js.map → chunk.RVFNEWM3.js.map} +0 -0
  192. /package/dist/chunks/{chunk.GOVLCQY5.js.map → chunk.UG5FC6UD.js.map} +0 -0
  193. /package/dist/chunks/{chunk.GMUVD5B2.js.map → chunk.UVYPEAQZ.js.map} +0 -0
  194. /package/dist/chunks/{chunk.B6AKFQJS.js.map → chunk.WP6T5CG2.js.map} +0 -0
  195. /package/dist/chunks/{chunk.3ZHSSMBL.js.map → chunk.XI6MSNHF.js.map} +0 -0
  196. /package/dist/chunks/{chunk.5BOEKFIJ.js.map → chunk.Y4QKFZLK.js.map} +0 -0
@@ -1263,6 +1263,416 @@
1263
1263
  }
1264
1264
  ]
1265
1265
  },
1266
+ {
1267
+ "kind": "javascript-module",
1268
+ "path": "components/drawer/drawer.js",
1269
+ "declarations": [
1270
+ {
1271
+ "kind": "class",
1272
+ "description": "",
1273
+ "name": "SynDrawer",
1274
+ "cssProperties": [
1275
+ {
1276
+ "description": "The preferred size of the drawer. This will be applied to the drawer's width or height depending on its `placement`. Note that the drawer will shrink to accommodate smaller screens.",
1277
+ "name": "--size"
1278
+ },
1279
+ {
1280
+ "description": "The amount of padding to use for the header.",
1281
+ "name": "--header-spacing"
1282
+ },
1283
+ {
1284
+ "description": "The amount of padding to use for the body.",
1285
+ "name": "--body-spacing"
1286
+ },
1287
+ {
1288
+ "description": "The amount of padding to use for the footer.",
1289
+ "name": "--footer-spacing"
1290
+ }
1291
+ ],
1292
+ "cssParts": [
1293
+ {
1294
+ "description": "The component's base wrapper.",
1295
+ "name": "base"
1296
+ },
1297
+ {
1298
+ "description": "The overlay that covers the screen behind the drawer.",
1299
+ "name": "overlay"
1300
+ },
1301
+ {
1302
+ "description": "The drawer's panel (where the drawer and its content are rendered).",
1303
+ "name": "panel"
1304
+ },
1305
+ {
1306
+ "description": "The drawer's header. This element wraps the title and header actions.",
1307
+ "name": "header"
1308
+ },
1309
+ {
1310
+ "description": "Optional actions to add to the header. Works best with `<syn-icon-button>`.",
1311
+ "name": "header-actions"
1312
+ },
1313
+ {
1314
+ "description": "The drawer's title.",
1315
+ "name": "title"
1316
+ },
1317
+ {
1318
+ "description": "The close button, an `<syn-icon-button>`.",
1319
+ "name": "close-button"
1320
+ },
1321
+ {
1322
+ "description": "The close button's exported `base` part.",
1323
+ "name": "close-button__base"
1324
+ },
1325
+ {
1326
+ "description": "The drawer's body.",
1327
+ "name": "body"
1328
+ },
1329
+ {
1330
+ "description": "The drawer's footer.",
1331
+ "name": "footer"
1332
+ }
1333
+ ],
1334
+ "slots": [
1335
+ {
1336
+ "description": "The drawer's main content.",
1337
+ "name": ""
1338
+ },
1339
+ {
1340
+ "description": "The drawer's label. Alternatively, you can use the `label` attribute.",
1341
+ "name": "label"
1342
+ },
1343
+ {
1344
+ "description": "Optional actions to add to the header. Works best with `<syn-icon-button>`.",
1345
+ "name": "header-actions"
1346
+ },
1347
+ {
1348
+ "description": "The drawer's footer, usually one or more buttons representing various options.",
1349
+ "name": "footer"
1350
+ }
1351
+ ],
1352
+ "members": [
1353
+ {
1354
+ "kind": "field",
1355
+ "name": "dependencies",
1356
+ "type": {
1357
+ "text": "object"
1358
+ },
1359
+ "static": true,
1360
+ "default": "{ 'syn-icon-button': SynIconButton }"
1361
+ },
1362
+ {
1363
+ "kind": "field",
1364
+ "name": "hasSlotController",
1365
+ "privacy": "private",
1366
+ "readonly": true,
1367
+ "default": "new HasSlotController(this, 'footer')"
1368
+ },
1369
+ {
1370
+ "kind": "field",
1371
+ "name": "localize",
1372
+ "privacy": "private",
1373
+ "readonly": true,
1374
+ "default": "new LocalizeController(this)"
1375
+ },
1376
+ {
1377
+ "kind": "field",
1378
+ "name": "originalTrigger",
1379
+ "type": {
1380
+ "text": "HTMLElement | null"
1381
+ },
1382
+ "privacy": "private"
1383
+ },
1384
+ {
1385
+ "kind": "field",
1386
+ "name": "modal",
1387
+ "privacy": "public",
1388
+ "default": "new Modal(this)",
1389
+ "description": "Exposes the internal modal utility that controls focus trapping. To temporarily disable focus trapping and allow third-party modals spawned from an active Synergy modal, call `modal.activateExternal()` when the third-party modal opens. Upon closing, call `modal.deactivateExternal()` to restore Synergy's focus trapping."
1390
+ },
1391
+ {
1392
+ "kind": "field",
1393
+ "name": "drawer",
1394
+ "type": {
1395
+ "text": "HTMLElement"
1396
+ }
1397
+ },
1398
+ {
1399
+ "kind": "field",
1400
+ "name": "panel",
1401
+ "type": {
1402
+ "text": "HTMLElement"
1403
+ }
1404
+ },
1405
+ {
1406
+ "kind": "field",
1407
+ "name": "overlay",
1408
+ "type": {
1409
+ "text": "HTMLElement"
1410
+ }
1411
+ },
1412
+ {
1413
+ "kind": "field",
1414
+ "name": "open",
1415
+ "type": {
1416
+ "text": "boolean"
1417
+ },
1418
+ "default": "false",
1419
+ "description": "Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.",
1420
+ "attribute": "open",
1421
+ "reflects": true
1422
+ },
1423
+ {
1424
+ "kind": "field",
1425
+ "name": "label",
1426
+ "type": {
1427
+ "text": "string"
1428
+ },
1429
+ "default": "''",
1430
+ "description": "The drawer's label as displayed in the header. You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.",
1431
+ "attribute": "label",
1432
+ "reflects": true
1433
+ },
1434
+ {
1435
+ "kind": "field",
1436
+ "name": "placement",
1437
+ "type": {
1438
+ "text": "'top' | 'end' | 'bottom' | 'start'"
1439
+ },
1440
+ "default": "'end'",
1441
+ "description": "The direction from which the drawer will open.",
1442
+ "attribute": "placement",
1443
+ "reflects": true
1444
+ },
1445
+ {
1446
+ "kind": "field",
1447
+ "name": "contained",
1448
+ "type": {
1449
+ "text": "boolean"
1450
+ },
1451
+ "default": "false",
1452
+ "description": "By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\nits parent element, set this attribute and add `position: relative` to the parent.",
1453
+ "attribute": "contained",
1454
+ "reflects": true
1455
+ },
1456
+ {
1457
+ "kind": "field",
1458
+ "name": "noHeader",
1459
+ "type": {
1460
+ "text": "boolean"
1461
+ },
1462
+ "default": "false",
1463
+ "description": "Removes the header. This will also remove the default close button, so please ensure you provide an easy,\naccessible way for users to dismiss the drawer.",
1464
+ "attribute": "no-header",
1465
+ "reflects": true
1466
+ },
1467
+ {
1468
+ "kind": "method",
1469
+ "name": "requestClose",
1470
+ "privacy": "private",
1471
+ "parameters": [
1472
+ {
1473
+ "name": "source",
1474
+ "type": {
1475
+ "text": "'close-button' | 'keyboard' | 'overlay'"
1476
+ }
1477
+ }
1478
+ ]
1479
+ },
1480
+ {
1481
+ "kind": "method",
1482
+ "name": "addOpenListeners",
1483
+ "privacy": "private"
1484
+ },
1485
+ {
1486
+ "kind": "method",
1487
+ "name": "removeOpenListeners",
1488
+ "privacy": "private"
1489
+ },
1490
+ {
1491
+ "kind": "field",
1492
+ "name": "handleDocumentKeyDown",
1493
+ "privacy": "private"
1494
+ },
1495
+ {
1496
+ "kind": "method",
1497
+ "name": "handleOpenChange"
1498
+ },
1499
+ {
1500
+ "kind": "method",
1501
+ "name": "handleNoModalChange"
1502
+ },
1503
+ {
1504
+ "kind": "method",
1505
+ "name": "show",
1506
+ "description": "Shows the drawer."
1507
+ },
1508
+ {
1509
+ "kind": "method",
1510
+ "name": "hide",
1511
+ "description": "Hides the drawer"
1512
+ }
1513
+ ],
1514
+ "events": [
1515
+ {
1516
+ "description": "Emitted when the drawer opens.",
1517
+ "name": "syn-show",
1518
+ "reactName": "onSynShow",
1519
+ "eventName": "SynShowEvent"
1520
+ },
1521
+ {
1522
+ "description": "Emitted after the drawer opens and all animations are complete.",
1523
+ "name": "syn-after-show",
1524
+ "reactName": "onSynAfterShow",
1525
+ "eventName": "SynAfterShowEvent"
1526
+ },
1527
+ {
1528
+ "description": "Emitted when the drawer closes.",
1529
+ "name": "syn-hide",
1530
+ "reactName": "onSynHide",
1531
+ "eventName": "SynHideEvent"
1532
+ },
1533
+ {
1534
+ "description": "Emitted after the drawer closes and all animations are complete.",
1535
+ "name": "syn-after-hide",
1536
+ "reactName": "onSynAfterHide",
1537
+ "eventName": "SynAfterHideEvent"
1538
+ },
1539
+ {
1540
+ "description": "Emitted when the drawer opens and is ready to receive focus. Calling `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.",
1541
+ "name": "syn-initial-focus",
1542
+ "reactName": "onSynInitialFocus",
1543
+ "eventName": "SynInitialFocusEvent"
1544
+ },
1545
+ {
1546
+ "type": {
1547
+ "text": "{ source: 'close-button' | 'keyboard' | 'overlay' }"
1548
+ },
1549
+ "description": "Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in destructive behavior such as data loss.",
1550
+ "name": "syn-request-close",
1551
+ "reactName": "onSynRequestClose",
1552
+ "eventName": "SynRequestCloseEvent"
1553
+ }
1554
+ ],
1555
+ "attributes": [
1556
+ {
1557
+ "name": "open",
1558
+ "type": {
1559
+ "text": "boolean"
1560
+ },
1561
+ "default": "false",
1562
+ "description": "Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.",
1563
+ "fieldName": "open"
1564
+ },
1565
+ {
1566
+ "name": "label",
1567
+ "type": {
1568
+ "text": "string"
1569
+ },
1570
+ "default": "''",
1571
+ "description": "The drawer's label as displayed in the header. You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.",
1572
+ "fieldName": "label"
1573
+ },
1574
+ {
1575
+ "name": "placement",
1576
+ "type": {
1577
+ "text": "'top' | 'end' | 'bottom' | 'start'"
1578
+ },
1579
+ "default": "'end'",
1580
+ "description": "The direction from which the drawer will open.",
1581
+ "fieldName": "placement"
1582
+ },
1583
+ {
1584
+ "name": "contained",
1585
+ "type": {
1586
+ "text": "boolean"
1587
+ },
1588
+ "default": "false",
1589
+ "description": "By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\nits parent element, set this attribute and add `position: relative` to the parent.",
1590
+ "fieldName": "contained"
1591
+ },
1592
+ {
1593
+ "name": "no-header",
1594
+ "type": {
1595
+ "text": "boolean"
1596
+ },
1597
+ "default": "false",
1598
+ "description": "Removes the header. This will also remove the default close button, so please ensure you provide an easy,\naccessible way for users to dismiss the drawer.",
1599
+ "fieldName": "noHeader"
1600
+ }
1601
+ ],
1602
+ "superclass": {
1603
+ "name": "SynergyElement",
1604
+ "module": "/src/internal/synergy-element.js"
1605
+ },
1606
+ "summary": "Drawers slide in from a container to expose additional options and information.",
1607
+ "tagNameWithoutPrefix": "drawer",
1608
+ "tagName": "syn-drawer",
1609
+ "customElement": true,
1610
+ "jsDoc": "/**\n * @summary Drawers slide in from a container to expose additional options and information.\n * @documentation https://synergy.style/components/drawer\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The drawer's main content.\n * @slot label - The drawer's label. Alternatively, you can use the `label` attribute.\n * @slot header-actions - Optional actions to add to the header. Works best with `<syn-icon-button>`.\n * @slot footer - The drawer's footer, usually one or more buttons representing various options.\n *\n * @event syn-show - Emitted when the drawer opens.\n * @event syn-after-show - Emitted after the drawer opens and all animations are complete.\n * @event syn-hide - Emitted when the drawer closes.\n * @event syn-after-hide - Emitted after the drawer closes and all animations are complete.\n * @event syn-initial-focus - Emitted when the drawer opens and is ready to receive focus. Calling\n * `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.\n * @event {{ source: 'close-button' | 'keyboard' | 'overlay' }} syn-request-close - Emitted when the user attempts to\n * close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling\n * `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in\n * destructive behavior such as data loss.\n *\n * @csspart base - The component's base wrapper.\n * @csspart overlay - The overlay that covers the screen behind the drawer.\n * @csspart panel - The drawer's panel (where the drawer and its content are rendered).\n * @csspart header - The drawer's header. This element wraps the title and header actions.\n * @csspart header-actions - Optional actions to add to the header. Works best with `<syn-icon-button>`.\n * @csspart title - The drawer's title.\n * @csspart close-button - The close button, an `<syn-icon-button>`.\n * @csspart close-button__base - The close button's exported `base` part.\n * @csspart body - The drawer's body.\n * @csspart footer - The drawer's footer.\n *\n * @cssproperty --size - The preferred size of the drawer. This will be applied to the drawer's width or height\n * depending on its `placement`. Note that the drawer will shrink to accommodate smaller screens.\n * @cssproperty --header-spacing - The amount of padding to use for the header.\n * @cssproperty --body-spacing - The amount of padding to use for the body.\n * @cssproperty --footer-spacing - The amount of padding to use for the footer.\n *\n * @animation drawer.showTop - The animation to use when showing a drawer with `top` placement.\n * @animation drawer.showEnd - The animation to use when showing a drawer with `end` placement.\n * @animation drawer.showBottom - The animation to use when showing a drawer with `bottom` placement.\n * @animation drawer.showStart - The animation to use when showing a drawer with `start` placement.\n * @animation drawer.hideTop - The animation to use when hiding a drawer with `top` placement.\n * @animation drawer.hideEnd - The animation to use when hiding a drawer with `end` placement.\n * @animation drawer.hideBottom - The animation to use when hiding a drawer with `bottom` placement.\n * @animation drawer.hideStart - The animation to use when hiding a drawer with `start` placement.\n * @animation drawer.denyClose - The animation to use when a request to close the drawer is denied.\n * @animation drawer.overlay.show - The animation to use when showing the drawer's overlay.\n * @animation drawer.overlay.hide - The animation to use when hiding the drawer's overlay.\n *\n * @property modal - Exposes the internal modal utility that controls focus trapping. To temporarily disable focus\n * trapping and allow third-party modals spawned from an active Synergy modal, call `modal.activateExternal()` when\n * the third-party modal opens. Upon closing, call `modal.deactivateExternal()` to restore Synergy's focus trapping.\n */",
1611
+ "documentation": "https://synergy.style/components/drawer",
1612
+ "status": "stable",
1613
+ "since": "2.0",
1614
+ "dependencies": [
1615
+ "syn-icon-button"
1616
+ ],
1617
+ "animations": [
1618
+ {
1619
+ "name": "drawer.showTop",
1620
+ "description": "The animation to use when showing a drawer with `top` placement."
1621
+ },
1622
+ {
1623
+ "name": "drawer.showEnd",
1624
+ "description": "The animation to use when showing a drawer with `end` placement."
1625
+ },
1626
+ {
1627
+ "name": "drawer.showBottom",
1628
+ "description": "The animation to use when showing a drawer with `bottom` placement."
1629
+ },
1630
+ {
1631
+ "name": "drawer.showStart",
1632
+ "description": "The animation to use when showing a drawer with `start` placement."
1633
+ },
1634
+ {
1635
+ "name": "drawer.hideTop",
1636
+ "description": "The animation to use when hiding a drawer with `top` placement."
1637
+ },
1638
+ {
1639
+ "name": "drawer.hideEnd",
1640
+ "description": "The animation to use when hiding a drawer with `end` placement."
1641
+ },
1642
+ {
1643
+ "name": "drawer.hideBottom",
1644
+ "description": "The animation to use when hiding a drawer with `bottom` placement."
1645
+ },
1646
+ {
1647
+ "name": "drawer.hideStart",
1648
+ "description": "The animation to use when hiding a drawer with `start` placement."
1649
+ },
1650
+ {
1651
+ "name": "drawer.denyClose",
1652
+ "description": "The animation to use when a request to close the drawer is denied."
1653
+ },
1654
+ {
1655
+ "name": "drawer.overlay.show",
1656
+ "description": "The animation to use when showing the drawer's overlay."
1657
+ },
1658
+ {
1659
+ "name": "drawer.overlay.hide",
1660
+ "description": "The animation to use when hiding the drawer's overlay."
1661
+ }
1662
+ ]
1663
+ }
1664
+ ],
1665
+ "exports": [
1666
+ {
1667
+ "kind": "js",
1668
+ "name": "default",
1669
+ "declaration": {
1670
+ "name": "SynDrawer",
1671
+ "module": "components/drawer/drawer.js"
1672
+ }
1673
+ }
1674
+ ]
1675
+ },
1266
1676
  {
1267
1677
  "kind": "javascript-module",
1268
1678
  "path": "components/icon/icon.js",
@@ -6841,7 +7251,7 @@
6841
7251
  "package": {
6842
7252
  "name": "@synergy-design-system/components",
6843
7253
  "description": "",
6844
- "version": "1.7.0",
7254
+ "version": "1.8.0",
6845
7255
  "author": {
6846
7256
  "name": "SICK Global UX Foundation",
6847
7257
  "url": "https://www.sick.com"
@@ -6,9 +6,11 @@ export type * from './syn-clear.ts';
6
6
  export type * from './syn-error.ts';
7
7
  export type * from './syn-focus.ts';
8
8
  export type * from './syn-hide.ts';
9
+ export type * from './syn-initial-focus.ts';
9
10
  export type * from './syn-input.ts';
10
11
  export type * from './syn-invalid.ts';
11
12
  export type * from './syn-load.ts';
12
13
  export type * from './syn-remove.ts';
13
14
  export type * from './syn-reposition.ts';
15
+ export type * from './syn-request-close.ts';
14
16
  export type * from './syn-show.ts';
@@ -0,0 +1,6 @@
1
+ export type SynInitialFocusEvent = CustomEvent<Record<PropertyKey, never>>;
2
+ declare global {
3
+ interface GlobalEventHandlersEventMap {
4
+ 'syn-initial-focus': SynInitialFocusEvent;
5
+ }
6
+ }
@@ -0,0 +1,8 @@
1
+ export type SynRequestCloseEvent = CustomEvent<{
2
+ source: 'close-button' | 'keyboard' | 'overlay';
3
+ }>;
4
+ declare global {
5
+ interface GlobalEventHandlersEventMap {
6
+ 'syn-request-close': SynRequestCloseEvent;
7
+ }
8
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Use a generator so we can iterate and possibly break early.
3
+ * @example
4
+ * // to operate like a regular array. This kinda nullifies generator benefits, but worth knowing if you need the whole array.
5
+ * const allActiveElements = [...activeElements()]
6
+ *
7
+ * // Early return
8
+ * for (const activeElement of activeElements()) {
9
+ * if (<cond>) {
10
+ * break; // Break the loop, dont need to iterate over the whole array or store an array in memory!
11
+ * }
12
+ * }
13
+ */
14
+ export declare function activeElements(activeElement?: Element | null): Generator<Element>;
15
+ export declare function getDeepestActiveElement(): Element | undefined;
@@ -0,0 +1,21 @@
1
+ export default class Modal {
2
+ element: HTMLElement;
3
+ isExternalActivated: boolean;
4
+ tabDirection: 'forward' | 'backward';
5
+ currentFocus: HTMLElement | null;
6
+ constructor(element: HTMLElement);
7
+ /** Activates focus trapping. */
8
+ activate(): void;
9
+ /** Deactivates focus trapping. */
10
+ deactivate(): void;
11
+ /** Determines if this modal element is currently active or not. */
12
+ isActive(): boolean;
13
+ /** Activates external modal behavior and temporarily disables focus trapping. */
14
+ activateExternal(): void;
15
+ /** Deactivates external modal behavior and re-enables focus trapping. */
16
+ deactivateExternal(): void;
17
+ private checkFocus;
18
+ private handleFocusIn;
19
+ private handleKeyDown;
20
+ private handleKeyUp;
21
+ }
@@ -0,0 +1,2 @@
1
+ /** Converts the first letter of a string to uppercase */
2
+ export declare function uppercaseFirstLetter(string: string): string;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Returns the first and last bounding elements that are tabbable. This is more performant than checking every single
3
+ * element because it short-circuits after finding the first and last ones.
4
+ */
5
+ export declare function getTabbableBoundary(root: HTMLElement | ShadowRoot): {
6
+ start: HTMLElement;
7
+ end: HTMLElement;
8
+ };
9
+ export declare function getTabbableElements(root: HTMLElement | ShadowRoot): HTMLElement[];
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getBasePath
3
3
  } from "./chunks/chunk.C7624ITA.js";
4
- import "./chunks/chunk.DJOAQ4JU.js";
4
+ import "./chunks/chunk.QNDC5KWA.js";
5
5
 
6
6
  // src/synergy-autoloader.ts
7
7
  var observer = new MutationObserver((mutations) => {
package/dist/synergy.d.ts CHANGED
@@ -2,6 +2,7 @@ export { default as SynButtonGroup } from './components/button-group/button-grou
2
2
  export { default as SynButton } from './components/button/button.js';
3
3
  export { default as SynCheckbox } from './components/checkbox/checkbox.js';
4
4
  export { default as SynDivider } from './components/divider/divider.js';
5
+ export { default as SynDrawer } from './components/drawer/drawer.js';
5
6
  export { default as SynIconButton } from './components/icon-button/icon-button.js';
6
7
  export { default as SynIcon } from './components/icon/icon.js';
7
8
  export { default as SynInput } from './components/input/input.js';