@toptal/picasso 26.1.0 → 26.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.d.ts +5 -7
- package/Accordion/Accordion.js +3 -6
- package/Accordion/Accordion.js.map +1 -1
- package/AccordionCompound/index.d.ts +4 -0
- package/AccordionCompound/index.js +7 -0
- package/AccordionCompound/index.js.map +1 -0
- package/AccountSelect/AccountSelect.js +1 -1
- package/AccountSelect/AccountSelect.js.map +1 -1
- package/Alert/Alert.d.ts +1 -4
- package/Alert/Alert.js +1 -4
- package/Alert/Alert.js.map +1 -1
- package/AlertCompound/index.d.ts +3 -0
- package/AlertCompound/index.js +6 -0
- package/AlertCompound/index.js.map +1 -0
- package/Autocomplete/Autocomplete.js +1 -1
- package/Autocomplete/Autocomplete.js.map +1 -1
- package/Autocomplete/NoOptionsMenuItem.js +1 -1
- package/Autocomplete/NoOptionsMenuItem.js.map +1 -1
- package/Autocomplete/OtherOptionMenuItem.js +1 -1
- package/Autocomplete/OtherOptionMenuItem.js.map +1 -1
- package/AvatarCompound/index.js.map +1 -1
- package/Breadcrumbs/Breadcrumbs.d.ts +1 -4
- package/Breadcrumbs/Breadcrumbs.js +1 -4
- package/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/BreadcrumbsCompound/index.d.ts +3 -0
- package/BreadcrumbsCompound/index.js +6 -0
- package/BreadcrumbsCompound/index.js.map +1 -0
- package/Checkbox/Checkbox.d.ts +1 -9
- package/Checkbox/Checkbox.js +1 -4
- package/Checkbox/Checkbox.js.map +1 -1
- package/CheckboxCompound/index.d.ts +8 -0
- package/CheckboxCompound/index.js +6 -0
- package/CheckboxCompound/index.js.map +1 -0
- package/CheckboxGroup/CheckboxGroup.js +1 -1
- package/CheckboxGroup/CheckboxGroup.js.map +1 -1
- package/DatePicker/utils.d.ts +3 -3
- package/Dropdown/Dropdown.d.ts +3 -6
- package/Dropdown/Dropdown.js +2 -6
- package/Dropdown/Dropdown.js.map +1 -1
- package/DropdownCompound/index.d.ts +4 -0
- package/DropdownCompound/index.js +8 -0
- package/DropdownCompound/index.js.map +1 -0
- package/FieldRequirements/FieldRequirementItem.js +1 -1
- package/FieldRequirements/FieldRequirementItem.js.map +1 -1
- package/Form/Form.d.ts +1 -7
- package/Form/Form.js +1 -10
- package/Form/Form.js.map +1 -1
- package/FormCompound/index.d.ts +6 -0
- package/FormCompound/index.js +12 -0
- package/FormCompound/index.js.map +1 -0
- package/FormControlLabel/FormControlLabel.js +1 -1
- package/FormControlLabel/FormControlLabel.js.map +1 -1
- package/Grid/Grid.d.ts +1 -4
- package/Grid/Grid.js +1 -2
- package/Grid/Grid.js.map +1 -1
- package/GridCompound/index.d.ts +3 -0
- package/GridCompound/index.js +4 -0
- package/GridCompound/index.js.map +1 -0
- package/Helpbox/Helpbox.d.ts +1 -6
- package/Helpbox/Helpbox.js +1 -8
- package/Helpbox/Helpbox.js.map +1 -1
- package/HelpboxCompound/index.d.ts +5 -0
- package/HelpboxCompound/index.js +10 -0
- package/HelpboxCompound/index.js.map +1 -0
- package/InputLimitAdornment/InputLimitAdornment.js +5 -2
- package/InputLimitAdornment/InputLimitAdornment.js.map +1 -1
- package/Menu/Menu.d.ts +1 -4
- package/Menu/Menu.js +1 -1
- package/Menu/Menu.js.map +1 -1
- package/MenuCompound/index.d.ts +3 -0
- package/MenuCompound/index.js +4 -0
- package/MenuCompound/index.js.map +1 -0
- package/Modal/Modal.d.ts +1 -6
- package/Modal/Modal.js +1 -8
- package/Modal/Modal.js.map +1 -1
- package/ModalCompound/index.d.ts +5 -0
- package/ModalCompound/index.js +10 -0
- package/ModalCompound/index.js.map +1 -0
- package/Note/Note.d.ts +1 -6
- package/Note/Note.js +1 -8
- package/Note/Note.js.map +1 -1
- package/NoteCompound/index.d.ts +5 -0
- package/NoteCompound/index.js +10 -0
- package/NoteCompound/index.js.map +1 -0
- package/Notification/Notification.d.ts +1 -4
- package/Notification/Notification.js +1 -2
- package/Notification/Notification.js.map +1 -1
- package/NotificationCompound/index.d.ts +3 -0
- package/NotificationCompound/index.js +6 -0
- package/NotificationCompound/index.js.map +1 -0
- package/OverviewBlock/OverviewBlock.d.ts +2 -19
- package/OverviewBlock/OverviewBlock.js +1 -6
- package/OverviewBlock/OverviewBlock.js.map +1 -1
- package/OverviewBlockCompound/index.d.ts +17 -0
- package/OverviewBlockCompound/index.js +8 -0
- package/OverviewBlockCompound/index.js.map +1 -0
- package/PageTopBarMenu/PageTopBarMenu.js +1 -1
- package/PageTopBarMenu/PageTopBarMenu.js.map +1 -1
- package/PromptModal/PromptModal.js +1 -1
- package/PromptModal/PromptModal.js.map +1 -1
- package/QuillEditor/LazyQuillEditor.d.ts +1 -0
- package/QuillEditor/QuillEditor.d.ts +3 -1
- package/QuillEditor/QuillEditor.js +2 -2
- package/QuillEditor/QuillEditor.js.map +1 -1
- package/QuillEditor/constants.d.ts +1 -0
- package/QuillEditor/constants.js +1 -0
- package/QuillEditor/constants.js.map +1 -1
- package/QuillEditor/formats/index.d.ts +1 -0
- package/QuillEditor/formats/index.js +1 -0
- package/QuillEditor/formats/index.js.map +1 -1
- package/QuillEditor/formats/link.d.ts +8 -0
- package/QuillEditor/formats/link.js +24 -0
- package/QuillEditor/formats/link.js.map +1 -0
- package/QuillEditor/hooks/useQuillInstance/useQuillInstance.d.ts +4 -2
- package/QuillEditor/hooks/useQuillInstance/useQuillInstance.js +46 -8
- package/QuillEditor/hooks/useQuillInstance/useQuillInstance.js.map +1 -1
- package/QuillEditor/hooks/useSubscribeToTextEditorEvents/useSubscribeToTextEditorEvents.js +17 -3
- package/QuillEditor/hooks/useSubscribeToTextEditorEvents/useSubscribeToTextEditorEvents.js.map +1 -1
- package/QuillEditor/types.d.ts +6 -0
- package/Radio/Radio.d.ts +1 -9
- package/Radio/Radio.js +1 -4
- package/Radio/Radio.js.map +1 -1
- package/RadioCompound/index.d.ts +8 -0
- package/RadioCompound/index.js +6 -0
- package/RadioCompound/index.js.map +1 -0
- package/RadioGroup/RadioGroup.js +1 -1
- package/RadioGroup/RadioGroup.js.map +1 -1
- package/RatingThumbs/RatingThumbs.js +3 -3
- package/RatingThumbs/RatingThumbs.js.map +1 -1
- package/RichText/hooks/useRichText/useRichText.js +6 -0
- package/RichText/hooks/useRichText/useRichText.js.map +1 -1
- package/RichText/types.d.ts +1 -1
- package/RichTextEditor/RichTextEditor.d.ts +3 -0
- package/RichTextEditor/RichTextEditor.js +10 -5
- package/RichTextEditor/RichTextEditor.js.map +1 -1
- package/RichTextEditor/hooks/useOnSelectionChange/useOnSelectionChange.js +2 -1
- package/RichTextEditor/hooks/useOnSelectionChange/useOnSelectionChange.js.map +1 -1
- package/RichTextEditor/hooks/useOnTextFormat/useOnTextFormat.js +5 -1
- package/RichTextEditor/hooks/useOnTextFormat/useOnTextFormat.js.map +1 -1
- package/RichTextEditor/hooks/useToolbarHandlers/useToolbarHandlers.d.ts +1 -0
- package/RichTextEditor/hooks/useToolbarHandlers/useToolbarHandlers.js +23 -0
- package/RichTextEditor/hooks/useToolbarHandlers/useToolbarHandlers.js.map +1 -1
- package/RichTextEditor/store/toolbar/actionTypes.d.ts +1 -0
- package/RichTextEditor/store/toolbar/actionTypes.js +1 -0
- package/RichTextEditor/store/toolbar/actionTypes.js.map +1 -1
- package/RichTextEditor/store/toolbar/actions.d.ts +2 -1
- package/RichTextEditor/store/toolbar/actions.js +2 -0
- package/RichTextEditor/store/toolbar/actions.js.map +1 -1
- package/RichTextEditor/store/toolbar/initialState.js +1 -0
- package/RichTextEditor/store/toolbar/initialState.js.map +1 -1
- package/RichTextEditor/store/toolbar/reducer.js +2 -0
- package/RichTextEditor/store/toolbar/reducer.js.map +1 -1
- package/RichTextEditor/store/toolbar/types.d.ts +7 -1
- package/RichTextEditor/utils/convertFormat.d.ts +2 -1
- package/RichTextEditor/utils/convertFormat.js +2 -0
- package/RichTextEditor/utils/convertFormat.js.map +1 -1
- package/RichTextEditorToolbar/RichTextEditorToolbar.d.ts +4 -0
- package/RichTextEditorToolbar/RichTextEditorToolbar.js +7 -3
- package/RichTextEditorToolbar/RichTextEditorToolbar.js.map +1 -1
- package/RichTextEditorToolbar/types.d.ts +2 -0
- package/ScrollMenu/ScrollMenu.d.ts +1 -1
- package/SelectBase/utils/get-selected-options/get-selected-options.d.ts +1 -1
- package/SelectBase/utils/is-empty/is-empty.d.ts +1 -1
- package/Stepper/index.d.ts +2 -1
- package/Stepper/index.js.map +1 -1
- package/Tabs/Tabs.d.ts +1 -4
- package/Tabs/Tabs.js +1 -4
- package/Tabs/Tabs.js.map +1 -1
- package/TabsCompound/index.d.ts +3 -0
- package/TabsCompound/index.js +6 -0
- package/TabsCompound/index.js.map +1 -0
- package/TagSelector/TagSelector.d.ts +1 -4
- package/TagSelector/TagSelector.js +1 -3
- package/TagSelector/TagSelector.js.map +1 -1
- package/TagSelectorCompound/index.d.ts +3 -0
- package/TagSelectorCompound/index.js +6 -0
- package/TagSelectorCompound/index.js.map +1 -0
- package/TreeView/useFinalMargins.d.ts +1 -1
- package/Typography/styles.d.ts +1 -1
- package/Typography/styles.js +3 -0
- package/Typography/styles.js.map +1 -1
- package/index.d.ts +16 -16
- package/index.js +16 -16
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/test-utils/index.d.ts +1 -1
- package/utils/Notifications/use-notifications.d.ts +4 -4
- package/utils/html-to-hast.js +1 -1
- package/utils/html-to-hast.js.map +1 -1
- package/utils/index.d.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { BaseProps } from '@toptal/picasso-shared';
|
|
2
2
|
export type { ColorType, SpacingType, SizeType } from '@toptal/picasso-shared';
|
|
3
|
-
export {
|
|
3
|
+
export { AccordionCompound as Accordion } from './AccordionCompound';
|
|
4
4
|
export type { AccordionProps } from './Accordion';
|
|
5
5
|
export { default as AccountSelect } from './AccountSelect';
|
|
6
6
|
export type { AccountSelectProps } from './AccountSelect';
|
|
@@ -14,12 +14,12 @@ export { ButtonCompound as Button } from './ButtonCompound';
|
|
|
14
14
|
export type { ButtonProps, VariantType as ButtonVariantType } from './Button';
|
|
15
15
|
export type { ButtonCheckboxProps } from './ButtonCheckbox';
|
|
16
16
|
export type { ButtonRadioProps } from './ButtonRadio';
|
|
17
|
-
export {
|
|
17
|
+
export { CheckboxCompound as Checkbox } from './CheckboxCompound';
|
|
18
18
|
export type { CheckboxProps } from './Checkbox';
|
|
19
19
|
export type { CheckboxGroupProps } from './CheckboxGroup';
|
|
20
20
|
export { default as Container } from './Container';
|
|
21
21
|
export type { ContainerProps } from './Container';
|
|
22
|
-
export {
|
|
22
|
+
export { DropdownCompound as Dropdown } from './DropdownCompound';
|
|
23
23
|
export type { DropdownProps } from './Dropdown';
|
|
24
24
|
export { default as DropdownArrow } from './DropdownArrow';
|
|
25
25
|
export type { DropdownArrowProps } from './DropdownArrow';
|
|
@@ -29,7 +29,7 @@ export { default as FileInput } from './FileInput';
|
|
|
29
29
|
export type { FileInputProps } from './FileInput';
|
|
30
30
|
export { default as FileList } from './FileList';
|
|
31
31
|
export type { FileListProps } from './FileList';
|
|
32
|
-
export {
|
|
32
|
+
export { FormCompound as Form } from './FormCompound';
|
|
33
33
|
export type { FormProps } from './Form';
|
|
34
34
|
export { default as FormHint } from './FormHint';
|
|
35
35
|
export type { FormHintProps } from './FormHint';
|
|
@@ -37,9 +37,9 @@ export { default as FormError } from './FormError';
|
|
|
37
37
|
export type { FormErrorProps } from './FormError';
|
|
38
38
|
export { default as FormLabel } from './FormLabel';
|
|
39
39
|
export type { FormLabelProps, RequiredDecoration } from './FormLabel';
|
|
40
|
-
export {
|
|
40
|
+
export { GridCompound as Grid } from './GridCompound';
|
|
41
41
|
export type { GridProps, GridSize } from './Grid';
|
|
42
|
-
export {
|
|
42
|
+
export { HelpboxCompound as Helpbox } from './HelpboxCompound';
|
|
43
43
|
export type { HelpboxProps } from './Helpbox';
|
|
44
44
|
export { default as Image } from './Image';
|
|
45
45
|
export type { ImageProps } from './Image';
|
|
@@ -58,15 +58,15 @@ export { default as Loader } from './Loader';
|
|
|
58
58
|
export type { LoaderProps } from './Loader';
|
|
59
59
|
export { default as Logo } from './Logo';
|
|
60
60
|
export type { LogoProps } from './Logo';
|
|
61
|
-
export {
|
|
61
|
+
export { MenuCompound as Menu } from './MenuCompound';
|
|
62
62
|
export type { MenuProps } from './Menu';
|
|
63
63
|
export { default as MenuItem } from './MenuItem';
|
|
64
64
|
export type { MenuItemProps } from './MenuItem';
|
|
65
|
-
export {
|
|
65
|
+
export { ModalCompound as Modal } from './ModalCompound';
|
|
66
66
|
export type { ModalProps } from './Modal';
|
|
67
67
|
export { default as MonthSelect } from './MonthSelect';
|
|
68
68
|
export type { MonthSelectProps } from './MonthSelect';
|
|
69
|
-
export {
|
|
69
|
+
export { NotificationCompound as Notification } from './NotificationCompound';
|
|
70
70
|
export type { NotificationProps } from './Notification';
|
|
71
71
|
export { default as NotificationActions } from './NotificationActions';
|
|
72
72
|
export type { NotificationActionsProps } from './NotificationActions';
|
|
@@ -80,7 +80,7 @@ export { default as Paper } from './Paper';
|
|
|
80
80
|
export type { PaperProps } from './Paper';
|
|
81
81
|
export { default as PromptModal } from './PromptModal';
|
|
82
82
|
export type { PromptModalProps } from './PromptModal';
|
|
83
|
-
export {
|
|
83
|
+
export { RadioCompound as Radio } from './RadioCompound';
|
|
84
84
|
export type { RadioProps } from './Radio';
|
|
85
85
|
export type { RadioGroupProps } from './RadioGroup';
|
|
86
86
|
export { default as RichTextEditor } from './RichTextEditor';
|
|
@@ -100,9 +100,9 @@ export { TableCompound as Table } from './TableCompound';
|
|
|
100
100
|
export type { TableProps } from './Table';
|
|
101
101
|
export { default as TableFooter } from './TableFooter';
|
|
102
102
|
export type { TableFooterProps } from './TableFooter';
|
|
103
|
-
export {
|
|
103
|
+
export { TabsCompound as Tabs } from './TabsCompound';
|
|
104
104
|
export type { TabsProps } from './Tabs';
|
|
105
|
-
export {
|
|
105
|
+
export { TagSelectorCompound as TagSelector } from './TagSelectorCompound';
|
|
106
106
|
export type { TagSelectorProps } from './TagSelector';
|
|
107
107
|
export { default as Tooltip } from './Tooltip';
|
|
108
108
|
export type { TooltipProps } from './Tooltip';
|
|
@@ -114,7 +114,7 @@ export { default as YearSelect } from './YearSelect';
|
|
|
114
114
|
export type { YearSelectProps } from './YearSelect';
|
|
115
115
|
export { default as ApplicationUpdateNotification } from './ApplicationUpdateNotification';
|
|
116
116
|
export type { ApplicationUpdateNotificationProps } from './ApplicationUpdateNotification';
|
|
117
|
-
export {
|
|
117
|
+
export { AlertCompound as Alert } from './AlertCompound';
|
|
118
118
|
export type { AlertProps } from './Alert';
|
|
119
119
|
export type { AlertInlineProps } from './AlertInline';
|
|
120
120
|
export { default as Switch } from './Switch';
|
|
@@ -137,7 +137,7 @@ export { default as List } from './List';
|
|
|
137
137
|
export type { ListProps } from './List';
|
|
138
138
|
export { default as Badge } from './Badge';
|
|
139
139
|
export type { BadgeProps } from './Badge';
|
|
140
|
-
export {
|
|
140
|
+
export { BreadcrumbsCompound as Breadcrumbs } from './BreadcrumbsCompound';
|
|
141
141
|
export type { BreadcrumbsProps } from './Breadcrumbs';
|
|
142
142
|
export { default as Calendar } from './Calendar';
|
|
143
143
|
export type { DateOrDateRangeType } from './Calendar';
|
|
@@ -147,14 +147,14 @@ export { default as Drawer } from './Drawer';
|
|
|
147
147
|
export type { DrawerProps } from './Drawer';
|
|
148
148
|
export { default as Dropzone, ErrorCode as DropzoneErrorCode } from './Dropzone';
|
|
149
149
|
export type { DropzoneProps, FileUpload as DropzoneFileUpload, FileError as DropzoneFileError, FileRejection as DropzoneFileRejection, DropEvent as DropzoneDropEvent, } from './Dropzone';
|
|
150
|
-
export {
|
|
150
|
+
export { OverviewBlockCompound as OverviewBlock } from './OverviewBlockCompound';
|
|
151
151
|
export type { OverviewBlockProps } from './OverviewBlock';
|
|
152
152
|
export { default as TypographyOverflow } from './TypographyOverflow';
|
|
153
153
|
export type { TypographyOverflowProps } from './TypographyOverflow';
|
|
154
154
|
export { default as EmptyState } from './EmptyState';
|
|
155
155
|
export { default as Section } from './Section';
|
|
156
156
|
export type { SectionProps } from './Section';
|
|
157
|
-
export {
|
|
157
|
+
export { NoteCompound as Note } from './NoteCompound';
|
|
158
158
|
export type { NoteProps } from './Note';
|
|
159
159
|
export { default as Timeline } from './Timeline';
|
|
160
160
|
export type { TimelineProps } from './Timeline';
|
package/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { AccordionCompound as Accordion } from './AccordionCompound';
|
|
2
2
|
export { default as AccountSelect } from './AccountSelect';
|
|
3
3
|
export { default as Amount } from './Amount';
|
|
4
4
|
export { default as Autocomplete } from './Autocomplete';
|
|
5
5
|
export { AvatarCompound as Avatar } from './AvatarCompound';
|
|
6
6
|
export { ButtonCompound as Button } from './ButtonCompound';
|
|
7
|
-
export {
|
|
7
|
+
export { CheckboxCompound as Checkbox } from './CheckboxCompound';
|
|
8
8
|
export { default as Container } from './Container';
|
|
9
|
-
export {
|
|
9
|
+
export { DropdownCompound as Dropdown } from './DropdownCompound';
|
|
10
10
|
export { default as DropdownArrow } from './DropdownArrow';
|
|
11
11
|
export { default as EnvironmentBanner } from './EnvironmentBanner';
|
|
12
12
|
export { default as FileInput } from './FileInput';
|
|
13
13
|
export { default as FileList } from './FileList';
|
|
14
|
-
export {
|
|
14
|
+
export { FormCompound as Form } from './FormCompound';
|
|
15
15
|
export { default as FormHint } from './FormHint';
|
|
16
16
|
export { default as FormError } from './FormError';
|
|
17
17
|
export { default as FormLabel } from './FormLabel';
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
18
|
+
export { GridCompound as Grid } from './GridCompound';
|
|
19
|
+
export { HelpboxCompound as Helpbox } from './HelpboxCompound';
|
|
20
20
|
export { default as Image } from './Image';
|
|
21
21
|
export { default as Indicator } from './Indicator';
|
|
22
22
|
export { default as Input } from './Input';
|
|
@@ -25,18 +25,18 @@ export { TagCompound as Tag } from './TagCompound';
|
|
|
25
25
|
export { default as Link } from './Link';
|
|
26
26
|
export { default as Loader } from './Loader';
|
|
27
27
|
export { default as Logo } from './Logo';
|
|
28
|
-
export {
|
|
28
|
+
export { MenuCompound as Menu } from './MenuCompound';
|
|
29
29
|
export { default as MenuItem } from './MenuItem';
|
|
30
|
-
export {
|
|
30
|
+
export { ModalCompound as Modal } from './ModalCompound';
|
|
31
31
|
export { default as MonthSelect } from './MonthSelect';
|
|
32
|
-
export {
|
|
32
|
+
export { NotificationCompound as Notification } from './NotificationCompound';
|
|
33
33
|
export { default as NotificationActions } from './NotificationActions';
|
|
34
34
|
export { default as NumberInput } from './NumberInput';
|
|
35
35
|
export { PageCompound as Page } from './PageCompound';
|
|
36
36
|
export { default as Pagination } from './Pagination';
|
|
37
37
|
export { default as Paper } from './Paper';
|
|
38
38
|
export { default as PromptModal } from './PromptModal';
|
|
39
|
-
export {
|
|
39
|
+
export { RadioCompound as Radio } from './RadioCompound';
|
|
40
40
|
export { default as RichTextEditor } from './RichTextEditor';
|
|
41
41
|
export { default as Select } from './Select';
|
|
42
42
|
export { default as Slider } from './Slider';
|
|
@@ -44,14 +44,14 @@ export { default as ShowMore } from './ShowMore';
|
|
|
44
44
|
export { StepperCompound as Stepper } from './StepperCompound';
|
|
45
45
|
export { TableCompound as Table } from './TableCompound';
|
|
46
46
|
export { default as TableFooter } from './TableFooter';
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
47
|
+
export { TabsCompound as Tabs } from './TabsCompound';
|
|
48
|
+
export { TagSelectorCompound as TagSelector } from './TagSelectorCompound';
|
|
49
49
|
export { default as Tooltip } from './Tooltip';
|
|
50
50
|
export { default as Typography } from './Typography';
|
|
51
51
|
export { default as UserBadge } from './UserBadge';
|
|
52
52
|
export { default as YearSelect } from './YearSelect';
|
|
53
53
|
export { default as ApplicationUpdateNotification } from './ApplicationUpdateNotification';
|
|
54
|
-
export {
|
|
54
|
+
export { AlertCompound as Alert } from './AlertCompound';
|
|
55
55
|
export { default as Switch } from './Switch';
|
|
56
56
|
export { default as Quote } from './Quote';
|
|
57
57
|
export { default as Rating } from './Rating';
|
|
@@ -63,16 +63,16 @@ export { default as PageHead } from './PageHead';
|
|
|
63
63
|
export { default as ProgressBar } from './ProgressBar';
|
|
64
64
|
export { default as List } from './List';
|
|
65
65
|
export { default as Badge } from './Badge';
|
|
66
|
-
export {
|
|
66
|
+
export { BreadcrumbsCompound as Breadcrumbs } from './BreadcrumbsCompound';
|
|
67
67
|
export { default as Calendar } from './Calendar';
|
|
68
68
|
export { default as DatePicker, datePickerParseDateString, DEFAULT_DATE_PICKER_DISPLAY_DATE_FORMAT, DEFAULT_DATE_PICKER_EDIT_DATE_FORMAT, } from './DatePicker';
|
|
69
69
|
export { default as Drawer } from './Drawer';
|
|
70
70
|
export { default as Dropzone, ErrorCode as DropzoneErrorCode } from './Dropzone';
|
|
71
|
-
export {
|
|
71
|
+
export { OverviewBlockCompound as OverviewBlock } from './OverviewBlockCompound';
|
|
72
72
|
export { default as TypographyOverflow } from './TypographyOverflow';
|
|
73
73
|
export { default as EmptyState } from './EmptyState';
|
|
74
74
|
export { default as Section } from './Section';
|
|
75
|
-
export {
|
|
75
|
+
export { NoteCompound as Note } from './NoteCompound';
|
|
76
76
|
export { default as Timeline } from './Timeline';
|
|
77
77
|
export { default as RichText } from './RichText';
|
|
78
78
|
export { default as PasswordInput } from './PasswordInput';
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE1D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,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GED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/picasso",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.2.0",
|
|
4
4
|
"description": "Toptal UI components library",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso#readme",
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@material-ui/core": "4.11.0",
|
|
27
|
+
"@toptal/picasso-provider": "^1.2.0",
|
|
27
28
|
"notistack": "1.0.6",
|
|
28
29
|
"react": ">=16.12.0 < 19.0.0",
|
|
29
30
|
"react-dom": ">=16.12.0 < 19.0.0",
|
|
30
31
|
"react-helmet": "6.1.0",
|
|
31
|
-
"@toptal/picasso-provider": "^1.2.0",
|
|
32
32
|
"typescript": "4.6.x"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@babel/types": "^7.15.0",
|
|
61
|
-
"@toptal/picasso-provider": "1.2.0",
|
|
62
61
|
"@testing-library/jest-dom": "^5.16.4",
|
|
63
62
|
"@testing-library/react": "^13.0.0",
|
|
64
63
|
"@testing-library/react-hooks": "^7.0.2",
|
|
64
|
+
"@toptal/picasso-provider": "1.2.0",
|
|
65
65
|
"@types/classnames": "^2.3.1",
|
|
66
66
|
"@types/d3": "^6.7.4",
|
|
67
67
|
"@types/quill": "^2.0.9",
|
package/test-utils/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import TestingPicasso from './TestingPicasso';
|
|
|
4
4
|
export declare type PicassoConfig = {
|
|
5
5
|
titleCase: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions,
|
|
7
|
+
declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>, "queries"> | undefined, picassoConfig?: PicassoConfig | undefined) => RenderResult;
|
|
8
8
|
export * from '@testing-library/react';
|
|
9
9
|
export { customRender as render, TestingPicasso };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { ReactNode, ReactElement } from 'react';
|
|
2
2
|
import { OptionsObject } from 'notistack';
|
|
3
3
|
export declare const useNotifications: () => {
|
|
4
|
-
showError: (content: ReactNode, icon?: ReactElement, options?: OptionsObject) => import("notistack").SnackbarKey;
|
|
5
|
-
showInfo: (content: ReactNode, icon?: ReactElement, options?: OptionsObject) => import("notistack").SnackbarKey;
|
|
6
|
-
showSuccess: (content: ReactNode, icon?: ReactElement, options?: OptionsObject) => import("notistack").SnackbarKey;
|
|
7
|
-
showCustom: (notificationElement: React.ReactElement, options?: OptionsObject) => import("notistack").SnackbarKey;
|
|
4
|
+
showError: (content: ReactNode, icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined, options?: OptionsObject | undefined) => import("notistack").SnackbarKey;
|
|
5
|
+
showInfo: (content: ReactNode, icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined, options?: OptionsObject | undefined) => import("notistack").SnackbarKey;
|
|
6
|
+
showSuccess: (content: ReactNode, icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined, options?: OptionsObject | undefined) => import("notistack").SnackbarKey;
|
|
7
|
+
showCustom: (notificationElement: React.ReactElement, options?: OptionsObject | undefined) => import("notistack").SnackbarKey;
|
|
8
8
|
closeNotification: (key?: import("notistack").SnackbarKey | undefined) => void;
|
|
9
9
|
};
|
package/utils/html-to-hast.js
CHANGED
|
@@ -9,7 +9,7 @@ export const hastSanitizeSchema = {
|
|
|
9
9
|
attributes: {
|
|
10
10
|
'*': [],
|
|
11
11
|
},
|
|
12
|
-
tagNames: ['h3', 'p', 'br', 'strong', 'em', 'ul', 'ol', 'li'],
|
|
12
|
+
tagNames: ['h3', 'p', 'br', 'strong', 'em', 'ul', 'ol', 'li', 'a'],
|
|
13
13
|
strip: ['script'],
|
|
14
14
|
};
|
|
15
15
|
const htmlToAst = (html) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-to-hast.js","sourceRoot":"","sources":["../../src/utils/html-to-hast.ts"],"names":[],"mappings":"AAAA,OAAO,YAAwB,MAAM,oBAAoB,CAAA;AACzD,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAI5C,MAAM,CAAC,MAAM,kBAAkB,GAAW;IACxC,aAAa,EAAE,KAAK;IACpB,aAAa,EAAE,KAAK;IACpB,SAAS,EAAE;QACT,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;KACjB;IACD,UAAU,EAAE;QACV,GAAG,EAAE,EAAE;KACR;IACD,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"html-to-hast.js","sourceRoot":"","sources":["../../src/utils/html-to-hast.ts"],"names":[],"mappings":"AAAA,OAAO,YAAwB,MAAM,oBAAoB,CAAA;AACzD,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAI5C,MAAM,CAAC,MAAM,kBAAkB,GAAW;IACxC,aAAa,EAAE,KAAK;IACpB,aAAa,EAAE,KAAK;IACpB,SAAS,EAAE;QACT,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;KACjB;IACD,UAAU,EAAE;QACV,GAAG,EAAE,EAAE;KACR;IACD,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC;IAClE,KAAK,EAAE,CAAC,QAAQ,CAAC;CAClB,CAAA;AAED,MAAM,SAAS,GAAG,CAAC,IAAY,EAAE,EAAE;IACjC,MAAM,GAAG,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,CAAA;IAC9D,MAAM,OAAO,GAAG,YAAY,CAC1B,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,EACrB,kBAAkB,CACJ,CAAA;IAEhB,MAAM,GAAG,GAAY;QACnB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,OAAO,CAAC,QAAQ;KAC3B,CAAA;IAED,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
|
package/utils/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export { default as isPointerDevice } from './is-pointer-device';
|
|
|
19
19
|
export { default as isString } from './is-string';
|
|
20
20
|
export { default as isSubstring } from './is-substring';
|
|
21
21
|
export { default as kebabToCamelCase } from './kebab-to-camel-case';
|
|
22
|
-
export { Maybe } from './monads';
|
|
22
|
+
export type { Maybe } from './monads';
|
|
23
23
|
export { default as noop } from './noop';
|
|
24
24
|
export { default as toTitleCase } from './to-title-case';
|
|
25
25
|
export { default as useCombinedRefs } from './use-combined-refs';
|