@kwantis-id3/frontend-library 1.0.0-rc.6 → 1.0.0-rc.8

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 (45) hide show
  1. package/README.md +7 -0
  2. package/dist/esm/index.js +122 -95
  3. package/dist/esm/index.js.map +1 -1
  4. package/dist/esm/types/components/Accordion/Accordion.d.ts +2 -2
  5. package/dist/esm/types/components/Accordion/AccordionInterfaces.d.ts +1 -1
  6. package/dist/esm/types/components/Accordion/index.d.ts +1 -1
  7. package/dist/esm/types/components/Button/Button.d.ts +2 -26
  8. package/dist/esm/types/components/Button/ButtonInterfaces.d.ts +24 -0
  9. package/dist/esm/types/components/Button/ButtonStyled.d.ts +41 -0
  10. package/dist/esm/types/components/Button/index.d.ts +2 -1
  11. package/dist/esm/types/components/Card/CardInterfaces.d.ts +1 -1
  12. package/dist/esm/types/components/Card/index.d.ts +2 -2
  13. package/dist/esm/types/components/Drawer/Drawer.d.ts +3 -0
  14. package/dist/esm/types/components/Drawer/DrawerInterfaces.d.ts +21 -0
  15. package/dist/esm/types/components/Drawer/DrawerStyled.d.ts +25 -0
  16. package/dist/esm/types/components/Drawer/index.d.ts +2 -0
  17. package/dist/esm/types/components/Dropdown/Dropdown.d.ts +2 -43
  18. package/dist/esm/types/components/Dropdown/DropdownInterfaces.d.ts +43 -0
  19. package/dist/esm/types/components/Dropdown/index.d.ts +2 -1
  20. package/dist/esm/types/components/Indicator/index.d.ts +2 -2
  21. package/dist/esm/types/components/InputField/InputField.d.ts +2 -8
  22. package/dist/esm/types/components/InputField/InputFieldInterfaces.d.ts +8 -0
  23. package/dist/esm/types/components/InputField/index.d.ts +2 -1
  24. package/dist/esm/types/components/Modal/Modal.d.ts +3 -19
  25. package/dist/esm/types/components/Modal/ModalInterfaces.d.ts +16 -0
  26. package/dist/esm/types/components/Modal/index.d.ts +2 -2
  27. package/dist/esm/types/components/MultiViewList/MultiViewListInterfaces.d.ts +0 -1
  28. package/dist/esm/types/components/MultiViewList/index.d.ts +1 -1
  29. package/dist/esm/types/components/SelectFilter/index.d.ts +2 -2
  30. package/dist/esm/types/components/Slider/Slider.d.ts +2 -2
  31. package/dist/esm/types/components/Slider/index.d.ts +1 -1
  32. package/dist/esm/types/components/Table/DebouncedInput.d.ts +0 -1
  33. package/dist/esm/types/components/Table/index.d.ts +1 -1
  34. package/dist/esm/types/components/Tag/Tag.d.ts +2 -22
  35. package/dist/esm/types/components/Tag/TagInterfaces.d.ts +22 -0
  36. package/dist/esm/types/components/Tag/TagStyled.d.ts +7 -0
  37. package/dist/esm/types/components/Tag/index.d.ts +2 -1
  38. package/dist/esm/types/components/ThemeContext/ThemeContext.d.ts +2 -2
  39. package/dist/esm/types/components/TreeView/TreeViewInterfaces.d.ts +0 -1
  40. package/dist/esm/types/components/index.d.ts +14 -13
  41. package/dist/esm/types/utils/testing.d.ts +0 -1
  42. package/dist/index.d.ts +79 -40
  43. package/package.json +20 -18
  44. package/changelog.md +0 -229
  45. /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 * as React$1 from 'react';
3
- import React__default, { PropsWithChildren, FC } from 'react';
4
- import { Interpolation, CreateStyled } from '@emotion/styled';
5
- import { Theme, Interpolation as Interpolation$1 } from '@emotion/react';
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 ButtonVariants = "contained" | "outlined" | "text";
9
- type ButtonProps = {
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?: ButtonVariants;
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$1.ReactNode;
29
+ children?: React.ReactNode;
29
30
  };
30
- declare const Button: (props: ButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
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, }: React__default.PropsWithChildren<IThemeContextProps>) => JSX.Element;
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) => React__default.ReactNode;
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: React__default.FC<TAccordionProps>;
169
+ declare const Accordion: FC<TAccordionProps>;
168
170
 
