@flux-ui/components 3.0.0-next.67 → 3.0.0-next.68
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/README.md +1 -1
- package/dist/component/FluxLayerPane.vue.d.ts +5 -1
- package/dist/index.css +65 -19
- package/dist/index.d.ts +1 -1
- package/dist/index.js +554 -336
- package/dist/index.js.map +1 -1
- package/dist/vite.js.map +1 -1
- package/package.json +11 -11
- package/src/component/FluxLayerPane.vue +17 -1
- package/src/css/component/Flyout.module.scss +1 -1
- package/src/css/component/LayerPane.module.scss +69 -7
- package/src/css/component/Overlay.module.scss +8 -7
- package/src/css/component/Transition.module.scss +4 -4
- package/src/index.ts +1 -0
package/dist/vite.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.js","names":[],"sources":["../src/vite/defineFilterMacro.ts"],"sourcesContent":["import type { Plugin } from 'vite';\n\nconst SCRIPT_SETUP_REGEX = /<script\\b([^>]*)\\bsetup\\b([^>]*)>([\\s\\S]*?)<\\/script>/gi;\n\nfunction defineFilterMacro(): Plugin {\n return {\n name: '@flux-ui/components/define-filter-macro',\n enforce: 'pre',\n\n transform(code, id) {\n if (!id.endsWith('.vue')) {\n return;\n }\n\n if (!code.includes('defineFilter')) {\n return;\n }\n\n let transformed = false;\n\n const newCode = code.replace(SCRIPT_SETUP_REGEX, (match, before, after, content) => {\n if (!content.includes('defineFilter')) {\n return match;\n }\n\n if (content.includes('__filterDefinitionFactory')) {\n return match;\n }\n\n if (containsTopLevelCall(content, 'defineOptions')) {\n return match;\n }\n\n const wrapped = wrapDefineFilter(content);\n\n if (wrapped === content) {\n return match;\n }\n\n transformed = true;\n return `<script${before}setup${after}>${wrapped}</script>`;\n });\n\n if (!transformed) {\n return;\n }\n\n return {\n code: newCode,\n map: null\n };\n }\n };\n}\n\nexport default defineFilterMacro;\n\nfunction wrapDefineFilter(content: string): string {\n const range = findTopLevelCall(content, 'defineFilter');\n\n if (!range) {\n return content;\n }\n\n const callExpression = content.slice(range.callStart, range.callEnd);\n const replacement = `defineOptions({\\n __filterDefinitionFactory: ${callExpression}\\n})`;\n\n return content.slice(0, range.callStart) + replacement + content.slice(range.callEnd);\n}\n\nfunction containsTopLevelCall(content: string, name: string): boolean {\n return findTopLevelCall(content, name) !== null;\n}\n\ntype CallRange = {\n readonly callStart: number;\n readonly callEnd: number;\n};\n\nfunction findTopLevelCall(content: string, name: string): CallRange | null {\n let parenDepth = 0;\n let braceDepth = 0;\n let bracketDepth = 0;\n let inString: string | null = null;\n let inComment: 'single' | 'multi' | null = null;\n\n let i = 0;\n\n while (i < content.length) {\n const c = content[i];\n const n = content[i + 1];\n\n if (inComment === 'single') {\n if (c === '\\n') {\n inComment = null;\n }\n\n i++;\n continue;\n }\n\n if (inComment === 'multi') {\n if (c === '*' && n === '/') {\n inComment = null;\n i += 2;\n continue;\n }\n\n i++;\n continue;\n }\n\n if (inString) {\n if (c === '\\\\') {\n i += 2;\n continue;\n }\n\n if (c === inString) {\n inString = null;\n }\n\n i++;\n continue;\n }\n\n if (c === '/' && n === '/') {\n inComment = 'single';\n i += 2;\n continue;\n }\n\n if (c === '/' && n === '*') {\n inComment = 'multi';\n i += 2;\n continue;\n }\n\n if (c === '\"' || c === '\\'' || c === '`') {\n inString = c;\n i++;\n continue;\n }\n\n if (c === '(') {\n parenDepth++;\n i++;\n continue;\n }\n\n if (c === ')') {\n parenDepth--;\n i++;\n continue;\n }\n\n if (c === '{') {\n braceDepth++;\n i++;\n continue;\n }\n\n if (c === '}') {\n braceDepth--;\n i++;\n continue;\n }\n\n if (c === '[') {\n bracketDepth++;\n i++;\n continue;\n }\n\n if (c === ']') {\n bracketDepth--;\n i++;\n continue;\n }\n\n const isTopLevel = parenDepth === 0 && braceDepth === 0 && bracketDepth === 0;\n\n if (!isTopLevel || !content.startsWith(name, i)) {\n i++;\n continue;\n }\n\n const prevChar = i > 0 ? content[i - 1] : '';\n\n if (/[A-Za-z0-9_$]/.test(prevChar)) {\n i++;\n continue;\n }\n\n const afterName = i + name.length;\n const nextChar = content[afterName];\n\n if (nextChar && /[A-Za-z0-9_$]/.test(nextChar)) {\n i++;\n continue;\n }\n\n const callOpen = skipGenericAndWhitespace(content, afterName);\n\n if (callOpen === -1 || content[callOpen] !== '(') {\n i++;\n continue;\n }\n\n const callClose = matchClosingParen(content, callOpen);\n\n if (callClose === -1) {\n return null;\n }\n\n return {\n callStart: i,\n callEnd: callClose + 1\n };\n }\n\n return null;\n}\n\nfunction skipGenericAndWhitespace(content: string, start: number): number {\n let i = start;\n\n while (i < content.length && /\\s/.test(content[i])) {\n i++;\n }\n\n if (content[i] !== '<') {\n return i;\n }\n\n let depth = 1;\n i++;\n\n while (i < content.length && depth > 0) {\n const c = content[i];\n\n if (c === '<') {\n depth++;\n } else if (c === '>') {\n depth--;\n }\n\n i++;\n }\n\n while (i < content.length && /\\s/.test(content[i])) {\n i++;\n }\n\n return i;\n}\n\nfunction matchClosingParen(content: string, openIndex: number): number {\n let depth = 1;\n let inString: string | null = null;\n let inComment: 'single' | 'multi' | null = null;\n\n let i = openIndex + 1;\n\n while (i < content.length) {\n const c = content[i];\n const n = content[i + 1];\n\n if (inComment === 'single') {\n if (c === '\\n') {\n inComment = null;\n }\n\n i++;\n continue;\n }\n\n if (inComment === 'multi') {\n if (c === '*' && n === '/') {\n inComment = null;\n i += 2;\n continue;\n }\n\n i++;\n continue;\n }\n\n if (inString) {\n if (c === '\\\\') {\n i += 2;\n continue;\n }\n\n if (c === inString) {\n inString = null;\n }\n\n i++;\n continue;\n }\n\n if (c === '/' && n === '/') {\n inComment = 'single';\n i += 2;\n continue;\n }\n\n if (c === '/' && n === '*') {\n inComment = 'multi';\n i += 2;\n continue;\n }\n\n if (c === '\"' || c === '\\'' || c === '`') {\n inString = c;\n i++;\n continue;\n }\n\n if (c === '(') {\n depth++;\n } else if (c === ')') {\n depth--;\n\n if (depth === 0) {\n return i;\n }\n }\n\n i++;\n }\n\n return -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":["../src/vite/defineFilterMacro.ts"],"sourcesContent":["import type { Plugin } from 'vite';\n\nconst SCRIPT_SETUP_REGEX = /<script\\b([^>]*)\\bsetup\\b([^>]*)>([\\s\\S]*?)<\\/script>/gi;\n\nfunction defineFilterMacro(): Plugin {\n return {\n name: '@flux-ui/components/define-filter-macro',\n enforce: 'pre',\n\n transform(code, id) {\n if (!id.endsWith('.vue')) {\n return;\n }\n\n if (!code.includes('defineFilter')) {\n return;\n }\n\n let transformed = false;\n\n const newCode = code.replace(SCRIPT_SETUP_REGEX, (match, before, after, content) => {\n if (!content.includes('defineFilter')) {\n return match;\n }\n\n if (content.includes('__filterDefinitionFactory')) {\n return match;\n }\n\n if (containsTopLevelCall(content, 'defineOptions')) {\n return match;\n }\n\n const wrapped = wrapDefineFilter(content);\n\n if (wrapped === content) {\n return match;\n }\n\n transformed = true;\n return `<script${before}setup${after}>${wrapped}</script>`;\n });\n\n if (!transformed) {\n return;\n }\n\n return {\n code: newCode,\n map: null\n };\n }\n };\n}\n\nexport default defineFilterMacro;\n\nfunction wrapDefineFilter(content: string): string {\n const range = findTopLevelCall(content, 'defineFilter');\n\n if (!range) {\n return content;\n }\n\n const callExpression = content.slice(range.callStart, range.callEnd);\n const replacement = `defineOptions({\\n __filterDefinitionFactory: ${callExpression}\\n})`;\n\n return content.slice(0, range.callStart) + replacement + content.slice(range.callEnd);\n}\n\nfunction containsTopLevelCall(content: string, name: string): boolean {\n return findTopLevelCall(content, name) !== null;\n}\n\ntype CallRange = {\n readonly callStart: number;\n readonly callEnd: number;\n};\n\nfunction findTopLevelCall(content: string, name: string): CallRange | null {\n let parenDepth = 0;\n let braceDepth = 0;\n let bracketDepth = 0;\n let inString: string | null = null;\n let inComment: 'single' | 'multi' | null = null;\n\n let i = 0;\n\n while (i < content.length) {\n const c = content[i];\n const n = content[i + 1];\n\n if (inComment === 'single') {\n if (c === '\\n') {\n inComment = null;\n }\n\n i++;\n continue;\n }\n\n if (inComment === 'multi') {\n if (c === '*' && n === '/') {\n inComment = null;\n i += 2;\n continue;\n }\n\n i++;\n continue;\n }\n\n if (inString) {\n if (c === '\\\\') {\n i += 2;\n continue;\n }\n\n if (c === inString) {\n inString = null;\n }\n\n i++;\n continue;\n }\n\n if (c === '/' && n === '/') {\n inComment = 'single';\n i += 2;\n continue;\n }\n\n if (c === '/' && n === '*') {\n inComment = 'multi';\n i += 2;\n continue;\n }\n\n if (c === '\"' || c === '\\'' || c === '`') {\n inString = c;\n i++;\n continue;\n }\n\n if (c === '(') {\n parenDepth++;\n i++;\n continue;\n }\n\n if (c === ')') {\n parenDepth--;\n i++;\n continue;\n }\n\n if (c === '{') {\n braceDepth++;\n i++;\n continue;\n }\n\n if (c === '}') {\n braceDepth--;\n i++;\n continue;\n }\n\n if (c === '[') {\n bracketDepth++;\n i++;\n continue;\n }\n\n if (c === ']') {\n bracketDepth--;\n i++;\n continue;\n }\n\n const isTopLevel = parenDepth === 0 && braceDepth === 0 && bracketDepth === 0;\n\n if (!isTopLevel || !content.startsWith(name, i)) {\n i++;\n continue;\n }\n\n const prevChar = i > 0 ? content[i - 1] : '';\n\n if (/[A-Za-z0-9_$]/.test(prevChar)) {\n i++;\n continue;\n }\n\n const afterName = i + name.length;\n const nextChar = content[afterName];\n\n if (nextChar && /[A-Za-z0-9_$]/.test(nextChar)) {\n i++;\n continue;\n }\n\n const callOpen = skipGenericAndWhitespace(content, afterName);\n\n if (callOpen === -1 || content[callOpen] !== '(') {\n i++;\n continue;\n }\n\n const callClose = matchClosingParen(content, callOpen);\n\n if (callClose === -1) {\n return null;\n }\n\n return {\n callStart: i,\n callEnd: callClose + 1\n };\n }\n\n return null;\n}\n\nfunction skipGenericAndWhitespace(content: string, start: number): number {\n let i = start;\n\n while (i < content.length && /\\s/.test(content[i])) {\n i++;\n }\n\n if (content[i] !== '<') {\n return i;\n }\n\n let depth = 1;\n i++;\n\n while (i < content.length && depth > 0) {\n const c = content[i];\n\n if (c === '<') {\n depth++;\n } else if (c === '>') {\n depth--;\n }\n\n i++;\n }\n\n while (i < content.length && /\\s/.test(content[i])) {\n i++;\n }\n\n return i;\n}\n\nfunction matchClosingParen(content: string, openIndex: number): number {\n let depth = 1;\n let inString: string | null = null;\n let inComment: 'single' | 'multi' | null = null;\n\n let i = openIndex + 1;\n\n while (i < content.length) {\n const c = content[i];\n const n = content[i + 1];\n\n if (inComment === 'single') {\n if (c === '\\n') {\n inComment = null;\n }\n\n i++;\n continue;\n }\n\n if (inComment === 'multi') {\n if (c === '*' && n === '/') {\n inComment = null;\n i += 2;\n continue;\n }\n\n i++;\n continue;\n }\n\n if (inString) {\n if (c === '\\\\') {\n i += 2;\n continue;\n }\n\n if (c === inString) {\n inString = null;\n }\n\n i++;\n continue;\n }\n\n if (c === '/' && n === '/') {\n inComment = 'single';\n i += 2;\n continue;\n }\n\n if (c === '/' && n === '*') {\n inComment = 'multi';\n i += 2;\n continue;\n }\n\n if (c === '\"' || c === '\\'' || c === '`') {\n inString = c;\n i++;\n continue;\n }\n\n if (c === '(') {\n depth++;\n } else if (c === ')') {\n depth--;\n\n if (depth === 0) {\n return i;\n }\n }\n\n i++;\n }\n\n return -1;\n}\n"],"mappings":";AAEA,IAAM,qBAAqB;AAE3B,SAAS,oBAA4B;CACjC,OAAO;EACH,MAAM;EACN,SAAS;EAET,UAAU,MAAM,IAAI;GAChB,IAAI,CAAC,GAAG,SAAS,MAAM,GACnB;GAGJ,IAAI,CAAC,KAAK,SAAS,cAAc,GAC7B;GAGJ,IAAI,cAAc;GAElB,MAAM,UAAU,KAAK,QAAQ,qBAAqB,OAAO,QAAQ,OAAO,YAAY;IAChF,IAAI,CAAC,QAAQ,SAAS,cAAc,GAChC,OAAO;IAGX,IAAI,QAAQ,SAAS,2BAA2B,GAC5C,OAAO;IAGX,IAAI,qBAAqB,SAAS,eAAe,GAC7C,OAAO;IAGX,MAAM,UAAU,iBAAiB,OAAO;IAExC,IAAI,YAAY,SACZ,OAAO;IAGX,cAAc;IACd,OAAO,UAAU,OAAO,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2B;CACnE,IAAI,QAAQ;CACZ,IAAI,WAA0B;CAC9B,IAAI,YAAuC;CAE3C,IAAI,IAAI,YAAY;CAEpB,OAAO,IAAI,QAAQ,QAAQ;EACvB,MAAM,IAAI,QAAQ;EAClB,MAAM,IAAI,QAAQ,IAAI;EAEtB,IAAI,cAAc,UAAU;GACxB,IAAI,MAAM,MACN,YAAY;GAGhB;GACA;EACJ;EAEA,IAAI,cAAc,SAAS;GACvB,IAAI,MAAM,OAAO,MAAM,KAAK;IACxB,YAAY;IACZ,KAAK;IACL;GACJ;GAEA;GACA;EACJ;EAEA,IAAI,UAAU;GACV,IAAI,MAAM,MAAM;IACZ,KAAK;IACL;GACJ;GAEA,IAAI,MAAM,UACN,WAAW;GAGf;GACA;EACJ;EAEA,IAAI,MAAM,OAAO,MAAM,KAAK;GACxB,YAAY;GACZ,KAAK;GACL;EACJ;EAEA,IAAI,MAAM,OAAO,MAAM,KAAK;GACxB,YAAY;GACZ,KAAK;GACL;EACJ;EAEA,IAAI,MAAM,QAAO,MAAM,OAAQ,MAAM,KAAK;GACtC,WAAW;GACX;GACA;EACJ;EAEA,IAAI,MAAM,KACN;OACG,IAAI,MAAM,KAAK;GAClB;GAEA,IAAI,UAAU,GACV,OAAO;EAEf;EAEA;CACJ;CAEA,OAAO;AACX"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flux-ui/components",
|
|
3
3
|
"description": "A set of opiniated UI components.",
|
|
4
|
-
"version": "3.0.0-next.
|
|
4
|
+
"version": "3.0.0-next.68",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/basmilius",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"**/dist/index.css"
|
|
56
56
|
],
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@basmilius/common": "^3.
|
|
59
|
-
"@basmilius/utils": "^3.
|
|
60
|
-
"@flux-ui/internals": "3.0.0-next.
|
|
61
|
-
"@flux-ui/types": "3.0.0-next.
|
|
58
|
+
"@basmilius/common": "^3.33.0",
|
|
59
|
+
"@basmilius/utils": "^3.33.0",
|
|
60
|
+
"@flux-ui/internals": "3.0.0-next.68",
|
|
61
|
+
"@flux-ui/types": "3.0.0-next.68",
|
|
62
62
|
"@fortawesome/fontawesome-common-types": "^7.2.0",
|
|
63
63
|
"clsx": "^2.1.1",
|
|
64
64
|
"imask": "^7.6.1",
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"luxon": "^3.7.2",
|
|
69
|
-
"vue": "^3.6.0-beta.
|
|
69
|
+
"vue": "^3.6.0-beta.12"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@basmilius/vite-preset": "^3.
|
|
72
|
+
"@basmilius/vite-preset": "^3.33.0",
|
|
73
73
|
"@types/lodash-es": "^4.17.12",
|
|
74
74
|
"@types/luxon": "^3.7.1",
|
|
75
|
-
"@types/node": "^25.
|
|
76
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
75
|
+
"@types/node": "^25.8.0",
|
|
76
|
+
"@vitejs/plugin-vue": "^6.0.7",
|
|
77
77
|
"@vue/tsconfig": "^0.9.1",
|
|
78
78
|
"sass-embedded": "^1.99.0",
|
|
79
79
|
"typescript": "^6.0.3",
|
|
80
|
-
"vite": "^8.0.
|
|
81
|
-
"vue-tsc": "^3.2.
|
|
80
|
+
"vite": "^8.0.13",
|
|
81
|
+
"vue-tsc": "^3.2.9"
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
:class="clsx(
|
|
4
|
+
color === 'gray' && $style.layerPaneGray,
|
|
5
|
+
color === 'primary' && $style.layerPanePrimary,
|
|
6
|
+
color === 'danger' && $style.layerPaneDanger,
|
|
7
|
+
color === 'info' && $style.layerPaneInfo,
|
|
8
|
+
color === 'success' && $style.layerPaneSuccess,
|
|
9
|
+
color === 'warning' && $style.layerPaneWarning
|
|
10
|
+
)">
|
|
3
11
|
<slot/>
|
|
4
12
|
</div>
|
|
5
13
|
</template>
|
|
@@ -7,9 +15,17 @@
|
|
|
7
15
|
<script
|
|
8
16
|
lang="ts"
|
|
9
17
|
setup>
|
|
18
|
+
import type { FluxColor } from '@flux-ui/types';
|
|
19
|
+
import { clsx } from 'clsx';
|
|
10
20
|
import type { VNode } from 'vue';
|
|
11
21
|
import $style from '~flux/components/css/component/LayerPane.module.scss';
|
|
12
22
|
|
|
23
|
+
const {
|
|
24
|
+
color = 'gray'
|
|
25
|
+
} = defineProps<{
|
|
26
|
+
readonly color?: FluxColor;
|
|
27
|
+
}>();
|
|
28
|
+
|
|
13
29
|
defineSlots<{
|
|
14
30
|
default(): VNode[];
|
|
15
31
|
}>();
|
|
@@ -1,23 +1,85 @@
|
|
|
1
1
|
.layerPane {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-flow: column;
|
|
4
|
-
border: 1px solid var(--surface-stroke-out);
|
|
5
|
-
border-radius: var(--radius);
|
|
6
|
-
background: var(--gray-50);
|
|
7
4
|
background-clip: padding-box;
|
|
5
|
+
border: 1px solid;
|
|
6
|
+
border-radius: var(--radius);
|
|
7
|
+
contain: paint;
|
|
8
|
+
|
|
9
|
+
> :local(.basePaneStructure) {
|
|
10
|
+
border-color: inherit;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.layerPaneGray {
|
|
15
|
+
composes: layerPane;
|
|
16
|
+
|
|
17
|
+
background-color: var(--gray-50);
|
|
18
|
+
border-color: var(--surface-stroke-out);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.layerPanePrimary {
|
|
22
|
+
composes: layerPane;
|
|
23
|
+
|
|
24
|
+
background-color: var(--primary-100);
|
|
25
|
+
border-color: var(--primary-200);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.layerPaneDanger {
|
|
29
|
+
composes: layerPane;
|
|
30
|
+
|
|
31
|
+
background-color: var(--danger-100);
|
|
32
|
+
border-color: var(--danger-200);
|
|
33
|
+
|
|
34
|
+
:local(.paneHeaderIcon) {
|
|
35
|
+
color: var(--danger-600);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.layerPaneInfo {
|
|
40
|
+
composes: layerPane;
|
|
41
|
+
|
|
42
|
+
background-color: var(--info-100);
|
|
43
|
+
border-color: var(--info-200);
|
|
44
|
+
|
|
45
|
+
:local(.paneHeaderIcon) {
|
|
46
|
+
color: var(--info-600);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.layerPaneSuccess {
|
|
51
|
+
composes: layerPane;
|
|
52
|
+
|
|
53
|
+
background-color: var(--success-100);
|
|
54
|
+
border-color: var(--success-200);
|
|
55
|
+
|
|
56
|
+
:local(.paneHeaderIcon) {
|
|
57
|
+
color: var(--success-600);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.layerPaneWarning {
|
|
62
|
+
composes: layerPane;
|
|
63
|
+
|
|
64
|
+
background-color: var(--warning-100);
|
|
65
|
+
border-color: var(--warning-200);
|
|
66
|
+
|
|
67
|
+
:local(.paneHeaderIcon) {
|
|
68
|
+
color: var(--warning-600);
|
|
69
|
+
}
|
|
8
70
|
}
|
|
9
71
|
|
|
10
72
|
.layerPane > .basePaneStructure {
|
|
11
|
-
|
|
12
|
-
|
|
73
|
+
margin-left: -1px;
|
|
74
|
+
margin-right: -1px;
|
|
13
75
|
}
|
|
14
76
|
|
|
15
77
|
.layerPane > .basePaneStructure:first-child {
|
|
16
|
-
|
|
78
|
+
margin-top: -1px;
|
|
17
79
|
}
|
|
18
80
|
|
|
19
81
|
.layerPane > .basePaneStructure:last-child {
|
|
20
|
-
|
|
82
|
+
margin-bottom: -1px;
|
|
21
83
|
}
|
|
22
84
|
|
|
23
85
|
.layerPane > .basePaneStructure + .basePaneStructure {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
composes: overlayView;
|
|
17
17
|
|
|
18
18
|
background: var(--overlay);
|
|
19
|
-
backdrop-filter: blur(3px) saturate(180%);
|
|
19
|
+
backdrop-filter: blur(3px) grayscale(.5) saturate(180%);
|
|
20
20
|
pointer-events: none;
|
|
21
21
|
transition: opacity 600ms var(--swift-out);
|
|
22
22
|
}
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
background: var(--overlay-secondary);
|
|
59
59
|
opacity: 0;
|
|
60
60
|
pointer-events: none;
|
|
61
|
-
transition: opacity
|
|
62
|
-
z-index:
|
|
61
|
+
transition: opacity 600ms var(--swift-out);
|
|
62
|
+
z-index: 1000;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -111,6 +111,7 @@
|
|
|
111
111
|
max-height: calc(100% - 18px);
|
|
112
112
|
width: min(100dvw, 720px);
|
|
113
113
|
contain: paint;
|
|
114
|
+
transition-duration: 600ms;
|
|
114
115
|
overflow: auto;
|
|
115
116
|
|
|
116
117
|
> .paneHeader,
|
|
@@ -154,10 +155,10 @@
|
|
|
154
155
|
|
|
155
156
|
.overlayTransitionEnterActive,
|
|
156
157
|
.overlayTransitionLeaveActive {
|
|
157
|
-
transition: opacity
|
|
158
|
+
transition: opacity 300ms var(--swift-out);
|
|
158
159
|
|
|
159
160
|
> .basePaneStructure {
|
|
160
|
-
transition:
|
|
161
|
+
transition: 300ms var(--swift-out);
|
|
161
162
|
transition-property: opacity, scale;
|
|
162
163
|
}
|
|
163
164
|
}
|
|
@@ -182,10 +183,10 @@
|
|
|
182
183
|
|
|
183
184
|
.slideOverTransitionEnterActive,
|
|
184
185
|
.slideOverTransitionLeaveActive {
|
|
185
|
-
transition: opacity
|
|
186
|
+
transition: opacity 480ms var(--swift-out);
|
|
186
187
|
|
|
187
188
|
> .basePaneStructure {
|
|
188
|
-
transition:
|
|
189
|
+
transition: 480ms var(--swift-out);
|
|
189
190
|
transition-property: opacity, transform;
|
|
190
191
|
}
|
|
191
192
|
}
|
|
@@ -95,13 +95,13 @@
|
|
|
95
95
|
.verticalWindowTransitionEnterActive,
|
|
96
96
|
.verticalWindowTransitionBackEnterActive {
|
|
97
97
|
contain: paint;
|
|
98
|
-
transition:
|
|
98
|
+
transition: 105ms var(--deceleration-curve);
|
|
99
99
|
transition-property: opacity, transform;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.verticalWindowTransitionLeaveActive,
|
|
103
103
|
.verticalWindowTransitionBackLeaveActive {
|
|
104
|
-
transition:
|
|
104
|
+
transition: 105ms var(--acceleration-curve);
|
|
105
105
|
transition-property: opacity, transform;
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -119,13 +119,13 @@
|
|
|
119
119
|
|
|
120
120
|
.windowTransitionEnterActive,
|
|
121
121
|
.windowTransitionBackEnterActive {
|
|
122
|
-
transition:
|
|
122
|
+
transition: 105ms var(--deceleration-curve);
|
|
123
123
|
transition-property: height, opacity, transform;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.windowTransitionLeaveActive,
|
|
127
127
|
.windowTransitionBackLeaveActive {
|
|
128
|
-
transition:
|
|
128
|
+
transition: 105ms var(--acceleration-curve);
|
|
129
129
|
transition-property: height, opacity, transform;
|
|
130
130
|
}
|
|
131
131
|
|