@tachui/core 0.7.0-alpha1 → 0.7.1-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +195 -0
- package/dist/ScrollView-h-6wYMAm.js +515 -0
- package/dist/Spacer-BbteDQ9I.js +5337 -0
- package/dist/binding-CmdpowkI.js +2276 -0
- package/dist/bundles/minimal.d.ts +30 -4
- package/dist/bundles/minimal.d.ts.map +1 -1
- package/dist/common.js +825 -954
- package/dist/compiler/index.js +1386 -10
- package/dist/components/index.js +4166 -101
- package/dist/concatenated-component-DPcl2TEO.js +6779 -0
- package/dist/{runtime/context.js → context--zQFIImS.js} +65 -71
- package/dist/debug.js +0 -1
- package/dist/dom-bridge-Cx-s6Ihx.js +406 -0
- package/dist/effect-CytAc9em.js +66 -0
- package/dist/essential.js +825 -954
- package/dist/index-Nfi2SBQh.js +3268 -0
- package/dist/index.js +825 -954
- package/dist/minimal-prod.js +162 -191
- package/dist/minimal.js +183 -957
- package/dist/modifiers/responsive/index.d.ts +10 -9
- package/dist/modifiers/responsive/index.d.ts.map +1 -1
- package/dist/plugins/index.js +543 -32
- package/dist/reactive/index.js +490 -93
- package/dist/runtime/dom-bridge.js +12 -239
- package/dist/runtime/renderer.js +8 -388
- package/dist/scheduler-7SvC3a21.js +814 -0
- package/dist/validation/index.js +6614 -198
- package/dist/viewport/index.js +2002 -83
- package/package.json +3 -4
- package/dist/assets/Asset.cjs +0 -2
- package/dist/assets/Asset.cjs.map +0 -1
- package/dist/assets/Asset.js +0 -9
- package/dist/assets/Asset.js.map +0 -1
- package/dist/assets/AssetCollection.cjs +0 -2
- package/dist/assets/AssetCollection.cjs.map +0 -1
- package/dist/assets/AssetCollection.js +0 -44
- package/dist/assets/AssetCollection.js.map +0 -1
- package/dist/assets/ColorAsset.cjs +0 -2
- package/dist/assets/ColorAsset.cjs.map +0 -1
- package/dist/assets/ColorAsset.js +0 -114
- package/dist/assets/ColorAsset.js.map +0 -1
- package/dist/assets/FontAsset.cjs +0 -9
- package/dist/assets/FontAsset.cjs.map +0 -1
- package/dist/assets/FontAsset.js +0 -173
- package/dist/assets/FontAsset.js.map +0 -1
- package/dist/assets/ImageAsset.cjs +0 -2
- package/dist/assets/ImageAsset.cjs.map +0 -1
- package/dist/assets/ImageAsset.js +0 -39
- package/dist/assets/ImageAsset.js.map +0 -1
- package/dist/assets/index.cjs +0 -2
- package/dist/assets/index.cjs.map +0 -1
- package/dist/assets/index.js +0 -119
- package/dist/assets/index.js.map +0 -1
- package/dist/common.cjs +0 -2
- package/dist/common.cjs.map +0 -1
- package/dist/common.js.map +0 -1
- package/dist/compiler/advanced-parser.cjs +0 -5
- package/dist/compiler/advanced-parser.cjs.map +0 -1
- package/dist/compiler/advanced-parser.js +0 -440
- package/dist/compiler/advanced-parser.js.map +0 -1
- package/dist/compiler/codegen.cjs +0 -6
- package/dist/compiler/codegen.cjs.map +0 -1
- package/dist/compiler/codegen.js +0 -241
- package/dist/compiler/codegen.js.map +0 -1
- package/dist/compiler/enhanced-codegen.cjs +0 -6
- package/dist/compiler/enhanced-codegen.cjs.map +0 -1
- package/dist/compiler/enhanced-codegen.js +0 -347
- package/dist/compiler/enhanced-codegen.js.map +0 -1
- package/dist/compiler/index.cjs +0 -2
- package/dist/compiler/index.cjs.map +0 -1
- package/dist/compiler/index.js.map +0 -1
- package/dist/compiler/parser.cjs +0 -5
- package/dist/compiler/parser.cjs.map +0 -1
- package/dist/compiler/parser.js +0 -275
- package/dist/compiler/parser.js.map +0 -1
- package/dist/compiler/plugin.cjs +0 -33
- package/dist/compiler/plugin.cjs.map +0 -1
- package/dist/compiler/plugin.js +0 -103
- package/dist/compiler/plugin.js.map +0 -1
- package/dist/components/BasicInput.cjs +0 -2
- package/dist/components/BasicInput.cjs.map +0 -1
- package/dist/components/BasicInput.js +0 -182
- package/dist/components/BasicInput.js.map +0 -1
- package/dist/components/Button.cjs +0 -7
- package/dist/components/Button.cjs.map +0 -1
- package/dist/components/Button.js +0 -408
- package/dist/components/Button.js.map +0 -1
- package/dist/components/Divider.cjs +0 -2
- package/dist/components/Divider.cjs.map +0 -1
- package/dist/components/Divider.js +0 -187
- package/dist/components/Divider.js.map +0 -1
- package/dist/components/EnhancedLink.cjs +0 -2
- package/dist/components/EnhancedLink.cjs.map +0 -1
- package/dist/components/EnhancedLink.js +0 -345
- package/dist/components/EnhancedLink.js.map +0 -1
- package/dist/components/Form.cjs +0 -2
- package/dist/components/Form.cjs.map +0 -1
- package/dist/components/Form.js +0 -244
- package/dist/components/Form.js.map +0 -1
- package/dist/components/Grid.cjs +0 -2
- package/dist/components/Grid.cjs.map +0 -1
- package/dist/components/Grid.js +0 -1045
- package/dist/components/Grid.js.map +0 -1
- package/dist/components/GridResponsive.cjs +0 -2
- package/dist/components/GridResponsive.cjs.map +0 -1
- package/dist/components/GridResponsive.js +0 -382
- package/dist/components/GridResponsive.js.map +0 -1
- package/dist/components/Image.cjs +0 -2
- package/dist/components/Image.cjs.map +0 -1
- package/dist/components/Image.js +0 -212
- package/dist/components/Image.js.map +0 -1
- package/dist/components/List.cjs +0 -2
- package/dist/components/List.cjs.map +0 -1
- package/dist/components/List.js +0 -561
- package/dist/components/List.js.map +0 -1
- package/dist/components/Menu.cjs +0 -2
- package/dist/components/Menu.cjs.map +0 -1
- package/dist/components/Menu.js +0 -443
- package/dist/components/Menu.js.map +0 -1
- package/dist/components/Picker.cjs +0 -2
- package/dist/components/Picker.cjs.map +0 -1
- package/dist/components/Picker.js +0 -478
- package/dist/components/Picker.js.map +0 -1
- package/dist/components/ScrollView.cjs +0 -6
- package/dist/components/ScrollView.cjs.map +0 -1
- package/dist/components/ScrollView.js +0 -363
- package/dist/components/ScrollView.js.map +0 -1
- package/dist/components/Section.cjs +0 -2
- package/dist/components/Section.cjs.map +0 -1
- package/dist/components/Section.js +0 -323
- package/dist/components/Section.js.map +0 -1
- package/dist/components/Show.cjs +0 -2
- package/dist/components/Show.cjs.map +0 -1
- package/dist/components/Show.js +0 -112
- package/dist/components/Show.js.map +0 -1
- package/dist/components/Spacer.cjs +0 -2
- package/dist/components/Spacer.cjs.map +0 -1
- package/dist/components/Spacer.js +0 -53
- package/dist/components/Spacer.js.map +0 -1
- package/dist/components/Text.cjs +0 -2
- package/dist/components/Text.cjs.map +0 -1
- package/dist/components/Text.js +0 -193
- package/dist/components/Text.js.map +0 -1
- package/dist/components/Toggle.cjs +0 -2
- package/dist/components/Toggle.cjs.map +0 -1
- package/dist/components/Toggle.js +0 -477
- package/dist/components/Toggle.js.map +0 -1
- package/dist/components/index.cjs +0 -2
- package/dist/components/index.cjs.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/wrapper.cjs +0 -2
- package/dist/components/wrapper.cjs.map +0 -1
- package/dist/components/wrapper.js +0 -484
- package/dist/components/wrapper.js.map +0 -1
- package/dist/concatenation/concatenatable.cjs +0 -2
- package/dist/concatenation/concatenatable.cjs.map +0 -1
- package/dist/concatenation/concatenatable.js +0 -118
- package/dist/concatenation/concatenatable.js.map +0 -1
- package/dist/concatenation/concatenated-component.cjs +0 -2
- package/dist/concatenation/concatenated-component.cjs.map +0 -1
- package/dist/concatenation/concatenated-component.js +0 -276
- package/dist/concatenation/concatenated-component.js.map +0 -1
- package/dist/concatenation/text-optimizer.cjs +0 -2
- package/dist/concatenation/text-optimizer.cjs.map +0 -1
- package/dist/concatenation/text-optimizer.js +0 -236
- package/dist/concatenation/text-optimizer.js.map +0 -1
- package/dist/concatenation/types.cjs +0 -2
- package/dist/concatenation/types.cjs.map +0 -1
- package/dist/concatenation/types.js +0 -13
- package/dist/concatenation/types.js.map +0 -1
- package/dist/constants/frame-utils.cjs +0 -2
- package/dist/constants/frame-utils.cjs.map +0 -1
- package/dist/constants/frame-utils.js +0 -116
- package/dist/constants/frame-utils.js.map +0 -1
- package/dist/constants/layout.cjs +0 -2
- package/dist/constants/layout.cjs.map +0 -1
- package/dist/constants/layout.js +0 -46
- package/dist/constants/layout.js.map +0 -1
- package/dist/css-classes/component-base.cjs +0 -2
- package/dist/css-classes/component-base.cjs.map +0 -1
- package/dist/css-classes/component-base.js +0 -62
- package/dist/css-classes/component-base.js.map +0 -1
- package/dist/css-classes/css-class-manager.cjs +0 -2
- package/dist/css-classes/css-class-manager.cjs.map +0 -1
- package/dist/css-classes/css-class-manager.js +0 -209
- package/dist/css-classes/css-class-manager.js.map +0 -1
- package/dist/css-classes/dom-integration.cjs +0 -2
- package/dist/css-classes/dom-integration.cjs.map +0 -1
- package/dist/css-classes/dom-integration.js +0 -67
- package/dist/css-classes/dom-integration.js.map +0 -1
- package/dist/css-classes/enhanced-renderer.cjs +0 -2
- package/dist/css-classes/enhanced-renderer.cjs.map +0 -1
- package/dist/css-classes/enhanced-renderer.js +0 -73
- package/dist/css-classes/enhanced-renderer.js.map +0 -1
- package/dist/css-classes/utilities.cjs +0 -2
- package/dist/css-classes/utilities.cjs.map +0 -1
- package/dist/css-classes/utilities.js +0 -41
- package/dist/css-classes/utilities.js.map +0 -1
- package/dist/debug.cjs +0 -52
- package/dist/debug.cjs.map +0 -1
- package/dist/debug.js.map +0 -1
- package/dist/essential.cjs +0 -2
- package/dist/essential.cjs.map +0 -1
- package/dist/essential.js.map +0 -1
- package/dist/gradients/css-generator.cjs +0 -2
- package/dist/gradients/css-generator.cjs.map +0 -1
- package/dist/gradients/css-generator.js +0 -100
- package/dist/gradients/css-generator.js.map +0 -1
- package/dist/gradients/examples.cjs +0 -2
- package/dist/gradients/examples.cjs.map +0 -1
- package/dist/gradients/examples.js +0 -555
- package/dist/gradients/examples.js.map +0 -1
- package/dist/gradients/gradient-asset.cjs +0 -2
- package/dist/gradients/gradient-asset.cjs.map +0 -1
- package/dist/gradients/gradient-asset.js +0 -22
- package/dist/gradients/gradient-asset.js.map +0 -1
- package/dist/gradients/index.cjs +0 -2
- package/dist/gradients/index.cjs.map +0 -1
- package/dist/gradients/index.js +0 -78
- package/dist/gradients/index.js.map +0 -1
- package/dist/gradients/performance.cjs +0 -2
- package/dist/gradients/performance.cjs.map +0 -1
- package/dist/gradients/performance.js +0 -237
- package/dist/gradients/performance.js.map +0 -1
- package/dist/gradients/presets.cjs +0 -2
- package/dist/gradients/presets.cjs.map +0 -1
- package/dist/gradients/presets.js +0 -254
- package/dist/gradients/presets.js.map +0 -1
- package/dist/gradients/reactive.cjs +0 -2
- package/dist/gradients/reactive.cjs.map +0 -1
- package/dist/gradients/reactive.js +0 -239
- package/dist/gradients/reactive.js.map +0 -1
- package/dist/gradients/state-gradient-asset.cjs +0 -2
- package/dist/gradients/state-gradient-asset.cjs.map +0 -1
- package/dist/gradients/state-gradient-asset.js +0 -111
- package/dist/gradients/state-gradient-asset.js.map +0 -1
- package/dist/gradients/utils.cjs +0 -2
- package/dist/gradients/utils.cjs.map +0 -1
- package/dist/gradients/utils.js +0 -385
- package/dist/gradients/utils.js.map +0 -1
- package/dist/gradients/validation.cjs +0 -2
- package/dist/gradients/validation.cjs.map +0 -1
- package/dist/gradients/validation.js +0 -209
- package/dist/gradients/validation.js.map +0 -1
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index2.cjs +0 -2
- package/dist/index2.cjs.map +0 -1
- package/dist/index2.js +0 -293
- package/dist/index2.js.map +0 -1
- package/dist/lifecycle/hooks.cjs +0 -2
- package/dist/lifecycle/hooks.cjs.map +0 -1
- package/dist/lifecycle/hooks.js +0 -159
- package/dist/lifecycle/hooks.js.map +0 -1
- package/dist/minimal-prod.cjs +0 -2
- package/dist/minimal-prod.cjs.map +0 -1
- package/dist/minimal-prod.js.map +0 -1
- package/dist/minimal.cjs +0 -2
- package/dist/minimal.cjs.map +0 -1
- package/dist/minimal.js.map +0 -1
- package/dist/modifiers/as-html-validator.cjs +0 -2
- package/dist/modifiers/as-html-validator.cjs.map +0 -1
- package/dist/modifiers/as-html-validator.js +0 -47
- package/dist/modifiers/as-html-validator.js.map +0 -1
- package/dist/modifiers/as-html.cjs +0 -2
- package/dist/modifiers/as-html.cjs.map +0 -1
- package/dist/modifiers/as-html.js +0 -71
- package/dist/modifiers/as-html.js.map +0 -1
- package/dist/modifiers/attributes.cjs +0 -2
- package/dist/modifiers/attributes.cjs.map +0 -1
- package/dist/modifiers/attributes.js +0 -272
- package/dist/modifiers/attributes.js.map +0 -1
- package/dist/modifiers/backdrop.cjs +0 -2
- package/dist/modifiers/backdrop.cjs.map +0 -1
- package/dist/modifiers/backdrop.js +0 -109
- package/dist/modifiers/backdrop.js.map +0 -1
- package/dist/modifiers/background.cjs +0 -2
- package/dist/modifiers/background.cjs.map +0 -1
- package/dist/modifiers/background.js +0 -67
- package/dist/modifiers/background.js.map +0 -1
- package/dist/modifiers/base.cjs +0 -25
- package/dist/modifiers/base.cjs.map +0 -1
- package/dist/modifiers/base.js +0 -745
- package/dist/modifiers/base.js.map +0 -1
- package/dist/modifiers/basic-sanitizer.cjs +0 -2
- package/dist/modifiers/basic-sanitizer.cjs.map +0 -1
- package/dist/modifiers/basic-sanitizer.js +0 -162
- package/dist/modifiers/basic-sanitizer.js.map +0 -1
- package/dist/modifiers/border.cjs +0 -2
- package/dist/modifiers/border.cjs.map +0 -1
- package/dist/modifiers/border.js +0 -160
- package/dist/modifiers/border.js.map +0 -1
- package/dist/modifiers/builder.cjs +0 -2
- package/dist/modifiers/builder.cjs.map +0 -1
- package/dist/modifiers/builder.js +0 -930
- package/dist/modifiers/builder.js.map +0 -1
- package/dist/modifiers/core.cjs +0 -2
- package/dist/modifiers/core.cjs.map +0 -1
- package/dist/modifiers/core.js +0 -398
- package/dist/modifiers/core.js.map +0 -1
- package/dist/modifiers/css.cjs +0 -2
- package/dist/modifiers/css.cjs.map +0 -1
- package/dist/modifiers/css.js +0 -50
- package/dist/modifiers/css.js.map +0 -1
- package/dist/modifiers/effects.cjs +0 -2
- package/dist/modifiers/effects.cjs.map +0 -1
- package/dist/modifiers/effects.js +0 -178
- package/dist/modifiers/effects.js.map +0 -1
- package/dist/modifiers/elements.cjs +0 -2
- package/dist/modifiers/elements.cjs.map +0 -1
- package/dist/modifiers/elements.js +0 -216
- package/dist/modifiers/elements.js.map +0 -1
- package/dist/modifiers/filters.cjs +0 -2
- package/dist/modifiers/filters.cjs.map +0 -1
- package/dist/modifiers/filters.js +0 -223
- package/dist/modifiers/filters.js.map +0 -1
- package/dist/modifiers/flexbox.cjs +0 -2
- package/dist/modifiers/flexbox.cjs.map +0 -1
- package/dist/modifiers/flexbox.js +0 -56
- package/dist/modifiers/flexbox.js.map +0 -1
- package/dist/modifiers/font.cjs +0 -2
- package/dist/modifiers/font.cjs.map +0 -1
- package/dist/modifiers/font.js +0 -60
- package/dist/modifiers/font.js.map +0 -1
- package/dist/modifiers/grid.cjs +0 -2
- package/dist/modifiers/grid.cjs.map +0 -1
- package/dist/modifiers/grid.js +0 -92
- package/dist/modifiers/grid.js.map +0 -1
- package/dist/modifiers/margin.cjs +0 -2
- package/dist/modifiers/margin.cjs.map +0 -1
- package/dist/modifiers/margin.js +0 -65
- package/dist/modifiers/margin.js.map +0 -1
- package/dist/modifiers/padding.cjs +0 -2
- package/dist/modifiers/padding.cjs.map +0 -1
- package/dist/modifiers/padding.js +0 -109
- package/dist/modifiers/padding.js.map +0 -1
- package/dist/modifiers/registry.cjs +0 -2
- package/dist/modifiers/registry.cjs.map +0 -1
- package/dist/modifiers/registry.js +0 -163
- package/dist/modifiers/registry.js.map +0 -1
- package/dist/modifiers/responsive/advanced-utilities.cjs +0 -2
- package/dist/modifiers/responsive/advanced-utilities.cjs.map +0 -1
- package/dist/modifiers/responsive/advanced-utilities.js +0 -291
- package/dist/modifiers/responsive/advanced-utilities.js.map +0 -1
- package/dist/modifiers/responsive/breakpoints.cjs +0 -2
- package/dist/modifiers/responsive/breakpoints.cjs.map +0 -1
- package/dist/modifiers/responsive/breakpoints.js +0 -168
- package/dist/modifiers/responsive/breakpoints.js.map +0 -1
- package/dist/modifiers/responsive/css-generator.cjs +0 -5
- package/dist/modifiers/responsive/css-generator.cjs.map +0 -1
- package/dist/modifiers/responsive/css-generator.js +0 -261
- package/dist/modifiers/responsive/css-generator.js.map +0 -1
- package/dist/modifiers/responsive/dev-tools.cjs +0 -77
- package/dist/modifiers/responsive/dev-tools.cjs.map +0 -1
- package/dist/modifiers/responsive/dev-tools.js +0 -380
- package/dist/modifiers/responsive/dev-tools.js.map +0 -1
- package/dist/modifiers/responsive/layout-patterns.cjs +0 -2
- package/dist/modifiers/responsive/layout-patterns.cjs.map +0 -1
- package/dist/modifiers/responsive/layout-patterns.js +0 -254
- package/dist/modifiers/responsive/layout-patterns.js.map +0 -1
- package/dist/modifiers/responsive/performance.cjs +0 -3
- package/dist/modifiers/responsive/performance.cjs.map +0 -1
- package/dist/modifiers/responsive/performance.js +0 -212
- package/dist/modifiers/responsive/performance.js.map +0 -1
- package/dist/modifiers/responsive/responsive-builder.cjs +0 -2
- package/dist/modifiers/responsive/responsive-builder.cjs.map +0 -1
- package/dist/modifiers/responsive/responsive-builder.js +0 -272
- package/dist/modifiers/responsive/responsive-builder.js.map +0 -1
- package/dist/modifiers/responsive/responsive-modifier.cjs +0 -3
- package/dist/modifiers/responsive/responsive-modifier.cjs.map +0 -1
- package/dist/modifiers/responsive/responsive-modifier.js +0 -204
- package/dist/modifiers/responsive/responsive-modifier.js.map +0 -1
- package/dist/modifiers/responsive/types.cjs +0 -2
- package/dist/modifiers/responsive/types.cjs.map +0 -1
- package/dist/modifiers/responsive/types.js +0 -26
- package/dist/modifiers/responsive/types.js.map +0 -1
- package/dist/modifiers/responsive/utilities.cjs +0 -16
- package/dist/modifiers/responsive/utilities.cjs.map +0 -1
- package/dist/modifiers/responsive/utilities.js +0 -273
- package/dist/modifiers/responsive/utilities.js.map +0 -1
- package/dist/modifiers/scroll.cjs +0 -2
- package/dist/modifiers/scroll.cjs.map +0 -1
- package/dist/modifiers/scroll.js +0 -82
- package/dist/modifiers/scroll.js.map +0 -1
- package/dist/modifiers/shadows.cjs +0 -2
- package/dist/modifiers/shadows.cjs.map +0 -1
- package/dist/modifiers/shadows.js +0 -147
- package/dist/modifiers/shadows.js.map +0 -1
- package/dist/modifiers/size.cjs +0 -2
- package/dist/modifiers/size.cjs.map +0 -1
- package/dist/modifiers/size.js +0 -74
- package/dist/modifiers/size.js.map +0 -1
- package/dist/modifiers/text.cjs +0 -2
- package/dist/modifiers/text.cjs.map +0 -1
- package/dist/modifiers/text.js +0 -166
- package/dist/modifiers/text.js.map +0 -1
- package/dist/modifiers/transformations.cjs +0 -2
- package/dist/modifiers/transformations.cjs.map +0 -1
- package/dist/modifiers/transformations.js +0 -216
- package/dist/modifiers/transformations.js.map +0 -1
- package/dist/modifiers/transitions.cjs +0 -2
- package/dist/modifiers/transitions.cjs.map +0 -1
- package/dist/modifiers/transitions.js +0 -102
- package/dist/modifiers/transitions.js.map +0 -1
- package/dist/modifiers/types.cjs +0 -2
- package/dist/modifiers/types.cjs.map +0 -1
- package/dist/modifiers/types.js +0 -5
- package/dist/modifiers/types.js.map +0 -1
- package/dist/modifiers/typography.cjs +0 -2
- package/dist/modifiers/typography.cjs.map +0 -1
- package/dist/modifiers/typography.js +0 -76
- package/dist/modifiers/typography.js.map +0 -1
- package/dist/modifiers/utility.cjs +0 -2
- package/dist/modifiers/utility.cjs.map +0 -1
- package/dist/modifiers/utility.js +0 -71
- package/dist/modifiers/utility.js.map +0 -1
- package/dist/modifiers/utils.cjs +0 -2
- package/dist/modifiers/utils.cjs.map +0 -1
- package/dist/modifiers/utils.js +0 -250
- package/dist/modifiers/utils.js.map +0 -1
- package/dist/plugins/index.cjs +0 -2
- package/dist/plugins/index.cjs.map +0 -1
- package/dist/plugins/index.js.map +0 -1
- package/dist/plugins/legacy-adapter.cjs +0 -2
- package/dist/plugins/legacy-adapter.cjs.map +0 -1
- package/dist/plugins/legacy-adapter.js +0 -30
- package/dist/plugins/legacy-adapter.js.map +0 -1
- package/dist/plugins/simplified-component-registry.cjs +0 -2
- package/dist/plugins/simplified-component-registry.cjs.map +0 -1
- package/dist/plugins/simplified-component-registry.js +0 -71
- package/dist/plugins/simplified-component-registry.js.map +0 -1
- package/dist/plugins/simplified-error-handler.cjs +0 -2
- package/dist/plugins/simplified-error-handler.cjs.map +0 -1
- package/dist/plugins/simplified-error-handler.js +0 -154
- package/dist/plugins/simplified-error-handler.js.map +0 -1
- package/dist/plugins/simplified-lazy-loader.cjs +0 -2
- package/dist/plugins/simplified-lazy-loader.cjs.map +0 -1
- package/dist/plugins/simplified-lazy-loader.js +0 -129
- package/dist/plugins/simplified-lazy-loader.js.map +0 -1
- package/dist/plugins/simplified-plugin-manager.cjs +0 -2
- package/dist/plugins/simplified-plugin-manager.cjs.map +0 -1
- package/dist/plugins/simplified-plugin-manager.js +0 -51
- package/dist/plugins/simplified-plugin-manager.js.map +0 -1
- package/dist/plugins/simplified-tachui-instance.cjs +0 -2
- package/dist/plugins/simplified-tachui-instance.cjs.map +0 -1
- package/dist/plugins/simplified-tachui-instance.js +0 -88
- package/dist/plugins/simplified-tachui-instance.js.map +0 -1
- package/dist/plugins/simplified-types.cjs +0 -2
- package/dist/plugins/simplified-types.cjs.map +0 -1
- package/dist/plugins/simplified-types.js +0 -9
- package/dist/plugins/simplified-types.js.map +0 -1
- package/dist/plugins/simplified-utils.cjs +0 -2
- package/dist/plugins/simplified-utils.cjs.map +0 -1
- package/dist/plugins/simplified-utils.js +0 -40
- package/dist/plugins/simplified-utils.js.map +0 -1
- package/dist/reactive/cleanup.cjs +0 -2
- package/dist/reactive/cleanup.cjs.map +0 -1
- package/dist/reactive/cleanup.js +0 -62
- package/dist/reactive/cleanup.js.map +0 -1
- package/dist/reactive/computed.cjs +0 -2
- package/dist/reactive/computed.cjs.map +0 -1
- package/dist/reactive/computed.js +0 -121
- package/dist/reactive/computed.js.map +0 -1
- package/dist/reactive/context.cjs +0 -2
- package/dist/reactive/context.cjs.map +0 -1
- package/dist/reactive/context.js +0 -143
- package/dist/reactive/context.js.map +0 -1
- package/dist/reactive/effect.cjs +0 -2
- package/dist/reactive/effect.cjs.map +0 -1
- package/dist/reactive/effect.js +0 -67
- package/dist/reactive/effect.js.map +0 -1
- package/dist/reactive/enhanced-effect.cjs +0 -2
- package/dist/reactive/enhanced-effect.cjs.map +0 -1
- package/dist/reactive/enhanced-effect.js +0 -153
- package/dist/reactive/enhanced-effect.js.map +0 -1
- package/dist/reactive/enhanced-signal.cjs +0 -2
- package/dist/reactive/enhanced-signal.cjs.map +0 -1
- package/dist/reactive/enhanced-signal.js +0 -117
- package/dist/reactive/enhanced-signal.js.map +0 -1
- package/dist/reactive/equality.cjs +0 -2
- package/dist/reactive/equality.cjs.map +0 -1
- package/dist/reactive/equality.js +0 -66
- package/dist/reactive/equality.js.map +0 -1
- package/dist/reactive/index.cjs +0 -2
- package/dist/reactive/index.cjs.map +0 -1
- package/dist/reactive/index.js.map +0 -1
- package/dist/reactive/migration.cjs +0 -18
- package/dist/reactive/migration.cjs.map +0 -1
- package/dist/reactive/migration.js +0 -164
- package/dist/reactive/migration.js.map +0 -1
- package/dist/reactive/ownership.cjs +0 -2
- package/dist/reactive/ownership.cjs.map +0 -1
- package/dist/reactive/ownership.js +0 -34
- package/dist/reactive/ownership.js.map +0 -1
- package/dist/reactive/scheduler.cjs +0 -2
- package/dist/reactive/scheduler.cjs.map +0 -1
- package/dist/reactive/scheduler.js +0 -111
- package/dist/reactive/scheduler.js.map +0 -1
- package/dist/reactive/signal.cjs +0 -2
- package/dist/reactive/signal.cjs.map +0 -1
- package/dist/reactive/signal.js +0 -96
- package/dist/reactive/signal.js.map +0 -1
- package/dist/reactive/theme.cjs +0 -2
- package/dist/reactive/theme.cjs.map +0 -1
- package/dist/reactive/theme.js +0 -27
- package/dist/reactive/theme.js.map +0 -1
- package/dist/reactive/types.cjs +0 -2
- package/dist/reactive/types.cjs.map +0 -1
- package/dist/reactive/types.js +0 -5
- package/dist/reactive/types.js.map +0 -1
- package/dist/reactive/unified-scheduler.cjs +0 -2
- package/dist/reactive/unified-scheduler.cjs.map +0 -1
- package/dist/reactive/unified-scheduler.js +0 -219
- package/dist/reactive/unified-scheduler.js.map +0 -1
- package/dist/runtime/component-context.cjs +0 -2
- package/dist/runtime/component-context.cjs.map +0 -1
- package/dist/runtime/component-context.js +0 -177
- package/dist/runtime/component-context.js.map +0 -1
- package/dist/runtime/component.cjs +0 -2
- package/dist/runtime/component.cjs.map +0 -1
- package/dist/runtime/component.js +0 -238
- package/dist/runtime/component.js.map +0 -1
- package/dist/runtime/context.cjs +0 -2
- package/dist/runtime/context.cjs.map +0 -1
- package/dist/runtime/context.js.map +0 -1
- package/dist/runtime/dev-tools.cjs +0 -2
- package/dist/runtime/dev-tools.cjs.map +0 -1
- package/dist/runtime/dev-tools.js +0 -391
- package/dist/runtime/dev-tools.js.map +0 -1
- package/dist/runtime/development-warnings.cjs +0 -2
- package/dist/runtime/development-warnings.cjs.map +0 -1
- package/dist/runtime/development-warnings.js +0 -69
- package/dist/runtime/development-warnings.js.map +0 -1
- package/dist/runtime/dom-bridge.cjs +0 -2
- package/dist/runtime/dom-bridge.cjs.map +0 -1
- package/dist/runtime/dom-bridge.js.map +0 -1
- package/dist/runtime/element-override.cjs +0 -2
- package/dist/runtime/element-override.cjs.map +0 -1
- package/dist/runtime/element-override.js +0 -214
- package/dist/runtime/element-override.js.map +0 -1
- package/dist/runtime/error-boundary.cjs +0 -2
- package/dist/runtime/error-boundary.cjs.map +0 -1
- package/dist/runtime/error-boundary.js +0 -559
- package/dist/runtime/error-boundary.js.map +0 -1
- package/dist/runtime/error-recovery.cjs +0 -2
- package/dist/runtime/error-recovery.cjs.map +0 -1
- package/dist/runtime/error-recovery.js +0 -385
- package/dist/runtime/error-recovery.js.map +0 -1
- package/dist/runtime/error-reporting.cjs +0 -3
- package/dist/runtime/error-reporting.cjs.map +0 -1
- package/dist/runtime/error-reporting.js +0 -479
- package/dist/runtime/error-reporting.js.map +0 -1
- package/dist/runtime/error-utils.cjs +0 -3
- package/dist/runtime/error-utils.cjs.map +0 -1
- package/dist/runtime/error-utils.js +0 -352
- package/dist/runtime/error-utils.js.map +0 -1
- package/dist/runtime/lazy-component.cjs +0 -2
- package/dist/runtime/lazy-component.cjs.map +0 -1
- package/dist/runtime/lazy-component.js +0 -129
- package/dist/runtime/lazy-component.js.map +0 -1
- package/dist/runtime/lifecycle.cjs +0 -2
- package/dist/runtime/lifecycle.cjs.map +0 -1
- package/dist/runtime/lifecycle.js +0 -7
- package/dist/runtime/lifecycle.js.map +0 -1
- package/dist/runtime/mounting.cjs +0 -2
- package/dist/runtime/mounting.cjs.map +0 -1
- package/dist/runtime/mounting.js +0 -12
- package/dist/runtime/mounting.js.map +0 -1
- package/dist/runtime/optimization.cjs +0 -2
- package/dist/runtime/optimization.cjs.map +0 -1
- package/dist/runtime/optimization.js +0 -6
- package/dist/runtime/optimization.js.map +0 -1
- package/dist/runtime/performance.cjs +0 -2
- package/dist/runtime/performance.cjs.map +0 -1
- package/dist/runtime/performance.js +0 -399
- package/dist/runtime/performance.js.map +0 -1
- package/dist/runtime/props.cjs +0 -2
- package/dist/runtime/props.cjs.map +0 -1
- package/dist/runtime/props.js +0 -265
- package/dist/runtime/props.js.map +0 -1
- package/dist/runtime/renderer.cjs +0 -2
- package/dist/runtime/renderer.cjs.map +0 -1
- package/dist/runtime/renderer.js.map +0 -1
- package/dist/runtime/semantic-role-manager.cjs +0 -2
- package/dist/runtime/semantic-role-manager.cjs.map +0 -1
- package/dist/runtime/semantic-role-manager.js +0 -82
- package/dist/runtime/semantic-role-manager.js.map +0 -1
- package/dist/state/binding.cjs +0 -2
- package/dist/state/binding.cjs.map +0 -1
- package/dist/state/binding.js +0 -155
- package/dist/state/binding.js.map +0 -1
- package/dist/state/environment.cjs +0 -2
- package/dist/state/environment.cjs.map +0 -1
- package/dist/state/environment.js +0 -115
- package/dist/state/environment.js.map +0 -1
- package/dist/state/index.cjs +0 -2
- package/dist/state/index.cjs.map +0 -1
- package/dist/state/index.js +0 -63
- package/dist/state/index.js.map +0 -1
- package/dist/state/observed-object.cjs +0 -2
- package/dist/state/observed-object.cjs.map +0 -1
- package/dist/state/observed-object.js +0 -163
- package/dist/state/observed-object.js.map +0 -1
- package/dist/state/state-manager.cjs +0 -2
- package/dist/state/state-manager.cjs.map +0 -1
- package/dist/state/state-manager.js +0 -233
- package/dist/state/state-manager.js.map +0 -1
- package/dist/state/state.cjs +0 -2
- package/dist/state/state.cjs.map +0 -1
- package/dist/state/state.js +0 -159
- package/dist/state/state.js.map +0 -1
- package/dist/sui-compat.cjs +0 -2
- package/dist/sui-compat.cjs.map +0 -1
- package/dist/sui-compat.js +0 -88
- package/dist/sui-compat.js.map +0 -1
- package/dist/validation/advanced-debugging.cjs +0 -44
- package/dist/validation/advanced-debugging.cjs.map +0 -1
- package/dist/validation/advanced-debugging.js +0 -455
- package/dist/validation/advanced-debugging.js.map +0 -1
- package/dist/validation/build-time/detection.cjs +0 -2
- package/dist/validation/build-time/detection.cjs.map +0 -1
- package/dist/validation/build-time/detection.js +0 -199
- package/dist/validation/build-time/detection.js.map +0 -1
- package/dist/validation/build-time/index.cjs +0 -2
- package/dist/validation/build-time/index.cjs.map +0 -1
- package/dist/validation/build-time/index.js +0 -122
- package/dist/validation/build-time/index.js.map +0 -1
- package/dist/validation/build-time/plugins.cjs +0 -3
- package/dist/validation/build-time/plugins.cjs.map +0 -1
- package/dist/validation/build-time/plugins.js +0 -282
- package/dist/validation/build-time/plugins.js.map +0 -1
- package/dist/validation/build-time/rules.cjs +0 -2
- package/dist/validation/build-time/rules.cjs.map +0 -1
- package/dist/validation/build-time/rules.js +0 -576
- package/dist/validation/build-time/rules.js.map +0 -1
- package/dist/validation/build-time/transformer.cjs +0 -3
- package/dist/validation/build-time/transformer.cjs.map +0 -1
- package/dist/validation/build-time/transformer.js +0 -177
- package/dist/validation/build-time/transformer.js.map +0 -1
- package/dist/validation/comprehensive.cjs +0 -9
- package/dist/validation/comprehensive.cjs.map +0 -1
- package/dist/validation/comprehensive.js +0 -916
- package/dist/validation/comprehensive.js.map +0 -1
- package/dist/validation/debug-tools.cjs +0 -16
- package/dist/validation/debug-tools.cjs.map +0 -1
- package/dist/validation/debug-tools.js +0 -405
- package/dist/validation/debug-tools.js.map +0 -1
- package/dist/validation/developer-experience.cjs +0 -17
- package/dist/validation/developer-experience.cjs.map +0 -1
- package/dist/validation/developer-experience.js +0 -433
- package/dist/validation/developer-experience.js.map +0 -1
- package/dist/validation/documentation-integration.cjs +0 -7
- package/dist/validation/documentation-integration.cjs.map +0 -1
- package/dist/validation/documentation-integration.js +0 -440
- package/dist/validation/documentation-integration.js.map +0 -1
- package/dist/validation/enhanced-runtime.cjs +0 -6
- package/dist/validation/enhanced-runtime.cjs.map +0 -1
- package/dist/validation/enhanced-runtime.js +0 -465
- package/dist/validation/enhanced-runtime.js.map +0 -1
- package/dist/validation/error-reporting.cjs +0 -32
- package/dist/validation/error-reporting.cjs.map +0 -1
- package/dist/validation/error-reporting.js +0 -370
- package/dist/validation/error-reporting.js.map +0 -1
- package/dist/validation/ide-integration.cjs +0 -85
- package/dist/validation/ide-integration.cjs.map +0 -1
- package/dist/validation/ide-integration.js +0 -557
- package/dist/validation/ide-integration.js.map +0 -1
- package/dist/validation/index.cjs +0 -6
- package/dist/validation/index.cjs.map +0 -1
- package/dist/validation/index.js.map +0 -1
- package/dist/validation/lifecycle-validation.cjs +0 -2
- package/dist/validation/lifecycle-validation.cjs.map +0 -1
- package/dist/validation/lifecycle-validation.js +0 -314
- package/dist/validation/lifecycle-validation.js.map +0 -1
- package/dist/validation/performance-optimizer.cjs +0 -2
- package/dist/validation/performance-optimizer.cjs.map +0 -1
- package/dist/validation/performance-optimizer.js +0 -338
- package/dist/validation/performance-optimizer.js.map +0 -1
- package/dist/validation/plugin-registration.cjs +0 -2
- package/dist/validation/plugin-registration.cjs.map +0 -1
- package/dist/validation/plugin-registration.js +0 -126
- package/dist/validation/plugin-registration.js.map +0 -1
- package/dist/validation/production-bypass.cjs +0 -2
- package/dist/validation/production-bypass.cjs.map +0 -1
- package/dist/validation/production-bypass.js +0 -218
- package/dist/validation/production-bypass.js.map +0 -1
- package/dist/validation/simple.cjs +0 -9
- package/dist/validation/simple.cjs.map +0 -1
- package/dist/validation/simple.js +0 -146
- package/dist/validation/simple.js.map +0 -1
- package/dist/viewport/adapters/web-adapter.cjs +0 -70
- package/dist/viewport/adapters/web-adapter.cjs.map +0 -1
- package/dist/viewport/adapters/web-adapter.js +0 -823
- package/dist/viewport/adapters/web-adapter.js.map +0 -1
- package/dist/viewport/components.cjs +0 -2
- package/dist/viewport/components.cjs.map +0 -1
- package/dist/viewport/components.js +0 -298
- package/dist/viewport/components.js.map +0 -1
- package/dist/viewport/environment.cjs +0 -2
- package/dist/viewport/environment.cjs.map +0 -1
- package/dist/viewport/environment.js +0 -86
- package/dist/viewport/environment.js.map +0 -1
- package/dist/viewport/index.cjs +0 -2
- package/dist/viewport/index.cjs.map +0 -1
- package/dist/viewport/index.js.map +0 -1
- package/dist/viewport/platform-detection.cjs +0 -2
- package/dist/viewport/platform-detection.cjs.map +0 -1
- package/dist/viewport/platform-detection.js +0 -205
- package/dist/viewport/platform-detection.js.map +0 -1
- package/dist/viewport/types.cjs +0 -2
- package/dist/viewport/types.cjs.map +0 -1
- package/dist/viewport/types.js +0 -13
- package/dist/viewport/types.js.map +0 -1
- package/dist/viewport/viewport-manager.cjs +0 -2
- package/dist/viewport/viewport-manager.cjs.map +0 -1
- package/dist/viewport/viewport-manager.js +0 -524
- package/dist/viewport/viewport-manager.js.map +0 -1
- package/src/assets/Asset.ts +0 -11
- package/src/assets/AssetCollection.ts +0 -99
- package/src/assets/ColorAsset.ts +0 -210
- package/src/assets/FontAsset.ts +0 -380
- package/src/assets/ImageAsset.ts +0 -91
- package/src/assets/README.md +0 -190
- package/src/assets/index.ts +0 -175
- package/src/assets/test-assets.ts +0 -69
- package/src/assets/test-integration.ts +0 -46
- package/src/assets/test-simple.ts +0 -28
- package/src/assets/types.ts +0 -79
- package/src/bundles/common.ts +0 -30
- package/src/bundles/complete.ts +0 -29
- package/src/bundles/essential.ts +0 -26
- package/src/bundles/minimal.ts +0 -26
- package/src/bundles/production-minimal.ts +0 -67
- package/src/compiler/advanced-parser.ts +0 -871
- package/src/compiler/codegen.ts +0 -450
- package/src/compiler/enhanced-codegen.ts +0 -729
- package/src/compiler/index.ts +0 -25
- package/src/compiler/parser.ts +0 -461
- package/src/compiler/plugin.ts +0 -181
- package/src/compiler/types.ts +0 -177
- package/src/components/BasicInput.ts +0 -352
- package/src/components/Button.ts +0 -963
- package/src/components/Divider.ts +0 -341
- package/src/components/EnhancedLink.ts +0 -676
- package/src/components/Form.ts +0 -414
- package/src/components/Grid.ts +0 -2507
- package/src/components/GridResponsive.ts +0 -637
- package/src/components/Image.ts +0 -426
- package/src/components/List.ts +0 -1084
- package/src/components/Menu.ts +0 -807
- package/src/components/Picker.ts +0 -678
- package/src/components/ScrollView.ts +0 -725
- package/src/components/Section.ts +0 -472
- package/src/components/Show.ts +0 -205
- package/src/components/Spacer.ts +0 -93
- package/src/components/Text.ts +0 -447
- package/src/components/Toggle.ts +0 -700
- package/src/components/index.ts +0 -231
- package/src/components/wrapper.ts +0 -828
- package/src/concatenation/concatenatable.ts +0 -211
- package/src/concatenation/concatenated-component.ts +0 -471
- package/src/concatenation/index.ts +0 -41
- package/src/concatenation/styles.css +0 -120
- package/src/concatenation/text-optimizer.ts +0 -440
- package/src/concatenation/types.ts +0 -116
- package/src/constants/README.md +0 -339
- package/src/constants/__tests__/frame-utils.test.ts +0 -276
- package/src/constants/__tests__/layout.test.ts +0 -215
- package/src/constants/frame-utils.ts +0 -174
- package/src/constants/index.ts +0 -8
- package/src/constants/layout.ts +0 -120
- package/src/css-classes/component-base.ts +0 -117
- package/src/css-classes/css-class-manager.ts +0 -372
- package/src/css-classes/dom-integration.ts +0 -162
- package/src/css-classes/enhanced-renderer.ts +0 -166
- package/src/css-classes/index.ts +0 -45
- package/src/css-classes/types.ts +0 -73
- package/src/css-classes/utilities.ts +0 -175
- package/src/debug/index.ts +0 -267
- package/src/developer-experience/enhanced-errors.ts +0 -556
- package/src/developer-experience/enhanced-types.ts +0 -427
- package/src/developer-experience/index.ts +0 -220
- package/src/globals.d.ts +0 -43
- package/src/gradients/__tests__/angular-gradient.test.ts +0 -111
- package/src/gradients/__tests__/background-modifier.test.ts +0 -81
- package/src/gradients/__tests__/comprehensive-gradients.test.ts +0 -296
- package/src/gradients/__tests__/gradient-asset.test.ts +0 -144
- package/src/gradients/__tests__/linear-gradient.test.ts +0 -92
- package/src/gradients/__tests__/phase4-features.test.ts +0 -386
- package/src/gradients/__tests__/radial-gradient.test.ts +0 -110
- package/src/gradients/__tests__/repeating-gradients.test.ts +0 -125
- package/src/gradients/__tests__/state-background-modifier.test.ts +0 -340
- package/src/gradients/__tests__/state-gradient-asset.test.ts +0 -262
- package/src/gradients/__tests__/state-gradient-integration.test.ts +0 -277
- package/src/gradients/css-generator.ts +0 -158
- package/src/gradients/examples.ts +0 -632
- package/src/gradients/gradient-asset.ts +0 -30
- package/src/gradients/index.ts +0 -85
- package/src/gradients/performance.ts +0 -521
- package/src/gradients/presets.ts +0 -422
- package/src/gradients/reactive.ts +0 -470
- package/src/gradients/state-gradient-asset.ts +0 -179
- package/src/gradients/types.ts +0 -148
- package/src/gradients/utils.ts +0 -579
- package/src/gradients/validation.ts +0 -489
- package/src/index.ts +0 -168
- package/src/lifecycle/hooks.ts +0 -332
- package/src/modifiers/__tests__/as-html-integration.test.ts +0 -204
- package/src/modifiers/__tests__/as-html.test.ts +0 -437
- package/src/modifiers/__tests__/basic-sanitizer-security.test.ts +0 -294
- package/src/modifiers/__tests__/border.test.ts +0 -371
- package/src/modifiers/__tests__/margin-string-support.test.ts +0 -41
- package/src/modifiers/__tests__/padding-string-support.test.ts +0 -41
- package/src/modifiers/as-html-validator.ts +0 -68
- package/src/modifiers/as-html.ts +0 -216
- package/src/modifiers/attributes.ts +0 -574
- package/src/modifiers/backdrop.ts +0 -290
- package/src/modifiers/background.ts +0 -165
- package/src/modifiers/base.ts +0 -1815
- package/src/modifiers/basic-sanitizer.ts +0 -227
- package/src/modifiers/border.ts +0 -574
- package/src/modifiers/builder.ts +0 -1747
- package/src/modifiers/core.ts +0 -521
- package/src/modifiers/css.ts +0 -148
- package/src/modifiers/effects.ts +0 -412
- package/src/modifiers/elements.ts +0 -541
- package/src/modifiers/filters.ts +0 -501
- package/src/modifiers/flexbox.ts +0 -180
- package/src/modifiers/font.ts +0 -149
- package/src/modifiers/grid.ts +0 -238
- package/src/modifiers/index.ts +0 -481
- package/src/modifiers/margin.ts +0 -218
- package/src/modifiers/padding.ts +0 -318
- package/src/modifiers/registry.ts +0 -444
- package/src/modifiers/responsive/__tests__/advanced-media-queries.test.ts +0 -392
- package/src/modifiers/responsive/__tests__/advanced-utilities.test.ts +0 -368
- package/src/modifiers/responsive/__tests__/comprehensive-browser-tests.test.ts +0 -556
- package/src/modifiers/responsive/__tests__/layout-patterns.test.ts +0 -558
- package/src/modifiers/responsive/advanced-utilities.ts +0 -562
- package/src/modifiers/responsive/breakpoints.ts +0 -330
- package/src/modifiers/responsive/css-generator.ts +0 -432
- package/src/modifiers/responsive/dev-tools.ts +0 -650
- package/src/modifiers/responsive/index.ts +0 -119
- package/src/modifiers/responsive/layout-patterns.ts +0 -592
- package/src/modifiers/responsive/performance.ts +0 -385
- package/src/modifiers/responsive/responsive-builder.ts +0 -620
- package/src/modifiers/responsive/responsive-modifier.ts +0 -410
- package/src/modifiers/responsive/types.ts +0 -226
- package/src/modifiers/responsive/utilities.ts +0 -478
- package/src/modifiers/scroll.ts +0 -297
- package/src/modifiers/shadows.ts +0 -321
- package/src/modifiers/size.ts +0 -208
- package/src/modifiers/text.ts +0 -416
- package/src/modifiers/transformations.ts +0 -640
- package/src/modifiers/transitions.ts +0 -218
- package/src/modifiers/types.ts +0 -889
- package/src/modifiers/typography.ts +0 -341
- package/src/modifiers/utility.ts +0 -209
- package/src/modifiers/utils.ts +0 -413
- package/src/plugins/__tests__/simplified-plugin-system.test.ts +0 -190
- package/src/plugins/component-loader-registry.ts +0 -371
- package/src/plugins/index.ts +0 -61
- package/src/plugins/legacy-adapter.ts +0 -84
- package/src/plugins/simplified-component-registry.ts +0 -130
- package/src/plugins/simplified-error-handler.ts +0 -372
- package/src/plugins/simplified-index.ts +0 -61
- package/src/plugins/simplified-lazy-loader.ts +0 -242
- package/src/plugins/simplified-plugin-manager.ts +0 -93
- package/src/plugins/simplified-tachui-instance.ts +0 -142
- package/src/plugins/simplified-types.ts +0 -79
- package/src/plugins/simplified-utils.ts +0 -118
- package/src/reactive/cleanup.ts +0 -241
- package/src/reactive/computed.ts +0 -281
- package/src/reactive/context.ts +0 -287
- package/src/reactive/effect.ts +0 -194
- package/src/reactive/enhanced-effect.ts +0 -318
- package/src/reactive/enhanced-signal.ts +0 -227
- package/src/reactive/equality.ts +0 -188
- package/src/reactive/globals.d.ts +0 -5
- package/src/reactive/index.ts +0 -150
- package/src/reactive/migration.ts +0 -335
- package/src/reactive/ownership.ts +0 -182
- package/src/reactive/scheduler.ts +0 -300
- package/src/reactive/signal.ts +0 -201
- package/src/reactive/theme.ts +0 -49
- package/src/reactive/types.ts +0 -103
- package/src/reactive/unified-scheduler.ts +0 -357
- package/src/runtime/component-context.ts +0 -343
- package/src/runtime/component.ts +0 -499
- package/src/runtime/context.ts +0 -527
- package/src/runtime/dev-tools.ts +0 -752
- package/src/runtime/development-warnings.ts +0 -114
- package/src/runtime/dom-bridge.ts +0 -570
- package/src/runtime/element-override.ts +0 -282
- package/src/runtime/error-boundary.ts +0 -955
- package/src/runtime/error-recovery.ts +0 -638
- package/src/runtime/error-reporting.ts +0 -808
- package/src/runtime/error-utils.ts +0 -698
- package/src/runtime/index.ts +0 -202
- package/src/runtime/lazy-component.ts +0 -268
- package/src/runtime/lifecycle.ts +0 -10
- package/src/runtime/mounting.ts +0 -17
- package/src/runtime/optimization.ts +0 -13
- package/src/runtime/performance.ts +0 -693
- package/src/runtime/props.ts +0 -434
- package/src/runtime/refs.ts +0 -13
- package/src/runtime/renderer.ts +0 -674
- package/src/runtime/semantic-role-manager.ts +0 -140
- package/src/runtime/types.ts +0 -282
- package/src/state/binding.ts +0 -381
- package/src/state/environment-object.ts +0 -444
- package/src/state/environment.ts +0 -351
- package/src/state/index.ts +0 -179
- package/src/state/observed-object.ts +0 -405
- package/src/state/state-manager.ts +0 -366
- package/src/state/state.ts +0 -339
- package/src/state/types.ts +0 -192
- package/src/sui-compat.ts +0 -163
- package/src/validation/__tests__/phase-1d-integration.test.ts +0 -558
- package/src/validation/advanced-debugging.ts +0 -860
- package/src/validation/build-time/detection.ts +0 -373
- package/src/validation/build-time/index.ts +0 -222
- package/src/validation/build-time/plugins.ts +0 -515
- package/src/validation/build-time/rules.ts +0 -624
- package/src/validation/build-time/transformer.ts +0 -372
- package/src/validation/build-time/types.ts +0 -232
- package/src/validation/comprehensive.ts +0 -1272
- package/src/validation/debug-tools.ts +0 -724
- package/src/validation/developer-experience.ts +0 -712
- package/src/validation/documentation-integration.ts +0 -835
- package/src/validation/enhanced-runtime.ts +0 -765
- package/src/validation/error-reporting.ts +0 -587
- package/src/validation/ide-integration.ts +0 -845
- package/src/validation/index.ts +0 -353
- package/src/validation/lifecycle-validation.ts +0 -636
- package/src/validation/performance-optimizer.ts +0 -599
- package/src/validation/plugin-registration.ts +0 -249
- package/src/validation/production-bypass.ts +0 -466
- package/src/validation/simple.ts +0 -465
- package/src/viewport/adapters/web-adapter.ts +0 -1385
- package/src/viewport/components.ts +0 -505
- package/src/viewport/environment.ts +0 -173
- package/src/viewport/index.ts +0 -290
- package/src/viewport/platform-detection.ts +0 -431
- package/src/viewport/types.ts +0 -371
- package/src/viewport/viewport-manager.ts +0 -979
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../../src/modifiers/types.ts"],"sourcesContent":["/**\n * SwiftUI Modifier System Types\n *\n * Core type definitions for the SwiftUI-inspired modifier system.\n * Enables chaining modifiers on components similar to SwiftUI.\n */\n\nimport type { Signal } from '../reactive/types'\nimport type { ComponentInstance, ComponentProps, DOMNode } from '../runtime/types'\nimport type { FontWeight } from './typography'\nimport type { Dimension } from '../constants/layout'\nimport type { StatefulBackgroundValue } from '../gradients/types'\nimport type { ResponsiveModifierBuilder, ResponsiveBreakpointBuilder } from './responsive/responsive-builder'\nimport type { Asset } from '../assets/Asset'\nimport type { ColorAssetProxy, ImageAssetProxy, FontAssetProxy } from '../assets/types'\n\n/**\n * Valid color value types for modifiers\n */\nexport type ColorValue = string | Asset | ColorAssetProxy | Signal<string>\n\n/**\n * Valid asset types for modifiers\n */\nexport type AssetValue = Asset | ColorAssetProxy | ImageAssetProxy | FontAssetProxy\n\n/**\n * Text component interface for type safety with asHTML modifier\n */\nexport interface TextComponent extends ComponentInstance {\n readonly __tachui_component_type: 'Text'\n content: string\n}\n\n/**\n * Base modifier interface that all modifiers must implement\n */\nexport interface Modifier<TProps = {}> {\n readonly type: string\n readonly priority: number\n readonly properties: TProps\n apply(node: DOMNode, context: ModifierContext): DOMNode | undefined\n}\n\n/**\n * Context passed to modifiers during application\n */\nexport interface ModifierContext {\n componentId: string\n componentInstance?: ComponentInstance\n element?: Element\n parentElement?: Element\n phase: 'creation' | 'update' | 'cleanup'\n previousModifiers?: Modifier[]\n}\n\n/**\n * Modifier application result\n */\nexport interface ModifierResult {\n node: DOMNode\n effects?: (() => void)[]\n cleanup?: (() => void)[]\n}\n\n/**\n * Reactive modifier properties that can contain signals\n */\nexport type ReactiveModifierProps<T> = {\n [K in keyof T]: T[K] | Signal<T[K]>\n}\n\n/**\n * Strict TextShadow configuration interface\n * Prevents common mistakes like using 'radius' instead of 'blur'\n */\nexport interface TextShadowConfig {\n readonly x: number\n readonly y: number \n readonly blur: number\n readonly color: string\n}\n\n/**\n * Layout modifier properties\n */\nexport interface LayoutModifierProps {\n frame?: {\n width?: Dimension\n height?: Dimension\n minWidth?: Dimension\n maxWidth?: Dimension\n minHeight?: Dimension\n maxHeight?: Dimension\n }\n padding?:\n | {\n top?: number\n right?: number\n bottom?: number\n left?: number\n }\n | number\n margin?:\n | {\n top?: number | string\n right?: number | string\n bottom?: number | string\n left?: number | string\n }\n | number | string\n alignment?: 'leading' | 'center' | 'trailing' | 'top' | 'bottom'\n layoutPriority?: number\n offset?: {\n x?: number\n y?: number\n }\n aspectRatio?: {\n ratio?: number\n contentMode?: 'fit' | 'fill'\n }\n fixedSize?: {\n horizontal?: boolean\n vertical?: boolean\n }\n // Transform Properties (Phase 3 - Epic: Butternut)\n scaleEffect?: {\n x?: number\n y?: number\n anchor?:\n | 'center'\n | 'top'\n | 'topLeading'\n | 'topTrailing'\n | 'bottom'\n | 'bottomLeading'\n | 'bottomTrailing'\n | 'leading'\n | 'trailing'\n }\n position?: {\n x?: number\n y?: number\n }\n zIndex?: number\n}\n\n/**\n * Appearance modifier properties\n */\nexport interface AppearanceModifierProps {\n foregroundColor?: ColorValue\n backgroundColor?: ColorValue\n background?: StatefulBackgroundValue\n opacity?: number\n font?: {\n family?: string\n size?: number | string | Signal<number> | Signal<string>\n weight?:\n | 'normal'\n | 'bold'\n | '100'\n | '200'\n | '300'\n | '400'\n | '500'\n | '600'\n | '700'\n | '800'\n | '900'\n style?: 'normal' | 'italic' | 'oblique'\n }\n cornerRadius?: number\n border?: {\n width?: number | Signal<number>\n color?: ColorValue\n style?: 'solid' | 'dashed' | 'dotted'\n }\n shadow?: {\n color?: string\n radius?: number\n x?: number\n y?: number\n }\n clipped?: boolean\n clipShape?: {\n shape: 'circle' | 'ellipse' | 'rect' | 'polygon'\n parameters?: Record<string, any>\n }\n // Visual Effects (Phase 2 - Epic: Butternut)\n blur?: number // CSS filter: blur(Npx)\n brightness?: number // CSS filter: brightness(N) - 1.0 is normal\n contrast?: number // CSS filter: contrast(N) - 1.0 is normal \n saturation?: number // CSS filter: saturate(N) - 1.0 is normal\n hueRotation?: number // CSS filter: hue-rotate(Ndeg)\n grayscale?: number // CSS filter: grayscale(N) - 0.0 to 1.0\n colorInvert?: number // CSS filter: invert(N) - 0.0 to 1.0\n}\n\n/**\n * Interaction modifier properties\n */\nexport interface InteractionModifierProps {\n // Existing mouse events\n onTap?: (event: MouseEvent) => void\n onHover?: (isHovered: boolean) => void\n onMouseEnter?: (event: MouseEvent) => void\n onMouseLeave?: (event: MouseEvent) => void\n onMouseDown?: (event: MouseEvent) => void\n onMouseUp?: (event: MouseEvent) => void\n onDoubleClick?: (event: MouseEvent) => void\n onContextMenu?: (event: MouseEvent) => void\n \n // Existing drag events\n onDragStart?: (event: DragEvent) => void\n onDragOver?: (event: DragEvent) => void\n onDragLeave?: (event: DragEvent) => void\n onDrop?: (event: DragEvent) => void\n \n // Focus events (onFocus exists, adding onBlur)\n onFocus?: (isFocused: boolean) => void\n onBlur?: (isFocused: boolean) => void\n \n // Keyboard events\n onKeyPress?: (event: KeyboardEvent) => void\n onKeyDown?: (event: KeyboardEvent) => void\n onKeyUp?: (event: KeyboardEvent) => void\n \n // Scroll and wheel events\n onScroll?: (event: Event) => void\n onWheel?: (event: WheelEvent) => void\n \n // Input events\n onInput?: (event: InputEvent) => void\n onChange?: (value: any, event?: Event) => void\n \n // Clipboard events\n onCopy?: (event: ClipboardEvent) => void\n onCut?: (event: ClipboardEvent) => void\n onPaste?: (event: ClipboardEvent) => void\n \n // Other events\n onSelect?: (event: Event) => void\n \n // Advanced Gesture Modifiers (Phase 4 - Epic: Butternut)\n onLongPressGesture?: {\n minimumDuration?: number // ms, default 500\n maximumDistance?: number // px, default 10\n perform: () => void\n onPressingChanged?: (isPressing: boolean) => void\n }\n \n // Keyboard Shortcuts (Phase 4 - Epic: Butternut)\n keyboardShortcut?: {\n key: string\n modifiers?: ('cmd' | 'ctrl' | 'shift' | 'alt' | 'meta')[]\n action: () => void\n }\n \n // Focus Management (Phase 4 - Epic: Butternut) \n focused?: boolean | Signal<boolean>\n focusable?: {\n isFocusable?: boolean\n interactions?: ('activate' | 'edit')[]\n }\n \n // Enhanced Hover Tracking (Phase 4 - Epic: Butternut)\n onContinuousHover?: {\n coordinateSpace?: 'local' | 'global'\n perform: (location: { x: number; y: number } | null) => void\n }\n \n // Gesture Priority System (Phase 4 - Epic: Butternut)\n highPriorityGesture?: {\n gesture: any // Will define gesture types later\n including?: ('all' | 'subviews' | 'none')[]\n }\n simultaneousGesture?: {\n gesture: any\n including?: ('all' | 'subviews' | 'none')[]\n }\n \n // Hit Testing Control (Phase 4 - Epic: Butternut)\n allowsHitTesting?: boolean\n \n // Existing state properties\n disabled?: boolean\n draggable?: boolean\n accessibilityLabel?: string\n accessibilityHint?: string\n}\n\n/**\n * Animation modifier properties\n */\nexport interface AnimationModifierProps {\n transition?: {\n property?: string\n duration?: number\n easing?: string\n delay?: number\n }\n animation?: {\n keyframes?: Record<string, Record<string, string>>\n duration?: number\n easing?: string\n iterations?: number | 'infinite'\n direction?: 'normal' | 'reverse' | 'alternate' | 'alternate-reverse'\n }\n transform?: string | Signal<string>\n rotationEffect?: {\n angle: number\n anchor?:\n | 'center'\n | 'top'\n | 'topLeading'\n | 'topTrailing'\n | 'bottom'\n | 'bottomLeading'\n | 'bottomTrailing'\n | 'leading'\n | 'trailing'\n }\n overlay?: {\n content: any // ComponentInstance or function that returns ComponentInstance\n alignment?:\n | 'center'\n | 'top'\n | 'bottom'\n | 'leading'\n | 'trailing'\n | 'topLeading'\n | 'topTrailing'\n | 'bottomLeading'\n | 'bottomTrailing'\n }\n}\n\n/**\n * Lifecycle modifier properties\n */\nexport interface LifecycleModifierProps {\n onAppear?: () => void\n onDisappear?: () => void\n task?: {\n operation: () => Promise<void> | void\n id?: string\n priority?: 'background' | 'userInitiated' | 'utility' | 'default'\n }\n refreshable?: {\n onRefresh: () => Promise<void>\n isRefreshing?: boolean | Signal<boolean>\n }\n}\n\n/**\n * Modifier factory function type\n */\nexport type ModifierFactory<TProps = {}> = (\n props: ReactiveModifierProps<TProps>\n) => Modifier<TProps>\n\n/**\n * Modifier builder interface for creating chainable modifiers\n */\nexport interface ModifierBuilder<T extends ComponentInstance = ComponentInstance> {\n // Layout modifiers\n frame(width?: Dimension, height?: Dimension): ModifierBuilder<T>\n frame(options: LayoutModifierProps['frame']): ModifierBuilder<T>\n padding(value: number): ModifierBuilder<T>\n padding(options: LayoutModifierProps['padding']): ModifierBuilder<T>\n margin(value: number | string): ModifierBuilder<T>\n margin(options: LayoutModifierProps['margin']): ModifierBuilder<T>\n\n // New multi-property modifiers\n size(options: {\n width?: Dimension\n height?: Dimension\n minWidth?: Dimension\n maxWidth?: Dimension\n minHeight?: Dimension\n maxHeight?: Dimension\n }): ModifierBuilder<T>\n width(value: Dimension): ModifierBuilder<T>\n height(value: Dimension): ModifierBuilder<T>\n maxWidth(value: Dimension): ModifierBuilder<T>\n minWidth(value: Dimension): ModifierBuilder<T>\n maxHeight(value: Dimension): ModifierBuilder<T>\n minHeight(value: Dimension): ModifierBuilder<T>\n marginTop(value: number | string): ModifierBuilder<T>\n marginBottom(value: number | string): ModifierBuilder<T>\n marginHorizontal(value: number | string): ModifierBuilder<T>\n marginVertical(value: number | string): ModifierBuilder<T>\n\n // Typography modifiers\n typography(options: {\n size?: number | string\n weight?: FontWeight | number\n family?: string\n lineHeight?: number | string\n letterSpacing?: number | string\n align?: string\n transform?: string\n decoration?: string\n variant?: string\n style?: string\n color?: string\n }): ModifierBuilder<T>\n textAlign(value: 'left' | 'center' | 'right' | 'justify' | 'start' | 'end'): ModifierBuilder<T>\n textTransform(value: 'none' | 'uppercase' | 'lowercase' | 'capitalize'): ModifierBuilder<T>\n letterSpacing(value: number | string): ModifierBuilder<T>\n lineHeight(value: number | string): ModifierBuilder<T>\n gradientText(gradient: string): ModifierBuilder<T>\n\n // Border modifiers\n borderTop(\n width: number | Signal<number>,\n color: ColorValue,\n style?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset'\n ): ModifierBuilder<T>\n borderRight(\n width: number | Signal<number>,\n color: ColorValue,\n style?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset'\n ): ModifierBuilder<T>\n borderBottom(\n width: number | Signal<number>,\n color: ColorValue,\n style?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset'\n ): ModifierBuilder<T>\n borderLeft(\n width: number | Signal<number>,\n color: ColorValue,\n style?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset'\n ): ModifierBuilder<T>\n\n // Flexbox modifiers\n flexGrow(value: number): ModifierBuilder<T>\n flexShrink(value: number): ModifierBuilder<T>\n justifyContent(\n value: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly'\n ): ModifierBuilder<T>\n alignItems(\n value: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline'\n ): ModifierBuilder<T>\n gap(value: number | string): ModifierBuilder<T>\n flexDirection(value: 'row' | 'row-reverse' | 'column' | 'column-reverse'): ModifierBuilder<T>\n flexWrap(value: 'nowrap' | 'wrap' | 'wrap-reverse'): ModifierBuilder<T>\n\n // Utility modifiers\n cursor(\n value:\n | 'auto'\n | 'default'\n | 'pointer'\n | 'text'\n | 'wait'\n | 'help'\n | 'not-allowed'\n | 'grab'\n | 'grabbing'\n ): ModifierBuilder<T>\n overflowY(value: 'visible' | 'hidden' | 'scroll' | 'auto'): ModifierBuilder<T>\n overflowX(value: 'visible' | 'hidden' | 'scroll' | 'auto'): ModifierBuilder<T>\n position(value: 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky'): ModifierBuilder<T>\n zIndex(value: number): ModifierBuilder<T>\n display(\n value: 'block' | 'inline' | 'inline-block' | 'flex' | 'inline-flex' | 'grid' | 'none'\n ): ModifierBuilder<T>\n transform(value: string | Signal<string>): ModifierBuilder<T>\n\n // Raw CSS modifiers\n css(properties: { [property: string]: string | number | undefined }): ModifierBuilder<T>\n cssProperty(property: string, value: string | number): ModifierBuilder<T>\n cssVariable(name: string, value: string | number): ModifierBuilder<T>\n\n // Phase 1 SwiftUI modifiers\n offset(x: number | Signal<number>, y?: number | Signal<number>): ModifierBuilder<T>\n clipped(): ModifierBuilder<T>\n rotationEffect(\n angle: number | Signal<number>,\n anchor?:\n | 'center'\n | 'top'\n | 'topLeading'\n | 'topTrailing'\n | 'bottom'\n | 'bottomLeading'\n | 'bottomTrailing'\n | 'leading'\n | 'trailing'\n ): ModifierBuilder<T>\n\n // Phase 2 SwiftUI modifiers\n aspectRatio(ratio?: number | Signal<number>, contentMode?: 'fit' | 'fill'): ModifierBuilder<T>\n fixedSize(horizontal?: boolean, vertical?: boolean): ModifierBuilder<T>\n clipShape(\n shape: 'circle' | 'ellipse' | 'rect' | 'polygon',\n parameters?: Record<string, any>\n ): ModifierBuilder<T>\n overlay(\n content: any,\n alignment?:\n | 'center'\n | 'top'\n | 'bottom'\n | 'leading'\n | 'trailing'\n | 'topLeading'\n | 'topTrailing'\n | 'bottomLeading'\n | 'bottomTrailing'\n ): ModifierBuilder<T>\n\n // Phase 3 SwiftUI modifiers - Critical Transform Modifiers\n scaleEffect(\n x: number | Signal<number>,\n y?: number | Signal<number>,\n anchor?:\n | 'center'\n | 'top'\n | 'topLeading'\n | 'topTrailing'\n | 'bottom'\n | 'bottomLeading'\n | 'bottomTrailing'\n | 'leading'\n | 'trailing'\n ): ModifierBuilder<T>\n \n // Note: SwiftUI-style position for absolute positioning (different from CSS position)\n absolutePosition(x: number | Signal<number>, y: number | Signal<number>): ModifierBuilder<T>\n\n // Appearance modifiers\n foregroundColor(color: ColorValue): ModifierBuilder<T>\n backgroundColor(color: ColorValue): ModifierBuilder<T>\n background(value: StatefulBackgroundValue | Signal<string>): ModifierBuilder<T>\n font(options: AppearanceModifierProps['font']): ModifierBuilder<T>\n font(size: number | string): ModifierBuilder<T>\n fontWeight(weight: NonNullable<AppearanceModifierProps['font']>['weight']): ModifierBuilder<T>\n fontSize(size: number | string | Signal<number> | Signal<string>): ModifierBuilder<T>\n opacity(value: number | Signal<number>): ModifierBuilder<T>\n cornerRadius(radius: number | Signal<number>): ModifierBuilder<T>\n border(width: number | Signal<number>, color?: ColorValue): ModifierBuilder<T>\n border(options: AppearanceModifierProps['border']): ModifierBuilder<T>\n borderWidth(width: number | Signal<number>): ModifierBuilder<T>\n shadow(options: AppearanceModifierProps['shadow']): ModifierBuilder<T>\n shadow(config: { x: number; y: number; blur: number; color: string; spread?: number; inset?: boolean }): ModifierBuilder<T>\n shadows(configs: Array<{ x: number; y: number; blur: number; color: string; spread?: number; inset?: boolean }>): ModifierBuilder<T>\n textShadow(config: TextShadowConfig): ModifierBuilder<T>\n shadowPreset(presetName: string): ModifierBuilder<T>\n\n // Visual Effects Modifiers (Phase 2 - Epic: Butternut)\n blur(radius: number | Signal<number>): ModifierBuilder<T>\n brightness(amount: number | Signal<number>): ModifierBuilder<T>\n contrast(amount: number | Signal<number>): ModifierBuilder<T>\n saturation(amount: number | Signal<number>): ModifierBuilder<T>\n hueRotation(angle: number | Signal<number>): ModifierBuilder<T>\n grayscale(amount: number | Signal<number>): ModifierBuilder<T>\n colorInvert(amount?: number | Signal<number>): ModifierBuilder<T>\n dropShadow(shadow: string): ModifierBuilder<T>\n \n // Additional filter methods\n filter(config: { blur?: number; brightness?: number; contrast?: number; saturate?: number; [key: string]: any } | string): ModifierBuilder<T>\n saturate(value: number): ModifierBuilder<T>\n sepia(value: number): ModifierBuilder<T>\n hueRotate(angle: string): ModifierBuilder<T>\n invert(value: number): ModifierBuilder<T>\n \n // Filter presets\n vintagePhoto(sepiaAmount?: number, contrastAmount?: number): ModifierBuilder<T>\n blackAndWhite(contrastAmount?: number): ModifierBuilder<T>\n vibrant(saturationAmount?: number, contrastAmount?: number): ModifierBuilder<T>\n warmTone(hueShift?: string): ModifierBuilder<T>\n coolTone(hueShift?: string): ModifierBuilder<T>\n faded(contrastAmount?: number, saturationAmount?: number): ModifierBuilder<T>\n highKey(brightnessAmount?: number, contrastAmount?: number): ModifierBuilder<T>\n lowKey(brightnessAmount?: number, contrastAmount?: number): ModifierBuilder<T>\n softFocus(blurAmount?: number): ModifierBuilder<T>\n highContrastMode(): ModifierBuilder<T>\n subtleBlur(): ModifierBuilder<T>\n darkModeInvert(): ModifierBuilder<T>\n\n // Transform modifiers (SwiftUI-style)\n scale(value: number | { x?: number; y?: number }): ModifierBuilder<T>\n rotate(angle: string): ModifierBuilder<T>\n translate(offset: { x?: number | string; y?: number | string }): ModifierBuilder<T>\n perspective(value: number): ModifierBuilder<T>\n\n // Hover and cursor effect modifiers\n hover(styles: any, transition?: string | number): ModifierBuilder<T>\n hoverEffect(effect: 'automatic' | 'highlight' | 'lift' | 'scale', isEnabled?: boolean): ModifierBuilder<T>\n hoverWithTransition(styles: any, duration?: number): ModifierBuilder<T>\n conditionalHover(effect: 'automatic' | 'highlight' | 'lift' | 'scale', isEnabled: boolean): ModifierBuilder<T>\n\n // Cursor preset methods\n interactiveCursor(): ModifierBuilder<T>\n draggableCursor(): ModifierBuilder<T>\n textCursor(): ModifierBuilder<T>\n disabledCursor(): ModifierBuilder<T>\n loadingCursor(): ModifierBuilder<T>\n helpCursor(): ModifierBuilder<T>\n zoomCursor(mode?: 'in' | 'out'): ModifierBuilder<T>\n\n // Hover effect presets\n buttonHover(): ModifierBuilder<T>\n cardHover(): ModifierBuilder<T>\n linkHover(): ModifierBuilder<T>\n imageHover(): ModifierBuilder<T>\n\n // Interaction modifiers\n onTap(handler: (event: MouseEvent) => void): ModifierBuilder<T>\n onHover(handler: (isHovered: boolean) => void): ModifierBuilder<T>\n onMouseEnter(handler: (event: MouseEvent) => void): ModifierBuilder<T>\n onMouseLeave(handler: (event: MouseEvent) => void): ModifierBuilder<T>\n onMouseDown(handler: (event: MouseEvent) => void): ModifierBuilder<T>\n onMouseUp(handler: (event: MouseEvent) => void): ModifierBuilder<T>\n onDoubleClick(handler: (event: MouseEvent) => void): ModifierBuilder<T>\n onContextMenu(handler: (event: MouseEvent) => void): ModifierBuilder<T>\n onDragStart(handler: (event: DragEvent) => void): ModifierBuilder<T>\n onDragOver(handler: (event: DragEvent) => void): ModifierBuilder<T>\n onDragLeave(handler: (event: DragEvent) => void): ModifierBuilder<T>\n onDrop(handler: (event: DragEvent) => void): ModifierBuilder<T>\n \n // Focus events\n onFocus(handler: (isFocused: boolean) => void): ModifierBuilder<T>\n onBlur(handler: (isFocused: boolean) => void): ModifierBuilder<T>\n \n // Keyboard events\n onKeyPress(handler: (event: KeyboardEvent) => void): ModifierBuilder<T>\n onKeyDown(handler: (event: KeyboardEvent) => void): ModifierBuilder<T>\n onKeyUp(handler: (event: KeyboardEvent) => void): ModifierBuilder<T>\n \n // Scroll and wheel events\n onScroll(handler: (event: Event) => void): ModifierBuilder<T>\n onWheel(handler: (event: WheelEvent) => void): ModifierBuilder<T>\n \n // Input events\n onInput(handler: (event: InputEvent) => void): ModifierBuilder<T>\n onChange(handler: (value: any, event?: Event) => void): ModifierBuilder<T>\n \n // Clipboard events\n onCopy(handler: (event: ClipboardEvent) => void): ModifierBuilder<T>\n onCut(handler: (event: ClipboardEvent) => void): ModifierBuilder<T>\n onPaste(handler: (event: ClipboardEvent) => void): ModifierBuilder<T>\n \n // Other events\n onSelect(handler: (event: Event) => void): ModifierBuilder<T>\n \n // Advanced Gesture Modifiers (Phase 4 - Epic: Butternut)\n onLongPressGesture(\n options: {\n minimumDuration?: number\n maximumDistance?: number\n perform: () => void\n onPressingChanged?: (isPressing: boolean) => void\n }\n ): ModifierBuilder<T>\n \n // Keyboard Shortcuts (Phase 4 - Epic: Butternut)\n keyboardShortcut(\n key: string,\n modifiers: ('cmd' | 'ctrl' | 'shift' | 'alt' | 'meta')[],\n action: () => void\n ): ModifierBuilder<T>\n \n // Focus Management (Phase 4 - Epic: Butternut)\n focused(binding: boolean | Signal<boolean>): ModifierBuilder<T>\n focusable(\n isFocusable?: boolean,\n interactions?: ('activate' | 'edit')[]\n ): ModifierBuilder<T>\n \n // Enhanced Hover Tracking (Phase 4 - Epic: Butternut)\n onContinuousHover(\n coordinateSpace: 'local' | 'global',\n perform: (location: { x: number; y: number } | null) => void\n ): ModifierBuilder<T>\n \n // Gesture Priority System (Phase 4 - Epic: Butternut)\n highPriorityGesture(\n gesture: any,\n including?: ('all' | 'subviews' | 'none')[]\n ): ModifierBuilder<T>\n simultaneousGesture(\n gesture: any,\n including?: ('all' | 'subviews' | 'none')[]\n ): ModifierBuilder<T>\n \n // Hit Testing Control (Phase 4 - Epic: Butternut)\n allowsHitTesting(enabled: boolean): ModifierBuilder<T>\n \n // HTML and ARIA Attributes\n id(value: string): ModifierBuilder<T>\n data(attributes: { [key: string]: string | number | boolean }): ModifierBuilder<T>\n aria(attributes: { [key: string]: string | number | boolean | undefined }): ModifierBuilder<T>\n tabIndex(value: number): ModifierBuilder<T>\n\n // Text Modifiers\n lineClamp(lines: number): ModifierBuilder<T>\n wordBreak(value: 'normal' | 'break-all' | 'keep-all' | 'break-word'): ModifierBuilder<T>\n overflowWrap(value: 'normal' | 'break-word' | 'anywhere'): ModifierBuilder<T>\n hyphens(value: 'none' | 'manual' | 'auto'): ModifierBuilder<T>\n\n // Backdrop Filter Modifiers (Unified Implementation)\n backdropFilter(config: { blur?: number; brightness?: number; contrast?: number; saturate?: number; [key: string]: any }, fallbackColor?: ColorValue): ModifierBuilder<T>\n backdropFilter(cssValue: string, fallbackColor?: ColorValue): ModifierBuilder<T>\n glassmorphism(intensity?: 'subtle' | 'light' | 'medium' | 'heavy', customFallback?: ColorValue): ModifierBuilder<T>\n\n // Pseudo-element modifiers\n before(styles: { content: string; color?: string; [key: string]: any }): ModifierBuilder<T>\n after(styles: { content: string; color?: string; [key: string]: any }): ModifierBuilder<T>\n\n // State modifiers\n disabled(isDisabled?: boolean | Signal<boolean>): ModifierBuilder<T>\n draggable(isDraggable?: boolean): ModifierBuilder<T>\n setAttribute(name: string, value: string): ModifierBuilder<T>\n accessibilityLabel(label: string): ModifierBuilder<T>\n\n // Animation modifiers\n transition(property?: string, duration?: number, easing?: string, delay?: number): ModifierBuilder<T>\n transitions(config: any): ModifierBuilder<T>\n animation(options: AnimationModifierProps['animation']): ModifierBuilder<T>\n\n // Transition presets\n fadeTransition(duration?: number): ModifierBuilder<T>\n transformTransition(duration?: number): ModifierBuilder<T>\n colorTransition(duration?: number): ModifierBuilder<T>\n layoutTransition(duration?: number): ModifierBuilder<T>\n buttonTransition(): ModifierBuilder<T>\n cardTransition(): ModifierBuilder<T>\n modalTransition(): ModifierBuilder<T>\n smoothTransition(duration?: number): ModifierBuilder<T>\n quickTransition(duration?: number): ModifierBuilder<T>\n slowTransition(duration?: number): ModifierBuilder<T>\n\n // Scroll modifiers\n scroll(config: any): ModifierBuilder<T>\n scrollBehavior(value: 'auto' | 'smooth'): ModifierBuilder<T>\n overscrollBehavior(value: 'auto' | 'contain' | 'none'): ModifierBuilder<T>\n overscrollBehaviorX(value: 'auto' | 'contain' | 'none'): ModifierBuilder<T>\n overscrollBehaviorY(value: 'auto' | 'contain' | 'none'): ModifierBuilder<T>\n scrollMargin(margin: number | string | { top?: number | string, right?: number | string, bottom?: number | string, left?: number | string }): ModifierBuilder<T>\n scrollPadding(padding: number | string | { top?: number | string, right?: number | string, bottom?: number | string, left?: number | string }): ModifierBuilder<T>\n scrollSnap(\n type: 'none' | 'x mandatory' | 'y mandatory' | 'x proximity' | 'y proximity' | 'both mandatory' | 'both proximity',\n align?: 'start' | 'end' | 'center',\n stop?: 'normal' | 'always'\n ): ModifierBuilder<T>\n\n // Lifecycle modifiers\n onAppear(handler: () => void): ModifierBuilder<T>\n onDisappear(handler: () => void): ModifierBuilder<T>\n task(\n operation: () => Promise<void> | void,\n options?: { id?: string; priority?: 'background' | 'userInitiated' | 'utility' | 'default' }\n ): ModifierBuilder<T>\n refreshable(\n onRefresh: () => Promise<void>,\n isRefreshing?: boolean | Signal<boolean>\n ): ModifierBuilder<T>\n\n // Custom modifier application\n modifier(modifier: Modifier): ModifierBuilder<T>\n\n // Resizable modifier for images\n resizable(): ModifierBuilder<T>\n\n // Text case alias for textTransform\n textCase(value: 'none' | 'uppercase' | 'lowercase' | 'capitalize'): ModifierBuilder<T>\n\n // HTML Content Rendering (Text components only)\n /**\n * Render component content as HTML instead of plain text\n * \n * ⚠️ **RESTRICTION**: Only available on Text components for security\n * ⚠️ **SECURITY NOTICE**: This modifier treats content as HTML.\n * - Default: Basic sanitization removes common XSS vectors\n * - Use skipSanitizer: true only with fully trusted content\n * - Consider DOMPurify for comprehensive sanitization\n * - Non-reactive for performance (content is processed once)\n * \n * @param options - Configuration options\n * \n * @example\n * ```typescript\n * // ✅ Allowed: Text components only\n * Text('<p>Hello <strong>world</strong></p>').modifier.asHTML().build()\n * \n * // ❌ Compile Error: Not a Text component\n * VStack({}).modifier.asHTML() // TypeScript error\n * \n * // ✅ Dangerous: Skip sanitization\n * Text(serverTemplate).modifier.asHTML({ skipSanitizer: true }).build()\n * ```\n */\n asHTML(options?: import('./as-html').AsHTMLOptions): ModifierBuilder<T>\n\n // Responsive Design Methods\n responsive(): ResponsiveModifierBuilder<T>\n \n // Responsive Breakpoint Shorthand Properties\n readonly base: ResponsiveBreakpointBuilder<T>\n readonly sm: ResponsiveBreakpointBuilder<T>\n readonly md: ResponsiveBreakpointBuilder<T>\n readonly lg: ResponsiveBreakpointBuilder<T>\n readonly xl: ResponsiveBreakpointBuilder<T>\n readonly '2xl': ResponsiveBreakpointBuilder<T>\n \n addModifier(modifier: Modifier): void\n\n // Build the final component with all modifiers applied\n build(): T\n}\n\n/**\n * Modifiable component - components that can have modifiers applied\n */\nexport interface ModifiableComponent<P extends ComponentProps = ComponentProps>\n extends ComponentInstance<P> {\n modifiers: Modifier[]\n modifierBuilder?: ModifierBuilder<ModifiableComponent<P>>\n}\n\n/**\n * CSS style properties that can be generated by modifiers\n */\nexport interface CSSStyleProperties {\n [property: string]: string | number | Signal<string> | Signal<number> | undefined\n}\n\n/**\n * CSS class names that can be applied by modifiers\n */\nexport interface CSSClassNames {\n base?: string[]\n state?: Record<string, string[]>\n responsive?: Record<string, string[]>\n}\n\n/**\n * Modifier registry for registering custom modifiers\n */\nexport interface ModifierRegistry {\n register<TProps>(name: string, factory: ModifierFactory<TProps>): void\n get<TProps>(name: string): ModifierFactory<TProps> | undefined\n has(name: string): boolean\n list(): string[]\n}\n\n/**\n * Modifier application options\n */\nexport interface ModifierApplicationOptions {\n immediate?: boolean\n batch?: boolean\n suppressEffects?: boolean\n enableAnimations?: boolean\n}\n\n/**\n * Modifier priority levels for ordering\n */\nexport enum ModifierPriority {\n LAYOUT = 100,\n APPEARANCE = 200,\n INTERACTION = 300,\n ANIMATION = 400,\n CUSTOM = 500,\n}\n\n/**\n * Modifier application strategy\n */\nexport type ModifierApplicationStrategy =\n | 'sequential' // Apply modifiers one by one in order\n | 'batch' // Batch all style changes and apply at once\n | 'immediate' // Apply each modifier immediately\n\n/**\n * Style computation context for reactive styles\n */\nexport interface StyleComputationContext {\n componentId: string\n element: Element\n modifiers: Modifier[]\n signals: Set<Signal<any>>\n cleanup: (() => void)[]\n}\n"],"names":["ModifierPriority"],"mappings":"AA+1BO,IAAKA,sBAAAA,OACVA,EAAAA,EAAA,SAAS,GAAA,IAAT,UACAA,EAAAA,EAAA,aAAa,GAAA,IAAb,cACAA,EAAAA,EAAA,cAAc,GAAA,IAAd,eACAA,EAAAA,EAAA,YAAY,GAAA,IAAZ,aACAA,EAAAA,EAAA,SAAS,GAAA,IAAT,UALUA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./base.cjs");var c=Object.defineProperty,u=(t,e,i)=>e in t?c(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e,i)=>u(t,typeof e!="symbol"?e+"":e,i);class n extends a.BaseModifier{constructor(e){const i={};for(const[o,r]of Object.entries(e))typeof r=="function"&&"peek"in r?i[o]=r.peek():i[o]=r;super(i),l(this,"type","typography"),l(this,"priority",30)}apply(e,i){if(!i.element)return;const o=this.computeTypographyStyles(this.properties);this.applyStyles(i.element,o)}computeTypographyStyles(e){const i={};return e.size!==void 0&&(i.fontSize=this.toCSSValue(e.size)),e.weight!==void 0&&(i.fontWeight=String(e.weight)),e.family!==void 0&&(typeof e.family=="object"&&e.family!==null&&"resolve"in e.family?i.fontFamily=e.family.resolve():i.fontFamily=e.family),e.lineHeight!==void 0&&(i.lineHeight=typeof e.lineHeight=="number"?e.lineHeight.toString():e.lineHeight),e.letterSpacing!==void 0&&(i.letterSpacing=this.toCSSValue(e.letterSpacing)),e.wordSpacing!==void 0&&(i.wordSpacing=this.toCSSValue(e.wordSpacing)),e.align!==void 0&&(i.textAlign=e.align),e.transform!==void 0&&(i.textTransform=`${e.transform} !important`),e.decoration!==void 0&&(i.textDecoration=`${e.decoration} !important`),e.variant!==void 0&&(i.fontVariant=e.variant),e.style!==void 0&&(i.fontStyle=e.style),e.color!==void 0&&(typeof e.color=="object"&&e.color!==null&&"resolve"in e.color?i.color=e.color.resolve():i.color=e.color),e.textOverflow!==void 0&&(i.textOverflow=e.textOverflow),e.whiteSpace!==void 0&&(i.whiteSpace=e.whiteSpace),e.overflow!==void 0&&(i.overflow=e.overflow),i}}function y(t){return new n(t)}function g(t){return new n({align:t})}function f(t){return new n({transform:t})}function v(t){return new n({decoration:t})}function w(t){return new n({size:t})}function h(t){return new n({weight:t})}function d(t){return new n({lineHeight:t})}function S(t){return new n({letterSpacing:t})}function m(t){return new n({textOverflow:t})}function x(t){return new n({whiteSpace:t})}function s(t){return new n({overflow:t})}function b(t){return f(t)}function O(t){return new n({family:t})}exports.TypographyModifier=n;exports.fontFamily=O;exports.fontSize=w;exports.fontWeight=h;exports.letterSpacing=S;exports.lineHeight=d;exports.overflow=s;exports.textAlign=g;exports.textCase=b;exports.textDecoration=v;exports.textOverflow=m;exports.textTransform=f;exports.typography=y;exports.whiteSpace=x;
|
|
2
|
-
//# sourceMappingURL=typography.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typography.cjs","sources":["../../src/modifiers/typography.ts"],"sourcesContent":["/**\n * Typography Modifier - comprehensive text styling\n *\n * Provides a unified interface for text styling properties\n * including size, weight, alignment, transformation, and more.\n */\n\nimport type { DOMNode } from '../runtime/types'\nimport { BaseModifier } from './base'\nimport type { ModifierContext, ReactiveModifierProps } from './types'\nimport type { FontAsset } from '../assets/FontAsset'\n\nexport interface TypographyOptions {\n size?: number | string\n weight?: FontWeight | number\n family?: string | FontAsset\n lineHeight?: number | string\n letterSpacing?: number | string\n wordSpacing?: number | string\n align?: TextAlign\n transform?: TextTransform\n decoration?: TextDecoration\n variant?: FontVariant\n style?: FontStyle\n color?: string\n textOverflow?: 'clip' | 'ellipsis' | 'fade' | string\n whiteSpace?: 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line' | 'break-spaces'\n overflow?: 'visible' | 'hidden' | 'scroll' | 'auto'\n}\n\nexport type FontWeight =\n | 'normal'\n | 'bold'\n | '100'\n | '200'\n | '300'\n | '400'\n | '500'\n | '600'\n | '700'\n | '800'\n | '900'\n | 100\n | 200\n | 300\n | 400\n | 500\n | 600\n | 700\n | 800\n | 900\nexport type TextAlign = 'left' | 'center' | 'right' | 'justify' | 'start' | 'end'\nexport type TextTransform = 'none' | 'uppercase' | 'lowercase' | 'capitalize'\nexport type TextDecoration = 'none' | 'underline' | 'overline' | 'line-through'\nexport type FontVariant = 'normal' | 'small-caps'\nexport type FontStyle = 'normal' | 'italic' | 'oblique'\n\nexport type ReactiveTypographyOptions = ReactiveModifierProps<TypographyOptions>\n\nexport class TypographyModifier extends BaseModifier<TypographyOptions> {\n readonly type = 'typography'\n readonly priority = 30 // Priority 30 for text styling\n\n constructor(options: ReactiveTypographyOptions) {\n // Convert reactive options to regular options for immediate use\n const resolvedOptions: TypographyOptions = {}\n for (const [key, value] of Object.entries(options)) {\n if (typeof value === 'function' && 'peek' in value) {\n ;(resolvedOptions as any)[key] = (value as any).peek()\n } else {\n ;(resolvedOptions as any)[key] = value\n }\n }\n super(resolvedOptions)\n }\n\n apply(_node: DOMNode, context: ModifierContext): DOMNode | undefined {\n if (!context.element) return\n\n const styles = this.computeTypographyStyles(this.properties)\n this.applyStyles(context.element, styles)\n \n return undefined\n }\n\n private computeTypographyStyles(props: TypographyOptions) {\n const styles: Record<string, string> = {}\n\n if (props.size !== undefined) {\n styles.fontSize = this.toCSSValue(props.size)\n }\n if (props.weight !== undefined) {\n styles.fontWeight = String(props.weight)\n }\n if (props.family !== undefined) {\n // Handle FontAsset\n if (typeof props.family === 'object' && props.family !== null && 'resolve' in props.family) {\n styles.fontFamily = (props.family as FontAsset).resolve()\n } else {\n styles.fontFamily = props.family as string\n }\n }\n if (props.lineHeight !== undefined) {\n styles.lineHeight =\n typeof props.lineHeight === 'number' ? props.lineHeight.toString() : props.lineHeight\n }\n if (props.letterSpacing !== undefined) {\n styles.letterSpacing = this.toCSSValue(props.letterSpacing)\n }\n if (props.wordSpacing !== undefined) {\n styles.wordSpacing = this.toCSSValue(props.wordSpacing)\n }\n if (props.align !== undefined) {\n styles.textAlign = props.align\n }\n if (props.transform !== undefined) {\n // Use !important to ensure text-transform overrides any conflicting CSS\n styles.textTransform = `${props.transform} !important`\n }\n if (props.decoration !== undefined) {\n // Use !important to ensure text-decoration overrides any conflicting CSS\n styles.textDecoration = `${props.decoration} !important`\n }\n if (props.variant !== undefined) {\n styles.fontVariant = props.variant\n }\n if (props.style !== undefined) {\n styles.fontStyle = props.style\n }\n if (props.color !== undefined) {\n // Handle Asset objects\n if (typeof props.color === 'object' && props.color !== null && 'resolve' in props.color) {\n styles.color = (props.color as any).resolve()\n } else {\n styles.color = props.color as string\n }\n }\n if (props.textOverflow !== undefined) {\n styles.textOverflow = props.textOverflow\n }\n if (props.whiteSpace !== undefined) {\n styles.whiteSpace = props.whiteSpace\n }\n if (props.overflow !== undefined) {\n styles.overflow = props.overflow\n }\n\n return styles\n }\n}\n\n/**\n * Create a typography modifier with comprehensive text styling\n *\n * @example\n * ```typescript\n * // Complete text styling\n * .typography({\n * size: 18,\n * weight: '600',\n * align: 'center',\n * transform: 'uppercase',\n * letterSpacing: '0.5px'\n * })\n *\n * // Font family and sizing\n * .typography({\n * family: 'Inter, sans-serif',\n * size: 16,\n * lineHeight: 1.5\n * })\n * ```\n */\nexport function typography(options: ReactiveTypographyOptions): TypographyModifier {\n return new TypographyModifier(options)\n}\n\n/**\n * Convenience function for text alignment\n *\n * @example\n * ```typescript\n * .textAlign('center')\n * .textAlign('right')\n * ```\n */\nexport function textAlign(value: TextAlign): TypographyModifier {\n return new TypographyModifier({ align: value })\n}\n\n/**\n * Convenience function for text transformation\n *\n * @example\n * ```typescript\n * .textTransform('uppercase')\n * .textTransform('capitalize')\n * ```\n */\nexport function textTransform(value: TextTransform): TypographyModifier {\n return new TypographyModifier({ transform: value })\n}\n\n/**\n * Convenience function for text decoration\n *\n * @example\n * ```typescript\n * .textDecoration('underline')\n * .textDecoration('line-through')\n * .textDecoration('overline')\n * .textDecoration('none')\n * ```\n */\nexport function textDecoration(value: TextDecoration): TypographyModifier {\n return new TypographyModifier({ decoration: value })\n}\n\n/**\n * Convenience function for font size\n *\n * @example\n * ```typescript\n * .fontSize(16)\n * .fontSize('1.2rem')\n * ```\n */\nexport function fontSize(value: number | string): TypographyModifier {\n return new TypographyModifier({ size: value })\n}\n\n/**\n * Convenience function for font weight\n *\n * @example\n * ```typescript\n * .fontWeight('600')\n * .fontWeight('bold')\n * .fontWeight(700)\n * ```\n */\nexport function fontWeight(value: FontWeight | number): TypographyModifier {\n return new TypographyModifier({ weight: value })\n}\n\n/**\n * Convenience function for line height\n *\n * @example\n * ```typescript\n * .lineHeight(1.5)\n * .lineHeight('1.4rem')\n * ```\n */\nexport function lineHeight(value: number | string): TypographyModifier {\n return new TypographyModifier({ lineHeight: value })\n}\n\n/**\n * Convenience function for letter spacing\n *\n * @example\n * ```typescript\n * .letterSpacing('0.5px')\n * .letterSpacing(2)\n * ```\n */\nexport function letterSpacing(value: number | string): TypographyModifier {\n return new TypographyModifier({ letterSpacing: value })\n}\n\n/**\n * Convenience function for text overflow\n *\n * @example\n * ```typescript\n * .textOverflow('ellipsis')\n * .textOverflow('clip')\n * ```\n */\nexport function textOverflow(value: 'clip' | 'ellipsis' | 'fade' | string): TypographyModifier {\n return new TypographyModifier({ textOverflow: value } as any)\n}\n\n/**\n * Convenience function for white space handling\n *\n * @example\n * ```typescript\n * .whiteSpace('nowrap')\n * .whiteSpace('pre-wrap')\n * ```\n */\nexport function whiteSpace(\n value: 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line' | 'break-spaces'\n): TypographyModifier {\n return new TypographyModifier({ whiteSpace: value } as any)\n}\n\n/**\n * Convenience function for overflow behavior\n *\n * @example\n * ```typescript\n * .overflow('hidden')\n * .overflow('scroll')\n * ```\n */\nexport function overflow(value: 'visible' | 'hidden' | 'scroll' | 'auto'): TypographyModifier {\n return new TypographyModifier({ overflow: value } as any)\n}\n\n/**\n * Convenience function for text case transformation (alias for textTransform)\n *\n * @example\n * ```typescript\n * .textCase('uppercase')\n * .textCase('capitalize')\n * ```\n */\nexport function textCase(value: TextTransform): TypographyModifier {\n return textTransform(value)\n}\n\n/**\n * Convenience function for font family\n *\n * @example\n * ```typescript\n * // With string\n * .fontFamily('Inter, sans-serif')\n * \n * // With FontAsset\n * import { Assets } from '@tachui/core'\n * .fontFamily(Assets.bodyFont)\n * ```\n */\nexport function fontFamily(value: string | FontAsset): TypographyModifier {\n return new TypographyModifier({ family: value })\n}\n"],"names":["TypographyModifier","BaseModifier","options","resolvedOptions","key","value","__publicField","_node","context","styles","props","typography","textAlign","textTransform","textDecoration","fontSize","fontWeight","lineHeight","letterSpacing","textOverflow","whiteSpace","overflow","textCase","fontFamily"],"mappings":"0QA2DO,MAAMA,UAA2BC,EAAAA,YAAgC,CAItE,YAAYC,EAAoC,CAE9C,MAAMC,EAAqC,CAAA,EAC3C,SAAW,CAACC,EAAKC,CAAK,IAAK,OAAO,QAAQH,CAAO,EAC3C,OAAOG,GAAU,YAAc,SAAUA,EACzCF,EAAwBC,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
|
-
import { BaseModifier as f } from "./base.js";
|
|
2
|
-
var a = Object.defineProperty, c = (t, e, i) => e in t ? a(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, r = (t, e, i) => c(t, typeof e != "symbol" ? e + "" : e, i);
|
|
3
|
-
class n extends f {
|
|
4
|
-
// Priority 30 for text styling
|
|
5
|
-
constructor(e) {
|
|
6
|
-
const i = {};
|
|
7
|
-
for (const [o, l] of Object.entries(e))
|
|
8
|
-
typeof l == "function" && "peek" in l ? i[o] = l.peek() : i[o] = l;
|
|
9
|
-
super(i), r(this, "type", "typography"), r(this, "priority", 30);
|
|
10
|
-
}
|
|
11
|
-
apply(e, i) {
|
|
12
|
-
if (!i.element) return;
|
|
13
|
-
const o = this.computeTypographyStyles(this.properties);
|
|
14
|
-
this.applyStyles(i.element, o);
|
|
15
|
-
}
|
|
16
|
-
computeTypographyStyles(e) {
|
|
17
|
-
const i = {};
|
|
18
|
-
return e.size !== void 0 && (i.fontSize = this.toCSSValue(e.size)), e.weight !== void 0 && (i.fontWeight = String(e.weight)), e.family !== void 0 && (typeof e.family == "object" && e.family !== null && "resolve" in e.family ? i.fontFamily = e.family.resolve() : i.fontFamily = e.family), e.lineHeight !== void 0 && (i.lineHeight = typeof e.lineHeight == "number" ? e.lineHeight.toString() : e.lineHeight), e.letterSpacing !== void 0 && (i.letterSpacing = this.toCSSValue(e.letterSpacing)), e.wordSpacing !== void 0 && (i.wordSpacing = this.toCSSValue(e.wordSpacing)), e.align !== void 0 && (i.textAlign = e.align), e.transform !== void 0 && (i.textTransform = `${e.transform} !important`), e.decoration !== void 0 && (i.textDecoration = `${e.decoration} !important`), e.variant !== void 0 && (i.fontVariant = e.variant), e.style !== void 0 && (i.fontStyle = e.style), e.color !== void 0 && (typeof e.color == "object" && e.color !== null && "resolve" in e.color ? i.color = e.color.resolve() : i.color = e.color), e.textOverflow !== void 0 && (i.textOverflow = e.textOverflow), e.whiteSpace !== void 0 && (i.whiteSpace = e.whiteSpace), e.overflow !== void 0 && (i.overflow = e.overflow), i;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function y(t) {
|
|
22
|
-
return new n(t);
|
|
23
|
-
}
|
|
24
|
-
function w(t) {
|
|
25
|
-
return new n({ align: t });
|
|
26
|
-
}
|
|
27
|
-
function u(t) {
|
|
28
|
-
return new n({ transform: t });
|
|
29
|
-
}
|
|
30
|
-
function g(t) {
|
|
31
|
-
return new n({ decoration: t });
|
|
32
|
-
}
|
|
33
|
-
function d(t) {
|
|
34
|
-
return new n({ size: t });
|
|
35
|
-
}
|
|
36
|
-
function h(t) {
|
|
37
|
-
return new n({ weight: t });
|
|
38
|
-
}
|
|
39
|
-
function m(t) {
|
|
40
|
-
return new n({ lineHeight: t });
|
|
41
|
-
}
|
|
42
|
-
function S(t) {
|
|
43
|
-
return new n({ letterSpacing: t });
|
|
44
|
-
}
|
|
45
|
-
function x(t) {
|
|
46
|
-
return new n({ textOverflow: t });
|
|
47
|
-
}
|
|
48
|
-
function s(t) {
|
|
49
|
-
return new n({ whiteSpace: t });
|
|
50
|
-
}
|
|
51
|
-
function b(t) {
|
|
52
|
-
return new n({ overflow: t });
|
|
53
|
-
}
|
|
54
|
-
function O(t) {
|
|
55
|
-
return u(t);
|
|
56
|
-
}
|
|
57
|
-
function H(t) {
|
|
58
|
-
return new n({ family: t });
|
|
59
|
-
}
|
|
60
|
-
export {
|
|
61
|
-
n as TypographyModifier,
|
|
62
|
-
H as fontFamily,
|
|
63
|
-
d as fontSize,
|
|
64
|
-
h as fontWeight,
|
|
65
|
-
S as letterSpacing,
|
|
66
|
-
m as lineHeight,
|
|
67
|
-
b as overflow,
|
|
68
|
-
w as textAlign,
|
|
69
|
-
O as textCase,
|
|
70
|
-
g as textDecoration,
|
|
71
|
-
x as textOverflow,
|
|
72
|
-
u as textTransform,
|
|
73
|
-
y as typography,
|
|
74
|
-
s as whiteSpace
|
|
75
|
-
};
|
|
76
|
-
//# sourceMappingURL=typography.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typography.js","sources":["../../src/modifiers/typography.ts"],"sourcesContent":["/**\n * Typography Modifier - comprehensive text styling\n *\n * Provides a unified interface for text styling properties\n * including size, weight, alignment, transformation, and more.\n */\n\nimport type { DOMNode } from '../runtime/types'\nimport { BaseModifier } from './base'\nimport type { ModifierContext, ReactiveModifierProps } from './types'\nimport type { FontAsset } from '../assets/FontAsset'\n\nexport interface TypographyOptions {\n size?: number | string\n weight?: FontWeight | number\n family?: string | FontAsset\n lineHeight?: number | string\n letterSpacing?: number | string\n wordSpacing?: number | string\n align?: TextAlign\n transform?: TextTransform\n decoration?: TextDecoration\n variant?: FontVariant\n style?: FontStyle\n color?: string\n textOverflow?: 'clip' | 'ellipsis' | 'fade' | string\n whiteSpace?: 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line' | 'break-spaces'\n overflow?: 'visible' | 'hidden' | 'scroll' | 'auto'\n}\n\nexport type FontWeight =\n | 'normal'\n | 'bold'\n | '100'\n | '200'\n | '300'\n | '400'\n | '500'\n | '600'\n | '700'\n | '800'\n | '900'\n | 100\n | 200\n | 300\n | 400\n | 500\n | 600\n | 700\n | 800\n | 900\nexport type TextAlign = 'left' | 'center' | 'right' | 'justify' | 'start' | 'end'\nexport type TextTransform = 'none' | 'uppercase' | 'lowercase' | 'capitalize'\nexport type TextDecoration = 'none' | 'underline' | 'overline' | 'line-through'\nexport type FontVariant = 'normal' | 'small-caps'\nexport type FontStyle = 'normal' | 'italic' | 'oblique'\n\nexport type ReactiveTypographyOptions = ReactiveModifierProps<TypographyOptions>\n\nexport class TypographyModifier extends BaseModifier<TypographyOptions> {\n readonly type = 'typography'\n readonly priority = 30 // Priority 30 for text styling\n\n constructor(options: ReactiveTypographyOptions) {\n // Convert reactive options to regular options for immediate use\n const resolvedOptions: TypographyOptions = {}\n for (const [key, value] of Object.entries(options)) {\n if (typeof value === 'function' && 'peek' in value) {\n ;(resolvedOptions as any)[key] = (value as any).peek()\n } else {\n ;(resolvedOptions as any)[key] = value\n }\n }\n super(resolvedOptions)\n }\n\n apply(_node: DOMNode, context: ModifierContext): DOMNode | undefined {\n if (!context.element) return\n\n const styles = this.computeTypographyStyles(this.properties)\n this.applyStyles(context.element, styles)\n \n return undefined\n }\n\n private computeTypographyStyles(props: TypographyOptions) {\n const styles: Record<string, string> = {}\n\n if (props.size !== undefined) {\n styles.fontSize = this.toCSSValue(props.size)\n }\n if (props.weight !== undefined) {\n styles.fontWeight = String(props.weight)\n }\n if (props.family !== undefined) {\n // Handle FontAsset\n if (typeof props.family === 'object' && props.family !== null && 'resolve' in props.family) {\n styles.fontFamily = (props.family as FontAsset).resolve()\n } else {\n styles.fontFamily = props.family as string\n }\n }\n if (props.lineHeight !== undefined) {\n styles.lineHeight =\n typeof props.lineHeight === 'number' ? props.lineHeight.toString() : props.lineHeight\n }\n if (props.letterSpacing !== undefined) {\n styles.letterSpacing = this.toCSSValue(props.letterSpacing)\n }\n if (props.wordSpacing !== undefined) {\n styles.wordSpacing = this.toCSSValue(props.wordSpacing)\n }\n if (props.align !== undefined) {\n styles.textAlign = props.align\n }\n if (props.transform !== undefined) {\n // Use !important to ensure text-transform overrides any conflicting CSS\n styles.textTransform = `${props.transform} !important`\n }\n if (props.decoration !== undefined) {\n // Use !important to ensure text-decoration overrides any conflicting CSS\n styles.textDecoration = `${props.decoration} !important`\n }\n if (props.variant !== undefined) {\n styles.fontVariant = props.variant\n }\n if (props.style !== undefined) {\n styles.fontStyle = props.style\n }\n if (props.color !== undefined) {\n // Handle Asset objects\n if (typeof props.color === 'object' && props.color !== null && 'resolve' in props.color) {\n styles.color = (props.color as any).resolve()\n } else {\n styles.color = props.color as string\n }\n }\n if (props.textOverflow !== undefined) {\n styles.textOverflow = props.textOverflow\n }\n if (props.whiteSpace !== undefined) {\n styles.whiteSpace = props.whiteSpace\n }\n if (props.overflow !== undefined) {\n styles.overflow = props.overflow\n }\n\n return styles\n }\n}\n\n/**\n * Create a typography modifier with comprehensive text styling\n *\n * @example\n * ```typescript\n * // Complete text styling\n * .typography({\n * size: 18,\n * weight: '600',\n * align: 'center',\n * transform: 'uppercase',\n * letterSpacing: '0.5px'\n * })\n *\n * // Font family and sizing\n * .typography({\n * family: 'Inter, sans-serif',\n * size: 16,\n * lineHeight: 1.5\n * })\n * ```\n */\nexport function typography(options: ReactiveTypographyOptions): TypographyModifier {\n return new TypographyModifier(options)\n}\n\n/**\n * Convenience function for text alignment\n *\n * @example\n * ```typescript\n * .textAlign('center')\n * .textAlign('right')\n * ```\n */\nexport function textAlign(value: TextAlign): TypographyModifier {\n return new TypographyModifier({ align: value })\n}\n\n/**\n * Convenience function for text transformation\n *\n * @example\n * ```typescript\n * .textTransform('uppercase')\n * .textTransform('capitalize')\n * ```\n */\nexport function textTransform(value: TextTransform): TypographyModifier {\n return new TypographyModifier({ transform: value })\n}\n\n/**\n * Convenience function for text decoration\n *\n * @example\n * ```typescript\n * .textDecoration('underline')\n * .textDecoration('line-through')\n * .textDecoration('overline')\n * .textDecoration('none')\n * ```\n */\nexport function textDecoration(value: TextDecoration): TypographyModifier {\n return new TypographyModifier({ decoration: value })\n}\n\n/**\n * Convenience function for font size\n *\n * @example\n * ```typescript\n * .fontSize(16)\n * .fontSize('1.2rem')\n * ```\n */\nexport function fontSize(value: number | string): TypographyModifier {\n return new TypographyModifier({ size: value })\n}\n\n/**\n * Convenience function for font weight\n *\n * @example\n * ```typescript\n * .fontWeight('600')\n * .fontWeight('bold')\n * .fontWeight(700)\n * ```\n */\nexport function fontWeight(value: FontWeight | number): TypographyModifier {\n return new TypographyModifier({ weight: value })\n}\n\n/**\n * Convenience function for line height\n *\n * @example\n * ```typescript\n * .lineHeight(1.5)\n * .lineHeight('1.4rem')\n * ```\n */\nexport function lineHeight(value: number | string): TypographyModifier {\n return new TypographyModifier({ lineHeight: value })\n}\n\n/**\n * Convenience function for letter spacing\n *\n * @example\n * ```typescript\n * .letterSpacing('0.5px')\n * .letterSpacing(2)\n * ```\n */\nexport function letterSpacing(value: number | string): TypographyModifier {\n return new TypographyModifier({ letterSpacing: value })\n}\n\n/**\n * Convenience function for text overflow\n *\n * @example\n * ```typescript\n * .textOverflow('ellipsis')\n * .textOverflow('clip')\n * ```\n */\nexport function textOverflow(value: 'clip' | 'ellipsis' | 'fade' | string): TypographyModifier {\n return new TypographyModifier({ textOverflow: value } as any)\n}\n\n/**\n * Convenience function for white space handling\n *\n * @example\n * ```typescript\n * .whiteSpace('nowrap')\n * .whiteSpace('pre-wrap')\n * ```\n */\nexport function whiteSpace(\n value: 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line' | 'break-spaces'\n): TypographyModifier {\n return new TypographyModifier({ whiteSpace: value } as any)\n}\n\n/**\n * Convenience function for overflow behavior\n *\n * @example\n * ```typescript\n * .overflow('hidden')\n * .overflow('scroll')\n * ```\n */\nexport function overflow(value: 'visible' | 'hidden' | 'scroll' | 'auto'): TypographyModifier {\n return new TypographyModifier({ overflow: value } as any)\n}\n\n/**\n * Convenience function for text case transformation (alias for textTransform)\n *\n * @example\n * ```typescript\n * .textCase('uppercase')\n * .textCase('capitalize')\n * ```\n */\nexport function textCase(value: TextTransform): TypographyModifier {\n return textTransform(value)\n}\n\n/**\n * Convenience function for font family\n *\n * @example\n * ```typescript\n * // With string\n * .fontFamily('Inter, sans-serif')\n * \n * // With FontAsset\n * import { Assets } from '@tachui/core'\n * .fontFamily(Assets.bodyFont)\n * ```\n */\nexport function fontFamily(value: string | FontAsset): TypographyModifier {\n return new TypographyModifier({ family: value })\n}\n"],"names":["TypographyModifier","BaseModifier","options","resolvedOptions","key","value","__publicField","_node","context","styles","props","typography","textAlign","textTransform","textDecoration","fontSize","fontWeight","lineHeight","letterSpacing","textOverflow","whiteSpace","overflow","textCase","fontFamily"],"mappings":";;AA2DO,MAAMA,UAA2BC,EAAgC;AAAA;AAAA,EAItE,YAAYC,GAAoC;AAE9C,UAAMC,IAAqC,CAAA;AAC3C,eAAW,CAAC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AAcR,CAAK;AAC5B;AAeO,SAASkB,EAAWlB,GAA+C;AACxE,SAAO,IAAIL,EAAmB,EAAE,QAAQK,GAAO;AACjD;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./base.cjs");var f=Object.defineProperty,d=(t,i,e)=>i in t?f(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,r=(t,i,e)=>d(t,typeof i!="symbol"?i+"":i,e);class o extends u.BaseModifier{constructor(i){const e={};for(const[n,l]of Object.entries(i))typeof l=="function"&&"peek"in l?e[n]=l.peek():e[n]=l;super(e),r(this,"type","utility"),r(this,"priority",10)}apply(i,e){if(!e.element)return;const n=this.computeUtilityStyles(this.properties);this.applyStyles(e.element,n)}computeUtilityStyles(i){const e={};return i.cursor!==void 0&&(process.env.NODE_ENV==="development"&&this.validateCursorValue(i.cursor),e.cursor=i.cursor),i.overflow!==void 0&&(e.overflow=i.overflow),i.overflowX!==void 0&&(e.overflowX=i.overflowX),i.overflowY!==void 0&&(e.overflowY=i.overflowY),i.position!==void 0&&(e.position=i.position),i.top!==void 0&&(e.top=this.toCSSValue(i.top)),i.right!==void 0&&(e.right=this.toCSSValue(i.right)),i.bottom!==void 0&&(e.bottom=this.toCSSValue(i.bottom)),i.left!==void 0&&(e.left=this.toCSSValue(i.left)),i.zIndex!==void 0&&(e.zIndex=i.zIndex.toString()),i.display!==void 0&&(e.display=i.display),i.visibility!==void 0&&(e.visibility=i.visibility),i.pointerEvents!==void 0&&(e.pointerEvents=i.pointerEvents),i.userSelect!==void 0&&(e.userSelect=i.userSelect),i.boxSizing!==void 0&&(e.boxSizing=i.boxSizing),i.objectFit!==void 0&&(e.objectFit=i.objectFit),i.objectPosition!==void 0&&(e.objectPosition=i.objectPosition),i.resize!==void 0&&(e.resize=i.resize),i.outline!==void 0&&(e.outline=i.outline),i.outlineOffset!==void 0&&(e.outlineOffset=this.toCSSValue(i.outlineOffset)),e}validateCursorValue(i){!["auto","default","pointer","text","wait","help","not-allowed","none","grab","grabbing","zoom-in","zoom-out","alias","cell","copy"].includes(i)&&!i.includes("url(")&&console.warn(`Unknown cursor value: "${i}". See documentation for valid cursor values.`)}}function v(t){return new o(t)}function s(t){return new o({cursor:t})}function c(t){return new o({overflowY:t})}function a(t){return new o({overflowX:t})}function y(t){return new o({position:t})}function w(t){return new o({zIndex:t})}function b(t){return new o({display:t})}exports.UtilityModifier=o;exports.cursor=s;exports.display=b;exports.overflowX=a;exports.overflowY=c;exports.position=y;exports.utility=v;exports.zIndex=w;
|
|
2
|
-
//# sourceMappingURL=utility.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utility.cjs","sources":["../../src/modifiers/utility.ts"],"sourcesContent":["/**\n * Utility Modifier - miscellaneous CSS properties\n *\n * Provides access to various CSS properties that don't fit\n * into other specific modifier categories.\n */\n\nimport type { DOMNode } from '../runtime/types'\nimport { BaseModifier } from './base'\nimport type { ModifierContext, ReactiveModifierProps } from './types'\n\nexport interface UtilityOptions {\n cursor?:\n | 'auto'\n | 'default' \n | 'pointer'\n | 'text'\n | 'wait'\n | 'help'\n | 'not-allowed'\n | 'none'\n | 'grab'\n | 'grabbing'\n | 'zoom-in'\n | 'zoom-out'\n | 'alias'\n | 'cell'\n | 'copy'\n | string // CSS cursor syntax: 'url(...), fallback'\n overflow?: 'visible' | 'hidden' | 'scroll' | 'auto'\n overflowX?: 'visible' | 'hidden' | 'scroll' | 'auto'\n overflowY?: 'visible' | 'hidden' | 'scroll' | 'auto'\n position?: 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky'\n top?: number | string\n right?: number | string\n bottom?: number | string\n left?: number | string\n zIndex?: number\n display?: 'block' | 'inline' | 'inline-block' | 'flex' | 'inline-flex' | 'grid' | 'none'\n visibility?: 'visible' | 'hidden' | 'collapse'\n pointerEvents?: 'auto' | 'none'\n userSelect?: 'auto' | 'none' | 'text' | 'all'\n boxSizing?: 'content-box' | 'border-box'\n objectFit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'\n objectPosition?: string\n resize?: 'none' | 'both' | 'horizontal' | 'vertical'\n outline?: string\n outlineOffset?: number | string\n}\n\nexport type ReactiveUtilityOptions = ReactiveModifierProps<UtilityOptions>\n\nexport class UtilityModifier extends BaseModifier<UtilityOptions> {\n readonly type = 'utility'\n readonly priority = 10 // Lower priority for utility properties\n\n constructor(options: ReactiveUtilityOptions) {\n // Convert reactive options to regular options for immediate use\n const resolvedOptions: UtilityOptions = {}\n for (const [key, value] of Object.entries(options)) {\n if (typeof value === 'function' && 'peek' in value) {\n ;(resolvedOptions as any)[key] = (value as any).peek()\n } else {\n ;(resolvedOptions as any)[key] = value\n }\n }\n super(resolvedOptions)\n }\n\n apply(_node: DOMNode, context: ModifierContext): DOMNode | undefined {\n if (!context.element) return\n\n const styles = this.computeUtilityStyles(this.properties)\n this.applyStyles(context.element, styles)\n \n return undefined\n }\n\n private computeUtilityStyles(props: UtilityOptions) {\n const styles: Record<string, string> = {}\n\n if (props.cursor !== undefined) {\n // Validate cursor value in development mode\n if (process.env.NODE_ENV === 'development') {\n this.validateCursorValue(props.cursor)\n }\n styles.cursor = props.cursor\n }\n if (props.overflow !== undefined) {\n styles.overflow = props.overflow\n }\n if (props.overflowX !== undefined) {\n styles.overflowX = props.overflowX\n }\n if (props.overflowY !== undefined) {\n styles.overflowY = props.overflowY\n }\n if (props.position !== undefined) {\n styles.position = props.position\n }\n if (props.top !== undefined) {\n styles.top = this.toCSSValue(props.top)\n }\n if (props.right !== undefined) {\n styles.right = this.toCSSValue(props.right)\n }\n if (props.bottom !== undefined) {\n styles.bottom = this.toCSSValue(props.bottom)\n }\n if (props.left !== undefined) {\n styles.left = this.toCSSValue(props.left)\n }\n if (props.zIndex !== undefined) {\n styles.zIndex = props.zIndex.toString()\n }\n if (props.display !== undefined) {\n styles.display = props.display\n }\n if (props.visibility !== undefined) {\n styles.visibility = props.visibility\n }\n if (props.pointerEvents !== undefined) {\n styles.pointerEvents = props.pointerEvents\n }\n if (props.userSelect !== undefined) {\n styles.userSelect = props.userSelect\n }\n if (props.boxSizing !== undefined) {\n styles.boxSizing = props.boxSizing\n }\n if (props.objectFit !== undefined) {\n styles.objectFit = props.objectFit\n }\n if (props.objectPosition !== undefined) {\n styles.objectPosition = props.objectPosition\n }\n if (props.resize !== undefined) {\n styles.resize = props.resize\n }\n if (props.outline !== undefined) {\n styles.outline = props.outline\n }\n if (props.outlineOffset !== undefined) {\n styles.outlineOffset = this.toCSSValue(props.outlineOffset)\n }\n\n return styles\n }\n\n private validateCursorValue(value: string): void {\n const validCursors = [\n 'auto', 'default', 'pointer', 'text', 'wait', 'help', 'not-allowed', 'none',\n 'grab', 'grabbing', 'zoom-in', 'zoom-out', 'alias', 'cell', 'copy'\n ]\n \n if (!validCursors.includes(value) && !value.includes('url(')) {\n console.warn(`Unknown cursor value: \"${value}\". See documentation for valid cursor values.`)\n }\n }\n}\n\n/**\n * Create a utility modifier with miscellaneous CSS properties\n */\nexport function utility(options: ReactiveUtilityOptions): UtilityModifier {\n return new UtilityModifier(options)\n}\n\n/**\n * Convenience function for cursor\n */\nexport function cursor(value: UtilityOptions['cursor']): UtilityModifier {\n return new UtilityModifier({ cursor: value })\n}\n\n/**\n * Convenience function for overflow-y\n */\nexport function overflowY(value: UtilityOptions['overflowY']): UtilityModifier {\n return new UtilityModifier({ overflowY: value })\n}\n\n/**\n * Convenience function for overflow-x\n */\nexport function overflowX(value: UtilityOptions['overflowX']): UtilityModifier {\n return new UtilityModifier({ overflowX: value })\n}\n\n/**\n * Convenience function for position\n */\nexport function position(value: UtilityOptions['position']): UtilityModifier {\n return new UtilityModifier({ position: value })\n}\n\n/**\n * Convenience function for z-index\n */\nexport function zIndex(value: number): UtilityModifier {\n return new UtilityModifier({ zIndex: value })\n}\n\n/**\n * Convenience function for display\n */\nexport function display(value: UtilityOptions['display']): UtilityModifier {\n return new UtilityModifier({ display: value })\n}\n"],"names":["UtilityModifier","BaseModifier","options","resolvedOptions","key","value","__publicField","_node","context","styles","props","utility","cursor","overflowY","overflowX","position","zIndex","display"],"mappings":"0QAoDO,MAAMA,UAAwBC,EAAAA,YAA6B,CAIhE,YAAYC,EAAiC,CAE3C,MAAMC,EAAkC,CAAA,EACxC,SAAW,CAACC,EAAKC,CAAK,IAAK,OAAO,QAAQH,CAAO,EAC3C,OAAOG,GAAU,YAAc,SAAUA,EACzCF,EAAwBC,CAAG,EAAKC,EAAc,KAAA,EAE9CF,EAAwBC,CAAG,EAAIC,EAGrC,MAAMF,CAAe,EAbvBG,EAAA,KAAS,OAAO,SAAA,EAChBA,EAAA,KAAS,WAAW,EAAA,CAapB,CAEA,MAAMC,EAAgBC,EAA+C,CACnE,GAAI,CAACA,EAAQ,QAAS,OAEtB,MAAMC,EAAS,KAAK,qBAAqB,KAAK,UAAU,EACxD,KAAK,YAAYD,EAAQ,QAASC,CAAM,CAG1C,CAEQ,qBAAqBC,EAAuB,CAClD,MAAMD,EAAiC,CAAA,EAEvC,OAAIC,EAAM,SAAW,SAEf,QAAQ,IAAI,WAAa,eAC3B,KAAK,oBAAoBA,EAAM,MAAM,EAEvCD,EAAO,OAASC,EAAM,QAEpBA,EAAM,WAAa,SACrBD,EAAO,SAAWC,EAAM,UAEtBA,EAAM,YAAc,SACtBD,EAAO,UAAYC,EAAM,WAEvBA,EAAM,YAAc,SACtBD,EAAO,UAAYC,EAAM,WAEvBA,EAAM,WAAa,SACrBD,EAAO,SAAWC,EAAM,UAEtBA,EAAM,MAAQ,SAChBD,EAAO,IAAM,KAAK,WAAWC,EAAM,GAAG,GAEpCA,EAAM,QAAU,SAClBD,EAAO,MAAQ,KAAK,WAAWC,EAAM,KAAK,GAExCA,EAAM,SAAW,SACnBD,EAAO,OAAS,KAAK,WAAWC,EAAM,MAAM,GAE1CA,EAAM,OAAS,SACjBD,EAAO,KAAO,KAAK,WAAWC,EAAM,IAAI,GAEtCA,EAAM,SAAW,SACnB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OAAQK,EAAO,CAC9C,CAKO,SAASY,EAAQZ,EAAmD,CACzE,OAAO,IAAIL,EAAgB,CAAE,QAASK,EAAO,CAC/C"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { BaseModifier as r } from "./base.js";
|
|
2
|
-
var u = Object.defineProperty, d = (t, i, e) => i in t ? u(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e, f = (t, i, e) => d(t, typeof i != "symbol" ? i + "" : i, e);
|
|
3
|
-
class o extends r {
|
|
4
|
-
// Lower priority for utility properties
|
|
5
|
-
constructor(i) {
|
|
6
|
-
const e = {};
|
|
7
|
-
for (const [n, l] of Object.entries(i))
|
|
8
|
-
typeof l == "function" && "peek" in l ? e[n] = l.peek() : e[n] = l;
|
|
9
|
-
super(e), f(this, "type", "utility"), f(this, "priority", 10);
|
|
10
|
-
}
|
|
11
|
-
apply(i, e) {
|
|
12
|
-
if (!e.element) return;
|
|
13
|
-
const n = this.computeUtilityStyles(this.properties);
|
|
14
|
-
this.applyStyles(e.element, n);
|
|
15
|
-
}
|
|
16
|
-
computeUtilityStyles(i) {
|
|
17
|
-
const e = {};
|
|
18
|
-
return i.cursor !== void 0 && (process.env.NODE_ENV === "development" && this.validateCursorValue(i.cursor), e.cursor = i.cursor), i.overflow !== void 0 && (e.overflow = i.overflow), i.overflowX !== void 0 && (e.overflowX = i.overflowX), i.overflowY !== void 0 && (e.overflowY = i.overflowY), i.position !== void 0 && (e.position = i.position), i.top !== void 0 && (e.top = this.toCSSValue(i.top)), i.right !== void 0 && (e.right = this.toCSSValue(i.right)), i.bottom !== void 0 && (e.bottom = this.toCSSValue(i.bottom)), i.left !== void 0 && (e.left = this.toCSSValue(i.left)), i.zIndex !== void 0 && (e.zIndex = i.zIndex.toString()), i.display !== void 0 && (e.display = i.display), i.visibility !== void 0 && (e.visibility = i.visibility), i.pointerEvents !== void 0 && (e.pointerEvents = i.pointerEvents), i.userSelect !== void 0 && (e.userSelect = i.userSelect), i.boxSizing !== void 0 && (e.boxSizing = i.boxSizing), i.objectFit !== void 0 && (e.objectFit = i.objectFit), i.objectPosition !== void 0 && (e.objectPosition = i.objectPosition), i.resize !== void 0 && (e.resize = i.resize), i.outline !== void 0 && (e.outline = i.outline), i.outlineOffset !== void 0 && (e.outlineOffset = this.toCSSValue(i.outlineOffset)), e;
|
|
19
|
-
}
|
|
20
|
-
validateCursorValue(i) {
|
|
21
|
-
![
|
|
22
|
-
"auto",
|
|
23
|
-
"default",
|
|
24
|
-
"pointer",
|
|
25
|
-
"text",
|
|
26
|
-
"wait",
|
|
27
|
-
"help",
|
|
28
|
-
"not-allowed",
|
|
29
|
-
"none",
|
|
30
|
-
"grab",
|
|
31
|
-
"grabbing",
|
|
32
|
-
"zoom-in",
|
|
33
|
-
"zoom-out",
|
|
34
|
-
"alias",
|
|
35
|
-
"cell",
|
|
36
|
-
"copy"
|
|
37
|
-
].includes(i) && !i.includes("url(") && console.warn(`Unknown cursor value: "${i}". See documentation for valid cursor values.`);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function c(t) {
|
|
41
|
-
return new o(t);
|
|
42
|
-
}
|
|
43
|
-
function s(t) {
|
|
44
|
-
return new o({ cursor: t });
|
|
45
|
-
}
|
|
46
|
-
function a(t) {
|
|
47
|
-
return new o({ overflowY: t });
|
|
48
|
-
}
|
|
49
|
-
function w(t) {
|
|
50
|
-
return new o({ overflowX: t });
|
|
51
|
-
}
|
|
52
|
-
function y(t) {
|
|
53
|
-
return new o({ position: t });
|
|
54
|
-
}
|
|
55
|
-
function b(t) {
|
|
56
|
-
return new o({ zIndex: t });
|
|
57
|
-
}
|
|
58
|
-
function S(t) {
|
|
59
|
-
return new o({ display: t });
|
|
60
|
-
}
|
|
61
|
-
export {
|
|
62
|
-
o as UtilityModifier,
|
|
63
|
-
s as cursor,
|
|
64
|
-
S as display,
|
|
65
|
-
w as overflowX,
|
|
66
|
-
a as overflowY,
|
|
67
|
-
y as position,
|
|
68
|
-
c as utility,
|
|
69
|
-
b as zIndex
|
|
70
|
-
};
|
|
71
|
-
//# sourceMappingURL=utility.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utility.js","sources":["../../src/modifiers/utility.ts"],"sourcesContent":["/**\n * Utility Modifier - miscellaneous CSS properties\n *\n * Provides access to various CSS properties that don't fit\n * into other specific modifier categories.\n */\n\nimport type { DOMNode } from '../runtime/types'\nimport { BaseModifier } from './base'\nimport type { ModifierContext, ReactiveModifierProps } from './types'\n\nexport interface UtilityOptions {\n cursor?:\n | 'auto'\n | 'default' \n | 'pointer'\n | 'text'\n | 'wait'\n | 'help'\n | 'not-allowed'\n | 'none'\n | 'grab'\n | 'grabbing'\n | 'zoom-in'\n | 'zoom-out'\n | 'alias'\n | 'cell'\n | 'copy'\n | string // CSS cursor syntax: 'url(...), fallback'\n overflow?: 'visible' | 'hidden' | 'scroll' | 'auto'\n overflowX?: 'visible' | 'hidden' | 'scroll' | 'auto'\n overflowY?: 'visible' | 'hidden' | 'scroll' | 'auto'\n position?: 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky'\n top?: number | string\n right?: number | string\n bottom?: number | string\n left?: number | string\n zIndex?: number\n display?: 'block' | 'inline' | 'inline-block' | 'flex' | 'inline-flex' | 'grid' | 'none'\n visibility?: 'visible' | 'hidden' | 'collapse'\n pointerEvents?: 'auto' | 'none'\n userSelect?: 'auto' | 'none' | 'text' | 'all'\n boxSizing?: 'content-box' | 'border-box'\n objectFit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'\n objectPosition?: string\n resize?: 'none' | 'both' | 'horizontal' | 'vertical'\n outline?: string\n outlineOffset?: number | string\n}\n\nexport type ReactiveUtilityOptions = ReactiveModifierProps<UtilityOptions>\n\nexport class UtilityModifier extends BaseModifier<UtilityOptions> {\n readonly type = 'utility'\n readonly priority = 10 // Lower priority for utility properties\n\n constructor(options: ReactiveUtilityOptions) {\n // Convert reactive options to regular options for immediate use\n const resolvedOptions: UtilityOptions = {}\n for (const [key, value] of Object.entries(options)) {\n if (typeof value === 'function' && 'peek' in value) {\n ;(resolvedOptions as any)[key] = (value as any).peek()\n } else {\n ;(resolvedOptions as any)[key] = value\n }\n }\n super(resolvedOptions)\n }\n\n apply(_node: DOMNode, context: ModifierContext): DOMNode | undefined {\n if (!context.element) return\n\n const styles = this.computeUtilityStyles(this.properties)\n this.applyStyles(context.element, styles)\n \n return undefined\n }\n\n private computeUtilityStyles(props: UtilityOptions) {\n const styles: Record<string, string> = {}\n\n if (props.cursor !== undefined) {\n // Validate cursor value in development mode\n if (process.env.NODE_ENV === 'development') {\n this.validateCursorValue(props.cursor)\n }\n styles.cursor = props.cursor\n }\n if (props.overflow !== undefined) {\n styles.overflow = props.overflow\n }\n if (props.overflowX !== undefined) {\n styles.overflowX = props.overflowX\n }\n if (props.overflowY !== undefined) {\n styles.overflowY = props.overflowY\n }\n if (props.position !== undefined) {\n styles.position = props.position\n }\n if (props.top !== undefined) {\n styles.top = this.toCSSValue(props.top)\n }\n if (props.right !== undefined) {\n styles.right = this.toCSSValue(props.right)\n }\n if (props.bottom !== undefined) {\n styles.bottom = this.toCSSValue(props.bottom)\n }\n if (props.left !== undefined) {\n styles.left = this.toCSSValue(props.left)\n }\n if (props.zIndex !== undefined) {\n styles.zIndex = props.zIndex.toString()\n }\n if (props.display !== undefined) {\n styles.display = props.display\n }\n if (props.visibility !== undefined) {\n styles.visibility = props.visibility\n }\n if (props.pointerEvents !== undefined) {\n styles.pointerEvents = props.pointerEvents\n }\n if (props.userSelect !== undefined) {\n styles.userSelect = props.userSelect\n }\n if (props.boxSizing !== undefined) {\n styles.boxSizing = props.boxSizing\n }\n if (props.objectFit !== undefined) {\n styles.objectFit = props.objectFit\n }\n if (props.objectPosition !== undefined) {\n styles.objectPosition = props.objectPosition\n }\n if (props.resize !== undefined) {\n styles.resize = props.resize\n }\n if (props.outline !== undefined) {\n styles.outline = props.outline\n }\n if (props.outlineOffset !== undefined) {\n styles.outlineOffset = this.toCSSValue(props.outlineOffset)\n }\n\n return styles\n }\n\n private validateCursorValue(value: string): void {\n const validCursors = [\n 'auto', 'default', 'pointer', 'text', 'wait', 'help', 'not-allowed', 'none',\n 'grab', 'grabbing', 'zoom-in', 'zoom-out', 'alias', 'cell', 'copy'\n ]\n \n if (!validCursors.includes(value) && !value.includes('url(')) {\n console.warn(`Unknown cursor value: \"${value}\". See documentation for valid cursor values.`)\n }\n }\n}\n\n/**\n * Create a utility modifier with miscellaneous CSS properties\n */\nexport function utility(options: ReactiveUtilityOptions): UtilityModifier {\n return new UtilityModifier(options)\n}\n\n/**\n * Convenience function for cursor\n */\nexport function cursor(value: UtilityOptions['cursor']): UtilityModifier {\n return new UtilityModifier({ cursor: value })\n}\n\n/**\n * Convenience function for overflow-y\n */\nexport function overflowY(value: UtilityOptions['overflowY']): UtilityModifier {\n return new UtilityModifier({ overflowY: value })\n}\n\n/**\n * Convenience function for overflow-x\n */\nexport function overflowX(value: UtilityOptions['overflowX']): UtilityModifier {\n return new UtilityModifier({ overflowX: value })\n}\n\n/**\n * Convenience function for position\n */\nexport function position(value: UtilityOptions['position']): UtilityModifier {\n return new UtilityModifier({ position: value })\n}\n\n/**\n * Convenience function for z-index\n */\nexport function zIndex(value: number): UtilityModifier {\n return new UtilityModifier({ zIndex: value })\n}\n\n/**\n * Convenience function for display\n */\nexport function display(value: UtilityOptions['display']): UtilityModifier {\n return new UtilityModifier({ display: value })\n}\n"],"names":["UtilityModifier","BaseModifier","options","resolvedOptions","key","value","__publicField","_node","context","styles","props","utility","cursor","overflowY","overflowX","position","zIndex","display"],"mappings":";;AAoDO,MAAMA,UAAwBC,EAA6B;AAAA;AAAA,EAIhE,YAAYC,GAAiC;AAE3C,UAAMC,IAAkC,CAAA;AACxC,eAAW,CAACC,GAAKC,CAAK,KAAK,OAAO,QAAQH,CAAO;AAC/C,MAAI,OAAOG,KAAU,cAAc,UAAUA,IACzCF,EAAwBC,CAAG,IAAKC,EAAc,KAAA,IAE9CF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defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../reactive/cleanup.cjs");require("../reactive/unified-scheduler.cjs");const m=require("../reactive/effect.cjs"),d=require("../reactive/signal.cjs");require("../reactive/scheduler.cjs");require("../reactive/theme.cjs");const v=require("./base.cjs");var w=Object.defineProperty,C=(s,i,e)=>i in s?w(s,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[i]=e,M=(s,i,e)=>C(s,typeof i!="symbol"?i+"":i,e);const b={isReactive(s){return d.isSignal(s)},resolveValue(s){return d.isSignal(s)?s():s},createReactiveEffect(s,i){if(d.isSignal(s)){const e=m.createEffect(()=>{const n=s();i(n)});return()=>e.dispose()}return null},mergeProperties(s,i){const e={...s};for(const[n,p]of Object.entries(i))p!==void 0&&(e[n]=p);return e},toCamelCase(s){return s.replace(/-([a-z])/g,(i,e)=>e.toUpperCase())},toKebabCase(s){return s.replace(/([A-Z])/g,"-$1").toLowerCase()},normalizeCSSValue(s){return typeof s=="number"?`${s}px`:typeof s=="string"?s:String(s)}};function l(s,i,e){class n extends v.BaseModifier{constructor(){super(...arguments),M(this,"type",s),M(this,"priority",i)}apply(r,t){return e(r,t,this.properties)}}return p=>new n(p)}function S(s,i="combined",e=999){return l(i,e,(n,p,r)=>{let t=n;for(const o of s){const f=o.apply(t,p);f&&typeof f=="object"&&"type"in f&&(t=f)}return t})({})}function E(s,i){return l(`conditional-${i.type}`,i.priority,(e,n,p)=>{if(b.resolveValue(s))return i.apply(e,n);if(d.isSignal(s)){const t=m.createEffect(()=>{const o=s();n.element&&o&&i.apply(e,n)});if(!e.dispose)e.dispose=()=>t.dispose();else{const o=e.dispose;e.dispose=()=>{t.dispose(),o()}}}return e})({})}function _(s,i){return l("state",500,(e,n,p)=>{let r=e;const t=f=>{const a=i[f]||[];for(const y of a){const c=y.apply(r,n);c&&typeof c=="object"&&"type"in c&&(r=c)}};t(s());const o=m.createEffect(()=>{const f=s();t(f)});if(!e.dispose)e.dispose=()=>o.dispose();else{const f=e.dispose;e.dispose=()=>{o.dispose(),f()}}return r})({})}function h(s,i=[]){return l("responsive",100,(e,n,p)=>{let r=e;const t=()=>{const a=window.innerWidth;let y=i;for(const[c,u]of Object.entries(s)){const g=parseInt(c);a>=g&&(y=u)}for(const c of y){const u=c.apply(r,n);u&&typeof u=="object"&&"type"in u&&(r=u)}};t();const o=()=>t();window.addEventListener("resize",o);const f=()=>window.removeEventListener("resize",o);if(!e.dispose)e.dispose=f;else{const a=e.dispose;e.dispose=()=>{f(),a()}}return r})({})}function L(s){return l("class",50,(i,e,n)=>{if(!e.element)return i;const p=r=>{const t=Array.isArray(r)?r:r.split(" ").filter(Boolean);e.element instanceof HTMLElement&&e.element.classList.add(...t)};if(d.isSignal(s)){let r=[];const t=m.createEffect(()=>{const o=s(),f=Array.isArray(o)?o:o.split(" ").filter(Boolean);e.element instanceof HTMLElement&&(e.element.classList.remove(...r),e.element.classList.add(...f),r=f)});if(!i.dispose)i.dispose=()=>t.dispose();else{const o=i.dispose;i.dispose=()=>{t.dispose(),o()}}}else p(s);return i})({})}function A(s){return l("style",200,(i,e,n)=>{if(!e.element)return i;const p=r=>{if(e.element instanceof HTMLElement)for(const[t,o]of Object.entries(r)){const f=b.toKebabCase(t),a=b.normalizeCSSValue(o);e.element.style.setProperty(f,a)}};if(d.isSignal(s)){const r=m.createEffect(()=>{const t=s();p(t)});if(!i.dispose)i.dispose=()=>r.dispose();else{const t=i.dispose;i.dispose=()=>{r.dispose(),t()}}}else p(s);return i})({})}function $(s){return l("event",300,(i,e,n)=>{if(!e.element)return i;const p=[];for(const[t,o]of Object.entries(s))e.element.addEventListener(t,o),p.push(()=>{e.element?.removeEventListener(t,o)});const r=()=>p.forEach(t=>t());if(!i.dispose)i.dispose=r;else{const t=i.dispose;i.dispose=()=>{r(),t()}}return i})({})}exports.classModifier=L;exports.combineModifiers=S;exports.conditionalModifier=E;exports.createCustomModifier=l;exports.eventModifier=$;exports.modifierHelpers=b;exports.responsiveModifier=h;exports.stateModifier=_;exports.styleModifier=A;
|
|
2
|
-
//# sourceMappingURL=utils.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.cjs","sources":["../../src/modifiers/utils.ts"],"sourcesContent":["/**\n * Modifier Utilities and Helper Functions\n *\n * Utility functions for creating custom modifiers, combining modifiers,\n * and working with the modifier system.\n */\n\nimport { createEffect } from '../reactive'\nimport { isSignal } from '../reactive/signal'\nimport type { Signal } from '../reactive/types'\nimport type { DOMNode } from '../runtime/types'\nimport { BaseModifier } from './base'\nimport type { Modifier, ModifierContext, ModifierFactory, ReactiveModifierProps } from './types'\n\n/**\n * Helper functions for working with modifiers\n */\nexport const modifierHelpers = {\n /**\n * Check if a value is a reactive signal\n */\n isReactive<T>(value: T | Signal<T>): value is Signal<T> {\n return isSignal(value)\n },\n\n /**\n * Resolve a potentially reactive value\n */\n resolveValue<T>(value: T | Signal<T>): T {\n return isSignal(value) ? value() : value\n },\n\n /**\n * Create a reactive effect for a value\n */\n createReactiveEffect<T>(\n value: T | Signal<T>,\n onChange: (newValue: T) => void\n ): (() => void) | null {\n if (isSignal(value)) {\n const effect = createEffect(() => {\n const newValue = value()\n onChange(newValue)\n })\n return () => effect.dispose()\n }\n return null\n },\n\n /**\n * Merge modifier properties\n */\n mergeProperties<T extends Record<string, any>>(base: T, override: Partial<T>): T {\n const result = { ...base }\n\n for (const [key, value] of Object.entries(override)) {\n if (value !== undefined) {\n result[key as keyof T] = value\n }\n }\n\n return result\n },\n\n /**\n * Convert a CSS property name to camelCase\n */\n toCamelCase(cssProperty: string): string {\n return cssProperty.replace(/-([a-z])/g, (_match, letter) => letter.toUpperCase())\n },\n\n /**\n * Convert a camelCase property to CSS kebab-case\n */\n toKebabCase(camelProperty: string): string {\n return camelProperty.replace(/([A-Z])/g, '-$1').toLowerCase()\n },\n\n /**\n * Normalize a CSS value\n */\n normalizeCSSValue(value: any): string {\n if (typeof value === 'number') {\n return `${value}px`\n }\n if (typeof value === 'string') {\n return value\n }\n return String(value)\n },\n}\n\n/**\n * Create a custom modifier\n */\nexport function createCustomModifier<TProps extends Record<string, any>>(\n type: string,\n priority: number,\n applyFn: (node: DOMNode, context: ModifierContext, props: TProps) => DOMNode | undefined\n): ModifierFactory<TProps> {\n class CustomModifier extends BaseModifier<TProps> {\n readonly type = type\n readonly priority = priority\n\n apply(node: DOMNode, context: ModifierContext): DOMNode | undefined {\n return applyFn(node, context, this.properties)\n }\n }\n\n return (props: ReactiveModifierProps<TProps>) => new CustomModifier(props as TProps)\n}\n\n/**\n * Combine multiple modifiers into a single modifier\n */\nexport function combineModifiers(\n modifiers: Modifier[],\n type: string = 'combined',\n priority: number = 999\n): Modifier {\n return createCustomModifier(type, priority, (node, context, _props) => {\n let currentNode = node\n\n // Apply all modifiers in sequence\n for (const modifier of modifiers) {\n const result = modifier.apply(currentNode, context)\n if (result && typeof result === 'object' && 'type' in result) {\n currentNode = result\n }\n }\n\n return currentNode\n })({})\n}\n\n/**\n * Create a conditional modifier that only applies if a condition is met\n */\nexport function conditionalModifier(\n condition: boolean | Signal<boolean>,\n modifier: Modifier\n): Modifier {\n return createCustomModifier(\n `conditional-${modifier.type}`,\n modifier.priority,\n (node, context, _props) => {\n const shouldApply = modifierHelpers.resolveValue(condition)\n\n if (shouldApply) {\n return modifier.apply(node, context)\n }\n\n // If reactive, set up effect to watch condition changes\n if (isSignal(condition)) {\n const effect = createEffect(() => {\n const newCondition = condition()\n if (context.element) {\n if (newCondition) {\n modifier.apply(node, context)\n } else {\n // Remove the modifier's effects\n // This would need more sophisticated state tracking\n }\n }\n })\n\n // Store cleanup\n if (!node.dispose) {\n node.dispose = () => effect.dispose()\n } else {\n const existingDispose = node.dispose\n node.dispose = () => {\n effect.dispose()\n existingDispose()\n }\n }\n }\n\n return node\n }\n )({})\n}\n\n/**\n * Create a modifier that applies different styles based on state\n */\nexport function stateModifier<T extends string>(\n stateSignal: Signal<T>,\n stateModifiers: Record<T, Modifier[]>\n): Modifier {\n return createCustomModifier('state', 500, (node, context, _props) => {\n let currentNode = node\n\n const applyStateModifiers = (state: T) => {\n const modifiers = stateModifiers[state] || []\n\n for (const modifier of modifiers) {\n const result = modifier.apply(currentNode, context)\n if (result && typeof result === 'object' && 'type' in result) {\n currentNode = result\n }\n }\n }\n\n // Apply initial state\n applyStateModifiers(stateSignal())\n\n // Set up reactive effect\n const effect = createEffect(() => {\n const newState = stateSignal()\n applyStateModifiers(newState)\n })\n\n // Store cleanup\n if (!node.dispose) {\n node.dispose = () => effect.dispose()\n } else {\n const existingDispose = node.dispose\n node.dispose = () => {\n effect.dispose()\n existingDispose()\n }\n }\n\n return currentNode\n })({})\n}\n\n/**\n * Create a responsive modifier that applies different modifiers based on screen size\n */\nexport function responsiveModifier(\n breakpoints: Record<string, Modifier[]>,\n defaultModifiers: Modifier[] = []\n): Modifier {\n return createCustomModifier('responsive', 100, (node, context, _props) => {\n let currentNode = node\n\n const applyResponsiveModifiers = () => {\n const width = window.innerWidth\n let modifiersToApply = defaultModifiers\n\n // Determine which breakpoint applies\n for (const [breakpoint, modifiers] of Object.entries(breakpoints)) {\n const breakpointWidth = parseInt(breakpoint)\n if (width >= breakpointWidth) {\n modifiersToApply = modifiers\n }\n }\n\n // Apply the modifiers\n for (const modifier of modifiersToApply) {\n const result = modifier.apply(currentNode, context)\n if (result && typeof result === 'object' && 'type' in result) {\n currentNode = result\n }\n }\n }\n\n // Apply initial modifiers\n applyResponsiveModifiers()\n\n // Set up resize listener\n const handleResize = () => applyResponsiveModifiers()\n window.addEventListener('resize', handleResize)\n\n // Store cleanup\n const cleanup = () => window.removeEventListener('resize', handleResize)\n if (!node.dispose) {\n node.dispose = cleanup\n } else {\n const existingDispose = node.dispose\n node.dispose = () => {\n cleanup()\n existingDispose()\n }\n }\n\n return currentNode\n })({})\n}\n\n/**\n * Create a modifier that applies CSS classes\n */\nexport function classModifier(classes: string | string[] | Signal<string | string[]>): Modifier {\n return createCustomModifier('class', 50, (node, context, _props) => {\n if (!context.element) return node\n\n const applyClasses = (classNames: string | string[]) => {\n const classList = Array.isArray(classNames)\n ? classNames\n : classNames.split(' ').filter(Boolean)\n\n if (context.element instanceof HTMLElement) {\n context.element.classList.add(...classList)\n }\n }\n\n if (isSignal(classes)) {\n // Reactive classes\n let previousClasses: string[] = []\n\n const effect = createEffect(() => {\n const newClasses = classes()\n const newClassList = Array.isArray(newClasses)\n ? newClasses\n : newClasses.split(' ').filter(Boolean)\n\n if (context.element instanceof HTMLElement) {\n // Remove previous classes\n context.element.classList.remove(...previousClasses)\n // Add new classes\n context.element.classList.add(...newClassList)\n previousClasses = newClassList\n }\n })\n\n // Store cleanup\n if (!node.dispose) {\n node.dispose = () => effect.dispose()\n } else {\n const existingDispose = node.dispose\n node.dispose = () => {\n effect.dispose()\n existingDispose()\n }\n }\n } else {\n // Static classes\n applyClasses(classes)\n }\n\n return node\n })({})\n}\n\n/**\n * Create a modifier that applies inline styles\n */\nexport function styleModifier(\n styles: Record<string, string | number> | Signal<Record<string, string | number>>\n): Modifier {\n return createCustomModifier('style', 200, (node, context, _props) => {\n if (!context.element) return node\n\n const applyStyles = (styleObj: Record<string, string | number>) => {\n if (context.element instanceof HTMLElement) {\n for (const [property, value] of Object.entries(styleObj)) {\n const cssProperty = modifierHelpers.toKebabCase(property)\n const cssValue = modifierHelpers.normalizeCSSValue(value)\n context.element.style.setProperty(cssProperty, cssValue)\n }\n }\n }\n\n if (isSignal(styles)) {\n // Reactive styles\n const effect = createEffect(() => {\n const newStyles = styles()\n applyStyles(newStyles)\n })\n\n // Store cleanup\n if (!node.dispose) {\n node.dispose = () => effect.dispose()\n } else {\n const existingDispose = node.dispose\n node.dispose = () => {\n effect.dispose()\n existingDispose()\n }\n }\n } else {\n // Static styles\n applyStyles(styles)\n }\n\n return node\n })({})\n}\n\n/**\n * Utility to create a modifier that adds event listeners\n */\nexport function eventModifier(events: Record<string, EventListener>): Modifier {\n return createCustomModifier('event', 300, (node, context, _props) => {\n if (!context.element) return node\n\n const cleanupFunctions: (() => void)[] = []\n\n for (const [eventType, handler] of Object.entries(events)) {\n context.element.addEventListener(eventType, handler)\n cleanupFunctions.push(() => {\n context.element?.removeEventListener(eventType, handler)\n })\n }\n\n // Store cleanup\n const cleanup = () => cleanupFunctions.forEach((fn) => fn())\n if (!node.dispose) {\n node.dispose = cleanup\n } else {\n const existingDispose = node.dispose\n node.dispose = () => {\n cleanup()\n existingDispose()\n }\n }\n\n return node\n })({})\n}\n"],"names":["modifierHelpers","value","isSignal","onChange","effect","createEffect","newValue","base","override","result","key","cssProperty","_match","letter","camelProperty","createCustomModifier","type","priority","applyFn","CustomModifier","BaseModifier","__publicField","node","context","props","combineModifiers","modifiers","_props","currentNode","modifier","conditionalModifier","condition","newCondition","existingDispose","stateModifier","stateSignal","stateModifiers","applyStateModifiers","state","newState","responsiveModifier","breakpoints","defaultModifiers","applyResponsiveModifiers","width","modifiersToApply","breakpoint","breakpointWidth","handleResize","cleanup","classModifier","classes","applyClasses","classNames","classList","previousClasses","newClasses","newClassList","styleModifier","styles","applyStyles","styleObj","property","cssValue","newStyles","eventModifier","events","cleanupFunctions","eventType","handler","fn"],"mappings":"8eAiBO,MAAMA,EAAkB,CAI7B,WAAcC,EAA0C,CACtD,OAAOC,EAAAA,SAASD,CAAK,CACvB,EAKA,aAAgBA,EAAyB,CACvC,OAAOC,WAASD,CAAK,EAAIA,EAAA,EAAUA,CACrC,EAKA,qBACEA,EACAE,EACqB,CACrB,GAAID,EAAAA,SAASD,CAAK,EAAG,CACnB,MAAMG,EAASC,EAAAA,aAAa,IAAM,CAChC,MAAMC,EAAWL,EAAA,EACjBE,EAASG,CAAQ,CACnB,CAAC,EACD,MAAO,IAAMF,EAAO,QAAA,CACtB,CACA,OAAO,IACT,EAKA,gBAA+CG,EAASC,EAAyB,CAC/E,MAAMC,EAAS,CAAE,GAAGF,CAAA,EAEpB,SAAW,CAACG,EAAKT,CAAK,IAAK,OAAO,QAAQO,CAAQ,EAC5CP,IAAU,SACZQ,EAAOC,CAAc,E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