@gluhar/theme 2.0.0-dev.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.
- package/CHANGELOG.md +147 -0
- package/README.md +162 -0
- package/dist/module.cjs +5 -0
- package/dist/module.d.mts +13 -0
- package/dist/module.d.ts +13 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +34 -0
- package/dist/runtime/composables/useTheme.d.ts +10 -0
- package/dist/runtime/composables/useTheme.js +29 -0
- package/dist/runtime/fonts/object-sans/PPObjectSans-Heavy.otf +0 -0
- package/dist/runtime/fonts/object-sans/PPObjectSans-HeavySlanted.otf +0 -0
- package/dist/runtime/fonts/object-sans/PPObjectSans-Regular.otf +0 -0
- package/dist/runtime/fonts/object-sans/PPObjectSans-Slanted.otf +0 -0
- package/dist/runtime/fonts/object-sans/stylesheet.css +1 -0
- package/dist/runtime/presets/lara/accordion/index.d.ts +49 -0
- package/dist/runtime/presets/lara/accordion/index.js +78 -0
- package/dist/runtime/presets/lara/autocomplete/index.d.ts +200 -0
- package/dist/runtime/presets/lara/autocomplete/index.js +259 -0
- package/dist/runtime/presets/lara/avatar/index.d.ts +83 -0
- package/dist/runtime/presets/lara/avatar/index.js +43 -0
- package/dist/runtime/presets/lara/avatargroup/index.d.ts +7 -0
- package/dist/runtime/presets/lara/avatargroup/index.js +5 -0
- package/dist/runtime/presets/lara/badge/index.d.ts +72 -0
- package/dist/runtime/presets/lara/badge/index.js +43 -0
- package/dist/runtime/presets/lara/badgedirective/index.d.ts +50 -0
- package/dist/runtime/presets/lara/badgedirective/index.js +43 -0
- package/dist/runtime/presets/lara/blockui/index.d.ts +11 -0
- package/dist/runtime/presets/lara/blockui/index.js +8 -0
- package/dist/runtime/presets/lara/breadcrumb/index.d.ts +23 -0
- package/dist/runtime/presets/lara/breadcrumb/index.js +64 -0
- package/dist/runtime/presets/lara/button/index.d.ts +3790 -0
- package/dist/runtime/presets/lara/button/index.js +220 -0
- package/dist/runtime/presets/lara/calendar/index.d.ts +334 -0
- package/dist/runtime/presets/lara/calendar/index.js +643 -0
- package/dist/runtime/presets/lara/card/index.d.ts +27 -0
- package/dist/runtime/presets/lara/card/index.js +37 -0
- package/dist/runtime/presets/lara/carousel/index.d.ts +71 -0
- package/dist/runtime/presets/lara/carousel/index.js +149 -0
- package/dist/runtime/presets/lara/cascadeselect/index.d.ts +112 -0
- package/dist/runtime/presets/lara/cascadeselect/index.js +209 -0
- package/dist/runtime/presets/lara/checkbox/index.d.ts +45 -0
- package/dist/runtime/presets/lara/checkbox/index.js +101 -0
- package/dist/runtime/presets/lara/chip/index.d.ts +23 -0
- package/dist/runtime/presets/lara/chip/index.js +45 -0
- package/dist/runtime/presets/lara/chips/index.d.ts +56 -0
- package/dist/runtime/presets/lara/chips/index.js +114 -0
- package/dist/runtime/presets/lara/colorpicker/index.d.ts +51 -0
- package/dist/runtime/presets/lara/colorpicker/index.js +123 -0
- package/dist/runtime/presets/lara/confirmpopup/index.d.ts +39 -0
- package/dist/runtime/presets/lara/confirmpopup/index.js +106 -0
- package/dist/runtime/presets/lara/contextmenu/index.d.ts +72 -0
- package/dist/runtime/presets/lara/contextmenu/index.js +125 -0
- package/dist/runtime/presets/lara/datatable/index.d.ts +695 -0
- package/dist/runtime/presets/lara/datatable/index.js +1170 -0
- package/dist/runtime/presets/lara/dataview/index.d.ts +15 -0
- package/dist/runtime/presets/lara/dataview/index.js +40 -0
- package/dist/runtime/presets/lara/dataviewlayoutoptions/index.d.ts +13 -0
- package/dist/runtime/presets/lara/dataviewlayoutoptions/index.js +62 -0
- package/dist/runtime/presets/lara/deferred/index.d.ts +4 -0
- package/dist/runtime/presets/lara/deferred/index.js +3 -0
- package/dist/runtime/presets/lara/dialog/index.d.ts +79 -0
- package/dist/runtime/presets/lara/dialog/index.js +235 -0
- package/dist/runtime/presets/lara/divider/index.d.ts +192 -0
- package/dist/runtime/presets/lara/divider/index.js +67 -0
- package/dist/runtime/presets/lara/dock/index.d.ts +51 -0
- package/dist/runtime/presets/lara/dock/index.js +93 -0
- package/dist/runtime/presets/lara/dropdown/index.d.ts +207 -0
- package/dist/runtime/presets/lara/dropdown/index.js +265 -0
- package/dist/runtime/presets/lara/fieldset/index.d.ts +87 -0
- package/dist/runtime/presets/lara/fieldset/index.js +84 -0
- package/dist/runtime/presets/lara/fileupload/index.d.ts +70 -0
- package/dist/runtime/presets/lara/fileupload/index.js +173 -0
- package/dist/runtime/presets/lara/floatlabel/index.d.ts +7 -0
- package/dist/runtime/presets/lara/floatlabel/index.js +26 -0
- package/dist/runtime/presets/lara/galleria/index.d.ts +194 -0
- package/dist/runtime/presets/lara/galleria/index.js +306 -0
- package/dist/runtime/presets/lara/global.d.ts +4 -0
- package/dist/runtime/presets/lara/global.js +90 -0
- package/dist/runtime/presets/lara/iconfield/index.d.ts +18 -0
- package/dist/runtime/presets/lara/iconfield/index.js +22 -0
- package/dist/runtime/presets/lara/image/index.d.ts +65 -0
- package/dist/runtime/presets/lara/image/index.js +206 -0
- package/dist/runtime/presets/lara/index.d.ts +187 -0
- package/dist/runtime/presets/lara/index.js +207 -0
- package/dist/runtime/presets/lara/inlinemessage/index.d.ts +55 -0
- package/dist/runtime/presets/lara/inlinemessage/index.js +36 -0
- package/dist/runtime/presets/lara/inplace/index.d.ts +7 -0
- package/dist/runtime/presets/lara/inplace/index.js +27 -0
- package/dist/runtime/presets/lara/inputgroup/index.d.ts +7 -0
- package/dist/runtime/presets/lara/inputgroup/index.js +5 -0
- package/dist/runtime/presets/lara/inputgroupaddon/index.d.ts +7 -0
- package/dist/runtime/presets/lara/inputgroupaddon/index.js +28 -0
- package/dist/runtime/presets/lara/inputmask/index.d.ts +27 -0
- package/dist/runtime/presets/lara/inputmask/index.js +34 -0
- package/dist/runtime/presets/lara/inputnumber/index.d.ts +390 -0
- package/dist/runtime/presets/lara/inputnumber/index.js +164 -0
- package/dist/runtime/presets/lara/inputotp/index.d.ts +147 -0
- package/dist/runtime/presets/lara/inputotp/index.js +60 -0
- package/dist/runtime/presets/lara/inputswitch/index.d.ts +67 -0
- package/dist/runtime/presets/lara/inputswitch/index.js +80 -0
- package/dist/runtime/presets/lara/inputtext/index.d.ts +160 -0
- package/dist/runtime/presets/lara/inputtext/index.js +49 -0
- package/dist/runtime/presets/lara/knob/index.d.ts +22 -0
- package/dist/runtime/presets/lara/knob/index.js +44 -0
- package/dist/runtime/presets/lara/listbox/index.d.ts +93 -0
- package/dist/runtime/presets/lara/listbox/index.js +152 -0
- package/dist/runtime/presets/lara/megamenu/index.d.ts +105 -0
- package/dist/runtime/presets/lara/megamenu/index.js +199 -0
- package/dist/runtime/presets/lara/menu/index.d.ts +40 -0
- package/dist/runtime/presets/lara/menu/index.js +96 -0
- package/dist/runtime/presets/lara/menubar/index.d.ts +85 -0
- package/dist/runtime/presets/lara/menubar/index.js +176 -0
- package/dist/runtime/presets/lara/message/index.d.ts +70 -0
- package/dist/runtime/presets/lara/message/index.js +87 -0
- package/dist/runtime/presets/lara/metergroup/index.d.ts +92 -0
- package/dist/runtime/presets/lara/metergroup/index.js +97 -0
- package/dist/runtime/presets/lara/multiselect/index.d.ts +260 -0
- package/dist/runtime/presets/lara/multiselect/index.js +546 -0
- package/dist/runtime/presets/lara/orderlist/index.d.ts +99 -0
- package/dist/runtime/presets/lara/orderlist/index.js +257 -0
- package/dist/runtime/presets/lara/organizationchart/index.d.ts +81 -0
- package/dist/runtime/presets/lara/organizationchart/index.js +138 -0
- package/dist/runtime/presets/lara/overlaypanel/index.d.ts +17 -0
- package/dist/runtime/presets/lara/overlaypanel/index.js +40 -0
- package/dist/runtime/presets/lara/paginator/index.d.ts +280 -0
- package/dist/runtime/presets/lara/paginator/index.js +533 -0
- package/dist/runtime/presets/lara/panel/index.d.ts +39 -0
- package/dist/runtime/presets/lara/panel/index.js +91 -0
- package/dist/runtime/presets/lara/panelmenu/index.d.ts +76 -0
- package/dist/runtime/presets/lara/panelmenu/index.js +127 -0
- package/dist/runtime/presets/lara/password/index.d.ts +181 -0
- package/dist/runtime/presets/lara/password/index.js +118 -0
- package/dist/runtime/presets/lara/picklist/index.d.ts +245 -0
- package/dist/runtime/presets/lara/picklist/index.js +650 -0
- package/dist/runtime/presets/lara/progressbar/index.d.ts +44 -0
- package/dist/runtime/presets/lara/progressbar/index.js +55 -0
- package/dist/runtime/presets/lara/progressspinner/index.d.ts +15 -0
- package/dist/runtime/presets/lara/progressspinner/index.js +51 -0
- package/dist/runtime/presets/lara/radiobutton/index.d.ts +57 -0
- package/dist/runtime/presets/lara/radiobutton/index.js +104 -0
- package/dist/runtime/presets/lara/rating/index.d.ts +49 -0
- package/dist/runtime/presets/lara/rating/index.js +92 -0
- package/dist/runtime/presets/lara/ripple/index.d.ts +8 -0
- package/dist/runtime/presets/lara/ripple/index.js +6 -0
- package/dist/runtime/presets/lara/scrollpanel/index.d.ts +19 -0
- package/dist/runtime/presets/lara/scrollpanel/index.js +77 -0
- package/dist/runtime/presets/lara/scrolltop/index.d.ts +50 -0
- package/dist/runtime/presets/lara/scrolltop/index.js +41 -0
- package/dist/runtime/presets/lara/selectbutton/index.d.ts +56 -0
- package/dist/runtime/presets/lara/selectbutton/index.js +49 -0
- package/dist/runtime/presets/lara/sidebar/index.d.ts +66 -0
- package/dist/runtime/presets/lara/sidebar/index.js +149 -0
- package/dist/runtime/presets/lara/skeleton/index.d.ts +16 -0
- package/dist/runtime/presets/lara/skeleton/index.js +16 -0
- package/dist/runtime/presets/lara/slider/index.d.ts +55 -0
- package/dist/runtime/presets/lara/slider/index.js +137 -0
- package/dist/runtime/presets/lara/speeddial/index.d.ts +3091 -0
- package/dist/runtime/presets/lara/speeddial/index.js +283 -0
- package/dist/runtime/presets/lara/splitbutton/index.d.ts +6749 -0
- package/dist/runtime/presets/lara/splitbutton/index.js +502 -0
- package/dist/runtime/presets/lara/splitter/index.d.ts +30 -0
- package/dist/runtime/presets/lara/splitter/index.js +61 -0
- package/dist/runtime/presets/lara/splitterpanel/index.d.ts +10 -0
- package/dist/runtime/presets/lara/splitterpanel/index.js +5 -0
- package/dist/runtime/presets/lara/stepper/index.d.ts +66 -0
- package/dist/runtime/presets/lara/stepper/index.js +161 -0
- package/dist/runtime/presets/lara/steps/index.d.ts +57 -0
- package/dist/runtime/presets/lara/steps/index.js +111 -0
- package/dist/runtime/presets/lara/tabmenu/index.d.ts +43 -0
- package/dist/runtime/presets/lara/tabmenu/index.js +73 -0
- package/dist/runtime/presets/lara/tabview/index.d.ts +67 -0
- package/dist/runtime/presets/lara/tabview/index.js +156 -0
- package/dist/runtime/presets/lara/tag/index.d.ts +32 -0
- package/dist/runtime/presets/lara/tag/index.js +36 -0
- package/dist/runtime/presets/lara/terminal/index.d.ts +27 -0
- package/dist/runtime/presets/lara/terminal/index.js +60 -0
- package/dist/runtime/presets/lara/textarea/index.d.ts +27 -0
- package/dist/runtime/presets/lara/textarea/index.js +36 -0
- package/dist/runtime/presets/lara/tieredmenu/index.d.ts +56 -0
- package/dist/runtime/presets/lara/tieredmenu/index.js +120 -0
- package/dist/runtime/presets/lara/timeline/index.d.ts +84 -0
- package/dist/runtime/presets/lara/timeline/index.js +81 -0
- package/dist/runtime/presets/lara/toast/index.d.ts +92 -0
- package/dist/runtime/presets/lara/toast/index.js +102 -0
- package/dist/runtime/presets/lara/togglebutton/index.d.ts +72 -0
- package/dist/runtime/presets/lara/togglebutton/index.js +91 -0
- package/dist/runtime/presets/lara/toolbar/index.d.ts +19 -0
- package/dist/runtime/presets/lara/toolbar/index.js +28 -0
- package/dist/runtime/presets/lara/tooltip/index.d.ts +38 -0
- package/dist/runtime/presets/lara/tooltip/index.js +46 -0
- package/dist/runtime/presets/lara/tree/index.d.ts +105 -0
- package/dist/runtime/presets/lara/tree/index.js +258 -0
- package/dist/runtime/presets/lara/treeselect/index.d.ts +181 -0
- package/dist/runtime/presets/lara/treeselect/index.js +352 -0
- package/dist/runtime/presets/lara/treetable/index.d.ts +316 -0
- package/dist/runtime/presets/lara/treetable/index.js +434 -0
- package/dist/runtime/presets/lara/tristatecheckbox/index.d.ts +49 -0
- package/dist/runtime/presets/lara/tristatecheckbox/index.js +104 -0
- package/dist/runtime/styles/core.css +27 -0
- package/dist/runtime/tailwind/gluharTheme.d.ts +3 -0
- package/dist/runtime/tailwind/gluharTheme.js +52 -0
- package/dist/runtime/tailwind/handleTailwind.d.ts +3 -0
- package/dist/runtime/tailwind/handleTailwind.js +22 -0
- package/dist/types.d.mts +7 -0
- package/dist/types.d.ts +7 -0
- package/package.json +56 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# [1.2.0](https://github.com/harryyaprakov/hui/compare/@pezak/hui-theme@1.1.0...@pezak/hui-theme@1.2.0) (2024-09-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### 🚀 Enhancements
|
|
10
|
+
|
|
11
|
+
- Version bump ([32cd173](https://github.com/harryyaprakov/hui/commit/32cd173ed800a4d4ede5286e65b9c5728ce39950))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [1.1.0](https://github.com/harryyaprakov/hui/compare/@pezak/hui-theme@1.0.6...@pezak/hui-theme@1.1.0) (2024-09-12)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### 🚀 Enhancements
|
|
21
|
+
|
|
22
|
+
- Switch from nuxt-primevue to @primevue/nuxt-module ([d9429f1](https://github.com/harryyaprakov/hui/commit/d9429f1cda5ad3bcd6b4809a1ef34758ea9aff29))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [1.0.6](https://github.com/harryyaprakov/hui/compare/@pezak/hui-theme@1.0.5...@pezak/hui-theme@1.0.6) (2024-05-09)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### 🩹 Fixes
|
|
32
|
+
|
|
33
|
+
- Primevue path resolve on windows removing backslashes ([c1e4686](https://github.com/harryyaprakov/hui/commit/c1e46860747b861aa01b8315f6e6e33484efa5e7))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## [1.0.5](https://github.com/harryyaprakov/hui/compare/@pezak/hui-theme@1.0.4...@pezak/hui-theme@1.0.5) (2024-04-01)
|
|
40
|
+
|
|
41
|
+
**📝 Note:** Version bump only for package @pezak/hui-theme
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## [1.0.4](https://github.com/harryyaprakov/hui/compare/@pezak/hui-theme@1.0.2...@pezak/hui-theme@1.0.4) (2024-04-01)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### 🩹 Fixes
|
|
51
|
+
|
|
52
|
+
- Exports ([1c64a82](https://github.com/harryyaprakov/hui/commit/1c64a82c68c2c074b319730920c882bc267a64d7))
|
|
53
|
+
- HuiTheme export again ([776c442](https://github.com/harryyaprakov/hui/commit/776c44221e56052e8a7fecbff519c029a92e0cf2))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## [1.0.3](https://github.com/harryyaprakov/hui/compare/@pezak/hui-theme@1.0.2...@pezak/hui-theme@1.0.3) (2024-04-01)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### 🩹 Fixes
|
|
63
|
+
|
|
64
|
+
- HuiTheme export again ([776c442](https://github.com/harryyaprakov/hui/commit/776c44221e56052e8a7fecbff519c029a92e0cf2))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## [1.0.2](https://github.com/harryyaprakov/hui/compare/@pezak/hui-theme@1.0.1...@pezak/hui-theme@1.0.2) (2024-04-01)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### 🩹 Fixes
|
|
74
|
+
|
|
75
|
+
- HuiTheme import ([e000080](https://github.com/harryyaprakov/hui/commit/e000080a0948e84f103364a9b1e26bef0165c4ba))
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## [1.0.1](https://github.com/harryyaprakov/hui/compare/@pezak/hui-theme@1.0.0...@pezak/hui-theme@1.0.1) (2024-04-01)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### 🩹 Fixes
|
|
85
|
+
|
|
86
|
+
- HuiTheme types export ([dfc42e7](https://github.com/harryyaprakov/hui/commit/dfc42e7bcf5536575639e8599de92371a3a25208))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
# [1.0.0](https://github.com/harryyaprakov/hui/compare/@pezak/hui-theme@0.2.3-dev.0...@pezak/hui-theme@1.0.0) (2024-04-01)
|
|
93
|
+
|
|
94
|
+
**📝 Note:** Version bump only for package @pezak/hui-theme
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
## [0.2.2](https://github.com/harryyaprakov/hui/compare/@pezak/hui-theme@0.2.1...@pezak/hui-theme@0.2.2) (2024-03-31)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### 🩹 Fixes
|
|
104
|
+
|
|
105
|
+
- Tailwind content to target primevue preset from the package ([9fc3e9d](https://github.com/harryyaprakov/hui/commit/9fc3e9d1929d741814c298e5edc04fcd5c54cc84))
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
## [0.2.1](https://github.com/harryyaprakov/hui/compare/@pezak/hui-theme@0.2.0...@pezak/hui-theme@0.2.1) (2024-03-27)
|
|
112
|
+
|
|
113
|
+
**📝 Note:** Version bump only for package @pezak/hui-theme
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
# [0.2.0](https://github.com/harryyaprakov/hui/compare/@pezak/hui-theme@0.1.0-dev.1...@pezak/hui-theme@0.2.0) (2024-03-27)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
### 🚀 Enhancements
|
|
123
|
+
|
|
124
|
+
- Add useTheme composable using exposed tw config ([7f761c8](https://github.com/harryyaprakov/hui/commit/7f761c89daec2a96d6359765c23d330ca75c5adf))
|
|
125
|
+
- HandleTailwind + predefined muiTheme ([adb07fb](https://github.com/harryyaprakov/hui/commit/adb07fb99b5a9431bd32e8b349fda60b109059d3))
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
# [0.1.0](https://github.com/harryyaprakov/hui/compare/@pezak/hui-theme@0.1.0-dev.1...@pezak/hui-theme@0.1.0) (2024-03-27)
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### 🚀 Enhancements
|
|
135
|
+
|
|
136
|
+
- HandleTailwind + predefined muiTheme ([adb07fb](https://github.com/harryyaprakov/hui/commit/adb07fb99b5a9431bd32e8b349fda60b109059d3))
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
# 0.1.0 (2024-03-27)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### 🚀 Enhancements
|
|
146
|
+
|
|
147
|
+
- Add hui-theme package ([b6bce13](https://github.com/harryyaprakov/hui/commit/b6bce13caf31fdbec238a3b6ce7b5cdc84b4ec3b))
|
package/README.md
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# `@gluhar/theme`
|
|
2
|
+
|
|
3
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
4
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
|
+
[![License][license-src]][license-href]
|
|
6
|
+
[![Nuxt][nuxt-src]][nuxt-href]
|
|
7
|
+
|
|
8
|
+
Gluhar Theme package.
|
|
9
|
+
Configures tailwind and primevue setup. Provides composables (useTheme) and utils for working with the theme and colors.
|
|
10
|
+
|
|
11
|
+
[✨ Release Notes](./CHANGELOG.md)
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
Install the module to your Nuxt application with one command:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx nuxi module add @gluhar/theme
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Tailwind Config
|
|
22
|
+
|
|
23
|
+
In your /config folder, create a `tailwind.config.ts` file that is a standard tw config. For theme use gluharTheme from the package and merge with defu.
|
|
24
|
+
|
|
25
|
+
Importing the predefined theme like such is meant for vs code tw intellisense to work properly.
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import gluharTheme from "@gluhar/theme/gluharTheme";
|
|
29
|
+
import { defu } from "defu";
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
// Theme
|
|
33
|
+
theme: defu(
|
|
34
|
+
{
|
|
35
|
+
// Extends
|
|
36
|
+
extend: {
|
|
37
|
+
// Colors
|
|
38
|
+
colors: {
|
|
39
|
+
primary: {
|
|
40
|
+
base: "#3A3A3A",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
gluharTheme,
|
|
46
|
+
),
|
|
47
|
+
};
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Create a `base.sass` file to import tailwind's classes and provide initial variables.
|
|
51
|
+
|
|
52
|
+
In `~/assets/styles/base.sass`
|
|
53
|
+
|
|
54
|
+
```css
|
|
55
|
+
@tailwind base
|
|
56
|
+
@tailwind components
|
|
57
|
+
@tailwind utilities
|
|
58
|
+
|
|
59
|
+
:root
|
|
60
|
+
--primary-50: 236 253 245
|
|
61
|
+
--primary-100: 209 250 229
|
|
62
|
+
--primary-200: 167 243 208
|
|
63
|
+
--primary-300: 110 231 183
|
|
64
|
+
--primary-400: 52 211 153
|
|
65
|
+
--primary-500: 58 58 58
|
|
66
|
+
--primary-600: 5 150 105
|
|
67
|
+
--primary-700: 4 120 87
|
|
68
|
+
--primary-800: 6 95 70
|
|
69
|
+
--primary-900: 4 78 56
|
|
70
|
+
--primary-950: 2 44 34
|
|
71
|
+
--surface-0: 255 255 255
|
|
72
|
+
--surface-50: 248 250 252
|
|
73
|
+
--surface-100: 241 245 249
|
|
74
|
+
--surface-200: 226 232 240
|
|
75
|
+
--surface-300: 203 213 225
|
|
76
|
+
--surface-400: 148 163 184
|
|
77
|
+
--surface-500: 100 116 139
|
|
78
|
+
--surface-600: 71 85 105
|
|
79
|
+
--surface-700: 45 55 72
|
|
80
|
+
--surface-800: 30 41 59
|
|
81
|
+
--surface-900: 15 23 42
|
|
82
|
+
--surface-950: 3 6 23;
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
If you want your main stylesheet to be named differently, not be sass or be elsewhere, you can config the `cssPath` in nuxt.config.ts:
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
{
|
|
89
|
+
modules: [
|
|
90
|
+
...,
|
|
91
|
+
"@gluhar/theme"
|
|
92
|
+
],
|
|
93
|
+
|
|
94
|
+
gluharTheme: {
|
|
95
|
+
tailwind: {
|
|
96
|
+
cssPath: '~/assets/main.css'
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## PrimeVue Config
|
|
103
|
+
|
|
104
|
+
This package provides an up-to-date primevue preset for tailwind (lara). In your project you import whats provided and only add overrides for whats in use.
|
|
105
|
+
|
|
106
|
+
Create a folder names `primevue` in /styles.
|
|
107
|
+
|
|
108
|
+
`./assets/styles/primevue/index.js`
|
|
109
|
+
|
|
110
|
+
```js
|
|
111
|
+
import lara from "@gluhar/theme/primevue";
|
|
112
|
+
import button from "./button"; // import other overrides like this
|
|
113
|
+
|
|
114
|
+
export default {
|
|
115
|
+
...lara,
|
|
116
|
+
button,
|
|
117
|
+
};
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
When doing overrides cmd + click into the gluhar/theme import, navigate to the component you want, copy paste it to /primevue and change what you need fam got you bruv innit.
|
|
121
|
+
|
|
122
|
+
## Contribution
|
|
123
|
+
|
|
124
|
+
<details>
|
|
125
|
+
<summary>Local development</summary>
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
# Install dependencies
|
|
129
|
+
npm install
|
|
130
|
+
|
|
131
|
+
# Generate type stubs
|
|
132
|
+
npm run dev:prepare
|
|
133
|
+
|
|
134
|
+
# Develop with the playground
|
|
135
|
+
npm run dev
|
|
136
|
+
|
|
137
|
+
# Build the playground
|
|
138
|
+
npm run dev:build
|
|
139
|
+
|
|
140
|
+
# Run ESLint
|
|
141
|
+
npm run lint
|
|
142
|
+
|
|
143
|
+
# Run Vitest
|
|
144
|
+
npm run test
|
|
145
|
+
npm run test:watch
|
|
146
|
+
|
|
147
|
+
# Release new version
|
|
148
|
+
npm run release
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
</details>
|
|
152
|
+
|
|
153
|
+
<!-- Badges -->
|
|
154
|
+
|
|
155
|
+
[npm-version-src]: https://img.shields.io/npm/v/my-module/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
|
156
|
+
[npm-version-href]: https://npmjs.com/package/my-module
|
|
157
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/my-module.svg?style=flat&colorA=020420&colorB=00DC82
|
|
158
|
+
[npm-downloads-href]: https://npmjs.com/package/my-module
|
|
159
|
+
[license-src]: https://img.shields.io/npm/l/my-module.svg?style=flat&colorA=020420&colorB=00DC82
|
|
160
|
+
[license-href]: https://npmjs.com/package/my-module
|
|
161
|
+
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
|
|
162
|
+
[nuxt-href]: https://nuxt.com
|
package/dist/module.cjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import { ModuleOptions } from '@nuxtjs/tailwindcss';
|
|
3
|
+
import pv from '@primevue/nuxt-module';
|
|
4
|
+
|
|
5
|
+
type Primevue = typeof pv;
|
|
6
|
+
type PrimevueOptions = Parameters<Exclude<Primevue["getOptions"], undefined>>[0];
|
|
7
|
+
interface GluharThemeOptions {
|
|
8
|
+
tailwind?: Partial<ModuleOptions>;
|
|
9
|
+
primevue?: Partial<PrimevueOptions>;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: _nuxt_schema.NuxtModule<GluharThemeOptions, GluharThemeOptions, false>;
|
|
12
|
+
|
|
13
|
+
export { type GluharThemeOptions, _default as default };
|
package/dist/module.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import { ModuleOptions } from '@nuxtjs/tailwindcss';
|
|
3
|
+
import pv from '@primevue/nuxt-module';
|
|
4
|
+
|
|
5
|
+
type Primevue = typeof pv;
|
|
6
|
+
type PrimevueOptions = Parameters<Exclude<Primevue["getOptions"], undefined>>[0];
|
|
7
|
+
interface GluharThemeOptions {
|
|
8
|
+
tailwind?: Partial<ModuleOptions>;
|
|
9
|
+
primevue?: Partial<PrimevueOptions>;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: _nuxt_schema.NuxtModule<GluharThemeOptions, GluharThemeOptions, false>;
|
|
12
|
+
|
|
13
|
+
export { type GluharThemeOptions, _default as default };
|
package/dist/module.json
ADDED
package/dist/module.mjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import path from 'pathe';
|
|
2
|
+
import { defineNuxtModule, createResolver, installModule, addImportsDir } from '@nuxt/kit';
|
|
3
|
+
import { handleTailwind } from '../dist/runtime/tailwind/handleTailwind.js';
|
|
4
|
+
|
|
5
|
+
const cwd = process.cwd();
|
|
6
|
+
const module = defineNuxtModule({
|
|
7
|
+
meta: {
|
|
8
|
+
name: "@gluhar/theme",
|
|
9
|
+
configKey: "gluharTheme"
|
|
10
|
+
},
|
|
11
|
+
// Default configuration options of the Nuxt module
|
|
12
|
+
defaults: {
|
|
13
|
+
tailwind: {
|
|
14
|
+
configPath: path.join(cwd, "config/tailwind.config"),
|
|
15
|
+
cssPath: path.join(cwd, "assets/styles/base.sass"),
|
|
16
|
+
exposeConfig: true
|
|
17
|
+
},
|
|
18
|
+
primevue: {
|
|
19
|
+
options: { unstyled: true },
|
|
20
|
+
importPT: {
|
|
21
|
+
from: path.resolve(cwd, "./assets/styles/primevue/")
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(options, nuxt) {
|
|
26
|
+
const { resolve } = createResolver(import.meta.url);
|
|
27
|
+
const { primevue } = options;
|
|
28
|
+
handleTailwind(options, nuxt);
|
|
29
|
+
installModule("@primevue/nuxt-module", primevue);
|
|
30
|
+
addImportsDir(resolve("runtime/composables"));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export { module as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import theme from "#tailwind-config/theme";
|
|
2
|
+
import colors from "#tailwind-config/theme/colors";
|
|
3
|
+
declare const baseColors: readonly ["slate", "gray", "zinc", "neutral", "stone", "red", "orange", "amber", "yellow", "lime", "green", "emerald", "teal", "cyan", "sky", "blue", "indigo", "violet", "purple", "fuchsia", "pink", "rose"];
|
|
4
|
+
export type BaseColor = (typeof baseColors)[number];
|
|
5
|
+
export declare const useTheme: () => {
|
|
6
|
+
colors: typeof colors;
|
|
7
|
+
theme: typeof theme;
|
|
8
|
+
baseColors: readonly BaseColor[];
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import theme from "#tailwind-config/theme";
|
|
2
|
+
import colors from "#tailwind-config/theme/colors";
|
|
3
|
+
const baseColors = [
|
|
4
|
+
"slate",
|
|
5
|
+
"gray",
|
|
6
|
+
"zinc",
|
|
7
|
+
"neutral",
|
|
8
|
+
"stone",
|
|
9
|
+
"red",
|
|
10
|
+
"orange",
|
|
11
|
+
"amber",
|
|
12
|
+
"yellow",
|
|
13
|
+
"lime",
|
|
14
|
+
"green",
|
|
15
|
+
"emerald",
|
|
16
|
+
"teal",
|
|
17
|
+
"cyan",
|
|
18
|
+
"sky",
|
|
19
|
+
"blue",
|
|
20
|
+
"indigo",
|
|
21
|
+
"violet",
|
|
22
|
+
"purple",
|
|
23
|
+
"fuchsia",
|
|
24
|
+
"pink",
|
|
25
|
+
"rose"
|
|
26
|
+
];
|
|
27
|
+
export const useTheme = () => {
|
|
28
|
+
return { colors, theme, baseColors };
|
|
29
|
+
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{ascent-override:85%;font-family:Object Sans;font-style:normal;font-weight:400;src:url(PPObjectSans-Regular.otf) format("opentype")}@font-face{font-family:Object Sans;font-style:italic;font-weight:400;src:url(PPObjectSans-Slanted.otf) format("opentype")}@font-face{font-family:Object Sans;font-style:normal;font-weight:700;src:url(PPObjectSans-Heavy.otf) format("opentype")}@font-face{font-family:Object Sans;font-style:italic;font-weight:700;src:url(PPObjectSans-HeavySlanted.otf) format("opentype")}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace accordiontab {
|
|
3
|
+
namespace root {
|
|
4
|
+
let _class: string;
|
|
5
|
+
export { _class as class };
|
|
6
|
+
}
|
|
7
|
+
function header({ props }: {
|
|
8
|
+
props: any;
|
|
9
|
+
}): {
|
|
10
|
+
class: {
|
|
11
|
+
'select-none pointer-events-none cursor-default opacity-60': any;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
function headerAction({ context }: {
|
|
15
|
+
context: any;
|
|
16
|
+
}): {
|
|
17
|
+
class: (string | {
|
|
18
|
+
'rounded-br-md rounded-bl-md': boolean;
|
|
19
|
+
'rounded-br-0 rounded-bl-0': any;
|
|
20
|
+
'text-surface-900'?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
'text-surface-900': any;
|
|
23
|
+
'rounded-br-md rounded-bl-md'?: undefined;
|
|
24
|
+
'rounded-br-0 rounded-bl-0'?: undefined;
|
|
25
|
+
})[];
|
|
26
|
+
};
|
|
27
|
+
namespace headerIcon {
|
|
28
|
+
let _class_1: string;
|
|
29
|
+
export { _class_1 as class };
|
|
30
|
+
}
|
|
31
|
+
namespace headerTitle {
|
|
32
|
+
let _class_2: string;
|
|
33
|
+
export { _class_2 as class };
|
|
34
|
+
}
|
|
35
|
+
namespace content {
|
|
36
|
+
let _class_3: string[];
|
|
37
|
+
export { _class_3 as class };
|
|
38
|
+
}
|
|
39
|
+
namespace transition {
|
|
40
|
+
let enterFromClass: string;
|
|
41
|
+
let enterActiveClass: string;
|
|
42
|
+
let enterToClass: string;
|
|
43
|
+
let leaveFromClass: string;
|
|
44
|
+
let leaveActiveClass: string;
|
|
45
|
+
let leaveToClass: string;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export default _default;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
accordiontab: {
|
|
3
|
+
root: {
|
|
4
|
+
class: 'mb-1'
|
|
5
|
+
},
|
|
6
|
+
header: ({ props }) => ({
|
|
7
|
+
class: [
|
|
8
|
+
// State
|
|
9
|
+
{ 'select-none pointer-events-none cursor-default opacity-60': props?.disabled }
|
|
10
|
+
]
|
|
11
|
+
}),
|
|
12
|
+
headerAction: ({ context }) => ({
|
|
13
|
+
class: [
|
|
14
|
+
//Font
|
|
15
|
+
'font-bold',
|
|
16
|
+
'leading-none',
|
|
17
|
+
|
|
18
|
+
// Alignments
|
|
19
|
+
'flex items-center',
|
|
20
|
+
'relative',
|
|
21
|
+
|
|
22
|
+
// Sizing
|
|
23
|
+
'p-5',
|
|
24
|
+
|
|
25
|
+
// Shape
|
|
26
|
+
'rounded-t-md',
|
|
27
|
+
{ 'rounded-br-md rounded-bl-md': !context.active, 'rounded-br-0 rounded-bl-0': context.active },
|
|
28
|
+
|
|
29
|
+
// Color
|
|
30
|
+
'border border-surface-200 dark:border-surface-700',
|
|
31
|
+
'bg-surface-50 dark:bg-surface-800',
|
|
32
|
+
'text-surface-600 dark:text-surface-0/80',
|
|
33
|
+
{ 'text-surface-900': context.active },
|
|
34
|
+
|
|
35
|
+
// Transition
|
|
36
|
+
'transition duration-200 ease-in-out',
|
|
37
|
+
'transition-shadow duration-200',
|
|
38
|
+
|
|
39
|
+
// States
|
|
40
|
+
'hover:bg-surface-100 dark:hover:bg-surface-700/40',
|
|
41
|
+
'hover:text-surface-900',
|
|
42
|
+
'focus:outline-none focus:outline-offset-0 focus-visible:ring focus-visible:ring-primary-400/50 ring-inset dark:focus-visible:ring-primary-300/50', // Focus
|
|
43
|
+
|
|
44
|
+
// Misc
|
|
45
|
+
'cursor-pointer no-underline select-none'
|
|
46
|
+
]
|
|
47
|
+
}),
|
|
48
|
+
headerIcon: {
|
|
49
|
+
class: 'inline-block mr-2'
|
|
50
|
+
},
|
|
51
|
+
headerTitle: {
|
|
52
|
+
class: 'leading-none'
|
|
53
|
+
},
|
|
54
|
+
content: {
|
|
55
|
+
class: [
|
|
56
|
+
// Spacing
|
|
57
|
+
'p-5',
|
|
58
|
+
|
|
59
|
+
//Shape
|
|
60
|
+
'rounded-tl-none rounded-tr-none rounded-br-lg rounded-bl-lg',
|
|
61
|
+
'border-t-0',
|
|
62
|
+
|
|
63
|
+
// Color
|
|
64
|
+
'bg-surface-0 dark:bg-surface-800',
|
|
65
|
+
'border border-surface-200 dark:border-surface-700',
|
|
66
|
+
'text-surface-700 dark:text-surface-0/80'
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
transition: {
|
|
70
|
+
enterFromClass: 'max-h-0',
|
|
71
|
+
enterActiveClass: 'overflow-hidden transition-[max-height] duration-1000 ease-[cubic-bezier(0.42,0,0.58,1)]',
|
|
72
|
+
enterToClass: 'max-h-[1000px]',
|
|
73
|
+
leaveFromClass: 'max-h-[1000px]',
|
|
74
|
+
leaveActiveClass: 'overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]',
|
|
75
|
+
leaveToClass: 'max-h-0'
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|