@club-employes/utopia 4.63.0 → 4.67.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.
Files changed (30) hide show
  1. package/dist/components/atoms/Button/Button.d.ts +1 -1
  2. package/dist/components/atoms/Button/types.d.ts +1 -1
  3. package/dist/components/atoms/RangeSlider/RangeSlider.d.ts +3 -3
  4. package/dist/components/atoms/RangeSlider/types.d.ts +1 -1
  5. package/dist/components/molecules/DatePicker/DatePicker.d.ts +26 -0
  6. package/dist/components/molecules/DatePicker/index.d.ts +1 -0
  7. package/dist/components/molecules/DatePicker/types.d.ts +15 -0
  8. package/dist/components/molecules/DropFilter/DropFilter.d.ts +5 -1
  9. package/dist/components/molecules/DropFilter/types.d.ts +3 -1
  10. package/dist/components/molecules/FilterChip/FilterChip.d.ts +1 -6
  11. package/dist/components/molecules/FilterChip/types.d.ts +6 -1
  12. package/dist/components/molecules/Modal/Modal.d.ts +6 -6
  13. package/dist/components/molecules/PriceTag/types.d.ts +4 -0
  14. package/dist/components/molecules/Tabs/Tab.d.ts +19 -0
  15. package/dist/components/molecules/Tabs/Tabs.d.ts +14 -0
  16. package/dist/components/molecules/Tabs/index.d.ts +2 -0
  17. package/dist/components/molecules/Tabs/types.d.ts +14 -0
  18. package/dist/components/molecules/index.d.ts +5 -0
  19. package/dist/components/organisms/FilterGroup/FilterGroup.d.ts +13 -0
  20. package/dist/components/organisms/FilterGroup/index.d.ts +1 -0
  21. package/dist/components/organisms/FilterGroup/types.d.ts +18 -0
  22. package/dist/components/organisms/FilterPrice/FilterPrice.d.ts +2 -2
  23. package/dist/components/organisms/FilterPrice/types.d.ts +1 -1
  24. package/dist/components/organisms/index.d.ts +2 -0
  25. package/dist/composables/useTabsNavigation.d.ts +10 -0
  26. package/dist/icons-list.json +1 -1
  27. package/dist/index.d.ts +2 -0
  28. package/dist/index.js +3383 -2694
  29. package/dist/utopia.css +1 -1
  30. 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,5 +1,5 @@
