@kwantis-id3/frontend-library 1.0.0-rc.4 → 1.0.0-rc.41

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 (75) hide show
  1. package/README.md +6 -332
  2. package/dist/esm/index.js +344 -136
  3. package/dist/esm/index.js.map +1 -1
  4. package/dist/esm/types/components/Accordion/Accordion.d.ts +3 -37
  5. package/dist/esm/types/components/Accordion/AccordionInterfaces.d.ts +21 -0
  6. package/dist/esm/types/components/Accordion/AccordionStyled.d.ts +20 -9
  7. package/dist/esm/types/components/Accordion/index.d.ts +4 -1
  8. package/dist/esm/types/components/Button/Button.d.ts +2 -24
  9. package/dist/esm/types/components/Button/ButtonInterfaces.d.ts +24 -0
  10. package/dist/esm/types/components/Button/ButtonStyled.d.ts +41 -0
  11. package/dist/esm/types/components/Button/index.d.ts +2 -1
  12. package/dist/esm/types/components/Card/CardInterfaces.d.ts +1 -1
  13. package/dist/esm/types/components/Card/index.d.ts +2 -2
  14. package/dist/esm/types/components/Checkbox/Checkbox.d.ts +3 -0
  15. package/dist/esm/types/components/Checkbox/CheckboxInterfaces.d.ts +24 -0
  16. package/dist/esm/types/components/Checkbox/CheckboxStyled.d.ts +32 -0
  17. package/dist/esm/types/components/Checkbox/index.d.ts +2 -0
  18. package/dist/esm/types/components/DataGrid/DataGrid.d.ts +3 -0
  19. package/dist/esm/types/components/DataGrid/DataGridInterfaces.d.ts +9 -0
  20. package/dist/esm/types/components/DataGrid/index.d.ts +2 -0
  21. package/dist/esm/types/components/Drawer/Drawer.d.ts +3 -0
  22. package/dist/esm/types/components/Drawer/DrawerInterfaces.d.ts +35 -0
  23. package/dist/esm/types/components/Drawer/DrawerStyled.d.ts +28 -0
  24. package/dist/esm/types/components/Drawer/index.d.ts +2 -0
  25. package/dist/esm/types/components/Dropdown/Dropdown.d.ts +2 -43
  26. package/dist/esm/types/components/Dropdown/DropdownInterfaces.d.ts +52 -0
  27. package/dist/esm/types/components/Dropdown/DropdownStyled.d.ts +1 -0
  28. package/dist/esm/types/components/Dropdown/index.d.ts +2 -1
  29. package/dist/esm/types/components/Indicator/IndicatorInterfaces.d.ts +1 -1
  30. package/dist/esm/types/components/Indicator/NeutralIndicator.d.ts +3 -0
  31. package/dist/esm/types/components/Indicator/index.d.ts +2 -2
  32. package/dist/esm/types/components/InputField/InputField.d.ts +3 -11
  33. package/dist/esm/types/components/InputField/InputFieldInterfaces.d.ts +9 -0
  34. package/dist/esm/types/components/InputField/index.d.ts +2 -1
  35. package/dist/esm/types/components/Modal/Modal.d.ts +3 -19
  36. package/dist/esm/types/components/Modal/ModalInterfaces.d.ts +16 -0
  37. package/dist/esm/types/components/Modal/index.d.ts +2 -2
  38. package/dist/esm/types/components/MultiViewList/MultiViewGrid.d.ts +5 -0
  39. package/dist/esm/types/components/MultiViewList/MultiViewList.d.ts +1 -0
  40. package/dist/esm/types/components/MultiViewList/MultiViewListInterfaces.d.ts +13 -2
  41. package/dist/esm/types/components/MultiViewList/MultiViewListStyled.d.ts +3 -0
  42. package/dist/esm/types/components/MultiViewList/index.d.ts +2 -1
  43. package/dist/esm/types/components/SelectFilter/index.d.ts +2 -2
  44. package/dist/esm/types/components/Slider/Slider.d.ts +2 -2
  45. package/dist/esm/types/components/Slider/index.d.ts +1 -1
  46. package/dist/esm/types/components/Switch/Switch.d.ts +2 -0
  47. package/dist/esm/types/components/Switch/SwitchInterfaces.d.ts +17 -0
  48. package/dist/esm/types/components/Switch/SwitchStyled.d.ts +35 -0
  49. package/dist/esm/types/components/Switch/index.d.ts +2 -0
  50. package/dist/esm/types/components/Table/DebouncedFilter.d.ts +1 -2
  51. package/dist/esm/types/components/Table/DebouncedInput.d.ts +0 -1
  52. package/dist/esm/types/components/Table/index.d.ts +1 -1
  53. package/dist/esm/types/components/Tag/Tag.d.ts +2 -22
  54. package/dist/esm/types/components/Tag/TagInterfaces.d.ts +22 -0
  55. package/dist/esm/types/components/Tag/TagStyled.d.ts +7 -0
  56. package/dist/esm/types/components/Tag/index.d.ts +2 -1
  57. package/dist/esm/types/components/ThemeContext/ThemeContext.d.ts +4 -3
  58. package/dist/esm/types/components/ThemeContext/ThemeInterfaces.d.ts +2 -0
  59. package/dist/esm/types/components/TreeView/ControlledTreeView.d.ts +4 -0
  60. package/dist/esm/types/components/TreeView/TreeUtils.d.ts +22 -0
  61. package/dist/esm/types/components/TreeView/TreeViewInterfaces.d.ts +83 -0
  62. package/dist/esm/types/components/TreeView/TreeViewSyled.d.ts +24 -0
  63. package/dist/esm/types/components/TreeView/UncontrolledTreeView.d.ts +3 -0
  64. package/dist/esm/types/components/TreeView/index.d.ts +3 -0
  65. package/dist/esm/types/components/index.d.ts +17 -12
  66. package/dist/esm/types/utils/colors.d.ts +12 -2
  67. package/dist/esm/types/utils/index.d.ts +4 -7
  68. package/dist/esm/types/utils/isMobile.d.ts +1 -2
  69. package/dist/esm/types/utils/testing.d.ts +21 -1
  70. package/dist/index.d.ts +294 -67
  71. package/package.json +29 -24
  72. package/changelog.md +0 -197
  73. package/dist/esm/types/utils/styled.d.ts +0 -2
  74. /package/dist/esm/types/components/InputField/{StyledInputField.d.ts → InputFieldStyled.d.ts} +0 -0
  75. /package/dist/esm/types/components/Modal/{StyledModal.d.ts → ModalStyled.d.ts} +0 -0
