@tachui/core 0.7.1-alpha → 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 +2 -2
- package/dist/bundles/common.d.ts +1 -1
- package/dist/bundles/common.d.ts.map +1 -1
- package/dist/bundles/minimal.d.ts +2 -16
- 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 +403 -827
- package/dist/compiler/advanced-parser.d.ts.map +1 -1
- package/dist/compiler/index.js +14 -8
- 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 -4167
- 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 +84 -0
- package/dist/css-classes/index.js +176 -0
- package/dist/{dom-bridge-Cx-s6Ihx.js → dom-bridge-CAa1N2zX.js} +28 -28
- package/dist/{effect-CytAc9em.js → effect-B9Knft0b.js} +3 -3
- package/dist/essential.js +395 -825
- 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 +395 -825
- package/dist/minimal-prod.js +101 -155
- package/dist/minimal.js +104 -170
- 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 +487 -0
- package/dist/modifiers/builder.d.ts +103 -195
- package/dist/modifiers/builder.d.ts.map +1 -1
- package/dist/modifiers/builder.js +9 -0
- 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 +10 -0
- package/dist/modifiers/types.d.ts +39 -211
- package/dist/modifiers/types.d.ts.map +1 -1
- package/dist/modifiers/types.js +4 -0
- 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 +147 -297
- 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 +96 -95
- package/dist/reactive/types.js +4 -0
- package/dist/runtime/dom-bridge.js +5 -5
- 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 -8
- package/dist/runtime/semantic-role-manager.d.ts.map +1 -1
- package/dist/runtime/types.js +1 -0
- package/dist/{scheduler-7SvC3a21.js → scheduler-BKeqwrYE.js} +130 -130
- 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 +609 -6470
- 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 +41 -5
- package/dist/ScrollView-h-6wYMAm.js +0 -515
- package/dist/Spacer-BbteDQ9I.js +0 -5337
- package/dist/binding-CmdpowkI.js +0 -2276
- package/dist/components/BasicInput.d.ts +0 -116
- package/dist/components/BasicInput.d.ts.map +0 -1
- package/dist/components/Button.d.ts +0 -252
- package/dist/components/Button.d.ts.map +0 -1
- package/dist/components/Divider.d.ts +0 -141
- package/dist/components/Divider.d.ts.map +0 -1
- package/dist/components/EnhancedLink.d.ts +0 -365
- package/dist/components/EnhancedLink.d.ts.map +0 -1
- package/dist/components/Form.d.ts +0 -141
- package/dist/components/Form.d.ts.map +0 -1
- package/dist/components/Grid.d.ts +0 -698
- package/dist/components/Grid.d.ts.map +0 -1
- package/dist/components/GridResponsive.d.ts +0 -214
- package/dist/components/GridResponsive.d.ts.map +0 -1
- package/dist/components/Image.d.ts +0 -162
- package/dist/components/Image.d.ts.map +0 -1
- package/dist/components/List.d.ts +0 -287
- package/dist/components/List.d.ts.map +0 -1
- package/dist/components/Menu.d.ts +0 -159
- package/dist/components/Menu.d.ts.map +0 -1
- package/dist/components/Picker.d.ts +0 -153
- package/dist/components/Picker.d.ts.map +0 -1
- package/dist/components/ScrollView.d.ts +0 -222
- package/dist/components/ScrollView.d.ts.map +0 -1
- package/dist/components/Section.d.ts +0 -153
- package/dist/components/Section.d.ts.map +0 -1
- package/dist/components/Show.d.ts +0 -64
- package/dist/components/Show.d.ts.map +0 -1
- package/dist/components/Spacer.d.ts +0 -35
- package/dist/components/Spacer.d.ts.map +0 -1
- package/dist/components/Text.d.ts +0 -242
- package/dist/components/Text.d.ts.map +0 -1
- package/dist/components/Toggle.d.ts +0 -207
- package/dist/components/Toggle.d.ts.map +0 -1
- package/dist/concatenated-component-DPcl2TEO.js +0 -6779
- package/dist/context--zQFIImS.js +0 -283
- package/dist/debug/index.d.ts +0 -61
- package/dist/debug/index.d.ts.map +0 -1
- package/dist/debug.js +0 -178
- 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/index-Nfi2SBQh.js +0 -3268
- package/dist/modifiers/attributes.d.ts +0 -203
- package/dist/modifiers/attributes.d.ts.map +0 -1
- package/dist/modifiers/backdrop.d.ts +0 -59
- package/dist/modifiers/backdrop.d.ts.map +0 -1
- package/dist/modifiers/border.d.ts +0 -217
- package/dist/modifiers/border.d.ts.map +0 -1
- package/dist/modifiers/effects.d.ts +0 -159
- package/dist/modifiers/effects.d.ts.map +0 -1
- package/dist/modifiers/elements.d.ts +0 -240
- package/dist/modifiers/elements.d.ts.map +0 -1
- package/dist/modifiers/filters.d.ts +0 -275
- package/dist/modifiers/filters.d.ts.map +0 -1
- package/dist/modifiers/flexbox.d.ts +0 -82
- package/dist/modifiers/flexbox.d.ts.map +0 -1
- package/dist/modifiers/font.d.ts +0 -71
- package/dist/modifiers/font.d.ts.map +0 -1
- package/dist/modifiers/grid.d.ts +0 -92
- package/dist/modifiers/grid.d.ts.map +0 -1
- package/dist/modifiers/margin.d.ts +0 -128
- package/dist/modifiers/margin.d.ts.map +0 -1
- package/dist/modifiers/padding.d.ts +0 -204
- package/dist/modifiers/padding.d.ts.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/breakpoints.d.ts +0 -81
- package/dist/modifiers/responsive/breakpoints.d.ts.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/dev-tools.d.ts +0 -107
- package/dist/modifiers/responsive/dev-tools.d.ts.map +0 -1
- package/dist/modifiers/responsive/index.d.ts +0 -29
- package/dist/modifiers/responsive/index.d.ts.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/performance.d.ts +0 -130
- package/dist/modifiers/responsive/performance.d.ts.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-modifier.d.ts +0 -123
- package/dist/modifiers/responsive/responsive-modifier.d.ts.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/utilities.d.ts +0 -149
- package/dist/modifiers/responsive/utilities.d.ts.map +0 -1
- package/dist/modifiers/scroll.d.ts +0 -143
- package/dist/modifiers/scroll.d.ts.map +0 -1
- package/dist/modifiers/shadows.d.ts +0 -114
- package/dist/modifiers/shadows.d.ts.map +0 -1
- package/dist/modifiers/size.d.ts +0 -113
- package/dist/modifiers/size.d.ts.map +0 -1
- package/dist/modifiers/text.d.ts +0 -147
- package/dist/modifiers/text.d.ts.map +0 -1
- package/dist/modifiers/transformations.d.ts +0 -329
- package/dist/modifiers/transformations.d.ts.map +0 -1
- package/dist/modifiers/transitions.d.ts +0 -98
- package/dist/modifiers/transitions.d.ts.map +0 -1
- package/dist/modifiers/typography.d.ts +0 -192
- package/dist/modifiers/typography.d.ts.map +0 -1
- package/dist/modifiers/utility.d.ts +0 -69
- package/dist/modifiers/utility.d.ts.map +0 -1
- package/dist/modifiers/utils.d.ts.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/runtime/dev-tools.d.ts +0 -240
- package/dist/runtime/dev-tools.d.ts.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/error-boundary.d.ts +0 -302
- package/dist/runtime/error-boundary.d.ts.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-reporting.d.ts +0 -287
- package/dist/runtime/error-reporting.d.ts.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/performance.d.ts +0 -217
- package/dist/runtime/performance.d.ts.map +0 -1
- package/dist/sui-compat.d.ts +0 -110
- package/dist/sui-compat.d.ts.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/build-time/detection.d.ts +0 -32
- package/dist/validation/build-time/detection.d.ts.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/plugins.d.ts +0 -75
- package/dist/validation/build-time/plugins.d.ts.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/transformer.d.ts +0 -23
- package/dist/validation/build-time/transformer.d.ts.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.d.ts +0 -160
- package/dist/validation/comprehensive.d.ts.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/developer-experience.d.ts +0 -243
- package/dist/validation/developer-experience.d.ts.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/enhanced-runtime.d.ts +0 -279
- package/dist/validation/enhanced-runtime.d.ts.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/ide-integration.d.ts +0 -328
- package/dist/validation/ide-integration.d.ts.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/production-bypass.d.ts +0 -175
- package/dist/validation/production-bypass.d.ts.map +0 -1
- package/dist/validation/simple.d.ts +0 -111
- package/dist/validation/simple.d.ts.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/components.d.ts +0 -131
- package/dist/viewport/components.d.ts.map +0 -1
- package/dist/viewport/environment.d.ts +0 -75
- package/dist/viewport/environment.d.ts.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 -2085
- package/dist/viewport/platform-detection.d.ts +0 -59
- package/dist/viewport/platform-detection.d.ts.map +0 -1
- package/dist/viewport/types.d.ts +0 -301
- package/dist/viewport/types.d.ts.map +0 -1
- package/dist/viewport/viewport-manager.d.ts +0 -118
- package/dist/viewport/viewport-manager.d.ts.map +0 -1
|
@@ -19,11 +19,54 @@ export type InfinityValue = typeof infinity;
|
|
|
19
19
|
*/
|
|
20
20
|
export type Dimension = number | string | InfinityValue;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
* Allows usage like: import { SUI } from '@tachui/core'; SUI.infinity
|
|
22
|
+
* Layout patterns namespace for common SwiftUI-style layouts
|
|
24
23
|
*/
|
|
25
|
-
export declare const
|
|
26
|
-
|
|
24
|
+
export declare const Layout: {
|
|
25
|
+
/**
|
|
26
|
+
* Full-width button pattern - common in forms and action sheets
|
|
27
|
+
*/
|
|
28
|
+
readonly fullWidthButton: {
|
|
29
|
+
readonly maxWidth: typeof infinity;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Sidebar layout pattern - fixed width with full height
|
|
33
|
+
*/
|
|
34
|
+
readonly sidebar: (width?: number | string) => {
|
|
35
|
+
width: string | number;
|
|
36
|
+
maxHeight: symbol;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Header/footer pattern - fixed height with full width
|
|
40
|
+
*/
|
|
41
|
+
readonly header: (height?: number | string) => {
|
|
42
|
+
height: string | number;
|
|
43
|
+
maxWidth: symbol;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Content area pattern - fills remaining space with constraints
|
|
47
|
+
*/
|
|
48
|
+
readonly content: (maxWidth?: number | string) => {
|
|
49
|
+
width: symbol;
|
|
50
|
+
height: symbol;
|
|
51
|
+
maxWidth: string | number | undefined;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Card layout pattern - responsive with sensible constraints
|
|
55
|
+
*/
|
|
56
|
+
readonly card: {
|
|
57
|
+
readonly width: typeof infinity;
|
|
58
|
+
readonly height: typeof infinity;
|
|
59
|
+
readonly minWidth: 320;
|
|
60
|
+
readonly maxWidth: 800;
|
|
61
|
+
readonly minHeight: 200;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Modal overlay pattern - full screen coverage
|
|
65
|
+
*/
|
|
66
|
+
readonly overlay: {
|
|
67
|
+
readonly width: "100vw";
|
|
68
|
+
readonly height: "100vh";
|
|
69
|
+
};
|
|
27
70
|
};
|
|
28
71
|
/**
|
|
29
72
|
* Helper function to check if a value is the infinity constant
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/constants/layout.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,QAAQ,eAAgC,CAAA;AAErD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,QAAQ,CAAA;AAE3C;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,CAAA;AAEvD
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/constants/layout.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,QAAQ,eAAgC,CAAA;AAErD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,QAAQ,CAAA;AAE3C;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,CAAA;AAEvD;;GAEG;AACH,eAAO,MAAM,MAAM;IACjB;;OAEG;;;;IAGH;;OAEG;+BACc,MAAM,GAAG,MAAM;;;;IAKhC;;OAEG;+BACc,MAAM,GAAG,MAAM;;;;IAKhC;;OAEG;kCACkB,MAAM,GAAG,MAAM;;;;;IAMpC;;OAEG;;;;;;;;IASH;;OAEG;;;;;CAEK,CAAA;AAEV;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,aAAa,CAE7D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,SAAS,GAAG,SAAS,GAC3B,MAAM,GAAG,SAAS,CAepB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAM1D;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAC/C,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB,GAAG;IACF,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC,CAgCA"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
const i = Symbol.for("tachui.infinity"), h = {
|
|
2
|
+
/**
|
|
3
|
+
* Full-width button pattern - common in forms and action sheets
|
|
4
|
+
*/
|
|
5
|
+
fullWidthButton: { maxWidth: i },
|
|
6
|
+
/**
|
|
7
|
+
* Sidebar layout pattern - fixed width with full height
|
|
8
|
+
*/
|
|
9
|
+
sidebar: (t = 250) => ({
|
|
10
|
+
width: t,
|
|
11
|
+
maxHeight: i
|
|
12
|
+
}),
|
|
13
|
+
/**
|
|
14
|
+
* Header/footer pattern - fixed height with full width
|
|
15
|
+
*/
|
|
16
|
+
header: (t = 60) => ({
|
|
17
|
+
height: t,
|
|
18
|
+
maxWidth: i
|
|
19
|
+
}),
|
|
20
|
+
/**
|
|
21
|
+
* Content area pattern - fills remaining space with constraints
|
|
22
|
+
*/
|
|
23
|
+
content: (t) => ({
|
|
24
|
+
width: i,
|
|
25
|
+
height: i,
|
|
26
|
+
maxWidth: t
|
|
27
|
+
}),
|
|
28
|
+
/**
|
|
29
|
+
* Card layout pattern - responsive with sensible constraints
|
|
30
|
+
*/
|
|
31
|
+
card: {
|
|
32
|
+
width: i,
|
|
33
|
+
height: i,
|
|
34
|
+
minWidth: 320,
|
|
35
|
+
maxWidth: 800,
|
|
36
|
+
minHeight: 200
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* Modal overlay pattern - full screen coverage
|
|
40
|
+
*/
|
|
41
|
+
overlay: { width: "100vw", height: "100vh" }
|
|
42
|
+
};
|
|
43
|
+
function o(t) {
|
|
44
|
+
return t === i;
|
|
45
|
+
}
|
|
46
|
+
function f(t) {
|
|
47
|
+
if (t !== void 0)
|
|
48
|
+
return t === i ? "100%" : typeof t == "number" ? `${t}px` : t;
|
|
49
|
+
}
|
|
50
|
+
function a() {
|
|
51
|
+
return {
|
|
52
|
+
flexGrow: "1",
|
|
53
|
+
flexShrink: "1",
|
|
54
|
+
flexBasis: "0%"
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function d(t) {
|
|
58
|
+
const r = t.width === i || t.maxWidth === i, e = t.height === i || t.maxHeight === i, n = {};
|
|
59
|
+
return r && Object.assign(n, {
|
|
60
|
+
flexGrow: "1 !important",
|
|
61
|
+
flexShrink: "1 !important",
|
|
62
|
+
flexBasis: "0% !important",
|
|
63
|
+
alignSelf: "stretch !important"
|
|
64
|
+
// Override parent's align-items constraint
|
|
65
|
+
}), e && Object.assign(n, {
|
|
66
|
+
flexGrow: "1 !important",
|
|
67
|
+
flexShrink: "1 !important",
|
|
68
|
+
flexBasis: "0% !important",
|
|
69
|
+
alignSelf: "stretch !important"
|
|
70
|
+
// Override parent's align-items constraint
|
|
71
|
+
}), {
|
|
72
|
+
expandWidth: r,
|
|
73
|
+
expandHeight: e,
|
|
74
|
+
cssProps: n
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
export {
|
|
78
|
+
h as Layout,
|
|
79
|
+
f as dimensionToCSS,
|
|
80
|
+
i as infinity,
|
|
81
|
+
a as infinityToFlexCSS,
|
|
82
|
+
o as isInfinity,
|
|
83
|
+
d as shouldExpandForInfinity
|
|
84
|
+
};
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { c as l } from "../component-base-x2XmHFjy.js";
|
|
2
|
+
import { C as j, b, a as x, g as M } from "../component-base-x2XmHFjy.js";
|
|
3
|
+
import { J as n } from "../scheduler-BKeqwrYE.js";
|
|
4
|
+
import { c as o } from "../effect-B9Knft0b.js";
|
|
5
|
+
function m() {
|
|
6
|
+
return {
|
|
7
|
+
combineClasses(...t) {
|
|
8
|
+
const s = [];
|
|
9
|
+
return t.forEach((e) => {
|
|
10
|
+
if (e) {
|
|
11
|
+
const a = l.processClasses(e);
|
|
12
|
+
s.push(...a);
|
|
13
|
+
}
|
|
14
|
+
}), l.deduplicateClasses(s).join(" ");
|
|
15
|
+
},
|
|
16
|
+
conditionalClasses(t) {
|
|
17
|
+
return Object.entries(t).filter(([s, e]) => e).map(([s, e]) => s);
|
|
18
|
+
},
|
|
19
|
+
mergeClassProps(...t) {
|
|
20
|
+
const s = [];
|
|
21
|
+
return t.forEach((e) => {
|
|
22
|
+
if (e?.css) {
|
|
23
|
+
const a = l.processClasses(e.css);
|
|
24
|
+
s.push(...a);
|
|
25
|
+
}
|
|
26
|
+
}), s.length === 0 ? {} : {
|
|
27
|
+
css: l.deduplicateClasses(s)
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
extractClasses(t) {
|
|
31
|
+
return l.processClasses(t);
|
|
32
|
+
},
|
|
33
|
+
validateClassNames(t) {
|
|
34
|
+
const s = [], e = [];
|
|
35
|
+
return t.forEach((a) => {
|
|
36
|
+
l.sanitizeClassName(a) === a.toLowerCase() ? s.push(a) : e.push(a);
|
|
37
|
+
}), { valid: s, invalid: e };
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
class f {
|
|
42
|
+
/**
|
|
43
|
+
* Apply CSS classes to a DOM element
|
|
44
|
+
*/
|
|
45
|
+
applyCSSClasses(s, e) {
|
|
46
|
+
if (!e) return;
|
|
47
|
+
const r = (Array.isArray(e) ? e : [e]).filter(Boolean);
|
|
48
|
+
r.length > 0 && (s.className = r.join(" "));
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Apply reactive CSS classes to a DOM element
|
|
52
|
+
*/
|
|
53
|
+
applyReactiveCSSClasses(s, e) {
|
|
54
|
+
const a = require("../reactive").createEffect;
|
|
55
|
+
return a(() => {
|
|
56
|
+
const c = e();
|
|
57
|
+
s.className = c;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Update CSS classes on an existing element
|
|
62
|
+
*/
|
|
63
|
+
updateCSSClasses(s, e) {
|
|
64
|
+
this.applyCSSClasses(s, e);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Remove CSS classes from an element
|
|
68
|
+
*/
|
|
69
|
+
removeCSSClasses(s, e) {
|
|
70
|
+
if (!e) return;
|
|
71
|
+
const a = Array.isArray(e) ? e : [e], c = s.className.split(" ").filter((i) => !a.includes(i));
|
|
72
|
+
s.className = c.join(" ");
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Merge CSS classes with existing classes on an element
|
|
76
|
+
*/
|
|
77
|
+
mergeCSSClasses(s, e) {
|
|
78
|
+
if (!e) return;
|
|
79
|
+
const a = Array.isArray(e) ? e : [e], c = [...s.className ? s.className.split(" ") : [], ...a.filter(Boolean)], i = [...new Set(c)];
|
|
80
|
+
s.className = i.join(" ");
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const g = new f();
|
|
84
|
+
function h(t, s = {}, e = [], a) {
|
|
85
|
+
const c = {
|
|
86
|
+
...{
|
|
87
|
+
type: "element",
|
|
88
|
+
tag: t,
|
|
89
|
+
props: s,
|
|
90
|
+
children: e
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
return a && (Array.isArray(a) ? c.cssClasses = a : c.reactiveClasses = a), c;
|
|
94
|
+
}
|
|
95
|
+
function N(t) {
|
|
96
|
+
return {
|
|
97
|
+
static: t.cssClasses || [],
|
|
98
|
+
reactive: t.reactiveClasses
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
const C = {
|
|
102
|
+
/**
|
|
103
|
+
* Apply CSS classes to an element during creation
|
|
104
|
+
*/
|
|
105
|
+
applyCSSClasses(t, s) {
|
|
106
|
+
if (s.cssClasses && s.cssClasses.length > 0) {
|
|
107
|
+
const e = s.cssClasses.join(" ");
|
|
108
|
+
t.className = e;
|
|
109
|
+
}
|
|
110
|
+
if (s.reactiveClasses && n(s.reactiveClasses)) {
|
|
111
|
+
const e = s.reactiveClasses();
|
|
112
|
+
t.className = e, o(() => {
|
|
113
|
+
const a = s.reactiveClasses();
|
|
114
|
+
t.className = a;
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
/**
|
|
119
|
+
* Process className prop and CSS classes together
|
|
120
|
+
*/
|
|
121
|
+
processElementClasses(t, s) {
|
|
122
|
+
let e = [];
|
|
123
|
+
if (s.props?.className) {
|
|
124
|
+
const a = typeof s.props.className == "string" ? s.props.className.split(" ").filter(Boolean) : [];
|
|
125
|
+
e.push(...a);
|
|
126
|
+
}
|
|
127
|
+
if (s.cssClasses && e.push(...s.cssClasses), e.length > 0) {
|
|
128
|
+
const a = [...new Set(e)];
|
|
129
|
+
t.className = a.join(" ");
|
|
130
|
+
}
|
|
131
|
+
s.reactiveClasses && n(s.reactiveClasses) && o(() => {
|
|
132
|
+
const a = s.reactiveClasses();
|
|
133
|
+
if (e.length > 0) {
|
|
134
|
+
const r = e.join(" ");
|
|
135
|
+
t.className = `${r} ${a}`.trim();
|
|
136
|
+
} else
|
|
137
|
+
t.className = a;
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
function y(t) {
|
|
142
|
+
const s = t.createElement.bind(t), e = (a) => {
|
|
143
|
+
const r = s(a), c = a;
|
|
144
|
+
return (c.cssClasses || c.reactiveClasses) && C.processElementClasses(r, c), r;
|
|
145
|
+
};
|
|
146
|
+
return t.createElement = e, Object.assign(t, C);
|
|
147
|
+
}
|
|
148
|
+
function v(t, s = {}, e = [], a) {
|
|
149
|
+
const r = {
|
|
150
|
+
type: "element",
|
|
151
|
+
tag: t,
|
|
152
|
+
props: s,
|
|
153
|
+
children: e
|
|
154
|
+
};
|
|
155
|
+
return a && (Array.isArray(a) ? r.cssClasses = a : r.reactiveClasses = a), r;
|
|
156
|
+
}
|
|
157
|
+
function A(t) {
|
|
158
|
+
const s = t;
|
|
159
|
+
return !!(s.cssClasses || s.reactiveClasses);
|
|
160
|
+
}
|
|
161
|
+
export {
|
|
162
|
+
j as CSSClassManager,
|
|
163
|
+
b as ComponentWithCSSClasses,
|
|
164
|
+
f as DOMCSSClassApplicator,
|
|
165
|
+
x as configureCSSClasses,
|
|
166
|
+
v as createCSSClassDOMNode,
|
|
167
|
+
m as createCSSClassUtilities,
|
|
168
|
+
h as createDOMNodeWithClasses,
|
|
169
|
+
l as cssClassManager,
|
|
170
|
+
C as cssClassRendererMixin,
|
|
171
|
+
g as domCSSClassApplicator,
|
|
172
|
+
y as enhanceRendererWithCSSClasses,
|
|
173
|
+
N as extractCSSClasses,
|
|
174
|
+
M as getCSSClassConfig,
|
|
175
|
+
A as hasCSSClassSupport
|
|
176
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { W as g, k as x, l as b } from "./scheduler-BKeqwrYE.js";
|
|
2
|
+
import { D as L } from "./concatenated-component-ByPl3_FF.js";
|
|
3
3
|
var S = Object.defineProperty, D = (e, t, o) => t in e ? S(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, l = (e, t, o) => D(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
-
const d = Symbol("TachUI.ComponentContext"),
|
|
4
|
+
const d = Symbol("TachUI.ComponentContext"), k = Symbol("TachUI.Environment");
|
|
5
5
|
let u = null;
|
|
6
6
|
class O {
|
|
7
7
|
constructor(t, o) {
|
|
@@ -119,7 +119,7 @@ function A(e, t) {
|
|
|
119
119
|
u === e && (u = o), n && (o ? n.context.set(d, o) : n.context.delete(d));
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function B(e, t) {
|
|
123
123
|
return (o) => {
|
|
124
124
|
const n = t || `component-${Math.random().toString(36).substr(2, 9)}`, r = v(n, u || void 0);
|
|
125
125
|
return A(r, () => {
|
|
@@ -135,10 +135,10 @@ function P(e, t) {
|
|
|
135
135
|
name: e
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function W(e, t) {
|
|
139
139
|
M().provide(e.symbol, t);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function j(e) {
|
|
142
142
|
const o = M().consume(e.symbol);
|
|
143
143
|
if (o !== void 0)
|
|
144
144
|
return o;
|
|
@@ -148,7 +148,7 @@ function z(e) {
|
|
|
148
148
|
`Environment value for '${e.name}' not found. Make sure to provide this value higher in the component hierarchy.`
|
|
149
149
|
);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
151
|
+
const z = {
|
|
152
152
|
getCurrentContext: () => u,
|
|
153
153
|
getContextHierarchy: () => {
|
|
154
154
|
const e = [];
|
|
@@ -162,7 +162,7 @@ const V = {
|
|
|
162
162
|
return t ? t.getMetrics() : null;
|
|
163
163
|
}
|
|
164
164
|
}, _ = new L(), p = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Set();
|
|
165
|
-
function
|
|
165
|
+
function V(e) {
|
|
166
166
|
e._enhancedLifecycle && C.add(e);
|
|
167
167
|
}
|
|
168
168
|
function F() {
|
|
@@ -343,7 +343,7 @@ function K(e, t) {
|
|
|
343
343
|
}
|
|
344
344
|
return o;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function G(e, t) {
|
|
347
347
|
const o = f.get(e);
|
|
348
348
|
if (!o) {
|
|
349
349
|
console.warn("Attempted to update unmounted component");
|
|
@@ -353,7 +353,7 @@ function Q(e, t) {
|
|
|
353
353
|
const n = o[0]?.parentElement;
|
|
354
354
|
n && (N(e, n), E(e, n));
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function J(e) {
|
|
357
357
|
let t = e;
|
|
358
358
|
for (; t; ) {
|
|
359
359
|
const o = p.get(t);
|
|
@@ -362,7 +362,7 @@ function G(e) {
|
|
|
362
362
|
t = t.parentElement;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
const
|
|
365
|
+
const Q = {
|
|
366
366
|
getMountedComponents: () => Array.from(p.entries()),
|
|
367
367
|
getComponentElements: (e) => f.get(e),
|
|
368
368
|
isComponentMounted: (e) => e.mounted || !1,
|
|
@@ -383,24 +383,24 @@ const J = {
|
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
385
|
export {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
386
|
+
z as C,
|
|
387
|
+
Q as D,
|
|
388
|
+
k as E,
|
|
389
|
+
d as a,
|
|
390
|
+
v as b,
|
|
391
|
+
j as c,
|
|
392
|
+
P as d,
|
|
393
|
+
A as e,
|
|
394
|
+
J as f,
|
|
395
|
+
M as g,
|
|
396
|
+
K as h,
|
|
397
|
+
E as i,
|
|
398
|
+
I as j,
|
|
399
|
+
G as k,
|
|
400
400
|
q as m,
|
|
401
|
-
|
|
402
|
-
|
|
401
|
+
W as p,
|
|
402
|
+
V as r,
|
|
403
403
|
y as s,
|
|
404
404
|
N as u,
|
|
405
|
-
|
|
405
|
+
B as w
|
|
406
406
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Y as o, W as f } from "./scheduler-BKeqwrYE.js";
|
|
2
2
|
function i(e, n = {}) {
|
|
3
3
|
const c = f();
|
|
4
4
|
let r, t = !0;
|
|
@@ -56,8 +56,8 @@ function y(e) {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
p as a,
|
|
60
|
+
d as b,
|
|
61
61
|
i as c,
|
|
62
62
|
b as d,
|
|
63
63
|
v as e,
|