@club-employes/utopia 4.67.0 → 4.68.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.
@@ -25,10 +25,10 @@ declare const _default: DefineComponent<DropDownProps, {}, {}, {}, {}, Component
25
25
  placeholder: string;
26
26
  state: "default" | "error" | "valid" | "incomplete" | "completed";
27
27
  readonly: boolean;
28
+ clearable: boolean;
28
29
  options: DropDownOption[];
29
30
  multiple: boolean;
30
31
  searchable: boolean;
31
- clearable: boolean;
32
32
  maxHeight: string;
33
33
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
34
34
  triggerRef: HTMLButtonElement;
@@ -0,0 +1,245 @@
1
+ import { DropDownOption, DropDownProps } from '../DropDown/types';
2
+ import { InputPhoneProps } from './types';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
4
+ import { InputTextProps } from '../../..';
5
+ declare const _default: DefineComponent<InputPhoneProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
6
+ blur: () => any;
7
+ change: (value: string | null) => any;
8
+ focus: () => any;
9
+ "update:modelValue": (value: string | null) => any;
10
+ "country-change": (countryCode: string) => any;
11
+ "validity-change": (isValid: boolean) => any;
12
+ }, string, PublicProps, Readonly<InputPhoneProps> & Readonly<{
13
+ onBlur?: (() => any) | undefined;
14
+ onChange?: ((value: string | null) => any) | undefined;
15
+ onFocus?: (() => any) | undefined;
16
+ "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
17
+ "onCountry-change"?: ((countryCode: string) => any) | undefined;
18
+ "onValidity-change"?: ((isValid: boolean) => any) | undefined;
19
+ }>, {
20
+ label: string;
21
+ error: string | boolean;
22
+ name: string;
23
+ size: "small" | "medium" | "large";
24
+ required: boolean;
25
+ success: boolean;
26
+ disabled: boolean;
27
+ modelValue: string | null;
28
+ placeholder: string;
29
+ id: string;
30
+ defaultCountry: string;
31
+ preferredCountries: string[];
32
+ searchPlaceholder: string;
33
+ helperText: string;
34
+ noResultsText: string;
35
+ example: boolean;
36
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
37
+ containerRef: HTMLDivElement;
38
+ controlRef: HTMLDivElement;
39
+ inputRef: CreateComponentPublicInstanceWithMixins<Readonly< InputTextProps> & Readonly<{
40
+ onInput?: ((event: Event) => any) | undefined;
41
+ onBlur?: ((event: FocusEvent) => any) | undefined;
42
+ onChange?: ((event: Event) => any) | undefined;
43
+ onFocus?: ((event: FocusEvent) => any) | undefined;
44
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
45
+ onPaste?: ((event: ClipboardEvent) => any) | undefined;
46
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
47
+ "onIcon-click"?: ((event: MouseEvent) => any) | undefined;
48
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
49
+ input: (event: Event) => any;
50
+ blur: (event: FocusEvent) => any;
51
+ change: (event: Event) => any;
52
+ focus: (event: FocusEvent) => any;
53
+ keydown: (event: KeyboardEvent) => any;
54
+ paste: (event: ClipboardEvent) => any;
55
+ "update:modelValue": (value: string) => any;
56
+ "icon-click": (event: MouseEvent) => any;
57
+ }, PublicProps, {
58
+ label: string;
59
+ message: string;
60
+ size: "extra-small" | "small" | "medium" | "large";
61
+ icon: string;
62
+ type: "text" | "email" | "password" | "number" | "tel" | "url";
63
+ required: boolean;
64
+ disabled: boolean;
65
+ iconPosition: "left" | "right";
66
+ modelValue: string;
67
+ placeholder: string;
68
+ state: "default" | "error" | "valid" | "incomplete" | "completed";
69
+ readonly: boolean;
70
+ iconClickable: boolean;
71
+ step: number;
72
+ isCode: boolean;
73
+ forceModelValueOnBlur: boolean;
74
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
75
+ inputRef: HTMLInputElement;
76
+ }, any, ComponentProvideOptions, {
77
+ P: {};
78
+ B: {};
79
+ D: {};
80
+ C: {};
81
+ M: {};
82
+ Defaults: {};
83
+ }, Readonly< InputTextProps> & Readonly<{
84
+ onInput?: ((event: Event) => any) | undefined;
85
+ onBlur?: ((event: FocusEvent) => any) | undefined;
86
+ onChange?: ((event: Event) => any) | undefined;
87
+ onFocus?: ((event: FocusEvent) => any) | undefined;
88
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
89
+ onPaste?: ((event: ClipboardEvent) => any) | undefined;
90
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
91
+ "onIcon-click"?: ((event: MouseEvent) => any) | undefined;
92
+ }>, {}, {}, {}, {}, {
93
+ label: string;
94
+ message: string;
95
+ size: "extra-small" | "small" | "medium" | "large";
96
+ icon: string;
97
+ type: "text" | "email" | "password" | "number" | "tel" | "url";
98
+ required: boolean;
99
+ disabled: boolean;
100
+ iconPosition: "left" | "right";
101
+ modelValue: string;
102
+ placeholder: string;
103
+ state: "default" | "error" | "valid" | "incomplete" | "completed";
104
+ readonly: boolean;
105
+ iconClickable: boolean;
106
+ step: number;
107
+ isCode: boolean;
108
+ forceModelValueOnBlur: boolean;
109
+ }> | null;
110
+ countryDropdownRef: CreateComponentPublicInstanceWithMixins<Readonly< DropDownProps> & Readonly<{
111
+ onBlur?: ((event: FocusEvent) => any) | undefined;
112
+ onChange?: ((value: string | number | (string | number)[]) => any) | undefined;
113
+ onClose?: (() => any) | undefined;
114
+ onFocus?: ((event: FocusEvent) => any) | undefined;
115
+ "onUpdate:modelValue"?: ((value: string | number | (string | number)[]) => any) | undefined;
116
+ onOpen?: (() => any) | undefined;
117
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
118
+ blur: (event: FocusEvent) => any;
119
+ change: (value: string | number | (string | number)[]) => any;
120
+ close: () => any;
121
+ focus: (event: FocusEvent) => any;
122
+ "update:modelValue": (value: string | number | (string | number)[]) => any;
123
+ open: () => any;
124
+ }, PublicProps, {
125
+ label: string;
126
+ message: string;
127
+ size: "small" | "medium" | "large";
128
+ required: boolean;
129
+ disabled: boolean;
130
+ modelValue: string | number | (string | number)[];
131
+ placeholder: string;
132
+ state: "default" | "error" | "valid" | "incomplete" | "completed";
133
+ readonly: boolean;
134
+ clearable: boolean;
135
+ options: DropDownOption[];
136
+ multiple: boolean;
137
+ searchable: boolean;
138
+ maxHeight: string;
139
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
140
+ triggerRef: HTMLButtonElement;
141
+ chipsScrollRef: HTMLDivElement;
142
+ menuRef: HTMLDivElement;
143
+ searchRef: CreateComponentPublicInstanceWithMixins<Readonly< InputTextProps> & Readonly<{
144
+ onInput?: ((event: Event) => any) | undefined;
145
+ onBlur?: ((event: FocusEvent) => any) | undefined;
146
+ onChange?: ((event: Event) => any) | undefined;
147
+ onFocus?: ((event: FocusEvent) => any) | undefined;
148
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
149
+ onPaste?: ((event: ClipboardEvent) => any) | undefined;
150
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
151
+ "onIcon-click"?: ((event: MouseEvent) => any) | undefined;
152
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
153
+ input: (event: Event) => any;
154
+ blur: (event: FocusEvent) => any;
155
+ change: (event: Event) => any;
156
+ focus: (event: FocusEvent) => any;
157
+ keydown: (event: KeyboardEvent) => any;
158
+ paste: (event: ClipboardEvent) => any;
159
+ "update:modelValue": (value: string) => any;
160
+ "icon-click": (event: MouseEvent) => any;
161
+ }, PublicProps, {
162
+ label: string;
163
+ message: string;
164
+ size: "extra-small" | "small" | "medium" | "large";
165
+ icon: string;
166
+ type: "text" | "email" | "password" | "number" | "tel" | "url";
167
+ required: boolean;
168
+ disabled: boolean;
169
+ iconPosition: "left" | "right";
170
+ modelValue: string;
171
+ placeholder: string;
172
+ state: "default" | "error" | "valid" | "incomplete" | "completed";
173
+ readonly: boolean;
174
+ iconClickable: boolean;
175
+ step: number;
176
+ isCode: boolean;
177
+ forceModelValueOnBlur: boolean;
178
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
179
+ inputRef: HTMLInputElement;
180
+ }, any, ComponentProvideOptions, {
181
+ P: {};
182
+ B: {};
183
+ D: {};
184
+ C: {};
185
+ M: {};
186
+ Defaults: {};
187
+ }, Readonly< InputTextProps> & Readonly<{
188
+ onInput?: ((event: Event) => any) | undefined;
189
+ onBlur?: ((event: FocusEvent) => any) | undefined;
190
+ onChange?: ((event: Event) => any) | undefined;
191
+ onFocus?: ((event: FocusEvent) => any) | undefined;
192
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
193
+ onPaste?: ((event: ClipboardEvent) => any) | undefined;
194
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
195
+ "onIcon-click"?: ((event: MouseEvent) => any) | undefined;
196
+ }>, {}, {}, {}, {}, {
197
+ label: string;
198
+ message: string;
199
+ size: "extra-small" | "small" | "medium" | "large";
200
+ icon: string;
201
+ type: "text" | "email" | "password" | "number" | "tel" | "url";
202
+ required: boolean;
203
+ disabled: boolean;
204
+ iconPosition: "left" | "right";
205
+ modelValue: string;
206
+ placeholder: string;
207
+ state: "default" | "error" | "valid" | "incomplete" | "completed";
208
+ readonly: boolean;
209
+ iconClickable: boolean;
210
+ step: number;
211
+ isCode: boolean;
212
+ forceModelValueOnBlur: boolean;
213
+ }> | null;
214
+ }, HTMLDivElement, ComponentProvideOptions, {
215
+ P: {};
216
+ B: {};
217
+ D: {};
218
+ C: {};
219
+ M: {};
220
+ Defaults: {};
221
+ }, Readonly< DropDownProps> & Readonly<{
222
+ onBlur?: ((event: FocusEvent) => any) | undefined;
223
+ onChange?: ((value: string | number | (string | number)[]) => any) | undefined;
224
+ onClose?: (() => any) | undefined;
225
+ onFocus?: ((event: FocusEvent) => any) | undefined;
226
+ "onUpdate:modelValue"?: ((value: string | number | (string | number)[]) => any) | undefined;
227
+ onOpen?: (() => any) | undefined;
228
+ }>, {}, {}, {}, {}, {
229
+ label: string;
230
+ message: string;
231
+ size: "small" | "medium" | "large";
232
+ required: boolean;
233
+ disabled: boolean;
234
+ modelValue: string | number | (string | number)[];
235
+ placeholder: string;
236
+ state: "default" | "error" | "valid" | "incomplete" | "completed";
237
+ readonly: boolean;
238
+ clearable: boolean;
239
+ options: DropDownOption[];
240
+ multiple: boolean;
241
+ searchable: boolean;
242
+ maxHeight: string;
243
+ }> | null;
244
+ }, HTMLDivElement>;
245
+ export default _default;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Liste des pays supportés par le composant InputPhone
3
+ * Triés par ordre alphabétique (français)
4
+ */
5
+ export interface Country {
6
+ /** Code ISO 3166-1 alpha-2 (ex: FR, BE, US) */
7
+ code: string;
8
+ /** Nom du pays en français */
9
+ name: string;
10
+ /** Indicatif téléphonique sans le + (ex: 33, 1, 44) */
11
+ dialCode: string;
12
+ /** Emoji du drapeau */
13
+ flag: string;
14
+ }
15
+ /** Pays par défaut si aucun n'est détecté */
16
+ export declare const DEFAULT_COUNTRY_CODE = "FR";
17
+ /** Liste complète des pays supportés */
18
+ export declare const COUNTRIES: Country[];
19
+ /** Exemples de numéros par pays (format national) */
20
+ export declare const PHONE_EXAMPLES: Record<string, string>;
21
+ /**
22
+ * Trouve un pays par son code ISO
23
+ */
24
+ export declare function findCountryByCode(code: string): Country | undefined;
25
+ /**
26
+ * Vérifie si un code pays existe dans la liste
27
+ */
28
+ export declare function isValidCountryCode(code: string): boolean;
@@ -0,0 +1,3 @@
1
+ export { default as InputPhone } from './InputPhone';
2
+ export { COUNTRIES, DEFAULT_COUNTRY_CODE, PHONE_EXAMPLES, findCountryByCode, isValidCountryCode, type Country } from './countries';
3
+ export type { InputPhoneProps } from './types';
@@ -0,0 +1,18 @@
1
+ export interface InputPhoneProps {
2
+ modelValue?: string | null;
3
+ defaultCountry?: string;
4
+ preferredCountries?: string[];
5
+ placeholder?: string;
6
+ searchPlaceholder?: string;
7
+ helperText?: string;
8
+ error?: string | boolean;
9
+ success?: boolean;
10
+ required?: boolean;
11
+ label?: string;
12
+ id?: string;
13
+ name?: string;
14
+ disabled?: boolean;
15
+ size?: 'small' | 'medium' | 'large';
16
+ noResultsText?: string;
17
+ example?: boolean;
18
+ }
@@ -1,23 +1,24 @@
1
1
  export { BottomSheet } from './BottomSheet';
