vunor 0.0.6 → 0.0.8

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/theme.d.ts CHANGED
@@ -1,56 +1,15 @@
1
1
  import { PresetFactory } from 'unocss';
2
2
  import { Theme } from '@unocss/preset-mini';
3
3
 
4
+ export declare const defineShortcuts: (sc: TVunorShortcut) => TVunorShortcut;
5
+
4
6
  export declare const presetVunor: PresetFactory<TVunorTheme, TVunorUnoPresetOpts & {
5
7
  palette?: TPaletteOptions;
6
8
  }>;
7
9
 
8
- export declare function scFromObject(obj: TShortcutObject): string;
10
+ export declare function scFromObject(obj: TVunorShortcut): string;
9
11
 
10
- export declare const shortcuts: ({
11
- btn: string;
12
- 'btn-square': string;
13
- 'btn-label': string;
14
- 'btn-icon': string;
15
- } | {
16
- card: string;
17
- } | {
18
- 'checkbox-root': string;
19
- checkbox: string;
20
- 'checkbox-indicator': string;
21
- 'checkbox-icon': string;
22
- 'checkbox-label': string;
23
- } | {
24
- 'combobox-multi-input': string;
25
- 'combobox-multi-items': string;
26
- 'combobox-embedded-input': string;
27
- 'combobox-c8-icon': string;
28
- } | {
29
- 'loading-indicator': string;
30
- 'loading-indicator-ring': string;
31
- } | {
32
- 'menu-root': string;
33
- 'menu-item': string;
34
- } | {
35
- 'rb-container': string;
36
- 'rb-label': string;
37
- 'rb-root': string;
38
- 'rb-item-wrapper': string;
39
- 'rb-item': string;
40
- 'rb-item-indicator': string;
41
- 'rb-item-label': string;
42
- } | {
43
- 'select-content': string;
44
- 'select-scroll-btn': string;
45
- 'select-grp-label': string;
46
- 'select-item': string;
47
- 'select-separator': string;
48
- } | {
49
- slider: string;
50
- 'slider-track': string;
51
- 'slider-range': string;
52
- 'slider-thumb': string;
53
- })[];
12
+ export declare const shortcuts: TVunorShortcut;
54
13
 
55
14
  declare const themeFactory: (opts: Required<TVunorUnoPresetOpts> & {
56
15
  palette?: TPaletteOptions;
@@ -122,10 +81,6 @@ declare interface TPaletteOptions {
122
81
  darkest?: number;
123
82
  }
124
83
 
125
- declare type TScString = string | string[];
126
-
127
- declare type TShortcutObject = Record<string, Record<string, Record<string, TScString | undefined> | TScString | undefined> | TScString | undefined>;
128
-
129
84
  declare interface TTypography {
130
85
  size?: number;
131
86
  weight?: number;
@@ -140,6 +95,10 @@ declare interface TTypography {
140
95
 
141
96
  declare type TTypographyNames = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subheading' | 'body-l' | 'body' | 'body-s' | 'callout' | 'label' | 'caption' | 'overline';
142
97
 
98
+ declare interface TVunorShortcut {
99
+ [name: string]: string | TVunorShortcut | undefined | string[];
100
+ }
101
+
143
102
  export declare type TVunorTheme = ReturnType<typeof themeFactory> & Theme;
144
103
 
145
104
  declare interface TVunorUnoPresetOpts {
@@ -167,4 +126,6 @@ declare interface TVunorUnoPresetOpts {
167
126
  baseRadius?: string;
168
127
  }
169
128
 
129
+ export declare function vunorShortcuts(customShortcuts?: TVunorShortcut): Record<string, string>;
130
+
170
131
  export { }