@janbox/storefront-ui 1.0.17 → 1.0.18
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/dist/lib/cascader/cascader.d.ts.map +1 -1
- package/dist/lib/cascader/cascader.js +17 -10
- package/dist/lib/cascader/types.d.ts +2 -3
- package/dist/lib/cascader/types.d.ts.map +1 -1
- package/dist/lib/loading/block-skeleton/block-skeleton.d.ts +3 -3
- package/dist/lib/loading/block-skeleton/block-skeleton.d.ts.map +1 -1
- package/dist/lib/loading/block-skeleton/block-skeleton.js +18 -4
- package/dist/lib/loading/image-skeleton/image-skeleton.d.ts +1 -1
- package/dist/lib/loading/image-skeleton/image-skeleton.d.ts.map +1 -1
- package/dist/lib/loading/image-skeleton/image-skeleton.js +9 -4
- package/dist/lib/loading/image-skeleton/types.d.ts +2 -2
- package/dist/lib/loading/image-skeleton/types.d.ts.map +1 -1
- package/dist/lib/loading/loading-overlay/loading-overlay.d.ts +1 -1
- package/dist/lib/loading/loading-overlay/loading-overlay.d.ts.map +1 -1
- package/dist/lib/loading/loading-overlay/loading-overlay.js +16 -3
- package/dist/lib/loading/loading-overlay/types.d.ts +3 -4
- package/dist/lib/loading/loading-overlay/types.d.ts.map +1 -1
- package/dist/lib/loading/text-skeleton/text-skeleton.d.ts +1 -1
- package/dist/lib/loading/text-skeleton/text-skeleton.d.ts.map +1 -1
- package/dist/lib/loading/text-skeleton/text-skeleton.js +12 -6
- package/dist/lib/loading/text-skeleton/types.d.ts +2 -2
- package/dist/lib/loading/text-skeleton/types.d.ts.map +1 -1
- package/dist/lib/select/select.d.ts.map +1 -1
- package/dist/lib/select/select.js +15 -9
- package/dist/lib/select/types.d.ts +2 -3
- package/dist/lib/select/types.d.ts.map +1 -1
- package/dist/lib/table/table-body/table-body.d.ts +1 -1
- package/dist/lib/table/table-body/table-body.d.ts.map +1 -1
- package/dist/lib/table/table-body/table-body.js +13 -8
- package/dist/lib/table/table-body/types.d.ts +2 -2
- package/dist/lib/table/table-body/types.d.ts.map +1 -1
- package/dist/lib/table/table-head/table-head.d.ts +1 -1
- package/dist/lib/table/table-head/table-head.d.ts.map +1 -1
- package/dist/lib/table/table-head/table-head.js +12 -8
- package/dist/lib/table/table-head/types.d.ts +2 -2
- package/dist/lib/table/table-head/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cascader.d.ts","sourceRoot":"","sources":["../../../src/lib/cascader/cascader.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"cascader.d.ts","sourceRoot":"","sources":["../../../src/lib/cascader/cascader.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAgBxC,eAAO,MAAM,QAAQ,uBAAwB,aAAa,qDAwJzD,CAAC"}
|
|
@@ -4,13 +4,13 @@ import { isNil } from "lodash-es";
|
|
|
4
4
|
import { CascaderFloatingContent } from "./cascader-floating-content.js";
|
|
5
5
|
import { getCascaderProps } from "./helpers.js";
|
|
6
6
|
import ArrowDownIcon from "../../assets/svg/arrow-down.svg.js";
|
|
7
|
+
import { mediaQuery } from "../../theme/screens.js";
|
|
7
8
|
import { getColorVar } from "../../theme/palette.js";
|
|
8
9
|
import { getTypographyVar } from "../../theme/typography.js";
|
|
9
10
|
import { truncateStyle } from "../../constants/emotion.js";
|
|
10
11
|
import { getSizeVariantState } from "../../utils/index.js";
|
|
11
12
|
import { useControllableState } from "../../hooks/use-controllable-state.js";
|
|
12
13
|
import { SvgLoader } from "../../components/svg-loader.js";
|
|
13
|
-
import { Primitive } from "../primitive/primitive.js";
|
|
14
14
|
import { Floating } from "../floating/floating/floating.js";
|
|
15
15
|
import { FloatingTrigger } from "../floating/floating-trigger/floating-trigger.js";
|
|
16
16
|
import { InputMask as ForwardRefInputMask } from "../input-mask/input-mask.js";
|
|
@@ -18,7 +18,7 @@ import { FloatingContent } from "../floating/floating-content/floating-content.j
|
|
|
18
18
|
import { FormHelperText } from "../form-helper-text/form-helper-text.js";
|
|
19
19
|
const DEFAULT_SEPARATOR = "/";
|
|
20
20
|
const Cascader = ({ ref, ..._props }) => {
|
|
21
|
-
var _a;
|
|
21
|
+
var _a, _b, _c, _d, _e;
|
|
22
22
|
const {
|
|
23
23
|
placement = "bottom-start",
|
|
24
24
|
open,
|
|
@@ -75,15 +75,22 @@ const Cascader = ({ ref, ..._props }) => {
|
|
|
75
75
|
return getTypographyVar(textVariant);
|
|
76
76
|
};
|
|
77
77
|
return /* @__PURE__ */ jsxs(
|
|
78
|
-
|
|
78
|
+
"div",
|
|
79
79
|
{
|
|
80
80
|
...containerProps,
|
|
81
|
-
css:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
css: [
|
|
82
|
+
{
|
|
83
|
+
display: "flex",
|
|
84
|
+
flexDirection: "column",
|
|
85
|
+
...fullWidth ? { width: "100%" } : {}
|
|
86
|
+
},
|
|
87
|
+
(_a = containerProps == null ? void 0 : containerProps.xs) == null ? void 0 : _a.css,
|
|
88
|
+
{
|
|
89
|
+
[mediaQuery("sm")]: (_b = containerProps == null ? void 0 : containerProps.sm) == null ? void 0 : _b.css,
|
|
90
|
+
[mediaQuery("md")]: (_c = containerProps == null ? void 0 : containerProps.md) == null ? void 0 : _c.css,
|
|
91
|
+
[mediaQuery("lg")]: (_d = containerProps == null ? void 0 : containerProps.lg) == null ? void 0 : _d.css
|
|
92
|
+
}
|
|
93
|
+
],
|
|
87
94
|
children: [
|
|
88
95
|
/* @__PURE__ */ jsxs(
|
|
89
96
|
Floating,
|
|
@@ -129,7 +136,7 @@ const Cascader = ({ ref, ..._props }) => {
|
|
|
129
136
|
textAlign: "left",
|
|
130
137
|
...truncateStyle
|
|
131
138
|
},
|
|
132
|
-
getTextCss((
|
|
139
|
+
getTextCss((_e = rest.xs) == null ? void 0 : _e.size)
|
|
133
140
|
],
|
|
134
141
|
children: selectedPath.length > 0 ? /* @__PURE__ */ jsx("div", { children: valueRenderer ?? selectedPath.join(" / ") }) : /* @__PURE__ */ jsx("div", { css: { color: getColorVar("neutral.400") }, children: placeholder })
|
|
135
142
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { HTMLAttributes, JSX, ReactNode } from 'react';
|
|
2
2
|
import { Placement, UseFloatingOptions } from '@floating-ui/react';
|
|
3
|
-
import { ResponsiveDesign } from '@janbox/storefront-ui/types';
|
|
3
|
+
import { PropsWithCSS, ResponsiveDesign } from '@janbox/storefront-ui/types';
|
|
4
4
|
import { InputProps } from '../input';
|
|
5
5
|
import { InputMaskProps, InputMaskResponsiveProps } from '../input-mask/types';
|
|
6
6
|
import { ShallowMerge } from '../../types';
|
|
7
|
-
import { PrimitiveProps } from '../primitive';
|
|
8
7
|
export type CascaderResponsiveProps = InputMaskResponsiveProps;
|
|
9
8
|
export type CascaderOptionValue = string | number;
|
|
10
9
|
export interface CascaderOption {
|
|
@@ -49,7 +48,7 @@ interface CascaderExtendedProps extends ResponsiveDesign<CascaderResponsiveProps
|
|
|
49
48
|
/** Helper text below the input */
|
|
50
49
|
helperText?: string;
|
|
51
50
|
/** Props for the container div */
|
|
52
|
-
containerProps?:
|
|
51
|
+
containerProps?: ShallowMerge<JSX.IntrinsicElements['div'], ResponsiveDesign<PropsWithCSS>>;
|
|
53
52
|
/** Props for the search input */
|
|
54
53
|
inputProps?: InputProps;
|
|
55
54
|
/** Whether component takes full width */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/cascader/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAA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1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export type BlockSkeletonProps =
|
|
4
|
-
export declare const BlockSkeleton: (props: BlockSkeletonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
import { PropsWithCSS, ResponsiveDesign, ShallowMerge } from '../../../types';
|
|
3
|
+
export type BlockSkeletonProps = ShallowMerge<JSX.IntrinsicElements['div'], ResponsiveDesign<PropsWithCSS>>;
|
|
4
|
+
export declare const BlockSkeleton: ({ xs, sm, md, lg, ...props }: BlockSkeletonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
5
|
//# sourceMappingURL=block-skeleton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-skeleton.d.ts","sourceRoot":"","sources":["../../../../src/lib/loading/block-skeleton/block-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAI5B,OAAO,
|
|
1
|
+
{"version":3,"file":"block-skeleton.d.ts","sourceRoot":"","sources":["../../../../src/lib/loading/block-skeleton/block-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAI5B,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvE,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC;AAE5G,eAAO,MAAM,aAAa,iCAAkC,kBAAkB,qDAgB7E,CAAC"}
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
import { jsx } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { animatePulseStyle } from "../../../constants/emotion.js";
|
|
3
|
-
import "
|
|
3
|
+
import { mediaQuery } from "../../../theme/screens.js";
|
|
4
4
|
import { getColorVar } from "../../../theme/palette.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const BlockSkeleton = ({ xs, sm, md, lg, ...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
css: [
|
|
10
|
+
animatePulseStyle,
|
|
11
|
+
{ borderRadius: 4, backgroundColor: getColorVar("neutral.200") },
|
|
12
|
+
xs == null ? void 0 : xs.css,
|
|
13
|
+
{
|
|
14
|
+
[mediaQuery("sm")]: sm == null ? void 0 : sm.css,
|
|
15
|
+
[mediaQuery("md")]: md == null ? void 0 : md.css,
|
|
16
|
+
[mediaQuery("lg")]: lg == null ? void 0 : lg.css
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
...props
|
|
20
|
+
}
|
|
21
|
+
);
|
|
8
22
|
};
|
|
9
23
|
export {
|
|
10
24
|
BlockSkeleton
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ImageSkeletonProps } from './types';
|
|
2
|
-
export declare const ImageSkeleton: (props: ImageSkeletonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const ImageSkeleton: ({ xs, sm, md, lg, ...props }: ImageSkeletonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=image-skeleton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-skeleton.d.ts","sourceRoot":"","sources":["../../../../src/lib/loading/image-skeleton/image-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"image-skeleton.d.ts","sourceRoot":"","sources":["../../../../src/lib/loading/image-skeleton/image-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAK7C,eAAO,MAAM,aAAa,iCAAkC,kBAAkB,qDAkC7E,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { animatePulseStyle } from "../../../constants/emotion.js";
|
|
3
|
-
import "
|
|
3
|
+
import { mediaQuery } from "../../../theme/screens.js";
|
|
4
4
|
import { getColorVar } from "../../../theme/palette.js";
|
|
5
|
-
|
|
6
|
-
const ImageSkeleton = (props) => {
|
|
5
|
+
const ImageSkeleton = ({ xs, sm, md, lg, ...props }) => {
|
|
7
6
|
return /* @__PURE__ */ jsx(
|
|
8
|
-
|
|
7
|
+
"div",
|
|
9
8
|
{
|
|
10
9
|
css: [
|
|
11
10
|
animatePulseStyle,
|
|
@@ -17,6 +16,12 @@ const ImageSkeleton = (props) => {
|
|
|
17
16
|
height: "100%",
|
|
18
17
|
borderRadius: "0.25rem",
|
|
19
18
|
backgroundColor: getColorVar("neutral.200")
|
|
19
|
+
},
|
|
20
|
+
xs == null ? void 0 : xs.css,
|
|
21
|
+
{
|
|
22
|
+
[mediaQuery("sm")]: sm == null ? void 0 : sm.css,
|
|
23
|
+
[mediaQuery("md")]: md == null ? void 0 : md.css,
|
|
24
|
+
[mediaQuery("lg")]: lg == null ? void 0 : lg.css
|
|
20
25
|
}
|
|
21
26
|
],
|
|
22
27
|
...props,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ShallowMerge, ResponsiveDesign, PropsWithCSS } from '../../../types';
|
|
2
2
|
import { JSX } from 'react';
|
|
3
|
-
export type ImageSkeletonProps =
|
|
3
|
+
export type ImageSkeletonProps = ShallowMerge<JSX.IntrinsicElements['div'], ResponsiveDesign<PropsWithCSS>>;
|
|
4
4
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/loading/image-skeleton/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/loading/image-skeleton/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LoadingOverlayProps } from './types';
|
|
2
|
-
export declare const LoadingOverlay: ({ isLoading, iconProps, color, style, size, children, ...props }: LoadingOverlayProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const LoadingOverlay: ({ isLoading, iconProps, color, style, size, children, xs, sm, md, lg, ...props }: LoadingOverlayProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=loading-overlay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading-overlay.d.ts","sourceRoot":"","sources":["../../../../src/lib/loading/loading-overlay/loading-overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAQ9C,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"loading-overlay.d.ts","sourceRoot":"","sources":["../../../../src/lib/loading/loading-overlay/loading-overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAQ9C,eAAO,MAAM,cAAc,qFAYxB,mBAAmB,qDA0CrB,CAAC"}
|
|
@@ -3,7 +3,8 @@ import { SvgLoader } from "../../../components/svg-loader.js";
|
|
|
3
3
|
import { animateSpinStyle } from "../../../constants/emotion.js";
|
|
4
4
|
import LoadingIcon from "../../../assets/svg/loading-waiting.svg.js";
|
|
5
5
|
import { getColorShadesByVariant } from "../../../utils/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { mediaQuery } from "../../../theme/screens.js";
|
|
7
|
+
import "../../../theme/palette.js";
|
|
7
8
|
const LoadingOverlay = ({
|
|
8
9
|
isLoading = false,
|
|
9
10
|
iconProps,
|
|
@@ -11,19 +12,31 @@ const LoadingOverlay = ({
|
|
|
11
12
|
style,
|
|
12
13
|
size = 32,
|
|
13
14
|
children,
|
|
15
|
+
xs,
|
|
16
|
+
sm,
|
|
17
|
+
md,
|
|
18
|
+
lg,
|
|
14
19
|
...props
|
|
15
20
|
}) => {
|
|
16
21
|
const { main } = getColorShadesByVariant(color);
|
|
17
22
|
return /* @__PURE__ */ jsxs(
|
|
18
|
-
|
|
23
|
+
"div",
|
|
19
24
|
{
|
|
20
25
|
style: {
|
|
21
26
|
minWidth: size,
|
|
22
27
|
minHeight: size,
|
|
23
28
|
...style
|
|
24
29
|
},
|
|
25
|
-
css: { position: "relative" },
|
|
26
30
|
...props,
|
|
31
|
+
css: [
|
|
32
|
+
{ position: "relative" },
|
|
33
|
+
xs == null ? void 0 : xs.css,
|
|
34
|
+
{
|
|
35
|
+
[mediaQuery("sm")]: sm == null ? void 0 : sm.css,
|
|
36
|
+
[mediaQuery("md")]: md == null ? void 0 : md.css,
|
|
37
|
+
[mediaQuery("lg")]: lg == null ? void 0 : lg.css
|
|
38
|
+
}
|
|
39
|
+
],
|
|
27
40
|
children: [
|
|
28
41
|
children,
|
|
29
42
|
isLoading && /* @__PURE__ */ jsx(
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { ColorVariant, ShallowMerge } from '../../../types';
|
|
3
|
-
|
|
4
|
-
export type LoadingOverlayProps = ShallowMerge<PrimitiveProps<JSX.IntrinsicElements['div'], HTMLDivElement>, {
|
|
2
|
+
import { ColorVariant, PropsWithCSS, ResponsiveDesign, ShallowMerge } from '../../../types';
|
|
3
|
+
export type LoadingOverlayProps = ShallowMerge<JSX.IntrinsicElements['div'], {
|
|
5
4
|
isLoading?: boolean;
|
|
6
5
|
size?: number;
|
|
7
6
|
color?: ColorVariant;
|
|
8
7
|
iconProps?: JSX.IntrinsicElements['div'];
|
|
9
|
-
}
|
|
8
|
+
} & ResponsiveDesign<PropsWithCSS>>;
|
|
10
9
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/loading/loading-overlay/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/loading/loading-overlay/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAErF,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAC5C,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAC5B;IACE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;CAC1C,GAAG,gBAAgB,CAAC,YAAY,CAAC,CACnC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextSkeletonProps } from './types';
|
|
2
|
-
export declare const TextSkeleton: (props: TextSkeletonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const TextSkeleton: ({ xs, sm, md, lg, ...props }: TextSkeletonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=text-skeleton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-skeleton.d.ts","sourceRoot":"","sources":["../../../../src/lib/loading/text-skeleton/text-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"text-skeleton.d.ts","sourceRoot":"","sources":["../../../../src/lib/loading/text-skeleton/text-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAK5C,eAAO,MAAM,YAAY,iCAAkC,iBAAiB,qDAyB3E,CAAC"}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { jsxs, jsx } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { animatePulseStyle } from "../../../constants/emotion.js";
|
|
3
|
-
import "
|
|
3
|
+
import { mediaQuery } from "../../../theme/screens.js";
|
|
4
4
|
import { getColorVar } from "../../../theme/palette.js";
|
|
5
|
-
|
|
6
|
-
const TextSkeleton = (props) => {
|
|
5
|
+
const TextSkeleton = ({ xs, sm, md, lg, ...props }) => {
|
|
7
6
|
return /* @__PURE__ */ jsxs(
|
|
8
|
-
|
|
7
|
+
"span",
|
|
9
8
|
{
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
css: [
|
|
10
|
+
{ width: "100%", overflow: "hidden", display: "inline-flex", alignItems: "center" },
|
|
11
|
+
xs == null ? void 0 : xs.css,
|
|
12
|
+
{
|
|
13
|
+
[mediaQuery("sm")]: sm == null ? void 0 : sm.css,
|
|
14
|
+
[mediaQuery("md")]: md == null ? void 0 : md.css,
|
|
15
|
+
[mediaQuery("lg")]: lg == null ? void 0 : lg.css
|
|
16
|
+
}
|
|
17
|
+
],
|
|
12
18
|
...props,
|
|
13
19
|
children: [
|
|
14
20
|
/* @__PURE__ */ jsx(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithCSS, ResponsiveDesign, ShallowMerge } from '../../../types';
|
|
2
2
|
import { JSX } from 'react';
|
|
3
|
-
export type TextSkeletonProps =
|
|
3
|
+
export type TextSkeletonProps = ShallowMerge<JSX.IntrinsicElements['span'], ResponsiveDesign<PropsWithCSS>>;
|
|
4
4
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/loading/text-skeleton/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/loading/text-skeleton/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/lib/select/select.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAkBzD,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,iBAAiB,sBAAsB,CAAC,SAAS,MAAM,8BAGrF,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/lib/select/select.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAkBzD,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,iBAAiB,sBAAsB,CAAC,SAAS,MAAM,8BAGrF,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,qDA+UnB,CAAC"}
|
|
@@ -9,6 +9,7 @@ import { useControllableState } from "../../hooks/use-controllable-state.js";
|
|
|
9
9
|
import { getResponsiveProp, getSizeVariantState } from "../../utils/index.js";
|
|
10
10
|
import ArrowDownIcon from "../../assets/svg/arrow-down.svg.js";
|
|
11
11
|
import CheckIcon from "../../assets/svg/done-check.svg.js";
|
|
12
|
+
import { mediaQuery } from "../../theme/screens.js";
|
|
12
13
|
import { getColorVar } from "../../theme/palette.js";
|
|
13
14
|
import { getTypographyVar } from "../../theme/typography.js";
|
|
14
15
|
import { ensureArray, matchSearch } from "../../utils/common.js";
|
|
@@ -17,14 +18,13 @@ import { FloatingTrigger } from "../floating/floating-trigger/floating-trigger.j
|
|
|
17
18
|
import { InputMask as ForwardRefInputMask } from "../input-mask/input-mask.js";
|
|
18
19
|
import { FloatingContent } from "../floating/floating-content/floating-content.js";
|
|
19
20
|
import { Input } from "../input/input.js";
|
|
20
|
-
import { Primitive } from "../primitive/primitive.js";
|
|
21
21
|
import { FormHelperText } from "../form-helper-text/form-helper-text.js";
|
|
22
22
|
const DEFAULT_DISPLAY_ROW_COUNT = 5;
|
|
23
23
|
const Select = ({
|
|
24
24
|
ref,
|
|
25
25
|
...props
|
|
26
26
|
}) => {
|
|
27
|
-
var _a, _b, _c, _d, _e;
|
|
27
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
28
28
|
const {
|
|
29
29
|
placement = "bottom-start",
|
|
30
30
|
open,
|
|
@@ -202,7 +202,7 @@ const Select = ({
|
|
|
202
202
|
return () => clearTimeout(timer);
|
|
203
203
|
}, [isOpen, setInputValue]);
|
|
204
204
|
return /* @__PURE__ */ jsxs(
|
|
205
|
-
|
|
205
|
+
"div",
|
|
206
206
|
{
|
|
207
207
|
...containerProps,
|
|
208
208
|
css: [
|
|
@@ -210,7 +210,13 @@ const Select = ({
|
|
|
210
210
|
display: "flex",
|
|
211
211
|
flexDirection: "column"
|
|
212
212
|
},
|
|
213
|
-
fullWidth && { width: "100%" }
|
|
213
|
+
fullWidth && { width: "100%" },
|
|
214
|
+
(_a = containerProps == null ? void 0 : containerProps.xs) == null ? void 0 : _a.css,
|
|
215
|
+
{
|
|
216
|
+
[mediaQuery("sm")]: (_b = containerProps == null ? void 0 : containerProps.sm) == null ? void 0 : _b.css,
|
|
217
|
+
[mediaQuery("md")]: (_c = containerProps == null ? void 0 : containerProps.md) == null ? void 0 : _c.css,
|
|
218
|
+
[mediaQuery("lg")]: (_d = containerProps == null ? void 0 : containerProps.lg) == null ? void 0 : _d.css
|
|
219
|
+
}
|
|
214
220
|
],
|
|
215
221
|
children: [
|
|
216
222
|
/* @__PURE__ */ jsxs(
|
|
@@ -265,7 +271,7 @@ const Select = ({
|
|
|
265
271
|
{
|
|
266
272
|
css: [
|
|
267
273
|
{ flex: 1, textAlign: "left", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
|
|
268
|
-
getTextCss((
|
|
274
|
+
getTextCss((_e = rest.xs) == null ? void 0 : _e.size)
|
|
269
275
|
],
|
|
270
276
|
children: selectedOption ? /* @__PURE__ */ jsx(Fragment, { children: selectedRenderer ? selectedRenderer(selectedOption) : getOptionLabel(selectedOption) }) : /* @__PURE__ */ jsx("span", { css: { color: getColorVar("neutral.400"), display: "block" }, children: placeholder })
|
|
271
277
|
}
|
|
@@ -290,10 +296,10 @@ const Select = ({
|
|
|
290
296
|
searchable && /* @__PURE__ */ jsx("div", { css: { paddingLeft: 8, paddingRight: 8, paddingBottom: 12, position: "relative" }, children: /* @__PURE__ */ jsx(
|
|
291
297
|
Input,
|
|
292
298
|
{
|
|
293
|
-
xs: { size: (
|
|
294
|
-
sm: { size: (
|
|
295
|
-
md: { size: (
|
|
296
|
-
lg: { size: (
|
|
299
|
+
xs: { size: (_f = rest.xs) == null ? void 0 : _f.size },
|
|
300
|
+
sm: { size: (_g = rest.sm) == null ? void 0 : _g.size },
|
|
301
|
+
md: { size: (_h = rest.md) == null ? void 0 : _h.size },
|
|
302
|
+
lg: { size: (_i = rest.lg) == null ? void 0 : _i.size },
|
|
297
303
|
value: inputValue,
|
|
298
304
|
...inputProps,
|
|
299
305
|
onChange: onInputChange,
|
|
@@ -3,8 +3,7 @@ import { Interpolation } from '@emotion/react';
|
|
|
3
3
|
import { Placement, UseFloatingOptions } from '@floating-ui/react';
|
|
4
4
|
import { InputProps } from '../input';
|
|
5
5
|
import { InputMaskProps, InputMaskResponsiveProps } from '../input-mask/types';
|
|
6
|
-
import { ResponsiveDesign, ShallowMerge } from '../../types';
|
|
7
|
-
import { PrimitiveProps } from '../primitive';
|
|
6
|
+
import { PropsWithCSS, ResponsiveDesign, ShallowMerge } from '../../types';
|
|
8
7
|
export type SelectResponsiveProps = InputMaskResponsiveProps;
|
|
9
8
|
export type SelectOptionValue = string | number | boolean;
|
|
10
9
|
interface SelectExtendedProps<V extends SelectOptionValue, O extends object> extends ResponsiveDesign<SelectResponsiveProps> {
|
|
@@ -25,7 +24,7 @@ interface SelectExtendedProps<V extends SelectOptionValue, O extends object> ext
|
|
|
25
24
|
selectedRenderer?: (option: O) => React.ReactNode;
|
|
26
25
|
error?: boolean;
|
|
27
26
|
helperText?: string;
|
|
28
|
-
containerProps?:
|
|
27
|
+
containerProps?: ShallowMerge<JSX.IntrinsicElements['div'], ResponsiveDesign<PropsWithCSS>>;
|
|
29
28
|
inputProps?: InputProps;
|
|
30
29
|
fullWidth?: boolean;
|
|
31
30
|
lazy?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/select/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC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C,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;IAClF,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACjB,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC3C,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IAClD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,YAAY,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC;IAC5F,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,YAAY,CAChH,cAAc,CAAC,GAAG,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,EAC/C,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,CAC1B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableBodyProps } from './types';
|
|
2
|
-
export declare const TableBody: ({ children, ...props }: TableBodyProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const TableBody: ({ xs, sm, md, lg, children, ref, ...props }: TableBodyProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=table-body.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-body.d.ts","sourceRoot":"","sources":["../../../../src/lib/table/table-body/table-body.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-body.d.ts","sourceRoot":"","sources":["../../../../src/lib/table/table-body/table-body.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,SAAS,gDAAiD,cAAc,qDAgCpF,CAAC"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import { mediaQuery } from "../../../theme/screens.js";
|
|
3
3
|
import { getColorVar } from "../../../theme/palette.js";
|
|
4
|
-
|
|
5
|
-
const TableBody = ({ children, ...props }) => {
|
|
4
|
+
const TableBody = ({ xs, sm, md, lg, children, ref, ...props }) => {
|
|
6
5
|
return /* @__PURE__ */ jsx(
|
|
7
|
-
|
|
6
|
+
"tbody",
|
|
8
7
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
css: {
|
|
8
|
+
css: [
|
|
9
|
+
{
|
|
12
10
|
"& > tr": {
|
|
13
11
|
position: "relative",
|
|
14
12
|
"&::after": {
|
|
@@ -22,9 +20,16 @@ const TableBody = ({ children, ...props }) => {
|
|
|
22
20
|
borderBottomColor: getColorVar("neutral.100")
|
|
23
21
|
}
|
|
24
22
|
}
|
|
23
|
+
},
|
|
24
|
+
xs == null ? void 0 : xs.css,
|
|
25
|
+
{
|
|
26
|
+
[mediaQuery("sm")]: sm == null ? void 0 : sm.css,
|
|
27
|
+
[mediaQuery("md")]: md == null ? void 0 : md.css,
|
|
28
|
+
[mediaQuery("lg")]: lg == null ? void 0 : lg.css
|
|
25
29
|
}
|
|
26
|
-
|
|
30
|
+
],
|
|
27
31
|
...props,
|
|
32
|
+
ref,
|
|
28
33
|
children
|
|
29
34
|
}
|
|
30
35
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ShallowMerge, ResponsiveDesign, PropsWithCSS } from '../../../types';
|
|
2
2
|
import { JSX } from 'react';
|
|
3
|
-
export type TableBodyProps =
|
|
3
|
+
export type TableBodyProps = ShallowMerge<JSX.IntrinsicElements['tbody'], ResponsiveDesign<PropsWithCSS>>;
|
|
4
4
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/table/table-body/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/table/table-body/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TableHeadProps } from './types';
|
|
2
|
-
export declare const TableHead: ({ children, ...props }: TableHeadProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const TableHead: ({ xs, sm, md, lg, children, ...props }: TableHeadProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=table-head.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-head.d.ts","sourceRoot":"","sources":["../../../../src/lib/table/table-head/table-head.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-head.d.ts","sourceRoot":"","sources":["../../../../src/lib/table/table-head/table-head.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAIzC,eAAO,MAAM,SAAS,2CAA4C,cAAc,qDA8B/E,CAAC"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import { mediaQuery } from "../../../theme/screens.js";
|
|
3
3
|
import { getColorVar } from "../../../theme/palette.js";
|
|
4
|
-
|
|
5
|
-
const TableHead = ({ children, ...props }) => {
|
|
4
|
+
const TableHead = ({ xs, sm, md, lg, children, ...props }) => {
|
|
6
5
|
return /* @__PURE__ */ jsx(
|
|
7
|
-
|
|
6
|
+
"thead",
|
|
8
7
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
css: {
|
|
8
|
+
css: [
|
|
9
|
+
{
|
|
12
10
|
position: "relative",
|
|
13
11
|
fontWeight: 500,
|
|
14
12
|
"&::after": {
|
|
@@ -21,8 +19,14 @@ const TableHead = ({ children, ...props }) => {
|
|
|
21
19
|
borderTopStyle: "solid",
|
|
22
20
|
borderTopColor: getColorVar("neutral.200")
|
|
23
21
|
}
|
|
22
|
+
},
|
|
23
|
+
xs == null ? void 0 : xs.css,
|
|
24
|
+
{
|
|
25
|
+
[mediaQuery("sm")]: sm == null ? void 0 : sm.css,
|
|
26
|
+
[mediaQuery("md")]: md == null ? void 0 : md.css,
|
|
27
|
+
[mediaQuery("lg")]: lg == null ? void 0 : lg.css
|
|
24
28
|
}
|
|
25
|
-
|
|
29
|
+
],
|
|
26
30
|
...props,
|
|
27
31
|
children
|
|
28
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ShallowMerge, ResponsiveDesign, PropsWithCSS } from '../../../types';
|
|
2
2
|
import { JSX } from 'react';
|
|
3
|
-
export type TableHeadProps =
|
|
3
|
+
export type TableHeadProps = ShallowMerge<JSX.IntrinsicElements['thead'], ResponsiveDesign<PropsWithCSS>>;
|
|
4
4
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/table/table-head/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/table/table-head/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC"}
|