@dtdot/lego 0.19.12 → 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.
Files changed (44) hide show
  1. package/build/components/ActionMenu/ActionMenu.component.js +2 -2
  2. package/build/components/ActionMenu/_ActionMenuItem.component.js +1 -1
  3. package/build/components/Alert/Alert.component.d.ts +1 -1
  4. package/build/components/Badge/Badge.component.d.ts +1 -1
  5. package/build/components/Card/Card.component.js +1 -1
  6. package/build/components/Card/Card.context.d.ts +1 -1
  7. package/build/components/Card/_CardActions.component.js +1 -1
  8. package/build/components/Checklist/Checklist.component.js +1 -1
  9. package/build/components/Checklist/_ChecklistItem.component.js +1 -1
  10. package/build/components/ControlGroup/ControlGroup.component.d.ts +1 -1
  11. package/build/components/ImageUpload/ImageUpload.component.d.ts +1 -1
  12. package/build/components/ImageUpload/ImageUpload.component.js +2 -2
  13. package/build/components/InlineCard/InlineCard.component.d.ts +2 -2
  14. package/build/components/InlineCard/InlineCard.component.js +4 -4
  15. package/build/components/InlineCard/InlineCardSelection.component.d.ts +1 -1
  16. package/build/components/InlineCard/_InlineCardSelection.context.d.ts +1 -1
  17. package/build/components/Input/Input.component.js +2 -2
  18. package/build/components/LiveList/LiveList.component.js +2 -2
  19. package/build/components/LiveList/_LiveListRow.js +3 -3
  20. package/build/components/Menu/Menu.component.js +1 -1
  21. package/build/components/Menu/_MenuHeading.component.js +1 -1
  22. package/build/components/Menu/_MenuItem.component.js +1 -1
  23. package/build/components/Menu/_MenuPanel.component.d.ts +1 -1
  24. package/build/components/MinimalMenu/MinimalMenu.component.js +2 -2
  25. package/build/components/MinimalMenu/_MinimalMenuItem.component.js +1 -1
  26. package/build/components/MinimalMenu/desktop/_DesktopMinimalMenuItem.component.js +1 -1
  27. package/build/components/MinimalMenu/mobile/_MobileMinimalMenuContainer.component.js +1 -1
  28. package/build/components/MinimalMenu/mobile/_MobileMinimalMenuItem.component.js +4 -4
  29. package/build/components/Modal/Modal.component.d.ts +1 -1
  30. package/build/components/Modal/Modal.component.js +2 -2
  31. package/build/components/Modal/_ModalHeader.component.js +2 -2
  32. package/build/components/Notifications/Notifications.component.d.ts +1 -1
  33. package/build/components/Notifications/Notifications.component.js +2 -2
  34. package/build/components/ProfileImage/ProfileImage.component.js +2 -2
  35. package/build/components/Spacer/Spacer.component.d.ts +1 -1
  36. package/build/components/Table/Table.component.d.ts +1 -1
  37. package/build/components/Table/_Table.context.d.ts +1 -1
  38. package/build/components/Text/Text.component.d.ts +1 -1
  39. package/build/contexts/File.context.js +6 -2
  40. package/build/layouts/Content/Content.layout.js +1 -1
  41. package/build/layouts/Content/_ContentContent.component.d.ts +1 -1
  42. package/build/responsive/responsive.d.ts +1 -1
  43. package/build/theme/theme.types.d.ts +2 -2
  44. package/package.json +31 -25
@@ -1,9 +1,9 @@
1
- import { faEllipsisV } from '@fortawesome/free-solid-svg-icons';
2
1
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
2
  import React, { useCallback, useEffect, useState } from 'react';
4
3
  import ReactDOM from 'react-dom';
5
- import styled from 'styled-components';
6
4
  import { usePopper } from 'react-popper';
5
+ import { faEllipsisV } from '@fortawesome/free-solid-svg-icons';
6
+ import styled from 'styled-components';
7
7
  import Button from '../Button/Button.component';
8
8
  import ActionMenuPanel from './_ActionMenuPanel.component';
