daisy-ui-kit 5.0.4 → 5.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 (2) hide show
  1. package/nuxt.js +161 -14
  2. package/package.json +1 -1
package/nuxt.js CHANGED
@@ -1,4 +1,155 @@
1
- import { addImports, createResolver, defineNuxtModule } from '@nuxt/kit'
1
+ import { addComponent, addImports, defineNuxtModule } from '@nuxt/kit'
2
+
3
+ const components = [
4
+ 'Accordion',
5
+ 'Alert',
6
+ 'Avatar',
7
+ 'AvatarGroup',
8
+ 'Badge',
9
+ 'Breadcrumbs',
10
+ 'Button',
11
+ 'Calendar',
12
+ 'CalendarInput',
13
+ 'CalendarSkeleton',
14
+ 'Card',
15
+ 'CardActions',
16
+ 'CardBody',
17
+ 'CardTitle',
18
+ 'Carousel',
19
+ 'CarouselItem',
20
+ 'Chat',
21
+ 'ChatBubble',
22
+ 'ChatFooter',
23
+ 'ChatHeader',
24
+ 'ChatImage',
25
+ 'Checkbox',
26
+ 'Collapse',
27
+ 'CollapseContent',
28
+ 'CollapseTitle',
29
+ 'Countdown',
30
+ 'CountdownTimers',
31
+ 'Counter',
32
+ 'Crumb',
33
+ 'DaisyLink',
34
+ 'Diff',
35
+ 'Divider',
36
+ 'Dock',
37
+ 'DockItem',
38
+ 'DockLabel',
39
+ 'Drawer',
40
+ 'DrawerContent',
41
+ 'DrawerSide',
42
+ 'Dropdown',
43
+ 'DropdownButton',
44
+ 'DropdownContent',
45
+ 'DropdownTarget',
46
+ 'Fab',
47
+ 'FabClose',
48
+ 'FabMainAction',
49
+ 'FabTrigger',
50
+ 'Fieldset',
51
+ 'FileInput',
52
+ 'Filter',
53
+ 'Flex',
54
+ 'FlexItem',
55
+ 'Footer',
56
+ 'FooterTitle',
57
+ 'FormControl',
58
+ 'Hero',
59
+ 'HeroContent',
60
+ 'HeroOverlay',
61
+ 'Hover3D',
62
+ 'HoverGallery',
63
+ 'Indicator',
64
+ 'IndicatorItem',
65
+ 'Input',
66
+ 'Join',
67
+ 'Kbd',
68
+ 'Label',
69
+ 'List',
70
+ 'ListColGrow',
71
+ 'ListColWrap',
72
+ 'ListRow',
73
+ 'LoadingBall',
74
+ 'LoadingBars',
75
+ 'LoadingDots',
76
+ 'LoadingInfinity',
77
+ 'LoadingRing',
78
+ 'LoadingSpinner',
79
+ 'Mask',
80
+ 'Menu',
81
+ 'MenuExpand',
82
+ 'MenuExpandToggle',
83
+ 'MenuItem',
84
+ 'MenuTitle',
85
+ 'MockupBrowser',
86
+ 'MockupBrowserToolbar',
87
+ 'MockupCode',
88
+ 'MockupPhone',
89
+ 'MockupWindow',
90
+ 'Modal',
91
+ 'ModalAction',
92
+ 'ModalBox',
93
+ 'NavButton',
94
+ 'Navbar',
95
+ 'NavbarCenter',
96
+ 'NavbarEnd',
97
+ 'NavbarStart',
98
+ 'Progress',
99
+ 'Prose',
100
+ 'RadialProgress',
101
+ 'Radio',
102
+ 'RadioGroup',
103
+ 'RangeMeasure',
104
+ 'RangeMeasureTick',
105
+ 'Rating',
106
+ 'Select',
107
+ 'Skeleton',
108
+ 'SkeletonText',
109
+ 'Stack',
110
+ 'Stat',
111
+ 'StatActions',
112
+ 'StatDesc',
113
+ 'StatFigure',
114
+ 'StatTitle',
115
+ 'StatValue',
116
+ 'Stats',
117
+ 'Status',
118
+ 'Step',
119
+ 'StepIcon',
120
+ 'Steps',
121
+ 'Swap',
122
+ 'Tab',
123
+ 'TabContent',
124
+ 'Table',
125
+ 'Tabs',
126
+ 'TextArea',
127
+ 'TextRotate',
128
+ 'ThemeController',
129
+ 'ThemeProvider',
130
+ 'ThemeTile',
131
+ 'Timeline',
132
+ 'TimelineEnd',
133
+ 'TimelineItem',
134
+ 'TimelineLine',
135
+ 'TimelineMiddle',
136
+ 'TimelineStart',
137
+ 'Toast',
138
+ 'Toggle',
139
+ 'Tooltip',
140
+ 'TooltipContent',
141
+ 'TooltipTarget',
142
+ 'ValidatorHint',
143
+ ]
144
+
145
+ const composables = [
146
+ 'createDrawerState',
147
+ 'getPositionArea',
148
+ 'getPositionFallbacks',
149
+ 'useCalendar',
150
+ 'useDaisyTheme',
151
+ 'useToast',
152
+ ]
2
153
 
3
154
  export default defineNuxtModule({
4
155
  meta: {
@@ -11,21 +162,17 @@ export default defineNuxtModule({
11
162
  defaults: {
12
163
  prefix: '',
13
164
  },
14
- setup(moduleOptions, nuxt) {
15
- const { prefix } = moduleOptions
16
- const { resolve } = createResolver(import.meta.url)
165
+ setup(options) {
166
+ const prefix = options.prefix || ''
17
167
 
18
- nuxt.hook('components:dirs', dirs => {
19
- dirs.push({
20
- path: resolve('./app/components'),
21
- prefix,
168
+ for (const name of components) {
169
+ addComponent({
170
+ name: prefix + name,
171
+ export: name,
172
+ filePath: 'daisy-ui-kit',
22
173
  })
23
- })
174
+ }
24
175
 
25
- addImports([
26
- { name: 'useCalendar', from: resolve('./app/composables/use-calendar') },
27
- { name: 'useDaisyTheme', from: resolve('./app/composables/use-daisy-theme') },
28
- { name: 'useToast', from: resolve('./app/composables/use-toast') },
29
- ])
176
+ addImports(composables.map(name => ({ name, from: 'daisy-ui-kit' })))
30
177
  },
31
178
  })
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "5.0.4",
7
+ "version": "5.0.5",
8
8
  "packageManager": "pnpm@10.10.0",
9
9
  "author": "feathers.dev",
10
10
  "exports": {