@synergy-design-system/components 1.1.0 → 1.2.1

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 (117) hide show
  1. package/README.md +24 -16
  2. package/dist/chunks/chunk.2D7KJSSX.js +75 -0
  3. package/dist/chunks/chunk.2D7KJSSX.js.map +7 -0
  4. package/dist/chunks/{chunk.OVVMSN4D.js → chunk.2V5UNOVJ.js} +2 -2
  5. package/dist/chunks/{chunk.QP2S2MDN.js → chunk.4YSX6HUH.js} +2 -2
  6. package/dist/chunks/{chunk.7ODKEYK3.js → chunk.5ILVVLJF.js} +3 -3
  7. package/dist/chunks/{chunk.4XAK6MOQ.js → chunk.6PFQSQLU.js} +2 -2
  8. package/dist/chunks/chunk.7W73A57K.js +108 -0
  9. package/dist/chunks/chunk.7W73A57K.js.map +7 -0
  10. package/dist/chunks/{chunk.OVS5OKTW.js → chunk.AMHJ56Z3.js} +3 -3
  11. package/dist/chunks/{chunk.EEG4VWBU.js → chunk.AP2QDLP7.js} +4 -4
  12. package/dist/chunks/{chunk.RAJNSJOZ.js → chunk.DS3H2UY3.js} +2 -2
  13. package/dist/chunks/{chunk.GNAJOKCJ.js → chunk.EJXWL3JM.js} +4 -2
  14. package/dist/chunks/{chunk.GNAJOKCJ.js.map → chunk.EJXWL3JM.js.map} +2 -2
  15. package/dist/chunks/{chunk.6WUVZQ3H.js → chunk.GCYPKQBG.js} +2 -2
  16. package/dist/chunks/{chunk.EXMVZ32W.js → chunk.I4ZBEQUH.js} +2 -2
  17. package/dist/chunks/{chunk.7LGURT5X.js → chunk.ITSSPNRO.js} +2 -2
  18. package/dist/chunks/{chunk.FVSP4LXX.js → chunk.IUC3AWAU.js} +44 -26
  19. package/dist/chunks/chunk.IUC3AWAU.js.map +7 -0
  20. package/dist/chunks/{chunk.L6QCO373.js → chunk.LWB5LXJ5.js} +2 -2
  21. package/dist/chunks/{chunk.5D2VBXTP.js → chunk.MBXGNZ7I.js} +2 -2
  22. package/dist/chunks/{chunk.JEEPLCYY.js → chunk.MM2HMAE6.js} +7 -7
  23. package/dist/chunks/chunk.MTGT2EG5.js +12 -0
  24. package/dist/chunks/chunk.MTGT2EG5.js.map +7 -0
  25. package/dist/chunks/{chunk.OEII5257.js → chunk.NGM2Y5G5.js} +2 -2
  26. package/dist/chunks/{chunk.P3EPUBB3.js → chunk.OUVIH6QL.js} +3 -3
  27. package/dist/chunks/{chunk.BBI3HWRM.js → chunk.PTBOOLQE.js} +5 -5
  28. package/dist/chunks/{chunk.43IE6Z7Q.js → chunk.QAPZLSEL.js} +2 -2
  29. package/dist/chunks/chunk.QHFGD6WW.js +73 -0
  30. package/dist/chunks/chunk.QHFGD6WW.js.map +7 -0
  31. package/dist/chunks/{chunk.A7ZVGGIT.js → chunk.R3CMRBZ7.js} +3 -3
  32. package/dist/chunks/{chunk.UU5CELZK.js → chunk.R3S3AGUF.js} +2 -2
  33. package/dist/chunks/{chunk.5DHO22JT.js → chunk.S6PKR3AN.js} +3 -3
  34. package/dist/chunks/{chunk.JSGAT7FF.js → chunk.U5AOTLVK.js} +2 -2
  35. package/dist/chunks/{chunk.V3UXMJRA.js → chunk.UYF5MTOU.js} +2 -2
  36. package/dist/chunks/{chunk.S424QLI7.js → chunk.V52P6M55.js} +2 -2
  37. package/dist/chunks/{chunk.S424QLI7.js.map → chunk.V52P6M55.js.map} +1 -1
  38. package/dist/chunks/{chunk.YTS5TRJZ.js → chunk.VG7NKBOV.js} +4 -4
  39. package/dist/chunks/{chunk.7NADL2IT.js → chunk.VM64SQGC.js} +3 -3
  40. package/dist/chunks/{chunk.CIYOYCTY.js → chunk.W5TOVAHB.js} +2 -2
  41. package/dist/chunks/{chunk.ICDHGCRE.js → chunk.ZUOBN5Q3.js} +2 -2
  42. package/dist/components/button/button.component.js +8 -8
  43. package/dist/components/button/button.custom.styles.js +1 -1
  44. package/dist/components/button/button.js +9 -9
  45. package/dist/components/button/button.styles.js +2 -2
  46. package/dist/components/button-group/button-group.component.js +2 -2
  47. package/dist/components/button-group/button-group.js +3 -3
  48. package/dist/components/checkbox/checkbox.component.js +5 -5
  49. package/dist/components/checkbox/checkbox.js +6 -6
  50. package/dist/components/icon/icon.component.js +4 -4
  51. package/dist/components/icon/icon.js +5 -5
  52. package/dist/components/icon/library.js +2 -2
  53. package/dist/components/icon/library.system.js +1 -1
  54. package/dist/components/icon-button/icon-button.component.js +5 -5
  55. package/dist/components/icon-button/icon-button.js +6 -6
  56. package/dist/components/input/input.component.js +5 -5
  57. package/dist/components/input/input.js +6 -6
  58. package/dist/components/radio/radio.component.js +5 -5
  59. package/dist/components/radio/radio.js +6 -6
  60. package/dist/components/radio-button/radio-button.component.js +5 -5
  61. package/dist/components/radio-button/radio-button.js +6 -6
  62. package/dist/components/radio-button/radio-button.styles.js +3 -3
  63. package/dist/components/radio-group/radio-group.component.js +4 -4
  64. package/dist/components/radio-group/radio-group.js +5 -5
  65. package/dist/components/spinner/spinner.component.js +2 -2
  66. package/dist/components/switch/switch.component.js +2 -2
  67. package/dist/components/switch/switch.js +3 -3
  68. package/dist/components/tag/tag.component.d.ts +33 -0
  69. package/dist/components/tag/tag.component.js +25 -0
  70. package/dist/components/tag/tag.component.js.map +7 -0
  71. package/dist/components/tag/tag.custom.styles.d.ts +2 -0
  72. package/dist/components/tag/tag.custom.styles.js +8 -0
  73. package/dist/components/tag/tag.custom.styles.js.map +7 -0
  74. package/dist/components/tag/tag.d.ts +8 -0
  75. package/dist/components/tag/tag.js +26 -0
  76. package/dist/components/tag/tag.js.map +7 -0
  77. package/dist/components/tag/tag.styles.d.ts +2 -0
  78. package/dist/components/tag/tag.styles.js +10 -0
  79. package/dist/components/tag/tag.styles.js.map +7 -0
  80. package/dist/components/textarea/textarea.component.js +2 -2
  81. package/dist/components/textarea/textarea.js +3 -3
  82. package/dist/custom-elements.json +133 -1
  83. package/dist/events/events.d.ts +1 -0
  84. package/dist/events/syn-remove.d.ts +6 -0
  85. package/dist/synergy.d.ts +1 -0
  86. package/dist/synergy.js +43 -36
  87. package/dist/utilities/icon-library.js +2 -2
  88. package/dist/vscode.html-custom-data.json +26 -0
  89. package/dist/web-types.json +48 -1
  90. package/package.json +4 -3
  91. package/dist/chunks/chunk.FVSP4LXX.js.map +0 -7
  92. /package/dist/chunks/{chunk.OVVMSN4D.js.map → chunk.2V5UNOVJ.js.map} +0 -0
  93. /package/dist/chunks/{chunk.QP2S2MDN.js.map → chunk.4YSX6HUH.js.map} +0 -0
  94. /package/dist/chunks/{chunk.7ODKEYK3.js.map → chunk.5ILVVLJF.js.map} +0 -0
  95. /package/dist/chunks/{chunk.4XAK6MOQ.js.map → chunk.6PFQSQLU.js.map} +0 -0
  96. /package/dist/chunks/{chunk.OVS5OKTW.js.map → chunk.AMHJ56Z3.js.map} +0 -0
  97. /package/dist/chunks/{chunk.EEG4VWBU.js.map → chunk.AP2QDLP7.js.map} +0 -0
  98. /package/dist/chunks/{chunk.RAJNSJOZ.js.map → chunk.DS3H2UY3.js.map} +0 -0
  99. /package/dist/chunks/{chunk.6WUVZQ3H.js.map → chunk.GCYPKQBG.js.map} +0 -0
  100. /package/dist/chunks/{chunk.EXMVZ32W.js.map → chunk.I4ZBEQUH.js.map} +0 -0
  101. /package/dist/chunks/{chunk.7LGURT5X.js.map → chunk.ITSSPNRO.js.map} +0 -0
  102. /package/dist/chunks/{chunk.L6QCO373.js.map → chunk.LWB5LXJ5.js.map} +0 -0
  103. /package/dist/chunks/{chunk.5D2VBXTP.js.map → chunk.MBXGNZ7I.js.map} +0 -0
  104. /package/dist/chunks/{chunk.JEEPLCYY.js.map → chunk.MM2HMAE6.js.map} +0 -0
  105. /package/dist/chunks/{chunk.OEII5257.js.map → chunk.NGM2Y5G5.js.map} +0 -0
  106. /package/dist/chunks/{chunk.P3EPUBB3.js.map → chunk.OUVIH6QL.js.map} +0 -0
  107. /package/dist/chunks/{chunk.BBI3HWRM.js.map → chunk.PTBOOLQE.js.map} +0 -0
  108. /package/dist/chunks/{chunk.43IE6Z7Q.js.map → chunk.QAPZLSEL.js.map} +0 -0
  109. /package/dist/chunks/{chunk.A7ZVGGIT.js.map → chunk.R3CMRBZ7.js.map} +0 -0
  110. /package/dist/chunks/{chunk.UU5CELZK.js.map → chunk.R3S3AGUF.js.map} +0 -0
  111. /package/dist/chunks/{chunk.5DHO22JT.js.map → chunk.S6PKR3AN.js.map} +0 -0
  112. /package/dist/chunks/{chunk.JSGAT7FF.js.map → chunk.U5AOTLVK.js.map} +0 -0
  113. /package/dist/chunks/{chunk.V3UXMJRA.js.map → chunk.UYF5MTOU.js.map} +0 -0
  114. /package/dist/chunks/{chunk.YTS5TRJZ.js.map → chunk.VG7NKBOV.js.map} +0 -0
  115. /package/dist/chunks/{chunk.7NADL2IT.js.map → chunk.VM64SQGC.js.map} +0 -0
  116. /package/dist/chunks/{chunk.CIYOYCTY.js.map → chunk.W5TOVAHB.js.map} +0 -0
  117. /package/dist/chunks/{chunk.ICDHGCRE.js.map → chunk.ZUOBN5Q3.js.map} +0 -0
