@synergy-design-system/components 1.4.1 → 1.5.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 (169) hide show
  1. package/dist/chunks/chunk.3B24TYVN.js +51 -0
  2. package/dist/chunks/chunk.3B24TYVN.js.map +7 -0
  3. package/dist/chunks/chunk.3HPG73GG.js +132 -0
  4. package/dist/chunks/chunk.3HPG73GG.js.map +7 -0
  5. package/dist/chunks/chunk.4KLCSMRA.js +96 -0
  6. package/dist/chunks/chunk.4KLCSMRA.js.map +7 -0
  7. package/dist/chunks/{chunk.A77SRYT2.js → chunk.4ZO3EKCL.js} +2 -2
  8. package/dist/chunks/{chunk.OSOFK3JT.js → chunk.5NJ7WWJW.js} +2 -2
  9. package/dist/chunks/{chunk.QTQBU2M5.js → chunk.63IJYG6Q.js} +2 -2
  10. package/dist/chunks/chunk.6XU6OLZ3.js +310 -0
  11. package/dist/chunks/chunk.6XU6OLZ3.js.map +7 -0
  12. package/dist/chunks/{chunk.6LIMUIEF.js → chunk.7BHGTNHS.js} +2 -2
  13. package/dist/chunks/chunk.7HS3TULI.js +12 -0
  14. package/dist/chunks/chunk.7HS3TULI.js.map +7 -0
  15. package/dist/chunks/{chunk.GM3M672E.js → chunk.A4YWJJLD.js} +2 -2
  16. package/dist/chunks/{chunk.SPBKTD7Y.js → chunk.AVJQ2BSM.js} +2 -2
  17. package/dist/chunks/chunk.BQG5LF7J.js +47 -0
  18. package/dist/chunks/chunk.BQG5LF7J.js.map +7 -0
  19. package/dist/chunks/{chunk.Z2DLW3SL.js → chunk.C5W2Y6KW.js} +2 -2
  20. package/dist/chunks/{chunk.Z2DLW3SL.js.map → chunk.C5W2Y6KW.js.map} +1 -1
  21. package/dist/chunks/{chunk.FTXTH5TS.js → chunk.CUHMPG7E.js} +3 -3
  22. package/dist/chunks/{chunk.XBVEUULD.js → chunk.DLDE3BC5.js} +2 -2
  23. package/dist/chunks/{chunk.H4N7OLXW.js → chunk.DPTZN6HY.js} +2 -2
  24. package/dist/chunks/{chunk.5VSN3F2E.js → chunk.ELPJP6AL.js} +2 -2
  25. package/dist/chunks/{chunk.Q5UI2GVL.js → chunk.FLCUFEHS.js} +2 -2
  26. package/dist/chunks/chunk.FOTO5B4G.js +12 -0
  27. package/dist/chunks/chunk.FOTO5B4G.js.map +7 -0
  28. package/dist/chunks/{chunk.XRZUXWQE.js → chunk.GAMJZXEL.js} +2 -2
  29. package/dist/chunks/{chunk.WNPKDJ4G.js → chunk.GGNKDYC2.js} +7 -7
  30. package/dist/chunks/{chunk.GEV4IJII.js → chunk.GYDJFPHM.js} +2 -2
  31. package/dist/chunks/{chunk.JYBYORNL.js → chunk.IESSP23D.js} +6 -6
  32. package/dist/chunks/{chunk.JMETBEU6.js → chunk.IYKQTZIY.js} +3 -3
  33. package/dist/chunks/{chunk.KWUT7GQA.js → chunk.JEOPTEUQ.js} +3 -3
  34. package/dist/chunks/{chunk.ND73VYBT.js → chunk.JLTYAQFG.js} +2 -2
  35. package/dist/chunks/chunk.JN7CLMQZ.js +53 -0
  36. package/dist/chunks/chunk.JN7CLMQZ.js.map +7 -0
  37. package/dist/chunks/{chunk.6TJHEFXA.js → chunk.JQWJ7PHD.js} +2 -2
  38. package/dist/chunks/chunk.JXOHBU6V.js +334 -0
  39. package/dist/chunks/chunk.JXOHBU6V.js.map +7 -0
  40. package/dist/chunks/chunk.KG52EHDB.js +60 -0
  41. package/dist/chunks/chunk.KG52EHDB.js.map +7 -0
  42. package/dist/chunks/{chunk.AR7MHBEC.js → chunk.LL3V6HVM.js} +2 -2
  43. package/dist/chunks/{chunk.H3LRV4ST.js → chunk.LTCRPIZ5.js} +2 -2
  44. package/dist/chunks/{chunk.MTDXRKO3.js → chunk.OPVDSHPD.js} +2 -2
  45. package/dist/chunks/chunk.OWMT6OL2.js +82 -0
  46. package/dist/chunks/chunk.OWMT6OL2.js.map +7 -0
  47. package/dist/chunks/{chunk.76T4PEW3.js → chunk.PQLAXTRQ.js} +3 -3
  48. package/dist/chunks/{chunk.KQCYBRJJ.js → chunk.RU7P5HHF.js} +2 -2
  49. package/dist/chunks/chunk.SS46QCYH.js +811 -0
  50. package/dist/chunks/chunk.SS46QCYH.js.map +7 -0
  51. package/dist/chunks/{chunk.5Y446GHK.js → chunk.TY5F2VTK.js} +2 -2
  52. package/dist/chunks/{chunk.LL3W2QAU.js → chunk.UGYBBM5O.js} +3 -3
  53. package/dist/chunks/chunk.UXUMV3TL.js +12 -0
  54. package/dist/chunks/chunk.UXUMV3TL.js.map +7 -0
  55. package/dist/chunks/chunk.W6V7TPGK.js +104 -0
  56. package/dist/chunks/chunk.W6V7TPGK.js.map +7 -0
  57. package/dist/chunks/{chunk.T5GFDZAG.js → chunk.Y6HNLEFW.js} +2 -2
  58. package/dist/components/button/button.component.js +5 -5
  59. package/dist/components/button/button.js +6 -6
  60. package/dist/components/button-group/button-group.component.js +2 -2
  61. package/dist/components/button-group/button-group.js +3 -3
  62. package/dist/components/checkbox/checkbox.component.js +3 -3
  63. package/dist/components/checkbox/checkbox.js +4 -4
  64. package/dist/components/divider/divider.component.js +2 -2
  65. package/dist/components/divider/divider.js +3 -3
  66. package/dist/components/icon/icon.component.js +2 -2
  67. package/dist/components/icon/icon.js +3 -3
  68. package/dist/components/icon-button/icon-button.component.js +3 -3
  69. package/dist/components/icon-button/icon-button.js +4 -4
  70. package/dist/components/input/input.component.js +4 -4
  71. package/dist/components/input/input.js +5 -5
  72. package/dist/components/optgroup/optgroup.component.d.ts +47 -0
  73. package/dist/components/optgroup/optgroup.component.js +16 -0
  74. package/dist/components/optgroup/optgroup.component.js.map +7 -0
  75. package/dist/components/optgroup/optgroup.d.ts +8 -0
  76. package/dist/components/optgroup/optgroup.js +17 -0
  77. package/dist/components/optgroup/optgroup.js.map +7 -0
  78. package/dist/components/optgroup/optgroup.styles.d.ts +2 -0
  79. package/dist/components/optgroup/optgroup.styles.js +8 -0
  80. package/dist/components/optgroup/optgroup.styles.js.map +7 -0
  81. package/dist/components/option/option.component.d.ts +51 -0
  82. package/dist/components/option/option.component.js +22 -0
  83. package/dist/components/option/option.component.js.map +7 -0
  84. package/dist/components/option/option.custom.styles.d.ts +2 -0
  85. package/dist/components/option/option.custom.styles.js +8 -0
  86. package/dist/components/option/option.custom.styles.js.map +7 -0
  87. package/dist/components/option/option.d.ts +8 -0
  88. package/dist/components/option/option.js +23 -0
  89. package/dist/components/option/option.js.map +7 -0
  90. package/dist/components/option/option.styles.d.ts +2 -0
  91. package/dist/components/option/option.styles.js +10 -0
  92. package/dist/components/option/option.styles.js.map +7 -0
  93. package/dist/components/popup/popup.component.d.ts +139 -0
  94. package/dist/components/popup/popup.component.js +11 -0
  95. package/dist/components/popup/popup.component.js.map +7 -0
  96. package/dist/components/popup/popup.styles.d.ts +2 -0
  97. package/dist/components/popup/popup.styles.js +9 -0
  98. package/dist/components/popup/popup.styles.js.map +7 -0
  99. package/dist/components/radio/radio.component.js +3 -3
  100. package/dist/components/radio/radio.js +4 -4
  101. package/dist/components/radio-button/radio-button.component.js +2 -2
  102. package/dist/components/radio-button/radio-button.js +3 -3
  103. package/dist/components/radio-group/radio-group.component.js +3 -3
  104. package/dist/components/radio-group/radio-group.js +4 -4
  105. package/dist/components/select/select.component.d.ts +180 -0
  106. package/dist/components/select/select.component.js +35 -0
  107. package/dist/components/select/select.component.js.map +7 -0
  108. package/dist/components/select/select.custom.styles.d.ts +2 -0
  109. package/dist/components/select/select.custom.styles.js +8 -0
  110. package/dist/components/select/select.custom.styles.js.map +7 -0
  111. package/dist/components/select/select.d.ts +8 -0
  112. package/dist/components/select/select.js +36 -0
  113. package/dist/components/select/select.js.map +7 -0
  114. package/dist/components/select/select.styles.d.ts +2 -0
  115. package/dist/components/select/select.styles.js +11 -0
  116. package/dist/components/select/select.styles.js.map +7 -0
  117. package/dist/components/spinner/spinner.component.js +2 -2
  118. package/dist/components/switch/switch.component.js +2 -2
  119. package/dist/components/switch/switch.js +3 -3
  120. package/dist/components/tag/tag.component.js +4 -4
  121. package/dist/components/tag/tag.js +5 -5
  122. package/dist/components/textarea/textarea.component.js +2 -2
  123. package/dist/components/textarea/textarea.js +3 -3
  124. package/dist/custom-elements.json +2376 -556
  125. package/dist/events/events.d.ts +5 -0
  126. package/dist/events/syn-after-hide.d.ts +6 -0
  127. package/dist/events/syn-after-show.d.ts +6 -0
  128. package/dist/events/syn-hide.d.ts +6 -0
  129. package/dist/events/syn-reposition.d.ts +6 -0
  130. package/dist/events/syn-show.d.ts +6 -0
  131. package/dist/internal/animate.d.ts +22 -0
  132. package/dist/internal/event.d.ts +2 -0
  133. package/dist/internal/offset.d.ts +11 -0
  134. package/dist/internal/scroll.d.ts +11 -0
  135. package/dist/synergy.d.ts +3 -0
  136. package/dist/synergy.js +61 -38
  137. package/dist/utilities/animation-registry.d.ts +24 -0
  138. package/dist/utilities/animation-registry.js +12 -0
  139. package/dist/utilities/animation-registry.js.map +7 -0
  140. package/dist/vscode.html-custom-data.json +304 -17
  141. package/dist/web-types.json +664 -30
  142. package/package.json +6 -3
  143. /package/dist/chunks/{chunk.A77SRYT2.js.map → chunk.4ZO3EKCL.js.map} +0 -0
  144. /package/dist/chunks/{chunk.OSOFK3JT.js.map → chunk.5NJ7WWJW.js.map} +0 -0
  145. /package/dist/chunks/{chunk.QTQBU2M5.js.map → chunk.63IJYG6Q.js.map} +0 -0
  146. /package/dist/chunks/{chunk.6LIMUIEF.js.map → chunk.7BHGTNHS.js.map} +0 -0
  147. /package/dist/chunks/{chunk.GM3M672E.js.map → chunk.A4YWJJLD.js.map} +0 -0
  148. /package/dist/chunks/{chunk.SPBKTD7Y.js.map → chunk.AVJQ2BSM.js.map} +0 -0
  149. /package/dist/chunks/{chunk.FTXTH5TS.js.map → chunk.CUHMPG7E.js.map} +0 -0
  150. /package/dist/chunks/{chunk.XBVEUULD.js.map → chunk.DLDE3BC5.js.map} +0 -0
  151. /package/dist/chunks/{chunk.H4N7OLXW.js.map → chunk.DPTZN6HY.js.map} +0 -0
  152. /package/dist/chunks/{chunk.5VSN3F2E.js.map → chunk.ELPJP6AL.js.map} +0 -0
  153. /package/dist/chunks/{chunk.Q5UI2GVL.js.map → chunk.FLCUFEHS.js.map} +0 -0
  154. /package/dist/chunks/{chunk.XRZUXWQE.js.map → chunk.GAMJZXEL.js.map} +0 -0
  155. /package/dist/chunks/{chunk.WNPKDJ4G.js.map → chunk.GGNKDYC2.js.map} +0 -0
  156. /package/dist/chunks/{chunk.GEV4IJII.js.map → chunk.GYDJFPHM.js.map} +0 -0
  157. /package/dist/chunks/{chunk.JYBYORNL.js.map → chunk.IESSP23D.js.map} +0 -0
  158. /package/dist/chunks/{chunk.JMETBEU6.js.map → chunk.IYKQTZIY.js.map} +0 -0
  159. /package/dist/chunks/{chunk.KWUT7GQA.js.map → chunk.JEOPTEUQ.js.map} +0 -0
  160. /package/dist/chunks/{chunk.ND73VYBT.js.map → chunk.JLTYAQFG.js.map} +0 -0
  161. /package/dist/chunks/{chunk.6TJHEFXA.js.map → chunk.JQWJ7PHD.js.map} +0 -0
  162. /package/dist/chunks/{chunk.AR7MHBEC.js.map → chunk.LL3V6HVM.js.map} +0 -0
  163. /package/dist/chunks/{chunk.H3LRV4ST.js.map → chunk.LTCRPIZ5.js.map} +0 -0
  164. /package/dist/chunks/{chunk.MTDXRKO3.js.map → chunk.OPVDSHPD.js.map} +0 -0
  165. /package/dist/chunks/{chunk.76T4PEW3.js.map → chunk.PQLAXTRQ.js.map} +0 -0
  166. /package/dist/chunks/{chunk.KQCYBRJJ.js.map → chunk.RU7P5HHF.js.map} +0 -0
  167. /package/dist/chunks/{chunk.5Y446GHK.js.map → chunk.TY5F2VTK.js.map} +0 -0
  168. /package/dist/chunks/{chunk.LL3W2QAU.js.map → chunk.UGYBBM5O.js.map} +0 -0
  169. /package/dist/chunks/{chunk.T5GFDZAG.js.map → chunk.Y6HNLEFW.js.map} +0 -0
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  input_default
3
- } from "../../chunks/chunk.XRZUXWQE.js";
4
- import "../../chunks/chunk.JYBYORNL.js";
3
+ } from "../../chunks/chunk.GAMJZXEL.js";
4
+ import "../../chunks/chunk.IESSP23D.js";
5
5
  import "../../chunks/chunk.KUZJTGHQ.js";
