@dss-kit/ui-kit 0.3.6 → 0.3.7
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/builders/Modal/Modal.js +57 -51
- package/dist/components/builders/Modal/ModalHeader/ModalHeader.js +27 -27
- package/dist/components/builders/Modal/styles.d.ts +0 -1
- package/dist/components/builders/Modal/styles.js +6 -12
- package/dist/components/builders/Table/TablePagination/TablePagination.js +1 -1
- package/dist/components/controls/Button/Button.js +6 -6
- package/dist/components/controls/IconButton/IconButton.d.ts +17 -2
- package/dist/components/controls/IconButton/IconButton.js +17 -24
- package/dist/components/controls/IconButton/index.d.ts +2 -2
- package/dist/components/controls/Input/Input.js +147 -133
- package/dist/components/controls/Input/styles.d.ts +2 -0
- package/dist/components/controls/Input/styles.js +36 -28
- package/dist/components/controls/MarkdownTextEditor/MarkdownTextEditor.js +6 -6
- package/dist/components/controls/MarkdownTextEditor/components/EditorToolbar/ActionMenuButton/ActionMenuButton.js +8 -8
- package/dist/components/shared/MarkdownText/MarkdownText.js +10 -10
- package/dist/ui-kit.cjs +8 -8
- package/dist/utils/theme/spacing.d.ts +15 -0
- package/dist/utils/theme/spacing.js +15 -0
- package/package.json +1 -1
- package/dist/components/controls/IconButton/IconButton.types.d.ts +0 -11
|
@@ -1,18 +1,33 @@
|
|
|
1
1
|
export declare const spacing: {
|
|
2
|
+
/** 0 */
|
|
2
3
|
readonly zero: "var(--spacing-zero)";
|
|
4
|
+
/** 4px */
|
|
3
5
|
readonly xs: "var(--spacing-xs)";
|
|
6
|
+
/** 8px */
|
|
4
7
|
readonly sm: "var(--spacing-sm)";
|
|
8
|
+
/** 12px */
|
|
5
9
|
readonly md: "var(--spacing-md)";
|
|
10
|
+
/** 16px */
|
|
6
11
|
readonly lg: "var(--spacing-lg)";
|
|
12
|
+
/** 20px */
|
|
7
13
|
readonly xl: "var(--spacing-xl)";
|
|
14
|
+
/** 24px */
|
|
8
15
|
readonly "2xl": "var(--spacing-2xl)";
|
|
16
|
+
/** 32px */
|
|
9
17
|
readonly "3xl": "var(--spacing-3xl)";
|
|
18
|
+
/** 40px */
|
|
10
19
|
readonly "4xl": "var(--spacing-4xl)";
|
|
20
|
+
/** 48px */
|
|
11
21
|
readonly "5xl": "var(--spacing-5xl)";
|
|
22
|
+
/** 56px */
|
|
12
23
|
readonly "6xl": "var(--spacing-6xl)";
|
|
24
|
+
/** 64px */
|
|
13
25
|
readonly "7xl": "var(--spacing-7xl)";
|
|
26
|
+
/** 72px */
|
|
14
27
|
readonly "8xl": "var(--spacing-8xl)";
|
|
28
|
+
/** 80px */
|
|
15
29
|
readonly "9xl": "var(--spacing-9xl)";
|
|
30
|
+
/** 96px */
|
|
16
31
|
readonly "10xl": "var(--spacing-10xl)";
|
|
17
32
|
};
|
|
18
33
|
export type SpacingToken = (typeof spacing)[keyof typeof spacing];
|
|
@@ -1,18 +1,33 @@
|
|
|
1
1
|
const a = {
|
|
2
|
+
/** 0 */
|
|
2
3
|
zero: "var(--spacing-zero)",
|
|
4
|
+
/** 4px */
|
|
3
5
|
xs: "var(--spacing-xs)",
|
|
6
|
+
/** 8px */
|
|
4
7
|
sm: "var(--spacing-sm)",
|
|
8
|
+
/** 12px */
|
|
5
9
|
md: "var(--spacing-md)",
|
|
10
|
+
/** 16px */
|
|
6
11
|
lg: "var(--spacing-lg)",
|
|
12
|
+
/** 20px */
|
|
7
13
|
xl: "var(--spacing-xl)",
|
|
14
|
+
/** 24px */
|
|
8
15
|
"2xl": "var(--spacing-2xl)",
|
|
16
|
+
/** 32px */
|
|
9
17
|
"3xl": "var(--spacing-3xl)",
|
|
18
|
+
/** 40px */
|
|
10
19
|
"4xl": "var(--spacing-4xl)",
|
|
20
|
+
/** 48px */
|
|
11
21
|
"5xl": "var(--spacing-5xl)",
|
|
22
|
+
/** 56px */
|
|
12
23
|
"6xl": "var(--spacing-6xl)",
|
|
24
|
+
/** 64px */
|
|
13
25
|
"7xl": "var(--spacing-7xl)",
|
|
26
|
+
/** 72px */
|
|
14
27
|
"8xl": "var(--spacing-8xl)",
|
|
28
|
+
/** 80px */
|
|
15
29
|
"9xl": "var(--spacing-9xl)",
|
|
30
|
+
/** 96px */
|
|
16
31
|
"10xl": "var(--spacing-10xl)"
|
|
17
32
|
};
|
|
18
33
|
export {
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { CustomType, NegativeType, NeutralType, PositiveType, PrimaryType, SecondaryType, Size, TransferType, WarningType } from '../../../types/tokens.types';
|
|
3
|
-
export type IconButtonAttributes = Pick<ComponentProps<"button">, "className" | "onClick" | "disabled" | "type" | "children">;
|
|
4
|
-
export type IconButtonRestAttributes = Omit<ComponentProps<"button">, keyof IconButtonAttributes>;
|
|
5
|
-
export type IconButtonSize = Extract<Size, "xs" | "sm" | "md"> | CustomType;
|
|
6
|
-
export type IconButtonColor = PrimaryType | SecondaryType | NegativeType | PositiveType | WarningType | TransferType | NeutralType | CustomType | "neutral-white" | "no-bg";
|
|
7
|
-
export interface IIconButtonProps extends IconButtonAttributes {
|
|
8
|
-
size?: IconButtonSize;
|
|
9
|
-
color?: IconButtonColor;
|
|
10
|
-
attr?: IconButtonRestAttributes;
|
|
11
|
-
}
|