@tachui/core 0.7.0-alpha1 → 0.8.0-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/bundles/common.d.ts +1 -1
- package/dist/bundles/common.d.ts.map +1 -1
- package/dist/bundles/minimal.d.ts +17 -5
- package/dist/bundles/minimal.d.ts.map +1 -1
- package/dist/bundles/production-minimal.d.ts +2 -16
- package/dist/bundles/production-minimal.d.ts.map +1 -1
- package/dist/common.js +402 -955
- package/dist/compiler/advanced-parser.d.ts.map +1 -1
- package/dist/compiler/index.js +1392 -10
- package/dist/component-XAzF1xqs.js +487 -0
- package/dist/component-base-x2XmHFjy.js +255 -0
- package/dist/components/index.d.ts +4 -38
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +7 -102
- package/dist/components/wrapper.d.ts +5 -152
- package/dist/components/wrapper.d.ts.map +1 -1
- package/dist/concatenated-component-ByPl3_FF.js +2933 -0
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/layout.d.ts +47 -4
- package/dist/constants/layout.d.ts.map +1 -1
- package/dist/constants/layout.js +52 -14
- package/dist/css-classes/index.js +176 -0
- package/dist/dom-bridge-CAa1N2zX.js +406 -0
- package/dist/effect-B9Knft0b.js +66 -0
- package/dist/essential.js +394 -953
- package/dist/index-DCPJFUm9.js +1407 -0
- package/dist/index-DIvMCJQO.js +268 -0
- package/dist/index-vdsiw6gQ.js +777 -0
- package/dist/index.d.ts +9 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +394 -953
- package/dist/minimal-prod.js +107 -190
- package/dist/minimal.js +115 -955
- package/dist/modifiers/background.d.ts +41 -11
- package/dist/modifiers/background.d.ts.map +1 -1
- package/dist/modifiers/base.d.ts +6 -33
- package/dist/modifiers/base.d.ts.map +1 -1
- package/dist/modifiers/base.js +275 -533
- package/dist/modifiers/builder.d.ts +103 -195
- package/dist/modifiers/builder.d.ts.map +1 -1
- package/dist/modifiers/builder.js +7 -928
- package/dist/modifiers/core.d.ts +9 -401
- package/dist/modifiers/core.d.ts.map +1 -1
- package/dist/modifiers/{utils.d.ts → factories.d.ts} +18 -5
- package/dist/modifiers/factories.d.ts.map +1 -0
- package/dist/modifiers/index.d.ts +8 -52
- package/dist/modifiers/index.d.ts.map +1 -1
- package/dist/modifiers/index.js +38 -0
- package/dist/modifiers/presets.d.ts +368 -0
- package/dist/modifiers/presets.d.ts.map +1 -0
- package/dist/modifiers/registry.js +8 -161
- package/dist/modifiers/types.d.ts +39 -211
- package/dist/modifiers/types.d.ts.map +1 -1
- package/dist/modifiers/types.js +0 -1
- package/dist/performance-optimizer-stub-CtfXUwl4.js +38 -0
- package/dist/plugins/index.d.ts +5 -6
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +393 -32
- package/dist/plugins/simplified-index.d.ts +5 -6
- package/dist/plugins/simplified-index.d.ts.map +1 -1
- package/dist/production-minimal-BY_gMc-l.js +2532 -0
- package/dist/reactive/index.js +489 -91
- package/dist/reactive/types.js +0 -1
- package/dist/runtime/dom-bridge.js +12 -239
- package/dist/runtime/element-override.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +0 -7
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/renderer.d.ts.map +1 -1
- package/dist/runtime/renderer.js +7 -388
- package/dist/runtime/semantic-role-manager.d.ts.map +1 -1
- package/dist/runtime/types.js +1 -0
- package/dist/scheduler-BKeqwrYE.js +814 -0
- package/dist/validation/build-time-stub.d.ts +33 -0
- package/dist/validation/build-time-stub.d.ts.map +1 -0
- package/dist/validation/debug-tools-stub.d.ts +67 -0
- package/dist/validation/debug-tools-stub.d.ts.map +1 -0
- package/dist/validation/index.d.ts +23 -78
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +788 -233
- package/dist/validation/lifecycle-validation.d.ts.map +1 -1
- package/dist/validation/performance-optimizer-stub.d.ts +50 -0
- package/dist/validation/performance-optimizer-stub.d.ts.map +1 -0
- package/dist/validation/plugin-registration.d.ts +5 -1
- package/dist/validation/plugin-registration.d.ts.map +1 -1
- package/dist/validation/production-bypass-core.d.ts +69 -0
- package/dist/validation/production-bypass-core.d.ts.map +1 -0
- package/package.json +43 -8
- 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.d.ts +0 -116
- package/dist/components/BasicInput.d.ts.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.d.ts +0 -252
- package/dist/components/Button.d.ts.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.d.ts +0 -141
- package/dist/components/Divider.d.ts.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.d.ts +0 -365
- package/dist/components/EnhancedLink.d.ts.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.d.ts +0 -141
- package/dist/components/Form.d.ts.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.d.ts +0 -698
- package/dist/components/Grid.d.ts.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.d.ts +0 -214
- package/dist/components/GridResponsive.d.ts.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.d.ts +0 -162
- package/dist/components/Image.d.ts.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.d.ts +0 -287
- package/dist/components/List.d.ts.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.d.ts +0 -159
- package/dist/components/Menu.d.ts.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.d.ts +0 -153
- package/dist/components/Picker.d.ts.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.d.ts +0 -222
- package/dist/components/ScrollView.d.ts.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.d.ts +0 -153
- package/dist/components/Section.d.ts.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.d.ts +0 -64
- package/dist/components/Show.d.ts.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.d.ts +0 -35
- package/dist/components/Spacer.d.ts.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.d.ts +0 -242
- package/dist/components/Text.d.ts.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.d.ts +0 -207
- package/dist/components/Toggle.d.ts.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.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/index.d.ts +0 -61
- package/dist/debug/index.d.ts.map +0 -1
- package/dist/debug.cjs +0 -52
- package/dist/debug.cjs.map +0 -1
- package/dist/debug.js +0 -179
- package/dist/debug.js.map +0 -1
- package/dist/developer-experience/enhanced-errors.d.ts +0 -128
- package/dist/developer-experience/enhanced-errors.d.ts.map +0 -1
- package/dist/developer-experience/enhanced-types.d.ts +0 -281
- package/dist/developer-experience/enhanced-types.d.ts.map +0 -1
- package/dist/developer-experience/index.d.ts +0 -44
- package/dist/developer-experience/index.d.ts.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.d.ts +0 -203
- package/dist/modifiers/attributes.d.ts.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.d.ts +0 -59
- package/dist/modifiers/backdrop.d.ts.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.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.d.ts +0 -217
- package/dist/modifiers/border.d.ts.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.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.d.ts +0 -159
- package/dist/modifiers/effects.d.ts.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.d.ts +0 -240
- package/dist/modifiers/elements.d.ts.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.d.ts +0 -275
- package/dist/modifiers/filters.d.ts.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.d.ts +0 -82
- package/dist/modifiers/flexbox.d.ts.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.d.ts +0 -71
- package/dist/modifiers/font.d.ts.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.d.ts +0 -92
- package/dist/modifiers/grid.d.ts.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.d.ts +0 -128
- package/dist/modifiers/margin.d.ts.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.d.ts +0 -204
- package/dist/modifiers/padding.d.ts.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.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.d.ts +0 -118
- package/dist/modifiers/responsive/advanced-utilities.d.ts.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.d.ts +0 -81
- package/dist/modifiers/responsive/breakpoints.d.ts.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.d.ts +0 -100
- package/dist/modifiers/responsive/css-generator.d.ts.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.d.ts +0 -107
- package/dist/modifiers/responsive/dev-tools.d.ts.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/index.d.ts +0 -28
- package/dist/modifiers/responsive/index.d.ts.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.d.ts +0 -230
- package/dist/modifiers/responsive/layout-patterns.d.ts.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.d.ts +0 -130
- package/dist/modifiers/responsive/performance.d.ts.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.d.ts +0 -133
- package/dist/modifiers/responsive/responsive-builder.d.ts.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.d.ts +0 -123
- package/dist/modifiers/responsive/responsive-modifier.d.ts.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.d.ts +0 -183
- package/dist/modifiers/responsive/types.d.ts.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.d.ts +0 -149
- package/dist/modifiers/responsive/utilities.d.ts.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.d.ts +0 -143
- package/dist/modifiers/scroll.d.ts.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.d.ts +0 -114
- package/dist/modifiers/shadows.d.ts.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.d.ts +0 -113
- package/dist/modifiers/size.d.ts.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.d.ts +0 -147
- package/dist/modifiers/text.d.ts.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.d.ts +0 -329
- package/dist/modifiers/transformations.d.ts.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.d.ts +0 -98
- package/dist/modifiers/transitions.d.ts.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.map +0 -1
- package/dist/modifiers/typography.cjs +0 -2
- package/dist/modifiers/typography.cjs.map +0 -1
- package/dist/modifiers/typography.d.ts +0 -192
- package/dist/modifiers/typography.d.ts.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.d.ts +0 -69
- package/dist/modifiers/utility.d.ts.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.d.ts.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.d.ts +0 -83
- package/dist/plugins/simplified-error-handler.d.ts.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.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 +0 -289
- 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.d.ts +0 -240
- package/dist/runtime/dev-tools.d.ts.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.d.ts +0 -42
- package/dist/runtime/development-warnings.d.ts.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.d.ts +0 -302
- package/dist/runtime/error-boundary.d.ts.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.d.ts +0 -267
- package/dist/runtime/error-recovery.d.ts.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.d.ts +0 -287
- package/dist/runtime/error-reporting.d.ts.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.d.ts +0 -204
- package/dist/runtime/error-utils.d.ts.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.d.ts +0 -217
- package/dist/runtime/performance.d.ts.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.d.ts +0 -110
- package/dist/sui-compat.d.ts.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.d.ts +0 -319
- package/dist/validation/advanced-debugging.d.ts.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.d.ts +0 -32
- package/dist/validation/build-time/detection.d.ts.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.d.ts +0 -84
- package/dist/validation/build-time/index.d.ts.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.d.ts +0 -75
- package/dist/validation/build-time/plugins.d.ts.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.d.ts +0 -73
- package/dist/validation/build-time/rules.d.ts.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.d.ts +0 -23
- package/dist/validation/build-time/transformer.d.ts.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/build-time/types.d.ts +0 -212
- package/dist/validation/build-time/types.d.ts.map +0 -1
- package/dist/validation/comprehensive.cjs +0 -9
- package/dist/validation/comprehensive.cjs.map +0 -1
- package/dist/validation/comprehensive.d.ts +0 -160
- package/dist/validation/comprehensive.d.ts.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.d.ts +0 -251
- package/dist/validation/debug-tools.d.ts.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.d.ts +0 -243
- package/dist/validation/developer-experience.d.ts.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.d.ts +0 -269
- package/dist/validation/documentation-integration.d.ts.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.d.ts +0 -279
- package/dist/validation/enhanced-runtime.d.ts.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.d.ts +0 -186
- package/dist/validation/error-reporting.d.ts.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.d.ts +0 -328
- package/dist/validation/ide-integration.d.ts.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.d.ts +0 -218
- package/dist/validation/performance-optimizer.d.ts.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.d.ts +0 -175
- package/dist/validation/production-bypass.d.ts.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.d.ts +0 -111
- package/dist/validation/simple.d.ts.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.d.ts +0 -227
- package/dist/viewport/adapters/web-adapter.d.ts.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.d.ts +0 -131
- package/dist/viewport/components.d.ts.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.d.ts +0 -75
- package/dist/viewport/environment.d.ts.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.d.ts +0 -138
- package/dist/viewport/index.d.ts.map +0 -1
- package/dist/viewport/index.js +0 -166
- 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.d.ts +0 -59
- package/dist/viewport/platform-detection.d.ts.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.d.ts +0 -301
- package/dist/viewport/types.d.ts.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.d.ts +0 -118
- package/dist/viewport/viewport-manager.d.ts.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,56 +0,0 @@
|
|
|
1
|
-
import { BaseModifier as r } from "./base.js";
|
|
2
|
-
var a = Object.defineProperty, u = (t, e, i) => e in t ? a(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, o = (t, e, i) => u(t, typeof e != "symbol" ? e + "" : e, i);
|
|
3
|
-
class n extends r {
|
|
4
|
-
// Priority 60 for flexbox layout
|
|
5
|
-
constructor(e) {
|
|
6
|
-
const i = {};
|
|
7
|
-
for (const [f, l] of Object.entries(e))
|
|
8
|
-
typeof l == "function" && "peek" in l ? i[f] = l.peek() : i[f] = l;
|
|
9
|
-
super(i), o(this, "type", "flexbox"), o(this, "priority", 60);
|
|
10
|
-
}
|
|
11
|
-
apply(e, i) {
|
|
12
|
-
if (!i.element) return;
|
|
13
|
-
const f = this.computeFlexboxStyles(this.properties);
|
|
14
|
-
this.applyStyles(i.element, f);
|
|
15
|
-
}
|
|
16
|
-
computeFlexboxStyles(e) {
|
|
17
|
-
const i = {};
|
|
18
|
-
return e.flexGrow !== void 0 && (i.flexGrow = e.flexGrow.toString()), e.flexShrink !== void 0 && (i.flexShrink = e.flexShrink.toString()), e.flexBasis !== void 0 && (i.flexBasis = this.toCSSValue(e.flexBasis)), e.flex !== void 0 && (i.flex = e.flex), e.justifyContent !== void 0 && (i.justifyContent = e.justifyContent), e.alignItems !== void 0 && (i.alignItems = e.alignItems), e.alignSelf !== void 0 && (i.alignSelf = e.alignSelf), e.flexDirection !== void 0 && (i.flexDirection = e.flexDirection), e.flexWrap !== void 0 && (i.flexWrap = e.flexWrap), e.alignContent !== void 0 && (i.alignContent = e.alignContent), e.gap !== void 0 && (i.gap = this.toCSSValue(e.gap)), e.rowGap !== void 0 && (i.rowGap = this.toCSSValue(e.rowGap)), e.columnGap !== void 0 && (i.columnGap = this.toCSSValue(e.columnGap)), i;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function c(t) {
|
|
22
|
-
return new n(t);
|
|
23
|
-
}
|
|
24
|
-
function d(t) {
|
|
25
|
-
return new n({ flexGrow: t });
|
|
26
|
-
}
|
|
27
|
-
function s(t) {
|
|
28
|
-
return new n({ flexShrink: t });
|
|
29
|
-
}
|
|
30
|
-
function S(t) {
|
|
31
|
-
return new n({ justifyContent: t });
|
|
32
|
-
}
|
|
33
|
-
function g(t) {
|
|
34
|
-
return new n({ alignItems: t });
|
|
35
|
-
}
|
|
36
|
-
function v(t) {
|
|
37
|
-
return new n({ gap: t });
|
|
38
|
-
}
|
|
39
|
-
function m(t) {
|
|
40
|
-
return new n({ flexDirection: t });
|
|
41
|
-
}
|
|
42
|
-
function w(t) {
|
|
43
|
-
return new n({ flexWrap: t });
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
n as FlexboxModifier,
|
|
47
|
-
g as alignItems,
|
|
48
|
-
m as flexDirection,
|
|
49
|
-
d as flexGrow,
|
|
50
|
-
s as flexShrink,
|
|
51
|
-
w as flexWrap,
|
|
52
|
-
c as flexbox,
|
|
53
|
-
v as gap,
|
|
54
|
-
S as justifyContent
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=flexbox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flexbox.js","sources":["../../src/modifiers/flexbox.ts"],"sourcesContent":["/**\n * Flexbox Modifier - comprehensive flexbox layout properties\n *\n * Provides a unified interface for flexbox properties\n * including flex-grow, justify-content, align-items, etc.\n */\n\nimport type { DOMNode } from '../runtime/types'\nimport { BaseModifier } from './base'\nimport type { ModifierContext, ReactiveModifierProps } from './types'\n\nexport interface FlexboxOptions {\n flexGrow?: number\n flexShrink?: number\n flexBasis?: number | string\n flex?: string\n justifyContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly'\n alignItems?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline'\n alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline'\n flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse'\n flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse'\n alignContent?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around'\n gap?: number | string\n rowGap?: number | string\n columnGap?: number | string\n}\n\nexport type ReactiveFlexboxOptions = ReactiveModifierProps<FlexboxOptions>\n\nexport class FlexboxModifier extends BaseModifier<FlexboxOptions> {\n readonly type = 'flexbox'\n readonly priority = 60 // Priority 60 for flexbox layout\n\n constructor(options: ReactiveFlexboxOptions) {\n // Convert reactive options to regular options for immediate use\n const resolvedOptions: FlexboxOptions = {}\n for (const [key, value] of Object.entries(options)) {\n if (typeof value === 'function' && 'peek' in value) {\n ;(resolvedOptions as any)[key] = (value as any).peek()\n } else {\n ;(resolvedOptions as any)[key] = value\n }\n }\n super(resolvedOptions)\n }\n\n apply(_node: DOMNode, context: ModifierContext): DOMNode | undefined {\n if (!context.element) return\n\n const styles = this.computeFlexboxStyles(this.properties)\n this.applyStyles(context.element, styles)\n \n return undefined\n }\n\n private computeFlexboxStyles(props: FlexboxOptions) {\n const styles: Record<string, string> = {}\n\n if (props.flexGrow !== undefined) {\n styles.flexGrow = props.flexGrow.toString()\n }\n if (props.flexShrink !== undefined) {\n styles.flexShrink = props.flexShrink.toString()\n }\n if (props.flexBasis !== undefined) {\n styles.flexBasis = this.toCSSValue(props.flexBasis)\n }\n if (props.flex !== undefined) {\n styles.flex = props.flex\n }\n if (props.justifyContent !== undefined) {\n styles.justifyContent = props.justifyContent\n }\n if (props.alignItems !== undefined) {\n styles.alignItems = props.alignItems\n }\n if (props.alignSelf !== undefined) {\n styles.alignSelf = props.alignSelf\n }\n if (props.flexDirection !== undefined) {\n styles.flexDirection = props.flexDirection\n }\n if (props.flexWrap !== undefined) {\n styles.flexWrap = props.flexWrap\n }\n if (props.alignContent !== undefined) {\n styles.alignContent = props.alignContent\n }\n if (props.gap !== undefined) {\n styles.gap = this.toCSSValue(props.gap)\n }\n if (props.rowGap !== undefined) {\n styles.rowGap = this.toCSSValue(props.rowGap)\n }\n if (props.columnGap !== undefined) {\n styles.columnGap = this.toCSSValue(props.columnGap)\n }\n\n return styles\n }\n}\n\n/**\n * Create a flexbox modifier with comprehensive flexbox properties\n *\n * @example\n * ```typescript\n * // Complete flexbox layout\n * .flexbox({\n * flexGrow: 1,\n * justifyContent: 'center',\n * alignItems: 'stretch',\n * gap: 16\n * })\n *\n * // Simple flex grow\n * .flexGrow(1)\n *\n * // Justify content\n * .justifyContent('space-between')\n * ```\n */\nexport function flexbox(options: ReactiveFlexboxOptions): FlexboxModifier {\n return new FlexboxModifier(options)\n}\n\n/**\n * Convenience function for flex-grow\n */\nexport function flexGrow(value: number): FlexboxModifier {\n return new FlexboxModifier({ flexGrow: value })\n}\n\n/**\n * Convenience function for flex-shrink\n */\nexport function flexShrink(value: number): FlexboxModifier {\n return new FlexboxModifier({ flexShrink: value })\n}\n\n/**\n * Convenience function for justify-content\n */\nexport function justifyContent(value: FlexboxOptions['justifyContent']): FlexboxModifier {\n return new FlexboxModifier({ justifyContent: value })\n}\n\n/**\n * Convenience function for align-items\n */\nexport function alignItems(value: FlexboxOptions['alignItems']): FlexboxModifier {\n return new FlexboxModifier({ alignItems: value })\n}\n\n/**\n * Convenience function for gap\n */\nexport function gap(value: number | string): FlexboxModifier {\n return new FlexboxModifier({ gap: value })\n}\n\n/**\n * Convenience function for flex-direction\n */\nexport function flexDirection(value: FlexboxOptions['flexDirection']): FlexboxModifier {\n return new FlexboxModifier({ flexDirection: value })\n}\n\n/**\n * Convenience function for flex-wrap\n */\nexport function flexWrap(value: FlexboxOptions['flexWrap']): FlexboxModifier {\n return new FlexboxModifier({ flexWrap: value })\n}\n"],"names":["FlexboxModifier","BaseModifier","options","resolvedOptions","key","value","__publicField","_node","context","styles","props","flexbox","flexGrow","flexShrink","justifyContent","alignItems","gap","flexDirection","flexWrap"],"mappings":";;AAmCO,MAAMA,UAAwBC,EAA6B;AAAA;AAAA,EAIhE,YAAYC,GAAiC;AAE3C,UAAMC,IAAkC,CAAA;AACxC,eAAW,CAACC,GAAKC,CAAK,KAAK,OAAO,QAAQH,CAAO;AAC/C,MAAI,OAAOG,KAAU,cAAc,UAAUA,IACzCF,EAAwBC,CAAG,IAAKC,EAAc,KAAA,IAE9CF,EAAwBC,CAAG,IAAIC;AAGrC,UAAMF,CAAe,GAbvBG,EAAA,MAAS,QAAO,SAAA,GAChBA,EAAA,MAAS,YAAW,EAAA;AAAA,EAapB;AAAA,EAEA,MAAMC,GAAgBC,GAA+C;AACnE,QAAI,CAACA,EAAQ,QAAS;AAEtB,UAAMC,IAAS,KAAK,qBAAqB,KAAK,UAAU;AACxD,SAAK,YAAYD,EAAQ,SAASC,CAAM;AAAA,EAG1C;AAAA,EAEQ,qBAAqBC,GAAuB;AAClD,UAAMD,IAAiC,CAAA;AAEvC,WAAIC,EAAM,aAAa,WACrBD,EAAO,WAAWC,EAAM,SAAS,SAAA,IAE/BA,EAAM,eAAe,WACvB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AC3E,SAAO,IAAIL,EAAgB,EAAE,UAAUK,GAAO;AAChD;"}
|
package/dist/modifiers/font.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./typography.cjs");function r(e){return typeof e=="string"?n(e):new t.TypographyModifier({family:e.family,size:e.size,weight:e.weight,style:e.style})}function n(e){const i={".largeTitle":{size:34,weight:400},".title":{size:28,weight:400},".title2":{size:22,weight:400},".title3":{size:20,weight:400},".headline":{size:17,weight:600},".subheadline":{size:15,weight:400},".body":{size:17,weight:400},".callout":{size:16,weight:400},".footnote":{size:13,weight:400},".caption":{size:12,weight:400},".caption2":{size:11,weight:400}},s=i[e];return s?new t.TypographyModifier(s):(console.warn(`Unknown font preset: ${e}. Using default body font.`),new t.TypographyModifier(i[".body"]))}function o(e){let i;switch(e.design){case"serif":i="ui-serif, Georgia, serif";break;case"rounded":i="ui-rounded, system-ui, -apple-system, sans-serif";break;case"monospaced":i="ui-monospace, SFMono-Regular, Consolas, monospace";break;default:i="system-ui, -apple-system, BlinkMacSystemFont, sans-serif"}return new t.TypographyModifier({family:i,size:e.size,weight:e.weight})}function a(e,i){return new t.TypographyModifier({family:e,size:i?.size,weight:i?.weight,style:i?.style})}exports.custom=a;exports.font=r;exports.system=o;
|
|
2
|
-
//# sourceMappingURL=font.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"font.cjs","sources":["../../src/modifiers/font.ts"],"sourcesContent":["/**\n * Font Modifier - SwiftUI-style font configuration\n * \n * Provides a unified interface for font configuration including\n * font family, size, weight, and style in a single modifier.\n */\n\nimport type { FontAsset, FontWeightValue } from '../assets/FontAsset'\nimport { TypographyModifier, type FontStyle, type FontWeight } from './typography'\n\nexport interface FontOptions {\n family?: string | FontAsset\n size?: number | string\n weight?: FontWeight | FontWeightValue\n style?: FontStyle\n}\n\n/**\n * SwiftUI-style font modifier for comprehensive font configuration\n * \n * @example\n * ```typescript\n * // System font with size\n * Text(\"Hello\").modifier.font({ size: 18 })\n * \n * // Custom font family\n * Text(\"Hello\").modifier.font({ \n * family: 'Georgia, serif',\n * size: 24,\n * weight: 'bold'\n * })\n * \n * // With FontAsset\n * import { Assets } from '@tachui/core'\n * Text(\"Hello\").modifier.font({\n * family: Assets.headingFont,\n * size: 32,\n * weight: 700\n * })\n * \n * // SwiftUI-style presets (future enhancement)\n * Text(\"Title\").modifier.font('.title')\n * Text(\"Body\").modifier.font('.body')\n * ```\n */\nexport function font(options: FontOptions | string): TypographyModifier {\n // Handle preset strings (future enhancement)\n if (typeof options === 'string') {\n return handleFontPreset(options)\n }\n\n // Convert FontOptions to TypographyOptions\n return new TypographyModifier({\n family: options.family,\n size: options.size,\n weight: options.weight,\n style: options.style,\n })\n}\n\n/**\n * Handle SwiftUI-style font presets\n * This is a placeholder for future enhancement\n */\nfunction handleFontPreset(preset: string): TypographyModifier {\n // Map common SwiftUI presets\n const presets: Record<string, FontOptions> = {\n '.largeTitle': { size: 34, weight: 400 },\n '.title': { size: 28, weight: 400 },\n '.title2': { size: 22, weight: 400 },\n '.title3': { size: 20, weight: 400 },\n '.headline': { size: 17, weight: 600 },\n '.subheadline': { size: 15, weight: 400 },\n '.body': { size: 17, weight: 400 },\n '.callout': { size: 16, weight: 400 },\n '.footnote': { size: 13, weight: 400 },\n '.caption': { size: 12, weight: 400 },\n '.caption2': { size: 11, weight: 400 },\n }\n\n const presetOptions = presets[preset]\n if (!presetOptions) {\n console.warn(`Unknown font preset: ${preset}. Using default body font.`)\n return new TypographyModifier(presets['.body'])\n }\n\n return new TypographyModifier(presetOptions)\n}\n\n/**\n * Create a system font with specific design\n * \n * @example\n * ```typescript\n * Text(\"Hello\").modifier.system({ size: 18, weight: 'medium', design: 'rounded' })\n * ```\n */\nexport function system(options: {\n size?: number | string\n weight?: FontWeight | FontWeightValue\n design?: 'default' | 'serif' | 'rounded' | 'monospaced'\n}): TypographyModifier {\n let family: string\n \n switch (options.design) {\n case 'serif':\n family = 'ui-serif, Georgia, serif'\n break\n case 'rounded':\n family = 'ui-rounded, system-ui, -apple-system, sans-serif'\n break\n case 'monospaced':\n family = 'ui-monospace, SFMono-Regular, Consolas, monospace'\n break\n default:\n family = 'system-ui, -apple-system, BlinkMacSystemFont, sans-serif'\n }\n\n return new TypographyModifier({\n family,\n size: options.size,\n weight: options.weight,\n })\n}\n\n/**\n * Create a custom font configuration\n * \n * @example\n * ```typescript\n * const myFont = custom('Avenir Next', { size: 18, weight: 500 })\n * Text(\"Hello\").modifier.apply(myFont)\n * ```\n */\nexport function custom(\n family: string | FontAsset,\n options?: {\n size?: number | string\n weight?: FontWeight | FontWeightValue\n style?: FontStyle\n }\n): TypographyModifier {\n return new TypographyModifier({\n family,\n size: options?.size,\n weight: options?.weight,\n style: options?.style,\n })\n}"],"names":["font","options","handleFontPreset","TypographyModifier","preset","presets","presetOptions","system","family","custom"],"mappings":"oHA6CO,SAASA,EAAKC,EAAmD,CAEtE,OAAI,OAAOA,GAAY,SACdC,EAAiBD,CAAO,EAI1B,IAAIE,EAAAA,mBAAmB,CAC5B,OAAQF,EAAQ,OAChB,KAAMA,EAAQ,KACd,OAAQA,EAAQ,OAChB,MAAOA,EAAQ,KAAA,CAChB,CACH,CAMA,SAASC,EAAiBE,EAAoC,CAE5D,MAAMC,EAAuC,CAC3C,cAAe,CAAE,KAAM,GAAI,OAAQ,GAAA,EACnC,SAAU,CAAE,KAAM,GAAI,OAAQ,GAAA,EAC9B,UAAW,CAAE,KAAM,GAAI,OAAQ,GAAA,EAC/B,UAAW,CAAE,KAAM,GAAI,OAAQ,GAAA,EAC/B,YAAa,CAAE,KAAM,GAAI,OAAQ,GAAA,EACjC,eAAgB,CAAE,KAAM,GAAI,OAAQ,GAAA,EACpC,QAAS,CAAE,KAAM,GAAI,OAAQ,GAAA,EAC7B,WAAY,CAAE,KAAM,GAAI,OAAQ,GAAA,EAChC,YAAa,CAAE,KAAM,GAAI,OAAQ,GAAA,EACjC,WAAY,CAAE,KAAM,GAAI,OAAQ,GAAA,EAChC,YAAa,CAAE,KAAM,GAAI,OAAQ,GAAA,CAAI,EAGjCC,EAAgBD,EAAQD,CAAM,EACpC,OAAKE,EAKE,IAAIH,EAAAA,mBAAmBG,CAAa,GAJzC,QAAQ,KAAK,wBAAwBF,CAAM,4BAA4B,EAChE,IAAID,EAAAA,mBAAmBE,EAAQ,OAAO,CAAC,EAIlD,CAUO,SAASE,EAAON,EAIA,CACrB,IAAIO,EAEJ,OAAQP,EAAQ,OAAA,CACd,IAAK,QACHO,EAAS,2BACT,MACF,IAAK,UACHA,EAAS,mDACT,MACF,IAAK,aACHA,EAAS,oDACT,MACF,QACEA,EAAS,0DAAA,CAGb,OAAO,IAAIL,EAAAA,mBAAmB,CAC5B,OAAAK,EACA,KAAMP,EAAQ,KACd,OAAQA,EAAQ,MAAA,CACjB,CACH,CAWO,SAASQ,EACdD,EACAP,EAKoB,CACpB,OAAO,IAAIE,EAAAA,mBAAmB,CAC5B,OAAAK,EACA,KAAMP,GAAS,KACf,OAAQA,GAAS,OACjB,MAAOA,GAAS,KAAA,CACjB,CACH"}
|
package/dist/modifiers/font.d.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Font Modifier - SwiftUI-style font configuration
|
|
3
|
-
*
|
|
4
|
-
* Provides a unified interface for font configuration including
|
|
5
|
-
* font family, size, weight, and style in a single modifier.
|
|
6
|
-
*/
|
|
7
|
-
import type { FontAsset, FontWeightValue } from '../assets/FontAsset';
|
|
8
|
-
import { TypographyModifier, type FontStyle, type FontWeight } from './typography';
|
|
9
|
-
export interface FontOptions {
|
|
10
|
-
family?: string | FontAsset;
|
|
11
|
-
size?: number | string;
|
|
12
|
-
weight?: FontWeight | FontWeightValue;
|
|
13
|
-
style?: FontStyle;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* SwiftUI-style font modifier for comprehensive font configuration
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```typescript
|
|
20
|
-
* // System font with size
|
|
21
|
-
* Text("Hello").modifier.font({ size: 18 })
|
|
22
|
-
*
|
|
23
|
-
* // Custom font family
|
|
24
|
-
* Text("Hello").modifier.font({
|
|
25
|
-
* family: 'Georgia, serif',
|
|
26
|
-
* size: 24,
|
|
27
|
-
* weight: 'bold'
|
|
28
|
-
* })
|
|
29
|
-
*
|
|
30
|
-
* // With FontAsset
|
|
31
|
-
* import { Assets } from '@tachui/core'
|
|
32
|
-
* Text("Hello").modifier.font({
|
|
33
|
-
* family: Assets.headingFont,
|
|
34
|
-
* size: 32,
|
|
35
|
-
* weight: 700
|
|
36
|
-
* })
|
|
37
|
-
*
|
|
38
|
-
* // SwiftUI-style presets (future enhancement)
|
|
39
|
-
* Text("Title").modifier.font('.title')
|
|
40
|
-
* Text("Body").modifier.font('.body')
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
export declare function font(options: FontOptions | string): TypographyModifier;
|
|
44
|
-
/**
|
|
45
|
-
* Create a system font with specific design
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```typescript
|
|
49
|
-
* Text("Hello").modifier.system({ size: 18, weight: 'medium', design: 'rounded' })
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
export declare function system(options: {
|
|
53
|
-
size?: number | string;
|
|
54
|
-
weight?: FontWeight | FontWeightValue;
|
|
55
|
-
design?: 'default' | 'serif' | 'rounded' | 'monospaced';
|
|
56
|
-
}): TypographyModifier;
|
|
57
|
-
/**
|
|
58
|
-
* Create a custom font configuration
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```typescript
|
|
62
|
-
* const myFont = custom('Avenir Next', { size: 18, weight: 500 })
|
|
63
|
-
* Text("Hello").modifier.apply(myFont)
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
export declare function custom(family: string | FontAsset, options?: {
|
|
67
|
-
size?: number | string;
|
|
68
|
-
weight?: FontWeight | FontWeightValue;
|
|
69
|
-
style?: FontStyle;
|
|
70
|
-
}): TypographyModifier;
|
|
71
|
-
//# sourceMappingURL=font.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../src/modifiers/font.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrE,OAAO,EAAE,kBAAkB,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAElF,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,MAAM,CAAC,EAAE,UAAU,GAAG,eAAe,CAAA;IACrC,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,kBAAkB,CAatE;AA+BD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,MAAM,CAAC,EAAE,UAAU,GAAG,eAAe,CAAA;IACrC,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,YAAY,CAAA;CACxD,GAAG,kBAAkB,CAsBrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CACpB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,CAAC,EAAE;IACR,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,MAAM,CAAC,EAAE,UAAU,GAAG,eAAe,CAAA;IACrC,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB,GACA,kBAAkB,CAOpB"}
|
package/dist/modifiers/font.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { TypographyModifier as t } from "./typography.js";
|
|
2
|
-
function a(e) {
|
|
3
|
-
return typeof e == "string" ? n(e) : new t({
|
|
4
|
-
family: e.family,
|
|
5
|
-
size: e.size,
|
|
6
|
-
weight: e.weight,
|
|
7
|
-
style: e.style
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
function n(e) {
|
|
11
|
-
const i = {
|
|
12
|
-
".largeTitle": { size: 34, weight: 400 },
|
|
13
|
-
".title": { size: 28, weight: 400 },
|
|
14
|
-
".title2": { size: 22, weight: 400 },
|
|
15
|
-
".title3": { size: 20, weight: 400 },
|
|
16
|
-
".headline": { size: 17, weight: 600 },
|
|
17
|
-
".subheadline": { size: 15, weight: 400 },
|
|
18
|
-
".body": { size: 17, weight: 400 },
|
|
19
|
-
".callout": { size: 16, weight: 400 },
|
|
20
|
-
".footnote": { size: 13, weight: 400 },
|
|
21
|
-
".caption": { size: 12, weight: 400 },
|
|
22
|
-
".caption2": { size: 11, weight: 400 }
|
|
23
|
-
}, s = i[e];
|
|
24
|
-
return s ? new t(s) : (console.warn(`Unknown font preset: ${e}. Using default body font.`), new t(i[".body"]));
|
|
25
|
-
}
|
|
26
|
-
function l(e) {
|
|
27
|
-
let i;
|
|
28
|
-
switch (e.design) {
|
|
29
|
-
case "serif":
|
|
30
|
-
i = "ui-serif, Georgia, serif";
|
|
31
|
-
break;
|
|
32
|
-
case "rounded":
|
|
33
|
-
i = "ui-rounded, system-ui, -apple-system, sans-serif";
|
|
34
|
-
break;
|
|
35
|
-
case "monospaced":
|
|
36
|
-
i = "ui-monospace, SFMono-Regular, Consolas, monospace";
|
|
37
|
-
break;
|
|
38
|
-
default:
|
|
39
|
-
i = "system-ui, -apple-system, BlinkMacSystemFont, sans-serif";
|
|
40
|
-
}
|
|
41
|
-
return new t({
|
|
42
|
-
family: i,
|
|
43
|
-
size: e.size,
|
|
44
|
-
weight: e.weight
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
function o(e, i) {
|
|
48
|
-
return new t({
|
|
49
|
-
family: e,
|
|
50
|
-
size: i?.size,
|
|
51
|
-
weight: i?.weight,
|
|
52
|
-
style: i?.style
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
export {
|
|
56
|
-
o as custom,
|
|
57
|
-
a as font,
|
|
58
|
-
l as system
|
|
59
|
-
};
|
|
60
|
-
//# sourceMappingURL=font.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"font.js","sources":["../../src/modifiers/font.ts"],"sourcesContent":["/**\n * Font Modifier - SwiftUI-style font configuration\n * \n * Provides a unified interface for font configuration including\n * font family, size, weight, and style in a single modifier.\n */\n\nimport type { FontAsset, FontWeightValue } from '../assets/FontAsset'\nimport { TypographyModifier, type FontStyle, type FontWeight } from './typography'\n\nexport interface FontOptions {\n family?: string | FontAsset\n size?: number | string\n weight?: FontWeight | FontWeightValue\n style?: FontStyle\n}\n\n/**\n * SwiftUI-style font modifier for comprehensive font configuration\n * \n * @example\n * ```typescript\n * // System font with size\n * Text(\"Hello\").modifier.font({ size: 18 })\n * \n * // Custom font family\n * Text(\"Hello\").modifier.font({ \n * family: 'Georgia, serif',\n * size: 24,\n * weight: 'bold'\n * })\n * \n * // With FontAsset\n * import { Assets } from '@tachui/core'\n * Text(\"Hello\").modifier.font({\n * family: Assets.headingFont,\n * size: 32,\n * weight: 700\n * })\n * \n * // SwiftUI-style presets (future enhancement)\n * Text(\"Title\").modifier.font('.title')\n * Text(\"Body\").modifier.font('.body')\n * ```\n */\nexport function font(options: FontOptions | string): TypographyModifier {\n // Handle preset strings (future enhancement)\n if (typeof options === 'string') {\n return handleFontPreset(options)\n }\n\n // Convert FontOptions to TypographyOptions\n return new TypographyModifier({\n family: options.family,\n size: options.size,\n weight: options.weight,\n style: options.style,\n })\n}\n\n/**\n * Handle SwiftUI-style font presets\n * This is a placeholder for future enhancement\n */\nfunction handleFontPreset(preset: string): TypographyModifier {\n // Map common SwiftUI presets\n const presets: Record<string, FontOptions> = {\n '.largeTitle': { size: 34, weight: 400 },\n '.title': { size: 28, weight: 400 },\n '.title2': { size: 22, weight: 400 },\n '.title3': { size: 20, weight: 400 },\n '.headline': { size: 17, weight: 600 },\n '.subheadline': { size: 15, weight: 400 },\n '.body': { size: 17, weight: 400 },\n '.callout': { size: 16, weight: 400 },\n '.footnote': { size: 13, weight: 400 },\n '.caption': { size: 12, weight: 400 },\n '.caption2': { size: 11, weight: 400 },\n }\n\n const presetOptions = presets[preset]\n if (!presetOptions) {\n console.warn(`Unknown font preset: ${preset}. Using default body font.`)\n return new TypographyModifier(presets['.body'])\n }\n\n return new TypographyModifier(presetOptions)\n}\n\n/**\n * Create a system font with specific design\n * \n * @example\n * ```typescript\n * Text(\"Hello\").modifier.system({ size: 18, weight: 'medium', design: 'rounded' })\n * ```\n */\nexport function system(options: {\n size?: number | string\n weight?: FontWeight | FontWeightValue\n design?: 'default' | 'serif' | 'rounded' | 'monospaced'\n}): TypographyModifier {\n let family: string\n \n switch (options.design) {\n case 'serif':\n family = 'ui-serif, Georgia, serif'\n break\n case 'rounded':\n family = 'ui-rounded, system-ui, -apple-system, sans-serif'\n break\n case 'monospaced':\n family = 'ui-monospace, SFMono-Regular, Consolas, monospace'\n break\n default:\n family = 'system-ui, -apple-system, BlinkMacSystemFont, sans-serif'\n }\n\n return new TypographyModifier({\n family,\n size: options.size,\n weight: options.weight,\n })\n}\n\n/**\n * Create a custom font configuration\n * \n * @example\n * ```typescript\n * const myFont = custom('Avenir Next', { size: 18, weight: 500 })\n * Text(\"Hello\").modifier.apply(myFont)\n * ```\n */\nexport function custom(\n family: string | FontAsset,\n options?: {\n size?: number | string\n weight?: FontWeight | FontWeightValue\n style?: FontStyle\n }\n): TypographyModifier {\n return new TypographyModifier({\n family,\n size: options?.size,\n weight: options?.weight,\n style: options?.style,\n })\n}"],"names":["font","options","handleFontPreset","TypographyModifier","preset","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A,IAAS;AAAA,EAAA;AAGb,SAAO,IAAIL,EAAmB;AAAA,IAC5B,QAAAK;AAAA,IACA,MAAMP,EAAQ;AAAA,IACd,QAAQA,EAAQ;AAAA,EAAA,CACjB;AACH;AAWO,SAASQ,EACdD,GACAP,GAKoB;AACpB,SAAO,IAAIE,EAAmB;AAAA,IAC5B,QAAAK;AAAA,IACA,MAAMP,GAAS;AAAA,IACf,QAAQA,GAAS;AAAA,IACjB,OAAOA,GAAS;AAAA,EAAA,CACjB;AACH;"}
|
package/dist/modifiers/grid.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./base.cjs");var w=Object.defineProperty,M=(t,e,i)=>e in t?w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e,i)=>M(t,typeof e!="symbol"?e+"":e,i);class g extends d.BaseModifier{constructor(e,i){super({span:e,start:i}),l(this,"type","grid-column-span"),l(this,"priority",200)}apply(e,i){const r=i.element||e.element;if(!r)return;const{span:n,start:o}=this.properties;o!==void 0?r.style.gridColumn=`${o} / span ${n}`:r.style.gridColumn=`span ${n}`}}class c extends d.BaseModifier{constructor(e,i){super({span:e,start:i}),l(this,"type","grid-row-span"),l(this,"priority",200)}apply(e,i){const r=i.element||e.element;if(!r)return;const{span:n,start:o}=this.properties;o!==void 0?r.style.gridRow=`${o} / span ${n}`:r.style.gridRow=`span ${n}`}}class m extends d.BaseModifier{constructor(e){super({area:e}),l(this,"type","grid-area"),l(this,"priority",200)}apply(e,i){const r=i.element||e.element;r&&(r.style.gridArea=this.properties.area)}}class y extends d.BaseModifier{constructor(e,i){const r={};(i==="horizontal"||i==="both"||i===void 0)&&(r.justifySelf=e),(i==="vertical"||i==="both"||i===void 0)&&(r.alignSelf=e),super(r),l(this,"type","grid-cell-alignment"),l(this,"priority",200)}apply(e,i){const r=i.element||e.element;if(!r)return;const{justifySelf:n,alignSelf:o}=this.properties;n&&(r.style.justifySelf=n),o&&(r.style.alignSelf=o)}}class S extends d.BaseModifier{constructor(){super(...arguments),l(this,"type","grid-item-config"),l(this,"priority",200)}apply(e,i){const r=i.element||e.element;if(!r)return;const{columnSpan:n,rowSpan:o,columnStart:a,rowStart:f,area:u,alignment:p}=this.properties,s=r.style;n!==void 0?a!==void 0?s.gridColumn=`${a} / span ${n}`:s.gridColumn=`span ${n}`:a!==void 0&&(s.gridColumnStart=a.toString()),o!==void 0?f!==void 0?s.gridRow=`${f} / span ${o}`:s.gridRow=`span ${o}`:f!==void 0&&(s.gridRowStart=f.toString()),u&&(s.gridArea=u),p&&(s.justifySelf=p,s.alignSelf=p)}}function C(t,e){return new g(t,e)}function v(t,e){return new c(t,e)}function A(t){return new m(t)}function h(t,e){return new y(t,e)}function $(t){return new S(t)}const R=C,G=v,b=h;exports.GridAreaModifier=m;exports.GridCellAlignmentModifier=y;exports.GridColumnSpanModifier=g;exports.GridItemConfigModifier=S;exports.GridRowSpanModifier=c;exports.gridArea=A;exports.gridCellAlignment=h;exports.gridCellAnchor=b;exports.gridCellColumns=R;exports.gridCellRows=G;exports.gridColumnSpan=C;exports.gridItemConfig=$;exports.gridRowSpan=v;
|
|
2
|
-
//# sourceMappingURL=grid.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grid.cjs","sources":["../../src/modifiers/grid.ts"],"sourcesContent":["/**\n * Grid Layout Modifiers (Phase 3)\n * \n * SwiftUI-equivalent grid modifiers for spanning, positioning, and alignment.\n * Provides comprehensive grid item control with CSS Grid integration.\n */\n\nimport { BaseModifier } from './base'\nimport type { ModifierContext } from './types'\nimport type { DOMNode } from '../runtime/types'\nimport type { GridSpanConfig } from '../components/Grid'\n\n/**\n * Grid column span modifier (equivalent to SwiftUI's gridCellColumns)\n */\nexport class GridColumnSpanModifier extends BaseModifier<{ span: number; start?: number }> {\n readonly type = 'grid-column-span'\n readonly priority = 200\n\n constructor(span: number, start?: number) {\n super({ span, start })\n }\n\n apply(node: DOMNode, context: ModifierContext): DOMNode | undefined {\n const element = context.element || node.element\n if (!element) {\n return undefined\n }\n\n const { span, start } = this.properties\n \n if (start !== undefined) {\n (element as any).style.gridColumn = `${start} / span ${span}`\n } else {\n (element as any).style.gridColumn = `span ${span}`\n }\n\n return undefined\n }\n}\n\n/**\n * Grid row span modifier (equivalent to SwiftUI's gridCellRows)\n */\nexport class GridRowSpanModifier extends BaseModifier<{ span: number; start?: number }> {\n readonly type = 'grid-row-span'\n readonly priority = 200\n\n constructor(span: number, start?: number) {\n super({ span, start })\n }\n\n apply(node: DOMNode, context: ModifierContext): DOMNode | undefined {\n const element = context.element || node.element\n if (!element) {\n return undefined\n }\n\n const { span, start } = this.properties\n \n if (start !== undefined) {\n (element as any).style.gridRow = `${start} / span ${span}`\n } else {\n (element as any).style.gridRow = `span ${span}`\n }\n\n return undefined\n }\n}\n\n/**\n * Grid area modifier for named grid areas\n */\nexport class GridAreaModifier extends BaseModifier<{ area: string }> {\n readonly type = 'grid-area'\n readonly priority = 200\n\n constructor(area: string) {\n super({ area })\n }\n\n apply(node: DOMNode, context: ModifierContext): DOMNode | undefined {\n const element = context.element || node.element\n if (!element) {\n return undefined\n }\n\n (element as any).style.gridArea = this.properties.area\n\n return undefined\n }\n}\n\n/**\n * Grid cell alignment modifier (equivalent to SwiftUI's gridCellAnchor)\n */\nexport class GridCellAlignmentModifier extends BaseModifier<{ \n justifySelf?: 'start' | 'center' | 'end' | 'stretch'\n alignSelf?: 'start' | 'center' | 'end' | 'stretch' \n}> {\n readonly type = 'grid-cell-alignment'\n readonly priority = 200\n\n constructor(alignment: 'start' | 'center' | 'end' | 'stretch', axis?: 'horizontal' | 'vertical' | 'both') {\n const config: { \n justifySelf?: 'start' | 'center' | 'end' | 'stretch'\n alignSelf?: 'start' | 'center' | 'end' | 'stretch'\n } = {}\n \n if (axis === 'horizontal' || axis === 'both' || axis === undefined) {\n config.justifySelf = alignment\n }\n if (axis === 'vertical' || axis === 'both' || axis === undefined) {\n config.alignSelf = alignment\n }\n \n super(config)\n }\n\n apply(node: DOMNode, context: ModifierContext): DOMNode | undefined {\n const element = context.element || node.element\n if (!element) {\n return undefined\n }\n\n const { justifySelf, alignSelf } = this.properties\n \n if (justifySelf) {\n (element as any).style.justifySelf = justifySelf\n }\n if (alignSelf) {\n (element as any).style.alignSelf = alignSelf\n }\n\n return undefined\n }\n}\n\n/**\n * Comprehensive grid item configuration modifier\n */\nexport class GridItemConfigModifier extends BaseModifier<GridSpanConfig> {\n readonly type = 'grid-item-config'\n readonly priority = 200\n\n\n apply(node: DOMNode, context: ModifierContext): DOMNode | undefined {\n const element = context.element || node.element\n if (!element) {\n return undefined\n }\n\n const { columnSpan, rowSpan, columnStart, rowStart, area, alignment } = this.properties\n const elementStyle = (element as any).style\n\n // Apply column spanning\n if (columnSpan !== undefined) {\n if (columnStart !== undefined) {\n elementStyle.gridColumn = `${columnStart} / span ${columnSpan}`\n } else {\n elementStyle.gridColumn = `span ${columnSpan}`\n }\n } else if (columnStart !== undefined) {\n elementStyle.gridColumnStart = columnStart.toString()\n }\n\n // Apply row spanning\n if (rowSpan !== undefined) {\n if (rowStart !== undefined) {\n elementStyle.gridRow = `${rowStart} / span ${rowSpan}`\n } else {\n elementStyle.gridRow = `span ${rowSpan}`\n }\n } else if (rowStart !== undefined) {\n elementStyle.gridRowStart = rowStart.toString()\n }\n\n // Apply grid area\n if (area) {\n elementStyle.gridArea = area\n }\n\n // Apply alignment\n if (alignment) {\n elementStyle.justifySelf = alignment\n elementStyle.alignSelf = alignment\n }\n\n return undefined\n }\n}\n\n/**\n * SwiftUI-style modifier factory functions\n */\n\n/**\n * Span multiple columns (.gridCellColumns equivalent)\n */\nexport function gridColumnSpan(span: number, start?: number): GridColumnSpanModifier {\n return new GridColumnSpanModifier(span, start)\n}\n\n/**\n * Span multiple rows (.gridCellRows equivalent)\n */\nexport function gridRowSpan(span: number, start?: number): GridRowSpanModifier {\n return new GridRowSpanModifier(span, start)\n}\n\n/**\n * Place item in named grid area\n */\nexport function gridArea(area: string): GridAreaModifier {\n return new GridAreaModifier(area)\n}\n\n/**\n * Align grid item within its cell (.gridCellAnchor equivalent)\n */\nexport function gridCellAlignment(\n alignment: 'start' | 'center' | 'end' | 'stretch',\n axis?: 'horizontal' | 'vertical' | 'both'\n): GridCellAlignmentModifier {\n return new GridCellAlignmentModifier(alignment, axis)\n}\n\n/**\n * Comprehensive grid item configuration\n */\nexport function gridItemConfig(config: GridSpanConfig): GridItemConfigModifier {\n return new GridItemConfigModifier(config)\n}\n\n// SwiftUI naming compatibility aliases\nexport const gridCellColumns = gridColumnSpan\nexport const gridCellRows = gridRowSpan\nexport const gridCellAnchor = gridCellAlignment"],"names":["GridColumnSpanModifier","BaseModifier","span","start","__publicField","node","context","element","GridRowSpanModifier","GridAreaModifier","area","GridCellAlignmentModifier","alignment","axis","config","justifySelf","alignSelf","GridItemConfigModifier","columnSpan","rowSpan","columnStart","rowStart","elementStyle","gridColumnSpan","gridRowSpan","gridArea","gridCellAlignment","gridItemConfig","gridCellColumns","gridCellRows","gridCellAnchor"],"mappings":"0QAeO,MAAMA,UAA+BC,EAAAA,YAA+C,CAIzF,YAAYC,EAAcC,EAAgB,CACxC,MAAM,CAAE,KAAAD,EAAM,MAAAC,EAAO,EAJvBC,EAAA,KAAS,OAAO,kBAAA,EAChBA,EAAA,KAAS,WAAW,GAAA,CAIpB,CAEA,MAAMC,EAAeC,EAA+C,CAClE,MAAMC,EAAUD,EAAQ,SAAWD,EAAK,QACxC,GAAI,CAACE,EACH,OAGF,KAAM,CAAE,KAAAL,EAAM,MAAAC,CAAA,EAAU,KAAK,WAEzBA,IAAU,OACXI,EAAgB,MAAM,WAAa,GAAGJ,CAAK,WAAWD,CAAI,GAE1DK,EAAgB,MAAM,WAAa,QAAQL,CAAI,EAIpD,CACF,CAKO,MAAMM,UAA4BP,EAAAA,YAA+C,CAItF,YAAYC,EAAcC,EAAgB,CACxC,MAAM,CAAE,KAA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Layout Modifiers (Phase 3)
|
|
3
|
-
*
|
|
4
|
-
* SwiftUI-equivalent grid modifiers for spanning, positioning, and alignment.
|
|
5
|
-
* Provides comprehensive grid item control with CSS Grid integration.
|
|
6
|
-
*/
|
|
7
|
-
import { BaseModifier } from './base';
|
|
8
|
-
import type { ModifierContext } from './types';
|
|
9
|
-
import type { DOMNode } from '../runtime/types';
|
|
10
|
-
import type { GridSpanConfig } from '../components/Grid';
|
|
11
|
-
/**
|
|
12
|
-
* Grid column span modifier (equivalent to SwiftUI's gridCellColumns)
|
|
13
|
-
*/
|
|
14
|
-
export declare class GridColumnSpanModifier extends BaseModifier<{
|
|
15
|
-
span: number;
|
|
16
|
-
start?: number;
|
|
17
|
-
}> {
|
|
18
|
-
readonly type = "grid-column-span";
|
|
19
|
-
readonly priority = 200;
|
|
20
|
-
constructor(span: number, start?: number);
|
|
21
|
-
apply(node: DOMNode, context: ModifierContext): DOMNode | undefined;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Grid row span modifier (equivalent to SwiftUI's gridCellRows)
|
|
25
|
-
*/
|
|
26
|
-
export declare class GridRowSpanModifier extends BaseModifier<{
|
|
27
|
-
span: number;
|
|
28
|
-
start?: number;
|
|
29
|
-
}> {
|
|
30
|
-
readonly type = "grid-row-span";
|
|
31
|
-
readonly priority = 200;
|
|
32
|
-
constructor(span: number, start?: number);
|
|
33
|
-
apply(node: DOMNode, context: ModifierContext): DOMNode | undefined;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Grid area modifier for named grid areas
|
|
37
|
-
*/
|
|
38
|
-
export declare class GridAreaModifier extends BaseModifier<{
|
|
39
|
-
area: string;
|
|
40
|
-
}> {
|
|
41
|
-
readonly type = "grid-area";
|
|
42
|
-
readonly priority = 200;
|
|
43
|
-
constructor(area: string);
|
|
44
|
-
apply(node: DOMNode, context: ModifierContext): DOMNode | undefined;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Grid cell alignment modifier (equivalent to SwiftUI's gridCellAnchor)
|
|
48
|
-
*/
|
|
49
|
-
export declare class GridCellAlignmentModifier extends BaseModifier<{
|
|
50
|
-
justifySelf?: 'start' | 'center' | 'end' | 'stretch';
|
|
51
|
-
alignSelf?: 'start' | 'center' | 'end' | 'stretch';
|
|
52
|
-
}> {
|
|
53
|
-
readonly type = "grid-cell-alignment";
|
|
54
|
-
readonly priority = 200;
|
|
55
|
-
constructor(alignment: 'start' | 'center' | 'end' | 'stretch', axis?: 'horizontal' | 'vertical' | 'both');
|
|
56
|
-
apply(node: DOMNode, context: ModifierContext): DOMNode | undefined;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Comprehensive grid item configuration modifier
|
|
60
|
-
*/
|
|
61
|
-
export declare class GridItemConfigModifier extends BaseModifier<GridSpanConfig> {
|
|
62
|
-
readonly type = "grid-item-config";
|
|
63
|
-
readonly priority = 200;
|
|
64
|
-
apply(node: DOMNode, context: ModifierContext): DOMNode | undefined;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* SwiftUI-style modifier factory functions
|
|
68
|
-
*/
|
|
69
|
-
/**
|
|
70
|
-
* Span multiple columns (.gridCellColumns equivalent)
|
|
71
|
-
*/
|
|
72
|
-
export declare function gridColumnSpan(span: number, start?: number): GridColumnSpanModifier;
|
|
73
|
-
/**
|
|
74
|
-
* Span multiple rows (.gridCellRows equivalent)
|
|
75
|
-
*/
|
|
76
|
-
export declare function gridRowSpan(span: number, start?: number): GridRowSpanModifier;
|
|
77
|
-
/**
|
|
78
|
-
* Place item in named grid area
|
|
79
|
-
*/
|
|
80
|
-
export declare function gridArea(area: string): GridAreaModifier;
|
|
81
|
-
/**
|
|
82
|
-
* Align grid item within its cell (.gridCellAnchor equivalent)
|
|
83
|
-
*/
|
|
84
|
-
export declare function gridCellAlignment(alignment: 'start' | 'center' | 'end' | 'stretch', axis?: 'horizontal' | 'vertical' | 'both'): GridCellAlignmentModifier;
|
|
85
|
-
/**
|
|
86
|
-
* Comprehensive grid item configuration
|
|
87
|
-
*/
|
|
88
|
-
export declare function gridItemConfig(config: GridSpanConfig): GridItemConfigModifier;
|
|
89
|
-
export declare const gridCellColumns: typeof gridColumnSpan;
|
|
90
|
-
export declare const gridCellRows: typeof gridRowSpan;
|
|
91
|
-
export declare const gridCellAnchor: typeof gridCellAlignment;
|
|
92
|
-
//# sourceMappingURL=grid.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../src/modifiers/grid.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAExD;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,YAAY,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;IACxF,QAAQ,CAAC,IAAI,sBAAqB;IAClC,QAAQ,CAAC,QAAQ,OAAM;gBAEX,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAIxC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,GAAG,SAAS;CAgBpE;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,YAAY,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;IACrF,QAAQ,CAAC,IAAI,mBAAkB;IAC/B,QAAQ,CAAC,QAAQ,OAAM;gBAEX,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAIxC,KAAK,CAAC,IAAI,EAAE,O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KAAK,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAE7E;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAEvD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,EACjD,IAAI,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,MAAM,GACxC,yBAAyB,CAE3B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,cAAc,GAAG,sBAAsB,CAE7E;AAGD,eAAO,MAAM,eAAe,uBAAiB,CAAA;AAC7C,eAAO,MAAM,YAAY,oBAAc,CAAA;AACvC,eAAO,MAAM,cAAc,0BAAoB,CAAA"}
|
package/dist/modifiers/grid.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { BaseModifier as d } from "./base.js";
|
|
2
|
-
var c = Object.defineProperty, g = (i, e, t) => e in i ? c(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, s = (i, e, t) => g(i, typeof e != "symbol" ? e + "" : e, t);
|
|
3
|
-
class m extends d {
|
|
4
|
-
constructor(e, t) {
|
|
5
|
-
super({ span: e, start: t }), s(this, "type", "grid-column-span"), s(this, "priority", 200);
|
|
6
|
-
}
|
|
7
|
-
apply(e, t) {
|
|
8
|
-
const r = t.element || e.element;
|
|
9
|
-
if (!r)
|
|
10
|
-
return;
|
|
11
|
-
const { span: n, start: o } = this.properties;
|
|
12
|
-
o !== void 0 ? r.style.gridColumn = `${o} / span ${n}` : r.style.gridColumn = `span ${n}`;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
class y extends d {
|
|
16
|
-
constructor(e, t) {
|
|
17
|
-
super({ span: e, start: t }), s(this, "type", "grid-row-span"), s(this, "priority", 200);
|
|
18
|
-
}
|
|
19
|
-
apply(e, t) {
|
|
20
|
-
const r = t.element || e.element;
|
|
21
|
-
if (!r)
|
|
22
|
-
return;
|
|
23
|
-
const { span: n, start: o } = this.properties;
|
|
24
|
-
o !== void 0 ? r.style.gridRow = `${o} / span ${n}` : r.style.gridRow = `span ${n}`;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
class v extends d {
|
|
28
|
-
constructor(e) {
|
|
29
|
-
super({ area: e }), s(this, "type", "grid-area"), s(this, "priority", 200);
|
|
30
|
-
}
|
|
31
|
-
apply(e, t) {
|
|
32
|
-
const r = t.element || e.element;
|
|
33
|
-
r && (r.style.gridArea = this.properties.area);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
class S extends d {
|
|
37
|
-
constructor(e, t) {
|
|
38
|
-
const r = {};
|
|
39
|
-
(t === "horizontal" || t === "both" || t === void 0) && (r.justifySelf = e), (t === "vertical" || t === "both" || t === void 0) && (r.alignSelf = e), super(r), s(this, "type", "grid-cell-alignment"), s(this, "priority", 200);
|
|
40
|
-
}
|
|
41
|
-
apply(e, t) {
|
|
42
|
-
const r = t.element || e.element;
|
|
43
|
-
if (!r)
|
|
44
|
-
return;
|
|
45
|
-
const { justifySelf: n, alignSelf: o } = this.properties;
|
|
46
|
-
n && (r.style.justifySelf = n), o && (r.style.alignSelf = o);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
class h extends d {
|
|
50
|
-
constructor() {
|
|
51
|
-
super(...arguments), s(this, "type", "grid-item-config"), s(this, "priority", 200);
|
|
52
|
-
}
|
|
53
|
-
apply(e, t) {
|
|
54
|
-
const r = t.element || e.element;
|
|
55
|
-
if (!r)
|
|
56
|
-
return;
|
|
57
|
-
const { columnSpan: n, rowSpan: o, columnStart: p, rowStart: a, area: u, alignment: f } = this.properties, l = r.style;
|
|
58
|
-
n !== void 0 ? p !== void 0 ? l.gridColumn = `${p} / span ${n}` : l.gridColumn = `span ${n}` : p !== void 0 && (l.gridColumnStart = p.toString()), o !== void 0 ? a !== void 0 ? l.gridRow = `${a} / span ${o}` : l.gridRow = `span ${o}` : a !== void 0 && (l.gridRowStart = a.toString()), u && (l.gridArea = u), f && (l.justifySelf = f, l.alignSelf = f);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function w(i, e) {
|
|
62
|
-
return new m(i, e);
|
|
63
|
-
}
|
|
64
|
-
function C(i, e) {
|
|
65
|
-
return new y(i, e);
|
|
66
|
-
}
|
|
67
|
-
function A(i) {
|
|
68
|
-
return new v(i);
|
|
69
|
-
}
|
|
70
|
-
function $(i, e) {
|
|
71
|
-
return new S(i, e);
|
|
72
|
-
}
|
|
73
|
-
function b(i) {
|
|
74
|
-
return new h(i);
|
|
75
|
-
}
|
|
76
|
-
const M = w, _ = C, G = $;
|
|
77
|
-
export {
|
|
78
|
-
v as GridAreaModifier,
|
|
79
|
-
S as GridCellAlignmentModifier,
|
|
80
|
-
m as GridColumnSpanModifier,
|
|
81
|
-
h as GridItemConfigModifier,
|
|
82
|
-
y as GridRowSpanModifier,
|
|
83
|
-
A as gridArea,
|
|
84
|
-
$ as gridCellAlignment,
|
|
85
|
-
G as gridCellAnchor,
|
|
86
|
-
M as gridCellColumns,
|
|
87
|
-
_ as gridCellRows,
|
|
88
|
-
w as gridColumnSpan,
|
|
89
|
-
b as gridItemConfig,
|
|
90
|
-
C as gridRowSpan
|
|
91
|
-
};
|
|
92
|
-
//# sourceMappingURL=grid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grid.js","sources":["../../src/modifiers/grid.ts"],"sourcesContent":["/**\n * Grid Layout Modifiers (Phase 3)\n * \n * SwiftUI-equivalent grid modifiers for spanning, positioning, and alignment.\n * Provides comprehensive grid item control with CSS Grid integration.\n */\n\nimport { BaseModifier } from './base'\nimport type { ModifierContext } from './types'\nimport type { DOMNode } from '../runtime/types'\nimport type { GridSpanConfig } from '../components/Grid'\n\n/**\n * Grid column span modifier (equivalent to SwiftUI's gridCellColumns)\n */\nexport class GridColumnSpanModifier extends BaseModifier<{ span: number; start?: number }> {\n readonly type = 'grid-column-span'\n readonly priority = 200\n\n constructor(span: number, start?: number) {\n super({ span, start })\n }\n\n apply(node: DOMNode, context: ModifierContext): DOMNode | undefined {\n const element = context.element || node.element\n if (!element) {\n return undefined\n }\n\n const { span, start } = this.properties\n \n if (start !== undefined) {\n (element as any).style.gridColumn = `${start} / span ${span}`\n } else {\n (element as any).style.gridColumn = `span ${span}`\n }\n\n return undefined\n }\n}\n\n/**\n * Grid row span modifier (equivalent to SwiftUI's gridCellRows)\n */\nexport class GridRowSpanModifier extends BaseModifier<{ span: number; start?: number }> {\n readonly type = 'grid-row-span'\n readonly priority = 200\n\n constructor(span: number, start?: number) {\n super({ span, start })\n }\n\n apply(node: DOMNode, context: ModifierContext): DOMNode | undefined {\n const element = context.element || node.element\n if (!element) {\n return undefined\n }\n\n const { span, start } = this.properties\n \n if (start !== undefined) {\n (element as any).style.gridRow = `${start} / span ${span}`\n } else {\n (element as any).style.gridRow = `span ${span}`\n }\n\n return undefined\n }\n}\n\n/**\n * Grid area modifier for named grid areas\n */\nexport class GridAreaModifier extends BaseModifier<{ area: string }> {\n readonly type = 'grid-area'\n readonly priority = 200\n\n constructor(area: string) {\n super({ area })\n }\n\n apply(node: DOMNode, context: ModifierContext): DOMNode | undefined {\n const element = context.element || node.element\n if (!element) {\n return undefined\n }\n\n (element as any).style.gridArea = this.properties.area\n\n return undefined\n }\n}\n\n/**\n * Grid cell alignment modifier (equivalent to SwiftUI's gridCellAnchor)\n */\nexport class GridCellAlignmentModifier extends BaseModifier<{ \n justifySelf?: 'start' | 'center' | 'end' | 'stretch'\n alignSelf?: 'start' | 'center' | 'end' | 'stretch' \n}> {\n readonly type = 'grid-cell-alignment'\n readonly priority = 200\n\n constructor(alignment: 'start' | 'center' | 'end' | 'stretch', axis?: 'horizontal' | 'vertical' | 'both') {\n const config: { \n justifySelf?: 'start' | 'center' | 'end' | 'stretch'\n alignSelf?: 'start' | 'center' | 'end' | 'stretch'\n } = {}\n \n if (axis === 'horizontal' || axis === 'both' || axis === undefined) {\n config.justifySelf = alignment\n }\n if (axis === 'vertical' || axis === 'both' || axis === undefined) {\n config.alignSelf = alignment\n }\n \n super(config)\n }\n\n apply(node: DOMNode, context: ModifierContext): DOMNode | undefined {\n const element = context.element || node.element\n if (!element) {\n return undefined\n }\n\n const { justifySelf, alignSelf } = this.properties\n \n if (justifySelf) {\n (element as any).style.justifySelf = justifySelf\n }\n if (alignSelf) {\n (element as any).style.alignSelf = alignSelf\n }\n\n return undefined\n }\n}\n\n/**\n * Comprehensive grid item configuration modifier\n */\nexport class GridItemConfigModifier extends BaseModifier<GridSpanConfig> {\n readonly type = 'grid-item-config'\n readonly priority = 200\n\n\n apply(node: DOMNode, context: ModifierContext): DOMNode | undefined {\n const element = context.element || node.element\n if (!element) {\n return undefined\n }\n\n const { columnSpan, rowSpan, columnStart, rowStart, area, alignment } = this.properties\n const elementStyle = (element as any).style\n\n // Apply column spanning\n if (columnSpan !== undefined) {\n if (columnStart !== undefined) {\n elementStyle.gridColumn = `${columnStart} / span ${columnSpan}`\n } else {\n elementStyle.gridColumn = `span ${columnSpan}`\n }\n } else if (columnStart !== undefined) {\n elementStyle.gridColumnStart = columnStart.toString()\n }\n\n // Apply row spanning\n if (rowSpan !== undefined) {\n if (rowStart !== undefined) {\n elementStyle.gridRow = `${rowStart} / span ${rowSpan}`\n } else {\n elementStyle.gridRow = `span ${rowSpan}`\n }\n } else if (rowStart !== undefined) {\n elementStyle.gridRowStart = rowStart.toString()\n }\n\n // Apply grid area\n if (area) {\n elementStyle.gridArea = area\n }\n\n // Apply alignment\n if (alignment) {\n elementStyle.justifySelf = alignment\n elementStyle.alignSelf = alignment\n }\n\n return undefined\n }\n}\n\n/**\n * SwiftUI-style modifier factory functions\n */\n\n/**\n * Span multiple columns (.gridCellColumns equivalent)\n */\nexport function gridColumnSpan(span: number, start?: number): GridColumnSpanModifier {\n return new GridColumnSpanModifier(span, start)\n}\n\n/**\n * Span multiple rows (.gridCellRows equivalent)\n */\nexport function gridRowSpan(span: number, start?: number): GridRowSpanModifier {\n return new GridRowSpanModifier(span, start)\n}\n\n/**\n * Place item in named grid area\n */\nexport function gridArea(area: string): GridAreaModifier {\n return new GridAreaModifier(area)\n}\n\n/**\n * Align grid item within its cell (.gridCellAnchor equivalent)\n */\nexport function gridCellAlignment(\n alignment: 'start' | 'center' | 'end' | 'stretch',\n axis?: 'horizontal' | 'vertical' | 'both'\n): GridCellAlignmentModifier {\n return new GridCellAlignmentModifier(alignment, axis)\n}\n\n/**\n * Comprehensive grid item configuration\n */\nexport function gridItemConfig(config: GridSpanConfig): GridItemConfigModifier {\n return new GridItemConfigModifier(config)\n}\n\n// SwiftUI naming compatibility aliases\nexport const gridCellColumns = gridColumnSpan\nexport const gridCellRows = gridRowSpan\nexport const gridCellAnchor = gridCellAlignment"],"names":["GridColumnSpanModifier","BaseModifier","span","start","__publicField","node","context","element","GridRowSpanModifier","GridAreaModifier","area","GridCellAlignmentModifier","alignment","axis","config","justifySelf","alignSelf","GridItemConfigModifier","columnSpan","rowSpan","columnStart","rowStart","elementStyle","gridColumnSpan","gridRowSpan","gridArea","gridCellAlignment","gridItemConfig","gridCellColumns","gridCellRows","gridCellAnchor"],"mappings":";;AAeO,MAAMA,UAA+BC,EAA+C;AAAA,EAIzF,YAAYC,GAAcC,GAAgB;AACxC,UAAM,EAAE,MAAAD,GAAM,OAAAC,GAAO,GAJvBC,EAAA,MAAS,QAAO,kBAAA,GAChBA,EAAA,MAAS,YAAW,GAAA;AAAA,EAIpB;AAAA,EAEA,MAAMC,GAAeC,GAA+C;AAClE,UAAMC,IAAUD,EAAQ,WAAWD,EAAK;AACxC,QAAI,CAACE;AACH;AAGF,UAAM,EAAE,MAAAL,GAAM,OAAAC,EAAA,IAAU,KAAK;AAE7B,IAAIA,MAAU,SACXI,EAAgB,MAAM,aAAa,GAAGJ,CAAK,WAAWD,CAAI,KAE1DK,EAAgB,MAAM,aAAa,QAAQL,CAAI;AAAA,EAIpD;AACF;AAKO,MAAMM,U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AIG,EAAuBH,CAAM;AAC1C;AAGO,MAAMc,IAAkBL,GAClBM,IAAeL,GACfM,IAAiBJ;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./base.cjs");var g=Object.defineProperty,f=(i,t,n)=>t in i?g(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n,o=(i,t,n)=>f(i,typeof t!="symbol"?t+"":t,n);function a(i){return typeof i=="number"?`${i}px`:i}class e extends m.BaseModifier{constructor(t){super(t),o(this,"type","margin"),o(this,"priority",50)}apply(t,n){if(!n.element)return;const r=this.computeMarginStyles(this.properties);this.applyStyles(n.element,r)}computeMarginStyles(t){const n={};if("all"in t&&t.all!==void 0)n.margin=a(t.all);else{if("vertical"in t&&t.vertical!==void 0){const r=a(t.vertical);n.marginTop=r,n.marginBottom=r}if("horizontal"in t&&t.horizontal!==void 0){const r=a(t.horizontal);n.marginLeft=r,n.marginRight=r}"top"in t&&t.top!==void 0&&(n.marginTop=a(t.top)),"right"in t&&t.right!==void 0&&(n.marginRight=a(t.right)),"bottom"in t&&t.bottom!==void 0&&(n.marginBottom=a(t.bottom)),"left"in t&&t.left!==void 0&&(n.marginLeft=a(t.left))}return n}}function l(i){return typeof i=="number"||typeof i=="string"?new e({all:i}):new e(i)}function u(i){return new e({top:i})}function c(i){return new e({bottom:i})}function d(i){return new e({horizontal:i})}function h(i){return new e({vertical:i})}function v(i){return new e({left:i})}function b(i){return new e({right:i})}exports.MarginModifier=e;exports.margin=l;exports.marginBottom=c;exports.marginHorizontal=d;exports.marginLeft=v;exports.marginRight=b;exports.marginTop=u;exports.marginVertical=h;
|
|
2
|
-
//# sourceMappingURL=margin.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"margin.cjs","sources":["../../src/modifiers/margin.ts"],"sourcesContent":["/**\n * Margin Modifier - spacing around elements\n *\n * Provides a unified interface for setting element margins\n * with support for shorthand and directional properties.\n */\n\nimport type { DOMNode } from '../runtime/types'\nimport { BaseModifier } from './base'\nimport type { ModifierContext, ReactiveModifierProps } from './types'\n\n// CSS-compatible margin values\nexport type MarginValue = number | string\n\n// Type-safe options with conflict prevention\nexport type MarginOptions =\n | {\n all: MarginValue\n vertical?: never\n horizontal?: never\n top?: never\n right?: never\n bottom?: never\n left?: never\n }\n | {\n all?: never\n vertical: MarginValue\n horizontal: MarginValue\n top?: never\n right?: never\n bottom?: never\n left?: never\n }\n | {\n all?: never\n vertical?: MarginValue\n horizontal?: MarginValue\n top?: MarginValue\n right?: MarginValue\n bottom?: MarginValue\n left?: MarginValue\n }\n\nexport type ReactiveMarginOptions = ReactiveModifierProps<MarginOptions>\n\n// Helper function to format margin values - moved to outer scope\nfunction formatMarginValue(value: MarginValue): string {\n if (typeof value === 'number') {\n return `${value}px`\n }\n return value // Already a string (e.g., 'auto', '1rem', '50%')\n}\n\nexport class MarginModifier extends BaseModifier<MarginOptions> {\n readonly type = 'margin'\n readonly priority = 50 // Priority 50 for spacing\n\n constructor(options: ReactiveMarginOptions) {\n // Preserve reactive values; BaseModifier.applyStyles will create effects\n super(options as unknown as MarginOptions)\n }\n\n apply(_node: DOMNode, context: ModifierContext): DOMNode | undefined {\n if (!context.element) return\n\n const styles = this.computeMarginStyles(this.properties)\n this.applyStyles(context.element, styles)\n \n return undefined\n }\n\n private computeMarginStyles(props: MarginOptions) {\n const styles: Record<string, any> = {}\n\n if ('all' in props && props.all !== undefined) {\n // All sides - highest priority\n styles.margin = formatMarginValue(props.all)\n } else {\n // Handle shorthand properties first\n if ('vertical' in props && props.vertical !== undefined) {\n const value = formatMarginValue(props.vertical)\n styles.marginTop = value\n styles.marginBottom = value\n }\n if ('horizontal' in props && props.horizontal !== undefined) {\n const value = formatMarginValue(props.horizontal)\n styles.marginLeft = value\n styles.marginRight = value\n }\n\n // Handle specific sides (override shorthand if specified)\n if ('top' in props && props.top !== undefined) {\n styles.marginTop = formatMarginValue(props.top)\n }\n if ('right' in props && props.right !== undefined) {\n styles.marginRight = formatMarginValue(props.right)\n }\n if ('bottom' in props && props.bottom !== undefined) {\n styles.marginBottom = formatMarginValue(props.bottom)\n }\n if ('left' in props && props.left !== undefined) {\n styles.marginLeft = formatMarginValue(props.left)\n }\n }\n\n return styles\n }\n}\n\n/**\n * Create a margin modifier with flexible options\n *\n * @example\n * ```typescript\n * // All sides equal\n * .margin({ all: 16 })\n * .margin({ all: 'auto' })\n *\n * // Symmetric spacing\n * .margin({ vertical: 12, horizontal: 8 })\n * .margin({ vertical: 30, horizontal: 'auto' })\n *\n * // Specific sides\n * .margin({ top: 8, bottom: 16, left: 12, right: 12 })\n * .margin({ top: 8, bottom: 16, left: 'auto', right: 'auto' })\n *\n * // Mixed approach\n * .margin({ horizontal: 16, top: 8, bottom: 24 })\n * .margin({ horizontal: 'auto', top: '1rem', bottom: '2rem' })\n * ```\n */\nexport function margin(options: ReactiveMarginOptions): MarginModifier\nexport function margin(all: MarginValue): MarginModifier\nexport function margin(optionsOrAll: ReactiveMarginOptions | MarginValue): MarginModifier {\n if (typeof optionsOrAll === 'number' || typeof optionsOrAll === 'string') {\n return new MarginModifier({ all: optionsOrAll })\n }\n return new MarginModifier(optionsOrAll)\n}\n\n/**\n * Convenience function for top margin only\n *\n * @example\n * ```typescript\n * .marginTop(16)\n * .marginTop('auto')\n * ```\n */\nexport function marginTop(value: MarginValue): MarginModifier {\n return new MarginModifier({ top: value })\n}\n\n/**\n * Convenience function for bottom margin only\n *\n * @example\n * ```typescript\n * .marginBottom(24)\n * .marginBottom('auto')\n * ```\n */\nexport function marginBottom(value: MarginValue): MarginModifier {\n return new MarginModifier({ bottom: value })\n}\n\n/**\n * Convenience function for left and right margins\n *\n * @example\n * ```typescript\n * .marginHorizontal(20)\n * .marginHorizontal('auto')\n * ```\n */\nexport function marginHorizontal(value: MarginValue): MarginModifier {\n return new MarginModifier({ horizontal: value })\n}\n\n/**\n * Convenience function for top and bottom margins\n *\n * @example\n * ```typescript\n * .marginVertical(16)\n * .marginVertical('auto')\n * ```\n */\nexport function marginVertical(value: MarginValue): MarginModifier {\n return new MarginModifier({ vertical: value })\n}\n\n/**\n * Convenience function for left margin only\n *\n * @example\n * ```typescript\n * .marginLeft(12)\n * .marginLeft('auto')\n * ```\n */\nexport function marginLeft(value: MarginValue): MarginModifier {\n return new MarginModifier({ left: value })\n}\n\n/**\n * Convenience function for right margin only\n *\n * @example\n * ```typescript\n * .marginRight(12)\n * .marginRight('auto')\n * ```\n */\nexport function marginRight(value: MarginValue): MarginModifier {\n return new MarginModifier({ right: value })\n}\n"],"names":["formatMarginValue","value","MarginModifier","BaseModifier","options","__publicField","_node","context","styles","props","margin","optionsOrAll","marginTop","marginBottom","marginHorizontal","marginVertical","marginLeft","marginRight"],"mappings":"0QA+CA,SAASA,EAAkBC,EAA4B,CACrD,OAAI,OAAOA,GAAU,SACZ,GAAGA,CAAK,KAEVA,CACT,CAEO,MAAMC,UAAuBC,EAAAA,YAA4B,CAI9D,YAAYC,EAAgC,CAE1C,MAAMA,CAAmC,EAL3CC,EAAA,KAAS,OAAO,QAAA,EAChBA,EAAA,KAAS,WAAW,EAAA,CAKpB,CAEA,MAAMC,EAAgBC,EAA+C,CACnE,GAAI,CAACA,EAAQ,QAAS,OAEtB,MAAMC,EAAS,KAAK,oBAAoB,KAAK,UAAU,EACvD,KAAK,YAAYD,EAAQ,QAASC,CAAM,CAG1C,CAEQ,oBAAoBC,EAAsB,CAChD,MAAMD,EAA8B,CAAA,EAEpC,GAAI,QAASC,GAASA,EAAM,MAAQ,OAElCD,EAAO,OAASR,EAAkBS,EAAM,GAAG,MACtC,CAEL,GAAI,aAAcA,GAASA,EAAM,WAAa,OAAW,CACvD,MAAMR,EAAQD,EAAkBS,EAAM,QAAQ,EAC9CD,EAAO,UAAYP,EACnBO,EAAO,aAAeP,CACxB,CACA,GAAI,eAAgBQ,GAASA,EAAM,aAAe,OAAW,CAC3D,MAAMR,EAAQD,EAAkBS,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