@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,358 @@
|
|
|
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/sankey-chart/sankey-chart.css */
|
|
299
|
+
/* sankey-chart — bands that fade from their source's colour to their target's (35 %), nodes with 3 px corners;
|
|
300
|
+
needs chart.css for the family. The flow under the pointer lights up, the rest step back. */
|
|
301
|
+
.mk-sankey-chart,
|
|
302
|
+
mk-sankey-chart {
|
|
303
|
+
display: grid;
|
|
304
|
+
gap: 1rem;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
[data-mk-chart-type='sankey'] [data-mk-chart-svg] {
|
|
308
|
+
cursor: pointer;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
[data-mk-chart-type='sankey'] [data-mk-part='links'] path {
|
|
312
|
+
opacity: 0.35;
|
|
313
|
+
transition: opacity 0.2s ease;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
[data-mk-chart-type='sankey'] [data-mk-part='links'] path[data-mk-on] {
|
|
317
|
+
opacity: 0.7;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
[data-mk-chart-type='sankey'] [data-mk-part='links'] path[data-mk-dim] {
|
|
321
|
+
opacity: 0.1;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
[data-mk-chart-type='sankey'] [data-mk-part='nodes'] rect {
|
|
325
|
+
transition: opacity 0.2s ease;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
[data-mk-chart-type='sankey'] [data-mk-part='nodes'] rect[data-mk-dim] {
|
|
329
|
+
opacity: 0.45;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
[data-mk-chart-type='sankey'] [data-mk-part='labels'] text {
|
|
333
|
+
fill: var(--mk-text);
|
|
334
|
+
font-size: 12px;
|
|
335
|
+
font-weight: 500;
|
|
336
|
+
paint-order: stroke;
|
|
337
|
+
stroke: var(--mk-chart-surface);
|
|
338
|
+
stroke-width: 3px;
|
|
339
|
+
stroke-linejoin: round;
|
|
340
|
+
pointer-events: none;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
[data-mk-chart-type='sankey'] [data-mk-part='amount'] {
|
|
344
|
+
fill: var(--mk-muted);
|
|
345
|
+
font-weight: 400;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@media (prefers-reduced-motion: reduce) {
|
|
349
|
+
[data-mk-chart-type='sankey'] :is([data-mk-part='links'] path, [data-mk-part='nodes'] rect) {
|
|
350
|
+
transition: none;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
@media (forced-colors: active) {
|
|
355
|
+
[data-mk-chart-type='sankey'] [data-mk-part='nodes'] rect {
|
|
356
|
+
fill: CanvasText !important;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* components/scratch-card/scratch-card.css */
|
|
2
|
+
/* scratch-card — a Melonmind card (20 px radius) whose content hides under a metallic cover; a small glass
|
|
3
|
+
"Revelar" pill sits on top for the keyboard. */
|
|
4
|
+
.mk-scratch-card,
|
|
5
|
+
mk-scratch-card {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: block;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
border-radius: 20px;
|
|
10
|
+
background: var(--mk-surface-1);
|
|
11
|
+
box-shadow: inset 0 0 0 1px var(--mk-outline-soft);
|
|
12
|
+
isolation: isolate;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:is(.mk-scratch-card, mk-scratch-card) [data-mk-scratch-content] {
|
|
16
|
+
position: relative;
|
|
17
|
+
min-height: 9rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:is(.mk-scratch-card, mk-scratch-card) [data-mk-scratch-cover] {
|
|
21
|
+
position: absolute;
|
|
22
|
+
inset: 0;
|
|
23
|
+
z-index: 1;
|
|
24
|
+
cursor: crosshair;
|
|
25
|
+
touch-action: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:is(.mk-scratch-card, mk-scratch-card) [data-mk-scratch-cover] canvas {
|
|
29
|
+
display: block;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:is(.mk-scratch-card, mk-scratch-card) [data-mk-scratch-cover][data-mk-scratch-fallback] {
|
|
35
|
+
display: grid;
|
|
36
|
+
place-items: center;
|
|
37
|
+
background: linear-gradient(135deg, #c9ccd2, #eef0f3 45%, #d7dadf 55%, #a9adb5);
|
|
38
|
+
color: rgb(40 42 48 / 0.75);
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
cursor: default;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:is(.mk-scratch-card, mk-scratch-card) [data-mk-scratch-cover][hidden] {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:is(.mk-scratch-card, mk-scratch-card) [data-mk-scratch-reveal] {
|
|
48
|
+
position: absolute;
|
|
49
|
+
right: 0.75rem;
|
|
50
|
+
bottom: 0.75rem;
|
|
51
|
+
z-index: 2;
|
|
52
|
+
min-height: 2.25rem;
|
|
53
|
+
padding: 0 0.9rem;
|
|
54
|
+
border: 0;
|
|
55
|
+
border-radius: 64px;
|
|
56
|
+
background: rgb(20 21 24 / 0.72);
|
|
57
|
+
box-shadow:
|
|
58
|
+
inset 1px 1px 1px rgb(255 255 255 / 0.14),
|
|
59
|
+
inset -1px -1px 1px rgb(255 255 255 / 0.05);
|
|
60
|
+
backdrop-filter: blur(12px);
|
|
61
|
+
color: #fff;
|
|
62
|
+
font: inherit;
|
|
63
|
+
font-size: 0.8125rem;
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:is(.mk-scratch-card, mk-scratch-card) [data-mk-scratch-reveal]:focus-visible {
|
|
69
|
+
outline: 2px solid var(--mk-accent);
|
|
70
|
+
outline-offset: 2px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:is(.mk-scratch-card, mk-scratch-card) [data-mk-scratch-reveal][hidden] {
|
|
74
|
+
display: none;
|
|
75
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* components/scroll-island/scroll-island.css */
|
|
2
|
+
/* scroll-island — the scroller's bar hides and a thin pill takes its place while scrolling; near the edge it swells
|
|
3
|
+
into a dark capsule (iOS-island style) with the percentage and the current section, which can be dragged. */
|
|
4
|
+
.mk-scroll-island,
|
|
5
|
+
mk-scroll-island {
|
|
6
|
+
display: block;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
[data-mk-scroll-island-host] {
|
|
10
|
+
scrollbar-width: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-mk-scroll-island-host]::-webkit-scrollbar {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-mk-scroll-island] {
|
|
18
|
+
position: fixed;
|
|
19
|
+
z-index: 2147483640;
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-mk-island-rail] {
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 0;
|
|
26
|
+
right: 0;
|
|
27
|
+
bottom: 0;
|
|
28
|
+
width: 1.5rem;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
pointer-events: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[data-mk-island-thumb] {
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 0;
|
|
36
|
+
right: 0;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
width: 4px;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
border-radius: 999px;
|
|
43
|
+
background: color-mix(in srgb, var(--mk-text) 42%, transparent);
|
|
44
|
+
color: #fff;
|
|
45
|
+
opacity: 0;
|
|
46
|
+
transition:
|
|
47
|
+
opacity 0.25s ease,
|
|
48
|
+
background-color 0.3s ease,
|
|
49
|
+
box-shadow 0.3s ease;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-mk-scroll-island][data-mk-state='bar'] [data-mk-island-thumb] {
|
|
53
|
+
opacity: 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[data-mk-scroll-island][data-mk-state='island'] [data-mk-island-rail],
|
|
57
|
+
[data-mk-scroll-island][data-mk-state='island'] [data-mk-island-thumb] {
|
|
58
|
+
pointer-events: auto;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-mk-scroll-island][data-mk-state='island'] [data-mk-island-thumb] {
|
|
62
|
+
background: #0c0c0e;
|
|
63
|
+
box-shadow:
|
|
64
|
+
inset 0 0 0 1px rgb(255 255 255 / 0.08),
|
|
65
|
+
0 12px 30px -8px rgb(0 0 0 / 0.45);
|
|
66
|
+
opacity: 1;
|
|
67
|
+
cursor: grab;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-mk-scroll-island][data-mk-dragging] [data-mk-island-thumb] {
|
|
71
|
+
cursor: grabbing;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-mk-island-content] {
|
|
75
|
+
display: inline-flex;
|
|
76
|
+
flex: none;
|
|
77
|
+
align-items: center;
|
|
78
|
+
gap: 0.5rem;
|
|
79
|
+
padding: 0 14px;
|
|
80
|
+
font-family: var(--mk-font);
|
|
81
|
+
font-size: 0.8125rem;
|
|
82
|
+
font-weight: 600;
|
|
83
|
+
font-variant-numeric: tabular-nums;
|
|
84
|
+
white-space: nowrap;
|
|
85
|
+
opacity: 0;
|
|
86
|
+
transition: opacity 0.18s ease;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[data-mk-scroll-island][data-mk-state='island'] [data-mk-island-content] {
|
|
90
|
+
opacity: 1;
|
|
91
|
+
transition-delay: 0.1s;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
[data-mk-island-section] {
|
|
95
|
+
max-width: 12rem;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
color: rgb(255 255 255 / 0.68);
|
|
98
|
+
font-weight: 500;
|
|
99
|
+
text-overflow: ellipsis;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
[data-mk-island-section][hidden] {
|
|
103
|
+
display: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@media (prefers-reduced-motion: reduce) {
|
|
107
|
+
[data-mk-island-thumb],
|
|
108
|
+
[data-mk-island-content] {
|
|
109
|
+
transition: none;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/* components/select/select.css */
|
|
2
|
+
/* select — a 12 px field button (surface-3) with the chosen label and a chevron that turns, opening the kit's menu:
|
|
3
|
+
a 16 px surface-1 panel with 8 px items, group headings and a check on the chosen one. The label slides in out of a
|
|
4
|
+
blur when it changes. The <select> it keeps in step is hidden. */
|
|
5
|
+
.mk-select,
|
|
6
|
+
mk-select {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
max-width: 100%;
|
|
10
|
+
vertical-align: middle;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:is(.mk-select, mk-select) > select[hidden] {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-mk-select-trigger] {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
flex: 1;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
gap: 0.5rem;
|
|
23
|
+
min-width: 0;
|
|
24
|
+
height: 2.5rem;
|
|
25
|
+
padding: 0 0.55rem 0 0.8rem;
|
|
26
|
+
border: 0;
|
|
27
|
+
border-radius: 12px;
|
|
28
|
+
background: var(--mk-surface-3);
|
|
29
|
+
color: var(--mk-text);
|
|
30
|
+
font: inherit;
|
|
31
|
+
font-size: 0.875rem;
|
|
32
|
+
text-align: start;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
transition:
|
|
35
|
+
background-color 0.15s,
|
|
36
|
+
box-shadow 0.2s;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-mk-select-trigger]:hover:not(:disabled),
|
|
40
|
+
[data-mk-select-trigger][aria-expanded='true'] {
|
|
41
|
+
background: color-mix(in srgb, var(--mk-surface-3) 80%, var(--mk-text) 8%);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-mk-select-trigger]:focus-visible {
|
|
45
|
+
outline: none;
|
|
46
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-accent) 35%, transparent);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-mk-select-trigger]:disabled {
|
|
50
|
+
opacity: 0.45;
|
|
51
|
+
cursor: default;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-mk-select-value] {
|
|
55
|
+
flex: 1;
|
|
56
|
+
min-width: 0;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
text-overflow: ellipsis;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:is(.mk-select, mk-select)[data-mk-placeholder] [data-mk-select-value] {
|
|
63
|
+
color: var(--mk-muted);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[data-mk-select-chevron] {
|
|
67
|
+
flex: none;
|
|
68
|
+
color: var(--mk-muted);
|
|
69
|
+
transition: transform 0.3s cubic-bezier(0.38, 0.49, 0, 1.5);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[data-mk-select-trigger][aria-expanded='true'] [data-mk-select-chevron] {
|
|
73
|
+
transform: rotate(180deg);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* The menu: like the panels of the data table (surface-1, a hairline, 8 px items). */
|
|
77
|
+
.mk-dialog.mk-select-menu {
|
|
78
|
+
--mk-dialog-bg: var(--mk-surface-1);
|
|
79
|
+
--mk-dialog-radius: 16px;
|
|
80
|
+
--mk-dialog-shadow: 0 0 0 1px var(--mk-outline-soft), 0 16px 48px -12px color-mix(in srgb, var(--mk-shadow-color, #000) 35%, transparent);
|
|
81
|
+
gap: 0.125rem;
|
|
82
|
+
min-width: max(10rem, var(--mk-select-width, 0px));
|
|
83
|
+
max-height: min(20rem, 60dvh);
|
|
84
|
+
padding: 0.375rem;
|
|
85
|
+
overflow-y: auto;
|
|
86
|
+
-webkit-backdrop-filter: none;
|
|
87
|
+
backdrop-filter: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.mk-dialog.mk-select-menu [data-mk-item] {
|
|
91
|
+
flex: none;
|
|
92
|
+
gap: 0.625rem;
|
|
93
|
+
min-height: 2.25rem;
|
|
94
|
+
padding: 0 0.625rem;
|
|
95
|
+
border-radius: 8px;
|
|
96
|
+
font-family: inherit;
|
|
97
|
+
font-size: 0.875rem;
|
|
98
|
+
font-weight: 500;
|
|
99
|
+
letter-spacing: normal;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.mk-dialog.mk-select-menu [data-mk-item]:hover,
|
|
103
|
+
.mk-dialog.mk-select-menu [data-mk-item]:focus-visible {
|
|
104
|
+
background: var(--mk-surface-2);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.mk-dialog.mk-select-menu [data-mk-item] svg {
|
|
108
|
+
flex: none;
|
|
109
|
+
margin-left: auto;
|
|
110
|
+
opacity: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.mk-dialog.mk-select-menu [data-mk-item][aria-checked='true'] {
|
|
114
|
+
font-weight: 600;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.mk-dialog.mk-select-menu [data-mk-item][aria-checked='true'] svg {
|
|
118
|
+
opacity: 1;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
[data-mk-select-group] {
|
|
122
|
+
flex: none;
|
|
123
|
+
margin: 0.375rem 0.625rem 0.125rem;
|
|
124
|
+
color: var(--mk-muted);
|
|
125
|
+
font-size: 0.6875rem;
|
|
126
|
+
font-weight: 700;
|
|
127
|
+
letter-spacing: 0.04em;
|
|
128
|
+
text-transform: uppercase;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@media (prefers-reduced-motion: reduce) {
|
|
132
|
+
[data-mk-select-trigger],
|
|
133
|
+
[data-mk-select-chevron] {
|
|
134
|
+
transition: none;
|
|
135
|
+
}
|
|
136
|
+
}
|