@synergy-design-system/components 1.5.1 → 1.6.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 (120) hide show
  1. package/dist/chunks/chunk.2OLVTQ5P.js +254 -0
  2. package/dist/chunks/chunk.2OLVTQ5P.js.map +7 -0
  3. package/dist/chunks/{chunk.X4L3ZC6K.js → chunk.35NRVIX6.js} +2 -2
  4. package/dist/chunks/{chunk.SLW5NPQB.js → chunk.3CXUNQUU.js} +2 -2
  5. package/dist/chunks/{chunk.I3FGUPLH.js → chunk.47DEK3AO.js} +3 -3
  6. package/dist/chunks/{chunk.OKG27K27.js → chunk.4NOSS4QZ.js} +2 -2
  7. package/dist/chunks/{chunk.K5NVNHHD.js → chunk.4SRJCDZV.js} +2 -2
  8. package/dist/chunks/{chunk.IFE4G4PB.js → chunk.53VSNAHJ.js} +2 -2
  9. package/dist/chunks/{chunk.T72SACBE.js → chunk.7ONJ4JA4.js} +2 -2
  10. package/dist/chunks/{chunk.T72SACBE.js.map → chunk.7ONJ4JA4.js.map} +1 -1
  11. package/dist/chunks/{chunk.XSFEPYWK.js → chunk.7YLD4S5U.js} +2 -2
  12. package/dist/chunks/{chunk.4S6GR2Q7.js → chunk.AHNYYEO3.js} +2 -2
  13. package/dist/chunks/{chunk.DVCDA2IN.js → chunk.ASZUIIFW.js} +4 -4
  14. package/dist/chunks/{chunk.VIQZQ3S6.js → chunk.CCUKXHWY.js} +2 -2
  15. package/dist/chunks/{chunk.5FCLDQKW.js → chunk.CP33HLLJ.js} +3 -3
  16. package/dist/chunks/{chunk.GVCB2D7B.js → chunk.DEPIE7L2.js} +2 -2
  17. package/dist/chunks/{chunk.OAIA6MLB.js → chunk.EIISC7XJ.js} +2 -2
  18. package/dist/chunks/{chunk.KUZJTGHQ.js → chunk.EKOK7YPB.js} +5 -21
  19. package/dist/chunks/{chunk.KUZJTGHQ.js.map → chunk.EKOK7YPB.js.map} +2 -2
  20. package/dist/chunks/{chunk.V57DLRD2.js → chunk.GHX7BABO.js} +2 -2
  21. package/dist/chunks/{chunk.4STUWO3B.js → chunk.JR2N32YB.js} +3 -3
  22. package/dist/chunks/{chunk.O5XNATYN.js → chunk.LJU66FBY.js} +2 -2
  23. package/dist/chunks/{chunk.SAGHXH7E.js → chunk.LK73TOFQ.js} +2 -2
  24. package/dist/chunks/{chunk.DLPNGATM.js → chunk.LKNV6GM2.js} +2 -2
  25. package/dist/chunks/{chunk.QCDOK7E4.js → chunk.LRXZ5NNS.js} +2 -2
  26. package/dist/chunks/{chunk.UBTUEIMR.js → chunk.MI3ZASGH.js} +2 -2
  27. package/dist/chunks/{chunk.D3VKCPDE.js → chunk.NJ6E6J54.js} +162 -6
  28. package/dist/chunks/chunk.NJ6E6J54.js.map +7 -0
  29. package/dist/chunks/{chunk.IFDNGB63.js → chunk.NOSJYQ4B.js} +3 -3
  30. package/dist/chunks/{chunk.UYYPTTK2.js → chunk.NUBNCTFD.js} +2 -2
  31. package/dist/chunks/{chunk.QPANY6PY.js → chunk.QC7ZJSSL.js} +2 -2
  32. package/dist/chunks/{chunk.XFLQL2QO.js → chunk.QI2KJEOB.js} +3 -3
  33. package/dist/chunks/{chunk.FXTLCVXC.js → chunk.RDDQSC7I.js} +2 -2
  34. package/dist/chunks/{chunk.KRTGIYIX.js → chunk.S45EUGZP.js} +2 -2
  35. package/dist/chunks/{chunk.7MHXK5XU.js → chunk.UAVUFIYS.js} +2 -2
  36. package/dist/chunks/{chunk.64EZRK2A.js → chunk.V2BD43MN.js} +2 -2
  37. package/dist/chunks/{chunk.UTDK2ZT6.js → chunk.WEYUQ5AH.js} +5 -5
  38. package/dist/chunks/{chunk.KG3FXWCX.js → chunk.XBLXQAP4.js} +2 -2
  39. package/dist/chunks/{chunk.M3P4B2GP.js → chunk.XTZCBF65.js} +3 -3
  40. package/dist/chunks/{chunk.JDDBS57F.js → chunk.YCX24LPU.js} +3 -3
  41. package/dist/chunks/{chunk.YN2IXOBF.js → chunk.YS65LZV6.js} +2 -2
  42. package/dist/components/button/button.component.js +4 -4
  43. package/dist/components/button/button.js +5 -5
  44. package/dist/components/button-group/button-group.component.js +2 -2
  45. package/dist/components/button-group/button-group.js +3 -3
  46. package/dist/components/checkbox/checkbox.component.js +3 -3
  47. package/dist/components/checkbox/checkbox.js +4 -4
  48. package/dist/components/divider/divider.component.js +2 -2
  49. package/dist/components/divider/divider.js +3 -3
  50. package/dist/components/icon/icon.component.js +2 -2
  51. package/dist/components/icon/icon.js +3 -3
  52. package/dist/components/icon-button/icon-button.component.js +3 -3
  53. package/dist/components/icon-button/icon-button.js +4 -4
  54. package/dist/components/input/input.component.d.ts +15 -1
  55. package/dist/components/input/input.component.js +8 -5
  56. package/dist/components/input/input.custom.styles.js +1 -1
  57. package/dist/components/input/input.js +9 -6
  58. package/dist/components/input/input.styles.js +2 -2
  59. package/dist/components/optgroup/optgroup.component.js +3 -3
  60. package/dist/components/optgroup/optgroup.js +4 -4
  61. package/dist/components/option/option.component.js +3 -3
  62. package/dist/components/option/option.js +4 -4
  63. package/dist/components/popup/popup.component.js +2 -2
  64. package/dist/components/radio/radio.component.js +3 -3
  65. package/dist/components/radio/radio.js +4 -4
  66. package/dist/components/radio-button/radio-button.component.js +2 -2
  67. package/dist/components/radio-button/radio-button.js +3 -3
  68. package/dist/components/radio-group/radio-group.component.js +3 -3
  69. package/dist/components/radio-group/radio-group.js +4 -4
  70. package/dist/components/select/select.component.js +6 -6
  71. package/dist/components/select/select.js +7 -7
  72. package/dist/components/spinner/spinner.component.js +2 -2
  73. package/dist/components/switch/switch.component.js +2 -2
  74. package/dist/components/switch/switch.js +3 -3
  75. package/dist/components/tag/tag.component.js +4 -4
  76. package/dist/components/tag/tag.js +5 -5
  77. package/dist/components/textarea/textarea.component.js +2 -2
  78. package/dist/components/textarea/textarea.js +3 -3
  79. package/dist/custom-elements.json +196 -146
  80. package/dist/internal/longpress.d.ts +42 -0
  81. package/dist/synergy.js +37 -37
  82. package/dist/vscode.html-custom-data.json +19 -19
  83. package/dist/web-types.json +41 -33
  84. package/package.json +1 -1
  85. package/dist/chunks/chunk.B2EJGIGY.js +0 -84
  86. package/dist/chunks/chunk.B2EJGIGY.js.map +0 -7
  87. package/dist/chunks/chunk.D3VKCPDE.js.map +0 -7
  88. /package/dist/chunks/{chunk.X4L3ZC6K.js.map → chunk.35NRVIX6.js.map} +0 -0
  89. /package/dist/chunks/{chunk.SLW5NPQB.js.map → chunk.3CXUNQUU.js.map} +0 -0
  90. /package/dist/chunks/{chunk.I3FGUPLH.js.map → chunk.47DEK3AO.js.map} +0 -0
  91. /package/dist/chunks/{chunk.OKG27K27.js.map → chunk.4NOSS4QZ.js.map} +0 -0
  92. /package/dist/chunks/{chunk.K5NVNHHD.js.map → chunk.4SRJCDZV.js.map} +0 -0
  93. /package/dist/chunks/{chunk.IFE4G4PB.js.map → chunk.53VSNAHJ.js.map} +0 -0
  94. /package/dist/chunks/{chunk.XSFEPYWK.js.map → chunk.7YLD4S5U.js.map} +0 -0
  95. /package/dist/chunks/{chunk.4S6GR2Q7.js.map → chunk.AHNYYEO3.js.map} +0 -0
  96. /package/dist/chunks/{chunk.DVCDA2IN.js.map → chunk.ASZUIIFW.js.map} +0 -0
  97. /package/dist/chunks/{chunk.VIQZQ3S6.js.map → chunk.CCUKXHWY.js.map} +0 -0
  98. /package/dist/chunks/{chunk.5FCLDQKW.js.map → chunk.CP33HLLJ.js.map} +0 -0
  99. /package/dist/chunks/{chunk.GVCB2D7B.js.map → chunk.DEPIE7L2.js.map} +0 -0
  100. /package/dist/chunks/{chunk.OAIA6MLB.js.map → chunk.EIISC7XJ.js.map} +0 -0
  101. /package/dist/chunks/{chunk.V57DLRD2.js.map → chunk.GHX7BABO.js.map} +0 -0
  102. /package/dist/chunks/{chunk.4STUWO3B.js.map → chunk.JR2N32YB.js.map} +0 -0
  103. /package/dist/chunks/{chunk.O5XNATYN.js.map → chunk.LJU66FBY.js.map} +0 -0
  104. /package/dist/chunks/{chunk.SAGHXH7E.js.map → chunk.LK73TOFQ.js.map} +0 -0
  105. /package/dist/chunks/{chunk.DLPNGATM.js.map → chunk.LKNV6GM2.js.map} +0 -0
  106. /package/dist/chunks/{chunk.QCDOK7E4.js.map → chunk.LRXZ5NNS.js.map} +0 -0
  107. /package/dist/chunks/{chunk.UBTUEIMR.js.map → chunk.MI3ZASGH.js.map} +0 -0
  108. /package/dist/chunks/{chunk.IFDNGB63.js.map → chunk.NOSJYQ4B.js.map} +0 -0
  109. /package/dist/chunks/{chunk.UYYPTTK2.js.map → chunk.NUBNCTFD.js.map} +0 -0
  110. /package/dist/chunks/{chunk.QPANY6PY.js.map → chunk.QC7ZJSSL.js.map} +0 -0
  111. /package/dist/chunks/{chunk.XFLQL2QO.js.map → chunk.QI2KJEOB.js.map} +0 -0
  112. /package/dist/chunks/{chunk.FXTLCVXC.js.map → chunk.RDDQSC7I.js.map} +0 -0
  113. /package/dist/chunks/{chunk.KRTGIYIX.js.map → chunk.S45EUGZP.js.map} +0 -0
  114. /package/dist/chunks/{chunk.7MHXK5XU.js.map → chunk.UAVUFIYS.js.map} +0 -0
  115. /package/dist/chunks/{chunk.64EZRK2A.js.map → chunk.V2BD43MN.js.map} +0 -0
  116. /package/dist/chunks/{chunk.UTDK2ZT6.js.map → chunk.WEYUQ5AH.js.map} +0 -0
  117. /package/dist/chunks/{chunk.KG3FXWCX.js.map → chunk.XBLXQAP4.js.map} +0 -0
  118. /package/dist/chunks/{chunk.M3P4B2GP.js.map → chunk.XTZCBF65.js.map} +0 -0
  119. /package/dist/chunks/{chunk.JDDBS57F.js.map → chunk.YCX24LPU.js.map} +0 -0
  120. /package/dist/chunks/{chunk.YN2IXOBF.js.map → chunk.YS65LZV6.js.map} +0 -0
