@spectrum-web-components/sidenav 0.41.0 → 0.41.2
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/package.json +6 -6
- package/src/sidenav-heading.css.dev.js +1 -64
- package/src/sidenav-heading.css.dev.js.map +2 -2
- package/src/sidenav-heading.css.js +1 -64
- package/src/sidenav-heading.css.js.map +2 -2
- package/src/sidenav-item.css.dev.js +1 -201
- package/src/sidenav-item.css.dev.js.map +2 -2
- package/src/sidenav-item.css.js +1 -201
- package/src/sidenav-item.css.js.map +2 -2
- package/src/sidenav.css.dev.js +1 -51
- package/src/sidenav.css.dev.js.map +2 -2
- package/src/sidenav.css.js +1 -51
- package/src/sidenav.css.js.map +2 -2
- package/src/spectrum-config.js +66 -3
- package/src/spectrum-sidenav-heading.css.dev.js +1 -64
- package/src/spectrum-sidenav-heading.css.dev.js.map +2 -2
- package/src/spectrum-sidenav-heading.css.js +1 -64
- package/src/spectrum-sidenav-heading.css.js.map +2 -2
- package/src/spectrum-sidenav-item.css.dev.js +1 -173
- package/src/spectrum-sidenav-item.css.dev.js.map +2 -2
- package/src/spectrum-sidenav-item.css.js +1 -173
- package/src/spectrum-sidenav-item.css.js.map +2 -2
- package/src/spectrum-sidenav.css.dev.js +1 -47
- package/src/spectrum-sidenav.css.dev.js.map +2 -2
- package/src/spectrum-sidenav.css.js +1 -47
- package/src/spectrum-sidenav.css.js.map +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/sidenav",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -75,12 +75,12 @@
|
|
|
75
75
|
"lit-html"
|
|
76
76
|
],
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@spectrum-web-components/base": "^0.41.
|
|
79
|
-
"@spectrum-web-components/reactive-controllers": "^0.41.
|
|
80
|
-
"@spectrum-web-components/shared": "^0.41.
|
|
78
|
+
"@spectrum-web-components/base": "^0.41.2",
|
|
79
|
+
"@spectrum-web-components/reactive-controllers": "^0.41.2",
|
|
80
|
+
"@spectrum-web-components/shared": "^0.41.2"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@spectrum-css/sidenav": "^4.2.
|
|
83
|
+
"@spectrum-css/sidenav": "^4.2.2"
|
|
84
84
|
},
|
|
85
85
|
"types": "./src/index.d.ts",
|
|
86
86
|
"customElements": "custom-elements.json",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"./sp-*.js",
|
|
89
89
|
"./**/*.dev.js"
|
|
90
90
|
],
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "78c3f16b08c9133c9e5ca88d0c9fef5ea7d2ab87"
|
|
92
92
|
}
|
|
@@ -1,70 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
|
3
3
|
const styles = css`
|
|
4
|
-
#list{--spectrum-sidenav-focus-ring-size:var(
|
|
5
|
-
--spectrum-focus-indicator-thickness
|
|
6
|
-
);--spectrum-sidenav-focus-ring-gap:var(--spectrum-focus-indicator-gap);--spectrum-sidenav-focus-ring-color:var(--spectrum-focus-indicator-color);--spectrum-sidenav-min-height:var(--spectrum-component-height-100);--spectrum-sidenav-width:100%;--spectrum-sidenav-min-width:var(--spectrum-side-navigation-minimum-width);--spectrum-sidenav-max-width:var(--spectrum-side-navigation-maximum-width);--spectrum-sidenav-border-radius:var(--spectrum-corner-radius-100);--spectrum-sidenav-icon-size:var(--spectrum-workflow-icon-size-100);--spectrum-sidenav-icon-spacing:var(--spectrum-text-to-visual-100);--spectrum-sidenav-inline-padding:var(
|
|
7
|
-
--spectrum-component-edge-to-text-100
|
|
8
|
-
);--spectrum-sidenav-gap:var(--spectrum-side-navigation-item-to-item);--spectrum-sidenav-top-to-icon:var(
|
|
9
|
-
--spectrum-component-top-to-workflow-icon-100
|
|
10
|
-
);--spectrum-sidenav-top-to-label:var(--spectrum-component-top-to-text-100);--spectrum-sidenav-bottom-to-label:var(
|
|
11
|
-
--spectrum-side-navigation-bottom-to-text
|
|
12
|
-
);--spectrum-sidenav-start-to-content-second-level:var(
|
|
13
|
-
--spectrum-side-navigation-second-level-edge-to-text
|
|
14
|
-
);--spectrum-sidenav-start-to-content-third-level:var(
|
|
15
|
-
--spectrum-side-navigation-third-level-edge-to-text
|
|
16
|
-
);--spectrum-sidenav-start-to-content-with-icon-second-level:var(
|
|
17
|
-
--spectrum-side-navigation-with-icon-second-level-edge-to-text
|
|
18
|
-
);--spectrum-sidenav-start-to-content-with-icon-third-level:var(
|
|
19
|
-
--spectrum-side-navigation-with-icon-third-level-edge-to-text
|
|
20
|
-
);--spectrum-sidenav-heading-top-margin:var(
|
|
21
|
-
--spectrum-side-navigation-item-to-header
|
|
22
|
-
);--spectrum-sidenav-heading-bottom-margin:var(
|
|
23
|
-
--spectrum-side-navigation-header-to-item
|
|
24
|
-
);--spectrum-sidenav-background-disabled:transparent;--spectrum-sidenav-background-default:transparent;--spectrum-sidenav-background-hover:var(--spectrum-gray-200);--spectrum-sidenav-item-background-down:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus:var(--spectrum-gray-200);--spectrum-sidenav-item-background-default-selected:var(
|
|
25
|
-
--spectrum-gray-200
|
|
26
|
-
);--spectrum-sidenav-background-hover-selected:var(--spectrum-gray-300);--spectrum-sidenav-item-background-down-selected:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus-selected:var(--spectrum-gray-200);--spectrum-sidenav-header-color:var(--spectrum-gray-600);--spectrum-sidenav-content-disabled-color:var(
|
|
27
|
-
--spectrum-disabled-content-color
|
|
28
|
-
);--spectrum-sidenav-content-color-default:var(
|
|
29
|
-
--spectrum-neutral-content-color-default
|
|
30
|
-
);--spectrum-sidenav-content-color-hover:var(
|
|
31
|
-
--spectrum-neutral-content-color-hover
|
|
32
|
-
);--spectrum-sidenav-content-color-down:var(
|
|
33
|
-
--spectrum-neutral-content-color-down
|
|
34
|
-
);--spectrum-sidenav-content-color-key-focus:var(
|
|
35
|
-
--spectrum-neutral-content-color-key-focus
|
|
36
|
-
);--spectrum-sidenav-content-color-default-selected:var(
|
|
37
|
-
--spectrum-neutral-content-color-default
|
|
38
|
-
);--spectrum-sidenav-content-color-hover-selected:var(
|
|
39
|
-
--spectrum-neutral-content-color-hover
|
|
40
|
-
);--spectrum-sidenav-content-color-down-selected:var(
|
|
41
|
-
--spectrum-neutral-content-color-down
|
|
42
|
-
);--spectrum-sidenav-content-color-key-focus-selected:var(
|
|
43
|
-
--spectrum-neutral-content-color-key-focus
|
|
44
|
-
);--spectrum-sidenav-text-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-text-font-weight:var(--spectrum-regular-font-weight);--spectrum-sidenav-text-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-text-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-text-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(ko),#list:lang(zh){--spectrum-sidenav-text-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-top-level-font-family:var(
|
|
45
|
-
--spectrum-sans-font-family-stack
|
|
46
|
-
);--spectrum-sidenav-top-level-font-weight:var(--spectrum-bold-font-weight);--spectrum-sidenav-top-level-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-top-level-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-top-level-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(ko),#list:lang(zh){--spectrum-sidenav-top-level-line-height:var(
|
|
47
|
-
--spectrum-cjk-line-height-100
|
|
48
|
-
)}#list{--spectrum-sidenav-header-font-family:var(
|
|
49
|
-
--spectrum-sans-font-family-stack
|
|
50
|
-
);--spectrum-sidenav-header-font-weight:var(--spectrum-medium-font-weight);--spectrum-sidenav-header-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-header-font-size:var(--spectrum-font-size-75);--spectrum-sidenav-header-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(ko),#list:lang(zh){--spectrum-sidenav-header-line-height:var(--spectrum-cjk-line-height-100)}#list{display:flex;flex-direction:column;list-style-type:none;margin:0;padding:0}#heading{color:var(
|
|
51
|
-
--mod-sidenav-header-color,var(--spectrum-sidenav-header-color)
|
|
52
|
-
);font-size:var(
|
|
53
|
-
--mod-sidenav-header-font-size,var(--spectrum-sidenav-header-font-size)
|
|
54
|
-
);font-style:var(
|
|
55
|
-
--mod-sidenav-header-font-style,var(--spectrum-sidenav-header-font-style)
|
|
56
|
-
);font-weight:var(
|
|
57
|
-
--mod-sidenav-header-font-weight,var(--spectrum-sidenav-header-font-weight)
|
|
58
|
-
);line-height:var(
|
|
59
|
-
--mod-sidenav-header-line-height,var(--spectrum-sidenav-header-line-height)
|
|
60
|
-
);margin-block-end:var(
|
|
61
|
-
--mod-sidenav-heading-bottom-margin,var(--spectrum-sidenav-heading-bottom-margin)
|
|
62
|
-
);margin-block-start:calc(var(
|
|
63
|
-
--mod-sidenav-heading-top-margin,
|
|
64
|
-
var(--spectrum-sidenav-heading-top-margin)
|
|
65
|
-
) - var(--mod-sidenav-gap, var(--spectrum-sidenav-gap)));padding-inline:var(
|
|
66
|
-
--mod-sidenav-inline-padding,var(--spectrum-sidenav-inline-padding)
|
|
67
|
-
)}@media (forced-colors:active){#list .spectrum-Icon{forced-color-adjust:preserve-parent-color}}:host{display:block}
|
|
4
|
+
#list{--spectrum-sidenav-focus-ring-size:var(--spectrum-focus-indicator-thickness);--spectrum-sidenav-focus-ring-gap:var(--spectrum-focus-indicator-gap);--spectrum-sidenav-focus-ring-color:var(--spectrum-focus-indicator-color);--spectrum-sidenav-min-height:var(--spectrum-component-height-100);--spectrum-sidenav-width:100%;--spectrum-sidenav-min-width:var(--spectrum-side-navigation-minimum-width);--spectrum-sidenav-max-width:var(--spectrum-side-navigation-maximum-width);--spectrum-sidenav-border-radius:var(--spectrum-corner-radius-100);--spectrum-sidenav-icon-size:var(--spectrum-workflow-icon-size-100);--spectrum-sidenav-icon-spacing:var(--spectrum-text-to-visual-100);--spectrum-sidenav-inline-padding:var(--spectrum-component-edge-to-text-100);--spectrum-sidenav-gap:var(--spectrum-side-navigation-item-to-item);--spectrum-sidenav-top-to-icon:var(--spectrum-component-top-to-workflow-icon-100);--spectrum-sidenav-top-to-label:var(--spectrum-component-top-to-text-100);--spectrum-sidenav-bottom-to-label:var(--spectrum-side-navigation-bottom-to-text);--spectrum-sidenav-start-to-content-second-level:var(--spectrum-side-navigation-second-level-edge-to-text);--spectrum-sidenav-start-to-content-third-level:var(--spectrum-side-navigation-third-level-edge-to-text);--spectrum-sidenav-start-to-content-with-icon-second-level:var(--spectrum-side-navigation-with-icon-second-level-edge-to-text);--spectrum-sidenav-start-to-content-with-icon-third-level:var(--spectrum-side-navigation-with-icon-third-level-edge-to-text);--spectrum-sidenav-heading-top-margin:var(--spectrum-side-navigation-item-to-header);--spectrum-sidenav-heading-bottom-margin:var(--spectrum-side-navigation-header-to-item);--spectrum-sidenav-background-disabled:transparent;--spectrum-sidenav-background-default:transparent;--spectrum-sidenav-background-hover:var(--spectrum-gray-200);--spectrum-sidenav-item-background-down:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus:var(--spectrum-gray-200);--spectrum-sidenav-item-background-default-selected:var(--spectrum-gray-200);--spectrum-sidenav-background-hover-selected:var(--spectrum-gray-300);--spectrum-sidenav-item-background-down-selected:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus-selected:var(--spectrum-gray-200);--spectrum-sidenav-header-color:var(--spectrum-gray-600);--spectrum-sidenav-content-disabled-color:var(--spectrum-disabled-content-color);--spectrum-sidenav-content-color-default:var(--spectrum-neutral-content-color-default);--spectrum-sidenav-content-color-hover:var(--spectrum-neutral-content-color-hover);--spectrum-sidenav-content-color-down:var(--spectrum-neutral-content-color-down);--spectrum-sidenav-content-color-key-focus:var(--spectrum-neutral-content-color-key-focus);--spectrum-sidenav-content-color-default-selected:var(--spectrum-neutral-content-color-default);--spectrum-sidenav-content-color-hover-selected:var(--spectrum-neutral-content-color-hover);--spectrum-sidenav-content-color-down-selected:var(--spectrum-neutral-content-color-down);--spectrum-sidenav-content-color-key-focus-selected:var(--spectrum-neutral-content-color-key-focus);--spectrum-sidenav-text-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-text-font-weight:var(--spectrum-regular-font-weight);--spectrum-sidenav-text-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-text-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-text-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-text-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-top-level-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-top-level-font-weight:var(--spectrum-bold-font-weight);--spectrum-sidenav-top-level-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-top-level-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-top-level-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-top-level-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-header-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-header-font-weight:var(--spectrum-medium-font-weight);--spectrum-sidenav-header-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-header-font-size:var(--spectrum-font-size-75);--spectrum-sidenav-header-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-header-line-height:var(--spectrum-cjk-line-height-100)}#list{flex-direction:column;margin:0;padding:0;list-style-type:none;display:flex}#heading{padding-inline:var(--mod-sidenav-inline-padding,var(--spectrum-sidenav-inline-padding));color:var(--mod-sidenav-header-color,var(--spectrum-sidenav-header-color));font-size:var(--mod-sidenav-header-font-size,var(--spectrum-sidenav-header-font-size));font-weight:var(--mod-sidenav-header-font-weight,var(--spectrum-sidenav-header-font-weight));font-style:var(--mod-sidenav-header-font-style,var(--spectrum-sidenav-header-font-style));line-height:var(--mod-sidenav-header-line-height,var(--spectrum-sidenav-header-line-height));margin-block-start:calc(var(--mod-sidenav-heading-top-margin,var(--spectrum-sidenav-heading-top-margin)) - var(--mod-sidenav-gap,var(--spectrum-sidenav-gap)));margin-block-end:var(--mod-sidenav-heading-bottom-margin,var(--spectrum-sidenav-heading-bottom-margin))}@media (forced-colors:active){#list .spectrum-Icon{forced-color-adjust:preserve-parent-color}}:host{display:block}
|
|
68
5
|
`;
|
|
69
6
|
export default styles;
|
|
70
7
|
//# sourceMappingURL=sidenav-heading.css.dev.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["sidenav-heading.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n#list{--spectrum-sidenav-focus-ring-size:var(
|
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n #list{--spectrum-sidenav-focus-ring-size:var(--spectrum-focus-indicator-thickness);--spectrum-sidenav-focus-ring-gap:var(--spectrum-focus-indicator-gap);--spectrum-sidenav-focus-ring-color:var(--spectrum-focus-indicator-color);--spectrum-sidenav-min-height:var(--spectrum-component-height-100);--spectrum-sidenav-width:100%;--spectrum-sidenav-min-width:var(--spectrum-side-navigation-minimum-width);--spectrum-sidenav-max-width:var(--spectrum-side-navigation-maximum-width);--spectrum-sidenav-border-radius:var(--spectrum-corner-radius-100);--spectrum-sidenav-icon-size:var(--spectrum-workflow-icon-size-100);--spectrum-sidenav-icon-spacing:var(--spectrum-text-to-visual-100);--spectrum-sidenav-inline-padding:var(--spectrum-component-edge-to-text-100);--spectrum-sidenav-gap:var(--spectrum-side-navigation-item-to-item);--spectrum-sidenav-top-to-icon:var(--spectrum-component-top-to-workflow-icon-100);--spectrum-sidenav-top-to-label:var(--spectrum-component-top-to-text-100);--spectrum-sidenav-bottom-to-label:var(--spectrum-side-navigation-bottom-to-text);--spectrum-sidenav-start-to-content-second-level:var(--spectrum-side-navigation-second-level-edge-to-text);--spectrum-sidenav-start-to-content-third-level:var(--spectrum-side-navigation-third-level-edge-to-text);--spectrum-sidenav-start-to-content-with-icon-second-level:var(--spectrum-side-navigation-with-icon-second-level-edge-to-text);--spectrum-sidenav-start-to-content-with-icon-third-level:var(--spectrum-side-navigation-with-icon-third-level-edge-to-text);--spectrum-sidenav-heading-top-margin:var(--spectrum-side-navigation-item-to-header);--spectrum-sidenav-heading-bottom-margin:var(--spectrum-side-navigation-header-to-item);--spectrum-sidenav-background-disabled:transparent;--spectrum-sidenav-background-default:transparent;--spectrum-sidenav-background-hover:var(--spectrum-gray-200);--spectrum-sidenav-item-background-down:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus:var(--spectrum-gray-200);--spectrum-sidenav-item-background-default-selected:var(--spectrum-gray-200);--spectrum-sidenav-background-hover-selected:var(--spectrum-gray-300);--spectrum-sidenav-item-background-down-selected:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus-selected:var(--spectrum-gray-200);--spectrum-sidenav-header-color:var(--spectrum-gray-600);--spectrum-sidenav-content-disabled-color:var(--spectrum-disabled-content-color);--spectrum-sidenav-content-color-default:var(--spectrum-neutral-content-color-default);--spectrum-sidenav-content-color-hover:var(--spectrum-neutral-content-color-hover);--spectrum-sidenav-content-color-down:var(--spectrum-neutral-content-color-down);--spectrum-sidenav-content-color-key-focus:var(--spectrum-neutral-content-color-key-focus);--spectrum-sidenav-content-color-default-selected:var(--spectrum-neutral-content-color-default);--spectrum-sidenav-content-color-hover-selected:var(--spectrum-neutral-content-color-hover);--spectrum-sidenav-content-color-down-selected:var(--spectrum-neutral-content-color-down);--spectrum-sidenav-content-color-key-focus-selected:var(--spectrum-neutral-content-color-key-focus);--spectrum-sidenav-text-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-text-font-weight:var(--spectrum-regular-font-weight);--spectrum-sidenav-text-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-text-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-text-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-text-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-top-level-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-top-level-font-weight:var(--spectrum-bold-font-weight);--spectrum-sidenav-top-level-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-top-level-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-top-level-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-top-level-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-header-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-header-font-weight:var(--spectrum-medium-font-weight);--spectrum-sidenav-header-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-header-font-size:var(--spectrum-font-size-75);--spectrum-sidenav-header-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-header-line-height:var(--spectrum-cjk-line-height-100)}#list{flex-direction:column;margin:0;padding:0;list-style-type:none;display:flex}#heading{padding-inline:var(--mod-sidenav-inline-padding,var(--spectrum-sidenav-inline-padding));color:var(--mod-sidenav-header-color,var(--spectrum-sidenav-header-color));font-size:var(--mod-sidenav-header-font-size,var(--spectrum-sidenav-header-font-size));font-weight:var(--mod-sidenav-header-font-weight,var(--spectrum-sidenav-header-font-weight));font-style:var(--mod-sidenav-header-font-style,var(--spectrum-sidenav-header-font-style));line-height:var(--mod-sidenav-header-line-height,var(--spectrum-sidenav-header-line-height));margin-block-start:calc(var(--mod-sidenav-heading-top-margin,var(--spectrum-sidenav-heading-top-margin)) - var(--mod-sidenav-gap,var(--spectrum-sidenav-gap)));margin-block-end:var(--mod-sidenav-heading-bottom-margin,var(--spectrum-sidenav-heading-bottom-margin))}@media (forced-colors:active){#list .spectrum-Icon{forced-color-adjust:preserve-parent-color}}:host{display:block}\n`;\nexport default styles;"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,67 +1,4 @@
|
|
|
1
1
|
"use strict";import{css as e}from"@spectrum-web-components/base";const t=e`
|
|
2
|
-
#list{--spectrum-sidenav-focus-ring-size:var(
|
|
3
|
-
--spectrum-focus-indicator-thickness
|
|
4
|
-
);--spectrum-sidenav-focus-ring-gap:var(--spectrum-focus-indicator-gap);--spectrum-sidenav-focus-ring-color:var(--spectrum-focus-indicator-color);--spectrum-sidenav-min-height:var(--spectrum-component-height-100);--spectrum-sidenav-width:100%;--spectrum-sidenav-min-width:var(--spectrum-side-navigation-minimum-width);--spectrum-sidenav-max-width:var(--spectrum-side-navigation-maximum-width);--spectrum-sidenav-border-radius:var(--spectrum-corner-radius-100);--spectrum-sidenav-icon-size:var(--spectrum-workflow-icon-size-100);--spectrum-sidenav-icon-spacing:var(--spectrum-text-to-visual-100);--spectrum-sidenav-inline-padding:var(
|
|
5
|
-
--spectrum-component-edge-to-text-100
|
|
6
|
-
);--spectrum-sidenav-gap:var(--spectrum-side-navigation-item-to-item);--spectrum-sidenav-top-to-icon:var(
|
|
7
|
-
--spectrum-component-top-to-workflow-icon-100
|
|
8
|
-
);--spectrum-sidenav-top-to-label:var(--spectrum-component-top-to-text-100);--spectrum-sidenav-bottom-to-label:var(
|
|
9
|
-
--spectrum-side-navigation-bottom-to-text
|
|
10
|
-
);--spectrum-sidenav-start-to-content-second-level:var(
|
|
11
|
-
--spectrum-side-navigation-second-level-edge-to-text
|
|
12
|
-
);--spectrum-sidenav-start-to-content-third-level:var(
|
|
13
|
-
--spectrum-side-navigation-third-level-edge-to-text
|
|
14
|
-
);--spectrum-sidenav-start-to-content-with-icon-second-level:var(
|
|
15
|
-
--spectrum-side-navigation-with-icon-second-level-edge-to-text
|
|
16
|
-
);--spectrum-sidenav-start-to-content-with-icon-third-level:var(
|
|
17
|
-
--spectrum-side-navigation-with-icon-third-level-edge-to-text
|
|
18
|
-
);--spectrum-sidenav-heading-top-margin:var(
|
|
19
|
-
--spectrum-side-navigation-item-to-header
|
|
20
|
-
);--spectrum-sidenav-heading-bottom-margin:var(
|
|
21
|
-
--spectrum-side-navigation-header-to-item
|
|
22
|
-
);--spectrum-sidenav-background-disabled:transparent;--spectrum-sidenav-background-default:transparent;--spectrum-sidenav-background-hover:var(--spectrum-gray-200);--spectrum-sidenav-item-background-down:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus:var(--spectrum-gray-200);--spectrum-sidenav-item-background-default-selected:var(
|
|
23
|
-
--spectrum-gray-200
|
|
24
|
-
);--spectrum-sidenav-background-hover-selected:var(--spectrum-gray-300);--spectrum-sidenav-item-background-down-selected:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus-selected:var(--spectrum-gray-200);--spectrum-sidenav-header-color:var(--spectrum-gray-600);--spectrum-sidenav-content-disabled-color:var(
|
|
25
|
-
--spectrum-disabled-content-color
|
|
26
|
-
);--spectrum-sidenav-content-color-default:var(
|
|
27
|
-
--spectrum-neutral-content-color-default
|
|
28
|
-
);--spectrum-sidenav-content-color-hover:var(
|
|
29
|
-
--spectrum-neutral-content-color-hover
|
|
30
|
-
);--spectrum-sidenav-content-color-down:var(
|
|
31
|
-
--spectrum-neutral-content-color-down
|
|
32
|
-
);--spectrum-sidenav-content-color-key-focus:var(
|
|
33
|
-
--spectrum-neutral-content-color-key-focus
|
|
34
|
-
);--spectrum-sidenav-content-color-default-selected:var(
|
|
35
|
-
--spectrum-neutral-content-color-default
|
|
36
|
-
);--spectrum-sidenav-content-color-hover-selected:var(
|
|
37
|
-
--spectrum-neutral-content-color-hover
|
|
38
|
-
);--spectrum-sidenav-content-color-down-selected:var(
|
|
39
|
-
--spectrum-neutral-content-color-down
|
|
40
|
-
);--spectrum-sidenav-content-color-key-focus-selected:var(
|
|
41
|
-
--spectrum-neutral-content-color-key-focus
|
|
42
|
-
);--spectrum-sidenav-text-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-text-font-weight:var(--spectrum-regular-font-weight);--spectrum-sidenav-text-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-text-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-text-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(ko),#list:lang(zh){--spectrum-sidenav-text-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-top-level-font-family:var(
|
|
43
|
-
--spectrum-sans-font-family-stack
|
|
44
|
-
);--spectrum-sidenav-top-level-font-weight:var(--spectrum-bold-font-weight);--spectrum-sidenav-top-level-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-top-level-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-top-level-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(ko),#list:lang(zh){--spectrum-sidenav-top-level-line-height:var(
|
|
45
|
-
--spectrum-cjk-line-height-100
|
|
46
|
-
)}#list{--spectrum-sidenav-header-font-family:var(
|
|
47
|
-
--spectrum-sans-font-family-stack
|
|
48
|
-
);--spectrum-sidenav-header-font-weight:var(--spectrum-medium-font-weight);--spectrum-sidenav-header-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-header-font-size:var(--spectrum-font-size-75);--spectrum-sidenav-header-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(ko),#list:lang(zh){--spectrum-sidenav-header-line-height:var(--spectrum-cjk-line-height-100)}#list{display:flex;flex-direction:column;list-style-type:none;margin:0;padding:0}#heading{color:var(
|
|
49
|
-
--mod-sidenav-header-color,var(--spectrum-sidenav-header-color)
|
|
50
|
-
);font-size:var(
|
|
51
|
-
--mod-sidenav-header-font-size,var(--spectrum-sidenav-header-font-size)
|
|
52
|
-
);font-style:var(
|
|
53
|
-
--mod-sidenav-header-font-style,var(--spectrum-sidenav-header-font-style)
|
|
54
|
-
);font-weight:var(
|
|
55
|
-
--mod-sidenav-header-font-weight,var(--spectrum-sidenav-header-font-weight)
|
|
56
|
-
);line-height:var(
|
|
57
|
-
--mod-sidenav-header-line-height,var(--spectrum-sidenav-header-line-height)
|
|
58
|
-
);margin-block-end:var(
|
|
59
|
-
--mod-sidenav-heading-bottom-margin,var(--spectrum-sidenav-heading-bottom-margin)
|
|
60
|
-
);margin-block-start:calc(var(
|
|
61
|
-
--mod-sidenav-heading-top-margin,
|
|
62
|
-
var(--spectrum-sidenav-heading-top-margin)
|
|
63
|
-
) - var(--mod-sidenav-gap, var(--spectrum-sidenav-gap)));padding-inline:var(
|
|
64
|
-
--mod-sidenav-inline-padding,var(--spectrum-sidenav-inline-padding)
|
|
65
|
-
)}@media (forced-colors:active){#list .spectrum-Icon{forced-color-adjust:preserve-parent-color}}:host{display:block}
|
|
2
|
+
#list{--spectrum-sidenav-focus-ring-size:var(--spectrum-focus-indicator-thickness);--spectrum-sidenav-focus-ring-gap:var(--spectrum-focus-indicator-gap);--spectrum-sidenav-focus-ring-color:var(--spectrum-focus-indicator-color);--spectrum-sidenav-min-height:var(--spectrum-component-height-100);--spectrum-sidenav-width:100%;--spectrum-sidenav-min-width:var(--spectrum-side-navigation-minimum-width);--spectrum-sidenav-max-width:var(--spectrum-side-navigation-maximum-width);--spectrum-sidenav-border-radius:var(--spectrum-corner-radius-100);--spectrum-sidenav-icon-size:var(--spectrum-workflow-icon-size-100);--spectrum-sidenav-icon-spacing:var(--spectrum-text-to-visual-100);--spectrum-sidenav-inline-padding:var(--spectrum-component-edge-to-text-100);--spectrum-sidenav-gap:var(--spectrum-side-navigation-item-to-item);--spectrum-sidenav-top-to-icon:var(--spectrum-component-top-to-workflow-icon-100);--spectrum-sidenav-top-to-label:var(--spectrum-component-top-to-text-100);--spectrum-sidenav-bottom-to-label:var(--spectrum-side-navigation-bottom-to-text);--spectrum-sidenav-start-to-content-second-level:var(--spectrum-side-navigation-second-level-edge-to-text);--spectrum-sidenav-start-to-content-third-level:var(--spectrum-side-navigation-third-level-edge-to-text);--spectrum-sidenav-start-to-content-with-icon-second-level:var(--spectrum-side-navigation-with-icon-second-level-edge-to-text);--spectrum-sidenav-start-to-content-with-icon-third-level:var(--spectrum-side-navigation-with-icon-third-level-edge-to-text);--spectrum-sidenav-heading-top-margin:var(--spectrum-side-navigation-item-to-header);--spectrum-sidenav-heading-bottom-margin:var(--spectrum-side-navigation-header-to-item);--spectrum-sidenav-background-disabled:transparent;--spectrum-sidenav-background-default:transparent;--spectrum-sidenav-background-hover:var(--spectrum-gray-200);--spectrum-sidenav-item-background-down:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus:var(--spectrum-gray-200);--spectrum-sidenav-item-background-default-selected:var(--spectrum-gray-200);--spectrum-sidenav-background-hover-selected:var(--spectrum-gray-300);--spectrum-sidenav-item-background-down-selected:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus-selected:var(--spectrum-gray-200);--spectrum-sidenav-header-color:var(--spectrum-gray-600);--spectrum-sidenav-content-disabled-color:var(--spectrum-disabled-content-color);--spectrum-sidenav-content-color-default:var(--spectrum-neutral-content-color-default);--spectrum-sidenav-content-color-hover:var(--spectrum-neutral-content-color-hover);--spectrum-sidenav-content-color-down:var(--spectrum-neutral-content-color-down);--spectrum-sidenav-content-color-key-focus:var(--spectrum-neutral-content-color-key-focus);--spectrum-sidenav-content-color-default-selected:var(--spectrum-neutral-content-color-default);--spectrum-sidenav-content-color-hover-selected:var(--spectrum-neutral-content-color-hover);--spectrum-sidenav-content-color-down-selected:var(--spectrum-neutral-content-color-down);--spectrum-sidenav-content-color-key-focus-selected:var(--spectrum-neutral-content-color-key-focus);--spectrum-sidenav-text-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-text-font-weight:var(--spectrum-regular-font-weight);--spectrum-sidenav-text-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-text-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-text-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-text-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-top-level-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-top-level-font-weight:var(--spectrum-bold-font-weight);--spectrum-sidenav-top-level-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-top-level-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-top-level-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-top-level-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-header-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-header-font-weight:var(--spectrum-medium-font-weight);--spectrum-sidenav-header-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-header-font-size:var(--spectrum-font-size-75);--spectrum-sidenav-header-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-header-line-height:var(--spectrum-cjk-line-height-100)}#list{flex-direction:column;margin:0;padding:0;list-style-type:none;display:flex}#heading{padding-inline:var(--mod-sidenav-inline-padding,var(--spectrum-sidenav-inline-padding));color:var(--mod-sidenav-header-color,var(--spectrum-sidenav-header-color));font-size:var(--mod-sidenav-header-font-size,var(--spectrum-sidenav-header-font-size));font-weight:var(--mod-sidenav-header-font-weight,var(--spectrum-sidenav-header-font-weight));font-style:var(--mod-sidenav-header-font-style,var(--spectrum-sidenav-header-font-style));line-height:var(--mod-sidenav-header-line-height,var(--spectrum-sidenav-header-line-height));margin-block-start:calc(var(--mod-sidenav-heading-top-margin,var(--spectrum-sidenav-heading-top-margin)) - var(--mod-sidenav-gap,var(--spectrum-sidenav-gap)));margin-block-end:var(--mod-sidenav-heading-bottom-margin,var(--spectrum-sidenav-heading-bottom-margin))}@media (forced-colors:active){#list .spectrum-Icon{forced-color-adjust:preserve-parent-color}}:host{display:block}
|
|
66
3
|
`;export default t;
|
|
67
4
|
//# sourceMappingURL=sidenav-heading.css.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["sidenav-heading.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n#list{--spectrum-sidenav-focus-ring-size:var(
|
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n #list{--spectrum-sidenav-focus-ring-size:var(--spectrum-focus-indicator-thickness);--spectrum-sidenav-focus-ring-gap:var(--spectrum-focus-indicator-gap);--spectrum-sidenav-focus-ring-color:var(--spectrum-focus-indicator-color);--spectrum-sidenav-min-height:var(--spectrum-component-height-100);--spectrum-sidenav-width:100%;--spectrum-sidenav-min-width:var(--spectrum-side-navigation-minimum-width);--spectrum-sidenav-max-width:var(--spectrum-side-navigation-maximum-width);--spectrum-sidenav-border-radius:var(--spectrum-corner-radius-100);--spectrum-sidenav-icon-size:var(--spectrum-workflow-icon-size-100);--spectrum-sidenav-icon-spacing:var(--spectrum-text-to-visual-100);--spectrum-sidenav-inline-padding:var(--spectrum-component-edge-to-text-100);--spectrum-sidenav-gap:var(--spectrum-side-navigation-item-to-item);--spectrum-sidenav-top-to-icon:var(--spectrum-component-top-to-workflow-icon-100);--spectrum-sidenav-top-to-label:var(--spectrum-component-top-to-text-100);--spectrum-sidenav-bottom-to-label:var(--spectrum-side-navigation-bottom-to-text);--spectrum-sidenav-start-to-content-second-level:var(--spectrum-side-navigation-second-level-edge-to-text);--spectrum-sidenav-start-to-content-third-level:var(--spectrum-side-navigation-third-level-edge-to-text);--spectrum-sidenav-start-to-content-with-icon-second-level:var(--spectrum-side-navigation-with-icon-second-level-edge-to-text);--spectrum-sidenav-start-to-content-with-icon-third-level:var(--spectrum-side-navigation-with-icon-third-level-edge-to-text);--spectrum-sidenav-heading-top-margin:var(--spectrum-side-navigation-item-to-header);--spectrum-sidenav-heading-bottom-margin:var(--spectrum-side-navigation-header-to-item);--spectrum-sidenav-background-disabled:transparent;--spectrum-sidenav-background-default:transparent;--spectrum-sidenav-background-hover:var(--spectrum-gray-200);--spectrum-sidenav-item-background-down:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus:var(--spectrum-gray-200);--spectrum-sidenav-item-background-default-selected:var(--spectrum-gray-200);--spectrum-sidenav-background-hover-selected:var(--spectrum-gray-300);--spectrum-sidenav-item-background-down-selected:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus-selected:var(--spectrum-gray-200);--spectrum-sidenav-header-color:var(--spectrum-gray-600);--spectrum-sidenav-content-disabled-color:var(--spectrum-disabled-content-color);--spectrum-sidenav-content-color-default:var(--spectrum-neutral-content-color-default);--spectrum-sidenav-content-color-hover:var(--spectrum-neutral-content-color-hover);--spectrum-sidenav-content-color-down:var(--spectrum-neutral-content-color-down);--spectrum-sidenav-content-color-key-focus:var(--spectrum-neutral-content-color-key-focus);--spectrum-sidenav-content-color-default-selected:var(--spectrum-neutral-content-color-default);--spectrum-sidenav-content-color-hover-selected:var(--spectrum-neutral-content-color-hover);--spectrum-sidenav-content-color-down-selected:var(--spectrum-neutral-content-color-down);--spectrum-sidenav-content-color-key-focus-selected:var(--spectrum-neutral-content-color-key-focus);--spectrum-sidenav-text-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-text-font-weight:var(--spectrum-regular-font-weight);--spectrum-sidenav-text-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-text-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-text-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-text-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-top-level-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-top-level-font-weight:var(--spectrum-bold-font-weight);--spectrum-sidenav-top-level-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-top-level-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-top-level-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-top-level-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-header-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-header-font-weight:var(--spectrum-medium-font-weight);--spectrum-sidenav-header-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-header-font-size:var(--spectrum-font-size-75);--spectrum-sidenav-header-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-header-line-height:var(--spectrum-cjk-line-height-100)}#list{flex-direction:column;margin:0;padding:0;list-style-type:none;display:flex}#heading{padding-inline:var(--mod-sidenav-inline-padding,var(--spectrum-sidenav-inline-padding));color:var(--mod-sidenav-header-color,var(--spectrum-sidenav-header-color));font-size:var(--mod-sidenav-header-font-size,var(--spectrum-sidenav-header-font-size));font-weight:var(--mod-sidenav-header-font-weight,var(--spectrum-sidenav-header-font-weight));font-style:var(--mod-sidenav-header-font-style,var(--spectrum-sidenav-header-font-style));line-height:var(--mod-sidenav-header-line-height,var(--spectrum-sidenav-header-line-height));margin-block-start:calc(var(--mod-sidenav-heading-top-margin,var(--spectrum-sidenav-heading-top-margin)) - var(--mod-sidenav-gap,var(--spectrum-sidenav-gap)));margin-block-end:var(--mod-sidenav-heading-bottom-margin,var(--spectrum-sidenav-heading-bottom-margin))}@media (forced-colors:active){#list .spectrum-Icon{forced-color-adjust:preserve-parent-color}}:host{display:block}\n`;\nexport default styles;"],
|
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|
|
@@ -1,207 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
|
3
3
|
const styles = css`
|
|
4
|
-
#list{--spectrum-sidenav-focus-ring-size:var(
|
|
5
|
-
--spectrum-focus-indicator-thickness
|
|
6
|
-
);--spectrum-sidenav-focus-ring-gap:var(--spectrum-focus-indicator-gap);--spectrum-sidenav-focus-ring-color:var(--spectrum-focus-indicator-color);--spectrum-sidenav-min-height:var(--spectrum-component-height-100);--spectrum-sidenav-width:100%;--spectrum-sidenav-min-width:var(--spectrum-side-navigation-minimum-width);--spectrum-sidenav-max-width:var(--spectrum-side-navigation-maximum-width);--spectrum-sidenav-border-radius:var(--spectrum-corner-radius-100);--spectrum-sidenav-icon-size:var(--spectrum-workflow-icon-size-100);--spectrum-sidenav-icon-spacing:var(--spectrum-text-to-visual-100);--spectrum-sidenav-inline-padding:var(
|
|
7
|
-
--spectrum-component-edge-to-text-100
|
|
8
|
-
);--spectrum-sidenav-gap:var(--spectrum-side-navigation-item-to-item);--spectrum-sidenav-top-to-icon:var(
|
|
9
|
-
--spectrum-component-top-to-workflow-icon-100
|
|
10
|
-
);--spectrum-sidenav-top-to-label:var(--spectrum-component-top-to-text-100);--spectrum-sidenav-bottom-to-label:var(
|
|
11
|
-
--spectrum-side-navigation-bottom-to-text
|
|
12
|
-
);--spectrum-sidenav-start-to-content-second-level:var(
|
|
13
|
-
--spectrum-side-navigation-second-level-edge-to-text
|
|
14
|
-
);--spectrum-sidenav-start-to-content-third-level:var(
|
|
15
|
-
--spectrum-side-navigation-third-level-edge-to-text
|
|
16
|
-
);--spectrum-sidenav-start-to-content-with-icon-second-level:var(
|
|
17
|
-
--spectrum-side-navigation-with-icon-second-level-edge-to-text
|
|
18
|
-
);--spectrum-sidenav-start-to-content-with-icon-third-level:var(
|
|
19
|
-
--spectrum-side-navigation-with-icon-third-level-edge-to-text
|
|
20
|
-
);--spectrum-sidenav-heading-top-margin:var(
|
|
21
|
-
--spectrum-side-navigation-item-to-header
|
|
22
|
-
);--spectrum-sidenav-heading-bottom-margin:var(
|
|
23
|
-
--spectrum-side-navigation-header-to-item
|
|
24
|
-
);--spectrum-sidenav-background-disabled:transparent;--spectrum-sidenav-background-default:transparent;--spectrum-sidenav-background-hover:var(--spectrum-gray-200);--spectrum-sidenav-item-background-down:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus:var(--spectrum-gray-200);--spectrum-sidenav-item-background-default-selected:var(
|
|
25
|
-
--spectrum-gray-200
|
|
26
|
-
);--spectrum-sidenav-background-hover-selected:var(--spectrum-gray-300);--spectrum-sidenav-item-background-down-selected:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus-selected:var(--spectrum-gray-200);--spectrum-sidenav-header-color:var(--spectrum-gray-600);--spectrum-sidenav-content-disabled-color:var(
|
|
27
|
-
--spectrum-disabled-content-color
|
|
28
|
-
);--spectrum-sidenav-content-color-default:var(
|
|
29
|
-
--spectrum-neutral-content-color-default
|
|
30
|
-
);--spectrum-sidenav-content-color-hover:var(
|
|
31
|
-
--spectrum-neutral-content-color-hover
|
|
32
|
-
);--spectrum-sidenav-content-color-down:var(
|
|
33
|
-
--spectrum-neutral-content-color-down
|
|
34
|
-
);--spectrum-sidenav-content-color-key-focus:var(
|
|
35
|
-
--spectrum-neutral-content-color-key-focus
|
|
36
|
-
);--spectrum-sidenav-content-color-default-selected:var(
|
|
37
|
-
--spectrum-neutral-content-color-default
|
|
38
|
-
);--spectrum-sidenav-content-color-hover-selected:var(
|
|
39
|
-
--spectrum-neutral-content-color-hover
|
|
40
|
-
);--spectrum-sidenav-content-color-down-selected:var(
|
|
41
|
-
--spectrum-neutral-content-color-down
|
|
42
|
-
);--spectrum-sidenav-content-color-key-focus-selected:var(
|
|
43
|
-
--spectrum-neutral-content-color-key-focus
|
|
44
|
-
);--spectrum-sidenav-text-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-text-font-weight:var(--spectrum-regular-font-weight);--spectrum-sidenav-text-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-text-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-text-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(ko),#list:lang(zh){--spectrum-sidenav-text-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-top-level-font-family:var(
|
|
45
|
-
--spectrum-sans-font-family-stack
|
|
46
|
-
);--spectrum-sidenav-top-level-font-weight:var(--spectrum-bold-font-weight);--spectrum-sidenav-top-level-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-top-level-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-top-level-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(ko),#list:lang(zh){--spectrum-sidenav-top-level-line-height:var(
|
|
47
|
-
--spectrum-cjk-line-height-100
|
|
48
|
-
)}#list{--spectrum-sidenav-header-font-family:var(
|
|
49
|
-
--spectrum-sans-font-family-stack
|
|
50
|
-
);--spectrum-sidenav-header-font-weight:var(--spectrum-medium-font-weight);--spectrum-sidenav-header-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-header-font-size:var(--spectrum-font-size-75);--spectrum-sidenav-header-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(ko),#list:lang(zh){--spectrum-sidenav-header-line-height:var(--spectrum-cjk-line-height-100)}#list{display:flex;flex-direction:column;list-style-type:none;margin:0;padding:0}:host{list-style-type:none;margin-inline:0}:host([disabled]) #item-link{background-color:var(
|
|
51
|
-
--highcontrast-sidenav-background-disabled,var(
|
|
52
|
-
--mod-sidenav-background-disabled,var(--spectrum-sidenav-background-disabled)
|
|
53
|
-
)
|
|
54
|
-
);color:var(
|
|
55
|
-
--highcontrast-sidenav-content-disabled-color,var(
|
|
56
|
-
--mod-sidenav-content-disabled-color,var(--spectrum-sidenav-content-disabled-color)
|
|
57
|
-
)
|
|
58
|
-
);cursor:default;pointer-events:none}:host([selected]) #item-link{background-color:var(
|
|
59
|
-
--highcontrast-sidenav-item-background-default-selected,var(
|
|
60
|
-
--mod-sidenav-item-background-default-selected,var(--spectrum-sidenav-item-background-default-selected)
|
|
61
|
-
)
|
|
62
|
-
);color:var(
|
|
63
|
-
--highcontrast-sidenav-content-color-default-selected,var(
|
|
64
|
-
--mod-sidenav-content-color-default-selected,var(--spectrum-sidenav-content-color-default-selected)
|
|
65
|
-
)
|
|
66
|
-
)}:host([selected]) #item-link:active{background-color:var(
|
|
67
|
-
--highcontrast-sidenav-item-background-down-selected,var(
|
|
68
|
-
--mod-sidenav-item-background-down-selected,var(--spectrum-sidenav-item-background-down-selected)
|
|
69
|
-
)
|
|
70
|
-
);color:var(
|
|
71
|
-
--mod-sidenav-content-color-down-selected,var(--spectrum-sidenav-content-color-down-selected)
|
|
72
|
-
)}:host([selected]) #item-link.focus-visible,:host([selected]) #item-link.is-keyboardFocused{background-color:var(
|
|
73
|
-
--highcontrast-sidenav-background-key-focus-selected,var(
|
|
74
|
-
--mod-sidenav-background-key-focus-selected,var(--spectrum-sidenav-background-key-focus-selected)
|
|
75
|
-
)
|
|
76
|
-
);color:var(
|
|
77
|
-
--mod-sidenav-content-color-key-focus-selected,var(--spectrum-sidenav-content-color-key-focus-selected)
|
|
78
|
-
)}:host([selected]) #item-link.is-keyboardFocused,:host([selected]) #item-link:focus-visible{background-color:var(
|
|
79
|
-
--highcontrast-sidenav-background-key-focus-selected,var(
|
|
80
|
-
--mod-sidenav-background-key-focus-selected,var(--spectrum-sidenav-background-key-focus-selected)
|
|
81
|
-
)
|
|
82
|
-
);color:var(
|
|
83
|
-
--mod-sidenav-content-color-key-focus-selected,var(--spectrum-sidenav-content-color-key-focus-selected)
|
|
84
|
-
)}#item-link{background-color:var(
|
|
85
|
-
--highcontrast-sidenav-background-default,var(
|
|
86
|
-
--mod-sidenav-background-default,var(--spectrum-sidenav-background-default)
|
|
87
|
-
)
|
|
88
|
-
);border-radius:var(
|
|
89
|
-
--mod-sidenav-border-radius,var(--spectrum-sidenav-border-radius)
|
|
90
|
-
);box-sizing:border-box;color:var(
|
|
91
|
-
--highcontrast-sidenav-content-color-default,var(
|
|
92
|
-
--mod-sidenav-content-color-default,var(--spectrum-sidenav-content-color-default)
|
|
93
|
-
)
|
|
94
|
-
);cursor:pointer;display:inline-flex;font-family:var(
|
|
95
|
-
--mod-sidenav-text-font-family,var(--spectrum-sidenav-text-font-family)
|
|
96
|
-
);font-size:var(
|
|
97
|
-
--mod-sidenav-text-font-size,var(--spectrum-sidenav-text-font-size)
|
|
98
|
-
);font-style:var(
|
|
99
|
-
--mod-sidenav-text-font-style,var(--spectrum-sidenav-text-font-style)
|
|
100
|
-
);font-weight:var(
|
|
101
|
-
--mod-sidenav-text-font-weight,var(--spectrum-sidenav-text-font-weight)
|
|
102
|
-
);hyphens:auto;inline-size:var(--mod-sidenav-width,var(--spectrum-sidenav-width));line-height:var(
|
|
103
|
-
--mod-sidenav-text-line-height,var(--spectrum-sidenav-text-line-height)
|
|
104
|
-
);margin-block-end:var(--mod-sidenav-gap,var(--spectrum-sidenav-gap));max-inline-size:var(
|
|
105
|
-
--mod-sidenav-max-width,var(--spectrum-sidenav-max-width)
|
|
106
|
-
);min-block-size:var(
|
|
107
|
-
--mod-sidenav-min-height,var(--spectrum-sidenav-min-height)
|
|
108
|
-
);min-inline-size:var(
|
|
109
|
-
--mod-sidenav-min-width,var(--spectrum-sidenav-min-width)
|
|
110
|
-
);padding-inline:var(
|
|
111
|
-
--mod-sidenav-inline-padding,var(--spectrum-sidenav-inline-padding)
|
|
112
|
-
);position:relative;-webkit-text-decoration:none;text-decoration:none;transition:background-color var(--spectrum-animation-duration-100) ease-out,color var(--spectrum-animation-duration-100) ease-out;word-break:break-word}#item-link #link-text{margin-block-end:var(
|
|
113
|
-
--mod-sidenav-bottom-to-label,var(--spectrum-sidenav-bottom-to-label)
|
|
114
|
-
);margin-block-start:var(
|
|
115
|
-
--mod-sidenav-top-to-label,var(--spectrum-sidenav-top-to-label)
|
|
116
|
-
)}#item-link ::slotted([slot=icon]){block-size:var(--mod-sidenav-icon-size,var(--spectrum-sidenav-icon-size));flex-shrink:0;inline-size:var(
|
|
117
|
-
--mod-sidenav-icon-size,var(--spectrum-sidenav-icon-size)
|
|
118
|
-
);margin-block-start:var(
|
|
119
|
-
--mod-sidenav-top-to-icon,var(--spectrum-sidenav-top-to-icon)
|
|
120
|
-
);margin-inline-end:var(
|
|
121
|
-
--mod-sidenav-icon-spacing,var(--spectrum-sidenav-icon-spacing)
|
|
122
|
-
)}@media (hover:hover){:host([selected]) #item-link:hover{background-color:var(
|
|
123
|
-
--highcontrast-sidenav-background-hover-selected,var(
|
|
124
|
-
--mod-sidenav-background-hover-selected,var(--spectrum-sidenav-background-hover-selected)
|
|
125
|
-
)
|
|
126
|
-
);color:var(
|
|
127
|
-
--mod-sidenav-content-color-hover-selected,var(--spectrum-sidenav-content-color-hover-selected)
|
|
128
|
-
)}#item-link:hover{background-color:var(
|
|
129
|
-
--highcontrast-sidenav-background-hover,var(
|
|
130
|
-
--mod-sidenav-background-hover,var(--spectrum-sidenav-background-hover)
|
|
131
|
-
)
|
|
132
|
-
);color:var(
|
|
133
|
-
--highcontrast-sidenav-content-color-hover,var(
|
|
134
|
-
--mod-sidenav-content-color-hover,var(--spectrum-sidenav-content-color-hover)
|
|
135
|
-
)
|
|
136
|
-
)}}#item-link:active{background-color:var(
|
|
137
|
-
--highcontrast-sidenav-item-background-down,var(
|
|
138
|
-
--mod-sidenav-item-background-down,var(--spectrum-sidenav-item-background-down)
|
|
139
|
-
)
|
|
140
|
-
);color:var(
|
|
141
|
-
--highcontrast-sidenav-content-color-down,var(
|
|
142
|
-
--mod-sidenav-content-color-down,var(--spectrum-sidenav-content-color-down)
|
|
143
|
-
)
|
|
144
|
-
)}#item-link.focus-visible,#item-link.is-keyboardFocused{background-color:var(
|
|
145
|
-
--highcontrast-sidenav-background-key-focus,var(
|
|
146
|
-
--mod-sidenav-background-key-focus,var(--spectrum-sidenav-background-key-focus)
|
|
147
|
-
)
|
|
148
|
-
);color:var(
|
|
149
|
-
--highcontrast-sidenav-content-color-key-focus,var(
|
|
150
|
-
--mod-sidenav-content-color-key-focus,var(--spectrum-sidenav-content-color-key-focus)
|
|
151
|
-
)
|
|
152
|
-
);outline:var(
|
|
153
|
-
--highcontrast-sidenav-focus-ring-color,var(
|
|
154
|
-
--mod-sidenav-focus-ring-color,var(--spectrum-sidenav-focus-ring-color)
|
|
155
|
-
)
|
|
156
|
-
) solid var(
|
|
157
|
-
--mod-sidenav-focus-ring-size,var(--spectrum-sidenav-focus-ring-size)
|
|
158
|
-
);outline-offset:var(
|
|
159
|
-
--mod-sidenav-focus-ring-gap,var(--spectrum-sidenav-focus-ring-gap)
|
|
160
|
-
)}#item-link.is-keyboardFocused,#item-link:focus-visible{background-color:var(
|
|
161
|
-
--highcontrast-sidenav-background-key-focus,var(
|
|
162
|
-
--mod-sidenav-background-key-focus,var(--spectrum-sidenav-background-key-focus)
|
|
163
|
-
)
|
|
164
|
-
);color:var(
|
|
165
|
-
--highcontrast-sidenav-content-color-key-focus,var(
|
|
166
|
-
--mod-sidenav-content-color-key-focus,var(--spectrum-sidenav-content-color-key-focus)
|
|
167
|
-
)
|
|
168
|
-
);outline:var(
|
|
169
|
-
--highcontrast-sidenav-focus-ring-color,var(
|
|
170
|
-
--mod-sidenav-focus-ring-color,var(--spectrum-sidenav-focus-ring-color)
|
|
171
|
-
)
|
|
172
|
-
) solid var(
|
|
173
|
-
--mod-sidenav-focus-ring-size,var(--spectrum-sidenav-focus-ring-size)
|
|
174
|
-
);outline-offset:var(
|
|
175
|
-
--mod-sidenav-focus-ring-gap,var(--spectrum-sidenav-focus-ring-gap)
|
|
176
|
-
)}@media (forced-colors:active){#list ::slotted([slot=icon]){forced-color-adjust:preserve-parent-color}:host{forced-color-adjust:none;--highcontrast-sidenav-content-disabled-color:GrayText;--highcontrast-sidenav-focus-ring-color:Highlight;--highcontrast-sidenav-content-color-default-selected:SelectedItemText;--highcontrast-sidenav-item-background-default-selected:SelectedItem;--highcontrast-sidenav-background-key-focus-selected:Highlight;--highcontrast-sidenav-background-hover-selected:Highlight;--highcontrast-sidenav-item-background-down-selected:Highlight;--highcontrast-sidenav-item-background-down:Highlight;--highcontrast-sidenav-background-hover:Highlight;--highcontrast-sidenav-content-color-hover:HighlightText;--highcontrast-sidenav-background-key-focus:Highlight;--highcontrast-sidenav-top-level-font-color:ButtonText;--highcontrast-sidenav-content-color-default:ButtonText;--highcontrast-sidenav-content-color-down:HighlightText}}:host{display:block}:host([disabled]){pointer-events:none}:host([multiLevel]){--spectrum-web-component-sidenav-font-weight:var(
|
|
177
|
-
--spectrum-sidenav-item-font-weight,700
|
|
178
|
-
)}::slotted(sp-sidenav-item:not([multiLevel])){--spectrum-web-component-sidenav-font-weight:var(
|
|
179
|
-
--spectrum-sidenav-item-font-weight,400
|
|
180
|
-
)}#item-link{font-weight:var(--spectrum-web-component-sidenav-font-weight);justify-content:start}:host([dir=ltr]) #item-link[data-level="1"]{padding-left:calc(var(
|
|
181
|
-
--spectrum-sidenav-multilevel-item-indentation-level1,
|
|
182
|
-
var(--spectrum-global-dimension-size-150)
|
|
183
|
-
) + var(
|
|
184
|
-
--spectrum-sidenav-item-padding-x,
|
|
185
|
-
var(--spectrum-global-dimension-size-150)
|
|
186
|
-
))}:host([dir=ltr]) #item-link[data-level="2"]{padding-left:calc(var(
|
|
187
|
-
--spectrum-sidenav-multilevel-item-indentation-level2,
|
|
188
|
-
var(--spectrum-global-dimension-size-300)
|
|
189
|
-
) + var(
|
|
190
|
-
--spectrum-sidenav-item-padding-x,
|
|
191
|
-
var(--spectrum-global-dimension-size-150)
|
|
192
|
-
))}:host([dir=rtl]) #item-link[data-level="1"]{padding-right:calc(var(
|
|
193
|
-
--spectrum-sidenav-multilevel-item-indentation-level1,
|
|
194
|
-
var(--spectrum-global-dimension-size-150)
|
|
195
|
-
) + var(
|
|
196
|
-
--spectrum-sidenav-item-padding-x,
|
|
197
|
-
var(--spectrum-global-dimension-size-150)
|
|
198
|
-
))}:host([dir=rtl]) #item-link[data-level="2"]{padding-right:calc(var(
|
|
199
|
-
--spectrum-sidenav-multilevel-item-indentation-level2,
|
|
200
|
-
var(--spectrum-global-dimension-size-300)
|
|
201
|
-
) + var(
|
|
202
|
-
--spectrum-sidenav-item-padding-x,
|
|
203
|
-
var(--spectrum-global-dimension-size-150)
|
|
204
|
-
))}a ::slotted(sp-sidenav-item){display:none}
|
|
4
|
+
#list{--spectrum-sidenav-focus-ring-size:var(--spectrum-focus-indicator-thickness);--spectrum-sidenav-focus-ring-gap:var(--spectrum-focus-indicator-gap);--spectrum-sidenav-focus-ring-color:var(--spectrum-focus-indicator-color);--spectrum-sidenav-min-height:var(--spectrum-component-height-100);--spectrum-sidenav-width:100%;--spectrum-sidenav-min-width:var(--spectrum-side-navigation-minimum-width);--spectrum-sidenav-max-width:var(--spectrum-side-navigation-maximum-width);--spectrum-sidenav-border-radius:var(--spectrum-corner-radius-100);--spectrum-sidenav-icon-size:var(--spectrum-workflow-icon-size-100);--spectrum-sidenav-icon-spacing:var(--spectrum-text-to-visual-100);--spectrum-sidenav-inline-padding:var(--spectrum-component-edge-to-text-100);--spectrum-sidenav-gap:var(--spectrum-side-navigation-item-to-item);--spectrum-sidenav-top-to-icon:var(--spectrum-component-top-to-workflow-icon-100);--spectrum-sidenav-top-to-label:var(--spectrum-component-top-to-text-100);--spectrum-sidenav-bottom-to-label:var(--spectrum-side-navigation-bottom-to-text);--spectrum-sidenav-start-to-content-second-level:var(--spectrum-side-navigation-second-level-edge-to-text);--spectrum-sidenav-start-to-content-third-level:var(--spectrum-side-navigation-third-level-edge-to-text);--spectrum-sidenav-start-to-content-with-icon-second-level:var(--spectrum-side-navigation-with-icon-second-level-edge-to-text);--spectrum-sidenav-start-to-content-with-icon-third-level:var(--spectrum-side-navigation-with-icon-third-level-edge-to-text);--spectrum-sidenav-heading-top-margin:var(--spectrum-side-navigation-item-to-header);--spectrum-sidenav-heading-bottom-margin:var(--spectrum-side-navigation-header-to-item);--spectrum-sidenav-background-disabled:transparent;--spectrum-sidenav-background-default:transparent;--spectrum-sidenav-background-hover:var(--spectrum-gray-200);--spectrum-sidenav-item-background-down:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus:var(--spectrum-gray-200);--spectrum-sidenav-item-background-default-selected:var(--spectrum-gray-200);--spectrum-sidenav-background-hover-selected:var(--spectrum-gray-300);--spectrum-sidenav-item-background-down-selected:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus-selected:var(--spectrum-gray-200);--spectrum-sidenav-header-color:var(--spectrum-gray-600);--spectrum-sidenav-content-disabled-color:var(--spectrum-disabled-content-color);--spectrum-sidenav-content-color-default:var(--spectrum-neutral-content-color-default);--spectrum-sidenav-content-color-hover:var(--spectrum-neutral-content-color-hover);--spectrum-sidenav-content-color-down:var(--spectrum-neutral-content-color-down);--spectrum-sidenav-content-color-key-focus:var(--spectrum-neutral-content-color-key-focus);--spectrum-sidenav-content-color-default-selected:var(--spectrum-neutral-content-color-default);--spectrum-sidenav-content-color-hover-selected:var(--spectrum-neutral-content-color-hover);--spectrum-sidenav-content-color-down-selected:var(--spectrum-neutral-content-color-down);--spectrum-sidenav-content-color-key-focus-selected:var(--spectrum-neutral-content-color-key-focus);--spectrum-sidenav-text-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-text-font-weight:var(--spectrum-regular-font-weight);--spectrum-sidenav-text-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-text-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-text-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-text-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-top-level-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-top-level-font-weight:var(--spectrum-bold-font-weight);--spectrum-sidenav-top-level-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-top-level-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-top-level-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-top-level-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-header-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-header-font-weight:var(--spectrum-medium-font-weight);--spectrum-sidenav-header-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-header-font-size:var(--spectrum-font-size-75);--spectrum-sidenav-header-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-header-line-height:var(--spectrum-cjk-line-height-100)}#list{flex-direction:column;margin:0;padding:0;list-style-type:none;display:flex}:host{margin-inline:0;list-style-type:none}:host([disabled]) #item-link{background-color:var(--highcontrast-sidenav-background-disabled,var(--mod-sidenav-background-disabled,var(--spectrum-sidenav-background-disabled)));color:var(--highcontrast-sidenav-content-disabled-color,var(--mod-sidenav-content-disabled-color,var(--spectrum-sidenav-content-disabled-color)));cursor:default;pointer-events:none}:host([selected]) #item-link{background-color:var(--highcontrast-sidenav-item-background-default-selected,var(--mod-sidenav-item-background-default-selected,var(--spectrum-sidenav-item-background-default-selected)));color:var(--highcontrast-sidenav-content-color-default-selected,var(--mod-sidenav-content-color-default-selected,var(--spectrum-sidenav-content-color-default-selected)))}:host([selected]) #item-link:active{background-color:var(--highcontrast-sidenav-item-background-down-selected,var(--mod-sidenav-item-background-down-selected,var(--spectrum-sidenav-item-background-down-selected)));color:var(--mod-sidenav-content-color-down-selected,var(--spectrum-sidenav-content-color-down-selected))}:host([selected]) #item-link.is-keyboardFocused,:host([selected]) #item-link:focus-visible{background-color:var(--highcontrast-sidenav-background-key-focus-selected,var(--mod-sidenav-background-key-focus-selected,var(--spectrum-sidenav-background-key-focus-selected)));color:var(--mod-sidenav-content-color-key-focus-selected,var(--spectrum-sidenav-content-color-key-focus-selected))}#item-link{padding-inline:var(--mod-sidenav-inline-padding,var(--spectrum-sidenav-inline-padding));box-sizing:border-box;word-break:break-word;hyphens:auto;cursor:pointer;transition:background-color var(--spectrum-animation-duration-100)ease-out,color var(--spectrum-animation-duration-100)ease-out;border-radius:var(--mod-sidenav-border-radius,var(--spectrum-sidenav-border-radius));background-color:var(--highcontrast-sidenav-background-default,var(--mod-sidenav-background-default,var(--spectrum-sidenav-background-default)));color:var(--highcontrast-sidenav-content-color-default,var(--mod-sidenav-content-color-default,var(--spectrum-sidenav-content-color-default)));inline-size:var(--mod-sidenav-width,var(--spectrum-sidenav-width));min-inline-size:var(--mod-sidenav-min-width,var(--spectrum-sidenav-min-width));max-inline-size:var(--mod-sidenav-max-width,var(--spectrum-sidenav-max-width));min-block-size:var(--mod-sidenav-min-height,var(--spectrum-sidenav-min-height));font-family:var(--mod-sidenav-text-font-family,var(--spectrum-sidenav-text-font-family));font-size:var(--mod-sidenav-text-font-size,var(--spectrum-sidenav-text-font-size));font-weight:var(--mod-sidenav-text-font-weight,var(--spectrum-sidenav-text-font-weight));font-style:var(--mod-sidenav-text-font-style,var(--spectrum-sidenav-text-font-style));line-height:var(--mod-sidenav-text-line-height,var(--spectrum-sidenav-text-line-height));justify-content:start;margin-block-end:var(--mod-sidenav-gap,var(--spectrum-sidenav-gap));text-decoration:none;display:inline-flex;position:relative}#item-link #link-text{margin-block-start:var(--mod-sidenav-top-to-label,var(--spectrum-sidenav-top-to-label));margin-block-end:var(--mod-sidenav-bottom-to-label,var(--spectrum-sidenav-bottom-to-label))}#item-link ::slotted([slot=icon]){inline-size:var(--mod-sidenav-icon-size,var(--spectrum-sidenav-icon-size));block-size:var(--mod-sidenav-icon-size,var(--spectrum-sidenav-icon-size));flex-shrink:0;margin-block-start:var(--mod-sidenav-top-to-icon,var(--spectrum-sidenav-top-to-icon));margin-inline-end:var(--mod-sidenav-icon-spacing,var(--spectrum-sidenav-icon-spacing))}@media (hover:hover){:host([selected]) #item-link:hover{background-color:var(--highcontrast-sidenav-background-hover-selected,var(--mod-sidenav-background-hover-selected,var(--spectrum-sidenav-background-hover-selected)));color:var(--mod-sidenav-content-color-hover-selected,var(--spectrum-sidenav-content-color-hover-selected))}#item-link:hover{background-color:var(--highcontrast-sidenav-background-hover,var(--mod-sidenav-background-hover,var(--spectrum-sidenav-background-hover)));color:var(--highcontrast-sidenav-content-color-hover,var(--mod-sidenav-content-color-hover,var(--spectrum-sidenav-content-color-hover)))}}#item-link:active{background-color:var(--highcontrast-sidenav-item-background-down,var(--mod-sidenav-item-background-down,var(--spectrum-sidenav-item-background-down)));color:var(--highcontrast-sidenav-content-color-down,var(--mod-sidenav-content-color-down,var(--spectrum-sidenav-content-color-down)))}#item-link.is-keyboardFocused,#item-link:focus-visible{outline:var(--highcontrast-sidenav-focus-ring-color,var(--mod-sidenav-focus-ring-color,var(--spectrum-sidenav-focus-ring-color)))solid var(--mod-sidenav-focus-ring-size,var(--spectrum-sidenav-focus-ring-size));outline-offset:var(--mod-sidenav-focus-ring-gap,var(--spectrum-sidenav-focus-ring-gap));background-color:var(--highcontrast-sidenav-background-key-focus,var(--mod-sidenav-background-key-focus,var(--spectrum-sidenav-background-key-focus)));color:var(--highcontrast-sidenav-content-color-key-focus,var(--mod-sidenav-content-color-key-focus,var(--spectrum-sidenav-content-color-key-focus)))}#item-link[data-level]{font-family:var(--mod-sidenav-top-level-font-family,var(--spectrum-sidenav-top-level-font-family));font-weight:var(--mod-sidenav-top-level-font-weight,var(--spectrum-sidenav-top-level-font-weight));font-style:var(--mod-sidenav-top-level-font-style,var(--spectrum-sidenav-top-level-font-style));font-size:var(--mod-sidenav-top-level-font-size,var(--spectrum-sidenav-top-level-font-size));line-height:var(--mod-sidenav-top-level-line-height,var(--spectrum-sidenav-top-level-line-height))}#item-link:not([data-level="0"]){font-weight:var(--mod-sidenav-text-font-weight,var(--spectrum-sidenav-text-font-weight));padding-inline-start:var(--mod-sidenav-start-to-content-second-level,var(--spectrum-sidenav-start-to-content-second-level))}#item-link[data-level="2"]{padding-inline-start:var(--mod-sidenav-start-to-content-third-level,var(--spectrum-sidenav-start-to-content-third-level))}.spectrum-SideNav--hasIcon#item-link:not([data-level="0"]){padding-inline-start:var(--mod-sidenav-start-to-content-with-icon-second-level,var(--spectrum-sidenav-start-to-content-with-icon-second-level))}.spectrum-SideNav--hasIcon#item-link[data-level="2"]{padding-inline-start:var(--mod-sidenav-start-to-content-with-icon-third-level,var(--spectrum-sidenav-start-to-content-with-icon-third-level))}@media (forced-colors:active){#list ::slotted([slot=icon]){forced-color-adjust:preserve-parent-color}:host{forced-color-adjust:none;--highcontrast-sidenav-content-disabled-color:GrayText;--highcontrast-sidenav-focus-ring-color:Highlight;--highcontrast-sidenav-content-color-default-selected:SelectedItemText;--highcontrast-sidenav-item-background-default-selected:SelectedItem;--highcontrast-sidenav-background-key-focus-selected:Highlight;--highcontrast-sidenav-background-hover-selected:Highlight;--highcontrast-sidenav-item-background-down-selected:Highlight;--highcontrast-sidenav-item-background-down:Highlight;--highcontrast-sidenav-background-hover:Highlight;--highcontrast-sidenav-content-color-hover:HighlightText;--highcontrast-sidenav-background-key-focus:Highlight;--highcontrast-sidenav-top-level-font-color:ButtonText;--highcontrast-sidenav-content-color-default:ButtonText;--highcontrast-sidenav-content-color-down:HighlightText}}:host{display:block}:host([disabled]){pointer-events:none}a ::slotted(sp-sidenav-item){display:none}
|
|
205
5
|
`;
|
|
206
6
|
export default styles;
|
|
207
7
|
//# sourceMappingURL=sidenav-item.css.dev.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["sidenav-item.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n#list{--spectrum-sidenav-focus-ring-size:var(\n--spectrum-focus-indicator-thickness\n);--spectrum-sidenav-focus-ring-gap:var(--spectrum-focus-indicator-gap);--spectrum-sidenav-focus-ring-color:var(--spectrum-focus-indicator-color);--spectrum-sidenav-min-height:var(--spectrum-component-height-100);--spectrum-sidenav-width:100%;--spectrum-sidenav-min-width:var(--spectrum-side-navigation-minimum-width);--spectrum-sidenav-max-width:var(--spectrum-side-navigation-maximum-width);--spectrum-sidenav-border-radius:var(--spectrum-corner-radius-100);--spectrum-sidenav-icon-size:var(--spectrum-workflow-icon-size-100);--spectrum-sidenav-icon-spacing:var(--spectrum-text-to-visual-100);--spectrum-sidenav-inline-padding:var(\n--spectrum-component-edge-to-text-100\n);--spectrum-sidenav-gap:var(--spectrum-side-navigation-item-to-item);--spectrum-sidenav-top-to-icon:var(\n--spectrum-component-top-to-workflow-icon-100\n);--spectrum-sidenav-top-to-label:var(--spectrum-component-top-to-text-100);--spectrum-sidenav-bottom-to-label:var(\n--spectrum-side-navigation-bottom-to-text\n);--spectrum-sidenav-start-to-content-second-level:var(\n--spectrum-side-navigation-second-level-edge-to-text\n);--spectrum-sidenav-start-to-content-third-level:var(\n--spectrum-side-navigation-third-level-edge-to-text\n);--spectrum-sidenav-start-to-content-with-icon-second-level:var(\n--spectrum-side-navigation-with-icon-second-level-edge-to-text\n);--spectrum-sidenav-start-to-content-with-icon-third-level:var(\n--spectrum-side-navigation-with-icon-third-level-edge-to-text\n);--spectrum-sidenav-heading-top-margin:var(\n--spectrum-side-navigation-item-to-header\n);--spectrum-sidenav-heading-bottom-margin:var(\n--spectrum-side-navigation-header-to-item\n);--spectrum-sidenav-background-disabled:transparent;--spectrum-sidenav-background-default:transparent;--spectrum-sidenav-background-hover:var(--spectrum-gray-200);--spectrum-sidenav-item-background-down:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus:var(--spectrum-gray-200);--spectrum-sidenav-item-background-default-selected:var(\n--spectrum-gray-200\n);--spectrum-sidenav-background-hover-selected:var(--spectrum-gray-300);--spectrum-sidenav-item-background-down-selected:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus-selected:var(--spectrum-gray-200);--spectrum-sidenav-header-color:var(--spectrum-gray-600);--spectrum-sidenav-content-disabled-color:var(\n--spectrum-disabled-content-color\n);--spectrum-sidenav-content-color-default:var(\n--spectrum-neutral-content-color-default\n);--spectrum-sidenav-content-color-hover:var(\n--spectrum-neutral-content-color-hover\n);--spectrum-sidenav-content-color-down:var(\n--spectrum-neutral-content-color-down\n);--spectrum-sidenav-content-color-key-focus:var(\n--spectrum-neutral-content-color-key-focus\n);--spectrum-sidenav-content-color-default-selected:var(\n--spectrum-neutral-content-color-default\n);--spectrum-sidenav-content-color-hover-selected:var(\n--spectrum-neutral-content-color-hover\n);--spectrum-sidenav-content-color-down-selected:var(\n--spectrum-neutral-content-color-down\n);--spectrum-sidenav-content-color-key-focus-selected:var(\n--spectrum-neutral-content-color-key-focus\n);--spectrum-sidenav-text-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-text-font-weight:var(--spectrum-regular-font-weight);--spectrum-sidenav-text-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-text-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-text-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(ko),#list:lang(zh){--spectrum-sidenav-text-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-top-level-font-family:var(\n--spectrum-sans-font-family-stack\n);--spectrum-sidenav-top-level-font-weight:var(--spectrum-bold-font-weight);--spectrum-sidenav-top-level-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-top-level-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-top-level-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(ko),#list:lang(zh){--spectrum-sidenav-top-level-line-height:var(\n--spectrum-cjk-line-height-100\n)}#list{--spectrum-sidenav-header-font-family:var(\n--spectrum-sans-font-family-stack\n);--spectrum-sidenav-header-font-weight:var(--spectrum-medium-font-weight);--spectrum-sidenav-header-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-header-font-size:var(--spectrum-font-size-75);--spectrum-sidenav-header-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(ko),#list:lang(zh){--spectrum-sidenav-header-line-height:var(--spectrum-cjk-line-height-100)}#list{display:flex;flex-direction:column;list-style-type:none;margin:0;padding:0}:host{list-style-type:none;margin-inline:0}:host([disabled]) #item-link{background-color:var(\n--highcontrast-sidenav-background-disabled,var(\n--mod-sidenav-background-disabled,var(--spectrum-sidenav-background-disabled)\n)\n);color:var(\n--highcontrast-sidenav-content-disabled-color,var(\n--mod-sidenav-content-disabled-color,var(--spectrum-sidenav-content-disabled-color)\n)\n);cursor:default;pointer-events:none}:host([selected]) #item-link{background-color:var(\n--highcontrast-sidenav-item-background-default-selected,var(\n--mod-sidenav-item-background-default-selected,var(--spectrum-sidenav-item-background-default-selected)\n)\n);color:var(\n--highcontrast-sidenav-content-color-default-selected,var(\n--mod-sidenav-content-color-default-selected,var(--spectrum-sidenav-content-color-default-selected)\n)\n)}:host([selected]) #item-link:active{background-color:var(\n--highcontrast-sidenav-item-background-down-selected,var(\n--mod-sidenav-item-background-down-selected,var(--spectrum-sidenav-item-background-down-selected)\n)\n);color:var(\n--mod-sidenav-content-color-down-selected,var(--spectrum-sidenav-content-color-down-selected)\n)}:host([selected]) #item-link.focus-visible,:host([selected]) #item-link.is-keyboardFocused{background-color:var(\n--highcontrast-sidenav-background-key-focus-selected,var(\n--mod-sidenav-background-key-focus-selected,var(--spectrum-sidenav-background-key-focus-selected)\n)\n);color:var(\n--mod-sidenav-content-color-key-focus-selected,var(--spectrum-sidenav-content-color-key-focus-selected)\n)}:host([selected]) #item-link.is-keyboardFocused,:host([selected]) #item-link:focus-visible{background-color:var(\n--highcontrast-sidenav-background-key-focus-selected,var(\n--mod-sidenav-background-key-focus-selected,var(--spectrum-sidenav-background-key-focus-selected)\n)\n);color:var(\n--mod-sidenav-content-color-key-focus-selected,var(--spectrum-sidenav-content-color-key-focus-selected)\n)}#item-link{background-color:var(\n--highcontrast-sidenav-background-default,var(\n--mod-sidenav-background-default,var(--spectrum-sidenav-background-default)\n)\n);border-radius:var(\n--mod-sidenav-border-radius,var(--spectrum-sidenav-border-radius)\n);box-sizing:border-box;color:var(\n--highcontrast-sidenav-content-color-default,var(\n--mod-sidenav-content-color-default,var(--spectrum-sidenav-content-color-default)\n)\n);cursor:pointer;display:inline-flex;font-family:var(\n--mod-sidenav-text-font-family,var(--spectrum-sidenav-text-font-family)\n);font-size:var(\n--mod-sidenav-text-font-size,var(--spectrum-sidenav-text-font-size)\n);font-style:var(\n--mod-sidenav-text-font-style,var(--spectrum-sidenav-text-font-style)\n);font-weight:var(\n--mod-sidenav-text-font-weight,var(--spectrum-sidenav-text-font-weight)\n);hyphens:auto;inline-size:var(--mod-sidenav-width,var(--spectrum-sidenav-width));line-height:var(\n--mod-sidenav-text-line-height,var(--spectrum-sidenav-text-line-height)\n);margin-block-end:var(--mod-sidenav-gap,var(--spectrum-sidenav-gap));max-inline-size:var(\n--mod-sidenav-max-width,var(--spectrum-sidenav-max-width)\n);min-block-size:var(\n--mod-sidenav-min-height,var(--spectrum-sidenav-min-height)\n);min-inline-size:var(\n--mod-sidenav-min-width,var(--spectrum-sidenav-min-width)\n);padding-inline:var(\n--mod-sidenav-inline-padding,var(--spectrum-sidenav-inline-padding)\n);position:relative;-webkit-text-decoration:none;text-decoration:none;transition:background-color var(--spectrum-animation-duration-100) ease-out,color var(--spectrum-animation-duration-100) ease-out;word-break:break-word}#item-link #link-text{margin-block-end:var(\n--mod-sidenav-bottom-to-label,var(--spectrum-sidenav-bottom-to-label)\n);margin-block-start:var(\n--mod-sidenav-top-to-label,var(--spectrum-sidenav-top-to-label)\n)}#item-link ::slotted([slot=icon]){block-size:var(--mod-sidenav-icon-size,var(--spectrum-sidenav-icon-size));flex-shrink:0;inline-size:var(\n--mod-sidenav-icon-size,var(--spectrum-sidenav-icon-size)\n);margin-block-start:var(\n--mod-sidenav-top-to-icon,var(--spectrum-sidenav-top-to-icon)\n);margin-inline-end:var(\n--mod-sidenav-icon-spacing,var(--spectrum-sidenav-icon-spacing)\n)}@media (hover:hover){:host([selected]) #item-link:hover{background-color:var(\n--highcontrast-sidenav-background-hover-selected,var(\n--mod-sidenav-background-hover-selected,var(--spectrum-sidenav-background-hover-selected)\n)\n);color:var(\n--mod-sidenav-content-color-hover-selected,var(--spectrum-sidenav-content-color-hover-selected)\n)}#item-link:hover{background-color:var(\n--highcontrast-sidenav-background-hover,var(\n--mod-sidenav-background-hover,var(--spectrum-sidenav-background-hover)\n)\n);color:var(\n--highcontrast-sidenav-content-color-hover,var(\n--mod-sidenav-content-color-hover,var(--spectrum-sidenav-content-color-hover)\n)\n)}}#item-link:active{background-color:var(\n--highcontrast-sidenav-item-background-down,var(\n--mod-sidenav-item-background-down,var(--spectrum-sidenav-item-background-down)\n)\n);color:var(\n--highcontrast-sidenav-content-color-down,var(\n--mod-sidenav-content-color-down,var(--spectrum-sidenav-content-color-down)\n)\n)}#item-link.focus-visible,#item-link.is-keyboardFocused{background-color:var(\n--highcontrast-sidenav-background-key-focus,var(\n--mod-sidenav-background-key-focus,var(--spectrum-sidenav-background-key-focus)\n)\n);color:var(\n--highcontrast-sidenav-content-color-key-focus,var(\n--mod-sidenav-content-color-key-focus,var(--spectrum-sidenav-content-color-key-focus)\n)\n);outline:var(\n--highcontrast-sidenav-focus-ring-color,var(\n--mod-sidenav-focus-ring-color,var(--spectrum-sidenav-focus-ring-color)\n)\n) solid var(\n--mod-sidenav-focus-ring-size,var(--spectrum-sidenav-focus-ring-size)\n);outline-offset:var(\n--mod-sidenav-focus-ring-gap,var(--spectrum-sidenav-focus-ring-gap)\n)}#item-link.is-keyboardFocused,#item-link:focus-visible{background-color:var(\n--highcontrast-sidenav-background-key-focus,var(\n--mod-sidenav-background-key-focus,var(--spectrum-sidenav-background-key-focus)\n)\n);color:var(\n--highcontrast-sidenav-content-color-key-focus,var(\n--mod-sidenav-content-color-key-focus,var(--spectrum-sidenav-content-color-key-focus)\n)\n);outline:var(\n--highcontrast-sidenav-focus-ring-color,var(\n--mod-sidenav-focus-ring-color,var(--spectrum-sidenav-focus-ring-color)\n)\n) solid var(\n--mod-sidenav-focus-ring-size,var(--spectrum-sidenav-focus-ring-size)\n);outline-offset:var(\n--mod-sidenav-focus-ring-gap,var(--spectrum-sidenav-focus-ring-gap)\n)}@media (forced-colors:active){#list ::slotted([slot=icon]){forced-color-adjust:preserve-parent-color}:host{forced-color-adjust:none;--highcontrast-sidenav-content-disabled-color:GrayText;--highcontrast-sidenav-focus-ring-color:Highlight;--highcontrast-sidenav-content-color-default-selected:SelectedItemText;--highcontrast-sidenav-item-background-default-selected:SelectedItem;--highcontrast-sidenav-background-key-focus-selected:Highlight;--highcontrast-sidenav-background-hover-selected:Highlight;--highcontrast-sidenav-item-background-down-selected:Highlight;--highcontrast-sidenav-item-background-down:Highlight;--highcontrast-sidenav-background-hover:Highlight;--highcontrast-sidenav-content-color-hover:HighlightText;--highcontrast-sidenav-background-key-focus:Highlight;--highcontrast-sidenav-top-level-font-color:ButtonText;--highcontrast-sidenav-content-color-default:ButtonText;--highcontrast-sidenav-content-color-down:HighlightText}}:host{display:block}:host([disabled]){pointer-events:none}:host([multiLevel]){--spectrum-web-component-sidenav-font-weight:var(\n--spectrum-sidenav-item-font-weight,700\n)}::slotted(sp-sidenav-item:not([multiLevel])){--spectrum-web-component-sidenav-font-weight:var(\n--spectrum-sidenav-item-font-weight,400\n)}#item-link{font-weight:var(--spectrum-web-component-sidenav-font-weight);justify-content:start}:host([dir=ltr]) #item-link[data-level=\"1\"]{padding-left:calc(var(\n--spectrum-sidenav-multilevel-item-indentation-level1,\nvar(--spectrum-global-dimension-size-150)\n) + var(\n--spectrum-sidenav-item-padding-x,\nvar(--spectrum-global-dimension-size-150)\n))}:host([dir=ltr]) #item-link[data-level=\"2\"]{padding-left:calc(var(\n--spectrum-sidenav-multilevel-item-indentation-level2,\nvar(--spectrum-global-dimension-size-300)\n) + var(\n--spectrum-sidenav-item-padding-x,\nvar(--spectrum-global-dimension-size-150)\n))}:host([dir=rtl]) #item-link[data-level=\"1\"]{padding-right:calc(var(\n--spectrum-sidenav-multilevel-item-indentation-level1,\nvar(--spectrum-global-dimension-size-150)\n) + var(\n--spectrum-sidenav-item-padding-x,\nvar(--spectrum-global-dimension-size-150)\n))}:host([dir=rtl]) #item-link[data-level=\"2\"]{padding-right:calc(var(\n--spectrum-sidenav-multilevel-item-indentation-level2,\nvar(--spectrum-global-dimension-size-300)\n) + var(\n--spectrum-sidenav-item-padding-x,\nvar(--spectrum-global-dimension-size-150)\n))}a ::slotted(sp-sidenav-item){display:none}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n #list{--spectrum-sidenav-focus-ring-size:var(--spectrum-focus-indicator-thickness);--spectrum-sidenav-focus-ring-gap:var(--spectrum-focus-indicator-gap);--spectrum-sidenav-focus-ring-color:var(--spectrum-focus-indicator-color);--spectrum-sidenav-min-height:var(--spectrum-component-height-100);--spectrum-sidenav-width:100%;--spectrum-sidenav-min-width:var(--spectrum-side-navigation-minimum-width);--spectrum-sidenav-max-width:var(--spectrum-side-navigation-maximum-width);--spectrum-sidenav-border-radius:var(--spectrum-corner-radius-100);--spectrum-sidenav-icon-size:var(--spectrum-workflow-icon-size-100);--spectrum-sidenav-icon-spacing:var(--spectrum-text-to-visual-100);--spectrum-sidenav-inline-padding:var(--spectrum-component-edge-to-text-100);--spectrum-sidenav-gap:var(--spectrum-side-navigation-item-to-item);--spectrum-sidenav-top-to-icon:var(--spectrum-component-top-to-workflow-icon-100);--spectrum-sidenav-top-to-label:var(--spectrum-component-top-to-text-100);--spectrum-sidenav-bottom-to-label:var(--spectrum-side-navigation-bottom-to-text);--spectrum-sidenav-start-to-content-second-level:var(--spectrum-side-navigation-second-level-edge-to-text);--spectrum-sidenav-start-to-content-third-level:var(--spectrum-side-navigation-third-level-edge-to-text);--spectrum-sidenav-start-to-content-with-icon-second-level:var(--spectrum-side-navigation-with-icon-second-level-edge-to-text);--spectrum-sidenav-start-to-content-with-icon-third-level:var(--spectrum-side-navigation-with-icon-third-level-edge-to-text);--spectrum-sidenav-heading-top-margin:var(--spectrum-side-navigation-item-to-header);--spectrum-sidenav-heading-bottom-margin:var(--spectrum-side-navigation-header-to-item);--spectrum-sidenav-background-disabled:transparent;--spectrum-sidenav-background-default:transparent;--spectrum-sidenav-background-hover:var(--spectrum-gray-200);--spectrum-sidenav-item-background-down:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus:var(--spectrum-gray-200);--spectrum-sidenav-item-background-default-selected:var(--spectrum-gray-200);--spectrum-sidenav-background-hover-selected:var(--spectrum-gray-300);--spectrum-sidenav-item-background-down-selected:var(--spectrum-gray-300);--spectrum-sidenav-background-key-focus-selected:var(--spectrum-gray-200);--spectrum-sidenav-header-color:var(--spectrum-gray-600);--spectrum-sidenav-content-disabled-color:var(--spectrum-disabled-content-color);--spectrum-sidenav-content-color-default:var(--spectrum-neutral-content-color-default);--spectrum-sidenav-content-color-hover:var(--spectrum-neutral-content-color-hover);--spectrum-sidenav-content-color-down:var(--spectrum-neutral-content-color-down);--spectrum-sidenav-content-color-key-focus:var(--spectrum-neutral-content-color-key-focus);--spectrum-sidenav-content-color-default-selected:var(--spectrum-neutral-content-color-default);--spectrum-sidenav-content-color-hover-selected:var(--spectrum-neutral-content-color-hover);--spectrum-sidenav-content-color-down-selected:var(--spectrum-neutral-content-color-down);--spectrum-sidenav-content-color-key-focus-selected:var(--spectrum-neutral-content-color-key-focus);--spectrum-sidenav-text-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-text-font-weight:var(--spectrum-regular-font-weight);--spectrum-sidenav-text-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-text-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-text-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-text-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-top-level-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-top-level-font-weight:var(--spectrum-bold-font-weight);--spectrum-sidenav-top-level-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-top-level-font-size:var(--spectrum-font-size-100);--spectrum-sidenav-top-level-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-top-level-line-height:var(--spectrum-cjk-line-height-100)}#list{--spectrum-sidenav-header-font-family:var(--spectrum-sans-font-family-stack);--spectrum-sidenav-header-font-weight:var(--spectrum-medium-font-weight);--spectrum-sidenav-header-font-style:var(--spectrum-default-font-style);--spectrum-sidenav-header-font-size:var(--spectrum-font-size-75);--spectrum-sidenav-header-line-height:var(--spectrum-line-height-100)}#list:lang(ja),#list:lang(zh),#list:lang(ko){--spectrum-sidenav-header-line-height:var(--spectrum-cjk-line-height-100)}#list{flex-direction:column;margin:0;padding:0;list-style-type:none;display:flex}:host{margin-inline:0;list-style-type:none}:host([disabled]) #item-link{background-color:var(--highcontrast-sidenav-background-disabled,var(--mod-sidenav-background-disabled,var(--spectrum-sidenav-background-disabled)));color:var(--highcontrast-sidenav-content-disabled-color,var(--mod-sidenav-content-disabled-color,var(--spectrum-sidenav-content-disabled-color)));cursor:default;pointer-events:none}:host([selected]) #item-link{background-color:var(--highcontrast-sidenav-item-background-default-selected,var(--mod-sidenav-item-background-default-selected,var(--spectrum-sidenav-item-background-default-selected)));color:var(--highcontrast-sidenav-content-color-default-selected,var(--mod-sidenav-content-color-default-selected,var(--spectrum-sidenav-content-color-default-selected)))}:host([selected]) #item-link:active{background-color:var(--highcontrast-sidenav-item-background-down-selected,var(--mod-sidenav-item-background-down-selected,var(--spectrum-sidenav-item-background-down-selected)));color:var(--mod-sidenav-content-color-down-selected,var(--spectrum-sidenav-content-color-down-selected))}:host([selected]) #item-link.is-keyboardFocused,:host([selected]) #item-link:focus-visible{background-color:var(--highcontrast-sidenav-background-key-focus-selected,var(--mod-sidenav-background-key-focus-selected,var(--spectrum-sidenav-background-key-focus-selected)));color:var(--mod-sidenav-content-color-key-focus-selected,var(--spectrum-sidenav-content-color-key-focus-selected))}#item-link{padding-inline:var(--mod-sidenav-inline-padding,var(--spectrum-sidenav-inline-padding));box-sizing:border-box;word-break:break-word;hyphens:auto;cursor:pointer;transition:background-color var(--spectrum-animation-duration-100)ease-out,color var(--spectrum-animation-duration-100)ease-out;border-radius:var(--mod-sidenav-border-radius,var(--spectrum-sidenav-border-radius));background-color:var(--highcontrast-sidenav-background-default,var(--mod-sidenav-background-default,var(--spectrum-sidenav-background-default)));color:var(--highcontrast-sidenav-content-color-default,var(--mod-sidenav-content-color-default,var(--spectrum-sidenav-content-color-default)));inline-size:var(--mod-sidenav-width,var(--spectrum-sidenav-width));min-inline-size:var(--mod-sidenav-min-width,var(--spectrum-sidenav-min-width));max-inline-size:var(--mod-sidenav-max-width,var(--spectrum-sidenav-max-width));min-block-size:var(--mod-sidenav-min-height,var(--spectrum-sidenav-min-height));font-family:var(--mod-sidenav-text-font-family,var(--spectrum-sidenav-text-font-family));font-size:var(--mod-sidenav-text-font-size,var(--spectrum-sidenav-text-font-size));font-weight:var(--mod-sidenav-text-font-weight,var(--spectrum-sidenav-text-font-weight));font-style:var(--mod-sidenav-text-font-style,var(--spectrum-sidenav-text-font-style));line-height:var(--mod-sidenav-text-line-height,var(--spectrum-sidenav-text-line-height));justify-content:start;margin-block-end:var(--mod-sidenav-gap,var(--spectrum-sidenav-gap));text-decoration:none;display:inline-flex;position:relative}#item-link #link-text{margin-block-start:var(--mod-sidenav-top-to-label,var(--spectrum-sidenav-top-to-label));margin-block-end:var(--mod-sidenav-bottom-to-label,var(--spectrum-sidenav-bottom-to-label))}#item-link ::slotted([slot=icon]){inline-size:var(--mod-sidenav-icon-size,var(--spectrum-sidenav-icon-size));block-size:var(--mod-sidenav-icon-size,var(--spectrum-sidenav-icon-size));flex-shrink:0;margin-block-start:var(--mod-sidenav-top-to-icon,var(--spectrum-sidenav-top-to-icon));margin-inline-end:var(--mod-sidenav-icon-spacing,var(--spectrum-sidenav-icon-spacing))}@media (hover:hover){:host([selected]) #item-link:hover{background-color:var(--highcontrast-sidenav-background-hover-selected,var(--mod-sidenav-background-hover-selected,var(--spectrum-sidenav-background-hover-selected)));color:var(--mod-sidenav-content-color-hover-selected,var(--spectrum-sidenav-content-color-hover-selected))}#item-link:hover{background-color:var(--highcontrast-sidenav-background-hover,var(--mod-sidenav-background-hover,var(--spectrum-sidenav-background-hover)));color:var(--highcontrast-sidenav-content-color-hover,var(--mod-sidenav-content-color-hover,var(--spectrum-sidenav-content-color-hover)))}}#item-link:active{background-color:var(--highcontrast-sidenav-item-background-down,var(--mod-sidenav-item-background-down,var(--spectrum-sidenav-item-background-down)));color:var(--highcontrast-sidenav-content-color-down,var(--mod-sidenav-content-color-down,var(--spectrum-sidenav-content-color-down)))}#item-link.is-keyboardFocused,#item-link:focus-visible{outline:var(--highcontrast-sidenav-focus-ring-color,var(--mod-sidenav-focus-ring-color,var(--spectrum-sidenav-focus-ring-color)))solid var(--mod-sidenav-focus-ring-size,var(--spectrum-sidenav-focus-ring-size));outline-offset:var(--mod-sidenav-focus-ring-gap,var(--spectrum-sidenav-focus-ring-gap));background-color:var(--highcontrast-sidenav-background-key-focus,var(--mod-sidenav-background-key-focus,var(--spectrum-sidenav-background-key-focus)));color:var(--highcontrast-sidenav-content-color-key-focus,var(--mod-sidenav-content-color-key-focus,var(--spectrum-sidenav-content-color-key-focus)))}#item-link[data-level]{font-family:var(--mod-sidenav-top-level-font-family,var(--spectrum-sidenav-top-level-font-family));font-weight:var(--mod-sidenav-top-level-font-weight,var(--spectrum-sidenav-top-level-font-weight));font-style:var(--mod-sidenav-top-level-font-style,var(--spectrum-sidenav-top-level-font-style));font-size:var(--mod-sidenav-top-level-font-size,var(--spectrum-sidenav-top-level-font-size));line-height:var(--mod-sidenav-top-level-line-height,var(--spectrum-sidenav-top-level-line-height))}#item-link:not([data-level=\"0\"]){font-weight:var(--mod-sidenav-text-font-weight,var(--spectrum-sidenav-text-font-weight));padding-inline-start:var(--mod-sidenav-start-to-content-second-level,var(--spectrum-sidenav-start-to-content-second-level))}#item-link[data-level=\"2\"]{padding-inline-start:var(--mod-sidenav-start-to-content-third-level,var(--spectrum-sidenav-start-to-content-third-level))}.spectrum-SideNav--hasIcon#item-link:not([data-level=\"0\"]){padding-inline-start:var(--mod-sidenav-start-to-content-with-icon-second-level,var(--spectrum-sidenav-start-to-content-with-icon-second-level))}.spectrum-SideNav--hasIcon#item-link[data-level=\"2\"]{padding-inline-start:var(--mod-sidenav-start-to-content-with-icon-third-level,var(--spectrum-sidenav-start-to-content-with-icon-third-level))}@media (forced-colors:active){#list ::slotted([slot=icon]){forced-color-adjust:preserve-parent-color}:host{forced-color-adjust:none;--highcontrast-sidenav-content-disabled-color:GrayText;--highcontrast-sidenav-focus-ring-color:Highlight;--highcontrast-sidenav-content-color-default-selected:SelectedItemText;--highcontrast-sidenav-item-background-default-selected:SelectedItem;--highcontrast-sidenav-background-key-focus-selected:Highlight;--highcontrast-sidenav-background-hover-selected:Highlight;--highcontrast-sidenav-item-background-down-selected:Highlight;--highcontrast-sidenav-item-background-down:Highlight;--highcontrast-sidenav-background-hover:Highlight;--highcontrast-sidenav-content-color-hover:HighlightText;--highcontrast-sidenav-background-key-focus:Highlight;--highcontrast-sidenav-top-level-font-color:ButtonText;--highcontrast-sidenav-content-color-default:ButtonText;--highcontrast-sidenav-content-color-down:HighlightText}}:host{display:block}:host([disabled]){pointer-events:none}a ::slotted(sp-sidenav-item){display:none}\n`;\nexport default styles;"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|