@dktunited-techoff/techoff-suite-ui 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/Loader/Loader.css +1 -1
- package/src/layouts/Header/Header.tsx +1 -1
- package/src/layouts/Header/HeaderSearch.tsx +3 -3
- package/src/layouts/Navigation/Navigation.css +4 -4
- package/esm/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/esm/assets/fonts/Roboto-Light.ttf +0 -0
- package/esm/components/Button/Button.css +0 -91
- package/esm/components/Button/Button.d.ts +0 -5
- package/esm/components/Button/Button.js +0 -17
- package/esm/components/Button/Button.js.map +0 -1
- package/esm/components/Button/Button.types.d.ts +0 -9
- package/esm/components/Button/Button.types.js +0 -2
- package/esm/components/Button/Button.types.js.map +0 -1
- package/esm/components/Button/__stories__/Button.stories.mdx +0 -74
- package/esm/components/Checkbox/Checkbox.css +0 -72
- package/esm/components/Checkbox/Checkbox.d.ts +0 -4
- package/esm/components/Checkbox/Checkbox.js +0 -18
- package/esm/components/Checkbox/Checkbox.js.map +0 -1
- package/esm/components/Checkbox/Checkbox.types.d.ts +0 -7
- package/esm/components/Checkbox/Checkbox.types.js +0 -2
- package/esm/components/Checkbox/Checkbox.types.js.map +0 -1
- package/esm/components/Checkbox/__stories__/Checkbox.stories.mdx +0 -56
- package/esm/components/Icon/Icon.css +0 -26
- package/esm/components/Icon/Icon.d.ts +0 -4
- package/esm/components/Icon/Icon.js +0 -12
- package/esm/components/Icon/Icon.js.map +0 -1
- package/esm/components/Icon/Icon.types.d.ts +0 -4
- package/esm/components/Icon/Icon.types.js +0 -2
- package/esm/components/Icon/Icon.types.js.map +0 -1
- package/esm/components/Icon/__stories__/Icon.stories.mdx +0 -89
- package/esm/components/Icon/icons/add-circle.svg +0 -1
- package/esm/components/Icon/icons/add.svg +0 -1
- package/esm/components/Icon/icons/alert-circle-filled.svg +0 -1
- package/esm/components/Icon/icons/alert-circle.svg +0 -1
- package/esm/components/Icon/icons/alert-triangle-filled.svg +0 -1
- package/esm/components/Icon/icons/alert-triangle.svg +0 -1
- package/esm/components/Icon/icons/arrow-diagonal-collapse.svg +0 -1
- package/esm/components/Icon/icons/arrow-diagonal-expand.svg +0 -1
- package/esm/components/Icon/icons/arrow-down.svg +0 -1
- package/esm/components/Icon/icons/arrow-go-back.svg +0 -1
- package/esm/components/Icon/icons/arrow-left-right.svg +0 -1
- package/esm/components/Icon/icons/arrow-left.svg +0 -1
- package/esm/components/Icon/icons/arrow-right.svg +0 -1
- package/esm/components/Icon/icons/arrow-up-down.svg +0 -1
- package/esm/components/Icon/icons/arrow-up.svg +0 -1
- package/esm/components/Icon/icons/award.svg +0 -1
- package/esm/components/Icon/icons/check-circle-filled.svg +0 -1
- package/esm/components/Icon/icons/check-circle-timer.svg +0 -7
- package/esm/components/Icon/icons/check-circle.svg +0 -1
- package/esm/components/Icon/icons/check-square-filled.svg +0 -1
- package/esm/components/Icon/icons/check-square.svg +0 -1
- package/esm/components/Icon/icons/check.svg +0 -1
- package/esm/components/Icon/icons/chevron-down.svg +0 -1
- package/esm/components/Icon/icons/chevron-left.svg +0 -1
- package/esm/components/Icon/icons/chevron-right.svg +0 -1
- package/esm/components/Icon/icons/chevron-up.svg +0 -1
- package/esm/components/Icon/icons/circle.svg +0 -1
- package/esm/components/Icon/icons/close-circle.svg +0 -1
- package/esm/components/Icon/icons/close.svg +0 -1
- package/esm/components/Icon/icons/currency-euro.svg +0 -1
- package/esm/components/Icon/icons/download.svg +0 -1
- package/esm/components/Icon/icons/edit.svg +0 -1
- package/esm/components/Icon/icons/external-link.svg +0 -1
- package/esm/components/Icon/icons/filter-off.svg +0 -1
- package/esm/components/Icon/icons/filter.svg +0 -1
- package/esm/components/Icon/icons/flashlight-off.svg +0 -1
- package/esm/components/Icon/icons/flashlight.svg +0 -1
- package/esm/components/Icon/icons/header-bikestudio.svg +0 -32
- package/esm/components/Icon/icons/header-nsc-helmet.svg +0 -32
- package/esm/components/Icon/icons/header-opticost.svg +0 -32
- package/esm/components/Icon/icons/header-repairability.svg +0 -32
- package/esm/components/Icon/icons/heart-filled.svg +0 -1
- package/esm/components/Icon/icons/heart.svg +0 -1
- package/esm/components/Icon/icons/history.svg +0 -1
- package/esm/components/Icon/icons/home.svg +0 -1
- package/esm/components/Icon/icons/index.d.ts +0 -3
- package/esm/components/Icon/icons/index.js +0 -59
- package/esm/components/Icon/icons/index.js.map +0 -1
- package/esm/components/Icon/icons/index.ts +0 -58
- package/esm/components/Icon/icons/link.svg +0 -1
- package/esm/components/Icon/icons/list-settings.svg +0 -1
- package/esm/components/Icon/icons/lock.svg +0 -1
- package/esm/components/Icon/icons/loop-right.svg +0 -1
- package/esm/components/Icon/icons/question-circle.svg +0 -1
- package/esm/components/Icon/icons/save.svg +0 -1
- package/esm/components/Icon/icons/search.svg +0 -1
- package/esm/components/Icon/icons/seedling-circle.svg +0 -12
- package/esm/components/Icon/icons/square.svg +0 -1
- package/esm/components/Icon/icons/tools.svg +0 -1
- package/esm/components/Icon/icons/user.svg +0 -1
- package/esm/components/Inputs/BooleanInput/BooleanInput.css +0 -58
- package/esm/components/Inputs/BooleanInput/BooleanInput.d.ts +0 -4
- package/esm/components/Inputs/BooleanInput/BooleanInput.js +0 -13
- package/esm/components/Inputs/BooleanInput/BooleanInput.js.map +0 -1
- package/esm/components/Inputs/BooleanInput/BooleanInput.tsx +0 -24
- package/esm/components/Inputs/BooleanInput/BooleanInput.types.d.ts +0 -8
- package/esm/components/Inputs/BooleanInput/BooleanInput.types.js +0 -2
- package/esm/components/Inputs/BooleanInput/BooleanInput.types.js.map +0 -1
- package/esm/components/Inputs/BooleanInput/BooleanInput.types.ts +0 -8
- package/esm/components/Inputs/BooleanInput/__stories__/BooleanInput.stories.mdx +0 -53
- package/esm/components/Inputs/Input/Input.css +0 -97
- package/esm/components/Inputs/Input/Input.d.ts +0 -4
- package/esm/components/Inputs/Input/Input.js +0 -26
- package/esm/components/Inputs/Input/Input.js.map +0 -1
- package/esm/components/Inputs/Input/Input.tsx +0 -67
- package/esm/components/Inputs/Input/Input.types.d.ts +0 -14
- package/esm/components/Inputs/Input/Input.types.js +0 -2
- package/esm/components/Inputs/Input/Input.types.js.map +0 -1
- package/esm/components/Inputs/Input/Input.types.ts +0 -15
- package/esm/components/Inputs/Input/__stories__/Input.stories.mdx +0 -95
- package/esm/components/Loader/Loader.css +0 -42
- package/esm/components/Loader/Loader.d.ts +0 -4
- package/esm/components/Loader/Loader.js +0 -6
- package/esm/components/Loader/Loader.js.map +0 -1
- package/esm/components/Loader/Loader.types.d.ts +0 -3
- package/esm/components/Loader/Loader.types.js +0 -2
- package/esm/components/Loader/Loader.types.js.map +0 -1
- package/esm/components/Loader/__stories__/Loader.stories.mdx +0 -30
- package/esm/components/Select/Select.css +0 -30
- package/esm/components/Select/Select.d.ts +0 -4
- package/esm/components/Select/Select.js +0 -14
- package/esm/components/Select/Select.js.map +0 -1
- package/esm/components/Select/Select.types.d.ts +0 -7
- package/esm/components/Select/Select.types.js +0 -2
- package/esm/components/Select/Select.types.js.map +0 -1
- package/esm/components/Select/__stories__/Select.stories.mdx +0 -44
- package/esm/hooks/use-click-outside.d.ts +0 -2
- package/esm/hooks/use-click-outside.js +0 -14
- package/esm/hooks/use-click-outside.js.map +0 -1
- package/esm/index.d.ts +0 -11
- package/esm/index.js +0 -12
- package/esm/index.js.map +0 -1
- package/esm/layouts/Header/Header.css +0 -186
- package/esm/layouts/Header/Header.d.ts +0 -4
- package/esm/layouts/Header/Header.js +0 -14
- package/esm/layouts/Header/Header.js.map +0 -1
- package/esm/layouts/Header/Header.types.d.ts +0 -23
- package/esm/layouts/Header/Header.types.js +0 -2
- package/esm/layouts/Header/Header.types.js.map +0 -1
- package/esm/layouts/Header/HeaderProfile.d.ts +0 -5
- package/esm/layouts/Header/HeaderProfile.js +0 -38
- package/esm/layouts/Header/HeaderProfile.js.map +0 -1
- package/esm/layouts/Header/HeaderSearch.d.ts +0 -3
- package/esm/layouts/Header/HeaderSearch.js +0 -60
- package/esm/layouts/Header/HeaderSearch.js.map +0 -1
- package/esm/layouts/Header/__stories__/Header.stories.mdx +0 -71
- package/esm/layouts/Navigation/Navigation.css +0 -74
- package/esm/layouts/Navigation/Navigation.d.ts +0 -7
- package/esm/layouts/Navigation/Navigation.js +0 -29
- package/esm/layouts/Navigation/Navigation.js.map +0 -1
- package/esm/layouts/Navigation/Navigation.types.d.ts +0 -10
- package/esm/layouts/Navigation/Navigation.types.js +0 -2
- package/esm/layouts/Navigation/Navigation.types.js.map +0 -1
- package/esm/layouts/Navigation/__stories__/Navigation.stories.mdx +0 -51
- package/esm/utils/string.utils.d.ts +0 -1
- package/esm/utils/string.utils.js +0 -2
- package/esm/utils/string.utils.js.map +0 -1
- package/lib/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/lib/assets/fonts/Roboto-Light.ttf +0 -0
- package/lib/components/Button/Button.css +0 -91
- package/lib/components/Button/Button.d.ts +0 -5
- package/lib/components/Button/Button.js +0 -21
- package/lib/components/Button/Button.js.map +0 -1
- package/lib/components/Button/Button.types.d.ts +0 -9
- package/lib/components/Button/Button.types.js +0 -3
- package/lib/components/Button/Button.types.js.map +0 -1
- package/lib/components/Button/__stories__/Button.stories.mdx +0 -74
- package/lib/components/Checkbox/Checkbox.css +0 -72
- package/lib/components/Checkbox/Checkbox.d.ts +0 -4
- package/lib/components/Checkbox/Checkbox.js +0 -22
- package/lib/components/Checkbox/Checkbox.js.map +0 -1
- package/lib/components/Checkbox/Checkbox.types.d.ts +0 -7
- package/lib/components/Checkbox/Checkbox.types.js +0 -3
- package/lib/components/Checkbox/Checkbox.types.js.map +0 -1
- package/lib/components/Checkbox/__stories__/Checkbox.stories.mdx +0 -56
- package/lib/components/Icon/Icon.css +0 -26
- package/lib/components/Icon/Icon.d.ts +0 -4
- package/lib/components/Icon/Icon.js +0 -16
- package/lib/components/Icon/Icon.js.map +0 -1
- package/lib/components/Icon/Icon.types.d.ts +0 -4
- package/lib/components/Icon/Icon.types.js +0 -3
- package/lib/components/Icon/Icon.types.js.map +0 -1
- package/lib/components/Icon/__stories__/Icon.stories.mdx +0 -89
- package/lib/components/Icon/icons/add-circle.svg +0 -1
- package/lib/components/Icon/icons/add.svg +0 -1
- package/lib/components/Icon/icons/alert-circle-filled.svg +0 -1
- package/lib/components/Icon/icons/alert-circle.svg +0 -1
- package/lib/components/Icon/icons/alert-triangle-filled.svg +0 -1
- package/lib/components/Icon/icons/alert-triangle.svg +0 -1
- package/lib/components/Icon/icons/arrow-diagonal-collapse.svg +0 -1
- package/lib/components/Icon/icons/arrow-diagonal-expand.svg +0 -1
- package/lib/components/Icon/icons/arrow-down.svg +0 -1
- package/lib/components/Icon/icons/arrow-go-back.svg +0 -1
- package/lib/components/Icon/icons/arrow-left-right.svg +0 -1
- package/lib/components/Icon/icons/arrow-left.svg +0 -1
- package/lib/components/Icon/icons/arrow-right.svg +0 -1
- package/lib/components/Icon/icons/arrow-up-down.svg +0 -1
- package/lib/components/Icon/icons/arrow-up.svg +0 -1
- package/lib/components/Icon/icons/award.svg +0 -1
- package/lib/components/Icon/icons/check-circle-filled.svg +0 -1
- package/lib/components/Icon/icons/check-circle-timer.svg +0 -7
- package/lib/components/Icon/icons/check-circle.svg +0 -1
- package/lib/components/Icon/icons/check-square-filled.svg +0 -1
- package/lib/components/Icon/icons/check-square.svg +0 -1
- package/lib/components/Icon/icons/check.svg +0 -1
- package/lib/components/Icon/icons/chevron-down.svg +0 -1
- package/lib/components/Icon/icons/chevron-left.svg +0 -1
- package/lib/components/Icon/icons/chevron-right.svg +0 -1
- package/lib/components/Icon/icons/chevron-up.svg +0 -1
- package/lib/components/Icon/icons/circle.svg +0 -1
- package/lib/components/Icon/icons/close-circle.svg +0 -1
- package/lib/components/Icon/icons/close.svg +0 -1
- package/lib/components/Icon/icons/currency-euro.svg +0 -1
- package/lib/components/Icon/icons/download.svg +0 -1
- package/lib/components/Icon/icons/edit.svg +0 -1
- package/lib/components/Icon/icons/external-link.svg +0 -1
- package/lib/components/Icon/icons/filter-off.svg +0 -1
- package/lib/components/Icon/icons/filter.svg +0 -1
- package/lib/components/Icon/icons/flashlight-off.svg +0 -1
- package/lib/components/Icon/icons/flashlight.svg +0 -1
- package/lib/components/Icon/icons/header-bikestudio.svg +0 -32
- package/lib/components/Icon/icons/header-nsc-helmet.svg +0 -32
- package/lib/components/Icon/icons/header-opticost.svg +0 -32
- package/lib/components/Icon/icons/header-repairability.svg +0 -32
- package/lib/components/Icon/icons/heart-filled.svg +0 -1
- package/lib/components/Icon/icons/heart.svg +0 -1
- package/lib/components/Icon/icons/history.svg +0 -1
- package/lib/components/Icon/icons/home.svg +0 -1
- package/lib/components/Icon/icons/index.d.ts +0 -3
- package/lib/components/Icon/icons/index.js +0 -62
- package/lib/components/Icon/icons/index.js.map +0 -1
- package/lib/components/Icon/icons/index.ts +0 -58
- package/lib/components/Icon/icons/link.svg +0 -1
- package/lib/components/Icon/icons/list-settings.svg +0 -1
- package/lib/components/Icon/icons/lock.svg +0 -1
- package/lib/components/Icon/icons/loop-right.svg +0 -1
- package/lib/components/Icon/icons/question-circle.svg +0 -1
- package/lib/components/Icon/icons/save.svg +0 -1
- package/lib/components/Icon/icons/search.svg +0 -1
- package/lib/components/Icon/icons/seedling-circle.svg +0 -12
- package/lib/components/Icon/icons/square.svg +0 -1
- package/lib/components/Icon/icons/tools.svg +0 -1
- package/lib/components/Icon/icons/user.svg +0 -1
- package/lib/components/Inputs/BooleanInput/BooleanInput.css +0 -58
- package/lib/components/Inputs/BooleanInput/BooleanInput.d.ts +0 -4
- package/lib/components/Inputs/BooleanInput/BooleanInput.js +0 -17
- package/lib/components/Inputs/BooleanInput/BooleanInput.js.map +0 -1
- package/lib/components/Inputs/BooleanInput/BooleanInput.tsx +0 -24
- package/lib/components/Inputs/BooleanInput/BooleanInput.types.d.ts +0 -8
- package/lib/components/Inputs/BooleanInput/BooleanInput.types.js +0 -3
- package/lib/components/Inputs/BooleanInput/BooleanInput.types.js.map +0 -1
- package/lib/components/Inputs/BooleanInput/BooleanInput.types.ts +0 -8
- package/lib/components/Inputs/BooleanInput/__stories__/BooleanInput.stories.mdx +0 -53
- package/lib/components/Inputs/Input/Input.css +0 -97
- package/lib/components/Inputs/Input/Input.d.ts +0 -4
- package/lib/components/Inputs/Input/Input.js +0 -30
- package/lib/components/Inputs/Input/Input.js.map +0 -1
- package/lib/components/Inputs/Input/Input.tsx +0 -67
- package/lib/components/Inputs/Input/Input.types.d.ts +0 -14
- package/lib/components/Inputs/Input/Input.types.js +0 -3
- package/lib/components/Inputs/Input/Input.types.js.map +0 -1
- package/lib/components/Inputs/Input/Input.types.ts +0 -15
- package/lib/components/Inputs/Input/__stories__/Input.stories.mdx +0 -95
- package/lib/components/Loader/Loader.css +0 -42
- package/lib/components/Loader/Loader.d.ts +0 -4
- package/lib/components/Loader/Loader.js +0 -10
- package/lib/components/Loader/Loader.js.map +0 -1
- package/lib/components/Loader/Loader.types.d.ts +0 -3
- package/lib/components/Loader/Loader.types.js +0 -3
- package/lib/components/Loader/Loader.types.js.map +0 -1
- package/lib/components/Loader/__stories__/Loader.stories.mdx +0 -30
- package/lib/components/Select/Select.css +0 -30
- package/lib/components/Select/Select.d.ts +0 -4
- package/lib/components/Select/Select.js +0 -18
- package/lib/components/Select/Select.js.map +0 -1
- package/lib/components/Select/Select.types.d.ts +0 -7
- package/lib/components/Select/Select.types.js +0 -3
- package/lib/components/Select/Select.types.js.map +0 -1
- package/lib/components/Select/__stories__/Select.stories.mdx +0 -44
- package/lib/hooks/use-click-outside.d.ts +0 -2
- package/lib/hooks/use-click-outside.js +0 -18
- package/lib/hooks/use-click-outside.js.map +0 -1
- package/lib/index.d.ts +0 -11
- package/lib/index.js +0 -28
- package/lib/index.js.map +0 -1
- package/lib/layouts/Header/Header.css +0 -186
- package/lib/layouts/Header/Header.d.ts +0 -4
- package/lib/layouts/Header/Header.js +0 -18
- package/lib/layouts/Header/Header.js.map +0 -1
- package/lib/layouts/Header/Header.types.d.ts +0 -23
- package/lib/layouts/Header/Header.types.js +0 -3
- package/lib/layouts/Header/Header.types.js.map +0 -1
- package/lib/layouts/Header/HeaderProfile.d.ts +0 -5
- package/lib/layouts/Header/HeaderProfile.js +0 -43
- package/lib/layouts/Header/HeaderProfile.js.map +0 -1
- package/lib/layouts/Header/HeaderSearch.d.ts +0 -3
- package/lib/layouts/Header/HeaderSearch.js +0 -64
- package/lib/layouts/Header/HeaderSearch.js.map +0 -1
- package/lib/layouts/Header/__stories__/Header.stories.mdx +0 -71
- package/lib/layouts/Navigation/Navigation.css +0 -74
- package/lib/layouts/Navigation/Navigation.d.ts +0 -7
- package/lib/layouts/Navigation/Navigation.js +0 -35
- package/lib/layouts/Navigation/Navigation.js.map +0 -1
- package/lib/layouts/Navigation/Navigation.types.d.ts +0 -10
- package/lib/layouts/Navigation/Navigation.types.js +0 -3
- package/lib/layouts/Navigation/Navigation.types.js.map +0 -1
- package/lib/layouts/Navigation/__stories__/Navigation.stories.mdx +0 -51
- package/lib/utils/string.utils.d.ts +0 -1
- package/lib/utils/string.utils.js +0 -6
- package/lib/utils/string.utils.js.map +0 -1
- package/src/components/Checkbox/Checkbox.css +0 -72
- package/src/components/Checkbox/Checkbox.tsx +0 -26
- package/src/components/Checkbox/Checkbox.types.ts +0 -7
- package/src/components/Checkbox/__stories__/Checkbox.stories.mdx +0 -56
- package/src/components/Inputs/BooleanInput/BooleanInput.css +0 -58
- package/src/components/Inputs/BooleanInput/BooleanInput.tsx +0 -24
- package/src/components/Inputs/BooleanInput/BooleanInput.types.ts +0 -8
- package/src/components/Inputs/BooleanInput/__stories__/BooleanInput.stories.mdx +0 -53
- package/src/components/Inputs/Input/Input.css +0 -97
- package/src/components/Inputs/Input/Input.tsx +0 -67
- package/src/components/Inputs/Input/Input.types.ts +0 -15
- package/src/components/Inputs/Input/__stories__/Input.stories.mdx +0 -95
- package/src/components/Select/Select.css +0 -30
- package/src/components/Select/Select.tsx +0 -21
- package/src/components/Select/Select.types.ts +0 -3
- package/src/components/Select/__stories__/Select.stories.mdx +0 -44
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"></path></svg>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
2
|
-
viewBox="0 0 18 18" style="enable-background:new 0 0 18 18;" xml:space="preserve">
|
|
3
|
-
<path d="M9,18c-5,0-9-4-9-9s4-9,9-9s9,4,9,9S14,18,9,18z M9,16.2c4,0,7.2-3.2,7.2-7.2S13,1.8,9,1.8S1.8,5,1.8,9S5,16.2,9,16.2z"/>
|
|
4
|
-
<g>
|
|
5
|
-
<g>
|
|
6
|
-
<path d="M8.5,11.1C8,9.1,6.9,8.4,4.7,8.7c0,0,0,0-0.1,0c0,0,0,0-0.1,0c0,0,0,0,0,0.1c0,0,0,0,0,0.1C4.6,9.5,5.2,11.5,8.5,11.1z"/>
|
|
7
|
-
<path d="M9.2,9.6c2-2.7,1.8-4.5-0.9-6.8c0,0-0.1,0-0.2,0C8,2.8,8,2.8,7.9,2.9C7.2,3.6,5.3,6.2,9.2,9.6"/>
|
|
8
|
-
<path d="M13.3,9.5C13.3,9.5,13.4,9.5,13.3,9.5c0.1,0,0.1,0.1,0.2,0.1v0.1v0.1c-0.1,0.8-0.6,3-4.1,3.1c-0.2,0.5-0.2,1.1,0,1.6
|
|
9
|
-
l-0.9,0.3c-0.2-0.9-0.2-1.8,0-2.7C8.7,11.5,9,11,9.4,10.6s0.9-0.7,1.5-0.9C11.7,9.5,12.5,9.4,13.3,9.5"/>
|
|
10
|
-
</g>
|
|
11
|
-
</g>
|
|
12
|
-
</svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM5 5V19H19V5H5Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M5.32943 3.27152C6.56252 2.83314 7.9923 3.10743 8.97927 4.0944C10.1002 5.21531 10.3019 6.90735 9.5843 8.23378L20.293 18.9436L18.8788 20.3579L8.16982 9.64869C6.84325 10.3668 5.15069 10.1653 4.02952 9.04415C3.04227 8.0569 2.7681 6.62659 3.20701 5.39326L5.44373 7.62994C6.02952 8.21572 6.97927 8.21572 7.56505 7.62994C8.15084 7.04415 8.15084 6.0944 7.56505 5.50862L5.32943 3.27152ZM15.6968 5.15506L18.8788 3.38729L20.293 4.80151L18.5252 7.98349L16.7574 8.33704L14.6361 10.4584L13.2219 9.04415L15.3432 6.92283L15.6968 5.15506ZM8.97927 13.2868L10.3935 14.701L5.09018 20.0043C4.69966 20.3948 4.06649 20.3948 3.67597 20.0043C3.31334 19.6417 3.28744 19.0698 3.59826 18.6773L3.67597 18.5901L8.97927 13.2868Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z"></path></svg>
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
.boolean-input {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
}
|
|
5
|
-
.boolean-input > label {
|
|
6
|
-
display: block;
|
|
7
|
-
margin-bottom: 4px;
|
|
8
|
-
color: #012b49;
|
|
9
|
-
font-weight: 700;
|
|
10
|
-
}
|
|
11
|
-
.boolean-input-container {
|
|
12
|
-
display: flex;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.boolean-input--disabled {
|
|
16
|
-
opacity: 0.5;
|
|
17
|
-
}
|
|
18
|
-
.boolean-input--disabled .boolean-input-content > div {
|
|
19
|
-
cursor: not-allowed;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/* ######## */
|
|
23
|
-
/* INPUTS */
|
|
24
|
-
.boolean-input-content {
|
|
25
|
-
display: flex;
|
|
26
|
-
height: 32px;
|
|
27
|
-
border-radius: 6px;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
}
|
|
30
|
-
.boolean-input-content > div {
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
min-width: 44px;
|
|
35
|
-
padding: 12px;
|
|
36
|
-
background: #e7f3f9;
|
|
37
|
-
color: #007dbc;
|
|
38
|
-
font-weight: 700;
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
transition: all ease 0.3s;
|
|
41
|
-
}
|
|
42
|
-
.boolean-input-content > div:first-child {
|
|
43
|
-
border-right: 1px solid #007dbc;
|
|
44
|
-
}
|
|
45
|
-
.boolean-input-content > .boolean-input--selected {
|
|
46
|
-
background: #007dbc;
|
|
47
|
-
color: #ffffff;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/* ######### */
|
|
51
|
-
/* GLOBALS */
|
|
52
|
-
* {
|
|
53
|
-
font-size: 14px;
|
|
54
|
-
outline: none;
|
|
55
|
-
box-sizing: border-box;
|
|
56
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
57
|
-
'Helvetica Neue', sans-serif;
|
|
58
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './BooleanInput.css';
|
|
3
|
-
export const BooleanInput = ({ label, labelFalse, labelTrue, disabled, value, onChange }) => {
|
|
4
|
-
// #########
|
|
5
|
-
// Rendering
|
|
6
|
-
return (React.createElement("div", { className: `boolean-input ${disabled ? 'boolean-input--disabled' : ''}` },
|
|
7
|
-
label && React.createElement("label", null, label),
|
|
8
|
-
React.createElement("div", { className: "boolean-input-container" },
|
|
9
|
-
React.createElement("div", { className: "boolean-input-content" },
|
|
10
|
-
React.createElement("div", { className: value === true ? 'boolean-input--selected' : '', onClick: () => onChange(true) }, labelTrue),
|
|
11
|
-
React.createElement("div", { className: value === false ? 'boolean-input--selected' : '', onClick: () => onChange(false) }, labelFalse)))));
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=BooleanInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BooleanInput.js","sourceRoot":"","sources":["../../../../src/components/Inputs/BooleanInput/BooleanInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAqB,EAAE,EAAE;IAC7G,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAE,iBAAiB,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,EAAE,EAAE;QACzE,KAAK,IAAI,mCAAQ,KAAK,CAAS;QAEhC,6BAAK,SAAS,EAAC,yBAAyB;YACtC,6BAAK,SAAS,EAAC,uBAAuB;gBACpC,6BAAK,SAAS,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAC3F,SAAS,CACN;gBACN,6BAAK,SAAS,EAAE,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,IAC7F,UAAU,CACP,CACF,CACF,CACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BooleanInputProps } from './BooleanInput.types';
|
|
3
|
-
import './BooleanInput.css';
|
|
4
|
-
|
|
5
|
-
export const BooleanInput = ({ label, labelFalse, labelTrue, disabled, value, onChange }: BooleanInputProps) => {
|
|
6
|
-
// #########
|
|
7
|
-
// Rendering
|
|
8
|
-
return (
|
|
9
|
-
<div className={`boolean-input ${disabled ? 'boolean-input--disabled' : ''}`}>
|
|
10
|
-
{label && <label>{label}</label>}
|
|
11
|
-
|
|
12
|
-
<div className="boolean-input-container">
|
|
13
|
-
<div className="boolean-input-content">
|
|
14
|
-
<div className={value === true ? 'boolean-input--selected' : ''} onClick={() => onChange(true)}>
|
|
15
|
-
{labelTrue}
|
|
16
|
-
</div>
|
|
17
|
-
<div className={value === false ? 'boolean-input--selected' : ''} onClick={() => onChange(false)}>
|
|
18
|
-
{labelFalse}
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
);
|
|
24
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BooleanInput.types.js","sourceRoot":"","sources":["../../../../src/components/Inputs/BooleanInput/BooleanInput.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { BooleanInput } from '../BooleanInput';
|
|
4
|
-
|
|
5
|
-
<Meta title="Components/Inputs/BooleanInput" />
|
|
6
|
-
|
|
7
|
-
export const inputArgType = {
|
|
8
|
-
label: {
|
|
9
|
-
control: 'text',
|
|
10
|
-
description: 'Label of the input.',
|
|
11
|
-
},
|
|
12
|
-
labelFalse: {
|
|
13
|
-
control: 'text',
|
|
14
|
-
description: 'Label of the FALSE value.',
|
|
15
|
-
},
|
|
16
|
-
labelTrue: {
|
|
17
|
-
control: 'text',
|
|
18
|
-
description: 'Label of the TRUE value.',
|
|
19
|
-
},
|
|
20
|
-
disabled: {
|
|
21
|
-
control: 'boolean',
|
|
22
|
-
description: 'Enable state of the input.',
|
|
23
|
-
table: { defaultValue: { summary: 'false' } },
|
|
24
|
-
},
|
|
25
|
-
value: {
|
|
26
|
-
control: 'boolean',
|
|
27
|
-
description: 'Value of the input (can be undefined).',
|
|
28
|
-
},
|
|
29
|
-
onChange: {
|
|
30
|
-
control: 'function',
|
|
31
|
-
description: 'The handler called when clicking on input.',
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
# Boolean Input
|
|
36
|
-
|
|
37
|
-
The Boolean input is used to quickly switch between two possible states. It is commonly used for "yes/no" switches. The input can in some cases have a 3rd state, EMPTY.
|
|
38
|
-
|
|
39
|
-
## Overview
|
|
40
|
-
|
|
41
|
-
<Canvas>
|
|
42
|
-
<Story
|
|
43
|
-
name="Overview"
|
|
44
|
-
args={{ label: 'Label', labelFalse: 'No', labelTrue: 'Yes', disabled: false }}
|
|
45
|
-
argTypes={inputArgType}
|
|
46
|
-
>
|
|
47
|
-
{args => <BooleanInput {...args} />}
|
|
48
|
-
</Story>
|
|
49
|
-
</Canvas>
|
|
50
|
-
|
|
51
|
-
## Props
|
|
52
|
-
|
|
53
|
-
<ArgsTable story="Overview" of={BooleanInput} />
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
.input {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
}
|
|
5
|
-
input[type='number'] {
|
|
6
|
-
-moz-appearance: textfield;
|
|
7
|
-
}
|
|
8
|
-
input[type='number']::-webkit-inner-spin-button,
|
|
9
|
-
input[type='number']::-webkit-outer-spin-button {
|
|
10
|
-
-webkit-appearance: none;
|
|
11
|
-
margin: 0;
|
|
12
|
-
}
|
|
13
|
-
.input > label {
|
|
14
|
-
display: block;
|
|
15
|
-
margin-bottom: 4px;
|
|
16
|
-
color: #012b49;
|
|
17
|
-
font-weight: 700;
|
|
18
|
-
}
|
|
19
|
-
.input--disabled {
|
|
20
|
-
opacity: 0.5;
|
|
21
|
-
}
|
|
22
|
-
.input--disabled .boolean-input-container > div {
|
|
23
|
-
cursor: not-allowed;
|
|
24
|
-
}
|
|
25
|
-
.input-container {
|
|
26
|
-
position: relative;
|
|
27
|
-
}
|
|
28
|
-
.input-container > input {
|
|
29
|
-
width: 100%;
|
|
30
|
-
padding: 0 16px;
|
|
31
|
-
border-radius: 6px;
|
|
32
|
-
background: #ffffff;
|
|
33
|
-
color: #007dbc;
|
|
34
|
-
font-weight: 700;
|
|
35
|
-
}
|
|
36
|
-
.input-container > input::placeholder {
|
|
37
|
-
font-weight: 400;
|
|
38
|
-
}
|
|
39
|
-
.input-container > .input-icon-container {
|
|
40
|
-
position: absolute;
|
|
41
|
-
top: 50%;
|
|
42
|
-
right: 12px;
|
|
43
|
-
display: flex;
|
|
44
|
-
color: #4e5d6b;
|
|
45
|
-
transform: translateY(-50%);
|
|
46
|
-
}
|
|
47
|
-
.input-container > .input-icon-container > * {
|
|
48
|
-
margin-left: 8px;
|
|
49
|
-
}
|
|
50
|
-
.input--error {
|
|
51
|
-
display: flex;
|
|
52
|
-
align-items: center;
|
|
53
|
-
color: #ed6a5e;
|
|
54
|
-
font-size: 12px;
|
|
55
|
-
font-weight: 600;
|
|
56
|
-
}
|
|
57
|
-
.input--error-label {
|
|
58
|
-
margin-left: 4px;
|
|
59
|
-
}
|
|
60
|
-
.input-container--error > input {
|
|
61
|
-
border: 2px solid #ed6a5e;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/* ########## */
|
|
65
|
-
/* VARIANTS */
|
|
66
|
-
.input-primary .input-container > input {
|
|
67
|
-
border: 1px solid #d4d4d4;
|
|
68
|
-
}
|
|
69
|
-
.input-shadow .input-container > input {
|
|
70
|
-
border: 0;
|
|
71
|
-
box-shadow: 0px 12px 12px 0px #00537d1a;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/* ###### */
|
|
75
|
-
/* SIZE */
|
|
76
|
-
.input-md .input-container > input {
|
|
77
|
-
height: 32px;
|
|
78
|
-
}
|
|
79
|
-
.input-lg .input-container > input {
|
|
80
|
-
height: 40px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/* ######### */
|
|
84
|
-
/* ROUNDED */
|
|
85
|
-
.input--rounded .input-container > input {
|
|
86
|
-
border-radius: 9999px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/* ######### */
|
|
90
|
-
/* GLOBALS */
|
|
91
|
-
* {
|
|
92
|
-
font-size: 14px;
|
|
93
|
-
outline: none;
|
|
94
|
-
box-sizing: border-box;
|
|
95
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
96
|
-
'Helvetica Neue', sans-serif;
|
|
97
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Icon } from '../../Icon/Icon';
|
|
3
|
-
import './Input.css';
|
|
4
|
-
export const Input = ({ errorLabel, icon, label, size = 'md', type = 'text', value, variant = 'primary', disabled, resetable, rounded, onChange, ...props }) => {
|
|
5
|
-
// ########
|
|
6
|
-
// Handlers
|
|
7
|
-
const handleChange = (e) => onChange(e.target.value);
|
|
8
|
-
// #########
|
|
9
|
-
// Rendering
|
|
10
|
-
return (React.createElement("div", { className: `
|
|
11
|
-
input input-${variant} input-${size}
|
|
12
|
-
${disabled ? 'input--disabled' : ''}
|
|
13
|
-
${rounded ? 'input--rounded' : ''}
|
|
14
|
-
` },
|
|
15
|
-
label && React.createElement("label", null, label),
|
|
16
|
-
React.createElement("div", { className: `input-container ${errorLabel ? 'input-container--error' : ''}` },
|
|
17
|
-
React.createElement("input", { style: { paddingRight: icon && resetable ? '58px' : icon || resetable ? '36px' : '16px' }, type: type, value: value, disabled: disabled, onChange: handleChange, ...props }),
|
|
18
|
-
(icon || resetable) && (React.createElement("div", { className: "input-icon-container" },
|
|
19
|
-
resetable && (React.createElement("div", { style: { cursor: 'pointer' }, onClick: () => onChange('') },
|
|
20
|
-
React.createElement(Icon, { name: "close", size: "16" }))),
|
|
21
|
-
icon && React.createElement(Icon, { name: icon, size: "16" })))),
|
|
22
|
-
errorLabel && (React.createElement("div", { className: "input--error" },
|
|
23
|
-
React.createElement(Icon, { name: "alert-circle-filled" }),
|
|
24
|
-
React.createElement("div", { className: "input--error-label" }, errorLabel)))));
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=Input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../src/components/Inputs/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,OAAO,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EACpB,UAAU,EACV,IAAI,EACJ,KAAK,EACL,IAAI,GAAG,IAAI,EACX,IAAI,GAAG,MAAM,EACb,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,EACR,GAAG,KAAK,EACG,EAAE,EAAE;IACf,WAAW;IACX,WAAW;IACX,MAAM,YAAY,GAAG,CAAC,CAAgC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAEpF,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BACE,SAAS,EAAE;sBACK,OAAO,UAAU,IAAI;UACjC,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE;UACjC,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE;OAClC;QAEA,KAAK,IAAI,mCAAQ,KAAK,CAAS;QAEhC,6BAAK,SAAS,EAAE,mBAAmB,UAAU,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,EAAE;YAC7E,+BACE,KAAK,EAAE,EAAE,YAAY,EAAE,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EACzF,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,YAAY,KAClB,KAAK,GACT;YAED,CAAC,IAAI,IAAI,SAAS,CAAC,IAAI,CACtB,6BAAK,SAAS,EAAC,sBAAsB;gBAClC,SAAS,IAAI,CACZ,6BAAK,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;oBAC5D,oBAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,IAAI,GAAG,CAC3B,CACP;gBACA,IAAI,IAAI,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,GAAG,CACnC,CACP,CACG;QAEL,UAAU,IAAI,CACb,6BAAK,SAAS,EAAC,cAAc;YAC3B,oBAAC,IAAI,IAAC,IAAI,EAAC,qBAAqB,GAAG;YACnC,6BAAK,SAAS,EAAC,oBAAoB,IAAE,UAAU,CAAO,CAClD,CACP,CACG,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ChangeEvent } from 'react';
|
|
3
|
-
import { Icon } from '../../Icon/Icon';
|
|
4
|
-
import { InputProps } from './Input.types';
|
|
5
|
-
import './Input.css';
|
|
6
|
-
|
|
7
|
-
export const Input = ({
|
|
8
|
-
errorLabel,
|
|
9
|
-
icon,
|
|
10
|
-
label,
|
|
11
|
-
size = 'md',
|
|
12
|
-
type = 'text',
|
|
13
|
-
value,
|
|
14
|
-
variant = 'primary',
|
|
15
|
-
disabled,
|
|
16
|
-
resetable,
|
|
17
|
-
rounded,
|
|
18
|
-
onChange,
|
|
19
|
-
...props
|
|
20
|
-
}: InputProps) => {
|
|
21
|
-
// ########
|
|
22
|
-
// Handlers
|
|
23
|
-
const handleChange = (e: ChangeEvent<HTMLInputElement>) => onChange(e.target.value);
|
|
24
|
-
|
|
25
|
-
// #########
|
|
26
|
-
// Rendering
|
|
27
|
-
return (
|
|
28
|
-
<div
|
|
29
|
-
className={`
|
|
30
|
-
input input-${variant} input-${size}
|
|
31
|
-
${disabled ? 'input--disabled' : ''}
|
|
32
|
-
${rounded ? 'input--rounded' : ''}
|
|
33
|
-
`}
|
|
34
|
-
>
|
|
35
|
-
{label && <label>{label}</label>}
|
|
36
|
-
|
|
37
|
-
<div className={`input-container ${errorLabel ? 'input-container--error' : ''}`}>
|
|
38
|
-
<input
|
|
39
|
-
style={{ paddingRight: icon && resetable ? '58px' : icon || resetable ? '36px' : '16px' }}
|
|
40
|
-
type={type}
|
|
41
|
-
value={value}
|
|
42
|
-
disabled={disabled}
|
|
43
|
-
onChange={handleChange}
|
|
44
|
-
{...props}
|
|
45
|
-
/>
|
|
46
|
-
|
|
47
|
-
{(icon || resetable) && (
|
|
48
|
-
<div className="input-icon-container">
|
|
49
|
-
{resetable && (
|
|
50
|
-
<div style={{ cursor: 'pointer' }} onClick={() => onChange('')}>
|
|
51
|
-
<Icon name="close" size="16" />
|
|
52
|
-
</div>
|
|
53
|
-
)}
|
|
54
|
-
{icon && <Icon name={icon} size="16" />}
|
|
55
|
-
</div>
|
|
56
|
-
)}
|
|
57
|
-
</div>
|
|
58
|
-
|
|
59
|
-
{errorLabel && (
|
|
60
|
-
<div className="input--error">
|
|
61
|
-
<Icon name="alert-circle-filled" />
|
|
62
|
-
<div className="input--error-label">{errorLabel}</div>
|
|
63
|
-
</div>
|
|
64
|
-
)}
|
|
65
|
-
</div>
|
|
66
|
-
);
|
|
67
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
export type InputProps = {
|
|
3
|
-
errorLabel?: string;
|
|
4
|
-
icon?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
size?: 'md' | 'lg';
|
|
7
|
-
type?: 'text' | 'number';
|
|
8
|
-
value: string;
|
|
9
|
-
variant?: 'primary' | 'shadow';
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
resetable?: boolean;
|
|
12
|
-
rounded?: boolean;
|
|
13
|
-
onChange: (value: string) => void;
|
|
14
|
-
} & Omit<Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'>, 'size'>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Input.types.js","sourceRoot":"","sources":["../../../../src/components/Inputs/Input/Input.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
export type InputProps = {
|
|
4
|
-
errorLabel?: string;
|
|
5
|
-
icon?: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
size?: 'md' | 'lg';
|
|
8
|
-
type?: 'text' | 'number';
|
|
9
|
-
value: string;
|
|
10
|
-
variant?: 'primary' | 'shadow';
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
resetable?: boolean;
|
|
13
|
-
rounded?: boolean;
|
|
14
|
-
onChange: (value: string) => void;
|
|
15
|
-
} & Omit<Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'>, 'size'>;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { Input } from '../Input';
|
|
4
|
-
import { icons } from '../../../Icon/icons';
|
|
5
|
-
|
|
6
|
-
<Meta title="Components/Inputs/Input" />
|
|
7
|
-
|
|
8
|
-
export const inputArgTypes = {
|
|
9
|
-
errorLabel: { control: 'text', description: 'Show error on the input.' },
|
|
10
|
-
icon: {
|
|
11
|
-
control: 'select',
|
|
12
|
-
options: Object.keys(icons),
|
|
13
|
-
description: 'Name of an icon.',
|
|
14
|
-
},
|
|
15
|
-
label: {
|
|
16
|
-
control: 'text',
|
|
17
|
-
description: 'Label of the input.',
|
|
18
|
-
},
|
|
19
|
-
placeholder: {
|
|
20
|
-
control: 'text',
|
|
21
|
-
description: 'Placeholder displayed when the input is empty.',
|
|
22
|
-
},
|
|
23
|
-
size: {
|
|
24
|
-
control: 'inline-radio',
|
|
25
|
-
options: ['md', 'lg'],
|
|
26
|
-
description: 'Define the size of the input.',
|
|
27
|
-
table: { defaultValue: { summary: 'md' } },
|
|
28
|
-
},
|
|
29
|
-
type: {
|
|
30
|
-
control: 'inline-radio',
|
|
31
|
-
options: ['text', 'number'],
|
|
32
|
-
description: 'Type of the input.',
|
|
33
|
-
table: { defaultValue: { summary: 'text' } },
|
|
34
|
-
},
|
|
35
|
-
value: {
|
|
36
|
-
control: 'text',
|
|
37
|
-
description: 'Value of the input.',
|
|
38
|
-
},
|
|
39
|
-
variant: {
|
|
40
|
-
control: 'inline-radio',
|
|
41
|
-
options: ['primary', 'shadow'],
|
|
42
|
-
description: 'Variant of the input.',
|
|
43
|
-
table: { defaultValue: { summary: 'primary' } },
|
|
44
|
-
},
|
|
45
|
-
disabled: {
|
|
46
|
-
control: 'boolean',
|
|
47
|
-
description: 'Disabled the input',
|
|
48
|
-
table: { defaultValue: { summary: 'false' } },
|
|
49
|
-
},
|
|
50
|
-
resetable: {
|
|
51
|
-
control: 'boolean',
|
|
52
|
-
description: 'Reset the input value',
|
|
53
|
-
table: { defaultValue: { summary: 'false' } },
|
|
54
|
-
},
|
|
55
|
-
rounded: {
|
|
56
|
-
control: 'boolean',
|
|
57
|
-
description: 'Rounded the input',
|
|
58
|
-
table: { defaultValue: { summary: 'false' } },
|
|
59
|
-
},
|
|
60
|
-
onChange: {
|
|
61
|
-
control: 'function',
|
|
62
|
-
description: 'The handler called when the value of the input changes.',
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
# Text Input
|
|
67
|
-
|
|
68
|
-
Text input allows the user to enter content and data when the expected user input is a single line of text.
|
|
69
|
-
|
|
70
|
-
## Overview
|
|
71
|
-
|
|
72
|
-
<Canvas>
|
|
73
|
-
<Story
|
|
74
|
-
name="Overview"
|
|
75
|
-
args={{
|
|
76
|
-
errorLabel: '',
|
|
77
|
-
label: 'Label',
|
|
78
|
-
placeholder: 'This is a placeholder',
|
|
79
|
-
size: 'md',
|
|
80
|
-
type: 'text',
|
|
81
|
-
value: '',
|
|
82
|
-
variant: 'primary',
|
|
83
|
-
disabled: false,
|
|
84
|
-
resetable: false,
|
|
85
|
-
rounded: false,
|
|
86
|
-
}}
|
|
87
|
-
argTypes={inputArgTypes}
|
|
88
|
-
>
|
|
89
|
-
{args => <Input type="number" {...args} />}
|
|
90
|
-
</Story>
|
|
91
|
-
</Canvas>
|
|
92
|
-
|
|
93
|
-
## Props
|
|
94
|
-
|
|
95
|
-
<ArgsTable story="Overview" of={Input} />
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
@keyframes rotation {
|
|
2
|
-
0% {
|
|
3
|
-
transform: rotate(0deg);
|
|
4
|
-
}
|
|
5
|
-
100% {
|
|
6
|
-
transform: rotate(360deg);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.loader {
|
|
11
|
-
border: 2px solid;
|
|
12
|
-
border-color: #00689d transparent;
|
|
13
|
-
border-radius: 50%;
|
|
14
|
-
display: inline-block;
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
animation: rotation 1.5s linear infinite;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/* ####### */
|
|
20
|
-
/* SIZES */
|
|
21
|
-
.loader--sm {
|
|
22
|
-
width: 24px;
|
|
23
|
-
height: 24px;
|
|
24
|
-
}
|
|
25
|
-
.loader--md {
|
|
26
|
-
width: 32px;
|
|
27
|
-
height: 32px;
|
|
28
|
-
}
|
|
29
|
-
.loader--lg {
|
|
30
|
-
width: 44px;
|
|
31
|
-
height: 44px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* ######### */
|
|
35
|
-
/* GLOBALS */
|
|
36
|
-
* {
|
|
37
|
-
font-size: 14px;
|
|
38
|
-
outline: none;
|
|
39
|
-
box-sizing: border-box;
|
|
40
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
41
|
-
'Helvetica Neue', sans-serif;
|
|
42
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/components/Loader/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,EAAe,EAAE,EAAE;IACrD,OAAO,6BAAK,SAAS,EAAE,kBAAkB,IAAI,EAAE,GAAI,CAAC;AACtD,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.types.js","sourceRoot":"","sources":["../../../src/components/Loader/Loader.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { Loader } from '../Loader';
|
|
4
|
-
|
|
5
|
-
<Meta title="Components/Loader" />
|
|
6
|
-
|
|
7
|
-
export const loaderArgTypes = {
|
|
8
|
-
size: {
|
|
9
|
-
control: 'inline-radio',
|
|
10
|
-
options: ['sm', 'md', 'lg'],
|
|
11
|
-
description: 'Define the size of the loader.',
|
|
12
|
-
table: { defaultValue: { summary: 'md' } },
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
# Loader
|
|
17
|
-
|
|
18
|
-
Loader express to user that an action is occuring.
|
|
19
|
-
|
|
20
|
-
## Overview
|
|
21
|
-
|
|
22
|
-
<Canvas>
|
|
23
|
-
<Story name="Overview" args={{ size: 'md' }} argTypes={loaderArgTypes}>
|
|
24
|
-
{args => <Loader {...args}>{args.children}</Loader>}
|
|
25
|
-
</Story>
|
|
26
|
-
</Canvas>
|
|
27
|
-
|
|
28
|
-
## Props
|
|
29
|
-
|
|
30
|
-
<ArgsTable story="Overview" of={Loader} />
|