package/README.md CHANGED
@@ -45,7 +45,10 @@ To make all components available, just load the main package file. It will make
45
45
  <syn-input></syn-input>
46
46
  </div>
47
47
  <!-- As we are loading all modules, syn-button and syn-input will render correctly -->
48
- <script type="module" src="../node_modules/@synergy-design-system/components/dist/synergy.js"></script>
48
+ <script
49
+ type="module"
50
+ src="../node_modules/@synergy-design-system/components/dist/synergy.js"
51
+ ></script>
49
52
  </body>
50
53
  </html>
51
54
  ```
@@ -56,10 +59,10 @@ When using a build system, you should load the bundle in JavaScript or TypeScrip
56
59
  // main.ts
57
60
 
58
61
  // Do not forget to load the design tokens!
59
- import '@synergy-design-system/tokens/themes/light.css';
62
+ import "@synergy-design-system/tokens/themes/light.css";
60
63
 
61
64
  // This will load synergy.js via the exports map
62
- import '@synergy-design-system/components';
65
+ import "@synergy-design-system/components";
63
66
  ```
64
67
 
65
68
  #### Loading selected components only
@@ -79,7 +82,10 @@ Use this when you need complete control about which components are loaded. This
79
82
  <syn-input></syn-input>
80
83
  </div>
