@dolanske/vui 0.1.5 → 0.3.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/README.md +29 -98
- package/dist/components/Accordion/Accordion.vue.d.ts +1 -0
- package/dist/components/Avatar/Avatar.vue.d.ts +1 -1
- package/dist/components/Calendar/Calendar.vue.d.ts +1 -1
- package/dist/components/Divider/Divider.vue.d.ts +2 -4
- package/dist/components/Dropdown/Dropdown.vue.d.ts +105 -0
- package/dist/components/Flex/Flex.vue.d.ts +2 -2
- package/dist/components/Grid/Grid.vue.d.ts +2 -2
- package/dist/components/Input/Dropzone.vue.d.ts +1 -0
- package/dist/components/Input/Input.vue.d.ts +1 -0
- package/dist/components/Popout/Popout.vue.d.ts +3 -3
- package/dist/components/Radio/Radio.vue.d.ts +1 -1
- package/dist/components/Radio/RadioGroup.vue.d.ts +3 -12
- package/dist/components/Tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/shared/helpers.d.ts +6 -0
- package/dist/shared/types.d.ts +14 -0
- package/dist/style.css +1 -1
- package/dist/vui.js +4617 -4470
- package/package.json +6 -2
- package/src/App.vue +24 -16
- package/src/components/Accordion/Accordion.vue +8 -4
- package/src/components/Accordion/accordion.scss +38 -2
- package/src/components/Alert/alert.scss +1 -1
- package/src/components/Avatar/Avatar.vue +10 -3
- package/src/components/Avatar/avatar.scss +5 -5
- package/src/components/Button/Button.vue +6 -9
- package/src/components/Calendar/Calendar.vue +10 -8
- package/src/components/Card/Card.vue +2 -2
- package/src/components/Checkbox/Checkbox.vue +4 -1
- package/src/components/Checkbox/checkbox.scss +12 -6
- package/src/components/Divider/Divider.vue +18 -8
- package/src/components/Drawer/Drawer.vue +14 -10
- package/src/components/Drawer/drawer.scss +1 -14
- package/src/components/Dropdown/Dropdown.vue +14 -9
- package/src/components/Dropdown/dropdown.scss +4 -0
- package/src/components/Flex/Flex.vue +14 -17
- package/src/components/Grid/Grid.vue +9 -14
- package/src/components/Input/Input.vue +4 -1
- package/src/components/Input/Textarea.vue +7 -4
- package/src/components/Input/input.scss +13 -4
- package/src/components/OTP/otp.scss +1 -2
- package/src/components/Popout/Popout.vue +3 -3
- package/src/components/Progress/Progress.vue +13 -7
- package/src/components/Progress/progress.scss +1 -1
- package/src/components/Radio/Radio.vue +1 -1
- package/src/components/Radio/RadioGroup.vue +10 -5
- package/src/components/Sheet/Sheet.vue +16 -15
- package/src/components/Sheet/sheet.scss +4 -0
- package/src/components/Skeleton/Skeleton.vue +13 -16
- package/src/components/Spinner/Spinner.vue +9 -11
- package/src/components/Table/table.scss +1 -1
- package/src/components/Table/table.ts +2 -1
- package/src/components/Tabs/Tab.vue +1 -1
- package/src/components/Tabs/Tabs.vue +1 -0
- package/src/components/Toast/toast.ts +0 -24
- package/src/components/Tooltip/Tooltip.vue +6 -3
- package/src/index.ts +4 -0
- package/src/shared/helpers.ts +15 -0
- package/src/shared/types.ts +18 -0
- package/src/style/core.scss +28 -15
- package/src/style/fonts.scss +23 -0
- package/src/style/layout.scss +133 -1
- package/src/style/typography.scss +9 -9
- package/src/style/utils.scss +13 -0
- package/dist/shared/composables.d.ts +0 -3
- package/src/shared/composables.ts +0 -18
package/README.md
CHANGED
|
@@ -5,114 +5,45 @@
|
|
|
5
5
|
3. Build your thing bro
|
|
6
6
|
|
|
7
7
|
---
|
|
8
|
-
Dev stuff dont look
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
## 1.0 Checklist
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
- [ ] Real life test
|
|
12
|
+
- [ ] Might be useful to build this in the hivecom project
|
|
13
|
+
- [ ] Build an example page with 100% of the components
|
|
14
|
+
- [ ] Run accessibility tools on it
|
|
15
|
+
- [ ] Run color contrast test
|
|
16
|
+
- [ ] Make sure it works on mobile down to 340px
|
|
17
|
+
- [ ] Components
|
|
18
|
+
- [ ] Scale down Typography
|
|
19
|
+
- [x] Remove all occurrences of `v-bind()` from CSS style elements
|
|
20
|
+
---
|
|
13
21
|
|
|
14
|
-
|
|
15
|
-
- [x] File input
|
|
16
|
-
- [x] Style normal input
|
|
17
|
-
- [x] Dropzone (its own component)
|
|
18
|
-
- [x] Confirm dialog
|
|
19
|
-
- [x] 4 props (title, description, onCancel, onOk)
|
|
20
|
-
- [x] description is a slot
|
|
21
|
-
- [x] Date picker
|
|
22
|
-
- [x] Input Password
|
|
23
|
-
- [x] Wrapper around input with an eye icon which changes type to text
|
|
24
|
-
- [x] Number field (+ and -)
|
|
25
|
-
- [x] This could be implemented once Input improvements are in
|
|
26
|
-
- [x] Input improvements
|
|
27
|
-
- [x] Errors slot (border is red (maybe) and render red text before "after" slot). Prop is string[]
|
|
28
|
-
- [x] Prefix / suffix slots. Allow non-editable text/slots "within" the input component. This will require some styling changes as the input element itself cant use the border anymore
|
|
29
|
-
- [x] Progress Bar
|
|
30
|
-
- [x] Skeleton
|
|
31
|
-
- [x] Button
|
|
32
|
-
- [x] Add `accent` button variant
|
|
33
|
-
- [x] ButtonGroup
|
|
34
|
-
- [x] Merges buttons together vertically or horizontally (merged border radius etc)
|
|
35
|
-
- [x] Toast
|
|
36
|
-
- [x] Grid
|
|
37
|
-
- [x] Flex
|
|
38
|
-
- [x] Input
|
|
39
|
-
- [x] Switch (like iOS)
|
|
40
|
-
- [x] Radio button group
|
|
41
|
-
- [x] Tabs
|
|
42
|
-
- [x] Filled
|
|
43
|
-
- [x] Card
|
|
44
|
-
- [x] Textarea
|
|
45
|
-
- [x] Autoexpand
|
|
46
|
-
- [x] Modal
|
|
47
|
-
- [x] Checkbox
|
|
48
|
-
- [x] Select
|
|
49
|
-
- [x] Depends on <Dropdown />
|
|
50
|
-
- [x] Single select
|
|
51
|
-
- [x] Multiselect
|
|
52
|
-
- [x] With search
|
|
53
|
-
- [x] Clearing
|
|
54
|
-
- [x] Accordion
|
|
55
|
-
- [x] Alert
|
|
56
|
-
- [x] Divider
|
|
57
|
-
- [x] Badge
|
|
58
|
-
- [x] Avatar
|
|
59
|
-
- [x] Content - It's a class called `.article` (can also use the <article /> HTML element)
|
|
60
|
-
- [x] Copy clipboard button
|
|
61
|
-
- [x] Renderless component consuming button props + copy prop
|
|
62
|
-
- [x] Copied text ()
|
|
63
|
-
- [x] Kbd
|
|
64
|
-
- [x] Option to highlight if key is pressed
|
|
65
|
-
- [x] Sheet
|
|
66
|
-
- [x] Size
|
|
67
|
-
- [x] Location
|
|
68
|
-
- [x] Tooltip
|
|
69
|
-
- [x] Custom placement
|
|
70
|
-
- [x] Show up delay
|
|
71
|
-
- [x] Dropdown
|
|
72
|
-
- [x] Dropdown itme
|
|
73
|
-
- [x] Dropdown title
|
|
74
|
-
- [x] Table
|
|
75
|
-
- [x] Header & sorting
|
|
76
|
-
- [X] Pagination
|
|
77
|
-
- [x] Row select
|
|
78
|
-
- [x] Reactive options (ability to alter functionality without having to re-render whole table)
|
|
79
|
-
- [x] Interactivity
|
|
80
|
-
- [x] Drawer
|
|
81
|
-
- [x] Pagination
|
|
82
|
-
- [x] Popout (https://floating-ui.com/)
|
|
83
|
-
- [x] Anchoring to a Component or element
|
|
84
|
-
- [x] Input Slider
|
|
85
|
-
- [x] Just style normal input slider
|
|
22
|
+
## 1.1
|
|
86
23
|
|
|
87
|
-
|
|
88
|
-
- [
|
|
89
|
-
- [ ]
|
|
90
|
-
- [ ]
|
|
91
|
-
- [x] Add generic outline
|
|
92
|
-
- [ ] Accessibility test
|
|
93
|
-
- [ ] Document how to
|
|
94
|
-
- [ ] Set up fonts for the library (global and global mono)
|
|
95
|
-
- [ ] Document how to set up --color-accent
|
|
96
|
-
- [ ] If something interactive is disabled, add disabled cursor
|
|
97
|
-
- [ ] Make sure all components have their variables localized so that they can be changed on a component level
|
|
98
|
-
- [ ] Create documentation site
|
|
99
|
-
- [ ] Check how everything looks on mobile
|
|
100
|
-
- [ ] Fix everything down to 300px
|
|
101
|
-
- [ ] Make some tweaks for typography sizing
|
|
24
|
+
- [ ] Improve customization
|
|
25
|
+
- [ ] Test how easy it is to modify values
|
|
26
|
+
- [ ] Explore option to provide styling using CSS modules?
|
|
27
|
+
- [ ] Make sure all components have their variables localized so that they can be changed on a component level (ugh what a bother)
|
|
102
28
|
|
|
103
|
-
|
|
29
|
+
- [ ] When assigning default values, always assigne them as CSS variables so they are customizable
|
|
104
30
|
|
|
105
|
-
### Post 1.
|
|
31
|
+
### Post 1.2 components
|
|
106
32
|
|
|
107
|
-
- [ ] Add Accordion style "card" to match styling of card (hoverable header + border under header with border around the whole thing)
|
|
108
33
|
- [ ] Carousel (slider)
|
|
109
|
-
- [x] InputOTP
|
|
110
|
-
- [x] Wrapper
|
|
111
|
-
- [x] Slot
|
|
112
|
-
- [x] Fix not working with components inbetween??
|
|
113
|
-
- [x] Paste
|
|
114
34
|
- [ ] CodeBlock
|
|
115
35
|
- [ ] Code highlighting
|
|
116
36
|
- [ ] Copy code
|
|
117
37
|
- [ ] Type, padding, etc
|
|
118
38
|
- [ ] Command dropdown
|
|
39
|
+
- [ ] Documentation
|
|
40
|
+
- [ ] Design my own documentation site (GENERIC?!)
|
|
41
|
+
- [ ] Pages
|
|
42
|
+
- [ ] CSS variable setup, accent, fonts
|
|
43
|
+
- [ ] CSS helpers
|
|
44
|
+
- [ ] Components
|
|
45
|
+
- [ ] Typography page
|
|
46
|
+
|
|
47
|
+
### Whenever
|
|
48
|
+
|
|
49
|
+
- [ ] Bump target from ES2022 whenever vite-plugin-dts is fixed
|
|
@@ -12,8 +12,8 @@ declare const __VLS_component: import('vue').DefineComponent<VueDatePickerProps
|
|
|
12
12
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VueDatePickerProps & {
|
|
13
13
|
expand?: boolean;
|
|
14
14
|
}> & Readonly<{}>, {
|
|
15
|
-
expand: boolean;
|
|
16
15
|
dark: boolean;
|
|
16
|
+
expand: boolean;
|
|
17
17
|
format: string | ((date: Date) => string) | ((dates: Date[]) => string);
|
|
18
18
|
autoApply: boolean;
|
|
19
19
|
autoPosition: boolean | "top" | "bottom";
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Placement } from '../../shared/types';
|
|
2
|
+
export interface Props {
|
|
3
|
+
/**
|
|
4
|
+
* Tooltip placement related to the anchor
|
|
5
|
+
*/
|
|
6
|
+
placement?: Placement;
|
|
7
|
+
/**
|
|
8
|
+
* Set the minimum width of the dropdown element
|
|
9
|
+
*/
|
|
10
|
+
minWidth?: number | string;
|
|
11
|
+
/**
|
|
12
|
+
* Sets the width of the dropdown to the width of its anchor
|
|
13
|
+
*/
|
|
14
|
+
expand?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare function open(): void;
|
|
17
|
+
declare function close(): void;
|
|
18
|
+
declare function toggle(): void;
|
|
19
|
+
declare function __VLS_template(): {
|
|
20
|
+
slots: {
|
|
21
|
+
trigger?(_: {
|
|
22
|
+
open: typeof open;
|
|
23
|
+
isOpen: boolean;
|
|
24
|
+
close: typeof close;
|
|
25
|
+
toggle: typeof toggle;
|
|
26
|
+
}): any;
|
|
27
|
+
default?(_: {
|
|
28
|
+
open: typeof open;
|
|
29
|
+
close: typeof close;
|
|
30
|
+
toggle: typeof toggle;
|
|
31
|
+
isOpen: true;
|
|
32
|
+
}): any;
|
|
33
|
+
};
|
|
34
|
+
refs: {
|
|
35
|
+
anchor: HTMLDivElement;
|
|
36
|
+
dropdown: ({
|
|
37
|
+
$: import('vue').ComponentInternalInstance;
|
|
38
|
+
$data: {};
|
|
39
|
+
$props: {
|
|
40
|
+
readonly anchor: import('../../shared/types').PopoutMaybeElement<HTMLElement>;
|
|
41
|
+
readonly placement?: Placement | undefined;
|
|
42
|
+
readonly offset?: number | undefined;
|
|
43
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
44
|
+
$attrs: {
|
|
45
|
+
[x: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
$refs: {
|
|
48
|
+
[x: string]: unknown;
|
|
49
|
+
} & {
|
|
50
|
+
popout: HTMLDivElement;
|
|
51
|
+
};
|
|
52
|
+
$slots: Readonly<{
|
|
53
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
56
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
57
|
+
$host: Element | null;
|
|
58
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
59
|
+
$el: any;
|
|
60
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
61
|
+
offset: number;
|
|
62
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
63
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
64
|
+
created?: (() => void) | (() => void)[];
|
|
65
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
66
|
+
mounted?: (() => void) | (() => void)[];
|
|
67
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
68
|
+
updated?: (() => void) | (() => void)[];
|
|
69
|
+
activated?: (() => void) | (() => void)[];
|
|
70
|
+
deactivated?: (() => void) | (() => void)[];
|
|
71
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
72
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
73
|
+
destroyed?: (() => void) | (() => void)[];
|
|
74
|
+
unmounted?: (() => void) | (() => void)[];
|
|
75
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
76
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
77
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
78
|
+
};
|
|
79
|
+
$forceUpdate: () => void;
|
|
80
|
+
$nextTick: typeof import('vue').nextTick;
|
|
81
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
82
|
+
} & Readonly<{
|
|
83
|
+
offset: number;
|
|
84
|
+
}> & Omit<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{}>, "offset"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
85
|
+
$slots: {
|
|
86
|
+
default?(_: {}): any;
|
|
87
|
+
};
|
|
88
|
+
}) | null;
|
|
89
|
+
};
|
|
90
|
+
attrs: Partial<{}>;
|
|
91
|
+
};
|
|
92
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
93
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
94
|
+
open: typeof open;
|
|
95
|
+
close: typeof close;
|
|
96
|
+
toggle: typeof toggle;
|
|
97
|
+
isOpen: import('vue').Ref<boolean, boolean>;
|
|
98
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
99
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
100
|
+
export default _default;
|
|
101
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
102
|
+
new (): {
|
|
103
|
+
$slots: S;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Space } from '../../shared/types';
|
|
2
2
|
export interface FlexProps {
|
|
3
3
|
inline?: boolean;
|
|
4
4
|
wrap?: boolean;
|
|
@@ -7,7 +7,7 @@ export interface FlexProps {
|
|
|
7
7
|
column?: boolean;
|
|
8
8
|
rowReverse?: boolean;
|
|
9
9
|
columnReverse?: boolean;
|
|
10
|
-
gap?:
|
|
10
|
+
gap?: Space | number;
|
|
11
11
|
justifyStart?: boolean;
|
|
12
12
|
justifyEnd?: boolean;
|
|
13
13
|
justifyCenter?: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Space } from '../../shared/types';
|
|
2
2
|
/**
|
|
3
3
|
* This component is not meant for complex grids
|
|
4
4
|
*/
|
|
5
5
|
interface Props {
|
|
6
6
|
inline?: boolean;
|
|
7
|
-
gap?:
|
|
7
|
+
gap?: Space | number;
|
|
8
8
|
rows?: number | string;
|
|
9
9
|
columns?: number | string;
|
|
10
10
|
areas?: string[];
|
|
@@ -26,6 +26,7 @@ declare function __VLS_template(): {
|
|
|
26
26
|
readonly multiple?: boolean | undefined;
|
|
27
27
|
readonly min?: number | undefined;
|
|
28
28
|
readonly max?: number | undefined;
|
|
29
|
+
readonly disabled?: boolean | undefined;
|
|
29
30
|
readonly "onUpdate:modelValue"?: ((modelValue: string | number) => any) | undefined;
|
|
30
31
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
31
32
|
$attrs: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
interface Props {
|
|
3
|
-
anchor:
|
|
1
|
+
import { Placement, PopoutMaybeElement } from '../../shared/types';
|
|
2
|
+
export interface Props {
|
|
3
|
+
anchor: PopoutMaybeElement<HTMLElement>;
|
|
4
4
|
/**
|
|
5
5
|
* Override the autoPlacement option
|
|
6
6
|
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { VNode } from 'vue';
|
|
2
1
|
import { FlexProps } from '../Flex/Flex.vue';
|
|
3
|
-
import {
|
|
2
|
+
import { default as Radio } from './Radio.vue';
|
|
4
3
|
interface Props extends FlexProps {
|
|
5
4
|
disabled?: boolean;
|
|
6
5
|
}
|
|
@@ -10,17 +9,9 @@ type __VLS_PublicProps = {
|
|
|
10
9
|
} & typeof __VLS_typeProps;
|
|
11
10
|
declare function __VLS_template(): {
|
|
12
11
|
slots: Readonly<{
|
|
13
|
-
default: () =>
|
|
14
|
-
children: Array<VNode & {
|
|
15
|
-
props: RadioProps;
|
|
16
|
-
}>;
|
|
17
|
-
}[];
|
|
12
|
+
default: () => Array<typeof Radio>;
|
|
18
13
|
}> & {
|
|
19
|
-
default: () =>
|
|
20
|
-
children: Array<VNode & {
|
|
21
|
-
props: RadioProps;
|
|
22
|
-
}>;
|
|
23
|
-
}[];
|
|
14
|
+
default: () => Array<typeof Radio>;
|
|
24
15
|
};
|
|
25
16
|
refs: {};
|
|
26
17
|
attrs: Partial<{}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ import { default as Confirm } from './components/Modal/Confirm.vue';
|
|
|
30
30
|
import { default as Modal } from './components/Modal/Modal.vue';
|
|
31
31
|
import { default as OTP } from './components/OTP/OTP.vue';
|
|
32
32
|
import { default as OTPItem } from './components/OTP/OTPItem.vue';
|
|
33
|
+
import { paginate } from './components/Pagination/pagination';
|
|
33
34
|
import { default as Pagination } from './components/Pagination/Pagination.vue';
|
|
34
35
|
import { default as Popout } from './components/Popout/Popout.vue';
|
|
35
36
|
import { default as Progress } from './components/Progress/Progress.vue';
|
|
@@ -45,6 +46,7 @@ import { default as Header } from './components/Table/Header.vue';
|
|
|
45
46
|
import { default as Row } from './components/Table/Row.vue';
|
|
46
47
|
import { default as SelectAll } from './components/Table/SelectAll.vue';
|
|
47
48
|
import { default as SelectRow } from './components/Table/SelectRow.vue';
|
|
49
|
+
import { defineTable } from './components/Table/table';
|
|
48
50
|
import { default as Table } from './components/Table/Table.vue';
|
|
49
51
|
import { default as Tab } from './components/Tabs/Tab.vue';
|
|
50
52
|
import { default as Tabs } from './components/Tabs/Tabs.vue';
|
|
@@ -53,4 +55,4 @@ import { default as Toasts } from './components/Toast/Toasts.vue';
|
|
|
53
55
|
import { default as Tooltip } from './components/Tooltip/Tooltip.vue';
|
|
54
56
|
import { default as Backdrop } from './internal/Backdrop/Backdrop.vue';
|
|
55
57
|
import { searchString } from './shared/helpers';
|
|
56
|
-
export { Accordion, AccordionGroup, Alert, Avatar, Backdrop, Badge, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Cell, Checkbox, Confirm, CopyClipboard, Counter, Divider, Drawer, Dropdown, DropdownItem, DropdownTitle, Dropzone, File, Flex, Grid, Header, Input, Kbd, KbdGroup, Modal, OTP, OTPItem, Pagination, Password, Popout, Progress, pushToast, Radio, RadioGroup, removeToast, Row, searchString, Select, SelectAll, SelectRow, Sheet, Skeleton, Spinner, Switch, Tab, Table, Tabs, Textarea, Toasts, Tooltip, };
|
|
58
|
+
export { Accordion, AccordionGroup, Alert, Avatar, Backdrop, Badge, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Cell, Checkbox, Confirm, CopyClipboard, Counter, defineTable, Divider, Drawer, Dropdown, DropdownItem, DropdownTitle, Dropzone, File, Flex, Grid, Header, Input, Kbd, KbdGroup, Modal, OTP, OTPItem, paginate, Pagination, Password, Popout, Progress, pushToast, Radio, RadioGroup, removeToast, Row, searchString, Select, SelectAll, SelectRow, Sheet, Skeleton, Spinner, Switch, Tab, Table, Tabs, Textarea, Toasts, Tooltip, };
|
package/dist/shared/helpers.d.ts
CHANGED
|
@@ -15,3 +15,9 @@ export declare function stringRgbToValues(rgbString: string): [number, number, n
|
|
|
15
15
|
export declare function randomMinMax(min: number, max: number): number;
|
|
16
16
|
export declare function delay(amount: number): Promise<any>;
|
|
17
17
|
export declare function setCharAt(str: string, char: string | number, index: number): string;
|
|
18
|
+
/**
|
|
19
|
+
* Takes in a value and if it is a number, appends "px" to it, otherwise returns
|
|
20
|
+
* the original value.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare function formatUnitValue(value: string | number, unit?: string): string;
|
package/dist/shared/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from 'vue';
|
|
1
2
|
export declare enum Size {
|
|
2
3
|
s = "s",
|
|
3
4
|
m = "m",
|
|
@@ -8,3 +9,16 @@ export type DeepRequired<T> = {
|
|
|
8
9
|
[K in keyof T]: DeepRequired<T[K]>;
|
|
9
10
|
} & Required<T>;
|
|
10
11
|
export type VueClass = string | Record<string, boolean> | Array<string | Record<string, string | boolean>>;
|
|
12
|
+
export type PopoutMaybeElement<T> = T | ComponentPublicInstance | null | undefined;
|
|
13
|
+
export type Placement = 'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end';
|
|
14
|
+
export type Space = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
|
|
15
|
+
export declare enum SpaceSize {
|
|
16
|
+
xxs = "xxs",
|
|
17
|
+
xs = "xs",
|
|
18
|
+
s = "s",
|
|
19
|
+
m = "m",
|
|
20
|
+
l = "l",
|
|
21
|
+
xl = "xl",
|
|
22
|
+
xxl = "xxl",
|
|
23
|
+
xxxl = "xxxl"
|
|
24
|
+
}
|