9
9
  const StyledIcon = styled(FontAwesomeIcon) `
@@ -1,5 +1,5 @@
1
- import { motion } from 'framer-motion';
2
1
  import React from 'react';
2
+ import { motion } from 'framer-motion';
3
3
  import styled, { useTheme } from 'styled-components';
4
4
  const ActionMenuItemOuter = styled(motion.div) `
5
5
  padding: 12px 16px;
@@ -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
- import { motion } from 'framer-motion';
2
1
  import React, { useEffect, useRef, useState } from 'react';
2
+ import { motion } from 'framer-motion';
3
3
  import styled, { useTheme } from 'styled-components';
4
4
  import responsive from '../../responsive/responsive';
5
5
  import CardContext from './Card.context';
@@ -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,6 +1,6 @@
1
- import { AnimatePresence, motion } from 'framer-motion';
2
1
  import React, { useContext, useEffect } from 'react';
3
2
  import { createPortal } from 'react-dom';
3
+ import { AnimatePresence, motion } from 'framer-motion';
4
4
  import styled from 'styled-components';
5
5
  import CardContext from './Card.context';
6
6
  const actionsHeight = 32;
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useState } from 'react';
2
- import styled from 'styled-components';
3
2
  import { motion, LayoutGroup } from 'framer-motion';
3
+ import styled from 'styled-components';
4
4
  import ChecklistItem from './_ChecklistItem.component';
5
5
  const ListDivider = styled.div `
6
6
  width: 100%;
@@ -1,5 +1,5 @@
1
- import { motion } from 'framer-motion';
2
1
  import React from 'react';
2
+ import { motion } from 'framer-motion';
3
3
  import styled, { useTheme } from 'styled-components';
4
4
  const Outerlabel = styled(motion.label) `
5
5
  position: relative;
@@ -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
+ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
1
2
  import React, { useContext, useRef, useState } from 'react';
2
3
  import { faCloudUploadAlt, faExclamationCircle, faSearch } from '@fortawesome/free-solid-svg-icons';
3
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4
- import styled from 'styled-components';
5
4
  import { motion } from 'framer-motion';
5
+ import styled from 'styled-components';
6
6
  import FileContext from '../../contexts/File.context';
7
7
  import useFormNode from '../Form/useFormNode.hook';
8
8
  import Loader from '../Loader/Loader.component';
@@ -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;
@@ -1,15 +1,15 @@
1
- import { motion, useMotionValue, useTransform } from 'framer-motion';
1
+ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
2
2
  import React, { useContext, useState } from 'react';
3
- import styled, { useTheme } from 'styled-components';
4
3
  import useMeasure from 'react-use-measure';
4
+ import { faCheck } from '@fortawesome/free-solid-svg-icons';
5
+ import { motion, useMotionValue, useTransform } from 'framer-motion';
6
+ import styled, { useTheme } from 'styled-components';
5
7
  import { responsive } from '../..';
6
8
  import getThemeStatusColour from '../../theme/helpers/getThemeStatusColour';
7
9
  import InlineCardContent from './_InlineCardContent.component';
8
10
  import InlineCardMedia from './_InlineCardMedia.component';
9
11
  import InlineCardMeta from './_InlineCardMeta.component';
10
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
11
12
  import InlineCardSelectionContext from './_InlineCardSelection.context';
12
- import { faCheck } from '@fortawesome/free-solid-svg-icons';
13
13
  const CardWrapper = styled.div `
14
14
  position: relative;
15
15
  height: 64px;
@@ -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,8 +1,8 @@
1
1
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
2
- import { faExclamationCircle } from '@fortawesome/free-solid-svg-icons';
3
2
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4
- import { motion } from 'framer-motion';
5
3
  import React, { useState } from 'react';
4
+ import { faExclamationCircle } from '@fortawesome/free-solid-svg-icons';
5
+ import { motion } from 'framer-motion';
6
6
  import styled, { css } from 'styled-components';
7
7
  import getThemeControlColours from '../../theme/helpers/getThemeControlColours';
8
8
  import useFormNode, { getValue } from '../Form/useFormNode.hook';
@@ -1,7 +1,7 @@
1
- import { faPlusCircle } from '@fortawesome/free-solid-svg-icons';
2
1
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
- import { motion } from 'framer-motion';
4
2
  import React, { useCallback, useContext, useEffect } from 'react';
3
+ import { faPlusCircle } from '@fortawesome/free-solid-svg-icons';
4
+ import { motion } from 'framer-motion';
5
5
  import styled from 'styled-components';
6
6
  import { v4 as uuidv4 } from 'uuid';
7
7
  import useKeypress from '../../hooks/useKeyPress';
@@ -1,10 +1,10 @@
1
- import { faTimes } from '@fortawesome/free-solid-svg-icons';
2
1
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
- import { motion } from 'framer-motion';
4
2
  import React, { useContext, useEffect, useRef, useState } from 'react';
3
+ import { faTimes } from '@fortawesome/free-solid-svg-icons';
4
+ import { motion } from 'framer-motion';
5
5
  import styled from 'styled-components';
6
- import { FocusContext } from './_FocusContext';
7
6
  import Input from '../Input/Input.component';
7
+ import { FocusContext } from './_FocusContext';
8
8
  const InputContainer = styled(motion.div) `
