vitrify 0.17.10 → 0.17.11
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 +1 -1
- package/dist/plugins/quasar/unocss/components/QBar.unocss.js +2 -2
- package/dist/plugins/quasar/unocss/components/QBtn.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/components/QCard.unocss.js +12 -4
- package/dist/plugins/quasar/unocss/components/QChatMessage.unocss.js +7 -2
- package/dist/plugins/quasar/unocss/components/QCheckbox.unocss.js +18 -6
- package/dist/plugins/quasar/unocss/components/QDrawer.unocss.js +6 -4
- package/dist/plugins/quasar/unocss/components/QFooter.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/components/QMenu.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/components/QTabPanel.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/components/QTooltip.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/core/colors.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/core/flex.unocss.js +11 -4
- package/dist/plugins/quasar/unocss/core/position.unocss.js +2 -1
- package/dist/plugins/quasar/unocss/directives/QRipple.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/index.js +95 -67
- package/dist/plugins/quasar/unocss/plugins/QLoading.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/plugins/QNotify.unocss.js +20 -20
- package/dist/plugins/quasar/unocss/theme.js +1 -1
- package/dist/types/plugins/quasar/unocss/index.d.ts +2 -1
- package/dist/types/plugins/quasar/unocss/theme.d.ts +1 -1
- package/package.json +1 -1
- package/src/node/plugins/quasar/unocss/components/QAjaxBar.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/components/QBar.unocss.ts +2 -2
- package/src/node/plugins/quasar/unocss/components/QBtn.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/components/QCard.unocss.ts +12 -4
- package/src/node/plugins/quasar/unocss/components/QChatMessage.unocss.ts +7 -2
- package/src/node/plugins/quasar/unocss/components/QCheckbox.unocss.ts +19 -6
- package/src/node/plugins/quasar/unocss/components/QDrawer.unocss.ts +8 -4
- package/src/node/plugins/quasar/unocss/components/QFooter.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/components/QMenu.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/components/QTabPanel.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/components/QTooltip.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/core/colors.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/core/flex.unocss.ts +13 -5
- package/src/node/plugins/quasar/unocss/core/position.unocss.ts +3 -1
- package/src/node/plugins/quasar/unocss/directives/QRipple.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/index.ts +224 -195
- package/src/node/plugins/quasar/unocss/plugins/QLoading.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/plugins/QNotify.unocss.ts +38 -20
- package/src/node/plugins/quasar/unocss/theme.ts +2 -2
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
definePreset,
|
|
4
4
|
type Preflight,
|
|
5
|
+
type Preset,
|
|
5
6
|
presetIcons,
|
|
6
7
|
type Rule,
|
|
7
8
|
transformerVariantGroup,
|
|
@@ -377,6 +378,9 @@ const pluginSafelistMap: Partial<Record<keyof QuasarPlugins, string[]>> = {
|
|
|
377
378
|
}
|
|
378
379
|
|
|
379
380
|
const baseSafelist = [
|
|
381
|
+
'relative-position',
|
|
382
|
+
'q-panel-parent',
|
|
383
|
+
'inline',
|
|
380
384
|
'bg-primary',
|
|
381
385
|
'col',
|
|
382
386
|
'row',
|
|
@@ -1588,14 +1592,18 @@ const generateSafelist = ({
|
|
|
1588
1592
|
}
|
|
1589
1593
|
|
|
1590
1594
|
export default definePreset((options: QuasarPresetOptions = {}) => {
|
|
1591
|
-
return
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1595
|
+
return [
|
|
1596
|
+
presetUno(),
|
|
1597
|
+
animatedUno(),
|
|
1598
|
+
presetIcons({}),
|
|
1599
|
+
{
|
|
1600
|
+
name: 'quasar',
|
|
1601
|
+
presets: [presetUno(), animatedUno(), presetIcons({})],
|
|
1602
|
+
safelist: generateSafelist(options),
|
|
1603
|
+
preflights: (
|
|
1604
|
+
[
|
|
1605
|
+
{
|
|
1606
|
+
getCSS: ({ theme }) => `/* beasties:include start */
|
|
1599
1607
|
/* Document
|
|
1600
1608
|
* ========================================================================== */
|
|
1601
1609
|
|
|
@@ -1853,198 +1861,219 @@ export default definePreset((options: QuasarPresetOptions = {}) => {
|
|
|
1853
1861
|
:where(summary) {
|
|
1854
1862
|
display: list-item;
|
|
1855
1863
|
}
|
|
1864
|
+
|
|
1865
|
+
/* * Change font properties to \`inherit\` in all browsers (opinionated).
|
|
1866
|
+
* */
|
|
1867
|
+
button,
|
|
1868
|
+
input,
|
|
1869
|
+
optgroup,
|
|
1870
|
+
select,
|
|
1871
|
+
textarea {
|
|
1872
|
+
font: inherit;
|
|
1873
|
+
font-family: inherit;
|
|
1874
|
+
margin: 0;
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1856
1877
|
/* beasties:include end */`
|
|
1857
|
-
}
|
|
1858
|
-
] as Preflight<QuasarTheme>[]
|
|
1859
|
-
).concat(
|
|
1860
|
-
QBreadcrumbsPreflights,
|
|
1861
|
-
QCheckboxPreflights,
|
|
1862
|
-
QChipPreflights,
|
|
1863
|
-
QCircularProgressPreflights,
|
|
1864
|
-
QDialogPreflights,
|
|
1865
|
-
QFieldPreflights,
|
|
1866
|
-
QLayoutPreflights,
|
|
1867
|
-
QLinearProgressPreflights,
|
|
1868
|
-
QRadioPreflights,
|
|
1869
|
-
QSelectPreflights,
|
|
1870
|
-
QSpinnerPreflights,
|
|
1871
|
-
QSkeletonPreflights,
|
|
1872
|
-
QTablePreflights,
|
|
1873
|
-
QTogglePreflights,
|
|
1874
|
-
QTreePreflights,
|
|
1875
|
-
ColorPreflights,
|
|
1876
|
-
DarkPreflights,
|
|
1877
|
-
HelperPreflights,
|
|
1878
|
-
MousePreflights,
|
|
1879
|
-
TypographyPreflights,
|
|
1880
|
-
VisibilityPreflights,
|
|
1881
|
-
TransitionPreflights,
|
|
1882
|
-
SizePreflights
|
|
1883
|
-
),
|
|
1884
|
-
rules: ([] as Rule<QuasarTheme>[]).concat(
|
|
1885
|
-
MouseRules,
|
|
1886
|
-
HelperRules,
|
|
1887
|
-
ElevationRules,
|
|
1888
|
-
VisibilityRules
|
|
1889
|
-
),
|
|
1890
|
-
shortcuts: ([] as UserShortcuts<QuasarTheme>[]).concat(
|
|
1891
|
-
QIconShortcuts,
|
|
1892
|
-
QAjaxBarShortcuts,
|
|
1893
|
-
QAvatarShortcuts,
|
|
1894
|
-
QBadgeShortcuts,
|
|
1895
|
-
QBreadcrumbsShortcuts,
|
|
1896
|
-
QBannerShortcuts,
|
|
1897
|
-
QBarShortcuts,
|
|
1898
|
-
QBtnShortcuts,
|
|
1899
|
-
QBtnDropdownShortcuts,
|
|
1900
|
-
QBtnGroupShortcuts,
|
|
1901
|
-
QBtnToggleShortcuts,
|
|
1902
|
-
QCardShortcuts,
|
|
1903
|
-
QCarouselShortcuts,
|
|
1904
|
-
QChatMessageShortcuts,
|
|
1905
|
-
QCheckboxShortcuts,
|
|
1906
|
-
QChipShortcuts,
|
|
1907
|
-
QCircularProgressShortcuts,
|
|
1908
|
-
QColorPickerShortcuts,
|
|
1909
|
-
QDateShortcuts,
|
|
1910
|
-
QDialogShortcuts,
|
|
1911
|
-
QEditorShortcuts,
|
|
1912
|
-
QExpansionItemShortcuts,
|
|
1913
|
-
QFabShortcuts,
|
|
1914
|
-
QFieldShortcuts,
|
|
1915
|
-
QFileShortcuts,
|
|
1916
|
-
QFormShortcuts,
|
|
1917
|
-
QImgShortcuts,
|
|
1918
|
-
QInnerLoadingShortcuts,
|
|
1919
|
-
QInputShortcuts,
|
|
1920
|
-
QIntersectionShortcuts,
|
|
1921
|
-
QItemShortcuts,
|
|
1922
|
-
QKnobShortcuts,
|
|
1923
|
-
QLayoutShortcuts,
|
|
1924
|
-
QLinearProgressShortcuts,
|
|
1925
|
-
QMenuShortcuts,
|
|
1926
|
-
QOptionGroupShortcuts,
|
|
1927
|
-
QPageShortcuts,
|
|
1928
|
-
QPageStickyShortcuts,
|
|
1929
|
-
QPaginationShortcuts,
|
|
1930
|
-
QParallaxShortcuts,
|
|
1931
|
-
QPopupEditShortcuts,
|
|
1932
|
-
QPullToRefreshShortcuts,
|
|
1933
|
-
QRadioShortcuts,
|
|
1934
|
-
QRatingShortcuts,
|
|
1935
|
-
QResponsiveShortcuts,
|
|
1936
|
-
QScrollareaShortcuts,
|
|
1937
|
-
QSelectShortcuts,
|
|
1938
|
-
QSeparatorShortcuts,
|
|
1939
|
-
QSkeletonShortcuts,
|
|
1940
|
-
QSlideItemShortcuts,
|
|
1941
|
-
QSliderShortcuts,
|
|
1942
|
-
QSpaceShortcuts,
|
|
1943
|
-
QSpinnerShortcuts,
|
|
1944
|
-
QSplitterShortcuts,
|
|
1945
|
-
QStepperShortcuts,
|
|
1946
|
-
QTabPanelShortcuts,
|
|
1947
|
-
QTableShortcuts,
|
|
1948
|
-
QTabsShortcuts,
|
|
1949
|
-
QTimeShortcuts,
|
|
1950
|
-
QTimelineShortcuts,
|
|
1951
|
-
QToggleShortcuts,
|
|
1952
|
-
QToolbarShortcuts,
|
|
1953
|
-
QTooltipShortcuts,
|
|
1954
|
-
QTreeShortcuts,
|
|
1955
|
-
QUploaderShortcuts,
|
|
1956
|
-
QVideoShortcuts,
|
|
1957
|
-
QVirtualScrollShortcuts,
|
|
1958
|
-
PanelShortcuts,
|
|
1959
|
-
|
|
1960
|
-
QMorphShortcuts,
|
|
1961
|
-
QRippleShortcuts,
|
|
1962
|
-
|
|
1963
|
-
QBottomSheetShortcuts,
|
|
1964
|
-
QDialogPluginShortcuts,
|
|
1965
|
-
QLoadingShortcuts,
|
|
1966
|
-
QNotifyShortcuts,
|
|
1967
|
-
DarkShortcuts,
|
|
1968
|
-
FlexShortcuts,
|
|
1969
|
-
HelperShortcuts,
|
|
1970
|
-
MouseShortcuts,
|
|
1971
|
-
OrientationShortcuts,
|
|
1972
|
-
PositionShortcuts,
|
|
1973
|
-
SizeShortcuts,
|
|
1974
|
-
TouchShortcuts,
|
|
1975
|
-
TransitionsShortcuts,
|
|
1976
|
-
TypographyShortcuts,
|
|
1977
|
-
VisibilityShortcuts,
|
|
1978
|
-
QHeaderShortcuts,
|
|
1979
|
-
QFooterShortcuts,
|
|
1980
|
-
QDrawerShortcuts,
|
|
1981
|
-
ElevationShortcuts
|
|
1982
|
-
),
|
|
1983
|
-
theme: defaultTheme,
|
|
1984
|
-
variants: [
|
|
1985
|
-
// ...
|
|
1986
|
-
],
|
|
1987
|
-
extractors: [
|
|
1988
|
-
{
|
|
1989
|
-
name: 'quasar-extractor',
|
|
1990
|
-
order: 0,
|
|
1991
|
-
extract({ code }) {
|
|
1992
|
-
const kebabMatch = code.matchAll(/q-(\w)([\w-]*)/g)
|
|
1993
|
-
const pascalMatch = code.matchAll(/Q([A-Z][a-z0-9]+)+/g)
|
|
1994
|
-
const transitionMatch = code.matchAll(
|
|
1995
|
-
/(transition|transition-show|transition-hide)="(\S*)"/g
|
|
1996
|
-
)
|
|
1997
|
-
const colorMatch = code.matchAll(/color="(\S*)"/g)
|
|
1998
|
-
|
|
1999
|
-
const matches: string[] = []
|
|
2000
|
-
for (const match of kebabMatch) matches.push(match[0])
|
|
2001
|
-
for (const match of pascalMatch) {
|
|
2002
|
-
matches.push(toKebabCase(match[0]))
|
|
2003
1878
|
}
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
1879
|
+
] as Preflight<QuasarTheme>[]
|
|
1880
|
+
).concat(
|
|
1881
|
+
QBreadcrumbsPreflights,
|
|
1882
|
+
QCheckboxPreflights,
|
|
1883
|
+
QChipPreflights,
|
|
1884
|
+
QCircularProgressPreflights,
|
|
1885
|
+
QDialogPreflights,
|
|
1886
|
+
QFieldPreflights,
|
|
1887
|
+
QLayoutPreflights,
|
|
1888
|
+
QLinearProgressPreflights,
|
|
1889
|
+
QRadioPreflights,
|
|
1890
|
+
QSelectPreflights,
|
|
1891
|
+
QSpinnerPreflights,
|
|
1892
|
+
QSkeletonPreflights,
|
|
1893
|
+
QTablePreflights,
|
|
1894
|
+
QTogglePreflights,
|
|
1895
|
+
QTreePreflights,
|
|
1896
|
+
ColorPreflights,
|
|
1897
|
+
DarkPreflights,
|
|
1898
|
+
HelperPreflights,
|
|
1899
|
+
MousePreflights,
|
|
1900
|
+
TypographyPreflights,
|
|
1901
|
+
VisibilityPreflights,
|
|
1902
|
+
TransitionPreflights,
|
|
1903
|
+
SizePreflights
|
|
1904
|
+
),
|
|
1905
|
+
rules: ([] as Rule<QuasarTheme>[]).concat(
|
|
1906
|
+
MouseRules,
|
|
1907
|
+
HelperRules,
|
|
1908
|
+
ElevationRules,
|
|
1909
|
+
VisibilityRules
|
|
1910
|
+
),
|
|
1911
|
+
shortcuts: ([] as UserShortcuts<QuasarTheme>[]).concat(
|
|
1912
|
+
QIconShortcuts,
|
|
1913
|
+
QAjaxBarShortcuts,
|
|
1914
|
+
QAvatarShortcuts,
|
|
1915
|
+
QBadgeShortcuts,
|
|
1916
|
+
QBreadcrumbsShortcuts,
|
|
1917
|
+
QBannerShortcuts,
|
|
1918
|
+
QBarShortcuts,
|
|
1919
|
+
QBtnShortcuts,
|
|
1920
|
+
QBtnDropdownShortcuts,
|
|
1921
|
+
QBtnGroupShortcuts,
|
|
1922
|
+
QBtnToggleShortcuts,
|
|
1923
|
+
QCardShortcuts,
|
|
1924
|
+
QCarouselShortcuts,
|
|
1925
|
+
QChatMessageShortcuts,
|
|
1926
|
+
QCheckboxShortcuts,
|
|
1927
|
+
QChipShortcuts,
|
|
1928
|
+
QCircularProgressShortcuts,
|
|
1929
|
+
QColorPickerShortcuts,
|
|
1930
|
+
QDateShortcuts,
|
|
1931
|
+
QDialogShortcuts,
|
|
1932
|
+
QEditorShortcuts,
|
|
1933
|
+
QExpansionItemShortcuts,
|
|
1934
|
+
QFabShortcuts,
|
|
1935
|
+
QFieldShortcuts,
|
|
1936
|
+
QFileShortcuts,
|
|
1937
|
+
QFormShortcuts,
|
|
1938
|
+
QImgShortcuts,
|
|
1939
|
+
QInnerLoadingShortcuts,
|
|
1940
|
+
QInputShortcuts,
|
|
1941
|
+
QIntersectionShortcuts,
|
|
1942
|
+
QItemShortcuts,
|
|
1943
|
+
QKnobShortcuts,
|
|
1944
|
+
QLayoutShortcuts,
|
|
1945
|
+
QLinearProgressShortcuts,
|
|
1946
|
+
QMenuShortcuts,
|
|
1947
|
+
QOptionGroupShortcuts,
|
|
1948
|
+
QPageShortcuts,
|
|
1949
|
+
QPageStickyShortcuts,
|
|
1950
|
+
QPaginationShortcuts,
|
|
1951
|
+
QParallaxShortcuts,
|
|
1952
|
+
QPopupEditShortcuts,
|
|
1953
|
+
QPullToRefreshShortcuts,
|
|
1954
|
+
QRadioShortcuts,
|
|
1955
|
+
QRatingShortcuts,
|
|
1956
|
+
QResponsiveShortcuts,
|
|
1957
|
+
QScrollareaShortcuts,
|
|
1958
|
+
QSelectShortcuts,
|
|
1959
|
+
QSeparatorShortcuts,
|
|
1960
|
+
QSkeletonShortcuts,
|
|
1961
|
+
QSlideItemShortcuts,
|
|
1962
|
+
QSliderShortcuts,
|
|
1963
|
+
QSpaceShortcuts,
|
|
1964
|
+
QSpinnerShortcuts,
|
|
1965
|
+
QSplitterShortcuts,
|
|
1966
|
+
QStepperShortcuts,
|
|
1967
|
+
QTabPanelShortcuts,
|
|
1968
|
+
QTableShortcuts,
|
|
1969
|
+
QTabsShortcuts,
|
|
1970
|
+
QTimeShortcuts,
|
|
1971
|
+
QTimelineShortcuts,
|
|
1972
|
+
QToggleShortcuts,
|
|
1973
|
+
QToolbarShortcuts,
|
|
1974
|
+
QTooltipShortcuts,
|
|
1975
|
+
QTreeShortcuts,
|
|
1976
|
+
QUploaderShortcuts,
|
|
1977
|
+
QVideoShortcuts,
|
|
1978
|
+
QVirtualScrollShortcuts,
|
|
1979
|
+
PanelShortcuts,
|
|
1980
|
+
|
|
1981
|
+
QMorphShortcuts,
|
|
1982
|
+
QRippleShortcuts,
|
|
1983
|
+
|
|
1984
|
+
QBottomSheetShortcuts,
|
|
1985
|
+
QDialogPluginShortcuts,
|
|
1986
|
+
QLoadingShortcuts,
|
|
1987
|
+
QNotifyShortcuts,
|
|
1988
|
+
DarkShortcuts,
|
|
1989
|
+
FlexShortcuts,
|
|
1990
|
+
HelperShortcuts,
|
|
1991
|
+
MouseShortcuts,
|
|
1992
|
+
OrientationShortcuts,
|
|
1993
|
+
PositionShortcuts,
|
|
1994
|
+
SizeShortcuts,
|
|
1995
|
+
TouchShortcuts,
|
|
1996
|
+
TransitionsShortcuts,
|
|
1997
|
+
TypographyShortcuts,
|
|
1998
|
+
VisibilityShortcuts,
|
|
1999
|
+
QHeaderShortcuts,
|
|
2000
|
+
QFooterShortcuts,
|
|
2001
|
+
QDrawerShortcuts,
|
|
2002
|
+
ElevationShortcuts
|
|
2003
|
+
),
|
|
2004
|
+
layers: {
|
|
2005
|
+
dismiss: -1,
|
|
2006
|
+
default: 1
|
|
2007
|
+
},
|
|
2008
|
+
theme: defaultTheme,
|
|
2009
|
+
variants: [
|
|
2010
|
+
// ...
|
|
2011
|
+
],
|
|
2012
|
+
extractors: [
|
|
2013
|
+
{
|
|
2014
|
+
name: 'quasar-extractor',
|
|
2015
|
+
order: 0,
|
|
2016
|
+
extract({ code }) {
|
|
2017
|
+
const kebabMatch = code.matchAll(/q-(\w)([\w-]*)/g)
|
|
2018
|
+
const pascalMatch = code.matchAll(/Q([A-Z][a-z0-9]+)+/g)
|
|
2019
|
+
const transitionMatch = code.matchAll(
|
|
2020
|
+
/(transition|transition-show|transition-hide|transition-prev|transition-next)="(\S*)"/g
|
|
2015
2021
|
)
|
|
2022
|
+
const colorMatch = code.matchAll(/color="(\S*)"/g)
|
|
2023
|
+
|
|
2024
|
+
const matches: string[] = []
|
|
2025
|
+
for (const match of kebabMatch) matches.push(match[0])
|
|
2026
|
+
for (const match of pascalMatch) {
|
|
2027
|
+
matches.push(toKebabCase(match[0]))
|
|
2028
|
+
}
|
|
2029
|
+
const transitionClasses = []
|
|
2030
|
+
for (const match of transitionMatch) {
|
|
2031
|
+
transitionClasses.push(
|
|
2032
|
+
...[
|
|
2033
|
+
'enter-from',
|
|
2034
|
+
'enter-active',
|
|
2035
|
+
'enter-to',
|
|
2036
|
+
'leave-from',
|
|
2037
|
+
'leave-active',
|
|
2038
|
+
'leave-to'
|
|
2039
|
+
].map((v) => `q-transition--${match[2]}-${v}`)
|
|
2040
|
+
)
|
|
2041
|
+
}
|
|
2042
|
+
const colorClasses = []
|
|
2043
|
+
for (const match of colorMatch) {
|
|
2044
|
+
colorClasses.push(`text-${match[1]}`, `bg-${match[1]}`)
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
const classes = qClasses.filter((c) =>
|
|
2048
|
+
matches.some((component) => {
|
|
2049
|
+
component = component.replaceAll('q-chat-message', 'q-message')
|
|
2050
|
+
return c.includes(component)
|
|
2051
|
+
})
|
|
2052
|
+
)
|
|
2053
|
+
classes.push(...transitionClasses, ...colorClasses)
|
|
2054
|
+
return classes
|
|
2016
2055
|
}
|
|
2017
|
-
const colorClasses = []
|
|
2018
|
-
for (const match of colorMatch) {
|
|
2019
|
-
colorClasses.push(`text-${match[1]}`, `bg-${match[1]}`)
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
const classes = qClasses.filter((c) =>
|
|
2023
|
-
matches.some((component) => c.includes(component))
|
|
2024
|
-
)
|
|
2025
|
-
classes.push(...transitionClasses, ...colorClasses)
|
|
2026
|
-
return classes
|
|
2027
2056
|
}
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2057
|
+
],
|
|
2058
|
+
transformers: [
|
|
2059
|
+
transformerVariantGroup()
|
|
2060
|
+
// {
|
|
2061
|
+
// name: 'find-classes-in-quasar-src',
|
|
2062
|
+
// enforce: 'pre', // enforce before other transformers
|
|
2063
|
+
// idFilter(id) {
|
|
2064
|
+
// return id.match(/quasar\/src\/.*\.js/)
|
|
2065
|
+
// },
|
|
2066
|
+
// async transform(code, id, { uno }) {
|
|
2067
|
+
// for (const c of baseSafelist) {
|
|
2068
|
+
// if (code.toString().includes(c)) console.log(c)
|
|
2069
|
+
// }
|
|
2070
|
+
// return code
|
|
2071
|
+
// // code is a MagicString instance
|
|
2072
|
+
// }
|
|
2073
|
+
// }
|
|
2074
|
+
]
|
|
2075
|
+
} as Preset
|
|
2076
|
+
]
|
|
2048
2077
|
})
|
|
2049
2078
|
|
|
2050
2079
|
export const defaultSplitRE = /[\\:]?[\s'"`;{}]+/g
|
|
@@ -7,7 +7,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
7
7
|
[
|
|
8
8
|
/^q-loading__backdrop$/,
|
|
9
9
|
([, c], { theme }) =>
|
|
10
|
-
`fixed top-0 right-0 bottom-0 left-0 opacity-50 bg-[#000] [transition:background-color_0.28s]`
|
|
10
|
+
`fixed top-0 right-0 bottom-0 left-0 opacity-50 bg-[#000] [transition:background-color_0.28s] z--1`
|
|
11
11
|
],
|
|
12
12
|
|
|
13
13
|
[
|
|
@@ -43,7 +43,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
43
43
|
[
|
|
44
44
|
/^q-notifications__list$/,
|
|
45
45
|
([, c], { theme }) =>
|
|
46
|
-
`pointer-events-none left-0 right-0 mb-[10px] relative z
|
|
46
|
+
`pointer-events-none left-0 right-0 mb-[10px] relative z-${theme.quasar.z['notify']}`
|
|
47
47
|
],
|
|
48
48
|
|
|
49
49
|
[/^q-notifications__list--center$/, ([, c], { theme }) => `top-0 bottom-0`],
|
|
@@ -56,7 +56,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
56
56
|
/^q-notification$/,
|
|
57
57
|
([, c], { theme }) =>
|
|
58
58
|
`[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] inline-flex mt-[10px] mx-[10px] mb-[0] [transition:transform_1s,_opacity_1s] flex-shrink-0 max-w-[95vw] bg-[#323232] text-[#fff] text-[14px]
|
|
59
|
-
sm:max-w-65vw z
|
|
59
|
+
sm:max-w-65vw z-${theme.quasar.z['notify']} pointer-events-all`
|
|
60
60
|
],
|
|
61
61
|
|
|
62
62
|
[
|
|
@@ -129,92 +129,110 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
129
129
|
|
|
130
130
|
[
|
|
131
131
|
/^q-notification--top-left-enter-from$/,
|
|
132
|
-
([, c], { theme }) =>
|
|
132
|
+
([, c], { theme }) =>
|
|
133
|
+
`opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
|
|
133
134
|
],
|
|
134
135
|
|
|
135
136
|
[
|
|
136
137
|
/^q-notification--top-left-leave-to$/,
|
|
137
|
-
([, c], { theme }) =>
|
|
138
|
+
([, c], { theme }) =>
|
|
139
|
+
`opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
|
|
138
140
|
],
|
|
139
141
|
|
|
140
142
|
[
|
|
141
143
|
/^q-notification--top-enter-from$/,
|
|
142
|
-
([, c], { theme }) =>
|
|
144
|
+
([, c], { theme }) =>
|
|
145
|
+
`opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
|
|
143
146
|
],
|
|
144
147
|
|
|
145
148
|
[
|
|
146
149
|
/^q-notification--top-leave-to$/,
|
|
147
|
-
([, c], { theme }) =>
|
|
150
|
+
([, c], { theme }) =>
|
|
151
|
+
`opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
|
|
148
152
|
],
|
|
149
153
|
|
|
150
154
|
[
|
|
151
155
|
/^q-notification--top-right-enter-from$/,
|
|
152
|
-
([, c], { theme }) =>
|
|
156
|
+
([, c], { theme }) =>
|
|
157
|
+
`opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
|
|
153
158
|
],
|
|
154
159
|
|
|
155
160
|
[
|
|
156
161
|
/^q-notification--top-right-leave-to$/,
|
|
157
|
-
([, c], { theme }) =>
|
|
162
|
+
([, c], { theme }) =>
|
|
163
|
+
`opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
|
|
158
164
|
],
|
|
159
165
|
|
|
160
166
|
[
|
|
161
167
|
/^q-notification--left-enter-from$/,
|
|
162
|
-
([, c], { theme }) =>
|
|
168
|
+
([, c], { theme }) =>
|
|
169
|
+
`opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
|
|
163
170
|
],
|
|
164
171
|
|
|
165
172
|
[
|
|
166
173
|
/^q-notification--left-leave-to$/,
|
|
167
|
-
([, c], { theme }) =>
|
|
174
|
+
([, c], { theme }) =>
|
|
175
|
+
`opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
|
|
168
176
|
],
|
|
169
177
|
|
|
170
178
|
[
|
|
171
179
|
/^q-notification--center-enter-from$/,
|
|
172
|
-
([, c], { theme }) =>
|
|
180
|
+
([, c], { theme }) =>
|
|
181
|
+
`opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
|
|
173
182
|
],
|
|
174
183
|
|
|
175
184
|
[
|
|
176
185
|
/^q-notification--center-leave-to$/,
|
|
177
|
-
([, c], { theme }) =>
|
|
186
|
+
([, c], { theme }) =>
|
|
187
|
+
`opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
|
|
178
188
|
],
|
|
179
189
|
|
|
180
190
|
[
|
|
181
191
|
/^q-notification--right-enter-from$/,
|
|
182
|
-
([, c], { theme }) =>
|
|
192
|
+
([, c], { theme }) =>
|
|
193
|
+
`opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
|
|
183
194
|
],
|
|
184
195
|
|
|
185
196
|
[
|
|
186
197
|
/^q-notification--right-leave-to$/,
|
|
187
|
-
([, c], { theme }) =>
|
|
198
|
+
([, c], { theme }) =>
|
|
199
|
+
`opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
|
|
188
200
|
],
|
|
189
201
|
|
|
190
202
|
[
|
|
191
203
|
/^q-notification--bottom-left-enter-from$/,
|
|
192
|
-
([, c], { theme }) =>
|
|
204
|
+
([, c], { theme }) =>
|
|
205
|
+
`opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
|
|
193
206
|
],
|
|
194
207
|
|
|
195
208
|
[
|
|
196
209
|
/^q-notification--bottom-left-leave-to$/,
|
|
197
|
-
([, c], { theme }) =>
|
|
210
|
+
([, c], { theme }) =>
|
|
211
|
+
`opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
|
|
198
212
|
],
|
|
199
213
|
|
|
200
214
|
[
|
|
201
215
|
/^q-notification--bottom-enter-from$/,
|
|
202
|
-
([, c], { theme }) =>
|
|
216
|
+
([, c], { theme }) =>
|
|
217
|
+
`opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
|
|
203
218
|
],
|
|
204
219
|
|
|
205
220
|
[
|
|
206
221
|
/^q-notification--bottom-leave-to$/,
|
|
207
|
-
([, c], { theme }) =>
|
|
222
|
+
([, c], { theme }) =>
|
|
223
|
+
`opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
|
|
208
224
|
],
|
|
209
225
|
|
|
210
226
|
[
|
|
211
227
|
/^q-notification--bottom-right-enter-from$/,
|
|
212
|
-
([, c], { theme }) =>
|
|
228
|
+
([, c], { theme }) =>
|
|
229
|
+
`opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
|
|
213
230
|
],
|
|
214
231
|
|
|
215
232
|
[
|
|
216
233
|
/^q-notification--bottom-right-leave-to$/,
|
|
217
|
-
([, c], { theme }) =>
|
|
234
|
+
([, c], { theme }) =>
|
|
235
|
+
`opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
|
|
218
236
|
],
|
|
219
237
|
|
|
220
238
|
[
|
|
@@ -17,7 +17,7 @@ export interface QuasarTheme {
|
|
|
17
17
|
warning: string
|
|
18
18
|
|
|
19
19
|
'dark-page': string
|
|
20
|
-
|
|
20
|
+
dark: string
|
|
21
21
|
|
|
22
22
|
red: string
|
|
23
23
|
'red-1': string
|
|
@@ -1155,7 +1155,7 @@ const defaultTheme: QuasarTheme = {
|
|
|
1155
1155
|
warning: '#F2C037',
|
|
1156
1156
|
|
|
1157
1157
|
'dark-page': '#121212',
|
|
1158
|
-
|
|
1158
|
+
dark: '#1d1d1d',
|
|
1159
1159
|
|
|
1160
1160
|
red: '#f44336',
|
|
1161
1161
|
'red-1': '#ffebee',
|