@byyuurin/ui 0.0.3 → 0.0.5

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 (142) hide show
  1. package/README.md +15 -24
  2. package/dist/index.d.ts +25 -2
  3. package/dist/index.mjs +25 -2
  4. package/dist/nuxt.d.mts +1 -1
  5. package/dist/nuxt.d.ts +1 -1
  6. package/dist/nuxt.mjs +14 -10
  7. package/dist/nuxt.mjs.map +1 -0
  8. package/dist/runtime/components/Accordion.vue +1 -1
  9. package/dist/runtime/components/Alert.vue +120 -0
  10. package/dist/runtime/components/App.vue +5 -1
  11. package/dist/runtime/components/Badge.vue +71 -0
  12. package/dist/runtime/components/Button.vue +3 -3
  13. package/dist/runtime/components/Card.vue +4 -4
  14. package/dist/runtime/components/Checkbox.vue +3 -6
  15. package/dist/runtime/components/Chip.vue +59 -0
  16. package/dist/runtime/components/Drawer.vue +2 -2
  17. package/dist/runtime/components/Input.vue +7 -2
  18. package/dist/runtime/components/Link.vue +1 -1
  19. package/dist/runtime/components/Modal.vue +2 -2
  20. package/dist/runtime/components/ModalProvider.vue +1 -1
  21. package/dist/runtime/components/PinInput.vue +86 -0
  22. package/dist/runtime/components/Popover.vue +1 -1
  23. package/dist/runtime/components/RadioGroup.vue +2 -8
  24. package/dist/runtime/components/ScrollArea.vue +72 -0
  25. package/dist/runtime/components/Select.vue +2 -1
  26. package/dist/runtime/components/Slider.vue +97 -0
  27. package/dist/runtime/components/Switch.vue +1 -2
  28. package/dist/runtime/components/Tabs.vue +6 -6
  29. package/dist/runtime/components/Textarea.vue +172 -0
  30. package/dist/runtime/components/Toast.vue +2 -2
  31. package/dist/runtime/components/Toaster.vue +2 -1
  32. package/dist/runtime/components/Tooltip.vue +1 -1
  33. package/dist/runtime/composables/defineInjection.d.ts +11 -0
  34. package/dist/runtime/composables/defineInjection.mjs +9 -0
  35. package/dist/runtime/composables/useModal.d.ts +1 -1
  36. package/dist/runtime/composables/useModal.mjs +3 -2
  37. package/dist/runtime/composables/useTheme.d.ts +3 -1
  38. package/dist/runtime/composables/useTheme.mjs +14 -6
  39. package/dist/runtime/theme/accordion.mjs +24 -21
  40. package/dist/runtime/theme/alert.d.ts +85 -0
  41. package/dist/runtime/theme/alert.mjs +47 -0
  42. package/dist/runtime/theme/app.mjs +1 -0
  43. package/dist/runtime/theme/badge.d.ts +79 -0
  44. package/dist/runtime/theme/badge.mjs +89 -0
  45. package/dist/runtime/theme/button.d.ts +4 -9
  46. package/dist/runtime/theme/button.mjs +130 -127
  47. package/dist/runtime/theme/card.d.ts +2 -2
  48. package/dist/runtime/theme/card.mjs +12 -9
  49. package/dist/runtime/theme/checkbox.d.ts +0 -12
  50. package/dist/runtime/theme/checkbox.mjs +45 -47
  51. package/dist/runtime/theme/chip.d.ts +56 -0
  52. package/dist/runtime/theme/chip.mjs +63 -0
  53. package/dist/runtime/theme/drawer.mjs +69 -66
  54. package/dist/runtime/theme/index.d.ts +7 -0
  55. package/dist/runtime/theme/index.mjs +7 -0
  56. package/dist/runtime/theme/input.d.ts +13 -5
  57. package/dist/runtime/theme/input.mjs +135 -122
  58. package/dist/runtime/theme/link.d.ts +1 -1
  59. package/dist/runtime/theme/link.mjs +23 -20
  60. package/dist/runtime/theme/modal.mjs +51 -48
  61. package/dist/runtime/theme/pinInput.d.ts +97 -0
  62. package/dist/runtime/theme/pinInput.mjs +108 -0
  63. package/dist/runtime/theme/popover.mjs +11 -8
  64. package/dist/runtime/theme/radioGroup.d.ts +0 -24
  65. package/dist/runtime/theme/radioGroup.mjs +50 -59
  66. package/dist/runtime/theme/scrollArea.d.ts +51 -0
  67. package/dist/runtime/theme/scrollArea.mjs +33 -0
  68. package/dist/runtime/theme/select.d.ts +5 -2
  69. package/dist/runtime/theme/select.mjs +156 -143
  70. package/dist/runtime/theme/slider.d.ts +73 -0
  71. package/dist/runtime/theme/slider.mjs +49 -0
  72. package/dist/runtime/theme/switch.d.ts +0 -12
  73. package/dist/runtime/theme/switch.mjs +66 -69
  74. package/dist/runtime/theme/tabs.d.ts +44 -13
  75. package/dist/runtime/theme/tabs.mjs +132 -106
  76. package/dist/runtime/theme/textarea.d.ts +93 -0
  77. package/dist/runtime/theme/textarea.mjs +113 -0
  78. package/dist/runtime/theme/toast.mjs +26 -23
  79. package/dist/runtime/theme/toaster.d.ts +2 -2
  80. package/dist/runtime/theme/toaster.mjs +84 -81
  81. package/dist/runtime/theme/tooltip.mjs +9 -6
  82. package/dist/runtime/types/components.d.ts +7 -0
  83. package/dist/runtime/types/index.d.ts +1 -3
  84. package/dist/runtime/utils/extend-theme.mjs +1 -1
  85. package/dist/runtime/utils/index.d.ts +0 -11
  86. package/dist/runtime/utils/index.mjs +0 -11
  87. package/dist/runtime/utils/link.d.ts +1 -1
  88. package/dist/shared/ui.CzDyI29e.mjs +8 -0
  89. package/dist/shared/ui.CzDyI29e.mjs.map +1 -0
  90. package/dist/unocss-preset.d.mts +15 -7
  91. package/dist/unocss-preset.d.ts +15 -7
  92. package/dist/unocss-preset.mjs +97 -384
  93. package/dist/unocss-preset.mjs.map +1 -0
  94. package/dist/unplugin.d.mts +25 -0
  95. package/dist/unplugin.d.ts +25 -0
  96. package/dist/unplugin.mjs +64 -0
  97. package/dist/unplugin.mjs.map +1 -0
  98. package/dist/vite.d.mts +9 -0
  99. package/dist/vite.d.ts +9 -0
  100. package/dist/vite.mjs +14 -0
  101. package/dist/vite.mjs.map +1 -0
  102. package/package.json +22 -14
  103. package/dist/index.cjs +0 -38
  104. package/dist/resolver.d.mts +0 -13
  105. package/dist/resolver.d.ts +0 -13
  106. package/dist/resolver.mjs +0 -21
  107. package/dist/runtime/components/index.cjs +0 -132
  108. package/dist/runtime/components/index.d.ts +0 -18
  109. package/dist/runtime/components/index.mjs +0 -18
  110. package/dist/runtime/composables/index.cjs +0 -33
  111. package/dist/runtime/composables/index.d.ts +0 -4
  112. package/dist/runtime/composables/index.mjs +0 -4
  113. package/dist/runtime/composables/useComponentIcons.cjs +0 -30
  114. package/dist/runtime/composables/useModal.cjs +0 -55
  115. package/dist/runtime/composables/useTheme.cjs +0 -30
  116. package/dist/runtime/composables/useToast.cjs +0 -51
  117. package/dist/runtime/theme/accordion.cjs +0 -27
  118. package/dist/runtime/theme/app.cjs +0 -15
  119. package/dist/runtime/theme/button.cjs +0 -127
  120. package/dist/runtime/theme/card.cjs +0 -17
  121. package/dist/runtime/theme/checkbox.cjs +0 -56
  122. package/dist/runtime/theme/drawer.cjs +0 -73
  123. package/dist/runtime/theme/index.cjs +0 -125
  124. package/dist/runtime/theme/input.cjs +0 -115
  125. package/dist/runtime/theme/link.cjs +0 -23
  126. package/dist/runtime/theme/modal.cjs +0 -55
  127. package/dist/runtime/theme/popover.cjs +0 -13
  128. package/dist/runtime/theme/radioGroup.cjs +0 -73
  129. package/dist/runtime/theme/select.cjs +0 -128
  130. package/dist/runtime/theme/switch.cjs +0 -73
  131. package/dist/runtime/theme/tabs.cjs +0 -105
  132. package/dist/runtime/theme/toast.cjs +0 -33
  133. package/dist/runtime/theme/toaster.cjs +0 -72
  134. package/dist/runtime/theme/tooltip.cjs +0 -14
  135. package/dist/runtime/types/components.cjs +0 -1
  136. package/dist/runtime/types/index.cjs +0 -27
  137. package/dist/runtime/types/utils.cjs +0 -1
  138. package/dist/runtime/utils/extend-theme.cjs +0 -24
  139. package/dist/runtime/utils/index.cjs +0 -119
  140. package/dist/runtime/utils/link.cjs +0 -10
  141. package/dist/runtime/utils/styler.cjs +0 -18
  142. package/dist/shared/ui.CPXA9QoM.mjs +0 -23