9
9
  position: relative;
10
10
  margin: 2px 0;
@@ -1,5 +1,5 @@
1
- import { AnimatePresence, motion } from 'framer-motion';
2
1
  import React, { useState } from 'react';
2
+ import { AnimatePresence, motion } from 'framer-motion';
3
3
  import styled from 'styled-components';
4
4
  import responsive from '../../responsive/responsive';
5
5
  import MenuContent from './_MenuContent.component';
@@ -1,6 +1,6 @@
1
- import { faBars } from '@fortawesome/free-solid-svg-icons';
2
1
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
2
  import React from 'react';
3
+ import { faBars } from '@fortawesome/free-solid-svg-icons';
4
4
  import styled from 'styled-components';
5
5
  import responsive from '../../responsive/responsive';
6
6
  const MenuHeadingDiv = styled.div `
@@ -1,6 +1,6 @@
1
+ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
1
2
  import React from 'react';
2
3
  import styled from 'styled-components';
3
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4
4
  const MenuItemOuter = styled.div `
5
5
  display: flex;
6
6
  `;
@@ -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,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { useIsScreenSize } from '../../responsive/responsive';
3
- import DesktopMinimalMenuContainer from './desktop/_DesktopMinimalMenuContainer.component';
4
- import MobileMinimalMenuContainer from './mobile/_MobileMinimalMenuContainer.component';
5
3
  import MinimalMenuItem from './_MinimalMenuItem.component';
6
4
  import MinimalMenuPage from './_MinimalMenuPage.component';
5
+ import DesktopMinimalMenuContainer from './desktop/_DesktopMinimalMenuContainer.component';
6
+ import MobileMinimalMenuContainer from './mobile/_MobileMinimalMenuContainer.component';
7
7
  const MinimalMenu = ({ children }) => {
8
8
  const isMobile = useIsScreenSize('mobile');
9
9
  if (isMobile) {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { useIsScreenSize } from '../../responsive/responsive';
3
- import MobileMinimalMenuItem from './mobile/_MobileMinimalMenuItem.component';
4
3
  import DesktopMinimalMenuItem from './desktop/_DesktopMinimalMenuItem.component';
4
+ import MobileMinimalMenuItem from './mobile/_MobileMinimalMenuItem.component';
5
5
  const MinimalMenuItem = ({ icon, active, onClick, 'data-cy': dataCy }) => {
6
6
  const isMobile = useIsScreenSize('mobile');
7
7
  if (isMobile) {
@@ -1,6 +1,6 @@
1
1
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
2
- import { motion } from 'framer-motion';
3
2
  import React, { useMemo } from 'react';
3
+ import { motion } from 'framer-motion';
4
4
  import styled, { useTheme } from 'styled-components';
5
5
  const ItemContainer = styled(motion.div) `
6
6
  position: relative;
@@ -1,5 +1,5 @@
1
- import { motion } from 'framer-motion';
2
1
  import React, { useState } from 'react';
2
+ import { motion } from 'framer-motion';
3
3
  import styled from 'styled-components';
4
4
  import { mobileMenuDefaultTransition } from './_MobileMenu.constants';
5
5
  import MobileMenuBump from './_MobileMenuBump.component';
