vitrify 0.17.5 → 0.17.7
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/plugins/quasar/unocss/components/QAjaxBar.unocss.js +8 -4
- package/dist/plugins/quasar/unocss/components/QAvatar.unocss.js +4 -2
- package/dist/plugins/quasar/unocss/components/QBadge.unocss.js +8 -4
- package/dist/plugins/quasar/unocss/components/QBanner.unocss.js +6 -3
- package/dist/plugins/quasar/unocss/components/QBar.unocss.js +6 -3
- package/dist/plugins/quasar/unocss/components/QBtn.unocss.js +26 -13
- package/dist/plugins/quasar/unocss/components/QBtnDropdown.unocss.js +4 -2
- package/dist/plugins/quasar/unocss/components/QBtnGroup.unocss.js +10 -5
- package/dist/plugins/quasar/unocss/components/QCard.unocss.js +14 -7
- package/dist/plugins/quasar/unocss/components/QCarousel.unocss.js +38 -19
- package/dist/plugins/quasar/unocss/components/QChatMessage.unocss.js +14 -7
- package/dist/plugins/quasar/unocss/components/QCheckbox.unocss.js +16 -8
- package/dist/plugins/quasar/unocss/components/QChip.unocss.js +25 -47
- package/dist/plugins/quasar/unocss/components/QCircularProgress.unocss.js +4 -2
- package/dist/plugins/quasar/unocss/components/QColorPicker.unocss.js +46 -102
- package/dist/plugins/quasar/unocss/components/QDate.unocss.js +54 -27
- package/dist/plugins/quasar/unocss/components/QDialog.unocss.js +24 -12
- package/dist/plugins/quasar/unocss/components/QDrawer.unocss.js +28 -25
- package/dist/plugins/quasar/unocss/components/QEditor.unocss.js +10 -5
- package/dist/plugins/quasar/unocss/components/QExpansionItem.unocss.js +16 -8
- package/dist/plugins/quasar/unocss/components/QFab.unocss.js +46 -23
- package/dist/plugins/quasar/unocss/components/QField.unocss.js +60 -30
- package/dist/plugins/quasar/unocss/components/QFile.unocss.js +6 -3
- package/dist/plugins/quasar/unocss/components/QFooter.unocss.js +4 -2
- package/dist/plugins/quasar/unocss/components/QHeader.unocss.js +4 -2
- package/dist/plugins/quasar/unocss/components/QImg.unocss.js +12 -6
- package/dist/plugins/quasar/unocss/components/QInnerLoading.unocss.js +2 -1
- package/dist/plugins/quasar/unocss/components/QInput.unocss.js +4 -18
- package/dist/plugins/quasar/unocss/components/QItem.unocss.js +32 -16
- package/dist/plugins/quasar/unocss/components/QKnob.unocss.js +5 -6
- package/dist/plugins/quasar/unocss/components/QLayout.unocss.js +6 -3
- package/dist/plugins/quasar/unocss/components/QLinearProgress.unocss.js +23 -12
- package/dist/plugins/quasar/unocss/components/QMenu.unocss.js +4 -2
- package/dist/plugins/quasar/unocss/components/QPageSticky.unocss.js +2 -1
- package/dist/plugins/quasar/unocss/components/QPagination.unocss.js +6 -3
- package/dist/plugins/quasar/unocss/components/QParallax.unocss.js +4 -2
- package/dist/plugins/quasar/unocss/components/QPopupEdit.unocss.js +2 -1
- package/dist/plugins/quasar/unocss/components/QPullToRefresh.unocss.js +4 -2
- package/dist/plugins/quasar/unocss/components/QRadio.unocss.js +29 -15
- package/dist/plugins/quasar/unocss/components/QRating.unocss.js +8 -4
- package/dist/plugins/quasar/unocss/components/QResponsive.unocss.js +4 -2
- package/dist/plugins/quasar/unocss/components/QScrollarea.unocss.js +10 -5
- package/dist/plugins/quasar/unocss/components/QSelect.unocss.js +14 -7
- package/dist/plugins/quasar/unocss/components/QSeparator.unocss.js +9 -5
- package/dist/plugins/quasar/unocss/components/QSkeleton.unocss.js +67 -42
- package/dist/plugins/quasar/unocss/components/QSlideItem.unocss.js +10 -5
- package/dist/plugins/quasar/unocss/components/QSlider.unocss.js +70 -35
- package/dist/plugins/quasar/unocss/components/QSpinner.unocss.js +2 -1
- package/dist/plugins/quasar/unocss/components/QSplitter.unocss.js +18 -16
- package/dist/plugins/quasar/unocss/components/QStepper.unocss.js +54 -38
- package/dist/plugins/quasar/unocss/components/QTable.unocss.js +101 -55
- package/dist/plugins/quasar/unocss/components/QTabs.unocss.js +67 -44
- package/dist/plugins/quasar/unocss/components/QTime.unocss.js +167 -65
- package/dist/plugins/quasar/unocss/components/QTimeline.unocss.js +41 -30
- package/dist/plugins/quasar/unocss/components/QToggle.unocss.js +23 -18
- package/dist/plugins/quasar/unocss/components/QToolbar.unocss.js +4 -2
- package/dist/plugins/quasar/unocss/components/QTooltip.unocss.js +4 -2
- package/dist/plugins/quasar/unocss/components/QTree.unocss.js +54 -27
- package/dist/plugins/quasar/unocss/components/QUploader.unocss.js +37 -25
- package/dist/plugins/quasar/unocss/components/QVideo.unocss.js +4 -2
- package/dist/plugins/quasar/unocss/components/QVirtualScroll.unocss.js +6 -3
- package/dist/plugins/quasar/unocss/core/elevation.unocss.js +59 -56
- package/dist/plugins/quasar/unocss/core/flex.unocss.js +16 -29
- package/dist/plugins/quasar/unocss/index.js +18 -6
- package/dist/plugins/quasar/unocss/theme.js +300 -426
- package/dist/plugins/quasar.js +18 -101
- package/dist/types/plugins/quasar/unocss/index.d.ts +2 -5
- package/dist/types/plugins/quasar/unocss/theme.d.ts +827 -127
- package/dist/types/plugins/quasar.d.ts +3 -2
- package/package.json +2 -1
- package/src/node/plugins/quasar/unocss/components/QAjaxBar.unocss.ts +12 -4
- package/src/node/plugins/quasar/unocss/components/QAvatar.unocss.ts +2 -0
- package/src/node/plugins/quasar/unocss/components/QBadge.unocss.ts +8 -2
- package/src/node/plugins/quasar/unocss/components/QBanner.unocss.ts +3 -0
- package/src/node/plugins/quasar/unocss/components/QBar.unocss.ts +9 -3
- package/src/node/plugins/quasar/unocss/components/QBtn.unocss.ts +21 -4
- package/src/node/plugins/quasar/unocss/components/QBtnDropdown.unocss.ts +4 -1
- package/src/node/plugins/quasar/unocss/components/QBtnGroup.unocss.ts +5 -0
- package/src/node/plugins/quasar/unocss/components/QCard.unocss.ts +9 -1
- package/src/node/plugins/quasar/unocss/components/QCarousel.unocss.ts +41 -11
- package/src/node/plugins/quasar/unocss/components/QChatMessage.unocss.ts +13 -3
- package/src/node/plugins/quasar/unocss/components/QCheckbox.unocss.ts +10 -1
- package/src/node/plugins/quasar/unocss/components/QChip.unocss.ts +47 -50
- package/src/node/plugins/quasar/unocss/components/QCircularProgress.unocss.ts +2 -0
- package/src/node/plugins/quasar/unocss/components/QColorPicker.unocss.ts +93 -102
- package/src/node/plugins/quasar/unocss/components/QDate.unocss.ts +45 -9
- package/src/node/plugins/quasar/unocss/components/QDialog.unocss.ts +36 -12
- package/src/node/plugins/quasar/unocss/components/QDrawer.unocss.ts +28 -25
- package/src/node/plugins/quasar/unocss/components/QEditor.unocss.ts +15 -5
- package/src/node/plugins/quasar/unocss/components/QExpansionItem.unocss.ts +16 -4
- package/src/node/plugins/quasar/unocss/components/QFab.unocss.ts +35 -6
- package/src/node/plugins/quasar/unocss/components/QField.unocss.ts +38 -4
- package/src/node/plugins/quasar/unocss/components/QFile.unocss.ts +5 -1
- package/src/node/plugins/quasar/unocss/components/QFooter.unocss.ts +4 -1
- package/src/node/plugins/quasar/unocss/components/QHeader.unocss.ts +4 -1
- package/src/node/plugins/quasar/unocss/components/QImg.unocss.ts +12 -3
- package/src/node/plugins/quasar/unocss/components/QInnerLoading.unocss.ts +1 -0
- package/src/node/plugins/quasar/unocss/components/QInput.unocss.ts +4 -24
- package/src/node/plugins/quasar/unocss/components/QItem.unocss.ts +30 -7
- package/src/node/plugins/quasar/unocss/components/QKnob.unocss.ts +5 -9
- package/src/node/plugins/quasar/unocss/components/QLayout.unocss.ts +5 -1
- package/src/node/plugins/quasar/unocss/components/QLinearProgress.unocss.ts +23 -5
- package/src/node/plugins/quasar/unocss/components/QMenu.unocss.ts +2 -0
- package/src/node/plugins/quasar/unocss/components/QPageSticky.unocss.ts +1 -0
- package/src/node/plugins/quasar/unocss/components/QPagination.unocss.ts +3 -0
- package/src/node/plugins/quasar/unocss/components/QParallax.unocss.ts +2 -0
- package/src/node/plugins/quasar/unocss/components/QPopupEdit.unocss.ts +3 -1
- package/src/node/plugins/quasar/unocss/components/QPullToRefresh.unocss.ts +4 -1
- package/src/node/plugins/quasar/unocss/components/QRadio.unocss.ts +31 -15
- package/src/node/plugins/quasar/unocss/components/QRating.unocss.ts +8 -2
- package/src/node/plugins/quasar/unocss/components/QResponsive.unocss.ts +2 -0
- package/src/node/plugins/quasar/unocss/components/QScrollarea.unocss.ts +13 -4
- package/src/node/plugins/quasar/unocss/components/QSelect.unocss.ts +17 -5
- package/src/node/plugins/quasar/unocss/components/QSeparator.unocss.ts +14 -4
- package/src/node/plugins/quasar/unocss/components/QSkeleton.unocss.ts +83 -43
- package/src/node/plugins/quasar/unocss/components/QSlideItem.unocss.ts +5 -0
- package/src/node/plugins/quasar/unocss/components/QSlider.unocss.ts +55 -10
- package/src/node/plugins/quasar/unocss/components/QSpinner.unocss.ts +1 -0
- package/src/node/plugins/quasar/unocss/components/QSplitter.unocss.ts +20 -18
- package/src/node/plugins/quasar/unocss/components/QStepper.unocss.ts +51 -34
- package/src/node/plugins/quasar/unocss/components/QTable.unocss.ts +110 -51
- package/src/node/plugins/quasar/unocss/components/QTabs.unocss.ts +77 -46
- package/src/node/plugins/quasar/unocss/components/QTime.unocss.ts +192 -65
- package/src/node/plugins/quasar/unocss/components/QTimeline.unocss.ts +36 -28
- package/src/node/plugins/quasar/unocss/components/QToggle.unocss.ts +24 -20
- package/src/node/plugins/quasar/unocss/components/QToolbar.unocss.ts +2 -0
- package/src/node/plugins/quasar/unocss/components/QTooltip.unocss.ts +2 -0
- package/src/node/plugins/quasar/unocss/components/QTree.unocss.ts +59 -24
- package/src/node/plugins/quasar/unocss/components/QUploader.unocss.ts +36 -22
- package/src/node/plugins/quasar/unocss/components/QVideo.unocss.ts +2 -0
- package/src/node/plugins/quasar/unocss/components/QVirtualScroll.unocss.ts +3 -0
- package/src/node/plugins/quasar/unocss/core/elevation.unocss.ts +61 -60
- package/src/node/plugins/quasar/unocss/core/flex.unocss.ts +13 -32
- package/src/node/plugins/quasar/unocss/index.ts +25 -10
- package/src/node/plugins/quasar/unocss/theme.ts +1422 -428
- package/src/node/plugins/quasar.ts +30 -111
|
@@ -17,106 +17,141 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
17
17
|
[
|
|
18
18
|
/^q-tree$/,
|
|
19
19
|
([, c], { theme }) =>
|
|
20
|
+
theme.quasar?.components?.['q-tree'] ??
|
|
20
21
|
`relative text-[#9e9e9e] [&_>_.q-tree\\_\\_node]:(p-0) [&_>_.q-tree\\_\\_node:after]:(hidden) [&_>_.q-tree\\_\\_node_>_.q-tree\\_\\_node-header:before]:(hidden) [&_>_.q-tree\\_\\_node--child_>_.q-tree\\_\\_node-header]:(pl-[24px])`
|
|
21
22
|
],
|
|
22
23
|
|
|
23
|
-
[/^q-tree__node$/, ([, c], { theme }) => `pt-[0] pr-[0] pb-[3px] pl-[22px]`],
|
|
24
|
-
|
|
25
24
|
[
|
|
26
|
-
/^q-tree__node
|
|
25
|
+
/^q-tree__node$/,
|
|
27
26
|
([, c], { theme }) =>
|
|
28
|
-
|
|
27
|
+
theme.quasar?.components?.['q-tree__node'] ??
|
|
28
|
+
`pt-[0] pr-[0] pb-[3px] pl-[22px] [&:after]:(content-[''] absolute -top-[3px] bottom-[0] w-[2px] right-auto -left-[13px] [border-left:1px_solid_currentColor]) [&:last-child:after]:(hidden)`
|
|
29
29
|
],
|
|
30
30
|
|
|
31
|
-
[/^q-tree__node:last-child:after$/, ([, c], { theme }) => `hidden`],
|
|
32
|
-
|
|
33
31
|
[
|
|
34
32
|
/^q-tree__node--disabled$/,
|
|
35
33
|
([, c], { theme }) =>
|
|
34
|
+
theme.quasar?.components?.['q-tree__node--disabled'] ??
|
|
36
35
|
`pointer-events-none [&_.disabled]:(!opacity-100) [&_>_div]:(!opacity-60) [&_>_i]:(!opacity-60) [&_>_.disabled]:(!opacity-60) [&_>_div_.q-tree\\_\\_node--disabled_>_div]:(!opacity-100) [&_>_div_.q-tree\\_\\_node--disabled_>_i]:(!opacity-100) [&_>_div_.q-tree\\_\\_node--disabled_>_.disabled]:(!opacity-100) [&_>_i_.q-tree\\_\\_node--disabled_>_div]:(!opacity-100) [&_>_i_.q-tree\\_\\_node--disabled_>_i]:(!opacity-100) [&_>_i_.q-tree\\_\\_node--disabled_>_.disabled]:(!opacity-100) [&_>_.disabled_.q-tree\\_\\_node--disabled_>_div]:(!opacity-100) [&_>_.disabled_.q-tree\\_\\_node--disabled_>_i]:(!opacity-100) [&_>_.disabled_.q-tree\\_\\_node--disabled_>_.disabled]:(!opacity-100)`
|
|
37
36
|
],
|
|
38
37
|
|
|
39
38
|
[
|
|
40
|
-
/^q-tree__node-header
|
|
39
|
+
/^q-tree__node-header$/,
|
|
41
40
|
([, c], { theme }) =>
|
|
42
|
-
|
|
41
|
+
theme.quasar?.components?.['q-tree__node-header'] ??
|
|
42
|
+
`[&:before]:(content-[''] absolute -top-[3px] bottom-2/4 w-[31px] -left-[35px] [border-left:1px_solid_currentColor] [border-bottom:1px_solid_currentColor]) p-[4px] mt-[3px] rounded-[4px] outline-[0]`
|
|
43
43
|
],
|
|
44
44
|
|
|
45
|
-
[
|
|
45
|
+
[
|
|
46
|
+
/^q-tree__children$/,
|
|
47
|
+
([, c], { theme }) =>
|
|
48
|
+
theme.quasar?.components?.['q-tree__children'] ?? `pl-[25px]`
|
|
49
|
+
],
|
|
46
50
|
|
|
47
51
|
[
|
|
48
52
|
/^q-tree__node-body$/,
|
|
49
|
-
([, c], { theme }) =>
|
|
53
|
+
([, c], { theme }) =>
|
|
54
|
+
theme.quasar?.components?.['q-tree__node-body'] ??
|
|
55
|
+
`pt-[5px] pr-[0] pb-[8px] pl-[5px]`
|
|
50
56
|
],
|
|
51
57
|
|
|
52
58
|
[
|
|
53
59
|
/^q-tree__node--parent$/,
|
|
54
60
|
([, c], { theme }) =>
|
|
55
|
-
|
|
61
|
+
theme.quasar?.components?.['q-tree__node--parent'] ??
|
|
62
|
+
`pl-[2px] [&_>_.q-tree\\_\\_node-header:before]:(w-[15px] -left-[15px]) [&_>_.q-tree\\_\\_node-collapsible_>_.q-tree\\_\\_node-body]:(pt-[5px] pr-[0] pb-[8px] pl-[27px]) [&_>_.q-tree\\_\\_node-collapsible_>_.q-tree\\_\\_node-body:after]:(content-[''] absolute top-[0] w-[2px] h-full right-auto left-[12px] [border-left:1px_solid_currentColor] bottom-[50px])`
|
|
56
63
|
],
|
|
57
64
|
|
|
58
|
-
[/^q-tree__node--link$/, ([, c], { theme }) => `cursor-pointer`],
|
|
59
|
-
|
|
60
65
|
[
|
|
61
|
-
/^q-tree__node
|
|
62
|
-
([, c], { theme }) =>
|
|
66
|
+
/^q-tree__node--link$/,
|
|
67
|
+
([, c], { theme }) =>
|
|
68
|
+
theme.quasar?.components?.['q-tree__node--link'] ?? `cursor-pointer`
|
|
63
69
|
],
|
|
64
70
|
|
|
65
71
|
[
|
|
66
72
|
/^q-tree__node-header-content$/,
|
|
67
73
|
([, c], { theme }) =>
|
|
74
|
+
theme.quasar?.components?.['q-tree__node-header-content'] ??
|
|
68
75
|
`text-[#000] [transition:color_0.3s] [&_.q-icon]:(text-[21px]) [&_.q-avatar]:(text-[28px] rounded-[50%] w-[28px] h-[28px])`
|
|
69
76
|
],
|
|
70
77
|
|
|
71
78
|
[
|
|
72
79
|
/^q-tree__node--selected$/,
|
|
73
80
|
([, c], { theme }) =>
|
|
81
|
+
theme.quasar?.components?.['q-tree__node--selected'] ??
|
|
74
82
|
`[&_.q-tree\\_\\_node-header-content]:(text-[#9e9e9e])`
|
|
75
83
|
],
|
|
76
84
|
|
|
77
|
-
[
|
|
85
|
+
[
|
|
86
|
+
/^q-tree__icon$/,
|
|
87
|
+
([, c], { theme }) =>
|
|
88
|
+
theme.quasar?.components?.['q-tree__icon'] ?? `text-[21px]`
|
|
89
|
+
],
|
|
78
90
|
|
|
79
|
-
[
|
|
91
|
+
[
|
|
92
|
+
/^q-tree__img$/,
|
|
93
|
+
([, c], { theme }) =>
|
|
94
|
+
theme.quasar?.components?.['q-tree__img'] ?? `h-[42px] rounded-[2px]`
|
|
95
|
+
],
|
|
80
96
|
|
|
81
97
|
[
|
|
82
98
|
/^q-tree__avatar$/,
|
|
83
|
-
([, c], { theme }) =>
|
|
99
|
+
([, c], { theme }) =>
|
|
100
|
+
theme.quasar?.components?.['q-tree__avatar'] ??
|
|
101
|
+
`text-[28px] rounded-[50%] w-[28px] h-[28px]`
|
|
84
102
|
],
|
|
85
103
|
|
|
86
104
|
[
|
|
87
105
|
/^q-tree__arrow$/,
|
|
88
|
-
([, c], { theme }) =>
|
|
106
|
+
([, c], { theme }) =>
|
|
107
|
+
theme.quasar?.components?.['q-tree__arrow'] ??
|
|
108
|
+
`text-[16px] mr-[4px] [transition:transform_0.3s]`
|
|
89
109
|
],
|
|
90
110
|
|
|
91
|
-
[
|
|
111
|
+
[
|
|
112
|
+
/^q-tree__spinner$/,
|
|
113
|
+
([, c], { theme }) =>
|
|
114
|
+
theme.quasar?.components?.['q-tree__spinner'] ?? `text-[16px] mr-[4px]`
|
|
115
|
+
],
|
|
92
116
|
|
|
93
117
|
[
|
|
94
118
|
/^q-tree__arrow--rotate$/,
|
|
95
|
-
([, c], { theme }) =>
|
|
119
|
+
([, c], { theme }) =>
|
|
120
|
+
theme.quasar?.components?.['q-tree__arrow--rotate'] ??
|
|
121
|
+
`[transform:rotate3d(0,_0,_1,_90deg)]`
|
|
96
122
|
],
|
|
97
123
|
|
|
98
|
-
[
|
|
124
|
+
[
|
|
125
|
+
/^q-tree__tickbox$/,
|
|
126
|
+
([, c], { theme }) =>
|
|
127
|
+
theme.quasar?.components?.['q-tree__tickbox'] ?? `mr-[4px]`
|
|
128
|
+
],
|
|
99
129
|
|
|
100
130
|
[
|
|
101
131
|
/^q-tree--dark$/,
|
|
102
|
-
([, c], { theme }) =>
|
|
132
|
+
([, c], { theme }) =>
|
|
133
|
+
theme.quasar?.components?.['q-tree--dark'] ??
|
|
134
|
+
`[&_.q-tree\\_\\_node-header-content]:(text-[#fff])`
|
|
103
135
|
],
|
|
104
136
|
|
|
105
137
|
[
|
|
106
138
|
/^q-tree--no-connectors$/,
|
|
107
139
|
([, c], { theme }) =>
|
|
140
|
+
theme.quasar?.components?.['q-tree--no-connectors'] ??
|
|
108
141
|
`[&_.q-tree\\_\\_node:after]:(!hidden) [&_.q-tree\\_\\_node-header:before]:(!hidden) [&_.q-tree\\_\\_node-body:after]:(!hidden)`
|
|
109
142
|
],
|
|
110
143
|
|
|
111
144
|
[
|
|
112
145
|
/^q-tree--dense$/,
|
|
113
146
|
([, c], { theme }) =>
|
|
114
|
-
|
|
147
|
+
theme.quasar?.components?.['q-tree--dense'] ??
|
|
148
|
+
`[&_>_.q-tree\\_\\_node--child_>_.q-tree\\_\\_node-header]:(pl-px) [&_.q-tree\\_\\_arrow]:(mr-px) [&_.q-tree\\_\\_spinner]:(mr-px) [&_.q-tree\\_\\_img]:(h-[32px]) [&_.q-tree\\_\\_tickbox]:(mr-[3px]) [&_.q-tree\\_\\_node]:(p-0) [&_.q-tree\\_\\_node:after]:(top-[0] -left-[8px]) [&_.q-tree\\_\\_node-header]:(mt-0 p-px) [&_.q-tree\\_\\_node-header:before]:(top-[0] -left-[8px] w-[8px]) [&_.q-tree\\_\\_node--child]:(pl-[17px]) [&_.q-tree\\_\\_node--child_>_.q-tree\\_\\_node-header:before]:(-left-[25px] w-[21px]) [&_.q-tree\\_\\_node-body]:(pt-[0] px-[0] pb-[2px]) [&_.q-tree\\_\\_children]:(pl-[16px])`
|
|
115
149
|
],
|
|
116
150
|
|
|
117
151
|
[
|
|
118
152
|
/^q-tree--dense$/,
|
|
119
153
|
([, c], { theme }) =>
|
|
154
|
+
theme.quasar?.components?.['q-tree--dense'] ??
|
|
120
155
|
`[&__.q-tree\\_\\_node--parent__>_.q-tree\\_\\_node-collapsible__>_.q-tree\\_\\_node-body]:(pt-[0] pr-[0] pb-[2px] pl-[20px]) [&__.q-tree\\_\\_node--parent__>_.q-tree\\_\\_node-collapsible__>_.q-tree\\_\\_node-body:after]:(left-[8px])`
|
|
121
156
|
]
|
|
122
157
|
]
|
|
@@ -5,75 +5,83 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
5
5
|
[
|
|
6
6
|
/^q-uploader$/,
|
|
7
7
|
([, c], { theme }) =>
|
|
8
|
+
theme.quasar?.components?.['q-uploader'] ??
|
|
8
9
|
`[box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)] rounded-[4px] align-top bg-[#fff] relative w-[320px] max-h-[320px]`
|
|
9
10
|
],
|
|
10
11
|
|
|
11
12
|
[
|
|
12
13
|
/^q-uploader--bordered$/,
|
|
13
|
-
([, c], { theme }) =>
|
|
14
|
+
([, c], { theme }) =>
|
|
15
|
+
theme.quasar?.components?.['q-uploader--bordered'] ??
|
|
16
|
+
`border-[1px] border-solid border-[rgba(0,0,0,0.12)]`
|
|
14
17
|
],
|
|
15
18
|
|
|
16
19
|
[
|
|
17
20
|
/^q-uploader__input$/,
|
|
18
|
-
([, c], { theme }) =>
|
|
21
|
+
([, c], { theme }) =>
|
|
22
|
+
theme.quasar?.components?.['q-uploader__input'] ??
|
|
23
|
+
`opacity-0 w-full h-full !cursor-pointer [&::-webkit-file-upload-button]:(cursor-pointer)`
|
|
19
24
|
],
|
|
20
25
|
|
|
21
26
|
[
|
|
22
|
-
/^q-
|
|
23
|
-
([, c], { theme }) =>
|
|
27
|
+
/^q-uploader__file$/,
|
|
28
|
+
([, c], { theme }) =>
|
|
29
|
+
theme.quasar?.components?.['q-uploader__file'] ??
|
|
30
|
+
`[&:before]:(content-[''] [border-top-left-radius:inherit] [border-top-right-radius:inherit] absolute top-[0] right-[0] bottom-[0] left-[0] pointer-events-none bg-current opacity-[0.04]) rounded-tl-[4px] rounded-br-[0] rounded-tr-[4px] rounded-bl-[0] border-[1px] border-solid border-[rgba(0,0,0,0.12)] [&_.q-circular-progress]:(text-[24px]) [&_+_.q-uploader\\_\\_file]:(mt-[8px])`
|
|
24
31
|
],
|
|
25
32
|
|
|
26
33
|
[
|
|
27
|
-
/^q-
|
|
34
|
+
/^q-uploader__header$/,
|
|
28
35
|
([, c], { theme }) =>
|
|
29
|
-
|
|
36
|
+
theme.quasar?.components?.['q-uploader__header'] ??
|
|
37
|
+
`relative [border-top-left-radius:inherit] [border-top-right-radius:inherit] text-[#fff] w-full`
|
|
30
38
|
],
|
|
31
39
|
|
|
32
40
|
[
|
|
33
|
-
/^q-
|
|
41
|
+
/^q-uploader__spinner$/,
|
|
34
42
|
([, c], { theme }) =>
|
|
35
|
-
|
|
43
|
+
theme.quasar?.components?.['q-uploader__spinner'] ??
|
|
44
|
+
`text-[24px] mr-[4px]`
|
|
36
45
|
],
|
|
37
46
|
|
|
38
|
-
[
|
|
39
|
-
|
|
40
|
-
|
|
47
|
+
[
|
|
48
|
+
/^q-uploader__header-content$/,
|
|
49
|
+
([, c], { theme }) =>
|
|
50
|
+
theme.quasar?.components?.['q-uploader__header-content'] ?? `p-[8px]`
|
|
51
|
+
],
|
|
41
52
|
|
|
42
53
|
[
|
|
43
54
|
/^q-uploader__dnd$/,
|
|
44
55
|
([, c], { theme }) =>
|
|
56
|
+
theme.quasar?.components?.['q-uploader__dnd'] ??
|
|
45
57
|
`outline-[1px_dashed_currentColor] outline-offset-[-4px] bg-[rgba(255,_255,_255,_0.6)]`
|
|
46
58
|
],
|
|
47
59
|
|
|
48
60
|
[
|
|
49
61
|
/^q-uploader__overlay$/,
|
|
50
62
|
([, c], { theme }) =>
|
|
63
|
+
theme.quasar?.components?.['q-uploader__overlay'] ??
|
|
51
64
|
`text-[36px] text-[#000] bg-[rgba(255,_255,_255,_0.6)]`
|
|
52
65
|
],
|
|
53
66
|
|
|
54
67
|
[
|
|
55
68
|
/^q-uploader__list$/,
|
|
56
69
|
([, c], { theme }) =>
|
|
70
|
+
theme.quasar?.components?.['q-uploader__list'] ??
|
|
57
71
|
`relative [border-bottom-left-radius:inherit] [border-bottom-right-radius:inherit] p-[8px] min-h-[60px] flex-auto`
|
|
58
72
|
],
|
|
59
73
|
|
|
60
|
-
[
|
|
61
|
-
/^q-uploader__file$/,
|
|
62
|
-
([, c], { theme }) =>
|
|
63
|
-
`rounded-tl-[4px] rounded-br-[0] rounded-tr-[4px] rounded-bl-[0] border-[1px] border-solid border-[rgba(0,0,0,0.12)] [&_.q-circular-progress]:(text-[24px]) [&_+_.q-uploader\\_\\_file]:(mt-[8px])`
|
|
64
|
-
],
|
|
65
|
-
|
|
66
74
|
[
|
|
67
75
|
/^q-uploader__file--img$/,
|
|
68
76
|
([, c], { theme }) =>
|
|
69
|
-
|
|
77
|
+
theme.quasar?.components?.['q-uploader__file--img'] ??
|
|
78
|
+
`text-[#fff] h-[200px] min-w-[200px] bg-[50%_50%] bg-no-repeat [&:before]:(content-[none]) [&_.q-circular-progress]:(text-[#fff]) [&_.q-uploader\\_\\_file-header]:(pb-[24px] bg-[linear-gradient(_to_bottom,_rgba(0,_0,_0,_0.7)_20%,_rgba(255,_255,_255,_0)_)])`
|
|
70
79
|
],
|
|
71
80
|
|
|
72
|
-
[/^q-uploader__file--img:before$/, ([, c], { theme }) => `content-[none]`],
|
|
73
|
-
|
|
74
81
|
[
|
|
75
82
|
/^q-uploader__file-header$/,
|
|
76
83
|
([, c], { theme }) =>
|
|
84
|
+
theme.quasar?.components?.['q-uploader__file-header'] ??
|
|
77
85
|
`relative px-[8px] py-[4px] [border-top-left-radius:inherit] [border-top-right-radius:inherit]`
|
|
78
86
|
],
|
|
79
87
|
|
|
@@ -83,23 +91,29 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
83
91
|
|
|
84
92
|
[
|
|
85
93
|
/^q-uploader__title$/,
|
|
86
|
-
([, c], { theme }) =>
|
|
94
|
+
([, c], { theme }) =>
|
|
95
|
+
theme.quasar?.components?.['q-uploader__title'] ??
|
|
96
|
+
`text-[14px] font-bold leading-[1.285714]`
|
|
87
97
|
],
|
|
88
98
|
|
|
89
99
|
[
|
|
90
100
|
/^q-uploader__subtitle$/,
|
|
91
|
-
([, c], { theme }) =>
|
|
101
|
+
([, c], { theme }) =>
|
|
102
|
+
theme.quasar?.components?.['q-uploader__subtitle'] ??
|
|
103
|
+
`text-[12px] leading-normal`
|
|
92
104
|
],
|
|
93
105
|
|
|
94
106
|
[
|
|
95
107
|
/^q-uploader--disable$/,
|
|
96
108
|
([, c], { theme }) =>
|
|
109
|
+
theme.quasar?.components?.['q-uploader--disable'] ??
|
|
97
110
|
`[&_.q-uploader\\_\\_header]:(pointer-events-none) [&_.q-uploader\\_\\_list]:(pointer-events-none)`
|
|
98
111
|
],
|
|
99
112
|
|
|
100
113
|
[
|
|
101
114
|
/^q-uploader--dark$/,
|
|
102
115
|
([, c], { theme }) =>
|
|
116
|
+
theme.quasar?.components?.['q-uploader--dark'] ??
|
|
103
117
|
`border-[rgba(255,_255,_255,_0.28)] [box-shadow:0_1px_5px_rgba(255,_255,_255,_0.2),_0_2px_2px_rgba(255,_255,_255,_0.14),_0_3px_1px_-2px_rgba(255,_255,_255,_0.12)] [&_.q-uploader\\_\\_file]:(border-[rgba(255,_255,_255,_0.28)]) [&_.q-uploader\\_\\_dnd]:(bg-[rgba(255,_255,_255,_0.3)]) [&_.q-uploader\\_\\_overlay]:(bg-[rgba(255,_255,_255,_0.3)]) [&_.q-uploader\\_\\_overlay]:(text-[#fff])`
|
|
104
118
|
]
|
|
105
119
|
]
|
|
@@ -5,12 +5,14 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
5
5
|
[
|
|
6
6
|
/^q-video$/,
|
|
7
7
|
([, c], { theme }) =>
|
|
8
|
+
theme.quasar?.components?.['q-video'] ??
|
|
8
9
|
`relative overflow-hidden [border-radius:inherit] [&_iframe]:(w-full h-full) [&_object]:(w-full h-full) [&_embed]:(w-full h-full)`
|
|
9
10
|
],
|
|
10
11
|
|
|
11
12
|
[
|
|
12
13
|
/^q-video--responsive$/,
|
|
13
14
|
([, c], { theme }) =>
|
|
15
|
+
theme.quasar?.components?.['q-video--responsive'] ??
|
|
14
16
|
`h-[0] [&_iframe]:(absolute top-0 left-0) [&_object]:(absolute top-0 left-0) [&_embed]:(absolute top-0 left-0)`
|
|
15
17
|
]
|
|
16
18
|
]
|
|
@@ -7,18 +7,21 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
7
7
|
[
|
|
8
8
|
/^q-virtual-scroll__content$/,
|
|
9
9
|
([, c], { theme }) =>
|
|
10
|
+
theme.quasar?.components?.['q-virtual-scroll__content'] ??
|
|
10
11
|
`outline-[none] [&_>_*]:([overflow-anchor:none]) [&_>_[data-q-vs-anchor]]:([overflow-anchor:auto])`
|
|
11
12
|
],
|
|
12
13
|
|
|
13
14
|
[
|
|
14
15
|
/^q-virtual-scroll__padding$/,
|
|
15
16
|
([, c], { theme }) =>
|
|
17
|
+
theme.quasar?.components?.['q-virtual-scroll__padding'] ??
|
|
16
18
|
`bg-[linear-gradient(_rgba(255,_255,_255,_0),_rgba(255,_255,_255,_0)_20%,_rgba(128,_128,_128,_0.03)_20%,_rgba(128,_128,_128,_0.08)_50%,_rgba(128,_128,_128,_0.03)_80%,_rgba(255,_255,_255,_0)_80%,_rgba(255,_255,_255,_0)_)] [background-size:var(--q-virtual-scroll-item-width,_100%)_var(--q-virtual-scroll-item-height,_50px)]`
|
|
17
19
|
],
|
|
18
20
|
|
|
19
21
|
[
|
|
20
22
|
/^q-virtual-scroll--horizontal$/,
|
|
21
23
|
([, c], { theme }) =>
|
|
24
|
+
theme.quasar?.components?.['q-virtual-scroll--horizontal'] ??
|
|
22
25
|
`flex flex-row flex-nowrap items-stretch [&_.q-virtual-scroll\\_\\_content]:(flex flex-row flex-nowrap) [&_.q-virtual-scroll\\_\\_padding]:(flex-[0_0_auto]) [&_.q-virtual-scroll\\_\\_content]:(flex-[0_0_auto]) [&_.q-virtual-scroll\\_\\_content_>_*]:(flex-[0_0_auto]) [&_.q-virtual-scroll\\_\\_padding]:(bg-[linear-gradient(_to_left,_rgba(255,_255,_255,_0),_rgba(255,_255,_255,_0)_20%,_rgba(128,_128,_128,_0.03)_20%,_rgba(128,_128,_128,_0.08)_50%,_rgba(128,_128,_128,_0.03)_80%,_rgba(255,_255,_255,_0)_80%,_rgba(255,_255,_255,_0)_)] [background-size:var(--q-virtual-scroll-item-width,_50px)_var(--q-virtual-scroll-item-height,_100%)])`
|
|
23
26
|
]
|
|
24
27
|
]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Rule } from '@unocss/core'
|
|
1
|
+
import type { Rule, UserShortcuts } from '@unocss/core'
|
|
2
2
|
import type { QuasarTheme } from '../theme.js'
|
|
3
3
|
|
|
4
4
|
type Enumerate<
|
|
@@ -13,67 +13,67 @@ type IntRange<F extends number, T extends number> = Exclude<
|
|
|
13
13
|
Enumerate<F>
|
|
14
14
|
>
|
|
15
15
|
|
|
16
|
-
const shadows = (mode: 'light' | 'dark'): Rule<QuasarTheme>[] => [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
// const shadows = (mode: 'light' | 'dark'): Rule<QuasarTheme>[] => [
|
|
17
|
+
// ...Array.from({ length: 24 }, (_, i) => i + 1).reduce((acc, z) => {
|
|
18
|
+
// acc.push([
|
|
19
|
+
// new RegExp(`shadow-${z}`),
|
|
20
|
+
// ([, c], { symbols, theme }) => ({
|
|
21
|
+
// [symbols.parent]: mode === 'dark' ? 'body.body--dark' : undefined,
|
|
22
|
+
// 'box-shadow': theme['shadows'][z as IntRange<0, 24>]
|
|
23
|
+
// })
|
|
24
|
+
// ])
|
|
25
|
+
// acc.push([
|
|
26
|
+
// new RegExp(`shadow-up-${z}`),
|
|
27
|
+
// ([, c], { symbols, theme }) => ({
|
|
28
|
+
// [symbols.parent]: mode === 'dark' ? 'body.body--dark' : undefined,
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
]
|
|
30
|
+
// 'box-shadow': theme['shadows']['up'][z as IntRange<0, 24>]
|
|
31
|
+
// })
|
|
32
|
+
// ])
|
|
33
|
+
// return acc
|
|
34
|
+
// }, [] as Rule<QuasarTheme>[]),
|
|
35
|
+
// [
|
|
36
|
+
// /^inset-shadow$/,
|
|
37
|
+
// function* ([, color], { symbols, theme }) {
|
|
38
|
+
// yield {
|
|
39
|
+
// [symbols.parent]: mode === 'dark' ? 'body.body--dark' : undefined,
|
|
40
|
+
// 'box-shadow': theme['insetShadow']
|
|
41
|
+
// }
|
|
42
|
+
// }
|
|
43
|
+
// ] as Rule<QuasarTheme>,
|
|
44
|
+
// [
|
|
45
|
+
// /^inset-shadow-down$/,
|
|
46
|
+
// function* ([, color], { symbols, theme }) {
|
|
47
|
+
// yield {
|
|
48
|
+
// [symbols.parent]: mode === 'dark' ? 'body.body--dark' : undefined,
|
|
49
|
+
// 'box-shadow': theme['insetShadowDown']
|
|
50
|
+
// }
|
|
51
|
+
// }
|
|
52
|
+
// ] as Rule<QuasarTheme>
|
|
53
|
+
// ]
|
|
54
54
|
|
|
55
55
|
const rules: Rule<QuasarTheme>[] = [
|
|
56
|
-
[
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
] as Rule<QuasarTheme>,
|
|
64
|
-
...shadows('light'),
|
|
65
|
-
...shadows('dark'),
|
|
66
|
-
...['no-shadow', 'shadow-0'].map(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
),
|
|
56
|
+
// [
|
|
57
|
+
// /^shadow-transition$/,
|
|
58
|
+
// function* ([, color], { theme }) {
|
|
59
|
+
// yield {
|
|
60
|
+
// transition: `${theme['shadowTransition']} !important`
|
|
61
|
+
// }
|
|
62
|
+
// }
|
|
63
|
+
// ] as Rule<QuasarTheme>,
|
|
64
|
+
// ...shadows('light'),
|
|
65
|
+
// ...shadows('dark'),
|
|
66
|
+
// ...['no-shadow', 'shadow-0'].map(
|
|
67
|
+
// (c) =>
|
|
68
|
+
// [
|
|
69
|
+
// new RegExp(`${c}`),
|
|
70
|
+
// function* ([, color], { theme }) {
|
|
71
|
+
// yield {
|
|
72
|
+
// 'box-shadow': `none !important`
|
|
73
|
+
// }
|
|
74
|
+
// }
|
|
75
|
+
// ] as Rule<QuasarTheme>
|
|
76
|
+
// ),
|
|
77
77
|
...(['z-marginals', 'z-notify', 'z-fullscreen', 'z-inherit'] as const).map(
|
|
78
78
|
(c) =>
|
|
79
79
|
[
|
|
@@ -84,7 +84,8 @@ const rules: Rule<QuasarTheme>[] = [
|
|
|
84
84
|
| 'notify'
|
|
85
85
|
| 'fullscreen'
|
|
86
86
|
yield {
|
|
87
|
-
'z-index':
|
|
87
|
+
'z-index':
|
|
88
|
+
c === 'z-inherit' ? 'inherit' : theme.quasar?.['z'][selector]
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
91
|
] as Rule<QuasarTheme>
|
|
@@ -16,39 +16,20 @@ const colGutter = {
|
|
|
16
16
|
const sizes = ['sm', 'md', 'lg', 'xl']
|
|
17
17
|
|
|
18
18
|
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
19
|
+
[/^row$/, ([, c], { theme }) => `flex flex-row flex-wrap`],
|
|
20
|
+
[/^column$/, ([, c], { theme }) => `flex flex-col flex-wrap`],
|
|
19
21
|
[
|
|
20
|
-
/^
|
|
21
|
-
([,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
.join(' ')
|
|
32
|
-
)
|
|
33
|
-
.join(' ')}
|
|
34
|
-
`
|
|
35
|
-
],
|
|
36
|
-
[
|
|
37
|
-
/^column$/,
|
|
38
|
-
([, c], { theme }) => `flex flex-col flex-wrap
|
|
39
|
-
[&_>_.col]:(grow)
|
|
40
|
-
${sizes
|
|
41
|
-
.map((size) => `[&_>_.col-${size}]:(${size}:basis-auto ${size}:grow)`)
|
|
42
|
-
.join(' ')}
|
|
43
|
-
${grid.map((nr) => `[&_>_.col-${nr}]:(basis-${nr}/12)`).join(' ')}
|
|
44
|
-
${sizes
|
|
45
|
-
.map((size) =>
|
|
46
|
-
grid
|
|
47
|
-
.map((nr) => `[&_>_.col-${size}-${nr}]:(${size}:basis-${nr}/12)`)
|
|
48
|
-
.join(' ')
|
|
49
|
-
)
|
|
50
|
-
.join(' ')}
|
|
51
|
-
`
|
|
22
|
+
/^col(?:-)?(none|xs|sm|md|lg|xl)?(?:-)?([2-9]|1[0-2]?)?$/,
|
|
23
|
+
([, size, nr], { theme }) => {
|
|
24
|
+
if (size && nr) {
|
|
25
|
+
return `${size}:basis-${nr}/12)`
|
|
26
|
+
} else if (nr) {
|
|
27
|
+
return `basis-${nr}/12`
|
|
28
|
+
} else if (size) {
|
|
29
|
+
return `${size}:basis-auto ${size}:grow`
|
|
30
|
+
}
|
|
31
|
+
return `grow`
|
|
32
|
+
}
|
|
52
33
|
],
|
|
53
34
|
[
|
|
54
35
|
/^q-col-gutter-(none|xs|sm|md|lg|xl)$/,
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
definePreset,
|
|
4
4
|
type Preflight,
|
|
5
|
+
presetIcons,
|
|
5
6
|
type Rule,
|
|
6
7
|
transformerVariantGroup,
|
|
7
8
|
type UserShortcuts
|
|
8
9
|
} from 'unocss'
|
|
9
10
|
import presetUno from '@unocss/preset-uno'
|
|
10
|
-
import
|
|
11
|
+
import { defaultTheme, type QuasarTheme } from './theme.js'
|
|
11
12
|
import { animatedUno } from 'animated-unocss'
|
|
12
13
|
|
|
13
14
|
import { shortcuts as QIconShortcuts } from './components/QIcon.unocss.js'
|
|
@@ -166,16 +167,20 @@ import {
|
|
|
166
167
|
import { shortcuts as QHeaderShortcuts } from './components/QHeader.unocss.js'
|
|
167
168
|
import { shortcuts as QFooterShortcuts } from './components/QFooter.unocss.js'
|
|
168
169
|
import { shortcuts as QDrawerShortcuts } from './components/QDrawer.unocss.js'
|
|
169
|
-
import { type QuasarPlugins } from 'quasar'
|
|
170
|
+
import { type QuasarIconSet, type QuasarPlugins } from 'quasar'
|
|
170
171
|
|
|
171
172
|
export interface QuasarPresetOptions {
|
|
172
173
|
plugins?: (keyof QuasarPlugins)[]
|
|
173
|
-
|
|
174
|
-
shadowColor?: string
|
|
175
|
-
darkShadowColor?: string
|
|
176
|
-
}
|
|
174
|
+
iconSet?: QuasarIconSet
|
|
177
175
|
}
|
|
178
176
|
|
|
177
|
+
const extractKeys = (obj: Record<string, any>) =>
|
|
178
|
+
Object.values(obj).reduce((acc, cur) => {
|
|
179
|
+
if (typeof cur === 'string') acc.push(cur)
|
|
180
|
+
else if (typeof cur === 'object') acc = acc.concat(extractKeys(cur))
|
|
181
|
+
return acc
|
|
182
|
+
}, [] as string[])
|
|
183
|
+
|
|
179
184
|
const toKebabCase = (str: string) =>
|
|
180
185
|
str
|
|
181
186
|
.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)
|
|
@@ -1420,7 +1425,13 @@ const qClasses = [
|
|
|
1420
1425
|
'q-notification--bottom-right-leave-active'
|
|
1421
1426
|
]
|
|
1422
1427
|
|
|
1423
|
-
const generateSafelist = (
|
|
1428
|
+
const generateSafelist = ({
|
|
1429
|
+
plugins,
|
|
1430
|
+
iconSet
|
|
1431
|
+
}: {
|
|
1432
|
+
plugins?: (keyof QuasarPlugins)[]
|
|
1433
|
+
iconSet?: QuasarIconSet
|
|
1434
|
+
}) => {
|
|
1424
1435
|
let safelist = baseSafelist
|
|
1425
1436
|
if (plugins) {
|
|
1426
1437
|
for (const plugin of plugins) {
|
|
@@ -1428,14 +1439,18 @@ const generateSafelist = (plugins?: (keyof QuasarPlugins)[]) => {
|
|
|
1428
1439
|
if (pluginSafelist) safelist = safelist.concat(pluginSafelist)
|
|
1429
1440
|
}
|
|
1430
1441
|
}
|
|
1442
|
+
if (iconSet) {
|
|
1443
|
+
const iconSetSafelist = extractKeys(iconSet)
|
|
1444
|
+
if (iconSetSafelist) safelist = safelist.concat(iconSetSafelist)
|
|
1445
|
+
}
|
|
1431
1446
|
return safelist
|
|
1432
1447
|
}
|
|
1433
1448
|
|
|
1434
1449
|
export default definePreset((options: QuasarPresetOptions = {}) => {
|
|
1435
1450
|
return {
|
|
1436
1451
|
name: 'quasar',
|
|
1437
|
-
presets: [presetUno(), animatedUno()],
|
|
1438
|
-
safelist: generateSafelist(options
|
|
1452
|
+
presets: [presetUno(), animatedUno(), presetIcons({})],
|
|
1453
|
+
safelist: generateSafelist(options),
|
|
1439
1454
|
preflights: (
|
|
1440
1455
|
[
|
|
1441
1456
|
{
|
|
@@ -1820,7 +1835,7 @@ export default definePreset((options: QuasarPresetOptions = {}) => {
|
|
|
1820
1835
|
QFooterShortcuts,
|
|
1821
1836
|
QDrawerShortcuts
|
|
1822
1837
|
),
|
|
1823
|
-
theme:
|
|
1838
|
+
theme: defaultTheme,
|
|
1824
1839
|
variants: [
|
|
1825
1840
|
// ...
|
|
1826
1841
|
],
|