@byyuurin/ui 0.0.1 → 0.0.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.
Files changed (136) hide show
  1. package/README.md +75 -5
  2. package/dist/index.cjs +38 -0
  3. package/dist/index.d.ts +3 -3
  4. package/dist/index.mjs +3 -3
  5. package/dist/nuxt.d.mts +13 -0
  6. package/dist/nuxt.d.ts +6 -3
  7. package/dist/nuxt.mjs +6 -3
  8. package/dist/resolver.d.mts +13 -0
  9. package/dist/resolver.d.ts +6 -3
  10. package/dist/resolver.mjs +5 -2
  11. package/dist/{components → runtime/components}/Accordion.vue +19 -3
  12. package/dist/{components → runtime/components}/Button.vue +93 -94
  13. package/dist/{components → runtime/components}/Checkbox.vue +104 -104
  14. package/dist/{components → runtime/components}/RadioGroup.vue +180 -180
  15. package/dist/{components → runtime/components}/Select.vue +262 -258
  16. package/dist/{components → runtime/components}/Switch.vue +99 -99
  17. package/dist/{components → runtime/components}/Tabs.vue +117 -117
  18. package/dist/{components → runtime/components}/Toaster.vue +35 -1
  19. package/dist/runtime/components/index.cjs +132 -0
  20. package/dist/runtime/composables/index.cjs +33 -0
  21. package/dist/runtime/composables/useComponentIcons.cjs +30 -0
  22. package/dist/runtime/composables/useModal.cjs +55 -0
  23. package/dist/runtime/composables/useTheme.cjs +30 -0
  24. package/dist/{composables → runtime/composables}/useTheme.d.ts +0 -1
  25. package/dist/{composables → runtime/composables}/useTheme.mjs +3 -3
  26. package/dist/runtime/composables/useToast.cjs +51 -0
  27. package/dist/{composables → runtime/composables}/useToast.d.ts +1 -1
  28. package/dist/runtime/theme/accordion.cjs +27 -0
  29. package/dist/runtime/theme/app.cjs +15 -0
  30. package/dist/runtime/theme/button.cjs +127 -0
  31. package/dist/runtime/theme/card.cjs +17 -0
  32. package/dist/runtime/theme/checkbox.cjs +56 -0
  33. package/dist/runtime/theme/drawer.cjs +73 -0
  34. package/dist/runtime/theme/index.cjs +125 -0
  35. package/dist/runtime/theme/input.cjs +115 -0
  36. package/dist/runtime/theme/link.cjs +23 -0
  37. package/dist/runtime/theme/modal.cjs +55 -0
  38. package/dist/runtime/theme/popover.cjs +13 -0
  39. package/dist/runtime/theme/radioGroup.cjs +73 -0
  40. package/dist/runtime/theme/select.cjs +128 -0
  41. package/dist/runtime/theme/switch.cjs +73 -0
  42. package/dist/runtime/theme/tabs.cjs +105 -0
  43. package/dist/runtime/theme/toast.cjs +33 -0
  44. package/dist/runtime/theme/toaster.cjs +72 -0
  45. package/dist/runtime/theme/tooltip.cjs +14 -0
  46. package/dist/runtime/types/components.cjs +1 -0
  47. package/dist/runtime/types/index.cjs +27 -0
  48. package/dist/{types → runtime/types}/index.d.ts +1 -1
  49. package/dist/runtime/types/utils.cjs +1 -0
  50. package/dist/runtime/utils/extend-theme.cjs +24 -0
  51. package/dist/runtime/utils/index.cjs +119 -0
  52. package/dist/{utils → runtime/utils}/index.d.ts +3 -1
  53. package/dist/{utils → runtime/utils}/index.mjs +3 -1
  54. package/dist/runtime/utils/link.cjs +10 -0
  55. package/dist/runtime/utils/styler.cjs +18 -0
  56. package/dist/{internal → runtime/utils}/styler.d.ts +0 -1
  57. package/dist/runtime/utils/styler.mjs +10 -0
  58. package/dist/{internal/constants.mjs → shared/ui.CPXA9QoM.mjs} +4 -2
  59. package/dist/unocss-preset.d.mts +49 -0
  60. package/dist/unocss-preset.d.ts +20 -8
  61. package/dist/unocss-preset.mjs +428 -78
  62. package/package.json +16 -10
  63. package/dist/internal/constants.d.ts +0 -3
  64. package/dist/internal/extend-theme.test.d.ts +0 -1
  65. package/dist/internal/extend-theme.test.mjs +0 -45
  66. package/dist/internal/index.d.ts +0 -4
  67. package/dist/internal/index.mjs +0 -4
  68. package/dist/internal/styler.mjs +0 -235
  69. package/dist/internal/styler.test.d.ts +0 -1
  70. package/dist/internal/styler.test.mjs +0 -10
  71. package/dist/utils/unocss.d.ts +0 -3
  72. package/dist/utils/unocss.mjs +0 -50
  73. /package/dist/{components → runtime/components}/App.vue +0 -0
  74. /package/dist/{components → runtime/components}/Card.vue +0 -0
  75. /package/dist/{components → runtime/components}/Drawer.vue +0 -0
  76. /package/dist/{components → runtime/components}/Input.vue +0 -0
  77. /package/dist/{components → runtime/components}/Link.vue +0 -0
  78. /package/dist/{components → runtime/components}/Modal.vue +0 -0
  79. /package/dist/{components → runtime/components}/ModalProvider.vue +0 -0
  80. /package/dist/{components → runtime/components}/Popover.vue +0 -0
  81. /package/dist/{components → runtime/components}/Toast.vue +0 -0
  82. /package/dist/{components → runtime/components}/Tooltip.vue +0 -0
  83. /package/dist/{components → runtime/components}/index.d.ts +0 -0
  84. /package/dist/{components → runtime/components}/index.mjs +0 -0
  85. /package/dist/{composables → runtime/composables}/index.d.ts +0 -0
  86. /package/dist/{composables → runtime/composables}/index.mjs +0 -0
  87. /package/dist/{composables → runtime/composables}/useComponentIcons.d.ts +0 -0
  88. /package/dist/{composables → runtime/composables}/useComponentIcons.mjs +0 -0
  89. /package/dist/{composables → runtime/composables}/useModal.d.ts +0 -0
  90. /package/dist/{composables → runtime/composables}/useModal.mjs +0 -0
  91. /package/dist/{composables → runtime/composables}/useToast.mjs +0 -0
  92. /package/dist/{theme → runtime/theme}/accordion.d.ts +0 -0
  93. /package/dist/{theme → runtime/theme}/accordion.mjs +0 -0
  94. /package/dist/{theme → runtime/theme}/app.d.ts +0 -0
  95. /package/dist/{theme → runtime/theme}/app.mjs +0 -0
  96. /package/dist/{theme → runtime/theme}/button.d.ts +0 -0
  97. /package/dist/{theme → runtime/theme}/button.mjs +0 -0
  98. /package/dist/{theme → runtime/theme}/card.d.ts +0 -0
  99. /package/dist/{theme → runtime/theme}/card.mjs +0 -0
  100. /package/dist/{theme → runtime/theme}/checkbox.d.ts +0 -0
  101. /package/dist/{theme → runtime/theme}/checkbox.mjs +0 -0
  102. /package/dist/{theme → runtime/theme}/drawer.d.ts +0 -0
  103. /package/dist/{theme → runtime/theme}/drawer.mjs +0 -0
  104. /package/dist/{theme → runtime/theme}/index.d.ts +0 -0
  105. /package/dist/{theme → runtime/theme}/index.mjs +0 -0
  106. /package/dist/{theme → runtime/theme}/input.d.ts +0 -0
  107. /package/dist/{theme → runtime/theme}/input.mjs +0 -0
  108. /package/dist/{theme → runtime/theme}/link.d.ts +0 -0
  109. /package/dist/{theme → runtime/theme}/link.mjs +0 -0
  110. /package/dist/{theme → runtime/theme}/modal.d.ts +0 -0
  111. /package/dist/{theme → runtime/theme}/modal.mjs +0 -0
  112. /package/dist/{theme → runtime/theme}/popover.d.ts +0 -0
  113. /package/dist/{theme → runtime/theme}/popover.mjs +0 -0
  114. /package/dist/{theme → runtime/theme}/radioGroup.d.ts +0 -0
  115. /package/dist/{theme → runtime/theme}/radioGroup.mjs +0 -0
  116. /package/dist/{theme → runtime/theme}/select.d.ts +0 -0
  117. /package/dist/{theme → runtime/theme}/select.mjs +0 -0
  118. /package/dist/{theme → runtime/theme}/switch.d.ts +0 -0
  119. /package/dist/{theme → runtime/theme}/switch.mjs +0 -0
  120. /package/dist/{theme → runtime/theme}/tabs.d.ts +0 -0
  121. /package/dist/{theme → runtime/theme}/tabs.mjs +0 -0
  122. /package/dist/{theme → runtime/theme}/toast.d.ts +0 -0
  123. /package/dist/{theme → runtime/theme}/toast.mjs +0 -0
  124. /package/dist/{theme → runtime/theme}/toaster.d.ts +0 -0
  125. /package/dist/{theme → runtime/theme}/toaster.mjs +0 -0
  126. /package/dist/{theme → runtime/theme}/tooltip.d.ts +0 -0
  127. /package/dist/{theme → runtime/theme}/tooltip.mjs +0 -0
  128. /package/dist/{types → runtime/types}/components.d.ts +0 -0
  129. /package/dist/{types → runtime/types}/components.mjs +0 -0
  130. /package/dist/{types → runtime/types}/index.mjs +0 -0
  131. /package/dist/{types → runtime/types}/utils.d.ts +0 -0
  132. /package/dist/{types → runtime/types}/utils.mjs +0 -0
  133. /package/dist/{internal → runtime/utils}/extend-theme.d.ts +0 -0
  134. /package/dist/{internal → runtime/utils}/extend-theme.mjs +0 -0
  135. /package/dist/{internal → runtime/utils}/link.d.ts +0 -0
  136. /package/dist/{internal → runtime/utils}/link.mjs +0 -0
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _uiKit = require("@byyuurin/ui-kit");
8
+ module.exports = (0, _uiKit.ct)({
9
+ slots: {
10
+ content: "flex items-center gap-1 bg-ui-c1 color-ui-base shadow-sm rounded-ui-base ring ring-ui-base/10 h-6 px-2 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
11
+ arrow: "fill-ui-c1 stroke-ui-cb/10",
12
+ text: "truncate"
13
+ }
14
+ });
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _components = require("./components.cjs");
7
+ Object.keys(_components).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _components[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _components[key];
14
+ }
15
+ });
16
+ });
17
+ var _utils = require("./utils.cjs");
18
+ Object.keys(_utils).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _utils[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _utils[key];
25
+ }
26
+ });
27
+ });
@@ -1,6 +1,6 @@
1
1
  import type * as _components from '../components';