@@ -1,10 +1,10 @@
1
- import React, { useContext, useEffect, useRef } from 'react';
2
- import styled from 'styled-components';
3
1
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
2
+ import React, { useContext, useEffect, useRef } from 'react';
4
3
  import { motion } from 'framer-motion';
5
- import MobileMenuBumpContext from './_MobileMenuBump.context';
6
- import { mobileMenuDefaultTransition } from './_MobileMenu.constants';
4
+ import styled from 'styled-components';
7
5
  import useWindowDimensions from '../../../hooks/useWindowDimensions';
6
+ import { mobileMenuDefaultTransition } from './_MobileMenu.constants';
7
+ import MobileMenuBumpContext from './_MobileMenuBump.context';
8
8
  const ItemContainer = styled.div `
9
9
  position: relative;
10
10
 
@@ -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,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import ReactDOM from 'react-dom';
3
- import styled from 'styled-components';
4
3
  import { motion, AnimatePresence } from 'framer-motion';
4
+ import styled from 'styled-components';
5
5
  import { Loader } from '../..';
6
+ import zIndexConstants from '../../constants/zIndex.constants';
6
7
  import responsive from '../../responsive/responsive';
7
8
  import ModalContext from './_Modal.context';
8
9
  import ModalBody from './_ModalBody.component';
9
10
  import ModalHeader from './_ModalHeader.component';
10
- import zIndexConstants from '../../constants/zIndex.constants';
11
11
  const getResponsiveSize = (size) => {
12
12
  switch (size) {
13
13
  case 'sm':
@@ -1,7 +1,7 @@
1
+ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
1
2
  import React, { useContext } from 'react';
2
- import styled from 'styled-components';
3
3
  import { faTimes } from '@fortawesome/free-solid-svg-icons';
4
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4
+ import styled from 'styled-components';
5
5
  import ModalContext from './_Modal.context';
6
6
  const HeaderContainer = styled.div `
7
7
  display: flex;
@@ -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,10 +1,10 @@
1
1
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
2
2
  import React from 'react';
3
+ import { AnimatePresence, motion } from 'framer-motion';
3
4
  import styled from 'styled-components';
4
5
  import { Notification, Spacer } from '../..';
5
- import responsive from '../../responsive/responsive';
6
6
  import zIndexConstants from '../../constants/zIndex.constants';
7
- import { AnimatePresence, motion } from 'framer-motion';
7
+ import responsive from '../../responsive/responsive';
8
8
  const NotificationContainer = styled.div `
9
9
  position: fixed;
10
10
  bottom: 20px;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import styled from 'styled-components';
3
2
  import IdenticonObj from 'identicon.js';
4
- import colours from '../../colours/colours';
5
3
  import SparkMD5 from 'spark-md5';
4
+ import styled from 'styled-components';
5
+ import colours from '../../colours/colours';
6
6
  const ImageContainer = styled.div `
7
7
  height: 36px;
8
8
  width: 36px;
@@ -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,8 +1,12 @@
1
1
  import { createContext } from 'react';
2
2
  const FileContext = createContext({
3
3
  // eslint-disable-next-line
4
- upload: (file) => { throw new Error('ERROR: Upload function must be bound in a context'); },
4
+ upload: (file) => {
5
+ throw new Error('ERROR: Upload function must be bound in a context');
6
+ },
5
7
  // eslint-disable-next-line
6
- getUrl: (key) => { throw new Error('ERROR: Get URL function must be bound in a context'); },
8
+ getUrl: (key) => {
9
+ throw new Error('ERROR: Get URL function must be bound in a context');
10
+ },
7
11
  });
8
12
  export default FileContext;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
- import ContentHeader from './_ContentHeader.component';
4
3
  import ContentContent from './_ContentContent.component';
4
+ import ContentHeader from './_ContentHeader.component';
5
5
  const ContentContainer = styled.div ``;
6
6
  const ContentLayout = ({ children }) => {
7
7
  return React.createElement(ContentContainer, null, children);
@@ -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": "0.19.12",
3
+ "version": "1.0.1",
4
4
  "description": "Some reusable components for building my applications",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -9,7 +9,8 @@
9
9
  "watch": "npm run build -- --watch",
10
10
  "lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
11
11
  "storybook": "start-storybook -p 6006",
12
- "build-storybook": "build-storybook"
12
+ "build-storybook": "build-storybook",
13
+ "pretty": "prettier --write \"./**/*.{js,jsx,ts,tsx,json}\""
13
14
  },