6
6
  import "../../chunks/chunk.JHXCBOUD.js";
7
7
  import "../../chunks/chunk.B2EJGIGY.js";
8
8
  import "../../chunks/chunk.WFAJR3FN.js";
9
+ import "../../chunks/chunk.XGXFE6IF.js";
9
10
  import "../../chunks/chunk.LAB4YJYE.js";
10
11
  import "../../chunks/chunk.A3SKDWCT.js";
11
- import "../../chunks/chunk.XGXFE6IF.js";
12
12
  import "../../chunks/chunk.AMTCNRDE.js";
13
- import "../../chunks/chunk.QTQBU2M5.js";
13
+ import "../../chunks/chunk.63IJYG6Q.js";
14
14
  import "../../chunks/chunk.RSONAU45.js";
15
15
  import "../../chunks/chunk.PJO6TM3T.js";
16
16
  import "../../chunks/chunk.JRXQK6LG.js";
@@ -18,7 +18,7 @@ import "../../chunks/chunk.6C4JXZZN.js";
18
18
  import "../../chunks/chunk.5AAIHRMI.js";
19
19
  import "../../chunks/chunk.VZ7S7YYN.js";
20
20
  import "../../chunks/chunk.C7624ITA.js";
21
- import "../../chunks/chunk.Z2DLW3SL.js";
21
+ import "../../chunks/chunk.C5W2Y6KW.js";
22
22
  import "../../chunks/chunk.O7USYXBT.js";
