@warp-ds/elements 2.3.2 → 2.4.0-next.2
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 +3851 -0
- package/dist/index.d.ts +859 -0
- 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/checkbox/checkbox.d.ts +66 -0
- package/dist/packages/checkbox/checkbox.js +2591 -0
- package/dist/packages/checkbox/checkbox.js.map +7 -0
- package/dist/packages/checkbox/checkbox.react.stories.d.ts +12 -0
- package/dist/packages/checkbox/checkbox.react.stories.js +10 -0
- package/dist/packages/checkbox/checkbox.stories.d.ts +11 -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/checkbox/react.js +20 -0
- package/dist/packages/checkbox/styles.d.ts +0 -0
- package/dist/packages/checkbox/styles.js +0 -0
- package/dist/packages/combobox/combobox.react.stories.d.ts +28 -0
- package/dist/packages/combobox/combobox.react.stories.js +90 -0
- package/dist/packages/combobox/combobox.stories.d.ts +19 -0
- package/dist/packages/combobox/combobox.stories.js +143 -0
- package/dist/packages/combobox/index.d.ts +91 -0
- package/dist/packages/combobox/index.js +2493 -0
- package/dist/packages/combobox/index.js.map +7 -0
- package/dist/packages/combobox/locales/da/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/da/messages.mjs +1 -0
- package/dist/packages/combobox/locales/en/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/en/messages.mjs +1 -0
- package/dist/packages/combobox/locales/fi/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/fi/messages.mjs +1 -0
- package/dist/packages/combobox/locales/nb/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/nb/messages.mjs +1 -0
- package/dist/packages/combobox/locales/sv/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/sv/messages.mjs +1 -0
- package/dist/packages/combobox/react.d.ts +7 -0
- package/dist/packages/combobox/react.js +17 -0
- package/dist/packages/combobox/styles.d.ts +1 -0
- package/dist/packages/combobox/styles.js +3 -0
- package/dist/packages/deadtoggle/dead-toggle.react.stories.d.ts +15 -0
- package/dist/packages/deadtoggle/dead-toggle.react.stories.js +34 -0
- package/dist/packages/deadtoggle/dead-toggle.stories.d.ts +14 -0
- package/dist/packages/deadtoggle/dead-toggle.stories.js +45 -0
- package/dist/packages/deadtoggle/dead-toggle.test.d.ts +1 -0
- package/dist/packages/deadtoggle/dead-toggle.test.js +9 -0
- package/dist/packages/deadtoggle/index.d.ts +17 -0
- package/dist/packages/deadtoggle/index.js +2547 -0
- package/dist/packages/deadtoggle/index.js.map +7 -0
- package/dist/packages/deadtoggle/react.d.ts +2 -0
- package/dist/packages/deadtoggle/react.js +11 -0
- package/dist/packages/pageindicator/index.d.ts +10 -0
- package/dist/packages/pageindicator/index.js +32 -0
- package/dist/packages/pageindicator/index.js.map +7 -0
- package/dist/packages/pageindicator/pageindicator.react.stories.d.ts +19 -0
- package/dist/packages/pageindicator/pageindicator.react.stories.js +20 -0
- package/dist/packages/pageindicator/pageindicator.stories.d.ts +32 -0
- package/dist/packages/pageindicator/pageindicator.stories.js +71 -0
- package/dist/packages/pageindicator/react.d.ts +2 -0
- package/dist/packages/pageindicator/react.js +11 -0
- package/dist/packages/pageindicator/style.d.ts +1 -0
- package/dist/packages/pageindicator/style.js +26 -0
- package/dist/packages/pagination/index.d.ts +32 -0
- package/dist/packages/pagination/index.js +2500 -0
- package/dist/packages/pagination/index.js.map +7 -0
- package/dist/packages/pagination/locales/da/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/da/messages.mjs +1 -0
- package/dist/packages/pagination/locales/en/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/en/messages.mjs +1 -0
- package/dist/packages/pagination/locales/fi/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/fi/messages.mjs +1 -0
- package/dist/packages/pagination/locales/nb/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/nb/messages.mjs +1 -0
- package/dist/packages/pagination/locales/sv/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/sv/messages.mjs +1 -0
- package/dist/packages/pagination/pagination.react.stories.d.ts +21 -0
- package/dist/packages/pagination/pagination.react.stories.js +45 -0
- package/dist/packages/pagination/pagination.stories.d.ts +14 -0
- package/dist/packages/pagination/pagination.stories.js +56 -0
- package/dist/packages/pagination/pagination.test.d.ts +1 -0
- package/dist/packages/pagination/pagination.test.js +76 -0
- package/dist/packages/pagination/react.d.ts +5 -0
- package/dist/packages/pagination/react.js +15 -0
- package/dist/packages/pagination/styles.d.ts +1 -0
- package/dist/packages/pagination/styles.js +2 -0
- package/dist/packages/radio/base-element.d.ts +46 -0
- package/dist/packages/radio/base-element.js +100 -0
- package/dist/packages/radio/custom-error-validator.d.ts +6 -0
- package/dist/packages/radio/custom-error-validator.js +22 -0
- package/dist/packages/radio/form-associated-element.d.ts +103 -0
- package/dist/packages/radio/form-associated-element.js +282 -0
- package/dist/packages/radio/host-styles.d.ts +1 -0
- package/dist/packages/radio/host-styles.js +12 -0
- package/dist/packages/radio/index.d.ts +2 -0
- package/dist/packages/radio/index.js +2 -0
- package/dist/packages/radio/invalid.d.ts +8 -0
- package/dist/packages/radio/invalid.js +5 -0
- package/dist/packages/radio/math.d.ts +1 -0
- package/dist/packages/radio/math.js +4 -0
- package/dist/packages/radio/radio-group-styles.d.ts +1 -0
- package/dist/packages/radio/radio-group-styles.js +59 -0
- package/dist/packages/radio/radio-group-styles.js.map +7 -0
- package/dist/packages/radio/radio-group.d.ts +72 -0
- package/dist/packages/radio/radio-group.js +2648 -0
- package/dist/packages/radio/radio-group.js.map +7 -0
- package/dist/packages/radio/radio-styles.d.ts +0 -0
- package/dist/packages/radio/radio-styles.js +1 -0
- package/dist/packages/radio/radio-styles.js.map +7 -0
- package/dist/packages/radio/radio.d.ts +38 -0
- package/dist/packages/radio/radio.js +2562 -0
- package/dist/packages/radio/radio.js.map +7 -0
- package/dist/packages/radio/radio.react.stories.d.ts +9 -0
- package/dist/packages/radio/radio.react.stories.js +10 -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/radio/react.d.ts +9 -0
- package/dist/packages/radio/react.js +22 -0
- package/dist/packages/radio/required-validator.d.ts +11 -0
- package/dist/packages/radio/required-validator.js +34 -0
- package/dist/packages/radio/slot.d.ts +20 -0
- package/dist/packages/radio/slot.js +71 -0
- package/dist/packages/radio/watch.d.ts +26 -0
- package/dist/packages/radio/watch.js +39 -0
- package/dist/packages/slider/Slider.d.ts +2 -0
- package/dist/packages/slider/Slider.js +8 -0
- package/dist/packages/slider/SliderThumb.d.ts +2 -0
- package/dist/packages/slider/SliderThumb.js +8 -0
- package/dist/packages/slider/index.d.ts +2 -0
- package/dist/packages/slider/index.js +2 -0
- package/dist/packages/slider/locales/da/messages.d.mts +1 -0
- package/dist/packages/slider/locales/da/messages.mjs +1 -0
- package/dist/packages/slider/locales/en/messages.d.mts +1 -0
- package/dist/packages/slider/locales/en/messages.mjs +1 -0
- package/dist/packages/slider/locales/fi/messages.d.mts +1 -0
- package/dist/packages/slider/locales/fi/messages.mjs +1 -0
- package/dist/packages/slider/locales/nb/messages.d.mts +1 -0
- package/dist/packages/slider/locales/nb/messages.mjs +1 -0
- package/dist/packages/slider/locales/sv/messages.d.mts +1 -0
- package/dist/packages/slider/locales/sv/messages.mjs +1 -0
- package/dist/packages/slider/oddbird-css-anchor-positioning.d.ts +2 -0
- package/dist/packages/slider/oddbird-css-anchor-positioning.js +3 -0
- package/dist/packages/slider/react.d.ts +8 -0
- package/dist/packages/slider/react.js +20 -0
- package/dist/packages/slider/slider-thumb.d.ts +63 -0
- package/dist/packages/slider/slider-thumb.js +2748 -0
- package/dist/packages/slider/slider-thumb.js.map +7 -0
- package/dist/packages/slider/slider.d.ts +55 -0
- package/dist/packages/slider/slider.js +2632 -0
- package/dist/packages/slider/slider.js.map +7 -0
- package/dist/packages/slider/slider.react.stories.d.ts +19 -0
- package/dist/packages/slider/slider.react.stories.js +140 -0
- package/dist/packages/slider/slider.stories.d.ts +21 -0
- package/dist/packages/slider/slider.stories.js +404 -0
- package/dist/packages/slider/slider.test.d.ts +4 -0
- package/dist/packages/slider/slider.test.js +111 -0
- package/dist/packages/slider/styles/w-slider-thumb.styles.d.ts +1 -0
- package/dist/packages/slider/styles/w-slider-thumb.styles.js +175 -0
- package/dist/packages/slider/styles/w-slider.styles.d.ts +1 -0
- package/dist/packages/slider/styles/w-slider.styles.js +148 -0
- package/dist/packages/slider/styles.d.ts +1 -0
- package/dist/packages/slider/styles.js +2 -0
- package/dist/packages/stepindicator/index.d.ts +37 -0
- package/dist/packages/stepindicator/index.js +2465 -0
- 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/da/messages.mjs +1 -0
- package/dist/packages/stepindicator/locales/en/messages.d.mts +1 -0
- package/dist/packages/stepindicator/locales/en/messages.mjs +1 -0
- package/dist/packages/stepindicator/locales/fi/messages.d.mts +1 -0
- package/dist/packages/stepindicator/locales/fi/messages.mjs +1 -0
- package/dist/packages/stepindicator/locales/nb/messages.d.mts +1 -0
- package/dist/packages/stepindicator/locales/nb/messages.mjs +1 -0
- package/dist/packages/stepindicator/locales/sv/messages.d.mts +1 -0
- package/dist/packages/stepindicator/locales/sv/messages.mjs +1 -0
- package/dist/packages/stepindicator/react.d.ts +3 -0
- package/dist/packages/stepindicator/react.js +16 -0
- package/dist/packages/stepindicator/stepindicator.react.stories.d.ts +15 -0
- package/dist/packages/stepindicator/stepindicator.react.stories.js +112 -0
- package/dist/packages/stepindicator/stepindicator.stories.d.ts +12 -0
- package/dist/packages/stepindicator/stepindicator.stories.js +172 -0
- package/dist/packages/stepindicator/styles.d.ts +1 -0
- package/dist/packages/stepindicator/styles.js +2 -0
- package/dist/packages/switch/index.d.ts +23 -0
- package/dist/packages/switch/index.js +2456 -0
- package/dist/packages/switch/index.js.map +7 -0
- package/dist/packages/switch/react.d.ts +5 -0
- package/dist/packages/switch/react.js +15 -0
- package/dist/packages/switch/styles.d.ts +1 -0
- package/dist/packages/switch/styles.js +2 -0
- package/dist/packages/switch/switch.react.stories.d.ts +15 -0
- package/dist/packages/switch/switch.react.stories.js +29 -0
- package/dist/packages/switch/switch.stories.d.ts +9 -0
- package/dist/packages/switch/switch.stories.js +35 -0
- package/dist/packages/switch/switch.test.d.ts +1 -0
- package/dist/packages/switch/switch.test.js +40 -0
- package/dist/packages/tabs/index.d.ts +4 -0
- package/dist/packages/tabs/index.js +3 -0
- package/dist/packages/tabs/react.d.ts +12 -0
- package/dist/packages/tabs/react.js +31 -0
- package/dist/packages/tabs/styles.d.ts +1 -0
- package/dist/packages/tabs/styles.js +2 -0
- package/dist/packages/tabs/tab-panel.d.ts +20 -0
- package/dist/packages/tabs/tab-panel.js +51 -0
- package/dist/packages/tabs/tab.d.ts +18 -0
- package/dist/packages/tabs/tab.js +2464 -0
- package/dist/packages/tabs/tab.js.map +7 -0
- package/dist/packages/tabs/tabs.d.ts +40 -0
- package/dist/packages/tabs/tabs.js +2448 -0
- package/dist/packages/tabs/tabs.js.map +7 -0
- package/dist/packages/tabs/tabs.react.stories.d.ts +15 -0
- package/dist/packages/tabs/tabs.react.stories.js +51 -0
- package/dist/packages/tabs/tabs.stories.d.ts +11 -0
- package/dist/packages/tabs/tabs.stories.js +93 -0
- 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/textarea/textarea.js +2475 -0
- 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/toggle-styles.d.ts +1 -0
- package/dist/packages/toggle-styles.js +108 -0
- package/dist/setup-tests.d.ts +1 -0
- package/dist/setup-tests.js +1 -0
- package/dist/web-types.json +984 -1
- package/package.json +78 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import './index.js';
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Components/Step Indicator',
|
|
5
|
+
component: 'w-step-indicator',
|
|
6
|
+
argTypes: {
|
|
7
|
+
horizontal: {
|
|
8
|
+
control: { type: 'boolean' },
|
|
9
|
+
description: 'Display steps in horizontal layout',
|
|
10
|
+
defaultValue: false,
|
|
11
|
+
},
|
|
12
|
+
right: {
|
|
13
|
+
control: { type: 'boolean' },
|
|
14
|
+
description: 'Align steps to the right (vertical layout only)',
|
|
15
|
+
defaultValue: false,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
export const Default = {
|
|
21
|
+
args: {
|
|
22
|
+
horizontal: false,
|
|
23
|
+
right: false,
|
|
24
|
+
},
|
|
25
|
+
render: (args) => html `
|
|
26
|
+
<w-step-indicator ?horizontal=${args.horizontal} ?right=${args.right}>
|
|
27
|
+
<w-step completed>
|
|
28
|
+
<h3>Step 1: Account Setup</h3>
|
|
29
|
+
<p>Create your account and verify your email address.</p>
|
|
30
|
+
</w-step>
|
|
31
|
+
<w-step active>
|
|
32
|
+
<h3>Step 2: Profile Information</h3>
|
|
33
|
+
<p>Fill in your personal details and preferences.</p>
|
|
34
|
+
</w-step>
|
|
35
|
+
<w-step>
|
|
36
|
+
<h3>Step 3: Payment Method</h3>
|
|
37
|
+
<p>Add a payment method to complete your registration.</p>
|
|
38
|
+
</w-step>
|
|
39
|
+
<w-step>
|
|
40
|
+
<h3>Step 4: Confirmation</h3>
|
|
41
|
+
<p>Review and confirm your information.</p>
|
|
42
|
+
</w-step>
|
|
43
|
+
</w-step-indicator>
|
|
44
|
+
`,
|
|
45
|
+
};
|
|
46
|
+
export const Horizontal = {
|
|
47
|
+
args: {
|
|
48
|
+
horizontal: true,
|
|
49
|
+
right: false,
|
|
50
|
+
},
|
|
51
|
+
render: (args) => html `
|
|
52
|
+
<w-step-indicator ?horizontal=${args.horizontal} ?right=${args.right}>
|
|
53
|
+
<w-step completed>
|
|
54
|
+
<h4>Setup</h4>
|
|
55
|
+
<p>Account created</p>
|
|
56
|
+
</w-step>
|
|
57
|
+
<w-step completed>
|
|
58
|
+
<h4>Profile</h4>
|
|
59
|
+
<p>Information added</p>
|
|
60
|
+
</w-step>
|
|
61
|
+
<w-step active>
|
|
62
|
+
<h4>Payment</h4>
|
|
63
|
+
<p>Add payment method</p>
|
|
64
|
+
</w-step>
|
|
65
|
+
<w-step>
|
|
66
|
+
<h4>Done</h4>
|
|
67
|
+
<p>Complete setup</p>
|
|
68
|
+
</w-step>
|
|
69
|
+
</w-step-indicator>
|
|
70
|
+
`,
|
|
71
|
+
};
|
|
72
|
+
export const RightAligned = {
|
|
73
|
+
args: {
|
|
74
|
+
horizontal: false,
|
|
75
|
+
right: true,
|
|
76
|
+
},
|
|
77
|
+
render: (args) => html `
|
|
78
|
+
<w-step-indicator ?horizontal=${args.horizontal} ?right=${args.right}>
|
|
79
|
+
<w-step completed>
|
|
80
|
+
<h3>Order Placed</h3>
|
|
81
|
+
<p>Your order has been received and is being processed.</p>
|
|
82
|
+
<small>2:34 PM</small>
|
|
83
|
+
</w-step>
|
|
84
|
+
<w-step completed>
|
|
85
|
+
<h3>Payment Confirmed</h3>
|
|
86
|
+
<p>Payment has been successfully processed.</p>
|
|
87
|
+
<small>2:35 PM</small>
|
|
88
|
+
</w-step>
|
|
89
|
+
<w-step active>
|
|
90
|
+
<h3>Preparing for Shipment</h3>
|
|
91
|
+
<p>Your items are being prepared for shipment.</p>
|
|
92
|
+
</w-step>
|
|
93
|
+
<w-step>
|
|
94
|
+
<h3>Shipped</h3>
|
|
95
|
+
<p>Your order is on its way!</p>
|
|
96
|
+
</w-step>
|
|
97
|
+
</w-step-indicator>
|
|
98
|
+
`,
|
|
99
|
+
};
|
|
100
|
+
export const SimpleSteps = {
|
|
101
|
+
render: () => html `
|
|
102
|
+
<w-step-indicator>
|
|
103
|
+
<w-step completed>
|
|
104
|
+
<strong>Step 1</strong>
|
|
105
|
+
</w-step>
|
|
106
|
+
<w-step completed>
|
|
107
|
+
<strong>Step 2</strong>
|
|
108
|
+
</w-step>
|
|
109
|
+
<w-step active>
|
|
110
|
+
<strong>Step 3</strong>
|
|
111
|
+
</w-step>
|
|
112
|
+
<w-step>
|
|
113
|
+
<strong>Step 4</strong>
|
|
114
|
+
</w-step>
|
|
115
|
+
<w-step>
|
|
116
|
+
<strong>Step 5</strong>
|
|
117
|
+
</w-step>
|
|
118
|
+
</w-step-indicator>
|
|
119
|
+
`,
|
|
120
|
+
};
|
|
121
|
+
export const SimpleHorizontal = {
|
|
122
|
+
render: () => html `
|
|
123
|
+
<w-step-indicator horizontal>
|
|
124
|
+
<w-step completed>
|
|
125
|
+
<strong>Start</strong>
|
|
126
|
+
</w-step>
|
|
127
|
+
<w-step completed>
|
|
128
|
+
<strong>Progress</strong>
|
|
129
|
+
</w-step>
|
|
130
|
+
<w-step active>
|
|
131
|
+
<strong>Current</strong>
|
|
132
|
+
</w-step>
|
|
133
|
+
<w-step>
|
|
134
|
+
<strong>Next</strong>
|
|
135
|
+
</w-step>
|
|
136
|
+
<w-step>
|
|
137
|
+
<strong>End</strong>
|
|
138
|
+
</w-step>
|
|
139
|
+
</w-step-indicator>
|
|
140
|
+
`,
|
|
141
|
+
};
|
|
142
|
+
export const AllCompleted = {
|
|
143
|
+
render: () => html `
|
|
144
|
+
<w-step-indicator>
|
|
145
|
+
<w-step completed>
|
|
146
|
+
<h3>Registration</h3>
|
|
147
|
+
<p>Account successfully created</p>
|
|
148
|
+
</w-step>
|
|
149
|
+
<w-step completed>
|
|
150
|
+
<h3>Verification</h3>
|
|
151
|
+
<p>Email address verified</p>
|
|
152
|
+
</w-step>
|
|
153
|
+
<w-step completed>
|
|
154
|
+
<h3>Setup</h3>
|
|
155
|
+
<p>Profile information completed</p>
|
|
156
|
+
</w-step>
|
|
157
|
+
<w-step completed>
|
|
158
|
+
<h3>Welcome</h3>
|
|
159
|
+
<p>You're all set to get started!</p>
|
|
160
|
+
</w-step>
|
|
161
|
+
</w-step-indicator>
|
|
162
|
+
`,
|
|
163
|
+
};
|
|
164
|
+
export const MinimalExample = {
|
|
165
|
+
render: () => html `
|
|
166
|
+
<w-step-indicator>
|
|
167
|
+
<w-step completed>First</w-step>
|
|
168
|
+
<w-step active>Second</w-step>
|
|
169
|
+
<w-step>Third</w-step>
|
|
170
|
+
</w-step-indicator>
|
|
171
|
+
`,
|
|
172
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const styles = css `*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.text-center{text-align:center}.text-right{text-align:right}.border-2{border-width:2px}.rounded-full{border-radius:9999px}.flex{display:flex}.grid{display:grid}.flex-1{flex:1}.gap-x-16{column-gap:1.6rem}.gap-y-16{row-gap:1.6rem}.row-span-2{grid-row:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.row-start-1{grid-row-start:1}.row-start-2{grid-row-start:2}.col-start-2{grid-column-start:2}.grid-flow-col{grid-auto-flow:column}.grid-rows-\\[20px_auto\\]{grid-template-rows:20px auto}.grid-rows-\\[auto_20px\\]{grid-template-rows:auto 20px}.grid-cols-\\[1fr_20px_1fr\\]{grid-template-columns:1fr 20px 1fr}.grid-cols-\\[1fr_20px\\]{grid-template-columns:1fr 20px}.grid-cols-\\[20px_1fr\\]{grid-template-columns:20px 1fr}.items-center{align-items:center}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.s-icon-inverted{color:var(--w-s-color-icon-inverted)}.s-border{border-color:var(--w-s-color-border)}.s-border-primary{border-color:var(--w-s-color-border-primary)}.h-2{height:.2rem}.h-20{height:2rem}.h-full{height:100%}.w-2{width:.2rem}.w-20{width:2rem}.w-full{width:100%}.last\\:mb-0:last-child{margin-bottom:0}.px-16{padding-left:1.6rem;padding-right:1.6rem}.pb-0{padding-bottom:0}.pb-32{padding-bottom:3.2rem}.invisible{visibility:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare const WarpSwitch_base: import("@open-wc/form-control").Constructor<import("@open-wc/form-control").FormControlInterface> & typeof LitElement;
|
|
3
|
+
export declare class WarpSwitch extends WarpSwitch_base {
|
|
4
|
+
#private;
|
|
5
|
+
name: string;
|
|
6
|
+
value: string;
|
|
7
|
+
checked: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
static styles: import("lit").CSSResult[];
|
|
10
|
+
/** @internal */
|
|
11
|
+
get _baseClasses(): string;
|
|
12
|
+
/** @internal */
|
|
13
|
+
get _trackClasses(): string;
|
|
14
|
+
/** @internal */
|
|
15
|
+
get _handleClasses(): string;
|
|
16
|
+
/** @internal */
|
|
17
|
+
_handleClick(): void;
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
willUpdate(changedProperties: any): void;
|
|
20
|
+
resetFormControl(): void;
|
|
21
|
+
render(): import("lit").TemplateResult<1>;
|
|
22
|
+
}
|
|
23
|
+
export {};
|