@warp-ds/elements 2.3.0-next.17 → 2.3.0-next.19
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 +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/packages/slider/slider-thumb.js +1 -1
- package/dist/packages/slider/slider-thumb.js.map +2 -2
- package/dist/packages/steps/index.d.ts +3 -2
- package/dist/packages/steps/index.js +8 -8
- package/dist/packages/steps/index.js.map +3 -3
- package/dist/packages/steps/react.d.ts +2 -2
- package/dist/packages/steps/react.js +2 -2
- package/dist/packages/steps/steps.react.stories.d.ts +4 -4
- package/dist/packages/steps/steps.react.stories.js +11 -11
- package/dist/packages/steps/steps.stories.js +16 -16
- package/dist/web-types.json +2 -2
- package/package.json +11 -12
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WarpStep,
|
|
2
|
-
export declare const
|
|
1
|
+
import { WarpStep, WarpStepIndicator } from './index.js';
|
|
2
|
+
export declare const StepIndicator: import("@lit/react").ReactWebComponent<WarpStepIndicator, {}>;
|
|
3
3
|
export declare const Step: import("@lit/react").ReactWebComponent<WarpStep, {}>;
|
|
@@ -4,8 +4,8 @@ import React from 'react';
|
|
|
4
4
|
// decouple from CDN by providing a dummy class
|
|
5
5
|
class Component extends LitElement {
|
|
6
6
|
}
|
|
7
|
-
export const
|
|
8
|
-
tagName: 'w-
|
|
7
|
+
export const StepIndicator = createComponent({
|
|
8
|
+
tagName: 'w-step-indicator',
|
|
9
9
|
elementClass: Component,
|
|
10
10
|
react: React,
|
|
11
11
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
|
-
import {
|
|
2
|
+
import { StepIndicator } from './react';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import("@lit/react").ReactWebComponent<import(".").
|
|
5
|
+
component: import("@lit/react").ReactWebComponent<import(".").WarpStepIndicator, {}>;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
|
-
export type Story = StoryObj<typeof
|
|
8
|
+
export type Story = StoryObj<typeof StepIndicator>;
|
|
9
9
|
export declare const Default: Story;
|
|
10
10
|
export declare const Horizontal: Story;
|
|
11
11
|
export declare const RightAligned: Story;
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const SimpleStepIndicator: Story;
|
|
13
13
|
export declare const SimpleHorizontal: Story;
|
|
14
14
|
export declare const AllCompleted: Story;
|
|
15
15
|
export declare const MinimalExample: Story;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Step, StepIndicator } from './react';
|
|
3
3
|
export default {
|
|
4
|
-
title: 'Components/
|
|
5
|
-
component:
|
|
4
|
+
title: 'Components/Step Indicator',
|
|
5
|
+
component: StepIndicator,
|
|
6
6
|
};
|
|
7
7
|
export const Default = {
|
|
8
8
|
args: {
|
|
9
9
|
horizontal: false,
|
|
10
10
|
right: false,
|
|
11
11
|
},
|
|
12
|
-
render: (args) => (React.createElement(
|
|
12
|
+
render: (args) => (React.createElement(StepIndicator, { horizontal: args.horizontal, right: args.right },
|
|
13
13
|
React.createElement(Step, { completed: true },
|
|
14
14
|
React.createElement("h3", null, "Step 1: Account Setup"),
|
|
15
15
|
React.createElement("p", null, "Create your account and verify your email address.")),
|
|
@@ -28,7 +28,7 @@ export const Horizontal = {
|
|
|
28
28
|
horizontal: true,
|
|
29
29
|
right: false,
|
|
30
30
|
},
|
|
31
|
-
render: (args) => (React.createElement(
|
|
31
|
+
render: (args) => (React.createElement(StepIndicator, { horizontal: args.horizontal, right: args.right },
|
|
32
32
|
React.createElement(Step, { completed: true },
|
|
33
33
|
React.createElement("h4", null, "Setup"),
|
|
34
34
|
React.createElement("p", null, "Account created")),
|
|
@@ -47,7 +47,7 @@ export const RightAligned = {
|
|
|
47
47
|
horizontal: false,
|
|
48
48
|
right: true,
|
|
49
49
|
},
|
|
50
|
-
render: (args) => (React.createElement(
|
|
50
|
+
render: (args) => (React.createElement(StepIndicator, { horizontal: args.horizontal, right: args.right },
|
|
51
51
|
React.createElement(Step, { completed: true },
|
|
52
52
|
React.createElement("h3", null, "Order Placed"),
|
|
53
53
|
React.createElement("p", null, "Your order has been received and is being processed."),
|
|
@@ -63,8 +63,8 @@ export const RightAligned = {
|
|
|
63
63
|
React.createElement("h3", null, "Shipped"),
|
|
64
64
|
React.createElement("p", null, "Your order is on its way!")))),
|
|
65
65
|
};
|
|
66
|
-
export const
|
|
67
|
-
render: () => (React.createElement(
|
|
66
|
+
export const SimpleStepIndicator = {
|
|
67
|
+
render: () => (React.createElement(StepIndicator, null,
|
|
68
68
|
React.createElement(Step, { completed: true },
|
|
69
69
|
React.createElement("strong", null, "Step 1")),
|
|
70
70
|
React.createElement(Step, { completed: true },
|
|
@@ -77,7 +77,7 @@ export const SimpleSteps = {
|
|
|
77
77
|
React.createElement("strong", null, "Step 5")))),
|
|
78
78
|
};
|
|
79
79
|
export const SimpleHorizontal = {
|
|
80
|
-
render: () => (React.createElement(
|
|
80
|
+
render: () => (React.createElement(StepIndicator, { horizontal: true },
|
|
81
81
|
React.createElement(Step, { completed: true },
|
|
82
82
|
React.createElement("strong", null, "Start")),
|
|
83
83
|
React.createElement(Step, { completed: true },
|
|
@@ -90,7 +90,7 @@ export const SimpleHorizontal = {
|
|
|
90
90
|
React.createElement("strong", null, "End")))),
|
|
91
91
|
};
|
|
92
92
|
export const AllCompleted = {
|
|
93
|
-
render: () => (React.createElement(
|
|
93
|
+
render: () => (React.createElement(StepIndicator, null,
|
|
94
94
|
React.createElement(Step, { completed: true },
|
|
95
95
|
React.createElement("h3", null, "Registration"),
|
|
96
96
|
React.createElement("p", null, "Account successfully created")),
|
|
@@ -105,7 +105,7 @@ export const AllCompleted = {
|
|
|
105
105
|
React.createElement("p", null, "You're all set to get started!")))),
|
|
106
106
|
};
|
|
107
107
|
export const MinimalExample = {
|
|
108
|
-
render: () => (React.createElement(
|
|
108
|
+
render: () => (React.createElement(StepIndicator, null,
|
|
109
109
|
React.createElement(Step, { completed: true }, "First"),
|
|
110
110
|
React.createElement(Step, { active: true }, "Second"),
|
|
111
111
|
React.createElement(Step, null, "Third"))),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { html } from 'lit';
|
|
2
2
|
import './index.js';
|
|
3
3
|
const meta = {
|
|
4
|
-
title: 'Components/
|
|
5
|
-
component: 'w-
|
|
4
|
+
title: 'Components/Step Indicator',
|
|
5
|
+
component: 'w-step-indicator',
|
|
6
6
|
argTypes: {
|
|
7
7
|
horizontal: {
|
|
8
8
|
control: { type: 'boolean' },
|
|
@@ -23,7 +23,7 @@ export const Default = {
|
|
|
23
23
|
right: false,
|
|
24
24
|
},
|
|
25
25
|
render: (args) => html `
|
|
26
|
-
<w-
|
|
26
|
+
<w-step-indicator ?horizontal=${args.horizontal} ?right=${args.right}>
|
|
27
27
|
<w-step completed>
|
|
28
28
|
<h3>Step 1: Account Setup</h3>
|
|
29
29
|
<p>Create your account and verify your email address.</p>
|
|
@@ -40,7 +40,7 @@ export const Default = {
|
|
|
40
40
|
<h3>Step 4: Confirmation</h3>
|
|
41
41
|
<p>Review and confirm your information.</p>
|
|
42
42
|
</w-step>
|
|
43
|
-
</w-
|
|
43
|
+
</w-step-indicator>
|
|
44
44
|
`,
|
|
45
45
|
};
|
|
46
46
|
export const Horizontal = {
|
|
@@ -49,7 +49,7 @@ export const Horizontal = {
|
|
|
49
49
|
right: false,
|
|
50
50
|
},
|
|
51
51
|
render: (args) => html `
|
|
52
|
-
<w-
|
|
52
|
+
<w-step-indicator ?horizontal=${args.horizontal} ?right=${args.right}>
|
|
53
53
|
<w-step completed>
|
|
54
54
|
<h4>Setup</h4>
|
|
55
55
|
<p>Account created</p>
|
|
@@ -66,7 +66,7 @@ export const Horizontal = {
|
|
|
66
66
|
<h4>Done</h4>
|
|
67
67
|
<p>Complete setup</p>
|
|
68
68
|
</w-step>
|
|
69
|
-
</w-
|
|
69
|
+
</w-step-indicator>
|
|
70
70
|
`,
|
|
71
71
|
};
|
|
72
72
|
export const RightAligned = {
|
|
@@ -75,7 +75,7 @@ export const RightAligned = {
|
|
|
75
75
|
right: true,
|
|
76
76
|
},
|
|
77
77
|
render: (args) => html `
|
|
78
|
-
<w-
|
|
78
|
+
<w-step-indicator ?horizontal=${args.horizontal} ?right=${args.right}>
|
|
79
79
|
<w-step completed>
|
|
80
80
|
<h3>Order Placed</h3>
|
|
81
81
|
<p>Your order has been received and is being processed.</p>
|
|
@@ -94,12 +94,12 @@ export const RightAligned = {
|
|
|
94
94
|
<h3>Shipped</h3>
|
|
95
95
|
<p>Your order is on its way!</p>
|
|
96
96
|
</w-step>
|
|
97
|
-
</w-
|
|
97
|
+
</w-step-indicator>
|
|
98
98
|
`,
|
|
99
99
|
};
|
|
100
100
|
export const SimpleSteps = {
|
|
101
101
|
render: () => html `
|
|
102
|
-
<w-
|
|
102
|
+
<w-step-indicator>
|
|
103
103
|
<w-step completed>
|
|
104
104
|
<strong>Step 1</strong>
|
|
105
105
|
</w-step>
|
|
@@ -115,12 +115,12 @@ export const SimpleSteps = {
|
|
|
115
115
|
<w-step>
|
|
116
116
|
<strong>Step 5</strong>
|
|
117
117
|
</w-step>
|
|
118
|
-
</w-
|
|
118
|
+
</w-step-indicator>
|
|
119
119
|
`,
|
|
120
120
|
};
|
|
121
121
|
export const SimpleHorizontal = {
|
|
122
122
|
render: () => html `
|
|
123
|
-
<w-
|
|
123
|
+
<w-step-indicator horizontal>
|
|
124
124
|
<w-step completed>
|
|
125
125
|
<strong>Start</strong>
|
|
126
126
|
</w-step>
|
|
@@ -136,12 +136,12 @@ export const SimpleHorizontal = {
|
|
|
136
136
|
<w-step>
|
|
137
137
|
<strong>End</strong>
|
|
138
138
|
</w-step>
|
|
139
|
-
</w-
|
|
139
|
+
</w-step-indicator>
|
|
140
140
|
`,
|
|
141
141
|
};
|
|
142
142
|
export const AllCompleted = {
|
|
143
143
|
render: () => html `
|
|
144
|
-
<w-
|
|
144
|
+
<w-step-indicator>
|
|
145
145
|
<w-step completed>
|
|
146
146
|
<h3>Registration</h3>
|
|
147
147
|
<p>Account successfully created</p>
|
|
@@ -158,15 +158,15 @@ export const AllCompleted = {
|
|
|
158
158
|
<h3>Welcome</h3>
|
|
159
159
|
<p>You're all set to get started!</p>
|
|
160
160
|
</w-step>
|
|
161
|
-
</w-
|
|
161
|
+
</w-step-indicator>
|
|
162
162
|
`,
|
|
163
163
|
};
|
|
164
164
|
export const MinimalExample = {
|
|
165
165
|
render: () => html `
|
|
166
|
-
<w-
|
|
166
|
+
<w-step-indicator>
|
|
167
167
|
<w-step completed>First</w-step>
|
|
168
168
|
<w-step active>Second</w-step>
|
|
169
169
|
<w-step>Third</w-step>
|
|
170
|
-
</w-
|
|
170
|
+
</w-step-indicator>
|
|
171
171
|
`,
|
|
172
172
|
};
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@warp-ds/elements",
|
|
4
|
-
"version": "2.3.0-next.
|
|
4
|
+
"version": "2.3.0-next.18",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1279,7 +1279,7 @@
|
|
|
1279
1279
|
}
|
|
1280
1280
|
},
|
|
1281
1281
|
{
|
|
1282
|
-
"name": "w-
|
|
1282
|
+
"name": "w-step-indicator",
|
|
1283
1283
|
"description": "Steps are used to show progress through a process or to guide users through a multi-step task.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/components-steps--docs)\n---\n",
|
|
1284
1284
|
"doc-url": "",
|
|
1285
1285
|
"attributes": [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-ds/elements",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.3.0-next.
|
|
4
|
+
"version": "2.3.0-next.19",
|
|
5
5
|
"packageManager": "pnpm@10.20.0",
|
|
6
6
|
"description": "Custom elements for Warp",
|
|
7
7
|
"exports": {
|
|
@@ -310,7 +310,6 @@
|
|
|
310
310
|
"html-format": "1.1.7",
|
|
311
311
|
"husky": "^9.1.7",
|
|
312
312
|
"lightningcss": "^1.30.1",
|
|
313
|
-
"lit": "3.x",
|
|
314
313
|
"nanoid": "^5.1.5",
|
|
315
314
|
"playwright": "^1.55.0",
|
|
316
315
|
"prettier": "3.3.2",
|
|
@@ -324,25 +323,25 @@
|
|
|
324
323
|
"vite": "^6.0.0",
|
|
325
324
|
"vitest": "^3.2.4",
|
|
326
325
|
"vitest-browser-lit": "^0.1.0",
|
|
327
|
-
"vitest-browser-react": "^1.0.1"
|
|
328
|
-
},
|
|
329
|
-
"dependencies": {
|
|
330
|
-
"@lingui/core": "5.2.0",
|
|
331
|
-
"@lit-labs/rollup-plugin-minify-html-literals": "^0.1.0",
|
|
332
|
-
"@lit/react": "^1.0.8",
|
|
333
|
-
"@open-wc/form-control": "^1.0.0",
|
|
326
|
+
"vitest-browser-react": "^1.0.1",
|
|
334
327
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
335
328
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
336
329
|
"@rollup/plugin-replace": "^6.0.2",
|
|
337
330
|
"@rollup/plugin-terser": "^0.4.4",
|
|
331
|
+
"tslib": "^2.8.1",
|
|
332
|
+
"rollup": "^4.52.3",
|
|
333
|
+
"@lit-labs/rollup-plugin-minify-html-literals": "^0.1.0",
|
|
334
|
+
"@lingui/core": "5.2.0",
|
|
338
335
|
"@warp-ds/core": "1.1.8",
|
|
339
336
|
"@warp-ds/css": "2.1.1",
|
|
340
|
-
"@warp-ds/elements-core": "2.0.1",
|
|
341
337
|
"@warp-ds/icons": "2.5.0",
|
|
342
338
|
"date-fns": "^4.1.0",
|
|
343
|
-
"rollup": "^4.52.3",
|
|
344
339
|
"scroll-doctor": "2.0.2",
|
|
345
|
-
"
|
|
340
|
+
"@open-wc/form-control": "^1.0.0"
|
|
341
|
+
},
|
|
342
|
+
"dependencies": {
|
|
343
|
+
"lit": "3.x",
|
|
344
|
+
"@lit/react": "^1.0.8"
|
|
346
345
|
},
|
|
347
346
|
"publishConfig": {
|
|
348
347
|
"access": "public"
|