@warp-ds/elements 2.3.0-next.3 → 2.3.0-next.30
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/custom-elements.json +1139 -144
- package/dist/index.d.ts +413 -34
- package/dist/packages/affix/index.js.map +2 -2
- package/dist/packages/affix/react.d.ts +1 -1
- package/dist/packages/alert/index.js.map +2 -2
- package/dist/packages/alert/react.d.ts +1 -1
- package/dist/packages/attention/attention.stories.js +4 -1
- package/dist/packages/attention/index.js +58 -22
- package/dist/packages/attention/index.js.map +3 -3
- package/dist/packages/attention/react.d.ts +1 -1
- package/dist/packages/attention/styles.js +1 -1
- package/dist/packages/badge/index.js.map +2 -2
- package/dist/packages/badge/react.d.ts +1 -1
- package/dist/packages/box/index.js.map +2 -2
- package/dist/packages/box/react.d.ts +1 -1
- package/dist/packages/breadcrumbs/index.js.map +2 -2
- package/dist/packages/breadcrumbs/react.d.ts +1 -1
- package/dist/packages/button/button.react.stories.d.ts +1 -1
- package/dist/packages/button/button.stories.d.ts +4 -4
- package/dist/packages/button/button.stories.js +4 -4
- package/dist/packages/button/button.test.js +30 -1
- package/dist/packages/button/index.d.ts +2 -0
- package/dist/packages/button/index.js +52 -16
- package/dist/packages/button/index.js.map +3 -3
- package/dist/packages/button/react.d.ts +1 -1
- package/dist/packages/card/index.js.map +2 -2
- package/dist/packages/card/react.d.ts +1 -1
- package/dist/packages/checkbox/checkbox-group.d.ts +10 -0
- package/dist/packages/checkbox/checkbox-group.js +7 -0
- package/dist/packages/checkbox/checkbox-group.js.map +7 -0
- package/dist/packages/{rip-and-tear-checkbox → checkbox}/checkbox.d.ts +2 -2
- package/dist/packages/{rip-and-tear-checkbox → checkbox}/checkbox.js +3 -4
- package/dist/packages/checkbox/checkbox.js.map +7 -0
- package/dist/packages/{rip-and-tear-checkbox → checkbox}/checkbox.stories.d.ts +3 -0
- package/dist/packages/checkbox/checkbox.stories.js +25 -0
- package/dist/packages/checkbox/index.d.ts +2 -0
- package/dist/packages/checkbox/index.js +2 -0
- package/dist/packages/checkbox/react.d.ts +7 -0
- package/dist/packages/{rip-and-tear-checkbox → checkbox}/react.js +5 -0
- package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
- package/dist/packages/combobox/combobox.stories.d.ts +1 -0
- package/dist/packages/combobox/combobox.stories.js +29 -3
- package/dist/packages/combobox/index.d.ts +7 -1
- package/dist/packages/combobox/index.js +20 -19
- package/dist/packages/combobox/index.js.map +4 -4
- package/dist/packages/combobox/react.d.ts +1 -1
- package/dist/packages/combobox/styles.js +2 -1
- package/dist/packages/datepicker/datepicker.d.ts +1 -0
- package/dist/packages/datepicker/datepicker.js +35 -35
- package/dist/packages/datepicker/datepicker.js.map +3 -3
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +1 -1
- package/dist/packages/datepicker/datepicker.test.js +27 -0
- package/dist/packages/datepicker/react.d.ts +1 -1
- package/dist/packages/{dead-toggle → deadtoggle}/index.js +2 -3
- package/dist/packages/deadtoggle/index.js.map +7 -0
- package/dist/packages/{dead-toggle → deadtoggle}/react.d.ts +1 -1
- package/dist/packages/expandable/index.js.map +2 -2
- package/dist/packages/expandable/react.d.ts +1 -1
- package/dist/packages/link/index.d.ts +2 -8
- package/dist/packages/link/index.js +46 -10
- package/dist/packages/link/index.js.map +4 -4
- package/dist/packages/link/link.react.stories.d.ts +6 -3
- package/dist/packages/link/link.react.stories.js +27 -10
- package/dist/packages/link/link.stories.d.ts +5 -2
- package/dist/packages/link/link.stories.js +27 -10
- package/dist/packages/link/react.d.ts +1 -1
- package/dist/packages/link/styles.js +39 -3
- package/dist/packages/modal/index.js.map +2 -2
- package/dist/packages/modal/modal-header.js.map +2 -2
- package/dist/packages/modal/modal.stories.d.ts +3 -3
- package/dist/packages/modal/modal.stories.js +32 -32
- package/dist/packages/modal/react.d.ts +1 -1
- package/dist/packages/pageindicator/react.d.ts +1 -1
- package/dist/packages/pagination/index.js.map +2 -2
- package/dist/packages/pagination/react.d.ts +1 -1
- package/dist/packages/pill/index.js.map +2 -2
- package/dist/packages/pill/react.d.ts +1 -1
- package/dist/packages/radio/index.d.ts +2 -0
- package/dist/packages/radio/index.js +2 -0
- package/dist/packages/{rip-and-tear-radio → radio}/radio-group-styles.js.map +1 -1
- package/dist/packages/{rip-and-tear-radio → radio}/radio-group.js +7 -8
- package/dist/packages/radio/radio-group.js.map +7 -0
- package/dist/packages/{rip-and-tear-radio → radio}/radio.js +3 -4
- package/dist/packages/radio/radio.js.map +7 -0
- package/dist/packages/radio/radio.stories.d.ts +15 -0
- package/dist/packages/radio/radio.stories.js +3702 -0
- package/dist/packages/radio/radio.stories.js.map +7 -0
- package/dist/packages/{rip-and-tear-radio → radio}/react.d.ts +2 -2
- package/dist/packages/select/index.d.ts +26 -5
- package/dist/packages/select/index.js +17 -16
- package/dist/packages/select/index.js.map +3 -3
- package/dist/packages/select/react.d.ts +1 -1
- package/dist/packages/select/select.react.stories.d.ts +1 -1
- package/dist/packages/select/select.stories.d.ts +1 -1
- package/dist/packages/select/select.stories.js +3 -4
- package/dist/packages/select/select.test.js +30 -0
- package/dist/packages/slider/locales/da/messages.mjs +1 -0
- package/dist/packages/slider/locales/en/messages.mjs +1 -0
- package/dist/packages/slider/locales/fi/messages.mjs +1 -0
- package/dist/packages/slider/locales/nb/messages.mjs +1 -0
- package/dist/packages/slider/locales/sv/messages.mjs +1 -0
- package/dist/packages/slider/react.d.ts +2 -2
- package/dist/packages/slider/slider-thumb.d.ts +13 -7
- package/dist/packages/slider/slider-thumb.js +92 -49
- package/dist/packages/slider/slider-thumb.js.map +4 -4
- package/dist/packages/slider/slider.d.ts +12 -3
- package/dist/packages/slider/slider.js +109 -31
- package/dist/packages/slider/slider.js.map +4 -4
- package/dist/packages/slider/slider.react.stories.d.ts +1 -0
- package/dist/packages/slider/slider.react.stories.js +22 -0
- package/dist/packages/slider/slider.stories.d.ts +3 -0
- package/dist/packages/slider/slider.stories.js +240 -33
- package/dist/packages/slider/slider.test.js +28 -0
- package/dist/packages/slider/styles/w-slider-thumb.styles.js +24 -16
- package/dist/packages/slider/styles/w-slider.styles.js +65 -18
- package/dist/packages/{steps → stepindicator}/index.d.ts +3 -2
- package/dist/packages/{steps → stepindicator}/index.js +8 -8
- package/dist/packages/stepindicator/index.js.map +7 -0
- package/dist/packages/stepindicator/locales/da/messages.d.mts +1 -0
- package/dist/packages/stepindicator/locales/en/messages.d.mts +1 -0
- package/dist/packages/stepindicator/locales/fi/messages.d.mts +1 -0
- package/dist/packages/stepindicator/locales/nb/messages.d.mts +1 -0
- package/dist/packages/stepindicator/locales/sv/messages.d.mts +1 -0
- package/dist/packages/stepindicator/react.d.ts +3 -0
- package/dist/packages/{steps → stepindicator}/react.js +2 -2
- package/dist/packages/{steps/steps.react.stories.d.ts → stepindicator/stepindicator.react.stories.d.ts} +4 -4
- package/dist/packages/{steps/steps.react.stories.js → stepindicator/stepindicator.react.stories.js} +11 -11
- package/dist/packages/{steps/steps.stories.js → stepindicator/stepindicator.stories.js} +16 -16
- package/dist/packages/switch/index.d.ts +10 -2
- package/dist/packages/switch/index.js +7 -6
- package/dist/packages/switch/index.js.map +4 -4
- package/dist/packages/switch/react.d.ts +1 -1
- package/dist/packages/switch/styles.js +1 -1
- package/dist/packages/switch/switch.react.stories.js +4 -4
- package/dist/packages/switch/switch.stories.js +6 -5
- package/dist/packages/switch/switch.test.d.ts +1 -0
- package/dist/packages/switch/switch.test.js +40 -0
- package/dist/packages/tabs/tab.js +4 -3
- package/dist/packages/tabs/tab.js.map +2 -2
- package/dist/packages/tabs/tabs.js +5 -5
- package/dist/packages/tabs/tabs.js.map +3 -3
- package/dist/packages/tabs/tabs.stories.d.ts +3 -0
- package/dist/packages/tabs/tabs.stories.js +16 -7
- package/dist/packages/textarea/index.d.ts +1 -0
- package/dist/packages/textarea/index.js +1 -0
- package/dist/packages/textarea/locales/da/messages.d.mts +1 -0
- package/dist/packages/textarea/locales/da/messages.mjs +1 -0
- package/dist/packages/textarea/locales/en/messages.d.mts +1 -0
- package/dist/packages/textarea/locales/en/messages.mjs +1 -0
- package/dist/packages/textarea/locales/fi/messages.d.mts +1 -0
- package/dist/packages/textarea/locales/fi/messages.mjs +1 -0
- package/dist/packages/textarea/locales/nb/messages.d.mts +1 -0
- package/dist/packages/textarea/locales/nb/messages.mjs +1 -0
- package/dist/packages/textarea/locales/sv/messages.d.mts +1 -0
- package/dist/packages/textarea/locales/sv/messages.mjs +1 -0
- package/dist/packages/textarea/react.d.ts +11 -0
- package/dist/packages/textarea/react.js +21 -0
- package/dist/packages/textarea/styles.d.ts +1 -0
- package/dist/packages/textarea/styles.js +2 -0
- package/dist/packages/textarea/textarea.d.ts +49 -0
- package/dist/packages/{rip-and-tear-radio/radio.stories.js → textarea/textarea.js} +35 -214
- package/dist/packages/textarea/textarea.js.map +7 -0
- package/dist/packages/textarea/textarea.react.stories.d.ts +33 -0
- package/dist/packages/textarea/textarea.react.stories.js +41 -0
- package/dist/packages/textarea/textarea.stories.d.ts +19 -0
- package/dist/packages/textarea/textarea.stories.js +85 -0
- package/dist/packages/textarea/textarea.test.d.ts +1 -0
- package/dist/packages/textarea/textarea.test.js +68 -0
- package/dist/packages/textfield/index.d.ts +6 -0
- package/dist/packages/textfield/index.js +21 -20
- package/dist/packages/textfield/index.js.map +3 -3
- package/dist/packages/textfield/react.d.ts +1 -1
- package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
- package/dist/packages/textfield/textfield.stories.d.ts +1 -0
- package/dist/packages/textfield/textfield.stories.js +17 -0
- package/dist/packages/toggle-styles.js +2 -3
- package/dist/web-types.json +473 -30
- package/package.json +37 -31
- package/dist/packages/dead-toggle/index.js.map +0 -7
- package/dist/packages/rip-and-tear-checkbox/checkbox.js.map +0 -7
- package/dist/packages/rip-and-tear-checkbox/checkbox.stories.js +0 -11
- package/dist/packages/rip-and-tear-checkbox/index.d.ts +0 -1
- package/dist/packages/rip-and-tear-checkbox/index.js +0 -4
- package/dist/packages/rip-and-tear-checkbox/react.d.ts +0 -5
- package/dist/packages/rip-and-tear-radio/index.d.ts +0 -1
- package/dist/packages/rip-and-tear-radio/index.js +0 -6
- package/dist/packages/rip-and-tear-radio/radio-group.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/radio.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/radio.stories.d.ts +0 -8
- package/dist/packages/rip-and-tear-radio/radio.stories.js.map +0 -7
- package/dist/packages/steps/index.js.map +0 -7
- package/dist/packages/steps/react.d.ts +0 -3
- /package/dist/packages/{rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.d.ts → checkbox/checkbox.react.stories.d.ts} +0 -0
- /package/dist/packages/{rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.js → checkbox/checkbox.react.stories.js} +0 -0
- /package/dist/packages/{rip-and-tear-checkbox → checkbox}/styles.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-checkbox → checkbox}/styles.js +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/dead-toggle.react.stories.d.ts +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/dead-toggle.react.stories.js +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/dead-toggle.stories.d.ts +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/dead-toggle.stories.js +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/dead-toggle.test.d.ts +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/dead-toggle.test.js +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/index.d.ts +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/react.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/base-element.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/base-element.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/custom-error-validator.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/custom-error-validator.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/form-associated-element.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/form-associated-element.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/host-styles.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/host-styles.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/invalid.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/invalid.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/math.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/math.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/radio-group-styles.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/radio-group-styles.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/radio-group.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/radio-styles.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/radio-styles.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/radio-styles.js.map +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/radio.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio/rip-and-tear-radio.react.stories.d.ts → radio/radio.react.stories.d.ts} +0 -0
- /package/dist/packages/{rip-and-tear-radio/rip-and-tear-radio.react.stories.js → radio/radio.react.stories.js} +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/react.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/required-validator.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/required-validator.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/slot.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/slot.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/watch.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/watch.js +0 -0
- /package/dist/packages/{steps → slider}/locales/da/messages.d.mts +0 -0
- /package/dist/packages/{steps → slider}/locales/en/messages.d.mts +0 -0
- /package/dist/packages/{steps → slider}/locales/fi/messages.d.mts +0 -0
- /package/dist/packages/{steps → slider}/locales/nb/messages.d.mts +0 -0
- /package/dist/packages/{steps → slider}/locales/sv/messages.d.mts +0 -0
- /package/dist/packages/{steps → stepindicator}/locales/da/messages.mjs +0 -0
- /package/dist/packages/{steps → stepindicator}/locales/en/messages.mjs +0 -0
- /package/dist/packages/{steps → stepindicator}/locales/fi/messages.mjs +0 -0
- /package/dist/packages/{steps → stepindicator}/locales/nb/messages.mjs +0 -0
- /package/dist/packages/{steps → stepindicator}/locales/sv/messages.mjs +0 -0
- /package/dist/packages/{steps/steps.stories.d.ts → stepindicator/stepindicator.stories.d.ts} +0 -0
- /package/dist/packages/{steps → stepindicator}/styles.d.ts +0 -0
- /package/dist/packages/{steps → stepindicator}/styles.js +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WarpExpandable } from '.';
|
|
1
|
+
import { WarpExpandable } from './index.js';
|
|
2
2
|
export declare const Expandable: import("@lit/react").ReactWebComponent<WarpExpandable, {}>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
type ButtonVariant = 'primary' | 'secondary' | 'negative' | 'negativeQuiet' | 'utility' | '
|
|
3
|
-
declare const WarpLink_base: import("@open-wc/form-control").Constructor<import("@open-wc/form-control").FormControlInterface> & typeof LitElement;
|
|
2
|
+
type ButtonVariant = 'primary' | 'secondary' | 'negative' | 'negativeQuiet' | 'utility' | 'link' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet';
|
|
4
3
|
/**
|
|
5
4
|
* Buttons are used to perform actions, with different visuals for different needs.
|
|
6
5
|
*
|
|
7
6
|
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-link--docs)
|
|
8
7
|
*/
|
|
9
|
-
declare class WarpLink extends
|
|
8
|
+
declare class WarpLink extends LitElement {
|
|
10
9
|
static shadowRootOptions: {
|
|
11
10
|
delegatesFocus: boolean;
|
|
12
11
|
mode: ShadowRootMode;
|
|
@@ -15,18 +14,13 @@ declare class WarpLink extends WarpLink_base {
|
|
|
15
14
|
};
|
|
16
15
|
autofocus: boolean;
|
|
17
16
|
variant: ButtonVariant;
|
|
18
|
-
quiet: boolean;
|
|
19
17
|
small: boolean;
|
|
20
18
|
href: string;
|
|
21
19
|
disabled: boolean;
|
|
22
20
|
target: string;
|
|
23
21
|
rel: string;
|
|
24
22
|
fullWidth: boolean;
|
|
25
|
-
buttonClass: string;
|
|
26
|
-
name: string;
|
|
27
|
-
classes: string;
|
|
28
23
|
static styles: import("lit").CSSResult[];
|
|
29
|
-
constructor();
|
|
30
24
|
connectedCallback(): void;
|
|
31
25
|
firstUpdated(): void;
|
|
32
26
|
render(): import("lit").TemplateResult<1>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var u=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var e=(d,a,i,n)=>{for(var t=n>1?void 0:n?h(a,i):a,c=d.length-1,l;c>=0;c--)(l=d[c])&&(t=(n?l(a,i,t):l(t))||t);return n&&t&&u(a,i,t),t};import{html as m,LitElement as g}from"lit";import{property as o}from"lit/decorators.js";import{classMap as f}from"lit/directives/class-map.js";import{css as s}from"lit";var b=s`
|
|
2
2
|
*,
|
|
3
3
|
:before,
|
|
4
4
|
:after {
|
|
@@ -271,7 +271,7 @@ var N=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var h=(b,e,l,a
|
|
|
271
271
|
svg {
|
|
272
272
|
pointer-events: none;
|
|
273
273
|
}
|
|
274
|
-
`,
|
|
274
|
+
`,y=s`*, :before, :after {
|
|
275
275
|
--w-rotate: 0;
|
|
276
276
|
--w-rotate-x: 0;
|
|
277
277
|
--w-rotate-y: 0;
|
|
@@ -2437,7 +2437,7 @@ var N=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var h=(b,e,l,a
|
|
|
2437
2437
|
display: none
|
|
2438
2438
|
}
|
|
2439
2439
|
}
|
|
2440
|
-
`;import{css as
|
|
2440
|
+
`;import{css as w}from"lit";var v=w`.w-button,
|
|
2441
2441
|
.w-button--secondary {
|
|
2442
2442
|
/* Local scoped variables, given the default button (the secondary variant) as a default */
|
|
2443
2443
|
--_background: var(--background, var(--w-s-color-background));
|
|
@@ -2496,9 +2496,9 @@ var N=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var h=(b,e,l,a
|
|
|
2496
2496
|
|
|
2497
2497
|
/* Variants config */
|
|
2498
2498
|
.w-button--primary {
|
|
2499
|
-
--background: var(--w-
|
|
2500
|
-
--background-hover: var(--w-
|
|
2501
|
-
--background-active: var(--w-
|
|
2499
|
+
--background: var(--w-color-button-primary-background);
|
|
2500
|
+
--background-hover: var(--w-color-button-primary-background-hover);
|
|
2501
|
+
--background-active: var(--w-color-button-primary-background-active);
|
|
2502
2502
|
--color: var(--w-s-color-text-inverted);
|
|
2503
2503
|
--border-width: 0px;
|
|
2504
2504
|
}
|
|
@@ -2529,6 +2529,10 @@ var N=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var h=(b,e,l,a
|
|
|
2529
2529
|
--color: var(--w-s-color-text);
|
|
2530
2530
|
--border-width: 0px;
|
|
2531
2531
|
}
|
|
2532
|
+
.w-button--quiet {
|
|
2533
|
+
--background: transparent;
|
|
2534
|
+
--border-width: 0px;
|
|
2535
|
+
}
|
|
2532
2536
|
.w-button--overlay {
|
|
2533
2537
|
--background: var(--w-color-background);
|
|
2534
2538
|
--background-hover: var(--w-color-background-hover);
|
|
@@ -2570,6 +2574,38 @@ var N=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var h=(b,e,l,a
|
|
|
2570
2574
|
--font-weight: normal;
|
|
2571
2575
|
display: inline;
|
|
2572
2576
|
}
|
|
2577
|
+
.w-button--overlay {
|
|
2578
|
+
--background: var(--w-color-background);
|
|
2579
|
+
--background-hover: var(--w-color-background-hover);
|
|
2580
|
+
--background-active: var(--w-color-background-active);
|
|
2581
|
+
--color: var(--w-s-color-text);
|
|
2582
|
+
--border-radius: 9999px;
|
|
2583
|
+
--border-width: 0px;
|
|
2584
|
+
}
|
|
2585
|
+
.w-button--overlay-quiet {
|
|
2586
|
+
--background: transparent;
|
|
2587
|
+
--background-hover: var(--w-s-color-background-hover);
|
|
2588
|
+
--background-active: var(--w-s-color-background-active);
|
|
2589
|
+
--color: var(--w-s-color-text);
|
|
2590
|
+
--border-radius: 9999px;
|
|
2591
|
+
--border-width: 0px;
|
|
2592
|
+
}
|
|
2593
|
+
.w-button--overlay-inverted {
|
|
2594
|
+
--background: var(--w-s-color-background-inverted);
|
|
2595
|
+
--background-hover: var(--w-s-color-background-inverted-hover);
|
|
2596
|
+
--background-active: var(--w-s-color-background-inverted-active);
|
|
2597
|
+
--color: var(--w-s-color-text-inverted);
|
|
2598
|
+
--border-radius: 9999px;
|
|
2599
|
+
--border-width: 0px;
|
|
2600
|
+
}
|
|
2601
|
+
.w-button--overlay-inverted-quiet {
|
|
2602
|
+
--background: transparent;
|
|
2603
|
+
--background-hover: var(--w-s-color-background-inverted-hover);
|
|
2604
|
+
--background-active: var(--w-s-color-background-inverted-active);
|
|
2605
|
+
--color: var(--w-s-color-text-inverted);
|
|
2606
|
+
--border-radius: 9999px;
|
|
2607
|
+
--border-width: 0px;
|
|
2608
|
+
}
|
|
2573
2609
|
|
|
2574
2610
|
/* States config, selects --loading as well since loading is always supposed to be disabled */
|
|
2575
2611
|
.w-button:disabled,
|
|
@@ -2635,12 +2671,12 @@ var N=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var h=(b,e,l,a
|
|
|
2635
2671
|
100% {
|
|
2636
2672
|
background-position: 60px 0;
|
|
2637
2673
|
}
|
|
2638
|
-
}`;var
|
|
2639
|
-
${
|
|
2674
|
+
}`;var p=["primary","secondary","negative","negativeQuiet","utility","utilityQuiet","link","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"],r=class extends g{constructor(){super(...arguments);this.variant="secondary"}connectedCallback(){if(super.connectedCallback(),!p.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
|
|
2675
|
+
${p.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0)}render(){let i={"w-button":this.variant!=="link","w-button--primary":this.variant==="primary","w-button--secondary":this.variant==="secondary","w-button--negative":this.variant==="negative","w-button--utility":this.variant==="utility","w-button--quiet":this.variant==="quiet","w-button--negative-quiet":this.variant==="negativeQuiet","w-button--utility-quiet":this.variant==="utilityQuiet","w-button--overlay":this.variant==="overlay","w-button--overlay-inverted":this.variant==="overlayInverted","w-button--overlay-quiet":this.variant==="overlayQuiet","w-button--overlay-inverted-quiet":this.variant==="overlayInvertedQuiet","w-button--small":this.small,"w-button--full-width":this.fullWidth,"w-button--disabled":this.disabled};return m`<a
|
|
2640
2676
|
href=${this.href}
|
|
2641
2677
|
target=${this.target}
|
|
2642
2678
|
rel=${this.target==="_blank"?this.rel||"noopener":void 0}
|
|
2643
|
-
class=${
|
|
2679
|
+
class=${f(i)}>
|
|
2644
2680
|
<slot></slot>
|
|
2645
|
-
</a>`}};
|
|
2681
|
+
</a>`}};r.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},r.styles=[b,v],e([o({type:Boolean,reflect:!0})],r.prototype,"autofocus",2),e([o({reflect:!0})],r.prototype,"variant",2),e([o({type:Boolean,reflect:!0})],r.prototype,"small",2),e([o({reflect:!0})],r.prototype,"href",2),e([o({type:Boolean,reflect:!0})],r.prototype,"disabled",2),e([o({reflect:!0})],r.prototype,"target",2),e([o({reflect:!0})],r.prototype,"rel",2),e([o({attribute:"full-width",type:Boolean,reflect:!0})],r.prototype,"fullWidth",2);customElements.get("w-link")||customElements.define("w-link",r);export{r as WarpLink};
|
|
2646
2682
|
//# sourceMappingURL=index.js.map
|