@yewdiel21/motion-kit 0.10.0 → 0.14.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/README.md +155 -93
- package/dist/auto/index.d.ts +53 -3
- package/dist/auto/index.js +101 -3
- package/dist/auto/index.js.map +1 -1
- package/dist/{chunk-IKQ5FODN.js → chunk-6P4P7NU6.js} +2 -218
- package/dist/chunk-6P4P7NU6.js.map +1 -0
- package/dist/chunk-CU6SXW3E.js +20334 -0
- package/dist/chunk-CU6SXW3E.js.map +1 -0
- package/dist/{chunk-XAKC2QY7.js → chunk-EY4BJKC4.js} +3 -28
- package/dist/chunk-EY4BJKC4.js.map +1 -0
- package/dist/chunk-QP4QJOEN.js +72 -0
- package/dist/chunk-QP4QJOEN.js.map +1 -0
- package/dist/css/components/activity-feed.css +240 -0
- package/dist/css/components/attachment.css +266 -0
- package/dist/css/components/breadcrumb.css +110 -0
- package/dist/css/components/chart-tooltip.css +168 -0
- package/dist/css/components/chart.css +296 -0
- package/dist/css/components/code-block.css +264 -0
- package/dist/css/components/color-area.css +82 -0
- package/dist/css/components/color-field.css +67 -0
- package/dist/css/components/color-picker.css +131 -0
- package/dist/css/components/color-slider.css +113 -0
- package/dist/css/components/command-search.css +252 -0
- package/dist/css/components/context-menu.css +23 -0
- package/dist/css/components/credit-card.css +288 -0
- package/dist/css/components/data-table.css +591 -0
- package/dist/css/components/date-range-picker.css +168 -0
- package/dist/css/components/date-time-picker.css +178 -0
- package/dist/css/components/drawer.css +58 -0
- package/dist/css/components/editable-table.css +201 -0
- package/dist/css/components/empty-state.css +61 -0
- package/dist/css/components/file-explorer.css +633 -0
- package/dist/css/components/filter-builder.css +232 -0
- package/dist/css/components/hold-confirm.css +87 -0
- package/dist/css/components/hover-card.css +13 -7
- package/dist/css/components/image-preview.css +195 -0
- package/dist/css/components/json-viewer.css +272 -0
- package/dist/css/components/like-button.css +78 -0
- package/dist/css/components/link-preview.css +275 -0
- package/dist/css/components/loading-button.css +77 -0
- package/dist/css/components/multi-select.css +267 -0
- package/dist/css/components/notification-bell.css +127 -0
- package/dist/css/components/password-strength.css +183 -0
- package/dist/css/components/popover.css +25 -0
- package/dist/css/components/progress.css +140 -0
- package/dist/css/components/questionnaire.css +217 -0
- package/dist/css/components/range-calendar.css +186 -0
- package/dist/css/components/range-slider.css +192 -0
- package/dist/css/components/resizable-panel.css +243 -0
- package/dist/css/components/rich-text-editor.css +284 -0
- package/dist/css/components/scratch-card.css +75 -0
- package/dist/css/components/skeleton.css +108 -0
- package/dist/css/components/split-view.css +19 -0
- package/dist/css/components/star-rating.css +80 -0
- package/dist/css/components/stat-card.css +164 -0
- package/dist/css/components/swipe-actions.css +105 -0
- package/dist/css/components/tag-input.css +244 -0
- package/dist/css/components/time-field.css +88 -0
- package/dist/css/components/timeline.css +219 -0
- package/dist/css/components/tooltip.css +79 -0
- package/dist/css/components/tree-view.css +210 -0
- package/dist/css/components/virtual-list.css +195 -0
- package/dist/css/tokens.css +185 -181
- package/dist/elements/index.d.ts +674 -5
- package/dist/elements/index.js +1361 -8
- package/dist/elements/index.js.map +1 -1
- package/dist/{engine-GDGwQnJE.d.ts → engine-Cn6IhE3z.d.ts} +1 -1
- package/dist/engine-QECQnGz1.d.ts +33 -0
- package/dist/index.css +9104 -189
- package/dist/index.d.ts +89 -5
- package/dist/index.js +243 -9
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.ts +579 -23
- package/dist/react/index.js +2042 -7
- package/dist/react/index.js.map +1 -1
- package/dist/{reduced-BmBzKH94.d.ts → reduced-BBUusld6.d.ts} +9 -2
- package/dist/reveal-DEvp6U6T.d.ts +2381 -0
- package/dist/{store-DYb3tTsZ.d.ts → store-DjkTBX7f.d.ts} +2 -2
- package/package.json +1 -1
- package/registry.json +406 -1
- package/src/auto/auto-init.ts +98 -0
- package/src/components/activity-feed/README.md +56 -0
- package/src/components/activity-feed/activity-feed.css +239 -0
- package/src/components/activity-feed/element.ts +36 -0
- package/src/components/activity-feed/engine.ts +351 -0
- package/src/components/activity-feed/react.tsx +32 -0
- package/src/components/attachment/README.md +27 -0
- package/src/components/attachment/attachment.css +265 -0
- package/src/components/attachment/element.ts +50 -0
- package/src/components/attachment/engine.ts +469 -0
- package/src/components/attachment/react.tsx +65 -0
- package/src/components/breadcrumb/README.md +38 -0
- package/src/components/breadcrumb/breadcrumb.css +109 -0
- package/src/components/breadcrumb/element.ts +27 -0
- package/src/components/breadcrumb/engine.ts +249 -0
- package/src/components/breadcrumb/react.tsx +30 -0
- package/src/components/chart/README.md +24 -0
- package/src/components/chart/chart.css +295 -0
- package/src/components/chart/element.ts +41 -0
- package/src/components/chart/engine.ts +811 -0
- package/src/components/chart/react.tsx +50 -0
- package/src/components/chart-tooltip/README.md +53 -0
- package/src/components/chart-tooltip/chart-tooltip.css +167 -0
- package/src/components/chart-tooltip/element.ts +37 -0
- package/src/components/chart-tooltip/engine.ts +442 -0
- package/src/components/chart-tooltip/react.tsx +47 -0
- package/src/components/code-block/README.md +19 -0
- package/src/components/code-block/code-block.css +263 -0
- package/src/components/code-block/element.ts +34 -0
- package/src/components/code-block/engine.ts +254 -0
- package/src/components/code-block/highlight.ts +244 -0
- package/src/components/code-block/react.tsx +94 -0
- package/src/components/color-area/README.md +50 -0
- package/src/components/color-area/color-area.css +81 -0
- package/src/components/color-area/element.ts +26 -0
- package/src/components/color-area/engine.ts +246 -0
- package/src/components/color-area/react.tsx +42 -0
- package/src/components/color-field/README.md +43 -0
- package/src/components/color-field/color-field.css +66 -0
- package/src/components/color-field/element.ts +26 -0
- package/src/components/color-field/engine.ts +174 -0
- package/src/components/color-field/react.tsx +42 -0
- package/src/components/color-picker/README.md +45 -0
- package/src/components/color-picker/color-picker.css +130 -0
- package/src/components/color-picker/element.ts +45 -0
- package/src/components/color-picker/engine.ts +314 -0
- package/src/components/color-picker/react.tsx +47 -0
- package/src/components/color-slider/README.md +55 -0
- package/src/components/color-slider/color-slider.css +112 -0
- package/src/components/color-slider/element.ts +26 -0
- package/src/components/color-slider/engine.ts +234 -0
- package/src/components/color-slider/react.tsx +45 -0
- package/src/components/command-search/README.md +15 -0
- package/src/components/command-search/command-search.css +251 -0
- package/src/components/command-search/element.ts +36 -0
- package/src/components/command-search/engine.ts +356 -0
- package/src/components/command-search/match.ts +53 -0
- package/src/components/command-search/react.tsx +66 -0
- package/src/components/context-menu/README.md +31 -0
- package/src/components/context-menu/context-menu.css +22 -0
- package/src/components/context-menu/element.ts +40 -0
- package/src/components/context-menu/engine.ts +153 -0
- package/src/components/context-menu/react.tsx +57 -0
- package/src/components/credit-card/README.md +20 -0
- package/src/components/credit-card/card.ts +77 -0
- package/src/components/credit-card/credit-card.css +287 -0
- package/src/components/credit-card/element.ts +33 -0
- package/src/components/credit-card/engine.ts +410 -0
- package/src/components/credit-card/react.tsx +36 -0
- package/src/components/data-table/README.md +83 -0
- package/src/components/data-table/data-table.css +590 -0
- package/src/components/data-table/element.ts +54 -0
- package/src/components/data-table/engine.ts +1059 -0
- package/src/components/data-table/react.tsx +94 -0
- package/src/components/date-range-picker/README.md +51 -0
- package/src/components/date-range-picker/date-range-picker.css +167 -0
- package/src/components/date-range-picker/element.ts +52 -0
- package/src/components/date-range-picker/engine.ts +352 -0
- package/src/components/date-range-picker/react.tsx +57 -0
- package/src/components/date-time-picker/README.md +48 -0
- package/src/components/date-time-picker/date-time-picker.css +177 -0
- package/src/components/date-time-picker/element.ts +47 -0
- package/src/components/date-time-picker/engine.ts +350 -0
- package/src/components/date-time-picker/react.tsx +54 -0
- package/src/components/dialog/README.md +103 -102
- package/src/components/dialog/element.ts +123 -118
- package/src/components/dialog/engine.ts +449 -432
- package/src/components/drawer/README.md +28 -0
- package/src/components/drawer/drawer.css +57 -0
- package/src/components/drawer/element.ts +21 -0
- package/src/components/drawer/engine.ts +56 -0
- package/src/components/drawer/react.tsx +85 -0
- package/src/components/editable-table/README.md +67 -0
- package/src/components/editable-table/editable-table.css +200 -0
- package/src/components/editable-table/element.ts +45 -0
- package/src/components/editable-table/engine.ts +775 -0
- package/src/components/editable-table/react.tsx +79 -0
- package/src/components/empty-state/README.md +41 -0
- package/src/components/empty-state/element.ts +23 -0
- package/src/components/empty-state/empty-state.css +60 -0
- package/src/components/empty-state/engine.ts +232 -0
- package/src/components/empty-state/react.tsx +34 -0
- package/src/components/file-explorer/README.md +67 -0
- package/src/components/file-explorer/element.ts +39 -0
- package/src/components/file-explorer/engine.ts +1307 -0
- package/src/components/file-explorer/file-explorer.css +632 -0
- package/src/components/file-explorer/react.tsx +77 -0
- package/src/components/filter-builder/README.md +47 -0
- package/src/components/filter-builder/element.ts +34 -0
- package/src/components/filter-builder/engine.ts +365 -0
- package/src/components/filter-builder/filter-builder.css +231 -0
- package/src/components/filter-builder/react.tsx +36 -0
- package/src/components/hold-confirm/README.md +13 -0
- package/src/components/hold-confirm/element.ts +24 -0
- package/src/components/hold-confirm/engine.ts +216 -0
- package/src/components/hold-confirm/hold-confirm.css +86 -0
- package/src/components/hold-confirm/react.tsx +28 -0
- package/src/components/hover-card/README.md +6 -2
- package/src/components/hover-card/engine.ts +68 -6
- package/src/components/hover-card/hover-card.css +13 -7
- package/src/components/image-preview/README.md +16 -0
- package/src/components/image-preview/element.ts +26 -0
- package/src/components/image-preview/engine.ts +325 -0
- package/src/components/image-preview/image-preview.css +194 -0
- package/src/components/image-preview/react.tsx +43 -0
- package/src/components/json-viewer/README.md +56 -0
- package/src/components/json-viewer/element.ts +37 -0
- package/src/components/json-viewer/engine.ts +440 -0
- package/src/components/json-viewer/json-viewer.css +271 -0
- package/src/components/json-viewer/react.tsx +56 -0
- package/src/components/like-button/README.md +13 -0
- package/src/components/like-button/element.ts +47 -0
- package/src/components/like-button/engine.ts +145 -0
- package/src/components/like-button/like-button.css +77 -0
- package/src/components/like-button/react.tsx +39 -0
- package/src/components/link-preview/README.md +19 -0
- package/src/components/link-preview/element.ts +29 -0
- package/src/components/link-preview/engine.ts +192 -0
- package/src/components/link-preview/link-preview.css +274 -0
- package/src/components/link-preview/react.tsx +101 -0
- package/src/components/loading-button/README.md +45 -0
- package/src/components/loading-button/element.ts +34 -0
- package/src/components/loading-button/engine.ts +201 -0
- package/src/components/loading-button/loading-button.css +76 -0
- package/src/components/loading-button/react.tsx +43 -0
- package/src/components/multi-select/README.md +48 -0
- package/src/components/multi-select/element.ts +28 -0
- package/src/components/multi-select/engine.ts +294 -0
- package/src/components/multi-select/multi-select.css +266 -0
- package/src/components/multi-select/react.tsx +39 -0
- package/src/components/notification-bell/README.md +14 -0
- package/src/components/notification-bell/element.ts +48 -0
- package/src/components/notification-bell/engine.ts +202 -0
- package/src/components/notification-bell/notification-bell.css +126 -0
- package/src/components/notification-bell/react.tsx +57 -0
- package/src/components/password-strength/README.md +17 -0
- package/src/components/password-strength/element.ts +22 -0
- package/src/components/password-strength/engine.ts +212 -0
- package/src/components/password-strength/password-strength.css +182 -0
- package/src/components/password-strength/react.tsx +36 -0
- package/src/components/password-strength/score.ts +62 -0
- package/src/components/popover/README.md +44 -0
- package/src/components/popover/element.ts +31 -0
- package/src/components/popover/engine.ts +114 -0
- package/src/components/popover/popover.css +24 -0
- package/src/components/popover/react.tsx +50 -0
- package/src/components/progress/README.md +17 -0
- package/src/components/progress/element.ts +30 -0
- package/src/components/progress/engine.ts +173 -0
- package/src/components/progress/progress.css +139 -0
- package/src/components/progress/react.tsx +35 -0
- package/src/components/questionnaire/README.md +32 -0
- package/src/components/questionnaire/element.ts +118 -0
- package/src/components/questionnaire/engine.ts +255 -0
- package/src/components/questionnaire/questionnaire.css +216 -0
- package/src/components/questionnaire/react.tsx +140 -0
- package/src/components/range-calendar/README.md +58 -0
- package/src/components/range-calendar/element.ts +42 -0
- package/src/components/range-calendar/engine.ts +390 -0
- package/src/components/range-calendar/range-calendar.css +185 -0
- package/src/components/range-calendar/react.tsx +56 -0
- package/src/components/range-slider/README.md +23 -0
- package/src/components/range-slider/element.ts +53 -0
- package/src/components/range-slider/engine.ts +316 -0
- package/src/components/range-slider/range-slider.css +191 -0
- package/src/components/range-slider/react.tsx +66 -0
- package/src/components/resizable-panel/README.md +61 -0
- package/src/components/resizable-panel/element.ts +36 -0
- package/src/components/resizable-panel/engine.ts +551 -0
- package/src/components/resizable-panel/react.tsx +74 -0
- package/src/components/resizable-panel/resizable-panel.css +242 -0
- package/src/components/rich-text-editor/README.md +57 -0
- package/src/components/rich-text-editor/element.ts +34 -0
- package/src/components/rich-text-editor/engine.ts +673 -0
- package/src/components/rich-text-editor/react.tsx +60 -0
- package/src/components/rich-text-editor/rich-text-editor.css +283 -0
- package/src/components/scratch-card/README.md +15 -0
- package/src/components/scratch-card/element.ts +30 -0
- package/src/components/scratch-card/engine.ts +257 -0
- package/src/components/scratch-card/react.tsx +40 -0
- package/src/components/scratch-card/scratch-card.css +74 -0
- package/src/components/skeleton/README.md +15 -0
- package/src/components/skeleton/element.ts +32 -0
- package/src/components/skeleton/engine.ts +104 -0
- package/src/components/skeleton/react.tsx +41 -0
- package/src/components/skeleton/skeleton.css +107 -0
- package/src/components/split-view/README.md +50 -0
- package/src/components/split-view/element.ts +34 -0
- package/src/components/split-view/engine.ts +114 -0
- package/src/components/split-view/react.tsx +63 -0
- package/src/components/split-view/split-view.css +18 -0
- package/src/components/star-rating/README.md +14 -0
- package/src/components/star-rating/element.ts +26 -0
- package/src/components/star-rating/engine.ts +217 -0
- package/src/components/star-rating/react.tsx +33 -0
- package/src/components/star-rating/star-rating.css +79 -0
- package/src/components/stat-card/README.md +42 -0
- package/src/components/stat-card/element.ts +40 -0
- package/src/components/stat-card/engine.ts +283 -0
- package/src/components/stat-card/react.tsx +36 -0
- package/src/components/stat-card/stat-card.css +163 -0
- package/src/components/swipe-actions/README.md +19 -0
- package/src/components/swipe-actions/element.ts +26 -0
- package/src/components/swipe-actions/engine.ts +260 -0
- package/src/components/swipe-actions/react.tsx +80 -0
- package/src/components/swipe-actions/swipe-actions.css +104 -0
- package/src/components/tag-input/README.md +42 -0
- package/src/components/tag-input/element.ts +39 -0
- package/src/components/tag-input/engine.ts +313 -0
- package/src/components/tag-input/react.tsx +54 -0
- package/src/components/tag-input/tag-input.css +243 -0
- package/src/components/time-field/README.md +54 -0
- package/src/components/time-field/element.ts +38 -0
- package/src/components/time-field/engine.ts +110 -0
- package/src/components/time-field/react.tsx +45 -0
- package/src/components/time-field/time-field.css +87 -0
- package/src/components/timeline/README.md +57 -0
- package/src/components/timeline/element.ts +31 -0
- package/src/components/timeline/engine.ts +300 -0
- package/src/components/timeline/react.tsx +59 -0
- package/src/components/timeline/timeline.css +218 -0
- package/src/components/tooltip/README.md +46 -0
- package/src/components/tooltip/element.ts +22 -0
- package/src/components/tooltip/engine.ts +288 -0
- package/src/components/tooltip/react.tsx +30 -0
- package/src/components/tooltip/tooltip.css +78 -0
- package/src/components/tree-view/README.md +61 -0
- package/src/components/tree-view/element.ts +32 -0
- package/src/components/tree-view/engine.ts +569 -0
- package/src/components/tree-view/react.tsx +78 -0
- package/src/components/tree-view/tree-view.css +209 -0
- package/src/components/virtual-list/README.md +81 -0
- package/src/components/virtual-list/element.ts +42 -0
- package/src/components/virtual-list/engine.ts +678 -0
- package/src/components/virtual-list/react.tsx +101 -0
- package/src/components/virtual-list/virtual-list.css +194 -0
- package/src/core/chips.ts +196 -0
- package/src/core/color.ts +304 -0
- package/src/core/date-range.ts +67 -0
- package/src/core/dates.ts +11 -1
- package/src/core/files.ts +107 -0
- package/src/core/filter.ts +229 -0
- package/src/core/gsap.ts +80 -65
- package/src/core/listbox.ts +332 -0
- package/src/core/mark.ts +29 -0
- package/src/core/position.ts +89 -0
- package/src/core/relative-time.ts +77 -0
- package/src/core/segment-field.ts +373 -0
- package/src/core/segments.ts +153 -0
- package/src/core/tree.ts +116 -0
- package/src/core/virtual.ts +79 -0
- package/src/css/tokens.css +186 -182
- package/src/elements/index.ts +147 -0
- package/src/index.ts +72 -0
- package/src/motion/micro.ts +248 -0
- package/src/motion/sheet.ts +88 -65
- package/src/motion/surface.ts +9 -0
- package/src/react/index.ts +57 -0
- package/dist/chunk-IKQ5FODN.js.map +0 -1
- package/dist/chunk-J6OCFNGU.js +0 -177
- package/dist/chunk-J6OCFNGU.js.map +0 -1
- package/dist/chunk-TFNRIZHU.js +0 -3977
- package/dist/chunk-TFNRIZHU.js.map +0 -1
- package/dist/chunk-XAKC2QY7.js.map +0 -1
- package/dist/reveal-jsX-uwUz.d.ts +0 -625
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/* components/tag-input/tag-input.css */
|
|
2
|
+
/* tag-input — a 12 px field on surface-3 with 8 px chips and the input; the reason a tag was refused sits under it in
|
|
3
|
+
the error colour. The chips and the listbox rules below are shared with multi-select (each stylesheet works alone). */
|
|
4
|
+
.mk-tag-input,
|
|
5
|
+
mk-tag-input {
|
|
6
|
+
display: block;
|
|
7
|
+
min-width: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[data-mk-tag-field] {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: 0.35rem;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
min-height: 2.75rem;
|
|
17
|
+
padding: 0.35rem 0.5rem;
|
|
18
|
+
border-radius: 12px;
|
|
19
|
+
background: var(--mk-surface-3);
|
|
20
|
+
color: var(--mk-text);
|
|
21
|
+
cursor: text;
|
|
22
|
+
transition: box-shadow 0.2s ease;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[data-mk-tag-field]:focus-within {
|
|
26
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-accent) 35%, transparent);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-mk-tag-field]:has([aria-invalid='true']) {
|
|
30
|
+
box-shadow: 0 0 0 2px var(--mk-error, #c62828);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[data-mk-tag-input] {
|
|
34
|
+
flex: 1;
|
|
35
|
+
min-width: 8ch;
|
|
36
|
+
height: 1.75rem;
|
|
37
|
+
padding: 0 0.25rem;
|
|
38
|
+
border: 0;
|
|
39
|
+
background: transparent;
|
|
40
|
+
color: inherit;
|
|
41
|
+
font: inherit;
|
|
42
|
+
outline: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[data-mk-tag-input]::placeholder {
|
|
46
|
+
color: var(--mk-muted);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-mk-tag-error] {
|
|
50
|
+
margin: 0.4rem 0 0;
|
|
51
|
+
color: var(--mk-error, #c62828);
|
|
52
|
+
font-size: 0.8125rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-mk-tag-error][hidden] {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@media (prefers-reduced-motion: reduce) {
|
|
60
|
+
[data-mk-tag-field] {
|
|
61
|
+
transition: none;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Chips (core/chips.ts): 8 px, accent-soft, a round remove button; the armed one (next Backspace) gets a ring. */
|
|
66
|
+
[data-mk-chips] {
|
|
67
|
+
display: contents;
|
|
68
|
+
margin: 0;
|
|
69
|
+
padding: 0;
|
|
70
|
+
list-style: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[data-mk-chip] {
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
flex: none;
|
|
76
|
+
align-items: center;
|
|
77
|
+
gap: 0.15rem;
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
max-width: 100%;
|
|
80
|
+
height: 1.75rem;
|
|
81
|
+
padding: 0 0.2rem 0 0.6rem;
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
border-radius: 8px;
|
|
84
|
+
background: var(--mk-accent-soft);
|
|
85
|
+
color: var(--mk-on-accent-soft, var(--mk-text));
|
|
86
|
+
font-size: 0.8125rem;
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
white-space: nowrap;
|
|
89
|
+
outline: none;
|
|
90
|
+
transition: box-shadow 0.2s ease;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
[data-mk-chip-label] {
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
text-overflow: ellipsis;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[data-mk-chip]:focus-visible,
|
|
99
|
+
[data-mk-chip][data-mk-armed] {
|
|
100
|
+
box-shadow: 0 0 0 2px var(--mk-accent);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
[data-mk-chip-remove] {
|
|
104
|
+
display: grid;
|
|
105
|
+
flex: none;
|
|
106
|
+
place-items: center;
|
|
107
|
+
width: 1.25rem;
|
|
108
|
+
height: 1.25rem;
|
|
109
|
+
padding: 0;
|
|
110
|
+
border: 0;
|
|
111
|
+
border-radius: 50%;
|
|
112
|
+
background: transparent;
|
|
113
|
+
color: inherit;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
opacity: 0.7;
|
|
116
|
+
transition: background-color 0.15s ease, opacity 0.15s ease;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[data-mk-chip-remove]:hover {
|
|
120
|
+
background: color-mix(in srgb, currentColor 14%, transparent);
|
|
121
|
+
opacity: 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Listbox (core/listbox.ts): a 16 px panel in the top layer under the field; the active option sits on a pill. */
|
|
125
|
+
[data-mk-listbox] {
|
|
126
|
+
position: fixed;
|
|
127
|
+
inset: auto;
|
|
128
|
+
z-index: 2147482000;
|
|
129
|
+
box-sizing: border-box;
|
|
130
|
+
max-height: min(18rem, 50vh);
|
|
131
|
+
margin: 0;
|
|
132
|
+
padding: 0.35rem;
|
|
133
|
+
overflow: auto;
|
|
134
|
+
border: 1px solid var(--mk-outline-soft);
|
|
135
|
+
border-radius: 16px;
|
|
136
|
+
background: var(--mk-surface-1);
|
|
137
|
+
color: var(--mk-text);
|
|
138
|
+
box-shadow: 0 16px 40px -14px color-mix(in srgb, var(--mk-shadow-color, #000) 35%, transparent);
|
|
139
|
+
font: 0.9375rem/1.3 var(--mk-font, system-ui, sans-serif);
|
|
140
|
+
overscroll-behavior: contain;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
[data-mk-listbox][hidden] {
|
|
144
|
+
display: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
[data-mk-listbox-items] {
|
|
148
|
+
position: relative;
|
|
149
|
+
display: grid;
|
|
150
|
+
gap: 2px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
[data-mk-listbox-pill] {
|
|
154
|
+
position: absolute;
|
|
155
|
+
top: 0.35rem;
|
|
156
|
+
right: 0.35rem;
|
|
157
|
+
left: 0.35rem;
|
|
158
|
+
border-radius: 10px;
|
|
159
|
+
background: var(--mk-accent-soft);
|
|
160
|
+
opacity: 0;
|
|
161
|
+
pointer-events: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
[data-mk-option] {
|
|
165
|
+
position: relative;
|
|
166
|
+
z-index: 1;
|
|
167
|
+
display: flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
gap: 0.6rem;
|
|
170
|
+
min-height: 2.5rem;
|
|
171
|
+
padding: 0 0.75rem;
|
|
172
|
+
border-radius: 10px;
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
user-select: none;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
[data-mk-option][aria-disabled='true'] {
|
|
178
|
+
color: var(--mk-muted);
|
|
179
|
+
cursor: not-allowed;
|
|
180
|
+
opacity: 0.55;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
[data-mk-option-label] {
|
|
184
|
+
flex: 1;
|
|
185
|
+
min-width: 0;
|
|
186
|
+
overflow-wrap: anywhere;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
[data-mk-option-label] mark {
|
|
190
|
+
background: transparent;
|
|
191
|
+
color: inherit;
|
|
192
|
+
font-weight: 700;
|
|
193
|
+
text-decoration: underline;
|
|
194
|
+
text-decoration-color: var(--mk-accent);
|
|
195
|
+
text-decoration-thickness: 2px;
|
|
196
|
+
text-underline-offset: 3px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
[data-mk-option-hint] {
|
|
200
|
+
color: var(--mk-muted);
|
|
201
|
+
font-size: 0.8125rem;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
[data-mk-option-check] {
|
|
205
|
+
display: grid;
|
|
206
|
+
flex: none;
|
|
207
|
+
place-items: center;
|
|
208
|
+
width: 1.15rem;
|
|
209
|
+
height: 1.15rem;
|
|
210
|
+
border: 1.5px solid var(--mk-outline);
|
|
211
|
+
border-radius: 5px;
|
|
212
|
+
color: transparent;
|
|
213
|
+
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
[data-mk-option][aria-selected='true'] [data-mk-option-check] {
|
|
217
|
+
border-color: var(--mk-accent);
|
|
218
|
+
background: var(--mk-accent);
|
|
219
|
+
color: var(--mk-on-accent);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
[data-mk-listbox-group] {
|
|
223
|
+
padding: 0.6rem 0.75rem 0.25rem;
|
|
224
|
+
color: var(--mk-muted);
|
|
225
|
+
font-size: 0.75rem;
|
|
226
|
+
font-weight: 600;
|
|
227
|
+
letter-spacing: 0.02em;
|
|
228
|
+
text-transform: uppercase;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
[data-mk-listbox-empty] {
|
|
232
|
+
padding: 0.75rem;
|
|
233
|
+
color: var(--mk-muted);
|
|
234
|
+
font-size: 0.875rem;
|
|
235
|
+
text-align: center;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
@media (prefers-reduced-motion: reduce) {
|
|
239
|
+
[data-mk-chip],
|
|
240
|
+
[data-mk-chip-remove],
|
|
241
|
+
[data-mk-option-check] {
|
|
242
|
+
transition: none;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* components/time-field/time-field.css */
|
|
2
|
+
/* time-field — a 12 px field on surface-3; tabular digits; the focused segment sits on a 6 px accent-soft pill that
|
|
3
|
+
glides between segments; empty segments are muted dashes; invalid draws an error ring. */
|
|
4
|
+
.mk-time-field,
|
|
5
|
+
mk-time-field {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:is(.mk-time-field, mk-time-field) [data-mk-segments] {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
min-height: 2.75rem;
|
|
15
|
+
padding: 0 0.75rem;
|
|
16
|
+
border-radius: 12px;
|
|
17
|
+
background: var(--mk-surface-3);
|
|
18
|
+
color: var(--mk-text);
|
|
19
|
+
font-variant-numeric: tabular-nums;
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
transition: box-shadow 0.2s ease;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:is(.mk-time-field, mk-time-field) [data-mk-segments]:focus-within {
|
|
25
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-accent) 35%, transparent);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:is(.mk-time-field, mk-time-field) [data-mk-segments][aria-invalid='true'] {
|
|
29
|
+
box-shadow: 0 0 0 2px var(--mk-error, #d93025);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:is(.mk-time-field, mk-time-field) [data-mk-segments][aria-disabled='true'] {
|
|
33
|
+
opacity: 0.5;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:is(.mk-time-field, mk-time-field) [data-mk-segment] {
|
|
37
|
+
position: relative;
|
|
38
|
+
z-index: 1;
|
|
39
|
+
padding: 0.2rem 0.15rem;
|
|
40
|
+
border-radius: 6px;
|
|
41
|
+
caret-color: transparent;
|
|
42
|
+
outline: none;
|
|
43
|
+
cursor: default;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:is(.mk-time-field, mk-time-field) [data-mk-segment][data-mk-empty] {
|
|
47
|
+
color: var(--mk-muted);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:is(.mk-time-field, mk-time-field) [data-mk-segment]:focus {
|
|
51
|
+
color: var(--mk-on-accent-soft, var(--mk-text));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:is(.mk-time-field, mk-time-field) [data-mk-segment]::selection {
|
|
55
|
+
background: transparent;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:is(.mk-time-field, mk-time-field) [data-mk-segment-literal] {
|
|
59
|
+
padding: 0 0.05rem;
|
|
60
|
+
color: var(--mk-muted);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:is(.mk-time-field, mk-time-field) [data-mk-segment-focus] {
|
|
64
|
+
position: absolute;
|
|
65
|
+
top: 50%;
|
|
66
|
+
left: 0;
|
|
67
|
+
height: 1.75rem;
|
|
68
|
+
margin-top: -0.875rem;
|
|
69
|
+
border-radius: 6px;
|
|
70
|
+
background: var(--mk-accent-soft);
|
|
71
|
+
opacity: 0;
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Without motion the pill is not drawn: the focused segment gets the colour directly. */
|
|
76
|
+
@media (prefers-reduced-motion: reduce) {
|
|
77
|
+
:is(.mk-time-field, mk-time-field) [data-mk-segment]:focus {
|
|
78
|
+
background: var(--mk-accent-soft);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:is(.mk-time-field, mk-time-field) [data-mk-segment-focus] {
|
|
82
|
+
display: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:is(.mk-time-field, mk-time-field) [data-mk-segments] {
|
|
86
|
+
transition: none;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/* components/timeline/timeline.css */
|
|
2
|
+
/* timeline — a 2 px rail (outline-soft) behind 2rem dots, its done stretch in the accent; dots by state (done: accent,
|
|
3
|
+
current: accent-soft with a ring that breathes, upcoming: dashed, error: error); a muted time, a 600 title, a muted
|
|
4
|
+
description; days are chips on the rail. 'alternate' puts the events on both sides of a centred rail when the timeline
|
|
5
|
+
is 520 px wide or more. */
|
|
6
|
+
.mk-timeline,
|
|
7
|
+
mk-timeline {
|
|
8
|
+
container-type: inline-size;
|
|
9
|
+
display: block;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
color: var(--mk-text);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[data-mk-tl-wrap] {
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-mk-timeline-list] {
|
|
19
|
+
display: grid;
|
|
20
|
+
gap: 1.1rem;
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
list-style: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[data-mk-tl-rail] {
|
|
27
|
+
position: absolute;
|
|
28
|
+
left: calc(1rem - 1px);
|
|
29
|
+
width: 2px;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
border-radius: 2px;
|
|
32
|
+
background: var(--mk-outline-soft);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-mk-tl-rail][hidden] {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-mk-tl-progress] {
|
|
40
|
+
display: block;
|
|
41
|
+
width: 100%;
|
|
42
|
+
border-radius: inherit;
|
|
43
|
+
background: var(--mk-accent);
|
|
44
|
+
transition: height 0.5s cubic-bezier(0.38, 0.49, 0, 1);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-mk-tl-item] {
|
|
48
|
+
display: grid;
|
|
49
|
+
grid-template-columns: 2rem minmax(0, 1fr);
|
|
50
|
+
align-items: start;
|
|
51
|
+
column-gap: 0.85rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-mk-tl-dot] {
|
|
55
|
+
position: relative;
|
|
56
|
+
z-index: 1;
|
|
57
|
+
display: grid;
|
|
58
|
+
place-items: center;
|
|
59
|
+
width: 2rem;
|
|
60
|
+
height: 2rem;
|
|
61
|
+
border-radius: 50%;
|
|
62
|
+
background: var(--mk-accent);
|
|
63
|
+
color: var(--mk-on-accent);
|
|
64
|
+
box-shadow: 0 0 0 4px var(--mk-surface-1, var(--mk-bg));
|
|
65
|
+
font-size: 0.8125rem;
|
|
66
|
+
font-weight: 700;
|
|
67
|
+
line-height: 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-mk-tl-dot]:empty::after {
|
|
71
|
+
content: '';
|
|
72
|
+
width: 0.5rem;
|
|
73
|
+
height: 0.5rem;
|
|
74
|
+
border-radius: 50%;
|
|
75
|
+
background: currentColor;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
[data-mk-tl-item][data-status='current'] [data-mk-tl-dot] {
|
|
79
|
+
background: var(--mk-accent-soft);
|
|
80
|
+
color: var(--mk-on-accent-soft, var(--mk-text));
|
|
81
|
+
animation: mk-tl-breathe 2.2s ease-in-out infinite;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[data-mk-tl-item][data-status='upcoming'] [data-mk-tl-dot] {
|
|
85
|
+
background: var(--mk-surface-1, var(--mk-bg));
|
|
86
|
+
color: var(--mk-muted);
|
|
87
|
+
outline: 2px dashed var(--mk-outline);
|
|
88
|
+
outline-offset: -2px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[data-mk-tl-item][data-status='error'] [data-mk-tl-dot] {
|
|
92
|
+
background: var(--mk-error, #c62828);
|
|
93
|
+
color: var(--mk-on-error, #fff);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@keyframes mk-tl-breathe {
|
|
97
|
+
0%,
|
|
98
|
+
100% {
|
|
99
|
+
box-shadow: 0 0 0 4px var(--mk-surface-1, var(--mk-bg)), 0 0 0 4px color-mix(in srgb, var(--mk-accent) 45%, transparent);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
50% {
|
|
103
|
+
box-shadow: 0 0 0 4px var(--mk-surface-1, var(--mk-bg)), 0 0 0 9px color-mix(in srgb, var(--mk-accent) 0%, transparent);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
[data-mk-tl-body] {
|
|
108
|
+
position: relative;
|
|
109
|
+
isolation: isolate;
|
|
110
|
+
display: grid;
|
|
111
|
+
justify-self: start;
|
|
112
|
+
gap: 0.2rem;
|
|
113
|
+
min-width: 0;
|
|
114
|
+
padding-top: 0.25rem;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* A new event: a soft accent highlight behind it that fades. */
|
|
118
|
+
[data-mk-tl-fresh] [data-mk-tl-body]::before {
|
|
119
|
+
content: '';
|
|
120
|
+
position: absolute;
|
|
121
|
+
inset: -0.125rem -0.625rem -0.375rem;
|
|
122
|
+
z-index: -1;
|
|
123
|
+
border-radius: 12px;
|
|
124
|
+
background: var(--mk-accent-soft);
|
|
125
|
+
animation: mk-tl-fresh 1.8s ease-out both;
|
|
126
|
+
pointer-events: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@keyframes mk-tl-fresh {
|
|
130
|
+
from {
|
|
131
|
+
opacity: 0.75;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
to {
|
|
135
|
+
opacity: 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
[data-mk-tl-time],
|
|
140
|
+
[data-mk-tl-meta] {
|
|
141
|
+
color: var(--mk-muted);
|
|
142
|
+
font-size: 0.75rem;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
[data-mk-tl-title] {
|
|
146
|
+
font-weight: 600;
|
|
147
|
+
line-height: 1.35;
|
|
148
|
+
overflow-wrap: anywhere;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
[data-mk-tl-item][data-status='upcoming'] [data-mk-tl-title] {
|
|
152
|
+
color: var(--mk-muted);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
[data-mk-tl-description] {
|
|
156
|
+
margin: 0;
|
|
157
|
+
color: var(--mk-muted);
|
|
158
|
+
font-size: 0.875rem;
|
|
159
|
+
line-height: 1.5;
|
|
160
|
+
overflow-wrap: anywhere;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* A day is a small chip on the rail (it hides the line behind it). */
|
|
164
|
+
[data-mk-tl-day] {
|
|
165
|
+
position: relative;
|
|
166
|
+
z-index: 1;
|
|
167
|
+
justify-self: start;
|
|
168
|
+
margin-top: 0.35rem;
|
|
169
|
+
padding: 0.25rem 0.625rem;
|
|
170
|
+
border-radius: 8px;
|
|
171
|
+
background: var(--mk-surface-3);
|
|
172
|
+
color: var(--mk-muted);
|
|
173
|
+
font-size: 0.6875rem;
|
|
174
|
+
font-weight: 700;
|
|
175
|
+
letter-spacing: 0.04em;
|
|
176
|
+
text-transform: uppercase;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@container (min-width: 520px) {
|
|
180
|
+
:is(.mk-timeline, mk-timeline)[data-mk-layout='alternate'] [data-mk-tl-rail] {
|
|
181
|
+
left: calc(50% - 1px);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
:is(.mk-timeline, mk-timeline)[data-mk-layout='alternate'] [data-mk-tl-item] {
|
|
185
|
+
grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1fr);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
:is(.mk-timeline, mk-timeline)[data-mk-layout='alternate'] [data-mk-tl-dot] {
|
|
189
|
+
grid-row: 1;
|
|
190
|
+
grid-column: 2;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:is(.mk-timeline, mk-timeline)[data-mk-layout='alternate'] [data-mk-tl-item][data-side='start'] [data-mk-tl-body] {
|
|
194
|
+
grid-row: 1;
|
|
195
|
+
grid-column: 1;
|
|
196
|
+
justify-self: end;
|
|
197
|
+
text-align: end;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
:is(.mk-timeline, mk-timeline)[data-mk-layout='alternate'] [data-mk-tl-item][data-side='end'] [data-mk-tl-body] {
|
|
201
|
+
grid-row: 1;
|
|
202
|
+
grid-column: 3;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
:is(.mk-timeline, mk-timeline)[data-mk-layout='alternate'] [data-mk-tl-day] {
|
|
206
|
+
justify-self: center;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@media (prefers-reduced-motion: reduce) {
|
|
211
|
+
[data-mk-tl-item][data-status='current'] [data-mk-tl-dot] {
|
|
212
|
+
animation: none;
|
|
213
|
+
box-shadow: 0 0 0 4px var(--mk-surface-1, var(--mk-bg)), 0 0 0 6px color-mix(in srgb, var(--mk-accent) 45%, transparent);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
[data-mk-tl-progress] {
|
|
217
|
+
transition: none;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* components/tooltip/tooltip.css */
|
|
2
|
+
/* tooltip — Melon Mind's inverse glass in a compact 8 px bubble: .8125rem text, at most 18rem wide, a 12 × 6 px arrow
|
|
3
|
+
that points at the trigger's centre. It lives in the top layer, so the reset below undoes the popover UA styles. */
|
|
4
|
+
.mk-tooltip,
|
|
5
|
+
mk-tooltip {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
[data-mk-tooltip-bubble] {
|
|
10
|
+
--mk-tooltip-bg: var(--mk-glass-inverse, rgb(24 24 24 / 0.9));
|
|
11
|
+
position: fixed;
|
|
12
|
+
inset: auto;
|
|
13
|
+
z-index: 2147483000;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
width: max-content;
|
|
16
|
+
max-width: min(18rem, calc(100vw - 16px));
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0.4rem 0.65rem;
|
|
19
|
+
border: 0;
|
|
20
|
+
border-radius: 8px;
|
|
21
|
+
overflow: visible;
|
|
22
|
+
background: var(--mk-tooltip-bg);
|
|
23
|
+
color: var(--mk-on-glass-inverse, #fff);
|
|
24
|
+
box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--mk-shadow-color, #000) 45%, transparent);
|
|
25
|
+
font: 500 0.8125rem/1.35 var(--mk-font, system-ui, sans-serif);
|
|
26
|
+
text-align: start;
|
|
27
|
+
overflow-wrap: anywhere;
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
-webkit-backdrop-filter: blur(12px);
|
|
30
|
+
backdrop-filter: blur(12px);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[data-mk-tooltip-bubble][data-mk-interactive] {
|
|
34
|
+
pointer-events: auto;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[data-mk-tooltip-bubble][hidden] {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* A triangle outside the bubble's edge (no overlap, so the translucent glass is not doubled). */
|
|
42
|
+
[data-mk-tooltip-arrow] {
|
|
43
|
+
position: absolute;
|
|
44
|
+
background: var(--mk-tooltip-bg);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-mk-tooltip-bubble][data-mk-side='top'] > [data-mk-tooltip-arrow],
|
|
48
|
+
[data-mk-tooltip-bubble][data-mk-side='bottom'] > [data-mk-tooltip-arrow] {
|
|
49
|
+
left: calc(var(--mk-tooltip-arrow, 50%) - 6px);
|
|
50
|
+
width: 12px;
|
|
51
|
+
height: 6px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-mk-tooltip-bubble][data-mk-side='top'] > [data-mk-tooltip-arrow] {
|
|
55
|
+
top: 100%;
|
|
56
|
+
clip-path: polygon(0 0, 100% 0, 50% 100%);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-mk-tooltip-bubble][data-mk-side='bottom'] > [data-mk-tooltip-arrow] {
|
|
60
|
+
bottom: 100%;
|
|
61
|
+
clip-path: polygon(50% 0, 100% 100%, 0 100%);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-mk-tooltip-bubble][data-mk-side='left'] > [data-mk-tooltip-arrow],
|
|
65
|
+
[data-mk-tooltip-bubble][data-mk-side='right'] > [data-mk-tooltip-arrow] {
|
|
66
|
+
top: calc(var(--mk-tooltip-arrow, 50%) - 6px);
|
|
67
|
+
width: 6px;
|
|
68
|
+
height: 12px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[data-mk-tooltip-bubble][data-mk-side='left'] > [data-mk-tooltip-arrow] {
|
|
72
|
+
left: 100%;
|
|
73
|
+
clip-path: polygon(0 0, 100% 50%, 0 100%);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[data-mk-tooltip-bubble][data-mk-side='right'] > [data-mk-tooltip-arrow] {
|
|
77
|
+
right: 100%;
|
|
78
|
+
clip-path: polygon(100% 0, 100% 100%, 0 50%);
|
|
79
|
+
}
|