quicksnack 3.80.0 → 3.82.0

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 (38) hide show
  1. package/dist/bundle.js +708 -15
  2. package/dist/bundle.min.js +10 -1
  3. package/dist/quicksnack.css +1 -1
  4. package/dist/src/animation/SlideInFromTop/SlideInFromTop.d.ts +2 -2
  5. package/dist/src/components/Box/Box.d.ts +2 -1
  6. package/dist/src/components/BreadCrumbs/BreadCrumbs.d.ts +2 -2
  7. package/dist/src/components/Container/Container.d.ts +2 -2
  8. package/dist/src/components/Dropdown/Dropdown.d.ts +2 -2
  9. package/dist/src/components/Menu/HamburgerButton.d.ts +2 -2
  10. package/dist/src/components/Menu/MenuCloseButton.d.ts +2 -2
  11. package/dist/src/components/Overlay/Overlay.d.ts +2 -2
  12. package/dist/src/components/Tabs/Tab.d.ts +1 -1
  13. package/dist/src/components/Tabs/Tabs.d.ts +2 -2
  14. package/dist/src/components/Toggle/Toggle.d.ts +2 -2
  15. package/dist/src/form/Label/Label.d.ts +2 -2
  16. package/dist/src/form/ScaffoldForm/FormGrid/FormGrid.d.ts +2 -2
  17. package/dist/src/form/ScaffoldForm/FormGrid/FormGridCell.d.ts +2 -1
  18. package/dist/src/form/ScaffoldForm/scaffoldFormProps.d.ts +3 -3
  19. package/dist/src/typography/Paragraph/Paragraph.d.ts +2 -2
  20. package/package.json +20 -17
  21. package/dist/src/components/Alert/Alert.d.ts +0 -8
  22. package/dist/src/components/ConfirmModal/ConfirmModal.d.ts +0 -15
  23. package/dist/src/components/Details/Details.d.ts +0 -8
  24. package/dist/src/components/Feedback/Feedback.d.ts +0 -10
  25. package/dist/src/components/Floater/Floater.d.ts +0 -15
  26. package/dist/src/components/Menu/Menu.d.ts +0 -9
  27. package/dist/src/components/Menu/SideBarHeader.d.ts +0 -6
  28. package/dist/src/components/Modal/Modal.d.ts +0 -8
  29. package/dist/src/components/Panel/Panel.d.ts +0 -17
  30. package/dist/src/components/Statistic/Statistic.d.ts +0 -11
  31. package/dist/src/components/Timeline/Timeline.d.ts +0 -18
  32. package/dist/src/components/TopBar/TopBar.d.ts +0 -7
  33. package/dist/src/form/Button/Button.d.ts +0 -14
  34. package/dist/src/form/Dropzone/Dropzone.d.ts +0 -7
  35. package/dist/src/form/ScaffoldForm/FormGrid/FormGridWrapper.d.ts +0 -10
  36. package/dist/src/layouts/BasicLayout/BasicLayout.d.ts +0 -8
  37. package/dist/src/layouts/FloatingPanelLayout/FloatingPanelLayout.d.ts +0 -12
  38. package/dist/src/layouts/SplitLayout/SplitLayout.d.ts +0 -17
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quicksnack",
3
3
  "description": "Quickly create beautiful admin layouts using react",
4
- "version": "3.80.0",
4
+ "version": "3.82.0",
5
5
  "private": false,