81
84
  <!-- We are only loading the button, syn-input will render as an empty div! -->
82
- <script type="module" src="../node_modules/@synergy-design-system/components/dist/components/button/button.js"></script>
85
+ <script
86
+ type="module"
87
+ src="../node_modules/@synergy-design-system/components/dist/components/button/button.js"
88
+ ></script>
83
89
  </body>
84
90
  </html>
85
91
  ```
@@ -90,10 +96,10 @@ When using a build system, you may also load the bundle in JavaScript or TypeScr
90
96
  // main.ts
91
97
 
92
98
  // Do not forget to load the design tokens!
93
- import '@synergy-design-system/tokens/themes/light.css';
99
+ import "@synergy-design-system/tokens/themes/light.css";
94
100
 
95
101
  // This will only load and define the button itself
96
- import '@synergy-design-system/components/components/button/button.js';
102
+ import "@synergy-design-system/components/components/button/button.js";
97
103
  ```
98
104
 
99
105
  ---
@@ -106,24 +112,26 @@ The components are built using typescript and provide types for elements and eve
106
112
  // main.ts
107
113
 
108
114
  // Do not forget to load the design tokens!
109
- import '@synergy-design-system/tokens/themes/light.css';
115
+ import "@synergy-design-system/tokens/themes/light.css";
110
116
 
111
117
  // Example 1: Load the type for syn-button from the root:
112
- import type { SynButton, SynInvalidEvent } from '@synergy-design-system/components';
118
+ import type {
119
+ SynButton,
120
+ SynInvalidEvent,
121
+ } from "@synergy-design-system/components";
113
122
 
114
123
  // Example 2: Load the type from the syn-button dir directly.
115
124
  // In this case you will have to load the event type from another file!
116
- import type { SynButton } from '@synergy-design-system/components/components/button/button.component';
117
- import type { SynInvalidEvent } from '@synergy-design-system/components/events/events';
125
+ import type { SynButton } from "@synergy-design-system/components/components/button/button.component";
126
+ import type { SynInvalidEvent } from "@synergy-design-system/components/events/events";
118
127
 
