@proximus/lavender-checkbox 1.4.17-alpha.7 → 1.4.17-alpha.8

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.
@@ -1,19 +1,19 @@
1
1
  import { PxElement } from '@proximus/lavender-common';
2
2
  export declare const checkboxVariantValues: string[];
3
3
  export declare const checkboxStateValues: string[];
4
- /**
5
- * @summary A checkbox component.
6
- * @attr {string} name - The name of the checkbox.
7
- * @attr {string} value - The value of the checkbox.
8
- * @attr {boolean} checked - Whether the checkbox is checked.
9
- * @attr {boolean} disabled - Whether the checkbox is disabled.
10
- * @attr {boolean} required - Whether the checkbox is required.
11
- */
12
4
  export declare class Checkbox extends PxElement<HTMLInputElement> {
5
+ /**
6
+ * @summary A checkbox component.
7
+ * @attr {string} name - The name of the checkbox.
8
+ * @attr {string} value - The value of the checkbox.
9
+ * @attr {boolean} checked - Whether the checkbox is checked.
10
+ * @attr {boolean} disabled - Whether the checkbox is disabled.
11
+ * @attr {boolean} required - Whether the checkbox is required.
12
+ */
13
+ protected static readonly template: HTMLTemplateElement;
13
14
  static nativeName: string;
14
15
  static accessorExclusions: string[];
15
16
  protected internals: ElementInternals;
16
- private template;
17
17
  constructor();
18
18
  static get observedAttributes(): string[];
19
19
  connectedCallback(): void;
@@ -27,6 +27,15 @@
27
27
  "description": "",
28
28
  "name": "Checkbox",
29
29
  "members": [
30
+ {
31
+ "kind": "field",
32
+ "name": "template",
33
+ "privacy": "protected",
34
+ "static": true,
35
+ "readonly": true,
36
+ "summary": "A checkbox component.",
37
+ "attribute": "name"
38
+ },
30
39
  {
31
40
  "kind": "field",
32
41
  "name": "nativeName",
@@ -53,11 +62,6 @@
53
62
  },
54
63
  "privacy": "protected"
55
64
  },
56
- {
57
- "kind": "field",
58
- "name": "template",
59
- "privacy": "private"
60
- },
61
65
  {
62
66
  "kind": "method",
63
67
  "name": "updateAttribute",
@@ -192,10 +196,6 @@
192
196
  {
193
197
  "kind": "field",
194
198
  "name": "size"
195
- },
196
- {
197
- "kind": "field",
198
- "name": "innerHTML"
199
199
  }
200
200
  ],
201
201
  "attributes": [
@@ -218,46 +218,17 @@
218
218
  "name": "size"
219
219
  },
220
220
  {
221
- "type": {
222
- "text": "string"
223
- },
224
- "description": "The name of the checkbox.",
225
- "name": "name"
226
- },
227
- {
228
- "type": {
229
- "text": "string"
230
- },
231
- "description": "The value of the checkbox.",
232
- "name": "value"
233
- },
234
- {
235
- "type": {
236
- "text": "boolean"
237
- },
238
- "description": "Whether the checkbox is checked.",
239
- "name": "checked"
240
- },
241
- {
242
- "type": {
243
- "text": "boolean"
244
- },
245
- "description": "Whether the checkbox is disabled.",
246
- "name": "disabled"
247
- },
248
- {
249
- "type": {
250
- "text": "boolean"
251
- },
252
- "description": "Whether the checkbox is required.",
253
- "name": "required"
221
+ "name": "name",
222
+ "readonly": true,
223
+ "summary": "A checkbox component.",
224
+ "fieldName": "template",
225
+ "description": "The name of the checkbox."
254
226
  }
255
227
  ],
256
228
  "superclass": {
257
229
  "name": "PxElement",
258
230
  "package": "@proximus/lavender-common"
259
231
  },
260
- "summary": "A checkbox component.",
261
232
  "tagName": "px-checkbox",
262
233
  "customElement": true
263
234
  }
package/dist/index.es.js CHANGED
@@ -1,12 +1,15 @@
1
- import { PxElement as e, log as t } from "@proximus/lavender-common";
1
+ import { PxElement as e, createTemplate as t, log as n, renderTemplate as r } from "@proximus/lavender-common";
2
2
  //#region src/checkbox.css?inline
