@tachui/modifiers 0.8.0-alpha → 0.8.5-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 +19 -9
- package/dist/animation/index.d.ts +11 -0
- package/dist/animation/index.d.ts.map +1 -0
- package/dist/appearance/background.d.ts +23 -6
- package/dist/appearance/background.d.ts.map +1 -1
- package/dist/appearance/border.d.ts +2 -2
- package/dist/appearance/border.d.ts.map +1 -1
- package/dist/appearance/clip-shape.d.ts +2 -2
- package/dist/appearance/clip-shape.d.ts.map +1 -1
- package/dist/appearance/clipped.d.ts +2 -2
- package/dist/appearance/clipped.d.ts.map +1 -1
- package/dist/appearance/foreground.d.ts +14 -5
- package/dist/appearance/foreground.d.ts.map +1 -1
- package/dist/appearance/index.js +11 -12
- package/dist/appearance/reactive-factories.d.ts +20 -0
- package/dist/appearance/reactive-factories.d.ts.map +1 -0
- package/dist/attributes/accessibility.d.ts +10 -0
- package/dist/attributes/accessibility.d.ts.map +1 -0
- package/dist/attributes/aria.d.ts +2 -2
- package/dist/attributes/aria.d.ts.map +1 -1
- package/dist/attributes/css-properties.d.ts +2 -2
- package/dist/attributes/css-properties.d.ts.map +1 -1
- package/dist/attributes/html.d.ts +2 -2
- package/dist/attributes/html.d.ts.map +1 -1
- package/dist/attributes/index.d.ts +1 -0
- package/dist/attributes/index.d.ts.map +1 -1
- package/dist/base.d.ts +6 -7
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +9 -840
- package/dist/basic/animation.d.ts +41 -0
- package/dist/basic/animation.d.ts.map +1 -0
- package/dist/basic/base.d.ts +7 -8
- package/dist/basic/base.d.ts.map +1 -1
- package/dist/basic/index.d.ts +19 -2
- package/dist/basic/index.d.ts.map +1 -1
- package/dist/basic/index.js +252 -0
- package/dist/basic/margin.d.ts +2 -2
- package/dist/basic/margin.d.ts.map +1 -1
- package/dist/basic/margin.js +13 -158
- package/dist/basic/padding.d.ts +2 -2
- package/dist/basic/padding.d.ts.map +1 -1
- package/dist/basic/padding.js +13 -153
- package/dist/basic/size.d.ts +2 -2
- package/dist/basic/size.d.ts.map +1 -1
- package/dist/basic/size.js +10 -76
- package/dist/effects/backdrop/index.d.ts +60 -0
- package/dist/effects/backdrop/index.d.ts.map +1 -0
- package/dist/effects/backdrop/index.js +118 -0
- package/dist/effects/effects/index.d.ts +190 -0
- package/dist/effects/effects/index.d.ts.map +1 -0
- package/dist/effects/filters/index.d.ts +297 -0
- package/dist/effects/filters/index.d.ts.map +1 -0
- package/dist/effects/filters/index.js +234 -0
- package/dist/effects/index.d.ts +14 -0
- package/dist/effects/index.d.ts.map +1 -0
- package/dist/effects/index.js +373 -0
- package/dist/effects/internal-exports.d.ts +9 -0
- package/dist/effects/internal-exports.d.ts.map +1 -0
- package/dist/effects/shadows/index.d.ts +316 -0
- package/dist/effects/shadows/index.d.ts.map +1 -0
- package/dist/effects/shadows/index.js +405 -0
- package/dist/effects/transforms/index.d.ts +316 -0
- package/dist/effects/transforms/index.d.ts.map +1 -0
- package/dist/effects/transforms/index.js +193 -0
- package/dist/elements/pseudo-elements.d.ts +2 -2
- package/dist/elements/pseudo-elements.d.ts.map +1 -1
- package/dist/essential-manifest.d.ts +5 -0
- package/dist/essential-manifest.d.ts.map +1 -0
- package/dist/index.d.ts +10 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +273 -881
- package/dist/interaction/allows-hit-testing.d.ts +1 -1
- package/dist/interaction/allows-hit-testing.d.ts.map +1 -1
- package/dist/interaction/dom-events.d.ts +35 -0
- package/dist/interaction/dom-events.d.ts.map +1 -0
- package/dist/interaction/focus-events.d.ts +54 -0
- package/dist/interaction/focus-events.d.ts.map +1 -0
- package/dist/interaction/focusable.d.ts +1 -1
- package/dist/interaction/focusable.d.ts.map +1 -1
- package/dist/interaction/focused.d.ts +1 -1
- package/dist/interaction/focused.d.ts.map +1 -1
- package/dist/interaction/index.d.ts +5 -0
- package/dist/interaction/index.d.ts.map +1 -1
- package/dist/interaction/index.js +75 -28
- package/dist/interaction/keyboard-events.d.ts +69 -0
- package/dist/interaction/keyboard-events.d.ts.map +1 -0
- package/dist/interaction/keyboard-shortcut.d.ts +1 -1
- package/dist/interaction/keyboard-shortcut.d.ts.map +1 -1
- package/dist/interaction/mouse-events.d.ts +125 -0
- package/dist/interaction/mouse-events.d.ts.map +1 -0
- package/dist/interaction/on-continuous-hover.d.ts +1 -1
- package/dist/interaction/on-continuous-hover.d.ts.map +1 -1
- package/dist/interaction/on-hover.d.ts +30 -0
- package/dist/interaction/on-hover.d.ts.map +1 -0
- package/dist/interaction/on-long-press-gesture.d.ts +1 -1
- package/dist/interaction/on-long-press-gesture.d.ts.map +1 -1
- package/dist/interaction/scroll.d.ts +2 -2
- package/dist/interaction/scroll.d.ts.map +1 -1
- package/dist/layout/aspect-ratio.d.ts +2 -2
- package/dist/layout/aspect-ratio.d.ts.map +1 -1
- package/dist/layout/fixed-size.d.ts +2 -2
- package/dist/layout/fixed-size.d.ts.map +1 -1
- package/dist/layout/flexbox.d.ts +2 -2
- package/dist/layout/flexbox.d.ts.map +1 -1
- package/dist/layout/frame.d.ts +13 -0
- package/dist/layout/frame.d.ts.map +1 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.d.ts.map +1 -1
- package/dist/layout/index.js +25 -22
- package/dist/layout/offset.d.ts +2 -2
- package/dist/layout/offset.d.ts.map +1 -1
- package/dist/layout/overlay.d.ts +1 -1
- package/dist/layout/overlay.d.ts.map +1 -1
- package/dist/layout/position.d.ts +2 -2
- package/dist/layout/position.d.ts.map +1 -1
- package/dist/layout/resizable.d.ts +6 -0
- package/dist/layout/resizable.d.ts.map +1 -0
- package/dist/layout/scale-effect.d.ts +6 -5
- package/dist/layout/scale-effect.d.ts.map +1 -1
- package/dist/layout/z-index.d.ts +2 -2
- package/dist/layout/z-index.d.ts.map +1 -1
- package/dist/lifecycle/index.d.ts +6 -0
- package/dist/lifecycle/index.d.ts.map +1 -0
- package/dist/modifiers-basic-DLmE749_.js +5604 -0
- package/dist/navigation/index.d.ts +12 -0
- package/dist/navigation/index.d.ts.map +1 -0
- package/dist/preload/backdrop.d.ts +5 -0
- package/dist/preload/backdrop.d.ts.map +1 -0
- package/dist/preload/backdrop.js +7 -0
- package/dist/preload/basic.d.ts +7 -0
- package/dist/preload/basic.d.ts.map +1 -0
- package/dist/preload/basic.js +251 -0
- package/dist/preload/effects.d.ts +6 -0
- package/dist/preload/effects.d.ts.map +1 -0
- package/dist/preload/effects.js +95 -0
- package/dist/preload/filters.d.ts +6 -0
- package/dist/preload/filters.d.ts.map +1 -0
- package/dist/preload/filters.js +31 -0
- package/dist/preload/shadows.d.ts +5 -0
- package/dist/preload/shadows.d.ts.map +1 -0
- package/dist/preload/shadows.js +27 -0
- package/dist/preload/transforms.d.ts +5 -0
- package/dist/preload/transforms.d.ts.map +1 -0
- package/dist/preload/transforms.js +30 -0
- package/dist/types.d.ts +7 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +0 -1
- package/dist/typography/font.d.ts +5 -2
- package/dist/typography/font.d.ts.map +1 -1
- package/dist/typography/index.d.ts +1 -0
- package/dist/typography/index.d.ts.map +1 -1
- package/dist/typography/index.js +26 -28
- package/dist/typography/text.d.ts +2 -2
- package/dist/typography/text.d.ts.map +1 -1
- package/dist/typography/text.js +9 -127
- package/dist/typography/typography.d.ts +6 -4
- package/dist/typography/typography.d.ts.map +1 -1
- package/dist/utility/as-html-validator.d.ts +20 -0
- package/dist/utility/as-html-validator.d.ts.map +1 -0
- package/dist/utility/as-html.d.ts +65 -0
- package/dist/utility/as-html.d.ts.map +1 -0
- package/dist/utility/basic-sanitizer.d.ts +54 -0
- package/dist/utility/basic-sanitizer.d.ts.map +1 -0
- package/dist/utility/css.d.ts +2 -2
- package/dist/utility/css.d.ts.map +1 -1
- package/dist/utility/index.d.ts +3 -0
- package/dist/utility/index.d.ts.map +1 -1
- package/dist/utility/index.js +19 -15
- package/dist/utility/utility.d.ts +2 -2
- package/dist/utility/utility.d.ts.map +1 -1
- package/dist/version.d.ts +14 -0
- package/dist/version.d.ts.map +1 -0
- package/package.json +59 -4
- package/dist/allows-hit-testing-DscPrcOw.js +0 -464
- package/dist/allows-hit-testing-DscPrcOw.js.map +0 -1
- package/dist/appearance/index.js.map +0 -1
- package/dist/base-CkGf4b9G.js +0 -786
- package/dist/base-CkGf4b9G.js.map +0 -1
- package/dist/base.js.map +0 -1
- package/dist/basic/margin.js.map +0 -1
- package/dist/basic/padding.js.map +0 -1
- package/dist/basic/size.js.map +0 -1
- package/dist/clipped-CCW8gJqJ.js +0 -282
- package/dist/clipped-CCW8gJqJ.js.map +0 -1
- package/dist/css-CJEXRr6H.js +0 -124
- package/dist/css-CJEXRr6H.js.map +0 -1
- package/dist/font-3qM2Z97N.js +0 -135
- package/dist/font-3qM2Z97N.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/interaction/index.js.map +0 -1
- package/dist/layout/index.js.map +0 -1
- package/dist/overlay-DDiSLprp.js +0 -774
- package/dist/overlay-DDiSLprp.js.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/typography/index.js.map +0 -1
- package/dist/typography/text.js.map +0 -1
- package/dist/utility/index.js.map +0 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Animation Modifiers
|
|
3
|
+
*
|
|
4
|
+
* Factory functions for creating animation and transition modifiers
|
|
5
|
+
*/
|
|
6
|
+
import { AnimationModifier } from './base';
|
|
7
|
+
/**
|
|
8
|
+
* Transition configuration options
|
|
9
|
+
*/
|
|
10
|
+
export interface TransitionConfig {
|
|
11
|
+
property?: string;
|
|
12
|
+
duration?: number;
|
|
13
|
+
easing?: string;
|
|
14
|
+
delay?: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* TransitionModifier - Dedicated modifier for CSS transitions
|
|
18
|
+
* Extends AnimationModifier but with specific type for testing/debugging
|
|
19
|
+
*/
|
|
20
|
+
export declare class TransitionModifier extends AnimationModifier {
|
|
21
|
+
readonly type: "transition";
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Transition modifier for CSS transitions
|
|
25
|
+
* Supports both object and individual parameter signatures
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* // Object signature
|
|
30
|
+
* div().modifier(transition({ property: 'opacity', duration: 200 }))
|
|
31
|
+
*
|
|
32
|
+
* // Parameter signature
|
|
33
|
+
* div().modifier(transition('all', 300, 'ease-in-out'))
|
|
34
|
+
*
|
|
35
|
+
* // Disable transitions
|
|
36
|
+
* div().modifier(transition('none'))
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare function transition(options: TransitionConfig): TransitionModifier;
|
|
40
|
+
export declare function transition(property: string, duration?: number, easing?: string, delay?: number): TransitionModifier;
|
|
41
|
+
//# sourceMappingURL=animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../src/basic/animation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAE1C;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,iBAAiB;IAEvD,QAAQ,CAAC,IAAI,EAAG,YAAY,CAAS;CACtC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,gBAAgB,GAAG,kBAAkB,CAAA;AACzE,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAA"}
|
package/dist/basic/base.d.ts
CHANGED
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Core modifier classes and utilities for the SwiftUI-inspired modifier system.
|
|
5
5
|
*/
|
|
6
|
-
import type { DOMNode } from '@tachui/
|
|
6
|
+
import type { DOMNode } from '@tachui/types/runtime';
|
|
7
7
|
import type { CSSStyleProperties, Modifier, ModifierContext, ReactiveModifierProps, StyleComputationContext } from '../types';
|
|
8
|
-
import { ModifierPriority } from '@tachui/core/modifiers/types';
|
|
9
8
|
/**
|
|
10
9
|
* Abstract base modifier class
|
|
11
10
|
*/
|
|
@@ -60,7 +59,7 @@ export declare abstract class BaseModifier<TProps = {}> implements Modifier<TPro
|
|
|
60
59
|
*/
|
|
61
60
|
export declare class LayoutModifier extends BaseModifier {
|
|
62
61
|
readonly type = "layout";
|
|
63
|
-
readonly priority
|
|
62
|
+
readonly priority: 100;
|
|
64
63
|
apply(node: DOMNode, context: ModifierContext): DOMNode | undefined;
|
|
65
64
|
private applyOffsetTransform;
|
|
66
65
|
private applyAspectRatio;
|
|
@@ -75,7 +74,7 @@ export declare class LayoutModifier extends BaseModifier {
|
|
|
75
74
|
*/
|
|
76
75
|
export declare class AppearanceModifier extends BaseModifier {
|
|
77
76
|
readonly type = "appearance";
|
|
78
|
-
readonly priority
|
|
77
|
+
readonly priority: 200;
|
|
79
78
|
apply(node: DOMNode, context: ModifierContext): DOMNode | undefined;
|
|
80
79
|
/**
|
|
81
80
|
* Apply Asset-based styles with theme reactivity
|
|
@@ -92,7 +91,7 @@ export declare class AppearanceModifier extends BaseModifier {
|
|
|
92
91
|
*/
|
|
93
92
|
export declare class InteractionModifier extends BaseModifier {
|
|
94
93
|
readonly type = "interaction";
|
|
95
|
-
readonly priority
|
|
94
|
+
readonly priority: 300;
|
|
96
95
|
apply(_node: DOMNode, context: ModifierContext): DOMNode | undefined;
|
|
97
96
|
/**
|
|
98
97
|
* Setup long press gesture with timing and distance constraints
|
|
@@ -123,8 +122,8 @@ export declare class InteractionModifier extends BaseModifier {
|
|
|
123
122
|
* Animation modifier for transitions and animations
|
|
124
123
|
*/
|
|
125
124
|
export declare class AnimationModifier extends BaseModifier {
|
|
126
|
-
readonly type
|
|
127
|
-
readonly priority
|
|
125
|
+
readonly type: 'animation' | 'transition';
|
|
126
|
+
readonly priority: 400;
|
|
128
127
|
apply(_node: DOMNode, context: ModifierContext): DOMNode | undefined;
|
|
129
128
|
private applyOverlay;
|
|
130
129
|
private getOverlayAlignment;
|
|
@@ -136,7 +135,7 @@ export declare class AnimationModifier extends BaseModifier {
|
|
|
136
135
|
*/
|
|
137
136
|
export declare class LifecycleModifier extends BaseModifier {
|
|
138
137
|
readonly type = "lifecycle";
|
|
139
|
-
readonly priority
|
|
138
|
+
readonly priority: 500;
|
|
140
139
|
private activeAbortController?;
|
|
141
140
|
apply(_node: DOMNode, context: ModifierContext): DOMNode | undefined;
|
|
142
141
|
private setupLifecycleObserver;
|
package/dist/basic/base.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/basic/base.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/basic/base.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,KAAK,EACV,kBAAkB,EAElB,QAAQ,EACR,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,UAAU,CAAA;AAQjB;;GAEG;AACH,8BAAsB,YAAY,CAAC,MAAM,GAAG,EAAE,CAAE,YAAW,QAAQ,CAAC,MAAM,CAAC;aAI7C,UAAU,EAAE,MAAM;IAH9C,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAA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,YAAY,CAAc;IACvD,QAAQ,CAAC,QAAQ,MAA6B;IAE9C,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,GAAG,SAAS;IAyIpE,OAAO,CAAC,YAAY;IA8CpB,OAAO,CAAC,mBAAmB;IAgD3B,OAAO,CAAC,kBAAkB;IAmB1B,OAAO,CAAC,wBAAwB;CAajC;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,YAAY;IACjD,QAAQ,CAAC,IAAI,eAAc;IAC3B,QAAQ,CAAC,QAAQ,MAA0B;IAE3C,OAAO,CAAC,qBAAqB,CAAC,CAAiB;IAE/C,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,GAAG,SAAS;IA4BpE,OAAO,CAAC,sBAAsB;IA8B9B,OAAO,CAAC,SAAS;IAsCjB,OAAO,CAAC,gBAAgB;IAwHxB,OAAO,CAAC,UAAU;CAOnB"}
|
package/dist/basic/index.d.ts
CHANGED
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Basic
|
|
2
|
+
* Basic Modifiers Preload
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Synchronous preload and registration of all basic modifier families:
|
|
5
|
+
* layout, typography, appearance, interaction, utility, responsive, elements, attributes
|
|
5
6
|
*/
|
|
7
|
+
import type { ModifierRegistry } from '@tachui/registry';
|
|
8
|
+
export declare const basicModifierRegistrations: Array<[string, (...args: any[]) => any]>;
|
|
9
|
+
type RegisterOptions = {
|
|
10
|
+
registry?: ModifierRegistry;
|
|
11
|
+
};
|
|
12
|
+
export declare function registerBasicModifiers(options?: RegisterOptions): void;
|
|
13
|
+
export { createModifierBuilder } from '@tachui/core/modifiers';
|
|
14
|
+
export * from '../layout';
|
|
15
|
+
export * from '../typography';
|
|
16
|
+
export * from '../appearance';
|
|
17
|
+
export * from '../interaction';
|
|
18
|
+
export * from '../utility';
|
|
19
|
+
export * from '../responsive';
|
|
20
|
+
export * from '../elements';
|
|
21
|
+
export * from '../attributes';
|
|
6
22
|
export * from './padding';
|
|
7
23
|
export * from './margin';
|
|
8
24
|
export * from './size';
|
|
25
|
+
export * from './animation';
|
|
9
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/basic/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/basic/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AA8MxD,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CA+L/E,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,EAAE,gBAAgB,CAAA;CAC5B,CAAA;AAED,wBAAgB,sBAAsB,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,CAetE;AAMD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAG9D,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAG7B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import "@tachui/registry";
|
|
2
|
+
import { bi as o, ck as i, bZ as r, b$ as n, A as t, a5 as d, a4 as c, bX as l, af as b, bS as f, au as u, aw as M, ag as g, cr as p, cg as h, n as m, F as x, ba as y, b8 as T, ar as C, a2 as v, ce as S, b5 as B, X as w, cI as H, O as P, b0 as O, aO as L, be as k, aN as I, a$ as z, aH as D, aV as G, aX as K, aW as R, b3 as F, aL as A, aJ as W, aK as E, aM as V, a0 as U, x as X, cx as Y, P as j, c0 as q, S as Z, ay as J, cT as N, ci as Q, c$ as _, T as $, bK as aa, _ as sa, Z as ea, u as oa, bc as ia, c2 as ra, e as na, g as ta, bj as da, cl as ca, cp as la, cn as ba, co as fa, cq as ua, b_ as Ma, m as ga, a7 as pa, a8 as ha, a6 as ma, ca as xa, b as ya, bY as Ta, c1 as Ca, aa as va, ah as Sa, ak as Ba, ao as wa, am as Ha, al as Pa, aj as Oa, ai as La, an as ka, ap as Ia, av as za, ax as Da, aq as Ga, cc as Ka, bT as Ra, bU as Fa, bV as Aa, cu as Wa, bW as Ea, bM as Va, W as Ua, cs as Xa, ct as Ya, ch as ja, cw as qa, bl as Za, bJ as Ja, bP as Na, bd as Qa, bk as _a, p as $a, d as as, i as ss, a as es, c as os, k as is, f as rs, l as ns, bb as ts, b9 as ds, B as cs, U as ls, H as bs, I as fs, at as us, as as Ms, q as gs, h as ps, ae as hs, a9 as ms, cW as xs, bm as ys, a3 as Ts, c5 as Cs, c4 as vs, cf as Ss, j as Bs, b6 as ws, b7 as Hs, t as Ps, K as Os, c7 as Ls, c6 as ks, Y as Is, J as zs, cJ as Ds, cL as Gs, cQ as Ks, cO as Rs, cM as Fs, cS as As, cN as Ws, cK as Es, cP as Vs, cR as Us, cZ as Xs, cX as Ys, c_ as js, cY as qs, ad as Zs, o as Js, b2 as Ns, bq as Qs, bz as _s, aU as $s, bw as ae, bf as se, bh as ee, bg as oe, bA as ie, bB as re, aT as ne, bv as te, b1 as de, bp as ce, aI as le, by as be, aY as fe, bs as ue, a_ as Me, bt as ge, aZ as pe, bu as he, b4 as me, aR as xe, aP as ye, aQ as Te, aS as Ce, bC as ve, br as Se, bD as Be, bH as we, bI as He, bo as Pe, bG as Oe, bF as Le, bE as ke, bx as Ie, bQ as ze, bR as De, Q as Ge, a1 as Ke, bO as Re, bN as Fe, y as Ae, aB as We, aC as Ee, aD as Ve, cy as Ue, cA as Xe, cF as Ye, cD as je, cB as qe, cH as Ze, cC as Je, cz as Ne, cE as Qe, cG as _e, w as $e, c3 as ao, c8 as so, ab as eo, r as oo, v as io, cm as ro, s as no, az as to, aA as co, aE as lo, aF as bo, aG as fo, bn as uo, cU as Mo, cd as go, ac as po, V as ho, cj as mo, D as xo, R as yo, G as To, L as Co, E as vo, cv as So, cb as Bo, d0 as wo, C as Ho, c9 as Po, bL as Oo, N as Lo, cV as ko, $ as Io, z as zo } from "../modifiers-basic-DLmE749_.js";
|
|
3
|
+
import { createModifierBuilder as Go } from "@tachui/core/modifiers";
|
|
4
|
+
export {
|
|
5
|
+
o as AllowsHitTestingModifier,
|
|
6
|
+
i as AriaModifier,
|
|
7
|
+
r as AsHTMLModifier,
|
|
8
|
+
n as AsHTMLValidator,
|
|
9
|
+
t as AspectRatioModifier,
|
|
10
|
+
d as BackgroundClipModifier,
|
|
11
|
+
c as BackgroundModifier,
|
|
12
|
+
l as BasicSanitizer,
|
|
13
|
+
b as BorderModifier,
|
|
14
|
+
f as CSSModifier,
|
|
15
|
+
u as ClipShapeModifier,
|
|
16
|
+
M as ClippedModifier,
|
|
17
|
+
g as CornerRadiusModifier,
|
|
18
|
+
p as CustomPropertiesModifier,
|
|
19
|
+
h as DataModifier,
|
|
20
|
+
m as FixedSizeModifier,
|
|
21
|
+
x as FlexboxModifier,
|
|
22
|
+
y as FocusableModifier,
|
|
23
|
+
T as FocusedModifier,
|
|
24
|
+
C as ForegroundModifier,
|
|
25
|
+
v as HyphensModifier,
|
|
26
|
+
S as IdModifier,
|
|
27
|
+
B as KeyboardShortcutModifier,
|
|
28
|
+
w as LineClampModifier,
|
|
29
|
+
H as MarginModifier,
|
|
30
|
+
P as OffsetModifier,
|
|
31
|
+
O as OnBlurModifier,
|
|
32
|
+
L as OnContextMenuModifier,
|
|
33
|
+
k as OnContinuousHoverModifier,
|
|
34
|
+
I as OnDoubleClickModifier,
|
|
35
|
+
z as OnFocusModifier,
|
|
36
|
+
D as OnHoverModifier,
|
|
37
|
+
G as OnKeyDownModifier,
|
|
38
|
+
K as OnKeyPressModifier,
|
|
39
|
+
R as OnKeyUpModifier,
|
|
40
|
+
F as OnLongPressGestureModifier,
|
|
41
|
+
A as OnMouseDownModifier,
|
|
42
|
+
W as OnMouseEnterModifier,
|
|
43
|
+
E as OnMouseLeaveModifier,
|
|
44
|
+
V as OnMouseUpModifier,
|
|
45
|
+
U as OverflowWrapModifier,
|
|
46
|
+
X as OverlayModifier,
|
|
47
|
+
Y as PaddingModifier,
|
|
48
|
+
j as PositionModifier,
|
|
49
|
+
q as PseudoElementModifier,
|
|
50
|
+
Z as ScaleEffectModifier,
|
|
51
|
+
J as ScrollModifier,
|
|
52
|
+
N as SizeModifier,
|
|
53
|
+
Q as TabIndexModifier,
|
|
54
|
+
_ as TransitionModifier,
|
|
55
|
+
$ as TypographyModifier,
|
|
56
|
+
aa as UtilityModifier,
|
|
57
|
+
sa as WordBreakModifier,
|
|
58
|
+
ea as ZIndexModifier,
|
|
59
|
+
oa as absolutePosition,
|
|
60
|
+
ia as activatable,
|
|
61
|
+
ra as after,
|
|
62
|
+
na as alignItems,
|
|
63
|
+
ta as alignSelf,
|
|
64
|
+
da as allowsHitTesting,
|
|
65
|
+
ca as aria,
|
|
66
|
+
la as ariaDescribedBy,
|
|
67
|
+
ba as ariaLabel,
|
|
68
|
+
fa as ariaLive,
|
|
69
|
+
ua as ariaModal,
|
|
70
|
+
Ma as asHTML,
|
|
71
|
+
ga as aspectRatio,
|
|
72
|
+
pa as background,
|
|
73
|
+
ha as backgroundClip,
|
|
74
|
+
ma as backgroundColor,
|
|
75
|
+
xa as badge,
|
|
76
|
+
ya as basicModifierRegistrations,
|
|
77
|
+
Ta as basicSanitize,
|
|
78
|
+
Ca as before,
|
|
79
|
+
va as blueGradientText,
|
|
80
|
+
Sa as border,
|
|
81
|
+
Ba as borderBottom,
|
|
82
|
+
wa as borderHorizontal,
|
|
83
|
+
Ha as borderLeading,
|
|
84
|
+
Pa as borderLeft,
|
|
85
|
+
Oa as borderRight,
|
|
86
|
+
La as borderTop,
|
|
87
|
+
ka as borderTrailing,
|
|
88
|
+
Ia as borderVertical,
|
|
89
|
+
za as clipShape,
|
|
90
|
+
Da as clipped,
|
|
91
|
+
Ga as cornerRadius,
|
|
92
|
+
Ka as cornerRibbon,
|
|
93
|
+
Go as createModifierBuilder,
|
|
94
|
+
Ra as css,
|
|
95
|
+
Fa as cssProperty,
|
|
96
|
+
Aa as cssVariable,
|
|
97
|
+
Wa as cssVariables,
|
|
98
|
+
Ea as cssVendor,
|
|
99
|
+
Va as cursor,
|
|
100
|
+
Ua as custom,
|
|
101
|
+
Xa as customProperties,
|
|
102
|
+
Ya as customProperty,
|
|
103
|
+
ja as data,
|
|
104
|
+
qa as designTokens,
|
|
105
|
+
Za as disableHitTesting,
|
|
106
|
+
Ja as disabled,
|
|
107
|
+
Na as display,
|
|
108
|
+
Qa as editable,
|
|
109
|
+
_a as enableHitTesting,
|
|
110
|
+
$a as fixedSize,
|
|
111
|
+
as as flexBasis,
|
|
112
|
+
ss as flexDirection,
|
|
113
|
+
es as flexGrow,
|
|
114
|
+
os as flexShrink,
|
|
115
|
+
is as flexWrap,
|
|
116
|
+
rs as flexbox,
|
|
117
|
+
ns as flexboxPresets,
|
|
118
|
+
ts as focusable,
|
|
119
|
+
ds as focused,
|
|
120
|
+
cs as font,
|
|
121
|
+
ls as fontFamily,
|
|
122
|
+
bs as fontSize,
|
|
123
|
+
fs as fontWeight,
|
|
124
|
+
us as foreground,
|
|
125
|
+
Ms as foregroundColor,
|
|
126
|
+
gs as frame,
|
|
127
|
+
ps as gap,
|
|
128
|
+
hs as goldGradientText,
|
|
129
|
+
ms as gradientText,
|
|
130
|
+
xs as height,
|
|
131
|
+
ys as highPriorityGesture,
|
|
132
|
+
Ts as hyphens,
|
|
133
|
+
Cs as iconAfter,
|
|
134
|
+
vs as iconBefore,
|
|
135
|
+
Ss as id,
|
|
136
|
+
Bs as justifyContent,
|
|
137
|
+
ws as keyboardShortcut,
|
|
138
|
+
Hs as keyboardShortcutBuilder,
|
|
139
|
+
Ps as layoutPriority,
|
|
140
|
+
Os as letterSpacing,
|
|
141
|
+
Ls as lineAfter,
|
|
142
|
+
ks as lineBefore,
|
|
143
|
+
Is as lineClamp,
|
|
144
|
+
zs as lineHeight,
|
|
145
|
+
Ds as margin,
|
|
146
|
+
Gs as marginBottom,
|
|
147
|
+
Ks as marginHorizontal,
|
|
148
|
+
Rs as marginLeading,
|
|
149
|
+
Fs as marginLeft,
|
|
150
|
+
As as marginPresets,
|
|
151
|
+
Ws as marginRight,
|
|
152
|
+
Es as marginTop,
|
|
153
|
+
Vs as marginTrailing,
|
|
154
|
+
Us as marginVertical,
|
|
155
|
+
Xs as maxHeight,
|
|
156
|
+
Ys as maxWidth,
|
|
157
|
+
js as minHeight,
|
|
158
|
+
qs as minWidth,
|
|
159
|
+
Zs as oceanGradientText,
|
|
160
|
+
Js as offset,
|
|
161
|
+
Ns as onBlur,
|
|
162
|
+
Qs as onBlurInteraction,
|
|
163
|
+
_s as onChange,
|
|
164
|
+
$s as onContextMenu,
|
|
165
|
+
ae as onContextMenuInteraction,
|
|
166
|
+
se as onContinuousHover,
|
|
167
|
+
ee as onContinuousHoverGlobal,
|
|
168
|
+
oe as onContinuousHoverLocal,
|
|
169
|
+
ie as onCopy,
|
|
170
|
+
re as onCut,
|
|
171
|
+
ne as onDoubleClick,
|
|
172
|
+
te as onDoubleClickInteraction,
|
|
173
|
+
de as onFocus,
|
|
174
|
+
ce as onFocusInteraction,
|
|
175
|
+
le as onHover,
|
|
176
|
+
be as onInput,
|
|
177
|
+
fe as onKeyDown,
|
|
178
|
+
ue as onKeyDownInteraction,
|
|
179
|
+
Me as onKeyPress,
|
|
180
|
+
ge as onKeyPressInteraction,
|
|
181
|
+
pe as onKeyUp,
|
|
182
|
+
he as onKeyUpInteraction,
|
|
183
|
+
me as onLongPressGesture,
|
|
184
|
+
xe as onMouseDown,
|
|
185
|
+
ye as onMouseEnter,
|
|
186
|
+
Te as onMouseLeave,
|
|
187
|
+
Ce as onMouseUp,
|
|
188
|
+
ve as onPaste,
|
|
189
|
+
Se as onScroll,
|
|
190
|
+
Be as onSelect,
|
|
191
|
+
we as onSwipeLeft,
|
|
192
|
+
He as onSwipeRight,
|
|
193
|
+
Pe as onTap,
|
|
194
|
+
Oe as onTouchEnd,
|
|
195
|
+
Le as onTouchMove,
|
|
196
|
+
ke as onTouchStart,
|
|
197
|
+
Ie as onWheel,
|
|
198
|
+
ze as outline,
|
|
199
|
+
De as outlineOffset,
|
|
200
|
+
Ge as overflow,
|
|
201
|
+
Ke as overflowWrap,
|
|
202
|
+
Re as overflowX,
|
|
203
|
+
Fe as overflowY,
|
|
204
|
+
Ae as overlay,
|
|
205
|
+
We as overscrollBehavior,
|
|
206
|
+
Ee as overscrollBehaviorX,
|
|
207
|
+
Ve as overscrollBehaviorY,
|
|
208
|
+
Ue as padding,
|
|
209
|
+
Xe as paddingBottom,
|
|
210
|
+
Ye as paddingHorizontal,
|
|
211
|
+
je as paddingLeading,
|
|
212
|
+
qe as paddingLeft,
|
|
213
|
+
Ze as paddingPresets,
|
|
214
|
+
Je as paddingRight,
|
|
215
|
+
Ne as paddingTop,
|
|
216
|
+
Qe as paddingTrailing,
|
|
217
|
+
_e as paddingVertical,
|
|
218
|
+
$e as position,
|
|
219
|
+
ao as pseudoElements,
|
|
220
|
+
so as quotes,
|
|
221
|
+
eo as rainbowGradientText,
|
|
222
|
+
oo as registerBasicModifiers,
|
|
223
|
+
io as resizable,
|
|
224
|
+
ro as role,
|
|
225
|
+
no as scaleEffect,
|
|
226
|
+
to as scroll,
|
|
227
|
+
co as scrollBehavior,
|
|
228
|
+
lo as scrollMargin,
|
|
229
|
+
bo as scrollPadding,
|
|
230
|
+
fo as scrollSnap,
|
|
231
|
+
uo as simultaneousGesture,
|
|
232
|
+
Mo as size,
|
|
233
|
+
go as spinner,
|
|
234
|
+
po as sunsetGradientText,
|
|
235
|
+
ho as system,
|
|
236
|
+
mo as tabIndex,
|
|
237
|
+
xo as textAlign,
|
|
238
|
+
yo as textCase,
|
|
239
|
+
To as textDecoration,
|
|
240
|
+
Co as textOverflow,
|
|
241
|
+
vo as textTransform,
|
|
242
|
+
So as themeColors,
|
|
243
|
+
Bo as tooltip,
|
|
244
|
+
wo as transition,
|
|
245
|
+
Ho as typography,
|
|
246
|
+
Po as underline,
|
|
247
|
+
Oo as utility,
|
|
248
|
+
Lo as whiteSpace,
|
|
249
|
+
ko as width,
|
|
250
|
+
Io as wordBreak,
|
|
251
|
+
zo as zIndex
|
|
252
|
+
};
|
package/dist/basic/margin.d.ts
CHANGED
|
@@ -46,9 +46,9 @@ export type MarginOptions = {
|
|
|
46
46
|
right?: never;
|
|
47
47
|
left?: never;
|
|
48
48
|
};
|
|
49
|
-
import type { DOMNode } from '@tachui/
|
|
49
|
+
import type { DOMNode } from '@tachui/types/runtime';
|
|
50
50
|
import { BaseModifier } from './base';
|
|
51
|
-
import type { ModifierContext, ReactiveModifierProps } from '@tachui/
|
|
51
|
+
import type { ModifierContext, ReactiveModifierProps } from '@tachui/types/modifiers';
|
|
52
52
|
export type ReactiveMarginOptions = ReactiveModifierProps<MarginOptions>;
|
|
53
53
|
export declare class MarginModifier extends BaseModifier<MarginOptions> {
|
|
54
54
|
readonly type = "margin";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"margin.d.ts","sourceRoot":"","sources":["../../src/basic/margin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,MAAM,GACN,GAAG,MAAM,IAAI,GACb,GAAG,MAAM,KAAK,GACd,GAAG,MAAM,IAAI,GACb,GAAG,MAAM,GAAG,GACZ,GAAG,MAAM,IAAI,GACb,GAA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ol" ? g + "" : g, i);
|
|
4
|
-
import { B as c } from "../base-CkGf4b9G.js";
|
|
5
|
-
import { isSignal as u, isComputed as d } from "@tachui/core/reactive";
|
|
6
|
-
class o extends c {
|
|
7
|
-
// Optimized priority for external spacing (after padding at 45)
|
|
8
|
-
constructor(i) {
|
|
9
|
-
super(i);
|
|
10
|
-
m(this, "type", "margin");
|
|
11
|
-
m(this, "priority", 50);
|
|
12
|
-
}
|
|
13
|
-
apply(i, r) {
|
|
14
|
-
if (!r.element) return;
|
|
15
|
-
const a = this.computeMarginStyles(this.properties);
|
|
16
|
-
this.applyStyles(r.element, a);
|
|
17
|
-
}
|
|
18
|
-
computeMarginStyles(i) {
|
|
19
|
-
const r = {}, a = (n) => u(n) || d(n) ? n : typeof n == "number" ? `${n}px` : n === "auto" ? n : typeof n == "string" ? /^-?\d*\.?\d+(px|rem|em|%|vw|vh|vmin|vmax)$/.test(n) ? n : `${n}px` : String(n);
|
|
20
|
-
if ("all" in i && i.all !== void 0)
|
|
21
|
-
r.margin = a(i.all);
|
|
22
|
-
else {
|
|
23
|
-
if ("vertical" in i && i.vertical !== void 0) {
|
|
24
|
-
const n = a(i.vertical);
|
|
25
|
-
r.marginTop = n, r.marginBottom = n;
|
|
26
|
-
}
|
|
27
|
-
if ("horizontal" in i && i.horizontal !== void 0) {
|
|
28
|
-
const n = a(i.horizontal);
|
|
29
|
-
r.marginLeft = n, r.marginRight = n;
|
|
30
|
-
}
|
|
31
|
-
"top" in i && i.top !== void 0 && (r.marginTop = a(i.top)), "right" in i && i.right !== void 0 && (r.marginRight = a(i.right)), "bottom" in i && i.bottom !== void 0 && (r.marginBottom = a(i.bottom)), "left" in i && i.left !== void 0 && (r.marginLeft = a(i.left)), "leading" in i && i.leading !== void 0 && (r.marginLeft = a(i.leading)), "trailing" in i && i.trailing !== void 0 && (r.marginRight = a(i.trailing));
|
|
32
|
-
}
|
|
33
|
-
return r;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function e(t) {
|
|
37
|
-
return typeof t == "number" || typeof t == "string" ? new o({ all: t }) : new o(t);
|
|
38
|
-
}
|
|
39
|
-
function s(t) {
|
|
40
|
-
return new o({ top: t });
|
|
41
|
-
}
|
|
42
|
-
function w(t) {
|
|
43
|
-
return new o({ bottom: t });
|
|
44
|
-
}
|
|
45
|
-
function z(t) {
|
|
46
|
-
return new o({ left: t });
|
|
47
|
-
}
|
|
48
|
-
function b(t) {
|
|
49
|
-
return new o({ right: t });
|
|
50
|
-
}
|
|
51
|
-
function L(t) {
|
|
52
|
-
return new o({ leading: t });
|
|
53
|
-
}
|
|
54
|
-
function R(t) {
|
|
55
|
-
return new o({ trailing: t });
|
|
56
|
-
}
|
|
57
|
-
function S(t) {
|
|
58
|
-
return new o({ horizontal: t });
|
|
59
|
-
}
|
|
60
|
-
function B(t) {
|
|
61
|
-
return new o({ vertical: t });
|
|
62
|
-
}
|
|
63
|
-
const M = {
|
|
64
|
-
/**
|
|
65
|
-
* Extra small margin (4px) - For tight spacing
|
|
66
|
-
*/
|
|
67
|
-
xs: () => e(4),
|
|
68
|
-
/**
|
|
69
|
-
* Small margin (8px) - For compact components
|
|
70
|
-
*/
|
|
71
|
-
sm: () => e(8),
|
|
72
|
-
/**
|
|
73
|
-
* Medium margin (12px) - Default comfortable spacing
|
|
74
|
-
*/
|
|
75
|
-
md: () => e(12),
|
|
76
|
-
/**
|
|
77
|
-
* Large margin (16px) - For prominent separation
|
|
78
|
-
*/
|
|
79
|
-
lg: () => e(16),
|
|
80
|
-
/**
|
|
81
|
-
* Extra large margin (24px) - For emphasis
|
|
82
|
-
*/
|
|
83
|
-
xl: () => e(24),
|
|
84
|
-
/**
|
|
85
|
-
* Extra extra large margin (32px) - For major sections
|
|
86
|
-
*/
|
|
87
|
-
xxl: () => e(32),
|
|
88
|
-
/**
|
|
89
|
-
* Huge margin (48px) - For hero sections
|
|
90
|
-
*/
|
|
91
|
-
xxxl: () => e(48),
|
|
92
|
-
// Semantic presets for common UI patterns
|
|
93
|
-
/**
|
|
94
|
-
* Component separation (vertical: 16, horizontal: 0)
|
|
95
|
-
* For spacing between stacked components
|
|
96
|
-
*/
|
|
97
|
-
component: () => e({ vertical: 16, horizontal: 0 }),
|
|
98
|
-
/**
|
|
99
|
-
* Section separation (vertical: 24, horizontal: 0)
|
|
100
|
-
* For major content sections
|
|
101
|
-
*/
|
|
102
|
-
section: () => e({ vertical: 24, horizontal: 0 }),
|
|
103
|
-
/**
|
|
104
|
-
* Page margin (horizontal: auto)
|
|
105
|
-
* For centering page content
|
|
106
|
-
*/
|
|
107
|
-
page: () => e({ horizontal: "auto" }),
|
|
108
|
-
/**
|
|
109
|
-
* Card margin (all: 16)
|
|
110
|
-
* Standard margin around card components
|
|
111
|
-
*/
|
|
112
|
-
card: () => e(16),
|
|
113
|
-
/**
|
|
114
|
-
* Compact card margin (all: 8)
|
|
115
|
-
*/
|
|
116
|
-
cardSm: () => e(8),
|
|
117
|
-
/**
|
|
118
|
-
* Spacious card margin (all: 24)
|
|
119
|
-
*/
|
|
120
|
-
cardLg: () => e(24),
|
|
121
|
-
/**
|
|
122
|
-
* Button margin (horizontal: 8, vertical: 4)
|
|
123
|
-
* For spacing between inline buttons
|
|
124
|
-
*/
|
|
125
|
-
button: () => e({ horizontal: 8, vertical: 4 }),
|
|
126
|
-
/**
|
|
127
|
-
* List item margin (vertical: 8, horizontal: 0)
|
|
128
|
-
* For spacing between list items
|
|
129
|
-
*/
|
|
130
|
-
listItem: () => e({ vertical: 8, horizontal: 0 }),
|
|
131
|
-
/**
|
|
132
|
-
* Form field margin (vertical: 12, horizontal: 0)
|
|
133
|
-
* For spacing between form fields
|
|
134
|
-
*/
|
|
135
|
-
field: () => e({ vertical: 12, horizontal: 0 }),
|
|
136
|
-
/**
|
|
137
|
-
* Zero margin utility
|
|
138
|
-
* For removing default margins
|
|
139
|
-
*/
|
|
140
|
-
none: () => e(0),
|
|
141
|
-
/**
|
|
142
|
-
* Auto margin utility
|
|
143
|
-
* For centering elements
|
|
144
|
-
*/
|
|
145
|
-
auto: () => e("auto")
|
|
146
|
-
};
|
|
1
|
+
import { cI as g, cJ as n, cL as m, cQ as s, cO as c, cM as o, cS as t, cN as e, cK as f, cP as l, cR as p } from "../modifiers-basic-DLmE749_.js";
|
|
2
|
+
import "@tachui/core/reactive";
|
|
147
3
|
export {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
4
|
+
g as MarginModifier,
|
|
5
|
+
n as margin,
|
|
6
|
+
m as marginBottom,
|
|
7
|
+
s as marginHorizontal,
|
|
8
|
+
c as marginLeading,
|
|
9
|
+
o as marginLeft,
|
|
10
|
+
t as marginPresets,
|
|
11
|
+
e as marginRight,
|
|
12
|
+
f as marginTop,
|
|
13
|
+
l as marginTrailing,
|
|
14
|
+
p as marginVertical
|
|
159
15
|
};
|
|
160
|
-
//# sourceMappingURL=margin.js.map
|
package/dist/basic/padding.d.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Comprehensive interface for element padding with full SwiftUI compatibility,
|
|
5
5
|
* CSS-in-JS support, reactive values, design system presets, and RTL awareness.
|
|
6
6
|
*/
|
|
7
|
-
import type { DOMNode } from '@tachui/
|
|
7
|
+
import type { DOMNode } from '@tachui/types/runtime';
|
|
8
8
|
import { BaseModifier } from './base';
|
|
9
|
-
import type { ModifierContext, ReactiveModifierProps } from '@tachui/
|
|
9
|
+
import type { ModifierContext, ReactiveModifierProps } from '@tachui/types/modifiers';
|
|
10
10
|
export type PaddingValue = number | string | `${number}px` | `${number}rem` | `${number}em` | `${number}%` | `${number}vw` | `${number}vh` | `${number}vmin` | `${number}vmax` | 'auto';
|
|
11
11
|
export type PaddingOptions = {
|
|
12
12
|
all: PaddingValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"padding.d.ts","sourceRoot":"","sources":["../../src/basic/padding.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"padding.d.ts","sourceRoot":"","sources":["../../src/basic/padding.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,yBAAyB,CAAA;AAIhC,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,MAAM,GACN,GAAG,MAAM,IAAI,GACb,GAAG,MAAM,KAAK,GACd,GAAG,MAAM,IAAI,GACb,GAAG,MAAM,GAAG,GACZ,GAAG,MAAM,IAAI,GACb,GAAG,MAAM,IAAI,GACb,GAAG,MAAM,MAAM,GACf,GAAG,MAAM,MAAM,GACf,MAAM,CAAA;AAGV,MAAM,MAAM,cAAc,GACtB;IACE,GAAG,EAAE,YAAY,CAAA;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAA;IAChB,UAAU,CAAC,EAAE,KAAK,CAAA;IAClB,GAAG,CAAC,EAAE,KAAK,CAAA;IACX,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,KAAK,CAAA;IACd,IAAI,CAAC,EAAE,KAAK,CAAA;IACZ,OAAO,CAAC,EAAE,KAAK,CAAA;IACf,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB,GACD;IACE,GAAG,CAAC,EAAE,KAAK,CAAA;IACX,QAAQ,EAAE,YAAY,CAAA;IACtB,UAAU,EAAE,YAAY,CAAA;IACxB,GAAG,CAAC,EAAE,KAAK,CAAA;IACX,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,KAAK,CAAA;IACd,IAAI,CAAC,EAAE,KAAK,CAAA;IACZ,OAAO,CAAC,EAAE,KA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