@gradient-ui/core 0.5.0-rc.0 → 0.8.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 (151) hide show
  1. package/README.md +4 -4
  2. package/dist/{GLoading.vue_vue_type_style_index_0_lang-CBB_GocW.js → GLoading.vue_vue_type_style_index_0_lang-BbVYszn2.js} +90 -88
  3. package/dist/GLoading.vue_vue_type_style_index_0_lang-DW5X0giH.cjs +1 -0
  4. package/dist/GSwitch.vue_vue_type_script_setup_true_lang-BPwF9Kug.js +8734 -0
  5. package/dist/GSwitch.vue_vue_type_script_setup_true_lang-C45EmRhx.cjs +1 -0
  6. package/dist/{camelToKebabCase-6qY6WHvl.js → camelToKebabCase-BWbQb81D.js} +4 -4
  7. package/dist/components.cjs +1 -1
  8. package/dist/components.mjs +73 -65
  9. package/dist/default--73FwpwZ.cjs +4 -0
  10. package/dist/default-DlsS6GI_.js +58 -0
  11. package/dist/directives.cjs +1 -1
  12. package/dist/directives.mjs +1 -1
  13. package/dist/index-DVHKm06w.cjs +1 -0
  14. package/dist/index-DeFv4BdJ.js +418 -0
  15. package/dist/index.cjs +1 -1
  16. package/dist/index.mjs +197 -173
  17. package/dist/{mask-CZX-I_iy.js → mask-669nMf98.js} +2 -2
  18. package/dist/{mask-BbofdFd4.cjs → mask-Bh_UkcCe.cjs} +1 -1
  19. package/dist/materialSurface-BbFTyJuA.js +634 -0
  20. package/dist/materialSurface-DOfA2E9c.cjs +1 -0
  21. package/dist/scheme-CZ0a0X5e.cjs +299 -0
  22. package/dist/scheme-Dqwdqg6N.js +1405 -0
  23. package/dist/services.cjs +1 -1
  24. package/dist/services.mjs +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/{surface-BKu4KfkY.js → surface-C3w1Rz6V.js} +50 -47
  27. package/dist/surface-DB9flb-h.cjs +1 -0
  28. package/dist/theme.cjs +1 -1
  29. package/dist/theme.mjs +52 -48
  30. package/dist/types/components/index.d.ts +10 -0
  31. package/dist/types/components/ui/GAlert/GAlert.vue.d.ts +3 -3
  32. package/dist/types/components/ui/GAvatar/GAvatar.vue.d.ts +873 -0
  33. package/dist/types/components/ui/GAvatar/GAvatarGroup.vue.d.ts +194 -0
  34. package/dist/types/components/ui/GAvatar/index.d.ts +3 -0
  35. package/dist/types/components/ui/GAvatar/types.d.ts +585 -0
  36. package/dist/types/components/ui/GBadge/GBadge.vue.d.ts +5 -5
  37. package/dist/types/components/ui/GButton/GButton.vue.d.ts +3 -3
  38. package/dist/types/components/ui/GCard/GCard.vue.d.ts +949 -0
  39. package/dist/types/components/ui/GCard/index.d.ts +2 -0
  40. package/dist/types/components/ui/GCard/types.d.ts +519 -0
  41. package/dist/types/components/ui/GCheckControl/GCheckGroup.vue.d.ts +1 -1
  42. package/dist/types/components/ui/GChip/GChip.vue.d.ts +8 -4
  43. package/dist/types/components/ui/GChip/types.d.ts +1 -0
  44. package/dist/types/components/ui/GCombobox/GCombobox.vue.d.ts +37 -0
  45. package/dist/types/components/ui/GCombobox/index.d.ts +2 -0
  46. package/dist/types/components/ui/GCombobox/types.d.ts +59 -0
  47. package/dist/types/components/ui/GDivider/GDivider.vue.d.ts +965 -0
  48. package/dist/types/components/ui/GDivider/index.d.ts +2 -0
  49. package/dist/types/components/ui/GDivider/types.d.ts +518 -0
  50. package/dist/types/components/ui/GExpansion/GExpansion.vue.d.ts +9 -9
  51. package/dist/types/components/ui/GExpansionGroup/types.d.ts +4 -1
  52. package/dist/types/components/ui/GFAB/GFAB.vue.d.ts +4 -4
  53. package/dist/types/components/ui/GFieldBase/GFieldBase.vue.d.ts +75 -0
  54. package/dist/types/components/ui/GFieldBase/props.d.ts +73 -4
  55. package/dist/types/components/ui/GGradientMaterial/GGradientMaterial.vue.d.ts +3 -3
  56. package/dist/types/components/ui/GInput/GInput.vue.d.ts +75 -0
  57. package/dist/types/components/ui/GMenu/GMenu.vue.d.ts +1 -1
  58. package/dist/types/components/ui/GMenu/GSubmenu.vue.d.ts +6 -6
  59. package/dist/types/components/ui/GMenuItem/GMenuItem.vue.d.ts +1 -1
  60. package/dist/types/components/ui/GNavbar/GNavbar.vue.d.ts +3 -3
  61. package/dist/types/components/ui/GQuickActions/GQuickActions.vue.d.ts +1 -1
  62. package/dist/types/components/ui/GSelect/types.d.ts +6 -0
  63. package/dist/types/components/ui/GSelectItem.vue.d.ts +1 -1
  64. package/dist/types/components/ui/GSnackbar/GSnackbar.vue.d.ts +4 -4
  65. package/dist/types/components/ui/GStepper/GStepItem.vue.d.ts +16 -0
  66. package/dist/types/components/ui/GStepper/GStepPanel.vue.d.ts +76 -0
  67. package/dist/types/components/ui/GStepper/GStepper.vue.d.ts +63 -0
  68. package/dist/types/components/ui/GStepper/GStepperActions.vue.d.ts +22 -0
  69. package/dist/types/components/ui/GStepper/context.d.ts +42 -0
  70. package/dist/types/components/ui/GStepper/index.d.ts +4 -0
  71. package/dist/types/components/ui/GStepper/types.d.ts +708 -0
  72. package/dist/types/components/ui/GTable/GTable.vue.d.ts +13 -13
  73. package/dist/types/components/ui/GTable/types.d.ts +59 -55
  74. package/dist/types/components/ui/GTextarea/GTextarea.vue.d.ts +75 -0
  75. package/dist/types/components/ui/GToggleButton/GToggleButton.vue.d.ts +4 -4
  76. package/dist/types/theme/default.d.ts +2 -1
  77. package/dist/types/theme/gradient.d.ts +1 -1
  78. package/dist/types/theme/index.d.ts +6 -6
  79. package/dist/types/use/actionSurface.d.ts +5 -1650
  80. package/dist/types/use/density.d.ts +16 -0
  81. package/dist/types/use/form/fieldKeyboard.d.ts +19 -0
  82. package/dist/types/use/form/props.d.ts +54 -2
  83. package/dist/types/use/form/textFieldControl.d.ts +9 -1
  84. package/dist/types/use/gradient.d.ts +4 -1653
  85. package/dist/types/use/gradientMaterial.d.ts +1 -1
  86. package/dist/types/use/index.d.ts +9 -0
  87. package/dist/types/use/input/props.d.ts +43 -4
  88. package/dist/types/use/material.d.ts +3 -2
  89. package/dist/types/use/materialSurface.d.ts +10 -4
  90. package/dist/types/use/navigation/controller.d.ts +14 -0
  91. package/dist/types/use/navigation/index.d.ts +4 -0
  92. package/dist/types/use/navigation/item.d.ts +9 -0
  93. package/dist/types/use/navigation/keyboard.d.ts +4 -0
  94. package/dist/types/use/navigation/types.d.ts +42 -0
  95. package/dist/types/use/select/comboboxController.d.ts +36 -0
  96. package/dist/types/use/select/commit.d.ts +23 -0
  97. package/dist/types/use/select/controller.d.ts +5 -0
  98. package/dist/types/use/select/creatable.d.ts +18 -0
  99. package/dist/types/use/select/fieldControl.d.ts +59 -0
  100. package/dist/types/use/select/filter.d.ts +14 -0
  101. package/dist/types/use/select/listboxKeyboard.d.ts +9 -0
  102. package/dist/types/use/select/modelFallbackItems.d.ts +12 -0
  103. package/dist/types/use/select/search.d.ts +14 -0
  104. package/dist/types/use/select/searchFieldControl.d.ts +24 -0
  105. package/dist/types/use/select/selectionSummary.d.ts +1 -0
  106. package/dist/types/use/select/tokenInputKeyboard.d.ts +11 -0
  107. package/dist/types/use/stateIcon.d.ts +9 -0
  108. package/dist/types/use/stepper/controller.d.ts +20 -0
  109. package/dist/types/use/stepper/index.d.ts +1 -0
  110. package/dist/types/use/surfaceColor.d.ts +2 -1
  111. package/dist/types/use/surfaceMaterial.d.ts +45 -0
  112. package/dist/types/use/textarea/props.d.ts +43 -4
  113. package/dist/use.cjs +1 -1
  114. package/dist/use.mjs +54 -42
  115. package/dist/useSnackbar-6OiYxhJA.cjs +1 -0
  116. package/dist/useSnackbar-BYPu4tJ4.js +922 -0
  117. package/package.json +4 -2
  118. package/dist/GLoading.vue_vue_type_style_index_0_lang-Bv3dWEq8.cjs +0 -1
  119. package/dist/GSwitch.vue_vue_type_script_setup_true_lang-BS6bb1XY.cjs +0 -1
  120. package/dist/GSwitch.vue_vue_type_script_setup_true_lang-UTBNFP5X.js +0 -7015
  121. package/dist/default-BhuY-A3o.cjs +0 -4
  122. package/dist/default-OTmCd0Aq.js +0 -131
  123. package/dist/index-B3_n44N_.cjs +0 -1
  124. package/dist/index-BtCLucTD.js +0 -66
  125. package/dist/material-Ca7ZZAiO.cjs +0 -194
  126. package/dist/material-okvXHenb.js +0 -1162
  127. package/dist/materialSurface-BBrP9ltj.js +0 -591
  128. package/dist/materialSurface-CK8LN_dU.cjs +0 -1
  129. package/dist/surface-8z3gR7vF.cjs +0 -1
  130. package/dist/types/theme/gradient/animation/css.d.ts +0 -12
  131. package/dist/types/theme/gradient/animation/index.d.ts +0 -1
  132. package/dist/types/theme/gradient/colorMath.d.ts +0 -3
  133. package/dist/types/theme/gradient/constants.d.ts +0 -3
  134. package/dist/types/theme/gradient/core.d.ts +0 -1
  135. package/dist/types/theme/gradient/effects/index.d.ts +0 -1
  136. package/dist/types/theme/gradient/effects/morph.d.ts +0 -5
  137. package/dist/types/theme/gradient/effects/shadow.d.ts +0 -3
  138. package/dist/types/theme/gradient/formatters/canvas.d.ts +0 -2
  139. package/dist/types/theme/gradient/formatters/css.d.ts +0 -3
  140. package/dist/types/theme/gradient/formatters/index.d.ts +0 -1
  141. package/dist/types/theme/gradient/formatters/svg.d.ts +0 -5
  142. package/dist/types/theme/gradient/index.d.ts +0 -1
  143. package/dist/types/theme/gradient/material.d.ts +0 -1
  144. package/dist/types/theme/gradient/model.d.ts +0 -5
  145. package/dist/types/theme/gradient/presets.d.ts +0 -158
  146. package/dist/types/theme/gradient/recipes.d.ts +0 -14
  147. package/dist/types/theme/gradient/tokens.d.ts +0 -72
  148. package/dist/types/theme/gradient/types.d.ts +0 -117
  149. package/dist/types/theme/gradient/utils.d.ts +0 -10
  150. package/dist/useSnackbar-BHQshEZ8.cjs +0 -1
  151. package/dist/useSnackbar-DeNHZH8v.js +0 -908