169
- interface TextFieldProps extends React__default.InputHTMLAttributes<HTMLInputElement> {
171
+ declare const InputField: react.ForwardRefExoticComponent<react.InputHTMLAttributes<HTMLInputElement> & {
172
+ containerClassName?: string;
173
+ color?: string;
174
+ sx?: React.CSSProperties;
175
+ } & react.RefAttributes<HTMLInputElement>>;
176
+
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?: React__default.CSSProperties;
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 SliderProps = {
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: SliderProps) => _emotion_react_jsx_runtime.JSX.Element;
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 DropdownItem = {
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?: DropdownItem[];
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 DropdownProps = {
333
+ type TDropdownProps = {
327
334
  /** The content of the dropdown */
328
- content: DropdownItem[];
335
+ content: TDropdownItem[];
329
336
  /** The trigger element of the dropdown. Clicking on this item will open the dropdown */
330
- trigger: React__default.ReactNode;
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
- declare const Dropdown: (props: DropdownProps) => _emotion_react_jsx_runtime.JSX.Element;
347
+ type TDropdownItemProps = TDropdownItem & {
348
+ direction?: string;
349
+ closeBody: () => void;
350
+ };
341
351
 
342
- interface ModalProps {
352
+ declare const Dropdown: (props: TDropdownProps) => _emotion_react_jsx_runtime.JSX.Element;
353
+
354
+ type TModalProps = {
343
355
  /** The content of the modal */
344
- children: React__default.ReactNode;
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?: React__default.CSSProperties;
357
- }
358
- declare const Modal: React__default.FC<ModalProps>;
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<Theme>;
400
- onClick?: (e: React__default.MouseEvent<HTMLElement>) => void;
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) => React__default.ReactNode;
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: React__default.ReactNode;
466
- title: React__default.ReactNode;
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) => React__default.ReactNode;
486
+ renderTitle?: (props: TCustomRenderProps) => React.ReactNode;
471
487
  /** A callback to customize how the icons are rendered */
472
- renderIcon?: (props: TCustomRenderProps) => React__default.ReactNode;
488
+ renderIcon?: (props: TCustomRenderProps) => React.ReactNode;
473
489
  /** A callback to customize how the content of the items is rendered */
474
- renderTrigger?: (props: TRenderTriggerProps) => React__default.ReactNode;
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<Theme>;
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<Theme>;
537
+ sx?: Interpolation<Theme$1>;
522
538
  };
523
539
 
524
540
  /** @jsxImportSource @emotion/react */
@@ -527,6 +543,29 @@ declare const ControlledTreeView: FC<TControlledTreeViewProps>;
527
543
 
528
544
  declare const UncontrolledTreeView: FC<TUncontrolledTreeViewProps>;
529
545
 
546
+ type TDrawerProps = {
547
+ /** Position of the drawer */
548
+ anchor: "top" | "right" | "bottom" | "left";
549
+ /** Trigger showed when drawer is closed */
550
+ closedTrigger?: ReactNode;
551
+ /** Trigger showed when drawer is open */
552
+ openTrigger?: ReactNode;
553
+ /** Component to be rendered when Drawer is open */
554
+ openContent?: ReactNode;
555
+ /** Component to be rendered when Drawer is closed */
556
+ closedContent?: ReactNode;
557
+ /** Min open of the drawer as number of pixels. If not defined the minOpen will be the height of closedContent if present, otherwise 0px */
558
+ minOpen?: number;
559
+ /** Max open of the drawer as number of pixels. If not defined the maxOpen will be the height of openContent with limit at 90vh/vw */
560
+ maxOpen?: number;
561
+ /** Background color */
562
+ bgColor?: string;
563
+ /** Trigger hover color */
564
+ triggerHoverColor?: string;
565
+ };
566
+
567
+ declare const Drawer: ({ anchor, openContent, closedContent, openTrigger, closedTrigger, minOpen, maxOpen, bgColor, triggerHoverColor, }: TDrawerProps) => _emotion_react_jsx_runtime.JSX.Element;
568
+
530
569
  /**
531
570
  * Hook to check if the screen is mobile. The default breakpoint is 768px.
532
571
  * @param {number=} mobileBreakpoint breakpoint width to check against
@@ -576,4 +615,4 @@ declare const getHoverColor: (color: string) => string;
576
615
  */
577
616
  declare const getActiveColor: (color: string) => string;
578
617
 
579
- export { Accordion, Button, ButtonProps, Card, CardContent, CardFooter, CardHeader, CardIndicators, CardMediaSection, ControlledTreeView, Dropdown, DropdownItem, DropdownProps, IBackgroundColors, ICommonColors, IIndicatorColors, IPalette, IStandardPaletteColor, ITagColors, IThemeContextProps, IThemeContextValue, Indicator, InputField, Modal, MultiSelect, MultiSelectProps, MultiViewList, SingleSelect, SingleSelectProps, Slider, SliderProps, TAccordionProps, TCardSectionProps, TCellValues, TColorScale, TControlledTreeViewProps, TCustomRenderProps, TIndicatorProps, TIndicatorVariants, TMultiViewListProps, TTableCell, TTableProps, TTableRow, TTagProps, TThemeMode, TTreeViewItem, TUncontrolledTreeViewProps, TViewState, Table, Tag, ThemeContextProvider, UncontrolledTreeView, darkenColor, defaultDarkPalette, defaultLightPalette, getActiveColor, getContrastColor, getHoverColor, lightenColor, renderCell, styled, transientOptions, useIsMobile, useThemeContext };
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.6",
3
+ "version": "1.0.0-rc.8",
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": "7.4.6",
50
- "@storybook/addon-interactions": "7.4.6",
51
- "@storybook/addon-links": "7.4.6",
52
- "@storybook/blocks": "7.4.6",
53
- "@storybook/react": "7.4.6",
54
- "@storybook/react-webpack5": "7.4.6",
55
- "@storybook/testing-library": "0.2.2",
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": "^18.0.33",
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.6.14",
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": "7.4.6",
80
+ "storybook": "^8.6.4",
79
81
  "ts-node": "^10.9.1",
80
82
  "tslib": "^2.5.0",
81
- "typescript": "^5.0.3",
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": ">= 17.0.2"
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,229 +0,0 @@
1
- # v1.0.0-rc.6
2
- ## Minor Changes
3
- - New TreeView Component
4
-
5
- ## Patch CHanges
6
- - Buttons hover and active color now use specific utilities.
7
- - Selects and InputFields disabled prop now changes the appearance of the component slightly.
8
-
9
- # v1.0.0-rc.5
10
- ## Minor Changes
11
- - New Accordion Component, more in line with the new UI choices.
12
- - Dropdown mobile now uses new accordion
13
- - Buttons now have a size prop
14
-
15
-
16
- # v1.0.0-rc.4
17
- ## Minor Changes
18
- - New Table Component (uses tanstack's `react-table`)
19
- - New MultiViewList Component (switches between Table view and Cards view)
20
-
21
- # v1.0.0-rc.3
22
- ## Minor Changes
23
- - New Card Component
24
-
25
- # v1.0.0-rc.0
26
- ## Major Changes
27
- - New Theme Management
28
- - Theme Switcher in stories
29
- - New Indicator Component
30
- - New Tag Component
31
- - Adapted old components to new theme management
32
-
33
- # v0.27.2
34
- ## Patch Changes
35
- - Updated @emotion/react from 11.10.6 to 11.14.0
36
- - Updated @emotion/styled from 11.10.6 to 11.14.0
37
-
38
- # v0.27.0
39
- ## Minor Changes
40
- - 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.
41
- - The modal component now accepts 3 new props:
42
- - `width`: a string that can be used to set the width of the modal. It can be a percentage or a fixed value.
43
- - `height`: a string that can be used to set the height of the modal. It can be a percentage or a fixed value.
44
- - `sx`: a prop to pass CSS properties to the dialog element.
45
-
46
- # v0.26.0
47
- ## Minor Changes
48
- - The InputField component now accepts all input attributes as props (plus some custom ones)
49
-
50
- # v0.25.1
51
- ## Patch Changes
52
- - Fixed InputField padding
53
- - added step prop to InputField
54
-
55
- &nbsp;
56
- # v0.25.0
57
- ## Minor Changes
58
- - InputField component now accepts a ref
59
-
60
- &nbsp;
61
- # v0.24.0
62
- ## Minor Changes
63
- - The onchange callback for InputField component will no longer have a string as a parameter, but an HTML onchange event.
64
-
65
- &nbsp;
66
- # v0.23.0
67
- ## Minor Changes
68
- - Added the `onOpen` callback to the `Modal` component.
69
-
70
- &nbsp;
71
- # v0.22.2
72
- ## Patch Changes
73
- - Modal `onClose` didn't work when closing the modal by updating the `isOpen` prop.
74
-
75
- &nbsp;
76
- # v0.22.1
77
- ## Patch Changes
78
- - InputField font size is now `inherit`
79
-
80
- &nbsp;
81
- # v0.22.0
82
- ## Minor Changes
83
- - Dropdown Items now accept a isHidden prop
84
- - Dropdown Items now accept a closeOnClick prop that can be used to close the dropdown when the item is clicked
85
-
86
- ## Patch Changes
87
- - Fixed input field font family
88
-
89
- &nbsp;
90
- # v0.21.0
91
- ## Minor Changes
92
- - Now the `ThemeContextProps` interface is exported, so that it can be used to type the `useTheme` hook return value.
93
- - Refactored the styling of the `Dropdown` component. It's cleaner and more readable now, both in mobile and desktop view.
94
-
95
- &nbsp;
96
- # v0.20.3
97
- ## Patch Changes
98
- - Fixed `isDefaultOpen` prop
99
-
100
- &nbsp;
101
- # v0.20.2
102
- ## Patch Changes
103
- - Added comments to each prop field in all components to better describe them
104
- - Added `isDefaultOpen` prop to Accordion component, usable when the component is uncontrolled
105
-
106
- &nbsp;
107
- # v0.20.1
108
- ## Patch Changes
109
- - Added labels to styled components to better identify them in the DOM
110
-
111
- &nbsp;
112
- # v0.20.0
113
- ## Minor Changes
114
- - Migrated from `jest` to `vitest` for testing
115
-
116
- &nbsp;
117
- # v0.19.0
118
- ## Minor Changes
119
- - TextField is now InputField
120
- - It now accepts a `type` prop, that can be used to customize the input type (e.g. `text`, `password`, `email`, etc.)
121
- - Not all the input types are supported. The supported ones are:
122
- - `text`
123
- - `password`
124
- - `email`
125
- - `number`
126
- - `tel`
127
- - `url`
128
- - `search`
129
- - `date`
130
- - `time`
131
- - `datetime-local`
132
- - `month`
133
- - `week`
134
- - `color`
135
-
136
- &nbsp;
137
- # v0.18.2
138
- ## Patch changes
139
- - Modal now can be closed correctly with `ESC` key
140
-
141
- &nbsp;
142
- # v0.18.1
143
- ## Patch changes
144
- - Modal now has overflow shown
145
-
146
- &nbsp;
147
- # v0.18.0
148
- ## Minor changes
149
- - Created the `Modal` component
150
-
151
- &nbsp;
152
- # v0.17.2
153
- ## Patch changes
154
- - SingleSelect and MultiSelect component now accept a `menuPosition` prop, that can be used to customize the position of the menu (fixed or absolute).
155
-
156
- &nbsp;
157
- # v0.17.1
158
- ## Patch changes
159
- - Added `type` prop to Button component.
160
-
161
- &nbsp;
162
- # v0.17.0
163
- ## Minor Changes
164
- - For all input derived components, standard input attributes are now present in the props.
165
- - For Select and MultiSelect were added:
166
- - `name`
167
- - `required`
168
- - For TextField were added:
169
- - `name`
170
- - `required`
171
- - `pattern`
172
- - `readOnly`
173
- - `autoFocus`
174
- - `list`
175
-
176
- &nbsp;
177
- # v0.16.3
178
- ## Patch changes
179
- - Fixed the Dropdown component, items were not clicked when in mobile view
180
- - 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.
181
-
182
- &nbsp;
183
- # v0.16.2
184
- ## Patch changes
185
- - Removed padding from Dropdown trigger
186
-
187
- &nbsp;
188
- # v0.16.1
189
- ## Patch changes
190
- - Exported DropdownItem type
191
-
192
- &nbsp;
193
- # v0.16.0
194
- ## Minor changes
195
- - Created the `Dropdown` component, that can be used to create multi-level dropdowns.
196
- - Created its related tests and stories.
197
- - `Accordion` component now accepts a `customTrigger` prop, that can be used to customize the trigger element.
198
-
199
- &nbsp;
200
- # v0.15.0
201
- ## Minor changes
202
- - updated the `getColor` function, so that it can now access the theme from a string path (e.g. `primary.contrastText`)
203
-
204
- Also improved code formatting.
205
-
206
- &nbsp;
207
- # v0.14.2
208
- ## Patch changes
209
- - Removed invalid not-null assertions in tests and stories
210
- - `css` prop is now allowed from eslint
211
- - Updated readme to describe how to avoid FOUC in case of fetching theme from an API
212
-
213
- &nbsp;
214
- # v0.14.1
215
- ## Patch changes
216
- - Updated storybook to v7.4.6
217
- - Updated readme
218
- - Renamed Button and Accordion folders (previously they weren't capitalized)
219
-
220
- &nbsp;
221
- # v0.14.0
222
- ## Minor changes
223
- - Created the `TextField` component, that can be used to create text inputs.
224
- - Created its related tests and stories.
225
-
226
- ## Patch changes
227
- - changed some tests description
228
- - removed unused imports
229
- - updated readme to better describe the theming functionalities