@club-employes/utopia 4.82.0 → 4.84.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.
@@ -2,10 +2,37 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
2
2
  interface Props {
3
3
  label: string;
4
4
  collapsed?: boolean;
5
+ /** État initial de l'accordéon (ouvert par défaut) */
6
+ defaultExpanded?: boolean;
7
+ /** Contrôle externe de l'état expanded */
8
+ modelValue?: boolean;
5
9
  }
6
- declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ default?(_: {}): any;
14
+ };
15
+ refs: {
16
+ sectionRef: HTMLButtonElement;
17
+ };
18
+ rootEl: HTMLDivElement;
19
+ };
20
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
+ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
22
+ "update:modelValue": (value: boolean) => any;
23
+ }, string, PublicProps, Readonly<Props> & Readonly<{
24
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
25
+ }>, {
26
+ modelValue: boolean;
7
27
  collapsed: boolean;
28
+ defaultExpanded: boolean;
8
29
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
9
- sectionRef: HTMLDivElement;
30
+ sectionRef: HTMLButtonElement;
10
31
  }, HTMLDivElement>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
11
33
  export default _default;
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -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
+ }
@@ -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';
@@ -1,5 +1,5 @@
1
1
  {
2
- "generated": "2026-01-06T13:19:22.422Z",
2
+ "generated": "2026-01-08T13:37:18.148Z",
3
3
  "count": 1239,
4
4
  "icons": [
5
5
  "Accessibility",
package/dist/index.d.ts CHANGED
@@ -36,6 +36,7 @@ export type { ProductCardProps } from './components/organisms/ProductCard/types'
36
36
  export type { TableProps, ColumnType, CellProps, CellContent, MatchMode, TableRequestData, SortConfig, ActiveFilter, ColumnOrder } from './components/organisms/Table/types';
37
37
  export { CellContentType, CellFilterType } from './components/organisms/Table';
38
38
  export type { DropFileProps } from './components/organisms/DropFile/types';
39
+ export type { AccordionProps, AccordionItemProps } from './components/organisms/Accordion/types';
39
40
  export type { AuthLayoutProps } from './components/layouts/AuthLayout/types';
40
41
  export { clubEmployesDark, clubEmployesLight } from './themes/club-employes';
41
42
  export { gifteoDark, gifteoLight } from './themes/gifteo';