1
1
  export interface ButtonProps {
2
- variant?: 'primary' | 'secondary' | 'tertiary';
2
+ variant?: 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
3
3
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
4
  disabled?: boolean;
5
5
  loading?: boolean;
@@ -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-value": (value: number | [number, number]) => any;
4
+ "update:modelValue": (value: number | [number, number]) => any;
5
5
  }, string, PublicProps, Readonly<RangeSliderProps> & Readonly<{
6
- "onUpdate-value"?: ((value: number | [number, number]) => any) | undefined;
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, {
@@ -1,7 +1,7 @@
1
1
  export interface RangeSliderProps {
2
2
  min?: number;
3
3
  max: number;
4
- currentValue: number | [number, number];
4
+ modelValue: number | [number, number];
5
5
  showLabels?: boolean;
6
6
  unit?: string;
7
7
  size?: 'medium' | 'large';
@@ -0,0 +1,26 @@
1
+ import { DatePickerProps } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<DatePickerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4
+ change: (value: string | Date | null) => any;
5
+ "update:modelValue": (value: string | Date | null) => any;
6
+ }, string, PublicProps, Readonly<DatePickerProps> & Readonly<{
7
+ onChange?: ((value: string | Date | null) => any) | undefined;
8
+ "onUpdate:modelValue"?: ((value: string | Date | null) => any) | undefined;
9
+ }>, {
10
+ label: string;
11
+ message: string;
12
+ size: "small" | "medium" | "large";
13
+ disabled: boolean;
14
+ modelValue: string | Date | null;
15
+ placeholder: string;
16
+ state: "default" | "valid" | "error";
17
+ readonly: boolean;
18
+ clearable: boolean;
19
+ format: string;
20
+ enableTime: boolean;
21
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
22
+ containerRef: HTMLDivElement;
23
+ triggerRef: HTMLDivElement;
24
+ menuRef: HTMLDivElement;
25
+ }, HTMLDivElement>;
26
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as DatePicker } from './DatePicker';
@@ -0,0 +1,15 @@
1
+ export interface DatePickerProps {
2
+ modelValue?: string | Date | null;
3
+ label?: string;
4
+ placeholder?: string;
5
+ disabled?: boolean;
6
+ readonly?: boolean;
7
+ clearable?: boolean;
8
+ state?: 'default' | 'valid' | 'error';
9
+ message?: string;
10
+ size?: 'small' | 'medium' | 'large';
11
+ format?: string;
12
+ minDate?: Date | string;
13
+ maxDate?: Date | string;
14
+ enableTime?: boolean;
15
+ }
@@ -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<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
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,4 +1,6 @@
1
1
  export interface DropFilterProps {
2
2
  label: string;
3
- activeFiltersCount: number;
3
+ activeFiltersCount?: number;
4
+ isSort?: boolean;
5
+ isDefaultSort?: boolean;
4
6
  }
@@ -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
- filters: Record<string, any>;
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,2 @@
1
+ export { default as Tabs } from './Tabs';
2
+ export { default as Tab } from './Tab';
@@ -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,8 @@ 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';
22
+ export { DatePicker } from './DatePicker';
23
+ export type { DatePickerProps } from './DatePicker';
@@ -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-value": (value: [number, number]) => any;
5
+ "update:modelValue": (value: [number, number]) => any;
6
6
  }, string, PublicProps, Readonly<FilterPriceProps> & Readonly<{
7
- "onUpdate-value"?: ((value: [number, number]) => any) | undefined;
7
+ "onUpdate:modelValue"?: ((value: [number, number]) => any) | undefined;
8
8
  }>, {
9
9
  min: number;
10
10
  currency: Currency;
@@ -2,7 +2,7 @@ import { Currency } from '../../atoms';
2
2
  export interface FilterPriceProps {
3
3
  labelMin?: string;
4
4
  labelMax?: string;
5
- currentValue: [number, number];
5
+ modelValue: [number, number];
6
6
  min?: number;
7
7
  max: number;
8
8
  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
+ };
@@ -1,5 +1,5 @@
1
1
  {
2
- "generated": "2025-12-04T10:15:33.252Z",
2
+ "generated": "2025-12-19T10:30:00.901Z",
3
3
  "count": 1239,
4
4
  "icons": [
5
5
  "Accessibility",
package/dist/index.d.ts CHANGED
@@ -24,10 +24,12 @@ export type { ModalChangeReason, ModalProps } from './components/molecules/Modal
24
24
  export type { PriceTagProps } from './components/molecules/PriceTag/types';
25
25
  export type { TooltipProps } from './components/molecules/Tooltip/types';
26
26
  export type { FilterSelectOption, FilterSelectProps } from './components/molecules/FilterSelect/types';
27
+ export type { DatePickerProps } from './components/molecules/DatePicker/types';
27
28
  export type { BreadcrumbsItem, BreadcrumbsProps } from './components/organisms/Breadcrumbs/types';
28
29
  export type { FilterPriceProps } from './components/organisms/FilterPrice/types';
29
30
  export type { PageNavigationProps } from './components/organisms/PageNavigation/types';
30
31
  export type { ProductCardProps } from './components/organisms/ProductCard/types';
32
+ export type { FilterGroupProps, Filter, Sort } from './components/organisms/FilterGroup/types';
31
33
  export type { AuthLayoutProps } from './components/layouts/AuthLayout/types';
32
34
  export { clubEmployesDark, clubEmployesLight } from './themes/club-employes';
33
35
  export { gifteoDark, gifteoLight } from './themes/gifteo';