@club-employes/utopia 4.81.0 → 4.83.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 (32) hide show
  1. package/dist/components/atoms/Checkbox/Checkbox.d.ts +1 -0
  2. package/dist/components/atoms/Checkbox/types.d.ts +1 -0
  3. package/dist/components/molecules/DropDown/types.d.ts +1 -0
  4. package/dist/components/molecules/FilterLocation/FilterLocation.d.ts +16 -0
  5. package/dist/components/molecules/FilterLocation/index.d.ts +2 -0
  6. package/dist/components/molecules/FilterLocation/types.d.ts +19 -0
  7. package/dist/components/molecules/FilterSelect/types.d.ts +1 -0
  8. package/dist/components/molecules/index.d.ts +2 -1
  9. package/dist/components/organisms/Accordion/Accordion.d.ts +35 -0
  10. package/dist/components/organisms/Accordion/AccordionItem.d.ts +36 -0
  11. package/dist/components/organisms/Accordion/index.d.ts +3 -0
  12. package/dist/components/organisms/Accordion/types.d.ts +36 -0
  13. package/dist/components/organisms/FilterGroup/types.d.ts +3 -3
  14. package/dist/components/organisms/index.d.ts +3 -0
  15. package/dist/composables/useGeolocation.d.ts +8 -0
  16. package/dist/{dark-gUmiZXhJ.js → dark-C-1-7iB8.js} +1 -1
  17. package/dist/{dark-CGsOK8c0.js → dark-CeTSRV8L.js} +1 -1
  18. package/dist/icons-list.json +1 -1
  19. package/dist/index.d.ts +2 -0
  20. package/dist/index.js +6886 -6537
  21. package/dist/{light-BmxdNyqF.js → light-AtV3A0SQ.js} +1 -1
  22. package/dist/{light-CqrOB4q6.js → light-CNMWfMek.js} +1 -1
  23. package/dist/tokens/club-employes/dark.css +1 -0
  24. package/dist/tokens/club-employes/dark.js +1 -0
  25. package/dist/tokens/club-employes/light.css +1 -0
  26. package/dist/tokens/club-employes/light.js +1 -0
  27. package/dist/tokens/gifteo/dark.css +1 -0
  28. package/dist/tokens/gifteo/dark.js +1 -0
  29. package/dist/tokens/gifteo/light.css +1 -0
  30. package/dist/tokens/gifteo/light.js +1 -0
  31. package/dist/utopia.css +1 -1
  32. package/package.json +1 -1
@@ -17,6 +17,7 @@ declare const __VLS_component: DefineComponent<CheckboxProps, {}, {}, {}, {}, Co
17
17
  size: "small" | "medium" | "large";
18
18
  disabled: boolean;
19
19
  modelValue: boolean;
20
+ focusable: boolean;
20
21
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
21
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
23
  export default _default;
@@ -1,5 +1,6 @@
1
1
  export interface CheckboxProps {
2
2
  modelValue?: boolean;
3
3
  disabled?: boolean;
4
+ focusable?: boolean;
4
5
  size?: 'small' | 'medium' | 'large';
5
6
  }
@@ -1,6 +1,7 @@
1
1
  export interface DropDownOption {
2
2
  value: string | number | boolean;
3
3
  label: string;
4
+ secondaryLabel?: string;
4
5
  disabled?: boolean;
5
6
  }
