@yewdiel21/motion-kit 0.10.0 → 0.15.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 +81 -0
- package/bin/motion-kit.mjs +3 -3
- package/dist/auto/index.d.ts +56 -3
- package/dist/auto/index.js +107 -3
- package/dist/auto/index.js.map +1 -1
- package/dist/{chunk-XAKC2QY7.js → chunk-6IRJYXJU.js} +3 -28
- package/dist/chunk-6IRJYXJU.js.map +1 -0
- package/dist/chunk-A6QQCF6V.js +21333 -0
- package/dist/chunk-A6QQCF6V.js.map +1 -0
- package/dist/chunk-JXRS3OEA.js +3638 -0
- package/dist/chunk-JXRS3OEA.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/add-to-cart.css +72 -0
- package/dist/css/components/attachment.css +266 -0
- package/dist/css/components/bidirectional-slider.css +168 -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 +686 -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 +227 -0
- package/dist/css/components/heatmap-chart.css +391 -0
- package/dist/css/components/hold-confirm.css +87 -0
- package/dist/css/components/hover-card.css +19 -7
- package/dist/css/components/image-preview.css +283 -0
- package/dist/css/components/json-viewer.css +304 -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/nav.css +102 -102
- package/dist/css/components/notification-bell.css +127 -0
- package/dist/css/components/orbit-menu.css +130 -0
- package/dist/css/components/pagination.css +10 -5
- package/dist/css/components/password-strength.css +183 -0
- package/dist/css/components/pie-chart.css +390 -0
- package/dist/css/components/pill-button.css +135 -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/radar-chart.css +370 -0
- package/dist/css/components/radial-chart.css +398 -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/sankey-chart.css +358 -0
- package/dist/css/components/scratch-card.css +75 -0
- package/dist/css/components/scroll-island.css +111 -0
- package/dist/css/components/select.css +136 -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/toolbar.css +122 -0
- package/dist/css/components/tooltip.css +79 -0
- package/dist/css/components/tree-view.css +289 -0
- package/dist/css/components/virtual-list.css +195 -0
- package/dist/css/components/voice-dots.css +70 -0
- package/dist/css/tokens.css +185 -181
- package/dist/elements/index.d.ts +849 -7
- package/dist/elements/index.js +1642 -8
- package/dist/elements/index.js.map +1 -1
- package/dist/{engine-GDGwQnJE.d.ts → engine-5zRIssTO.d.ts} +11 -1
- package/dist/engine-QECQnGz1.d.ts +33 -0
- package/dist/index.css +10890 -311
- package/dist/index.d.ts +89 -5
- package/dist/index.js +273 -9
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.ts +686 -24
- package/dist/react/index.js +2345 -9
- package/dist/react/index.js.map +1 -1
- package/dist/{reduced-BmBzKH94.d.ts → reduced-6X_bns60.d.ts} +9 -2
- package/dist/reveal-BfyKKsw4.d.ts +2474 -0
- package/dist/store-CA2Qcun_.d.ts +453 -0
- package/package.json +9 -16
- package/registry.json +1096 -543
- package/src/auto/auto-init.ts +104 -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/add-to-cart/README.md +34 -0
- package/src/components/add-to-cart/add-to-cart.css +71 -0
- package/src/components/add-to-cart/element.ts +20 -0
- package/src/components/add-to-cart/engine.ts +206 -0
- package/src/components/add-to-cart/react.tsx +29 -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/bidirectional-slider/README.md +46 -0
- package/src/components/bidirectional-slider/bidirectional-slider.css +167 -0
- package/src/components/bidirectional-slider/element.ts +42 -0
- package/src/components/bidirectional-slider/engine.ts +289 -0
- package/src/components/bidirectional-slider/react.tsx +45 -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 +34 -0
- package/src/components/chart/chart.css +295 -0
- package/src/components/chart/element.ts +43 -0
- package/src/components/chart/engine.ts +838 -0
- package/src/components/chart/parts.ts +237 -0
- package/src/components/chart/react.tsx +50 -0
- package/src/components/chart/use-chart.ts +55 -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 +685 -0
- package/src/components/data-table/element.ts +54 -0
- package/src/components/data-table/engine.ts +1111 -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 +831 -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 +396 -0
- package/src/components/filter-builder/filter-builder.css +226 -0
- package/src/components/filter-builder/react.tsx +36 -0
- package/src/components/heatmap-chart/README.md +48 -0
- package/src/components/heatmap-chart/element.ts +21 -0
- package/src/components/heatmap-chart/engine.ts +281 -0
- package/src/components/heatmap-chart/heatmap-chart.css +93 -0
- package/src/components/heatmap-chart/react.tsx +14 -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 +98 -7
- package/src/components/hover-card/hover-card.css +19 -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 +405 -0
- package/src/components/image-preview/image-preview.css +282 -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 +449 -0
- package/src/components/json-viewer/json-viewer.css +303 -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/nav/README.md +12 -10
- package/src/components/nav/element.ts +5 -5
- package/src/components/nav/engine.ts +21 -14
- package/src/components/nav/nav.css +102 -102
- package/src/components/nav/react.tsx +4 -4
- 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/orbit-menu/README.md +46 -0
- package/src/components/orbit-menu/element.ts +27 -0
- package/src/components/orbit-menu/engine.ts +179 -0
- package/src/components/orbit-menu/orbit-menu.css +129 -0
- package/src/components/orbit-menu/react.tsx +44 -0
- package/src/components/pagination/README.md +1 -1
- package/src/components/pagination/engine.ts +50 -4
- package/src/components/pagination/pagination.css +10 -5
- 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/pie-chart/README.md +48 -0
- package/src/components/pie-chart/element.ts +30 -0
- package/src/components/pie-chart/engine.ts +283 -0
- package/src/components/pie-chart/pie-chart.css +92 -0
- package/src/components/pie-chart/react.tsx +14 -0
- package/src/components/pill-button/README.md +46 -0
- package/src/components/pill-button/element.ts +16 -0
- package/src/components/pill-button/engine.ts +77 -0
- package/src/components/pill-button/pill-button.css +134 -0
- package/src/components/pill-button/react.tsx +32 -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/radar-chart/README.md +48 -0
- package/src/components/radar-chart/element.ts +30 -0
- package/src/components/radar-chart/engine.ts +327 -0
- package/src/components/radar-chart/radar-chart.css +72 -0
- package/src/components/radar-chart/react.tsx +14 -0
- package/src/components/radial-chart/README.md +48 -0
- package/src/components/radial-chart/element.ts +30 -0
- package/src/components/radial-chart/engine.ts +290 -0
- package/src/components/radial-chart/radial-chart.css +100 -0
- package/src/components/radial-chart/react.tsx +14 -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/sankey-chart/README.md +48 -0
- package/src/components/sankey-chart/element.ts +31 -0
- package/src/components/sankey-chart/engine.ts +401 -0
- package/src/components/sankey-chart/react.tsx +14 -0
- package/src/components/sankey-chart/sankey-chart.css +60 -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/scroll-island/README.md +34 -0
- package/src/components/scroll-island/element.ts +16 -0
- package/src/components/scroll-island/engine.ts +252 -0
- package/src/components/scroll-island/react.tsx +26 -0
- package/src/components/scroll-island/scroll-island.css +110 -0
- package/src/components/select/README.md +34 -0
- package/src/components/select/element.ts +26 -0
- package/src/components/select/engine.ts +267 -0
- package/src/components/select/react.tsx +33 -0
- package/src/components/select/select.css +135 -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/toolbar/README.md +46 -0
- package/src/components/toolbar/element.ts +30 -0
- package/src/components/toolbar/engine.ts +230 -0
- package/src/components/toolbar/react.tsx +34 -0
- package/src/components/toolbar/toolbar.css +121 -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 +743 -0
- package/src/components/tree-view/react.tsx +82 -0
- package/src/components/tree-view/tree-view.css +288 -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/components/voice-dots/README.md +48 -0
- package/src/components/voice-dots/element.ts +45 -0
- package/src/components/voice-dots/engine.ts +243 -0
- package/src/components/voice-dots/react.tsx +52 -0
- package/src/components/voice-dots/voice-dots.css +69 -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 +186 -0
- package/src/index.ts +88 -0
- package/src/motion/liquid.ts +14 -4
- 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 +71 -1
- package/dist/chunk-IKQ5FODN.js +0 -1617
- 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
- package/dist/store-DYb3tTsZ.d.ts +0 -195
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/* components/skeleton/skeleton.css */
|
|
2
|
+
/* skeleton — soft bones on the surface tone; pulse (opacity) or shimmer (a passing sheen). */
|
|
3
|
+
.mk-skeleton,
|
|
4
|
+
mk-skeleton {
|
|
5
|
+
--mk-skeleton-bone: var(--mk-surface-3);
|
|
6
|
+
--mk-skeleton-sheen: color-mix(in srgb, var(--mk-surface-1) 80%, transparent);
|
|
7
|
+
--mk-skeleton-radius: var(--mk-radius-md, 16px);
|
|
8
|
+
/* Melonmind animation-loading-2: a sheen crossing in 1 s. */
|
|
9
|
+
--mk-skeleton-duration: 1s;
|
|
10
|
+
display: block;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:is(.mk-skeleton, mk-skeleton) [data-mk-skeleton-placeholder] {
|
|
14
|
+
display: grid;
|
|
15
|
+
gap: 0.625rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:is(.mk-skeleton, mk-skeleton) [data-mk-skeleton-placeholder][hidden],
|
|
19
|
+
:is(.mk-skeleton, mk-skeleton) [data-mk-skeleton-content][hidden] {
|
|
20
|
+
display: none !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Before the engine runs (server render), the React state decides what shows. */
|
|
24
|
+
:is(.mk-skeleton, mk-skeleton):not([data-mk-ready])[data-mk-ssr-loading] > [data-mk-skeleton-content],
|
|
25
|
+
:is(.mk-skeleton, mk-skeleton):not([data-mk-ready]):not([data-mk-ssr-loading]) > [data-mk-skeleton-placeholder] {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:is(.mk-skeleton, mk-skeleton) [data-mk-bone] {
|
|
30
|
+
position: relative;
|
|
31
|
+
display: block;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
height: 0.875rem;
|
|
34
|
+
border-radius: var(--mk-radius-full);
|
|
35
|
+
background: var(--mk-skeleton-bone);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:is(.mk-skeleton, mk-skeleton) [data-mk-bone='short'] {
|
|
39
|
+
width: 62%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:is(.mk-skeleton, mk-skeleton) [data-mk-bone='circle'] {
|
|
43
|
+
width: 3.5rem;
|
|
44
|
+
height: 3.5rem;
|
|
45
|
+
border-radius: 50%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:is(.mk-skeleton, mk-skeleton) [data-mk-bone='block'] {
|
|
49
|
+
height: auto;
|
|
50
|
+
aspect-ratio: 16 / 9;
|
|
51
|
+
border-radius: var(--mk-skeleton-radius);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Avatar: circle beside two lines. */
|
|
55
|
+
:is(.mk-skeleton, mk-skeleton) [data-mk-shape='avatar'] {
|
|
56
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
57
|
+
align-items: center;
|
|
58
|
+
column-gap: 1rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:is(.mk-skeleton, mk-skeleton) [data-mk-shape='avatar'] [data-mk-bone='circle'] {
|
|
62
|
+
grid-row: span 2;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:is(.mk-skeleton, mk-skeleton) [data-mk-shape='card'] {
|
|
66
|
+
padding: 0.5rem 0.5rem 1rem;
|
|
67
|
+
border-radius: var(--mk-radius-lg, 24px);
|
|
68
|
+
background: var(--mk-surface-1);
|
|
69
|
+
box-shadow: inset 0 0 0 1px var(--mk-outline-soft);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:is(.mk-skeleton, mk-skeleton)[data-mk-animation='pulse'][aria-busy='true'] [data-mk-bone] {
|
|
73
|
+
animation: mk-skeleton-pulse var(--mk-skeleton-duration) ease-in-out infinite;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:is(.mk-skeleton, mk-skeleton)[data-mk-animation='shimmer'][aria-busy='true'] [data-mk-bone]::after {
|
|
77
|
+
content: '';
|
|
78
|
+
position: absolute;
|
|
79
|
+
inset: 0;
|
|
80
|
+
background: linear-gradient(90deg, transparent, var(--mk-skeleton-sheen), transparent);
|
|
81
|
+
transform: translateX(-100%);
|
|
82
|
+
animation: mk-skeleton-shimmer var(--mk-skeleton-duration) linear infinite;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
@keyframes mk-skeleton-pulse {
|
|
87
|
+
50% { opacity: 0.45; }
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@keyframes mk-skeleton-shimmer {
|
|
91
|
+
to { transform: translateX(100%); }
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@keyframes mk-skeleton-reveal {
|
|
95
|
+
from { opacity: 0; transform: translateY(4px); }
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@media (prefers-reduced-motion: reduce) {
|
|
99
|
+
:is(.mk-skeleton, mk-skeleton) [data-mk-bone],
|
|
100
|
+
:is(.mk-skeleton, mk-skeleton) [data-mk-bone]::after,
|
|
101
|
+
:is(.mk-skeleton, mk-skeleton) [data-mk-skeleton-content] {
|
|
102
|
+
animation: none !important;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:is(.mk-skeleton, mk-skeleton) [data-mk-bone]::after {
|
|
106
|
+
display: none;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* components/split-view/split-view.css */
|
|
2
|
+
/* split-view — two areas on a 20 px panel (surface-1, outline-soft border) with resizable-panel's separator between
|
|
3
|
+
them (its hairline, grip, bubble and the buttons that shut a side). Give it a height; each area scrolls on its own. */
|
|
4
|
+
.mk-split-view,
|
|
5
|
+
mk-split-view {
|
|
6
|
+
position: relative;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
display: flex;
|
|
9
|
+
min-width: 0;
|
|
10
|
+
min-height: 12rem;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
border: 1px solid var(--mk-outline-soft);
|
|
13
|
+
border-radius: 20px;
|
|
14
|
+
background: var(--mk-surface-1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:is(.mk-split-view, mk-split-view)[data-mk-orientation='vertical'] {
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* components/star-rating/star-rating.css */
|
|
2
|
+
/* star-rating — stars outlined in the surface tone, filled with the star colour; a label beside them.
|
|
3
|
+
Hover previews; the focus ring sits on the star of the focused radio. */
|
|
4
|
+
.mk-star-rating,
|
|
5
|
+
mk-star-rating {
|
|
6
|
+
--mk-star-size: 2rem;
|
|
7
|
+
--mk-star-color: #f5b301;
|
|
8
|
+
--mk-star-empty: var(--mk-surface-4);
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 0.75rem;
|
|
12
|
+
color: var(--mk-text);
|
|
13
|
+
font-family: var(--mk-font);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:is(.mk-star-rating, mk-star-rating) [data-mk-stars] {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
gap: 0.15rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:is(.mk-star-rating, mk-star-rating) [data-mk-star] {
|
|
22
|
+
position: relative;
|
|
23
|
+
display: grid;
|
|
24
|
+
place-items: center;
|
|
25
|
+
width: calc(var(--mk-star-size) + 0.5rem);
|
|
26
|
+
height: calc(var(--mk-star-size) + 0.5rem);
|
|
27
|
+
border-radius: 50%;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:is(.mk-star-rating, mk-star-rating) [role='img'] [data-mk-star] {
|
|
32
|
+
width: var(--mk-star-size);
|
|
33
|
+
height: var(--mk-star-size);
|
|
34
|
+
cursor: default;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:is(.mk-star-rating, mk-star-rating) [data-mk-star] svg {
|
|
38
|
+
width: var(--mk-star-size);
|
|
39
|
+
height: var(--mk-star-size);
|
|
40
|
+
overflow: visible;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:is(.mk-star-rating, mk-star-rating) [data-mk-part='empty'] {
|
|
44
|
+
fill: var(--mk-star-empty);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:is(.mk-star-rating, mk-star-rating) [data-mk-part='full'] {
|
|
48
|
+
fill: var(--mk-star-color);
|
|
49
|
+
clip-path: inset(0 calc(100% - var(--mk-star-fill, 0%)) 0 0);
|
|
50
|
+
transition: clip-path 0.15s ease;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* While previewing, lit stars are a step lighter. */
|
|
54
|
+
:is(.mk-star-rating, mk-star-rating)[data-mk-preview] [data-mk-part='full'] {
|
|
55
|
+
fill: color-mix(in srgb, var(--mk-star-color) 75%, white);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:is(.mk-star-rating, mk-star-rating) [data-mk-star]:has(input:focus-visible) {
|
|
59
|
+
outline: 2px solid var(--mk-accent);
|
|
60
|
+
outline-offset: 1px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:is(.mk-star-rating, mk-star-rating) [data-mk-star]:has(input:disabled) {
|
|
64
|
+
cursor: not-allowed;
|
|
65
|
+
opacity: 0.5;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:is(.mk-star-rating, mk-star-rating) [data-mk-star-label] {
|
|
69
|
+
min-width: 5.5rem;
|
|
70
|
+
color: var(--mk-muted);
|
|
71
|
+
font-size: 0.9375rem;
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
font-variant-numeric: tabular-nums;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media (prefers-reduced-motion: reduce) {
|
|
77
|
+
:is(.mk-star-rating, mk-star-rating) [data-mk-part='full'] {
|
|
78
|
+
transition: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/* components/stat-card/stat-card.css */
|
|
2
|
+
/* stat-card — a 20 px card on surface-1: a muted label, a 2rem tabular figure, a pill badge with the change (green
|
|
3
|
+
when it moves the good way, red when not, neutral when flat), the comparison line, a 2 px sparkline over a soft
|
|
4
|
+
area with an end dot, and an optional goal bar. --mk-stat-good / --mk-stat-bad recolour the badge. */
|
|
5
|
+
.mk-stat-card,
|
|
6
|
+
mk-stat-card {
|
|
7
|
+
--mk-stat-good: #1f9d5b;
|
|
8
|
+
--mk-stat-bad: var(--mk-error, #c62828);
|
|
9
|
+
--mk-stat-line: var(--mk-accent);
|
|
10
|
+
display: grid;
|
|
11
|
+
gap: 0.5rem;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
min-width: 0;
|
|
14
|
+
padding: 1.1rem 1.2rem 1.2rem;
|
|
15
|
+
border: 1px solid var(--mk-outline-soft);
|
|
16
|
+
border-radius: 20px;
|
|
17
|
+
background: var(--mk-surface-1);
|
|
18
|
+
color: var(--mk-text);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-mk-stat-label] {
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
color: var(--mk-muted);
|
|
24
|
+
font-size: 0.875rem;
|
|
25
|
+
font-weight: 500;
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[data-mk-stat-row] {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-wrap: wrap;
|
|
33
|
+
align-items: center;
|
|
34
|
+
gap: 0.35rem 0.6rem;
|
|
35
|
+
min-width: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[data-mk-stat-value] {
|
|
39
|
+
min-width: 0;
|
|
40
|
+
overflow-wrap: anywhere;
|
|
41
|
+
font-size: clamp(1.5rem, 4vw, 2rem);
|
|
42
|
+
font-variant-numeric: tabular-nums;
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
letter-spacing: -0.02em;
|
|
45
|
+
line-height: 1.1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[data-mk-stat-delta] {
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: 0.2rem;
|
|
52
|
+
height: 1.5rem;
|
|
53
|
+
padding: 0 0.5rem 0 0.4rem;
|
|
54
|
+
border-radius: 999px;
|
|
55
|
+
background: color-mix(in srgb, var(--mk-muted) 14%, transparent);
|
|
56
|
+
color: var(--mk-muted);
|
|
57
|
+
font-size: 0.8125rem;
|
|
58
|
+
font-variant-numeric: tabular-nums;
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
white-space: nowrap;
|
|
61
|
+
transition: background-color 0.3s ease, color 0.3s ease;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:is(.mk-stat-card, mk-stat-card)[data-mk-good='good'] [data-mk-stat-delta] {
|
|
65
|
+
background: color-mix(in srgb, var(--mk-stat-good) 16%, transparent);
|
|
66
|
+
color: var(--mk-stat-good);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:is(.mk-stat-card, mk-stat-card)[data-mk-good='bad'] [data-mk-stat-delta] {
|
|
70
|
+
background: color-mix(in srgb, var(--mk-stat-bad) 14%, transparent);
|
|
71
|
+
color: var(--mk-stat-bad);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-mk-stat-arrow] {
|
|
75
|
+
display: inline-grid;
|
|
76
|
+
transition: rotate 0.35s cubic-bezier(0.38, 0.49, 0, 1.5);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:is(.mk-stat-card, mk-stat-card)[data-mk-trend='down'] [data-mk-stat-arrow] {
|
|
80
|
+
rotate: 180deg;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:is(.mk-stat-card, mk-stat-card)[data-mk-trend='flat'] [data-mk-stat-arrow] {
|
|
84
|
+
rotate: 90deg;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[data-mk-stat-comparison] {
|
|
88
|
+
margin: 0;
|
|
89
|
+
color: var(--mk-muted);
|
|
90
|
+
font-size: 0.8125rem;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
[data-mk-stat-spark] {
|
|
94
|
+
position: relative;
|
|
95
|
+
height: 2.5rem;
|
|
96
|
+
margin-top: 0.25rem;
|
|
97
|
+
color: var(--mk-stat-line);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
[data-mk-stat-spark] svg {
|
|
101
|
+
display: block;
|
|
102
|
+
width: 100%;
|
|
103
|
+
height: 100%;
|
|
104
|
+
overflow: visible;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
[data-mk-stat-line] {
|
|
108
|
+
fill: none;
|
|
109
|
+
stroke: currentColor;
|
|
110
|
+
stroke-width: 2px;
|
|
111
|
+
stroke-linecap: round;
|
|
112
|
+
stroke-linejoin: round;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
[data-mk-stat-area] {
|
|
116
|
+
fill: color-mix(in srgb, currentColor 14%, transparent);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[data-mk-stat-dot] {
|
|
120
|
+
position: absolute;
|
|
121
|
+
width: 8px;
|
|
122
|
+
height: 8px;
|
|
123
|
+
margin: -4px 0 0 -4px;
|
|
124
|
+
border-radius: 50%;
|
|
125
|
+
background: currentColor;
|
|
126
|
+
box-shadow: 0 0 0 2.5px var(--mk-surface-1);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
[data-mk-stat-target] {
|
|
130
|
+
display: grid;
|
|
131
|
+
gap: 0.35rem;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[data-mk-stat-target-bar] {
|
|
135
|
+
display: block;
|
|
136
|
+
height: 6px;
|
|
137
|
+
overflow: hidden;
|
|
138
|
+
border-radius: 999px;
|
|
139
|
+
background: var(--mk-surface-3);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
[data-mk-stat-target-fill] {
|
|
143
|
+
display: block;
|
|
144
|
+
height: 100%;
|
|
145
|
+
border-radius: inherit;
|
|
146
|
+
background: var(--mk-stat-line);
|
|
147
|
+
transform-origin: 0 50%;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
[data-mk-stat-target-text] {
|
|
151
|
+
color: var(--mk-muted);
|
|
152
|
+
font-size: 0.75rem;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:is(.mk-stat-card, mk-stat-card) [hidden] {
|
|
156
|
+
display: none;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@media (prefers-reduced-motion: reduce) {
|
|
160
|
+
[data-mk-stat-delta],
|
|
161
|
+
[data-mk-stat-arrow] {
|
|
162
|
+
transition: none;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* components/swipe-actions/swipe-actions.css */
|
|
2
|
+
/* swipe-actions — Melonmind list rows (20 px radius, surface-1) that slide aside to show round action buttons
|
|
3
|
+
behind them; the icons grow as they appear and the primary one stretches when a long swipe is armed. */
|
|
4
|
+
.mk-swipe-actions,
|
|
5
|
+
mk-swipe-actions {
|
|
6
|
+
display: grid;
|
|
7
|
+
gap: 0.5rem;
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
list-style: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:is(.mk-swipe-actions, mk-swipe-actions) [data-mk-swipe-row] {
|
|
14
|
+
position: relative;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
border-radius: 20px;
|
|
17
|
+
background: var(--mk-surface-3);
|
|
18
|
+
isolation: isolate;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:is(.mk-swipe-actions, mk-swipe-actions) [data-mk-swipe-content] {
|
|
22
|
+
position: relative;
|
|
23
|
+
z-index: 1;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 0.85rem;
|
|
27
|
+
min-height: 4rem;
|
|
28
|
+
padding: 0.75rem 1rem;
|
|
29
|
+
border-radius: inherit;
|
|
30
|
+
background: var(--mk-surface-1);
|
|
31
|
+
box-shadow: inset 0 0 0 1px var(--mk-outline-soft);
|
|
32
|
+
touch-action: pan-y;
|
|
33
|
+
user-select: none;
|
|
34
|
+
cursor: grab;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:is(.mk-swipe-actions, mk-swipe-actions) [data-mk-swipe-row][data-mk-dragging] [data-mk-swipe-content] {
|
|
38
|
+
cursor: grabbing;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:is(.mk-swipe-actions, mk-swipe-actions) [data-mk-swipe-actions] {
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 0;
|
|
44
|
+
bottom: 0;
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
gap: 0.4rem;
|
|
48
|
+
padding: 0 0.6rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:is(.mk-swipe-actions, mk-swipe-actions) [data-mk-swipe-actions='left'] {
|
|
52
|
+
left: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:is(.mk-swipe-actions, mk-swipe-actions) [data-mk-swipe-actions='right'] {
|
|
56
|
+
right: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:is(.mk-swipe-actions, mk-swipe-actions) [data-mk-swipe-action] {
|
|
60
|
+
display: grid;
|
|
61
|
+
place-items: center;
|
|
62
|
+
gap: 0.15rem;
|
|
63
|
+
width: 3rem;
|
|
64
|
+
height: 3rem;
|
|
65
|
+
padding: 0;
|
|
66
|
+
border: 0;
|
|
67
|
+
border-radius: 50%;
|
|
68
|
+
background: var(--mk-text);
|
|
69
|
+
color: var(--mk-bg);
|
|
70
|
+
font: inherit;
|
|
71
|
+
font-size: 0.6875rem;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
scale: calc(0.6 + var(--mk-swipe-reveal, 1) * 0.4);
|
|
74
|
+
transition:
|
|
75
|
+
width 0.35s cubic-bezier(0.38, 0.49, 0, 1.5),
|
|
76
|
+
border-radius 0.35s cubic-bezier(0.38, 0.49, 0, 1.5);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:is(.mk-swipe-actions, mk-swipe-actions) [data-mk-swipe-action][data-mk-tone='danger'] {
|
|
80
|
+
background: var(--mk-error);
|
|
81
|
+
color: var(--mk-on-error);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:is(.mk-swipe-actions, mk-swipe-actions) [data-mk-swipe-action][data-mk-tone='accent'] {
|
|
85
|
+
background: var(--mk-accent);
|
|
86
|
+
color: var(--mk-on-accent);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:is(.mk-swipe-actions, mk-swipe-actions) [data-mk-swipe-action]:focus-visible {
|
|
90
|
+
outline: 2px solid var(--mk-accent);
|
|
91
|
+
outline-offset: 2px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* A long swipe is armed: the primary action stretches into a pill. */
|
|
95
|
+
:is(.mk-swipe-actions, mk-swipe-actions) [data-mk-swipe-row][data-mk-armed] [data-mk-swipe-action]:is([data-mk-swipe-primary], :only-child) {
|
|
96
|
+
width: 5.5rem;
|
|
97
|
+
border-radius: 64px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media (prefers-reduced-motion: reduce) {
|
|
101
|
+
:is(.mk-swipe-actions, mk-swipe-actions) [data-mk-swipe-action] {
|
|
102
|
+
transition: none;
|
|
103
|
+
scale: 1;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -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
|
+
}
|