fictoan-react 1.3.2 → 1.3.4

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 (191) hide show
  1. package/CHANGELOG.md +806 -0
  2. package/dist/UseClickOutside-AZnVEg3i.js +0 -1
  3. package/dist/UseClickOutside-ILhCRGTV.cjs +0 -1
  4. package/dist/components/Accordion/Accordion.cjs +1 -2
  5. package/dist/components/Accordion/Accordion.js +82 -26
  6. package/dist/components/Accordion/index.cjs +0 -1
  7. package/dist/components/Accordion/index.js +0 -1
  8. package/dist/components/Badge/Badge.cjs +0 -1
  9. package/dist/components/Badge/Badge.js +0 -1
  10. package/dist/components/Badge/index.cjs +0 -1
  11. package/dist/components/Badge/index.js +0 -1
  12. package/dist/components/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.cjs +0 -1
  13. package/dist/components/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.js +0 -1
  14. package/dist/components/Breadcrumbs/Breadcrumbs/Breadcrumbs.cjs +0 -1
  15. package/dist/components/Breadcrumbs/Breadcrumbs/Breadcrumbs.js +0 -1
  16. package/dist/components/Breadcrumbs/index.cjs +0 -1
  17. package/dist/components/Breadcrumbs/index.js +0 -1
  18. package/dist/components/Button/Button.cjs +0 -1
  19. package/dist/components/Button/Button.js +0 -1
  20. package/dist/components/Button/index.cjs +0 -1
  21. package/dist/components/Button/index.js +0 -1
  22. package/dist/components/Callout/Callout.cjs +0 -1
  23. package/dist/components/Callout/Callout.js +0 -1
  24. package/dist/components/Callout/index.cjs +0 -1
  25. package/dist/components/Callout/index.js +0 -1
  26. package/dist/components/Card/Card.cjs +0 -1
  27. package/dist/components/Card/Card.js +0 -1
  28. package/dist/components/Card/index.cjs +0 -1
  29. package/dist/components/Card/index.js +0 -1
  30. package/dist/components/CodeBlock/CodeBlock.cjs +1 -2
  31. package/dist/components/CodeBlock/CodeBlock.js +92 -755
  32. package/dist/components/CodeBlock/index.cjs +1 -2
  33. package/dist/components/CodeBlock/index.js +0 -2
  34. package/dist/components/ContentWrapper/ContentWrapper.cjs +0 -1
  35. package/dist/components/ContentWrapper/ContentWrapper.js +0 -1
  36. package/dist/components/ContentWrapper/index.cjs +0 -1
  37. package/dist/components/ContentWrapper/index.js +0 -1
  38. package/dist/components/Divider/Divider.cjs +0 -1
  39. package/dist/components/Divider/Divider.js +0 -1
  40. package/dist/components/Divider/index.cjs +0 -1
  41. package/dist/components/Divider/index.js +0 -1
  42. package/dist/components/Drawer/Drawer.cjs +0 -1
  43. package/dist/components/Drawer/Drawer.js +0 -1
  44. package/dist/components/Drawer/index.cjs +0 -1
  45. package/dist/components/Drawer/index.js +0 -1
  46. package/dist/components/Element/Element.cjs +0 -1
  47. package/dist/components/Element/Element.js +0 -1
  48. package/dist/components/Element/Tags.cjs +0 -1
  49. package/dist/components/Element/Tags.js +0 -1
  50. package/dist/components/Element/constants.cjs +0 -1
  51. package/dist/components/Element/constants.js +1 -2
  52. package/dist/components/Element/index.cjs +0 -1
  53. package/dist/components/Element/index.js +0 -1
  54. package/dist/components/Form/BaseInputComponent/BaseInputComponent.cjs +0 -1
  55. package/dist/components/Form/BaseInputComponent/BaseInputComponent.js +0 -1
  56. package/dist/components/Form/BaseInputComponent/constants.cjs +0 -1
  57. package/dist/components/Form/BaseInputComponent/constants.js +1 -2
  58. package/dist/components/Form/Checkbox/Checkbox.cjs +0 -1
  59. package/dist/components/Form/Checkbox/Checkbox.js +0 -1
  60. package/dist/components/Form/Checkbox/Switch.cjs +0 -1
  61. package/dist/components/Form/Checkbox/Switch.js +0 -1
  62. package/dist/components/Form/Form/Form.cjs +0 -1
  63. package/dist/components/Form/Form/Form.js +0 -1
  64. package/dist/components/Form/Form/FormGenerator.cjs +0 -1
  65. package/dist/components/Form/Form/FormGenerator.js +0 -1
  66. package/dist/components/Form/FormItem/FormItem.cjs +0 -1
  67. package/dist/components/Form/FormItem/FormItem.js +0 -1
  68. package/dist/components/Form/FormItemGroup/FormItemGroup.cjs +0 -1
  69. package/dist/components/Form/FormItemGroup/FormItemGroup.js +0 -1
  70. package/dist/components/Form/InputField/FileUpload.cjs +0 -1
  71. package/dist/components/Form/InputField/FileUpload.js +0 -1
  72. package/dist/components/Form/InputField/InputField.cjs +0 -1
  73. package/dist/components/Form/InputField/InputField.js +0 -1
  74. package/dist/components/Form/InputLabel/InputLabel.cjs +0 -1
  75. package/dist/components/Form/InputLabel/InputLabel.js +0 -1
  76. package/dist/components/Form/PinInputField/PinInputField.cjs +0 -1
  77. package/dist/components/Form/PinInputField/PinInputField.js +0 -1
  78. package/dist/components/Form/PinInputField/index.cjs +0 -1
  79. package/dist/components/Form/PinInputField/index.js +0 -1
  80. package/dist/components/Form/RadioButton/RadioButton.cjs +0 -1
  81. package/dist/components/Form/RadioButton/RadioButton.js +0 -1
  82. package/dist/components/Form/RadioButton/RadioGroup.cjs +0 -1
  83. package/dist/components/Form/RadioButton/RadioGroup.js +0 -1
  84. package/dist/components/Form/RadioButton/RadioTabGroup.cjs +0 -1
  85. package/dist/components/Form/RadioButton/RadioTabGroup.js +0 -1
  86. package/dist/components/Form/RadioButton/constants.cjs +0 -1
  87. package/dist/components/Form/RadioButton/constants.js +1 -2
  88. package/dist/components/Form/Range/Range.cjs +0 -1
  89. package/dist/components/Form/Range/Range.js +0 -1
  90. package/dist/components/Form/Range/index.cjs +0 -1
  91. package/dist/components/Form/Range/index.js +0 -1
  92. package/dist/components/Form/Select/Select.cjs +0 -1
  93. package/dist/components/Form/Select/Select.js +0 -1
  94. package/dist/components/Form/Select/SelectWithSearch.cjs +0 -1
  95. package/dist/components/Form/Select/SelectWithSearch.js +0 -1
  96. package/dist/components/Form/Select/constants.cjs +0 -1
  97. package/dist/components/Form/Select/constants.js +1 -2
  98. package/dist/components/Form/TextArea/TextArea.cjs +0 -1
  99. package/dist/components/Form/TextArea/TextArea.js +0 -1
  100. package/dist/components/Form/index.cjs +0 -1
  101. package/dist/components/Form/index.js +0 -1
  102. package/dist/components/Meter/Meter.cjs +0 -1
  103. package/dist/components/Meter/Meter.js +0 -1
  104. package/dist/components/Meter/index.cjs +0 -1
  105. package/dist/components/Meter/index.js +0 -1
  106. package/dist/components/Notification/NotificationItem/NotificationItem.cjs +0 -1
  107. package/dist/components/Notification/NotificationItem/NotificationItem.js +0 -1
  108. package/dist/components/Notification/NotificationsWrapper/NotificationsWrapper.cjs +0 -1
  109. package/dist/components/Notification/NotificationsWrapper/NotificationsWrapper.js +0 -1
  110. package/dist/components/Notification/index.cjs +0 -1
  111. package/dist/components/Notification/index.js +0 -1
  112. package/dist/components/OptionCard/OptionCard.cjs +0 -1
  113. package/dist/components/OptionCard/OptionCard.js +0 -1
  114. package/dist/components/OptionCard/index.cjs +0 -1
  115. package/dist/components/OptionCard/index.js +0 -1
  116. package/dist/components/Portion/Portion.cjs +0 -1
  117. package/dist/components/Portion/Portion.js +0 -1
  118. package/dist/components/Portion/index.cjs +0 -1
  119. package/dist/components/Portion/index.js +0 -1
  120. package/dist/components/Portion/types.cjs +0 -1
  121. package/dist/components/Portion/types.js +1 -2
  122. package/dist/components/ProgressBar/ProgressBar.cjs +0 -1
  123. package/dist/components/ProgressBar/ProgressBar.js +0 -1
  124. package/dist/components/ProgressBar/index.cjs +0 -1
  125. package/dist/components/ProgressBar/index.js +0 -1
  126. package/dist/components/Row/Row.cjs +0 -1
  127. package/dist/components/Row/Row.js +0 -1
  128. package/dist/components/Row/index.cjs +0 -1
  129. package/dist/components/Row/index.js +0 -1
  130. package/dist/components/Sidebar/SidebarFooter/SidebarFooter.cjs +0 -1
  131. package/dist/components/Sidebar/SidebarFooter/SidebarFooter.js +0 -1
  132. package/dist/components/Sidebar/SidebarHeader/SidebarHeader.cjs +0 -1
  133. package/dist/components/Sidebar/SidebarHeader/SidebarHeader.js +0 -1
  134. package/dist/components/Sidebar/SidebarItem/SidebarItem.cjs +0 -1
  135. package/dist/components/Sidebar/SidebarItem/SidebarItem.js +0 -1
  136. package/dist/components/Sidebar/SidebarItemIcon/SidebarItemIcon.cjs +0 -1
  137. package/dist/components/Sidebar/SidebarItemIcon/SidebarItemIcon.js +0 -1
  138. package/dist/components/Sidebar/SidebarItemText/SidebarItemText.cjs +0 -1
  139. package/dist/components/Sidebar/SidebarItemText/SidebarItemText.js +0 -1
  140. package/dist/components/Sidebar/SidebarWrapper/SidebarWrapper.cjs +0 -1
  141. package/dist/components/Sidebar/SidebarWrapper/SidebarWrapper.js +0 -1
  142. package/dist/components/Sidebar/index.cjs +0 -1
  143. package/dist/components/Sidebar/index.js +0 -1
  144. package/dist/components/Spinner/Spinner.cjs +0 -1
  145. package/dist/components/Spinner/Spinner.js +0 -1
  146. package/dist/components/Spinner/index.cjs +0 -1
  147. package/dist/components/Spinner/index.js +0 -1
  148. package/dist/components/Table/Table.cjs +0 -1
  149. package/dist/components/Table/Table.js +0 -1
  150. package/dist/components/Table/TablePagination/TablePagination.cjs +0 -1
  151. package/dist/components/Table/TablePagination/TablePagination.js +0 -1
  152. package/dist/components/Table/index.cjs +0 -1
  153. package/dist/components/Table/index.js +0 -1
  154. package/dist/components/Tabs/Tabs.cjs +0 -1
  155. package/dist/components/Tabs/Tabs.js +0 -1
  156. package/dist/components/Tabs/index.cjs +0 -1
  157. package/dist/components/Tabs/index.js +0 -1
  158. package/dist/components/ThemeProvider/ThemeProvider.cjs +1 -2
  159. package/dist/components/ThemeProvider/ThemeProvider.d.ts +6 -2
  160. package/dist/components/ThemeProvider/ThemeProvider.js +80 -68
  161. package/dist/components/ThemeProvider/index.cjs +1 -2
  162. package/dist/components/ThemeProvider/index.d.ts +1 -1
  163. package/dist/components/ThemeProvider/index.js +2 -4
  164. package/dist/components/Toast/ToastItem/ToastItem.cjs +0 -1
  165. package/dist/components/Toast/ToastItem/ToastItem.js +0 -1
  166. package/dist/components/Toast/ToastsWrapper/ToastsWrapper.cjs +0 -1
  167. package/dist/components/Toast/ToastsWrapper/ToastsWrapper.js +0 -1
  168. package/dist/components/Toast/index.cjs +0 -1
  169. package/dist/components/Toast/index.js +0 -1
  170. package/dist/components/Typography/Heading.cjs +0 -1
  171. package/dist/components/Typography/Heading.js +0 -1
  172. package/dist/components/Typography/Text.cjs +0 -1
  173. package/dist/components/Typography/Text.js +0 -1
  174. package/dist/components/Typography/index.cjs +0 -1
  175. package/dist/components/Typography/index.js +0 -1
  176. package/dist/components/index.cjs +1 -2
  177. package/dist/components/index.d.ts +4 -4
  178. package/dist/components/index.js +2 -5
  179. package/dist/index.cjs +1 -2
  180. package/dist/index.css +1 -1
  181. package/dist/index.d.ts +5 -6
  182. package/dist/index.js +2 -7
  183. package/package.json +4 -4
  184. package/dist/components/CodeBlock/prism.cjs +0 -2
  185. package/dist/components/CodeBlock/prism.d.ts +0 -2
  186. package/dist/components/CodeBlock/prism.js +0 -5
  187. package/dist/components/ThemeProvider/types.cjs +0 -2
  188. package/dist/components/ThemeProvider/types.d.ts +0 -7
  189. package/dist/components/ThemeProvider/types.js +0 -2
  190. package/dist/prism-0Wl-n71z.js +0 -1272
  191. package/dist/prism-TTOBEoZv.cjs +0 -2
