@dayoakin/vue-ui 0.1.2 → 0.1.3
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/components/Button/Button.vue.d.ts +1 -1
- package/dist/components/Button/ButtonGroup.vue.d.ts +1 -1
- package/dist/components/Button/SecondaryButton/index.vue.d.ts +1 -1
- package/dist/components/Card/Card.vue.d.ts +1 -1
- package/dist/components/CodeBlock/index.vue.d.ts +1 -1
- package/dist/components/EmptyState/index.vue.d.ts +1 -1
- package/dist/components/Input/AddressAutocomplete/index.vue.d.ts +1 -1
- package/dist/components/Input/CheckboxInput/index.vue.d.ts +1 -1
- package/dist/components/Input/CurrencyConverterInput/index.vue.d.ts +2 -2
- package/dist/components/Input/CurrencyInput/index.vue.d.ts +2 -2
- package/dist/components/Input/DoubleRangeInput/index.vue.d.ts +1 -1
- package/dist/components/Input/OtpInput/index.vue.d.ts +2 -2
- package/dist/components/Input/SearchInput/index.vue.d.ts +1 -1
- package/dist/components/Input/Select/index.vue.d.ts +1 -1
- package/dist/components/Input/TelInput/index.vue.d.ts +1 -1
- package/dist/components/Input/Upload/index.vue.d.ts +1 -1
- package/dist/components/Loaders/index.vue.d.ts +1 -1
- package/dist/components/Modals/Modal.vue.d.ts +1 -1
- package/dist/components/Modals/RightSidebar.vue.d.ts +1 -1
- package/dist/components/Notification/AlertBox/AlertBox.vue.d.ts +1 -1
- package/dist/components/Notification/InlineToast/InlineToast.vue.d.ts +1 -1
- package/dist/components/Notification/Toast/index.vue.d.ts +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts +1 -1
- package/dist/components/Skeleton/index.vue.d.ts +1 -1
- package/dist/components/Tab/Tab.vue.d.ts +2 -2
- package/dist/components/Table/index.vue.d.ts +1 -1
- package/dist/components/utils/cn.d.ts +8 -0
- package/dist/{core/ui.d.ts → components/utils/theme.d.ts} +4 -0
- package/dist/index.cjs +7 -7
- package/dist/index.js +8963 -5956
- package/dist/lib.d.ts +2 -2
- package/dist/style.css +1 -1
- package/package.json +3 -4
- package/dist/core/theme.d.ts +0 -4
|
@@ -57,7 +57,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
57
57
|
fontSize: string;
|
|
58
58
|
}>;
|
|
59
59
|
handleChange: (e: Event) => void;
|
|
60
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("
|
|
60
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
61
61
|
modelValue: {
|
|
62
62
|
type: BooleanConstructor;
|
|
63
63
|
default: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { uiAttrs } from '
|
|
1
|
+
import { uiAttrs } from '../../utils/theme';
|
|
2
2
|
export declare const WORLD_CURRENCIES: {
|
|
3
3
|
code: string;
|
|
4
4
|
symbol: string;
|
|
@@ -400,7 +400,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
400
400
|
fontSize: string;
|
|
401
401
|
padding: string;
|
|
402
402
|
}>;
|
|
403
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("update:modelValue" | "valid" | "update:modelCurrency" | "
|
|
403
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue" | "valid" | "update:modelCurrency" | "focus" | "blur")[], "change" | "update:modelValue" | "valid" | "update:modelCurrency" | "focus" | "blur", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
404
404
|
modelValue: {
|
|
405
405
|
type: (StringConstructor | NumberConstructor)[];
|
|
406
406
|
default: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { uiAttrs } from '
|
|
1
|
+
import { uiAttrs } from '../../utils/theme';
|
|
2
2
|
export interface CurrencyItem {
|
|
3
3
|
code: string;
|
|
4
4
|
symbol: string;
|
|
@@ -150,7 +150,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
150
150
|
fontSize: string;
|
|
151
151
|
padding: string;
|
|
152
152
|
}>;
|
|
153
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("update:modelValue" | "valid" | "update:modelCurrency" | "
|
|
153
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue" | "valid" | "update:modelCurrency" | "focus" | "blur")[], "change" | "update:modelValue" | "valid" | "update:modelCurrency" | "focus" | "blur", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
154
154
|
modelValue: {
|
|
155
155
|
type: (StringConstructor | NumberConstructor)[];
|
|
156
156
|
default: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { uiAttrs } from '
|
|
1
|
+
import { uiAttrs } from '../../utils/theme';
|
|
2
2
|
declare const _default: typeof __VLS_export;
|
|
3
3
|
export default _default;
|
|
4
4
|
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -145,7 +145,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
145
145
|
handlePaste: (e: ClipboardEvent) => void;
|
|
146
146
|
clear: () => void;
|
|
147
147
|
fill: (code: string) => void;
|
|
148
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("
|
|
148
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue" | "complete")[], "change" | "update:modelValue" | "complete", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
149
149
|
modelValue: {
|
|
150
150
|
type: StringConstructor;
|
|
151
151
|
default: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { uiAttrs } from '
|
|
1
|
+
import { uiAttrs } from '../utils/theme';
|
|
2
2
|
type Size = "sm" | "md" | "lg";
|
|
3
3
|
interface TabOption {
|
|
4
4
|
label: string;
|
|
@@ -79,7 +79,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
79
79
|
getTextStyle: (option: TabOption) => {
|
|
80
80
|
color: string;
|
|
81
81
|
};
|
|
82
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("
|
|
82
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
83
83
|
options: {
|
|
84
84
|
type: () => (TabOption | string)[];
|
|
85
85
|
required: true;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
/**
|
|
3
|
+
* Merge class names — supports strings, objects, arrays.
|
|
4
|
+
* Conflicting Tailwind utilities are resolved in favour of the LAST one, so a
|
|
5
|
+
* consumer's `className` always beats the library's own defaults
|
|
6
|
+
* (`cn("px-4 bg-[var(--btn-bg)]", "px-8 bg-red-500")` → "px-8 bg-red-500").
|
|
7
|
+
*/
|
|
8
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
@@ -85,4 +85,8 @@ export interface HoverResult {
|
|
|
85
85
|
* one gets a faint tint of its own text colour.
|
|
86
86
|
*/
|
|
87
87
|
export declare function hoverProps(o?: HoverOptions): HoverResult;
|
|
88
|
+
export declare const useTheme: () => {
|
|
89
|
+
theme: import('vue').Ref<"light" | "dark", "light" | "dark">;
|
|
90
|
+
toggleTheme: () => void;
|
|
91
|
+
};
|
|
88
92
|
export {};
|