@vlrc-fe/components 3.0.4 → 3.0.5
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/CHANGELOG.md +12 -0
- package/dist/ConfirmModal.cjs +40 -48
- package/dist/ConfirmModal.d.ts +5 -21
- package/dist/ConfirmModal.d.ts.map +1 -1
- package/dist/ConfirmModal.js +41 -48
- package/dist/Modal.cjs +12 -16
- package/dist/Modal.d.ts +2 -14
- package/dist/Modal.d.ts.map +1 -1
- package/dist/Modal.js +12 -16
- package/dist/MultiSelect/MultiSelect.cjs +0 -1
- package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/MultiSelect/MultiSelect.js +0 -1
- package/dist/MultiSelect/useMultiSelect.cjs +1 -0
- package/dist/MultiSelect/useMultiSelect.d.ts.map +1 -1
- package/dist/MultiSelect/useMultiSelect.js +1 -0
- package/dist/MultiSelect/utils.cjs +2 -2
- package/dist/MultiSelect/utils.js +2 -2
- package/dist/Typography/Link.cjs +3 -5
- package/dist/Typography/Link.d.ts +1 -1
- package/dist/Typography/Link.d.ts.map +1 -1
- package/dist/Typography/Link.js +3 -5
- package/dist/Typography/Paragraph.cjs +3 -5
- package/dist/Typography/Paragraph.d.ts +1 -1
- package/dist/Typography/Paragraph.d.ts.map +1 -1
- package/dist/Typography/Paragraph.js +3 -5
- package/dist/Typography/Text.cjs +3 -4
- package/dist/Typography/Text.d.ts +1 -1
- package/dist/Typography/Text.d.ts.map +1 -1
- package/dist/Typography/Text.js +4 -5
- package/dist/Typography/Title.cjs +4 -4
- package/dist/Typography/Title.d.ts +1 -1
- package/dist/Typography/Title.d.ts.map +1 -1
- package/dist/Typography/Title.js +5 -5
- package/dist/Typography/Typography.d.ts +8 -4
- package/dist/Typography/Typography.d.ts.map +1 -1
- package/dist/Typography/index.d.ts +0 -3
- package/dist/Typography/index.d.ts.map +1 -1
- package/dist/Typography/index.js +1 -4
- package/dist/Typography/types.d.ts +4 -0
- package/dist/Typography/types.d.ts.map +1 -1
- package/dist/assets/stylex.css +32 -8
- package/dist/astryx.cjs +1 -10
- package/dist/astryx.d.ts +0 -1
- package/dist/astryx.d.ts.map +1 -1
- package/dist/astryx.js +0 -2
- package/dist/index.cjs +2 -12
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -6
- package/dist/layout/Box.cjs +44 -67
- package/dist/layout/Box.d.ts +3 -5
- package/dist/layout/Box.d.ts.map +1 -1
- package/dist/layout/Box.js +44 -67
- package/dist/layout/Center.cjs +13 -24
- package/dist/layout/Center.d.ts +2 -2
- package/dist/layout/Center.d.ts.map +1 -1
- package/dist/layout/Center.js +13 -24
- package/dist/layout/Container.cjs +21 -10
- package/dist/layout/Container.d.ts +3 -5
- package/dist/layout/Container.d.ts.map +1 -1
- package/dist/layout/Container.js +21 -10
- package/dist/layout/Stack.cjs +55 -93
- package/dist/layout/Stack.d.ts +5 -5
- package/dist/layout/Stack.d.ts.map +1 -1
- package/dist/layout/Stack.js +55 -93
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/lazyLoad.cjs +1 -1
- package/dist/lazyLoad.d.ts.map +1 -1
- package/dist/lazyLoad.js +1 -1
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/zIndex.cjs +0 -2
- package/dist/theme/zIndex.d.ts +4 -4
- package/dist/theme/zIndex.d.ts.map +1 -1
- package/dist/theme.css +32 -8
- package/dist/ui/aspect-ratio.cjs +0 -1
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js +0 -1
- package/dist/ui/avatar.cjs +0 -1
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +0 -1
- package/dist/ui/calendar.cjs +0 -1
- package/dist/ui/calendar.d.ts.map +1 -1
- package/dist/ui/calendar.js +0 -1
- package/dist/ui/carousel.cjs +0 -1
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/carousel.js +0 -1
- package/dist/ui/checkbox.cjs +4 -8
- package/dist/ui/checkbox.d.ts +1 -1
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +5 -9
- package/dist/ui/circular-progress.cjs +25 -20
- package/dist/ui/circular-progress.d.ts +3 -3
- package/dist/ui/circular-progress.d.ts.map +1 -1
- package/dist/ui/circular-progress.js +25 -20
- package/dist/ui/code-block.cjs +180 -176
- package/dist/ui/code-block.d.ts +17 -9
- package/dist/ui/code-block.d.ts.map +1 -1
- package/dist/ui/code-block.js +181 -177
- package/dist/ui/collapsible.cjs +0 -1
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/collapsible.js +0 -1
- package/dist/ui/compare-slider.cjs +2 -3
- package/dist/ui/compare-slider.d.ts +3 -2
- package/dist/ui/compare-slider.d.ts.map +1 -1
- package/dist/ui/compare-slider.js +3 -4
- package/dist/ui/context-menu.cjs +0 -1
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +0 -1
- package/dist/ui/copy-button.cjs +2 -3
- package/dist/ui/copy-button.d.ts +1 -1
- package/dist/ui/copy-button.d.ts.map +1 -1
- package/dist/ui/copy-button.js +3 -4
- package/dist/ui/dialog.cjs +2 -0
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +2 -0
- package/dist/ui/drawer.cjs +2 -0
- package/dist/ui/drawer.d.ts.map +1 -1
- package/dist/ui/drawer.js +2 -0
- package/dist/ui/editable.cjs +1 -0
- package/dist/ui/editable.d.ts.map +1 -1
- package/dist/ui/editable.js +1 -0
- package/dist/ui/empty.cjs +37 -52
- package/dist/ui/empty.d.ts +5 -5
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +38 -53
- package/dist/ui/file-upload.cjs +0 -1
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +0 -1
- package/dist/ui/flex.cjs +3 -4
- package/dist/ui/flex.d.ts +3 -2
- package/dist/ui/flex.d.ts.map +1 -1
- package/dist/ui/flex.js +3 -4
- package/dist/ui/form.cjs +0 -1
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +0 -1
- package/dist/ui/gauge.cjs +2 -4
- package/dist/ui/gauge.d.ts +3 -2
- package/dist/ui/gauge.d.ts.map +1 -1
- package/dist/ui/gauge.js +2 -4
- package/dist/ui/grid.cjs +7 -7
- package/dist/ui/grid.d.ts +7 -3
- package/dist/ui/grid.d.ts.map +1 -1
- package/dist/ui/grid.js +7 -8
- package/dist/ui/hover-card.cjs +0 -1
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +0 -1
- package/dist/ui/input-group.cjs +17 -23
- package/dist/ui/input-group.d.ts +2 -2
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-group.js +17 -23
- package/dist/ui/marker.cjs +78 -75
- package/dist/ui/marker.d.ts +7 -4
- package/dist/ui/marker.d.ts.map +1 -1
- package/dist/ui/marker.js +79 -76
- package/dist/ui/masonry.cjs +2 -4
- package/dist/ui/masonry.d.ts +1 -1
- package/dist/ui/masonry.d.ts.map +1 -1
- package/dist/ui/masonry.js +3 -5
- package/dist/ui/menubar.cjs +0 -1
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +0 -1
- package/dist/ui/progress.cjs +6 -5
- package/dist/ui/progress.d.ts +3 -3
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +6 -5
- package/dist/ui/questionnaire.cjs +138 -135
- package/dist/ui/questionnaire.d.ts +21 -11
- package/dist/ui/questionnaire.d.ts.map +1 -1
- package/dist/ui/questionnaire.js +139 -136
- package/dist/ui/rating.cjs +2 -3
- package/dist/ui/rating.d.ts +3 -2
- package/dist/ui/rating.d.ts.map +1 -1
- package/dist/ui/rating.js +3 -4
- package/dist/ui/resizable.cjs +0 -1
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/resizable.js +0 -1
- package/dist/ui/row-col.cjs +4 -6
- package/dist/ui/row-col.d.ts +6 -4
- package/dist/ui/row-col.d.ts.map +1 -1
- package/dist/ui/row-col.js +5 -7
- package/dist/ui/scroll-area.cjs +40 -53
- package/dist/ui/scroll-area.d.ts +1 -1
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/scroll-area.js +40 -53
- package/dist/ui/segmented.cjs +2 -3
- package/dist/ui/segmented.d.ts +3 -2
- package/dist/ui/segmented.d.ts.map +1 -1
- package/dist/ui/segmented.js +3 -4
- package/dist/ui/sheet.cjs +2 -0
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +2 -0
- package/dist/ui/sidebar.cjs +0 -1
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +0 -1
- package/dist/ui/signature-pad.cjs +148 -147
- package/dist/ui/signature-pad.d.ts +17 -9
- package/dist/ui/signature-pad.d.ts.map +1 -1
- package/dist/ui/signature-pad.js +149 -148
- package/dist/ui/stat.cjs +57 -71
- package/dist/ui/stat.d.ts +8 -8
- package/dist/ui/stat.d.ts.map +1 -1
- package/dist/ui/stat.js +57 -71
- package/dist/ui/switch.cjs +4 -8
- package/dist/ui/switch.d.ts +1 -1
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +5 -9
- package/dist/utils.cjs +1 -6
- package/dist/utils.d.ts +2 -12
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CSSProperties, ComponentPropsWithRef, ElementType, ReactNode } from 'react';
|
|
2
2
|
import * as stylex from '@stylexjs/stylex';
|
|
3
3
|
export type ContainerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'fluid';
|
|
4
4
|
export interface ContainerProps<T extends ElementType = 'div'> {
|
|
@@ -10,8 +10,6 @@ export interface ContainerProps<T extends ElementType = 'div'> {
|
|
|
10
10
|
style?: CSSProperties;
|
|
11
11
|
sx?: stylex.StyleXStyles;
|
|
12
12
|
}
|
|
13
|
-
export type PolymorphicContainerProps<T extends ElementType> = ContainerProps<T> & Omit<ComponentPropsWithRef<T>, keyof ContainerProps<T>>;
|
|
14
|
-
export declare
|
|
15
|
-
ref?: Ref<any>;
|
|
16
|
-
}) => ReactElement | null;
|
|
13
|
+
export type PolymorphicContainerProps<T extends ElementType = 'div'> = ContainerProps<T> & Omit<ComponentPropsWithRef<T>, keyof ContainerProps<T>>;
|
|
14
|
+
export declare function Container<T extends ElementType = 'div'>({ as, size, gutter, children, className, style, sx, ...props }: PolymorphicContainerProps<T>): import("react").JSX.Element;
|
|
17
15
|
//# sourceMappingURL=Container.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../src/layout/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../src/layout/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAqB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1F,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAG3C,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,OAAO,CAAC;AAwC/E,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK;IAC3D,EAAE,CAAC,EAAE,CAAC,CAAC;IACP,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC;CAC1B;AAED,MAAM,MAAM,yBAAyB,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,cAAc,CAAC,CAAC,CAAC,GACtF,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,MAAM,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAE1D,wBAAgB,SAAS,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,EACvD,EAAE,EACF,IAAW,EACX,MAAa,EACb,QAAQ,EACR,SAAS,EACT,KAAK,EACL,EAAE,EACF,GAAG,KAAK,EACT,EAAE,yBAAyB,CAAC,CAAC,CAAC,+BAoB9B"}
|
package/dist/layout/Container.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { cn } from "../utils.js";
|
|
2
1
|
import * as stylex from "@stylexjs/stylex";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { forwardRef } from "react";
|
|
5
3
|
// src/layout/Container.tsx
|
|
6
4
|
var styles = {
|
|
7
5
|
base: {
|
|
@@ -56,13 +54,27 @@ var styles = {
|
|
|
56
54
|
$$css: true
|
|
57
55
|
}
|
|
58
56
|
};
|
|
59
|
-
var
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
var sizeStyles = {
|
|
58
|
+
xs: styles.sizeXs,
|
|
59
|
+
sm: styles.sizeSm,
|
|
60
|
+
md: styles.sizeMd,
|
|
61
|
+
lg: styles.sizeLg,
|
|
62
|
+
xl: styles.sizeXl,
|
|
63
|
+
"2xl": styles.size2Xl,
|
|
64
|
+
fluid: styles.sizeFluid
|
|
65
|
+
};
|
|
66
|
+
var gutterStyles = {
|
|
67
|
+
none: styles.gutterNone,
|
|
68
|
+
sm: styles.gutterSm,
|
|
69
|
+
md: styles.gutterMd,
|
|
70
|
+
lg: styles.gutterLg
|
|
71
|
+
};
|
|
72
|
+
function Container({ as, size = "xl", gutter = "md", children, className, style, sx, ...props }) {
|
|
73
|
+
const Component = as ?? "div";
|
|
74
|
+
const sizeStyle = sizeStyles[size] ?? styles.sizeXl;
|
|
75
|
+
const gutterStyle = gutterStyles[gutter] ?? styles.gutterMd;
|
|
63
76
|
const resolvedProps = stylex.props(styles.base, sizeStyle, gutterStyle, sx);
|
|
64
77
|
return /* @__PURE__ */ jsx(Component, {
|
|
65
|
-
ref,
|
|
66
78
|
"data-slot": "container",
|
|
67
79
|
"data-size": size,
|
|
68
80
|
...props,
|
|
@@ -71,9 +83,8 @@ var Container = forwardRef(({ as, size = "xl", gutter = "md", children, classNam
|
|
|
71
83
|
...resolvedProps.style,
|
|
72
84
|
...style
|
|
73
85
|
},
|
|
74
|
-
className:
|
|
86
|
+
className: className ? `${resolvedProps.className || ""} ${className}`.trim() : resolvedProps.className,
|
|
75
87
|
children
|
|
76
88
|
});
|
|
77
|
-
}
|
|
78
|
-
Container.displayName = "Container";
|
|
89
|
+
}
|
|
79
90
|
export { Container };
|
package/dist/layout/Stack.cjs
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
const require_utils = require("../utils.cjs");
|
|
2
1
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
-
let react = require("react");
|
|
4
2
|
let react_compiler_runtime = require("react/compiler-runtime");
|
|
5
3
|
let _astryxdesign_core = require("@astryxdesign/core");
|
|
6
4
|
// src/layout/Stack.tsx
|
|
@@ -19,8 +17,8 @@ function resolveStackGap(gap) {
|
|
|
19
17
|
if (typeof gap === "number") return gap;
|
|
20
18
|
return TIER_TO_STEP_MAP[gap] ?? 4;
|
|
21
19
|
}
|
|
22
|
-
|
|
23
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
20
|
+
function Stack(t0) {
|
|
21
|
+
const $ = (0, react_compiler_runtime.c)(14);
|
|
24
22
|
let children;
|
|
25
23
|
let className;
|
|
26
24
|
let gap;
|
|
@@ -49,34 +47,25 @@ var Stack = (0, react.forwardRef)((t0, ref) => {
|
|
|
49
47
|
} else t1 = $[7];
|
|
50
48
|
const resolvedGap = t1;
|
|
51
49
|
let t2;
|
|
52
|
-
if ($[8] !== className) {
|
|
53
|
-
t2 =
|
|
54
|
-
$[8] = className;
|
|
55
|
-
$[9] = t2;
|
|
56
|
-
} else t2 = $[9];
|
|
57
|
-
let t3;
|
|
58
|
-
if ($[10] !== children || $[11] !== props || $[12] !== ref || $[13] !== resolvedGap || $[14] !== sx || $[15] !== t2) {
|
|
59
|
-
t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_astryxdesign_core.Stack, {
|
|
60
|
-
ref,
|
|
50
|
+
if ($[8] !== children || $[9] !== className || $[10] !== props || $[11] !== resolvedGap || $[12] !== sx) {
|
|
51
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_astryxdesign_core.Stack, {
|
|
61
52
|
gap: resolvedGap,
|
|
62
53
|
xstyle: sx,
|
|
63
|
-
className
|
|
54
|
+
className,
|
|
64
55
|
...props,
|
|
65
56
|
children
|
|
66
57
|
});
|
|
67
|
-
$[
|
|
68
|
-
$[
|
|
69
|
-
$[
|
|
70
|
-
$[
|
|
71
|
-
$[
|
|
72
|
-
$[
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
var HStack = (0, react.forwardRef)((t0, ref) => {
|
|
79
|
-
const $ = (0, react_compiler_runtime.c)(17);
|
|
58
|
+
$[8] = children;
|
|
59
|
+
$[9] = className;
|
|
60
|
+
$[10] = props;
|
|
61
|
+
$[11] = resolvedGap;
|
|
62
|
+
$[12] = sx;
|
|
63
|
+
$[13] = t2;
|
|
64
|
+
} else t2 = $[13];
|
|
65
|
+
return t2;
|
|
66
|
+
}
|
|
67
|
+
function HStack(t0) {
|
|
68
|
+
const $ = (0, react_compiler_runtime.c)(14);
|
|
80
69
|
let children;
|
|
81
70
|
let className;
|
|
82
71
|
let gap;
|
|
@@ -105,34 +94,25 @@ var HStack = (0, react.forwardRef)((t0, ref) => {
|
|
|
105
94
|
} else t1 = $[7];
|
|
106
95
|
const resolvedGap = t1;
|
|
107
96
|
let t2;
|
|
108
|
-
if ($[8] !== className) {
|
|
109
|
-
t2 =
|
|
110
|
-
$[8] = className;
|
|
111
|
-
$[9] = t2;
|
|
112
|
-
} else t2 = $[9];
|
|
113
|
-
let t3;
|
|
114
|
-
if ($[10] !== children || $[11] !== props || $[12] !== ref || $[13] !== resolvedGap || $[14] !== sx || $[15] !== t2) {
|
|
115
|
-
t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_astryxdesign_core.HStack, {
|
|
116
|
-
ref,
|
|
97
|
+
if ($[8] !== children || $[9] !== className || $[10] !== props || $[11] !== resolvedGap || $[12] !== sx) {
|
|
98
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_astryxdesign_core.HStack, {
|
|
117
99
|
gap: resolvedGap,
|
|
118
100
|
xstyle: sx,
|
|
119
|
-
className
|
|
101
|
+
className,
|
|
120
102
|
...props,
|
|
121
103
|
children
|
|
122
104
|
});
|
|
123
|
-
$[
|
|
124
|
-
$[
|
|
125
|
-
$[
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
var VStack = (0, react.forwardRef)((t0, ref) => {
|
|
135
|
-
const $ = (0, react_compiler_runtime.c)(17);
|
|
105
|
+
$[8] = children;
|
|
106
|
+
$[9] = className;
|
|
107
|
+
$[10] = props;
|
|
108
|
+
$[11] = resolvedGap;
|
|
109
|
+
$[12] = sx;
|
|
110
|
+
$[13] = t2;
|
|
111
|
+
} else t2 = $[13];
|
|
112
|
+
return t2;
|
|
113
|
+
}
|
|
114
|
+
function VStack(t0) {
|
|
115
|
+
const $ = (0, react_compiler_runtime.c)(14);
|
|
136
116
|
let children;
|
|
137
117
|
let className;
|
|
138
118
|
let gap;
|
|
@@ -161,34 +141,25 @@ var VStack = (0, react.forwardRef)((t0, ref) => {
|
|
|
161
141
|
} else t1 = $[7];
|
|
162
142
|
const resolvedGap = t1;
|
|
163
143
|
let t2;
|
|
164
|
-
if ($[8] !== className) {
|
|
165
|
-
t2 =
|
|
166
|
-
$[8] = className;
|
|
167
|
-
$[9] = t2;
|
|
168
|
-
} else t2 = $[9];
|
|
169
|
-
let t3;
|
|
170
|
-
if ($[10] !== children || $[11] !== props || $[12] !== ref || $[13] !== resolvedGap || $[14] !== sx || $[15] !== t2) {
|
|
171
|
-
t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_astryxdesign_core.VStack, {
|
|
172
|
-
ref,
|
|
144
|
+
if ($[8] !== children || $[9] !== className || $[10] !== props || $[11] !== resolvedGap || $[12] !== sx) {
|
|
145
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_astryxdesign_core.VStack, {
|
|
173
146
|
gap: resolvedGap,
|
|
174
147
|
xstyle: sx,
|
|
175
|
-
className
|
|
148
|
+
className,
|
|
176
149
|
...props,
|
|
177
150
|
children
|
|
178
151
|
});
|
|
179
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
var StackItem = (0, react.forwardRef)((t0, ref) => {
|
|
191
|
-
const $ = (0, react_compiler_runtime.c)(13);
|
|
152
|
+
$[8] = children;
|
|
153
|
+
$[9] = className;
|
|
154
|
+
$[10] = props;
|
|
155
|
+
$[11] = resolvedGap;
|
|
156
|
+
$[12] = sx;
|
|
157
|
+
$[13] = t2;
|
|
158
|
+
} else t2 = $[13];
|
|
159
|
+
return t2;
|
|
160
|
+
}
|
|
161
|
+
function StackItem(t0) {
|
|
162
|
+
const $ = (0, react_compiler_runtime.c)(10);
|
|
192
163
|
let children;
|
|
193
164
|
let className;
|
|
194
165
|
let props;
|
|
@@ -207,30 +178,21 @@ var StackItem = (0, react.forwardRef)((t0, ref) => {
|
|
|
207
178
|
sx = $[4];
|
|
208
179
|
}
|
|
209
180
|
let t1;
|
|
210
|
-
if ($[5] !== className) {
|
|
211
|
-
t1 =
|
|
212
|
-
$[5] = className;
|
|
213
|
-
$[6] = t1;
|
|
214
|
-
} else t1 = $[6];
|
|
215
|
-
let t2;
|
|
216
|
-
if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== sx || $[11] !== t1) {
|
|
217
|
-
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_astryxdesign_core.StackItem, {
|
|
218
|
-
ref,
|
|
181
|
+
if ($[5] !== children || $[6] !== className || $[7] !== props || $[8] !== sx) {
|
|
182
|
+
t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_astryxdesign_core.StackItem, {
|
|
219
183
|
xstyle: sx,
|
|
220
|
-
className
|
|
184
|
+
className,
|
|
221
185
|
...props,
|
|
222
186
|
children
|
|
223
187
|
});
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
});
|
|
233
|
-
StackItem.displayName = "StackItem";
|
|
188
|
+
$[5] = children;
|
|
189
|
+
$[6] = className;
|
|
190
|
+
$[7] = props;
|
|
191
|
+
$[8] = sx;
|
|
192
|
+
$[9] = t1;
|
|
193
|
+
} else t1 = $[9];
|
|
194
|
+
return t1;
|
|
195
|
+
}
|
|
234
196
|
exports.HStack = HStack;
|
|
235
197
|
exports.Stack = Stack;
|
|
236
198
|
exports.StackItem = StackItem;
|
package/dist/layout/Stack.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
2
|
import { Stack as AstryxStack, HStack as AstryxHStack, VStack as AstryxVStack, StackItem as AstryxStackItem } from '@astryxdesign/core';
|
|
3
3
|
import type * as stylex from '@stylexjs/stylex';
|
|
4
4
|
export type AstryxSpacingStep = 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10;
|
|
@@ -8,19 +8,19 @@ export interface StackProps extends Omit<ComponentProps<typeof AstryxStack>, 'ga
|
|
|
8
8
|
gap?: StackGap;
|
|
9
9
|
sx?: stylex.StyleXStyles;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare function Stack({ gap, sx, className, children, ...props }: StackProps): import("react").JSX.Element;
|
|
12
12
|
export interface HStackProps extends Omit<ComponentProps<typeof AstryxHStack>, 'gap' | 'xstyle'> {
|
|
13
13
|
gap?: StackGap;
|
|
14
14
|
sx?: stylex.StyleXStyles;
|
|
15
15
|
}
|
|
16
|
-
export declare
|
|
16
|
+
export declare function HStack({ gap, sx, className, children, ...props }: HStackProps): import("react").JSX.Element;
|
|
17
17
|
export interface VStackProps extends Omit<ComponentProps<typeof AstryxVStack>, 'gap' | 'xstyle'> {
|
|
18
18
|
gap?: StackGap;
|
|
19
19
|
sx?: stylex.StyleXStyles;
|
|
20
20
|
}
|
|
21
|
-
export declare
|
|
21
|
+
export declare function VStack({ gap, sx, className, children, ...props }: VStackProps): import("react").JSX.Element;
|
|
22
22
|
export interface StackItemProps extends Omit<ComponentProps<typeof AstryxStackItem>, 'xstyle'> {
|
|
23
23
|
sx?: stylex.StyleXStyles;
|
|
24
24
|
}
|
|
25
|
-
export declare
|
|
25
|
+
export declare function StackItem({ sx, className, children, ...props }: StackItemProps): import("react").JSX.Element;
|
|
26
26
|
//# sourceMappingURL=Stack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../src/layout/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../src/layout/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EACL,KAAK,IAAI,WAAW,EACpB,MAAM,IAAI,YAAY,EACtB,MAAM,IAAI,YAAY,EACtB,SAAS,IAAI,eAAe,EAC7B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAEhD,MAAM,MAAM,iBAAiB,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;AAC/E,MAAM,MAAM,WAAW,GAAG,GAAG,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AACjF,MAAM,MAAM,QAAQ,GAAG,iBAAiB,GAAG,WAAW,CAAC;AAmBvD,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC5F,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC;CAC1B;AAED,wBAAgB,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,+BAO3E;AAED,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC9F,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC;CAC1B;AAED,wBAAgB,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,+BAO7E;AAED,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC9F,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC;CAC1B;AAED,wBAAgB,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,+BAO7E;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC5F,EAAE,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC;CAC1B;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,+BAM9E"}
|
package/dist/layout/Stack.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { cn } from "../utils.js";
|
|
2
1
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
2
|
import { c } from "react/compiler-runtime";
|
|
5
3
|
import { HStack, Stack, StackItem, VStack } from "@astryxdesign/core";
|
|
6
4
|
// src/layout/Stack.tsx
|
|
@@ -19,8 +17,8 @@ function resolveStackGap(gap) {
|
|
|
19
17
|
if (typeof gap === "number") return gap;
|
|
20
18
|
return TIER_TO_STEP_MAP[gap] ?? 4;
|
|
21
19
|
}
|
|
22
|
-
|
|
23
|
-
const $ = c(
|
|
20
|
+
function Stack$1(t0) {
|
|
21
|
+
const $ = c(14);
|
|
24
22
|
let children;
|
|
25
23
|
let className;
|
|
26
24
|
let gap;
|
|
@@ -49,34 +47,25 @@ var Stack$1 = forwardRef((t0, ref) => {
|
|
|
49
47
|
} else t1 = $[7];
|
|
50
48
|
const resolvedGap = t1;
|
|
51
49
|
let t2;
|
|
52
|
-
if ($[8] !== className) {
|
|
53
|
-
t2 =
|
|
54
|
-
$[8] = className;
|
|
55
|
-
$[9] = t2;
|
|
56
|
-
} else t2 = $[9];
|
|
57
|
-
let t3;
|
|
58
|
-
if ($[10] !== children || $[11] !== props || $[12] !== ref || $[13] !== resolvedGap || $[14] !== sx || $[15] !== t2) {
|
|
59
|
-
t3 = /* @__PURE__ */ jsx(Stack, {
|
|
60
|
-
ref,
|
|
50
|
+
if ($[8] !== children || $[9] !== className || $[10] !== props || $[11] !== resolvedGap || $[12] !== sx) {
|
|
51
|
+
t2 = /* @__PURE__ */ jsx(Stack, {
|
|
61
52
|
gap: resolvedGap,
|
|
62
53
|
xstyle: sx,
|
|
63
|
-
className
|
|
54
|
+
className,
|
|
64
55
|
...props,
|
|
65
56
|
children
|
|
66
57
|
});
|
|
67
|
-
$[
|
|
68
|
-
$[
|
|
69
|
-
$[
|
|
70
|
-
$[
|
|
71
|
-
$[
|
|
72
|
-
$[
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
var HStack$1 = forwardRef((t0, ref) => {
|
|
79
|
-
const $ = c(17);
|
|
58
|
+
$[8] = children;
|
|
59
|
+
$[9] = className;
|
|
60
|
+
$[10] = props;
|
|
61
|
+
$[11] = resolvedGap;
|
|
62
|
+
$[12] = sx;
|
|
63
|
+
$[13] = t2;
|
|
64
|
+
} else t2 = $[13];
|
|
65
|
+
return t2;
|
|
66
|
+
}
|
|
67
|
+
function HStack$1(t0) {
|
|
68
|
+
const $ = c(14);
|
|
80
69
|
let children;
|
|
81
70
|
let className;
|
|
82
71
|
let gap;
|
|
@@ -105,34 +94,25 @@ var HStack$1 = forwardRef((t0, ref) => {
|
|
|
105
94
|
} else t1 = $[7];
|
|
106
95
|
const resolvedGap = t1;
|
|
107
96
|
let t2;
|
|
108
|
-
if ($[8] !== className) {
|
|
109
|
-
t2 =
|
|
110
|
-
$[8] = className;
|
|
111
|
-
$[9] = t2;
|
|
112
|
-
} else t2 = $[9];
|
|
113
|
-
let t3;
|
|
114
|
-
if ($[10] !== children || $[11] !== props || $[12] !== ref || $[13] !== resolvedGap || $[14] !== sx || $[15] !== t2) {
|
|
115
|
-
t3 = /* @__PURE__ */ jsx(HStack, {
|
|
116
|
-
ref,
|
|
97
|
+
if ($[8] !== children || $[9] !== className || $[10] !== props || $[11] !== resolvedGap || $[12] !== sx) {
|
|
98
|
+
t2 = /* @__PURE__ */ jsx(HStack, {
|
|
117
99
|
gap: resolvedGap,
|
|
118
100
|
xstyle: sx,
|
|
119
|
-
className
|
|
101
|
+
className,
|
|
120
102
|
...props,
|
|
121
103
|
children
|
|
122
104
|
});
|
|
123
|
-
$[
|
|
124
|
-
$[
|
|
125
|
-
$[
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
var VStack$1 = forwardRef((t0, ref) => {
|
|
135
|
-
const $ = c(17);
|
|
105
|
+
$[8] = children;
|
|
106
|
+
$[9] = className;
|
|
107
|
+
$[10] = props;
|
|
108
|
+
$[11] = resolvedGap;
|
|
109
|
+
$[12] = sx;
|
|
110
|
+
$[13] = t2;
|
|
111
|
+
} else t2 = $[13];
|
|
112
|
+
return t2;
|
|
113
|
+
}
|
|
114
|
+
function VStack$1(t0) {
|
|
115
|
+
const $ = c(14);
|
|
136
116
|
let children;
|
|
137
117
|
let className;
|
|
138
118
|
let gap;
|
|
@@ -161,34 +141,25 @@ var VStack$1 = forwardRef((t0, ref) => {
|
|
|
161
141
|
} else t1 = $[7];
|
|
162
142
|
const resolvedGap = t1;
|
|
163
143
|
let t2;
|
|
164
|
-
if ($[8] !== className) {
|
|
165
|
-
t2 =
|
|
166
|
-
$[8] = className;
|
|
167
|
-
$[9] = t2;
|
|
168
|
-
} else t2 = $[9];
|
|
169
|
-
let t3;
|
|
170
|
-
if ($[10] !== children || $[11] !== props || $[12] !== ref || $[13] !== resolvedGap || $[14] !== sx || $[15] !== t2) {
|
|
171
|
-
t3 = /* @__PURE__ */ jsx(VStack, {
|
|
172
|
-
ref,
|
|
144
|
+
if ($[8] !== children || $[9] !== className || $[10] !== props || $[11] !== resolvedGap || $[12] !== sx) {
|
|
145
|
+
t2 = /* @__PURE__ */ jsx(VStack, {
|
|
173
146
|
gap: resolvedGap,
|
|
174
147
|
xstyle: sx,
|
|
175
|
-
className
|
|
148
|
+
className,
|
|
176
149
|
...props,
|
|
177
150
|
children
|
|
178
151
|
});
|
|
179
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
var StackItem$1 = forwardRef((t0, ref) => {
|
|
191
|
-
const $ = c(13);
|
|
152
|
+
$[8] = children;
|
|
153
|
+
$[9] = className;
|
|
154
|
+
$[10] = props;
|
|
155
|
+
$[11] = resolvedGap;
|
|
156
|
+
$[12] = sx;
|
|
157
|
+
$[13] = t2;
|
|
158
|
+
} else t2 = $[13];
|
|
159
|
+
return t2;
|
|
160
|
+
}
|
|
161
|
+
function StackItem$1(t0) {
|
|
162
|
+
const $ = c(10);
|
|
192
163
|
let children;
|
|
193
164
|
let className;
|
|
194
165
|
let props;
|
|
@@ -207,28 +178,19 @@ var StackItem$1 = forwardRef((t0, ref) => {
|
|
|
207
178
|
sx = $[4];
|
|
208
179
|
}
|
|
209
180
|
let t1;
|
|
210
|
-
if ($[5] !== className) {
|
|
211
|
-
t1 =
|
|
212
|
-
$[5] = className;
|
|
213
|
-
$[6] = t1;
|
|
214
|
-
} else t1 = $[6];
|
|
215
|
-
let t2;
|
|
216
|
-
if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== sx || $[11] !== t1) {
|
|
217
|
-
t2 = /* @__PURE__ */ jsx(StackItem, {
|
|
218
|
-
ref,
|
|
181
|
+
if ($[5] !== children || $[6] !== className || $[7] !== props || $[8] !== sx) {
|
|
182
|
+
t1 = /* @__PURE__ */ jsx(StackItem, {
|
|
219
183
|
xstyle: sx,
|
|
220
|
-
className
|
|
184
|
+
className,
|
|
221
185
|
...props,
|
|
222
186
|
children
|
|
223
187
|
});
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
});
|
|
233
|
-
StackItem$1.displayName = "StackItem";
|
|
188
|
+
$[5] = children;
|
|
189
|
+
$[6] = className;
|
|
190
|
+
$[7] = props;
|
|
191
|
+
$[8] = sx;
|
|
192
|
+
$[9] = t1;
|
|
193
|
+
} else t1 = $[9];
|
|
194
|
+
return t1;
|
|
195
|
+
}
|
|
234
196
|
export { HStack$1 as HStack, Stack$1 as Stack, StackItem$1 as StackItem, VStack$1 as VStack };
|
package/dist/layout/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ export * from './Box';
|
|
|
2
2
|
export * from './Container';
|
|
3
3
|
export * from './Center';
|
|
4
4
|
export * from './Stack';
|
|
5
|
-
export * from '../ui/grid';
|
|
6
5
|
export * from '../ui/flex';
|
|
6
|
+
export * from '../ui/grid';
|
|
7
7
|
export * from '../ui/row-col';
|
|
8
8
|
export { Grid as AstryxGrid, GridSpan } from '@astryxdesign/core';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/layout/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { Flex } from "../ui/flex.js";
|
|
|
2
2
|
import { Box } from "./Box.js";
|
|
3
3
|
import { HStack as HStack$1, Stack as Stack$1, StackItem as StackItem$1, VStack as VStack$1 } from "./Stack.js";
|
|
4
4
|
import { Col, Column, Row, RowContext, useRowContext } from "../ui/row-col.js";
|
|
5
|
-
import { Grid, GridItem } from "../ui/grid.js";
|
|
5
|
+
import { Grid, GridItem, GridRoot } from "../ui/grid.js";
|
|
6
6
|
import { Container } from "./Container.js";
|
|
7
7
|
import { Center as Center$1 } from "./Center.js";
|
|
8
8
|
import { Grid as AstryxGrid, GridSpan } from "@astryxdesign/core";
|
|
9
|
-
export { AstryxGrid, Box, Center$1 as Center, Col, Column, Container, Flex, Grid, GridItem, GridSpan, HStack$1 as HStack, Row, RowContext, Stack$1 as Stack, StackItem$1 as StackItem, VStack$1 as VStack, useRowContext };
|
|
9
|
+
export { AstryxGrid, Box, Center$1 as Center, Col, Column, Container, Flex, Grid, GridItem, GridRoot, GridSpan, HStack$1 as HStack, Row, RowContext, Stack$1 as Stack, StackItem$1 as StackItem, VStack$1 as VStack, useRowContext };
|
package/dist/lazyLoad.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
2
2
|
let react = require("react");
|
|
3
3
|
// src/lazyLoad.tsx
|
|
4
|
-
function lazyLoad(importFunc, fallback =
|
|
4
|
+
function lazyLoad(importFunc, fallback = null) {
|
|
5
5
|
const LazyComponent = (0, react.lazy)(importFunc);
|
|
6
6
|
return function LazyLoadedComponent(props) {
|
|
7
7
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Suspense, {
|
package/dist/lazyLoad.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazyLoad.d.ts","sourceRoot":"","sources":["../src/lazyLoad.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"lazyLoad.d.ts","sourceRoot":"","sources":["../src/lazyLoad.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGhG,wBAAgB,QAAQ,CAAC,CAAC,SAAS,aAAa,CAAC,GAAG,CAAC,EACnD,UAAU,EAAE,MAAM,OAAO,CAAC;IAAE,OAAO,EAAE,CAAC,CAAA;CAAE,CAAC,EACzC,QAAQ,GAAE,SAAgB,WAIiB,cAAc,CAAC,CAAC,CAAC,iCAO7D"}
|
package/dist/lazyLoad.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense, lazy } from "react";
|
|
3
3
|
// src/lazyLoad.tsx
|
|
4
|
-
function lazyLoad(importFunc, fallback =
|
|
4
|
+
function lazyLoad(importFunc, fallback = null) {
|
|
5
5
|
const LazyComponent = lazy(importFunc);
|
|
6
6
|
return function LazyLoadedComponent(props) {
|
|
7
7
|
return /* @__PURE__ */ jsx(Suspense, {
|
package/dist/theme/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
const require_tokens_stylex = require("./tokens.stylex.cjs");
|
|
3
|
-
const require_spacing = require("./spacing.cjs");
|
|
4
3
|
const require_zIndex = require("./zIndex.cjs");
|
|
4
|
+
const require_spacing = require("./spacing.cjs");
|
|
5
5
|
const require_types = require("./types.cjs");
|
|
6
6
|
const require_width = require("./width.cjs");
|
|
7
7
|
// src/theme/index.ts
|
package/dist/theme/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { colors, duration, easing, gaps, gutters, radii, radius, shadow, spacing, textColors, typography } from "./tokens.stylex.js";
|
|
3
|
-
import { ComponentSpacingPresetMap, isComponentSize, resolveGap, resolveSpacing, resolveSpacingPixel } from "./spacing.js";
|
|
4
3
|
import { ZIndexContext, ZIndexProvider, Z_INDEX_LAYERS, useZIndex } from "./zIndex.js";
|
|
4
|
+
import { ComponentSpacingPresetMap, isComponentSize, resolveGap, resolveSpacing, resolveSpacingPixel } from "./spacing.js";
|
|
5
5
|
import { COMPONENT_SIZES, DEFAULT_COMPONENT_SIZE } from "./types.js";
|
|
6
6
|
import { ComponentWidthPresetMap, resolveWidth } from "./width.js";
|
|
7
7
|
// src/theme/index.ts
|
package/dist/theme/zIndex.cjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
2
|
let react = require("react");
|
|
4
|
-
react = require_runtime.__toESM(react, 1);
|
|
5
3
|
let react_compiler_runtime = require("react/compiler-runtime");
|
|
6
4
|
// src/theme/zIndex.tsx
|
|
7
5
|
/**
|
package/dist/theme/zIndex.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Standard W3C & Design System semantic z-index scale.
|
|
4
4
|
* Follows layered architecture matching modern enterprise component libraries
|
|
@@ -25,7 +25,7 @@ export type ZIndexLayer = keyof typeof Z_INDEX_LAYERS;
|
|
|
25
25
|
* this context so that any child overlays (Select, Popover, DatePicker, nested Modals)
|
|
26
26
|
* are guaranteed to render on top of their parent, regardless of DOM mounting order.
|
|
27
27
|
*/
|
|
28
|
-
export declare const ZIndexContext:
|
|
28
|
+
export declare const ZIndexContext: import("react").Context<number | undefined>;
|
|
29
29
|
/**
|
|
30
30
|
* Hook to retrieve the current resolved z-index.
|
|
31
31
|
*
|
|
@@ -36,10 +36,10 @@ export declare function useZIndex(defaultLayer: ZIndexLayer | number, step?: num
|
|
|
36
36
|
export interface ZIndexProviderProps {
|
|
37
37
|
/** The base z-index value provided to children */
|
|
38
38
|
value: number;
|
|
39
|
-
children:
|
|
39
|
+
children: ReactNode;
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* Context Provider that establishes a new stacking level for nested overlays.
|
|
43
43
|
*/
|
|
44
|
-
export declare function ZIndexProvider({ value, children }: ZIndexProviderProps):
|
|
44
|
+
export declare function ZIndexProvider({ value, children }: ZIndexProviderProps): import("react").JSX.Element;
|
|
45
45
|
//# sourceMappingURL=zIndex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zIndex.d.ts","sourceRoot":"","sources":["../../src/theme/zIndex.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"zIndex.d.ts","sourceRoot":"","sources":["../../src/theme/zIndex.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,cAAc;aACzB,IAAI,EAAE,CAAC,GAAG;aACV,IAAI,EAAE,CAAC;aACP,MAAM,EAAE,EAAE;aACV,MAAM,EAAE,GAAG;aACX,MAAM,EAAE,GAAG;aACX,MAAM,EAAE,GAAG;aACX,OAAO,EAAE,GAAG;aACZ,KAAK,EAAE,GAAG;aACV,OAAO,EAAE,GAAG;aACZ,KAAK,EAAE,GAAG;aACV,OAAO,EAAE,GAAG;aACZ,GAAG,EAAE,IAAI;CACD,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,cAAc,CAAC;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,6CAA+C,CAAC;AAE1E;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,YAAY,EAAE,WAAW,GAAG,MAAM,EAAE,IAAI,SAAI,GAAG,MAAM,CAM9E;AAED,MAAM,WAAW,mBAAmB;IAClC,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,mBAAmB,+BAEtE"}
|