@objectifthunes/limestone-sdk 0.1.6 → 0.1.8
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/animations/confetti/confetti.d.ts +4 -0
- package/dist/animations/confetti/confetti.d.ts.map +1 -0
- package/dist/animations/confetti/confetti.js +10 -0
- package/dist/animations/confetti/confetti.js.map +1 -0
- package/dist/animations/confetti/index.d.ts +4 -0
- package/dist/animations/confetti/index.d.ts.map +1 -0
- package/dist/animations/confetti/index.js +3 -0
- package/dist/animations/confetti/index.js.map +1 -0
- package/dist/animations/confetti/types.d.ts +24 -0
- package/dist/animations/confetti/types.d.ts.map +1 -0
- package/dist/animations/confetti/types.js +2 -0
- package/dist/animations/confetti/types.js.map +1 -0
- package/dist/animations/confetti/use-confetti.d.ts +4 -0
- package/dist/animations/confetti/use-confetti.d.ts.map +1 -0
- package/dist/animations/confetti/use-confetti.js +35 -0
- package/dist/animations/confetti/use-confetti.js.map +1 -0
- package/dist/animations/error-shake/error-shake.d.ts +4 -0
- package/dist/animations/error-shake/error-shake.d.ts.map +1 -0
- package/dist/animations/error-shake/error-shake.js +10 -0
- package/dist/animations/error-shake/error-shake.js.map +1 -0
- package/dist/animations/error-shake/index.d.ts +4 -0
- package/dist/animations/error-shake/index.d.ts.map +1 -0
- package/dist/animations/error-shake/index.js +3 -0
- package/dist/animations/error-shake/index.js.map +1 -0
- package/dist/animations/error-shake/types.d.ts +14 -0
- package/dist/animations/error-shake/types.d.ts.map +1 -0
- package/dist/animations/error-shake/types.js +2 -0
- package/dist/animations/error-shake/types.js.map +1 -0
- package/dist/animations/error-shake/use-error-shake.d.ts +4 -0
- package/dist/animations/error-shake/use-error-shake.d.ts.map +1 -0
- package/dist/animations/error-shake/use-error-shake.js +15 -0
- package/dist/animations/error-shake/use-error-shake.js.map +1 -0
- package/dist/animations/index.d.ts +4 -0
- package/dist/animations/index.d.ts.map +1 -1
- package/dist/animations/index.js +2 -0
- package/dist/animations/index.js.map +1 -1
- package/dist/components/data-display/activity-ring/activity-ring.d.ts +4 -0
- package/dist/components/data-display/activity-ring/activity-ring.d.ts.map +1 -0
- package/dist/components/data-display/activity-ring/activity-ring.js +10 -0
- package/dist/components/data-display/activity-ring/activity-ring.js.map +1 -0
- package/dist/components/data-display/activity-ring/index.d.ts +4 -0
- package/dist/components/data-display/activity-ring/index.d.ts.map +1 -0
- package/dist/components/data-display/activity-ring/index.js +3 -0
- package/dist/components/data-display/activity-ring/index.js.map +1 -0
- package/dist/components/data-display/activity-ring/types.d.ts +35 -0
- package/dist/components/data-display/activity-ring/types.d.ts.map +1 -0
- package/dist/components/data-display/activity-ring/types.js +2 -0
- package/dist/components/data-display/activity-ring/types.js.map +1 -0
- package/dist/components/data-display/activity-ring/use-activity-ring.d.ts +4 -0
- package/dist/components/data-display/activity-ring/use-activity-ring.d.ts.map +1 -0
- package/dist/components/data-display/activity-ring/use-activity-ring.js +61 -0
- package/dist/components/data-display/activity-ring/use-activity-ring.js.map +1 -0
- package/dist/components/data-display/chart/chart.d.ts +4 -0
- package/dist/components/data-display/chart/chart.d.ts.map +1 -0
- package/dist/components/data-display/chart/chart.js +10 -0
- package/dist/components/data-display/chart/chart.js.map +1 -0
- package/dist/components/data-display/chart/index.d.ts +4 -0
- package/dist/components/data-display/chart/index.d.ts.map +1 -0
- package/dist/components/data-display/chart/index.js +3 -0
- package/dist/components/data-display/chart/index.js.map +1 -0
- package/dist/components/data-display/chart/types.d.ts +86 -0
- package/dist/components/data-display/chart/types.d.ts.map +1 -0
- package/dist/components/data-display/chart/types.js +2 -0
- package/dist/components/data-display/chart/types.js.map +1 -0
- package/dist/components/data-display/chart/use-chart.d.ts +4 -0
- package/dist/components/data-display/chart/use-chart.d.ts.map +1 -0
- package/dist/components/data-display/chart/use-chart.js +172 -0
- package/dist/components/data-display/chart/use-chart.js.map +1 -0
- package/dist/components/data-display/countdown-timer/countdown-timer.d.ts +4 -0
- package/dist/components/data-display/countdown-timer/countdown-timer.d.ts.map +1 -0
- package/dist/components/data-display/countdown-timer/countdown-timer.js +10 -0
- package/dist/components/data-display/countdown-timer/countdown-timer.js.map +1 -0
- package/dist/components/data-display/countdown-timer/index.d.ts +4 -0
- package/dist/components/data-display/countdown-timer/index.d.ts.map +1 -0
- package/dist/components/data-display/countdown-timer/index.js +3 -0
- package/dist/components/data-display/countdown-timer/index.js.map +1 -0
- package/dist/components/data-display/countdown-timer/types.d.ts +37 -0
- package/dist/components/data-display/countdown-timer/types.d.ts.map +1 -0
- package/dist/components/data-display/countdown-timer/types.js +2 -0
- package/dist/components/data-display/countdown-timer/types.js.map +1 -0
- package/dist/components/data-display/countdown-timer/use-countdown-timer.d.ts +4 -0
- package/dist/components/data-display/countdown-timer/use-countdown-timer.d.ts.map +1 -0
- package/dist/components/data-display/countdown-timer/use-countdown-timer.js +81 -0
- package/dist/components/data-display/countdown-timer/use-countdown-timer.js.map +1 -0
- package/dist/components/data-display/credit-card-display/credit-card-display.d.ts +4 -0
- package/dist/components/data-display/credit-card-display/credit-card-display.d.ts.map +1 -0
- package/dist/components/data-display/credit-card-display/credit-card-display.js +10 -0
- package/dist/components/data-display/credit-card-display/credit-card-display.js.map +1 -0
- package/dist/components/data-display/credit-card-display/index.d.ts +4 -0
- package/dist/components/data-display/credit-card-display/index.d.ts.map +1 -0
- package/dist/components/data-display/credit-card-display/index.js +3 -0
- package/dist/components/data-display/credit-card-display/index.js.map +1 -0
- package/dist/components/data-display/credit-card-display/types.d.ts +41 -0
- package/dist/components/data-display/credit-card-display/types.d.ts.map +1 -0
- package/dist/components/data-display/credit-card-display/types.js +2 -0
- package/dist/components/data-display/credit-card-display/types.js.map +1 -0
- package/dist/components/data-display/credit-card-display/use-credit-card-display.d.ts +4 -0
- package/dist/components/data-display/credit-card-display/use-credit-card-display.d.ts.map +1 -0
- package/dist/components/data-display/credit-card-display/use-credit-card-display.js +72 -0
- package/dist/components/data-display/credit-card-display/use-credit-card-display.js.map +1 -0
- package/dist/components/data-display/data-table/data-table.d.ts +4 -0
- package/dist/components/data-display/data-table/data-table.d.ts.map +1 -0
- package/dist/components/data-display/data-table/data-table.js +10 -0
- package/dist/components/data-display/data-table/data-table.js.map +1 -0
- package/dist/components/data-display/data-table/index.d.ts +4 -0
- package/dist/components/data-display/data-table/index.d.ts.map +1 -0
- package/dist/components/data-display/data-table/index.js +3 -0
- package/dist/components/data-display/data-table/index.js.map +1 -0
- package/dist/components/data-display/data-table/types.d.ts +51 -0
- package/dist/components/data-display/data-table/types.d.ts.map +1 -0
- package/dist/components/data-display/data-table/types.js +2 -0
- package/dist/components/data-display/data-table/types.js.map +1 -0
- package/dist/components/data-display/data-table/use-data-table.d.ts +4 -0
- package/dist/components/data-display/data-table/use-data-table.d.ts.map +1 -0
- package/dist/components/data-display/data-table/use-data-table.js +75 -0
- package/dist/components/data-display/data-table/use-data-table.js.map +1 -0
- package/dist/components/data-display/index.d.ts +10 -0
- package/dist/components/data-display/index.d.ts.map +1 -1
- package/dist/components/data-display/index.js +5 -0
- package/dist/components/data-display/index.js.map +1 -1
- package/dist/components/index.d.ts +15 -4
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +9 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/calendar/calendar.d.ts +4 -0
- package/dist/components/inputs/calendar/calendar.d.ts.map +1 -0
- package/dist/components/inputs/calendar/calendar.js +10 -0
- package/dist/components/inputs/calendar/calendar.js.map +1 -0
- package/dist/components/inputs/calendar/index.d.ts +4 -0
- package/dist/components/inputs/calendar/index.d.ts.map +1 -0
- package/dist/components/inputs/calendar/index.js +3 -0
- package/dist/components/inputs/calendar/index.js.map +1 -0
- package/dist/components/inputs/calendar/types.d.ts +52 -0
- package/dist/components/inputs/calendar/types.d.ts.map +1 -0
- package/dist/components/inputs/calendar/types.js +2 -0
- package/dist/components/inputs/calendar/types.js.map +1 -0
- package/dist/components/inputs/calendar/use-calendar.d.ts +4 -0
- package/dist/components/inputs/calendar/use-calendar.d.ts.map +1 -0
- package/dist/components/inputs/calendar/use-calendar.js +192 -0
- package/dist/components/inputs/calendar/use-calendar.js.map +1 -0
- package/dist/components/inputs/index.d.ts +4 -0
- package/dist/components/inputs/index.d.ts.map +1 -1
- package/dist/components/inputs/index.js +2 -0
- package/dist/components/inputs/index.js.map +1 -1
- package/dist/components/inputs/signature-pad/index.d.ts +4 -0
- package/dist/components/inputs/signature-pad/index.d.ts.map +1 -0
- package/dist/components/inputs/signature-pad/index.js +3 -0
- package/dist/components/inputs/signature-pad/index.js.map +1 -0
- package/dist/components/inputs/signature-pad/signature-pad.d.ts +4 -0
- package/dist/components/inputs/signature-pad/signature-pad.d.ts.map +1 -0
- package/dist/components/inputs/signature-pad/signature-pad.js +10 -0
- package/dist/components/inputs/signature-pad/signature-pad.js.map +1 -0
- package/dist/components/inputs/signature-pad/types.d.ts +47 -0
- package/dist/components/inputs/signature-pad/types.d.ts.map +1 -0
- package/dist/components/inputs/signature-pad/types.js +2 -0
- package/dist/components/inputs/signature-pad/types.js.map +1 -0
- package/dist/components/inputs/signature-pad/use-signature-pad.d.ts +4 -0
- package/dist/components/inputs/signature-pad/use-signature-pad.d.ts.map +1 -0
- package/dist/components/inputs/signature-pad/use-signature-pad.js +60 -0
- package/dist/components/inputs/signature-pad/use-signature-pad.js.map +1 -0
- package/dist/components/interactive/drag-to-reorder/drag-to-reorder.d.ts +4 -0
- package/dist/components/interactive/drag-to-reorder/drag-to-reorder.d.ts.map +1 -0
- package/dist/components/interactive/drag-to-reorder/drag-to-reorder.js +10 -0
- package/dist/components/interactive/drag-to-reorder/drag-to-reorder.js.map +1 -0
- package/dist/components/interactive/drag-to-reorder/index.d.ts +4 -0
- package/dist/components/interactive/drag-to-reorder/index.d.ts.map +1 -0
- package/dist/components/interactive/drag-to-reorder/index.js +3 -0
- package/dist/components/interactive/drag-to-reorder/index.js.map +1 -0
- package/dist/components/interactive/drag-to-reorder/types.d.ts +24 -0
- package/dist/components/interactive/drag-to-reorder/types.d.ts.map +1 -0
- package/dist/components/interactive/drag-to-reorder/types.js +2 -0
- package/dist/components/interactive/drag-to-reorder/types.js.map +1 -0
- package/dist/components/interactive/drag-to-reorder/use-drag-to-reorder.d.ts +4 -0
- package/dist/components/interactive/drag-to-reorder/use-drag-to-reorder.d.ts.map +1 -0
- package/dist/components/interactive/drag-to-reorder/use-drag-to-reorder.js +44 -0
- package/dist/components/interactive/drag-to-reorder/use-drag-to-reorder.js.map +1 -0
- package/dist/components/interactive/index.d.ts +10 -0
- package/dist/components/interactive/index.d.ts.map +1 -1
- package/dist/components/interactive/index.js +5 -0
- package/dist/components/interactive/index.js.map +1 -1
- package/dist/components/interactive/page-view/index.d.ts +4 -0
- package/dist/components/interactive/page-view/index.d.ts.map +1 -0
- package/dist/components/interactive/page-view/index.js +3 -0
- package/dist/components/interactive/page-view/index.js.map +1 -0
- package/dist/components/interactive/page-view/page-view.d.ts +4 -0
- package/dist/components/interactive/page-view/page-view.d.ts.map +1 -0
- package/dist/components/interactive/page-view/page-view.js +10 -0
- package/dist/components/interactive/page-view/page-view.js.map +1 -0
- package/dist/components/interactive/page-view/types.d.ts +24 -0
- package/dist/components/interactive/page-view/types.d.ts.map +1 -0
- package/dist/components/interactive/page-view/types.js +2 -0
- package/dist/components/interactive/page-view/types.js.map +1 -0
- package/dist/components/interactive/page-view/use-page-view.d.ts +4 -0
- package/dist/components/interactive/page-view/use-page-view.d.ts.map +1 -0
- package/dist/components/interactive/page-view/use-page-view.js +45 -0
- package/dist/components/interactive/page-view/use-page-view.js.map +1 -0
- package/dist/components/interactive/parallax-header/index.d.ts +4 -0
- package/dist/components/interactive/parallax-header/index.d.ts.map +1 -0
- package/dist/components/interactive/parallax-header/index.js +3 -0
- package/dist/components/interactive/parallax-header/index.js.map +1 -0
- package/dist/components/interactive/parallax-header/parallax-header.d.ts +4 -0
- package/dist/components/interactive/parallax-header/parallax-header.d.ts.map +1 -0
- package/dist/components/interactive/parallax-header/parallax-header.js +10 -0
- package/dist/components/interactive/parallax-header/parallax-header.js.map +1 -0
- package/dist/components/interactive/parallax-header/types.d.ts +16 -0
- package/dist/components/interactive/parallax-header/types.d.ts.map +1 -0
- package/dist/components/interactive/parallax-header/types.js +2 -0
- package/dist/components/interactive/parallax-header/types.js.map +1 -0
- package/dist/components/interactive/parallax-header/use-parallax-header.d.ts +4 -0
- package/dist/components/interactive/parallax-header/use-parallax-header.d.ts.map +1 -0
- package/dist/components/interactive/parallax-header/use-parallax-header.js +24 -0
- package/dist/components/interactive/parallax-header/use-parallax-header.js.map +1 -0
- package/dist/components/interactive/pinch-to-zoom/index.d.ts +4 -0
- package/dist/components/interactive/pinch-to-zoom/index.d.ts.map +1 -0
- package/dist/components/interactive/pinch-to-zoom/index.js +3 -0
- package/dist/components/interactive/pinch-to-zoom/index.js.map +1 -0
- package/dist/components/interactive/pinch-to-zoom/pinch-to-zoom.d.ts +4 -0
- package/dist/components/interactive/pinch-to-zoom/pinch-to-zoom.d.ts.map +1 -0
- package/dist/components/interactive/pinch-to-zoom/pinch-to-zoom.js +10 -0
- package/dist/components/interactive/pinch-to-zoom/pinch-to-zoom.js.map +1 -0
- package/dist/components/interactive/pinch-to-zoom/types.d.ts +25 -0
- package/dist/components/interactive/pinch-to-zoom/types.d.ts.map +1 -0
- package/dist/components/interactive/pinch-to-zoom/types.js +2 -0
- package/dist/components/interactive/pinch-to-zoom/types.js.map +1 -0
- package/dist/components/interactive/pinch-to-zoom/use-pinch-to-zoom.d.ts +4 -0
- package/dist/components/interactive/pinch-to-zoom/use-pinch-to-zoom.d.ts.map +1 -0
- package/dist/components/interactive/pinch-to-zoom/use-pinch-to-zoom.js +38 -0
- package/dist/components/interactive/pinch-to-zoom/use-pinch-to-zoom.js.map +1 -0
- package/dist/components/interactive/pull-to-refresh/index.d.ts +4 -0
- package/dist/components/interactive/pull-to-refresh/index.d.ts.map +1 -0
- package/dist/components/interactive/pull-to-refresh/index.js +3 -0
- package/dist/components/interactive/pull-to-refresh/index.js.map +1 -0
- package/dist/components/interactive/pull-to-refresh/pull-to-refresh.d.ts +4 -0
- package/dist/components/interactive/pull-to-refresh/pull-to-refresh.d.ts.map +1 -0
- package/dist/components/interactive/pull-to-refresh/pull-to-refresh.js +10 -0
- package/dist/components/interactive/pull-to-refresh/pull-to-refresh.js.map +1 -0
- package/dist/components/interactive/pull-to-refresh/types.d.ts +21 -0
- package/dist/components/interactive/pull-to-refresh/types.d.ts.map +1 -0
- package/dist/components/interactive/pull-to-refresh/types.js +2 -0
- package/dist/components/interactive/pull-to-refresh/types.js.map +1 -0
- package/dist/components/interactive/pull-to-refresh/use-pull-to-refresh.d.ts +4 -0
- package/dist/components/interactive/pull-to-refresh/use-pull-to-refresh.d.ts.map +1 -0
- package/dist/components/interactive/pull-to-refresh/use-pull-to-refresh.js +28 -0
- package/dist/components/interactive/pull-to-refresh/use-pull-to-refresh.js.map +1 -0
- package/dist/components/social/comment-thread/comment-thread.d.ts +3 -0
- package/dist/components/social/comment-thread/comment-thread.d.ts.map +1 -0
- package/dist/components/social/comment-thread/comment-thread.js +88 -0
- package/dist/components/social/comment-thread/comment-thread.js.map +1 -0
- package/dist/components/social/comment-thread/index.d.ts +4 -0
- package/dist/components/social/comment-thread/index.d.ts.map +1 -0
- package/dist/components/social/comment-thread/index.js +3 -0
- package/dist/components/social/comment-thread/index.js.map +1 -0
- package/dist/components/social/comment-thread/types.d.ts +47 -0
- package/dist/components/social/comment-thread/types.d.ts.map +1 -0
- package/dist/components/social/comment-thread/types.js +2 -0
- package/dist/components/social/comment-thread/types.js.map +1 -0
- package/dist/components/social/comment-thread/use-comment-thread.d.ts +4 -0
- package/dist/components/social/comment-thread/use-comment-thread.d.ts.map +1 -0
- package/dist/components/social/comment-thread/use-comment-thread.js +100 -0
- package/dist/components/social/comment-thread/use-comment-thread.js.map +1 -0
- package/dist/components/social/index.d.ts +11 -0
- package/dist/components/social/index.d.ts.map +1 -0
- package/dist/components/social/index.js +6 -0
- package/dist/components/social/index.js.map +1 -0
- package/dist/components/social/mention-input/index.d.ts +4 -0
- package/dist/components/social/mention-input/index.d.ts.map +1 -0
- package/dist/components/social/mention-input/index.js +3 -0
- package/dist/components/social/mention-input/index.js.map +1 -0
- package/dist/components/social/mention-input/mention-input.d.ts +3 -0
- package/dist/components/social/mention-input/mention-input.d.ts.map +1 -0
- package/dist/components/social/mention-input/mention-input.js +50 -0
- package/dist/components/social/mention-input/mention-input.js.map +1 -0
- package/dist/components/social/mention-input/types.d.ts +46 -0
- package/dist/components/social/mention-input/types.d.ts.map +1 -0
- package/dist/components/social/mention-input/types.js +2 -0
- package/dist/components/social/mention-input/types.js.map +1 -0
- package/dist/components/social/mention-input/use-mention-input.d.ts +4 -0
- package/dist/components/social/mention-input/use-mention-input.d.ts.map +1 -0
- package/dist/components/social/mention-input/use-mention-input.js +124 -0
- package/dist/components/social/mention-input/use-mention-input.js.map +1 -0
- package/dist/components/social/presence-indicator/index.d.ts +4 -0
- package/dist/components/social/presence-indicator/index.d.ts.map +1 -0
- package/dist/components/social/presence-indicator/index.js +3 -0
- package/dist/components/social/presence-indicator/index.js.map +1 -0
- package/dist/components/social/presence-indicator/presence-indicator.d.ts +3 -0
- package/dist/components/social/presence-indicator/presence-indicator.d.ts.map +1 -0
- package/dist/components/social/presence-indicator/presence-indicator.js +17 -0
- package/dist/components/social/presence-indicator/presence-indicator.js.map +1 -0
- package/dist/components/social/presence-indicator/types.d.ts +24 -0
- package/dist/components/social/presence-indicator/types.d.ts.map +1 -0
- package/dist/components/social/presence-indicator/types.js +2 -0
- package/dist/components/social/presence-indicator/types.js.map +1 -0
- package/dist/components/social/presence-indicator/use-presence-indicator.d.ts +4 -0
- package/dist/components/social/presence-indicator/use-presence-indicator.d.ts.map +1 -0
- package/dist/components/social/presence-indicator/use-presence-indicator.js +60 -0
- package/dist/components/social/presence-indicator/use-presence-indicator.js.map +1 -0
- package/dist/components/social/reaction-picker/index.d.ts +4 -0
- package/dist/components/social/reaction-picker/index.d.ts.map +1 -0
- package/dist/components/social/reaction-picker/index.js +3 -0
- package/dist/components/social/reaction-picker/index.js.map +1 -0
- package/dist/components/social/reaction-picker/reaction-picker.d.ts +11 -0
- package/dist/components/social/reaction-picker/reaction-picker.d.ts.map +1 -0
- package/dist/components/social/reaction-picker/reaction-picker.js +25 -0
- package/dist/components/social/reaction-picker/reaction-picker.js.map +1 -0
- package/dist/components/social/reaction-picker/types.d.ts +41 -0
- package/dist/components/social/reaction-picker/types.d.ts.map +1 -0
- package/dist/components/social/reaction-picker/types.js +2 -0
- package/dist/components/social/reaction-picker/types.js.map +1 -0
- package/dist/components/social/reaction-picker/use-reaction-picker.d.ts +4 -0
- package/dist/components/social/reaction-picker/use-reaction-picker.d.ts.map +1 -0
- package/dist/components/social/reaction-picker/use-reaction-picker.js +93 -0
- package/dist/components/social/reaction-picker/use-reaction-picker.js.map +1 -0
- package/dist/components/social/story-row/index.d.ts +4 -0
- package/dist/components/social/story-row/index.d.ts.map +1 -0
- package/dist/components/social/story-row/index.js +3 -0
- package/dist/components/social/story-row/index.js.map +1 -0
- package/dist/components/social/story-row/story-row.d.ts +13 -0
- package/dist/components/social/story-row/story-row.d.ts.map +1 -0
- package/dist/components/social/story-row/story-row.js +29 -0
- package/dist/components/social/story-row/story-row.js.map +1 -0
- package/dist/components/social/story-row/types.d.ts +37 -0
- package/dist/components/social/story-row/types.d.ts.map +1 -0
- package/dist/components/social/story-row/types.js +2 -0
- package/dist/components/social/story-row/types.js.map +1 -0
- package/dist/components/social/story-row/use-story-row.d.ts +4 -0
- package/dist/components/social/story-row/use-story-row.d.ts.map +1 -0
- package/dist/components/social/story-row/use-story-row.js +71 -0
- package/dist/components/social/story-row/use-story-row.js.map +1 -0
- package/dist/index.d.ts +16 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
const MONTH_NAMES = [
|
|
2
|
+
'January', 'February', 'March', 'April', 'May', 'June',
|
|
3
|
+
'July', 'August', 'September', 'October', 'November', 'December',
|
|
4
|
+
];
|
|
5
|
+
const WEEKDAY_LABELS_SUN = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];
|
|
6
|
+
const WEEKDAY_LABELS_MON = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'];
|
|
7
|
+
function isSameDay(a, b) {
|
|
8
|
+
return (a.getFullYear() === b.getFullYear() &&
|
|
9
|
+
a.getMonth() === b.getMonth() &&
|
|
10
|
+
a.getDate() === b.getDate());
|
|
11
|
+
}
|
|
12
|
+
function startOfDay(d) {
|
|
13
|
+
return new Date(d.getFullYear(), d.getMonth(), d.getDate());
|
|
14
|
+
}
|
|
15
|
+
function buildWeeks(month, firstDayOfWeek) {
|
|
16
|
+
const year = month.getFullYear();
|
|
17
|
+
const monthIndex = month.getMonth();
|
|
18
|
+
// First day of the month
|
|
19
|
+
const firstOfMonth = new Date(year, monthIndex, 1);
|
|
20
|
+
// Last day of the month
|
|
21
|
+
const lastOfMonth = new Date(year, monthIndex + 1, 0);
|
|
22
|
+
// Find the start of the grid (the Sunday or Monday before/on firstOfMonth)
|
|
23
|
+
let gridStart = new Date(firstOfMonth);
|
|
24
|
+
const dayOfWeek = firstOfMonth.getDay(); // 0=Sun, 1=Mon...
|
|
25
|
+
let offset = dayOfWeek - firstDayOfWeek;
|
|
26
|
+
if (offset < 0)
|
|
27
|
+
offset += 7;
|
|
28
|
+
gridStart.setDate(gridStart.getDate() - offset);
|
|
29
|
+
const weeks = [];
|
|
30
|
+
let current = new Date(gridStart);
|
|
31
|
+
while (current <= lastOfMonth ||
|
|
32
|
+
weeks.length === 0 ||
|
|
33
|
+
weeks[weeks.length - 1].length < 7) {
|
|
34
|
+
const week = [];
|
|
35
|
+
for (let i = 0; i < 7; i++) {
|
|
36
|
+
week.push(new Date(current));
|
|
37
|
+
current = new Date(current);
|
|
38
|
+
current.setDate(current.getDate() + 1);
|
|
39
|
+
}
|
|
40
|
+
weeks.push(week);
|
|
41
|
+
if (current > lastOfMonth && week[6] >= lastOfMonth)
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
return weeks;
|
|
45
|
+
}
|
|
46
|
+
function resolveDayState(date, currentMonth, mode, value, startDate, endDate, minDate, maxDate, today) {
|
|
47
|
+
const d = startOfDay(date);
|
|
48
|
+
// 1. disabled
|
|
49
|
+
if (minDate && d < startOfDay(minDate))
|
|
50
|
+
return 'disabled';
|
|
51
|
+
if (maxDate && d > startOfDay(maxDate))
|
|
52
|
+
return 'disabled';
|
|
53
|
+
// 2. outsideMonth
|
|
54
|
+
if (date.getMonth() !== currentMonth.getMonth() || date.getFullYear() !== currentMonth.getFullYear()) {
|
|
55
|
+
return 'outsideMonth';
|
|
56
|
+
}
|
|
57
|
+
// 3. selected (single mode)
|
|
58
|
+
if (mode === 'single' && value && isSameDay(date, value))
|
|
59
|
+
return 'selected';
|
|
60
|
+
// 4. rangeStart
|
|
61
|
+
if (mode === 'range' && startDate && isSameDay(date, startDate))
|
|
62
|
+
return 'rangeStart';
|
|
63
|
+
// 5. rangeEnd
|
|
64
|
+
if (mode === 'range' && endDate && isSameDay(date, endDate))
|
|
65
|
+
return 'rangeEnd';
|
|
66
|
+
// 6. rangeMiddle
|
|
67
|
+
if (mode === 'range' && startDate && endDate) {
|
|
68
|
+
const dTime = d.getTime();
|
|
69
|
+
const startTime = startOfDay(startDate).getTime();
|
|
70
|
+
const endTime = startOfDay(endDate).getTime();
|
|
71
|
+
if (dTime > startTime && dTime < endTime)
|
|
72
|
+
return 'rangeMiddle';
|
|
73
|
+
}
|
|
74
|
+
// 7. today
|
|
75
|
+
if (isSameDay(date, today))
|
|
76
|
+
return 'today';
|
|
77
|
+
return 'normal';
|
|
78
|
+
}
|
|
79
|
+
export function useCalendar(tokens, props) {
|
|
80
|
+
const { value, startDate, endDate, mode = 'single', minDate, maxDate, firstDayOfWeek = 0, currentMonth: currentMonthProp, } = props;
|
|
81
|
+
const today = new Date();
|
|
82
|
+
const currentMonth = currentMonthProp ?? new Date(today.getFullYear(), today.getMonth(), 1);
|
|
83
|
+
const currentYear = currentMonth.getFullYear();
|
|
84
|
+
const monthLabel = `${MONTH_NAMES[currentMonth.getMonth()]} ${currentYear}`;
|
|
85
|
+
const weekdayLabels = firstDayOfWeek === 1 ? WEEKDAY_LABELS_MON : WEEKDAY_LABELS_SUN;
|
|
86
|
+
const weeks = buildWeeks(currentMonth, firstDayOfWeek);
|
|
87
|
+
const containerStyle = {
|
|
88
|
+
backgroundColor: tokens.colors.card,
|
|
89
|
+
borderRadius: tokens.radii.md,
|
|
90
|
+
overflow: 'hidden',
|
|
91
|
+
};
|
|
92
|
+
const headerStyle = {
|
|
93
|
+
flexDirection: 'row',
|
|
94
|
+
justifyContent: 'space-between',
|
|
95
|
+
alignItems: 'center',
|
|
96
|
+
paddingHorizontal: tokens.spacing.md,
|
|
97
|
+
paddingBottom: tokens.spacing.sm,
|
|
98
|
+
};
|
|
99
|
+
const monthLabelStyle = {
|
|
100
|
+
fontSize: tokens.typography.sizes.md,
|
|
101
|
+
fontWeight: tokens.typography.weights.bold,
|
|
102
|
+
color: tokens.colors.foreground,
|
|
103
|
+
};
|
|
104
|
+
const navButtonStyle = {
|
|
105
|
+
padding: tokens.spacing.sm,
|
|
106
|
+
};
|
|
107
|
+
const weekdayRowStyle = {
|
|
108
|
+
flexDirection: 'row',
|
|
109
|
+
paddingBottom: tokens.spacing.xs,
|
|
110
|
+
};
|
|
111
|
+
const weekdayLabelStyle = {
|
|
112
|
+
fontSize: tokens.typography.sizes.xs,
|
|
113
|
+
color: tokens.colors.mutedForeground,
|
|
114
|
+
textAlign: 'center',
|
|
115
|
+
width: '14.28%',
|
|
116
|
+
};
|
|
117
|
+
const dayTextStyle = {
|
|
118
|
+
fontSize: tokens.typography.sizes.xs,
|
|
119
|
+
textAlign: 'center',
|
|
120
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
121
|
+
};
|
|
122
|
+
const getDayStyle = (date) => {
|
|
123
|
+
const state = resolveDayState(date, currentMonth, mode, value, startDate, endDate, minDate, maxDate, today);
|
|
124
|
+
let containerStyle;
|
|
125
|
+
let textStyle;
|
|
126
|
+
switch (state) {
|
|
127
|
+
case 'selected':
|
|
128
|
+
containerStyle = {
|
|
129
|
+
backgroundColor: tokens.colors.primary,
|
|
130
|
+
borderRadius: tokens.radii.full,
|
|
131
|
+
};
|
|
132
|
+
textStyle = { color: tokens.colors.primaryForeground };
|
|
133
|
+
break;
|
|
134
|
+
case 'rangeStart':
|
|
135
|
+
containerStyle = {
|
|
136
|
+
backgroundColor: tokens.colors.primary,
|
|
137
|
+
borderRadius: tokens.radii.full,
|
|
138
|
+
};
|
|
139
|
+
textStyle = { color: tokens.colors.primaryForeground };
|
|
140
|
+
break;
|
|
141
|
+
case 'rangeEnd':
|
|
142
|
+
containerStyle = {
|
|
143
|
+
backgroundColor: tokens.colors.primary,
|
|
144
|
+
borderRadius: tokens.radii.full,
|
|
145
|
+
};
|
|
146
|
+
textStyle = { color: tokens.colors.primaryForeground };
|
|
147
|
+
break;
|
|
148
|
+
case 'rangeMiddle':
|
|
149
|
+
containerStyle = {
|
|
150
|
+
backgroundColor: `${tokens.colors.primary}33`,
|
|
151
|
+
};
|
|
152
|
+
textStyle = { color: tokens.colors.foreground };
|
|
153
|
+
break;
|
|
154
|
+
case 'today':
|
|
155
|
+
containerStyle = {
|
|
156
|
+
borderWidth: 1,
|
|
157
|
+
borderColor: tokens.colors.primary,
|
|
158
|
+
borderRadius: tokens.radii.full,
|
|
159
|
+
};
|
|
160
|
+
textStyle = { color: tokens.colors.primary };
|
|
161
|
+
break;
|
|
162
|
+
case 'disabled':
|
|
163
|
+
containerStyle = { backgroundColor: 'transparent' };
|
|
164
|
+
textStyle = { color: tokens.colors.mutedForeground, opacity: 0.4 };
|
|
165
|
+
break;
|
|
166
|
+
case 'outsideMonth':
|
|
167
|
+
containerStyle = { backgroundColor: 'transparent' };
|
|
168
|
+
textStyle = { color: tokens.colors.mutedForeground };
|
|
169
|
+
break;
|
|
170
|
+
default:
|
|
171
|
+
containerStyle = { backgroundColor: 'transparent' };
|
|
172
|
+
textStyle = { color: tokens.colors.foreground };
|
|
173
|
+
}
|
|
174
|
+
return { containerStyle, textStyle, state };
|
|
175
|
+
};
|
|
176
|
+
return {
|
|
177
|
+
containerStyle,
|
|
178
|
+
headerStyle,
|
|
179
|
+
monthLabelStyle,
|
|
180
|
+
navButtonStyle,
|
|
181
|
+
weekdayRowStyle,
|
|
182
|
+
weekdayLabelStyle,
|
|
183
|
+
getDayStyle,
|
|
184
|
+
dayTextStyle,
|
|
185
|
+
currentMonth,
|
|
186
|
+
currentYear,
|
|
187
|
+
weeks,
|
|
188
|
+
weekdayLabels,
|
|
189
|
+
monthLabel,
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
//# sourceMappingURL=use-calendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-calendar.js","sourceRoot":"","sources":["../../../../src/components/inputs/calendar/use-calendar.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,GAAG;IAClB,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM;IACtD,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU;CACjE,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACtE,MAAM,kBAAkB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAEtE,SAAS,SAAS,CAAC,CAAO,EAAE,CAAO;IACjC,OAAO,CACL,CAAC,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,WAAW,EAAE;QACnC,CAAC,CAAC,QAAQ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ChipInputHookProps, ChipInputVariant, ChipInputSize, UseChipInputResult } from './chip-input/index.js';
|
|
29
29
|
export { Autocomplete, useAutocomplete } from './autocomplete/index.js';
|
|
30
30
|
export type { AutocompleteProps, AutocompleteHookProps, AutocompleteOption, AutocompleteVariant, AutocompleteSize, UseAutocompleteResult } from './autocomplete/index.js';
|
|
31
|
+
export { Calendar, useCalendar } from './calendar/index.js';
|
|
32
|
+
export type { CalendarProps, CalendarMode, DayState, UseCalendarResult } from './calendar/index.js';
|
|
33
|
+
export { SignaturePad, useSignaturePad } from './signature-pad/index.js';
|
|
34
|
+
export type { SignaturePadProps, UseSignaturePadResult } from './signature-pad/index.js';
|
|
31
35
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEtH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEpG,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAErG,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEtE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,iBAAiB,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC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cAAc,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/E,YAAY,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE/F,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAErI,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACxE,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAE1K,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC5D,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAEpG,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACzE,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -13,4 +13,6 @@ export { Chip, useChip } from './chip/index.js';
|
|
|
13
13
|
export { QuantityPicker, useQuantityPicker } from './quantity-picker/index.js';
|
|
14
14
|
export { ChipInput, useChipInput } from './chip-input/index.js';
|
|
15
15
|
export { Autocomplete, useAutocomplete } from './autocomplete/index.js';
|
|
16
|
+
export { Calendar, useCalendar } from './calendar/index.js';
|
|
17
|
+
export { SignaturePad, useSignaturePad } from './signature-pad/index.js';
|
|
16
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/inputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,uBAAu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,MAAM,wBAAwB,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/inputs/signature-pad/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signature-pad.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/signature-pad/signature-pad.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAQvF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createElement } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { useTheme } from '../../../theme/context.js';
|
|
4
|
+
import { useSignaturePad } from './use-signature-pad.js';
|
|
5
|
+
export function SignaturePad(props) {
|
|
6
|
+
const { tokens } = useTheme();
|
|
7
|
+
const { containerStyle, accessibilityProps } = useSignaturePad(tokens, props);
|
|
8
|
+
return createElement(View, { style: containerStyle, ...accessibilityProps, testID: props.testID });
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=signature-pad.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signature-pad.js","sourceRoot":"","sources":["../../../../src/components/inputs/signature-pad/signature-pad.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,MAAM,UAAU,YAAY,CAAC,KAAwB;IACnD,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC9B,MAAM,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAE9E,OAAO,aAAa,CAClB,IAAI,EACJ,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,kBAAkB,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CACvE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { BoxStyleProps } from '../../types.js';
|
|
2
|
+
import type { ResolvedBoxStyle } from '../../use-component-style.js';
|
|
3
|
+
export interface SignaturePadProps extends BoxStyleProps {
|
|
4
|
+
strokeColor?: string;
|
|
5
|
+
strokeWidth?: number;
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
onSave?: (pathData: string) => void;
|
|
8
|
+
onClear?: () => void;
|
|
9
|
+
aspectRatio?: number;
|
|
10
|
+
showClearButton?: boolean;
|
|
11
|
+
showUndoButton?: boolean;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
hasContent?: boolean;
|
|
14
|
+
accessibilityLabel?: string;
|
|
15
|
+
testID?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface UseSignaturePadResult {
|
|
18
|
+
containerStyle: ResolvedBoxStyle;
|
|
19
|
+
canvasStyle: ResolvedBoxStyle;
|
|
20
|
+
placeholderStyle: {
|
|
21
|
+
position: 'absolute';
|
|
22
|
+
top: string;
|
|
23
|
+
left: string;
|
|
24
|
+
transform: Array<{
|
|
25
|
+
translateX: number;
|
|
26
|
+
} | {
|
|
27
|
+
translateY: number;
|
|
28
|
+
}>;
|
|
29
|
+
color: string;
|
|
30
|
+
fontSize: number;
|
|
31
|
+
};
|
|
32
|
+
clearButtonStyle: ResolvedBoxStyle;
|
|
33
|
+
undoButtonStyle: ResolvedBoxStyle;
|
|
34
|
+
clearIconColor: string;
|
|
35
|
+
undoIconColor: string;
|
|
36
|
+
strokeColor: string;
|
|
37
|
+
strokeWidth: number;
|
|
38
|
+
showClearButton: boolean;
|
|
39
|
+
showUndoButton: boolean;
|
|
40
|
+
showPlaceholder: boolean;
|
|
41
|
+
accessibilityProps: {
|
|
42
|
+
accessibilityLabel: string;
|
|
43
|
+
accessibilityRole: 'none';
|
|
44
|
+
accessibilityHint: string;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/signature-pad/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,gBAAgB,CAAC;IACjC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,gBAAgB,EAAE;QAChB,QAAQ,EAAE,UAAU,CAAC;QACrB,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,KAAK,CAAC;YAAE,UAAU,EAAE,MAAM,CAAA;SAAE,GAAG;YAAE,UAAU,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAClE,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,eAAe,EAAE,gBAAgB,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE;QAClB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,iBAAiB,EAAE,MAAM,CAAC;QAC1B,iBAAiB,EAAE,MAAM,CAAC;KAC3B,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/inputs/signature-pad/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ThemeTokens } from '../../../theme/tokens.js';
|
|
2
|
+
import type { SignaturePadProps, UseSignaturePadResult } from './types.js';
|
|
3
|
+
export declare function useSignaturePad(tokens: ThemeTokens, props: SignaturePadProps): UseSignaturePadResult;
|
|
4
|
+
//# sourceMappingURL=use-signature-pad.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-signature-pad.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/signature-pad/use-signature-pad.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAG3E,wBAAgB,eAAe,CAC7B,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,iBAAiB,GACvB,qBAAqB,CA0EvB"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export function useSignaturePad(tokens, props) {
|
|
2
|
+
const { strokeColor, strokeWidth = 2, backgroundColor, aspectRatio = 3, showClearButton = true, showUndoButton = false, hasContent = false, accessibilityLabel = 'Signature pad', } = props;
|
|
3
|
+
const resolvedBg = backgroundColor ?? tokens.colors.background;
|
|
4
|
+
const resolvedStrokeColor = strokeColor ?? tokens.colors.foreground;
|
|
5
|
+
const containerStyle = {
|
|
6
|
+
backgroundColor: resolvedBg,
|
|
7
|
+
borderWidth: 1,
|
|
8
|
+
borderColor: tokens.colors.border,
|
|
9
|
+
borderRadius: tokens.radii.md,
|
|
10
|
+
aspectRatio,
|
|
11
|
+
overflow: 'hidden',
|
|
12
|
+
};
|
|
13
|
+
const canvasStyle = {
|
|
14
|
+
flex: 1,
|
|
15
|
+
};
|
|
16
|
+
const placeholderStyle = {
|
|
17
|
+
position: 'absolute',
|
|
18
|
+
top: '50%',
|
|
19
|
+
left: '50%',
|
|
20
|
+
transform: [{ translateX: -30 }, { translateY: -8 }],
|
|
21
|
+
color: tokens.colors.mutedForeground,
|
|
22
|
+
fontSize: tokens.typography.sizes.sm,
|
|
23
|
+
};
|
|
24
|
+
const clearButtonStyle = {
|
|
25
|
+
position: 'absolute',
|
|
26
|
+
top: tokens.spacing.xs,
|
|
27
|
+
right: tokens.spacing.xs,
|
|
28
|
+
backgroundColor: tokens.colors.card,
|
|
29
|
+
borderRadius: tokens.radii.full,
|
|
30
|
+
padding: tokens.spacing.xs,
|
|
31
|
+
};
|
|
32
|
+
const undoButtonStyle = {
|
|
33
|
+
position: 'absolute',
|
|
34
|
+
top: tokens.spacing.xs,
|
|
35
|
+
left: tokens.spacing.xs,
|
|
36
|
+
backgroundColor: tokens.colors.card,
|
|
37
|
+
borderRadius: tokens.radii.full,
|
|
38
|
+
padding: tokens.spacing.xs,
|
|
39
|
+
};
|
|
40
|
+
return {
|
|
41
|
+
containerStyle,
|
|
42
|
+
canvasStyle,
|
|
43
|
+
placeholderStyle,
|
|
44
|
+
clearButtonStyle,
|
|
45
|
+
undoButtonStyle,
|
|
46
|
+
clearIconColor: tokens.colors.mutedForeground,
|
|
47
|
+
undoIconColor: tokens.colors.mutedForeground,
|
|
48
|
+
strokeColor: resolvedStrokeColor,
|
|
49
|
+
strokeWidth,
|
|
50
|
+
showClearButton,
|
|
51
|
+
showUndoButton,
|
|
52
|
+
showPlaceholder: !hasContent,
|
|
53
|
+
accessibilityProps: {
|
|
54
|
+
accessibilityLabel,
|
|
55
|
+
accessibilityRole: 'none',
|
|
56
|
+
accessibilityHint: 'Draw your signature',
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=use-signature-pad.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-signature-pad.js","sourceRoot":"","sources":["../../../../src/components/inputs/signature-pad/use-signature-pad.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,eAAe,CAC7B,MAAmB,EACnB,KAAwB;IAExB,MAAM,EACJ,WAAW,EACX,WAAW,GAAG,CAAC,EACf,eAAe,EACf,WAAW,GAAG,CAAC,EACf,eAAe,GAAG,IAAI,EACtB,cAAc,GAAG,KAAK,EACtB,UAAU,GAAG,KAAK,EAClB,kBAAkB,GAAG,eAAe,GACrC,GAAG,KAAK,CAAC;IAEV,MAAM,UAAU,GAAG,eAAe,IAAI,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;IAC/D,MAAM,mBAAmB,GAAG,WAAW,IAAI,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;IAEpE,MAAM,cAAc,GAAqB;QACvC,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BAAgB;QAChB,gBAAgB;QAChB,eAAe;QACf,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe;QAC7C,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe;QAC5C,WAAW,EAAE,mBAAmB;QAChC,WAAW;QACX,eAAe;QACf,cAAc;QACd,eAAe,EAAE,CAAC,UAAU;QAC5B,kBAAkB,EAAE;YAClB,kBAAkB;YAClB,iBAAiB,EAAE,MAAM;YACzB,iBAAiB,EAAE,qBAAqB;SACzC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drag-to-reorder.d.ts","sourceRoot":"","sources":["../../../../src/components/interactive/drag-to-reorder/drag-to-reorder.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD,wBAAgB,aAAa,CAAC,CAAC,GAAG,OAAO,EACvC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAC3B,UAAU,CAAC,OAAO,aAAa,CAAC,CAQlC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createElement } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { useTheme } from '../../../theme/context.js';
|
|
4
|
+
import { useDragToReorder } from './use-drag-to-reorder.js';
|
|
5
|
+
export function DragToReorder(props) {
|
|
6
|
+
const { tokens } = useTheme();
|
|
7
|
+
const { containerStyle, accessibilityProps } = useDragToReorder(tokens, props);
|
|
8
|
+
return createElement(View, { style: containerStyle, ...accessibilityProps });
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=drag-to-reorder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drag-to-reorder.js","sourceRoot":"","sources":["../../../../src/components/interactive/drag-to-reorder/drag-to-reorder.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,MAAM,UAAU,aAAa,CAC3B,KAA4B;IAE5B,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC9B,MAAM,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,gBAAgB,CAAC,MAAM,EAAE,KAA2B,CAAC,CAAC;IAErG,OAAO,aAAa,CAClB,IAAI,EACJ,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,kBAAkB,EAAE,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/interactive/drag-to-reorder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/interactive/drag-to-reorder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { BoxStyleProps } from '../../types.js';
|
|
2
|
+
import type { ResolvedBoxStyle } from '../../use-component-style.js';
|
|
3
|
+
export interface DragToReorderProps<T = unknown> extends BoxStyleProps {
|
|
4
|
+
items: T[];
|
|
5
|
+
keyExtractor: (item: T, index: number) => string;
|
|
6
|
+
onReorder: (newItems: T[]) => void;
|
|
7
|
+
haptic?: boolean;
|
|
8
|
+
dragScale?: number;
|
|
9
|
+
accessibilityLabel?: string;
|
|
10
|
+
testID?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface UseDragToReorderResult {
|
|
13
|
+
containerStyle: ResolvedBoxStyle;
|
|
14
|
+
getDragItemStyle: (index: number, isDragging: boolean) => ResolvedBoxStyle;
|
|
15
|
+
placeholderStyle: ResolvedBoxStyle;
|
|
16
|
+
dragHandleStyle: ResolvedBoxStyle;
|
|
17
|
+
isDragging: boolean;
|
|
18
|
+
dragIndex: number | null;
|
|
19
|
+
accessibilityProps: {
|
|
20
|
+
accessibilityLabel: string;
|
|
21
|
+
accessibilityRole: 'list';
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/interactive/drag-to-reorder/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,aAAa;IACpE,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,YAAY,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACjD,SAAS,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,gBAAgB,CAAC;IACjC,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,KAAK,gBAAgB,CAAC;IAC3E,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,eAAe,EAAE,gBAAgB,CAAC;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,kBAAkB,EAAE;QAClB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,iBAAiB,EAAE,MAAM,CAAC;KAC3B,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/interactive/drag-to-reorder/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ThemeTokens } from '../../../theme/tokens.js';
|
|
2
|
+
import type { DragToReorderProps, UseDragToReorderResult } from './types.js';
|
|
3
|
+
export declare function useDragToReorder(tokens: ThemeTokens, props: DragToReorderProps): UseDragToReorderResult;
|
|
4
|
+
//# sourceMappingURL=use-drag-to-reorder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-drag-to-reorder.d.ts","sourceRoot":"","sources":["../../../../src/components/interactive/drag-to-reorder/use-drag-to-reorder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAG7E,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,kBAAkB,GACxB,sBAAsB,CAqDxB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export function useDragToReorder(tokens, props) {
|
|
2
|
+
const { dragScale = 1.05, accessibilityLabel = 'Reorderable list', } = props;
|
|
3
|
+
const containerStyle = {
|
|
4
|
+
flex: 1,
|
|
5
|
+
};
|
|
6
|
+
const getDragItemStyle = (_index, isDragging) => {
|
|
7
|
+
if (isDragging) {
|
|
8
|
+
return {
|
|
9
|
+
transform: [{ scale: dragScale }],
|
|
10
|
+
elevation: 8,
|
|
11
|
+
shadowOpacity: 0.3,
|
|
12
|
+
zIndex: 999,
|
|
13
|
+
opacity: 1,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
transform: [{ scale: 1 }],
|
|
18
|
+
elevation: 0,
|
|
19
|
+
zIndex: 0,
|
|
20
|
+
opacity: 1,
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
const placeholderStyle = {
|
|
24
|
+
backgroundColor: tokens.colors.muted,
|
|
25
|
+
opacity: 0.3,
|
|
26
|
+
};
|
|
27
|
+
const dragHandleStyle = {
|
|
28
|
+
padding: tokens.spacing.sm,
|
|
29
|
+
opacity: 0.5,
|
|
30
|
+
};
|
|
31
|
+
return {
|
|
32
|
+
containerStyle,
|
|
33
|
+
getDragItemStyle,
|
|
34
|
+
placeholderStyle,
|
|
35
|
+
dragHandleStyle,
|
|
36
|
+
isDragging: false,
|
|
37
|
+
dragIndex: null,
|
|
38
|
+
accessibilityProps: {
|
|
39
|
+
accessibilityLabel,
|
|
40
|
+
accessibilityRole: 'list',
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=use-drag-to-reorder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-drag-to-reorder.js","sourceRoot":"","sources":["../../../../src/components/interactive/drag-to-reorder/use-drag-to-reorder.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,gBAAgB,CAC9B,MAAmB,EACnB,KAAyB;IAEzB,MAAM,EACJ,SAAS,GAAG,IAAI,EAChB,kBAAkB,GAAG,kBAAkB,GACxC,GAAG,KAAK,CAAC;IAEV,MAAM,cAAc,GAAqB;QACvC,IAAI,EAAE,CAAC;KACR,CAAC;IAEF,MAAM,gBAAgB,GAAG,CACvB,MAAc,EACd,UAAmB,EACD,EAAE;QACpB,IAAI,UAAU,EAAE,CAAC;YACf,OAAO;gBACL,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;gBACjC,SAAS,EAAE,CAAC;gBACZ,aAAa,EAAE,GAAG;gBAClB,MAAM,EAAE,GAAG;gBACX,OAAO,EAAE,CAAC;aACS,CAAC;QACxB,CAAC;QACD,OAAO;YACL,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;YACzB,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,CAAC;YACT,OAAO,EAAE,CAAC;SACS,CAAC;IACxB,CAAC,CAAC;IAEF,MAAM,gBAAgB,GAAqB;QACzC,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK;QACpC,OAAO,EAAE,GAAG;KACb,CAAC;IAEF,MAAM,eAAe,GAAqB;QACxC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;QAC1B,OAAO,EAAE,GAAG;KACb,CAAC;IAEF,OAAO;QACL,cAAc;QACd,gBAAgB;QAChB,gBAAgB;QAChB,eAAe;QACf,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,IAAI;QACf,kBAAkB,EAAE;YAClB,kBAAkB;YAClB,iBAAiB,EAAE,MAAM;SAC1B;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
export { SwipeableRow, useSwipeableRow } from './swipeable-row/index.js';
|
|
2
2
|
export type { SwipeableRowProps, SwipeAction, UseSwipeableRowResult } from './swipeable-row/index.js';
|
|
3
|
+
export { DragToReorder, useDragToReorder } from './drag-to-reorder/index.js';
|
|
4
|
+
export type { DragToReorderProps, UseDragToReorderResult } from './drag-to-reorder/index.js';
|
|
5
|
+
export { PullToRefresh, usePullToRefresh } from './pull-to-refresh/index.js';
|
|
6
|
+
export type { PullToRefreshProps, UsePullToRefreshResult } from './pull-to-refresh/index.js';
|
|
7
|
+
export { PinchToZoom, usePinchToZoom } from './pinch-to-zoom/index.js';
|
|
8
|
+
export type { PinchToZoomProps, UsePinchToZoomResult } from './pinch-to-zoom/index.js';
|
|
9
|
+
export { ParallaxHeader, useParallaxHeader } from './parallax-header/index.js';
|
|
10
|
+
export type { ParallaxHeaderProps, UseParallaxHeaderResult } from './parallax-header/index.js';
|
|
11
|
+
export { PageView, usePageView } from './page-view/index.js';
|
|
12
|
+
export type { PageViewProps, UsePageViewResult, IndicatorVariant } from './page-view/index.js';
|
|
3
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/interactive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACzE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/interactive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACzE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtG,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,YAAY,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAE7F,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,YAAY,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAE7F,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACvE,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEvF,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/E,YAAY,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE/F,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC7D,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
export { SwipeableRow, useSwipeableRow } from './swipeable-row/index.js';
|
|
2
|
+
export { DragToReorder, useDragToReorder } from './drag-to-reorder/index.js';
|
|
3
|
+
export { PullToRefresh, usePullToRefresh } from './pull-to-refresh/index.js';
|
|
4
|
+
export { PinchToZoom, usePinchToZoom } from './pinch-to-zoom/index.js';
|
|
5
|
+
export { ParallaxHeader, useParallaxHeader } from './parallax-header/index.js';
|
|
6
|
+
export { PageView, usePageView } from './page-view/index.js';
|
|
2
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/interactive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/interactive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAGzE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG7E,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG7E,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAGvE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/E,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/interactive/page-view/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
|