@@ -0,0 +1,76 @@
1
+ import { type GStepPanelSlots, type GStepValue } from './types';
2
+ declare const _default: <T = unknown, V extends GStepValue = GStepValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{
4
+ state: import("../GGradient").GGradienStates;
5
+ active: boolean;
6
+ texture: import("../../../use/surface").GSurfaceTexture;
7
+ value: GStepValue | undefined;
8
+ disabled: boolean;
9
+ rounded: boolean;
10
+ color: import("../../..").GColor | undefined;
11
+ variant: import("./types").GStepPanelVariant;
12
+ placement: import("../../../types/CommonTypes").Placement;
13
+ rootTag: string;
14
+ interactive: boolean;
15
+ borderRadius: import("../../../use/gradient").GBorderRadius;
16
+ inheritWidth: boolean;
17
+ surfaceFill: import("../../../use/gradientSurface").GGradientSurfaceFill;
18
+ shadow: boolean;
19
+ dropShadow: boolean;
20
+ morph: boolean;
21
+ padding: import("../../../types/CommonTypes").StringeredNumber;
22
+ animateGlow: boolean;
23
+ glow: import("../../../use/gradient").GGlow;
24
+ borderWidth: import("../../../types/CommonTypes").StringeredNumber;
25
+ materialKind: import("../../..").GradientMaterialKind;
26
+ gradientRecipe: import("@gradient-ui/gradient-engine").GradientTokenRecipe;
27
+ eager: boolean;
28
+ density: import("@/use/density").GDensity;
29
+ backdropBlur: import("../../../types/CommonTypes").StringeredNumber;
30
+ animationOptions: import("@gradient-ui/gradient-engine").GradientAnimationOptions;
31
+ shadowOptions: import("@gradient-ui/gradient-engine").GradientShadowOptions;
32
+ dropShadowOptions: import("@gradient-ui/gradient-engine").GradientShadowOptions;
33
+ morphOptions: import("@gradient-ui/gradient-engine").GradientMorphOptions;
34
+ }> & Omit<{
35
+ readonly state: import("../GGradient").GGradienStates;
36
+ readonly active: boolean;
37
+ readonly texture: import("../../../use/surface").GSurfaceTexture;
38
+ readonly value: GStepValue;
39
+ readonly disabled: boolean;
40
+ readonly rounded: boolean;
41
+ readonly color: import("../../..").GColor;
42
+ readonly variant: import("./types").GStepPanelVariant;
43
+ readonly placement: import("../../../types/CommonTypes").Placement;
44
+ readonly rootTag: string;
45
+ readonly interactive: boolean;
46
+ readonly borderRadius: import("../../../use/gradient").GBorderRadius;
47
+ readonly inheritWidth: boolean;
48
+ readonly surfaceFill: import("../../../use/gradientSurface").GGradientSurfaceFill;
49
+ readonly shadow: boolean;
50
+ readonly dropShadow: boolean;
51
+ readonly morph: boolean;
52
+ readonly padding: import("../../../types/CommonTypes").StringeredNumber;
53
+ readonly animateGlow: boolean;
54
+ readonly glow: import("../../../use/gradient").GGlow;
55
+ readonly borderWidth: import("../../../types/CommonTypes").StringeredNumber;
56
+ readonly materialKind: import("../../..").GradientMaterialKind;
57
+ readonly gradientRecipe: import("@gradient-ui/gradient-engine").GradientTokenRecipe;
58
+ readonly eager: boolean;
59
+ readonly density: import("@/use/density").GDensity;
60
+ readonly backdropBlur: import("../../../types/CommonTypes").StringeredNumber;
61
+ readonly animationOptions: import("@gradient-ui/gradient-engine").GradientAnimationOptions;
62
+ readonly shadowOptions: import("@gradient-ui/gradient-engine").GradientShadowOptions;
63
+ readonly dropShadowOptions: import("@gradient-ui/gradient-engine").GradientShadowOptions;
64
+ readonly morphOptions: import("@gradient-ui/gradient-engine").GradientMorphOptions;
65
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "state" | "active" | "texture" | "value" | "disabled" | "rounded" | "color" | "variant" | "placement" | "rootTag" | "interactive" | "borderRadius" | "inheritWidth" | "surfaceFill" | "shadow" | "dropShadow" | "morph" | "padding" | "animateGlow" | "glow" | "borderWidth" | "materialKind" | "gradientRecipe" | "eager" | "density" | "backdropBlur" | "animationOptions" | "shadowOptions" | "dropShadowOptions" | "morphOptions">, "state" | "active" | "texture" | "value" | "disabled" | "rounded" | "color" | "variant" | "placement" | "rootTag" | "interactive" | "borderRadius" | "inheritWidth" | "surfaceFill" | "shadow" | "dropShadow" | "morph" | "padding" | "animateGlow" | "glow" | "borderWidth" | "materialKind" | "gradientRecipe" | "eager" | "density" | "backdropBlur" | "animationOptions" | "shadowOptions" | "dropShadowOptions" | "morphOptions"> & Partial<{}> & {}> & import("vue").PublicProps;
66
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
67
+ attrs: any;
68
+ slots: Readonly<GStepPanelSlots<T, V>> & GStepPanelSlots<T, V>;
69
+ emit: {};
70
+ }>) => import("vue").VNode & {
71
+ __ctx?: Awaited<typeof __VLS_setup>;
72
+ };
73
+ export default _default;
74
+ type __VLS_PrettifyLocal<T> = {
75
+ [K in keyof T]: T[K];
76
+ } & {};
@@ -0,0 +1,63 @@
1
+ import { type GStepValue, type GStepperItem, type GStepperSlots } from './types';
2
+ declare const _default: <T = unknown, V extends GStepValue = GStepValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{
4
+ size: import("../../../types/CommonTypes").Sizes;
5
+ disabled: boolean;
6
+ rounded: boolean;
7
+ color: import("@/use/colorResolver").GColor;
8
+ variant: import("./types").GStepperVariant;
9
+ linear: boolean;
10
+ mandatory: boolean;
11
+ modelValue: GStepValue | undefined;
12
+ defaultValue: GStepValue | undefined;
13
+ activeColor: import("@/use/colorResolver").GColor | undefined;
14
+ activation: import("./types").GStepperActivation;
15
+ orientation: import("./types").GStepperOrientation;
16
+ items: readonly GStepperItem<unknown, GStepValue>[];
17
+ divider: boolean;
18
+ dividerOptions: import("./types").GStepperDividerOptions | undefined;
19
+ editable: boolean;
20
+ altLabels: boolean;
21
+ hideActions: boolean;
22
+ prevText: string;
23
+ nextText: string;
24
+ finishText: string;
25
+ }> & Omit<{
26
+ readonly size: import("../../../types/CommonTypes").Sizes;
27
+ readonly disabled: boolean;
28
+ readonly rounded: boolean;
29
+ readonly color: import("@/use/colorResolver").GColor;
30
+ readonly variant: import("./types").GStepperVariant;
31
+ readonly linear: boolean;
32
+ readonly mandatory: boolean;
33
+ readonly modelValue: GStepValue;
34
+ readonly defaultValue: GStepValue;
35
+ readonly activeColor: import("@/use/colorResolver").GColor;
36
+ readonly activation: import("./types").GStepperActivation;
37
+ readonly orientation: import("./types").GStepperOrientation;
38
+ readonly items: readonly GStepperItem<unknown, GStepValue>[];
39
+ readonly divider: boolean;
40
+ readonly dividerOptions: import("./types").GStepperDividerOptions;
41
+ readonly editable: boolean;
42
+ readonly altLabels: boolean;
43
+ readonly hideActions: boolean;
44
+ readonly prevText: string;
45
+ readonly nextText: string;
46
+ readonly finishText: string;
47
+ readonly onSelect?: ((value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => any) | undefined;
48
+ readonly onNext?: ((value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => any) | undefined;
49
+ readonly "onUpdate:modelValue"?: ((value: V | undefined) => any) | undefined;
50
+ readonly onPrev?: ((value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => any) | undefined;
51
+ readonly onFinish?: ((value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => any) | undefined;
52
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "disabled" | "rounded" | "color" | "variant" | "linear" | "mandatory" | "modelValue" | "defaultValue" | "activeColor" | "activation" | "orientation" | "items" | "divider" | "dividerOptions" | "editable" | "altLabels" | "hideActions" | "prevText" | "nextText" | "finishText">, "onSelect" | "onUpdate:modelValue" | "onNext" | "onFinish" | "onPrev" | ("size" | "disabled" | "rounded" | "color" | "variant" | "linear" | "mandatory" | "modelValue" | "defaultValue" | "activeColor" | "activation" | "orientation" | "items" | "divider" | "dividerOptions" | "editable" | "altLabels" | "hideActions" | "prevText" | "nextText" | "finishText")> & Partial<{}> & {}> & import("vue").PublicProps;
53
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
54
+ attrs: any;
55
+ slots: Readonly<GStepperSlots<T, V>> & GStepperSlots<T, V>;
56
+ emit: ((evt: "select", value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => void) & ((evt: "next", value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => void) & ((evt: "update:modelValue", value: V | undefined) => void) & ((evt: "prev", value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => void) & ((evt: "finish", value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => void);
57
+ }>) => import("vue").VNode & {
58
+ __ctx?: Awaited<typeof __VLS_setup>;
59
+ };
60
+ export default _default;
61
+ type __VLS_PrettifyLocal<T> = {
62
+ [K in keyof T]: T[K];
63
+ } & {};
@@ -0,0 +1,22 @@
1
+ import { type GStepValue, type GStepperActionsSlots } from './types';
2
+ declare const _default: <T = unknown, V extends GStepValue = GStepValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{
4
+ prevText: string;
5
+ nextText: string;
6
+ finishText: string;
7
+ }> & Omit<{
8
+ readonly prevText: string;
9
+ readonly nextText: string;
10
+ readonly finishText: string;
11
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "prevText" | "nextText" | "finishText">, "prevText" | "nextText" | "finishText"> & Partial<{}> & {}> & import("vue").PublicProps;
12
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
13
+ attrs: any;
14
+ slots: Readonly<GStepperActionsSlots<T, V>> & GStepperActionsSlots<T, V>;
15
+ emit: {};
16
+ }>) => import("vue").VNode & {
17
+ __ctx?: Awaited<typeof __VLS_setup>;
18
+ };
19
+ export default _default;
20
+ type __VLS_PrettifyLocal<T> = {
21
+ [K in keyof T]: T[K];
22
+ } & {};
@@ -0,0 +1,42 @@
1
+ import { type ComputedRef, type Ref } from 'vue';
2
+ import type { Sizes } from '@/types/CommonTypes';
3
+ import type { GColor } from '@/use/color';
4
+ import type { GNavigationRegistration } from '@/use/navigation';
5
+ import type { GStepValue, GStepperActivation, GStepperItemSlotProps, GStepperOrientation, GStepperResolvedItem, GStepperSemanticState, GStepperSlotProps, GStepperStepState, GStepperVariant } from './types';
6
+ export interface GStepperContext<T = unknown, V = GStepValue> {
7
+ modelValue: Ref<V | undefined>;
8
+ items: ComputedRef<GStepperResolvedItem<T, V>[]>;
9
+ activeItem: ComputedRef<GStepperResolvedItem<T, V> | undefined>;
10
+ activeIndex: ComputedRef<number>;
11
+ color: ComputedRef<GColor | undefined>;
12
+ activeColor: ComputedRef<GColor | undefined>;
13
+ activation: ComputedRef<GStepperActivation>;
14
+ orientation: ComputedRef<GStepperOrientation>;
15
+ variant: ComputedRef<GStepperVariant>;
16
+ size: ComputedRef<Sizes>;
17
+ disabled: ComputedRef<boolean>;
18
+ canPrev: ComputedRef<boolean>;
19
+ canNext: ComputedRef<boolean>;
20
+ isLast: ComputedRef<boolean>;
21
+ prevText: ComputedRef<string>;
22
+ nextText: ComputedRef<string>;
23
+ finishText: ComputedRef<string>;
24
+ isSelected: (value: V | undefined) => boolean;
25
+ isStepAvailable: (item: GStepperResolvedItem<T, V>) => boolean;
26
+ isStepCompleted: (item: GStepperResolvedItem<T, V>) => boolean;
27
+ getItemState: (item: GStepperResolvedItem<T, V>) => GStepperStepState;
28
+ getItemSemanticState: (item: GStepperResolvedItem<T, V>) => GStepperSemanticState | undefined;
29
+ select: (value: V | undefined, event?: Event) => void;
30
+ next: (event?: Event) => void;
31
+ prev: (event?: Event) => void;
32
+ finish: (event?: Event) => void;
33
+ registerStep: (registration: GNavigationRegistration<V>) => void;
34
+ unregisterStep: (el: HTMLElement) => void;
35
+ onStepKeydown: (event: KeyboardEvent, value: V | undefined) => void;
36
+ getStepId: (value: V | undefined) => string;
37
+ getPanelId: (value: V | undefined) => string;
38
+ getItemSlotProps: (item: GStepperResolvedItem<T, V>) => GStepperItemSlotProps<T, V>;
39
+ getSlotProps: () => GStepperSlotProps<T, V>;
40
+ }
41
+ export declare const provideStepper: <T = unknown, V = GStepValue>(context: GStepperContext<T, V>) => void;
42
+ export declare const useStepperInject: <T = unknown, V = GStepValue>() => GStepperContext<T, V> | null;
@@ -0,0 +1,4 @@
1
+ export { default as GStepper } from './GStepper.vue';
2
+ export { default as GStepPanel } from './GStepPanel.vue';
3
+ export { default as GStepperActions } from './GStepperActions.vue';
4
+ export * from './types';