@nuxt/ui 2.15.2 → 2.16.0

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 (68) hide show
  1. package/README.md +0 -10
  2. package/dist/module.d.mts +1 -24
  3. package/dist/module.d.ts +1 -24
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +108 -329
  6. package/dist/runtime/components/data/Table.vue +33 -2
  7. package/dist/runtime/components/data/Table.vue.d.ts +25 -35
  8. package/dist/runtime/components/elements/Accordion.vue.d.ts +1 -1
  9. package/dist/runtime/components/elements/Alert.vue.d.ts +6 -6
  10. package/dist/runtime/components/elements/Avatar.vue.d.ts +10 -10
  11. package/dist/runtime/components/elements/Badge.vue.d.ts +5 -5
  12. package/dist/runtime/components/elements/Button.vue.d.ts +9 -9
  13. package/dist/runtime/components/elements/Carousel.vue.d.ts +1 -1
  14. package/dist/runtime/components/elements/Chip.vue.d.ts +8 -8
  15. package/dist/runtime/components/elements/Dropdown.vue.d.ts +1 -1
  16. package/dist/runtime/components/elements/Kbd.vue.d.ts +2 -2
  17. package/dist/runtime/components/elements/Link.vue.d.ts +3 -3
  18. package/dist/runtime/components/elements/Meter.vue.d.ts +5 -5
  19. package/dist/runtime/components/elements/Progress.vue.d.ts +3 -3
  20. package/dist/runtime/components/forms/Checkbox.vue.d.ts +10 -10
  21. package/dist/runtime/components/forms/Form.vue.d.ts +2 -2
  22. package/dist/runtime/components/forms/FormGroup.vue.d.ts +7 -7
  23. package/dist/runtime/components/forms/Input.vue +1 -1
  24. package/dist/runtime/components/forms/Input.vue.d.ts +14 -14
  25. package/dist/runtime/components/forms/InputMenu.vue +6 -0
  26. package/dist/runtime/components/forms/InputMenu.vue.d.ts +30 -21
  27. package/dist/runtime/components/forms/Radio.vue.d.ts +11 -11
  28. package/dist/runtime/components/forms/RadioGroup.vue.d.ts +8 -8
  29. package/dist/runtime/components/forms/Range.vue.d.ts +8 -8
  30. package/dist/runtime/components/forms/Select.vue.d.ts +13 -13
  31. package/dist/runtime/components/forms/SelectMenu.vue +6 -0
  32. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +30 -21
  33. package/dist/runtime/components/forms/Textarea.vue.d.ts +12 -12
  34. package/dist/runtime/components/forms/Toggle.vue.d.ts +7 -7
  35. package/dist/runtime/components/layout/Card.vue.d.ts +1 -1
  36. package/dist/runtime/components/layout/Container.vue.d.ts +1 -1
  37. package/dist/runtime/components/layout/Divider.vue.d.ts +5 -5
  38. package/dist/runtime/components/layout/Skeleton.vue.d.ts +1 -1
  39. package/dist/runtime/components/navigation/Breadcrumb.vue +1 -0
  40. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +1 -1
  41. package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +10 -10
  42. package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +1 -1
  43. package/dist/runtime/components/navigation/Pagination.vue +5 -0
  44. package/dist/runtime/components/navigation/Pagination.vue.d.ts +10 -1
  45. package/dist/runtime/components/navigation/Tabs.vue.d.ts +2 -2
  46. package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +1 -1
  47. package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +3 -3
  48. package/dist/runtime/components/overlays/Modal.vue.d.ts +5 -5
  49. package/dist/runtime/components/overlays/Notification.vue +8 -3
  50. package/dist/runtime/components/overlays/Notification.vue.d.ts +8 -8
  51. package/dist/runtime/components/overlays/Notifications.vue.d.ts +3 -1
  52. package/dist/runtime/components/overlays/Popover.vue.d.ts +2 -2
  53. package/dist/runtime/components/overlays/Slideover.vue.d.ts +8 -8
  54. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +2 -2
  55. package/dist/runtime/composables/useFormGroup.d.ts +1 -1
  56. package/dist/runtime/composables/usePopper.d.ts +8 -8
  57. package/dist/runtime/composables/useToast.d.ts +2 -0
  58. package/dist/runtime/composables/useToast.mjs +13 -1
  59. package/dist/runtime/types/slideover.d.ts +11 -12
  60. package/dist/runtime/ui.config/data/table.d.ts +1 -0
  61. package/dist/runtime/ui.config/data/table.mjs +1 -0
  62. package/dist/runtime/ui.config/forms/input.d.ts +0 -8
  63. package/dist/runtime/ui.config/forms/input.mjs +1 -9
  64. package/dist/runtime/ui.config/forms/select.d.ts +0 -8
  65. package/dist/runtime/ui.config/forms/textarea.d.ts +0 -8
  66. package/dist/runtime/utils/colors.d.ts +11 -0
  67. package/dist/runtime/utils/colors.mjs +299 -0
  68. package/package.json +19 -22