@@ -1,89 +1,92 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- export default ct({
3
- slots: {
4
- viewport: [
5
- "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] focus:outline-none",
6
- "data-[expanded=true]:h-[var(--height)]"
7
- ],
8
- base: [
9
- "pointer-events-auto absolute inset-x-0 z-[var(--index)] [transform:var(--transform)] transition-all duration-200 ease-out",
10
- "[&[data-expanded=false][data-front=false]]:h-[var(--front-height)]",
11
- "[&[data-expanded=false][data-front=false]>*]:invisible",
12
- "data-[state=closed]:animate-[toast-closed_200ms_ease-in-out]",
13
- "[&[data-state=closed][data-expanded=false][data-front=false]]:animate-[toast-collapsed-closed_200ms_ease-in-out]",
14
- "data-[swipe=move]:transition-none"
15
- ]
16
- },
17
- variants: {
18
- position: {
19
- "top-left": {
20
- viewport: "left-4"
21
- },
22
- "top-center": {
23
- viewport: "left-1/2 -translate-x-1/2"
24
- },
25
- "top-right": {
26
- viewport: "right-4"
27
- },
28
- "bottom-left": {
29
- viewport: "left-4"
30
- },
31
- "bottom-center": {
32
- viewport: "left-1/2 -translate-x-1/2"
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ viewport: [
7
+ "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] focus:outline-none",
8
+ "data-[expanded=true]:h-[var(--height)]"
9
+ ],
10
+ base: [
11
+ "pointer-events-auto absolute inset-x-0 z-[var(--index)] [transform:var(--transform)] transition-all duration-200 ease-out",
12
+ "[&[data-expanded=false][data-front=false]]:h-[var(--front-height)]",
13
+ "[&[data-expanded=false][data-front=false]>*]:invisible",
14
+ "data-[state=closed]:animate-[toast-closed_200ms_ease-in-out]",
15
+ "[&[data-state=closed][data-expanded=false][data-front=false]]:animate-[toast-collapsed-closed_200ms_ease-in-out]",
16
+ "data-[swipe=move]:transition-none"
17
+ ]
18
+ },
19
+ variants: {
20
+ position: {
21
+ "top-left": {
22
+ viewport: "left-4"
23
+ },
24
+ "top-center": {
25
+ viewport: "left-1/2 -translate-x-1/2"
26
+ },
27
+ "top-right": {
28
+ viewport: "right-4"
29
+ },
30
+ "bottom-left": {
31
+ viewport: "left-4"
32
+ },
33
+ "bottom-center": {
34
+ viewport: "left-1/2 -translate-x-1/2"
35
+ },
36
+ "bottom-right": {
37
+ viewport: "right-4"
38
+ }
33
39
  },
34
- "bottom-right": {
35
- viewport: "right-4"
40
+ swipeDirection: {
41
+ up: {
42
+ base: "data-[swipe=end]:animate-[toast-slide-up_200ms_ease-out]"
43
+ },
44
+ right: {
45
+ base: "data-[swipe=end]:animate-[toast-slide-right_200ms_ease-out]"
46
+ },
47
+ down: {
48
+ base: "data-[swipe=end]:animate-[toast-slide-down_200ms_ease-out]"
49
+ },
50
+ left: {
51
+ base: "data-[swipe=end]:animate-[toast-slide-left_200ms_ease-out]"
52
+ }
36
53
  }
37
54
  },
38
- swipeDirection: {
39
- up: {
40
- base: "data-[swipe=end]:animate-[toast-slide-up_200ms_ease-out]"
55
+ compoundVariants: [
56
+ {
57
+ position: ["top-left", "top-center", "top-right"],
58
+ class: {
59
+ viewport: "top-4",
60
+ base: "top-0 data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out]"
61
+ }
41
62
  },
42
- right: {
43
- base: "data-[swipe=end]:animate-[toast-slide-right_200ms_ease-out]"
63
+ {
64
+ position: ["bottom-left", "bottom-center", "bottom-right"],
65
+ class: {
66
+ viewport: "bottom-4",
67
+ base: "bottom-0 data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out]"
68
+ }
44
69
  },
45
- down: {
46
- base: "data-[swipe=end]:animate-[toast-slide-down_200ms_ease-out]"
70
+ {
71
+ swipeDirection: ["left", "right"],
72
+ class: {
73
+ base: [
74
+ "data-[swipe=move]:translate-x-[var(--reka-toast-swipe-move-x)]",
75
+ "data-[swipe=end]:translate-x-[var(--reka-toast-swipe-end-x)]",
76
+ "data-[swipe=cancel]:translate-x-0"
77
+ ]
78
+ }
47
79
  },
48
- left: {
49
- base: "data-[swipe=end]:animate-[toast-slide-left_200ms_ease-out]"
50
- }
51
- }
52
- },
53
- compoundVariants: [
54
- {
55
- position: ["top-left", "top-center", "top-right"],
56
- class: {
57
- viewport: "top-4",
58
- base: "top-0 data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out]"
80
+ {
81
+ swipeDirection: ["up", "down"],
82
+ class: {
83
+ base: [
84
+ "data-[swipe=move]:translate-y-[var(--reka-toast-swipe-move-y)]",
85
+ "data-[swipe=end]:translate-y-[var(--reka-toast-swipe-end-y)]",
86
+ "data-[swipe=cancel]:translate-y-0"
87
+ ]
88
+ }
59
89
  }
60
- },
61
- {
62
- position: ["bottom-left", "bottom-center", "bottom-right"],
63
- class: {
64
- viewport: "bottom-4",
65
- base: "bottom-0 data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out]"
66
- }
67
- },
68
- {
69
- swipeDirection: ["left", "right"],
70
- class: {
71
- base: [
72
- "data-[swipe=move]:translate-x-[var(--reka-toast-swipe-move-x)]",
73
- "data-[swipe=end]:translate-x-[var(--reka-toast-swipe-end-x)]",
74
- "data-[swipe=cancel]:translate-x-0"
75
- ]
76
- }
77
- },
78
- {
79
- swipeDirection: ["up", "down"],
80
- class: {
81
- base: [
82
- "data-[swipe=move]:translate-y-[var(--reka-toast-swipe-move-y)]",
83
- "data-[swipe=end]:translate-y-[var(--reka-toast-swipe-end-y)]",
84
- "data-[swipe=cancel]:translate-y-0"
85
- ]
86
- }
87
- }
88
- ]
89
- });
90
+ ]
91
+ }
92
+ );
@@ -1,8 +1,11 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- export default ct({
3
- slots: {
4
- 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]",
5
- arrow: "fill-ui-c1 stroke-ui-cb/10",
6
- text: "truncate"
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ 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]",
7
+ arrow: "fill-ui-c1 stroke-ui-cb/10",
8
+ text: "truncate"
9
+ }
7
10
  }
8
- });
11
+ );
@@ -1,18 +1,25 @@
1
1
  export type * from '../components/Accordion.vue';
