@synergy-design-system/components 1.0.2 → 1.2.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.
- package/README.md +24 -16
- package/dist/chunks/chunk.2FN5DTS6.js +67 -0
- package/dist/chunks/chunk.2FN5DTS6.js.map +7 -0
- package/dist/chunks/{chunk.SUNIN43Y.js → chunk.2OYZUDFV.js} +2 -2
- package/dist/chunks/{chunk.XVJVR3MD.js → chunk.3CSVGX3J.js} +3 -3
- package/dist/chunks/{chunk.B7KNRAHG.js → chunk.44U5VKNJ.js} +3 -3
- package/dist/chunks/{chunk.JVSVQG6I.js → chunk.4EWYZIJS.js} +2 -2
- package/dist/chunks/{chunk.FJGYV3Y3.js → chunk.4EXY5F5M.js} +2 -2
- package/dist/chunks/{chunk.4XAK6MOQ.js → chunk.6PFQSQLU.js} +2 -2
- package/dist/chunks/chunk.7W73A57K.js +108 -0
- package/dist/chunks/chunk.7W73A57K.js.map +7 -0
- package/dist/chunks/{chunk.3NY33MCF.js → chunk.ADE7GDYK.js} +3 -3
- package/dist/chunks/{chunk.U2NJG6GX.js → chunk.AFVZYX7H.js} +2 -2
- package/dist/chunks/chunk.CAIB544F.js +12 -0
- package/dist/chunks/chunk.CAIB544F.js.map +7 -0
- package/dist/chunks/{chunk.MB5S3IM7.js → chunk.CB2M3AVU.js} +2 -2
- package/dist/chunks/{chunk.W5GPJ6ZR.js → chunk.D5YL3H6T.js} +2 -2
- package/dist/chunks/{chunk.D7KU5L75.js → chunk.E2TU3YYJ.js} +2 -2
- package/dist/chunks/{chunk.GNAJOKCJ.js → chunk.EJXWL3JM.js} +4 -2
- package/dist/chunks/{chunk.GNAJOKCJ.js.map → chunk.EJXWL3JM.js.map} +2 -2
- package/dist/chunks/chunk.ESQOUQV3.js +75 -0
- package/dist/chunks/chunk.ESQOUQV3.js.map +7 -0
- package/dist/chunks/{chunk.IFPM2NRM.js → chunk.FHYBGERU.js} +2 -2
- package/dist/chunks/{chunk.M5DMOLZK.js → chunk.JRAW7QJL.js} +2 -2
- package/dist/chunks/chunk.L6I5ZLBO.js +137 -0
- package/dist/chunks/chunk.L6I5ZLBO.js.map +7 -0
- package/dist/chunks/{chunk.WVYTLFNV.js → chunk.MJC7VLA2.js} +2 -2
- package/dist/chunks/{chunk.P3O63FHH.js → chunk.MUP4GIQL.js} +2 -2
- package/dist/chunks/{chunk.HZERAHZP.js → chunk.NRA7I7QC.js} +7 -7
- package/dist/chunks/chunk.OJF7KL44.js +67 -0
- package/dist/chunks/chunk.OJF7KL44.js.map +7 -0
- package/dist/chunks/{chunk.5SKPG6DM.js → chunk.Q7NHWXSL.js} +2 -2
- package/dist/chunks/chunk.QHFGD6WW.js +73 -0
- package/dist/chunks/chunk.QHFGD6WW.js.map +7 -0
- package/dist/chunks/{chunk.U7R4EV7C.js → chunk.RG4Z2I6D.js} +6 -6
- package/dist/chunks/{chunk.PHG2CETE.js → chunk.RKQHPBKM.js} +3 -3
- package/dist/chunks/{chunk.DUAFHNTR.js → chunk.SEHRSICV.js} +2 -2
- package/dist/chunks/{chunk.MUOAKBT3.js → chunk.SPPBO7QV.js} +2 -2
- package/dist/chunks/{chunk.MUOAKBT3.js.map → chunk.SPPBO7QV.js.map} +1 -1
- package/dist/chunks/{chunk.7MTLFTYG.js → chunk.TACOOH3N.js} +2 -2
- package/dist/chunks/chunk.VTYPMAXM.js +12 -0
- package/dist/chunks/chunk.VTYPMAXM.js.map +7 -0
- package/dist/chunks/{chunk.G3EPLUES.js → chunk.ZGZ7W6BC.js} +2 -2
- package/dist/components/button/button.component.js +7 -7
- package/dist/components/button/button.js +8 -8
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +5 -5
- package/dist/components/checkbox/checkbox.js +6 -6
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.component.d.ts +63 -0
- package/dist/components/icon-button/icon-button.component.js +20 -0
- package/dist/components/icon-button/icon-button.component.js.map +7 -0
- package/dist/components/icon-button/icon-button.custom.styles.d.ts +2 -0
- package/dist/components/icon-button/icon-button.custom.styles.js +8 -0
- package/dist/components/icon-button/icon-button.custom.styles.js.map +7 -0
- package/dist/components/icon-button/icon-button.d.ts +8 -0
- package/dist/components/icon-button/icon-button.js +21 -0
- package/dist/components/icon-button/icon-button.js.map +7 -0
- package/dist/components/icon-button/icon-button.styles.d.ts +2 -0
- package/dist/components/icon-button/icon-button.styles.js +10 -0
- package/dist/components/icon-button/icon-button.styles.js.map +7 -0
- package/dist/components/input/input.component.js +6 -6
- package/dist/components/input/input.js +7 -7
- package/dist/components/radio/radio.component.js +5 -5
- package/dist/components/radio/radio.js +6 -6
- package/dist/components/radio-button/radio-button.component.js +2 -2
- package/dist/components/radio-button/radio-button.js +3 -3
- package/dist/components/radio-group/radio-group.component.js +3 -3
- package/dist/components/radio-group/radio-group.js +4 -4
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/switch/switch.component.js +2 -2
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tag/tag.component.d.ts +33 -0
- package/dist/components/tag/tag.component.js +25 -0
- package/dist/components/tag/tag.component.js.map +7 -0
- package/dist/components/tag/tag.custom.styles.d.ts +2 -0
- package/dist/components/tag/tag.custom.styles.js +8 -0
- package/dist/components/tag/tag.custom.styles.js.map +7 -0
- package/dist/components/tag/tag.d.ts +8 -0
- package/dist/components/tag/tag.js +26 -0
- package/dist/components/tag/tag.js.map +7 -0
- package/dist/components/tag/tag.styles.d.ts +2 -0
- package/dist/components/tag/tag.styles.js +10 -0
- package/dist/components/tag/tag.styles.js.map +7 -0
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/custom-elements.json +629 -184
- package/dist/events/events.d.ts +1 -0
- package/dist/events/syn-remove.d.ts +6 -0
- package/dist/synergy.d.ts +2 -0
- package/dist/synergy.js +47 -33
- package/dist/utilities/icon-library.js +2 -2
- package/dist/vscode.html-custom-data.json +119 -17
- package/dist/web-types.json +218 -30
- package/package.json +14 -13
- /package/dist/chunks/{chunk.SUNIN43Y.js.map → chunk.2OYZUDFV.js.map} +0 -0
- /package/dist/chunks/{chunk.XVJVR3MD.js.map → chunk.3CSVGX3J.js.map} +0 -0
- /package/dist/chunks/{chunk.B7KNRAHG.js.map → chunk.44U5VKNJ.js.map} +0 -0
- /package/dist/chunks/{chunk.JVSVQG6I.js.map → chunk.4EWYZIJS.js.map} +0 -0
- /package/dist/chunks/{chunk.FJGYV3Y3.js.map → chunk.4EXY5F5M.js.map} +0 -0
- /package/dist/chunks/{chunk.4XAK6MOQ.js.map → chunk.6PFQSQLU.js.map} +0 -0
- /package/dist/chunks/{chunk.3NY33MCF.js.map → chunk.ADE7GDYK.js.map} +0 -0
- /package/dist/chunks/{chunk.U2NJG6GX.js.map → chunk.AFVZYX7H.js.map} +0 -0
- /package/dist/chunks/{chunk.MB5S3IM7.js.map → chunk.CB2M3AVU.js.map} +0 -0
- /package/dist/chunks/{chunk.W5GPJ6ZR.js.map → chunk.D5YL3H6T.js.map} +0 -0
- /package/dist/chunks/{chunk.D7KU5L75.js.map → chunk.E2TU3YYJ.js.map} +0 -0
- /package/dist/chunks/{chunk.IFPM2NRM.js.map → chunk.FHYBGERU.js.map} +0 -0
- /package/dist/chunks/{chunk.M5DMOLZK.js.map → chunk.JRAW7QJL.js.map} +0 -0
- /package/dist/chunks/{chunk.WVYTLFNV.js.map → chunk.MJC7VLA2.js.map} +0 -0
- /package/dist/chunks/{chunk.P3O63FHH.js.map → chunk.MUP4GIQL.js.map} +0 -0
- /package/dist/chunks/{chunk.HZERAHZP.js.map → chunk.NRA7I7QC.js.map} +0 -0
- /package/dist/chunks/{chunk.5SKPG6DM.js.map → chunk.Q7NHWXSL.js.map} +0 -0
- /package/dist/chunks/{chunk.U7R4EV7C.js.map → chunk.RG4Z2I6D.js.map} +0 -0
- /package/dist/chunks/{chunk.PHG2CETE.js.map → chunk.RKQHPBKM.js.map} +0 -0
- /package/dist/chunks/{chunk.DUAFHNTR.js.map → chunk.SEHRSICV.js.map} +0 -0
- /package/dist/chunks/{chunk.7MTLFTYG.js.map → chunk.TACOOH3N.js.map} +0 -0
- /package/dist/chunks/{chunk.G3EPLUES.js.map → chunk.ZGZ7W6BC.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
|
|
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
|
|
62
|
+
import "@synergy-design-system/tokens/themes/light.css";
|
|
60
63
|
|
|
61
64
|
// This will load synergy.js via the exports map
|
|
62
|
-
import
|
|
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
|
|
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
|
|
99
|
+
import "@synergy-design-system/tokens/themes/light.css";
|
|
94
100
|
|
|
95
101
|
// This will only load and define the button itself
|
|
96
|
-
import
|
|
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
|
|
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 {
|
|
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
|
|
117
|
-
import type { SynInvalidEvent } from
|
|
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(
|
|
120
|
-
const loadedSynButtons = document.querySelectorAll<SynButton>(
|
|
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
|
-
.
|
|
125
|
-
|
|
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,67 @@
|
|
|
1
|
+
import {
|
|
2
|
+
icon_button_custom_styles_default
|
|
3
|
+
} from "./chunk.OJF7KL44.js";
|
|
4
|
+
import {
|
|
5
|
+
component_styles_default
|
|
6
|
+
} from "./chunk.O7USYXBT.js";
|
|
7
|
+
|
|
8
|
+
// src/components/icon-button/icon-button.styles.ts
|
|
9
|
+
import { css } from "lit";
|
|
10
|
+
var icon_button_styles_default = css`
|
|
11
|
+
/* stylelint-disable */
|
|
12
|
+
${component_styles_default}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
display: inline-block;
|
|
16
|
+
color: var(--syn-color-neutral-600);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.icon-button {
|
|
20
|
+
flex: 0 0 auto;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
background: none;
|
|
24
|
+
border: none;
|
|
25
|
+
border-radius: var(--syn-border-radius-medium);
|
|
26
|
+
font-size: inherit;
|
|
27
|
+
color: inherit;
|
|
28
|
+
padding: var(--syn-spacing-x-small);
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
transition: var(--syn-transition-x-fast) color;
|
|
31
|
+
-webkit-appearance: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.icon-button:hover:not(.icon-button--disabled),
|
|
35
|
+
.icon-button:focus-visible:not(.icon-button--disabled) {
|
|
36
|
+
color: var(--syn-color-primary-600);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.icon-button:active:not(.icon-button--disabled) {
|
|
40
|
+
color: var(--syn-color-primary-700);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.icon-button:focus {
|
|
44
|
+
outline: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.icon-button--disabled {
|
|
48
|
+
opacity: 0.5;
|
|
49
|
+
cursor: not-allowed;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.icon-button:focus-visible {
|
|
53
|
+
outline: var(--syn-focus-ring);
|
|
54
|
+
outline-offset: var(--syn-focus-ring-offset);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.icon-button__icon {
|
|
58
|
+
pointer-events: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
${icon_button_custom_styles_default}
|
|
62
|
+
`;
|
|
63
|
+
|
|
64
|
+
export {
|
|
65
|
+
icon_button_styles_default
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=chunk.2FN5DTS6.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/icon-button/icon-button.styles.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 { css } from 'lit';\nimport customStyles from './icon-button.custom.styles.js';\nimport componentStyles from '../../styles/component.styles.js';\n\nexport default css`\n\t/* stylelint-disable */\n ${componentStyles}\n\n :host {\n display: inline-block;\n color: var(--syn-color-neutral-600);\n }\n\n .icon-button {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n background: none;\n border: none;\n border-radius: var(--syn-border-radius-medium);\n font-size: inherit;\n color: inherit;\n padding: var(--syn-spacing-x-small);\n cursor: pointer;\n transition: var(--syn-transition-x-fast) color;\n -webkit-appearance: none;\n }\n\n .icon-button:hover:not(.icon-button--disabled),\n .icon-button:focus-visible:not(.icon-button--disabled) {\n color: var(--syn-color-primary-600);\n }\n\n .icon-button:active:not(.icon-button--disabled) {\n color: var(--syn-color-primary-700);\n }\n\n .icon-button:focus {\n outline: none;\n }\n\n .icon-button--disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .icon-button:focus-visible {\n outline: var(--syn-focus-ring);\n outline-offset: var(--syn-focus-ring-offset);\n }\n\n .icon-button__icon {\n pointer-events: none;\n }\n\n ${customStyles}\n`;\n\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAMA,SAAS,WAAW;AAIpB,IAAO,6BAAQ;AAAA;AAAA,IAEX,wBAAe;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,IAiDf,iCAAY;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.VZ7S7YYN.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.SPPBO7QV.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.
|
|
212
|
+
//# sourceMappingURL=chunk.2OYZUDFV.js.map
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./chunk.P2LNG2PZ.js";
|
|
10
10
|
import {
|
|
11
11
|
SynIcon
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.RKQHPBKM.js";
|
|
13
13
|
import {
|
|
14
14
|
watch
|
|
15
15
|
} from "./chunk.VZ7S7YYN.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.SPPBO7QV.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.
|
|
224
|
+
//# sourceMappingURL=chunk.3CSVGX3J.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk.JBYBQ5TQ.js";
|
|
4
4
|
import {
|
|
5
5
|
SynIcon
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.RKQHPBKM.js";
|
|
7
7
|
import {
|
|
8
8
|
watch
|
|
9
9
|
} from "./chunk.VZ7S7YYN.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.SPPBO7QV.js";
|
|
13
13
|
import {
|
|
14
14
|
__decorateClass
|
|
15
15
|
} from "./chunk.DJOAQ4JU.js";
|
|
@@ -108,4 +108,4 @@ __decorateClass([
|
|
|
108
108
|
export {
|
|
109
109
|
SynRadio
|
|
110
110
|
};
|
|
111
|
-
//# sourceMappingURL=chunk.
|
|
111
|
+
//# sourceMappingURL=chunk.44U5VKNJ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadio
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.44U5VKNJ.js";
|
|
4
4
|
|
|
5
5
|
// src/components/radio/radio.ts
|
|
6
6
|
var radio_default = SynRadio;
|
|
@@ -9,4 +9,4 @@ SynRadio.define("syn-radio");
|
|
|
9
9
|
export {
|
|
10
10
|
radio_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.4EWYZIJS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTextarea
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.D5YL3H6T.js";
|
|
4
4
|
|
|
5
5
|
// src/components/textarea/textarea.ts
|
|
6
6
|
var textarea_default = SynTextarea;
|
|
@@ -9,4 +9,4 @@ SynTextarea.define("syn-textarea");
|
|
|
9
9
|
export {
|
|
10
10
|
textarea_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.4EXY5F5M.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.6C4JXZZN.js";
|
|
4
4
|
import {
|
|
5
5
|
library_system_default
|
|
6
|
-
} from "./chunk.
|
|
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.
|
|
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
|
+
}
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
} from "./chunk.VZ7S7YYN.js";
|
|
16
16
|
import {
|
|
17
17
|
SynButtonGroup
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.Q7NHWXSL.js";
|
|
19
19
|
import {
|
|
20
20
|
SynergyElement
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.SPPBO7QV.js";
|
|
22
22
|
import {
|
|
23
23
|
__decorateClass
|
|
24
24
|
} from "./chunk.DJOAQ4JU.js";
|
|
@@ -348,4 +348,4 @@ __decorateClass([
|
|
|
348
348
|
export {
|
|
349
349
|
SynRadioGroup
|
|
350
350
|
};
|
|
351
|
-
//# sourceMappingURL=chunk.
|
|
351
|
+
//# sourceMappingURL=chunk.ADE7GDYK.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadioGroup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.ADE7GDYK.js";
|
|
4
4
|
|
|
5
5
|
// src/components/radio-group/radio-group.ts
|
|
6
6
|
var radio_group_default = SynRadioGroup;
|
|
@@ -9,4 +9,4 @@ SynRadioGroup.define("syn-radio-group");
|
|
|
9
9
|
export {
|
|
10
10
|
radio_group_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.AFVZYX7H.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/tag/tag.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 SynTag from './tag.component.js';\n\nexport * from './tag.component.js';\nexport default SynTag;\n\nSynTag.define('syn-tag');\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-tag': SynTag;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;AASA,IAAO,cAAQ;AAEf,OAAO,OAAO,SAAS;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.VZ7S7YYN.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.SPPBO7QV.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.
|
|
127
|
+
//# sourceMappingURL=chunk.CB2M3AVU.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk.VZ7S7YYN.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.SPPBO7QV.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.DJOAQ4JU.js";
|
|
@@ -357,4 +357,4 @@ __decorateClass([
|
|
|
357
357
|
export {
|
|
358
358
|
SynTextarea
|
|
359
359
|
};
|
|
360
|
-
//# sourceMappingURL=chunk.
|
|
360
|
+
//# sourceMappingURL=chunk.D5YL3H6T.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSwitch
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.2OYZUDFV.js";
|
|
4
4
|
|
|
5
5
|
// src/components/switch/switch.ts
|
|
6
6
|
var switch_default = SynSwitch;
|
|
@@ -9,4 +9,4 @@ SynSwitch.define("syn-switch");
|
|
|
9
9
|
export {
|
|
10
10
|
switch_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.E2TU3YYJ.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.
|
|
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;
|
|
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
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tag_styles_default
|
|
3
|
+
} from "./chunk.QHFGD6WW.js";
|
|
4
|
+
import {
|
|
5
|
+
SynIconButton
|
|
6
|
+
} from "./chunk.L6I5ZLBO.js";
|
|
7
|
+
import {
|
|
8
|
+
LocalizeController
|
|
9
|
+
} from "./chunk.R6VNLE6N.js";
|
|
10
|
+
import {
|
|
11
|
+
SynergyElement
|
|
12
|
+
} from "./chunk.SPPBO7QV.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.ESQOUQV3.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
|
+
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk.R6VNLE6N.js";
|
|
7
7
|
import {
|
|
8
8
|
SynergyElement
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.SPPBO7QV.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.
|
|
32
|
+
//# sourceMappingURL=chunk.FHYBGERU.js.map
|