14
15
  "author": "Simon Pratt <19920260+simonpratt@users.noreply.github.com>",
15
16
  "license": "ISC",
@@ -17,47 +18,52 @@
17
18
  "build"
18
19
  ],
19
20
  "devDependencies": {
20
- "@babel/cli": "^7.18.10",
21
- "@babel/core": "^7.19.0",
21
+ "@babel/cli": "^7.20.7",
22
+ "@babel/core": "^7.20.7",
22
23
  "@babel/preset-react": "^7.18.6",
23
24
  "@babel/preset-typescript": "^7.18.6",
24
- "@storybook/addon-actions": "^6.4.19",
25
- "@storybook/addon-essentials": "^6.4.19",
26
- "@storybook/react": "^6.1.21",
25
+ "@dtdot/eslint-config": "^0.0.6",
26
+ "@storybook/addon-actions": "^6.5.15",
27
+ "@storybook/addon-essentials": "^6.5.15",
28
+ "@storybook/addon-interactions": "^6.5.15",
29
+ "@storybook/addon-links": "^6.5.15",
30
+ "@storybook/builder-webpack5": "^6.5.15",
31
+ "@storybook/manager-webpack5": "^6.5.15",
32
+ "@storybook/react": "^6.5.15",
33
+ "@storybook/testing-library": "^0.0.13",
34
+ "@trivago/prettier-plugin-sort-imports": "^4.0.0",
27
35
  "@types/identicon.js": "^2.3.1",
28
36
  "@types/qrcode": "^1.5.0",
29
- "@types/react": "^18.0.20",
30
- "@types/react-dom": "^18.0.6",
37
+ "@types/react": "^18.0.26",
38
+ "@types/react-dom": "^18.0.9",
31
39
  "@types/spark-md5": "^3.0.2",
32
40
  "@types/styled-components": "^5.1.26",
33
- "@types/uuid": "^8.3.4",
34
- "@typescript-eslint/eslint-plugin": "^5.37.0",
35
- "@typescript-eslint/parser": "^5.37.0",
36
- "babel-loader": "^8.2.5",
37
- "eslint": "^8.23.1",
41
+ "@types/uuid": "^9.0.0",
42
+ "@typescript-eslint/eslint-plugin": "^5.47.0",
43
+ "@typescript-eslint/parser": "^5.47.0",
44
+ "babel-loader": "^9.1.0",
45
+ "eslint": "^8.30.0",
38
46
  "eslint-config-prettier": "^8.5.0",
39
47
  "eslint-plugin-prettier": "^4.2.1",
40
- "eslint-plugin-react": "^7.31.8",
48
+ "eslint-plugin-react": "^7.31.11",
41
49
  "eslint-plugin-react-hooks": "^4.6.0",
42
- "prettier": "^2.7.1",
43
- "prettier-eslint": "^15.0.1",
50
+ "prettier": "^2.8.1",
44
51
  "react": "^18.2.0",
45
52
  "react-dom": "^18.2.0",
46
- "storybook-addon-styled-component-theme": "^2.0.0",
47
53
  "styled-components": "^5.3.5",
48
- "typescript": "^4.8.3"
54
+ "typescript": "^4.9.4"
49
55
  },
50
56
  "peerDependencies": {
51
- "react": "^18.2.0",
52
- "react-dom": "^18.2.0",
53
- "styled-components": "^5.3.5"
57
+ "react": "16 - 18",
58
+ "react-dom": "16 - 18",
59
+ "styled-components": "5.x"
54
60
  },
55
61
  "dependencies": {
56
- "@fortawesome/fontawesome-svg-core": "^6.2.0",
57
- "@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",
58
64
  "@fortawesome/react-fontawesome": "^0.2.0",
59
65
  "@popperjs/core": "^2.11.6",
60
- "framer-motion": "^7.3.4",
66
+ "framer-motion": "^8.0.2",
61
67
  "identicon.js": "^2.3.3",
62
68
  "qrcode": "^1.5.1",
63
69
  "react-popper": "^2.2.5",