mood-ui 0.5.2 → 0.6.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.
@@ -62,7 +62,7 @@ declare const __VLS_base: import('vue').DefineComponent<DayView, {
62
62
  draggableEvents: boolean;
63
63
  highlightedDates: Date[];
64
64
  disabledWeekdays: number[];
65
- disabledTimeRanges: import('../../../interfaces/data-display/calendar/WeekView.interface').DisabledTimeRange[];
65
+ disabledTimeRanges: import('../../..').DisabledTimeRange[];
66
66
  hourStart: number;
67
67
  hourEnd: number;
68
68
  slotMinutes: 15 | 30 | 60;
@@ -67,7 +67,7 @@ declare const __VLS_base: import('vue').DefineComponent<Scheduler, {
67
67
  draggableEvents: boolean;
68
68
  highlightedDates: Date[];
69
69
  disabledWeekdays: number[];
70
- disabledTimeRanges: import('../../../interfaces/data-display/calendar/WeekView.interface').DisabledTimeRange[];
70
+ disabledTimeRanges: import('../../..').DisabledTimeRange[];
71
71
  hourStart: number;
72
72
  hourEnd: number;
73
73
  slotMinutes: 15 | 30 | 60;
@@ -68,7 +68,7 @@ declare const __VLS_base: import('vue').DefineComponent<WeekView, {
68
68
  highlightedWeekdays: number[];
69
69
  highlightedDates: Date[];
70
70
  disabledWeekdays: number[];
71
- disabledTimeRanges: import('../../../interfaces/data-display/calendar/WeekView.interface').DisabledTimeRange[];
71
+ disabledTimeRanges: import('../../..').DisabledTimeRange[];
72
72
  hourStart: number;
73
73
  hourEnd: number;
74
74
  slotMinutes: 15 | 30 | 60;
@@ -1,16 +1,22 @@
1
1
  import { ColorPicker } from '../../interfaces/forms/ColorPicker.interface';
2
- declare const __VLS_export: import('vue').DefineComponent<ColorPicker, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ declare const __VLS_export: import('vue').DefineComponent<ColorPicker, {
3
+ open: () => void;
4
+ close: () => void;
5
+ toggle: () => void;
6
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
7
  change: (v: string) => any;
4
8
  "update:modelValue": (v: string) => any;
5
9
  }, string, import('vue').PublicProps, Readonly<ColorPicker> & Readonly<{
6
10
  onChange?: ((v: string) => any) | undefined;
7
11
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
8
12
  }>, {
13
+ color: "default" | "primary" | "danger" | "success" | "warning";
14
+ variant: "outline" | "filled" | "ghost";
9
15
  placement: "bottom-start" | "bottom-end" | "top-start" | "top-end";
10
16
  disabled: boolean;
11
17
  modelValue: string;
12
18
  showHex: boolean;
13
- showNative: boolean;
19
+ advanced: boolean;
14
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
21
  declare const _default: typeof __VLS_export;
16
22
  export default _default;
@@ -16,8 +16,8 @@ type __VLS_Slots = {} & {
16
16
  };
17
17
  declare const __VLS_base: import('vue').DefineComponent<FormField, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FormField> & Readonly<{}>, {
18
18
  fullWidth: boolean;
19
- orientation: "vertical" | "horizontal";
20
19
  as: string;
20
+ orientation: "vertical" | "horizontal";
21
21
  labelWidth: string;
22
22
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
23
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -13,9 +13,11 @@ declare const __VLS_export: import('vue').DefineComponent<TagInput, {}, {}, {},
13
13
  color: "default" | "primary" | "danger" | "success" | "warning";
14
14
  variant: "subtle" | "outline" | "solid";
15
15
  delimiters: string[];
16
+ fullWidth: boolean;
16
17
  modelValue: string[];
17
18
  placeholder: string;
18
19
  unique: boolean;
20
+ fieldVariant: "outline" | "filled" | "ghost";
19
21
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
22
  declare const _default: typeof __VLS_export;
21
23
  export default _default;
@@ -79,6 +79,8 @@ export interface UseFieldClassesSource {
79
79
  */
80
80
  halo?: MaybeRefOrGetter<ModoHalo | undefined>;
81
81
  }
82
+ export declare const FIELD_AFFORDANCE_ICON_BY_COLOR: Record<string, string>;
83
+ export declare const FIELD_AFFORDANCE_ACTION_BY_COLOR: Record<string, string>;
82
84
  /**
83
85
  * Resuelve las clases de wrapper (variante + halo + error) y el radius
84
86
  * para cualquier campo de formulario que siga el patrón Input/Textarea.
@@ -9,6 +9,8 @@ export { useColorMode, resolveColorMode, type ColorMode } from './composables/us
9
9
  export { useToast, useToastQueue } from './composables/useToast';
10
10
  export { useConfirm, useConfirmQueue } from './composables/useConfirm';
11
11
  export { useLocale } from './composables/useLocale';
12
+ export { useCalendar, isSameDay, startOfDay, type CalendarDay, type UseCalendarOptions, } from './composables/useCalendar';
13
+ export { eventColorClass, eventColorClassStrong, type EventColor, } from './composables/eventColors';
12
14
  export { default as Button } from './components/forms/Button.vue';
13
15
  export { default as ButtonGroup } from './components/forms/ButtonGroup.vue';
14
16
  export { default as FormField } from './components/forms/FormField.vue';
@@ -142,3 +144,16 @@ export type * from './interfaces/data-display/Code.interface';
142
144
  export type * from './interfaces/data-display/Accordion.interface';
143
145
  export type * from './interfaces/data-display/Stat.interface';
144
146
  export type * from './interfaces/data-display/Timeline.interface';
147
+ export type * from './interfaces/data-display/avatar/Avatar.interface';
148
+ export type * from './interfaces/data-display/avatar/AvatarGroup.interface';
149
+ export type * from './interfaces/data-display/calendar/Calendar.interface';
150
+ export type * from './interfaces/data-display/calendar/AgendaView.interface';
151
+ export type * from './interfaces/data-display/calendar/MonthView.interface';
152
+ export type * from './interfaces/data-display/calendar/WeekView.interface';
153
+ export type * from './interfaces/data-display/calendar/DayView.interface';
154
+ export type * from './interfaces/data-display/calendar/Scheduler.interface';
155
+ export type * from './interfaces/data-display/date-picker/DateRangePicker.interface';
156
+ export type * from './interfaces/data-display/date-picker/DateTimePicker.interface';
157
+ export type * from './interfaces/data-display/table/Table.interface';
158
+ export type * from './interfaces/data-display/table/TableColumn.interface';
159
+ export type * from './interfaces/data-display/table/TablePagination.interface';
@@ -23,4 +23,8 @@ export interface Button {
23
23
  * @default false
24
24
  */
25
25
  skeleton?: boolean;
26
+ as?: 'button' | 'a';
27
+ href?: string;
28
+ target?: string;
29
+ rel?: string;
26
30
  }
@@ -3,18 +3,24 @@ export interface ColorPicker {
3
3
  modelValue?: string;
4
4
  /** Optional preset swatches shown in the popover. */
5
5
  swatches?: string[];
6
- /** Show the hex input field. */
6
+ /** Show the hex input field in the custom section. */
7
7
  showHex?: boolean;
8
- /** Show the native color input as a fallback / advanced picker. */
9
- showNative?: boolean;
8
+ /** Show an HSV canvas + hue slider for advanced picking (replaces native input). */
9
+ advanced?: boolean;
10
10
  /** Disable interaction. */
11
11
  disabled?: boolean;
12
+ /** Field variant — same as Input/Select. */
13
+ variant?: 'outline' | 'filled' | 'ghost';
14
+ /** Semantic color for focus ring — same as Input/Select. */
15
+ color?: 'default' | 'primary' | 'danger' | 'success' | 'warning';
12
16
  /** Size scale. Inherits from `ModoProvider` if omitted. */
13
17
  size?: 'small' | 'medium' | 'large';
14
18
  /** Corner radius. Inherits from `ModoProvider` if omitted. */
15
19
  radius?: 'none' | 'small' | 'medium' | 'large' | 'full';
16
20
  /** Optional accessible name for the trigger button. */
17
21
  ariaLabel?: string;
22
+ /** Optional label rendered above the trigger. */
23
+ label?: string;
18
24
  /** Placement of the popover relative to the trigger. */
19
25
  placement?: 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
20
26
  }
@@ -15,14 +15,30 @@ export interface TagInput {
15
15
  disabled?: boolean;
16
16
  /** Mark as readonly (display, no edits). */
17
17
  readonly?: boolean;
18
- /** Semantic color family for the chips. */
18
+ /** Semantic color family — applies to both chips and the field focus ring. */
19
19
  color?: 'default' | 'primary' | 'danger' | 'success' | 'warning';
20
- /** Visual variant for the chips. */
20
+ /** Visual variant for the chips (subtle / outline / solid). */
21
21
  variant?: 'subtle' | 'outline' | 'solid';
22
+ /** Visual variant for the field wrapper. Matches Input/Select/Combobox. */
23
+ fieldVariant?: 'outline' | 'filled' | 'ghost';
22
24
  /** Size scale. Inherits from `ModoProvider` if omitted. */
23
25
  size?: 'small' | 'medium' | 'large';
24
26
  /** Corner radius. Inherits from `ModoProvider` if omitted. */
25
27
  radius?: 'none' | 'small' | 'medium' | 'large' | 'full';
28
+ /** Halo style. Inherits from `ModoProvider` if omitted. */
29
+ halo?: 'tinted' | 'neutral' | 'off';
26
30
  /** Optional accessible name for the input. */
27
31
  ariaLabel?: string;
32
+ /** Visible label rendered above the field. */
33
+ label?: string;
34
+ /** Optional DOM id for the internal input. */
35
+ id?: string;
36
+ /** Error message — activates error state and renders below the field. */
37
+ errorText?: string;
38
+ /** Helper text rendered below the field when there is no error. */
39
+ helperText?: string;
40
+ /** Forces error state without rendering an error message (e.g. from FormField). */
41
+ invalid?: boolean;
42
+ /** Stretch to full container width. */
43
+ fullWidth?: boolean;
28
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mood-ui",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "Vue 3 component library with full theming, dark mode, palettes, calendar, scheduler, table and AppShell.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -9,7 +9,7 @@
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/alansinbailarin/mood-ui.git"
11
11
  },
12
- "homepage": "https://github.com/alansinbailarin/mood-ui#readme",
12
+ "homepage": "https://modo-ui.com",
13
13
  "bugs": {
14
14
  "url": "https://github.com/alansinbailarin/mood-ui/issues"
15
15
  },
@@ -18,9 +18,22 @@
18
18
  "vue3",
19
19
  "components",
20
20
  "ui",
21
+ "ui-library",
22
+ "component-library",
21
23
  "tailwindcss",
24
+ "tailwind",
22
25
  "design-system",
23
- "modo"
26
+ "mood-ui",
27
+ "modo",
28
+ "dark-mode",
29
+ "theming",
30
+ "calendar",
31
+ "scheduler",
32
+ "datepicker",
33
+ "table",
34
+ "accessible",
35
+ "typescript",
36
+ "composables"
24
37
  ],
25
38
  "main": "./dist/mood-ui.cjs",
26
39
  "module": "./dist/mood-ui.mjs",
@@ -85,6 +98,7 @@
85
98
  "vite-plugin-dts": "^5.0.0",
86
99
  "vitest": "^4.1.5",
87
100
  "vue": "^3.5.32",
101
+ "vue-i18n": "^11.4.2",
88
102
  "vue-tsc": "^3.2.7"
89
103
  }
90
104
  }