2
2
  import type * as theme from '../theme';
3
- import type { PartialTheme } from '../types';
3
+ import type { PartialTheme } from '.';
4
4
  export * from './components';
5
5
  export * from './utils';
6
6
  export type ThemeExtension = PartialTheme<typeof theme>;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.extendTheme = void 0;
7
+ var _defu = require("defu");
8
+ const extendTheme = exports.extendTheme = (0, _defu.createDefu)((obj, key, value) => {
9
+ if (key === "global") {
10
+ obj[key] = {
11
+ ...obj[key],
12
+ ...value
13
+ };
14
+ return true;
15
+ }
16
+ if (typeof obj[key] === "string" && typeof value === "string") {
17
+ if (value.trim()) obj[key] += ` ${value}`;
18
+ return true;
19
+ }
20
+ if (Array.isArray(obj[key]) && typeof value === "string") {
21
+ obj[key].push(value);
22
+ return true;
23
+ }
24
+ });
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ createInjection: true,
8
+ pick: true,
9
+ omit: true,
10
+ get: true,
11
+ set: true,
12
+ looseToNumber: true,
13
+ compare: true
14
+ };
15
+ exports.compare = compare;
16
+ exports.createInjection = createInjection;
17
+ exports.get = get;
18
+ exports.looseToNumber = looseToNumber;
19
+ exports.omit = omit;
20
+ exports.pick = pick;
21
+ exports.set = set;
22
+ var _ohash = require("ohash");
23
+ var _vue = require("vue");
24
+ var _extendTheme = require("./extend-theme.cjs");
25
+ Object.keys(_extendTheme).forEach(function (key) {
26
+ if (key === "default" || key === "__esModule") return;
27
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
28
+ if (key in exports && exports[key] === _extendTheme[key]) return;
29
+ Object.defineProperty(exports, key, {
30
+ enumerable: true,
31
+ get: function () {
32
+ return _extendTheme[key];
33
+ }
34
+ });
35
+ });
36
+ var _link = require("./link.cjs");
37
+ Object.keys(_link).forEach(function (key) {
38
+ if (key === "default" || key === "__esModule") return;
39
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
40
+ if (key in exports && exports[key] === _link[key]) return;
41
+ Object.defineProperty(exports, key, {
42
+ enumerable: true,
43
+ get: function () {
44
+ return _link[key];
45
+ }
46
+ });
47
+ });
48
+ var _styler = require("./styler.cjs");
49
+ Object.keys(_styler).forEach(function (key) {
50
+ if (key === "default" || key === "__esModule") return;
51
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
52
+ if (key in exports && exports[key] === _styler[key]) return;
53
+ Object.defineProperty(exports, key, {
54
+ enumerable: true,
55
+ get: function () {
56
+ return _styler[key];
57
+ }
58
+ });
59
+ });
60
+ function createInjection(name, defaultValue) {
61
+ const injectionKey = Symbol(name);
62
+ const provide = value => (0, _vue.provide)(injectionKey, value);
63
+ const inject = () => (0, _vue.inject)(injectionKey, defaultValue);
64
+ return {
65
+ injectionKey,
66
+ provide,
67
+ inject
68
+ };
69
+ }
70
+ function pick(data, keys) {
71
+ const result = {};
72
+ for (const key of keys) result[key] = data[key];
73
+ return result;
74
+ }
75
+ function omit(data, keys) {
76
+ const result = {
77
+ ...data
78
+ };
79
+ for (const key of keys) delete result[key];
80
+ return result;
81
+ }
82
+ function get(object, path, defaultValue) {
83
+ if (typeof path === "string") {
84
+ path = path.split(".").map(key => {
85
+ const numKey = Number(key);
86
+ return Number.isNaN(numKey) ? key : numKey;
87
+ });
88
+ }
89
+ let result = object;
90
+ for (const key of path) {
91
+ if (result === void 0 || result === null) return defaultValue;
92
+ result = result[key];
93
+ }
94
+ return result === void 0 ? defaultValue : result;
95
+ }
96
+ function set(object, path, value) {
97
+ if (typeof path === "string") {
98
+ path = path.split(".").map(key => {
99
+ const numKey = Number(key);
100
+ return Number.isNaN(numKey) ? key : numKey;
101
+ });
102
+ }
103
+ path.reduce((acc, key, i) => {
104
+ if (acc[key] === void 0) acc[key] = {};
105
+ if (i === path.length - 1) acc[key] = value;
106
+ return acc[key];
107
+ }, object);
108
+ }
109
+ function looseToNumber(value) {
110
+ const n = Number.parseFloat(value);
111
+ return Number.isNaN(n) ? value : n;
112
+ }
113
+ function compare(value, currentValue, comparator) {
114
+ if (value === void 0 || currentValue === void 0) return false;
115
+ if (typeof value === "string") return value === currentValue;
116
+ if (typeof comparator === "function") return comparator(value, currentValue);
117
+ if (typeof comparator === "string") return get(value, comparator) === get(currentValue, comparator);
118
+ return (0, _ohash.isEqual)(value, currentValue);
119
+ }
@@ -1,5 +1,7 @@
1
1
  import type { InjectionKey } from 'vue';