@@ -27,6 +27,10 @@ declare const _default: import("vue").DefineComponent<{
27
27
  default: () => any;
28
28
  validator(value: string): boolean;
29
29
  };
30
+ to: {
31
+ type: PropType<(page: number) => RouteLocationRaw>;
32
+ default: null;
33
+ };
30
34
  activeButton: {
31
35
  type: PropType<Button>;
32
36
  default: () => Button;
@@ -113,6 +117,10 @@ declare const _default: import("vue").DefineComponent<{
113
117
  default: () => any;
114
118
  validator(value: string): boolean;
115
119
  };
120
+ to: {
121
+ type: PropType<(page: number) => RouteLocationRaw>;
122
+ default: null;
123
+ };
116
124
  activeButton: {
117
125
  type: PropType<Button>;
118
126
  default: () => Button;
@@ -161,9 +169,10 @@ declare const _default: import("vue").DefineComponent<{
161
169
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
162
170
  }, {
163
171
  size: ButtonSize;
164
- ui: any;
165
172
  class: any;
166
173
  disabled: boolean;
174
+ to: (page: number) => RouteLocationRaw;
175
+ ui: any;
167
176
  max: number;
168
177
  prevButton: Button;
169
178
  nextButton: Button;
@@ -71,12 +71,12 @@ declare const _default: import("vue").DefineComponent<{
71
71
  default: () => {};
72
72
  };
73
73
  }>> & {
74
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
75
74
  onChange?: ((...args: any[]) => any) | undefined;
75
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
76
76
  }, {
77
+ class: any;
77
78
  orientation: "horizontal" | "vertical";
78
79
  ui: any;
79
- class: any;
80
80
  modelValue: number;
81
81
  unmount: boolean;
82
82
  items: TabItem[];
@@ -37,8 +37,8 @@ declare const _default: import("vue").DefineComponent<{
37
37
  default: () => {};
38
38
  };
39
39
  }>>, {
40
- ui: any;
41
40
  class: any;
41
+ ui: any;
42
42
  links: VerticalNavigationLink[] | VerticalNavigationLink[][];
43
43
  }, {}>;
44
44
  export default _default;
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
30
30
  wrapperClass: import("vue").ComputedRef<string>;
31
31
  popper: import("vue").ComputedRef<PopperOptions>;
32
32
  container: Ref<import("@vueuse/core").MaybeElement>;
33
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:modelValue")[], "close" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
33
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "close")[], "update:modelValue" | "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
34
  modelValue: {
35
35
  type: BooleanConstructor;
36
36
  default: boolean;
@@ -52,12 +52,12 @@ declare const _default: import("vue").DefineComponent<{
52
52
  default: () => {};
53
53
  };
54
54
  }>> & {
55
- onClose?: ((...args: any[]) => any) | undefined;
56
55
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
56
+ onClose?: ((...args: any[]) => any) | undefined;
57
57
  }, {
58
- ui: any;
59
58
  class: any;
60
59
  popper: PopperOptions;
60
+ ui: any;
61
61
  modelValue: boolean;
62
62
  }, {}>;
63
63
  export default _default;
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  transitionClass: import("vue").ComputedRef<any>;
42
42
  onAfterLeave: () => void;
43
43
  close: (value: boolean) => void;
44
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:modelValue" | "close-prevented" | "after-leave")[], "close" | "update:modelValue" | "close-prevented" | "after-leave", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
44
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "close" | "close-prevented" | "after-leave")[], "update:modelValue" | "close" | "close-prevented" | "after-leave", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
45
  modelValue: {
46
46
  type: BooleanConstructor;
47
47
  default: boolean;
@@ -75,18 +75,18 @@ declare const _default: import("vue").DefineComponent<{
75
75
  default: () => {};
76
76
  };
77
77
  }>> & {
78
- onClose?: ((...args: any[]) => any) | undefined;
79
78
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
79
+ onClose?: ((...args: any[]) => any) | undefined;
80
80
  "onClose-prevented"?: ((...args: any[]) => any) | undefined;
81
81
  "onAfter-leave"?: ((...args: any[]) => any) | undefined;
82
82
  }, {
83
+ class: any;
84
+ transition: boolean;
83
85
  ui: any;
86
+ modelValue: boolean;
84
87
  appear: boolean;
85
88
  overlay: boolean;
86
- transition: boolean;
87
89
  preventClose: boolean;
88
90
  fullscreen: boolean;
89
- class: any;
90
- modelValue: boolean;
91
91
  }, {}>;
