@pfct/purple 1.4.0-rc.0 → 1.4.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Button/DoubleButton/index.d.ts +3 -3
- package/dist/components/Control/Switch/index.d.ts +1 -0
- package/dist/components/Control/Switch/index.js +3 -3
- package/dist/components/Control/Switch/index.stories.d.ts +2 -2
- package/dist/components/Control/Switch/index.stories.js +3 -2
- package/dist/components/Control/Switch/index.styled.d.ts +2 -0
- package/dist/components/Control/Switch/index.styled.js +35 -6
- package/dist/components/Modal/index.d.ts +2 -2
- package/dist/library/BasicLayout/index.d.ts +3 -1
- package/dist/library/Flex/index.stories.d.ts +2 -1
- package/package.json +18 -20
- package/.history/.eslintrc.config_20240620114140.js +0 -39
- package/.history/.eslintrc.config_20240620130453.js +0 -164
- package/.history/.eslintrc_20230510193851.json +0 -164
- package/.history/.eslintrc_20240620114141.json +0 -39
- package/.history/.eslintrc_20240620131751.js +0 -164
- package/.history/.eslintrc_20240620132945.js +0 -164
- package/.history/.eslintrc_20240620133123.js +0 -163
- package/.history/.eslintrc_20240620133153.js +0 -164
- package/.history/.gitignore_20240620105113 +0 -21
- package/.history/.husky/commit-msg_20230510193851 +0 -4
- package/.history/.husky/commit-msg_20240620132755 +0 -4
- package/.history/.storybook/main_20230511183243.ts +0 -15
- package/.history/.storybook/main_20240620103059.ts +0 -9
- package/.history/.storybook/main_20240620103349.ts +0 -15
- package/.history/config-overrides_20230523140418.js +0 -0
- package/.history/config-overrides_20230523140429.js +0 -7
- package/.history/config-overrides_20230523140438.js +0 -7
- package/.history/config-overrides_20230523140456.js +0 -7
- package/.history/config-overrides_20230523140500.js +0 -7
- package/.history/config-overrides_20230523141258.js +0 -8
- package/.history/config-overrides_20230523141523.js +0 -15
- package/.history/config-overrides_20230523141527.js +0 -14
- package/.history/config-overrides_20230523141528.js +0 -14
- package/.history/config-overrides_20230523141828.js +0 -7
- package/.history/config-overrides_20230523142043.js +0 -7
- package/.history/config-overrides_20230523144759.js +0 -7
- package/.history/config-overrides_20230523144844.js +0 -7
- package/.history/config-overrides_20230523145025.js +0 -8
- package/.history/config-overrides_20230523145244.js +0 -8
- package/.history/config-overrides_20230523145557.js +0 -8
- package/.history/config-overrides_20230523145640.js +0 -8
- package/.history/config-overrides_20230523145642.js +0 -8
- package/.history/config-overrides_20230523150101.js +0 -8
- package/.history/config-overrides_20230523150817.js +0 -8
- package/.history/config-overrides_20230523151011.js +0 -8
- package/.history/config-overrides_20230523151022.js +0 -8
- package/.history/config-overrides_20230523151050.js +0 -8
- package/.history/config-overrides_20230523151057.js +0 -8
- package/.history/config-overrides_20230523155303.js +0 -5
- package/.history/config-overrides_20230524135448.js +0 -6
- package/.history/e2e/pages/dist/index_20230518173449.html +0 -15
- package/.history/e2e/pages/dist/index_20230518182705.html +0 -20
- package/.history/e2e/pages/dist/index_20230522152456.html +0 -18
- package/.history/e2e/pages/dist/index_20230522152506.html +0 -16
- package/.history/e2e/pages/index_20230511135904.html +0 -15
- package/.history/e2e/pages/index_20230511173402.html +0 -21
- package/.history/e2e/pages/index_20230511173459.html +0 -21
- package/.history/e2e/pages/index_20230511173549.html +0 -17
- package/.history/e2e/pages/index_20230511174725.html +0 -366
- package/.history/e2e/pages/index_20230511174818.html +0 -18
- package/.history/e2e/pages/index_20230511175151.html +0 -366
- package/.history/e2e/pages/index_20230511180114.html +0 -15
- package/.history/e2e/pages/index_20230518182740.html +0 -20
- package/.history/e2e/pages/index_20230518182804.html +0 -21
- package/.history/e2e/pages/index_20230522153300.html +0 -15
- package/.history/e2e/pages/public/index_20230523135713.html +0 -15
- package/.history/e2e/pages/public/index_20230523141954.html +0 -14
- package/.history/e2e/pages/src/api/index_20230510193933.ts +0 -26
- package/.history/e2e/pages/src/api/index_20230511113640.ts +0 -26
- package/.history/e2e/pages/src/api/index_20230511151752.ts +0 -26
- package/.history/e2e/pages/src/components/Loading_20230511175658.tsx +0 -0
- package/.history/e2e/pages/src/components/Loading_20230511175734.tsx +0 -12
- package/.history/e2e/pages/src/components/Loading_20230511175931.tsx +0 -14
- package/.history/e2e/pages/src/index.styled_20230510193933.ts +0 -13
- package/.history/e2e/pages/src/index.styled_20230511151410.ts +0 -13
- package/.history/e2e/pages/src/index.styled_20230511151526.ts +0 -13
- package/.history/e2e/pages/src/index.styled_20230511151814.ts +0 -13
- package/.history/e2e/pages/src/index.styled_20230511172842.ts +0 -14
- package/.history/e2e/pages/src/index.styled_20230511172927.ts +0 -15
- package/.history/e2e/pages/src/index.styled_20230511172936.ts +0 -16
- package/.history/e2e/pages/src/index.styled_20230511173014.ts +0 -13
- package/.history/e2e/pages/src/index_20230510193933.tsx +0 -64
- package/.history/e2e/pages/src/index_20230511112721.tsx +0 -64
- package/.history/e2e/pages/src/index_20230511124302.tsx +0 -77
- package/.history/e2e/pages/src/index_20230511124322.tsx +0 -77
- package/.history/e2e/pages/src/index_20230511124506.tsx +0 -72
- package/.history/e2e/pages/src/index_20230511124716.tsx +0 -72
- package/.history/e2e/pages/src/index_20230511133409.tsx +0 -72
- package/.history/e2e/pages/src/index_20230511141608.tsx +0 -77
- package/.history/e2e/pages/src/index_20230511141609.tsx +0 -77
- package/.history/e2e/pages/src/index_20230511142059.tsx +0 -77
- package/.history/e2e/pages/src/index_20230511144242.tsx +0 -77
- package/.history/e2e/pages/src/index_20230511145239.tsx +0 -81
- package/.history/e2e/pages/src/index_20230511145611.tsx +0 -81
- package/.history/e2e/pages/src/index_20230511150038.tsx +0 -81
- package/.history/e2e/pages/src/index_20230511150332.tsx +0 -87
- package/.history/e2e/pages/src/index_20230511150409.tsx +0 -87
- package/.history/e2e/pages/src/index_20230511150806.tsx +0 -96
- package/.history/e2e/pages/src/index_20230511150921.tsx +0 -96
- package/.history/e2e/pages/src/index_20230511151119.tsx +0 -96
- package/.history/e2e/pages/src/index_20230511151212.tsx +0 -89
- package/.history/e2e/pages/src/index_20230511151213.tsx +0 -89
- package/.history/e2e/pages/src/index_20230511151402.tsx +0 -86
- package/.history/e2e/pages/src/index_20230511151506.tsx +0 -79
- package/.history/e2e/pages/src/index_20230511151508.tsx +0 -75
- package/.history/e2e/pages/src/index_20230511153005.tsx +0 -71
- package/.history/e2e/pages/src/index_20230511153107.tsx +0 -73
- package/.history/e2e/pages/src/index_20230511153108.tsx +0 -73
- package/.history/e2e/pages/src/index_20230511153531.tsx +0 -76
- package/.history/e2e/pages/src/index_20230511153708.tsx +0 -73
- package/.history/e2e/pages/src/index_20230511153839.tsx +0 -75
- package/.history/e2e/pages/src/index_20230511154213.tsx +0 -81
- package/.history/e2e/pages/src/index_20230511154216.tsx +0 -79
- package/.history/e2e/pages/src/index_20230511154409.tsx +0 -83
- package/.history/e2e/pages/src/index_20230511154449.tsx +0 -85
- package/.history/e2e/pages/src/index_20230511154635.tsx +0 -91
- package/.history/e2e/pages/src/index_20230511154636.tsx +0 -91
- package/.history/e2e/pages/src/index_20230511154930.tsx +0 -96
- package/.history/e2e/pages/src/index_20230511154944.tsx +0 -94
- package/.history/e2e/pages/src/index_20230511154945.tsx +0 -93
- package/.history/e2e/pages/src/index_20230511155010.tsx +0 -91
- package/.history/e2e/pages/src/index_20230511160112.tsx +0 -92
- package/.history/e2e/pages/src/index_20230511160930.tsx +0 -92
- package/.history/e2e/pages/src/index_20230511161050.tsx +0 -92
- package/.history/e2e/pages/src/index_20230511161157.tsx +0 -93
- package/.history/e2e/pages/src/index_20230511161212.tsx +0 -93
- package/.history/e2e/pages/src/index_20230511161244.tsx +0 -92
- package/.history/e2e/pages/src/index_20230511161304.tsx +0 -92
- package/.history/e2e/pages/src/index_20230511161307.tsx +0 -92
- package/.history/e2e/pages/src/index_20230511161344.tsx +0 -92
- package/.history/e2e/pages/src/index_20230511161426.tsx +0 -98
- package/.history/e2e/pages/src/index_20230511161627.tsx +0 -101
- package/.history/e2e/pages/src/index_20230511161654.tsx +0 -101
- package/.history/e2e/pages/src/index_20230511161714.tsx +0 -102
- package/.history/e2e/pages/src/index_20230511161721.tsx +0 -103
- package/.history/e2e/pages/src/index_20230511161739.tsx +0 -105
- package/.history/e2e/pages/src/index_20230511161856.tsx +0 -104
- package/.history/e2e/pages/src/index_20230511162002.tsx +0 -105
- package/.history/e2e/pages/src/index_20230511162106.tsx +0 -106
- package/.history/e2e/pages/src/index_20230511163614.tsx +0 -109
- package/.history/e2e/pages/src/index_20230511163744.tsx +0 -109
- package/.history/e2e/pages/src/index_20230511165031.tsx +0 -112
- package/.history/e2e/pages/src/index_20230511165033.tsx +0 -111
- package/.history/e2e/pages/src/index_20230511165356.tsx +0 -112
- package/.history/e2e/pages/src/index_20230511165613.tsx +0 -113
- package/.history/e2e/pages/src/index_20230511165615.tsx +0 -113
- package/.history/e2e/pages/src/index_20230511170431.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511170448.tsx +0 -122
- package/.history/e2e/pages/src/index_20230511170740.tsx +0 -123
- package/.history/e2e/pages/src/index_20230511170856.tsx +0 -123
- package/.history/e2e/pages/src/index_20230511170952.tsx +0 -124
- package/.history/e2e/pages/src/index_20230511171513.tsx +0 -119
- package/.history/e2e/pages/src/index_20230511171555.tsx +0 -119
- package/.history/e2e/pages/src/index_20230511171611.tsx +0 -119
- package/.history/e2e/pages/src/index_20230511171832.tsx +0 -120
- package/.history/e2e/pages/src/index_20230511171850.tsx +0 -120
- package/.history/e2e/pages/src/index_20230511172356.tsx +0 -113
- package/.history/e2e/pages/src/index_20230511172732.tsx +0 -118
- package/.history/e2e/pages/src/index_20230511172752.tsx +0 -116
- package/.history/e2e/pages/src/index_20230511172825.tsx +0 -116
- package/.history/e2e/pages/src/index_20230511173028.tsx +0 -115
- package/.history/e2e/pages/src/index_20230511173124.tsx +0 -114
- package/.history/e2e/pages/src/index_20230511173144.tsx +0 -115
- package/.history/e2e/pages/src/index_20230511173209.tsx +0 -119
- package/.history/e2e/pages/src/index_20230511173213.tsx +0 -119
- package/.history/e2e/pages/src/index_20230511173235.tsx +0 -123
- package/.history/e2e/pages/src/index_20230511173238.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511173303.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511173312.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511173604.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511173623.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511173628.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511174842.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175122.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175133.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175327.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175329.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175343.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175344.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175345.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175412.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175422.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175426.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175501.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175515.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175521.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175530.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175538.tsx +0 -123
- package/.history/e2e/pages/src/index_20230511175542.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175602.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175621.tsx +0 -121
- package/.history/e2e/pages/src/index_20230511175813.tsx +0 -116
- package/.history/e2e/pages/src/index_20230511175819.tsx +0 -116
- package/.history/e2e/pages/src/index_20230511175844.tsx +0 -116
- package/.history/e2e/pages/src/index_20230511175845.tsx +0 -116
- package/.history/e2e/pages/src/index_20230511180023.tsx +0 -118
- package/.history/e2e/pages/src/index_20230511182316.tsx +0 -125
- package/.history/e2e/pages/src/index_20230511182608.tsx +0 -125
- package/.history/e2e/pages/src/index_20230511182609.tsx +0 -125
- package/.history/e2e/pages/src/index_20230511182757.tsx +0 -125
- package/.history/e2e/pages/src/index_20230511182903.tsx +0 -125
- package/.history/e2e/pages/src/index_20230511182937.tsx +0 -126
- package/.history/e2e/pages/src/index_20230511182948.tsx +0 -125
- package/.history/e2e/pages/src/index_20230511183018.tsx +0 -125
- package/.history/e2e/pages/src/index_20230511183133.tsx +0 -125
- package/.history/e2e/pages/src/index_20230512155015.tsx +0 -125
- package/.history/e2e/pages/src/index_20230523142330.tsx +0 -126
- package/.history/e2e/pages/src/index_20230523142331.tsx +0 -126
- package/.history/e2e/pages/src/index_20230524135532.tsx +0 -125
- package/.history/e2e/pages/src/index_20230524221001.tsx +0 -125
- package/.history/e2e/pages/src/index_20230524221118.tsx +0 -125
- package/.history/e2e/pages/src/util/index_20230510193933.ts +0 -72
- package/.history/e2e/pages/src/util/index_20230511160018.ts +0 -73
- package/.history/e2e/pages/src/util/index_20230511160344.ts +0 -74
- package/.history/e2e/pages/src/util/index_20230511160737.ts +0 -75
- package/.history/e2e/pages/src/util/index_20230511160755.ts +0 -75
- package/.history/e2e/pages/src/util/index_20230511160837.ts +0 -73
- package/.history/e2e/pages/src/util/index_20230511161107.ts +0 -72
- package/.history/e2e/pages/src/util/index_20230511172301.ts +0 -81
- package/.history/e2e/pages/src/util/index_20230512154151.ts +0 -89
- package/.history/e2e/pages/src/util/index_20230512154521.ts +0 -98
- package/.history/e2e/pages/src/util/index_20230512154722.ts +0 -98
- package/.history/e2e/pages/src/util/index_20230512154913.ts +0 -91
- package/.history/e2e/pages/src/util/index_20230512155144.ts +0 -91
- package/.history/e2e/pages/src/util/index_20230512155145.ts +0 -91
- package/.history/e2e/pages/src/util/index_20230512155146.ts +0 -91
- package/.history/e2e/pages/src/util/index_20230512155153.ts +0 -90
- package/.history/e2e/pages/src/util/index_20230512155624.ts +0 -90
- package/.history/e2e/pages/src/util/index_20230512155741.ts +0 -90
- package/.history/e2e/pages/src/util/index_20230512155917.ts +0 -90
- package/.history/e2e/pages/src/util/index_20230524221047.ts +0 -97
- package/.history/e2e/pages/webpack.config_20230510193933.js +0 -30
- package/.history/e2e/pages/webpack.config_20230511144239.js +0 -39
- package/.history/e2e/pages/webpack.config_20230511144341.js +0 -39
- package/.history/e2e/pages/webpack.config_20230511144430.js +0 -39
- package/.history/e2e/pages/webpack.config_20230511144644.js +0 -41
- package/.history/e2e/pages/webpack.config_20230511144645.js +0 -41
- package/.history/e2e/pages/webpack.config_20230511144753.js +0 -41
- package/.history/e2e/pages/webpack.config_20230511144802.js +0 -41
- package/.history/e2e/pages/webpack.config_20230511144845.js +0 -41
- package/.history/e2e/pages/webpack.config_20230511144926.js +0 -41
- package/.history/e2e/pages/webpack.config_20230511144934.js +0 -41
- package/.history/e2e/pages/webpack.config_20230511144943.js +0 -40
- package/.history/e2e/pages/webpack.config_20230511145020.js +0 -39
- package/.history/e2e/pages/webpack.config_20230511145106.js +0 -41
- package/.history/e2e/pages/webpack.config_20230511145716.js +0 -41
- package/.history/e2e/pages/webpack.config_20230511145916.js +0 -36
- package/.history/e2e/pages/webpack.config_20230518173344.js +0 -37
- package/.history/e2e/pages/webpack.config_20230518174552.js +0 -36
- package/.history/e2e/pages/webpack.config_20230523133653.js +0 -35
- package/.history/e2e/public/index_20230524155527.html +0 -43
- package/.history/e2e/public/index_20230524162254.html +0 -43
- package/.history/e2e/public/index_20230524185229.html +0 -37
- package/.history/e2e/public/index_20230524215646.html +0 -13
- package/.history/e2e/public/index_20230524215648.html +0 -12
- package/.history/e2e/src/api/index_20230524161035.ts +0 -26
- package/.history/e2e/src/api/index_20230524215532.ts +0 -26
- package/.history/e2e/src/components/Home/index_20230524161228.tsx +0 -125
- package/.history/e2e/src/components/Home/index_20230524161356.tsx +0 -116
- package/.history/e2e/src/components/Home/index_20230524161420.tsx +0 -115
- package/.history/e2e/src/components/Home/index_20230524161442.tsx +0 -115
- package/.history/e2e/src/components/Home/index_20230525002542.tsx +0 -123
- package/.history/e2e/src/components/Home/index_20230525002658.tsx +0 -125
- package/.history/e2e/src/components/Home/index_20230525002730.tsx +0 -126
- package/.history/e2e/src/index_20230524155527.tsx +0 -19
- package/.history/e2e/src/index_20230524161122.tsx +0 -125
- package/.history/e2e/src/index_20230524161206.tsx +0 -19
- package/.history/e2e/src/index_20230524161343.tsx +0 -17
- package/.history/e2e/src/index_20230524161927.tsx +0 -12
- package/.history/e2e/src/index_20230524161943.tsx +0 -11
- package/.history/e2e/src/index_20230524215444.tsx +0 -16
- package/.history/e2e/src/util/index_20230524222013.ts +0 -96
- package/.history/e2e/src/util/index_20230525000927.ts +0 -96
- package/.history/e2e/src/util/index_20230525000928.ts +0 -96
- package/.history/e2e/src/util/index_20230525001227.ts +0 -97
- package/.history/e2e/src/util/index_20230525001229.ts +0 -97
- package/.history/e2e/src/util/index_20230525001439.ts +0 -97
- package/.history/e2e/src/util/index_20230525001641.ts +0 -101
- package/.history/e2e/src/util/index_20230525001953.ts +0 -100
- package/.history/e2e/src/util/index_20230525002514.ts +0 -100
- package/.history/e2e/src/util/index_20230525002533.ts +0 -100
- package/.history/ops/buildspec_20240620105123.yml +0 -17
- package/.history/package_20240620101011.json +0 -176
- package/.history/package_20240620102132.json +0 -180
- package/.history/package_20240620102136.json +0 -179
- package/.history/package_20240620102151.json +0 -179
- package/.history/package_20240620102153.json +0 -179
- package/.history/package_20240620102228.json +0 -180
- package/.history/package_20240620102534.json +0 -181
- package/.history/package_20240620102955.json +0 -180
- package/.history/package_20240620103103.json +0 -181
- package/.history/package_20240620103105.json +0 -180
- package/.history/package_20240620103120.json +0 -181
- package/.history/package_20240620103532.json +0 -181
- package/.history/package_20240620103741.json +0 -181
- package/.history/package_20240620103803.json +0 -181
- package/.history/package_20240620105356.json +0 -181
- package/.history/package_20240620110005.json +0 -181
- package/.history/package_20240620110042.json +0 -172
- package/.history/package_20240620131821.json +0 -181
- package/.history/package_20240620133118.json +0 -179
- package/.history/package_20240620133317.json +0 -179
- package/.history/package_20240620133341.json +0 -179
- package/.history/package_20240620135524.json +0 -178
- package/.history/package_20240704143808.json +0 -180
- package/.history/package_20240704143813.json +0 -180
- package/.history/public/index_20230523141735.html +0 -15
- package/.history/public/index_20230523141958.html +0 -14
- package/.history/src/components/Button/BaseButton/index_20240620100732.tsx +0 -101
- package/.history/src/components/Button/BaseButton/index_20240704140342.tsx +0 -103
- package/.history/src/components/Button/BaseButton/index_20240704140358.tsx +0 -103
- package/.history/src/components/Button/BaseButton/index_20240704140500.tsx +0 -101
- package/.history/src/components/Button/BaseButton/index_20240704140632.tsx +0 -103
- package/.history/src/components/Button/BaseButton/index_20240704140652.tsx +0 -106
- package/.history/src/components/Button/BaseButton/index_20240704140700.tsx +0 -107
- package/.history/src/components/Button/BaseButton/index_20240704140711.tsx +0 -108
- package/.history/src/components/Button/BaseButton/index_20240704140714.tsx +0 -106
- package/.history/src/components/Button/BaseButton/index_20240704140717.tsx +0 -106
- package/.history/src/components/Button/BaseButton/index_20240704140900.tsx +0 -105
- package/.history/src/components/Button/BaseButton/index_20240704140926.tsx +0 -106
- package/.history/src/components/Button/BaseButton/index_20240704140954.tsx +0 -105
- package/.history/src/components/Button/BaseButton/index_20240704141107.tsx +0 -105
- package/.history/src/components/Button/BaseButton/index_20240704141112.tsx +0 -103
- package/.history/src/components/Button/DoubleButton/index_20240620100732.tsx +0 -53
- package/.history/src/components/Button/DoubleButton/index_20240620133519.tsx +0 -53
- package/.history/src/components/Button/DoubleButton/index_20240620133607.tsx +0 -53
- package/.history/src/components/Control/CheckBox/index_20231208085202.tsx +0 -51
- package/.history/src/components/Control/CheckBox/index_20240102131509.tsx +0 -53
- package/.history/src/components/Control/CheckMark/index_20231208110651.tsx +0 -33
- package/.history/src/components/Control/CheckMark/index_20240104141745.tsx +0 -35
- package/.history/src/components/Input/BaseInput/index.styled_20230518172815.ts +0 -149
- package/.history/src/components/Input/BaseInput/index.styled_20230620134104.ts +0 -150
- package/.history/src/components/Input/BaseInput/index.styled_20230620153553.ts +0 -150
- package/.history/src/components/Input/BaseInput/index.styled_20230620162224.ts +0 -151
- package/.history/src/components/Input/PostfixInput/index.styled_20230518172815.ts +0 -71
- package/.history/src/components/Input/PostfixInput/index.styled_20230619181154.ts +0 -72
- package/.history/src/components/Input/PostfixInput/index.styled_20230619181243.ts +0 -71
- package/.history/src/components/Input/PostfixInput/index.styled_20230619181840.ts +0 -70
- package/.history/src/components/Input/PostfixInput/index.styled_20230619181843.ts +0 -70
- package/.history/src/components/Input/PostfixInput/index.styled_20230619181844.ts +0 -70
- package/.history/src/components/Input/PostfixInput/index.styled_20230620110646.ts +0 -70
- package/.history/src/components/Input/PostfixInput/index_20231208085501.tsx +0 -173
- package/.history/src/components/Input/PostfixInput/index_20231208085544.tsx +0 -174
- package/.history/src/components/Input/PostfixInput/index_20231208085701.tsx +0 -175
- package/.history/src/components/Input/PostfixInput/index_20231208090034.tsx +0 -175
- package/.history/src/components/Input/PostfixInput/index_20231208110722.tsx +0 -174
- package/.history/src/components/Input/PostfixInput/index_20231208110738.tsx +0 -175
- package/.history/src/components/Input/PostfixInput/index_20231208110752.tsx +0 -176
- package/.history/src/components/Input/index.stories_20230523113113.tsx +0 -209
- package/.history/src/components/Input/index.stories_20230619181021.tsx +0 -210
- package/.history/src/components/Input/index.stories_20230619181656.tsx +0 -210
- package/.history/src/components/Input/index.stories_20230619184317.tsx +0 -210
- package/.history/src/components/Loading/index_20230510193851.ts +0 -4
- package/.history/src/components/Loading/index_20230511140917.ts +0 -5
- package/.history/src/components/Loading/index_20230511151553.ts +0 -4
- package/.history/src/core/TextStyles/index_20230518172815.ts +0 -158
- package/.history/src/core/TextStyles/index_20230522164636.ts +0 -158
- package/.history/src/hooks/useLayoutIsMobile_20230510193851.ts +0 -23
- package/.history/src/hooks/useLayoutIsMobile_20240112115425.ts +0 -23
- package/.history/src/library/BasicLayout/index_20240620100732.tsx +0 -89
- package/.history/src/library/BasicLayout/index_20240620101635.tsx +0 -89
- package/.history/src/library/BasicLayout/index_20240620101752.tsx +0 -89
- package/.history/src/library/Flex/index.stories_20231208085202.tsx +0 -41
- package/.history/src/library/Flex/index.stories_20240620133414.tsx +0 -41
- package/.history/src/storybook/extend-color-type.stories_20240620100732.tsx +0 -613
- package/.history/src/storybook/extend-color-type.stories_20240620133449.tsx +0 -613
- package/.history/src/storybook/extend-color-type.stories_20240620133541.tsx +0 -611
- package/.history/src/storybook/extend-color-type.stories_20240620133550.tsx +0 -609
- package/.history/src/storybook/extend-color-type.stories_20240620133554.tsx +0 -609
- package/.history/src/utils/GenerateColorStyle/single-button_20240620100732.ts +0 -109
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153725.ts +0 -110
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153726.ts +0 -110
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153826.ts +0 -105
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153909.ts +0 -110
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153934.ts +0 -111
- package/.history/src/utils/GenerateColorStyle/single-button_20240702153935.ts +0 -111
- package/.history/src/utils/GenerateColorStyle/single-button_20240704141120.ts +0 -109
- package/.history/yarn_20230510193944.lock +0 -11943
- package/.history/yarn_20230510194159.lock +0 -11941
- package/.vscode/settings.json +0 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import { SingleButtonProps } from '../SingleButton';
|
|
3
3
|
import { ColorType, PurposeType } from '../../../utils';
|
|
4
4
|
type DoubleButtonProps = {
|
|
5
5
|
colorType: ColorType;
|
|
6
6
|
purpose: PurposeType;
|
|
7
|
-
left: Omit<SingleButtonProps, 'purpose' | 'colorType'
|
|
8
|
-
right: Omit<SingleButtonProps, 'purpose' | 'colorType'
|
|
7
|
+
left: PropsWithChildren<Omit<SingleButtonProps, 'purpose' | 'colorType'>>;
|
|
8
|
+
right: PropsWithChildren<Omit<SingleButtonProps, 'purpose' | 'colorType'>>;
|
|
9
9
|
};
|
|
10
10
|
declare const DoubleButton: React.FC<DoubleButtonProps>;
|
|
11
11
|
export type { DoubleButtonProps };
|
|
@@ -27,7 +27,7 @@ exports.Switch = void 0;
|
|
|
27
27
|
const react_1 = __importStar(require("react"));
|
|
28
28
|
const utils_1 = require("../../../utils");
|
|
29
29
|
const Styled = __importStar(require("./index.styled"));
|
|
30
|
-
const Switch = ({ colorType, value: checked, disabled = false, onChange }) => {
|
|
30
|
+
const Switch = ({ colorType, value: checked, disabled = false, size = 'm', onChange }) => {
|
|
31
31
|
const handleActive = (0, react_1.useCallback)(() => {
|
|
32
32
|
if (!disabled) {
|
|
33
33
|
onChange(!checked);
|
|
@@ -39,7 +39,7 @@ const Switch = ({ colorType, value: checked, disabled = false, onChange }) => {
|
|
|
39
39
|
const on_off = checked ? 'on' : 'off';
|
|
40
40
|
return colorStyle[state][on_off].containerColor;
|
|
41
41
|
}, [colorType, disabled, checked]);
|
|
42
|
-
return (react_1.default.createElement(Styled.Wrapper, { backgroundColor: fillColor, disabled: disabled, onClick: handleActive },
|
|
43
|
-
react_1.default.createElement(Styled.Control, { active: checked })));
|
|
42
|
+
return (react_1.default.createElement(Styled.Wrapper, { backgroundColor: fillColor, disabled: disabled, onClick: handleActive, size: size },
|
|
43
|
+
react_1.default.createElement(Styled.Control, { active: checked, size: size })));
|
|
44
44
|
};
|
|
45
45
|
exports.Switch = Switch;
|
|
@@ -2,9 +2,9 @@ import type { Meta, StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { SwitchProps } from '.';
|
|
3
3
|
type Story = StoryObj<SwitchProps>;
|
|
4
4
|
/**
|
|
5
|
-
* updated
|
|
5
|
+
* updated 241108
|
|
6
6
|
*
|
|
7
|
-
* <a href="https://www.notion.so/Control-
|
|
7
|
+
* <a href="https://www.notion.so/Control-396458ba4b454782941b14d673353299" target="_blank">노션페이지</a>
|
|
8
8
|
* <br/>
|
|
9
9
|
* 한 가지 옵션을 켜고 끌 수 있는 컨트롤입니다.
|
|
10
10
|
*
|
|
@@ -27,9 +27,9 @@ exports.Story1 = void 0;
|
|
|
27
27
|
const react_1 = __importStar(require("react"));
|
|
28
28
|
const _1 = require(".");
|
|
29
29
|
/**
|
|
30
|
-
* updated
|
|
30
|
+
* updated 241108
|
|
31
31
|
*
|
|
32
|
-
* <a href="https://www.notion.so/Control-
|
|
32
|
+
* <a href="https://www.notion.so/Control-396458ba4b454782941b14d673353299" target="_blank">노션페이지</a>
|
|
33
33
|
* <br/>
|
|
34
34
|
* 한 가지 옵션을 켜고 끌 수 있는 컨트롤입니다.
|
|
35
35
|
*
|
|
@@ -49,6 +49,7 @@ exports.Story1 = {
|
|
|
49
49
|
render: (props) => react_1.default.createElement(Component, Object.assign({}, props)),
|
|
50
50
|
args: {
|
|
51
51
|
colorType: 'blue',
|
|
52
|
+
size: 'm',
|
|
52
53
|
},
|
|
53
54
|
argTypes: {
|
|
54
55
|
onChange: { action: 'onChange' },
|
|
@@ -5,10 +5,12 @@ export declare const Wrapper: import("@emotion/styled").StyledComponent<{
|
|
|
5
5
|
} & {
|
|
6
6
|
backgroundColor: string;
|
|
7
7
|
disabled: boolean;
|
|
8
|
+
size: 's' | 'm';
|
|
8
9
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
10
|
export declare const Control: import("@emotion/styled").StyledComponent<{
|
|
10
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
12
|
as?: import("react").ElementType<any> | undefined;
|
|
12
13
|
} & {
|
|
13
14
|
active: boolean;
|
|
15
|
+
size: 's' | 'm';
|
|
14
16
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -4,24 +4,53 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Control = exports.Wrapper = void 0;
|
|
7
|
+
const react_1 = require("@emotion/react");
|
|
7
8
|
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
8
9
|
const Colors_1 = require("../../../core/Colors");
|
|
10
|
+
const getSizeStyle = ({ size, active = false }) => {
|
|
11
|
+
const WrapperMediumCss = (0, react_1.css) `
|
|
12
|
+
width: 50px;
|
|
13
|
+
height: 30px;
|
|
14
|
+
padding: 3px;
|
|
15
|
+
`;
|
|
16
|
+
const WrapperSmallCss = (0, react_1.css) `
|
|
17
|
+
width: 36px;
|
|
18
|
+
height: 22px;
|
|
19
|
+
padding: 2px;
|
|
20
|
+
`;
|
|
21
|
+
const ControlMediumCss = (0, react_1.css) `
|
|
22
|
+
width: 24px;
|
|
23
|
+
height: 24px;
|
|
24
|
+
left: ${active ? '20px' : 0};
|
|
25
|
+
`;
|
|
26
|
+
const ControlSmallCss = (0, react_1.css) `
|
|
27
|
+
width: 18px;
|
|
28
|
+
height: 18px;
|
|
29
|
+
left: ${active ? '14px' : 0};
|
|
30
|
+
`;
|
|
31
|
+
if (size === 'm') {
|
|
32
|
+
return { Wrapper: WrapperMediumCss, Control: ControlMediumCss };
|
|
33
|
+
}
|
|
34
|
+
return { Wrapper: WrapperSmallCss, Control: ControlSmallCss };
|
|
35
|
+
};
|
|
9
36
|
exports.Wrapper = styled_1.default.div `
|
|
10
|
-
width: 50px;
|
|
11
|
-
height: 30px;
|
|
12
37
|
border-radius: 25px;
|
|
13
38
|
position: relative;
|
|
14
39
|
box-sizing: border-box;
|
|
15
|
-
padding: 3px;
|
|
16
40
|
background-color: ${({ backgroundColor }) => backgroundColor};
|
|
17
41
|
cursor: ${({ disabled }) => (disabled ? 'not-allowed' : 'pointer')};
|
|
42
|
+
|
|
43
|
+
${({ size }) => {
|
|
44
|
+
return getSizeStyle({ size }).Wrapper;
|
|
45
|
+
}}
|
|
18
46
|
`;
|
|
19
47
|
exports.Control = styled_1.default.div `
|
|
20
|
-
width: 24px;
|
|
21
|
-
height: 24px;
|
|
22
48
|
position: relative;
|
|
23
49
|
background-color: ${Colors_1.basicColors.white};
|
|
24
50
|
border-radius: 50%;
|
|
25
51
|
transition: all 0.4s ease-out;
|
|
26
|
-
|
|
52
|
+
|
|
53
|
+
${({ size, active }) => {
|
|
54
|
+
return getSizeStyle({ size, active }).Control;
|
|
55
|
+
}};
|
|
27
56
|
`;
|
|
@@ -8,8 +8,8 @@ type ModalProps = Omit<BaseModalProps, 'children'> & {
|
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
};
|
|
10
10
|
declare const Modal: React.FC<ModalProps> & {
|
|
11
|
-
SingleButton: React.FC<import("../Button/BaseButton").BaseButtonProps
|
|
12
|
-
DoubleButton: React.FC<DoubleButtonProps
|
|
11
|
+
SingleButton: React.FC<React.PropsWithChildren<import("../Button/BaseButton").BaseButtonProps>>;
|
|
12
|
+
DoubleButton: React.FC<React.PropsWithChildren<DoubleButtonProps>>;
|
|
13
13
|
Title: React.FC<{
|
|
14
14
|
title: ReactNode;
|
|
15
15
|
subTitle?: ReactNode;
|
|
@@ -8,7 +8,9 @@ export type BasicLayoutProps = PropsWithChildren<{
|
|
|
8
8
|
marginBottomNoFooterColor?: string;
|
|
9
9
|
}>;
|
|
10
10
|
declare const BasicLayout: React.FC<BasicLayoutProps> & {
|
|
11
|
-
VerticalHorizontalCenterLayout: React.FC<{
|
|
11
|
+
VerticalHorizontalCenterLayout: React.FC<{
|
|
12
|
+
readonly children: React.ReactNode;
|
|
13
|
+
}>;
|
|
12
14
|
Header: React.FC<import("../../components/Title").TitleProps>;
|
|
13
15
|
Body: import("@emotion/styled").StyledComponent<{
|
|
14
16
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
1
2
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
3
|
import { FlexContainerProps } from './index.styled';
|
|
3
4
|
type Story = StoryObj<FlexContainerProps>;
|
|
4
|
-
declare const meta: Meta<FlexContainerProps
|
|
5
|
+
declare const meta: Meta<PropsWithChildren<FlexContainerProps>>;
|
|
5
6
|
export default meta;
|
|
6
7
|
export declare const Story1: Story;
|
|
7
8
|
export declare const Story2: Story;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pfct/purple",
|
|
3
|
-
"version": "1.4.0-rc.
|
|
3
|
+
"version": "1.4.0-rc.3",
|
|
4
4
|
"description": "design system for PFCT web service",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
"peoplefund-tech",
|
|
14
14
|
"design-system"
|
|
15
15
|
],
|
|
16
|
-
"contributors": [
|
|
17
|
-
"SEONMI KIM <hello.ddubbu@gmail.com>"
|
|
18
|
-
],
|
|
16
|
+
"contributors": [],
|
|
19
17
|
"license": "MIT",
|
|
20
18
|
"bugs": {
|
|
21
19
|
"url": "https://github.com/peoplefund-tech/PurpleUI-WEB/issues"
|
|
@@ -50,15 +48,15 @@
|
|
|
50
48
|
]
|
|
51
49
|
},
|
|
52
50
|
"dependencies": {
|
|
53
|
-
"@emotion/core": "
|
|
51
|
+
"@emotion/core": "11.0.0",
|
|
54
52
|
"@emotion/css": "^11.9.0",
|
|
55
|
-
"@emotion/react": "^11.
|
|
56
|
-
"@emotion/styled": "^11.
|
|
57
|
-
"@emotion/styled-base": "^
|
|
53
|
+
"@emotion/react": "^11.10.6",
|
|
54
|
+
"@emotion/styled": "^11.10.6",
|
|
55
|
+
"@emotion/styled-base": "^11.0.0",
|
|
58
56
|
"@tippyjs/react": "^4.2.6",
|
|
59
57
|
"lottie-web": "^5.10.2",
|
|
60
|
-
"react": "^
|
|
61
|
-
"react-dom": "^
|
|
58
|
+
"react": "^18.2.0",
|
|
59
|
+
"react-dom": "^18.2.0",
|
|
62
60
|
"react-intersection-observer": "^9.4.3",
|
|
63
61
|
"react-router-dom": "^6.11.1",
|
|
64
62
|
"rifm": "^0.12.1"
|
|
@@ -76,17 +74,17 @@
|
|
|
76
74
|
"@storybook/react": "^7.0.6",
|
|
77
75
|
"@storybook/react-webpack5": "^7.0.6",
|
|
78
76
|
"@storybook/testing-library": "^0.2.0",
|
|
79
|
-
"@types/jest": "^
|
|
80
|
-
"@types/react": "^
|
|
81
|
-
"@types/react-dom": "^
|
|
77
|
+
"@types/jest": "^29.5.0",
|
|
78
|
+
"@types/react": "^18.0.0",
|
|
79
|
+
"@types/react-dom": "^18.0.0",
|
|
82
80
|
"aws-sdk": "^2.1366.0",
|
|
83
81
|
"babel-loader": "^8.2.5",
|
|
84
82
|
"core-js": "^3.23.4",
|
|
85
83
|
"css-loader": "^6.7.1",
|
|
86
84
|
"css-minimizer-webpack-plugin": "^4.0.0",
|
|
87
85
|
"html-webpack-plugin": "^5.5.0",
|
|
88
|
-
"husky": "^
|
|
89
|
-
"lint-staged": "^
|
|
86
|
+
"husky": "^9.1.4",
|
|
87
|
+
"lint-staged": "^15.2.9",
|
|
90
88
|
"mini-css-extract-plugin": "^2.7.6",
|
|
91
89
|
"standard-version": "^9.5.0",
|
|
92
90
|
"storybook": "^7.0.6",
|
|
@@ -96,10 +94,10 @@
|
|
|
96
94
|
"stylelint-config-styled-components": "^0.1.1",
|
|
97
95
|
"stylelint-processor-styled-components": "^1.10.0",
|
|
98
96
|
"terser-webpack-plugin": "^5.3.3",
|
|
99
|
-
"ts-jest": "^
|
|
97
|
+
"ts-jest": "^29.1.0",
|
|
100
98
|
"ts-node": "^10.9.1",
|
|
101
99
|
"tsc-files": "^1.1.3",
|
|
102
|
-
"typescript": "^4.
|
|
100
|
+
"typescript": "^4.9.5",
|
|
103
101
|
"webpack": "^5.73.0",
|
|
104
102
|
"webpack-bundle-analyzer": "^4.9.0",
|
|
105
103
|
"webpack-cli": "^4.10.0",
|
|
@@ -107,11 +105,11 @@
|
|
|
107
105
|
"webpack-merge": "^5.8.0"
|
|
108
106
|
},
|
|
109
107
|
"optionalDependencies": {
|
|
110
|
-
"@commitlint/config-conventional": "^
|
|
108
|
+
"@commitlint/config-conventional": "^19.2.2",
|
|
111
109
|
"@emotion/babel-preset-css-prop": "^11.11.0",
|
|
112
110
|
"@emotion/eslint-plugin": "^11.7.0",
|
|
113
111
|
"@testing-library/jest-dom": "^5.16.5",
|
|
114
|
-
"@testing-library/react": "^
|
|
112
|
+
"@testing-library/react": "^14.0.0",
|
|
115
113
|
"@testing-library/user-event": "^14.4.3",
|
|
116
114
|
"@typescript-eslint/eslint-plugin": "^5.23.0",
|
|
117
115
|
"@typescript-eslint/parser": "^5.30.0",
|
|
@@ -125,7 +123,7 @@
|
|
|
125
123
|
"eslint-plugin-react-hooks": "^4.5.0",
|
|
126
124
|
"eslint-plugin-testing-library": "^5.3.1",
|
|
127
125
|
"identity-obj-proxy": "^3.0.0",
|
|
128
|
-
"jest": "^
|
|
126
|
+
"jest": "^29.5.0"
|
|
129
127
|
},
|
|
130
128
|
"eslintConfig": {
|
|
131
129
|
"extends": [
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": [
|
|
3
|
-
"plugin:@typescript-eslint/recommended",
|
|
4
|
-
"plugin:react/recommended",
|
|
5
|
-
"plugin:prettier/recommended",
|
|
6
|
-
"prettier"
|
|
7
|
-
],
|
|
8
|
-
"plugins": ["react-hooks"],
|
|
9
|
-
"rules": {
|
|
10
|
-
/**
|
|
11
|
-
* react/display-name
|
|
12
|
-
* React.memo, React.forwardRef도 막는 경우가 존재하여 해당 Rule은 생산성을 떨어트린다 판단되 off 처리됨
|
|
13
|
-
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/display-name.md
|
|
14
|
-
* */
|
|
15
|
-
"react/display-name": "off",
|
|
16
|
-
"react-hooks/rules-of-hooks": "error",
|
|
17
|
-
"react-hooks/exhaustive-deps": [
|
|
18
|
-
"error",
|
|
19
|
-
{
|
|
20
|
-
"additionalHooks": "useRecoilCallback"
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"@typescript-eslint/no-unused-vars": "error",
|
|
24
|
-
/**
|
|
25
|
-
* react/prop-types
|
|
26
|
-
* Type선언으로 propTypes를 이미 명명하고 있으므로, off 처리함
|
|
27
|
-
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md
|
|
28
|
-
*/
|
|
29
|
-
"react/prop-types": "off",
|
|
30
|
-
"prettier/prettier":[
|
|
31
|
-
"off",
|
|
32
|
-
{
|
|
33
|
-
"trailingComma" : 0
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"@typescript-eslint/no-explicit-any": "warn"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: [
|
|
3
|
-
'plugin:@typescript-eslint/recommended',
|
|
4
|
-
'plugin:react/recommended',
|
|
5
|
-
'plugin:prettier/recommended',
|
|
6
|
-
'prettier'
|
|
7
|
-
],
|
|
8
|
-
parser: '@typescript-eslint/parser',
|
|
9
|
-
parserOptions: {
|
|
10
|
-
ecmaFeatures: {
|
|
11
|
-
jsx: true
|
|
12
|
-
},
|
|
13
|
-
ecmaVersion: 6,
|
|
14
|
-
sourceType: 'module'
|
|
15
|
-
},
|
|
16
|
-
plugins: ['react', '@typescript-eslint', 'react-hooks', 'import', '@emotion', 'prettier'],
|
|
17
|
-
globals: {
|
|
18
|
-
process: true
|
|
19
|
-
},
|
|
20
|
-
settings: {
|
|
21
|
-
react: { version: 'detect' }
|
|
22
|
-
},
|
|
23
|
-
rules: {
|
|
24
|
-
'@emotion/jsx-import': 'error',
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* prettier가 적용 되었는지 체크
|
|
28
|
-
*/
|
|
29
|
-
'prettier/prettier': 'warn',
|
|
30
|
-
/**
|
|
31
|
-
* 짧은 표기법으로 진행하는 형변환은 이해하기 어려울 수 있으므로 코드의 직관성이 떨어져 금지
|
|
32
|
-
* https://eslint.org/docs/rules/no-implicit-coercion
|
|
33
|
-
*/
|
|
34
|
-
'no-implicit-coercion': 'error',
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* no-extra-boolean-cast
|
|
38
|
-
* !!var, !!!var 등 구분하기 애매한 boolean 형변환을 명확하도록
|
|
39
|
-
* https://eslint.org/docs/rules/no-extra-boolean-cast
|
|
40
|
-
*/
|
|
41
|
-
'no-extra-boolean-cast': 'off',
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* getter-return
|
|
45
|
-
* 함수의 input output이 어떤지 사이드 이펙트를 측정하기 힘들어지므로,
|
|
46
|
-
* 아무런 값도 return 하지 않는 함수일경우 경고
|
|
47
|
-
* https://eslint.org/docs/rules/getter-return
|
|
48
|
-
*/
|
|
49
|
-
'getter-return': 'warn',
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* 재할당되지 않는 변수는 const 선언
|
|
53
|
-
* https://eslint.org/docs/rules/prefer-const
|
|
54
|
-
*/
|
|
55
|
-
'prefer-const': 'error',
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* no-var
|
|
59
|
-
* var 선언 금지
|
|
60
|
-
* https://eslint.org/docs/rules/no-var
|
|
61
|
-
*/
|
|
62
|
-
'no-var': 'error',
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @typescript-eslint/no-empty-interface
|
|
66
|
-
* 빈 인터페이스 경고
|
|
67
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-empty-interface.md
|
|
68
|
-
*/
|
|
69
|
-
'@typescript-eslint/no-empty-interface': 'warn',
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* curly
|
|
73
|
-
* if문 또는 for문에 대한 코드가 하나만 포홤된경우 중괄호를 생략할수 있으나, 버그를 유발하고 코드의 명확성을 떨어트릴 수 있기 때문에 금지
|
|
74
|
-
* https://eslint.org/docs/rules/curly
|
|
75
|
-
*/
|
|
76
|
-
curly: ['error', 'all'],
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* eqeqeq
|
|
80
|
-
* === 및 !==등 형병환 비교 연산자만 허용, 대신 null은 해당 Rule에 대해서 예외 처리
|
|
81
|
-
* https://eslint.org/docs/rules/eqeqeq#require-and-eqeqeq
|
|
82
|
-
*/
|
|
83
|
-
eqeqeq: ['error', 'always', { null: 'ignore' }],
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* import/no-cycle
|
|
87
|
-
* 다른 모듈끼리 서로를 import 하는것을 방지
|
|
88
|
-
* https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-cycle.md
|
|
89
|
-
* */
|
|
90
|
-
'import/no-cycle': ['error', { maxDepth: Infinity }],
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* import/no-duplicates
|
|
94
|
-
* 중복된 import 금지
|
|
95
|
-
* https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
|
|
96
|
-
* */
|
|
97
|
-
'import/no-duplicates': 'error',
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* react/display-name
|
|
101
|
-
* React.memo, React.forwardRef도 막는 경우가 존재하여 해당 Rule은 생산성을 떨어트린다 판단되 off 처리됨
|
|
102
|
-
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/display-name.md
|
|
103
|
-
* */
|
|
104
|
-
'react/display-name': 'off',
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* react/prop-types
|
|
108
|
-
* Type선언으로 propTypes를 이미 명명하고 있으므로, off 처리함
|
|
109
|
-
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md
|
|
110
|
-
*/
|
|
111
|
-
'react/prop-types': 'off',
|
|
112
|
-
/**
|
|
113
|
-
* react-hooks/rules-of-hooks
|
|
114
|
-
* 내부 코드 컨벤션상 React Hook 으로만 코드를 작성하도록 강제
|
|
115
|
-
*/
|
|
116
|
-
'react-hooks/rules-of-hooks': 'error',
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* react-hooks/exhaustive-deps
|
|
120
|
-
* useCallback, useMemo, useEffect등 Hook에서 사용되는 변수중, 누락된 deps가 있는지 검사
|
|
121
|
-
*/
|
|
122
|
-
'react-hooks/exhaustive-deps': 'error',
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @deprecated - 기존 eslint가 동작하지 않음으로써 생긴 에러가 다소 존재하여 임시로 warn 처리됨. 차후엔 error로 변경 필요
|
|
126
|
-
* @typescript-eslint/no-explicit-any
|
|
127
|
-
* any 타입 선언 금지
|
|
128
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-explicit-any.md
|
|
129
|
-
*/
|
|
130
|
-
'@typescript-eslint/no-explicit-any': 'warn',
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* 아직 미개발 사항들이 있는 것 같아서 팀원들 확인이 필요하여 그대로 둠. error 로 변경 필요
|
|
134
|
-
* tsconfig.json 의 noUnusedLocals, noUnusedParameters 옵션과 동시 변경
|
|
135
|
-
*/
|
|
136
|
-
'@typescript-eslint/no-unused-vars': 'error',
|
|
137
|
-
|
|
138
|
-
'@typescript-eslint/no-non-null-assertion': 'error',
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* 7.22.0 에 추가된 스펙으로, 일단 모두 추가하여 테스트 중
|
|
142
|
-
*/
|
|
143
|
-
'react/jsx-key': ['error', { checkFragmentShorthand: true, checkKeyMustBeforeSpread: true }],
|
|
144
|
-
'react/jsx-no-constructed-context-values': 'error',
|
|
145
|
-
'react/jsx-indent-props': ['error', { indentMode: 'tab', ignoreTernaryOperator: true }],
|
|
146
|
-
'react/jsx-no-target-blank': ['error', { enforceDynamicLinks: 'always', warnOnSpreadAttributes: true }]
|
|
147
|
-
},
|
|
148
|
-
overrides: [
|
|
149
|
-
/**
|
|
150
|
-
* .js 파일에 대해 require 허용, ES6 module 로 변환하게끔 하지 않음
|
|
151
|
-
*/
|
|
152
|
-
{
|
|
153
|
-
files: ['*.js'],
|
|
154
|
-
rules: {
|
|
155
|
-
'@typescript-eslint/no-var-requires': 'off',
|
|
156
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off'
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
|
|
161
|
-
extends: ['plugin:testing-library/react', 'plugin:jest/recommended', 'plugin:jest/style']
|
|
162
|
-
}
|
|
163
|
-
]
|
|
164
|
-
};
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: [
|
|
3
|
-
'plugin:@typescript-eslint/recommended',
|
|
4
|
-
'plugin:react/recommended',
|
|
5
|
-
'plugin:prettier/recommended',
|
|
6
|
-
'prettier'
|
|
7
|
-
],
|
|
8
|
-
parser: '@typescript-eslint/parser',
|
|
9
|
-
parserOptions: {
|
|
10
|
-
ecmaFeatures: {
|
|
11
|
-
jsx: true
|
|
12
|
-
},
|
|
13
|
-
ecmaVersion: 6,
|
|
14
|
-
sourceType: 'module'
|
|
15
|
-
},
|
|
16
|
-
plugins: ['react', '@typescript-eslint', 'react-hooks', 'import', '@emotion', 'prettier'],
|
|
17
|
-
globals: {
|
|
18
|
-
process: true
|
|
19
|
-
},
|
|
20
|
-
settings: {
|
|
21
|
-
react: { version: 'detect' }
|
|
22
|
-
},
|
|
23
|
-
rules: {
|
|
24
|
-
'@emotion/jsx-import': 'error',
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* prettier가 적용 되었는지 체크
|
|
28
|
-
*/
|
|
29
|
-
'prettier/prettier': 'warn',
|
|
30
|
-
/**
|
|
31
|
-
* 짧은 표기법으로 진행하는 형변환은 이해하기 어려울 수 있으므로 코드의 직관성이 떨어져 금지
|
|
32
|
-
* https://eslint.org/docs/rules/no-implicit-coercion
|
|
33
|
-
*/
|
|
34
|
-
'no-implicit-coercion': 'error',
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* no-extra-boolean-cast
|
|
38
|
-
* !!var, !!!var 등 구분하기 애매한 boolean 형변환을 명확하도록
|
|
39
|
-
* https://eslint.org/docs/rules/no-extra-boolean-cast
|
|
40
|
-
*/
|
|
41
|
-
'no-extra-boolean-cast': 'off',
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* getter-return
|
|
45
|
-
* 함수의 input output이 어떤지 사이드 이펙트를 측정하기 힘들어지므로,
|
|
46
|
-
* 아무런 값도 return 하지 않는 함수일경우 경고
|
|
47
|
-
* https://eslint.org/docs/rules/getter-return
|
|
48
|
-
*/
|
|
49
|
-
'getter-return': 'warn',
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* 재할당되지 않는 변수는 const 선언
|
|
53
|
-
* https://eslint.org/docs/rules/prefer-const
|
|
54
|
-
*/
|
|
55
|
-
'prefer-const': 'error',
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* no-var
|
|
59
|
-
* var 선언 금지
|
|
60
|
-
* https://eslint.org/docs/rules/no-var
|
|
61
|
-
*/
|
|
62
|
-
'no-var': 'error',
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @typescript-eslint/no-empty-interface
|
|
66
|
-
* 빈 인터페이스 경고
|
|
67
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-empty-interface.md
|
|
68
|
-
*/
|
|
69
|
-
'@typescript-eslint/no-empty-interface': 'warn',
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* curly
|
|
73
|
-
* if문 또는 for문에 대한 코드가 하나만 포홤된경우 중괄호를 생략할수 있으나, 버그를 유발하고 코드의 명확성을 떨어트릴 수 있기 때문에 금지
|
|
74
|
-
* https://eslint.org/docs/rules/curly
|
|
75
|
-
*/
|
|
76
|
-
curly: ['error', 'all'],
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* eqeqeq
|
|
80
|
-
* === 및 !==등 형병환 비교 연산자만 허용, 대신 null은 해당 Rule에 대해서 예외 처리
|
|
81
|
-
* https://eslint.org/docs/rules/eqeqeq#require-and-eqeqeq
|
|
82
|
-
*/
|
|
83
|
-
eqeqeq: ['error', 'always', { null: 'ignore' }],
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* import/no-cycle
|
|
87
|
-
* 다른 모듈끼리 서로를 import 하는것을 방지
|
|
88
|
-
* https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-cycle.md
|
|
89
|
-
* */
|
|
90
|
-
'import/no-cycle': ['error', { maxDepth: Infinity }],
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* import/no-duplicates
|
|
94
|
-
* 중복된 import 금지
|
|
95
|
-
* https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
|
|
96
|
-
* */
|
|
97
|
-
'import/no-duplicates': 'error',
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* react/display-name
|
|
101
|
-
* React.memo, React.forwardRef도 막는 경우가 존재하여 해당 Rule은 생산성을 떨어트린다 판단되 off 처리됨
|
|
102
|
-
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/display-name.md
|
|
103
|
-
* */
|
|
104
|
-
'react/display-name': 'off',
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* react/prop-types
|
|
108
|
-
* Type선언으로 propTypes를 이미 명명하고 있으므로, off 처리함
|
|
109
|
-
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md
|
|
110
|
-
*/
|
|
111
|
-
'react/prop-types': 'off',
|
|
112
|
-
/**
|
|
113
|
-
* react-hooks/rules-of-hooks
|
|
114
|
-
* 내부 코드 컨벤션상 React Hook 으로만 코드를 작성하도록 강제
|
|
115
|
-
*/
|
|
116
|
-
'react-hooks/rules-of-hooks': 'error',
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* react-hooks/exhaustive-deps
|
|
120
|
-
* useCallback, useMemo, useEffect등 Hook에서 사용되는 변수중, 누락된 deps가 있는지 검사
|
|
121
|
-
*/
|
|
122
|
-
'react-hooks/exhaustive-deps': 'error',
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @deprecated - 기존 eslint가 동작하지 않음으로써 생긴 에러가 다소 존재하여 임시로 warn 처리됨. 차후엔 error로 변경 필요
|
|
126
|
-
* @typescript-eslint/no-explicit-any
|
|
127
|
-
* any 타입 선언 금지
|
|
128
|
-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-explicit-any.md
|
|
129
|
-
*/
|
|
130
|
-
'@typescript-eslint/no-explicit-any': 'warn',
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* 아직 미개발 사항들이 있는 것 같아서 팀원들 확인이 필요하여 그대로 둠. error 로 변경 필요
|
|
134
|
-
* tsconfig.json 의 noUnusedLocals, noUnusedParameters 옵션과 동시 변경
|
|
135
|
-
*/
|
|
136
|
-
'@typescript-eslint/no-unused-vars': 'error',
|
|
137
|
-
|
|
138
|
-
'@typescript-eslint/no-non-null-assertion': 'error',
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* 7.22.0 에 추가된 스펙으로, 일단 모두 추가하여 테스트 중
|
|
142
|
-
*/
|
|
143
|
-
'react/jsx-key': ['error', { checkFragmentShorthand: true, checkKeyMustBeforeSpread: true }],
|
|
144
|
-
'react/jsx-no-constructed-context-values': 'error',
|
|
145
|
-
'react/jsx-indent-props': ['error', { indentMode: 'tab', ignoreTernaryOperator: true }],
|
|
146
|
-
'react/jsx-no-target-blank': ['error', { enforceDynamicLinks: 'always', warnOnSpreadAttributes: true }]
|
|
147
|
-
},
|
|
148
|
-
overrides: [
|
|
149
|
-
/**
|
|
150
|
-
* .js 파일에 대해 require 허용, ES6 module 로 변환하게끔 하지 않음
|
|
151
|
-
*/
|
|
152
|
-
{
|
|
153
|
-
files: ['*.js'],
|
|
154
|
-
rules: {
|
|
155
|
-
'@typescript-eslint/no-var-requires': 'off',
|
|
156
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off'
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
|
|
161
|
-
extends: ['plugin:testing-library/react', 'plugin:jest/recommended', 'plugin:jest/style']
|
|
162
|
-
}
|
|
163
|
-
]
|
|
164
|
-
};
|