@pfct/purple 1.3.8-rc.2 → 1.4.0-npm-test.2
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/.history/.eslintrc.config_20240620114140.js +39 -0
- package/.history/.eslintrc.config_20240620130453.js +164 -0
- package/.history/.eslintrc_20230510193851.json +164 -0
- package/.history/.eslintrc_20240620114141.json +39 -0
- package/.history/.eslintrc_20240620131751.js +164 -0
- package/.history/.eslintrc_20240620132945.js +164 -0
- package/.history/.eslintrc_20240620133123.js +163 -0
- package/.history/.eslintrc_20240620133153.js +164 -0
- package/.history/.gitignore_20240620105113 +21 -0
- package/.history/.husky/commit-msg_20230510193851 +4 -0
- package/.history/.husky/commit-msg_20240620132755 +4 -0
- package/.history/.storybook/main_20230511183243.ts +15 -0
- package/.history/.storybook/main_20240620103059.ts +9 -0
- package/.history/.storybook/main_20240620103349.ts +15 -0
- package/.history/config-overrides_20230523140429.js +7 -0
- package/.history/config-overrides_20230523140438.js +7 -0
- package/.history/config-overrides_20230523140456.js +7 -0
- package/.history/config-overrides_20230523140500.js +7 -0
- package/.history/config-overrides_20230523141258.js +8 -0
- package/.history/config-overrides_20230523141523.js +15 -0
- package/.history/config-overrides_20230523141527.js +14 -0
- package/.history/config-overrides_20230523141528.js +14 -0
- package/.history/config-overrides_20230523141828.js +7 -0
- package/.history/config-overrides_20230523142043.js +7 -0
- package/.history/config-overrides_20230523144759.js +7 -0
- package/.history/config-overrides_20230523144844.js +7 -0
- package/.history/config-overrides_20230523145025.js +8 -0
- package/.history/config-overrides_20230523145244.js +8 -0
- package/.history/config-overrides_20230523145557.js +8 -0
- package/.history/config-overrides_20230523145640.js +8 -0
- package/.history/config-overrides_20230523145642.js +8 -0
- package/.history/config-overrides_20230523150101.js +8 -0
- package/.history/config-overrides_20230523150817.js +8 -0
- package/.history/config-overrides_20230523151011.js +8 -0
- package/.history/config-overrides_20230523151022.js +8 -0
- package/.history/config-overrides_20230523151050.js +8 -0
- package/.history/config-overrides_20230523151057.js +8 -0
- package/.history/config-overrides_20230523155303.js +5 -0
- package/.history/config-overrides_20230524135448.js +6 -0
- package/.history/e2e/pages/dist/index_20230518173449.html +15 -0
- package/.history/e2e/pages/dist/index_20230518182705.html +20 -0
- package/.history/e2e/pages/dist/index_20230522152456.html +18 -0
- package/.history/e2e/pages/dist/index_20230522152506.html +16 -0
- package/.history/e2e/pages/index_20230511135904.html +15 -0
- package/.history/e2e/pages/index_20230511173402.html +21 -0
- package/.history/e2e/pages/index_20230511173459.html +21 -0
- package/.history/e2e/pages/index_20230511173549.html +17 -0
- package/.history/e2e/pages/index_20230511174725.html +366 -0
- package/.history/e2e/pages/index_20230511174818.html +18 -0
- package/.history/e2e/pages/index_20230511175151.html +366 -0
- package/.history/e2e/pages/index_20230511180114.html +15 -0
- package/.history/e2e/pages/index_20230518182740.html +20 -0
- package/.history/e2e/pages/index_20230518182804.html +21 -0
- package/.history/e2e/pages/index_20230522153300.html +15 -0
- package/.history/e2e/pages/public/index_20230523135713.html +15 -0
- package/.history/e2e/pages/public/index_20230523141954.html +14 -0
- package/.history/e2e/pages/src/api/index_20230510193933.ts +26 -0
- package/.history/e2e/pages/src/api/index_20230511113640.ts +26 -0
- package/.history/e2e/pages/src/api/index_20230511151752.ts +26 -0
- package/.history/e2e/pages/src/components/Loading_20230511175734.tsx +12 -0
- package/.history/e2e/pages/src/components/Loading_20230511175931.tsx +14 -0
- package/.history/e2e/pages/src/index.styled_20230510193933.ts +13 -0
- package/.history/e2e/pages/src/index.styled_20230511151410.ts +13 -0
- package/.history/e2e/pages/src/index.styled_20230511151526.ts +13 -0
- package/.history/e2e/pages/src/index.styled_20230511151814.ts +13 -0
- package/.history/e2e/pages/src/index.styled_20230511172842.ts +14 -0
- package/.history/e2e/pages/src/index.styled_20230511172927.ts +15 -0
- package/.history/e2e/pages/src/index.styled_20230511172936.ts +16 -0
- package/.history/e2e/pages/src/index.styled_20230511173014.ts +13 -0
- package/.history/e2e/pages/src/index_20230510193933.tsx +64 -0
- package/.history/e2e/pages/src/index_20230511112721.tsx +64 -0
- package/.history/e2e/pages/src/index_20230511124302.tsx +77 -0
- package/.history/e2e/pages/src/index_20230511124322.tsx +77 -0
- package/.history/e2e/pages/src/index_20230511124506.tsx +72 -0
- package/.history/e2e/pages/src/index_20230511124716.tsx +72 -0
- package/.history/e2e/pages/src/index_20230511133409.tsx +72 -0
- package/.history/e2e/pages/src/index_20230511141608.tsx +77 -0
- package/.history/e2e/pages/src/index_20230511141609.tsx +77 -0
- package/.history/e2e/pages/src/index_20230511142059.tsx +77 -0
- package/.history/e2e/pages/src/index_20230511144242.tsx +77 -0
- package/.history/e2e/pages/src/index_20230511145239.tsx +81 -0
- package/.history/e2e/pages/src/index_20230511145611.tsx +81 -0
- package/.history/e2e/pages/src/index_20230511150038.tsx +81 -0
- package/.history/e2e/pages/src/index_20230511150332.tsx +87 -0
- package/.history/e2e/pages/src/index_20230511150409.tsx +87 -0
- package/.history/e2e/pages/src/index_20230511150806.tsx +96 -0
- package/.history/e2e/pages/src/index_20230511150921.tsx +96 -0
- package/.history/e2e/pages/src/index_20230511151119.tsx +96 -0
- package/.history/e2e/pages/src/index_20230511151212.tsx +89 -0
- package/.history/e2e/pages/src/index_20230511151213.tsx +89 -0
- package/.history/e2e/pages/src/index_20230511151402.tsx +86 -0
- package/.history/e2e/pages/src/index_20230511151506.tsx +79 -0
- package/.history/e2e/pages/src/index_20230511151508.tsx +75 -0
- package/.history/e2e/pages/src/index_20230511153005.tsx +71 -0
- package/.history/e2e/pages/src/index_20230511153107.tsx +73 -0
- package/.history/e2e/pages/src/index_20230511153108.tsx +73 -0
- package/.history/e2e/pages/src/index_20230511153531.tsx +76 -0
- package/.history/e2e/pages/src/index_20230511153708.tsx +73 -0
- package/.history/e2e/pages/src/index_20230511153839.tsx +75 -0
- package/.history/e2e/pages/src/index_20230511154213.tsx +81 -0
- package/.history/e2e/pages/src/index_20230511154216.tsx +79 -0
- package/.history/e2e/pages/src/index_20230511154409.tsx +83 -0
- package/.history/e2e/pages/src/index_20230511154449.tsx +85 -0
- package/.history/e2e/pages/src/index_20230511154635.tsx +91 -0
- package/.history/e2e/pages/src/index_20230511154636.tsx +91 -0
- package/.history/e2e/pages/src/index_20230511154930.tsx +96 -0
- package/.history/e2e/pages/src/index_20230511154944.tsx +94 -0
- package/.history/e2e/pages/src/index_20230511154945.tsx +93 -0
- package/.history/e2e/pages/src/index_20230511155010.tsx +91 -0
- package/.history/e2e/pages/src/index_20230511160112.tsx +92 -0
- package/.history/e2e/pages/src/index_20230511160930.tsx +92 -0
- package/.history/e2e/pages/src/index_20230511161050.tsx +92 -0
- package/.history/e2e/pages/src/index_20230511161157.tsx +93 -0
- package/.history/e2e/pages/src/index_20230511161212.tsx +93 -0
- package/.history/e2e/pages/src/index_20230511161244.tsx +92 -0
- package/.history/e2e/pages/src/index_20230511161304.tsx +92 -0
- package/.history/e2e/pages/src/index_20230511161307.tsx +92 -0
- package/.history/e2e/pages/src/index_20230511161344.tsx +92 -0
- package/.history/e2e/pages/src/index_20230511161426.tsx +98 -0
- package/.history/e2e/pages/src/index_20230511161627.tsx +101 -0
- package/.history/e2e/pages/src/index_20230511161654.tsx +101 -0
- package/.history/e2e/pages/src/index_20230511161714.tsx +102 -0
- package/.history/e2e/pages/src/index_20230511161721.tsx +103 -0
- package/.history/e2e/pages/src/index_20230511161739.tsx +105 -0
- package/.history/e2e/pages/src/index_20230511161856.tsx +104 -0
- package/.history/e2e/pages/src/index_20230511162002.tsx +105 -0
- package/.history/e2e/pages/src/index_20230511162106.tsx +106 -0
- package/.history/e2e/pages/src/index_20230511163614.tsx +109 -0
- package/.history/e2e/pages/src/index_20230511163744.tsx +109 -0
- package/.history/e2e/pages/src/index_20230511165031.tsx +112 -0
- package/.history/e2e/pages/src/index_20230511165033.tsx +111 -0
- package/.history/e2e/pages/src/index_20230511165356.tsx +112 -0
- package/.history/e2e/pages/src/index_20230511165613.tsx +113 -0
- package/.history/e2e/pages/src/index_20230511165615.tsx +113 -0
- package/.history/e2e/pages/src/index_20230511170431.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511170448.tsx +122 -0
- package/.history/e2e/pages/src/index_20230511170740.tsx +123 -0
- package/.history/e2e/pages/src/index_20230511170856.tsx +123 -0
- package/.history/e2e/pages/src/index_20230511170952.tsx +124 -0
- package/.history/e2e/pages/src/index_20230511171513.tsx +119 -0
- package/.history/e2e/pages/src/index_20230511171555.tsx +119 -0
- package/.history/e2e/pages/src/index_20230511171611.tsx +119 -0
- package/.history/e2e/pages/src/index_20230511171832.tsx +120 -0
- package/.history/e2e/pages/src/index_20230511171850.tsx +120 -0
- package/.history/e2e/pages/src/index_20230511172356.tsx +113 -0
- package/.history/e2e/pages/src/index_20230511172732.tsx +118 -0
- package/.history/e2e/pages/src/index_20230511172752.tsx +116 -0
- package/.history/e2e/pages/src/index_20230511172825.tsx +116 -0
- package/.history/e2e/pages/src/index_20230511173028.tsx +115 -0
- package/.history/e2e/pages/src/index_20230511173124.tsx +114 -0
- package/.history/e2e/pages/src/index_20230511173144.tsx +115 -0
- package/.history/e2e/pages/src/index_20230511173209.tsx +119 -0
- package/.history/e2e/pages/src/index_20230511173213.tsx +119 -0
- package/.history/e2e/pages/src/index_20230511173235.tsx +123 -0
- package/.history/e2e/pages/src/index_20230511173238.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511173303.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511173312.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511173604.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511173623.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511173628.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511174842.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175122.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175133.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175327.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175329.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175343.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175344.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175345.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175412.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175422.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175426.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175501.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175515.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175521.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175530.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175538.tsx +123 -0
- package/.history/e2e/pages/src/index_20230511175542.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175602.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175621.tsx +121 -0
- package/.history/e2e/pages/src/index_20230511175813.tsx +116 -0
- package/.history/e2e/pages/src/index_20230511175819.tsx +116 -0
- package/.history/e2e/pages/src/index_20230511175844.tsx +116 -0
- package/.history/e2e/pages/src/index_20230511175845.tsx +116 -0
- package/.history/e2e/pages/src/index_20230511180023.tsx +118 -0
- package/.history/e2e/pages/src/index_20230511182316.tsx +125 -0
- package/.history/e2e/pages/src/index_20230511182608.tsx +125 -0
- package/.history/e2e/pages/src/index_20230511182609.tsx +125 -0
- package/.history/e2e/pages/src/index_20230511182757.tsx +125 -0
- package/.history/e2e/pages/src/index_20230511182903.tsx +125 -0
- package/.history/e2e/pages/src/index_20230511182937.tsx +126 -0
- package/.history/e2e/pages/src/index_20230511182948.tsx +125 -0
- package/.history/e2e/pages/src/index_20230511183018.tsx +125 -0
- package/.history/e2e/pages/src/index_20230511183133.tsx +125 -0
- package/.history/e2e/pages/src/index_20230512155015.tsx +125 -0
- package/.history/e2e/pages/src/index_20230523142330.tsx +126 -0
- package/.history/e2e/pages/src/index_20230523142331.tsx +126 -0
- package/.history/e2e/pages/src/index_20230524135532.tsx +125 -0
- package/.history/e2e/pages/src/index_20230524221001.tsx +125 -0
- package/.history/e2e/pages/src/index_20230524221118.tsx +125 -0
- package/.history/e2e/pages/src/util/index_20230510193933.ts +72 -0
- package/.history/e2e/pages/src/util/index_20230511160018.ts +73 -0
- package/.history/e2e/pages/src/util/index_20230511160344.ts +74 -0
- package/.history/e2e/pages/src/util/index_20230511160737.ts +75 -0
- package/.history/e2e/pages/src/util/index_20230511160755.ts +75 -0
- package/.history/e2e/pages/src/util/index_20230511160837.ts +73 -0
- package/.history/e2e/pages/src/util/index_20230511161107.ts +72 -0
- package/.history/e2e/pages/src/util/index_20230511172301.ts +81 -0
- package/.history/e2e/pages/src/util/index_20230512154151.ts +89 -0
- package/.history/e2e/pages/src/util/index_20230512154521.ts +98 -0
- package/.history/e2e/pages/src/util/index_20230512154722.ts +98 -0
- package/.history/e2e/pages/src/util/index_20230512154913.ts +91 -0
- package/.history/e2e/pages/src/util/index_20230512155144.ts +91 -0
- package/.history/e2e/pages/src/util/index_20230512155145.ts +91 -0
- package/.history/e2e/pages/src/util/index_20230512155146.ts +91 -0
- package/.history/e2e/pages/src/util/index_20230512155153.ts +90 -0
- package/.history/e2e/pages/src/util/index_20230512155624.ts +90 -0
- package/.history/e2e/pages/src/util/index_20230512155741.ts +90 -0
- package/.history/e2e/pages/src/util/index_20230512155917.ts +90 -0
- package/.history/e2e/pages/src/util/index_20230524221047.ts +97 -0
- package/.history/e2e/pages/webpack.config_20230510193933.js +30 -0
- package/.history/e2e/pages/webpack.config_20230511144239.js +39 -0
- package/.history/e2e/pages/webpack.config_20230511144341.js +39 -0
- package/.history/e2e/pages/webpack.config_20230511144430.js +39 -0
- package/.history/e2e/pages/webpack.config_20230511144644.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511144645.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511144753.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511144802.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511144845.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511144926.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511144934.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511144943.js +40 -0
- package/.history/e2e/pages/webpack.config_20230511145020.js +39 -0
- package/.history/e2e/pages/webpack.config_20230511145106.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511145716.js +41 -0
- package/.history/e2e/pages/webpack.config_20230511145916.js +36 -0
- package/.history/e2e/pages/webpack.config_20230518173344.js +37 -0
- package/.history/e2e/pages/webpack.config_20230518174552.js +36 -0
- package/.history/e2e/pages/webpack.config_20230523133653.js +35 -0
- package/.history/e2e/public/index_20230524155527.html +43 -0
- package/.history/e2e/public/index_20230524162254.html +43 -0
- package/.history/e2e/public/index_20230524185229.html +37 -0
- package/.history/e2e/public/index_20230524215646.html +13 -0
- package/.history/e2e/public/index_20230524215648.html +12 -0
- package/.history/e2e/src/api/index_20230524161035.ts +26 -0
- package/.history/e2e/src/api/index_20230524215532.ts +26 -0
- package/.history/e2e/src/components/Home/index_20230524161228.tsx +125 -0
- package/.history/e2e/src/components/Home/index_20230524161356.tsx +116 -0
- package/.history/e2e/src/components/Home/index_20230524161420.tsx +115 -0
- package/.history/e2e/src/components/Home/index_20230524161442.tsx +115 -0
- package/.history/e2e/src/components/Home/index_20230525002542.tsx +123 -0
- package/.history/e2e/src/components/Home/index_20230525002658.tsx +125 -0
- package/.history/e2e/src/components/Home/index_20230525002730.tsx +126 -0
- package/.history/e2e/src/index_20230524155527.tsx +19 -0
- package/.history/e2e/src/index_20230524161122.tsx +125 -0
- package/.history/e2e/src/index_20230524161206.tsx +19 -0
- package/.history/e2e/src/index_20230524161343.tsx +17 -0
- package/.history/e2e/src/index_20230524161927.tsx +12 -0
- package/.history/e2e/src/index_20230524161943.tsx +11 -0
- package/.history/e2e/src/index_20230524215444.tsx +16 -0
- package/.history/e2e/src/util/index_20230524222013.ts +96 -0
- package/.history/e2e/src/util/index_20230525000927.ts +96 -0
- package/.history/e2e/src/util/index_20230525000928.ts +96 -0
- package/.history/e2e/src/util/index_20230525001227.ts +97 -0
- package/.history/e2e/src/util/index_20230525001229.ts +97 -0
- package/.history/e2e/src/util/index_20230525001439.ts +97 -0
- package/.history/e2e/src/util/index_20230525001641.ts +101 -0
- package/.history/e2e/src/util/index_20230525001953.ts +100 -0
- package/.history/e2e/src/util/index_20230525002514.ts +100 -0
- package/.history/e2e/src/util/index_20230525002533.ts +100 -0
- package/.history/ops/buildspec_20240620105123.yml +17 -0
- package/.history/package_20240620101011.json +176 -0
- package/.history/package_20240620102132.json +180 -0
- package/.history/package_20240620102136.json +179 -0
- package/.history/package_20240620102151.json +179 -0
- package/.history/package_20240620102153.json +179 -0
- package/.history/package_20240620102228.json +180 -0
- package/.history/package_20240620102534.json +181 -0
- package/.history/package_20240620102955.json +180 -0
- package/.history/package_20240620103103.json +181 -0
- package/.history/package_20240620103105.json +180 -0
- package/.history/package_20240620103120.json +181 -0
- package/.history/package_20240620103532.json +181 -0
- package/.history/package_20240620103741.json +181 -0
- package/.history/package_20240620103803.json +181 -0
- package/.history/package_20240620105356.json +181 -0
- package/.history/package_20240620110005.json +181 -0
- package/.history/package_20240620110042.json +172 -0
- package/.history/package_20240620131821.json +181 -0
- package/.history/package_20240620133118.json +179 -0
- package/.history/package_20240620133317.json +179 -0
- package/.history/package_20240620133341.json +179 -0
- package/.history/package_20240620135524.json +178 -0
- package/.history/public/index_20230523141735.html +15 -0
- package/.history/public/index_20230523141958.html +14 -0
- package/.history/src/components/Button/BaseButton/index_20240620100732.tsx +101 -0
- package/.history/src/components/Button/BaseButton/index_20240704140342.tsx +103 -0
- package/.history/src/components/Button/BaseButton/index_20240704140358.tsx +103 -0
- package/.history/src/components/Button/BaseButton/index_20240704140500.tsx +101 -0
- package/.history/src/components/Button/BaseButton/index_20240704140632.tsx +103 -0
- package/.history/src/components/Button/BaseButton/index_20240704140652.tsx +106 -0
- package/.history/src/components/Button/BaseButton/index_20240704140700.tsx +107 -0
- package/.history/src/components/Button/BaseButton/index_20240704140711.tsx +108 -0
- package/.history/src/components/Button/BaseButton/index_20240704140714.tsx +106 -0
- package/.history/src/components/Button/BaseButton/index_20240704140717.tsx +106 -0
- package/.history/src/components/Button/BaseButton/index_20240704140900.tsx +105 -0
- package/.history/src/components/Button/BaseButton/index_20240704140926.tsx +106 -0
- package/.history/src/components/Button/BaseButton/index_20240704140954.tsx +105 -0
- package/.history/src/components/Button/BaseButton/index_20240704141107.tsx +105 -0
- package/.history/src/components/Button/BaseButton/index_20240704141112.tsx +103 -0
- package/.history/src/components/Button/DoubleButton/index_20240620100732.tsx +53 -0
- package/.history/src/components/Button/DoubleButton/index_20240620133519.tsx +53 -0
- package/.history/src/components/Button/DoubleButton/index_20240620133607.tsx +53 -0
- package/.history/src/components/Control/CheckBox/index_20231208085202.tsx +51 -0
- package/.history/src/components/Control/CheckBox/index_20240102131509.tsx +53 -0
- package/.history/src/components/Control/CheckMark/index_20231208110651.tsx +33 -0
- package/.history/src/components/Control/CheckMark/index_20240104141745.tsx +35 -0
- package/.history/src/components/Input/BaseInput/index.styled_20230518172815.ts +149 -0
- package/.history/src/components/Input/BaseInput/index.styled_20230620134104.ts +150 -0
- package/.history/src/components/Input/BaseInput/index.styled_20230620153553.ts +150 -0
- package/.history/src/components/Input/BaseInput/index.styled_20230620162224.ts +151 -0
- package/.history/src/components/Input/PostfixInput/index.styled_20230518172815.ts +71 -0
- package/.history/src/components/Input/PostfixInput/index.styled_20230619181154.ts +72 -0
- package/.history/src/components/Input/PostfixInput/index.styled_20230619181243.ts +71 -0
- package/.history/src/components/Input/PostfixInput/index.styled_20230619181840.ts +70 -0
- package/.history/src/components/Input/PostfixInput/index.styled_20230619181843.ts +70 -0
- package/.history/src/components/Input/PostfixInput/index.styled_20230619181844.ts +70 -0
- package/.history/src/components/Input/PostfixInput/index.styled_20230620110646.ts +70 -0
- package/.history/src/components/Input/PostfixInput/index_20231208085501.tsx +173 -0
- package/.history/src/components/Input/PostfixInput/index_20231208085544.tsx +174 -0
- package/.history/src/components/Input/PostfixInput/index_20231208085701.tsx +175 -0
- package/.history/src/components/Input/PostfixInput/index_20231208090034.tsx +175 -0
- package/.history/src/components/Input/PostfixInput/index_20231208110722.tsx +174 -0
- package/.history/src/components/Input/PostfixInput/index_20231208110738.tsx +175 -0
- package/.history/src/components/Input/PostfixInput/index_20231208110752.tsx +176 -0
- package/.history/src/components/Input/index.stories_20230523113113.tsx +209 -0
- package/.history/src/components/Input/index.stories_20230619181021.tsx +210 -0
- package/.history/src/components/Input/index.stories_20230619181656.tsx +210 -0
- package/.history/src/components/Input/index.stories_20230619184317.tsx +210 -0
- package/.history/src/components/Loading/index_20230510193851.ts +4 -0
- package/.history/src/components/Loading/index_20230511140917.ts +5 -0
- package/.history/src/components/Loading/index_20230511151553.ts +4 -0
- package/.history/src/core/TextStyles/index_20230518172815.ts +158 -0
- package/.history/src/core/TextStyles/index_20230522164636.ts +158 -0
- package/.history/src/hooks/useLayoutIsMobile_20230510193851.ts +23 -0
- package/.history/src/hooks/useLayoutIsMobile_20240112115425.ts +23 -0
- package/.history/src/library/BasicLayout/index_20240620100732.tsx +89 -0
- package/.history/src/library/BasicLayout/index_20240620101635.tsx +89 -0
- package/.history/src/library/BasicLayout/index_20240620101752.tsx +89 -0
- package/.history/src/library/Flex/index.stories_20231208085202.tsx +41 -0
- package/.history/src/library/Flex/index.stories_20240620133414.tsx +41 -0
- package/.history/src/storybook/extend-color-type.stories_20240620100732.tsx +613 -0
- package/.history/src/storybook/extend-color-type.stories_20240620133449.tsx +613 -0
- package/.history/src/storybook/extend-color-type.stories_20240620133541.tsx +611 -0
- package/.history/src/storybook/extend-color-type.stories_20240620133550.tsx +609 -0
- package/.history/src/storybook/extend-color-type.stories_20240620133554.tsx +609 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240620100732.ts +109 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153725.ts +110 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153726.ts +110 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153826.ts +105 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153909.ts +110 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153934.ts +111 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153935.ts +111 -0
- package/.history/src/utils/GenerateColorStyle/single-button_20240704141120.ts +109 -0
- package/.history/yarn_20230510193944.lock +11943 -0
- package/.history/yarn_20230510194159.lock +11941 -0
- package/.vscode/settings.json +3 -0
- package/dist/components/Button/BaseButton/index.js +4 -2
- package/package.json +1 -1
- package/.build-storybook/1341.036b0413.iframe.bundle.js +0 -1
- package/.build-storybook/172.ea02123e.iframe.bundle.js +0 -1
- package/.build-storybook/1965.108e3614.iframe.bundle.js +0 -121
- package/.build-storybook/1965.108e3614.iframe.bundle.js.map +0 -1
- package/.build-storybook/2109.fd83da5e.iframe.bundle.js +0 -46
- package/.build-storybook/2109.fd83da5e.iframe.bundle.js.map +0 -1
- package/.build-storybook/2333.5709f3ed.iframe.bundle.js +0 -1
- package/.build-storybook/2991.a6871641.iframe.bundle.js +0 -1
- package/.build-storybook/4441.b93be02f.iframe.bundle.js +0 -1
- package/.build-storybook/4446.d823cd23.iframe.bundle.js +0 -1
- package/.build-storybook/4463.3b9d4be9.iframe.bundle.js +0 -44
- package/.build-storybook/4463.3b9d4be9.iframe.bundle.js.map +0 -1
- package/.build-storybook/4582.f3cf3997.iframe.bundle.js +0 -2
- package/.build-storybook/4582.f3cf3997.iframe.bundle.js.LICENSE.txt +0 -8
- package/.build-storybook/4698.02da77bd.iframe.bundle.js +0 -1
- package/.build-storybook/5661.6b60a6b3.iframe.bundle.js +0 -1
- package/.build-storybook/5898.17981f3a.iframe.bundle.js +0 -1
- package/.build-storybook/7058.5208eb63.iframe.bundle.js +0 -1
- package/.build-storybook/782.4c3df606.iframe.bundle.js +0 -402
- package/.build-storybook/782.4c3df606.iframe.bundle.js.LICENSE.txt +0 -56
- package/.build-storybook/782.4c3df606.iframe.bundle.js.map +0 -1
- package/.build-storybook/7856.80667440.iframe.bundle.js +0 -2
- package/.build-storybook/7856.80667440.iframe.bundle.js.LICENSE.txt +0 -8
- package/.build-storybook/8923.8ce812a9.iframe.bundle.js +0 -1
- package/.build-storybook/9469.3298ca9c.iframe.bundle.js +0 -1
- package/.build-storybook/Icon-index-stories.323a8702.iframe.bundle.js +0 -2
- package/.build-storybook/Icon-index-stories.323a8702.iframe.bundle.js.LICENSE.txt +0 -8
- package/.build-storybook/components-Badge-IconBadge-index-stories.ea59237d.iframe.bundle.js +0 -1
- package/.build-storybook/components-Badge-TextBadge-index-stories.09b543af.iframe.bundle.js +0 -1
- package/.build-storybook/components-BottomSheet-NavBottomSheet-index-stories.e989d5db.iframe.bundle.js +0 -1
- package/.build-storybook/components-BottomSheet-TitleBottomSheet-index-stories.45cac11e.iframe.bundle.js +0 -1
- package/.build-storybook/components-Button-DoubleButton-index-stories.843a0709.iframe.bundle.js +0 -1
- package/.build-storybook/components-Button-SingleButton-index-stories.6c3c9169.iframe.bundle.js +0 -1
- package/.build-storybook/components-Card-index-stories.d9989606.iframe.bundle.js +0 -1
- package/.build-storybook/components-Chips-index-stories.70495338.iframe.bundle.js +0 -1
- package/.build-storybook/components-Comment-index-stories.52d9bd9f.iframe.bundle.js +0 -2
- package/.build-storybook/components-Comment-index-stories.52d9bd9f.iframe.bundle.js.LICENSE.txt +0 -8
- package/.build-storybook/components-Control-CheckBox-index-stories.9c69b383.iframe.bundle.js +0 -1
- package/.build-storybook/components-Control-CheckMark-index-stories.9e0607ae.iframe.bundle.js +0 -1
- package/.build-storybook/components-Control-RadioButton-index-stories.2cdab497.iframe.bundle.js +0 -1
- package/.build-storybook/components-Control-Switch-index-stories.9918db98.iframe.bundle.js +0 -1
- package/.build-storybook/components-DatePicker-RangeDatePicker-index-stories.fc1ae3bb.iframe.bundle.js +0 -1
- package/.build-storybook/components-DatePicker-RangeDatePickerModal-index-stories.29a5990b.iframe.bundle.js +0 -1
- package/.build-storybook/components-DatePicker-SingleDatePicker-index-stories.237e8b4a.iframe.bundle.js +0 -1
- package/.build-storybook/components-DatePicker-SingleDatePickerModal-index-stories.05f2092c.iframe.bundle.js +0 -1
- package/.build-storybook/components-Divider-index-stories.f22689f5.iframe.bundle.js +0 -1
- package/.build-storybook/components-Input-index-stories.e686b65f.iframe.bundle.js +0 -1
- package/.build-storybook/components-Loading-index-stories.5fa13c58.iframe.bundle.js +0 -1
- package/.build-storybook/components-MiniButton-BoxMiniButton-index-stories.b3781690.iframe.bundle.js +0 -1
- package/.build-storybook/components-MiniButton-IconMiniButton-index-stories.6f91f33b.iframe.bundle.js +0 -1
- package/.build-storybook/components-MiniButton-UnderLineMiniButton-index-stories.daf8e4df.iframe.bundle.js +0 -1
- package/.build-storybook/components-Modal-index-stories.31e11593.iframe.bundle.js +0 -1
- package/.build-storybook/components-Navigation-index-stories.adf0819d.iframe.bundle.js +0 -1
- package/.build-storybook/components-Segment-index-stories.d40d4099.iframe.bundle.js +0 -2
- package/.build-storybook/components-Segment-index-stories.d40d4099.iframe.bundle.js.LICENSE.txt +0 -8
- package/.build-storybook/components-Tabs-FillTabs-index-stories.7e21ec77.iframe.bundle.js +0 -1
- package/.build-storybook/components-Tabs-TextTabs-index-stories.103ffbf6.iframe.bundle.js +0 -1
- package/.build-storybook/components-Tag-index-stories.a07da1a1.iframe.bundle.js +0 -1
- package/.build-storybook/components-Title-index-stories.afe0b53e.iframe.bundle.js +0 -1
- package/.build-storybook/components-ToastMessage-Toast-index-stories.ea34d5d9.iframe.bundle.js +0 -1
- package/.build-storybook/components-Tooltip-BasicTooltip-index-stories.e7b43bfc.iframe.bundle.js +0 -1
- package/.build-storybook/components-Tooltip-ImpactTooltip-index-stories.347b401c.iframe.bundle.js +0 -1
- package/.build-storybook/core-Colors-index-stories.03b34bb2.iframe.bundle.js +0 -1
- package/.build-storybook/core-Typography-index-stories.f364e712.iframe.bundle.js +0 -1
- package/.build-storybook/favicon.svg +0 -7
- package/.build-storybook/iframe.html +0 -406
- package/.build-storybook/index.html +0 -130
- package/.build-storybook/index.json +0 -1
- package/.build-storybook/library-BasicForm-index-stories.9bbd932c.iframe.bundle.js +0 -1
- package/.build-storybook/library-BasicLayout-3All-stories.8bc671b6.iframe.bundle.js +0 -1
- package/.build-storybook/library-BasicLayout-NoFooter-stories.7eda6ecd.iframe.bundle.js +0 -1
- package/.build-storybook/library-BasicLayout-NoHeader-stories.25727f30.iframe.bundle.js +0 -1
- package/.build-storybook/library-BasicLayout-OnlyBody-stories.002e7d7a.iframe.bundle.js +0 -1
- package/.build-storybook/library-Flex-index-stories.96c3c13c.iframe.bundle.js +0 -1
- package/.build-storybook/library-Spacing-index-stories.79b820c2.iframe.bundle.js +0 -1
- package/.build-storybook/main.736e2fbc.iframe.bundle.js +0 -1
- package/.build-storybook/project.json +0 -1
- package/.build-storybook/runtime~main.8e84fcf6.iframe.bundle.js +0 -1
- package/.build-storybook/sb-addons/essentials-actions-2/manager-bundle.mjs +0 -4
- package/.build-storybook/sb-addons/essentials-actions-2/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/essentials-backgrounds-3/manager-bundle.mjs +0 -13
- package/.build-storybook/sb-addons/essentials-backgrounds-3/manager-bundle.mjs.LEGAL.txt +0 -0
- package/.build-storybook/sb-addons/essentials-backgrounds-3/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/essentials-controls-1/manager-bundle.mjs +0 -117
- package/.build-storybook/sb-addons/essentials-controls-1/manager-bundle.mjs.LEGAL.txt +0 -18
- package/.build-storybook/sb-addons/essentials-controls-1/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/essentials-measure-6/manager-bundle.mjs +0 -4
- package/.build-storybook/sb-addons/essentials-measure-6/manager-bundle.mjs.LEGAL.txt +0 -0
- package/.build-storybook/sb-addons/essentials-measure-6/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/essentials-outline-7/manager-bundle.mjs +0 -4
- package/.build-storybook/sb-addons/essentials-outline-7/manager-bundle.mjs.LEGAL.txt +0 -0
- package/.build-storybook/sb-addons/essentials-outline-7/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/essentials-toolbars-5/manager-bundle.mjs +0 -4
- package/.build-storybook/sb-addons/essentials-toolbars-5/manager-bundle.mjs.LEGAL.txt +0 -0
- package/.build-storybook/sb-addons/essentials-toolbars-5/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/essentials-viewport-4/manager-bundle.mjs +0 -4
- package/.build-storybook/sb-addons/essentials-viewport-4/manager-bundle.mjs.LEGAL.txt +0 -0
- package/.build-storybook/sb-addons/essentials-viewport-4/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/interactions-8/manager-bundle.mjs +0 -31
- package/.build-storybook/sb-addons/interactions-8/manager-bundle.mjs.LEGAL.txt +0 -18
- package/.build-storybook/sb-addons/interactions-8/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-addons/links-0/manager-bundle.mjs +0 -4
- package/.build-storybook/sb-addons/links-0/manager-bundle.mjs.LEGAL.txt +0 -0
- package/.build-storybook/sb-addons/links-0/manager-bundle.mjs.map +0 -7
- package/.build-storybook/sb-common-assets/fonts.css +0 -31
- package/.build-storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/.build-storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/.build-storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/.build-storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/.build-storybook/sb-manager/GlobalScrollAreaStyles-XIHNDKUY-IPHQ3X5E.mjs +0 -1
- package/.build-storybook/sb-manager/OverlayScrollbars-VAV6LJAB-ZCK6WCDR.mjs +0 -6
- package/.build-storybook/sb-manager/WithTooltip-FBT32F6Q-4UGX56G2.mjs +0 -1
- package/.build-storybook/sb-manager/chunk-2HSPAR27.mjs +0 -207
- package/.build-storybook/sb-manager/chunk-2ZRMZUFB.mjs +0 -140
- package/.build-storybook/sb-manager/chunk-7NJ6NIF4.mjs +0 -1
- package/.build-storybook/sb-manager/chunk-CGFORC26.mjs +0 -7
- package/.build-storybook/sb-manager/chunk-CGGDZUA2.mjs +0 -15
- package/.build-storybook/sb-manager/chunk-GPWZILNL.mjs +0 -1
- package/.build-storybook/sb-manager/chunk-JCTATS4D.mjs +0 -1
- package/.build-storybook/sb-manager/chunk-KQFPYAFV.mjs +0 -1
- package/.build-storybook/sb-manager/chunk-TZHETJRI.mjs +0 -406
- package/.build-storybook/sb-manager/chunk-WCYDYUGX.mjs +0 -1
- package/.build-storybook/sb-manager/formatter-S4K5WUZV-X2U232II.mjs +0 -156
- package/.build-storybook/sb-manager/globals.mjs +0 -1
- package/.build-storybook/sb-manager/index.mjs +0 -1
- package/.build-storybook/sb-manager/runtime.mjs +0 -1
- package/.build-storybook/sb-manager/syntaxhighlighter-QTQ2UBB4-FBPGUO4L.mjs +0 -1
- package/.build-storybook/sb-preview/chunk-M7Z73WKF.mjs +0 -1
- package/.build-storybook/sb-preview/globals.mjs +0 -1
- package/.build-storybook/sb-preview/runtime.mjs +0 -105
- package/.build-storybook/stories.json +0 -1
- package/.build-storybook/storybook-extend-color-type-stories.90a332f4.iframe.bundle.js +0 -1
- package/dist/components/NavigationBar/BottomNavigationBar/index.d.ts +0 -14
- package/dist/components/NavigationBar/BottomNavigationBar/index.js +0 -44
- package/dist/components/NavigationBar/BottomNavigationBar/index.stories.d.ts +0 -6
- package/dist/components/NavigationBar/BottomNavigationBar/index.stories.js +0 -43
- package/dist/components/NavigationBar/BottomNavigationBar/index.styled.d.ts +0 -17
- package/dist/components/NavigationBar/BottomNavigationBar/index.styled.js +0 -29
- package/dist/components/NavigationBar/PageNavigationBar/constant.d.ts +0 -7
- package/dist/components/NavigationBar/PageNavigationBar/constant.js +0 -18
- package/dist/components/NavigationBar/PageNavigationBar/index.d.ts +0 -34
- package/dist/components/NavigationBar/PageNavigationBar/index.js +0 -88
- package/dist/components/NavigationBar/PageNavigationBar/index.spec.d.ts +0 -1
- package/dist/components/NavigationBar/PageNavigationBar/index.spec.js +0 -20
- package/dist/components/NavigationBar/PageNavigationBar/index.stories.d.ts +0 -18
- package/dist/components/NavigationBar/PageNavigationBar/index.stories.js +0 -146
- package/dist/components/NavigationBar/PageNavigationBar/index.styled.d.ts +0 -41
- package/dist/components/NavigationBar/PageNavigationBar/index.styled.js +0 -48
- package/dist/components/NavigationBar/TitleNavigationBar/index.d.ts +0 -14
- package/dist/components/NavigationBar/TitleNavigationBar/index.js +0 -59
- package/dist/components/NavigationBar/TitleNavigationBar/index.stories.d.ts +0 -7
- package/dist/components/NavigationBar/TitleNavigationBar/index.stories.js +0 -54
- package/dist/components/NavigationBar/TitleNavigationBar/index.styled.d.ts +0 -23
- package/dist/components/NavigationBar/TitleNavigationBar/index.styled.js +0 -25
- package/dist/components/NavigationBar/index.d.ts +0 -3
- package/dist/components/NavigationBar/index.js +0 -19
- package/dist/components/Tab/index.d.ts +0 -11
- package/dist/components/Tab/index.js +0 -38
- package/dist/components/Tab/index.spec.d.ts +0 -1
- package/dist/components/Tab/index.spec.js +0 -21
- package/dist/components/Tab/index.stories.d.ts +0 -16
- package/dist/components/Tab/index.stories.js +0 -107
- package/dist/components/Tab/index.styled.d.ts +0 -18
- package/dist/components/Tab/index.styled.js +0 -71
- package/dist/components/Tag/BaseTag/index.d.ts +0 -14
- package/dist/components/Tag/BaseTag/index.js +0 -37
- package/dist/components/Tag/BaseTag/index.styled.d.ts +0 -10
- package/dist/components/Tag/BaseTag/index.styled.js +0 -17
- package/dist/components/Tag/BlueTag.d.ts +0 -4
- package/dist/components/Tag/BlueTag.js +0 -10
- package/dist/components/Tag/GrayTag.d.ts +0 -4
- package/dist/components/Tag/GrayTag.js +0 -10
- package/dist/components/Tag/GreenTag.d.ts +0 -4
- package/dist/components/Tag/GreenTag.js +0 -10
- package/dist/components/Tag/LimeTag.d.ts +0 -4
- package/dist/components/Tag/LimeTag.js +0 -10
- package/dist/components/Tag/PinkTag.d.ts +0 -4
- package/dist/components/Tag/PinkTag.js +0 -10
- package/dist/components/Tag/PurpleTag.d.ts +0 -4
- package/dist/components/Tag/PurpleTag.js +0 -10
- package/dist/components/Tag/RedTag.d.ts +0 -4
- package/dist/components/Tag/RedTag.js +0 -10
- package/dist/components/Tag/YellowTag.d.ts +0 -4
- package/dist/components/Tag/YellowTag.js +0 -10
- package/dist/components/Tag/index.spec.d.ts +0 -1
- package/dist/components/Tag/index.spec.js +0 -14
- package/dist/library/ShareUI/Buttons.d.ts +0 -7
- package/dist/library/ShareUI/Buttons.js +0 -20
- package/dist/library/ShareUI/index.d.ts +0 -14
- package/dist/library/ShareUI/index.js +0 -59
- package/dist/library/ShareUI/index.stories.d.ts +0 -6
- package/dist/library/ShareUI/index.stories.js +0 -32
- package/dist/library/ShareUI/index.styled.d.ts +0 -60
- package/dist/library/ShareUI/index.styled.js +0 -60
- /package/{.build-storybook/image.png → .history/config-overrides_20230523140418.js} +0 -0
- /package/{.build-storybook/sb-addons/essentials-actions-2/manager-bundle.mjs.LEGAL.txt → .history/e2e/pages/src/components/Loading_20230511175658.tsx} +0 -0
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import { BasicInputProps, PostfixInputProps, ResidentNumberInputProps } from '.';
|
|
4
|
+
import { BaseInput, BoxMiniButton, PostfixInput, ResidentNumberInput, SelectBox, SelectBoxProps } from '..';
|
|
5
|
+
import { formatDisplayValueWithManWon, formatRealValueWithManWon } from './PostfixInput/index.util';
|
|
6
|
+
|
|
7
|
+
const WidthLimitComp: React.FC<{ width?: number; height?: number; children: React.ReactNode }> = ({
|
|
8
|
+
width = '400px',
|
|
9
|
+
height,
|
|
10
|
+
children,
|
|
11
|
+
}) => {
|
|
12
|
+
return <div style={{ width, height }}>{children}</div>;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const BaseInputComp: React.FC<BasicInputProps> = (props) => {
|
|
16
|
+
const [value, setValue] = useState('');
|
|
17
|
+
|
|
18
|
+
const onChange: BasicInputProps['onChange'] = (e) => {
|
|
19
|
+
setValue(e.target.value);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
return <BaseInput {...props} value={value} onChange={onChange} />;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* updated 230523
|
|
27
|
+
*
|
|
28
|
+
* <a href="https://www.notion.so/Textfield-fdde7ce93e65439cb8188cfb4a8609aa?pvs=4" target="_blank">노션페이지</a>
|
|
29
|
+
* <br/>
|
|
30
|
+
* 사용자가 입력할 수 있는 영역입니다. 직접 입력하거나 정보 값을 선택하여 입력합니다.<br/>다양한 옵션이 있으며 숫자를 포함한 여러 텍스트 형식을 지원합니다.
|
|
31
|
+
*/
|
|
32
|
+
const meta: Meta<BasicInputProps> = {
|
|
33
|
+
title: 'Component/TextField',
|
|
34
|
+
component: BaseInput,
|
|
35
|
+
tags: ['autodocs'],
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export default meta;
|
|
39
|
+
|
|
40
|
+
// Props 교체 가능
|
|
41
|
+
type BaseInputStory = StoryObj<BasicInputProps>;
|
|
42
|
+
export const Story1: BaseInputStory = {
|
|
43
|
+
render: (props) => (
|
|
44
|
+
<WidthLimitComp>
|
|
45
|
+
<BaseInputComp {...props} />
|
|
46
|
+
</WidthLimitComp>
|
|
47
|
+
),
|
|
48
|
+
args: {
|
|
49
|
+
placeholder: 'placeholder',
|
|
50
|
+
disabled: true,
|
|
51
|
+
guideText: '000-0000-0000',
|
|
52
|
+
errorValidation: [
|
|
53
|
+
{
|
|
54
|
+
condition: (value) => {
|
|
55
|
+
return value[0] === '1';
|
|
56
|
+
},
|
|
57
|
+
errorText: '1로 시작해주세요',
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
Story1.storyName = 'Basic';
|
|
63
|
+
|
|
64
|
+
export const Story2: BaseInputStory = {
|
|
65
|
+
render: (props) => (
|
|
66
|
+
<WidthLimitComp>
|
|
67
|
+
<BaseInputComp {...props} />
|
|
68
|
+
</WidthLimitComp>
|
|
69
|
+
),
|
|
70
|
+
args: {
|
|
71
|
+
placeholder: 'placeholder',
|
|
72
|
+
decoration: (
|
|
73
|
+
<BoxMiniButton colorType="pink" purpose="sub">
|
|
74
|
+
인증 요청
|
|
75
|
+
</BoxMiniButton>
|
|
76
|
+
),
|
|
77
|
+
errorValidation: [
|
|
78
|
+
{
|
|
79
|
+
condition: (value) => {
|
|
80
|
+
return value[0] === '1';
|
|
81
|
+
},
|
|
82
|
+
errorText: '1로 시작해주세요',
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
Story2.storyName = '+ Button (Decoration)';
|
|
88
|
+
|
|
89
|
+
const SelectBoxComp: React.FC<SelectBoxProps> = (props) => {
|
|
90
|
+
const [value, setValue] = useState('');
|
|
91
|
+
|
|
92
|
+
const onChange: SelectBoxProps['onChange'] = (val) => {
|
|
93
|
+
setValue(val);
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
return (
|
|
97
|
+
<>
|
|
98
|
+
selected: {value}
|
|
99
|
+
<br />
|
|
100
|
+
<br />
|
|
101
|
+
<SelectBox {...props} value={value} onChange={onChange} />
|
|
102
|
+
</>
|
|
103
|
+
);
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export const Story3: StoryObj<SelectBoxProps> = {
|
|
107
|
+
render: (props) => (
|
|
108
|
+
<WidthLimitComp height={400}>
|
|
109
|
+
<SelectBoxComp {...props} />
|
|
110
|
+
</WidthLimitComp>
|
|
111
|
+
),
|
|
112
|
+
args: {
|
|
113
|
+
placeholder: 'placeholder',
|
|
114
|
+
itemList: [
|
|
115
|
+
{ label: '선택 1', value: 'VALUE_1' },
|
|
116
|
+
{ label: '선택 2', value: 'VALUE_2' },
|
|
117
|
+
{ label: '선택 3', value: 'VALUE_3' },
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
argTypes: {
|
|
121
|
+
onChange: { action: 'onChange' },
|
|
122
|
+
},
|
|
123
|
+
parameters: {
|
|
124
|
+
docs: {
|
|
125
|
+
description: {
|
|
126
|
+
story:
|
|
127
|
+
'PC) 셀렉트 필드를 클릭하면 드랍다운 메뉴가 나타납니다.<br/> MOBILE) 셀렉트 필드를 탭 하면 바텀 시트를 제공합니다.',
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
Story3.storyName = '+ Select';
|
|
133
|
+
|
|
134
|
+
const ResidentNumberInputComp: React.FC<ResidentNumberInputProps> = (props) => {
|
|
135
|
+
const [value, setValue] = useState('');
|
|
136
|
+
|
|
137
|
+
const onChange: ResidentNumberInputProps['setValue'] = (val) => {
|
|
138
|
+
setValue(val);
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
return <ResidentNumberInput {...props} value={value} setValue={onChange} />;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
export const Story4: StoryObj<ResidentNumberInputProps> = {
|
|
145
|
+
render: (props) => (
|
|
146
|
+
<WidthLimitComp>
|
|
147
|
+
<ResidentNumberInputComp {...props} />
|
|
148
|
+
</WidthLimitComp>
|
|
149
|
+
),
|
|
150
|
+
args: {
|
|
151
|
+
placeholder: 'placeholder',
|
|
152
|
+
},
|
|
153
|
+
argTypes: {
|
|
154
|
+
onChange: { action: 'onChange' },
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
Story4.storyName = '+ Blind (rrnInputType=13)';
|
|
158
|
+
|
|
159
|
+
export const Story5: StoryObj<ResidentNumberInputProps> = {
|
|
160
|
+
render: (props) => (
|
|
161
|
+
<WidthLimitComp>
|
|
162
|
+
<ResidentNumberInputComp {...props} />
|
|
163
|
+
</WidthLimitComp>
|
|
164
|
+
),
|
|
165
|
+
args: {
|
|
166
|
+
placeholder: 'placeholder',
|
|
167
|
+
rrnInputType: 7,
|
|
168
|
+
},
|
|
169
|
+
argTypes: {
|
|
170
|
+
onChange: { action: 'onChange' },
|
|
171
|
+
},
|
|
172
|
+
};
|
|
173
|
+
Story5.storyName = '+ Blind (rrnInputType=7)';
|
|
174
|
+
|
|
175
|
+
const PostfixInputComp: React.FC<PostfixInputProps> = (props) => {
|
|
176
|
+
const [value, setValue] = useState('');
|
|
177
|
+
|
|
178
|
+
const submitValue = Number(value);
|
|
179
|
+
|
|
180
|
+
return (
|
|
181
|
+
<>
|
|
182
|
+
submitValue : {submitValue}
|
|
183
|
+
<PostfixInput
|
|
184
|
+
{...props}
|
|
185
|
+
realValue={value}
|
|
186
|
+
updateRealValue={setValue}
|
|
187
|
+
formatRealValue={formatRealValueWithManWon}
|
|
188
|
+
formatDisplayValue={formatDisplayValueWithManWon}
|
|
189
|
+
/>
|
|
190
|
+
</>
|
|
191
|
+
);
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export const Story6: StoryObj<PostfixInputProps> = {
|
|
195
|
+
render: (props) => (
|
|
196
|
+
<WidthLimitComp>
|
|
197
|
+
<PostfixInputComp {...props} />
|
|
198
|
+
</WidthLimitComp>
|
|
199
|
+
),
|
|
200
|
+
args: {
|
|
201
|
+
placeholder: 'placeholder',
|
|
202
|
+
postfix: '만원',
|
|
203
|
+
max: 100000000000,
|
|
204
|
+
disabled: false,
|
|
205
|
+
},
|
|
206
|
+
argTypes: {
|
|
207
|
+
onChange: { action: 'onChange' },
|
|
208
|
+
},
|
|
209
|
+
};
|
|
210
|
+
Story6.storyName = '+ Unit';
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
|
+
import { basicColors } from '../Colors';
|
|
3
|
+
|
|
4
|
+
const DEFAULT_TEXT_COLOR = basicColors.gray900;
|
|
5
|
+
const DEFAULT_HEADLINE_TEXT_FONT_WEIGHT = 600;
|
|
6
|
+
const DEFAULT_TITLE_TEXT_FONT_WEIGHT = 500;
|
|
7
|
+
const DEFAULT_BODY_TEXT_FONT_WEIGHT = 400;
|
|
8
|
+
|
|
9
|
+
export const typography = {
|
|
10
|
+
h1: css`
|
|
11
|
+
font-size: 41px;
|
|
12
|
+
line-height: 49px;
|
|
13
|
+
letter-spacing: -0.8px;
|
|
14
|
+
margin: 0;
|
|
15
|
+
font-weight: ${DEFAULT_HEADLINE_TEXT_FONT_WEIGHT};
|
|
16
|
+
`,
|
|
17
|
+
h2: css`
|
|
18
|
+
font-size: 29px;
|
|
19
|
+
line-height: 35px;
|
|
20
|
+
letter-spacing: -0.4px;
|
|
21
|
+
margin: 0;
|
|
22
|
+
font-weight: ${DEFAULT_HEADLINE_TEXT_FONT_WEIGHT};
|
|
23
|
+
`,
|
|
24
|
+
h3: css`
|
|
25
|
+
font-size: 23px;
|
|
26
|
+
line-height: 27px;
|
|
27
|
+
letter-spacing: -0.3px;
|
|
28
|
+
margin: 0;
|
|
29
|
+
font-weight: ${DEFAULT_HEADLINE_TEXT_FONT_WEIGHT};
|
|
30
|
+
`,
|
|
31
|
+
h4: css`
|
|
32
|
+
font-size: 19px;
|
|
33
|
+
line-height: 23px;
|
|
34
|
+
letter-spacing: -0.3px;
|
|
35
|
+
margin: 0;
|
|
36
|
+
font-weight: ${DEFAULT_HEADLINE_TEXT_FONT_WEIGHT};
|
|
37
|
+
`,
|
|
38
|
+
h5: css`
|
|
39
|
+
font-size: 17px;
|
|
40
|
+
line-height: 20px;
|
|
41
|
+
letter-spacing: -0.3px;
|
|
42
|
+
margin: 0;
|
|
43
|
+
font-weight: ${DEFAULT_HEADLINE_TEXT_FONT_WEIGHT};
|
|
44
|
+
`,
|
|
45
|
+
h6: css`
|
|
46
|
+
font-size: 15px;
|
|
47
|
+
line-height: 18px;
|
|
48
|
+
letter-spacing: -0.2px;
|
|
49
|
+
margin: 0;
|
|
50
|
+
font-weight: ${DEFAULT_HEADLINE_TEXT_FONT_WEIGHT};
|
|
51
|
+
`,
|
|
52
|
+
title1: css`
|
|
53
|
+
font-size: 19px;
|
|
54
|
+
line-height: 23px;
|
|
55
|
+
letter-spacing: -0.3px;
|
|
56
|
+
margin: 0;
|
|
57
|
+
font-weight: ${DEFAULT_TITLE_TEXT_FONT_WEIGHT};
|
|
58
|
+
`,
|
|
59
|
+
title2: css`
|
|
60
|
+
font-size: 17px;
|
|
61
|
+
line-height: 20px;
|
|
62
|
+
letter-spacing: -0.2px;
|
|
63
|
+
margin: 0;
|
|
64
|
+
font-weight: ${DEFAULT_TITLE_TEXT_FONT_WEIGHT};
|
|
65
|
+
`,
|
|
66
|
+
title3: css`
|
|
67
|
+
font-size: 15px;
|
|
68
|
+
line-height: 18px;
|
|
69
|
+
letter-spacing: -0.2px;
|
|
70
|
+
margin: 0;
|
|
71
|
+
font-weight: ${DEFAULT_TITLE_TEXT_FONT_WEIGHT};
|
|
72
|
+
`,
|
|
73
|
+
title4: css`
|
|
74
|
+
font-size: 13px;
|
|
75
|
+
line-height: 14px;
|
|
76
|
+
letter-spacing: -0.2px;
|
|
77
|
+
margin: 0;
|
|
78
|
+
font-weight: ${DEFAULT_TITLE_TEXT_FONT_WEIGHT};
|
|
79
|
+
`,
|
|
80
|
+
body1: css`
|
|
81
|
+
font-size: 15px;
|
|
82
|
+
line-height: 18px;
|
|
83
|
+
letter-spacing: -0.2px;
|
|
84
|
+
margin: 0;
|
|
85
|
+
font-weight: ${DEFAULT_BODY_TEXT_FONT_WEIGHT};
|
|
86
|
+
`,
|
|
87
|
+
body2: css`
|
|
88
|
+
font-size: 13px;
|
|
89
|
+
line-height: 16px;
|
|
90
|
+
letter-spacing: -0.2px;
|
|
91
|
+
margin: 0;
|
|
92
|
+
font-weight: ${DEFAULT_BODY_TEXT_FONT_WEIGHT};
|
|
93
|
+
`,
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export interface TextStyleProperties {
|
|
97
|
+
color?: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export const headline1 = (args?: TextStyleProperties) => css`
|
|
101
|
+
${typography.h1};
|
|
102
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
103
|
+
`;
|
|
104
|
+
|
|
105
|
+
export const headline2 = (args?: TextStyleProperties) => css`
|
|
106
|
+
${typography.h2};
|
|
107
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
108
|
+
`;
|
|
109
|
+
|
|
110
|
+
export const headline3 = (args?: TextStyleProperties) => css`
|
|
111
|
+
${typography.h3};
|
|
112
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
113
|
+
`;
|
|
114
|
+
|
|
115
|
+
export const headline4 = (args?: TextStyleProperties) => css`
|
|
116
|
+
${typography.h4};
|
|
117
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
118
|
+
`;
|
|
119
|
+
|
|
120
|
+
export const headline5 = (args?: TextStyleProperties) => css`
|
|
121
|
+
${typography.h5};
|
|
122
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
123
|
+
`;
|
|
124
|
+
|
|
125
|
+
export const headline6 = (args?: TextStyleProperties) => css`
|
|
126
|
+
${typography.h6};
|
|
127
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
128
|
+
`;
|
|
129
|
+
|
|
130
|
+
export const title1 = (args?: TextStyleProperties) => css`
|
|
131
|
+
${typography.title1};
|
|
132
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
133
|
+
`;
|
|
134
|
+
|
|
135
|
+
export const title2 = (args?: TextStyleProperties) => css`
|
|
136
|
+
${typography.title2};
|
|
137
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
138
|
+
`;
|
|
139
|
+
|
|
140
|
+
export const title3 = (args?: TextStyleProperties) => css`
|
|
141
|
+
${typography.title3};
|
|
142
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
143
|
+
`;
|
|
144
|
+
|
|
145
|
+
export const title4 = (args?: TextStyleProperties) => css`
|
|
146
|
+
${typography.title4};
|
|
147
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
148
|
+
`;
|
|
149
|
+
|
|
150
|
+
export const body1 = (args?: TextStyleProperties) => css`
|
|
151
|
+
${typography.body1};
|
|
152
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
153
|
+
`;
|
|
154
|
+
|
|
155
|
+
export const body2 = (args?: TextStyleProperties) => css`
|
|
156
|
+
${typography.body2};
|
|
157
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
158
|
+
`;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
|
+
import { basicColors } from '../Colors';
|
|
3
|
+
|
|
4
|
+
const DEFAULT_TEXT_COLOR = basicColors.gray900;
|
|
5
|
+
const DEFAULT_HEADLINE_TEXT_FONT_WEIGHT = 600;
|
|
6
|
+
const DEFAULT_TITLE_TEXT_FONT_WEIGHT = 500;
|
|
7
|
+
const DEFAULT_BODY_TEXT_FONT_WEIGHT = 400;
|
|
8
|
+
|
|
9
|
+
export const typography = {
|
|
10
|
+
h1: css`
|
|
11
|
+
font-size: 41px;
|
|
12
|
+
line-height: 49px;
|
|
13
|
+
letter-spacing: -0.8px;
|
|
14
|
+
font-weight: ${DEFAULT_HEADLINE_TEXT_FONT_WEIGHT};
|
|
15
|
+
`,
|
|
16
|
+
h2: css`
|
|
17
|
+
font-size: 29px;
|
|
18
|
+
line-height: 35px;
|
|
19
|
+
letter-spacing: -0.4px;
|
|
20
|
+
font-weight: ${DEFAULT_HEADLINE_TEXT_FONT_WEIGHT};
|
|
21
|
+
`,
|
|
22
|
+
h3: css`
|
|
23
|
+
font-size: 23px;
|
|
24
|
+
line-height: 27px;
|
|
25
|
+
letter-spacing: -0.3px;
|
|
26
|
+
font-weight: ${DEFAULT_HEADLINE_TEXT_FONT_WEIGHT};
|
|
27
|
+
`,
|
|
28
|
+
h4: css`
|
|
29
|
+
font-size: 19px;
|
|
30
|
+
line-height: 23px;
|
|
31
|
+
letter-spacing: -0.3px;
|
|
32
|
+
font-weight: ${DEFAULT_HEADLINE_TEXT_FONT_WEIGHT};
|
|
33
|
+
`,
|
|
34
|
+
h5: css`
|
|
35
|
+
font-size: 17px;
|
|
36
|
+
line-height: 20px;
|
|
37
|
+
letter-spacing: -0.3px;
|
|
38
|
+
font-weight: ${DEFAULT_HEADLINE_TEXT_FONT_WEIGHT};
|
|
39
|
+
`,
|
|
40
|
+
h6: css`
|
|
41
|
+
font-size: 15px;
|
|
42
|
+
line-height: 18px;
|
|
43
|
+
letter-spacing: -0.2px;
|
|
44
|
+
font-weight: ${DEFAULT_HEADLINE_TEXT_FONT_WEIGHT};
|
|
45
|
+
`,
|
|
46
|
+
title1: css`
|
|
47
|
+
font-size: 19px;
|
|
48
|
+
line-height: 23px;
|
|
49
|
+
letter-spacing: -0.3px;
|
|
50
|
+
font-weight: ${DEFAULT_TITLE_TEXT_FONT_WEIGHT};
|
|
51
|
+
`,
|
|
52
|
+
title2: css`
|
|
53
|
+
font-size: 17px;
|
|
54
|
+
line-height: 20px;
|
|
55
|
+
letter-spacing: -0.2px;
|
|
56
|
+
font-weight: ${DEFAULT_TITLE_TEXT_FONT_WEIGHT};
|
|
57
|
+
`,
|
|
58
|
+
title3: css`
|
|
59
|
+
font-size: 15px;
|
|
60
|
+
line-height: 18px;
|
|
61
|
+
letter-spacing: -0.2px;
|
|
62
|
+
font-weight: ${DEFAULT_TITLE_TEXT_FONT_WEIGHT};
|
|
63
|
+
`,
|
|
64
|
+
title4: css`
|
|
65
|
+
font-size: 13px;
|
|
66
|
+
line-height: 14px;
|
|
67
|
+
letter-spacing: -0.2px;
|
|
68
|
+
font-weight: ${DEFAULT_TITLE_TEXT_FONT_WEIGHT};
|
|
69
|
+
`,
|
|
70
|
+
body1: css`
|
|
71
|
+
font-size: 15px;
|
|
72
|
+
line-height: 18px;
|
|
73
|
+
letter-spacing: -0.2px;
|
|
74
|
+
font-weight: ${DEFAULT_BODY_TEXT_FONT_WEIGHT};
|
|
75
|
+
`,
|
|
76
|
+
body2: css`
|
|
77
|
+
font-size: 13px;
|
|
78
|
+
line-height: 16px;
|
|
79
|
+
letter-spacing: -0.2px;
|
|
80
|
+
font-weight: ${DEFAULT_BODY_TEXT_FONT_WEIGHT};
|
|
81
|
+
`,
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export interface TextStyleProperties {
|
|
85
|
+
color?: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export const headline1 = (args?: TextStyleProperties) => css`
|
|
89
|
+
${typography.h1};
|
|
90
|
+
margin: 0;
|
|
91
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
92
|
+
`;
|
|
93
|
+
|
|
94
|
+
export const headline2 = (args?: TextStyleProperties) => css`
|
|
95
|
+
${typography.h2};
|
|
96
|
+
margin: 0;
|
|
97
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
98
|
+
`;
|
|
99
|
+
|
|
100
|
+
export const headline3 = (args?: TextStyleProperties) => css`
|
|
101
|
+
${typography.h3};
|
|
102
|
+
margin: 0;
|
|
103
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
104
|
+
`;
|
|
105
|
+
|
|
106
|
+
export const headline4 = (args?: TextStyleProperties) => css`
|
|
107
|
+
${typography.h4};
|
|
108
|
+
margin: 0;
|
|
109
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
110
|
+
`;
|
|
111
|
+
|
|
112
|
+
export const headline5 = (args?: TextStyleProperties) => css`
|
|
113
|
+
${typography.h5};
|
|
114
|
+
margin: 0;
|
|
115
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
116
|
+
`;
|
|
117
|
+
|
|
118
|
+
export const headline6 = (args?: TextStyleProperties) => css`
|
|
119
|
+
${typography.h6};
|
|
120
|
+
margin: 0;
|
|
121
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
122
|
+
`;
|
|
123
|
+
|
|
124
|
+
export const title1 = (args?: TextStyleProperties) => css`
|
|
125
|
+
${typography.title1};
|
|
126
|
+
margin: 0;
|
|
127
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
128
|
+
`;
|
|
129
|
+
|
|
130
|
+
export const title2 = (args?: TextStyleProperties) => css`
|
|
131
|
+
${typography.title2};
|
|
132
|
+
margin: 0;
|
|
133
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
134
|
+
`;
|
|
135
|
+
|
|
136
|
+
export const title3 = (args?: TextStyleProperties) => css`
|
|
137
|
+
${typography.title3};
|
|
138
|
+
margin: 0;
|
|
139
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
140
|
+
`;
|
|
141
|
+
|
|
142
|
+
export const title4 = (args?: TextStyleProperties) => css`
|
|
143
|
+
${typography.title4};
|
|
144
|
+
margin: 0;
|
|
145
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
146
|
+
`;
|
|
147
|
+
|
|
148
|
+
export const body1 = (args?: TextStyleProperties) => css`
|
|
149
|
+
${typography.body1};
|
|
150
|
+
margin: 0;
|
|
151
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
152
|
+
`;
|
|
153
|
+
|
|
154
|
+
export const body2 = (args?: TextStyleProperties) => css`
|
|
155
|
+
${typography.body2};
|
|
156
|
+
margin: 0;
|
|
157
|
+
color: ${(args && args.color) || DEFAULT_TEXT_COLOR};
|
|
158
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
2
|
+
import { MediaQuerySize } from '../utils';
|
|
3
|
+
import useResize from './useResize';
|
|
4
|
+
|
|
5
|
+
const useLayoutIsMobile = (): boolean => {
|
|
6
|
+
const [isMobile, setIsMobile] = useState(false);
|
|
7
|
+
|
|
8
|
+
const checkIsMobile = useCallback(() => {
|
|
9
|
+
setIsMobile(window.innerWidth <= MediaQuerySize.Mobile);
|
|
10
|
+
}, []);
|
|
11
|
+
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
if (typeof window !== 'undefined') {
|
|
14
|
+
checkIsMobile();
|
|
15
|
+
}
|
|
16
|
+
}, [checkIsMobile]);
|
|
17
|
+
|
|
18
|
+
useResize(checkIsMobile);
|
|
19
|
+
|
|
20
|
+
return isMobile;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default useLayoutIsMobile;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
2
|
+
import { MediaQuerySize } from '../utils';
|
|
3
|
+
import useResize from './useResize';
|
|
4
|
+
|
|
5
|
+
const useLayoutIsMobile = (): boolean => {
|
|
6
|
+
const [isMobile, setIsMobile] = useState(false);
|
|
7
|
+
|
|
8
|
+
const checkIsMobile = useCallback(() => {
|
|
9
|
+
setIsMobile(window.outerWidth <= MediaQuerySize.Mobile);
|
|
10
|
+
}, []);
|
|
11
|
+
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
if (typeof window !== 'undefined') {
|
|
14
|
+
checkIsMobile();
|
|
15
|
+
}
|
|
16
|
+
}, [checkIsMobile]);
|
|
17
|
+
|
|
18
|
+
useResize(checkIsMobile);
|
|
19
|
+
|
|
20
|
+
return isMobile;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default useLayoutIsMobile;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
|
+
import { Title } from '../..';
|
|
3
|
+
import BasicForm from '../BasicForm';
|
|
4
|
+
import * as Styled from './index.styled';
|
|
5
|
+
import { ImageCenterBodyComp } from './Body';
|
|
6
|
+
import {
|
|
7
|
+
SingleButtonComp,
|
|
8
|
+
SingleATagComp,
|
|
9
|
+
DoubleButtonComp,
|
|
10
|
+
SingleButtonWithTooltipComp,
|
|
11
|
+
SingleButtonWithInformationIconComp,
|
|
12
|
+
StickBottomWrapperComp,
|
|
13
|
+
} from './Footer';
|
|
14
|
+
import { GlobalLayoutHeaderContext } from '../GlobalLayoutHeaderProvider/index.type';
|
|
15
|
+
import { PropsWithChildren } from '../../types/react';
|
|
16
|
+
import { useLayoutIsMobile } from '../../hooks';
|
|
17
|
+
|
|
18
|
+
export type BasicLayoutProps = PropsWithChildren<{
|
|
19
|
+
hasHeader: boolean;
|
|
20
|
+
hasFooter: boolean;
|
|
21
|
+
bottomExtraComp?: React.ReactNode /* Card 영역 외부(pc) / 내부(mobile) */;
|
|
22
|
+
bodyCenterizing?: boolean /* true : 가운데 정렬을 위해 space-between 을 적용합니다. */;
|
|
23
|
+
marginBottomNoFooterColor?: string;
|
|
24
|
+
}>;
|
|
25
|
+
|
|
26
|
+
/** getElementByName 으로 하고 싶었으나, Title 등이 bottomSheet 에 있으면, children 있다고 하기도 애매하네, props 로 명시해야할 듯 */
|
|
27
|
+
const BasicLayoutComp: React.FC<BasicLayoutProps> = React.memo(
|
|
28
|
+
({ hasHeader, hasFooter, children, bottomExtraComp, bodyCenterizing = false }) => {
|
|
29
|
+
const isMobile = useLayoutIsMobile();
|
|
30
|
+
const { hasGlobalLayoutHeaderInMobile, hasGlobalLayoutHeader } = useContext(GlobalLayoutHeaderContext);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Styled.BasicLayoutBase.ParentWrapper
|
|
34
|
+
hasGlobalLayoutHeader={hasGlobalLayoutHeader}
|
|
35
|
+
bodyCenterizing={bodyCenterizing}
|
|
36
|
+
>
|
|
37
|
+
<Styled.BasicLayoutBase.ChildrenWrapper bodyCenterizing={bodyCenterizing}>
|
|
38
|
+
{!hasGlobalLayoutHeaderInMobile && !hasHeader && <Styled.MarginTopNoHeader />}
|
|
39
|
+
{children}
|
|
40
|
+
{isMobile && Boolean(bottomExtraComp) && bottomExtraComp}
|
|
41
|
+
{!hasFooter && <Styled.MarginBottomNoFooter />}
|
|
42
|
+
</Styled.BasicLayoutBase.ChildrenWrapper>
|
|
43
|
+
{!isMobile && Boolean(bottomExtraComp) && bottomExtraComp}
|
|
44
|
+
</Styled.BasicLayoutBase.ParentWrapper>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
const VerticalHorizontalCenterLayoutComp: React.FC = ({ children }) => {
|
|
50
|
+
return (
|
|
51
|
+
<Styled.PureLayoutBase.ParentWrapper>
|
|
52
|
+
<Styled.PureLayoutBase.VerticalHorizontalCenterBody>
|
|
53
|
+
{children}
|
|
54
|
+
</Styled.PureLayoutBase.VerticalHorizontalCenterBody>
|
|
55
|
+
</Styled.PureLayoutBase.ParentWrapper>
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
// fyi. 원하는 컴포넌트 선택해서 끼워넣을 수 있도록
|
|
60
|
+
const BasicLayout = Object.assign(BasicLayoutComp, {
|
|
61
|
+
/* Layout */
|
|
62
|
+
// BasicLayout (itself): BasicLayoutComp
|
|
63
|
+
VerticalHorizontalCenterLayout: VerticalHorizontalCenterLayoutComp,
|
|
64
|
+
|
|
65
|
+
/* Header */
|
|
66
|
+
Header: Title,
|
|
67
|
+
|
|
68
|
+
/* Body */
|
|
69
|
+
Body: Styled.BasicLayoutBase.Body,
|
|
70
|
+
SidePaddingBody: Styled.SidePaddingBody,
|
|
71
|
+
CenterBody: Styled.CenterBody,
|
|
72
|
+
ImageCenterBody: ImageCenterBodyComp,
|
|
73
|
+
|
|
74
|
+
/* Footer */
|
|
75
|
+
Footer: Styled.BasicLayoutBase.Footer,
|
|
76
|
+
SingleButton: SingleButtonComp,
|
|
77
|
+
SingleATag: SingleATagComp,
|
|
78
|
+
DoubleButton: DoubleButtonComp,
|
|
79
|
+
ContentsPadding: Styled.ContentsPadding,
|
|
80
|
+
ContentsVerticalPadding: Styled.ContentsVerticalPadding,
|
|
81
|
+
StickBottomWrapper: StickBottomWrapperComp,
|
|
82
|
+
SingleButtonWithTooltip: SingleButtonWithTooltipComp,
|
|
83
|
+
SingleButtonWithInformationIcon: SingleButtonWithInformationIconComp,
|
|
84
|
+
|
|
85
|
+
/* etc */
|
|
86
|
+
Form: BasicForm,
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
export default BasicLayout;
|