@octans/ui 1.4.0 → 1.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.
Files changed (28) hide show
  1. package/dist/components/CalendarHeatmap/CalendarHeatmap.vue.d.ts +13 -1
  2. package/dist/components/Card/CardSection.vue.d.ts +35 -0
  3. package/dist/components/ColorSelector/ColorSelector.vue.d.ts +14 -2
  4. package/dist/components/DatePicker/DatePicker.vue.d.ts +13 -1
  5. package/dist/components/Filters/FilterItem.vue.d.ts +54 -5
  6. package/dist/components/Filters/Filters.vue.d.ts +60 -14
  7. package/dist/components/OtpInput/OtpInput.vue.d.ts +13 -1
  8. package/dist/components/Popover/Popover.vue.d.ts +5 -4
  9. package/dist/components/Popover/index.d.ts +3 -0
  10. package/dist/components/Popover/types.d.ts +13 -0
  11. package/dist/components/RangeSlider/RangeSlider.vue.d.ts +4 -0
  12. package/dist/components/Rating/Rating.vue.d.ts +13 -1
  13. package/dist/components/ScrollPane/ScrollPane.vue.d.ts +14 -1
  14. package/dist/components/ScrollPane/index.d.ts +1 -1
  15. package/dist/components/ScrollPane/types.d.ts +22 -0
  16. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +6 -2
  17. package/dist/components/Select/Select.vue.d.ts +3 -0
  18. package/dist/components/Sheet/Sheet.vue.d.ts +3 -4
  19. package/dist/components/Sheet/types.d.ts +24 -5
  20. package/dist/components/TextField/TextField.vue.d.ts +9 -5
  21. package/dist/components/TextField/types.d.ts +14 -0
  22. package/dist/components/TimePicker/TimePicker.vue.d.ts +13 -1
  23. package/dist/components/ToggleSwitch/ToggleSwitch.vue.d.ts +6 -2
  24. package/dist/style.css +1 -1
  25. package/dist/ui.js +2417 -2182
  26. package/dist/ui.umd.js +4 -4
  27. package/dist/utils/tokens.d.ts +1 -1
  28. package/package.json +1 -1
