@yahoo/uds-v5-wip 1.60.0 → 1.62.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/dist/config/dist/AssetGroup.d.ts +75 -0
- package/dist/config/dist/AssetGroup.js +114 -0
- package/dist/config/dist/Component.d.ts +309 -0
- package/dist/config/dist/Component.js +897 -0
- package/dist/config/dist/ComponentGroup.d.ts +21 -0
- package/dist/config/dist/ComponentGroup.js +46 -0
- package/dist/config/dist/CompositeStyle.d.ts +28 -0
- package/dist/config/dist/CompositeStyle.js +52 -0
- package/dist/config/dist/Config.d.ts +422 -0
- package/dist/config/dist/Config.js +1426 -0
- package/dist/config/dist/Mode.d.ts +42 -0
- package/dist/config/dist/Mode.js +81 -0
- package/dist/config/dist/Modifier.d.ts +52 -0
- package/dist/config/dist/Modifier.js +97 -0
- package/dist/config/dist/MotionDef.d.ts +50 -0
- package/dist/config/dist/MotionDef.js +97 -0
- package/dist/config/dist/Props.d.ts +284 -39
- package/dist/config/dist/Provider.d.ts +21 -0
- package/dist/config/dist/Provider.js +14 -0
- package/dist/config/dist/StyleProp.d.ts +113 -0
- package/dist/config/dist/StyleProp.js +197 -0
- package/dist/config/dist/Token.d.ts +56 -0
- package/dist/config/dist/Token.js +112 -0
- package/dist/config/dist/TokenGroup.d.ts +33 -0
- package/dist/config/dist/TokenGroup.js +68 -0
- package/dist/config/dist/asset-kind.d.ts +56 -0
- package/dist/config/dist/asset-kind.js +29 -0
- package/dist/config/dist/brands.d.ts +31 -0
- package/dist/config/dist/brands.js +20 -0
- package/dist/config/dist/captureCallerPath.d.ts +49 -0
- package/dist/config/dist/captureCallerPath.js +95 -0
- package/dist/config/dist/colorExpressions.d.ts +132 -0
- package/dist/config/dist/colorExpressions.js +148 -0
- package/dist/config/dist/defineAssetGroup.d.ts +158 -0
- package/dist/config/dist/defineAssetGroup.js +263 -0
- package/dist/config/dist/defineProvider.d.ts +30 -0
- package/dist/config/dist/defineProvider.js +60 -0
- package/dist/config/dist/element-marker.d.ts +55 -0
- package/dist/config/dist/element-marker.js +113 -0
- package/dist/config/dist/entity-utils.d.ts +27 -0
- package/dist/config/dist/entity-utils.js +105 -0
- package/dist/config/dist/factories.d.ts +707 -0
- package/dist/config/dist/factories.js +393 -0
- package/dist/config/dist/foreign-component-name.js +42 -0
- package/dist/config/dist/index.d.ts +31 -13
- package/dist/config/dist/index.js +26 -10
- package/dist/config/dist/interpolate.d.ts +21 -0
- package/dist/{foundational-presets/dist/motion.js → config/dist/interpolate.js} +1 -1
- package/dist/config/dist/markers.d.ts +218 -0
- package/dist/config/dist/markers.js +67 -0
- package/dist/config/dist/refs.d.ts +159 -0
- package/dist/config/dist/refs.js +98 -71
- package/dist/config/dist/token-override-rows.d.ts +67 -0
- package/dist/config/dist/token-override-rows.js +223 -0
- package/dist/config/dist/tokenValueType.js +138 -0
- package/dist/config/dist/types/css-properties.d.ts +233 -0
- package/dist/config/dist/types/css-property-keywords.d.ts +157 -0
- package/dist/config/dist/types/css-property-keywords.js +616 -0
- package/dist/config/dist/types/css-values.d.ts +20 -17
- package/dist/config/dist/types.d.ts +697 -64
- package/dist/config/dist/units.d.ts +15 -0
- package/dist/config/dist/units.js +16 -0
- package/dist/config.d.ts +32 -1562
- package/dist/config.js +28 -21
- package/dist/loader/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/loader/dist/index.d.ts +2 -0
- package/dist/loader/dist/index.js +3 -0
- package/dist/loader/dist/loader/artifacts.js +26 -9
- package/dist/loader/dist/loader/babel-utils.js +1 -29
- package/dist/loader/dist/loader.d.ts +17 -1
- package/dist/loader/dist/loader.js +56 -339
- package/dist/loader/dist/next.d.ts +2 -1
- package/dist/loader/dist/next.js +3 -3
- package/dist/loader/dist/transform-runner.js +7 -0
- package/dist/loader/dist/unplugin.d.ts +27 -0
- package/dist/loader/dist/unplugin.js +52 -0
- package/dist/plugin.d.ts +2 -2
- package/dist/plugin.js +3 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/dist/index.js +1 -0
- package/dist/utils/dist/motion-utils/resolveMotionState.d.ts +35 -0
- package/dist/utils/dist/motion-utils/resolveMotionState.js +33 -0
- package/dist/utils/dist/string-utils/componentClassName.d.ts +41 -8
- package/dist/utils/dist/string-utils/componentClassName.js +48 -11
- package/dist/utils.d.ts +3 -2
- package/dist/utils.js +3 -2
- package/package.json +3 -51
- package/dist/components/accordion.config.d.ts +0 -2
- package/dist/components/accordion.config.js +0 -2
- package/dist/components/accordion.d.ts +0 -2
- package/dist/components/accordion.js +0 -2
- package/dist/components/alert.config.d.ts +0 -2
- package/dist/components/alert.config.js +0 -2
- package/dist/components/alert.d.ts +0 -2
- package/dist/components/alert.js +0 -2
- package/dist/components/anchor.config.d.ts +0 -2
- package/dist/components/anchor.config.js +0 -2
- package/dist/components/anchor.d.ts +0 -2
- package/dist/components/anchor.js +0 -2
- package/dist/components/article.d.ts +0 -2
- package/dist/components/article.js +0 -2
- package/dist/components/aside.d.ts +0 -2
- package/dist/components/aside.js +0 -2
- package/dist/components/avatar-group.config.d.ts +0 -2
- package/dist/components/avatar-group.config.js +0 -2
- package/dist/components/avatar-group.d.ts +0 -2
- package/dist/components/avatar-group.js +0 -2
- package/dist/components/avatar.config.d.ts +0 -2
- package/dist/components/avatar.config.js +0 -2
- package/dist/components/avatar.d.ts +0 -2
- package/dist/components/avatar.js +0 -2
- package/dist/components/badge.config.d.ts +0 -2
- package/dist/components/badge.config.js +0 -2
- package/dist/components/badge.d.ts +0 -2
- package/dist/components/badge.js +0 -2
- package/dist/components/box.d.ts +0 -2
- package/dist/components/box.js +0 -2
- package/dist/components/breadcrumb.config.d.ts +0 -2
- package/dist/components/breadcrumb.config.js +0 -2
- package/dist/components/breadcrumb.d.ts +0 -2
- package/dist/components/breadcrumb.js +0 -2
- package/dist/components/button.config.d.ts +0 -2
- package/dist/components/button.config.js +0 -2
- package/dist/components/button.d.ts +0 -2
- package/dist/components/button.js +0 -2
- package/dist/components/card.config.d.ts +0 -2
- package/dist/components/card.config.js +0 -2
- package/dist/components/card.d.ts +0 -2
- package/dist/components/card.js +0 -2
- package/dist/components/collapsible.config.d.ts +0 -2
- package/dist/components/collapsible.config.js +0 -2
- package/dist/components/collapsible.d.ts +0 -2
- package/dist/components/collapsible.js +0 -2
- package/dist/components/command.config.d.ts +0 -2
- package/dist/components/command.config.js +0 -2
- package/dist/components/command.d.ts +0 -2
- package/dist/components/command.js +0 -2
- package/dist/components/control-color.config.d.ts +0 -2
- package/dist/components/control-color.config.js +0 -2
- package/dist/components/control-color.d.ts +0 -2
- package/dist/components/control-color.js +0 -2
- package/dist/components/control-curve.config.d.ts +0 -2
- package/dist/components/control-curve.config.js +0 -2
- package/dist/components/control-curve.d.ts +0 -2
- package/dist/components/control-curve.js +0 -2
- package/dist/components/control-folder.config.d.ts +0 -2
- package/dist/components/control-folder.config.js +0 -2
- package/dist/components/control-folder.d.ts +0 -2
- package/dist/components/control-folder.js +0 -2
- package/dist/components/control-group.config.d.ts +0 -2
- package/dist/components/control-group.config.js +0 -2
- package/dist/components/control-group.d.ts +0 -2
- package/dist/components/control-group.js +0 -2
- package/dist/components/control-knob.config.d.ts +0 -2
- package/dist/components/control-knob.config.js +0 -2
- package/dist/components/control-knob.d.ts +0 -2
- package/dist/components/control-knob.js +0 -2
- package/dist/components/control-panel.config.d.ts +0 -2
- package/dist/components/control-panel.config.js +0 -2
- package/dist/components/control-panel.d.ts +0 -2
- package/dist/components/control-panel.js +0 -2
- package/dist/components/control-select.config.d.ts +0 -2
- package/dist/components/control-select.config.js +0 -2
- package/dist/components/control-select.d.ts +0 -2
- package/dist/components/control-select.js +0 -2
- package/dist/components/control-slider.config.d.ts +0 -2
- package/dist/components/control-slider.config.js +0 -2
- package/dist/components/control-slider.d.ts +0 -2
- package/dist/components/control-slider.js +0 -2
- package/dist/components/control-spring.config.d.ts +0 -2
- package/dist/components/control-spring.config.js +0 -2
- package/dist/components/control-spring.d.ts +0 -2
- package/dist/components/control-spring.js +0 -2
- package/dist/components/control-stepper.config.d.ts +0 -2
- package/dist/components/control-stepper.config.js +0 -2
- package/dist/components/control-stepper.d.ts +0 -2
- package/dist/components/control-stepper.js +0 -2
- package/dist/components/control-toggle.config.d.ts +0 -2
- package/dist/components/control-toggle.config.js +0 -2
- package/dist/components/control-toggle.d.ts +0 -2
- package/dist/components/control-toggle.js +0 -2
- package/dist/components/dist/_slots.js +0 -8
- package/dist/components/dist/accordion.config.d.ts +0 -431
- package/dist/components/dist/accordion.config.js +0 -81
- package/dist/components/dist/accordion.d.ts +0 -453
- package/dist/components/dist/accordion.js +0 -60
- package/dist/components/dist/alert.config.d.ts +0 -219
- package/dist/components/dist/alert.config.js +0 -54
- package/dist/components/dist/alert.d.ts +0 -230
- package/dist/components/dist/alert.js +0 -16
- package/dist/components/dist/anchor.config.d.ts +0 -250
- package/dist/components/dist/anchor.config.js +0 -22
- package/dist/components/dist/anchor.d.ts +0 -261
- package/dist/components/dist/anchor.js +0 -9
- package/dist/components/dist/article.d.ts +0 -11
- package/dist/components/dist/article.js +0 -9
- package/dist/components/dist/aside.d.ts +0 -11
- package/dist/components/dist/aside.js +0 -9
- package/dist/components/dist/avatar-group.config.d.ts +0 -315
- package/dist/components/dist/avatar-group.config.js +0 -33
- package/dist/components/dist/avatar-group.d.ts +0 -329
- package/dist/components/dist/avatar-group.js +0 -39
- package/dist/components/dist/avatar.config.d.ts +0 -197
- package/dist/components/dist/avatar.config.js +0 -49
- package/dist/components/dist/avatar.d.ts +0 -211
- package/dist/components/dist/avatar.js +0 -20
- package/dist/components/dist/badge.config.d.ts +0 -477
- package/dist/components/dist/badge.config.js +0 -99
- package/dist/components/dist/badge.d.ts +0 -489
- package/dist/components/dist/badge.js +0 -16
- package/dist/components/dist/box.d.ts +0 -14
- package/dist/components/dist/box.js +0 -9
- package/dist/components/dist/breadcrumb.config.d.ts +0 -390
- package/dist/components/dist/breadcrumb.config.js +0 -43
- package/dist/components/dist/breadcrumb.d.ts +0 -420
- package/dist/components/dist/breadcrumb.js +0 -119
- package/dist/components/dist/button.config.d.ts +0 -381
- package/dist/components/dist/button.config.js +0 -91
- package/dist/components/dist/button.d.ts +0 -403
- package/dist/components/dist/button.js +0 -35
- package/dist/components/dist/card.config.d.ts +0 -336
- package/dist/components/dist/card.config.js +0 -33
- package/dist/components/dist/card.d.ts +0 -352
- package/dist/components/dist/card.js +0 -27
- package/dist/components/dist/collapsible.config.d.ts +0 -45
- package/dist/components/dist/collapsible.config.js +0 -46
- package/dist/components/dist/collapsible.d.ts +0 -61
- package/dist/components/dist/collapsible.js +0 -38
- package/dist/components/dist/command.config.d.ts +0 -1613
- package/dist/components/dist/command.config.js +0 -170
- package/dist/components/dist/command.d.ts +0 -1722
- package/dist/components/dist/command.js +0 -341
- package/dist/components/dist/control-color.config.d.ts +0 -979
- package/dist/components/dist/control-color.config.js +0 -81
- package/dist/components/dist/control-color.d.ts +0 -995
- package/dist/components/dist/control-color.js +0 -64
- package/dist/components/dist/control-curve.config.d.ts +0 -18
- package/dist/components/dist/control-curve.config.js +0 -14
- package/dist/components/dist/control-curve.d.ts +0 -35
- package/dist/components/dist/control-curve.js +0 -81
- package/dist/components/dist/control-folder.config.d.ts +0 -177
- package/dist/components/dist/control-folder.config.js +0 -47
- package/dist/components/dist/control-folder.d.ts +0 -194
- package/dist/components/dist/control-folder.js +0 -41
- package/dist/components/dist/control-group.config.d.ts +0 -859
- package/dist/components/dist/control-group.config.js +0 -80
- package/dist/components/dist/control-group.d.ts +0 -881
- package/dist/components/dist/control-group.js +0 -89
- package/dist/components/dist/control-knob.config.d.ts +0 -792
- package/dist/components/dist/control-knob.config.js +0 -67
- package/dist/components/dist/control-knob.d.ts +0 -819
- package/dist/components/dist/control-knob.js +0 -148
- package/dist/components/dist/control-panel.config.d.ts +0 -402
- package/dist/components/dist/control-panel.config.js +0 -38
- package/dist/components/dist/control-panel.d.ts +0 -415
- package/dist/components/dist/control-panel.js +0 -22
- package/dist/components/dist/control-select.config.d.ts +0 -1176
- package/dist/components/dist/control-select.config.js +0 -102
- package/dist/components/dist/control-select.d.ts +0 -1200
- package/dist/components/dist/control-select.js +0 -63
- package/dist/components/dist/control-slider.config.d.ts +0 -104
- package/dist/components/dist/control-slider.config.js +0 -98
- package/dist/components/dist/control-slider.d.ts +0 -127
- package/dist/components/dist/control-slider.js +0 -87
- package/dist/components/dist/control-spring.config.d.ts +0 -417
- package/dist/components/dist/control-spring.config.js +0 -36
- package/dist/components/dist/control-spring.d.ts +0 -439
- package/dist/components/dist/control-spring.js +0 -136
- package/dist/components/dist/control-stepper.config.d.ts +0 -1084
- package/dist/components/dist/control-stepper.config.js +0 -108
- package/dist/components/dist/control-stepper.d.ts +0 -1104
- package/dist/components/dist/control-stepper.js +0 -109
- package/dist/components/dist/control-toggle.config.d.ts +0 -407
- package/dist/components/dist/control-toggle.config.js +0 -26
- package/dist/components/dist/control-toggle.d.ts +0 -420
- package/dist/components/dist/control-toggle.js +0 -36
- package/dist/components/dist/createSlot.d.ts +0 -8
- package/dist/components/dist/createSlot.js +0 -89
- package/dist/components/dist/dropdown.config.d.ts +0 -920
- package/dist/components/dist/dropdown.config.js +0 -107
- package/dist/components/dist/dropdown.d.ts +0 -950
- package/dist/components/dist/dropdown.js +0 -92
- package/dist/components/dist/empty-state.config.d.ts +0 -396
- package/dist/components/dist/empty-state.config.js +0 -53
- package/dist/components/dist/empty-state.d.ts +0 -416
- package/dist/components/dist/empty-state.js +0 -33
- package/dist/components/dist/footer.d.ts +0 -11
- package/dist/components/dist/footer.js +0 -9
- package/dist/components/dist/grid.d.ts +0 -41
- package/dist/components/dist/grid.js +0 -34
- package/dist/components/dist/header.d.ts +0 -11
- package/dist/components/dist/header.js +0 -9
- package/dist/components/dist/hstack.d.ts +0 -15
- package/dist/components/dist/hstack.js +0 -21
- package/dist/components/dist/image.d.ts +0 -19
- package/dist/components/dist/image.js +0 -9
- package/dist/components/dist/input.config.d.ts +0 -58
- package/dist/components/dist/input.config.js +0 -42
- package/dist/components/dist/input.d.ts +0 -67
- package/dist/components/dist/input.js +0 -14
- package/dist/components/dist/item.config.d.ts +0 -351
- package/dist/components/dist/item.config.js +0 -83
- package/dist/components/dist/item.d.ts +0 -374
- package/dist/components/dist/item.js +0 -51
- package/dist/components/dist/list.d.ts +0 -19
- package/dist/components/dist/list.js +0 -21
- package/dist/components/dist/main.d.ts +0 -11
- package/dist/components/dist/main.js +0 -9
- package/dist/components/dist/modal.config.d.ts +0 -397
- package/dist/components/dist/modal.config.js +0 -92
- package/dist/components/dist/modal.d.ts +0 -433
- package/dist/components/dist/modal.js +0 -125
- package/dist/components/dist/nav-header.config.d.ts +0 -158
- package/dist/components/dist/nav-header.config.js +0 -26
- package/dist/components/dist/nav-header.d.ts +0 -173
- package/dist/components/dist/nav-header.js +0 -23
- package/dist/components/dist/nav.d.ts +0 -11
- package/dist/components/dist/nav.js +0 -9
- package/dist/components/dist/preset-bar.config.d.ts +0 -192
- package/dist/components/dist/preset-bar.config.js +0 -39
- package/dist/components/dist/preset-bar.d.ts +0 -215
- package/dist/components/dist/preset-bar.js +0 -71
- package/dist/components/dist/presets/index.d.ts +0 -17674
- package/dist/components/dist/presets/index.js +0 -97
- package/dist/components/dist/pressable.d.ts +0 -11
- package/dist/components/dist/pressable.js +0 -9
- package/dist/components/dist/progress.config.d.ts +0 -296
- package/dist/components/dist/progress.config.js +0 -35
- package/dist/components/dist/progress.d.ts +0 -311
- package/dist/components/dist/progress.js +0 -43
- package/dist/components/dist/section.d.ts +0 -11
- package/dist/components/dist/section.js +0 -9
- package/dist/components/dist/select.config.d.ts +0 -31
- package/dist/components/dist/select.config.js +0 -25
- package/dist/components/dist/select.d.ts +0 -45
- package/dist/components/dist/select.js +0 -13
- package/dist/components/dist/sheet.config.d.ts +0 -245
- package/dist/components/dist/sheet.config.js +0 -99
- package/dist/components/dist/sheet.d.ts +0 -267
- package/dist/components/dist/sheet.js +0 -53
- package/dist/components/dist/sidebar.config.d.ts +0 -1651
- package/dist/components/dist/sidebar.config.js +0 -217
- package/dist/components/dist/sidebar.d.ts +0 -1825
- package/dist/components/dist/sidebar.js +0 -492
- package/dist/components/dist/skeleton.config.d.ts +0 -16
- package/dist/components/dist/skeleton.config.js +0 -10
- package/dist/components/dist/skeleton.d.ts +0 -27
- package/dist/components/dist/skeleton.js +0 -16
- package/dist/components/dist/slider.config.d.ts +0 -44
- package/dist/components/dist/slider.config.js +0 -40
- package/dist/components/dist/slider.d.ts +0 -70
- package/dist/components/dist/slider.js +0 -247
- package/dist/components/dist/spinner.config.d.ts +0 -34
- package/dist/components/dist/spinner.config.js +0 -24
- package/dist/components/dist/spinner.d.ts +0 -42
- package/dist/components/dist/spinner.js +0 -29
- package/dist/components/dist/svg.d.ts +0 -21
- package/dist/components/dist/svg.js +0 -17
- package/dist/components/dist/switch.config.d.ts +0 -353
- package/dist/components/dist/switch.config.js +0 -47
- package/dist/components/dist/switch.d.ts +0 -370
- package/dist/components/dist/switch.js +0 -32
- package/dist/components/dist/table.d.ts +0 -36
- package/dist/components/dist/table.js +0 -29
- package/dist/components/dist/tabs.config.d.ts +0 -611
- package/dist/components/dist/tabs.config.js +0 -56
- package/dist/components/dist/tabs.d.ts +0 -632
- package/dist/components/dist/tabs.js +0 -77
- package/dist/components/dist/text.config.d.ts +0 -306
- package/dist/components/dist/text.config.js +0 -149
- package/dist/components/dist/text.d.ts +0 -205
- package/dist/components/dist/text.js +0 -12
- package/dist/components/dist/textarea.config.d.ts +0 -352
- package/dist/components/dist/textarea.config.js +0 -57
- package/dist/components/dist/textarea.d.ts +0 -362
- package/dist/components/dist/textarea.js +0 -9
- package/dist/components/dist/toast.config.d.ts +0 -335
- package/dist/components/dist/toast.config.js +0 -145
- package/dist/components/dist/toast.d.ts +0 -426
- package/dist/components/dist/toast.js +0 -159
- package/dist/components/dist/tooltip.config.d.ts +0 -193
- package/dist/components/dist/tooltip.config.js +0 -40
- package/dist/components/dist/tooltip.d.ts +0 -206
- package/dist/components/dist/tooltip.js +0 -28
- package/dist/components/dist/vstack.d.ts +0 -15
- package/dist/components/dist/vstack.js +0 -20
- package/dist/components/dropdown.config.d.ts +0 -2
- package/dist/components/dropdown.config.js +0 -2
- package/dist/components/dropdown.d.ts +0 -2
- package/dist/components/dropdown.js +0 -2
- package/dist/components/empty-state.config.d.ts +0 -2
- package/dist/components/empty-state.config.js +0 -2
- package/dist/components/empty-state.d.ts +0 -2
- package/dist/components/empty-state.js +0 -2
- package/dist/components/footer.d.ts +0 -2
- package/dist/components/footer.js +0 -2
- package/dist/components/grid.d.ts +0 -2
- package/dist/components/grid.js +0 -2
- package/dist/components/header.d.ts +0 -2
- package/dist/components/header.js +0 -2
- package/dist/components/hstack.d.ts +0 -2
- package/dist/components/hstack.js +0 -2
- package/dist/components/image.d.ts +0 -2
- package/dist/components/image.js +0 -2
- package/dist/components/input.config.d.ts +0 -2
- package/dist/components/input.config.js +0 -2
- package/dist/components/input.d.ts +0 -2
- package/dist/components/input.js +0 -2
- package/dist/components/item.config.d.ts +0 -2
- package/dist/components/item.config.js +0 -2
- package/dist/components/item.d.ts +0 -2
- package/dist/components/item.js +0 -2
- package/dist/components/list.d.ts +0 -2
- package/dist/components/list.js +0 -2
- package/dist/components/main.d.ts +0 -2
- package/dist/components/main.js +0 -2
- package/dist/components/modal.config.d.ts +0 -2
- package/dist/components/modal.config.js +0 -2
- package/dist/components/modal.d.ts +0 -2
- package/dist/components/modal.js +0 -2
- package/dist/components/nav-header.config.d.ts +0 -2
- package/dist/components/nav-header.config.js +0 -2
- package/dist/components/nav-header.d.ts +0 -2
- package/dist/components/nav-header.js +0 -2
- package/dist/components/nav.d.ts +0 -2
- package/dist/components/nav.js +0 -2
- package/dist/components/preset-bar.config.d.ts +0 -2
- package/dist/components/preset-bar.config.js +0 -2
- package/dist/components/preset-bar.d.ts +0 -2
- package/dist/components/preset-bar.js +0 -2
- package/dist/components/presets/index.d.ts +0 -44
- package/dist/components/presets/index.js +0 -44
- package/dist/components/pressable.d.ts +0 -2
- package/dist/components/pressable.js +0 -2
- package/dist/components/progress.config.d.ts +0 -2
- package/dist/components/progress.config.js +0 -2
- package/dist/components/progress.d.ts +0 -2
- package/dist/components/progress.js +0 -2
- package/dist/components/section.d.ts +0 -2
- package/dist/components/section.js +0 -2
- package/dist/components/select.config.d.ts +0 -2
- package/dist/components/select.config.js +0 -2
- package/dist/components/select.d.ts +0 -2
- package/dist/components/select.js +0 -2
- package/dist/components/sheet.config.d.ts +0 -2
- package/dist/components/sheet.config.js +0 -2
- package/dist/components/sheet.d.ts +0 -2
- package/dist/components/sheet.js +0 -2
- package/dist/components/sidebar.config.d.ts +0 -2
- package/dist/components/sidebar.config.js +0 -2
- package/dist/components/sidebar.d.ts +0 -2
- package/dist/components/sidebar.js +0 -2
- package/dist/components/skeleton.config.d.ts +0 -2
- package/dist/components/skeleton.config.js +0 -2
- package/dist/components/skeleton.d.ts +0 -2
- package/dist/components/skeleton.js +0 -2
- package/dist/components/slider.config.d.ts +0 -2
- package/dist/components/slider.config.js +0 -2
- package/dist/components/slider.d.ts +0 -2
- package/dist/components/slider.js +0 -2
- package/dist/components/spinner.config.d.ts +0 -2
- package/dist/components/spinner.config.js +0 -2
- package/dist/components/spinner.d.ts +0 -2
- package/dist/components/spinner.js +0 -2
- package/dist/components/svg.d.ts +0 -2
- package/dist/components/svg.js +0 -2
- package/dist/components/switch.config.d.ts +0 -2
- package/dist/components/switch.config.js +0 -2
- package/dist/components/switch.d.ts +0 -2
- package/dist/components/switch.js +0 -2
- package/dist/components/table.d.ts +0 -2
- package/dist/components/table.js +0 -2
- package/dist/components/tabs.config.d.ts +0 -2
- package/dist/components/tabs.config.js +0 -2
- package/dist/components/tabs.d.ts +0 -2
- package/dist/components/tabs.js +0 -2
- package/dist/components/text.config.d.ts +0 -2
- package/dist/components/text.config.js +0 -2
- package/dist/components/text.d.ts +0 -2
- package/dist/components/text.js +0 -2
- package/dist/components/textarea.config.d.ts +0 -2
- package/dist/components/textarea.config.js +0 -2
- package/dist/components/textarea.d.ts +0 -2
- package/dist/components/textarea.js +0 -2
- package/dist/components/toast.config.d.ts +0 -2
- package/dist/components/toast.config.js +0 -2
- package/dist/components/toast.d.ts +0 -2
- package/dist/components/toast.js +0 -2
- package/dist/components/tooltip.config.d.ts +0 -2
- package/dist/components/tooltip.config.js +0 -2
- package/dist/components/tooltip.d.ts +0 -2
- package/dist/components/tooltip.js +0 -2
- package/dist/components/vstack.d.ts +0 -2
- package/dist/components/vstack.js +0 -2
- package/dist/config/dist/component-config.d.ts +0 -349
- package/dist/config/dist/component-refs.d.ts +0 -98
- package/dist/config/dist/component-resolution.js +0 -78
- package/dist/config/dist/consts/defaultColors.d.ts +0 -253
- package/dist/config/dist/consts/defaultColors.js +0 -252
- package/dist/config/dist/createComponent.d.ts +0 -1
- package/dist/config/dist/createComponent.js +0 -1
- package/dist/config/dist/createConfig.d.ts +0 -375
- package/dist/config/dist/createConfig.js +0 -625
- package/dist/config/dist/defineComponent.d.ts +0 -24
- package/dist/config/dist/defineComponent.js +0 -2
- package/dist/config/dist/defineStyleProp.d.ts +0 -93
- package/dist/config/dist/defineStyleProp.js +0 -60
- package/dist/config/dist/preset-merge.js +0 -192
- package/dist/config/dist/propertyAcceptedTypes.js +0 -220
- package/dist/config/dist/propertyGroups.d.ts +0 -1
- package/dist/config/dist/propertyGroups.js +0 -414
- package/dist/config/dist/resolveStyleProp.d.ts +0 -88
- package/dist/config/dist/resolveStyleProp.js +0 -235
- package/dist/config/dist/resolveTokenTypes.d.ts +0 -1
- package/dist/config/dist/resolveTokenTypes.js +0 -149
- package/dist/config/dist/runtime-registry.js +0 -9
- package/dist/config/dist/serialize.d.ts +0 -73
- package/dist/config/dist/serialize.js +0 -172
- package/dist/config/dist/style-prop-runtime.d.ts +0 -1
- package/dist/config-utils/dist/componentConfig.d.ts +0 -10
- package/dist/config-utils/dist/componentConfig.js +0 -11
- package/dist/config-utils.d.ts +0 -2
- package/dist/config-utils.js +0 -2
- package/dist/core/dist/color-opacity-map.js +0 -33
- package/dist/core/dist/compositeStyles.d.ts +0 -21
- package/dist/core/dist/compositeStyles.js +0 -51
- package/dist/core/dist/configurable-prop-helpers.d.ts +0 -31
- package/dist/core/dist/configurable-prop-helpers.js +0 -61
- package/dist/core/dist/createComponent.boundaries.js +0 -192
- package/dist/core/dist/createComponent.d.ts +0 -56
- package/dist/core/dist/createComponent.js +0 -67
- package/dist/core/dist/createComponentExample.d.ts +0 -41
- package/dist/core/dist/createComponentExample.js +0 -27
- package/dist/core/dist/createProvider.d.ts +0 -12
- package/dist/core/dist/createProvider.js +0 -24
- package/dist/core/dist/generated/stylePropsTwMap.d.ts +0 -1700
- package/dist/core/dist/generated/stylePropsTwMap.js +0 -570
- package/dist/core/dist/getComponentStyles.d.ts +0 -49
- package/dist/core/dist/getComponentStyles.js +0 -85
- package/dist/core/dist/getStyles.d.ts +0 -42
- package/dist/core/dist/getStyles.js +0 -300
- package/dist/core/dist/index.d.ts +0 -13
- package/dist/core/dist/index.js +0 -13
- package/dist/core/dist/modifier-mappings.d.ts +0 -12
- package/dist/core/dist/modifier-mappings.js +0 -61
- package/dist/core/dist/resolveMotionState.d.ts +0 -4
- package/dist/core/dist/resolveMotionState.js +0 -17
- package/dist/core/dist/resolveProps.boundaries.js +0 -131
- package/dist/core/dist/style-prop-data.d.ts +0 -32
- package/dist/core/dist/style-prop-data.js +0 -1257
- package/dist/core/dist/transformPreset.d.ts +0 -17
- package/dist/core/dist/transformPreset.js +0 -28
- package/dist/core/dist/withDefaultStyleProps.d.ts +0 -43
- package/dist/core/dist/withDefaultStyleProps.js +0 -18
- package/dist/core.d.ts +0 -14
- package/dist/core.js +0 -15
- package/dist/createSlot.d.ts +0 -2
- package/dist/createSlot.js +0 -2
- package/dist/fixtures.d.ts +0 -4
- package/dist/fixtures.js +0 -5
- package/dist/foundational-presets/dist/_virtual/_rolldown/runtime.js +0 -13
- package/dist/foundational-presets/dist/defaultPreset.d.ts +0 -1557
- package/dist/foundational-presets/dist/defaultPreset.js +0 -615
- package/dist/foundational-presets/dist/index.d.ts +0 -1
- package/dist/foundational-presets/dist/index.js +0 -1
- package/dist/foundational-presets/dist/motion.d.ts +0 -12
- package/dist/foundational-presets/dist/style-props.js +0 -1445
- package/dist/loader/dist/loader/create-component-data.js +0 -33
- package/dist/loader/dist/loader/create-component-lowering.js +0 -454
- package/dist/loader/dist/loader/data-attr-transform.js +0 -191
- package/dist/loader/dist/loader/dynamic-style-codegen.js +0 -97
- package/dist/loader/dist/loader/internal-meta.js +0 -22
- package/dist/loader/dist/loader/lower-new-api-primitive.js +0 -90
- package/dist/loader/dist/loader/motion-transform.js +0 -717
- package/dist/loader/dist/loader/style-transform.js +0 -670
- package/dist/loader/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -203
- package/dist/loader/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -25
- package/dist/loader/dist/node_modules/react/cjs/react.development.js +0 -762
- package/dist/loader/dist/node_modules/react/cjs/react.production.js +0 -351
- package/dist/loader/dist/node_modules/react/index.js +0 -10
- package/dist/loader/dist/node_modules/react/jsx-runtime.js +0 -10
- package/dist/loader/dist/packages/core/dist/color-opacity-map.js +0 -33
- package/dist/loader/dist/packages/core/dist/compositeStyles.js +0 -43
- package/dist/loader/dist/packages/core/dist/createComponent.js +0 -6
- package/dist/loader/dist/packages/core/dist/createProvider.js +0 -7
- package/dist/loader/dist/packages/core/dist/generated/stylePropsTwMap.js +0 -570
- package/dist/loader/dist/packages/core/dist/getComponentStyles.js +0 -2
- package/dist/loader/dist/packages/core/dist/getStyles.js +0 -60
- package/dist/loader/dist/packages/core/dist/index.js +0 -6
- package/dist/loader/dist/packages/core/dist/modifier-mappings.js +0 -61
- package/dist/loader/dist/packages/core/dist/style-prop-data.js +0 -1257
- package/dist/loader/dist/packages/core/dist/withDefaultStyleProps.js +0 -1
- package/dist/presets/dist/defaultPreset.d.ts +0 -6
- package/dist/presets/dist/defaultPreset.js +0 -51
- package/dist/presets/dist/index.d.ts +0 -1
- package/dist/presets/dist/index.js +0 -1
- package/dist/presets/motion.d.ts +0 -2
- package/dist/presets/motion.js +0 -2
- package/dist/presets.d.ts +0 -2
- package/dist/presets.js +0 -3
- package/dist/styles.d.ts +0 -4
- package/dist/styles.js +0 -5
- package/dist/transformPreset.d.ts +0 -2
- package/dist/transformPreset.js +0 -3
- /package/dist/{config/dist/component-resolution.d.ts → loader/dist/transform-runner.d.ts} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ModeDefinition, ModeOptionDefinition, TokenModifierKey } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region ../config/dist/Mode.d.ts
|
|
4
|
+
//#region src/Mode.d.ts
|
|
5
|
+
declare class ModeOption {
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly modifier: TokenModifierKey;
|
|
8
|
+
readonly label?: string;
|
|
9
|
+
readonly description?: string;
|
|
10
|
+
readonly css?: string;
|
|
11
|
+
readonly media?: string;
|
|
12
|
+
constructor(args: {
|
|
13
|
+
name: string;
|
|
14
|
+
definition: ModeOptionDefinition;
|
|
15
|
+
});
|
|
16
|
+
/**
|
|
17
|
+
* Human description for when this option surfaces as a style modifier
|
|
18
|
+
* (`_dark`, `_lg`). Distinguishes appearance/theme modes ("in dark mode")
|
|
19
|
+
* from responsive breakpoints ("at the lg breakpoint"), inferred from
|
|
20
|
+
* whether the option activates via `css` or `media`. Prefers the authored
|
|
21
|
+
* `label`, falling back to the option `name`.
|
|
22
|
+
*/
|
|
23
|
+
describeAsModifier(): string;
|
|
24
|
+
toJSON(): ModeOptionDefinition & {
|
|
25
|
+
name: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
declare class Mode {
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly options: ReadonlyMap<string, ModeOption>;
|
|
31
|
+
private _derived?;
|
|
32
|
+
constructor(args: {
|
|
33
|
+
name: string;
|
|
34
|
+
definition: ModeDefinition;
|
|
35
|
+
});
|
|
36
|
+
get derived(): {
|
|
37
|
+
readonly modifierNames: readonly TokenModifierKey[];
|
|
38
|
+
};
|
|
39
|
+
toJSON(): ModeDefinition;
|
|
40
|
+
} //#endregion
|
|
41
|
+
//#endregion
|
|
42
|
+
export { Mode, ModeOption };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { compact } from "./entity-utils.js";
|
|
2
|
+
//#region ../config/dist/Mode.js
|
|
3
|
+
/**
|
|
4
|
+
* `Mode` — a set of mutually-exclusive options each contributing a
|
|
5
|
+
* modifier (`colorMode: { light, dark }` → `_light`, `_dark`).
|
|
6
|
+
*
|
|
7
|
+
* Owns its options and exposes the derived modifier names produced by
|
|
8
|
+
* the option set.
|
|
9
|
+
*/
|
|
10
|
+
var ModeOption = class {
|
|
11
|
+
name;
|
|
12
|
+
modifier;
|
|
13
|
+
label;
|
|
14
|
+
description;
|
|
15
|
+
css;
|
|
16
|
+
media;
|
|
17
|
+
constructor(args) {
|
|
18
|
+
this.name = args.name;
|
|
19
|
+
this.modifier = args.definition.modifier ?? `_${args.name}`;
|
|
20
|
+
this.label = args.definition.label;
|
|
21
|
+
this.description = args.definition.description;
|
|
22
|
+
this.css = args.definition.css;
|
|
23
|
+
this.media = args.definition.media;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Human description for when this option surfaces as a style modifier
|
|
27
|
+
* (`_dark`, `_lg`). Distinguishes appearance/theme modes ("in dark mode")
|
|
28
|
+
* from responsive breakpoints ("at the lg breakpoint"), inferred from
|
|
29
|
+
* whether the option activates via `css` or `media`. Prefers the authored
|
|
30
|
+
* `label`, falling back to the option `name`.
|
|
31
|
+
*/
|
|
32
|
+
describeAsModifier() {
|
|
33
|
+
const display = this.label ?? this.name;
|
|
34
|
+
if (this.media) return `Conditionally apply styles at the ${display} breakpoint`;
|
|
35
|
+
return `Conditionally apply styles in ${display} mode`;
|
|
36
|
+
}
|
|
37
|
+
toJSON() {
|
|
38
|
+
return {
|
|
39
|
+
name: this.name,
|
|
40
|
+
modifier: this.modifier,
|
|
41
|
+
...compact({
|
|
42
|
+
label: this.label,
|
|
43
|
+
description: this.description,
|
|
44
|
+
css: this.css,
|
|
45
|
+
media: this.media
|
|
46
|
+
})
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
var Mode = class {
|
|
51
|
+
name;
|
|
52
|
+
options;
|
|
53
|
+
_derived;
|
|
54
|
+
constructor(args) {
|
|
55
|
+
this.name = args.name;
|
|
56
|
+
const options = /* @__PURE__ */ new Map();
|
|
57
|
+
for (const [optName, optDef] of Object.entries(args.definition)) options.set(optName, new ModeOption({
|
|
58
|
+
name: optName,
|
|
59
|
+
definition: optDef
|
|
60
|
+
}));
|
|
61
|
+
this.options = options;
|
|
62
|
+
}
|
|
63
|
+
get derived() {
|
|
64
|
+
if (!this._derived) {
|
|
65
|
+
const modifierNames = [];
|
|
66
|
+
for (const option of this.options.values()) modifierNames.push(option.modifier);
|
|
67
|
+
this._derived = { modifierNames };
|
|
68
|
+
}
|
|
69
|
+
return this._derived;
|
|
70
|
+
}
|
|
71
|
+
toJSON() {
|
|
72
|
+
const out = {};
|
|
73
|
+
for (const [name, option] of this.options) {
|
|
74
|
+
const { name: _omit, ...rest } = option.toJSON();
|
|
75
|
+
out[name] = rest;
|
|
76
|
+
}
|
|
77
|
+
return out;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
//#endregion
|
|
81
|
+
export { Mode, ModeOption };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { CompositeRef, ModeRef } from "./refs.js";
|
|
2
|
+
import { ModifierDefinition, TokenModifierKey } from "./types.js";
|
|
3
|
+
import { CssSelector } from "./brands.js";
|
|
4
|
+
|
|
5
|
+
//#region ../config/dist/Modifier.d.ts
|
|
6
|
+
//#region src/Modifier.d.ts
|
|
7
|
+
type CompositeSelectorLookup = (ref: string) => string | undefined;
|
|
8
|
+
type ModeSelectorLookup = (ref: string) => string | undefined;
|
|
9
|
+
declare class Modifier {
|
|
10
|
+
#private;
|
|
11
|
+
readonly name: TokenModifierKey;
|
|
12
|
+
readonly selector?: string | CompositeRef | ModeRef;
|
|
13
|
+
readonly media?: string;
|
|
14
|
+
readonly description?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Tailwind variant prefix a modifier name maps to. Strip the leading
|
|
17
|
+
* underscore, kebab-case the remainder, append `:`. `_focusVisible` →
|
|
18
|
+
* `focus-visible:`, `_hover` → `hover:`. Static so callers that only
|
|
19
|
+
* have the modifier name string (codegen `prepareModifierProps`,
|
|
20
|
+
* className builders) can derive it without spinning up a Modifier.
|
|
21
|
+
*
|
|
22
|
+
* Loader and runtime must agree byte-for-byte on this output — the
|
|
23
|
+
* single source of truth lives here.
|
|
24
|
+
*/
|
|
25
|
+
static tailwindPrefix(modifierName: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* Auto-generate a human-readable description from a modifier name —
|
|
28
|
+
* strip the leading `_`, split on camelCase boundaries and digit
|
|
29
|
+
* groups, lowercase. `_onElevation1` → `on elevation 1`. Static so
|
|
30
|
+
* callers with just the name string (and no `Modifier` instance) can
|
|
31
|
+
* reach the same wording; the instance getter
|
|
32
|
+
* `derived.description` uses it as the fallback when the authored
|
|
33
|
+
* `description` is missing.
|
|
34
|
+
*/
|
|
35
|
+
static autoDescription(modifierName: string): string;
|
|
36
|
+
constructor(args: {
|
|
37
|
+
name: TokenModifierKey;
|
|
38
|
+
definition: ModifierDefinition;
|
|
39
|
+
compositeLookup: CompositeSelectorLookup;
|
|
40
|
+
modeLookup: ModeSelectorLookup;
|
|
41
|
+
});
|
|
42
|
+
get derived(): {
|
|
43
|
+
readonly cssSelector: CssSelector;
|
|
44
|
+
readonly tailwindPrefix: string;
|
|
45
|
+
readonly description: string;
|
|
46
|
+
};
|
|
47
|
+
toJSON(): ModifierDefinition & {
|
|
48
|
+
name: TokenModifierKey;
|
|
49
|
+
};
|
|
50
|
+
} //#endregion
|
|
51
|
+
//#endregion
|
|
52
|
+
export { Modifier };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { cssSelector } from "./brands.js";
|
|
2
|
+
import { compact, kebabCase } from "./entity-utils.js";
|
|
3
|
+
import { isCompositeRef, isModeRef } from "./refs.js";
|
|
4
|
+
//#region ../config/dist/Modifier.js
|
|
5
|
+
/**
|
|
6
|
+
* `Modifier` — a state or structural variation (`_hover`, `_dark`).
|
|
7
|
+
*
|
|
8
|
+
* Stores the authored `selector` (string, `composite()` marker, or
|
|
9
|
+
* `mode()` marker) and resolves it to a CSS selector on demand via
|
|
10
|
+
* the parent Config's lookup callables.
|
|
11
|
+
*
|
|
12
|
+
* `derived.cssSelector` recomputes on access — the resolved value
|
|
13
|
+
* depends on the Config's composite/mode tables, which can grow after
|
|
14
|
+
* the Modifier is constructed.
|
|
15
|
+
*/
|
|
16
|
+
var Modifier = class Modifier {
|
|
17
|
+
name;
|
|
18
|
+
selector;
|
|
19
|
+
media;
|
|
20
|
+
description;
|
|
21
|
+
#compositeLookup;
|
|
22
|
+
#modeLookup;
|
|
23
|
+
#derived;
|
|
24
|
+
/**
|
|
25
|
+
* Tailwind variant prefix a modifier name maps to. Strip the leading
|
|
26
|
+
* underscore, kebab-case the remainder, append `:`. `_focusVisible` →
|
|
27
|
+
* `focus-visible:`, `_hover` → `hover:`. Static so callers that only
|
|
28
|
+
* have the modifier name string (codegen `prepareModifierProps`,
|
|
29
|
+
* className builders) can derive it without spinning up a Modifier.
|
|
30
|
+
*
|
|
31
|
+
* Loader and runtime must agree byte-for-byte on this output — the
|
|
32
|
+
* single source of truth lives here.
|
|
33
|
+
*/
|
|
34
|
+
static tailwindPrefix(modifierName) {
|
|
35
|
+
return `${kebabCase(modifierName.slice(1))}:`;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Auto-generate a human-readable description from a modifier name —
|
|
39
|
+
* strip the leading `_`, split on camelCase boundaries and digit
|
|
40
|
+
* groups, lowercase. `_onElevation1` → `on elevation 1`. Static so
|
|
41
|
+
* callers with just the name string (and no `Modifier` instance) can
|
|
42
|
+
* reach the same wording; the instance getter
|
|
43
|
+
* `derived.description` uses it as the fallback when the authored
|
|
44
|
+
* `description` is missing.
|
|
45
|
+
*/
|
|
46
|
+
static autoDescription(modifierName) {
|
|
47
|
+
return `Conditionally apply styles ${modifierName.replace(/^_/, "").replace(/([A-Z])/g, " $1").replace(/(\d+)/g, " $1").trim().toLowerCase()}`;
|
|
48
|
+
}
|
|
49
|
+
constructor(args) {
|
|
50
|
+
this.name = args.name;
|
|
51
|
+
this.selector = args.definition.selector;
|
|
52
|
+
this.media = args.definition.media;
|
|
53
|
+
this.description = args.definition.description;
|
|
54
|
+
this.#compositeLookup = args.compositeLookup;
|
|
55
|
+
this.#modeLookup = args.modeLookup;
|
|
56
|
+
}
|
|
57
|
+
get derived() {
|
|
58
|
+
if (!this.#derived) {
|
|
59
|
+
const selector = this.selector;
|
|
60
|
+
const name = this.name;
|
|
61
|
+
const authoredDescription = this.description;
|
|
62
|
+
const compositeLookup = this.#compositeLookup;
|
|
63
|
+
const modeLookup = this.#modeLookup;
|
|
64
|
+
this.#derived = {
|
|
65
|
+
get cssSelector() {
|
|
66
|
+
return cssSelector(resolveSelector(selector, compositeLookup, modeLookup));
|
|
67
|
+
},
|
|
68
|
+
get tailwindPrefix() {
|
|
69
|
+
return Modifier.tailwindPrefix(name);
|
|
70
|
+
},
|
|
71
|
+
get description() {
|
|
72
|
+
return authoredDescription ?? Modifier.autoDescription(name);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
return this.#derived;
|
|
77
|
+
}
|
|
78
|
+
toJSON() {
|
|
79
|
+
return {
|
|
80
|
+
name: this.name,
|
|
81
|
+
...compact({
|
|
82
|
+
selector: this.selector,
|
|
83
|
+
media: this.media,
|
|
84
|
+
description: this.description
|
|
85
|
+
})
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
function resolveSelector(selector, compositeLookup, modeLookup) {
|
|
90
|
+
if (selector === void 0) return "";
|
|
91
|
+
if (typeof selector === "string") return selector;
|
|
92
|
+
if (isCompositeRef(selector)) return compositeLookup(selector.ref) ?? "";
|
|
93
|
+
if (isModeRef(selector)) return modeLookup(selector.ref) ?? "";
|
|
94
|
+
return "";
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
export { Modifier };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { CssMotionDefinition, JsMotionDefinition, MotionKeyframes, MotionStateKeyframe, MotionTransition } from "./types.js";
|
|
2
|
+
import { CssClassName } from "./brands.js";
|
|
3
|
+
|
|
4
|
+
//#region ../config/dist/MotionDef.d.ts
|
|
5
|
+
//#region src/MotionDef.d.ts
|
|
6
|
+
declare class CssMotionDef {
|
|
7
|
+
#private;
|
|
8
|
+
readonly runtime: "css";
|
|
9
|
+
readonly name: string;
|
|
10
|
+
readonly keyframes: MotionKeyframes;
|
|
11
|
+
readonly transition?: MotionTransition;
|
|
12
|
+
readonly animationDuration?: string | number;
|
|
13
|
+
readonly animationTimingFunction?: string;
|
|
14
|
+
readonly animationDelay?: string | number;
|
|
15
|
+
readonly animationIterationCount?: string | number;
|
|
16
|
+
readonly animationDirection?: string;
|
|
17
|
+
readonly animationFillMode?: string;
|
|
18
|
+
readonly animationPlayState?: string;
|
|
19
|
+
readonly reducedMotion?: 'none';
|
|
20
|
+
constructor(args: {
|
|
21
|
+
name: string;
|
|
22
|
+
definition: CssMotionDefinition;
|
|
23
|
+
});
|
|
24
|
+
get derived(): {
|
|
25
|
+
readonly cssClassName: CssClassName;
|
|
26
|
+
};
|
|
27
|
+
toJSON(): CssMotionDefinition & {
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
declare class JsMotionDef {
|
|
32
|
+
readonly runtime: "js";
|
|
33
|
+
readonly name: string;
|
|
34
|
+
readonly initial?: MotionStateKeyframe;
|
|
35
|
+
readonly animate?: MotionStateKeyframe;
|
|
36
|
+
readonly exit?: MotionStateKeyframe;
|
|
37
|
+
readonly transition?: MotionTransition;
|
|
38
|
+
readonly whileHover?: MotionStateKeyframe;
|
|
39
|
+
readonly whileTap?: MotionStateKeyframe;
|
|
40
|
+
constructor(args: {
|
|
41
|
+
name: string;
|
|
42
|
+
definition: JsMotionDefinition;
|
|
43
|
+
});
|
|
44
|
+
toJSON(): JsMotionDefinition & {
|
|
45
|
+
name: string;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
type MotionDef = CssMotionDef | JsMotionDef; //#endregion
|
|
49
|
+
//#endregion
|
|
50
|
+
export { CssMotionDef, JsMotionDef, MotionDef };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { cssClassName } from "./brands.js";
|
|
2
|
+
import { compact, kebabCase } from "./entity-utils.js";
|
|
3
|
+
//#region ../config/dist/MotionDef.js
|
|
4
|
+
/**
|
|
5
|
+
* `MotionDef` — animation presets, discriminated by `runtime`.
|
|
6
|
+
*
|
|
7
|
+
* `CssMotionDef` carries the CSS keyframes + transition for the CSS
|
|
8
|
+
* runtime and exposes a derived CSS class name. `JsMotionDef` carries
|
|
9
|
+
* raw keyframe state for a JS animation library (motion-one / framer)
|
|
10
|
+
* and has no `.derived` — the consumer reads authored state directly.
|
|
11
|
+
*/
|
|
12
|
+
var CssMotionDef = class {
|
|
13
|
+
runtime = "css";
|
|
14
|
+
name;
|
|
15
|
+
keyframes;
|
|
16
|
+
transition;
|
|
17
|
+
animationDuration;
|
|
18
|
+
animationTimingFunction;
|
|
19
|
+
animationDelay;
|
|
20
|
+
animationIterationCount;
|
|
21
|
+
animationDirection;
|
|
22
|
+
animationFillMode;
|
|
23
|
+
animationPlayState;
|
|
24
|
+
reducedMotion;
|
|
25
|
+
#derived;
|
|
26
|
+
constructor(args) {
|
|
27
|
+
const d = args.definition;
|
|
28
|
+
this.name = args.name;
|
|
29
|
+
this.keyframes = d.keyframes;
|
|
30
|
+
this.transition = d.transition;
|
|
31
|
+
this.animationDuration = d.animationDuration;
|
|
32
|
+
this.animationTimingFunction = d.animationTimingFunction;
|
|
33
|
+
this.animationDelay = d.animationDelay;
|
|
34
|
+
this.animationIterationCount = d.animationIterationCount;
|
|
35
|
+
this.animationDirection = d.animationDirection;
|
|
36
|
+
this.animationFillMode = d.animationFillMode;
|
|
37
|
+
this.animationPlayState = d.animationPlayState;
|
|
38
|
+
this.reducedMotion = d.reducedMotion === "none" ? "none" : void 0;
|
|
39
|
+
}
|
|
40
|
+
get derived() {
|
|
41
|
+
if (!this.#derived) this.#derived = { cssClassName: cssClassName(`motion-${kebabCase(this.name)}`) };
|
|
42
|
+
return this.#derived;
|
|
43
|
+
}
|
|
44
|
+
toJSON() {
|
|
45
|
+
return {
|
|
46
|
+
name: this.name,
|
|
47
|
+
runtime: "css",
|
|
48
|
+
keyframes: this.keyframes,
|
|
49
|
+
...compact({
|
|
50
|
+
transition: this.transition,
|
|
51
|
+
animationDuration: this.animationDuration,
|
|
52
|
+
animationTimingFunction: this.animationTimingFunction,
|
|
53
|
+
animationDelay: this.animationDelay,
|
|
54
|
+
animationIterationCount: this.animationIterationCount,
|
|
55
|
+
animationDirection: this.animationDirection,
|
|
56
|
+
animationFillMode: this.animationFillMode,
|
|
57
|
+
animationPlayState: this.animationPlayState,
|
|
58
|
+
reducedMotion: this.reducedMotion
|
|
59
|
+
})
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
var JsMotionDef = class {
|
|
64
|
+
runtime = "js";
|
|
65
|
+
name;
|
|
66
|
+
initial;
|
|
67
|
+
animate;
|
|
68
|
+
exit;
|
|
69
|
+
transition;
|
|
70
|
+
whileHover;
|
|
71
|
+
whileTap;
|
|
72
|
+
constructor(args) {
|
|
73
|
+
this.name = args.name;
|
|
74
|
+
this.initial = args.definition.initial;
|
|
75
|
+
this.animate = args.definition.animate;
|
|
76
|
+
this.exit = args.definition.exit;
|
|
77
|
+
this.transition = args.definition.transition;
|
|
78
|
+
this.whileHover = args.definition.whileHover;
|
|
79
|
+
this.whileTap = args.definition.whileTap;
|
|
80
|
+
}
|
|
81
|
+
toJSON() {
|
|
82
|
+
return {
|
|
83
|
+
name: this.name,
|
|
84
|
+
runtime: "js",
|
|
85
|
+
...compact({
|
|
86
|
+
initial: this.initial,
|
|
87
|
+
animate: this.animate,
|
|
88
|
+
exit: this.exit,
|
|
89
|
+
transition: this.transition,
|
|
90
|
+
whileHover: this.whileHover,
|
|
91
|
+
whileTap: this.whileTap
|
|
92
|
+
})
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
//#endregion
|
|
97
|
+
export { CssMotionDef, JsMotionDef };
|