@dayoakin/vue-ui 0.1.2 → 0.1.4

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 (34) hide show
  1. package/dist/components/Button/Button.vue.d.ts +1 -1
  2. package/dist/components/Button/ButtonGroup.vue.d.ts +1 -1
  3. package/dist/components/Button/SecondaryButton/index.vue.d.ts +1 -1
  4. package/dist/components/Card/Card.vue.d.ts +1 -1
  5. package/dist/components/CodeBlock/index.vue.d.ts +1 -1
  6. package/dist/components/EmptyState/index.vue.d.ts +1 -1
  7. package/dist/components/Input/AddressAutocomplete/index.vue.d.ts +1 -1
  8. package/dist/components/Input/CheckboxInput/index.vue.d.ts +1 -1
  9. package/dist/components/Input/CurrencyConverterInput/index.vue.d.ts +2 -2
  10. package/dist/components/Input/CurrencyInput/index.vue.d.ts +2 -2
  11. package/dist/components/Input/DoubleRangeInput/index.vue.d.ts +1 -1
  12. package/dist/components/Input/OtpInput/index.vue.d.ts +2 -2
  13. package/dist/components/Input/SearchInput/index.vue.d.ts +1 -1
  14. package/dist/components/Input/Select/index.vue.d.ts +1 -1
  15. package/dist/components/Input/TelInput/index.vue.d.ts +1 -1
  16. package/dist/components/Input/Upload/index.vue.d.ts +1 -1
  17. package/dist/components/Loaders/index.vue.d.ts +1 -1
  18. package/dist/components/Modals/Modal.vue.d.ts +1 -1
  19. package/dist/components/Modals/RightSidebar.vue.d.ts +1 -1
  20. package/dist/components/Notification/AlertBox/AlertBox.vue.d.ts +1 -1
  21. package/dist/components/Notification/InlineToast/InlineToast.vue.d.ts +1 -1
  22. package/dist/components/Notification/Toast/index.vue.d.ts +1 -1
  23. package/dist/components/Pagination/Pagination.vue.d.ts +1 -1
  24. package/dist/components/Skeleton/index.vue.d.ts +1 -1
  25. package/dist/components/Tab/Tab.vue.d.ts +2 -2
  26. package/dist/components/Table/index.vue.d.ts +1 -1
  27. package/dist/components/utils/cn.d.ts +8 -0
  28. package/dist/{core/ui.d.ts → components/utils/theme.d.ts} +4 -0
  29. package/dist/index.cjs +7 -7
  30. package/dist/index.js +8963 -5956
  31. package/dist/lib.d.ts +2 -2
  32. package/dist/style.css +1 -1
  33. package/package.json +3 -4
  34. package/dist/core/theme.d.ts +0 -4
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../core/ui';
1
+ import { uiAttrs } from '../utils/theme';
2
2
  type Variant = "primary" | "outline" | "ghost";
3
3
  type Size = "sm" | "md" | "lg";
4
4
  declare const _default: typeof __VLS_export;
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../core/ui';
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<{
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../../core/ui';
1
+ import { uiAttrs } from '../../utils/theme';
2
2
  type Variant = "secondary" | "outline" | "ghost";
3
3
  type Size = "sm" | "md" | "lg" | "xl";
4
4
  declare const _default: typeof __VLS_export;
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../core/ui';
1
+ import { uiAttrs } from '../utils/theme';
2
2
  type Size = "sm" | "md" | "lg";
3
3
  type Shadow = "none" | "sm" | "md" | "lg";
4
4
  type Hover = "none" | "lift" | "glow";
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../core/ui';
1
+ import { uiAttrs } from '../utils/theme';
2
2
  import { PropType } from 'vue';
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../core/ui';
1
+ import { uiAttrs } from '../utils/theme';
2
2
  type Size = "sm" | "md" | "lg";
3
3
  type Align = "left" | "center" | "right";
4
4
  declare const _default: typeof __VLS_export;
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../../core/ui';
1
+ import { uiAttrs } from '../../utils/theme';
2
2
  declare global {
3
3
  interface Window {
4
4
  google: any;
@@ -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, ("update:modelValue" | "change")[], "update:modelValue" | "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
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 '../../../core/ui';
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" | "change" | "focus" | "blur")[], "update:modelValue" | "valid" | "update:modelCurrency" | "change" | "focus" | "blur", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
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 '../../../core/ui';
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" | "change" | "focus" | "blur")[], "update:modelValue" | "valid" | "update:modelCurrency" | "change" | "focus" | "blur", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
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 '../../../core/ui';
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<{
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../../core/ui';
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, ("update:modelValue" | "change" | "complete")[], "update:modelValue" | "change" | "complete", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
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 '../../../core/ui';
1
+ import { uiAttrs } from '../../utils/theme';
2
2
  type Size = "sm" | "md" | "lg";
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../../core/ui';
1
+ import { uiAttrs } from '../../utils/theme';
2
2
  type Option = string | Record<string, any>;
3
3
  type Size = "sm" | "md" | "lg";
4
4
  declare const _default: typeof __VLS_export;
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../../core/ui';
1
+ import { uiAttrs } from '../../utils/theme';
2
2
  type Size = "sm" | "md" | "lg";
3
3
  type Shape = "rounded" | "square" | "pill";
4
4
  declare const _default: typeof __VLS_export;
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../../core/ui';
1
+ import { uiAttrs } from '../../utils/theme';
2
2
  interface UploadedFile {
3
3
  id: string;
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../core/ui';
1
+ import { uiAttrs } from '../utils/theme';
2
2
  type Size = "sm" | "md" | "lg";
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../core/ui';
1
+ import { uiAttrs } from '../utils/theme';
2
2
  type Size = "sm" | "md" | "lg" | "full";
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../core/ui';
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<{
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../../core/ui';
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<{
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../../core/ui';
1
+ import { uiAttrs } from '../../utils/theme';
2
2
  type ToastType = "error" | "info" | "success" | "warning";
3
3
  type Size = "sm" | "md" | "lg";
4
4
  declare const _default: typeof __VLS_export;
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../../core/ui';
1
+ import { uiAttrs } from '../../utils/theme';
2
2
  type Size = "sm" | "md" | "lg";
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../core/ui';
1
+ import { uiAttrs } from '../utils/theme';
2
2
  type Mode = "pages" | "load-more" | "infinite";
3
3
  type Size = "sm" | "md" | "lg";
4
4
  declare const _default: typeof __VLS_export;
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../core/ui';
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<{
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../core/ui';
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, ("update:modelValue" | "change")[], "update:modelValue" | "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
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;
@@ -1,4 +1,4 @@
1
- import { uiAttrs } from '../../core/ui';
1
+ import { uiAttrs } from '../utils/theme';
2
2
  import { PropType } from 'vue';
3
3
  export interface TableColumn {
4
4
  key: string;
@@ -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 {};