@paperless/core 3.22.2 → 3.24.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 +38 -5
- 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 +10 -4
- package/dist/types/components/organisms/stepper/stepper.stories.d.ts +4 -2
- package/dist/types/components.d.ts +32 -4
- 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,13 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { IconVariant } from '../../../types';
|
|
2
|
+
export interface StepperStepItem {
|
|
3
|
+
icon?: IconVariant;
|
|
2
4
|
content: string;
|
|
3
|
-
active
|
|
4
|
-
finished
|
|
5
|
+
active?: boolean;
|
|
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
|
*/
|
|
10
|
-
steps: string | string[] |
|
|
16
|
+
steps: string | string[] | StepperStepItem[];
|
|
11
17
|
/**
|
|
12
18
|
* The currently active step
|
|
13
19
|
*/
|
|
@@ -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
|
};
|
|
@@ -22,7 +22,7 @@ import { LabelVariant as LabelVariant1 } from "./components/molecules/label/labe
|
|
|
22
22
|
import { Observable } from "rxjs";
|
|
23
23
|
import { templateFunc as templateFunc2 } from "./components/molecules/pagination/pages/pagination-pages.component";
|
|
24
24
|
import { templateFunc as templateFunc3 } from "./components/molecules/pagination/size/pagination-size.component";
|
|
25
|
-
import {
|
|
25
|
+
import { StepperStepItem } from "./components/organisms/stepper/stepper.component";
|
|
26
26
|
import { amountSelectedTemplateFunc as amountSelectedTemplateFunc1, templateFunc as templateFunc4 } from "./components/organisms/table/table.component";
|
|
27
27
|
import { QuickFilter, RowClickEvent, TableColumnSizes } from "./types/table";
|
|
28
28
|
import { buttonTemplateFunc } from "./components/molecules/table/header/table-header.component";
|
|
@@ -46,7 +46,7 @@ export { LabelVariant as LabelVariant1 } from "./components/molecules/label/labe
|
|
|
46
46
|
export { Observable } from "rxjs";
|
|
47
47
|
export { templateFunc as templateFunc2 } from "./components/molecules/pagination/pages/pagination-pages.component";
|
|
48
48
|
export { templateFunc as templateFunc3 } from "./components/molecules/pagination/size/pagination-size.component";
|
|
49
|
-
export {
|
|
49
|
+
export { StepperStepItem } from "./components/organisms/stepper/stepper.component";
|
|
50
50
|
export { amountSelectedTemplateFunc as amountSelectedTemplateFunc1, templateFunc as templateFunc4 } from "./components/organisms/table/table.component";
|
|
51
51
|
export { QuickFilter, RowClickEvent, TableColumnSizes } from "./types/table";
|
|
52
52
|
export { buttonTemplateFunc } from "./components/molecules/table/header/table-header.component";
|
|
@@ -1943,7 +1943,12 @@ export namespace Components {
|
|
|
1943
1943
|
/**
|
|
1944
1944
|
* The steps but as a property, can also be used via slot
|
|
1945
1945
|
*/
|
|
1946
|
-
"steps": string | string[] |
|
|
1946
|
+
"steps": string | string[] | StepperStepItem[];
|
|
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
|
/**
|
|
@@ -5908,7 +5922,12 @@ declare namespace LocalJSX {
|
|
|
5908
5922
|
/**
|
|
5909
5923
|
* The steps but as a property, can also be used via slot
|
|
5910
5924
|
*/
|
|
5911
|
-
"steps"?: string | string[] |
|
|
5925
|
+
"steps"?: string | string[] | StepperStepItem[];
|
|
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],
|