@club-employes/utopia 4.63.0 → 4.66.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/Button/Button.d.ts +1 -1
- package/dist/components/atoms/Button/types.d.ts +1 -1
- package/dist/components/atoms/RangeSlider/RangeSlider.d.ts +3 -3
- package/dist/components/atoms/RangeSlider/types.d.ts +1 -1
- package/dist/components/molecules/DropFilter/DropFilter.d.ts +5 -1
- package/dist/components/molecules/DropFilter/types.d.ts +3 -1
- package/dist/components/molecules/FilterChip/FilterChip.d.ts +1 -6
- package/dist/components/molecules/FilterChip/types.d.ts +6 -1
- package/dist/components/molecules/Modal/Modal.d.ts +6 -6
- package/dist/components/molecules/PriceTag/types.d.ts +4 -0
- package/dist/components/molecules/Tabs/Tab.d.ts +19 -0
- package/dist/components/molecules/Tabs/Tabs.d.ts +14 -0
- package/dist/components/molecules/Tabs/index.d.ts +2 -0
- package/dist/components/molecules/Tabs/types.d.ts +14 -0
- package/dist/components/molecules/index.d.ts +3 -0
- package/dist/components/organisms/FilterGroup/FilterGroup.d.ts +13 -0
- package/dist/components/organisms/FilterGroup/index.d.ts +1 -0
- package/dist/components/organisms/FilterGroup/types.d.ts +18 -0
- package/dist/components/organisms/FilterPrice/FilterPrice.d.ts +2 -2
- package/dist/components/organisms/FilterPrice/types.d.ts +1 -1
- package/dist/components/organisms/index.d.ts +2 -0
- package/dist/composables/useTabsNavigation.d.ts +10 -0
- package/dist/icons-list.json +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2879 -2542
- package/dist/utopia.css +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ declare const __VLS_component: DefineComponent<ButtonProps, {}, {}, {}, {}, Comp
|
|
|
15
15
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
18
|
-
variant: "primary" | "secondary" | "tertiary";
|
|
18
|
+
variant: "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger";
|
|
19
19
|
disabled: boolean;
|
|
20
20
|
loading: boolean;
|
|
21
21
|
iconPosition: "left" | "right";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { RangeSliderProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<RangeSliderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
|
-
"update
|
|
4
|
+
"update:modelValue": (value: number | [number, number]) => any;
|
|
5
5
|
}, string, PublicProps, Readonly<RangeSliderProps> & Readonly<{
|
|
6
|
-
"onUpdate
|
|
6
|
+
"onUpdate:modelValue"?: ((value: number | [number, number]) => any) | undefined;
|
|
7
7
|
}>, {
|
|
8
8
|
size: "medium" | "large";
|
|
9
|
+
modelValue: number | [number, number];
|
|
9
10
|
min: number;
|
|
10
|
-
currentValue: number | [number, number];
|
|
11
11
|
showLabels: boolean;
|
|
12
12
|
unit: string;
|
|
13
13
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -12,7 +12,11 @@ declare function __VLS_template(): {
|
|
|
12
12
|
rootEl: any;
|
|
13
13
|
};
|
|
14
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: DefineComponent<DropFilterProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DropFilterProps> & Readonly<{}>, {
|
|
15
|
+
declare const __VLS_component: DefineComponent<DropFilterProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DropFilterProps> & Readonly<{}>, {
|
|
16
|
+
activeFiltersCount: number;
|
|
17
|
+
isSort: boolean;
|
|
18
|
+
isDefaultSort: boolean;
|
|
19
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
16
20
|
triggerRef: HTMLDivElement;
|
|
17
21
|
menuRef: HTMLDivElement;
|
|
18
22
|
}, any>;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { FilterChipProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
declare const _default: DefineComponent<FilterChipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
|
-
"update:filters": (filters: Record<string, string>) => any;
|
|
5
|
-
}, string, PublicProps, Readonly<FilterChipProps> & Readonly<{
|
|
6
|
-
"onUpdate:filters"?: ((filters: Record<string, string>) => any) | undefined;
|
|
7
|
-
}>, {
|
|
3
|
+
declare const _default: DefineComponent<FilterChipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<FilterChipProps> & Readonly<{}>, {
|
|
8
4
|
size: "extra-small" | "small" | "medium" | "large";
|
|
9
5
|
variant: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
10
6
|
disabled: boolean;
|
|
11
7
|
removable: boolean;
|
|
12
|
-
filters: Record<string, any>;
|
|
13
8
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
9
|
export default _default;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
export interface FilterChipItem {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
remove: () => void;
|
|
5
|
+
}
|
|
1
6
|
export interface FilterChipProps {
|
|
2
|
-
|
|
7
|
+
modelValue: FilterChipItem[];
|
|
3
8
|
disabled?: boolean;
|
|
4
9
|
removable?: boolean;
|
|
5
10
|
variant?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
@@ -15,7 +15,7 @@ declare function __VLS_template(): {
|
|
|
15
15
|
$: ComponentInternalInstance;
|
|
16
16
|
$data: {};
|
|
17
17
|
$props: {
|
|
18
|
-
readonly variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
18
|
+
readonly variant?: "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
19
19
|
readonly size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
20
20
|
readonly disabled?: boolean | undefined;
|
|
21
21
|
readonly loading?: boolean | undefined;
|
|
@@ -44,7 +44,7 @@ declare function __VLS_template(): {
|
|
|
44
44
|
click: (event: MouseEvent) => any;
|
|
45
45
|
}, string, {
|
|
46
46
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
47
|
-
variant: "primary" | "secondary" | "tertiary";
|
|
47
|
+
variant: "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger";
|
|
48
48
|
disabled: boolean;
|
|
49
49
|
loading: boolean;
|
|
50
50
|
iconPosition: "left" | "right";
|
|
@@ -71,7 +71,7 @@ declare function __VLS_template(): {
|
|
|
71
71
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
72
72
|
} & Readonly<{
|
|
73
73
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
74
|
-
variant: "primary" | "secondary" | "tertiary";
|
|
74
|
+
variant: "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger";
|
|
75
75
|
disabled: boolean;
|
|
76
76
|
loading: boolean;
|
|
77
77
|
iconPosition: "left" | "right";
|
|
@@ -112,7 +112,7 @@ declare const __VLS_component: DefineComponent<ModalProps, {}, {}, {}, {}, Compo
|
|
|
112
112
|
$: ComponentInternalInstance;
|
|
113
113
|
$data: {};
|
|
114
114
|
$props: {
|
|
115
|
-
readonly variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
115
|
+
readonly variant?: "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
116
116
|
readonly size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
117
117
|
readonly disabled?: boolean | undefined;
|
|
118
118
|
readonly loading?: boolean | undefined;
|
|
@@ -141,7 +141,7 @@ declare const __VLS_component: DefineComponent<ModalProps, {}, {}, {}, {}, Compo
|
|
|
141
141
|
click: (event: MouseEvent) => any;
|
|
142
142
|
}, string, {
|
|
143
143
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
144
|
-
variant: "primary" | "secondary" | "tertiary";
|
|
144
|
+
variant: "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger";
|
|
145
145
|
disabled: boolean;
|
|
146
146
|
loading: boolean;
|
|
147
147
|
iconPosition: "left" | "right";
|
|
@@ -168,7 +168,7 @@ declare const __VLS_component: DefineComponent<ModalProps, {}, {}, {}, {}, Compo
|
|
|
168
168
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
169
169
|
} & Readonly<{
|
|
170
170
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
171
|
-
variant: "primary" | "secondary" | "tertiary";
|
|
171
|
+
variant: "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger";
|
|
172
172
|
disabled: boolean;
|
|
173
173
|
loading: boolean;
|
|
174
174
|
iconPosition: "left" | "right";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TextSize, TextWeight } from '../../atoms/Text/types';
|
|
1
2
|
export interface PriceTagProps {
|
|
2
3
|
variantCount?: number;
|
|
3
4
|
price?: number;
|
|
@@ -8,4 +9,7 @@ export interface PriceTagProps {
|
|
|
8
9
|
isSubventioned?: boolean;
|
|
9
10
|
isDiscounted?: boolean;
|
|
10
11
|
language?: 'fr' | 'en';
|
|
12
|
+
color?: string;
|
|
13
|
+
size?: TextSize;
|
|
14
|
+
weight?: TextWeight;
|
|
11
15
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TabProps } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: DefineComponent<TabProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TabProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TabsProps } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<TabsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
4
|
+
"update:modelValue": (id: string) => any;
|
|
5
|
+
tabChange: (id: string) => any;
|
|
6
|
+
}, string, PublicProps, Readonly<TabsProps> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((id: string) => any) | undefined;
|
|
8
|
+
onTabChange?: ((id: string) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
ariaLabel: string;
|
|
11
|
+
modelValue: string;
|
|
12
|
+
fullWidth: boolean;
|
|
13
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IconSize } from '../../atoms/Icon';
|
|
2
|
+
export interface TabsProps {
|
|
3
|
+
modelValue: string;
|
|
4
|
+
fullWidth?: boolean;
|
|
5
|
+
ariaLabel?: string;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface TabProps {
|
|
9
|
+
label: string;
|
|
10
|
+
id: string;
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
icon?: string;
|
|
13
|
+
iconSize?: IconSize;
|
|
14
|
+
}
|
|
@@ -16,3 +16,6 @@ export type { SlideType, SliderProps } from './Slider';
|
|
|
16
16
|
export { Tooltip } from './Tooltip';
|
|
17
17
|
export { DropFilter } from './DropFilter';
|
|
18
18
|
export { FilterSelect, type FilterSelectOption, type FilterSelectProps } from './FilterSelect';
|
|
19
|
+
export { Tabs } from './Tabs';
|
|
20
|
+
export { Tab } from './Tabs';
|
|
21
|
+
export type { TabsProps, TabProps } from './Tabs/types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FilterGroupProps, Filter } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<FilterGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
4
|
+
"update:filters": (value: Filter[]) => any;
|
|
5
|
+
"reset-filters": () => any;
|
|
6
|
+
}, string, PublicProps, Readonly<FilterGroupProps> & Readonly<{
|
|
7
|
+
"onUpdate:filters"?: ((value: Filter[]) => any) | undefined;
|
|
8
|
+
"onReset-filters"?: (() => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
label: string;
|
|
11
|
+
resetFiltersLabel: string;
|
|
12
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FilterGroup } from './FilterGroup';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FilterSelectProps } from '../../molecules';
|
|
2
|
+
import { FilterPriceProps } from '../FilterPrice/types';
|
|
3
|
+
export type FilterType = 'Select' | 'Price';
|
|
4
|
+
export interface Filter {
|
|
5
|
+
label: string;
|
|
6
|
+
type: FilterType;
|
|
7
|
+
value: FilterSelectProps | FilterPriceProps;
|
|
8
|
+
}
|
|
9
|
+
export interface Sort {
|
|
10
|
+
label: string;
|
|
11
|
+
value: FilterSelectProps;
|
|
12
|
+
}
|
|
13
|
+
export interface FilterGroupProps {
|
|
14
|
+
label?: string;
|
|
15
|
+
filters: Filter[];
|
|
16
|
+
sort?: Sort;
|
|
17
|
+
resetFiltersLabel?: string;
|
|
18
|
+
}
|
|
@@ -2,9 +2,9 @@ import { FilterPriceProps } from './types';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { Currency } from '../..';
|
|
4
4
|
declare const _default: DefineComponent<FilterPriceProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
5
|
-
"update
|
|
5
|
+
"update:modelValue": (value: [number, number]) => any;
|
|
6
6
|
}, string, PublicProps, Readonly<FilterPriceProps> & Readonly<{
|
|
7
|
-
"onUpdate
|
|
7
|
+
"onUpdate:modelValue"?: ((value: [number, number]) => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
min: number;
|
|
10
10
|
currency: Currency;
|
|
@@ -7,3 +7,5 @@ export { Breadcrumbs } from './Breadcrumbs';
|
|
|
7
7
|
export { ProductCard } from './ProductCard';
|
|
8
8
|
export { FilterPrice } from './FilterPrice';
|
|
9
9
|
export { PageNavigation } from './PageNavigation';
|
|
10
|
+
export { FilterGroup } from './FilterGroup';
|
|
11
|
+
export type { FilterGroupProps, Filter, Sort } from './FilterGroup/types';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref, VNode, ComputedRef, VNodeProps } from 'vue';
|
|
2
|
+
import { TabsProps } from '../components/molecules/Tabs/types';
|
|
3
|
+
export declare function useTabs(props: TabsProps, emit: any, tabVNodes: Ref<VNode[]>): {
|
|
4
|
+
tabRefs: Ref<Record<string, HTMLButtonElement | null>, Record<string, HTMLButtonElement | null>>;
|
|
5
|
+
tabs: ComputedRef<(( VNodeProps & {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}) | null)[]>;
|
|
8
|
+
updateActiveTab: (tabProps: any) => void;
|
|
9
|
+
handleKeyDown: (event: KeyboardEvent, index: number) => void;
|
|
10
|
+
};
|
package/dist/icons-list.json
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export type { BreadcrumbsItem, BreadcrumbsProps } from './components/organisms/B
|
|
|
28
28
|
export type { FilterPriceProps } from './components/organisms/FilterPrice/types';
|
|
29
29
|
export type { PageNavigationProps } from './components/organisms/PageNavigation/types';
|
|
30
30
|
export type { ProductCardProps } from './components/organisms/ProductCard/types';
|
|
31
|
+
export type { FilterGroupProps, Filter, Sort } from './components/organisms/FilterGroup/types';
|
|
31
32
|
export type { AuthLayoutProps } from './components/layouts/AuthLayout/types';
|
|
32
33
|
export { clubEmployesDark, clubEmployesLight } from './themes/club-employes';
|
|
33
34
|
export { gifteoDark, gifteoLight } from './themes/gifteo';
|