2
2
  export type { BottomSheetChangeReason, BottomSheetProps } from './BottomSheet/types';
3
+ export { DatePicker } from './DatePicker';
4
+ export type { DatePickerProps } from './DatePicker';
3
5
  export { DropDown } from './DropDown';
6
+ export { DropFilter } from './DropFilter';
4
7
  export { FeedbackState } from './FeedbackState';
5
8
  export type { ErrorStateProps, FeedbackStateProps } from './FeedbackState/types';
6
9
  export { FilterChip } from './FilterChip';
7
10
  export type { FilterChipProps } from './FilterChip/types';
11
+ export { FilterSelect, type FilterSelectOption, type FilterSelectProps } from './FilterSelect';
8
12
  export { InputCode } from './InputCode';
9
13
  export type { InputCodeProps } from './InputCode';
14
+ export { InputPhone } from './InputPhone';
15
+ export type { InputPhoneProps } from './InputPhone/types';
10
16
  export { Modal } from './Modal';
11
17
  export type { ModalChangeReason, ModalProps } from './Modal/types';
12
18
  export { PriceTag } from './PriceTag';
13
19
  export { SearchBox } from './SearchBox';
14
20
  export { Slider } from './Slider';
15
21
  export type { SlideType, SliderProps } from './Slider';