@@ -616,146 +616,6 @@
616
616
  }
617
617
  ]
618
618
  },
619
- {
620
- "kind": "javascript-module",
621
- "path": "components/button-group/button-group.js",
622
- "declarations": [
623
- {
624
- "kind": "class",
625
- "description": "",
626
- "name": "SynButtonGroup",
627
- "cssParts": [
628
- {
629
- "description": "The component's base wrapper.",
630
- "name": "base"
631
- }
632
- ],
633
- "slots": [
634
- {
635
- "description": "One or more `<syn-button>` elements to display in the button group.",
636
- "name": ""
637
- }
638
- ],
639
- "members": [
640
- {
641
- "kind": "field",
642
- "name": "defaultSlot",
643
- "type": {
644
- "text": "HTMLSlotElement"
645
- }
646
- },
647
- {
648
- "kind": "field",
649
- "name": "disableRole",
650
- "type": {
651
- "text": "boolean"
652
- },
653
- "default": "false"
654
- },
655
- {
656
- "kind": "field",
657
- "name": "label",
658
- "type": {
659
- "text": "string"
660
- },
661
- "default": "''",
662
- "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.",
663
- "attribute": "label"
664
- },
665
- {
666
- "kind": "method",
667
- "name": "handleFocus",
668
- "privacy": "private",
669
- "parameters": [
670
- {
671
- "name": "event",
672
- "type": {
673
- "text": "Event"
674
- }
675
- }
676
- ]
677
- },
678
- {
679
- "kind": "method",
680
- "name": "handleBlur",
681
- "privacy": "private",
682
- "parameters": [
683
- {
684
- "name": "event",
685
- "type": {
686
- "text": "Event"
687
- }
688
- }
689
- ]
690
- },
691
- {
692
- "kind": "method",
693
- "name": "handleMouseOver",
694
- "privacy": "private",
695
- "parameters": [
696
- {
697
- "name": "event",
698
- "type": {
699
- "text": "Event"
700
- }
701
- }
702
- ]
703
- },
704
- {
705
- "kind": "method",
706
- "name": "handleMouseOut",
707
- "privacy": "private",
708
- "parameters": [
709
- {
710
- "name": "event",
711
- "type": {
712
- "text": "Event"
713
- }
714
- }
715
- ]
716
- },
717
- {
718
- "kind": "method",
719
- "name": "handleSlotChange",
720
- "privacy": "private"
721
- }
722
- ],
723
- "attributes": [
724
- {
725
- "name": "label",
726
- "type": {
727
- "text": "string"
728
- },
729
- "default": "''",
730
- "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.",
731
- "fieldName": "label"
732
- }
733
- ],
734
- "superclass": {
735
- "name": "SynergyElement",
736
- "module": "/src/internal/synergy-element.js"
737
- },
738
- "summary": "Button groups can be used to group related buttons into sections.",
739
- "tagNameWithoutPrefix": "button-group",
740
- "tagName": "syn-button-group",
741
- "customElement": true,
742
- "jsDoc": "/**\n * @summary Button groups can be used to group related buttons into sections.\n * @documentation https://synergy.style/components/button-group\n * @status stable\n * @since 2.0\n *\n * @slot - One or more `<syn-button>` elements to display in the button group.\n *\n * @csspart base - The component's base wrapper.\n */",
743
- "documentation": "https://synergy.style/components/button-group",
744
- "status": "stable",
745
- "since": "2.0"
746
- }
747
- ],
748
- "exports": [
749
- {
750
- "kind": "js",
751
- "name": "default",
752
- "declaration": {
753
- "name": "SynButtonGroup",
754
- "module": "components/button-group/button-group.js"
755
- }
756
- }
757
- ]
758
- },
759
619
  {
760
620
  "kind": "javascript-module",
761
621
  "path": "components/checkbox/checkbox.js",
@@ -1188,6 +1048,146 @@
1188
1048
  }
