@yahoo/uds-v5-wip 0.0.1
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/components/accordion.config.d.ts +2 -0
- package/dist/components/accordion.config.js +2 -0
- package/dist/components/accordion.d.ts +2 -0
- package/dist/components/accordion.js +2 -0
- package/dist/components/alert.config.d.ts +2 -0
- package/dist/components/alert.config.js +2 -0
- package/dist/components/alert.d.ts +2 -0
- package/dist/components/alert.js +2 -0
- package/dist/components/anchor.config.d.ts +2 -0
- package/dist/components/anchor.config.js +2 -0
- package/dist/components/anchor.d.ts +2 -0
- package/dist/components/anchor.js +2 -0
- package/dist/components/article.d.ts +2 -0
- package/dist/components/article.js +2 -0
- package/dist/components/aside.d.ts +2 -0
- package/dist/components/aside.js +2 -0
- package/dist/components/avatar-group.config.d.ts +2 -0
- package/dist/components/avatar-group.config.js +2 -0
- package/dist/components/avatar-group.d.ts +2 -0
- package/dist/components/avatar-group.js +2 -0
- package/dist/components/avatar.config.d.ts +2 -0
- package/dist/components/avatar.config.js +2 -0
- package/dist/components/avatar.d.ts +2 -0
- package/dist/components/avatar.js +2 -0
- package/dist/components/badge.config.d.ts +2 -0
- package/dist/components/badge.config.js +2 -0
- package/dist/components/badge.d.ts +2 -0
- package/dist/components/badge.js +2 -0
- package/dist/components/box.d.ts +2 -0
- package/dist/components/box.js +2 -0
- package/dist/components/breadcrumb.config.d.ts +2 -0
- package/dist/components/breadcrumb.config.js +2 -0
- package/dist/components/breadcrumb.d.ts +2 -0
- package/dist/components/breadcrumb.js +2 -0
- package/dist/components/button.config.d.ts +2 -0
- package/dist/components/button.config.js +2 -0
- package/dist/components/button.d.ts +2 -0
- package/dist/components/button.js +2 -0
- package/dist/components/card.config.d.ts +2 -0
- package/dist/components/card.config.js +2 -0
- package/dist/components/card.d.ts +2 -0
- package/dist/components/card.js +2 -0
- package/dist/components/collapsible.config.d.ts +2 -0
- package/dist/components/collapsible.config.js +2 -0
- package/dist/components/collapsible.d.ts +2 -0
- package/dist/components/collapsible.js +2 -0
- package/dist/components/command.config.d.ts +2 -0
- package/dist/components/command.config.js +2 -0
- package/dist/components/command.d.ts +2 -0
- package/dist/components/command.js +2 -0
- package/dist/components/control-color.config.d.ts +2 -0
- package/dist/components/control-color.config.js +2 -0
- package/dist/components/control-color.d.ts +2 -0
- package/dist/components/control-color.js +2 -0
- package/dist/components/control-curve.config.d.ts +2 -0
- package/dist/components/control-curve.config.js +2 -0
- package/dist/components/control-curve.d.ts +2 -0
- package/dist/components/control-curve.js +2 -0
- package/dist/components/control-folder.config.d.ts +2 -0
- package/dist/components/control-folder.config.js +2 -0
- package/dist/components/control-folder.d.ts +2 -0
- package/dist/components/control-folder.js +2 -0
- package/dist/components/control-group.config.d.ts +2 -0
- package/dist/components/control-group.config.js +2 -0
- package/dist/components/control-group.d.ts +2 -0
- package/dist/components/control-group.js +2 -0
- package/dist/components/control-knob.config.d.ts +2 -0
- package/dist/components/control-knob.config.js +2 -0
- package/dist/components/control-knob.d.ts +2 -0
- package/dist/components/control-knob.js +2 -0
- package/dist/components/control-panel.config.d.ts +2 -0
- package/dist/components/control-panel.config.js +2 -0
- package/dist/components/control-panel.d.ts +2 -0
- package/dist/components/control-panel.js +2 -0
- package/dist/components/control-select.config.d.ts +2 -0
- package/dist/components/control-select.config.js +2 -0
- package/dist/components/control-select.d.ts +2 -0
- package/dist/components/control-select.js +2 -0
- package/dist/components/control-slider.config.d.ts +2 -0
- package/dist/components/control-slider.config.js +2 -0
- package/dist/components/control-slider.d.ts +2 -0
- package/dist/components/control-slider.js +2 -0
- package/dist/components/control-spring.config.d.ts +2 -0
- package/dist/components/control-spring.config.js +2 -0
- package/dist/components/control-spring.d.ts +2 -0
- package/dist/components/control-spring.js +2 -0
- package/dist/components/control-stepper.config.d.ts +2 -0
- package/dist/components/control-stepper.config.js +2 -0
- package/dist/components/control-stepper.d.ts +2 -0
- package/dist/components/control-stepper.js +2 -0
- package/dist/components/control-toggle.config.d.ts +2 -0
- package/dist/components/control-toggle.config.js +2 -0
- package/dist/components/control-toggle.d.ts +2 -0
- package/dist/components/control-toggle.js +2 -0
- package/dist/components/dist/_slots.js +8 -0
- package/dist/components/dist/accordion.config.d.ts +432 -0
- package/dist/components/dist/accordion.config.js +81 -0
- package/dist/components/dist/accordion.d.ts +454 -0
- package/dist/components/dist/accordion.js +60 -0
- package/dist/components/dist/alert.config.d.ts +220 -0
- package/dist/components/dist/alert.config.js +54 -0
- package/dist/components/dist/alert.d.ts +231 -0
- package/dist/components/dist/alert.js +16 -0
- package/dist/components/dist/anchor.config.d.ts +251 -0
- package/dist/components/dist/anchor.config.js +22 -0
- package/dist/components/dist/anchor.d.ts +262 -0
- package/dist/components/dist/anchor.js +9 -0
- package/dist/components/dist/article.d.ts +12 -0
- package/dist/components/dist/article.js +9 -0
- package/dist/components/dist/aside.d.ts +12 -0
- package/dist/components/dist/aside.js +9 -0
- package/dist/components/dist/avatar-group.config.d.ts +316 -0
- package/dist/components/dist/avatar-group.config.js +33 -0
- package/dist/components/dist/avatar-group.d.ts +330 -0
- package/dist/components/dist/avatar-group.js +39 -0
- package/dist/components/dist/avatar.config.d.ts +198 -0
- package/dist/components/dist/avatar.config.js +49 -0
- package/dist/components/dist/avatar.d.ts +212 -0
- package/dist/components/dist/avatar.js +20 -0
- package/dist/components/dist/badge.config.d.ts +478 -0
- package/dist/components/dist/badge.config.js +99 -0
- package/dist/components/dist/badge.d.ts +490 -0
- package/dist/components/dist/badge.js +16 -0
- package/dist/components/dist/box.d.ts +15 -0
- package/dist/components/dist/box.js +9 -0
- package/dist/components/dist/breadcrumb.config.d.ts +391 -0
- package/dist/components/dist/breadcrumb.config.js +43 -0
- package/dist/components/dist/breadcrumb.d.ts +421 -0
- package/dist/components/dist/breadcrumb.js +119 -0
- package/dist/components/dist/button.config.d.ts +382 -0
- package/dist/components/dist/button.config.js +91 -0
- package/dist/components/dist/button.d.ts +404 -0
- package/dist/components/dist/button.js +35 -0
- package/dist/components/dist/card.config.d.ts +337 -0
- package/dist/components/dist/card.config.js +33 -0
- package/dist/components/dist/card.d.ts +353 -0
- package/dist/components/dist/card.js +27 -0
- package/dist/components/dist/collapsible.config.d.ts +46 -0
- package/dist/components/dist/collapsible.config.js +46 -0
- package/dist/components/dist/collapsible.d.ts +62 -0
- package/dist/components/dist/collapsible.js +38 -0
- package/dist/components/dist/command.config.d.ts +1614 -0
- package/dist/components/dist/command.config.js +170 -0
- package/dist/components/dist/command.d.ts +1723 -0
- package/dist/components/dist/command.js +341 -0
- package/dist/components/dist/control-color.config.d.ts +980 -0
- package/dist/components/dist/control-color.config.js +81 -0
- package/dist/components/dist/control-color.d.ts +996 -0
- package/dist/components/dist/control-color.js +64 -0
- package/dist/components/dist/control-curve.config.d.ts +19 -0
- package/dist/components/dist/control-curve.config.js +14 -0
- package/dist/components/dist/control-curve.d.ts +36 -0
- package/dist/components/dist/control-curve.js +81 -0
- package/dist/components/dist/control-folder.config.d.ts +178 -0
- package/dist/components/dist/control-folder.config.js +47 -0
- package/dist/components/dist/control-folder.d.ts +195 -0
- package/dist/components/dist/control-folder.js +41 -0
- package/dist/components/dist/control-group.config.d.ts +860 -0
- package/dist/components/dist/control-group.config.js +80 -0
- package/dist/components/dist/control-group.d.ts +882 -0
- package/dist/components/dist/control-group.js +89 -0
- package/dist/components/dist/control-knob.config.d.ts +793 -0
- package/dist/components/dist/control-knob.config.js +67 -0
- package/dist/components/dist/control-knob.d.ts +820 -0
- package/dist/components/dist/control-knob.js +148 -0
- package/dist/components/dist/control-panel.config.d.ts +403 -0
- package/dist/components/dist/control-panel.config.js +38 -0
- package/dist/components/dist/control-panel.d.ts +416 -0
- package/dist/components/dist/control-panel.js +22 -0
- package/dist/components/dist/control-select.config.d.ts +1177 -0
- package/dist/components/dist/control-select.config.js +102 -0
- package/dist/components/dist/control-select.d.ts +1201 -0
- package/dist/components/dist/control-select.js +63 -0
- package/dist/components/dist/control-slider.config.d.ts +105 -0
- package/dist/components/dist/control-slider.config.js +98 -0
- package/dist/components/dist/control-slider.d.ts +128 -0
- package/dist/components/dist/control-slider.js +87 -0
- package/dist/components/dist/control-spring.config.d.ts +418 -0
- package/dist/components/dist/control-spring.config.js +36 -0
- package/dist/components/dist/control-spring.d.ts +440 -0
- package/dist/components/dist/control-spring.js +136 -0
- package/dist/components/dist/control-stepper.config.d.ts +1085 -0
- package/dist/components/dist/control-stepper.config.js +108 -0
- package/dist/components/dist/control-stepper.d.ts +1105 -0
- package/dist/components/dist/control-stepper.js +109 -0
- package/dist/components/dist/control-toggle.config.d.ts +408 -0
- package/dist/components/dist/control-toggle.config.js +26 -0
- package/dist/components/dist/control-toggle.d.ts +421 -0
- package/dist/components/dist/control-toggle.js +36 -0
- package/dist/components/dist/createSlot.d.ts +9 -0
- package/dist/components/dist/createSlot.js +89 -0
- package/dist/components/dist/dropdown.config.d.ts +921 -0
- package/dist/components/dist/dropdown.config.js +107 -0
- package/dist/components/dist/dropdown.d.ts +951 -0
- package/dist/components/dist/dropdown.js +92 -0
- package/dist/components/dist/empty-state.config.d.ts +397 -0
- package/dist/components/dist/empty-state.config.js +53 -0
- package/dist/components/dist/empty-state.d.ts +417 -0
- package/dist/components/dist/empty-state.js +33 -0
- package/dist/components/dist/footer.d.ts +12 -0
- package/dist/components/dist/footer.js +9 -0
- package/dist/components/dist/grid.d.ts +42 -0
- package/dist/components/dist/grid.js +34 -0
- package/dist/components/dist/header.d.ts +12 -0
- package/dist/components/dist/header.js +9 -0
- package/dist/components/dist/hstack.d.ts +16 -0
- package/dist/components/dist/hstack.js +21 -0
- package/dist/components/dist/image.d.ts +20 -0
- package/dist/components/dist/image.js +9 -0
- package/dist/components/dist/input.config.d.ts +59 -0
- package/dist/components/dist/input.config.js +42 -0
- package/dist/components/dist/input.d.ts +68 -0
- package/dist/components/dist/input.js +14 -0
- package/dist/components/dist/item.config.d.ts +352 -0
- package/dist/components/dist/item.config.js +83 -0
- package/dist/components/dist/item.d.ts +375 -0
- package/dist/components/dist/item.js +51 -0
- package/dist/components/dist/list.d.ts +20 -0
- package/dist/components/dist/list.js +21 -0
- package/dist/components/dist/main.d.ts +12 -0
- package/dist/components/dist/main.js +9 -0
- package/dist/components/dist/modal.config.d.ts +398 -0
- package/dist/components/dist/modal.config.js +92 -0
- package/dist/components/dist/modal.d.ts +434 -0
- package/dist/components/dist/modal.js +125 -0
- package/dist/components/dist/nav-header.config.d.ts +159 -0
- package/dist/components/dist/nav-header.config.js +26 -0
- package/dist/components/dist/nav-header.d.ts +174 -0
- package/dist/components/dist/nav-header.js +23 -0
- package/dist/components/dist/nav.d.ts +12 -0
- package/dist/components/dist/nav.js +9 -0
- package/dist/components/dist/preset-bar.config.d.ts +193 -0
- package/dist/components/dist/preset-bar.config.js +39 -0
- package/dist/components/dist/preset-bar.d.ts +216 -0
- package/dist/components/dist/preset-bar.js +71 -0
- package/dist/components/dist/presets/index.d.ts +17675 -0
- package/dist/components/dist/presets/index.js +97 -0
- package/dist/components/dist/pressable.d.ts +12 -0
- package/dist/components/dist/pressable.js +9 -0
- package/dist/components/dist/progress.config.d.ts +297 -0
- package/dist/components/dist/progress.config.js +35 -0
- package/dist/components/dist/progress.d.ts +312 -0
- package/dist/components/dist/progress.js +43 -0
- package/dist/components/dist/section.d.ts +12 -0
- package/dist/components/dist/section.js +9 -0
- package/dist/components/dist/select.config.d.ts +32 -0
- package/dist/components/dist/select.config.js +25 -0
- package/dist/components/dist/select.d.ts +46 -0
- package/dist/components/dist/select.js +13 -0
- package/dist/components/dist/sheet.config.d.ts +246 -0
- package/dist/components/dist/sheet.config.js +99 -0
- package/dist/components/dist/sheet.d.ts +268 -0
- package/dist/components/dist/sheet.js +53 -0
- package/dist/components/dist/sidebar.config.d.ts +1652 -0
- package/dist/components/dist/sidebar.config.js +217 -0
- package/dist/components/dist/sidebar.d.ts +1826 -0
- package/dist/components/dist/sidebar.js +496 -0
- package/dist/components/dist/skeleton.config.d.ts +17 -0
- package/dist/components/dist/skeleton.config.js +10 -0
- package/dist/components/dist/skeleton.d.ts +28 -0
- package/dist/components/dist/skeleton.js +16 -0
- package/dist/components/dist/slider.config.d.ts +45 -0
- package/dist/components/dist/slider.config.js +40 -0
- package/dist/components/dist/slider.d.ts +71 -0
- package/dist/components/dist/slider.js +247 -0
- package/dist/components/dist/spinner.config.d.ts +35 -0
- package/dist/components/dist/spinner.config.js +24 -0
- package/dist/components/dist/spinner.d.ts +43 -0
- package/dist/components/dist/spinner.js +29 -0
- package/dist/components/dist/svg.d.ts +22 -0
- package/dist/components/dist/svg.js +17 -0
- package/dist/components/dist/switch.config.d.ts +354 -0
- package/dist/components/dist/switch.config.js +47 -0
- package/dist/components/dist/switch.d.ts +371 -0
- package/dist/components/dist/switch.js +32 -0
- package/dist/components/dist/table.d.ts +37 -0
- package/dist/components/dist/table.js +29 -0
- package/dist/components/dist/tabs.config.d.ts +612 -0
- package/dist/components/dist/tabs.config.js +56 -0
- package/dist/components/dist/tabs.d.ts +633 -0
- package/dist/components/dist/tabs.js +77 -0
- package/dist/components/dist/text.config.d.ts +307 -0
- package/dist/components/dist/text.config.js +149 -0
- package/dist/components/dist/text.d.ts +206 -0
- package/dist/components/dist/text.js +12 -0
- package/dist/components/dist/textarea.config.d.ts +353 -0
- package/dist/components/dist/textarea.config.js +57 -0
- package/dist/components/dist/textarea.d.ts +363 -0
- package/dist/components/dist/textarea.js +9 -0
- package/dist/components/dist/toast.config.d.ts +336 -0
- package/dist/components/dist/toast.config.js +145 -0
- package/dist/components/dist/toast.d.ts +427 -0
- package/dist/components/dist/toast.js +159 -0
- package/dist/components/dist/tooltip.config.d.ts +194 -0
- package/dist/components/dist/tooltip.config.js +40 -0
- package/dist/components/dist/tooltip.d.ts +207 -0
- package/dist/components/dist/tooltip.js +28 -0
- package/dist/components/dist/vstack.d.ts +16 -0
- package/dist/components/dist/vstack.js +20 -0
- package/dist/components/dropdown.config.d.ts +2 -0
- package/dist/components/dropdown.config.js +2 -0
- package/dist/components/dropdown.d.ts +2 -0
- package/dist/components/dropdown.js +2 -0
- package/dist/components/empty-state.config.d.ts +2 -0
- package/dist/components/empty-state.config.js +2 -0
- package/dist/components/empty-state.d.ts +2 -0
- package/dist/components/empty-state.js +2 -0
- package/dist/components/footer.d.ts +2 -0
- package/dist/components/footer.js +2 -0
- package/dist/components/grid.d.ts +2 -0
- package/dist/components/grid.js +2 -0
- package/dist/components/header.d.ts +2 -0
- package/dist/components/header.js +2 -0
- package/dist/components/hstack.d.ts +2 -0
- package/dist/components/hstack.js +2 -0
- package/dist/components/image.d.ts +2 -0
- package/dist/components/image.js +2 -0
- package/dist/components/input.config.d.ts +2 -0
- package/dist/components/input.config.js +2 -0
- package/dist/components/input.d.ts +2 -0
- package/dist/components/input.js +2 -0
- package/dist/components/item.config.d.ts +2 -0
- package/dist/components/item.config.js +2 -0
- package/dist/components/item.d.ts +2 -0
- package/dist/components/item.js +2 -0
- package/dist/components/list.d.ts +2 -0
- package/dist/components/list.js +2 -0
- package/dist/components/main.d.ts +2 -0
- package/dist/components/main.js +2 -0
- package/dist/components/modal.config.d.ts +2 -0
- package/dist/components/modal.config.js +2 -0
- package/dist/components/modal.d.ts +2 -0
- package/dist/components/modal.js +2 -0
- package/dist/components/nav-header.config.d.ts +2 -0
- package/dist/components/nav-header.config.js +2 -0
- package/dist/components/nav-header.d.ts +2 -0
- package/dist/components/nav-header.js +2 -0
- package/dist/components/nav.d.ts +2 -0
- package/dist/components/nav.js +2 -0
- package/dist/components/preset-bar.config.d.ts +2 -0
- package/dist/components/preset-bar.config.js +2 -0
- package/dist/components/preset-bar.d.ts +2 -0
- package/dist/components/preset-bar.js +2 -0
- package/dist/components/presets/index.d.ts +44 -0
- package/dist/components/presets/index.js +44 -0
- package/dist/components/pressable.d.ts +2 -0
- package/dist/components/pressable.js +2 -0
- package/dist/components/progress.config.d.ts +2 -0
- package/dist/components/progress.config.js +2 -0
- package/dist/components/progress.d.ts +2 -0
- package/dist/components/progress.js +2 -0
- package/dist/components/section.d.ts +2 -0
- package/dist/components/section.js +2 -0
- package/dist/components/select.config.d.ts +2 -0
- package/dist/components/select.config.js +2 -0
- package/dist/components/select.d.ts +2 -0
- package/dist/components/select.js +2 -0
- package/dist/components/sheet.config.d.ts +2 -0
- package/dist/components/sheet.config.js +2 -0
- package/dist/components/sheet.d.ts +2 -0
- package/dist/components/sheet.js +2 -0
- package/dist/components/sidebar.config.d.ts +2 -0
- package/dist/components/sidebar.config.js +2 -0
- package/dist/components/sidebar.d.ts +2 -0
- package/dist/components/sidebar.js +2 -0
- package/dist/components/skeleton.config.d.ts +2 -0
- package/dist/components/skeleton.config.js +2 -0
- package/dist/components/skeleton.d.ts +2 -0
- package/dist/components/skeleton.js +2 -0
- package/dist/components/slider.config.d.ts +2 -0
- package/dist/components/slider.config.js +2 -0
- package/dist/components/slider.d.ts +2 -0
- package/dist/components/slider.js +2 -0
- package/dist/components/spinner.config.d.ts +2 -0
- package/dist/components/spinner.config.js +2 -0
- package/dist/components/spinner.d.ts +2 -0
- package/dist/components/spinner.js +2 -0
- package/dist/components/svg.d.ts +2 -0
- package/dist/components/svg.js +2 -0
- package/dist/components/switch.config.d.ts +2 -0
- package/dist/components/switch.config.js +2 -0
- package/dist/components/switch.d.ts +2 -0
- package/dist/components/switch.js +2 -0
- package/dist/components/table.d.ts +2 -0
- package/dist/components/table.js +2 -0
- package/dist/components/tabs.config.d.ts +2 -0
- package/dist/components/tabs.config.js +2 -0
- package/dist/components/tabs.d.ts +2 -0
- package/dist/components/tabs.js +2 -0
- package/dist/components/text.config.d.ts +2 -0
- package/dist/components/text.config.js +2 -0
- package/dist/components/text.d.ts +2 -0
- package/dist/components/text.js +2 -0
- package/dist/components/textarea.config.d.ts +2 -0
- package/dist/components/textarea.config.js +2 -0
- package/dist/components/textarea.d.ts +2 -0
- package/dist/components/textarea.js +2 -0
- package/dist/components/toast.config.d.ts +2 -0
- package/dist/components/toast.config.js +2 -0
- package/dist/components/toast.d.ts +2 -0
- package/dist/components/toast.js +2 -0
- package/dist/components/tooltip.config.d.ts +2 -0
- package/dist/components/tooltip.config.js +2 -0
- package/dist/components/tooltip.d.ts +2 -0
- package/dist/components/tooltip.js +2 -0
- package/dist/components/vstack.d.ts +2 -0
- package/dist/components/vstack.js +2 -0
- package/dist/config/dist/component-resolution.d.ts +1 -0
- package/dist/config/dist/component-resolution.js +78 -0
- package/dist/config/dist/consts/defaultColors.d.ts +253 -0
- package/dist/config/dist/consts/defaultColors.js +252 -0
- package/dist/config/dist/createConfig.d.ts +214 -0
- package/dist/config/dist/createConfig.js +454 -0
- package/dist/config/dist/index.d.ts +5 -0
- package/dist/config/dist/index.js +4 -0
- package/dist/config/dist/preset-merge.js +165 -0
- package/dist/config/dist/serialize.d.ts +57 -0
- package/dist/config/dist/serialize.js +153 -0
- package/dist/config-utils/dist/componentConfig.d.ts +10 -0
- package/dist/config-utils/dist/componentConfig.js +11 -0
- package/dist/config-utils.d.ts +2 -0
- package/dist/config-utils.js +2 -0
- package/dist/config.d.ts +3512 -0
- package/dist/config.js +22 -0
- package/dist/core/dist/createComponent.boundaries.js +192 -0
- package/dist/core/dist/createComponent.d.ts +57 -0
- package/dist/core/dist/createComponent.js +67 -0
- package/dist/core/dist/createComponentExample.d.ts +42 -0
- package/dist/core/dist/createComponentExample.js +27 -0
- package/dist/core/dist/createProvider.d.ts +13 -0
- package/dist/core/dist/createProvider.js +24 -0
- package/dist/core/dist/generated/stylePropsTwMap.d.ts +1701 -0
- package/dist/core/dist/generated/stylePropsTwMap.js +570 -0
- package/dist/core/dist/getComponentStyles.d.ts +50 -0
- package/dist/core/dist/getComponentStyles.js +85 -0
- package/dist/core/dist/getStyles.d.ts +43 -0
- package/dist/core/dist/getStyles.js +305 -0
- package/dist/core/dist/index.d.ts +11 -0
- package/dist/core/dist/index.js +11 -0
- package/dist/core/dist/macros.d.ts +22 -0
- package/dist/core/dist/macros.js +49 -0
- package/dist/core/dist/propMappings.d.ts +77 -0
- package/dist/core/dist/propMappings.js +1404 -0
- package/dist/core/dist/resolveMotionState.d.ts +5 -0
- package/dist/core/dist/resolveMotionState.js +17 -0
- package/dist/core/dist/resolveProps.boundaries.js +130 -0
- package/dist/core/dist/transformPreset.d.ts +18 -0
- package/dist/core/dist/transformPreset.js +28 -0
- package/dist/core/dist/withDefaultStyleProps.d.ts +44 -0
- package/dist/core/dist/withDefaultStyleProps.js +18 -0
- package/dist/core.d.ts +12 -0
- package/dist/core.js +13 -0
- package/dist/createSlot.d.ts +2 -0
- package/dist/createSlot.js +2 -0
- package/dist/devtools.d.ts +2 -0
- package/dist/devtools.js +3 -0
- package/dist/fixtures.d.ts +2 -0
- package/dist/fixtures.js +3 -0
- package/dist/foundational-presets/dist/boldVibrant.d.ts +3575 -0
- package/dist/foundational-presets/dist/boldVibrant.js +326 -0
- package/dist/foundational-presets/dist/brutalist.d.ts +3575 -0
- package/dist/foundational-presets/dist/brutalist.js +326 -0
- package/dist/foundational-presets/dist/candy.d.ts +3575 -0
- package/dist/foundational-presets/dist/candy.js +326 -0
- package/dist/foundational-presets/dist/cleanMinimalist.d.ts +3575 -0
- package/dist/foundational-presets/dist/cleanMinimalist.js +326 -0
- package/dist/foundational-presets/dist/corporate.d.ts +3575 -0
- package/dist/foundational-presets/dist/corporate.js +326 -0
- package/dist/foundational-presets/dist/darkMoody.d.ts +3575 -0
- package/dist/foundational-presets/dist/darkMoody.js +326 -0
- package/dist/foundational-presets/dist/defaultPreset.d.ts +3509 -0
- package/dist/foundational-presets/dist/defaultPreset.js +1784 -0
- package/dist/foundational-presets/dist/forest.d.ts +3575 -0
- package/dist/foundational-presets/dist/forest.js +326 -0
- package/dist/foundational-presets/dist/highContrast.d.ts +3575 -0
- package/dist/foundational-presets/dist/highContrast.js +326 -0
- package/dist/foundational-presets/dist/index.d.ts +19 -0
- package/dist/foundational-presets/dist/index.js +19 -0
- package/dist/foundational-presets/dist/lavender.d.ts +3575 -0
- package/dist/foundational-presets/dist/lavender.js +326 -0
- package/dist/foundational-presets/dist/luxury.d.ts +3575 -0
- package/dist/foundational-presets/dist/luxury.js +326 -0
- package/dist/foundational-presets/dist/monochrome.d.ts +3575 -0
- package/dist/foundational-presets/dist/monochrome.js +326 -0
- package/dist/foundational-presets/dist/motion.d.ts +13 -0
- package/dist/foundational-presets/dist/motion.js +10 -0
- package/dist/foundational-presets/dist/neonCyber.d.ts +3575 -0
- package/dist/foundational-presets/dist/neonCyber.js +326 -0
- package/dist/foundational-presets/dist/newspaper.d.ts +3575 -0
- package/dist/foundational-presets/dist/newspaper.js +326 -0
- package/dist/foundational-presets/dist/ocean.d.ts +3575 -0
- package/dist/foundational-presets/dist/ocean.js +326 -0
- package/dist/foundational-presets/dist/slate.d.ts +3575 -0
- package/dist/foundational-presets/dist/slate.js +326 -0
- package/dist/foundational-presets/dist/sunset.d.ts +3575 -0
- package/dist/foundational-presets/dist/sunset.js +326 -0
- package/dist/foundational-presets/dist/terminal.d.ts +3575 -0
- package/dist/foundational-presets/dist/terminal.js +326 -0
- package/dist/foundational-presets/dist/warmOrganic.d.ts +3575 -0
- package/dist/foundational-presets/dist/warmOrganic.js +326 -0
- package/dist/loader/dist/_virtual/_rolldown/runtime.js +6 -0
- package/dist/loader/dist/loader/artifacts.js +43 -0
- package/dist/loader/dist/loader/babel-utils.js +29 -0
- package/dist/loader/dist/loader/create-component-data.js +33 -0
- package/dist/loader/dist/loader/create-component-lowering.js +454 -0
- package/dist/loader/dist/loader/data-attr-transform.js +191 -0
- package/dist/loader/dist/loader/dynamic-style-codegen.js +96 -0
- package/dist/loader/dist/loader/internal-meta.js +22 -0
- package/dist/loader/dist/loader/motion-transform.js +717 -0
- package/dist/loader/dist/loader/style-transform.js +670 -0
- package/dist/loader/dist/loader.d.ts +8 -0
- package/dist/loader/dist/loader.js +357 -0
- package/dist/loader/dist/next.d.ts +17 -0
- package/dist/loader/dist/next.js +77 -0
- package/dist/loader/dist/node_modules/react/cjs/react-jsx-runtime.development.js +203 -0
- package/dist/loader/dist/node_modules/react/cjs/react-jsx-runtime.production.js +25 -0
- package/dist/loader/dist/node_modules/react/cjs/react.development.js +762 -0
- package/dist/loader/dist/node_modules/react/cjs/react.production.js +351 -0
- package/dist/loader/dist/node_modules/react/index.js +10 -0
- package/dist/loader/dist/node_modules/react/jsx-runtime.js +10 -0
- package/dist/loader/dist/packages/core/dist/createComponent.js +6 -0
- package/dist/loader/dist/packages/core/dist/createProvider.js +7 -0
- package/dist/loader/dist/packages/core/dist/generated/stylePropsTwMap.js +570 -0
- package/dist/loader/dist/packages/core/dist/getComponentStyles.js +2 -0
- package/dist/loader/dist/packages/core/dist/getStyles.js +58 -0
- package/dist/loader/dist/packages/core/dist/index.js +6 -0
- package/dist/loader/dist/packages/core/dist/macros.js +41 -0
- package/dist/loader/dist/packages/core/dist/propMappings.js +1347 -0
- package/dist/loader/dist/packages/core/dist/withDefaultStyleProps.js +1 -0
- package/dist/loader.d.ts +2 -0
- package/dist/loader.js +2 -0
- package/dist/next.d.ts +2 -0
- package/dist/next.js +2 -0
- package/dist/plugin.d.ts +2 -0
- package/dist/plugin.js +2 -0
- package/dist/presets/dist/boldVibrant.d.ts +6 -0
- package/dist/presets/dist/boldVibrant.js +7 -0
- package/dist/presets/dist/brutalist.d.ts +6 -0
- package/dist/presets/dist/brutalist.js +7 -0
- package/dist/presets/dist/candy.d.ts +6 -0
- package/dist/presets/dist/candy.js +7 -0
- package/dist/presets/dist/cleanMinimalist.d.ts +6 -0
- package/dist/presets/dist/cleanMinimalist.js +7 -0
- package/dist/presets/dist/corporate.d.ts +6 -0
- package/dist/presets/dist/corporate.js +7 -0
- package/dist/presets/dist/darkMoody.d.ts +6 -0
- package/dist/presets/dist/darkMoody.js +7 -0
- package/dist/presets/dist/defaultPreset.d.ts +6 -0
- package/dist/presets/dist/defaultPreset.js +68 -0
- package/dist/presets/dist/forest.d.ts +6 -0
- package/dist/presets/dist/forest.js +7 -0
- package/dist/presets/dist/highContrast.d.ts +6 -0
- package/dist/presets/dist/highContrast.js +7 -0
- package/dist/presets/dist/index.d.ts +19 -0
- package/dist/presets/dist/index.js +19 -0
- package/dist/presets/dist/lavender.d.ts +6 -0
- package/dist/presets/dist/lavender.js +7 -0
- package/dist/presets/dist/luxury.d.ts +6 -0
- package/dist/presets/dist/luxury.js +7 -0
- package/dist/presets/dist/monochrome.d.ts +6 -0
- package/dist/presets/dist/monochrome.js +7 -0
- package/dist/presets/dist/neonCyber.d.ts +6 -0
- package/dist/presets/dist/neonCyber.js +7 -0
- package/dist/presets/dist/newspaper.d.ts +6 -0
- package/dist/presets/dist/newspaper.js +7 -0
- package/dist/presets/dist/ocean.d.ts +6 -0
- package/dist/presets/dist/ocean.js +7 -0
- package/dist/presets/dist/slate.d.ts +6 -0
- package/dist/presets/dist/slate.js +7 -0
- package/dist/presets/dist/sunset.d.ts +6 -0
- package/dist/presets/dist/sunset.js +7 -0
- package/dist/presets/dist/terminal.d.ts +6 -0
- package/dist/presets/dist/terminal.js +7 -0
- package/dist/presets/dist/warmOrganic.d.ts +6 -0
- package/dist/presets/dist/warmOrganic.js +7 -0
- package/dist/presets/motion.d.ts +2 -0
- package/dist/presets/motion.js +2 -0
- package/dist/presets.d.ts +20 -0
- package/dist/presets.js +21 -0
- package/dist/remotion/dist/components/image-slide.config.js +43 -0
- package/dist/remotion/dist/components/image-slide.d.ts +20 -0
- package/dist/remotion/dist/components/image-slide.js +24 -0
- package/dist/remotion/dist/components/index.js +16 -0
- package/dist/remotion/dist/components/lower-third.config.js +54 -0
- package/dist/remotion/dist/components/lower-third.d.ts +21 -0
- package/dist/remotion/dist/components/lower-third.js +26 -0
- package/dist/remotion/dist/components/quote-card.config.js +85 -0
- package/dist/remotion/dist/components/quote-card.d.ts +21 -0
- package/dist/remotion/dist/components/quote-card.js +27 -0
- package/dist/remotion/dist/components/split-screen.config.js +90 -0
- package/dist/remotion/dist/components/split-screen.d.ts +25 -0
- package/dist/remotion/dist/components/split-screen.js +35 -0
- package/dist/remotion/dist/components/stat-card.config.js +55 -0
- package/dist/remotion/dist/components/stat-card.d.ts +19 -0
- package/dist/remotion/dist/components/stat-card.js +23 -0
- package/dist/remotion/dist/components/text-overlay.config.js +46 -0
- package/dist/remotion/dist/components/text-overlay.d.ts +17 -0
- package/dist/remotion/dist/components/text-overlay.js +16 -0
- package/dist/remotion/dist/components/title-card.config.js +56 -0
- package/dist/remotion/dist/components/title-card.d.ts +19 -0
- package/dist/remotion/dist/components/title-card.js +23 -0
- package/dist/remotion/dist/components/typing-text.config.js +57 -0
- package/dist/remotion/dist/components/typing-text.d.ts +21 -0
- package/dist/remotion/dist/components/typing-text.js +23 -0
- package/dist/remotion/dist/index.d.ts +8 -0
- package/dist/remotion/dist/index.js +8 -0
- package/dist/remotion/dist/transitions/fade.js +19 -0
- package/dist/remotion/dist/transitions/index.js +7 -0
- package/dist/remotion/dist/transitions/slide-down.js +21 -0
- package/dist/remotion/dist/transitions/slide-left.js +21 -0
- package/dist/remotion/dist/transitions/slide-right.js +21 -0
- package/dist/remotion/dist/transitions/slide-up.js +21 -0
- package/dist/remotion/dist/transitions/wipe.js +21 -0
- package/dist/remotion/dist/transitions/zoom.js +19 -0
- package/dist/remotion.d.ts +9 -0
- package/dist/remotion.js +10 -0
- package/dist/styles.d.ts +4 -0
- package/dist/styles.js +5 -0
- package/dist/transformPreset.d.ts +2 -0
- package/dist/transformPreset.js +3 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/dist/utils/dist/array-utils/closestItem.d.ts +5 -0
- package/dist/utils/dist/array-utils/closestItem.js +9 -0
- package/dist/utils/dist/array-utils/removeItem.d.ts +5 -0
- package/dist/utils/dist/array-utils/removeItem.js +8 -0
- package/dist/utils/dist/component-style-defaults.d.ts +6 -0
- package/dist/utils/dist/component-style-defaults.js +68 -0
- package/dist/utils/dist/index.js +23 -0
- package/dist/utils/dist/math-utils/clamp.d.ts +13 -0
- package/dist/utils/dist/math-utils/clamp.js +14 -0
- package/dist/utils/dist/motion-utils/interpolate.d.ts +11 -0
- package/dist/utils/dist/motion-utils/interpolate.js +25 -0
- package/dist/utils/dist/object-utils/entries.d.ts +5 -0
- package/dist/utils/dist/object-utils/entries.js +6 -0
- package/dist/utils/dist/object-utils/flattenObj.d.ts +13 -0
- package/dist/utils/dist/object-utils/flattenObj.js +21 -0
- package/dist/utils/dist/object-utils/fromEntries.d.ts +5 -0
- package/dist/utils/dist/object-utils/fromEntries.js +6 -0
- package/dist/utils/dist/object-utils/keys.d.ts +5 -0
- package/dist/utils/dist/object-utils/keys.js +6 -0
- package/dist/utils/dist/object-utils/mapKeys.d.ts +6 -0
- package/dist/utils/dist/object-utils/mapKeys.js +10 -0
- package/dist/utils/dist/object-utils/mapValues.d.ts +6 -0
- package/dist/utils/dist/object-utils/mapValues.js +9 -0
- package/dist/utils/dist/string-utils/arrayToUnion.d.ts +5 -0
- package/dist/utils/dist/string-utils/arrayToUnion.js +6 -0
- package/dist/utils/dist/string-utils/capitalize.d.ts +5 -0
- package/dist/utils/dist/string-utils/capitalize.js +6 -0
- package/dist/utils/dist/string-utils/componentClassName.d.ts +26 -0
- package/dist/utils/dist/string-utils/componentClassName.js +33 -0
- package/dist/utils/dist/string-utils/createTemplate.d.ts +17 -0
- package/dist/utils/dist/string-utils/createTemplate.js +142 -0
- package/dist/utils/dist/string-utils/cssVar.d.ts +54 -0
- package/dist/utils/dist/string-utils/cssVar.js +61 -0
- package/dist/utils/dist/string-utils/cssVars.d.ts +82 -0
- package/dist/utils/dist/string-utils/cssVars.js +108 -0
- package/dist/utils/dist/string-utils/dedent.d.ts +48 -0
- package/dist/utils/dist/string-utils/dedent.js +68 -0
- package/dist/utils/dist/string-utils/indent.d.ts +5 -0
- package/dist/utils/dist/string-utils/indent.js +6 -0
- package/dist/utils/dist/string-utils/join.d.ts +6 -0
- package/dist/utils/dist/string-utils/join.js +6 -0
- package/dist/utils/dist/string-utils/kebabCase.d.ts +14 -0
- package/dist/utils/dist/string-utils/kebabCase.js +14 -0
- package/dist/utils/dist/string-utils/objectToInterface.js +6 -0
- package/dist/utils/dist/string-utils/split.d.ts +11 -0
- package/dist/utils/dist/string-utils/split.js +12 -0
- package/dist/utils/dist/string-utils/tsProperties.d.ts +30 -0
- package/dist/utils/dist/string-utils/tsProperties.js +60 -0
- package/dist/utils.d.ts +24 -0
- package/dist/utils.js +25 -0
- package/package.json +185 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { componentSlotClass } from "../../utils/dist/string-utils/componentClassName.js";
|
|
2
|
+
import "../../utils/dist/index.js";
|
|
3
|
+
import { loadManifest, loadTransformData } from "./loader/artifacts.js";
|
|
4
|
+
import { isCompiledJsxCallee } from "./loader/babel-utils.js";
|
|
5
|
+
import { canInlineSimpleLoweredComponent, resolveLoweredCreateComponentData } from "./loader/create-component-data.js";
|
|
6
|
+
import { applySlotMotionToElement, clearHoistedMotionStates, componentHasExitMotion, getCustomSlotMotion, getHoistedMotionStates, handleMotionOnElement, wrapCustomComponentWithAnimatePresence, wrapParentConditionalWithAnimatePresence } from "./loader/motion-transform.js";
|
|
7
|
+
import { findClassesParamName, findSlotFromClassNameAttr, findSlotFromPropsSpreadAttr, findSlotPropsParamName, handleCompiledJsxDataAttrs, injectInternalUdsProps } from "./loader/data-attr-transform.js";
|
|
8
|
+
import { buildInlineSimpleLoweredCreateComponentRenderFn, buildInlineSimplePrimitiveCreateComponentRenderFn, buildLoweredCreateComponentConfigExpression, extractOwnPropKeys, inferCreateComponentNameFromAssignment, isCreateComponentRenderFnNode, remapOnPressToOnClickInJsxAttributes } from "./loader/create-component-lowering.js";
|
|
9
|
+
import { createStyleTransformRuntime } from "./loader/style-transform.js";
|
|
10
|
+
import * as t from "@babel/types";
|
|
11
|
+
import path from "node:path";
|
|
12
|
+
import _traverse from "@babel/traverse";
|
|
13
|
+
import _generate from "@babel/generator";
|
|
14
|
+
import { parse } from "@babel/parser";
|
|
15
|
+
//#region ../loader/dist/loader.js
|
|
16
|
+
const traverse = _traverse.default ?? _traverse;
|
|
17
|
+
const generate = _generate.default ?? _generate;
|
|
18
|
+
/** Build a custom component set from the manifest (used for motion transform). */
|
|
19
|
+
function getCustomComponents(manifest) {
|
|
20
|
+
if (!manifest) return null;
|
|
21
|
+
const custom = /* @__PURE__ */ new Set();
|
|
22
|
+
for (const [name, entry] of Object.entries(manifest.components)) if (entry.type === "custom") custom.add(name);
|
|
23
|
+
return custom.size > 0 ? custom : null;
|
|
24
|
+
}
|
|
25
|
+
function isUdsImportSource(importSource) {
|
|
26
|
+
return importSource.startsWith("uds/") || importSource.startsWith("@uds/") || importSource === "uds";
|
|
27
|
+
}
|
|
28
|
+
function isUdsComponentReference(nodePath, componentName, allUdsComponents, udsImportedNames, createComponentDefinedNames, customComponents) {
|
|
29
|
+
if (!allUdsComponents.has(componentName)) return false;
|
|
30
|
+
const binding = nodePath.scope?.getBinding?.(componentName);
|
|
31
|
+
if (!binding?.path) return udsImportedNames.has(componentName) || createComponentDefinedNames.has(componentName);
|
|
32
|
+
const bindingNode = binding.path.node;
|
|
33
|
+
if (bindingNode?.type === "ImportSpecifier" || bindingNode?.type === "ImportDefaultSpecifier" || bindingNode?.type === "ImportNamespaceSpecifier") {
|
|
34
|
+
const parentNode = binding.path.parent;
|
|
35
|
+
if (!t.isImportDeclaration(parentNode)) return false;
|
|
36
|
+
return isUdsImportSource(parentNode.source.value) || customComponents?.has(componentName) === true;
|
|
37
|
+
}
|
|
38
|
+
return createComponentDefinedNames.has(componentName);
|
|
39
|
+
}
|
|
40
|
+
const transformLoader = function(source) {
|
|
41
|
+
const loaderContext = this ?? void 0;
|
|
42
|
+
if (!loaderContext?.getOptions) return source;
|
|
43
|
+
const { manifestPath, isDev, skipWatchDependencies } = loaderContext.getOptions();
|
|
44
|
+
const transformDataPath = path.join(path.dirname(manifestPath), "motion-transform-data.json");
|
|
45
|
+
const projectRoot = path.dirname(path.dirname(manifestPath));
|
|
46
|
+
const resourcePath = loaderContext.resourcePath ?? "";
|
|
47
|
+
if (resourcePath.includes(".uds/")) return source;
|
|
48
|
+
if (!skipWatchDependencies) {
|
|
49
|
+
loaderContext.addDependency?.(manifestPath);
|
|
50
|
+
loaderContext.addDependency?.(transformDataPath);
|
|
51
|
+
}
|
|
52
|
+
const manifest = loadManifest(manifestPath, isDev);
|
|
53
|
+
const transformData = loadTransformData(transformDataPath, isDev);
|
|
54
|
+
const styleRuntime = createStyleTransformRuntime(transformData, manifest);
|
|
55
|
+
const allUdsComponents = styleRuntime.allComponents;
|
|
56
|
+
const primitiveUdsComponents = styleRuntime.primitiveComponents;
|
|
57
|
+
const componentTagPatterns = styleRuntime.componentTagPatterns;
|
|
58
|
+
const hasAnyComponent = source.includes("from 'uds/") || source.includes("from \"@uds/") || source.includes("from 'uds'") || source.includes("from \"uds/") || source.includes("from '@uds/") || source.includes("from \"uds\"") || componentTagPatterns.length > 0 && componentTagPatterns.some((pattern) => source.includes(pattern));
|
|
59
|
+
const hasCreateComponent = source.includes("createComponent") || source.includes("createComponentStyler");
|
|
60
|
+
if (!hasAnyComponent && !hasCreateComponent) return source;
|
|
61
|
+
const customComponents = getCustomComponents(manifest);
|
|
62
|
+
const isTS = resourcePath?.endsWith(".ts") || resourcePath?.endsWith(".tsx");
|
|
63
|
+
const isJSX = resourcePath?.endsWith(".tsx") || resourcePath?.endsWith(".jsx");
|
|
64
|
+
const parserPlugins = [];
|
|
65
|
+
if (isJSX || !isTS) parserPlugins.push("jsx");
|
|
66
|
+
if (isTS) parserPlugins.push("typescript");
|
|
67
|
+
let ast;
|
|
68
|
+
try {
|
|
69
|
+
ast = parse(source, {
|
|
70
|
+
sourceType: "module",
|
|
71
|
+
plugins: parserPlugins
|
|
72
|
+
});
|
|
73
|
+
} catch {
|
|
74
|
+
return source;
|
|
75
|
+
}
|
|
76
|
+
let transformed = false;
|
|
77
|
+
const importsToAdd = /* @__PURE__ */ new Map();
|
|
78
|
+
let hasMotionImport = false;
|
|
79
|
+
let needsMotionImport = false;
|
|
80
|
+
let hasAnimatePresenceImport = false;
|
|
81
|
+
let needsAnimatePresenceImport = false;
|
|
82
|
+
let needsResolveMotionStateImport = false;
|
|
83
|
+
let needsProcessStylePropsImport = false;
|
|
84
|
+
clearHoistedMotionStates();
|
|
85
|
+
const stylerToComponent = /* @__PURE__ */ new Map();
|
|
86
|
+
const classesVarToComponent = /* @__PURE__ */ new Map();
|
|
87
|
+
const slotPropsVarToComponent = /* @__PURE__ */ new Map();
|
|
88
|
+
const udsImportedNames = /* @__PURE__ */ new Set();
|
|
89
|
+
const createComponentImportNames = /* @__PURE__ */ new Set();
|
|
90
|
+
const createVariantsImportNames = /* @__PURE__ */ new Set();
|
|
91
|
+
const createVariantsClassMaps = /* @__PURE__ */ new Map();
|
|
92
|
+
const hoistedVariantClassMapNames = /* @__PURE__ */ new Map();
|
|
93
|
+
const hoistedVariantClassMaps = /* @__PURE__ */ new Map();
|
|
94
|
+
const createComponentDefinedNames = /* @__PURE__ */ new Set();
|
|
95
|
+
let needsCreateComponentImportCleanup = false;
|
|
96
|
+
traverse(ast, {
|
|
97
|
+
JSXOpeningElement(nodePath) {
|
|
98
|
+
const jsxName = nodePath.node.name;
|
|
99
|
+
const jsxTagName = jsxName?.type === "JSXIdentifier" ? jsxName.name : void 0;
|
|
100
|
+
if (jsxTagName && !allUdsComponents.has(jsxTagName) && udsImportedNames.has(jsxTagName)) {
|
|
101
|
+
allUdsComponents.add(jsxTagName);
|
|
102
|
+
if (!primitiveUdsComponents.has(jsxTagName)) {
|
|
103
|
+
const manifestEntry = manifest?.components[jsxTagName];
|
|
104
|
+
if (manifestEntry?.type === "primitive" && manifestEntry.element || transformData?.primitiveElementMap?.[jsxTagName]) primitiveUdsComponents.add(jsxTagName);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
const isUdsJsxTag = jsxTagName && isUdsComponentReference(nodePath, jsxTagName, allUdsComponents, udsImportedNames, createComponentDefinedNames, customComponents);
|
|
108
|
+
if (isDev && jsxTagName && isUdsJsxTag) {
|
|
109
|
+
injectInternalUdsProps(nodePath, resourcePath, projectRoot, {
|
|
110
|
+
componentName: jsxTagName,
|
|
111
|
+
slotName: "root"
|
|
112
|
+
});
|
|
113
|
+
transformed = true;
|
|
114
|
+
}
|
|
115
|
+
if (jsxTagName && isUdsJsxTag && remapOnPressToOnClickInJsxAttributes(nodePath.node.attributes)) transformed = true;
|
|
116
|
+
let motionTransformed = false;
|
|
117
|
+
if (isUdsJsxTag && handleMotionOnElement(nodePath, manifest, customComponents, primitiveUdsComponents, importsToAdd)) {
|
|
118
|
+
transformed = true;
|
|
119
|
+
motionTransformed = true;
|
|
120
|
+
}
|
|
121
|
+
if (jsxTagName && customComponents?.has(jsxTagName) && componentHasExitMotion(manifest, jsxTagName)) {
|
|
122
|
+
if (wrapCustomComponentWithAnimatePresence(nodePath)) {
|
|
123
|
+
needsAnimatePresenceImport = true;
|
|
124
|
+
transformed = true;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (isUdsJsxTag && styleRuntime.transformUdsComponentStyleProps(nodePath, createVariantsClassMaps, hoistedVariantClassMapNames, hoistedVariantClassMaps)) transformed = true;
|
|
128
|
+
if (!motionTransformed && jsxTagName && isUdsJsxTag && primitiveUdsComponents.has(jsxTagName)) {
|
|
129
|
+
const baseElement = (manifest?.components[jsxTagName])?.element ?? transformData?.primitiveElementMap?.[jsxTagName];
|
|
130
|
+
if (baseElement) {
|
|
131
|
+
let resolvedElement = baseElement;
|
|
132
|
+
const asAttrIndex = nodePath.node.attributes.findIndex((attr) => t.isJSXAttribute(attr) && t.isJSXIdentifier(attr.name) && attr.name.name === "as");
|
|
133
|
+
if (asAttrIndex >= 0) {
|
|
134
|
+
const asAttr = nodePath.node.attributes[asAttrIndex];
|
|
135
|
+
if (t.isStringLiteral(asAttr.value)) {
|
|
136
|
+
resolvedElement = asAttr.value.value;
|
|
137
|
+
nodePath.node.attributes.splice(asAttrIndex, 1);
|
|
138
|
+
} else if (t.isJSXExpressionContainer(asAttr.value) && t.isStringLiteral(asAttr.value.expression)) {
|
|
139
|
+
resolvedElement = asAttr.value.expression.value;
|
|
140
|
+
nodePath.node.attributes.splice(asAttrIndex, 1);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const slotClassName = transformData?.componentClassData?.[jsxTagName]?.slotClassNames?.root ?? componentSlotClass(jsxTagName, "root");
|
|
144
|
+
nodePath.node.name = t.jsxIdentifier(resolvedElement);
|
|
145
|
+
const existingClassAttr = nodePath.node.attributes.find((attr) => t.isJSXAttribute(attr) && t.isJSXIdentifier(attr.name) && attr.name.name === "className");
|
|
146
|
+
if (existingClassAttr && t.isJSXAttribute(existingClassAttr)) {
|
|
147
|
+
if (t.isStringLiteral(existingClassAttr.value)) existingClassAttr.value = t.stringLiteral(`${slotClassName} ${existingClassAttr.value.value}`);
|
|
148
|
+
else if (t.isJSXExpressionContainer(existingClassAttr.value) && !t.isJSXEmptyExpression(existingClassAttr.value.expression)) if (t.isStringLiteral(existingClassAttr.value.expression)) existingClassAttr.value = t.jsxExpressionContainer(t.stringLiteral(`${slotClassName} ${existingClassAttr.value.expression.value}`));
|
|
149
|
+
else existingClassAttr.value = t.jsxExpressionContainer(t.templateLiteral([t.templateElement({
|
|
150
|
+
raw: `${slotClassName} `,
|
|
151
|
+
cooked: `${slotClassName} `
|
|
152
|
+
}, false), t.templateElement({
|
|
153
|
+
raw: "",
|
|
154
|
+
cooked: ""
|
|
155
|
+
}, true)], [existingClassAttr.value.expression]));
|
|
156
|
+
} else nodePath.node.attributes.push(t.jsxAttribute(t.jsxIdentifier("className"), t.stringLiteral(slotClassName)));
|
|
157
|
+
const parent = nodePath.parent;
|
|
158
|
+
if (parent?.type === "JSXElement" && parent.closingElement?.name?.type === "JSXIdentifier") parent.closingElement.name = t.jsxIdentifier(resolvedElement);
|
|
159
|
+
transformed = true;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
const classNameSlotInfo = findSlotFromClassNameAttr(nodePath.node.attributes, classesVarToComponent, stylerToComponent, slotPropsVarToComponent);
|
|
163
|
+
const slotInfo = findSlotFromPropsSpreadAttr(nodePath.node.attributes, slotPropsVarToComponent) ?? classNameSlotInfo;
|
|
164
|
+
if (!slotInfo) return;
|
|
165
|
+
const slotMotion = getCustomSlotMotion(manifest, slotInfo);
|
|
166
|
+
if (slotMotion) {
|
|
167
|
+
const motionResult = applySlotMotionToElement(nodePath, slotMotion);
|
|
168
|
+
if (motionResult.transformed) {
|
|
169
|
+
transformed = true;
|
|
170
|
+
needsMotionImport = true;
|
|
171
|
+
}
|
|
172
|
+
if (motionResult.needsResolveMotionStateImport) needsResolveMotionStateImport = true;
|
|
173
|
+
if (motionResult.transformed && slotMotion.exit) {
|
|
174
|
+
if (wrapParentConditionalWithAnimatePresence(nodePath)) needsAnimatePresenceImport = true;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
if (nodePath.node.attributes.some((attr) => attr.type === "JSXAttribute" && attr.name?.name === "data-uds-slot")) return;
|
|
178
|
+
nodePath.node.attributes.push(t.jsxAttribute(t.jsxIdentifier("data-uds-slot"), t.stringLiteral(slotInfo.slotName)), t.jsxAttribute(t.jsxIdentifier("data-uds-component"), t.stringLiteral(slotInfo.componentName)));
|
|
179
|
+
transformed = true;
|
|
180
|
+
},
|
|
181
|
+
ImportDeclaration(nodePath) {
|
|
182
|
+
const importSource = nodePath.node.source?.value;
|
|
183
|
+
if (!importSource) return;
|
|
184
|
+
if (importSource === "motion/react") {
|
|
185
|
+
for (const specifier of nodePath.node.specifiers) if (specifier.type === "ImportSpecifier" && specifier.imported?.type === "Identifier") {
|
|
186
|
+
if (specifier.imported.name === "motion") hasMotionImport = true;
|
|
187
|
+
if (specifier.imported.name === "AnimatePresence") hasAnimatePresenceImport = true;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
if (!isUdsImportSource(importSource)) return;
|
|
191
|
+
for (const specifier of nodePath.node.specifiers) {
|
|
192
|
+
const localName = specifier.local?.name;
|
|
193
|
+
if (localName) udsImportedNames.add(localName);
|
|
194
|
+
}
|
|
195
|
+
for (const specifier of nodePath.node.specifiers) {
|
|
196
|
+
if (specifier.type !== "ImportSpecifier") continue;
|
|
197
|
+
const importedName = specifier.imported?.type === "Identifier" ? specifier.imported.name : specifier.imported?.value;
|
|
198
|
+
if (!importedName) continue;
|
|
199
|
+
const match = importedName.match(/^get(\w+)Styles$/);
|
|
200
|
+
if (match) {
|
|
201
|
+
const localName = specifier.local?.name ?? importedName;
|
|
202
|
+
stylerToComponent.set(localName, match[1]);
|
|
203
|
+
}
|
|
204
|
+
if (importedName === "createVariants") {
|
|
205
|
+
const localName = specifier.local?.name ?? importedName;
|
|
206
|
+
createVariantsImportNames.add(localName);
|
|
207
|
+
continue;
|
|
208
|
+
}
|
|
209
|
+
if (importedName === "createComponent") {
|
|
210
|
+
const localName = specifier.local?.name ?? importedName;
|
|
211
|
+
createComponentImportNames.add(localName);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
VariableDeclarator(nodePath) {
|
|
216
|
+
const init = nodePath.node.init;
|
|
217
|
+
if (!init) return;
|
|
218
|
+
const id = nodePath.node.id;
|
|
219
|
+
if (init.type === "CallExpression" && init.callee?.type === "Identifier" && createVariantsImportNames.has(init.callee.name) && id?.type === "Identifier") {
|
|
220
|
+
const variantClassMap = styleRuntime.extractVariantClassMapFromCreateVariantsCall(init);
|
|
221
|
+
if (variantClassMap) createVariantsClassMaps.set(id.name, variantClassMap);
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
if (init.type === "CallExpression" && init.callee?.type === "Identifier" && init.callee.name === "createComponentStyler" && init.arguments[0]?.type === "StringLiteral" && id?.type === "Identifier") {
|
|
225
|
+
stylerToComponent.set(id.name, init.arguments[0].value);
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
if (init.type === "CallExpression" && init.callee?.type === "Identifier" && id?.type === "Identifier") {
|
|
229
|
+
const componentName = stylerToComponent.get(init.callee.name);
|
|
230
|
+
if (componentName) classesVarToComponent.set(id.name, componentName);
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
if (init.type === "CallExpression" && init.callee?.type === "MemberExpression" && init.callee.property?.name === "resolve" && init.callee.object?.type === "Identifier" && id?.type === "ObjectPattern") {
|
|
234
|
+
const componentName = stylerToComponent.get(init.callee.object.name);
|
|
235
|
+
if (componentName) {
|
|
236
|
+
for (const prop of id.properties) if (prop.type === "ObjectProperty" && prop.key?.type === "Identifier" && prop.key.name === "classes") {
|
|
237
|
+
const valueName = prop.value?.type === "Identifier" ? prop.value.name : "classes";
|
|
238
|
+
classesVarToComponent.set(valueName, componentName);
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
CallExpression(nodePath) {
|
|
245
|
+
const callee = nodePath.node.callee;
|
|
246
|
+
if (callee.type !== "Identifier") return;
|
|
247
|
+
if (isCompiledJsxCallee(callee)) {
|
|
248
|
+
const firstArg = nodePath.node.arguments[0];
|
|
249
|
+
if (t.isIdentifier(firstArg) && isUdsComponentReference(nodePath, firstArg.name, allUdsComponents, udsImportedNames, createComponentDefinedNames, customComponents) && styleRuntime.transformCompiledJsxStyleProps(nodePath.node, hoistedVariantClassMapNames, hoistedVariantClassMaps)) transformed = true;
|
|
250
|
+
const compiledResult = handleCompiledJsxDataAttrs(nodePath.node, classesVarToComponent, stylerToComponent, slotPropsVarToComponent, manifest);
|
|
251
|
+
if (compiledResult.transformed) transformed = true;
|
|
252
|
+
if (compiledResult.needsMotionImport) needsMotionImport = true;
|
|
253
|
+
if (compiledResult.needsResolveMotionStateImport) needsResolveMotionStateImport = true;
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
const isCreateComponentCall = createComponentImportNames.has(callee.name) || createComponentImportNames.size === 0 && callee.name === "createComponent";
|
|
257
|
+
if (!isCreateComponentCall) return;
|
|
258
|
+
const args = nodePath.node.arguments;
|
|
259
|
+
const componentName = inferCreateComponentNameFromAssignment(nodePath);
|
|
260
|
+
if (!componentName) return;
|
|
261
|
+
createComponentDefinedNames.add(componentName);
|
|
262
|
+
let renderFn = null;
|
|
263
|
+
if (isCreateComponentCall) {
|
|
264
|
+
if (args.length >= 2 && args[0]?.type === "StringLiteral" && isCreateComponentRenderFnNode(args[1])) throw nodePath.buildCodeFrameError("createComponent(\"Name\", renderFn) is no longer supported. Use createComponent(renderFn).");
|
|
265
|
+
const isPrimitiveCreateComponentCall = args.length === 1 && t.isStringLiteral(args[0]);
|
|
266
|
+
if (!(args.length === 1 && isCreateComponentRenderFnNode(args[0])) && !isPrimitiveCreateComponentCall) return;
|
|
267
|
+
if (isCreateComponentRenderFnNode(args[0])) renderFn = args[0];
|
|
268
|
+
}
|
|
269
|
+
if (renderFn) {
|
|
270
|
+
const classesParam = findClassesParamName(renderFn);
|
|
271
|
+
if (classesParam) classesVarToComponent.set(classesParam, componentName);
|
|
272
|
+
const slotPropsParam = findSlotPropsParamName(renderFn);
|
|
273
|
+
if (slotPropsParam) slotPropsVarToComponent.set(slotPropsParam, componentName);
|
|
274
|
+
}
|
|
275
|
+
const loweredData = resolveLoweredCreateComponentData(componentName, renderFn ? extractOwnPropKeys(renderFn) : [], manifest, transformData);
|
|
276
|
+
if (args.length === 1 && t.isStringLiteral(args[0])) {
|
|
277
|
+
loweredData.rootElement = args[0].value;
|
|
278
|
+
if (canInlineSimpleLoweredComponent(loweredData)) {
|
|
279
|
+
const primitiveResult = buildInlineSimplePrimitiveCreateComponentRenderFn(loweredData);
|
|
280
|
+
nodePath.replaceWith(primitiveResult.expression);
|
|
281
|
+
if (primitiveResult.needsProcessStylePropsImport) needsProcessStylePropsImport = true;
|
|
282
|
+
needsCreateComponentImportCleanup = true;
|
|
283
|
+
transformed = true;
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
nodePath.replaceWith(t.callExpression(t.cloneNode(callee), [buildLoweredCreateComponentConfigExpression(loweredData), t.cloneNode(args[0], true)]));
|
|
287
|
+
transformed = true;
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
if (canInlineSimpleLoweredComponent(loweredData)) {
|
|
291
|
+
const inlineResult = buildInlineSimpleLoweredCreateComponentRenderFn(loweredData, renderFn);
|
|
292
|
+
nodePath.replaceWith(inlineResult.expression);
|
|
293
|
+
if (inlineResult.needsMotionImport) needsMotionImport = true;
|
|
294
|
+
if (inlineResult.needsAnimatePresenceImport) needsAnimatePresenceImport = true;
|
|
295
|
+
if (inlineResult.needsResolveMotionStateImport) needsResolveMotionStateImport = true;
|
|
296
|
+
needsCreateComponentImportCleanup = true;
|
|
297
|
+
transformed = true;
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
if (!renderFn) return;
|
|
301
|
+
nodePath.replaceWith(t.callExpression(t.cloneNode(callee), [buildLoweredCreateComponentConfigExpression(loweredData), t.cloneNode(renderFn, true)]));
|
|
302
|
+
transformed = true;
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
if (needsCreateComponentImportCleanup) traverse(ast, { ImportDeclaration(nodePath) {
|
|
306
|
+
const importSource = nodePath.node.source?.value;
|
|
307
|
+
if (!importSource) return;
|
|
308
|
+
if (!isUdsImportSource(importSource)) return;
|
|
309
|
+
const nextSpecifiers = nodePath.node.specifiers.filter((specifier) => {
|
|
310
|
+
if (specifier.type !== "ImportSpecifier") return true;
|
|
311
|
+
const importedName = specifier.imported?.type === "Identifier" ? specifier.imported.name : specifier.imported?.value;
|
|
312
|
+
if (importedName !== "createComponent") return true;
|
|
313
|
+
const localName = specifier.local?.name ?? importedName;
|
|
314
|
+
nodePath.scope.crawl();
|
|
315
|
+
const binding = nodePath.scope.getBinding(localName);
|
|
316
|
+
return Boolean(binding?.referenced);
|
|
317
|
+
});
|
|
318
|
+
if (nextSpecifiers.length === nodePath.node.specifiers.length) return;
|
|
319
|
+
if (nextSpecifiers.length === 0) {
|
|
320
|
+
nodePath.remove();
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
nodePath.node.specifiers = nextSpecifiers;
|
|
324
|
+
} });
|
|
325
|
+
if (!transformed) return source;
|
|
326
|
+
const sourceDir = path.dirname(resourcePath || projectRoot);
|
|
327
|
+
for (const [componentName, importPath] of importsToAdd) {
|
|
328
|
+
const absoluteImport = path.resolve(projectRoot, importPath);
|
|
329
|
+
let resolvedPath = path.relative(sourceDir, absoluteImport);
|
|
330
|
+
if (!resolvedPath.startsWith(".")) resolvedPath = `./${resolvedPath}`;
|
|
331
|
+
ast.program.body.unshift(t.importDeclaration([t.importSpecifier(t.identifier(componentName), t.identifier(componentName))], t.stringLiteral(resolvedPath)));
|
|
332
|
+
}
|
|
333
|
+
const motionImportSpecifiers = [];
|
|
334
|
+
if (needsMotionImport && !hasMotionImport) motionImportSpecifiers.push(t.importSpecifier(t.identifier("motion"), t.identifier("motion")));
|
|
335
|
+
if (needsAnimatePresenceImport && !hasAnimatePresenceImport) motionImportSpecifiers.push(t.importSpecifier(t.identifier("AnimatePresence"), t.identifier("AnimatePresence")));
|
|
336
|
+
if (motionImportSpecifiers.length > 0) ast.program.body.unshift(t.importDeclaration(motionImportSpecifiers, t.stringLiteral("motion/react")));
|
|
337
|
+
if (needsProcessStylePropsImport) {
|
|
338
|
+
if (!ast.program.body.some((node) => t.isImportDeclaration(node) && node.specifiers.some((s) => t.isImportSpecifier(s) && (t.isIdentifier(s.imported) && s.imported.name === "processStyleProps" || t.isStringLiteral(s.imported) && s.imported.value === "processStyleProps")))) ast.program.body.unshift(t.importDeclaration([t.importSpecifier(t.identifier("processStyleProps"), t.identifier("processStyleProps"))], t.stringLiteral("@uds/core")));
|
|
339
|
+
}
|
|
340
|
+
if (needsResolveMotionStateImport) ast.program.body.unshift(t.importDeclaration([t.importSpecifier(t.identifier("__rms"), t.identifier("resolveMotionState"))], t.stringLiteral("@uds/core")));
|
|
341
|
+
const motionStatesMap = getHoistedMotionStates();
|
|
342
|
+
if (motionStatesMap.size > 0) for (const [varName, statesConfig] of motionStatesMap) ast.program.body.unshift(t.variableDeclaration("const", [t.variableDeclarator(t.identifier(varName), t.valueToNode(statesConfig))]));
|
|
343
|
+
if (hoistedVariantClassMaps.size > 0) {
|
|
344
|
+
const declarations = [];
|
|
345
|
+
for (const [lookupName, classMap] of hoistedVariantClassMaps) declarations.push(t.variableDeclaration("const", [t.variableDeclarator(t.identifier(lookupName), t.objectExpression(Object.entries(classMap).map(([variantName, className]) => t.objectProperty(t.stringLiteral(variantName), t.stringLiteral(className)))))]));
|
|
346
|
+
const firstNonImportIndex = ast.program.body.findIndex((node) => node.type !== "ImportDeclaration");
|
|
347
|
+
if (firstNonImportIndex === -1) ast.program.body.push(...declarations);
|
|
348
|
+
else ast.program.body.splice(firstNonImportIndex, 0, ...declarations);
|
|
349
|
+
}
|
|
350
|
+
return generate(ast, {
|
|
351
|
+
retainLines: true,
|
|
352
|
+
sourceMaps: false
|
|
353
|
+
}).code;
|
|
354
|
+
};
|
|
355
|
+
const normal = transformLoader;
|
|
356
|
+
//#endregion
|
|
357
|
+
export { normal, transformLoader };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NextConfig } from "next";
|
|
2
|
+
|
|
3
|
+
//#region ../loader/dist/next.d.ts
|
|
4
|
+
//#region src/next.d.ts
|
|
5
|
+
interface WithUdsOptions {
|
|
6
|
+
/** Output directory for generated files (default: '.uds') */
|
|
7
|
+
outputDir?: string;
|
|
8
|
+
/** Skip addDependency calls to prevent webpack from watching .uds/ artifacts.
|
|
9
|
+
* Use this when the app has its own reload mechanism (e.g., Studio WebSocket). */
|
|
10
|
+
skipWatchDependencies?: boolean;
|
|
11
|
+
}
|
|
12
|
+
type NextConfigFn = (phase: string, ctx: {
|
|
13
|
+
defaultConfig: NextConfig;
|
|
14
|
+
}) => NextConfig | Promise<NextConfig>;
|
|
15
|
+
declare function withUds(nextConfigOrFn: NextConfig | NextConfigFn, options?: WithUdsOptions): NextConfig | NextConfigFn; //#endregion
|
|
16
|
+
//#endregion
|
|
17
|
+
export { WithUdsOptions, withUds };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { __require } from "./_virtual/_rolldown/runtime.js";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
//#region ../loader/dist/next.js
|
|
4
|
+
function resolveLoaderPath() {
|
|
5
|
+
return __require.resolve("@uds/loader/loader");
|
|
6
|
+
}
|
|
7
|
+
function applyUds(nextConfig, options) {
|
|
8
|
+
const outputDir = options?.outputDir ?? ".uds";
|
|
9
|
+
const skipWatch = options?.skipWatchDependencies ?? false;
|
|
10
|
+
const manifestPath = path.resolve(process.cwd(), outputDir, "meta-loader.json");
|
|
11
|
+
const loaderPath = resolveLoaderPath();
|
|
12
|
+
const turbopack = nextConfig.turbopack ?? {};
|
|
13
|
+
const existingRules = turbopack.rules ?? {};
|
|
14
|
+
const udsLoader = {
|
|
15
|
+
loader: loaderPath,
|
|
16
|
+
options: {
|
|
17
|
+
manifestPath,
|
|
18
|
+
isDev: true,
|
|
19
|
+
skipWatchDependencies: skipWatch
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const udsRules = {};
|
|
23
|
+
for (const ext of [
|
|
24
|
+
"tsx",
|
|
25
|
+
"ts",
|
|
26
|
+
"js"
|
|
27
|
+
]) {
|
|
28
|
+
const key = `*.${ext}`;
|
|
29
|
+
const udsKey = `**/*.${ext}`;
|
|
30
|
+
if (existingRules[key]) udsRules[udsKey] = { loaders: [udsLoader] };
|
|
31
|
+
else udsRules[key] = { loaders: [udsLoader] };
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
...nextConfig,
|
|
35
|
+
turbopack: {
|
|
36
|
+
...turbopack,
|
|
37
|
+
rules: {
|
|
38
|
+
...existingRules,
|
|
39
|
+
...udsRules
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
webpack(config, webpackOptions) {
|
|
43
|
+
config.module?.rules?.push({
|
|
44
|
+
test: /\.(tsx|ts|js)$/,
|
|
45
|
+
use: [{
|
|
46
|
+
loader: loaderPath,
|
|
47
|
+
options: {
|
|
48
|
+
manifestPath,
|
|
49
|
+
isDev: webpackOptions.dev,
|
|
50
|
+
skipWatchDependencies: skipWatch
|
|
51
|
+
}
|
|
52
|
+
}]
|
|
53
|
+
});
|
|
54
|
+
if (skipWatch) {
|
|
55
|
+
const existing = config.watchOptions?.ignored;
|
|
56
|
+
config.watchOptions = {
|
|
57
|
+
...config.watchOptions,
|
|
58
|
+
ignored: [
|
|
59
|
+
...Array.isArray(existing) ? existing : existing ? [existing] : [],
|
|
60
|
+
"**/.uds/**",
|
|
61
|
+
"**/uds.config.ts"
|
|
62
|
+
]
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
if (typeof nextConfig.webpack === "function") return nextConfig.webpack(config, webpackOptions);
|
|
66
|
+
return config;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function withUds(nextConfigOrFn, options) {
|
|
71
|
+
if (typeof nextConfigOrFn === "function") return async (phase, ctx) => {
|
|
72
|
+
return applyUds(await nextConfigOrFn(phase, ctx), options);
|
|
73
|
+
};
|
|
74
|
+
return applyUds(nextConfigOrFn, options);
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
export { withUds };
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_react } from "../index.js";
|
|
3
|
+
//#region ../loader/dist/node_modules/react/cjs/react-jsx-runtime.development.js
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* react-jsx-runtime.development.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14
|
+
(function() {
|
|
15
|
+
function getComponentNameFromType(type) {
|
|
16
|
+
if (null == type) return null;
|
|
17
|
+
if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
18
|
+
if ("string" === typeof type) return type;
|
|
19
|
+
switch (type) {
|
|
20
|
+
case REACT_FRAGMENT_TYPE: return "Fragment";
|
|
21
|
+
case REACT_PROFILER_TYPE: return "Profiler";
|
|
22
|
+
case REACT_STRICT_MODE_TYPE: return "StrictMode";
|
|
23
|
+
case REACT_SUSPENSE_TYPE: return "Suspense";
|
|
24
|
+
case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
|
|
25
|
+
case REACT_ACTIVITY_TYPE: return "Activity";
|
|
26
|
+
}
|
|
27
|
+
if ("object" === typeof type) switch ("number" === typeof type.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) {
|
|
28
|
+
case REACT_PORTAL_TYPE: return "Portal";
|
|
29
|
+
case REACT_CONTEXT_TYPE: return type.displayName || "Context";
|
|
30
|
+
case REACT_CONSUMER_TYPE: return (type._context.displayName || "Context") + ".Consumer";
|
|
31
|
+
case REACT_FORWARD_REF_TYPE:
|
|
32
|
+
var innerType = type.render;
|
|
33
|
+
type = type.displayName;
|
|
34
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
35
|
+
return type;
|
|
36
|
+
case REACT_MEMO_TYPE: return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
37
|
+
case REACT_LAZY_TYPE:
|
|
38
|
+
innerType = type._payload;
|
|
39
|
+
type = type._init;
|
|
40
|
+
try {
|
|
41
|
+
return getComponentNameFromType(type(innerType));
|
|
42
|
+
} catch (x) {}
|
|
43
|
+
}
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
function testStringCoercion(value) {
|
|
47
|
+
return "" + value;
|
|
48
|
+
}
|
|
49
|
+
function checkKeyStringCoercion(value) {
|
|
50
|
+
try {
|
|
51
|
+
testStringCoercion(value);
|
|
52
|
+
var JSCompiler_inline_result = !1;
|
|
53
|
+
} catch (e) {
|
|
54
|
+
JSCompiler_inline_result = !0;
|
|
55
|
+
}
|
|
56
|
+
if (JSCompiler_inline_result) {
|
|
57
|
+
JSCompiler_inline_result = console;
|
|
58
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
59
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
60
|
+
JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
|
|
61
|
+
return testStringCoercion(value);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function getTaskName(type) {
|
|
65
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
66
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) return "<...>";
|
|
67
|
+
try {
|
|
68
|
+
var name = getComponentNameFromType(type);
|
|
69
|
+
return name ? "<" + name + ">" : "<...>";
|
|
70
|
+
} catch (x) {
|
|
71
|
+
return "<...>";
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function getOwner() {
|
|
75
|
+
var dispatcher = ReactSharedInternals.A;
|
|
76
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
77
|
+
}
|
|
78
|
+
function UnknownOwner() {
|
|
79
|
+
return Error("react-stack-top-frame");
|
|
80
|
+
}
|
|
81
|
+
function hasValidKey(config) {
|
|
82
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
83
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
84
|
+
if (getter && getter.isReactWarning) return !1;
|
|
85
|
+
}
|
|
86
|
+
return void 0 !== config.key;
|
|
87
|
+
}
|
|
88
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
89
|
+
function warnAboutAccessingKey() {
|
|
90
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
|
|
91
|
+
}
|
|
92
|
+
warnAboutAccessingKey.isReactWarning = !0;
|
|
93
|
+
Object.defineProperty(props, "key", {
|
|
94
|
+
get: warnAboutAccessingKey,
|
|
95
|
+
configurable: !0
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
99
|
+
var componentName = getComponentNameFromType(this.type);
|
|
100
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
|
|
101
|
+
componentName = this.props.ref;
|
|
102
|
+
return void 0 !== componentName ? componentName : null;
|
|
103
|
+
}
|
|
104
|
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
105
|
+
var refProp = props.ref;
|
|
106
|
+
type = {
|
|
107
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
108
|
+
type,
|
|
109
|
+
key,
|
|
110
|
+
props,
|
|
111
|
+
_owner: owner
|
|
112
|
+
};
|
|
113
|
+
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
114
|
+
enumerable: !1,
|
|
115
|
+
get: elementRefGetterWithDeprecationWarning
|
|
116
|
+
}) : Object.defineProperty(type, "ref", {
|
|
117
|
+
enumerable: !1,
|
|
118
|
+
value: null
|
|
119
|
+
});
|
|
120
|
+
type._store = {};
|
|
121
|
+
Object.defineProperty(type._store, "validated", {
|
|
122
|
+
configurable: !1,
|
|
123
|
+
enumerable: !1,
|
|
124
|
+
writable: !0,
|
|
125
|
+
value: 0
|
|
126
|
+
});
|
|
127
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
128
|
+
configurable: !1,
|
|
129
|
+
enumerable: !1,
|
|
130
|
+
writable: !0,
|
|
131
|
+
value: null
|
|
132
|
+
});
|
|
133
|
+
Object.defineProperty(type, "_debugStack", {
|
|
134
|
+
configurable: !1,
|
|
135
|
+
enumerable: !1,
|
|
136
|
+
writable: !0,
|
|
137
|
+
value: debugStack
|
|
138
|
+
});
|
|
139
|
+
Object.defineProperty(type, "_debugTask", {
|
|
140
|
+
configurable: !1,
|
|
141
|
+
enumerable: !1,
|
|
142
|
+
writable: !0,
|
|
143
|
+
value: debugTask
|
|
144
|
+
});
|
|
145
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
146
|
+
return type;
|
|
147
|
+
}
|
|
148
|
+
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
149
|
+
var children = config.children;
|
|
150
|
+
if (void 0 !== children) if (isStaticChildren) if (isArrayImpl(children)) {
|
|
151
|
+
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) validateChildKeys(children[isStaticChildren]);
|
|
152
|
+
Object.freeze && Object.freeze(children);
|
|
153
|
+
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
154
|
+
else validateChildKeys(children);
|
|
155
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
156
|
+
children = getComponentNameFromType(type);
|
|
157
|
+
var keys = Object.keys(config).filter(function(k) {
|
|
158
|
+
return "key" !== k;
|
|
159
|
+
});
|
|
160
|
+
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
161
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = !0);
|
|
162
|
+
}
|
|
163
|
+
children = null;
|
|
164
|
+
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
165
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
166
|
+
if ("key" in config) {
|
|
167
|
+
maybeKey = {};
|
|
168
|
+
for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
|
|
169
|
+
} else maybeKey = config;
|
|
170
|
+
children && defineKeyPropWarningGetter(maybeKey, "function" === typeof type ? type.displayName || type.name || "Unknown" : type);
|
|
171
|
+
return ReactElement(type, children, maybeKey, getOwner(), debugStack, debugTask);
|
|
172
|
+
}
|
|
173
|
+
function validateChildKeys(node) {
|
|
174
|
+
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
175
|
+
}
|
|
176
|
+
function isValidElement(object) {
|
|
177
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
178
|
+
}
|
|
179
|
+
var React = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
180
|
+
return null;
|
|
181
|
+
};
|
|
182
|
+
React = { react_stack_bottom_frame: function(callStackForError) {
|
|
183
|
+
return callStackForError();
|
|
184
|
+
} };
|
|
185
|
+
var specialPropKeyWarningShown;
|
|
186
|
+
var didWarnAboutElementRef = {};
|
|
187
|
+
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(React, UnknownOwner)();
|
|
188
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
189
|
+
var didWarnAboutKeySpread = {};
|
|
190
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
191
|
+
exports.jsx = function(type, config, maybeKey) {
|
|
192
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
193
|
+
return jsxDEVImpl(type, config, maybeKey, !1, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
194
|
+
};
|
|
195
|
+
exports.jsxs = function(type, config, maybeKey) {
|
|
196
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
197
|
+
return jsxDEVImpl(type, config, maybeKey, !0, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
198
|
+
};
|
|
199
|
+
})();
|
|
200
|
+
}));
|
|
201
|
+
require_react_jsx_runtime_development();
|
|
202
|
+
//#endregion
|
|
203
|
+
export { require_react_jsx_runtime_development };
|