@yewdiel21/motion-kit 0.9.1 → 0.14.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 +72 -0
- package/dist/auto/index.d.ts +72 -3
- package/dist/auto/index.js +139 -3
- package/dist/auto/index.js.map +1 -1
- package/dist/{chunk-BFC27F2G.js → chunk-6P4P7NU6.js} +2 -218
- package/dist/chunk-6P4P7NU6.js.map +1 -0
- package/dist/chunk-CU6SXW3E.js +20334 -0
- package/dist/chunk-CU6SXW3E.js.map +1 -0
- package/dist/{chunk-XDWBVFHQ.js → chunk-EY4BJKC4.js} +1203 -29
- package/dist/chunk-EY4BJKC4.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/attachment.css +266 -0
- package/dist/css/components/breadcrumb.css +110 -0
- package/dist/css/components/calendar.css +159 -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 +591 -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 +232 -0
- package/dist/css/components/hold-confirm.css +87 -0
- package/dist/css/components/hover-card.css +20 -0
- package/dist/css/components/image-preview.css +195 -0
- package/dist/css/components/input-otp.css +10 -0
- package/dist/css/components/json-viewer.css +272 -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/notification-bell.css +127 -0
- package/dist/css/components/pagination.css +11 -0
- package/dist/css/components/password-strength.css +183 -0
- package/dist/css/components/popover.css +25 -0
- package/dist/css/components/progress.css +140 -0
- package/dist/css/components/quantity.css +16 -0
- package/dist/css/components/questionnaire.css +217 -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/scratch-card.css +75 -0
- package/dist/css/components/skeleton.css +108 -0
- package/dist/css/components/slot-picker.css +126 -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/studio-dock.css +35 -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/tooltip.css +79 -0
- package/dist/css/components/trailer.css +37 -0
- package/dist/css/components/tree-view.css +210 -0
- package/dist/css/components/virtual-list.css +195 -0
- package/dist/css/controls.css +65 -0
- package/dist/css/tokens.css +185 -181
- package/dist/elements/index.d.ts +742 -5
- package/dist/elements/index.js +1527 -8
- package/dist/elements/index.js.map +1 -1
- package/dist/{engine-GDGwQnJE.d.ts → engine-Cn6IhE3z.d.ts} +1 -1
- package/dist/engine-QECQnGz1.d.ts +33 -0
- package/dist/index.css +10113 -181
- package/dist/index.d.ts +89 -5
- package/dist/index.js +285 -9
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.ts +678 -23
- package/dist/react/index.js +2389 -7
- package/dist/react/index.js.map +1 -1
- package/dist/{reduced-B98f8LPs.d.ts → reduced-BBUusld6.d.ts} +206 -2
- package/dist/reveal-DEvp6U6T.d.ts +2381 -0
- package/dist/{store-pHiUvxP8.d.ts → store-DjkTBX7f.d.ts} +2 -2
- package/package.json +1 -1
- package/registry.json +583 -104
- package/skills/motion-kit/SKILL.md +209 -189
- package/src/auto/auto-init.ts +136 -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/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/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/calendar/README.md +82 -0
- package/src/components/calendar/calendar.css +158 -0
- package/src/components/calendar/element.ts +27 -0
- package/src/components/calendar/engine.ts +412 -0
- package/src/components/calendar/react.tsx +69 -0
- package/src/components/chart/README.md +24 -0
- package/src/components/chart/chart.css +295 -0
- package/src/components/chart/element.ts +41 -0
- package/src/components/chart/engine.ts +811 -0
- package/src/components/chart/react.tsx +50 -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 +590 -0
- package/src/components/data-table/element.ts +54 -0
- package/src/components/data-table/engine.ts +1059 -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 +775 -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 +365 -0
- package/src/components/filter-builder/filter-builder.css +231 -0
- package/src/components/filter-builder/react.tsx +36 -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 +20 -0
- package/src/components/hover-card/element.ts +8 -0
- package/src/components/hover-card/engine.ts +131 -0
- package/src/components/hover-card/hover-card.css +19 -0
- package/src/components/hover-card/react.tsx +19 -0
- 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 +325 -0
- package/src/components/image-preview/image-preview.css +194 -0
- package/src/components/image-preview/react.tsx +43 -0
- package/src/components/input-otp/README.md +18 -0
- package/src/components/input-otp/element.ts +14 -0
- package/src/components/input-otp/engine.ts +106 -0
- package/src/components/input-otp/input-otp.css +9 -0
- package/src/components/input-otp/react.tsx +21 -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 +440 -0
- package/src/components/json-viewer/json-viewer.css +271 -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/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/pagination/README.md +17 -0
- package/src/components/pagination/element.ts +14 -0
- package/src/components/pagination/engine.ts +102 -0
- package/src/components/pagination/pagination.css +10 -0
- package/src/components/pagination/react.tsx +22 -0
- 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/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/quantity/README.md +20 -0
- package/src/components/quantity/element.ts +14 -0
- package/src/components/quantity/engine.ts +85 -0
- package/src/components/quantity/quantity.css +15 -0
- package/src/components/quantity/react.tsx +21 -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/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/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/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/slot-picker/README.md +68 -0
- package/src/components/slot-picker/element.ts +27 -0
- package/src/components/slot-picker/engine.ts +412 -0
- package/src/components/slot-picker/react.tsx +76 -0
- package/src/components/slot-picker/slot-picker.css +125 -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/studio-dock/README.md +44 -0
- package/src/components/studio-dock/element.ts +11 -0
- package/src/components/studio-dock/engine.ts +212 -0
- package/src/components/studio-dock/react.tsx +23 -0
- package/src/components/studio-dock/studio-dock.css +34 -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/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/trailer/README.md +28 -0
- package/src/components/trailer/element.ts +13 -0
- package/src/components/trailer/engine.ts +189 -0
- package/src/components/trailer/react.tsx +16 -0
- package/src/components/trailer/trailer.css +36 -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 +569 -0
- package/src/components/tree-view/react.tsx +78 -0
- package/src/components/tree-view/tree-view.css +209 -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/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 +108 -0
- 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/controls/README.md +14 -0
- package/src/css/controls/status.css +63 -0
- package/src/css/tokens.css +186 -182
- package/src/elements/index.ts +171 -0
- package/src/index.ts +97 -0
- 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 +78 -0
- package/src/react/use-action-button.ts +6 -0
- package/src/react/use-editorial-reveal.ts +7 -0
- package/src/react/use-film-hero.ts +6 -0
- package/src/react/use-font-cycle.ts +7 -0
- package/src/react/use-image-zoom.ts +5 -0
- package/src/react/use-joined-cta.ts +5 -0
- package/src/react/use-local-clock.ts +5 -0
- package/src/react/use-scroll-dock.ts +5 -0
- package/src/react/use-sticker.ts +5 -0
- package/src/react/use-studio-dock.ts +8 -0
- package/src/react/use-thumbnail-nav.ts +7 -0
- package/src/react/use-trailer.ts +6 -0
- package/src/react/use-weight-hover.ts +5 -0
- package/src/recipes/action-button/README.md +31 -0
- package/src/recipes/action-button/action-button.css +113 -0
- package/src/recipes/action-button/create-action-button.ts +56 -0
- package/src/recipes/editorial-reveal/README.md +35 -0
- package/src/recipes/editorial-reveal/create-editorial-reveal.ts +91 -0
- package/src/recipes/editorial-reveal/editorial-reveal.css +17 -0
- package/src/recipes/film-hero/README.md +23 -0
- package/src/recipes/film-hero/create-film-hero.ts +65 -0
- package/src/recipes/film-hero/film-hero.css +29 -0
- package/src/recipes/font-cycle/README.md +11 -0
- package/src/recipes/font-cycle/create-font-cycle.ts +126 -0
- package/src/recipes/font-cycle/font-cycle.css +36 -0
- package/src/recipes/image-zoom/README.md +16 -0
- package/src/recipes/image-zoom/create-image-zoom.ts +27 -0
- package/src/recipes/image-zoom/image-zoom.css +7 -0
- package/src/recipes/joined-cta/README.md +13 -0
- package/src/recipes/joined-cta/create-joined-cta.ts +22 -0
- package/src/recipes/joined-cta/joined-cta.css +17 -0
- package/src/recipes/local-clock/README.md +31 -0
- package/src/recipes/local-clock/create-local-clock.ts +61 -0
- package/src/recipes/scroll-dock/README.md +46 -0
- package/src/recipes/scroll-dock/create-scroll-dock.ts +72 -0
- package/src/recipes/scroll-dock/scroll-dock.css +70 -0
- package/src/recipes/sticker/README.md +59 -0
- package/src/recipes/sticker/create-sticker.ts +490 -0
- package/src/recipes/sticker/sticker.css +112 -0
- package/src/recipes/thumbnail-nav/README.md +16 -0
- package/src/recipes/thumbnail-nav/create-thumbnail-nav.ts +165 -0
- package/src/recipes/thumbnail-nav/thumbnail-nav.css +108 -0
- package/src/recipes/weight-hover/README.md +37 -0
- package/src/recipes/weight-hover/create-weight-hover.ts +136 -0
- package/src/recipes/weight-hover/weight-hover.css +7 -0
- package/dist/chunk-BFC27F2G.js.map +0 -1
- package/dist/chunk-J6OCFNGU.js +0 -177
- package/dist/chunk-J6OCFNGU.js.map +0 -1
- package/dist/chunk-JQMJQSXD.js +0 -2374
- package/dist/chunk-JQMJQSXD.js.map +0 -1
- package/dist/chunk-XDWBVFHQ.js.map +0 -1
- package/dist/reveal-C0hCDcB_.d.ts +0 -415
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/* components/date-range-picker/date-range-picker.css */
|
|
2
|
+
/* date-range-picker — one 12 px field on surface-3 holding two segmented dates, a dash and an 8 px calendar button;
|
|
3
|
+
the focused segment sits on a 6 px accent-soft pill that glides; invalid draws an error ring and a message below.
|
|
4
|
+
The popover (an anchored dialog: needs dialog.css and range-calendar.css) has 20 px corners and preset chips. */
|
|
5
|
+
.mk-date-range-picker,
|
|
6
|
+
mk-date-range-picker {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-range-field] {
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
flex-wrap: wrap;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: 0.35rem;
|
|
16
|
+
max-width: 100%;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
min-height: 2.75rem;
|
|
19
|
+
padding: 0.25rem 0.25rem 0.25rem 0.75rem;
|
|
20
|
+
border-radius: 12px;
|
|
21
|
+
background: var(--mk-surface-3);
|
|
22
|
+
color: var(--mk-text);
|
|
23
|
+
font-variant-numeric: tabular-nums;
|
|
24
|
+
transition: box-shadow 0.2s ease;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-range-field]:focus-within {
|
|
28
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-accent) 35%, transparent);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-range-field][aria-invalid='true'] {
|
|
32
|
+
box-shadow: 0 0 0 2px var(--mk-error, #d93025);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-segments] {
|
|
36
|
+
position: relative;
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-segments][aria-disabled='true'] {
|
|
43
|
+
opacity: 0.5;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-segment] {
|
|
47
|
+
position: relative;
|
|
48
|
+
z-index: 1;
|
|
49
|
+
padding: 0.2rem 0.15rem;
|
|
50
|
+
border-radius: 6px;
|
|
51
|
+
caret-color: transparent;
|
|
52
|
+
outline: none;
|
|
53
|
+
cursor: default;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-segment][data-mk-empty] {
|
|
57
|
+
color: var(--mk-muted);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-segment]:focus {
|
|
61
|
+
color: var(--mk-on-accent-soft, var(--mk-text));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-segment]::selection {
|
|
65
|
+
background: transparent;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-segment-literal] {
|
|
69
|
+
padding: 0 0.05rem;
|
|
70
|
+
color: var(--mk-muted);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-segment-focus] {
|
|
74
|
+
position: absolute;
|
|
75
|
+
top: 50%;
|
|
76
|
+
left: 0;
|
|
77
|
+
height: 1.75rem;
|
|
78
|
+
margin-top: -0.875rem;
|
|
79
|
+
border-radius: 6px;
|
|
80
|
+
background: var(--mk-accent-soft);
|
|
81
|
+
opacity: 0;
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-range-dash] {
|
|
86
|
+
color: var(--mk-muted);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-range-button] {
|
|
90
|
+
display: grid;
|
|
91
|
+
place-items: center;
|
|
92
|
+
width: 2.25rem;
|
|
93
|
+
height: 2.25rem;
|
|
94
|
+
margin-left: auto;
|
|
95
|
+
padding: 0;
|
|
96
|
+
border: 0;
|
|
97
|
+
border-radius: 8px;
|
|
98
|
+
background: var(--mk-surface-1);
|
|
99
|
+
color: inherit;
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-range-button]:focus-visible {
|
|
104
|
+
outline: 3px solid color-mix(in srgb, var(--mk-accent) 45%, transparent);
|
|
105
|
+
outline-offset: 2px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-range-button]:disabled {
|
|
109
|
+
cursor: not-allowed;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-range-error] {
|
|
113
|
+
margin: 0.4rem 0 0;
|
|
114
|
+
color: var(--mk-error, #d93025);
|
|
115
|
+
font-size: 0.8125rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Classes, not data attributes: the copy that folds back into the button on close keeps only the classes. */
|
|
119
|
+
.mk-dialog.mk-range-popover {
|
|
120
|
+
--mk-dialog-radius: 20px;
|
|
121
|
+
--mk-dialog-bg: var(--mk-surface-1);
|
|
122
|
+
width: max-content;
|
|
123
|
+
max-width: calc(100vw - 16px);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.mk-dialog.mk-range-popover > .mk-range-calendar {
|
|
127
|
+
display: grid;
|
|
128
|
+
box-sizing: border-box;
|
|
129
|
+
max-width: 100%;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
[data-mk-range-presets] {
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-wrap: wrap;
|
|
135
|
+
gap: 0.4rem;
|
|
136
|
+
padding: 0.75rem 0.75rem 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
[data-mk-range-preset] {
|
|
140
|
+
min-height: 2rem;
|
|
141
|
+
padding: 0 0.8rem;
|
|
142
|
+
border: 0;
|
|
143
|
+
border-radius: 8px;
|
|
144
|
+
background: var(--mk-surface-3);
|
|
145
|
+
color: var(--mk-text);
|
|
146
|
+
font: inherit;
|
|
147
|
+
font-size: 0.8125rem;
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
[data-mk-range-preset]:focus-visible {
|
|
152
|
+
outline: 3px solid color-mix(in srgb, var(--mk-accent) 45%, transparent);
|
|
153
|
+
outline-offset: 2px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@media (prefers-reduced-motion: reduce) {
|
|
157
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-segment]:focus {
|
|
158
|
+
background: var(--mk-accent-soft);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-segment-focus] {
|
|
162
|
+
display: none;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
:is(.mk-date-range-picker, mk-date-range-picker) [data-mk-range-field] {
|
|
166
|
+
transition: none;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/* components/date-time-picker/date-time-picker.css */
|
|
2
|
+
/* date-time-picker — one 12 px field on surface-3 holding the date and time segments and an 8 px calendar button;
|
|
3
|
+
the focused segment sits on a 6 px accent-soft pill; invalid draws an error ring and a message under it. The popover
|
|
4
|
+
(an anchored dialog: needs dialog.css, range-calendar.css and time-field.css) has 20 px corners. */
|
|
5
|
+
.mk-date-time-picker,
|
|
6
|
+
mk-date-time-picker {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-mk-dt-field] {
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: 0.35rem;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
max-width: 100%;
|
|
17
|
+
min-height: 2.75rem;
|
|
18
|
+
padding: 0.25rem 0.25rem 0.25rem 0.75rem;
|
|
19
|
+
border-radius: 12px;
|
|
20
|
+
background: var(--mk-surface-3);
|
|
21
|
+
color: var(--mk-text);
|
|
22
|
+
font-variant-numeric: tabular-nums;
|
|
23
|
+
transition: box-shadow 0.2s ease;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[data-mk-dt-field]:focus-within {
|
|
27
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-accent) 35%, transparent);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[data-mk-dt-field]:has([aria-invalid='true']) {
|
|
31
|
+
box-shadow: 0 0 0 2px var(--mk-error, #c62828);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[data-mk-dt-field] [data-mk-segments] {
|
|
35
|
+
position: relative;
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
flex-wrap: wrap;
|
|
38
|
+
align-items: center;
|
|
39
|
+
min-width: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[data-mk-dt-field] [data-mk-segment] {
|
|
43
|
+
position: relative;
|
|
44
|
+
z-index: 1;
|
|
45
|
+
padding: 0.2rem 0.15rem;
|
|
46
|
+
border-radius: 6px;
|
|
47
|
+
caret-color: transparent;
|
|
48
|
+
outline: none;
|
|
49
|
+
cursor: default;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-mk-dt-field] [data-mk-segment][data-mk-empty] {
|
|
53
|
+
color: var(--mk-muted);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[data-mk-dt-field] [data-mk-segment]:focus {
|
|
57
|
+
color: var(--mk-on-accent-soft, var(--mk-text));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[data-mk-dt-field] [data-mk-segment]::selection {
|
|
61
|
+
background: transparent;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-mk-dt-field] [data-mk-segment-literal] {
|
|
65
|
+
padding: 0 0.05rem;
|
|
66
|
+
color: var(--mk-muted);
|
|
67
|
+
white-space: pre;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-mk-dt-field] [data-mk-segment-focus] {
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: 50%;
|
|
73
|
+
left: 0;
|
|
74
|
+
height: 1.75rem;
|
|
75
|
+
margin-top: -0.875rem;
|
|
76
|
+
border-radius: 6px;
|
|
77
|
+
background: var(--mk-accent-soft);
|
|
78
|
+
opacity: 0;
|
|
79
|
+
pointer-events: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
[data-mk-dt-button] {
|
|
83
|
+
display: grid;
|
|
84
|
+
flex: none;
|
|
85
|
+
place-items: center;
|
|
86
|
+
width: 2.25rem;
|
|
87
|
+
height: 2.25rem;
|
|
88
|
+
margin-left: auto;
|
|
89
|
+
padding: 0;
|
|
90
|
+
border: 0;
|
|
91
|
+
border-radius: 8px;
|
|
92
|
+
background: var(--mk-surface-1);
|
|
93
|
+
color: inherit;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[data-mk-dt-button]:focus-visible {
|
|
98
|
+
outline: 3px solid color-mix(in srgb, var(--mk-accent) 45%, transparent);
|
|
99
|
+
outline-offset: 2px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
[data-mk-dt-error] {
|
|
103
|
+
margin: 0.4rem 0 0;
|
|
104
|
+
color: var(--mk-error, #c62828);
|
|
105
|
+
font-size: 0.8125rem;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[data-mk-dt-error][hidden] {
|
|
109
|
+
display: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Classes, not data attributes: the copy that folds back into the button on close keeps only the classes. */
|
|
113
|
+
.mk-dialog.mk-dt-popover {
|
|
114
|
+
--mk-dialog-radius: 20px;
|
|
115
|
+
--mk-dialog-bg: var(--mk-surface-1);
|
|
116
|
+
width: max-content;
|
|
117
|
+
max-width: calc(100vw - 16px);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.mk-dialog.mk-dt-popover > .mk-range-calendar {
|
|
121
|
+
display: grid;
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
max-width: 100%;
|
|
124
|
+
padding-bottom: 0.25rem;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
[data-mk-dt-time-row] {
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: space-between;
|
|
131
|
+
gap: 0.75rem;
|
|
132
|
+
padding: 0.25rem 0.75rem;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
[data-mk-dt-time-label] {
|
|
136
|
+
color: var(--mk-muted);
|
|
137
|
+
font-size: 0.875rem;
|
|
138
|
+
font-weight: 500;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[data-mk-dt-footer] {
|
|
142
|
+
display: flex;
|
|
143
|
+
justify-content: flex-end;
|
|
144
|
+
gap: 0.5rem;
|
|
145
|
+
padding: 0.5rem 0.75rem 0.75rem;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
[data-mk-dt-footer] button {
|
|
149
|
+
min-height: 2.25rem;
|
|
150
|
+
padding: 0 0.9rem;
|
|
151
|
+
border: 0;
|
|
152
|
+
border-radius: 8px;
|
|
153
|
+
background: var(--mk-surface-3);
|
|
154
|
+
color: var(--mk-text);
|
|
155
|
+
font: inherit;
|
|
156
|
+
font-size: 0.875rem;
|
|
157
|
+
font-weight: 500;
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
[data-mk-dt-footer] [data-mk-dt-done] {
|
|
162
|
+
background: var(--mk-accent);
|
|
163
|
+
color: var(--mk-on-accent);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@media (prefers-reduced-motion: reduce) {
|
|
167
|
+
[data-mk-dt-field] [data-mk-segment]:focus {
|
|
168
|
+
background: var(--mk-accent-soft);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
[data-mk-dt-field] [data-mk-segment-focus] {
|
|
172
|
+
display: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
[data-mk-dt-field] {
|
|
176
|
+
transition: none;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* components/drawer/drawer.css */
|
|
2
|
+
/* drawer — a full-height side panel (8 px from the edges, 400 px) or the bottom sheet; built on .mk-dialog. */
|
|
3
|
+
.mk-dialog[data-mk-drawer] {
|
|
4
|
+
--mk-drawer-width: 400px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.mk-dialog:is([data-mk-drawer='left'], [data-mk-drawer='right']):not([data-mk-placement='anchor']) {
|
|
8
|
+
position: fixed;
|
|
9
|
+
width: min(var(--mk-drawer-width), calc(100vw - 16px));
|
|
10
|
+
height: calc(100dvh - 16px);
|
|
11
|
+
max-height: none;
|
|
12
|
+
margin: 0;
|
|
13
|
+
border-radius: var(--mk-dialog-radius);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.mk-dialog[data-mk-drawer='left']:not([data-mk-placement='anchor']) {
|
|
17
|
+
inset: 8px auto 8px 8px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.mk-dialog[data-mk-drawer='right']:not([data-mk-placement='anchor']) {
|
|
21
|
+
inset: 8px 8px 8px auto;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Footer actions stay at the bottom of the panel. */
|
|
25
|
+
.mk-dialog[data-mk-drawer] [data-mk-part='footer'] {
|
|
26
|
+
margin-top: auto;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.mk-dialog[data-mk-drawer='bottom'] {
|
|
30
|
+
--mk-sheet-max-width: 640px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Phones: the side panel keeps a strip of the page visible and squares its outer edge. */
|
|
34
|
+
@media (max-width: 679px) {
|
|
35
|
+
.mk-dialog:is([data-mk-drawer='left'], [data-mk-drawer='right']):not([data-mk-placement='anchor']) {
|
|
36
|
+
width: min(var(--mk-drawer-width), 88vw);
|
|
37
|
+
height: 100dvh;
|
|
38
|
+
padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.mk-dialog[data-mk-drawer='left']:not([data-mk-placement='anchor']) {
|
|
42
|
+
inset: 0 auto 0 0;
|
|
43
|
+
border-radius: 0 var(--mk-dialog-radius) var(--mk-dialog-radius) 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.mk-dialog[data-mk-drawer='right']:not([data-mk-placement='anchor']) {
|
|
47
|
+
inset: 0 0 0 auto;
|
|
48
|
+
border-radius: var(--mk-dialog-radius) 0 0 var(--mk-dialog-radius);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
mk-drawer {
|
|
53
|
+
display: contents;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
mk-drawer:not(:defined) {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/* components/editable-table/editable-table.css */
|
|
2
|
+
/* editable-table — data-table (needs data-table.css) whose cells edit in place: a 2 px accent ring that glides from
|
|
3
|
+
cell to cell, editors that fill the cell (8 px, accent border), changed cells with an accent dot that pops and a
|
|
4
|
+
soft tint, invalid ones ringed in the error colour, new rows tinted, saved cells that flash; the bar of changes
|
|
5
|
+
(12 px, surface-3) folds open above the table with Descartar and Guardar. */
|
|
6
|
+
.mk-editable-table,
|
|
7
|
+
mk-editable-table {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: grid;
|
|
10
|
+
gap: 0.75rem;
|
|
11
|
+
min-width: 0;
|
|
12
|
+
color: var(--mk-text);
|
|
13
|
+
font-size: 0.875rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-mk-editable] [data-mk-dt-scroll] {
|
|
17
|
+
position: relative;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-mk-editable] td[data-key] {
|
|
21
|
+
outline: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-mk-editable] td[data-mk-et-editable] {
|
|
25
|
+
cursor: cell;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-mk-et-ring] {
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 0;
|
|
31
|
+
left: 0;
|
|
32
|
+
border-radius: 6px;
|
|
33
|
+
box-shadow: inset 0 0 0 2px var(--mk-accent);
|
|
34
|
+
opacity: 0;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
transition: opacity 0.15s;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-mk-editable] td[data-mk-et-dirty] {
|
|
40
|
+
position: relative;
|
|
41
|
+
background: color-mix(in srgb, var(--mk-accent) 9%, transparent);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-mk-editable] td[data-mk-et-dirty]::after {
|
|
45
|
+
content: '';
|
|
46
|
+
position: absolute;
|
|
47
|
+
top: 6px;
|
|
48
|
+
right: 6px;
|
|
49
|
+
width: 6px;
|
|
50
|
+
height: 6px;
|
|
51
|
+
border-radius: 50%;
|
|
52
|
+
background: var(--mk-accent);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-mk-editable] td[data-mk-et-pop]::after {
|
|
56
|
+
animation: mk-et-pop 0.4s cubic-bezier(0.38, 0.49, 0, 1.5);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@keyframes mk-et-pop {
|
|
60
|
+
from {
|
|
61
|
+
transform: scale(0);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[data-mk-editable] td[data-mk-et-invalid] {
|
|
66
|
+
background: color-mix(in srgb, var(--mk-error) 9%, transparent);
|
|
67
|
+
box-shadow: inset 0 0 0 2px var(--mk-error);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-mk-editable] td[data-mk-et-saved] {
|
|
71
|
+
animation: mk-et-saved 1.2s ease-out;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@keyframes mk-et-saved {
|
|
75
|
+
0%,
|
|
76
|
+
30% {
|
|
77
|
+
background: color-mix(in srgb, var(--mk-accent) 30%, transparent);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
[data-mk-editable] tr[data-mk-et-new] td {
|
|
82
|
+
background: color-mix(in srgb, var(--mk-accent-soft) 45%, transparent);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[data-mk-editable] td[data-mk-et-editing] {
|
|
86
|
+
padding: 0 0.375rem;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[data-mk-et-editor] {
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
width: 100%;
|
|
92
|
+
min-width: 6rem;
|
|
93
|
+
height: 2.25rem;
|
|
94
|
+
padding: 0 0.5rem;
|
|
95
|
+
border: 1.5px solid var(--mk-accent);
|
|
96
|
+
border-radius: 8px;
|
|
97
|
+
outline: none;
|
|
98
|
+
background: var(--mk-surface-1);
|
|
99
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-accent) 22%, transparent);
|
|
100
|
+
color: var(--mk-text);
|
|
101
|
+
font: inherit;
|
|
102
|
+
text-align: inherit;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[data-mk-et-editor][aria-invalid='true'] {
|
|
106
|
+
border-color: var(--mk-error);
|
|
107
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-error) 22%, transparent);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
[data-mk-et-save] {
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-wrap: wrap;
|
|
113
|
+
align-items: center;
|
|
114
|
+
gap: 0.5rem;
|
|
115
|
+
min-width: 0;
|
|
116
|
+
padding: 0.5rem 0.5rem 0.5rem 1rem;
|
|
117
|
+
border-radius: 12px;
|
|
118
|
+
background: var(--mk-surface-3);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
[data-mk-et-save][hidden],
|
|
122
|
+
[data-mk-et-error][hidden] {
|
|
123
|
+
display: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
[data-mk-et-save-text] {
|
|
127
|
+
flex: 1 1 auto;
|
|
128
|
+
font-weight: 500;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
[data-mk-et-save-count] {
|
|
132
|
+
display: inline-block;
|
|
133
|
+
font-variant-numeric: tabular-nums;
|
|
134
|
+
font-weight: 700;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
[data-mk-et-error] {
|
|
138
|
+
flex: 1 1 100%;
|
|
139
|
+
order: 3;
|
|
140
|
+
color: var(--mk-error);
|
|
141
|
+
font-size: 0.8125rem;
|
|
142
|
+
font-weight: 500;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
[data-mk-et-save] button {
|
|
146
|
+
display: inline-flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
gap: 0.375rem;
|
|
149
|
+
height: 2.25rem;
|
|
150
|
+
padding: 0 0.875rem;
|
|
151
|
+
border: 0;
|
|
152
|
+
border-radius: 8px;
|
|
153
|
+
background: none;
|
|
154
|
+
color: var(--mk-text);
|
|
155
|
+
font: inherit;
|
|
156
|
+
font-weight: 600;
|
|
157
|
+
cursor: pointer;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
[data-mk-et-save] button:focus-visible {
|
|
161
|
+
outline: 2px solid var(--mk-accent);
|
|
162
|
+
outline-offset: 2px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
[data-mk-et-save] button:disabled {
|
|
166
|
+
opacity: 0.38;
|
|
167
|
+
cursor: default;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
[data-mk-et-save] button[data-mk-et-save-button] {
|
|
171
|
+
background: var(--mk-accent);
|
|
172
|
+
color: var(--mk-on-accent);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
[data-mk-et-save-button][aria-busy='true']::before {
|
|
176
|
+
content: '';
|
|
177
|
+
width: 0.875rem;
|
|
178
|
+
height: 0.875rem;
|
|
179
|
+
border: 2px solid currentColor;
|
|
180
|
+
border-right-color: transparent;
|
|
181
|
+
border-radius: 50%;
|
|
182
|
+
animation: mk-et-spin 0.8s linear infinite;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@keyframes mk-et-spin {
|
|
186
|
+
to {
|
|
187
|
+
transform: rotate(360deg);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@media (prefers-reduced-motion: reduce) {
|
|
192
|
+
[data-mk-editable] td:is([data-mk-et-pop], [data-mk-et-saved])::after,
|
|
193
|
+
[data-mk-editable] td[data-mk-et-saved],
|
|
194
|
+
[data-mk-et-save-button][aria-busy='true']::before {
|
|
195
|
+
animation: none;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
[data-mk-et-ring] {
|
|
199
|
+
transition: none;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* components/empty-state/empty-state.css */
|
|
2
|
+
/* empty-state — centred column: a 160 × 120 illustration on the theme's colours, a 1.125rem title, a muted line of
|
|
3
|
+
help (36ch) and the actions (kit buttons). The illustration's colours are variables, so a theme or a card can
|
|
4
|
+
recolour it. */
|
|
5
|
+
.mk-empty-state,
|
|
6
|
+
mk-empty-state {
|
|
7
|
+
--mk-empty-ink: var(--mk-muted);
|
|
8
|
+
--mk-empty-fill: var(--mk-surface-3);
|
|
9
|
+
--mk-empty-card: var(--mk-surface-1);
|
|
10
|
+
--mk-empty-accent: var(--mk-accent);
|
|
11
|
+
--mk-empty-soft: var(--mk-accent-soft);
|
|
12
|
+
--mk-empty-shadow: color-mix(in srgb, var(--mk-text) 9%, transparent);
|
|
13
|
+
--mk-empty-fill-ink: color-mix(in srgb, var(--mk-muted) 35%, transparent);
|
|
14
|
+
--mk-empty-alert: var(--mk-error);
|
|
15
|
+
--mk-empty-alert-soft: var(--mk-error-soft);
|
|
16
|
+
display: grid;
|
|
17
|
+
justify-items: center;
|
|
18
|
+
gap: 0.75rem;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
max-width: 28rem;
|
|
21
|
+
margin-inline: auto;
|
|
22
|
+
padding: 2rem 1.25rem;
|
|
23
|
+
text-align: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[data-mk-empty-illustration] svg {
|
|
27
|
+
display: block;
|
|
28
|
+
width: min(160px, 50vw);
|
|
29
|
+
height: auto;
|
|
30
|
+
overflow: visible;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[data-mk-empty-title] {
|
|
34
|
+
margin: 0.25rem 0 0;
|
|
35
|
+
color: var(--mk-text);
|
|
36
|
+
font-size: 1.125rem;
|
|
37
|
+
font-weight: 600;
|
|
38
|
+
line-height: 1.3;
|
|
39
|
+
text-wrap: balance;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[data-mk-empty-description] {
|
|
43
|
+
max-width: 36ch;
|
|
44
|
+
margin: 0;
|
|
45
|
+
color: var(--mk-muted);
|
|
46
|
+
font-size: 0.9375rem;
|
|
47
|
+
line-height: 1.5;
|
|
48
|
+
text-wrap: pretty;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-mk-empty-actions] {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-wrap: wrap;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
gap: 0.5rem;
|
|
56
|
+
margin-top: 0.25rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:is(.mk-empty-state, mk-empty-state) [hidden] {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|