1189
1049
  ]
1190
1050
  },
1051
+ {
1052
+ "kind": "javascript-module",
1053
+ "path": "components/button-group/button-group.js",
1054
+ "declarations": [
1055
+ {
1056
+ "kind": "class",
1057
+ "description": "",
1058
+ "name": "SynButtonGroup",
1059
+ "cssParts": [
1060
+ {
1061
+ "description": "The component's base wrapper.",
1062
+ "name": "base"
1063
+ }
1064
+ ],
1065
+ "slots": [
1066
+ {
1067
+ "description": "One or more `<syn-button>` elements to display in the button group.",
1068
+ "name": ""
1069
+ }
1070
+ ],
1071
+ "members": [
1072
+ {
1073
+ "kind": "field",
1074
+ "name": "defaultSlot",
1075
+ "type": {
1076
+ "text": "HTMLSlotElement"
1077
+ }
1078
+ },
1079
+ {
1080
+ "kind": "field",
1081
+ "name": "disableRole",
1082
+ "type": {
1083
+ "text": "boolean"
1084
+ },
1085
+ "default": "false"
1086
+ },
1087
+ {
1088
+ "kind": "field",
1089
+ "name": "label",
1090
+ "type": {
1091
+ "text": "string"
1092
+ },
1093
+ "default": "''",
1094
+ "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.",
1095
+ "attribute": "label"
1096
+ },
1097
+ {
1098
+ "kind": "method",
1099
+ "name": "handleFocus",
1100
+ "privacy": "private",
1101
+ "parameters": [
1102
+ {
1103
+ "name": "event",
1104
+ "type": {
1105
+ "text": "Event"
1106
+ }
1107
+ }
1108
+ ]
1109
+ },
1110
+ {
1111
+ "kind": "method",
1112
+ "name": "handleBlur",
1113
+ "privacy": "private",
1114
+ "parameters": [
1115
+ {
1116
+ "name": "event",
1117
+ "type": {
1118
+ "text": "Event"
1119
+ }
1120
+ }
1121
+ ]
1122
+ },
1123
+ {
1124
+ "kind": "method",
1125
+ "name": "handleMouseOver",
1126
+ "privacy": "private",
1127
+ "parameters": [
1128
+ {
1129
+ "name": "event",
1130
+ "type": {
1131
+ "text": "Event"
1132
+ }
1133
+ }
1134
+ ]
1135
+ },
1136
+ {
1137
+ "kind": "method",
1138
+ "name": "handleMouseOut",
1139
+ "privacy": "private",
1140
+ "parameters": [
1141
+ {
1142
+ "name": "event",
1143
+ "type": {
1144
+ "text": "Event"
1145
+ }
1146
+ }
1147
+ ]
1148
+ },
1149
+ {
1150
+ "kind": "method",
1151
+ "name": "handleSlotChange",
1152
+ "privacy": "private"
1153
+ }
1154
+ ],
1155
+ "attributes": [
1156
+ {
1157
+ "name": "label",
1158
+ "type": {
1159
+ "text": "string"
1160
+ },
1161
+ "default": "''",
1162
+ "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.",
1163
+ "fieldName": "label"
1164
+ }
1165
+ ],
1166
+ "superclass": {
1167
+ "name": "SynergyElement",
1168
+ "module": "/src/internal/synergy-element.js"
1169
+ },
1170
+ "summary": "Button groups can be used to group related buttons into sections.",
1171
+ "tagNameWithoutPrefix": "button-group",
1172
+ "tagName": "syn-button-group",
1173
+ "customElement": true,
1174
+ "jsDoc": "/**\n * @summary Button groups can be used to group related buttons into sections.\n * @documentation https://synergy.style/components/button-group\n * @status stable\n * @since 2.0\n *\n * @slot - One or more `<syn-button>` elements to display in the button group.\n *\n * @csspart base - The component's base wrapper.\n */",
1175
+ "documentation": "https://synergy.style/components/button-group",
1176
+ "status": "stable",
1177
+ "since": "2.0"
1178
+ }
1179
+ ],
1180
+ "exports": [
1181
+ {
1182
+ "kind": "js",
1183
+ "name": "default",
1184
+ "declaration": {
1185
+ "name": "SynButtonGroup",
1186
+ "module": "components/button-group/button-group.js"
1187
+ }
1188
+ }
1189
+ ]
1190
+ },
1191
1191
  {
1192
1192
  "kind": "javascript-module",
1193
1193
  "path": "components/divider/divider.js",
@@ -1821,6 +1821,22 @@
1821
1821
  {
1822
1822
  "description": "The container that wraps the suffix.",
1823
1823
  "name": "suffix"
1824
+ },
1825
+ {
1826
+ "description": "The container that wraps the number stepper.",
1827
+ "name": "stepper"
1828
+ },
1829
+ {
1830
+ "description": "The decrement number stepper button.",
1831
+ "name": "decrement-number-stepper"
1832
+ },
1833
+ {
1834
+ "description": "The increment number stepper button.",
1835
+ "name": "increment-number-stepper"
1836
+ },
1837
+ {
1838
+ "description": "The divider between the increment and decrement number stepper buttons.",
1839
+ "name": "divider"
1824
1840
  }
1825
1841
  ],
