@sorocraft/ui 1.2.111 → 1.2.114
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/Accordion/Accordion.d.ts +5 -2
- package/dist/components/Card/Card.d.ts +8 -1
- package/dist/components/Progress/Progress.d.ts +9 -0
- package/dist/components/Progress/index.d.ts +1 -0
- package/dist/components/ProgressCard/ProgressCard.d.ts +12 -0
- package/dist/components/ProgressCard/index.d.ts +1 -0
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/Text/Text.types.d.ts +3 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/scss/colors.scss +3 -0
- package/dist/styles/scss/mixins.scss +3 -2
- package/dist/styles/scss/variables.scss +4 -2
- package/dist/styles/ui.css +1 -1
- package/dist/styles/ui.css.map +1 -1
- package/package.json +6 -6
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
+
import { TextProps } from "../Text/Text.types";
|
|
2
3
|
interface Props {
|
|
3
4
|
title: string | ReactNode;
|
|
4
5
|
content: ReactNode;
|
|
@@ -8,7 +9,9 @@ interface Props {
|
|
|
8
9
|
noPadding?: boolean;
|
|
9
10
|
headerPaddingBlock?: number;
|
|
10
11
|
headerPaddingInline?: number;
|
|
11
|
-
|
|
12
|
+
titleSize?: TextProps["size"];
|
|
13
|
+
titleVariant?: TextProps["variant"];
|
|
14
|
+
titleWeight?: TextProps["weight"];
|
|
12
15
|
}
|
|
13
|
-
declare const Accordion: ({ title, content, fullWidth, isDefaultOpen, style, noPadding, headerPaddingBlock, headerPaddingInline,
|
|
16
|
+
declare const Accordion: ({ title, content, fullWidth, isDefaultOpen, style, noPadding, headerPaddingBlock, headerPaddingInline, titleSize, titleVariant, titleWeight, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
17
|
export default Accordion;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
+
import { UIElementType } from "src/models/ui";
|
|
3
|
+
import { TextProps } from "../Text/Text.types";
|
|
2
4
|
interface Props {
|
|
3
5
|
children: ReactNode;
|
|
4
6
|
title?: string;
|
|
@@ -16,6 +18,11 @@ interface Props {
|
|
|
16
18
|
noShadow?: boolean;
|
|
17
19
|
paddingInline?: number;
|
|
18
20
|
paddingBlock?: number;
|
|
21
|
+
moreShadow?: boolean;
|
|
22
|
+
titleSize?: TextProps["size"];
|
|
23
|
+
titleVariant?: TextProps["variant"];
|
|
24
|
+
titleWeight?: TextProps["weight"];
|
|
25
|
+
type?: UIElementType;
|
|
19
26
|
}
|
|
20
|
-
declare const Card: ({ title, subtitle, children, toolbar, header, footer, separated, borderTopWidth, borderTopColor, noBottomMargin, noBodyPadding, fullHeight, fullWidth, noShadow, paddingInline, paddingBlock, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare const Card: ({ title, subtitle, children, toolbar, header, footer, separated, borderTopWidth, borderTopColor, noBottomMargin, noBodyPadding, fullHeight, fullWidth, noShadow, paddingInline, paddingBlock, moreShadow, titleSize, titleVariant, titleWeight, type, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
28
|
export default Card;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UIElementType } from "src/models/ui";
|
|
2
|
+
interface Props {
|
|
3
|
+
value: number;
|
|
4
|
+
minValue: number;
|
|
5
|
+
maxValue: number;
|
|
6
|
+
type?: UIElementType;
|
|
7
|
+
}
|
|
8
|
+
declare const Progress: ({ minValue, value, maxValue, type }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Progress;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Progress";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UIElementType } from "src/models/ui";
|
|
2
|
+
interface Props {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
value: number;
|
|
6
|
+
minValue: number;
|
|
7
|
+
maxValue: number;
|
|
8
|
+
valueSuffix?: string;
|
|
9
|
+
type?: UIElementType;
|
|
10
|
+
}
|
|
11
|
+
declare const ProgressCard: ({ title, subtitle, value, minValue, maxValue, valueSuffix, type }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default ProgressCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ProgressCard";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextProps } from "./Text.types";
|
|
2
|
-
declare const Text: ({ variant, color, size, align, whiteSpace, weight, fullWidth, className, children, }: TextProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Text: ({ variant, color, size, align, whiteSpace, weight, fullWidth, noMargin, className, children, }: TextProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Text;
|
|
@@ -2,12 +2,13 @@ import { ReactNode } from "react";
|
|
|
2
2
|
import { SIZE, UIElementType } from "src/models/ui";
|
|
3
3
|
export interface TextProps {
|
|
4
4
|
variant?: "light" | "medium" | "bold" | "h1" | "h2" | "h3" | "h4" | "h5";
|
|
5
|
-
size?: SIZE;
|
|
6
|
-
color?: "muted" | "normal" | "white" | UIElementType;
|
|
5
|
+
size?: SIZE | "inherit";
|
|
6
|
+
color?: "inherit" | "muted" | "normal" | "white" | UIElementType;
|
|
7
7
|
align?: "left" | "center" | "right";
|
|
8
8
|
whiteSpace?: "normal" | "wrap" | "nowrap" | "initial";
|
|
9
9
|
weight?: "light" | "regular" | "medium" | "bold";
|
|
10
10
|
fullWidth?: boolean;
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
className?: string;
|
|
13
|
+
noMargin?: boolean;
|
|
13
14
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export { default as Calendar } from "./components/Calendar";
|
|
|
54
54
|
export { default as AddressAutocomplete } from "./components/AddressAutocomplete";
|
|
55
55
|
export { default as TimePicker } from "./components/TimePicker";
|
|
56
56
|
export { default as DateBox } from "./components/DateBox";
|
|
57
|
+
export { default as ProgressCard } from "./components/ProgressCard";
|
|
57
58
|
export * from "./components/Table";
|
|
58
59
|
export * from "./components/DnD";
|
|
59
60
|
export * from "./components/SVGIcon/SVGIcon.types";
|