@sabrenski/spire-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/README.md +4 -4
- package/dist/components/Autocomplete/Autocomplete.vue.d.ts +2 -0
- package/dist/components/Autocomplete/types.d.ts +5 -0
- package/dist/components/Badge/types.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
- package/dist/components/DatePicker/types.d.ts +5 -0
- package/dist/components/LineChart/LineChartTooltip.vue.d.ts +6 -4
- package/dist/components/PhoneInput/PhoneInput.vue.d.ts +2 -0
- package/dist/components/PhoneInput/types.d.ts +5 -0
- package/dist/components/Select/Select.vue.d.ts +2 -0
- package/dist/components/Select/types.d.ts +5 -0
- package/dist/components/TimeInput/TimeInput.vue.d.ts +2 -0
- package/dist/components/TimeInput/types.d.ts +5 -0
- package/dist/spire-ui.cjs +34 -34
- package/dist/spire-ui.css +1 -1
- package/dist/spire-ui.js +5525 -5505
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -99,8 +99,8 @@ app.use(SpireUI, {
|
|
|
99
99
|
},
|
|
100
100
|
// Badge component
|
|
101
101
|
badge: {
|
|
102
|
-
variant: 'solid', // 'solid' | 'flat' | '
|
|
103
|
-
color: 'default', // 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger'
|
|
102
|
+
variant: 'solid', // 'solid' | 'flat' | 'outline'
|
|
103
|
+
color: 'default', // 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info'
|
|
104
104
|
size: 'md', // 'sm' | 'md' | 'lg'
|
|
105
105
|
},
|
|
106
106
|
// Avatar component
|
|
@@ -308,8 +308,8 @@ import { useToast, useRovingFocus, useVirtualScroll, useComponentDefault } from
|
|
|
308
308
|
| Prop | Type | Default | Description |
|
|
309
309
|
|------|------|---------|-------------|
|
|
310
310
|
| `content` | `string \| number` | - | Badge content |
|
|
311
|
-
| `variant` | `'solid' \| 'flat' \| '
|
|
312
|
-
| `color` | `'default' \| 'primary' \| 'secondary' \| 'success' \| 'warning' \| 'danger'` | `'default'` | Color |
|
|
311
|
+
| `variant` | `'solid' \| 'flat' \| 'outline'` | `'solid'` | Visual style |
|
|
312
|
+
| `color` | `'default' \| 'primary' \| 'secondary' \| 'success' \| 'warning' \| 'danger' \| 'info'` | `'default'` | Color |
|
|
313
313
|
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | Size |
|
|
314
314
|
| `dot` | `boolean` | `false` | Show as dot |
|
|
315
315
|
|
|
@@ -33,6 +33,7 @@ declare const __VLS_component: import('vue').DefineComponent<AutocompleteProps,
|
|
|
33
33
|
}>, {
|
|
34
34
|
multiple: boolean;
|
|
35
35
|
disabled: boolean;
|
|
36
|
+
placement: import('../..').Placement;
|
|
36
37
|
loading: boolean;
|
|
37
38
|
placeholder: string;
|
|
38
39
|
invalid: boolean;
|
|
@@ -45,6 +46,7 @@ declare const __VLS_component: import('vue').DefineComponent<AutocompleteProps,
|
|
|
45
46
|
maxChips: number;
|
|
46
47
|
emptyMessage: string;
|
|
47
48
|
loadingMessage: string;
|
|
49
|
+
strategy: "absolute" | "fixed";
|
|
48
50
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
49
51
|
inputRef: HTMLInputElement;
|
|
50
52
|
}, any>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InjectionKey, Ref, Component } from 'vue';
|
|
2
|
+
import { Placement } from '../../composables';
|
|
2
3
|
export type AutocompleteSize = 'sm' | 'md' | 'lg';
|
|
3
4
|
export type AutocompleteVariant = 'outline' | 'filled' | 'underline';
|
|
4
5
|
export interface AutocompleteOptionData {
|
|
@@ -51,6 +52,10 @@ export interface AutocompleteProps {
|
|
|
51
52
|
emptyMessage?: string;
|
|
52
53
|
/** Message while loading */
|
|
53
54
|
loadingMessage?: string;
|
|
55
|
+
/** Placement of the dropdown relative to the trigger */
|
|
56
|
+
placement?: Placement;
|
|
57
|
+
/** Positioning strategy for the dropdown */
|
|
58
|
+
strategy?: 'absolute' | 'fixed';
|
|
54
59
|
}
|
|
55
60
|
export interface AutocompleteOptionProps {
|
|
56
61
|
value: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
|
-
export type BadgeVariant = 'solid' | 'flat' | '
|
|
3
|
-
export type BadgeColor = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
2
|
+
export type BadgeVariant = 'solid' | 'flat' | 'outline';
|
|
3
|
+
export type BadgeColor = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
|
|
4
4
|
export type BadgeSize = 'sm' | 'md' | 'lg';
|
|
5
5
|
export type BadgeShape = 'circle' | 'rectangle';
|
|
6
6
|
export type BadgePlacement = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
@@ -10,9 +10,11 @@ declare const _default: import('vue').DefineComponent<DatePickerProps, {}, {}, {
|
|
|
10
10
|
size: DatePickerSize;
|
|
11
11
|
variant: DatePickerVariant;
|
|
12
12
|
disabled: boolean;
|
|
13
|
+
placement: import('../..').Placement;
|
|
13
14
|
placeholder: string;
|
|
14
15
|
clearable: boolean;
|
|
15
16
|
readonly: boolean;
|
|
17
|
+
strategy: "absolute" | "fixed";
|
|
16
18
|
locale: string;
|
|
17
19
|
mode: import('..').CalendarMode;
|
|
18
20
|
firstDayOfWeek: 0 | 1;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CalendarMode, DateRange, DateRangePreset } from '../Calendar/types';
|
|
2
|
+
import { Placement } from '../../composables';
|
|
2
3
|
export type DatePickerSize = 'sm' | 'md' | 'lg';
|
|
3
4
|
export type DatePickerVariant = 'outline' | 'filled' | 'underline';
|
|
4
5
|
export interface DatePickerProps {
|
|
@@ -38,4 +39,8 @@ export interface DatePickerProps {
|
|
|
38
39
|
firstDayOfWeek?: 0 | 1;
|
|
39
40
|
/** Locale for formatting */
|
|
40
41
|
locale?: string;
|
|
42
|
+
/** Placement of the dropdown relative to the trigger */
|
|
43
|
+
placement?: Placement;
|
|
44
|
+
/** Positioning strategy for the dropdown */
|
|
45
|
+
strategy?: 'absolute' | 'fixed';
|
|
41
46
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { LineChartTooltipData } from './types';
|
|
2
2
|
export interface LineChartTooltipProps {
|
|
3
3
|
data: LineChartTooltipData;
|
|
4
|
+
/** X position relative to container */
|
|
4
5
|
x: number;
|
|
6
|
+
/** Y position relative to container */
|
|
5
7
|
y: number;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
/** Container's bounding rect for viewport positioning */
|
|
9
|
+
containerRect: DOMRect;
|
|
8
10
|
}
|
|
9
11
|
declare function __VLS_template(): {
|
|
10
12
|
attrs: Partial<{}>;
|
|
@@ -18,10 +20,10 @@ declare function __VLS_template(): {
|
|
|
18
20
|
}): any;
|
|
19
21
|
};
|
|
20
22
|
refs: {};
|
|
21
|
-
rootEl:
|
|
23
|
+
rootEl: any;
|
|
22
24
|
};
|
|
23
25
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
-
declare const __VLS_component: import('vue').DefineComponent<LineChartTooltipProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LineChartTooltipProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<LineChartTooltipProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LineChartTooltipProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
27
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
28
|
export default _default;
|
|
27
29
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -18,10 +18,12 @@ declare const _default: import('vue').DefineComponent<PhoneInputProps, {
|
|
|
18
18
|
size: PhoneInputSize;
|
|
19
19
|
variant: PhoneInputVariant;
|
|
20
20
|
disabled: boolean;
|
|
21
|
+
placement: import('../..').Placement;
|
|
21
22
|
placeholder: string;
|
|
22
23
|
invalid: boolean;
|
|
23
24
|
readonly: boolean;
|
|
24
25
|
debounceMs: number;
|
|
26
|
+
strategy: "absolute" | "fixed";
|
|
25
27
|
defaultCountry: string;
|
|
26
28
|
searchPlaceholder: string;
|
|
27
29
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { Placement } from '../../composables';
|
|
2
3
|
export type PhoneInputSize = 'sm' | 'md' | 'lg';
|
|
3
4
|
export type PhoneInputVariant = 'outline' | 'filled' | 'underline';
|
|
4
5
|
export interface PhoneInputValue {
|
|
@@ -44,6 +45,10 @@ export interface PhoneInputProps {
|
|
|
44
45
|
searchPlaceholder?: string;
|
|
45
46
|
/** Debounce delay for search input in milliseconds */
|
|
46
47
|
debounceMs?: number;
|
|
48
|
+
/** Placement of the dropdown relative to the trigger */
|
|
49
|
+
placement?: Placement;
|
|
50
|
+
/** Positioning strategy for the dropdown */
|
|
51
|
+
strategy?: 'absolute' | 'fixed';
|
|
47
52
|
}
|
|
48
53
|
export interface PhoneInputCountryProps {
|
|
49
54
|
/** Country data to display */
|
|
@@ -114,6 +114,7 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {}, {}
|
|
|
114
114
|
}>, {
|
|
115
115
|
multiple: boolean;
|
|
116
116
|
disabled: boolean;
|
|
117
|
+
placement: import('../..').Placement;
|
|
117
118
|
loading: boolean;
|
|
118
119
|
placeholder: string;
|
|
119
120
|
invalid: boolean;
|
|
@@ -121,6 +122,7 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {}, {}
|
|
|
121
122
|
chips: boolean;
|
|
122
123
|
maxChips: number;
|
|
123
124
|
emptyMessage: string;
|
|
125
|
+
strategy: "absolute" | "fixed";
|
|
124
126
|
searchable: boolean;
|
|
125
127
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
126
128
|
searchInputRef: ({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InjectionKey, Ref, Component } from 'vue';
|
|
2
|
+
import { Placement } from '../../composables';
|
|
2
3
|
export type SelectSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
3
4
|
export type SelectVariant = 'outline' | 'filled' | 'underline';
|
|
4
5
|
export interface SelectOptionData {
|
|
@@ -24,6 +25,10 @@ export interface SelectProps {
|
|
|
24
25
|
filterFn?: (query: string, option: SelectOptionData) => boolean;
|
|
25
26
|
loading?: boolean;
|
|
26
27
|
emptyMessage?: string;
|
|
28
|
+
/** Placement of the dropdown relative to the trigger */
|
|
29
|
+
placement?: Placement;
|
|
30
|
+
/** Positioning strategy for the dropdown */
|
|
31
|
+
strategy?: 'absolute' | 'fixed';
|
|
27
32
|
}
|
|
28
33
|
export interface SelectOptionProps {
|
|
29
34
|
value: string;
|
|
@@ -11,10 +11,12 @@ declare const _default: import('vue').DefineComponent<TimeInputProps, {}, {}, {}
|
|
|
11
11
|
size: TimeInputSize;
|
|
12
12
|
variant: TimeInputVariant;
|
|
13
13
|
disabled: boolean;
|
|
14
|
+
placement: import('../..').Placement;
|
|
14
15
|
placeholder: string;
|
|
15
16
|
invalid: boolean;
|
|
16
17
|
clearable: boolean;
|
|
17
18
|
readonly: boolean;
|
|
19
|
+
strategy: "absolute" | "fixed";
|
|
18
20
|
mode: import('./types').TimeInputMode;
|
|
19
21
|
format: import('./types').TimeInputFormat;
|
|
20
22
|
showSeconds: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Placement } from '../../composables';
|
|
1
2
|
export type TimeInputSize = 'sm' | 'md' | 'lg';
|
|
2
3
|
export type TimeInputVariant = 'outline' | 'filled' | 'underline';
|
|
3
4
|
export type TimeInputFormat = '12' | '24';
|
|
@@ -39,6 +40,10 @@ export interface TimeInputProps {
|
|
|
39
40
|
invalid?: boolean;
|
|
40
41
|
/** Show clear button */
|
|
41
42
|
clearable?: boolean;
|
|
43
|
+
/** Placement of the dropdown relative to the trigger */
|
|
44
|
+
placement?: Placement;
|
|
45
|
+
/** Positioning strategy for the dropdown */
|
|
46
|
+
strategy?: 'absolute' | 'fixed';
|
|
42
47
|
}
|
|
43
48
|
export interface TimeInputColumnsProps {
|
|
44
49
|
/** Selected hour (1-12 for 12h, 0-23 for 24h) */
|