@ousi-ui/vue 0.4.1 → 0.5.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.
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +56 -23
- package/dist/index.mjs +6932 -6802
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -115,6 +115,7 @@ variant: "primary" | "secondary";
|
|
|
115
115
|
size: TabsSize;
|
|
116
116
|
shadow: TabsShadow;
|
|
117
117
|
orientation: "horizontal" | "vertical";
|
|
118
|
+
hideBorder: boolean;
|
|
118
119
|
showSeparator: boolean;
|
|
119
120
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
120
121
|
listRef: HTMLDivElement;
|
|
@@ -186,6 +187,7 @@ onChange?: ((value: boolean) => any) | undefined;
|
|
|
186
187
|
"onUpdate:indeterminate"?: ((value: boolean) => any) | undefined;
|
|
187
188
|
}>, {
|
|
188
189
|
variant: "primary" | "secondary";
|
|
190
|
+
size: CheckboxSize;
|
|
189
191
|
shadow: CheckboxShadow;
|
|
190
192
|
disabled: boolean;
|
|
191
193
|
required: boolean;
|
|
@@ -581,9 +583,12 @@ allowDuplicates: boolean;
|
|
|
581
583
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
582
584
|
|
|
583
585
|
declare const __VLS_component_55: DefineComponent<ContextMenuProps, {
|
|
584
|
-
show:
|
|
585
|
-
|
|
586
|
-
|
|
586
|
+
show: (input?: MouseEvent | {
|
|
587
|
+
x: number;
|
|
588
|
+
y: number;
|
|
589
|
+
}) => void;
|
|
590
|
+
hide: () => void;
|
|
591
|
+
isOpen: Ref<boolean>;
|
|
587
592
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
588
593
|
select: (key: string, item: ContextMenuItem) => any;
|
|
589
594
|
close: () => any;
|
|
@@ -2668,7 +2673,9 @@ export declare interface ChartWindowOption {
|
|
|
2668
2673
|
|
|
2669
2674
|
export declare const checkboxContentTheme = "flex flex-col gap-0";
|
|
2670
2675
|
|
|
2671
|
-
export declare const checkboxDescriptionTheme
|
|
2676
|
+
export declare const checkboxDescriptionTheme: (props?: ({
|
|
2677
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
2678
|
+
} & ClassProp) | undefined) => string;
|
|
2672
2679
|
|
|
2673
2680
|
export declare interface CheckboxEmits {
|
|
2674
2681
|
'update:modelValue': [value: boolean];
|
|
@@ -2678,7 +2685,9 @@ export declare interface CheckboxEmits {
|
|
|
2678
2685
|
|
|
2679
2686
|
export declare const checkboxErrorTheme = "text-xs text-ousi-danger mt-0.5";
|
|
2680
2687
|
|
|
2681
|
-
export declare const checkboxLabelTheme
|
|
2688
|
+
export declare const checkboxLabelTheme: (props?: ({
|
|
2689
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
2690
|
+
} & ClassProp) | undefined) => string;
|
|
2682
2691
|
|
|
2683
2692
|
export declare interface CheckboxProps {
|
|
2684
2693
|
/** Controlled checked state (v-model). */
|
|
@@ -2703,6 +2712,8 @@ export declare interface CheckboxProps {
|
|
|
2703
2712
|
invalid?: boolean;
|
|
2704
2713
|
/** Visual variant. */
|
|
2705
2714
|
variant?: 'primary' | 'secondary';
|
|
2715
|
+
/** Control box + label size. Defaults to 'md'. */
|
|
2716
|
+
size?: CheckboxSize;
|
|
2706
2717
|
/** Elevation shadow on the control box. Defaults to 'none'. */
|
|
2707
2718
|
shadow?: CheckboxShadow;
|
|
2708
2719
|
/** Haptic feedback on toggle. Pass false to disable. */
|
|
@@ -2711,10 +2722,13 @@ export declare interface CheckboxProps {
|
|
|
2711
2722
|
class?: string;
|
|
2712
2723
|
}
|
|
2713
2724
|
|
|
2714
|
-
declare type CheckboxShadow = 'none' | 'xs' | 'sm';
|
|
2725
|
+
export declare type CheckboxShadow = 'none' | 'xs' | 'sm';
|
|
2726
|
+
|
|
2727
|
+
export declare type CheckboxSize = 'sm' | 'md' | 'lg';
|
|
2715
2728
|
|
|
2716
2729
|
export declare const checkboxWrapperTheme: (props?: ({
|
|
2717
2730
|
hasDescription?: boolean | null | undefined;
|
|
2731
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
2718
2732
|
} & ClassProp) | undefined) => string;
|
|
2719
2733
|
|
|
2720
2734
|
export declare type ChipColor = 'accent' | 'success' | 'warning' | 'danger' | 'default';
|
|
@@ -3208,8 +3222,8 @@ export declare const dateFieldWrapperTheme: (props?: ({
|
|
|
3208
3222
|
export declare const datePickerDescriptionTheme = "text-xs text-ousi-muted";
|
|
3209
3223
|
|
|
3210
3224
|
export declare interface DatePickerEmits {
|
|
3211
|
-
'update:modelValue': [value: DateFieldValue | null];
|
|
3212
|
-
'change': [value: DateFieldValue | null];
|
|
3225
|
+
'update:modelValue': [value: DateFieldValue | string | null];
|
|
3226
|
+
'change': [value: DateFieldValue | string | null];
|
|
3213
3227
|
}
|
|
3214
3228
|
|
|
3215
3229
|
/** Error message text. */
|
|
@@ -3229,10 +3243,10 @@ export declare const datePickerLabelTheme: (props?: ({
|
|
|
3229
3243
|
export declare const datePickerPopoverTheme: string;
|
|
3230
3244
|
|
|
3231
3245
|
export declare interface DatePickerProps {
|
|
3232
|
-
/** Current date value (v-model). */
|
|
3233
|
-
modelValue?: DateFieldValue | null;
|
|
3234
|
-
/** Default date value. */
|
|
3235
|
-
defaultValue?: DateFieldValue | null;
|
|
3246
|
+
/** Current date value (v-model). When `format` is set, accepts/emits a string in that format. */
|
|
3247
|
+
modelValue?: DateFieldValue | string | null;
|
|
3248
|
+
/** Default date value. When `format` is set, accepts a string in that format. */
|
|
3249
|
+
defaultValue?: DateFieldValue | string | null;
|
|
3236
3250
|
/** Label text. */
|
|
3237
3251
|
label?: string;
|
|
3238
3252
|
/** Description text below the field. */
|
|
@@ -3241,6 +3255,13 @@ export declare interface DatePickerProps {
|
|
|
3241
3255
|
errorMessage?: string;
|
|
3242
3256
|
/** Locale for segment ordering and month names. */
|
|
3243
3257
|
locale?: string;
|
|
3258
|
+
/** When set, v-model is parsed/emitted as a string in this pattern.
|
|
3259
|
+
* Tokens: `YYYY` `YY` `MM` `M` `DD` `D` — anything else is a literal.
|
|
3260
|
+
* Example: `'YYYY-MM-DD'` → v-model is `'2026-05-29'`. Defaults to unset (object). */
|
|
3261
|
+
format?: string;
|
|
3262
|
+
/** When set, the trigger shows segments in this pattern instead of the locale-derived order.
|
|
3263
|
+
* Uses the same tokens as `format`. Independent from `format` — set both to keep them in sync. */
|
|
3264
|
+
displayFormat?: string;
|
|
3244
3265
|
/** Minimum selectable date. */
|
|
3245
3266
|
minValue?: DateFieldValue;
|
|
3246
3267
|
/** Maximum selectable date. */
|
|
@@ -3663,6 +3684,8 @@ declare function fire(): void;
|
|
|
3663
3684
|
|
|
3664
3685
|
declare function focusKey(key: string): void;
|
|
3665
3686
|
|
|
3687
|
+
export declare function formatDateValue(value: DateFieldValue, pattern: string): string;
|
|
3688
|
+
|
|
3666
3689
|
declare interface FormContext {
|
|
3667
3690
|
/** Server-side validation errors keyed by field name. */
|
|
3668
3691
|
validationErrors: Ref<Record<string, string | string[]>>;
|
|
@@ -3722,8 +3745,6 @@ export declare interface GradientTextProps {
|
|
|
3722
3745
|
|
|
3723
3746
|
export declare const gradientTextTheme = "inline-block bg-clip-text text-transparent";
|
|
3724
3747
|
|
|
3725
|
-
declare function hide(): void;
|
|
3726
|
-
|
|
3727
3748
|
/** Divider line. */
|
|
3728
3749
|
export declare const imageCompareDividerTheme = "absolute z-20 bg-white/80 shadow-sm";
|
|
3729
3750
|
|
|
@@ -4436,11 +4457,11 @@ readOnly: boolean;
|
|
|
4436
4457
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
4437
4458
|
|
|
4438
4459
|
export declare const ODatePicker: DefineComponent<DatePickerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4439
|
-
change: (value: DateFieldValue | null) => any;
|
|
4440
|
-
"update:modelValue": (value: DateFieldValue | null) => any;
|
|
4460
|
+
change: (value: string | DateFieldValue | null) => any;
|
|
4461
|
+
"update:modelValue": (value: string | DateFieldValue | null) => any;
|
|
4441
4462
|
}, string, PublicProps, Readonly<DatePickerProps> & Readonly<{
|
|
4442
|
-
onChange?: ((value: DateFieldValue | null) => any) | undefined;
|
|
4443
|
-
"onUpdate:modelValue"?: ((value: DateFieldValue | null) => any) | undefined;
|
|
4463
|
+
onChange?: ((value: string | DateFieldValue | null) => any) | undefined;
|
|
4464
|
+
"onUpdate:modelValue"?: ((value: string | DateFieldValue | null) => any) | undefined;
|
|
4444
4465
|
}>, {
|
|
4445
4466
|
variant: "primary" | "secondary";
|
|
4446
4467
|
size: DatePickerSize;
|
|
@@ -4928,6 +4949,10 @@ export declare const paginationSummaryTheme: (props?: ({
|
|
|
4928
4949
|
|
|
4929
4950
|
export declare const paginationTheme = "flex w-full flex-col items-center justify-between gap-4 sm:flex-row";
|
|
4930
4951
|
|
|
4952
|
+
export declare function parseDateValue(input: string, pattern: string): DateFieldValue | null;
|
|
4953
|
+
|
|
4954
|
+
export declare function patternToSegments(pattern: string): Segment[];
|
|
4955
|
+
|
|
4931
4956
|
export declare const popoverDialogTheme = "p-4 outline-none";
|
|
4932
4957
|
|
|
4933
4958
|
export declare interface PopoverEmits {
|
|
@@ -5196,6 +5221,15 @@ export declare const scrollShadowTheme: (props?: ({
|
|
|
5196
5221
|
hideScrollbar?: boolean | null | undefined;
|
|
5197
5222
|
} & ClassProp) | undefined) => string;
|
|
5198
5223
|
|
|
5224
|
+
declare interface Segment {
|
|
5225
|
+
type: SegmentType;
|
|
5226
|
+
text: string;
|
|
5227
|
+
value?: number;
|
|
5228
|
+
placeholder: string;
|
|
5229
|
+
}
|
|
5230
|
+
|
|
5231
|
+
declare type SegmentType = 'year' | 'month' | 'day' | 'literal';
|
|
5232
|
+
|
|
5199
5233
|
export declare interface SelectEmits {
|
|
5200
5234
|
'update:modelValue': [value: SelectValue];
|
|
5201
5235
|
'change': [value: SelectValue];
|
|
@@ -5293,11 +5327,6 @@ export declare const separatorTheme: (props?: ({
|
|
|
5293
5327
|
|
|
5294
5328
|
export declare type SeparatorVariant = 'default' | 'secondary' | 'tertiary';
|
|
5295
5329
|
|
|
5296
|
-
declare function show(input?: MouseEvent | {
|
|
5297
|
-
x: number;
|
|
5298
|
-
y: number;
|
|
5299
|
-
}): void;
|
|
5300
|
-
|
|
5301
5330
|
export declare type SkeletonAnimation = 'shimmer' | 'pulse' | 'none';
|
|
5302
5331
|
|
|
5303
5332
|
export declare const skeletonBaseTheme: (props?: ({
|
|
@@ -5704,6 +5733,7 @@ export declare const tabsListTheme: (props?: ({
|
|
|
5704
5733
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
5705
5734
|
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
5706
5735
|
shadow?: "none" | "sm" | "md" | "xs" | null | undefined;
|
|
5736
|
+
hideBorder?: boolean | null | undefined;
|
|
5707
5737
|
} & ClassProp) | undefined) => string;
|
|
5708
5738
|
|
|
5709
5739
|
export declare interface TabsProps {
|
|
@@ -5721,6 +5751,9 @@ export declare interface TabsProps {
|
|
|
5721
5751
|
shadow?: TabsShadow;
|
|
5722
5752
|
/** Layout orientation. */
|
|
5723
5753
|
orientation?: 'horizontal' | 'vertical';
|
|
5754
|
+
/** Hide the secondary variant's track border (the long underline / left rail).
|
|
5755
|
+
* Has no effect on `primary`. The active-tab indicator is unaffected. Defaults to `false`. */
|
|
5756
|
+
hideBorder?: boolean;
|
|
5724
5757
|
/** Show separator lines between tabs. */
|
|
5725
5758
|
showSeparator?: boolean;
|
|
5726
5759
|
/** Haptic feedback on tab switch. Pass false to disable. */
|