@paperless/core 3.22.2 → 3.23.0
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/build/p-4c7ee2c0.entry.js +1 -0
- package/dist/build/p-6ed7ef6a.entry.js +1 -0
- package/dist/build/p-742c2ea7.js +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +73 -9
- package/dist/cjs/p-stepper.cjs.entry.js +15 -2
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/components/atoms/stepper/item/stepper-item.component.css +1 -1
- package/dist/collection/components/atoms/stepper/item/stepper-item.component.js +118 -8
- package/dist/collection/components/atoms/stepper/item/stepper-item.stories.js +3 -1
- package/dist/collection/components/organisms/stepper/stepper.component.css +1 -1
- package/dist/collection/components/organisms/stepper/stepper.component.js +34 -1
- package/dist/collection/components/organisms/stepper/stepper.stories.js +5 -3
- package/dist/components/p-DdTNpkCI.js +1 -0
- package/dist/components/p-stepper-item.js +1 -1
- package/dist/components/p-stepper.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-stepper-item_2.entry.js +73 -9
- package/dist/esm/p-stepper.entry.js +15 -2
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/p-4c7ee2c0.entry.js +1 -0
- package/dist/paperless/p-6ed7ef6a.entry.js +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/atoms/stepper/item/stepper-item.component.d.ts +9 -0
- package/dist/types/components/atoms/stepper/item/stepper-item.stories.d.ts +3 -1
- package/dist/types/components/organisms/stepper/stepper.component.d.ts +6 -0
- package/dist/types/components/organisms/stepper/stepper.stories.d.ts +4 -2
- package/dist/types/components.d.ts +28 -0
- package/hydrate/index.js +91 -11
- package/hydrate/index.mjs +91 -11
- package/package.json +1 -1
- package/dist/build/p-4c0dc43f.js +0 -1
- package/dist/build/p-bdfaa7bc.entry.js +0 -1
- package/dist/build/p-d43e5a94.entry.js +0 -1
- package/dist/components/p-CB2IGEg2.js +0 -1
- package/dist/paperless/p-bdfaa7bc.entry.js +0 -1
- package/dist/paperless/p-d43e5a94.entry.js +0 -1
|
@@ -1,12 +1,21 @@
|
|
|
1
|
+
import { IconVariant } from '../../../../types';
|
|
1
2
|
export declare class StepperItem {
|
|
2
3
|
/**
|
|
3
4
|
* The number of the step
|
|
4
5
|
*/
|
|
5
6
|
number: number;
|
|
7
|
+
/**
|
|
8
|
+
* Icon to show instead of the number
|
|
9
|
+
*/
|
|
10
|
+
icon: IconVariant;
|
|
6
11
|
/**
|
|
7
12
|
* The direction of the item
|
|
8
13
|
*/
|
|
9
14
|
direction: 'horizontal' | 'vertical';
|
|
15
|
+
/**
|
|
16
|
+
* The variant of the item
|
|
17
|
+
*/
|
|
18
|
+
variant: 'default' | 'icon';
|
|
10
19
|
/**
|
|
11
20
|
* The alignment of the content in case of vertical direction
|
|
12
21
|
*/
|
|
@@ -12,12 +12,14 @@ declare const meta: {
|
|
|
12
12
|
};
|
|
13
13
|
export default meta;
|
|
14
14
|
export declare const Default: {
|
|
15
|
-
render: ({ align, direction, "content-position": contentPosition, finished, active, content, }: {
|
|
15
|
+
render: ({ align, direction, "content-position": contentPosition, finished, active, content, icon, variant }: {
|
|
16
16
|
align: any;
|
|
17
17
|
direction: any;
|
|
18
18
|
"content-position": any;
|
|
19
19
|
finished: any;
|
|
20
20
|
active: any;
|
|
21
21
|
content: any;
|
|
22
|
+
icon: any;
|
|
23
|
+
variant: any;
|
|
22
24
|
}) => import("lit-html").TemplateResult<1>;
|
|
23
25
|
};
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import { IconVariant } from '../../../types';
|
|
1
2
|
export interface StepperStepItemObj {
|
|
3
|
+
icon?: IconVariant;
|
|
2
4
|
content: string;
|
|
3
5
|
active: boolean;
|
|
4
6
|
finished: boolean;
|
|
5
7
|
}
|
|
6
8
|
export declare class Stepper {
|
|
9
|
+
/**
|
|
10
|
+
* The variant of the item
|
|
11
|
+
*/
|
|
12
|
+
variant: 'default' | 'icon';
|
|
7
13
|
/**
|
|
8
14
|
* The steps but as a property, can also be used via slot
|
|
9
15
|
*/
|
|
@@ -15,18 +15,20 @@ declare const meta: {
|
|
|
15
15
|
};
|
|
16
16
|
export default meta;
|
|
17
17
|
export declare const Horizontal: {
|
|
18
|
-
render: ({ "active-step": activeStep, "enable-auto-status": enableAutoStatus, "content-position": contentPosition, steps, }: {
|
|
18
|
+
render: ({ "active-step": activeStep, "enable-auto-status": enableAutoStatus, "content-position": contentPosition, steps, variant, }: {
|
|
19
19
|
"active-step": any;
|
|
20
20
|
"enable-auto-status": any;
|
|
21
21
|
"content-position": any;
|
|
22
22
|
steps: any;
|
|
23
|
+
variant: any;
|
|
23
24
|
}) => import("lit-html").TemplateResult<1>;
|
|
24
25
|
};
|
|
25
26
|
export declare const Vertical: {
|
|
26
|
-
render: ({ "active-step": activeStep, "enable-auto-status": enableAutoStatus, "content-position": contentPosition, align, }: {
|
|
27
|
+
render: ({ "active-step": activeStep, "enable-auto-status": enableAutoStatus, "content-position": contentPosition, align, variant, }: {
|
|
27
28
|
"active-step": any;
|
|
28
29
|
"enable-auto-status": any;
|
|
29
30
|
"content-position": any;
|
|
30
31
|
align: any;
|
|
32
|
+
variant: any;
|
|
31
33
|
}) => import("lit-html").TemplateResult<1>;
|
|
32
34
|
};
|
|
@@ -1944,6 +1944,11 @@ export namespace Components {
|
|
|
1944
1944
|
* The steps but as a property, can also be used via slot
|
|
1945
1945
|
*/
|
|
1946
1946
|
"steps": string | string[] | StepperStepItemObj[];
|
|
1947
|
+
/**
|
|
1948
|
+
* The variant of the item
|
|
1949
|
+
* @default 'default'
|
|
1950
|
+
*/
|
|
1951
|
+
"variant": 'default' | 'icon';
|
|
1947
1952
|
}
|
|
1948
1953
|
interface PStepperItem {
|
|
1949
1954
|
/**
|
|
@@ -1971,11 +1976,20 @@ export namespace Components {
|
|
|
1971
1976
|
* @default false
|
|
1972
1977
|
*/
|
|
1973
1978
|
"finished": boolean;
|
|
1979
|
+
/**
|
|
1980
|
+
* Icon to show instead of the number
|
|
1981
|
+
*/
|
|
1982
|
+
"icon": IconVariant;
|
|
1974
1983
|
/**
|
|
1975
1984
|
* The number of the step
|
|
1976
1985
|
* @default 1
|
|
1977
1986
|
*/
|
|
1978
1987
|
"number": number;
|
|
1988
|
+
/**
|
|
1989
|
+
* The variant of the item
|
|
1990
|
+
* @default 'default'
|
|
1991
|
+
*/
|
|
1992
|
+
"variant": 'default' | 'icon';
|
|
1979
1993
|
}
|
|
1980
1994
|
interface PStepperLine {
|
|
1981
1995
|
/**
|
|
@@ -5909,6 +5923,11 @@ declare namespace LocalJSX {
|
|
|
5909
5923
|
* The steps but as a property, can also be used via slot
|
|
5910
5924
|
*/
|
|
5911
5925
|
"steps"?: string | string[] | StepperStepItemObj[];
|
|
5926
|
+
/**
|
|
5927
|
+
* The variant of the item
|
|
5928
|
+
* @default 'default'
|
|
5929
|
+
*/
|
|
5930
|
+
"variant"?: 'default' | 'icon';
|
|
5912
5931
|
}
|
|
5913
5932
|
interface PStepperItem {
|
|
5914
5933
|
/**
|
|
@@ -5936,11 +5955,20 @@ declare namespace LocalJSX {
|
|
|
5936
5955
|
* @default false
|
|
5937
5956
|
*/
|
|
5938
5957
|
"finished"?: boolean;
|
|
5958
|
+
/**
|
|
5959
|
+
* Icon to show instead of the number
|
|
5960
|
+
*/
|
|
5961
|
+
"icon"?: IconVariant;
|
|
5939
5962
|
/**
|
|
5940
5963
|
* The number of the step
|
|
5941
5964
|
* @default 1
|
|
5942
5965
|
*/
|
|
5943
5966
|
"number"?: number;
|
|
5967
|
+
/**
|
|
5968
|
+
* The variant of the item
|
|
5969
|
+
* @default 'default'
|
|
5970
|
+
*/
|
|
5971
|
+
"variant"?: 'default' | 'icon';
|
|
5944
5972
|
}
|
|
5945
5973
|
interface PStepperLine {
|
|
5946
5974
|
/**
|
package/hydrate/index.js
CHANGED
|
@@ -99865,7 +99865,7 @@ class Smile {
|
|
|
99865
99865
|
}; }
|
|
99866
99866
|
}
|
|
99867
99867
|
|
|
99868
|
-
const stepperComponentCss = () => `*{box-sizing:border-box}.static{position:static}.flex{display:flex}.h-auto{height:auto}.w-full{width:100%}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.gap-2{gap:.5rem}.opacity-0{opacity:0}.opacity-100{opacity:1}`;
|
|
99868
|
+
const stepperComponentCss = () => `*{box-sizing:border-box}.static{position:static}.flex{display:flex}.h-auto{height:auto}.w-full{width:100%}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.gap-2{gap:.5rem}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}`;
|
|
99869
99869
|
|
|
99870
99870
|
const stepper = cva(['flex gap-2'], {
|
|
99871
99871
|
variants: {
|
|
@@ -99883,6 +99883,10 @@ class Stepper {
|
|
|
99883
99883
|
constructor(hostRef) {
|
|
99884
99884
|
registerInstance(this, hostRef);
|
|
99885
99885
|
}
|
|
99886
|
+
/**
|
|
99887
|
+
* The variant of the item
|
|
99888
|
+
*/
|
|
99889
|
+
variant = 'default';
|
|
99886
99890
|
/**
|
|
99887
99891
|
* The steps but as a property, can also be used via slot
|
|
99888
99892
|
*/
|
|
@@ -99971,10 +99975,18 @@ class Stepper {
|
|
|
99971
99975
|
}
|
|
99972
99976
|
_getItem(data, i) {
|
|
99973
99977
|
const activeStep = this.activeStep - 1 || 0;
|
|
99974
|
-
return (hAsync("p-stepper-item", { active: this.enableAutoStatus ? i === activeStep : data.active, align: this.direction === 'vertical' ? this.align : 'start', contentPosition: this.contentPosition, finished: this.enableAutoStatus ? i < activeStep : data.finished, number: i + 1 }, data.content));
|
|
99978
|
+
return (hAsync("p-stepper-item", { active: this.enableAutoStatus ? i === activeStep : data.active, align: this.direction === 'vertical' ? this.align : 'start', contentPosition: this.contentPosition, finished: this.enableAutoStatus ? i < activeStep : data.finished, icon: data.icon, number: i + 1, variant: this.variant }, data.content));
|
|
99975
99979
|
}
|
|
99976
99980
|
_getLine(i) {
|
|
99977
99981
|
const activeStep = this.activeStep - 1 || 0;
|
|
99982
|
+
if (this.variant === 'icon') {
|
|
99983
|
+
return (hAsync("p-icon", { class: i < activeStep
|
|
99984
|
+
? 'text-indigo-600'
|
|
99985
|
+
: `
|
|
99986
|
+
text-storm-100
|
|
99987
|
+
dark:text-hurricane-300
|
|
99988
|
+
`, rotate: this.direction === 'vertical' ? 0 : -90, variant: 'caret' }));
|
|
99989
|
+
}
|
|
99978
99990
|
return (hAsync("p-stepper-line", { active: i < activeStep, direction: this.direction }));
|
|
99979
99991
|
}
|
|
99980
99992
|
_checkItems(items) {
|
|
@@ -99989,6 +100001,7 @@ class Stepper {
|
|
|
99989
100001
|
item.align = this.direction === 'vertical' ? this.align : 'start';
|
|
99990
100002
|
item.direction = this.direction;
|
|
99991
100003
|
item.contentPosition = this.contentPosition;
|
|
100004
|
+
item.variant = this.variant;
|
|
99992
100005
|
}
|
|
99993
100006
|
}
|
|
99994
100007
|
_generateLinesOnce() {
|
|
@@ -100097,6 +100110,7 @@ class Stepper {
|
|
|
100097
100110
|
"$flags$": 777,
|
|
100098
100111
|
"$tagName$": "p-stepper",
|
|
100099
100112
|
"$members$": {
|
|
100113
|
+
"variant": [1],
|
|
100100
100114
|
"steps": [1],
|
|
100101
100115
|
"activeStep": [2, "active-step"],
|
|
100102
100116
|
"enableAutoStatus": [4, "enable-auto-status"],
|
|
@@ -100112,7 +100126,7 @@ class Stepper {
|
|
|
100112
100126
|
}; }
|
|
100113
100127
|
}
|
|
100114
100128
|
|
|
100115
|
-
const stepperItemComponentCss = () => `*{box-sizing:border-box}.static{position:static}.mb-5{margin-bottom:1.25rem}.mt-5{margin-top:1.25rem}.mt-\\[1px\\]{margin-top:1px}.flex{display:flex}.hidden{display:none}.
|
|
100129
|
+
const stepperItemComponentCss = () => `*{box-sizing:border-box}.static{position:static}.mb-5{margin-bottom:1.25rem}.mt-5{margin-top:1.25rem}.mt-\\[1px\\]{margin-top:1px}.flex{display:flex}.hidden{display:none}.size-6{height:1.5rem;width:1.5rem}.size-8{height:2rem;width:2rem}.flex-1{flex:1 1 0%}.flex-row-reverse{flex-direction:row-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-solid{border-style:solid}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.text-center{text-align:center}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}@media (min-width:64rem){.desktop-xs\\:inline-block{display:inline-block}}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}`;
|
|
100116
100130
|
|
|
100117
100131
|
const item$1 = cva('flex gap-2', {
|
|
100118
100132
|
variants: {
|
|
@@ -100128,9 +100142,8 @@ const item$1 = cva('flex gap-2', {
|
|
|
100128
100142
|
},
|
|
100129
100143
|
});
|
|
100130
100144
|
const circle$1 = cva([
|
|
100131
|
-
'flex
|
|
100145
|
+
'flex items-center justify-center',
|
|
100132
100146
|
'text-center text-sm font-medium',
|
|
100133
|
-
'border border-solid',
|
|
100134
100147
|
'rounded-full',
|
|
100135
100148
|
], {
|
|
100136
100149
|
variants: {
|
|
@@ -100151,11 +100164,17 @@ const circle$1 = cva([
|
|
|
100151
100164
|
true: null,
|
|
100152
100165
|
false: null,
|
|
100153
100166
|
},
|
|
100167
|
+
variant: {
|
|
100168
|
+
default: ['size-6', 'border border-solid'],
|
|
100169
|
+
icon: 'size-8',
|
|
100170
|
+
},
|
|
100154
100171
|
},
|
|
100155
100172
|
compoundVariants: [
|
|
100173
|
+
// default variant colors
|
|
100156
100174
|
{
|
|
100157
100175
|
finished: false,
|
|
100158
100176
|
active: false,
|
|
100177
|
+
variant: 'default',
|
|
100159
100178
|
class: [
|
|
100160
100179
|
'border-indigo-600 bg-indigo-50 text-indigo-600',
|
|
100161
100180
|
'dark:border-white/15 dark:bg-white/15 dark:text-hurricane-200',
|
|
@@ -100164,13 +100183,37 @@ const circle$1 = cva([
|
|
|
100164
100183
|
{
|
|
100165
100184
|
active: true,
|
|
100166
100185
|
finished: false,
|
|
100186
|
+
variant: 'default',
|
|
100167
100187
|
class: 'border-indigo-600 bg-indigo-600 text-white',
|
|
100168
100188
|
},
|
|
100169
100189
|
{
|
|
100170
100190
|
active: false,
|
|
100171
100191
|
finished: true,
|
|
100192
|
+
variant: 'default',
|
|
100172
100193
|
class: 'border-indigo-600 bg-indigo-600 text-white',
|
|
100173
100194
|
},
|
|
100195
|
+
// icon variant colors
|
|
100196
|
+
{
|
|
100197
|
+
finished: false,
|
|
100198
|
+
active: false,
|
|
100199
|
+
variant: 'icon',
|
|
100200
|
+
class: [
|
|
100201
|
+
'bg-indigo-100 text-storm-200',
|
|
100202
|
+
'dark:bg-white/15 dark:text-hurricane-200',
|
|
100203
|
+
],
|
|
100204
|
+
},
|
|
100205
|
+
{
|
|
100206
|
+
active: true,
|
|
100207
|
+
finished: false,
|
|
100208
|
+
variant: 'icon',
|
|
100209
|
+
class: 'bg-indigo-500 text-storm-500',
|
|
100210
|
+
},
|
|
100211
|
+
{
|
|
100212
|
+
active: false,
|
|
100213
|
+
finished: true,
|
|
100214
|
+
variant: 'icon',
|
|
100215
|
+
class: 'bg-indigo-100 text-indigo-600',
|
|
100216
|
+
},
|
|
100174
100217
|
{
|
|
100175
100218
|
direction: 'vertical',
|
|
100176
100219
|
align: 'start',
|
|
@@ -100183,7 +100226,7 @@ const circle$1 = cva([
|
|
|
100183
100226
|
},
|
|
100184
100227
|
],
|
|
100185
100228
|
});
|
|
100186
|
-
const content$2 = cva('mt-[1px] flex-1 text-sm
|
|
100229
|
+
const content$2 = cva('mt-[1px] flex-1 text-sm', {
|
|
100187
100230
|
variants: {
|
|
100188
100231
|
finished: {
|
|
100189
100232
|
true: null,
|
|
@@ -100197,11 +100240,17 @@ const content$2 = cva('mt-[1px] flex-1 text-sm font-medium', {
|
|
|
100197
100240
|
horizontal: null,
|
|
100198
100241
|
vertical: null,
|
|
100199
100242
|
},
|
|
100243
|
+
variant: {
|
|
100244
|
+
default: 'font-medium',
|
|
100245
|
+
icon: 'font-semibold',
|
|
100246
|
+
},
|
|
100200
100247
|
},
|
|
100201
100248
|
compoundVariants: [
|
|
100249
|
+
// default variant
|
|
100202
100250
|
{
|
|
100203
100251
|
finished: false,
|
|
100204
100252
|
active: false,
|
|
100253
|
+
variant: 'default',
|
|
100205
100254
|
class: `
|
|
100206
100255
|
text-storm-400
|
|
100207
100256
|
dark:text-hurricane-200
|
|
@@ -100210,6 +100259,7 @@ const content$2 = cva('mt-[1px] flex-1 text-sm font-medium', {
|
|
|
100210
100259
|
{
|
|
100211
100260
|
active: true,
|
|
100212
100261
|
finished: false,
|
|
100262
|
+
variant: 'default',
|
|
100213
100263
|
class: `
|
|
100214
100264
|
text-storm-500
|
|
100215
100265
|
dark:text-white
|
|
@@ -100218,6 +100268,24 @@ const content$2 = cva('mt-[1px] flex-1 text-sm font-medium', {
|
|
|
100218
100268
|
{
|
|
100219
100269
|
active: false,
|
|
100220
100270
|
finished: true,
|
|
100271
|
+
variant: 'default',
|
|
100272
|
+
class: `
|
|
100273
|
+
text-storm-500
|
|
100274
|
+
dark:text-white
|
|
100275
|
+
`,
|
|
100276
|
+
},
|
|
100277
|
+
// icon variant
|
|
100278
|
+
{
|
|
100279
|
+
active: false,
|
|
100280
|
+
variant: 'icon',
|
|
100281
|
+
class: `
|
|
100282
|
+
text-storm-300
|
|
100283
|
+
dark:text-hurricane-200
|
|
100284
|
+
`,
|
|
100285
|
+
},
|
|
100286
|
+
{
|
|
100287
|
+
active: true,
|
|
100288
|
+
variant: 'icon',
|
|
100221
100289
|
class: `
|
|
100222
100290
|
text-storm-500
|
|
100223
100291
|
dark:text-white
|
|
@@ -100241,10 +100309,18 @@ class StepperItem {
|
|
|
100241
100309
|
* The number of the step
|
|
100242
100310
|
*/
|
|
100243
100311
|
number = 1;
|
|
100312
|
+
/**
|
|
100313
|
+
* Icon to show instead of the number
|
|
100314
|
+
*/
|
|
100315
|
+
icon;
|
|
100244
100316
|
/**
|
|
100245
100317
|
* The direction of the item
|
|
100246
100318
|
*/
|
|
100247
100319
|
direction = 'horizontal';
|
|
100320
|
+
/**
|
|
100321
|
+
* The variant of the item
|
|
100322
|
+
*/
|
|
100323
|
+
variant = 'default';
|
|
100248
100324
|
/**
|
|
100249
100325
|
* The alignment of the content in case of vertical direction
|
|
100250
100326
|
*/
|
|
@@ -100262,19 +100338,21 @@ class StepperItem {
|
|
|
100262
100338
|
*/
|
|
100263
100339
|
active = false;
|
|
100264
100340
|
render() {
|
|
100265
|
-
return (hAsync(ThemedHost, { key: '
|
|
100266
|
-
align: this.align,
|
|
100341
|
+
return (hAsync(ThemedHost, { key: '367d59656e6767f50c1c7aefab806f15c024e296' }, hAsync("div", { key: '622a892f8241c64d1b38bad2c5850d3cf24e1c33', class: item$1({
|
|
100342
|
+
align: this.variant === 'default' ? this.align : 'center',
|
|
100267
100343
|
contentPosition: this.contentPosition,
|
|
100268
|
-
}) }, hAsync("div", { key: '
|
|
100344
|
+
}) }, hAsync("div", { key: '199eb6369e37094d21e6bc5f74facee3a8d5b6ac', class: circle$1({
|
|
100269
100345
|
align: this.align,
|
|
100270
100346
|
direction: this.direction,
|
|
100271
100347
|
active: asBoolean(this.active),
|
|
100272
100348
|
finished: asBoolean(this.finished),
|
|
100273
|
-
|
|
100349
|
+
variant: this.variant,
|
|
100350
|
+
}) }, this.variant === 'icon' && (this.icon || this.finished) ? (hAsync("p-icon", { variant: this.finished ? 'checkmark' : this.icon })) : (this.number)), hAsync("div", { key: '7b5349a6e9719c14f57834909912587202c6725b', class: content$2({
|
|
100274
100351
|
active: asBoolean(this.active),
|
|
100275
100352
|
finished: asBoolean(this.finished),
|
|
100276
100353
|
direction: this.direction,
|
|
100277
|
-
|
|
100354
|
+
variant: this.variant,
|
|
100355
|
+
}) }, hAsync("slot", { key: '5a7ed0fa8acc0af1bf53f0c935c2b114a8efefc7' })))));
|
|
100278
100356
|
}
|
|
100279
100357
|
static get style() { return stepperItemComponentCss(); }
|
|
100280
100358
|
static get cmpMeta() { return {
|
|
@@ -100282,7 +100360,9 @@ class StepperItem {
|
|
|
100282
100360
|
"$tagName$": "p-stepper-item",
|
|
100283
100361
|
"$members$": {
|
|
100284
100362
|
"number": [2],
|
|
100363
|
+
"icon": [1],
|
|
100285
100364
|
"direction": [1],
|
|
100365
|
+
"variant": [1],
|
|
100286
100366
|
"align": [1],
|
|
100287
100367
|
"contentPosition": [1, "content-position"],
|
|
100288
100368
|
"finished": [4],
|
package/hydrate/index.mjs
CHANGED
|
@@ -99863,7 +99863,7 @@ class Smile {
|
|
|
99863
99863
|
}; }
|
|
99864
99864
|
}
|
|
99865
99865
|
|
|
99866
|
-
const stepperComponentCss = () => `*{box-sizing:border-box}.static{position:static}.flex{display:flex}.h-auto{height:auto}.w-full{width:100%}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.gap-2{gap:.5rem}.opacity-0{opacity:0}.opacity-100{opacity:1}`;
|
|
99866
|
+
const stepperComponentCss = () => `*{box-sizing:border-box}.static{position:static}.flex{display:flex}.h-auto{height:auto}.w-full{width:100%}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.gap-2{gap:.5rem}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}`;
|
|
99867
99867
|
|
|
99868
99868
|
const stepper = cva(['flex gap-2'], {
|
|
99869
99869
|
variants: {
|
|
@@ -99881,6 +99881,10 @@ class Stepper {
|
|
|
99881
99881
|
constructor(hostRef) {
|
|
99882
99882
|
registerInstance(this, hostRef);
|
|
99883
99883
|
}
|
|
99884
|
+
/**
|
|
99885
|
+
* The variant of the item
|
|
99886
|
+
*/
|
|
99887
|
+
variant = 'default';
|
|
99884
99888
|
/**
|
|
99885
99889
|
* The steps but as a property, can also be used via slot
|
|
99886
99890
|
*/
|
|
@@ -99969,10 +99973,18 @@ class Stepper {
|
|
|
99969
99973
|
}
|
|
99970
99974
|
_getItem(data, i) {
|
|
99971
99975
|
const activeStep = this.activeStep - 1 || 0;
|
|
99972
|
-
return (hAsync("p-stepper-item", { active: this.enableAutoStatus ? i === activeStep : data.active, align: this.direction === 'vertical' ? this.align : 'start', contentPosition: this.contentPosition, finished: this.enableAutoStatus ? i < activeStep : data.finished, number: i + 1 }, data.content));
|
|
99976
|
+
return (hAsync("p-stepper-item", { active: this.enableAutoStatus ? i === activeStep : data.active, align: this.direction === 'vertical' ? this.align : 'start', contentPosition: this.contentPosition, finished: this.enableAutoStatus ? i < activeStep : data.finished, icon: data.icon, number: i + 1, variant: this.variant }, data.content));
|
|
99973
99977
|
}
|
|
99974
99978
|
_getLine(i) {
|
|
99975
99979
|
const activeStep = this.activeStep - 1 || 0;
|
|
99980
|
+
if (this.variant === 'icon') {
|
|
99981
|
+
return (hAsync("p-icon", { class: i < activeStep
|
|
99982
|
+
? 'text-indigo-600'
|
|
99983
|
+
: `
|
|
99984
|
+
text-storm-100
|
|
99985
|
+
dark:text-hurricane-300
|
|
99986
|
+
`, rotate: this.direction === 'vertical' ? 0 : -90, variant: 'caret' }));
|
|
99987
|
+
}
|
|
99976
99988
|
return (hAsync("p-stepper-line", { active: i < activeStep, direction: this.direction }));
|
|
99977
99989
|
}
|
|
99978
99990
|
_checkItems(items) {
|
|
@@ -99987,6 +99999,7 @@ class Stepper {
|
|
|
99987
99999
|
item.align = this.direction === 'vertical' ? this.align : 'start';
|
|
99988
100000
|
item.direction = this.direction;
|
|
99989
100001
|
item.contentPosition = this.contentPosition;
|
|
100002
|
+
item.variant = this.variant;
|
|
99990
100003
|
}
|
|
99991
100004
|
}
|
|
99992
100005
|
_generateLinesOnce() {
|
|
@@ -100095,6 +100108,7 @@ class Stepper {
|
|
|
100095
100108
|
"$flags$": 777,
|
|
100096
100109
|
"$tagName$": "p-stepper",
|
|
100097
100110
|
"$members$": {
|
|
100111
|
+
"variant": [1],
|
|
100098
100112
|
"steps": [1],
|
|
100099
100113
|
"activeStep": [2, "active-step"],
|
|
100100
100114
|
"enableAutoStatus": [4, "enable-auto-status"],
|
|
@@ -100110,7 +100124,7 @@ class Stepper {
|
|
|
100110
100124
|
}; }
|
|
100111
100125
|
}
|
|
100112
100126
|
|
|
100113
|
-
const stepperItemComponentCss = () => `*{box-sizing:border-box}.static{position:static}.mb-5{margin-bottom:1.25rem}.mt-5{margin-top:1.25rem}.mt-\\[1px\\]{margin-top:1px}.flex{display:flex}.hidden{display:none}.
|
|
100127
|
+
const stepperItemComponentCss = () => `*{box-sizing:border-box}.static{position:static}.mb-5{margin-bottom:1.25rem}.mt-5{margin-top:1.25rem}.mt-\\[1px\\]{margin-top:1px}.flex{display:flex}.hidden{display:none}.size-6{height:1.5rem;width:1.5rem}.size-8{height:2rem;width:2rem}.flex-1{flex:1 1 0%}.flex-row-reverse{flex-direction:row-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-solid{border-style:solid}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.text-center{text-align:center}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}@media (min-width:64rem){.desktop-xs\\:inline-block{display:inline-block}}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}`;
|
|
100114
100128
|
|
|
100115
100129
|
const item$1 = cva('flex gap-2', {
|
|
100116
100130
|
variants: {
|
|
@@ -100126,9 +100140,8 @@ const item$1 = cva('flex gap-2', {
|
|
|
100126
100140
|
},
|
|
100127
100141
|
});
|
|
100128
100142
|
const circle$1 = cva([
|
|
100129
|
-
'flex
|
|
100143
|
+
'flex items-center justify-center',
|
|
100130
100144
|
'text-center text-sm font-medium',
|
|
100131
|
-
'border border-solid',
|
|
100132
100145
|
'rounded-full',
|
|
100133
100146
|
], {
|
|
100134
100147
|
variants: {
|
|
@@ -100149,11 +100162,17 @@ const circle$1 = cva([
|
|
|
100149
100162
|
true: null,
|
|
100150
100163
|
false: null,
|
|
100151
100164
|
},
|
|
100165
|
+
variant: {
|
|
100166
|
+
default: ['size-6', 'border border-solid'],
|
|
100167
|
+
icon: 'size-8',
|
|
100168
|
+
},
|
|
100152
100169
|
},
|
|
100153
100170
|
compoundVariants: [
|
|
100171
|
+
// default variant colors
|
|
100154
100172
|
{
|
|
100155
100173
|
finished: false,
|
|
100156
100174
|
active: false,
|
|
100175
|
+
variant: 'default',
|
|
100157
100176
|
class: [
|
|
100158
100177
|
'border-indigo-600 bg-indigo-50 text-indigo-600',
|
|
100159
100178
|
'dark:border-white/15 dark:bg-white/15 dark:text-hurricane-200',
|
|
@@ -100162,13 +100181,37 @@ const circle$1 = cva([
|
|
|
100162
100181
|
{
|
|
100163
100182
|
active: true,
|
|
100164
100183
|
finished: false,
|
|
100184
|
+
variant: 'default',
|
|
100165
100185
|
class: 'border-indigo-600 bg-indigo-600 text-white',
|
|
100166
100186
|
},
|
|
100167
100187
|
{
|
|
100168
100188
|
active: false,
|
|
100169
100189
|
finished: true,
|
|
100190
|
+
variant: 'default',
|
|
100170
100191
|
class: 'border-indigo-600 bg-indigo-600 text-white',
|
|
100171
100192
|
},
|
|
100193
|
+
// icon variant colors
|
|
100194
|
+
{
|
|
100195
|
+
finished: false,
|
|
100196
|
+
active: false,
|
|
100197
|
+
variant: 'icon',
|
|
100198
|
+
class: [
|
|
100199
|
+
'bg-indigo-100 text-storm-200',
|
|
100200
|
+
'dark:bg-white/15 dark:text-hurricane-200',
|
|
100201
|
+
],
|
|
100202
|
+
},
|
|
100203
|
+
{
|
|
100204
|
+
active: true,
|
|
100205
|
+
finished: false,
|
|
100206
|
+
variant: 'icon',
|
|
100207
|
+
class: 'bg-indigo-500 text-storm-500',
|
|
100208
|
+
},
|
|
100209
|
+
{
|
|
100210
|
+
active: false,
|
|
100211
|
+
finished: true,
|
|
100212
|
+
variant: 'icon',
|
|
100213
|
+
class: 'bg-indigo-100 text-indigo-600',
|
|
100214
|
+
},
|
|
100172
100215
|
{
|
|
100173
100216
|
direction: 'vertical',
|
|
100174
100217
|
align: 'start',
|
|
@@ -100181,7 +100224,7 @@ const circle$1 = cva([
|
|
|
100181
100224
|
},
|
|
100182
100225
|
],
|
|
100183
100226
|
});
|
|
100184
|
-
const content$2 = cva('mt-[1px] flex-1 text-sm
|
|
100227
|
+
const content$2 = cva('mt-[1px] flex-1 text-sm', {
|
|
100185
100228
|
variants: {
|
|
100186
100229
|
finished: {
|
|
100187
100230
|
true: null,
|
|
@@ -100195,11 +100238,17 @@ const content$2 = cva('mt-[1px] flex-1 text-sm font-medium', {
|
|
|
100195
100238
|
horizontal: null,
|
|
100196
100239
|
vertical: null,
|
|
100197
100240
|
},
|
|
100241
|
+
variant: {
|
|
100242
|
+
default: 'font-medium',
|
|
100243
|
+
icon: 'font-semibold',
|
|
100244
|
+
},
|
|
100198
100245
|
},
|
|
100199
100246
|
compoundVariants: [
|
|
100247
|
+
// default variant
|
|
100200
100248
|
{
|
|
100201
100249
|
finished: false,
|
|
100202
100250
|
active: false,
|
|
100251
|
+
variant: 'default',
|
|
100203
100252
|
class: `
|
|
100204
100253
|
text-storm-400
|
|
100205
100254
|
dark:text-hurricane-200
|
|
@@ -100208,6 +100257,7 @@ const content$2 = cva('mt-[1px] flex-1 text-sm font-medium', {
|
|
|
100208
100257
|
{
|
|
100209
100258
|
active: true,
|
|
100210
100259
|
finished: false,
|
|
100260
|
+
variant: 'default',
|
|
100211
100261
|
class: `
|
|
100212
100262
|
text-storm-500
|
|
100213
100263
|
dark:text-white
|
|
@@ -100216,6 +100266,24 @@ const content$2 = cva('mt-[1px] flex-1 text-sm font-medium', {
|
|
|
100216
100266
|
{
|
|
100217
100267
|
active: false,
|
|
100218
100268
|
finished: true,
|
|
100269
|
+
variant: 'default',
|
|
100270
|
+
class: `
|
|
100271
|
+
text-storm-500
|
|
100272
|
+
dark:text-white
|
|
100273
|
+
`,
|
|
100274
|
+
},
|
|
100275
|
+
// icon variant
|
|
100276
|
+
{
|
|
100277
|
+
active: false,
|
|
100278
|
+
variant: 'icon',
|
|
100279
|
+
class: `
|
|
100280
|
+
text-storm-300
|
|
100281
|
+
dark:text-hurricane-200
|
|
100282
|
+
`,
|
|
100283
|
+
},
|
|
100284
|
+
{
|
|
100285
|
+
active: true,
|
|
100286
|
+
variant: 'icon',
|
|
100219
100287
|
class: `
|
|
100220
100288
|
text-storm-500
|
|
100221
100289
|
dark:text-white
|
|
@@ -100239,10 +100307,18 @@ class StepperItem {
|
|
|
100239
100307
|
* The number of the step
|
|
100240
100308
|
*/
|
|
100241
100309
|
number = 1;
|
|
100310
|
+
/**
|
|
100311
|
+
* Icon to show instead of the number
|
|
100312
|
+
*/
|
|
100313
|
+
icon;
|
|
100242
100314
|
/**
|
|
100243
100315
|
* The direction of the item
|
|
100244
100316
|
*/
|
|
100245
100317
|
direction = 'horizontal';
|
|
100318
|
+
/**
|
|
100319
|
+
* The variant of the item
|
|
100320
|
+
*/
|
|
100321
|
+
variant = 'default';
|
|
100246
100322
|
/**
|
|
100247
100323
|
* The alignment of the content in case of vertical direction
|
|
100248
100324
|
*/
|
|
@@ -100260,19 +100336,21 @@ class StepperItem {
|
|
|
100260
100336
|
*/
|
|
100261
100337
|
active = false;
|
|
100262
100338
|
render() {
|
|
100263
|
-
return (hAsync(ThemedHost, { key: '
|
|
100264
|
-
align: this.align,
|
|
100339
|
+
return (hAsync(ThemedHost, { key: '367d59656e6767f50c1c7aefab806f15c024e296' }, hAsync("div", { key: '622a892f8241c64d1b38bad2c5850d3cf24e1c33', class: item$1({
|
|
100340
|
+
align: this.variant === 'default' ? this.align : 'center',
|
|
100265
100341
|
contentPosition: this.contentPosition,
|
|
100266
|
-
}) }, hAsync("div", { key: '
|
|
100342
|
+
}) }, hAsync("div", { key: '199eb6369e37094d21e6bc5f74facee3a8d5b6ac', class: circle$1({
|
|
100267
100343
|
align: this.align,
|
|
100268
100344
|
direction: this.direction,
|
|
100269
100345
|
active: asBoolean(this.active),
|
|
100270
100346
|
finished: asBoolean(this.finished),
|
|
100271
|
-
|
|
100347
|
+
variant: this.variant,
|
|
100348
|
+
}) }, this.variant === 'icon' && (this.icon || this.finished) ? (hAsync("p-icon", { variant: this.finished ? 'checkmark' : this.icon })) : (this.number)), hAsync("div", { key: '7b5349a6e9719c14f57834909912587202c6725b', class: content$2({
|
|
100272
100349
|
active: asBoolean(this.active),
|
|
100273
100350
|
finished: asBoolean(this.finished),
|
|
100274
100351
|
direction: this.direction,
|
|
100275
|
-
|
|
100352
|
+
variant: this.variant,
|
|
100353
|
+
}) }, hAsync("slot", { key: '5a7ed0fa8acc0af1bf53f0c935c2b114a8efefc7' })))));
|
|
100276
100354
|
}
|
|
100277
100355
|
static get style() { return stepperItemComponentCss(); }
|
|
100278
100356
|
static get cmpMeta() { return {
|
|
@@ -100280,7 +100358,9 @@ class StepperItem {
|
|
|
100280
100358
|
"$tagName$": "p-stepper-item",
|
|
100281
100359
|
"$members$": {
|
|
100282
100360
|
"number": [2],
|
|
100361
|
+
"icon": [1],
|
|
100283
100362
|
"direction": [1],
|
|
100363
|
+
"variant": [1],
|
|
100284
100364
|
"align": [1],
|
|
100285
100365
|
"contentPosition": [1, "content-position"],
|
|
100286
100366
|
"finished": [4],
|