@club-employes/utopia 4.154.0 → 4.155.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/components/atoms/CopyCode/CopyCode.d.ts +4 -0
- package/dist/components/atoms/CopyCode/index.d.ts +2 -0
- package/dist/components/atoms/CopyCode/types.d.ts +3 -0
- package/dist/components/atoms/index.d.ts +2 -2
- package/dist/components/molecules/CounterButtons/CounterButtons.d.ts +2 -2
- package/dist/components/molecules/CounterButtons/types.d.ts +1 -1
- package/dist/components/molecules/DropDown/DropDown.d.ts +1 -1
- package/dist/components/molecules/DropDown/types.d.ts +1 -1
- package/dist/components/molecules/InputPhone/InputPhone.d.ts +2 -2
- package/dist/components/molecules/OptionSelect/OptionSelect.d.ts +2 -2
- package/dist/components/molecules/OptionSelect/types.d.ts +3 -2
- package/dist/components/molecules/PriceSummary/PriceSummary.d.ts +1 -3
- package/dist/components/molecules/PriceSummary/types.d.ts +2 -4
- package/dist/components/organisms/ProductSummary/ProductSummary.d.ts +12 -2
- package/dist/components/organisms/ProductSummary/index.d.ts +1 -1
- package/dist/components/organisms/ProductSummary/types.d.ts +43 -9
- package/dist/icons-list.json +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4529 -4379
- package/dist/utopia.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CopyCodeProps } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<CopyCodeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<CopyCodeProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
4
|
+
export default _default;
|
|
@@ -26,5 +26,5 @@ export type IconSize = 'extra-small' | 'small' | 'medium' | 'large';
|
|
|
26
26
|
export type IconColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'neutral' | 'current';
|
|
27
27
|
export type Currency = '€' | '£';
|
|
28
28
|
export { FavoriteToggle, type FavoriteToggleProps } from './FavoriteToggle';
|
|
29
|
-
export { WarningBlock } from './WarningBlock';
|
|
30
|
-
export type
|
|
29
|
+
export { WarningBlock, type WarningBlockProps } from './WarningBlock';
|
|
30
|
+
export { CopyCode, type CopyCodeProps } from './CopyCode';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CounterButtonsProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<CounterButtonsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
|
-
"update:
|
|
4
|
+
"update:quantity": (value: number) => any;
|
|
5
5
|
}, string, PublicProps, Readonly<CounterButtonsProps> & Readonly<{
|
|
6
|
-
"onUpdate:
|
|
6
|
+
"onUpdate:quantity"?: ((value: number) => any) | undefined;
|
|
7
7
|
}>, {
|
|
8
8
|
size: "xs" | "sm" | "md" | "lg";
|
|
9
9
|
disabled: boolean;
|
|
@@ -21,7 +21,7 @@ declare const _default: DefineComponent<DropDownProps, {}, {}, {}, {}, Component
|
|
|
21
21
|
size: "extra-small" | "small" | "medium" | "large";
|
|
22
22
|
required: boolean;
|
|
23
23
|
disabled: boolean;
|
|
24
|
-
modelValue: string | number | boolean | (string | number | boolean)[];
|
|
24
|
+
modelValue: string | number | boolean | (string | number | boolean)[] | null;
|
|
25
25
|
placeholder: string;
|
|
26
26
|
state: "default" | "error" | "valid" | "incomplete" | "completed";
|
|
27
27
|
readonly: boolean;
|
|
@@ -6,7 +6,7 @@ export interface DropDownOption {
|
|
|
6
6
|
children?: DropDownOption[];
|
|
7
7
|
}
|
|
8
8
|
export interface DropDownProps {
|
|
9
|
-
modelValue?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
9
|
+
modelValue?: string | number | boolean | (string | number | boolean)[] | null | undefined;
|
|
10
10
|
label?: string;
|
|
11
11
|
placeholder?: string;
|
|
12
12
|
options?: DropDownOption[];
|
|
@@ -126,7 +126,7 @@ declare const _default: DefineComponent<InputPhoneProps, {}, {}, {}, {}, Compone
|
|
|
126
126
|
size: "extra-small" | "small" | "medium" | "large";
|
|
127
127
|
required: boolean;
|
|
128
128
|
disabled: boolean;
|
|
129
|
-
modelValue: string | number | boolean | (string | number | boolean)[];
|
|
129
|
+
modelValue: string | number | boolean | (string | number | boolean)[] | null;
|
|
130
130
|
placeholder: string;
|
|
131
131
|
state: "default" | "error" | "valid" | "incomplete" | "completed";
|
|
132
132
|
readonly: boolean;
|
|
@@ -231,7 +231,7 @@ declare const _default: DefineComponent<InputPhoneProps, {}, {}, {}, {}, Compone
|
|
|
231
231
|
size: "extra-small" | "small" | "medium" | "large";
|
|
232
232
|
required: boolean;
|
|
233
233
|
disabled: boolean;
|
|
234
|
-
modelValue: string | number | boolean | (string | number | boolean)[];
|
|
234
|
+
modelValue: string | number | boolean | (string | number | boolean)[] | null;
|
|
235
235
|
placeholder: string;
|
|
236
236
|
state: "default" | "error" | "valid" | "incomplete" | "completed";
|
|
237
237
|
readonly: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OptionSelectProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<OptionSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
4
|
-
"update:modelValue": (value: string) => any;
|
|
4
|
+
"update:modelValue": (value: string | number) => any;
|
|
5
5
|
}, string, PublicProps, Readonly<OptionSelectProps> & Readonly<{
|
|
6
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
6
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
7
7
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
8
|
export default _default;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { PriceSummaryProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<PriceSummaryProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PriceSummaryProps> & Readonly<{}>, {
|
|
4
|
-
|
|
4
|
+
isSubventioned: boolean;
|
|
5
5
|
totalLabel: string;
|
|
6
|
-
showSavingInfo: boolean;
|
|
7
|
-
savingInfoLabel: string;
|
|
8
6
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
7
|
export default _default;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export interface PriceSummaryProps {
|
|
2
2
|
totalLabel: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
currency?: string;
|
|
3
|
+
formattedNewPrice: string;
|
|
4
|
+
formattedOriginalPrice?: string;
|
|
6
5
|
isSubventioned?: boolean;
|
|
7
|
-
showSavingInfo?: boolean;
|
|
8
6
|
savingInfoLabel?: string;
|
|
9
7
|
savingInfoTooltip?: string;
|
|
10
8
|
}
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import { ProductSummaryProps } from './types';
|
|
1
|
+
import { ProductSummaryProps, ProductSummaryVariant } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { OptionSelectProps } from '../..';
|
|
4
|
-
declare const _default: DefineComponent<ProductSummaryProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
|
+
declare const _default: DefineComponent<ProductSummaryProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
5
|
+
"update:quantity": (value: number) => any;
|
|
6
|
+
"click:button": (value: MouseEvent) => any;
|
|
7
|
+
}, string, PublicProps, Readonly<ProductSummaryProps> & Readonly<{
|
|
8
|
+
"onUpdate:quantity"?: ((value: number) => any) | undefined;
|
|
9
|
+
"onClick:button"?: ((value: MouseEvent) => any) | undefined;
|
|
10
|
+
}>, {
|
|
5
11
|
options: OptionSelectProps[];
|
|
12
|
+
outOfStock: boolean;
|
|
13
|
+
outOfStockChipLabel: string;
|
|
14
|
+
outOfStockDescription: string;
|
|
15
|
+
variants: ProductSummaryVariant[];
|
|
6
16
|
additionalInfo: {
|
|
7
17
|
icon: string;
|
|
8
18
|
label: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as ProductSummary } from './ProductSummary';
|
|
2
|
-
export type { ProductSummaryProps } from './types';
|
|
2
|
+
export type { ProductSummaryProps, ProductSummaryPrice, ProductSummaryQuantity, ProductSummaryButton } from './types';
|
|
@@ -1,23 +1,57 @@
|
|
|
1
1
|
import { OptionSelectProps } from '../../molecules/OptionSelect';
|
|
2
2
|
import { WarningBlockProps } from '../../atoms/WarningBlock';
|
|
3
|
+
export interface ProductSummaryVariant {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | null;
|
|
6
|
+
options: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}[];
|
|
10
|
+
}
|
|
11
|
+
export interface ProductSummaryPrice {
|
|
12
|
+
label: string;
|
|
13
|
+
totalLabel: string;
|
|
14
|
+
formattedPrice: string;
|
|
15
|
+
formattedOldPriceLabel: string;
|
|
16
|
+
formattedOldPriceValue: string;
|
|
17
|
+
formattedSavingInfo: string;
|
|
18
|
+
formattedSavingInfoTooltip: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ProductSummaryQuantity {
|
|
21
|
+
label: string;
|
|
22
|
+
amount: number;
|
|
23
|
+
min: number;
|
|
24
|
+
max: number;
|
|
25
|
+
step: number;
|
|
26
|
+
}
|
|
27
|
+
export interface ProductSummaryButton {
|
|
28
|
+
label: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
}
|
|
3
32
|
export interface ProductSummaryProps {
|
|
4
33
|
title: string;
|
|
5
34
|
discount?: string;
|
|
6
35
|
type?: string;
|
|
7
|
-
|
|
36
|
+
brand?: string;
|
|
8
37
|
address?: string;
|
|
38
|
+
outOfStock?: boolean;
|
|
39
|
+
outOfStockChipLabel?: string;
|
|
40
|
+
outOfStockDescription?: string;
|
|
9
41
|
warning?: WarningBlockProps;
|
|
10
42
|
options?: OptionSelectProps[];
|
|
11
|
-
|
|
43
|
+
variants?: ProductSummaryVariant[];
|
|
44
|
+
code?: string;
|
|
45
|
+
price?: ProductSummaryPrice;
|
|
46
|
+
quantity?: ProductSummaryQuantity;
|
|
47
|
+
button?: ProductSummaryButton;
|
|
48
|
+
validity?: {
|
|
12
49
|
label: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
50
|
+
options: {
|
|
51
|
+
label: string;
|
|
52
|
+
valid: boolean;
|
|
53
|
+
}[];
|
|
17
54
|
};
|
|
18
|
-
quantityLabel: string;
|
|
19
|
-
quantity: number;
|
|
20
|
-
buttonLabel: string;
|
|
21
55
|
additionalInfo?: {
|
|
22
56
|
icon: string;
|
|
23
57
|
label: string;
|
package/dist/icons-list.json
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export type { SwitchProps } from './components/atoms/Switch/types';
|
|
|
25
25
|
export type { TextAreaProps } from './components/atoms/TextArea/types';
|
|
26
26
|
export type { TipsProps } from './components/atoms/Tips/types';
|
|
27
27
|
export type { WarningBlockProps } from './components/atoms/WarningBlock/types';
|
|
28
|
+
export type { CopyCodeProps } from './components/atoms/CopyCode/types';
|
|
28
29
|
export type { BottomSheetChangeReason, BottomSheetProps } from './components/molecules/BottomSheet/types';
|
|
29
30
|
export type { CounterButtonsProps } from './components/molecules/CounterButtons/types';
|
|
30
31
|
export type { DatePickerProps } from './components/molecules/DatePicker/types';
|
|
@@ -59,7 +60,7 @@ export type { MenuSectionItem } from './components/organisms/MenuSection/types';
|
|
|
59
60
|
export type { MyEditorProps } from './components/organisms/MyEditor/types';
|
|
60
61
|
export type { PageNavigationProps } from './components/organisms/PageNavigation/types';
|
|
61
62
|
export type { ProductCardProps } from './components/organisms/ProductCard/types';
|
|
62
|
-
export type { ProductSummaryProps } from './components/organisms/ProductSummary/types';
|
|
63
|
+
export type { ProductSummaryProps, ProductSummaryPrice, ProductSummaryQuantity, ProductSummaryButton, ProductSummaryVariant } from './components/organisms/ProductSummary/types';
|
|
63
64
|
export { CellContentType, CellFilterType } from './components/organisms/Table';
|
|
64
65
|
export type { CellContent, CellProps, ColumnOrder, ColumnType, MatchMode, SortConfig, TableProps, TableRequestData } from './components/organisms/Table/types';
|
|
65
66
|
export type { TransactionProps } from './components/organisms/Transaction/types';
|