@ousi-ui/vue 0.3.0 → 0.3.1

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.d.ts CHANGED
@@ -4590,6 +4590,29 @@ export declare const OTimeline: __VLS_WithTemplateSlots_47<typeof __VLS_componen
4590
4590
 
4591
4591
  export declare const OTimelineNav: __VLS_WithTemplateSlots_48<typeof __VLS_component_48, __VLS_TemplateResult_48["slots"]>;
4592
4592
 
4593
+ export declare const OTimePicker: DefineComponent<TimePickerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4594
+ change: (value: TimeFieldValue | null) => any;
4595
+ "update:modelValue": (value: TimeFieldValue | null) => any;
4596
+ }, string, PublicProps, Readonly<TimePickerProps> & Readonly<{
4597
+ onChange?: ((value: TimeFieldValue | null) => any) | undefined;
4598
+ "onUpdate:modelValue"?: ((value: TimeFieldValue | null) => any) | undefined;
4599
+ }>, {
4600
+ variant: "primary" | "secondary";
4601
+ shadow: TimePickerShadow;
4602
+ disabled: boolean;
4603
+ placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
4604
+ animated: boolean;
4605
+ required: boolean;
4606
+ readonly: boolean;
4607
+ granularity: TimeFieldGranularity;
4608
+ hour12: boolean;
4609
+ interval: TimePickerInterval;
4610
+ showNow: boolean;
4611
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
4612
+ triggerRef: HTMLButtonElement;
4613
+ popoverRef: HTMLDivElement;
4614
+ }, any>;
4615
+
4593
4616
  export declare const OToastProvider: DefineComponent<ToastProviderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ToastProviderProps> & Readonly<{}>, {
4594
4617
  shadow: ToastShadow;
4595
4618
  placement: ToastPlacement;
@@ -5733,6 +5756,87 @@ export declare const timelineTheme: (props?: ({
5733
5756
  layout?: "vertical" | "horizontal" | null | undefined;
5734
5757
  } & ClassProp) | undefined) => string;
5735
5758
 
5759
+ export declare const timePickerDescriptionTheme = "text-xs text-ousi-muted";
5760
+
5761
+ export declare interface TimePickerEmits {
5762
+ 'update:modelValue': [value: TimeFieldValue | null];
5763
+ 'change': [value: TimeFieldValue | null];
5764
+ }
5765
+
5766
+ export declare const timePickerErrorTheme = "text-xs text-ousi-danger";
5767
+
5768
+ export declare type TimePickerInterval = 1 | 5 | 10 | 15 | 30 | 60;
5769
+
5770
+ /** Label above the field. */
5771
+ export declare const timePickerLabelTheme: (props?: ({
5772
+ required?: boolean | null | undefined;
5773
+ disabled?: boolean | null | undefined;
5774
+ invalid?: boolean | null | undefined;
5775
+ } & ClassProp) | undefined) => string;
5776
+
5777
+ /** Floating popover that wraps the wheel columns. */
5778
+ export declare const timePickerPopoverTheme: string;
5779
+
5780
+ export declare interface TimePickerProps {
5781
+ /** Current time value (v-model). */
5782
+ modelValue?: TimeFieldValue | null;
5783
+ /** Default time value. */
5784
+ defaultValue?: TimeFieldValue | null;
5785
+ /** Label text. */
5786
+ label?: string;
5787
+ /** Description text below the field. */
5788
+ description?: string;
5789
+ /** Error message — replaces description when present. */
5790
+ errorMessage?: string;
5791
+ /** 12-hour format with AM/PM column. Defaults to false (24h). */
5792
+ hour12?: boolean;
5793
+ /** Granularity of the picker. Defaults to 'minute'. */
5794
+ granularity?: TimeFieldGranularity;
5795
+ /** Step in minutes for the minute wheel. Defaults to 5. */
5796
+ interval?: TimePickerInterval;
5797
+ /** Minimum allowed time. */
5798
+ min?: TimeFieldValue;
5799
+ /** Maximum allowed time. */
5800
+ max?: TimeFieldValue;
5801
+ /** Popover placement relative to trigger. */
5802
+ placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
5803
+ /** Disable the picker. */
5804
+ disabled?: boolean;
5805
+ /** Read-only mode. */
5806
+ readonly?: boolean;
5807
+ /** Mark as required (shows asterisk on label). */
5808
+ required?: boolean;
5809
+ /** Visual variant of the field. Defaults to 'primary'. */
5810
+ variant?: 'primary' | 'secondary';
5811
+ /** Elevation shadow on the trigger. Defaults to 'xs'. */
5812
+ shadow?: TimePickerShadow;
5813
+ /** Enable tactile press animation (scale on focus). Defaults to false. */
5814
+ animated?: boolean;
5815
+ /** Show "Now" button in the popover. Defaults to true. */
5816
+ showNow?: boolean;
5817
+ /** Additional CSS classes. */
5818
+ class?: string;
5819
+ }
5820
+
5821
+ export declare type TimePickerShadow = 'none' | 'xs' | 'sm' | 'md';
5822
+
5823
+ /** Trigger button — looks like a field, opens the wheels popover. */
5824
+ export declare const timePickerTriggerTheme: (props?: ({
5825
+ variant?: "primary" | "secondary" | null | undefined;
5826
+ shadow?: "none" | "sm" | "md" | "xs" | null | undefined;
5827
+ animated?: boolean | null | undefined;
5828
+ } & ClassProp) | undefined) => string;
5829
+
5830
+ /** Each item inside a wheel. Base text is foreground; the wheel applies inline
5831
+ * scale + opacity per item based on distance from the center. */
5832
+ export declare const timePickerWheelItemTheme: (props?: ClassProp | undefined) => string;
5833
+
5834
+ /** A single scrollable wheel column. */
5835
+ export declare const timePickerWheelTheme: string;
5836
+
5837
+ /** Outer wrapper — stacks label, trigger, description/error vertically. */
5838
+ export declare const timePickerWrapperTheme = "flex w-full flex-col gap-1";
5839
+
5736
5840
  export declare function toast(title: string, options?: ToastOptions): string;
5737
5841
 
5738
5842
  export declare namespace toast {