119
- document.addEventListener('load', () => {
120
- const loadedSynButtons = document.querySelectorAll<SynButton>('syn-button');
128
+ document.addEventListener("load", () => {
129
+ const loadedSynButtons = document.querySelectorAll<SynButton>("syn-button");
121
130
 
122
131
  // Attach a syn-invalid event that is fired every time a button becomes invalid
123
- Array
124
- .from(loadedSynButtons) // Type: SynButton[]
125
- .addEventListener('syn-invalid', (e: SynInvalidEvent) => {
126
- console.log('Button is now invalid!', e);
132
+ Array.from(loadedSynButtons) // Type: SynButton[]
133
+ .addEventListener("syn-invalid", (e: SynInvalidEvent) => {
134
+ console.log("Button is now invalid!", e);
127
135
  });
128
136
  });
129
137
  ```
@@ -0,0 +1,75 @@
1
+ import {
2
+ tag_styles_default
3
+ } from "./chunk.QHFGD6WW.js";
4
+ import {
5
+ SynIconButton
6
+ } from "./chunk.R3CMRBZ7.js";
7
+ import {
8
+ LocalizeController
9
+ } from "./chunk.R6VNLE6N.js";
10
+ import {
11
+ SynergyElement
12
+ } from "./chunk.V52P6M55.js";
13
+ import {
14
+ __decorateClass
15
+ } from "./chunk.DJOAQ4JU.js";
16
+
17
+ // src/components/tag/tag.component.ts
18
+ import { classMap } from "lit/directives/class-map.js";
19
+ import { html } from "lit";
20
+ import { property } from "lit/decorators.js";
21
+ var SynTag = class extends SynergyElement {
22
+ constructor() {
23
+ super(...arguments);
24
+ this.localize = new LocalizeController(this);
25
+ this.size = "medium";
26
+ this.removable = false;
27
+ }
28
+ handleRemoveClick() {
29
+ this.emit("syn-remove");
30
+ }
31
+ render() {
32
+ return html`
33
+ <span
34
+ part="base"
35
+ class=${classMap({
36
+ tag: true,
37
+ // Sizes
38
+ "tag--small": this.size === "small",
39
+ "tag--medium": this.size === "medium",
40
+ "tag--large": this.size === "large",
41
+ // Modifiers
42
+ "tag--removable": this.removable
43
+ })}
44
+ >
45
+ <slot part="content" class="tag__content"></slot>
46
+
47
+ ${this.removable ? html`
48
+ <syn-icon-button
49
+ part="remove-button"
50
+ exportparts="base:remove-button__base"
51
+ name="x-lg"
52
+ library="system"
53
+ label=${this.localize.term("remove")}
54
+ class="tag__remove"
55
+ @click=${this.handleRemoveClick}
56
+ tabindex="-1"
57
+ ></syn-icon-button>
58
+ ` : ""}
59
+ </span>
60
+ `;
61
+ }
62
+ };
63
+ SynTag.styles = tag_styles_default;
64
+ SynTag.dependencies = { "syn-icon-button": SynIconButton };
65
+ __decorateClass([
66
+ property({ reflect: true })
67
+ ], SynTag.prototype, "size", 2);
68
+ __decorateClass([
69
+ property({ type: Boolean })
70
+ ], SynTag.prototype, "removable", 2);
71
+
72
+ export {
73
+ SynTag
74
+ };
75
+ //# sourceMappingURL=chunk.2D7KJSSX.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/tag/tag.component.ts"],
4
+ "sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property } from 'lit/decorators.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIconButton from '../icon-button/icon-button.component.js';\nimport styles from './tag.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Tags are used as labels to organize things or to indicate a selection.\n * @documentation https://synergy.style/components/tag\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The tag's content.\n *\n * @event syn-remove - Emitted when the remove button is activated.\n *\n * @csspart base - The component's base wrapper.\n * @csspart content - The tag's content.\n * @csspart remove-button - The tag's remove button, an `<syn-icon-button>`.\n * @csspart remove-button__base - The remove button's exported `base` part.\n */\nexport default class SynTag extends SynergyElement {\n static styles: CSSResultGroup = styles;\n static dependencies = { 'syn-icon-button': SynIconButton };\n\n private readonly localize = new LocalizeController(this);\n\n /** The tag's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Makes the tag removable and shows a remove button. */\n @property({ type: Boolean }) removable = false;\n\n private handleRemoveClick() {\n this.emit('syn-remove');\n }\n\n render() {\n return html`\n <span\n part=\"base\"\n class=${classMap({\n tag: true,\n\n // Sizes\n 'tag--small': this.size === 'small',\n 'tag--medium': this.size === 'medium',\n 'tag--large': this.size === 'large',\n\n // Modifiers\n 'tag--removable': this.removable\n })}\n >\n <slot part=\"content\" class=\"tag__content\"></slot>\n\n ${this.removable\n ? html`\n <syn-icon-button\n part=\"remove-button\"\n exportparts=\"base:remove-button__base\"\n name=\"x-lg\"\n library=\"system\"\n label=${this.localize.term('remove')}\n class=\"tag__remove\"\n @click=${this.handleRemoveClick}\n tabindex=\"-1\"\n ></syn-icon-button>\n `\n : ''}\n </span>\n `;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAMA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AAErB,SAAS,gBAAgB;AAuBzB,IAAqB,SAArB,cAAoC,eAAe;AAAA,EAAnD;AAAA;AAIE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAG1B,gBAAqC;AAGrC,qBAAY;AAAA;AAAA,EAEjC,oBAAoB;AAC1B,SAAK,KAAK,YAAY;AAAA,EACxB;AAAA,EAEA,SAAS;AACP,WAAO;AAAA;AAAA;AAAA,gBAGK,SAAS;AAAA,MACf,KAAK;AAAA;AAAA,MAGL,cAAc,KAAK,SAAS;AAAA,MAC5B,eAAe,KAAK,SAAS;AAAA,MAC7B,cAAc,KAAK,SAAS;AAAA;AAAA,MAG5B,kBAAkB,KAAK;AAAA,IACzB,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA,UAIA,KAAK,YACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAMY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,yBAE3B,KAAK,iBAAiB;AAAA;AAAA;AAAA,gBAInC,EAAE;AAAA;AAAA;AAAA,EAGZ;AACF;AAnDqB,OACZ,SAAyB;AADb,OAEZ,eAAe,EAAE,mBAAmB,cAAc;AAK5B;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAPR,OAOU;AAGA;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GAVR,OAUU;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  button_styles_default
3
- } from "./chunk.YTS5TRJZ.js";
3
+ } from "./chunk.VG7NKBOV.js";
4
4
 
5
5
  // src/components/radio-button/radio-button.styles.ts
6
6
  import { css } from "lit";
@@ -34,4 +34,4 @@ var radio_button_styles_default = css`
34
34
  export {
35
35
  radio_button_styles_default
36
36
  };
37
- //# sourceMappingURL=chunk.OVVMSN4D.js.map
37
+ //# sourceMappingURL=chunk.2V5UNOVJ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynCheckbox
3
- } from "./chunk.OVS5OKTW.js";
3
+ } from "./chunk.AMHJ56Z3.js";
4
4
 
5
5
  // src/components/checkbox/checkbox.ts
6
6
  var checkbox_default = SynCheckbox;
@@ -9,4 +9,4 @@ SynCheckbox.define("syn-checkbox");
9
9
  export {
10
10
  checkbox_default
11
11
  };
12
- //# sourceMappingURL=chunk.QP2S2MDN.js.map
12
+ //# sourceMappingURL=chunk.4YSX6HUH.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  radio_button_styles_default
3
- } from "./chunk.OVVMSN4D.js";
3
+ } from "./chunk.2V5UNOVJ.js";
4
4
  import {
5
5
  HasSlotController
6
6
  } from "./chunk.XGXFE6IF.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk.VZ7S7YYN.js";
10
10
  import {
11
11
  SynergyElement
12
- } from "./chunk.S424QLI7.js";
12
+ } from "./chunk.V52P6M55.js";
13
13
  import {
14
14
  __decorateClass
15
15
  } from "./chunk.DJOAQ4JU.js";
@@ -124,4 +124,4 @@ __decorateClass([
124
124
  export {
125
125
  SynRadioButton
126
126
  };
127
- //# sourceMappingURL=chunk.7ODKEYK3.js.map
127
+ //# sourceMappingURL=chunk.5ILVVLJF.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.6C4JXZZN.js";
4
4
  import {
5
5
  library_system_default
6
- } from "./chunk.GNAJOKCJ.js";
6
+ } from "./chunk.EJXWL3JM.js";
7
7
 
8
8
  // src/components/icon/library.ts
9
9
  var registry = [library_default_default, library_system_default];
@@ -42,4 +42,4 @@ export {
42
42
  registerIconLibrary,
43
43
  unregisterIconLibrary
44
44
  };
45
- //# sourceMappingURL=chunk.4XAK6MOQ.js.map
45
+ //# sourceMappingURL=chunk.6PFQSQLU.js.map
@@ -0,0 +1,108 @@
1
+ // src/components/tag/tag.custom.styles.ts
2
+ import { css } from "lit";
3
+ var tag_custom_styles_default = css`
4
+ .tag {
5
+ background-color: var(--syn-color-neutral-0);
6
+ border-color: var(--syn-color-neutral-400);
7
+ color: var(--syn-input-color);
8
+ }
9
+
10
+ .tag .tag__remove {
11
+ color: var(--syn-color-neutral-500);
12
+ }
13
+
14
+
15
+ /* Size small */
16
+ .tag--small {
17
+ font-size: var(--syn-font-size-x-small);
18
+ height: var(--syn-font-size-x-large);
19
+ }
20
+
21
+ .tag--small.tag--removable {
22
+ padding-inline-end: var(--syn-spacing-2x-small);
23
+ }
24
+
25
+
26
+ /* Size medium */
27
+ .tag--medium {
28
+ font-size: var(--syn-font-size-small);
29
+ height: var(--syn-font-size-2x-large);
30
+ }
31
+
32
+ .tag--medium.tag--removable {
33
+ padding-inline-end: var(--syn-spacing-x-small);
34
+ }
35
+
36
+ .tag--medium .tag__remove {
37
+ margin-inline-start: var(--syn-spacing-small);
38
+ }
39
+
40
+
41
+ /* Size large */
42
+ .tag--large {
43
+ font-size: var(--syn-font-size-medium);
44
+ height: var(--syn-font-size-3x-large);
45
+ }
46
+
47
+ .tag--large .tag__remove {
48
+ margin-inline-start: var(--syn-spacing-medium);
49
+ }
50
+
51
+ .tag--large.tag--removable {
52
+ padding-inline-end: var(--syn-spacing-small);
53
+ }
54
+
55
+
56
+ /* Hover */
57
+ .tag.tag--removable:hover {
58
+ background-color: var(--syn-color-neutral-100);
59
+ }
60
+
61
+ .tag .tag__remove:hover {
62
+ color: var(--syn-color-neutral-950);
63
+ }
64
+
65
+
66
+ /* Focus
67
+ ! Focus styling is currently not working because shoelace does not support to focus icon-button
68
+ */
69
+ .tag.tag--removable:focus ~ .tag__remove {
70
+ border: solid 1px var(--syn-color-primary-500);
71
+ }
72
+
73
+
74
+ /* Slotted icon style */
75
+ .tag--small ::slotted(syn-icon) {
76
+ font-size: var(--syn-font-size-small);
77
+ margin-inline-end: var(--syn-spacing-2x-small);
78
+ }
79
+
80
+ .tag--medium ::slotted(syn-icon) {
81
+ font-size: var(--syn-font-size-medium);
82
+ margin-inline-end: var(--syn-spacing-x-small);
83
+ }
84
+
85
+ .tag--large ::slotted(syn-icon) {
86
+ font-size: var(--syn-font-size-large);
87
+ margin-inline-end: var(--syn-spacing-x-small);
88
+ }
89
+
90
+
91
+ /* Remove icon-button style */
92
+ .tag--small .tag__remove::part(base){
93
+ font-size: var(--syn-font-size-medium);
94
+ }
95
+
96
+ .tag--medium .tag__remove::part(base){
97
+ font-size: var(--syn-font-size-x-large);
98
+ }
99
+
100
+ .tag--large .tag__remove::part(base){
101
+ font-size: var(--syn-font-size-2x-large);
102
+ }
103
+ `;
104
+
105
+ export {
106
+ tag_custom_styles_default
107
+ };
108
+ //# sourceMappingURL=chunk.7W73A57K.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/tag/tag.custom.styles.ts"],
4
+ "sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n .tag {\n background-color: var(--syn-color-neutral-0);\n border-color: var(--syn-color-neutral-400);\n color: var(--syn-input-color);\n }\n\n .tag .tag__remove {\n color: var(--syn-color-neutral-500);\n }\n\n\n /* Size small */\n .tag--small {\n font-size: var(--syn-font-size-x-small);\n height: var(--syn-font-size-x-large);\n }\n\n .tag--small.tag--removable {\n padding-inline-end: var(--syn-spacing-2x-small);\n }\n\n\n /* Size medium */\n .tag--medium {\n font-size: var(--syn-font-size-small);\n height: var(--syn-font-size-2x-large);\n }\n\n .tag--medium.tag--removable {\n padding-inline-end: var(--syn-spacing-x-small);\n }\n\n .tag--medium .tag__remove {\n margin-inline-start: var(--syn-spacing-small);\n }\n\n\n /* Size large */\n .tag--large {\n font-size: var(--syn-font-size-medium);\n height: var(--syn-font-size-3x-large);\n }\n\n .tag--large .tag__remove {\n margin-inline-start: var(--syn-spacing-medium);\n }\n\n .tag--large.tag--removable {\n padding-inline-end: var(--syn-spacing-small);\n }\n\n\n /* Hover */\n .tag.tag--removable:hover {\n background-color: var(--syn-color-neutral-100);\n }\n \n .tag .tag__remove:hover {\n color: var(--syn-color-neutral-950);\n }\n\n\n /* Focus \n ! Focus styling is currently not working because shoelace does not support to focus icon-button \n */\n .tag.tag--removable:focus ~ .tag__remove {\n border: solid 1px var(--syn-color-primary-500);\n }\n\n\n /* Slotted icon style */\n .tag--small ::slotted(syn-icon) {\n font-size: var(--syn-font-size-small);\n margin-inline-end: var(--syn-spacing-2x-small);\n }\n\n .tag--medium ::slotted(syn-icon) {\n font-size: var(--syn-font-size-medium);\n margin-inline-end: var(--syn-spacing-x-small);\n }\n\n .tag--large ::slotted(syn-icon) {\n font-size: var(--syn-font-size-large);\n margin-inline-end: var(--syn-spacing-x-small);\n }\n\n\n /* Remove icon-button style */\n .tag--small .tag__remove::part(base){\n font-size: var(--syn-font-size-medium);\n }\n\n .tag--medium .tag__remove::part(base){\n font-size: var(--syn-font-size-x-large);\n }\n\n .tag--large .tag__remove::part(base){\n font-size: var(--syn-font-size-2x-large);\n }\n`;\n"],
5
+ "mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,4BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -9,13 +9,13 @@ import {
9
9
  } from "./chunk.P2LNG2PZ.js";
10
10
  import {
11
11
  SynIcon
12
- } from "./chunk.7NADL2IT.js";
12
+ } from "./chunk.VM64SQGC.js";
13
13
  import {
14
14
  watch
15
15
  } from "./chunk.VZ7S7YYN.js";
