@tidbcloud/uikit 2.0.0-beta.86 → 2.0.0-beta.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/biz/Form/FormActions.cjs +3 -3
- package/dist/biz/Form/FormActions.js +1 -1
- package/dist/biz/Form/SegmentControl.cjs +26 -0
- package/dist/biz/Form/SegmentControl.d.cts +7 -0
- package/dist/biz/Form/SegmentControl.d.ts +7 -0
- package/dist/biz/Form/SegmentControl.js +26 -0
- package/dist/biz/Form/index.d.cts +1 -0
- package/dist/biz/Form/index.d.ts +1 -0
- package/dist/biz/SearchArea/index.cjs +7 -7
- package/dist/biz/SearchArea/index.js +1 -1
- package/dist/biz/Table/ProTable/helpers.cjs +13 -0
- package/dist/biz/Table/ProTable/helpers.js +13 -0
- package/dist/biz/TimeRangePicker/AbsoluteTimeRangePicker.cjs +3 -3
- package/dist/biz/TimeRangePicker/AbsoluteTimeRangePicker.js +1 -1
- package/dist/biz/TimeRangePicker/index.cjs +6 -6
- package/dist/biz/TimeRangePicker/index.js +1 -1
- package/dist/biz/index.cjs +2 -0
- package/dist/biz/index.js +2 -0
- package/dist/node_modules/.pnpm/@mantine_dates@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hoo_fqvtf6tg4qjwkxanualzufe6zy/node_modules/@mantine/dates/esm/utils/get-timezone-offset.js +7 -7
- package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.cjs +5 -5
- package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.js +5 -5
- package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.cjs +5 -5
- package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.js +5 -5
- package/dist/primitive/Button/index.cjs +20 -0
- package/dist/primitive/Button/index.d.cts +4 -0
- package/dist/primitive/Button/index.d.ts +4 -0
- package/dist/primitive/Button/index.js +20 -0
- package/dist/primitive/TextInput/TextInput.cjs +40 -20
- package/dist/primitive/TextInput/TextInput.d.cts +5 -1
- package/dist/primitive/TextInput/TextInput.d.ts +5 -1
- package/dist/primitive/TextInput/TextInput.js +40 -20
- package/dist/primitive/index.cjs +16 -16
- package/dist/primitive/index.d.cts +7 -6
- package/dist/primitive/index.d.ts +7 -6
- package/dist/primitive/index.js +3 -3
- package/dist/theme/theme.cjs +7 -8
- package/dist/theme/theme.js +7 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,8 +8,8 @@ const jsxRuntime = require("../../node_modules/.pnpm/react@18.3.1/node_modules/r
|
|
|
8
8
|
;/* empty css */
|
|
9
9
|
;/* empty css */
|
|
10
10
|
const index = require("../../primitive/Typography/index.cjs");
|
|
11
|
+
const index$1 = require("../../primitive/Button/index.cjs");
|
|
11
12
|
const Flex = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Flex/Flex.cjs");
|
|
12
|
-
const Button = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Button/Button.cjs");
|
|
13
13
|
const FormActions = ({
|
|
14
14
|
disabled,
|
|
15
15
|
cancelProps,
|
|
@@ -23,8 +23,8 @@ const FormActions = ({
|
|
|
23
23
|
}) => {
|
|
24
24
|
const style = index.TYPOGRAPHY_STYLES_MAP["action-md"];
|
|
25
25
|
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Flex.Flex, { justify: "flex-end", mt: 24, ...rest, children: [
|
|
26
|
-
cancelText && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
27
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
26
|
+
cancelText && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index$1.Button, { onClick: onCancel, mr: 16, variant: "default", fw: style.fw, fs: style.fs, ...cancelProps, children: cancelText }),
|
|
27
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index$1.Button, { type: "submit", onClick: onConfirm, loading, disabled, ...confirmProps, children: confirmText })
|
|
28
28
|
] });
|
|
29
29
|
};
|
|
30
30
|
FormActions.displayName = "HookFormActions";
|
|
@@ -6,8 +6,8 @@ import { j as jsxRuntimeExports } from "../../node_modules/.pnpm/react@18.3.1/no
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { TYPOGRAPHY_STYLES_MAP } from "../../primitive/Typography/index.js";
|
|
9
|
+
import { Button } from "../../primitive/Button/index.js";
|
|
9
10
|
import { Flex } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Flex/Flex.js";
|
|
10
|
-
import { Button } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Button/Button.js";
|
|
11
11
|
const FormActions = ({
|
|
12
12
|
disabled,
|
|
13
13
|
cancelProps,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.cjs");
|
|
4
|
+
const reactHookForm = require("react-hook-form");
|
|
5
|
+
;/* empty css */
|
|
6
|
+
;/* empty css */
|
|
7
|
+
;/* empty css */
|
|
8
|
+
;/* empty css */
|
|
9
|
+
;/* empty css */
|
|
10
|
+
;/* empty css */
|
|
11
|
+
const SegmentedControl = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/SegmentedControl/SegmentedControl.cjs");
|
|
12
|
+
const FormSegmentedControl = ({ name, rules, ...restProps }) => {
|
|
13
|
+
const { control } = reactHookForm.useFormContext();
|
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
15
|
+
reactHookForm.Controller,
|
|
16
|
+
{
|
|
17
|
+
name,
|
|
18
|
+
control,
|
|
19
|
+
rules,
|
|
20
|
+
render: ({ field: { onChange, value } }) => {
|
|
21
|
+
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(SegmentedControl.SegmentedControl, { value, onChange, ...restProps });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
exports.FormSegmentedControl = FormSegmentedControl;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RegisterOptions } from 'react-hook-form';
|
|
2
|
+
import { SegmentedControlProps } from '../../primitive/index.js';
|
|
3
|
+
export interface FormSegmentedControlProps extends SegmentedControlProps {
|
|
4
|
+
name: string;
|
|
5
|
+
rules?: RegisterOptions;
|
|
6
|
+
}
|
|
7
|
+
export declare const FormSegmentedControl: ({ name, rules, ...restProps }: FormSegmentedControlProps) => import("react/jsx-runtime.js").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RegisterOptions } from 'react-hook-form';
|
|
2
|
+
import { SegmentedControlProps } from '../../primitive/index.js';
|
|
3
|
+
export interface FormSegmentedControlProps extends SegmentedControlProps {
|
|
4
|
+
name: string;
|
|
5
|
+
rules?: RegisterOptions;
|
|
6
|
+
}
|
|
7
|
+
export declare const FormSegmentedControl: ({ name, rules, ...restProps }: FormSegmentedControlProps) => import("react/jsx-runtime.js").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from "../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { useFormContext, Controller } from "react-hook-form";
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
import { SegmentedControl } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/SegmentedControl/SegmentedControl.js";
|
|
10
|
+
const FormSegmentedControl = ({ name, rules, ...restProps }) => {
|
|
11
|
+
const { control } = useFormContext();
|
|
12
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13
|
+
Controller,
|
|
14
|
+
{
|
|
15
|
+
name,
|
|
16
|
+
control,
|
|
17
|
+
rules,
|
|
18
|
+
render: ({ field: { onChange, value } }) => {
|
|
19
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(SegmentedControl, { value, onChange, ...restProps });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
FormSegmentedControl
|
|
26
|
+
};
|
package/dist/biz/Form/index.d.ts
CHANGED
|
@@ -4,19 +4,19 @@ const jsxRuntime = require("../../node_modules/.pnpm/react@18.3.1/node_modules/r
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const reactHookForm = require("react-hook-form");
|
|
6
6
|
const useURLQueryState = require("../../hooks/useURLQueryState.cjs");
|
|
7
|
-
const index = require("../../icons/index.cjs");
|
|
7
|
+
const index$1 = require("../../icons/index.cjs");
|
|
8
8
|
;/* empty css */
|
|
9
9
|
;/* empty css */
|
|
10
10
|
;/* empty css */
|
|
11
11
|
;/* empty css */
|
|
12
12
|
;/* empty css */
|
|
13
13
|
;/* empty css */
|
|
14
|
+
const index = require("../../primitive/Button/index.cjs");
|
|
14
15
|
const styles = require("../../utils/styles.cjs");
|
|
15
16
|
const DatePicker = require("../Form/DatePicker.cjs");
|
|
16
17
|
const FormTimeRangePicker = require("../Form/FormTimeRangePicker.cjs");
|
|
17
18
|
const Box = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/core/Box/Box.cjs");
|
|
18
19
|
const Form = require("../Form/Form.cjs");
|
|
19
|
-
const Button = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Button/Button.cjs");
|
|
20
20
|
const MultiSelect = require("../Form/MultiSelect.cjs");
|
|
21
21
|
const Select = require("../Form/Select.cjs");
|
|
22
22
|
const TextInput = require("../Form/TextInput.cjs");
|
|
@@ -54,7 +54,7 @@ function FormItemRender(props) {
|
|
|
54
54
|
placeholder: placeholder ?? "",
|
|
55
55
|
onKeyDown: onKeyDownHandler,
|
|
56
56
|
rightSection: !!keyword && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
57
|
-
index.IconXClose,
|
|
57
|
+
index$1.IconXClose,
|
|
58
58
|
{
|
|
59
59
|
style: { cursor: "pointer" },
|
|
60
60
|
size: 14,
|
|
@@ -162,11 +162,11 @@ function SearchArea(props) {
|
|
|
162
162
|
x.name
|
|
163
163
|
)),
|
|
164
164
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Box.Box, { sx: SX_Y_MID, children: [
|
|
165
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Box.Box, { sx: SX_Y_MID, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
|
|
166
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.IconEraser, { size: 16, style: { marginRight: 4 } }),
|
|
165
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Box.Box, { sx: SX_Y_MID, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(index.Button, { variant: "subtle", color: "carbon.8", onClick: handleReset, children: [
|
|
166
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index$1.IconEraser, { size: 16, style: { marginRight: 4 } }),
|
|
167
167
|
"Clear Filters"
|
|
168
168
|
] }) }),
|
|
169
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Box.Box, { ml: 16, sx: SX_Y_MID, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
169
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Box.Box, { ml: 16, sx: SX_Y_MID, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.Button, { variant: "subtle", color: "carbon.8", onClick: handleSubmit, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index$1.IconRefreshCw01, { size: 16 }) }) })
|
|
170
170
|
] })
|
|
171
171
|
] }) }),
|
|
172
172
|
props.debugEnabled && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Box.Box, { sx: { height: 320 }, children: [
|
|
@@ -174,7 +174,7 @@ function SearchArea(props) {
|
|
|
174
174
|
"result = ",
|
|
175
175
|
JSON.stringify(form.getValues(), null, 4)
|
|
176
176
|
] }),
|
|
177
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
177
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.Button, { onClick: () => window.location.reload(), children: "Refresh Page" })
|
|
178
178
|
] })
|
|
179
179
|
] }) });
|
|
180
180
|
}
|
|
@@ -9,12 +9,12 @@ import { IconEraser, IconRefreshCw01, IconXClose } from "../../icons/index.js";
|
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
11
|
/* empty css */
|
|
12
|
+
import { Button } from "../../primitive/Button/index.js";
|
|
12
13
|
import { mergeSxList } from "../../utils/styles.js";
|
|
13
14
|
import { FormDatePicker } from "../Form/DatePicker.js";
|
|
14
15
|
import { FormTimeRangePicker } from "../Form/FormTimeRangePicker.js";
|
|
15
16
|
import { Box } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/core/Box/Box.js";
|
|
16
17
|
import { Form } from "../Form/Form.js";
|
|
17
|
-
import { Button } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Button/Button.js";
|
|
18
18
|
import { FormMultiSelect } from "../Form/MultiSelect.js";
|
|
19
19
|
import { FormSelect } from "../Form/Select.js";
|
|
20
20
|
import { FormTextInput } from "../Form/TextInput.js";
|
|
@@ -30,6 +30,7 @@ function mergeProTableProps(props) {
|
|
|
30
30
|
const {
|
|
31
31
|
mantineTableProps = {},
|
|
32
32
|
mantinePaperProps = {},
|
|
33
|
+
mantineTableContainerProps = {},
|
|
33
34
|
mantineSkeletonProps = {},
|
|
34
35
|
mantineTableBodyProps,
|
|
35
36
|
mantineTableHeadCellProps = {},
|
|
@@ -116,6 +117,14 @@ function mergeProTableProps(props) {
|
|
|
116
117
|
},
|
|
117
118
|
mantineTableProps
|
|
118
119
|
);
|
|
120
|
+
const mTableContainerProps = mergeMProps(
|
|
121
|
+
{
|
|
122
|
+
sx: {
|
|
123
|
+
backgroundColor: "transparent"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
mantineTableContainerProps
|
|
127
|
+
);
|
|
119
128
|
const mTableBodyProps = mergeMProps((args) => {
|
|
120
129
|
var _a, _b, _c;
|
|
121
130
|
if (!(data == null ? void 0 : data.length)) {
|
|
@@ -163,6 +172,9 @@ function mergeProTableProps(props) {
|
|
|
163
172
|
},
|
|
164
173
|
"&:not([data-striped], [data-striped='false'])": {
|
|
165
174
|
backgroundColor: theme.colors.carbon[0]
|
|
175
|
+
},
|
|
176
|
+
"&:not([data-selected], [data-row-pinned]) td[data-column-pinned]::before": {
|
|
177
|
+
backgroundColor: "transparent"
|
|
166
178
|
}
|
|
167
179
|
}
|
|
168
180
|
};
|
|
@@ -229,6 +241,7 @@ function mergeProTableProps(props) {
|
|
|
229
241
|
mantineSkeletonProps: mTabelSkeletonProps,
|
|
230
242
|
mantineLoadingOverlayProps: mLoadingOverlayProps,
|
|
231
243
|
mantineTableBodyProps: mTableBodyProps,
|
|
244
|
+
mantineTableContainerProps: mTableContainerProps,
|
|
232
245
|
mantineBottomToolbarProps: mBottomToolbarProps,
|
|
233
246
|
mantineTableBodyRowProps: mTableBodyRowProps,
|
|
234
247
|
mantineTableBodyCellProps: mTableBodyCellProps,
|
|
@@ -28,6 +28,7 @@ function mergeProTableProps(props) {
|
|
|
28
28
|
const {
|
|
29
29
|
mantineTableProps = {},
|
|
30
30
|
mantinePaperProps = {},
|
|
31
|
+
mantineTableContainerProps = {},
|
|
31
32
|
mantineSkeletonProps = {},
|
|
32
33
|
mantineTableBodyProps,
|
|
33
34
|
mantineTableHeadCellProps = {},
|
|
@@ -114,6 +115,14 @@ function mergeProTableProps(props) {
|
|
|
114
115
|
},
|
|
115
116
|
mantineTableProps
|
|
116
117
|
);
|
|
118
|
+
const mTableContainerProps = mergeMProps(
|
|
119
|
+
{
|
|
120
|
+
sx: {
|
|
121
|
+
backgroundColor: "transparent"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
mantineTableContainerProps
|
|
125
|
+
);
|
|
117
126
|
const mTableBodyProps = mergeMProps((args) => {
|
|
118
127
|
var _a, _b, _c;
|
|
119
128
|
if (!(data == null ? void 0 : data.length)) {
|
|
@@ -161,6 +170,9 @@ function mergeProTableProps(props) {
|
|
|
161
170
|
},
|
|
162
171
|
"&:not([data-striped], [data-striped='false'])": {
|
|
163
172
|
backgroundColor: theme.colors.carbon[0]
|
|
173
|
+
},
|
|
174
|
+
"&:not([data-selected], [data-row-pinned]) td[data-column-pinned]::before": {
|
|
175
|
+
backgroundColor: "transparent"
|
|
164
176
|
}
|
|
165
177
|
}
|
|
166
178
|
};
|
|
@@ -227,6 +239,7 @@ function mergeProTableProps(props) {
|
|
|
227
239
|
mantineSkeletonProps: mTabelSkeletonProps,
|
|
228
240
|
mantineLoadingOverlayProps: mLoadingOverlayProps,
|
|
229
241
|
mantineTableBodyProps: mTableBodyProps,
|
|
242
|
+
mantineTableContainerProps: mTableContainerProps,
|
|
230
243
|
mantineBottomToolbarProps: mBottomToolbarProps,
|
|
231
244
|
mantineTableBodyRowProps: mTableBodyRowProps,
|
|
232
245
|
mantineTableBodyCellProps: mTableBodyCellProps,
|
|
@@ -10,6 +10,7 @@ const index = require("../../icons/index.cjs");
|
|
|
10
10
|
;/* empty css */
|
|
11
11
|
;/* empty css */
|
|
12
12
|
const index$1 = require("../../primitive/Typography/index.cjs");
|
|
13
|
+
const index$2 = require("../../primitive/Button/index.cjs");
|
|
13
14
|
const dayjs = require("dayjs");
|
|
14
15
|
require("../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.cjs");
|
|
15
16
|
require("../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.cjs");
|
|
@@ -22,7 +23,6 @@ const Flex = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v
|
|
|
22
23
|
const DatePicker = require("../../node_modules/.pnpm/@mantine_dates@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hoo_fqvtf6tg4qjwkxanualzufe6zy/node_modules/@mantine/dates/esm/components/DatePicker/DatePicker.cjs");
|
|
23
24
|
const Alert = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Alert/Alert.cjs");
|
|
24
25
|
const Text = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Text/Text.cjs");
|
|
25
|
-
const Button = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Button/Button.cjs");
|
|
26
26
|
const AbsoluteTimeRangePicker = ({
|
|
27
27
|
value,
|
|
28
28
|
maxDateTime,
|
|
@@ -157,8 +157,8 @@ const AbsoluteTimeRangePicker = ({
|
|
|
157
157
|
] })
|
|
158
158
|
] }),
|
|
159
159
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Flex.Flex, { pt: 8, gap: "xs", justify: "flex-end", align: "flex-start", direction: "row", wrap: "wrap", children: [
|
|
160
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
161
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
160
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index$2.Button, { size: "xs", variant: "default", onClick: onCancel, children: "Cancel" }),
|
|
161
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index$2.Button, { size: "xs", onClick: apply, disabled: startAfterEnd || beyondMin || beyondMax || beyondDuration, children: "Apply" })
|
|
162
162
|
] })
|
|
163
163
|
] });
|
|
164
164
|
};
|
|
@@ -8,6 +8,7 @@ import { IconChevronLeft, IconAlertCircle } from "../../icons/index.js";
|
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { Typography } from "../../primitive/Typography/index.js";
|
|
11
|
+
import { Button } from "../../primitive/Button/index.js";
|
|
11
12
|
import dayjs from "dayjs";
|
|
12
13
|
import "../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.js";
|
|
13
14
|
import "../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.js";
|
|
@@ -20,7 +21,6 @@ import { Flex } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v
|
|
|
20
21
|
import { DatePicker } from "../../node_modules/.pnpm/@mantine_dates@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hoo_fqvtf6tg4qjwkxanualzufe6zy/node_modules/@mantine/dates/esm/components/DatePicker/DatePicker.js";
|
|
21
22
|
import { Alert } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Alert/Alert.js";
|
|
22
23
|
import { Text } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Text/Text.js";
|
|
23
|
-
import { Button } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Button/Button.js";
|
|
24
24
|
const AbsoluteTimeRangePicker = ({
|
|
25
25
|
value,
|
|
26
26
|
maxDateTime,
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const index = require("../../icons/index.cjs");
|
|
5
|
+
const index$1 = require("../../icons/index.cjs");
|
|
6
6
|
;/* empty css */
|
|
7
7
|
;/* empty css */
|
|
8
8
|
;/* empty css */
|
|
9
9
|
;/* empty css */
|
|
10
10
|
;/* empty css */
|
|
11
11
|
;/* empty css */
|
|
12
|
-
const index$
|
|
12
|
+
const index$2 = require("../../primitive/Typography/index.cjs");
|
|
13
|
+
const index = require("../../primitive/Button/index.cjs");
|
|
13
14
|
const AbsoluteTimeRangePicker = require("./AbsoluteTimeRangePicker.cjs");
|
|
14
15
|
const helpers = require("./helpers.cjs");
|
|
15
16
|
const Menu = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Menu/Menu.cjs");
|
|
16
17
|
const Tooltip = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Tooltip/Tooltip.cjs");
|
|
17
|
-
const Button = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Button/Button.cjs");
|
|
18
18
|
const Group = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Group/Group.cjs");
|
|
19
19
|
const Box = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/core/Box/Box.cjs");
|
|
20
20
|
const Text = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Text/Text.cjs");
|
|
@@ -62,7 +62,7 @@ const TimeRangePicker = ({
|
|
|
62
62
|
onClose: () => setOpened(false),
|
|
63
63
|
children: [
|
|
64
64
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Menu.Menu.Target, { children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Tooltip.Tooltip, { label: formattedAbsDateTime, disabled: isRelativeRange, withArrow: true, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
65
|
-
|
|
65
|
+
index.Button,
|
|
66
66
|
{
|
|
67
67
|
variant: "default",
|
|
68
68
|
bg: "carbon.0",
|
|
@@ -128,10 +128,10 @@ const TimeRangePicker = ({
|
|
|
128
128
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
129
129
|
Menu.Menu.Item,
|
|
130
130
|
{
|
|
131
|
-
rightSection: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.IconChevronRight, { size: 16 }),
|
|
131
|
+
rightSection: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index$1.IconChevronRight, { size: 16 }),
|
|
132
132
|
closeMenuOnClick: false,
|
|
133
133
|
onClick: () => setCustomMode(true),
|
|
134
|
-
children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index$
|
|
134
|
+
children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index$2.Typography, { variant: "body-lg", children: "Custom" })
|
|
135
135
|
}
|
|
136
136
|
),
|
|
137
137
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Menu.Menu.Divider, {})
|
|
@@ -8,12 +8,12 @@ import { IconChevronRight } from "../../icons/index.js";
|
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { Typography } from "../../primitive/Typography/index.js";
|
|
11
|
+
import { Button } from "../../primitive/Button/index.js";
|
|
11
12
|
import AbsoluteTimeRangePicker from "./AbsoluteTimeRangePicker.js";
|
|
12
13
|
import { toTimeRangeValue, timeFormatter, formatDuration, DEFAULT_QUICK_RANGES } from "./helpers.js";
|
|
13
14
|
import { DEFAULT_TIME_FORMAT, DEFAULT_TIME_FORMAT_WITH_TIMEZONE, DEFAULT_TIME_RANGE, addOffsetUTC, fromTimeRangeValue, getUTCString, toURLTimeRange, urlToTimeRange, urlToTimeRangeValue } from "./helpers.js";
|
|
14
15
|
import { Menu } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Menu/Menu.js";
|
|
15
16
|
import { Tooltip } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Tooltip/Tooltip.js";
|
|
16
|
-
import { Button } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Button/Button.js";
|
|
17
17
|
import { Group } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Group/Group.js";
|
|
18
18
|
import { Box } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/core/Box/Box.js";
|
|
19
19
|
import { Text } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Text/Text.js";
|
package/dist/biz/index.cjs
CHANGED
|
@@ -34,6 +34,7 @@ const TextArea = require("./Form/TextArea.cjs");
|
|
|
34
34
|
const Rating = require("./Form/Rating.cjs");
|
|
35
35
|
const context = require("./Form/context.cjs");
|
|
36
36
|
const CopyText = require("./Form/CopyText.cjs");
|
|
37
|
+
const SegmentControl = require("./Form/SegmentControl.cjs");
|
|
37
38
|
const helpers$1 = require("./TimeRangePicker/helpers.cjs");
|
|
38
39
|
exports.Dot = index.Dot;
|
|
39
40
|
exports.CodeBlock = index$1.CodeBlock;
|
|
@@ -178,6 +179,7 @@ exports.HookFormContext = context.HookFormContext;
|
|
|
178
179
|
exports.HookFormProvider = context.HookFormProvider;
|
|
179
180
|
exports.useHookFormContext = context.useHookFormContext;
|
|
180
181
|
exports.FormCopyText = CopyText.FormCopyText;
|
|
182
|
+
exports.FormSegmentedControl = SegmentControl.FormSegmentedControl;
|
|
181
183
|
exports.DEFAULT_QUICK_RANGES = helpers$1.DEFAULT_QUICK_RANGES;
|
|
182
184
|
exports.DEFAULT_TIME_FORMAT = helpers$1.DEFAULT_TIME_FORMAT;
|
|
183
185
|
exports.DEFAULT_TIME_FORMAT_WITH_TIMEZONE = helpers$1.DEFAULT_TIME_FORMAT_WITH_TIMEZONE;
|
package/dist/biz/index.js
CHANGED
|
@@ -32,6 +32,7 @@ import { FormTextareaInput } from "./Form/TextArea.js";
|
|
|
32
32
|
import { FormRatingInput } from "./Form/Rating.js";
|
|
33
33
|
import { HookFormContext, HookFormProvider, useHookFormContext } from "./Form/context.js";
|
|
34
34
|
import { FormCopyText } from "./Form/CopyText.js";
|
|
35
|
+
import { FormSegmentedControl } from "./Form/SegmentControl.js";
|
|
35
36
|
import { DEFAULT_QUICK_RANGES, DEFAULT_TIME_FORMAT, DEFAULT_TIME_FORMAT_WITH_TIMEZONE, DEFAULT_TIME_RANGE, addOffsetUTC, formatDuration, fromTimeRangeValue, getUTCString, timeFormatter, toTimeRangeValue, toURLTimeRange, urlToTimeRange, urlToTimeRangeValue } from "./TimeRangePicker/helpers.js";
|
|
36
37
|
export {
|
|
37
38
|
CodeBlock,
|
|
@@ -57,6 +58,7 @@ export {
|
|
|
57
58
|
FormPhoneInputV2,
|
|
58
59
|
FormRadioGroup,
|
|
59
60
|
FormRatingInput,
|
|
61
|
+
FormSegmentedControl,
|
|
60
62
|
FormSelect,
|
|
61
63
|
FormSwitch,
|
|
62
64
|
FormTextInput,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import dayjs from "dayjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
dayjs.extend(
|
|
5
|
-
dayjs.extend(
|
|
6
|
-
function getTimezoneOffset(date,
|
|
7
|
-
if (
|
|
8
|
-
return dayjs(date).tz(
|
|
2
|
+
import timezonePlugin from "../../../../../../dayjs@1.11.13/node_modules/dayjs/plugin/timezone.js";
|
|
3
|
+
import utcPlugin from "../../../../../../dayjs@1.11.13/node_modules/dayjs/plugin/utc.js";
|
|
4
|
+
dayjs.extend(utcPlugin);
|
|
5
|
+
dayjs.extend(timezonePlugin);
|
|
6
|
+
function getTimezoneOffset(date, timezone) {
|
|
7
|
+
if (timezone) {
|
|
8
|
+
return dayjs(date).tz(timezone).utcOffset() + date.getTimezoneOffset();
|
|
9
9
|
}
|
|
10
10
|
return 0;
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const _commonjsHelpers = require("../../../../../../_virtual/_commonjsHelpers.cjs");
|
|
4
|
-
const timezone
|
|
4
|
+
const timezone = require("../../../../../../_virtual/timezone.cjs");
|
|
5
5
|
(function(module2, exports2) {
|
|
6
6
|
!function(t, e) {
|
|
7
7
|
module2.exports = e();
|
|
@@ -61,7 +61,7 @@ const timezone$1 = require("../../../../../../_virtual/timezone.cjs");
|
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
});
|
|
64
|
-
})(timezone
|
|
65
|
-
var timezoneExports = timezone
|
|
66
|
-
const
|
|
67
|
-
exports.default =
|
|
64
|
+
})(timezone.__module);
|
|
65
|
+
var timezoneExports = timezone.__module.exports;
|
|
66
|
+
const timezonePlugin = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(timezoneExports);
|
|
67
|
+
exports.default = timezonePlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { commonjsGlobal, getDefaultExportFromCjs } from "../../../../../../_virtual/_commonjsHelpers.js";
|
|
2
|
-
import { __module as timezone
|
|
2
|
+
import { __module as timezone } from "../../../../../../_virtual/timezone.js";
|
|
3
3
|
(function(module, exports) {
|
|
4
4
|
!function(t, e) {
|
|
5
5
|
module.exports = e();
|
|
@@ -59,9 +59,9 @@ import { __module as timezone$1 } from "../../../../../../_virtual/timezone.js";
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
});
|
|
62
|
-
})(timezone
|
|
63
|
-
var timezoneExports = timezone
|
|
64
|
-
const
|
|
62
|
+
})(timezone);
|
|
63
|
+
var timezoneExports = timezone.exports;
|
|
64
|
+
const timezonePlugin = /* @__PURE__ */ getDefaultExportFromCjs(timezoneExports);
|
|
65
65
|
export {
|
|
66
|
-
|
|
66
|
+
timezonePlugin as default
|
|
67
67
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const _commonjsHelpers = require("../../../../../../_virtual/_commonjsHelpers.cjs");
|
|
4
|
-
const utc
|
|
4
|
+
const utc = require("../../../../../../_virtual/utc.cjs");
|
|
5
5
|
(function(module2, exports2) {
|
|
6
6
|
!function(t, i) {
|
|
7
7
|
module2.exports = i();
|
|
@@ -74,7 +74,7 @@ const utc$1 = require("../../../../../../_virtual/utc.cjs");
|
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
});
|
|
77
|
-
})(utc
|
|
78
|
-
var utcExports = utc
|
|
79
|
-
const
|
|
80
|
-
exports.default =
|
|
77
|
+
})(utc.__module);
|
|
78
|
+
var utcExports = utc.__module.exports;
|
|
79
|
+
const utcPlugin = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(utcExports);
|
|
80
|
+
exports.default = utcPlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { commonjsGlobal, getDefaultExportFromCjs } from "../../../../../../_virtual/_commonjsHelpers.js";
|
|
2
|
-
import { __module as utc
|
|
2
|
+
import { __module as utc } from "../../../../../../_virtual/utc.js";
|
|
3
3
|
(function(module, exports) {
|
|
4
4
|
!function(t, i) {
|
|
5
5
|
module.exports = i();
|
|
@@ -72,9 +72,9 @@ import { __module as utc$1 } from "../../../../../../_virtual/utc.js";
|
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
});
|
|
75
|
-
})(utc
|
|
76
|
-
var utcExports = utc
|
|
77
|
-
const
|
|
75
|
+
})(utc);
|
|
76
|
+
var utcExports = utc.exports;
|
|
77
|
+
const utcPlugin = /* @__PURE__ */ getDefaultExportFromCjs(utcExports);
|
|
78
78
|
export {
|
|
79
|
-
|
|
79
|
+
utcPlugin as default
|
|
80
80
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.cjs");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const MantineThemeProvider = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.cjs");
|
|
6
|
+
const Loader = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Loader/Loader.cjs");
|
|
7
|
+
const Button$1 = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Button/Button.cjs");
|
|
8
|
+
const _Button = React.forwardRef((props, ref) => {
|
|
9
|
+
const theme = MantineThemeProvider.useMantineTheme();
|
|
10
|
+
const { leftSection, loading, disabled, ...rest } = props;
|
|
11
|
+
const loader = /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Loader.Loader, { size: 16, color: `${props.color ?? theme.primaryColor}.6` });
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Button$1.Button, { ...rest, ref, leftSection: loading ? loader : leftSection, disabled: disabled || loading });
|
|
13
|
+
});
|
|
14
|
+
const Button = _Button;
|
|
15
|
+
Button.Group = Button$1.Button.Group;
|
|
16
|
+
Button.classes = Button$1.Button.classes;
|
|
17
|
+
Button.displayName = Button$1.Button.displayName;
|
|
18
|
+
Button.extend = Button$1.Button.extend;
|
|
19
|
+
Button.withProps = Button$1.Button.withProps;
|
|
20
|
+
exports.Button = Button;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from "../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { useMantineTheme } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.js";
|
|
4
|
+
import { Loader } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Loader/Loader.js";
|
|
5
|
+
import { Button as Button$1 } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Button/Button.js";
|
|
6
|
+
const _Button = forwardRef((props, ref) => {
|
|
7
|
+
const theme = useMantineTheme();
|
|
8
|
+
const { leftSection, loading, disabled, ...rest } = props;
|
|
9
|
+
const loader = /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, { size: 16, color: `${props.color ?? theme.primaryColor}.6` });
|
|
10
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { ...rest, ref, leftSection: loading ? loader : leftSection, disabled: disabled || loading });
|
|
11
|
+
});
|
|
12
|
+
const Button = _Button;
|
|
13
|
+
Button.Group = Button$1.Group;
|
|
14
|
+
Button.classes = Button$1.classes;
|
|
15
|
+
Button.displayName = Button$1.displayName;
|
|
16
|
+
Button.extend = Button$1.extend;
|
|
17
|
+
Button.withProps = Button$1.withProps;
|
|
18
|
+
export {
|
|
19
|
+
Button
|
|
20
|
+
};
|
|
@@ -8,51 +8,71 @@ const index = require("../Typography/index.cjs");
|
|
|
8
8
|
const TextInput$1 = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/TextInput/TextInput.cjs");
|
|
9
9
|
const getSize = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/core/utils/get-size/get-size.cjs");
|
|
10
10
|
const TextInput = React.forwardRef((props, ref) => {
|
|
11
|
-
const { leftLabel, leftSection, ...rest } = props;
|
|
11
|
+
const { leftLabel, leftLabelProps, leftSection, rightLabel, rightLabelProps, rightSection, ...rest } = props;
|
|
12
12
|
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
13
13
|
TextInput$1.TextInput,
|
|
14
14
|
{
|
|
15
15
|
...rest,
|
|
16
16
|
styles: styles.mergeStylesList([
|
|
17
17
|
(theme) => {
|
|
18
|
-
|
|
18
|
+
const withLeftLabel = !!props.leftLabel;
|
|
19
|
+
const withRightLabel = !!props.rightLabel;
|
|
20
|
+
if (!withLeftLabel && !withRightLabel) {
|
|
19
21
|
return {};
|
|
20
22
|
}
|
|
23
|
+
const sectionBaseStyles = {
|
|
24
|
+
position: "initial",
|
|
25
|
+
width: "fit-content",
|
|
26
|
+
border: `1px solid ${theme.colors.carbon[4]}`,
|
|
27
|
+
backgroundColor: theme.colors.carbon[2],
|
|
28
|
+
paddingLeft: 12,
|
|
29
|
+
paddingRight: 12,
|
|
30
|
+
"& > .mantine-Text-root": {
|
|
31
|
+
fontSize: getSize.getFontSize(props.size ?? "md")
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const wrapperBaseStyles = {
|
|
35
|
+
"--input-padding-inline-start": "var(--input-padding)"
|
|
36
|
+
};
|
|
21
37
|
return {
|
|
22
38
|
wrapper: {
|
|
23
39
|
display: "flex",
|
|
24
40
|
// see https://github.com/mantinedev/mantine/blob/master/packages/%40mantine/core/src/components/Input/Input.module.css#L70C4-L70C33I
|
|
25
41
|
// correct input left padding
|
|
26
|
-
"&[data-with-left-section]":
|
|
27
|
-
|
|
28
|
-
}
|
|
42
|
+
"&[data-with-left-section]": withLeftLabel ? wrapperBaseStyles : void 0,
|
|
43
|
+
"&[data-with-right-section]": withRightLabel ? wrapperBaseStyles : void 0
|
|
29
44
|
},
|
|
30
45
|
section: {
|
|
31
|
-
'&[data-position="left"]': {
|
|
32
|
-
|
|
33
|
-
width: "fit-content",
|
|
34
|
-
border: `1px solid ${theme.colors.carbon[4]}`,
|
|
46
|
+
'&[data-position="left"]': withLeftLabel ? {
|
|
47
|
+
...sectionBaseStyles,
|
|
35
48
|
borderRightWidth: 0,
|
|
36
|
-
paddingLeft: 12,
|
|
37
|
-
paddingRight: 12,
|
|
38
49
|
borderTopLeftRadius: theme.defaultRadius,
|
|
39
|
-
borderBottomLeftRadius: theme.defaultRadius
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
50
|
+
borderBottomLeftRadius: theme.defaultRadius
|
|
51
|
+
} : void 0,
|
|
52
|
+
'&[data-position="right"]': withRightLabel ? {
|
|
53
|
+
...sectionBaseStyles,
|
|
54
|
+
borderLeftWidth: 0,
|
|
55
|
+
borderTopRightRadius: theme.defaultRadius,
|
|
56
|
+
borderBottomRightRadius: theme.defaultRadius
|
|
57
|
+
} : void 0
|
|
45
58
|
},
|
|
46
59
|
input: {
|
|
47
60
|
flex: 1,
|
|
48
|
-
|
|
49
|
-
|
|
61
|
+
...withLeftLabel ? {
|
|
62
|
+
borderTopLeftRadius: 0,
|
|
63
|
+
borderBottomLeftRadius: 0
|
|
64
|
+
} : void 0,
|
|
65
|
+
...withRightLabel ? {
|
|
66
|
+
borderTopRightRadius: 0,
|
|
67
|
+
borderBottomRightRadius: 0
|
|
68
|
+
} : void 0
|
|
50
69
|
}
|
|
51
70
|
};
|
|
52
71
|
},
|
|
53
72
|
props.styles
|
|
54
73
|
]),
|
|
55
|
-
leftSection: !!leftLabel ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.Typography, { variant: "label-lg", children: leftLabel }) : leftSection,
|
|
74
|
+
leftSection: !!leftLabel ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.Typography, { variant: "label-lg", ...leftLabelProps, children: leftLabel }) : leftSection,
|
|
75
|
+
rightSection: !!rightLabel ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.Typography, { variant: "label-lg", ...rightLabelProps, children: rightLabel }) : rightLabel,
|
|
56
76
|
ref
|
|
57
77
|
}
|
|
58
78
|
);
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { TextInputProps as MantineTextInputProps } from '@mantine/core';
|
|
2
|
+
import { TypographyProps } from '../Typography/index.js';
|
|
2
3
|
export interface TextInputProps extends MantineTextInputProps {
|
|
3
|
-
leftLabel?:
|
|
4
|
+
leftLabel?: React.ReactNode;
|
|
5
|
+
leftLabelProps?: TypographyProps;
|
|
6
|
+
rightLabel?: React.ReactNode;
|
|
7
|
+
rightLabelProps?: TypographyProps;
|
|
4
8
|
}
|
|
5
9
|
export declare const TextInput: import('react').ForwardRefExoticComponent<TextInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { TextInputProps as MantineTextInputProps } from '@mantine/core';
|
|
2
|
+
import { TypographyProps } from '../Typography/index.js';
|
|
2
3
|
export interface TextInputProps extends MantineTextInputProps {
|
|
3
|
-
leftLabel?:
|
|
4
|
+
leftLabel?: React.ReactNode;
|
|
5
|
+
leftLabelProps?: TypographyProps;
|
|
6
|
+
rightLabel?: React.ReactNode;
|
|
7
|
+
rightLabelProps?: TypographyProps;
|
|
4
8
|
}
|
|
5
9
|
export declare const TextInput: import('react').ForwardRefExoticComponent<TextInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -6,51 +6,71 @@ import { Typography } from "../Typography/index.js";
|
|
|
6
6
|
import { TextInput as TextInput$1 } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/TextInput/TextInput.js";
|
|
7
7
|
import { getFontSize } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/core/utils/get-size/get-size.js";
|
|
8
8
|
const TextInput = forwardRef((props, ref) => {
|
|
9
|
-
const { leftLabel, leftSection, ...rest } = props;
|
|
9
|
+
const { leftLabel, leftLabelProps, leftSection, rightLabel, rightLabelProps, rightSection, ...rest } = props;
|
|
10
10
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11
11
|
TextInput$1,
|
|
12
12
|
{
|
|
13
13
|
...rest,
|
|
14
14
|
styles: mergeStylesList([
|
|
15
15
|
(theme) => {
|
|
16
|
-
|
|
16
|
+
const withLeftLabel = !!props.leftLabel;
|
|
17
|
+
const withRightLabel = !!props.rightLabel;
|
|
18
|
+
if (!withLeftLabel && !withRightLabel) {
|
|
17
19
|
return {};
|
|
18
20
|
}
|
|
21
|
+
const sectionBaseStyles = {
|
|
22
|
+
position: "initial",
|
|
23
|
+
width: "fit-content",
|
|
24
|
+
border: `1px solid ${theme.colors.carbon[4]}`,
|
|
25
|
+
backgroundColor: theme.colors.carbon[2],
|
|
26
|
+
paddingLeft: 12,
|
|
27
|
+
paddingRight: 12,
|
|
28
|
+
"& > .mantine-Text-root": {
|
|
29
|
+
fontSize: getFontSize(props.size ?? "md")
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const wrapperBaseStyles = {
|
|
33
|
+
"--input-padding-inline-start": "var(--input-padding)"
|
|
34
|
+
};
|
|
19
35
|
return {
|
|
20
36
|
wrapper: {
|
|
21
37
|
display: "flex",
|
|
22
38
|
// see https://github.com/mantinedev/mantine/blob/master/packages/%40mantine/core/src/components/Input/Input.module.css#L70C4-L70C33I
|
|
23
39
|
// correct input left padding
|
|
24
|
-
"&[data-with-left-section]":
|
|
25
|
-
|
|
26
|
-
}
|
|
40
|
+
"&[data-with-left-section]": withLeftLabel ? wrapperBaseStyles : void 0,
|
|
41
|
+
"&[data-with-right-section]": withRightLabel ? wrapperBaseStyles : void 0
|
|
27
42
|
},
|
|
28
43
|
section: {
|
|
29
|
-
'&[data-position="left"]': {
|
|
30
|
-
|
|
31
|
-
width: "fit-content",
|
|
32
|
-
border: `1px solid ${theme.colors.carbon[4]}`,
|
|
44
|
+
'&[data-position="left"]': withLeftLabel ? {
|
|
45
|
+
...sectionBaseStyles,
|
|
33
46
|
borderRightWidth: 0,
|
|
34
|
-
paddingLeft: 12,
|
|
35
|
-
paddingRight: 12,
|
|
36
47
|
borderTopLeftRadius: theme.defaultRadius,
|
|
37
|
-
borderBottomLeftRadius: theme.defaultRadius
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
48
|
+
borderBottomLeftRadius: theme.defaultRadius
|
|
49
|
+
} : void 0,
|
|
50
|
+
'&[data-position="right"]': withRightLabel ? {
|
|
51
|
+
...sectionBaseStyles,
|
|
52
|
+
borderLeftWidth: 0,
|
|
53
|
+
borderTopRightRadius: theme.defaultRadius,
|
|
54
|
+
borderBottomRightRadius: theme.defaultRadius
|
|
55
|
+
} : void 0
|
|
43
56
|
},
|
|
44
57
|
input: {
|
|
45
58
|
flex: 1,
|
|
46
|
-
|
|
47
|
-
|
|
59
|
+
...withLeftLabel ? {
|
|
60
|
+
borderTopLeftRadius: 0,
|
|
61
|
+
borderBottomLeftRadius: 0
|
|
62
|
+
} : void 0,
|
|
63
|
+
...withRightLabel ? {
|
|
64
|
+
borderTopRightRadius: 0,
|
|
65
|
+
borderBottomRightRadius: 0
|
|
66
|
+
} : void 0
|
|
48
67
|
}
|
|
49
68
|
};
|
|
50
69
|
},
|
|
51
70
|
props.styles
|
|
52
71
|
]),
|
|
53
|
-
leftSection: !!leftLabel ? /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "label-lg", children: leftLabel }) : leftSection,
|
|
72
|
+
leftSection: !!leftLabel ? /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "label-lg", ...leftLabelProps, children: leftLabel }) : leftSection,
|
|
73
|
+
rightSection: !!rightLabel ? /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "label-lg", ...rightLabelProps, children: rightLabel }) : rightLabel,
|
|
54
74
|
ref
|
|
55
75
|
}
|
|
56
76
|
);
|
package/dist/primitive/index.cjs
CHANGED
|
@@ -7,11 +7,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
7
7
|
;/* empty css */
|
|
8
8
|
;/* empty css */
|
|
9
9
|
const useColorScheme = require("../hooks/useColorScheme.cjs");
|
|
10
|
-
const index = require("
|
|
11
|
-
const index$1 = require("./
|
|
12
|
-
const index$2 = require("./
|
|
13
|
-
const index$3 = require("./
|
|
14
|
-
const index$4 = require("./
|
|
10
|
+
const index = require("./notifier/index.cjs");
|
|
11
|
+
const index$1 = require("./Typography/index.cjs");
|
|
12
|
+
const index$2 = require("./MediaQuery/index.cjs");
|
|
13
|
+
const index$3 = require("./Select/index.cjs");
|
|
14
|
+
const index$4 = require("./Button/index.cjs");
|
|
15
|
+
const index$5 = require("../node_modules/.pnpm/@mantine_dropzone@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine__qr3rnaubensmzqdmx5ctws3cmy/node_modules/@mantine/dropzone/esm/index.cjs");
|
|
15
16
|
const AppShell = require("../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/AppShell/AppShell.cjs");
|
|
16
17
|
const AspectRatio = require("../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/AspectRatio/AspectRatio.cjs");
|
|
17
18
|
const Center = require("../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Center/Center.cjs");
|
|
@@ -52,7 +53,6 @@ const Pill = require("../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5
|
|
|
52
53
|
const PillsInput = require("../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/PillsInput/PillsInput.cjs");
|
|
53
54
|
const TagsInput = require("../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/TagsInput/TagsInput.cjs");
|
|
54
55
|
const ActionIcon = require("../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/ActionIcon/ActionIcon.cjs");
|
|
55
|
-
const Button = require("../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Button/Button.cjs");
|
|
56
56
|
const CloseButton = require("../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/CloseButton/CloseButton.cjs");
|
|
57
57
|
const CopyButton = require("../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/CopyButton/CopyButton.cjs");
|
|
58
58
|
const FileButton = require("../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/FileButton/FileButton.cjs");
|
|
@@ -119,6 +119,7 @@ const useInputProps = require("../node_modules/.pnpm/@mantine_core@7.13.2_patch_
|
|
|
119
119
|
const MantineThemeProvider = require("../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.cjs");
|
|
120
120
|
const useCombobox = require("../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Combobox/use-combobox/use-combobox.cjs");
|
|
121
121
|
const useComputedColorScheme = require("../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/core/MantineProvider/use-mantine-color-scheme/use-computed-color-scheme.cjs");
|
|
122
|
+
const TextInput = require("./TextInput/TextInput.cjs");
|
|
122
123
|
const mimeTypes = require("../node_modules/.pnpm/@mantine_dropzone@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine__qr3rnaubensmzqdmx5ctws3cmy/node_modules/@mantine/dropzone/esm/mime-types.cjs");
|
|
123
124
|
const Carousel = require("../node_modules/.pnpm/@mantine_carousel@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine__sfhtg3sgpvpleh2jf3uri3xpdy/node_modules/@mantine/carousel/esm/Carousel.cjs");
|
|
124
125
|
const useAnimationOffsetEffect = require("../node_modules/.pnpm/@mantine_carousel@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine__sfhtg3sgpvpleh2jf3uri3xpdy/node_modules/@mantine/carousel/esm/use-animation-offset-effect.cjs");
|
|
@@ -130,18 +131,18 @@ const DatePickerInput = require("../node_modules/.pnpm/@mantine_dates@7.13.2_@ma
|
|
|
130
131
|
const Calendar = require("../node_modules/.pnpm/@mantine_dates@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hoo_fqvtf6tg4qjwkxanualzufe6zy/node_modules/@mantine/dates/esm/components/Calendar/Calendar.cjs");
|
|
131
132
|
const Month = require("../node_modules/.pnpm/@mantine_dates@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hoo_fqvtf6tg4qjwkxanualzufe6zy/node_modules/@mantine/dates/esm/components/Month/Month.cjs");
|
|
132
133
|
const TimeInput = require("../node_modules/.pnpm/@mantine_dates@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hoo_fqvtf6tg4qjwkxanualzufe6zy/node_modules/@mantine/dates/esm/components/TimeInput/TimeInput.cjs");
|
|
133
|
-
const TextInput = require("./TextInput/TextInput.cjs");
|
|
134
134
|
const CodeHighlight = require("../node_modules/.pnpm/@mantine_code-highlight@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@ma_tdwfyw6pqjurzjjnx3eualyu44/node_modules/@mantine/code-highlight/esm/CodeHighlight.cjs");
|
|
135
135
|
const CodeHighlightTabs = require("../node_modules/.pnpm/@mantine_code-highlight@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@ma_tdwfyw6pqjurzjjnx3eualyu44/node_modules/@mantine/code-highlight/esm/CodeHighlightTabs.cjs");
|
|
136
136
|
const InlineCodeHighlight = require("../node_modules/.pnpm/@mantine_code-highlight@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@ma_tdwfyw6pqjurzjjnx3eualyu44/node_modules/@mantine/code-highlight/esm/InlineCodeHighlight.cjs");
|
|
137
137
|
exports.useColorScheme = useColorScheme.useColorScheme;
|
|
138
|
-
exports.
|
|
139
|
-
exports.
|
|
140
|
-
exports.
|
|
141
|
-
exports.
|
|
142
|
-
exports.
|
|
143
|
-
exports.
|
|
144
|
-
exports.
|
|
138
|
+
exports.notifier = index.notifier;
|
|
139
|
+
exports.TYPOGRAPHY_STYLES_MAP = index$1.TYPOGRAPHY_STYLES_MAP;
|
|
140
|
+
exports.Typography = index$1.Typography;
|
|
141
|
+
exports.MediaQuery = index$2.MediaQuery;
|
|
142
|
+
exports.MultiSelect = index$3.MultiSelect;
|
|
143
|
+
exports.Select = index$3.Select;
|
|
144
|
+
exports.Button = index$4.Button;
|
|
145
|
+
exports.Dropzone = index$5.Dropzone;
|
|
145
146
|
exports.AppShell = AppShell.AppShell;
|
|
146
147
|
exports.AspectRatio = AspectRatio.AspectRatio;
|
|
147
148
|
exports.Center = Center.Center;
|
|
@@ -182,7 +183,6 @@ exports.Pill = Pill.Pill;
|
|
|
182
183
|
exports.PillsInput = PillsInput.PillsInput;
|
|
183
184
|
exports.TagsInput = TagsInput.TagsInput;
|
|
184
185
|
exports.ActionIcon = ActionIcon.ActionIcon;
|
|
185
|
-
exports.Button = Button.Button;
|
|
186
186
|
exports.CloseButton = CloseButton.CloseButton;
|
|
187
187
|
exports.CopyButton = CopyButton.CopyButton;
|
|
188
188
|
exports.FileButton = FileButton.FileButton;
|
|
@@ -249,6 +249,7 @@ exports.useInputProps = useInputProps.useInputProps;
|
|
|
249
249
|
exports.useMantineTheme = MantineThemeProvider.useMantineTheme;
|
|
250
250
|
exports.useCombobox = useCombobox.useCombobox;
|
|
251
251
|
exports.useComputedColorScheme = useComputedColorScheme.useComputedColorScheme;
|
|
252
|
+
exports.TextInput = TextInput.TextInput;
|
|
252
253
|
exports.EXE_MIME_TYPE = mimeTypes.EXE_MIME_TYPE;
|
|
253
254
|
exports.IMAGE_MIME_TYPE = mimeTypes.IMAGE_MIME_TYPE;
|
|
254
255
|
exports.MIME_TYPES = mimeTypes.MIME_TYPES;
|
|
@@ -270,7 +271,6 @@ exports.DatePickerInput = DatePickerInput.DatePickerInput;
|
|
|
270
271
|
exports.Calendar = Calendar.Calendar;
|
|
271
272
|
exports.Month = Month.Month;
|
|
272
273
|
exports.TimeInput = TimeInput.TimeInput;
|
|
273
|
-
exports.TextInput = TextInput.TextInput;
|
|
274
274
|
exports.CodeHighlight = CodeHighlight.CodeHighlight;
|
|
275
275
|
exports.CodeHighlightTabs = CodeHighlightTabs.CodeHighlightTabs;
|
|
276
276
|
exports.InlineCodeHighlight = InlineCodeHighlight.InlineCodeHighlight;
|
|
@@ -30,8 +30,14 @@ declare module '@mantine/core' {
|
|
|
30
30
|
}
|
|
31
31
|
export type ColorScheme = 'light' | 'dark';
|
|
32
32
|
export type { AppShellProps, AppShellNavbarProps, AppShellMainProps, AppShellFooterProps, AppShellAsideProps, AppShellHeaderProps, AppShellSectionProps, AspectRatioProps, CenterProps, ContainerProps, FlexProps, GridProps, GroupProps, SimpleGridProps, SpaceProps, StackProps, CheckboxProps, CheckboxGroupProps, ChipProps, ChipGroupProps, ColorInputProps, ColorPickerProps, FieldsetProps, FileInputProps, InputProps, InputWrapperProps, InputErrorProps, InputLabelProps, InputPlaceholderProps, InputBaseProps, JsonInputProps, NativeSelectProps, NumberInputProps, PasswordInputProps, PinInputProps, RadioProps, RadioGroupProps, RadioCardProps, RatingProps, SegmentedControlProps, SegmentedControlItem, SliderProps, RangeSliderProps, SwitchProps, TextareaProps, AutocompleteProps, ComboboxProps, ComboboxItem, ComboboxData, PillProps, PillsInputProps, OptionsFilter, TagsInputProps, ActionIconProps, ButtonProps, CloseButtonProps, CopyButtonProps, FileButtonProps, UnstyledButtonProps, AnchorProps, BreadcrumbsProps, BurgerProps, NavLinkProps, PaginationProps, StepperProps, TabsProps, TreeProps, AlertProps, LoaderProps, NotificationProps, ProgressProps, RingProgressProps, SemiCircleProgressProps, SkeletonProps, AffixProps, DialogProps, DrawerProps, FloatingIndicatorProps, HoverCardProps, LoadingOverlayProps, MenuProps, ModalProps, OverlayProps, PopoverProps, TooltipProps, AccordionProps, AvatarProps, BackgroundImageProps, BadgeProps, CardProps, CardSectionProps, ColorSwatchProps, ImageProps, IndicatorProps, KbdProps, NumberFormatterProps, SpoilerProps, ThemeIconProps, TimelineProps, BlockquoteProps, CodeProps, HighlightProps, ListProps, MarkProps, TableProps, TextProps, TitleProps, TypographyStylesProviderProps, BoxProps, CollapseProps, DividerProps, FocusTrapProps, PaperProps, PortalProps, ScrollAreaProps, TransitionProps, VisuallyHiddenProps, ColorSchemeScriptProps, MantineSize, ElementProps } from '../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/lib';
|
|
33
|
-
export { AppShell, AspectRatio, Center, Container, Flex, Grid, Group, SimpleGrid, Space, Stack, Checkbox, Chip, ColorInput, ColorPicker, HueSlider, AlphaSlider, Fieldset, FileInput, Input, InputBase, JsonInput, NativeSelect, NumberInput, PasswordInput, PinInput, Radio, RadioGroup, RadioCard, Rating, SegmentedControl, Slider, RangeSlider, Switch, Textarea, Autocomplete, Combobox, Pill, PillsInput, TagsInput, ActionIcon,
|
|
33
|
+
export { AppShell, AspectRatio, Center, Container, Flex, Grid, Group, SimpleGrid, Space, Stack, Checkbox, Chip, ColorInput, ColorPicker, HueSlider, AlphaSlider, Fieldset, FileInput, Input, InputBase, JsonInput, NativeSelect, NumberInput, PasswordInput, PinInput, Radio, RadioGroup, RadioCard, Rating, SegmentedControl, Slider, RangeSlider, Switch, Textarea, Autocomplete, Combobox, Pill, PillsInput, TagsInput, ActionIcon, CloseButton, CopyButton, FileButton, UnstyledButton, Anchor, Breadcrumbs, Burger, NavLink, Pagination, Stepper, Tabs, Tree, Alert, Loader, Notification, Progress, RingProgress, SemiCircleProgress, Skeleton, Affix, Dialog, Drawer, FloatingIndicator, HoverCard, LoadingOverlay, Menu, Modal, Overlay, Popover, Tooltip, Accordion, Avatar, BackgroundImage, Badge, Card, ColorSwatch, Image, Indicator, Kbd, NumberFormatter, Spoiler, ThemeIcon, Timeline, Blockquote, Code, Highlight, List, Mark, Table, Text, Title, TypographyStylesProvider, Box, Collapse, Divider, FocusTrap, Paper, Portal, ScrollArea, Transition, VisuallyHidden, ColorSchemeScript, useInputProps, useMantineTheme, useCombobox, useComputedColorScheme } from '../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/lib';
|
|
34
34
|
export { useColorScheme } from '../hooks/useColorScheme.js';
|
|
35
|
+
export { TextInput, type TextInputProps } from './TextInput/index.js';
|
|
36
|
+
export { notifier } from './notifier/index.js';
|
|
37
|
+
export { Typography, TYPOGRAPHY_STYLES_MAP, type TypographyProps } from './Typography/index.js';
|
|
38
|
+
export { MediaQuery, type MediaQueryProps } from './MediaQuery/index.js';
|
|
39
|
+
export { Select, type SelectProps, MultiSelect, type MultiSelectProps } from './Select/index.js';
|
|
40
|
+
export { Button } from './Button/index.js';
|
|
35
41
|
export { Dropzone, MIME_TYPES, MS_EXCEL_MIME_TYPE, MS_POWERPOINT_MIME_TYPE, MS_WORD_MIME_TYPE, EXE_MIME_TYPE, PDF_MIME_TYPE, IMAGE_MIME_TYPE } from '@mantine/dropzone';
|
|
36
42
|
export type { DropzoneAcceptProps, DropzoneFullScreenProps, DropzoneFullScreenStylesNames, DropzoneIdleProps, DropzoneProps, DropzoneRejectProps, DropzoneStylesNames } from '@mantine/dropzone';
|
|
37
43
|
export { Carousel, useAnimationOffsetEffect } from '@mantine/carousel';
|
|
@@ -40,10 +46,5 @@ export { ModalsProvider, useModals, openModal, openConfirmModal, openContextModa
|
|
|
40
46
|
export type { ModalsProviderProps, ContextModalProps } from '@mantine/modals';
|
|
41
47
|
export { DatePicker, DatePickerInput, Calendar, Month, TimeInput } from '@mantine/dates';
|
|
42
48
|
export type { CalendarProps, CalendarBaseProps, DatePickerType, DatePickerProps, DatePickerInputProps, DatePickerStylesNames, MonthProps, TimeInputProps, MonthSettings } from '@mantine/dates';
|
|
43
|
-
export { TextInput, type TextInputProps } from './TextInput/index.js';
|
|
44
|
-
export { notifier } from './notifier/index.js';
|
|
45
|
-
export { Typography, TYPOGRAPHY_STYLES_MAP, type TypographyProps } from './Typography/index.js';
|
|
46
|
-
export { MediaQuery, type MediaQueryProps } from './MediaQuery/index.js';
|
|
47
|
-
export { Select, type SelectProps, MultiSelect, type MultiSelectProps } from './Select/index.js';
|
|
48
49
|
export { CodeHighlight, CodeHighlightTabs, InlineCodeHighlight } from '@mantine/code-highlight';
|
|
49
50
|
export type { CodeHighlightProps, CodeHighlightTabsProps, InlineCodeHighlightProps } from '@mantine/code-highlight';
|
|
@@ -30,8 +30,14 @@ declare module '@mantine/core' {
|
|
|
30
30
|
}
|
|
31
31
|
export type ColorScheme = 'light' | 'dark';
|
|
32
32
|
export type { AppShellProps, AppShellNavbarProps, AppShellMainProps, AppShellFooterProps, AppShellAsideProps, AppShellHeaderProps, AppShellSectionProps, AspectRatioProps, CenterProps, ContainerProps, FlexProps, GridProps, GroupProps, SimpleGridProps, SpaceProps, StackProps, CheckboxProps, CheckboxGroupProps, ChipProps, ChipGroupProps, ColorInputProps, ColorPickerProps, FieldsetProps, FileInputProps, InputProps, InputWrapperProps, InputErrorProps, InputLabelProps, InputPlaceholderProps, InputBaseProps, JsonInputProps, NativeSelectProps, NumberInputProps, PasswordInputProps, PinInputProps, RadioProps, RadioGroupProps, RadioCardProps, RatingProps, SegmentedControlProps, SegmentedControlItem, SliderProps, RangeSliderProps, SwitchProps, TextareaProps, AutocompleteProps, ComboboxProps, ComboboxItem, ComboboxData, PillProps, PillsInputProps, OptionsFilter, TagsInputProps, ActionIconProps, ButtonProps, CloseButtonProps, CopyButtonProps, FileButtonProps, UnstyledButtonProps, AnchorProps, BreadcrumbsProps, BurgerProps, NavLinkProps, PaginationProps, StepperProps, TabsProps, TreeProps, AlertProps, LoaderProps, NotificationProps, ProgressProps, RingProgressProps, SemiCircleProgressProps, SkeletonProps, AffixProps, DialogProps, DrawerProps, FloatingIndicatorProps, HoverCardProps, LoadingOverlayProps, MenuProps, ModalProps, OverlayProps, PopoverProps, TooltipProps, AccordionProps, AvatarProps, BackgroundImageProps, BadgeProps, CardProps, CardSectionProps, ColorSwatchProps, ImageProps, IndicatorProps, KbdProps, NumberFormatterProps, SpoilerProps, ThemeIconProps, TimelineProps, BlockquoteProps, CodeProps, HighlightProps, ListProps, MarkProps, TableProps, TextProps, TitleProps, TypographyStylesProviderProps, BoxProps, CollapseProps, DividerProps, FocusTrapProps, PaperProps, PortalProps, ScrollAreaProps, TransitionProps, VisuallyHiddenProps, ColorSchemeScriptProps, MantineSize, ElementProps } from '../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/lib';
|
|
33
|
-
export { AppShell, AspectRatio, Center, Container, Flex, Grid, Group, SimpleGrid, Space, Stack, Checkbox, Chip, ColorInput, ColorPicker, HueSlider, AlphaSlider, Fieldset, FileInput, Input, InputBase, JsonInput, NativeSelect, NumberInput, PasswordInput, PinInput, Radio, RadioGroup, RadioCard, Rating, SegmentedControl, Slider, RangeSlider, Switch, Textarea, Autocomplete, Combobox, Pill, PillsInput, TagsInput, ActionIcon,
|
|
33
|
+
export { AppShell, AspectRatio, Center, Container, Flex, Grid, Group, SimpleGrid, Space, Stack, Checkbox, Chip, ColorInput, ColorPicker, HueSlider, AlphaSlider, Fieldset, FileInput, Input, InputBase, JsonInput, NativeSelect, NumberInput, PasswordInput, PinInput, Radio, RadioGroup, RadioCard, Rating, SegmentedControl, Slider, RangeSlider, Switch, Textarea, Autocomplete, Combobox, Pill, PillsInput, TagsInput, ActionIcon, CloseButton, CopyButton, FileButton, UnstyledButton, Anchor, Breadcrumbs, Burger, NavLink, Pagination, Stepper, Tabs, Tree, Alert, Loader, Notification, Progress, RingProgress, SemiCircleProgress, Skeleton, Affix, Dialog, Drawer, FloatingIndicator, HoverCard, LoadingOverlay, Menu, Modal, Overlay, Popover, Tooltip, Accordion, Avatar, BackgroundImage, Badge, Card, ColorSwatch, Image, Indicator, Kbd, NumberFormatter, Spoiler, ThemeIcon, Timeline, Blockquote, Code, Highlight, List, Mark, Table, Text, Title, TypographyStylesProvider, Box, Collapse, Divider, FocusTrap, Paper, Portal, ScrollArea, Transition, VisuallyHidden, ColorSchemeScript, useInputProps, useMantineTheme, useCombobox, useComputedColorScheme } from '../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/lib';
|
|
34
34
|
export { useColorScheme } from '../hooks/useColorScheme.js';
|
|
35
|
+
export { TextInput, type TextInputProps } from './TextInput/index.js';
|
|
36
|
+
export { notifier } from './notifier/index.js';
|
|
37
|
+
export { Typography, TYPOGRAPHY_STYLES_MAP, type TypographyProps } from './Typography/index.js';
|
|
38
|
+
export { MediaQuery, type MediaQueryProps } from './MediaQuery/index.js';
|
|
39
|
+
export { Select, type SelectProps, MultiSelect, type MultiSelectProps } from './Select/index.js';
|
|
40
|
+
export { Button } from './Button/index.js';
|
|
35
41
|
export { Dropzone, MIME_TYPES, MS_EXCEL_MIME_TYPE, MS_POWERPOINT_MIME_TYPE, MS_WORD_MIME_TYPE, EXE_MIME_TYPE, PDF_MIME_TYPE, IMAGE_MIME_TYPE } from '@mantine/dropzone';
|
|
36
42
|
export type { DropzoneAcceptProps, DropzoneFullScreenProps, DropzoneFullScreenStylesNames, DropzoneIdleProps, DropzoneProps, DropzoneRejectProps, DropzoneStylesNames } from '@mantine/dropzone';
|
|
37
43
|
export { Carousel, useAnimationOffsetEffect } from '@mantine/carousel';
|
|
@@ -40,10 +46,5 @@ export { ModalsProvider, useModals, openModal, openConfirmModal, openContextModa
|
|
|
40
46
|
export type { ModalsProviderProps, ContextModalProps } from '@mantine/modals';
|
|
41
47
|
export { DatePicker, DatePickerInput, Calendar, Month, TimeInput } from '@mantine/dates';
|
|
42
48
|
export type { CalendarProps, CalendarBaseProps, DatePickerType, DatePickerProps, DatePickerInputProps, DatePickerStylesNames, MonthProps, TimeInputProps, MonthSettings } from '@mantine/dates';
|
|
43
|
-
export { TextInput, type TextInputProps } from './TextInput/index.js';
|
|
44
|
-
export { notifier } from './notifier/index.js';
|
|
45
|
-
export { Typography, TYPOGRAPHY_STYLES_MAP, type TypographyProps } from './Typography/index.js';
|
|
46
|
-
export { MediaQuery, type MediaQueryProps } from './MediaQuery/index.js';
|
|
47
|
-
export { Select, type SelectProps, MultiSelect, type MultiSelectProps } from './Select/index.js';
|
|
48
49
|
export { CodeHighlight, CodeHighlightTabs, InlineCodeHighlight } from '@mantine/code-highlight';
|
|
49
50
|
export type { CodeHighlightProps, CodeHighlightTabsProps, InlineCodeHighlightProps } from '@mantine/code-highlight';
|
package/dist/primitive/index.js
CHANGED
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { useColorScheme } from "../hooks/useColorScheme.js";
|
|
8
|
-
import { Dropzone } from "../node_modules/.pnpm/@mantine_dropzone@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine__qr3rnaubensmzqdmx5ctws3cmy/node_modules/@mantine/dropzone/esm/index.js";
|
|
9
8
|
import { notifier } from "./notifier/index.js";
|
|
10
9
|
import { TYPOGRAPHY_STYLES_MAP, Typography } from "./Typography/index.js";
|
|
11
10
|
import { MediaQuery } from "./MediaQuery/index.js";
|
|
12
11
|
import { MultiSelect, Select } from "./Select/index.js";
|
|
12
|
+
import { Button } from "./Button/index.js";
|
|
13
|
+
import { Dropzone } from "../node_modules/.pnpm/@mantine_dropzone@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine__qr3rnaubensmzqdmx5ctws3cmy/node_modules/@mantine/dropzone/esm/index.js";
|
|
13
14
|
import { AppShell } from "../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/AppShell/AppShell.js";
|
|
14
15
|
import { AspectRatio } from "../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/AspectRatio/AspectRatio.js";
|
|
15
16
|
import { Center } from "../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Center/Center.js";
|
|
@@ -50,7 +51,6 @@ import { Pill } from "../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5
|
|
|
50
51
|
import { PillsInput } from "../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/PillsInput/PillsInput.js";
|
|
51
52
|
import { TagsInput } from "../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/TagsInput/TagsInput.js";
|
|
52
53
|
import { ActionIcon } from "../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/ActionIcon/ActionIcon.js";
|
|
53
|
-
import { Button } from "../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Button/Button.js";
|
|
54
54
|
import { CloseButton } from "../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/CloseButton/CloseButton.js";
|
|
55
55
|
import { CopyButton } from "../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/CopyButton/CopyButton.js";
|
|
56
56
|
import { FileButton } from "../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/FileButton/FileButton.js";
|
|
@@ -117,6 +117,7 @@ import { useInputProps } from "../node_modules/.pnpm/@mantine_core@7.13.2_patch_
|
|
|
117
117
|
import { useMantineTheme } from "../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.js";
|
|
118
118
|
import { useCombobox } from "../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/components/Combobox/use-combobox/use-combobox.js";
|
|
119
119
|
import { useComputedColorScheme } from "../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hooks@7.13.2_react@18.3.1_hlfamvk7n3o6ychyvm5cyru4yu/node_modules/@mantine/core/esm/core/MantineProvider/use-mantine-color-scheme/use-computed-color-scheme.js";
|
|
120
|
+
import { TextInput } from "./TextInput/TextInput.js";
|
|
120
121
|
import { EXE_MIME_TYPE, IMAGE_MIME_TYPE, MIME_TYPES, MS_EXCEL_MIME_TYPE, MS_POWERPOINT_MIME_TYPE, MS_WORD_MIME_TYPE, PDF_MIME_TYPE } from "../node_modules/.pnpm/@mantine_dropzone@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine__qr3rnaubensmzqdmx5ctws3cmy/node_modules/@mantine/dropzone/esm/mime-types.js";
|
|
121
122
|
import { Carousel } from "../node_modules/.pnpm/@mantine_carousel@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine__sfhtg3sgpvpleh2jf3uri3xpdy/node_modules/@mantine/carousel/esm/Carousel.js";
|
|
122
123
|
import { useAnimationOffsetEffect } from "../node_modules/.pnpm/@mantine_carousel@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine__sfhtg3sgpvpleh2jf3uri3xpdy/node_modules/@mantine/carousel/esm/use-animation-offset-effect.js";
|
|
@@ -128,7 +129,6 @@ import { DatePickerInput } from "../node_modules/.pnpm/@mantine_dates@7.13.2_@ma
|
|
|
128
129
|
import { Calendar } from "../node_modules/.pnpm/@mantine_dates@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hoo_fqvtf6tg4qjwkxanualzufe6zy/node_modules/@mantine/dates/esm/components/Calendar/Calendar.js";
|
|
129
130
|
import { Month } from "../node_modules/.pnpm/@mantine_dates@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hoo_fqvtf6tg4qjwkxanualzufe6zy/node_modules/@mantine/dates/esm/components/Month/Month.js";
|
|
130
131
|
import { TimeInput } from "../node_modules/.pnpm/@mantine_dates@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@mantine_hoo_fqvtf6tg4qjwkxanualzufe6zy/node_modules/@mantine/dates/esm/components/TimeInput/TimeInput.js";
|
|
131
|
-
import { TextInput } from "./TextInput/TextInput.js";
|
|
132
132
|
import { CodeHighlight } from "../node_modules/.pnpm/@mantine_code-highlight@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@ma_tdwfyw6pqjurzjjnx3eualyu44/node_modules/@mantine/code-highlight/esm/CodeHighlight.js";
|
|
133
133
|
import { CodeHighlightTabs } from "../node_modules/.pnpm/@mantine_code-highlight@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@ma_tdwfyw6pqjurzjjnx3eualyu44/node_modules/@mantine/code-highlight/esm/CodeHighlightTabs.js";
|
|
134
134
|
import { InlineCodeHighlight } from "../node_modules/.pnpm/@mantine_code-highlight@7.13.2_@mantine_core@7.13.2_patch_hash_v5k5cxye7xaihpcgowhgciky7a_@ma_tdwfyw6pqjurzjjnx3eualyu44/node_modules/@mantine/code-highlight/esm/InlineCodeHighlight.js";
|
package/dist/theme/theme.cjs
CHANGED
|
@@ -185,9 +185,9 @@ const theme = createTheme.createTheme({
|
|
|
185
185
|
backgroundColor: themeColor(theme2, color, bgColorShade + 1)
|
|
186
186
|
},
|
|
187
187
|
"&:disabled": {
|
|
188
|
-
color: themeColor(theme2,
|
|
189
|
-
borderColor: themeColor(theme2,
|
|
190
|
-
backgroundColor: themeColor(theme2,
|
|
188
|
+
color: themeColor(theme2, color, 6),
|
|
189
|
+
borderColor: themeColor(theme2, color, borderColorShade + 1),
|
|
190
|
+
backgroundColor: themeColor(theme2, color, 2)
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
193
|
};
|
|
@@ -205,9 +205,9 @@ const theme = createTheme.createTheme({
|
|
|
205
205
|
backgroundColor: themeColor(theme2, color, bgColorShade + 1)
|
|
206
206
|
},
|
|
207
207
|
"&:disabled": {
|
|
208
|
-
color: themeColor(theme2,
|
|
209
|
-
borderColor: themeColor(theme2,
|
|
210
|
-
backgroundColor: themeColor(theme2,
|
|
208
|
+
color: themeColor(theme2, color, 6),
|
|
209
|
+
borderColor: themeColor(theme2, color, borderColorShade + 1),
|
|
210
|
+
backgroundColor: themeColor(theme2, color, 2)
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
213
|
};
|
|
@@ -223,8 +223,7 @@ const theme = createTheme.createTheme({
|
|
|
223
223
|
backgroundColor: themeColor(theme2, color, bgColorShade + 1)
|
|
224
224
|
},
|
|
225
225
|
"&:disabled": {
|
|
226
|
-
color: themeColor(theme2,
|
|
227
|
-
backgroundColor: theme2.white
|
|
226
|
+
color: themeColor(theme2, color, 6)
|
|
228
227
|
}
|
|
229
228
|
};
|
|
230
229
|
};
|
package/dist/theme/theme.js
CHANGED
|
@@ -183,9 +183,9 @@ const theme = createTheme({
|
|
|
183
183
|
backgroundColor: themeColor(theme2, color, bgColorShade + 1)
|
|
184
184
|
},
|
|
185
185
|
"&:disabled": {
|
|
186
|
-
color: themeColor(theme2,
|
|
187
|
-
borderColor: themeColor(theme2,
|
|
188
|
-
backgroundColor: themeColor(theme2,
|
|
186
|
+
color: themeColor(theme2, color, 6),
|
|
187
|
+
borderColor: themeColor(theme2, color, borderColorShade + 1),
|
|
188
|
+
backgroundColor: themeColor(theme2, color, 2)
|
|
189
189
|
}
|
|
190
190
|
};
|
|
191
191
|
};
|
|
@@ -203,9 +203,9 @@ const theme = createTheme({
|
|
|
203
203
|
backgroundColor: themeColor(theme2, color, bgColorShade + 1)
|
|
204
204
|
},
|
|
205
205
|
"&:disabled": {
|
|
206
|
-
color: themeColor(theme2,
|
|
207
|
-
borderColor: themeColor(theme2,
|
|
208
|
-
backgroundColor: themeColor(theme2,
|
|
206
|
+
color: themeColor(theme2, color, 6),
|
|
207
|
+
borderColor: themeColor(theme2, color, borderColorShade + 1),
|
|
208
|
+
backgroundColor: themeColor(theme2, color, 2)
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
211
|
};
|
|
@@ -221,8 +221,7 @@ const theme = createTheme({
|
|
|
221
221
|
backgroundColor: themeColor(theme2, color, bgColorShade + 1)
|
|
222
222
|
},
|
|
223
223
|
"&:disabled": {
|
|
224
|
-
color: themeColor(theme2,
|
|
225
|
-
backgroundColor: theme2.white
|
|
224
|
+
color: themeColor(theme2, color, 6)
|
|
226
225
|
}
|
|
227
226
|
};
|
|
228
227
|
};
|