@spectrum-web-components/menu 0.16.16 → 0.16.18-overlay.10
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 +10 -10
- package/src/Menu.d.ts +11 -3
- package/src/Menu.dev.js +135 -60
- package/src/Menu.dev.js.map +2 -2
- package/src/Menu.js +6 -3
- package/src/Menu.js.map +3 -3
- package/src/MenuGroup.dev.js +1 -3
- package/src/MenuGroup.dev.js.map +2 -2
- package/src/MenuGroup.js +3 -5
- package/src/MenuGroup.js.map +2 -2
- package/src/MenuItem.d.ts +14 -3
- package/src/MenuItem.dev.js +90 -85
- package/src/MenuItem.dev.js.map +3 -3
- package/src/MenuItem.js +31 -12
- package/src/MenuItem.js.map +3 -3
- package/src/menu-group.css.dev.js +1 -3
- package/src/menu-group.css.dev.js.map +2 -2
- package/src/menu-group.css.js +1 -3
- package/src/menu-group.css.js.map +2 -2
- package/src/menu-item.css.dev.js +8 -24
- package/src/menu-item.css.dev.js.map +2 -2
- package/src/menu-item.css.js +8 -24
- package/src/menu-item.css.js.map +2 -2
- package/src/menu.css.dev.js +4 -12
- package/src/menu.css.dev.js.map +2 -2
- package/src/menu.css.js +4 -12
- package/src/menu.css.js.map +2 -2
- package/src/spectrum-checkmark.css.dev.js +1 -5
- package/src/spectrum-checkmark.css.dev.js.map +2 -2
- package/src/spectrum-checkmark.css.js +1 -5
- package/src/spectrum-checkmark.css.js.map +2 -2
- package/src/spectrum-chevron.css.dev.js +1 -5
- package/src/spectrum-chevron.css.dev.js.map +2 -2
- package/src/spectrum-chevron.css.js +1 -5
- package/src/spectrum-chevron.css.js.map +2 -2
- package/src/spectrum-config.js +305 -0
- package/src/spectrum-menu-item.css.dev.js +7 -15
- package/src/spectrum-menu-item.css.dev.js.map +2 -2
- package/src/spectrum-menu-item.css.js +7 -15
- package/src/spectrum-menu-item.css.js.map +2 -2
- package/src/spectrum-menu-sectionHeading.css.dev.js +1 -3
- package/src/spectrum-menu-sectionHeading.css.dev.js.map +2 -2
- package/src/spectrum-menu-sectionHeading.css.js +1 -3
- package/src/spectrum-menu-sectionHeading.css.js.map +2 -2
- package/src/spectrum-menu.css.dev.js +3 -11
- package/src/spectrum-menu.css.dev.js.map +2 -2
- package/src/spectrum-menu.css.js +3 -11
- package/src/spectrum-menu.css.js.map +2 -2
- package/stories/submenu.stories.js +26 -20
- package/stories/submenu.stories.js.map +3 -3
- package/test/menu-group.test.js +14 -1
- package/test/menu-group.test.js.map +2 -2
- package/test/menu.test.js +7 -0
- package/test/menu.test.js.map +2 -2
- package/test/submenu.test.js +202 -69
- package/test/submenu.test.js.map +2 -2
- package/custom-elements.json +0 -2191
- package/src/spectrum-config.v1.js +0 -195
package/src/menu.css.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";import{css as t}from"@spectrum-web-components/base";const i=t`
|
|
2
|
-
:host{--spectrum-menu-margin-x:var(
|
|
3
|
-
--spectrum-global-dimension-size-40
|
|
4
|
-
);--spectrum-listitem-texticon-heading-text-size:var(
|
|
2
|
+
:host{--spectrum-menu-margin-x:var(--spectrum-global-dimension-size-40);--spectrum-listitem-texticon-heading-text-size:var(
|
|
5
3
|
--spectrum-global-dimension-font-size-50
|
|
6
4
|
);--spectrum-listitem-texticon-heading-text-font-weight:400;--spectrum-listitem-texticon-heading-text-transform:uppercase;--spectrum-listitem-texticon-heading-letter-spacing:0.06em;--spectrum-listitem-texticon-heading-margin:var(
|
|
7
5
|
--spectrum-global-dimension-size-75
|
|
@@ -40,20 +38,14 @@ var(--spectrum-alias-border-size-thin)
|
|
|
40
38
|
--spectrum-popover-padding-y,var(--spectrum-global-dimension-size-50)
|
|
41
39
|
);margin-left:0;margin-right:0;margin-top:var(
|
|
42
40
|
--spectrum-popover-padding-y,var(--spectrum-global-dimension-size-50)
|
|
43
|
-
);overflow:auto;padding:0}:host([dir=ltr][selects]) ::slotted(sp-menu-item){padding-right:var(
|
|
44
|
-
--spectrum-listitem-texticon-selectable-padding-right
|
|
45
|
-
)}:host([dir=rtl][selects]) ::slotted(sp-menu-item){padding-left:var(
|
|
46
|
-
--spectrum-listitem-texticon-selectable-padding-right
|
|
47
|
-
)}:host([dir=ltr][selects]) ::slotted(sp-menu-item[selected]){padding-right:calc(var(--spectrum-listitem-texticon-padding-right) - var(
|
|
41
|
+
);overflow:auto;padding:0}:host([dir=ltr][selects]) ::slotted(sp-menu-item){padding-right:var(--spectrum-listitem-texticon-selectable-padding-right)}:host([dir=rtl][selects]) ::slotted(sp-menu-item){padding-left:var(--spectrum-listitem-texticon-selectable-padding-right)}:host([dir=ltr][selects]) ::slotted(sp-menu-item[selected]){padding-right:calc(var(--spectrum-listitem-texticon-padding-right) - var(
|
|
48
42
|
--spectrum-popover-border-size,
|
|
49
43
|
var(--spectrum-alias-border-size-thin)
|
|
50
44
|
))}:host([dir=rtl][selects]) ::slotted(sp-menu-item[selected]){padding-left:calc(var(--spectrum-listitem-texticon-padding-right) - var(
|
|
51
45
|
--spectrum-popover-border-size,
|
|
52
46
|
var(--spectrum-alias-border-size-thin)
|
|
53
|
-
))}
|
|
54
|
-
--spectrum-global-color-gray-700
|
|
55
|
-
)}:host{background-color:var(
|
|
47
|
+
))}:host{--spectrum-listheading-text-color:var(--spectrum-global-color-gray-700)}:host{background-color:var(
|
|
56
48
|
--spectrum-listitem-m-texticon-background-color,var(--spectrum-alias-background-color-transparent)
|
|
57
|
-
)}:host{--spectrum-listitem-selectable-padding-right:calc(var(--spectrum-global-dimension-size-100) + var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-listitem-icon-gap));display:inline-flex;flex-direction:column
|
|
49
|
+
)}:host{--spectrum-listitem-selectable-padding-right:calc(var(--spectrum-global-dimension-size-100) + var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-listitem-icon-gap));display:inline-flex;flex-direction:column}:host(:focus){outline:none}::slotted(*){flex-shrink:0}
|
|
58
50
|
`;export default i;
|
|
59
51
|
//# sourceMappingURL=menu.css.js.map
|
package/src/menu.css.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["menu.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 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:host{--spectrum-menu-margin-x:var(
|
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 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:host{--spectrum-menu-margin-x:var(--spectrum-global-dimension-size-40);--spectrum-listitem-texticon-heading-text-size:var(\n--spectrum-global-dimension-font-size-50\n);--spectrum-listitem-texticon-heading-text-font-weight:400;--spectrum-listitem-texticon-heading-text-transform:uppercase;--spectrum-listitem-texticon-heading-letter-spacing:0.06em;--spectrum-listitem-texticon-heading-margin:var(\n--spectrum-global-dimension-size-75\n) 0 0 0;--spectrum-listitem-texticon-heading-padding:0 var(--spectrum-global-dimension-size-450) 0 var(--spectrum-global-dimension-size-150);--spectrum-listitem-texticon-padding-y:var(\n--spectrum-global-dimension-size-85\n);--spectrum-listitem-texticon-selectable-padding-right:calc(var(--spectrum-listitem-texticon-ui-icon-width) + var(--spectrum-listitem-texticon-ui-icon-gap) + var(--spectrum-listitem-texticon-padding-right) - var(\n--spectrum-popover-border-size,\nvar(--spectrum-alias-border-size-thin)\n));--spectrum-listitem-texticon-label-line-height:1.3;--spectrum-listitem-texticon-heading-line-height:var(\n--spectrum-alias-body-text-line-height,var(--spectrum-global-font-line-height-medium)\n)}:host{--spectrum-listitem-texticon-padding-left:var(\n--spectrum-listitem-m-texticon-padding-left\n);--spectrum-listitem-textthumbnail-padding-left:var(\n--spectrum-listitem-m-textthumbnail-padding-left\n);--spectrum-listitem-texticon-text-size:var(\n--spectrum-listitem-m-texticon-text-size,var(--spectrum-global-dimension-font-size-100)\n);--spectrum-listitem-texticon-text-font-weight:var(\n--spectrum-listitem-m-texticon-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);--spectrum-listitem-texticon-icon-gap:var(\n--spectrum-listitem-m-texticon-icon-gap,var(--spectrum-global-dimension-size-100)\n);--spectrum-listitem-texticon-divider-padding:var(\n--spectrum-listitem-m-texticon-divider-padding,var(--spectrum-global-dimension-static-size-40)\n);--spectrum-listitem-texticon-ui-icon-margin-top:var(\n--spectrum-listitem-m-texticon-ui-icon-margin-top,var(--spectrum-global-dimension-size-125)\n);--spectrum-listitem-texticon-ui-icon-width:var(\n--spectrum-listitem-m-texticon-ui-icon-width,var(--spectrum-alias-ui-icon-checkmark-size-100)\n);--spectrum-listitem-texticon-ui-icon-gap:var(\n--spectrum-listitem-m-texticon-ui-icon-gap,var(--spectrum-global-dimension-size-100)\n);--spectrum-listitem-texticon-padding-right:var(\n--spectrum-listitem-m-texticon-padding-right,var(--spectrum-global-dimension-size-150)\n);--spectrum-listitem-texticon-focus-indicator-size:var(\n--spectrum-listitem-m-texticon-focus-indicator-size,var(--spectrum-alias-border-size-thick)\n);--spectrum-listitem-texticon-height:var(\n--spectrum-listitem-m-texticon-height,var(--spectrum-global-dimension-size-400)\n)}:host{box-sizing:border-box;display:inline-block;list-style-type:none;margin-bottom:var(\n--spectrum-popover-padding-y,var(--spectrum-global-dimension-size-50)\n);margin-left:0;margin-right:0;margin-top:var(\n--spectrum-popover-padding-y,var(--spectrum-global-dimension-size-50)\n);overflow:auto;padding:0}:host([dir=ltr][selects]) ::slotted(sp-menu-item){padding-right:var(--spectrum-listitem-texticon-selectable-padding-right)}:host([dir=rtl][selects]) ::slotted(sp-menu-item){padding-left:var(--spectrum-listitem-texticon-selectable-padding-right)}:host([dir=ltr][selects]) ::slotted(sp-menu-item[selected]){padding-right:calc(var(--spectrum-listitem-texticon-padding-right) - var(\n--spectrum-popover-border-size,\nvar(--spectrum-alias-border-size-thin)\n))}:host([dir=rtl][selects]) ::slotted(sp-menu-item[selected]){padding-left:calc(var(--spectrum-listitem-texticon-padding-right) - var(\n--spectrum-popover-border-size,\nvar(--spectrum-alias-border-size-thin)\n))}:host{--spectrum-listheading-text-color:var(--spectrum-global-color-gray-700)}:host{background-color:var(\n--spectrum-listitem-m-texticon-background-color,var(--spectrum-alias-background-color-transparent)\n)}:host{--spectrum-listitem-selectable-padding-right:calc(var(--spectrum-global-dimension-size-100) + var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-listitem-icon-gap));display:inline-flex;flex-direction:column}:host(:focus){outline:none}::slotted(*){flex-shrink:0}\n`;\nexport default styles;"],
|
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkDf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
|
3
3
|
const styles = css`
|
|
4
|
-
.checkmark{align-self:flex-start;display:none;opacity:1;transform:scale(1)}:host([dir=ltr]) .checkmark{padding-left:var(
|
|
5
|
-
--spectrum-listitem-texticon-icon-gap
|
|
6
|
-
)}:host([dir=rtl]) .checkmark{padding-right:var(
|
|
7
|
-
--spectrum-listitem-texticon-icon-gap
|
|
8
|
-
)}.checkmark{flex-grow:0;margin-top:calc(var(--spectrum-listitem-texticon-ui-icon-margin-top) - var(--spectrum-listitem-texticon-padding-y) + 1px)}
|
|
4
|
+
.checkmark{align-self:flex-start;display:none;opacity:1;transform:scale(1)}:host([dir=ltr]) .checkmark{padding-left:var(--spectrum-listitem-texticon-icon-gap)}:host([dir=rtl]) .checkmark{padding-right:var(--spectrum-listitem-texticon-icon-gap)}.checkmark{flex-grow:0;margin-top:calc(var(--spectrum-listitem-texticon-ui-icon-margin-top) - var(--spectrum-listitem-texticon-padding-y) + 1px)}
|
|
9
5
|
`;
|
|
10
6
|
export default styles;
|
|
11
7
|
//# sourceMappingURL=spectrum-checkmark.css.dev.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-checkmark.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 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.checkmark{align-self:flex-start;display:none;opacity:1;transform:scale(1)}:host([dir=ltr]) .checkmark{padding-left:var(
|
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 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.checkmark{align-self:flex-start;display:none;opacity:1;transform:scale(1)}:host([dir=ltr]) .checkmark{padding-left:var(--spectrum-listitem-texticon-icon-gap)}:host([dir=rtl]) .checkmark{padding-right:var(--spectrum-listitem-texticon-icon-gap)}.checkmark{flex-grow:0;margin-top:calc(var(--spectrum-listitem-texticon-ui-icon-margin-top) - var(--spectrum-listitem-texticon-padding-y) + 1px)}\n`;\nexport default styles;"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
"use strict";import{css as t}from"@spectrum-web-components/base";const i=t`
|
|
2
|
-
.checkmark{align-self:flex-start;display:none;opacity:1;transform:scale(1)}:host([dir=ltr]) .checkmark{padding-left:var(
|
|
3
|
-
--spectrum-listitem-texticon-icon-gap
|
|
4
|
-
)}:host([dir=rtl]) .checkmark{padding-right:var(
|
|
5
|
-
--spectrum-listitem-texticon-icon-gap
|
|
6
|
-
)}.checkmark{flex-grow:0;margin-top:calc(var(--spectrum-listitem-texticon-ui-icon-margin-top) - var(--spectrum-listitem-texticon-padding-y) + 1px)}
|
|
2
|
+
.checkmark{align-self:flex-start;display:none;opacity:1;transform:scale(1)}:host([dir=ltr]) .checkmark{padding-left:var(--spectrum-listitem-texticon-icon-gap)}:host([dir=rtl]) .checkmark{padding-right:var(--spectrum-listitem-texticon-icon-gap)}.checkmark{flex-grow:0;margin-top:calc(var(--spectrum-listitem-texticon-ui-icon-margin-top) - var(--spectrum-listitem-texticon-padding-y) + 1px)}
|
|
7
3
|
`;export default i;
|
|
8
4
|
//# sourceMappingURL=spectrum-checkmark.css.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-checkmark.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 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.checkmark{align-self:flex-start;display:none;opacity:1;transform:scale(1)}:host([dir=ltr]) .checkmark{padding-left:var(
|
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 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.checkmark{align-self:flex-start;display:none;opacity:1;transform:scale(1)}:host([dir=ltr]) .checkmark{padding-left:var(--spectrum-listitem-texticon-icon-gap)}:host([dir=rtl]) .checkmark{padding-right:var(--spectrum-listitem-texticon-icon-gap)}.checkmark{flex-grow:0;margin-top:calc(var(--spectrum-listitem-texticon-ui-icon-margin-top) - var(--spectrum-listitem-texticon-padding-y) + 1px)}\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,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
|
3
3
|
const styles = css`
|
|
4
|
-
:host([dir=ltr]) .chevron{padding-left:var(
|
|
5
|
-
--spectrum-listitem-texticon-icon-gap
|
|
6
|
-
)}:host([dir=rtl]) .chevron{padding-right:var(
|
|
7
|
-
--spectrum-listitem-texticon-icon-gap
|
|
8
|
-
)}.chevron{flex-grow:0;margin-top:calc(var(--spectrum-listitem-texticon-ui-icon-margin-top) - var(--spectrum-listitem-texticon-padding-y) + 1px)}:host([dir=rtl]) .chevron{transform:matrix(-1,0,0,1,0,0)}
|
|
4
|
+
:host([dir=ltr]) .chevron{padding-left:var(--spectrum-listitem-texticon-icon-gap)}:host([dir=rtl]) .chevron{padding-right:var(--spectrum-listitem-texticon-icon-gap)}.chevron{flex-grow:0;margin-top:calc(var(--spectrum-listitem-texticon-ui-icon-margin-top) - var(--spectrum-listitem-texticon-padding-y) + 1px)}:host([dir=rtl]) .chevron{transform:matrix(-1,0,0,1,0,0)}
|
|
9
5
|
`;
|
|
10
6
|
export default styles;
|
|
11
7
|
//# sourceMappingURL=spectrum-chevron.css.dev.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-chevron.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 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:host([dir=ltr]) .chevron{padding-left:var(
|
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 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:host([dir=ltr]) .chevron{padding-left:var(--spectrum-listitem-texticon-icon-gap)}:host([dir=rtl]) .chevron{padding-right:var(--spectrum-listitem-texticon-icon-gap)}.chevron{flex-grow:0;margin-top:calc(var(--spectrum-listitem-texticon-ui-icon-margin-top) - var(--spectrum-listitem-texticon-padding-y) + 1px)}:host([dir=rtl]) .chevron{transform:matrix(-1,0,0,1,0,0)}\n`;\nexport default styles;"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
"use strict";import{css as t}from"@spectrum-web-components/base";const r=t`
|
|
2
|
-
:host([dir=ltr]) .chevron{padding-left:var(
|
|
3
|
-
--spectrum-listitem-texticon-icon-gap
|
|
4
|
-
)}:host([dir=rtl]) .chevron{padding-right:var(
|
|
5
|
-
--spectrum-listitem-texticon-icon-gap
|
|
6
|
-
)}.chevron{flex-grow:0;margin-top:calc(var(--spectrum-listitem-texticon-ui-icon-margin-top) - var(--spectrum-listitem-texticon-padding-y) + 1px)}:host([dir=rtl]) .chevron{transform:matrix(-1,0,0,1,0,0)}
|
|
2
|
+
:host([dir=ltr]) .chevron{padding-left:var(--spectrum-listitem-texticon-icon-gap)}:host([dir=rtl]) .chevron{padding-right:var(--spectrum-listitem-texticon-icon-gap)}.chevron{flex-grow:0;margin-top:calc(var(--spectrum-listitem-texticon-ui-icon-margin-top) - var(--spectrum-listitem-texticon-padding-y) + 1px)}:host([dir=rtl]) .chevron{transform:matrix(-1,0,0,1,0,0)}
|
|
7
3
|
`;export default r;
|
|
8
4
|
//# sourceMappingURL=spectrum-chevron.css.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-chevron.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 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:host([dir=ltr]) .chevron{padding-left:var(
|
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 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:host([dir=ltr]) .chevron{padding-left:var(--spectrum-listitem-texticon-icon-gap)}:host([dir=rtl]) .chevron{padding-right:var(--spectrum-listitem-texticon-icon-gap)}.chevron{flex-grow:0;margin-top:calc(var(--spectrum-listitem-texticon-ui-icon-margin-top) - var(--spectrum-listitem-texticon-padding-y) + 1px)}:host([dir=rtl]) .chevron{transform:matrix(-1,0,0,1,0,0)}\n`;\nexport default styles;"],
|
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2023 Adobe. All rights reserved.
|
|
3
|
+
This file is licensed to you under the Apache License, Version 2.0 (the 'License');
|
|
4
|
+
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
Unless required by applicable law or agreed to in writing, software distributed under
|
|
7
|
+
the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
8
|
+
OF ANY KIND, either express or implied. See the License for the specific language
|
|
9
|
+
governing permissions and limitations under the License.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import {
|
|
13
|
+
builder,
|
|
14
|
+
converterFor,
|
|
15
|
+
} from '../../../tasks/process-spectrum-utils.js';
|
|
16
|
+
|
|
17
|
+
const converter = converterFor('spectrum-Menu');
|
|
18
|
+
/**
|
|
19
|
+
* @type { import('../../../tasks/spectrum-css-converter.js').SpectrumCSSConverter }
|
|
20
|
+
*/
|
|
21
|
+
const config = {
|
|
22
|
+
conversions: [
|
|
23
|
+
{
|
|
24
|
+
// Menu Section Heading
|
|
25
|
+
inPackage: '@spectrum-css/menu',
|
|
26
|
+
outPackage: 'menu',
|
|
27
|
+
fileName: 'menu-sectionHeading',
|
|
28
|
+
excludeByComponents: [
|
|
29
|
+
builder.class('spectrum-Menu-divider'),
|
|
30
|
+
builder.class('spectrum-Menu'),
|
|
31
|
+
builder.class('spectrum-Menu-chevron'),
|
|
32
|
+
builder.class('spectrum-Menu-checkmark'),
|
|
33
|
+
builder.class('spectrum-Menu-item'),
|
|
34
|
+
builder.class('spectrum-Menu-itemLabel'),
|
|
35
|
+
builder.class('spectrum-Menu-itemLabel--wrapping'),
|
|
36
|
+
],
|
|
37
|
+
components: [
|
|
38
|
+
converter.classToClass(
|
|
39
|
+
'spectrum-Menu-sectionHeading',
|
|
40
|
+
'header'
|
|
41
|
+
),
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
// Menu Item
|
|
46
|
+
inPackage: '@spectrum-css/menu',
|
|
47
|
+
outPackage: 'menu',
|
|
48
|
+
fileName: 'menu-item',
|
|
49
|
+
excludeByComponents: [
|
|
50
|
+
builder.class('spectrum-Menu'),
|
|
51
|
+
builder.class('spectrum-Menu-sectionHeading'),
|
|
52
|
+
builder.class('spectrum-Menu-divider'),
|
|
53
|
+
],
|
|
54
|
+
excludeByWholeSelector: [
|
|
55
|
+
[builder.class('spectrum-Menu-checkmark')],
|
|
56
|
+
[builder.class('spectrum-Menu-chevron')],
|
|
57
|
+
],
|
|
58
|
+
components: [
|
|
59
|
+
converter.classToHost('spectrum-Menu-item'),
|
|
60
|
+
converter.classToAttribute('is-disabled', 'disabled'),
|
|
61
|
+
converter.classToAttribute('is-active', 'active'),
|
|
62
|
+
converter.classToAttribute('is-focused', 'focused'),
|
|
63
|
+
converter.classToAttribute('is-selected', 'selected'),
|
|
64
|
+
converter.classToId('spectrum-Menu-itemLabel', 'label'),
|
|
65
|
+
converter.classToClass('spectrum-Menu-itemIcon', 'icon'),
|
|
66
|
+
converter.classToClass('spectrum-Menu-chevron', 'chevron'),
|
|
67
|
+
converter.classToClass('spectrum-Menu-checkmark', 'checkmark'),
|
|
68
|
+
converter.classToSlotted('spectrum-Icon', 'icon'),
|
|
69
|
+
{
|
|
70
|
+
find: [builder.class('spectrum-Menu-itemLabel--wrapping')],
|
|
71
|
+
replace: [
|
|
72
|
+
{
|
|
73
|
+
replace: {
|
|
74
|
+
type: 'pseudo-class',
|
|
75
|
+
kind: 'host',
|
|
76
|
+
selectors: [
|
|
77
|
+
{
|
|
78
|
+
type: 'attribute',
|
|
79
|
+
name: 'no-wrap',
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
replace: builder.combinator(' '),
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
replace: builder.id('label'),
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
// .spectrum-Menu-itemIcon+.spectrum-Menu-itemLabel
|
|
94
|
+
// slot[name='icon'] + #label
|
|
95
|
+
find: [
|
|
96
|
+
builder.class('spectrum-Menu-itemIcon'),
|
|
97
|
+
builder.combinator('+'),
|
|
98
|
+
builder.class('spectrum-Menu-itemLabel'),
|
|
99
|
+
],
|
|
100
|
+
replace: [
|
|
101
|
+
{
|
|
102
|
+
replace: builder.attribute('name', 'icon'),
|
|
103
|
+
hoist: false,
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
find: [
|
|
109
|
+
builder.class('spectrum-Icon'),
|
|
110
|
+
builder.combinator('+'),
|
|
111
|
+
builder.class('spectrum-Menu-itemLabel'),
|
|
112
|
+
],
|
|
113
|
+
replace: [
|
|
114
|
+
{
|
|
115
|
+
replace: builder.class('icon'),
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
collapseSelector: true,
|
|
121
|
+
find: {
|
|
122
|
+
type: 'pseudo-class',
|
|
123
|
+
kind: 'not',
|
|
124
|
+
selectors: [[builder.class('is-disabled')]],
|
|
125
|
+
},
|
|
126
|
+
replace: {
|
|
127
|
+
kind: 'not',
|
|
128
|
+
type: 'pseudo-class',
|
|
129
|
+
selectors: [[builder.attribute('disabled')]],
|
|
130
|
+
},
|
|
131
|
+
hoist: true,
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
// Menu Divider
|
|
137
|
+
inPackage: '@spectrum-css/menu',
|
|
138
|
+
outPackage: 'menu',
|
|
139
|
+
fileName: 'menu-divider',
|
|
140
|
+
excludeByComponents: [
|
|
141
|
+
builder.class('spectrum-Menu-chevron'),
|
|
142
|
+
builder.class('spectrum-Menu-checkmark'),
|
|
143
|
+
builder.class('spectrum-Menu-item'),
|
|
144
|
+
builder.class('spectrum-Menu-itemLabel'),
|
|
145
|
+
builder.class('spectrum-Menu-itemLabel--wrapping'),
|
|
146
|
+
builder.class('spectrum-Menu-sectionHeading'),
|
|
147
|
+
],
|
|
148
|
+
excludeByWholeSelector: [
|
|
149
|
+
[builder.class('spectrum-Menu')],
|
|
150
|
+
[
|
|
151
|
+
builder.class('spectrum-Menu'),
|
|
152
|
+
builder.combinator(' '),
|
|
153
|
+
builder.class('spectrum-Menu'),
|
|
154
|
+
],
|
|
155
|
+
],
|
|
156
|
+
components: [
|
|
157
|
+
converter.classToHost('spectrum-Menu-divider'),
|
|
158
|
+
{
|
|
159
|
+
collapseSelector: true,
|
|
160
|
+
find: [
|
|
161
|
+
builder.class('spectrum-Menu'),
|
|
162
|
+
builder.combinator('descendant'),
|
|
163
|
+
builder.class('spectrum-Menu-divider'),
|
|
164
|
+
],
|
|
165
|
+
replace: [
|
|
166
|
+
{
|
|
167
|
+
replace: {
|
|
168
|
+
type: 'pseudo-class',
|
|
169
|
+
kind: 'host',
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
// Menu Checkmark
|
|
178
|
+
inPackage: '@spectrum-css/menu',
|
|
179
|
+
outPackage: 'menu',
|
|
180
|
+
fileName: 'checkmark',
|
|
181
|
+
excludeByComponents: [
|
|
182
|
+
builder.class('spectrum-Menu-sectionHeading'),
|
|
183
|
+
builder.class('spectrum-Menu-divider'),
|
|
184
|
+
builder.class('spectrum-Menu'),
|
|
185
|
+
builder.class('spectrum-Menu-chevron'),
|
|
186
|
+
builder.class('spectrum-Menu-item'),
|
|
187
|
+
builder.class('spectrum-Menu-itemLabel'),
|
|
188
|
+
builder.class('spectrum-Menu-itemLabel--wrapping'),
|
|
189
|
+
],
|
|
190
|
+
components: [
|
|
191
|
+
converter.classToClass('spectrum-Menu-checkmark', 'checkmark'),
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
// Menu Chevron
|
|
196
|
+
inPackage: '@spectrum-css/menu',
|
|
197
|
+
outPackage: 'menu',
|
|
198
|
+
fileName: 'chevron',
|
|
199
|
+
excludeByComponents: [
|
|
200
|
+
builder.class('spectrum-Menu-sectionHeading'),
|
|
201
|
+
builder.class('spectrum-Menu-divider'),
|
|
202
|
+
builder.class('spectrum-Menu'),
|
|
203
|
+
builder.class('spectrum-Menu-checkmark'),
|
|
204
|
+
builder.class('spectrum-Menu-item'),
|
|
205
|
+
builder.class('spectrum-Menu-itemLabel'),
|
|
206
|
+
builder.class('spectrum-Menu-itemLabel--wrapping'),
|
|
207
|
+
],
|
|
208
|
+
components: [
|
|
209
|
+
converter.classToClass('spectrum-Menu-chevron', 'chevron'),
|
|
210
|
+
],
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
// Menu
|
|
214
|
+
inPackage: '@spectrum-css/menu',
|
|
215
|
+
outPackage: 'menu',
|
|
216
|
+
fileName: 'menu',
|
|
217
|
+
excludeByComponents: [
|
|
218
|
+
builder.class('spectrum-Menu-divider'),
|
|
219
|
+
builder.class('spectrum-Menu-sectionHeading'),
|
|
220
|
+
builder.class('spectrum-Menu-chevron'),
|
|
221
|
+
builder.class('spectrum-Menu-checkmark'),
|
|
222
|
+
builder.class('spectrum-Menu-itemLabel'),
|
|
223
|
+
builder.class('spectrum-Menu-itemLabel--wrapping'),
|
|
224
|
+
builder.class('spectrum-Menu-item'),
|
|
225
|
+
],
|
|
226
|
+
includeByWholeSelector: [
|
|
227
|
+
/* [dir=ltr] .spectrum-Menu.is-selectable .spectrum-Menu-item */
|
|
228
|
+
[
|
|
229
|
+
builder.attribute('dir', 'ltr'),
|
|
230
|
+
builder.combinator(' '),
|
|
231
|
+
builder.class('spectrum-Menu'),
|
|
232
|
+
builder.class('is-selectable'),
|
|
233
|
+
builder.combinator(' '),
|
|
234
|
+
builder.class('spectrum-Menu-item'),
|
|
235
|
+
],
|
|
236
|
+
/* [dir=rtl] .spectrum-Menu.is-selectable .spectrum-Menu-item */
|
|
237
|
+
[
|
|
238
|
+
builder.attribute('dir', 'rtl'),
|
|
239
|
+
builder.combinator(' '),
|
|
240
|
+
builder.class('spectrum-Menu'),
|
|
241
|
+
builder.class('is-selectable'),
|
|
242
|
+
builder.combinator(' '),
|
|
243
|
+
builder.class('spectrum-Menu-item'),
|
|
244
|
+
],
|
|
245
|
+
/* [dir=ltr] .spectrum-Menu.is-selectable .spectrum-Menu-item.is-selected */
|
|
246
|
+
[
|
|
247
|
+
builder.attribute('dir', 'ltr'),
|
|
248
|
+
builder.combinator(' '),
|
|
249
|
+
builder.class('spectrum-Menu'),
|
|
250
|
+
builder.class('is-selectable'),
|
|
251
|
+
builder.combinator(' '),
|
|
252
|
+
builder.class('spectrum-Menu-item'),
|
|
253
|
+
builder.class('is-selected'),
|
|
254
|
+
],
|
|
255
|
+
/* [dir=rtl] .spectrum-Menu.is-selectable .spectrum-Menu-item.is-selected */
|
|
256
|
+
[
|
|
257
|
+
builder.attribute('dir', 'rtl'),
|
|
258
|
+
builder.combinator(' '),
|
|
259
|
+
builder.class('spectrum-Menu'),
|
|
260
|
+
builder.class('is-selectable'),
|
|
261
|
+
builder.combinator(' '),
|
|
262
|
+
builder.class('spectrum-Menu-item'),
|
|
263
|
+
builder.class('is-selected'),
|
|
264
|
+
],
|
|
265
|
+
],
|
|
266
|
+
components: [
|
|
267
|
+
converter.classToHost(),
|
|
268
|
+
converter.classToAttribute('is-selectable', 'selects'),
|
|
269
|
+
{
|
|
270
|
+
find: [builder.class('spectrum-Menu-item')],
|
|
271
|
+
replace: [
|
|
272
|
+
{
|
|
273
|
+
replace: {
|
|
274
|
+
type: 'pseudo-element',
|
|
275
|
+
kind: 'slotted',
|
|
276
|
+
selector: [builder.element('sp-menu-item')],
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
collapseSelector: true,
|
|
283
|
+
find: [
|
|
284
|
+
builder.class('spectrum-Menu-item'),
|
|
285
|
+
builder.class('is-selected'),
|
|
286
|
+
],
|
|
287
|
+
replace: [
|
|
288
|
+
{
|
|
289
|
+
replace: {
|
|
290
|
+
type: 'pseudo-element',
|
|
291
|
+
kind: 'slotted',
|
|
292
|
+
selector: [
|
|
293
|
+
builder.element('sp-menu-item'),
|
|
294
|
+
builder.attribute('selected'),
|
|
295
|
+
],
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
],
|
|
299
|
+
},
|
|
300
|
+
],
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
export default config;
|
|
@@ -7,18 +7,10 @@ var(--spectrum-alias-border-size-thin)
|
|
|
7
7
|
))}:host([dir=rtl][selected]){padding-left:calc(var(--spectrum-listitem-texticon-padding-right) - var(
|
|
8
8
|
--spectrum-popover-border-size,
|
|
9
9
|
var(--spectrum-alias-border-size-thin)
|
|
10
|
-
))}:host([selected]) .checkmark{display:block}.icon,::slotted([slot=icon]){align-self:flex-start;flex-shrink:0}:host([dir=ltr]) .icon+#label,:host([dir=ltr])
|
|
11
|
-
--spectrum-listitem-texticon-icon-gap
|
|
12
|
-
)}:host([dir=rtl]) .icon+#label,:host([dir=rtl]) slot[name=icon]+#label{margin-right:var(
|
|
13
|
-
--spectrum-listitem-texticon-icon-gap
|
|
14
|
-
)}.icon+#label,slot[name=icon]+#label{width:calc(100% - var(--spectrum-listitem-texticon-ui-icon-width) - var(--spectrum-listitem-texticon-icon-gap) - var(--spectrum-listitem-textthumbnail-padding-left) - var(
|
|
10
|
+
))}:host([selected]) .checkmark{display:block}.icon,::slotted([slot=icon]){align-self:flex-start;flex-shrink:0}:host([dir=ltr]) .icon+#label,:host([dir=ltr]) [name=icon]+#label{margin-left:var(--spectrum-listitem-texticon-icon-gap)}:host([dir=rtl]) .icon+#label,:host([dir=rtl]) [name=icon]+#label{margin-right:var(--spectrum-listitem-texticon-icon-gap)}.icon+#label,[name=icon]+#label{width:calc(100% - var(--spectrum-listitem-texticon-ui-icon-width) - var(--spectrum-listitem-texticon-icon-gap) - var(--spectrum-listitem-textthumbnail-padding-left) - var(
|
|
15
11
|
--spectrum-alias-workflow-icon-size-m,
|
|
16
12
|
var(--spectrum-global-dimension-size-225)
|
|
17
|
-
))}#label{flex:
|
|
18
|
-
--spectrum-listitem-texticon-icon-gap
|
|
19
|
-
)}:host([dir=rtl]) .checkmark,:host([dir=rtl]) .chevron{padding-right:var(
|
|
20
|
-
--spectrum-listitem-texticon-icon-gap
|
|
21
|
-
)}:host([dir=rtl]) .chevron{transform:matrix(-1,0,0,1,0,0)}:host{background-color:var(
|
|
13
|
+
))}#label{flex:auto;-webkit-hyphens:auto;hyphens:auto;line-height:var(--spectrum-listitem-texticon-label-line-height);overflow-wrap:break-word;width:calc(100% - var(--spectrum-listitem-texticon-ui-icon-width) - var(--spectrum-listitem-texticon-icon-gap))}:host([no-wrap]) #label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([dir=ltr]) .checkmark,:host([dir=ltr]) .chevron{padding-left:var(--spectrum-listitem-texticon-icon-gap)}:host([dir=rtl]) .checkmark,:host([dir=rtl]) .chevron{padding-right:var(--spectrum-listitem-texticon-icon-gap)}:host([dir=rtl]) .chevron{transform:matrix(-1,0,0,1,0,0)}:host{background-color:var(
|
|
22
14
|
--spectrum-listitem-m-texticon-background-color,var(--spectrum-alias-background-color-transparent)
|
|
23
15
|
);color:var(
|
|
24
16
|
--spectrum-listitem-m-texticon-text-color,var(--spectrum-alias-component-text-color-default)
|
|
@@ -46,7 +38,7 @@ var(--spectrum-global-dimension-size-225)
|
|
|
46
38
|
--spectrum-listitem-m-texticon-background-color-key-focus,var(--spectrum-alias-background-color-hover-overlay)
|
|
47
39
|
);color:var(
|
|
48
40
|
--spectrum-listitem-m-texticon-text-color-key-focus,var(--spectrum-alias-component-text-color-key-focus)
|
|
49
|
-
)}:host
|
|
41
|
+
)}:host .is-highlighted,:host .is-open,:host(:focus),:host(:hover){background-color:var(
|
|
50
42
|
--spectrum-listitem-m-texticon-background-color-hover,var(--spectrum-alias-background-color-hover-overlay)
|
|
51
43
|
);color:var(
|
|
52
44
|
--spectrum-listitem-m-texticon-text-color-hover,var(--spectrum-alias-component-text-color-hover)
|
|
@@ -54,21 +46,21 @@ var(--spectrum-global-dimension-size-225)
|
|
|
54
46
|
--spectrum-listitem-m-texticon-text-color-selected,var(--spectrum-alias-component-text-color-default)
|
|
55
47
|
)}:host([selected]) .checkmark{color:var(
|
|
56
48
|
--spectrum-listitem-m-texticon-ui-icon-color-selected,var(--spectrum-alias-icon-color-selected)
|
|
57
|
-
)}:host(
|
|
49
|
+
)}:host([active]),:host:active{background-color:var(
|
|
58
50
|
--spectrum-listitem-m-texticon-background-color-down,var(--spectrum-alias-background-color-hover-overlay)
|
|
59
51
|
)}:host([disabled]){background-color:var(
|
|
60
52
|
--spectrum-listitem-m-texticon-background-color-disabled,var(--spectrum-alias-background-color-transparent)
|
|
61
53
|
);background-image:none;color:var(
|
|
62
54
|
--spectrum-listitem-m-texticon-text-color-disabled,var(--spectrum-alias-component-text-color-disabled)
|
|
63
|
-
);cursor:default}@media (forced-colors:active){:host{--spectrum-listheading-text-color:ButtonText;--spectrum-listitem-m-texticon-background-color:ButtonFace;--spectrum-listitem-m-texticon-background-color-disabled:ButtonFace;--spectrum-listitem-m-texticon-background-color-down:ButtonFace;--spectrum-listitem-m-texticon-background-color-hover:Highlight;--spectrum-listitem-m-texticon-background-color-key-focus:Highlight;--spectrum-listitem-m-texticon-focus-indicator-color:Highlight;--spectrum-listitem-m-texticon-text-color:ButtonText;--spectrum-listitem-m-texticon-text-color-disabled:GrayText;--spectrum-listitem-m-texticon-text-color-hover:HighlightText;--spectrum-listitem-m-texticon-text-color-key-focus:HighlightText;--spectrum-listitem-m-texticon-text-color-selected:ButtonText;--spectrum-listitem-m-texticon-ui-icon-color-selected:Highlight;forced-color-adjust:none}:host(:not([disabled]).
|
|
55
|
+
);cursor:default}@media (forced-colors:active){:host{--spectrum-listheading-text-color:ButtonText;--spectrum-listitem-m-texticon-background-color:ButtonFace;--spectrum-listitem-m-texticon-background-color-disabled:ButtonFace;--spectrum-listitem-m-texticon-background-color-down:ButtonFace;--spectrum-listitem-m-texticon-background-color-hover:Highlight;--spectrum-listitem-m-texticon-background-color-key-focus:Highlight;--spectrum-listitem-m-texticon-focus-indicator-color:Highlight;--spectrum-listitem-m-texticon-text-color:ButtonText;--spectrum-listitem-m-texticon-text-color-disabled:GrayText;--spectrum-listitem-m-texticon-text-color-hover:HighlightText;--spectrum-listitem-m-texticon-text-color-key-focus:HighlightText;--spectrum-listitem-m-texticon-text-color-selected:ButtonText;--spectrum-listitem-m-texticon-ui-icon-color-selected:Highlight;forced-color-adjust:none}:host(:not([disabled])) .is-highlighted,:host(:not([disabled])) .is-open,:host(:not([disabled]).focus-visible),:host(:not([disabled]):focus),:host(:not([disabled]):hover),:host(:not([disabled])[focused]){background-color:var(
|
|
64
56
|
--spectrum-listitem-m-texticon-background-color-key-focus,var(--spectrum-alias-background-color-hover-overlay)
|
|
65
57
|
);color:var(
|
|
66
58
|
--spectrum-listitem-m-texticon-text-color-key-focus,var(--spectrum-alias-component-text-color-key-focus)
|
|
67
|
-
)}:host(:not([disabled]).is-highlighted
|
|
59
|
+
)}:host(:not([disabled])) .is-highlighted,:host(:not([disabled])) .is-open,:host(:not([disabled]):focus),:host(:not([disabled]):focus-visible),:host(:not([disabled]):hover),:host(:not([disabled])[focused]){background-color:var(
|
|
68
60
|
--spectrum-listitem-m-texticon-background-color-key-focus,var(--spectrum-alias-background-color-hover-overlay)
|
|
69
61
|
);color:var(
|
|
70
62
|
--spectrum-listitem-m-texticon-text-color-key-focus,var(--spectrum-alias-component-text-color-key-focus)
|
|
71
|
-
)}:host(:not([disabled]).focus-visible[selected]) .checkmark,:host(:not([disabled])
|
|
63
|
+
)}:host(:not([disabled]).focus-visible[selected]) .checkmark,:host(:not([disabled])[focused][selected]) .checkmark,:host(:not([disabled])[selected]) .is-highlighted .checkmark,:host(:not([disabled])[selected]) .is-open .checkmark,:host(:not([disabled])[selected]:focus) .checkmark,:host(:not([disabled])[selected]:hover) .checkmark{color:HighlightText}:host(:not([disabled]).focus-visible[selected]) .checkmark,:host(:not([disabled])[focused][selected]) .checkmark,:host(:not([disabled])[selected]) .is-highlighted .checkmark,:host(:not([disabled])[selected]) .is-open .checkmark,:host(:not([disabled])[selected]:focus) .checkmark,:host(:not([disabled])[selected]:hover) .checkmark{color:HighlightText}:host(:not([disabled]):focus-visible[selected]) .checkmark,:host(:not([disabled])[focused][selected]) .checkmark,:host(:not([disabled])[selected]) .is-highlighted .checkmark,:host(:not([disabled])[selected]) .is-open .checkmark,:host(:not([disabled])[selected]:focus) .checkmark,:host(:not([disabled])[selected]:hover) .checkmark{color:HighlightText}}
|
|
72
64
|
`;
|
|
73
65
|
export default styles;
|
|
74
66
|
//# sourceMappingURL=spectrum-menu-item.css.dev.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-menu-item.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 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:host([dir=ltr]){border-left:var(--spectrum-listitem-texticon-focus-indicator-size) solid transparent}:host([dir=rtl]){border-right:var(--spectrum-listitem-texticon-focus-indicator-size) solid transparent}:host{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--spectrum-listitem-texticon-text-size);font-style:normal;font-weight:var(--spectrum-listitem-texticon-text-font-weight);margin:0;min-height:var(--spectrum-listitem-texticon-height);padding:var(--spectrum-listitem-texticon-padding-y) var(--spectrum-listitem-texticon-padding-right) var(--spectrum-listitem-texticon-padding-y) var(--spectrum-listitem-texticon-padding-left);position:relative;text-decoration:none}:host(:focus){outline:none}:host([dir=ltr][selected]){padding-right:calc(var(--spectrum-listitem-texticon-padding-right) - var(\n--spectrum-popover-border-size,\nvar(--spectrum-alias-border-size-thin)\n))}:host([dir=rtl][selected]){padding-left:calc(var(--spectrum-listitem-texticon-padding-right) - var(\n--spectrum-popover-border-size,\nvar(--spectrum-alias-border-size-thin)\n))}:host([selected]) .checkmark{display:block}.icon,::slotted([slot=icon]){align-self:flex-start;flex-shrink:0}:host([dir=ltr]) .icon+#label,:host([dir=ltr])
|
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 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:host([dir=ltr]){border-left:var(--spectrum-listitem-texticon-focus-indicator-size) solid transparent}:host([dir=rtl]){border-right:var(--spectrum-listitem-texticon-focus-indicator-size) solid transparent}:host{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--spectrum-listitem-texticon-text-size);font-style:normal;font-weight:var(--spectrum-listitem-texticon-text-font-weight);margin:0;min-height:var(--spectrum-listitem-texticon-height);padding:var(--spectrum-listitem-texticon-padding-y) var(--spectrum-listitem-texticon-padding-right) var(--spectrum-listitem-texticon-padding-y) var(--spectrum-listitem-texticon-padding-left);position:relative;text-decoration:none}:host(:focus){outline:none}:host([dir=ltr][selected]){padding-right:calc(var(--spectrum-listitem-texticon-padding-right) - var(\n--spectrum-popover-border-size,\nvar(--spectrum-alias-border-size-thin)\n))}:host([dir=rtl][selected]){padding-left:calc(var(--spectrum-listitem-texticon-padding-right) - var(\n--spectrum-popover-border-size,\nvar(--spectrum-alias-border-size-thin)\n))}:host([selected]) .checkmark{display:block}.icon,::slotted([slot=icon]){align-self:flex-start;flex-shrink:0}:host([dir=ltr]) .icon+#label,:host([dir=ltr]) [name=icon]+#label{margin-left:var(--spectrum-listitem-texticon-icon-gap)}:host([dir=rtl]) .icon+#label,:host([dir=rtl]) [name=icon]+#label{margin-right:var(--spectrum-listitem-texticon-icon-gap)}.icon+#label,[name=icon]+#label{width:calc(100% - var(--spectrum-listitem-texticon-ui-icon-width) - var(--spectrum-listitem-texticon-icon-gap) - var(--spectrum-listitem-textthumbnail-padding-left) - var(\n--spectrum-alias-workflow-icon-size-m,\nvar(--spectrum-global-dimension-size-225)\n))}#label{flex:auto;-webkit-hyphens:auto;hyphens:auto;line-height:var(--spectrum-listitem-texticon-label-line-height);overflow-wrap:break-word;width:calc(100% - var(--spectrum-listitem-texticon-ui-icon-width) - var(--spectrum-listitem-texticon-icon-gap))}:host([no-wrap]) #label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([dir=ltr]) .checkmark,:host([dir=ltr]) .chevron{padding-left:var(--spectrum-listitem-texticon-icon-gap)}:host([dir=rtl]) .checkmark,:host([dir=rtl]) .chevron{padding-right:var(--spectrum-listitem-texticon-icon-gap)}:host([dir=rtl]) .chevron{transform:matrix(-1,0,0,1,0,0)}:host{background-color:var(\n--spectrum-listitem-m-texticon-background-color,var(--spectrum-alias-background-color-transparent)\n);color:var(\n--spectrum-listitem-m-texticon-text-color,var(--spectrum-alias-component-text-color-default)\n)}:host([dir=ltr].focus-visible),:host([dir=ltr][focused]){border-left-color:var(\n--spectrum-listitem-m-texticon-focus-indicator-color,var(--spectrum-alias-border-color-key-focus)\n)}:host([dir=ltr].focus-visible),:host([dir=ltr][focused]){border-left-color:var(\n--spectrum-listitem-m-texticon-focus-indicator-color,var(--spectrum-alias-border-color-key-focus)\n)}:host([dir=ltr]:focus-visible),:host([dir=ltr][focused]){border-left-color:var(\n--spectrum-listitem-m-texticon-focus-indicator-color,var(--spectrum-alias-border-color-key-focus)\n)}:host([dir=rtl].focus-visible),:host([dir=rtl][focused]){border-right-color:var(\n--spectrum-listitem-m-texticon-focus-indicator-color,var(--spectrum-alias-border-color-key-focus)\n)}:host([dir=rtl].focus-visible),:host([dir=rtl][focused]){border-right-color:var(\n--spectrum-listitem-m-texticon-focus-indicator-color,var(--spectrum-alias-border-color-key-focus)\n)}:host([dir=rtl]:focus-visible),:host([dir=rtl][focused]){border-right-color:var(\n--spectrum-listitem-m-texticon-focus-indicator-color,var(--spectrum-alias-border-color-key-focus)\n)}:host(.focus-visible),:host([focused]){background-color:var(\n--spectrum-listitem-m-texticon-background-color-key-focus,var(--spectrum-alias-background-color-hover-overlay)\n);color:var(\n--spectrum-listitem-m-texticon-text-color-key-focus,var(--spectrum-alias-component-text-color-key-focus)\n)}:host(.focus-visible),:host([focused]){background-color:var(\n--spectrum-listitem-m-texticon-background-color-key-focus,var(--spectrum-alias-background-color-hover-overlay)\n);color:var(\n--spectrum-listitem-m-texticon-text-color-key-focus,var(--spectrum-alias-component-text-color-key-focus)\n)}:host(:focus-visible),:host([focused]){background-color:var(\n--spectrum-listitem-m-texticon-background-color-key-focus,var(--spectrum-alias-background-color-hover-overlay)\n);color:var(\n--spectrum-listitem-m-texticon-text-color-key-focus,var(--spectrum-alias-component-text-color-key-focus)\n)}:host .is-highlighted,:host .is-open,:host(:focus),:host(:hover){background-color:var(\n--spectrum-listitem-m-texticon-background-color-hover,var(--spectrum-alias-background-color-hover-overlay)\n);color:var(\n--spectrum-listitem-m-texticon-text-color-hover,var(--spectrum-alias-component-text-color-hover)\n)}:host([selected]){color:var(\n--spectrum-listitem-m-texticon-text-color-selected,var(--spectrum-alias-component-text-color-default)\n)}:host([selected]) .checkmark{color:var(\n--spectrum-listitem-m-texticon-ui-icon-color-selected,var(--spectrum-alias-icon-color-selected)\n)}:host([active]),:host:active{background-color:var(\n--spectrum-listitem-m-texticon-background-color-down,var(--spectrum-alias-background-color-hover-overlay)\n)}:host([disabled]){background-color:var(\n--spectrum-listitem-m-texticon-background-color-disabled,var(--spectrum-alias-background-color-transparent)\n);background-image:none;color:var(\n--spectrum-listitem-m-texticon-text-color-disabled,var(--spectrum-alias-component-text-color-disabled)\n);cursor:default}@media (forced-colors:active){:host{--spectrum-listheading-text-color:ButtonText;--spectrum-listitem-m-texticon-background-color:ButtonFace;--spectrum-listitem-m-texticon-background-color-disabled:ButtonFace;--spectrum-listitem-m-texticon-background-color-down:ButtonFace;--spectrum-listitem-m-texticon-background-color-hover:Highlight;--spectrum-listitem-m-texticon-background-color-key-focus:Highlight;--spectrum-listitem-m-texticon-focus-indicator-color:Highlight;--spectrum-listitem-m-texticon-text-color:ButtonText;--spectrum-listitem-m-texticon-text-color-disabled:GrayText;--spectrum-listitem-m-texticon-text-color-hover:HighlightText;--spectrum-listitem-m-texticon-text-color-key-focus:HighlightText;--spectrum-listitem-m-texticon-text-color-selected:ButtonText;--spectrum-listitem-m-texticon-ui-icon-color-selected:Highlight;forced-color-adjust:none}:host(:not([disabled])) .is-highlighted,:host(:not([disabled])) .is-open,:host(:not([disabled]).focus-visible),:host(:not([disabled]):focus),:host(:not([disabled]):hover),:host(:not([disabled])[focused]){background-color:var(\n--spectrum-listitem-m-texticon-background-color-key-focus,var(--spectrum-alias-background-color-hover-overlay)\n);color:var(\n--spectrum-listitem-m-texticon-text-color-key-focus,var(--spectrum-alias-component-text-color-key-focus)\n)}:host(:not([disabled])) .is-highlighted,:host(:not([disabled])) .is-open,:host(:not([disabled]):focus),:host(:not([disabled]):focus-visible),:host(:not([disabled]):hover),:host(:not([disabled])[focused]){background-color:var(\n--spectrum-listitem-m-texticon-background-color-key-focus,var(--spectrum-alias-background-color-hover-overlay)\n);color:var(\n--spectrum-listitem-m-texticon-text-color-key-focus,var(--spectrum-alias-component-text-color-key-focus)\n)}:host(:not([disabled]).focus-visible[selected]) .checkmark,:host(:not([disabled])[focused][selected]) .checkmark,:host(:not([disabled])[selected]) .is-highlighted .checkmark,:host(:not([disabled])[selected]) .is-open .checkmark,:host(:not([disabled])[selected]:focus) .checkmark,:host(:not([disabled])[selected]:hover) .checkmark{color:HighlightText}:host(:not([disabled]).focus-visible[selected]) .checkmark,:host(:not([disabled])[focused][selected]) .checkmark,:host(:not([disabled])[selected]) .is-highlighted .checkmark,:host(:not([disabled])[selected]) .is-open .checkmark,:host(:not([disabled])[selected]:focus) .checkmark,:host(:not([disabled])[selected]:hover) .checkmark{color:HighlightText}:host(:not([disabled]):focus-visible[selected]) .checkmark,:host(:not([disabled])[focused][selected]) .checkmark,:host(:not([disabled])[selected]) .is-highlighted .checkmark,:host(:not([disabled])[selected]) .is-open .checkmark,:host(:not([disabled])[selected]:focus) .checkmark,:host(:not([disabled])[selected]:hover) .checkmark{color:HighlightText}}\n`;\nexport default styles;"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA8Df,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|