6
6
  "files": [
7
7
  "dist/**"
@@ -41,14 +41,16 @@
41
41
  "dependencies": {
42
42
  "clsx": "1.1.1",
43
43
  "lodash.chunk": "4.2.0",
44
- "lodash.difference": "4.5.0"
44
+ "lodash.difference": "4.5.0",
45
+ "postcss": "^8.5.10"
45
46
  },
46
47
  "peerDependencies": {
47
- "react": "^17.0.1 || ^18.0.0",
48
- "react-dom": "^17.0.1 || ^18.0.0"
48
+ "react": "^17.0.1 || ^18.0.0 || ^19.0.0",
49
+ "react-dom": "^17.0.1 || ^18.0.0 || ^19.0.0"
49
50
  },
50
51
  "resolutions": {
51
- "@types/react": "17.0.45"
52
+ "@types/react": "^19.0.0",
53
+ "@types/react-dom": "^19.0.0"
52
54
  },
53
55
  "devDependencies": {
54
56
  "@babel/preset-env": "^7.23.6",
@@ -61,14 +63,15 @@
61
63
  "@semantic-release/git": "10.0.1",
62
64
  "@semantic-release/gitlab": "13.2.9",
63
65
  "@semantic-release/npm": "13.1.3",
64
- "@storybook/addon-actions": "7.6.1",
65
- "@storybook/addon-essentials": "7.6.1",
66
- "@storybook/addon-links": "7.6.1",
66
+ "@storybook/addon-actions": "8.6.18",
67
+ "@storybook/addon-essentials": "8.6.18",
68
+ "@storybook/addon-links": "8.6.18",
67
69
  "@storybook/addon-styling-webpack": "^0.0.5",
68
- "@storybook/node-logger": "7.6.1",
69
- "@storybook/preset-create-react-app": "7.6.1",
70
- "@storybook/react": "7.6.1",
71
- "@storybook/react-webpack5": "7.6.1",
70
+ "@storybook/addon-webpack5-compiler-babel": "^3.0.6",
71
+ "@storybook/node-logger": "8.6.18",
72
+ "@storybook/preset-create-react-app": "8.6.18",
73
+ "@storybook/react": "8.6.18",
74
+ "@storybook/react-webpack5": "8.6.18",
72
75
  "@testing-library/jest-dom": "5.16.4",
73
76
  "@testing-library/react": "13.2.0",
74
77
  "@testing-library/user-event": "14.2.0",
@@ -76,8 +79,8 @@
76
79
  "@types/lodash.chunk": "^4.2.7",
77
80
  "@types/lodash.difference": "^4.5.7",
78
81
  "@types/node": "16.11.36",
79
- "@types/react": "18.0.9",
80
- "@types/react-dom": "18.0.5",
82
+ "@types/react": "^19.0.0",
83
+ "@types/react-dom": "^19.0.0",
81
84
  "babel-loader": "8.2.5",
82
85
  "commander": "^11.1.0",
83
86
  "css-loader": "^6.8.1",
@@ -88,15 +91,15 @@
88
91
  "postcss-loader": "^7.3.3",
89
92
  "postcss-nested": "^6.0.1",
90
93
  "prettier": "^3.1.1",
91
- "react": "18.1.0",
92
- "react-dom": "18.1.0",
94
+ "react": "^19.0.0",
95
+ "react-dom": "^19.0.0",
93
96
  "react-hook-form": "7.34.0",
94
97
  "react-icons": "4.3.1",
95
98
  "rollup": "4.6.1",
96
99
  "rollup-plugin-copy": "^3.5.0",
97
100
  "rollup-plugin-postcss": "^4.0.2",
98
101
  "semantic-release": "25.0.2",
99
- "storybook": "7.6.1",
102
+ "storybook": "8.6.18",
100
103
  "style-loader": "^3.3.3",
101
104
  "styled-components": "6.0.7",
102
105
  "ts-node": "^10.9.2",
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- interface Props {
3
- title?: string | JSX.Element;
4
- variant?: "positive" | "negative" | "info" | "warning" | "basic" | "emphasized";
5
- actions?: JSX.Element;
6
- }
7
- export declare const Alert: React.FC<React.PropsWithChildren<Props>>;
8
- export {};
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import { Button } from "../../form/Button/Button";
3
- interface Props {
4
- title: string;
5
- cancelLabel?: string;
6
- confirmLabel?: string;
7
- confirmIcon?: JSX.Element;
8
- confirmVariant?: React.ComponentProps<typeof Button>["variant"];
9
- cancelIcon?: JSX.Element;
10
- isOpen: boolean;
11
- onConfirm: () => void;
12
- onCancel: () => void;
13
- }
14
- export declare const ConfirmModal: React.FC<React.PropsWithChildren<Props>>;
15
- export {};
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- interface Props {
3
- className?: string;
4
- firstColumnWidth: string;
5
- details: Record<string, number | string | JSX.Element>;
6
- }
7
- export declare const Details: React.FC<React.PropsWithChildren<Props>>;
8
- export {};
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- interface Props {
3
- onConfirm: () => void;
4
- buttonLabel: string | JSX.Element;
5
- buttonIcon?: JSX.Element;
6
- title: string | JSX.Element;
7
- subtitle?: string | JSX.Element;
8
- }
9
- export declare const Feedback: React.FC<Props>;
10
- export {};
@@ -1,15 +0,0 @@
1
- import { BoxProps } from "../Box/Box";
2
- import React from "react";
3
- interface ItemWithElement {
4
- element: JSX.Element;
5
- stretch?: boolean;
6
- forceEqualWidth?: boolean;
7
- }
8
- interface Props extends BoxProps {
9
- stretch?: boolean;
10
- forceEqualWidth?: boolean;
11
- multiRow?: boolean;
12
- items: Array<JSX.Element | false | ItemWithElement>;
13
- }
14
- export declare const Floater: React.FC<React.PropsWithChildren<Props>>;
15
- export {};
@@ -1,9 +0,0 @@
1
- import React, { PropsWithChildren } from "react";
2
- interface Props {
3
- item: string | JSX.Element;
4
- isOpen?: boolean;
5
- isActive?: boolean;
6
- }
7
- export declare const Menu: ({ children }: PropsWithChildren<unknown>) => JSX.Element;
8
- export declare const MenuItem: React.FC<React.PropsWithChildren<Props>>;
9
- export {};
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- interface Props {
3
- right?: string | JSX.Element;
4
- }
5
- export declare const SideBarHeader: React.FC<React.PropsWithChildren<Props>>;
6
- export {};
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { Panel } from "../Panel/Panel";
3
- interface Props extends React.ComponentProps<typeof Panel> {
4
- handleClickOverlay: () => void;
5
- buttons?: JSX.Element;
6
- }
7
- export declare const Modal: React.FC<React.PropsWithChildren<Props>>;
8
- export {};
@@ -1,17 +0,0 @@
1
- import React, { CSSProperties } from "react";
2
- import { BoxProps } from "../Box/Box";
3
- import { Header } from "../../typography/Header/Header";
4
- export interface PanelProps {
5
- className?: string;
6
- p?: number;
7
- title?: string | JSX.Element;
8
- titleLevel?: React.ComponentProps<typeof Header>["level"];
9
- titleMeta?: string | JSX.Element;
10
- onClickTitle?: React.MouseEventHandler;
11
- footer?: string | JSX.Element;
12
- titleAction?: string | JSX.Element;
13
- stageProps?: BoxProps;
14
- footerProps?: BoxProps;
15
- style?: CSSProperties;
16
- }
17
- export declare const Panel: React.FC<React.PropsWithChildren<PanelProps>>;
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- interface Props {
3
- icon: JSX.Element;
4
- value: string;
5
- label: string;
6
- smallerValue?: boolean;
7
- valueTestId?: string;
8
- backgroundColor: "blue" | "indigo" | "purple" | "pink" | "red" | "orange" | "yellow" | "green" | "teal" | "cyan" | "gray" | "grayDark" | "light" | "dark";
9
- }
10
- export declare const Statistic: React.FC<React.PropsWithChildren<Props>>;
11
- export {};
@@ -1,18 +0,0 @@
1
- import React from "react";
2
- interface TimeLineProps {
3
- title?: string | JSX.Element;
4
- titleMeta?: string | JSX.Element;
5
- isInitiallyOpen: boolean;
6
- icon: JSX.Element;
7
- chevron: string | JSX.Element;
8
- color: string;
9
- }
10
- export declare const Timeline: React.FC<React.PropsWithChildren<TimeLineProps>>;
11
- interface SimpleTimeLineProps {
12
- title?: string | JSX.Element;
13
- titleMeta?: string | JSX.Element;
14
- icon: JSX.Element;
15
- color: string;
16
- }
17
- export declare const SimpleTimeline: React.FC<SimpleTimeLineProps>;
18
- export {};
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- interface Props {
3
- left?: JSX.Element | string;
4
- right?: JSX.Element | string;
5
- }
6
- export declare const TopBar: React.FC<React.PropsWithChildren<Props>>;
7
- export {};
@@ -1,14 +0,0 @@
1
- import React from "react";
2
- declare type Variant = "default" | "primary" | "secondary" | "danger" | "basic" | "text";
3
- export interface ButtonProps extends React.ButtonHTMLAttributes<any> {
4
- icon?: JSX.Element;
5
- variant?: Variant;
6
- hasChildren?: boolean;
7
- actionButton?: boolean;
8
- stretch?: boolean;
9
- inline?: boolean;
10
- interactiveDisabled?: boolean;
11
- "data-testid"?: string;
12
- }
13
- export declare const Button: React.FC<React.PropsWithChildren<ButtonProps>>;
14
- export {};
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- interface Props extends React.InputHTMLAttributes<any> {
3
- icon?: JSX.Element;
4
- placeholder: string;
5
- }
6
- export declare const Dropzone: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
7
- export {};
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import { FormGridCellProps } from "./FormGridCell";
3
- export interface FormGridWrapperProps extends FormGridCellProps {
4
- isRequired?: boolean;
5
- label?: string | JSX.Element;
6
- hint?: string | JSX.Element;
7
- error?: string | JSX.Element;
8
- skip?: boolean;
9
- }
10
- export declare const FormGridWrapper: React.FC<React.PropsWithChildren<FormGridWrapperProps>>;
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { DefaultLayoutProps } from "../DefaultLayout";
3
- interface Props extends DefaultLayoutProps {
4
- isLoading?: boolean;
5
- loader?: string | JSX.Element;
6
- }
7
- export declare const BasicLayout: React.FC<React.PropsWithChildren<Props>>;
8
- export {};
@@ -1,12 +0,0 @@
1
- import React from "react";
2
- import { Panel } from "../../components/Panel/Panel";
3
- interface Props {
4
- logoUrl?: string;
5
- imageUrl: string;
6
- panelProps: React.ComponentProps<typeof Panel>;
7
- alert?: JSX.Element;
8
- backgroundBaseColor?: string;
9
- backgroundOpacity?: number;
10
- }
11
- export declare const FloatingPanelLayout: React.FC<React.PropsWithChildren<Props>>;
12
- export {};
@@ -1,17 +0,0 @@
1
- import React, { PropsWithChildren } from "react";
2
- import { BoxProps } from "../../components/Box/Box";
3
- import { DefaultLayoutProps } from "../DefaultLayout";
4
- export interface SplitLayoutProps extends DefaultLayoutProps {
5
- isLoading?: boolean;
6
- loader?: string | JSX.Element;
7
- }
8
- export declare const SplitLayout: React.FC<PropsWithChildren<SplitLayoutProps>>;
9
- export interface SplitProps {
10
- leftWidth?: string;
11
- left: JSX.Element;
12
- right: JSX.Element;
13
- leftBoxProps?: BoxProps;
14
- rightBoxProps?: BoxProps;
15
- wrapperBoxProps?: BoxProps;
16
- }
17
- export declare const Split: ({ leftWidth, wrapperBoxProps, left, leftBoxProps, right, rightBoxProps, }: SplitProps) => JSX.Element;