package/changelog.md DELETED
@@ -1,197 +0,0 @@
1
- # v0.27.2
2
- ## Patch Changes
3
- - Updated @emotion/react from 11.10.6 to 11.14.0
4
- - Updated @emotion/styled from 11.10.6 to 11.14.0
5
-
6
- # v0.27.0
7
- ## Minor Changes
8
- - 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.
9
- - The modal component now accepts 3 new props:
10
- - `width`: a string that can be used to set the width of the modal. It can be a percentage or a fixed value.
11
- - `height`: a string that can be used to set the height of the modal. It can be a percentage or a fixed value.
12
- - `sx`: a prop to pass CSS properties to the dialog element.
13
-
14
- # v0.26.0
15
- ## Minor Changes
16
- - The InputField component now accepts all input attributes as props (plus some custom ones)
17
-
18
- # v0.25.1
19
- ## Patch Changes
20
- - Fixed InputField padding
21
- - added step prop to InputField
22
-
23
-  
24
- # v0.25.0
25
- ## Minor Changes
26
- - InputField component now accepts a ref
27
-
28
-  
29
- # v0.24.0
30
- ## Minor Changes
31
- - The onchange callback for InputField component will no longer have a string as a parameter, but an HTML onchange event.
32
-
33
-  
34
- # v0.23.0
35
- ## Minor Changes
36
- - Added the `onOpen` callback to the `Modal` component.
37
-
38
-  
39
- # v0.22.2
40
- ## Patch Changes
41
- - Modal `onClose` didn't work when closing the modal by updating the `isOpen` prop.
42
-
43
-  
44
- # v0.22.1
45
- ## Patch Changes
46
- - InputField font size is now `inherit`
47
-
48
-  
49
- # v0.22.0
50
- ## Minor Changes
51
- - Dropdown Items now accept a isHidden prop
52
- - Dropdown Items now accept a closeOnClick prop that can be used to close the dropdown when the item is clicked
53
-
54
- ## Patch Changes
55
- - Fixed input field font family
56
-
57
-  
58
- # v0.21.0
59
- ## Minor Changes
60
- - Now the `ThemeContextProps` interface is exported, so that it can be used to type the `useTheme` hook return value.
61
- - Refactored the styling of the `Dropdown` component. It's cleaner and more readable now, both in mobile and desktop view.
62
-
63
-  
64
- # v0.20.3
65
- ## Patch Changes
66
- - Fixed `isDefaultOpen` prop
67
-
68
-  
69
- # v0.20.2
70
- ## Patch Changes
71
- - Added comments to each prop field in all components to better describe them
72
- - Added `isDefaultOpen` prop to Accordion component, usable when the component is uncontrolled
73
-
74
-  
75
- # v0.20.1
76
- ## Patch Changes
77
- - Added labels to styled components to better identify them in the DOM
78
-
79
-  
80
- # v0.20.0
81
- ## Minor Changes
82
- - Migrated from `jest` to `vitest` for testing
83
-
84
-  
85
- # v0.19.0
86
- ## Minor Changes
87
- - TextField is now InputField
88
- - It now accepts a `type` prop, that can be used to customize the input type (e.g. `text`, `password`, `email`, etc.)
89
- - Not all the input types are supported. The supported ones are:
90
- - `text`
91
- - `password`
92
- - `email`
93
- - `number`
94
- - `tel`
95
- - `url`
96
- - `search`
97
- - `date`
98
- - `time`
99
- - `datetime-local`
100
- - `month`
101
- - `week`
102
- - `color`
103
-
104
-  
105
- # v0.18.2
106
- ## Patch changes
107
- - Modal now can be closed correctly with `ESC` key
108
-
109
-  
110
- # v0.18.1
111
- ## Patch changes
112
- - Modal now has overflow shown
113
-
114
-  
115
- # v0.18.0
116
- ## Minor changes
117
- - Created the `Modal` component
118
-
119
-  
120
- # v0.17.2
121
- ## Patch changes
122
- - SingleSelect and MultiSelect component now accept a `menuPosition` prop, that can be used to customize the position of the menu (fixed or absolute).
123
-
124
-  
125
- # v0.17.1
126
- ## Patch changes
127
- - Added `type` prop to Button component.
128
-
129
-  
130
- # v0.17.0
131
- ## Minor Changes
132
- - For all input derived components, standard input attributes are now present in the props.
133
- - For Select and MultiSelect were added:
134
- - `name`
135
- - `required`
136
- - For TextField were added:
137
- - `name`
138
- - `required`
139
- - `pattern`
140
- - `readOnly`
141
- - `autoFocus`
142
- - `list`
143
-
144
-  
145
- # v0.16.3
146
- ## Patch changes
147
- - Fixed the Dropdown component, items were not clicked when in mobile view
148
- - 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.
149
-
150
-  
151
- # v0.16.2
152
- ## Patch changes
153
- - Removed padding from Dropdown trigger
154
-
155
-  
156
- # v0.16.1
157
- ## Patch changes
158
- - Exported DropdownItem type
159
-
160
-  
161
- # v0.16.0
162
- ## Minor changes
163
- - Created the `Dropdown` component, that can be used to create multi-level dropdowns.
164
- - Created its related tests and stories.
165
- - `Accordion` component now accepts a `customTrigger` prop, that can be used to customize the trigger element.
166
-
167
-  
168
- # v0.15.0
169
- ## Minor changes
170
- - updated the `getColor` function, so that it can now access the theme from a string path (e.g. `primary.contrastText`)
171
-
172
- Also improved code formatting.
173
-
174
-  
175
- # v0.14.2
176
- ## Patch changes
177
- - Removed invalid not-null assertions in tests and stories
178
- - `css` prop is now allowed from eslint
179
- - Updated readme to describe how to avoid FOUC in case of fetching theme from an API
180
-
181
-  
182
- # v0.14.1
183
- ## Patch changes
184
- - Updated storybook to v7.4.6
185
- - Updated readme
186
- - Renamed Button and Accordion folders (previously they weren't capitalized)
187
-
188
-  
189
- # v0.14.0
190
- ## Minor changes
191
- - Created the `TextField` component, that can be used to create text inputs.
192
- - Created its related tests and stories.
193
-
194
- ## Patch changes
195
- - changed some tests description
196
- - removed unused imports
197
- - updated readme to better describe the theming functionalities
@@ -1,2 +0,0 @@
1
- import { CreateStyled } from "@emotion/styled";
2
- export declare const styled: CreateStyled;