@flipdish/ui-library 0.55.1 → 0.57.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/components/atoms/AppStoreButton/index.cjs +23 -40
- package/dist/components/atoms/AppStoreButton/index.cjs.map +1 -1
- package/dist/components/atoms/AppStoreButton/index.d.ts +30 -28
- package/dist/components/atoms/AppStoreButton/index.d.ts.map +1 -1
- package/dist/components/atoms/AppStoreButton/index.js +20 -37
- package/dist/components/atoms/AppStoreButton/index.js.map +1 -1
- package/dist/components/atoms/{AppStoreButton/components → BrandButtons/AppStoreButton}/AppStoreBadgeLink.cjs +1 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreBadgeLink.cjs.map +1 -0
- package/dist/components/atoms/{AppStoreButton/components → BrandButtons/AppStoreButton}/AppStoreBadgeLink.d.ts +1 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreBadgeLink.d.ts.map +1 -0
- package/dist/components/atoms/{AppStoreButton/components → BrandButtons/AppStoreButton}/AppStoreBadgeLink.js +1 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreBadgeLink.js.map +1 -0
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButton.cjs +44 -0
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButton.cjs.map +1 -0
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButton.d.ts +42 -0
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButton.d.ts.map +1 -0
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButton.js +38 -0
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButton.js.map +1 -0
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButtonsOutline.cjs.map +1 -0
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButtonsOutline.d.ts.map +1 -0
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButtonsOutline.js.map +1 -0
- package/dist/components/atoms/{AppStoreButton/components → BrandButtons/AppStoreButton}/GooglePlayPaths.cjs +1 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/GooglePlayPaths.cjs.map +1 -0
- package/dist/components/atoms/{AppStoreButton/components → BrandButtons/AppStoreButton}/GooglePlayPaths.d.ts +1 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/GooglePlayPaths.d.ts.map +1 -0
- package/dist/components/atoms/{AppStoreButton/components → BrandButtons/AppStoreButton}/GooglePlayPaths.js +1 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/GooglePlayPaths.js.map +1 -0
- package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.cjs +108 -0
- package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.cjs.map +1 -0
- package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.d.ts +66 -0
- package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.d.ts.map +1 -0
- package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.js +105 -0
- package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.js.map +1 -0
- package/dist/components/atoms/BrandButtons/SocialButton/SocialLogos.cjs.map +1 -0
- package/dist/components/atoms/BrandButtons/SocialButton/SocialLogos.d.ts.map +1 -0
- package/dist/components/atoms/BrandButtons/SocialButton/SocialLogos.js.map +1 -0
- package/dist/components/atoms/BrandButtons/index.cjs +19 -0
- package/dist/components/atoms/BrandButtons/index.cjs.map +1 -0
- package/dist/components/atoms/BrandButtons/index.d.ts +14 -0
- package/dist/components/atoms/BrandButtons/index.d.ts.map +1 -0
- package/dist/components/atoms/BrandButtons/index.js +4 -0
- package/dist/components/atoms/BrandButtons/index.js.map +1 -0
- package/dist/components/atoms/SocialButton/index.cjs +6 -100
- package/dist/components/atoms/SocialButton/index.cjs.map +1 -1
- package/dist/components/atoms/SocialButton/index.d.ts +6 -31
- package/dist/components/atoms/SocialButton/index.d.ts.map +1 -1
- package/dist/components/atoms/SocialButton/index.js +6 -100
- package/dist/components/atoms/SocialButton/index.js.map +1 -1
- package/dist/components/atoms/UtilityButton/index.cjs +5 -2
- package/dist/components/atoms/UtilityButton/index.cjs.map +1 -1
- package/dist/components/atoms/UtilityButton/index.d.ts.map +1 -1
- package/dist/components/atoms/UtilityButton/index.js +5 -2
- package/dist/components/atoms/UtilityButton/index.js.map +1 -1
- package/dist/components/forms/__internal__/formField/hooks/useFormField.d.ts +1 -1
- package/dist/components/forms/__internal__/formField/hooks/useFormField.d.ts.map +1 -1
- package/dist/components/forms/fields/FormCheckbox/index.cjs +1 -1
- package/dist/components/forms/fields/FormCheckbox/index.d.ts +1 -1
- package/dist/components/forms/fields/FormCheckbox/index.js +1 -1
- package/dist/components/forms/fields/FormDatePicker/index.cjs +2 -2
- package/dist/components/forms/fields/FormDatePicker/index.d.ts +1 -1
- package/dist/components/forms/fields/FormDatePicker/index.d.ts.map +1 -1
- package/dist/components/forms/fields/FormDatePicker/index.js +1 -1
- package/dist/components/forms/validation/index.cjs +1 -1
- package/dist/components/forms/validation/index.d.ts +2 -2
- package/dist/components/forms/validation/index.d.ts.map +1 -1
- package/dist/components/forms/validation/index.js +1 -1
- package/dist/components/molecules/ActivityFeed/index.cjs +32 -0
- package/dist/components/molecules/ActivityFeed/index.cjs.map +1 -0
- package/dist/components/molecules/ActivityFeed/index.d.ts +54 -0
- package/dist/components/molecules/ActivityFeed/index.d.ts.map +1 -0
- package/dist/components/molecules/ActivityFeed/index.js +30 -0
- package/dist/components/molecules/ActivityFeed/index.js.map +1 -0
- package/dist/components/molecules/Carousel/index.cjs +5 -140
- package/dist/components/molecules/Carousel/index.cjs.map +1 -1
- package/dist/components/molecules/Carousel/index.d.ts +5 -122
- package/dist/components/molecules/Carousel/index.d.ts.map +1 -1
- package/dist/components/molecules/Carousel/index.js +5 -140
- package/dist/components/molecules/Carousel/index.js.map +1 -1
- package/dist/components/molecules/CodeSnippet/index.cjs +5 -106
- package/dist/components/molecules/CodeSnippet/index.cjs.map +1 -1
- package/dist/components/molecules/CodeSnippet/index.d.ts +13 -73
- package/dist/components/molecules/CodeSnippet/index.d.ts.map +1 -1
- package/dist/components/molecules/CodeSnippet/index.js +5 -106
- package/dist/components/molecules/CodeSnippet/index.js.map +1 -1
- package/dist/components/molecules/Messaging/components/MessageItemActions.cjs +11 -0
- package/dist/components/molecules/Messaging/components/MessageItemActions.cjs.map +1 -0
- package/dist/components/{organisms → molecules}/Messaging/components/MessageItemActions.d.ts +1 -1
- package/dist/components/molecules/Messaging/components/MessageItemActions.d.ts.map +1 -0
- package/dist/components/molecules/Messaging/components/MessageItemActions.js +9 -0
- package/dist/components/molecules/Messaging/components/MessageItemActions.js.map +1 -0
- package/dist/components/molecules/Messaging/index.cjs +56 -0
- package/dist/components/molecules/Messaging/index.cjs.map +1 -0
- package/dist/components/molecules/Messaging/index.d.ts +70 -0
- package/dist/components/molecules/Messaging/index.d.ts.map +1 -0
- package/dist/components/molecules/Messaging/index.js +53 -0
- package/dist/components/molecules/Messaging/index.js.map +1 -0
- package/dist/components/{organisms/Messaging → molecules/Messaging/utilities}/messageItem.utils.cjs +4 -2
- package/dist/components/molecules/Messaging/utilities/messageItem.utils.cjs.map +1 -0
- package/dist/components/molecules/Messaging/utilities/messageItem.utils.d.ts.map +1 -0
- package/dist/components/{organisms/Messaging → molecules/Messaging/utilities}/messageItem.utils.js +4 -2
- package/dist/components/molecules/Messaging/utilities/messageItem.utils.js.map +1 -0
- package/dist/components/molecules/Notification/index.cjs +7 -43
- package/dist/components/molecules/Notification/index.cjs.map +1 -1
- package/dist/components/molecules/Notification/index.d.ts +9 -90
- package/dist/components/molecules/Notification/index.d.ts.map +1 -1
- package/dist/components/molecules/Notification/index.js +7 -43
- package/dist/components/molecules/Notification/index.js.map +1 -1
- package/dist/components/molecules/Notifications/AvatarNotification/AvatarNotification.cjs +21 -0
- package/dist/components/molecules/Notifications/AvatarNotification/AvatarNotification.cjs.map +1 -0
- package/dist/components/molecules/Notifications/AvatarNotification/AvatarNotification.d.ts +46 -0
- package/dist/components/molecules/Notifications/AvatarNotification/AvatarNotification.d.ts.map +1 -0
- package/dist/components/molecules/Notifications/AvatarNotification/AvatarNotification.js +19 -0
- package/dist/components/molecules/Notifications/AvatarNotification/AvatarNotification.js.map +1 -0
- package/dist/components/molecules/Notifications/IconNotification/IconNotification.cjs +26 -0
- package/dist/components/molecules/Notifications/IconNotification/IconNotification.cjs.map +1 -0
- package/dist/components/molecules/Notifications/IconNotification/IconNotification.d.ts +39 -0
- package/dist/components/molecules/Notifications/IconNotification/IconNotification.d.ts.map +1 -0
- package/dist/components/molecules/Notifications/IconNotification/IconNotification.js +24 -0
- package/dist/components/molecules/Notifications/IconNotification/IconNotification.js.map +1 -0
- package/dist/components/molecules/Notifications/ImageNotification/ImageNotification.cjs +22 -0
- package/dist/components/molecules/Notifications/ImageNotification/ImageNotification.cjs.map +1 -0
- package/dist/components/molecules/Notifications/ImageNotification/ImageNotification.d.ts +33 -0
- package/dist/components/molecules/Notifications/ImageNotification/ImageNotification.d.ts.map +1 -0
- package/dist/components/molecules/Notifications/ImageNotification/ImageNotification.js +20 -0
- package/dist/components/molecules/Notifications/ImageNotification/ImageNotification.js.map +1 -0
- package/dist/components/molecules/Notifications/index.cjs +12 -0
- package/dist/components/molecules/Notifications/index.cjs.map +1 -0
- package/dist/components/molecules/Notifications/index.d.ts +16 -0
- package/dist/components/molecules/Notifications/index.d.ts.map +1 -0
- package/dist/components/molecules/Notifications/index.js +4 -0
- package/dist/components/molecules/Notifications/index.js.map +1 -0
- package/dist/components/organisms/ActivityFeed/index.cjs +3 -26
- package/dist/components/organisms/ActivityFeed/index.cjs.map +1 -1
- package/dist/components/organisms/ActivityFeed/index.d.ts +7 -52
- package/dist/components/organisms/ActivityFeed/index.d.ts.map +1 -1
- package/dist/components/organisms/ActivityFeed/index.js +3 -26
- package/dist/components/organisms/ActivityFeed/index.js.map +1 -1
- package/dist/components/organisms/Calendar/components/CalendarDayView.cjs +1 -1
- package/dist/components/organisms/Calendar/components/CalendarDayView.js +1 -1
- package/dist/components/{molecules → organisms}/Carousel/hooks/useCarouselScroll.cjs +4 -1
- package/dist/components/organisms/Carousel/hooks/useCarouselScroll.cjs.map +1 -0
- package/dist/components/{molecules → organisms}/Carousel/hooks/useCarouselScroll.d.ts +3 -3
- package/dist/components/{molecules → organisms}/Carousel/hooks/useCarouselScroll.d.ts.map +1 -1
- package/dist/components/{molecules → organisms}/Carousel/hooks/useCarouselScroll.js +4 -1
- package/dist/components/organisms/Carousel/hooks/useCarouselScroll.js.map +1 -0
- package/dist/components/organisms/Carousel/index.cjs +155 -0
- package/dist/components/organisms/Carousel/index.cjs.map +1 -0
- package/dist/components/organisms/Carousel/index.d.ts +133 -0
- package/dist/components/organisms/Carousel/index.d.ts.map +1 -0
- package/dist/components/organisms/Carousel/index.js +152 -0
- package/dist/components/organisms/Carousel/index.js.map +1 -0
- package/dist/components/organisms/CodeSnippet/hooks/useCodeSnippetCollapse.cjs +39 -0
- package/dist/components/organisms/CodeSnippet/hooks/useCodeSnippetCollapse.cjs.map +1 -0
- package/dist/components/{molecules → organisms}/CodeSnippet/hooks/useCodeSnippetCollapse.d.ts +7 -3
- package/dist/components/organisms/CodeSnippet/hooks/useCodeSnippetCollapse.d.ts.map +1 -0
- package/dist/components/organisms/CodeSnippet/hooks/useCodeSnippetCollapse.js +37 -0
- package/dist/components/organisms/CodeSnippet/hooks/useCodeSnippetCollapse.js.map +1 -0
- package/dist/components/{molecules → organisms}/CodeSnippet/hooks/useCodeSnippetHighlight.cjs.map +1 -1
- package/dist/components/{molecules → organisms}/CodeSnippet/hooks/useCodeSnippetHighlight.d.ts.map +1 -1
- package/dist/components/{molecules → organisms}/CodeSnippet/hooks/useCodeSnippetHighlight.js.map +1 -1
- package/dist/components/organisms/CodeSnippet/index.cjs +126 -0
- package/dist/components/organisms/CodeSnippet/index.cjs.map +1 -0
- package/dist/components/organisms/CodeSnippet/index.d.ts +69 -0
- package/dist/components/organisms/CodeSnippet/index.d.ts.map +1 -0
- package/dist/components/organisms/CodeSnippet/index.js +123 -0
- package/dist/components/organisms/CodeSnippet/index.js.map +1 -0
- package/dist/components/organisms/CodeSnippet/utilities/codeSnippet.utils.cjs.map +1 -0
- package/dist/components/organisms/CodeSnippet/utilities/codeSnippet.utils.d.ts.map +1 -0
- package/dist/components/organisms/CodeSnippet/utilities/codeSnippet.utils.js.map +1 -0
- package/dist/components/organisms/DatePicker/index.cjs +9 -57
- package/dist/components/organisms/DatePicker/index.cjs.map +1 -1
- package/dist/components/organisms/DatePicker/index.d.ts +15 -29
- package/dist/components/organisms/DatePicker/index.d.ts.map +1 -1
- package/dist/components/organisms/DatePicker/index.js +8 -56
- package/dist/components/organisms/DatePicker/index.js.map +1 -1
- package/dist/components/organisms/{DatePicker/components → DatePickers/DatePicker}/Calendar.cjs +2 -2
- package/dist/components/organisms/DatePickers/DatePicker/Calendar.cjs.map +1 -0
- package/dist/components/organisms/DatePickers/DatePicker/Calendar.d.ts.map +1 -0
- package/dist/components/organisms/{DatePicker/components → DatePickers/DatePicker}/Calendar.js +2 -2
- package/dist/components/organisms/DatePickers/DatePicker/Calendar.js.map +1 -0
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.cjs +55 -0
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.cjs.map +1 -0
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.d.ts +31 -0
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.js +53 -0
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.js.map +1 -0
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.cjs +73 -0
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.cjs.map +1 -0
- package/dist/components/organisms/{DatePicker/components → DatePickers/DateRangePicker}/DateRangePicker.d.ts +4 -2
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.js +71 -0
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.js.map +1 -0
- package/dist/components/organisms/{DatePicker/components → DatePickers/RangeCalendar}/RangeCalendar.cjs +2 -2
- package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.cjs.map +1 -0
- package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.d.ts.map +1 -0
- package/dist/components/organisms/{DatePicker/components → DatePickers/RangeCalendar}/RangeCalendar.js +2 -2
- package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.js.map +1 -0
- package/dist/components/organisms/DatePickers/components/CalendarOverlay.cjs.map +1 -0
- package/dist/components/organisms/DatePickers/components/CalendarOverlay.d.ts.map +1 -0
- package/dist/components/organisms/DatePickers/components/CalendarOverlay.js.map +1 -0
- package/dist/components/organisms/{DatePicker → DatePickers}/components/Cell.cjs +1 -1
- package/dist/components/organisms/DatePickers/components/Cell.cjs.map +1 -0
- package/dist/components/organisms/DatePickers/components/Cell.d.ts.map +1 -0
- package/dist/components/organisms/{DatePicker → DatePickers}/components/Cell.js +1 -1
- package/dist/components/organisms/DatePickers/components/Cell.js.map +1 -0
- package/dist/components/organisms/DatePickers/components/InputDate.cjs.map +1 -0
- package/dist/components/organisms/DatePickers/components/InputDate.d.ts.map +1 -0
- package/dist/components/organisms/DatePickers/components/InputDate.js.map +1 -0
- package/dist/components/organisms/DatePickers/hooks/useDatePickerDraft.cjs +27 -0
- package/dist/components/organisms/DatePickers/hooks/useDatePickerDraft.cjs.map +1 -0
- package/dist/components/organisms/DatePickers/hooks/useDatePickerDraft.d.ts +18 -0
- package/dist/components/organisms/DatePickers/hooks/useDatePickerDraft.d.ts.map +1 -0
- package/dist/components/organisms/DatePickers/hooks/useDatePickerDraft.js +25 -0
- package/dist/components/organisms/DatePickers/hooks/useDatePickerDraft.js.map +1 -0
- package/dist/components/organisms/DatePickers/index.cjs +12 -0
- package/dist/components/organisms/DatePickers/index.cjs.map +1 -0
- package/dist/components/organisms/DatePickers/index.d.ts +16 -0
- package/dist/components/organisms/DatePickers/index.d.ts.map +1 -0
- package/dist/components/organisms/DatePickers/index.js +4 -0
- package/dist/components/organisms/DatePickers/index.js.map +1 -0
- package/dist/components/organisms/DatePickers/utilities/calendarCell.utils.cjs.map +1 -0
- package/dist/components/organisms/DatePickers/utilities/calendarCell.utils.d.ts.map +1 -0
- package/dist/components/organisms/DatePickers/utilities/calendarCell.utils.js.map +1 -0
- package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.cjs +47 -0
- package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.cjs.map +1 -0
- package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.d.ts +74 -0
- package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.d.ts.map +1 -0
- package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.js +45 -0
- package/dist/components/organisms/DatePickers/utilities/dateRangePresets.utils.js.map +1 -0
- package/dist/components/organisms/Messaging/index.cjs +5 -49
- package/dist/components/organisms/Messaging/index.cjs.map +1 -1
- package/dist/components/organisms/Messaging/index.d.ts +9 -68
- package/dist/components/organisms/Messaging/index.d.ts.map +1 -1
- package/dist/components/organisms/Messaging/index.js +5 -49
- package/dist/components/organisms/Messaging/index.js.map +1 -1
- package/dist/native/components/{forms/fields/FormToggle → atoms/BrandButtons}/index.d.ts +3 -3
- package/dist/native/components/molecules/ActivityFeed/index.d.ts +12 -0
- package/dist/native/components/molecules/Messaging/index.d.ts +12 -0
- package/dist/native/components/molecules/Notifications/index.d.ts +12 -0
- package/dist/native/components/organisms/Carousel/index.d.ts +12 -0
- package/dist/native/components/organisms/CodeSnippet/index.d.ts +12 -0
- package/dist/native/components/organisms/DatePickers/index.d.ts +12 -0
- package/package.json +1 -1
- package/dist/components/atoms/AppStoreButton/components/AppStoreBadgeLink.cjs.map +0 -1
- package/dist/components/atoms/AppStoreButton/components/AppStoreBadgeLink.d.ts.map +0 -1
- package/dist/components/atoms/AppStoreButton/components/AppStoreBadgeLink.js.map +0 -1
- package/dist/components/atoms/AppStoreButton/components/AppStoreButtonsOutline.cjs.map +0 -1
- package/dist/components/atoms/AppStoreButton/components/AppStoreButtonsOutline.d.ts.map +0 -1
- package/dist/components/atoms/AppStoreButton/components/AppStoreButtonsOutline.js.map +0 -1
- package/dist/components/atoms/AppStoreButton/components/GooglePlayPaths.cjs.map +0 -1
- package/dist/components/atoms/AppStoreButton/components/GooglePlayPaths.d.ts.map +0 -1
- package/dist/components/atoms/AppStoreButton/components/GooglePlayPaths.js.map +0 -1
- package/dist/components/atoms/SocialButton/components/SocialLogos.cjs.map +0 -1
- package/dist/components/atoms/SocialButton/components/SocialLogos.d.ts.map +0 -1
- package/dist/components/atoms/SocialButton/components/SocialLogos.js.map +0 -1
- package/dist/components/forms/fields/FormToggle/index.cjs +0 -32
- package/dist/components/forms/fields/FormToggle/index.cjs.map +0 -1
- package/dist/components/forms/fields/FormToggle/index.d.ts +0 -19
- package/dist/components/forms/fields/FormToggle/index.d.ts.map +0 -1
- package/dist/components/forms/fields/FormToggle/index.js +0 -30
- package/dist/components/forms/fields/FormToggle/index.js.map +0 -1
- package/dist/components/molecules/Carousel/hooks/useCarouselScroll.cjs.map +0 -1
- package/dist/components/molecules/Carousel/hooks/useCarouselScroll.js.map +0 -1
- package/dist/components/molecules/CodeSnippet/codeSnippet.utils.cjs.map +0 -1
- package/dist/components/molecules/CodeSnippet/codeSnippet.utils.d.ts.map +0 -1
- package/dist/components/molecules/CodeSnippet/codeSnippet.utils.js.map +0 -1
- package/dist/components/molecules/CodeSnippet/hooks/useCodeSnippetCollapse.cjs +0 -29
- package/dist/components/molecules/CodeSnippet/hooks/useCodeSnippetCollapse.cjs.map +0 -1
- package/dist/components/molecules/CodeSnippet/hooks/useCodeSnippetCollapse.d.ts.map +0 -1
- package/dist/components/molecules/CodeSnippet/hooks/useCodeSnippetCollapse.js +0 -27
- package/dist/components/molecules/CodeSnippet/hooks/useCodeSnippetCollapse.js.map +0 -1
- package/dist/components/organisms/DatePicker/calendarCell.utils.cjs.map +0 -1
- package/dist/components/organisms/DatePicker/calendarCell.utils.d.ts.map +0 -1
- package/dist/components/organisms/DatePicker/calendarCell.utils.js.map +0 -1
- package/dist/components/organisms/DatePicker/components/Calendar.cjs.map +0 -1
- package/dist/components/organisms/DatePicker/components/Calendar.d.ts.map +0 -1
- package/dist/components/organisms/DatePicker/components/Calendar.js.map +0 -1
- package/dist/components/organisms/DatePicker/components/CalendarOverlay.cjs.map +0 -1
- package/dist/components/organisms/DatePicker/components/CalendarOverlay.d.ts.map +0 -1
- package/dist/components/organisms/DatePicker/components/CalendarOverlay.js.map +0 -1
- package/dist/components/organisms/DatePicker/components/Cell.cjs.map +0 -1
- package/dist/components/organisms/DatePicker/components/Cell.d.ts.map +0 -1
- package/dist/components/organisms/DatePicker/components/Cell.js.map +0 -1
- package/dist/components/organisms/DatePicker/components/DateRangePicker.cjs +0 -108
- package/dist/components/organisms/DatePicker/components/DateRangePicker.cjs.map +0 -1
- package/dist/components/organisms/DatePicker/components/DateRangePicker.d.ts.map +0 -1
- package/dist/components/organisms/DatePicker/components/DateRangePicker.js +0 -106
- package/dist/components/organisms/DatePicker/components/DateRangePicker.js.map +0 -1
- package/dist/components/organisms/DatePicker/components/InputDate.cjs.map +0 -1
- package/dist/components/organisms/DatePicker/components/InputDate.d.ts.map +0 -1
- package/dist/components/organisms/DatePicker/components/InputDate.js.map +0 -1
- package/dist/components/organisms/DatePicker/components/RangeCalendar.cjs.map +0 -1
- package/dist/components/organisms/DatePicker/components/RangeCalendar.d.ts.map +0 -1
- package/dist/components/organisms/DatePicker/components/RangeCalendar.js.map +0 -1
- package/dist/components/organisms/Messaging/components/MessageItemActions.cjs +0 -13
- package/dist/components/organisms/Messaging/components/MessageItemActions.cjs.map +0 -1
- package/dist/components/organisms/Messaging/components/MessageItemActions.d.ts.map +0 -1
- package/dist/components/organisms/Messaging/components/MessageItemActions.js +0 -11
- package/dist/components/organisms/Messaging/components/MessageItemActions.js.map +0 -1
- package/dist/components/organisms/Messaging/messageItem.utils.cjs.map +0 -1
- package/dist/components/organisms/Messaging/messageItem.utils.d.ts.map +0 -1
- package/dist/components/organisms/Messaging/messageItem.utils.js.map +0 -1
- /package/dist/components/atoms/{AppStoreButton/components → BrandButtons/AppStoreButton}/AppStoreButtonsOutline.cjs +0 -0
- /package/dist/components/atoms/{AppStoreButton/components → BrandButtons/AppStoreButton}/AppStoreButtonsOutline.d.ts +0 -0
- /package/dist/components/atoms/{AppStoreButton/components → BrandButtons/AppStoreButton}/AppStoreButtonsOutline.js +0 -0
- /package/dist/components/atoms/{SocialButton/components → BrandButtons/SocialButton}/SocialLogos.cjs +0 -0
- /package/dist/components/atoms/{SocialButton/components → BrandButtons/SocialButton}/SocialLogos.d.ts +0 -0
- /package/dist/components/atoms/{SocialButton/components → BrandButtons/SocialButton}/SocialLogos.js +0 -0
- /package/dist/components/{organisms/Messaging → molecules/Messaging/utilities}/messageItem.utils.d.ts +0 -0
- /package/dist/components/{molecules → organisms}/CodeSnippet/hooks/useCodeSnippetHighlight.cjs +0 -0
- /package/dist/components/{molecules → organisms}/CodeSnippet/hooks/useCodeSnippetHighlight.d.ts +0 -0
- /package/dist/components/{molecules → organisms}/CodeSnippet/hooks/useCodeSnippetHighlight.js +0 -0
- /package/dist/components/{molecules/CodeSnippet → organisms/CodeSnippet/utilities}/codeSnippet.utils.cjs +0 -0
- /package/dist/components/{molecules/CodeSnippet → organisms/CodeSnippet/utilities}/codeSnippet.utils.d.ts +0 -0
- /package/dist/components/{molecules/CodeSnippet → organisms/CodeSnippet/utilities}/codeSnippet.utils.js +0 -0
- /package/dist/components/organisms/{DatePicker/components → DatePickers/DatePicker}/Calendar.d.ts +0 -0
- /package/dist/components/organisms/{DatePicker/components → DatePickers/RangeCalendar}/RangeCalendar.d.ts +0 -0
- /package/dist/components/organisms/{DatePicker → DatePickers}/components/CalendarOverlay.cjs +0 -0
- /package/dist/components/organisms/{DatePicker → DatePickers}/components/CalendarOverlay.d.ts +0 -0
- /package/dist/components/organisms/{DatePicker → DatePickers}/components/CalendarOverlay.js +0 -0
- /package/dist/components/organisms/{DatePicker → DatePickers}/components/Cell.d.ts +0 -0
- /package/dist/components/organisms/{DatePicker → DatePickers}/components/InputDate.cjs +0 -0
- /package/dist/components/organisms/{DatePicker → DatePickers}/components/InputDate.d.ts +0 -0
- /package/dist/components/organisms/{DatePicker → DatePickers}/components/InputDate.js +0 -0
- /package/dist/components/organisms/{DatePicker → DatePickers/utilities}/calendarCell.utils.cjs +0 -0
- /package/dist/components/organisms/{DatePicker → DatePickers/utilities}/calendarCell.utils.d.ts +0 -0
- /package/dist/components/organisms/{DatePicker → DatePickers/utilities}/calendarCell.utils.js +0 -0
|
@@ -1,104 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useResolvedTestId } from '@flipdish/ui-library/utilities/testIdUtils';
|
|
4
|
-
import { Link, Button } from 'react-aria-components';
|
|
5
|
-
import { DribbleLogo, FigmaLogoOutlined, FigmaLogo, TwitterLogo, AppleLogo, FacebookLogo, GoogleLogo } from './components/SocialLogos.js';
|
|
1
|
+
import { SocialButton as SocialButton$1 } from '@flipdish/ui-library/components/atoms/BrandButtons';
|
|
2
|
+
import { styles as styles$1 } from '../BrandButtons/SocialButton/SocialButton.js';
|
|
6
3
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
sizes: {
|
|
13
|
-
md: {
|
|
14
|
-
root: 'gap-2 rounded-lg px-3.5 py-2.5 text-sm before:rounded-[7px] data-icon-only:p-3',
|
|
15
|
-
icon: 'size-4',
|
|
16
|
-
},
|
|
17
|
-
lg: {
|
|
18
|
-
root: 'gap-2.5 rounded-lg px-4 py-2.5 text-md before:rounded-[7px] data-icon-only:p-3',
|
|
19
|
-
icon: 'size-5',
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
colors: {
|
|
23
|
-
gray: {
|
|
24
|
-
root: 'bg-primary text-secondary shadow-xs-skeuomorphic ring-1 ring-primary ring-inset hover:bg-primary_hover hover:text-secondary_hover',
|
|
25
|
-
icon: 'text-fg-quaternary group-hover:text-fg-quaternary_hover',
|
|
26
|
-
},
|
|
27
|
-
black: {
|
|
28
|
-
root: 'bg-black text-white shadow-xs-skeuomorphic ring-1 ring-transparent ring-inset before:absolute before:inset-px before:border before:border-white/12 before:mask-b-from-0%',
|
|
29
|
-
icon: '',
|
|
30
|
-
},
|
|
31
|
-
facebook: {
|
|
32
|
-
root: 'bg-[#1877F2] text-white shadow-xs-skeuomorphic ring-1 ring-transparent ring-inset before:absolute before:inset-px before:border before:border-white/12 before:mask-b-from-0% hover:bg-[#0C63D4]',
|
|
33
|
-
icon: '',
|
|
34
|
-
},
|
|
35
|
-
dribble: {
|
|
36
|
-
root: 'bg-[#EA4C89] text-white shadow-xs-skeuomorphic ring-1 ring-transparent ring-inset before:absolute before:inset-px before:border before:border-white/12 before:mask-b-from-0% hover:bg-[#E62872]',
|
|
37
|
-
icon: '',
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
/**
|
|
42
|
-
* Sign-in button for Google, Facebook, Apple, Twitter, Figma or Dribbble, with a branded logo
|
|
43
|
-
* and optional label. Renders as a button or a link, in three themes and two sizes.
|
|
44
|
-
*
|
|
45
|
-
* @summary renders a branded social auth sign-in button
|
|
46
|
-
*/
|
|
47
|
-
const SocialButton = ({ size = 'lg', theme = 'brand', social, className, children, disabled, 'data-testid': dataTestId, ...otherProps }) => {
|
|
48
|
-
const socialButtonTestId = useResolvedTestId({ testId: dataTestId, segment: 'social-button', rootName: 'social-button' });
|
|
49
|
-
const href = 'href' in otherProps ? otherProps.href : undefined;
|
|
50
|
-
const Component = href ? Link : Button;
|
|
51
|
-
const isIconOnly = !children;
|
|
52
|
-
const socialToColor = {
|
|
53
|
-
google: 'gray',
|
|
54
|
-
facebook: 'facebook',
|
|
55
|
-
apple: 'black',
|
|
56
|
-
twitter: 'black',
|
|
57
|
-
figma: 'black',
|
|
58
|
-
dribble: 'dribble',
|
|
59
|
-
};
|
|
60
|
-
const colorStyles = theme === 'brand' ? styles.colors[socialToColor[social]] : styles.colors.gray;
|
|
61
|
-
const logos = {
|
|
62
|
-
google: GoogleLogo,
|
|
63
|
-
facebook: FacebookLogo,
|
|
64
|
-
apple: AppleLogo,
|
|
65
|
-
twitter: TwitterLogo,
|
|
66
|
-
figma: theme === 'gray' ? FigmaLogoOutlined : FigmaLogo,
|
|
67
|
-
dribble: DribbleLogo,
|
|
68
|
-
};
|
|
69
|
-
const Logo = logos[social];
|
|
70
|
-
const getIconColorClass = () => {
|
|
71
|
-
if (theme === 'gray')
|
|
72
|
-
return colorStyles.icon;
|
|
73
|
-
if (theme === 'brand' && (social === 'facebook' || social === 'apple' || social === 'twitter'))
|
|
74
|
-
return 'text-white';
|
|
75
|
-
if (theme === 'color' && (social === 'apple' || social === 'twitter'))
|
|
76
|
-
return 'text-alpha-black';
|
|
77
|
-
return '';
|
|
78
|
-
};
|
|
79
|
-
const iconColorClass = getIconColorClass();
|
|
80
|
-
let props = {};
|
|
81
|
-
if (href) {
|
|
82
|
-
props = {
|
|
83
|
-
...otherProps,
|
|
84
|
-
href: disabled ? undefined : href,
|
|
85
|
-
// Since anchor elements do not support the `disabled` attribute and state,
|
|
86
|
-
// we need to specify `data-rac` and `data-disabled` in order to be able
|
|
87
|
-
// to use the `disabled:` selector in classes.
|
|
88
|
-
...(disabled ? { 'data-rac': true, 'data-disabled': true } : {}),
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
props = {
|
|
93
|
-
...otherProps,
|
|
94
|
-
type: otherProps.type || 'button',
|
|
95
|
-
isDisabled: disabled,
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
return (jsxs(Component, { isDisabled: disabled, ...props, "data-testid": socialButtonTestId, "data-icon-only": isIconOnly ? true : undefined, className: cx(styles.common.root, styles.sizes[size].root, colorStyles.root, className), children: [jsx(Logo, { className: cx(styles.common.icon, styles.sizes[size].icon, iconColorClass), colorful: (theme === 'brand' && (social === 'google' || social === 'figma')) ||
|
|
99
|
-
(theme === 'color' && (social === 'google' || social === 'facebook' || social === 'figma' || social === 'dribble')) ||
|
|
100
|
-
undefined }), children] }));
|
|
101
|
-
};
|
|
4
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/BrandButtons`. Removed in the next major. */
|
|
5
|
+
const SocialButton = SocialButton$1;
|
|
6
|
+
/** @deprecated Internal to `SocialButton` and not exported from `atoms/BrandButtons`. Removed in the next major. */
|
|
7
|
+
const styles = styles$1;
|
|
102
8
|
|
|
103
9
|
export { SocialButton, styles };
|
|
104
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/atoms/SocialButton/index.tsx"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/atoms/SocialButton/index.tsx"],"sourcesContent":[null],"names":["SocialButtonNext","stylesNext"],"mappings":";;;AAWA;AACO,MAAM,YAAY,GAAGA;AAG5B;AACO,MAAM,MAAM,GAAGC;;"}
|
|
@@ -25,9 +25,12 @@ const ButtonUtility = ({ tooltip, className, isDisabled, icon: Icon, size = 'sm'
|
|
|
25
25
|
const Component = href ? reactAriaComponents.Link : reactAriaComponents.Button;
|
|
26
26
|
let props = {};
|
|
27
27
|
if (href) {
|
|
28
|
+
// react-aria writes `href=""` on the span for an `href` key that is present but undefined, so a disabled link drops the key.
|
|
29
|
+
const { href: _href, ...withoutHref } = otherProps;
|
|
28
30
|
props = {
|
|
29
|
-
...otherProps,
|
|
30
|
-
|
|
31
|
+
...(isDisabled ? withoutHref : otherProps),
|
|
32
|
+
// Without it react-aria keeps the span focusable and still fires `onPress`.
|
|
33
|
+
isDisabled,
|
|
31
34
|
// Since anchor elements do not support the `disabled` attribute and state,
|
|
32
35
|
// we need to specify `data-rac` and `data-disabled` in order to be able
|
|
33
36
|
// to use the `disabled:` selector in classes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../src/components/atoms/UtilityButton/index.tsx"],"sourcesContent":[null],"names":["useResolvedTestId","AriaLink","AriaButton","_jsxs","cx","isReactComponent","_jsx","isValidElement","Tooltip"],"mappings":";;;;;;;;;;AAWO,MAAM,MAAM,GAAG;AACpB,IAAA,SAAS,EACP,8JAA8J;AAChK,IAAA,QAAQ,EAAE,0EAA0E;;AA8CtF;;;;;;AAMG;AACI,MAAM,aAAa,GAAG,CAAC,EAC5B,OAAO,EACP,SAAS,EACT,UAAU,EACV,IAAI,EAAE,IAAI,EACV,IAAI,GAAG,IAAI,EACX,KAAK,GAAG,WAAW,EACnB,gBAAgB,GAAG,KAAK,EACxB,aAAa,EAAE,UAAU,EACzB,GAAG,UAAU,EACP,KAAI;AACV,IAAA,MAAM,mBAAmB,GAAGA,6BAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC;AAC5H,IAAA,MAAM,IAAI,GAAG,MAAM,IAAI,UAAU,GAAG,UAAU,CAAC,IAAI,GAAG,SAAS;IAC/D,MAAM,SAAS,GAAG,IAAI,GAAGC,wBAAQ,GAAGC,0BAAU;IAE9C,IAAI,KAAK,GAAG,EAAE;IAEd,IAAI,IAAI,EAAE
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/atoms/UtilityButton/index.tsx"],"sourcesContent":[null],"names":["useResolvedTestId","AriaLink","AriaButton","_jsxs","cx","isReactComponent","_jsx","isValidElement","Tooltip"],"mappings":";;;;;;;;;;AAWO,MAAM,MAAM,GAAG;AACpB,IAAA,SAAS,EACP,8JAA8J;AAChK,IAAA,QAAQ,EAAE,0EAA0E;;AA8CtF;;;;;;AAMG;AACI,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IACnB,sCAAsC;IACtC,KAAK,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC;IACjC,wCAAwC;IACxC,IAAI,CAAC,EAAE,EAAE,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,SAAS,CAAC;IAC9C,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,qEAAqE;IACrE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,WACf,SAAQ,WAAW,EACjB,iBAAiB,CAAC,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,EAAE,iBAAiB,CAAC;IACvG,yCAAyC;IACzC,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,UAAU,SAAU,SAAQ,WAAW,EAAE,iBAAiB,CAAC,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACnI,qDAAqD;IACrD,aAAa,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC/C,6DAA6D;IAC7D,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CACpC;AAED,0CAA0C;AAC1C,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,SAAS,CAAC;AAE5C;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,yHAU3B,KAAK,gCA2DP,CAAC"}
|
|
@@ -23,9 +23,12 @@ const ButtonUtility = ({ tooltip, className, isDisabled, icon: Icon, size = 'sm'
|
|
|
23
23
|
const Component = href ? Link : Button;
|
|
24
24
|
let props = {};
|
|
25
25
|
if (href) {
|
|
26
|
+
// react-aria writes `href=""` on the span for an `href` key that is present but undefined, so a disabled link drops the key.
|
|
27
|
+
const { href: _href, ...withoutHref } = otherProps;
|
|
26
28
|
props = {
|
|
27
|
-
...otherProps,
|
|
28
|
-
|
|
29
|
+
...(isDisabled ? withoutHref : otherProps),
|
|
30
|
+
// Without it react-aria keeps the span focusable and still fires `onPress`.
|
|
31
|
+
isDisabled,
|
|
29
32
|
// Since anchor elements do not support the `disabled` attribute and state,
|
|
30
33
|
// we need to specify `data-rac` and `data-disabled` in order to be able
|
|
31
34
|
// to use the `disabled:` selector in classes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/atoms/UtilityButton/index.tsx"],"sourcesContent":[null],"names":["AriaLink","AriaButton","_jsxs","_jsx"],"mappings":";;;;;;;;AAWO,MAAM,MAAM,GAAG;AACpB,IAAA,SAAS,EACP,8JAA8J;AAChK,IAAA,QAAQ,EAAE,0EAA0E;;AA8CtF;;;;;;AAMG;AACI,MAAM,aAAa,GAAG,CAAC,EAC5B,OAAO,EACP,SAAS,EACT,UAAU,EACV,IAAI,EAAE,IAAI,EACV,IAAI,GAAG,IAAI,EACX,KAAK,GAAG,WAAW,EACnB,gBAAgB,GAAG,KAAK,EACxB,aAAa,EAAE,UAAU,EACzB,GAAG,UAAU,EACP,KAAI;AACV,IAAA,MAAM,mBAAmB,GAAG,iBAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC;AAC5H,IAAA,MAAM,IAAI,GAAG,MAAM,IAAI,UAAU,GAAG,UAAU,CAAC,IAAI,GAAG,SAAS;IAC/D,MAAM,SAAS,GAAG,IAAI,GAAGA,IAAQ,GAAGC,MAAU;IAE9C,IAAI,KAAK,GAAG,EAAE;IAEd,IAAI,IAAI,EAAE
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/atoms/UtilityButton/index.tsx"],"sourcesContent":[null],"names":["AriaLink","AriaButton","_jsxs","_jsx"],"mappings":";;;;;;;;AAWO,M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AAGb,QAAA,kHAAkH,EAClH,IAAI,KAAK,IAAI,GAAG,oBAAoB,GAAG,oBAAoB,EAE3D,SAAS,CACV,EAAA,QAAA,EAAA,CAEA,gBAAgB,CAAC,IAAI,CAAC,IAAIC,GAAA,CAAC,IAAI,EAAA,EAAA,WAAA,EAAA,IAAA,EAAA,CAAa,EAC5C,cAAc,CAAC,IAAI,CAAC,IAAI,IAAI,CAAA,EAAA,CACnB,CACb;IAED,IAAI,OAAO,EAAE;AACX,QAAA,QACEA,GAAA,CAAC,OAAO,EAAA,EAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,KAAK,IAAI,GAAG,CAAC,GAAG,CAAC,EAAA,QAAA,EACxG,OAAO,EAAA,CACA;IAEd;AAEA,IAAA,OAAO,OAAO;AAChB;;"}
|
|
@@ -11,7 +11,7 @@ export interface FormField<TValue> {
|
|
|
11
11
|
onDraft: (value: TValue) => void;
|
|
12
12
|
/** For a control the user types into: sets the value, and re-validates while the field is invalid. */
|
|
13
13
|
onChange: (value: TValue) => void;
|
|
14
|
-
/** For a control where one action is the whole edit (a choice, a
|
|
14
|
+
/** For a control where one action is the whole edit (a choice, a ticked box, a picked date): sets the value and validates it. */
|
|
15
15
|
onCommit: (value: TValue) => void;
|
|
16
16
|
isInvalid: boolean;
|
|
17
17
|
/** The message validation gave the field's error. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/__internal__/formField/hooks/useFormField.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAiC,MAAM,iBAAiB,CAAC;AAOpH,kEAAkE;AAClE,MAAM,WAAW,SAAS,CAAC,MAAM;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,sFAAsF;IACtF,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,8FAA8F;IAC9F,GAAG,EAAE,WAAW,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,2GAA2G;IAC3G,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,sGAAsG;IACtG,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,
|
|
1
|
+
{"version":3,"file":"useFormField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/__internal__/formField/hooks/useFormField.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAiC,MAAM,iBAAiB,CAAC;AAOpH,kEAAkE;AAClE,MAAM,WAAW,SAAS,CAAC,MAAM;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,sFAAsF;IACtF,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,8FAA8F;IAC9F,GAAG,EAAE,WAAW,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,2GAA2G;IAC3G,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,sGAAsG;IACtG,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,iIAAiI;IACjI,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,EAAE,OAAO,CAAC;IACnB,qDAAqD;IACrD,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,mEAAmE;IACnE,UAAU,EAAE,OAAO,CAAC;IACpB,8GAA8G;IAC9G,QAAQ,EAAE,OAAO,CAAC;CACnB;AAOD;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,SAAS,WAAW,EAAE,MAAM,GAAG,OAAO,EACxE,MAAM,SAAS,CAAC,OAAO,CAAC,EACxB,cAAc,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC,EAAE,KACtD,SAAS,CAAC,MAAM,CAkIlB,CAAC"}
|
|
@@ -7,7 +7,7 @@ var useFormField = require('../../__internal__/formField/hooks/useFormField.cjs'
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* A `Checkbox` bound to a react-hook-form field: ticking it writes a boolean to the form and validates it at once, and
|
|
10
|
-
* the field's error shows in place of `hint`. Use it for a single yes or no choice in a form built with react-hook-form.
|
|
10
|
+
* the field's error shows in place of `hint`. Use it for a single yes or no choice, or a setting turned on or off, in a form built with react-hook-form.
|
|
11
11
|
*
|
|
12
12
|
* @summary checkbox bound to a react-hook-form field
|
|
13
13
|
*/
|
|
@@ -11,7 +11,7 @@ export interface FormCheckboxProps<TValues extends FieldValues = FieldValues> ex
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* A `Checkbox` bound to a react-hook-form field: ticking it writes a boolean to the form and validates it at once, and
|
|
14
|
-
* the field's error shows in place of `hint`. Use it for a single yes or no choice in a form built with react-hook-form.
|
|
14
|
+
* the field's error shows in place of `hint`. Use it for a single yes or no choice, or a setting turned on or off, in a form built with react-hook-form.
|
|
15
15
|
*
|
|
16
16
|
* @summary checkbox bound to a react-hook-form field
|
|
17
17
|
*/
|
|
@@ -5,7 +5,7 @@ import { useFormField } from '../../__internal__/formField/hooks/useFormField.js
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* A `Checkbox` bound to a react-hook-form field: ticking it writes a boolean to the form and validates it at once, and
|
|
8
|
-
* the field's error shows in place of `hint`. Use it for a single yes or no choice in a form built with react-hook-form.
|
|
8
|
+
* the field's error shows in place of `hint`. Use it for a single yes or no choice, or a setting turned on or off, in a form built with react-hook-form.
|
|
9
9
|
*
|
|
10
10
|
* @summary checkbox bound to a react-hook-form field
|
|
11
11
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var DatePickers = require('@flipdish/ui-library/components/organisms/DatePickers');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var useFocusTarget = require('../../__internal__/formField/hooks/useFocusTarget.cjs');
|
|
7
7
|
var useFormField = require('../../__internal__/formField/hooks/useFormField.cjs');
|
|
@@ -22,7 +22,7 @@ const FormDatePicker = ({ name, revalidates, hint, ...datePickerProps }) => {
|
|
|
22
22
|
const handleChange = (next) => onCommit(next ? next.toString() : null);
|
|
23
23
|
// `DatePicker`'s ref is its root div; the trigger is the only button in it, the calendar being portalled.
|
|
24
24
|
const focusRef = useFocusTarget.useFocusTarget(ref, 'button');
|
|
25
|
-
return (jsxRuntime.jsx(
|
|
25
|
+
return (jsxRuntime.jsx(DatePickers.DatePicker
|
|
26
26
|
// The form's schema validates; the browser's own `required` check would block the submit before it runs.
|
|
27
27
|
, {
|
|
28
28
|
// The form's schema validates; the browser's own `required` check would block the submit before it runs.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DatePickerProps } from '@flipdish/ui-library/components/organisms/
|
|
1
|
+
import { type DatePickerProps } from '@flipdish/ui-library/components/organisms/DatePickers';
|
|
2
2
|
import type { FieldPath, FieldValues } from 'react-hook-form';
|
|
3
3
|
export interface FormDatePickerProps<TValues extends FieldValues = FieldValues> extends Omit<DatePickerProps, 'name' | 'value' | 'defaultValue' | 'onChange' | 'onBlur' | 'isInvalid' | 'ref'> {
|
|
4
4
|
/** The field's path in the form values, such as `deliveryDate` or `promotion.endDate`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/fields/FormDatePicker/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/fields/FormDatePicker/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,uDAAuD,CAAC;AAGzG,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAK9D,MAAM,WAAW,mBAAmB,CAAC,OAAO,SAAS,WAAW,GAAG,WAAW,CAC5E,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,KAAK,CAAC;IAC9G,0FAA0F;IAC1F,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;CACzD;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,SAAS,WAAW,GAAG,WAAW,EAAE,iDAKvE,mBAAmB,CAAC,OAAO,CAAC,gCA0B9B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { DatePicker } from '@flipdish/ui-library/components/organisms/
|
|
2
|
+
import { DatePicker } from '@flipdish/ui-library/components/organisms/DatePickers';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import { useFocusTarget } from '../../__internal__/formField/hooks/useFocusTarget.js';
|
|
5
5
|
import { useFormField } from '../../__internal__/formField/hooks/useFormField.js';
|
|
@@ -363,7 +363,7 @@ const asCrossFieldRule = (rule) => {
|
|
|
363
363
|
};
|
|
364
364
|
/**
|
|
365
365
|
* Adds the rules that read more than one field, such as a postcode whose shape depends on the country, or a date that
|
|
366
|
-
* is needed only while a
|
|
366
|
+
* is needed only while a checkbox is ticked. Each rule runs as soon as the fields it reads are valid: left to itself zod
|
|
367
367
|
* skips it while any field in the form fails, so its error would only show on a second save. In a form validated
|
|
368
368
|
* through `useSchemaResolver`, a `Form*` field a rule reads re-validates the field the rule reports on as it changes.
|
|
369
369
|
* That holds for a schema refined further, but not for one wrapped afterwards, as `.transform()` and `.optional()` do.
|
|
@@ -258,13 +258,13 @@ export interface ConditionalRule<TSchema extends z.ZodObject> {
|
|
|
258
258
|
/** Not for a rule with `when` and `rules`: they replace the `check`. */
|
|
259
259
|
check?: never;
|
|
260
260
|
}
|
|
261
|
-
/** The fields of a schema that hold a boolean, such as a
|
|
261
|
+
/** The fields of a schema that hold a boolean, such as a checkbox. */
|
|
262
262
|
type BooleanFieldName<TSchema extends z.ZodObject> = {
|
|
263
263
|
[TName in keyof z.output<TSchema> & string]: z.output<TSchema>[TName] extends boolean ? TName : never;
|
|
264
264
|
}[keyof z.output<TSchema> & string];
|
|
265
265
|
/**
|
|
266
266
|
* Adds the rules that read more than one field, such as a postcode whose shape depends on the country, or a date that
|
|
267
|
-
* is needed only while a
|
|
267
|
+
* is needed only while a checkbox is ticked. Each rule runs as soon as the fields it reads are valid: left to itself zod
|
|
268
268
|
* skips it while any field in the form fails, so its error would only show on a second save. In a form validated
|
|
269
269
|
* through `useSchemaResolver`, a `Form*` field a rule reads re-validates the field the rule reports on as it changes.
|
|
270
270
|
* That holds for a schema refined further, but not for one wrapped afterwards, as `.transform()` and `.optional()` do.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,SAAS,CAAC,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MA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C,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,EAAE,CAAC;IACtD;;;;OAIG;IACH,KAAK,EAAE,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;IAC9D,wEAAwE;IACxE,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,sEAAsE;AACtE,KAAK,gBAAgB,CAAC,OAAO,SAAS,CAAC,CAAC,SAAS,IAAI;KAClD,KAAK,IAAI,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,SAAS,OAAO,GAAG,KAAK,GAAG,KAAK;CACtG,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC;AA2BpC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,SAAS,CAAC,CAAC,SAAS,EACzD,QAAQ,OAAO,EACf,GAAG,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC,EAAE,KAC/D,OAoBS,CAAC"}
|
|
@@ -361,7 +361,7 @@ const asCrossFieldRule = (rule) => {
|
|
|
361
361
|
};
|
|
362
362
|
/**
|
|
363
363
|
* Adds the rules that read more than one field, such as a postcode whose shape depends on the country, or a date that
|
|
364
|
-
* is needed only while a
|
|
364
|
+
* is needed only while a checkbox is ticked. Each rule runs as soon as the fields it reads are valid: left to itself zod
|
|
365
365
|
* skips it while any field in the form fails, so its error would only show on a second save. In a form validated
|
|
366
366
|
* through `useSchemaResolver`, a `Form*` field a rule reads re-validates the field the rule reports on as it changes.
|
|
367
367
|
* That holds for a schema refined further, but not for one wrapped afterwards, as `.transform()` and `.optional()` do.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var uiIcons = require('@flipdish/ui-icons');
|
|
5
|
+
var Avatar = require('@flipdish/ui-library/components/atoms/Avatar');
|
|
6
|
+
var Badge = require('@flipdish/ui-library/components/atoms/Badge');
|
|
7
|
+
var Button = require('@flipdish/ui-library/components/atoms/Button');
|
|
8
|
+
var Dot = require('@flipdish/ui-library/components/atoms/Dot');
|
|
9
|
+
var cx = require('@flipdish/ui-library/utilities/cx');
|
|
10
|
+
var hrefUtils = require('@flipdish/ui-library/utilities/hrefUtils');
|
|
11
|
+
var testIdUtils = require('@flipdish/ui-library/utilities/testIdUtils');
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* One event in an activity timeline: who did what and when, with an optional comment, message
|
|
15
|
+
* card, attachment or labels. Connector lines link consecutive items.
|
|
16
|
+
*
|
|
17
|
+
* @summary activity timeline entry with optional comment or attachment
|
|
18
|
+
*/
|
|
19
|
+
const FeedItem = ({ id, user, date, action, attachment, comment, labels, message, unseen, connector, size = 'md', 'data-testid': dataTestId, }) => {
|
|
20
|
+
const actionHref = action ? hrefUtils.safeHref(action.href) : undefined;
|
|
21
|
+
const itemTestId = testIdUtils.useResolvedTestId({
|
|
22
|
+
testId: dataTestId,
|
|
23
|
+
segment: `feed-item-${testIdUtils.slugifyTestId(String(id))}`,
|
|
24
|
+
rootName: `feed-item-${testIdUtils.slugifyTestId(String(id))}`,
|
|
25
|
+
});
|
|
26
|
+
return (jsxRuntime.jsxs("article", { "data-testid": itemTestId, className: "relative flex gap-3", children: [unseen && jsxRuntime.jsx(Dot.Dot, { size: "md", color: "fg-success-secondary", className: "absolute top-0 right-0" }), jsxRuntime.jsxs("div", { className: "flex shrink-0 flex-col", children: [jsxRuntime.jsx(Avatar.Avatar, { src: user.avatarUrl, alt: user.name, size: size === 'sm' ? 'sm' : 'md', status: user.status }), connector && (jsxRuntime.jsx("div", { className: "relative my-1 flex h-full w-full justify-center self-center overflow-hidden", children: jsxRuntime.jsx("svg", { className: "absolute", width: "2.4", children: jsxRuntime.jsx("line", { x1: "1.2", y1: "1.2", x2: "1.2", y2: "100%", className: "stroke-border-primary", stroke: "black", strokeWidth: "2.4", strokeDasharray: "0,6", strokeLinecap: "round" }) }) }))] }), jsxRuntime.jsxs("div", { className: cx.cx('flex flex-1 flex-col gap-3', connector && 'pb-8'), children: [jsxRuntime.jsxs("header", { children: [jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [jsxRuntime.jsx("a", { href: hrefUtils.safeHref(user.href), className: "rounded text-sm font-medium text-secondary outline-focus-ring focus-visible:outline-2 focus-visible:outline-offset-2", children: user.name }), date && (jsxRuntime.jsx("time", { className: "text-xs text-tertiary", dateTime: date, children: date }))] }), action && (jsxRuntime.jsxs("p", { className: "text-sm text-tertiary", children: [action.content, ' ', action.target && (jsxRuntime.jsx(Button.Button
|
|
27
|
+
// A rejected href renders the action as a non-link rather than an empty link.
|
|
28
|
+
, { ...(actionHref !== undefined ? { href: actionHref } : { isDisabled: true }), className: "inline text-sm font-medium whitespace-normal", color: "link-color", size: "sm", children: action.target }))] })), user.username && jsxRuntime.jsx("p", { className: "text-sm text-tertiary", children: user.username })] }), attachment && (jsxRuntime.jsxs("figure", { className: "flex gap-3", children: [jsxRuntime.jsx(uiIcons.FileIcon, { type: attachment.type, theme: "light", className: "size-10 dark:hidden" }), jsxRuntime.jsx(uiIcons.FileIcon, { type: attachment.type, theme: "dark", className: "size-10 not-dark:hidden" }), jsxRuntime.jsxs("figcaption", { children: [jsxRuntime.jsx("p", { className: "text-sm font-medium text-secondary", children: attachment.name }), jsxRuntime.jsx("p", { className: "text-sm text-tertiary", children: attachment.size })] })] })), labels && labels.length > 0 && (jsxRuntime.jsx("aside", { className: "flex gap-1", "aria-label": "Labels", children: labels.map((label) => (jsxRuntime.jsx(Badge.Badge, { color: label.color, size: "sm", children: label.name }, label.name))) })), comment && jsxRuntime.jsx("q", { className: "text-sm text-tertiary", children: comment }), message && (jsxRuntime.jsx("section", { className: cx.cx('gap-2 rounded-lg rounded-tl-none p-3 ring-1 ring-secondary ring-inset', connector && 'py-2.5'), children: jsxRuntime.jsx("p", { className: "text-sm text-secondary", children: message }) }))] })] }));
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.FeedItem = FeedItem;
|
|
32
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/molecules/ActivityFeed/index.tsx"],"sourcesContent":[null],"names":["safeHref","useResolvedTestId","slugifyTestId","_jsxs","_jsx","Dot","Avatar","cx","Button","FileIcon","Badge"],"mappings":";;;;;;;;;;;;AA4DA;;;;;AAKG;AACI,MAAM,QAAQ,GAAG,CAAC,EACvB,EAAE,EACF,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,UAAU,EACV,OAAO,EACP,MAAM,EACN,OAAO,EACP,MAAM,EACN,SAAS,EACT,IAAI,GAAG,IAAI,EACX,aAAa,EAAE,UAAU,GACX,KAAI;AAClB,IAAA,MAAM,UAAU,GAAG,MAAM,GAAGA,kBAAQ,CAAC,MAAM,CAAC,IAAc,CAAC,GAAG,SAAS;IAEvE,MAAM,UAAU,GAAGC,6BAAiB,CAAC;AACnC,QAAA,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,aAAaC,yBAAa,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAA,CAAE;QACjD,QAAQ,EAAE,aAAaA,yBAAa,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAA,CAAE;AACnD,KAAA,CAAC;IAEF,QACEC,4CAAsB,UAAU,EAAE,SAAS,EAAC,qBAAqB,aAC9D,MAAM,IAAIC,eAACC,OAAG,EAAA,EAAC,IAAI,EAAC,IAAI,EAAC,KAAK,EAAC,sBAAsB,EAAC,SAAS,EAAC,wBAAwB,EAAA,CAAG,EAC5FF,yBAAK,S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AAC,KAAK,MAChBA,cAAA,CAACM,WAAK,EAAA,EAAkB,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,IAAI,EAAA,QAAA,EAClD,KAAK,CAAC,IAAI,IADD,KAAK,CAAC,IAAI,CAEd,CACT,CAAC,GACI,CACT,EACA,OAAO,IAAIN,cAAA,CAAA,GAAA,EAAA,EAAG,SAAS,EAAC,uBAAuB,EAAA,QAAA,EAAE,OAAO,EAAA,CAAK,EAC7D,OAAO,KACNA,cAAA,CAAA,SAAA,EAAA,EAAS,SAAS,EAAEG,KAAE,CAAC,uEAAuE,EAAE,SAAS,IAAI,QAAQ,CAAC,EAAA,QAAA,EACpHH,sBAAG,SAAS,EAAC,wBAAwB,EAAA,QAAA,EAAE,OAAO,EAAA,CAAK,GAC3C,CACX,CAAA,EAAA,CACG,CAAA,EAAA,CACE;AAEd;;"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { BadgeColors } from '@flipdish/ui-library/components/atoms/Badge';
|
|
2
|
+
export type FeedItemType = {
|
|
3
|
+
/** Identifies the item and derives its default `data-testid`. */
|
|
4
|
+
id: string | number;
|
|
5
|
+
/** Shows a green dot in the top-right corner to mark the item as unseen. */
|
|
6
|
+
unseen?: boolean;
|
|
7
|
+
/** Quoted comment text shown below the header. */
|
|
8
|
+
comment?: string;
|
|
9
|
+
/** Message text shown in a bordered card below the header. */
|
|
10
|
+
message?: string;
|
|
11
|
+
/** Timestamp shown beside the user's name, also used as the `dateTime` attribute. */
|
|
12
|
+
date?: string;
|
|
13
|
+
/** Actor shown as the avatar and linked name, with an optional username and online status. */
|
|
14
|
+
user: {
|
|
15
|
+
avatarUrl: string;
|
|
16
|
+
name: string;
|
|
17
|
+
href: string;
|
|
18
|
+
username?: string;
|
|
19
|
+
status?: 'online' | 'offline';
|
|
20
|
+
};
|
|
21
|
+
/** File shown with a type icon, name and size. */
|
|
22
|
+
attachment?: {
|
|
23
|
+
name: string;
|
|
24
|
+
size: string;
|
|
25
|
+
type: 'jpg' | 'txt' | 'pdf' | 'mp4';
|
|
26
|
+
};
|
|
27
|
+
/** Badges shown in a row below the header. */
|
|
28
|
+
labels?: {
|
|
29
|
+
name: string;
|
|
30
|
+
color: BadgeColors;
|
|
31
|
+
}[];
|
|
32
|
+
/** Action text after the user's name, with an optional linked target. */
|
|
33
|
+
action?: {
|
|
34
|
+
content: string;
|
|
35
|
+
target?: string;
|
|
36
|
+
href?: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export interface FeedItemProps extends FeedItemType {
|
|
40
|
+
/** Draws a dotted line below the avatar to link this item to the next one. */
|
|
41
|
+
connector?: boolean;
|
|
42
|
+
/** Avatar size; `sm` renders a small avatar. */
|
|
43
|
+
size?: 'sm' | 'md';
|
|
44
|
+
/** Overrides the derived `data-testid` (defaults to `fd-feed-item-<id>`). */
|
|
45
|
+
'data-testid'?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* One event in an activity timeline: who did what and when, with an optional comment, message
|
|
49
|
+
* card, attachment or labels. Connector lines link consecutive items.
|
|
50
|
+
*
|
|
51
|
+
* @summary activity timeline entry with optional comment or attachment
|
|
52
|
+
*/
|
|
53
|
+
export declare const FeedItem: ({ id, user, date, action, attachment, comment, labels, message, unseen, connector, size, "data-testid": dataTestId, }: FeedItemProps) => import("react").JSX.Element;
|
|
54
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ActivityFeed/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAQ/E,MAAM,MAAM,YAAY,GAAG;IACzB,iEAAiE;IACjE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,4EAA4E;IAC5E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8FAA8F;IAC9F,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;KAC/B,CAAC;IACF,kDAAkD;IAClD,UAAU,CAAC,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;KACrC,CAAC;IACF,8CAA8C;IAC9C,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QAEb,KAAK,EAAE,WAAW,CAAC;KACpB,EAAE,CAAC;IACJ,yEAAyE;IACzE,MAAM,CAAC,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC;AAEF,MAAM,WAAW,aAAc,SAAQ,YAAY;IACjD,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gDAAgD;IAChD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,uHAatB,aAAa,gCAiGf,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { FileIcon } from '@flipdish/ui-icons';
|
|
3
|
+
import { Avatar } from '@flipdish/ui-library/components/atoms/Avatar';
|
|
4
|
+
import { Badge } from '@flipdish/ui-library/components/atoms/Badge';
|
|
5
|
+
import { Button } from '@flipdish/ui-library/components/atoms/Button';
|
|
6
|
+
import { Dot } from '@flipdish/ui-library/components/atoms/Dot';
|
|
7
|
+
import { cx } from '@flipdish/ui-library/utilities/cx';
|
|
8
|
+
import { safeHref } from '@flipdish/ui-library/utilities/hrefUtils';
|
|
9
|
+
import { useResolvedTestId, slugifyTestId } from '@flipdish/ui-library/utilities/testIdUtils';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* One event in an activity timeline: who did what and when, with an optional comment, message
|
|
13
|
+
* card, attachment or labels. Connector lines link consecutive items.
|
|
14
|
+
*
|
|
15
|
+
* @summary activity timeline entry with optional comment or attachment
|
|
16
|
+
*/
|
|
17
|
+
const FeedItem = ({ id, user, date, action, attachment, comment, labels, message, unseen, connector, size = 'md', 'data-testid': dataTestId, }) => {
|
|
18
|
+
const actionHref = action ? safeHref(action.href) : undefined;
|
|
19
|
+
const itemTestId = useResolvedTestId({
|
|
20
|
+
testId: dataTestId,
|
|
21
|
+
segment: `feed-item-${slugifyTestId(String(id))}`,
|
|
22
|
+
rootName: `feed-item-${slugifyTestId(String(id))}`,
|
|
23
|
+
});
|
|
24
|
+
return (jsxs("article", { "data-testid": itemTestId, className: "relative flex gap-3", children: [unseen && jsx(Dot, { size: "md", color: "fg-success-secondary", className: "absolute top-0 right-0" }), jsxs("div", { className: "flex shrink-0 flex-col", children: [jsx(Avatar, { src: user.avatarUrl, alt: user.name, size: size === 'sm' ? 'sm' : 'md', status: user.status }), connector && (jsx("div", { className: "relative my-1 flex h-full w-full justify-center self-center overflow-hidden", children: jsx("svg", { className: "absolute", width: "2.4", children: jsx("line", { x1: "1.2", y1: "1.2", x2: "1.2", y2: "100%", className: "stroke-border-primary", stroke: "black", strokeWidth: "2.4", strokeDasharray: "0,6", strokeLinecap: "round" }) }) }))] }), jsxs("div", { className: cx('flex flex-1 flex-col gap-3', connector && 'pb-8'), children: [jsxs("header", { children: [jsxs("div", { className: "flex items-center gap-2", children: [jsx("a", { href: safeHref(user.href), className: "rounded text-sm font-medium text-secondary outline-focus-ring focus-visible:outline-2 focus-visible:outline-offset-2", children: user.name }), date && (jsx("time", { className: "text-xs text-tertiary", dateTime: date, children: date }))] }), action && (jsxs("p", { className: "text-sm text-tertiary", children: [action.content, ' ', action.target && (jsx(Button
|
|
25
|
+
// A rejected href renders the action as a non-link rather than an empty link.
|
|
26
|
+
, { ...(actionHref !== undefined ? { href: actionHref } : { isDisabled: true }), className: "inline text-sm font-medium whitespace-normal", color: "link-color", size: "sm", children: action.target }))] })), user.username && jsx("p", { className: "text-sm text-tertiary", children: user.username })] }), attachment && (jsxs("figure", { className: "flex gap-3", children: [jsx(FileIcon, { type: attachment.type, theme: "light", className: "size-10 dark:hidden" }), jsx(FileIcon, { type: attachment.type, theme: "dark", className: "size-10 not-dark:hidden" }), jsxs("figcaption", { children: [jsx("p", { className: "text-sm font-medium text-secondary", children: attachment.name }), jsx("p", { className: "text-sm text-tertiary", children: attachment.size })] })] })), labels && labels.length > 0 && (jsx("aside", { className: "flex gap-1", "aria-label": "Labels", children: labels.map((label) => (jsx(Badge, { color: label.color, size: "sm", children: label.name }, label.name))) })), comment && jsx("q", { className: "text-sm text-tertiary", children: comment }), message && (jsx("section", { className: cx('gap-2 rounded-lg rounded-tl-none p-3 ring-1 ring-secondary ring-inset', connector && 'py-2.5'), children: jsx("p", { className: "text-sm text-secondary", children: message }) }))] })] }));
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { FeedItem };
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/molecules/ActivityFeed/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;AA4DA;;;;;AAKG;AACI,MAAM,QAAQ,GAAG,CAAC,EACvB,EAAE,EACF,IAAI,EACJ,IAAI,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