1826
1842
  "slots": [
@@ -1851,6 +1867,14 @@
1851
1867
  {
1852
1868
  "description": "Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.",
1853
1869
  "name": "help-text"
1870
+ },
1871
+ {
1872
+ "description": "An icon to use in lieu of the default increment number stepper icon.",
1873
+ "name": "increment-number-stepper"
1874
+ },
1875
+ {
1876
+ "description": "An icon to use in lieu of the default decrement number stepper icon.",
1877
+ "name": "decrement-number-stepper"
1854
1878
  }
1855
1879
  ],
1856
1880
  "members": [
@@ -1861,7 +1885,7 @@
1861
1885
  "text": "object"
1862
1886
  },
1863
1887
  "static": true,
1864
- "default": "{ 'syn-icon': SynIcon }"
1888
+ "default": "{\n\t\t'syn-icon': SynIcon,\n\t\t'syn-divider': SynDivider\n\t}"
1865
1889
  },
1866
1890
  {
1867
1891
  "kind": "field",
@@ -2059,7 +2083,7 @@
2059
2083
  "text": "boolean"
2060
2084
  },
2061
2085
  "default": "false",
2062
- "description": "Hides the browser's built-in increment/decrement spin buttons for number inputs.",
2086
+ "description": "Hides the increment/decrement spin buttons for number inputs.",
2063
2087
  "attribute": "no-spin-buttons"