23
23
  import "../../chunks/chunk.DJOAQ4JU.js";
24
24
  export {
@@ -0,0 +1,47 @@
1
+ import type { CSSResultGroup } from 'lit';
2
+ import SynergyElement from '../../internal/synergy-element.js';
3
+ import SynDivider from '../divider/divider.component.js';
4
+ /**
5
+ * @summary The <syn-optgroup> element creates a grouping for <syn-option>s within a <syn-select>.
6
+ * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-optgroup--docs
7
+ * @status stable
8
+ * @since 1.3.0
9
+ *
10
+ * @dependency syn-divider
11
+ *
12
+ * @slot - The given options. Must be `<syn-option>` elements.
13
+ * @slot prefix - A presentational prefix icon or similar element.
14
+ * @slot label - The label for the optgroup
15
+ * @slot suffix - A presentational suffix icon or similar element.
16
+ *
17
+ * @csspart base - The component's base wrapper.
18
+ * @csspart label-container - The container that wraps prefix, label and base
19
+ * @csspart divider - The divider that is displayed above the content
20
+ * @csspart prefix - The container that wraps the prefix.
21
+ * @csspart suffix - The container that wraps the suffix.
22
+ * @csspart options - The container that wraps the <syn-option> elements.
23
+ *
24
+ * @cssproperty --display-divider - Display property of the divider. Defaults to "block"
25
+ */
26
+ export default class SynOptgroup extends SynergyElement {
27
+ static styles: CSSResultGroup;
28
+ static dependencies: {
29
+ 'syn-divider': typeof SynDivider;
30
+ };
31
+ private readonly hasSlotController;
32
+ defaultSlot: HTMLSlotElement;
33
+ /**
34
+ * Syncs the disabled prop for all slotted syn-options when it is triggered
35
+ */
36
+ private handleDisableOptions;
37
+ /**
38
+ * Disables all options in the optgroup.
39
+ */
40
+ disabled: boolean;
41
+ /**
42
+ * The optgroups label. If you need to display HTML, use the `label` slot instead.
43
+ */
44
+ label: string;
45
+ handleDisabledChange(): void;
46
+ render(): import("lit").TemplateResult;
47
+ }
@@ -0,0 +1,16 @@
1
+ import {
2
+ SynOptgroup
3
+ } from "../../chunks/chunk.4KLCSMRA.js";
4
+ import "../../chunks/chunk.KG52EHDB.js";
5
+ import "../../chunks/chunk.LTCRPIZ5.js";
6
+ import "../../chunks/chunk.PGCXJ2PT.js";
7
+ import "../../chunks/chunk.FA6V2WD6.js";
8
+ import "../../chunks/chunk.XGXFE6IF.js";
9
+ import "../../chunks/chunk.VZ7S7YYN.js";
10
+ import "../../chunks/chunk.C5W2Y6KW.js";
11
+ import "../../chunks/chunk.O7USYXBT.js";
12
+ import "../../chunks/chunk.DJOAQ4JU.js";
13
+ export {
14
+ SynOptgroup as default
15
+ };
16
+ //# sourceMappingURL=optgroup.component.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,8 @@
1
+ import SynOptGroup from './optgroup.component.js';
2
+ export * from './optgroup.component.js';
3
+ export default SynOptGroup;
4
+ declare global {
5
+ interface HTMLElementTagNameMap {
6
+ 'syn-optgroup': SynOptGroup;
7
+ }
8
+ }
@@ -0,0 +1,17 @@
1
+ import {
2
+ optgroup_default
3
+ } from "../../chunks/chunk.UXUMV3TL.js";
4
+ import "../../chunks/chunk.4KLCSMRA.js";
5
+ import "../../chunks/chunk.KG52EHDB.js";
6
+ import "../../chunks/chunk.LTCRPIZ5.js";
7
+ import "../../chunks/chunk.PGCXJ2PT.js";
8
+ import "../../chunks/chunk.FA6V2WD6.js";
9
+ import "../../chunks/chunk.XGXFE6IF.js";
10
+ import "../../chunks/chunk.VZ7S7YYN.js";
11
+ import "../../chunks/chunk.C5W2Y6KW.js";
12
+ import "../../chunks/chunk.O7USYXBT.js";
13
+ import "../../chunks/chunk.DJOAQ4JU.js";
14
+ export {
15
+ optgroup_default as default
16
+ };
17
+ //# sourceMappingURL=optgroup.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import {
2
+ optgroup_styles_default
3
+ } from "../../chunks/chunk.KG52EHDB.js";
4
+ import "../../chunks/chunk.DJOAQ4JU.js";
5
+ export {
6
+ optgroup_styles_default as default
7
+ };
8
+ //# sourceMappingURL=optgroup.styles.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,51 @@
1
+ import SynergyElement from '../../internal/synergy-element.js';
2
+ import SynIcon from '../icon/icon.component.js';
3
+ import type { CSSResultGroup } from 'lit';
4
+ /**
5
+ * @summary Options define the selectable items within various form controls such as [select](/components/select).
6
+ * @documentation https://synergy.style/components/option
7
+ * @status stable
8
+ * @since 2.0
9
+ *
10
+ * @dependency syn-icon
11
+ *
12
+ * @slot - The option's label.
13
+ * @slot prefix - Used to prepend an icon or similar element to the menu item.
14
+ * @slot suffix - Used to append an icon or similar element to the menu item.
15
+ *
16
+ * @csspart checked-icon - The checked icon, an `<syn-icon>` element.
17
+ * @csspart base - The component's base wrapper.
18
+ * @csspart label - The option's label.
19
+ * @csspart prefix - The container that wraps the prefix.
20
+ * @csspart suffix - The container that wraps the suffix.
21
+ */
22
+ export default class SynOption extends SynergyElement {
23
+ static styles: CSSResultGroup;
24
+ static dependencies: {
25
+ 'syn-icon': typeof SynIcon;
26
+ };
27
+ private cachedTextLabel;
28
+ private readonly localize;
29
+ defaultSlot: HTMLSlotElement;
30
+ current: boolean;
31
+ selected: boolean;
32
+ hasHover: boolean;
33
+ /**
34
+ * The option's value. When selected, the containing form control will receive this value. The value must be unique
35
+ * from other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing
36
+ * multiple values.
37
+ */
38
+ value: string;
39
+ /** Draws the option in a disabled state, preventing selection. */
40
+ disabled: boolean;
41
+ connectedCallback(): void;
42
+ private handleDefaultSlotChange;
43
+ private handleMouseEnter;
44
+ private handleMouseLeave;
45
+ handleDisabledChange(): void;
46
+ handleSelectedChange(): void;
47
+ handleValueChange(): void;
48
+ /** Returns a plain text label based on the option's content. */
49
+ getTextLabel(): string;
50
+ render(): import("lit").TemplateResult<1>;
51
+ }
@@ -0,0 +1,22 @@
1
+ import {
2
+ SynOption
3
+ } from "../../chunks/chunk.3HPG73GG.js";
4
+ import "../../chunks/chunk.W6V7TPGK.js";
5
+ import "../../chunks/chunk.3B24TYVN.js";
6
+ import "../../chunks/chunk.LAB4YJYE.js";
7
+ import "../../chunks/chunk.A3SKDWCT.js";
8
+ import "../../chunks/chunk.63IJYG6Q.js";
9
+ import "../../chunks/chunk.RSONAU45.js";
10
+ import "../../chunks/chunk.PJO6TM3T.js";
11
+ import "../../chunks/chunk.JRXQK6LG.js";
12
+ import "../../chunks/chunk.6C4JXZZN.js";
13
+ import "../../chunks/chunk.5AAIHRMI.js";
14
+ import "../../chunks/chunk.VZ7S7YYN.js";
15
+ import "../../chunks/chunk.C7624ITA.js";
16
+ import "../../chunks/chunk.C5W2Y6KW.js";
17
+ import "../../chunks/chunk.O7USYXBT.js";
18
+ import "../../chunks/chunk.DJOAQ4JU.js";
19
+ export {
20
+ SynOption as default
21
+ };
22
+ //# sourceMappingURL=option.component.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import {
2
+ option_custom_styles_default
3
+ } from "../../chunks/chunk.3B24TYVN.js";
4
+ import "../../chunks/chunk.DJOAQ4JU.js";
5
+ export {
6
+ option_custom_styles_default as default
7
+ };
8
+ //# sourceMappingURL=option.custom.styles.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,8 @@
1
+ import SynOption from './option.component.js';
2
+ export * from './option.component.js';
3
+ export default SynOption;
4
+ declare global {
5
+ interface HTMLElementTagNameMap {
6
+ 'syn-option': SynOption;
7
+ }
8
+ }
@@ -0,0 +1,23 @@
1
+ import {
2
+ option_default
3
+ } from "../../chunks/chunk.7HS3TULI.js";
4
+ import "../../chunks/chunk.3HPG73GG.js";
5
+ import "../../chunks/chunk.W6V7TPGK.js";
6
+ import "../../chunks/chunk.3B24TYVN.js";
7
+ import "../../chunks/chunk.LAB4YJYE.js";
8
+ import "../../chunks/chunk.A3SKDWCT.js";
9
+ import "../../chunks/chunk.63IJYG6Q.js";
10
+ import "../../chunks/chunk.RSONAU45.js";
11
+ import "../../chunks/chunk.PJO6TM3T.js";
12
+ import "../../chunks/chunk.JRXQK6LG.js";
13
+ import "../../chunks/chunk.6C4JXZZN.js";
14
+ import "../../chunks/chunk.5AAIHRMI.js";
15
+ import "../../chunks/chunk.VZ7S7YYN.js";
16
+ import "../../chunks/chunk.C7624ITA.js";
17
+ import "../../chunks/chunk.C5W2Y6KW.js";
18
+ import "../../chunks/chunk.O7USYXBT.js";
19
+ import "../../chunks/chunk.DJOAQ4JU.js";
20
+ export {
21
+ option_default as default
22
+ };
23
+ //# sourceMappingURL=option.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import {
2
+ option_styles_default
3
+ } from "../../chunks/chunk.W6V7TPGK.js";
4
+ import "../../chunks/chunk.3B24TYVN.js";
5
+ import "../../chunks/chunk.O7USYXBT.js";
6
+ import "../../chunks/chunk.DJOAQ4JU.js";
7
+ export {
8
+ option_styles_default as default
9
+ };
10
+ //# sourceMappingURL=option.styles.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,139 @@
1
+ import SynergyElement from '../../internal/synergy-element.js';
2
+ import type { CSSResultGroup } from 'lit';
3
+ export interface VirtualElement {
4
+ getBoundingClientRect: () => DOMRect;
5
+ }
6
+ /**
7
+ * @summary Popup is a utility that lets you declaratively anchor "popup" containers to another element.
8
+ * @documentation https://synergy.style/components/popup
9
+ * @status stable
10
+ * @since 2.0
11
+ *
12
+ * @event syn-reposition - Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive
13
+ * operations in your listener or consider debouncing it.
14
+ *
15
+ * @slot - The popup's content.
16
+ * @slot anchor - The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the
17
+ * `anchor` attribute or property instead.
18
+ *
19
+ * @csspart arrow - The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are
20
+ * assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and
21
+ * maybe a border or box shadow.
22
+ * @csspart popup - The popup's container. Useful for setting a background color, box shadow, etc.
23
+ *
24
+ * @cssproperty [--arrow-size=6px] - The size of the arrow. Note that an arrow won't be shown unless the `arrow`
25
+ * attribute is used.
26
+ * @cssproperty [--arrow-color=var(--syn-color-neutral-0)] - The color of the arrow.
27
+ * @cssproperty [--auto-size-available-width] - A read-only custom property that determines the amount of width the
28
+ * popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only
29
+ * available when using `auto-size`.
30
+ * @cssproperty [--auto-size-available-height] - A read-only custom property that determines the amount of height the
31
+ * popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only
32
+ * available when using `auto-size`.
33
+ */
34
+ export default class SynPopup extends SynergyElement {
35
+ static styles: CSSResultGroup;
36
+ private anchorEl;
37
+ private cleanup;
38
+ /** A reference to the internal popup container. Useful for animating and styling the popup with JavaScript. */
39
+ popup: HTMLElement;
40
+ private arrowEl;
41
+ /**
42
+ * The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide the anchor
43
+ * element `id`, a DOM element reference, or a `VirtualElement`. If the anchor lives inside the popup, use the
44
+ * `anchor` slot instead.
45
+ */
46
+ anchor: Element | string | VirtualElement;
47
+ /**
48
+ * Activates the positioning logic and shows the popup. When this attribute is removed, the positioning logic is torn
49
+ * down and the popup will be hidden.
50
+ */
51
+ active: boolean;
52
+ /**
53
+ * The preferred placement of the popup. Note that the actual placement will vary as configured to keep the
54
+ * panel inside of the viewport.
55
+ */
56
+ placement: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
57
+ /**
58
+ * Determines how the popup is positioned. The `absolute` strategy works well in most cases, but if overflow is
59
+ * clipped, using a `fixed` position strategy can often workaround it.
60
+ */
61
+ strategy: 'absolute' | 'fixed';
62
+ /** The distance in pixels from which to offset the panel away from its anchor. */
63
+ distance: number;
64
+ /** The distance in pixels from which to offset the panel along its anchor. */
65
+ skidding: number;
66
+ /**
67
+ * Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and
68
+ * `--arrow-color` custom properties. For additional customizations, you can also target the arrow using
69
+ * `::part(arrow)` in your stylesheet.
70
+ */
71
+ arrow: boolean;
72
+ /**
73
+ * The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the
74
+ * anchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will
75
+ * align the arrow to the start, end, or center of the popover instead.
76
+ */
77
+ arrowPlacement: 'start' | 'end' | 'center' | 'anchor';
78
+ /**
79
+ * The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example,
80
+ * this will prevent it from overflowing the corners.
81
+ */
82
+ arrowPadding: number;
83
+ /**
84
+ * When set, placement of the popup will flip to the opposite site to keep it in view. You can use
85
+ * `flipFallbackPlacements` to further configure how the fallback placement is determined.
86
+ */
87
+ flip: boolean;
88
+ /**
89
+ * If the preferred placement doesn't fit, popup will be tested in these fallback placements until one fits. Must be a
90
+ * string of any number of placements separated by a space, e.g. "top bottom left". If no placement fits, the flip
91
+ * fallback strategy will be used instead.
92
+ * */
93
+ flipFallbackPlacements: string;
94
+ /**
95
+ * When neither the preferred placement nor the fallback placements fit, this value will be used to determine whether
96
+ * the popup should be positioned using the best available fit based on available space or as it was initially
97
+ * preferred.
98
+ */
99
+ flipFallbackStrategy: 'best-fit' | 'initial';
100
+ /**
101
+ * The flip boundary describes clipping element(s) that overflow will be checked relative to when flipping. By
102
+ * default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can
103
+ * change the boundary by passing a reference to one or more elements to this property.
104
+ */
105
+ flipBoundary: Element | Element[];
106
+ /** The amount of padding, in pixels, to exceed before the flip behavior will occur. */
107
+ flipPadding: number;
108
+ /** Moves the popup along the axis to keep it in view when clipped. */
109
+ shift: boolean;
110
+ /**
111
+ * The shift boundary describes clipping element(s) that overflow will be checked relative to when shifting. By
112
+ * default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can
113
+ * change the boundary by passing a reference to one or more elements to this property.
114
+ */
115
+ shiftBoundary: Element | Element[];
116
+ /** The amount of padding, in pixels, to exceed before the shift behavior will occur. */
117
+ shiftPadding: number;
118
+ /** When set, this will cause the popup to automatically resize itself to prevent it from overflowing. */
119
+ autoSize: 'horizontal' | 'vertical' | 'both';
120
+ /** Syncs the popup's width or height to that of the anchor element. */
121
+ sync: 'width' | 'height' | 'both';
122
+ /**
123
+ * The auto-size boundary describes clipping element(s) that overflow will be checked relative to when resizing. By
124
+ * default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can
125
+ * change the boundary by passing a reference to one or more elements to this property.
126
+ */
127
+ autoSizeBoundary: Element | Element[];
128
+ /** The amount of padding, in pixels, to exceed before the auto-size behavior will occur. */
129
+ autoSizePadding: number;
130
+ connectedCallback(): Promise<void>;
131
+ disconnectedCallback(): void;
132
+ updated(changedProps: Map<string, unknown>): Promise<void>;
133
+ private handleAnchorChange;
134
+ private start;
135
+ private stop;
136
+ /** Forces the popup to recalculate and reposition itself. */
137
+ reposition(): void;
138
+ render(): import("lit").TemplateResult<1>;
139
+ }
@@ -0,0 +1,11 @@
1
+ import {
2
+ SynPopup
3
+ } from "../../chunks/chunk.JXOHBU6V.js";
4
+ import "../../chunks/chunk.JN7CLMQZ.js";
5
+ import "../../chunks/chunk.C5W2Y6KW.js";
6
+ import "../../chunks/chunk.O7USYXBT.js";
7
+ import "../../chunks/chunk.DJOAQ4JU.js";
8
+ export {
9
+ SynPopup as default
10
+ };
11
+ //# sourceMappingURL=popup.component.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import {
2
+ popup_styles_default
3
+ } from "../../chunks/chunk.JN7CLMQZ.js";
4
+ import "../../chunks/chunk.O7USYXBT.js";
5
+ import "../../chunks/chunk.DJOAQ4JU.js";
6
+ export {
7
+ popup_styles_default as default
8
+ };
9
+ //# sourceMappingURL=popup.styles.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SynRadio
3
- } from "../../chunks/chunk.LL3W2QAU.js";
3
+ } from "../../chunks/chunk.UGYBBM5O.js";
4
4
  import "../../chunks/chunk.JBYBQ5TQ.js";
