@tactics/toddle-styleguide 5.0.2 → 5.0.5
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/.prettierrc.js +9 -0
- package/.yarnrc.yml +2 -0
- package/App.d.ts +5 -0
- package/App.tsx +655 -0
- package/app.json +37 -0
- package/assets/adaptive-icon.png +0 -0
- package/assets/components/avatar/baby.png +0 -0
- package/assets/favicon.png +0 -0
- package/assets/fonts/montserrat/bold.ttf +0 -0
- package/assets/fonts/montserrat/regular.ttf +0 -0
- package/assets/fonts/source-sans-pro/bold.ttf +0 -0
- package/assets/fonts/source-sans-pro/regular.ttf +0 -0
- package/assets/icon.png +0 -0
- package/assets/lottie/wave-for-daycares.json +1197 -0
- package/assets/lottie/wave-for-parents.json +1 -0
- package/assets/splash.png +0 -0
- package/babel.config.js +20 -0
- package/index.d.ts +79 -0
- package/index.tsx +196 -0
- package/jest.config.js +26 -0
- package/metro.config.js +11 -0
- package/package.json +6 -16
- package/src/components/atoms/animated-wave/animated-wave.component.d.ts +2 -0
- package/src/components/atoms/animated-wave/animated-wave.component.tsx +28 -0
- package/src/components/atoms/animated-wave/animated-wave.preview.tsx +20 -0
- package/src/components/atoms/animated-wave/animated-wave.styles.d.ts +21 -0
- package/src/components/atoms/animated-wave/animated-wave.styles.js +25 -0
- package/src/components/atoms/backdrop/backdrop.component.d.ts +7 -0
- package/src/components/atoms/backdrop/backdrop.component.tsx +48 -0
- package/src/components/atoms/backdrop/backdrop.styles.d.ts +11 -0
- package/src/components/atoms/backdrop/backdrop.styles.js +15 -0
- package/src/components/atoms/background-gradient/__snapshots__/background-gradient.test.js.snap +40 -0
- package/src/components/atoms/background-gradient/background-gradient.component.d.ts +2 -0
- package/src/components/atoms/background-gradient/background-gradient.component.tsx +19 -0
- package/src/components/atoms/background-gradient/background-gradient.preview.d.ts +2 -0
- package/src/components/atoms/background-gradient/background-gradient.preview.tsx +77 -0
- package/src/components/atoms/background-gradient/background-gradient.styles.d.ts +8 -0
- package/src/components/atoms/background-gradient/background-gradient.styles.js +11 -0
- package/src/components/atoms/background-gradient/background-gradient.test.js +10 -0
- package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +6817 -0
- package/src/components/atoms/calendar/calendar.component.d.ts +10 -0
- package/src/components/atoms/calendar/calendar.component.tsx +101 -0
- package/src/components/atoms/calendar/calendar.preview.d.ts +2 -0
- package/src/components/atoms/calendar/calendar.preview.tsx +39 -0
- package/src/components/atoms/calendar/calendar.styles.d.ts +81 -0
- package/src/components/atoms/calendar/calendar.styles.js +88 -0
- package/src/components/atoms/calendar/calendar.test.js +35 -0
- package/src/components/atoms/check-switch/__snapshots__/check-switch.test.js.snap +84 -0
- package/src/components/atoms/check-switch/check-switch.component.d.ts +7 -0
- package/src/components/atoms/check-switch/check-switch.component.tsx +48 -0
- package/src/components/atoms/check-switch/check-switch.preview.d.ts +2 -0
- package/src/components/atoms/check-switch/check-switch.preview.tsx +31 -0
- package/src/components/atoms/check-switch/check-switch.styles.d.ts +33 -0
- package/src/components/atoms/check-switch/check-switch.styles.js +36 -0
- package/src/components/atoms/check-switch/check-switch.test.js +13 -0
- package/src/components/atoms/count/count.component.d.ts +7 -0
- package/src/components/atoms/count/count.component.tsx +21 -0
- package/src/components/atoms/count/count.preview.d.ts +2 -0
- package/src/components/atoms/count/count.preview.tsx +16 -0
- package/src/components/atoms/count/count.styles.d.ts +24 -0
- package/src/components/atoms/count/count.styles.js +33 -0
- package/src/components/atoms/footer/footer.component.d.ts +6 -0
- package/src/components/atoms/footer/footer.component.tsx +28 -0
- package/src/components/atoms/footer/footer.preview.d.ts +2 -0
- package/src/components/atoms/footer/footer.preview.tsx +24 -0
- package/src/components/atoms/footer/footer.styles.d.ts +17 -0
- package/src/components/atoms/footer/footer.styles.js +18 -0
- package/src/components/atoms/heading-components/all-caps-heading/__snapshots__/all-caps-heading.test.js.snap +113 -0
- package/src/components/atoms/heading-components/all-caps-heading/all-caps-heading.component.d.ts +3 -0
- package/src/components/atoms/heading-components/all-caps-heading/all-caps-heading.component.tsx +28 -0
- package/src/components/atoms/heading-components/all-caps-heading/all-caps-heading.test.js +44 -0
- package/src/components/atoms/heading-components/heading.styles.d.ts +48 -0
- package/src/components/atoms/heading-components/heading.styles.js +63 -0
- package/src/components/atoms/heading-components/heading1/__snapshots__/heading1.test.js.snap +121 -0
- package/src/components/atoms/heading-components/heading1/heading1.component.d.ts +3 -0
- package/src/components/atoms/heading-components/heading1/heading1.component.tsx +28 -0
- package/src/components/atoms/heading-components/heading1/heading1.test.js +51 -0
- package/src/components/atoms/heading-components/heading2/__snapshots__/heading2.test.js.snap +121 -0
- package/src/components/atoms/heading-components/heading2/heading2.component.d.ts +3 -0
- package/src/components/atoms/heading-components/heading2/heading2.component.tsx +28 -0
- package/src/components/atoms/heading-components/heading2/heading2.test.js +51 -0
- package/src/components/atoms/heading-components/heading3/__snapshots__/heading3.test.js.snap +121 -0
- package/src/components/atoms/heading-components/heading3/heading3.component.d.ts +3 -0
- package/src/components/atoms/heading-components/heading3/heading3.component.tsx +28 -0
- package/src/components/atoms/heading-components/heading3/heading3.test.js +51 -0
- package/src/components/atoms/heading-components/heading4/__snapshots__/heading4.test.js.snap +121 -0
- package/src/components/atoms/heading-components/heading4/heading4.component.d.ts +3 -0
- package/src/components/atoms/heading-components/heading4/heading4.component.tsx +28 -0
- package/src/components/atoms/heading-components/heading4/heading4.test.js +51 -0
- package/src/components/atoms/heading-components/headings.preview.d.ts +2 -0
- package/src/components/atoms/heading-components/headings.preview.tsx +86 -0
- package/src/components/atoms/heading-components/index.d.ts +6 -0
- package/src/components/atoms/heading-components/index.tsx +7 -0
- package/src/components/atoms/image-bubble/__snapshots__/image-bubble.test.js.snap +67 -0
- package/src/components/atoms/image-bubble/image-bubble.component.d.ts +9 -0
- package/src/components/atoms/image-bubble/image-bubble.component.tsx +27 -0
- package/src/components/atoms/image-bubble/image-bubble.preview.d.ts +2 -0
- package/src/components/atoms/image-bubble/image-bubble.preview.tsx +19 -0
- package/src/components/atoms/image-bubble/image-bubble.styles.d.ts +35 -0
- package/src/components/atoms/image-bubble/image-bubble.styles.js +31 -0
- package/src/components/atoms/image-bubble/image-bubble.test.js +20 -0
- package/src/components/atoms/increment-input/__snapshots__/increment-input.test.js.snap +269 -0
- package/src/components/atoms/increment-input/increment-input.component.d.ts +8 -0
- package/src/components/atoms/increment-input/increment-input.component.tsx +63 -0
- package/src/components/atoms/increment-input/increment-input.preview.d.ts +2 -0
- package/src/components/atoms/increment-input/increment-input.preview.tsx +26 -0
- package/src/components/atoms/increment-input/increment-input.styles.d.ts +35 -0
- package/src/components/atoms/increment-input/increment-input.styles.js +39 -0
- package/src/components/atoms/increment-input/increment-input.test.js +14 -0
- package/src/components/atoms/line/line.component.d.ts +9 -0
- package/src/components/atoms/line/line.component.tsx +23 -0
- package/src/components/atoms/line/line.preview.d.ts +2 -0
- package/src/components/atoms/line/line.preview.tsx +55 -0
- package/src/components/atoms/line/line.styles.d.ts +12 -0
- package/src/components/atoms/line/line.styles.js +10 -0
- package/src/components/atoms/logo/__snapshots__/logo.test.js.snap +113 -0
- package/src/components/atoms/logo/logo.component.d.ts +7 -0
- package/src/components/atoms/logo/logo.component.tsx +39 -0
- package/src/components/atoms/logo/logo.preview.d.ts +2 -0
- package/src/components/atoms/logo/logo.preview.tsx +15 -0
- package/src/components/atoms/logo/logo.test.js +16 -0
- package/src/components/atoms/paragraph-components/index.d.ts +4 -0
- package/src/components/atoms/paragraph-components/index.tsx +5 -0
- package/src/components/atoms/paragraph-components/paragraph/__snapshots__/paragraph.test.js.snap +121 -0
- package/src/components/atoms/paragraph-components/paragraph/paragraph.component.d.ts +3 -0
- package/src/components/atoms/paragraph-components/paragraph/paragraph.component.tsx +28 -0
- package/src/components/atoms/paragraph-components/paragraph/paragraph.test.js +76 -0
- package/src/components/atoms/paragraph-components/paragraph-components.preview.d.ts +2 -0
- package/src/components/atoms/paragraph-components/paragraph-components.preview.tsx +94 -0
- package/src/components/atoms/paragraph-components/paragraph-text.styles.d.ts +30 -0
- package/src/components/atoms/paragraph-components/paragraph-text.styles.js +41 -0
- package/src/components/atoms/paragraph-components/small-text/__snapshots__/small-text.test.js.snap +121 -0
- package/src/components/atoms/paragraph-components/small-text/small-text.component.d.ts +3 -0
- package/src/components/atoms/paragraph-components/small-text/small-text.component.tsx +28 -0
- package/src/components/atoms/paragraph-components/small-text/small-text.test.js +76 -0
- package/src/components/atoms/paragraph-components/tiny-text/__snapshots__/tiny-text.test.js.snap +121 -0
- package/src/components/atoms/paragraph-components/tiny-text/tiny-text.component.d.ts +3 -0
- package/src/components/atoms/paragraph-components/tiny-text/tiny-text.component.tsx +28 -0
- package/src/components/atoms/paragraph-components/tiny-text/tiny-text.test.js +76 -0
- package/src/components/atoms/quick-message/__snapshots__/quick-message.test.js.snap +143 -0
- package/src/components/atoms/quick-message/quick-message.component.d.ts +9 -0
- package/src/components/atoms/quick-message/quick-message.component.tsx +35 -0
- package/src/components/atoms/quick-message/quick-message.preview.d.ts +2 -0
- package/src/components/atoms/quick-message/quick-message.preview.tsx +43 -0
- package/src/components/atoms/quick-message/quick-message.styles.d.ts +17 -0
- package/src/components/atoms/quick-message/quick-message.styles.js +20 -0
- package/src/components/atoms/quick-message/quick-message.test.js +58 -0
- package/src/components/atoms/split-container/__snapshots__/split-container.test.js.snap +333 -0
- package/src/components/atoms/split-container/split-container.component.d.ts +7 -0
- package/src/components/atoms/split-container/split-container.component.tsx +27 -0
- package/src/components/atoms/split-container/split-container.preview.d.ts +2 -0
- package/src/components/atoms/split-container/split-container.preview.tsx +62 -0
- package/src/components/atoms/split-container/split-container.styles.d.ts +14 -0
- package/src/components/atoms/split-container/split-container.styles.js +19 -0
- package/src/components/atoms/split-container/split-container.test.js +45 -0
- package/src/components/atoms/static-wave/static-wave.component.d.ts +9 -0
- package/src/components/atoms/static-wave/static-wave.component.tsx +46 -0
- package/src/components/atoms/static-wave/static-wave.styles.d.ts +14 -0
- package/src/components/atoms/static-wave/static-wave.styles.js +14 -0
- package/src/components/atoms/text-input/__snapshots__/text-input.test.js.snap +123 -0
- package/src/components/atoms/text-input/text-input.component.d.ts +9 -0
- package/src/components/atoms/text-input/text-input.component.tsx +30 -0
- package/src/components/atoms/text-input/text-input.preview.d.ts +2 -0
- package/src/components/atoms/text-input/text-input.preview.tsx +41 -0
- package/src/components/atoms/text-input/text-input.styles.d.ts +33 -0
- package/src/components/atoms/text-input/text-input.styles.js +29 -0
- package/src/components/atoms/text-input/text-input.test.js +59 -0
- package/src/components/molecules/amount/amount.component.d.ts +12 -0
- package/src/components/molecules/amount/amount.component.tsx +148 -0
- package/src/components/molecules/amount/amount.preview.d.ts +2 -0
- package/src/components/molecules/amount/amount.preview.tsx +77 -0
- package/src/components/molecules/amount/amount.styles.d.ts +36 -0
- package/src/components/molecules/amount/amount.styles.js +40 -0
- package/src/components/molecules/avatar/__snapshots__/avatar.test.js.snap +97 -0
- package/src/components/molecules/avatar/avatar.component.d.ts +15 -0
- package/src/components/molecules/avatar/avatar.component.tsx +118 -0
- package/src/components/molecules/avatar/avatar.preview.d.ts +2 -0
- package/src/components/molecules/avatar/avatar.preview.tsx +82 -0
- package/src/components/molecules/avatar/avatar.styles.d.ts +102 -0
- package/src/components/molecules/avatar/avatar.styles.js +90 -0
- package/src/components/molecules/avatar/avatar.test.js +22 -0
- package/src/components/molecules/bare-time-picker/bare-time-picker.component.d.ts +9 -0
- package/src/components/molecules/bare-time-picker/bare-time-picker.component.native.tsx +78 -0
- package/src/components/molecules/bare-time-picker/bare-time-picker.component.tsx +52 -0
- package/src/components/molecules/bare-time-picker/bare-time-picker.preview.d.ts +2 -0
- package/src/components/molecules/bare-time-picker/bare-time-picker.preview.tsx +86 -0
- package/src/components/molecules/bare-time-picker/bare-time-picker.styles.d.ts +14 -0
- package/src/components/molecules/bare-time-picker/bare-time-picker.styles.js +18 -0
- package/src/components/molecules/blocked-message/__snapshots__/blocked-message.test.js.snap +107 -0
- package/src/components/molecules/blocked-message/blocked-message.component.d.ts +6 -0
- package/src/components/molecules/blocked-message/blocked-message.component.tsx +35 -0
- package/src/components/molecules/blocked-message/blocked-message.preview.d.ts +2 -0
- package/src/components/molecules/blocked-message/blocked-message.preview.tsx +23 -0
- package/src/components/molecules/blocked-message/blocked-message.styles.d.ts +22 -0
- package/src/components/molecules/blocked-message/blocked-message.styles.js +21 -0
- package/src/components/molecules/blocked-message/blocked-message.test.js +12 -0
- package/src/components/molecules/button/__snapshots__/button.test.js.snap +652 -0
- package/src/components/molecules/button/button.component.d.ts +15 -0
- package/src/components/molecules/button/button.component.tsx +77 -0
- package/src/components/molecules/button/button.preview.d.ts +2 -0
- package/src/components/molecules/button/button.preview.tsx +57 -0
- package/src/components/molecules/button/button.styles.d.ts +18 -0
- package/src/components/molecules/button/button.styles.js +18 -0
- package/src/components/molecules/button/button.test.js +56 -0
- package/src/components/molecules/calendar-select/__snapshots__/calendar-select.test.js.snap +343 -0
- package/src/components/molecules/calendar-select/calendar-select.component.d.ts +10 -0
- package/src/components/molecules/calendar-select/calendar-select.component.tsx +98 -0
- package/src/components/molecules/calendar-select/calendar-select.preview.d.ts +2 -0
- package/src/components/molecules/calendar-select/calendar-select.preview.tsx +20 -0
- package/src/components/molecules/calendar-select/calendar-select.styles.d.ts +33 -0
- package/src/components/molecules/calendar-select/calendar-select.styles.js +37 -0
- package/src/components/molecules/calendar-select/calendar-select.test.js +20 -0
- package/src/components/molecules/cancel-link/__snapshots__/cancel-link.test.js.snap +139 -0
- package/src/components/molecules/cancel-link/cancel-link.component.d.ts +7 -0
- package/src/components/molecules/cancel-link/cancel-link.component.tsx +27 -0
- package/src/components/molecules/cancel-link/cancel-link.preview.d.ts +2 -0
- package/src/components/molecules/cancel-link/cancel-link.preview.tsx +20 -0
- package/src/components/molecules/cancel-link/cancel-link.styles.d.ts +11 -0
- package/src/components/molecules/cancel-link/cancel-link.styles.js +15 -0
- package/src/components/molecules/cancel-link/cancel-link.test.js +28 -0
- package/src/components/molecules/checkbox/__snapshots__/checkbox.test.js.snap +176 -0
- package/src/components/molecules/checkbox/checkbox.component.d.ts +8 -0
- package/src/components/molecules/checkbox/checkbox.component.tsx +31 -0
- package/src/components/molecules/checkbox/checkbox.preview.d.ts +2 -0
- package/src/components/molecules/checkbox/checkbox.preview.tsx +46 -0
- package/src/components/molecules/checkbox/checkbox.styles.d.ts +32 -0
- package/src/components/molecules/checkbox/checkbox.styles.js +30 -0
- package/src/components/molecules/checkbox/checkbox.test.js +30 -0
- package/src/components/molecules/contact-role/__snapshots__/contact-role.test.js.snap +113 -0
- package/src/components/molecules/contact-role/contact-role.component.d.ts +8 -0
- package/src/components/molecules/contact-role/contact-role.component.tsx +37 -0
- package/src/components/molecules/contact-role/contact-role.preview.d.ts +2 -0
- package/src/components/molecules/contact-role/contact-role.preview.tsx +17 -0
- package/src/components/molecules/contact-role/contact-role.styles.d.ts +16 -0
- package/src/components/molecules/contact-role/contact-role.styles.js +20 -0
- package/src/components/molecules/contact-role/contact-role.test.js +18 -0
- package/src/components/molecules/context-label/context-label.component.d.ts +7 -0
- package/src/components/molecules/context-label/context-label.component.tsx +37 -0
- package/src/components/molecules/context-label/context-label.preview.d.ts +2 -0
- package/src/components/molecules/context-label/context-label.preview.tsx +70 -0
- package/src/components/molecules/context-label/context-label.styles.d.ts +18 -0
- package/src/components/molecules/context-label/context-label.styles.js +21 -0
- package/src/components/molecules/date-input/__snapshots__/date-input.test.js.snap +140 -0
- package/src/components/molecules/date-input/date-input.component.d.ts +8 -0
- package/src/components/molecules/date-input/date-input.component.tsx +32 -0
- package/src/components/molecules/date-input/date-input.preview.d.ts +2 -0
- package/src/components/molecules/date-input/date-input.preview.tsx +62 -0
- package/src/components/molecules/date-input/date-input.styles.d.ts +18 -0
- package/src/components/molecules/date-input/date-input.styles.js +22 -0
- package/src/components/molecules/date-input/date-input.test.js +23 -0
- package/src/components/molecules/day/__snapshots__/day.test.js.snap +263 -0
- package/src/components/molecules/day/day.component.d.ts +13 -0
- package/src/components/molecules/day/day.component.tsx +69 -0
- package/src/components/molecules/day/day.styles.d.ts +35 -0
- package/src/components/molecules/day/day.styles.js +27 -0
- package/src/components/molecules/day/day.test.js +37 -0
- package/src/components/molecules/default-select/__snapshots__/default-select.test.js.snap +140 -0
- package/src/components/molecules/default-select/default-select.component.d.ts +7 -0
- package/src/components/molecules/default-select/default-select.component.tsx +42 -0
- package/src/components/molecules/default-select/default-select.preview.d.ts +2 -0
- package/src/components/molecules/default-select/default-select.preview.tsx +34 -0
- package/src/components/molecules/default-select/default-select.styles.d.ts +13 -0
- package/src/components/molecules/default-select/default-select.styles.js +17 -0
- package/src/components/molecules/default-select/default-select.test.js +17 -0
- package/src/components/molecules/department_logo/__snapshots__/department-logo.test.js.snap +27 -0
- package/src/components/molecules/department_logo/department-logo.component.d.ts +6 -0
- package/src/components/molecules/department_logo/department-logo.component.tsx +21 -0
- package/src/components/molecules/department_logo/department-logo.preview.d.ts +2 -0
- package/src/components/molecules/department_logo/department-logo.preview.tsx +11 -0
- package/src/components/molecules/department_logo/department-logo.styles.d.ts +5 -0
- package/src/components/molecules/department_logo/department-logo.styles.js +9 -0
- package/src/components/molecules/department_logo/department-logo.test.js +12 -0
- package/src/components/molecules/failed-to-send/__snapshots__/failed-bubble.test.js.snap +386 -0
- package/src/components/molecules/failed-to-send/failed-bubble.component.d.ts +9 -0
- package/src/components/molecules/failed-to-send/failed-bubble.component.tsx +101 -0
- package/src/components/molecules/failed-to-send/failed-bubble.styles.d.ts +38 -0
- package/src/components/molecules/failed-to-send/failed-bubble.styles.js +42 -0
- package/src/components/molecules/failed-to-send/failed-bubble.test.js +75 -0
- package/src/components/molecules/filter-range/__snapshots__/filter-range.test.js.snap +208 -0
- package/src/components/molecules/filter-range/filter-range.component.d.ts +11 -0
- package/src/components/molecules/filter-range/filter-range.component.tsx +72 -0
- package/src/components/molecules/filter-range/filter-range.preview.d.ts +2 -0
- package/src/components/molecules/filter-range/filter-range.preview.tsx +26 -0
- package/src/components/molecules/filter-range/filter-range.styles.d.ts +22 -0
- package/src/components/molecules/filter-range/filter-range.styles.js +26 -0
- package/src/components/molecules/filter-range/filter-range.test.js +20 -0
- package/src/components/molecules/filter-tab/__snapshots__/filter-tab.test.js.snap +536 -0
- package/src/components/molecules/filter-tab/filter-tab.component.d.ts +11 -0
- package/src/components/molecules/filter-tab/filter-tab.component.tsx +108 -0
- package/src/components/molecules/filter-tab/filter-tab.preview.d.ts +2 -0
- package/src/components/molecules/filter-tab/filter-tab.preview.tsx +80 -0
- package/src/components/molecules/filter-tab/filter-tab.styles.d.ts +59 -0
- package/src/components/molecules/filter-tab/filter-tab.styles.js +58 -0
- package/src/components/molecules/filter-tab/filter-tab.test.js +42 -0
- package/src/components/molecules/info/__snapshots__/info.test.js.snap +64 -0
- package/src/components/molecules/info/info.component.d.ts +8 -0
- package/src/components/molecules/info/info.component.tsx +39 -0
- package/src/components/molecules/info/info.preview.d.ts +2 -0
- package/src/components/molecules/info/info.preview.tsx +28 -0
- package/src/components/molecules/info/info.styles.d.ts +16 -0
- package/src/components/molecules/info/info.styles.js +20 -0
- package/src/components/molecules/info/info.test.js +18 -0
- package/src/components/molecules/inline-error/inline-error.component.d.ts +6 -0
- package/src/components/molecules/inline-error/inline-error.component.tsx +34 -0
- package/src/components/molecules/inline-error/inline-error.preview.d.ts +2 -0
- package/src/components/molecules/inline-error/inline-error.preview.tsx +22 -0
- package/src/components/molecules/inline-error/inline-error.styles.d.ts +18 -0
- package/src/components/molecules/inline-error/inline-error.styles.js +22 -0
- package/src/components/molecules/inline-notice/inline-notice.component.d.ts +6 -0
- package/src/components/molecules/inline-notice/inline-notice.component.tsx +31 -0
- package/src/components/molecules/inline-notice/inline-notice.preview.tsx +22 -0
- package/src/components/molecules/inline-notice/inline-notice.styles.d.ts +18 -0
- package/src/components/molecules/inline-notice/inline-notice.styles.js +22 -0
- package/src/components/molecules/language-button/__snapshots__/language-button.test.js.snap +129 -0
- package/src/components/molecules/language-button/language-button.component.d.ts +8 -0
- package/src/components/molecules/language-button/language-button.component.tsx +33 -0
- package/src/components/molecules/language-button/language-button.preview.d.ts +2 -0
- package/src/components/molecules/language-button/language-button.preview.tsx +29 -0
- package/src/components/molecules/language-button/language-button.styles.d.ts +8 -0
- package/src/components/molecules/language-button/language-button.styles.js +12 -0
- package/src/components/molecules/language-button/language-button.test.js +29 -0
- package/src/components/molecules/message-input/__snapshots__/message-input.test.js.snap +611 -0
- package/src/components/molecules/message-input/message-input.component.d.ts +9 -0
- package/src/components/molecules/message-input/message-input.component.tsx +54 -0
- package/src/components/molecules/message-input/message-input.preview.d.ts +2 -0
- package/src/components/molecules/message-input/message-input.preview.tsx +54 -0
- package/src/components/molecules/message-input/message-input.styles.d.ts +33 -0
- package/src/components/molecules/message-input/message-input.styles.js +37 -0
- package/src/components/molecules/message-input/message-input.test.js +63 -0
- package/src/components/molecules/more-info-button/__snapshots__/more-info-button.test.js.snap +133 -0
- package/src/components/molecules/more-info-button/more-info-button.component.d.ts +8 -0
- package/src/components/molecules/more-info-button/more-info-button.component.tsx +33 -0
- package/src/components/molecules/more-info-button/more-info-button.preview.d.ts +2 -0
- package/src/components/molecules/more-info-button/more-info-button.preview.tsx +29 -0
- package/src/components/molecules/more-info-button/more-info-button.styles.d.ts +10 -0
- package/src/components/molecules/more-info-button/more-info-button.styles.js +15 -0
- package/src/components/molecules/more-info-button/more-info-button.test.js +29 -0
- package/src/components/molecules/password-input/__snapshots__/password-input.test.js.snap +504 -0
- package/src/components/molecules/password-input/password-input.component.d.ts +8 -0
- package/src/components/molecules/password-input/password-input.component.tsx +55 -0
- package/src/components/molecules/password-input/password-input.preview.d.ts +2 -0
- package/src/components/molecules/password-input/password-input.preview.tsx +59 -0
- package/src/components/molecules/password-input/password-input.styles.d.ts +29 -0
- package/src/components/molecules/password-input/password-input.styles.js +33 -0
- package/src/components/molecules/password-input/password-input.test.js +46 -0
- package/src/components/molecules/pill/__snapshots__/pill.test.js.snap +226 -0
- package/src/components/molecules/pill/pill.component.d.ts +8 -0
- package/src/components/molecules/pill/pill.component.tsx +33 -0
- package/src/components/molecules/pill/pill.preview.d.ts +2 -0
- package/src/components/molecules/pill/pill.preview.tsx +23 -0
- package/src/components/molecules/pill/pill.styles.d.ts +32 -0
- package/src/components/molecules/pill/pill.styles.js +33 -0
- package/src/components/molecules/pill/pill.test.js +42 -0
- package/src/components/molecules/pressable-icon/__snapshots__/pressable-icon.test.js.snap +460 -0
- package/src/components/molecules/pressable-icon/pressable-icon.component.d.ts +9 -0
- package/src/components/molecules/pressable-icon/pressable-icon.component.tsx +50 -0
- package/src/components/molecules/pressable-icon/pressable-icon.preview.d.ts +2 -0
- package/src/components/molecules/pressable-icon/pressable-icon.preview.tsx +37 -0
- package/src/components/molecules/pressable-icon/pressable-icon.styles.d.ts +20 -0
- package/src/components/molecules/pressable-icon/pressable-icon.styles.js +25 -0
- package/src/components/molecules/pressable-icon/pressable-icon.test.js +51 -0
- package/src/components/molecules/quick-filter/__snapshots__/quick-filter.test.js.snap +557 -0
- package/src/components/molecules/quick-filter/quick-filter.component.d.ts +12 -0
- package/src/components/molecules/quick-filter/quick-filter.component.tsx +50 -0
- package/src/components/molecules/quick-filter/quick-filter.preview.d.ts +2 -0
- package/src/components/molecules/quick-filter/quick-filter.preview.tsx +57 -0
- package/src/components/molecules/quick-filter/quick-filter.styles.d.ts +35 -0
- package/src/components/molecules/quick-filter/quick-filter.styles.js +49 -0
- package/src/components/molecules/quick-filter/quick-filter.test.js +134 -0
- package/src/components/molecules/search-input/__snapshots__/search.test.js.snap +145 -0
- package/src/components/molecules/search-input/search.component.d.ts +10 -0
- package/src/components/molecules/search-input/search.component.tsx +50 -0
- package/src/components/molecules/search-input/search.preview.d.ts +2 -0
- package/src/components/molecules/search-input/search.preview.tsx +26 -0
- package/src/components/molecules/search-input/search.styles.d.ts +33 -0
- package/src/components/molecules/search-input/search.styles.js +38 -0
- package/src/components/molecules/search-input/search.test.js +22 -0
- package/src/components/molecules/select-link/__snapshots__/select-link.test.js.snap +70 -0
- package/src/components/molecules/select-link/select-link.component.d.ts +7 -0
- package/src/components/molecules/select-link/select-link.component.tsx +29 -0
- package/src/components/molecules/select-link/select-link.preview.d.ts +2 -0
- package/src/components/molecules/select-link/select-link.preview.tsx +20 -0
- package/src/components/molecules/select-link/select-link.styles.d.ts +11 -0
- package/src/components/molecules/select-link/select-link.styles.js +15 -0
- package/src/components/molecules/select-link/select-link.test.js +17 -0
- package/src/components/molecules/select-list-item/__snapshots__/select-list-item.test.js.snap +762 -0
- package/src/components/molecules/select-list-item/select-list-item-preview.d.ts +2 -0
- package/src/components/molecules/select-list-item/select-list-item-preview.tsx +40 -0
- package/src/components/molecules/select-list-item/select-list-item.component.d.ts +12 -0
- package/src/components/molecules/select-list-item/select-list-item.component.tsx +82 -0
- package/src/components/molecules/select-list-item/select-list-item.styles.d.ts +41 -0
- package/src/components/molecules/select-list-item/select-list-item.styles.js +43 -0
- package/src/components/molecules/select-list-item/select-list-item.test.js +38 -0
- package/src/components/molecules/select-picker/__snapshots__/select-picker.test.js.snap +407 -0
- package/src/components/molecules/select-picker/select-picker.component.d.ts +12 -0
- package/src/components/molecules/select-picker/select-picker.component.tsx +75 -0
- package/src/components/molecules/select-picker/select-picker.preview.d.ts +2 -0
- package/src/components/molecules/select-picker/select-picker.preview.tsx +63 -0
- package/src/components/molecules/select-picker/select-picker.styles.d.ts +32 -0
- package/src/components/molecules/select-picker/select-picker.styles.js +38 -0
- package/src/components/molecules/select-picker/select-picker.test.js +31 -0
- package/src/components/molecules/selectable-list-item/selectable-list-item-preview.d.ts +2 -0
- package/src/components/molecules/selectable-list-item/selectable-list-item-preview.tsx +51 -0
- package/src/components/molecules/selectable-list-item/selectable-list-item.component.d.ts +11 -0
- package/src/components/molecules/selectable-list-item/selectable-list-item.component.tsx +73 -0
- package/src/components/molecules/selectable-list-item/selectable-list-item.styles.d.ts +32 -0
- package/src/components/molecules/selectable-list-item/selectable-list-item.styles.js +34 -0
- package/src/components/molecules/send-bubble/__snapshots__/send-text-bubble.test.js.snap +1979 -0
- package/src/components/molecules/send-bubble/send-text-bubble.component.d.ts +11 -0
- package/src/components/molecules/send-bubble/send-text-bubble.component.tsx +104 -0
- package/src/components/molecules/send-bubble/send-text-bubble.styles.d.ts +60 -0
- package/src/components/molecules/send-bubble/send-text-bubble.styles.js +50 -0
- package/src/components/molecules/send-bubble/send-text-bubble.test.js +156 -0
- package/src/components/molecules/snackbar/__snapshots__/snackbar.test.js.snap +557 -0
- package/src/components/molecules/snackbar/snackbar.component.d.ts +8 -0
- package/src/components/molecules/snackbar/snackbar.component.tsx +65 -0
- package/src/components/molecules/snackbar/snackbar.preview.d.ts +2 -0
- package/src/components/molecules/snackbar/snackbar.preview.tsx +40 -0
- package/src/components/molecules/snackbar/snackbar.styles.d.ts +57 -0
- package/src/components/molecules/snackbar/snackbar.styles.js +54 -0
- package/src/components/molecules/snackbar/snackbar.test.js +35 -0
- package/src/components/molecules/swipe/__snapshots__/swipe.test.js.snap +340 -0
- package/src/components/molecules/swipe/swipe.component.d.ts +7 -0
- package/src/components/molecules/swipe/swipe.component.native.tsx +78 -0
- package/src/components/molecules/swipe/swipe.component.tsx +20 -0
- package/src/components/molecules/swipe/swipe.preview.d.ts +2 -0
- package/src/components/molecules/swipe/swipe.preview.tsx +123 -0
- package/src/components/molecules/swipe/swipe.styles.d.ts +28 -0
- package/src/components/molecules/swipe/swipe.styles.js +32 -0
- package/src/components/molecules/swipe/swipe.test.js +46 -0
- package/src/components/molecules/swipeable/swipeable-action.component.d.ts +10 -0
- package/src/components/molecules/swipeable/swipeable-action.component.tsx +57 -0
- package/src/components/molecules/swipeable/swipeable-action.styles.d.ts +12 -0
- package/src/components/molecules/swipeable/swipeable-action.styles.js +20 -0
- package/src/components/molecules/swipeable/swipeable-container.component.d.ts +14 -0
- package/src/components/molecules/swipeable/swipeable-container.component.tsx +69 -0
- package/src/components/molecules/swipeable/swipeable-container.styles.d.ts +9 -0
- package/src/components/molecules/swipeable/swipeable-container.styles.js +14 -0
- package/src/components/molecules/tag/__snapshots__/tag.test.js.snap +139 -0
- package/src/components/molecules/tag/tag.component.d.ts +9 -0
- package/src/components/molecules/tag/tag.component.tsx +39 -0
- package/src/components/molecules/tag/tag.preview.d.ts +2 -0
- package/src/components/molecules/tag/tag.preview.tsx +85 -0
- package/src/components/molecules/tag/tag.styles.d.ts +19 -0
- package/src/components/molecules/tag/tag.styles.js +19 -0
- package/src/components/molecules/tag/tag.test.js +34 -0
- package/src/components/molecules/time-picker/__snapshots__/time-picker.test.js.snap +2221 -0
- package/src/components/molecules/time-picker/time-picker.component.d.ts +9 -0
- package/src/components/molecules/time-picker/time-picker.component.tsx +98 -0
- package/src/components/molecules/time-picker/time-picker.preview.d.ts +2 -0
- package/src/components/molecules/time-picker/time-picker.preview.tsx +109 -0
- package/src/components/molecules/time-picker/time-picker.styles.d.ts +27 -0
- package/src/components/molecules/time-picker/time-picker.styles.js +31 -0
- package/src/components/molecules/time-picker/time-picker.test.js +18 -0
- package/src/components/molecules/time-tracker/__snapshots__/time-tracker.test.js.snap +266 -0
- package/src/components/molecules/time-tracker/time-tracker.component.d.ts +9 -0
- package/src/components/molecules/time-tracker/time-tracker.component.tsx +30 -0
- package/src/components/molecules/time-tracker/time-tracker.preview.d.ts +2 -0
- package/src/components/molecules/time-tracker/time-tracker.preview.tsx +15 -0
- package/src/components/molecules/time-tracker/time-tracker.styles.d.ts +33 -0
- package/src/components/molecules/time-tracker/time-tracker.styles.js +32 -0
- package/src/components/molecules/time-tracker/time-tracker.test.js +36 -0
- package/src/components/molecules/timeline/__snapshots__/timeline.test.js.snap +257 -0
- package/src/components/molecules/timeline/timeline.component.d.ts +7 -0
- package/src/components/molecules/timeline/timeline.component.tsx +69 -0
- package/src/components/molecules/timeline/timeline.preview.d.ts +2 -0
- package/src/components/molecules/timeline/timeline.preview.tsx +32 -0
- package/src/components/molecules/timeline/timeline.styles.d.ts +61 -0
- package/src/components/molecules/timeline/timeline.styles.js +46 -0
- package/src/components/molecules/timeline/timeline.test.js +18 -0
- package/src/components/molecules/timestamp/__snapshots__/timestamp.test.js.snap +28 -0
- package/src/components/molecules/timestamp/timestamp.component.d.ts +8 -0
- package/src/components/molecules/timestamp/timestamp.component.tsx +30 -0
- package/src/components/molecules/timestamp/timestamp.styles.d.ts +5 -0
- package/src/components/molecules/timestamp/timestamp.styles.js +8 -0
- package/src/components/molecules/timestamp/timestamp.test.js +16 -0
- package/src/components/molecules/wave-background/__snapshots__/wave.test.js.snap +173 -0
- package/src/components/molecules/wave-background/wave.component.d.ts +3 -0
- package/src/components/molecules/wave-background/wave.component.tsx +35 -0
- package/src/components/molecules/wave-background/wave.preview.d.ts +2 -0
- package/src/components/molecules/wave-background/wave.preview.tsx +78 -0
- package/src/components/molecules/wave-background/wave.styles.d.ts +13 -0
- package/src/components/molecules/wave-background/wave.styles.js +13 -0
- package/src/components/molecules/wave-background/wave.test.js +25 -0
- package/src/components/molecules/wide-button/__snapshots__/wide-button.test.js.snap +269 -0
- package/src/components/molecules/wide-button/wide-button.component.d.ts +9 -0
- package/src/components/molecules/wide-button/wide-button.component.tsx +39 -0
- package/src/components/molecules/wide-button/wide-button.preview.d.ts +2 -0
- package/src/components/molecules/wide-button/wide-button.preview.tsx +28 -0
- package/src/components/molecules/wide-button/wide-button.styles.d.ts +15 -0
- package/src/components/molecules/wide-button/wide-button.styles.js +19 -0
- package/src/components/molecules/wide-button/wide-button.test.js +30 -0
- package/src/components/organisms/child-list-item/__snapshots__/child-list-item.test.js.snap +1040 -0
- package/src/components/organisms/child-list-item/child-list-item.component.d.ts +23 -0
- package/src/components/organisms/child-list-item/child-list-item.component.tsx +166 -0
- package/src/components/organisms/child-list-item/child-list-item.preview.d.ts +2 -0
- package/src/components/organisms/child-list-item/child-list-item.preview.tsx +141 -0
- package/src/components/organisms/child-list-item/child-list-item.styles.d.ts +57 -0
- package/src/components/organisms/child-list-item/child-list-item.styles.js +61 -0
- package/src/components/organisms/child-list-item/child-list-item.test.js +75 -0
- package/src/components/organisms/child-list-item/components/child-list-tag.component.d.ts +7 -0
- package/src/components/organisms/child-list-item/components/child-list-tag.component.tsx +28 -0
- package/src/components/organisms/child-list-item/components/child-list-tag.styles.d.ts +13 -0
- package/src/components/organisms/child-list-item/components/child-list-tag.styles.js +16 -0
- package/src/components/organisms/contact-item/__snapshots__/contact-item.test.js.snap +404 -0
- package/src/components/organisms/contact-item/contact-item.component.d.ts +10 -0
- package/src/components/organisms/contact-item/contact-item.component.tsx +85 -0
- package/src/components/organisms/contact-item/contact-item.preview.d.ts +2 -0
- package/src/components/organisms/contact-item/contact-item.preview.tsx +38 -0
- package/src/components/organisms/contact-item/contact-item.styles.d.ts +22 -0
- package/src/components/organisms/contact-item/contact-item.styles.js +27 -0
- package/src/components/organisms/contact-item/contact-item.test.js +22 -0
- package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.component.d.ts +7 -0
- package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.component.tsx +96 -0
- package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.styles.d.ts +13 -0
- package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.styles.js +17 -0
- package/src/components/organisms/journal-entry/components/index.d.ts +2 -0
- package/src/components/organisms/journal-entry/components/index.ts +2 -0
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.d.ts +11 -0
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.tsx +63 -0
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.styles.d.ts +13 -0
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.styles.js +16 -0
- package/src/components/organisms/journal-entry/journal-entry.component.d.ts +20 -0
- package/src/components/organisms/journal-entry/journal-entry.component.tsx +134 -0
- package/src/components/organisms/journal-entry/journal-entry.preview.d.ts +2 -0
- package/src/components/organisms/journal-entry/journal-entry.preview.tsx +214 -0
- package/src/components/organisms/journal-entry/journal-entry.styles.d.ts +26 -0
- package/src/components/organisms/journal-entry/journal-entry.styles.js +27 -0
- package/src/components/organisms/loading-indicator/__snapshots__/loading-indicator.test.js.snap +474 -0
- package/src/components/organisms/loading-indicator/animation-style.animate.d.ts +3 -0
- package/src/components/organisms/loading-indicator/animation-style.animate.ts +164 -0
- package/src/components/organisms/loading-indicator/container.component.d.ts +1 -0
- package/src/components/organisms/loading-indicator/container.component.tsx +65 -0
- package/src/components/organisms/loading-indicator/dot.component.d.ts +6 -0
- package/src/components/organisms/loading-indicator/dot.component.tsx +27 -0
- package/src/components/organisms/loading-indicator/loading-indicator.component.d.ts +2 -0
- package/src/components/organisms/loading-indicator/loading-indicator.component.tsx +21 -0
- package/src/components/organisms/loading-indicator/loading-indicator.preview.d.ts +2 -0
- package/src/components/organisms/loading-indicator/loading-indicator.preview.tsx +100 -0
- package/src/components/organisms/loading-indicator/loading-indicator.test.js +41 -0
- package/src/components/organisms/my-child-list-item/__snapshots__/my-child-list-item.test.js.snap +293 -0
- package/src/components/organisms/my-child-list-item/my-child-list-item.component.d.ts +13 -0
- package/src/components/organisms/my-child-list-item/my-child-list-item.component.tsx +61 -0
- package/src/components/organisms/my-child-list-item/my-child-list-item.preview.d.ts +2 -0
- package/src/components/organisms/my-child-list-item/my-child-list-item.preview.tsx +51 -0
- package/src/components/organisms/my-child-list-item/my-child-list-item.styles.d.ts +33 -0
- package/src/components/organisms/my-child-list-item/my-child-list-item.styles.js +37 -0
- package/src/components/organisms/my-child-list-item/my-child-list-item.test.js +23 -0
- package/src/components/organisms/person-info-card/__snapshots__/person-info-card.test.js.snap +709 -0
- package/src/components/organisms/person-info-card/person-info-card.component.d.ts +15 -0
- package/src/components/organisms/person-info-card/person-info-card.component.tsx +45 -0
- package/src/components/organisms/person-info-card/person-info-card.preview.d.ts +2 -0
- package/src/components/organisms/person-info-card/person-info-card.preview.tsx +75 -0
- package/src/components/organisms/person-info-card/person-info-card.styles.d.ts +6 -0
- package/src/components/organisms/person-info-card/person-info-card.styles.js +10 -0
- package/src/components/organisms/person-info-card/person-info-card.test.js +85 -0
- package/src/components/organisms/text-bubble/__snapshots__/text-bubble.test.js.snap +3046 -0
- package/src/components/organisms/text-bubble/text-bubble.component.d.ts +15 -0
- package/src/components/organisms/text-bubble/text-bubble.component.tsx +71 -0
- package/src/components/organisms/text-bubble/text-bubble.preview.d.ts +2 -0
- package/src/components/organisms/text-bubble/text-bubble.preview.tsx +85 -0
- package/src/components/organisms/text-bubble/text-bubble.styles.d.ts +16 -0
- package/src/components/organisms/text-bubble/text-bubble.styles.js +20 -0
- package/src/components/organisms/text-bubble/text-bubble.test.js +144 -0
- package/src/components/organisms/timetable-edit/timetable-edit.component.d.ts +17 -0
- package/src/components/organisms/timetable-edit/timetable-edit.component.tsx +97 -0
- package/src/components/organisms/timetable-edit/timetable-edit.preview.d.ts +2 -0
- package/src/components/organisms/timetable-edit/timetable-edit.preview.tsx +84 -0
- package/src/components/organisms/timetable-edit/timetable-edit.styles.d.ts +21 -0
- package/src/components/organisms/timetable-edit/timetable-edit.styles.js +25 -0
- package/src/components/organisms/timetable-editor/components/timetable-edit-wrapper.d.ts +12 -0
- package/src/components/organisms/timetable-editor/components/timetable-edit-wrapper.tsx +70 -0
- package/src/components/organisms/timetable-editor/timetable-editor-staff.component.d.ts +8 -0
- package/src/components/organisms/timetable-editor/timetable-editor-staff.component.tsx +72 -0
- package/src/components/organisms/timetable-editor/timetable-editor.component.d.ts +8 -0
- package/src/components/organisms/timetable-editor/timetable-editor.component.tsx +84 -0
- package/src/components/organisms/timetable-editor/timetable-editor.preview.d.ts +2 -0
- package/src/components/organisms/timetable-editor/timetable-editor.preview.tsx +53 -0
- package/src/components/organisms/timetable-editor/timetable-editor.styles.d.ts +8 -0
- package/src/components/organisms/timetable-editor/timetable-editor.styles.js +12 -0
- package/src/components/templates/modal/components/fade-panel.component.d.ts +11 -0
- package/src/components/templates/modal/components/fade-panel.component.tsx +53 -0
- package/src/components/templates/modal/components/fade-panel.styles.d.ts +18 -0
- package/src/components/templates/modal/components/fade-panel.styles.js +19 -0
- package/src/components/templates/modal/modal-preview.styles.d.ts +13 -0
- package/src/components/templates/modal/modal-preview.styles.js +17 -0
- package/src/components/templates/modal/modal.component.d.ts +10 -0
- package/src/components/templates/modal/modal.component.tsx +53 -0
- package/src/components/templates/modal/modal.preview.d.ts +2 -0
- package/src/components/templates/modal/modal.preview.tsx +48 -0
- package/src/components/templates/modal/modal.styles.d.ts +23 -0
- package/src/components/templates/modal/modal.styles.js +28 -0
- package/src/components/templates/popover/components/foreground/foreground.component.d.ts +7 -0
- package/src/components/templates/popover/components/foreground/foreground.component.tsx +15 -0
- package/src/components/templates/popover/components/foreground/foreground.styles.d.ts +12 -0
- package/src/components/templates/popover/components/foreground/foreground.styles.js +17 -0
- package/src/components/templates/popover/components/index.d.ts +4 -0
- package/src/components/templates/popover/components/index.js +5 -0
- package/src/components/templates/popover/components/modal/close/close.component.d.ts +7 -0
- package/src/components/templates/popover/components/modal/close/close.component.tsx +28 -0
- package/src/components/templates/popover/components/modal/close/close.styles.d.ts +10 -0
- package/src/components/templates/popover/components/modal/close/close.styles.js +16 -0
- package/src/components/templates/popover/components/modal/heading/heading.component.d.ts +7 -0
- package/src/components/templates/popover/components/modal/heading/heading.component.tsx +35 -0
- package/src/components/templates/popover/components/modal/heading/heading.styles.d.ts +14 -0
- package/src/components/templates/popover/components/modal/heading/heading.styles.js +19 -0
- package/src/components/templates/popover/components/modal/modal.component.d.ts +12 -0
- package/src/components/templates/popover/components/modal/modal.component.tsx +92 -0
- package/src/components/templates/popover/components/modal/modal.styles.d.ts +19 -0
- package/src/components/templates/popover/components/modal/modal.styles.js +24 -0
- package/src/components/templates/popover/components/modal/scroll-content/scroll-content.component.d.ts +6 -0
- package/src/components/templates/popover/components/modal/scroll-content/scroll-content.component.tsx +20 -0
- package/src/components/templates/popover/components/modal/scroll-content/scroll-content.styles.d.ts +6 -0
- package/src/components/templates/popover/components/modal/scroll-content/scroll-content.styles.js +10 -0
- package/src/components/templates/popover/popover.component.d.ts +11 -0
- package/src/components/templates/popover/popover.component.tsx +67 -0
- package/src/components/templates/popover/popover.preview.d.ts +2 -0
- package/src/components/templates/popover/popover.preview.tsx +99 -0
- package/src/components/templates/popover/popover.styles.d.ts +11 -0
- package/src/components/templates/popover/popover.styles.js +15 -0
- package/src/components/templates/popover-action/popover-action.component.d.ts +12 -0
- package/src/components/templates/popover-action/popover-action.component.tsx +127 -0
- package/src/components/templates/popover-action/popover-action.preview.d.ts +2 -0
- package/src/components/templates/popover-action/popover-action.preview.tsx +142 -0
- package/src/components/templates/popover-action/popover-action.styles.d.ts +28 -0
- package/src/components/templates/popover-action/popover-action.styles.js +33 -0
- package/src/context/loading-dots.context.d.ts +8 -0
- package/src/context/loading-dots.context.tsx +33 -0
- package/src/context/theme.context.d.ts +74 -0
- package/src/context/theme.context.ts +77 -0
- package/src/gradients/main/main.gradient.d.ts +6 -0
- package/src/gradients/main/main.gradient.tsx +29 -0
- package/src/gradients/main/main.styles.d.ts +9 -0
- package/src/gradients/main/main.styles.js +11 -0
- package/src/hooks/use-debounce.d.ts +1 -0
- package/src/hooks/use-debounce.ts +15 -0
- package/src/icons/__snapshots__/icons.test.js.snap +3152 -0
- package/src/icons/crown.icon.d.ts +2 -0
- package/src/icons/crown.icon.tsx +29 -0
- package/src/icons/icons.test.js +328 -0
- package/src/icons/index.d.ts +3 -0
- package/src/icons/index.tsx +16 -0
- package/src/icons/outline/calendar/calendar.icon.d.ts +3 -0
- package/src/icons/outline/calendar/calendar.icon.tsx +24 -0
- package/src/icons/outline/chat/chat.icon.d.ts +3 -0
- package/src/icons/outline/chat/chat.icon.tsx +24 -0
- package/src/icons/outline/chat-alt/chat-alt.icon.d.ts +3 -0
- package/src/icons/outline/chat-alt/chat-alt.icon.tsx +24 -0
- package/src/icons/outline/check-circle/check-circle.icon.d.ts +3 -0
- package/src/icons/outline/check-circle/check-circle.icon.tsx +24 -0
- package/src/icons/outline/chevron-left/chevron-left.icon.d.ts +3 -0
- package/src/icons/outline/chevron-left/chevron-left.icon.tsx +24 -0
- package/src/icons/outline/chevron-right/chevron-right.icon.d.ts +3 -0
- package/src/icons/outline/chevron-right/chevron-right.icon.tsx +24 -0
- package/src/icons/outline/clock/clock.icon.d.ts +3 -0
- package/src/icons/outline/clock/clock.icon.tsx +24 -0
- package/src/icons/outline/cloud-download/cloud-download.icon.d.ts +3 -0
- package/src/icons/outline/cloud-download/cloud-download.icon.tsx +24 -0
- package/src/icons/outline/currency-euro/currency-euro.icon.d.ts +3 -0
- package/src/icons/outline/currency-euro/currency-euro.icon.tsx +24 -0
- package/src/icons/outline/document-text/document-text.icon.d.ts +3 -0
- package/src/icons/outline/document-text/document-text.icon.tsx +21 -0
- package/src/icons/outline/exclamation/exclamation.icon.d.ts +3 -0
- package/src/icons/outline/exclamation/exclamation.icon.tsx +21 -0
- package/src/icons/outline/exclamation-circle/exclamation-circle.icon.d.ts +3 -0
- package/src/icons/outline/exclamation-circle/exclamation-circle.icon.tsx +24 -0
- package/src/icons/outline/eye/eye.icon.d.ts +3 -0
- package/src/icons/outline/eye/eye.icon.tsx +28 -0
- package/src/icons/outline/eye-off/eye-off.icon.d.ts +3 -0
- package/src/icons/outline/eye-off/eye-off.icon.tsx +21 -0
- package/src/icons/outline/filter/filter.icon.d.ts +3 -0
- package/src/icons/outline/filter/filter.icon.tsx +22 -0
- package/src/icons/outline/information-circle/information-circle.icon.d.ts +3 -0
- package/src/icons/outline/information-circle/information-circle.icon.tsx +24 -0
- package/src/icons/outline/logout/logout.icon.d.ts +3 -0
- package/src/icons/outline/logout/logout.icon.tsx +27 -0
- package/src/icons/outline/mail/mail.icon.d.ts +3 -0
- package/src/icons/outline/mail/mail.icon.tsx +24 -0
- package/src/icons/outline/mail-open/mail-open.icon.d.ts +3 -0
- package/src/icons/outline/mail-open/mail-open.icon.tsx +24 -0
- package/src/icons/outline/menu/menu.icon.d.ts +3 -0
- package/src/icons/outline/menu/menu.icon.tsx +24 -0
- package/src/icons/outline/minus-sm/minus-sm.icon.d.ts +3 -0
- package/src/icons/outline/minus-sm/minus-sm.icon.tsx +24 -0
- package/src/icons/outline/office-building/office-building.icon.d.ts +3 -0
- package/src/icons/outline/office-building/office-building.icon.tsx +24 -0
- package/src/icons/outline/outline-default.preview.d.ts +2 -0
- package/src/icons/outline/outline-default.preview.tsx +115 -0
- package/src/icons/outline/outline-grey.preview.d.ts +2 -0
- package/src/icons/outline/outline-grey.preview.tsx +117 -0
- package/src/icons/outline/outline-white.preview.d.ts +2 -0
- package/src/icons/outline/outline-white.preview.tsx +121 -0
- package/src/icons/outline/outline.d.ts +2 -0
- package/src/icons/outline/outline.tsx +146 -0
- package/src/icons/outline/paper-airplane/paper-airplane.icon.d.ts +3 -0
- package/src/icons/outline/paper-airplane/paper-airplane.icon.tsx +30 -0
- package/src/icons/outline/paperclip/paperclip.icon.d.ts +3 -0
- package/src/icons/outline/paperclip/paperclip.icon.tsx +24 -0
- package/src/icons/outline/pencil/pencil.icon.d.ts +3 -0
- package/src/icons/outline/pencil/pencil.icon.tsx +24 -0
- package/src/icons/outline/phone/phone.icon.d.ts +3 -0
- package/src/icons/outline/phone/phone.icon.tsx +24 -0
- package/src/icons/outline/photograph/photograph.icon.d.ts +3 -0
- package/src/icons/outline/photograph/photograph.icon.tsx +24 -0
- package/src/icons/outline/plus/plus.icon.d.ts +3 -0
- package/src/icons/outline/plus/plus.icon.tsx +24 -0
- package/src/icons/outline/plus-sm/plus-sm.icon.d.ts +3 -0
- package/src/icons/outline/plus-sm/plus-sm.icon.tsx +21 -0
- package/src/icons/outline/qrcode/qrcode.icon.d.ts +3 -0
- package/src/icons/outline/qrcode/qrcode.icon.tsx +18 -0
- package/src/icons/outline/refresh/refresh.icon.d.ts +3 -0
- package/src/icons/outline/refresh/refresh.icon.tsx +24 -0
- package/src/icons/outline/search/search.icon.d.ts +3 -0
- package/src/icons/outline/search/search.icon.tsx +24 -0
- package/src/icons/outline/selector/selector.icon.d.ts +3 -0
- package/src/icons/outline/selector/selector.icon.tsx +24 -0
- package/src/icons/outline/share/share.icon.d.ts +3 -0
- package/src/icons/outline/share/share.icon.tsx +24 -0
- package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.d.ts +3 -0
- package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.tsx +24 -0
- package/src/icons/outline/status-online/status-online.icon.d.ts +3 -0
- package/src/icons/outline/status-online/status-online.icon.tsx +24 -0
- package/src/icons/outline/thumb-up/thumb-up.icon.d.ts +3 -0
- package/src/icons/outline/thumb-up/thumb-up.icon.tsx +24 -0
- package/src/icons/outline/trash/trash.icon.d.ts +3 -0
- package/src/icons/outline/trash/trash.icon.tsx +24 -0
- package/src/icons/outline/user/user.icon.d.ts +3 -0
- package/src/icons/outline/user/user.icon.tsx +33 -0
- package/src/icons/outline/user-group/user-group.icon.d.ts +3 -0
- package/src/icons/outline/user-group/user-group.icon.tsx +24 -0
- package/src/icons/outline/users/users.icon.d.ts +3 -0
- package/src/icons/outline/users/users.icon.tsx +24 -0
- package/src/icons/outline/xmark/xmark.icon.d.ts +3 -0
- package/src/icons/outline/xmark/xmark.icon.tsx +24 -0
- package/src/icons/solid/calendar/calendar.icon.d.ts +3 -0
- package/src/icons/solid/calendar/calendar.icon.tsx +21 -0
- package/src/icons/solid/chat/chat.icon.d.ts +3 -0
- package/src/icons/solid/chat/chat.icon.tsx +21 -0
- package/src/icons/solid/chat-alt/chat-alt-solid.icon.d.ts +3 -0
- package/src/icons/solid/chat-alt/chat-alt-solid.icon.tsx +21 -0
- package/src/icons/solid/check-circle/check-circle.icon.d.ts +3 -0
- package/src/icons/solid/check-circle/check-circle.icon.tsx +21 -0
- package/src/icons/solid/chevron-left/chevron-left.icon.d.ts +3 -0
- package/src/icons/solid/chevron-left/chevron-left.icon.tsx +21 -0
- package/src/icons/solid/chevron-right/chevron-right.icon.d.ts +3 -0
- package/src/icons/solid/chevron-right/chevron-right.icon.tsx +21 -0
- package/src/icons/solid/clock/clock-solid.icon.d.ts +3 -0
- package/src/icons/solid/clock/clock-solid.icon.tsx +22 -0
- package/src/icons/solid/cloud-download/cloud-download.icon.d.ts +3 -0
- package/src/icons/solid/cloud-download/cloud-download.icon.tsx +21 -0
- package/src/icons/solid/currency-euro/currency-euro.icon.d.ts +3 -0
- package/src/icons/solid/currency-euro/currency-euro.icon.tsx +21 -0
- package/src/icons/solid/document-text/document-text-solid.icon.d.ts +3 -0
- package/src/icons/solid/document-text/document-text-solid.icon.tsx +22 -0
- package/src/icons/solid/exclamation/exclamation.icon.d.ts +3 -0
- package/src/icons/solid/exclamation/exclamation.icon.tsx +20 -0
- package/src/icons/solid/exclamation-circle/exclamation-circle.icon.d.ts +3 -0
- package/src/icons/solid/exclamation-circle/exclamation-circle.icon.tsx +23 -0
- package/src/icons/solid/eye/eye.icon.d.ts +3 -0
- package/src/icons/solid/eye/eye.icon.tsx +24 -0
- package/src/icons/solid/eye-off/eye-off.icon.d.ts +3 -0
- package/src/icons/solid/eye-off/eye-off.icon.tsx +24 -0
- package/src/icons/solid/filter/filter.icon.d.ts +3 -0
- package/src/icons/solid/filter/filter.icon.tsx +21 -0
- package/src/icons/solid/information-circle/information-circle-solid.icon.d.ts +3 -0
- package/src/icons/solid/information-circle/information-circle-solid.icon.tsx +25 -0
- package/src/icons/solid/logout/logout.icon.d.ts +3 -0
- package/src/icons/solid/logout/logout.icon.tsx +26 -0
- package/src/icons/solid/mail/mail.icon.d.ts +3 -0
- package/src/icons/solid/mail/mail.icon.tsx +23 -0
- package/src/icons/solid/mail-open/mail-open.icon.d.ts +3 -0
- package/src/icons/solid/mail-open/mail-open.icon.tsx +21 -0
- package/src/icons/solid/menu/menu.icon.d.ts +3 -0
- package/src/icons/solid/menu/menu.icon.tsx +33 -0
- package/src/icons/solid/minus-sm/minus-sm.icon.d.ts +3 -0
- package/src/icons/solid/minus-sm/minus-sm.icon.tsx +21 -0
- package/src/icons/solid/office-building/office-building.icon.d.ts +3 -0
- package/src/icons/solid/office-building/office-building.icon.tsx +21 -0
- package/src/icons/solid/paper-airplane/paper-airplane.icon.d.ts +3 -0
- package/src/icons/solid/paper-airplane/paper-airplane.icon.tsx +25 -0
- package/src/icons/solid/paperclip/paperclip.icon.d.ts +3 -0
- package/src/icons/solid/paperclip/paperclip.icon.tsx +21 -0
- package/src/icons/solid/pencil/pencil-solid.icon.d.ts +3 -0
- package/src/icons/solid/pencil/pencil-solid.icon.tsx +24 -0
- package/src/icons/solid/phone/phone-solid.icon.d.ts +3 -0
- package/src/icons/solid/phone/phone-solid.icon.tsx +20 -0
- package/src/icons/solid/photograph/photograph-solid.icon.d.ts +3 -0
- package/src/icons/solid/photograph/photograph-solid.icon.tsx +20 -0
- package/src/icons/solid/plus/plus.icon.d.ts +3 -0
- package/src/icons/solid/plus/plus.icon.tsx +21 -0
- package/src/icons/solid/plus-sm/plus-sm.icon.d.ts +3 -0
- package/src/icons/solid/plus-sm/plus-sm.icon.tsx +21 -0
- package/src/icons/solid/qrcode/qrcode.icon.d.ts +3 -0
- package/src/icons/solid/qrcode/qrcode.icon.tsx +60 -0
- package/src/icons/solid/refresh/refresh-solid.icon.d.ts +3 -0
- package/src/icons/solid/refresh/refresh-solid.icon.tsx +22 -0
- package/src/icons/solid/search/search.icon.d.ts +3 -0
- package/src/icons/solid/search/search.icon.tsx +21 -0
- package/src/icons/solid/selector/selector.icon.d.ts +3 -0
- package/src/icons/solid/selector/selector.icon.tsx +21 -0
- package/src/icons/solid/share/share.icon.d.ts +3 -0
- package/src/icons/solid/share/share.icon.tsx +19 -0
- package/src/icons/solid/sm-view-grid-add/sm-view-grid-add.icon.d.ts +3 -0
- package/src/icons/solid/sm-view-grid-add/sm-view-grid-add.icon.tsx +31 -0
- package/src/icons/solid/solid.d.ts +2 -0
- package/src/icons/solid/solid.preview.d.ts +2 -0
- package/src/icons/solid/solid.preview.tsx +146 -0
- package/src/icons/solid/solid.tsx +141 -0
- package/src/icons/solid/status-online/status-online-solid.icon.d.ts +3 -0
- package/src/icons/solid/status-online/status-online-solid.icon.tsx +22 -0
- package/src/icons/solid/thumb-up/thumb-up.icon.d.ts +3 -0
- package/src/icons/solid/thumb-up/thumb-up.icon.tsx +23 -0
- package/src/icons/solid/trash/trash-solid.icon.d.ts +3 -0
- package/src/icons/solid/trash/trash-solid.icon.tsx +22 -0
- package/src/icons/solid/user/user.icon.d.ts +3 -0
- package/src/icons/solid/user/user.icon.tsx +23 -0
- package/src/icons/solid/user-group/user-group.icon.d.ts +3 -0
- package/src/icons/solid/user-group/user-group.icon.tsx +72 -0
- package/src/icons/solid/users/users-solid.icon.d.ts +3 -0
- package/src/icons/solid/users/users-solid.icon.tsx +57 -0
- package/src/icons/solid/xmark/xmark.icon.d.ts +3 -0
- package/src/icons/solid/xmark/xmark.icon.tsx +21 -0
- package/src/interfaces/icon.interface.d.ts +11 -0
- package/src/interfaces/icon.interface.ts +12 -0
- package/src/models/hex-color.model.d.ts +6 -0
- package/src/models/hex-color.model.ts +25 -0
- package/src/models/hex-color.test.js +20 -0
- package/src/models/initials.model.d.ts +7 -0
- package/src/models/initials.model.ts +32 -0
- package/src/models/initials.test.js +23 -0
- package/src/models/time-slot-record.d.ts +15 -0
- package/src/models/time-slot-record.ts +37 -0
- package/src/models/time-slot-sequence.d.ts +15 -0
- package/src/models/time-slot-sequence.ts +79 -0
- package/src/theme/font/font.d.ts +72 -0
- package/src/theme/font/font.ts +72 -0
- package/src/theme/font/index.d.ts +3 -0
- package/src/theme/font/index.ts +4 -0
- package/src/theme/font/load-fonts.d.ts +1 -0
- package/src/theme/font/load-fonts.ts +10 -0
- package/src/theme/provider/index.d.ts +3 -0
- package/src/theme/provider/index.ts +4 -0
- package/src/theme/provider/parent.theme.d.ts +71 -0
- package/src/theme/provider/parent.theme.ts +73 -0
- package/src/theme/provider/staff-member.theme.d.ts +71 -0
- package/src/theme/provider/staff-member.theme.ts +73 -0
- package/src/theme/responsive/index.d.ts +2 -0
- package/src/theme/responsive/index.ts +17 -0
- package/src/theme/scale/index.d.ts +12 -0
- package/src/theme/scale/index.ts +14 -0
- package/src/types/bubble-alignment.enum.d.ts +4 -0
- package/src/types/bubble-alignment.enum.ts +4 -0
- package/src/types/icontype.type.d.ts +2 -0
- package/src/types/icontype.type.ts +45 -0
- package/src/types/keyboard-types.enum.d.ts +9 -0
- package/src/types/keyboard-types.enum.ts +9 -0
- package/src/types/loading-dots.type.d.ts +8 -0
- package/src/types/loading-dots.type.ts +8 -0
- package/src/types/size.enum.d.ts +5 -0
- package/src/types/size.enum.ts +5 -0
- package/src/types/state.enum.d.ts +7 -0
- package/src/types/state.enum.ts +7 -0
- package/src/types/text-properties.type.d.ts +11 -0
- package/src/types/text-properties.type.ts +12 -0
- package/src/types/timetable-edit.enum.d.ts +5 -0
- package/src/types/timetable-edit.enum.ts +5 -0
- package/src/types/visual-state.enum.d.ts +7 -0
- package/src/types/visual-state.enum.ts +7 -0
- package/src/utilities/color-handler/color-handler.d.ts +4 -0
- package/src/utilities/color-handler/color-handler.ts +74 -0
- package/src/utilities/toddle-datetime/interfaces/duration.interface.d.ts +22 -0
- package/src/utilities/toddle-datetime/interfaces/duration.interface.tsx +23 -0
- package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.d.ts +22 -0
- package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.tsx +25 -0
- package/src/utilities/toddle-datetime/toddle-datetime.class.d.ts +50 -0
- package/src/utilities/toddle-datetime/toddle-datetime.class.tsx +206 -0
- package/src/utilities/toddle-datetime/toddle-datetime.preview.d.ts +2 -0
- package/src/utilities/toddle-datetime/toddle-datetime.preview.tsx +160 -0
- package/src/utilities/toddle-datetime/toddle-datetime.test.js +127 -0
- package/src/utilities/toddle-datetime/types/duration.type.d.ts +4 -0
- package/src/utilities/toddle-datetime/types/duration.type.tsx +6 -0
- package/src/utilities/toddle-datetime/types/toddle-datetime.type.d.ts +5 -0
- package/src/utilities/toddle-datetime/types/toddle-datetime.type.tsx +23 -0
- package/tsconfig.json +13 -0
- package/types/src/components/atoms/avatar/avatar.component.d.ts +11 -0
- package/types/src/components/atoms/avatar/avatar.styles.d.ts +36 -0
- package/types/src/components/atoms/button/button.component.d.ts +9 -0
- package/types/src/components/atoms/button/button.styles.d.ts +20 -0
- package/types/src/components/atoms/cancel-link/cancel-link.component.d.ts +7 -0
- package/types/src/components/atoms/cancel-link/cancel-link.styles.d.ts +17 -0
- package/types/src/components/atoms/check-switch/check-switch.component.d.ts +7 -0
- package/types/src/components/atoms/check-switch/check-switch.styles.d.ts +30 -0
- package/types/src/components/atoms/checkbox/checkbox.component.d.ts +8 -0
- package/types/src/components/atoms/checkbox/checkbox.styles.d.ts +32 -0
- package/types/src/components/atoms/child-list-item/child-list-item.component.d.ts +19 -0
- package/types/src/components/atoms/child-list-item/child-list-item.styles.d.ts +68 -0
- package/types/src/components/atoms/contact-item/contact-item.component.d.ts +10 -0
- package/types/src/components/atoms/contact-item/contact-item.styles.d.ts +24 -0
- package/types/src/components/atoms/filter-tab/filter-tab.component.d.ts +9 -0
- package/types/src/components/atoms/filter-tab/filter-tab.styles.d.ts +61 -0
- package/types/src/components/atoms/form-actions/form-action.component.d.ts +7 -0
- package/types/src/components/atoms/form-actions/form-action.styles.d.ts +14 -0
- package/types/src/components/atoms/image-bubble/image-bubble.component.d.ts +9 -0
- package/types/src/components/atoms/image-bubble/image-bubble.styles.d.ts +27 -0
- package/types/src/components/atoms/info/info.component.d.ts +7 -0
- package/types/src/components/atoms/info/info.styles.d.ts +24 -0
- package/types/src/components/atoms/pill/pill.component.d.ts +8 -0
- package/types/src/components/atoms/pill/pill.styles.d.ts +24 -0
- package/types/src/components/atoms/popover/components/backdrop/backdrop.component.d.ts +6 -0
- package/types/src/components/atoms/popover/components/backdrop/backdrop.styles.d.ts +11 -0
- package/types/src/components/atoms/popover/components/foreground/foreground.component.d.ts +7 -0
- package/types/src/components/atoms/popover/components/foreground/foreground.styles.d.ts +12 -0
- package/types/src/components/atoms/popover/components/index.d.ts +4 -0
- package/types/src/components/atoms/popover/components/modal/close/close.component.d.ts +7 -0
- package/types/src/components/atoms/popover/components/modal/close/close.styles.d.ts +9 -0
- package/types/src/components/atoms/popover/components/modal/heading/heading.component.d.ts +7 -0
- package/types/src/components/atoms/popover/components/modal/heading/heading.styles.d.ts +22 -0
- package/types/src/components/atoms/popover/components/modal/modal.component.d.ts +11 -0
- package/types/src/components/atoms/popover/components/modal/modal.styles.d.ts +18 -0
- package/types/src/components/atoms/popover/components/modal/scroll-content/scroll-content.component.d.ts +6 -0
- package/types/src/components/atoms/popover/components/modal/scroll-content/scroll-content.styles.d.ts +6 -0
- package/types/src/components/atoms/popover/popover.component.d.ts +10 -0
- package/types/src/components/atoms/popover/popover.styles.d.ts +8 -0
- package/types/src/components/atoms/pressable-icon/pressable-icon.component.d.ts +9 -0
- package/types/src/components/atoms/pressable-icon/pressable-icon.styles.d.ts +17 -0
- package/types/src/components/atoms/quick-filter/quick-filter.component.d.ts +11 -0
- package/types/src/components/atoms/quick-filter/quick-filter.styles.d.ts +34 -0
- package/types/src/components/atoms/select-list-item/select-list-item.component.d.ts +10 -0
- package/types/src/components/atoms/select-list-item/select-list-item.styles.d.ts +37 -0
- package/types/src/components/atoms/snackbar/snackbar.component.d.ts +8 -0
- package/types/src/components/atoms/snackbar/snackbar.styles.d.ts +50 -0
- package/types/src/components/atoms/tag/tag.component.d.ts +13 -0
- package/types/src/components/atoms/tag/tag.styles.d.ts +16 -0
- package/types/src/components/atoms/text-bubble/text-bubble.component.d.ts +10 -0
- package/types/src/components/atoms/text-bubble/text-bubble.styles.d.ts +62 -0
- package/types/src/components/atoms/text-input/text-input.component.d.ts +9 -0
- package/types/src/components/atoms/text-input/text-input.styles.d.ts +21 -0
- package/types/src/components/atoms/time-tracker/time-tracker.component.d.ts +8 -0
- package/types/src/components/atoms/time-tracker/time-tracker.styles.d.ts +25 -0
- package/types/src/components/atoms/wide-button/wide-button.component.d.ts +8 -0
- package/types/src/components/atoms/wide-button/wide-button.styles.d.ts +17 -0
- package/types/src/context/theme.context.d.ts +46 -0
- package/types/src/gradients/main/main.gradient.d.ts +2 -0
- package/types/src/gradients/main/main.styles.d.ts +7 -0
- package/types/src/icons/outline/chevron-right/chevron-right.icon.d.ts +3 -0
- package/types/src/icons/outline/cross/cross.icon.d.ts +3 -0
- package/types/src/icons/outline/filter/filter.icon.d.ts +3 -0
- package/types/src/models/initials.model.d.ts +7 -0
- package/types/src/theme/font/font.d.ts +72 -0
- package/types/src/theme/font/index.d.ts +3 -0
- package/types/src/theme/font/load-fonts.d.ts +1 -0
- package/types/src/theme/provider/index.d.ts +3 -0
- package/types/src/theme/provider/parent.theme.d.ts +43 -0
- package/types/src/theme/provider/staff-member.theme.d.ts +43 -0
- package/types/src/theme/scale/index.d.ts +12 -0
- package/types/src/types/bubble-alignment.enum.d.ts +4 -0
- package/types/src/types/icontype.type.d.ts +3 -0
- package/types/src/types/keyboard-types.enum.d.ts +9 -0
- package/types/src/types/size.enum.d.ts +5 -0
- package/types/src/types/visual-state.enum.d.ts +6 -0
- package/build/export.js +0 -10328
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconSVGProps} from '../../../interfaces/icon.interface';
|
|
6
|
+
import {HexColor} from '../../../models/hex-color.model';
|
|
7
|
+
import {Scale} from '../../../theme/scale/index';
|
|
8
|
+
|
|
9
|
+
export const UserGroupIcon = ({color, size = Scale.l}: IconSVGProps) => {
|
|
10
|
+
const context = useContext(ThemeCtx);
|
|
11
|
+
return (
|
|
12
|
+
<Svg width={size} height={size} viewBox="0 0 20 18" fill="none">
|
|
13
|
+
<Path
|
|
14
|
+
fill={color ? HexColor.of(color).toString() : context.colors.main['0']}
|
|
15
|
+
d="M13.3 3.90001C13.3 5.80539 11.8225 7.35001 9.99998 7.35001C8.17743 7.35001 6.69998 5.80539 6.69998 3.90001C6.69998 1.99463 8.17743 0.450012 9.99998 0.450012C11.8225 0.450012 13.3 1.99463 13.3 3.90001Z"
|
|
16
|
+
/>
|
|
17
|
+
<Path
|
|
18
|
+
fill={color ? HexColor.of(color).toString() : context.colors.main['0']}
|
|
19
|
+
d="M18.8 6.20001C18.8 7.47027 17.815 8.50001 16.6 8.50001C15.3849 8.50001 14.4 7.47027 14.4 6.20001C14.4 4.92976 15.3849 3.90001 16.6 3.90001C17.815 3.90001 18.8 4.92976 18.8 6.20001Z"
|
|
20
|
+
/>
|
|
21
|
+
<Path
|
|
22
|
+
fill={color ? HexColor.of(color).toString() : context.colors.main['0']}
|
|
23
|
+
d="M14.4 14.25C14.4 11.7095 12.43 9.65001 9.99998 9.65001C7.56992 9.65001 5.59998 11.7095 5.59998 14.25V17.7H14.4V14.25Z"
|
|
24
|
+
/>
|
|
25
|
+
<Path
|
|
26
|
+
fill={color ? HexColor.of(color).toString() : context.colors.main['0']}
|
|
27
|
+
d="M5.59998 6.20001C5.59998 7.47027 4.615 8.50001 3.39998 8.50001C2.18495 8.50001 1.19998 7.47027 1.19998 6.20001C1.19998 4.92976 2.18495 3.90001 3.39998 3.90001C4.615 3.90001 5.59998 4.92976 5.59998 6.20001Z"
|
|
28
|
+
/>
|
|
29
|
+
<Path
|
|
30
|
+
fill={color ? HexColor.of(color).toString() : context.colors.main['0']}
|
|
31
|
+
d="M16.6 17.7V14.25C16.6 13.0377 16.3009 11.8985 15.7758 10.9085C16.0392 10.8377 16.3154 10.8 16.6 10.8C18.4225 10.8 19.9 12.3446 19.9 14.25V17.7H16.6Z"
|
|
32
|
+
/>
|
|
33
|
+
<Path
|
|
34
|
+
fill={color ? HexColor.of(color).toString() : context.colors.main['0']}
|
|
35
|
+
d="M4.22416 10.9085C3.69901 11.8985 3.39998 13.0377 3.39998 14.25V17.7H0.0999756V14.25C0.0999756 12.3446 1.57744 10.8 3.39998 10.8C3.68456 10.8 3.96072 10.8377 4.22416 10.9085Z"
|
|
36
|
+
/>
|
|
37
|
+
</Svg>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
<svg
|
|
42
|
+
width="20"
|
|
43
|
+
height="18"
|
|
44
|
+
viewBox="0 0 20 18"
|
|
45
|
+
fill="none"
|
|
46
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
47
|
+
>
|
|
48
|
+
<path
|
|
49
|
+
d="M13.3 3.90001C13.3 5.80539 11.8225 7.35001 9.99998 7.35001C8.17743 7.35001 6.69998 5.80539 6.69998 3.90001C6.69998 1.99463 8.17743 0.450012 9.99998 0.450012C11.8225 0.450012 13.3 1.99463 13.3 3.90001Z"
|
|
50
|
+
fill="#515F6C"
|
|
51
|
+
/>
|
|
52
|
+
<path
|
|
53
|
+
d="M18.8 6.20001C18.8 7.47027 17.815 8.50001 16.6 8.50001C15.3849 8.50001 14.4 7.47027 14.4 6.20001C14.4 4.92976 15.3849 3.90001 16.6 3.90001C17.815 3.90001 18.8 4.92976 18.8 6.20001Z"
|
|
54
|
+
fill="#515F6C"
|
|
55
|
+
/>
|
|
56
|
+
<path
|
|
57
|
+
d="M14.4 14.25C14.4 11.7095 12.43 9.65001 9.99998 9.65001C7.56992 9.65001 5.59998 11.7095 5.59998 14.25V17.7H14.4V14.25Z"
|
|
58
|
+
fill="#515F6C"
|
|
59
|
+
/>
|
|
60
|
+
<path
|
|
61
|
+
d="M5.59998 6.20001C5.59998 7.47027 4.615 8.50001 3.39998 8.50001C2.18495 8.50001 1.19998 7.47027 1.19998 6.20001C1.19998 4.92976 2.18495 3.90001 3.39998 3.90001C4.615 3.90001 5.59998 4.92976 5.59998 6.20001Z"
|
|
62
|
+
fill="#515F6C"
|
|
63
|
+
/>
|
|
64
|
+
<path
|
|
65
|
+
d="M16.6 17.7V14.25C16.6 13.0377 16.3009 11.8985 15.7758 10.9085C16.0392 10.8377 16.3154 10.8 16.6 10.8C18.4225 10.8 19.9 12.3446 19.9 14.25V17.7H16.6Z"
|
|
66
|
+
fill="#515F6C"
|
|
67
|
+
/>
|
|
68
|
+
<path
|
|
69
|
+
d="M4.22416 10.9085C3.69901 11.8985 3.39998 13.0377 3.39998 14.25V17.7H0.0999756V14.25C0.0999756 12.3446 1.57744 10.8 3.39998 10.8C3.68456 10.8 3.96072 10.8377 4.22416 10.9085Z"
|
|
70
|
+
fill="#515F6C"
|
|
71
|
+
/>
|
|
72
|
+
</svg>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconSVGProps} from '../../../interfaces/icon.interface';
|
|
6
|
+
import {HexColor} from '../../../models/hex-color.model';
|
|
7
|
+
import {Scale} from '../../../theme/scale/index';
|
|
8
|
+
|
|
9
|
+
export const UsersIcon = ({color, size = Scale.l}: IconSVGProps) => {
|
|
10
|
+
const Context = useContext(ThemeCtx);
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<Svg width={size} height={size} viewBox="0 0 20 17" fill="none">
|
|
14
|
+
<Path
|
|
15
|
+
fill={color ? HexColor.of(color).toString() : Context.colors.main['0']}
|
|
16
|
+
d="M8.89997 3.90001C8.89997 5.80539 7.42251 7.35001 5.59998 7.35001C3.77744 7.35001 2.29998 5.80539 2.29998 3.90001C2.29998 1.99463 3.77744 0.450012 5.59998 0.450012C7.42251 0.450012 8.89997 1.99463 8.89997 3.90001Z"
|
|
17
|
+
/>
|
|
18
|
+
<Path
|
|
19
|
+
fill={color ? HexColor.of(color).toString() : Context.colors.main['0']}
|
|
20
|
+
d="M17.7 3.90001C17.7 5.80539 16.2225 7.35001 14.4 7.35001C12.5774 7.35001 11.1 5.80539 11.1 3.90001C11.1 1.99463 12.5774 0.450012 14.4 0.450012C16.2225 0.450012 17.7 1.99463 17.7 3.90001Z"
|
|
21
|
+
/>
|
|
22
|
+
<Path
|
|
23
|
+
fill={color ? HexColor.of(color).toString() : Context.colors.main['0']}
|
|
24
|
+
d="M13.222 16.55C13.2734 16.1744 13.3 15.7905 13.3 15.4C13.3 13.5196 12.6833 11.7897 11.6497 10.4194C12.4587 9.93009 13.3981 9.65001 14.4 9.65001C17.4376 9.65001 19.9 12.2244 19.9 15.4V16.55H13.222Z"
|
|
25
|
+
/>
|
|
26
|
+
<Path
|
|
27
|
+
fill={color ? HexColor.of(color).toString() : Context.colors.main['0']}
|
|
28
|
+
d="M5.59998 9.65001C8.63754 9.65001 11.1 12.2244 11.1 15.4V16.55H0.0999756V15.4C0.0999756 12.2244 2.56241 9.65001 5.59998 9.65001Z"
|
|
29
|
+
/>
|
|
30
|
+
</Svg>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
<svg
|
|
35
|
+
width="20"
|
|
36
|
+
height="17"
|
|
37
|
+
viewBox="0 0 20 17"
|
|
38
|
+
fill="none"
|
|
39
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
40
|
+
>
|
|
41
|
+
<path
|
|
42
|
+
d="M8.89997 3.90001C8.89997 5.80539 7.42251 7.35001 5.59998 7.35001C3.77744 7.35001 2.29998 5.80539 2.29998 3.90001C2.29998 1.99463 3.77744 0.450012 5.59998 0.450012C7.42251 0.450012 8.89997 1.99463 8.89997 3.90001Z"
|
|
43
|
+
fill="#515F6C"
|
|
44
|
+
/>
|
|
45
|
+
<path
|
|
46
|
+
d="M17.7 3.90001C17.7 5.80539 16.2225 7.35001 14.4 7.35001C12.5774 7.35001 11.1 5.80539 11.1 3.90001C11.1 1.99463 12.5774 0.450012 14.4 0.450012C16.2225 0.450012 17.7 1.99463 17.7 3.90001Z"
|
|
47
|
+
fill="#515F6C"
|
|
48
|
+
/>
|
|
49
|
+
<path
|
|
50
|
+
d="M13.222 16.55C13.2734 16.1744 13.3 15.7905 13.3 15.4C13.3 13.5196 12.6833 11.7897 11.6497 10.4194C12.4587 9.93009 13.3981 9.65001 14.4 9.65001C17.4376 9.65001 19.9 12.2244 19.9 15.4V16.55H13.222Z"
|
|
51
|
+
fill="#515F6C"
|
|
52
|
+
/>
|
|
53
|
+
<path
|
|
54
|
+
d="M5.59998 9.65001C8.63754 9.65001 11.1 12.2244 11.1 15.4V16.55H0.0999756V15.4C0.0999756 12.2244 2.56241 9.65001 5.59998 9.65001Z"
|
|
55
|
+
fill="#515F6C"
|
|
56
|
+
/>
|
|
57
|
+
</svg>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {IconSVGProps} from '../../../interfaces/icon.interface';
|
|
6
|
+
import {HexColor} from '../../../models/hex-color.model';
|
|
7
|
+
import {Scale} from '../../../theme/scale/index';
|
|
8
|
+
|
|
9
|
+
export const XMarkIcon = ({color, size = Scale.l}: IconSVGProps) => {
|
|
10
|
+
const context = useContext(ThemeCtx);
|
|
11
|
+
return (
|
|
12
|
+
<Svg width={size} height={size} viewBox="0 0 14 14" fill="none">
|
|
13
|
+
<Path
|
|
14
|
+
fill={color ? HexColor.of(color).toString() : context.colors.main['0']}
|
|
15
|
+
fillRule="evenodd"
|
|
16
|
+
clipRule="evenodd"
|
|
17
|
+
d="M0.722207 0.722176C1.15178 0.2926 1.84827 0.2926 2.27784 0.722176L7.00002 5.44436L11.7222 0.722176C12.1518 0.2926 12.8483 0.2926 13.2778 0.722176C13.7074 1.15175 13.7074 1.84823 13.2778 2.27781L8.55566 6.99999L13.2778 11.7222C13.7074 12.1518 13.7074 12.8482 13.2778 13.2778C12.8483 13.7074 12.1518 13.7074 11.7222 13.2778L7.00002 8.55563L2.27784 13.2778C1.84827 13.7074 1.15178 13.7074 0.722207 13.2778C0.29263 12.8482 0.29263 12.1518 0.722207 11.7222L5.44439 6.99999L0.722207 2.27781C0.29263 1.84823 0.29263 1.15175 0.722207 0.722176Z"
|
|
18
|
+
/>
|
|
19
|
+
</Svg>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IconStyleType, IconNameType } from '../types/icontype.type';
|
|
2
|
+
export interface IconSVGProps {
|
|
3
|
+
color?: string | null;
|
|
4
|
+
size?: number;
|
|
5
|
+
}
|
|
6
|
+
export interface IconNameInterface extends IconSVGProps {
|
|
7
|
+
name: IconNameType;
|
|
8
|
+
}
|
|
9
|
+
export interface IconInterface extends IconNameInterface {
|
|
10
|
+
style: IconStyleType;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {IconStyleType, IconNameType} from '../types/icontype.type';
|
|
2
|
+
|
|
3
|
+
export interface IconSVGProps {
|
|
4
|
+
color?: string | null;
|
|
5
|
+
size?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface IconNameInterface extends IconSVGProps {
|
|
8
|
+
name: IconNameType;
|
|
9
|
+
}
|
|
10
|
+
export interface IconInterface extends IconNameInterface {
|
|
11
|
+
style: IconStyleType;
|
|
12
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export class HexColor {
|
|
2
|
+
private readonly color: string;
|
|
3
|
+
|
|
4
|
+
private constructor(value: string) {
|
|
5
|
+
if (value.charAt(0) !== '#') {
|
|
6
|
+
throw new Error('A hex color needs to start with #');
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
if (value.length !== 7) {
|
|
10
|
+
throw new Error(
|
|
11
|
+
"A hex color needs to contain 7 chars, we don't support shorthand values."
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
this.color = value;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
public static of(color: string): HexColor {
|
|
19
|
+
return new HexColor(color);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
public toString(): string {
|
|
23
|
+
return this.color;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {HexColor} from './hex-color.model';
|
|
2
|
+
|
|
3
|
+
describe('invalid hex-color', () => {
|
|
4
|
+
const cases = [['#333'], ['aaaaaaa']];
|
|
5
|
+
|
|
6
|
+
test.each(cases)('given %p returns an Error', (value) => {
|
|
7
|
+
expect(() => {
|
|
8
|
+
HexColor.of(value);
|
|
9
|
+
}).toThrow(Error);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
describe('valid hex-color', () => {
|
|
14
|
+
const cases = [['#333333'], ['#FFFFFF']];
|
|
15
|
+
|
|
16
|
+
test.each(cases)('given %p returns a HexColor', (value) => {
|
|
17
|
+
const result = HexColor.of(value);
|
|
18
|
+
expect(result instanceof HexColor).toBe(true);
|
|
19
|
+
});
|
|
20
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export class Initials {
|
|
2
|
+
private readonly initials: string;
|
|
3
|
+
|
|
4
|
+
private constructor(value: string) {
|
|
5
|
+
if (value.length !== 2) {
|
|
6
|
+
throw new Error('An initial can only contain 2 characters');
|
|
7
|
+
}
|
|
8
|
+
this.initials = value;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public static for(first: string, second: string): Initials {
|
|
12
|
+
let longestWord = second.split(' ').reduce(function (longest, currentWord) {
|
|
13
|
+
return currentWord.length >= longest.length ? currentWord : longest;
|
|
14
|
+
}, '');
|
|
15
|
+
|
|
16
|
+
return new Initials(this.safeLetter(first) + this.safeLetter(longestWord));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
private static safeLetter(word: string): string {
|
|
20
|
+
for (let i = 0; i < word.length; i++) {
|
|
21
|
+
if (word.charAt(0).match(/[a-z]/i)) {
|
|
22
|
+
return word.charAt(0).toUpperCase();
|
|
23
|
+
}
|
|
24
|
+
word = word.slice(1);
|
|
25
|
+
}
|
|
26
|
+
return '?';
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public toString(): string {
|
|
30
|
+
return this.initials;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {Initials} from './initials.model';
|
|
2
|
+
|
|
3
|
+
describe('initials', () => {
|
|
4
|
+
const cases = [
|
|
5
|
+
['Jane', 'Doe', 'JD'],
|
|
6
|
+
['Patrick', "O'Neill", 'PO'],
|
|
7
|
+
['Eric', 'Ogden Ellis', 'EE'],
|
|
8
|
+
['Dennis', 'Roth', 'DR'],
|
|
9
|
+
['Angela', 'Hackshaw', 'AH'],
|
|
10
|
+
['Jack', 'Coxon Hanwell', 'JH'],
|
|
11
|
+
['Fay', 'Simmons', 'FS'],
|
|
12
|
+
['Charlotte', 'Brooks', 'CB'],
|
|
13
|
+
["''''", "''''", '??'],
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
test.each(cases)(
|
|
17
|
+
'given %p and %p as arguments, returns %p',
|
|
18
|
+
(first, second, expectedResult) => {
|
|
19
|
+
const result = Initials.for(first, second);
|
|
20
|
+
expect(result.toString()).toEqual(expectedResult);
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface TimeSlotRecordJSON {
|
|
2
|
+
in: string;
|
|
3
|
+
out: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class TimeSlotRecord {
|
|
6
|
+
start: string;
|
|
7
|
+
end?: string;
|
|
8
|
+
private constructor();
|
|
9
|
+
static fromJson(json: TimeSlotRecordJSON): TimeSlotRecord;
|
|
10
|
+
static fromEmpty(): TimeSlotRecord;
|
|
11
|
+
static fromRecord(seq: TimeSlotRecord): TimeSlotRecord;
|
|
12
|
+
isEmpty(): boolean;
|
|
13
|
+
isComplete(): boolean;
|
|
14
|
+
toJson(): TimeSlotRecordJSON;
|
|
15
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface TimeSlotRecordJSON {
|
|
2
|
+
in: string;
|
|
3
|
+
out: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export class TimeSlotRecord {
|
|
7
|
+
private constructor(public start: string, public end?: string) {}
|
|
8
|
+
|
|
9
|
+
static fromJson(json: TimeSlotRecordJSON): TimeSlotRecord {
|
|
10
|
+
// add validation here if needed
|
|
11
|
+
return new TimeSlotRecord(json.in, json.out);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
static fromEmpty(): TimeSlotRecord {
|
|
15
|
+
// add validation here if needed
|
|
16
|
+
return new TimeSlotRecord('', '');
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static fromRecord(seq: TimeSlotRecord): TimeSlotRecord {
|
|
20
|
+
return new TimeSlotRecord(seq.start, seq.end);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
isEmpty(): boolean {
|
|
24
|
+
return this.start == '' && this.end == '';
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
isComplete(): boolean {
|
|
28
|
+
return this.start !== '' && this.end !== '';
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
toJson(): TimeSlotRecordJSON {
|
|
32
|
+
return {
|
|
33
|
+
in: this.start,
|
|
34
|
+
out: this.end ? this.end : '',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TimeSlotRecord, TimeSlotRecordJSON } from './time-slot-record';
|
|
2
|
+
export declare class TimeSlotSequence {
|
|
3
|
+
readonly first: TimeSlotRecord;
|
|
4
|
+
readonly second: TimeSlotRecord;
|
|
5
|
+
readonly third: TimeSlotRecord;
|
|
6
|
+
private constructor();
|
|
7
|
+
static fromAttendanceRecordArray(arr: TimeSlotRecord[]): TimeSlotSequence;
|
|
8
|
+
static fromTimeSlotRecordJSONArray(arr: TimeSlotRecordJSON[]): TimeSlotSequence;
|
|
9
|
+
static fromEmpty(): TimeSlotSequence;
|
|
10
|
+
asArray(): TimeSlotRecord[];
|
|
11
|
+
toJson(): TimeSlotRecord[];
|
|
12
|
+
addToNextSlot(checkInOutTime: string): void;
|
|
13
|
+
isComplete(): boolean;
|
|
14
|
+
isEmpty(): boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import {TimeSlotRecord, TimeSlotRecordJSON} from './time-slot-record';
|
|
2
|
+
|
|
3
|
+
export class TimeSlotSequence {
|
|
4
|
+
private constructor(
|
|
5
|
+
public readonly first: TimeSlotRecord,
|
|
6
|
+
public readonly second: TimeSlotRecord,
|
|
7
|
+
public readonly third: TimeSlotRecord
|
|
8
|
+
) {}
|
|
9
|
+
|
|
10
|
+
static fromAttendanceRecordArray(arr: TimeSlotRecord[]): TimeSlotSequence {
|
|
11
|
+
return new TimeSlotSequence(
|
|
12
|
+
arr[0] ? arr[0] : TimeSlotRecord.fromEmpty(),
|
|
13
|
+
arr[1] ? arr[1] : TimeSlotRecord.fromEmpty(),
|
|
14
|
+
arr[2] ? arr[2] : TimeSlotRecord.fromEmpty()
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static fromTimeSlotRecordJSONArray(
|
|
19
|
+
arr: TimeSlotRecordJSON[]
|
|
20
|
+
): TimeSlotSequence {
|
|
21
|
+
return new TimeSlotSequence(
|
|
22
|
+
TimeSlotRecord.fromJson(
|
|
23
|
+
arr[0] ? arr[0] : TimeSlotRecord.fromEmpty().toJson()
|
|
24
|
+
),
|
|
25
|
+
TimeSlotRecord.fromJson(
|
|
26
|
+
arr[1] ? arr[1] : TimeSlotRecord.fromEmpty().toJson()
|
|
27
|
+
),
|
|
28
|
+
TimeSlotRecord.fromJson(
|
|
29
|
+
arr[2] ? arr[2] : TimeSlotRecord.fromEmpty().toJson()
|
|
30
|
+
)
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
static fromEmpty(): TimeSlotSequence {
|
|
35
|
+
return new TimeSlotSequence(
|
|
36
|
+
TimeSlotRecord.fromEmpty(),
|
|
37
|
+
TimeSlotRecord.fromEmpty(),
|
|
38
|
+
TimeSlotRecord.fromEmpty()
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
asArray(): TimeSlotRecord[] {
|
|
43
|
+
return [this.first, this.second, this.third];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
toJson(): TimeSlotRecord[] {
|
|
47
|
+
return [this.first, this.second, this.third];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
addToNextSlot(checkInOutTime: string) {
|
|
51
|
+
if (this.first.start === '') {
|
|
52
|
+
this.first.start = checkInOutTime;
|
|
53
|
+
} else if (this.first.end === undefined || this.first.end === '') {
|
|
54
|
+
this.first.end = checkInOutTime;
|
|
55
|
+
} else if (this.second.start === '') {
|
|
56
|
+
this.second.start = checkInOutTime;
|
|
57
|
+
} else if (this.second.end === undefined || this.second.end === '') {
|
|
58
|
+
this.second.end = checkInOutTime;
|
|
59
|
+
} else if (this.third.start === '') {
|
|
60
|
+
this.third.start = checkInOutTime;
|
|
61
|
+
} else if (this.third.end === undefined || this.third.end === '') {
|
|
62
|
+
this.third.end = checkInOutTime;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
isComplete(): boolean {
|
|
67
|
+
return (
|
|
68
|
+
this.first.isComplete() &&
|
|
69
|
+
this.second.isComplete() &&
|
|
70
|
+
this.third.isComplete()
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
isEmpty(): boolean {
|
|
75
|
+
return (
|
|
76
|
+
this.first.isEmpty() && this.second.isEmpty() && this.third.isEmpty()
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export declare const Font: {
|
|
2
|
+
huge: {
|
|
3
|
+
fontFamily: string;
|
|
4
|
+
fontSize: number;
|
|
5
|
+
lineHeight: number;
|
|
6
|
+
};
|
|
7
|
+
hugeBold: {
|
|
8
|
+
fontFamily: string;
|
|
9
|
+
fontSize: number;
|
|
10
|
+
lineHeight: number;
|
|
11
|
+
};
|
|
12
|
+
big: {
|
|
13
|
+
fontFamily: string;
|
|
14
|
+
fontSize: number;
|
|
15
|
+
lineHeight: number;
|
|
16
|
+
};
|
|
17
|
+
bigBold: {
|
|
18
|
+
fontFamily: string;
|
|
19
|
+
fontSize: number;
|
|
20
|
+
lineHeight: number;
|
|
21
|
+
};
|
|
22
|
+
large: {
|
|
23
|
+
fontFamily: string;
|
|
24
|
+
fontSize: number;
|
|
25
|
+
lineHeight: number;
|
|
26
|
+
};
|
|
27
|
+
largeBold: {
|
|
28
|
+
fontFamily: string;
|
|
29
|
+
fontSize: number;
|
|
30
|
+
lineHeight: number;
|
|
31
|
+
};
|
|
32
|
+
medium: {
|
|
33
|
+
fontFamily: string;
|
|
34
|
+
fontSize: number;
|
|
35
|
+
lineHeight: number;
|
|
36
|
+
};
|
|
37
|
+
mediumBold: {
|
|
38
|
+
fontFamily: string;
|
|
39
|
+
fontSize: number;
|
|
40
|
+
lineHeight: number;
|
|
41
|
+
};
|
|
42
|
+
regular: {
|
|
43
|
+
fontFamily: string;
|
|
44
|
+
fontSize: number;
|
|
45
|
+
lineHeight: number;
|
|
46
|
+
};
|
|
47
|
+
regularBold: {
|
|
48
|
+
fontFamily: string;
|
|
49
|
+
fontSize: number;
|
|
50
|
+
lineHeight: number;
|
|
51
|
+
};
|
|
52
|
+
small: {
|
|
53
|
+
fontFamily: string;
|
|
54
|
+
fontSize: number;
|
|
55
|
+
lineHeight: number;
|
|
56
|
+
};
|
|
57
|
+
smallBold: {
|
|
58
|
+
fontFamily: string;
|
|
59
|
+
fontSize: number;
|
|
60
|
+
lineHeight: number;
|
|
61
|
+
};
|
|
62
|
+
tiny: {
|
|
63
|
+
fontFamily: string;
|
|
64
|
+
fontSize: number;
|
|
65
|
+
lineHeight: number;
|
|
66
|
+
};
|
|
67
|
+
tinyBold: {
|
|
68
|
+
fontFamily: string;
|
|
69
|
+
fontSize: number;
|
|
70
|
+
lineHeight: number;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export const Font = {
|
|
2
|
+
huge: {
|
|
3
|
+
fontFamily: 'SourceSansPro',
|
|
4
|
+
fontSize: 38,
|
|
5
|
+
lineHeight: 47.8,
|
|
6
|
+
},
|
|
7
|
+
hugeBold: {
|
|
8
|
+
fontFamily: 'SourceSansProBold',
|
|
9
|
+
fontSize: 38,
|
|
10
|
+
lineHeight: 47.8,
|
|
11
|
+
},
|
|
12
|
+
big: {
|
|
13
|
+
fontFamily: 'SourceSansPro',
|
|
14
|
+
fontSize: 24,
|
|
15
|
+
lineHeight: 30.2,
|
|
16
|
+
},
|
|
17
|
+
bigBold: {
|
|
18
|
+
fontFamily: 'SourceSansProBold',
|
|
19
|
+
fontSize: 24,
|
|
20
|
+
lineHeight: 30.2,
|
|
21
|
+
},
|
|
22
|
+
large: {
|
|
23
|
+
fontFamily: 'SourceSansPro',
|
|
24
|
+
fontSize: 18,
|
|
25
|
+
lineHeight: 22.6,
|
|
26
|
+
},
|
|
27
|
+
largeBold: {
|
|
28
|
+
fontFamily: 'SourceSansProBold',
|
|
29
|
+
fontSize: 18,
|
|
30
|
+
lineHeight: 22.6,
|
|
31
|
+
},
|
|
32
|
+
medium: {
|
|
33
|
+
fontFamily: 'SourceSansPro',
|
|
34
|
+
fontSize: 16,
|
|
35
|
+
lineHeight: 22.4,
|
|
36
|
+
},
|
|
37
|
+
mediumBold: {
|
|
38
|
+
fontFamily: 'SourceSansProBold',
|
|
39
|
+
fontSize: 16,
|
|
40
|
+
lineHeight: 22.4,
|
|
41
|
+
},
|
|
42
|
+
regular: {
|
|
43
|
+
fontFamily: 'Montserrat',
|
|
44
|
+
fontSize: 14,
|
|
45
|
+
lineHeight: 22.4,
|
|
46
|
+
},
|
|
47
|
+
regularBold: {
|
|
48
|
+
fontFamily: 'MontserratBold',
|
|
49
|
+
fontSize: 14,
|
|
50
|
+
lineHeight: 22.4,
|
|
51
|
+
},
|
|
52
|
+
small: {
|
|
53
|
+
fontFamily: 'Montserrat',
|
|
54
|
+
fontSize: 13,
|
|
55
|
+
lineHeight: 20.4,
|
|
56
|
+
},
|
|
57
|
+
smallBold: {
|
|
58
|
+
fontFamily: 'MontserratBold',
|
|
59
|
+
fontSize: 13,
|
|
60
|
+
lineHeight: 20.4,
|
|
61
|
+
},
|
|
62
|
+
tiny: {
|
|
63
|
+
fontFamily: 'Montserrat',
|
|
64
|
+
fontSize: 11,
|
|
65
|
+
lineHeight: 17.9,
|
|
66
|
+
},
|
|
67
|
+
tinyBold: {
|
|
68
|
+
fontFamily: 'MontserratBold',
|
|
69
|
+
fontSize: 11,
|
|
70
|
+
lineHeight: 17.9,
|
|
71
|
+
},
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function LoadFonts(): [boolean, Error];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {useFonts} from 'expo-font';
|
|
2
|
+
|
|
3
|
+
export function LoadFonts() {
|
|
4
|
+
return useFonts({
|
|
5
|
+
Montserrat: require('../../../assets/fonts/montserrat/regular.ttf'),
|
|
6
|
+
MontserratBold: require('../../../assets/fonts/montserrat/bold.ttf'),
|
|
7
|
+
SourceSansPro: require('../../../assets/fonts/source-sans-pro/regular.ttf'),
|
|
8
|
+
SourceSansProBold: require('../../../assets/fonts/source-sans-pro/bold.ttf'),
|
|
9
|
+
});
|
|
10
|
+
}
|