@toptal/picasso-lab 9.3.1 → 10.0.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/{dist-package/Calendar → Calendar}/Calendar.d.ts +0 -0
- package/{dist-package/Calendar → Calendar}/Calendar.js +0 -0
- package/{dist-package/Calendar → Calendar}/Calendar.js.map +0 -0
- package/{dist-package/Calendar → Calendar}/index.d.ts +0 -0
- package/{dist-package/Calendar → Calendar}/index.js +0 -0
- package/{dist-package/Calendar → Calendar}/index.js.map +0 -0
- package/{dist-package/Calendar → Calendar}/styles.d.ts +0 -0
- package/{dist-package/Calendar → Calendar}/styles.js +0 -0
- package/{dist-package/Calendar → Calendar}/styles.js.map +0 -0
- package/{dist-package/Calendar → Calendar}/types.d.ts +0 -0
- package/{dist-package/Calendar → Calendar}/types.js +0 -0
- package/{dist-package/Calendar → Calendar}/types.js.map +0 -0
- package/{dist-package/DatePicker → DatePicker}/DatePicker.d.ts +0 -0
- package/{dist-package/DatePicker → DatePicker}/DatePicker.js +0 -0
- package/{dist-package/DatePicker → DatePicker}/DatePicker.js.map +0 -0
- package/{dist-package/DatePicker → DatePicker}/constants.d.ts +0 -0
- package/{dist-package/DatePicker → DatePicker}/constants.js +0 -0
- package/{dist-package/DatePicker → DatePicker}/constants.js.map +0 -0
- package/{dist-package/DatePicker → DatePicker}/index.d.ts +0 -0
- package/{dist-package/DatePicker → DatePicker}/index.js +0 -0
- package/{dist-package/DatePicker → DatePicker}/index.js.map +0 -0
- package/{dist-package/DatePicker → DatePicker}/styles.d.ts +0 -0
- package/{dist-package/DatePicker → DatePicker}/styles.js +0 -0
- package/{dist-package/DatePicker → DatePicker}/styles.js.map +0 -0
- package/{dist-package/DatePicker → DatePicker}/types.d.ts +0 -0
- package/{dist-package/DatePicker → DatePicker}/types.js +0 -0
- package/{dist-package/DatePicker → DatePicker}/types.js.map +0 -0
- package/{dist-package/DatePicker → DatePicker}/utils.d.ts +0 -0
- package/{dist-package/DatePicker → DatePicker}/utils.js +0 -0
- package/{dist-package/DatePicker → DatePicker}/utils.js.map +0 -0
- package/{dist-package/Drawer → Drawer}/Drawer.d.ts +0 -0
- package/{dist-package/Drawer → Drawer}/Drawer.js +0 -0
- package/{dist-package/Drawer → Drawer}/Drawer.js.map +0 -0
- package/{dist-package/Drawer → Drawer}/index.d.ts +0 -0
- package/{dist-package/Drawer → Drawer}/index.js +0 -0
- package/{dist-package/Drawer → Drawer}/index.js.map +0 -0
- package/{dist-package/Drawer → Drawer}/styles.d.ts +0 -0
- package/{dist-package/Drawer → Drawer}/styles.js +0 -0
- package/{dist-package/Drawer → Drawer}/styles.js.map +0 -0
- package/{dist-package/DrawerTitle → DrawerTitle}/DrawerTitle.d.ts +0 -0
- package/{dist-package/DrawerTitle → DrawerTitle}/DrawerTitle.js +0 -0
- package/{dist-package/DrawerTitle → DrawerTitle}/DrawerTitle.js.map +0 -0
- package/{dist-package/DrawerTitle → DrawerTitle}/index.d.ts +0 -0
- package/{dist-package/DrawerTitle → DrawerTitle}/index.js +0 -0
- package/{dist-package/DrawerTitle → DrawerTitle}/index.js.map +0 -0
- package/{dist-package/DrawerTitle → DrawerTitle}/styles.d.ts +0 -0
- package/{dist-package/DrawerTitle → DrawerTitle}/styles.js +0 -0
- package/{dist-package/DrawerTitle → DrawerTitle}/styles.js.map +0 -0
- package/{dist-package/Dropzone → Dropzone}/Dropzone.d.ts +0 -0
- package/{dist-package/Dropzone → Dropzone}/Dropzone.js +0 -0
- package/{dist-package/Dropzone → Dropzone}/Dropzone.js.map +0 -0
- package/{dist-package/Dropzone → Dropzone}/index.d.ts +0 -0
- package/{dist-package/Dropzone → Dropzone}/index.js +0 -0
- package/{dist-package/Dropzone → Dropzone}/index.js.map +0 -0
- package/{dist-package/Dropzone → Dropzone}/styles.d.ts +0 -0
- package/{dist-package/Dropzone → Dropzone}/styles.js +0 -0
- package/{dist-package/Dropzone → Dropzone}/styles.js.map +0 -0
- package/{dist-package/Dropzone → Dropzone}/types.d.ts +0 -0
- package/{dist-package/Dropzone → Dropzone}/types.js +0 -0
- package/{dist-package/Dropzone → Dropzone}/types.js.map +0 -0
- package/{dist-package/EmptyState → EmptyState}/EmptyState.d.ts +0 -0
- package/{dist-package/EmptyState → EmptyState}/EmptyState.js +0 -0
- package/{dist-package/EmptyState → EmptyState}/EmptyState.js.map +0 -0
- package/{dist-package/EmptyState → EmptyState}/index.d.ts +0 -0
- package/{dist-package/EmptyState → EmptyState}/index.js +0 -0
- package/{dist-package/EmptyState → EmptyState}/index.js.map +0 -0
- package/{dist-package/EmptyStateCollection → EmptyStateCollection}/EmptyStateCollection.d.ts +0 -0
- package/{dist-package/EmptyStateCollection → EmptyStateCollection}/EmptyStateCollection.js +0 -0
- package/{dist-package/EmptyStateCollection → EmptyStateCollection}/EmptyStateCollection.js.map +0 -0
- package/{dist-package/EmptyStateCollection → EmptyStateCollection}/index.d.ts +0 -0
- package/{dist-package/EmptyStateCollection → EmptyStateCollection}/index.js +0 -0
- package/{dist-package/EmptyStateCollection → EmptyStateCollection}/index.js.map +0 -0
- package/{dist-package/EmptyStateCollection → EmptyStateCollection}/styles.d.ts +0 -0
- package/{dist-package/EmptyStateCollection → EmptyStateCollection}/styles.js +0 -0
- package/{dist-package/EmptyStateCollection → EmptyStateCollection}/styles.js.map +0 -0
- package/{dist-package/EmptyStatePage → EmptyStatePage}/EmptyStatePage.d.ts +0 -0
- package/{dist-package/EmptyStatePage → EmptyStatePage}/EmptyStatePage.js +0 -0
- package/{dist-package/EmptyStatePage → EmptyStatePage}/EmptyStatePage.js.map +0 -0
- package/{dist-package/EmptyStatePage → EmptyStatePage}/index.d.ts +0 -0
- package/{dist-package/EmptyStatePage → EmptyStatePage}/index.js +0 -0
- package/{dist-package/EmptyStatePage → EmptyStatePage}/index.js.map +0 -0
- package/{dist-package/EmptyStatePage → EmptyStatePage}/styles.d.ts +0 -0
- package/{dist-package/EmptyStatePage → EmptyStatePage}/styles.js +0 -0
- package/{dist-package/EmptyStatePage → EmptyStatePage}/styles.js.map +0 -0
- package/{dist-package/Note → Note}/Note.d.ts +0 -0
- package/{dist-package/Note → Note}/Note.js +0 -0
- package/{dist-package/Note → Note}/Note.js.map +0 -0
- package/{dist-package/Note → Note}/index.d.ts +0 -0
- package/{dist-package/Note → Note}/index.js +0 -0
- package/{dist-package/Note → Note}/index.js.map +0 -0
- package/{dist-package/Note → Note}/styles.d.ts +0 -0
- package/{dist-package/Note → Note}/styles.js +0 -0
- package/{dist-package/Note → Note}/styles.js.map +0 -0
- package/{dist-package/NoteContent → NoteContent}/NoteContent.d.ts +0 -0
- package/{dist-package/NoteContent → NoteContent}/NoteContent.js +0 -0
- package/{dist-package/NoteContent → NoteContent}/NoteContent.js.map +0 -0
- package/{dist-package/NoteContent → NoteContent}/index.d.ts +0 -0
- package/{dist-package/NoteContent → NoteContent}/index.js +0 -0
- package/{dist-package/NoteContent → NoteContent}/index.js.map +0 -0
- package/{dist-package/NoteSubtitle → NoteSubtitle}/NoteSubtitle.d.ts +0 -0
- package/{dist-package/NoteSubtitle → NoteSubtitle}/NoteSubtitle.js +0 -0
- package/{dist-package/NoteSubtitle → NoteSubtitle}/NoteSubtitle.js.map +0 -0
- package/{dist-package/NoteSubtitle → NoteSubtitle}/index.d.ts +0 -0
- package/{dist-package/NoteSubtitle → NoteSubtitle}/index.js +0 -0
- package/{dist-package/NoteSubtitle → NoteSubtitle}/index.js.map +0 -0
- package/{dist-package/NoteTitle → NoteTitle}/NoteTitle.d.ts +0 -0
- package/{dist-package/NoteTitle → NoteTitle}/NoteTitle.js +0 -0
- package/{dist-package/NoteTitle → NoteTitle}/NoteTitle.js.map +0 -0
- package/{dist-package/NoteTitle → NoteTitle}/index.d.ts +0 -0
- package/{dist-package/NoteTitle → NoteTitle}/index.js +0 -0
- package/{dist-package/NoteTitle → NoteTitle}/index.js.map +0 -0
- package/{dist-package/NoteTitle → NoteTitle}/styles.d.ts +0 -0
- package/{dist-package/NoteTitle → NoteTitle}/styles.js +0 -0
- package/{dist-package/NoteTitle → NoteTitle}/styles.js.map +0 -0
- package/{dist-package/OverviewBlock → OverviewBlock}/OverviewBlock.d.ts +0 -0
- package/{dist-package/OverviewBlock → OverviewBlock}/OverviewBlock.js +0 -0
- package/{dist-package/OverviewBlock → OverviewBlock}/OverviewBlock.js.map +0 -0
- package/{dist-package/OverviewBlock → OverviewBlock}/index.d.ts +0 -0
- package/{dist-package/OverviewBlock → OverviewBlock}/index.js +0 -0
- package/{dist-package/OverviewBlock → OverviewBlock}/index.js.map +0 -0
- package/{dist-package/OverviewBlock → OverviewBlock}/styles.d.ts +0 -0
- package/{dist-package/OverviewBlock → OverviewBlock}/styles.js +0 -0
- package/{dist-package/OverviewBlock → OverviewBlock}/styles.js.map +0 -0
- package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/OverviewBlockGroup.d.ts +0 -0
- package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/OverviewBlockGroup.js +0 -0
- package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/OverviewBlockGroup.js.map +0 -0
- package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/OverviewBlockGroupContext.d.ts +0 -0
- package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/OverviewBlockGroupContext.js +0 -0
- package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/OverviewBlockGroupContext.js.map +0 -0
- package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/index.d.ts +0 -0
- package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/index.js +0 -0
- package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/index.js.map +0 -0
- package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/settings.d.ts +0 -0
- package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/settings.js +0 -0
- package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/settings.js.map +0 -0
- package/{dist-package/OverviewBlockRow → OverviewBlockRow}/OverviewBlockRow.d.ts +0 -0
- package/{dist-package/OverviewBlockRow → OverviewBlockRow}/OverviewBlockRow.js +0 -0
- package/{dist-package/OverviewBlockRow → OverviewBlockRow}/OverviewBlockRow.js.map +0 -0
- package/{dist-package/OverviewBlockRow → OverviewBlockRow}/index.d.ts +0 -0
- package/{dist-package/OverviewBlockRow → OverviewBlockRow}/index.js +0 -0
- package/{dist-package/OverviewBlockRow → OverviewBlockRow}/index.js.map +0 -0
- package/{dist-package/OverviewBlockRow → OverviewBlockRow}/styles.d.ts +0 -0
- package/{dist-package/OverviewBlockRow → OverviewBlockRow}/styles.js +0 -0
- package/{dist-package/OverviewBlockRow → OverviewBlockRow}/styles.js.map +0 -0
- package/{dist-package/Section → Section}/Section.d.ts +0 -0
- package/{dist-package/Section → Section}/Section.js +0 -0
- package/{dist-package/Section → Section}/Section.js.map +0 -0
- package/{dist-package/Section → Section}/index.d.ts +0 -0
- package/{dist-package/Section → Section}/index.js +0 -0
- package/{dist-package/Section → Section}/index.js.map +0 -0
- package/{dist-package/Section → Section}/styles.d.ts +0 -0
- package/{dist-package/Section → Section}/styles.js +0 -0
- package/{dist-package/Section → Section}/styles.js.map +0 -0
- package/{dist-package/Timeline → Timeline}/Timeline.d.ts +0 -0
- package/{dist-package/Timeline → Timeline}/Timeline.js +0 -0
- package/{dist-package/Timeline → Timeline}/Timeline.js.map +0 -0
- package/{dist-package/Timeline → Timeline}/index.d.ts +0 -0
- package/{dist-package/Timeline → Timeline}/index.js +0 -0
- package/{dist-package/Timeline → Timeline}/index.js.map +0 -0
- package/{dist-package/TimelineRow → TimelineRow}/TimelineRow.d.ts +0 -0
- package/{dist-package/TimelineRow → TimelineRow}/TimelineRow.js +0 -0
- package/{dist-package/TimelineRow → TimelineRow}/TimelineRow.js.map +0 -0
- package/{dist-package/TimelineRow → TimelineRow}/index.d.ts +0 -0
- package/{dist-package/TimelineRow → TimelineRow}/index.js +0 -0
- package/{dist-package/TimelineRow → TimelineRow}/index.js.map +0 -0
- package/{dist-package/TimelineRow → TimelineRow}/styles.d.ts +0 -0
- package/{dist-package/TimelineRow → TimelineRow}/styles.js +0 -0
- package/{dist-package/TimelineRow → TimelineRow}/styles.js.map +0 -0
- package/{dist-package/TypographyOverflow → TypographyOverflow}/TypographyOverflow.d.ts +0 -0
- package/{dist-package/TypographyOverflow → TypographyOverflow}/TypographyOverflow.js +0 -0
- package/{dist-package/TypographyOverflow → TypographyOverflow}/TypographyOverflow.js.map +0 -0
- package/{dist-package/TypographyOverflow → TypographyOverflow}/index.d.ts +0 -0
- package/{dist-package/TypographyOverflow → TypographyOverflow}/index.js +0 -0
- package/{dist-package/TypographyOverflow → TypographyOverflow}/index.js.map +0 -0
- package/{dist-package/TypographyOverflow → TypographyOverflow}/styles.d.ts +0 -0
- package/{dist-package/TypographyOverflow → TypographyOverflow}/styles.js +0 -0
- package/{dist-package/TypographyOverflow → TypographyOverflow}/styles.js.map +0 -0
- package/{dist-package/index.d.ts → index.d.ts} +0 -0
- package/{dist-package/index.js → index.js} +0 -0
- package/{dist-package/index.js.map → index.js.map} +0 -0
- package/package.json +5 -5
- package/CHANGELOG.md +0 -1385
- package/dist-package/README.md +0 -26
- package/dist-package/package.json +0 -53
- package/src/Calendar/Calendar.tsx +0 -215
- package/src/Calendar/__snapshots__/test.tsx.snap +0 -447
- package/src/Calendar/index.ts +0 -2
- package/src/Calendar/styles.ts +0 -104
- package/src/Calendar/test.tsx +0 -20
- package/src/Calendar/types.ts +0 -42
- package/src/DatePicker/DatePicker.tsx +0 -366
- package/src/DatePicker/__image_snapshots__/datepicker-full-width-snap.png +0 -0
- package/src/DatePicker/__image_snapshots__/datepicker-with-custom-day-rendering-snap.png +0 -0
- package/src/DatePicker/__snapshots__/test.tsx.snap +0 -51
- package/src/DatePicker/constants.ts +0 -2
- package/src/DatePicker/index.ts +0 -5
- package/src/DatePicker/story/AllowCustomValue.example.tsx +0 -33
- package/src/DatePicker/story/Autocomplete.example.tsx +0 -47
- package/src/DatePicker/story/Default.example.tsx +0 -19
- package/src/DatePicker/story/Error.example.tsx +0 -26
- package/src/DatePicker/story/Range.example.tsx +0 -22
- package/src/DatePicker/story/WithCustomDayRendering.example.tsx +0 -47
- package/src/DatePicker/story/WithInitialValue.example.tsx +0 -19
- package/src/DatePicker/story/WithInputProps.example.tsx +0 -24
- package/src/DatePicker/story/WithNoHideOnSelect.example.tsx +0 -20
- package/src/DatePicker/story/WithOnBlurHandler.example.tsx +0 -22
- package/src/DatePicker/story/WithSelectionLimits.example.tsx +0 -32
- package/src/DatePicker/story/WithTimezone.example.tsx +0 -25
- package/src/DatePicker/story/index.jsx +0 -50
- package/src/DatePicker/styles.ts +0 -8
- package/src/DatePicker/test.tsx +0 -370
- package/src/DatePicker/types.ts +0 -13
- package/src/DatePicker/utils.ts +0 -123
- package/src/Drawer/Drawer.tsx +0 -105
- package/src/Drawer/__image_snapshots__/drawer-custom-title-effect-1-snap.png +0 -0
- package/src/Drawer/__image_snapshots__/drawer-custom-title-snap.png +0 -0
- package/src/Drawer/__image_snapshots__/drawer-default-effect-1-snap.png +0 -0
- package/src/Drawer/__image_snapshots__/drawer-default-snap.png +0 -0
- package/src/Drawer/__image_snapshots__/drawer-width-effect-1-snap.png +0 -0
- package/src/Drawer/__image_snapshots__/drawer-width-effect-2-snap.png +0 -0
- package/src/Drawer/__image_snapshots__/drawer-width-effect-3-snap.png +0 -0
- package/src/Drawer/__image_snapshots__/drawer-width-effect-4-snap.png +0 -0
- package/src/Drawer/__image_snapshots__/drawer-width-effect-5-snap.png +0 -0
- package/src/Drawer/__image_snapshots__/drawer-width-snap.png +0 -0
- package/src/Drawer/__image_snapshots__/drawer-without-title-effect-1-snap.png +0 -0
- package/src/Drawer/__image_snapshots__/drawer-without-title-snap.png +0 -0
- package/src/Drawer/index.ts +0 -6
- package/src/Drawer/story/CustomTitle.example.tsx +0 -32
- package/src/Drawer/story/Default.example.tsx +0 -29
- package/src/Drawer/story/DrawerAndNotification.example.tsx +0 -34
- package/src/Drawer/story/Widths.example.tsx +0 -46
- package/src/Drawer/story/WithoutTitle.example.tsx +0 -22
- package/src/Drawer/story/index.jsx +0 -80
- package/src/Drawer/styles.ts +0 -42
- package/src/DrawerTitle/DrawerTitle.tsx +0 -35
- package/src/DrawerTitle/index.ts +0 -1
- package/src/DrawerTitle/styles.ts +0 -12
- package/src/Dropzone/Dropzone.tsx +0 -146
- package/src/Dropzone/__snapshots__/test.tsx.snap +0 -40
- package/src/Dropzone/index.ts +0 -7
- package/src/Dropzone/story/Default.example.tsx +0 -8
- package/src/Dropzone/story/Disabled.example.tsx +0 -25
- package/src/Dropzone/story/Error.example.tsx +0 -16
- package/src/Dropzone/story/Multiple.example.tsx +0 -30
- package/src/Dropzone/story/Uploader.example.tsx +0 -116
- package/src/Dropzone/story/Uploading.example.tsx +0 -16
- package/src/Dropzone/story/index.jsx +0 -85
- package/src/Dropzone/styles.ts +0 -43
- package/src/Dropzone/test.tsx +0 -33
- package/src/Dropzone/types.ts +0 -56
- package/src/EmptyState/EmptyState.tsx +0 -7
- package/src/EmptyState/index.tsx +0 -1
- package/src/EmptyState/story/index.jsx +0 -13
- package/src/EmptyStateCollection/EmptyStateCollection.tsx +0 -56
- package/src/EmptyStateCollection/__image_snapshots__/emptystate-collection-emptystatecollection-snap.png +0 -0
- package/src/EmptyStateCollection/index.tsx +0 -1
- package/src/EmptyStateCollection/story/Default.example.tsx +0 -11
- package/src/EmptyStateCollection/story/index.jsx +0 -20
- package/src/EmptyStateCollection/styles.ts +0 -10
- package/src/EmptyStatePage/EmptyStatePage.tsx +0 -65
- package/src/EmptyStatePage/__image_snapshots__/emptystate-page-emptystatepage-snap.png +0 -0
- package/src/EmptyStatePage/index.tsx +0 -1
- package/src/EmptyStatePage/story/Default.example.tsx +0 -21
- package/src/EmptyStatePage/story/index.jsx +0 -21
- package/src/EmptyStatePage/styles.ts +0 -9
- package/src/Note/Note.tsx +0 -36
- package/src/Note/__snapshots__/test.tsx.snap +0 -37
- package/src/Note/index.ts +0 -6
- package/src/Note/story/Default.example.tsx +0 -14
- package/src/Note/story/index.jsx +0 -23
- package/src/Note/styles.ts +0 -27
- package/src/Note/test.tsx +0 -22
- package/src/NoteContent/NoteContent.tsx +0 -23
- package/src/NoteContent/index.ts +0 -1
- package/src/NoteContent/story/index.jsx +0 -12
- package/src/NoteSubtitle/NoteSubtitle.tsx +0 -25
- package/src/NoteSubtitle/index.ts +0 -1
- package/src/NoteSubtitle/story/index.jsx +0 -12
- package/src/NoteTitle/NoteTitle.tsx +0 -34
- package/src/NoteTitle/index.ts +0 -1
- package/src/NoteTitle/story/index.jsx +0 -12
- package/src/NoteTitle/styles.ts +0 -8
- package/src/OverviewBlock/OverviewBlock.tsx +0 -125
- package/src/OverviewBlock/__image_snapshots__/overviewblock-default-snap.png +0 -0
- package/src/OverviewBlock/__image_snapshots__/overviewblock-multi-line-snap.png +0 -0
- package/src/OverviewBlock/__image_snapshots__/overviewblock-number-snap.png +0 -0
- package/src/OverviewBlock/__image_snapshots__/overviewblock-routing-snap.png +0 -0
- package/src/OverviewBlock/__image_snapshots__/overviewblock-text-snap.png +0 -0
- package/src/OverviewBlock/index.ts +0 -6
- package/src/OverviewBlock/story/Default.example.tsx +0 -35
- package/src/OverviewBlock/story/Multiline.example.tsx +0 -51
- package/src/OverviewBlock/story/Number.example.tsx +0 -20
- package/src/OverviewBlock/story/Routing.example.tsx +0 -40
- package/src/OverviewBlock/story/Text.example.tsx +0 -15
- package/src/OverviewBlock/story/index.jsx +0 -100
- package/src/OverviewBlock/styles.ts +0 -44
- package/src/OverviewBlock/test.tsx +0 -111
- package/src/OverviewBlockGroup/OverviewBlockGroup.tsx +0 -56
- package/src/OverviewBlockGroup/OverviewBlockGroupContext.tsx +0 -21
- package/src/OverviewBlockGroup/__image_snapshots__/visual-variants-of-the-groups-block-width-snap.png +0 -0
- package/src/OverviewBlockGroup/__image_snapshots__/visual-variants-of-the-groups-center-aligned-snap.png +0 -0
- package/src/OverviewBlockGroup/index.ts +0 -1
- package/src/OverviewBlockGroup/settings.ts +0 -2
- package/src/OverviewBlockGroup/story/BlockWidth.example.tsx +0 -38
- package/src/OverviewBlockGroup/story/CenterAligned.example.tsx +0 -17
- package/src/OverviewBlockGroup/story/index.jsx +0 -25
- package/src/OverviewBlockGroup/test.tsx +0 -17
- package/src/OverviewBlockRow/OverviewBlockRow.tsx +0 -22
- package/src/OverviewBlockRow/index.ts +0 -1
- package/src/OverviewBlockRow/story/index.jsx +0 -11
- package/src/OverviewBlockRow/styles.ts +0 -27
- package/src/Section/Section.tsx +0 -163
- package/src/Section/__snapshots__/test.tsx.snap +0 -186
- package/src/Section/index.ts +0 -6
- package/src/Section/story/Actions.example.tsx +0 -85
- package/src/Section/story/Collapsible.example.tsx +0 -113
- package/src/Section/story/Default.example.tsx +0 -77
- package/src/Section/story/TitleSize.example.tsx +0 -34
- package/src/Section/story/Variant.example.tsx +0 -108
- package/src/Section/story/index.jsx +0 -35
- package/src/Section/styles.ts +0 -65
- package/src/Section/test.tsx +0 -115
- package/src/Timeline/Timeline.tsx +0 -25
- package/src/Timeline/__snapshots__/test.tsx.snap +0 -332
- package/src/Timeline/index.ts +0 -6
- package/src/Timeline/story/Dates.example.tsx +0 -52
- package/src/Timeline/story/Default.example.tsx +0 -34
- package/src/Timeline/story/TrimLastConnector.example.tsx +0 -29
- package/src/Timeline/story/index.jsx +0 -27
- package/src/Timeline/test.tsx +0 -101
- package/src/TimelineRow/TimelineRow.tsx +0 -83
- package/src/TimelineRow/index.ts +0 -6
- package/src/TimelineRow/story/index.jsx +0 -11
- package/src/TimelineRow/styles.ts +0 -47
- package/src/TypographyOverflow/TypographyOverflow.tsx +0 -153
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-checkbox-label-effect-1-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-checkbox-label-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-custom-tooltip-content-effect-1-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-custom-tooltip-content-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-default-effect-1-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-default-effect-2-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-default-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-delay-effect-1-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-delay-effect-2-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-delay-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-light-tooltip-background-effect-1-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-light-tooltip-background-effect-2-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-light-tooltip-background-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-multiline-effect-1-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-multiline-effect-2-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-multiline-effect-3-snap.png +0 -0
- package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-multiline-snap.png +0 -0
- package/src/TypographyOverflow/index.ts +0 -6
- package/src/TypographyOverflow/story/CheckboxLabel.example.tsx +0 -21
- package/src/TypographyOverflow/story/CustomTooltip.example.tsx +0 -22
- package/src/TypographyOverflow/story/Default.example.tsx +0 -32
- package/src/TypographyOverflow/story/Delay.example.tsx +0 -29
- package/src/TypographyOverflow/story/GridWithControls.example.tsx +0 -64
- package/src/TypographyOverflow/story/Multiline.example.tsx +0 -59
- package/src/TypographyOverflow/story/TooltipVariants.example.tsx +0 -23
- package/src/TypographyOverflow/story/index.jsx +0 -83
- package/src/TypographyOverflow/styles.ts +0 -29
- package/src/TypographyOverflow/test.tsx +0 -60
- package/src/index.ts +0 -35
- package/src/story/index.jsx +0 -10
- package/tsconfig.build.json +0 -7
package/dist-package/README.md
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# @toptal/picasso-lab
|
2
|
-
|
3
|
-
[](https://www.npmjs.com/package/@toptal/picasso-lab)
|
4
|
-
|
5
|
-
This package is a home of experimental features. Once APIs are battle tested and proven to work they are moved to `@toptal/picasso`.
|
6
|
-
|
7
|
-
## Prerequisites
|
8
|
-
|
9
|
-
The following peer dependencies are required:
|
10
|
-
|
11
|
-
- `@toptal/picasso`
|
12
|
-
- `@toptal/picasso-shared`
|
13
|
-
- `react`
|
14
|
-
- `react-dom`
|
15
|
-
|
16
|
-
## Setup
|
17
|
-
|
18
|
-
- `yarn add @toptal/picasso-lab`
|
19
|
-
|
20
|
-
## Limitations
|
21
|
-
|
22
|
-
This package does not practice strict [semantic versioning](https://semver.org/) and is not supported by our [Version Support Policy](https://toptal-core.atlassian.net/wiki/spaces/FE/pages/1357545615/Version+Support+Policy). Breaking changes can be rolled out as minor/path releases.
|
23
|
-
|
24
|
-
## Documentation
|
25
|
-
|
26
|
-
Documentation and demos are available at [picasso.toptal.net](https://picasso.toptal.net/).
|
@@ -1,53 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "@toptal/picasso-lab",
|
3
|
-
"version": "9.3.1",
|
4
|
-
"description": "Lab components of Picasso",
|
5
|
-
"author": "Toptal",
|
6
|
-
"homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso-lab#readme",
|
7
|
-
"license": "MIT",
|
8
|
-
"main": "index.js",
|
9
|
-
"module": "index.js",
|
10
|
-
"publishConfig": {
|
11
|
-
"access": "public"
|
12
|
-
},
|
13
|
-
"repository": {
|
14
|
-
"type": "git",
|
15
|
-
"url": "git+https://github.com/toptal/picasso.git"
|
16
|
-
},
|
17
|
-
"scripts": {
|
18
|
-
"build:package": "cross-env NODE_ENV=production node ../../bin/build.js --tsConfig=./tsconfig.build.json",
|
19
|
-
"prepublishOnly": "../../bin/prepublish.js"
|
20
|
-
},
|
21
|
-
"bugs": {
|
22
|
-
"url": "https://github.com/toptal/picasso/issues"
|
23
|
-
},
|
24
|
-
"peerDependencies": {
|
25
|
-
"@material-ui/core": "4.11.0",
|
26
|
-
"@toptal/picasso": "^13.4.2",
|
27
|
-
"@toptal/picasso-shared": "^7",
|
28
|
-
"popper.js": "^1.16.1",
|
29
|
-
"react": "^16.12.0",
|
30
|
-
"react-dom": "^16.12.0"
|
31
|
-
},
|
32
|
-
"dependencies": {
|
33
|
-
"@toptal/picasso-provider": "^0.3.1",
|
34
|
-
"ap-style-title-case": "^1.1.2",
|
35
|
-
"classnames": "^2.3.1",
|
36
|
-
"date-fns": "^2.9.0",
|
37
|
-
"date-fns-tz": "^1.1.3",
|
38
|
-
"react-dropzone": "^11.4.0",
|
39
|
-
"react-router-dom": "^5.2.0",
|
40
|
-
"simple-react-calendar": "^2.2.8"
|
41
|
-
},
|
42
|
-
"devDependencies": {
|
43
|
-
"@babel/types": "^7.15.0",
|
44
|
-
"@types/classnames": "^2.3.1",
|
45
|
-
"@types/styled-components": "^5.1.13",
|
46
|
-
"storybook-readme": "^5.0.9",
|
47
|
-
"styled-components": "^5.3.1"
|
48
|
-
},
|
49
|
-
"sideEffects": [
|
50
|
-
"**/styles.ts",
|
51
|
-
"**/styles.js"
|
52
|
-
]
|
53
|
-
}
|
@@ -1,215 +0,0 @@
|
|
1
|
-
import React, { forwardRef, ReactNode } from 'react'
|
2
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
3
|
-
// @ts-ignore
|
4
|
-
import SimpleReactCalendar from 'simple-react-calendar'
|
5
|
-
import cx from 'classnames'
|
6
|
-
import format from 'date-fns/format'
|
7
|
-
import { Theme, makeStyles } from '@material-ui/core/styles'
|
8
|
-
import { BaseProps } from '@toptal/picasso-shared'
|
9
|
-
import { Button, Typography } from '@toptal/picasso'
|
10
|
-
import { ChevronMinor16, BackMinor16 } from '@toptal/picasso/Icon'
|
11
|
-
|
12
|
-
import {
|
13
|
-
CalendarProps,
|
14
|
-
MonthHeaderProps,
|
15
|
-
WeekProps,
|
16
|
-
DayOfWeekProps,
|
17
|
-
DayProps,
|
18
|
-
DaysOfWeekProps
|
19
|
-
} from './types'
|
20
|
-
import styles from './styles'
|
21
|
-
|
22
|
-
type SimpleReactCalendarRangeType = {
|
23
|
-
start: Date
|
24
|
-
end: Date
|
25
|
-
}
|
26
|
-
export type DateOrDateRangeType = Date | DateRangeType
|
27
|
-
export type DateRangeType = [Date, Date]
|
28
|
-
|
29
|
-
export { DayProps }
|
30
|
-
|
31
|
-
const getNormalizedValue = (value: DateOrDateRangeType | undefined) => {
|
32
|
-
if (!value) {
|
33
|
-
return
|
34
|
-
}
|
35
|
-
|
36
|
-
if (value instanceof Date) {
|
37
|
-
return value
|
38
|
-
}
|
39
|
-
|
40
|
-
const [start, end] = value
|
41
|
-
|
42
|
-
return { start, end }
|
43
|
-
}
|
44
|
-
|
45
|
-
export interface Props
|
46
|
-
extends BaseProps,
|
47
|
-
Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur'> {
|
48
|
-
onChange: (value: DateOrDateRangeType) => void
|
49
|
-
onBlur?: (event: React.FocusEvent<HTMLDivElement>) => void
|
50
|
-
renderDay?: (args: DayProps) => ReactNode
|
51
|
-
minDate?: Date
|
52
|
-
maxDate?: Date
|
53
|
-
range?: boolean
|
54
|
-
value?: DateOrDateRangeType
|
55
|
-
activeMonth?: Date
|
56
|
-
disabledIntervals?: { start: Date; end: Date }[]
|
57
|
-
weekStartsOn?: number
|
58
|
-
}
|
59
|
-
|
60
|
-
const isDateRange = (
|
61
|
-
value: Date | SimpleReactCalendarRangeType
|
62
|
-
): value is SimpleReactCalendarRangeType => {
|
63
|
-
return !(value instanceof Date) && Boolean(value.start && value.end)
|
64
|
-
}
|
65
|
-
|
66
|
-
const useStyles = makeStyles<Theme>(styles, { name: 'PicassoCalendar' })
|
67
|
-
|
68
|
-
export const Calendar = forwardRef<HTMLDivElement, Props>(function Calendar(
|
69
|
-
props,
|
70
|
-
ref
|
71
|
-
) {
|
72
|
-
const classes = useStyles()
|
73
|
-
const {
|
74
|
-
range,
|
75
|
-
activeMonth,
|
76
|
-
value,
|
77
|
-
onChange,
|
78
|
-
minDate,
|
79
|
-
maxDate,
|
80
|
-
disabledIntervals,
|
81
|
-
renderDay,
|
82
|
-
weekStartsOn,
|
83
|
-
...rest
|
84
|
-
} = props
|
85
|
-
|
86
|
-
const handleChange = (selection: Date | SimpleReactCalendarRangeType) => {
|
87
|
-
if (isDateRange(selection)) {
|
88
|
-
const { start, end } = selection
|
89
|
-
|
90
|
-
onChange([start, end])
|
91
|
-
} else {
|
92
|
-
onChange(selection)
|
93
|
-
}
|
94
|
-
}
|
95
|
-
|
96
|
-
return (
|
97
|
-
<div ref={ref} {...rest} tabIndex={0}>
|
98
|
-
<SimpleReactCalendar
|
99
|
-
selected={getNormalizedValue(value)}
|
100
|
-
onSelect={handleChange}
|
101
|
-
customRender={({ children }: CalendarProps) => {
|
102
|
-
return <div className={classes.root}>{children}</div>
|
103
|
-
}}
|
104
|
-
renderDay={(dayProps: DayProps) => {
|
105
|
-
const {
|
106
|
-
key,
|
107
|
-
isDisabled,
|
108
|
-
isSelected,
|
109
|
-
isSelectable,
|
110
|
-
isToday,
|
111
|
-
isMonthNext,
|
112
|
-
isMonthPrev,
|
113
|
-
isSelectionStart,
|
114
|
-
isSelectionEnd,
|
115
|
-
handleOnClick,
|
116
|
-
handleOnEnter,
|
117
|
-
getDayFormatted,
|
118
|
-
date,
|
119
|
-
ISODate
|
120
|
-
} = dayProps
|
121
|
-
|
122
|
-
const defaultMarkup = (
|
123
|
-
<button
|
124
|
-
data-testid={`day-button-${
|
125
|
-
isSelected ? 'selected' : getDayFormatted(date)
|
126
|
-
}`}
|
127
|
-
data-simple-react-calendar-day={ISODate}
|
128
|
-
key={key}
|
129
|
-
tabIndex={isDisabled || !isSelectable ? -1 : undefined}
|
130
|
-
className={cx(classes.day, {
|
131
|
-
[classes.selected]: isSelected,
|
132
|
-
[classes.selectable]: isSelectable,
|
133
|
-
[classes.today]: isToday,
|
134
|
-
[classes.grayed]:
|
135
|
-
(isMonthPrev || isMonthNext) && !isSelected && !isDisabled,
|
136
|
-
[classes.disabled]: isDisabled || !isSelectable,
|
137
|
-
[classes.startSelection]: isSelectionStart,
|
138
|
-
[classes.endSelection]: isSelectionEnd
|
139
|
-
})}
|
140
|
-
onClick={handleOnClick}
|
141
|
-
onMouseEnter={handleOnEnter}
|
142
|
-
value={date.toString()}
|
143
|
-
type='button'
|
144
|
-
>
|
145
|
-
{getDayFormatted(date)}
|
146
|
-
</button>
|
147
|
-
)
|
148
|
-
|
149
|
-
return renderDay
|
150
|
-
? renderDay({
|
151
|
-
...dayProps,
|
152
|
-
children: defaultMarkup
|
153
|
-
})
|
154
|
-
: defaultMarkup
|
155
|
-
}}
|
156
|
-
renderMonthHeader={({
|
157
|
-
switchMonth,
|
158
|
-
activeMonth: headerActiveMonth
|
159
|
-
}: MonthHeaderProps) => {
|
160
|
-
return (
|
161
|
-
<div className={classes.actions}>
|
162
|
-
<Button
|
163
|
-
title='Previous month'
|
164
|
-
variant='secondary'
|
165
|
-
size='small'
|
166
|
-
onClick={() => switchMonth(-1)}
|
167
|
-
>
|
168
|
-
<BackMinor16 />
|
169
|
-
</Button>
|
170
|
-
<Typography variant='heading' size='medium'>
|
171
|
-
{format(headerActiveMonth, 'MMMM y')}
|
172
|
-
</Typography>
|
173
|
-
<Button
|
174
|
-
title='Next month'
|
175
|
-
variant='secondary'
|
176
|
-
size='small'
|
177
|
-
onClick={() => switchMonth(1)}
|
178
|
-
>
|
179
|
-
<ChevronMinor16 />
|
180
|
-
</Button>
|
181
|
-
</div>
|
182
|
-
)
|
183
|
-
}}
|
184
|
-
renderDaysOfWeek={({ children }: DaysOfWeekProps) => {
|
185
|
-
return <div className={classes.weekDays}>{children}</div>
|
186
|
-
}}
|
187
|
-
renderDayOfWeek={({ day, key }: DayOfWeekProps) => {
|
188
|
-
return (
|
189
|
-
<div key={key} className={classes.weekDay}>
|
190
|
-
{day}
|
191
|
-
</div>
|
192
|
-
)
|
193
|
-
}}
|
194
|
-
renderWeek={({ children }: WeekProps) => {
|
195
|
-
return <div className={classes.week}>{children}</div>
|
196
|
-
}}
|
197
|
-
activeMonth={activeMonth || value}
|
198
|
-
mode={range ? 'range' : 'single'}
|
199
|
-
minDate={minDate}
|
200
|
-
maxDate={maxDate}
|
201
|
-
disabledIntervals={disabledIntervals}
|
202
|
-
getNoticeContent={() => null}
|
203
|
-
weekStartsOn={weekStartsOn}
|
204
|
-
/>
|
205
|
-
</div>
|
206
|
-
)
|
207
|
-
})
|
208
|
-
|
209
|
-
Calendar.defaultProps = {
|
210
|
-
range: false
|
211
|
-
}
|
212
|
-
|
213
|
-
Calendar.displayName = 'Calendar'
|
214
|
-
|
215
|
-
export default Calendar
|