@bitrise/bitkit-v2 0.3.317 → 0.3.319
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/components/BitkitPaginationLoadMore/BitkitPaginationLoadMore.d.ts +1 -0
- package/dist/components/BitkitPaginationLoadMore/BitkitPaginationLoadMore.js +16 -4
- package/dist/components/BitkitPaginationLoadMore/BitkitPaginationLoadMore.js.map +1 -1
- package/dist/components/BitkitTextArea/BitkitTextArea.d.ts +2 -1
- package/dist/components/BitkitTextArea/BitkitTextArea.js +34 -9
- package/dist/components/BitkitTextArea/BitkitTextArea.js.map +1 -1
- package/dist/theme/common/InputAndTextarea.common.d.ts +10 -0
- package/dist/theme/common/InputAndTextarea.common.js +15 -5
- package/dist/theme/common/InputAndTextarea.common.js.map +1 -1
- package/dist/theme/recipes/Textarea.recipe.d.ts +15 -0
- package/dist/theme/recipes/Textarea.recipe.js +32 -4
- package/dist/theme/recipes/Textarea.recipe.js.map +1 -1
- package/dist/theme/recipes/index.d.ts +3 -0
- package/dist/theme/recipes/index.js +1 -1
- package/dist/theme/slot-recipes/PaginationLoadMore.recipe.d.ts +10 -1
- package/dist/theme/slot-recipes/PaginationLoadMore.recipe.js +21 -4
- package/dist/theme/slot-recipes/PaginationLoadMore.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/index.d.ts +10 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import IconErrorCircleFilled from "../../icons/IconErrorCircleFilled.js";
|
|
1
2
|
import BitkitButton from "../BitkitButton/BitkitButton.js";
|
|
2
3
|
import BitkitInlineLoading from "../BitkitInlineLoading/BitkitInlineLoading.js";
|
|
3
4
|
import BitkitLinkButton from "../BitkitLinkButton/BitkitLinkButton.js";
|
|
@@ -5,16 +6,17 @@ import { Box } from "@chakra-ui/react/box";
|
|
|
5
6
|
import { chakra, useSlotRecipe } from "@chakra-ui/react/styled-system";
|
|
6
7
|
import { forwardRef } from "react";
|
|
7
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Text } from "@chakra-ui/react/text";
|
|
8
10
|
//#region lib/components/BitkitPaginationLoadMore/BitkitPaginationLoadMore.tsx
|
|
9
11
|
var BitkitPaginationLoadMore = forwardRef((props, ref) => {
|
|
10
|
-
const { loadingMore = false, onLoadMore, page, pageItemsCount, size = "md", totalCount, ...rest } = props;
|
|
12
|
+
const { loadError = false, loadingMore = false, onLoadMore, page, pageItemsCount, size = "md", totalCount, ...rest } = props;
|
|
11
13
|
const styles = useSlotRecipe({ key: "paginationLoadMore" })({ size });
|
|
12
14
|
const clampedPage = Math.max(1, page);
|
|
13
15
|
const clampedPageItemsCount = Math.max(1, pageItemsCount);
|
|
14
16
|
const shownCount = Math.min(clampedPage * clampedPageItemsCount, totalCount);
|
|
15
17
|
const isComplete = shownCount >= totalCount;
|
|
16
18
|
const loadMoreCount = Math.min(clampedPageItemsCount, totalCount - shownCount);
|
|
17
|
-
const inlineLoadingSize = size === "
|
|
19
|
+
const inlineLoadingSize = size === "xs" ? "sm" : "md";
|
|
18
20
|
return /* @__PURE__ */ jsxs(Box, {
|
|
19
21
|
css: styles.root,
|
|
20
22
|
ref,
|
|
@@ -27,7 +29,7 @@ var BitkitPaginationLoadMore = forwardRef((props, ref) => {
|
|
|
27
29
|
" of ",
|
|
28
30
|
totalCount
|
|
29
31
|
]
|
|
30
|
-
}), !isComplete && /* @__PURE__ */
|
|
32
|
+
}), !isComplete && /* @__PURE__ */ jsxs(Fragment$1, { children: [loadingMore ? /* @__PURE__ */ jsx(BitkitInlineLoading, {
|
|
31
33
|
color: "text/tertiary",
|
|
32
34
|
label: "Loading more...",
|
|
33
35
|
size: inlineLoadingSize
|
|
@@ -40,7 +42,17 @@ var BitkitPaginationLoadMore = forwardRef((props, ref) => {
|
|
|
40
42
|
size: size === "md" ? "md" : "sm",
|
|
41
43
|
variant: "tertiary",
|
|
42
44
|
children: `Load ${loadMoreCount} more`
|
|
43
|
-
})
|
|
45
|
+
}), loadError && !loadingMore && /* @__PURE__ */ jsxs(Box, {
|
|
46
|
+
css: styles.error,
|
|
47
|
+
role: "alert",
|
|
48
|
+
children: [/* @__PURE__ */ jsx(IconErrorCircleFilled, {
|
|
49
|
+
color: "icon/negative",
|
|
50
|
+
size: "16"
|
|
51
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
52
|
+
as: "span",
|
|
53
|
+
children: "Failed to load items."
|
|
54
|
+
})]
|
|
55
|
+
})] })]
|
|
44
56
|
});
|
|
45
57
|
});
|
|
46
58
|
BitkitPaginationLoadMore.displayName = "BitkitPaginationLoadMore";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitkitPaginationLoadMore.js","names":[],"sources":["../../../lib/components/BitkitPaginationLoadMore/BitkitPaginationLoadMore.tsx"],"sourcesContent":["import { Box, type BoxProps } from '@chakra-ui/react/box';\nimport { chakra, useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { forwardRef } from 'react';\n\nimport BitkitButton from '../BitkitButton/BitkitButton';\nimport BitkitInlineLoading from '../BitkitInlineLoading/BitkitInlineLoading';\nimport BitkitLinkButton from '../BitkitLinkButton/BitkitLinkButton';\n\nexport interface BitkitPaginationLoadMoreProps extends Omit<BoxProps, 'page' | 'size'> {\n loadingMore?: boolean;\n onLoadMore: () => void;\n page: number;\n pageItemsCount: number;\n size?: 'md' | 'sm' | 'xs';\n totalCount: number;\n}\n\nconst BitkitPaginationLoadMore = forwardRef<HTMLDivElement, BitkitPaginationLoadMoreProps>((props, ref) => {\n const { loadingMore = false
|
|
1
|
+
{"version":3,"file":"BitkitPaginationLoadMore.js","names":[],"sources":["../../../lib/components/BitkitPaginationLoadMore/BitkitPaginationLoadMore.tsx"],"sourcesContent":["import { Box, type BoxProps } from '@chakra-ui/react/box';\nimport { chakra, useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { Text } from '@chakra-ui/react/text';\nimport { forwardRef } from 'react';\n\nimport IconErrorCircleFilled from '../../icons/IconErrorCircleFilled';\nimport BitkitButton from '../BitkitButton/BitkitButton';\nimport BitkitInlineLoading from '../BitkitInlineLoading/BitkitInlineLoading';\nimport BitkitLinkButton from '../BitkitLinkButton/BitkitLinkButton';\n\nexport interface BitkitPaginationLoadMoreProps extends Omit<BoxProps, 'page' | 'size'> {\n loadError?: boolean;\n loadingMore?: boolean;\n onLoadMore: () => void;\n page: number;\n pageItemsCount: number;\n size?: 'md' | 'sm' | 'xs';\n totalCount: number;\n}\n\nconst BitkitPaginationLoadMore = forwardRef<HTMLDivElement, BitkitPaginationLoadMoreProps>((props, ref) => {\n const {\n loadError = false,\n loadingMore = false,\n onLoadMore,\n page,\n pageItemsCount,\n size = 'md',\n totalCount,\n ...rest\n } = props;\n\n const recipe = useSlotRecipe({ key: 'paginationLoadMore' });\n const styles = recipe({ size });\n\n const clampedPage = Math.max(1, page);\n const clampedPageItemsCount = Math.max(1, pageItemsCount);\n const shownCount = Math.min(clampedPage * clampedPageItemsCount, totalCount);\n const isComplete = shownCount >= totalCount;\n const loadMoreCount = Math.min(clampedPageItemsCount, totalCount - shownCount);\n\n // Follows the counter's textStyle, not the size name: sm uses body/md/regular too.\n const inlineLoadingSize = size === 'xs' ? 'sm' : 'md';\n\n return (\n <Box css={styles.root} ref={ref} {...rest}>\n <chakra.span css={styles.counter}>\n Showing {shownCount} of {totalCount}\n </chakra.span>\n {!isComplete && (\n <>\n {loadingMore ? (\n <BitkitInlineLoading color=\"text/tertiary\" label=\"Loading more...\" size={inlineLoadingSize} />\n ) : size === 'xs' ? (\n <BitkitLinkButton onClick={onLoadMore} size=\"sm\">\n {`Load ${loadMoreCount} more`}\n </BitkitLinkButton>\n ) : (\n <BitkitButton onClick={onLoadMore} size={size === 'md' ? 'md' : 'sm'} variant=\"tertiary\">\n {`Load ${loadMoreCount} more`}\n </BitkitButton>\n )}\n {/* A retry can report both states at once — the spinner replaces the stale error. */}\n {loadError && !loadingMore && (\n <Box css={styles.error} role=\"alert\">\n <IconErrorCircleFilled color=\"icon/negative\" size=\"16\" />\n <Text as=\"span\">Failed to load items.</Text>\n </Box>\n )}\n </>\n )}\n </Box>\n );\n});\n\nBitkitPaginationLoadMore.displayName = 'BitkitPaginationLoadMore';\n\nexport default BitkitPaginationLoadMore;\n"],"mappings":";;;;;;;;;;AAoBA,IAAM,2BAA2B,YAA2D,OAAO,QAAQ;CACzG,MAAM,EACJ,YAAY,OACZ,cAAc,OACd,YACA,MACA,gBACA,OAAO,MACP,YACA,GAAG,SACD;CAGJ,MAAM,SADS,cAAc,EAAE,KAAK,qBAAqB,CAC1C,CAAA,CAAO,EAAE,KAAK,CAAC;CAE9B,MAAM,cAAc,KAAK,IAAI,GAAG,IAAI;CACpC,MAAM,wBAAwB,KAAK,IAAI,GAAG,cAAc;CACxD,MAAM,aAAa,KAAK,IAAI,cAAc,uBAAuB,UAAU;CAC3E,MAAM,aAAa,cAAc;CACjC,MAAM,gBAAgB,KAAK,IAAI,uBAAuB,aAAa,UAAU;CAG7E,MAAM,oBAAoB,SAAS,OAAO,OAAO;CAEjD,OACE,qBAAC,KAAD;EAAK,KAAK,OAAO;EAAW;EAAK,GAAI;YAArC,CACE,qBAAC,OAAO,MAAR;GAAa,KAAK,OAAO;aAAzB;IAAkC;IACvB;IAAW;IAAK;GACd;MACZ,CAAC,cACA,qBAAA,YAAA,EAAA,UAAA,CACG,cACC,oBAAC,qBAAD;GAAqB,OAAM;GAAgB,OAAM;GAAkB,MAAM;EAAoB,CAAA,IAC3F,SAAS,OACX,oBAAC,kBAAD;GAAkB,SAAS;GAAY,MAAK;aACzC,QAAQ,cAAc;EACP,CAAA,IAElB,oBAAC,cAAD;GAAc,SAAS;GAAY,MAAM,SAAS,OAAO,OAAO;GAAM,SAAQ;aAC3E,QAAQ,cAAc;EACX,CAAA,GAGf,aAAa,CAAC,eACb,qBAAC,KAAD;GAAK,KAAK,OAAO;GAAO,MAAK;aAA7B,CACE,oBAAC,uBAAD;IAAuB,OAAM;IAAgB,MAAK;GAAM,CAAA,GACxD,oBAAC,MAAD;IAAM,IAAG;cAAO;GAA2B,CAAA,CACxC;IAEP,EAAA,CAAA,CAED;;AAET,CAAC;AAED,yBAAyB,cAAc"}
|
|
@@ -3,7 +3,8 @@ import { BitkitFieldProps } from '../BitkitField/BitkitField';
|
|
|
3
3
|
export interface BitkitTextAreaProps extends Omit<BitkitFieldProps, 'children' | 'state'> {
|
|
4
4
|
autoresize?: boolean;
|
|
5
5
|
placeholder?: string;
|
|
6
|
-
resize?: 'none' | '
|
|
6
|
+
resize?: 'none' | 'vertical';
|
|
7
|
+
rows?: number;
|
|
7
8
|
size?: 'md' | 'lg';
|
|
8
9
|
state?: 'disabled' | 'error' | 'readOnly' | 'warning';
|
|
9
10
|
textareaProps?: TextareaProps;
|
|
@@ -1,20 +1,45 @@
|
|
|
1
|
+
import IconErrorCircleFilled from "../../icons/IconErrorCircleFilled.js";
|
|
2
|
+
import IconWarningYellow from "../../icons/IconWarningYellow.js";
|
|
1
3
|
import BitkitField from "../BitkitField/BitkitField.js";
|
|
4
|
+
import { textareaStatusIcon } from "../../theme/recipes/Textarea.recipe.js";
|
|
5
|
+
import { Box } from "@chakra-ui/react/box";
|
|
2
6
|
import { forwardRef } from "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
8
|
import { Textarea } from "@chakra-ui/react/textarea";
|
|
5
9
|
//#region lib/components/BitkitTextArea/BitkitTextArea.tsx
|
|
6
10
|
var BitkitTextArea = forwardRef((props, ref) => {
|
|
7
|
-
const { autoresize, placeholder, resize, size, state, textareaProps, ...fieldProps } = props;
|
|
11
|
+
const { autoresize, placeholder, resize, rows = 3, size = "lg", state, textareaProps, ...fieldProps } = props;
|
|
12
|
+
const isInvalid = state === "error" || !!fieldProps.errorText;
|
|
13
|
+
const hasWarning = state === "warning" || !!fieldProps.warningText;
|
|
14
|
+
const iconSize = size === "md" ? "16" : "24";
|
|
15
|
+
const { paddingInlineEnd, ...iconInset } = textareaStatusIcon[size];
|
|
16
|
+
const statusIcon = isInvalid ? /* @__PURE__ */ jsx(IconErrorCircleFilled, {
|
|
17
|
+
color: "icon/negative",
|
|
18
|
+
position: "absolute",
|
|
19
|
+
size: iconSize,
|
|
20
|
+
...iconInset
|
|
21
|
+
}) : hasWarning ? /* @__PURE__ */ jsx(IconWarningYellow, {
|
|
22
|
+
position: "absolute",
|
|
23
|
+
size: iconSize,
|
|
24
|
+
...iconInset
|
|
25
|
+
}) : null;
|
|
26
|
+
const { css: consumerCss, ...restTextareaProps } = textareaProps ?? {};
|
|
27
|
+
const textareaCss = statusIcon != null ? [{ paddingInlineEnd }, consumerCss] : consumerCss;
|
|
8
28
|
return /* @__PURE__ */ jsx(BitkitField, {
|
|
9
29
|
state,
|
|
10
30
|
...fieldProps,
|
|
11
|
-
children: /* @__PURE__ */
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
31
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
32
|
+
position: "relative",
|
|
33
|
+
children: [/* @__PURE__ */ jsx(Textarea, {
|
|
34
|
+
ref,
|
|
35
|
+
autoresize,
|
|
36
|
+
css: textareaCss,
|
|
37
|
+
placeholder,
|
|
38
|
+
resize,
|
|
39
|
+
rows,
|
|
40
|
+
size,
|
|
41
|
+
...restTextareaProps
|
|
42
|
+
}), statusIcon]
|
|
18
43
|
})
|
|
19
44
|
});
|
|
20
45
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitkitTextArea.js","names":[],"sources":["../../../lib/components/BitkitTextArea/BitkitTextArea.tsx"],"sourcesContent":["import { Textarea, type TextareaProps } from '@chakra-ui/react/textarea';\nimport { forwardRef } from 'react';\n\nimport BitkitField, { type BitkitFieldProps } from '../BitkitField/BitkitField';\n\nexport interface BitkitTextAreaProps extends Omit<BitkitFieldProps, 'children' | 'state'> {\n autoresize?: boolean;\n placeholder?: string;\n resize?: 'none' | '
|
|
1
|
+
{"version":3,"file":"BitkitTextArea.js","names":[],"sources":["../../../lib/components/BitkitTextArea/BitkitTextArea.tsx"],"sourcesContent":["import { Box } from '@chakra-ui/react/box';\nimport { Textarea, type TextareaProps } from '@chakra-ui/react/textarea';\nimport { forwardRef } from 'react';\n\nimport { IconErrorCircleFilled, IconWarningYellow } from '../../icons';\nimport { textareaStatusIcon } from '../../theme/recipes/Textarea.recipe';\nimport BitkitField, { type BitkitFieldProps } from '../BitkitField/BitkitField';\n\nexport interface BitkitTextAreaProps extends Omit<BitkitFieldProps, 'children' | 'state'> {\n autoresize?: boolean;\n placeholder?: string;\n resize?: 'none' | 'vertical';\n rows?: number;\n size?: 'md' | 'lg';\n state?: 'disabled' | 'error' | 'readOnly' | 'warning';\n textareaProps?: TextareaProps;\n}\n\nconst BitkitTextArea = forwardRef<HTMLTextAreaElement, BitkitTextAreaProps>((props, ref) => {\n const { autoresize, placeholder, resize, rows = 3, size = 'lg', state, textareaProps, ...fieldProps } = props;\n\n const isInvalid = state === 'error' || !!fieldProps.errorText;\n const hasWarning = state === 'warning' || !!fieldProps.warningText;\n const iconSize = size === 'md' ? '16' : '24';\n\n const { paddingInlineEnd, ...iconInset } = textareaStatusIcon[size];\n const statusIcon = isInvalid ? (\n <IconErrorCircleFilled color=\"icon/negative\" position=\"absolute\" size={iconSize} {...iconInset} />\n ) : hasWarning ? (\n <IconWarningYellow position=\"absolute\" size={iconSize} {...iconInset} />\n ) : null;\n\n const { css: consumerCss, ...restTextareaProps } = textareaProps ?? {};\n const textareaCss = statusIcon != null ? [{ paddingInlineEnd }, consumerCss] : consumerCss;\n\n return (\n <BitkitField state={state} {...fieldProps}>\n <Box position=\"relative\">\n <Textarea\n ref={ref}\n autoresize={autoresize}\n css={textareaCss}\n placeholder={placeholder}\n resize={resize}\n rows={rows}\n size={size}\n {...restTextareaProps}\n />\n {statusIcon}\n </Box>\n </BitkitField>\n );\n});\n\nBitkitTextArea.displayName = 'BitkitTextArea';\n\nexport default BitkitTextArea;\n"],"mappings":";;;;;;;;;AAkBA,IAAM,iBAAiB,YAAsD,OAAO,QAAQ;CAC1F,MAAM,EAAE,YAAY,aAAa,QAAQ,OAAO,GAAG,OAAO,MAAM,OAAO,eAAe,GAAG,eAAe;CAExG,MAAM,YAAY,UAAU,WAAW,CAAC,CAAC,WAAW;CACpD,MAAM,aAAa,UAAU,aAAa,CAAC,CAAC,WAAW;CACvD,MAAM,WAAW,SAAS,OAAO,OAAO;CAExC,MAAM,EAAE,kBAAkB,GAAG,cAAc,mBAAmB;CAC9D,MAAM,aAAa,YACjB,oBAAC,uBAAD;EAAuB,OAAM;EAAgB,UAAS;EAAW,MAAM;EAAU,GAAI;CAAY,CAAA,IAC/F,aACF,oBAAC,mBAAD;EAAmB,UAAS;EAAW,MAAM;EAAU,GAAI;CAAY,CAAA,IACrE;CAEJ,MAAM,EAAE,KAAK,aAAa,GAAG,sBAAsB,iBAAiB,CAAC;CACrE,MAAM,cAAc,cAAc,OAAO,CAAC,EAAE,iBAAiB,GAAG,WAAW,IAAI;CAE/E,OACE,oBAAC,aAAD;EAAoB;EAAO,GAAI;YAC7B,qBAAC,KAAD;GAAK,UAAS;aAAd,CACE,oBAAC,UAAD;IACO;IACO;IACZ,KAAK;IACQ;IACL;IACF;IACA;IACN,GAAI;GACL,CAAA,GACA,UACE;;CACM,CAAA;AAEjB,CAAC;AAED,eAAe,cAAc"}
|
|
@@ -85,6 +85,16 @@ export declare const base: {
|
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
+
export declare const sizePadding: {
|
|
89
|
+
readonly md: {
|
|
90
|
+
readonly inline: 11;
|
|
91
|
+
readonly block: 7;
|
|
92
|
+
};
|
|
93
|
+
readonly lg: {
|
|
94
|
+
readonly inline: 15;
|
|
95
|
+
readonly block: 11;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
88
98
|
export declare const variants: {
|
|
89
99
|
size: {
|
|
90
100
|
md: {
|
|
@@ -42,16 +42,26 @@ var base = {
|
|
|
42
42
|
...text._disabled
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
+
var sizePadding = {
|
|
46
|
+
md: {
|
|
47
|
+
inline: 11,
|
|
48
|
+
block: 7
|
|
49
|
+
},
|
|
50
|
+
lg: {
|
|
51
|
+
inline: 15,
|
|
52
|
+
block: 11
|
|
53
|
+
}
|
|
54
|
+
};
|
|
45
55
|
var variants = { size: {
|
|
46
56
|
md: {
|
|
47
|
-
paddingInline: rem(
|
|
48
|
-
paddingBlock: rem(
|
|
57
|
+
paddingInline: rem(sizePadding.md.inline),
|
|
58
|
+
paddingBlock: rem(sizePadding.md.block),
|
|
49
59
|
textStyle: "body/md/regular",
|
|
50
60
|
"--input-height": rem(40)
|
|
51
61
|
},
|
|
52
62
|
lg: {
|
|
53
|
-
paddingInline: rem(
|
|
54
|
-
paddingBlock: rem(
|
|
63
|
+
paddingInline: rem(sizePadding.lg.inline),
|
|
64
|
+
paddingBlock: rem(sizePadding.lg.block),
|
|
55
65
|
textStyle: "body/lg/regular",
|
|
56
66
|
"--input-height": rem(48)
|
|
57
67
|
}
|
|
@@ -65,6 +75,6 @@ var defaultVariants = { size: "lg" };
|
|
|
65
75
|
*/
|
|
66
76
|
var singleLineInputOverrides = { lineHeight: "normal" };
|
|
67
77
|
//#endregion
|
|
68
|
-
export { base, defaultVariants, frame, singleLineInputOverrides, text, variants };
|
|
78
|
+
export { base, defaultVariants, frame, singleLineInputOverrides, sizePadding, text, variants };
|
|
69
79
|
|
|
70
80
|
//# sourceMappingURL=InputAndTextarea.common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputAndTextarea.common.js","names":[],"sources":["../../../lib/theme/common/InputAndTextarea.common.ts"],"sourcesContent":["import { type SystemStyleObject } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nexport const frame = {\n background: 'background/primary',\n borderColor: 'border/regular',\n borderRadius: '4',\n borderWidth: '1',\n boxShadow: 'inset/field',\n transition: 'border 200ms',\n _hover: {\n borderColor: 'border/hover',\n },\n _invalid: {\n borderColor: 'border/error',\n _hover: {\n borderColor: 'border/error',\n },\n },\n _readOnly: {\n background: 'background/disabled',\n _hover: {\n borderColor: 'border/regular',\n },\n },\n _disabled: {\n background: 'background/disabled',\n borderColor: 'border/disabled',\n cursor: 'not-allowed',\n _hover: {\n borderColor: 'border/disabled',\n },\n },\n} satisfies SystemStyleObject;\n\nexport const text = {\n appearance: 'none',\n color: 'input/text/inputValue',\n textStyle: 'body/lg/regular',\n _placeholder: {\n color: 'input/text/placeholder',\n },\n _disabled: {\n color: 'text/disabled',\n _placeholder: {\n color: 'text/disabled',\n },\n },\n} satisfies SystemStyleObject;\n\nexport const base = {\n ...frame,\n ...text,\n width: '100%',\n _disabled: {\n ...frame._disabled,\n ...text._disabled,\n },\n} satisfies SystemStyleObject;\n\nexport const variants = {\n size: {\n md: {\n paddingInline: rem(
|
|
1
|
+
{"version":3,"file":"InputAndTextarea.common.js","names":[],"sources":["../../../lib/theme/common/InputAndTextarea.common.ts"],"sourcesContent":["import { type SystemStyleObject } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nexport const frame = {\n background: 'background/primary',\n borderColor: 'border/regular',\n borderRadius: '4',\n borderWidth: '1',\n boxShadow: 'inset/field',\n transition: 'border 200ms',\n _hover: {\n borderColor: 'border/hover',\n },\n _invalid: {\n borderColor: 'border/error',\n _hover: {\n borderColor: 'border/error',\n },\n },\n _readOnly: {\n background: 'background/disabled',\n _hover: {\n borderColor: 'border/regular',\n },\n },\n _disabled: {\n background: 'background/disabled',\n borderColor: 'border/disabled',\n cursor: 'not-allowed',\n _hover: {\n borderColor: 'border/disabled',\n },\n },\n} satisfies SystemStyleObject;\n\nexport const text = {\n appearance: 'none',\n color: 'input/text/inputValue',\n textStyle: 'body/lg/regular',\n _placeholder: {\n color: 'input/text/placeholder',\n },\n _disabled: {\n color: 'text/disabled',\n _placeholder: {\n color: 'text/disabled',\n },\n },\n} satisfies SystemStyleObject;\n\nexport const base = {\n ...frame,\n ...text,\n width: '100%',\n _disabled: {\n ...frame._disabled,\n ...text._disabled,\n },\n} satisfies SystemStyleObject;\n\n// Text padding per size, in px. Single source of truth: the `variants` below derive their\n// paddingInline/paddingBlock from these, and the textarea recipe reuses them to align the\n// status icon with the text (see Textarea.recipe.ts).\nexport const sizePadding = {\n md: { inline: 11, block: 7 },\n lg: { inline: 15, block: 11 },\n} as const;\n\nexport const variants = {\n size: {\n md: {\n paddingInline: rem(sizePadding.md.inline),\n paddingBlock: rem(sizePadding.md.block),\n textStyle: 'body/md/regular',\n '--input-height': rem(40),\n },\n lg: {\n paddingInline: rem(sizePadding.lg.inline),\n paddingBlock: rem(sizePadding.lg.block),\n textStyle: 'body/lg/regular',\n '--input-height': rem(48),\n },\n },\n} satisfies Record<'size', Record<'md' | 'lg', SystemStyleObject>>;\n\nexport const defaultVariants: Record<'size', 'md' | 'lg'> = {\n size: 'lg',\n};\n\n/**\n * Additional styles for single-line `<input>` elements to opt out of the textStyle's explicit\n * line-height. With this override the caret follows the font's natural metrics (~font-size ×\n * 1.15) instead of the 20/24px line-height, so it no longer visually extends past sibling icons\n * in input groups. Textarea should NOT use this — multi-line text needs the textStyle line-height.\n */\nexport const singleLineInputOverrides = {\n lineHeight: 'normal',\n} satisfies SystemStyleObject;\n"],"mappings":";;AAIA,IAAa,QAAQ;CACnB,YAAY;CACZ,aAAa;CACb,cAAc;CACd,aAAa;CACb,WAAW;CACX,YAAY;CACZ,QAAQ,EACN,aAAa,eACf;CACA,UAAU;EACR,aAAa;EACb,QAAQ,EACN,aAAa,eACf;CACF;CACA,WAAW;EACT,YAAY;EACZ,QAAQ,EACN,aAAa,iBACf;CACF;CACA,WAAW;EACT,YAAY;EACZ,aAAa;EACb,QAAQ;EACR,QAAQ,EACN,aAAa,kBACf;CACF;AACF;AAEA,IAAa,OAAO;CAClB,YAAY;CACZ,OAAO;CACP,WAAW;CACX,cAAc,EACZ,OAAO,yBACT;CACA,WAAW;EACT,OAAO;EACP,cAAc,EACZ,OAAO,gBACT;CACF;AACF;AAEA,IAAa,OAAO;CAClB,GAAG;CACH,GAAG;CACH,OAAO;CACP,WAAW;EACT,GAAG,MAAM;EACT,GAAG,KAAK;CACV;AACF;AAKA,IAAa,cAAc;CACzB,IAAI;EAAE,QAAQ;EAAI,OAAO;CAAE;CAC3B,IAAI;EAAE,QAAQ;EAAI,OAAO;CAAG;AAC9B;AAEA,IAAa,WAAW,EACtB,MAAM;CACJ,IAAI;EACF,eAAe,IAAI,YAAY,GAAG,MAAM;EACxC,cAAc,IAAI,YAAY,GAAG,KAAK;EACtC,WAAW;EACX,kBAAkB,IAAI,EAAE;CAC1B;CACA,IAAI;EACF,eAAe,IAAI,YAAY,GAAG,MAAM;EACxC,cAAc,IAAI,YAAY,GAAG,KAAK;EACtC,WAAW;EACX,kBAAkB,IAAI,EAAE;CAC1B;AACF,EACF;AAEA,IAAa,kBAA+C,EAC1D,MAAM,KACR;;;;;;;AAQA,IAAa,2BAA2B,EACtC,YAAY,SACd"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
declare const textareaRecipe: import('@chakra-ui/react').RecipeDefinition<{
|
|
2
2
|
size: {
|
|
3
3
|
md: {
|
|
4
|
+
'&[rows="1"]': {
|
|
5
|
+
paddingBlock: string;
|
|
6
|
+
};
|
|
4
7
|
paddingInline: string;
|
|
5
8
|
paddingBlock: string;
|
|
6
9
|
textStyle: "body/md/regular";
|
|
@@ -14,4 +17,16 @@ declare const textareaRecipe: import('@chakra-ui/react').RecipeDefinition<{
|
|
|
14
17
|
};
|
|
15
18
|
};
|
|
16
19
|
}>;
|
|
20
|
+
export declare const textareaStatusIcon: {
|
|
21
|
+
md: {
|
|
22
|
+
insetBlockStart: string;
|
|
23
|
+
insetInlineEnd: string;
|
|
24
|
+
paddingInlineEnd: string;
|
|
25
|
+
};
|
|
26
|
+
lg: {
|
|
27
|
+
insetBlockStart: string;
|
|
28
|
+
insetInlineEnd: string;
|
|
29
|
+
paddingInlineEnd: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
17
32
|
export default textareaRecipe;
|
|
@@ -1,13 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { rem } from "../themeUtils.js";
|
|
2
|
+
import { base, defaultVariants, sizePadding, variants } from "../common/InputAndTextarea.common.js";
|
|
2
3
|
import { defineRecipe } from "@chakra-ui/react/styled-system";
|
|
3
4
|
//#region lib/theme/recipes/Textarea.recipe.ts
|
|
4
5
|
var textareaRecipe = defineRecipe({
|
|
5
6
|
className: "textarea",
|
|
6
|
-
base
|
|
7
|
-
|
|
7
|
+
base: {
|
|
8
|
+
...base,
|
|
9
|
+
display: "block",
|
|
10
|
+
minBlockSize: "var(--input-height)"
|
|
11
|
+
},
|
|
12
|
+
variants: { size: {
|
|
13
|
+
md: {
|
|
14
|
+
...variants.size.md,
|
|
15
|
+
"&[rows=\"1\"]": { paddingBlock: rem(9) }
|
|
16
|
+
},
|
|
17
|
+
lg: variants.size.lg
|
|
18
|
+
} },
|
|
8
19
|
defaultVariants
|
|
9
20
|
});
|
|
21
|
+
var ICON_GAP = 8;
|
|
22
|
+
var iconSize = {
|
|
23
|
+
md: 16,
|
|
24
|
+
lg: 24
|
|
25
|
+
};
|
|
26
|
+
var textareaStatusIcon = {
|
|
27
|
+
md: {
|
|
28
|
+
insetBlockStart: rem(sizePadding.md.block),
|
|
29
|
+
insetInlineEnd: rem(sizePadding.md.inline),
|
|
30
|
+
paddingInlineEnd: rem(sizePadding.md.inline + iconSize.md + ICON_GAP)
|
|
31
|
+
},
|
|
32
|
+
lg: {
|
|
33
|
+
insetBlockStart: rem(sizePadding.lg.block),
|
|
34
|
+
insetInlineEnd: rem(sizePadding.lg.inline),
|
|
35
|
+
paddingInlineEnd: rem(sizePadding.lg.inline + iconSize.lg + ICON_GAP)
|
|
36
|
+
}
|
|
37
|
+
};
|
|
10
38
|
//#endregion
|
|
11
|
-
export { textareaRecipe as default };
|
|
39
|
+
export { textareaRecipe as default, textareaStatusIcon };
|
|
12
40
|
|
|
13
41
|
//# sourceMappingURL=Textarea.recipe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.recipe.js","names":[],"sources":["../../../lib/theme/recipes/Textarea.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nimport { base, defaultVariants, variants } from '../common/InputAndTextarea.common';\n\nconst textareaRecipe = defineRecipe({\n className: 'textarea',\n base,\n variants,\n defaultVariants,\n});\n\nexport default textareaRecipe;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Textarea.recipe.js","names":[],"sources":["../../../lib/theme/recipes/Textarea.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nimport { base, defaultVariants, sizePadding, variants } from '../common/InputAndTextarea.common';\nimport { rem } from '../themeUtils';\n\n// Single recipe shared by the raw <Textarea> atom and BitkitTextArea (both get it via Chakra's\n// `<Textarea>`, which applies the `textarea` recipe by key).\nconst textareaRecipe = defineRecipe({\n className: 'textarea',\n base: {\n ...base,\n // A raw <textarea> is inline-block with baseline alignment, which reserves\n // descender space below it and inflates the gap to the helper text. Block\n // layout removes that phantom space.\n display: 'block',\n minBlockSize: 'var(--input-height)',\n },\n variants: {\n size: {\n md: {\n ...variants.size.md,\n '&[rows=\"1\"]': { paddingBlock: rem(9) },\n },\n lg: variants.size.lg,\n },\n },\n defaultVariants,\n});\n\n// Placement for the status icon (error/warning) that BitkitTextArea overlays on the textarea.\n// Derived from the text padding (`sizePadding`) so the icon aligns with the first line of text,\n// and paddingInlineEnd reserves room for it: text padding + icon size + gap.\nconst ICON_GAP = 8;\nconst iconSize = { md: 16, lg: 24 } as const;\n\nexport const textareaStatusIcon = {\n md: {\n insetBlockStart: rem(sizePadding.md.block),\n insetInlineEnd: rem(sizePadding.md.inline),\n paddingInlineEnd: rem(sizePadding.md.inline + iconSize.md + ICON_GAP),\n },\n lg: {\n insetBlockStart: rem(sizePadding.lg.block),\n insetInlineEnd: rem(sizePadding.lg.inline),\n paddingInlineEnd: rem(sizePadding.lg.inline + iconSize.lg + ICON_GAP),\n },\n};\n\nexport default textareaRecipe;\n"],"mappings":";;;;AAOA,IAAM,iBAAiB,aAAa;CAClC,WAAW;CACX,MAAM;EACJ,GAAG;EAIH,SAAS;EACT,cAAc;CAChB;CACA,UAAU,EACR,MAAM;EACJ,IAAI;GACF,GAAG,SAAS,KAAK;GACjB,iBAAe,EAAE,cAAc,IAAI,CAAC,EAAE;EACxC;EACA,IAAI,SAAS,KAAK;CACpB,EACF;CACA;AACF,CAAC;AAKD,IAAM,WAAW;AACjB,IAAM,WAAW;CAAE,IAAI;CAAI,IAAI;AAAG;AAElC,IAAa,qBAAqB;CAChC,IAAI;EACF,iBAAiB,IAAI,YAAY,GAAG,KAAK;EACzC,gBAAgB,IAAI,YAAY,GAAG,MAAM;EACzC,kBAAkB,IAAI,YAAY,GAAG,SAAS,SAAS,KAAK,QAAQ;CACtE;CACA,IAAI;EACF,iBAAiB,IAAI,YAAY,GAAG,KAAK;EACzC,gBAAgB,IAAI,YAAY,GAAG,MAAM;EACzC,kBAAkB,IAAI,YAAY,GAAG,SAAS,SAAS,KAAK,QAAQ;CACtE;AACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import colorButtonRecipe from "./ColorButton.recipe.js";
|
|
2
2
|
import inputRecipe from "./Input.recipe.js";
|
|
3
|
+
import textareaRecipe from "./Textarea.recipe.js";
|
|
3
4
|
import badgeRecipe from "./Badge.recipe.js";
|
|
4
5
|
import buttonRecipe from "./Button.recipe.js";
|
|
5
6
|
import closeButtonRecipe from "./CloseButton.recipe.js";
|
|
@@ -13,7 +14,6 @@ import selectableTagRecipe from "./SelectableTag.recipe.js";
|
|
|
13
14
|
import separatorRecipe from "./Separator.recipe.js";
|
|
14
15
|
import skeletonRecipe from "./Skeleton.recipe.js";
|
|
15
16
|
import spinnerRecipe from "./Spinner.recipe.js";
|
|
16
|
-
import textareaRecipe from "./Textarea.recipe.js";
|
|
17
17
|
import toggleButtonRecipe from "./ToggleButton.recipe.js";
|
|
18
18
|
//#region lib/theme/recipes/index.ts
|
|
19
19
|
var recipes = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const paginationLoadMoreRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"root" | "counter", {
|
|
1
|
+
declare const paginationLoadMoreRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"root" | "error" | "counter", {
|
|
2
2
|
size: {
|
|
3
3
|
md: {
|
|
4
4
|
root: {
|
|
@@ -11,6 +11,9 @@ declare const paginationLoadMoreRecipe: import('@chakra-ui/react').SlotRecipeDef
|
|
|
11
11
|
paddingInlineEnd: "24";
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
+
error: {
|
|
15
|
+
textStyle: "body/md/regular";
|
|
16
|
+
};
|
|
14
17
|
};
|
|
15
18
|
sm: {
|
|
16
19
|
root: {
|
|
@@ -23,6 +26,9 @@ declare const paginationLoadMoreRecipe: import('@chakra-ui/react').SlotRecipeDef
|
|
|
23
26
|
paddingInlineEnd: "16";
|
|
24
27
|
};
|
|
25
28
|
};
|
|
29
|
+
error: {
|
|
30
|
+
textStyle: "body/md/regular";
|
|
31
|
+
};
|
|
26
32
|
};
|
|
27
33
|
xs: {
|
|
28
34
|
root: {
|
|
@@ -35,6 +41,9 @@ declare const paginationLoadMoreRecipe: import('@chakra-ui/react').SlotRecipeDef
|
|
|
35
41
|
paddingInlineEnd: "12";
|
|
36
42
|
};
|
|
37
43
|
};
|
|
44
|
+
error: {
|
|
45
|
+
textStyle: "body/sm/regular";
|
|
46
|
+
};
|
|
38
47
|
};
|
|
39
48
|
};
|
|
40
49
|
}>;
|
|
@@ -3,7 +3,11 @@ import { defineSlotRecipe } from "@chakra-ui/react/styled-system";
|
|
|
3
3
|
//#region lib/theme/slot-recipes/PaginationLoadMore.recipe.ts
|
|
4
4
|
var paginationLoadMoreRecipe = defineSlotRecipe({
|
|
5
5
|
className: "pagination-load-more",
|
|
6
|
-
slots: [
|
|
6
|
+
slots: [
|
|
7
|
+
"root",
|
|
8
|
+
"counter",
|
|
9
|
+
"error"
|
|
10
|
+
],
|
|
7
11
|
base: {
|
|
8
12
|
root: {
|
|
9
13
|
alignItems: "center",
|
|
@@ -19,6 +23,16 @@ var paginationLoadMoreRecipe = defineSlotRecipe({
|
|
|
19
23
|
borderInlineEndStyle: "solid",
|
|
20
24
|
borderInlineEndWidth: "1"
|
|
21
25
|
}
|
|
26
|
+
},
|
|
27
|
+
error: {
|
|
28
|
+
alignItems: "center",
|
|
29
|
+
color: "text/negative",
|
|
30
|
+
display: "flex",
|
|
31
|
+
flex: "1",
|
|
32
|
+
gap: "4",
|
|
33
|
+
justifyContent: "flex-end",
|
|
34
|
+
minWidth: 0,
|
|
35
|
+
paddingBlock: "2"
|
|
22
36
|
}
|
|
23
37
|
},
|
|
24
38
|
variants: { size: {
|
|
@@ -30,7 +44,8 @@ var paginationLoadMoreRecipe = defineSlotRecipe({
|
|
|
30
44
|
counter: {
|
|
31
45
|
textStyle: "body/md/regular",
|
|
32
46
|
"&:has(+ *)": { paddingInlineEnd: "24" }
|
|
33
|
-
}
|
|
47
|
+
},
|
|
48
|
+
error: { textStyle: "body/md/regular" }
|
|
34
49
|
},
|
|
35
50
|
sm: {
|
|
36
51
|
root: {
|
|
@@ -40,7 +55,8 @@ var paginationLoadMoreRecipe = defineSlotRecipe({
|
|
|
40
55
|
counter: {
|
|
41
56
|
textStyle: "body/md/regular",
|
|
42
57
|
"&:has(+ *)": { paddingInlineEnd: "16" }
|
|
43
|
-
}
|
|
58
|
+
},
|
|
59
|
+
error: { textStyle: "body/md/regular" }
|
|
44
60
|
},
|
|
45
61
|
xs: {
|
|
46
62
|
root: {
|
|
@@ -50,7 +66,8 @@ var paginationLoadMoreRecipe = defineSlotRecipe({
|
|
|
50
66
|
counter: {
|
|
51
67
|
textStyle: "body/sm/regular",
|
|
52
68
|
"&:has(+ *)": { paddingInlineEnd: "12" }
|
|
53
|
-
}
|
|
69
|
+
},
|
|
70
|
+
error: { textStyle: "body/sm/regular" }
|
|
54
71
|
}
|
|
55
72
|
} },
|
|
56
73
|
defaultVariants: { size: "md" }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationLoadMore.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/PaginationLoadMore.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst paginationLoadMoreRecipe = defineSlotRecipe({\n className: 'pagination-load-more',\n slots: ['root', 'counter'],\n base: {\n root: {\n alignItems: 'center',\n display: 'flex',\n paddingBlock: '8',\n paddingInline: '16',\n },\n counter: {\n color: 'text/secondary',\n fontVariantNumeric: 'tabular-nums',\n '&:has(+ *)': {\n borderInlineEndColor: 'border/regular',\n borderInlineEndStyle: 'solid',\n borderInlineEndWidth: '1',\n },\n },\n },\n variants: {\n size: {\n md: {\n root: {\n gap: '24',\n minHeight: rem(56),\n },\n counter: {\n textStyle: 'body/md/regular',\n '&:has(+ *)': {\n paddingInlineEnd: '24',\n },\n },\n },\n sm: {\n root: {\n gap: '16',\n minHeight: '48',\n },\n counter: {\n textStyle: 'body/md/regular',\n '&:has(+ *)': {\n paddingInlineEnd: '16',\n },\n },\n },\n xs: {\n root: {\n gap: '12',\n minHeight: '32',\n },\n counter: {\n textStyle: 'body/sm/regular',\n '&:has(+ *)': {\n paddingInlineEnd: '12',\n },\n },\n },\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n\nexport default paginationLoadMoreRecipe;\n"],"mappings":";;;AAIA,IAAM,2BAA2B,iBAAiB;CAChD,WAAW;CACX,OAAO
|
|
1
|
+
{"version":3,"file":"PaginationLoadMore.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/PaginationLoadMore.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst paginationLoadMoreRecipe = defineSlotRecipe({\n className: 'pagination-load-more',\n slots: ['root', 'counter', 'error'],\n base: {\n root: {\n alignItems: 'center',\n display: 'flex',\n paddingBlock: '8',\n paddingInline: '16',\n },\n counter: {\n color: 'text/secondary',\n fontVariantNumeric: 'tabular-nums',\n '&:has(+ *)': {\n borderInlineEndColor: 'border/regular',\n borderInlineEndStyle: 'solid',\n borderInlineEndWidth: '1',\n },\n },\n error: {\n alignItems: 'center',\n color: 'text/negative',\n display: 'flex',\n flex: '1',\n gap: '4',\n justifyContent: 'flex-end',\n minWidth: 0,\n paddingBlock: '2',\n },\n },\n variants: {\n // md/sm keep a wider gap than the Figma spec (24/16 instead of 12/8). Figma expects the\n // tertiary button's own inline padding to make up the rest, but that puts its hover\n // background within 12/8px of the divider. Trading exact spec for hover breathing room.\n size: {\n md: {\n root: {\n gap: '24',\n minHeight: rem(56),\n },\n counter: {\n textStyle: 'body/md/regular',\n '&:has(+ *)': {\n paddingInlineEnd: '24',\n },\n },\n error: {\n textStyle: 'body/md/regular',\n },\n },\n sm: {\n root: {\n gap: '16',\n minHeight: '48',\n },\n counter: {\n textStyle: 'body/md/regular',\n '&:has(+ *)': {\n paddingInlineEnd: '16',\n },\n },\n error: {\n textStyle: 'body/md/regular',\n },\n },\n xs: {\n root: {\n gap: '12',\n minHeight: '32',\n },\n counter: {\n textStyle: 'body/sm/regular',\n '&:has(+ *)': {\n paddingInlineEnd: '12',\n },\n },\n error: {\n textStyle: 'body/sm/regular',\n },\n },\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n\nexport default paginationLoadMoreRecipe;\n"],"mappings":";;;AAIA,IAAM,2BAA2B,iBAAiB;CAChD,WAAW;CACX,OAAO;EAAC;EAAQ;EAAW;CAAO;CAClC,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,SAAS;GACT,cAAc;GACd,eAAe;EACjB;EACA,SAAS;GACP,OAAO;GACP,oBAAoB;GACpB,cAAc;IACZ,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;GACxB;EACF;EACA,OAAO;GACL,YAAY;GACZ,OAAO;GACP,SAAS;GACT,MAAM;GACN,KAAK;GACL,gBAAgB;GAChB,UAAU;GACV,cAAc;EAChB;CACF;CACA,UAAU,EAIR,MAAM;EACJ,IAAI;GACF,MAAM;IACJ,KAAK;IACL,WAAW,IAAI,EAAE;GACnB;GACA,SAAS;IACP,WAAW;IACX,cAAc,EACZ,kBAAkB,KACpB;GACF;GACA,OAAO,EACL,WAAW,kBACb;EACF;EACA,IAAI;GACF,MAAM;IACJ,KAAK;IACL,WAAW;GACb;GACA,SAAS;IACP,WAAW;IACX,cAAc,EACZ,kBAAkB,KACpB;GACF;GACA,OAAO,EACL,WAAW,kBACb;EACF;EACA,IAAI;GACF,MAAM;IACJ,KAAK;IACL,WAAW;GACb;GACA,SAAS;IACP,WAAW;IACX,cAAc,EACZ,kBAAkB,KACpB;GACF;GACA,OAAO,EACL,WAAW,kBACb;EACF;CACF,EACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC"}
|
|
@@ -1448,7 +1448,7 @@ declare const slotRecipes: {
|
|
|
1448
1448
|
};
|
|
1449
1449
|
};
|
|
1450
1450
|
}>;
|
|
1451
|
-
paginationLoadMore: import('@chakra-ui/react').SlotRecipeDefinition<"root" | "counter", {
|
|
1451
|
+
paginationLoadMore: import('@chakra-ui/react').SlotRecipeDefinition<"root" | "error" | "counter", {
|
|
1452
1452
|
size: {
|
|
1453
1453
|
md: {
|
|
1454
1454
|
root: {
|
|
@@ -1461,6 +1461,9 @@ declare const slotRecipes: {
|
|
|
1461
1461
|
paddingInlineEnd: "24";
|
|
1462
1462
|
};
|
|
1463
1463
|
};
|
|
1464
|
+
error: {
|
|
1465
|
+
textStyle: "body/md/regular";
|
|
1466
|
+
};
|
|
1464
1467
|
};
|
|
1465
1468
|
sm: {
|
|
1466
1469
|
root: {
|
|
@@ -1473,6 +1476,9 @@ declare const slotRecipes: {
|
|
|
1473
1476
|
paddingInlineEnd: "16";
|
|
1474
1477
|
};
|
|
1475
1478
|
};
|
|
1479
|
+
error: {
|
|
1480
|
+
textStyle: "body/md/regular";
|
|
1481
|
+
};
|
|
1476
1482
|
};
|
|
1477
1483
|
xs: {
|
|
1478
1484
|
root: {
|
|
@@ -1485,6 +1491,9 @@ declare const slotRecipes: {
|
|
|
1485
1491
|
paddingInlineEnd: "12";
|
|
1486
1492
|
};
|
|
1487
1493
|
};
|
|
1494
|
+
error: {
|
|
1495
|
+
textStyle: "body/sm/regular";
|
|
1496
|
+
};
|
|
1488
1497
|
};
|
|
1489
1498
|
};
|
|
1490
1499
|
}>;
|