5
5
  import "../../chunks/chunk.V6VND4OF.js";
6
- import "../../chunks/chunk.QTQBU2M5.js";
6
+ import "../../chunks/chunk.63IJYG6Q.js";
7
7
  import "../../chunks/chunk.RSONAU45.js";
8
8
  import "../../chunks/chunk.PJO6TM3T.js";
9
9
  import "../../chunks/chunk.JRXQK6LG.js";
@@ -11,7 +11,7 @@ import "../../chunks/chunk.6C4JXZZN.js";
11
11
  import "../../chunks/chunk.5AAIHRMI.js";
12
12
  import "../../chunks/chunk.VZ7S7YYN.js";
13
13
  import "../../chunks/chunk.C7624ITA.js";
14
- import "../../chunks/chunk.Z2DLW3SL.js";
14
+ import "../../chunks/chunk.C5W2Y6KW.js";
15
15
  import "../../chunks/chunk.O7USYXBT.js";
16
16
  import "../../chunks/chunk.DJOAQ4JU.js";
17
17
  export {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  radio_default
3
- } from "../../chunks/chunk.5VSN3F2E.js";
4
- import "../../chunks/chunk.LL3W2QAU.js";
3
+ } from "../../chunks/chunk.ELPJP6AL.js";
4
+ import "../../chunks/chunk.UGYBBM5O.js";
5
5
  import "../../chunks/chunk.JBYBQ5TQ.js";