2
- export * from './unocss';
2
+ export * from './extend-theme';
3
+ export * from './link';
4
+ export * from './styler';
3
5
  export declare function createInjection<T>(name: string): {
4
6
  injectionKey: InjectionKey<T>;
5
7
  provide: (value: T) => void;
@@ -1,6 +1,8 @@
1
1
  import { isEqual } from "ohash";
2
2
  import { inject as vueInject, provide as vueProvide } from "vue";
3
- export * from "./unocss.mjs";
3
+ export * from "./extend-theme.mjs";
4
+ export * from "./link.mjs";
5
+ export * from "./styler.mjs";
4
6
  export function createInjection(name, defaultValue) {
5
7
  const injectionKey = Symbol(name);
6
8
  const provide = (value) => vueProvide(injectionKey, value);
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.pickLinkProps = pickLinkProps;
7
+ var _core = require("@vueuse/core");
8
+ function pickLinkProps(props) {
9
+ return (0, _core.reactivePick)(props, "ui", "active", "ariaLabel", "as", "disabled", "href", "rel", "noRel", "type", "target", "title", "onClick");
10
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.prepareStyler = prepareStyler;
7
+ var _uiKit = require("@byyuurin/ui-kit");
8
+ function prepareStyler(rules = []) {
9
+ const createVariants = (0, _uiKit.cv)(rules);
10
+ function createStyler(theme) {
11
+ const ui = createVariants(theme);
12
+ const styler = props => ui(props);
13
+ return styler;
14
+ }
15
+ return {
16
+ createStyler
17
+ };
18
+ }
@@ -1,5 +1,4 @@
1
1
  import type { ClassValue, CRRule, CVCompoundVariants, CVMeta, CVSlots, CVVariants } from '@byyuurin/ui-kit';
2
- export declare function createMergeRules(): CRRule[];
3
2
  export declare function prepareStyler(rules?: CRRule[]): {
4
3
  createStyler: <V extends CVVariants<S, B>, CV extends CVCompoundVariants<V, S, B>, B extends ClassValue = undefined, S extends CVSlots = undefined>(theme: CVMeta<V, CV, never, B, S>) => [keyof V] extends string[] ? (props: Required<import("@byyuurin/ui-kit/index").VariantProps<import("@byyuurin/ui-kit/index").CVReturnType<V, S, B>>> & import("../types").StylerBaseProps) => S extends undefined ? string : { [K in keyof S | (B extends undefined ? never : "base")]: import("@byyuurin/ui-kit/index").CVHandler<V, S, string>; } : (props?: import("../types").StylerBaseProps) => S extends undefined ? string : { [K in keyof S | (B extends undefined ? never : "base")]: import("@byyuurin/ui-kit/index").CVHandler<V, S, string>; };
5
4
  };
@@ -0,0 +1,10 @@
1
+ import { cv } from "@byyuurin/ui-kit";
2
+ export function prepareStyler(rules = []) {
3
+ const createVariants = cv(rules);
4
+ function createStyler(theme) {
5
+ const ui = createVariants(theme);
6
+ const styler = (props) => ui(props);
7
+ return styler;
8
+ }
9
+ return { createStyler };
10
+ }
@@ -1,5 +1,5 @@
1
- export const packageName = "@byyuurin/ui";
2
- export const componentNames = [
1
+ const packageName = "@byyuurin/ui";
2
+ const componentNames = [
3
3
  "Accordion",
4
4
  "App",
5
5
  "Button",
@@ -19,3 +19,5 @@ export const componentNames = [
19
19
  "Toaster",
20
20
  "Tooltip"
21
21
  ];
22
+
23
+ export { componentNames as c, packageName as p };
@@ -0,0 +1,49 @@
1
+ import { CRRule } from '@byyuurin/ui-kit';
2
+ import * as _unocss_core from '@unocss/core';
3
+ import * as _unocss_preset_mini from '@unocss/preset-mini';
4
+ import { Theme } from '@unocss/preset-mini';
5
+
6
+ declare const cssVarsPrefix = "ui";
7
+ declare const cssVarsBase: string[];
8
+ declare const cssVarsDynamic: string[];
9
+ declare const cssVarsAll: string[];
10
+
11
+ declare function createMergeRules(): CRRule[];
12
+
13
+ interface PresetOptions {
14
+ /** @default "0rem" */
15
+ radius?: string;
16
+ /** @default "[radius]" */
17
+ radiusButton?: string;
18
+ /** @default "[radius]" */
19
+ radiusBox?: string;
20
+ /** @default "[radius]" */
21
+ radiusTabs?: string;
22
+ /**
23
+ * Base content color
24
+ * @default "#1f2937"
25
+ */
26
+ cb?: string;
27
+ /**
28
+ * Base color 1
29
+ * @default "#ffffff"
30
+ */
31
+ c1?: string;
32
+ /**
33
+ * Base color 2
34
+ * @default "#f2f2f2"
35
+ */
36
+ c2?: string;
37
+ /**
38
+ * Base color 3
39
+ * @default "#e5e6e6"
40
+ */
41
+ c3?: string;
42
+ }
43
+ declare const preset: _unocss_core.PresetFactory<_unocss_preset_mini.Theme, PresetOptions>;
44
+
45
+ declare const theme: Theme;
46
+ declare function cssVar(name: string, ...defaultValue: string[]): string;
47
+ declare function cssColor(...rgb: (string | number)[]): string;
48
+
49
+ export { type PresetOptions, createMergeRules, cssColor, cssVar, cssVarsAll, cssVarsBase, cssVarsDynamic, cssVarsPrefix, preset as default, preset, theme };
@@ -1,5 +1,16 @@
1
- import type { Theme } from '@unocss/preset-mini';
2
- export interface PresetOptions {
1
+ import { CRRule } from '@byyuurin/ui-kit';
2
+ import * as _unocss_core from '@unocss/core';
3
+ import * as _unocss_preset_mini from '@unocss/preset-mini';
4
+ import { Theme } from '@unocss/preset-mini';
5
+
6
+ declare const cssVarsPrefix = "ui";
7
+ declare const cssVarsBase: string[];
8
+ declare const cssVarsDynamic: string[];
9
+ declare const cssVarsAll: string[];
10
+
11
+ declare function createMergeRules(): CRRule[];
12
+
13
+ interface PresetOptions {
3
14
  /** @default "0rem" */
4
15
  radius?: string;
5
16
  /** @default "[radius]" */
@@ -29,9 +40,10 @@ export interface PresetOptions {
29
40
  */
30
41
  c3?: string;
31
42
  }
32
- export declare const cssVarsPrefix = "ui";
33
- export declare const cssVarsBase: string[];
34
- export declare const cssVarsDynamic: string[];
35
- export declare const cssVarsAll: string[];
36
- declare const _default: import("unocss/index").PresetFactory<Theme, PresetOptions>;
37
- export default _default;
43
+ declare const preset: _unocss_core.PresetFactory<_unocss_preset_mini.Theme, PresetOptions>;
44
+
45
+ declare const theme: Theme;
46
+ declare function cssVar(name: string, ...defaultValue: string[]): string;
47
+ declare function cssColor(...rgb: (string | number)[]): string;
48
+
49
+ export { type PresetOptions, createMergeRules, cssColor, cssVar, cssVarsAll, cssVarsBase, cssVarsDynamic, cssVarsPrefix, preset as default, preset, theme };