@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
@@ -1,21 +0,0 @@
|
|
1
|
-
import { EmptyStatePage } from '../EmptyStatePage'
|
2
|
-
import PicassoBook from '~/.storybook/components/PicassoBook'
|
3
|
-
|
4
|
-
const componentDocs = PicassoBook.createComponentDocs(
|
5
|
-
EmptyStatePage,
|
6
|
-
'EmptyState.Page'
|
7
|
-
)
|
8
|
-
|
9
|
-
const chapter = PicassoBook.connectToPage(page =>
|
10
|
-
page
|
11
|
-
.createChapter('EmptyState.Page')
|
12
|
-
.addExample('EmptyStatePage/story/Default.example.tsx', {
|
13
|
-
id: 'EmptyStatePage',
|
14
|
-
waitUntilImagesLoaded: true
|
15
|
-
})
|
16
|
-
)
|
17
|
-
|
18
|
-
export default {
|
19
|
-
componentDocs,
|
20
|
-
chapter
|
21
|
-
}
|
package/src/Note/Note.tsx
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
import React, { forwardRef } from 'react'
|
2
|
-
import { makeStyles, Theme } from '@material-ui/core/styles'
|
3
|
-
import { BaseProps } from '@toptal/picasso-shared'
|
4
|
-
import cx from 'classnames'
|
5
|
-
|
6
|
-
import NoteTitle from '../NoteTitle'
|
7
|
-
import NoteSubtitle from '../NoteSubtitle'
|
8
|
-
import NoteContent from '../NoteContent'
|
9
|
-
import styles from './styles'
|
10
|
-
|
11
|
-
export interface Props extends BaseProps {
|
12
|
-
children: React.ReactNode
|
13
|
-
}
|
14
|
-
|
15
|
-
const useStyles = makeStyles<Theme>(styles)
|
16
|
-
|
17
|
-
export const Note = forwardRef<HTMLDivElement, Props>(function Note(
|
18
|
-
{ children, className, ...rest },
|
19
|
-
ref
|
20
|
-
) {
|
21
|
-
const classes = useStyles()
|
22
|
-
|
23
|
-
return (
|
24
|
-
<div ref={ref} className={cx(classes.root, className)} {...rest}>
|
25
|
-
{children}
|
26
|
-
</div>
|
27
|
-
)
|
28
|
-
})
|
29
|
-
|
30
|
-
Note.displayName = 'Note'
|
31
|
-
|
32
|
-
export default Object.assign(Note, {
|
33
|
-
Title: NoteTitle,
|
34
|
-
Subtitle: NoteSubtitle,
|
35
|
-
Content: NoteContent
|
36
|
-
})
|
@@ -1,37 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`Note renders 1`] = `
|
4
|
-
<div>
|
5
|
-
<div
|
6
|
-
class="Picasso-root"
|
7
|
-
>
|
8
|
-
<div
|
9
|
-
class="makeStyles-root"
|
10
|
-
>
|
11
|
-
<div
|
12
|
-
class="makeStyles-root"
|
13
|
-
>
|
14
|
-
<h4
|
15
|
-
class="MuiTypography-root MuiTypography-h4"
|
16
|
-
>
|
17
|
-
Title
|
18
|
-
</h4>
|
19
|
-
</div>
|
20
|
-
<div
|
21
|
-
class="PicassoContainer-bottomsmallMargin"
|
22
|
-
>
|
23
|
-
<p
|
24
|
-
class="MuiTypography-root PicassoTypography-bodySmall PicassoTypography-darkGrey MuiTypography-body1"
|
25
|
-
>
|
26
|
-
Subtitle
|
27
|
-
</p>
|
28
|
-
</div>
|
29
|
-
<p
|
30
|
-
class="MuiTypography-root PicassoTypography-bodyMedium PicassoTypography-black MuiTypography-body1"
|
31
|
-
>
|
32
|
-
Content
|
33
|
-
</p>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
</div>
|
37
|
-
`;
|
package/src/Note/index.ts
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { Note } from '@toptal/picasso-lab'
|
3
|
-
|
4
|
-
const Example = () => (
|
5
|
-
<Note>
|
6
|
-
<Note.Title>Awesome title</Note.Title>
|
7
|
-
<Note.Subtitle>added on November 14, 2019 at 3:46</Note.Subtitle>
|
8
|
-
<Note.Content>
|
9
|
-
This is a dummy content comment used for example purpouses
|
10
|
-
</Note.Content>
|
11
|
-
</Note>
|
12
|
-
)
|
13
|
-
|
14
|
-
export default Example
|
package/src/Note/story/index.jsx
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
import PicassoBook from '~/.storybook/components/PicassoBook'
|
2
|
-
import noteTitleStory from '../../NoteTitle/story'
|
3
|
-
import noteSubtitleStory from '../../NoteSubtitle/story'
|
4
|
-
import noteContentStory from '../../NoteContent/story'
|
5
|
-
import { Note } from '../Note'
|
6
|
-
|
7
|
-
const page = PicassoBook.section('Picasso Lab').createPage(
|
8
|
-
'Note',
|
9
|
-
`
|
10
|
-
${PicassoBook.createBaseDocsLink(
|
11
|
-
'https://app.abstract.com/projects/1b06c884-06af-482a-bf12-a82f521a19a1/branches/master/commits/cd38a6cc5bf8f8b535b142fb9a2c9578c641dd82/files/96635516-c961-460f-988e-7ca2f565a7ec/layers/3B863FAB-C94C-4EE2-8061-FBFAB45778AE?mode=design&present=true&selected=root-699B47BF-FAEA-4D18-8474-A2EB3EA863B2'
|
12
|
-
)}
|
13
|
-
`
|
14
|
-
)
|
15
|
-
|
16
|
-
page
|
17
|
-
.createTabChapter('Props')
|
18
|
-
.addComponentDocs({ component: Note, name: 'Note' })
|
19
|
-
.addComponentDocs(noteTitleStory.componentDocs)
|
20
|
-
.addComponentDocs(noteSubtitleStory.componentDocs)
|
21
|
-
.addComponentDocs(noteContentStory.componentDocs)
|
22
|
-
|
23
|
-
page.createChapter().addExample('Note/story/Default.example.tsx', 'Default') // picasso-skip-visuals
|
package/src/Note/styles.ts
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
import { Theme, createStyles } from '@material-ui/core/styles'
|
2
|
-
|
3
|
-
const barWidth = 4
|
4
|
-
|
5
|
-
export default ({ palette, sizes, spacing }: Theme) =>
|
6
|
-
createStyles({
|
7
|
-
root: {
|
8
|
-
borderRadius: sizes.borderRadius.medium,
|
9
|
-
border: `1px solid ${palette.grey.lighter2}`,
|
10
|
-
padding: `${spacing(3)}px ${spacing(3)}px ${spacing(3)}px ${
|
11
|
-
spacing(3) + barWidth
|
12
|
-
}px`,
|
13
|
-
position: 'relative',
|
14
|
-
overflow: 'hidden',
|
15
|
-
backgroundColor: palette.common.white,
|
16
|
-
'&:before': {
|
17
|
-
background: palette.yellow.main,
|
18
|
-
display: 'block',
|
19
|
-
height: '100%',
|
20
|
-
left: 0,
|
21
|
-
position: 'absolute',
|
22
|
-
content: '""',
|
23
|
-
top: 0,
|
24
|
-
width: barWidth
|
25
|
-
}
|
26
|
-
}
|
27
|
-
})
|
package/src/Note/test.tsx
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { render } from '@toptal/picasso/test-utils'
|
3
|
-
|
4
|
-
import Note from './Note'
|
5
|
-
|
6
|
-
const renderNote = () => {
|
7
|
-
return render(
|
8
|
-
<Note>
|
9
|
-
<Note.Title>Title</Note.Title>
|
10
|
-
<Note.Subtitle>Subtitle</Note.Subtitle>
|
11
|
-
<Note.Content>Content</Note.Content>
|
12
|
-
</Note>
|
13
|
-
)
|
14
|
-
}
|
15
|
-
|
16
|
-
describe('Note', () => {
|
17
|
-
it('renders', () => {
|
18
|
-
const { container } = renderNote()
|
19
|
-
|
20
|
-
expect(container).toMatchSnapshot()
|
21
|
-
})
|
22
|
-
})
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import React, { forwardRef, ReactNode } from 'react'
|
2
|
-
import { BaseProps } from '@toptal/picasso-shared'
|
3
|
-
import { Typography } from '@toptal/picasso'
|
4
|
-
|
5
|
-
export interface Props extends BaseProps {
|
6
|
-
children: ReactNode
|
7
|
-
}
|
8
|
-
|
9
|
-
export const NoteContent = forwardRef<HTMLDivElement, Props>(
|
10
|
-
function NoteContent({ children, ...rest }, ref) {
|
11
|
-
return (
|
12
|
-
<Typography ref={ref} as='p' size='medium' color='black' {...rest}>
|
13
|
-
{children}
|
14
|
-
</Typography>
|
15
|
-
)
|
16
|
-
}
|
17
|
-
)
|
18
|
-
|
19
|
-
NoteContent.defaultProps = {}
|
20
|
-
|
21
|
-
NoteContent.displayName = 'NoteContent'
|
22
|
-
|
23
|
-
export default NoteContent
|
package/src/NoteContent/index.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export { default } from './NoteContent'
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import PicassoBook from '~/.storybook/components/PicassoBook'
|
2
|
-
import { NoteContent } from '../NoteContent'
|
3
|
-
|
4
|
-
const componentDocs = PicassoBook.createComponentDocs(
|
5
|
-
NoteContent,
|
6
|
-
'Note.Content',
|
7
|
-
'Note content'
|
8
|
-
)
|
9
|
-
|
10
|
-
export default {
|
11
|
-
componentDocs
|
12
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import React, { forwardRef, ReactNode } from 'react'
|
2
|
-
import { BaseProps } from '@toptal/picasso-shared'
|
3
|
-
import { Container, Typography } from '@toptal/picasso'
|
4
|
-
|
5
|
-
export interface Props extends BaseProps {
|
6
|
-
children: ReactNode
|
7
|
-
}
|
8
|
-
|
9
|
-
export const NoteSubtitle = forwardRef<HTMLDivElement, Props>(
|
10
|
-
function NoteSubtitle({ children, ...rest }, ref) {
|
11
|
-
return (
|
12
|
-
<Container ref={ref} bottom='small' {...rest}>
|
13
|
-
<Typography color='dark-grey' size='small'>
|
14
|
-
{children}
|
15
|
-
</Typography>
|
16
|
-
</Container>
|
17
|
-
)
|
18
|
-
}
|
19
|
-
)
|
20
|
-
|
21
|
-
NoteSubtitle.defaultProps = {}
|
22
|
-
|
23
|
-
NoteSubtitle.displayName = 'NoteSubtitle'
|
24
|
-
|
25
|
-
export default NoteSubtitle
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default } from './NoteSubtitle'
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import PicassoBook from '~/.storybook/components/PicassoBook'
|
2
|
-
import { NoteSubtitle } from '../NoteSubtitle'
|
3
|
-
|
4
|
-
const componentDocs = PicassoBook.createComponentDocs(
|
5
|
-
NoteSubtitle,
|
6
|
-
'Note.Subtitle',
|
7
|
-
'Note subtitle'
|
8
|
-
)
|
9
|
-
|
10
|
-
export default {
|
11
|
-
componentDocs
|
12
|
-
}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
import React, { forwardRef } from 'react'
|
2
|
-
import { makeStyles, Theme } from '@material-ui/core/styles'
|
3
|
-
import { BaseProps } from '@toptal/picasso-shared'
|
4
|
-
import cx from 'classnames'
|
5
|
-
import { Typography } from '@toptal/picasso'
|
6
|
-
|
7
|
-
import styles from './styles'
|
8
|
-
|
9
|
-
export interface Props extends BaseProps {
|
10
|
-
children: React.ReactNode
|
11
|
-
}
|
12
|
-
|
13
|
-
const useStyles = makeStyles<Theme>(styles)
|
14
|
-
|
15
|
-
export const NoteTitle = forwardRef<HTMLDivElement, Props>(function NoteTitle(
|
16
|
-
{ children, className, ...rest },
|
17
|
-
ref
|
18
|
-
) {
|
19
|
-
const classes = useStyles()
|
20
|
-
|
21
|
-
return (
|
22
|
-
<div ref={ref} className={cx(classes.root, className)} {...rest}>
|
23
|
-
<Typography variant='heading' size='small'>
|
24
|
-
{children}
|
25
|
-
</Typography>
|
26
|
-
</div>
|
27
|
-
)
|
28
|
-
})
|
29
|
-
|
30
|
-
NoteTitle.defaultProps = {}
|
31
|
-
|
32
|
-
NoteTitle.displayName = 'NoteTitle'
|
33
|
-
|
34
|
-
export default NoteTitle
|
package/src/NoteTitle/index.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export { default } from './NoteTitle'
|
package/src/NoteTitle/styles.ts
DELETED
@@ -1,125 +0,0 @@
|
|
1
|
-
import React, {
|
2
|
-
forwardRef,
|
3
|
-
ElementType,
|
4
|
-
HTMLAttributes,
|
5
|
-
MouseEvent,
|
6
|
-
ReactNode
|
7
|
-
} from 'react'
|
8
|
-
import { Theme, makeStyles } from '@material-ui/core/styles'
|
9
|
-
import cx from 'classnames'
|
10
|
-
import {
|
11
|
-
OverridableComponent,
|
12
|
-
ColorType,
|
13
|
-
BaseProps,
|
14
|
-
TextLabelProps,
|
15
|
-
useTitleCase
|
16
|
-
} from '@toptal/picasso-shared'
|
17
|
-
import { Container, Typography } from '@toptal/picasso'
|
18
|
-
import { toTitleCase } from '@toptal/picasso/utils'
|
19
|
-
|
20
|
-
import styles from './styles'
|
21
|
-
import { useOverviewBlockGroupContext } from '../OverviewBlockGroup/OverviewBlockGroupContext'
|
22
|
-
import OverviewBlockGroup from '../OverviewBlockGroup'
|
23
|
-
import OverviewBlockRow from '../OverviewBlockRow'
|
24
|
-
|
25
|
-
type VariantColorType = Extract<ColorType, 'red' | 'green' | 'yellow'>
|
26
|
-
|
27
|
-
type Variant = `value-${VariantColorType}` | `label-${VariantColorType}`
|
28
|
-
|
29
|
-
type ColorSchema = {
|
30
|
-
value: ColorType
|
31
|
-
label: ColorType
|
32
|
-
}
|
33
|
-
|
34
|
-
export type Props = BaseProps &
|
35
|
-
TextLabelProps &
|
36
|
-
HTMLAttributes<HTMLButtonElement> & {
|
37
|
-
/** Counter value */
|
38
|
-
value: ReactNode
|
39
|
-
/** Counter title */
|
40
|
-
label: string
|
41
|
-
/** The color variant */
|
42
|
-
variant?: Variant
|
43
|
-
/** Component used for the root node. Either a string to use a DOM element or a component. */
|
44
|
-
as?: ElementType
|
45
|
-
/** Callback invoked when component is clicked */
|
46
|
-
onClick?: (event: MouseEvent) => void
|
47
|
-
}
|
48
|
-
|
49
|
-
const useStyles = makeStyles<Theme>(styles, {
|
50
|
-
name: 'PicassoOverviewBlock'
|
51
|
-
})
|
52
|
-
|
53
|
-
export const OverviewBlock: OverridableComponent<Props> = forwardRef<
|
54
|
-
HTMLButtonElement,
|
55
|
-
Props
|
56
|
-
>(function OverviewBlock(props, ref) {
|
57
|
-
const {
|
58
|
-
value,
|
59
|
-
label,
|
60
|
-
variant,
|
61
|
-
as,
|
62
|
-
className,
|
63
|
-
onClick,
|
64
|
-
titleCase: propsTitleCase,
|
65
|
-
...rest
|
66
|
-
} = props
|
67
|
-
const classes = useStyles()
|
68
|
-
const { align, blockWidth } = useOverviewBlockGroupContext()
|
69
|
-
|
70
|
-
const color: ColorSchema = {
|
71
|
-
value: 'black',
|
72
|
-
label: 'dark-grey'
|
73
|
-
}
|
74
|
-
|
75
|
-
if (variant) {
|
76
|
-
const [partName, colorName] = variant.split('-') as [
|
77
|
-
keyof ColorSchema,
|
78
|
-
ColorType
|
79
|
-
]
|
80
|
-
|
81
|
-
color[partName] = colorName
|
82
|
-
}
|
83
|
-
|
84
|
-
const isClickable = Boolean(onClick) || typeof as !== 'string'
|
85
|
-
|
86
|
-
const Component = isClickable && as ? as : 'div'
|
87
|
-
|
88
|
-
const titleCase = useTitleCase(propsTitleCase)
|
89
|
-
|
90
|
-
return (
|
91
|
-
<Component
|
92
|
-
{...rest}
|
93
|
-
ref={ref}
|
94
|
-
className={cx(
|
95
|
-
{ [classes.clickable]: isClickable },
|
96
|
-
{ [classes.disableOutline]: !isClickable },
|
97
|
-
classes[`${align}Align`],
|
98
|
-
classes[`${blockWidth}Width`],
|
99
|
-
classes.root,
|
100
|
-
className
|
101
|
-
)}
|
102
|
-
onClick={onClick}
|
103
|
-
>
|
104
|
-
<Container align='left'>
|
105
|
-
<Typography size='xsmall' weight='semibold' color={color.label}>
|
106
|
-
{titleCase ? toTitleCase(label) : label}
|
107
|
-
</Typography>
|
108
|
-
<Typography size='large' weight='semibold' color={color.value}>
|
109
|
-
{value}
|
110
|
-
</Typography>
|
111
|
-
</Container>
|
112
|
-
</Component>
|
113
|
-
)
|
114
|
-
})
|
115
|
-
|
116
|
-
OverviewBlock.defaultProps = {
|
117
|
-
as: 'button'
|
118
|
-
}
|
119
|
-
|
120
|
-
OverviewBlock.displayName = 'OverviewBlock'
|
121
|
-
|
122
|
-
export default Object.assign(OverviewBlock, {
|
123
|
-
Group: OverviewBlockGroup,
|
124
|
-
Row: OverviewBlockRow
|
125
|
-
})
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { OverviewBlock } from '@toptal/picasso-lab'
|
3
|
-
|
4
|
-
const DefaultExample = () => {
|
5
|
-
const handleClick = (title: string) => {
|
6
|
-
window.alert(`${title} clicked`)
|
7
|
-
}
|
8
|
-
|
9
|
-
return (
|
10
|
-
<OverviewBlock.Group>
|
11
|
-
<OverviewBlock
|
12
|
-
value='4249'
|
13
|
-
label='ACH'
|
14
|
-
onClick={() => handleClick('ACH')}
|
15
|
-
/>
|
16
|
-
<OverviewBlock
|
17
|
-
value='19302'
|
18
|
-
label='Credit Card'
|
19
|
-
onClick={() => handleClick('Credit Card')}
|
20
|
-
/>
|
21
|
-
<OverviewBlock
|
22
|
-
value='979'
|
23
|
-
label='PayPal'
|
24
|
-
onClick={() => handleClick('PayPal')}
|
25
|
-
/>
|
26
|
-
<OverviewBlock
|
27
|
-
value='803'
|
28
|
-
label='Wire'
|
29
|
-
onClick={() => handleClick('Wire')}
|
30
|
-
/>
|
31
|
-
</OverviewBlock.Group>
|
32
|
-
)
|
33
|
-
}
|
34
|
-
|
35
|
-
export default DefaultExample
|
@@ -1,51 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { OverviewBlock } from '@toptal/picasso-lab'
|
3
|
-
|
4
|
-
const MultilineExample = () => (
|
5
|
-
<section>
|
6
|
-
<OverviewBlock.Group>
|
7
|
-
<OverviewBlock.Row>
|
8
|
-
<OverviewBlock
|
9
|
-
value='$26,125,123.70'
|
10
|
-
label='Outstanding'
|
11
|
-
variant='label-yellow'
|
12
|
-
/>
|
13
|
-
<OverviewBlock
|
14
|
-
value='$5,837,806.68'
|
15
|
-
label='Overdue'
|
16
|
-
variant='label-red'
|
17
|
-
/>
|
18
|
-
<OverviewBlock
|
19
|
-
value='$1,232,107.99'
|
20
|
-
label='Disputed'
|
21
|
-
variant='label-red'
|
22
|
-
/>
|
23
|
-
<OverviewBlock
|
24
|
-
value='$1,722,076.43'
|
25
|
-
label='Incollections'
|
26
|
-
variant='label-red'
|
27
|
-
/>
|
28
|
-
</OverviewBlock.Row>
|
29
|
-
<OverviewBlock.Row>
|
30
|
-
<OverviewBlock
|
31
|
-
value='$935,590.65'
|
32
|
-
label='Written off'
|
33
|
-
variant='label-red'
|
34
|
-
/>
|
35
|
-
<OverviewBlock value='$5,758,716.46' label='Pending receipt' />
|
36
|
-
<OverviewBlock
|
37
|
-
value='$44,244,163.83'
|
38
|
-
label='Credited'
|
39
|
-
variant='label-green'
|
40
|
-
/>
|
41
|
-
<OverviewBlock
|
42
|
-
value='$585,895,606.35'
|
43
|
-
label='Paid'
|
44
|
-
variant='label-green'
|
45
|
-
/>
|
46
|
-
</OverviewBlock.Row>
|
47
|
-
</OverviewBlock.Group>
|
48
|
-
</section>
|
49
|
-
)
|
50
|
-
|
51
|
-
export default MultilineExample
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { OverviewBlock } from '@toptal/picasso-lab'
|
3
|
-
|
4
|
-
const NumberExample = () => {
|
5
|
-
return (
|
6
|
-
<OverviewBlock.Group>
|
7
|
-
<OverviewBlock value='63' label='Pending tasks' variant='label-red' />
|
8
|
-
<OverviewBlock value='0' label="Today's tasks" variant='label-red' />
|
9
|
-
<OverviewBlock
|
10
|
-
value='0'
|
11
|
-
label="This week's tasks"
|
12
|
-
variant='label-green'
|
13
|
-
/>
|
14
|
-
<OverviewBlock value='63' label='Total tasks' />
|
15
|
-
<OverviewBlock value='63' label='Playbook tasks' variant='label-yellow' />
|
16
|
-
</OverviewBlock.Group>
|
17
|
-
)
|
18
|
-
}
|
19
|
-
|
20
|
-
export default NumberExample
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { OverviewBlock } from '@toptal/picasso-lab'
|
3
|
-
import { MemoryRouter as Router, Link, Route, Switch } from 'react-router-dom'
|
4
|
-
|
5
|
-
const Index = () => <h2>Home</h2>
|
6
|
-
const About = () => <h2>About</h2>
|
7
|
-
const Users = () => <h2>Users</h2>
|
8
|
-
|
9
|
-
const RoutingExample = () => (
|
10
|
-
<Router>
|
11
|
-
<div>
|
12
|
-
<OverviewBlock.Group>
|
13
|
-
<OverviewBlock value='10' label='Home' as={Link} to='/' />
|
14
|
-
<OverviewBlock
|
15
|
-
value='11'
|
16
|
-
label='About'
|
17
|
-
variant='label-green'
|
18
|
-
as={Link}
|
19
|
-
to='/about'
|
20
|
-
/>
|
21
|
-
<OverviewBlock
|
22
|
-
value='15'
|
23
|
-
label='Users'
|
24
|
-
variant='label-green'
|
25
|
-
as={Link}
|
26
|
-
to='/users'
|
27
|
-
/>
|
28
|
-
</OverviewBlock.Group>
|
29
|
-
|
30
|
-
<Switch>
|
31
|
-
<Route path='/' exact component={Index} />
|
32
|
-
<Route path='/about' component={About} />
|
33
|
-
<Route path='/users' component={Users} />
|
34
|
-
<Route component={Index} />
|
35
|
-
</Switch>
|
36
|
-
</div>
|
37
|
-
</Router>
|
38
|
-
)
|
39
|
-
|
40
|
-
export default RoutingExample
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { OverviewBlock } from '@toptal/picasso-lab'
|
3
|
-
|
4
|
-
const TextExample = () => {
|
5
|
-
return (
|
6
|
-
<OverviewBlock.Group>
|
7
|
-
<OverviewBlock value='Active' label='Status' variant='value-green' />
|
8
|
-
<OverviewBlock value='Developers' label='Interested In' />
|
9
|
-
<OverviewBlock value='Ambiguous' label='Priority / Intent' />
|
10
|
-
<OverviewBlock value='1968' label='Days in Funnel' />
|
11
|
-
</OverviewBlock.Group>
|
12
|
-
)
|
13
|
-
}
|
14
|
-
|
15
|
-
export default TextExample
|