@kwantis-id3/frontend-library 1.0.0-rc.7 → 1.0.0-rc.9
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/README.md +7 -0
- package/dist/esm/index.js +100 -99
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Accordion/Accordion.d.ts +2 -2
- package/dist/esm/types/components/Accordion/AccordionInterfaces.d.ts +1 -1
- package/dist/esm/types/components/Accordion/index.d.ts +1 -1
- package/dist/esm/types/components/Button/Button.d.ts +2 -26
- package/dist/esm/types/components/Button/ButtonInterfaces.d.ts +24 -0
- package/dist/esm/types/components/Button/ButtonStyled.d.ts +41 -0
- package/dist/esm/types/components/Button/index.d.ts +2 -1
- package/dist/esm/types/components/Card/CardInterfaces.d.ts +1 -1
- package/dist/esm/types/components/Card/index.d.ts +2 -2
- package/dist/esm/types/components/Drawer/Drawer.d.ts +2 -22
- package/dist/esm/types/components/Drawer/DrawerInterfaces.d.ts +21 -0
- package/dist/esm/types/components/Drawer/index.d.ts +2 -1
- package/dist/esm/types/components/Dropdown/Dropdown.d.ts +2 -43
- package/dist/esm/types/components/Dropdown/DropdownInterfaces.d.ts +43 -0
- package/dist/esm/types/components/Dropdown/index.d.ts +2 -1
- package/dist/esm/types/components/Indicator/index.d.ts +2 -2
- package/dist/esm/types/components/InputField/InputField.d.ts +2 -8
- package/dist/esm/types/components/InputField/InputFieldInterfaces.d.ts +8 -0
- package/dist/esm/types/components/InputField/index.d.ts +2 -1
- package/dist/esm/types/components/Modal/Modal.d.ts +3 -19
- package/dist/esm/types/components/Modal/ModalInterfaces.d.ts +16 -0
- package/dist/esm/types/components/Modal/index.d.ts +2 -2
- package/dist/esm/types/components/MultiViewList/MultiViewListInterfaces.d.ts +0 -1
- package/dist/esm/types/components/MultiViewList/index.d.ts +1 -1
- package/dist/esm/types/components/SelectFilter/index.d.ts +2 -2
- package/dist/esm/types/components/Slider/Slider.d.ts +2 -2
- package/dist/esm/types/components/Slider/index.d.ts +1 -1
- package/dist/esm/types/components/Table/DebouncedInput.d.ts +0 -1
- package/dist/esm/types/components/Table/index.d.ts +1 -1
- package/dist/esm/types/components/Tag/Tag.d.ts +2 -22
- package/dist/esm/types/components/Tag/TagInterfaces.d.ts +22 -0
- package/dist/esm/types/components/Tag/TagStyled.d.ts +7 -0
- package/dist/esm/types/components/Tag/index.d.ts +2 -1
- package/dist/esm/types/components/ThemeContext/ThemeContext.d.ts +2 -2
- package/dist/esm/types/components/TreeView/TreeViewInterfaces.d.ts +0 -1
- package/dist/esm/types/components/index.d.ts +14 -14
- package/dist/esm/types/utils/testing.d.ts +0 -1
- package/dist/index.d.ts +59 -42
- package/package.json +20 -18
- package/changelog.md +0 -233
- /package/dist/esm/types/components/Modal/{StyledModal.d.ts → ModalStyled.d.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
2
|
+
import { Interpolation, Theme as Theme$1 } from '@emotion/react';
|
|
3
|
+
import { Theme } from '@emotion/react/dist/declarations/src';
|
|
4
|
+
import * as react from 'react';
|
|
5
|
+
import { PropsWithChildren, ReactNode, FC } from 'react';
|
|
6
6
|
import { ColumnDef } from '@tanstack/react-table';
|
|
7
|
+
import { CreateStyled } from '@emotion/styled';
|
|
7
8
|
|
|
8
|
-
type
|
|
9
|
-
type
|
|
9
|
+
type TButtonVariants = "contained" | "outlined" | "text";
|
|
10
|
+
type TButtonProps = {
|
|
10
11
|
/** Color of the button */
|
|
11
12
|
color?: string;
|
|
12
13
|
/** Type of the button */
|
|
@@ -14,7 +15,7 @@ type ButtonProps = {
|
|
|
14
15
|
/** Custom styles */
|
|
15
16
|
sx?: Interpolation<Theme>;
|
|
16
17
|
/** Variant of the button, either `contained`, `outlined` or `text` */
|
|
17
|
-
variant?:
|
|
18
|
+
variant?: TButtonVariants;
|
|
18
19
|
/** The button size; either "large" or "small" */
|
|
19
20
|
size?: "small" | "large";
|
|
20
21
|
/** onClick handler */
|
|
@@ -25,9 +26,10 @@ type ButtonProps = {
|
|
|
25
26
|
/** Disabled state */
|
|
26
27
|
disabled?: boolean;
|
|
27
28
|
/** Elements to render as children */
|
|
28
|
-
children?: React
|
|
29
|
+
children?: React.ReactNode;
|
|
29
30
|
};
|
|
30
|
-
|
|
31
|
+
|
|
32
|
+
declare const Button: (props: TButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
31
33
|
|
|
32
34
|
type TColorScale = {
|
|
33
35
|
50: string;
|
|
@@ -140,7 +142,7 @@ interface IThemeContextValue {
|
|
|
140
142
|
|
|
141
143
|
declare const defaultLightPalette: IPalette;
|
|
142
144
|
declare const defaultDarkPalette: IPalette;
|
|
143
|
-
declare const ThemeContextProvider: ({ palettes, defaultMode, children, }:
|
|
145
|
+
declare const ThemeContextProvider: ({ palettes, defaultMode, children, }: PropsWithChildren<IThemeContextProps>) => ReactNode;
|
|
144
146
|
declare const useThemeContext: () => IThemeContextValue;
|
|
145
147
|
|
|
146
148
|
type TAccordionProps = PropsWithChildren & {
|
|
@@ -157,24 +159,29 @@ type TAccordionProps = PropsWithChildren & {
|
|
|
157
159
|
/** Callback function to be called when the Accordion closes */
|
|
158
160
|
onClose?: () => void;
|
|
159
161
|
/** Custom trigger element */
|
|
160
|
-
trigger?: (isOpen: boolean) =>
|
|
162
|
+
trigger?: (isOpen: boolean) => React.ReactNode;
|
|
161
163
|
/** Variant of the Accordion. Default has everything wrapped in borders, while light just renders the content and the title without setting colors
|
|
162
164
|
* @default "default"
|
|
163
165
|
*/
|
|
164
166
|
variant?: "default" | "light";
|
|
165
167
|
};
|
|
166
168
|
|
|
167
|
-
declare const Accordion:
|
|
169
|
+
declare const Accordion: FC<TAccordionProps>;
|
|
170
|
+
|
|
171
|
+
declare const InputField: react.ForwardRefExoticComponent<react.InputHTMLAttributes<HTMLInputElement> & {
|
|
172
|
+
containerClassName?: string;
|
|
173
|
+
color?: string;
|
|
174
|
+
sx?: React.CSSProperties;
|
|
175
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
168
176
|
|
|
169
|
-
|
|
177
|
+
type TTextFieldProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
170
178
|
/** Classname given to the container div */
|
|
171
179
|
containerClassName?: string;
|
|
172
180
|
/** The color of the input */
|
|
173
181
|
color?: string;
|
|
174
182
|
/** Change the styles of the input field */
|
|
175
|
-
sx?:
|
|
176
|
-
}
|
|
177
|
-
declare const InputField: React__default.ForwardRefExoticComponent<TextFieldProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
183
|
+
sx?: React.CSSProperties;
|
|
184
|
+
};
|
|
178
185
|
|
|
179
186
|
interface SingleSelectProps<Option = {
|
|
180
187
|
label: string;
|
|
@@ -264,7 +271,7 @@ interface MultiSelectProps<Option = {
|
|
|
264
271
|
}
|
|
265
272
|
declare const MultiSelect: <Option>(props: MultiSelectProps<Option>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
266
273
|
|
|
267
|
-
type
|
|
274
|
+
type TSliderProps = {
|
|
268
275
|
/** The values of the slider. */
|
|
269
276
|
values: number[];
|
|
270
277
|
/** The minimum value of the slider. */
|
|
@@ -296,7 +303,7 @@ type SliderProps = {
|
|
|
296
303
|
/** Wether the thumbs can overlap */
|
|
297
304
|
allowOverlap?: boolean;
|
|
298
305
|
};
|
|
299
|
-
declare const Slider: (props:
|
|
306
|
+
declare const Slider: (props: TSliderProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
300
307
|
|
|
301
308
|
/**
|
|
302
309
|
* @property {string} value - The value displayed in the dropdown item
|
|
@@ -305,7 +312,7 @@ declare const Slider: (props: SliderProps) => _emotion_react_jsx_runtime.JSX.Ele
|
|
|
305
312
|
* @property {DropdownItem[]} children - The children of the dropdown item
|
|
306
313
|
* @property {() => void} onClick - The onClick handler of the dropdown item
|
|
307
314
|
*/
|
|
308
|
-
type
|
|
315
|
+
type TDropdownItem = {
|
|
309
316
|
/** The value displayed in the item */
|
|
310
317
|
value: string;
|
|
311
318
|
/** The color of the item */
|
|
@@ -315,7 +322,7 @@ type DropdownItem = {
|
|
|
315
322
|
/** The hover color of the item */
|
|
316
323
|
hoverColor?: string;
|
|
317
324
|
/** The children of the item */
|
|
318
|
-
children?:
|
|
325
|
+
children?: TDropdownItem[];
|
|
319
326
|
/** Wether the item is hidden or not */
|
|
320
327
|
isHidden?: boolean;
|
|
321
328
|
/** Wether the dropdown should close when the item is clicked */
|
|
@@ -323,11 +330,11 @@ type DropdownItem = {
|
|
|
323
330
|
/** The onClick handler of the item */
|
|
324
331
|
onClick?: () => void;
|
|
325
332
|
};
|
|
326
|
-
type
|
|
333
|
+
type TDropdownProps = {
|
|
327
334
|
/** The content of the dropdown */
|
|
328
|
-
content:
|
|
335
|
+
content: TDropdownItem[];
|
|
329
336
|
/** The trigger element of the dropdown. Clicking on this item will open the dropdown */
|
|
330
|
-
trigger:
|
|
337
|
+
trigger: React.ReactNode;
|
|
331
338
|
/** The color of the dropdown */
|
|
332
339
|
bgColor?: string;
|
|
333
340
|
/** The hover color of the dropdown */
|
|
@@ -337,11 +344,16 @@ type DropdownProps = {
|
|
|
337
344
|
/** The mobile breakpoint, by default it's 768px */
|
|
338
345
|
mobileBreakpoint?: number;
|
|
339
346
|
};
|
|
340
|
-
|
|
347
|
+
type TDropdownItemProps = TDropdownItem & {
|
|
348
|
+
direction?: string;
|
|
349
|
+
closeBody: () => void;
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
declare const Dropdown: (props: TDropdownProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
341
353
|
|
|
342
|
-
|
|
354
|
+
type TModalProps = {
|
|
343
355
|
/** The content of the modal */
|
|
344
|
-
children:
|
|
356
|
+
children: React.ReactNode;
|
|
345
357
|
/** Cointrols whether the modal should be open or not. */
|
|
346
358
|
isOpen: boolean;
|
|
347
359
|
/** The handler to be called when the modal is closed */
|
|
@@ -353,9 +365,10 @@ interface ModalProps {
|
|
|
353
365
|
/** custom height */
|
|
354
366
|
height?: string;
|
|
355
367
|
/** custom css */
|
|
356
|
-
sx?:
|
|
357
|
-
}
|
|
358
|
-
|
|
368
|
+
sx?: React.CSSProperties;
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
declare const Modal: FC<TModalProps>;
|
|
359
372
|
|
|
360
373
|
type TIndicatorInstanceProps = {
|
|
361
374
|
outerColor?: string;
|
|
@@ -393,11 +406,14 @@ type TTagProps = {
|
|
|
393
406
|
textColor?: string;
|
|
394
407
|
sx?: Interpolation<Theme>;
|
|
395
408
|
};
|
|
409
|
+
|
|
410
|
+
/** @jsxImportSource @emotion/react */
|
|
411
|
+
|
|
396
412
|
declare const Tag: FC<TTagProps>;
|
|
397
413
|
|
|
398
414
|
type TCardSectionProps = PropsWithChildren & {
|
|
399
|
-
sx?: Interpolation$1
|
|
400
|
-
onClick?: (e:
|
|
415
|
+
sx?: Interpolation<Theme$1>;
|
|
416
|
+
onClick?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
401
417
|
};
|
|
402
418
|
|
|
403
419
|
/** @jsxImportSource @emotion/react */
|
|
@@ -440,7 +456,7 @@ declare const renderCell: (value: string | number | boolean | null) => _emotion_
|
|
|
440
456
|
|
|
441
457
|
type TMultiViewListProps<Cell extends TCellValues, Row extends TTableRow<Cell>> = TTableProps<Cell, Row> & {
|
|
442
458
|
mode: "table" | "cards";
|
|
443
|
-
cardComponent: (item: Row) =>
|
|
459
|
+
cardComponent: (item: Row) => React.ReactNode;
|
|
444
460
|
};
|
|
445
461
|
|
|
446
462
|
declare const MultiViewList: <Cell extends TCellValues, Row extends TTableRow<Cell>>(props: TMultiViewListProps<Cell, Row>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
@@ -462,16 +478,16 @@ type TCustomRenderProps = {
|
|
|
462
478
|
* @property title: The title of the item. If the renderTitle callback is provided, this will be the result of that callback
|
|
463
479
|
*/
|
|
464
480
|
type TRenderTriggerProps = TCustomRenderProps & {
|
|
465
|
-
icon:
|
|
466
|
-
title:
|
|
481
|
+
icon: React.ReactNode;
|
|
482
|
+
title: React.ReactNode;
|
|
467
483
|
};
|
|
468
484
|
type TTreeItemFunctions = {
|
|
469
485
|
/** A callback to customize how the titles are rendered */
|
|
470
|
-
renderTitle?: (props: TCustomRenderProps) =>
|
|
486
|
+
renderTitle?: (props: TCustomRenderProps) => React.ReactNode;
|
|
471
487
|
/** A callback to customize how the icons are rendered */
|
|
472
|
-
renderIcon?: (props: TCustomRenderProps) =>
|
|
488
|
+
renderIcon?: (props: TCustomRenderProps) => React.ReactNode;
|
|
473
489
|
/** A callback to customize how the content of the items is rendered */
|
|
474
|
-
renderTrigger?: (props: TRenderTriggerProps) =>
|
|
490
|
+
renderTrigger?: (props: TRenderTriggerProps) => React.ReactNode;
|
|
475
491
|
/** A callback executed when an item is focused. An item gets focused when you click on it. Focusing and item will also select it. */
|
|
476
492
|
onFocusItem?: (item: TTreeViewItem) => void;
|
|
477
493
|
/** A callback executed when an item is selected. To select an item, ctrl+click on it. */
|
|
@@ -489,7 +505,7 @@ type TTreeViewProps = TTreeItemFunctions & {
|
|
|
489
505
|
/** Disable multi-selection possibility */
|
|
490
506
|
isMultiSelectionDisabled?: boolean;
|
|
491
507
|
/** Custom styles */
|
|
492
|
-
sx?: Interpolation$1
|
|
508
|
+
sx?: Interpolation<Theme$1>;
|
|
493
509
|
};
|
|
494
510
|
type TUncontrolledTreeViewProps = TTreeViewProps & {
|
|
495
511
|
items: TTreeViewItem[];
|
|
@@ -518,7 +534,7 @@ type TTreeViewItem = TTreeItemFunctions & {
|
|
|
518
534
|
/** A callback to fetch children asynchronously */
|
|
519
535
|
childrenAsync?: () => Promise<TTreeViewItem[]>;
|
|
520
536
|
/** Custom styles */
|
|
521
|
-
sx?: Interpolation$1
|
|
537
|
+
sx?: Interpolation<Theme$1>;
|
|
522
538
|
};
|
|
523
539
|
|
|
524
540
|
/** @jsxImportSource @emotion/react */
|
|
@@ -527,7 +543,7 @@ declare const ControlledTreeView: FC<TControlledTreeViewProps>;
|
|
|
527
543
|
|
|
528
544
|
declare const UncontrolledTreeView: FC<TUncontrolledTreeViewProps>;
|
|
529
545
|
|
|
530
|
-
type
|
|
546
|
+
type TDrawerProps = {
|
|
531
547
|
/** Position of the drawer */
|
|
532
548
|
anchor: "top" | "right" | "bottom" | "left";
|
|
533
549
|
/** Trigger showed when drawer is closed */
|
|
@@ -547,7 +563,8 @@ type DrawerProps = {
|
|
|
547
563
|
/** Trigger hover color */
|
|
548
564
|
triggerHoverColor?: string;
|
|
549
565
|
};
|
|
550
|
-
|
|
566
|
+
|
|
567
|
+
declare const Drawer: ({ anchor, openContent, closedContent, openTrigger, closedTrigger, minOpen, maxOpen, bgColor, triggerHoverColor, }: TDrawerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
551
568
|
|
|
552
569
|
/**
|
|
553
570
|
* Hook to check if the screen is mobile. The default breakpoint is 768px.
|
|
@@ -598,4 +615,4 @@ declare const getHoverColor: (color: string) => string;
|
|
|
598
615
|
*/
|
|
599
616
|
declare const getActiveColor: (color: string) => string;
|
|
600
617
|
|
|
601
|
-
export { Accordion, Button,
|
|
618
|
+
export { Accordion, Button, Card, CardContent, CardFooter, CardHeader, CardIndicators, CardMediaSection, ControlledTreeView, Drawer, Dropdown, IBackgroundColors, ICommonColors, IIndicatorColors, IPalette, IStandardPaletteColor, ITagColors, IThemeContextProps, IThemeContextValue, Indicator, InputField, Modal, MultiSelect, MultiSelectProps, MultiViewList, SingleSelect, SingleSelectProps, Slider, TAccordionProps, TButtonProps, TButtonVariants, TCardSectionProps, TCellValues, TColorScale, TControlledTreeViewProps, TCustomRenderProps, TDrawerProps, TDropdownItem, TDropdownItemProps, TDropdownProps, TIndicatorInstanceProps, TIndicatorProps, TIndicatorVariants, TModalProps, TMultiViewListProps, TRenderTriggerProps, TSliderProps, TTableCell, TTableProps, TTableRow, TTagProps, TTextFieldProps, TThemeMode, TTreeViewItem, TUncontrolledTreeViewProps, TViewState, Table, Tag, ThemeContextProvider, UncontrolledTreeView, darkenColor, defaultDarkPalette, defaultLightPalette, getActiveColor, getContrastColor, getHoverColor, lightenColor, renderCell, styled, transientOptions, useIsMobile, useThemeContext };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kwantis-id3/frontend-library",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.9",
|
|
4
4
|
"description": "Kwantis frontend components collection",
|
|
5
5
|
"scriptsComments": {
|
|
6
6
|
"storybook": "Starts storybook in development mode",
|
|
@@ -42,21 +42,25 @@
|
|
|
42
42
|
},
|
|
43
43
|
"license": "apache-2.0",
|
|
44
44
|
"devDependencies": {
|
|
45
|
+
"@iconify/react": "^5.2.0",
|
|
45
46
|
"@rollup/plugin-commonjs": "^24.0.1",
|
|
46
47
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
47
48
|
"@rollup/plugin-terser": "^0.4.4",
|
|
48
49
|
"@rollup/plugin-typescript": "^11.0.0",
|
|
49
|
-
"@storybook/addon-essentials": "
|
|
50
|
-
"@storybook/addon-interactions": "
|
|
51
|
-
"@storybook/addon-links": "
|
|
52
|
-
"@storybook/
|
|
53
|
-
"@storybook/
|
|
54
|
-
"@storybook/react
|
|
55
|
-
"@storybook/
|
|
50
|
+
"@storybook/addon-essentials": "^8.6.4",
|
|
51
|
+
"@storybook/addon-interactions": "^8.6.4",
|
|
52
|
+
"@storybook/addon-links": "^8.6.4",
|
|
53
|
+
"@storybook/addon-webpack5-compiler-swc": "^2.1.0",
|
|
54
|
+
"@storybook/blocks": "^8.6.4",
|
|
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",
|
|
56
59
|
"@testing-library/jest-dom": "^5.16.5",
|
|
57
60
|
"@testing-library/react": "^16.2.0",
|
|
58
61
|
"@testing-library/user-event": "^14.6.1",
|
|
59
|
-
"@types/react": "^
|
|
62
|
+
"@types/react": "^19.0.10",
|
|
63
|
+
"@types/react-dom": "^19.0.0",
|
|
60
64
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
61
65
|
"@types/tinycolor2": "^1.4.3",
|
|
62
66
|
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
|
@@ -67,23 +71,22 @@
|
|
|
67
71
|
"eslint-config-prettier": "^8.8.0",
|
|
68
72
|
"eslint-plugin-react": "^7.32.2",
|
|
69
73
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
70
|
-
"eslint-plugin-storybook": "^0.
|
|
74
|
+
"eslint-plugin-storybook": "^0.11.4",
|
|
71
75
|
"jsdom": "^23.0.1",
|
|
72
76
|
"prop-types": "15.8.1",
|
|
73
|
-
"react": "18.2.0",
|
|
74
|
-
"react-dom": "18.2.0",
|
|
75
77
|
"rollup": "^3.20.2",
|
|
76
78
|
"rollup-plugin-dts": "^5.3.0",
|
|
77
79
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
78
|
-
"storybook": "
|
|
80
|
+
"storybook": "^8.6.4",
|
|
79
81
|
"ts-node": "^10.9.1",
|
|
80
82
|
"tslib": "^2.5.0",
|
|
81
|
-
"typescript": "^5.
|
|
83
|
+
"typescript": "^5.7.3",
|
|
82
84
|
"vitest": "^3.0.5"
|
|
83
85
|
},
|
|
84
86
|
"peerDependencies": {
|
|
85
87
|
"@tanstack/react-table": "^8.0.0",
|
|
86
|
-
"react": "
|
|
88
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
89
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
87
90
|
},
|
|
88
91
|
"main": "dist/cjs/index.js",
|
|
89
92
|
"module": "dist/esm/index.js",
|
|
@@ -96,8 +99,6 @@
|
|
|
96
99
|
"@emotion/jest": "^11.11.0",
|
|
97
100
|
"@emotion/react": "11.14.0",
|
|
98
101
|
"@emotion/styled": "11.14.0",
|
|
99
|
-
"react-collapsible": "^2.10.0",
|
|
100
|
-
"react-icons-kit": "^2.0.0",
|
|
101
102
|
"react-range": "^1.8.14",
|
|
102
103
|
"react-select": "^5.7.3",
|
|
103
104
|
"tinycolor2": "^1.6.0"
|
|
@@ -114,5 +115,6 @@
|
|
|
114
115
|
"word-wrap@<1.2.4": ">=1.2.4",
|
|
115
116
|
"@babel/traverse@<7.23.2": ">=7.23.2"
|
|
116
117
|
}
|
|
117
|
-
}
|
|
118
|
+
},
|
|
119
|
+
"packageManager": "pnpm@8.15.9+sha512.499434c9d8fdd1a2794ebf4552b3b25c0a633abcee5bb15e7b5de90f32f47b513aca98cd5cfd001c31f0db454bc3804edccd578501e4ca293a6816166bbd9f81"
|
|
118
120
|
}
|
package/changelog.md
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
# v1.0.0-rc.7
|
|
2
|
-
## Minor Changes
|
|
3
|
-
- New Drawer component
|
|
4
|
-
|
|
5
|
-
# v1.0.0-rc.6
|
|
6
|
-
## Minor Changes
|
|
7
|
-
- New TreeView Component
|
|
8
|
-
|
|
9
|
-
## Patch CHanges
|
|
10
|
-
- Buttons hover and active color now use specific utilities.
|
|
11
|
-
- Selects and InputFields disabled prop now changes the appearance of the component slightly.
|
|
12
|
-
|
|
13
|
-
# v1.0.0-rc.5
|
|
14
|
-
## Minor Changes
|
|
15
|
-
- New Accordion Component, more in line with the new UI choices.
|
|
16
|
-
- Dropdown mobile now uses new accordion
|
|
17
|
-
- Buttons now have a size prop
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# v1.0.0-rc.4
|
|
21
|
-
## Minor Changes
|
|
22
|
-
- New Table Component (uses tanstack's `react-table`)
|
|
23
|
-
- New MultiViewList Component (switches between Table view and Cards view)
|
|
24
|
-
|
|
25
|
-
# v1.0.0-rc.3
|
|
26
|
-
## Minor Changes
|
|
27
|
-
- New Card Component
|
|
28
|
-
|
|
29
|
-
# v1.0.0-rc.0
|
|
30
|
-
## Major Changes
|
|
31
|
-
- New Theme Management
|
|
32
|
-
- Theme Switcher in stories
|
|
33
|
-
- New Indicator Component
|
|
34
|
-
- New Tag Component
|
|
35
|
-
- Adapted old components to new theme management
|
|
36
|
-
|
|
37
|
-
# v0.27.2
|
|
38
|
-
## Patch Changes
|
|
39
|
-
- Updated @emotion/react from 11.10.6 to 11.14.0
|
|
40
|
-
- Updated @emotion/styled from 11.10.6 to 11.14.0
|
|
41
|
-
|
|
42
|
-
# v0.27.0
|
|
43
|
-
## Minor Changes
|
|
44
|
-
- The Modal component now doesn't use `setIsOpen` to close itself, but it now calls the `onClose` callback directly. This change was made to allow the user to pass a custom `onClose` callback that can be used to perform some actions before closing the modal.
|
|
45
|
-
- The modal component now accepts 3 new props:
|
|
46
|
-
- `width`: a string that can be used to set the width of the modal. It can be a percentage or a fixed value.
|
|
47
|
-
- `height`: a string that can be used to set the height of the modal. It can be a percentage or a fixed value.
|
|
48
|
-
- `sx`: a prop to pass CSS properties to the dialog element.
|
|
49
|
-
|
|
50
|
-
# v0.26.0
|
|
51
|
-
## Minor Changes
|
|
52
|
-
- The InputField component now accepts all input attributes as props (plus some custom ones)
|
|
53
|
-
|
|
54
|
-
# v0.25.1
|
|
55
|
-
## Patch Changes
|
|
56
|
-
- Fixed InputField padding
|
|
57
|
-
- added step prop to InputField
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
# v0.25.0
|
|
61
|
-
## Minor Changes
|
|
62
|
-
- InputField component now accepts a ref
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
# v0.24.0
|
|
66
|
-
## Minor Changes
|
|
67
|
-
- The onchange callback for InputField component will no longer have a string as a parameter, but an HTML onchange event.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
# v0.23.0
|
|
71
|
-
## Minor Changes
|
|
72
|
-
- Added the `onOpen` callback to the `Modal` component.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
# v0.22.2
|
|
76
|
-
## Patch Changes
|
|
77
|
-
- Modal `onClose` didn't work when closing the modal by updating the `isOpen` prop.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
# v0.22.1
|
|
81
|
-
## Patch Changes
|
|
82
|
-
- InputField font size is now `inherit`
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
# v0.22.0
|
|
86
|
-
## Minor Changes
|
|
87
|
-
- Dropdown Items now accept a isHidden prop
|
|
88
|
-
- Dropdown Items now accept a closeOnClick prop that can be used to close the dropdown when the item is clicked
|
|
89
|
-
|
|
90
|
-
## Patch Changes
|
|
91
|
-
- Fixed input field font family
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
# v0.21.0
|
|
95
|
-
## Minor Changes
|
|
96
|
-
- Now the `ThemeContextProps` interface is exported, so that it can be used to type the `useTheme` hook return value.
|
|
97
|
-
- Refactored the styling of the `Dropdown` component. It's cleaner and more readable now, both in mobile and desktop view.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
# v0.20.3
|
|
101
|
-
## Patch Changes
|
|
102
|
-
- Fixed `isDefaultOpen` prop
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
# v0.20.2
|
|
106
|
-
## Patch Changes
|
|
107
|
-
- Added comments to each prop field in all components to better describe them
|
|
108
|
-
- Added `isDefaultOpen` prop to Accordion component, usable when the component is uncontrolled
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
# v0.20.1
|
|
112
|
-
## Patch Changes
|
|
113
|
-
- Added labels to styled components to better identify them in the DOM
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
# v0.20.0
|
|
117
|
-
## Minor Changes
|
|
118
|
-
- Migrated from `jest` to `vitest` for testing
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
# v0.19.0
|
|
122
|
-
## Minor Changes
|
|
123
|
-
- TextField is now InputField
|
|
124
|
-
- It now accepts a `type` prop, that can be used to customize the input type (e.g. `text`, `password`, `email`, etc.)
|
|
125
|
-
- Not all the input types are supported. The supported ones are:
|
|
126
|
-
- `text`
|
|
127
|
-
- `password`
|
|
128
|
-
- `email`
|
|
129
|
-
- `number`
|
|
130
|
-
- `tel`
|
|
131
|
-
- `url`
|
|
132
|
-
- `search`
|
|
133
|
-
- `date`
|
|
134
|
-
- `time`
|
|
135
|
-
- `datetime-local`
|
|
136
|
-
- `month`
|
|
137
|
-
- `week`
|
|
138
|
-
- `color`
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
# v0.18.2
|
|
142
|
-
## Patch changes
|
|
143
|
-
- Modal now can be closed correctly with `ESC` key
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
# v0.18.1
|
|
147
|
-
## Patch changes
|
|
148
|
-
- Modal now has overflow shown
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
# v0.18.0
|
|
152
|
-
## Minor changes
|
|
153
|
-
- Created the `Modal` component
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
# v0.17.2
|
|
157
|
-
## Patch changes
|
|
158
|
-
- SingleSelect and MultiSelect component now accept a `menuPosition` prop, that can be used to customize the position of the menu (fixed or absolute).
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
# v0.17.1
|
|
162
|
-
## Patch changes
|
|
163
|
-
- Added `type` prop to Button component.
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
# v0.17.0
|
|
167
|
-
## Minor Changes
|
|
168
|
-
- For all input derived components, standard input attributes are now present in the props.
|
|
169
|
-
- For Select and MultiSelect were added:
|
|
170
|
-
- `name`
|
|
171
|
-
- `required`
|
|
172
|
-
- For TextField were added:
|
|
173
|
-
- `name`
|
|
174
|
-
- `required`
|
|
175
|
-
- `pattern`
|
|
176
|
-
- `readOnly`
|
|
177
|
-
- `autoFocus`
|
|
178
|
-
- `list`
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
# v0.16.3
|
|
182
|
-
## Patch changes
|
|
183
|
-
- Fixed the Dropdown component, items were not clicked when in mobile view
|
|
184
|
-
- The html `id` in SingleSelect and MultiSelect components was forwarded to the wrong prop. Now it's forwarded to the `inputId` prop, as it should be.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
# v0.16.2
|
|
188
|
-
## Patch changes
|
|
189
|
-
- Removed padding from Dropdown trigger
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
# v0.16.1
|
|
193
|
-
## Patch changes
|
|
194
|
-
- Exported DropdownItem type
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
# v0.16.0
|
|
198
|
-
## Minor changes
|
|
199
|
-
- Created the `Dropdown` component, that can be used to create multi-level dropdowns.
|
|
200
|
-
- Created its related tests and stories.
|
|
201
|
-
- `Accordion` component now accepts a `customTrigger` prop, that can be used to customize the trigger element.
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
# v0.15.0
|
|
205
|
-
## Minor changes
|
|
206
|
-
- updated the `getColor` function, so that it can now access the theme from a string path (e.g. `primary.contrastText`)
|
|
207
|
-
|
|
208
|
-
Also improved code formatting.
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
# v0.14.2
|
|
212
|
-
## Patch changes
|
|
213
|
-
- Removed invalid not-null assertions in tests and stories
|
|
214
|
-
- `css` prop is now allowed from eslint
|
|
215
|
-
- Updated readme to describe how to avoid FOUC in case of fetching theme from an API
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
# v0.14.1
|
|
219
|
-
## Patch changes
|
|
220
|
-
- Updated storybook to v7.4.6
|
|
221
|
-
- Updated readme
|
|
222
|
-
- Renamed Button and Accordion folders (previously they weren't capitalized)
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
# v0.14.0
|
|
226
|
-
## Minor changes
|
|
227
|
-
- Created the `TextField` component, that can be used to create text inputs.
|
|
228
|
-
- Created its related tests and stories.
|
|
229
|
-
|
|
230
|
-
## Patch changes
|
|
231
|
-
- changed some tests description
|
|
232
|
-
- removed unused imports
|
|
233
|
-
- updated readme to better describe the theming functionalities
|
|
File without changes
|