6
6
  import "../../chunks/chunk.V6VND4OF.js";
7
- import "../../chunks/chunk.QTQBU2M5.js";
7
+ import "../../chunks/chunk.63IJYG6Q.js";
8
8
  import "../../chunks/chunk.RSONAU45.js";
9
9
  import "../../chunks/chunk.PJO6TM3T.js";
10
10
  import "../../chunks/chunk.JRXQK6LG.js";
@@ -12,7 +12,7 @@ import "../../chunks/chunk.6C4JXZZN.js";
12
12
  import "../../chunks/chunk.5AAIHRMI.js";
13
13
  import "../../chunks/chunk.VZ7S7YYN.js";
14
14
  import "../../chunks/chunk.C7624ITA.js";
15
- import "../../chunks/chunk.Z2DLW3SL.js";
15
+ import "../../chunks/chunk.C5W2Y6KW.js";
16
16
  import "../../chunks/chunk.O7USYXBT.js";
17
17
  import "../../chunks/chunk.DJOAQ4JU.js";
18
18
  export {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  SynRadioButton
3
- } from "../../chunks/chunk.AR7MHBEC.js";
3
+ } from "../../chunks/chunk.LL3V6HVM.js";
4
4
  import "../../chunks/chunk.MWDOOCSU.js";
