jamespot-react-components 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +80 -0
- package/.eslintrc.js +15 -0
- package/.github/pull_request_template.md +22 -0
- package/.github/workflows/ci.yml +62 -0
- package/.github/workflows/create-stable-branch.yml +80 -0
- package/.github/workflows/deploy-dev-branches.yml +40 -0
- package/.history/.eslintignore_20211116140451 +13 -0
- package/.history/.eslintignore_20211116140517 +80 -0
- package/.history/.github/workflows/ci_20211103152807.yml +50 -0
- package/.history/.github/workflows/ci_20211117114643.yml +50 -0
- package/.history/.github/workflows/ci_20211117114650.yml +55 -0
- package/.history/.github/workflows/ci_20211117152126.yml +55 -0
- package/.history/.github/workflows/ci_20211117153805.yml +58 -0
- package/.history/.github/workflows/ci_20211117153810.yml +58 -0
- package/.history/.github/workflows/ci_20211117154145.yml +59 -0
- package/.history/.github/workflows/ci_20211117154153.yml +59 -0
- package/.history/.github/workflows/ci_20211117155208.yml +58 -0
- package/.history/.github/workflows/ci_20211117155212.yml +59 -0
- package/.history/.github/workflows/ci_20211117155228.yml +59 -0
- package/.history/.github/workflows/ci_20211117155451.yml +59 -0
- package/.history/.github/workflows/ci_20211117155505.yml +59 -0
- package/.history/.github/workflows/ci_20211117155509.yml +59 -0
- package/.history/.github/workflows/ci_20211117160304.yml +59 -0
- package/.history/.github/workflows/ci_20211117161702.yml +59 -0
- package/.history/.github/workflows/ci_20211117162805.yml +59 -0
- package/.history/.github/workflows/ci_20211117164809.yml +60 -0
- package/.history/.github/workflows/ci_20211117170417.yml +60 -0
- package/.history/.gitignore_20211117155121 +82 -0
- package/.history/.husky/pre-commit_20211116154612 +4 -0
- package/.history/.husky/pre-commit_20211116155720 +4 -0
- package/.history/.prettierignore_20211103152807 +84 -0
- package/.history/.prettierignore_20211116140533 +80 -0
- package/.history/.prettierrc_20211103143655.json +11 -0
- package/.history/.prettierrc_20211103144104.json +10 -0
- package/.history/.prettierrc_20211116140542.json +11 -0
- package/.history/.prettierrc_20211116173732.json +10 -0
- package/.history/.storybook/main_20211109144835.js +22 -0
- package/.history/babel.config_20211116141826.js +14 -0
- package/.history/babel.config_20211117104141.js +15 -0
- package/.history/babel.config_20211117164455.js +15 -0
- package/.history/build/src/components/JRCHref/JRCHref.d_20211109164627.ts +20 -0
- package/.history/build/src/components/JRCHref/JRCHref.d_20211125144654.ts +20 -0
- package/.history/build/src/components/JRCHref/JRCHref.d_20211125144702.ts +20 -0
- package/.history/build/src/components/JRCHref/JRCHref.d_20211125144724.ts +20 -0
- package/.history/build/src/components/JRCHref/JRCHref.d_20211125144732.ts +20 -0
- package/.history/build/src/components/JRCHref/JRCHref.d_20211125144754.ts +20 -0
- package/.history/externals.d_20211108160127.ts +5 -0
- package/.history/externals.d_20211108160133.ts +5 -0
- package/.history/externals.d_20211108160237.ts +5 -0
- package/.history/externals.d_20211108160252.ts +6 -0
- package/.history/externals.d_20211108160343.ts +6 -0
- package/.history/externals.d_20211108163234.ts +5 -0
- package/.history/index.d_20210119091943.ts +0 -0
- package/.history/index.d_20210119092051.ts +4 -0
- package/.history/jest.config_20211112091917.js +15 -0
- package/.history/jest.config_20211117164520.js +16 -0
- package/.history/jest.setup_20210114075959.ts +3 -0
- package/.history/jest.setup_20210429114103.ts +1 -0
- package/.history/package-lock_20211109153645.json +73806 -0
- package/.history/package_20211103143741.json +117 -0
- package/.history/package_20211108155048.json +117 -0
- package/.history/package_20211108160557.json +117 -0
- package/.history/package_20211109113710.json +116 -0
- package/.history/package_20211109113749.json +114 -0
- package/.history/package_20211109113753.json +113 -0
- package/.history/package_20211109113758.json +111 -0
- package/.history/package_20211109142830.json +111 -0
- package/.history/package_20211109142919.json +111 -0
- package/.history/package_20211109145908.json +111 -0
- package/.history/package_20211109145937.json +111 -0
- package/.history/package_20211109150036.json +109 -0
- package/.history/package_20211109151446.json +112 -0
- package/.history/package_20211109151756.json +112 -0
- package/.history/package_20211109151802.json +112 -0
- package/.history/package_20211109151807.json +112 -0
- package/.history/package_20211109151838.json +112 -0
- package/.history/package_20211109153435.json +117 -0
- package/.history/package_20211109160825.json +117 -0
- package/.history/package_20211109161532.json +118 -0
- package/.history/package_20211109161554.json +118 -0
- package/.history/package_20211109161940.json +117 -0
- package/.history/package_20211109162020.json +118 -0
- package/.history/package_20211109162510.json +118 -0
- package/.history/package_20211109162529.json +118 -0
- package/.history/package_20211109162543.json +118 -0
- package/.history/package_20211116140927.json +115 -0
- package/.history/package_20211116140929.json +115 -0
- package/.history/package_20211116140948.json +117 -0
- package/.history/package_20211116140951.json +117 -0
- package/.history/package_20211116141010.json +117 -0
- package/.history/package_20211116141729.json +119 -0
- package/.history/package_20211116143239.json +119 -0
- package/.history/package_20211116155648.json +131 -0
- package/.history/package_20211117114725.json +132 -0
- package/.history/package_20211117164402.json +132 -0
- package/.history/package_20211117164404.json +132 -0
- package/.history/package_20211117164407.json +132 -0
- package/.history/src/assets/check_20210114075959.svg +4 -0
- package/.history/src/assets/check_20210511153044.svg +4 -0
- package/.history/src/assets/check_20210601141216.svg +4 -0
- package/.history/src/assets/check_20210601141237.svg +4 -0
- package/.history/src/assets/loader_20210114075959.svg +32 -0
- package/.history/src/assets/loader_20210511153051.svg +32 -0
- package/.history/src/assets/loader_20210511153109.svg +32 -0
- package/.history/src/components/Common/DashedFocusBorder_20211103152807.tsx +20 -0
- package/.history/src/components/Common/DashedFocusBorder_20211116141741.tsx +20 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427112859.tsx +0 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427112927.tsx +38 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427113127.tsx +65 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427113139.tsx +56 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427113151.tsx +55 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427113152.tsx +55 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427113157.tsx +55 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427113206.tsx +55 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427113223.tsx +54 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427113224.tsx +54 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427113228.tsx +54 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427113235.tsx +54 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427113311.tsx +54 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427113341.tsx +54 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427113735.tsx +57 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427113751.tsx +58 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427113812.tsx +60 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427114028.tsx +69 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427114251.tsx +71 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427114321.tsx +73 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427114332.tsx +73 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427114504.tsx +77 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427114532.tsx +83 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427114603.tsx +90 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427114621.tsx +89 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427114633.tsx +89 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427114646.tsx +89 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427114759.tsx +98 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427114838.tsx +98 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427114841.tsx +98 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427115036.tsx +99 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427115156.tsx +90 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427115329.tsx +99 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427115339.tsx +99 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427115443.tsx +101 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427115633.tsx +102 -0
- package/.history/src/components/Form/Input/Demo/Demo_20210427115821.tsx +102 -0
- package/.history/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity_20210909111158.tsx +25 -0
- package/.history/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity_20210909112623.tsx +27 -0
- package/.history/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocomplete_20210426165817.tsx +72 -0
- package/.history/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocomplete_20210429114237.tsx +71 -0
- package/.history/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox_20211019160603.tsx +253 -0
- package/.history/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox_20211019160617.tsx +253 -0
- package/.history/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox_20211019160632.tsx +307 -0
- package/.history/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox_20211019160746.tsx +307 -0
- package/.history/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox_20211116142837.tsx +263 -0
- package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210309111210.tsx +86 -0
- package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210405114706.tsx +81 -0
- package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429114357.tsx +81 -0
- package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429114358.tsx +81 -0
- package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429154857.tsx +81 -0
- package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429154904.tsx +97 -0
- package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429154910.tsx +97 -0
- package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429154918.tsx +99 -0
- package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429154929.tsx +103 -0
- package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429154941.tsx +99 -0
- package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429155002.tsx +98 -0
- package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429155402.tsx +99 -0
- package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210415092917.tsx +43 -0
- package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210429114401.tsx +43 -0
- package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210429154559.tsx +43 -0
- package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210429154606.tsx +59 -0
- package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210429154624.tsx +54 -0
- package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210429154643.tsx +56 -0
- package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210429154717.tsx +56 -0
- package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210429154755.tsx +59 -0
- package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210415092917.tsx +42 -0
- package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429114419.tsx +42 -0
- package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429114440.tsx +42 -0
- package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429114446.tsx +42 -0
- package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429154420.tsx +42 -0
- package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429154430.tsx +58 -0
- package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429154442.tsx +60 -0
- package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429154459.tsx +55 -0
- package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429154521.tsx +57 -0
- package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429154736.tsx +58 -0
- package/.history/src/components/Form/Input/JRCFormDateTime/JRCFormDateTime_20211116142816.tsx +1095 -0
- package/.history/src/components/Form/Input/JRCFormDateTime/JRCFormDateTime_20211116142819.tsx +1095 -0
- package/.history/src/components/Form/Input/JRCFormDateTime/JRCFormDateTime_20211116142825.tsx +1095 -0
- package/.history/src/components/Form/Input/JRCFormDateTime/JRCFormDateTime_20211117094739.tsx +1095 -0
- package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210114075959.tsx +40 -0
- package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429114458.tsx +40 -0
- package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154308.tsx +33 -0
- package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154318.tsx +51 -0
- package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154329.tsx +53 -0
- package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154337.tsx +56 -0
- package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154348.tsx +56 -0
- package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154359.tsx +56 -0
- package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154401.tsx +56 -0
- package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154403.tsx +56 -0
- package/.history/src/components/Form/Input/JRCFormFieldRender_20210114075959.tsx +97 -0
- package/.history/src/components/Form/Input/JRCFormFieldRender_20210405114648.tsx +97 -0
- package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210114075959.tsx +11 -0
- package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429114512.tsx +11 -0
- package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429154111.tsx +13 -0
- package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429154126.tsx +13 -0
- package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429154142.tsx +14 -0
- package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429154146.tsx +15 -0
- package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429154155.tsx +15 -0
- package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429154158.tsx +20 -0
- package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429154225.tsx +20 -0
- package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile_20211116141848.tsx +149 -0
- package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile_20211116141920.tsx +148 -0
- package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile_20211116141935.tsx +148 -0
- package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile_20211117094122.tsx +148 -0
- package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile_20211117094131.tsx +148 -0
- package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile_20211117094147.tsx +149 -0
- package/.history/src/components/Form/Input/JRCFormNumber/JRCFormNumber_20210114075959.tsx +42 -0
- package/.history/src/components/Form/Input/JRCFormNumber/JRCFormNumber_20210429114516.tsx +42 -0
- package/.history/src/components/Form/Input/JRCFormNumber/JRCFormNumber_20210429153918.tsx +35 -0
- package/.history/src/components/Form/Input/JRCFormNumber/JRCFormNumber_20210429153924.tsx +53 -0
- package/.history/src/components/Form/Input/JRCFormNumber/JRCFormNumber_20210429153959.tsx +55 -0
- package/.history/src/components/Form/Input/JRCFormNumber/JRCFormNumber_20210429154029.tsx +58 -0
- package/.history/src/components/Form/Input/JRCFormNumber/JRCFormNumber_20210429154035.tsx +58 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio.stories_20210114075959.tsx +31 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio.stories_20210412103504.tsx +45 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210429114520.tsx +124 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210429153726.tsx +124 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210429153733.tsx +124 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210429153800.tsx +136 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210429153834.tsx +138 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210429153837.tsx +137 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210429153848.tsx +137 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210511171834.tsx +124 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210511171842.tsx +124 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210518150404.tsx +124 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210518150412.tsx +124 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210518150815.tsx +125 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210518150824.tsx +125 -0
- package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210518150834.tsx +125 -0
- package/.history/src/components/Form/Input/JRCFormRange/JRCFormRange_20211116141948.tsx +106 -0
- package/.history/src/components/Form/Input/JRCFormRange/JRCFormRange_20211116141950.tsx +106 -0
- package/.history/src/components/Form/Input/JRCFormSelect/JRCFormSelect_20211116142012.tsx +350 -0
- package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210114075959.tsx +38 -0
- package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429114541.tsx +38 -0
- package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152714.tsx +38 -0
- package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152735.tsx +53 -0
- package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152747.tsx +48 -0
- package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152757.tsx +49 -0
- package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152806.tsx +51 -0
- package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152816.tsx +54 -0
- package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152834.tsx +54 -0
- package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152841.tsx +54 -0
- package/.history/src/components/Form/Input/JRCFormTextEditor/JRCFormTextEditor_20211116142024.tsx +35 -0
- package/.history/src/components/Form/Input/JRCFormTextarea/JRCFormTextarea_20211116142028.tsx +65 -0
- package/.history/src/components/Form/Input/JRCStyledInput_20210309111210.tsx +94 -0
- package/.history/src/components/Form/Input/JRCStyledInput_20210412103822.tsx +98 -0
- package/.history/src/components/Form/Input/JRCStyledInput_20210412103824.tsx +97 -0
- package/.history/src/components/Form/Input/ReduxFormControls_20211116142058.ts +141 -0
- package/.history/src/components/Form/Input/ReduxFormControls_20211116142800.ts +141 -0
- package/.history/src/components/JRCAlert/JRCArlert.stories_20211103152807.tsx +60 -0
- package/.history/src/components/JRCAlert/JRCArlert.stories_20211116142119.tsx +61 -0
- package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211103152807.tsx +28 -0
- package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211109115138.tsx +27 -0
- package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211109115145.tsx +26 -0
- package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211109115204.tsx +28 -0
- package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211116142132.tsx +27 -0
- package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211116142134.tsx +26 -0
- package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211116142151.tsx +28 -0
- package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211116142200.tsx +29 -0
- package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211116142204.tsx +28 -0
- package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211116142212.tsx +29 -0
- package/.history/src/components/JRCAvatar/JRCAvatar.test_20211103152807.tsx +21 -0
- package/.history/src/components/JRCAvatar/JRCAvatar.test_20211116142226.tsx +22 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215104018.tsx +59 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215104101.tsx +60 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215104122.tsx +60 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215104143.tsx +60 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215104218.tsx +62 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215104246.tsx +62 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215104354.tsx +60 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215104416.tsx +60 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215104419.tsx +60 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215104701.tsx +62 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215104713.tsx +63 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215104957.tsx +66 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215105005.tsx +66 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215105009.tsx +65 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215105026.tsx +65 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215105309.tsx +61 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215105312.tsx +64 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215105315.tsx +64 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215105433.tsx +64 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215105442.tsx +62 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215110444.tsx +63 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215111145.tsx +64 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215111233.tsx +65 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211215111240.tsx +64 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211220162840.tsx +62 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211220162848.tsx +62 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211220164211.tsx +62 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211220164215.tsx +62 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211221115746.tsx +64 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211221115750.tsx +64 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211221120044.tsx +64 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211221120047.tsx +64 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211221120048.tsx +63 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211221120052.tsx +63 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211221120055.tsx +62 -0
- package/.history/src/components/JRCAvatar/JRCAvatar_20211221120153.tsx +62 -0
- package/.history/src/components/JRCButton/JRCButton.stories_20210114075959.tsx +65 -0
- package/.history/src/components/JRCButton/JRCButton.stories_20210324153346.tsx +78 -0
- package/.history/src/components/JRCButton/JRCButton_20211103141623.tsx +135 -0
- package/.history/src/components/JRCButton/JRCButton_20211116142244.tsx +117 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412155338.tsx +36 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412155438.tsx +36 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412155441.tsx +37 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412155446.tsx +37 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412155459.tsx +19 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412155511.tsx +17 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161017.tsx +18 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161020.tsx +16 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161032.tsx +16 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161148.tsx +16 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161438.tsx +37 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161447.tsx +37 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161456.tsx +41 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161507.tsx +42 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161516.tsx +43 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161820.tsx +43 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164337.tsx +45 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164427.tsx +45 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164441.tsx +45 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164446.tsx +45 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164501.tsx +47 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164510.tsx +52 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164528.tsx +76 -0
- package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164607.tsx +77 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412155318.tsx +0 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412155347.tsx +0 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412155413.tsx +6 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412155414.tsx +6 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412155428.tsx +4 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412155603.tsx +7 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412155631.tsx +9 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412155633.tsx +16 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412155635.tsx +17 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412155649.tsx +41 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412155703.tsx +42 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412155728.tsx +42 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412160204.tsx +42 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412160431.tsx +42 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412160437.tsx +42 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412160801.tsx +46 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412160814.tsx +46 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412160938.tsx +46 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412160947.tsx +47 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161128.tsx +47 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161130.tsx +47 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161135.tsx +47 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161208.tsx +48 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161228.tsx +49 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161331.tsx +55 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161347.tsx +55 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161407.tsx +55 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161410.tsx +55 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161418.tsx +55 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161426.tsx +36 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161539.tsx +30 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161544.tsx +29 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161848.tsx +41 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161859.tsx +50 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161913.tsx +50 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161916.tsx +52 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161938.tsx +53 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412161947.tsx +42 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412162119.tsx +39 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412162128.tsx +40 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412162141.tsx +42 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412162145.tsx +42 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412162154.tsx +42 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412162238.tsx +42 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412162406.tsx +42 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412162457.tsx +43 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412162500.tsx +43 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412162504.tsx +43 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412162612.tsx +43 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412162650.tsx +54 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412162705.tsx +54 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412162819.tsx +55 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412162845.tsx +55 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412163202.tsx +57 -0
- package/.history/src/components/JRCCarousel/JRCCarousel_20210412163241.tsx +55 -0
- package/.history/src/components/JRCDropDown/JRCDropDown.stories_20211103152807.tsx +28 -0
- package/.history/src/components/JRCDropDown/JRCDropDown.stories_20211116142250.tsx +26 -0
- package/.history/src/components/JRCDropDown/JRCDropDown.stories_20211116142251.tsx +25 -0
- package/.history/src/components/JRCDropDown/JRCDropDown_20210629085002.tsx +155 -0
- package/.history/src/components/JRCDropDown/JRCDropDown_20211103142200.tsx +157 -0
- package/.history/src/components/JRCDropDown/JRCDropDown_20211103142204.tsx +157 -0
- package/.history/src/components/JRCDropDown/JRCDropDown_20211103142213.tsx +157 -0
- package/.history/src/components/JRCDropDown/JRCDropDown_20211103142216.tsx +157 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110213.tsx +0 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110227.tsx +18 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110234.tsx +16 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110245.tsx +16 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110305.tsx +18 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110310.tsx +15 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110337.tsx +15 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110354.tsx +15 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110413.tsx +13 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110418.tsx +13 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110708.tsx +14 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110715.tsx +13 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110722.tsx +13 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110736.tsx +13 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110740.tsx +13 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110753.tsx +15 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110757.tsx +16 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110813.tsx +16 -0
- package/.history/src/components/JRCError/JRCError.stories_20210406110818.tsx +15 -0
- package/.history/src/components/JRCError/JRCError_20210406110115.tsx +0 -0
- package/.history/src/components/JRCError/JRCError_20210406110136.tsx +3 -0
- package/.history/src/components/JRCError/JRCError_20210406110148.tsx +5 -0
- package/.history/src/components/JRCError/JRCError_20210406110154.tsx +5 -0
- package/.history/src/components/JRCError/JRCError_20210406110322.tsx +5 -0
- package/.history/src/components/JRCError/JRCError_20210406110459.tsx +5 -0
- package/.history/src/components/JRCError/JRCError_20210406110521.tsx +9 -0
- package/.history/src/components/JRCError/JRCError_20210406110526.tsx +8 -0
- package/.history/src/components/JRCError/JRCError_20210406110540.tsx +10 -0
- package/.history/src/components/JRCError/JRCError_20210406110544.tsx +10 -0
- package/.history/src/components/JRCError/JRCError_20210406110610.tsx +14 -0
- package/.history/src/components/JRCError/JRCError_20210406110613.tsx +14 -0
- package/.history/src/components/JRCError/JRCError_20210406110624.tsx +15 -0
- package/.history/src/components/JRCError/JRCError_20210406110731.tsx +15 -0
- package/.history/src/components/JRCHref/JRCHref.stories_20211116142303.tsx +29 -0
- package/.history/src/components/JRCHref/JRCHref_20210630101506.tsx +32 -0
- package/.history/src/components/JRCHref/JRCHref_20210630101558.tsx +32 -0
- package/.history/src/components/JRCHref/JRCHref_20210630101601.tsx +32 -0
- package/.history/src/components/JRCHref/JRCHref_20210630101616.tsx +32 -0
- package/.history/src/components/JRCHref/JRCHref_20210630101625.tsx +31 -0
- package/.history/src/components/JRCHref/JRCHref_20210630101634.tsx +31 -0
- package/.history/src/components/JRCHref/JRCHref_20210630101645.tsx +30 -0
- package/.history/src/components/JRCHref/JRCHref_20210630101738.tsx +29 -0
- package/.history/src/components/JRCHref/JRCHref_20210630101742.tsx +28 -0
- package/.history/src/components/JRCIcon/JRCIcon.stories_20210114075959.tsx +1045 -0
- package/.history/src/components/JRCIcon/JRCIcon.stories_20210330160522.tsx +1049 -0
- package/.history/src/components/JRCIcon/JRCIcon.stories_20210330160557.tsx +1049 -0
- package/.history/src/components/JRCIcon/JRCIcon.stories_20210330165104.tsx +1000 -0
- package/.history/src/components/JRCIcon/JRCIcon.stories_20210330165154.tsx +1002 -0
- package/.history/src/components/JRCIcon/JRCIcon.stories_20210330165225.tsx +1167 -0
- package/.history/src/components/JRCIcon/JRCIcon.stories_20210330165243.tsx +1167 -0
- package/.history/src/components/JRCIcon/JRCIcon.stories_20210330165244.tsx +1167 -0
- package/.history/src/components/JRCIcon/JRCIcon.stories_20210330165340.tsx +1020 -0
- package/.history/src/components/JRCIconButton/JRCIconButton_20211102105335.tsx +86 -0
- package/.history/src/components/JRCIconButton/JRCIconButton_20211103141204.tsx +97 -0
- package/.history/src/components/JRCIconButton/JRCIconButton_20211103141514.tsx +97 -0
- package/.history/src/components/JRCIconButton/JRCIconButton_20211103141535.tsx +97 -0
- package/.history/src/components/JRCIconButton/JRCIconButton_20211103141607.tsx +97 -0
- package/.history/src/components/JRCImg/JRCImg_20211103152807.tsx +57 -0
- package/.history/src/components/JRCImg/JRCImg_20211215104339.tsx +58 -0
- package/.history/src/components/JRCImg/JRCImg_20211215104433.tsx +58 -0
- package/.history/src/components/JRCList/JRCListMockData.stories_20211116141848.tsx +118 -0
- package/.history/src/components/JRCList/JRCListMockData.stories_20211116142710.tsx +119 -0
- package/.history/src/components/JRCList/JRCList_20211116141848.tsx +180 -0
- package/.history/src/components/JRCList/JRCList_20211116142725.tsx +172 -0
- package/.history/src/components/JRCList/JRCList_20211116142728.tsx +172 -0
- package/.history/src/components/JRCList/JRCList_20211116142730.tsx +171 -0
- package/.history/src/components/JRCList/JRCList_20211116142734.tsx +171 -0
- package/.history/src/components/JRCList/JRCList_20211116142738.tsx +171 -0
- package/.history/src/components/JRCList/JRCList_20211116142744.tsx +171 -0
- package/.history/src/components/JRCList/JRCList_20211116142747.tsx +172 -0
- package/.history/src/components/JRCList/JRCList_20211116142748.tsx +171 -0
- package/.history/src/components/JRCMenu/JRCMenu.stories_20211103152807.tsx +28 -0
- package/.history/src/components/JRCMenu/JRCMenu.stories_20211116142657.tsx +29 -0
- package/.history/src/components/JRCMenu/JRCMenu_20211103142113.tsx +88 -0
- package/.history/src/components/JRCMenu/JRCMenu_20211103142232.tsx +88 -0
- package/.history/src/components/JRCModal/JRCModal_20211103142136.tsx +142 -0
- package/.history/src/components/JRCModal/JRCModal_20211103142246.tsx +142 -0
- package/.history/src/components/JRCModalImg/JRCModalImg_20210824103034.tsx +148 -0
- package/.history/src/components/JRCModalImg/JRCModalImg_20211103142306.tsx +159 -0
- package/.history/src/components/JRCPagination/JRCPagination.stories_20211116142641.tsx +65 -0
- package/.history/src/components/JRCPagination/JRCPagination.stories_20211116142646.tsx +66 -0
- package/.history/src/components/JRCPagination/JRCPagination_20211103142342.tsx +219 -0
- package/.history/src/components/JRCTag/JRCTag_20211116142631.tsx +149 -0
- package/.history/src/components/JRCThemeProvider/theme-reset_20210615082115.css +254 -0
- package/.history/src/components/JRCThemeProvider/theme-reset_20210615143930.css +253 -0
- package/.history/src/components/JRCTooltip/JRCTooltip.stories_20211103143919.tsx +85 -0
- package/.history/src/components/JRCTooltip/JRCTooltip.stories_20211103144205.tsx +85 -0
- package/.history/src/components/JRCTooltip/JRCTooltip.stories_20211116142619.tsx +86 -0
- package/.history/src/components/JRCTypography/JRCTypography.test_20211103152807.tsx +43 -0
- package/.history/src/components/JRCTypography/JRCTypography.test_20211116142608.tsx +43 -0
- package/.history/src/hooks/UseDidMountEffect_20211103152807.tsx +12 -0
- package/.history/src/hooks/UseDidMountEffect_20211116142601.tsx +12 -0
- package/.history/src/index_20210330171346.tsx +145 -0
- package/.history/src/index_20210330171430.tsx +150 -0
- package/.history/src/index_20210406174244.tsx +151 -0
- package/.history/src/index_20210406174248.tsx +151 -0
- package/.history/src/index_20210406174255.tsx +152 -0
- package/.history/src/index_20210406174317.tsx +152 -0
- package/.history/src/index_20210406174329.tsx +153 -0
- package/.history/src/index_20210412153458.tsx +155 -0
- package/.history/src/index_20210412153503.tsx +155 -0
- package/.history/src/index_20210427113335.tsx +162 -0
- package/.history/src/index_20210427113346.tsx +162 -0
- package/.history/src/index_20210427113356.tsx +163 -0
- package/.history/src/jest/svgTransform_20211103152807.js +9 -0
- package/.history/src/jest/svgTransform_20211117164503.js +10 -0
- package/.history/src/storybook/StorybookContainer/StorybookContainer_20210114075959.scss +22 -0
- package/.history/src/storybook/StorybookContainer/StorybookContainer_20210330170040.scss +23 -0
- package/.history/src/storybook/decorators_20210114075959.tsx +17 -0
- package/.history/src/storybook/decorators_20210430082612.tsx +17 -0
- package/.history/src/storybook/decorators_20210430082629.tsx +13 -0
- package/.history/src/storybook/decorators_20210430082644.tsx +13 -0
- package/.history/src/styles/theme_20211123150650.tsx +167 -0
- package/.history/src/styles/theme_20211123150708.tsx +168 -0
- package/.history/src/styles/theme_20211123150807.tsx +168 -0
- package/.history/src/styles/theme_20211123150905.tsx +180 -0
- package/.history/src/styles/theme_20211123150921.tsx +175 -0
- package/.history/src/styles/theme_20211123150928.tsx +179 -0
- package/.history/src/styles/theme_20211123151003.tsx +178 -0
- package/.history/src/styles/theme_20211123151005.tsx +178 -0
- package/.history/src/styles/theme_20211123151037.tsx +177 -0
- package/.history/src/styles/theme_20211123151145.tsx +179 -0
- package/.history/src/styles/theme_20211123151303.tsx +179 -0
- package/.history/src/styles/theme_20211123151327.tsx +179 -0
- package/.history/src/styles/theme_20211123151413.tsx +170 -0
- package/.history/src/styles/theme_20211123151416.tsx +169 -0
- package/.history/src/styles/theme_20211123151438.tsx +178 -0
- package/.history/src/styles/theme_20211123151505.tsx +169 -0
- package/.history/src/styles/theme_20211123151654.tsx +179 -0
- package/.history/src/styles/theme_20211123151847.tsx +177 -0
- package/.history/src/styles/theme_20211123151924.tsx +173 -0
- package/.history/src/styles/theme_20211123151946.tsx +173 -0
- package/.history/src/styles/theme_20211123151951.tsx +175 -0
- package/.history/src/styles/theme_20211123151959.tsx +175 -0
- package/.history/src/styles/theme_20211123153945.tsx +173 -0
- package/.history/src/styles/theme_20211123153953.tsx +175 -0
- package/.history/src/styles/theme_20211123154113.tsx +175 -0
- package/.history/src/styles/theme_20211125142741.tsx +166 -0
- package/.history/src/styles/utils_20211116141848.tsx +220 -0
- package/.history/src/styles/utils_20211116142330.tsx +220 -0
- package/.history/src/styles/utils_20211116142340.tsx +220 -0
- package/.history/src/styles/utils_20211116142354.tsx +221 -0
- package/.history/src/styles/utils_20211116142407.tsx +222 -0
- package/.history/src/types/react-table-config.d_20211103152807.ts +128 -0
- package/.history/src/types/react-table-config.d_20211116142449.ts +129 -0
- package/.history/src/types/react-table-config.d_20211116142537.ts +127 -0
- package/.history/src/types/react-table-config.d_20211116142544.ts +124 -0
- package/.history/src/types/react-table-config.d_20211116142551.ts +122 -0
- package/.history/src/types/react-table-config.d_20211116142914.ts +123 -0
- package/.history/src/types/react-table-config.d_20211116142918.ts +122 -0
- package/.history/src/types/react-table-config.d_20211116142923.ts +121 -0
- package/.history/src/types/react-table-config.d_20211116142926.ts +120 -0
- package/.history/src/types/react-table-config.d_20211116142929.ts +119 -0
- package/.history/src/types/react-table-config.d_20211116142931.ts +118 -0
- package/.history/src/types/react-table-config.d_20211116142934.ts +117 -0
- package/.history/src/types/react-table-config.d_20211116142935.ts +116 -0
- package/.history/src/types/react-table-config.d_20211116142938.ts +115 -0
- package/.history/src/types/react-table-config.d_20211116142943.ts +114 -0
- package/.history/src/types/react-table-config.d_20211116143050.ts +123 -0
- package/.history/src/utils/test-utils_20211103152807.tsx +40 -0
- package/.history/src/utils/test-utils_20211116142526.tsx +40 -0
- package/.history/src/utils/test-utils_20211116143351.tsx +40 -0
- package/.history/src/utils/test-utils_20211117095711.tsx +40 -0
- package/.history/src/utils/test-utils_20211117095720.tsx +41 -0
- package/.history/tsconfig_20210929171235.json +16 -0
- package/.history/tsconfig_20210929171551.json +16 -0
- package/.history/tsconfig_20210929171715.json +17 -0
- package/.history/tsconfig_20210929171832.json +17 -0
- package/.history/webpack.config_20211109143806.js +70 -0
- package/.history/webpack.config_20211109144159.js +66 -0
- package/.history/webpack.config_20211109144211.js +67 -0
- package/.history/webpack.config_20211109144446.js +67 -0
- package/.history/webpack.config_20211109144537.js +70 -0
- package/.history/webpack.config_20211109144549.js +70 -0
- package/.history/webpack.config_20211109153132.js +69 -0
- package/.history/webpack.config_20211109153209.js +71 -0
- package/.history/webpack.config_20211109153224.js +72 -0
- package/.history/webpack.config_20211109162125.js +72 -0
- package/.history/webpack.config_20211117164435.js +69 -0
- package/.history/webpack.config_20211117164440.js +70 -0
- package/.husky/pre-commit +4 -0
- package/.prettierignore +80 -0
- package/.prettierrc.json +11 -0
- package/.storybook/StorybookContainer/StorybookContainer.css +9 -0
- package/.storybook/StorybookContainer/StorybookContainer.tsx +39 -0
- package/.storybook/assets/css/font-awesome/fonts/FontAwesome.otf +0 -0
- package/.storybook/assets/css/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- package/.storybook/assets/css/font-awesome/fonts/fontawesome-webfont.svg +2671 -0
- package/.storybook/assets/css/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- package/.storybook/assets/css/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- package/.storybook/assets/css/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
- package/.storybook/assets/css/fonts/fontSpot/fonts/fontSpot.eot +0 -0
- package/.storybook/assets/css/fonts/fontSpot/fonts/fontSpot.json +4629 -0
- package/.storybook/assets/css/fonts/fontSpot/fonts/fontSpot.svg +216 -0
- package/.storybook/assets/css/fonts/fontSpot/fonts/fontSpot.ttf +0 -0
- package/.storybook/assets/css/fonts/fontSpot/fonts/fontSpot.woff +0 -0
- package/.storybook/assets/imagecache/120x120/user/1234.png +0 -0
- package/.storybook/assets/imagecache/160x160/user/1234.png +0 -0
- package/.storybook/assets/imagecache/200x200/user/1234.png +0 -0
- package/.storybook/assets/imagecache/24x24/user/1234.png +0 -0
- package/.storybook/assets/imagecache/32x32/user/1234.png +0 -0
- package/.storybook/assets/imagecache/40x40/user/1234.png +0 -0
- package/.storybook/assets/imagecache/48x48/user/11.png +0 -0
- package/.storybook/assets/imagecache/48x48/user/12.png +0 -0
- package/.storybook/assets/imagecache/48x48/user/1234.png +0 -0
- package/.storybook/assets/imagecache/48x48/user/2.png +0 -0
- package/.storybook/assets/imagecache/48x48/user/20.png +0 -0
- package/.storybook/assets/imagecache/48x48/user/23.png +0 -0
- package/.storybook/assets/imagecache/48x48/user/25.png +0 -0
- package/.storybook/assets/imagecache/48x48/user/8.png +0 -0
- package/.storybook/assets/imagecache/64x64/user/1234.png +0 -0
- package/.storybook/assets/imagecache/80x80/user/1234.png +0 -0
- package/.storybook/assets/imagecache/fitx700/fileArticle/245.png +0 -0
- package/.storybook/main.js +9 -0
- package/.storybook/preview-head.html +8 -0
- package/.storybook/preview.js +21 -0
- package/.storybook/webpack.config.js +25 -0
- package/.vscode/settings.json +9 -0
- package/README.md +58 -0
- package/babel.config.js +15 -0
- package/build/assets/check.e04c3374d2c43bd03d5c52b37639d90c.svg +4 -0
- package/build/assets/x.609ccec1e6c6c10c412a1ab325258b42.svg +1 -0
- package/build/jamespot-react-components.js +1385 -0
- package/build/jamespot-react-components.js.LICENSE.txt +81 -0
- package/build/jamespot-react-components.js.map +1 -0
- package/build/jest.setup.d.ts +1 -0
- package/build/src/components/Common/DashedFocusBorder.d.ts +7 -0
- package/build/src/components/Common/JRCConditionalWrapper.d.ts +8 -0
- package/build/src/components/Form/Common/ClickAwayListener.d.ts +14 -0
- package/build/src/components/Form/Common/FormDescription.d.ts +6 -0
- package/build/src/components/Form/Common/FormHelper.d.ts +13 -0
- package/build/src/components/Form/Common/FormLabel.d.ts +16 -0
- package/build/src/components/Form/Common/FormMessageFeedback.d.ts +17 -0
- package/build/src/components/Form/Common/types.d.ts +28 -0
- package/build/src/components/Form/Input/Common/JRCFormErrors.d.ts +10 -0
- package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.d.ts +3 -0
- package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.types.d.ts +44 -0
- package/build/src/components/Form/Input/Common/useFormControls.d.ts +42 -0
- package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteAudience.d.ts +13 -0
- package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteAudience.stories.d.ts +4 -0
- package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity.d.ts +9 -0
- package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity.stories.d.ts +4 -0
- package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteTaxonomy.d.ts +12 -0
- package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteTaxonomy.stories.d.ts +4 -0
- package/build/src/components/Form/Input/JRCFormCheckbox/JRCCheckbox.d.ts +4 -0
- package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.d.ts +17 -0
- package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.stories.d.ts +6 -0
- package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.style.d.ts +13 -0
- package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.types.d.ts +55 -0
- package/build/src/components/Form/Input/JRCFormCheckbox/JRCInputCheckbox.d.ts +36 -0
- package/build/src/components/Form/Input/JRCFormCheckbox/JRCInputCheckbox.stories.d.ts +6 -0
- package/build/src/components/Form/Input/JRCFormCheckbox/JRCRadio.d.ts +4 -0
- package/build/src/components/Form/Input/JRCFormCheckbox/JRCToggle.d.ts +2 -0
- package/build/src/components/Form/Input/JRCFormColor/JRCFormColor.d.ts +8 -0
- package/build/src/components/Form/Input/JRCFormColor/JRCFormColor.stories.d.ts +5 -0
- package/build/src/components/Form/Input/JRCFormDateTime/JRCFormDateTime.d.ts +35 -0
- package/build/src/components/Form/Input/JRCFormDateTime/JRCFormInputDateTime.stories.d.ts +5 -0
- package/build/src/components/Form/Input/JRCFormEmail/JRCFormEmail.d.ts +8 -0
- package/build/src/components/Form/Input/JRCFormEmail/JRCFormEmail.stories.d.ts +5 -0
- package/build/src/components/Form/Input/JRCFormEmail/JRCInputEmail.d.ts +10 -0
- package/build/src/components/Form/Input/JRCFormEmail/JRCInputEmail.stories.d.ts +7 -0
- package/build/src/components/Form/Input/JRCFormFieldRender.d.ts +69 -0
- package/build/src/components/Form/Input/JRCFormFile/JRCFormFile.d.ts +23 -0
- package/build/src/components/Form/Input/JRCFormFile/JRCFormFile.stories.d.ts +6 -0
- package/build/src/components/Form/Input/JRCFormFile/JRCFormFile.styles.d.ts +7 -0
- package/build/src/components/Form/Input/JRCFormNumber/JRCFormNumber.d.ts +8 -0
- package/build/src/components/Form/Input/JRCFormNumber/JRCFormNumber.stories.d.ts +5 -0
- package/build/src/components/Form/Input/JRCFormRange/JRCFormRange.d.ts +14 -0
- package/build/src/components/Form/Input/JRCFormRange/JRCFormRange.stories.d.ts +5 -0
- package/build/src/components/Form/Input/JRCFormReceiveACopy/JRCFormReceiveACopy.d.ts +5 -0
- package/build/src/components/Form/Input/JRCFormReceiveACopy/JRCFormReceiveACopy.stories.d.ts +7 -0
- package/build/src/components/Form/Input/JRCFormRichText/JRCFormRichTextField.d.ts +20 -0
- package/build/src/components/Form/Input/JRCFormRichText/JRCFormRichTextField.stories.d.ts +5 -0
- package/build/src/components/Form/Input/JRCFormSelect/JRCFormSelect.d.ts +73 -0
- package/build/src/components/Form/Input/JRCFormSelect/JRCFormSelect.stories.d.ts +18 -0
- package/build/src/components/Form/Input/JRCFormSelect/JRCFormSelectTag.d.ts +10 -0
- package/build/src/components/Form/Input/JRCFormSendAlert/JRCFormSendAlert.d.ts +5 -0
- package/build/src/components/Form/Input/JRCFormSendAlert/JRCFormSendAlert.stories.d.ts +7 -0
- package/build/src/components/Form/Input/JRCFormText/JRCFormText.d.ts +8 -0
- package/build/src/components/Form/Input/JRCFormText/JRCFormText.stories.d.ts +5 -0
- package/build/src/components/Form/Input/JRCFormTextEditor/JRCFormTextEditor.d.ts +10 -0
- package/build/src/components/Form/Input/JRCFormTextEditor/JRCFormTextEditor.stories.d.ts +5 -0
- package/build/src/components/Form/Input/JRCFormTextarea/JRCFormTextarea.d.ts +24 -0
- package/build/src/components/Form/Input/JRCFormTextarea/JRCFormTextarea.stories.d.ts +5 -0
- package/build/src/components/Form/Input/JRCFormURL/JRCFormUrl.d.ts +8 -0
- package/build/src/components/Form/Input/JRCFormURL/JRCFormUrl.stories.d.ts +5 -0
- package/build/src/components/Form/Input/JRCInputText/JRCInputText.d.ts +11 -0
- package/build/src/components/Form/Input/JRCInputText/JRCInputText.stories.d.ts +5 -0
- package/build/src/components/Form/Input/JRCSelect/JRCAutocomplete.stories.d.ts +10 -0
- package/build/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.d.ts +6 -0
- package/build/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.stories.d.ts +13 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputAutocomplete.d.ts +10 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.d.ts +4 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.stories.d.ts +12 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts +21 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +44 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.utils.d.ts +47 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelectAsync.stories.d.ts +11 -0
- package/build/src/components/Form/Input/JRCStyledInput.d.ts +26 -0
- package/build/src/components/Form/Input/ReduxFormControls.d.ts +18 -0
- package/build/src/components/Form/Input/temporary.types.d.ts +20 -0
- package/build/src/components/JRCAlert/JRCAlert.d.ts +19 -0
- package/build/src/components/JRCAlert/JRCAlert.stories.d.ts +8 -0
- package/build/src/components/JRCAppHeader/JRCAppHeader.d.ts +3 -0
- package/build/src/components/JRCAppHeader/JRCAppHeader.stories.d.ts +5 -0
- package/build/src/components/JRCAppHeader/JRCAppHeader.styles.d.ts +1 -0
- package/build/src/components/JRCAppHeader/JRCAppHeader.types.d.ts +6 -0
- package/build/src/components/JRCAvatar/JRCAvatar.d.ts +29 -0
- package/build/src/components/JRCAvatar/JRCAvatar.stories.d.ts +5 -0
- package/build/src/components/JRCAvatar/JRCAvatar.test.d.ts +1 -0
- package/build/src/components/JRCButton/JRCButton.d.ts +41 -0
- package/build/src/components/JRCButton/JRCButton.stories.d.ts +9 -0
- package/build/src/components/JRCButton/JRCButton.test.d.ts +1 -0
- package/build/src/components/JRCButton/JRCButtonConfig.d.ts +150 -0
- package/build/src/components/JRCButton/JRCValidationButton.d.ts +12 -0
- package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.d.ts +32 -0
- package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.stories.d.ts +8 -0
- package/build/src/components/JRCCard/JRCCard.d.ts +9 -0
- package/build/src/components/JRCCard/JRCCard.stories.d.ts +5 -0
- package/build/src/components/JRCColumnCenter/JRCColumnCenter.d.ts +10 -0
- package/build/src/components/JRCColumnCenterTitle/JRCColumnCenterTitle.d.ts +12 -0
- package/build/src/components/JRCColumnLeft/JRCColumnLeft.d.ts +10 -0
- package/build/src/components/JRCColumnRight/JRCColumnRight.d.ts +10 -0
- package/build/src/components/JRCDate/JRCDate.d.ts +5 -0
- package/build/src/components/JRCDate/JRCDate.stories.d.ts +9 -0
- package/build/src/components/JRCDropDown/JRCDropDown.d.ts +7 -0
- package/build/src/components/JRCDropDown/JRCDropDown.stories.d.ts +5 -0
- package/build/src/components/JRCGrid/JRCGrid.d.ts +12 -0
- package/build/src/components/JRCGrid/JRCGrid.stories.d.ts +9 -0
- package/build/src/components/JRCHref/JRCHref.d.ts +21 -0
- package/build/src/components/JRCHref/JRCHref.stories.d.ts +7 -0
- package/build/src/components/JRCIcon/JRCIcon.d.ts +22 -0
- package/build/src/components/JRCIcon/JRCIcon.stories.d.ts +7 -0
- package/build/src/components/JRCIconButton/JRCIconButton.d.ts +39 -0
- package/build/src/components/JRCIconButton/JRCIconButton.stories.d.ts +5 -0
- package/build/src/components/JRCImg/JRCImg.d.ts +34 -0
- package/build/src/components/JRCImg/JRCImg.stories.d.ts +5 -0
- package/build/src/components/JRCImg/JRCImg.test.d.ts +1 -0
- package/build/src/components/JRCImg/url.util.d.ts +62 -0
- package/build/src/components/JRCImg/url.utils.test.d.ts +1 -0
- package/build/src/components/JRCList/JRCList.d.ts +25 -0
- package/build/src/components/JRCList/JRCList.stories.d.ts +11 -0
- package/build/src/components/JRCList/JRCList.styles.d.ts +25 -0
- package/build/src/components/JRCList/JRCListMockData.stories.d.ts +4 -0
- package/build/src/components/JRCLoader/JRCLoader.d.ts +12 -0
- package/build/src/components/JRCLoader/JRCLoader.stories.d.ts +5 -0
- package/build/src/components/JRCMenu/JRCMenu.d.ts +33 -0
- package/build/src/components/JRCMenu/JRCMenu.stories.d.ts +7 -0
- package/build/src/components/JRCModal/JRCModal.d.ts +38 -0
- package/build/src/components/JRCModal/JRCModal.stories.d.ts +8 -0
- package/build/src/components/JRCModal/JRCModal.styles.d.ts +15 -0
- package/build/src/components/JRCModalImg/JRCModalImg.d.ts +40 -0
- package/build/src/components/JRCModalImg/JRCModalImg.stories.d.ts +7 -0
- package/build/src/components/JRCModalImg/JRCModalImg.styles.d.ts +15 -0
- package/build/src/components/JRCPagination/JRCPagination.d.ts +20 -0
- package/build/src/components/JRCPagination/JRCPagination.stories.d.ts +8 -0
- package/build/src/components/JRCPagination/JRCPagination.test.d.ts +1 -0
- package/build/src/components/JRCTabs/JRCTabs.d.ts +44 -0
- package/build/src/components/JRCTabs/JRCTabs.stories.d.ts +9 -0
- package/build/src/components/JRCTag/JRCTag.d.ts +29 -0
- package/build/src/components/JRCTag/JRCTag.stories.d.ts +5 -0
- package/build/src/components/JRCThemeProvider/JRCThemeProvider.d.ts +17 -0
- package/build/src/components/JRCTooltip/JRCTooltip.d.ts +26 -0
- package/build/src/components/JRCTooltip/JRCTooltip.stories.d.ts +9 -0
- package/build/src/components/JRCTypo/JRCTypo.d.ts +48 -0
- package/build/src/components/JRCTypo/JRCTypo.stories.d.ts +12 -0
- package/build/src/components/JRCTypography/JRCTypography.d.d.ts +27 -0
- package/build/src/components/JRCTypography/JRCTypography.d.ts +2 -0
- package/build/src/components/JRCTypography/JRCTypography.stories.d.ts +5 -0
- package/build/src/components/JRCTypography/JRCTypography.styles.d.ts +10 -0
- package/build/src/components/JRCTypography/JRCTypography.test.d.ts +1 -0
- package/build/src/hooks/UseDebounce.d.ts +8 -0
- package/build/src/hooks/UseDidMountEffect.d.ts +3 -0
- package/build/src/index.d.ts +110 -0
- package/build/src/storybook/decorators.d.ts +2 -0
- package/build/src/styles/Theme.stories.d.ts +6 -0
- package/build/src/styles/theme.d.ts +45 -0
- package/build/src/styles/utils.d.ts +8 -0
- package/build/src/translation/index.d.ts +2 -0
- package/build/src/types/dataAttributes.d.ts +7 -0
- package/build/src/types.d.ts +87 -0
- package/build/src/utils/const.d.ts +8 -0
- package/build/src/utils/test-utils.d.ts +7 -0
- package/build/src/utils/types.d.ts +32 -0
- package/build/src/utils/utils.date.d.ts +9 -0
- package/build/src/utils/utils.date.test.d.ts +1 -0
- package/build/src/utils/utils.document.d.ts +4 -0
- package/build/src/utils/utils.object.d.ts +1 -0
- package/build/src/utils/utils.object.test.d.ts +1 -0
- package/build/src/utils/utils.regexp.d.ts +6 -0
- package/build/src/utils/utils.regexp.test.d.ts +1 -0
- package/build/src/utils/utils.string.d.ts +2 -0
- package/build/src/utils/utils.string.test.d.ts +1 -0
- package/eslint_report.json +1312 -0
- package/externals.d.ts +5 -0
- package/externals.json +15 -0
- package/favicon.ico +0 -0
- package/jest.config.js +16 -0
- package/jest.setup.ts +1 -0
- package/package.json +133 -0
- package/src/assets/check.svg +4 -0
- package/src/assets/error.svg +3 -0
- package/src/assets/x.svg +1 -0
- package/src/components/Common/DashedFocusBorder.tsx +20 -0
- package/src/components/Common/JRCConditionalWrapper.tsx +19 -0
- package/src/components/Form/Common/ClickAwayListener.tsx +41 -0
- package/src/components/Form/Common/FormDescription.tsx +9 -0
- package/src/components/Form/Common/FormHelper.tsx +30 -0
- package/src/components/Form/Common/FormLabel.tsx +38 -0
- package/src/components/Form/Common/FormMessageFeedback.tsx +52 -0
- package/src/components/Form/Common/types.ts +31 -0
- package/src/components/Form/Input/Common/JRCFormErrors.tsx +40 -0
- package/src/components/Form/Input/Common/JRCFormFieldRenderer.tsx +85 -0
- package/src/components/Form/Input/Common/JRCFormFieldRenderer.types.tsx +51 -0
- package/src/components/Form/Input/Common/useFormControls.tsx +108 -0
- package/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteAudience.stories.tsx +38 -0
- package/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteAudience.tsx +47 -0
- package/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity.stories.tsx +37 -0
- package/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity.tsx +25 -0
- package/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteTaxonomy.stories.tsx +39 -0
- package/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteTaxonomy.tsx +33 -0
- package/src/components/Form/Input/JRCFormCheckbox/JRCCheckbox.tsx +46 -0
- package/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.stories.tsx +61 -0
- package/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.style.tsx +101 -0
- package/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.tsx +116 -0
- package/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.types.tsx +58 -0
- package/src/components/Form/Input/JRCFormCheckbox/JRCRadio.tsx +27 -0
- package/src/components/Form/Input/JRCFormCheckbox/JRCToggle.tsx +75 -0
- package/src/components/Form/Input/JRCFormColor/JRCFormColor.stories.tsx +26 -0
- package/src/components/Form/Input/JRCFormColor/JRCFormColor.tsx +418 -0
- package/src/components/Form/Input/JRCFormDateTime/JRCFormDateTime.tsx +1079 -0
- package/src/components/Form/Input/JRCFormDateTime/JRCFormInputDateTime.stories.tsx +71 -0
- package/src/components/Form/Input/JRCFormEmail/JRCFormEmail.stories.tsx +22 -0
- package/src/components/Form/Input/JRCFormEmail/JRCFormEmail.tsx +36 -0
- package/src/components/Form/Input/JRCFormEmail/JRCInputEmail.stories.tsx +48 -0
- package/src/components/Form/Input/JRCFormEmail/JRCInputEmail.tsx +30 -0
- package/src/components/Form/Input/JRCFormFieldRender.tsx +115 -0
- package/src/components/Form/Input/JRCFormFile/JRCFormFile.stories.tsx +37 -0
- package/src/components/Form/Input/JRCFormFile/JRCFormFile.styles.tsx +75 -0
- package/src/components/Form/Input/JRCFormFile/JRCFormFile.tsx +169 -0
- package/src/components/Form/Input/JRCFormNumber/JRCFormNumber.stories.tsx +24 -0
- package/src/components/Form/Input/JRCFormNumber/JRCFormNumber.tsx +37 -0
- package/src/components/Form/Input/JRCFormRange/JRCFormRange.stories.tsx +48 -0
- package/src/components/Form/Input/JRCFormRange/JRCFormRange.tsx +106 -0
- package/src/components/Form/Input/JRCFormReceiveACopy/JRCFormReceiveACopy.stories.tsx +10 -0
- package/src/components/Form/Input/JRCFormReceiveACopy/JRCFormReceiveACopy.tsx +22 -0
- package/src/components/Form/Input/JRCFormRichText/JRCFormRichTextField.stories.tsx +23 -0
- package/src/components/Form/Input/JRCFormRichText/JRCFormRichTextField.tsx +272 -0
- package/src/components/Form/Input/JRCFormSelect/JRCFormSelect.stories.tsx +104 -0
- package/src/components/Form/Input/JRCFormSelect/JRCFormSelect.tsx +395 -0
- package/src/components/Form/Input/JRCFormSelect/JRCFormSelectTag.tsx +132 -0
- package/src/components/Form/Input/JRCFormSendAlert/JRCFormSendAlert.stories.tsx +10 -0
- package/src/components/Form/Input/JRCFormSendAlert/JRCFormSendAlert.tsx +22 -0
- package/src/components/Form/Input/JRCFormText/JRCFormText.stories.tsx +26 -0
- package/src/components/Form/Input/JRCFormText/JRCFormText.tsx +47 -0
- package/src/components/Form/Input/JRCFormTextEditor/JRCFormTextEditor.stories.tsx +30 -0
- package/src/components/Form/Input/JRCFormTextEditor/JRCFormTextEditor.tsx +36 -0
- package/src/components/Form/Input/JRCFormTextarea/JRCFormTextarea.stories.tsx +28 -0
- package/src/components/Form/Input/JRCFormTextarea/JRCFormTextarea.tsx +71 -0
- package/src/components/Form/Input/JRCFormURL/JRCFormUrl.stories.tsx +26 -0
- package/src/components/Form/Input/JRCFormURL/JRCFormUrl.tsx +35 -0
- package/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.stories.tsx +84 -0
- package/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.tsx +193 -0
- package/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.types.ts +27 -0
- package/src/components/Form/Input/JRCInputText/JRCInputText.stories.tsx +52 -0
- package/src/components/Form/Input/JRCInputText/JRCInputText.tsx +26 -0
- package/src/components/Form/Input/JRCSelect/JRCAutocomplete.stories.tsx +62 -0
- package/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.stories.tsx +55 -0
- package/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.tsx +34 -0
- package/src/components/Form/Input/JRCSelect/JRCInputAutocomplete.tsx +63 -0
- package/src/components/Form/Input/JRCSelect/JRCInputSelect.stories.tsx +66 -0
- package/src/components/Form/Input/JRCSelect/JRCInputSelect.style.tsx +94 -0
- package/src/components/Form/Input/JRCSelect/JRCInputSelect.tsx +231 -0
- package/src/components/Form/Input/JRCSelect/JRCInputSelect.types.ts +51 -0
- package/src/components/Form/Input/JRCSelect/JRCInputSelect.utils.ts +92 -0
- package/src/components/Form/Input/JRCSelect/JRCInputSelectAsync.stories.tsx +83 -0
- package/src/components/Form/Input/JRCStyledInput.tsx +102 -0
- package/src/components/Form/Input/ReduxFormControls.ts +135 -0
- package/src/components/Form/Input/temporary.types.tsx +22 -0
- package/src/components/JRCAlert/JRCAlert.stories.tsx +62 -0
- package/src/components/JRCAlert/JRCAlert.tsx +147 -0
- package/src/components/JRCAppContainer/JRCAppContainer.tsx +19 -0
- package/src/components/JRCAppHeader/JRCAppHeader.stories.tsx +25 -0
- package/src/components/JRCAppHeader/JRCAppHeader.styles.tsx +23 -0
- package/src/components/JRCAppHeader/JRCAppHeader.tsx +26 -0
- package/src/components/JRCAppHeader/JRCAppHeader.types.tsx +6 -0
- package/src/components/JRCAppLeftColumn/JRCAppLeftColumn.stories.tsx +125 -0
- package/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.tsx +122 -0
- package/src/components/JRCAppLeftColumn/JRCAppLeftColumn.tsx +129 -0
- package/src/components/JRCAppLeftColumn/JRCAppLeftColumn.types.tsx +61 -0
- package/src/components/JRCAppLeftColumn/JRCDefaultMenu.tsx +34 -0
- package/src/components/JRCAvatar/JRCAvatar.stories.tsx +30 -0
- package/src/components/JRCAvatar/JRCAvatar.test.tsx +22 -0
- package/src/components/JRCAvatar/JRCAvatar.tsx +91 -0
- package/src/components/JRCButton/JRCButton.stories.tsx +311 -0
- package/src/components/JRCButton/JRCButton.test.tsx +34 -0
- package/src/components/JRCButton/JRCButton.tsx +120 -0
- package/src/components/JRCButton/JRCButtonConfig.tsx +150 -0
- package/src/components/JRCButton/JRCValidationButton.tsx +85 -0
- package/src/components/JRCButton/__snapshots__/JRCButton.test.tsx.snap +13 -0
- package/src/components/JRCButtonDropdown/JRCButtonDropdown.stories.tsx +289 -0
- package/src/components/JRCButtonDropdown/JRCButtonDropdown.tsx +170 -0
- package/src/components/JRCCard/JRCCard.stories.tsx +17 -0
- package/src/components/JRCCard/JRCCard.tsx +27 -0
- package/src/components/JRCColumnCenter/JRCColumnCenter.tsx +13 -0
- package/src/components/JRCColumnCenterTitle/JRCColumnCenterTitle.tsx +26 -0
- package/src/components/JRCColumnLeft/JRCColumnLeft.tsx +17 -0
- package/src/components/JRCColumnRight/JRCColumnRight.tsx +17 -0
- package/src/components/JRCDate/JRCDate.stories.tsx +11 -0
- package/src/components/JRCDate/JRCDate.tsx +32 -0
- package/src/components/JRCDropDown/JRCDropDown.stories.tsx +16 -0
- package/src/components/JRCDropDown/JRCDropDown.tsx +75 -0
- package/src/components/JRCFileOpen/JRCFileOpen.tsx +195 -0
- package/src/components/JRCFileOpen/extensions.tsx +14 -0
- package/src/components/JRCGrid/JRCGrid.stories.tsx +45 -0
- package/src/components/JRCGrid/JRCGrid.tsx +15 -0
- package/src/components/JRCHref/JRCHref.stories.tsx +33 -0
- package/src/components/JRCHref/JRCHref.tsx +40 -0
- package/src/components/JRCIcon/JRCIcon.stories.tsx +1040 -0
- package/src/components/JRCIcon/JRCIcon.tsx +51 -0
- package/src/components/JRCIcon/fonts.d.ts +5 -0
- package/src/components/JRCIconButton/JRCIconButton.stories.tsx +33 -0
- package/src/components/JRCIconButton/JRCIconButton.tsx +100 -0
- package/src/components/JRCImg/JRCImg.stories.tsx +18 -0
- package/src/components/JRCImg/JRCImg.test.tsx +13 -0
- package/src/components/JRCImg/JRCImg.tsx +58 -0
- package/src/components/JRCImg/url.util.ts +108 -0
- package/src/components/JRCImg/url.utils.test.ts +74 -0
- package/src/components/JRCList/JRCList.stories.tsx +98 -0
- package/src/components/JRCList/JRCList.styles.tsx +213 -0
- package/src/components/JRCList/JRCList.tsx +217 -0
- package/src/components/JRCList/JRCListMockData.stories.tsx +105 -0
- package/src/components/JRCLoader/JRCLoader.stories.tsx +12 -0
- package/src/components/JRCLoader/JRCLoader.tsx +43 -0
- package/src/components/JRCMenu/JRCMenu.stories.tsx +29 -0
- package/src/components/JRCMenu/JRCMenu.tsx +80 -0
- package/src/components/JRCMenuItem/JRCMenuItem.tsx +51 -0
- package/src/components/JRCModal/JRCModal.stories.tsx +206 -0
- package/src/components/JRCModal/JRCModal.styles.tsx +78 -0
- package/src/components/JRCModal/JRCModal.tsx +189 -0
- package/src/components/JRCModalImg/JRCModalImg.stories.tsx +119 -0
- package/src/components/JRCModalImg/JRCModalImg.styles.tsx +83 -0
- package/src/components/JRCModalImg/JRCModalImg.tsx +140 -0
- package/src/components/JRCPagination/JRCPagination.stories.tsx +42 -0
- package/src/components/JRCPagination/JRCPagination.test.tsx +79 -0
- package/src/components/JRCPagination/JRCPagination.tsx +194 -0
- package/src/components/JRCTabs/JRCTabItem +0 -0
- package/src/components/JRCTabs/JRCTabs.stories.tsx +121 -0
- package/src/components/JRCTabs/JRCTabs.tsx +165 -0
- package/src/components/JRCTag/JRCTag.stories.tsx +26 -0
- package/src/components/JRCTag/JRCTag.tsx +120 -0
- package/src/components/JRCThemeProvider/JRCThemeProvider.tsx +26 -0
- package/src/components/JRCThemeProvider/animation.css +27 -0
- package/src/components/JRCThemeProvider/font.css +12 -0
- package/src/components/JRCThemeProvider/fontawesome-icons.css +10 -0
- package/src/components/JRCThemeProvider/fontspot-icons.css +10 -0
- package/src/components/JRCThemeProvider/gabarit.css +92 -0
- package/src/components/JRCThemeProvider/scrollbar.css +18 -0
- package/src/components/JRCThemeProvider/theme-reset.css +246 -0
- package/src/components/JRCTooltip/JRCTooltip.stories.tsx +87 -0
- package/src/components/JRCTooltip/JRCTooltip.tsx +145 -0
- package/src/components/JRCTypo/JRCTypo.stories.tsx +42 -0
- package/src/components/JRCTypo/JRCTypo.tsx +91 -0
- package/src/components/JRCTypography/JRCTypography.d.tsx +29 -0
- package/src/components/JRCTypography/JRCTypography.stories.tsx +18 -0
- package/src/components/JRCTypography/JRCTypography.styles.tsx +18 -0
- package/src/components/JRCTypography/JRCTypography.test.tsx +38 -0
- package/src/components/JRCTypography/JRCTypography.tsx +5 -0
- package/src/components/JRCTypography/__snapshots__/JRCTypography.test.tsx.snap +11 -0
- package/src/hooks/UseDebounce.ts +25 -0
- package/src/hooks/UseDidMountEffect.tsx +12 -0
- package/src/hooks/UseTimeout.ts +24 -0
- package/src/index.tsx +205 -0
- package/src/jest/EmptyModule.js +0 -0
- package/src/jest/svgTransform.js +10 -0
- package/src/storybook/decorators.tsx +17 -0
- package/src/styles/Theme.stories.tsx +265 -0
- package/src/styles/theme.d.ts +6 -0
- package/src/styles/theme.tsx +201 -0
- package/src/styles/utils.tsx +221 -0
- package/src/translation/index.tsx +2 -0
- package/src/translation/lang.json +28 -0
- package/src/types/dataAttributes.ts +7 -0
- package/src/types/react-table-config.d.ts +123 -0
- package/src/types.ts +94 -0
- package/src/utils/const.ts +9 -0
- package/src/utils/test-utils.tsx +41 -0
- package/src/utils/types.tsx +35 -0
- package/src/utils/utils.date.test.tsx +14 -0
- package/src/utils/utils.date.tsx +20 -0
- package/src/utils/utils.document.tsx +54 -0
- package/src/utils/utils.object.test.tsx +38 -0
- package/src/utils/utils.object.tsx +71 -0
- package/src/utils/utils.regexp.test.ts +11 -0
- package/src/utils/utils.regexp.tsx +8 -0
- package/src/utils/utils.string.test.ts +18 -0
- package/src/utils/utils.string.ts +7 -0
- package/src/variables.scss +67 -0
- package/tsconfig.json +17 -0
- package/webpack.config.js +70 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { JRCAppLeftColumn } from './JRCAppLeftColumn';
|
|
3
|
+
import { Section, JRCAppLeftColumnProps } from './JRCAppLeftColumn.types';
|
|
4
|
+
import { JRCTabPanel } from '../JRCTabs/JRCTabs';
|
|
5
|
+
import { JRCAppContainer } from '../JRCAppContainer/JRCAppContainer';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'JRCAppLeftColumn',
|
|
9
|
+
component: JRCAppLeftColumn,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const sections: Section<any>[] = [
|
|
13
|
+
{
|
|
14
|
+
title: 'Section 1',
|
|
15
|
+
entries: [
|
|
16
|
+
{
|
|
17
|
+
key: '1',
|
|
18
|
+
icon: 'icon-fs-microsoft',
|
|
19
|
+
label: 'Menu 1',
|
|
20
|
+
attribute: 42,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
key: '2',
|
|
24
|
+
icon: 'icon-fs-survey-date',
|
|
25
|
+
label: 'Menu 2',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: 'Section 2',
|
|
31
|
+
entries: [
|
|
32
|
+
{
|
|
33
|
+
key: '3',
|
|
34
|
+
label: 'Menu 3',
|
|
35
|
+
icon: 'icon-fs-favorite',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
key: '4',
|
|
39
|
+
label: 'Menu 4',
|
|
40
|
+
icon: 'icon-fs-application',
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
export const Simple = (args: JRCAppLeftColumnProps<any>) => {
|
|
47
|
+
const [activeItem, setActiveItem] = React.useState('1');
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<JRCAppContainer>
|
|
51
|
+
<JRCAppLeftColumn
|
|
52
|
+
sections={sections}
|
|
53
|
+
icon="icon-edit"
|
|
54
|
+
color="green"
|
|
55
|
+
title="Studio"
|
|
56
|
+
description="Créez et gérez vos propres applications métiers sans une seule ligne de code !"
|
|
57
|
+
activeItem={activeItem}
|
|
58
|
+
callback={(item: any) => setActiveItem(item)}
|
|
59
|
+
/>
|
|
60
|
+
<JRCTabPanel active={activeItem === '1'}>
|
|
61
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec faucibus est sed risus interdum, eu
|
|
62
|
+
accumsan est sagittis. Cras vel sem sit amet diam suscipit interdum nec id neque. Vestibulum non luctus
|
|
63
|
+
magna. Donec purus eros, maximus vel accumsan non, eleifend id ex. Morbi interdum vestibulum purus. Cras
|
|
64
|
+
nec dui sed est consequat ultrices. Donec finibus est id rhoncus suscipit. Nullam faucibus lectus quis
|
|
65
|
+
pretium venenatis. Cras vulputate velit eget ligula luctus, ac lacinia elit efficitur. Praesent non odio
|
|
66
|
+
ullamcorper, aliquet purus eu, mattis sapien. Curabitur quis nisi ac massa fermentum tristique. Aliquam
|
|
67
|
+
sit amet eleifend ligula. Phasellus eu elementum est, non pharetra purus. Sed euismod maximus nunc, at
|
|
68
|
+
pharetra est pharetra nec. Sed quis libero egestas nisi finibus commodo. Ut sagittis condimentum semper.
|
|
69
|
+
Integer arcu mi, rutrum sed nulla quis, rutrum euismod massa. Vestibulum semper, massa sed interdum
|
|
70
|
+
auctor, eros nisi dapibus felis, ac maximus nibh augue eu ex. Etiam in suscipit erat. Quisque aliquam
|
|
71
|
+
placerat sapien ut facilisis. Praesent tristique quam et dictum accumsan. Class aptent taciti sociosqu
|
|
72
|
+
ad litora torquent per conubia nostra, per inceptos himenaeos. Aenean eget arcu porta erat molestie
|
|
73
|
+
blandit. In hac habitasse platea dictumst. Fusce turpis enim, posuere in semper vel, luctus ac leo. Duis
|
|
74
|
+
vitae justo a ligula accumsan fringilla sed in odio. Praesent a urna molestie, tempus magna venenatis,
|
|
75
|
+
tincidunt leo. In sem velit, fringilla nec ipsum sed, interdum dapibus lectus. Duis ac lorem nunc. Fusce
|
|
76
|
+
in nibh metus. Vestibulum euismod semper blandit. Cras sit amet diam et erat varius luctus vel at quam.
|
|
77
|
+
Fusce rhoncus, augue vitae eleifend vehicula, ex metus vestibulum leo, in fringilla augue ex sit amet
|
|
78
|
+
metus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse mattis posuere dolor, ut //
|
|
79
|
+
scelerisque ex. Sed dictum nec dui non dictum. Curabitur viverra risus porttitor sodales tristique. //
|
|
80
|
+
Donec nunc erat, maximus et scelerisque eu, commodo consequat ligula. In dapibus nunc sit amet lorem //
|
|
81
|
+
malesuada, eu luctus velit pellentesque. Aliquam fringilla nibh nec accumsan ultricies. Nulla facilisi.
|
|
82
|
+
// Suspendisse ullamcorper nec libero et ullamcorper. In hac habitasse platea dictumst. Mauris
|
|
83
|
+
fermentum, // purus at faucibus luctus, diam risus fermentum tortor, sed fringilla tortor erat quis
|
|
84
|
+
nunc. Praesent id // metus vitae velit dignissim finibus. Fusce ullamcorper diam arcu, vitae volutpat
|
|
85
|
+
neque porta vitae. Sed // ut tempus dui, id pharetra erat. Fusce laoreet, massa sed efficitur commodo,
|
|
86
|
+
augue magna semper nisi, ut // dignissim quam dolor sagittis ligula. Nunc ut egestas nulla, nec suscipit
|
|
87
|
+
enim. Nunc lobortis nisl arcu, // at tincidunt ligula finibus id. Duis venenatis facilisis est. Ut in
|
|
88
|
+
pellentesque lectus. In hac // habitasse platea dictumst. Mauris ac mauris tempor, placerat erat vel,
|
|
89
|
+
laoreet nulla. Nullam fermentum // placerat neque. Quisque et pharetra massa. Vestibulum viverra neque
|
|
90
|
+
odio, non laoreet nulla aliquam eu. // Orci varius natoque penatibus et magnis dis parturient montes,
|
|
91
|
+
nascetur ridiculus mus. Aliquam venenatis // consectetur nibh at tristique. Maecenas ornare nulla sem,
|
|
92
|
+
eget laoreet velit imperdiet in. Aliquam erat // volutpat. Sed facilisis nisl ut ullamcorper malesuada.
|
|
93
|
+
Nullam consequat pharetra odio sit amet sagittis. // Donec ut dictum sapien. Phasellus vel accumsan
|
|
94
|
+
libero. Suspendisse convallis varius nulla, in porttitor // risus semper vitae. Class aptent taciti
|
|
95
|
+
sociosqu ad litora torquent per conubia nostra, per inceptos // himenaeos. Duis et eleifend enim.
|
|
96
|
+
Vestibulum sollicitudin justo ullamcorper nisi luctus hendrerit. // Curabitur sed sem lorem.
|
|
97
|
+
Pellentesque eu faucibus neque. Nam ut gravida massa. Cras ultricies a ex sed // luctus. Nulla ultrices
|
|
98
|
+
quis sapien ut dignissim. Ut pharetra ipsum id lectus rutrum, eu cursus sem // egestas. Fusce ut justo
|
|
99
|
+
tempus, scelerisque dui non, pulvinar risus. Quisque tincidunt ultricies // ultrices. Nam tincidunt orci
|
|
100
|
+
ut arcu auctor, sed placerat mi laoreet. Sed rhoncus sollicitudin lorem, id // vehicula ligula hendrerit
|
|
101
|
+
in. Proin condimentum, dolor id commodo blandit, mauris elit sollicitudin // ante, vitae accumsan nulla
|
|
102
|
+
quam in dolor. Pellentesque molestie sapien id risus rhoncus efficitur. // Nullam at mauris et augue
|
|
103
|
+
commodo pulvinar. Duis tempus orci vitae magna ultricies, vitae commodo leo // iaculis. Nunc vel turpis
|
|
104
|
+
malesuada, lacinia quam vel, iaculis neque. Etiam arcu nulla, lacinia ut nibh // eget, ultrices
|
|
105
|
+
malesuada mauris. Donec ac tristique turpis. Cras egestas arcu lacus, non fermentum ex // vulputate
|
|
106
|
+
eget. Pellentesque tincidunt suscipit leo, et gravida odio ullamcorper vel. Sed non luctus // arcu.
|
|
107
|
+
Maecenas dolor enim, porttitor quis molestie a, scelerisque non libero. Mauris sit amet aliquet //
|
|
108
|
+
tortor. Aliquam erat volutpat. Nam id vulputate nibh. Etiam condimentum sapien sit amet malesuada //
|
|
109
|
+
congue. Aliquam nec ullamcorper orci. Vivamus fermentum mauris eu eros fermentum scelerisque. Integer //
|
|
110
|
+
condimentum congue laoreet. Sed venenatis, justo cursus porta iaculis, risus ex facilisis augue, in //
|
|
111
|
+
placerat tortor purus eget dui. Morbi cursus lectus ut dapibus mollis. Quisque vel nunc non massa //
|
|
112
|
+
lacinia ultricies. Donec metus dui, varius at leo vel, laoreet viverra lorem. Aliquam blandit in nulla
|
|
113
|
+
// ut fringilla. Mauris quis volutpat odio. Nulla rhoncus auctor orci, tristique lobortis dolor
|
|
114
|
+
elementum // nec. In scelerisque tincidunt faucibus. Nam et justo vel mi pellentesque pellentesque eu
|
|
115
|
+
convallis enim. // In hac habitasse platea dictumst. Aliquam sollicitudin nibh at libero pellentesque
|
|
116
|
+
egestas. Proin vel // condimentum mi, non rhoncus purus. Fusce non libero metus. Nam tincidunt ultrices
|
|
117
|
+
imperdiet.
|
|
118
|
+
</JRCTabPanel>
|
|
119
|
+
<JRCTabPanel active={activeItem === '2'}>Menu 2</JRCTabPanel>
|
|
120
|
+
<JRCTabPanel active={activeItem === '3'}>Menu 3</JRCTabPanel>
|
|
121
|
+
<JRCTabPanel active={activeItem === '4'}>TEST MENU 1</JRCTabPanel>
|
|
122
|
+
<JRCTabPanel active={activeItem === '5'}>TEST Menu 2</JRCTabPanel>
|
|
123
|
+
</JRCAppContainer>
|
|
124
|
+
);
|
|
125
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { ItemButton } from '../JRCTabs/JRCTabs';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { JRCH2 } from '../JRCTypo/JRCTypo';
|
|
4
|
+
import { JRCIconButton } from '../JRCIconButton/JRCIconButton';
|
|
5
|
+
|
|
6
|
+
export const JRCAppLeftColumnWrapperTop = styled.div`
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
align-items: baseline;
|
|
10
|
+
`;
|
|
11
|
+
|
|
12
|
+
export const ColumnRelativeWrapper = styled.div<{ isMinimized: boolean }>`
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
justify-content: flex-end;
|
|
16
|
+
min-width: ${(props) => (props.isMinimized ? '80px' : '300px')};
|
|
17
|
+
max-width: ${(props) => (props.isMinimized ? '80px' : '300px')};
|
|
18
|
+
`;
|
|
19
|
+
|
|
20
|
+
export const ColumnRelativeSticky = styled.div<{ isMinimized: boolean; isClosed: boolean }>`
|
|
21
|
+
display: flex;
|
|
22
|
+
position: sticky;
|
|
23
|
+
bottom: 0;
|
|
24
|
+
min-height: calc(var(--body-height) - 32px);
|
|
25
|
+
background: ${(props) => props.theme.color.grey0};
|
|
26
|
+
min-width: ${(props) => (props.isMinimized ? '80px' : '300px')};
|
|
27
|
+
overflow: ${(props) => (props.isClosed ? 'visible' : 'hidden')};
|
|
28
|
+
`;
|
|
29
|
+
|
|
30
|
+
export const ColumnRelativeTransition = styled.div<{ isMinimized: boolean }>`
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
width: ${(props) => (props.isMinimized ? '0px' : '380px')};
|
|
34
|
+
margin-left: ${(props) => (props.isMinimized ? '0px' : '-80px')};
|
|
35
|
+
transition: all 0.4s;
|
|
36
|
+
`;
|
|
37
|
+
|
|
38
|
+
export const ColumnAppDefault = styled.div<{ isMinimized: boolean; isClosed: boolean }>`
|
|
39
|
+
display: ${(props) => (props.isClosed ? 'none' : 'flex')};
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: 32px;
|
|
42
|
+
display: ${(props) => (props.isClosed ? 'hidden' : 'visible')};
|
|
43
|
+
position: relative;
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
min-width: 300px;
|
|
46
|
+
max-width: 300px;
|
|
47
|
+
|
|
48
|
+
padding: 35px;
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
export const ColumnAppMinimize = styled.div`
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
align-items: center;
|
|
55
|
+
position: relative;
|
|
56
|
+
min-width: 80px;
|
|
57
|
+
max-width: 80px;
|
|
58
|
+
box-sizing: border-box;
|
|
59
|
+
|
|
60
|
+
padding: 35px 18px;
|
|
61
|
+
`;
|
|
62
|
+
|
|
63
|
+
export const MenuWrapper = styled.div<{ isMinimized: boolean }>`
|
|
64
|
+
transition: ${(props) => (props.isMinimized ? 'opacity .6s .3s' : 'opacity .6s .8s')};
|
|
65
|
+
opacity: ${(props) => (props.isMinimized ? '0' : '1')};
|
|
66
|
+
`;
|
|
67
|
+
|
|
68
|
+
export const ItemsIcon = styled(ItemButton)`
|
|
69
|
+
display: flex;
|
|
70
|
+
margin-top: 5px;
|
|
71
|
+
margin-bottom: 5px;
|
|
72
|
+
background-color: ${(props) => props.theme.color.grey0};
|
|
73
|
+
transition: 0.3s;
|
|
74
|
+
&:hover,
|
|
75
|
+
&:focus-within {
|
|
76
|
+
background-color: ${(props) => props.theme.color.grey0};
|
|
77
|
+
color: ${(props) => props.theme.color.grey5};
|
|
78
|
+
margin-top: 10px;
|
|
79
|
+
margin-bottom: 10px;
|
|
80
|
+
transform: scale(1.2);
|
|
81
|
+
}
|
|
82
|
+
`;
|
|
83
|
+
|
|
84
|
+
export const TitleMenu = styled(JRCH2)`
|
|
85
|
+
font-weight: ${(props) => props.theme.font.weight.medium};
|
|
86
|
+
font-size: 12px;
|
|
87
|
+
margin-bottom: 5px;
|
|
88
|
+
text-transform: uppercase;
|
|
89
|
+
`;
|
|
90
|
+
|
|
91
|
+
export const JRCIconButtonAppLeftColumn = styled(JRCIconButton)`
|
|
92
|
+
background-color: ${(props) => props.theme.color.grey0};
|
|
93
|
+
transition: 0.3s;
|
|
94
|
+
&:hover,
|
|
95
|
+
:focus {
|
|
96
|
+
box-shadow: 2px 2px 4px 0px ${(props) => props.theme.color.grey3};
|
|
97
|
+
background-color: ${(props) => props.theme.color.white};
|
|
98
|
+
}
|
|
99
|
+
`;
|
|
100
|
+
|
|
101
|
+
export const AppLeftColumnIconWrapper = styled.ul<{ isMinimized: boolean }>`
|
|
102
|
+
list-style-type: none;
|
|
103
|
+
margin-top: 32px;
|
|
104
|
+
transition: ${(props) => (props.isMinimized ? 'opacity .6s' : 'opacity .6s .3s')};
|
|
105
|
+
opacity: ${(props) => (props.isMinimized ? '1' : '0')};
|
|
106
|
+
`;
|
|
107
|
+
|
|
108
|
+
export const AbsoluteContainer = styled.div`
|
|
109
|
+
position: absolute;
|
|
110
|
+
right: 8px;
|
|
111
|
+
margin: auto;
|
|
112
|
+
`;
|
|
113
|
+
export const AbsoluteContainerMinimized = styled.div<{ isMinimized: boolean }>`
|
|
114
|
+
position: absolute;
|
|
115
|
+
top: 43px;
|
|
116
|
+
right: -8px;
|
|
117
|
+
transition: all 0.4s;
|
|
118
|
+
opacity: ${(props) => (props.isMinimized ? '1' : '0')};
|
|
119
|
+
`;
|
|
120
|
+
export const SectionMinimizesWrapper = styled.div`
|
|
121
|
+
margin-bottom: 20px;
|
|
122
|
+
`;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { JRCAppLeftColumnProps, SectionEntry } from './JRCAppLeftColumn.types';
|
|
3
|
+
import {
|
|
4
|
+
MenuWrapper,
|
|
5
|
+
TitleMenu,
|
|
6
|
+
JRCIconButtonAppLeftColumn,
|
|
7
|
+
AppLeftColumnIconWrapper,
|
|
8
|
+
AbsoluteContainer,
|
|
9
|
+
AbsoluteContainerMinimized,
|
|
10
|
+
SectionMinimizesWrapper,
|
|
11
|
+
ColumnAppDefault,
|
|
12
|
+
ColumnAppMinimize,
|
|
13
|
+
ColumnRelativeWrapper,
|
|
14
|
+
ColumnRelativeSticky,
|
|
15
|
+
ColumnRelativeTransition,
|
|
16
|
+
} from './JRCAppLeftColumn.styles';
|
|
17
|
+
import { JRCAppHeader } from '../JRCAppHeader/JRCAppHeader';
|
|
18
|
+
import { JRCAppLeftColumnWrapperTop } from './JRCAppLeftColumn.styles';
|
|
19
|
+
import { JRCTabs } from '../JRCTabs/JRCTabs';
|
|
20
|
+
import JRCIcon from '../JRCIcon/JRCIcon';
|
|
21
|
+
import { useIntl } from 'react-intl';
|
|
22
|
+
import { JRCDefaultMenu } from './JRCDefaultMenu';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @param Component
|
|
27
|
+
* @param {sections, icon, color, title, description, activeItem, callback} props, @see JRCAppLeftColumnProps interface
|
|
28
|
+
* @returns JSX.Element
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
const JRCAppLeftColumn = <T extends SectionEntry>({
|
|
32
|
+
Component = JRCDefaultMenu,
|
|
33
|
+
...props
|
|
34
|
+
}: JRCAppLeftColumnProps<T>) => {
|
|
35
|
+
const clickOnItem = (index: string): void => {
|
|
36
|
+
if (props.callback) props.callback(index);
|
|
37
|
+
};
|
|
38
|
+
const [isMinimized, setMinimized] = React.useState(false);
|
|
39
|
+
const [isClosed, setClosed] = React.useState(false);
|
|
40
|
+
const intl = useIntl();
|
|
41
|
+
|
|
42
|
+
const onClick = () => {
|
|
43
|
+
if (!isMinimized) {
|
|
44
|
+
setMinimized(true);
|
|
45
|
+
setTimeout(() => {
|
|
46
|
+
setClosed(true);
|
|
47
|
+
}, 400);
|
|
48
|
+
} else {
|
|
49
|
+
setClosed(false);
|
|
50
|
+
setMinimized(false);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<ColumnRelativeWrapper isMinimized={isMinimized}>
|
|
56
|
+
<ColumnRelativeSticky isMinimized={isMinimized} isClosed={isClosed}>
|
|
57
|
+
<ColumnRelativeTransition isMinimized={isMinimized}>
|
|
58
|
+
<ColumnAppMinimize aria-hidden={!isMinimized}>
|
|
59
|
+
<AbsoluteContainerMinimized isMinimized={isMinimized}>
|
|
60
|
+
<JRCIconButtonAppLeftColumn
|
|
61
|
+
icon="icon-angle-right"
|
|
62
|
+
type="button"
|
|
63
|
+
size="small"
|
|
64
|
+
onClick={onClick}
|
|
65
|
+
aria-label={intl.formatMessage({ id: 'AppLeftColumn_Open_Panel' })}
|
|
66
|
+
data-cy="open-panel-button"
|
|
67
|
+
/>
|
|
68
|
+
</AbsoluteContainerMinimized>
|
|
69
|
+
<JRCIcon name={props.icon} variant="circle" color={props.color} size={40} />
|
|
70
|
+
<nav aria-label={intl.formatMessage({ id: 'AppLeftColumn_App_Navigation' })}>
|
|
71
|
+
<AppLeftColumnIconWrapper isMinimized={isMinimized}>
|
|
72
|
+
{props.sections &&
|
|
73
|
+
props.sections.map((item, i) => (
|
|
74
|
+
<SectionMinimizesWrapper key={i}>
|
|
75
|
+
{item.entries.map((entry, k) => (
|
|
76
|
+
<Component
|
|
77
|
+
key={k}
|
|
78
|
+
entry={entry}
|
|
79
|
+
isMinimized={true}
|
|
80
|
+
activeItem={props.activeItem}
|
|
81
|
+
onClick={() => clickOnItem(entry.key)}
|
|
82
|
+
/>
|
|
83
|
+
))}
|
|
84
|
+
</SectionMinimizesWrapper>
|
|
85
|
+
))}
|
|
86
|
+
</AppLeftColumnIconWrapper>
|
|
87
|
+
</nav>
|
|
88
|
+
</ColumnAppMinimize>
|
|
89
|
+
<ColumnAppDefault aria-hidden={isMinimized} isMinimized={isMinimized} isClosed={isClosed}>
|
|
90
|
+
<JRCAppLeftColumnWrapperTop>
|
|
91
|
+
<JRCAppHeader {...props}></JRCAppHeader>
|
|
92
|
+
<AbsoluteContainer>
|
|
93
|
+
<JRCIconButtonAppLeftColumn
|
|
94
|
+
icon="icon-angle-left"
|
|
95
|
+
type="button"
|
|
96
|
+
onClick={onClick}
|
|
97
|
+
aria-label={intl.formatMessage({ id: 'AppLeftColumn_Close_Panel' })}
|
|
98
|
+
data-cy="close-panel-button"
|
|
99
|
+
/>
|
|
100
|
+
</AbsoluteContainer>
|
|
101
|
+
</JRCAppLeftColumnWrapperTop>
|
|
102
|
+
{props.sections &&
|
|
103
|
+
props.sections.map((section, index) => (
|
|
104
|
+
<MenuWrapper key={index} isMinimized={isMinimized}>
|
|
105
|
+
<TitleMenu>{section.title}</TitleMenu>
|
|
106
|
+
<JRCTabs
|
|
107
|
+
direction="vertical"
|
|
108
|
+
callback={(key: string) => props.callback && props.callback(key)}
|
|
109
|
+
activeItem={props.activeItem}
|
|
110
|
+
entries={section.entries.map((entry) => ({
|
|
111
|
+
...entry,
|
|
112
|
+
label: Component({
|
|
113
|
+
entry,
|
|
114
|
+
onClick: () => {
|
|
115
|
+
/**/
|
|
116
|
+
},
|
|
117
|
+
}),
|
|
118
|
+
}))}
|
|
119
|
+
/>
|
|
120
|
+
</MenuWrapper>
|
|
121
|
+
))}
|
|
122
|
+
</ColumnAppDefault>
|
|
123
|
+
</ColumnRelativeTransition>
|
|
124
|
+
</ColumnRelativeSticky>
|
|
125
|
+
</ColumnRelativeWrapper>
|
|
126
|
+
);
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
export { JRCAppLeftColumn };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface of each section item
|
|
3
|
+
* @member title title of section
|
|
4
|
+
* @member entries List item of menu
|
|
5
|
+
*/
|
|
6
|
+
export interface Section<T> {
|
|
7
|
+
title: string;
|
|
8
|
+
entries: T[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Interface of elements for each item menu
|
|
13
|
+
* @member key key of each item
|
|
14
|
+
* @member icon element icon for item
|
|
15
|
+
* @member label label of item
|
|
16
|
+
* @member attribute attribut of item
|
|
17
|
+
*/
|
|
18
|
+
export interface SectionEntry {
|
|
19
|
+
key: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
label: string;
|
|
22
|
+
attribute?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Interface of menu props
|
|
27
|
+
* @member entry List of Item props
|
|
28
|
+
* @member isMinimized boolean if column left is minimized
|
|
29
|
+
* @member activeItem optional index [0,items.length-1] of the defaultActive item when mounting
|
|
30
|
+
* @member onClick tab selection handler
|
|
31
|
+
*/
|
|
32
|
+
export interface MenuComponentProps<T> {
|
|
33
|
+
entry: T;
|
|
34
|
+
isMinimized?: boolean;
|
|
35
|
+
activeItem?: string;
|
|
36
|
+
onClick: (key: string) => void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Interface to provide JRCAppLeftColumn props
|
|
41
|
+
* @member icon icon header for column left
|
|
42
|
+
* @member color color of the icon
|
|
43
|
+
* @member title title of the app on column left
|
|
44
|
+
* @member description description of the app on column left
|
|
45
|
+
* @member sections List of sections
|
|
46
|
+
* @member isMinimized boolean if column left is minimized
|
|
47
|
+
* @member activeItem optional index [0,items.length-1] of the defaultActive item when mounting
|
|
48
|
+
* @member callback tab selection handler
|
|
49
|
+
* @member Component element of each items menu.
|
|
50
|
+
*/
|
|
51
|
+
export type JRCAppLeftColumnProps<T extends SectionEntry> = {
|
|
52
|
+
icon: string;
|
|
53
|
+
color: string;
|
|
54
|
+
title: string;
|
|
55
|
+
description: string;
|
|
56
|
+
sections?: Section<T>[];
|
|
57
|
+
isMinimized?: boolean;
|
|
58
|
+
activeItem?: string;
|
|
59
|
+
callback?: (key: string) => void;
|
|
60
|
+
Component?: (props: MenuComponentProps<T>) => React.ReactElement;
|
|
61
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SectionEntry, MenuComponentProps } from './JRCAppLeftColumn.types';
|
|
3
|
+
import { ItemsIcon } from './JRCAppLeftColumn.styles';
|
|
4
|
+
import JRCIcon from '../JRCIcon/JRCIcon';
|
|
5
|
+
import { JRCMenuItem } from 'components/JRCMenuItem/JRCMenuItem';
|
|
6
|
+
import { JRCTooltip } from '../JRCTooltip/JRCTooltip';
|
|
7
|
+
|
|
8
|
+
export const JRCDefaultMenu = <T extends SectionEntry>(props: MenuComponentProps<T>) => {
|
|
9
|
+
return (
|
|
10
|
+
<>
|
|
11
|
+
{props.isMinimized ? (
|
|
12
|
+
<ItemsIcon
|
|
13
|
+
key={props.entry.key}
|
|
14
|
+
isActive={props.activeItem == props.entry.key}
|
|
15
|
+
aria-label={props.entry.label}
|
|
16
|
+
onClick={() => props.onClick(props.entry.key)}>
|
|
17
|
+
<JRCTooltip description={props.entry.label} position="right">
|
|
18
|
+
<JRCIcon
|
|
19
|
+
name={props.entry.icon}
|
|
20
|
+
size={20}
|
|
21
|
+
color={props.activeItem == props.entry.key ? 'overseas' : 'grey4'}
|
|
22
|
+
/>
|
|
23
|
+
</JRCTooltip>
|
|
24
|
+
</ItemsIcon>
|
|
25
|
+
) : (
|
|
26
|
+
<JRCMenuItem
|
|
27
|
+
attr={props.entry.attribute}
|
|
28
|
+
icon={props.entry.icon}
|
|
29
|
+
label={props.entry.label}
|
|
30
|
+
size={16}></JRCMenuItem>
|
|
31
|
+
)}
|
|
32
|
+
</>
|
|
33
|
+
);
|
|
34
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import JRCAvatar, { JRCAvatarProps } from './JRCAvatar';
|
|
4
|
+
import { Meta, Story } from '@storybook/react';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'JRCAvatar',
|
|
8
|
+
component: JRCAvatar,
|
|
9
|
+
} as Meta;
|
|
10
|
+
|
|
11
|
+
const Template: Story<JRCAvatarProps> = (args) => (
|
|
12
|
+
<>
|
|
13
|
+
<JRCAvatar {...args} />
|
|
14
|
+
{/*
|
|
15
|
+
// @ts-ignore FIXME remove that when upgrading to typescript version > 4.2.x */}
|
|
16
|
+
<JRCAvatar {...args} subAvatar={{ alt: args.alt, type: args.type, recordId: args.recordId }} />
|
|
17
|
+
</>
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
export const Primary = Template.bind({});
|
|
21
|
+
const args: JRCAvatarProps = {
|
|
22
|
+
size: 3,
|
|
23
|
+
variant: 'circle',
|
|
24
|
+
alt: 'Texte alternatif',
|
|
25
|
+
/*
|
|
26
|
+
// @ts-ignore FIXME remove that when upgrading to typescript version > 4.2.x */
|
|
27
|
+
type: 'user',
|
|
28
|
+
recordId: '1234',
|
|
29
|
+
};
|
|
30
|
+
Primary.args = args;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { renderWithWrapper } from 'utils/test-utils';
|
|
3
|
+
import { screen } from '@testing-library/react';
|
|
4
|
+
|
|
5
|
+
import JRCAvatar from './JRCAvatar';
|
|
6
|
+
|
|
7
|
+
describe('JRCAvatar', () => {
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
10
|
+
// @ts-ignore FIXME remove that when upgrading to typescript version > 4.2.x
|
|
11
|
+
renderWithWrapper(<JRCAvatar type="user" recordId="1234" size="3" alt="avatar of user John Doe" />);
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
test('medium avatar to have a proper size', () => {
|
|
15
|
+
expect(screen.getByRole('img')).toHaveAttribute('width', '24');
|
|
16
|
+
expect(screen.getByRole('img')).toHaveAttribute('height', '24');
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
test('medium avatar to download an img twice the container size', () => {
|
|
20
|
+
expect(screen.getByRole('img')).toHaveAttribute('src', '/imagecache/48x48/user/1234.png');
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import JRCImg, { JRCImgProps } from '../JRCImg/JRCImg';
|
|
5
|
+
import { JRCConditionalWrapper } from '../Common/JRCConditionalWrapper';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Props type for JRCAvatar
|
|
9
|
+
* @see JRCImgProps
|
|
10
|
+
* /!\ It is not recommended to use the url property as it will result in overriding
|
|
11
|
+
* the default image size
|
|
12
|
+
*
|
|
13
|
+
* @property size, multiple of 8px - The avatar image is downloaded
|
|
14
|
+
* with a size twice of the circle/square container in order to make it clear
|
|
15
|
+
* in retina like screens. default: xs
|
|
16
|
+
* @property variant, optional 'circle' | 'square' - default: circle
|
|
17
|
+
* @property focusable - whether the element is focusable. Independent of onClick property
|
|
18
|
+
* @property subAvatar - represent a miniature avatar on the bottom right corner
|
|
19
|
+
* @property className - className passed to the div wrapper
|
|
20
|
+
* @property cssColor - background-color
|
|
21
|
+
* @property from - image base url (imagestatic | imagecache)
|
|
22
|
+
*/
|
|
23
|
+
export type JRCAvatarProps = Omit<JRCImgProps, 'size' | 'width' | 'height' | 'alt'> & {
|
|
24
|
+
uri?: string;
|
|
25
|
+
size?: number;
|
|
26
|
+
variant?: 'circle' | 'square';
|
|
27
|
+
focusable?: boolean;
|
|
28
|
+
subAvatar?: Omit<JRCImgProps, 'size' | 'width' | 'height'>;
|
|
29
|
+
className?: string;
|
|
30
|
+
cssColor?: string;
|
|
31
|
+
alt?: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const BASE_MULTIPLE = 8;
|
|
35
|
+
|
|
36
|
+
type ExtendedImgProps = {
|
|
37
|
+
variant?: 'circle' | 'square';
|
|
38
|
+
focusable?: boolean;
|
|
39
|
+
width: number;
|
|
40
|
+
cssColor: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* border is calculated to be 2px when the avatar is 24px in width and 4px when the avatar is 80px
|
|
45
|
+
*/
|
|
46
|
+
const Avatar = styled(JRCImg).attrs<ExtendedImgProps>((props) => ({
|
|
47
|
+
...props,
|
|
48
|
+
border: props.width / 28 + 8 / 7,
|
|
49
|
+
}))<ExtendedImgProps & { border: number }>`
|
|
50
|
+
cursor: ${(props) => (props.focusable ? 'pointer' : 'default')};
|
|
51
|
+
border-radius: ${(props) => (props.variant === 'square' ? '20%' : '50%')};
|
|
52
|
+
background-color: ${(props) => props.cssColor || 'transparent'};
|
|
53
|
+
vertical-align: middle;
|
|
54
|
+
& + img {
|
|
55
|
+
border: ${(props) => props.border}px solid white;
|
|
56
|
+
box-sizing: content-box;
|
|
57
|
+
margin-left: -${(props) => props.width / 2 + props.border}px;
|
|
58
|
+
margin-bottom: -${(props) => props.border}px;
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
61
|
+
|
|
62
|
+
const JRCAvatar = (props: JRCAvatarProps) => {
|
|
63
|
+
const { subAvatar, className, size, from, format, alt, ...otherProps } = props;
|
|
64
|
+
const imgSize = (size || 3) * BASE_MULTIPLE;
|
|
65
|
+
return (
|
|
66
|
+
<JRCConditionalWrapper
|
|
67
|
+
condition={!!props.subAvatar}
|
|
68
|
+
wrapper={(children) => <div className={className}>{children}</div>}>
|
|
69
|
+
<>
|
|
70
|
+
{React.createElement(Avatar, {
|
|
71
|
+
...otherProps,
|
|
72
|
+
width: imgSize,
|
|
73
|
+
height: imgSize,
|
|
74
|
+
format: format,
|
|
75
|
+
alt: alt,
|
|
76
|
+
'aria-hidden': alt ? undefined : true,
|
|
77
|
+
from: from ?? 'imagecache/',
|
|
78
|
+
} as any)}
|
|
79
|
+
{props.subAvatar &&
|
|
80
|
+
React.createElement(Avatar, {
|
|
81
|
+
...subAvatar,
|
|
82
|
+
from: subAvatar?.from || 'imagecache/',
|
|
83
|
+
width: imgSize / 2,
|
|
84
|
+
height: imgSize / 2,
|
|
85
|
+
} as any)}
|
|
86
|
+
</>
|
|
87
|
+
</JRCConditionalWrapper>
|
|
88
|
+
);
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export default JRCAvatar;
|