2064
2088
  },
2065
2089
  {
@@ -2229,6 +2253,31 @@
2229
2253
  "name": "handleBlur",
2230
2254
  "privacy": "private"
2231
2255
  },
2256
+ {
2257
+ "kind": "method",
2258
+ "name": "handleStep",
2259
+ "privacy": "private"
2260
+ },
2261
+ {
2262
+ "kind": "method",
2263
+ "name": "handleStepUp",
2264
+ "privacy": "private"
2265
+ },
2266
+ {
2267
+ "kind": "method",
2268
+ "name": "handleStepDown",
2269
+ "privacy": "private"
2270
+ },
2271
+ {
2272
+ "kind": "method",
2273
+ "name": "isDecrementDisabled",
2274
+ "privacy": "private"
2275
+ },
2276
+ {
2277
+ "kind": "method",
2278
+ "name": "isIncrementDisabled",
2279
+ "privacy": "private"
2280
+ },
2232
2281
  {
2233
2282
  "kind": "method",
2234
2283
  "name": "handleChange",
@@ -2594,7 +2643,7 @@
2594
2643
  "text": "boolean"
2595
2644
  },
2596
2645
  "default": "false",
2597
- "description": "Hides the browser's built-in increment/decrement spin buttons for number inputs.",
2646
+ "description": "Hides the increment/decrement spin buttons for number inputs.",
2598
2647
  "fieldName": "noSpinButtons"
