@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,323 +0,0 @@
|
|
|
1
|
-
import "../reactive/cleanup.js";
|
|
2
|
-
import "../reactive/unified-scheduler.js";
|
|
3
|
-
import { isSignal as l } from "../reactive/signal.js";
|
|
4
|
-
import "../reactive/scheduler.js";
|
|
5
|
-
import "../reactive/theme.js";
|
|
6
|
-
import "../runtime/component.js";
|
|
7
|
-
import "../runtime/context.js";
|
|
8
|
-
import "../runtime/dev-tools.js";
|
|
9
|
-
import "../runtime/dom-bridge.js";
|
|
10
|
-
import "../runtime/error-boundary.js";
|
|
11
|
-
import "../runtime/error-reporting.js";
|
|
12
|
-
import "../runtime/performance.js";
|
|
13
|
-
import { h as s, text as p } from "../runtime/renderer.js";
|
|
14
|
-
import "../runtime/element-override.js";
|
|
15
|
-
import "../runtime/semantic-role-manager.js";
|
|
16
|
-
import "../runtime/development-warnings.js";
|
|
17
|
-
import { withModifiers as a } from "./wrapper.js";
|
|
18
|
-
var d = Object.defineProperty, c = (r, e, t) => e in r ? d(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, i = (r, e, t) => c(r, typeof e != "symbol" ? e + "" : e, t);
|
|
19
|
-
class u {
|
|
20
|
-
constructor(e) {
|
|
21
|
-
this.props = e, i(this, "type", "component"), i(this, "id"), i(this, "mounted", !1), i(this, "cleanup", []), i(this, "handleToggle", () => {
|
|
22
|
-
this.props.onToggle && this.props.onToggle(!this.isCollapsed());
|
|
23
|
-
}), this.id = `section-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Resolve dynamic content
|
|
27
|
-
*/
|
|
28
|
-
resolveContent(e) {
|
|
29
|
-
return e ? typeof e == "string" ? e : typeof e == "function" || l(e) ? e() : e : null;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if section is collapsed
|
|
33
|
-
*/
|
|
34
|
-
isCollapsed() {
|
|
35
|
-
const { collapsed: e } = this.props;
|
|
36
|
-
return typeof e == "boolean" ? e : l(e) ? e() : !1;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Helper to render component content safely
|
|
40
|
-
*/
|
|
41
|
-
renderComponentContent(e) {
|
|
42
|
-
const t = e.render();
|
|
43
|
-
return Array.isArray(t) ? t : [t];
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Get section styles based on style prop
|
|
47
|
-
*/
|
|
48
|
-
getSectionStyles() {
|
|
49
|
-
const { style: e = "automatic" } = this.props, t = {
|
|
50
|
-
marginBottom: "20px"
|
|
51
|
-
};
|
|
52
|
-
switch (e) {
|
|
53
|
-
case "grouped":
|
|
54
|
-
return {
|
|
55
|
-
...t,
|
|
56
|
-
backgroundColor: "#ffffff",
|
|
57
|
-
border: "1px solid #e0e0e0",
|
|
58
|
-
borderRadius: "12px",
|
|
59
|
-
overflow: "hidden"
|
|
60
|
-
};
|
|
61
|
-
case "inset":
|
|
62
|
-
return {
|
|
63
|
-
...t,
|
|
64
|
-
backgroundColor: "#f8f9fa",
|
|
65
|
-
border: "1px solid #e9ecef",
|
|
66
|
-
borderRadius: "8px",
|
|
67
|
-
margin: "0 16px 20px 16px"
|
|
68
|
-
};
|
|
69
|
-
case "sidebar":
|
|
70
|
-
return {
|
|
71
|
-
...t,
|
|
72
|
-
borderLeft: "3px solid #007AFF",
|
|
73
|
-
paddingLeft: "16px",
|
|
74
|
-
backgroundColor: "#f8f9fa",
|
|
75
|
-
borderRadius: "0 8px 8px 0"
|
|
76
|
-
};
|
|
77
|
-
case "plain":
|
|
78
|
-
return t;
|
|
79
|
-
default:
|
|
80
|
-
return {
|
|
81
|
-
...t,
|
|
82
|
-
backgroundColor: "#ffffff",
|
|
83
|
-
border: "1px solid #f0f0f0",
|
|
84
|
-
borderRadius: "8px"
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Get header styles
|
|
90
|
-
*/
|
|
91
|
-
getHeaderStyles() {
|
|
92
|
-
const { style: e = "automatic" } = this.props, t = {
|
|
93
|
-
fontSize: "16px",
|
|
94
|
-
fontWeight: "600",
|
|
95
|
-
color: "#1a1a1a",
|
|
96
|
-
margin: "0 0 12px 0"
|
|
97
|
-
};
|
|
98
|
-
switch (e) {
|
|
99
|
-
case "grouped":
|
|
100
|
-
case "inset":
|
|
101
|
-
return {
|
|
102
|
-
...t,
|
|
103
|
-
padding: "12px 16px 0 16px",
|
|
104
|
-
backgroundColor: "#f8f9fa",
|
|
105
|
-
borderBottom: "1px solid #e9ecef"
|
|
106
|
-
};
|
|
107
|
-
case "sidebar":
|
|
108
|
-
return {
|
|
109
|
-
...t,
|
|
110
|
-
fontSize: "14px",
|
|
111
|
-
textTransform: "uppercase",
|
|
112
|
-
letterSpacing: "0.5px",
|
|
113
|
-
color: "#666",
|
|
114
|
-
marginBottom: "8px"
|
|
115
|
-
};
|
|
116
|
-
default:
|
|
117
|
-
return {
|
|
118
|
-
...t,
|
|
119
|
-
padding: "0 0 8px 0"
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Get content styles
|
|
125
|
-
*/
|
|
126
|
-
getContentStyles() {
|
|
127
|
-
const { style: e = "automatic", spacing: t = 12 } = this.props, o = {
|
|
128
|
-
display: "flex",
|
|
129
|
-
flexDirection: "column",
|
|
130
|
-
gap: `${t}px`
|
|
131
|
-
};
|
|
132
|
-
switch (e) {
|
|
133
|
-
case "grouped":
|
|
134
|
-
case "inset":
|
|
135
|
-
return {
|
|
136
|
-
...o,
|
|
137
|
-
padding: "16px"
|
|
138
|
-
};
|
|
139
|
-
case "sidebar":
|
|
140
|
-
return {
|
|
141
|
-
...o,
|
|
142
|
-
padding: "8px 0"
|
|
143
|
-
};
|
|
144
|
-
default:
|
|
145
|
-
return {
|
|
146
|
-
...o,
|
|
147
|
-
padding: "12px"
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Get footer styles
|
|
153
|
-
*/
|
|
154
|
-
getFooterStyles() {
|
|
155
|
-
const { style: e = "automatic" } = this.props, t = {
|
|
156
|
-
fontSize: "14px",
|
|
157
|
-
color: "#666",
|
|
158
|
-
margin: "8px 0 0 0"
|
|
159
|
-
};
|
|
160
|
-
switch (e) {
|
|
161
|
-
case "grouped":
|
|
162
|
-
case "inset":
|
|
163
|
-
return {
|
|
164
|
-
...t,
|
|
165
|
-
padding: "0 16px 12px 16px",
|
|
166
|
-
backgroundColor: "#f8f9fa",
|
|
167
|
-
borderTop: "1px solid #e9ecef"
|
|
168
|
-
};
|
|
169
|
-
default:
|
|
170
|
-
return {
|
|
171
|
-
...t,
|
|
172
|
-
padding: "0 0 4px 0"
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Render header content
|
|
178
|
-
*/
|
|
179
|
-
renderHeader() {
|
|
180
|
-
const e = this.resolveContent(this.props.header);
|
|
181
|
-
if (!e) return null;
|
|
182
|
-
const t = this.getHeaderStyles();
|
|
183
|
-
if (this.props.collapsible) {
|
|
184
|
-
const o = this.isCollapsed() ? "▶" : "▼";
|
|
185
|
-
return s(
|
|
186
|
-
"div",
|
|
187
|
-
{
|
|
188
|
-
style: {
|
|
189
|
-
...t,
|
|
190
|
-
cursor: "pointer",
|
|
191
|
-
display: "flex",
|
|
192
|
-
alignItems: "center",
|
|
193
|
-
gap: "8px"
|
|
194
|
-
},
|
|
195
|
-
onClick: this.handleToggle
|
|
196
|
-
},
|
|
197
|
-
s(
|
|
198
|
-
"span",
|
|
199
|
-
{
|
|
200
|
-
style: {
|
|
201
|
-
fontSize: "12px",
|
|
202
|
-
color: "#666"
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
p(o)
|
|
206
|
-
),
|
|
207
|
-
...typeof e == "string" ? [p(e)] : this.renderComponentContent(e)
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
return s(
|
|
211
|
-
"div",
|
|
212
|
-
{ style: t },
|
|
213
|
-
...typeof e == "string" ? [p(e)] : this.renderComponentContent(e)
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Render content
|
|
218
|
-
*/
|
|
219
|
-
renderContent() {
|
|
220
|
-
const { children: e = [] } = this.props;
|
|
221
|
-
return this.props.collapsible && this.isCollapsed() || e.length === 0 ? null : s(
|
|
222
|
-
"div",
|
|
223
|
-
{
|
|
224
|
-
style: this.getContentStyles()
|
|
225
|
-
},
|
|
226
|
-
...e.flatMap((t) => {
|
|
227
|
-
const o = t.render();
|
|
228
|
-
return Array.isArray(o) ? o : [o];
|
|
229
|
-
})
|
|
230
|
-
);
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* Render footer content
|
|
234
|
-
*/
|
|
235
|
-
renderFooter() {
|
|
236
|
-
const e = this.resolveContent(this.props.footer);
|
|
237
|
-
return e ? s(
|
|
238
|
-
"div",
|
|
239
|
-
{
|
|
240
|
-
style: this.getFooterStyles()
|
|
241
|
-
},
|
|
242
|
-
...typeof e == "string" ? [p(e)] : this.renderComponentContent(e)
|
|
243
|
-
) : null;
|
|
244
|
-
}
|
|
245
|
-
render() {
|
|
246
|
-
const { accessibilityLabel: e, accessibilityRole: t = "group" } = this.props;
|
|
247
|
-
return s(
|
|
248
|
-
"div",
|
|
249
|
-
{
|
|
250
|
-
style: this.getSectionStyles(),
|
|
251
|
-
"aria-label": e,
|
|
252
|
-
role: t
|
|
253
|
-
},
|
|
254
|
-
...[this.renderHeader(), this.renderContent(), this.renderFooter()].filter(
|
|
255
|
-
(o) => o !== null
|
|
256
|
-
)
|
|
257
|
-
);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
function n(r, e = {}) {
|
|
261
|
-
console.warn(
|
|
262
|
-
"Section from @tachui/core is deprecated. Use FormSection from @tachui/forms for form contexts, or VStack for general layout grouping."
|
|
263
|
-
);
|
|
264
|
-
const t = { ...e, children: r }, o = new u(t);
|
|
265
|
-
return a(o);
|
|
266
|
-
}
|
|
267
|
-
function R(r, e, t = {}) {
|
|
268
|
-
return n(e, { ...t, header: r });
|
|
269
|
-
}
|
|
270
|
-
function k(r, e, t, o = {}) {
|
|
271
|
-
return n(t, { ...o, header: r, footer: e });
|
|
272
|
-
}
|
|
273
|
-
const z = {
|
|
274
|
-
/**
|
|
275
|
-
* Automatic section styling (default)
|
|
276
|
-
*/
|
|
277
|
-
Automatic(r, e = {}) {
|
|
278
|
-
return n(r, { ...e, style: "automatic" });
|
|
279
|
-
},
|
|
280
|
-
/**
|
|
281
|
-
* Grouped section with container styling
|
|
282
|
-
*/
|
|
283
|
-
Grouped(r, e = {}) {
|
|
284
|
-
return n(r, { ...e, style: "grouped" });
|
|
285
|
-
},
|
|
286
|
-
/**
|
|
287
|
-
* Inset section styling
|
|
288
|
-
*/
|
|
289
|
-
Inset(r, e = {}) {
|
|
290
|
-
return n(r, { ...e, style: "inset" });
|
|
291
|
-
},
|
|
292
|
-
/**
|
|
293
|
-
* Sidebar-style section
|
|
294
|
-
*/
|
|
295
|
-
Sidebar(r, e = {}) {
|
|
296
|
-
return n(r, { ...e, style: "sidebar" });
|
|
297
|
-
},
|
|
298
|
-
/**
|
|
299
|
-
* Plain section without styling
|
|
300
|
-
*/
|
|
301
|
-
Plain(r, e = {}) {
|
|
302
|
-
return n(r, { ...e, style: "plain" });
|
|
303
|
-
},
|
|
304
|
-
/**
|
|
305
|
-
* Collapsible section
|
|
306
|
-
*/
|
|
307
|
-
Collapsible(r, e, t = !1, o = {}) {
|
|
308
|
-
return n(e, {
|
|
309
|
-
...o,
|
|
310
|
-
header: r,
|
|
311
|
-
collapsible: !0,
|
|
312
|
-
collapsed: t
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
export {
|
|
317
|
-
u as EnhancedSection,
|
|
318
|
-
n as Section,
|
|
319
|
-
z as SectionStyles,
|
|
320
|
-
R as SectionWithHeader,
|
|
321
|
-
k as SectionWithHeaderFooter
|
|
322
|
-
};
|
|
323
|
-
//# sourceMappingURL=Section.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Section.js","sources":["../../src/components/Section.ts"],"sourcesContent":["/**\n * Enhanced Section Component (Phase 6.4.2)\n *\n * @deprecated This component has been superseded by FormSection from @tachui/forms \n * for form contexts, which provides the same features with better semantic HTML.\n * For general layout grouping, use VStack or HStack with styling instead.\n *\n * Migration Guide:\n * - For forms: Replace with FormSection from @tachui/forms\n * - For general grouping: Use VStack with styling modifiers\n * - All props are compatible between Section and FormSection\n *\n * SwiftUI-inspired Section component for grouping form content\n * with headers, footers, and automatic styling.\n */\n\nimport type { ModifiableComponent, ModifierBuilder } from '../modifiers/types'\nimport { isSignal } from '../reactive'\nimport type { Signal } from '../reactive/types'\nimport { h, text } from '../runtime'\nimport type { ComponentInstance, ComponentProps, DOMNode } from '../runtime/types'\nimport { withModifiers } from './wrapper'\n\n/**\n * Section component properties\n */\nexport interface SectionProps extends ComponentProps {\n children?: ComponentInstance[]\n\n // Content\n header?: string | (() => string) | Signal<string> | ComponentInstance\n footer?: string | (() => string) | Signal<string> | ComponentInstance\n\n // Styling\n style?: 'automatic' | 'grouped' | 'inset' | 'plain' | 'sidebar'\n spacing?: number\n\n // Behavior\n collapsible?: boolean\n collapsed?: boolean | Signal<boolean>\n onToggle?: (collapsed: boolean) => void\n\n // Accessibility\n accessibilityLabel?: string\n accessibilityRole?: string\n}\n\n/**\n * Enhanced Section component class\n */\nexport class EnhancedSection implements ComponentInstance<SectionProps> {\n public readonly type = 'component' as const\n public readonly id: string\n public mounted = false\n public cleanup: (() => void)[] = []\n\n constructor(public props: SectionProps) {\n this.id = `section-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`\n }\n\n /**\n * Resolve dynamic content\n */\n private resolveContent(\n content: string | (() => string) | Signal<string> | ComponentInstance | undefined\n ): string | ComponentInstance | null {\n if (!content) return null\n\n if (typeof content === 'string') {\n return content\n } else if (typeof content === 'function') {\n return content()\n } else if (isSignal(content)) {\n return (content as () => string)()\n } else {\n return content as ComponentInstance\n }\n }\n\n /**\n * Check if section is collapsed\n */\n private isCollapsed(): boolean {\n const { collapsed } = this.props\n if (typeof collapsed === 'boolean') return collapsed\n if (isSignal(collapsed)) return (collapsed as () => boolean)()\n return false\n }\n\n /**\n * Handle toggle action\n */\n private handleToggle = () => {\n if (this.props.onToggle) {\n this.props.onToggle(!this.isCollapsed())\n }\n }\n\n /**\n * Helper to render component content safely\n */\n private renderComponentContent(content: ComponentInstance): DOMNode[] {\n const rendered = content.render()\n return Array.isArray(rendered) ? rendered : [rendered]\n }\n\n /**\n * Get section styles based on style prop\n */\n private getSectionStyles() {\n const { style = 'automatic' } = this.props\n\n const baseStyles = {\n marginBottom: '20px',\n }\n\n switch (style) {\n case 'grouped':\n return {\n ...baseStyles,\n backgroundColor: '#ffffff',\n border: '1px solid #e0e0e0',\n borderRadius: '12px',\n overflow: 'hidden' as const,\n }\n\n case 'inset':\n return {\n ...baseStyles,\n backgroundColor: '#f8f9fa',\n border: '1px solid #e9ecef',\n borderRadius: '8px',\n margin: '0 16px 20px 16px',\n }\n\n case 'sidebar':\n return {\n ...baseStyles,\n borderLeft: '3px solid #007AFF',\n paddingLeft: '16px',\n backgroundColor: '#f8f9fa',\n borderRadius: '0 8px 8px 0',\n }\n\n case 'plain':\n return baseStyles\n default:\n return {\n ...baseStyles,\n backgroundColor: '#ffffff',\n border: '1px solid #f0f0f0',\n borderRadius: '8px',\n }\n }\n }\n\n /**\n * Get header styles\n */\n private getHeaderStyles() {\n const { style = 'automatic' } = this.props\n\n const baseStyles = {\n fontSize: '16px',\n fontWeight: '600' as const,\n color: '#1a1a1a',\n margin: '0 0 12px 0',\n }\n\n switch (style) {\n case 'grouped':\n case 'inset':\n return {\n ...baseStyles,\n padding: '12px 16px 0 16px',\n backgroundColor: '#f8f9fa',\n borderBottom: '1px solid #e9ecef',\n }\n\n case 'sidebar':\n return {\n ...baseStyles,\n fontSize: '14px',\n textTransform: 'uppercase' as const,\n letterSpacing: '0.5px',\n color: '#666',\n marginBottom: '8px',\n }\n\n default:\n return {\n ...baseStyles,\n padding: '0 0 8px 0',\n }\n }\n }\n\n /**\n * Get content styles\n */\n private getContentStyles() {\n const { style = 'automatic', spacing = 12 } = this.props\n\n const baseStyles = {\n display: 'flex',\n flexDirection: 'column' as const,\n gap: `${spacing}px`,\n }\n\n switch (style) {\n case 'grouped':\n case 'inset':\n return {\n ...baseStyles,\n padding: '16px',\n }\n\n case 'sidebar':\n return {\n ...baseStyles,\n padding: '8px 0',\n }\n\n default:\n return {\n ...baseStyles,\n padding: '12px',\n }\n }\n }\n\n /**\n * Get footer styles\n */\n private getFooterStyles() {\n const { style = 'automatic' } = this.props\n\n const baseStyles = {\n fontSize: '14px',\n color: '#666',\n margin: '8px 0 0 0',\n }\n\n switch (style) {\n case 'grouped':\n case 'inset':\n return {\n ...baseStyles,\n padding: '0 16px 12px 16px',\n backgroundColor: '#f8f9fa',\n borderTop: '1px solid #e9ecef',\n }\n\n default:\n return {\n ...baseStyles,\n padding: '0 0 4px 0',\n }\n }\n }\n\n /**\n * Render header content\n */\n private renderHeader() {\n const headerContent = this.resolveContent(this.props.header)\n if (!headerContent) return null\n\n const headerStyles = this.getHeaderStyles()\n\n // Add collapse toggle if collapsible\n if (this.props.collapsible) {\n const toggleIcon = this.isCollapsed() ? '▶' : '▼'\n\n return h(\n 'div',\n {\n style: {\n ...headerStyles,\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n gap: '8px',\n },\n onClick: this.handleToggle,\n },\n h(\n 'span',\n {\n style: {\n fontSize: '12px',\n color: '#666',\n },\n },\n text(toggleIcon)\n ),\n\n ...(typeof headerContent === 'string'\n ? [text(headerContent)]\n : this.renderComponentContent(headerContent as ComponentInstance))\n )\n }\n\n return h(\n 'div',\n { style: headerStyles },\n ...(typeof headerContent === 'string'\n ? [text(headerContent)]\n : this.renderComponentContent(headerContent as ComponentInstance))\n )\n }\n\n /**\n * Render content\n */\n private renderContent() {\n const { children = [] } = this.props\n\n // Don't render content if collapsed\n if (this.props.collapsible && this.isCollapsed()) {\n return null\n }\n\n if (children.length === 0) return null\n\n return h(\n 'div',\n {\n style: this.getContentStyles(),\n },\n ...children.flatMap((child) => {\n const rendered = child.render()\n return Array.isArray(rendered) ? rendered : [rendered]\n })\n )\n }\n\n /**\n * Render footer content\n */\n private renderFooter() {\n const footerContent = this.resolveContent(this.props.footer)\n if (!footerContent) return null\n\n return h(\n 'div',\n {\n style: this.getFooterStyles(),\n },\n ...(typeof footerContent === 'string'\n ? [text(footerContent)]\n : this.renderComponentContent(footerContent as ComponentInstance))\n )\n }\n\n render() {\n const { accessibilityLabel, accessibilityRole = 'group' } = this.props\n\n return h(\n 'div',\n {\n style: this.getSectionStyles(),\n 'aria-label': accessibilityLabel,\n role: accessibilityRole,\n },\n ...[this.renderHeader(), this.renderContent(), this.renderFooter()].filter(\n (item): item is DOMNode => item !== null\n )\n )\n }\n}\n\n/**\n * Section component function\n * @deprecated Use FormSection from @tachui/forms for form contexts, or VStack for general grouping\n */\nexport function Section(\n children: ComponentInstance[],\n props: Omit<SectionProps, 'children'> = {}\n): ModifiableComponent<SectionProps> & {\n modifier: ModifierBuilder<ModifiableComponent<SectionProps>>\n} {\n console.warn(\n 'Section from @tachui/core is deprecated. Use FormSection from @tachui/forms for form contexts, or VStack for general layout grouping.'\n )\n const sectionProps: SectionProps = { ...props, children }\n const component = new EnhancedSection(sectionProps)\n return withModifiers(component)\n}\n\n/**\n * Section with header\n * @deprecated Use FormSection from @tachui/forms\n */\nexport function SectionWithHeader(\n header: string | (() => string) | Signal<string> | ComponentInstance,\n children: ComponentInstance[],\n props: Omit<SectionProps, 'children' | 'header'> = {}\n) {\n return Section(children, { ...props, header })\n}\n\n/**\n * Section with header and footer\n * @deprecated Use FormSection from @tachui/forms\n */\nexport function SectionWithHeaderFooter(\n header: string | (() => string) | Signal<string> | ComponentInstance,\n footer: string | (() => string) | Signal<string> | ComponentInstance,\n children: ComponentInstance[],\n props: Omit<SectionProps, 'children' | 'header' | 'footer'> = {}\n) {\n return Section(children, { ...props, header, footer })\n}\n\n/**\n * Section style variants\n * @deprecated Use FormSection from @tachui/forms with style prop\n */\nexport const SectionStyles = {\n /**\n * Automatic section styling (default)\n */\n Automatic(children: ComponentInstance[], props: Omit<SectionProps, 'children' | 'style'> = {}) {\n return Section(children, { ...props, style: 'automatic' })\n },\n\n /**\n * Grouped section with container styling\n */\n Grouped(children: ComponentInstance[], props: Omit<SectionProps, 'children' | 'style'> = {}) {\n return Section(children, { ...props, style: 'grouped' })\n },\n\n /**\n * Inset section styling\n */\n Inset(children: ComponentInstance[], props: Omit<SectionProps, 'children' | 'style'> = {}) {\n return Section(children, { ...props, style: 'inset' })\n },\n\n /**\n * Sidebar-style section\n */\n Sidebar(children: ComponentInstance[], props: Omit<SectionProps, 'children' | 'style'> = {}) {\n return Section(children, { ...props, style: 'sidebar' })\n },\n\n /**\n * Plain section without styling\n */\n Plain(children: ComponentInstance[], props: Omit<SectionProps, 'children' | 'style'> = {}) {\n return Section(children, { ...props, style: 'plain' })\n },\n\n /**\n * Collapsible section\n */\n Collapsible(\n header: string | (() => string) | Signal<string> | ComponentInstance,\n children: ComponentInstance[],\n collapsed: boolean | Signal<boolean> = false,\n props: Omit<SectionProps, 'children' | 'header' | 'collapsible' | 'collapsed'> = {}\n ) {\n return Section(children, {\n ...props,\n header,\n collapsible: true,\n collapsed,\n })\n },\n}\n"],"names":["EnhancedSection","props","__publicField","content","isSignal","collapsed","rendered","style","baseStyles","spacing","headerContent","headerStyles","toggleIcon","h","text","children","child","footerContent","accessibilityLabel","accessibilityRole","item","Section","sectionProps","component","withModifiers","SectionWithHeader","header","SectionWithHeaderFooter","footer","SectionStyles"],"mappings":";;;;;;;;;;;;;;;;;;AAkDO,MAAMA,EAA2D;AAAA,EAMtE,YAAmBC,GAAqB;AAArB,SAAA,QAAAA,GALnBC,EAAA,MAAgB,QAAO,WAAA,GACvBA,EAAA,MAAgB,IAAA,GAChBA,EAAA,MAAO,WAAU,EAAA,GACjBA,EAAA,MAAO,WAA0B,EAAC,GAsClCA,EAAA,MAAQ,gBAAe,MAAM;AAC3B,MAAI,KAAK,MAAM,YACb,KAAK,MAAM,SAAS,CAAC,KAAK,aAA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bol.toStringTag,{value:"Module"});require("../reactive/cleanup.cjs");const u=require("../reactive/computed.cjs"),m=require("../reactive/context.cjs"),y=require("../reactive/effect.cjs");require("../reactive/unified-scheduler.cjs");const p=require("../reactive/signal.cjs");require("../reactive/scheduler.cjs");require("../reactive/theme.cjs");const C=require("../runtime/renderer.cjs");var g=Object.defineProperty,w=(n,e,r)=>e in n?g(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,d=(n,e,r)=>w(n,typeof e!="symbol"?e+"":e,r);class h{constructor(e){d(this,"type","component"),d(this,"id"),d(this,"props"),d(this,"mounted",!1),d(this,"cleanup",[]),this.props=e,this.id=`show-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}evaluateCondition(){const{when:e}=this.props;return typeof e=="boolean"?e:typeof e=="function"||p.isSignal(e)||u.isComputed(e)?e():!1}getContent(){const e=this.evaluateCondition(),{children:r,fallback:t}=this.props,c=e?r:t;return c||null}render(){const{when:e}=this.props;if(!(typeof e=="function"||p.isSignal(e)||u.isComputed(e))){const o=this.getContent();if(!o)return[];const i=o.render();return Array.isArray(i)?i:[i]}const t={type:"element",tag:"div",props:{style:{display:"contents"}},children:[],dispose:void 0},c=m.createRoot(()=>{const o=y.createEffect(()=>{const i=this.getContent();if(i){const a=i.render(),f=Array.isArray(a)?a:[a];t.children=f}else t.children=[];t.element&&t.element instanceof HTMLElement&&this.updateContainerDOM(t.element,t.children)});return()=>o.dispose()});t.dispose=c;const s=this.getContent();if(s){const o=s.render(),i=Array.isArray(o)?o:[o];t.children=i}return[t]}updateContainerDOM(e,r){e.innerHTML="";const t=new C.DOMRenderer;r.forEach(c=>{try{const s=t.render(c);s&&e.appendChild(s)}catch(s){console.error("Error rendering Show component child:",s)}})}dispose(){this.cleanup.forEach(e=>{try{e()}catch(r){console.error("Show component cleanup error:",r)}}),this.cleanup=[]}}function l(n){return new h(n)}function S(n,e){return l({when:n,children:e})}function b(n,e){return l({when:typeof n=="function"?()=>!n():!n,children:e})}exports.Show=l;exports.ShowComponent=h;exports.Unless=b;exports.When=S;
|
|
2
|
-
//# sourceMappingURL=Show.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Show.cjs","sources":["../../src/components/Show.ts"],"sourcesContent":["/**\n * Show component for conditional rendering\n *\n * Reactive implementation that works with TachUI's reactive architecture\n */\n\nimport { createEffect, createRoot, isComputed, isSignal } from '../reactive'\nimport type { ComponentInstance, DOMNode } from '../runtime/types'\nimport { DOMRenderer } from '../runtime/renderer'\n\nexport interface ShowProps {\n /**\n * Condition to determine if content should be shown\n */\n when: boolean | (() => boolean)\n\n /**\n * Content to render when condition is true\n */\n children: ComponentInstance\n\n /**\n * Optional fallback content when condition is false\n */\n fallback?: ComponentInstance\n}\n\n/**\n * Show component implementation that integrates with TachUI's reactive system\n */\nexport class ShowComponent implements ComponentInstance<ShowProps> {\n public readonly type = 'component' as const\n public readonly id: string\n public readonly props: ShowProps\n public mounted = false\n public cleanup: (() => void)[] = []\n\n constructor(props: ShowProps) {\n this.props = props\n this.id = `show-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`\n }\n\n /**\n * Evaluate the condition\n */\n private evaluateCondition(): boolean {\n const { when } = this.props\n\n if (typeof when === 'boolean') {\n return when\n } else if (typeof when === 'function') {\n return when()\n } else if (isSignal(when) || isComputed(when)) {\n return (when as () => boolean)()\n }\n\n return false\n }\n\n /**\n * Get the content to render based on condition\n */\n private getContent(): ComponentInstance | null {\n const condition = this.evaluateCondition()\n\n const { children, fallback } = this.props\n const content = condition ? children : fallback\n\n if (!content) {\n return null\n }\n\n return content\n }\n\n /**\n * Render the Show component with self-contained reactivity like text() function\n */\n render(): DOMNode[] {\n // Check if condition is reactive\n const { when } = this.props\n const isReactive = typeof when === 'function' || isSignal(when) || isComputed(when)\n \n if (!isReactive) {\n // Static condition - simple render\n const content = this.getContent()\n if (!content) return []\n \n const rendered = content.render()\n return Array.isArray(rendered) ? rendered : [rendered]\n }\n\n // Reactive condition - always create reactive container for consistency\n const containerNode: DOMNode = {\n type: 'element',\n tag: 'div',\n props: {\n style: { display: 'contents' } // Make container invisible\n },\n children: [],\n dispose: undefined,\n }\n\n // Create reactive effect that updates the container\n const cleanup = createRoot(() => {\n const effect = createEffect(() => {\n const content = this.getContent()\n \n if (content) {\n const rendered = content.render()\n const nodes = Array.isArray(rendered) ? rendered : [rendered]\n containerNode.children = nodes\n } else {\n containerNode.children = []\n }\n \n // Update DOM if already rendered\n if (containerNode.element && containerNode.element instanceof HTMLElement) {\n this.updateContainerDOM(containerNode.element, containerNode.children)\n }\n })\n\n return () => effect.dispose()\n })\n\n containerNode.dispose = cleanup\n\n // Initialize with current content\n const initialContent = this.getContent()\n if (initialContent) {\n const rendered = initialContent.render()\n const nodes = Array.isArray(rendered) ? rendered : [rendered]\n containerNode.children = nodes\n }\n\n return [containerNode]\n }\n\n /**\n * Update the container DOM element with new children using TachUI's renderer\n */\n private updateContainerDOM(container: HTMLElement, children: DOMNode[]): void {\n // Clear existing content\n container.innerHTML = ''\n \n // Use TachUI's renderer to properly handle modifiers and reactivity\n const renderer = new DOMRenderer()\n \n // Render new content using TachUI's renderer which handles modifiers\n children.forEach(child => {\n try {\n const element = renderer.render(child)\n if (element) {\n container.appendChild(element)\n }\n } catch (error) {\n console.error('Error rendering Show component child:', error)\n }\n })\n }\n\n /**\n * Cleanup resources\n */\n dispose(): void {\n this.cleanup.forEach(fn => {\n try {\n fn()\n } catch (error) {\n console.error('Show component cleanup error:', error)\n }\n })\n this.cleanup = []\n }\n}\n\n/**\n * Create Show component for conditional rendering\n */\nexport function Show(props: ShowProps): ShowComponent {\n return new ShowComponent(props)\n}\n\n/**\n * Convenience function for simple conditional rendering\n */\nexport function When(\n condition: boolean | (() => boolean),\n content: ComponentInstance\n): ShowComponent {\n return Show({ when: condition, children: content })\n}\n\n/**\n * Convenience function for negated conditional rendering\n */\nexport function Unless(\n condition: boolean | (() => boolean),\n content: ComponentInstance\n): ShowComponent {\n // Negate the condition for unless semantics\n const negatedCondition = typeof condition === 'function' ? () => !condition() : !condition\n\n return Show({ when: negatedCondition, children: content })\n}\n"],"names":["ShowComponent","props","__publicField","when","isSignal","isComputed","condition","children","fallback","content","rendered","containerNode","cleanup","createRoot","effect","createEffect","nodes","initialContent","container","renderer","DOMRenderer","child","element","error","fn","Show","When","Unless"],"mappings":"4kBA8BO,MAAMA,CAAsD,CAOjE,YAAYC,EAAkB,CAN9BC,EAAA,KAAgB,OAAO,WAAA,EACvBA,EAAA,KAAgB,IAAA,EAChBA,EAAA,KAAgB,OAAA,EAChBA,EAAA,KAAO,UAAU,EAAA,EACjBA,EAAA,KAAO,UAA0B,EAAC,EAGhC,KAAK,MAAQD,EACb,KAAK,GAAK,QAAQ,KAAK,IAAA,CAAK,IAAI,KAAK,OAAA,EAAS,SAAS,EAAE,EAAE,OAAO,EAAG,CAAC,CAAC,EACzE,CAKQ,mBAA6B,CACnC,KAAM,CAAE,KAAAE,GAAS,KAAK,MAEtB,OAAI,OAAOA,GAAS,UACXA,EACE,OAAOA,GAAS,YAEhBC,EAAAA,SAASD,CAAI,GAAKE,EAAAA,WAAWF,CAAI,EADnCA,EAAA,EAKF,EACT,CAKQ,YAAuC,CAC7C,MAAMG,EAAY,KAAK,kBAAA,EAEjB,CAAE,SAAAC,EAAU,SAAAC,CAAA,EAAa,KAAK,MAC9BC,EAAUH,EAAYC,EAAWC,EAEvC,OAAKC,GACI,IAIX,CAKA,QAAoB,CAElB,KAAM,CAAE,KAAAN,GAAS,KAAK,MAGtB,GAAI,EAFe,OAAOA,GAAS,YAAcC,EAAAA,SAASD,CAAI,GAAKE,EAAAA,WAAWF,CAAI,GAEjE,CAEf,MAAMM,EAAU,KAAK,WAAA,EACrB,GAAI,CAACA,EAAS,MAAO,CAAA,EAErB,MAAMC,EAAWD,EAAQ,OAAA,EACzB,OAAO,MAAM,QAAQC,CAAQ,EAAIA,EAAW,CAACA,CAAQ,CACvD,CAGA,MAAMC,EAAyB,CAC7B,KAAM,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C,CAKO,SAASyB,EACdpB,EACAG,EACe,CACf,OAAOgB,EAAK,CAAE,KAAMnB,EAAW,SAAUG,EAAS,CACpD,CAKO,SAASkB,EACdrB,EACAG,EACe,CAIf,OAAOgB,EAAK,CAAE,KAFW,OAAOnB,GAAc,WAAa,IAAM,CAACA,EAAA,EAAc,CAACA,EAE3C,SAAUG,EAAS,CAC3D"}
|
package/dist/components/Show.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import "../reactive/cleanup.js";
|
|
2
|
-
import { isComputed as a } from "../reactive/computed.js";
|
|
3
|
-
import { createRoot as u } from "../reactive/context.js";
|
|
4
|
-
import { createEffect as m } from "../reactive/effect.js";
|
|
5
|
-
import "../reactive/unified-scheduler.js";
|
|
6
|
-
import { isSignal as l } from "../reactive/signal.js";
|
|
7
|
-
import "../reactive/scheduler.js";
|
|
8
|
-
import "../reactive/theme.js";
|
|
9
|
-
import { DOMRenderer as y } from "../runtime/renderer.js";
|
|
10
|
-
var C = Object.defineProperty, w = (t, e, r) => e in t ? C(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, p = (t, e, r) => w(t, typeof e != "symbol" ? e + "" : e, r);
|
|
11
|
-
class g {
|
|
12
|
-
constructor(e) {
|
|
13
|
-
p(this, "type", "component"), p(this, "id"), p(this, "props"), p(this, "mounted", !1), p(this, "cleanup", []), this.props = e, this.id = `show-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Evaluate the condition
|
|
17
|
-
*/
|
|
18
|
-
evaluateCondition() {
|
|
19
|
-
const { when: e } = this.props;
|
|
20
|
-
return typeof e == "boolean" ? e : typeof e == "function" || l(e) || a(e) ? e() : !1;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Get the content to render based on condition
|
|
24
|
-
*/
|
|
25
|
-
getContent() {
|
|
26
|
-
const e = this.evaluateCondition(), { children: r, fallback: n } = this.props, c = e ? r : n;
|
|
27
|
-
return c || null;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Render the Show component with self-contained reactivity like text() function
|
|
31
|
-
*/
|
|
32
|
-
render() {
|
|
33
|
-
const { when: e } = this.props;
|
|
34
|
-
if (!(typeof e == "function" || l(e) || a(e))) {
|
|
35
|
-
const o = this.getContent();
|
|
36
|
-
if (!o) return [];
|
|
37
|
-
const i = o.render();
|
|
38
|
-
return Array.isArray(i) ? i : [i];
|
|
39
|
-
}
|
|
40
|
-
const n = {
|
|
41
|
-
type: "element",
|
|
42
|
-
tag: "div",
|
|
43
|
-
props: {
|
|
44
|
-
style: { display: "contents" }
|
|
45
|
-
// Make container invisible
|
|
46
|
-
},
|
|
47
|
-
children: [],
|
|
48
|
-
dispose: void 0
|
|
49
|
-
}, c = u(() => {
|
|
50
|
-
const o = m(() => {
|
|
51
|
-
const i = this.getContent();
|
|
52
|
-
if (i) {
|
|
53
|
-
const d = i.render(), f = Array.isArray(d) ? d : [d];
|
|
54
|
-
n.children = f;
|
|
55
|
-
} else
|
|
56
|
-
n.children = [];
|
|
57
|
-
n.element && n.element instanceof HTMLElement && this.updateContainerDOM(n.element, n.children);
|
|
58
|
-
});
|
|
59
|
-
return () => o.dispose();
|
|
60
|
-
});
|
|
61
|
-
n.dispose = c;
|
|
62
|
-
const s = this.getContent();
|
|
63
|
-
if (s) {
|
|
64
|
-
const o = s.render(), i = Array.isArray(o) ? o : [o];
|
|
65
|
-
n.children = i;
|
|
66
|
-
}
|
|
67
|
-
return [n];
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Update the container DOM element with new children using TachUI's renderer
|
|
71
|
-
*/
|
|
72
|
-
updateContainerDOM(e, r) {
|
|
73
|
-
e.innerHTML = "";
|
|
74
|
-
const n = new y();
|
|
75
|
-
r.forEach((c) => {
|
|
76
|
-
try {
|
|
77
|
-
const s = n.render(c);
|
|
78
|
-
s && e.appendChild(s);
|
|
79
|
-
} catch (s) {
|
|
80
|
-
console.error("Error rendering Show component child:", s);
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Cleanup resources
|
|
86
|
-
*/
|
|
87
|
-
dispose() {
|
|
88
|
-
this.cleanup.forEach((e) => {
|
|
89
|
-
try {
|
|
90
|
-
e();
|
|
91
|
-
} catch (r) {
|
|
92
|
-
console.error("Show component cleanup error:", r);
|
|
93
|
-
}
|
|
94
|
-
}), this.cleanup = [];
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function h(t) {
|
|
98
|
-
return new g(t);
|
|
99
|
-
}
|
|
100
|
-
function R(t, e) {
|
|
101
|
-
return h({ when: t, children: e });
|
|
102
|
-
}
|
|
103
|
-
function P(t, e) {
|
|
104
|
-
return h({ when: typeof t == "function" ? () => !t() : !t, children: e });
|
|
105
|
-
}
|
|
106
|
-
export {
|
|
107
|
-
h as Show,
|
|
108
|
-
g as ShowComponent,
|
|
109
|
-
P as Unless,
|
|
110
|
-
R as When
|
|
111
|
-
};
|
|
112
|
-
//# sourceMappingURL=Show.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Show.js","sources":["../../src/components/Show.ts"],"sourcesContent":["/**\n * Show component for conditional rendering\n *\n * Reactive implementation that works with TachUI's reactive architecture\n */\n\nimport { createEffect, createRoot, isComputed, isSignal } from '../reactive'\nimport type { ComponentInstance, DOMNode } from '../runtime/types'\nimport { DOMRenderer } from '../runtime/renderer'\n\nexport interface ShowProps {\n /**\n * Condition to determine if content should be shown\n */\n when: boolean | (() => boolean)\n\n /**\n * Content to render when condition is true\n */\n children: ComponentInstance\n\n /**\n * Optional fallback content when condition is false\n */\n fallback?: ComponentInstance\n}\n\n/**\n * Show component implementation that integrates with TachUI's reactive system\n */\nexport class ShowComponent implements ComponentInstance<ShowProps> {\n public readonly type = 'component' as const\n public readonly id: string\n public readonly props: ShowProps\n public mounted = false\n public cleanup: (() => void)[] = []\n\n constructor(props: ShowProps) {\n this.props = props\n this.id = `show-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`\n }\n\n /**\n * Evaluate the condition\n */\n private evaluateCondition(): boolean {\n const { when } = this.props\n\n if (typeof when === 'boolean') {\n return when\n } else if (typeof when === 'function') {\n return when()\n } else if (isSignal(when) || isComputed(when)) {\n return (when as () => boolean)()\n }\n\n return false\n }\n\n /**\n * Get the content to render based on condition\n */\n private getContent(): ComponentInstance | null {\n const condition = this.evaluateCondition()\n\n const { children, fallback } = this.props\n const content = condition ? children : fallback\n\n if (!content) {\n return null\n }\n\n return content\n }\n\n /**\n * Render the Show component with self-contained reactivity like text() function\n */\n render(): DOMNode[] {\n // Check if condition is reactive\n const { when } = this.props\n const isReactive = typeof when === 'function' || isSignal(when) || isComputed(when)\n \n if (!isReactive) {\n // Static condition - simple render\n const content = this.getContent()\n if (!content) return []\n \n const rendered = content.render()\n return Array.isArray(rendered) ? rendered : [rendered]\n }\n\n // Reactive condition - always create reactive container for consistency\n const containerNode: DOMNode = {\n type: 'element',\n tag: 'div',\n props: {\n style: { display: 'contents' } // Make container invisible\n },\n children: [],\n dispose: undefined,\n }\n\n // Create reactive effect that updates the container\n const cleanup = createRoot(() => {\n const effect = createEffect(() => {\n const content = this.getContent()\n \n if (content) {\n const rendered = content.render()\n const nodes = Array.isArray(rendered) ? rendered : [rendered]\n containerNode.children = nodes\n } else {\n containerNode.children = []\n }\n \n // Update DOM if already rendered\n if (containerNode.element && containerNode.element instanceof HTMLElement) {\n this.updateContainerDOM(containerNode.element, containerNode.children)\n }\n })\n\n return () => effect.dispose()\n })\n\n containerNode.dispose = cleanup\n\n // Initialize with current content\n const initialContent = this.getContent()\n if (initialContent) {\n const rendered = initialContent.render()\n const nodes = Array.isArray(rendered) ? rendered : [rendered]\n containerNode.children = nodes\n }\n\n return [containerNode]\n }\n\n /**\n * Update the container DOM element with new children using TachUI's renderer\n */\n private updateContainerDOM(container: HTMLElement, children: DOMNode[]): void {\n // Clear existing content\n container.innerHTML = ''\n \n // Use TachUI's renderer to properly handle modifiers and reactivity\n const renderer = new DOMRenderer()\n \n // Render new content using TachUI's renderer which handles modifiers\n children.forEach(child => {\n try {\n const element = renderer.render(child)\n if (element) {\n container.appendChild(element)\n }\n } catch (error) {\n console.error('Error rendering Show component child:', error)\n }\n })\n }\n\n /**\n * Cleanup resources\n */\n dispose(): void {\n this.cleanup.forEach(fn => {\n try {\n fn()\n } catch (error) {\n console.error('Show component cleanup error:', error)\n }\n })\n this.cleanup = []\n }\n}\n\n/**\n * Create Show component for conditional rendering\n */\nexport function Show(props: ShowProps): ShowComponent {\n return new ShowComponent(props)\n}\n\n/**\n * Convenience function for simple conditional rendering\n */\nexport function When(\n condition: boolean | (() => boolean),\n content: ComponentInstance\n): ShowComponent {\n return Show({ when: condition, children: content })\n}\n\n/**\n * Convenience function for negated conditional rendering\n */\nexport function Unless(\n condition: boolean | (() => boolean),\n content: ComponentInstance\n): ShowComponent {\n // Negate the condition for unless semantics\n const negatedCondition = typeof condition === 'function' ? () => !condition() : !condition\n\n return Show({ when: negatedCondition, children: content })\n}\n"],"names":["ShowComponent","props","__publicField","when","isSignal","isComputed","condition","children","fallback","content","rendered","containerNode","cleanup","createRoot","effect","createEffect","nodes","initialContent","container","renderer","DOMRenderer","child","element","error","fn","Show","When","Unless"],"mappings":";;;;;;;;;;AA8BO,MAAMA,EAAsD;AAAA,EAOjE,YAAYC,GAAkB;AAN9B,IAAAC,EAAA,MAAgB,QAAO,WAAA,GACvBA,EAAA,MAAgB,IAAA,GAChBA,EAAA,MAAgB,OAAA,GAChBA,EAAA,MAAO,WAAU,EAAA,GACjBA,EAAA,MAAO,WAA0B,EAAC,GAGhC,KAAK,QAAQD,GACb,KAAK,KAAK,QAAQ,KAAK,IAAA,CAAK,IAAI,KAAK,OAAA,EAAS,SAAS,EAAE,EAAE,OAAO,GAAG,CAAC,CAAC;AAAA,EACzE;AAAA;AAAA;AAAA;AAAA,EAKQ,oBAA6B;AACnC,UAAM,EAA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ol.toStringTag,{value:"Module"});require("../runtime/component.cjs");require("../runtime/context.cjs");require("../runtime/dev-tools.cjs");require("../runtime/dom-bridge.cjs");require("../runtime/error-boundary.cjs");require("../reactive/cleanup.cjs");require("../reactive/unified-scheduler.cjs");require("../reactive/signal.cjs");require("../reactive/scheduler.cjs");require("../reactive/theme.cjs");require("../runtime/error-reporting.cjs");require("../runtime/performance.cjs");const o=require("../runtime/renderer.cjs");require("../runtime/element-override.cjs");require("../runtime/semantic-role-manager.cjs");require("../runtime/development-warnings.cjs");const u=require("./wrapper.cjs");require("../css-classes/css-class-manager.cjs");const p=require("../css-classes/component-base.cjs");var a=Object.defineProperty,c=(r,e,t)=>e in r?a(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,i=(r,e,t)=>c(r,typeof e!="symbol"?e+"":e,t);class s extends p.ComponentWithCSSClasses{constructor(e){super(),i(this,"type","component"),i(this,"id"),i(this,"props"),this.props=e,this.id=`spacer-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}render(){const e=this.props.minLength??0,t=["tachui-spacer"],n=this.createClassString(this.props,t);return o.h("div",{className:n,style:{flexGrow:"1",flexShrink:"1",flexBasis:"0",minWidth:`${e}px`,minHeight:`${e}px`,alignSelf:"stretch"}})}}function l(r){let e;return typeof r=="number"?e={minLength:r}:e=r||{},u.withModifiers(new s(e))}exports.Spacer=l;exports.SpacerComponent=s;
|
|
2
|
-
//# sourceMappingURL=Spacer.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Spacer.cjs","sources":["../../src/components/Spacer.ts"],"sourcesContent":["/**\n * Spacer Component\n *\n * SwiftUI-inspired Spacer component that expands to fill available space\n * along the main axis of its container. Behaves like SwiftUI.Spacer.\n */\n\nimport type { ModifiableComponent, ModifierBuilder } from '../modifiers/types'\nimport { h } from '../runtime'\nimport type { ComponentInstance, ComponentProps, DOMNode } from '../runtime/types'\nimport { withModifiers } from './wrapper'\nimport {\n ComponentWithCSSClasses,\n type CSSClassesProps\n} from '../css-classes'\n\n/**\n * Spacer component properties with CSS classes support\n */\nexport interface SpacerProps extends ComponentProps, CSSClassesProps {\n minLength?: number // Minimum space along the main axis\n}\n\n/**\n * Spacer component implementation with CSS classes support\n */\nexport class SpacerComponent extends ComponentWithCSSClasses implements ComponentInstance<SpacerProps> {\n public readonly type = 'component' as const\n public readonly id: string\n public readonly props: SpacerProps\n\n constructor(props: SpacerProps) {\n super()\n this.props = props\n this.id = `spacer-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`\n }\n\n render(): DOMNode {\n const minLength = this.props.minLength ?? 0\n \n // Process CSS classes for this component\n const baseClasses = ['tachui-spacer']\n const classString = this.createClassString(this.props, baseClasses)\n\n // Create a div element that acts as a flexible spacer\n const element = h('div', {\n className: classString,\n style: {\n // Core flex properties for expansion\n flexGrow: '1',\n flexShrink: '1',\n flexBasis: '0',\n\n // Minimum size constraints\n minWidth: `${minLength}px`,\n minHeight: `${minLength}px`,\n\n // Ensure proper behavior in both directions\n alignSelf: 'stretch',\n\n // Visual debugging (remove in production)\n // backgroundColor: 'rgba(255, 0, 0, 0.1)', // Uncomment to visualize spacers\n },\n })\n\n return element\n }\n}\n\n/**\n * Create a Spacer component with optional minimum length\n */\nexport function Spacer(minLength?: number): ModifiableComponent<SpacerProps> & {\n modifier: ModifierBuilder<ModifiableComponent<SpacerProps>>\n}\nexport function Spacer(props?: SpacerProps): ModifiableComponent<SpacerProps> & {\n modifier: ModifierBuilder<ModifiableComponent<SpacerProps>>\n}\nexport function Spacer(\n minLengthOrProps?: number | SpacerProps\n): ModifiableComponent<SpacerProps> & {\n modifier: ModifierBuilder<ModifiableComponent<SpacerProps>>\n} {\n let props: SpacerProps\n\n if (typeof minLengthOrProps === 'number') {\n props = { minLength: minLengthOrProps }\n } else {\n props = minLengthOrProps || {}\n }\n\n return withModifiers(new SpacerComponent(props))\n}\n"],"names":["SpacerComponent","ComponentWithCSSClasses","props","__publicField","minLength","baseClasses","classString","h","Spacer","minLengthOrProps","withModifiers"],"mappings":"u+BA0BO,MAAMA,UAAwBC,EAAAA,uBAAkE,CAKrG,YAAYC,EAAoB,CAC9B,MAAA,EALFC,EAAA,KAAgB,OAAO,WAAA,EACvBA,EAAA,KAAgB,IAAA,EAChBA,EAAA,KAAgB,OAAA,EAId,KAAK,MAAQD,EACb,KAAK,GAAK,UAAU,KAAK,IAAA,CAAK,IAAI,KAAK,OAAA,EAAS,SAAS,EAAE,EAAE,OAAO,EAAG,CAAC,CAAC,EAC3E,CAEA,QAAkB,CAChB,MAAME,EAAY,KAAK,MAAM,WAAa,EAGpCC,EAAc,CAAC,eAAe,EAC9BC,EAAc,KAAK,kBAAkB,KAAK,MAAOD,CAAW,EAuBlE,OApBgBE,EAAAA,EAAE,MAAO,CACvB,UAAWD,EACX,MAAO,CAEL,SAAU,IACV,WAAY,IACZ,UAAW,IAGX,SAAU,GAAGF,CAAS,KACtB,UAAW,GAAGA,CAAS,KAGvB,UAAW,SAAA,CAIb,CACD,CAGH,CACF,CAWO,SAASI,EACdC,EAGA,CACA,IAAIP,EAEJ,OAAI,OAAOO,GAAqB,SAC9BP,EAAQ,CAAE,UAAWO,CAAA,EAErBP,EAAQO,GAAoB,CAAA,EAGvBC,gBAAc,IAAIV,EAAgBE,CAAK,CAAC,CACjD"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import "../runtime/component.js";
|
|
2
|
-
import "../runtime/context.js";
|
|
3
|
-
import "../runtime/dev-tools.js";
|
|
4
|
-
import "../runtime/dom-bridge.js";
|
|
5
|
-
import "../runtime/error-boundary.js";
|
|
6
|
-
import "../reactive/cleanup.js";
|
|
7
|
-
import "../reactive/unified-scheduler.js";
|
|
8
|
-
import "../reactive/signal.js";
|
|
9
|
-
import "../reactive/scheduler.js";
|
|
10
|
-
import "../reactive/theme.js";
|
|
11
|
-
import "../runtime/error-reporting.js";
|
|
12
|
-
import "../runtime/performance.js";
|
|
13
|
-
import { h as p } from "../runtime/renderer.js";
|
|
14
|
-
import "../runtime/element-override.js";
|
|
15
|
-
import "../runtime/semantic-role-manager.js";
|
|
16
|
-
import "../runtime/development-warnings.js";
|
|
17
|
-
import { withModifiers as s } from "./wrapper.js";
|
|
18
|
-
import "../css-classes/css-class-manager.js";
|
|
19
|
-
import { ComponentWithCSSClasses as m } from "../css-classes/component-base.js";
|
|
20
|
-
var n = Object.defineProperty, a = (r, t, e) => t in r ? n(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, i = (r, t, e) => a(r, typeof t != "symbol" ? t + "" : t, e);
|
|
21
|
-
class l extends m {
|
|
22
|
-
constructor(t) {
|
|
23
|
-
super(), i(this, "type", "component"), i(this, "id"), i(this, "props"), this.props = t, this.id = `spacer-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
const t = this.props.minLength ?? 0, e = ["tachui-spacer"], o = this.createClassString(this.props, e);
|
|
27
|
-
return p("div", {
|
|
28
|
-
className: o,
|
|
29
|
-
style: {
|
|
30
|
-
// Core flex properties for expansion
|
|
31
|
-
flexGrow: "1",
|
|
32
|
-
flexShrink: "1",
|
|
33
|
-
flexBasis: "0",
|
|
34
|
-
// Minimum size constraints
|
|
35
|
-
minWidth: `${t}px`,
|
|
36
|
-
minHeight: `${t}px`,
|
|
37
|
-
// Ensure proper behavior in both directions
|
|
38
|
-
alignSelf: "stretch"
|
|
39
|
-
// Visual debugging (remove in production)
|
|
40
|
-
// backgroundColor: 'rgba(255, 0, 0, 0.1)', // Uncomment to visualize spacers
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function F(r) {
|
|
46
|
-
let t;
|
|
47
|
-
return typeof r == "number" ? t = { minLength: r } : t = r || {}, s(new l(t));
|
|
48
|
-
}
|
|
49
|
-
export {
|
|
50
|
-
F as Spacer,
|
|
51
|
-
l as SpacerComponent
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=Spacer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Spacer.js","sources":["../../src/components/Spacer.ts"],"sourcesContent":["/**\n * Spacer Component\n *\n * SwiftUI-inspired Spacer component that expands to fill available space\n * along the main axis of its container. Behaves like SwiftUI.Spacer.\n */\n\nimport type { ModifiableComponent, ModifierBuilder } from '../modifiers/types'\nimport { h } from '../runtime'\nimport type { ComponentInstance, ComponentProps, DOMNode } from '../runtime/types'\nimport { withModifiers } from './wrapper'\nimport {\n ComponentWithCSSClasses,\n type CSSClassesProps\n} from '../css-classes'\n\n/**\n * Spacer component properties with CSS classes support\n */\nexport interface SpacerProps extends ComponentProps, CSSClassesProps {\n minLength?: number // Minimum space along the main axis\n}\n\n/**\n * Spacer component implementation with CSS classes support\n */\nexport class SpacerComponent extends ComponentWithCSSClasses implements ComponentInstance<SpacerProps> {\n public readonly type = 'component' as const\n public readonly id: string\n public readonly props: SpacerProps\n\n constructor(props: SpacerProps) {\n super()\n this.props = props\n this.id = `spacer-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`\n }\n\n render(): DOMNode {\n const minLength = this.props.minLength ?? 0\n \n // Process CSS classes for this component\n const baseClasses = ['tachui-spacer']\n const classString = this.createClassString(this.props, baseClasses)\n\n // Create a div element that acts as a flexible spacer\n const element = h('div', {\n className: classString,\n style: {\n // Core flex properties for expansion\n flexGrow: '1',\n flexShrink: '1',\n flexBasis: '0',\n\n // Minimum size constraints\n minWidth: `${minLength}px`,\n minHeight: `${minLength}px`,\n\n // Ensure proper behavior in both directions\n alignSelf: 'stretch',\n\n // Visual debugging (remove in production)\n // backgroundColor: 'rgba(255, 0, 0, 0.1)', // Uncomment to visualize spacers\n },\n })\n\n return element\n }\n}\n\n/**\n * Create a Spacer component with optional minimum length\n */\nexport function Spacer(minLength?: number): ModifiableComponent<SpacerProps> & {\n modifier: ModifierBuilder<ModifiableComponent<SpacerProps>>\n}\nexport function Spacer(props?: SpacerProps): ModifiableComponent<SpacerProps> & {\n modifier: ModifierBuilder<ModifiableComponent<SpacerProps>>\n}\nexport function Spacer(\n minLengthOrProps?: number | SpacerProps\n): ModifiableComponent<SpacerProps> & {\n modifier: ModifierBuilder<ModifiableComponent<SpacerProps>>\n} {\n let props: SpacerProps\n\n if (typeof minLengthOrProps === 'number') {\n props = { minLength: minLengthOrProps }\n } else {\n props = minLengthOrProps || {}\n }\n\n return withModifiers(new SpacerComponent(props))\n}\n"],"names":["SpacerComponent","ComponentWithCSSClasses","props","__publicField","minLength","baseClasses","classString","h","Spacer","minLengthOrProps","withModifiers"],"mappings":";;;;;;;;;;;;;;;;;;;;AA0BO,MAAMA,UAAwBC,EAAkE;AAAA,EAKrG,YAAYC,GAAoB;AAC9B,UAAA,GALFC,EAAA,MAAgB,QAAO,WAAA,GACvBA,EAAA,MAAgB,IAAA,GAChBA,EAAA,MAAgB,OAAA,GAId,KAAK,QAAQD,GACb,KAAK,KAAK,UAAU,KAAK,IAAA,CAAK,IAAI,KAAK,OAAA,EAAS,SAAS,EAAE,EAAE,OAAO,GAAG,CAAC,CAAC;AAAA,EAC3E;AAAA,EAEA,SAAkB;AAChB,UAAME,IAAY,KAAK,MAAM,aAAa,GAGpCC,IAAc,CAAC,eAAe,GAC9BC,IAAc,KAAK,kBAAkB,KAAK,OAAOD,CAAW;AAuBlE,WApBgBE,EAAE,OAAO;AAAA,MACvB,WAAWD;AAAA,MACX,OAAO;AAAA;AAAA,QAEL,UAAU;AAAA,QACV,YAAY;AAAA,QACZ,WAAW;AAAA;AAAA,QAGX,UAAU,GAAGF,CAAS;AAAA,QACtB,WAAW,GAAGA,CAAS;AAAA;AAAA,QAGvB,WAAW;AAAA;AAAA;AAAA,MAAA;AAAA,IAIb,CACD;AAAA,EAGH;AACF;AAWO,SAASI,EACdC,GAGA;AACA,MAAIP;AAEJ,SAAI,OAAOO,KAAqB,WAC9BP,IAAQ,EAAE,WAAWO,EAAA,IAErBP,IAAQO,KAAoB,CAAA,GAGvBC,EAAc,IAAIV,EAAgBE,CAAK,CAAC;AACjD;"}
|
package/dist/components/Text.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../runtime/component.cjs");require("../runtime/context.cjs");require("../runtime/dev-tools.cjs");require("../runtime/dom-bridge.cjs");require("../runtime/error-boundary.cjs");require("../reactive/cleanup.cjs");require("../reactive/unified-scheduler.cjs");require("../reactive/signal.cjs");require("../reactive/scheduler.cjs");require("../reactive/theme.cjs");require("../runtime/error-reporting.cjs");require("../runtime/performance.cjs");const u=require("../runtime/renderer.cjs"),h=require("../runtime/element-override.cjs");require("../runtime/semantic-role-manager.cjs");require("../runtime/development-warnings.cjs");const p=require("./wrapper.cjs"),s=require("../concatenation/concatenated-component.cjs");require("../css-classes/css-class-manager.cjs");const m=require("../css-classes/component-base.cjs");var f=Object.defineProperty,g=(t,e,i)=>e in t?f(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,a=(t,e,i)=>g(t,typeof e!="symbol"?e+"":e,i);const r={largeTitle:{size:34,weight:"400",lineHeight:1.2},title:{size:28,weight:"400",lineHeight:1.3},title2:{size:22,weight:"400",lineHeight:1.3},title3:{size:20,weight:"400",lineHeight:1.4},headline:{size:17,weight:"600",lineHeight:1.4},body:{size:17,weight:"400",lineHeight:1.5},callout:{size:16,weight:"400",lineHeight:1.4},subheadline:{size:15,weight:"400",lineHeight:1.4},footnote:{size:13,weight:"400",lineHeight:1.3},caption:{size:12,weight:"400",lineHeight:1.2},caption2:{size:11,weight:"400",lineHeight:1.1}};class d extends m.ComponentWithCSSClasses{constructor(e){super(),this.props=e,a(this,"type","component"),a(this,"id"),a(this,"mounted",!1),a(this,"cleanup",[]),a(this,"effectiveTag"),a(this,"validationResult"),this.id=`text-${Date.now()}-${Math.random().toString(36).substr(2,9)}`;const i=h.processElementOverride("Text","span",this.props.element);this.effectiveTag=i.tag,this.validationResult=i.validation}render(){const e=["tachui-text"],i=this.createClassString(this.props,e),n=u.h(this.effectiveTag,{className:i,...this.props.debugLabel&&{debugLabel:this.props.debugLabel}},u.text(this.props.content||""));return"componentMetadata"in n?n.componentMetadata={id:this.id,type:"Text",originalType:"Text",overriddenTo:this.effectiveTag!=="span"?this.effectiveTag:void 0,validationResult:this.validationResult}:n.componentMetadata={id:this.id,type:"Text",originalType:"Text",overriddenTo:this.effectiveTag!=="span"?this.effectiveTag:void 0,validationResult:this.validationResult},[n]}concat(e){const i=this.toSegment(),n=e.toSegment(),c={totalSegments:e instanceof s.ConcatenatedComponent?e.segments.length+1:2,accessibilityRole:e instanceof s.ConcatenatedComponent?this.mergeAccessibilityRoles("text",e.metadata.accessibilityRole):this.determineAccessibilityRole(e),semanticStructure:e instanceof s.ConcatenatedComponent?this.mergeSemanticStructures("inline",e.metadata.semanticStructure):this.determineSemanticStructure(e)};return e instanceof s.ConcatenatedComponent?new s.ConcatenatedComponent([i,...e.segments],c):new s.ConcatenatedComponent([i,n],c)}toSegment(){return{id:this.id,component:this,modifiers:this.modifiers||[],render:()=>this.render()[0]}}isConcatenatable(){return!0}getTextContent(){const e=this.props.content;return typeof e=="string"?e:typeof e=="function"?e():e&&typeof e=="object"&&"peek"in e&&e.peek()||""}determineAccessibilityRole(e){const i=e.constructor.name;return i==="EnhancedText"?"text":"group"}determineSemanticStructure(e){const i=e.constructor.name;return i==="EnhancedText"||i==="EnhancedImage"||i==="EnhancedButton"||i==="EnhancedLink"?"inline":"mixed"}mergeAccessibilityRoles(e,i){return e==="text"&&i==="text"?"text":e==="composite"||i==="composite"?"composite":"group"}mergeSemanticStructures(e,i){return e==="inline"&&i==="inline"?"inline":e==="block"&&i==="block"?"block":"mixed"}}function o(t,e={}){const i={...e,content:t},n=new d(i);return p.withModifiers(n)}const T={LargeTitle:(t,e={})=>o(t,{...e,font:r.largeTitle}),Title:(t,e={})=>o(t,{...e,font:r.title}),Title2:(t,e={})=>o(t,{...e,font:r.title2}),Title3:(t,e={})=>o(t,{...e,font:r.title3}),Headline:(t,e={})=>o(t,{...e,font:r.headline}),Body:(t,e={})=>o(t,{...e,font:r.body}),Callout:(t,e={})=>o(t,{...e,font:r.callout}),Subheadline:(t,e={})=>o(t,{...e,font:r.subheadline}),Footnote:(t,e={})=>o(t,{...e,font:r.footnote}),Caption:(t,e={})=>o(t,{...e,font:r.caption}),Caption2:(t,e={})=>o(t,{...e,font:r.caption2})},b={formatted(t,e,i={}){const n={...i.font};let c=i.textDecoration||"none";e.bold&&(n.weight="bold"),e.italic&&(n.style="italic"),e.monospace&&(n.family="monospace"),e.smallCaps&&(n.variant="small-caps");const l=[];return e.underline&&l.push("underline"),e.strikethrough&&l.push("line-through"),l.length>0&&(c=l.join(" ")),o(t,{...i,font:n,textDecoration:c})},bold(t,e={}){return this.formatted(t,{bold:!0},e)},italic(t,e={}){return this.formatted(t,{italic:!0},e)},underline(t,e={}){return this.formatted(t,{underline:!0},e)},monospace(t,e={}){return this.formatted(t,{monospace:!0},e)}};exports.EnhancedText=d;exports.Text=o;exports.TextFormat=b;exports.TextStyles=T;exports.Typography=r;
|
|
2
|
-
//# sourceMappingURL=Text.cjs.map
|