16
16
  import {
17
17
  SynergyElement
18
- } from "./chunk.S424QLI7.js";
18
+ } from "./chunk.V52P6M55.js";
19
19
  import {
20
20
  __decorateClass
21
21
  } from "./chunk.DJOAQ4JU.js";
@@ -221,4 +221,4 @@ __decorateClass([
221
221
  export {
222
222
  SynCheckbox
223
223
  };
224
- //# sourceMappingURL=chunk.OVS5OKTW.js.map
224
+ //# sourceMappingURL=chunk.AMHJ56Z3.js.map
@@ -1,9 +1,9 @@
1
- import {
2
- SynergyElement
3
- } from "./chunk.S424QLI7.js";
4
1
  import {
5
2
  button_group_styles_default
6
3
  } from "./chunk.4ZURABYO.js";
4
+ import {
5
+ SynergyElement
6
+ } from "./chunk.V52P6M55.js";
7
7
  import {
8
8
  __decorateClass
9
9
  } from "./chunk.DJOAQ4JU.js";
@@ -83,4 +83,4 @@ function findButton(el) {
83
83
  export {
84
84
  SynButtonGroup
85
85
  };
86
- //# sourceMappingURL=chunk.EEG4VWBU.js.map
86
+ //# sourceMappingURL=chunk.AP2QDLP7.js.map
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk.VZ7S7YYN.js";
13
13
  import {
14
14
  SynergyElement
15
- } from "./chunk.S424QLI7.js";
15
+ } from "./chunk.V52P6M55.js";
16
16
  import {
17
17
  __decorateClass
18
18
  } from "./chunk.DJOAQ4JU.js";
@@ -209,4 +209,4 @@ __decorateClass([
209
209
  export {
210
210
  SynSwitch
211
211
  };
212
- //# sourceMappingURL=chunk.RAJNSJOZ.js.map
212
+ //# sourceMappingURL=chunk.DS3H2UY3.js.map
@@ -13,7 +13,9 @@ var icons = {
13
13
  "radio": `
14
14
  <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill='currentColor'><path d="M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z"/></svg>`,
15
15
  "x-circle-fill": `
16
- <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill='currentColor'><path d="M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM17 15.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59L15.59 7L17 8.41L13.41 12L17 15.59Z"/></svg>`
16
+ <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill='currentColor'><path d="M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM17 15.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59L15.59 7L17 8.41L13.41 12L17 15.59Z"/></svg>`,
17
+ "x-lg": `
18
+ <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill='currentColor'><path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"/></svg>`
17
19
  };
18
20
  var systemLibrary = {
19
21
  name: "system",
@@ -29,4 +31,4 @@ var library_system_default = systemLibrary;
29
31
  export {
30
32
  library_system_default
31
33
  };
32
- //# sourceMappingURL=chunk.GNAJOKCJ.js.map
34
+ //# sourceMappingURL=chunk.EJXWL3JM.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/components/icon/library.system.ts"],
4
- "sourcesContent": ["/* eslint-disable */\nimport type { IconLibrary } from './library.js';\n\n//\n// System icons are a separate library to ensure they're always available, regardless of how the default icon library is\n// configured or if its icons resolve properly.\n//\n// All Synergy components must use the system library instead of the default library. For visual consistency, system\n// icons are a subset of Bootstrap Icons.\n//\n// **Start system icons**\nconst icons = {\n\t'caret': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M16.59 8.295L12 12.875L7.41 8.295L6 9.705L12 15.705L18 9.705L16.59 8.295Z\"/></svg>`,\n\t'check': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M8.79496 15.875L4.62496 11.705L3.20496 13.115L8.79496 18.705L20.795 6.705L19.385 5.295L8.79496 15.875Z\"/></svg>`,\n\t'eye-slash': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M12.005 6.5C14.765 6.5 17.005 8.74 17.005 11.5C17.005 12.15 16.875 12.76 16.645 13.33L19.565 16.25C21.075 14.99 22.265 13.36 22.995 11.5C21.265 7.11 16.995 4 11.995 4C10.595 4 9.255 4.25 8.01501 4.7L10.175 6.86C10.745 6.63 11.355 6.5 12.005 6.5ZM2.005 3.77L4.745 6.51C3.085 7.8 1.785 9.52 1.005 11.5C2.735 15.89 7.005 19 12.005 19C13.555 19 15.035 18.7 16.385 18.16L16.805 18.58L19.735 21.5L21.005 20.23L3.275 2.5L2.005 3.77ZM7.53501 9.3L9.085 10.85C9.035 11.06 9.005 11.28 9.005 11.5C9.005 13.16 10.345 14.5 12.005 14.5C12.225 14.5 12.445 14.47 12.655 14.42L14.205 15.97C13.535 16.3 12.795 16.5 12.005 16.5C9.245 16.5 7.005 14.26 7.005 11.5C7.005 10.71 7.20501 9.97 7.53501 9.3ZM11.845 8.52L14.995 11.67L15.015 11.51C15.015 9.85 13.675 8.51 12.015 8.51L11.845 8.52Z\"/></svg>`,\n\t'eye': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z\"/></svg>`,\n\t'indeterminate': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M19 13H5V11H19V13Z\"/></svg>`,\n\t'radio': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z\"/></svg>`,\n\t'x-circle-fill': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM17 15.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59L15.59 7L17 8.41L13.41 12L17 15.59Z\"/></svg>`\n};\n// **End system icons**\n\nconst systemLibrary: IconLibrary = {\n name: 'system',\n resolver: (name: keyof typeof icons) => {\n if (name in icons) {\n return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;\n }\n return '';\n }\n};\n\nexport default systemLibrary;\n"],
5
- "mappings": ";AAWA,IAAM,QAAQ;AAAA,EACb,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,aAAa;AAAA;AAAA,EAEb,OAAO;AAAA;AAAA,EAEP,iBAAiB;AAAA;AAAA,EAEjB,SAAS;AAAA;AAAA,EAET,iBAAiB;AAAA;AAElB;AAGA,IAAM,gBAA6B;AAAA,EACjC,MAAM;AAAA,EACN,UAAU,CAAC,SAA6B;AACtC,QAAI,QAAQ,OAAO;AACjB,aAAO,sBAAsB,mBAAmB,MAAM,IAAI,CAAC,CAAC;AAAA,IAC9D;AACA,WAAO;AAAA,EACT;AACF;AAEA,IAAO,yBAAQ;",
4
+ "sourcesContent": ["/* eslint-disable */\nimport type { IconLibrary } from './library.js';\n\n//\n// System icons are a separate library to ensure they're always available, regardless of how the default icon library is\n// configured or if its icons resolve properly.\n//\n// All Synergy components must use the system library instead of the default library. For visual consistency, system\n// icons are a subset of Bootstrap Icons.\n//\n// **Start system icons**\nconst icons = {\n\t'caret': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M16.59 8.295L12 12.875L7.41 8.295L6 9.705L12 15.705L18 9.705L16.59 8.295Z\"/></svg>`,\n\t'check': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M8.79496 15.875L4.62496 11.705L3.20496 13.115L8.79496 18.705L20.795 6.705L19.385 5.295L8.79496 15.875Z\"/></svg>`,\n\t'eye-slash': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M12.005 6.5C14.765 6.5 17.005 8.74 17.005 11.5C17.005 12.15 16.875 12.76 16.645 13.33L19.565 16.25C21.075 14.99 22.265 13.36 22.995 11.5C21.265 7.11 16.995 4 11.995 4C10.595 4 9.255 4.25 8.01501 4.7L10.175 6.86C10.745 6.63 11.355 6.5 12.005 6.5ZM2.005 3.77L4.745 6.51C3.085 7.8 1.785 9.52 1.005 11.5C2.735 15.89 7.005 19 12.005 19C13.555 19 15.035 18.7 16.385 18.16L16.805 18.58L19.735 21.5L21.005 20.23L3.275 2.5L2.005 3.77ZM7.53501 9.3L9.085 10.85C9.035 11.06 9.005 11.28 9.005 11.5C9.005 13.16 10.345 14.5 12.005 14.5C12.225 14.5 12.445 14.47 12.655 14.42L14.205 15.97C13.535 16.3 12.795 16.5 12.005 16.5C9.245 16.5 7.005 14.26 7.005 11.5C7.005 10.71 7.20501 9.97 7.53501 9.3ZM11.845 8.52L14.995 11.67L15.015 11.51C15.015 9.85 13.675 8.51 12.015 8.51L11.845 8.52Z\"/></svg>`,\n\t'eye': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z\"/></svg>`,\n\t'indeterminate': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M19 13H5V11H19V13Z\"/></svg>`,\n\t'radio': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z\"/></svg>`,\n\t'x-circle-fill': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM17 15.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59L15.59 7L17 8.41L13.41 12L17 15.59Z\"/></svg>`,\n\t'x-lg': `\n\t\t<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill='currentColor'><path d=\"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z\"/></svg>`\n};\n// **End system icons**\n\nconst systemLibrary: IconLibrary = {\n name: 'system',\n resolver: (name: keyof typeof icons) => {\n if (name in icons) {\n return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;\n }\n return '';\n }\n};\n\nexport default systemLibrary;\n"],
5
+ "mappings": ";AAWA,IAAM,QAAQ;AAAA,EACb,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,aAAa;AAAA;AAAA,EAEb,OAAO;AAAA;AAAA,EAEP,iBAAiB;AAAA;AAAA,EAEjB,SAAS;AAAA;AAAA,EAET,iBAAiB;AAAA;AAAA,EAEjB,QAAQ;AAAA;AAET;AAGA,IAAM,gBAA6B;AAAA,EACjC,MAAM;AAAA,EACN,UAAU,CAAC,SAA6B;AACtC,QAAI,QAAQ,OAAO;AACjB,aAAO,sBAAsB,mBAAmB,MAAM,IAAI,CAAC,CAAC;AAAA,IAC9D;AACA,WAAO;AAAA,EACT;AACF;AAEA,IAAO,yBAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynIconButton
3
- } from "./chunk.A7ZVGGIT.js";
3
+ } from "./chunk.R3CMRBZ7.js";
4
4
 
5
5
  // src/components/icon-button/icon-button.ts
6
6
  var icon_button_default = SynIconButton;
@@ -9,4 +9,4 @@ SynIconButton.define("syn-icon-button");
9
9
  export {
10
10
  icon_button_default
11
11
  };
12
- //# sourceMappingURL=chunk.6WUVZQ3H.js.map
12
+ //# sourceMappingURL=chunk.GCYPKQBG.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.R6VNLE6N.js";
7
7
  import {
8
8
  SynergyElement
9
- } from "./chunk.S424QLI7.js";
9
+ } from "./chunk.V52P6M55.js";
10
10
 
11
11
  // src/components/spinner/spinner.component.ts
12
12
  import { html } from "lit";
@@ -29,4 +29,4 @@ SynSpinner.styles = spinner_styles_default;
29
29
  export {
30
30
  SynSpinner
31
31
  };
32
- //# sourceMappingURL=chunk.EXMVZ32W.js.map
32
+ //# sourceMappingURL=chunk.I4ZBEQUH.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynInput
3
- } from "./chunk.5DHO22JT.js";
3
+ } from "./chunk.S6PKR3AN.js";
4
4
 