5
5
  import "../../chunks/chunk.XGXFE6IF.js";
6
6
  import "../../chunks/chunk.VZ7S7YYN.js";
7
7
  import "../../chunks/chunk.CQ2JMH2J.js";
8
8
  import "../../chunks/chunk.IUC3AWAU.js";
9
- import "../../chunks/chunk.Z2DLW3SL.js";
9
+ import "../../chunks/chunk.C5W2Y6KW.js";
10
10
  import "../../chunks/chunk.O7USYXBT.js";
11
11
  import "../../chunks/chunk.DJOAQ4JU.js";
12
12
  export {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  radio_button_default
3
- } from "../../chunks/chunk.ND73VYBT.js";
4
- import "../../chunks/chunk.AR7MHBEC.js";
3
+ } from "../../chunks/chunk.JLTYAQFG.js";
4
+ import "../../chunks/chunk.LL3V6HVM.js";
5
5
  import "../../chunks/chunk.MWDOOCSU.js";
6
6
  import "../../chunks/chunk.XGXFE6IF.js";
7
7
  import "../../chunks/chunk.VZ7S7YYN.js";
8
8
  import "../../chunks/chunk.CQ2JMH2J.js";
9
9
  import "../../chunks/chunk.IUC3AWAU.js";
10
- import "../../chunks/chunk.Z2DLW3SL.js";
10
+ import "../../chunks/chunk.C5W2Y6KW.js";
11
11
  import "../../chunks/chunk.O7USYXBT.js";
