@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,127 @@
|
|
|
1
|
+
/* components/notification-bell/notification-bell.css */
|
|
2
|
+
/* notification-bell — a round Melonmind icon button (surface tone) with a bell, a badge in the error tone and a
|
|
3
|
+
message that rises beside it in the inverse glass. */
|
|
4
|
+
.mk-notification-bell,
|
|
5
|
+
mk-notification-bell {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[data-mk-bell] {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: grid;
|
|
13
|
+
place-items: center;
|
|
14
|
+
width: 3rem;
|
|
15
|
+
height: 3rem;
|
|
16
|
+
padding: 0;
|
|
17
|
+
border: 0;
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
background: var(--mk-surface-3);
|
|
20
|
+
color: var(--mk-text);
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
transition: background-color 0.2s ease;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[data-mk-bell]:hover {
|
|
26
|
+
background: var(--mk-surface-4);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-mk-bell]:active {
|
|
30
|
+
animation: mk-bell-press 500ms cubic-bezier(0.37, 1.42, 0.37, 1);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[data-mk-bell]:focus-visible {
|
|
34
|
+
outline: 2px solid var(--mk-accent);
|
|
35
|
+
outline-offset: 3px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[data-mk-bell] [data-mk-bell-icon] {
|
|
39
|
+
width: 1.5rem;
|
|
40
|
+
height: 1.5rem;
|
|
41
|
+
overflow: visible;
|
|
42
|
+
fill: none;
|
|
43
|
+
stroke: currentColor;
|
|
44
|
+
stroke-width: 1.8;
|
|
45
|
+
stroke-linecap: round;
|
|
46
|
+
stroke-linejoin: round;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-mk-bell] [data-mk-bell-waves] {
|
|
50
|
+
position: absolute;
|
|
51
|
+
inset: 0;
|
|
52
|
+
display: grid;
|
|
53
|
+
place-items: center;
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-mk-bell] [data-mk-bell-waves] i {
|
|
58
|
+
position: absolute;
|
|
59
|
+
inset: 0;
|
|
60
|
+
border-radius: 50%;
|
|
61
|
+
box-shadow: inset 0 0 0 2px var(--mk-text);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-mk-bell] [data-mk-bell-badge] {
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 0.15rem;
|
|
67
|
+
right: 0.1rem;
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
min-width: 1.25rem;
|
|
72
|
+
height: 1.25rem;
|
|
73
|
+
padding: 0 0.3rem;
|
|
74
|
+
border-radius: 64px;
|
|
75
|
+
background: var(--mk-error);
|
|
76
|
+
box-shadow: 0 0 0 2px var(--mk-bg);
|
|
77
|
+
color: var(--mk-on-error);
|
|
78
|
+
font-size: 0.6875rem;
|
|
79
|
+
font-weight: 600;
|
|
80
|
+
font-variant-numeric: tabular-nums;
|
|
81
|
+
line-height: 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[data-mk-bell] [data-mk-bell-badge][hidden] {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:is(.mk-notification-bell, mk-notification-bell) [data-mk-bell-message] {
|
|
89
|
+
position: absolute;
|
|
90
|
+
top: 50%;
|
|
91
|
+
left: calc(100% + 0.75rem);
|
|
92
|
+
width: max-content;
|
|
93
|
+
max-width: 16rem;
|
|
94
|
+
padding: 0.5rem 0.85rem;
|
|
95
|
+
border-radius: 16px;
|
|
96
|
+
background: var(--mk-glass-inverse);
|
|
97
|
+
box-shadow: var(--mk-glass-bevel);
|
|
98
|
+
backdrop-filter: blur(16px);
|
|
99
|
+
color: var(--mk-on-glass-inverse);
|
|
100
|
+
font-size: 0.8125rem;
|
|
101
|
+
translate: 0 -50%;
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
transform-origin: 0 50%;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:is(.mk-notification-bell, mk-notification-bell) [data-mk-bell-message][data-mk-side='left'] {
|
|
107
|
+
right: calc(100% + 0.75rem);
|
|
108
|
+
left: auto;
|
|
109
|
+
transform-origin: 100% 50%;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:is(.mk-notification-bell, mk-notification-bell) [data-mk-bell-message][hidden] {
|
|
113
|
+
display: none;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@keyframes mk-bell-press {
|
|
117
|
+
50% {
|
|
118
|
+
transform: scale(0.92);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@media (prefers-reduced-motion: reduce) {
|
|
123
|
+
[data-mk-bell] {
|
|
124
|
+
animation: none !important;
|
|
125
|
+
transition: none;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/* components/orbit-menu/orbit-menu.css */
|
|
2
|
+
/* orbit-menu — soft white squares (16 px corners, a wide low shadow) around a middle button whose lines turn into an ×.
|
|
3
|
+
The options sit on the middle and the engine moves them out; give the menu room around it. */
|
|
4
|
+
.mk-orbit-menu,
|
|
5
|
+
mk-orbit-menu {
|
|
6
|
+
--mk-orbit-size: 4rem;
|
|
7
|
+
--mk-orbit-face: var(--mk-surface-3);
|
|
8
|
+
--mk-orbit-ink: var(--mk-text);
|
|
9
|
+
--mk-orbit-shadow: 0 18px 36px -14px rgb(0 0 0 / 0.22), 0 2px 6px -2px rgb(0 0 0 / 0.08);
|
|
10
|
+
position: relative;
|
|
11
|
+
display: inline-grid;
|
|
12
|
+
place-items: center;
|
|
13
|
+
width: var(--mk-orbit-size);
|
|
14
|
+
height: var(--mk-orbit-size);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:is(.mk-orbit-menu, mk-orbit-menu) :is([data-mk-orbit-toggle], [data-mk-orbit-item]) {
|
|
18
|
+
display: grid;
|
|
19
|
+
place-items: center;
|
|
20
|
+
width: var(--mk-orbit-size);
|
|
21
|
+
height: var(--mk-orbit-size);
|
|
22
|
+
padding: 0;
|
|
23
|
+
border: 1px solid var(--mk-outline-soft);
|
|
24
|
+
border-radius: var(--mk-radius-md);
|
|
25
|
+
background: var(--mk-orbit-face);
|
|
26
|
+
box-shadow: var(--mk-orbit-shadow);
|
|
27
|
+
color: var(--mk-orbit-ink);
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
-webkit-tap-highlight-color: transparent;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:is(.mk-orbit-menu, mk-orbit-menu) [data-mk-orbit-toggle] {
|
|
33
|
+
position: relative;
|
|
34
|
+
z-index: 2;
|
|
35
|
+
transition:
|
|
36
|
+
background-color 0.3s ease,
|
|
37
|
+
box-shadow 0.3s ease;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Open: the middle goes glassy, the options are the faces now. */
|
|
41
|
+
:is(.mk-orbit-menu, mk-orbit-menu)[data-mk-state='open'] [data-mk-orbit-toggle] {
|
|
42
|
+
background: color-mix(in srgb, var(--mk-orbit-face) 55%, transparent);
|
|
43
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mk-orbit-ink) 8%, transparent);
|
|
44
|
+
backdrop-filter: blur(8px);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:is(.mk-orbit-menu, mk-orbit-menu) [data-mk-orbit-item] {
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 0;
|
|
50
|
+
left: 0;
|
|
51
|
+
z-index: 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:is(.mk-orbit-menu, mk-orbit-menu) :is([data-mk-orbit-toggle], [data-mk-orbit-item]) svg {
|
|
55
|
+
width: 1.75rem;
|
|
56
|
+
height: 1.75rem;
|
|
57
|
+
transition: transform 0.35s var(--mk-ease-swatch);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media (hover: hover) {
|
|
61
|
+
:is(.mk-orbit-menu, mk-orbit-menu) [data-mk-orbit-item]:hover svg {
|
|
62
|
+
transform: scale(1.12);
|
|
63
|
+
}
|
|
64
|
+
:is(.mk-orbit-menu, mk-orbit-menu) [data-mk-orbit-item]:hover {
|
|
65
|
+
box-shadow: 0 22px 40px -14px rgb(0 0 0 / 0.28), 0 2px 6px -2px rgb(0 0 0 / 0.1);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:is(.mk-orbit-menu, mk-orbit-menu) :is([data-mk-orbit-toggle], [data-mk-orbit-item]):focus-visible {
|
|
70
|
+
outline: 2px solid var(--mk-accent);
|
|
71
|
+
outline-offset: 3px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* The three lines and their × . */
|
|
75
|
+
[data-mk-orbit-burger] {
|
|
76
|
+
position: relative;
|
|
77
|
+
width: 1.5rem;
|
|
78
|
+
height: 1rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
[data-mk-orbit-burger] i {
|
|
82
|
+
position: absolute;
|
|
83
|
+
left: 0;
|
|
84
|
+
width: 100%;
|
|
85
|
+
height: 2px;
|
|
86
|
+
border-radius: 2px;
|
|
87
|
+
background: currentColor;
|
|
88
|
+
transition:
|
|
89
|
+
transform 0.4s var(--mk-ease-swatch),
|
|
90
|
+
opacity 0.2s ease;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
[data-mk-orbit-burger] i:nth-child(1) {
|
|
94
|
+
top: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[data-mk-orbit-burger] i:nth-child(2) {
|
|
98
|
+
top: calc(50% - 1px);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[data-mk-orbit-burger] i:nth-child(3) {
|
|
102
|
+
bottom: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:is(.mk-orbit-menu, mk-orbit-menu)[data-mk-state='open'] [data-mk-orbit-burger] i:nth-child(1) {
|
|
106
|
+
transform: translateY(calc(0.5rem - 1px)) rotate(45deg);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:is(.mk-orbit-menu, mk-orbit-menu)[data-mk-state='open'] [data-mk-orbit-burger] i:nth-child(2) {
|
|
110
|
+
opacity: 0;
|
|
111
|
+
transform: scaleX(0.2);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:is(.mk-orbit-menu, mk-orbit-menu)[data-mk-state='open'] [data-mk-orbit-burger] i:nth-child(3) {
|
|
115
|
+
transform: translateY(calc(-0.5rem + 1px)) rotate(-45deg);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (prefers-reduced-motion: reduce) {
|
|
119
|
+
[data-mk-orbit-burger] i,
|
|
120
|
+
:is(.mk-orbit-menu, mk-orbit-menu) [data-mk-orbit-toggle],
|
|
121
|
+
:is(.mk-orbit-menu, mk-orbit-menu) svg {
|
|
122
|
+
transition: none;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@media (forced-colors: active) {
|
|
127
|
+
:is(.mk-orbit-menu, mk-orbit-menu) :is([data-mk-orbit-toggle], [data-mk-orbit-item]) {
|
|
128
|
+
border: 1px solid ButtonText;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
/* components/pagination/pagination.css */
|
|
2
|
+
/* pagination — round page buttons on surface-2; a pill (accent) glides under the current page; numbers that stay slide
|
|
3
|
+
when the window moves and new ones pop in; hover lifts, press squeezes. */
|
|
2
4
|
.mk-pagination, mk-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem; }
|
|
3
|
-
.mk-pagination [data-mk-pagination-pages], mk-pagination [data-mk-pagination-pages] { display: flex; align-items: center; gap: .25rem; }
|
|
4
|
-
.mk-pagination button, mk-pagination button { min-width: 2.5rem; height: 2.5rem; border: 0; border-radius: var(--mk-radius-full); background: var(--mk-surface-2); color: var(--mk-text); font: inherit; cursor: pointer; transition:
|
|
5
|
+
.mk-pagination [data-mk-pagination-pages], mk-pagination [data-mk-pagination-pages] { position: relative; display: flex; align-items: center; gap: .25rem; isolation: isolate; }
|
|
6
|
+
.mk-pagination button, mk-pagination button { position: relative; min-width: 2.5rem; height: 2.5rem; border: 0; border-radius: var(--mk-radius-full); background: var(--mk-surface-2); color: var(--mk-text); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; transition: translate .3s cubic-bezier(.38,.49,0,1.5), background-color .25s, color .25s; }
|
|
5
7
|
.mk-pagination button[aria-current], mk-pagination button[aria-current] { background: var(--mk-accent); color: var(--mk-on-accent); }
|
|
6
|
-
|
|
7
|
-
.mk-pagination
|
|
8
|
+
/* With the engine, the pill paints the current page and its button stays clear. */
|
|
9
|
+
:is(.mk-pagination, mk-pagination)[data-mk-glide] button[aria-current] { background: transparent; }
|
|
10
|
+
:is(.mk-pagination, mk-pagination) [data-mk-pagination-indicator] { position: absolute; top: 0; left: 0; z-index: -1; border-radius: var(--mk-radius-full); background: var(--mk-accent); pointer-events: none; }
|
|
11
|
+
.mk-pagination button:hover:not(:disabled), mk-pagination button:hover:not(:disabled) { translate: 0 -3px; }
|
|
12
|
+
.mk-pagination button:hover:not(:disabled):not([aria-current]), mk-pagination button:hover:not(:disabled):not([aria-current]) { background: var(--mk-surface-3); }
|
|
8
13
|
.mk-pagination button:focus-visible, mk-pagination button:focus-visible { outline: 2px solid var(--mk-accent); outline-offset: 3px; }
|
|
9
14
|
.mk-pagination button:disabled, mk-pagination button:disabled { opacity: .35; cursor: default; }
|
|
10
15
|
.mk-pagination__gap { padding: 0 .15rem; color: var(--mk-muted); }
|
|
11
|
-
@media (prefers-reduced-motion: reduce) { .mk-pagination button, mk-pagination button { transition: none;
|
|
16
|
+
@media (prefers-reduced-motion: reduce) { .mk-pagination button, mk-pagination button { transition: none; translate: none !important; } }
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/* components/password-strength/password-strength.css */
|
|
2
|
+
/* password-strength — a Melonmind field (16 px radius, surface-container-high, 3 px focus ring) with an eye toggle,
|
|
3
|
+
four rounded segments that light up by level and a checklist whose checks draw themselves. */
|
|
4
|
+
.mk-password-strength,
|
|
5
|
+
mk-password-strength {
|
|
6
|
+
--mk-password-weak: var(--mk-error);
|
|
7
|
+
--mk-password-fair: #e8a317;
|
|
8
|
+
--mk-password-good: #3c9a5f;
|
|
9
|
+
--mk-password-strong: var(--mk-accent);
|
|
10
|
+
--mk-password-tone: var(--mk-outline);
|
|
11
|
+
display: grid;
|
|
12
|
+
gap: 0.75rem;
|
|
13
|
+
color: var(--mk-text);
|
|
14
|
+
font-family: var(--mk-font);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:is(.mk-password-strength, mk-password-strength):is([data-mk-score='0'], [data-mk-score='1']) {
|
|
18
|
+
--mk-password-tone: var(--mk-password-weak);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:is(.mk-password-strength, mk-password-strength)[data-mk-score='2'] {
|
|
22
|
+
--mk-password-tone: var(--mk-password-fair);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:is(.mk-password-strength, mk-password-strength)[data-mk-score='3'] {
|
|
26
|
+
--mk-password-tone: var(--mk-password-good);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:is(.mk-password-strength, mk-password-strength)[data-mk-score='4'] {
|
|
30
|
+
--mk-password-tone: var(--mk-password-strong);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-password-field] {
|
|
34
|
+
position: relative;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-password] {
|
|
40
|
+
width: 100%;
|
|
41
|
+
min-height: 3.25rem;
|
|
42
|
+
padding: 0 3.5rem 0 1.1rem;
|
|
43
|
+
border: 0;
|
|
44
|
+
border-radius: 16px;
|
|
45
|
+
outline: none;
|
|
46
|
+
background: var(--mk-surface-4);
|
|
47
|
+
color: var(--mk-text);
|
|
48
|
+
font: inherit;
|
|
49
|
+
font-size: 1rem;
|
|
50
|
+
letter-spacing: 0.02em;
|
|
51
|
+
transition:
|
|
52
|
+
box-shadow 0.5s,
|
|
53
|
+
background-color 0.5s;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-password]:hover {
|
|
57
|
+
background: var(--mk-surface-5);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-password]:focus {
|
|
61
|
+
background: var(--mk-surface-2);
|
|
62
|
+
box-shadow:
|
|
63
|
+
0 0 0 3px var(--mk-outline-soft),
|
|
64
|
+
0 0.5px 2.5px rgb(0 0 0 / 0.3);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-password-toggle] {
|
|
68
|
+
position: absolute;
|
|
69
|
+
right: 0.4rem;
|
|
70
|
+
display: grid;
|
|
71
|
+
place-items: center;
|
|
72
|
+
width: 2.5rem;
|
|
73
|
+
height: 2.5rem;
|
|
74
|
+
padding: 0;
|
|
75
|
+
border: 0;
|
|
76
|
+
border-radius: 50%;
|
|
77
|
+
background: transparent;
|
|
78
|
+
color: var(--mk-muted);
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
transition:
|
|
81
|
+
background-color 0.2s ease,
|
|
82
|
+
color 0.2s ease;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-password-toggle]:hover {
|
|
86
|
+
background: var(--mk-surface-3);
|
|
87
|
+
color: var(--mk-text);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-password-toggle]:focus-visible {
|
|
91
|
+
outline: 2px solid var(--mk-accent);
|
|
92
|
+
outline-offset: 2px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:is(.mk-password-strength, mk-password-strength) svg {
|
|
96
|
+
width: 1.25rem;
|
|
97
|
+
height: 1.25rem;
|
|
98
|
+
fill: none;
|
|
99
|
+
stroke: currentColor;
|
|
100
|
+
stroke-width: 1.8;
|
|
101
|
+
stroke-linecap: round;
|
|
102
|
+
stroke-linejoin: round;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-password-meter] {
|
|
106
|
+
display: grid;
|
|
107
|
+
grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
|
|
108
|
+
align-items: center;
|
|
109
|
+
gap: 0.35rem;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-password-meter] > span:not([data-mk-password-label]) {
|
|
113
|
+
height: 6px;
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
border-radius: 64px;
|
|
116
|
+
background: var(--mk-surface-4);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-password-meter] i {
|
|
120
|
+
display: block;
|
|
121
|
+
height: 100%;
|
|
122
|
+
border-radius: inherit;
|
|
123
|
+
background: var(--mk-password-tone);
|
|
124
|
+
transform: scaleX(0);
|
|
125
|
+
transform-origin: left center;
|
|
126
|
+
transition: background-color 0.3s ease;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-password-label] {
|
|
130
|
+
min-width: 6.5rem;
|
|
131
|
+
margin-left: 0.4rem;
|
|
132
|
+
color: var(--mk-password-tone);
|
|
133
|
+
font-size: 0.8125rem;
|
|
134
|
+
font-weight: 500;
|
|
135
|
+
text-align: right;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-password-checks] {
|
|
139
|
+
display: grid;
|
|
140
|
+
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
|
|
141
|
+
gap: 0.3rem 1rem;
|
|
142
|
+
margin: 0;
|
|
143
|
+
padding: 0;
|
|
144
|
+
color: var(--mk-muted);
|
|
145
|
+
font-size: 0.8125rem;
|
|
146
|
+
list-style: none;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-check] {
|
|
150
|
+
display: flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
gap: 0.4rem;
|
|
153
|
+
transition: color 0.2s ease;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-check] svg {
|
|
157
|
+
flex: none;
|
|
158
|
+
width: 1rem;
|
|
159
|
+
height: 1rem;
|
|
160
|
+
padding: 2px;
|
|
161
|
+
border-radius: 50%;
|
|
162
|
+
background: var(--mk-surface-3);
|
|
163
|
+
stroke: transparent;
|
|
164
|
+
stroke-width: 3;
|
|
165
|
+
transition:
|
|
166
|
+
background-color 0.2s ease,
|
|
167
|
+
stroke 0.2s ease;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-check][data-mk-met] {
|
|
171
|
+
color: var(--mk-text);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:is(.mk-password-strength, mk-password-strength) [data-mk-check][data-mk-met] svg {
|
|
175
|
+
background: var(--mk-password-good);
|
|
176
|
+
stroke: #fff;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@media (prefers-reduced-motion: reduce) {
|
|
180
|
+
:is(.mk-password-strength, mk-password-strength) :is([data-mk-password], [data-mk-check], [data-mk-check] svg, [data-mk-password-meter] i) {
|
|
181
|
+
transition: none;
|
|
182
|
+
}
|
|
183
|
+
}
|