5
5
  // src/components/input/input.ts
6
6
  var input_default = SynInput;
@@ -9,4 +9,4 @@ SynInput.define("syn-input");
9
9
  export {
10
10
  input_default
11
11
  };
12
- //# sourceMappingURL=chunk.7LGURT5X.js.map
12
+ //# sourceMappingURL=chunk.ITSSPNRO.js.map
@@ -1,27 +1,47 @@
1
1
  // src/components/button/button.custom.styles.ts
2
2
  import { css } from "lit";
3
3
  var button_custom_styles_default = css`
4
- .button:focus-visible {
4
+ .button:focus-visible {
5
5
  outline: var(--syn-focus-ring-color) solid var(--syn-focus-ring-width);
6
6
  outline-offset: var(--syn-focus-ring-width);
7
7
  }
8
8
 
9
9
  /*
10
- * Size modifiers
11
- */
10
+ * Adjustments for button label paddings
11
+ * @see https://github.com/synergy-design-system/synergy-design-system/issues/243
12
+ */
13
+ .button--has-prefix.button--small .button__label {
14
+ padding-inline-start: var(--syn-spacing-2x-small);
15
+ }
16
+
17
+ .button--has-suffix.button--small .button__label,
18
+ .button--caret.button--small .button__label {
19
+ padding-inline-end: var(--syn-spacing-2x-small);
20
+ }
21
+
22
+ .button--has-prefix.button--medium .button__label {
23
+ padding-inline-start: var(--syn-spacing-x-small);
24
+ }
25
+
26
+ .button--has-suffix.button--medium .button__label,
27
+ .button--caret.button--medium .button__label {
28
+ padding-inline-end: var(--syn-spacing-x-small);
29
+ }
12
30
 
31
+ /**
32
+ * Size modifiers
33
+ */
13
34
  .button.button--medium.button--has-label .button__label {
14
35
  font-size: var(--syn-font-size-medium);
15
- }
36
+ }
16
37
 
17
38
  .button.button--large.button--has-label .button__label {
18
39
  font-size: var(--syn-font-size-large);
19
40
  }
20
41
 
21
42
  /*
22
- * Standard buttons
23
- */
24
-
43
+ * Standard buttons
44
+ */
25
45
  .button--filled.button--primary.button--disabled {
26
46
  background-color: var(--syn-color-neutral-400);
27
47
  border-color: var(--syn-color-neutral-400);
@@ -41,9 +61,8 @@ var button_custom_styles_default = css`
41
61
  }
