@dtdot/lego 1.0.0 → 1.0.1
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/build/components/Alert/Alert.component.d.ts +1 -1
- package/build/components/Badge/Badge.component.d.ts +1 -1
- package/build/components/Card/Card.context.d.ts +1 -1
- package/build/components/ControlGroup/ControlGroup.component.d.ts +1 -1
- package/build/components/ImageUpload/ImageUpload.component.d.ts +1 -1
- package/build/components/InlineCard/InlineCard.component.d.ts +2 -2
- package/build/components/InlineCard/InlineCardSelection.component.d.ts +1 -1
- package/build/components/InlineCard/_InlineCardSelection.context.d.ts +1 -1
- package/build/components/Menu/_MenuPanel.component.d.ts +1 -1
- package/build/components/Modal/Modal.component.d.ts +1 -1
- package/build/components/Notifications/Notifications.component.d.ts +1 -1
- package/build/components/Spacer/Spacer.component.d.ts +1 -1
- package/build/components/Table/Table.component.d.ts +1 -1
- package/build/components/Table/_Table.context.d.ts +1 -1
- package/build/components/Text/Text.component.d.ts +1 -1
- package/build/layouts/Content/_ContentContent.component.d.ts +1 -1
- package/build/responsive/responsive.d.ts +1 -1
- package/build/theme/theme.types.d.ts +2 -2
- package/package.json +14 -14
|
@@ -4,7 +4,7 @@ interface BadgeSpanProps {
|
|
|
4
4
|
variant: BadgeVariant;
|
|
5
5
|
}
|
|
6
6
|
export declare const BadgeSpan: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, BadgeSpanProps, never>;
|
|
7
|
-
export
|
|
7
|
+
export type BadgeVariant = Status;
|
|
8
8
|
export interface BadgeProps {
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
variant: BadgeVariant;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type ControlGroupVariation = 'focus' | 'submission' | 'comfortable';
|
|
3
3
|
export interface ControlGroupProps {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
variation?: ControlGroupVariation;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
3
|
import { Status } from '../../theme/theme.types';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type InlineCardSize = 'fill' | 'xs' | 'sm' | 'md' | 'lg';
|
|
5
|
+
export type DragVariant = Status;
|
|
6
6
|
export interface InlineCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
size?: InlineCardSize;
|
|
@@ -5,5 +5,5 @@ export interface InlineCardSelectionProps {
|
|
|
5
5
|
value?: string[];
|
|
6
6
|
onChange?: (value: string[]) => void;
|
|
7
7
|
}
|
|
8
|
-
declare const InlineCardSelection: ({ children, name, value, onChange, }: InlineCardSelectionProps) => JSX.Element;
|
|
8
|
+
declare const InlineCardSelection: ({ children, name, value: propsValue, onChange: propsOnChange, }: InlineCardSelectionProps) => JSX.Element;
|
|
9
9
|
export default InlineCardSelection;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export type NotificationVariant = 'info' | 'success' | 'warn' | 'danger';
|
|
3
3
|
export interface INotification {
|
|
4
4
|
id: string;
|
|
5
5
|
variant: NotificationVariant;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ScreenSize = 'mobile' | 'tablet' | 'desktop' | 'wide';
|
|
2
2
|
export interface IStyleBoundFunctions {
|
|
3
3
|
andSmaller: (styled: string | TemplateStringsArray, ...templateArgs: any) => string;
|
|
4
4
|
andLarger: (styled: string | TemplateStringsArray, ...templateArgs: any) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type ColourVariant = 'primary' | 'secondary' | 'tertiary';
|
|
2
|
+
export type Status = 'info' | 'success' | 'warn' | 'danger';
|
|
3
3
|
export interface IPalette {
|
|
4
4
|
main: string;
|
|
5
5
|
hover: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dtdot/lego",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Some reusable components for building my applications",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"build"
|
|
19
19
|
],
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@babel/cli": "^7.
|
|
22
|
-
"@babel/core": "^7.
|
|
21
|
+
"@babel/cli": "^7.20.7",
|
|
22
|
+
"@babel/core": "^7.20.7",
|
|
23
23
|
"@babel/preset-react": "^7.18.6",
|
|
24
24
|
"@babel/preset-typescript": "^7.18.6",
|
|
25
25
|
"@dtdot/eslint-config": "^0.0.6",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"@trivago/prettier-plugin-sort-imports": "^4.0.0",
|
|
35
35
|
"@types/identicon.js": "^2.3.1",
|
|
36
36
|
"@types/qrcode": "^1.5.0",
|
|
37
|
-
"@types/react": "^18.0.
|
|
38
|
-
"@types/react-dom": "^18.0.
|
|
37
|
+
"@types/react": "^18.0.26",
|
|
38
|
+
"@types/react-dom": "^18.0.9",
|
|
39
39
|
"@types/spark-md5": "^3.0.2",
|
|
40
40
|
"@types/styled-components": "^5.1.26",
|
|
41
|
-
"@types/uuid": "^
|
|
41
|
+
"@types/uuid": "^9.0.0",
|
|
42
42
|
"@typescript-eslint/eslint-plugin": "^5.47.0",
|
|
43
43
|
"@typescript-eslint/parser": "^5.47.0",
|
|
44
|
-
"babel-loader": "^
|
|
44
|
+
"babel-loader": "^9.1.0",
|
|
45
45
|
"eslint": "^8.30.0",
|
|
46
46
|
"eslint-config-prettier": "^8.5.0",
|
|
47
47
|
"eslint-plugin-prettier": "^4.2.1",
|
|
@@ -51,19 +51,19 @@
|
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-dom": "^18.2.0",
|
|
53
53
|
"styled-components": "^5.3.5",
|
|
54
|
-
"typescript": "^4.
|
|
54
|
+
"typescript": "^4.9.4"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"react": "
|
|
58
|
-
"react-dom": "
|
|
59
|
-
"styled-components": "
|
|
57
|
+
"react": "16 - 18",
|
|
58
|
+
"react-dom": "16 - 18",
|
|
59
|
+
"styled-components": "5.x"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@fortawesome/fontawesome-svg-core": "^6.2.
|
|
63
|
-
"@fortawesome/free-solid-svg-icons": "^6.2.
|
|
62
|
+
"@fortawesome/fontawesome-svg-core": "^6.2.1",
|
|
63
|
+
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
|
64
64
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
65
65
|
"@popperjs/core": "^2.11.6",
|
|
66
|
-
"framer-motion": "^
|
|
66
|
+
"framer-motion": "^8.0.2",
|
|
67
67
|
"identicon.js": "^2.3.3",
|
|
68
68
|
"qrcode": "^1.5.1",
|
|
69
69
|
"react-popper": "^2.2.5",
|