@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,197 @@
|
|
|
1
|
+
import { compact } from "./entity-utils.js";
|
|
2
|
+
import { isTokenGroupRef } from "./refs.js";
|
|
3
|
+
//#region ../config/dist/StyleProp.js
|
|
4
|
+
/**
|
|
5
|
+
* `StyleProp` — a JSX prop that emits CSS (`bg`, `padding`).
|
|
6
|
+
*
|
|
7
|
+
* Authored field set mirrors the `StylePropDefinition` shape. The
|
|
8
|
+
* `derived.tokens` projection walks the `values` array (which may
|
|
9
|
+
* carry `tokenGroup()` markers) and resolves it to a flat list of
|
|
10
|
+
* `Token` instances. That walk reads the parent Config's tokens map,
|
|
11
|
+
* which can grow after the StyleProp is constructed, so the derived
|
|
12
|
+
* tokens list recomputes on each access.
|
|
13
|
+
*/
|
|
14
|
+
var StyleProp = class StyleProp {
|
|
15
|
+
name;
|
|
16
|
+
cssProperty;
|
|
17
|
+
classPrefix;
|
|
18
|
+
values;
|
|
19
|
+
arbitrary;
|
|
20
|
+
/**
|
|
21
|
+
* When true, the prop emits its value negated (`calc(<value> * -1)`) — the
|
|
22
|
+
* single source of negativity, read by the emitter, the runtime injector,
|
|
23
|
+
* and the MCP/guidance/lint. See {@link StylePropDefinition.negative}.
|
|
24
|
+
*/
|
|
25
|
+
negative;
|
|
26
|
+
cssType;
|
|
27
|
+
metadata;
|
|
28
|
+
opacityPair;
|
|
29
|
+
/**
|
|
30
|
+
* Optional value→CSS adapter (`gridTemplateColumns`'s `4` →
|
|
31
|
+
* `repeat(4, minmax(0, 1fr))`). Applied to enumerated `values` when deriving
|
|
32
|
+
* the utility-class body, so the native emitter produces real CSS without a
|
|
33
|
+
* Tailwind built-in. Keyword strings (`'none'`) pass through unchanged.
|
|
34
|
+
*/
|
|
35
|
+
transform;
|
|
36
|
+
#tokenLookup;
|
|
37
|
+
/** Live getter for the owning Config's class-name prefix — mirrors the
|
|
38
|
+
* lazy `prefixGetter` pattern on Component / CompositeStyle / TokenGroup
|
|
39
|
+
* so the prop reflects `configure({ prefix })` regardless of chain
|
|
40
|
+
* ordering. Defaults to `'uds'` when built without an owning Config. */
|
|
41
|
+
#prefixGetter;
|
|
42
|
+
#derived;
|
|
43
|
+
/**
|
|
44
|
+
* Build the utility-class name a style prop emits for a given
|
|
45
|
+
* JSX-level value. Single source of truth shared by codegen
|
|
46
|
+
* (`@utility` emission), loader (build-time class derivation), and
|
|
47
|
+
* the runtime renderer — all three must agree byte-for-byte.
|
|
48
|
+
*
|
|
49
|
+
* Conventions (the `prefix` namespaces the whole utility body the same
|
|
50
|
+
* way component classes and CSS variables are namespaced; empty prefix
|
|
51
|
+
* yields the bare form):
|
|
52
|
+
* - `classPrefix === ''` → the value IS the class body (`display="block"`
|
|
53
|
+
* → `.yos-block`).
|
|
54
|
+
* - Boolean `true` → bare `classPrefix` body (`<Box border>` →
|
|
55
|
+
* `.yos-border`, never `.border-true`). Falsy → `undefined` (caller
|
|
56
|
+
* omits the class).
|
|
57
|
+
* - Bracketed arbitrary values (`'[#abc]'`) pass through verbatim.
|
|
58
|
+
* - Otherwise `${classPrefix}-${safeTokenName(value)}` where
|
|
59
|
+
* safeTokenName maps `.` → `_` and `/` → `-`.
|
|
60
|
+
*
|
|
61
|
+
* Static so callers without a StyleProp instance (loader's
|
|
62
|
+
* className builder, codegen's safelist scanner) can derive a class
|
|
63
|
+
* from just the prefix + value pair. Instance callers reach
|
|
64
|
+
* `styleProp.classNameFor(value)`, which supplies the owning Config's
|
|
65
|
+
* prefix automatically.
|
|
66
|
+
*/
|
|
67
|
+
static classNameFor(styleProp, value, prefix = "") {
|
|
68
|
+
if (value === void 0 || value === null || value === false) return void 0;
|
|
69
|
+
let body;
|
|
70
|
+
if (value === true) body = styleProp.classPrefix;
|
|
71
|
+
else {
|
|
72
|
+
const stringValue = String(value);
|
|
73
|
+
const safeValue = stringValue.startsWith("[") && stringValue.endsWith("]") ? stringValue : stringValue.replace(/\./g, "_").replace(/\//g, "-");
|
|
74
|
+
body = styleProp.classPrefix === "" ? safeValue : `${styleProp.classPrefix}-${safeValue}`;
|
|
75
|
+
}
|
|
76
|
+
if (!body) return void 0;
|
|
77
|
+
return prefix ? `${prefix}-${body}` : body;
|
|
78
|
+
}
|
|
79
|
+
/** Instance form of {@link StyleProp.classNameFor} — supplies the owning
|
|
80
|
+
* Config's class-name prefix. */
|
|
81
|
+
classNameFor(value) {
|
|
82
|
+
return StyleProp.classNameFor(this, value, this.#prefixGetter());
|
|
83
|
+
}
|
|
84
|
+
/** The `classPrefix` namespaced with the owning Config's prefix
|
|
85
|
+
* (`bg` → `yos-bg`). The wildcard `@utility` emitter needs the
|
|
86
|
+
* prefixed stem (`yos-bg-*`) since it has no concrete value to run
|
|
87
|
+
* through {@link classNameFor}. Empty when this prop has no class
|
|
88
|
+
* prefix (value-as-class props emit no wildcard utility). */
|
|
89
|
+
get prefixedClassPrefix() {
|
|
90
|
+
if (this.classPrefix === "") return "";
|
|
91
|
+
const prefix = this.#prefixGetter();
|
|
92
|
+
return prefix ? `${prefix}-${this.classPrefix}` : this.classPrefix;
|
|
93
|
+
}
|
|
94
|
+
constructor(args) {
|
|
95
|
+
this.#prefixGetter = args.prefixGetter ?? (() => "uds");
|
|
96
|
+
this.name = args.name;
|
|
97
|
+
this.cssProperty = args.definition.cssProperty;
|
|
98
|
+
this.classPrefix = args.definition.classPrefix;
|
|
99
|
+
this.values = args.definition.values ?? [];
|
|
100
|
+
const arbInput = args.definition.arbitrary;
|
|
101
|
+
if (arbInput === true) this.arbitrary = {};
|
|
102
|
+
else if (arbInput === false || arbInput === void 0) this.arbitrary = void 0;
|
|
103
|
+
else if (typeof arbInput === "string") this.arbitrary = { type: arbInput };
|
|
104
|
+
else this.arbitrary = arbInput;
|
|
105
|
+
this.negative = args.definition.negative === true;
|
|
106
|
+
this.cssType = args.definition.cssType;
|
|
107
|
+
this.metadata = args.definition.metadata ?? {};
|
|
108
|
+
this.opacityPair = args.definition.opacityPair;
|
|
109
|
+
this.transform = args.definition.transform;
|
|
110
|
+
this.#tokenLookup = args.tokenLookup;
|
|
111
|
+
}
|
|
112
|
+
get derived() {
|
|
113
|
+
if (!this.#derived) {
|
|
114
|
+
const values = this.values;
|
|
115
|
+
const lookup = this.#tokenLookup;
|
|
116
|
+
const keywords = /* @__PURE__ */ new Map();
|
|
117
|
+
for (const entry of values) if (typeof entry === "string") keywords.set(entry, this.transform ? this.transform(entry) : entry);
|
|
118
|
+
else if (typeof entry === "number") keywords.set(entry, this.transform ? this.transform(entry) : String(entry));
|
|
119
|
+
else if (typeof entry === "object" && entry !== null && "alias" in entry && "value" in entry) keywords.set(entry.alias, entry.value);
|
|
120
|
+
this.#derived = {
|
|
121
|
+
keywords,
|
|
122
|
+
get tokens() {
|
|
123
|
+
const out = [];
|
|
124
|
+
for (const entry of values) if (isTokenGroupRef(entry)) for (const token of lookup(entry.ref)) out.push(token);
|
|
125
|
+
return out;
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
return this.#derived;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Token-group namespaces this prop consumes. Used by
|
|
133
|
+
* `TokenGroup.derived.styleProperties` to answer the reverse question.
|
|
134
|
+
*/
|
|
135
|
+
consumedTokenGroups() {
|
|
136
|
+
const out = [];
|
|
137
|
+
for (const entry of this.values) if (isTokenGroupRef(entry)) out.push(entry.ref);
|
|
138
|
+
return out;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* The values this prop accepts, split by how each is written at the JSX site:
|
|
142
|
+
* - `tokens` — token names from the prop's token groups (`gap="2"`).
|
|
143
|
+
* - `keywords` — literal CSS keywords written verbatim (`display="flex"`).
|
|
144
|
+
* - `aliases` — short keys resolving to a CSS keyword (`flexDirection="col"`
|
|
145
|
+
* → `column`).
|
|
146
|
+
* A bracketed `[...]` arbitrary literal is governed by `this.arbitrary`, not
|
|
147
|
+
* enumerated here. Rendered by `uds_get_style_prop` / `uds_list_style_props`;
|
|
148
|
+
* `accepts()` validates against the same set.
|
|
149
|
+
*/
|
|
150
|
+
allowedValues() {
|
|
151
|
+
const keywords = [];
|
|
152
|
+
const aliases = [];
|
|
153
|
+
for (const [key, value] of this.derived.keywords) {
|
|
154
|
+
const alias = String(key);
|
|
155
|
+
if (typeof value === "string" && value !== alias) aliases.push({
|
|
156
|
+
alias,
|
|
157
|
+
value
|
|
158
|
+
});
|
|
159
|
+
else keywords.push(alias);
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
tokens: this.derived.tokens.map((t) => t.name),
|
|
163
|
+
keywords,
|
|
164
|
+
aliases
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Whether a JSX-site value is accepted: a token name, a literal keyword, an
|
|
169
|
+
* alias key, or a bracketed `[...]` literal when the prop enables `arbitrary`
|
|
170
|
+
* values. The validation primitive behind `uds_validate_props` — a non-token
|
|
171
|
+
* keyword prop (`display`) and an arbitrary-only prop (`fontSize`) both work,
|
|
172
|
+
* not just token-group props.
|
|
173
|
+
*/
|
|
174
|
+
accepts(value) {
|
|
175
|
+
if (value.startsWith("[") && value.endsWith("]")) return this.arbitrary !== void 0;
|
|
176
|
+
for (const key of this.derived.keywords.keys()) if (String(key) === value) return true;
|
|
177
|
+
for (const token of this.derived.tokens) if (token.name === value) return true;
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
toJSON() {
|
|
181
|
+
return {
|
|
182
|
+
name: this.name,
|
|
183
|
+
cssProperty: this.cssProperty,
|
|
184
|
+
classPrefix: this.classPrefix,
|
|
185
|
+
values: this.values,
|
|
186
|
+
...compact({
|
|
187
|
+
arbitrary: this.arbitrary,
|
|
188
|
+
negative: this.negative || void 0,
|
|
189
|
+
cssType: this.cssType,
|
|
190
|
+
metadata: Object.keys(this.metadata).length > 0 ? this.metadata : void 0,
|
|
191
|
+
opacityPair: this.opacityPair
|
|
192
|
+
})
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
//#endregion
|
|
197
|
+
export { StyleProp };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { CssValueTypeName, CssVarRef } from "./types/css-values.js";
|
|
2
|
+
import { TokenDefinition, TokenModifierKey, TokenModifierValue, TokenType, TokenValue } from "./types.js";
|
|
3
|
+
import { CssClassName, CssVar } from "./brands.js";
|
|
4
|
+
|
|
5
|
+
//#region ../config/dist/Token.d.ts
|
|
6
|
+
//#region src/Token.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Resolved literal value — `token()` refs chased; modifier nesting
|
|
9
|
+
* flattened to the base value.
|
|
10
|
+
*/
|
|
11
|
+
type ResolvedTokenLiteral = string | number | boolean | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Looks up another token by `namespace/name`. Injected by the parent
|
|
14
|
+
* Config so `Token.derived.value` can chase `token()` aliases without
|
|
15
|
+
* holding a back-ref to the whole config object.
|
|
16
|
+
*/
|
|
17
|
+
type TokenSiblingLookup = (qualifiedName: string) => Token | undefined;
|
|
18
|
+
declare class Token {
|
|
19
|
+
#private;
|
|
20
|
+
readonly name: string;
|
|
21
|
+
readonly namespace: string;
|
|
22
|
+
readonly value: TokenValue;
|
|
23
|
+
readonly type?: TokenType;
|
|
24
|
+
readonly modifiers?: Record<TokenModifierKey, TokenModifierValue>;
|
|
25
|
+
constructor(args: {
|
|
26
|
+
name: string;
|
|
27
|
+
namespace: string;
|
|
28
|
+
prefixGetter: () => string;
|
|
29
|
+
definition: TokenDefinition;
|
|
30
|
+
lookup: TokenSiblingLookup;
|
|
31
|
+
groupTypeGetter: () => TokenType | undefined;
|
|
32
|
+
});
|
|
33
|
+
/**
|
|
34
|
+
* Sniff a raw value to its best-guess CSS value type. Static so
|
|
35
|
+
* picker UIs (authoring a new token with no `Token` instance yet)
|
|
36
|
+
* can reach the same heuristic the class uses internally. Returns
|
|
37
|
+
* `undefined` when no confident match is possible (e.g. `var(...)`
|
|
38
|
+
* references).
|
|
39
|
+
*/
|
|
40
|
+
static sniffValueType(value: string): TokenType | undefined;
|
|
41
|
+
get derived(): {
|
|
42
|
+
readonly namespace: string;
|
|
43
|
+
readonly qualifiedName: string;
|
|
44
|
+
readonly cssSafeName: CssClassName;
|
|
45
|
+
readonly cssVar: CssVar;
|
|
46
|
+
readonly cssVarRef: CssVarRef;
|
|
47
|
+
readonly value: ResolvedTokenLiteral;
|
|
48
|
+
readonly cssValueType: CssValueTypeName | undefined;
|
|
49
|
+
modifierValues(): Iterable<[TokenModifierKey, ResolvedTokenLiteral]>;
|
|
50
|
+
};
|
|
51
|
+
toJSON(): TokenDefinition & {
|
|
52
|
+
name: string;
|
|
53
|
+
};
|
|
54
|
+
} //#endregion
|
|
55
|
+
//#endregion
|
|
56
|
+
export { ResolvedTokenLiteral, Token, TokenSiblingLookup };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { buildCssVar, kebabCase, toCssSafeName } from "./entity-utils.js";
|
|
2
|
+
import { isTokenRef } from "./refs.js";
|
|
3
|
+
import { resolveTokenValueType, sniffTokenType } from "./tokenValueType.js";
|
|
4
|
+
//#region ../config/dist/Token.js
|
|
5
|
+
var Token = class {
|
|
6
|
+
name;
|
|
7
|
+
namespace;
|
|
8
|
+
value;
|
|
9
|
+
type;
|
|
10
|
+
modifiers;
|
|
11
|
+
#prefixGetter;
|
|
12
|
+
#lookup;
|
|
13
|
+
#groupTypeGetter;
|
|
14
|
+
#derived;
|
|
15
|
+
constructor(args) {
|
|
16
|
+
this.name = args.name;
|
|
17
|
+
this.namespace = args.namespace;
|
|
18
|
+
this.value = args.definition.value;
|
|
19
|
+
this.type = args.definition.type;
|
|
20
|
+
this.modifiers = collectModifiers(args.definition);
|
|
21
|
+
this.#prefixGetter = args.prefixGetter;
|
|
22
|
+
this.#lookup = args.lookup;
|
|
23
|
+
this.#groupTypeGetter = args.groupTypeGetter;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Sniff a raw value to its best-guess CSS value type. Static so
|
|
27
|
+
* picker UIs (authoring a new token with no `Token` instance yet)
|
|
28
|
+
* can reach the same heuristic the class uses internally. Returns
|
|
29
|
+
* `undefined` when no confident match is possible (e.g. `var(...)`
|
|
30
|
+
* references).
|
|
31
|
+
*/
|
|
32
|
+
static sniffValueType(value) {
|
|
33
|
+
return sniffTokenType(value);
|
|
34
|
+
}
|
|
35
|
+
get derived() {
|
|
36
|
+
if (!this.#derived) {
|
|
37
|
+
const name = this.name;
|
|
38
|
+
const namespace = this.namespace;
|
|
39
|
+
const tokenValue = this.value;
|
|
40
|
+
const tokenType = this.type;
|
|
41
|
+
const modifiers = this.modifiers;
|
|
42
|
+
const prefixGetter = this.#prefixGetter;
|
|
43
|
+
const lookup = this.#lookup;
|
|
44
|
+
const groupTypeGetter = this.#groupTypeGetter;
|
|
45
|
+
this.#derived = {
|
|
46
|
+
namespace,
|
|
47
|
+
qualifiedName: `${kebabCase(namespace)}/${kebabCase(name)}`,
|
|
48
|
+
cssSafeName: toCssSafeName(name),
|
|
49
|
+
get cssVar() {
|
|
50
|
+
return buildCssVar(prefixGetter(), namespace, name);
|
|
51
|
+
},
|
|
52
|
+
get cssVarRef() {
|
|
53
|
+
return `var(${buildCssVar(prefixGetter(), namespace, name)})`;
|
|
54
|
+
},
|
|
55
|
+
get value() {
|
|
56
|
+
return chaseLiteral(tokenValue, lookup);
|
|
57
|
+
},
|
|
58
|
+
get cssValueType() {
|
|
59
|
+
const literal = chaseLiteral(tokenValue, lookup);
|
|
60
|
+
return resolveTokenValueType({
|
|
61
|
+
value: typeof literal === "string" ? literal : String(tokenValue),
|
|
62
|
+
type: tokenType
|
|
63
|
+
}, groupTypeGetter());
|
|
64
|
+
},
|
|
65
|
+
*modifierValues() {
|
|
66
|
+
if (!modifiers) return;
|
|
67
|
+
for (const [key, value] of Object.entries(modifiers)) yield [key, resolveModifierLiteral(value, lookup)];
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
return this.#derived;
|
|
72
|
+
}
|
|
73
|
+
toJSON() {
|
|
74
|
+
const out = {
|
|
75
|
+
name: this.name,
|
|
76
|
+
value: this.value
|
|
77
|
+
};
|
|
78
|
+
if (this.type !== void 0) out.type = this.type;
|
|
79
|
+
if (this.modifiers) for (const [key, value] of Object.entries(this.modifiers)) out[key] = value;
|
|
80
|
+
return out;
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Scan a `TokenDefinition` for flat `_${string}` modifier keys and pack
|
|
85
|
+
* them into a single `modifiers` map. Returns `undefined` when no
|
|
86
|
+
* modifier keys are present so the class field can stay optional.
|
|
87
|
+
*/
|
|
88
|
+
function collectModifiers(definition) {
|
|
89
|
+
const modifiers = {};
|
|
90
|
+
let count = 0;
|
|
91
|
+
for (const [key, value] of Object.entries(definition)) if (key.startsWith("_")) {
|
|
92
|
+
modifiers[key] = value;
|
|
93
|
+
count++;
|
|
94
|
+
}
|
|
95
|
+
return count > 0 ? modifiers : void 0;
|
|
96
|
+
}
|
|
97
|
+
function chaseLiteral(value, lookup, seen = /* @__PURE__ */ new Set()) {
|
|
98
|
+
if (isTokenRef(value)) {
|
|
99
|
+
if (seen.has(value.ref)) return void 0;
|
|
100
|
+
seen.add(value.ref);
|
|
101
|
+
const next = lookup(value.ref);
|
|
102
|
+
if (!next) return void 0;
|
|
103
|
+
return chaseLiteral(next.value, lookup, seen);
|
|
104
|
+
}
|
|
105
|
+
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") return value;
|
|
106
|
+
}
|
|
107
|
+
function resolveModifierLiteral(value, lookup) {
|
|
108
|
+
if (typeof value === "object" && value !== null && "value" in value) return chaseLiteral(value.value, lookup);
|
|
109
|
+
return chaseLiteral(value, lookup);
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
export { Token };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SerializedTokenGroup, TokenGroupDefinition } from "./types.js";
|
|
2
|
+
import { Token, TokenSiblingLookup } from "./Token.js";
|
|
3
|
+
|
|
4
|
+
//#region ../config/dist/TokenGroup.d.ts
|
|
5
|
+
//#region src/TokenGroup.d.ts
|
|
6
|
+
type StylePropertiesLookup = (namespace: string) => readonly string[];
|
|
7
|
+
declare class TokenGroup {
|
|
8
|
+
#private;
|
|
9
|
+
readonly namespace: string;
|
|
10
|
+
readonly label?: string;
|
|
11
|
+
readonly description?: string;
|
|
12
|
+
readonly tokens: ReadonlyMap<string, Token>;
|
|
13
|
+
constructor(args: {
|
|
14
|
+
namespace: string;
|
|
15
|
+
prefixGetter: () => string;
|
|
16
|
+
definition: TokenGroupDefinition;
|
|
17
|
+
tokenLookup: TokenSiblingLookup;
|
|
18
|
+
stylePropertiesLookup: StylePropertiesLookup;
|
|
19
|
+
});
|
|
20
|
+
get derived(): {
|
|
21
|
+
readonly cssPrefix: string;
|
|
22
|
+
readonly styleProperties: readonly string[];
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Wire shape: `{ tokens, label?, description? }`. Token entries live
|
|
26
|
+
* nested under `tokens` so meta keys can never collide with token
|
|
27
|
+
* names — a token named `'label'` is fine. The parent record's key
|
|
28
|
+
* carries the namespace, so it's omitted here.
|
|
29
|
+
*/
|
|
30
|
+
toJSON(): SerializedTokenGroup;
|
|
31
|
+
} //#endregion
|
|
32
|
+
//#endregion
|
|
33
|
+
export { TokenGroup };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { kebabCase } from "./entity-utils.js";
|
|
2
|
+
import { Token } from "./Token.js";
|
|
3
|
+
//#region ../config/dist/TokenGroup.js
|
|
4
|
+
/**
|
|
5
|
+
* `TokenGroup` — a namespace of tokens (`color`, `spacing`).
|
|
6
|
+
*
|
|
7
|
+
* Owns its tokens and exposes `.derived.styleProperties` — the
|
|
8
|
+
* style-prop names whose `values` array references this group. The
|
|
9
|
+
* `styleProperties` computation needs sibling style-props, supplied by
|
|
10
|
+
* the parent `Config` via the `styleProperties` callable.
|
|
11
|
+
*/
|
|
12
|
+
var TokenGroup = class {
|
|
13
|
+
namespace;
|
|
14
|
+
label;
|
|
15
|
+
description;
|
|
16
|
+
tokens;
|
|
17
|
+
#stylePropertiesLookup;
|
|
18
|
+
#derived;
|
|
19
|
+
constructor(args) {
|
|
20
|
+
this.namespace = args.namespace;
|
|
21
|
+
const groupTypeGetter = () => void 0;
|
|
22
|
+
if (args.definition.label !== void 0) this.label = args.definition.label;
|
|
23
|
+
if (args.definition.description !== void 0) this.description = args.definition.description;
|
|
24
|
+
const tokens = /* @__PURE__ */ new Map();
|
|
25
|
+
for (const [name, tokenDef] of Object.entries(args.definition.tokens)) tokens.set(name, new Token({
|
|
26
|
+
name,
|
|
27
|
+
namespace: args.namespace,
|
|
28
|
+
prefixGetter: args.prefixGetter,
|
|
29
|
+
definition: tokenDef,
|
|
30
|
+
lookup: args.tokenLookup,
|
|
31
|
+
groupTypeGetter
|
|
32
|
+
}));
|
|
33
|
+
this.tokens = tokens;
|
|
34
|
+
this.#stylePropertiesLookup = args.stylePropertiesLookup;
|
|
35
|
+
}
|
|
36
|
+
get derived() {
|
|
37
|
+
if (!this.#derived) {
|
|
38
|
+
const namespace = this.namespace;
|
|
39
|
+
const lookup = this.#stylePropertiesLookup;
|
|
40
|
+
this.#derived = {
|
|
41
|
+
cssPrefix: kebabCase(namespace),
|
|
42
|
+
get styleProperties() {
|
|
43
|
+
return lookup(namespace);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
return this.#derived;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Wire shape: `{ tokens, label?, description? }`. Token entries live
|
|
51
|
+
* nested under `tokens` so meta keys can never collide with token
|
|
52
|
+
* names — a token named `'label'` is fine. The parent record's key
|
|
53
|
+
* carries the namespace, so it's omitted here.
|
|
54
|
+
*/
|
|
55
|
+
toJSON() {
|
|
56
|
+
const tokens = {};
|
|
57
|
+
for (const [name, token] of this.tokens) {
|
|
58
|
+
const { name: _omit, ...rest } = token.toJSON();
|
|
59
|
+
tokens[name] = rest;
|
|
60
|
+
}
|
|
61
|
+
const out = { tokens };
|
|
62
|
+
if (this.label !== void 0) out.label = this.label;
|
|
63
|
+
if (this.description !== void 0) out.description = this.description;
|
|
64
|
+
return out;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
//#endregion
|
|
68
|
+
export { TokenGroup };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region ../config/dist/asset-kind.d.ts
|
|
2
|
+
//#region src/asset-kind.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* `assetKind` — what class of asset a group holds (icons, fonts, …).
|
|
5
|
+
*
|
|
6
|
+
* Every asset group picks one of these labels when it's defined (via
|
|
7
|
+
* `.config({ type })`), and we store it on the group as `assetKind`.
|
|
8
|
+
*
|
|
9
|
+
* Why `assetKind` and not just `kind`? Asset groups already carry a
|
|
10
|
+
* separate tag, `__kind: 'assetGroup'`, that marks them as asset-group
|
|
11
|
+
* refs. That tag is the same for every group regardless of class, and
|
|
12
|
+
* the check that relies on it (`isAssetGroupRef()`) must stay that way.
|
|
13
|
+
* If we also called this field `kind`, the two would collide and blur
|
|
14
|
+
* the distinction between "is this an asset group?" and "what kind of
|
|
15
|
+
* asset is in it?". So this field gets its own name: `__kind` answers
|
|
16
|
+
* the first question, `assetKind` answers the second.
|
|
17
|
+
*
|
|
18
|
+
* Behavior differences between classes live in one table below and are
|
|
19
|
+
* read through small helpers like `isPlaceable()`. That keeps callers
|
|
20
|
+
* from branching on the class directly (no "is this a font?" checks
|
|
21
|
+
* scattered around), and adding a new class means adding one row here
|
|
22
|
+
* plus its member contract — not new branches everywhere.
|
|
23
|
+
*/
|
|
24
|
+
type AssetKind = 'icon' | 'font';
|
|
25
|
+
/**
|
|
26
|
+
* Per-class capability record. `placeable` — whether members of this
|
|
27
|
+
* class become canvas nodes (icons do; fonts are consumed via
|
|
28
|
+
* `font-family` token refs and never placed). Both hard guards read
|
|
29
|
+
* this through `isPlaceable()`: the `makeRegistry` asset loop and the
|
|
30
|
+
* `.accepts()` config-load throw.
|
|
31
|
+
*
|
|
32
|
+
* Classes we expect to add later (each is one new row here plus its
|
|
33
|
+
* member contract — and likely `placeable: true`):
|
|
34
|
+
* - images — bitmap assets (PNG/JPEG/WebP) dropped onto the canvas
|
|
35
|
+
* - illustrations — vector artwork (SVG) placed as canvas nodes
|
|
36
|
+
* - logos — brand marks, a constrained flavor of image/vector asset
|
|
37
|
+
* - videos — playable media placed as canvas nodes
|
|
38
|
+
*/
|
|
39
|
+
declare const ASSET_CLASS_CAPABILITIES: {
|
|
40
|
+
readonly icon: {
|
|
41
|
+
readonly placeable: true;
|
|
42
|
+
};
|
|
43
|
+
readonly font: {
|
|
44
|
+
readonly placeable: false;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Whether a group's members can fill slots and become canvas nodes.
|
|
49
|
+
* Accepts anything carrying the stamped `assetKind` — both the
|
|
50
|
+
* authored `AssetGroupDefinition` and the registered `AssetGroup`.
|
|
51
|
+
*/
|
|
52
|
+
declare function isPlaceable(group: {
|
|
53
|
+
readonly assetKind: AssetKind;
|
|
54
|
+
}): boolean; //#endregion
|
|
55
|
+
//#endregion
|
|
56
|
+
export { ASSET_CLASS_CAPABILITIES, AssetKind, isPlaceable };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region ../config/dist/asset-kind.js
|
|
2
|
+
/**
|
|
3
|
+
* Per-class capability record. `placeable` — whether members of this
|
|
4
|
+
* class become canvas nodes (icons do; fonts are consumed via
|
|
5
|
+
* `font-family` token refs and never placed). Both hard guards read
|
|
6
|
+
* this through `isPlaceable()`: the `makeRegistry` asset loop and the
|
|
7
|
+
* `.accepts()` config-load throw.
|
|
8
|
+
*
|
|
9
|
+
* Classes we expect to add later (each is one new row here plus its
|
|
10
|
+
* member contract — and likely `placeable: true`):
|
|
11
|
+
* - images — bitmap assets (PNG/JPEG/WebP) dropped onto the canvas
|
|
12
|
+
* - illustrations — vector artwork (SVG) placed as canvas nodes
|
|
13
|
+
* - logos — brand marks, a constrained flavor of image/vector asset
|
|
14
|
+
* - videos — playable media placed as canvas nodes
|
|
15
|
+
*/
|
|
16
|
+
const ASSET_CLASS_CAPABILITIES = {
|
|
17
|
+
icon: { placeable: true },
|
|
18
|
+
font: { placeable: false }
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Whether a group's members can fill slots and become canvas nodes.
|
|
22
|
+
* Accepts anything carrying the stamped `assetKind` — both the
|
|
23
|
+
* authored `AssetGroupDefinition` and the registered `AssetGroup`.
|
|
24
|
+
*/
|
|
25
|
+
function isPlaceable(group) {
|
|
26
|
+
return ASSET_CLASS_CAPABILITIES[group.assetKind].placeable;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { ASSET_CLASS_CAPABILITIES, isPlaceable };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//#region ../config/dist/brands.d.ts
|
|
2
|
+
//#region src/brands.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Branded CSS string types.
|
|
5
|
+
*
|
|
6
|
+
* Every member that emits CSS — variable refs, selectors, class names,
|
|
7
|
+
* declarations — returns a `Css<Kind>` instead of a plain `string`. The
|
|
8
|
+
* brand erases at runtime; the compiler uses it to catch raw user strings
|
|
9
|
+
* being passed into a CSS-emission slot.
|
|
10
|
+
*
|
|
11
|
+
* Brands are a one-way door: once they flow through the codegen surface
|
|
12
|
+
* we lean on them at every emission site, so we lock the shape in here.
|
|
13
|
+
*/
|
|
14
|
+
type Css<Kind extends string> = string & {
|
|
15
|
+
readonly __cssBrand: Kind;
|
|
16
|
+
};
|
|
17
|
+
type CssVar = Css<'var'>;
|
|
18
|
+
type CssSelector = Css<'selector'>;
|
|
19
|
+
type CssClassName = Css<'className'>;
|
|
20
|
+
type CssDeclaration = Css<'declaration'>;
|
|
21
|
+
/**
|
|
22
|
+
* Stamp a plain string with a CSS brand. The brand is a phantom — no
|
|
23
|
+
* runtime work. All emission helpers funnel through these so the cast
|
|
24
|
+
* lives in one place.
|
|
25
|
+
*/
|
|
26
|
+
declare function cssVar(value: string): CssVar;
|
|
27
|
+
declare function cssSelector(value: string): CssSelector;
|
|
28
|
+
declare function cssClassName(value: string): CssClassName;
|
|
29
|
+
declare function cssDeclaration(value: string): CssDeclaration; //#endregion
|
|
30
|
+
//#endregion
|
|
31
|
+
export { Css, CssClassName, CssDeclaration, CssSelector, CssVar, cssClassName, cssDeclaration, cssSelector, cssVar };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region ../config/dist/brands.js
|
|
2
|
+
/**
|
|
3
|
+
* Stamp a plain string with a CSS brand. The brand is a phantom — no
|
|
4
|
+
* runtime work. All emission helpers funnel through these so the cast
|
|
5
|
+
* lives in one place.
|
|
6
|
+
*/
|
|
7
|
+
function cssVar(value) {
|
|
8
|
+
return value;
|
|
9
|
+
}
|
|
10
|
+
function cssSelector(value) {
|
|
11
|
+
return value;
|
|
12
|
+
}
|
|
13
|
+
function cssClassName(value) {
|
|
14
|
+
return value;
|
|
15
|
+
}
|
|
16
|
+
function cssDeclaration(value) {
|
|
17
|
+
return value;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { cssClassName, cssDeclaration, cssSelector, cssVar };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//#region ../config/dist/captureCallerPath.d.ts
|
|
2
|
+
//#region src/captureCallerPath.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Inspect the current call stack and return the first frame whose file
|
|
5
|
+
* path sits outside the `@uds/config` package itself — i.e. the
|
|
6
|
+
* user's authoring site.
|
|
7
|
+
*
|
|
8
|
+
* Stashing the path at definition time gives every config object its
|
|
9
|
+
* origin for free. Consumers (codegen, CSS scanner, AI prompt builder)
|
|
10
|
+
* read `__sourcePath` off the config map directly instead of walking
|
|
11
|
+
* the AST to re-derive where each registration was authored.
|
|
12
|
+
*
|
|
13
|
+
* The skip predicate matches `/packages/config/` (workspace
|
|
14
|
+
* layout) and `/@uds/config/` (consumer node_modules layout) so
|
|
15
|
+
* internal frames never leak through. Returns `undefined` when no
|
|
16
|
+
* eligible frame is found.
|
|
17
|
+
*
|
|
18
|
+
* Stack format coverage:
|
|
19
|
+
* - Bun / V8 in-process: ` at fn (/abs/path.ts:L:C)` or bare
|
|
20
|
+
* ` at /abs/path.ts:L:C` (no parens).
|
|
21
|
+
* - Node native stacks: `file:///abs/path.ts:L:C` URL form.
|
|
22
|
+
* - Source-mapped frames downleveled through tsdown: `.js` files.
|
|
23
|
+
*
|
|
24
|
+
* The regex picks the first `(...).ext:line:col` token; the
|
|
25
|
+
* surrounding `at fn` / paren wrapping is ignored.
|
|
26
|
+
*/
|
|
27
|
+
declare function captureCallerPath(): string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Non-enumerable `__sourcePath` slot key. Centralized so codegen
|
|
30
|
+
* consumers and authoring helpers agree on one spelling.
|
|
31
|
+
*/
|
|
32
|
+
declare const SOURCE_PATH_KEY: "__sourcePath";
|
|
33
|
+
/**
|
|
34
|
+
* Attach `__sourcePath` to a config object non-enumerably.
|
|
35
|
+
* `JSON.stringify` ignores non-enumerable properties so the wire format
|
|
36
|
+
* stays clean.
|
|
37
|
+
*
|
|
38
|
+
* No-op when `path` is `undefined` — keeps the config shape stable
|
|
39
|
+
* when the stack-walk yields no eligible frame.
|
|
40
|
+
*/
|
|
41
|
+
declare function attachSourcePath<T extends object>(target: T, path: string | undefined): T;
|
|
42
|
+
/**
|
|
43
|
+
* Read `__sourcePath` off a config object. Returns `undefined` when
|
|
44
|
+
* the slot was never set (e.g. configs produced outside the `define*`
|
|
45
|
+
* helpers).
|
|
46
|
+
*/
|
|
47
|
+
declare function readSourcePath(target: unknown): string | undefined; //#endregion
|
|
48
|
+
//#endregion
|
|
49
|
+
export { SOURCE_PATH_KEY, attachSourcePath, captureCallerPath, readSourcePath };
|