42
62
 
43
63
  /*
44
- * Outline buttons
45
- */
46
-
64
+ * Outline buttons
65
+ */
47
66
  .button--outline.button--primary.button--disabled {
48
67
  background: none;
49
68
  border-color: var(--syn-color-neutral-400);
@@ -64,9 +83,8 @@ var button_custom_styles_default = css`
64
83
  }
65
84
 
66
85
  /*
67
- * Text buttons
68
- */
69
-
86
+ * Text buttons
87
+ */
70
88
  .button--text:hover:not(.button--disabled) {
71
89
  color: var(--syn-color-primary-900);
72
90
  }
@@ -81,12 +99,12 @@ var button_custom_styles_default = css`
81
99
  color: var(--syn-color-neutral-400);
82
100
  }
83
101
 
84
- /*
85
- * PADDING
86
- */
87
- .button.button--small.button--has-label.button--has-prefix {
88
- padding-inline-start: var(--syn-spacing-small);
89
- }
102
+ /**
103
+ * Button spacing
104
+ */
105
+ .button.button--small.button--has-label.button--has-prefix {
106
+ padding-inline-start: var(--syn-spacing-small);
107
+ }
90
108
 
91
109
  .button.button--small.button--has-label.button--has-suffix {
92
110
  padding-inline-end: var(--syn-spacing-small);
@@ -99,7 +117,7 @@ var button_custom_styles_default = css`
99
117
 
100
118
  .button.button--medium.button--has-label.button--has-prefix {
101
119
  padding-inline-start: var(--syn-spacing-medium);
102
- }
120
+ }
103
121
 
104
122
  .button.button--medium.button--has-label.button--has-suffix {
105
123
  padding-inline-end: var(--syn-spacing-medium);
@@ -112,27 +130,27 @@ var button_custom_styles_default = css`
112
130
 
113
131
  .button.button--large.button--has-label.button--has-prefix {
114
132
  padding-inline-start: var(--syn-spacing-large);
115
- }
133
+ }
116
134
 
117
135
  .button.button--large.button--has-label.button--has-prefix .button__label {
118
- padding-inline-start: var(--syn-spacing-medium);
119
- }
136
+ padding-inline-start: var(--syn-spacing-small);
137
+ }
120
138
 
121
139
  .button.button--large.button--has-label.button--has-suffix {
122
140
  padding-inline-end: var(--syn-spacing-large);
123
141
  }
124
142
 
125
143
  .button.button--large.button--has-label.button--has-suffix .button__label {
126
- padding-inline-end: var(--syn-spacing-medium);
144
+ padding-inline-end: var(--syn-spacing-small);
127
145
  }
128
146
 
129
147
  .button.button--large.button--has-prefix .button__prefix,
130
148
  .button.button--large.button--has-suffix .button__suffix {
131
149
  font-size: var(--syn-font-size-2x-large);
132
150
  }
133
- `;
151
+ `;
134
152
 
135
153
  export {
136
154
  button_custom_styles_default
137
155
  };
138
- //# sourceMappingURL=chunk.FVSP4LXX.js.map
156
+ //# sourceMappingURL=chunk.IUC3AWAU.js.map