@bitrise/bitkit-v2 0.3.192 → 0.3.194
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/BitkitDialog/BitkitDialog.d.ts +2 -2
- package/dist/components/BitkitDialog/BitkitDialog.js +2 -2
- package/dist/components/BitkitDialog/BitkitDialog.js.map +1 -1
- package/dist/components/BitkitDialog/BitkitDialogButtons.d.ts +4 -0
- package/dist/components/BitkitDialog/BitkitDialogButtons.js +17 -0
- package/dist/components/BitkitDialog/BitkitDialogButtons.js.map +1 -0
- package/dist/components/BitkitDialog/BitkitDialogContent.d.ts +2 -2
- package/dist/components/BitkitDialog/BitkitDialogContent.js +3 -3
- package/dist/components/BitkitDialog/BitkitDialogContent.js.map +1 -1
- package/dist/components/BitkitNativeSelect/BitkitNativeSelect.d.ts +7 -3
- package/dist/components/BitkitNativeSelect/BitkitNativeSelect.js +15 -6
- package/dist/components/BitkitNativeSelect/BitkitNativeSelect.js.map +1 -1
- package/dist/components/BitkitPagination/BitkitPagination.d.ts +21 -0
- package/dist/components/BitkitPagination/BitkitPagination.js +141 -0
- package/dist/components/BitkitPagination/BitkitPagination.js.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/main.js +3 -1
- package/dist/theme/slot-recipes/Dialog.recipe.js +1 -1
- package/dist/theme/slot-recipes/Dialog.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/NativeSelect.recipe.js +1 -1
- package/dist/theme/slot-recipes/NativeSelect.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Pagination.recipe.d.ts +35 -0
- package/dist/theme/slot-recipes/Pagination.recipe.js +73 -0
- package/dist/theme/slot-recipes/Pagination.recipe.js.map +1 -0
- package/dist/theme/slot-recipes/index.d.ts +34 -0
- package/dist/theme/slot-recipes/index.js +2 -0
- package/dist/theme/slot-recipes/index.js.map +1 -1
- package/dist/utilities/AssetSelectChevron.js +1 -0
- package/dist/utilities/AssetSelectChevron.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dialog } from '@chakra-ui/react/dialog';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
export interface BitkitDialogProps {
|
|
4
|
-
|
|
4
|
+
headerLabel?: string;
|
|
5
5
|
maxHeight?: string;
|
|
6
6
|
onOpenChange?: (details: {
|
|
7
7
|
open: boolean;
|
|
@@ -16,7 +16,7 @@ export interface BitkitDialogProps {
|
|
|
16
16
|
children?: ReactNode;
|
|
17
17
|
}
|
|
18
18
|
declare const BitkitDialog: {
|
|
19
|
-
({
|
|
19
|
+
({ headerLabel, maxHeight, onOpenChange, open, title, trigger, children, preventScroll, scrollBehavior, showScrollGradient, size, }: BitkitDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
displayName: string;
|
|
21
21
|
};
|
|
22
22
|
export declare const BitkitDialogActionTrigger: import('react').ForwardRefExoticComponent<Dialog.ActionTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
import { Portal } from "@chakra-ui/react/portal";
|
|
5
5
|
import { Dialog } from "@chakra-ui/react/dialog";
|
|
6
6
|
//#region lib/components/BitkitDialog/BitkitDialog.tsx
|
|
7
|
-
var BitkitDialog = ({
|
|
7
|
+
var BitkitDialog = ({ headerLabel, maxHeight, onOpenChange, open, title, trigger, children, preventScroll, scrollBehavior, showScrollGradient, size }) => /* @__PURE__ */ jsxs(BitkitDialogRoot, {
|
|
8
8
|
open,
|
|
9
9
|
preventScroll,
|
|
10
10
|
scrollBehavior,
|
|
@@ -14,7 +14,7 @@ var BitkitDialog = ({ label, maxHeight, onOpenChange, open, title, trigger, chil
|
|
|
14
14
|
asChild: true,
|
|
15
15
|
children: trigger
|
|
16
16
|
}), /* @__PURE__ */ jsxs(Portal, { children: [/* @__PURE__ */ jsx(Dialog.Backdrop, {}), /* @__PURE__ */ jsx(Dialog.Positioner, { children: /* @__PURE__ */ jsx(BitkitDialogContent, {
|
|
17
|
-
|
|
17
|
+
headerLabel,
|
|
18
18
|
maxHeight,
|
|
19
19
|
scrollBehavior,
|
|
20
20
|
showScrollGradient,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitkitDialog.js","names":[],"sources":["../../../lib/components/BitkitDialog/BitkitDialog.tsx"],"sourcesContent":["import { Dialog } from '@chakra-ui/react/dialog';\nimport { Portal } from '@chakra-ui/react/portal';\nimport { type ReactNode } from 'react';\n\nimport BitkitDialogContent from './BitkitDialogContent';\nimport BitkitDialogRoot from './BitkitDialogRoot';\n\nexport interface BitkitDialogProps {\n
|
|
1
|
+
{"version":3,"file":"BitkitDialog.js","names":[],"sources":["../../../lib/components/BitkitDialog/BitkitDialog.tsx"],"sourcesContent":["import { Dialog } from '@chakra-ui/react/dialog';\nimport { Portal } from '@chakra-ui/react/portal';\nimport { type ReactNode } from 'react';\n\nimport BitkitDialogContent from './BitkitDialogContent';\nimport BitkitDialogRoot from './BitkitDialogRoot';\n\nexport interface BitkitDialogProps {\n headerLabel?: string;\n maxHeight?: string;\n onOpenChange?: (details: { open: boolean }) => void;\n open?: boolean;\n preventScroll?: boolean;\n scrollBehavior?: 'inside' | 'outside';\n showScrollGradient?: boolean;\n size?: 'sm' | 'md' | 'lg';\n title: ReactNode;\n trigger?: ReactNode;\n children?: ReactNode;\n}\n\nconst BitkitDialog = ({\n headerLabel,\n maxHeight,\n onOpenChange,\n open,\n title,\n trigger,\n children,\n preventScroll,\n scrollBehavior,\n showScrollGradient,\n size,\n}: BitkitDialogProps) => (\n <BitkitDialogRoot\n open={open}\n preventScroll={preventScroll}\n scrollBehavior={scrollBehavior}\n size={size}\n onOpenChange={onOpenChange}\n >\n {trigger && <Dialog.Trigger asChild>{trigger}</Dialog.Trigger>}\n <Portal>\n <Dialog.Backdrop />\n <Dialog.Positioner>\n <BitkitDialogContent\n headerLabel={headerLabel}\n maxHeight={maxHeight}\n scrollBehavior={scrollBehavior}\n showScrollGradient={showScrollGradient}\n title={title}\n >\n {children}\n </BitkitDialogContent>\n </Dialog.Positioner>\n </Portal>\n </BitkitDialogRoot>\n);\n\nexport const BitkitDialogActionTrigger = Dialog.ActionTrigger;\nexport const BitkitDialogFooter = Dialog.Footer;\n\nBitkitDialog.displayName = 'BitkitDialog';\n\nexport default BitkitDialog;\n"],"mappings":";;;;;;AAqBA,IAAM,gBAAgB,EACpB,aACA,WACA,cACA,MACA,OACA,SACA,UACA,eACA,gBACA,oBACA,WAEA,qBAAC,kBAAD;CACQ;CACS;CACC;CACV;CACQ;WALhB,CAOG,WAAW,oBAAC,OAAO,SAAR;EAAgB,SAAA;YAAS;EAAyB,CAAA,EAC9D,qBAAC,QAAD,EAAA,UAAA,CACE,oBAAC,OAAO,UAAR,EAAmB,CAAA,EACnB,oBAAC,OAAO,YAAR,EAAA,UACE,oBAAC,qBAAD;EACe;EACF;EACK;EACI;EACb;EAEN;EACmB,CAAA,EACJ,CAAA,CACb,EAAA,CAAA,CACQ;;AAGoB,OAAO;AACd,OAAO;AAEzC,aAAa,cAAc"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { BoxProps } from '@chakra-ui/react/box';
|
|
2
|
+
export type BitkitDialogButtonsProps = BoxProps;
|
|
3
|
+
declare const BitkitDialogButtons: import('react').ForwardRefExoticComponent<BoxProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export default BitkitDialogButtons;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Box } from "@chakra-ui/react/box";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region lib/components/BitkitDialog/BitkitDialogButtons.tsx
|
|
5
|
+
var BitkitDialogButtons = forwardRef((props, ref) => /* @__PURE__ */ jsx(Box, {
|
|
6
|
+
ref,
|
|
7
|
+
display: "flex",
|
|
8
|
+
gap: "16",
|
|
9
|
+
justifyContent: "flex-end",
|
|
10
|
+
paddingBlockStart: "24",
|
|
11
|
+
...props
|
|
12
|
+
}));
|
|
13
|
+
BitkitDialogButtons.displayName = "BitkitDialogButtons";
|
|
14
|
+
//#endregion
|
|
15
|
+
export { BitkitDialogButtons as default };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=BitkitDialogButtons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BitkitDialogButtons.js","names":[],"sources":["../../../lib/components/BitkitDialog/BitkitDialogButtons.tsx"],"sourcesContent":["import { Box, type BoxProps } from '@chakra-ui/react/box';\nimport { forwardRef } from 'react';\n\nexport type BitkitDialogButtonsProps = BoxProps;\n\nconst BitkitDialogButtons = forwardRef<HTMLDivElement, BitkitDialogButtonsProps>((props, ref) => (\n <Box ref={ref} display=\"flex\" gap=\"16\" justifyContent=\"flex-end\" paddingBlockStart=\"24\" {...props} />\n));\n\nBitkitDialogButtons.displayName = 'BitkitDialogButtons';\n\nexport default BitkitDialogButtons;\n"],"mappings":";;;;AAKA,IAAM,sBAAsB,YAAsD,OAAO,QACvF,oBAAC,KAAD;CAAU;CAAK,SAAQ;CAAO,KAAI;CAAK,gBAAe;CAAW,mBAAkB;CAAK,GAAI;CAAS,CAAA,CACrG;AAEF,oBAAoB,cAAc"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export interface BitkitDialogContentProps {
|
|
3
|
-
|
|
3
|
+
headerLabel?: string;
|
|
4
4
|
maxHeight?: string;
|
|
5
5
|
scrollBehavior?: 'inside' | 'outside';
|
|
6
6
|
showScrollGradient?: boolean;
|
|
7
7
|
title: ReactNode;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
}
|
|
10
|
-
declare const BitkitDialogContent: ({
|
|
10
|
+
declare const BitkitDialogContent: ({ headerLabel, maxHeight, title, scrollBehavior, showScrollGradient, children, }: BitkitDialogContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export default BitkitDialogContent;
|
|
@@ -5,7 +5,7 @@ import { chakra, useSlotRecipe } from "@chakra-ui/react/styled-system";
|
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Dialog } from "@chakra-ui/react/dialog";
|
|
7
7
|
//#region lib/components/BitkitDialog/BitkitDialogContent.tsx
|
|
8
|
-
var BitkitDialogContent = ({
|
|
8
|
+
var BitkitDialogContent = ({ headerLabel, maxHeight, title, scrollBehavior = "outside", showScrollGradient = true, children }) => {
|
|
9
9
|
const styles = useSlotRecipe({ key: "dialog" })({});
|
|
10
10
|
return /* @__PURE__ */ jsx(Dialog.Content, {
|
|
11
11
|
maxHeight,
|
|
@@ -18,9 +18,9 @@ var BitkitDialogContent = ({ label, maxHeight, title, scrollBehavior = "outside"
|
|
|
18
18
|
display: "flex",
|
|
19
19
|
flexDirection: "column",
|
|
20
20
|
gap: "4",
|
|
21
|
-
children: [
|
|
21
|
+
children: [headerLabel && /* @__PURE__ */ jsx(chakra.p, {
|
|
22
22
|
css: styles.label,
|
|
23
|
-
children:
|
|
23
|
+
children: headerLabel
|
|
24
24
|
}), /* @__PURE__ */ jsx(Dialog.Title, { children: title })]
|
|
25
25
|
}), /* @__PURE__ */ jsx(Dialog.CloseTrigger, {
|
|
26
26
|
asChild: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitkitDialogContent.js","names":[],"sources":["../../../lib/components/BitkitDialog/BitkitDialogContent.tsx"],"sourcesContent":["import { Box } from '@chakra-ui/react/box';\nimport { Dialog } from '@chakra-ui/react/dialog';\nimport { chakra, type SystemStyleObject, useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { type ReactNode } from 'react';\n\nimport BitkitCloseButton from '../BitkitCloseButton/BitkitCloseButton';\nimport { DialogBodyContext } from './BitkitDialogBody';\n\nexport interface BitkitDialogContentProps {\n
|
|
1
|
+
{"version":3,"file":"BitkitDialogContent.js","names":[],"sources":["../../../lib/components/BitkitDialog/BitkitDialogContent.tsx"],"sourcesContent":["import { Box } from '@chakra-ui/react/box';\nimport { Dialog } from '@chakra-ui/react/dialog';\nimport { chakra, type SystemStyleObject, useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { type ReactNode } from 'react';\n\nimport BitkitCloseButton from '../BitkitCloseButton/BitkitCloseButton';\nimport { DialogBodyContext } from './BitkitDialogBody';\n\nexport interface BitkitDialogContentProps {\n headerLabel?: string;\n maxHeight?: string;\n scrollBehavior?: 'inside' | 'outside';\n showScrollGradient?: boolean;\n title: ReactNode;\n children?: ReactNode;\n}\n\nconst BitkitDialogContent = ({\n headerLabel,\n maxHeight,\n title,\n scrollBehavior = 'outside',\n showScrollGradient = true,\n children,\n}: BitkitDialogContentProps) => {\n const recipe = useSlotRecipe({ key: 'dialog' });\n const styles = recipe({}) as Record<string, SystemStyleObject>;\n\n return (\n <Dialog.Content maxHeight={maxHeight}>\n <DialogBodyContext.Provider value={{ scrollBehavior, showScrollGradient }}>\n <Dialog.Header>\n <Box display=\"flex\" flexDirection=\"column\" gap=\"4\">\n {headerLabel && <chakra.p css={styles.label}>{headerLabel}</chakra.p>}\n <Dialog.Title>{title}</Dialog.Title>\n </Box>\n <Dialog.CloseTrigger asChild>\n <BitkitCloseButton size=\"md\" />\n </Dialog.CloseTrigger>\n </Dialog.Header>\n {children}\n </DialogBodyContext.Provider>\n </Dialog.Content>\n );\n};\n\nexport default BitkitDialogContent;\n"],"mappings":";;;;;;;AAiBA,IAAM,uBAAuB,EAC3B,aACA,WACA,OACA,iBAAiB,WACjB,qBAAqB,MACrB,eAC8B;CAE9B,MAAM,SADS,cAAc,EAAE,KAAK,UAAU,CAAC,CACzB,EAAE,CAAC;AAEzB,QACE,oBAAC,OAAO,SAAR;EAA2B;YACzB,qBAAC,kBAAkB,UAAnB;GAA4B,OAAO;IAAE;IAAgB;IAAoB;aAAzE,CACE,qBAAC,OAAO,QAAR,EAAA,UAAA,CACE,qBAAC,KAAD;IAAK,SAAQ;IAAO,eAAc;IAAS,KAAI;cAA/C,CACG,eAAe,oBAAC,OAAO,GAAR;KAAU,KAAK,OAAO;eAAQ;KAAuB,CAAA,EACrE,oBAAC,OAAO,OAAR,EAAA,UAAe,OAAqB,CAAA,CAChC;OACN,oBAAC,OAAO,cAAR;IAAqB,SAAA;cACnB,oBAAC,mBAAD,EAAmB,MAAK,MAAO,CAAA;IACX,CAAA,CACR,EAAA,CAAA,EACf,SAC0B;;EACd,CAAA"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { NativeSelectRootProps } from '@chakra-ui/react/native-select';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ChangeEventHandler, ReactNode } from 'react';
|
|
3
3
|
import { BitkitFieldProps } from '../BitkitField/BitkitField.tsx';
|
|
4
|
-
export interface BitkitNativeSelectProps extends Omit<BitkitFieldProps, 'children' | 'disabled' | 'invalid' | 'readOnly'> {
|
|
4
|
+
export interface BitkitNativeSelectProps extends Omit<BitkitFieldProps, 'children' | 'disabled' | 'invalid' | 'onChange' | 'readOnly'> {
|
|
5
5
|
children: ReactNode;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
onChange?: ChangeEventHandler<HTMLSelectElement>;
|
|
6
9
|
placeholder?: string;
|
|
7
10
|
selectProps?: NativeSelectRootProps;
|
|
8
11
|
size?: 'md' | 'lg';
|
|
9
12
|
state?: 'disabled' | 'error' | 'readOnly' | 'warning';
|
|
13
|
+
value?: string;
|
|
10
14
|
}
|
|
11
|
-
declare const BitkitNativeSelect: import('react').ForwardRefExoticComponent<BitkitNativeSelectProps & import('react').RefAttributes<
|
|
15
|
+
declare const BitkitNativeSelect: import('react').ForwardRefExoticComponent<BitkitNativeSelectProps & import('react').RefAttributes<HTMLSelectElement>>;
|
|
12
16
|
export default BitkitNativeSelect;
|
|
@@ -6,12 +6,21 @@ import { useSlotRecipe } from "@chakra-ui/react/styled-system";
|
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { NativeSelect } from "@chakra-ui/react/native-select";
|
|
9
|
+
import { splitProps } from "@zag-js/utils";
|
|
9
10
|
//#region lib/components/BitkitNativeSelect/BitkitNativeSelect.tsx
|
|
11
|
+
var FIELD_PROPS = [
|
|
12
|
+
"defaultValue",
|
|
13
|
+
"name",
|
|
14
|
+
"onChange",
|
|
15
|
+
"placeholder",
|
|
16
|
+
"value"
|
|
17
|
+
];
|
|
10
18
|
var BitkitNativeSelect = forwardRef((props, ref) => {
|
|
11
|
-
const { children,
|
|
19
|
+
const { children, selectProps, size = "md", state, ...rest } = props;
|
|
20
|
+
const [nativeFieldProps, bitkitFieldProps] = splitProps(rest, [...FIELD_PROPS]);
|
|
12
21
|
const styles = useSlotRecipe({ key: "nativeSelect" })();
|
|
13
|
-
const hasWarning = state === "warning" || !!
|
|
14
|
-
const isInvalid = state === "error" || !!
|
|
22
|
+
const hasWarning = state === "warning" || !!bitkitFieldProps.warningText;
|
|
23
|
+
const isInvalid = state === "error" || !!bitkitFieldProps.errorText;
|
|
15
24
|
let statusIcon = void 0;
|
|
16
25
|
if (isInvalid) statusIcon = /* @__PURE__ */ jsx(IconErrorCircleFilled, {
|
|
17
26
|
size: size === "lg" ? "24" : "16",
|
|
@@ -24,16 +33,16 @@ var BitkitNativeSelect = forwardRef((props, ref) => {
|
|
|
24
33
|
color: "icon/warning"
|
|
25
34
|
});
|
|
26
35
|
return /* @__PURE__ */ jsx(BitkitField, {
|
|
27
|
-
ref,
|
|
28
36
|
state,
|
|
29
|
-
...
|
|
37
|
+
...bitkitFieldProps,
|
|
30
38
|
children: /* @__PURE__ */ jsxs(NativeSelect.Root, {
|
|
31
39
|
size,
|
|
32
40
|
...selectProps,
|
|
33
41
|
className: "group",
|
|
34
42
|
children: [
|
|
35
43
|
/* @__PURE__ */ jsx(NativeSelect.Field, {
|
|
36
|
-
|
|
44
|
+
ref,
|
|
45
|
+
...nativeFieldProps,
|
|
37
46
|
children
|
|
38
47
|
}),
|
|
39
48
|
statusIcon,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitkitNativeSelect.js","names":[],"sources":["../../../lib/components/BitkitNativeSelect/BitkitNativeSelect.tsx"],"sourcesContent":["import { NativeSelect, type NativeSelectRootProps } from '@chakra-ui/react/native-select';\nimport { useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { forwardRef, type ReactNode } from 'react';\n\nimport { IconErrorCircleFilled, IconWarningYellow } from '../../icons';\nimport AssetSelectChevron from '../../utilities/AssetSelectChevron.tsx';\nimport BitkitField, { type BitkitFieldProps } from '../BitkitField/BitkitField.tsx';\n\nexport interface BitkitNativeSelectProps extends Omit<\n BitkitFieldProps,\n 'children' | 'disabled' | 'invalid' | 'readOnly'\n> {\n children: ReactNode;\n placeholder?: string;\n selectProps?: NativeSelectRootProps;\n size?: 'md' | 'lg';\n state?: 'disabled' | 'error' | 'readOnly' | 'warning';\n}\n\nconst BitkitNativeSelect = forwardRef<
|
|
1
|
+
{"version":3,"file":"BitkitNativeSelect.js","names":[],"sources":["../../../lib/components/BitkitNativeSelect/BitkitNativeSelect.tsx"],"sourcesContent":["import { NativeSelect, type NativeSelectRootProps } from '@chakra-ui/react/native-select';\nimport { useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { splitProps } from '@zag-js/utils';\nimport { type ChangeEventHandler, forwardRef, type ReactNode } from 'react';\n\nimport { IconErrorCircleFilled, IconWarningYellow } from '../../icons';\nimport AssetSelectChevron from '../../utilities/AssetSelectChevron.tsx';\nimport BitkitField, { type BitkitFieldProps } from '../BitkitField/BitkitField.tsx';\n\nconst FIELD_PROPS = ['defaultValue', 'name', 'onChange', 'placeholder', 'value'] as const;\n\nexport interface BitkitNativeSelectProps extends Omit<\n BitkitFieldProps,\n 'children' | 'disabled' | 'invalid' | 'onChange' | 'readOnly'\n> {\n children: ReactNode;\n defaultValue?: string;\n name?: string;\n onChange?: ChangeEventHandler<HTMLSelectElement>;\n placeholder?: string;\n selectProps?: NativeSelectRootProps;\n size?: 'md' | 'lg';\n state?: 'disabled' | 'error' | 'readOnly' | 'warning';\n value?: string;\n}\n\nconst BitkitNativeSelect = forwardRef<HTMLSelectElement, BitkitNativeSelectProps>(\n (props: BitkitNativeSelectProps, ref) => {\n const { children, selectProps, size = 'md', state, ...rest } = props;\n const [nativeFieldProps, bitkitFieldProps] = splitProps(rest, [...FIELD_PROPS]);\n\n const recipe = useSlotRecipe({ key: 'nativeSelect' });\n const styles = recipe();\n\n const hasWarning = state === 'warning' || !!bitkitFieldProps.warningText;\n const isInvalid = state === 'error' || !!bitkitFieldProps.errorText;\n\n let statusIcon = undefined;\n if (isInvalid) {\n statusIcon = (\n <IconErrorCircleFilled size={size === 'lg' ? '24' : '16'} css={styles.statusIcon} color=\"icon/negative\" />\n );\n } else if (hasWarning) {\n statusIcon = (\n <IconWarningYellow size={size === 'lg' ? '24' : '16'} css={styles.statusIcon} color=\"icon/warning\" />\n );\n }\n\n return (\n <BitkitField state={state} {...bitkitFieldProps}>\n <NativeSelect.Root size={size} {...selectProps} className=\"group\">\n <NativeSelect.Field ref={ref} {...nativeFieldProps}>\n {children}\n </NativeSelect.Field>\n {statusIcon}\n <NativeSelect.Indicator asChild>\n <AssetSelectChevron />\n </NativeSelect.Indicator>\n </NativeSelect.Root>\n </BitkitField>\n );\n },\n);\n\nBitkitNativeSelect.displayName = 'BitkitNativeSelect';\n\nexport default BitkitNativeSelect;\n"],"mappings":";;;;;;;;;;AASA,IAAM,cAAc;CAAC;CAAgB;CAAQ;CAAY;CAAe;CAAQ;AAiBhF,IAAM,qBAAqB,YACxB,OAAgC,QAAQ;CACvC,MAAM,EAAE,UAAU,aAAa,OAAO,MAAM,OAAO,GAAG,SAAS;CAC/D,MAAM,CAAC,kBAAkB,oBAAoB,WAAW,MAAM,CAAC,GAAG,YAAY,CAAC;CAG/E,MAAM,SADS,cAAc,EAAE,KAAK,gBAAgB,CAAC,EAC9B;CAEvB,MAAM,aAAa,UAAU,aAAa,CAAC,CAAC,iBAAiB;CAC7D,MAAM,YAAY,UAAU,WAAW,CAAC,CAAC,iBAAiB;CAE1D,IAAI,aAAa,KAAA;AACjB,KAAI,UACF,cACE,oBAAC,uBAAD;EAAuB,MAAM,SAAS,OAAO,OAAO;EAAM,KAAK,OAAO;EAAY,OAAM;EAAkB,CAAA;UAEnG,WACT,cACE,oBAAC,mBAAD;EAAmB,MAAM,SAAS,OAAO,OAAO;EAAM,KAAK,OAAO;EAAY,OAAM;EAAiB,CAAA;AAIzG,QACE,oBAAC,aAAD;EAAoB;EAAO,GAAI;YAC7B,qBAAC,aAAa,MAAd;GAAyB;GAAM,GAAI;GAAa,WAAU;aAA1D;IACE,oBAAC,aAAa,OAAd;KAAyB;KAAK,GAAI;KAC/B;KACkB,CAAA;IACpB;IACD,oBAAC,aAAa,WAAd;KAAwB,SAAA;eACtB,oBAAC,oBAAD,EAAsB,CAAA;KACC,CAAA;IACP;;EACR,CAAA;EAGnB;AAED,mBAAmB,cAAc"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BoxProps } from '@chakra-ui/react/box';
|
|
2
|
+
export interface BitkitPaginationLabels {
|
|
3
|
+
items?: string;
|
|
4
|
+
itemsPerPage?: string;
|
|
5
|
+
nextPage?: string;
|
|
6
|
+
pages?: string;
|
|
7
|
+
previousPage?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface BitkitPaginationProps extends Omit<BoxProps, 'colorPalette' | 'page'> {
|
|
10
|
+
labels?: BitkitPaginationLabels;
|
|
11
|
+
onPageChange?: (page: number) => void;
|
|
12
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
13
|
+
page: number;
|
|
14
|
+
pageSize: number;
|
|
15
|
+
pageSizeOptions?: number[];
|
|
16
|
+
state?: 'skeleton';
|
|
17
|
+
totalItems: number;
|
|
18
|
+
variant?: 'card' | 'page' | 'table';
|
|
19
|
+
}
|
|
20
|
+
declare const BitkitPagination: import('react').ForwardRefExoticComponent<BitkitPaginationProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export default BitkitPagination;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import IconChevronLeft from "../../icons/IconChevronLeft.js";
|
|
2
|
+
import IconChevronRight from "../../icons/IconChevronRight.js";
|
|
3
|
+
import BitkitIconButton from "../BitkitIconButton/BitkitIconButton.js";
|
|
4
|
+
import BitkitNativeSelect from "../BitkitNativeSelect/BitkitNativeSelect.js";
|
|
5
|
+
import { Box } from "@chakra-ui/react/box";
|
|
6
|
+
import { chakra, useSlotRecipe } from "@chakra-ui/react/styled-system";
|
|
7
|
+
import { forwardRef, useMemo } from "react";
|
|
8
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Skeleton } from "@chakra-ui/react/skeleton";
|
|
10
|
+
import { Separator } from "@chakra-ui/react/separator";
|
|
11
|
+
//#region lib/components/BitkitPagination/BitkitPagination.tsx
|
|
12
|
+
var DEFAULT_LABELS = {
|
|
13
|
+
items: "{start}–{end} of {total} items",
|
|
14
|
+
itemsPerPage: "Items per page:",
|
|
15
|
+
nextPage: "Next page",
|
|
16
|
+
pages: "of {totalPages} pages",
|
|
17
|
+
previousPage: "Previous page"
|
|
18
|
+
};
|
|
19
|
+
var formatLabel = (template, values) => Object.entries(values).reduce((str, [key, val]) => str.replaceAll(`{${key}}`, String(val)), template);
|
|
20
|
+
var BitkitPagination = forwardRef((props, ref) => {
|
|
21
|
+
const { labels: labelsProp, onPageChange, onPageSizeChange, page, pageSize, pageSizeOptions = [
|
|
22
|
+
10,
|
|
23
|
+
25,
|
|
24
|
+
50
|
|
25
|
+
], state, totalItems, variant = "table", ...rest } = props;
|
|
26
|
+
const styles = useSlotRecipe({ key: "pagination" })({ variant });
|
|
27
|
+
const safePageSize = Math.max(1, pageSize);
|
|
28
|
+
const totalPages = Math.max(1, Math.ceil(totalItems / safePageSize));
|
|
29
|
+
const safePage = Math.min(Math.max(1, page), totalPages);
|
|
30
|
+
const start = totalItems === 0 ? 0 : (safePage - 1) * safePageSize + 1;
|
|
31
|
+
const end = Math.min(safePage * safePageSize, totalItems);
|
|
32
|
+
const isFirstPage = safePage <= 1;
|
|
33
|
+
const isLastPage = safePage >= totalPages;
|
|
34
|
+
const isSkeleton = state === "skeleton";
|
|
35
|
+
const showItemsPerPage = variant !== "card";
|
|
36
|
+
const values = {
|
|
37
|
+
end,
|
|
38
|
+
start,
|
|
39
|
+
total: totalItems,
|
|
40
|
+
totalPages
|
|
41
|
+
};
|
|
42
|
+
const labels = Object.fromEntries(Object.entries({
|
|
43
|
+
...DEFAULT_LABELS,
|
|
44
|
+
...labelsProp
|
|
45
|
+
}).map(([k, v]) => [k, formatLabel(v, values)]));
|
|
46
|
+
const pageSizeItems = useMemo(() => pageSizeOptions.map((opt) => ({
|
|
47
|
+
label: String(opt),
|
|
48
|
+
value: String(opt)
|
|
49
|
+
})), [pageSizeOptions]);
|
|
50
|
+
const pageItems = useMemo(() => Array.from({ length: totalPages }, (_, i) => ({
|
|
51
|
+
label: String(i + 1),
|
|
52
|
+
value: String(i + 1)
|
|
53
|
+
})), [totalPages]);
|
|
54
|
+
return /* @__PURE__ */ jsxs(Box, {
|
|
55
|
+
ref,
|
|
56
|
+
css: styles.root,
|
|
57
|
+
...rest,
|
|
58
|
+
children: [/* @__PURE__ */ jsxs(chakra.div, {
|
|
59
|
+
css: styles.itemsBlock,
|
|
60
|
+
children: [showItemsPerPage && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
61
|
+
/* @__PURE__ */ jsx(chakra.span, {
|
|
62
|
+
css: styles.text,
|
|
63
|
+
children: labels.itemsPerPage
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ jsx(BitkitNativeSelect, {
|
|
66
|
+
css: styles.itemsSelect,
|
|
67
|
+
onChange: (e) => onPageSizeChange?.(Number(e.target.value)),
|
|
68
|
+
size: "md",
|
|
69
|
+
state: isSkeleton ? "disabled" : void 0,
|
|
70
|
+
value: String(safePageSize),
|
|
71
|
+
children: pageSizeItems.map((opt) => /* @__PURE__ */ jsx("option", {
|
|
72
|
+
value: opt.value,
|
|
73
|
+
children: opt.label
|
|
74
|
+
}, opt.value))
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ jsx(Separator, {
|
|
77
|
+
alignSelf: "stretch",
|
|
78
|
+
borderColor: "border/minimal",
|
|
79
|
+
marginInline: "8",
|
|
80
|
+
orientation: "vertical"
|
|
81
|
+
})
|
|
82
|
+
] }), isSkeleton ? /* @__PURE__ */ jsx(Skeleton, {
|
|
83
|
+
height: "20",
|
|
84
|
+
width: "96"
|
|
85
|
+
}) : /* @__PURE__ */ jsx(chakra.span, {
|
|
86
|
+
css: styles.text,
|
|
87
|
+
children: labels.items
|
|
88
|
+
})]
|
|
89
|
+
}), /* @__PURE__ */ jsxs(chakra.div, {
|
|
90
|
+
css: styles.pageBlock,
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ jsx(Separator, {
|
|
93
|
+
alignSelf: "stretch",
|
|
94
|
+
borderColor: "border/minimal",
|
|
95
|
+
marginInline: "8",
|
|
96
|
+
orientation: "vertical"
|
|
97
|
+
}),
|
|
98
|
+
/* @__PURE__ */ jsx(BitkitNativeSelect, {
|
|
99
|
+
css: styles.pageSelect,
|
|
100
|
+
onChange: (e) => onPageChange?.(Number(e.target.value)),
|
|
101
|
+
size: "md",
|
|
102
|
+
state: isSkeleton ? "disabled" : void 0,
|
|
103
|
+
value: String(safePage),
|
|
104
|
+
children: pageItems.map((opt) => /* @__PURE__ */ jsx("option", {
|
|
105
|
+
value: opt.value,
|
|
106
|
+
children: opt.label
|
|
107
|
+
}, opt.value))
|
|
108
|
+
}),
|
|
109
|
+
isSkeleton ? /* @__PURE__ */ jsx(Skeleton, {
|
|
110
|
+
height: "20",
|
|
111
|
+
width: "64"
|
|
112
|
+
}) : /* @__PURE__ */ jsx(chakra.span, {
|
|
113
|
+
css: styles.text,
|
|
114
|
+
children: labels.pages
|
|
115
|
+
}),
|
|
116
|
+
/* @__PURE__ */ jsx(BitkitIconButton, {
|
|
117
|
+
icon: IconChevronLeft,
|
|
118
|
+
label: labels.previousPage,
|
|
119
|
+
marginInlineStart: "8",
|
|
120
|
+
onClick: () => onPageChange?.(safePage - 1),
|
|
121
|
+
size: "md",
|
|
122
|
+
state: isFirstPage || isSkeleton ? "disabled" : void 0,
|
|
123
|
+
variant: "secondary"
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ jsx(BitkitIconButton, {
|
|
126
|
+
icon: IconChevronRight,
|
|
127
|
+
label: labels.nextPage,
|
|
128
|
+
onClick: () => onPageChange?.(safePage + 1),
|
|
129
|
+
size: "md",
|
|
130
|
+
state: isLastPage || isSkeleton ? "disabled" : void 0,
|
|
131
|
+
variant: "secondary"
|
|
132
|
+
})
|
|
133
|
+
]
|
|
134
|
+
})]
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
BitkitPagination.displayName = "BitkitPagination";
|
|
138
|
+
//#endregion
|
|
139
|
+
export { BitkitPagination as default };
|
|
140
|
+
|
|
141
|
+
//# sourceMappingURL=BitkitPagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BitkitPagination.js","names":[],"sources":["../../../lib/components/BitkitPagination/BitkitPagination.tsx"],"sourcesContent":["import { Box, type BoxProps } from '@chakra-ui/react/box';\nimport { Separator } from '@chakra-ui/react/separator';\nimport { Skeleton } from '@chakra-ui/react/skeleton';\nimport { chakra, useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { forwardRef, useMemo } from 'react';\n\nimport { IconChevronLeft, IconChevronRight } from '../../icons';\nimport BitkitIconButton from '../BitkitIconButton/BitkitIconButton';\nimport BitkitNativeSelect from '../BitkitNativeSelect/BitkitNativeSelect';\n\nexport interface BitkitPaginationLabels {\n items?: string;\n itemsPerPage?: string;\n nextPage?: string;\n pages?: string;\n previousPage?: string;\n}\n\nconst DEFAULT_LABELS: Required<BitkitPaginationLabels> = {\n items: '{start}\\u2013{end} of {total} items',\n itemsPerPage: 'Items per page:',\n nextPage: 'Next page',\n pages: 'of {totalPages} pages',\n previousPage: 'Previous page',\n};\n\nconst formatLabel = (template: string, values: Record<string, number>) =>\n Object.entries(values).reduce((str, [key, val]) => str.replaceAll(`{${key}}`, String(val)), template);\n\nexport interface BitkitPaginationProps extends Omit<BoxProps, 'colorPalette' | 'page'> {\n labels?: BitkitPaginationLabels;\n onPageChange?: (page: number) => void;\n onPageSizeChange?: (pageSize: number) => void;\n page: number;\n pageSize: number;\n pageSizeOptions?: number[];\n state?: 'skeleton';\n totalItems: number;\n variant?: 'card' | 'page' | 'table';\n}\n\nconst BitkitPagination = forwardRef<HTMLDivElement, BitkitPaginationProps>((props, ref) => {\n const {\n labels: labelsProp,\n onPageChange,\n onPageSizeChange,\n page,\n pageSize,\n pageSizeOptions = [10, 25, 50],\n state,\n totalItems,\n variant = 'table',\n ...rest\n } = props;\n\n const recipe = useSlotRecipe({ key: 'pagination' });\n const styles = recipe({ variant });\n\n const safePageSize = Math.max(1, pageSize);\n const totalPages = Math.max(1, Math.ceil(totalItems / safePageSize));\n const safePage = Math.min(Math.max(1, page), totalPages);\n const start = totalItems === 0 ? 0 : (safePage - 1) * safePageSize + 1;\n const end = Math.min(safePage * safePageSize, totalItems);\n const isFirstPage = safePage <= 1;\n const isLastPage = safePage >= totalPages;\n const isSkeleton = state === 'skeleton';\n const showItemsPerPage = variant !== 'card';\n\n const values = { end, start, total: totalItems, totalPages };\n const labels = Object.fromEntries(\n Object.entries({ ...DEFAULT_LABELS, ...labelsProp }).map(([k, v]) => [k, formatLabel(v, values)]),\n ) as Required<BitkitPaginationLabels>;\n\n const pageSizeItems = useMemo(\n () => pageSizeOptions.map((opt) => ({ label: String(opt), value: String(opt) })),\n [pageSizeOptions],\n );\n\n const pageItems = useMemo(\n () => Array.from({ length: totalPages }, (_, i) => ({ label: String(i + 1), value: String(i + 1) })),\n [totalPages],\n );\n\n return (\n <Box ref={ref} css={styles.root} {...rest}>\n <chakra.div css={styles.itemsBlock}>\n {showItemsPerPage && (\n <>\n <chakra.span css={styles.text}>{labels.itemsPerPage}</chakra.span>\n <BitkitNativeSelect\n css={styles.itemsSelect}\n onChange={(e) => onPageSizeChange?.(Number(e.target.value))}\n size=\"md\"\n state={isSkeleton ? 'disabled' : undefined}\n value={String(safePageSize)}\n >\n {pageSizeItems.map((opt) => (\n <option key={opt.value} value={opt.value}>\n {opt.label}\n </option>\n ))}\n </BitkitNativeSelect>\n <Separator alignSelf=\"stretch\" borderColor=\"border/minimal\" marginInline=\"8\" orientation=\"vertical\" />\n </>\n )}\n {isSkeleton ? <Skeleton height=\"20\" width=\"96\" /> : <chakra.span css={styles.text}>{labels.items}</chakra.span>}\n </chakra.div>\n\n <chakra.div css={styles.pageBlock}>\n <Separator alignSelf=\"stretch\" borderColor=\"border/minimal\" marginInline=\"8\" orientation=\"vertical\" />\n <BitkitNativeSelect\n css={styles.pageSelect}\n onChange={(e) => onPageChange?.(Number(e.target.value))}\n size=\"md\"\n state={isSkeleton ? 'disabled' : undefined}\n value={String(safePage)}\n >\n {pageItems.map((opt) => (\n <option key={opt.value} value={opt.value}>\n {opt.label}\n </option>\n ))}\n </BitkitNativeSelect>\n {isSkeleton ? <Skeleton height=\"20\" width=\"64\" /> : <chakra.span css={styles.text}>{labels.pages}</chakra.span>}\n <BitkitIconButton\n icon={IconChevronLeft}\n label={labels.previousPage}\n marginInlineStart=\"8\"\n onClick={() => onPageChange?.(safePage - 1)}\n size=\"md\"\n state={isFirstPage || isSkeleton ? 'disabled' : undefined}\n variant=\"secondary\"\n />\n <BitkitIconButton\n icon={IconChevronRight}\n label={labels.nextPage}\n onClick={() => onPageChange?.(safePage + 1)}\n size=\"md\"\n state={isLastPage || isSkeleton ? 'disabled' : undefined}\n variant=\"secondary\"\n />\n </chakra.div>\n </Box>\n );\n});\n\nBitkitPagination.displayName = 'BitkitPagination';\n\nexport default BitkitPagination;\n"],"mappings":";;;;;;;;;;;AAkBA,IAAM,iBAAmD;CACvD,OAAO;CACP,cAAc;CACd,UAAU;CACV,OAAO;CACP,cAAc;CACf;AAED,IAAM,eAAe,UAAkB,WACrC,OAAO,QAAQ,OAAO,CAAC,QAAQ,KAAK,CAAC,KAAK,SAAS,IAAI,WAAW,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,EAAE,SAAS;AAcvG,IAAM,mBAAmB,YAAmD,OAAO,QAAQ;CACzF,MAAM,EACJ,QAAQ,YACR,cACA,kBACA,MACA,UACA,kBAAkB;EAAC;EAAI;EAAI;EAAG,EAC9B,OACA,YACA,UAAU,SACV,GAAG,SACD;CAGJ,MAAM,SADS,cAAc,EAAE,KAAK,cAAc,CAAC,CAC7B,EAAE,SAAS,CAAC;CAElC,MAAM,eAAe,KAAK,IAAI,GAAG,SAAS;CAC1C,MAAM,aAAa,KAAK,IAAI,GAAG,KAAK,KAAK,aAAa,aAAa,CAAC;CACpE,MAAM,WAAW,KAAK,IAAI,KAAK,IAAI,GAAG,KAAK,EAAE,WAAW;CACxD,MAAM,QAAQ,eAAe,IAAI,KAAK,WAAW,KAAK,eAAe;CACrE,MAAM,MAAM,KAAK,IAAI,WAAW,cAAc,WAAW;CACzD,MAAM,cAAc,YAAY;CAChC,MAAM,aAAa,YAAY;CAC/B,MAAM,aAAa,UAAU;CAC7B,MAAM,mBAAmB,YAAY;CAErC,MAAM,SAAS;EAAE;EAAK;EAAO,OAAO;EAAY;EAAY;CAC5D,MAAM,SAAS,OAAO,YACpB,OAAO,QAAQ;EAAE,GAAG;EAAgB,GAAG;EAAY,CAAC,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,GAAG,YAAY,GAAG,OAAO,CAAC,CAAC,CAClG;CAED,MAAM,gBAAgB,cACd,gBAAgB,KAAK,SAAS;EAAE,OAAO,OAAO,IAAI;EAAE,OAAO,OAAO,IAAI;EAAE,EAAE,EAChF,CAAC,gBAAgB,CAClB;CAED,MAAM,YAAY,cACV,MAAM,KAAK,EAAE,QAAQ,YAAY,GAAG,GAAG,OAAO;EAAE,OAAO,OAAO,IAAI,EAAE;EAAE,OAAO,OAAO,IAAI,EAAE;EAAE,EAAE,EACpG,CAAC,WAAW,CACb;AAED,QACE,qBAAC,KAAD;EAAU;EAAK,KAAK,OAAO;EAAM,GAAI;YAArC,CACE,qBAAC,OAAO,KAAR;GAAY,KAAK,OAAO;aAAxB,CACG,oBACC,qBAAA,YAAA,EAAA,UAAA;IACE,oBAAC,OAAO,MAAR;KAAa,KAAK,OAAO;eAAO,OAAO;KAA2B,CAAA;IAClE,oBAAC,oBAAD;KACE,KAAK,OAAO;KACZ,WAAW,MAAM,mBAAmB,OAAO,EAAE,OAAO,MAAM,CAAC;KAC3D,MAAK;KACL,OAAO,aAAa,aAAa,KAAA;KACjC,OAAO,OAAO,aAAa;eAE1B,cAAc,KAAK,QAClB,oBAAC,UAAD;MAAwB,OAAO,IAAI;gBAChC,IAAI;MACE,EAFI,IAAI,MAER,CACT;KACiB,CAAA;IACrB,oBAAC,WAAD;KAAW,WAAU;KAAU,aAAY;KAAiB,cAAa;KAAI,aAAY;KAAa,CAAA;IACrG,EAAA,CAAA,EAEJ,aAAa,oBAAC,UAAD;IAAU,QAAO;IAAK,OAAM;IAAO,CAAA,GAAG,oBAAC,OAAO,MAAR;IAAa,KAAK,OAAO;cAAO,OAAO;IAAoB,CAAA,CACpG;MAEb,qBAAC,OAAO,KAAR;GAAY,KAAK,OAAO;aAAxB;IACE,oBAAC,WAAD;KAAW,WAAU;KAAU,aAAY;KAAiB,cAAa;KAAI,aAAY;KAAa,CAAA;IACtG,oBAAC,oBAAD;KACE,KAAK,OAAO;KACZ,WAAW,MAAM,eAAe,OAAO,EAAE,OAAO,MAAM,CAAC;KACvD,MAAK;KACL,OAAO,aAAa,aAAa,KAAA;KACjC,OAAO,OAAO,SAAS;eAEtB,UAAU,KAAK,QACd,oBAAC,UAAD;MAAwB,OAAO,IAAI;gBAChC,IAAI;MACE,EAFI,IAAI,MAER,CACT;KACiB,CAAA;IACpB,aAAa,oBAAC,UAAD;KAAU,QAAO;KAAK,OAAM;KAAO,CAAA,GAAG,oBAAC,OAAO,MAAR;KAAa,KAAK,OAAO;eAAO,OAAO;KAAoB,CAAA;IAC/G,oBAAC,kBAAD;KACE,MAAM;KACN,OAAO,OAAO;KACd,mBAAkB;KAClB,eAAe,eAAe,WAAW,EAAE;KAC3C,MAAK;KACL,OAAO,eAAe,aAAa,aAAa,KAAA;KAChD,SAAQ;KACR,CAAA;IACF,oBAAC,kBAAD;KACE,MAAM;KACN,OAAO,OAAO;KACd,eAAe,eAAe,WAAW,EAAE;KAC3C,MAAK;KACL,OAAO,cAAc,aAAa,aAAa,KAAA;KAC/C,SAAQ;KACR,CAAA;IACS;KACT;;EAER;AAEF,iBAAiB,cAAc"}
|
|
@@ -17,6 +17,7 @@ export { default as BitkitControlButton, type BitkitControlButtonProps, } from '
|
|
|
17
17
|
export { default as BitkitDefinitionTooltip, type BitkitDefinitionTooltipProps, } from './BitkitDefinitionTooltip/BitkitDefinitionTooltip';
|
|
18
18
|
export { default as BitkitDialog, type BitkitDialogProps } from './BitkitDialog/BitkitDialog';
|
|
19
19
|
export { default as BitkitDialogBody, type BitkitDialogBodyProps } from './BitkitDialog/BitkitDialogBody';
|
|
20
|
+
export { default as BitkitDialogButtons, type BitkitDialogButtonsProps } from './BitkitDialog/BitkitDialogButtons';
|
|
20
21
|
export { default as BitkitDialogContent, type BitkitDialogContentProps } from './BitkitDialog/BitkitDialogContent';
|
|
21
22
|
export { default as BitkitDialogRoot, type BitkitDialogRootProps } from './BitkitDialog/BitkitDialogRoot';
|
|
22
23
|
export { default as BitkitDraggableCard, type BitkitDraggableCardProps, } from './BitkitDraggableCard/BitkitDraggableCard';
|
|
@@ -40,6 +41,7 @@ export { default as BitkitNoteCard, type BitkitNoteCardProps } from './BitkitNot
|
|
|
40
41
|
export { default as BitkitNumberInput, type BitkitNumberInputProps } from './BitkitNumberInput/BitkitNumberInput';
|
|
41
42
|
export { default as BitkitOrderedList, type BitkitOrderedListItemProps, type BitkitOrderedListProps, } from './BitkitOrderedList/BitkitOrderedList';
|
|
42
43
|
export { default as BitkitOverflowTooltip, type BitkitOverflowTooltipProps, } from './BitkitOverflowTooltip/BitkitOverflowTooltip';
|
|
44
|
+
export { default as BitkitPagination, type BitkitPaginationLabels, type BitkitPaginationProps, } from './BitkitPagination/BitkitPagination';
|
|
43
45
|
export { default as BitkitPaginationLoadMore, type BitkitPaginationLoadMoreProps, } from './BitkitPaginationLoadMore/BitkitPaginationLoadMore';
|
|
44
46
|
export { default as BitkitRadio, type BitkitRadioProps } from './BitkitRadio/BitkitRadio';
|
|
45
47
|
export { default as BitkitRadioGroup, type BitkitRadioGroupProps } from './BitkitRadioGroup/BitkitRadioGroup';
|
package/dist/main.js
CHANGED
|
@@ -305,6 +305,7 @@ import BitkitDialogBody from "./components/BitkitDialog/BitkitDialogBody.js";
|
|
|
305
305
|
import BitkitDialogContent from "./components/BitkitDialog/BitkitDialogContent.js";
|
|
306
306
|
import BitkitDialogRoot from "./components/BitkitDialog/BitkitDialogRoot.js";
|
|
307
307
|
import BitkitDialog from "./components/BitkitDialog/BitkitDialog.js";
|
|
308
|
+
import BitkitDialogButtons from "./components/BitkitDialog/BitkitDialogButtons.js";
|
|
308
309
|
import BitkitDraggableCard from "./components/BitkitDraggableCard/BitkitDraggableCard.js";
|
|
309
310
|
import BitkitEmptyState from "./components/BitkitEmptyState/BitkitEmptyState.js";
|
|
310
311
|
import BitkitExpandableCard from "./components/BitkitExpandableCard/BitkitExpandableCard.js";
|
|
@@ -324,6 +325,7 @@ import BitkitNativeSelect from "./components/BitkitNativeSelect/BitkitNativeSele
|
|
|
324
325
|
import BitkitNoteCard from "./components/BitkitNoteCard/BitkitNoteCard.js";
|
|
325
326
|
import BitkitNumberInput from "./components/BitkitNumberInput/BitkitNumberInput.js";
|
|
326
327
|
import BitkitOverflowTooltip from "./components/BitkitOverflowTooltip/BitkitOverflowTooltip.js";
|
|
328
|
+
import BitkitPagination from "./components/BitkitPagination/BitkitPagination.js";
|
|
327
329
|
import BitkitPaginationLoadMore from "./components/BitkitPaginationLoadMore/BitkitPaginationLoadMore.js";
|
|
328
330
|
import BitkitRadio from "./components/BitkitRadio/BitkitRadio.js";
|
|
329
331
|
import BitkitRadioGroup from "./components/BitkitRadioGroup/BitkitRadioGroup.js";
|
|
@@ -347,4 +349,4 @@ import BitkitToggle from "./components/BitkitToggle/BitkitToggle.js";
|
|
|
347
349
|
import BitkitToggleButton from "./components/BitkitToggleButton/BitkitToggleButton.js";
|
|
348
350
|
import bitkitTheme from "./theme/index.js";
|
|
349
351
|
import Provider from "./providers/BitkitProvider.js";
|
|
350
|
-
export { BitkitAccordion, BitkitActionBar, BitkitAlert, BitkitAvatar, BitkitBadge, BitkitButton, BitkitCalendar, BitkitCard, BitkitCheckbox, BitkitCheckboxGroup, BitkitCloseButton, BitkitCodeSnippet, BitkitCollapsible, BitkitColorButton, BitkitCombobox, BitkitControlButton, BitkitDefinitionTooltip, BitkitDialog, BitkitDialogBody, BitkitDialogContent, BitkitDialogRoot, BitkitDraggableCard, BitkitEmptyState, BitkitExpandableCard, BitkitExplainerList_default as BitkitExplainerList, BitkitField, BitkitFileInput, BitkitGroupHeading, BitkitIconButton, BitkitInlineLoading, BitkitLabel, BitkitLabelTooltip, BitkitLabeledData, BitkitLink, BitkitLinkButton, BitkitMarkdown, BitkitMarkdownCard, BitkitNativeSelect, BitkitNoteCard, BitkitNumberInput, BitkitOrderedList_default as BitkitOrderedList, BitkitOverflowTooltip, BitkitPaginationLoadMore, Provider as BitkitProvider, BitkitRadio, BitkitRadioGroup, BitkitRibbon, BitkitSearchInput, BitkitSectionHeading, BitkitSegmentedControl_default as BitkitSegmentedControl, BitkitSelect, BitkitSelectMenu, BitkitSelectableTag_default as BitkitSelectableTag, BitkitSidebar_default as BitkitSidebar, BitkitSplitButton_default as BitkitSplitButton, BitkitStat, BitkitSteps_default as BitkitSteps, BitkitStepsCard_default as BitkitStepsCard, BitkitTabs, BitkitTag, BitkitTagsInput, BitkitTextInput, BitkitToggle, BitkitToggleButton, BitkitTooltip, BitkitUnorderedList_default as BitkitUnorderedList, IconAbortCircle, IconAbortCircleFilled, IconAddons, IconAgent, IconAnchor, IconAndroid, IconApp, IconAppSettings, IconAppStore, IconAppStoreColor, IconApple, IconArchive, IconArchiveDelete, IconArchiveRestore, IconArrowBackAndDown, IconArrowBackAndUp, IconArrowDown, IconArrowForwardAndDown, IconArrowForwardAndUp, IconArrowLeft, IconArrowNortheast, IconArrowNorthwest, IconArrowRight, IconArrowUp, IconArrowsHorizontal, IconArrowsVertical, IconAutomation, IconAws, IconAwsColor, IconBadge3RdParty, IconBadgeBitrise, IconBadgeUpgrade, IconBadgeVersionOk, IconBazel, IconBell, IconBitbot, IconBitbotError, IconBitbucket, IconBitbucketColor, IconBitbucketNeutral, IconBitbucketWhite, IconBlockCircle, IconBook, IconBoxArrowDown, IconBoxDot, IconBoxLinesOverflow, IconBoxLinesWrap, IconBranch, IconBrowserstackColor, IconBug, IconBuild, IconBuildCache, IconBuildCacheFilled, IconBuildEnvSetup, IconCalendar, IconChangePlan, IconChat, IconCheck, IconCheckCircle, IconCheckCircleFilled, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconCi, IconCiFilled, IconCircle, IconCircleDashed, IconCircleHalfFilled, IconClaude, IconClaudeColor, IconClock, IconCode, IconCodePush, IconCodeSigning, IconCoffee, IconCommit, IconConfigure, IconConnectedAccounts, IconContainer, IconCopy, IconCordova, IconCpu, IconCreditcard, IconCredits, IconCross, IconCrossCircle, IconCrossCircleFilled, IconCrown, IconCycle, IconDashboard, IconDashboardFilled, IconDeployment, IconDetails, IconDoc, IconDollar, IconDot, IconDotnet, IconDotnetColor, IconDotnetText, IconDotnetTextColor, IconDoubleCircle, IconDownload, IconDragHandle, IconEc2Ami, IconEnterprise, IconErrorCircle, IconErrorCircleFilled, IconExpand, IconExtraBuildCapacity, IconEye, IconEyeSlash, IconFastlane, IconFileDoc, IconFilePdf, IconFilePlist, IconFileZip, IconFilter, IconFlag, IconFlutter, IconFolder, IconFullscreen, IconFullscreenExit, IconGauge, IconGit, IconGithub, IconGitlab, IconGitlabColor, IconGitlabWhite, IconGlobe, IconGo, IconGoogleColor, IconGooglePlay, IconGooglePlayColor, IconGradle, IconGroup, IconHashtag, IconHeadset, IconHeart, IconHistory, IconHourglass, IconImage, IconInfoCircle, IconInfoCircleFilled, IconInsights, IconInsightsFilled, IconInstall, IconInteraction, IconInvoice, IconIonic, IconJapanese, IconJava, IconJavaColor, IconJavaDuke, IconJavaDukeColor, IconKey, IconKotlin, IconKotlinColor, IconKotlinWhite, IconLaptop, IconLaunchdarkly, IconLegacyApp, IconLightbulb, IconLink, IconLinux, IconLock, IconLockOpen, IconLogin, IconLogout, IconMacos, IconMagicWand, IconMagnifier, IconMail, IconMedal, IconMemory, IconMenuGrid, IconMenuHamburger, IconMessage, IconMessageAlert, IconMessageQuestion, IconMicrophone, IconMinus, IconMinusCircle, IconMinusCircleFilled, IconMobile, IconMobileLandscape, IconMonitorChart, IconMoreHorizontal, IconMoreVertical, IconNews, IconNextjs, IconNodejs, IconOpenInNew, IconOther, IconOutsideContributor, IconOverview, IconPause, IconPencil, IconPeople, IconPercent, IconPerson, IconPersonWithDesk, IconPlay, IconPlus, IconPlusCircle, IconPlusCircleFilled, IconPower, IconProject, IconProjectSettings, IconPull, IconPush, IconPuzzle, IconPython, IconPythonColor, IconQuestionCircle, IconQuestionCircleFilled, IconReact, IconRefresh, IconRegex, IconRelease, IconReleaseFilled, IconRemoteAccess, IconReplace, IconResponsiveness, IconReviewerApproved, IconReviewerAssigned, IconReviewerRejected, IconRuby, IconRubyColor, IconSave, IconSecurityShield, IconSettings, IconSettingsFilled, IconShuffle, IconSiren, IconSkip, IconSkipCircle, IconSkipCircleFilled, IconSlack, IconSlackColor, IconSparkle, IconSparkleFilled, IconSpinnerOnDisabled, IconSpinnerPurple, IconSpinnerPurpleDouble, IconSpinnerWhite, IconStability, IconStack, IconStar, IconStep, IconStop, IconStopwatch, IconTag, IconTasks, IconTeams, IconTeamsColor, IconTemplateCode, IconTerminal, IconTestQuarantine, IconThemeDarkToggle, IconThumbDown, IconThumbUp, IconTools, IconTrash, IconTrigger, IconUbuntu, IconUbuntuColor, IconUnity3D, IconUpload, IconValidateShield, IconVideo, IconWarning, IconWarningYellow, IconWebUi, IconWebhooks, IconWorkflow, IconWorkflowFlow, IconXTwitter, IconXamarin, IconXcode, bitkitIcon, bitkitTheme as bitriseTheme, createBitkitToast };
|
|
352
|
+
export { BitkitAccordion, BitkitActionBar, BitkitAlert, BitkitAvatar, BitkitBadge, BitkitButton, BitkitCalendar, BitkitCard, BitkitCheckbox, BitkitCheckboxGroup, BitkitCloseButton, BitkitCodeSnippet, BitkitCollapsible, BitkitColorButton, BitkitCombobox, BitkitControlButton, BitkitDefinitionTooltip, BitkitDialog, BitkitDialogBody, BitkitDialogButtons, BitkitDialogContent, BitkitDialogRoot, BitkitDraggableCard, BitkitEmptyState, BitkitExpandableCard, BitkitExplainerList_default as BitkitExplainerList, BitkitField, BitkitFileInput, BitkitGroupHeading, BitkitIconButton, BitkitInlineLoading, BitkitLabel, BitkitLabelTooltip, BitkitLabeledData, BitkitLink, BitkitLinkButton, BitkitMarkdown, BitkitMarkdownCard, BitkitNativeSelect, BitkitNoteCard, BitkitNumberInput, BitkitOrderedList_default as BitkitOrderedList, BitkitOverflowTooltip, BitkitPagination, BitkitPaginationLoadMore, Provider as BitkitProvider, BitkitRadio, BitkitRadioGroup, BitkitRibbon, BitkitSearchInput, BitkitSectionHeading, BitkitSegmentedControl_default as BitkitSegmentedControl, BitkitSelect, BitkitSelectMenu, BitkitSelectableTag_default as BitkitSelectableTag, BitkitSidebar_default as BitkitSidebar, BitkitSplitButton_default as BitkitSplitButton, BitkitStat, BitkitSteps_default as BitkitSteps, BitkitStepsCard_default as BitkitStepsCard, BitkitTabs, BitkitTag, BitkitTagsInput, BitkitTextInput, BitkitToggle, BitkitToggleButton, BitkitTooltip, BitkitUnorderedList_default as BitkitUnorderedList, IconAbortCircle, IconAbortCircleFilled, IconAddons, IconAgent, IconAnchor, IconAndroid, IconApp, IconAppSettings, IconAppStore, IconAppStoreColor, IconApple, IconArchive, IconArchiveDelete, IconArchiveRestore, IconArrowBackAndDown, IconArrowBackAndUp, IconArrowDown, IconArrowForwardAndDown, IconArrowForwardAndUp, IconArrowLeft, IconArrowNortheast, IconArrowNorthwest, IconArrowRight, IconArrowUp, IconArrowsHorizontal, IconArrowsVertical, IconAutomation, IconAws, IconAwsColor, IconBadge3RdParty, IconBadgeBitrise, IconBadgeUpgrade, IconBadgeVersionOk, IconBazel, IconBell, IconBitbot, IconBitbotError, IconBitbucket, IconBitbucketColor, IconBitbucketNeutral, IconBitbucketWhite, IconBlockCircle, IconBook, IconBoxArrowDown, IconBoxDot, IconBoxLinesOverflow, IconBoxLinesWrap, IconBranch, IconBrowserstackColor, IconBug, IconBuild, IconBuildCache, IconBuildCacheFilled, IconBuildEnvSetup, IconCalendar, IconChangePlan, IconChat, IconCheck, IconCheckCircle, IconCheckCircleFilled, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconCi, IconCiFilled, IconCircle, IconCircleDashed, IconCircleHalfFilled, IconClaude, IconClaudeColor, IconClock, IconCode, IconCodePush, IconCodeSigning, IconCoffee, IconCommit, IconConfigure, IconConnectedAccounts, IconContainer, IconCopy, IconCordova, IconCpu, IconCreditcard, IconCredits, IconCross, IconCrossCircle, IconCrossCircleFilled, IconCrown, IconCycle, IconDashboard, IconDashboardFilled, IconDeployment, IconDetails, IconDoc, IconDollar, IconDot, IconDotnet, IconDotnetColor, IconDotnetText, IconDotnetTextColor, IconDoubleCircle, IconDownload, IconDragHandle, IconEc2Ami, IconEnterprise, IconErrorCircle, IconErrorCircleFilled, IconExpand, IconExtraBuildCapacity, IconEye, IconEyeSlash, IconFastlane, IconFileDoc, IconFilePdf, IconFilePlist, IconFileZip, IconFilter, IconFlag, IconFlutter, IconFolder, IconFullscreen, IconFullscreenExit, IconGauge, IconGit, IconGithub, IconGitlab, IconGitlabColor, IconGitlabWhite, IconGlobe, IconGo, IconGoogleColor, IconGooglePlay, IconGooglePlayColor, IconGradle, IconGroup, IconHashtag, IconHeadset, IconHeart, IconHistory, IconHourglass, IconImage, IconInfoCircle, IconInfoCircleFilled, IconInsights, IconInsightsFilled, IconInstall, IconInteraction, IconInvoice, IconIonic, IconJapanese, IconJava, IconJavaColor, IconJavaDuke, IconJavaDukeColor, IconKey, IconKotlin, IconKotlinColor, IconKotlinWhite, IconLaptop, IconLaunchdarkly, IconLegacyApp, IconLightbulb, IconLink, IconLinux, IconLock, IconLockOpen, IconLogin, IconLogout, IconMacos, IconMagicWand, IconMagnifier, IconMail, IconMedal, IconMemory, IconMenuGrid, IconMenuHamburger, IconMessage, IconMessageAlert, IconMessageQuestion, IconMicrophone, IconMinus, IconMinusCircle, IconMinusCircleFilled, IconMobile, IconMobileLandscape, IconMonitorChart, IconMoreHorizontal, IconMoreVertical, IconNews, IconNextjs, IconNodejs, IconOpenInNew, IconOther, IconOutsideContributor, IconOverview, IconPause, IconPencil, IconPeople, IconPercent, IconPerson, IconPersonWithDesk, IconPlay, IconPlus, IconPlusCircle, IconPlusCircleFilled, IconPower, IconProject, IconProjectSettings, IconPull, IconPush, IconPuzzle, IconPython, IconPythonColor, IconQuestionCircle, IconQuestionCircleFilled, IconReact, IconRefresh, IconRegex, IconRelease, IconReleaseFilled, IconRemoteAccess, IconReplace, IconResponsiveness, IconReviewerApproved, IconReviewerAssigned, IconReviewerRejected, IconRuby, IconRubyColor, IconSave, IconSecurityShield, IconSettings, IconSettingsFilled, IconShuffle, IconSiren, IconSkip, IconSkipCircle, IconSkipCircleFilled, IconSlack, IconSlackColor, IconSparkle, IconSparkleFilled, IconSpinnerOnDisabled, IconSpinnerPurple, IconSpinnerPurpleDouble, IconSpinnerWhite, IconStability, IconStack, IconStar, IconStep, IconStop, IconStopwatch, IconTag, IconTasks, IconTeams, IconTeamsColor, IconTemplateCode, IconTerminal, IconTestQuarantine, IconThemeDarkToggle, IconThumbDown, IconThumbUp, IconTools, IconTrash, IconTrigger, IconUbuntu, IconUbuntuColor, IconUnity3D, IconUpload, IconValidateShield, IconVideo, IconWarning, IconWarningYellow, IconWebUi, IconWebhooks, IconWorkflow, IconWorkflowFlow, IconXTwitter, IconXamarin, IconXcode, bitkitIcon, bitkitTheme as bitriseTheme, createBitkitToast };
|
|
@@ -122,7 +122,7 @@ var dialogSlotRecipe = defineSlotRecipe({
|
|
|
122
122
|
},
|
|
123
123
|
scrollGradient: {
|
|
124
124
|
background: "linear-gradient(0deg, white 0%, rgba(255, 255, 255, 0) 100%)",
|
|
125
|
-
bottom: "
|
|
125
|
+
bottom: "48",
|
|
126
126
|
height: "32",
|
|
127
127
|
pointerEvents: "none",
|
|
128
128
|
position: "absolute",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Dialog.recipe.ts"],"sourcesContent":["import { dialogAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst dialogSlotRecipe = defineSlotRecipe({\n className: 'dialog',\n slots: [...dialogAnatomy.keys(), 'label', 'scrollBody', 'scrollButton', 'scrollGradient'] as const,\n base: {\n backdrop: {\n background: 'utilities/overlay',\n position: 'fixed',\n inset: '0',\n zIndex: 'dialogOverlay',\n _open: {\n animationStyle: 'fade-in',\n animationDuration: 'moderate',\n },\n _closed: {\n animationStyle: 'fade-out',\n animationDuration: 'moderate',\n },\n },\n positioner: {\n alignItems: 'center',\n display: 'flex',\n height: '100dvh',\n justifyContent: 'center',\n left: '0',\n position: 'fixed',\n top: '0',\n width: '100dvw',\n zIndex: 'dialog',\n },\n content: {\n background: 'background/primary',\n borderRadius: '8',\n boxShadow: 'elevation/lg',\n display: 'flex',\n flexDirection: 'column',\n outline: 'none',\n position: 'relative',\n _open: {\n animationStyle: 'scale-fade-in',\n animationDuration: 'moderate',\n },\n _closed: {\n animationStyle: 'scale-fade-out',\n animationDuration: 'faster',\n },\n },\n header: {\n display: 'flex',\n flexDirection: 'column',\n gap: '16',\n paddingBlock: '24',\n paddingInline: '32',\n position: 'relative',\n },\n title: {\n color: 'text/primary',\n paddingInlineEnd: '48',\n textStyle: 'comp/dialog/title',\n },\n description: {\n color: 'text/body',\n textStyle: 'body/lg/regular',\n },\n label: {\n color: 'text/secondary',\n textStyle: 'comp/dialog/label',\n },\n body: {\n display: 'flex',\n flex: '1',\n flexDirection: 'column',\n gap: '24',\n paddingInline: '32',\n _last: {\n paddingBlockEnd: '48',\n },\n },\n scrollBody: {\n display: 'flex',\n flexDirection: 'column',\n minHeight: 0,\n position: 'relative',\n _last: {\n paddingBlockEnd: '48',\n },\n },\n footer: {\n alignItems: 'center',\n display: 'flex',\n gap: '16',\n justifyContent: 'flex-end',\n paddingBlockEnd: '32',\n paddingBlockStart: '24',\n paddingInline: '32',\n },\n closeTrigger: {\n insetEnd: '24',\n position: 'absolute',\n top: '24',\n },\n scrollButton: {\n alignItems: 'center',\n alignSelf: 'center',\n background: 'background/primary',\n borderColor: 'border/minimal',\n borderRadius: '100%',\n borderWidth: '1px',\n bottom: '16',\n boxShadow: 'elevation/lg',\n cursor: 'pointer',\n display: 'flex',\n height: '32',\n justifyContent: 'center',\n position: 'absolute',\n width: '32',\n },\n scrollGradient: {\n background: 'linear-gradient(0deg, white 0%, rgba(255, 255, 255, 0) 100%)',\n bottom: '
|
|
1
|
+
{"version":3,"file":"Dialog.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Dialog.recipe.ts"],"sourcesContent":["import { dialogAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst dialogSlotRecipe = defineSlotRecipe({\n className: 'dialog',\n slots: [...dialogAnatomy.keys(), 'label', 'scrollBody', 'scrollButton', 'scrollGradient'] as const,\n base: {\n backdrop: {\n background: 'utilities/overlay',\n position: 'fixed',\n inset: '0',\n zIndex: 'dialogOverlay',\n _open: {\n animationStyle: 'fade-in',\n animationDuration: 'moderate',\n },\n _closed: {\n animationStyle: 'fade-out',\n animationDuration: 'moderate',\n },\n },\n positioner: {\n alignItems: 'center',\n display: 'flex',\n height: '100dvh',\n justifyContent: 'center',\n left: '0',\n position: 'fixed',\n top: '0',\n width: '100dvw',\n zIndex: 'dialog',\n },\n content: {\n background: 'background/primary',\n borderRadius: '8',\n boxShadow: 'elevation/lg',\n display: 'flex',\n flexDirection: 'column',\n outline: 'none',\n position: 'relative',\n _open: {\n animationStyle: 'scale-fade-in',\n animationDuration: 'moderate',\n },\n _closed: {\n animationStyle: 'scale-fade-out',\n animationDuration: 'faster',\n },\n },\n header: {\n display: 'flex',\n flexDirection: 'column',\n gap: '16',\n paddingBlock: '24',\n paddingInline: '32',\n position: 'relative',\n },\n title: {\n color: 'text/primary',\n paddingInlineEnd: '48',\n textStyle: 'comp/dialog/title',\n },\n description: {\n color: 'text/body',\n textStyle: 'body/lg/regular',\n },\n label: {\n color: 'text/secondary',\n textStyle: 'comp/dialog/label',\n },\n body: {\n display: 'flex',\n flex: '1',\n flexDirection: 'column',\n gap: '24',\n paddingInline: '32',\n _last: {\n paddingBlockEnd: '48',\n },\n },\n scrollBody: {\n display: 'flex',\n flexDirection: 'column',\n minHeight: 0,\n position: 'relative',\n _last: {\n paddingBlockEnd: '48',\n },\n },\n footer: {\n alignItems: 'center',\n display: 'flex',\n gap: '16',\n justifyContent: 'flex-end',\n paddingBlockEnd: '32',\n paddingBlockStart: '24',\n paddingInline: '32',\n },\n closeTrigger: {\n insetEnd: '24',\n position: 'absolute',\n top: '24',\n },\n scrollButton: {\n alignItems: 'center',\n alignSelf: 'center',\n background: 'background/primary',\n borderColor: 'border/minimal',\n borderRadius: '100%',\n borderWidth: '1px',\n bottom: '16',\n boxShadow: 'elevation/lg',\n cursor: 'pointer',\n display: 'flex',\n height: '32',\n justifyContent: 'center',\n position: 'absolute',\n width: '32',\n },\n scrollGradient: {\n background: 'linear-gradient(0deg, white 0%, rgba(255, 255, 255, 0) 100%)',\n bottom: '48',\n height: '32',\n pointerEvents: 'none',\n position: 'absolute',\n width: '100%',\n },\n },\n variants: {\n scrollBehavior: {\n inside: {\n body: {\n overflowY: 'auto',\n _last: {\n paddingBlockEnd: 0, // override base _last: scrollBody slot handles padding instead\n },\n },\n content: {\n maxHeight: 'calc(100dvh - 96px)',\n overflow: 'hidden',\n },\n },\n outside: {},\n },\n size: {\n lg: {\n content: {\n width: rem(800),\n },\n },\n md: {\n content: {\n width: rem(640),\n },\n },\n sm: {\n content: {\n width: rem(480),\n },\n },\n },\n },\n defaultVariants: {\n scrollBehavior: 'outside',\n size: 'md',\n },\n});\n\nexport default dialogSlotRecipe;\n"],"mappings":";;;;AAKA,IAAM,mBAAmB,iBAAiB;CACxC,WAAW;CACX,OAAO;EAAC,GAAG,cAAc,MAAM;EAAE;EAAS;EAAc;EAAgB;EAAiB;CACzF,MAAM;EACJ,UAAU;GACR,YAAY;GACZ,UAAU;GACV,OAAO;GACP,QAAQ;GACR,OAAO;IACL,gBAAgB;IAChB,mBAAmB;IACpB;GACD,SAAS;IACP,gBAAgB;IAChB,mBAAmB;IACpB;GACF;EACD,YAAY;GACV,YAAY;GACZ,SAAS;GACT,QAAQ;GACR,gBAAgB;GAChB,MAAM;GACN,UAAU;GACV,KAAK;GACL,OAAO;GACP,QAAQ;GACT;EACD,SAAS;GACP,YAAY;GACZ,cAAc;GACd,WAAW;GACX,SAAS;GACT,eAAe;GACf,SAAS;GACT,UAAU;GACV,OAAO;IACL,gBAAgB;IAChB,mBAAmB;IACpB;GACD,SAAS;IACP,gBAAgB;IAChB,mBAAmB;IACpB;GACF;EACD,QAAQ;GACN,SAAS;GACT,eAAe;GACf,KAAK;GACL,cAAc;GACd,eAAe;GACf,UAAU;GACX;EACD,OAAO;GACL,OAAO;GACP,kBAAkB;GAClB,WAAW;GACZ;EACD,aAAa;GACX,OAAO;GACP,WAAW;GACZ;EACD,OAAO;GACL,OAAO;GACP,WAAW;GACZ;EACD,MAAM;GACJ,SAAS;GACT,MAAM;GACN,eAAe;GACf,KAAK;GACL,eAAe;GACf,OAAO,EACL,iBAAiB,MAClB;GACF;EACD,YAAY;GACV,SAAS;GACT,eAAe;GACf,WAAW;GACX,UAAU;GACV,OAAO,EACL,iBAAiB,MAClB;GACF;EACD,QAAQ;GACN,YAAY;GACZ,SAAS;GACT,KAAK;GACL,gBAAgB;GAChB,iBAAiB;GACjB,mBAAmB;GACnB,eAAe;GAChB;EACD,cAAc;GACZ,UAAU;GACV,UAAU;GACV,KAAK;GACN;EACD,cAAc;GACZ,YAAY;GACZ,WAAW;GACX,YAAY;GACZ,aAAa;GACb,cAAc;GACd,aAAa;GACb,QAAQ;GACR,WAAW;GACX,QAAQ;GACR,SAAS;GACT,QAAQ;GACR,gBAAgB;GAChB,UAAU;GACV,OAAO;GACR;EACD,gBAAgB;GACd,YAAY;GACZ,QAAQ;GACR,QAAQ;GACR,eAAe;GACf,UAAU;GACV,OAAO;GACR;EACF;CACD,UAAU;EACR,gBAAgB;GACd,QAAQ;IACN,MAAM;KACJ,WAAW;KACX,OAAO,EACL,iBAAiB,GAClB;KACF;IACD,SAAS;KACP,WAAW;KACX,UAAU;KACX;IACF;GACD,SAAS,EAAE;GACZ;EACD,MAAM;GACJ,IAAI,EACF,SAAS,EACP,OAAO,IAAI,IAAI,EAChB,EACF;GACD,IAAI,EACF,SAAS,EACP,OAAO,IAAI,IAAI,EAChB,EACF;GACD,IAAI,EACF,SAAS,EACP,OAAO,IAAI,IAAI,EAChB,EACF;GACF;EACF;CACD,iBAAiB;EACf,gBAAgB;EAChB,MAAM;EACP;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeSelect.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/NativeSelect.recipe.ts"],"sourcesContent":["import { nativeSelectAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst nativeSelectSlotRecipe = defineSlotRecipe({\n className: 'native-select',\n slots: [...nativeSelectAnatomy.keys(), 'statusIcon'],\n base: {\n root: {\n position: 'relative',\n },\n field: {\n width: '100%',\n minWidth: 0,\n appearance: 'none',\n borderRadius: '4',\n borderWidth: rem(1),\n borderColor: 'border/strong',\n background: 'background/primary',\n transition: '200ms',\n color: 'input/text/inputValue',\n _hover: {\n borderColor: 'border/hover',\n _invalid: {\n borderColor: 'border/error',\n },\n },\n _invalid: {\n borderColor: 'border/error',\n },\n _disabled: {\n _hover: {\n borderColor: 'border/disabled',\n },\n _placeholder: {\n color: 'text/disabled',\n },\n color: 'text/disabled',\n background: 'background/disabled',\n cursor: 'not-allowed',\n },\n _placeholderShown: {\n color: 'input/text/placeholder',\n },\n },\n statusIcon: {\n position: 'absolute',\n top: '50%',\n right: rem(48),\n transform: 'translateY(-50%)',\n pointerEvents: 'none',\n },\n indicator: {\n position: 'absolute',\n top: '50%',\n right: rem(15),\n transform: 'translateY(-50%)',\n },\n },\n variants: {\n size: {\n md: {\n field: { paddingInline: rem(11), paddingBlock: rem(
|
|
1
|
+
{"version":3,"file":"NativeSelect.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/NativeSelect.recipe.ts"],"sourcesContent":["import { nativeSelectAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst nativeSelectSlotRecipe = defineSlotRecipe({\n className: 'native-select',\n slots: [...nativeSelectAnatomy.keys(), 'statusIcon'],\n base: {\n root: {\n position: 'relative',\n },\n field: {\n width: '100%',\n minWidth: 0,\n appearance: 'none',\n borderRadius: '4',\n borderWidth: rem(1),\n borderColor: 'border/strong',\n background: 'background/primary',\n transition: '200ms',\n color: 'input/text/inputValue',\n _hover: {\n borderColor: 'border/hover',\n _invalid: {\n borderColor: 'border/error',\n },\n },\n _invalid: {\n borderColor: 'border/error',\n },\n _disabled: {\n _hover: {\n borderColor: 'border/disabled',\n },\n _placeholder: {\n color: 'text/disabled',\n },\n color: 'text/disabled',\n background: 'background/disabled',\n cursor: 'not-allowed',\n },\n _placeholderShown: {\n color: 'input/text/placeholder',\n },\n },\n statusIcon: {\n position: 'absolute',\n top: '50%',\n right: rem(48),\n transform: 'translateY(-50%)',\n pointerEvents: 'none',\n },\n indicator: {\n position: 'absolute',\n top: '50%',\n right: rem(15),\n transform: 'translateY(-50%)',\n },\n },\n variants: {\n size: {\n md: {\n field: { paddingInline: rem(11), paddingBlock: rem(9), textStyle: 'body/md/regular' },\n },\n lg: {\n field: { paddingInline: rem(15), paddingBlock: rem(11), textStyle: 'body/lg/regular' },\n },\n },\n },\n defaultVariants: {\n size: 'lg',\n },\n});\n\nexport default nativeSelectSlotRecipe;\n"],"mappings":";;;;AAKA,IAAM,yBAAyB,iBAAiB;CAC9C,WAAW;CACX,OAAO,CAAC,GAAG,oBAAoB,MAAM,EAAE,aAAa;CACpD,MAAM;EACJ,MAAM,EACJ,UAAU,YACX;EACD,OAAO;GACL,OAAO;GACP,UAAU;GACV,YAAY;GACZ,cAAc;GACd,aAAa,IAAI,EAAE;GACnB,aAAa;GACb,YAAY;GACZ,YAAY;GACZ,OAAO;GACP,QAAQ;IACN,aAAa;IACb,UAAU,EACR,aAAa,gBACd;IACF;GACD,UAAU,EACR,aAAa,gBACd;GACD,WAAW;IACT,QAAQ,EACN,aAAa,mBACd;IACD,cAAc,EACZ,OAAO,iBACR;IACD,OAAO;IACP,YAAY;IACZ,QAAQ;IACT;GACD,mBAAmB,EACjB,OAAO,0BACR;GACF;EACD,YAAY;GACV,UAAU;GACV,KAAK;GACL,OAAO,IAAI,GAAG;GACd,WAAW;GACX,eAAe;GAChB;EACD,WAAW;GACT,UAAU;GACV,KAAK;GACL,OAAO,IAAI,GAAG;GACd,WAAW;GACZ;EACF;CACD,UAAU,EACR,MAAM;EACJ,IAAI,EACF,OAAO;GAAE,eAAe,IAAI,GAAG;GAAE,cAAc,IAAI,EAAE;GAAE,WAAW;GAAmB,EACtF;EACD,IAAI,EACF,OAAO;GAAE,eAAe,IAAI,GAAG;GAAE,cAAc,IAAI,GAAG;GAAE,WAAW;GAAmB,EACvF;EACF,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const paginationSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"text" | "root" | "itemsBlock" | "itemsSelect" | "pageBlock" | "pageSelect", {
|
|
2
|
+
variant: {
|
|
3
|
+
card: {
|
|
4
|
+
root: {
|
|
5
|
+
paddingInline: "24";
|
|
6
|
+
paddingBlock: "8";
|
|
7
|
+
};
|
|
8
|
+
text: {
|
|
9
|
+
color: "text/tertiary";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
page: {
|
|
13
|
+
root: {
|
|
14
|
+
paddingInline: "24";
|
|
15
|
+
paddingBlock: "16";
|
|
16
|
+
borderTopWidth: string;
|
|
17
|
+
borderTopStyle: "solid";
|
|
18
|
+
borderTopColor: "border/regular";
|
|
19
|
+
};
|
|
20
|
+
text: {
|
|
21
|
+
color: "text/secondary";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
table: {
|
|
25
|
+
root: {
|
|
26
|
+
paddingInline: "16";
|
|
27
|
+
paddingBlock: "8";
|
|
28
|
+
};
|
|
29
|
+
text: {
|
|
30
|
+
color: "text/secondary";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
35
|
+
export default paginationSlotRecipe;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { rem } from "../themeUtils.js";
|
|
2
|
+
import { defineSlotRecipe } from "@chakra-ui/react/styled-system";
|
|
3
|
+
//#region lib/theme/slot-recipes/Pagination.recipe.ts
|
|
4
|
+
var paginationSlotRecipe = defineSlotRecipe({
|
|
5
|
+
className: "pagination",
|
|
6
|
+
slots: [
|
|
7
|
+
"itemsBlock",
|
|
8
|
+
"itemsSelect",
|
|
9
|
+
"pageBlock",
|
|
10
|
+
"pageSelect",
|
|
11
|
+
"root",
|
|
12
|
+
"text"
|
|
13
|
+
],
|
|
14
|
+
base: {
|
|
15
|
+
itemsBlock: {
|
|
16
|
+
display: "flex",
|
|
17
|
+
alignItems: "center",
|
|
18
|
+
gap: "8",
|
|
19
|
+
flexShrink: 0
|
|
20
|
+
},
|
|
21
|
+
itemsSelect: { width: rem(88) },
|
|
22
|
+
pageBlock: {
|
|
23
|
+
display: "flex",
|
|
24
|
+
alignItems: "center",
|
|
25
|
+
gap: "8",
|
|
26
|
+
flexShrink: 0
|
|
27
|
+
},
|
|
28
|
+
pageSelect: { width: rem(80) },
|
|
29
|
+
root: {
|
|
30
|
+
display: "flex",
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
justifyContent: "space-between",
|
|
33
|
+
overflow: "clip",
|
|
34
|
+
width: "full"
|
|
35
|
+
},
|
|
36
|
+
text: {
|
|
37
|
+
textStyle: "body/md/regular",
|
|
38
|
+
whiteSpace: "nowrap",
|
|
39
|
+
flexShrink: 0
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
variants: { variant: {
|
|
43
|
+
card: {
|
|
44
|
+
root: {
|
|
45
|
+
paddingInline: "24",
|
|
46
|
+
paddingBlock: "8"
|
|
47
|
+
},
|
|
48
|
+
text: { color: "text/tertiary" }
|
|
49
|
+
},
|
|
50
|
+
page: {
|
|
51
|
+
root: {
|
|
52
|
+
paddingInline: "24",
|
|
53
|
+
paddingBlock: "16",
|
|
54
|
+
borderTopWidth: rem(1),
|
|
55
|
+
borderTopStyle: "solid",
|
|
56
|
+
borderTopColor: "border/regular"
|
|
57
|
+
},
|
|
58
|
+
text: { color: "text/secondary" }
|
|
59
|
+
},
|
|
60
|
+
table: {
|
|
61
|
+
root: {
|
|
62
|
+
paddingInline: "16",
|
|
63
|
+
paddingBlock: "8"
|
|
64
|
+
},
|
|
65
|
+
text: { color: "text/secondary" }
|
|
66
|
+
}
|
|
67
|
+
} },
|
|
68
|
+
defaultVariants: { variant: "table" }
|
|
69
|
+
});
|
|
70
|
+
//#endregion
|
|
71
|
+
export { paginationSlotRecipe as default };
|
|
72
|
+
|
|
73
|
+
//# sourceMappingURL=Pagination.recipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Pagination.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst paginationSlotRecipe = defineSlotRecipe({\n className: 'pagination',\n slots: ['itemsBlock', 'itemsSelect', 'pageBlock', 'pageSelect', 'root', 'text'],\n base: {\n itemsBlock: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n flexShrink: 0,\n },\n itemsSelect: {\n width: rem(88),\n },\n pageBlock: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n flexShrink: 0,\n },\n pageSelect: {\n width: rem(80),\n },\n root: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n overflow: 'clip',\n width: 'full',\n },\n text: {\n textStyle: 'body/md/regular',\n whiteSpace: 'nowrap',\n flexShrink: 0,\n },\n },\n variants: {\n variant: {\n card: {\n root: {\n paddingInline: '24',\n paddingBlock: '8',\n },\n text: {\n color: 'text/tertiary',\n },\n },\n page: {\n root: {\n paddingInline: '24',\n paddingBlock: '16',\n borderTopWidth: rem(1),\n borderTopStyle: 'solid',\n borderTopColor: 'border/regular',\n },\n text: {\n color: 'text/secondary',\n },\n },\n table: {\n root: {\n paddingInline: '16',\n paddingBlock: '8',\n },\n text: {\n color: 'text/secondary',\n },\n },\n },\n },\n defaultVariants: {\n variant: 'table',\n },\n});\n\nexport default paginationSlotRecipe;\n"],"mappings":";;;AAIA,IAAM,uBAAuB,iBAAiB;CAC5C,WAAW;CACX,OAAO;EAAC;EAAc;EAAe;EAAa;EAAc;EAAQ;EAAO;CAC/E,MAAM;EACJ,YAAY;GACV,SAAS;GACT,YAAY;GACZ,KAAK;GACL,YAAY;GACb;EACD,aAAa,EACX,OAAO,IAAI,GAAG,EACf;EACD,WAAW;GACT,SAAS;GACT,YAAY;GACZ,KAAK;GACL,YAAY;GACb;EACD,YAAY,EACV,OAAO,IAAI,GAAG,EACf;EACD,MAAM;GACJ,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,UAAU;GACV,OAAO;GACR;EACD,MAAM;GACJ,WAAW;GACX,YAAY;GACZ,YAAY;GACb;EACF;CACD,UAAU,EACR,SAAS;EACP,MAAM;GACJ,MAAM;IACJ,eAAe;IACf,cAAc;IACf;GACD,MAAM,EACJ,OAAO,iBACR;GACF;EACD,MAAM;GACJ,MAAM;IACJ,eAAe;IACf,cAAc;IACd,gBAAgB,IAAI,EAAE;IACtB,gBAAgB;IAChB,gBAAgB;IACjB;GACD,MAAM,EACJ,OAAO,kBACR;GACF;EACD,OAAO;GACL,MAAM;IACJ,eAAe;IACf,cAAc;IACf;GACD,MAAM,EACJ,OAAO,kBACR;GACF;EACF,EACF;CACD,iBAAiB,EACf,SAAS,SACV;CACF,CAAC"}
|
|
@@ -943,6 +943,40 @@ declare const slotRecipes: {
|
|
|
943
943
|
};
|
|
944
944
|
};
|
|
945
945
|
}>;
|
|
946
|
+
pagination: import('@chakra-ui/react').SlotRecipeDefinition<"text" | "root" | "itemsBlock" | "itemsSelect" | "pageBlock" | "pageSelect", {
|
|
947
|
+
variant: {
|
|
948
|
+
card: {
|
|
949
|
+
root: {
|
|
950
|
+
paddingInline: "24";
|
|
951
|
+
paddingBlock: "8";
|
|
952
|
+
};
|
|
953
|
+
text: {
|
|
954
|
+
color: "text/tertiary";
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
page: {
|
|
958
|
+
root: {
|
|
959
|
+
paddingInline: "24";
|
|
960
|
+
paddingBlock: "16";
|
|
961
|
+
borderTopWidth: string;
|
|
962
|
+
borderTopStyle: "solid";
|
|
963
|
+
borderTopColor: "border/regular";
|
|
964
|
+
};
|
|
965
|
+
text: {
|
|
966
|
+
color: "text/secondary";
|
|
967
|
+
};
|
|
968
|
+
};
|
|
969
|
+
table: {
|
|
970
|
+
root: {
|
|
971
|
+
paddingInline: "16";
|
|
972
|
+
paddingBlock: "8";
|
|
973
|
+
};
|
|
974
|
+
text: {
|
|
975
|
+
color: "text/secondary";
|
|
976
|
+
};
|
|
977
|
+
};
|
|
978
|
+
};
|
|
979
|
+
}>;
|
|
946
980
|
paginationLoadMore: import('@chakra-ui/react').SlotRecipeDefinition<"root" | "counter", {
|
|
947
981
|
size: {
|
|
948
982
|
md: {
|
|
@@ -29,6 +29,7 @@ import markdownCardSlotRecipe from "./MarkdownCard.recipe.js";
|
|
|
29
29
|
import menuSlotRecipe from "./Menu.recipe.js";
|
|
30
30
|
import nativeSelectSlotRecipe from "./NativeSelect.recipe.js";
|
|
31
31
|
import noteCardSlotRecipe from "./NoteCard.recipe.js";
|
|
32
|
+
import paginationSlotRecipe from "./Pagination.recipe.js";
|
|
32
33
|
import paginationLoadMoreRecipe from "./PaginationLoadMore.recipe.js";
|
|
33
34
|
import radioGroupSlotRecipe from "./RadioGroup.recipe.js";
|
|
34
35
|
import ribbonSlotRecipe from "./Ribbon.recipe.js";
|
|
@@ -77,6 +78,7 @@ var slotRecipes = {
|
|
|
77
78
|
noteCard: noteCardSlotRecipe,
|
|
78
79
|
nativeSelect: nativeSelectSlotRecipe,
|
|
79
80
|
numberInput: numberInputSlotRecipe,
|
|
81
|
+
pagination: paginationSlotRecipe,
|
|
80
82
|
paginationLoadMore: paginationLoadMoreRecipe,
|
|
81
83
|
radioGroup: radioGroupSlotRecipe,
|
|
82
84
|
ribbon: ribbonSlotRecipe,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../lib/theme/slot-recipes/index.ts"],"sourcesContent":["import accordionSlotRecipe from './Accordion.recipe.ts';\nimport actionBarSlotRecipe from './ActionBar.recipe.ts';\nimport alertSlotRecipe from './Alert.recipe.ts';\nimport avatarSlotRecipe from './Avatar.recipe.ts';\nimport breadcrumbSlotRecipe from './Breadcrumb.recipe.ts';\nimport cardSlotRecipe from './Card.recipe';\nimport checkboxSlotRecipe from './Checkbox.recipe';\nimport codeSnippetSlotRecipe from './CodeSnippet.recipe.ts';\nimport collapsibleSlotRecipe from './Collapsible.recipe.ts';\nimport comboboxSlotRecipe from './Combobox.recipe.ts';\nimport datePickerSlotRecipe from './DatePicker.recipe.ts';\nimport datePickerSelectSlotRecipe from './DatePickerSelect.recipe.ts';\nimport dialogSlotRecipe from './Dialog.recipe.ts';\nimport draggableCardSlotRecipe from './DraggableCard.recipe.ts';\nimport emptyStateSlotRecipe from './EmptyState.recipe';\nimport expandableCardSlotRecipe from './ExpandableCard.recipe.ts';\nimport fieldSlotRecipe from './Field.recipe';\nimport fieldsetSlotRecipe from './Fieldset.recipe.ts';\nimport fileUploadSlotRecipe from './FileUpload.recipe.ts';\nimport groupHeadingSlotRecipe from './GroupHeading.recipe.ts';\nimport imageCropperSlotRecipe from './ImageCropper.recipe.ts';\nimport inlineLoadingSlotRecipe from './InlineLoading.recipe.ts';\nimport labeledDataSlotRecipe from './LabeledData.recipe.ts';\nimport listSlotRecipe from './List.recipe.ts';\nimport markdownSlotRecipe from './Markdown.recipe.ts';\nimport markdownCardSlotRecipe from './MarkdownCard.recipe.ts';\nimport menuSlotRecipe from './Menu.recipe.ts';\nimport nativeSelectSlotRecipe from './NativeSelect.recipe.ts';\nimport noteCardSlotRecipe from './NoteCard.recipe.ts';\nimport numberInputSlotRecipe from './NumberInput.recipe';\nimport paginationLoadMoreSlotRecipe from './PaginationLoadMore.recipe.ts';\nimport radioGroupSlotRecipe from './RadioGroup.recipe.ts';\nimport ribbonSlotRecipe from './Ribbon.recipe.ts';\nimport sectionHeadingSlotRecipe from './SectionHeading.recipe.ts';\nimport segmentGroupSlotRecipe from './SegmentGroup.recipe.ts';\nimport { selectSlotRecipe } from './Select.recipe.ts';\nimport sidebarSlotRecipe from './Sidebar.recipe.ts';\nimport splitButtonSlotRecipe from './SplitButton.recipe.ts';\nimport statSlotRecipe from './Stat.recipe.ts';\nimport stepCardSlotRecipe from './StepCard.recipe.ts';\nimport stepsSlotRecipe from './Steps.recipe.ts';\nimport switchSlotRecipe from './Switch.recipe';\nimport tableSlotRecipe from './Table.recipe.ts';\nimport tabsSlotRecipe from './Tabs.recipe';\nimport tagSlotRecipe from './Tag.recipe.ts';\nimport tagsInputSlotRecipe from './TagsInput.recipe.ts';\nimport toastSlotRecipe from './Toast.recipe';\nimport tooltipSlotRecipe from './Tooltip.recipe';\n\nconst slotRecipes = {\n accordion: accordionSlotRecipe,\n actionBar: actionBarSlotRecipe,\n alert: alertSlotRecipe,\n avatar: avatarSlotRecipe,\n breadcrumb: breadcrumbSlotRecipe,\n card: cardSlotRecipe,\n checkbox: checkboxSlotRecipe,\n codeSnippet: codeSnippetSlotRecipe,\n collapsible: collapsibleSlotRecipe,\n combobox: comboboxSlotRecipe,\n datePicker: datePickerSlotRecipe,\n datePickerSelect: datePickerSelectSlotRecipe,\n dialog: dialogSlotRecipe,\n draggableCard: draggableCardSlotRecipe,\n emptyState: emptyStateSlotRecipe,\n expandableCard: expandableCardSlotRecipe,\n field: fieldSlotRecipe,\n groupHeading: groupHeadingSlotRecipe,\n fieldset: fieldsetSlotRecipe,\n fileUpload: fileUploadSlotRecipe,\n imageCropper: imageCropperSlotRecipe,\n inlineLoading: inlineLoadingSlotRecipe,\n list: listSlotRecipe,\n markdown: markdownSlotRecipe,\n markdownCard: markdownCardSlotRecipe,\n menu: menuSlotRecipe,\n noteCard: noteCardSlotRecipe,\n nativeSelect: nativeSelectSlotRecipe,\n numberInput: numberInputSlotRecipe,\n paginationLoadMore: paginationLoadMoreSlotRecipe,\n radioGroup: radioGroupSlotRecipe,\n ribbon: ribbonSlotRecipe,\n sectionHeading: sectionHeadingSlotRecipe,\n labeledData: labeledDataSlotRecipe,\n segmentGroup: segmentGroupSlotRecipe,\n sidebar: sidebarSlotRecipe,\n select: selectSlotRecipe,\n splitButton: splitButtonSlotRecipe,\n stat: statSlotRecipe,\n stepsCard: stepCardSlotRecipe,\n steps: stepsSlotRecipe,\n switch: switchSlotRecipe,\n table: tableSlotRecipe,\n tabs: tabsSlotRecipe,\n tag: tagSlotRecipe,\n tagsInput: tagsInputSlotRecipe,\n toast: toastSlotRecipe,\n tooltip: tooltipSlotRecipe,\n};\n\nexport default slotRecipes;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../lib/theme/slot-recipes/index.ts"],"sourcesContent":["import accordionSlotRecipe from './Accordion.recipe.ts';\nimport actionBarSlotRecipe from './ActionBar.recipe.ts';\nimport alertSlotRecipe from './Alert.recipe.ts';\nimport avatarSlotRecipe from './Avatar.recipe.ts';\nimport breadcrumbSlotRecipe from './Breadcrumb.recipe.ts';\nimport cardSlotRecipe from './Card.recipe';\nimport checkboxSlotRecipe from './Checkbox.recipe';\nimport codeSnippetSlotRecipe from './CodeSnippet.recipe.ts';\nimport collapsibleSlotRecipe from './Collapsible.recipe.ts';\nimport comboboxSlotRecipe from './Combobox.recipe.ts';\nimport datePickerSlotRecipe from './DatePicker.recipe.ts';\nimport datePickerSelectSlotRecipe from './DatePickerSelect.recipe.ts';\nimport dialogSlotRecipe from './Dialog.recipe.ts';\nimport draggableCardSlotRecipe from './DraggableCard.recipe.ts';\nimport emptyStateSlotRecipe from './EmptyState.recipe';\nimport expandableCardSlotRecipe from './ExpandableCard.recipe.ts';\nimport fieldSlotRecipe from './Field.recipe';\nimport fieldsetSlotRecipe from './Fieldset.recipe.ts';\nimport fileUploadSlotRecipe from './FileUpload.recipe.ts';\nimport groupHeadingSlotRecipe from './GroupHeading.recipe.ts';\nimport imageCropperSlotRecipe from './ImageCropper.recipe.ts';\nimport inlineLoadingSlotRecipe from './InlineLoading.recipe.ts';\nimport labeledDataSlotRecipe from './LabeledData.recipe.ts';\nimport listSlotRecipe from './List.recipe.ts';\nimport markdownSlotRecipe from './Markdown.recipe.ts';\nimport markdownCardSlotRecipe from './MarkdownCard.recipe.ts';\nimport menuSlotRecipe from './Menu.recipe.ts';\nimport nativeSelectSlotRecipe from './NativeSelect.recipe.ts';\nimport noteCardSlotRecipe from './NoteCard.recipe.ts';\nimport numberInputSlotRecipe from './NumberInput.recipe';\nimport paginationSlotRecipe from './Pagination.recipe.ts';\nimport paginationLoadMoreSlotRecipe from './PaginationLoadMore.recipe.ts';\nimport radioGroupSlotRecipe from './RadioGroup.recipe.ts';\nimport ribbonSlotRecipe from './Ribbon.recipe.ts';\nimport sectionHeadingSlotRecipe from './SectionHeading.recipe.ts';\nimport segmentGroupSlotRecipe from './SegmentGroup.recipe.ts';\nimport { selectSlotRecipe } from './Select.recipe.ts';\nimport sidebarSlotRecipe from './Sidebar.recipe.ts';\nimport splitButtonSlotRecipe from './SplitButton.recipe.ts';\nimport statSlotRecipe from './Stat.recipe.ts';\nimport stepCardSlotRecipe from './StepCard.recipe.ts';\nimport stepsSlotRecipe from './Steps.recipe.ts';\nimport switchSlotRecipe from './Switch.recipe';\nimport tableSlotRecipe from './Table.recipe.ts';\nimport tabsSlotRecipe from './Tabs.recipe';\nimport tagSlotRecipe from './Tag.recipe.ts';\nimport tagsInputSlotRecipe from './TagsInput.recipe.ts';\nimport toastSlotRecipe from './Toast.recipe';\nimport tooltipSlotRecipe from './Tooltip.recipe';\n\nconst slotRecipes = {\n accordion: accordionSlotRecipe,\n actionBar: actionBarSlotRecipe,\n alert: alertSlotRecipe,\n avatar: avatarSlotRecipe,\n breadcrumb: breadcrumbSlotRecipe,\n card: cardSlotRecipe,\n checkbox: checkboxSlotRecipe,\n codeSnippet: codeSnippetSlotRecipe,\n collapsible: collapsibleSlotRecipe,\n combobox: comboboxSlotRecipe,\n datePicker: datePickerSlotRecipe,\n datePickerSelect: datePickerSelectSlotRecipe,\n dialog: dialogSlotRecipe,\n draggableCard: draggableCardSlotRecipe,\n emptyState: emptyStateSlotRecipe,\n expandableCard: expandableCardSlotRecipe,\n field: fieldSlotRecipe,\n groupHeading: groupHeadingSlotRecipe,\n fieldset: fieldsetSlotRecipe,\n fileUpload: fileUploadSlotRecipe,\n imageCropper: imageCropperSlotRecipe,\n inlineLoading: inlineLoadingSlotRecipe,\n list: listSlotRecipe,\n markdown: markdownSlotRecipe,\n markdownCard: markdownCardSlotRecipe,\n menu: menuSlotRecipe,\n noteCard: noteCardSlotRecipe,\n nativeSelect: nativeSelectSlotRecipe,\n numberInput: numberInputSlotRecipe,\n pagination: paginationSlotRecipe,\n paginationLoadMore: paginationLoadMoreSlotRecipe,\n radioGroup: radioGroupSlotRecipe,\n ribbon: ribbonSlotRecipe,\n sectionHeading: sectionHeadingSlotRecipe,\n labeledData: labeledDataSlotRecipe,\n segmentGroup: segmentGroupSlotRecipe,\n sidebar: sidebarSlotRecipe,\n select: selectSlotRecipe,\n splitButton: splitButtonSlotRecipe,\n stat: statSlotRecipe,\n stepsCard: stepCardSlotRecipe,\n steps: stepsSlotRecipe,\n switch: switchSlotRecipe,\n table: tableSlotRecipe,\n tabs: tabsSlotRecipe,\n tag: tagSlotRecipe,\n tagsInput: tagsInputSlotRecipe,\n toast: toastSlotRecipe,\n tooltip: tooltipSlotRecipe,\n};\n\nexport default slotRecipes;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDA,IAAM,cAAc;CAClB,WAAW;CACX,WAAW;CACX,OAAO;CACP,QAAQ;CACR,YAAY;CACZ,MAAM;CACN,UAAU;CACV,aAAa;CACb,aAAa;CACb,UAAU;CACV,YAAY;CACZ,kBAAkB;CAClB,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,gBAAgB;CAChB,OAAO;CACP,cAAc;CACd,UAAU;CACV,YAAY;CACZ,cAAc;CACd,eAAe;CACf,MAAM;CACN,UAAU;CACV,cAAc;CACd,MAAM;CACN,UAAU;CACV,cAAc;CACd,aAAa;CACb,YAAY;CACZ,oBAAoB;CACpB,YAAY;CACZ,QAAQ;CACR,gBAAgB;CAChB,aAAa;CACb,cAAc;CACd,SAAS;CACT,QAAQ;CACR,aAAa;CACb,MAAM;CACN,WAAW;CACX,OAAO;CACP,QAAQ;CACR,OAAO;CACP,MAAM;CACN,KAAK;CACL,WAAW;CACX,OAAO;CACP,SAAS;CACV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssetSelectChevron.js","names":[],"sources":["../../lib/utilities/AssetSelectChevron.tsx"],"sourcesContent":["import { Icon, type IconProps } from '@chakra-ui/react/icon';\nimport { forwardRef, type Ref } from 'react';\n\nconst AssetSelectChevron = forwardRef((props: IconProps, ref: Ref<SVGSVGElement>) => (\n <Icon\n asChild\n ref={ref}\n transition=\"0.2s ease\"\n _open={{\n transform: 'rotate(180deg)',\n }}\n _disabled={{\n cursor: 'not-allowed',\n color: 'icon/disabled',\n }}\n color=\"icon/secondary\"\n _groupFocusWithin={{\n color: 'icon/primary',\n }}\n _groupHover={{\n color: 'icon/primary',\n }}\n {...props}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M6.29285 10.2071L7.70706 8.79289L12 13.0858L16.2928 8.79289L17.7071 10.2071L12 15.9142L6.29285 10.2071Z\"\n fill=\"currentColor\"\n />\n </svg>\n </Icon>\n));\n\nAssetSelectChevron.displayName = 'AssetSelectChevron';\n\nexport default AssetSelectChevron;\n"],"mappings":";;;;AAGA,IAAM,qBAAqB,YAAY,OAAkB,QACvD,oBAAC,MAAD;CACE,SAAA;CACK;CACL,YAAW;CACX,OAAO,EACL,WAAW,kBACZ;CACD,WAAW;EACT,QAAQ;EACR,OAAO;EACR;CACD,OAAM;CACN,mBAAmB,EACjB,OAAO,gBACR;CACD,aAAa,EACX,OAAO,gBACR;CACD,GAAI;WAEJ,oBAAC,OAAD;EAAK,OAAM;EAA6B,SAAQ;EAAY,OAAM;EAAK,QAAO;YAC5E,oBAAC,QAAD;GACE,UAAS;GACT,UAAS;GACT,GAAE;GACF,MAAK;GACL,CAAA;EACE,CAAA;CACD,CAAA,CACP;AAEF,mBAAmB,cAAc"}
|
|
1
|
+
{"version":3,"file":"AssetSelectChevron.js","names":[],"sources":["../../lib/utilities/AssetSelectChevron.tsx"],"sourcesContent":["import { Icon, type IconProps } from '@chakra-ui/react/icon';\nimport { forwardRef, type Ref } from 'react';\n\nconst AssetSelectChevron = forwardRef((props: IconProps, ref: Ref<SVGSVGElement>) => (\n <Icon\n asChild\n ref={ref}\n transition=\"0.2s ease\"\n pointerEvents=\"none\"\n _open={{\n transform: 'rotate(180deg)',\n }}\n _disabled={{\n cursor: 'not-allowed',\n color: 'icon/disabled',\n }}\n color=\"icon/secondary\"\n _groupFocusWithin={{\n color: 'icon/primary',\n }}\n _groupHover={{\n color: 'icon/primary',\n }}\n {...props}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M6.29285 10.2071L7.70706 8.79289L12 13.0858L16.2928 8.79289L17.7071 10.2071L12 15.9142L6.29285 10.2071Z\"\n fill=\"currentColor\"\n />\n </svg>\n </Icon>\n));\n\nAssetSelectChevron.displayName = 'AssetSelectChevron';\n\nexport default AssetSelectChevron;\n"],"mappings":";;;;AAGA,IAAM,qBAAqB,YAAY,OAAkB,QACvD,oBAAC,MAAD;CACE,SAAA;CACK;CACL,YAAW;CACX,eAAc;CACd,OAAO,EACL,WAAW,kBACZ;CACD,WAAW;EACT,QAAQ;EACR,OAAO;EACR;CACD,OAAM;CACN,mBAAmB,EACjB,OAAO,gBACR;CACD,aAAa,EACX,OAAO,gBACR;CACD,GAAI;WAEJ,oBAAC,OAAD;EAAK,OAAM;EAA6B,SAAQ;EAAY,OAAM;EAAK,QAAO;YAC5E,oBAAC,QAAD;GACE,UAAS;GACT,UAAS;GACT,GAAE;GACF,MAAK;GACL,CAAA;EACE,CAAA;CACD,CAAA,CACP;AAEF,mBAAmB,cAAc"}
|