@fattureincloud/fic-design-system 0.5.1 → 0.5.3

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 (42) hide show
  1. package/dist/common/components/typography/Typography.d.ts +11 -11
  2. package/dist/components/floatingBadge/{floatingBadge.d.ts → FloatingBadge.d.ts} +0 -0
  3. package/dist/components/floatingBadge/{withBadge.d.ts → WithBadge.d.ts} +0 -0
  4. package/dist/components/floatingBadge/types.d.ts +6 -1
  5. package/dist/components/layout/sidebarItem/types.d.ts +2 -2
  6. package/dist/components/progressbar/{progressbar.d.ts → ProgressBar.d.ts} +0 -0
  7. package/dist/components/progressbar/{progressbar.stories.d.ts → progressBar.stories.d.ts} +0 -0
  8. package/dist/components/tip/{shortcutTip.d.ts → ShortcutTip.d.ts} +0 -0
  9. package/dist/components/tip/{tip.d.ts → Tip.d.ts} +0 -0
  10. package/dist/components/toast/types.d.ts +1 -1
  11. package/dist/index.esm.js +4 -4
  12. package/dist/index.esm.js.map +1 -1
  13. package/dist/index.js +4 -4
  14. package/dist/index.js.map +1 -1
  15. package/package.json +1 -1
  16. package/CHANGELOG.md +0 -599
  17. package/dist/components/banner/utils.d.ts +0 -8
  18. package/dist/components/chips/chips.d.ts +0 -3
  19. package/dist/components/chips/chips.stories.d.ts +0 -6
  20. package/dist/components/chips/components/styledChipWrapper.d.ts +0 -4
  21. package/dist/components/chips/index.d.ts +0 -2
  22. package/dist/components/chips/styled.d.ts +0 -3
  23. package/dist/components/chips/types.d.ts +0 -11
  24. package/dist/components/form/checkbox/components/Input.d.ts +0 -9
  25. package/dist/components/form/checkbox/components/Label.d.ts +0 -8
  26. package/dist/components/groupRadioButton/index.d.ts +0 -23
  27. package/dist/components/groupRadioButton/radio-group.stories.d.ts +0 -6
  28. package/dist/components/inlineMessages/components/styledInlineMessageWrapper.d.ts +0 -8
  29. package/dist/components/inlineMessages/index.d.ts +0 -2
  30. package/dist/components/inlineMessages/inlineMessages.d.ts +0 -4
  31. package/dist/components/inlineMessages/inlineMessages.stories.d.ts +0 -7
  32. package/dist/components/inlineMessages/types.d.ts +0 -29
  33. package/dist/components/pagination/paginationStyledWrapper.d.ts +0 -1
  34. package/dist/components/progressbar/components/styledProgressbarWrapper.d.ts +0 -2
  35. package/dist/components/radioButton/components/label.d.ts +0 -2
  36. package/dist/components/radioButton/components/radio.d.ts +0 -2
  37. package/dist/components/radioButton/index.d.ts +0 -2
  38. package/dist/components/radioButton/radio.stories.d.ts +0 -6
  39. package/dist/components/radioButton/typings/radioButton.d.ts +0 -21
  40. package/dist/components/tip/components/styledTip.d.ts +0 -4
  41. package/dist/components/toast/ToastContainer.d.ts +0 -9
  42. package/dist/components/toast/typings/toast.d.ts +0 -34
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fattureincloud/fic-design-system",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "Fatture in Cloud and Danea design system",
5
5
  "repository": "git@bitbucket.org:fattureincloud/design-system.git",
6
6
  "license": "MIT",
