@getflip/swirl-components 0.514.0 → 0.514.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/components.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-07-13T10:40:08",
2
+ "timestamp": "2026-07-16T09:39:47",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.43.1",
@@ -95655,10 +95655,10 @@
95655
95655
  },
95656
95656
  {
95657
95657
  "name": "variant",
95658
- "type": "\"flat\" | \"outline\"",
95658
+ "type": "\"flat\" | \"outline\" | \"translucent\"",
95659
95659
  "complexType": {
95660
95660
  "original": "SwirlToggleGroupVariant",
95661
- "resolved": "\"flat\" | \"outline\"",
95661
+ "resolved": "\"flat\" | \"outline\" | \"translucent\"",
95662
95662
  "references": {
95663
95663
  "SwirlToggleGroupVariant": {
95664
95664
  "location": "local",
@@ -95686,6 +95686,10 @@
95686
95686
  {
95687
95687
  "value": "outline",
95688
95688
  "type": "string"
95689
+ },
95690
+ {
95691
+ "value": "translucent",
95692
+ "type": "string"
95689
95693
  }
95690
95694
  ],
95691
95695
  "optional": true,
@@ -98586,7 +98590,7 @@
98586
98590
  "path": "src/components/swirl-toast-provider/swirl-toast-provider.tsx"
98587
98591
  },
98588
98592
  "src/components/swirl-toggle-group/swirl-toggle-group.tsx::SwirlToggleGroupVariant": {
98589
- "declaration": "export type SwirlToggleGroupVariant = \"flat\" | \"outline\";",
98593
+ "declaration": "export type SwirlToggleGroupVariant = \"flat\" | \"outline\" | \"translucent\";",
98590
98594
  "docstring": "",
98591
98595
  "path": "src/components/swirl-toggle-group/swirl-toggle-group.tsx"
98592
98596
  },
@@ -3,7 +3,7 @@
3
3
  var index = require('./index-DfC2lanl.js');
4
4
  var index$1 = require('./index-DcAhLZUH.js');
5
5
 
6
- const swirlToggleButtonCss = () => `:host{display:inline-block}:host *{box-sizing:border-box}.button{display:inline-flex;gap:var(--s-space-8);width:100%;padding:0.375rem var(--s-space-8);justify-content:center;align-items:center;border:none;border-radius:0.375rem;color:var(--s-text-default);background-color:var(--s-surface-sunken-default);font:inherit;font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-lg);text-decoration:none;cursor:pointer}.button:hover{background-color:var(--s-state-hovered)}.button:active{background-color:var(--s-state-pressed)}.button:focus:not(:focus-visible){outline:none}.button:focus-visible{outline-color:var(--s-focus-default);outline-offset:var(--s-space-2)}.button.button--pressed{background-color:var(--s-surface-default);color:var(--s-text-highlight);box-shadow:var(--s-shadow-level-1)}.button.button--pressed .button__icon{color:var(--s-icon-highlight)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.button{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);gap:var(--s-space-4)}}.button__label{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis}.button__icon{width:1.5rem;height:1.5rem;color:var(--s-icon-default)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.button__icon{width:1.25rem;height:1.25rem}}`;
6
+ const swirlToggleButtonCss = () => `:host{display:inline-block}:host *{box-sizing:border-box}.button{display:inline-flex;gap:var(--s-space-8);width:100%;padding:0.375rem var(--s-space-8);justify-content:center;align-items:center;border:none;border-radius:0.375rem;color:var(--s-text-default);background-color:transparent;font:inherit;font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-lg);text-decoration:none;cursor:pointer}.button:hover{background-color:var(--s-state-hovered)}.button:active{background-color:var(--s-state-pressed)}.button:focus:not(:focus-visible){outline:none}.button:focus-visible{outline-color:var(--s-focus-default);outline-offset:var(--s-space-2)}.button.button--pressed{background-color:var(--s-surface-default);color:var(--s-text-highlight);box-shadow:var(--s-shadow-level-1)}.button.button--pressed .button__icon{color:var(--s-icon-highlight)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.button{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);gap:var(--s-space-4)}}.button__label{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis}.button__icon{width:1.5rem;height:1.5rem;color:var(--s-icon-default)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.button__icon{width:1.25rem;height:1.25rem}}`;
7
7
 
8
8
  const SwirlToggleButton = class {
9
9
  constructor(hostRef) {
@@ -3,7 +3,7 @@
3
3
  var index = require('./index-DfC2lanl.js');
4
4
  var index$1 = require('./index-DcAhLZUH.js');
5
5
 
6
- const swirlToggleGroupCss = () => `:host{display:inline-block}:host *{box-sizing:border-box}.toggle-group{padding:var(--s-space-2);background-color:var(--s-surface-sunken-default);border-radius:var(--s-space-8);transition:box-shadow 0.3s}.toggle-group--elevated{box-shadow:var(--s-shadow-level-2)}.toggle-group--variant-outline{outline:var(--s-border-width-default) solid var(--s-border-strong);outline-offset:calc(var(--s-border-width-default) * -1)}`;
6
+ const swirlToggleGroupCss = () => `:host{display:inline-block}:host *{box-sizing:border-box}.toggle-group{padding:var(--s-space-2);background-color:var(--s-surface-sunken-default);border-radius:var(--s-space-8);transition:box-shadow 0.3s}.toggle-group--elevated{box-shadow:var(--s-shadow-level-2)}.toggle-group--variant-outline{outline:var(--s-border-width-default) solid var(--s-border-strong);outline-offset:calc(var(--s-border-width-default) * -1)}.toggle-group--variant-translucent{background-color:var(--s-surface-raised-default)}`;
7
7
 
8
8
  const SwirlToggleGroup = class {
9
9
  constructor(hostRef) {
@@ -62,7 +62,7 @@ const SwirlToggleGroup = class {
62
62
  const className = index$1.classnames("toggle-group", `toggle-group--variant-${this.variant}`, {
63
63
  "toggle-group--elevated": this.elevated,
64
64
  });
65
- return (index.h("swirl-stack", { key: 'd7d63a7cc5ae1b951bb5ecf1a92ae284cfd03ee9', class: className, "aria-label": this.swirlAriaLabel, spacing: "4", orientation: "horizontal", align: "center", role: "group" }, index.h("slot", { key: 'dab02efe5e0c516088452c64eab6fff4da4111f2', onSlotchange: this.onSlotChange })));
65
+ return (index.h("swirl-stack", { key: '5fb0cb75b1333d06c6f9878b1ce18e72bac29550', class: className, "aria-label": this.swirlAriaLabel, spacing: "4", orientation: "horizontal", align: "center", role: "group" }, index.h("slot", { key: '35700a56766159a8c5ff29b21294d23304da8011', onSlotchange: this.onSlotChange })));
66
66
  }
67
67
  get el() { return index.getElement(this); }
68
68
  static get watchers() { return {
@@ -16,7 +16,7 @@
16
16
  border: none;
17
17
  border-radius: 0.375rem;
18
18
  color: var(--s-text-default);
19
- background-color: var(--s-surface-sunken-default);
19
+ background-color: transparent;
20
20
  font: inherit;
21
21
  font-weight: var(--s-font-weight-medium);
22
22
  line-height: var(--s-line-height-lg);
@@ -21,3 +21,7 @@
21
21
  outline: var(--s-border-width-default) solid var(--s-border-strong);
22
22
  outline-offset: calc(var(--s-border-width-default) * -1);
23
23
  }
24
+
25
+ .toggle-group--variant-translucent {
26
+ background-color: var(--s-surface-raised-default);
27
+ }
@@ -55,7 +55,7 @@ export class SwirlToggleGroup {
55
55
  const className = classnames("toggle-group", `toggle-group--variant-${this.variant}`, {
56
56
  "toggle-group--elevated": this.elevated,
57
57
  });
58
- return (h("swirl-stack", { key: 'd7d63a7cc5ae1b951bb5ecf1a92ae284cfd03ee9', class: className, "aria-label": this.swirlAriaLabel, spacing: "4", orientation: "horizontal", align: "center", role: "group" }, h("slot", { key: 'dab02efe5e0c516088452c64eab6fff4da4111f2', onSlotchange: this.onSlotChange })));
58
+ return (h("swirl-stack", { key: '5fb0cb75b1333d06c6f9878b1ce18e72bac29550', class: className, "aria-label": this.swirlAriaLabel, spacing: "4", orientation: "horizontal", align: "center", role: "group" }, h("slot", { key: '35700a56766159a8c5ff29b21294d23304da8011', onSlotchange: this.onSlotChange })));
59
59
  }
60
60
  static get is() { return "swirl-toggle-group"; }
61
61
  static get encapsulation() { return "shadow"; }
@@ -95,7 +95,7 @@ export class SwirlToggleGroup {
95
95
  "mutable": false,
96
96
  "complexType": {
97
97
  "original": "SwirlToggleGroupVariant",
98
- "resolved": "\"flat\" | \"outline\"",
98
+ "resolved": "\"flat\" | \"outline\" | \"translucent\"",
99
99
  "references": {
100
100
  "SwirlToggleGroupVariant": {
101
101
  "location": "local",