2599
2648
  },
2600
2649
  {
@@ -2729,12 +2778,13 @@
2729
2778
  "tagNameWithoutPrefix": "input",
2730
2779
  "tagName": "syn-input",
2731
2780
  "customElement": true,
2732
- "jsDoc": "/**\n * @summary Inputs collect data from the user.\n * @documentation https://synergy.style/components/input\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot label - The input's label. Alternatively, you can use the `label` attribute.\n * @slot prefix - Used to prepend a presentational icon or similar element to the input.\n * @slot suffix - Used to append a presentational icon or similar element to the input.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot show-password-icon - An icon to use in lieu of the default show password icon.\n * @slot hide-password-icon - An icon to use in lieu of the default hide password icon.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event syn-clear - Emitted when the clear button is activated.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart input - The internal `<input>` control.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart clear-button - The clear button.\n * @csspart password-toggle-button - The password toggle button.\n * @csspart suffix - The container that wraps the suffix.\n */",
2781
+ "jsDoc": "/**\n * @summary Inputs collect data from the user.\n * @documentation https://synergy.style/components/input\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-divider\n *\n * @slot label - The input's label. Alternatively, you can use the `label` attribute.\n * @slot prefix - Used to prepend a presentational icon or similar element to the input.\n * @slot suffix - Used to append a presentational icon or similar element to the input.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot show-password-icon - An icon to use in lieu of the default show password icon.\n * @slot hide-password-icon - An icon to use in lieu of the default hide password icon.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n * @slot increment-number-stepper - An icon to use in lieu of the default increment number stepper icon.\n * @slot decrement-number-stepper - An icon to use in lieu of the default decrement number stepper icon.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event syn-clear - Emitted when the clear button is activated.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart input - The internal `<input>` control.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart clear-button - The clear button.\n * @csspart password-toggle-button - The password toggle button.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart stepper - The container that wraps the number stepper.\n * @csspart decrement-number-stepper - The decrement number stepper button.\n * @csspart increment-number-stepper - The increment number stepper button.\n * @csspart divider - The divider between the increment and decrement number stepper buttons.\n */",
2733
2782
  "documentation": "https://synergy.style/components/input",
2734
2783
  "status": "stable",
2735
2784
  "since": "2.0",
2736
2785
  "dependencies": [
2737
- "syn-icon"
2786
+ "syn-icon",
2787
+ "syn-divider"
2738
2788
  ]
2739
2789
  }
2740
2790
  ],