2
+ export type * from '../components/Alert.vue';
2
3
  export type * from '../components/App.vue';
3
4
  export type * from '../components/App.vue';
5
+ export type * from '../components/Badge.vue';
4
6
  export type * from '../components/Button.vue';
5
7
  export type * from '../components/Card.vue';
6
8
  export type * from '../components/Checkbox.vue';
9
+ export type * from '../components/Chip.vue';
7
10
  export type * from '../components/Drawer.vue';
8
11
  export type * from '../components/Input.vue';
9
12
  export type * from '../components/Link.vue';
10
13
  export type * from '../components/Modal.vue';
14
+ export type * from '../components/PinInput.vue';
11
15
  export type * from '../components/Popover.vue';
12
16
  export type * from '../components/RadioGroup.vue';
17
+ export type * from '../components/ScrollArea.vue';
13
18
  export type * from '../components/Select.vue';
19
+ export type * from '../components/Slider.vue';
14
20
  export type * from '../components/Switch.vue';
15
21
  export type * from '../components/Tabs.vue';
22
+ export type * from '../components/Textarea.vue';
16
23
  export type * from '../components/Toast.vue';
17
24
  export type * from '../components/Toaster.vue';
18
25
  export type * from '../components/Tooltip.vue';
@@ -1,7 +1,5 @@
1
- import type * as _components from '../components';
2
1
  import type * as theme from '../theme';