@@ -689,6 +689,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
689
689
  ScrollPane: {
690
690
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../ScrollPane').ScrollPaneProps> & Readonly<{}>, {
691
691
  scrollTo: (x: number, y: number) => void;
692
+ scrollIntoView: (target: Element | string | null | undefined, options?: import('../ScrollPane').ScrollPaneScrollIntoViewOptions) => void;
692
693
  update: () => void;
693
694
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
694
695
  disabled: boolean;
@@ -704,6 +705,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
704
705
  Defaults: {};
705
706
  }, Readonly<import('../ScrollPane').ScrollPaneProps> & Readonly<{}>, {
706
707
  scrollTo: (x: number, y: number) => void;
708
+ scrollIntoView: (target: Element | string | null | undefined, options?: import('../ScrollPane').ScrollPaneScrollIntoViewOptions) => void;
707
709
  update: () => void;
708
710
  }, {}, {}, {}, {
709
711
  disabled: boolean;
@@ -716,6 +718,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
716
718
  __isSuspense?: never;
717
719
  } & import('vue').ComponentOptionsBase<Readonly<import('../ScrollPane').ScrollPaneProps> & Readonly<{}>, {
718
720
  scrollTo: (x: number, y: number) => void;
721
+ scrollIntoView: (target: Element | string | null | undefined, options?: import('../ScrollPane').ScrollPaneScrollIntoViewOptions) => void;
719
722
  update: () => void;
720
723
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
721
724
  disabled: boolean;
@@ -1,11 +1,13 @@
1
1
  import { SheetProps } from './types';
2
- declare var __VLS_7: {}, __VLS_38: {}, __VLS_60: {};
2
+ declare var __VLS_7: {}, __VLS_38: {}, __VLS_60: {}, __VLS_62: {};
3
3
  type __VLS_Slots = {} & {
4
4
  external?: (props: typeof __VLS_7) => any;
5
5
  } & {
6
6
  actions?: (props: typeof __VLS_38) => any;
7
7
  } & {
8
8
  default?: (props: typeof __VLS_60) => any;
9
+ } & {
10
+ footer?: (props: typeof __VLS_62) => any;
9
11
  };
10
12
  declare const __VLS_base: import('vue').DefineComponent<SheetProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
13
  close: () => any;
@@ -23,12 +25,9 @@ declare const __VLS_base: import('vue').DefineComponent<SheetProps, {}, {}, {},
23
25
  "onAfter-close"?: (() => any) | undefined;
24
26
  }>, {
25
27
  visible: boolean;
26
- size: number;
27
28
  loading: boolean;
28
29
  peek: number;
29
30
  edge: import('./types').SheetEdgeType;
30
- animateInDuration: number;
31
- animateOutDuration: number;
32
31
  minIndex: number;
33
32
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
33
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -25,7 +25,10 @@ export interface SheetProps {
25
25
  * left or right sheet, its height for a top or bottom one. Clamped to the
26
26
  * screen when the sheet becomes the active (foreground) sheet.
27
27
  *
28
- * @default 700
28
+ * Left unset, it comes from `--octans-sheet-size`, so an app can set the
29
+ * width of every sheet in one place.
30
+ *
31
+ * @default '--octans-sheet-size' (700px)
29
32
  */
30
33
  size?: number;
31
34
  /**
@@ -36,22 +39,29 @@ export interface SheetProps {
36
39
  */
37
40
  peek?: number;
38
41
  /**
39
- * Adds padding around the sheet content and constrains it to a comfortable
40
- * reading width.
42
+ * Adds a gutter around the sheet content, inside the scrolling area.
43
+ *
44
+ * Padding and nothing else — it does not cap or centre the content. A sheet
45
+ * is only as wide as its `size` says, and anything that wants a reading
46
+ * measure can set one on its own content.
41
47
  */
42
48
  padded?: boolean;
43
49
  /**
44
50
  * Duration of the open (slide/fade-in) animation in milliseconds.
45
51
  * Set to `0` to open instantly with no animation.
46
52
  *
47
- * @default 700
53
+ * Left unset, it comes from `--octans-sheet-in-duration`.
54
+ *
55
+ * @default '--octans-sheet-in-duration' (700ms)
48
56
  */
49
57
  animateInDuration?: number;
50
58
  /**
51
59
  * Duration of the close (slide/fade-out) animation in milliseconds.
52
60
  * Set to `0` to close instantly with no animation.
53
61
  *
54
- * @default 700
62
+ * Left unset, it comes from `--octans-sheet-out-duration`.
63
+ *
64
+ * @default '--octans-sheet-out-duration' (700ms)
55
65
  */
56
66
  animateOutDuration?: number;
57
67
  /**
@@ -73,6 +83,15 @@ export interface SheetProps {
73
83
  * Classes to add to the sheet content element.
74
84
  */
75
85
  contentClass?: Record<string, string> | string;
86
+ /**
87
+ * Classes to add to the element wrapping the `footer` slot. The footer bar
88
+ * itself is only rendered when that slot is filled.
89
+ *
90
+ * For alignment alone, reach for `--octans-sheet-footer-align` and
91
+ * `--octans-sheet-footer-gap` first — the wrapper's own layout rules sit at
92
+ * zero specificity, so a class here wins either way.
93
+ */
94
+ footerClass?: Record<string, string> | string;
76
95
  /**
77
96
  * Shows a spinner over the whole sheet and prevents closing.
78
97
  *
@@ -1,14 +1,18 @@
1
1
  import { TextFieldProps } from './types';
2
2
  declare function focus(): void;
3
- declare var __VLS_14: {}, __VLS_16: {}, __VLS_31: {}, __VLS_33: {};
3
+ declare var __VLS_9: any, __VLS_12: {}, __VLS_20: {}, __VLS_22: {}, __VLS_37: {}, __VLS_39: {};
4
4
  type __VLS_Slots = {} & {
5
- left?: (props: typeof __VLS_14) => any;
5
+ label?: (props: typeof __VLS_9) => any;
6
6
  } & {
7
- prefix?: (props: typeof __VLS_16) => any;
7
+ helpText?: (props: typeof __VLS_12) => any;
8
8
  } & {
9
- suffix?: (props: typeof __VLS_31) => any;
9
+ left?: (props: typeof __VLS_20) => any;
10
10
  } & {
11
- right?: (props: typeof __VLS_33) => any;
11
+ prefix?: (props: typeof __VLS_22) => any;
12
+ } & {
13
+ suffix?: (props: typeof __VLS_37) => any;
14
+ } & {
15
+ right?: (props: typeof __VLS_39) => any;
12
16
  };
13
17
  declare const __VLS_base: import('vue').DefineComponent<TextFieldProps, {
14
18
  focus: typeof focus;
@@ -33,6 +33,20 @@ export interface TextFieldProps {
33
33
  * Allow multiple lines of input.
34
34
  */
35
35
  multiline?: boolean | string | number;
36
+ /**
37
+ * How tall a `multiline` field may grow before it starts to scroll. Any CSS
38
+ * length, or `"none"` for no ceiling at all. A number is read as pixels.
39
+ *
40
+ * A multiline field already grows to fit what is typed into it; this is only
41
+ * the ceiling on that growth, and it defaults to `200px`. Reach for `"50vh"`
42
+ * more readily than `"none"` — a field that grows past the viewport inside a
43
+ * sheet or modal takes its buttons with it.
44
+ *
45
+ * The same thing is settable in CSS as `--octans-textfield-max-height`, on
46
+ * the field or any ancestor, for when the ceiling belongs to the layout
47
+ * rather than to the call site.
48
+ */
49
+ maxHeight?: string | number;
36
50
  /**
37
51
  * Maximum character length for the input.
38
52
  */
@@ -1,5 +1,11 @@
1
1
  import { TimePickerProps } from './types';
2
- declare const __VLS_export: import('vue').DefineComponent<TimePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2
+ declare var __VLS_9: any, __VLS_12: {};
3
+ type __VLS_Slots = {} & {
4
+ label?: (props: typeof __VLS_9) => any;
5
+ } & {
6
+ helpText?: (props: typeof __VLS_12) => any;
7
+ };
8
+ declare const __VLS_base: import('vue').DefineComponent<TimePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
9
  "update:modelValue": (value: string | null) => any;
4
10
  }, string, import('vue').PublicProps, Readonly<TimePickerProps> & Readonly<{
5
11
  "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
@@ -21,5 +27,11 @@ declare const __VLS_export: import('vue').DefineComponent<TimePickerProps, {}, {
21
27
  minuteStep: number;
22
28
  minuteStepStrict: boolean;
23
29
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
31
  declare const _default: typeof __VLS_export;
25
32
  export default _default;
33
+ type __VLS_WithSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -1,9 +1,13 @@
1
1
  import { ToggleSwitchProps } from './types';
2
- declare var __VLS_8: {
2
+ declare var __VLS_9: any, __VLS_12: {}, __VLS_14: {
3
3
  checked: boolean;
4
4
  };
5
5
  type __VLS_Slots = {} & {
6
- handle?: (props: typeof __VLS_8) => any;
6
+ label?: (props: typeof __VLS_9) => any;
7
+ } & {
8
+ helpText?: (props: typeof __VLS_12) => any;
9
+ } & {
10
+ handle?: (props: typeof __VLS_14) => any;
7
11
  };
8
12
  declare const __VLS_base: import('vue').DefineComponent<ToggleSwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
13
  "update:modelValue": (v: boolean) => any;