92
92
  export default _default;
@@ -43,7 +43,7 @@
43
43
  </template>
44
44
 
45
45
  <script>
46
- import { ref, computed, toRef, onMounted, onUnmounted, watchEffect, defineComponent } from "vue";
46
+ import { ref, computed, toRef, onMounted, onUnmounted, watch, watchEffect, defineComponent } from "vue";
47
47
  import { twMerge, twJoin } from "tailwind-merge";
48
48
  import UIcon from "../elements/Icon.vue";
49
49
  import UAvatar from "../elements/Avatar.vue";
@@ -171,7 +171,10 @@ export default defineComponent({
171
171
  }
172
172
  emit("close");
173
173
  }
174
- onMounted(() => {
174
+ function initTimer() {
175
+ if (timer) {
176
+ timer.stop();
177
+ }
175
178
  if (!props.timeout) {
176
179
  return;
177
180
  }
@@ -181,7 +184,9 @@ export default defineComponent({
181
184
  watchEffect(() => {
182
185
  remaining.value = timer.remaining.value;
183
186
  });
184
- });
187
+ }
188
+ watch(() => props.timeout, initTimer);
189
+ onMounted(initTimer);
185
190
  onUnmounted(() => {
186
191
  if (timer) {
187
192
  timer.stop();
@@ -2,7 +2,7 @@ import type { PropType } from 'vue';
2
2
  import type { Avatar, Button, NotificationAction } from '../../types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  id: {
5
- type: (NumberConstructor | StringConstructor)[];
5
+ type: (StringConstructor | NumberConstructor)[];
6
6
  required: true;
7
7
  };
8
8
  title: {
@@ -68,7 +68,7 @@ declare const _default: import("vue").DefineComponent<{
68
68
  twMerge: (...classLists: import("tailwind-merge").ClassNameValue[]) => string;
69
69
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
70
70
  id: {
71
- type: (NumberConstructor | StringConstructor)[];
71
+ type: (StringConstructor | NumberConstructor)[];
72
72
  required: true;
73
73
  };
74
74
  title: {
@@ -119,16 +119,16 @@ declare const _default: import("vue").DefineComponent<{
119
119
  }>> & {
120
120
  onClose?: ((...args: any[]) => any) | undefined;
121
121
  }, {
122
- ui: any;
123
122
  title: string;
124
- description: string;
125
- icon: string;
123
+ class: any;
126
124
  avatar: Avatar;
125
+ color: any;
126
+ ui: any;
127
+ icon: string;
128
+ description: string;
127
129
  closeButton: Button;
128
- timeout: number;
129
130
  actions: NotificationAction[];
131
+ timeout: number;
130
132
  callback: Function;
131
- color: any;
132
- class: any;
133
133
  }, {}>;
134
134
  export default _default;
@@ -30,6 +30,8 @@ declare const _default: import("vue").DefineComponent<{
30
30
  ui?: any;
31
31
  };
32
32
  remove: (id: string) => void;
33
+ update: (id: string, notification: Partial<Notification>) => void;
34
+ clear: () => void;
33
35
  };
34
36
  notifications: any;
35
37
  wrapperClass: import("vue").ComputedRef<string>;
@@ -43,7 +45,7 @@ declare const _default: import("vue").DefineComponent<{
43
45
  default: () => {};
44
46
  };
45
47
  }>>, {
46
- ui: any;
47
48
  class: any;
49
+ ui: any;
48
50
  }, {}>;
49
51
  export default _default;
@@ -112,14 +112,14 @@ declare const _default: import("vue").DefineComponent<{
112
112
  }>> & {
113
113
  "onUpdate:open"?: ((...args: any[]) => any) | undefined;
114
114
  }, {
115
- ui: any;
116
- overlay: boolean;
117
115
  class: any;
118
116
  popper: PopperOptions;
119
117
  disabled: boolean;
118
+ ui: any;
120
119
  open: boolean;
121
120
  mode: "click" | "hover";
122
121
  openDelay: number;
123
122
  closeDelay: number;
123
+ overlay: boolean;
124
124
  }, {}>;
125
125
  export default _default;
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
9
9
  default: boolean;
10
10
  };
11
11
  side: {
12
- type: PropType<"right" | "left">;
12
+ type: PropType<"left" | "right">;
13
13
  default: string;
14
14
  validator: (value: string) => boolean;
15
15
  };
@@ -42,7 +42,7 @@ declare const _default: import("vue").DefineComponent<{
42
42
  transitionClass: import("vue").ComputedRef<any>;
43
43
  onAfterLeave: () => void;
44
44
  close: (value: boolean) => void;
45
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:modelValue" | "close-prevented" | "after-leave")[], "close" | "update:modelValue" | "close-prevented" | "after-leave", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "close" | "close-prevented" | "after-leave")[], "update:modelValue" | "close" | "close-prevented" | "after-leave", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
46
46
  modelValue: {
47
47
  type: PropType<boolean>;
48
48
  default: boolean;
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
52
52
  default: boolean;
53
53
  };
54
54
  side: {
55
- type: PropType<"right" | "left">;
55
+ type: PropType<"left" | "right">;
56
56
  default: string;
57
57
  validator: (value: string) => boolean;
58
58
  };
@@ -77,18 +77,18 @@ declare const _default: import("vue").DefineComponent<{
77
77
  default: () => {};
78
78
  };
79
79
  }>> & {
80
- onClose?: ((...args: any[]) => any) | undefined;
81
80
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
81
+ onClose?: ((...args: any[]) => any) | undefined;
82
82
  "onClose-prevented"?: ((...args: any[]) => any) | undefined;
83
83
  "onAfter-leave"?: ((...args: any[]) => any) | undefined;
84
84
  }, {
85
+ class: any;
86
+ transition: boolean;
85
87
  ui: any;
88
+ modelValue: boolean;
86
89
  appear: boolean;
87
90
  overlay: boolean;
88
- transition: boolean;
89
91
  preventClose: boolean;
90
- class: any;
91
- side: "right" | "left";
92
- modelValue: boolean;
92
+ side: "left" | "right";
93
93
  }, {}>;
94
94
  export default _default;
@@ -78,10 +78,10 @@ declare const _default: import("vue").DefineComponent<{
78
78
  default: () => {};
79
79
  };
80
80
  }>>, {
81
- ui: any;
81
+ text: string;
82
82
  class: any;
83
83
  popper: PopperOptions;
84
- text: string;
84
+ ui: any;
85
85
  openDelay: number;
86
86
  closeDelay: number;
87
87
  prevent: boolean;
@@ -12,7 +12,7 @@ export declare const useFormGroup: (inputProps?: InputProps, config?: any) => {
12
12
  size: import("vue").ComputedRef<any>;
13
13
  color: import("vue").ComputedRef<string | undefined>;
14
14
  emitFormBlur: () => void;
15
- emitFormInput: import("@vueuse/shared").PromisifyFn<() => void>;
15
+ emitFormInput: import("@vueuse/core").PromisifyFn<() => void>;
16
16
  emitFormChange: () => void;
17
17
  };
18
18
  export {};
@@ -153,23 +153,23 @@ export declare function usePopper({ locked, overflowPadding, offsetDistance, off
153
153
  };
154
154
  } | undefined;
155
155
  offset?: {
156
- auto?: {
156
+ "bottom-end"?: {
157
157
  y: number;
158
158
  x: number;
159
159
  } | undefined;
160
- "bottom-end"?: {
160
+ "bottom-start"?: {
161
161
  y: number;
162
162
  x: number;
163
163
  } | undefined;
164
- "bottom-start"?: {
164
+ bottom?: {
165
165
  y: number;
166
166
  x: number;
167
167
  } | undefined;
168
- "auto-start"?: {
168
+ left?: {
169
169
  y: number;
170
170
  x: number;
171
171
  } | undefined;
172
- "auto-end"?: {
172
+ right?: {
173
173
  y: number;
174
174
  x: number;
175
175
  } | undefined;
@@ -177,15 +177,15 @@ export declare function usePopper({ locked, overflowPadding, offsetDistance, off
177
177
  y: number;
178
178
  x: number;
179
179
  } | undefined;
180
- bottom?: {
180
+ auto?: {
181
181
  y: number;
182
182
  x: number;
183
183
  } | undefined;
184
- right?: {
184
+ "auto-start"?: {
185
185
  y: number;
186
186
  x: number;
187
187
  } | undefined;
188
- left?: {
188
+ "auto-end"?: {
189
189
  y: number;
190
190
  x: number;
191
191
  } | undefined;
@@ -15,4 +15,6 @@ export declare function useToast(): {
15
15
  ui?: any;
16
16
  };
17
17
  remove: (id: string) => void;
18
+ update: (id: string, notification: Partial<Notification>) => void;
19
+ clear: () => void;
18
20
  };
@@ -15,8 +15,20 @@ export function useToast() {
15
15
  function remove(id) {
16
16
  notifications.value = notifications.value.filter((n) => n.id !== id);
17
17
  }
18
+ function update(id, notification) {
19
+ const index = notifications.value.findIndex((n) => n.id === id);
20
+ if (index !== -1) {
21
+ const previous = notifications.value[index];
22
+ notifications.value.splice(index, 1, { ...previous, ...notification });
23
+ }
24
+ }
25
+ function clear() {
26
+ notifications.value = [];
27
+ }
18
28
  return {
19
29
  add,
20
- remove
30
+ remove,
31
+ update,
32
+ clear
21
33
  };
22
34
  }
@@ -1,17 +1,16 @@
1
1
  import type { Component } from 'vue'
2
2
 
3
- interface Slideover {
4
- ui?: any;
5
- side?: 'right' | 'left';
6
- transition?: boolean;
7
- appear?: boolean;
8
- overlay?: boolean;
9
- preventClose?: boolean;
10
- modelValue?: boolean;
3
+ export interface Slideover {
4
+ ui?: any
5
+ side?: 'right' | 'left'
6
+ transition?: boolean
7
+ appear?: boolean
8
+ overlay?: boolean
9
+ preventClose?: boolean
10
+ modelValue?: boolean
11
11
  }
12
12
 
13
- interface SlideoverState {
14
- component: Component | string;
15
- props: Slideover;
13
+ export interface SlideoverState {
14
+ component: Component | string
15
+ props: Slideover
16
16
  }
17
-
@@ -4,6 +4,7 @@ declare const _default: {
4
4
  divide: string;
5
5
  thead: string;
6
6
  tbody: string;
7
+ caption: string;
7
8
  tr: {
8
9
  base: string;
9
10
  selected: string;
@@ -4,6 +4,7 @@ export default {
4
4
  divide: "divide-y divide-gray-300 dark:divide-gray-700",
5
5
  thead: "relative",
6
6
  tbody: "divide-y divide-gray-200 dark:divide-gray-800",
7
+ caption: "sr-only",
7
8
  tr: {
8
9
  base: "",
9
10
  selected: "bg-gray-50 dark:bg-gray-800/50",
@@ -6,14 +6,6 @@ declare const _default: {
6
6
  placeholder: string;
7
7
  file: {
8
8
  base: string;
9
- padding: {
10
- '2xs': string;
11
- xs: string;
12
- sm: string;
13
- md: string;
14
- lg: string;
15
- xl: string;
16
- };
17
9
  };
18
10
  size: {
19
11
  '2xs': string;
@@ -5,15 +5,7 @@ export default {
5
5
  rounded: "rounded-md",
6
6
  placeholder: "placeholder-gray-400 dark:placeholder-gray-500",
7
7
  file: {
8
- base: "file:cursor-pointer file:rounded-l-md file:absolute file:left-0 file:inset-y-0 file:font-medium file:m-0 file:border-0 file:ring-1 file:ring-gray-300 dark:file:ring-gray-700 file:text-gray-900 dark:file:text-white file:bg-gray-50 hover:file:bg-gray-100 dark:file:bg-gray-800 dark:hover:file:bg-gray-700/50",
9
- padding: {
10
- "2xs": "ps-[85px]",
11
- xs: "ps-[87px]",
12
- sm: "ps-[96px]",
13
- md: "ps-[98px]",
14
- lg: "ps-[100px]",
15
- xl: "ps-[109px]"
16
- }
8
+ base: "file:mr-1.5 file:font-medium file:text-gray-500 dark:file:text-gray-400 file:bg-transparent file:border-0 file:p-0 file:outline-none"
17
9
  },
18
10
  size: {
19
11
  "2xs": "text-xs",
@@ -13,14 +13,6 @@ declare const _default: {
13
13
  rounded: string;
14
14
  file: {
15
15
  base: string;
16
- padding: {
17
- '2xs': string;
18
- xs: string;
19
- sm: string;
20
- md: string;
21
- lg: string;
22
- xl: string;
23
- };
24
16
  };
25
17
  size: {
26
18
  '2xs': string;
@@ -11,14 +11,6 @@ declare const _default: {
11
11
  placeholder: string;
12
12
  file: {
13
13
  base: string;
14
- padding: {
15
- '2xs': string;
16
- xs: string;
17
- sm: string;
18
- md: string;
19
- lg: string;
20
- xl: string;
21
- };
22
14
  };
23
15
  size: {
24
16
  '2xs': string;
@@ -0,0 +1,11 @@
1
+ import type { Config as TWConfig } from 'tailwindcss';
2
+ import defaultColors from 'tailwindcss/colors.js';
3
+ type ColorConfig = Exclude<TWConfig['theme']['colors'], Function>;
4
+ export declare const excludeColors: (colors: ColorConfig | typeof defaultColors) => string[];
5
+ export declare const setGlobalColors: (theme: TWConfig['theme']) => string[];
6
+ export declare const generateSafelist: (colors: string[], globalColors: string[]) => any[];
7
+ type SafelistFn = Exclude<NonNullable<Extract<TWConfig['content'], {
8
+ extract?: unknown;
9
+ }>['extract']>, Record<string, unknown>>;
10
+ export declare const customSafelistExtractor: (prefix: string, content: string, colors: string[], safelistColors: string[]) => ReturnType<SafelistFn>;
11
+ export {};