22
+ export { Tab, Tabs } from './Tabs';
23
+ export type { TabProps, TabsProps } from './Tabs/types';
16
24
  export { Tooltip } from './Tooltip';
17
- export { DropFilter } from './DropFilter';
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';
@@ -1,5 +1,5 @@
1
1
  {
2
- "generated": "2025-12-19T10:30:00.901Z",
2
+ "generated": "2025-12-19T10:44:22.733Z",
3
3
  "count": 1239,
4
4
  "icons": [
5
5
  "Accessibility",
package/dist/index.d.ts CHANGED
@@ -16,25 +16,26 @@ export type { LogoProps } from './components/atoms/Logo/types';
16
16
  export type { SkeletonAvatarProps, SkeletonProps, SkeletonTextProps } from './components/atoms/Skeleton/types';
17
17
  export type { SwitchProps } from './components/atoms/Switch/types';
18
18
  export type { BottomSheetChangeReason, BottomSheetProps } from './components/molecules/BottomSheet/types';
19
+ export type { DatePickerProps } from './components/molecules/DatePicker/types';
19
20
  export type { DropDownOption, DropDownProps } from './components/molecules/DropDown/types';
20
21
  export type { ErrorStateProps, FeedbackStateProps } from './components/molecules/FeedbackState/types';
21
22
  export type { FilterChipProps } from './components/molecules/FilterChip/types';
23
+ export type { FilterSelectOption, FilterSelectProps } from './components/molecules/FilterSelect/types';
22
24
  export type { InputCodeProps } from './components/molecules/InputCode/types';
25
+ export type { InputPhoneProps } from './components/molecules/InputPhone/types';
23
26
  export type { ModalChangeReason, ModalProps } from './components/molecules/Modal/types';
24
27
  export type { PriceTagProps } from './components/molecules/PriceTag/types';
25
28
  export type { TooltipProps } from './components/molecules/Tooltip/types';
26
- export type { FilterSelectOption, FilterSelectProps } from './components/molecules/FilterSelect/types';
27
- export type { DatePickerProps } from './components/molecules/DatePicker/types';
28
29
  export type { BreadcrumbsItem, BreadcrumbsProps } from './components/organisms/Breadcrumbs/types';
30
+ export type { Filter, FilterGroupProps, Sort } from './components/organisms/FilterGroup/types';
29
31
  export type { FilterPriceProps } from './components/organisms/FilterPrice/types';
30
32
  export type { PageNavigationProps } from './components/organisms/PageNavigation/types';
31
33
  export type { ProductCardProps } from './components/organisms/ProductCard/types';
32
- export type { FilterGroupProps, Filter, Sort } from './components/organisms/FilterGroup/types';
33
34
  export type { AuthLayoutProps } from './components/layouts/AuthLayout/types';
34
35
  export { clubEmployesDark, clubEmployesLight } from './themes/club-employes';
35
36
  export { gifteoDark, gifteoLight } from './themes/gifteo';
37
+ export type { LoaderProps } from './components/templates/Loader/types';
36
38
  export { getActiveTheme, initializeTheme, isValidThemeName, unlockBrand, useBreakpoints, useCurrency, useFavicon, useScrollShadows, useTheme } from './composables';
37
39
  export type { ThemeName } from './composables/initializeTheme';
38
40
  export type { UseScrollShadowsOptions, UseScrollShadowsReturn } from './composables/useScrollShadows';
39
41
  export type { BrandTheme, ThemeMode } from './composables/useTheme';
40
- export type { LoaderProps } from './components/templates/Loader/types';