package/CHANGELOG.md ADDED
@@ -0,0 +1,806 @@
1
+ # CHANGELOG
2
+
3
+ ## 1.3.4
4
+
5
+ - Fix wrong theme values for `kbd`
6
+
7
+ ## 1.3.1
8
+
9
+ - Remove exported themes to fallback to original CSS styling
10
+ - Update rendering logic for `CodeBlock`
11
+
12
+ ## 1.3.0
13
+
14
+ - Remove `prism-react-renderer` dev dependency for CodeBlock
15
+ - Use `prism` with exported themes
16
+ - Fix `Accordion` toggle issue
17
+ - Update `vite.config.umd.js` to build a UMD version
18
+
19
+ ## 1.2.9
20
+
21
+ - Update `ThemeProvider` to expose `setTheme` and `useTheme` functionality in any component via local storage
22
+ - `const { theme, setTheme } = useTheme();`
23
+ - Remove the dependency of creating `RootClientSideLayout`
24
+ - Add a default theme for `CodeBlock`
25
+ - Update `vite.config.js` to retain `use client;` for Next 14+ support
26
+
27
+ ## 1.2.7
28
+
29
+ - Add `button-font` for each `kind` too
30
+
31
+ ## 1.2.6
32
+
33
+ - Fix `Button` active theme bug
34
+ - Add `button-font` via theme
35
+
36
+ ## 1.2.5
37
+
38
+ - Fix text colour for lists
39
+ - Add `height` prop for `Divider`
40
+
41
+ ## 1.2.4
42
+
43
+ - Add line numbers to `CodeBlock` component with `showLineNumbers` prop
44
+ - Add better token support
45
+ - Fix style overrides for `CodeBlock` component
46
+
47
+ ## 1.2.3
48
+
49
+ - Remove `as` prop from `Heading`, so you can now use `Heading1`, `Heading2` etc
50
+
51
+ ## 1.2.2
52
+
53
+ - Tweak `Range` styles
54
+
55
+ ## 1.2.1
56
+
57
+ - Add accessibility improvements for `Breadcrumbs`, and `Badge`
58
+
59
+ ## 1.2.0
60
+
61
+ - Add new `Meter` component
62
+
63
+ ## 1.1.1
64
+
65
+ - Fix `Breadcrumbs` style not loading
66
+ - Add resets for `Breadcrumbs` element
67
+
68
+ ## 1.1.0
69
+
70
+ - Add `OptionCard` component
71
+
72
+ ## 1.0.3
73
+
74
+ - Rename `HRule` to `Divider`
75
+
76
+ ## 1.0.2
77
+
78
+ - Rename `ExpandableContent` to `OptionCard`
79
+
80
+ ## 1.0.1
81
+
82
+ - Fix `Breadcrumbs` element type
83
+
84
+ ## 1.0.0
85
+
86
+ #### GENERIC CHANGES
87
+
88
+ - Move to Vite
89
+ - Move to `pnpm` for package management
90
+ - Remove `styled-components` as a dependency
91
+ - Adopt plain CSS for styling
92
+ - Support twice as many `defaultColours`
93
+ - Use `rem` units for font sizes
94
+ - Ability to set `Element` as a flexbox/grid div using `layoutAsFlexbox` and `layoutAsGrid`
95
+ - Add `horizontalPadding`, `verticalPadding`, `horizontalMargin`, and `verticalMargin`
96
+ - Add generic block-level sectioning elements as custom components. Eg `<Div>`, `<Section>`, `<Article>` etc
97
+ - Add copy code to clipboard for `CodeBlock`
98
+ - Add `RadioTabGroup` component
99
+ - Convert all millisecond values to seconds
100
+
101
+ #### ⚠️ BREAKING CHANGES ⚠️
102
+
103
+ - Remove `ThemeProvider` and `theme` prop from all components
104
+ - Refactor `Row` and `Portion` to use CSS Grid and Flexbox both
105
+ - Import, usage and extension of `CodeBlock`
106
+ - Remove `defaultColours` object as exported
107
+ - Remove `InfoPanel` and extend `Drawer` with `position` prop
108
+ - Rename `sidePadding` and `sideMargin` to `horizontalPadding` and `horizontalMargin`
109
+ - Rename `para` to `paragraph` in CSS variables
110
+ - Rename `FormWrapper` to `Form`
111
+ - Rename `CheckBox` to `Checkbox`
112
+ - Add consistent `showWhen`, `closeWhen` and `secondsToShowFor` props for transitory components
113
+
114
+ [//]: # "TODO: Make Fictoan more accessible"
115
+ [//]: # "TODO: ⚠️ Remove style tag in CodeBlock"
116
+ [//]: # "TODO: ⚠️ Fix TS issue in Select and SWS"
117
+ [//]: # "TODO: Fix Dismiss Button in NotifcationItem"
118
+ [//]: # "TODO: Add mask design to PinInputField"
119
+ [//]: # "TODO: Fix Sidebar scrolling issue"
120
+ [//]: # "TODO: Revamp BreadCrumbs?"
121
+
122
+ ~~[//]: # (TODO: ⚠️ Fix Meter height issue)~~
123
+
124
+ ---
125
+
126
+ ### 0.46.8
127
+
128
+ - Fix `focusFirstInputOnReset` prop behaviour to properly set focus on first input on reset
129
+
130
+ ### 0.46.7
131
+
132
+ - Export custom `PinInputFieldElementType` for supporting custom ref types in TypeScript
133
+
134
+ ### 0.46.5
135
+
136
+ - Add an imperative reset handler to reset `PinInputField` from the parent component with ref
137
+ - Add a `focusFirstInputOnReset` prop for the above change, to opt out of focusing on first input on reset
138
+
139
+ ### 0.45.5
140
+
141
+ - Add Tab component label prop to be used as reactnode for custom label
142
+
143
+ ### 0.45.4
144
+
145
+ - Fix PinInputField behaviour on paste or replace at position
146
+
147
+ ### 0.45.3
148
+
149
+ - Add optional `isDismissable` prop for showing a close button for `Drawer` _(true by default)_
150
+
151
+ ### 0.45.2
152
+
153
+ - Fix prop name for disable copy/paste to pasteFromClipboard which takes either enabled or disabled as parameters for `PinInput Field`
154
+
155
+ ### 0.45.1
156
+
157
+ - Export props types for all components
158
+ - Fix excess margin issue for `Tabs` labels
159
+ - Add toggle for disabling copy/paste functionality in the `PinInputField` component
160
+
161
+ ### 0.45.0
162
+
163
+ - Add support for defaultTabIndex props in `Tabs` component because by default it select first tab as active tab
164
+
165
+ ### 0.44.0
166
+
167
+ - Rename `style` prop for `Heading` and `Text` to `fontStyle` since `style` is a reserved
168
+ prop name in React and causes the react/style-prop-object eslint rule to complain in any
169
+ project with basic react-app rules setup.
170
+
171
+ ### 0.43.0
172
+
173
+ - Fix npm publish action workflow
174
+ - Fix unique key issue for `Tabs`
175
+
176
+ ### 0.42.3
177
+
178
+ - Update command for installing dependencies and build in CI
179
+
180
+ ### 0.42.2
181
+
182
+ - Fix broken npm publish action
183
+
184
+ ### 0.42.1
185
+
186
+ - Fix styling issues in `Tabs`
187
+
188
+ ### 0.42.0
189
+
190
+ - Padding and margin values can now be configured via the `globals` object in the theme
191
+ - Convert utility styles into JS file from plain CSS to access props
192
+ - Refactor `TablePagination` for better theme-ing
193
+ - Tweak `notification` theme object
194
+ - Add String() constructor to theme object values
195
+ - Fix a bunch of inconsistencies in theme values
196
+
197
+ ### 0.41.27
198
+
199
+ - ⚠ Breaking change: add `style` prop for `Heading` and `Text` to select font style.
200
+
201
+ ### 0.41.26
202
+
203
+ - Add support for passing additional items to the navbar for `Tabs`
204
+ - Update React peer dependency version
205
+
206
+ ### 0.41.25
207
+
208
+ - Export styled-components also from the project to allow component-wide over-rides
209
+
210
+ ### 0.41.24
211
+
212
+ - Convert `isMono`, `isSans` and `isSerif` to a `style` enum
213
+ - Fix `isSubtext` prop for text elements
214
+ - Fix cursor-pointer on hover for `ExpandableGroup`
215
+ - Add back the right margin bottoms for `FormItem` elements inside `FormItemGroup`
216
+ - Fix margin bottom for `Checkbox` and `Switch` inside a `Form`
217
+
218
+ ### 0.41.23
219
+
220
+ - Remove `line-height` property from `body` and apply it more specifically to text elements only
221
+
222
+ ### 0.41.22
223
+
224
+ - Add `InputField` invalid state text theme colour
225
+ - Rework text sizes progression
226
+ - Add reset styles for `picture`
227
+ - Add `weight` prop to `Element` to be used in `span` elements
228
+ - Add types for possible font weight values
229
+
230
+ ### 0.41.19
231
+
232
+ - Fix `disabled` styling for `InputField`
233
+
234
+ ### 0.41.18
235
+
236
+ - Remove style overrides in Tabs component
237
+
238
+ ### 0.41.17
239
+
240
+ - Add `closeOnClickOutside` prop for `InfoPanel` & `Drawer`
241
+
242
+ ### 0.41.16
243
+
244
+ - Fix wrong font value for links in theme file
245
+
246
+ ### 0.41.15
247
+
248
+ - `Drawer` overlay is now theme-able and style-able with props
249
+
250
+ ### 0.41.14
251
+
252
+ - Overhaul `Drawer` to now come with a page overlay
253
+
254
+ ### 0.41.13
255
+
256
+ - Add span types for `Portion`
257
+
258
+ ### 0.41.11
259
+
260
+ - Add `spacing` prop for `PinInputField`
261
+
262
+ ### 0.41.10
263
+
264
+ - Add separate theme object for `Drawer`
265
+
266
+ ### 0.41.9
267
+
268
+ - Allow controlling auto-focus behaviour for `PinInputField`
269
+
270
+ ### 0.41.8
271
+
272
+ - Add ability to theme disabled states for `primary`, `secondary` and `tertiary` buttons separately
273
+
274
+ ### 0.41.7
275
+
276
+ - Add different letter spacing values for empty and filled `input[type=password]`
277
+
278
+ ### 0.41.6
279
+
280
+ - Fix `InputField` text colour dark theme bug
281
+
282
+ ### 0.41.5
283
+
284
+ - Add `spacing` and `retainLayout` props for `FormItemGroup`
285
+
286
+ ### 0.41.4
287
+
288
+ - Fix bug in `onChange` implementation for `PinInputField`
289
+
290
+ ### 0.41.3
291
+
292
+ - Fix missing font family for `hepText` and `errorText`
293
+
294
+ ### 0.41.2
295
+
296
+ - Replace `onComplete` with `onChange` callback for `PinInputField`
297
+
298
+ ### 0.41.1
299
+
300
+ - Add `PinInputField` component
301
+
302
+ ### 0.40.0
303
+
304
+ - Add `Drawer` component
305
+
306
+ ### 0.39.3
307
+
308
+ - Rename `timeout` prop for `Drawer` and `NotificationItem` to `showFor`
309
+ - Fix `Select` border-radius bug
310
+
311
+ ### 0.39.2
312
+
313
+ - Move `unit` prop in the `Meter` from being displayed via CSS to markup
314
+
315
+ ### 0.39.1
316
+
317
+ - Tweak `Badge` padding values
318
+
319
+ ### 0.39.0
320
+
321
+ - Fix `Badge` line height bug
322
+ - Fix `Switch` theme colour mismatch
323
+
324
+ ### 0.38.3
325
+
326
+ - Tweak `Badge` padding values
327
+
328
+ ### 0.38.2
329
+
330
+ - Fix `Badge` height bug
331
+
332
+ ### 0.38.1
333
+
334
+ - Add opinionated defaults for `mark` element
335
+
336
+ ### 0.38.0
337
+
338
+ - Add `Badge` component
339
+
340
+ ### 0.37.1
341
+
342
+ - Rename `Toast` to `Drawer` for better consistency
343
+
344
+ ### 0.37.0
345
+
346
+ - Add `Toast` component
347
+
348
+ ### 0.36.4
349
+
350
+ - Add `horizontallyCentreThis`, `horizontallyCenterThis`, `verticallyCentreItems`, `verticallyCenterItems`, `pushItemsToEnds` as props instead of class names
351
+
352
+ ### 0.36.3
353
+
354
+ - Fix `Select` border-radius inheritance bug
355
+ - Fix `SidebarItemText` hover state text colour
356
+
357
+ ### 0.36.2
358
+
359
+ - Fix inconsistent `tabLS` and `tabPT` props
360
+
361
+ ### 0.36.1
362
+
363
+ - Add types for `Element`’s `as` attribute
364
+
365
+ ### 0.36.0
366
+
367
+ - Fix text colour for nested links in sidebar for better differentiation
368
+ - Fix typo in `portionProps`
369
+ - Refactor sidebar theme object hierarchy for links and sublinks, remove `linksWrapper` object
370
+ - Mention `styled-components` requirement in the README
371
+
372
+ ### 0.35.4
373
+
374
+ - Rename `tabLS` to `tabletLandscape` and `tabPT` to `tabletPortrait` for more consistency with the naming scheme and less ambiguity.
375
+
376
+ ### 0.35.3
377
+
378
+ - Fix focus states for checkbox, switch, radio and select
379
+
380
+ ### 0.35.2
381
+
382
+ - Fix theme throwing error on colour overrides
383
+ - Add custom colours to ColorPropsType and export it from library
384
+ - Fix InputField element type
385
+
386
+ ### 0.35.0
387
+
388
+ **General**
389
+
390
+ - Add Storybook for easy testing and documentation
391
+ - Each component folder now contains a `<component_name>.stories.tsx` (to create stories) and `<component_name>.stories.mdx` (to write docs) file
392
+ - Add make commands for easy creation of components
393
+ - Remove `name` props from RadioGroup `options` type; Add `label` and `id`
394
+ - Remove `as` from RadioButton and Checkbox props
395
+ - Make `shadow` a global prop
396
+ - Make `shape` a global prop
397
+ - Add `ExpandableContent` component which implements details and summary tags
398
+ - Add `Tag` component
399
+ - Add `opacity` as a global prop
400
+ - Divider now supports custom background colors
401
+ - Add `hr.default` to theme
402
+ - All colour props are now typed
403
+ - Add command (`make color-props`) to generate colour props from default colors
404
+
405
+ **Form improvements**
406
+
407
+ - Remove `isAnswers` prop from FormItem
408
+ - Remove FormItemJointGroup component
409
+ - Add `isJoint` prop to FormItemGroup
410
+ - Remove Extra spacing after FormItemGroup
411
+ - Add `fields` and `onFieldsChange` prop to Form to allow form creation using an array of config 🎉
412
+ - RadioGroup and Select now use BaseInputComponent
413
+ - Add better and consistent help & error text for each form field
414
+ - Make InputLabel atomic
415
+ - Add error text for Form which uses Callout component
416
+ - Add sizes to Switch component
417
+ - Make Select chevron consistent with ExpandableContent
418
+ - Make required and disabled states consistent in form fields
419
+ - Remove `name` props from RadioGroup `options` type; Add `label` and `id`
420
+
421
+ **Sidebar improvements**
422
+
423
+ - Remove `isSticky` from Sidebar footer
424
+ - `sidebar.body.bg` is now `sidebar.bg` in theme
425
+ - Add sidebar width properties to theme; SidebarHeader, SidebarFooter and SidebarItem span 100% automatically
426
+ - Remove `isSticky` from SidebarFooter, it always sticks to bottom
427
+ - Remove SidebarLink, SidebarNestedLinks and SidebarLinksWrapper
428
+ - Make SidebarHeader and SidebarFooter sticky instead of fixed to get simpler and consistent sidebar layout
429
+ - Remove `sidebar.linksWrapper.marginTop` and `sidebar.linksWrapper.marginBottom` from theme
430
+ - Remove SidebarItemsGroup and SidebarItemsGroupHeader
431
+
432
+ **New components**
433
+
434
+ - Tooltip (very basic, might overflow screens)
435
+ - Callout
436
+ - ExpandableContent
437
+ - Tag
438
+
439
+ **Removed components**
440
+
441
+ - FormItemJointGroup
442
+ - SidebarLink
443
+ - SidebarNestedLinks
444
+ - SidebarLinksWrapper
445
+ - SidebarItemsGroup
446
+ - SidebarItemsGroupHeader
447
+
448
+ ## BREAKING CHANGES ⚠️
449
+
450
+ - Inside theme:
451
+ - `inputField.default.helpText` is now `inputField.onFocus.helpText`
452
+ - `inputField.isInvalid.helpText` is now `inputField.isInvalid.errorText`
453
+ - `sidebar.body.bg` is now `sidebar.bg`
454
+ - `sidebar.linksWrapper.marginTop` and `sidebar.linksWrapper.marginBottom` have been removed
455
+ - Remove `isSticky` from SidebarFooter
456
+ - It always sticks to bottom
457
+ - Remove FormItemJointGroup
458
+ - Use `isJoint` prop inside FormItemGroup instead
459
+ - Remove SidebarLink, SidebarNestedLinks and SidebarLinksWrapper
460
+ - Remove SidebarItemsGroup and SidebarItemsGroupHeader
461
+ - Use ExpandableContent component instead
462
+ - Default Switch size now `medium` which is larger than before
463
+ - Set to size `small` for old size
464
+
465
+ ### 0.34.0
466
+
467
+ - Replace `react-syntax-highlighter` with `prism-react-renderer`
468
+ - Add simple wrappers for `prism-components` to import specific languages from `prismjs`
469
+ - Fix CodeBlock erratic output issue
470
+
471
+ ### 0.33.15
472
+
473
+ - Fix `spinner` padding
474
+
475
+ ### 0.33.14
476
+
477
+ - Add `Spinner` component
478
+
479
+ ### 0.33.12
480
+
481
+ - Remove `Element` props being passed to all HTML elements as attributes
482
+ - Fix Badge `is-loading` colours
483
+
484
+ ### 0.33.11
485
+
486
+ - Fix transition for `SidebarHeader`
487
+
488
+ ### 0.33.10
489
+
490
+ - Add `isSticky` prop for `SidebarHeader` and `SidebarFooter`
491
+ - Add new component `SidebarLinksWrapper` to better manage `SidebarHeader` and `SidebarFooter`
492
+
493
+ ### 0.33.9
494
+
495
+ - Fix `polished` imports
496
+
497
+ ### 0.33.8
498
+
499
+ ## BREAKING CHANGES ⚠️
500
+
501
+ - Breadcrumbs
502
+
503
+ - `BreadcrumbWrapper` renamed to `Breadcrumbs`
504
+ - The `separator` is now configurable in the theme file
505
+
506
+ - Badge
507
+
508
+ - `isLoading` class now works for `custom` kind buttons also
509
+ - Fix padding inconsistencies
510
+ - `with-loader` and `with-delete` classes renamed to `is-loading` and `has-delete`
511
+
512
+ - Form elements
513
+
514
+ - `input` theme object is now `inputField`
515
+ - `Checkbox`, `RadioButton`, `Select` etc have been moved out from inside `input`
516
+
517
+ - InfoPanel
518
+
519
+ - Dismiss button now styled differently, and does not interfere with the content
520
+
521
+ - Notifications
522
+
523
+ - The `type` prop is now `kind` to be more consistent with the rest of the components
524
+ - `onClose` is renamed to `onCloseCallback`
525
+ - `NotificationWrapper` has a `order` prop to set the stacking order of `NotificationItem` children
526
+
527
+ - Meter
528
+
529
+ - `isThin` prop is deprecated in favour of a far more flexible `height` prop
530
+ - `shape` prop is now available just like the `Badge`
531
+
532
+ - The theme object is now called `FictoanTheme`
533
+
534
+ ### 0.33.7
535
+
536
+ - Fix types for `CodeBlock`, `BaseInputElement`, `Meter`, `TextArea`, and `Select`.
537
+
538
+ ### 0.33.6
539
+
540
+ - Add autoprefixer to add vendor styles to CSS
541
+
542
+ ### 0.33.5
543
+
544
+ - Fix `alignText` styling for `Table` 😬
545
+
546
+ ### 0.33.4
547
+
548
+ - Add `alignText` prop for `Table`
549
+
550
+ ### 0.33.3
551
+
552
+ - Fix npm publish bug
553
+
554
+ ### 0.33.2
555
+
556
+ - Fix CSS overrides for all components
557
+
558
+ ### 0.33.1
559
+
560
+ - Support heading in `InfoPanel`
561
+
562
+ ### 0.33.0
563
+
564
+ - Replace lodash with lodash-es for tree shaking
565
+ - Bump rollup to 2.52.7
566
+ - Replace `prism-react-renderer` and `prismjs` with `react-syntax-highlighter` which is more customizable and tree-shakable
567
+ - Add `@rollup/plugin-babel` to add /_#**PURE**_/ prefix to `React.forwardRef` which is required for tree-shaking
568
+ - Add CSS files for Normalize, Reset, Colours and Utility to move static styles out of JS. Injecting to head tag using `rollup-plugin-styles`
569
+ - Programmatically generate Colours.styled.tsx classes (To be added to build flow soon)
570
+
571
+ ### 0.32.14
572
+
573
+ - Fix crash in tabs component
574
+
575
+ ### 0.32.13
576
+
577
+ - Simplify TablePagination component (breaking)
578
+
579
+ ### 0.32.10
580
+
581
+ - Add TablePagination component
582
+
583
+ ### 0.32.9
584
+
585
+ - Fix `InfoPanel` close button fixed position bug
586
+
587
+ ### 0.32.7
588
+
589
+ - Cap `sidePadding` and `sideMargin` for `Row` and `Divider` in ultra-wide res displays above 2400px
590
+
591
+ ### 0.32.5
592
+
593
+ - Add @emotion/is-prop-valid as an optional dependency
594
+
595
+ ### 0.32.3
596
+
597
+ - Add ability to set Sidebar logo width via the theme
598
+
599
+ ### 0.32.1
600
+
601
+ - Add Tabs component
602
+
603
+ ### 0.31.22
604
+
605
+ - Remove opinionated `ul`, `ol`, and `li` styles
606
+
607
+ ### 0.31.21
608
+
609
+ - Add opinionated version of Normalize.css
610
+
611
+ ### 0.31.20
612
+
613
+ - Remove Normalize.css
614
+
615
+ ### 0.31.19
616
+
617
+ - Add theme variables for `RadioButton`, `Checkbox` and `ToggleSwitch`
618
+
619
+ ### 0.31.18
620
+
621
+ - Upgrade to React 17.0.1
622
+ - Tweak colour and font family for other input elements
623
+
624
+ ### 0.31.17
625
+
626
+ - Change `fontFamily` to `font` for `Badge` component
627
+ - Fix font fallback styling inconsistency for labels, tables, and links
628
+
629
+ ### 0.31.16
630
+
631
+ - Rework Notification component
632
+
633
+ ### 0.31.15
634
+
635
+ - Fix `bg` of `SidebarWrapper`
636
+
637
+ ### 0.31.13
638
+
639
+ - Add `size` property for `SidebarItemIcon` to be picked from theme file
640
+
641
+ ### 0.31.12
642
+
643
+ - Add `font-family` to tables, and inherit from body font
644
+
645
+ ### 0.31.11
646
+
647
+ - Remove improper colour override for dark sidebar theme
648
+
649
+ ### 0.31.10
650
+
651
+ - Move React & styled-components to peerDependencies
652
+
653
+ ### 0.31.8
654
+
655
+ - Switch to useState & useEffect for merging theme
656
+
657
+ ### 0.31.7
658
+
659
+ - Fix Drawer theme issue for setting `borderRadius`
660
+
661
+ ### 0.31.6
662
+
663
+ - Fix broken builds (0.31.2 - 0.31.5)
664
+
665
+ ### 0.31.2
666
+
667
+ - Set ThemeType to recursive optional typeof RFTheme
668
+
669
+ ### 0.31.1
670
+
671
+ - Export `StaticGlobalStyles`
672
+
673
+ ### 0.31.0
674
+
675
+ - Add support for passing `refs`
676
+
677
+ ### 0.30.14
678
+
679
+ - Upgrade `styled-components` from `5.0.1` to `5.1.1` for Jest reasons
680
+
681
+ ### 0.30.13
682
+
683
+ - Add `tertiary` button
684
+
685
+ ### 0.30.12
686
+
687
+ - Add `transparent` as a `defaultColour`
688
+
689
+ ### 0.30.11
690
+
691
+ - Fix incorrect centering rule
692
+
693
+ ### 0.30.10
694
+
695
+ - Make `borderRadius` themeable for cards and input fields
696
+
697
+ ### 0.30.9
698
+
699
+ - Rename `baseColors` to `defaultColours`, and `mainColors` to `customColours`
700
+
701
+ ### 0.30.8
702
+
703
+ - Memoize theme prop in ThemeProvider
704
+
705
+ ### v0.30.7
706
+
707
+ - Add missing props for theming some elements
708
+
709
+ ### v0.30.6
710
+
711
+ - Add merge to reduce size of custom overrides
712
+
713
+ ### v0.30.5
714
+
715
+ - Fix `a` tag hover colour bug
716
+
717
+ ### v0.30.4
718
+
719
+ - Fix type bug that wouldn’t let `paras` inherit `font-family`
720
+
721
+ ### v0.30.3
722
+
723
+ - Fix lodash `merge` speed issue
724
+
725
+ ### v0.30.0
726
+
727
+ - Remove static CSS classes from `GlobalStyles`
728
+
729
+ ### v0.29.3
730
+
731
+ - Rename `Textarea` to `TextArea`
732
+
733
+ ### v0.29.2
734
+
735
+ - Add media queries for `InfoPanel` below `1200px` to handle `width` prop
736
+
737
+ ### v0.29.1
738
+
739
+ - Add `primary`, `secondary`, and `tertiary` props for the `Divider` element
740
+
741
+ ### v0.29.0
742
+
743
+ - Add `bgColour`, `textColour`, `borderColour`, `strokeColour` and `fillColour` props with British English
744
+
745
+ ### v0.28.7
746
+
747
+ - Add `spring`, `brick` and `sienna` colour values
748
+
749
+ ### v0.28.5
750
+
751
+ - Fix `FormItem` margin bottom bug inside `FormItemGroup`
752
+
753
+ ### v0.28.4
754
+
755
+ - Add `nano` and `micro` sizing for Text
756
+
757
+ ### v0.28.3
758
+
759
+ - Tweak links theme styling
760
+ - `links.default.text` is now `links.default.color`
761
+ - `links.onHover.text` is now `links.onHover.color`
762
+
763
+ ### v0.28.2
764
+
765
+ - Fix Textarea styling bug
766
+ - Add `nano` and `micro` text sizes
767
+ - Text theme tweaks
768
+ - `size` object deprecated
769
+ - `size.default` is now `paras.size`
770
+ - `size.multiplier` is now `headings.multiplier`
771
+
772
+ ### v0.27.0
773
+
774
+ - Add props for Meter to display a label and value
775
+
776
+ ### v0.23.8
777
+
778
+ - Remove all SCSS files
779
+ - Remove unused svg icon
780
+ - Move `theme` to `styles` folder
781
+
782
+ ### v0.23.7
783
+
784
+ - Use relative path everywhere
785
+
786
+ ### v0.23.6
787
+
788
+ - Generate typings
789
+
790
+ ### v0.23.5
791
+
792
+ - Upgrade all packages
793
+
794
+ ### v0.21.2
795
+
796
+ - Update styled components
797
+ - Remove unused component `EventHandler`
798
+ - Fix rollup dependencies
799
+
800
+ ### v0.21.1
801
+
802
+ - Add `onCloseButtonClick` prop in `NotificationItem`
803
+
804
+ ### v0.21.0
805
+
806
+ - Code cleanup