@toptal/picasso-lab 9.1.1-alpha-sat-750--poc-picasso-with-ssr.2531 → 9.3.1
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/CHANGELOG.md +1385 -0
- package/{Calendar → dist-package/Calendar}/Calendar.d.ts +0 -0
- package/{Calendar → dist-package/Calendar}/Calendar.js +0 -0
- package/{Calendar → dist-package/Calendar}/Calendar.js.map +0 -0
- package/{Calendar → dist-package/Calendar}/index.d.ts +0 -0
- package/{Calendar → dist-package/Calendar}/index.js +0 -0
- package/{Calendar → dist-package/Calendar}/index.js.map +0 -0
- package/{Calendar → dist-package/Calendar}/styles.d.ts +0 -0
- package/{Calendar → dist-package/Calendar}/styles.js +0 -0
- package/{Calendar → dist-package/Calendar}/styles.js.map +0 -0
- package/{Calendar → dist-package/Calendar}/types.d.ts +0 -0
- package/{Calendar → dist-package/Calendar}/types.js +0 -0
- package/{Calendar → dist-package/Calendar}/types.js.map +0 -0
- package/{DatePicker → dist-package/DatePicker}/DatePicker.d.ts +9 -9
- package/{DatePicker → dist-package/DatePicker}/DatePicker.js +24 -14
- package/dist-package/DatePicker/DatePicker.js.map +1 -0
- package/dist-package/DatePicker/constants.d.ts +2 -0
- package/dist-package/DatePicker/constants.js +3 -0
- package/dist-package/DatePicker/constants.js.map +1 -0
- package/dist-package/DatePicker/index.d.ts +5 -0
- package/dist-package/DatePicker/index.js +4 -0
- package/{DatePicker → dist-package/DatePicker}/index.js.map +1 -1
- package/{DatePicker → dist-package/DatePicker}/styles.d.ts +0 -0
- package/{DatePicker → dist-package/DatePicker}/styles.js +0 -0
- package/{DatePicker → dist-package/DatePicker}/styles.js.map +0 -0
- package/dist-package/DatePicker/types.d.ts +8 -0
- package/dist-package/DatePicker/types.js +2 -0
- package/dist-package/DatePicker/types.js.map +1 -0
- package/{DatePicker → dist-package/DatePicker}/utils.d.ts +3 -0
- package/{DatePicker → dist-package/DatePicker}/utils.js +12 -0
- package/{DatePicker → dist-package/DatePicker}/utils.js.map +1 -1
- package/{Drawer → dist-package/Drawer}/Drawer.d.ts +0 -0
- package/{Drawer → dist-package/Drawer}/Drawer.js +0 -0
- package/{Drawer → dist-package/Drawer}/Drawer.js.map +0 -0
- package/{Drawer → dist-package/Drawer}/index.d.ts +0 -0
- package/{Drawer → dist-package/Drawer}/index.js +0 -0
- package/{Drawer → dist-package/Drawer}/index.js.map +0 -0
- package/{Drawer → dist-package/Drawer}/styles.d.ts +0 -0
- package/{Drawer → dist-package/Drawer}/styles.js +0 -0
- package/{Drawer → dist-package/Drawer}/styles.js.map +0 -0
- package/{DrawerTitle → dist-package/DrawerTitle}/DrawerTitle.d.ts +0 -0
- package/{DrawerTitle → dist-package/DrawerTitle}/DrawerTitle.js +0 -0
- package/{DrawerTitle → dist-package/DrawerTitle}/DrawerTitle.js.map +0 -0
- package/{DrawerTitle → dist-package/DrawerTitle}/index.d.ts +0 -0
- package/{DrawerTitle → dist-package/DrawerTitle}/index.js +0 -0
- package/{DrawerTitle → dist-package/DrawerTitle}/index.js.map +0 -0
- package/{DrawerTitle → dist-package/DrawerTitle}/styles.d.ts +0 -0
- package/{DrawerTitle → dist-package/DrawerTitle}/styles.js +0 -0
- package/{DrawerTitle → dist-package/DrawerTitle}/styles.js.map +0 -0
- package/{Dropzone → dist-package/Dropzone}/Dropzone.d.ts +0 -0
- package/{Dropzone → dist-package/Dropzone}/Dropzone.js +1 -1
- package/{Dropzone → dist-package/Dropzone}/Dropzone.js.map +1 -1
- package/{Dropzone → dist-package/Dropzone}/index.d.ts +0 -0
- package/{Dropzone → dist-package/Dropzone}/index.js +0 -0
- package/{Dropzone → dist-package/Dropzone}/index.js.map +0 -0
- package/{Dropzone → dist-package/Dropzone}/styles.d.ts +1 -1
- package/{Dropzone → dist-package/Dropzone}/styles.js +0 -0
- package/{Dropzone → dist-package/Dropzone}/styles.js.map +0 -0
- package/{Dropzone → dist-package/Dropzone}/types.d.ts +0 -0
- package/{Dropzone → dist-package/Dropzone}/types.js +0 -0
- package/{Dropzone → dist-package/Dropzone}/types.js.map +0 -0
- package/{EmptyState → dist-package/EmptyState}/EmptyState.d.ts +0 -0
- package/{EmptyState → dist-package/EmptyState}/EmptyState.js +0 -0
- package/{EmptyState → dist-package/EmptyState}/EmptyState.js.map +0 -0
- package/{EmptyState → dist-package/EmptyState}/index.d.ts +0 -0
- package/{EmptyState → dist-package/EmptyState}/index.js +0 -0
- package/{EmptyState → dist-package/EmptyState}/index.js.map +0 -0
- package/{EmptyStateCollection → dist-package/EmptyStateCollection}/EmptyStateCollection.d.ts +0 -0
- package/{EmptyStateCollection → dist-package/EmptyStateCollection}/EmptyStateCollection.js +0 -0
- package/{EmptyStateCollection → dist-package/EmptyStateCollection}/EmptyStateCollection.js.map +0 -0
- package/{EmptyStateCollection → dist-package/EmptyStateCollection}/index.d.ts +0 -0
- package/{EmptyStateCollection → dist-package/EmptyStateCollection}/index.js +0 -0
- package/{EmptyStateCollection → dist-package/EmptyStateCollection}/index.js.map +0 -0
- package/{EmptyStateCollection → dist-package/EmptyStateCollection}/styles.d.ts +0 -0
- package/{EmptyStateCollection → dist-package/EmptyStateCollection}/styles.js +0 -0
- package/{EmptyStateCollection → dist-package/EmptyStateCollection}/styles.js.map +0 -0
- package/{EmptyStatePage → dist-package/EmptyStatePage}/EmptyStatePage.d.ts +0 -0
- package/{EmptyStatePage → dist-package/EmptyStatePage}/EmptyStatePage.js +0 -0
- package/{EmptyStatePage → dist-package/EmptyStatePage}/EmptyStatePage.js.map +0 -0
- package/{EmptyStatePage → dist-package/EmptyStatePage}/index.d.ts +0 -0
- package/{EmptyStatePage → dist-package/EmptyStatePage}/index.js +0 -0
- package/{EmptyStatePage → dist-package/EmptyStatePage}/index.js.map +0 -0
- package/{EmptyStatePage → dist-package/EmptyStatePage}/styles.d.ts +0 -0
- package/{EmptyStatePage → dist-package/EmptyStatePage}/styles.js +0 -0
- package/{EmptyStatePage → dist-package/EmptyStatePage}/styles.js.map +0 -0
- package/{Note → dist-package/Note}/Note.d.ts +0 -0
- package/{Note → dist-package/Note}/Note.js +0 -0
- package/{Note → dist-package/Note}/Note.js.map +0 -0
- package/{Note → dist-package/Note}/index.d.ts +0 -0
- package/{Note → dist-package/Note}/index.js +0 -0
- package/{Note → dist-package/Note}/index.js.map +0 -0
- package/{Note → dist-package/Note}/styles.d.ts +0 -0
- package/{Note → dist-package/Note}/styles.js +0 -0
- package/{Note → dist-package/Note}/styles.js.map +0 -0
- package/{NoteContent → dist-package/NoteContent}/NoteContent.d.ts +0 -0
- package/{NoteContent → dist-package/NoteContent}/NoteContent.js +0 -0
- package/{NoteContent → dist-package/NoteContent}/NoteContent.js.map +0 -0
- package/{NoteContent → dist-package/NoteContent}/index.d.ts +0 -0
- package/{NoteContent → dist-package/NoteContent}/index.js +0 -0
- package/{NoteContent → dist-package/NoteContent}/index.js.map +0 -0
- package/{NoteSubtitle → dist-package/NoteSubtitle}/NoteSubtitle.d.ts +0 -0
- package/{NoteSubtitle → dist-package/NoteSubtitle}/NoteSubtitle.js +0 -0
- package/{NoteSubtitle → dist-package/NoteSubtitle}/NoteSubtitle.js.map +0 -0
- package/{NoteSubtitle → dist-package/NoteSubtitle}/index.d.ts +0 -0
- package/{NoteSubtitle → dist-package/NoteSubtitle}/index.js +0 -0
- package/{NoteSubtitle → dist-package/NoteSubtitle}/index.js.map +0 -0
- package/{NoteTitle → dist-package/NoteTitle}/NoteTitle.d.ts +0 -0
- package/{NoteTitle → dist-package/NoteTitle}/NoteTitle.js +0 -0
- package/{NoteTitle → dist-package/NoteTitle}/NoteTitle.js.map +0 -0
- package/{NoteTitle → dist-package/NoteTitle}/index.d.ts +0 -0
- package/{NoteTitle → dist-package/NoteTitle}/index.js +0 -0
- package/{NoteTitle → dist-package/NoteTitle}/index.js.map +0 -0
- package/{NoteTitle → dist-package/NoteTitle}/styles.d.ts +0 -0
- package/{NoteTitle → dist-package/NoteTitle}/styles.js +0 -0
- package/{NoteTitle → dist-package/NoteTitle}/styles.js.map +0 -0
- package/{OverviewBlock → dist-package/OverviewBlock}/OverviewBlock.d.ts +0 -0
- package/{OverviewBlock → dist-package/OverviewBlock}/OverviewBlock.js +0 -0
- package/{OverviewBlock → dist-package/OverviewBlock}/OverviewBlock.js.map +0 -0
- package/{OverviewBlock → dist-package/OverviewBlock}/index.d.ts +0 -0
- package/{OverviewBlock → dist-package/OverviewBlock}/index.js +0 -0
- package/{OverviewBlock → dist-package/OverviewBlock}/index.js.map +0 -0
- package/{OverviewBlock → dist-package/OverviewBlock}/styles.d.ts +0 -0
- package/{OverviewBlock → dist-package/OverviewBlock}/styles.js +0 -0
- package/{OverviewBlock → dist-package/OverviewBlock}/styles.js.map +0 -0
- package/{OverviewBlockGroup → dist-package/OverviewBlockGroup}/OverviewBlockGroup.d.ts +0 -0
- package/{OverviewBlockGroup → dist-package/OverviewBlockGroup}/OverviewBlockGroup.js +0 -0
- package/{OverviewBlockGroup → dist-package/OverviewBlockGroup}/OverviewBlockGroup.js.map +0 -0
- package/{OverviewBlockGroup → dist-package/OverviewBlockGroup}/OverviewBlockGroupContext.d.ts +0 -0
- package/{OverviewBlockGroup → dist-package/OverviewBlockGroup}/OverviewBlockGroupContext.js +0 -0
- package/{OverviewBlockGroup → dist-package/OverviewBlockGroup}/OverviewBlockGroupContext.js.map +0 -0
- package/{OverviewBlockGroup → dist-package/OverviewBlockGroup}/index.d.ts +0 -0
- package/{OverviewBlockGroup → dist-package/OverviewBlockGroup}/index.js +0 -0
- package/{OverviewBlockGroup → dist-package/OverviewBlockGroup}/index.js.map +0 -0
- package/{OverviewBlockGroup → dist-package/OverviewBlockGroup}/settings.d.ts +0 -0
- package/{OverviewBlockGroup → dist-package/OverviewBlockGroup}/settings.js +0 -0
- package/{OverviewBlockGroup → dist-package/OverviewBlockGroup}/settings.js.map +0 -0
- package/{OverviewBlockRow → dist-package/OverviewBlockRow}/OverviewBlockRow.d.ts +0 -0
- package/{OverviewBlockRow → dist-package/OverviewBlockRow}/OverviewBlockRow.js +0 -0
- package/{OverviewBlockRow → dist-package/OverviewBlockRow}/OverviewBlockRow.js.map +0 -0
- package/{OverviewBlockRow → dist-package/OverviewBlockRow}/index.d.ts +0 -0
- package/{OverviewBlockRow → dist-package/OverviewBlockRow}/index.js +0 -0
- package/{OverviewBlockRow → dist-package/OverviewBlockRow}/index.js.map +0 -0
- package/{OverviewBlockRow → dist-package/OverviewBlockRow}/styles.d.ts +0 -0
- package/{OverviewBlockRow → dist-package/OverviewBlockRow}/styles.js +0 -0
- package/{OverviewBlockRow → dist-package/OverviewBlockRow}/styles.js.map +0 -0
- package/dist-package/README.md +26 -0
- package/{Section → dist-package/Section}/Section.d.ts +1 -1
- package/{Section → dist-package/Section}/Section.js +6 -5
- package/dist-package/Section/Section.js.map +1 -0
- package/{Section → dist-package/Section}/index.d.ts +0 -0
- package/{Section → dist-package/Section}/index.js +0 -0
- package/{Section → dist-package/Section}/index.js.map +0 -0
- package/dist-package/Section/styles.d.ts +3 -0
- package/dist-package/Section/styles.js +60 -0
- package/dist-package/Section/styles.js.map +1 -0
- package/{Timeline → dist-package/Timeline}/Timeline.d.ts +0 -0
- package/{Timeline → dist-package/Timeline}/Timeline.js +0 -0
- package/{Timeline → dist-package/Timeline}/Timeline.js.map +0 -0
- package/{Timeline → dist-package/Timeline}/index.d.ts +0 -0
- package/{Timeline → dist-package/Timeline}/index.js +0 -0
- package/{Timeline → dist-package/Timeline}/index.js.map +0 -0
- package/{TimelineRow → dist-package/TimelineRow}/TimelineRow.d.ts +0 -0
- package/{TimelineRow → dist-package/TimelineRow}/TimelineRow.js +0 -0
- package/{TimelineRow → dist-package/TimelineRow}/TimelineRow.js.map +0 -0
- package/{TimelineRow → dist-package/TimelineRow}/index.d.ts +0 -0
- package/{TimelineRow → dist-package/TimelineRow}/index.js +0 -0
- package/{TimelineRow → dist-package/TimelineRow}/index.js.map +0 -0
- package/{TimelineRow → dist-package/TimelineRow}/styles.d.ts +0 -0
- package/{TimelineRow → dist-package/TimelineRow}/styles.js +0 -0
- package/{TimelineRow → dist-package/TimelineRow}/styles.js.map +0 -0
- package/{TypographyOverflow → dist-package/TypographyOverflow}/TypographyOverflow.d.ts +0 -0
- package/{TypographyOverflow → dist-package/TypographyOverflow}/TypographyOverflow.js +0 -0
- package/{TypographyOverflow → dist-package/TypographyOverflow}/TypographyOverflow.js.map +0 -0
- package/{TypographyOverflow → dist-package/TypographyOverflow}/index.d.ts +0 -0
- package/{TypographyOverflow → dist-package/TypographyOverflow}/index.js +0 -0
- package/{TypographyOverflow → dist-package/TypographyOverflow}/index.js.map +0 -0
- package/{TypographyOverflow → dist-package/TypographyOverflow}/styles.d.ts +0 -0
- package/{TypographyOverflow → dist-package/TypographyOverflow}/styles.js +0 -0
- package/{TypographyOverflow → dist-package/TypographyOverflow}/styles.js.map +0 -0
- package/{index.d.ts → dist-package/index.d.ts} +2 -2
- package/{index.js → dist-package/index.js} +1 -1
- package/dist-package/index.js.map +1 -0
- package/dist-package/package.json +53 -0
- package/package.json +4 -5
- package/src/Calendar/Calendar.tsx +215 -0
- package/src/Calendar/__snapshots__/test.tsx.snap +447 -0
- package/src/Calendar/index.ts +2 -0
- package/src/Calendar/styles.ts +104 -0
- package/src/Calendar/test.tsx +20 -0
- package/src/Calendar/types.ts +42 -0
- package/src/DatePicker/DatePicker.tsx +366 -0
- 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 +51 -0
- package/src/DatePicker/constants.ts +2 -0
- package/src/DatePicker/index.ts +5 -0
- package/src/DatePicker/story/AllowCustomValue.example.tsx +33 -0
- package/src/DatePicker/story/Autocomplete.example.tsx +47 -0
- package/src/DatePicker/story/Default.example.tsx +19 -0
- package/src/DatePicker/story/Error.example.tsx +26 -0
- package/src/DatePicker/story/Range.example.tsx +22 -0
- package/src/DatePicker/story/WithCustomDayRendering.example.tsx +47 -0
- package/src/DatePicker/story/WithInitialValue.example.tsx +19 -0
- package/src/DatePicker/story/WithInputProps.example.tsx +24 -0
- package/src/DatePicker/story/WithNoHideOnSelect.example.tsx +20 -0
- package/src/DatePicker/story/WithOnBlurHandler.example.tsx +22 -0
- package/src/DatePicker/story/WithSelectionLimits.example.tsx +32 -0
- package/src/DatePicker/story/WithTimezone.example.tsx +25 -0
- package/src/DatePicker/story/index.jsx +50 -0
- package/src/DatePicker/styles.ts +8 -0
- package/src/DatePicker/test.tsx +370 -0
- package/src/DatePicker/types.ts +13 -0
- package/src/DatePicker/utils.ts +123 -0
- package/src/Drawer/Drawer.tsx +105 -0
- 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 +6 -0
- package/src/Drawer/story/CustomTitle.example.tsx +32 -0
- package/src/Drawer/story/Default.example.tsx +29 -0
- package/src/Drawer/story/DrawerAndNotification.example.tsx +34 -0
- package/src/Drawer/story/Widths.example.tsx +46 -0
- package/src/Drawer/story/WithoutTitle.example.tsx +22 -0
- package/src/Drawer/story/index.jsx +80 -0
- package/src/Drawer/styles.ts +42 -0
- package/src/DrawerTitle/DrawerTitle.tsx +35 -0
- package/src/DrawerTitle/index.ts +1 -0
- package/src/DrawerTitle/styles.ts +12 -0
- package/src/Dropzone/Dropzone.tsx +146 -0
- package/src/Dropzone/__snapshots__/test.tsx.snap +40 -0
- package/src/Dropzone/index.ts +7 -0
- package/src/Dropzone/story/Default.example.tsx +8 -0
- package/src/Dropzone/story/Disabled.example.tsx +25 -0
- package/src/Dropzone/story/Error.example.tsx +16 -0
- package/src/Dropzone/story/Multiple.example.tsx +30 -0
- package/src/Dropzone/story/Uploader.example.tsx +116 -0
- package/src/Dropzone/story/Uploading.example.tsx +16 -0
- package/src/Dropzone/story/index.jsx +85 -0
- package/src/Dropzone/styles.ts +43 -0
- package/src/Dropzone/test.tsx +33 -0
- package/src/Dropzone/types.ts +56 -0
- package/src/EmptyState/EmptyState.tsx +7 -0
- package/src/EmptyState/index.tsx +1 -0
- package/src/EmptyState/story/index.jsx +13 -0
- package/src/EmptyStateCollection/EmptyStateCollection.tsx +56 -0
- package/src/EmptyStateCollection/__image_snapshots__/emptystate-collection-emptystatecollection-snap.png +0 -0
- package/src/EmptyStateCollection/index.tsx +1 -0
- package/src/EmptyStateCollection/story/Default.example.tsx +11 -0
- package/src/EmptyStateCollection/story/index.jsx +20 -0
- package/src/EmptyStateCollection/styles.ts +10 -0
- package/src/EmptyStatePage/EmptyStatePage.tsx +65 -0
- package/src/EmptyStatePage/__image_snapshots__/emptystate-page-emptystatepage-snap.png +0 -0
- package/src/EmptyStatePage/index.tsx +1 -0
- package/src/EmptyStatePage/story/Default.example.tsx +21 -0
- package/src/EmptyStatePage/story/index.jsx +21 -0
- package/src/EmptyStatePage/styles.ts +9 -0
- package/src/Note/Note.tsx +36 -0
- package/src/Note/__snapshots__/test.tsx.snap +37 -0
- package/src/Note/index.ts +6 -0
- package/src/Note/story/Default.example.tsx +14 -0
- package/src/Note/story/index.jsx +23 -0
- package/src/Note/styles.ts +27 -0
- package/src/Note/test.tsx +22 -0
- package/src/NoteContent/NoteContent.tsx +23 -0
- package/src/NoteContent/index.ts +1 -0
- package/src/NoteContent/story/index.jsx +12 -0
- package/src/NoteSubtitle/NoteSubtitle.tsx +25 -0
- package/src/NoteSubtitle/index.ts +1 -0
- package/src/NoteSubtitle/story/index.jsx +12 -0
- package/src/NoteTitle/NoteTitle.tsx +34 -0
- package/src/NoteTitle/index.ts +1 -0
- package/src/NoteTitle/story/index.jsx +12 -0
- package/src/NoteTitle/styles.ts +8 -0
- package/src/OverviewBlock/OverviewBlock.tsx +125 -0
- 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 +6 -0
- package/src/OverviewBlock/story/Default.example.tsx +35 -0
- package/src/OverviewBlock/story/Multiline.example.tsx +51 -0
- package/src/OverviewBlock/story/Number.example.tsx +20 -0
- package/src/OverviewBlock/story/Routing.example.tsx +40 -0
- package/src/OverviewBlock/story/Text.example.tsx +15 -0
- package/src/OverviewBlock/story/index.jsx +100 -0
- package/src/OverviewBlock/styles.ts +44 -0
- package/src/OverviewBlock/test.tsx +111 -0
- package/src/OverviewBlockGroup/OverviewBlockGroup.tsx +56 -0
- package/src/OverviewBlockGroup/OverviewBlockGroupContext.tsx +21 -0
- 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 +1 -0
- package/src/OverviewBlockGroup/settings.ts +2 -0
- package/src/OverviewBlockGroup/story/BlockWidth.example.tsx +38 -0
- package/src/OverviewBlockGroup/story/CenterAligned.example.tsx +17 -0
- package/src/OverviewBlockGroup/story/index.jsx +25 -0
- package/src/OverviewBlockGroup/test.tsx +17 -0
- package/src/OverviewBlockRow/OverviewBlockRow.tsx +22 -0
- package/src/OverviewBlockRow/index.ts +1 -0
- package/src/OverviewBlockRow/story/index.jsx +11 -0
- package/src/OverviewBlockRow/styles.ts +27 -0
- package/src/Section/Section.tsx +163 -0
- package/src/Section/__snapshots__/test.tsx.snap +186 -0
- package/src/Section/index.ts +6 -0
- package/src/Section/story/Actions.example.tsx +85 -0
- package/src/Section/story/Collapsible.example.tsx +113 -0
- package/src/Section/story/Default.example.tsx +77 -0
- package/src/Section/story/TitleSize.example.tsx +34 -0
- package/src/Section/story/Variant.example.tsx +108 -0
- package/src/Section/story/index.jsx +35 -0
- package/src/Section/styles.ts +65 -0
- package/src/Section/test.tsx +115 -0
- package/src/Timeline/Timeline.tsx +25 -0
- package/src/Timeline/__snapshots__/test.tsx.snap +332 -0
- package/src/Timeline/index.ts +6 -0
- package/src/Timeline/story/Dates.example.tsx +52 -0
- package/src/Timeline/story/Default.example.tsx +34 -0
- package/src/Timeline/story/TrimLastConnector.example.tsx +29 -0
- package/src/Timeline/story/index.jsx +27 -0
- package/src/Timeline/test.tsx +101 -0
- package/src/TimelineRow/TimelineRow.tsx +83 -0
- package/src/TimelineRow/index.ts +6 -0
- package/src/TimelineRow/story/index.jsx +11 -0
- package/src/TimelineRow/styles.ts +47 -0
- package/src/TypographyOverflow/TypographyOverflow.tsx +153 -0
- 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 +6 -0
- package/src/TypographyOverflow/story/CheckboxLabel.example.tsx +21 -0
- package/src/TypographyOverflow/story/CustomTooltip.example.tsx +22 -0
- package/src/TypographyOverflow/story/Default.example.tsx +32 -0
- package/src/TypographyOverflow/story/Delay.example.tsx +29 -0
- package/src/TypographyOverflow/story/GridWithControls.example.tsx +64 -0
- package/src/TypographyOverflow/story/Multiline.example.tsx +59 -0
- package/src/TypographyOverflow/story/TooltipVariants.example.tsx +23 -0
- package/src/TypographyOverflow/story/index.jsx +83 -0
- package/src/TypographyOverflow/styles.ts +29 -0
- package/src/TypographyOverflow/test.tsx +60 -0
- package/src/index.ts +35 -0
- package/src/story/index.jsx +10 -0
- package/tsconfig.build.json +7 -0
- package/DatePicker/DatePicker.js.map +0 -1
- package/DatePicker/index.d.ts +0 -2
- package/DatePicker/index.js +0 -2
- package/Section/Section.js.map +0 -1
- package/Section/styles.d.ts +0 -3
- package/Section/styles.js +0 -36
- package/Section/styles.js.map +0 -1
- package/index.js.map +0 -1
@@ -0,0 +1,447 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`Calendar renders 1`] = `
|
4
|
+
<div>
|
5
|
+
<div
|
6
|
+
class="Picasso-root"
|
7
|
+
>
|
8
|
+
<div
|
9
|
+
tabindex="0"
|
10
|
+
>
|
11
|
+
<div
|
12
|
+
class="PicassoCalendar-root"
|
13
|
+
>
|
14
|
+
<div
|
15
|
+
class="PicassoCalendar-actions"
|
16
|
+
>
|
17
|
+
<button
|
18
|
+
class="MuiButtonBase-root PicassoButton-small PicassoButton-secondary PicassoButton-root"
|
19
|
+
data-component-type="button"
|
20
|
+
tabindex="0"
|
21
|
+
title="Previous month"
|
22
|
+
type="button"
|
23
|
+
>
|
24
|
+
<span
|
25
|
+
class="PicassoContainer-centerAlignItems PicassoContainer-flex PicassoContainer-inline PicassoButton-content"
|
26
|
+
>
|
27
|
+
<svg
|
28
|
+
class="PicassoSvgBackMinor16-root"
|
29
|
+
style="min-width: 16px; min-height: 16px;"
|
30
|
+
viewBox="0 0 16 16"
|
31
|
+
>
|
32
|
+
<path
|
33
|
+
d="M9.997 3.29l.707.707-4 4 4 4-.707.707L5.29 7.997l.707-.707 4-4z"
|
34
|
+
/>
|
35
|
+
</svg>
|
36
|
+
</span>
|
37
|
+
</button>
|
38
|
+
<h3
|
39
|
+
class="MuiTypography-root MuiTypography-h3"
|
40
|
+
>
|
41
|
+
February 2019
|
42
|
+
</h3>
|
43
|
+
<button
|
44
|
+
class="MuiButtonBase-root PicassoButton-small PicassoButton-secondary PicassoButton-root"
|
45
|
+
data-component-type="button"
|
46
|
+
tabindex="0"
|
47
|
+
title="Next month"
|
48
|
+
type="button"
|
49
|
+
>
|
50
|
+
<span
|
51
|
+
class="PicassoContainer-centerAlignItems PicassoContainer-flex PicassoContainer-inline PicassoButton-content"
|
52
|
+
>
|
53
|
+
<svg
|
54
|
+
class="PicassoSvgChevronMinor16-root"
|
55
|
+
style="min-width: 16px; min-height: 16px;"
|
56
|
+
viewBox="0 0 16 16"
|
57
|
+
>
|
58
|
+
<path
|
59
|
+
d="M5.997 3.29l4 4 .707.707-.707.707-4 4-.707-.707 4-4-4-4 .707-.707z"
|
60
|
+
/>
|
61
|
+
</svg>
|
62
|
+
</span>
|
63
|
+
</button>
|
64
|
+
</div>
|
65
|
+
<div
|
66
|
+
class="calendar-month"
|
67
|
+
>
|
68
|
+
<div
|
69
|
+
class="PicassoCalendar-weekDays"
|
70
|
+
>
|
71
|
+
<div
|
72
|
+
class="PicassoCalendar-weekDay"
|
73
|
+
>
|
74
|
+
Mon
|
75
|
+
</div>
|
76
|
+
<div
|
77
|
+
class="PicassoCalendar-weekDay"
|
78
|
+
>
|
79
|
+
Tue
|
80
|
+
</div>
|
81
|
+
<div
|
82
|
+
class="PicassoCalendar-weekDay"
|
83
|
+
>
|
84
|
+
Wed
|
85
|
+
</div>
|
86
|
+
<div
|
87
|
+
class="PicassoCalendar-weekDay"
|
88
|
+
>
|
89
|
+
Thu
|
90
|
+
</div>
|
91
|
+
<div
|
92
|
+
class="PicassoCalendar-weekDay"
|
93
|
+
>
|
94
|
+
Fri
|
95
|
+
</div>
|
96
|
+
<div
|
97
|
+
class="PicassoCalendar-weekDay"
|
98
|
+
>
|
99
|
+
Sat
|
100
|
+
</div>
|
101
|
+
<div
|
102
|
+
class="PicassoCalendar-weekDay"
|
103
|
+
>
|
104
|
+
Sun
|
105
|
+
</div>
|
106
|
+
</div>
|
107
|
+
<div
|
108
|
+
class="PicassoCalendar-week"
|
109
|
+
>
|
110
|
+
<button
|
111
|
+
class="PicassoCalendar-day PicassoCalendar-selectable PicassoCalendar-grayed"
|
112
|
+
data-simple-react-calendar-day="2019-01-28"
|
113
|
+
data-testid="day-button-28"
|
114
|
+
type="button"
|
115
|
+
value="Mon Jan 28 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
116
|
+
>
|
117
|
+
28
|
118
|
+
</button>
|
119
|
+
<button
|
120
|
+
class="PicassoCalendar-day PicassoCalendar-selectable PicassoCalendar-grayed"
|
121
|
+
data-simple-react-calendar-day="2019-01-29"
|
122
|
+
data-testid="day-button-29"
|
123
|
+
type="button"
|
124
|
+
value="Tue Jan 29 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
125
|
+
>
|
126
|
+
29
|
127
|
+
</button>
|
128
|
+
<button
|
129
|
+
class="PicassoCalendar-day PicassoCalendar-selectable PicassoCalendar-grayed"
|
130
|
+
data-simple-react-calendar-day="2019-01-30"
|
131
|
+
data-testid="day-button-30"
|
132
|
+
type="button"
|
133
|
+
value="Wed Jan 30 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
134
|
+
>
|
135
|
+
30
|
136
|
+
</button>
|
137
|
+
<button
|
138
|
+
class="PicassoCalendar-day PicassoCalendar-selectable PicassoCalendar-grayed"
|
139
|
+
data-simple-react-calendar-day="2019-01-31"
|
140
|
+
data-testid="day-button-31"
|
141
|
+
type="button"
|
142
|
+
value="Thu Jan 31 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
143
|
+
>
|
144
|
+
31
|
145
|
+
</button>
|
146
|
+
<button
|
147
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
148
|
+
data-simple-react-calendar-day="2019-02-01"
|
149
|
+
data-testid="day-button-1"
|
150
|
+
type="button"
|
151
|
+
value="Fri Feb 01 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
152
|
+
>
|
153
|
+
1
|
154
|
+
</button>
|
155
|
+
<button
|
156
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
157
|
+
data-simple-react-calendar-day="2019-02-02"
|
158
|
+
data-testid="day-button-2"
|
159
|
+
type="button"
|
160
|
+
value="Sat Feb 02 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
161
|
+
>
|
162
|
+
2
|
163
|
+
</button>
|
164
|
+
<button
|
165
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
166
|
+
data-simple-react-calendar-day="2019-02-03"
|
167
|
+
data-testid="day-button-3"
|
168
|
+
type="button"
|
169
|
+
value="Sun Feb 03 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
170
|
+
>
|
171
|
+
3
|
172
|
+
</button>
|
173
|
+
</div>
|
174
|
+
<div
|
175
|
+
class="PicassoCalendar-week"
|
176
|
+
>
|
177
|
+
<button
|
178
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
179
|
+
data-simple-react-calendar-day="2019-02-04"
|
180
|
+
data-testid="day-button-4"
|
181
|
+
type="button"
|
182
|
+
value="Mon Feb 04 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
183
|
+
>
|
184
|
+
4
|
185
|
+
</button>
|
186
|
+
<button
|
187
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
188
|
+
data-simple-react-calendar-day="2019-02-05"
|
189
|
+
data-testid="day-button-5"
|
190
|
+
type="button"
|
191
|
+
value="Tue Feb 05 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
192
|
+
>
|
193
|
+
5
|
194
|
+
</button>
|
195
|
+
<button
|
196
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
197
|
+
data-simple-react-calendar-day="2019-02-06"
|
198
|
+
data-testid="day-button-6"
|
199
|
+
type="button"
|
200
|
+
value="Wed Feb 06 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
201
|
+
>
|
202
|
+
6
|
203
|
+
</button>
|
204
|
+
<button
|
205
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
206
|
+
data-simple-react-calendar-day="2019-02-07"
|
207
|
+
data-testid="day-button-7"
|
208
|
+
type="button"
|
209
|
+
value="Thu Feb 07 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
210
|
+
>
|
211
|
+
7
|
212
|
+
</button>
|
213
|
+
<button
|
214
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
215
|
+
data-simple-react-calendar-day="2019-02-08"
|
216
|
+
data-testid="day-button-8"
|
217
|
+
type="button"
|
218
|
+
value="Fri Feb 08 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
219
|
+
>
|
220
|
+
8
|
221
|
+
</button>
|
222
|
+
<button
|
223
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
224
|
+
data-simple-react-calendar-day="2019-02-09"
|
225
|
+
data-testid="day-button-9"
|
226
|
+
type="button"
|
227
|
+
value="Sat Feb 09 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
228
|
+
>
|
229
|
+
9
|
230
|
+
</button>
|
231
|
+
<button
|
232
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
233
|
+
data-simple-react-calendar-day="2019-02-10"
|
234
|
+
data-testid="day-button-10"
|
235
|
+
type="button"
|
236
|
+
value="Sun Feb 10 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
237
|
+
>
|
238
|
+
10
|
239
|
+
</button>
|
240
|
+
</div>
|
241
|
+
<div
|
242
|
+
class="PicassoCalendar-week"
|
243
|
+
>
|
244
|
+
<button
|
245
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
246
|
+
data-simple-react-calendar-day="2019-02-11"
|
247
|
+
data-testid="day-button-11"
|
248
|
+
type="button"
|
249
|
+
value="Mon Feb 11 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
250
|
+
>
|
251
|
+
11
|
252
|
+
</button>
|
253
|
+
<button
|
254
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
255
|
+
data-simple-react-calendar-day="2019-02-12"
|
256
|
+
data-testid="day-button-12"
|
257
|
+
type="button"
|
258
|
+
value="Tue Feb 12 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
259
|
+
>
|
260
|
+
12
|
261
|
+
</button>
|
262
|
+
<button
|
263
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
264
|
+
data-simple-react-calendar-day="2019-02-13"
|
265
|
+
data-testid="day-button-13"
|
266
|
+
type="button"
|
267
|
+
value="Wed Feb 13 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
268
|
+
>
|
269
|
+
13
|
270
|
+
</button>
|
271
|
+
<button
|
272
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
273
|
+
data-simple-react-calendar-day="2019-02-14"
|
274
|
+
data-testid="day-button-14"
|
275
|
+
type="button"
|
276
|
+
value="Thu Feb 14 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
277
|
+
>
|
278
|
+
14
|
279
|
+
</button>
|
280
|
+
<button
|
281
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
282
|
+
data-simple-react-calendar-day="2019-02-15"
|
283
|
+
data-testid="day-button-15"
|
284
|
+
type="button"
|
285
|
+
value="Fri Feb 15 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
286
|
+
>
|
287
|
+
15
|
288
|
+
</button>
|
289
|
+
<button
|
290
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
291
|
+
data-simple-react-calendar-day="2019-02-16"
|
292
|
+
data-testid="day-button-16"
|
293
|
+
type="button"
|
294
|
+
value="Sat Feb 16 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
295
|
+
>
|
296
|
+
16
|
297
|
+
</button>
|
298
|
+
<button
|
299
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
300
|
+
data-simple-react-calendar-day="2019-02-17"
|
301
|
+
data-testid="day-button-17"
|
302
|
+
type="button"
|
303
|
+
value="Sun Feb 17 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
304
|
+
>
|
305
|
+
17
|
306
|
+
</button>
|
307
|
+
</div>
|
308
|
+
<div
|
309
|
+
class="PicassoCalendar-week"
|
310
|
+
>
|
311
|
+
<button
|
312
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
313
|
+
data-simple-react-calendar-day="2019-02-18"
|
314
|
+
data-testid="day-button-18"
|
315
|
+
type="button"
|
316
|
+
value="Mon Feb 18 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
317
|
+
>
|
318
|
+
18
|
319
|
+
</button>
|
320
|
+
<button
|
321
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
322
|
+
data-simple-react-calendar-day="2019-02-19"
|
323
|
+
data-testid="day-button-19"
|
324
|
+
type="button"
|
325
|
+
value="Tue Feb 19 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
326
|
+
>
|
327
|
+
19
|
328
|
+
</button>
|
329
|
+
<button
|
330
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
331
|
+
data-simple-react-calendar-day="2019-02-20"
|
332
|
+
data-testid="day-button-20"
|
333
|
+
type="button"
|
334
|
+
value="Wed Feb 20 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
335
|
+
>
|
336
|
+
20
|
337
|
+
</button>
|
338
|
+
<button
|
339
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
340
|
+
data-simple-react-calendar-day="2019-02-21"
|
341
|
+
data-testid="day-button-21"
|
342
|
+
type="button"
|
343
|
+
value="Thu Feb 21 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
344
|
+
>
|
345
|
+
21
|
346
|
+
</button>
|
347
|
+
<button
|
348
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
349
|
+
data-simple-react-calendar-day="2019-02-22"
|
350
|
+
data-testid="day-button-22"
|
351
|
+
type="button"
|
352
|
+
value="Fri Feb 22 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
353
|
+
>
|
354
|
+
22
|
355
|
+
</button>
|
356
|
+
<button
|
357
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
358
|
+
data-simple-react-calendar-day="2019-02-23"
|
359
|
+
data-testid="day-button-23"
|
360
|
+
type="button"
|
361
|
+
value="Sat Feb 23 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
362
|
+
>
|
363
|
+
23
|
364
|
+
</button>
|
365
|
+
<button
|
366
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
367
|
+
data-simple-react-calendar-day="2019-02-24"
|
368
|
+
data-testid="day-button-24"
|
369
|
+
type="button"
|
370
|
+
value="Sun Feb 24 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
371
|
+
>
|
372
|
+
24
|
373
|
+
</button>
|
374
|
+
</div>
|
375
|
+
<div
|
376
|
+
class="PicassoCalendar-week"
|
377
|
+
>
|
378
|
+
<button
|
379
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
380
|
+
data-simple-react-calendar-day="2019-02-25"
|
381
|
+
data-testid="day-button-25"
|
382
|
+
type="button"
|
383
|
+
value="Mon Feb 25 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
384
|
+
>
|
385
|
+
25
|
386
|
+
</button>
|
387
|
+
<button
|
388
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
389
|
+
data-simple-react-calendar-day="2019-02-26"
|
390
|
+
data-testid="day-button-26"
|
391
|
+
type="button"
|
392
|
+
value="Tue Feb 26 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
393
|
+
>
|
394
|
+
26
|
395
|
+
</button>
|
396
|
+
<button
|
397
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
398
|
+
data-simple-react-calendar-day="2019-02-27"
|
399
|
+
data-testid="day-button-27"
|
400
|
+
type="button"
|
401
|
+
value="Wed Feb 27 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
402
|
+
>
|
403
|
+
27
|
404
|
+
</button>
|
405
|
+
<button
|
406
|
+
class="PicassoCalendar-day PicassoCalendar-selectable"
|
407
|
+
data-simple-react-calendar-day="2019-02-28"
|
408
|
+
data-testid="day-button-28"
|
409
|
+
type="button"
|
410
|
+
value="Thu Feb 28 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
411
|
+
>
|
412
|
+
28
|
413
|
+
</button>
|
414
|
+
<button
|
415
|
+
class="PicassoCalendar-day PicassoCalendar-selectable PicassoCalendar-grayed"
|
416
|
+
data-simple-react-calendar-day="2019-03-01"
|
417
|
+
data-testid="day-button-1"
|
418
|
+
type="button"
|
419
|
+
value="Fri Mar 01 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
420
|
+
>
|
421
|
+
1
|
422
|
+
</button>
|
423
|
+
<button
|
424
|
+
class="PicassoCalendar-day PicassoCalendar-selectable PicassoCalendar-grayed"
|
425
|
+
data-simple-react-calendar-day="2019-03-02"
|
426
|
+
data-testid="day-button-2"
|
427
|
+
type="button"
|
428
|
+
value="Sat Mar 02 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
429
|
+
>
|
430
|
+
2
|
431
|
+
</button>
|
432
|
+
<button
|
433
|
+
class="PicassoCalendar-day PicassoCalendar-selectable PicassoCalendar-grayed"
|
434
|
+
data-simple-react-calendar-day="2019-03-03"
|
435
|
+
data-testid="day-button-3"
|
436
|
+
type="button"
|
437
|
+
value="Sun Mar 03 2019 00:00:00 GMT+0000 (Coordinated Universal Time)"
|
438
|
+
>
|
439
|
+
3
|
440
|
+
</button>
|
441
|
+
</div>
|
442
|
+
</div>
|
443
|
+
</div>
|
444
|
+
</div>
|
445
|
+
</div>
|
446
|
+
</div>
|
447
|
+
`;
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import { Theme, createStyles } from '@material-ui/core/styles'
|
2
|
+
import { alpha, rem } from '@toptal/picasso-shared'
|
3
|
+
|
4
|
+
export default ({ palette, shadows }: Theme) =>
|
5
|
+
createStyles({
|
6
|
+
root: {
|
7
|
+
padding: '1.875em',
|
8
|
+
color: palette.grey.darker,
|
9
|
+
display: 'flex',
|
10
|
+
flexDirection: 'column',
|
11
|
+
flexBasis: '20.5rem',
|
12
|
+
maxWidth: '20.5rem',
|
13
|
+
boxShadow: shadows[2],
|
14
|
+
backgroundColor: palette.common.white
|
15
|
+
},
|
16
|
+
month: {},
|
17
|
+
week: {
|
18
|
+
display: 'flex'
|
19
|
+
},
|
20
|
+
day: {
|
21
|
+
height: '2.5rem',
|
22
|
+
width: '2.5rem',
|
23
|
+
minWidth: '2.5rem',
|
24
|
+
verticalAlign: 'middle',
|
25
|
+
fontSize: '0.75rem',
|
26
|
+
userSelect: 'none',
|
27
|
+
display: 'flex',
|
28
|
+
alignItems: 'center',
|
29
|
+
justifyContent: 'center',
|
30
|
+
background: palette.common.white,
|
31
|
+
position: 'relative',
|
32
|
+
margin: 0,
|
33
|
+
padding: 0,
|
34
|
+
border: 'none',
|
35
|
+
outline: 0
|
36
|
+
},
|
37
|
+
weekDays: {
|
38
|
+
display: 'flex',
|
39
|
+
textAlign: 'center',
|
40
|
+
fontSize: '0.75em',
|
41
|
+
textTransform: 'uppercase',
|
42
|
+
color: palette.grey.main2,
|
43
|
+
paddingBottom: rem('11px')
|
44
|
+
},
|
45
|
+
weekDay: {
|
46
|
+
flexBasis: '15%'
|
47
|
+
},
|
48
|
+
|
49
|
+
actions: {
|
50
|
+
display: 'flex',
|
51
|
+
justifyContent: 'space-between',
|
52
|
+
marginBottom: '1.5rem'
|
53
|
+
},
|
54
|
+
selected: {
|
55
|
+
background: palette.blue.lighter
|
56
|
+
},
|
57
|
+
selectable: {
|
58
|
+
cursor: 'pointer',
|
59
|
+
|
60
|
+
'&:hover, &:focus': {
|
61
|
+
backgroundColor: alpha(palette.blue.main, 0.24)
|
62
|
+
},
|
63
|
+
|
64
|
+
'&$startSelection:hover, &$endSelection:hover': {
|
65
|
+
backgroundColor: palette.blue.main
|
66
|
+
}
|
67
|
+
},
|
68
|
+
startSelection: {
|
69
|
+
backgroundColor: palette.blue.main,
|
70
|
+
color: palette.common.white,
|
71
|
+
|
72
|
+
'&$today:after': {
|
73
|
+
backgroundColor: palette.common.white
|
74
|
+
}
|
75
|
+
},
|
76
|
+
endSelection: {
|
77
|
+
backgroundColor: palette.blue.main,
|
78
|
+
color: palette.common.white,
|
79
|
+
|
80
|
+
'&$today:after': {
|
81
|
+
backgroundColor: palette.common.white
|
82
|
+
}
|
83
|
+
},
|
84
|
+
today: {
|
85
|
+
display: 'flex',
|
86
|
+
flexDirection: 'column',
|
87
|
+
|
88
|
+
'&:after': {
|
89
|
+
content: '""',
|
90
|
+
height: '0.25rem',
|
91
|
+
width: '0.25rem',
|
92
|
+
borderRadius: '50%',
|
93
|
+
background: palette.blue.main,
|
94
|
+
position: 'absolute',
|
95
|
+
bottom: '0.375rem'
|
96
|
+
}
|
97
|
+
},
|
98
|
+
grayed: {
|
99
|
+
color: palette.grey.main2
|
100
|
+
},
|
101
|
+
disabled: {
|
102
|
+
color: palette.grey.main
|
103
|
+
}
|
104
|
+
})
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { render } from '@toptal/picasso/test-utils'
|
3
|
+
|
4
|
+
import Calendar from './Calendar'
|
5
|
+
|
6
|
+
describe('Calendar', () => {
|
7
|
+
it('renders', () => {
|
8
|
+
const value = new Date('12-12-2019')
|
9
|
+
|
10
|
+
const { container } = render(
|
11
|
+
<Calendar
|
12
|
+
activeMonth={new Date(2019, 1, 1)}
|
13
|
+
onChange={() => {}}
|
14
|
+
value={value}
|
15
|
+
/>
|
16
|
+
)
|
17
|
+
|
18
|
+
expect(container).toMatchSnapshot()
|
19
|
+
})
|
20
|
+
})
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { ReactNode } from 'react'
|
2
|
+
|
3
|
+
export interface DayProps {
|
4
|
+
isDisabled: boolean
|
5
|
+
isSelected: boolean
|
6
|
+
isSelectable: boolean
|
7
|
+
isToday: boolean
|
8
|
+
isMonthNext: boolean
|
9
|
+
isMonthPrev: boolean
|
10
|
+
isSelectionStart: boolean
|
11
|
+
isSelectionEnd: boolean
|
12
|
+
handleOnClick: () => void
|
13
|
+
handleOnEnter: () => void
|
14
|
+
date: Date
|
15
|
+
ISODate: string
|
16
|
+
getDayFormatted: (date: Date) => string
|
17
|
+
key?: string
|
18
|
+
children?: ReactNode
|
19
|
+
}
|
20
|
+
|
21
|
+
export interface MonthHeaderProps {
|
22
|
+
switchMonth: (diff: number) => void
|
23
|
+
activeMonth: Date
|
24
|
+
}
|
25
|
+
|
26
|
+
export interface WeekProps {
|
27
|
+
children?: ReactNode
|
28
|
+
}
|
29
|
+
|
30
|
+
export interface DayOfWeekProps {
|
31
|
+
day: string
|
32
|
+
key: string
|
33
|
+
children?: ReactNode
|
34
|
+
}
|
35
|
+
|
36
|
+
export interface DaysOfWeekProps {
|
37
|
+
children?: ReactNode
|
38
|
+
}
|
39
|
+
|
40
|
+
export interface CalendarProps {
|
41
|
+
children?: ReactNode
|
42
|
+
}
|