@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,390 @@
|
|
|
1
|
+
/* components/chart/chart.css */
|
|
2
|
+
/* chart — Melon Mind's Indicadores: a monochrome line on the surface, the baseline only, the last value in a pill,
|
|
3
|
+
a dotted guide, the inverse glass tooltip and outlined legend pills.
|
|
4
|
+
Several series use --mk-chart-1…8 (a colour-blind-checked order, light and dark steps). */
|
|
5
|
+
.mk-chart,
|
|
6
|
+
mk-chart {
|
|
7
|
+
--mk-chart-mono: var(--mk-text);
|
|
8
|
+
--mk-chart-1: #2a78d6;
|
|
9
|
+
--mk-chart-2: #eb6834;
|
|
10
|
+
--mk-chart-3: #1baf7a;
|
|
11
|
+
--mk-chart-4: #eda100;
|
|
12
|
+
--mk-chart-5: #e87ba4;
|
|
13
|
+
--mk-chart-6: #008300;
|
|
14
|
+
--mk-chart-7: #6250d6;
|
|
15
|
+
--mk-chart-8: #e34948;
|
|
16
|
+
--mk-chart-other: var(--mk-muted);
|
|
17
|
+
--mk-chart-surface: var(--mk-surface-1);
|
|
18
|
+
--mk-chart-grid: color-mix(in srgb, var(--mk-text) 14%, transparent);
|
|
19
|
+
position: relative;
|
|
20
|
+
display: grid;
|
|
21
|
+
gap: 0.75rem;
|
|
22
|
+
min-width: 0;
|
|
23
|
+
color: var(--mk-text);
|
|
24
|
+
font-family: var(--mk-font);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@media (prefers-color-scheme: dark) {
|
|
28
|
+
:where(:root:not([data-mk-mode='light'])) :is(.mk-chart, mk-chart) {
|
|
29
|
+
--mk-chart-1: #3987e5;
|
|
30
|
+
--mk-chart-2: #d95926;
|
|
31
|
+
--mk-chart-3: #199e70;
|
|
32
|
+
--mk-chart-4: #c98500;
|
|
33
|
+
--mk-chart-5: #d55181;
|
|
34
|
+
--mk-chart-6: #008300;
|
|
35
|
+
--mk-chart-7: #9085e9;
|
|
36
|
+
--mk-chart-8: #e66767;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where(:root[data-mk-mode='dark']) :is(.mk-chart, mk-chart) {
|
|
41
|
+
--mk-chart-1: #3987e5;
|
|
42
|
+
--mk-chart-2: #d95926;
|
|
43
|
+
--mk-chart-3: #199e70;
|
|
44
|
+
--mk-chart-4: #c98500;
|
|
45
|
+
--mk-chart-5: #d55181;
|
|
46
|
+
--mk-chart-6: #008300;
|
|
47
|
+
--mk-chart-7: #9085e9;
|
|
48
|
+
--mk-chart-8: #e66767;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-plot] {
|
|
52
|
+
position: relative;
|
|
53
|
+
min-width: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-plot][hidden] {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-svg] {
|
|
61
|
+
display: block;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: auto;
|
|
64
|
+
overflow: visible;
|
|
65
|
+
touch-action: pan-y;
|
|
66
|
+
border-radius: 12px;
|
|
67
|
+
cursor: crosshair;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-svg]:focus {
|
|
71
|
+
outline: none;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-svg]:focus-visible {
|
|
75
|
+
outline: 2px solid var(--mk-accent);
|
|
76
|
+
outline-offset: 4px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:is(.mk-chart, mk-chart) [data-mk-part='grid'] line {
|
|
80
|
+
stroke: var(--mk-chart-grid);
|
|
81
|
+
stroke-width: 1;
|
|
82
|
+
shape-rendering: crispEdges;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:is(.mk-chart, mk-chart) [data-mk-part='grid'] line[data-mk-zero] {
|
|
86
|
+
stroke: color-mix(in srgb, var(--mk-text) 22%, transparent);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:is(.mk-chart, mk-chart) text {
|
|
90
|
+
fill: var(--mk-muted);
|
|
91
|
+
font-size: 11px;
|
|
92
|
+
font-variant-numeric: tabular-nums;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:is(.mk-chart, mk-chart) [data-mk-part='total'] {
|
|
96
|
+
fill: var(--mk-text);
|
|
97
|
+
font-size: 10px;
|
|
98
|
+
font-weight: 500;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:is(.mk-chart, mk-chart) [data-mk-part='line'] {
|
|
102
|
+
fill: none;
|
|
103
|
+
stroke-linecap: round;
|
|
104
|
+
stroke-linejoin: round;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:is(.mk-chart, mk-chart) :is([data-mk-part='dot'], [data-mk-part='marker'], [data-mk-part='end']) {
|
|
108
|
+
stroke: var(--mk-chart-surface);
|
|
109
|
+
stroke-width: 2.5;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* The selection guide: Melonmind's dotted day line. */
|
|
113
|
+
:is(.mk-chart, mk-chart) [data-mk-part='guide'] {
|
|
114
|
+
stroke: color-mix(in srgb, var(--mk-text) 45%, transparent);
|
|
115
|
+
stroke-width: 1;
|
|
116
|
+
stroke-dasharray: 2 4;
|
|
117
|
+
shape-rendering: crispEdges;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:is(.mk-chart, mk-chart) [data-mk-part='band'] {
|
|
121
|
+
fill: color-mix(in srgb, var(--mk-text) 6%, transparent);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:is(.mk-chart, mk-chart) [data-mk-part='series'] path[data-mk-index] {
|
|
125
|
+
transition: opacity 0.2s ease;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:is(.mk-chart, mk-chart) [data-mk-part='series'] path[data-mk-dim] {
|
|
129
|
+
opacity: 0.35;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* The last value. */
|
|
133
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-end] {
|
|
134
|
+
position: absolute;
|
|
135
|
+
top: 0;
|
|
136
|
+
left: 0;
|
|
137
|
+
padding: 0.15rem 0.55rem;
|
|
138
|
+
border-radius: var(--mk-radius-full);
|
|
139
|
+
background: var(--mk-surface-3);
|
|
140
|
+
color: var(--mk-text);
|
|
141
|
+
font-size: 0.75rem;
|
|
142
|
+
font-weight: 500;
|
|
143
|
+
font-variant-numeric: tabular-nums;
|
|
144
|
+
white-space: nowrap;
|
|
145
|
+
pointer-events: none;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-end][hidden] {
|
|
149
|
+
display: none;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Tooltip: the inverse glass, 12 px radius, 8 × 12 padding (Melonmind). */
|
|
153
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-tooltip] {
|
|
154
|
+
position: absolute;
|
|
155
|
+
top: 0;
|
|
156
|
+
left: 0;
|
|
157
|
+
z-index: 2;
|
|
158
|
+
display: grid;
|
|
159
|
+
gap: 0.2rem;
|
|
160
|
+
min-width: 8rem;
|
|
161
|
+
max-width: 16rem;
|
|
162
|
+
padding: 0.5rem 0.75rem;
|
|
163
|
+
border-radius: 12px;
|
|
164
|
+
background: var(--mk-glass-inverse);
|
|
165
|
+
box-shadow: var(--mk-glass-bevel);
|
|
166
|
+
backdrop-filter: blur(16px);
|
|
167
|
+
color: var(--mk-on-glass-inverse);
|
|
168
|
+
font-size: 0.8125rem;
|
|
169
|
+
line-height: 1.3;
|
|
170
|
+
pointer-events: none;
|
|
171
|
+
transform-origin: 50% 100%;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-tooltip][hidden] {
|
|
175
|
+
display: none;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-tooltip] strong {
|
|
179
|
+
font-weight: 600;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-row] {
|
|
183
|
+
display: grid;
|
|
184
|
+
grid-template-columns: 0.6rem minmax(0, 1fr) auto;
|
|
185
|
+
align-items: center;
|
|
186
|
+
gap: 0.5rem;
|
|
187
|
+
opacity: 0.9;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-row] i {
|
|
191
|
+
width: 0.6rem;
|
|
192
|
+
height: 0.6rem;
|
|
193
|
+
border-radius: 3px;
|
|
194
|
+
box-shadow: 0 0 0 1px color-mix(in srgb, var(--mk-on-glass-inverse) 30%, transparent);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-row] b {
|
|
198
|
+
font-weight: 500;
|
|
199
|
+
font-variant-numeric: tabular-nums;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-row] i[data-mk-mono] {
|
|
203
|
+
height: 2px;
|
|
204
|
+
border-radius: 2px;
|
|
205
|
+
background: currentColor;
|
|
206
|
+
box-shadow: none;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-row] i[data-mk-dash] {
|
|
210
|
+
height: 0;
|
|
211
|
+
border-top: 2px dashed currentColor;
|
|
212
|
+
border-radius: 0;
|
|
213
|
+
background: none;
|
|
214
|
+
box-shadow: none;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-row='total'] {
|
|
218
|
+
margin-top: 0.15rem;
|
|
219
|
+
padding-top: 0.25rem;
|
|
220
|
+
border-top: 1px solid color-mix(in srgb, var(--mk-on-glass-inverse) 25%, transparent);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-row='total'] i {
|
|
224
|
+
box-shadow: none;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* Legend: outlined pills (Melonmind «— Ingresado»). */
|
|
228
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-legend] {
|
|
229
|
+
display: flex;
|
|
230
|
+
flex-wrap: wrap;
|
|
231
|
+
gap: 0.4rem;
|
|
232
|
+
margin: 0;
|
|
233
|
+
padding: 0;
|
|
234
|
+
color: var(--mk-text);
|
|
235
|
+
font-size: 0.8125rem;
|
|
236
|
+
list-style: none;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-legend][hidden] {
|
|
240
|
+
display: none;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-legend] li {
|
|
244
|
+
display: inline-flex;
|
|
245
|
+
align-items: center;
|
|
246
|
+
gap: 0.45rem;
|
|
247
|
+
padding: 0.2rem 0.7rem;
|
|
248
|
+
border: 1px solid var(--mk-outline-soft);
|
|
249
|
+
border-radius: var(--mk-radius-full);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-swatch] {
|
|
253
|
+
width: 0.7rem;
|
|
254
|
+
height: 0.7rem;
|
|
255
|
+
border-radius: 3px;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-swatch][data-mk-type='line'],
|
|
259
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-swatch][data-mk-type='area'] {
|
|
260
|
+
width: 0.9rem;
|
|
261
|
+
height: 2px;
|
|
262
|
+
border-radius: 2px;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-swatch][data-mk-dash] {
|
|
266
|
+
height: 0;
|
|
267
|
+
background: none !important;
|
|
268
|
+
border-top: 2px dashed currentColor;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-empty] {
|
|
272
|
+
display: grid;
|
|
273
|
+
place-items: center;
|
|
274
|
+
min-height: 10rem;
|
|
275
|
+
margin: 0;
|
|
276
|
+
border-radius: 24px;
|
|
277
|
+
background: var(--mk-surface-2);
|
|
278
|
+
color: var(--mk-muted);
|
|
279
|
+
font-size: 0.875rem;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
:is(.mk-chart, mk-chart) [data-mk-chart-empty][hidden] {
|
|
283
|
+
display: none;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@media (prefers-reduced-motion: reduce) {
|
|
287
|
+
:is(.mk-chart, mk-chart) [data-mk-part='series'] path {
|
|
288
|
+
transition: none;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
@media (forced-colors: active) {
|
|
293
|
+
:is(.mk-chart, mk-chart) [data-mk-part='line'] {
|
|
294
|
+
stroke: CanvasText !important;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* components/pie-chart/pie-chart.css */
|
|
299
|
+
/* pie-chart — a donut (or pie) in chart's family: it needs chart.css for the colours, tooltip, legend and table.
|
|
300
|
+
Slices are parted by the surface; the chosen one slides out, the others dim; the donut's middle names it. */
|
|
301
|
+
.mk-pie-chart,
|
|
302
|
+
mk-pie-chart {
|
|
303
|
+
display: grid;
|
|
304
|
+
justify-items: center;
|
|
305
|
+
gap: 1rem;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
[data-mk-chart-type='pie'] [data-mk-chart-plot] {
|
|
309
|
+
width: 100%;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
[data-mk-chart-type='pie'] [data-mk-chart-svg] {
|
|
313
|
+
width: var(--mk-pie-size, 240px);
|
|
314
|
+
max-width: 100%;
|
|
315
|
+
margin-inline: auto;
|
|
316
|
+
border-radius: 50%;
|
|
317
|
+
cursor: pointer;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
[data-mk-chart-type='pie'] [data-mk-part='series'] path {
|
|
321
|
+
stroke: var(--mk-chart-surface);
|
|
322
|
+
stroke-width: 1;
|
|
323
|
+
stroke-linejoin: round;
|
|
324
|
+
transition:
|
|
325
|
+
transform 0.45s var(--mk-ease-swatch),
|
|
326
|
+
opacity 0.2s ease;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
[data-mk-chart-type='pie'] [data-mk-part='series'] path[data-mk-dim] {
|
|
330
|
+
opacity: 0.4;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
[data-mk-pie-center] {
|
|
334
|
+
position: absolute;
|
|
335
|
+
top: 50%;
|
|
336
|
+
left: 50%;
|
|
337
|
+
display: grid;
|
|
338
|
+
justify-items: center;
|
|
339
|
+
gap: 0.15rem;
|
|
340
|
+
max-width: calc(var(--mk-pie-size, 240px) * 0.5);
|
|
341
|
+
transform: translate(-50%, -50%);
|
|
342
|
+
text-align: center;
|
|
343
|
+
pointer-events: none;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
[data-mk-pie-center][hidden] {
|
|
347
|
+
display: none;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
[data-mk-pie-center] strong {
|
|
351
|
+
color: var(--mk-text);
|
|
352
|
+
font-size: clamp(1.1rem, calc(var(--mk-pie-size, 240px) * 0.11), 2rem);
|
|
353
|
+
font-weight: 650;
|
|
354
|
+
font-variant-numeric: tabular-nums;
|
|
355
|
+
line-height: 1.1;
|
|
356
|
+
letter-spacing: -0.02em;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
[data-mk-pie-center] span {
|
|
360
|
+
overflow: hidden;
|
|
361
|
+
max-width: 100%;
|
|
362
|
+
color: var(--mk-muted);
|
|
363
|
+
font-size: 0.8125rem;
|
|
364
|
+
white-space: nowrap;
|
|
365
|
+
text-overflow: ellipsis;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
[data-mk-chart-type='pie'] [data-mk-chart-legend] {
|
|
369
|
+
justify-content: center;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
[data-mk-chart-type='pie'] [data-mk-chart-legend] li {
|
|
373
|
+
transition: opacity 0.2s ease;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
[data-mk-chart-type='pie'] [data-mk-chart-legend] li[data-mk-dim] {
|
|
377
|
+
opacity: 0.45;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
@media (prefers-reduced-motion: reduce) {
|
|
381
|
+
[data-mk-chart-type='pie'] [data-mk-part='series'] path {
|
|
382
|
+
transition: opacity 0.2s ease;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
@media (forced-colors: active) {
|
|
387
|
+
[data-mk-chart-type='pie'] [data-mk-part='series'] path {
|
|
388
|
+
stroke: Canvas;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/* components/pill-button/pill-button.css */
|
|
2
|
+
/* pill-button — a dark pill whose fill gathers into a circle around the icon on hover (and spreads back on leave).
|
|
3
|
+
The fill is one layer clipped with inset(); the label and icon sit above it. `expand` starts as the circle. */
|
|
4
|
+
.mk-pill-button:is(button, a),
|
|
5
|
+
[data-mk-pill] {
|
|
6
|
+
--mk-pill-height: 3rem;
|
|
7
|
+
--mk-pill-dot: 2.25rem;
|
|
8
|
+
--mk-pill-ink: var(--mk-text);
|
|
9
|
+
--mk-pill-on-ink: var(--mk-bg);
|
|
10
|
+
--mk-pill-gap: calc((var(--mk-pill-height) - var(--mk-pill-dot)) / 2);
|
|
11
|
+
--mk-pill-gathered: inset(var(--mk-pill-gap) var(--mk-pill-gap) var(--mk-pill-gap) calc(100% - var(--mk-pill-gap) - var(--mk-pill-dot)) round var(--mk-radius-full));
|
|
12
|
+
--mk-pill-spread: inset(0 0 0 0 round var(--mk-radius-full));
|
|
13
|
+
position: relative;
|
|
14
|
+
isolation: isolate;
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: 1.25rem;
|
|
18
|
+
height: var(--mk-pill-height);
|
|
19
|
+
padding: 0 calc(var(--mk-pill-gap) + (var(--mk-pill-dot) - 1.125rem) / 2) 0 1.5rem;
|
|
20
|
+
border: 0;
|
|
21
|
+
border-radius: var(--mk-radius-full);
|
|
22
|
+
background: transparent;
|
|
23
|
+
color: var(--mk-pill-on-ink);
|
|
24
|
+
font: 500 1rem/1 var(--mk-font);
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
-webkit-tap-highlight-color: transparent;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
mk-pill-button {
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-mk-pill-fill] {
|
|
36
|
+
position: absolute;
|
|
37
|
+
inset: 0;
|
|
38
|
+
z-index: -1;
|
|
39
|
+
border-radius: inherit;
|
|
40
|
+
background: var(--mk-pill-ink);
|
|
41
|
+
clip-path: var(--mk-pill-spread);
|
|
42
|
+
transition: clip-path 0.5s var(--mk-ease-swatch);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[data-mk-pill-label] {
|
|
46
|
+
display: inline-block;
|
|
47
|
+
color: var(--mk-pill-on-ink);
|
|
48
|
+
transition:
|
|
49
|
+
transform 0.45s var(--mk-ease-swatch),
|
|
50
|
+
color 0.2s ease 0.05s;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-mk-pill-icon] {
|
|
54
|
+
display: inline-grid;
|
|
55
|
+
place-items: center;
|
|
56
|
+
width: 1.125rem;
|
|
57
|
+
height: 1.125rem;
|
|
58
|
+
color: var(--mk-pill-on-ink);
|
|
59
|
+
transition: transform 0.45s var(--mk-ease-swatch);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-mk-pill-icon] svg {
|
|
63
|
+
display: block;
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 100%;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Gathered: on hover, keyboard focus or a tap. */
|
|
69
|
+
@media (hover: hover) {
|
|
70
|
+
:is([data-mk-pill=''], .mk-pill-button:is(button, a):not([data-mk-pill])):hover [data-mk-pill-fill] {
|
|
71
|
+
clip-path: var(--mk-pill-gathered);
|
|
72
|
+
}
|
|
73
|
+
:is([data-mk-pill=''], .mk-pill-button:is(button, a):not([data-mk-pill])):hover [data-mk-pill-label] {
|
|
74
|
+
color: var(--mk-pill-ink);
|
|
75
|
+
transform: translateX(-0.5rem);
|
|
76
|
+
}
|
|
77
|
+
:is([data-mk-pill], .mk-pill-button:is(button, a)):hover [data-mk-pill-icon] {
|
|
78
|
+
transform: translateX(2px);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
[data-mk-pill='']:is(:focus-visible, [data-mk-active]) [data-mk-pill-fill] {
|
|
82
|
+
clip-path: var(--mk-pill-gathered);
|
|
83
|
+
}
|
|
84
|
+
[data-mk-pill='']:is(:focus-visible, [data-mk-active]) [data-mk-pill-label] {
|
|
85
|
+
color: var(--mk-pill-ink);
|
|
86
|
+
transform: translateX(-0.5rem);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* expand: the circle spreads into the pill. */
|
|
90
|
+
[data-mk-pill='expand'] [data-mk-pill-fill] {
|
|
91
|
+
clip-path: var(--mk-pill-gathered);
|
|
92
|
+
}
|
|
93
|
+
[data-mk-pill='expand'] [data-mk-pill-label] {
|
|
94
|
+
color: var(--mk-pill-ink);
|
|
95
|
+
}
|
|
96
|
+
@media (hover: hover) {
|
|
97
|
+
[data-mk-pill='expand']:hover [data-mk-pill-fill] {
|
|
98
|
+
clip-path: var(--mk-pill-spread);
|
|
99
|
+
}
|
|
100
|
+
[data-mk-pill='expand']:hover [data-mk-pill-label] {
|
|
101
|
+
color: var(--mk-pill-on-ink);
|
|
102
|
+
transform: translateX(0.25rem);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
[data-mk-pill='expand']:is(:focus-visible, [data-mk-active]) [data-mk-pill-fill] {
|
|
106
|
+
clip-path: var(--mk-pill-spread);
|
|
107
|
+
}
|
|
108
|
+
[data-mk-pill='expand']:is(:focus-visible, [data-mk-active]) [data-mk-pill-label] {
|
|
109
|
+
color: var(--mk-pill-on-ink);
|
|
110
|
+
transform: translateX(0.25rem);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
:is([data-mk-pill], .mk-pill-button:is(button, a)):focus-visible {
|
|
114
|
+
outline: 2px solid var(--mk-accent);
|
|
115
|
+
outline-offset: 3px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:is([data-mk-pill], .mk-pill-button:is(button, a)):is(:disabled, [aria-disabled='true']) {
|
|
119
|
+
cursor: not-allowed;
|
|
120
|
+
opacity: 0.5;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@media (prefers-reduced-motion: reduce) {
|
|
124
|
+
[data-mk-pill-fill],
|
|
125
|
+
[data-mk-pill-label],
|
|
126
|
+
[data-mk-pill-icon] {
|
|
127
|
+
transition-duration: 0.01s;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@media (forced-colors: active) {
|
|
132
|
+
[data-mk-pill] {
|
|
133
|
+
border: 1px solid ButtonText;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* components/popover/popover.css */
|
|
2
|
+
/* popover — an anchored .mk-dialog (needs dialog.css): 20 px corners on surface-1, as wide as its content up to
|
|
3
|
+
22rem, 1rem padding. Styled by class: the copy that folds back into the trigger keeps classes only. */
|
|
4
|
+
.mk-popover,
|
|
5
|
+
mk-popover {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.mk-dialog.mk-popover-panel {
|
|
10
|
+
--mk-dialog-radius: 20px;
|
|
11
|
+
--mk-dialog-bg: var(--mk-surface-1);
|
|
12
|
+
--mk-dialog-shadow: 0 16px 48px -12px color-mix(in srgb, var(--mk-shadow-color, #000) 35%, transparent);
|
|
13
|
+
gap: 0.75rem;
|
|
14
|
+
width: max-content;
|
|
15
|
+
min-width: min(14rem, calc(100vw - 32px));
|
|
16
|
+
max-width: min(22rem, calc(100vw - 32px));
|
|
17
|
+
padding: 1rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Phones: the anchored dialog is centred by dialog.css; keep it a panel, not a sheet. */
|
|
21
|
+
@media (max-width: 679px) {
|
|
22
|
+
.mk-dialog.mk-popover-panel {
|
|
23
|
+
max-width: calc(100vw - 32px);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/* components/progress/progress.css */
|
|
2
|
+
/* progress — Melonmind line: a neutral track, the accent only for the value; a ring (MetricsRing) with the figure inside.
|
|
3
|
+
The fill is drawn from --mk-progress, which the engine glides with GSAP. */
|
|
4
|
+
.mk-progress,
|
|
5
|
+
mk-progress {
|
|
6
|
+
--mk-progress-height: 10px;
|
|
7
|
+
--mk-progress-size: 4.5rem;
|
|
8
|
+
--mk-progress-track: var(--mk-surface-4);
|
|
9
|
+
--mk-progress-fill: var(--mk-accent);
|
|
10
|
+
display: block;
|
|
11
|
+
color: var(--mk-text);
|
|
12
|
+
font-family: var(--mk-font);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:is(.mk-progress, mk-progress) [data-mk-progress-visual] {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: 0.875rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Linear */
|
|
22
|
+
:is(.mk-progress, mk-progress) span[data-mk-part='track'] {
|
|
23
|
+
position: relative;
|
|
24
|
+
flex: 1;
|
|
25
|
+
height: var(--mk-progress-height);
|
|
26
|
+
border-radius: var(--mk-radius-full);
|
|
27
|
+
background: var(--mk-progress-track);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:is(.mk-progress, mk-progress) [data-mk-part='bar'] {
|
|
31
|
+
position: absolute;
|
|
32
|
+
inset: 0;
|
|
33
|
+
border-radius: inherit;
|
|
34
|
+
background: var(--mk-progress-fill);
|
|
35
|
+
clip-path: inset(0 calc((1 - var(--mk-progress, 0)) * 100%) 0 0 round var(--mk-radius-full));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* The light at the head of the bar (flashes when the value goes up). */
|
|
39
|
+
:is(.mk-progress, mk-progress) [data-mk-part='head'] {
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 50%;
|
|
42
|
+
left: calc(var(--mk-progress, 0) * 100%);
|
|
43
|
+
width: calc(var(--mk-progress-height) * 2.4);
|
|
44
|
+
aspect-ratio: 1;
|
|
45
|
+
border-radius: 50%;
|
|
46
|
+
background: radial-gradient(circle, color-mix(in srgb, var(--mk-progress-fill) 70%, white) 0%, transparent 70%);
|
|
47
|
+
opacity: 0;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
translate: -50% -50%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:is(.mk-progress, mk-progress)[data-mk-indeterminate] [data-mk-part='bar'] {
|
|
53
|
+
clip-path: none;
|
|
54
|
+
width: 38%;
|
|
55
|
+
animation: mk-progress-slide 1.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:is(.mk-progress, mk-progress) [data-mk-part='value'] {
|
|
59
|
+
min-width: 4.5ch;
|
|
60
|
+
color: var(--mk-muted);
|
|
61
|
+
font-size: 0.875rem;
|
|
62
|
+
font-weight: 500;
|
|
63
|
+
font-variant-numeric: tabular-nums;
|
|
64
|
+
text-align: right;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:is(.mk-progress, mk-progress)[data-mk-complete] [data-mk-part='value'] {
|
|
68
|
+
color: var(--mk-text);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Ring */
|
|
72
|
+
:is(.mk-progress, mk-progress)[data-mk-variant='ring'] {
|
|
73
|
+
display: inline-block;
|
|
74
|
+
width: var(--mk-progress-size);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:is(.mk-progress, mk-progress)[data-mk-variant='ring'] [data-mk-progress-visual] {
|
|
78
|
+
position: relative;
|
|
79
|
+
display: grid;
|
|
80
|
+
place-items: center;
|
|
81
|
+
aspect-ratio: 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:is(.mk-progress, mk-progress) [data-mk-part='ring'] {
|
|
85
|
+
grid-area: 1 / 1;
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: 100%;
|
|
88
|
+
overflow: visible;
|
|
89
|
+
rotate: -90deg;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:is(.mk-progress, mk-progress) circle[data-mk-part='track'] {
|
|
93
|
+
stroke: var(--mk-progress-track);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:is(.mk-progress, mk-progress) [data-mk-part='arc'] {
|
|
97
|
+
stroke: var(--mk-progress-fill);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:is(.mk-progress, mk-progress)[data-mk-variant='ring'][data-mk-indeterminate] [data-mk-part='ring'] {
|
|
101
|
+
animation: mk-progress-spin 1.1s linear infinite;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:is(.mk-progress, mk-progress)[data-mk-variant='ring'] [data-mk-part='value'] {
|
|
105
|
+
grid-area: 1 / 1;
|
|
106
|
+
min-width: 0;
|
|
107
|
+
color: var(--mk-text);
|
|
108
|
+
font-size: calc(var(--mk-progress-size) * 0.24);
|
|
109
|
+
letter-spacing: -0.02em;
|
|
110
|
+
text-align: center;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@keyframes mk-progress-slide {
|
|
114
|
+
from {
|
|
115
|
+
translate: -100% 0;
|
|
116
|
+
}
|
|
117
|
+
to {
|
|
118
|
+
translate: 265% 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@keyframes mk-progress-spin {
|
|
123
|
+
from {
|
|
124
|
+
rotate: -90deg;
|
|
125
|
+
}
|
|
126
|
+
to {
|
|
127
|
+
rotate: 270deg;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Reduced motion: values jump; indeterminate becomes a still, partial fill. */
|
|
132
|
+
@media (prefers-reduced-motion: reduce) {
|
|
133
|
+
:is(.mk-progress, mk-progress) :is([data-mk-part='bar'], [data-mk-part='ring']) {
|
|
134
|
+
animation: none !important;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:is(.mk-progress, mk-progress)[data-mk-indeterminate] [data-mk-part='bar'] {
|
|
138
|
+
opacity: 0.55;
|
|
139
|
+
}
|
|
140
|
+
}
|