@@ -6791,7 +6841,7 @@
6791
6841
  "package": {
6792
6842
  "name": "@synergy-design-system/components",
6793
6843
  "description": "",
6794
- "version": "1.5.1",
6844
+ "version": "1.6.0",
6795
6845
  "author": {
6796
6846
  "name": "SICK Global UX Foundation",
6797
6847
  "url": "https://www.sick.com"
@@ -0,0 +1,42 @@
1
+ /// <reference types="node" />
2
+ import { type ElementPart, noChange, nothing } from 'lit';
3
+ import { AsyncDirective, type DirectiveParameters, type Part } from 'lit/async-directive.js';
4
+ type Callbacks = {
5
+ start: () => void;
6
+ end: () => void;
7
+ };
8
+ /**
9
+ * A directive that determines,if a HTMLButtonElement is long pressed or only clicked.
10
+ * Depending on the state it executes the callback once or repeating.
11
+ *
12
+ * Usage:
13
+ *
14
+ * <button
15
+ * ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange()})}
16
+ * >
17
+ * my button
18
+ * </button>
19
+ */
20
+ declare class LongPressDirective extends AsyncDirective {
21
+ host: HTMLButtonElement;
22
+ observer: MutationObserver;
23
+ callbacks: Callbacks;
24
+ interval: NodeJS.Timeout;
25
+ timeout: NodeJS.Timeout;
26
+ constructor(part: Part);
27
+ render(_callback: Callbacks): typeof nothing;
28
+ update(part: ElementPart, [callbacks]: DirectiveParameters<this>): typeof noChange;
29
+ protected disconnected(): void;
30
+ private handlePointerDown;
31
+ /**
32
+ * Start spinning on long press clicks otherwise handle as single click event
33
+ */
34
+ private spinOnLongPressCallback;
35
+ private handlePointerUp;
36
+ /**
37
+ * Stop the spinning and clean up all timer and observer
38
+ */
39
+ private stopSpinningAndCleanUp;
40
+ }
41
+ export declare const longPress: (_callback: Callbacks) => import("lit/async-directive").DirectiveResult<typeof LongPressDirective>;
42
+ export type { LongPressDirective };
package/dist/synergy.js CHANGED
@@ -5,102 +5,102 @@ import {
5
5
  import "./chunks/chunk.NKIYFJN2.js";
6
6
  import {
7
7
  tag_default
8
- } from "./chunks/chunk.K5NVNHHD.js";
8
+ } from "./chunks/chunk.4SRJCDZV.js";
9
9
  import {
10
10
  textarea_default
11
- } from "./chunks/chunk.UYYPTTK2.js";
12
- import "./chunks/chunk.VIQZQ3S6.js";
11
+ } from "./chunks/chunk.NUBNCTFD.js";
12
+ import "./chunks/chunk.CCUKXHWY.js";
13
13
  import "./chunks/chunk.23HTU3YE.js";
14
14
  import "./chunks/chunk.YBIBWRKC.js";
15
15
  import {
16
16
  switch_default
17
- } from "./chunks/chunk.DLPNGATM.js";
18
- import "./chunks/chunk.4S6GR2Q7.js";
17
+ } from "./chunks/chunk.LKNV6GM2.js";
18
+ import "./chunks/chunk.AHNYYEO3.js";
19
19
  import "./chunks/chunk.MNMITYTH.js";
20
20
  import "./chunks/chunk.AFEABUNX.js";
21
21
  import {
22
22
  radio_group_default
23
- } from "./chunks/chunk.XSFEPYWK.js";
24
- import "./chunks/chunk.JDDBS57F.js";
23
+ } from "./chunks/chunk.7YLD4S5U.js";
24
+ import "./chunks/chunk.YCX24LPU.js";
25
25
  import "./chunks/chunk.4I6M5V6O.js";
26
26
  import "./chunks/chunk.F4MRQLNL.js";
27
27
  import {
28
28
  select_default
29
- } from "./chunks/chunk.GVCB2D7B.js";
30
- import "./chunks/chunk.UTDK2ZT6.js";
29
+ } from "./chunks/chunk.DEPIE7L2.js";
30
+ import "./chunks/chunk.WEYUQ5AH.js";
31
31
  import "./chunks/chunk.BQG5LF7J.js";
32
- import "./chunks/chunk.I3FGUPLH.js";
32
+ import "./chunks/chunk.47DEK3AO.js";
33
33
  import "./chunks/chunk.QHFGD6WW.js";
34
34
  import "./chunks/chunk.7W73A57K.js";
35
35
  import "./chunks/chunk.6XU6OLZ3.js";
36
36
  import "./chunks/chunk.OWMT6OL2.js";
37
37
  import {
38
38
  radio_default
39
- } from "./chunks/chunk.OAIA6MLB.js";
40
- import "./chunks/chunk.M3P4B2GP.js";
39
+ } from "./chunks/chunk.EIISC7XJ.js";
40
+ import "./chunks/chunk.XTZCBF65.js";
41
41
  import "./chunks/chunk.JBYBQ5TQ.js";
42
42
  import "./chunks/chunk.V6VND4OF.js";
43
43
  import {
44
44
  radio_button_default
45
- } from "./chunks/chunk.KRTGIYIX.js";
46
- import "./chunks/chunk.KG3FXWCX.js";
45
+ } from "./chunks/chunk.S45EUGZP.js";
46
+ import "./chunks/chunk.XBLXQAP4.js";
47
47
  import "./chunks/chunk.IKKMWFWH.js";
48
48
  import {
49
49
  optgroup_default
50
- } from "./chunks/chunk.IFE4G4PB.js";
51
- import "./chunks/chunk.IFDNGB63.js";
50
+ } from "./chunks/chunk.53VSNAHJ.js";
51
+ import "./chunks/chunk.NOSJYQ4B.js";
52
52
  import "./chunks/chunk.KG52EHDB.js";
53
53
  import {
54
54
  option_default
55
- } from "./chunks/chunk.YN2IXOBF.js";
56
- import "./chunks/chunk.XFLQL2QO.js";
55
+ } from "./chunks/chunk.YS65LZV6.js";
56
+ import "./chunks/chunk.QI2KJEOB.js";
57
57
  import "./chunks/chunk.W6V7TPGK.js";
