@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,686 @@
|
|
|
1
|
+
/* components/data-table/data-table.css */
|
|
2
|
+
/* data-table — a toolbar (a 12 px search on surface-3, 12 px tool buttons with an accent count), the filter sentence
|
|
3
|
+
on accent-soft, then the table on a 20 px panel: a sticky muted header with sort buttons whose arrow turns, 3rem
|
|
4
|
+
rows on hairlines, chosen rows softly tinted with an accent edge (their data stays readable), 18 px checks that
|
|
5
|
+
draw themselves, an 8 px row menu button and shimmering bones while loading; the foot with the range, the rows
|
|
6
|
+
per page menu and the pager; the bar of the chosen rows takes the toolbar's place, so it never covers a row.
|
|
7
|
+
Panels and menus (columns, filters, rows per page, row actions) are anchored .mk-dialog (dialog.css) surfaces with
|
|
8
|
+
20 px corners and 8 px items. The table scrolls sideways inside its panel when it is wider; --mk-dt-max-height
|
|
9
|
+
lets it scroll down too. */
|
|
10
|
+
.mk-data-table,
|
|
11
|
+
mk-data-table {
|
|
12
|
+
--mk-dt-max-height: none;
|
|
13
|
+
position: relative;
|
|
14
|
+
display: grid;
|
|
15
|
+
gap: 0.75rem;
|
|
16
|
+
min-width: 0;
|
|
17
|
+
color: var(--mk-text);
|
|
18
|
+
font-size: 0.875rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* ── The toolbar ─────────────────────────────────────────────────────────── */
|
|
22
|
+
[data-mk-dt-bar] {
|
|
23
|
+
grid-row: 1;
|
|
24
|
+
grid-column: 1;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-wrap: wrap;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: 0.5rem;
|
|
29
|
+
min-width: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-mk-dt-search] {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex: 1 1 14rem;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: 0.5rem;
|
|
37
|
+
min-width: 0;
|
|
38
|
+
height: 2.5rem;
|
|
39
|
+
padding: 0 0.875rem;
|
|
40
|
+
border-radius: 12px;
|
|
41
|
+
background: var(--mk-surface-3);
|
|
42
|
+
color: var(--mk-muted);
|
|
43
|
+
cursor: text;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-mk-dt-search]:focus-within {
|
|
47
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-accent) 35%, transparent);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[data-mk-dt-search] svg {
|
|
51
|
+
flex: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-mk-dt-search] input {
|
|
55
|
+
flex: 1;
|
|
56
|
+
min-width: 0;
|
|
57
|
+
height: 100%;
|
|
58
|
+
padding: 0;
|
|
59
|
+
border: 0;
|
|
60
|
+
outline: none;
|
|
61
|
+
background: none;
|
|
62
|
+
color: var(--mk-text);
|
|
63
|
+
font: inherit;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[data-mk-dt-tools] {
|
|
67
|
+
display: flex;
|
|
68
|
+
gap: 0.375rem;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[data-mk-dt-tool] {
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: 0.375rem;
|
|
75
|
+
height: 2.5rem;
|
|
76
|
+
padding: 0 0.875rem;
|
|
77
|
+
border: 1px solid var(--mk-outline-soft);
|
|
78
|
+
border-radius: 12px;
|
|
79
|
+
background: var(--mk-surface-1);
|
|
80
|
+
color: var(--mk-text);
|
|
81
|
+
font: inherit;
|
|
82
|
+
font-weight: 500;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
transition:
|
|
85
|
+
background-color 0.15s,
|
|
86
|
+
border-color 0.15s;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[data-mk-dt-tool]:hover {
|
|
90
|
+
background: var(--mk-surface-2);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
[data-mk-dt-tool]:focus-visible,
|
|
94
|
+
[data-mk-dt-size-button]:focus-visible,
|
|
95
|
+
[data-mk-dt-sort]:focus-visible,
|
|
96
|
+
[data-mk-dt-row-menu]:focus-visible,
|
|
97
|
+
[data-mk-dt-pager] button:focus-visible,
|
|
98
|
+
[data-mk-dt-bulk] button:focus-visible,
|
|
99
|
+
[data-mk-dt-clear]:focus-visible {
|
|
100
|
+
outline: 2px solid var(--mk-accent);
|
|
101
|
+
outline-offset: 2px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
[data-mk-dt-count] {
|
|
105
|
+
display: inline-grid;
|
|
106
|
+
place-items: center;
|
|
107
|
+
min-width: 1.25rem;
|
|
108
|
+
height: 1.25rem;
|
|
109
|
+
padding: 0 0.3rem;
|
|
110
|
+
border-radius: 999px;
|
|
111
|
+
background: var(--mk-accent);
|
|
112
|
+
color: var(--mk-on-accent);
|
|
113
|
+
font-size: 0.6875rem;
|
|
114
|
+
font-weight: 700;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
[data-mk-dt-count][hidden],
|
|
118
|
+
[data-mk-dt-active][hidden],
|
|
119
|
+
[data-mk-dt-empty][hidden],
|
|
120
|
+
[data-mk-dt-bulk][hidden],
|
|
121
|
+
[data-mk-dt-pager][hidden],
|
|
122
|
+
[data-mk-dt-size][hidden],
|
|
123
|
+
[data-mk-dt-select-all][hidden] {
|
|
124
|
+
display: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
[data-mk-dt-active] {
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
gap: 0.75rem;
|
|
131
|
+
min-width: 0;
|
|
132
|
+
padding: 0.5rem 0.5rem 0.5rem 0.875rem;
|
|
133
|
+
border-radius: 12px;
|
|
134
|
+
background: var(--mk-accent-soft);
|
|
135
|
+
color: var(--mk-on-accent-soft, var(--mk-text));
|
|
136
|
+
font-size: 0.8125rem;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
[data-mk-dt-active] > span {
|
|
140
|
+
flex: 1;
|
|
141
|
+
min-width: 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
[data-mk-dt-clear] {
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
flex: none;
|
|
147
|
+
align-items: center;
|
|
148
|
+
gap: 0.25rem;
|
|
149
|
+
height: 1.875rem;
|
|
150
|
+
padding: 0 0.625rem;
|
|
151
|
+
border: 0;
|
|
152
|
+
border-radius: 8px;
|
|
153
|
+
background: color-mix(in srgb, currentColor 12%, transparent);
|
|
154
|
+
color: inherit;
|
|
155
|
+
font: inherit;
|
|
156
|
+
font-weight: 600;
|
|
157
|
+
cursor: pointer;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* ── The table ───────────────────────────────────────────────────────────── */
|
|
161
|
+
/* A table wider than its panel scrolls sideways; a soft shadow at an edge says there is more past it (the covers
|
|
162
|
+
travel with the content, the shadows stay with the panel). */
|
|
163
|
+
[data-mk-dt-scroll] {
|
|
164
|
+
max-height: var(--mk-dt-max-height);
|
|
165
|
+
overflow: auto;
|
|
166
|
+
border: 1px solid var(--mk-outline-soft);
|
|
167
|
+
border-radius: 20px;
|
|
168
|
+
outline: none;
|
|
169
|
+
background:
|
|
170
|
+
linear-gradient(to right, var(--mk-surface-1) 40%, transparent) left center / 2.5rem 100% no-repeat local,
|
|
171
|
+
linear-gradient(to left, var(--mk-surface-1) 40%, transparent) right center / 2.5rem 100% no-repeat local,
|
|
172
|
+
radial-gradient(farthest-side at 0 50%, color-mix(in srgb, var(--mk-shadow-color, #000) 22%, transparent), transparent) left center / 1rem 100% no-repeat scroll,
|
|
173
|
+
radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--mk-shadow-color, #000) 22%, transparent), transparent) right center / 1rem 100% no-repeat scroll,
|
|
174
|
+
var(--mk-surface-1);
|
|
175
|
+
overscroll-behavior-x: contain;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
[data-mk-dt-scroll]:focus-visible {
|
|
179
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-accent) 35%, transparent);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
[data-mk-dt-table] {
|
|
183
|
+
width: 100%;
|
|
184
|
+
border-collapse: separate;
|
|
185
|
+
border-spacing: 0;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
[data-mk-dt-table] :is(th, td) {
|
|
189
|
+
height: 3rem;
|
|
190
|
+
padding: 0 1rem;
|
|
191
|
+
border-bottom: 1px solid var(--mk-outline-soft);
|
|
192
|
+
text-align: start;
|
|
193
|
+
white-space: nowrap;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
[data-mk-dt-table] :is(th, td)[data-align='end'] {
|
|
197
|
+
text-align: end;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
[data-mk-dt-table] :is(th, td)[data-align='center'] {
|
|
201
|
+
text-align: center;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
[data-mk-dt-table] thead th {
|
|
205
|
+
position: sticky;
|
|
206
|
+
top: 0;
|
|
207
|
+
z-index: 1;
|
|
208
|
+
height: 2.75rem;
|
|
209
|
+
background: var(--mk-surface-2);
|
|
210
|
+
color: var(--mk-muted);
|
|
211
|
+
font-size: 0.75rem;
|
|
212
|
+
font-weight: 600;
|
|
213
|
+
letter-spacing: 0.02em;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
[data-mk-dt-table] thead th:is([data-direction='asc'], [data-direction='desc']) {
|
|
217
|
+
color: var(--mk-text);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
[data-mk-dt-table] tbody tr:last-child td {
|
|
221
|
+
border-bottom: 0;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
[data-mk-dt-table] tbody tr {
|
|
225
|
+
transition: background-color 0.15s;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
[data-mk-dt-table] tbody tr:hover {
|
|
229
|
+
background: color-mix(in srgb, var(--mk-text) 3%, transparent);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* A chosen row: a light tint and an accent edge, never a fill that hides the data (on OLED the accent is white). */
|
|
233
|
+
[data-mk-dt-table] tbody tr[data-selected] {
|
|
234
|
+
background: color-mix(in srgb, var(--mk-accent) 7%, transparent);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
[data-mk-dt-table] tbody tr[data-selected]:hover {
|
|
238
|
+
background: color-mix(in srgb, var(--mk-accent) 11%, transparent);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
[data-mk-dt-table] tbody tr[data-selected] > :first-child {
|
|
242
|
+
box-shadow: inset 3px 0 0 var(--mk-accent);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
[data-mk-dt-table] td mark {
|
|
246
|
+
padding: 0 1px;
|
|
247
|
+
border-radius: 3px;
|
|
248
|
+
background: color-mix(in srgb, var(--mk-accent) 28%, transparent);
|
|
249
|
+
color: inherit;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
[data-mk-dt-sort] {
|
|
253
|
+
display: inline-flex;
|
|
254
|
+
align-items: center;
|
|
255
|
+
gap: 0.25rem;
|
|
256
|
+
margin: 0 -0.375rem;
|
|
257
|
+
padding: 0.25rem 0.375rem;
|
|
258
|
+
border: 0;
|
|
259
|
+
border-radius: 6px;
|
|
260
|
+
background: none;
|
|
261
|
+
color: inherit;
|
|
262
|
+
font: inherit;
|
|
263
|
+
letter-spacing: inherit;
|
|
264
|
+
cursor: pointer;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
[data-mk-dt-table] th[data-align='end'] [data-mk-dt-sort] {
|
|
268
|
+
flex-direction: row-reverse;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
[data-mk-dt-sort]:hover {
|
|
272
|
+
background: color-mix(in srgb, var(--mk-text) 6%, transparent);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
[data-mk-dt-sort] svg {
|
|
276
|
+
flex: none;
|
|
277
|
+
opacity: 0;
|
|
278
|
+
transition:
|
|
279
|
+
opacity 0.15s,
|
|
280
|
+
transform 0.3s cubic-bezier(0.38, 0.49, 0, 1.5);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
[data-mk-dt-sort]:hover svg {
|
|
284
|
+
opacity: 0.45;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
th:is([data-direction='asc'], [data-direction='desc']) [data-mk-dt-sort] svg {
|
|
288
|
+
opacity: 1;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
th[data-direction='desc'] [data-mk-dt-sort] svg {
|
|
292
|
+
transform: rotate(180deg);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
[data-mk-dt-table] :is(th, td)[data-mk-dt-select] {
|
|
296
|
+
width: 1.125rem;
|
|
297
|
+
padding-right: 0.25rem;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
[data-mk-dt-table] :is(th, td)[data-mk-dt-actions] {
|
|
301
|
+
width: 2rem;
|
|
302
|
+
padding: 0 0.5rem 0 0;
|
|
303
|
+
text-align: end;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* The checks. */
|
|
307
|
+
[data-mk-dt-check] {
|
|
308
|
+
position: relative;
|
|
309
|
+
display: inline-grid;
|
|
310
|
+
place-items: center;
|
|
311
|
+
width: 1.125rem;
|
|
312
|
+
height: 1.125rem;
|
|
313
|
+
box-sizing: border-box;
|
|
314
|
+
border: 2px solid var(--mk-outline);
|
|
315
|
+
border-radius: 5px;
|
|
316
|
+
color: transparent;
|
|
317
|
+
vertical-align: middle;
|
|
318
|
+
transition:
|
|
319
|
+
background-color 0.2s,
|
|
320
|
+
border-color 0.2s,
|
|
321
|
+
color 0.2s;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
[data-mk-dt-check] input {
|
|
325
|
+
position: absolute;
|
|
326
|
+
inset: -0.375rem;
|
|
327
|
+
width: auto;
|
|
328
|
+
height: auto;
|
|
329
|
+
margin: 0;
|
|
330
|
+
opacity: 0;
|
|
331
|
+
cursor: pointer;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
[data-mk-dt-check] svg {
|
|
335
|
+
display: block;
|
|
336
|
+
width: 100%;
|
|
337
|
+
height: 100%;
|
|
338
|
+
pointer-events: none;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
[data-mk-dt-check]:is([data-state='true'], [data-state='mixed']) {
|
|
342
|
+
border-color: var(--mk-accent);
|
|
343
|
+
background: var(--mk-accent);
|
|
344
|
+
color: var(--mk-on-accent);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
[data-mk-dt-check] [data-mk-dt-dash],
|
|
348
|
+
[data-mk-dt-check][data-state='mixed'] [data-mk-dt-tick] {
|
|
349
|
+
display: none;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
[data-mk-dt-check][data-state='mixed'] [data-mk-dt-dash] {
|
|
353
|
+
display: inline;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
[data-mk-dt-check]:has(input:focus-visible) {
|
|
357
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-accent) 35%, transparent);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
[data-mk-dt-row-menu] {
|
|
361
|
+
display: inline-grid;
|
|
362
|
+
place-items: center;
|
|
363
|
+
width: 2rem;
|
|
364
|
+
height: 2rem;
|
|
365
|
+
padding: 0;
|
|
366
|
+
border: 0;
|
|
367
|
+
border-radius: 8px;
|
|
368
|
+
background: none;
|
|
369
|
+
color: var(--mk-muted);
|
|
370
|
+
vertical-align: middle;
|
|
371
|
+
cursor: pointer;
|
|
372
|
+
transition:
|
|
373
|
+
background-color 0.15s,
|
|
374
|
+
color 0.15s;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
[data-mk-dt-row-menu]:hover,
|
|
378
|
+
[data-mk-dt-row-menu][aria-expanded='true'] {
|
|
379
|
+
background: var(--mk-surface-3);
|
|
380
|
+
color: var(--mk-text);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
[data-mk-dt-bool] {
|
|
384
|
+
display: inline-block;
|
|
385
|
+
padding: 0.125rem 0.5rem;
|
|
386
|
+
border-radius: 8px;
|
|
387
|
+
background: var(--mk-surface-3);
|
|
388
|
+
font-size: 0.75rem;
|
|
389
|
+
font-weight: 600;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
[data-mk-dt-bool][data-value='true'] {
|
|
393
|
+
background: var(--mk-accent-soft);
|
|
394
|
+
color: var(--mk-on-accent-soft, var(--mk-text));
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
[data-mk-dt-bone] {
|
|
398
|
+
display: block;
|
|
399
|
+
height: 0.75rem;
|
|
400
|
+
border-radius: 6px;
|
|
401
|
+
background: linear-gradient(90deg, var(--mk-surface-3) 0%, var(--mk-surface-2) 50%, var(--mk-surface-3) 100%);
|
|
402
|
+
background-size: 200% 100%;
|
|
403
|
+
animation: mk-dt-shimmer 1.2s linear infinite;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
@keyframes mk-dt-shimmer {
|
|
407
|
+
from {
|
|
408
|
+
background-position: 100% 0;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
to {
|
|
412
|
+
background-position: -100% 0;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
[data-mk-dt-empty] {
|
|
417
|
+
padding: 0.5rem 0 1rem;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/* ── The foot ────────────────────────────────────────────────────────────── */
|
|
421
|
+
[data-mk-dt-foot] {
|
|
422
|
+
display: flex;
|
|
423
|
+
flex-wrap: wrap;
|
|
424
|
+
align-items: center;
|
|
425
|
+
gap: 0.5rem 1rem;
|
|
426
|
+
min-width: 0;
|
|
427
|
+
color: var(--mk-muted);
|
|
428
|
+
font-size: 0.8125rem;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
[data-mk-dt-range],
|
|
432
|
+
[data-mk-dt-page] {
|
|
433
|
+
font-variant-numeric: tabular-nums;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
[data-mk-dt-size] {
|
|
437
|
+
display: inline-flex;
|
|
438
|
+
align-items: center;
|
|
439
|
+
gap: 0.5rem;
|
|
440
|
+
margin-left: auto;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
[data-mk-dt-size-button] {
|
|
444
|
+
display: inline-flex;
|
|
445
|
+
align-items: center;
|
|
446
|
+
gap: 0.25rem;
|
|
447
|
+
height: 2rem;
|
|
448
|
+
padding: 0 0.375rem 0 0.75rem;
|
|
449
|
+
border: 1px solid var(--mk-outline-soft);
|
|
450
|
+
border-radius: 8px;
|
|
451
|
+
background: var(--mk-surface-1);
|
|
452
|
+
color: var(--mk-text);
|
|
453
|
+
font: inherit;
|
|
454
|
+
font-variant-numeric: tabular-nums;
|
|
455
|
+
cursor: pointer;
|
|
456
|
+
transition: background-color 0.15s;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
[data-mk-dt-size-button]:hover,
|
|
460
|
+
[data-mk-dt-size-button][aria-expanded='true'] {
|
|
461
|
+
background: var(--mk-surface-2);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
[data-mk-dt-size-button] svg {
|
|
465
|
+
flex: none;
|
|
466
|
+
color: var(--mk-muted);
|
|
467
|
+
transition: transform 0.3s cubic-bezier(0.38, 0.49, 0, 1.5);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
[data-mk-dt-size-button][aria-expanded='true'] svg {
|
|
471
|
+
transform: rotate(180deg);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
[data-mk-dt-pager] {
|
|
475
|
+
display: inline-flex;
|
|
476
|
+
align-items: center;
|
|
477
|
+
gap: 0.25rem;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
[data-mk-dt-pager] button {
|
|
481
|
+
display: inline-grid;
|
|
482
|
+
place-items: center;
|
|
483
|
+
width: 2rem;
|
|
484
|
+
height: 2rem;
|
|
485
|
+
padding: 0;
|
|
486
|
+
border: 1px solid var(--mk-outline-soft);
|
|
487
|
+
border-radius: 8px;
|
|
488
|
+
background: var(--mk-surface-1);
|
|
489
|
+
color: var(--mk-text);
|
|
490
|
+
cursor: pointer;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
[data-mk-dt-pager] button:disabled {
|
|
494
|
+
opacity: 0.38;
|
|
495
|
+
cursor: default;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
[data-mk-dt-page] {
|
|
499
|
+
min-width: 3.5rem;
|
|
500
|
+
color: var(--mk-text);
|
|
501
|
+
text-align: center;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
/* ── The bar of the chosen rows ──────────────────────────────────────────── */
|
|
505
|
+
/* It shares the toolbar's grid cell and covers it while rows are chosen: the rows stay in view. */
|
|
506
|
+
[data-mk-dt-bulk] {
|
|
507
|
+
position: relative;
|
|
508
|
+
z-index: 2;
|
|
509
|
+
grid-row: 1;
|
|
510
|
+
grid-column: 1;
|
|
511
|
+
display: flex;
|
|
512
|
+
flex-wrap: wrap;
|
|
513
|
+
align-items: center;
|
|
514
|
+
align-self: stretch;
|
|
515
|
+
gap: 0.25rem 0.5rem;
|
|
516
|
+
min-width: 0;
|
|
517
|
+
min-height: 2.5rem;
|
|
518
|
+
padding: 0.25rem 0.25rem 0.25rem 1rem;
|
|
519
|
+
border-radius: 12px;
|
|
520
|
+
background: var(--mk-surface-3);
|
|
521
|
+
color: var(--mk-text);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.mk-data-table:has(> [data-mk-dt-bulk]:not([hidden])) > [data-mk-dt-bar],
|
|
525
|
+
mk-data-table:has(> [data-mk-dt-bulk]:not([hidden])) > [data-mk-dt-bar] {
|
|
526
|
+
visibility: hidden;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
[data-mk-dt-bulk-label] {
|
|
530
|
+
font-weight: 500;
|
|
531
|
+
white-space: nowrap;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
[data-mk-dt-bulk-count] {
|
|
535
|
+
display: inline-block;
|
|
536
|
+
font-variant-numeric: tabular-nums;
|
|
537
|
+
font-weight: 700;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
[data-mk-dt-bulk-actions] {
|
|
541
|
+
display: flex;
|
|
542
|
+
flex-wrap: wrap;
|
|
543
|
+
gap: 0.25rem;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
[data-mk-dt-bulk] button {
|
|
547
|
+
height: 2rem;
|
|
548
|
+
padding: 0 0.75rem;
|
|
549
|
+
border: 0;
|
|
550
|
+
border-radius: 8px;
|
|
551
|
+
background: var(--mk-surface-1);
|
|
552
|
+
color: inherit;
|
|
553
|
+
font: inherit;
|
|
554
|
+
font-weight: 500;
|
|
555
|
+
cursor: pointer;
|
|
556
|
+
transition: background-color 0.15s;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
[data-mk-dt-bulk] button:hover {
|
|
560
|
+
background: var(--mk-surface-2);
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
[data-mk-dt-bulk] button[data-danger] {
|
|
564
|
+
background: var(--mk-error);
|
|
565
|
+
color: var(--mk-on-error, #fff);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
[data-mk-dt-bulk] [data-mk-dt-select-all] {
|
|
569
|
+
background: none;
|
|
570
|
+
text-decoration: underline;
|
|
571
|
+
text-underline-offset: 3px;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
/* The close button is a square with its cross in the middle (the bar's button padding must not reach it). */
|
|
575
|
+
[data-mk-dt-bulk] [data-mk-dt-bulk-close] {
|
|
576
|
+
display: inline-grid;
|
|
577
|
+
place-items: center;
|
|
578
|
+
width: 2rem;
|
|
579
|
+
margin-left: auto;
|
|
580
|
+
padding: 0;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
[data-mk-dt-bulk-close] svg {
|
|
584
|
+
display: block;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/* ── Panels and the row menu ─────────────────────────────────────────────── */
|
|
588
|
+
.mk-dialog.mk-dt-panel {
|
|
589
|
+
--mk-dialog-radius: 20px;
|
|
590
|
+
--mk-dialog-bg: var(--mk-surface-1);
|
|
591
|
+
/* A hairline keeps the panel apart from the table under it (on OLED both are near black). */
|
|
592
|
+
--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);
|
|
593
|
+
gap: 0.5rem;
|
|
594
|
+
width: max-content;
|
|
595
|
+
min-width: min(14rem, calc(100vw - 32px));
|
|
596
|
+
max-width: min(22rem, calc(100vw - 32px));
|
|
597
|
+
padding: 0.75rem;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.mk-dialog.mk-dt-panel.mk-dt-filters {
|
|
601
|
+
width: min(38rem, calc(100vw - 32px));
|
|
602
|
+
max-width: min(38rem, calc(100vw - 32px));
|
|
603
|
+
padding: 1rem;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
[data-mk-dt-panel-title] {
|
|
607
|
+
margin: 0 0 0.25rem;
|
|
608
|
+
padding: 0 0.25rem;
|
|
609
|
+
color: var(--mk-muted);
|
|
610
|
+
font-size: 0.75rem;
|
|
611
|
+
font-weight: 600;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
[data-mk-dt-column-list] {
|
|
615
|
+
display: grid;
|
|
616
|
+
gap: 0.125rem;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
[data-mk-dt-column] {
|
|
620
|
+
display: flex;
|
|
621
|
+
align-items: center;
|
|
622
|
+
gap: 0.625rem;
|
|
623
|
+
min-height: 2.25rem;
|
|
624
|
+
padding: 0 0.5rem;
|
|
625
|
+
border-radius: 8px;
|
|
626
|
+
cursor: pointer;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
[data-mk-dt-column]:hover {
|
|
630
|
+
background: var(--mk-surface-2);
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/* The row menu and the rows per page menu look like the panels: 20 px surface, 8 px items, the same hover. */
|
|
634
|
+
.mk-dialog.mk-dt-panel.mk-dt-menu {
|
|
635
|
+
gap: 0.125rem;
|
|
636
|
+
min-width: 9rem;
|
|
637
|
+
padding: 0.375rem;
|
|
638
|
+
-webkit-backdrop-filter: none;
|
|
639
|
+
backdrop-filter: none;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.mk-dialog.mk-dt-menu [data-mk-item] {
|
|
643
|
+
gap: 0.625rem;
|
|
644
|
+
min-height: 2.25rem;
|
|
645
|
+
padding: 0 0.625rem;
|
|
646
|
+
border-radius: 8px;
|
|
647
|
+
font-family: inherit;
|
|
648
|
+
font-size: 0.875rem;
|
|
649
|
+
font-weight: 500;
|
|
650
|
+
letter-spacing: normal;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.mk-dialog.mk-dt-menu [data-mk-item]:hover,
|
|
654
|
+
.mk-dialog.mk-dt-menu [data-mk-item]:focus-visible {
|
|
655
|
+
background: var(--mk-surface-2);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.mk-dialog.mk-dt-menu [data-mk-item] svg {
|
|
659
|
+
flex: none;
|
|
660
|
+
margin-left: auto;
|
|
661
|
+
opacity: 0;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.mk-dialog.mk-dt-menu [data-mk-item][aria-checked='true'] {
|
|
665
|
+
font-weight: 600;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.mk-dialog.mk-dt-menu [data-mk-item][aria-checked='true'] svg {
|
|
669
|
+
opacity: 1;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.mk-dialog.mk-dt-menu [data-mk-item][data-danger] {
|
|
673
|
+
color: var(--mk-error);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
@media (prefers-reduced-motion: reduce) {
|
|
677
|
+
[data-mk-dt-bone] {
|
|
678
|
+
animation: none;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
[data-mk-dt-sort] svg,
|
|
682
|
+
[data-mk-dt-size-button] svg,
|
|
683
|
+
[data-mk-dt-check] {
|
|
684
|
+
transition: none;
|
|
685
|
+
}
|
|
686
|
+
}
|