@kwantis-id3/frontend-library 1.0.0-rc.9 → 1.1.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.
- package/dist/esm/index.js +196 -98
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Accordion/AccordionInterfaces.d.ts +2 -0
- package/dist/esm/types/components/Accordion/AccordionStyled.d.ts +4 -0
- package/dist/esm/types/components/Accordion/index.d.ts +2 -0
- package/dist/esm/types/components/Button/ButtonInterfaces.d.ts +1 -2
- package/dist/esm/types/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/esm/types/components/Checkbox/CheckboxInterfaces.d.ts +23 -0
- package/dist/esm/types/components/Checkbox/CheckboxStyled.d.ts +32 -0
- package/dist/esm/types/components/Checkbox/index.d.ts +2 -0
- package/dist/esm/types/components/DataGrid/DataGrid.d.ts +3 -0
- package/dist/esm/types/components/DataGrid/DataGridInterfaces.d.ts +9 -0
- package/dist/esm/types/components/DataGrid/index.d.ts +2 -0
- package/dist/esm/types/components/Drawer/Drawer.d.ts +1 -1
- package/dist/esm/types/components/Drawer/DrawerInterfaces.d.ts +14 -0
- package/dist/esm/types/components/Drawer/DrawerStyled.d.ts +3 -0
- package/dist/esm/types/components/Dropdown/DropdownInterfaces.d.ts +12 -0
- package/dist/esm/types/components/Dropdown/DropdownStyled.d.ts +3 -0
- package/dist/esm/types/components/Indicator/IndicatorInterfaces.d.ts +1 -1
- package/dist/esm/types/components/Indicator/NeutralIndicator.d.ts +3 -0
- package/dist/esm/types/components/InputField/InputField.d.ts +1 -1
- package/dist/esm/types/components/InputField/InputFieldInterfaces.d.ts +2 -1
- package/dist/esm/types/components/MultiViewList/MultiViewGrid.d.ts +5 -0
- package/dist/esm/types/components/MultiViewList/MultiViewList.d.ts +1 -0
- package/dist/esm/types/components/MultiViewList/MultiViewListInterfaces.d.ts +13 -1
- package/dist/esm/types/components/MultiViewList/MultiViewListStyled.d.ts +3 -0
- package/dist/esm/types/components/MultiViewList/index.d.ts +1 -0
- package/dist/esm/types/components/Slider/Thumb.d.ts +7 -0
- package/dist/esm/types/components/Switch/Switch.d.ts +2 -0
- package/dist/esm/types/components/Switch/SwitchInterfaces.d.ts +17 -0
- package/dist/esm/types/components/Switch/SwitchStyled.d.ts +35 -0
- package/dist/esm/types/components/Switch/index.d.ts +2 -0
- package/dist/esm/types/components/Table/DebouncedFilter.d.ts +1 -2
- package/dist/esm/types/components/Tag/TagInterfaces.d.ts +1 -2
- package/dist/esm/types/components/ThemeContext/ThemeContext.d.ts +4 -3
- package/dist/esm/types/components/ThemeContext/ThemeInterfaces.d.ts +2 -0
- package/dist/esm/types/components/TreeView/TreeUtils.d.ts +19 -0
- package/dist/esm/types/components/TreeView/TreeViewInterfaces.d.ts +6 -0
- package/dist/esm/types/components/index.d.ts +3 -0
- package/dist/esm/types/utils/index.d.ts +4 -5
- package/dist/esm/types/utils/isMobile.d.ts +1 -2
- package/dist/esm/types/utils/testing.d.ts +21 -0
- package/dist/index.d.ts +132 -21
- package/package.json +28 -23
- package/dist/esm/types/utils/styled.d.ts +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import { Theme } from '@emotion/react
|
|
2
|
+
import * as _emotion_react from '@emotion/react';
|
|
3
|
+
import { Interpolation, Theme } from '@emotion/react';
|
|
4
4
|
import * as react from 'react';
|
|
5
|
-
import { PropsWithChildren,
|
|
6
|
-
import
|
|
5
|
+
import { PropsWithChildren, ReactElement, FC, ReactNode } from 'react';
|
|
6
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
7
7
|
import { CreateStyled } from '@emotion/styled';
|
|
8
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
8
9
|
|
|
9
10
|
type TButtonVariants = "contained" | "outlined" | "text";
|
|
10
11
|
type TButtonProps = {
|
|
@@ -95,6 +96,8 @@ interface IIndicatorColors {
|
|
|
95
96
|
warningFill: string;
|
|
96
97
|
error: string;
|
|
97
98
|
errorFill: string;
|
|
99
|
+
neutral: string;
|
|
100
|
+
neutralFill: string;
|
|
98
101
|
}
|
|
99
102
|
interface IPalette {
|
|
100
103
|
/** Application background */
|
|
@@ -140,11 +143,19 @@ interface IThemeContextValue {
|
|
|
140
143
|
setMode: (mode: TThemeMode) => void;
|
|
141
144
|
}
|
|
142
145
|
|
|
146
|
+
declare const commonColors: ICommonColors;
|
|
143
147
|
declare const defaultLightPalette: IPalette;
|
|
144
148
|
declare const defaultDarkPalette: IPalette;
|
|
145
|
-
declare const ThemeContextProvider: ({ palettes, defaultMode, children, }: PropsWithChildren<IThemeContextProps>) =>
|
|
149
|
+
declare const ThemeContextProvider: ({ palettes, defaultMode, children, }: PropsWithChildren<IThemeContextProps>) => ReactElement;
|
|
146
150
|
declare const useThemeContext: () => IThemeContextValue;
|
|
147
151
|
|
|
152
|
+
declare const AccordionGroup: _emotion_styled.StyledComponent<{
|
|
153
|
+
theme?: _emotion_react.Theme;
|
|
154
|
+
as?: React.ElementType;
|
|
155
|
+
} & {
|
|
156
|
+
$variant: "default" | "light";
|
|
157
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
158
|
+
|
|
148
159
|
type TAccordionProps = PropsWithChildren & {
|
|
149
160
|
/** Title to be used if no custom trigger is passed */
|
|
150
161
|
title: string;
|
|
@@ -164,6 +175,8 @@ type TAccordionProps = PropsWithChildren & {
|
|
|
164
175
|
* @default "default"
|
|
165
176
|
*/
|
|
166
177
|
variant?: "default" | "light";
|
|
178
|
+
/** Reverses the layout so the content expands above the header */
|
|
179
|
+
reversed?: boolean;
|
|
167
180
|
};
|
|
168
181
|
|
|
169
182
|
declare const Accordion: FC<TAccordionProps>;
|
|
@@ -171,7 +184,7 @@ declare const Accordion: FC<TAccordionProps>;
|
|
|
171
184
|
declare const InputField: react.ForwardRefExoticComponent<react.InputHTMLAttributes<HTMLInputElement> & {
|
|
172
185
|
containerClassName?: string;
|
|
173
186
|
color?: string;
|
|
174
|
-
sx?:
|
|
187
|
+
sx?: _emotion_react.Interpolation<_emotion_react.Theme>;
|
|
175
188
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
176
189
|
|
|
177
190
|
type TTextFieldProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
@@ -180,7 +193,7 @@ type TTextFieldProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
180
193
|
/** The color of the input */
|
|
181
194
|
color?: string;
|
|
182
195
|
/** Change the styles of the input field */
|
|
183
|
-
sx?:
|
|
196
|
+
sx?: Interpolation<Theme>;
|
|
184
197
|
};
|
|
185
198
|
|
|
186
199
|
interface SingleSelectProps<Option = {
|
|
@@ -339,13 +352,25 @@ type TDropdownProps = {
|
|
|
339
352
|
bgColor?: string;
|
|
340
353
|
/** The hover color of the dropdown */
|
|
341
354
|
hoverColor?: string;
|
|
355
|
+
/** The border color */
|
|
356
|
+
borderColor?: string;
|
|
357
|
+
/** The border width */
|
|
358
|
+
borderWidth?: string;
|
|
342
359
|
/** Controls wether the dropdown should extend towards the left or the right */
|
|
343
360
|
direction?: "left" | "right";
|
|
361
|
+
/** Controls whether the dropdown menu opens above or below the trigger */
|
|
362
|
+
placement?: "top" | "bottom";
|
|
363
|
+
/** Controls whether the dropdown body should have absolute or fixed position
|
|
364
|
+
* By default, it is set to absolute, which means the dropdown will be positioned relative to its parent element.
|
|
365
|
+
* Use fixed if you want the body to be above the entire page, regardless of the parent element.
|
|
366
|
+
*/
|
|
367
|
+
menuPosition?: "absolute" | "fixed";
|
|
344
368
|
/** The mobile breakpoint, by default it's 768px */
|
|
345
369
|
mobileBreakpoint?: number;
|
|
346
370
|
};
|
|
347
371
|
type TDropdownItemProps = TDropdownItem & {
|
|
348
372
|
direction?: string;
|
|
373
|
+
placement?: "top" | "bottom";
|
|
349
374
|
closeBody: () => void;
|
|
350
375
|
};
|
|
351
376
|
|
|
@@ -380,7 +405,7 @@ type TIndicatorInstanceProps = {
|
|
|
380
405
|
type TIndicatorProps = {
|
|
381
406
|
variant: TIndicatorVariants;
|
|
382
407
|
} & TIndicatorInstanceProps;
|
|
383
|
-
type TIndicatorVariants = "live" | "success" | "warning" | "error";
|
|
408
|
+
type TIndicatorVariants = "live" | "success" | "warning" | "error" | "neutral";
|
|
384
409
|
|
|
385
410
|
type TGenericIndicatorProps = {
|
|
386
411
|
variant: TIndicatorVariants;
|
|
@@ -412,7 +437,7 @@ type TTagProps = {
|
|
|
412
437
|
declare const Tag: FC<TTagProps>;
|
|
413
438
|
|
|
414
439
|
type TCardSectionProps = PropsWithChildren & {
|
|
415
|
-
sx?: Interpolation<Theme
|
|
440
|
+
sx?: Interpolation<Theme>;
|
|
416
441
|
onClick?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
417
442
|
};
|
|
418
443
|
|
|
@@ -454,13 +479,35 @@ type TTableRow<T extends TCellValues> = {
|
|
|
454
479
|
declare const Table: <Cell extends TCellValues, Row extends TTableRow<Cell>>(props: TTableProps<Cell, Row>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
455
480
|
declare const renderCell: (value: string | number | boolean | null) => _emotion_react_jsx_runtime.JSX.Element;
|
|
456
481
|
|
|
482
|
+
type TDataGridProps<Cell extends TCellValues, Row extends TDataGridRow<Cell>> = {
|
|
483
|
+
columns: ColumnDef<TDataGridRow<Cell>, Cell>[];
|
|
484
|
+
data: Row[] | undefined;
|
|
485
|
+
};
|
|
486
|
+
type TDataGridRow<Cell extends TCellValues> = {
|
|
487
|
+
[key: string]: Cell;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
declare const DataGrid: <Cell extends TCellValues, Row extends TDataGridRow<Cell>>(props: TDataGridProps<Cell, Row>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
491
|
+
|
|
457
492
|
type TMultiViewListProps<Cell extends TCellValues, Row extends TTableRow<Cell>> = TTableProps<Cell, Row> & {
|
|
458
493
|
mode: "table" | "cards";
|
|
459
|
-
cardComponent: (item: Row) => React.ReactNode;
|
|
494
|
+
cardComponent: (item: Row, index: number) => React.ReactNode;
|
|
495
|
+
cardsWidth?: string;
|
|
496
|
+
cardsHeight?: string;
|
|
497
|
+
sx?: Interpolation<Theme>;
|
|
498
|
+
};
|
|
499
|
+
type TMultiViewGridProps<Cell extends TCellValues, Row extends TDataGridRow<Cell>> = TDataGridProps<Cell, Row> & {
|
|
500
|
+
mode: "table" | "cards";
|
|
501
|
+
cardComponent: (item: Row, index: number) => React.ReactNode;
|
|
502
|
+
cardsWidth?: string;
|
|
503
|
+
cardsHeight?: string;
|
|
504
|
+
sx?: Interpolation<Theme>;
|
|
460
505
|
};
|
|
461
506
|
|
|
462
507
|
declare const MultiViewList: <Cell extends TCellValues, Row extends TTableRow<Cell>>(props: TMultiViewListProps<Cell, Row>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
463
508
|
|
|
509
|
+
declare const MultiViewGrid: <Cell extends TCellValues, Row extends TDataGridRow<Cell>>(props: TMultiViewGridProps<Cell, Row>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
510
|
+
|
|
464
511
|
/**
|
|
465
512
|
* A callback to customize how items are rendered
|
|
466
513
|
* @property isOpen: A boolean indicating if the item is expanded
|
|
@@ -505,10 +552,16 @@ type TTreeViewProps = TTreeItemFunctions & {
|
|
|
505
552
|
/** Disable multi-selection possibility */
|
|
506
553
|
isMultiSelectionDisabled?: boolean;
|
|
507
554
|
/** Custom styles */
|
|
508
|
-
sx?: Interpolation<Theme
|
|
555
|
+
sx?: Interpolation<Theme>;
|
|
509
556
|
};
|
|
510
557
|
type TUncontrolledTreeViewProps = TTreeViewProps & {
|
|
511
558
|
items: TTreeViewItem[];
|
|
559
|
+
/** A search string used to filter the items. */
|
|
560
|
+
searchString?: string;
|
|
561
|
+
/** The ids of the items that should be expanded by default */
|
|
562
|
+
defaultExpandedItems?: string[];
|
|
563
|
+
/** Only allow one root item to be expanded at a time */
|
|
564
|
+
singleRootExpand?: boolean;
|
|
512
565
|
};
|
|
513
566
|
type TControlledTreeViewProps = TTreeViewProps & {
|
|
514
567
|
/** The current state of the Tree View. */
|
|
@@ -534,7 +587,7 @@ type TTreeViewItem = TTreeItemFunctions & {
|
|
|
534
587
|
/** A callback to fetch children asynchronously */
|
|
535
588
|
childrenAsync?: () => Promise<TTreeViewItem[]>;
|
|
536
589
|
/** Custom styles */
|
|
537
|
-
sx?: Interpolation<Theme
|
|
590
|
+
sx?: Interpolation<Theme>;
|
|
538
591
|
};
|
|
539
592
|
|
|
540
593
|
/** @jsxImportSource @emotion/react */
|
|
@@ -546,6 +599,8 @@ declare const UncontrolledTreeView: FC<TUncontrolledTreeViewProps>;
|
|
|
546
599
|
type TDrawerProps = {
|
|
547
600
|
/** Position of the drawer */
|
|
548
601
|
anchor: "top" | "right" | "bottom" | "left";
|
|
602
|
+
/** Optional state value to control the component */
|
|
603
|
+
isOpen?: boolean;
|
|
549
604
|
/** Trigger showed when drawer is closed */
|
|
550
605
|
closedTrigger?: ReactNode;
|
|
551
606
|
/** Trigger showed when drawer is open */
|
|
@@ -560,18 +615,67 @@ type TDrawerProps = {
|
|
|
560
615
|
maxOpen?: number;
|
|
561
616
|
/** Background color */
|
|
562
617
|
bgColor?: string;
|
|
618
|
+
/** Trigger Color */
|
|
619
|
+
triggerColor?: string;
|
|
563
620
|
/** Trigger hover color */
|
|
564
621
|
triggerHoverColor?: string;
|
|
622
|
+
/** Hide the default thumb trigger */
|
|
623
|
+
hideTrigger?: boolean;
|
|
624
|
+
/** Keep rendered when closed to preserve state */
|
|
625
|
+
keepMounted?: boolean;
|
|
626
|
+
/** Set a custom z-index */
|
|
627
|
+
zIndex?: number;
|
|
628
|
+
sx?: Interpolation<Theme>;
|
|
629
|
+
onOpen?: () => void;
|
|
630
|
+
onClose?: () => void;
|
|
565
631
|
};
|
|
566
632
|
|
|
567
|
-
declare const Drawer: ({ anchor, openContent, closedContent, openTrigger, closedTrigger, minOpen, maxOpen, bgColor, triggerHoverColor, }: TDrawerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
633
|
+
declare const Drawer: ({ anchor, isOpen: isOpenProp, openContent, closedContent, openTrigger, closedTrigger, minOpen, maxOpen, bgColor, triggerColor, triggerHoverColor, onOpen, onClose, zIndex, hideTrigger, keepMounted, sx, }: TDrawerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
568
634
|
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
635
|
+
type TCheckboxProps = {
|
|
636
|
+
/** Lable of the checkbox */
|
|
637
|
+
label?: string;
|
|
638
|
+
/** HTML id */
|
|
639
|
+
htmlId?: string;
|
|
640
|
+
name?: string;
|
|
641
|
+
/** Controlled checked state */
|
|
642
|
+
checked?: boolean;
|
|
643
|
+
/** Uncontrolled default checked state */
|
|
644
|
+
defaultChecked?: boolean;
|
|
645
|
+
/** onChange handler */
|
|
646
|
+
onChange?: (checked: boolean) => void;
|
|
647
|
+
/** Mixed state in its children checkboxes */
|
|
648
|
+
indeterminate?: boolean;
|
|
649
|
+
/** Disabled state */
|
|
650
|
+
disabled?: boolean;
|
|
651
|
+
className?: string;
|
|
652
|
+
/** Custom styles */
|
|
653
|
+
sx?: Interpolation<Theme>;
|
|
654
|
+
/** Checkbox sizes */
|
|
655
|
+
size?: "small" | "medium" | "large";
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
declare const Checkbox: ({ label, htmlId, checked, defaultChecked, onChange, indeterminate, disabled, className, sx, name, size, }: TCheckboxProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
659
|
+
|
|
660
|
+
type TSwitchProps = {
|
|
661
|
+
/** Whether the switch is checked (controlled) */
|
|
662
|
+
checked?: boolean;
|
|
663
|
+
/** Default checked state (uncontrolled) */
|
|
664
|
+
defaultChecked?: boolean;
|
|
665
|
+
/** Callback function when the switch state changes */
|
|
666
|
+
onChange?: (checked: boolean) => void;
|
|
667
|
+
/** The color of switch when checked */
|
|
668
|
+
color?: string;
|
|
669
|
+
/** The label for the switch */
|
|
670
|
+
label?: string;
|
|
671
|
+
/** Size of switch */
|
|
672
|
+
size?: "small" | "medium" | "large";
|
|
673
|
+
/** HTML id */
|
|
674
|
+
htmlId?: string;
|
|
675
|
+
className?: string;
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
declare const Switch: (props: TSwitchProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
575
679
|
|
|
576
680
|
/**
|
|
577
681
|
* emotion.js doesn't support transient options out of the box.
|
|
@@ -582,7 +686,12 @@ declare const useIsMobile: (mobileBreakpoint?: number) => boolean;
|
|
|
582
686
|
*/
|
|
583
687
|
declare const transientOptions: Parameters<CreateStyled>[1];
|
|
584
688
|
|
|
585
|
-
|
|
689
|
+
/**
|
|
690
|
+
* Hook to check if the screen is mobile. The default breakpoint is 768px.
|
|
691
|
+
* @param {number=} mobileBreakpoint breakpoint width to check against
|
|
692
|
+
* @returns boolean
|
|
693
|
+
*/
|
|
694
|
+
declare const useIsMobile: (mobileBreakpoint?: number) => boolean;
|
|
586
695
|
|
|
587
696
|
/**
|
|
588
697
|
*
|
|
@@ -615,4 +724,6 @@ declare const getHoverColor: (color: string) => string;
|
|
|
615
724
|
*/
|
|
616
725
|
declare const getActiveColor: (color: string) => string;
|
|
617
726
|
|
|
618
|
-
|
|
727
|
+
declare function usePrefersColorScheme(): "light" | "dark";
|
|
728
|
+
|
|
729
|
+
export { Accordion, AccordionGroup, Button, Card, CardContent, CardFooter, CardHeader, CardIndicators, CardMediaSection, Checkbox, ControlledTreeView, DataGrid, Drawer, Dropdown, IBackgroundColors, ICommonColors, IIndicatorColors, IPalette, IStandardPaletteColor, ITagColors, IThemeContextProps, IThemeContextValue, Indicator, InputField, Modal, MultiSelect, MultiSelectProps, MultiViewGrid, MultiViewList, SingleSelect, SingleSelectProps, Slider, Switch, TAccordionProps, TButtonProps, TButtonVariants, TCardSectionProps, TCellValues, TCheckboxProps, TColorScale, TControlledTreeViewProps, TCustomRenderProps, TDataGridProps, TDataGridRow, TDrawerProps, TDropdownItem, TDropdownItemProps, TDropdownProps, TIndicatorInstanceProps, TIndicatorProps, TIndicatorVariants, TModalProps, TMultiViewGridProps, TMultiViewListProps, TRenderTriggerProps, TSliderProps, TSwitchProps, TTableCell, TTableProps, TTableRow, TTagProps, TTextFieldProps, TThemeMode, TTreeViewItem, TUncontrolledTreeViewProps, TViewState, Table, Tag, ThemeContextProvider, UncontrolledTreeView, commonColors, darkenColor, defaultDarkPalette, defaultLightPalette, getActiveColor, getContrastColor, getHoverColor, lightenColor, renderCell, transientOptions, useIsMobile, usePrefersColorScheme, useThemeContext };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kwantis-id3/frontend-library",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Kwantis frontend components collection",
|
|
5
5
|
"scriptsComments": {
|
|
6
6
|
"storybook": "Starts storybook in development mode",
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"test": "vitest run",
|
|
28
28
|
"test:watch": "vitest",
|
|
29
29
|
"test:coverage": "vitest --coverage",
|
|
30
|
-
"chromatic": "npx chromatic --project-token=3dd812d03e4c",
|
|
31
30
|
"build": "pnpm rollup",
|
|
32
31
|
"bump:patch": "pnpm version patch",
|
|
33
32
|
"bump:minor": "pnpm version minor",
|
|
@@ -42,20 +41,16 @@
|
|
|
42
41
|
},
|
|
43
42
|
"license": "apache-2.0",
|
|
44
43
|
"devDependencies": {
|
|
45
|
-
"@
|
|
44
|
+
"@emotion/jest": "^11.11.0",
|
|
46
45
|
"@rollup/plugin-commonjs": "^24.0.1",
|
|
47
46
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
48
47
|
"@rollup/plugin-terser": "^0.4.4",
|
|
49
48
|
"@rollup/plugin-typescript": "^11.0.0",
|
|
50
|
-
"@storybook/addon-
|
|
51
|
-
"@storybook/addon-
|
|
52
|
-
"@storybook/addon-
|
|
53
|
-
"@storybook/
|
|
54
|
-
"@storybook/
|
|
55
|
-
"@storybook/react": "^8.6.4",
|
|
56
|
-
"@storybook/react-webpack5": "^8.6.4",
|
|
57
|
-
"@storybook/test": "^8.6.4",
|
|
58
|
-
"@storybook/types": "^8.6.4",
|
|
49
|
+
"@storybook/addon-docs": "^10.1.10",
|
|
50
|
+
"@storybook/addon-links": "^10.1.10",
|
|
51
|
+
"@storybook/addon-webpack5-compiler-swc": "^4.0.2",
|
|
52
|
+
"@storybook/react": "^10.1.10",
|
|
53
|
+
"@storybook/react-webpack5": "^10.1.10",
|
|
59
54
|
"@testing-library/jest-dom": "^5.16.5",
|
|
60
55
|
"@testing-library/react": "^16.2.0",
|
|
61
56
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -65,26 +60,31 @@
|
|
|
65
60
|
"@types/tinycolor2": "^1.4.3",
|
|
66
61
|
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
|
67
62
|
"@typescript-eslint/parser": "^5.58.0",
|
|
68
|
-
"@
|
|
63
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
64
|
+
"@vitest/coverage-v8": "3.0.5",
|
|
69
65
|
"chromatic": "^11.0.4",
|
|
70
|
-
"eslint": "^8.
|
|
66
|
+
"eslint": "^8.57.1",
|
|
71
67
|
"eslint-config-prettier": "^8.8.0",
|
|
72
68
|
"eslint-plugin-react": "^7.32.2",
|
|
73
69
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
74
|
-
"eslint-plugin-storybook": "^
|
|
75
|
-
"jsdom": "^23.0
|
|
70
|
+
"eslint-plugin-storybook": "^10.1.10",
|
|
71
|
+
"jsdom": "^23.2.0",
|
|
72
|
+
"lucide-react": "^0.545.0",
|
|
76
73
|
"prop-types": "15.8.1",
|
|
77
74
|
"rollup": "^3.20.2",
|
|
78
75
|
"rollup-plugin-dts": "^5.3.0",
|
|
79
76
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
80
|
-
"storybook": "^
|
|
77
|
+
"storybook": "^10.1.10",
|
|
81
78
|
"ts-node": "^10.9.1",
|
|
82
79
|
"tslib": "^2.5.0",
|
|
83
80
|
"typescript": "^5.7.3",
|
|
84
81
|
"vitest": "^3.0.5"
|
|
85
82
|
},
|
|
86
83
|
"peerDependencies": {
|
|
84
|
+
"@emotion/react": "^11.0.0",
|
|
85
|
+
"@emotion/styled": "^11.0.0",
|
|
87
86
|
"@tanstack/react-table": "^8.0.0",
|
|
87
|
+
"lucide-react": "^0.545.0",
|
|
88
88
|
"react": "^18.0.0 || ^19.0.0",
|
|
89
89
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
90
90
|
},
|
|
@@ -96,14 +96,10 @@
|
|
|
96
96
|
],
|
|
97
97
|
"types": "dist/index.d.ts",
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@emotion/jest": "^11.11.0",
|
|
100
|
-
"@emotion/react": "11.14.0",
|
|
101
|
-
"@emotion/styled": "11.14.0",
|
|
102
99
|
"react-range": "^1.8.14",
|
|
103
100
|
"react-select": "^5.7.3",
|
|
104
101
|
"tinycolor2": "^1.6.0"
|
|
105
102
|
},
|
|
106
|
-
"readme": "ERROR: No README data found!",
|
|
107
103
|
"pnpm": {
|
|
108
104
|
"overrides": {
|
|
109
105
|
"@adobe/css-tools@<4.3.1": ">=4.3.1",
|
|
@@ -113,8 +109,17 @@
|
|
|
113
109
|
"semver@>=7.0.0 <7.5.2": ">=7.5.2",
|
|
114
110
|
"tough-cookie@<4.1.3": ">=4.1.3",
|
|
115
111
|
"word-wrap@<1.2.4": ">=1.2.4",
|
|
116
|
-
"@babel/traverse@<7.23.2": ">=7.23.2"
|
|
112
|
+
"@babel/traverse@<7.23.2": ">=7.23.2",
|
|
113
|
+
"brace-expansion@>=1.0.0 <=1.1.11": ">=1.1.12",
|
|
114
|
+
"brace-expansion@>=2.0.0 <=2.0.1": ">=2.0.2",
|
|
115
|
+
"form-data@>=4.0.0 <4.0.4": ">=4.0.4",
|
|
116
|
+
"js-yaml@>=4.0.0 <4.1.1": ">=4.1.1",
|
|
117
|
+
"glob@>=10.2.0 <10.5.0": ">=10.5.0"
|
|
117
118
|
}
|
|
118
119
|
},
|
|
119
|
-
"
|
|
120
|
+
"engines": {
|
|
121
|
+
"node": ">=20.0.0",
|
|
122
|
+
"pnpm": ">=10.0.0"
|
|
123
|
+
},
|
|
124
|
+
"packageManager": "pnpm@10.0.0+sha512.b8fef5494bd3fe4cbd4edabd0745df2ee5be3e4b0b8b08fa643aa3e4c6702ccc0f00d68fa8a8c9858a735a0032485a44990ed2810526c875e416f001b17df12b"
|
|
120
125
|
}
|