58
58
  import "./chunks/chunk.3B24TYVN.js";
59
- import "./chunks/chunk.SAGHXH7E.js";
59
+ import "./chunks/chunk.LK73TOFQ.js";
60
60
  import "./chunks/chunk.JN7CLMQZ.js";
61
61
  import {
62
62
  icon_button_default
63
- } from "./chunks/chunk.SLW5NPQB.js";
64
- import "./chunks/chunk.4STUWO3B.js";
63
+ } from "./chunks/chunk.3CXUNQUU.js";
64
+ import "./chunks/chunk.JR2N32YB.js";
65
65
  import "./chunks/chunk.2FN5DTS6.js";
66
66
  import "./chunks/chunk.OJF7KL44.js";
67
67
  import {
68
68
  input_default
69
- } from "./chunks/chunk.X4L3ZC6K.js";
70
- import "./chunks/chunk.D3VKCPDE.js";
71
- import "./chunks/chunk.KUZJTGHQ.js";
69
+ } from "./chunks/chunk.35NRVIX6.js";
70
+ import "./chunks/chunk.NJ6E6J54.js";
71
+ import "./chunks/chunk.EKOK7YPB.js";
72
72
  import "./chunks/chunk.JHXCBOUD.js";
73
- import "./chunks/chunk.B2EJGIGY.js";
73
+ import "./chunks/chunk.2OLVTQ5P.js";
74
74
  import {
75
75
  divider_default
76
- } from "./chunks/chunk.64EZRK2A.js";
76
+ } from "./chunks/chunk.V2BD43MN.js";
77
77
  import {
78
78
  icon_default
79
- } from "./chunks/chunk.O5XNATYN.js";
79
+ } from "./chunks/chunk.LJU66FBY.js";
80
80
  import {
81
81
  button_group_default
82
- } from "./chunks/chunk.7MHXK5XU.js";
82
+ } from "./chunks/chunk.UAVUFIYS.js";
83
83
  import {
84
84
  checkbox_default
85
- } from "./chunks/chunk.FXTLCVXC.js";
86
- import "./chunks/chunk.5FCLDQKW.js";
85
+ } from "./chunks/chunk.RDDQSC7I.js";
86
+ import "./chunks/chunk.CP33HLLJ.js";
87
87
  import "./chunks/chunk.WFAJR3FN.js";
88
88
  import "./chunks/chunk.4CBN5LPQ.js";
89
89
  import "./chunks/chunk.2XZKXVMR.js";
90
- import "./chunks/chunk.QCDOK7E4.js";
90
+ import "./chunks/chunk.LRXZ5NNS.js";
91
91
  import "./chunks/chunk.PGCXJ2PT.js";
92
92
  import "./chunks/chunk.FA6V2WD6.js";
93
93
  import {
94
94
  button_default
95
- } from "./chunks/chunk.QPANY6PY.js";
96
- import "./chunks/chunk.DVCDA2IN.js";
97
- import "./chunks/chunk.UBTUEIMR.js";
95
+ } from "./chunks/chunk.QC7ZJSSL.js";
96
+ import "./chunks/chunk.ASZUIIFW.js";
97
+ import "./chunks/chunk.MI3ZASGH.js";
98
98
  import "./chunks/chunk.N2I6HVX3.js";
99
99
  import "./chunks/chunk.XGXFE6IF.js";
100
100
  import "./chunks/chunk.LAB4YJYE.js";
101
101
  import "./chunks/chunk.A3SKDWCT.js";
102
102
  import "./chunks/chunk.AMTCNRDE.js";
103
- import "./chunks/chunk.OKG27K27.js";
103
+ import "./chunks/chunk.4NOSS4QZ.js";
104
104
  import "./chunks/chunk.RSONAU45.js";
105
105
  import "./chunks/chunk.PJO6TM3T.js";
106
106
  import {
@@ -116,8 +116,8 @@ import {
116
116
  } from "./chunks/chunk.C7624ITA.js";
117
117
  import "./chunks/chunk.OJ4KOC7R.js";
118
118
  import "./chunks/chunk.K55MKNUR.js";
119
- import "./chunks/chunk.V57DLRD2.js";
120
- import "./chunks/chunk.T72SACBE.js";
119
+ import "./chunks/chunk.GHX7BABO.js";
120
+ import "./chunks/chunk.7ONJ4JA4.js";
121
121
  import "./chunks/chunk.4ZURABYO.js";
122
122
  import "./chunks/chunk.O7USYXBT.js";
123
123
  import "./chunks/chunk.DJOAQ4JU.js";