@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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { Status } from '../../theme/theme.types';
3
- export declare type AlertVariant = Status;
3
+ export type AlertVariant = Status;
4
4
  export interface AlertProps {
5
5
  variant: AlertVariant;
6
6
  message: string;
@@ -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 declare type BadgeVariant = Status;
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
  /// <reference types="react" />
2
- export declare type CardSize = 'fill' | 'xs' | 'sm' | 'md' | 'lg';
2
+ export type CardSize = 'fill' | 'xs' | 'sm' | 'md' | 'lg';
3
3
  interface CardContextProps {
4
4
  size: CardSize;
5
5
  actionsRef?: HTMLDivElement;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type ControlGroupVariation = 'focus' | 'submission' | 'comfortable';
2
+ export type ControlGroupVariation = 'focus' | 'submission' | 'comfortable';
3
3
  export interface ControlGroupProps {
4
4
  children: React.ReactNode;
5
5
  variation?: ControlGroupVariation;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type ImageUploadMode = 'fill' | 'form';
2
+ export type ImageUploadMode = 'fill' | 'form';
3
3
  interface ImageUploadProps {
4
4
  'name': string;
5
5
  'value'?: string;
@@ -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 declare type InlineCardSize = 'fill' | 'xs' | 'sm' | 'md' | 'lg';
5
- export declare type DragVariant = Status;
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 declare type CardSize = 'fill' | 'xs' | 'sm' | 'md' | 'lg';
2
+ export type CardSize = 'fill' | 'xs' | 'sm' | 'md' | 'lg';
3
3
  interface InlineCardSelectionContextProps {
4
4
  value?: string[];
5
5
  onToggle?: (value: string) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type PanelSize = 'sm' | 'md';
2
+ export type PanelSize = 'sm' | 'md';
3
3
  export interface MenuPanelProps {
4
4
  children: React.ReactNode;
5
5
  scrollable?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type ModalSize = 'sm' | 'md' | 'lg';
2
+ export type ModalSize = 'sm' | 'md' | 'lg';
3
3
  export interface ModalProps {
4
4
  children: React.ReactNode;
5
5
  size?: ModalSize;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type NotificationVariant = 'info' | 'success' | 'warn' | 'danger';
2
+ export type NotificationVariant = 'info' | 'success' | 'warn' | 'danger';
3
3
  export interface INotification {
4
4
  id: string;
5
5
  variant: NotificationVariant;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type SpacerSize = '0.5x' | '1x' | '2x' | '4x' | '6x';
2
+ export type SpacerSize = '0.5x' | '1x' | '2x' | '4x' | '6x';
3
3
  export interface SpacerProps {
4
4
  size: SpacerSize;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { TableVariant } from './_Table.context';
3
- export declare type TableCellVariant = 'tight';
3
+ export type TableCellVariant = 'tight';
4
4
  export interface TableProps {
5
5
  children: React.ReactNode;
6
6
  variant?: TableVariant;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type TableVariant = 'regular' | 'soft';
2
+ export type TableVariant = 'regular' | 'soft';
3
3
  export interface TableContextProps {
4
4
  variant: TableVariant;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type TextVariant = 'primary' | 'secondary';
2
+ export type TextVariant = 'primary' | 'secondary';
3
3
  export interface TextProps {
4
4
  children: React.ReactNode;
5
5
  variant?: TextVariant;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type ContentSize = 'sm' | 'md' | 'lg' | 'full';
2
+ export type ContentSize = 'sm' | 'md' | 'lg' | 'full';
3
3
  export interface ContentContentActions {
4
4
  children: React.ReactNode;
5
5
  size?: ContentSize;
@@ -1,4 +1,4 @@
1
- export declare type ScreenSize = 'mobile' | 'tablet' | 'desktop' | 'wide';
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 declare type ColourVariant = 'primary' | 'secondary' | 'tertiary';
2
- export declare type Status = 'info' | 'success' | 'warn' | 'danger';
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.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.18.10",
22
- "@babel/core": "^7.19.0",
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.20",
38
- "@types/react-dom": "^18.0.6",
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": "^8.3.4",
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": "^8.2.5",
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.8.3"
54
+ "typescript": "^4.9.4"
55
55
  },
56
56
  "peerDependencies": {
57
- "react": "^18.2.0",
58
- "react-dom": "^18.2.0",
59
- "styled-components": "^5.3.5"
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.0",
63
- "@fortawesome/free-solid-svg-icons": "^6.2.0",
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": "^7.3.4",
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",