unocss-preset-quasar 0.1.0 → 0.1.1
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/LICENCE +1 -1
- package/dist/core/flex.unocss.js +3 -3
- package/dist/index.js +18 -16
- package/dist/styles/md2/components/QBtnToggle.unocss.js +33 -1
- package/dist/styles/md2/index.js +1 -2
- package/dist/styles/md3/components/QBtnToggle.unocss.js +49 -1
- package/dist/styles/md3/components/QCheckbox.unocss.js +2 -20
- package/dist/styles/md3/index.js +6 -3
- package/dist/types/styles/md3/index.d.ts +2 -1
- package/package.json +1 -1
- package/src/core/flex.unocss.ts +4 -4
- package/src/index.ts +18 -17
- package/src/styles/md2/components/QBtnToggle.unocss.ts +48 -1
- package/src/styles/md2/index.ts +0 -2
- package/src/styles/md3/components/QBtnToggle.unocss.ts +64 -1
- package/src/styles/md3/components/QCheckbox.unocss.ts +2 -20
- package/src/styles/md3/index.ts +7 -3
- package/dist/styles/md2/components/QBtnGroup.unocss.js +0 -35
- package/dist/styles/md3/components/QBtnGroup.unocss.js +0 -35
- package/dist/types/styles/md2/components/QBtnGroup.unocss.d.ts +0 -4
- package/dist/types/styles/md3/components/QBtnGroup.unocss.d.ts +0 -4
- package/src/styles/md2/components/QBtnGroup.unocss.ts +0 -53
- package/src/styles/md3/components/QBtnGroup.unocss.ts +0 -53
package/LICENCE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright
|
|
1
|
+
Copyright 2025-present Stefan van Herwijnen
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
4
|
|
package/dist/core/flex.unocss.js
CHANGED
|
@@ -52,17 +52,17 @@ const shortcuts = [
|
|
|
52
52
|
/^q-gutter-(none|xs|sm|md|lg|xl)$/,
|
|
53
53
|
([, size], { theme }) => `ml--${colGutter[size]}
|
|
54
54
|
mt--${colGutter[size]}
|
|
55
|
-
[&_>_*]:(
|
|
55
|
+
[&_>_*]:(ml-${colGutter[size]} mt-${colGutter[size]})`
|
|
56
56
|
],
|
|
57
57
|
[
|
|
58
58
|
/^q-gutter-x-(none|xs|sm|md|lg|xl)$/,
|
|
59
59
|
([, size], { theme }) => `ml--${colGutter[size]}
|
|
60
|
-
[&_>_*]:(
|
|
60
|
+
[&_>_*]:(ml-${colGutter[size]})`
|
|
61
61
|
],
|
|
62
62
|
[
|
|
63
63
|
/^q-gutter-y-(none|xs|sm|md|lg|xl)$/,
|
|
64
64
|
([, size], { theme }) => `mt--${colGutter[size]}
|
|
65
|
-
[&_>_*]:(
|
|
65
|
+
[&_>_*]:(mt-${colGutter[size]})`
|
|
66
66
|
],
|
|
67
67
|
[/^wrap$/, ([, size], { theme }) => `flex-wrap`],
|
|
68
68
|
[/^no-wrap$/, ([, size], { theme }) => `flex-nowrap`],
|
package/dist/index.js
CHANGED
|
@@ -54,6 +54,20 @@ const QPageStickySafelist = [
|
|
|
54
54
|
'vertical-bottom'
|
|
55
55
|
];
|
|
56
56
|
const QMenuSafelist = ['q-menu', 'q-menu--square', 'q-menu--dark'];
|
|
57
|
+
const QTabSafelist = [
|
|
58
|
+
'q-tab',
|
|
59
|
+
'q-tab--full',
|
|
60
|
+
'q-tab--no-caps',
|
|
61
|
+
'q-tab__content',
|
|
62
|
+
'q-tab__content--inline',
|
|
63
|
+
'q-tab__icon',
|
|
64
|
+
'q-tab__label',
|
|
65
|
+
'q-tab__alert',
|
|
66
|
+
'q-tab__alert-icon',
|
|
67
|
+
'q-tab__indicator',
|
|
68
|
+
'q-tab--active',
|
|
69
|
+
'q-tab--inactive'
|
|
70
|
+
];
|
|
57
71
|
const componentsSafelistMap = {
|
|
58
72
|
QIcon: ['q-icon'],
|
|
59
73
|
QTabPanel: ['q-panel', 'q-panel-parent'],
|
|
@@ -108,7 +122,8 @@ const componentsSafelistMap = {
|
|
|
108
122
|
'q-btn-dropdown__arrow',
|
|
109
123
|
'q-btn-dropdown--current'
|
|
110
124
|
],
|
|
111
|
-
|
|
125
|
+
QBtnToggle: [
|
|
126
|
+
'q-btn-toggle',
|
|
112
127
|
'q-btn-group',
|
|
113
128
|
'q-btn-group--push',
|
|
114
129
|
'q-btn-group--push',
|
|
@@ -122,7 +137,6 @@ const componentsSafelistMap = {
|
|
|
122
137
|
'q-btn-group--spread',
|
|
123
138
|
'q-btn-group--spread'
|
|
124
139
|
],
|
|
125
|
-
QBtnToggle: ['q-btn-toggle'],
|
|
126
140
|
QCard: [
|
|
127
141
|
'q-card',
|
|
128
142
|
'q-card--bordered',
|
|
@@ -727,20 +741,8 @@ const componentsSafelistMap = {
|
|
|
727
741
|
'q-table--vertical-separator',
|
|
728
742
|
'q-table--dense'
|
|
729
743
|
],
|
|
730
|
-
QTab:
|
|
731
|
-
|
|
732
|
-
'q-tab--full',
|
|
733
|
-
'q-tab--no-caps',
|
|
734
|
-
'q-tab__content',
|
|
735
|
-
'q-tab__content--inline',
|
|
736
|
-
'q-tab__icon',
|
|
737
|
-
'q-tab__label',
|
|
738
|
-
'q-tab__alert',
|
|
739
|
-
'q-tab__alert-icon',
|
|
740
|
-
'q-tab__indicator',
|
|
741
|
-
'q-tab--active',
|
|
742
|
-
'q-tab--inactive'
|
|
743
|
-
],
|
|
744
|
+
QTab: QTabSafelist,
|
|
745
|
+
QRouteTab: QTabSafelist,
|
|
744
746
|
QTabs: [
|
|
745
747
|
'q-tabs',
|
|
746
748
|
'q-tabs--scrollable',
|
|
@@ -1,4 +1,36 @@
|
|
|
1
1
|
const shortcuts = [
|
|
2
|
-
[/^q-btn-toggle$/, ([, c], { theme }) => `relative`]
|
|
2
|
+
[/^q-btn-toggle$/, ([, c], { theme }) => `relative`],
|
|
3
|
+
[
|
|
4
|
+
/^q-btn-group$/,
|
|
5
|
+
([, c], { theme }) => theme.quasar?.components?.['q-btn-group'] ??
|
|
6
|
+
`rounded-[3px] [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)] align-middle [&_>_.q-btn-item]:([border-radius:inherit] self-stretch) [&_>_.q-btn-item:before]:([box-shadow:none]) [&_>_.q-btn-item_.q-badge--floating]:(right-0) [&_>_.q-btn-group]:([box-shadow:none]) [&_>_.q-btn-group:first-child_>_.q-btn:first-child]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_.q-btn-group:last-child_>_.q-btn:last-child]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_.q-btn-group:not(:first-child)_>_.q-btn:first-child:before]:([border-left:0]) [&_>_.q-btn-group:not(:last-child)_>_.q-btn:last-child:before]:([border-right:0]) [&_>_.q-btn-item:not(:last-child)]:(rounded-tr-none rounded-br-none) [&_>_.q-btn-item:not(:first-child)]:(rounded-tl-none rounded-bl-none) [&_>_.q-btn-item.q-btn--standard:before]:(z--1)`
|
|
7
|
+
],
|
|
8
|
+
[
|
|
9
|
+
/^q-btn-group--push$/,
|
|
10
|
+
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--push'] ??
|
|
11
|
+
`rounded-[7px] [&_>_.q-btn--push.q-btn--actionable]:(transform-none) [&_>_.q-btn--push.q-btn--actionable_.q-btn\\_\\_content]:([transition:margin-top_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1),_margin-bottom_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&_>_.q-btn--push.q-btn--actionable:active_.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])
|
|
12
|
+
[&__>_.q-btn--push.q-btn--actionable.q-btn--active__.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])`
|
|
13
|
+
],
|
|
14
|
+
[/^q-btn-group--rounded$/, ([, c], { theme }) => `rounded-[28px]`],
|
|
15
|
+
[/^q-btn-group--square$/, ([, c], { theme }) => `rounded-none`],
|
|
16
|
+
[/^q-btn-group--flat$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
17
|
+
[
|
|
18
|
+
/^q-btn-group--outline$/,
|
|
19
|
+
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--outline'] ??
|
|
20
|
+
`[box-shadow:none] [&_>_.q-separator]:(hidden) [&_>_.q-btn-item_+_.q-btn-item:before]:([border-left:0]) [&_>_.q-btn-item:not(:last-child):before]:([border-right:0])`
|
|
21
|
+
],
|
|
22
|
+
[/^q-btn-group--unelevated$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
23
|
+
[/^q-btn-group--stretch$/, ([, c], { theme }) => `self-stretch rounded-none`],
|
|
24
|
+
[
|
|
25
|
+
/^q-btn-group--glossy$/,
|
|
26
|
+
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--glossy'] ??
|
|
27
|
+
`[&_>_.q-btn-item]:(!bg-[linear-gradient(_to_bottom,_rgba(255,_255,_255,_0.3),_rgba(255,_255,_255,_0)_50%,_rgba(0,_0,_0,_0.12)_51%,_rgba(0,_0,_0,_0.04)_)])`
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
/^q-btn-group--spread$/,
|
|
31
|
+
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--spread'] ??
|
|
32
|
+
`[&_>_.q-btn-group]:(!flex) [&_>_.q-btn-item]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])
|
|
33
|
+
[&__>_.q-btn-group_>_.q-btn-item:not(.q-btn-dropdown\\_\\_arrow-container)]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])`
|
|
34
|
+
]
|
|
3
35
|
];
|
|
4
36
|
export { shortcuts };
|
package/dist/styles/md2/index.js
CHANGED
|
@@ -8,7 +8,6 @@ import { shortcuts as QBannerShortcuts } from './components/QBanner.unocss.js';
|
|
|
8
8
|
import { shortcuts as QBarShortcuts } from './components/QBar.unocss.js';
|
|
9
9
|
import { preflights as QBreadcrumbsPreflights, shortcuts as QBreadcrumbsShortcuts } from './components/QBreadcrumbs.unocss.js';
|
|
10
10
|
import { shortcuts as QBtnDropdownShortcuts } from './components/QBtnDropdown.unocss.js';
|
|
11
|
-
import { shortcuts as QBtnGroupShortcuts } from './components/QBtnGroup.unocss.js';
|
|
12
11
|
import { shortcuts as QBtnToggleShortcuts } from './components/QBtnToggle.unocss.js';
|
|
13
12
|
import { shortcuts as QCardShortcuts } from './components/QCard.unocss.js';
|
|
14
13
|
import { shortcuts as QCarouselShortcuts } from './components/QCarousel.unocss.js';
|
|
@@ -79,7 +78,7 @@ const style = {
|
|
|
79
78
|
variants: [],
|
|
80
79
|
preflights: [].concat(QBreadcrumbsPreflights, QCheckboxPreflights, QChipPreflights, QCircularProgressPreflights, QDialogPreflights, QFieldPreflights, QLayoutPreflights, QLinearProgressPreflights, QRadioPreflights, QSelectPreflights, QSpinnerPreflights, QSkeletonPreflights, QTablePreflights, QTogglePreflights, QTreePreflights),
|
|
81
80
|
rules: [].concat(),
|
|
82
|
-
shortcuts: [].concat(QIconShortcuts, QAjaxBarShortcuts, QAvatarShortcuts, QBadgeShortcuts, QBreadcrumbsShortcuts, QBannerShortcuts, QBarShortcuts, QBtnShortcuts, QBtnDropdownShortcuts,
|
|
81
|
+
shortcuts: [].concat(QIconShortcuts, QAjaxBarShortcuts, QAvatarShortcuts, QBadgeShortcuts, QBreadcrumbsShortcuts, QBannerShortcuts, QBarShortcuts, QBtnShortcuts, QBtnDropdownShortcuts, QBtnToggleShortcuts, QCardShortcuts, QCarouselShortcuts, QChatMessageShortcuts, QCheckboxShortcuts, QChipShortcuts, QCircularProgressShortcuts, QColorPickerShortcuts, QDateShortcuts, QDialogShortcuts, QEditorShortcuts, QExpansionItemShortcuts, QFabShortcuts, QFieldShortcuts, QFileShortcuts, QFormShortcuts, QImgShortcuts, QInnerLoadingShortcuts, QInputShortcuts, QIntersectionShortcuts, QItemShortcuts, QKnobShortcuts, QLayoutShortcuts, QLinearProgressShortcuts, QMenuShortcuts, QOptionGroupShortcuts, QPageShortcuts, QPageStickyShortcuts, QPaginationShortcuts, QParallaxShortcuts, QPopupEditShortcuts, QPullToRefreshShortcuts, QRadioShortcuts, QRatingShortcuts, QResponsiveShortcuts, QScrollareaShortcuts, QSelectShortcuts, QSeparatorShortcuts, QSkeletonShortcuts, QSlideItemShortcuts, QSliderShortcuts, QSpaceShortcuts, QSpinnerShortcuts, QSplitterShortcuts, QStepperShortcuts, QTabPanelShortcuts, QTableShortcuts, QTabsShortcuts, QTimeShortcuts, QTimelineShortcuts, QToggleShortcuts, QToolbarShortcuts, QTooltipShortcuts, QTreeShortcuts, QUploaderShortcuts, QVideoShortcuts, QVirtualScrollShortcuts, PanelShortcuts, QMorphShortcuts, QRippleShortcuts, QBottomSheetShortcuts, QDialogPluginShortcuts, QLoadingShortcuts, QNotifyShortcuts, QHeaderShortcuts, QFooterShortcuts, QDrawerShortcuts)
|
|
83
82
|
};
|
|
84
83
|
export const setDefaultProps = ({ QBtn }) => { };
|
|
85
84
|
export default style;
|
|
@@ -1,4 +1,52 @@
|
|
|
1
1
|
const shortcuts = [
|
|
2
|
-
[/^q-btn-toggle$/, ([, c], { theme }) => `relative`]
|
|
2
|
+
[/^q-btn-toggle$/, ([, c], { theme }) => `relative`],
|
|
3
|
+
[
|
|
4
|
+
/^q-btn-group$/,
|
|
5
|
+
([, c], { theme }) => theme.quasar?.components?.['q-btn-group'] ??
|
|
6
|
+
`!flex-initial
|
|
7
|
+
rounded-[3px]
|
|
8
|
+
[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)]
|
|
9
|
+
align-middle
|
|
10
|
+
[&_>_.q-btn-item]:([border-radius:inherit] self-stretch)
|
|
11
|
+
[&_>_.q-btn-item:before]:([box-shadow:none])
|
|
12
|
+
[&_>_.q-btn-item_.q-badge--floating]:(right-0)
|
|
13
|
+
[&_>_.q-btn-group]:([box-shadow:none])
|
|
14
|
+
[&_>_.q-btn-group:first-child_>_.q-btn]:(border-rd-0 bg-light-outline dark:bg-dark-outline)
|
|
15
|
+
[&_>_.q-btn-group:first-child_>_.q-btn--active]:(bg-light-seondary-container dark:bg-dark-secondary-container)
|
|
16
|
+
[&_>_.q-btn-group:first-child_>_.q-btn:first-child]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit])
|
|
17
|
+
[&_>_.q-btn-group:last-child_>_.q-btn:last-child]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit])
|
|
18
|
+
[&_>_.q-btn-group:not(:first-child)_>_.q-btn:first-child:before]:([border-left:0])
|
|
19
|
+
[&_>_.q-btn-group:not(:last-child)_>_.q-btn:last-child:before]:([border-right:0])
|
|
20
|
+
[&_>_.q-btn-item:not(:last-child)]:(rounded-tr-none rounded-br-none)
|
|
21
|
+
[&_>_.q-btn-item:not(:first-child)]:(rounded-tl-none rounded-bl-none)
|
|
22
|
+
[&_>_.q-btn-item.q-btn--standard:before]:(z--1)`
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
/^q-btn-group--push$/,
|
|
26
|
+
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--push'] ??
|
|
27
|
+
`rounded-[7px] [&_>_.q-btn--push.q-btn--actionable]:(transform-none) [&_>_.q-btn--push.q-btn--actionable_.q-btn\\_\\_content]:([transition:margin-top_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1),_margin-bottom_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&_>_.q-btn--push.q-btn--actionable:active_.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])
|
|
28
|
+
[&__>_.q-btn--push.q-btn--actionable.q-btn--active__.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])`
|
|
29
|
+
],
|
|
30
|
+
[/^q-btn-group--rounded$/, ([, c], { theme }) => `rounded-[28px]`],
|
|
31
|
+
[/^q-btn-group--square$/, ([, c], { theme }) => `rounded-none`],
|
|
32
|
+
[/^q-btn-group--flat$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
33
|
+
[
|
|
34
|
+
/^q-btn-group--outline$/,
|
|
35
|
+
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--outline'] ??
|
|
36
|
+
`[box-shadow:none] [&_>_.q-separator]:(hidden) [&_>_.q-btn-item_+_.q-btn-item:before]:([border-left:0]) [&_>_.q-btn-item:not(:last-child):before]:([border-right:0])`
|
|
37
|
+
],
|
|
38
|
+
[/^q-btn-group--unelevated$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
39
|
+
[/^q-btn-group--stretch$/, ([, c], { theme }) => `self-stretch rounded-none`],
|
|
40
|
+
[
|
|
41
|
+
/^q-btn-group--glossy$/,
|
|
42
|
+
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--glossy'] ??
|
|
43
|
+
`[&_>_.q-btn-item]:(!bg-[linear-gradient(_to_bottom,_rgba(255,_255,_255,_0.3),_rgba(255,_255,_255,_0)_50%,_rgba(0,_0,_0,_0.12)_51%,_rgba(0,_0,_0,_0.04)_)])`
|
|
44
|
+
],
|
|
45
|
+
[
|
|
46
|
+
/^q-btn-group--spread$/,
|
|
47
|
+
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--spread'] ??
|
|
48
|
+
`[&_>_.q-btn-group]:(!flex) [&_>_.q-btn-item]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])
|
|
49
|
+
[&__>_.q-btn-group_>_.q-btn-item:not(.q-btn-dropdown\\_\\_arrow-container)]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])`
|
|
50
|
+
]
|
|
3
51
|
];
|
|
4
52
|
export { shortcuts };
|
|
@@ -1,25 +1,7 @@
|
|
|
1
1
|
const preflights = [
|
|
2
2
|
{
|
|
3
3
|
getCSS: ({ theme }) => `
|
|
4
|
-
|
|
5
|
-
content: "";
|
|
6
|
-
position: absolute;
|
|
7
|
-
top: 0;
|
|
8
|
-
right: 0;
|
|
9
|
-
bottom: 0;
|
|
10
|
-
left: 0;
|
|
11
|
-
border-radius: 50%;
|
|
12
|
-
background: currentColor;
|
|
13
|
-
opacity: 0.12;
|
|
14
|
-
transform: scale3d(0, 0, 1);
|
|
15
|
-
transition: transform 0.22s cubic-bezier(0, 0, 0.2, 1);
|
|
16
|
-
}
|
|
17
|
-
body.desktop .q-checkbox:not(.disabled):focus .q-checkbox__inner:before, body.desktop .q-checkbox:not(.disabled):hover .q-checkbox__inner:before {
|
|
18
|
-
transform: scale3d(1, 1, 1);
|
|
19
|
-
}
|
|
20
|
-
body.desktop .q-checkbox--dense:not(.disabled):focus .q-checkbox__inner:before, body.desktop .q-checkbox--dense:not(.disabled):hover .q-checkbox__inner:before {
|
|
21
|
-
transform: scale3d(1.4, 1.4, 1);
|
|
22
|
-
}
|
|
4
|
+
|
|
23
5
|
`
|
|
24
6
|
}
|
|
25
7
|
];
|
|
@@ -28,7 +10,7 @@ const shortcuts = [
|
|
|
28
10
|
/^q-checkbox$/,
|
|
29
11
|
([, c], { theme }) => theme.quasar?.components?.['q-checkbox'] ??
|
|
30
12
|
`align-middle [&.disabled]:(!opacity-75)
|
|
31
|
-
[&:not(.disabled)
|
|
13
|
+
[&:not(.disabled):hover_.q-checkbox\\_\\_inner:before]:(content-[''] absolute top-[12.5%] left-[12.5%] bottom-0 right-0 border-rd-50 bg-current op-12 scale-x-120 scale-y-120 scale-z-100)
|
|
32
14
|
[&:not(.disabled):focus_.q-checkbox\\_\\_inner:before]:(scale-z-100)`
|
|
33
15
|
],
|
|
34
16
|
[/^q-checkbox__native$/, ([, c], { theme }) => `w-px h-px`],
|
package/dist/styles/md3/index.js
CHANGED
|
@@ -8,7 +8,6 @@ import { shortcuts as QBannerShortcuts } from './components/QBanner.unocss.js';
|
|
|
8
8
|
import { shortcuts as QBarShortcuts } from './components/QBar.unocss.js';
|
|
9
9
|
import { preflights as QBreadcrumbsPreflights, shortcuts as QBreadcrumbsShortcuts } from './components/QBreadcrumbs.unocss.js';
|
|
10
10
|
import { shortcuts as QBtnDropdownShortcuts } from './components/QBtnDropdown.unocss.js';
|
|
11
|
-
import { shortcuts as QBtnGroupShortcuts } from './components/QBtnGroup.unocss.js';
|
|
12
11
|
import { shortcuts as QBtnToggleShortcuts } from './components/QBtnToggle.unocss.js';
|
|
13
12
|
import { shortcuts as QCardShortcuts } from './components/QCard.unocss.js';
|
|
14
13
|
import { shortcuts as QCarouselShortcuts } from './components/QCarousel.unocss.js';
|
|
@@ -79,9 +78,9 @@ const style = {
|
|
|
79
78
|
variants: [],
|
|
80
79
|
preflights: [].concat(QBreadcrumbsPreflights, QCheckboxPreflights, QChipPreflights, QCircularProgressPreflights, QDialogPreflights, QFieldPreflights, QLayoutPreflights, QLinearProgressPreflights, QRadioPreflights, QSelectPreflights, QSpinnerPreflights, QSkeletonPreflights, QTablePreflights, QTogglePreflights, QTreePreflights),
|
|
81
80
|
rules: [].concat(),
|
|
82
|
-
shortcuts: [].concat(QIconShortcuts, QAjaxBarShortcuts, QAvatarShortcuts, QBadgeShortcuts, QBreadcrumbsShortcuts, QBannerShortcuts, QBarShortcuts, QBtnShortcuts, QBtnDropdownShortcuts,
|
|
81
|
+
shortcuts: [].concat(QIconShortcuts, QAjaxBarShortcuts, QAvatarShortcuts, QBadgeShortcuts, QBreadcrumbsShortcuts, QBannerShortcuts, QBarShortcuts, QBtnShortcuts, QBtnDropdownShortcuts, QBtnToggleShortcuts, QCardShortcuts, QCarouselShortcuts, QChatMessageShortcuts, QCheckboxShortcuts, QChipShortcuts, QCircularProgressShortcuts, QColorPickerShortcuts, QDateShortcuts, QDialogShortcuts, QEditorShortcuts, QExpansionItemShortcuts, QFabShortcuts, QFieldShortcuts, QFileShortcuts, QFormShortcuts, QImgShortcuts, QInnerLoadingShortcuts, QInputShortcuts, QIntersectionShortcuts, QItemShortcuts, QKnobShortcuts, QLayoutShortcuts, QLinearProgressShortcuts, QMenuShortcuts, QOptionGroupShortcuts, QPageShortcuts, QPageStickyShortcuts, QPaginationShortcuts, QParallaxShortcuts, QPopupEditShortcuts, QPullToRefreshShortcuts, QRadioShortcuts, QRatingShortcuts, QResponsiveShortcuts, QScrollareaShortcuts, QSelectShortcuts, QSeparatorShortcuts, QSkeletonShortcuts, QSlideItemShortcuts, QSliderShortcuts, QSpaceShortcuts, QSpinnerShortcuts, QSplitterShortcuts, QStepperShortcuts, QTabPanelShortcuts, QTableShortcuts, QTabsShortcuts, QTimeShortcuts, QTimelineShortcuts, QToggleShortcuts, QToolbarShortcuts, QTooltipShortcuts, QTreeShortcuts, QUploaderShortcuts, QVideoShortcuts, QVirtualScrollShortcuts, PanelShortcuts, QMorphShortcuts, QRippleShortcuts, QBottomSheetShortcuts, QDialogPluginShortcuts, QLoadingShortcuts, QNotifyShortcuts, QHeaderShortcuts, QFooterShortcuts, QDrawerShortcuts)
|
|
83
82
|
};
|
|
84
|
-
export const setDefaultProps = ({ QBtn, QBtnDropdown, QInput }) => {
|
|
83
|
+
export const setDefaultProps = ({ QBtn, QBtnDropdown, QInput, QBtnToggle }) => {
|
|
85
84
|
QBtn.props.rounded = {
|
|
86
85
|
type: QBtn.props.rounded,
|
|
87
86
|
default: true
|
|
@@ -94,5 +93,9 @@ export const setDefaultProps = ({ QBtn, QBtnDropdown, QInput }) => {
|
|
|
94
93
|
type: QInput.props.filled,
|
|
95
94
|
default: true
|
|
96
95
|
};
|
|
96
|
+
QBtnToggle.props.rounded = {
|
|
97
|
+
type: QBtnToggle.props.rounded,
|
|
98
|
+
default: true
|
|
99
|
+
};
|
|
97
100
|
};
|
|
98
101
|
export default style;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { QuasarStyle } from '../index.js';
|
|
2
2
|
declare const style: QuasarStyle;
|
|
3
|
-
export declare const setDefaultProps: ({ QBtn, QBtnDropdown, QInput }: {
|
|
3
|
+
export declare const setDefaultProps: ({ QBtn, QBtnDropdown, QInput, QBtnToggle }: {
|
|
4
4
|
QBtn: any;
|
|
5
5
|
QBtnDropdown: any;
|
|
6
6
|
QInput: any;
|
|
7
|
+
QBtnToggle: any;
|
|
7
8
|
}) => void;
|
|
8
9
|
export default style;
|
package/package.json
CHANGED
package/src/core/flex.unocss.ts
CHANGED
|
@@ -69,15 +69,15 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
69
69
|
([, size], { theme }) =>
|
|
70
70
|
`ml--${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
71
71
|
mt--${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
72
|
-
[&_>_*]:(
|
|
72
|
+
[&_>_*]:(ml-${
|
|
73
73
|
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
74
|
-
}
|
|
74
|
+
} mt-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']})`
|
|
75
75
|
],
|
|
76
76
|
[
|
|
77
77
|
/^q-gutter-x-(none|xs|sm|md|lg|xl)$/,
|
|
78
78
|
([, size], { theme }) =>
|
|
79
79
|
`ml--${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
80
|
-
[&_>_*]:(
|
|
80
|
+
[&_>_*]:(ml-${
|
|
81
81
|
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
82
82
|
})`
|
|
83
83
|
],
|
|
@@ -85,7 +85,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
85
85
|
/^q-gutter-y-(none|xs|sm|md|lg|xl)$/,
|
|
86
86
|
([, size], { theme }) =>
|
|
87
87
|
`mt--${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
88
|
-
[&_>_*]:(
|
|
88
|
+
[&_>_*]:(mt-${
|
|
89
89
|
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
90
90
|
})`
|
|
91
91
|
],
|
package/src/index.ts
CHANGED
|
@@ -88,7 +88,20 @@ const QPageStickySafelist = [
|
|
|
88
88
|
]
|
|
89
89
|
|
|
90
90
|
const QMenuSafelist = ['q-menu', 'q-menu--square', 'q-menu--dark']
|
|
91
|
-
|
|
91
|
+
const QTabSafelist = [
|
|
92
|
+
'q-tab',
|
|
93
|
+
'q-tab--full',
|
|
94
|
+
'q-tab--no-caps',
|
|
95
|
+
'q-tab__content',
|
|
96
|
+
'q-tab__content--inline',
|
|
97
|
+
'q-tab__icon',
|
|
98
|
+
'q-tab__label',
|
|
99
|
+
'q-tab__alert',
|
|
100
|
+
'q-tab__alert-icon',
|
|
101
|
+
'q-tab__indicator',
|
|
102
|
+
'q-tab--active',
|
|
103
|
+
'q-tab--inactive'
|
|
104
|
+
]
|
|
92
105
|
const componentsSafelistMap: Partial<Record<keyof QuasarComponents, string[]>> =
|
|
93
106
|
{
|
|
94
107
|
QIcon: ['q-icon'],
|
|
@@ -144,7 +157,8 @@ const componentsSafelistMap: Partial<Record<keyof QuasarComponents, string[]>> =
|
|
|
144
157
|
'q-btn-dropdown__arrow',
|
|
145
158
|
'q-btn-dropdown--current'
|
|
146
159
|
],
|
|
147
|
-
|
|
160
|
+
QBtnToggle: [
|
|
161
|
+
'q-btn-toggle',
|
|
148
162
|
'q-btn-group',
|
|
149
163
|
'q-btn-group--push',
|
|
150
164
|
'q-btn-group--push',
|
|
@@ -158,7 +172,6 @@ const componentsSafelistMap: Partial<Record<keyof QuasarComponents, string[]>> =
|
|
|
158
172
|
'q-btn-group--spread',
|
|
159
173
|
'q-btn-group--spread'
|
|
160
174
|
],
|
|
161
|
-
QBtnToggle: ['q-btn-toggle'],
|
|
162
175
|
QCard: [
|
|
163
176
|
'q-card',
|
|
164
177
|
'q-card--bordered',
|
|
@@ -763,20 +776,8 @@ const componentsSafelistMap: Partial<Record<keyof QuasarComponents, string[]>> =
|
|
|
763
776
|
'q-table--vertical-separator',
|
|
764
777
|
'q-table--dense'
|
|
765
778
|
],
|
|
766
|
-
QTab:
|
|
767
|
-
|
|
768
|
-
'q-tab--full',
|
|
769
|
-
'q-tab--no-caps',
|
|
770
|
-
'q-tab__content',
|
|
771
|
-
'q-tab__content--inline',
|
|
772
|
-
'q-tab__icon',
|
|
773
|
-
'q-tab__label',
|
|
774
|
-
'q-tab__alert',
|
|
775
|
-
'q-tab__alert-icon',
|
|
776
|
-
'q-tab__indicator',
|
|
777
|
-
'q-tab--active',
|
|
778
|
-
'q-tab--inactive'
|
|
779
|
-
],
|
|
779
|
+
QTab: QTabSafelist,
|
|
780
|
+
QRouteTab: QTabSafelist,
|
|
780
781
|
QTabs: [
|
|
781
782
|
'q-tabs',
|
|
782
783
|
'q-tabs--scrollable',
|
|
@@ -2,7 +2,54 @@ import type { Rule, UserShortcuts } from '@unocss/core'
|
|
|
2
2
|
import type { QuasarTheme } from '../../../theme.js'
|
|
3
3
|
|
|
4
4
|
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
5
|
-
[/^q-btn-toggle$/, ([, c], { theme }) => `relative`]
|
|
5
|
+
[/^q-btn-toggle$/, ([, c], { theme }) => `relative`],
|
|
6
|
+
|
|
7
|
+
[
|
|
8
|
+
/^q-btn-group$/,
|
|
9
|
+
([, c], { theme }) =>
|
|
10
|
+
theme.quasar?.components?.['q-btn-group'] ??
|
|
11
|
+
`rounded-[3px] [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)] align-middle [&_>_.q-btn-item]:([border-radius:inherit] self-stretch) [&_>_.q-btn-item:before]:([box-shadow:none]) [&_>_.q-btn-item_.q-badge--floating]:(right-0) [&_>_.q-btn-group]:([box-shadow:none]) [&_>_.q-btn-group:first-child_>_.q-btn:first-child]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_.q-btn-group:last-child_>_.q-btn:last-child]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_.q-btn-group:not(:first-child)_>_.q-btn:first-child:before]:([border-left:0]) [&_>_.q-btn-group:not(:last-child)_>_.q-btn:last-child:before]:([border-right:0]) [&_>_.q-btn-item:not(:last-child)]:(rounded-tr-none rounded-br-none) [&_>_.q-btn-item:not(:first-child)]:(rounded-tl-none rounded-bl-none) [&_>_.q-btn-item.q-btn--standard:before]:(z--1)`
|
|
12
|
+
],
|
|
13
|
+
|
|
14
|
+
[
|
|
15
|
+
/^q-btn-group--push$/,
|
|
16
|
+
([, c], { theme }) =>
|
|
17
|
+
theme.quasar?.components?.['q-btn-group--push'] ??
|
|
18
|
+
`rounded-[7px] [&_>_.q-btn--push.q-btn--actionable]:(transform-none) [&_>_.q-btn--push.q-btn--actionable_.q-btn\\_\\_content]:([transition:margin-top_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1),_margin-bottom_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&_>_.q-btn--push.q-btn--actionable:active_.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])
|
|
19
|
+
[&__>_.q-btn--push.q-btn--actionable.q-btn--active__.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])`
|
|
20
|
+
],
|
|
21
|
+
|
|
22
|
+
[/^q-btn-group--rounded$/, ([, c], { theme }) => `rounded-[28px]`],
|
|
23
|
+
|
|
24
|
+
[/^q-btn-group--square$/, ([, c], { theme }) => `rounded-none`],
|
|
25
|
+
|
|
26
|
+
[/^q-btn-group--flat$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
27
|
+
|
|
28
|
+
[
|
|
29
|
+
/^q-btn-group--outline$/,
|
|
30
|
+
([, c], { theme }) =>
|
|
31
|
+
theme.quasar?.components?.['q-btn-group--outline'] ??
|
|
32
|
+
`[box-shadow:none] [&_>_.q-separator]:(hidden) [&_>_.q-btn-item_+_.q-btn-item:before]:([border-left:0]) [&_>_.q-btn-item:not(:last-child):before]:([border-right:0])`
|
|
33
|
+
],
|
|
34
|
+
|
|
35
|
+
[/^q-btn-group--unelevated$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
36
|
+
|
|
37
|
+
[/^q-btn-group--stretch$/, ([, c], { theme }) => `self-stretch rounded-none`],
|
|
38
|
+
|
|
39
|
+
[
|
|
40
|
+
/^q-btn-group--glossy$/,
|
|
41
|
+
([, c], { theme }) =>
|
|
42
|
+
theme.quasar?.components?.['q-btn-group--glossy'] ??
|
|
43
|
+
`[&_>_.q-btn-item]:(!bg-[linear-gradient(_to_bottom,_rgba(255,_255,_255,_0.3),_rgba(255,_255,_255,_0)_50%,_rgba(0,_0,_0,_0.12)_51%,_rgba(0,_0,_0,_0.04)_)])`
|
|
44
|
+
],
|
|
45
|
+
|
|
46
|
+
[
|
|
47
|
+
/^q-btn-group--spread$/,
|
|
48
|
+
([, c], { theme }) =>
|
|
49
|
+
theme.quasar?.components?.['q-btn-group--spread'] ??
|
|
50
|
+
`[&_>_.q-btn-group]:(!flex) [&_>_.q-btn-item]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])
|
|
51
|
+
[&__>_.q-btn-group_>_.q-btn-item:not(.q-btn-dropdown\\_\\_arrow-container)]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])`
|
|
52
|
+
]
|
|
6
53
|
]
|
|
7
54
|
|
|
8
55
|
export { shortcuts }
|
package/src/styles/md2/index.ts
CHANGED
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
shortcuts as QBreadcrumbsShortcuts
|
|
15
15
|
} from './components/QBreadcrumbs.unocss.js'
|
|
16
16
|
import { shortcuts as QBtnDropdownShortcuts } from './components/QBtnDropdown.unocss.js'
|
|
17
|
-
import { shortcuts as QBtnGroupShortcuts } from './components/QBtnGroup.unocss.js'
|
|
18
17
|
import { shortcuts as QBtnToggleShortcuts } from './components/QBtnToggle.unocss.js'
|
|
19
18
|
import { shortcuts as QCardShortcuts } from './components/QCard.unocss.js'
|
|
20
19
|
import { shortcuts as QCarouselShortcuts } from './components/QCarousel.unocss.js'
|
|
@@ -159,7 +158,6 @@ const style: QuasarStyle = {
|
|
|
159
158
|
QBarShortcuts,
|
|
160
159
|
QBtnShortcuts,
|
|
161
160
|
QBtnDropdownShortcuts,
|
|
162
|
-
QBtnGroupShortcuts,
|
|
163
161
|
QBtnToggleShortcuts,
|
|
164
162
|
QCardShortcuts,
|
|
165
163
|
QCarouselShortcuts,
|
|
@@ -2,7 +2,70 @@ import type { Rule, UserShortcuts } from '@unocss/core'
|
|
|
2
2
|
import type { QuasarTheme } from '../../../theme.js'
|
|
3
3
|
|
|
4
4
|
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
5
|
-
[/^q-btn-toggle$/, ([, c], { theme }) => `relative`]
|
|
5
|
+
[/^q-btn-toggle$/, ([, c], { theme }) => `relative`],
|
|
6
|
+
|
|
7
|
+
[
|
|
8
|
+
/^q-btn-group$/,
|
|
9
|
+
([, c], { theme }) =>
|
|
10
|
+
theme.quasar?.components?.['q-btn-group'] ??
|
|
11
|
+
`!flex-initial
|
|
12
|
+
rounded-[3px]
|
|
13
|
+
[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)]
|
|
14
|
+
align-middle
|
|
15
|
+
[&_>_.q-btn-item]:([border-radius:inherit] self-stretch)
|
|
16
|
+
[&_>_.q-btn-item:before]:([box-shadow:none])
|
|
17
|
+
[&_>_.q-btn-item_.q-badge--floating]:(right-0)
|
|
18
|
+
[&_>_.q-btn-group]:([box-shadow:none])
|
|
19
|
+
[&_>_.q-btn-group:first-child_>_.q-btn]:(border-rd-0 bg-light-outline dark:bg-dark-outline)
|
|
20
|
+
[&_>_.q-btn-group:first-child_>_.q-btn--active]:(bg-light-seondary-container dark:bg-dark-secondary-container)
|
|
21
|
+
[&_>_.q-btn-group:first-child_>_.q-btn:first-child]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit])
|
|
22
|
+
[&_>_.q-btn-group:last-child_>_.q-btn:last-child]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit])
|
|
23
|
+
[&_>_.q-btn-group:not(:first-child)_>_.q-btn:first-child:before]:([border-left:0])
|
|
24
|
+
[&_>_.q-btn-group:not(:last-child)_>_.q-btn:last-child:before]:([border-right:0])
|
|
25
|
+
[&_>_.q-btn-item:not(:last-child)]:(rounded-tr-none rounded-br-none)
|
|
26
|
+
[&_>_.q-btn-item:not(:first-child)]:(rounded-tl-none rounded-bl-none)
|
|
27
|
+
[&_>_.q-btn-item.q-btn--standard:before]:(z--1)`
|
|
28
|
+
],
|
|
29
|
+
|
|
30
|
+
[
|
|
31
|
+
/^q-btn-group--push$/,
|
|
32
|
+
([, c], { theme }) =>
|
|
33
|
+
theme.quasar?.components?.['q-btn-group--push'] ??
|
|
34
|
+
`rounded-[7px] [&_>_.q-btn--push.q-btn--actionable]:(transform-none) [&_>_.q-btn--push.q-btn--actionable_.q-btn\\_\\_content]:([transition:margin-top_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1),_margin-bottom_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&_>_.q-btn--push.q-btn--actionable:active_.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])
|
|
35
|
+
[&__>_.q-btn--push.q-btn--actionable.q-btn--active__.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])`
|
|
36
|
+
],
|
|
37
|
+
|
|
38
|
+
[/^q-btn-group--rounded$/, ([, c], { theme }) => `rounded-[28px]`],
|
|
39
|
+
|
|
40
|
+
[/^q-btn-group--square$/, ([, c], { theme }) => `rounded-none`],
|
|
41
|
+
|
|
42
|
+
[/^q-btn-group--flat$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
43
|
+
|
|
44
|
+
[
|
|
45
|
+
/^q-btn-group--outline$/,
|
|
46
|
+
([, c], { theme }) =>
|
|
47
|
+
theme.quasar?.components?.['q-btn-group--outline'] ??
|
|
48
|
+
`[box-shadow:none] [&_>_.q-separator]:(hidden) [&_>_.q-btn-item_+_.q-btn-item:before]:([border-left:0]) [&_>_.q-btn-item:not(:last-child):before]:([border-right:0])`
|
|
49
|
+
],
|
|
50
|
+
|
|
51
|
+
[/^q-btn-group--unelevated$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
52
|
+
|
|
53
|
+
[/^q-btn-group--stretch$/, ([, c], { theme }) => `self-stretch rounded-none`],
|
|
54
|
+
|
|
55
|
+
[
|
|
56
|
+
/^q-btn-group--glossy$/,
|
|
57
|
+
([, c], { theme }) =>
|
|
58
|
+
theme.quasar?.components?.['q-btn-group--glossy'] ??
|
|
59
|
+
`[&_>_.q-btn-item]:(!bg-[linear-gradient(_to_bottom,_rgba(255,_255,_255,_0.3),_rgba(255,_255,_255,_0)_50%,_rgba(0,_0,_0,_0.12)_51%,_rgba(0,_0,_0,_0.04)_)])`
|
|
60
|
+
],
|
|
61
|
+
|
|
62
|
+
[
|
|
63
|
+
/^q-btn-group--spread$/,
|
|
64
|
+
([, c], { theme }) =>
|
|
65
|
+
theme.quasar?.components?.['q-btn-group--spread'] ??
|
|
66
|
+
`[&_>_.q-btn-group]:(!flex) [&_>_.q-btn-item]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])
|
|
67
|
+
[&__>_.q-btn-group_>_.q-btn-item:not(.q-btn-dropdown\\_\\_arrow-container)]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])`
|
|
68
|
+
]
|
|
6
69
|
]
|
|
7
70
|
|
|
8
71
|
export { shortcuts }
|
|
@@ -4,25 +4,7 @@ import type { QuasarTheme } from '../../../theme.js'
|
|
|
4
4
|
const preflights: Preflight<QuasarTheme>[] = [
|
|
5
5
|
{
|
|
6
6
|
getCSS: ({ theme }) => `
|
|
7
|
-
|
|
8
|
-
content: "";
|
|
9
|
-
position: absolute;
|
|
10
|
-
top: 0;
|
|
11
|
-
right: 0;
|
|
12
|
-
bottom: 0;
|
|
13
|
-
left: 0;
|
|
14
|
-
border-radius: 50%;
|
|
15
|
-
background: currentColor;
|
|
16
|
-
opacity: 0.12;
|
|
17
|
-
transform: scale3d(0, 0, 1);
|
|
18
|
-
transition: transform 0.22s cubic-bezier(0, 0, 0.2, 1);
|
|
19
|
-
}
|
|
20
|
-
body.desktop .q-checkbox:not(.disabled):focus .q-checkbox__inner:before, body.desktop .q-checkbox:not(.disabled):hover .q-checkbox__inner:before {
|
|
21
|
-
transform: scale3d(1, 1, 1);
|
|
22
|
-
}
|
|
23
|
-
body.desktop .q-checkbox--dense:not(.disabled):focus .q-checkbox__inner:before, body.desktop .q-checkbox--dense:not(.disabled):hover .q-checkbox__inner:before {
|
|
24
|
-
transform: scale3d(1.4, 1.4, 1);
|
|
25
|
-
}
|
|
7
|
+
|
|
26
8
|
`
|
|
27
9
|
}
|
|
28
10
|
]
|
|
@@ -33,7 +15,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
33
15
|
([, c], { theme }) =>
|
|
34
16
|
theme.quasar?.components?.['q-checkbox'] ??
|
|
35
17
|
`align-middle [&.disabled]:(!opacity-75)
|
|
36
|
-
[&:not(.disabled)
|
|
18
|
+
[&:not(.disabled):hover_.q-checkbox\\_\\_inner:before]:(content-[''] absolute top-[12.5%] left-[12.5%] bottom-0 right-0 border-rd-50 bg-current op-12 scale-x-120 scale-y-120 scale-z-100)
|
|
37
19
|
[&:not(.disabled):focus_.q-checkbox\\_\\_inner:before]:(scale-z-100)`
|
|
38
20
|
],
|
|
39
21
|
|
package/src/styles/md3/index.ts
CHANGED
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
shortcuts as QBreadcrumbsShortcuts
|
|
15
15
|
} from './components/QBreadcrumbs.unocss.js'
|
|
16
16
|
import { shortcuts as QBtnDropdownShortcuts } from './components/QBtnDropdown.unocss.js'
|
|
17
|
-
import { shortcuts as QBtnGroupShortcuts } from './components/QBtnGroup.unocss.js'
|
|
18
17
|
import { shortcuts as QBtnToggleShortcuts } from './components/QBtnToggle.unocss.js'
|
|
19
18
|
import { shortcuts as QCardShortcuts } from './components/QCard.unocss.js'
|
|
20
19
|
import { shortcuts as QCarouselShortcuts } from './components/QCarousel.unocss.js'
|
|
@@ -159,7 +158,6 @@ const style: QuasarStyle = {
|
|
|
159
158
|
QBarShortcuts,
|
|
160
159
|
QBtnShortcuts,
|
|
161
160
|
QBtnDropdownShortcuts,
|
|
162
|
-
QBtnGroupShortcuts,
|
|
163
161
|
QBtnToggleShortcuts,
|
|
164
162
|
QCardShortcuts,
|
|
165
163
|
QCarouselShortcuts,
|
|
@@ -234,11 +232,13 @@ const style: QuasarStyle = {
|
|
|
234
232
|
export const setDefaultProps = ({
|
|
235
233
|
QBtn,
|
|
236
234
|
QBtnDropdown,
|
|
237
|
-
QInput
|
|
235
|
+
QInput,
|
|
236
|
+
QBtnToggle
|
|
238
237
|
}: {
|
|
239
238
|
QBtn: any
|
|
240
239
|
QBtnDropdown: any
|
|
241
240
|
QInput: any
|
|
241
|
+
QBtnToggle: any
|
|
242
242
|
}) => {
|
|
243
243
|
QBtn.props.rounded = {
|
|
244
244
|
type: QBtn.props.rounded,
|
|
@@ -252,6 +252,10 @@ export const setDefaultProps = ({
|
|
|
252
252
|
type: QInput.props.filled,
|
|
253
253
|
default: true
|
|
254
254
|
}
|
|
255
|
+
QBtnToggle.props.rounded = {
|
|
256
|
+
type: QBtnToggle.props.rounded,
|
|
257
|
+
default: true
|
|
258
|
+
}
|
|
255
259
|
}
|
|
256
260
|
|
|
257
261
|
export default style
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
const shortcuts = [
|
|
2
|
-
[
|
|
3
|
-
/^q-btn-group$/,
|
|
4
|
-
([, c], { theme }) => theme.quasar?.components?.['q-btn-group'] ??
|
|
5
|
-
`rounded-[3px] [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)] align-middle [&_>_.q-btn-item]:([border-radius:inherit] self-stretch) [&_>_.q-btn-item:before]:([box-shadow:none]) [&_>_.q-btn-item_.q-badge--floating]:(right-0) [&_>_.q-btn-group]:([box-shadow:none]) [&_>_.q-btn-group:first-child_>_.q-btn:first-child]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_.q-btn-group:last-child_>_.q-btn:last-child]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_.q-btn-group:not(:first-child)_>_.q-btn:first-child:before]:([border-left:0]) [&_>_.q-btn-group:not(:last-child)_>_.q-btn:last-child:before]:([border-right:0]) [&_>_.q-btn-item:not(:last-child)]:(rounded-tr-none rounded-br-none) [&_>_.q-btn-item:not(:first-child)]:(rounded-tl-none rounded-bl-none) [&_>_.q-btn-item.q-btn--standard:before]:(z--1)`
|
|
6
|
-
],
|
|
7
|
-
[
|
|
8
|
-
/^q-btn-group--push$/,
|
|
9
|
-
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--push'] ??
|
|
10
|
-
`rounded-[7px] [&_>_.q-btn--push.q-btn--actionable]:(transform-none) [&_>_.q-btn--push.q-btn--actionable_.q-btn\\_\\_content]:([transition:margin-top_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1),_margin-bottom_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&_>_.q-btn--push.q-btn--actionable:active_.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])
|
|
11
|
-
[&__>_.q-btn--push.q-btn--actionable.q-btn--active__.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])`
|
|
12
|
-
],
|
|
13
|
-
[/^q-btn-group--rounded$/, ([, c], { theme }) => `rounded-[28px]`],
|
|
14
|
-
[/^q-btn-group--square$/, ([, c], { theme }) => `rounded-none`],
|
|
15
|
-
[/^q-btn-group--flat$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
16
|
-
[
|
|
17
|
-
/^q-btn-group--outline$/,
|
|
18
|
-
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--outline'] ??
|
|
19
|
-
`[box-shadow:none] [&_>_.q-separator]:(hidden) [&_>_.q-btn-item_+_.q-btn-item:before]:([border-left:0]) [&_>_.q-btn-item:not(:last-child):before]:([border-right:0])`
|
|
20
|
-
],
|
|
21
|
-
[/^q-btn-group--unelevated$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
22
|
-
[/^q-btn-group--stretch$/, ([, c], { theme }) => `self-stretch rounded-none`],
|
|
23
|
-
[
|
|
24
|
-
/^q-btn-group--glossy$/,
|
|
25
|
-
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--glossy'] ??
|
|
26
|
-
`[&_>_.q-btn-item]:(!bg-[linear-gradient(_to_bottom,_rgba(255,_255,_255,_0.3),_rgba(255,_255,_255,_0)_50%,_rgba(0,_0,_0,_0.12)_51%,_rgba(0,_0,_0,_0.04)_)])`
|
|
27
|
-
],
|
|
28
|
-
[
|
|
29
|
-
/^q-btn-group--spread$/,
|
|
30
|
-
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--spread'] ??
|
|
31
|
-
`[&_>_.q-btn-group]:(!flex) [&_>_.q-btn-item]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])
|
|
32
|
-
[&__>_.q-btn-group_>_.q-btn-item:not(.q-btn-dropdown\\_\\_arrow-container)]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])`
|
|
33
|
-
]
|
|
34
|
-
];
|
|
35
|
-
export { shortcuts };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
const shortcuts = [
|
|
2
|
-
[
|
|
3
|
-
/^q-btn-group$/,
|
|
4
|
-
([, c], { theme }) => theme.quasar?.components?.['q-btn-group'] ??
|
|
5
|
-
`rounded-[3px] [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)] align-middle [&_>_.q-btn-item]:([border-radius:inherit] self-stretch) [&_>_.q-btn-item:before]:([box-shadow:none]) [&_>_.q-btn-item_.q-badge--floating]:(right-0) [&_>_.q-btn-group]:([box-shadow:none]) [&_>_.q-btn-group:first-child_>_.q-btn:first-child]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_.q-btn-group:last-child_>_.q-btn:last-child]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_.q-btn-group:not(:first-child)_>_.q-btn:first-child:before]:([border-left:0]) [&_>_.q-btn-group:not(:last-child)_>_.q-btn:last-child:before]:([border-right:0]) [&_>_.q-btn-item:not(:last-child)]:(rounded-tr-none rounded-br-none) [&_>_.q-btn-item:not(:first-child)]:(rounded-tl-none rounded-bl-none) [&_>_.q-btn-item.q-btn--standard:before]:(z--1)`
|
|
6
|
-
],
|
|
7
|
-
[
|
|
8
|
-
/^q-btn-group--push$/,
|
|
9
|
-
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--push'] ??
|
|
10
|
-
`rounded-[7px] [&_>_.q-btn--push.q-btn--actionable]:(transform-none) [&_>_.q-btn--push.q-btn--actionable_.q-btn\\_\\_content]:([transition:margin-top_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1),_margin-bottom_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&_>_.q-btn--push.q-btn--actionable:active_.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])
|
|
11
|
-
[&__>_.q-btn--push.q-btn--actionable.q-btn--active__.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])`
|
|
12
|
-
],
|
|
13
|
-
[/^q-btn-group--rounded$/, ([, c], { theme }) => `rounded-[28px]`],
|
|
14
|
-
[/^q-btn-group--square$/, ([, c], { theme }) => `rounded-none`],
|
|
15
|
-
[/^q-btn-group--flat$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
16
|
-
[
|
|
17
|
-
/^q-btn-group--outline$/,
|
|
18
|
-
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--outline'] ??
|
|
19
|
-
`[box-shadow:none] [&_>_.q-separator]:(hidden) [&_>_.q-btn-item_+_.q-btn-item:before]:([border-left:0]) [&_>_.q-btn-item:not(:last-child):before]:([border-right:0])`
|
|
20
|
-
],
|
|
21
|
-
[/^q-btn-group--unelevated$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
22
|
-
[/^q-btn-group--stretch$/, ([, c], { theme }) => `self-stretch rounded-none`],
|
|
23
|
-
[
|
|
24
|
-
/^q-btn-group--glossy$/,
|
|
25
|
-
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--glossy'] ??
|
|
26
|
-
`[&_>_.q-btn-item]:(!bg-[linear-gradient(_to_bottom,_rgba(255,_255,_255,_0.3),_rgba(255,_255,_255,_0)_50%,_rgba(0,_0,_0,_0.12)_51%,_rgba(0,_0,_0,_0.04)_)])`
|
|
27
|
-
],
|
|
28
|
-
[
|
|
29
|
-
/^q-btn-group--spread$/,
|
|
30
|
-
([, c], { theme }) => theme.quasar?.components?.['q-btn-group--spread'] ??
|
|
31
|
-
`[&_>_.q-btn-group]:(!flex) [&_>_.q-btn-item]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])
|
|
32
|
-
[&__>_.q-btn-group_>_.q-btn-item:not(.q-btn-dropdown\\_\\_arrow-container)]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])`
|
|
33
|
-
]
|
|
34
|
-
];
|
|
35
|
-
export { shortcuts };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { Rule, UserShortcuts } from '@unocss/core'
|
|
2
|
-
import type { QuasarTheme } from '../../../theme.js'
|
|
3
|
-
|
|
4
|
-
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
5
|
-
[
|
|
6
|
-
/^q-btn-group$/,
|
|
7
|
-
([, c], { theme }) =>
|
|
8
|
-
theme.quasar?.components?.['q-btn-group'] ??
|
|
9
|
-
`rounded-[3px] [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)] align-middle [&_>_.q-btn-item]:([border-radius:inherit] self-stretch) [&_>_.q-btn-item:before]:([box-shadow:none]) [&_>_.q-btn-item_.q-badge--floating]:(right-0) [&_>_.q-btn-group]:([box-shadow:none]) [&_>_.q-btn-group:first-child_>_.q-btn:first-child]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_.q-btn-group:last-child_>_.q-btn:last-child]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_.q-btn-group:not(:first-child)_>_.q-btn:first-child:before]:([border-left:0]) [&_>_.q-btn-group:not(:last-child)_>_.q-btn:last-child:before]:([border-right:0]) [&_>_.q-btn-item:not(:last-child)]:(rounded-tr-none rounded-br-none) [&_>_.q-btn-item:not(:first-child)]:(rounded-tl-none rounded-bl-none) [&_>_.q-btn-item.q-btn--standard:before]:(z--1)`
|
|
10
|
-
],
|
|
11
|
-
|
|
12
|
-
[
|
|
13
|
-
/^q-btn-group--push$/,
|
|
14
|
-
([, c], { theme }) =>
|
|
15
|
-
theme.quasar?.components?.['q-btn-group--push'] ??
|
|
16
|
-
`rounded-[7px] [&_>_.q-btn--push.q-btn--actionable]:(transform-none) [&_>_.q-btn--push.q-btn--actionable_.q-btn\\_\\_content]:([transition:margin-top_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1),_margin-bottom_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&_>_.q-btn--push.q-btn--actionable:active_.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])
|
|
17
|
-
[&__>_.q-btn--push.q-btn--actionable.q-btn--active__.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])`
|
|
18
|
-
],
|
|
19
|
-
|
|
20
|
-
[/^q-btn-group--rounded$/, ([, c], { theme }) => `rounded-[28px]`],
|
|
21
|
-
|
|
22
|
-
[/^q-btn-group--square$/, ([, c], { theme }) => `rounded-none`],
|
|
23
|
-
|
|
24
|
-
[/^q-btn-group--flat$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
25
|
-
|
|
26
|
-
[
|
|
27
|
-
/^q-btn-group--outline$/,
|
|
28
|
-
([, c], { theme }) =>
|
|
29
|
-
theme.quasar?.components?.['q-btn-group--outline'] ??
|
|
30
|
-
`[box-shadow:none] [&_>_.q-separator]:(hidden) [&_>_.q-btn-item_+_.q-btn-item:before]:([border-left:0]) [&_>_.q-btn-item:not(:last-child):before]:([border-right:0])`
|
|
31
|
-
],
|
|
32
|
-
|
|
33
|
-
[/^q-btn-group--unelevated$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
34
|
-
|
|
35
|
-
[/^q-btn-group--stretch$/, ([, c], { theme }) => `self-stretch rounded-none`],
|
|
36
|
-
|
|
37
|
-
[
|
|
38
|
-
/^q-btn-group--glossy$/,
|
|
39
|
-
([, c], { theme }) =>
|
|
40
|
-
theme.quasar?.components?.['q-btn-group--glossy'] ??
|
|
41
|
-
`[&_>_.q-btn-item]:(!bg-[linear-gradient(_to_bottom,_rgba(255,_255,_255,_0.3),_rgba(255,_255,_255,_0)_50%,_rgba(0,_0,_0,_0.12)_51%,_rgba(0,_0,_0,_0.04)_)])`
|
|
42
|
-
],
|
|
43
|
-
|
|
44
|
-
[
|
|
45
|
-
/^q-btn-group--spread$/,
|
|
46
|
-
([, c], { theme }) =>
|
|
47
|
-
theme.quasar?.components?.['q-btn-group--spread'] ??
|
|
48
|
-
`[&_>_.q-btn-group]:(!flex) [&_>_.q-btn-item]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])
|
|
49
|
-
[&__>_.q-btn-group_>_.q-btn-item:not(.q-btn-dropdown\\_\\_arrow-container)]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])`
|
|
50
|
-
]
|
|
51
|
-
]
|
|
52
|
-
|
|
53
|
-
export { shortcuts }
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { Rule, UserShortcuts } from '@unocss/core'
|
|
2
|
-
import type { QuasarTheme } from '../../../theme.js'
|
|
3
|
-
|
|
4
|
-
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
5
|
-
[
|
|
6
|
-
/^q-btn-group$/,
|
|
7
|
-
([, c], { theme }) =>
|
|
8
|
-
theme.quasar?.components?.['q-btn-group'] ??
|
|
9
|
-
`rounded-[3px] [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)] align-middle [&_>_.q-btn-item]:([border-radius:inherit] self-stretch) [&_>_.q-btn-item:before]:([box-shadow:none]) [&_>_.q-btn-item_.q-badge--floating]:(right-0) [&_>_.q-btn-group]:([box-shadow:none]) [&_>_.q-btn-group:first-child_>_.q-btn:first-child]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_.q-btn-group:last-child_>_.q-btn:last-child]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_.q-btn-group:not(:first-child)_>_.q-btn:first-child:before]:([border-left:0]) [&_>_.q-btn-group:not(:last-child)_>_.q-btn:last-child:before]:([border-right:0]) [&_>_.q-btn-item:not(:last-child)]:(rounded-tr-none rounded-br-none) [&_>_.q-btn-item:not(:first-child)]:(rounded-tl-none rounded-bl-none) [&_>_.q-btn-item.q-btn--standard:before]:(z--1)`
|
|
10
|
-
],
|
|
11
|
-
|
|
12
|
-
[
|
|
13
|
-
/^q-btn-group--push$/,
|
|
14
|
-
([, c], { theme }) =>
|
|
15
|
-
theme.quasar?.components?.['q-btn-group--push'] ??
|
|
16
|
-
`rounded-[7px] [&_>_.q-btn--push.q-btn--actionable]:(transform-none) [&_>_.q-btn--push.q-btn--actionable_.q-btn\\_\\_content]:([transition:margin-top_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1),_margin-bottom_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&_>_.q-btn--push.q-btn--actionable:active_.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])
|
|
17
|
-
[&__>_.q-btn--push.q-btn--actionable.q-btn--active__.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])`
|
|
18
|
-
],
|
|
19
|
-
|
|
20
|
-
[/^q-btn-group--rounded$/, ([, c], { theme }) => `rounded-[28px]`],
|
|
21
|
-
|
|
22
|
-
[/^q-btn-group--square$/, ([, c], { theme }) => `rounded-none`],
|
|
23
|
-
|
|
24
|
-
[/^q-btn-group--flat$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
25
|
-
|
|
26
|
-
[
|
|
27
|
-
/^q-btn-group--outline$/,
|
|
28
|
-
([, c], { theme }) =>
|
|
29
|
-
theme.quasar?.components?.['q-btn-group--outline'] ??
|
|
30
|
-
`[box-shadow:none] [&_>_.q-separator]:(hidden) [&_>_.q-btn-item_+_.q-btn-item:before]:([border-left:0]) [&_>_.q-btn-item:not(:last-child):before]:([border-right:0])`
|
|
31
|
-
],
|
|
32
|
-
|
|
33
|
-
[/^q-btn-group--unelevated$/, ([, c], { theme }) => `[box-shadow:none]`],
|
|
34
|
-
|
|
35
|
-
[/^q-btn-group--stretch$/, ([, c], { theme }) => `self-stretch rounded-none`],
|
|
36
|
-
|
|
37
|
-
[
|
|
38
|
-
/^q-btn-group--glossy$/,
|
|
39
|
-
([, c], { theme }) =>
|
|
40
|
-
theme.quasar?.components?.['q-btn-group--glossy'] ??
|
|
41
|
-
`[&_>_.q-btn-item]:(!bg-[linear-gradient(_to_bottom,_rgba(255,_255,_255,_0.3),_rgba(255,_255,_255,_0)_50%,_rgba(0,_0,_0,_0.12)_51%,_rgba(0,_0,_0,_0.04)_)])`
|
|
42
|
-
],
|
|
43
|
-
|
|
44
|
-
[
|
|
45
|
-
/^q-btn-group--spread$/,
|
|
46
|
-
([, c], { theme }) =>
|
|
47
|
-
theme.quasar?.components?.['q-btn-group--spread'] ??
|
|
48
|
-
`[&_>_.q-btn-group]:(!flex) [&_>_.q-btn-item]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])
|
|
49
|
-
[&__>_.q-btn-group_>_.q-btn-item:not(.q-btn-dropdown\\_\\_arrow-container)]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])`
|
|
50
|
-
]
|
|
51
|
-
]
|
|
52
|
-
|
|
53
|
-
export { shortcuts }
|