@synergy-design-system/components 1.0.0-main.8 → 1.0.0-main.9
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/dist/chunks/{chunk.G3PDKNFK.js → chunk.6CFDQNJT.js} +7 -7
- package/dist/chunks/chunk.6CFDQNJT.js.map +7 -0
- package/dist/chunks/{chunk.5SUEJSIW.js → chunk.DYPYZ53B.js} +3 -3
- package/dist/chunks/{chunk.4SJKXOCV.js → chunk.GRZ3TSGB.js} +2 -2
- package/dist/chunks/{chunk.B7XEALID.js → chunk.H6VZTJD6.js} +2 -2
- package/dist/chunks/{chunk.DI6S4YNU.js → chunk.IZS6SARK.js} +2 -2
- package/dist/chunks/chunk.MQ3KYTNU.js +138 -0
- package/dist/chunks/chunk.MQ3KYTNU.js.map +7 -0
- package/dist/chunks/{chunk.P22LQI5J.js → chunk.OZSASB66.js} +6 -6
- package/dist/chunks/chunk.OZSASB66.js.map +7 -0
- package/dist/chunks/{chunk.5ZMQBOV3.js → chunk.SGZ5ADPY.js} +2 -2
- package/dist/chunks/{chunk.53ZDJY4Q.js → chunk.YOW3IJVJ.js} +2 -2
- package/dist/chunks/{chunk.53ZDJY4Q.js.map → chunk.YOW3IJVJ.js.map} +1 -1
- package/dist/components/button/button.component.d.ts +1 -1
- package/dist/components/button/button.component.js +6 -6
- package/dist/components/button/button.custom.styles.js +1 -1
- package/dist/components/button/button.js +7 -7
- package/dist/components/button/button.styles.js +2 -2
- package/dist/components/icon/icon.component.js +2 -2
- package/dist/components/icon/icon.js +2 -2
- package/dist/components/input/input.component.js +3 -3
- package/dist/components/input/input.js +4 -4
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/custom-elements.json +5 -5
- package/dist/synergy.js +9 -9
- package/dist/vscode.html-custom-data.json +1 -1
- package/dist/web-types.json +4 -4
- package/package.json +3 -3
- package/dist/chunks/chunk.DREO4ZTN.js +0 -10
- package/dist/chunks/chunk.DREO4ZTN.js.map +0 -7
- package/dist/chunks/chunk.G3PDKNFK.js.map +0 -7
- package/dist/chunks/chunk.P22LQI5J.js.map +0 -7
- /package/dist/chunks/{chunk.5SUEJSIW.js.map → chunk.DYPYZ53B.js.map} +0 -0
- /package/dist/chunks/{chunk.4SJKXOCV.js.map → chunk.GRZ3TSGB.js.map} +0 -0
- /package/dist/chunks/{chunk.B7XEALID.js.map → chunk.H6VZTJD6.js.map} +0 -0
- /package/dist/chunks/{chunk.DI6S4YNU.js.map → chunk.IZS6SARK.js.map} +0 -0
- /package/dist/chunks/{chunk.5ZMQBOV3.js.map → chunk.SGZ5ADPY.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSpinner
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.SGZ5ADPY.js";
|
|
4
4
|
import {
|
|
5
5
|
HasSlotController
|
|
6
6
|
} from "./chunk.XGXFE6IF.js";
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
} from "./chunk.WDCAHRYG.js";
|
|
14
14
|
import {
|
|
15
15
|
button_styles_default
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.OZSASB66.js";
|
|
17
17
|
import {
|
|
18
18
|
SynIcon,
|
|
19
19
|
watch
|
|
20
|
-
} from "./chunk.
|
|
20
|
+
} from "./chunk.IZS6SARK.js";
|
|
21
21
|
import {
|
|
22
22
|
SynergyElement
|
|
23
|
-
} from "./chunk.
|
|
23
|
+
} from "./chunk.YOW3IJVJ.js";
|
|
24
24
|
import {
|
|
25
25
|
__decorateClass
|
|
26
26
|
} from "./chunk.DJOAQ4JU.js";
|
|
@@ -49,7 +49,7 @@ var SynButton = class extends SynergyElement {
|
|
|
49
49
|
this.hasFocus = false;
|
|
50
50
|
this.invalid = false;
|
|
51
51
|
this.title = "";
|
|
52
|
-
this.variant = "
|
|
52
|
+
this.variant = "filled";
|
|
53
53
|
this.size = "medium";
|
|
54
54
|
this.caret = false;
|
|
55
55
|
this.disabled = false;
|
|
@@ -164,7 +164,7 @@ var SynButton = class extends SynergyElement {
|
|
|
164
164
|
"button--disabled": this.disabled,
|
|
165
165
|
"button--focused": this.hasFocus,
|
|
166
166
|
"button--loading": this.loading,
|
|
167
|
-
"button--
|
|
167
|
+
"button--filled": this.variant === "filled",
|
|
168
168
|
"button--outline": this.variant === "outline",
|
|
169
169
|
"button--rtl": this.localize.dir() === "rtl",
|
|
170
170
|
"button--has-label": this.hasSlotController.test("[default]"),
|
|
@@ -275,4 +275,4 @@ __decorateClass([
|
|
|
275
275
|
export {
|
|
276
276
|
SynButton
|
|
277
277
|
};
|
|
278
|
-
//# sourceMappingURL=chunk.
|
|
278
|
+
//# sourceMappingURL=chunk.6CFDQNJT.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/button/button.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 { FormControlController, validValidityState } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html, literal } from 'lit/static-html.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynSpinner from '../spinner/spinner.component.js';\nimport styles from './button.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\n\n/**\n * @summary Buttons represent actions that are available to the user.\n * @documentation https://synergy.style/components/button\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-spinner\n *\n * @event syn-blur - Emitted when the button loses focus.\n * @event syn-focus - Emitted when the button gains focus.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @slot - The button's label.\n * @slot prefix - A presentational prefix icon or similar element.\n * @slot suffix - A presentational suffix icon or similar element.\n *\n * @csspart base - The component's base wrapper.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart label - The button's label.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart caret - The button's caret icon, an `<syn-icon>` element.\n * @csspart spinner - The spinner that shows when the button is in the loading state.\n */\nexport default class SynButton extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = styles;\n static dependencies = {\n 'syn-icon': SynIcon,\n 'syn-spinner': SynSpinner\n };\n\n private readonly formControlController = new FormControlController(this, {\n form: input => {\n // Buttons support a form attribute that points to an arbitrary form, so if this attribute is set we need to query\n // the form from the same root using its id\n if (input.hasAttribute('form')) {\n const doc = input.getRootNode() as Document | ShadowRoot;\n const formId = input.getAttribute('form')!;\n return doc.getElementById(formId) as HTMLFormElement;\n }\n\n // Fall back to the closest containing form\n return input.closest('form');\n },\n assumeInteractionOn: ['click']\n });\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'prefix', 'suffix');\n private readonly localize = new LocalizeController(this);\n\n @query('.button') button: HTMLButtonElement | HTMLLinkElement;\n\n @state() private hasFocus = false;\n @state() invalid = false;\n @property() title = ''; // make reactive to pass through\n\n /** The button's theme variant. */\n @property({ reflect: true }) variant: 'filled' | 'outline' | 'text' = 'filled';\n\n /** The button's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior. */\n @property({ type: Boolean, reflect: true }) caret = false;\n\n /** Disables the button. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Draws the button in a loading state. */\n @property({ type: Boolean, reflect: true }) loading = false;\n\n /**\n * The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native\n * `<button>` elements behave. When the type is `submit`, the button will submit the surrounding form.\n */\n @property() type: 'button' | 'submit' | 'reset' = 'button';\n\n /**\n * The name of the button, submitted as a name/value pair with form data, but only when this button is the submitter.\n * This attribute is ignored when `href` is present.\n */\n @property() name = '';\n\n /**\n * The value of the button, submitted as a pair with the button's name as part of the form data, but only when this\n * button is the submitter. This attribute is ignored when `href` is present.\n */\n @property() value = '';\n\n /** When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. */\n @property() href = '';\n\n /** Tells the browser where to open the link. Only used when `href` is present. */\n @property() target: '_blank' | '_parent' | '_self' | '_top';\n\n /**\n * When using `href`, this attribute will map to the underlying link's `rel` attribute. Unlike regular links, the\n * default is `noreferrer noopener` to prevent security exploits. However, if you're using `target` to point to a\n * specific tab/window, this will prevent that from working correctly. You can remove or change the default value by\n * setting the attribute to an empty string or a value of your choice, respectively.\n */\n @property() rel = 'noreferrer noopener';\n\n /** Tells the browser to download the linked file as this filename. Only used when `href` is present. */\n @property() download?: string;\n\n /**\n * The \"form owner\" to associate the button with. If omitted, the closest containing form will be used instead. The\n * value of this attribute must be an id of a form in the same document or shadow root as the button.\n */\n @property() form: string;\n\n /** Used to override the form owner's `action` attribute. */\n @property({ attribute: 'formaction' }) formAction: string;\n\n /** Used to override the form owner's `enctype` attribute. */\n @property({ attribute: 'formenctype' })\n formEnctype: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';\n\n /** Used to override the form owner's `method` attribute. */\n @property({ attribute: 'formmethod' }) formMethod: 'post' | 'get';\n\n /** Used to override the form owner's `novalidate` attribute. */\n @property({ attribute: 'formnovalidate', type: Boolean }) formNoValidate: boolean;\n\n /** Used to override the form owner's `target` attribute. */\n @property({ attribute: 'formtarget' }) formTarget: '_self' | '_blank' | '_parent' | '_top' | string;\n\n /** Gets the validity state object */\n get validity() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).validity;\n }\n\n return validValidityState;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).validationMessage;\n }\n\n return '';\n }\n\n firstUpdated() {\n if (this.isButton()) {\n this.formControlController.updateValidity();\n }\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleClick() {\n if (this.type === 'submit') {\n this.formControlController.submit(this);\n }\n\n if (this.type === 'reset') {\n this.formControlController.reset(this);\n }\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private isButton() {\n return this.href ? false : true;\n }\n\n private isLink() {\n return this.href ? true : false;\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n if (this.isButton()) {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\n }\n }\n\n /** Simulates a click on the button. */\n click() {\n this.button.click();\n }\n\n /** Sets focus on the button. */\n focus(options?: FocusOptions) {\n this.button.focus(options);\n }\n\n /** Removes focus from the button. */\n blur() {\n this.button.blur();\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).checkValidity();\n }\n\n return true;\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).reportValidity();\n }\n\n return true;\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n if (this.isButton()) {\n (this.button as HTMLButtonElement).setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n }\n\n render() {\n const isLink = this.isLink();\n const tag = isLink ? literal`a` : literal`button`;\n\n /* eslint-disable lit/no-invalid-html */\n /* eslint-disable lit/binding-positions */\n return html`\n <${tag}\n part=\"base\"\n class=${classMap({\n button: true,\n 'button--primary': true,\n 'button--text': this.variant === 'text',\n 'button--small': this.size === 'small',\n 'button--medium': this.size === 'medium',\n 'button--large': this.size === 'large',\n 'button--caret': this.caret,\n 'button--disabled': this.disabled,\n 'button--focused': this.hasFocus,\n 'button--loading': this.loading,\n 'button--filled': this.variant === 'filled',\n 'button--outline': this.variant === 'outline',\n 'button--rtl': this.localize.dir() === 'rtl',\n 'button--has-label': this.hasSlotController.test('[default]'),\n 'button--has-prefix': this.hasSlotController.test('prefix'),\n 'button--has-suffix': this.hasSlotController.test('suffix')\n })}\n ?disabled=${ifDefined(isLink ? undefined : this.disabled)}\n type=${ifDefined(isLink ? undefined : this.type)}\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${ifDefined(isLink ? undefined : this.name)}\n value=${ifDefined(isLink ? undefined : this.value)}\n href=${ifDefined(isLink ? this.href : undefined)}\n target=${ifDefined(isLink ? this.target : undefined)}\n download=${ifDefined(isLink ? this.download : undefined)}\n rel=${ifDefined(isLink ? this.rel : undefined)}\n role=${ifDefined(isLink ? undefined : 'button')}\n aria-disabled=${this.disabled ? 'true' : 'false'}\n tabindex=${this.disabled ? '-1' : '0'}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @invalid=${this.isButton() ? this.handleInvalid : null}\n @click=${this.handleClick}\n >\n <slot name=\"prefix\" part=\"prefix\" class=\"button__prefix\"></slot>\n <slot part=\"label\" class=\"button__label\"></slot>\n <slot name=\"suffix\" part=\"suffix\" class=\"button__suffix\"></slot>\n ${\n this.caret ? html` <syn-icon part=\"caret\" class=\"button__caret\" library=\"system\" name=\"caret\"></syn-icon> ` : ''\n }\n ${this.loading ? html`<syn-spinner part=\"spinner\"></syn-spinner>` : ''}\n </${tag}>\n `;\n /* eslint-enable lit/no-invalid-html */\n /* eslint-enable lit/binding-positions */\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,SAAS,gBAAgB;AAGzB,SAAS,M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;AAAA,EAAtC,SAAS,EAAE,WAAW,aAAa,CAAC;AAAA,GAxFlB,UAwFoB;AAIvC;AAAA,EADC,SAAS,EAAE,WAAW,cAAc,CAAC;AAAA,GA3FnB,UA4FnB;AAGuC;AAAA,EAAtC,SAAS,EAAE,WAAW,aAAa,CAAC;AAAA,GA/FlB,UA+FoB;AAGmB;AAAA,EAAzD,SAAS,EAAE,WAAW,kBAAkB,MAAM,QAAQ,CAAC;AAAA,GAlGrC,UAkGuC;AAGnB;AAAA,EAAtC,SAAS,EAAE,WAAW,aAAa,CAAC;AAAA,GArGlB,UAqGoB;AA4DvC;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAhK9B,UAiKnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
SynIcon,
|
|
15
15
|
watch
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.IZS6SARK.js";
|
|
17
17
|
import {
|
|
18
18
|
SynergyElement
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.YOW3IJVJ.js";
|
|
20
20
|
import {
|
|
21
21
|
__decorateClass
|
|
22
22
|
} from "./chunk.DJOAQ4JU.js";
|
|
@@ -495,4 +495,4 @@ __decorateClass([
|
|
|
495
495
|
export {
|
|
496
496
|
SynInput
|
|
497
497
|
};
|
|
498
|
-
//# sourceMappingURL=chunk.
|
|
498
|
+
//# sourceMappingURL=chunk.DYPYZ53B.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.6CFDQNJT.js";
|
|
4
4
|
|
|
5
5
|
// src/components/button/button.ts
|
|
6
6
|
var button_default = SynButton;
|
|
@@ -9,4 +9,4 @@ SynButton.define("syn-button");
|
|
|
9
9
|
export {
|
|
10
10
|
button_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.GRZ3TSGB.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynInput
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.DYPYZ53B.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.
|
|
12
|
+
//# sourceMappingURL=chunk.H6VZTJD6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynergyElement
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.YOW3IJVJ.js";
|
|
4
4
|
import {
|
|
5
5
|
icon_styles_default
|
|
6
6
|
} from "./chunk.BREU4ILT.js";
|
|
@@ -199,4 +199,4 @@ export {
|
|
|
199
199
|
watch,
|
|
200
200
|
SynIcon
|
|
201
201
|
};
|
|
202
|
-
//# sourceMappingURL=chunk.
|
|
202
|
+
//# sourceMappingURL=chunk.IZS6SARK.js.map
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// src/components/button/button.custom.styles.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var button_custom_styles_default = css`
|
|
4
|
+
.button:focus-visible {
|
|
5
|
+
outline: var(--syn-focus-ring-color) solid 2px;
|
|
6
|
+
outline-offset: 2px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Size modifiers
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
.button.button--medium.button--has-label .button__label {
|
|
14
|
+
font-size: var(--syn-font-size-medium);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.button.button--large.button--has-label .button__label {
|
|
18
|
+
font-size: var(--syn-font-size-large);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* Standard buttons
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
.button--filled.button--primary.button--disabled {
|
|
26
|
+
background-color: var(--syn-color-neutral-400);
|
|
27
|
+
border-color: var(--syn-color-neutral-400);
|
|
28
|
+
color: var(--syn-color-neutral-600);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.button--filled.button--primary:hover:not(.button--disabled) {
|
|
32
|
+
background-color: var(--syn-color-primary-900);
|
|
33
|
+
border-color: var(--syn-color-primary-900);
|
|
34
|
+
color: var(--syn-color-neutral-0);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.button--filled.button--primary:active:not(.button--disabled) {
|
|
38
|
+
background-color: var(--syn-color-primary-950);
|
|
39
|
+
border-color: inherit;
|
|
40
|
+
color: var(--syn-color-neutral-0);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/*
|
|
44
|
+
* Outline buttons
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
.button--outline.button--primary.button--disabled {
|
|
48
|
+
background: none;
|
|
49
|
+
border-color: var(--syn-color-neutral-400);
|
|
50
|
+
color: var(--syn-color-neutral-400);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.button--outline.button--primary:hover:not(.button--disabled),
|
|
54
|
+
.button--outline.button--primary.button--checked:not(.button--disabled) {
|
|
55
|
+
background: none;
|
|
56
|
+
border-color: var(--syn-color-primary-900);
|
|
57
|
+
color: var(--syn-color-primary-900);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.button--outline.button--primary:active:not(.button--disabled) {
|
|
61
|
+
background: inherit;
|
|
62
|
+
border-color: var(--syn-color-primary-950);
|
|
63
|
+
color: var(--syn-color-primary-950);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/*
|
|
67
|
+
* Text buttons
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
.button--text:hover:not(.button--disabled) {
|
|
71
|
+
color: var(--syn-color-primary-900);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.button--text.button--primary:active:not(.button--disabled) {
|
|
75
|
+
background: inherit;
|
|
76
|
+
border-color: none;
|
|
77
|
+
color: var(--syn-color-primary-950);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.button--text.button--primary.button--disabled {
|
|
81
|
+
color: var(--syn-color-neutral-400);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/*
|
|
85
|
+
* PADDING
|
|
86
|
+
*/
|
|
87
|
+
.button.button--small.button--has-label.button--has-prefix {
|
|
88
|
+
padding-inline-start: var(--syn-spacing-small);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.button.button--small.button--has-label.button--has-suffix {
|
|
92
|
+
padding-inline-end: var(--syn-spacing-small);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.button.button--small.button--has-prefix .button__prefix,
|
|
96
|
+
.button.button--small.button--has-suffix .button__suffix {
|
|
97
|
+
font-size: var(--syn-spacing-medium);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.button.button--medium.button--has-label.button--has-prefix {
|
|
101
|
+
padding-inline-start: var(--syn-spacing-medium);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.button.button--medium.button--has-label.button--has-suffix {
|
|
105
|
+
padding-inline-end: var(--syn-spacing-medium);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.button.button--medium.button--has-prefix .button__prefix,
|
|
109
|
+
.button.button--medium.button--has-suffix .button__suffix {
|
|
110
|
+
font-size: var(--syn-spacing-large);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.button.button--large.button--has-label.button--has-prefix {
|
|
114
|
+
padding-inline-start: var(--syn-spacing-large);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.button.button--large.button--has-label.button--has-prefix .button__label {
|
|
118
|
+
padding-inline-start: var(--syn-spacing-medium);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.button.button--large.button--has-label.button--has-suffix {
|
|
122
|
+
padding-inline-end: var(--syn-spacing-large);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.button.button--large.button--has-label.button--has-suffix .button__label {
|
|
126
|
+
padding-inline-end: var(--syn-spacing-medium);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.button.button--large.button--has-prefix .button__prefix,
|
|
130
|
+
.button.button--large.button--has-suffix .button__suffix {
|
|
131
|
+
font-size: var(--syn-font-size-2x-large);
|
|
132
|
+
}
|
|
133
|
+
`;
|
|
134
|
+
|
|
135
|
+
export {
|
|
136
|
+
button_custom_styles_default
|
|
137
|
+
};
|
|
138
|
+
//# sourceMappingURL=chunk.MQ3KYTNU.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/button/button.custom.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n.button:focus-visible {\n outline: var(--syn-focus-ring-color) solid 2px;\n outline-offset: 2px;\n }\n\n /*\n * Size modifiers\n */\n\n .button.button--medium.button--has-label .button__label {\n font-size: var(--syn-font-size-medium);\n } \n\n .button.button--large.button--has-label .button__label {\n font-size: var(--syn-font-size-large);\n }\n\n /*\n * Standard buttons\n */\n\n .button--filled.button--primary.button--disabled {\n background-color: var(--syn-color-neutral-400);\n border-color: var(--syn-color-neutral-400);\n color: var(--syn-color-neutral-600);\n }\n\n .button--filled.button--primary:hover:not(.button--disabled) {\n background-color: var(--syn-color-primary-900);\n border-color: var(--syn-color-primary-900);\n color: var(--syn-color-neutral-0);\n }\n\n .button--filled.button--primary:active:not(.button--disabled) {\n background-color: var(--syn-color-primary-950);\n border-color: inherit;\n color: var(--syn-color-neutral-0);\n }\n\n /*\n * Outline buttons\n */\n\n .button--outline.button--primary.button--disabled {\n background: none;\n border-color: var(--syn-color-neutral-400);\n color: var(--syn-color-neutral-400);\n }\n\n .button--outline.button--primary:hover:not(.button--disabled),\n .button--outline.button--primary.button--checked:not(.button--disabled) {\n background: none;\n border-color: var(--syn-color-primary-900);\n color: var(--syn-color-primary-900);\n }\n\n .button--outline.button--primary:active:not(.button--disabled) {\n background: inherit;\n border-color: var(--syn-color-primary-950);\n color: var(--syn-color-primary-950);\n }\n\n /*\n * Text buttons\n */\n \n .button--text:hover:not(.button--disabled) {\n color: var(--syn-color-primary-900);\n }\n\n .button--text.button--primary:active:not(.button--disabled) {\n background: inherit;\n border-color: none;\n color: var(--syn-color-primary-950);\n }\n\n .button--text.button--primary.button--disabled {\n color: var(--syn-color-neutral-400);\n }\n\n /*\n* PADDING\n */\n .button.button--small.button--has-label.button--has-prefix {\n padding-inline-start: var(--syn-spacing-small);\n }\n\n .button.button--small.button--has-label.button--has-suffix {\n padding-inline-end: var(--syn-spacing-small);\n }\n\n .button.button--small.button--has-prefix .button__prefix, \n .button.button--small.button--has-suffix .button__suffix {\n font-size: var(--syn-spacing-medium);\n }\n\n .button.button--medium.button--has-label.button--has-prefix {\n padding-inline-start: var(--syn-spacing-medium);\n } \n\n .button.button--medium.button--has-label.button--has-suffix {\n padding-inline-end: var(--syn-spacing-medium);\n }\n\n .button.button--medium.button--has-prefix .button__prefix, \n .button.button--medium.button--has-suffix .button__suffix {\n font-size: var(--syn-spacing-large);\n }\n\n .button.button--large.button--has-label.button--has-prefix {\n padding-inline-start: var(--syn-spacing-large);\n }\n\n .button.button--large.button--has-label.button--has-prefix .button__label {\n padding-inline-start: var(--syn-spacing-medium);\n }\n\n .button.button--large.button--has-label.button--has-suffix {\n padding-inline-end: var(--syn-spacing-large);\n }\n\n .button.button--large.button--has-label.button--has-suffix .button__label {\n padding-inline-end: var(--syn-spacing-medium);\n }\n\n .button.button--large.button--has-prefix .button__prefix, \n .button.button--large.button--has-suffix .button__suffix {\n font-size: var(--syn-font-size-2x-large);\n }\n `;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,+BAAQ;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;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
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
button_custom_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.MQ3KYTNU.js";
|
|
4
4
|
import {
|
|
5
5
|
component_styles_default
|
|
6
6
|
} from "./chunk.O7USYXBT.js";
|
|
@@ -85,19 +85,19 @@ var button_styles_default = css`
|
|
|
85
85
|
*/
|
|
86
86
|
|
|
87
87
|
/* Primary */
|
|
88
|
-
.button--
|
|
88
|
+
.button--filled.button--primary {
|
|
89
89
|
background-color: var(--syn-color-primary-600);
|
|
90
90
|
border-color: var(--syn-color-primary-600);
|
|
91
91
|
color: var(--syn-color-neutral-0);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.button--
|
|
94
|
+
.button--filled.button--primary:hover:not(.button--disabled) {
|
|
95
95
|
background-color: var(--syn-color-primary-500);
|
|
96
96
|
border-color: var(--syn-color-primary-500);
|
|
97
97
|
color: var(--syn-color-neutral-0);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.button--
|
|
100
|
+
.button--filled.button--primary:active:not(.button--disabled) {
|
|
101
101
|
background-color: var(--syn-color-primary-600);
|
|
102
102
|
border-color: var(--syn-color-primary-600);
|
|
103
103
|
color: var(--syn-color-neutral-0);
|
|
@@ -343,7 +343,7 @@ var button_styles_default = css`
|
|
|
343
343
|
.syn-button-group__button:not(
|
|
344
344
|
.syn-button-group__button--first,
|
|
345
345
|
.syn-button-group__button--radio,
|
|
346
|
-
[variant='
|
|
346
|
+
[variant='filled']
|
|
347
347
|
):not(:hover)
|
|
348
348
|
)
|
|
349
349
|
.button:after {
|
|
@@ -373,4 +373,4 @@ var button_styles_default = css`
|
|
|
373
373
|
export {
|
|
374
374
|
button_styles_default
|
|
375
375
|
};
|
|
376
|
-
//# sourceMappingURL=chunk.
|
|
376
|
+
//# sourceMappingURL=chunk.OZSASB66.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/button/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 componentStyles from '../../styles/component.styles.js';\nimport customStyles from './button.custom.styles.js';\n\nexport default css`\n\t/* stylelint-disable */\n ${componentStyles}\n\n :host {\n display: inline-block;\n position: relative;\n width: auto;\n cursor: pointer;\n }\n\n .button {\n display: inline-flex;\n align-items: stretch;\n justify-content: center;\n width: 100%;\n border-style: solid;\n border-width: var(--syn-input-border-width);\n font-family: var(--syn-input-font-family);\n font-weight: var(--syn-font-weight-semibold);\n text-decoration: none;\n user-select: none;\n -webkit-user-select: none;\n white-space: nowrap;\n vertical-align: middle;\n padding: 0;\n transition:\n var(--syn-transition-x-fast) background-color,\n var(--syn-transition-x-fast) color,\n var(--syn-transition-x-fast) border,\n var(--syn-transition-x-fast) box-shadow;\n cursor: inherit;\n }\n\n .button::-moz-focus-inner {\n border: 0;\n }\n\n .button:focus {\n outline: none;\n }\n\n .button:focus-visible {\n outline: var(--syn-focus-ring);\n outline-offset: var(--syn-focus-ring-offset);\n }\n\n .button--disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n /* When disabled, prevent mouse events from bubbling up from children */\n .button--disabled * {\n pointer-events: none;\n }\n\n .button__prefix,\n .button__suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n pointer-events: none;\n }\n\n .button__label {\n display: inline-block;\n }\n\n .button__label::slotted(syn-icon) {\n vertical-align: -2px;\n }\n\n /*\n * Standard buttons\n */\n\n /* Primary */\n .button--filled.button--primary {\n background-color: var(--syn-color-primary-600);\n border-color: var(--syn-color-primary-600);\n color: var(--syn-color-neutral-0);\n }\n\n .button--filled.button--primary:hover:not(.button--disabled) {\n background-color: var(--syn-color-primary-500);\n border-color: var(--syn-color-primary-500);\n color: var(--syn-color-neutral-0);\n }\n\n .button--filled.button--primary:active:not(.button--disabled) {\n background-color: var(--syn-color-primary-600);\n border-color: var(--syn-color-primary-600);\n color: var(--syn-color-neutral-0);\n }\n\n /*\n * Outline buttons\n */\n\n .button--outline {\n background: none;\n border: solid 1px;\n }\n\n /* Primary */\n .button--outline.button--primary {\n border-color: var(--syn-color-primary-600);\n color: var(--syn-color-primary-600);\n }\n\n .button--outline.button--primary:hover:not(.button--disabled),\n .button--outline.button--primary.button--checked:not(.button--disabled) {\n background-color: var(--syn-color-primary-600);\n color: var(--syn-color-neutral-0);\n }\n\n .button--outline.button--primary:active:not(.button--disabled) {\n border-color: var(--syn-color-primary-700);\n background-color: var(--syn-color-primary-700);\n color: var(--syn-color-neutral-0);\n }\n\n /*\n * Text buttons\n */\n\n .button--text {\n background-color: transparent;\n border-color: transparent;\n color: var(--syn-color-primary-600);\n }\n\n .button--text:hover:not(.button--disabled) {\n background-color: transparent;\n border-color: transparent;\n color: var(--syn-color-primary-500);\n }\n\n .button--text:focus-visible:not(.button--disabled) {\n background-color: transparent;\n border-color: transparent;\n color: var(--syn-color-primary-500);\n }\n\n .button--text:active:not(.button--disabled) {\n background-color: transparent;\n border-color: transparent;\n color: var(--syn-color-primary-700);\n }\n\n /*\n * Size modifiers\n */\n\n .button--small {\n height: auto;\n min-height: var(--syn-input-height-small);\n font-size: var(--syn-button-font-size-small);\n line-height: calc(var(--syn-input-height-small) - var(--syn-input-border-width) * 2);\n border-radius: var(--syn-input-border-radius-small);\n }\n\n .button--medium {\n height: auto;\n min-height: var(--syn-input-height-medium);\n font-size: var(--syn-button-font-size-medium);\n line-height: calc(var(--syn-input-height-medium) - var(--syn-input-border-width) * 2);\n border-radius: var(--syn-input-border-radius-medium);\n }\n\n .button--large {\n height: auto;\n min-height: var(--syn-input-height-large);\n font-size: var(--syn-button-font-size-large);\n line-height: calc(var(--syn-input-height-large) - var(--syn-input-border-width) * 2);\n border-radius: var(--syn-input-border-radius-large);\n }\n\n /*\n * Caret modifier\n */\n\n .button--caret .button__suffix {\n display: none;\n }\n\n .button--caret .button__caret {\n height: auto;\n }\n\n /*\n * Loading modifier\n */\n\n .button--loading {\n position: relative;\n cursor: wait;\n }\n\n .button--loading .button__prefix,\n .button--loading .button__label,\n .button--loading .button__suffix,\n .button--loading .button__caret {\n visibility: hidden;\n }\n\n .button--loading syn-spinner {\n --indicator-color: currentColor;\n position: absolute;\n font-size: 1em;\n height: 1em;\n width: 1em;\n top: calc(50% - 0.5em);\n left: calc(50% - 0.5em);\n }\n\n /*\n * Badges\n */\n\n .button ::slotted(syn-badge) {\n position: absolute;\n top: 0;\n right: 0;\n translate: 50% -50%;\n pointer-events: none;\n }\n\n .button--rtl ::slotted(syn-badge) {\n right: auto;\n left: 0;\n translate: -50% -50%;\n }\n\n /*\n * Button spacing\n */\n\n .button--has-label.button--small .button__label {\n padding: 0 var(--syn-spacing-small);\n }\n\n .button--has-label.button--medium .button__label {\n padding: 0 var(--syn-spacing-medium);\n }\n\n .button--has-label.button--large .button__label {\n padding: 0 var(--syn-spacing-large);\n }\n\n .button--has-prefix.button--small {\n padding-inline-start: var(--syn-spacing-x-small);\n }\n\n .button--has-prefix.button--small .button__label {\n padding-inline-start: var(--syn-spacing-x-small);\n }\n\n .button--has-prefix.button--medium {\n padding-inline-start: var(--syn-spacing-small);\n }\n\n .button--has-prefix.button--medium .button__label {\n padding-inline-start: var(--syn-spacing-small);\n }\n\n .button--has-prefix.button--large {\n padding-inline-start: var(--syn-spacing-small);\n }\n\n .button--has-prefix.button--large .button__label {\n padding-inline-start: var(--syn-spacing-small);\n }\n\n .button--has-suffix.button--small,\n .button--caret.button--small {\n padding-inline-end: var(--syn-spacing-x-small);\n }\n\n .button--has-suffix.button--small .button__label,\n .button--caret.button--small .button__label {\n padding-inline-end: var(--syn-spacing-x-small);\n }\n\n .button--has-suffix.button--medium,\n .button--caret.button--medium {\n padding-inline-end: var(--syn-spacing-small);\n }\n\n .button--has-suffix.button--medium .button__label,\n .button--caret.button--medium .button__label {\n padding-inline-end: var(--syn-spacing-small);\n }\n\n .button--has-suffix.button--large,\n .button--caret.button--large {\n padding-inline-end: var(--syn-spacing-small);\n }\n\n .button--has-suffix.button--large .button__label,\n .button--caret.button--large .button__label {\n padding-inline-end: var(--syn-spacing-small);\n }\n\n /*\n * Button groups support a variety of button types (e.g. buttons with tooltips, buttons as dropdown triggers, etc.).\n * This means buttons aren't always direct descendants of the button group, thus we can't target them with the\n * ::slotted selector. To work around this, the button group component does some magic to add these special classes to\n * buttons and we style them here instead.\n */\n\n :host(.syn-button-group__button--first:not(.syn-button-group__button--last)) .button {\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n }\n\n :host(.syn-button-group__button--inner) .button {\n border-radius: 0;\n }\n\n :host(.syn-button-group__button--last:not(.syn-button-group__button--first)) .button {\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n }\n\n /* All except the first */\n :host(.syn-button-group__button:not(.syn-button-group__button--first)) {\n margin-inline-start: calc(-1 * var(--syn-input-border-width));\n }\n\n /* Add a visual separator between solid buttons */\n :host(\n .syn-button-group__button:not(\n .syn-button-group__button--first,\n .syn-button-group__button--radio,\n [variant='filled']\n ):not(:hover)\n )\n .button:after {\n content: '';\n position: absolute;\n top: 0;\n inset-inline-start: 0;\n bottom: 0;\n border-left: solid 1px rgb(128 128 128 / 33%);\n mix-blend-mode: multiply;\n }\n\n /* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */\n :host(.syn-button-group__button--hover) {\n z-index: 1;\n }\n\n /* Focus and checked are always on top */\n :host(.syn-button-group__button--focus),\n :host(.syn-button-group__button[checked]) {\n z-index: 2;\n }\n\n ${customStyles}\n`;\n\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAMA,SAAS,WAAW;AAIpB,IAAO,wBAAQ;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;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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A;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,IAsWf,4BAAY;AAAA;",
|
|
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.YOW3IJVJ.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.SGZ5ADPY.js.map
|
|
@@ -48,7 +48,7 @@ var SynergyElement = class extends LitElement {
|
|
|
48
48
|
};
|
|
49
49
|
/* eslint-disable */
|
|
50
50
|
// @ts-expect-error This is auto-injected at build time.
|
|
51
|
-
SynergyElement.version = "1.0.0-main.
|
|
51
|
+
SynergyElement.version = "1.0.0-main.9";
|
|
52
52
|
SynergyElement.dependencies = {};
|
|
53
53
|
__decorateClass([
|
|
54
54
|
property()
|
|
@@ -60,4 +60,4 @@ __decorateClass([
|
|
|
60
60
|
export {
|
|
61
61
|
SynergyElement
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=chunk.
|
|
63
|
+
//# sourceMappingURL=chunk.YOW3IJVJ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/internal/synergy-element.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 { LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\n\n// Match event type name strings that are registered on GlobalEventHandlersEventMap...\ntype EventTypeRequiresDetail<T> = T extends keyof GlobalEventHandlersEventMap\n ? // ...where the event detail is an object...\n GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? // ...that is non-empty...\n GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? never\n : // ...and has at least one non-optional property\n Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? never\n : T\n : never\n : never;\n\n// The inverse of the above (match any type that doesn't match EventTypeRequiresDetail)\ntype EventTypeDoesNotRequireDetail<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? T\n : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? T\n : never\n : T\n : T;\n\n// `keyof EventTypesWithRequiredDetail` lists all registered event types that require detail\ntype EventTypesWithRequiredDetail = {\n [EventType in keyof GlobalEventHandlersEventMap as EventTypeRequiresDetail<EventType>]: true;\n};\n\n// `keyof EventTypesWithoutRequiredDetail` lists all registered event types that do NOT require detail\ntype EventTypesWithoutRequiredDetail = {\n [EventType in keyof GlobalEventHandlersEventMap as EventTypeDoesNotRequireDetail<EventType>]: true;\n};\n\n// Helper to make a specific property of an object non-optional\ntype WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] };\n\n// Given an event name string, get a valid type for the options to initialize the event that is more restrictive than\n// just CustomEventInit when appropriate (validate the type of the event detail, and require it to be provided if the\n// event requires it)\ntype SynEventInit<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>\n : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>\n : WithRequired<CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>, 'detail'>\n : CustomEventInit\n : CustomEventInit;\n\n// Given an event name string, get the type of the event\ntype GetCustomEventType<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<unknown>\n ? GlobalEventHandlersEventMap[T]\n : CustomEvent<unknown>\n : CustomEvent<unknown>;\n\n// `keyof ValidEventTypeMap` is equivalent to `keyof GlobalEventHandlersEventMap` but gives a nicer error message\ntype ValidEventTypeMap = EventTypesWithRequiredDetail | EventTypesWithoutRequiredDetail;\n\nexport default class SynergyElement extends LitElement {\n // Make localization attributes reactive\n @property() dir: string;\n @property() lang: string;\n\n /** Emits a custom event with more convenient defaults. */\n emit<T extends string & keyof EventTypesWithoutRequiredDetail>(\n name: EventTypeDoesNotRequireDetail<T>,\n options?: SynEventInit<T> | undefined\n ): GetCustomEventType<T>;\n emit<T extends string & keyof EventTypesWithRequiredDetail>(\n name: EventTypeRequiresDetail<T>,\n options: SynEventInit<T>\n ): GetCustomEventType<T>;\n emit<T extends string & keyof ValidEventTypeMap>(\n name: T,\n options?: SynEventInit<T> | undefined\n ): GetCustomEventType<T> {\n const event = new CustomEvent(name, {\n bubbles: true,\n cancelable: false,\n composed: true,\n detail: {},\n ...options\n });\n\n this.dispatchEvent(event);\n\n return event as GetCustomEventType<T>;\n }\n\n /* eslint-disable */\n // @ts-expect-error This is auto-injected at build time.\n static version = \"1.0.0-main.
|
|
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 { LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\n\n// Match event type name strings that are registered on GlobalEventHandlersEventMap...\ntype EventTypeRequiresDetail<T> = T extends keyof GlobalEventHandlersEventMap\n ? // ...where the event detail is an object...\n GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? // ...that is non-empty...\n GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? never\n : // ...and has at least one non-optional property\n Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? never\n : T\n : never\n : never;\n\n// The inverse of the above (match any type that doesn't match EventTypeRequiresDetail)\ntype EventTypeDoesNotRequireDetail<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? T\n : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? T\n : never\n : T\n : T;\n\n// `keyof EventTypesWithRequiredDetail` lists all registered event types that require detail\ntype EventTypesWithRequiredDetail = {\n [EventType in keyof GlobalEventHandlersEventMap as EventTypeRequiresDetail<EventType>]: true;\n};\n\n// `keyof EventTypesWithoutRequiredDetail` lists all registered event types that do NOT require detail\ntype EventTypesWithoutRequiredDetail = {\n [EventType in keyof GlobalEventHandlersEventMap as EventTypeDoesNotRequireDetail<EventType>]: true;\n};\n\n// Helper to make a specific property of an object non-optional\ntype WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] };\n\n// Given an event name string, get a valid type for the options to initialize the event that is more restrictive than\n// just CustomEventInit when appropriate (validate the type of the event detail, and require it to be provided if the\n// event requires it)\ntype SynEventInit<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>\n : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>\n : WithRequired<CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>, 'detail'>\n : CustomEventInit\n : CustomEventInit;\n\n// Given an event name string, get the type of the event\ntype GetCustomEventType<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<unknown>\n ? GlobalEventHandlersEventMap[T]\n : CustomEvent<unknown>\n : CustomEvent<unknown>;\n\n// `keyof ValidEventTypeMap` is equivalent to `keyof GlobalEventHandlersEventMap` but gives a nicer error message\ntype ValidEventTypeMap = EventTypesWithRequiredDetail | EventTypesWithoutRequiredDetail;\n\nexport default class SynergyElement extends LitElement {\n // Make localization attributes reactive\n @property() dir: string;\n @property() lang: string;\n\n /** Emits a custom event with more convenient defaults. */\n emit<T extends string & keyof EventTypesWithoutRequiredDetail>(\n name: EventTypeDoesNotRequireDetail<T>,\n options?: SynEventInit<T> | undefined\n ): GetCustomEventType<T>;\n emit<T extends string & keyof EventTypesWithRequiredDetail>(\n name: EventTypeRequiresDetail<T>,\n options: SynEventInit<T>\n ): GetCustomEventType<T>;\n emit<T extends string & keyof ValidEventTypeMap>(\n name: T,\n options?: SynEventInit<T> | undefined\n ): GetCustomEventType<T> {\n const event = new CustomEvent(name, {\n bubbles: true,\n cancelable: false,\n composed: true,\n detail: {},\n ...options\n });\n\n this.dispatchEvent(event);\n\n return event as GetCustomEventType<T>;\n }\n\n /* eslint-disable */\n // @ts-expect-error This is auto-injected at build time.\n static version = \"1.0.0-main.9\";\n \n\n static define(name: string, elementConstructor = this, options: ElementDefinitionOptions = {}) {\n const currentlyRegisteredConstructor = customElements.get(name) as\n | CustomElementConstructor\n | typeof SynergyElement;\n\n if (!currentlyRegisteredConstructor) {\n customElements.define(name, class extends elementConstructor {} as unknown as CustomElementConstructor, options);\n return;\n }\n\n let newVersion = ' (unknown version)';\n let existingVersion = newVersion;\n\n if ('version' in elementConstructor && elementConstructor.version) {\n newVersion = ' v' + elementConstructor.version;\n }\n\n if ('version' in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {\n existingVersion = ' v' + currentlyRegisteredConstructor.version;\n }\n\n // Need to make sure we're not working with null or empty strings before doing version comparisons.\n if (newVersion && existingVersion && newVersion === existingVersion) {\n // If versions match, we don't need to warn anyone. Carry on.\n return;\n }\n\n console.warn(\n `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`\n );\n }\n\n static dependencies: Record<string, typeof SynergyElement> = {};\n\n constructor() {\n super();\n Object.entries((this.constructor as typeof SynergyElement).dependencies).forEach(([name, component]) => {\n (this.constructor as typeof SynergyElement).define(name, component);\n });\n }\n}\n\nexport interface SynergyFormControl extends SynergyElement {\n // Form attributes\n name: string;\n value: unknown;\n disabled?: boolean;\n defaultValue?: unknown;\n defaultChecked?: boolean;\n form?: string;\n\n // Constraint validation attributes\n pattern?: string;\n min?: number | string | Date;\n max?: number | string | Date;\n step?: number | 'any';\n required?: boolean;\n minlength?: number;\n maxlength?: number;\n\n // Form validation properties\n readonly validity: ValidityState;\n readonly validationMessage: string;\n\n // Form validation methods\n checkValidity: () => boolean;\n getForm: () => HTMLFormElement | null;\n reportValidity: () => boolean;\n setCustomValidity: (message: string) => void;\n}\n"],
|
|
5
5
|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|
|
7
7
|
}
|
|
@@ -41,7 +41,7 @@ export default class SynButton extends SynergyElement implements SynergyFormCont
|
|
|
41
41
|
invalid: boolean;
|
|
42
42
|
title: string;
|
|
43
43
|
/** The button's theme variant. */
|
|
44
|
-
variant: '
|
|
44
|
+
variant: 'filled' | 'outline' | 'text';
|
|
45
45
|
/** The button's size. */
|
|
46
46
|
size: 'small' | 'medium' | 'large';
|
|
47
47
|
/** Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior. */
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButton
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.6CFDQNJT.js";
|
|
4
|
+
import "../../chunks/chunk.SGZ5ADPY.js";
|
|
5
5
|
import "../../chunks/chunk.N2I6HVX3.js";
|
|
6
6
|
import "../../chunks/chunk.XGXFE6IF.js";
|
|
7
7
|
import "../../chunks/chunk.R6VNLE6N.js";
|
|
8
8
|
import "../../chunks/chunk.A3SKDWCT.js";
|
|
9
9
|
import "../../chunks/chunk.WDCAHRYG.js";
|
|
10
|
-
import "../../chunks/chunk.
|
|
11
|
-
import "../../chunks/chunk.
|
|
12
|
-
import "../../chunks/chunk.
|
|
13
|
-
import "../../chunks/chunk.
|
|
10
|
+
import "../../chunks/chunk.OZSASB66.js";
|
|
11
|
+
import "../../chunks/chunk.MQ3KYTNU.js";
|
|
12
|
+
import "../../chunks/chunk.IZS6SARK.js";
|
|
13
|
+
import "../../chunks/chunk.YOW3IJVJ.js";
|
|
14
14
|
import "../../chunks/chunk.BREU4ILT.js";
|
|
15
15
|
import "../../chunks/chunk.5OIEI73E.js";
|
|
16
16
|
import "../../chunks/chunk.6C4JXZZN.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
button_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.GRZ3TSGB.js";
|
|
4
|
+
import "../../chunks/chunk.6CFDQNJT.js";
|
|
5
|
+
import "../../chunks/chunk.SGZ5ADPY.js";
|
|
6
6
|
import "../../chunks/chunk.N2I6HVX3.js";
|
|
7
7
|
import "../../chunks/chunk.XGXFE6IF.js";
|
|
8
8
|
import "../../chunks/chunk.R6VNLE6N.js";
|
|
9
9
|
import "../../chunks/chunk.A3SKDWCT.js";
|
|
10
10
|
import "../../chunks/chunk.WDCAHRYG.js";
|
|
11
|
-
import "../../chunks/chunk.
|
|
12
|
-
import "../../chunks/chunk.
|
|
13
|
-
import "../../chunks/chunk.
|
|
14
|
-
import "../../chunks/chunk.
|
|
11
|
+
import "../../chunks/chunk.OZSASB66.js";
|
|
12
|
+
import "../../chunks/chunk.MQ3KYTNU.js";
|
|
13
|
+
import "../../chunks/chunk.IZS6SARK.js";
|
|
14
|
+
import "../../chunks/chunk.YOW3IJVJ.js";
|
|
15
15
|
import "../../chunks/chunk.BREU4ILT.js";
|
|
16
16
|
import "../../chunks/chunk.5OIEI73E.js";
|
|
17
17
|
import "../../chunks/chunk.6C4JXZZN.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
button_styles_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.OZSASB66.js";
|
|
4
|
+
import "../../chunks/chunk.MQ3KYTNU.js";
|
|
5
5
|
import "../../chunks/chunk.O7USYXBT.js";
|
|
6
6
|
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
7
7
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynIcon
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.IZS6SARK.js";
|
|
4
|
+
import "../../chunks/chunk.YOW3IJVJ.js";
|
|
5
5
|
import "../../chunks/chunk.BREU4ILT.js";
|
|
6
6
|
import "../../chunks/chunk.5OIEI73E.js";
|
|
7
7
|
import "../../chunks/chunk.6C4JXZZN.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynIcon
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.IZS6SARK.js";
|
|
4
|
+
import "../../chunks/chunk.YOW3IJVJ.js";
|
|
5
5
|
import "../../chunks/chunk.BREU4ILT.js";
|
|
6
6
|
import "../../chunks/chunk.5OIEI73E.js";
|
|
7
7
|
import "../../chunks/chunk.6C4JXZZN.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynInput
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.DYPYZ53B.js";
|
|
4
4
|
import "../../chunks/chunk.Q77OTWF2.js";
|
|
5
5
|
import "../../chunks/chunk.ILONRPL4.js";
|
|
6
6
|
import "../../chunks/chunk.XGXFE6IF.js";
|
|
7
7
|
import "../../chunks/chunk.R6VNLE6N.js";
|
|
8
8
|
import "../../chunks/chunk.A3SKDWCT.js";
|
|
9
9
|
import "../../chunks/chunk.WDCAHRYG.js";
|
|
10
|
-
import "../../chunks/chunk.
|
|
11
|
-
import "../../chunks/chunk.
|
|
10
|
+
import "../../chunks/chunk.IZS6SARK.js";
|
|
11
|
+
import "../../chunks/chunk.YOW3IJVJ.js";
|
|
12
12
|
import "../../chunks/chunk.BREU4ILT.js";
|
|
13
13
|
import "../../chunks/chunk.5OIEI73E.js";
|
|
14
14
|
import "../../chunks/chunk.6C4JXZZN.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
input_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.H6VZTJD6.js";
|
|
4
|
+
import "../../chunks/chunk.DYPYZ53B.js";
|
|
5
5
|
import "../../chunks/chunk.Q77OTWF2.js";
|
|
6
6
|
import "../../chunks/chunk.ILONRPL4.js";
|
|
7
7
|
import "../../chunks/chunk.XGXFE6IF.js";
|
|
8
8
|
import "../../chunks/chunk.R6VNLE6N.js";
|
|
9
9
|
import "../../chunks/chunk.A3SKDWCT.js";
|
|
10
10
|
import "../../chunks/chunk.WDCAHRYG.js";
|
|
11
|
-
import "../../chunks/chunk.
|
|
12
|
-
import "../../chunks/chunk.
|
|
11
|
+
import "../../chunks/chunk.IZS6SARK.js";
|
|
12
|
+
import "../../chunks/chunk.YOW3IJVJ.js";
|
|
13
13
|
import "../../chunks/chunk.BREU4ILT.js";
|
|
14
14
|
import "../../chunks/chunk.5OIEI73E.js";
|
|
15
15
|
import "../../chunks/chunk.6C4JXZZN.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSpinner
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.SGZ5ADPY.js";
|
|
4
4
|
import "../../chunks/chunk.N2I6HVX3.js";
|
|
5
5
|
import "../../chunks/chunk.R6VNLE6N.js";
|
|
6
6
|
import "../../chunks/chunk.A3SKDWCT.js";
|
|
7
|
-
import "../../chunks/chunk.
|
|
7
|
+
import "../../chunks/chunk.YOW3IJVJ.js";
|
|
8
8
|
import "../../chunks/chunk.O7USYXBT.js";
|
|
9
9
|
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
10
10
|
export {
|
|
@@ -118,9 +118,9 @@
|
|
|
118
118
|
"kind": "field",
|
|
119
119
|
"name": "variant",
|
|
120
120
|
"type": {
|
|
121
|
-
"text": "'
|
|
121
|
+
"text": "'filled' | 'outline' | 'text'"
|
|
122
122
|
},
|
|
123
|
-
"default": "'
|
|
123
|
+
"default": "'filled'",
|
|
124
124
|
"description": "The button's theme variant.",
|
|
125
125
|
"attribute": "variant",
|
|
126
126
|
"reflects": true
|
|
@@ -435,9 +435,9 @@
|
|
|
435
435
|
{
|
|
436
436
|
"name": "variant",
|
|
437
437
|
"type": {
|
|
438
|
-
"text": "'
|
|
438
|
+
"text": "'filled' | 'outline' | 'text'"
|
|
439
439
|
},
|
|
440
|
-
"default": "'
|
|
440
|
+
"default": "'filled'",
|
|
441
441
|
"description": "The button's theme variant.",
|
|
442
442
|
"fieldName": "variant"
|
|
443
443
|
},
|
|
@@ -1859,7 +1859,7 @@
|
|
|
1859
1859
|
"package": {
|
|
1860
1860
|
"name": "@synergy-design-system/components",
|
|
1861
1861
|
"description": "",
|
|
1862
|
-
"version": "1.0.0-main.
|
|
1862
|
+
"version": "1.0.0-main.9",
|
|
1863
1863
|
"author": {
|
|
1864
1864
|
"name": "SICK Global UX Foundation",
|
|
1865
1865
|
"url": "https://www.sick.com"
|
package/dist/synergy.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
input_default
|
|
3
|
-
} from "./chunks/chunk.
|
|
3
|
+
} from "./chunks/chunk.H6VZTJD6.js";
|
|
4
4
|
import {
|
|
5
5
|
getFormControls,
|
|
6
6
|
serialize
|
|
7
7
|
} from "./chunks/chunk.WTCUSH7V.js";
|
|
8
|
-
import "./chunks/chunk.
|
|
8
|
+
import "./chunks/chunk.DYPYZ53B.js";
|
|
9
9
|
import "./chunks/chunk.Q77OTWF2.js";
|
|
10
10
|
import "./chunks/chunk.ILONRPL4.js";
|
|
11
11
|
import {
|
|
12
12
|
button_default
|
|
13
|
-
} from "./chunks/chunk.
|
|
14
|
-
import "./chunks/chunk.
|
|
15
|
-
import "./chunks/chunk.
|
|
13
|
+
} from "./chunks/chunk.GRZ3TSGB.js";
|
|
14
|
+
import "./chunks/chunk.6CFDQNJT.js";
|
|
15
|
+
import "./chunks/chunk.SGZ5ADPY.js";
|
|
16
16
|
import "./chunks/chunk.N2I6HVX3.js";
|
|
17
17
|
import "./chunks/chunk.XGXFE6IF.js";
|
|
18
18
|
import "./chunks/chunk.R6VNLE6N.js";
|
|
19
19
|
import "./chunks/chunk.A3SKDWCT.js";
|
|
20
20
|
import "./chunks/chunk.WDCAHRYG.js";
|
|
21
|
-
import "./chunks/chunk.
|
|
22
|
-
import "./chunks/chunk.
|
|
23
|
-
import "./chunks/chunk.
|
|
24
|
-
import "./chunks/chunk.
|
|
21
|
+
import "./chunks/chunk.OZSASB66.js";
|
|
22
|
+
import "./chunks/chunk.MQ3KYTNU.js";
|
|
23
|
+
import "./chunks/chunk.IZS6SARK.js";
|
|
24
|
+
import "./chunks/chunk.YOW3IJVJ.js";
|
|
25
25
|
import "./chunks/chunk.BREU4ILT.js";
|
|
26
26
|
import "./chunks/chunk.5OIEI73E.js";
|
|
27
27
|
import "./chunks/chunk.6C4JXZZN.js";
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@synergy-design-system/components",
|
|
4
|
-
"version": "1.0.0-main.
|
|
4
|
+
"version": "1.0.0-main.9",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"name": "variant",
|
|
17
17
|
"description": "The button's theme variant.",
|
|
18
18
|
"value": {
|
|
19
|
-
"type": "'
|
|
20
|
-
"default": "'
|
|
19
|
+
"type": "'filled' | 'outline' | 'text'",
|
|
20
|
+
"default": "'filled'"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
{
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
{
|
|
148
148
|
"name": "variant",
|
|
149
149
|
"description": "The button's theme variant.",
|
|
150
|
-
"value": { "type": "'
|
|
150
|
+
"value": { "type": "'filled' | 'outline' | 'text'" }
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"name": "size",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://www.sick.com"
|
|
5
5
|
},
|
|
6
6
|
"name": "@synergy-design-system/components",
|
|
7
|
-
"version": "1.0.0-main.
|
|
7
|
+
"version": "1.0.0-main.9",
|
|
8
8
|
"description": "",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"user-agent-data-types": "^0.4.2",
|
|
87
87
|
"vendorism": "github:mariohamann/vendorism",
|
|
88
88
|
"@synergy-design-system/eslint-config-syn": "0.1.0",
|
|
89
|
-
"@synergy-design-system/
|
|
90
|
-
"@synergy-design-system/
|
|
89
|
+
"@synergy-design-system/tokens": "1.0.0-main.7",
|
|
90
|
+
"@synergy-design-system/stylelint-config-syn": "0.1.0"
|
|
91
91
|
},
|
|
92
92
|
"release": {
|
|
93
93
|
"branches": [
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/components/button/button.custom.styles.ts"],
|
|
4
|
-
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n /* Write custom CSS here */\n`;\n"],
|
|
5
|
-
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,+BAAQ;AAAA;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/components/button/button.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 { FormControlController, validValidityState } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html, literal } from 'lit/static-html.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynSpinner from '../spinner/spinner.component.js';\nimport styles from './button.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\n\n/**\n * @summary Buttons represent actions that are available to the user.\n * @documentation https://synergy.style/components/button\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-spinner\n *\n * @event syn-blur - Emitted when the button loses focus.\n * @event syn-focus - Emitted when the button gains focus.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @slot - The button's label.\n * @slot prefix - A presentational prefix icon or similar element.\n * @slot suffix - A presentational suffix icon or similar element.\n *\n * @csspart base - The component's base wrapper.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart label - The button's label.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart caret - The button's caret icon, an `<syn-icon>` element.\n * @csspart spinner - The spinner that shows when the button is in the loading state.\n */\nexport default class SynButton extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = styles;\n static dependencies = {\n 'syn-icon': SynIcon,\n 'syn-spinner': SynSpinner\n };\n\n private readonly formControlController = new FormControlController(this, {\n form: input => {\n // Buttons support a form attribute that points to an arbitrary form, so if this attribute is set we need to query\n // the form from the same root using its id\n if (input.hasAttribute('form')) {\n const doc = input.getRootNode() as Document | ShadowRoot;\n const formId = input.getAttribute('form')!;\n return doc.getElementById(formId) as HTMLFormElement;\n }\n\n // Fall back to the closest containing form\n return input.closest('form');\n },\n assumeInteractionOn: ['click']\n });\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'prefix', 'suffix');\n private readonly localize = new LocalizeController(this);\n\n @query('.button') button: HTMLButtonElement | HTMLLinkElement;\n\n @state() private hasFocus = false;\n @state() invalid = false;\n @property() title = ''; // make reactive to pass through\n\n /** The button's theme variant. */\n @property({ reflect: true }) variant: 'default' | 'outline' | 'text' = 'default';\n\n /** The button's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior. */\n @property({ type: Boolean, reflect: true }) caret = false;\n\n /** Disables the button. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Draws the button in a loading state. */\n @property({ type: Boolean, reflect: true }) loading = false;\n\n /**\n * The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native\n * `<button>` elements behave. When the type is `submit`, the button will submit the surrounding form.\n */\n @property() type: 'button' | 'submit' | 'reset' = 'button';\n\n /**\n * The name of the button, submitted as a name/value pair with form data, but only when this button is the submitter.\n * This attribute is ignored when `href` is present.\n */\n @property() name = '';\n\n /**\n * The value of the button, submitted as a pair with the button's name as part of the form data, but only when this\n * button is the submitter. This attribute is ignored when `href` is present.\n */\n @property() value = '';\n\n /** When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. */\n @property() href = '';\n\n /** Tells the browser where to open the link. Only used when `href` is present. */\n @property() target: '_blank' | '_parent' | '_self' | '_top';\n\n /**\n * When using `href`, this attribute will map to the underlying link's `rel` attribute. Unlike regular links, the\n * default is `noreferrer noopener` to prevent security exploits. However, if you're using `target` to point to a\n * specific tab/window, this will prevent that from working correctly. You can remove or change the default value by\n * setting the attribute to an empty string or a value of your choice, respectively.\n */\n @property() rel = 'noreferrer noopener';\n\n /** Tells the browser to download the linked file as this filename. Only used when `href` is present. */\n @property() download?: string;\n\n /**\n * The \"form owner\" to associate the button with. If omitted, the closest containing form will be used instead. The\n * value of this attribute must be an id of a form in the same document or shadow root as the button.\n */\n @property() form: string;\n\n /** Used to override the form owner's `action` attribute. */\n @property({ attribute: 'formaction' }) formAction: string;\n\n /** Used to override the form owner's `enctype` attribute. */\n @property({ attribute: 'formenctype' })\n formEnctype: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';\n\n /** Used to override the form owner's `method` attribute. */\n @property({ attribute: 'formmethod' }) formMethod: 'post' | 'get';\n\n /** Used to override the form owner's `novalidate` attribute. */\n @property({ attribute: 'formnovalidate', type: Boolean }) formNoValidate: boolean;\n\n /** Used to override the form owner's `target` attribute. */\n @property({ attribute: 'formtarget' }) formTarget: '_self' | '_blank' | '_parent' | '_top' | string;\n\n /** Gets the validity state object */\n get validity() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).validity;\n }\n\n return validValidityState;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).validationMessage;\n }\n\n return '';\n }\n\n firstUpdated() {\n if (this.isButton()) {\n this.formControlController.updateValidity();\n }\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleClick() {\n if (this.type === 'submit') {\n this.formControlController.submit(this);\n }\n\n if (this.type === 'reset') {\n this.formControlController.reset(this);\n }\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private isButton() {\n return this.href ? false : true;\n }\n\n private isLink() {\n return this.href ? true : false;\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n if (this.isButton()) {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\n }\n }\n\n /** Simulates a click on the button. */\n click() {\n this.button.click();\n }\n\n /** Sets focus on the button. */\n focus(options?: FocusOptions) {\n this.button.focus(options);\n }\n\n /** Removes focus from the button. */\n blur() {\n this.button.blur();\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).checkValidity();\n }\n\n return true;\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n if (this.isButton()) {\n return (this.button as HTMLButtonElement).reportValidity();\n }\n\n return true;\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n if (this.isButton()) {\n (this.button as HTMLButtonElement).setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n }\n\n render() {\n const isLink = this.isLink();\n const tag = isLink ? literal`a` : literal`button`;\n\n /* eslint-disable lit/no-invalid-html */\n /* eslint-disable lit/binding-positions */\n return html`\n <${tag}\n part=\"base\"\n class=${classMap({\n button: true,\n 'button--primary': true,\n 'button--text': this.variant === 'text',\n 'button--small': this.size === 'small',\n 'button--medium': this.size === 'medium',\n 'button--large': this.size === 'large',\n 'button--caret': this.caret,\n 'button--disabled': this.disabled,\n 'button--focused': this.hasFocus,\n 'button--loading': this.loading,\n 'button--default': this.variant === 'default',\n 'button--outline': this.variant === 'outline',\n 'button--rtl': this.localize.dir() === 'rtl',\n 'button--has-label': this.hasSlotController.test('[default]'),\n 'button--has-prefix': this.hasSlotController.test('prefix'),\n 'button--has-suffix': this.hasSlotController.test('suffix')\n })}\n ?disabled=${ifDefined(isLink ? undefined : this.disabled)}\n type=${ifDefined(isLink ? undefined : this.type)}\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${ifDefined(isLink ? undefined : this.name)}\n value=${ifDefined(isLink ? undefined : this.value)}\n href=${ifDefined(isLink ? this.href : undefined)}\n target=${ifDefined(isLink ? this.target : undefined)}\n download=${ifDefined(isLink ? this.download : undefined)}\n rel=${ifDefined(isLink ? this.rel : undefined)}\n role=${ifDefined(isLink ? undefined : 'button')}\n aria-disabled=${this.disabled ? 'true' : 'false'}\n tabindex=${this.disabled ? '-1' : '0'}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n @invalid=${this.isButton() ? this.handleInvalid : null}\n @click=${this.handleClick}\n >\n <slot name=\"prefix\" part=\"prefix\" class=\"button__prefix\"></slot>\n <slot part=\"label\" class=\"button__label\"></slot>\n <slot name=\"suffix\" part=\"suffix\" class=\"button__suffix\"></slot>\n ${\n this.caret ? html` <syn-icon part=\"caret\" class=\"button__caret\" library=\"system\" name=\"caret\"></syn-icon> ` : ''\n }\n ${this.loading ? html`<syn-spinner part=\"spinner\"></syn-spinner>` : ''}\n </${tag}>\n `;\n /* eslint-enable lit/no-invalid-html */\n /* eslint-enable lit/binding-positions */\n }\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,SAAS,gBAAgB;AAGzB,SAAS,MAAM,eAAe;AAC9B,SAAS,iBAAiB;AAE1B,SAAS,UAAU,OAAO,aAAa;AAiCvC,IAAqB,YAArB,cAAuC,eAA6C;AAAA,EAApF;AAAA;AAOE,SAAiB,wBAAwB,IAAI,sBAAsB,MAAM;AAAA,MACvE,MAAM,WAAS;AAGb,YAAI,MAAM,aAAa,MAAM,GAAG;AAC9B,gBAAM,MAAM,MAAM,YAAY;AAC9B,gBAAM,SAAS,MAAM,aAAa,MAAM;AACxC,iBAAO,IAAI,eAAe,MAAM;AAAA,QAClC;AAGA,eAAO,MAAM,QAAQ,MAAM;AAAA,MAC7B;AAAA,MACA,qBAAqB,CAAC,OAAO;AAAA,IAC/B,CAAC;AACD,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,UAAU,QAAQ;AAChG,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAI9C,SAAQ,WAAW;AACnB,mBAAU;AACP,iBAAQ;AAGS,mBAA0C;AAG1C,gBAAqC;AAGtB,iBAAQ;AAGR,oBAAW;AAGX,mBAAU;AAM1C,gBAAsC;AAMtC,gBAAO;AAMP,iBAAQ;AAGR,gBAAO;AAWP,eAAM;AAAA;AAAA;AAAA,EA4BlB,IAAI,WAAW;AACb,QAAI,KAAK,SAAS,GAAG;AACnB,aAAQ,KAAK,OAA6B;AAAA,IAC5C;AAEA,WAAO;AAAA,EACT;AAAA;A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,GA5CvB,UA4CyB;AAMhC;AAAA,EAAX,SAAS;AAAA,GAlDS,UAkDP;AAMA;AAAA,EAAX,SAAS;AAAA,GAxDS,UAwDP;AAMA;AAAA,EAAX,SAAS;AAAA,GA9DS,UA8DP;AAGA;AAAA,EAAX,SAAS;AAAA,GAjES,UAiEP;AAGA;AAAA,EAAX,SAAS;AAAA,GApES,UAoEP;AAQA;AAAA,EAAX,SAAS;AAAA,GA5ES,UA4EP;AAGA;AAAA,EAAX,SAAS;AAAA,GA/ES,UA+EP;AAMA;AAAA,EAAX,SAAS;AAAA,GArFS,UAqFP;AAG2B;AAAA,EAAtC,SAAS,EAAE,WAAW,aAAa,CAAC;AAAA,GAxFlB,UAwFoB;AAIvC;AAAA,EADC,SAAS,EAAE,WAAW,cAAc,CAAC;AAAA,GA3FnB,UA4FnB;AAGuC;AAAA,EAAtC,SAAS,EAAE,WAAW,aAAa,CAAC;AAAA,GA/FlB,UA+FoB;AAGmB;AAAA,EAAzD,SAAS,EAAE,WAAW,kBAAkB,MAAM,QAAQ,CAAC;AAAA,GAlGrC,UAkGuC;AAGnB;AAAA,EAAtC,SAAS,EAAE,WAAW,aAAa,CAAC;AAAA,GArGlB,UAqGoB;AA4DvC;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAhK9B,UAiKnB;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/components/button/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 componentStyles from '../../styles/component.styles.js';\nimport customStyles from './button.custom.styles.js';\n\nexport default css`\n\t/* stylelint-disable */\n ${componentStyles}\n\n :host {\n display: inline-block;\n position: relative;\n width: auto;\n cursor: pointer;\n }\n\n .button {\n display: inline-flex;\n align-items: stretch;\n justify-content: center;\n width: 100%;\n border-style: solid;\n border-width: var(--syn-input-border-width);\n font-family: var(--syn-input-font-family);\n font-weight: var(--syn-font-weight-semibold);\n text-decoration: none;\n user-select: none;\n -webkit-user-select: none;\n white-space: nowrap;\n vertical-align: middle;\n padding: 0;\n transition:\n var(--syn-transition-x-fast) background-color,\n var(--syn-transition-x-fast) color,\n var(--syn-transition-x-fast) border,\n var(--syn-transition-x-fast) box-shadow;\n cursor: inherit;\n }\n\n .button::-moz-focus-inner {\n border: 0;\n }\n\n .button:focus {\n outline: none;\n }\n\n .button:focus-visible {\n outline: var(--syn-focus-ring);\n outline-offset: var(--syn-focus-ring-offset);\n }\n\n .button--disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n /* When disabled, prevent mouse events from bubbling up from children */\n .button--disabled * {\n pointer-events: none;\n }\n\n .button__prefix,\n .button__suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n pointer-events: none;\n }\n\n .button__label {\n display: inline-block;\n }\n\n .button__label::slotted(syn-icon) {\n vertical-align: -2px;\n }\n\n /*\n * Standard buttons\n */\n\n /* Primary */\n .button--default.button--primary {\n background-color: var(--syn-color-primary-600);\n border-color: var(--syn-color-primary-600);\n color: var(--syn-color-neutral-0);\n }\n\n .button--default.button--primary:hover:not(.button--disabled) {\n background-color: var(--syn-color-primary-500);\n border-color: var(--syn-color-primary-500);\n color: var(--syn-color-neutral-0);\n }\n\n .button--default.button--primary:active:not(.button--disabled) {\n background-color: var(--syn-color-primary-600);\n border-color: var(--syn-color-primary-600);\n color: var(--syn-color-neutral-0);\n }\n\n /*\n * Outline buttons\n */\n\n .button--outline {\n background: none;\n border: solid 1px;\n }\n\n /* Primary */\n .button--outline.button--primary {\n border-color: var(--syn-color-primary-600);\n color: var(--syn-color-primary-600);\n }\n\n .button--outline.button--primary:hover:not(.button--disabled),\n .button--outline.button--primary.button--checked:not(.button--disabled) {\n background-color: var(--syn-color-primary-600);\n color: var(--syn-color-neutral-0);\n }\n\n .button--outline.button--primary:active:not(.button--disabled) {\n border-color: var(--syn-color-primary-700);\n background-color: var(--syn-color-primary-700);\n color: var(--syn-color-neutral-0);\n }\n\n /*\n * Text buttons\n */\n\n .button--text {\n background-color: transparent;\n border-color: transparent;\n color: var(--syn-color-primary-600);\n }\n\n .button--text:hover:not(.button--disabled) {\n background-color: transparent;\n border-color: transparent;\n color: var(--syn-color-primary-500);\n }\n\n .button--text:focus-visible:not(.button--disabled) {\n background-color: transparent;\n border-color: transparent;\n color: var(--syn-color-primary-500);\n }\n\n .button--text:active:not(.button--disabled) {\n background-color: transparent;\n border-color: transparent;\n color: var(--syn-color-primary-700);\n }\n\n /*\n * Size modifiers\n */\n\n .button--small {\n height: auto;\n min-height: var(--syn-input-height-small);\n font-size: var(--syn-button-font-size-small);\n line-height: calc(var(--syn-input-height-small) - var(--syn-input-border-width) * 2);\n border-radius: var(--syn-input-border-radius-small);\n }\n\n .button--medium {\n height: auto;\n min-height: var(--syn-input-height-medium);\n font-size: var(--syn-button-font-size-medium);\n line-height: calc(var(--syn-input-height-medium) - var(--syn-input-border-width) * 2);\n border-radius: var(--syn-input-border-radius-medium);\n }\n\n .button--large {\n height: auto;\n min-height: var(--syn-input-height-large);\n font-size: var(--syn-button-font-size-large);\n line-height: calc(var(--syn-input-height-large) - var(--syn-input-border-width) * 2);\n border-radius: var(--syn-input-border-radius-large);\n }\n\n /*\n * Caret modifier\n */\n\n .button--caret .button__suffix {\n display: none;\n }\n\n .button--caret .button__caret {\n height: auto;\n }\n\n /*\n * Loading modifier\n */\n\n .button--loading {\n position: relative;\n cursor: wait;\n }\n\n .button--loading .button__prefix,\n .button--loading .button__label,\n .button--loading .button__suffix,\n .button--loading .button__caret {\n visibility: hidden;\n }\n\n .button--loading syn-spinner {\n --indicator-color: currentColor;\n position: absolute;\n font-size: 1em;\n height: 1em;\n width: 1em;\n top: calc(50% - 0.5em);\n left: calc(50% - 0.5em);\n }\n\n /*\n * Badges\n */\n\n .button ::slotted(syn-badge) {\n position: absolute;\n top: 0;\n right: 0;\n translate: 50% -50%;\n pointer-events: none;\n }\n\n .button--rtl ::slotted(syn-badge) {\n right: auto;\n left: 0;\n translate: -50% -50%;\n }\n\n /*\n * Button spacing\n */\n\n .button--has-label.button--small .button__label {\n padding: 0 var(--syn-spacing-small);\n }\n\n .button--has-label.button--medium .button__label {\n padding: 0 var(--syn-spacing-medium);\n }\n\n .button--has-label.button--large .button__label {\n padding: 0 var(--syn-spacing-large);\n }\n\n .button--has-prefix.button--small {\n padding-inline-start: var(--syn-spacing-x-small);\n }\n\n .button--has-prefix.button--small .button__label {\n padding-inline-start: var(--syn-spacing-x-small);\n }\n\n .button--has-prefix.button--medium {\n padding-inline-start: var(--syn-spacing-small);\n }\n\n .button--has-prefix.button--medium .button__label {\n padding-inline-start: var(--syn-spacing-small);\n }\n\n .button--has-prefix.button--large {\n padding-inline-start: var(--syn-spacing-small);\n }\n\n .button--has-prefix.button--large .button__label {\n padding-inline-start: var(--syn-spacing-small);\n }\n\n .button--has-suffix.button--small,\n .button--caret.button--small {\n padding-inline-end: var(--syn-spacing-x-small);\n }\n\n .button--has-suffix.button--small .button__label,\n .button--caret.button--small .button__label {\n padding-inline-end: var(--syn-spacing-x-small);\n }\n\n .button--has-suffix.button--medium,\n .button--caret.button--medium {\n padding-inline-end: var(--syn-spacing-small);\n }\n\n .button--has-suffix.button--medium .button__label,\n .button--caret.button--medium .button__label {\n padding-inline-end: var(--syn-spacing-small);\n }\n\n .button--has-suffix.button--large,\n .button--caret.button--large {\n padding-inline-end: var(--syn-spacing-small);\n }\n\n .button--has-suffix.button--large .button__label,\n .button--caret.button--large .button__label {\n padding-inline-end: var(--syn-spacing-small);\n }\n\n /*\n * Button groups support a variety of button types (e.g. buttons with tooltips, buttons as dropdown triggers, etc.).\n * This means buttons aren't always direct descendants of the button group, thus we can't target them with the\n * ::slotted selector. To work around this, the button group component does some magic to add these special classes to\n * buttons and we style them here instead.\n */\n\n :host(.syn-button-group__button--first:not(.syn-button-group__button--last)) .button {\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n }\n\n :host(.syn-button-group__button--inner) .button {\n border-radius: 0;\n }\n\n :host(.syn-button-group__button--last:not(.syn-button-group__button--first)) .button {\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n }\n\n /* All except the first */\n :host(.syn-button-group__button:not(.syn-button-group__button--first)) {\n margin-inline-start: calc(-1 * var(--syn-input-border-width));\n }\n\n /* Add a visual separator between solid buttons */\n :host(\n .syn-button-group__button:not(\n .syn-button-group__button--first,\n .syn-button-group__button--radio,\n [variant='default']\n ):not(:hover)\n )\n .button:after {\n content: '';\n position: absolute;\n top: 0;\n inset-inline-start: 0;\n bottom: 0;\n border-left: solid 1px rgb(128 128 128 / 33%);\n mix-blend-mode: multiply;\n }\n\n /* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */\n :host(.syn-button-group__button--hover) {\n z-index: 1;\n }\n\n /* Focus and checked are always on top */\n :host(.syn-button-group__button--focus),\n :host(.syn-button-group__button[checked]) {\n z-index: 2;\n }\n\n ${customStyles}\n`;\n\n"],
|
|
5
|
-
"mappings": ";;;;;;;;AAMA,SAAS,WAAW;AAIpB,IAAO,wBAAQ;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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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