3
- import type { PartialTheme } from '.';
2
+ import type { PartialTheme } from './utils';
4
3
  export * from './components';
5
4
  export * from './utils';
6
5
  export type ThemeExtension = PartialTheme<typeof theme>;
7
- export type ComponentName = keyof typeof _components;
@@ -1,6 +1,6 @@
1
1
  import { createDefu } from "defu";
2
2
  export const extendTheme = createDefu((obj, key, value) => {
3
- if (key === "global") {
3
+ if (key === "app") {
4
4
  obj[key] = { ...obj[key], ...value };
5
5
  return true;
6
6
  }
@@ -1,17 +1,6 @@
1
- import type { InjectionKey } from 'vue';
2
1
  export * from './extend-theme';
3
2
  export * from './link';
4
3
  export * from './styler';
5
- export declare function createInjection<T>(name: string): {
6
- injectionKey: InjectionKey<T>;
7
- provide: (value: T) => void;
8
- inject: () => T | undefined;
9
- };
10
- export declare function createInjection<T>(name: string, defaultValue: T): {
11
- injectionKey: InjectionKey<T>;
12
- provide: (value: T) => void;
13
- inject: () => T;
14
- };
15
4
  export declare function pick<Data extends object, Keys extends keyof Data>(data: Data, keys: Keys[]): Pick<Data, Keys>;
16
5
  export declare function omit<Data extends object, Keys extends keyof Data>(data: Data, keys: Keys[]): Omit<Data, Keys>;
17
6
  export declare function get(object: Record<string, any> | undefined, path: (string | number)[] | string, defaultValue?: any): any;
@@ -1,18 +1,7 @@
1
1
  import { isEqual } from "ohash";
2
- import { inject as vueInject, provide as vueProvide } from "vue";
3
2
  export * from "./extend-theme.mjs";
4
3
  export * from "./link.mjs";
5
4
  export * from "./styler.mjs";
6
- export function createInjection(name, defaultValue) {
7
- const injectionKey = Symbol(name);
8
- const provide = (value) => vueProvide(injectionKey, value);
9
- const inject = () => vueInject(injectionKey, defaultValue);
10
- return {
11
- injectionKey,
12
- provide,
13
- inject
14
- };
15
- }
16
5
  export function pick(data, keys) {
17
6
  const result = {};
18
7
  for (const key of keys)
@@ -1,8 +1,8 @@
1
1
  import type { LinkProps } from '../types';
2
2
  export declare function pickLinkProps(props: LinkProps & Partial<Pick<HTMLAnchorElement, 'ariaLabel' | 'title'>>): {
3
3
  disabled: any;
4
- active: any;
5
4
  title: any;
5
+ active: any;
6
6
  type: any;
7
7
  ariaLabel: any;
8
8
  rel: any;
@@ -0,0 +1,8 @@
1
+ import { fileURLToPath } from 'node:url';
2
+ import { normalize } from 'pathe';
3
+
4
+ const packageName = "@byyuurin/ui";
5
+ const runtimeDir = normalize(fileURLToPath(new URL("../runtime", import.meta.url)));
6
+
7
+ export { packageName as p, runtimeDir as r };
8
+ //# sourceMappingURL=ui.CzDyI29e.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui.CzDyI29e.mjs","sources":["../../src/internal/shared.ts"],"sourcesContent":["import { fileURLToPath } from 'node:url'\r\nimport { normalize } from 'pathe'\r\n\r\nexport const packageName = '@byyuurin/ui'\r\n\r\nexport const runtimeDir = normalize(fileURLToPath(new URL('../runtime', import.meta.url)))\r\n"],"names":[],"mappings":";;;AAGO,MAAM,WAAc,GAAA;AAEd,MAAA,UAAA,GAAa,UAAU,aAAc,CAAA,IAAI,IAAI,YAAc,EAAA,MAAA,CAAA,IAAA,CAAY,GAAG,CAAC,CAAC;;;;"}
@@ -1,6 +1,6 @@
1
+ import * as unocss from 'unocss';
1
2
  import { CRRule } from '@byyuurin/ui-kit';
2
- import * as _unocss_core from '@unocss/core';
3
- import * as _unocss_preset_mini from '@unocss/preset-mini';
3
+ import { UserConfig, Rule } from '@unocss/core';
4
4
  import { Theme } from '@unocss/preset-mini';
5
5
 
6
6
  declare const cssVarsPrefix = "ui";
@@ -8,15 +8,19 @@ declare const cssVarsBase: string[];
8
8
  declare const cssVarsDynamic: string[];
9
9
  declare const cssVarsAll: string[];
10
10
 
11
- declare function createMergeRules(): CRRule[];
12
-
13
11
  interface PresetOptions {
14
12
  /** @default "0rem" */
15
13
  radius?: string;
16
14
  /** @default "[radius]" */
15
+ radiusBox?: string;
16
+ /** @default "[radius]" */
17
17
  radiusButton?: string;
18
18
  /** @default "[radius]" */
19
- radiusBox?: string;
19
+ radiusCheckbox?: string;
20
+ /** @default "[radius]" */
21
+ radiusRadio?: string;
22
+ /** @default "[radius]" */
23
+ radiusSwitch?: string;
20
24
  /** @default "[radius]" */
21
25
  radiusTabs?: string;
22
26
  /**
@@ -40,10 +44,14 @@ interface PresetOptions {
40
44
  */
41
45
  c3?: string;
42
46
  }
43
- declare const preset: _unocss_core.PresetFactory<_unocss_preset_mini.Theme, PresetOptions>;
47
+ declare const preset: unocss.PresetFactory<object, PresetOptions>;
48
+
49
+ declare function transformUnoRules(userConfig?: UserConfig): CRRule[];
50
+
51
+ declare const rules: Rule[];
44
52
 
45
53
  declare const theme: Theme;
46
54
  declare function cssVar(name: string, ...defaultValue: string[]): string;
47
55
  declare function cssColor(...rgb: (string | number)[]): string;
48
56
 
49
- export { type PresetOptions, createMergeRules, cssColor, cssVar, cssVarsAll, cssVarsBase, cssVarsDynamic, cssVarsPrefix, preset as default, preset, theme };
57
+ export { type PresetOptions, cssColor, cssVar, cssVarsAll, cssVarsBase, cssVarsDynamic, cssVarsPrefix, preset as default, preset, rules, theme, transformUnoRules };
@@ -1,6 +1,6 @@
1
+ import * as unocss from 'unocss';
1
2
  import { CRRule } from '@byyuurin/ui-kit';
2
- import * as _unocss_core from '@unocss/core';
3
- import * as _unocss_preset_mini from '@unocss/preset-mini';
3
+ import { UserConfig, Rule } from '@unocss/core';
4
4
  import { Theme } from '@unocss/preset-mini';
5
5
 
6
6
  declare const cssVarsPrefix = "ui";
@@ -8,15 +8,19 @@ declare const cssVarsBase: string[];
8
8
  declare const cssVarsDynamic: string[];
9
9
  declare const cssVarsAll: string[];
10
10
 
11
- declare function createMergeRules(): CRRule[];
12
-
13
11
  interface PresetOptions {
14
12
  /** @default "0rem" */
15
13
  radius?: string;
16
14
  /** @default "[radius]" */
15
+ radiusBox?: string;
16
+ /** @default "[radius]" */
17
17
  radiusButton?: string;
18
18
  /** @default "[radius]" */
19
- radiusBox?: string;
19
+ radiusCheckbox?: string;
20
+ /** @default "[radius]" */
21
+ radiusRadio?: string;
22
+ /** @default "[radius]" */
23
+ radiusSwitch?: string;
20
24
  /** @default "[radius]" */
21
25
  radiusTabs?: string;
22
26
  /**
@@ -40,10 +44,14 @@ interface PresetOptions {
40
44
  */
41
45
  c3?: string;
42
46
  }
43
- declare const preset: _unocss_core.PresetFactory<_unocss_preset_mini.Theme, PresetOptions>;
47
+ declare const preset: unocss.PresetFactory<object, PresetOptions>;
48
+
49
+ declare function transformUnoRules(userConfig?: UserConfig): CRRule[];
50
+
51
+ declare const rules: Rule[];
44
52
 
45
53
  declare const theme: Theme;
46
54
  declare function cssVar(name: string, ...defaultValue: string[]): string;
47
55
  declare function cssColor(...rgb: (string | number)[]): string;
48
56
 
49
- export { type PresetOptions, createMergeRules, cssColor, cssVar, cssVarsAll, cssVarsBase, cssVarsDynamic, cssVarsPrefix, preset as default, preset, theme };
57
+ export { type PresetOptions, cssColor, cssVar, cssVarsAll, cssVarsBase, cssVarsDynamic, cssVarsPrefix, preset as default, preset, rules, theme, transformUnoRules };