@getflip/swirl-components 0.63.0 → 0.64.0
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/components.json +537 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-action-list_3.cjs.entry.js +7 -3
- package/dist/cjs/swirl-app-layout_7.cjs.entry.js +1 -1
- package/dist/cjs/swirl-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/swirl-banner.cjs.entry.js +1 -1
- package/dist/cjs/swirl-button.cjs.entry.js +2 -2
- package/dist/cjs/swirl-carousel.cjs.entry.js +1 -1
- package/dist/cjs/swirl-chip.cjs.entry.js +1 -1
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/cjs/swirl-console-layout.cjs.entry.js +1 -1
- package/dist/cjs/swirl-date-input.cjs.entry.js +1 -1
- package/dist/cjs/swirl-file-viewer_7.cjs.entry.js +1 -1
- package/dist/cjs/swirl-form-control.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-check-small_3.cjs.entry.js +107 -0
- package/dist/cjs/swirl-icon-error_3.cjs.entry.js +1 -1
- package/dist/cjs/swirl-inline-status.cjs.entry.js +1 -1
- package/dist/cjs/swirl-lightbox.cjs.entry.js +1 -1
- package/dist/cjs/swirl-menu-item.cjs.entry.js +120 -0
- package/dist/cjs/swirl-menu.cjs.entry.js +303 -0
- package/dist/cjs/{swirl-icon-check-small_4.cjs.entry.js → swirl-option-list.cjs.entry.js} +1 -100
- package/dist/cjs/swirl-pagination.cjs.entry.js +1 -1
- package/dist/cjs/swirl-pdf-reader.cjs.entry.js +1 -1
- package/dist/cjs/swirl-popover.cjs.entry.js +6 -3
- package/dist/cjs/swirl-resource-list-file-item.cjs.entry.js +1 -1
- package/dist/cjs/swirl-search.cjs.entry.js +1 -1
- package/dist/cjs/swirl-select.cjs.entry.js +1 -1
- package/dist/cjs/swirl-shell-layout.cjs.entry.js +1 -1
- package/dist/cjs/swirl-table-column.cjs.entry.js +1 -1
- package/dist/cjs/swirl-table-row.cjs.entry.js +1 -1
- package/dist/cjs/swirl-table.cjs.entry.js +1 -1
- package/dist/cjs/swirl-text-input.cjs.entry.js +2 -2
- package/dist/cjs/swirl-toast.cjs.entry.js +1 -1
- package/dist/cjs/{utils-f1b4e064.js → utils-c00c09b9.js} +18 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/swirl-action-list-item/swirl-action-list-item.css +13 -0
- package/dist/collection/components/swirl-action-list-item/swirl-action-list-item.js +56 -1
- package/dist/collection/components/swirl-action-list-item/swirl-action-list-item.stories.js +1 -0
- package/dist/collection/components/swirl-button/swirl-button.css +4 -0
- package/dist/collection/components/swirl-menu/swirl-menu.css +98 -0
- package/dist/collection/components/swirl-menu/swirl-menu.js +638 -0
- package/dist/collection/components/swirl-menu/swirl-menu.stories.js +59 -0
- package/dist/collection/components/swirl-menu-item/swirl-menu-item.css +11 -0
- package/dist/collection/components/swirl-menu-item/swirl-menu-item.js +301 -0
- package/dist/collection/components/swirl-menu-item/swirl-menu-item.stories.js +20 -0
- package/dist/collection/components/swirl-option-list-item/swirl-option-list-item.css +2 -1
- package/dist/collection/components/swirl-option-list-item/swirl-option-list-item.js +25 -1
- package/dist/collection/components/swirl-popover/swirl-popover.js +5 -2
- package/dist/collection/components/swirl-text-input/swirl-text-input.js +1 -1
- package/dist/collection/utils.js +17 -0
- package/dist/components/swirl-action-list-item2.js +9 -2
- package/dist/components/swirl-button2.js +1 -1
- package/dist/components/swirl-menu-item.d.ts +11 -0
- package/dist/components/swirl-menu-item.js +177 -0
- package/dist/components/swirl-menu.d.ts +11 -0
- package/dist/components/swirl-menu.js +348 -0
- package/dist/components/swirl-option-list-item2.js +4 -2
- package/dist/components/swirl-popover2.js +5 -2
- package/dist/components/swirl-text-input2.js +1 -1
- package/dist/components/utils.js +18 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-action-list_3.entry.js +7 -3
- package/dist/esm/swirl-app-layout_7.entry.js +1 -1
- package/dist/esm/swirl-autocomplete.entry.js +1 -1
- package/dist/esm/swirl-banner.entry.js +1 -1
- package/dist/esm/swirl-button.entry.js +2 -2
- package/dist/esm/swirl-carousel.entry.js +1 -1
- package/dist/esm/swirl-chip.entry.js +1 -1
- package/dist/esm/swirl-components.js +1 -1
- package/dist/esm/swirl-console-layout.entry.js +1 -1
- package/dist/esm/swirl-date-input.entry.js +1 -1
- package/dist/esm/swirl-file-viewer_7.entry.js +1 -1
- package/dist/esm/swirl-form-control.entry.js +1 -1
- package/dist/esm/swirl-icon-check-small_3.entry.js +101 -0
- package/dist/esm/swirl-icon-error_3.entry.js +1 -1
- package/dist/esm/swirl-inline-status.entry.js +1 -1
- package/dist/esm/swirl-lightbox.entry.js +1 -1
- package/dist/esm/swirl-menu-item.entry.js +116 -0
- package/dist/esm/swirl-menu.entry.js +299 -0
- package/dist/esm/{swirl-icon-check-small_4.entry.js → swirl-option-list.entry.js} +3 -99
- package/dist/esm/swirl-pagination.entry.js +1 -1
- package/dist/esm/swirl-pdf-reader.entry.js +1 -1
- package/dist/esm/swirl-popover.entry.js +6 -3
- package/dist/esm/swirl-resource-list-file-item.entry.js +1 -1
- package/dist/esm/swirl-search.entry.js +1 -1
- package/dist/esm/swirl-select.entry.js +1 -1
- package/dist/esm/swirl-shell-layout.entry.js +1 -1
- package/dist/esm/swirl-table-column.entry.js +1 -1
- package/dist/esm/swirl-table-row.entry.js +1 -1
- package/dist/esm/swirl-table.entry.js +1 -1
- package/dist/esm/swirl-text-input.entry.js +2 -2
- package/dist/esm/swirl-toast.entry.js +1 -1
- package/dist/esm/{utils-61f188cc.js → utils-bc84f36e.js} +18 -1
- package/dist/swirl-components/{p-8dfc39cb.entry.js → p-0923d414.entry.js} +1 -1
- package/dist/swirl-components/{p-6ff9eaeb.entry.js → p-0bbb5fc1.entry.js} +1 -1
- package/dist/swirl-components/p-10982642.entry.js +1 -0
- package/dist/swirl-components/p-15a0c3b7.entry.js +1 -0
- package/dist/swirl-components/{p-61a52a24.entry.js → p-3a65de25.entry.js} +1 -1
- package/dist/swirl-components/{p-9426ae2f.entry.js → p-3f771d50.entry.js} +1 -1
- package/dist/swirl-components/{p-7412f5ee.entry.js → p-4a4de053.entry.js} +1 -1
- package/dist/swirl-components/{p-9b0a9699.entry.js → p-55b1272e.entry.js} +1 -1
- package/dist/swirl-components/p-5e3b655e.entry.js +1 -0
- package/dist/swirl-components/{p-f5a94ea4.entry.js → p-6374ba81.entry.js} +1 -1
- package/dist/swirl-components/p-646e00de.js +1 -0
- package/dist/swirl-components/{p-9ad9ce19.entry.js → p-67c5bd0b.entry.js} +1 -1
- package/dist/swirl-components/{p-64b92967.entry.js → p-6837305a.entry.js} +1 -1
- package/dist/swirl-components/{p-793efeb4.entry.js → p-72551401.entry.js} +1 -1
- package/dist/swirl-components/{p-ec92d2e5.entry.js → p-853c0b12.entry.js} +1 -1
- package/dist/swirl-components/p-8b24d376.entry.js +1 -0
- package/dist/swirl-components/{p-5b691374.entry.js → p-8d998dbc.entry.js} +1 -1
- package/dist/swirl-components/{p-063afb09.entry.js → p-96ef492c.entry.js} +1 -1
- package/dist/swirl-components/{p-4f44b9e7.entry.js → p-994c100c.entry.js} +1 -1
- package/dist/swirl-components/{p-c2d3b142.entry.js → p-9ffbe866.entry.js} +1 -1
- package/dist/swirl-components/{p-d463715d.entry.js → p-a40d9dad.entry.js} +1 -1
- package/dist/swirl-components/{p-3a763e22.entry.js → p-a478559c.entry.js} +1 -1
- package/dist/swirl-components/{p-40546623.entry.js → p-a57959f0.entry.js} +1 -1
- package/dist/swirl-components/{p-457e9e49.entry.js → p-a5a28ec0.entry.js} +1 -1
- package/dist/swirl-components/{p-4820eae0.entry.js → p-a7c6a435.entry.js} +1 -1
- package/dist/swirl-components/p-ba73baae.entry.js +7 -0
- package/dist/swirl-components/{p-77daca19.entry.js → p-bbe3144e.entry.js} +1 -1
- package/dist/swirl-components/{p-c009d887.entry.js → p-c18d7dce.entry.js} +1 -1
- package/dist/swirl-components/{p-e5cec3a4.entry.js → p-c6e03bee.entry.js} +1 -1
- package/dist/swirl-components/p-e67ac70c.entry.js +1 -0
- package/dist/swirl-components/p-f5be17c6.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-action-list-item/swirl-action-list-item.d.ts +3 -0
- package/dist/types/components/swirl-menu/swirl-menu.d.ts +78 -0
- package/dist/types/components/swirl-menu/swirl-menu.stories.d.ts +14 -0
- package/dist/types/components/swirl-menu-item/swirl-menu-item.d.ts +35 -0
- package/dist/types/components/swirl-menu-item/swirl-menu-item.stories.d.ts +14 -0
- package/dist/types/components/swirl-option-list-item/swirl-option-list-item.d.ts +2 -0
- package/dist/types/components.d.ts +114 -2
- package/dist/types/utils.d.ts +1 -0
- package/package.json +1 -1
- package/vscode-data.json +118 -0
- package/dist/swirl-components/p-438b3941.js +0 -1
- package/dist/swirl-components/p-5a715e12.entry.js +0 -1
- package/dist/swirl-components/p-5e837595.entry.js +0 -8
- package/dist/swirl-components/p-b78ef534.entry.js +0 -1
- package/dist/swirl-components/p-f1f97749.entry.js +0 -1
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-83363034.js');
|
|
6
6
|
const index$1 = require('./index-2ddd0598.js');
|
|
7
|
-
const utils = require('./utils-
|
|
7
|
+
const utils = require('./utils-c00c09b9.js');
|
|
8
8
|
|
|
9
9
|
const swirlToastCss = ":host{display:flex}:host *{box-sizing:border-box}.toast{display:flex;width:100%;max-width:28rem;padding:var(--s-space-16);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);box-shadow:var(--s-shadow-level-2)}.toast--intent-critical{background-color:var(--s-surface-critical-default)}.toast--intent-success{background-color:var(--s-surface-success-default)}.toast__icon{display:inline-flex;margin-top:calc(-1 * var(--s-space-2));margin-right:0.625rem;flex-shrink:0}.toast__icon ::part(icon){color:var(--s-icon-on-status)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.toast__icon{margin-top:0}}.toast__content{flex-grow:1;line-height:var(--s-line-height-base);text-align:left;align-self:flex-start}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.toast__content{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.toast__content ::part(link){color:var(--text-default)}.toast__dismiss-button{display:inline-flex;min-width:1.5rem;height:1.5rem;margin-top:calc(-1 * var(--s-space-2));margin-left:var(--s-space-16);padding:0;flex-shrink:0;justify-content:center;align-items:center;border:none;color:var(--s-text-on-status);background-color:transparent;font:inherit;font-weight:var(--s-font-weight-semibold);cursor:pointer}.toast__dismiss-button ::part(icon){color:var(--s-icon-on-status)}";
|
|
10
10
|
|
|
@@ -71,6 +71,23 @@ function getVisibleHeight(element, container) {
|
|
|
71
71
|
function isMobileViewport() {
|
|
72
72
|
return !window.matchMedia("(min-width: 768px)").matches;
|
|
73
73
|
}
|
|
74
|
+
function parentsPassShadow(node, selector, matches = []) {
|
|
75
|
+
if (!node) {
|
|
76
|
+
return matches;
|
|
77
|
+
}
|
|
78
|
+
if (node instanceof ShadowRoot) {
|
|
79
|
+
return parentsPassShadow(node.host, selector, matches);
|
|
80
|
+
}
|
|
81
|
+
if (node instanceof HTMLElement) {
|
|
82
|
+
if (node.matches(selector)) {
|
|
83
|
+
return parentsPassShadow(node.parentNode, selector, [...matches, node]);
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
return parentsPassShadow(node.parentNode, selector, matches);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return parentsPassShadow(node.parentNode, selector, matches);
|
|
90
|
+
}
|
|
74
91
|
function querySelectorAllDeep(root, selector) {
|
|
75
92
|
function collectAllElementsDeep(selector, root) {
|
|
76
93
|
if (!Boolean(root)) {
|
|
@@ -102,4 +119,5 @@ exports.getActiveElement = getActiveElement;
|
|
|
102
119
|
exports.getDesktopMediaQuery = getDesktopMediaQuery;
|
|
103
120
|
exports.getVisibleHeight = getVisibleHeight;
|
|
104
121
|
exports.isMobileViewport = isMobileViewport;
|
|
122
|
+
exports.parentsPassShadow = parentsPassShadow;
|
|
105
123
|
exports.querySelectorAllDeep = querySelectorAllDeep;
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"./components/swirl-inline-notification/swirl-inline-notification.js",
|
|
26
26
|
"./components/swirl-inline-status/swirl-inline-status.js",
|
|
27
27
|
"./components/swirl-link/swirl-link.js",
|
|
28
|
+
"./components/swirl-menu/swirl-menu.js",
|
|
28
29
|
"./components/swirl-modal/swirl-modal.js",
|
|
29
30
|
"./components/swirl-option-list-item/swirl-option-list-item.js",
|
|
30
31
|
"./components/swirl-pagination/swirl-pagination.js",
|
|
@@ -193,6 +194,7 @@
|
|
|
193
194
|
"./components/swirl-icon/icons/swirl-icon-warning.js",
|
|
194
195
|
"./components/swirl-lightbox/swirl-lightbox.js",
|
|
195
196
|
"./components/swirl-list/swirl-list.js",
|
|
197
|
+
"./components/swirl-menu-item/swirl-menu-item.js",
|
|
196
198
|
"./components/swirl-option-list/swirl-option-list.js",
|
|
197
199
|
"./components/swirl-option-list-section/swirl-option-list-section.js",
|
|
198
200
|
"./components/swirl-pdf-reader/swirl-pdf-reader.js",
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
display: inline-flex;
|
|
91
91
|
min-width: 0;
|
|
92
92
|
flex-grow: 1;
|
|
93
|
+
flex-shrink: 1;
|
|
93
94
|
align-items: flex-start;
|
|
94
95
|
flex-direction: column;
|
|
95
96
|
}
|
|
@@ -106,6 +107,18 @@
|
|
|
106
107
|
color: var(--s-text-subdued);
|
|
107
108
|
}
|
|
108
109
|
|
|
110
|
+
.action-list-item__badge {
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
min-width: 4rem;
|
|
113
|
+
padding-left: var(--s-space-8);
|
|
114
|
+
flex-shrink: 3;
|
|
115
|
+
color: var(--s-text-subdued);
|
|
116
|
+
font-weight: var(--s-font-weight-medium);
|
|
117
|
+
text-align: right;
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
text-overflow: ellipsis;
|
|
120
|
+
}
|
|
121
|
+
|
|
109
122
|
.action-list-item__suffix {
|
|
110
123
|
display: inline-flex;
|
|
111
124
|
flex-shrink: 0;
|
|
@@ -7,12 +7,15 @@ export class SwirlActionListItem {
|
|
|
7
7
|
this.desktopMediaQueryHandler = (event) => {
|
|
8
8
|
this.forceIconProps(event.matches);
|
|
9
9
|
};
|
|
10
|
+
this.badge = undefined;
|
|
10
11
|
this.disabled = undefined;
|
|
11
12
|
this.description = undefined;
|
|
12
13
|
this.icon = undefined;
|
|
13
14
|
this.intent = "default";
|
|
14
15
|
this.label = undefined;
|
|
15
16
|
this.size = "m";
|
|
17
|
+
this.swirlAriaExpanded = undefined;
|
|
18
|
+
this.swirlAriaHaspopup = undefined;
|
|
16
19
|
this.suffix = undefined;
|
|
17
20
|
}
|
|
18
21
|
componentDidLoad() {
|
|
@@ -35,9 +38,10 @@ export class SwirlActionListItem {
|
|
|
35
38
|
suffix === null || suffix === void 0 ? void 0 : suffix.setAttribute("size", smallIcon ? "20" : "24");
|
|
36
39
|
}
|
|
37
40
|
render() {
|
|
41
|
+
const showBadge = Boolean(this.badge);
|
|
38
42
|
const showSuffix = Boolean(this.suffix) && !this.disabled;
|
|
39
43
|
const className = classnames("action-list-item", `action-list-item--intent-${this.intent}`, `action-list-item--size-${this.size}`);
|
|
40
|
-
return (h(Host, null, h("button", { class: className, disabled: this.disabled, part: "action-list-item", role: "menuitem", tabIndex: -1, type: "button" }, this.icon && (h("span", { class: "action-list-item__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), h("span", { class: "action-list-item__label-container" }, h("span", { class: "action-list-item__label" }, this.label), this.description && (h("span", { class: "action-list-item__description" }, this.description))), showSuffix && (h("span", { class: "action-list-item__suffix", innerHTML: this.suffix, ref: (el) => (this.suffixEl = el) })))));
|
|
44
|
+
return (h(Host, null, h("button", { "aria-expanded": this.swirlAriaExpanded, "aria-haspopup": this.swirlAriaHaspopup, class: className, disabled: this.disabled, part: "action-list-item", role: "menuitem", tabIndex: -1, type: "button" }, this.icon && (h("span", { class: "action-list-item__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), h("span", { class: "action-list-item__label-container" }, h("span", { class: "action-list-item__label" }, this.label), this.description && (h("span", { class: "action-list-item__description" }, this.description))), showBadge && (h("span", { class: "action-list-item__badge", innerHTML: this.badge })), showSuffix && (h("span", { class: "action-list-item__suffix", innerHTML: this.suffix, ref: (el) => (this.suffixEl = el) })))));
|
|
41
45
|
}
|
|
42
46
|
static get is() { return "swirl-action-list-item"; }
|
|
43
47
|
static get encapsulation() { return "shadow"; }
|
|
@@ -53,6 +57,23 @@ export class SwirlActionListItem {
|
|
|
53
57
|
}
|
|
54
58
|
static get properties() {
|
|
55
59
|
return {
|
|
60
|
+
"badge": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"mutable": false,
|
|
63
|
+
"complexType": {
|
|
64
|
+
"original": "string",
|
|
65
|
+
"resolved": "string",
|
|
66
|
+
"references": {}
|
|
67
|
+
},
|
|
68
|
+
"required": false,
|
|
69
|
+
"optional": true,
|
|
70
|
+
"docs": {
|
|
71
|
+
"tags": [],
|
|
72
|
+
"text": ""
|
|
73
|
+
},
|
|
74
|
+
"attribute": "badge",
|
|
75
|
+
"reflect": false
|
|
76
|
+
},
|
|
56
77
|
"disabled": {
|
|
57
78
|
"type": "boolean",
|
|
58
79
|
"mutable": false,
|
|
@@ -167,6 +188,40 @@ export class SwirlActionListItem {
|
|
|
167
188
|
"reflect": false,
|
|
168
189
|
"defaultValue": "\"m\""
|
|
169
190
|
},
|
|
191
|
+
"swirlAriaExpanded": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"mutable": false,
|
|
194
|
+
"complexType": {
|
|
195
|
+
"original": "string",
|
|
196
|
+
"resolved": "string",
|
|
197
|
+
"references": {}
|
|
198
|
+
},
|
|
199
|
+
"required": false,
|
|
200
|
+
"optional": true,
|
|
201
|
+
"docs": {
|
|
202
|
+
"tags": [],
|
|
203
|
+
"text": ""
|
|
204
|
+
},
|
|
205
|
+
"attribute": "swirl-aria-expanded",
|
|
206
|
+
"reflect": false
|
|
207
|
+
},
|
|
208
|
+
"swirlAriaHaspopup": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"mutable": false,
|
|
211
|
+
"complexType": {
|
|
212
|
+
"original": "string",
|
|
213
|
+
"resolved": "string",
|
|
214
|
+
"references": {}
|
|
215
|
+
},
|
|
216
|
+
"required": false,
|
|
217
|
+
"optional": true,
|
|
218
|
+
"docs": {
|
|
219
|
+
"tags": [],
|
|
220
|
+
"text": ""
|
|
221
|
+
},
|
|
222
|
+
"attribute": "swirl-aria-haspopup",
|
|
223
|
+
"reflect": false
|
|
224
|
+
},
|
|
170
225
|
"suffix": {
|
|
171
226
|
"type": "string",
|
|
172
227
|
"mutable": false,
|
|
@@ -24,6 +24,7 @@ const Template = (args) => {
|
|
|
24
24
|
};
|
|
25
25
|
export const SwirlActionListItem = Template.bind({});
|
|
26
26
|
SwirlActionListItem.args = {
|
|
27
|
+
badge: "Badge",
|
|
27
28
|
description: "Description of the action list item",
|
|
28
29
|
icon: `<swirl-icon-mention></swirl-icon-mention>`,
|
|
29
30
|
label: "This is an action",
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:host * {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.menu {
|
|
10
|
+
width: 100%;
|
|
11
|
+
|
|
12
|
+
--swirl-ghost-button-background-default: var(--s-surface-overlay-default);
|
|
13
|
+
--swirl-ghost-button-background-hovered: var(--s-surface-overlay-hovered);
|
|
14
|
+
--swirl-ghost-button-background-pressed: var(--s-surface-overlay-pressed);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.menu--mobile.menu--root {
|
|
18
|
+
position: relative;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.menu--mobile.menu--root .menu__menu {
|
|
22
|
+
top: 3.5rem;
|
|
23
|
+
transition: left 0.2s;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.menu--mobile.menu--active .menu__menu {
|
|
27
|
+
display: block;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.menu--mobile .menu__menu {
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
display: none;
|
|
35
|
+
width: 100%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:not(.menu--mobile).menu--root {
|
|
39
|
+
position: relative;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:not(.menu--mobile).menu--root .menu__menu {
|
|
43
|
+
position: relative;
|
|
44
|
+
padding-top: 0;
|
|
45
|
+
padding-bottom: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:not(.menu--mobile):not(.menu--root) .menu__menu {
|
|
49
|
+
z-index: 1;
|
|
50
|
+
max-width: 22.5rem;
|
|
51
|
+
border-radius: var(--s-border-radius-sm);
|
|
52
|
+
box-shadow: var(--s-shadow-level-1);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:not(.menu--mobile).menu--active .menu__menu {
|
|
56
|
+
display: block;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:not(.menu--mobile) .menu__menu {
|
|
60
|
+
position: fixed;
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.menu__mobile-header {
|
|
65
|
+
display: flex;
|
|
66
|
+
height: 3.5rem;
|
|
67
|
+
padding-right: var(--s-space-16);
|
|
68
|
+
padding-left: var(--s-space-16);
|
|
69
|
+
justify-content: space-between;
|
|
70
|
+
align-items: center;
|
|
71
|
+
border-bottom: var(--s-border-width-default) solid var(--s-border-default);
|
|
72
|
+
gap: var(--s-space-8);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.menu__mobile-header > * {
|
|
76
|
+
display: inline-flex;
|
|
77
|
+
flex-shrink: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.menu__title {
|
|
81
|
+
min-width: 0;
|
|
82
|
+
flex-grow: 1;
|
|
83
|
+
flex-shrink: 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.menu__title swirl-heading {
|
|
87
|
+
min-width: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.menu__done-button {
|
|
91
|
+
margin-right: calc(-1 * var(--s-space-8));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.menu__menu {
|
|
95
|
+
padding-top: var(--s-space-8);
|
|
96
|
+
padding-bottom: var(--s-space-8);
|
|
97
|
+
background-color: var(--s-surface-overlay-default);
|
|
98
|
+
}
|