6
7
  export interface DropDownProps {
@@ -0,0 +1,16 @@
1
+ import { FilterLocationProps, FilterLocationValue } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { DropDownOption } from '../DropDown/types';
4
+ declare const _default: DefineComponent<FilterLocationProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
5
+ "update:modelValue": (value: FilterLocationValue) => any;
6
+ }, string, PublicProps, Readonly<FilterLocationProps> & Readonly<{
7
+ "onUpdate:modelValue"?: ((value: FilterLocationValue) => any) | undefined;
8
+ }>, {
9
+ regionLabel: string;
10
+ orLabel: string;
11
+ nearMeLabel: string;
12
+ geolocDisabledLabel: string;
13
+ regions: DropDownOption[];
14
+ maxDistance: number;
15
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as FilterLocation } from './FilterLocation';
2
+ export type { FilterLocationProps } from './types';
@@ -0,0 +1,19 @@
1
+ import { DropDownOption } from '../DropDown/types';
2
+ export interface FilterLocationValue {
3
+ region?: string;
4
+ location: {
5
+ active: boolean;
6
+ distance?: number;
7
+ latitude?: number;
8
+ longitude?: number;
9
+ };
10
+ }
11
+ export interface FilterLocationProps {
12
+ regionLabel?: string;
13
+ orLabel?: string;
14
+ nearMeLabel?: string;
15
+ geolocDisabledLabel?: string;
16
+ modelValue: FilterLocationValue;
17
+ regions?: DropDownOption[];
18
+ maxDistance?: number;
19
+ }
@@ -1,6 +1,7 @@
1
1
  export interface FilterSelectOption {
2
2
  value: string;
3
3
  label: string;
4
+ count?: number;
4
5
  active: boolean;
5
6
  imageUrl?: string;
6
7
  children?: {
@@ -1,7 +1,7 @@
1
1
  export { BottomSheet } from './BottomSheet';
2
2
  export type { BottomSheetChangeReason, BottomSheetProps } from './BottomSheet/types';
3
3
  export { DatePicker } from './DatePicker';
4
- export type { DatePickerProps } from './DatePicker';
4
+ export type { DatePickerProps } from './DatePicker/types';
5
5
  export { DropDown } from './DropDown';
6
6
  export { DropFilter } from './DropFilter';
7
7
  export { FeedbackState } from './FeedbackState';
@@ -22,3 +22,4 @@ export type { SlideType, SliderProps } from './Slider';
22
22
  export { Tab, Tabs } from './Tabs';
23
23
  export type { TabProps, TabsProps } from './Tabs/types';
24
24
  export { Tooltip } from './Tooltip';
25
+ export { FilterLocation, type FilterLocationProps } from './FilterLocation';
@@ -0,0 +1,35 @@
1
+ import { AccordionProps } 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<AccordionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
13
+ change: (value: string[]) => any;
14
+ "update:modelValue": (value: string[]) => any;
15
+ }, string, PublicProps, Readonly<AccordionProps> & Readonly<{
16
+ onChange?: ((value: string[]) => any) | undefined;
17
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
18
+ }>, {
19
+ size: "sm" | "md" | "lg";
20
+ variant: "primary" | "secondary" | "tertiary";
21
+ disabled: boolean;
22
+ ariaLabel: string;
23
+ modelValue: string[];
24
+ keepContentMounted: boolean;
25
+ defaultExpandedItems: string[];
26
+ allowMultiple: boolean;
27
+ collapsible: boolean;
28
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
+ export default _default;
31
+ type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,36 @@
1
+ import { AccordionItemProps } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { IconSize } from '../../atoms/Icon';
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ header?(_: {
8
+ expanded: boolean;
9
+ }): any;
10
+ icon?(_: {
11
+ expanded: boolean;
12
+ }): any;
13
+ content?(_: {
14
+ expanded: boolean;
15
+ }): any;
16
+ };
17
+ refs: {};
18
+ rootEl: HTMLDivElement;
19
+ };
20
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
+ declare const __VLS_component: DefineComponent<AccordionItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<AccordionItemProps> & Readonly<{}>, {
22
+ icon: string;
23
+ iconPosition: "left" | "right";
24
+ iconSize: IconSize;
25
+ open: boolean;
26
+ iconStrokeWidth: number | string;
27
+ iconColor: string;
28
+ collapsible: boolean;
29
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
+ export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,3 @@
1
+ export { default as Accordion } from './Accordion';
2
+ export type { AccordionProps, AccordionItemProps } from './types';
3
+ export { default as AccordionItem } from './AccordionItem';
@@ -0,0 +1,36 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { IconSize } from '../../atoms/Icon/types';
3
+ export interface AccordionItemProps {
4
+ id: string;
5
+ title: string;
6
+ disabled?: boolean;
7
+ open?: boolean;
8
+ collapsible?: boolean;
9
+ icon?: string;
10
+ iconPosition?: 'left' | 'right';
11
+ iconSize?: IconSize;
12
+ iconColor?: string;
13
+ iconStrokeWidth?: number | string;
14
+ }
15
+ export interface AccordionProps {
16
+ modelValue?: string[];
17
+ keepContentMounted?: boolean;
18
+ defaultExpandedItems?: string[];
19
+ allowMultiple?: boolean;
20
+ collapsible?: boolean;
21
+ size?: 'sm' | 'md' | 'lg';
22
+ variant?: 'primary' | 'secondary' | 'tertiary';
23
+ ariaLabel?: string;
24
+ disabled?: boolean;
25
+ }
26
+ export interface AccordionContext {
27
+ expandedItems: ComputedRef<string[]>;
28
+ toggleItem: (id: string, forceCollapse?: boolean) => void;
29
+ registerItem: (id: string, collapsible: boolean | undefined, open: boolean | undefined) => void;
30
+ getItemCollapsible: (id: string) => boolean;
31
+ keepContentMounted: ComputedRef<boolean>;
32
+ disabled: ComputedRef<boolean>;
33
+ size: ComputedRef<'sm' | 'md' | 'lg'>;
34
+ variant: 'primary' | 'secondary' | 'tertiary';
35
+ collapsible: ComputedRef<boolean>;
36
+ }
@@ -1,10 +1,10 @@
1
- import { FilterSelectProps } from '../../molecules';
1
+ import { FilterSelectProps, FilterLocationProps } from '../../molecules';
2
2
  import { FilterPriceProps } from '../FilterPrice/types';
3
- export type FilterType = 'Select' | 'Price';
3
+ export type FilterType = 'Select' | 'Price' | 'Location';
4
4
  export interface Filter {
5
5
  label: string;
6
6
  type: FilterType;
7
- value: FilterSelectProps | FilterPriceProps;
7
+ value: FilterSelectProps | FilterPriceProps | FilterLocationProps;
8
8
  }
9
9
  export interface Sort {
10
10
  label: string;
@@ -12,3 +12,6 @@ export { DropFile } from './DropFile';
12
12
  export type { DropFileProps, DropFileVariant, DropFileErrorCode, DropFileFileData, DropFileDropEvent, DropFileErrorEvent } from './DropFile';
13
13
  export { FilterGroup } from './FilterGroup';
14
14
  export type { FilterGroupProps, Filter, Sort } from './FilterGroup/types';
15
+ export { Accordion } from './Accordion';
16
+ export type { AccordionProps, AccordionItemProps } from './Accordion';
17
+ export { AccordionItem } from './Accordion';
@@ -0,0 +1,8 @@
1
+ import { Ref } from 'vue';
2
+ export declare function useGeolocation(): {
3
+ geolocationEnabled: Ref<boolean>;
4
+ getLocation: (callback: (active: boolean, coords?: {
5
+ latitude: number;
6
+ longitude: number;
7
+ }) => void) => void;
8
+ };