3
- var n = ":host{display:block}input{font-size:var(--px-font-size-base)}.checkbox{gap:var(--px-spacing-xs-mobile);font-family:var(--px-font-family);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);flex-direction:column;display:flex}.checkbox ::slotted([slot=error-text]){font-size:var(--px-text-size-body-m-mobile);color:var(--px-color-text-purpose-error-default)}.checkbox #checkbox-container{align-items:flex-start;gap:var(--px-spacing-s-mobile);display:flex}.all-slots-empty :is(.checkbox #checkbox-container){gap:0}.checkbox label{line-height:calc(var(--px-line-height-ratio-l) * 1rem);color:var(--px-color-text-neutral-default)}:host(:not([variant=selectable-tag])) input{appearance:none;border-radius:var(--px-radius-main);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default);width:var(--px-size-icon-m);height:var(--px-size-icon-m);flex-shrink:0;margin:0;transition:box-shadow .3s ease-out,background-color .3s;animation:.2s cubic-bezier(.9,-.13,.61,.99) .1s forwards anim-pop}:host(:not([variant=selectable-tag])) input:focus-visible{outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default);outline-offset:var(--px-focus-offset-mobile)}:host(:not([variant=selectable-tag])) input:checked{background-color:var(--px-color-background-state-active-default);border-color:var(--px-color-border-none-default);background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.6726 10.0557L11.1723 16.1192C10.9368 16.3298 10.6319 16.4463 10.3159 16.4463C9.99992 16.4463 9.69501 16.3298 9.45948 16.1192L6.28215 12.9418C6.08774 12.7087 5.98754 12.4113 6.00124 12.1081C6.01494 11.8048 6.14155 11.5177 6.3562 11.303C6.57084 11.0884 6.85799 10.9618 7.16123 10.9481C7.46447 10.9344 7.76187 11.0346 7.995 11.229L10.333 13.567L15.994 8.29143C16.2319 8.08824 16.5389 7.98454 16.8513 8.00187C17.1636 8.0192 17.4573 8.15625 17.6712 8.38451C17.8851 8.61277 18.0029 8.9147 17.9999 9.22753C17.997 9.54036 17.8736 9.84002 17.6555 10.0642L17.6726 10.0557Z' fill='white'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat}:host(:not([disabled])) :is(:host(:not([variant=selectable-tag])) input):hover,:host([hover]) :is(:host(:not([disabled])) :is(:host(:not([variant=selectable-tag])) input)){border:var(--px-size-border-l) solid var(--px-color-border-state-hover-default)}:host([checked]) :is(:host(:not([disabled])) :is(:host(:not([variant=selectable-tag])) input):hover,:host([hover]) :is(:host(:not([disabled])) :is(:host(:not([variant=selectable-tag])) input))){box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-default), 0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-default)}:host(:not([disabled])) :is(:host(:not([variant=selectable-tag])) input):hover{cursor:pointer}:host([disabled]) :is(:host(:not([variant=selectable-tag])) input){background-color:var(--px-color-background-state-disabled-default);border-color:var(--px-color-border-main-default)}:host([checked]) :is(:host([disabled]) :is(:host(:not([variant=selectable-tag])) input)){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.6726 10.0557L11.1723 16.1192C10.9368 16.3298 10.6319 16.4463 10.3159 16.4463C9.99992 16.4463 9.69501 16.3298 9.45948 16.1192L6.28215 12.9418C6.08774 12.7087 5.98754 12.4113 6.00124 12.1081C6.01494 11.8048 6.14155 11.5177 6.3562 11.303C6.57084 11.0884 6.85799 10.9618 7.16123 10.9481C7.46447 10.9344 7.76187 11.0346 7.995 11.229L10.333 13.567L15.994 8.29143C16.2319 8.08824 16.5389 7.98454 16.8513 8.00187C17.1636 8.0192 17.4573 8.15625 17.6712 8.38451C17.8851 8.61277 18.0029 8.9147 17.9999 9.22753C17.997 9.54036 17.8736 9.84002 17.6555 10.0642L17.6726 10.0557Z' fill='%23000' fill-opacity='0.12'/%3E%3C/svg%3E\")}:host([disabled]) :is(:host(:not([variant=selectable-tag])) input)+label{color:var(--px-color-text-state-disabled-default)}:host([state=error]:not([disabled])) :is(:host(:not([variant=selectable-tag])) input){border-color:var(--px-color-border-purpose-error-default)}:host([state=error]:not([disabled])) :is(:host(:not([variant=selectable-tag])) input):checked{background-color:var(--px-color-background-purpose-error-default)}:host([state=error]:not([disabled])) :is(:host(:not([variant=selectable-tag])) input):checked:hover,:host([hover]) :host([state=error]:not([disabled])) :is(:host(:not([variant=selectable-tag])) input):checked{background-color:var(--px-color-background-purpose-error-default);border-color:var(--px-color-border-purpose-error-default);box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-default), 0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-default)}:host([inverted]) :is(:host(:not([variant=selectable-tag])) input){border-color:var(--px-color-border-neutral-inverted)}:host([inverted]) :is(:host(:not([variant=selectable-tag])) input):focus-visible{outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) :is(:host(:not([variant=selectable-tag])) input):checked{background-color:var(--px-color-background-state-active-inverted);background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.6726 10.0557L11.1723 16.1192C10.9368 16.3298 10.6319 16.4463 10.3159 16.4463C9.99992 16.4463 9.69501 16.3298 9.45948 16.1192L6.28215 12.9418C6.08774 12.7087 5.98754 12.4113 6.00124 12.1081C6.01494 11.8048 6.14155 11.5177 6.3562 11.303C6.57084 11.0884 6.85799 10.9618 7.16123 10.9481C7.46447 10.9344 7.76187 11.0346 7.995 11.229L10.333 13.567L15.994 8.29143C16.2319 8.08824 16.5389 7.98454 16.8513 8.00187C17.1636 8.0192 17.4573 8.15625 17.6712 8.38451C17.8851 8.61277 18.0029 8.9147 17.9999 9.22753C17.997 9.54036 17.8736 9.84002 17.6555 10.0642L17.6726 10.0557Z' fill='%235C2D91'/%3E%3C/svg%3E\")}:host(:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)):hover,:host([hover]) :is(:host(:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input))){border-color:var(--px-color-border-state-hover-inverted)}:is(:host(:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)):hover,:host([hover]) :is(:host(:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)))):checked{box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-inverted), 0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-inverted)}:host([disabled]) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)){background-color:var(--px-color-background-state-disabled-inverted);border-color:var(--px-color-border-main-inverted)}:host([disabled]) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)):checked{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.6726 10.0557L11.1723 16.1192C10.9368 16.3298 10.6319 16.4463 10.3159 16.4463C9.99992 16.4463 9.69501 16.3298 9.45948 16.1192L6.28215 12.9418C6.08774 12.7087 5.98754 12.4113 6.00124 12.1081C6.01494 11.8048 6.14155 11.5177 6.3562 11.303C6.57084 11.0884 6.85799 10.9618 7.16123 10.9481C7.46447 10.9344 7.76187 11.0346 7.995 11.229L10.333 13.567L15.994 8.29143C16.2319 8.08824 16.5389 7.98454 16.8513 8.00187C17.1636 8.0192 17.4573 8.15625 17.6712 8.38451C17.8851 8.61277 18.0029 8.9147 17.9999 9.22753C17.997 9.54036 17.8736 9.84002 17.6555 10.0642L17.6726 10.0557Z' fill='white' fill-opacity='0.08'/%3E%3C/svg%3E\")}:host([disabled]) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input))+label{color:var(--px-color-text-state-disabled-inverted)}:host([state=error]:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)){border-color:var(--px-color-border-purpose-error-inverted)}:host([state=error]:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)):checked{background-color:var(--px-color-background-purpose-error-inverted);background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.6726 10.0557L11.1723 16.1192C10.9368 16.3298 10.6319 16.4463 10.3159 16.4463C9.99992 16.4463 9.69501 16.3298 9.45948 16.1192L6.28215 12.9418C6.08774 12.7087 5.98754 12.4113 6.00124 12.1081C6.01494 11.8048 6.14155 11.5177 6.3562 11.303C6.57084 11.0884 6.85799 10.9618 7.16123 10.9481C7.46447 10.9344 7.76187 11.0346 7.995 11.229L10.333 13.567L15.994 8.29143C16.2319 8.08824 16.5389 7.98454 16.8513 8.00187C17.1636 8.0192 17.4573 8.15625 17.6712 8.38451C17.8851 8.61277 18.0029 8.9147 17.9999 9.22753C17.997 9.54036 17.8736 9.84002 17.6555 10.0642L17.6726 10.0557Z' fill='white'/%3E%3C/svg%3E\")}:host([state=error]:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)):checked:hover,:host([hover]) :host([state=error]:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)):checked{background-color:var(--px-color-background-purpose-error-inverted);border-color:var(--px-color-border-purpose-error-inverted);box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-inverted), 0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-inverted)}:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)+label{color:var(--px-color-text-neutral-inverted)}:host([indeterminate][checked]) :is(:host(:not([variant=selectable-tag])) input){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8558_6622)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8558_6622'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")}:host([disabled]) :is(:host([indeterminate][checked]) :is(:host(:not([variant=selectable-tag])) input)){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8685_408)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='black' fill-opacity='0.12'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8685_408'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")}:host([inverted]) :is(:host([indeterminate][checked]) :is(:host(:not([variant=selectable-tag])) input)){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8685_6804)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='%235C2D91'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8685_6804'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")}:host([disabled]) :is(:host([inverted]) :is(:host([indeterminate][checked]) :is(:host(:not([variant=selectable-tag])) input))){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8685_6817)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='white' fill-opacity='0.08'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8685_6817'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")}:host([state=error]) :is(:host([inverted]) :is(:host([indeterminate][checked]) :is(:host(:not([variant=selectable-tag])) input))){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8685_6256)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8685_6256'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")}:host([state=error]) :is(:host([inverted]) :is(:host([indeterminate][checked]) :is(:host(:not([variant=selectable-tag])) input))):hover,:host([hover]) :is(:host([state=error]) :is(:host([inverted]) :is(:host([indeterminate][checked]) :is(:host(:not([variant=selectable-tag])) input)))){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8685_6804)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8685_6804'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")}.checkbox.selectable-tag{gap:0}.checkbox.selectable-tag #checkbox-container{gap:0}:host([variant=selectable-tag]){display:inline-flex}:host([variant=selectable-tag]) label{line-height:var(--px-line-height-ratio-l);vertical-align:middle;justify-content:center;align-items:center;gap:var(--px-spacing-2xs-mobile);background-color:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);box-shadow:0 0 0 var(--px-size-border-s) var(--px-color-border-neutral-default);border-radius:var(--px-radius-pill);border:none;transition:all .2s ease-in-out;display:inline-flex}:host([size=s]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);gap:var(--px-spacing-2xs-mobile)}:host([size=m]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-xs-mobile) var(--px-padding-s-mobile);gap:var(--px-spacing-xs-mobile)}:host([variant=selectable-tag]) input{appearance:none;margin:0}:host([variant=selectable-tag]) input:focus-visible+label{outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default);outline-offset:var(--px-focus-offset-mobile)}:is(:host([variant=selectable-tag]) input:hover,:host([variant=selectable-tag]) input.hover):not([disabled],[aria-disabled=true],.loading)+label{color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-border-brand-default);cursor:pointer}:host([variant=selectable-tag]) input:active:not([disabled],[aria-disabled=true],.loading)+label{background:var(--px-color-background-state-active-default);color:var(--px-color-text-state-active-inverted);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-border-state-active-default)}:host([variant=selectable-tag]) input:checked+label,:host([variant=selectable-tag]) input:checked+label:hover{background-color:var(--px-color-background-state-active-default);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-border-state-active-default);color:var(--px-color-text-state-active-inverted)}:host([variant=selectable-tag]) input[disabled]+label{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-background-state-disabled-default)}:host([variant=selectable-tag]):host([inverted]) label{background:var(--px-color-background-container-default-default);color:var(--px-color-text-brand-inverted);box-shadow:0 0 0 var(--px-size-border-s) var(--px-color-border-neutral-inverted)}:is(:host([variant=selectable-tag]):host([inverted]) input:hover,:host([variant=selectable-tag]):host([inverted]) input.hover):not([disabled],[aria-disabled=true])+label{color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-border-brand-inverted)}:host([variant=selectable-tag]):host([inverted]) input:active:not([disabled],[aria-disabled=true])+label{background:var(--px-color-background-state-active-inverted);color:var(--px-color-text-state-active-default);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-border-state-active-inverted)}:host([variant=selectable-tag]):host([inverted]) input:checked+label,:host([variant=selectable-tag]):host([inverted]) input:checked+label:hover{background-color:var(--px-color-background-state-active-inverted);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-border-state-active-inverted);color:var(--px-color-text-state-active-default)}:host([variant=selectable-tag]):host([inverted]) input[disabled]+label{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-background-state-disabled-inverted)}:host([variant=selectable-tag]):host([inverted]) input:focus-visible+label{outline-color:var(--px-color-border-focus-outline-inverted)}@media screen and (width>=48rem){.checkbox{gap:var(--px-spacing-xs-tablet)}.checkbox ::slotted([slot=error-text]){font-size:var(--px-text-size-body-m-tablet)}#checkbox-container{gap:var(--px-spacing-s-tablet)}:host(:not([variant=selectable-tag])) input:focus-visible,:host([variant=selectable-tag]) input:focus-visible+label{outline-width:var(--px-focus-outline-tablet);outline-offset:var(--px-focus-offset-tablet)}label{font-size:var(--px-text-size-label-m-tablet)}:host([variant=selectable-tag]) label{padding:var(--px-padding-2xs-tablet) var(--px-padding-xs-tablet);gap:var(--px-spacing-2xs-tablet)}:host([size=s]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-2xs-tablet) var(--px-padding-xs-tablet);gap:var(--px-spacing-2xs-tablet)}:host([size=m]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-xs-tablet) var(--px-padding-s-tablet);gap:var(--px-spacing-xs-tablet)}}@media screen and (width>=64.0625rem){.checkbox{gap:var(--px-spacing-xs-laptop)}.checkbox ::slotted([slot=error-text]){font-size:var(--px-text-size-body-m-laptop)}#checkbox-container{gap:var(--px-spacing-s-laptop)}:host(:not([variant=selectable-tag])) input:focus-visible,:host([variant=selectable-tag]) input:focus-visible+label{outline-width:var(--px-focus-outline-laptop);outline-offset:var(--px-focus-offset-laptop)}label{font-size:var(--px-text-size-label-m-laptop)}:host([variant=selectable-tag]) label{padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop);gap:var(--px-spacing-2xs-laptop)}:host([size=s]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop);gap:var(--px-spacing-2xs-laptop)}:host([size=m]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-xs-laptop) var(--px-padding-s-laptop);gap:var(--px-spacing-xs-laptop)}}@media screen and (width>=90.0625rem){.checkbox{gap:var(--px-spacing-xs-desktop)}.checkbox ::slotted([slot=error-text]){font-size:var(--px-text-size-body-m-desktop)}#checkbox-container{gap:var(--px-spacing-s-desktop)}:host(:not([variant=selectable-tag])) input:focus-visible,:host([variant=selectable-tag]) input:focus-visible+label{outline-width:var(--px-focus-outline-desktop);outline-offset:var(--px-focus-offset-desktop)}label{font-size:var(--px-text-size-label-m-desktop)}:host([variant=selectable-tag]) label{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-2xs-desktop)}:host([size=s]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-2xs-desktop)}:host([size=m]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-xs-desktop) var(--px-padding-s-desktop);gap:var(--px-spacing-xs-desktop)}}:host([inverted]) .checkbox ::slotted([slot=error-text]){color:var(--px-color-text-purpose-error-inverted)}@keyframes anim-pop{0%{transform:scale(0)}to{transform:scale(1)}}", r = new CSSStyleSheet();
4
- r.replaceSync(n);
5
- var i = [
3
+ var i = ":host{display:block}input{font-size:var(--px-font-size-base)}.checkbox{gap:var(--px-spacing-xs-mobile);font-family:var(--px-font-family);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);flex-direction:column;display:flex}.checkbox ::slotted([slot=error-text]){font-size:var(--px-text-size-body-m-mobile);color:var(--px-color-text-purpose-error-default)}.checkbox #checkbox-container{align-items:flex-start;gap:var(--px-spacing-s-mobile);display:flex}.all-slots-empty :is(.checkbox #checkbox-container){gap:0}.checkbox label{line-height:calc(var(--px-line-height-ratio-l) * 1rem);color:var(--px-color-text-neutral-default)}:host(:not([variant=selectable-tag])) input{appearance:none;border-radius:var(--px-radius-main);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default);width:var(--px-size-icon-m);height:var(--px-size-icon-m);flex-shrink:0;margin:0;transition:box-shadow .3s ease-out,background-color .3s;animation:.2s cubic-bezier(.9,-.13,.61,.99) .1s forwards anim-pop}:host(:not([variant=selectable-tag])) input:focus-visible{outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default);outline-offset:var(--px-focus-offset-mobile)}:host(:not([variant=selectable-tag])) input:checked{background-color:var(--px-color-background-state-active-default);border-color:var(--px-color-border-none-default);background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.6726 10.0557L11.1723 16.1192C10.9368 16.3298 10.6319 16.4463 10.3159 16.4463C9.99992 16.4463 9.69501 16.3298 9.45948 16.1192L6.28215 12.9418C6.08774 12.7087 5.98754 12.4113 6.00124 12.1081C6.01494 11.8048 6.14155 11.5177 6.3562 11.303C6.57084 11.0884 6.85799 10.9618 7.16123 10.9481C7.46447 10.9344 7.76187 11.0346 7.995 11.229L10.333 13.567L15.994 8.29143C16.2319 8.08824 16.5389 7.98454 16.8513 8.00187C17.1636 8.0192 17.4573 8.15625 17.6712 8.38451C17.8851 8.61277 18.0029 8.9147 17.9999 9.22753C17.997 9.54036 17.8736 9.84002 17.6555 10.0642L17.6726 10.0557Z' fill='white'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat}:host(:not([disabled])) :is(:host(:not([variant=selectable-tag])) input):hover,:host([hover]) :is(:host(:not([disabled])) :is(:host(:not([variant=selectable-tag])) input)){border:var(--px-size-border-l) solid var(--px-color-border-state-hover-default)}:host([checked]) :is(:host(:not([disabled])) :is(:host(:not([variant=selectable-tag])) input):hover,:host([hover]) :is(:host(:not([disabled])) :is(:host(:not([variant=selectable-tag])) input))){box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-default), 0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-default)}:host(:not([disabled])) :is(:host(:not([variant=selectable-tag])) input):hover{cursor:pointer}:host([disabled]) :is(:host(:not([variant=selectable-tag])) input){background-color:var(--px-color-background-state-disabled-default);border-color:var(--px-color-border-main-default)}:host([checked]) :is(:host([disabled]) :is(:host(:not([variant=selectable-tag])) input)){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.6726 10.0557L11.1723 16.1192C10.9368 16.3298 10.6319 16.4463 10.3159 16.4463C9.99992 16.4463 9.69501 16.3298 9.45948 16.1192L6.28215 12.9418C6.08774 12.7087 5.98754 12.4113 6.00124 12.1081C6.01494 11.8048 6.14155 11.5177 6.3562 11.303C6.57084 11.0884 6.85799 10.9618 7.16123 10.9481C7.46447 10.9344 7.76187 11.0346 7.995 11.229L10.333 13.567L15.994 8.29143C16.2319 8.08824 16.5389 7.98454 16.8513 8.00187C17.1636 8.0192 17.4573 8.15625 17.6712 8.38451C17.8851 8.61277 18.0029 8.9147 17.9999 9.22753C17.997 9.54036 17.8736 9.84002 17.6555 10.0642L17.6726 10.0557Z' fill='%23000' fill-opacity='0.12'/%3E%3C/svg%3E\")}:host([disabled]) :is(:host(:not([variant=selectable-tag])) input)+label{color:var(--px-color-text-state-disabled-default)}:host([state=error]:not([disabled])) :is(:host(:not([variant=selectable-tag])) input){border-color:var(--px-color-border-purpose-error-default)}:host([state=error]:not([disabled])) :is(:host(:not([variant=selectable-tag])) input):checked{background-color:var(--px-color-background-purpose-error-default)}:host([state=error]:not([disabled])) :is(:host(:not([variant=selectable-tag])) input):checked:hover,:host([hover]) :host([state=error]:not([disabled])) :is(:host(:not([variant=selectable-tag])) input):checked{background-color:var(--px-color-background-purpose-error-default);border-color:var(--px-color-border-purpose-error-default);box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-default), 0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-default)}:host([inverted]) :is(:host(:not([variant=selectable-tag])) input){border-color:var(--px-color-border-neutral-inverted)}:host([inverted]) :is(:host(:not([variant=selectable-tag])) input):focus-visible{outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) :is(:host(:not([variant=selectable-tag])) input):checked{background-color:var(--px-color-background-state-active-inverted);background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.6726 10.0557L11.1723 16.1192C10.9368 16.3298 10.6319 16.4463 10.3159 16.4463C9.99992 16.4463 9.69501 16.3298 9.45948 16.1192L6.28215 12.9418C6.08774 12.7087 5.98754 12.4113 6.00124 12.1081C6.01494 11.8048 6.14155 11.5177 6.3562 11.303C6.57084 11.0884 6.85799 10.9618 7.16123 10.9481C7.46447 10.9344 7.76187 11.0346 7.995 11.229L10.333 13.567L15.994 8.29143C16.2319 8.08824 16.5389 7.98454 16.8513 8.00187C17.1636 8.0192 17.4573 8.15625 17.6712 8.38451C17.8851 8.61277 18.0029 8.9147 17.9999 9.22753C17.997 9.54036 17.8736 9.84002 17.6555 10.0642L17.6726 10.0557Z' fill='%235C2D91'/%3E%3C/svg%3E\")}:host(:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)):hover,:host([hover]) :is(:host(:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input))){border-color:var(--px-color-border-state-hover-inverted)}:is(:host(:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)):hover,:host([hover]) :is(:host(:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)))):checked{box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-inverted), 0 0 0 var(--px-size-border-s) var(--px-color-border-state-hover-inverted)}:host([disabled]) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)){background-color:var(--px-color-background-state-disabled-inverted);border-color:var(--px-color-border-main-inverted)}:host([disabled]) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)):checked{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.6726 10.0557L11.1723 16.1192C10.9368 16.3298 10.6319 16.4463 10.3159 16.4463C9.99992 16.4463 9.69501 16.3298 9.45948 16.1192L6.28215 12.9418C6.08774 12.7087 5.98754 12.4113 6.00124 12.1081C6.01494 11.8048 6.14155 11.5177 6.3562 11.303C6.57084 11.0884 6.85799 10.9618 7.16123 10.9481C7.46447 10.9344 7.76187 11.0346 7.995 11.229L10.333 13.567L15.994 8.29143C16.2319 8.08824 16.5389 7.98454 16.8513 8.00187C17.1636 8.0192 17.4573 8.15625 17.6712 8.38451C17.8851 8.61277 18.0029 8.9147 17.9999 9.22753C17.997 9.54036 17.8736 9.84002 17.6555 10.0642L17.6726 10.0557Z' fill='white' fill-opacity='0.08'/%3E%3C/svg%3E\")}:host([disabled]) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input))+label{color:var(--px-color-text-state-disabled-inverted)}:host([state=error]:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)){border-color:var(--px-color-border-purpose-error-inverted)}:host([state=error]:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)):checked{background-color:var(--px-color-background-purpose-error-inverted);background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17.6726 10.0557L11.1723 16.1192C10.9368 16.3298 10.6319 16.4463 10.3159 16.4463C9.99992 16.4463 9.69501 16.3298 9.45948 16.1192L6.28215 12.9418C6.08774 12.7087 5.98754 12.4113 6.00124 12.1081C6.01494 11.8048 6.14155 11.5177 6.3562 11.303C6.57084 11.0884 6.85799 10.9618 7.16123 10.9481C7.46447 10.9344 7.76187 11.0346 7.995 11.229L10.333 13.567L15.994 8.29143C16.2319 8.08824 16.5389 7.98454 16.8513 8.00187C17.1636 8.0192 17.4573 8.15625 17.6712 8.38451C17.8851 8.61277 18.0029 8.9147 17.9999 9.22753C17.997 9.54036 17.8736 9.84002 17.6555 10.0642L17.6726 10.0557Z' fill='white'/%3E%3C/svg%3E\")}:host([state=error]:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)):checked:hover,:host([hover]) :host([state=error]:not([disabled])) :is(:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)):checked{background-color:var(--px-color-background-purpose-error-inverted);border-color:var(--px-color-border-purpose-error-inverted);box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-inverted), 0 0 0 var(--px-size-border-s) var(--px-color-border-purpose-error-inverted)}:host([inverted]) :is(:host(:not([variant=selectable-tag])) input)+label{color:var(--px-color-text-neutral-inverted)}:host([indeterminate][checked]) :is(:host(:not([variant=selectable-tag])) input){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8558_6622)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8558_6622'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")}:host([disabled]) :is(:host([indeterminate][checked]) :is(:host(:not([variant=selectable-tag])) input)){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8685_408)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='black' fill-opacity='0.12'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8685_408'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")}:host([inverted]) :is(:host([indeterminate][checked]) :is(:host(:not([variant=selectable-tag])) input)){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8685_6804)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='%235C2D91'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8685_6804'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")}:host([disabled]) :is(:host([inverted]) :is(:host([indeterminate][checked]) :is(:host(:not([variant=selectable-tag])) input))){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8685_6817)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='white' fill-opacity='0.08'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8685_6817'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")}:host([state=error]) :is(:host([inverted]) :is(:host([indeterminate][checked]) :is(:host(:not([variant=selectable-tag])) input))){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8685_6256)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8685_6256'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")}:host([state=error]) :is(:host([inverted]) :is(:host([indeterminate][checked]) :is(:host(:not([variant=selectable-tag])) input))):hover,:host([hover]) :is(:host([state=error]) :is(:host([inverted]) :is(:host([indeterminate][checked]) :is(:host(:not([variant=selectable-tag])) input)))){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='2' viewBox='0 0 12 2' fill='none'%3E%3Cg clip-path='url(%23clip0_8685_6804)'%3E%3Cpath d='M11 0H1C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2H11C11.5523 2 12 1.55228 12 1C12 0.447715 11.5523 0 11 0Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8685_6804'%3E%3Crect width='12' height='2' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")}.checkbox.selectable-tag{gap:0}.checkbox.selectable-tag #checkbox-container{gap:0}:host([variant=selectable-tag]){display:inline-flex}:host([variant=selectable-tag]) label{line-height:var(--px-line-height-ratio-l);vertical-align:middle;justify-content:center;align-items:center;gap:var(--px-spacing-2xs-mobile);background-color:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);box-shadow:0 0 0 var(--px-size-border-s) var(--px-color-border-neutral-default);border-radius:var(--px-radius-pill);border:none;transition:all .2s ease-in-out;display:inline-flex}:host([size=s]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);gap:var(--px-spacing-2xs-mobile)}:host([size=m]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-xs-mobile) var(--px-padding-s-mobile);gap:var(--px-spacing-xs-mobile)}:host([variant=selectable-tag]) input{appearance:none;margin:0}:host([variant=selectable-tag]) input:focus-visible+label{outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default);outline-offset:var(--px-focus-offset-mobile)}:is(:host([variant=selectable-tag]) input:hover,:host([variant=selectable-tag]) input.hover):not([disabled],[aria-disabled=true],.loading)+label{color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-border-brand-default);cursor:pointer}:host([variant=selectable-tag]) input:active:not([disabled],[aria-disabled=true],.loading)+label{background:var(--px-color-background-state-active-default);color:var(--px-color-text-state-active-inverted);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-border-state-active-default)}:host([variant=selectable-tag]) input:checked+label,:host([variant=selectable-tag]) input:checked+label:hover{background-color:var(--px-color-background-state-active-default);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-border-state-active-default);color:var(--px-color-text-state-active-inverted)}:host([variant=selectable-tag]) input[disabled]+label{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-background-state-disabled-default)}:host([variant=selectable-tag]):host([inverted]) label{background:var(--px-color-background-container-default-default);color:var(--px-color-text-brand-inverted);box-shadow:0 0 0 var(--px-size-border-s) var(--px-color-border-neutral-inverted)}:is(:host([variant=selectable-tag]):host([inverted]) input:hover,:host([variant=selectable-tag]):host([inverted]) input.hover):not([disabled],[aria-disabled=true])+label{color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-border-brand-inverted)}:host([variant=selectable-tag]):host([inverted]) input:active:not([disabled],[aria-disabled=true])+label{background:var(--px-color-background-state-active-inverted);color:var(--px-color-text-state-active-default);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-border-state-active-inverted)}:host([variant=selectable-tag]):host([inverted]) input:checked+label,:host([variant=selectable-tag]):host([inverted]) input:checked+label:hover{background-color:var(--px-color-background-state-active-inverted);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-border-state-active-inverted);color:var(--px-color-text-state-active-default)}:host([variant=selectable-tag]):host([inverted]) input[disabled]+label{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted);box-shadow:0 0 0 var(--px-size-border-m) var(--px-color-background-state-disabled-inverted)}:host([variant=selectable-tag]):host([inverted]) input:focus-visible+label{outline-color:var(--px-color-border-focus-outline-inverted)}@media screen and (width>=48rem){.checkbox{gap:var(--px-spacing-xs-tablet)}.checkbox ::slotted([slot=error-text]){font-size:var(--px-text-size-body-m-tablet)}#checkbox-container{gap:var(--px-spacing-s-tablet)}:host(:not([variant=selectable-tag])) input:focus-visible,:host([variant=selectable-tag]) input:focus-visible+label{outline-width:var(--px-focus-outline-tablet);outline-offset:var(--px-focus-offset-tablet)}label{font-size:var(--px-text-size-label-m-tablet)}:host([variant=selectable-tag]) label{padding:var(--px-padding-2xs-tablet) var(--px-padding-xs-tablet);gap:var(--px-spacing-2xs-tablet)}:host([size=s]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-2xs-tablet) var(--px-padding-xs-tablet);gap:var(--px-spacing-2xs-tablet)}:host([size=m]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-xs-tablet) var(--px-padding-s-tablet);gap:var(--px-spacing-xs-tablet)}}@media screen and (width>=64.0625rem){.checkbox{gap:var(--px-spacing-xs-laptop)}.checkbox ::slotted([slot=error-text]){font-size:var(--px-text-size-body-m-laptop)}#checkbox-container{gap:var(--px-spacing-s-laptop)}:host(:not([variant=selectable-tag])) input:focus-visible,:host([variant=selectable-tag]) input:focus-visible+label{outline-width:var(--px-focus-outline-laptop);outline-offset:var(--px-focus-offset-laptop)}label{font-size:var(--px-text-size-label-m-laptop)}:host([variant=selectable-tag]) label{padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop);gap:var(--px-spacing-2xs-laptop)}:host([size=s]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop);gap:var(--px-spacing-2xs-laptop)}:host([size=m]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-xs-laptop) var(--px-padding-s-laptop);gap:var(--px-spacing-xs-laptop)}}@media screen and (width>=90.0625rem){.checkbox{gap:var(--px-spacing-xs-desktop)}.checkbox ::slotted([slot=error-text]){font-size:var(--px-text-size-body-m-desktop)}#checkbox-container{gap:var(--px-spacing-s-desktop)}:host(:not([variant=selectable-tag])) input:focus-visible,:host([variant=selectable-tag]) input:focus-visible+label{outline-width:var(--px-focus-outline-desktop);outline-offset:var(--px-focus-offset-desktop)}label{font-size:var(--px-text-size-label-m-desktop)}:host([variant=selectable-tag]) label{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-2xs-desktop)}:host([size=s]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-2xs-desktop)}:host([size=m]) :is(:host([variant=selectable-tag]) label){padding:var(--px-padding-xs-desktop) var(--px-padding-s-desktop);gap:var(--px-spacing-xs-desktop)}}:host([inverted]) .checkbox ::slotted([slot=error-text]){color:var(--px-color-text-purpose-error-inverted)}@keyframes anim-pop{0%{transform:scale(0)}to{transform:scale(1)}}", a = new CSSStyleSheet();
4
+ a.replaceSync(i);
5
+ var o = [
6
6
  "",
7
7
  "default",
8
8
  "selectable-tag"
9
- ], a = ["", "error"], o = class extends e {
9
+ ], s = ["", "error"], c = class i extends e {
10
+ static {
11
+ this.template = t("<div class=\"checkbox\"><slot name=\"error-text\"></slot><div id=\"checkbox-container\"><input type=\"checkbox\"/><label><slot name=\"before\"></slot><slot name=\"label\"></slot></label></div></div>");
12
+ }
10
13
  static {
11
14
  this.nativeName = "input";
12
15
  }
@@ -14,7 +17,7 @@ var i = [
14
17
  this.accessorExclusions = ["size"];
15
18
  }
16
19
  constructor() {
17
- super(r), this.template = () => "<div class=\"checkbox\">\n <slot name=\"error-text\"></slot>\n <div id=\"checkbox-container\">\n <input type=\"checkbox\"/>\n <label><slot name=\"before\"></slot><slot name=\"label\"></slot></label>\n </div>\n </div>", this.shadowRoot.innerHTML = this.template(), this.internals = this.attachInternals?.();
20
+ super(a), r(this.shadowRoot, i.template), this.internals = this.attachInternals?.();
18
21
  }
19
22
  static get observedAttributes() {
20
23
  return [
@@ -39,10 +42,10 @@ var i = [
39
42
  attributeChangedCallback(e, t, n) {
40
43
  if (t !== n) switch (e) {
41
44
  case "state":
42
- this.updateAttribute(t, n, a, e), this.setupAriaDescribedBy(this.$slotErrorText, this.$errorTextSlot, "error-text");
45
+ this.updateAttribute(t, n, s, e), this.setupAriaDescribedBy(this.$slotErrorText, this.$errorTextSlot, "error-text");
43
46
  break;
44
47
  case "variant":
45
- this.updateAttribute(t, n, i, e);
48
+ this.updateAttribute(t, n, o, e);
46
49
  break;
47
50
  case "hover":
48
51
  this.$el.classList.toggle("hover");
@@ -50,12 +53,12 @@ var i = [
50
53
  default: super.attributeChangedCallback(e, t, n);
51
54
  }
52
55
  }
53
- updateAttribute(e, n, r, i) {
54
- if (!this.checkName(r, n)) {
55
- t(`"${n}" is not a valid ${i} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
56
+ updateAttribute(e, t, r, i) {
57
+ if (!this.checkName(r, t)) {
58
+ n(`"${t}" is not a valid ${i} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
56
59
  return;
57
60
  }
58
- e !== null && (i === "variant" ? this.$checkbox?.classList.toggle(e) : this.$el.classList.toggle(e)), n !== null && (i === "variant" ? this.$checkbox?.classList.toggle(n) : this.$el.classList.toggle(n));
61
+ e !== null && (i === "variant" ? this.$checkbox?.classList.toggle(e) : this.$el.classList.toggle(e)), t !== null && (i === "variant" ? this.$checkbox?.classList.toggle(t) : this.$el.classList.toggle(t));
59
62
  }
60
63
  formData() {
61
64
  let e = new FormData(), t = this.getAttribute("name");
@@ -124,6 +127,6 @@ var i = [
124
127
  this._updateAttribute("size", e);
125
128
  }
126
129
  };
127
- customElements.get("px-checkbox") || customElements.define("px-checkbox", o);
130
+ customElements.get("px-checkbox") || customElements.define("px-checkbox", c);
128
131
  //#endregion
129
- export { o as Checkbox, a as checkboxStateValues, i as checkboxVariantValues };
132
+ export { c as Checkbox, s as checkboxStateValues, o as checkboxVariantValues };
@@ -4,7 +4,7 @@
4
4
  "tags": [
5
5
  {
6
6
  "name": "px-checkbox",
7
- "description": "A checkbox component.\n---\n",
7
+ "description": "\n---\n",
8
8
  "attributes": [
9
9
  { "name": "state", "values": [] },
10
10
  { "name": "variant", "values": [] },
@@ -16,26 +16,6 @@
16
16
  "name": "name",
17
17
  "description": "The name of the checkbox.",
18
18
  "values": []
19
- },
20
- {
21
- "name": "value",
22
- "description": "The value of the checkbox.",
23
- "values": []
24
- },
25
- {
26
- "name": "checked",
27
- "description": "Whether the checkbox is checked.",
28
- "values": []
29
- },
30
- {
31
- "name": "disabled",
32
- "description": "Whether the checkbox is disabled.",
33
- "values": []
34
- },
35
- {
36
- "name": "required",
37
- "description": "Whether the checkbox is required.",
38
- "values": []
39
19
  }
40
20
  ],
41
21
  "references": []
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@proximus/lavender-checkbox",
4
- "version": "1.4.17-alpha.7",
4
+ "version": "1.4.17-alpha.8",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "px-checkbox",
11
- "description": "A checkbox component.\n\n---\n",
11
+ "description": "\n\n---\n",
12
12
  "doc-url": "",
13
13
  "attributes": [
14
14
  { "name": "state", "value": { "type": "string" } },
@@ -21,26 +21,6 @@
21
21
  "name": "name",
22
22
  "description": "The name of the checkbox.",
23
23
  "value": { "type": "string" }
24
- },
25
- {
26
- "name": "value",
27
- "description": "The value of the checkbox.",
28
- "value": { "type": "string" }
29
- },
30
- {
31
- "name": "checked",
32
- "description": "Whether the checkbox is checked.",
33
- "value": { "type": "boolean" }
34
- },
35
- {
36
- "name": "disabled",
37
- "description": "Whether the checkbox is disabled.",
38
- "value": { "type": "boolean" }
39
- },
40
- {
41
- "name": "required",
42
- "description": "Whether the checkbox is required.",
43
- "value": { "type": "boolean" }
44
24
  }
45
25
  ],
46
26
  "events": [],
@@ -55,8 +35,7 @@
55
35
  { "name": "variant" },
56
36
  { "name": "state" },
57
37
  { "name": "inverted" },
58
- { "name": "size" },
59
- { "name": "innerHTML" }
38
+ { "name": "size" }
60
39
  ],
61
40
  "events": []
62
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-checkbox",
3
- "version": "1.4.17-alpha.7",
3
+ "version": "1.4.17-alpha.8",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",