12
12
  import "../../chunks/chunk.DJOAQ4JU.js";
13
13
  export {
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  SynRadioGroup
3
- } from "../../chunks/chunk.JMETBEU6.js";
3
+ } from "../../chunks/chunk.IYKQTZIY.js";
4
4
  import "../../chunks/chunk.4I6M5V6O.js";
5
5
  import "../../chunks/chunk.F4MRQLNL.js";
6
6
  import "../../chunks/chunk.JHXCBOUD.js";
7
7
  import "../../chunks/chunk.XGXFE6IF.js";
8
8
  import "../../chunks/chunk.AMTCNRDE.js";
9
9
  import "../../chunks/chunk.VZ7S7YYN.js";
10
- import "../../chunks/chunk.MTDXRKO3.js";
11
- import "../../chunks/chunk.Z2DLW3SL.js";
10
+ import "../../chunks/chunk.OPVDSHPD.js";
11
+ import "../../chunks/chunk.C5W2Y6KW.js";
12
12
  import "../../chunks/chunk.4ZURABYO.js";
13
13
  import "../../chunks/chunk.O7USYXBT.js";
14
14
  import "../../chunks/chunk.DJOAQ4JU.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  radio_group_default
3
- } from "../../chunks/chunk.6TJHEFXA.js";
4
- import "../../chunks/chunk.JMETBEU6.js";
3
+ } from "../../chunks/chunk.JQWJ7PHD.js";
4
+ import "../../chunks/chunk.IYKQTZIY.js";
5
5
  import "../../chunks/chunk.4I6M5V6O.js";
6
6
  import "../../chunks/chunk.F4MRQLNL.js";
7
7
  import "../../chunks/chunk.JHXCBOUD.js";
8
8
  import "../../chunks/chunk.XGXFE6IF.js";
9
9
  import "../../chunks/chunk.AMTCNRDE.js";
10
10
  import "../../chunks/chunk.VZ7S7YYN.js";
11
- import "../../chunks/chunk.MTDXRKO3.js";
12
- import "../../chunks/chunk.Z2DLW3SL.js";
11
+ import "../../chunks/chunk.OPVDSHPD.js";
12
+ import "../../chunks/chunk.C5W2Y6KW.js";
13
13
  import "../../chunks/chunk.4ZURABYO.js";
14
14
  import "../../chunks/chunk.O7USYXBT.js";
15
15
  import "../../chunks/chunk.DJOAQ4JU.js";