@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/src/Timeline/test.tsx
DELETED
@@ -1,101 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { render, TestingPicasso } from '@toptal/picasso/test-utils'
|
3
|
-
|
4
|
-
import Timeline, { Props } from './Timeline'
|
5
|
-
|
6
|
-
const renderTimeline = ({ children }: Props) =>
|
7
|
-
render(
|
8
|
-
<TestingPicasso>
|
9
|
-
<Timeline>{children}</Timeline>
|
10
|
-
</TestingPicasso>
|
11
|
-
)
|
12
|
-
|
13
|
-
describe('Timeline', () => {
|
14
|
-
it('renders', async () => {
|
15
|
-
const { container, queryByText, queryAllByTestId } = renderTimeline({
|
16
|
-
children: (
|
17
|
-
<>
|
18
|
-
<Timeline.Row testIds={{ dot: 'dot' }}>Row #1</Timeline.Row>
|
19
|
-
<Timeline.Row testIds={{ dot: 'dot' }}>Row #2</Timeline.Row>
|
20
|
-
<Timeline.Row testIds={{ dot: 'dot' }}>Row #3</Timeline.Row>
|
21
|
-
</>
|
22
|
-
)
|
23
|
-
})
|
24
|
-
|
25
|
-
expect(queryByText('Row #1')).toBeInTheDocument()
|
26
|
-
expect(queryByText('Row #2')).toBeInTheDocument()
|
27
|
-
expect(queryByText('Row #3')).toBeInTheDocument()
|
28
|
-
|
29
|
-
expect(queryAllByTestId('dot')).toHaveLength(3)
|
30
|
-
|
31
|
-
expect(container).toMatchSnapshot()
|
32
|
-
})
|
33
|
-
|
34
|
-
it('renders without a connector', async () => {
|
35
|
-
const { container, queryAllByTestId } = renderTimeline({
|
36
|
-
children: (
|
37
|
-
<>
|
38
|
-
<Timeline.Row testIds={{ dot: 'dot', connector: 'connector' }}>
|
39
|
-
Row #1
|
40
|
-
</Timeline.Row>
|
41
|
-
<Timeline.Row testIds={{ dot: 'dot', connector: 'connector' }}>
|
42
|
-
Row #2
|
43
|
-
</Timeline.Row>
|
44
|
-
<Timeline.Row
|
45
|
-
testIds={{ dot: 'dot', connector: 'connector' }}
|
46
|
-
hasConnector={false}
|
47
|
-
>
|
48
|
-
Row #3
|
49
|
-
</Timeline.Row>
|
50
|
-
</>
|
51
|
-
)
|
52
|
-
})
|
53
|
-
|
54
|
-
expect(queryAllByTestId('dot')).toHaveLength(3)
|
55
|
-
expect(queryAllByTestId('connector')).toHaveLength(2)
|
56
|
-
|
57
|
-
expect(container).toMatchSnapshot()
|
58
|
-
})
|
59
|
-
|
60
|
-
it('renders with dates', async () => {
|
61
|
-
const { container, queryByText } = renderTimeline({
|
62
|
-
children: (
|
63
|
-
<>
|
64
|
-
<Timeline.Row date='25.06.2021'>Row #1</Timeline.Row>
|
65
|
-
<Timeline.Row date='25.06.2022'>Row #2</Timeline.Row>
|
66
|
-
<Timeline.Row date='25.06.2023'>Row #3</Timeline.Row>
|
67
|
-
</>
|
68
|
-
)
|
69
|
-
})
|
70
|
-
|
71
|
-
expect(queryByText('25.06.2021')).toBeInTheDocument()
|
72
|
-
expect(queryByText('25.06.2022')).toBeInTheDocument()
|
73
|
-
expect(queryByText('25.06.2023')).toBeInTheDocument()
|
74
|
-
|
75
|
-
expect(container).toMatchSnapshot()
|
76
|
-
})
|
77
|
-
|
78
|
-
it('renders with icons', async () => {
|
79
|
-
const { container, queryByTestId } = renderTimeline({
|
80
|
-
children: (
|
81
|
-
<>
|
82
|
-
<Timeline.Row icon={<span data-testid='icon-1' />}>
|
83
|
-
Row #1
|
84
|
-
</Timeline.Row>
|
85
|
-
<Timeline.Row icon={<span data-testid='icon-2' />}>
|
86
|
-
Row #2
|
87
|
-
</Timeline.Row>
|
88
|
-
<Timeline.Row icon={<span data-testid='icon-3' />}>
|
89
|
-
Row #3
|
90
|
-
</Timeline.Row>
|
91
|
-
</>
|
92
|
-
)
|
93
|
-
})
|
94
|
-
|
95
|
-
expect(queryByTestId('icon-1')).toBeInTheDocument()
|
96
|
-
expect(queryByTestId('icon-2')).toBeInTheDocument()
|
97
|
-
expect(queryByTestId('icon-3')).toBeInTheDocument()
|
98
|
-
|
99
|
-
expect(container).toMatchSnapshot()
|
100
|
-
})
|
101
|
-
})
|
@@ -1,83 +0,0 @@
|
|
1
|
-
import React, { ReactElement, ReactNode } from 'react'
|
2
|
-
import { Theme, makeStyles } from '@material-ui/core/styles'
|
3
|
-
import { BaseProps } from '@toptal/picasso-shared'
|
4
|
-
import { Container, Typography } from '@toptal/picasso'
|
5
|
-
import cx from 'classnames'
|
6
|
-
|
7
|
-
import styles from './styles'
|
8
|
-
|
9
|
-
export interface Props extends BaseProps {
|
10
|
-
/** Timeline row content */
|
11
|
-
children: ReactNode
|
12
|
-
/** Icon for the row between lines */
|
13
|
-
icon?: ReactElement
|
14
|
-
/** Timeline row date */
|
15
|
-
date?: string
|
16
|
-
/** Whether to render a connector line after the row */
|
17
|
-
hasConnector?: boolean
|
18
|
-
testIds?: {
|
19
|
-
dot?: string
|
20
|
-
connector?: string
|
21
|
-
}
|
22
|
-
}
|
23
|
-
|
24
|
-
const useStyles = makeStyles<Theme>(styles, {
|
25
|
-
name: 'PicassoTimelineRow'
|
26
|
-
})
|
27
|
-
|
28
|
-
const TimelineRow = ({
|
29
|
-
className,
|
30
|
-
children,
|
31
|
-
icon,
|
32
|
-
date,
|
33
|
-
hasConnector,
|
34
|
-
'data-testid': dataTestId,
|
35
|
-
testIds = {}
|
36
|
-
}: Props) => {
|
37
|
-
const classes = useStyles()
|
38
|
-
|
39
|
-
return (
|
40
|
-
<Container
|
41
|
-
data-testid={dataTestId}
|
42
|
-
className={cx(classes.root, className)}
|
43
|
-
flex
|
44
|
-
>
|
45
|
-
<Container flex direction='column' alignItems='center' right='medium'>
|
46
|
-
{typeof icon !== 'undefined' ? (
|
47
|
-
React.cloneElement(icon, {
|
48
|
-
className: cx(icon.props.className, classes.icon)
|
49
|
-
})
|
50
|
-
) : (
|
51
|
-
<div className={classes.dot} data-testid={testIds.dot} />
|
52
|
-
)}
|
53
|
-
{hasConnector && (
|
54
|
-
<div className={classes.connector} data-testid={testIds.connector} />
|
55
|
-
)}
|
56
|
-
</Container>
|
57
|
-
|
58
|
-
{date && (
|
59
|
-
<Container className={classes.date} right='large'>
|
60
|
-
<Typography
|
61
|
-
className={classes.dateText}
|
62
|
-
weight='semibold'
|
63
|
-
size='medium'
|
64
|
-
>
|
65
|
-
{date}
|
66
|
-
</Typography>
|
67
|
-
</Container>
|
68
|
-
)}
|
69
|
-
|
70
|
-
<Container className={classes.content} bottom='large'>
|
71
|
-
{children}
|
72
|
-
</Container>
|
73
|
-
</Container>
|
74
|
-
)
|
75
|
-
}
|
76
|
-
|
77
|
-
TimelineRow.defaultProps = {
|
78
|
-
hasConnector: true
|
79
|
-
}
|
80
|
-
|
81
|
-
TimelineRow.displayName = 'TimelineRow'
|
82
|
-
|
83
|
-
export default TimelineRow
|
package/src/TimelineRow/index.ts
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
import { createStyles, Theme } from '@material-ui/core/styles'
|
2
|
-
import { rem } from '@toptal/picasso-shared'
|
3
|
-
|
4
|
-
export default ({ palette }: Theme) =>
|
5
|
-
createStyles({
|
6
|
-
root: {
|
7
|
-
// No bottom spacing for the last Container
|
8
|
-
'&:last-child $content': {
|
9
|
-
marginBottom: 0
|
10
|
-
}
|
11
|
-
},
|
12
|
-
content: {},
|
13
|
-
icon: {
|
14
|
-
margin: '4px 0',
|
15
|
-
color: palette.grey.main2
|
16
|
-
},
|
17
|
-
dot: {
|
18
|
-
// Outer dot icon dimensions should match picasso 16px icons
|
19
|
-
width: '16px',
|
20
|
-
height: '16px',
|
21
|
-
display: 'flex',
|
22
|
-
alignItems: 'center',
|
23
|
-
justifyContent: 'center',
|
24
|
-
background: 'white',
|
25
|
-
margin: '4px 0',
|
26
|
-
|
27
|
-
'&:after': {
|
28
|
-
content: '""',
|
29
|
-
width: '9px',
|
30
|
-
height: '9px',
|
31
|
-
background: palette.grey.main2,
|
32
|
-
borderRadius: '50%',
|
33
|
-
lineHeight: '20px'
|
34
|
-
}
|
35
|
-
},
|
36
|
-
date: {
|
37
|
-
flex: '0 0 auto'
|
38
|
-
},
|
39
|
-
dateText: {
|
40
|
-
lineHeight: rem('24px')
|
41
|
-
},
|
42
|
-
connector: {
|
43
|
-
flex: 1,
|
44
|
-
width: 0,
|
45
|
-
borderLeft: `1px dashed ${palette.grey.main2}`
|
46
|
-
}
|
47
|
-
})
|
@@ -1,153 +0,0 @@
|
|
1
|
-
import cx from 'classnames'
|
2
|
-
import React, { ReactNode, useCallback, useState } from 'react'
|
3
|
-
import { makeStyles, Theme } from '@material-ui/core/styles'
|
4
|
-
import { Tooltip, Typography, TypographyProps } from '@toptal/picasso'
|
5
|
-
import { isOverflown } from '@toptal/picasso/utils'
|
6
|
-
import { BaseProps } from '@toptal/picasso-shared'
|
7
|
-
import { DelayType, VariantType } from '@toptal/picasso/Tooltip/Tooltip'
|
8
|
-
|
9
|
-
import styles from './styles'
|
10
|
-
|
11
|
-
export interface Props extends BaseProps, TypographyProps {
|
12
|
-
/** A typography which can possibly overflow */
|
13
|
-
children?: ReactNode
|
14
|
-
/** Number of lines displayed */
|
15
|
-
lines?: number
|
16
|
-
/** A content to show in tooltip when typography overflows. By default, TypographyOverflow's children are used. */
|
17
|
-
tooltipContent?: ReactNode
|
18
|
-
/** A delay in showing the tooltip when typography overflows. */
|
19
|
-
tooltipDelay?: DelayType
|
20
|
-
/** Tooltip color variant to use. */
|
21
|
-
tooltipVariant?: VariantType
|
22
|
-
/** Do not show tooltips for shorten content. */
|
23
|
-
disableTooltip?: boolean
|
24
|
-
}
|
25
|
-
|
26
|
-
const useStyles = makeStyles<Theme, Props>(styles, {
|
27
|
-
name: 'TypographyOverflow'
|
28
|
-
})
|
29
|
-
|
30
|
-
export const TypographyOverflow = (props: Props) => {
|
31
|
-
const {
|
32
|
-
children,
|
33
|
-
lines = 1,
|
34
|
-
tooltipContent,
|
35
|
-
tooltipDelay,
|
36
|
-
tooltipVariant,
|
37
|
-
disableTooltip,
|
38
|
-
className,
|
39
|
-
onClick,
|
40
|
-
onMouseEnter,
|
41
|
-
style,
|
42
|
-
...rest
|
43
|
-
} = props
|
44
|
-
|
45
|
-
const classes = useStyles(props)
|
46
|
-
const [isTooltipActive, setIsTooltipActive] = useState(false)
|
47
|
-
const [isTooltipOpened, setIsTooltipOpened] = useState(false)
|
48
|
-
const [isTooltipAnimating, setIsTooltipAnimating] = useState(false)
|
49
|
-
const isTooltipRendered = isTooltipActive || isTooltipAnimating
|
50
|
-
const isMultiline = lines > 1
|
51
|
-
|
52
|
-
// We are paying a very high price when using dynamic JSS rules
|
53
|
-
// for a component that is used on a very large scale.
|
54
|
-
// It was causing a major UI freezes and unnecessary style recalculations,
|
55
|
-
// that's why we decided to go with inline styles:
|
56
|
-
// https://github.com/toptal/picasso/pull/2110
|
57
|
-
const extendedStyle = isMultiline
|
58
|
-
? { ...style, WebkitLineClamp: lines }
|
59
|
-
: style
|
60
|
-
|
61
|
-
const handleClick = useCallback(
|
62
|
-
(event: React.MouseEvent<HTMLElement>) => {
|
63
|
-
if (
|
64
|
-
!isTooltipOpened &&
|
65
|
-
!disableTooltip &&
|
66
|
-
isOverflown(event.currentTarget)
|
67
|
-
) {
|
68
|
-
setIsTooltipOpened(true)
|
69
|
-
setIsTooltipActive(true)
|
70
|
-
}
|
71
|
-
|
72
|
-
if (onClick) {
|
73
|
-
onClick(event)
|
74
|
-
}
|
75
|
-
},
|
76
|
-
[isTooltipOpened, disableTooltip, onClick]
|
77
|
-
)
|
78
|
-
|
79
|
-
const handleMouseEnter = useCallback(
|
80
|
-
(event: React.MouseEvent<HTMLElement>) => {
|
81
|
-
if (isOverflown(event.currentTarget)) {
|
82
|
-
setIsTooltipActive(true)
|
83
|
-
setIsTooltipAnimating(true)
|
84
|
-
}
|
85
|
-
|
86
|
-
if (onMouseEnter) {
|
87
|
-
onMouseEnter(event)
|
88
|
-
}
|
89
|
-
},
|
90
|
-
[onMouseEnter]
|
91
|
-
)
|
92
|
-
|
93
|
-
const handleTooltipOpen = useCallback(() => {
|
94
|
-
setIsTooltipOpened(true)
|
95
|
-
}, [])
|
96
|
-
|
97
|
-
const handleTooltipClose = useCallback(() => {
|
98
|
-
setIsTooltipActive(false)
|
99
|
-
setIsTooltipOpened(false)
|
100
|
-
}, [])
|
101
|
-
|
102
|
-
const handleTransitionExiting = useCallback(() => {
|
103
|
-
setIsTooltipAnimating(true)
|
104
|
-
}, [])
|
105
|
-
|
106
|
-
const handleTransitionExited = useCallback(() => {
|
107
|
-
setIsTooltipAnimating(false)
|
108
|
-
}, [])
|
109
|
-
|
110
|
-
const typography = (
|
111
|
-
<Typography
|
112
|
-
{...rest}
|
113
|
-
style={extendedStyle}
|
114
|
-
className={cx(
|
115
|
-
classes.wrapper,
|
116
|
-
isMultiline ? classes.multiLine : classes.singleLine,
|
117
|
-
className
|
118
|
-
)}
|
119
|
-
onClick={handleClick}
|
120
|
-
onMouseEnter={handleMouseEnter}
|
121
|
-
>
|
122
|
-
{children}
|
123
|
-
</Typography>
|
124
|
-
)
|
125
|
-
|
126
|
-
const tooltip = (
|
127
|
-
<Tooltip
|
128
|
-
open={isTooltipOpened}
|
129
|
-
content={tooltipContent ?? children}
|
130
|
-
variant={tooltipVariant}
|
131
|
-
placement='top'
|
132
|
-
delay={tooltipDelay}
|
133
|
-
interactive
|
134
|
-
disableListeners={disableTooltip}
|
135
|
-
onOpen={handleTooltipOpen}
|
136
|
-
onClose={handleTooltipClose}
|
137
|
-
onTransitionExiting={handleTransitionExiting}
|
138
|
-
onTransitionExited={handleTransitionExited}
|
139
|
-
>
|
140
|
-
{typography}
|
141
|
-
</Tooltip>
|
142
|
-
)
|
143
|
-
|
144
|
-
return isTooltipRendered ? tooltip : typography
|
145
|
-
}
|
146
|
-
|
147
|
-
TypographyOverflow.displayName = 'TypographyOverflow'
|
148
|
-
|
149
|
-
TypographyOverflow.defaultProps = {
|
150
|
-
noWrap: true
|
151
|
-
}
|
152
|
-
|
153
|
-
export default TypographyOverflow
|
Binary file
|
package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-checkbox-label-snap.png
DELETED
Binary file
|
Binary file
|
Binary file
|
package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-default-effect-1-snap.png
DELETED
Binary file
|
package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-default-effect-2-snap.png
DELETED
Binary file
|
Binary file
|
package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-delay-effect-1-snap.png
DELETED
Binary file
|
package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-delay-effect-2-snap.png
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-multiline-effect-1-snap.png
DELETED
Binary file
|
package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-multiline-effect-2-snap.png
DELETED
Binary file
|
package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-multiline-effect-3-snap.png
DELETED
Binary file
|
Binary file
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { Checkbox } from '@toptal/picasso'
|
3
|
-
import { TypographyOverflow } from '@toptal/picasso-lab'
|
4
|
-
|
5
|
-
const Example = () => {
|
6
|
-
return (
|
7
|
-
<div style={{ display: 'flex' }}>
|
8
|
-
<div style={{ marginTop: 100, maxWidth: '150px', flexBasis: '150px' }}>
|
9
|
-
<Checkbox
|
10
|
-
label={
|
11
|
-
<TypographyOverflow data-testid='ellipsed-text'>
|
12
|
-
This typography is very long and therefore it overflows.
|
13
|
-
</TypographyOverflow>
|
14
|
-
}
|
15
|
-
/>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
)
|
19
|
-
}
|
20
|
-
|
21
|
-
export default Example
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { TypographyOverflow } from '@toptal/picasso-lab'
|
3
|
-
import { Typography } from '@toptal/picasso'
|
4
|
-
|
5
|
-
const Example = () => {
|
6
|
-
return (
|
7
|
-
<div style={{ width: 300, marginTop: 100 }}>
|
8
|
-
<TypographyOverflow
|
9
|
-
data-testid='ellipsed-text'
|
10
|
-
tooltipContent={
|
11
|
-
<Typography color='yellow' weight='semibold'>
|
12
|
-
This typography is very long and therefore it overflows.
|
13
|
-
</Typography>
|
14
|
-
}
|
15
|
-
>
|
16
|
-
This typography is very long and therefore it overflows.
|
17
|
-
</TypographyOverflow>
|
18
|
-
</div>
|
19
|
-
)
|
20
|
-
}
|
21
|
-
|
22
|
-
export default Example
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { TypographyOverflow } from '@toptal/picasso-lab'
|
3
|
-
import styled from 'styled-components'
|
4
|
-
import { Container } from '@toptal/picasso'
|
5
|
-
|
6
|
-
const DynamicWidthContainer = styled(Container)`
|
7
|
-
margin-top: 1rem;
|
8
|
-
width: 500px;
|
9
|
-
padding-right: 20px;
|
10
|
-
resize: horizontal;
|
11
|
-
overflow: auto;
|
12
|
-
border-right: 3px solid black;
|
13
|
-
`
|
14
|
-
|
15
|
-
const Example = () => {
|
16
|
-
return (
|
17
|
-
<>
|
18
|
-
<div style={{ width: 300, marginTop: 100 }}>
|
19
|
-
<TypographyOverflow data-testid='ellipsed-text'>
|
20
|
-
This typography is very long and therefore it overflows.
|
21
|
-
</TypographyOverflow>
|
22
|
-
</div>
|
23
|
-
<DynamicWidthContainer>
|
24
|
-
<TypographyOverflow data-testid='ellipsed-text-dynamic-width'>
|
25
|
-
Another typography is very long and has dynamic width. Try to resize.
|
26
|
-
</TypographyOverflow>
|
27
|
-
</DynamicWidthContainer>
|
28
|
-
</>
|
29
|
-
)
|
30
|
-
}
|
31
|
-
|
32
|
-
export default Example
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { TypographyOverflow } from '@toptal/picasso-lab'
|
3
|
-
import { Container } from '@toptal/picasso'
|
4
|
-
|
5
|
-
const Example = () => {
|
6
|
-
return (
|
7
|
-
<Container flex>
|
8
|
-
<div style={{ width: 300, marginTop: 100 }}>
|
9
|
-
<TypographyOverflow data-testid='default-delay-tooltip'>
|
10
|
-
Default delay. This typography is very long and therefore it
|
11
|
-
overflows.
|
12
|
-
</TypographyOverflow>
|
13
|
-
</div>
|
14
|
-
|
15
|
-
<Container left='large'>
|
16
|
-
<div style={{ width: 300, marginTop: 100 }}>
|
17
|
-
<TypographyOverflow
|
18
|
-
tooltipDelay='long'
|
19
|
-
data-testid='long-delay-tooltip'
|
20
|
-
>
|
21
|
-
Long delay. This typography is very long and therefore it overflows.
|
22
|
-
</TypographyOverflow>
|
23
|
-
</div>
|
24
|
-
</Container>
|
25
|
-
</Container>
|
26
|
-
)
|
27
|
-
}
|
28
|
-
|
29
|
-
export default Example
|
@@ -1,64 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { Checkbox, Radio, Grid } from '@toptal/picasso'
|
3
|
-
import { TypographyOverflow } from '@toptal/picasso-lab'
|
4
|
-
|
5
|
-
const checkboxOptions = [
|
6
|
-
{ label: 'Inbound sales', value: 'inbound_sales' },
|
7
|
-
{ label: 'Legal', value: 'legal' },
|
8
|
-
{
|
9
|
-
label: 'VIP talent screening',
|
10
|
-
value: 'vip_talent_screening'
|
11
|
-
},
|
12
|
-
{ label: 'English screening', value: 'engish_screening' },
|
13
|
-
{ label: 'Designer screening', value: 'designer_screening' },
|
14
|
-
{
|
15
|
-
label: 'Technical screening',
|
16
|
-
value: 'technical_screening'
|
17
|
-
}
|
18
|
-
]
|
19
|
-
|
20
|
-
const radioOptions = [
|
21
|
-
{ label: 'Recruiting', value: 'recruiting' },
|
22
|
-
{ label: 'Customer service', value: 'customer_service' },
|
23
|
-
{ label: 'Staff', value: 'staff' },
|
24
|
-
{
|
25
|
-
label: 'Accounts receivable',
|
26
|
-
value: 'accounts_receivable'
|
27
|
-
},
|
28
|
-
{ label: 'Accounts payable', value: 'accounts_payable' },
|
29
|
-
{ label: 'Sourcing', value: 'sourcing' }
|
30
|
-
]
|
31
|
-
|
32
|
-
const Example = () => {
|
33
|
-
return (
|
34
|
-
<div style={{ width: '660px' }}>
|
35
|
-
<Grid spacing={16}>
|
36
|
-
<Grid.Item small={12}>
|
37
|
-
<Grid>
|
38
|
-
{checkboxOptions.map(({ label: optionLabel, value }) => (
|
39
|
-
<Grid.Item key={value} small={2} large={2}>
|
40
|
-
<Checkbox
|
41
|
-
label={<TypographyOverflow>{optionLabel}</TypographyOverflow>}
|
42
|
-
value={value}
|
43
|
-
/>
|
44
|
-
</Grid.Item>
|
45
|
-
))}
|
46
|
-
</Grid>
|
47
|
-
|
48
|
-
<Grid>
|
49
|
-
{radioOptions.map(({ label: optionLabel, value }) => (
|
50
|
-
<Grid.Item key={value} small={2} large={2}>
|
51
|
-
<Radio
|
52
|
-
label={<TypographyOverflow>{optionLabel}</TypographyOverflow>}
|
53
|
-
value={value}
|
54
|
-
/>
|
55
|
-
</Grid.Item>
|
56
|
-
))}
|
57
|
-
</Grid>
|
58
|
-
</Grid.Item>
|
59
|
-
</Grid>
|
60
|
-
</div>
|
61
|
-
)
|
62
|
-
}
|
63
|
-
|
64
|
-
export default Example
|