package/CHANGELOG.md DELETED
@@ -1,599 +0,0 @@
1
- # Changelog
2
-
3
- ## v0.5.1 - 25/10/2022
4
-
5
- ### 🐛 Bug Fix
6
-
7
- - DatePicker format
8
- - InlineMessage onActionClick
9
- - Confirmation modal buttons position
10
-
11
- ### 💅 Enhancement
12
-
13
- - Avatar refactor
14
-
15
- ## v0.5.0 - 18/10/2022
16
-
17
- ### 🚀 Added
18
-
19
- - A completely new typography
20
- - SegmentButton
21
-
22
- ### 💅 Enhancement
23
-
24
- - Datepicker input controls
25
-
26
- ## v0.4.31 - 11/10/2022
27
-
28
- ### 🚀 Added
29
-
30
- - exports:
31
- • ButtonPalette,
32
- • DropdownItemType,
33
- • iconColors,
34
- • tagTypes,
35
- • BadgePalette,
36
- • BannerPalette,
37
- • ChipPalette,
38
- • FloatingBadgePalette,
39
- • LabelPalette,
40
- • PaginationPalette,
41
- • ProgressBarPalette,
42
- • bwColor,
43
- • IconButtonPalette
44
-
45
- ## v0.4.30 - 29/09/2022
46
-
47
- ### 🚀 Added
48
-
49
- - Tabs badge
50
- - Table actionsHeader
51
-
52
- ### 🐛 Bug Fix
53
-
54
- - Table text selection restored
55
-
56
- ## v0.4.29 - 14/09/2022
57
-
58
- ### 💥 Breaking
59
-
60
- - Progressbar renamed ProgressBar
61
-
62
- ### 🚀 Added
63
-
64
- - Chip leftIcon
65
- - Badge palette
66
- - Chip palette
67
- - Tip palette
68
- - FloatingBadgeType and FloatingBadge palette
69
- - ProgressBar palette
70
- - Banner palette
71
- - NotificationBadge
72
-
73
- ### 🐛 Bug Fix
74
-
75
- - Label mandatory icon space fix
76
- - SidebarItem fix
77
-
78
- ### 💅 Enhancement
79
-
80
- - Chip refactor
81
- - Pagination refactor
82
-
83
- ## v0.4.28 - 13/09/2022
84
-
85
- ### 🐛 Bug Fix
86
-
87
- - `macro` imports removed
88
- - Some types fix
89
-
90
- ### 💅 Enhancement
91
-
92
- - RadioGroupOptions exported enum
93
-
94
- ## v0.4.27 - 24/08/2022
95
-
96
- ### 💥 Breaking
97
-
98
- - RadioButton replaced with Radio
99
- - RadioButtonGroup replaced with RadioGroup
100
-
101
- ### 🚀 Added
102
-
103
- - RadioGroup selection handled
104
- - Radio palette
105
- - InlineMessage palette
106
- - InlineMessage action button
107
-
108
- ### 🐛 Bug Fix
109
-
110
- - Fix Toast icon graphical appearance
111
-
112
- ### 💅 Enhancement
113
-
114
- - InlineMessageType and ToastType exported enums
115
-
116
- ## v0.4.26 - 16/08/2022
117
-
118
- - Aggiunte props `emptyState` e `isDisabled` in Dropdown
119
- - Rimossa prop `isSmall` da Dropdown
120
-
121
- ## v0.4.25 - 11/08/2022
122
-
123
- - Aggiunte prop su modale per nascondere backdrop e poter modificare lo stile del portal
124
-
125
- ## v0.4.24 - 10/08/2022
126
-
127
- - Implementata possibilità di poter passare prop hideAfterSeconds sul tooltip
128
-
129
- ## v0.4.23 - 09/08/2022
130
-
131
- - Implementata possibilità di poter usare un tooltip nel componente InputText
132
- - Implementata possibilità di poter usare un tooltip nel componente Tabs
133
-
134
- ## v0.4.22 - 02/08/2022
135
-
136
- - Fixato placeholder nel componente DatePicker, che ora prende il valore dalle props oppure assume quello del giorno corrente
137
- - I giorni non selezionabili del DatePicker ora si distinguono per colore
138
- - Piccolo fix grafico alle voci della sidebar che contengono un badge
139
-
140
- ## v0.4.21 - 26/07/2022
141
-
142
- - Refactor component Toast
143
-
144
- ## v0.4.20 - 13/07/2022
145
-
146
- - Bugfix di useUpDownKeyNavigation, premendo ENTER venivano intercettati altri comportamenti in altri componenti
147
-
148
- ## v0.4.19 - 28/06/2022
149
-
150
- - Aggiunta la possibilità di usare le frecce per selezionare una riga nella Table o un'opzione nel Dropdown
151
- - Aggiunto export del componente Spinner
152
-
153
- ## v0.4.18
154
-
155
- - Rimossa prop disabled dal componente Select perché ridondante
156
-
157
- ## v0.4.17
158
-
159
- - Fixato l'hook useFormattedDate del componente DatePicker
160
-
161
- ## v0.4.16 - 18/05/2022
162
-
163
- ### 🚀 Added
164
-
165
- - Implementata prop "fixedHeight" in componente FileUploader
166
-
167
- ### 🚀 Bugfix
168
-
169
- - Modificato il border bottom dell’header in maniera che sia più chiaro, sistemato le icone di ordinamento
170
- - Fixato stile Dropdown
171
- - Fixato font in storybook usando "Inter UI"
172
-
173
- ## v0.4.15 - 17/05/2022
174
-
175
- ### 🚀 Bugfix
176
-
177
- - Fixed style "min-height" if prop isSmall is true on component ConfirmationModal
178
-
179
- ## v0.4.14 - 12/05/2022
180
-
181
- ### 🚀 Added
182
-
183
- - Added new prop pageSize on component Table
184
-
185
- ## v0.4.13 - 05/05/2022
186
-
187
- ### 🚀 Added
188
-
189
- - Added new prop maxFileSize on component FileUploader
190
-
191
- ### 🐛 Bug Fix
192
-
193
- - Fix placeholder in Select component style bug
194
-
195
- ## v0.4.12 - 03/05/2022
196
-
197
- ### 🐛 Bug Fix
198
-
199
- - Fix placeholder in Select component, the cursor was at the end of the placeholder
200
- - Fix Table LoadingCell
201
-
202
- ## v0.4.11 - 12/04/2022
203
-
204
- ### 🐛 Bug Fix
205
-
206
- - Fix text color to 900 in component InlineMessage
207
-
208
- ## v.0.4.10 - 08/04/2022
209
-
210
- ### 🚀 Added
211
-
212
- - Added new component DatePicker
213
- - Added new features in component Table
214
- - Added backgroundColor in palette for component FileUploader and fixed file type mappings to manage "p7m" extension
215
-
216
- ## v0.4.9 - 23/02/2022
217
-
218
- ### 🐛 Bug Fix
219
-
220
- - Fix FontAwesome version
221
-
222
- ## v0.4.8 - 23/02/2022
223
-
224
- ### 🐛 Bug Fix
225
-
226
- - Downgrade FontAwesome to v5 due to browser compatibility issues
227
-
228
- ## v0.4.7 - 22/02/2022
229
-
230
- ### 🚀 Added
231
-
232
- - Add new FileUploader component
233
- - Add new Table component
234
-
235
- ### 🐛 Bug Fix
236
-
237
- - Fix appearance of multiline (long) Select Options
238
-
239
- ## v0.4.6 - 15/02/2022
240
-
241
- ### 🚀 Added
242
-
243
- - Add `customHeader` and `customFooter` props to Modal
244
- - Add `isPrefilled` prop to InputText, TextArea and Select components
245
- - Add `isTransparent` prop to Select and InputText components
246
- - Add `customStyles` prop to Select component
247
- - Add UnitDropdown to InputText
248
- - Add `ref` prop to InputText component
249
- - Add Select `simpleValue` prop and `useSelectSimpleValue` hook
250
-
251
- ### 🐛 Bug Fix
252
-
253
- - Fix Accordion graphical appearance (CSS)
254
-
255
- ### 💅 Enhancement
256
-
257
- - Add `JSX.Element` to label prop type in form components
258
- - Remove up and down arrows on `input[type=number]`
259
-
260
- ## v0.4.5 - 08/02/2022
261
-
262
- - Update FontAwesome to v6.0.0 (Downgraded to v5 in v0.4.8)
263
-
264
- ## v0.4.4 - 25/01/2022
265
-
266
- ### 🐛 Bug Fix
267
-
268
- - Move SidebarItem Dropdown on the left in Safari
269
-
270
- ## v0.4.3 - 21/01/2022
271
-
272
- ### 🐛 Bug Fix
273
-
274
- - Remove the Checkbox `Label` tag when prop `text` is missing
275
-
276
- ### 💅 Enhancement
277
-
278
- - Change Button `text` prop from `string | JSX.Element` to `ReactText | JSX.Element`
279
-
280
- ## v0.4.2 - 19/01/2022
281
-
282
- ### 🐛 Bug Fix
283
-
284
- - Fix Dropdown content appearance animation in Safari (animation removed)
285
- - Fix absent Select typings
286
- - Fix Select Option multiline appearance
287
-
288
- ### 💅 Enhancement
289
-
290
- - Change all occurrences of `isDisabled` prop to `disabled` for "form" components
291
-
292
- ## v0.4.1 - 14/01/2022
293
-
294
- ### 🐛 Bug Fix
295
-
296
- - Fix a bug during the update of SidebarItem
297
-
298
- ## v0.4.0 - 15/12/2021
299
-
300
- ### 💅 Enhancement
301
-
302
- - Update Storybook to v6
303
- - Update Rollup to v2
304
- - Change build configs
305
-
306
- ## v0.3.24 - 13/12/2021
307
-
308
- ### 🐛 Bug Fix
309
-
310
- - Add preventDefault on Dropdown trigger click
311
-
312
- ## v0.3.23 - 13/12/2021
313
-
314
- ### 💅 Enhancement
315
-
316
- - Add href and cmd/ctrl+click on SidebarItem
317
-
318
- ## v0.3.22 - 30/11/2021
319
-
320
- ### 🐛 Bug Fix
321
-
322
- - Move `lint-staged` to devDependencies
323
-
324
- ## v0.3.21 - 29/11/2021
325
-
326
- ### 🐛 Bug Fix
327
-
328
- - Fix bug with Select usage
329
-
330
- ## v0.3.20 - 22/11/2021
331
-
332
- ### 🚀 Added
333
-
334
- - TextArea:
335
- - Add isResizable prop
336
- - Add characters counter
337
- - Add new `Select` components (`Select`, `CreatableSelect`, `AsyncSelect`, `AsyncCreatableSelect`)
338
-
339
- ### 💅 Enhancement
340
-
341
- - `InputHelper`'s prop `message` changed type from `string` to `ReactChild`
342
- - Add `className` to TextArea wrapper
343
- - Remove `margin-bottom: 1em` from `InputText` and `TextArea` components
344
- - Update styled-components to v5
345
- - Add styled-components to `peerDependencies`
346
-
347
- ### 🐛 Bug Fix
348
-
349
- - The cursor hovering an Icon will be `pointer` only if the icon has an `onClick` event
350
- - Fix Tabs component glitch
351
-
352
- ## v0.3.19 - 02/11/2021
353
-
354
- ### 🚀 Added
355
-
356
- - Add SidebarItem customization through `CustomSidebarItemProps` prop
357
- - Add exports for `SidebarItemProps`
358
-
359
- ### 💅 Enhancement
360
-
361
- - Remove deprecated `alignRight` props from Dropdown component
362
- - The `text` prop in Badge is now a `ReactText`
363
- - Button `type=text` now supports icons and hover/active state
364
-
365
- ### 🐛 Bug Fix
366
-
367
- - Fix click on SidebarItem's Dropdown
368
-
369
- ## v0.3.18 - 20/10/2021
370
-
371
- ### 🚀 Added
372
-
373
- - Add new InputText component
374
- - Add new InputHelper component
375
- - Add new TextArea component
376
-
377
- ### 💅 Enhancement
378
-
379
- - Add `isDisabled` prop to Icon component
380
-
381
- ### 🐛 Bug Fix
382
-
383
- - Close the Tooltip dropdown on click outside
384
- - Better mobile event handling on Tooltip component (close on scroll page)
385
- - Add a maximum width to the tooltip dropdown
386
-
387
- ## v0.3.17 - 06/10/2021
388
-
389
- ### 🚀 Added
390
-
391
- - Added new `Stepper` component
392
- - Added prop `forceOpenDropdown` on SidebarItem component
393
-
394
- ## v0.3.16 - 29/09/2021
395
-
396
- ### 🚀 Added
397
-
398
- - Add new `forceOpen` prop to Dropdown
399
-
400
- ### 💅 Enhancement
401
-
402
- - Change SidebarItem height from 40px to 44px
403
-
404
- ### 🐛 Bug Fix
405
-
406
- - Fix Tooltip's arrow color
407
-
408
- ## v0.3.15 - 21/09/2021
409
-
410
- ### 🚀 Added
411
-
412
- - Add new SidebarItem component
413
-
414
- ## v0.3.14 - 02/09/2021
415
-
416
- ### 🚀 Added
417
-
418
- - Added new Tooltip component
419
-
420
- ### 💅 Enhancement
421
-
422
- - Add `triggerStyles` Dropdown prop
423
- - Add new `IconBackground` component to support circle background behind icons
424
-
425
- ## v0.3.13 - 19/08/2021
426
-
427
- - Add `link` to DropdownItem `type`
428
-
429
- ## v0.3.12 - 19/08/2021
430
-
431
- ### 💅 Enhancement
432
-
433
- - Merged Dropdown interfaces `ContentOption` and `ItemProps` in `DropdownItemProps`
434
- - Add a part of DropdownPalette
435
-
436
- ### 🐛 Bug Fix
437
-
438
- - Add `e.stopPropagation()` on Dropdown trigger click
439
-
440
- ## v0.3.11 - 16/08/2021
441
-
442
- ### 💅 Enhancement
443
-
444
- - DropdownItems doesn't highlight without an `onClick` prop anymore
445
- - Changed DropdownItems' shortcuts style
446
-
447
- ## v0.3.10 - 28/07/2021
448
-
449
- ### 🐛 Bug Fix
450
-
451
- - Export checkboxPalette interface
452
- - Added boolean-only support for Checkbox component
453
-
454
- ### 💅 Enhancement
455
-
456
- - Change onClick prop type for Checkbox component
457
-
458
- ## v0.3.9 - 28/07/2021
459
-
460
- ### 💅 Enhancement
461
-
462
- - Added boolean values support to Checkbox
463
-
464
- ### 🐛 Bug Fix
465
-
466
- - Fix CustomSizeModal width on small screens
467
-
468
- ## v0.3.8 - 26/07/2021
469
-
470
- ### 🚀 Added
471
-
472
- - Added new Checkbox component with Checkbox Palette
473
-
474
- ### 🐛 Bug Fix
475
-
476
- - Increased Toast z-index to make it visible while a modal is open
477
-
478
- ## v0.3.7 - 25/06/2021
479
-
480
- ### 🚀 Added
481
-
482
- - Added MicroTag palette
483
- - Added Icon palette
484
-
485
- ### 💅 Enhancement
486
-
487
- - Refactor Palette structure
488
- - Remove base palette part
489
- - Use "transparent" css value instead of palette.base.transparent
490
-
491
- ## v0.3.6 - 04/06/2021
492
-
493
- ### 💅 Enhancement
494
-
495
- - Change project linting rules
496
-
497
- ## v0.3.5 - 03/06/2021
498
-
499
- ### 🚀 Added
500
-
501
- - Add export for `closeDropdownType`
502
-
503
- ### 💅 Enhancement
504
-
505
- - Remove Dropdown padding with custom content
506
-
507
- ## v0.3.4 - 26/05/2021
508
-
509
- ### 🚀 Added
510
-
511
- - isDisabled prop on IconButton
512
- - IconButton default types (defaultColor, defaultType) in iconButtonPalette
513
- - Add `href` and `target` props on Button component
514
-
515
- ### 💅 Enhancement
516
-
517
- - Fix buttons appearance on small screens
518
-
519
- ## v0.3.2 - 19/05/2021
520
-
521
- ### 🚀 Added
522
-
523
- - Add fullWidth prop on Button
524
-
525
- ### 💅 Enhancement
526
-
527
- - Fix default buttonPalette colors
528
- - Align iconButton palette names to Button's one
529
-
530
- ## v0.3.1 - 18/05/2021
531
-
532
- ### 🚀 Added
533
-
534
- - New useDebounceClick hook
535
- - Add new theme object manual configuration
536
- - Add palette configuration object for:
537
- - Tag
538
- - Button
539
- - IconButton
540
-
541
- ### 💅 Enhancement
542
-
543
- - Switch default palette to DIC's palette
544
- - Button component redone from scratch
545
- - TextButton merged with Button (type='text')
546
- - IconButton component redone from scratch
547
- - Refactor Tag component
548
-
549
- ## v0.2.9 - 05/05/2021
550
-
551
- ### 💅 Enhancement
552
-
553
- - The first render of the "not scrollable" Tabs component now
554
- shows the scrollable version instead of an empty row with a dropdown
555
- - Split Tabs component in ScrollableTabs and DropdownTabs
556
-
557
- ### 🐛 Bug Fix
558
-
559
- - Actually use the lateralPadding prop in Tabs component
560
-
561
- ## v0.2.8 - 30/04/2021
562
-
563
- ### 🐛 Bug Fix
564
-
565
- - Fixed Dropdowns in Internet Explorer
566
-
567
- ## v0.2.7 - 07/04/2021
568
-
569
- ### 🐛 Bug Fix
570
-
571
- - Fixed dropdown menu openings on Internet Explorer
572
-
573
- ## v0.2.6 - 10/03/2021
574
-
575
- ### 🐛 Bug Fix
576
-
577
- - Change Tag component "style" prop to "tagStyle" to prevent TypeScript error
578
-
579
- ## v0.2.5 - 04/03/2021
580
-
581
- ### 💅 Enhancement
582
-
583
- - Hide Tabs scrollbar if there's enough space for the elements
584
-
585
- ### 🐛 Bug Fix
586
-
587
- - Force Tabs component to have height: 100% (prevent component/sidebar overlap)
588
-
589
- ## v0.2.4 - 03/03/2021
590
-
591
- ### 🐛 Bug Fix
592
-
593
- - Fixed Button appearance with empty text
594
-
595
- ## v0.2.3 - 23/02/2021
596
-
597
- ### 🐛 Bug Fix
598
-
599
- - Fixed an error in Tabs causing the page overflow in scrollable mode
@@ -1,8 +0,0 @@
1
- import { DefaultTheme } from 'styled-components';
2
- import { bannerColorType } from './Banner';
3
- interface MappedColors {
4
- bgColor: string;
5
- textColor: string;
6
- }
7
- export declare const mapColors: (theme: DefaultTheme, color: bannerColorType) => MappedColors;
8
- export {};
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Chip: (props: any) => JSX.Element;
3
- export default Chip;
@@ -1,6 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { ComponentProps } from 'react';
3
- import { Chip } from '.';
4
- export declare const Normal: () => JSX.Element;
5
- declare const ChipStories: Meta<ComponentProps<typeof Chip>>;
6
- export default ChipStories;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { ChipsProps } from '../types';
3
- export declare const StyledChipWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ChipsProps, never>;
4
- export declare const StyledIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -1,2 +0,0 @@
1
- export { default as Chip } from './Chips';
2
- export { ChipsProps } from './types';
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ChipWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, any, never>;
3
- export declare const ChipIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- export interface ChipsProps {
3
- text?: string | number;
4
- statusEdit?: boolean;
5
- closeAction?: () => void;
6
- }
7
- export declare type TChip = React.FunctionComponent<ChipsProps>;
8
- export interface UnstyledChipProps extends ChipsProps {
9
- }
10
- export interface UnstyledChipState {
11
- }
@@ -1,9 +0,0 @@
1
- import { checkboxStatus, CheckboxStyles } from '../types';
2
- export interface CheckboxInputProps {
3
- value: checkboxStatus;
4
- disabled?: boolean;
5
- large?: boolean;
6
- hasError: boolean;
7
- }
8
- declare const Input: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, CheckboxStyles & CheckboxInputProps, keyof CheckboxStyles>;
9
- export default Input;
@@ -1,8 +0,0 @@
1
- import { MappedLabelProps } from '../types';
2
- export interface CheckboxLabelProps {
3
- large?: boolean;
4
- disabled?: boolean;
5
- hasError: boolean;
6
- }
7
- declare const Label: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, MappedLabelProps & CheckboxLabelProps, keyof MappedLabelProps>;
8
- export default Label;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- options: Array<{
4
- key: number;
5
- label: string;
6
- }>;
7
- value: number;
8
- onClick: (option: {
9
- key: number;
10
- label: string;
11
- }) => void;
12
- isDisabled?: boolean;
13
- renderOption?: (props: {
14
- isDisabled?: boolean;
15
- isChecked: boolean;
16
- label: string;
17
- }) => JSX.Element;
18
- optionsSpacing?: number;
19
- style?: React.CSSProperties;
20
- inline?: boolean;
21
- }
22
- export declare const RadioButtonGroup: (props: Props) => JSX.Element;
23
- export {};
@@ -1,6 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { ComponentProps } from 'react';
3
- import { RadioButtonGroup } from '.';
4
- export declare const WithKnobs: () => JSX.Element;
5
- declare const RadioButtonGroupStories: Meta<ComponentProps<typeof RadioButtonGroup>>;
6
- export default RadioButtonGroupStories;