@tidbcloud/uikit 2.0.0-beta.88 → 2.0.0-beta.89
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 +6 -0
- package/dist/primitive/Button/index.cjs +2 -2
- package/dist/primitive/Button/index.d.cts +1 -1
- package/dist/primitive/Button/index.d.ts +1 -1
- package/dist/primitive/Button/index.js +2 -2
- package/dist/primitive/MediaQuery/index.d.cts +1 -1
- package/dist/primitive/MediaQuery/index.d.ts +1 -1
- package/dist/primitive/MediaQuery/styles.d.cts +1 -1
- package/dist/primitive/MediaQuery/styles.d.ts +1 -1
- package/dist/primitive/Select/index.d.cts +1 -1
- package/dist/primitive/Select/index.d.ts +1 -1
- package/dist/primitive/TextInput/TextInput.d.cts +1 -1
- package/dist/primitive/TextInput/TextInput.d.ts +1 -1
- package/dist/primitive/Typography/index.d.cts +2 -2
- package/dist/primitive/Typography/index.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,8 +7,8 @@ const Loader = require("../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash
|
|
|
7
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
8
|
const _Button = React.forwardRef((props, ref) => {
|
|
9
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
|
|
10
|
+
const { leftSection, loading, disabled, loaderProps, ...rest } = props;
|
|
11
|
+
const loader = /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Loader.Loader, { size: 16, color: `${props.color ?? theme.primaryColor}.6`, ...loaderProps });
|
|
12
12
|
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Button$1.Button, { ...rest, ref, leftSection: loading ? loader : leftSection, disabled: disabled || loading });
|
|
13
13
|
});
|
|
14
14
|
const Button = _Button;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button as MantineButton } from '@mantine/core';
|
|
1
|
+
import { Button as MantineButton } 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';
|
|
2
2
|
type Button = typeof MantineButton;
|
|
3
3
|
export declare const Button: Button;
|
|
4
4
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button as MantineButton } from '@mantine/core';
|
|
1
|
+
import { Button as MantineButton } 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';
|
|
2
2
|
type Button = typeof MantineButton;
|
|
3
3
|
export declare const Button: Button;
|
|
4
4
|
export {};
|
|
@@ -5,8 +5,8 @@ import { Loader } from "../../node_modules/.pnpm/@mantine_core@7.13.2_patch_hash
|
|
|
5
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
6
|
const _Button = forwardRef((props, ref) => {
|
|
7
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
|
|
8
|
+
const { leftSection, loading, disabled, loaderProps, ...rest } = props;
|
|
9
|
+
const loader = /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, { size: 16, color: `${props.color ?? theme.primaryColor}.6`, ...loaderProps });
|
|
10
10
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { ...rest, ref, leftSection: loading ? loader : leftSection, disabled: disabled || loading });
|
|
11
11
|
});
|
|
12
12
|
const Button = _Button;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MantineTheme } from '@mantine/core';
|
|
1
|
+
import { MantineTheme } 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';
|
|
2
2
|
import { CSSObject } from '@mantine/emotion';
|
|
3
3
|
import { default as React } from 'react';
|
|
4
4
|
import { MediaQueryNumberSize } from './styles.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MantineTheme } from '@mantine/core';
|
|
1
|
+
import { MantineTheme } 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';
|
|
2
2
|
import { CSSObject } from '@mantine/emotion';
|
|
3
3
|
import { default as React } from 'react';
|
|
4
4
|
import { MediaQueryNumberSize } from './styles.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MantineTheme, MantineSize } from '@mantine/core';
|
|
1
|
+
import { MantineTheme, MantineSize } 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';
|
|
2
2
|
import { CSSObject } from '@mantine/emotion';
|
|
3
3
|
export type MediaQueryNumberSize = MantineSize | number | (string & {});
|
|
4
4
|
export interface MediaQueryStylesParams {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MantineTheme, MantineSize } from '@mantine/core';
|
|
1
|
+
import { MantineTheme, MantineSize } 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';
|
|
2
2
|
import { CSSObject } from '@mantine/emotion';
|
|
3
3
|
export type MediaQueryNumberSize = MantineSize | number | (string & {});
|
|
4
4
|
export interface MediaQueryStylesParams {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectProps as MantineSelectProps, MultiSelectProps as MantineMultiSelectProps, ComboboxItem } from '@mantine/core';
|
|
1
|
+
import { SelectProps as MantineSelectProps, MultiSelectProps as MantineMultiSelectProps, ComboboxItem } 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';
|
|
2
2
|
export interface SelectProps extends MantineSelectProps {
|
|
3
3
|
creatable?: boolean;
|
|
4
4
|
getCreateLabel?: (query: string) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectProps as MantineSelectProps, MultiSelectProps as MantineMultiSelectProps, ComboboxItem } from '@mantine/core';
|
|
1
|
+
import { SelectProps as MantineSelectProps, MultiSelectProps as MantineMultiSelectProps, ComboboxItem } 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';
|
|
2
2
|
export interface SelectProps extends MantineSelectProps {
|
|
3
3
|
creatable?: boolean;
|
|
4
4
|
getCreateLabel?: (query: string) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextInputProps as MantineTextInputProps } from '@mantine/core';
|
|
1
|
+
import { TextInputProps as MantineTextInputProps } 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';
|
|
2
2
|
import { TypographyProps } from '../Typography/index.js';
|
|
3
3
|
export interface TextInputProps extends MantineTextInputProps {
|
|
4
4
|
leftLabel?: React.ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextInputProps as MantineTextInputProps } from '@mantine/core';
|
|
1
|
+
import { TextInputProps as MantineTextInputProps } 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';
|
|
2
2
|
import { TypographyProps } from '../Typography/index.js';
|
|
3
3
|
export interface TextInputProps extends MantineTextInputProps {
|
|
4
4
|
leftLabel?: React.ReactNode;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MantineStyleProps, TextProps } from '@mantine/core';
|
|
1
|
+
import { MantineStyleProps, TextProps } 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';
|
|
2
2
|
type TypographyVariants = 'headline-lg' | 'headline-md' | 'headline-sm' | 'title-lg' | 'title-md' | 'title-sm' | 'action-lg' | 'action-md' | 'action-sm' | 'label-lg' | 'label-md' | 'label-sm' | 'label-xs' | 'body-lg' | 'body-md' | 'body-sm' | 'body-xs';
|
|
3
3
|
export interface TypographyProps extends Omit<TextProps, 'variant'> {
|
|
4
4
|
variant?: TypographyVariants;
|
|
5
5
|
}
|
|
6
6
|
export declare const TYPOGRAPHY_STYLES_MAP: Record<TypographyVariants, MantineStyleProps>;
|
|
7
|
-
export declare const Typography: (<C = "div">(props: import('@mantine/core').PolymorphicComponentProps<C, TypographyProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<(TypographyProps & {
|
|
7
|
+
export declare const Typography: (<C = "div">(props: import('../../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').PolymorphicComponentProps<C, TypographyProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<(TypographyProps & {
|
|
8
8
|
component?: any;
|
|
9
9
|
} & Omit<Omit<any, "ref">, keyof TypographyProps | "component"> & {
|
|
10
10
|
ref?: any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MantineStyleProps, TextProps } from '@mantine/core';
|
|
1
|
+
import { MantineStyleProps, TextProps } 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';
|
|
2
2
|
type TypographyVariants = 'headline-lg' | 'headline-md' | 'headline-sm' | 'title-lg' | 'title-md' | 'title-sm' | 'action-lg' | 'action-md' | 'action-sm' | 'label-lg' | 'label-md' | 'label-sm' | 'label-xs' | 'body-lg' | 'body-md' | 'body-sm' | 'body-xs';
|
|
3
3
|
export interface TypographyProps extends Omit<TextProps, 'variant'> {
|
|
4
4
|
variant?: TypographyVariants;
|
|
5
5
|
}
|
|
6
6
|
export declare const TYPOGRAPHY_STYLES_MAP: Record<TypographyVariants, MantineStyleProps>;
|
|
7
|
-
export declare const Typography: (<C = "div">(props: import('@mantine/core').PolymorphicComponentProps<C, TypographyProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<(TypographyProps & {
|
|
7
|
+
export declare const Typography: (<C = "div">(props: import('../../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').PolymorphicComponentProps<C, TypographyProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<(TypographyProps & {
|
|
8
8
|
component?: any;
|
|
9
9
|
} & Omit<Omit<any, "ref">, keyof TypographyProps | "component"> & {
|
|
10
10
|
ref?: any;
|