@dktunited-techoff/techoff-suite-ui 0.8.5 → 0.8.7
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/Icon/icons/index.ts +1 -1
- package/src/layouts/Header/Header.css +15 -23
- package/src/layouts/Header/Header.tsx +9 -4
- package/src/layouts/Header/Header.types.ts +1 -0
- package/src/layouts/Header/__stories__/Header.stories.mdx +11 -3
- package/src/layouts/Navigation/Navigation.css +1 -1
- package/esm/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/esm/components/Button/Button.css +0 -93
- 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 -61
- package/esm/components/Checkbox/Checkbox.d.ts +0 -7
- package/esm/components/Checkbox/Checkbox.js +0 -21
- package/esm/components/Checkbox/Checkbox.js.map +0 -1
- package/esm/components/Checkbox/Checkbox.types.d.ts +0 -4
- 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 -43
- 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 -88
- package/esm/components/Icon/icons/alert-fill.svg +0 -1
- package/esm/components/Icon/icons/alert-line.svg +0 -1
- package/esm/components/Icon/icons/arrow-back.svg +0 -1
- package/esm/components/Icon/icons/arrow-down.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.svg +0 -1
- package/esm/components/Icon/icons/arrows-up-down.svg +0 -1
- package/esm/components/Icon/icons/check-circle-fill.svg +0 -1
- package/esm/components/Icon/icons/check-circle.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/dots-vertical.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/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/heart-fill.svg +0 -1
- package/esm/components/Icon/icons/heart.svg +0 -1
- package/esm/components/Icon/icons/home.svg +0 -1
- package/esm/components/Icon/icons/houglass.svg +0 -1
- package/esm/components/Icon/icons/in-progress.svg +0 -18
- package/esm/components/Icon/icons/index.d.ts +0 -3
- package/esm/components/Icon/icons/index.js +0 -49
- package/esm/components/Icon/icons/index.js.map +0 -1
- package/esm/components/Icon/icons/index.ts +0 -48
- package/esm/components/Icon/icons/lightning-off.svg +0 -1
- package/esm/components/Icon/icons/lightning.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/plus-circle.svg +0 -1
- package/esm/components/Icon/icons/plus.svg +0 -1
- package/esm/components/Icon/icons/search.svg +0 -1
- package/esm/components/Icon/icons/seed-2.svg +0 -1
- package/esm/components/Icon/icons/square-check-fill.svg +0 -1
- 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/Icon/icons/waiting-validation.svg +0 -19
- package/esm/components/Icon/icons/x-circle-fill.svg +0 -1
- package/esm/components/Icon/icons/x.svg +0 -1
- package/esm/components/Inputs/BooleanInput/BooleanInput.css +0 -51
- 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 -7
- 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 -7
- package/esm/components/Inputs/BooleanInput/__stories__/BooleanInput.stories.mdx +0 -44
- package/esm/components/Inputs/TextInput/TextInput.css +0 -42
- package/esm/components/Inputs/TextInput/TextInput.d.ts +0 -4
- package/esm/components/Inputs/TextInput/TextInput.js +0 -16
- package/esm/components/Inputs/TextInput/TextInput.js.map +0 -1
- package/esm/components/Inputs/TextInput/TextInput.tsx +0 -24
- package/esm/components/Inputs/TextInput/TextInput.types.d.ts +0 -8
- package/esm/components/Inputs/TextInput/TextInput.types.js +0 -2
- package/esm/components/Inputs/TextInput/TextInput.types.js.map +0 -1
- package/esm/components/Inputs/TextInput/TextInput.types.ts +0 -8
- package/esm/components/Inputs/TextInput/__stories__/TextInput.stories.mdx +0 -55
- 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/index.d.ts +0 -9
- package/esm/index.js +0 -10
- package/esm/index.js.map +0 -1
- package/esm/layouts/Header/Header.css +0 -83
- 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 -4
- package/esm/layouts/Header/Header.types.js +0 -2
- package/esm/layouts/Header/Header.types.js.map +0 -1
- package/esm/layouts/Header/HeaderActions.d.ts +0 -3
- package/esm/layouts/Header/HeaderActions.js +0 -7
- package/esm/layouts/Header/HeaderActions.js.map +0 -1
- package/esm/layouts/Header/HeaderProfile.d.ts +0 -3
- package/esm/layouts/Header/HeaderProfile.js +0 -16
- package/esm/layouts/Header/HeaderProfile.js.map +0 -1
- package/esm/layouts/Header/HeaderTitle.d.ts +0 -3
- package/esm/layouts/Header/HeaderTitle.js +0 -11
- package/esm/layouts/Header/HeaderTitle.js.map +0 -1
- package/esm/layouts/Header/__stories__/Header.stories.mdx +0 -36
- package/esm/layouts/Navigation/Navigation.css +0 -74
- package/esm/layouts/Navigation/Navigation.d.ts +0 -4
- package/esm/layouts/Navigation/Navigation.js +0 -15
- package/esm/layouts/Navigation/Navigation.js.map +0 -1
- package/esm/layouts/Navigation/Navigation.types.d.ts +0 -5
- package/esm/layouts/Navigation/Navigation.types.js +0 -2
- package/esm/layouts/Navigation/Navigation.types.js.map +0 -1
- package/esm/layouts/Navigation/NavigationActions.d.ts +0 -4
- package/esm/layouts/Navigation/NavigationActions.js +0 -4
- package/esm/layouts/Navigation/NavigationActions.js.map +0 -1
- package/esm/layouts/Navigation/NavigationBreadcrumb.d.ts +0 -6
- package/esm/layouts/Navigation/NavigationBreadcrumb.js +0 -26
- package/esm/layouts/Navigation/NavigationBreadcrumb.js.map +0 -1
- package/esm/layouts/Navigation/__stories__/Navigation.stories.mdx +0 -46
- 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/esm/utils/validator.utils.d.ts +0 -2
- package/esm/utils/validator.utils.js +0 -5
- package/esm/utils/validator.utils.js.map +0 -1
- package/lib/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/lib/components/Button/Button.css +0 -93
- 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 -61
- package/lib/components/Checkbox/Checkbox.d.ts +0 -7
- package/lib/components/Checkbox/Checkbox.js +0 -27
- package/lib/components/Checkbox/Checkbox.js.map +0 -1
- package/lib/components/Checkbox/Checkbox.types.d.ts +0 -4
- 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 -43
- 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 -88
- package/lib/components/Icon/icons/alert-fill.svg +0 -1
- package/lib/components/Icon/icons/alert-line.svg +0 -1
- package/lib/components/Icon/icons/arrow-back.svg +0 -1
- package/lib/components/Icon/icons/arrow-down.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.svg +0 -1
- package/lib/components/Icon/icons/arrows-up-down.svg +0 -1
- package/lib/components/Icon/icons/check-circle-fill.svg +0 -1
- package/lib/components/Icon/icons/check-circle.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/dots-vertical.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/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-reparability.svg +0 -32
- package/lib/components/Icon/icons/heart-fill.svg +0 -1
- package/lib/components/Icon/icons/heart.svg +0 -1
- package/lib/components/Icon/icons/home.svg +0 -1
- package/lib/components/Icon/icons/houglass.svg +0 -1
- package/lib/components/Icon/icons/in-progress.svg +0 -18
- package/lib/components/Icon/icons/index.d.ts +0 -3
- package/lib/components/Icon/icons/index.js +0 -52
- package/lib/components/Icon/icons/index.js.map +0 -1
- package/lib/components/Icon/icons/index.ts +0 -48
- package/lib/components/Icon/icons/lightning-off.svg +0 -1
- package/lib/components/Icon/icons/lightning.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/plus-circle.svg +0 -1
- package/lib/components/Icon/icons/plus.svg +0 -1
- package/lib/components/Icon/icons/search.svg +0 -1
- package/lib/components/Icon/icons/seed-2.svg +0 -1
- package/lib/components/Icon/icons/square-check-fill.svg +0 -1
- 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/Icon/icons/waiting-validation.svg +0 -19
- package/lib/components/Icon/icons/x-circle-fill.svg +0 -1
- package/lib/components/Icon/icons/x.svg +0 -1
- package/lib/components/Inputs/BooleanInput/BooleanInput.css +0 -51
- 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 -7
- 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 -7
- package/lib/components/Inputs/BooleanInput/__stories__/BooleanInput.stories.mdx +0 -44
- package/lib/components/Inputs/TextInput/TextInput.css +0 -42
- package/lib/components/Inputs/TextInput/TextInput.d.ts +0 -4
- package/lib/components/Inputs/TextInput/TextInput.js +0 -20
- package/lib/components/Inputs/TextInput/TextInput.js.map +0 -1
- package/lib/components/Inputs/TextInput/TextInput.tsx +0 -24
- package/lib/components/Inputs/TextInput/TextInput.types.d.ts +0 -8
- package/lib/components/Inputs/TextInput/TextInput.types.js +0 -3
- package/lib/components/Inputs/TextInput/TextInput.types.js.map +0 -1
- package/lib/components/Inputs/TextInput/TextInput.types.ts +0 -8
- package/lib/components/Inputs/TextInput/__stories__/TextInput.stories.mdx +0 -55
- 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/index.d.ts +0 -9
- package/lib/index.js +0 -26
- package/lib/index.js.map +0 -1
- package/lib/layouts/Header/Header.css +0 -83
- 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 -4
- package/lib/layouts/Header/Header.types.js +0 -3
- package/lib/layouts/Header/Header.types.js.map +0 -1
- package/lib/layouts/Header/HeaderActions.d.ts +0 -3
- package/lib/layouts/Header/HeaderActions.js +0 -11
- package/lib/layouts/Header/HeaderActions.js.map +0 -1
- package/lib/layouts/Header/HeaderProfile.d.ts +0 -3
- package/lib/layouts/Header/HeaderProfile.js +0 -20
- package/lib/layouts/Header/HeaderProfile.js.map +0 -1
- package/lib/layouts/Header/HeaderTitle.d.ts +0 -3
- package/lib/layouts/Header/HeaderTitle.js +0 -15
- package/lib/layouts/Header/HeaderTitle.js.map +0 -1
- package/lib/layouts/Header/__stories__/Header.stories.mdx +0 -36
- package/lib/layouts/Navigation/Navigation.css +0 -74
- package/lib/layouts/Navigation/Navigation.d.ts +0 -4
- package/lib/layouts/Navigation/Navigation.js +0 -19
- package/lib/layouts/Navigation/Navigation.js.map +0 -1
- package/lib/layouts/Navigation/Navigation.types.d.ts +0 -5
- package/lib/layouts/Navigation/Navigation.types.js +0 -3
- package/lib/layouts/Navigation/Navigation.types.js.map +0 -1
- package/lib/layouts/Navigation/NavigationActions.d.ts +0 -4
- package/lib/layouts/Navigation/NavigationActions.js +0 -8
- package/lib/layouts/Navigation/NavigationActions.js.map +0 -1
- package/lib/layouts/Navigation/NavigationBreadcrumb.d.ts +0 -6
- package/lib/layouts/Navigation/NavigationBreadcrumb.js +0 -31
- package/lib/layouts/Navigation/NavigationBreadcrumb.js.map +0 -1
- package/lib/layouts/Navigation/__stories__/Navigation.stories.mdx +0 -46
- 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/lib/utils/validator.utils.d.ts +0 -2
- package/lib/utils/validator.utils.js +0 -9
- package/lib/utils/validator.utils.js.map +0 -1
- package/src/components/Icon/icons/header-reparability.svg +0 -32
- package/src/layouts/Header/HeaderTitle.tsx +0 -17
- /package/{esm/components/Icon/icons/header-reparability.svg → src/components/Icon/icons/header-repairability.svg} +0 -0
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ export const icons: { [k: string]: string } = {
|
|
|
24
24
|
'header-bikestudio': '<?xml version="1.0" encoding="utf-8"?><!-- Generator: Adobe Illustrator 27.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --><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" viewBox="0 0 238.9 17.2" style="enable-background:new 0 0 238.9 17.2;" xml:space="preserve"><style type="text/css"> .st0{fill:#152C47;} .st1{font-family:\'Montserrat-Medium\';} .st2{font-size:24px;} .st3{font-family:\'Roboto-Light\';} .st4{font-size:11px;} .st5{fill:#020203;} .st6{fill:#0D84C5;} .st7{fill:#FFFFFF;}</style><text transform="matrix(1 0 0 1 -2.52 16.9922)" class="st0 st1 st2">BIKESTUDIO</text><text transform="matrix(1 0 0 1 165.1359 17.0155)" class="st3 st4">BY</text><path class="st5" d="M202.2,10.3c-0.5-0.6-1.3-0.9-2.2-0.9c-1.6,0-2.8,1.2-2.8,2.8s1.2,2.8,2.8,2.8c0.9,0,1.7-0.4,2.2-1.1l1.4,1.3 c-0.9,1.1-2.1,1.7-3.6,1.7c-2.8,0-4.8-2-4.8-4.8s2-4.8,4.8-4.8c1.4,0,2.7,0.5,3.6,1.5L202.2,10.3z"/><polygon class="st5" points="188.2,7.7 194.1,7.7 194.1,9.5 190.2,9.5 190.2,11.4 193.6,11.4 193.6,13.2 190.2,13.2 190.2,15.2 194.1,15.2 194.1,17 188.2,17 "/><polygon class="st5" points="226.7,7.5 232.2,7.5 232.2,9.4 228.6,9.4 228.6,11.7 231.7,11.7 231.7,13.5 228.6,13.5 228.6,16.9 226.7,16.9 "/><polygon class="st5" points="233.3,7.5 238.9,7.5 238.9,9.4 235.3,9.4 235.3,11.7 238.4,11.7 238.4,13.5 235.3,13.5 235.3,16.9 233.3,16.9 "/><polygon class="st5" points="210.7,13 206.7,13 206.7,16.9 204.8,16.9 204.8,7.5 206.7,7.5 206.7,11.1 210.7,11.1 210.7,7.5 212.7,7.5 212.7,16.9 210.7,16.9 "/><polygon class="st5" points="180,7.7 187.1,7.7 187.1,9.6 184.6,9.6 184.6,17 182.6,17 182.6,9.6 180,9.6 "/><polyline class="st5" points="213.1,8.8 214.9,6 216.9,6 215.1,8.8 213.1,8.8 "/><path class="st5" d="M220.7,7.4c-2.8,0-4.8,2-4.8,4.8s2,4.8,4.8,4.8s4.8-2,4.8-4.8S223.5,7.4,220.7,7.4z"/><polygon class="st6" points="216.6,12.4 222.7,8.8 222.7,15.9 "/><polygon class="st7" points="220.6,17 220.5,13.6 217.7,15.4 "/></svg>',
|
|
25
25
|
'header-nsc-helmet': '<?xml version="1.0" encoding="utf-8"?><!-- Generator: Adobe Illustrator 27.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --><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" viewBox="0 0 247.3 17" style="enable-background:new 0 0 247.3 17;" xml:space="preserve"><style type="text/css"> .st0{fill:#152C47;} .st1{font-family:\'Montserrat-Medium\';} .st2{font-size:24px;} .st3{font-family:\'Roboto-Light\';} .st4{font-size:11px;} .st5{fill:#020203;} .st6{fill:#0D84C5;} .st7{fill:#FFFFFF;}</style><text transform="matrix(1 0 0 1 -2.52 16.8017)" class="st0 st1 st2">NSC HELMET</text><text transform="matrix(1 0 0 1 173.496 16.8009)" class="st3 st4">BY</text><path class="st5" d="M210.6,10.1c-0.5-0.6-1.3-0.9-2.2-0.9c-1.6,0-2.8,1.2-2.8,2.8s1.2,2.8,2.8,2.8c0.9,0,1.7-0.4,2.2-1.1L212,15 c-0.9,1.1-2.1,1.7-3.6,1.7c-2.8,0-4.8-2-4.8-4.8s2-4.8,4.8-4.8c1.4,0,2.7,0.5,3.6,1.5L210.6,10.1z"/><polygon class="st5" points="196.6,7.5 202.5,7.5 202.5,9.3 198.6,9.3 198.6,11.2 202,11.2 202,13 198.6,13 198.6,15 202.5,15 202.5,16.8 196.6,16.8 "/><polygon class="st5" points="235.1,7.3 240.6,7.3 240.6,9.2 237,9.2 237,11.5 240.1,11.5 240.1,13.3 237,13.3 237,16.7 235.1,16.7 "/><polygon class="st5" points="241.7,7.3 247.3,7.3 247.3,9.2 243.7,9.2 243.7,11.5 246.8,11.5 246.8,13.3 243.7,13.3 243.7,16.7 241.7,16.7 "/><polygon class="st5" points="219.1,12.8 215.1,12.8 215.1,16.7 213.2,16.7 213.2,7.3 215.1,7.3 215.1,10.9 219.1,10.9 219.1,7.3 221.1,7.3 221.1,16.7 219.1,16.7 "/><polygon class="st5" points="188.4,7.5 195.5,7.5 195.5,9.4 193,9.4 193,16.8 191,16.8 191,9.4 188.4,9.4 "/><polyline class="st5" points="221.5,8.6 223.3,5.8 225.3,5.8 223.5,8.6 221.5,8.6 "/><path class="st5" d="M229.1,7.2c-2.8,0-4.8,2-4.8,4.8s2,4.8,4.8,4.8s4.8-2,4.8-4.8S231.9,7.2,229.1,7.2z"/><polygon class="st6" points="225,12.2 231.1,8.6 231.1,15.7 "/><polygon class="st7" points="229,16.8 228.9,13.4 226.1,15.2 "/></svg>',
|
|
26
26
|
'header-opticost': '<?xml version="1.0" encoding="utf-8"?><!-- Generator: Adobe Illustrator 27.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --><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" viewBox="0 0 211.7 17.2" style="enable-background:new 0 0 211.7 17.2;" xml:space="preserve"><style type="text/css"> .st0{fill:#152C47;} .st1{font-family:\'Montserrat-Medium\';} .st2{font-size:24px;} .st3{font-family:\'Roboto-Light\';} .st4{font-size:11px;} .st5{fill:#020203;} .st6{fill:#0D84C5;} .st7{fill:#FFFFFF;}</style><text transform="matrix(1 0 0 1 -1.1519 16.9922)" class="st0 st1 st2">OPTICOST</text><text transform="matrix(1 0 0 1 137.907 16.9861)" class="st3 st4">BY</text><path class="st5" d="M175,10.3c-0.5-0.6-1.3-0.9-2.2-0.9c-1.6,0-2.8,1.2-2.8,2.8s1.2,2.8,2.8,2.8c0.9,0,1.7-0.4,2.2-1.1l1.4,1.3 c-0.9,1.1-2.1,1.7-3.6,1.7c-2.8,0-4.8-2-4.8-4.8s2-4.8,4.8-4.8c1.4,0,2.7,0.5,3.6,1.5L175,10.3z"/><polygon class="st5" points="161,7.7 166.9,7.7 166.9,9.5 163,9.5 163,11.4 166.4,11.4 166.4,13.2 163,13.2 163,15.2 166.9,15.2 166.9,17 161,17 "/><polygon class="st5" points="199.5,7.5 205,7.5 205,9.4 201.4,9.4 201.4,11.7 204.5,11.7 204.5,13.5 201.4,13.5 201.4,16.9 199.5,16.9 "/><polygon class="st5" points="206.1,7.5 211.7,7.5 211.7,9.4 208.1,9.4 208.1,11.7 211.2,11.7 211.2,13.5 208.1,13.5 208.1,16.9 206.1,16.9 "/><polygon class="st5" points="183.5,13 179.5,13 179.5,16.9 177.6,16.9 177.6,7.5 179.5,7.5 179.5,11.1 183.5,11.1 183.5,7.5 185.5,7.5 185.5,16.9 183.5,16.9 "/><polygon class="st5" points="152.8,7.7 159.9,7.7 159.9,9.6 157.4,9.6 157.4,17 155.4,17 155.4,9.6 152.8,9.6 "/><polyline class="st5" points="185.9,8.8 187.7,6 189.7,6 187.9,8.8 185.9,8.8 "/><path class="st5" d="M193.5,7.4c-2.8,0-4.8,2-4.8,4.8s2,4.8,4.8,4.8s4.8-2,4.8-4.8S196.3,7.4,193.5,7.4z"/><polygon class="st6" points="189.4,12.4 195.5,8.8 195.5,15.9 "/><polygon class="st7" points="193.4,17 193.3,13.6 190.5,15.4 "/></svg>',
|
|
27
|
-
'header-
|
|
27
|
+
'header-repairability': '<?xml version="1.0" encoding="utf-8"?><!-- Generator: Adobe Illustrator 27.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --><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" viewBox="0 0 357.7 16.8" style="enable-background:new 0 0 357.7 16.8;" xml:space="preserve"><style type="text/css"> .st0{fill:#152C47 !important;} .st1{font-family:\'Montserrat-Medium\' !important;} .st2{font-size:24px !important;} .st3{font-family:\'Roboto-Light\' !important;} .st4{font-size:11px !important;} .st5{fill:#020203 !important;} .st6{fill:#0D84C5 !important;} .st7{fill:#FFFFFF !important;}</style><text transform="matrix(1 0 0 1 -2.52 16.7998)" class="st0 st1 st2">REPAIRABILITY INDEX</text><text transform="matrix(1 0 0 1 283.9413 16.7998)" class="st3 st4">BY</text><path class="st5" d="M321,10.1c-0.5-0.6-1.3-0.9-2.2-0.9c-1.6,0-2.8,1.2-2.8,2.8s1.2,2.8,2.8,2.8c0.9,0,1.7-0.4,2.2-1.1l1.4,1.3 c-0.9,1.1-2.1,1.7-3.6,1.7c-2.8,0-4.8-2-4.8-4.8c0-2.8,2-4.8,4.8-4.8c1.4,0,2.7,0.5,3.6,1.5L321,10.1z"/><polygon class="st5" points="307,7.5 312.9,7.5 312.9,9.3 309,9.3 309,11.2 312.4,11.2 312.4,13 309,13 309,15 312.9,15 312.9,16.8 307,16.8 "/><polygon class="st5" points="345.5,7.3 351,7.3 351,9.2 347.4,9.2 347.4,11.5 350.5,11.5 350.5,13.3 347.4,13.3 347.4,16.7 345.5,16.7 "/><polygon class="st5" points="352.1,7.3 357.7,7.3 357.7,9.2 354.1,9.2 354.1,11.5 357.2,11.5 357.2,13.3 354.1,13.3 354.1,16.7 352.1,16.7 "/><polygon class="st5" points="329.5,12.8 325.5,12.8 325.5,16.7 323.6,16.7 323.6,7.3 325.5,7.3 325.5,10.9 329.5,10.9 329.5,7.3 331.5,7.3 331.5,16.7 329.5,16.7 "/><polygon class="st5" points="298.8,7.5 305.9,7.5 305.9,9.4 303.4,9.4 303.4,16.8 301.4,16.8 301.4,9.4 298.8,9.4 "/><polyline class="st5" points="331.9,8.6 333.7,5.8 335.7,5.8 333.9,8.6 331.9,8.6 "/><path class="st5" d="M339.5,7.2c-2.8,0-4.8,2-4.8,4.8s2,4.8,4.8,4.8c2.8,0,4.8-2,4.8-4.8S342.3,7.2,339.5,7.2z"/><polygon class="st6" points="335.4,12.2 341.5,8.6 341.5,15.7 "/><polygon class="st7" points="339.4,16.8 339.3,13.4 336.5,15.2 "/></svg>',
|
|
28
28
|
'heart-fill': '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16.5 3C19.538 3 22 5.5 22 9C22 16 14.5 20 12 21.5C9.5 20 2 16 2 9C2 5.5 4.5 3 7.5 3C9.36 3 11 4 12 5C13 4 14.64 3 16.5 3Z"/></svg>',
|
|
29
29
|
'heart': '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M22 9C22 5.5 19.538 3 16.5 3C14.64 3 13 4 12 5C11 4 9.36 3 7.5 3C4.5 3 2 5.5 2 9C2 15.6009 8.66916 19.5341 11.5259 21.219C11.6987 21.3208 11.8575 21.4145 12 21.5C12.1425 21.4145 12.3013 21.3208 12.4741 21.219C15.3308 19.5341 22 15.6009 22 9ZM15.354 16.903C14.61 17.495 13.815 18.048 12.934 18.604C12.635 18.792 12.339 18.973 12 19.175C11.661 18.973 11.365 18.792 11.066 18.603C10.185 18.048 9.39 17.495 8.645 16.903C5.666 14.533 4 11.944 4 9C4 6.656 5.56 5 7.5 5C8.576 5 9.74 5.57 10.586 6.414L12 7.828L13.414 6.414C14.26 5.57 15.424 5 16.5 5C18.463 5 20 6.64 20 9C20 11.943 18.335 14.533 15.354 16.903Z"/></svg>',
|
|
30
30
|
'home': '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4 20.6484C4 21.2006 4.44772 21.6484 5 21.6484H19C19.5523 21.6484 20 21.2006 20 20.6484V11.6484H23L12.673 2.26036C12.2915 1.91321 11.7085 1.91321 11.327 2.26036L1 11.6484H4V20.6484ZM18 9.80536V19.6484H6V9.80536L12 4.35136L18 9.80536Z"/></svg>',
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
@font-face {
|
|
2
|
-
font-family: 'Montserrat';
|
|
2
|
+
font-family: 'Montserrat-Medium';
|
|
3
3
|
src: url('../../assets/fonts/Montserrat-Medium.ttf');
|
|
4
4
|
}
|
|
5
|
+
@font-face {
|
|
6
|
+
font-family: 'Roboto-Light';
|
|
7
|
+
src: url('../../assets/fonts/Roboto-Light.ttf');
|
|
8
|
+
}
|
|
5
9
|
|
|
6
10
|
/* ######## */
|
|
7
11
|
/* HEADER */
|
|
@@ -13,6 +17,12 @@ header {
|
|
|
13
17
|
height: 64px;
|
|
14
18
|
padding: 0 24px;
|
|
15
19
|
}
|
|
20
|
+
.ts-header-left-side {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex: 1;
|
|
23
|
+
align-items: center;
|
|
24
|
+
height: 100%;
|
|
25
|
+
}
|
|
16
26
|
.header-actions {
|
|
17
27
|
display: flex;
|
|
18
28
|
}
|
|
@@ -20,30 +30,12 @@ header {
|
|
|
20
30
|
margin-left: 12px;
|
|
21
31
|
}
|
|
22
32
|
|
|
23
|
-
/*
|
|
24
|
-
/* HEADER
|
|
25
|
-
.header-
|
|
33
|
+
/* ################ */
|
|
34
|
+
/* HEADER TECHOFF */
|
|
35
|
+
.ts-header-techoff {
|
|
26
36
|
display: flex;
|
|
27
|
-
|
|
28
|
-
height: 30px;
|
|
29
|
-
}
|
|
30
|
-
.header-title {
|
|
31
|
-
font-family: 'Montserrat';
|
|
32
|
-
font-size: 25px;
|
|
33
|
-
line-height: 19px;
|
|
34
|
-
text-transform: uppercase;
|
|
35
|
-
}
|
|
36
|
-
.header-by {
|
|
37
|
-
margin-left: 15px;
|
|
38
|
-
font-family: 'Montserrat';
|
|
39
|
-
font-size: 12px;
|
|
40
|
-
line-height: 10px;
|
|
41
|
-
text-transform: uppercase;
|
|
42
|
-
}
|
|
43
|
-
.header-techoff {
|
|
44
|
-
width: 64px;
|
|
37
|
+
height: 18px;
|
|
45
38
|
margin-left: 4px;
|
|
46
|
-
margin-bottom: -2px;
|
|
47
39
|
}
|
|
48
40
|
|
|
49
41
|
/* ################ */
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Children, PropsWithChildren } from 'react';
|
|
3
|
+
import { icons } from '../../components/Icon/icons';
|
|
3
4
|
import { isSuiteElement } from '../../utils/validator.utils';
|
|
5
|
+
import { HeaderProps } from './Header.types';
|
|
4
6
|
import './Header.css';
|
|
5
7
|
|
|
6
|
-
export const Header = (
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
export const Header = (props: HeaderProps & PropsWithChildren) => {
|
|
9
|
+
const actionsElement = Children.toArray(props.children).find(c => isSuiteElement(c, 'HeaderActions'));
|
|
10
|
+
|
|
11
|
+
console.log(props);
|
|
9
12
|
|
|
10
13
|
// #########
|
|
11
14
|
// Rendering
|
|
12
15
|
return (
|
|
13
16
|
<header>
|
|
14
|
-
<div>
|
|
17
|
+
<div className="ts-header-left-side">
|
|
18
|
+
<div className="ts-header-techoff" dangerouslySetInnerHTML={{ __html: icons[`header-${props.appName}`] }} />
|
|
19
|
+
</div>
|
|
15
20
|
<div>{actionsElement}</div>
|
|
16
21
|
</header>
|
|
17
22
|
);
|
|
@@ -2,12 +2,19 @@ import React from 'react';
|
|
|
2
2
|
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
3
|
import { Header } from '../Header';
|
|
4
4
|
import { HeaderActions } from '../HeaderActions';
|
|
5
|
-
import { HeaderTitle } from '../HeaderTitle';
|
|
6
5
|
import { HeaderProfile } from '../HeaderProfile';
|
|
7
6
|
import { Button } from '../../../components/Button/Button';
|
|
8
7
|
|
|
9
8
|
<Meta title="Layouts/Header" />
|
|
10
9
|
|
|
10
|
+
export const headerArgTypes = {
|
|
11
|
+
appName: {
|
|
12
|
+
control: 'select',
|
|
13
|
+
options: ['bikestudio', 'nsc-helmet', 'opticost', 'repairability'],
|
|
14
|
+
description: 'Icon of the button.',
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
|
|
11
18
|
# Header
|
|
12
19
|
|
|
13
20
|
The header will allow users to quickly find the information they need at a glance but also make some actions. The header is therefore central in the design of each application: it contains all the essential information, obvious shortcuts, which will help boost Deacthlon Techoff brand image.
|
|
@@ -18,16 +25,17 @@ The header will allow users to quickly find the information they need at a glanc
|
|
|
18
25
|
<Story
|
|
19
26
|
name="Overview"
|
|
20
27
|
args={{
|
|
28
|
+
appName: 'repairability',
|
|
21
29
|
children: [
|
|
22
|
-
<HeaderTitle>Techoff Suite UI</HeaderTitle>,
|
|
23
30
|
<HeaderActions>
|
|
24
31
|
<Button icon="plus" size="lg" variant="shadow" rounded onClick={() => {}} />
|
|
25
32
|
<HeaderProfile firstname="John" lastname="Doe" />
|
|
26
33
|
</HeaderActions>,
|
|
27
34
|
],
|
|
28
35
|
}}
|
|
36
|
+
argTypes={headerArgTypes}
|
|
29
37
|
>
|
|
30
|
-
{args => <Header>{args.children}</Header>}
|
|
38
|
+
{args => <Header {...args}>{args.children}</Header>}
|
|
31
39
|
</Story>
|
|
32
40
|
</Canvas>
|
|
33
41
|
|
|
Binary file
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
.button {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
border: none;
|
|
6
|
-
border-radius: 6px;
|
|
7
|
-
font-size: 14px;
|
|
8
|
-
line-height: 16px;
|
|
9
|
-
font-weight: 500;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
transition: all ease 0.3s;
|
|
12
|
-
}
|
|
13
|
-
.button > div {
|
|
14
|
-
margin-right: 8px;
|
|
15
|
-
}
|
|
16
|
-
.button > div:last-child {
|
|
17
|
-
margin-right: 0px;
|
|
18
|
-
}
|
|
19
|
-
/* ####### */
|
|
20
|
-
/* BLOCK */
|
|
21
|
-
.button--block {
|
|
22
|
-
width: 100%;
|
|
23
|
-
}
|
|
24
|
-
/* ####### */
|
|
25
|
-
/* SIZES */
|
|
26
|
-
.button--md {
|
|
27
|
-
height: 32px;
|
|
28
|
-
padding: 0 14px;
|
|
29
|
-
}
|
|
30
|
-
.button--md.button--icon-only {
|
|
31
|
-
width: 32px;
|
|
32
|
-
padding: 0;
|
|
33
|
-
}
|
|
34
|
-
.button--lg {
|
|
35
|
-
height: 40px;
|
|
36
|
-
padding: 0 16px;
|
|
37
|
-
}
|
|
38
|
-
.button--lg.button--icon-only {
|
|
39
|
-
width: 40px;
|
|
40
|
-
padding: 0;
|
|
41
|
-
}
|
|
42
|
-
/* ########## */
|
|
43
|
-
/* VARIANTS */
|
|
44
|
-
.button--primary {
|
|
45
|
-
background: #007dbc;
|
|
46
|
-
color: #ffffff;
|
|
47
|
-
}
|
|
48
|
-
.button--primary:hover {
|
|
49
|
-
background: #00689d;
|
|
50
|
-
}
|
|
51
|
-
.button--secondary {
|
|
52
|
-
background: #e7f3f9;
|
|
53
|
-
color: #007dbc;
|
|
54
|
-
}
|
|
55
|
-
.button--secondary:hover {
|
|
56
|
-
background: #bedeef;
|
|
57
|
-
}
|
|
58
|
-
.button--success {
|
|
59
|
-
background: #02be8a;
|
|
60
|
-
color: #ffffff;
|
|
61
|
-
}
|
|
62
|
-
.button--success:hover {
|
|
63
|
-
background: #029e73;
|
|
64
|
-
color: #ffffff;
|
|
65
|
-
}
|
|
66
|
-
.button--ghost {
|
|
67
|
-
background: #ffffff;
|
|
68
|
-
color: #1d1d1b;
|
|
69
|
-
font-weight: 400;
|
|
70
|
-
}
|
|
71
|
-
.button--ghost:hover {
|
|
72
|
-
background: #e7f3f9;
|
|
73
|
-
}
|
|
74
|
-
.button--shadow {
|
|
75
|
-
box-shadow: 0px 12px 12px 0px #00537d1a;
|
|
76
|
-
background: #ffffff;
|
|
77
|
-
color: #4e5d6b;
|
|
78
|
-
}
|
|
79
|
-
/* ######### */
|
|
80
|
-
/* ROUNDED */
|
|
81
|
-
.button--rounded {
|
|
82
|
-
border-radius: 9999px;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/* ######### */
|
|
86
|
-
/* GLOBALS */
|
|
87
|
-
* {
|
|
88
|
-
font-size: 14px;
|
|
89
|
-
outline: none;
|
|
90
|
-
box-sizing: border-box;
|
|
91
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
92
|
-
'Helvetica Neue', sans-serif;
|
|
93
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { ButtonProps } from './Button.types';
|
|
4
|
-
import './Button.css';
|
|
5
|
-
export declare const Button: ({ children, icon, iconDirection, size, variant, block, rounded, onClick, }: PropsWithChildren<ButtonProps>) => React.JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Icon } from '../Icon/Icon';
|
|
3
|
-
import './Button.css';
|
|
4
|
-
export const Button = ({ children, icon, iconDirection = 'left', size = 'md', variant = 'primary', block, rounded, onClick, }) => {
|
|
5
|
-
// #########
|
|
6
|
-
// Rendering
|
|
7
|
-
return (React.createElement("button", { className: `
|
|
8
|
-
button button--${size} button--${variant}
|
|
9
|
-
${block ? 'button--block' : ''}
|
|
10
|
-
${rounded ? 'button--rounded' : ''}
|
|
11
|
-
${icon && !children ? 'button--icon-only' : ''}
|
|
12
|
-
`, onClick: onClick },
|
|
13
|
-
icon && iconDirection === 'left' && React.createElement(Icon, { name: icon, size: "16" }),
|
|
14
|
-
children && React.createElement("div", null, children),
|
|
15
|
-
icon && iconDirection === 'right' && React.createElement(Icon, { name: icon, size: "16" })));
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,QAAQ,EACR,IAAI,EACJ,aAAa,GAAG,MAAM,EACtB,IAAI,GAAG,IAAI,EACX,OAAO,GAAG,SAAS,EACnB,KAAK,EACL,OAAO,EACP,OAAO,GACwB,EAAE,EAAE;IACnC,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,gCACE,SAAS,EAAE;yBACQ,IAAI,YAAY,OAAO;UACtC,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE;UAC5B,OAAO,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE;UAChC,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE;OAC/C,EACD,OAAO,EAAE,OAAO;QAEf,IAAI,IAAI,aAAa,KAAK,MAAM,IAAI,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,GAAG;QAClE,QAAQ,IAAI,iCAAM,QAAQ,CAAO;QACjC,IAAI,IAAI,aAAa,KAAK,OAAO,IAAI,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,GAAG,CAC7D,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.types.js","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { Button } from '../Button';
|
|
4
|
-
import { icons } from '../../Icon/icons';
|
|
5
|
-
|
|
6
|
-
<Meta title="Components/Button" />
|
|
7
|
-
|
|
8
|
-
export const buttonArgTypes = {
|
|
9
|
-
children: {
|
|
10
|
-
control: 'text',
|
|
11
|
-
description: 'Child of the button.',
|
|
12
|
-
},
|
|
13
|
-
icon: {
|
|
14
|
-
control: 'select',
|
|
15
|
-
options: Object.keys(icons),
|
|
16
|
-
description: 'Icon of the button.',
|
|
17
|
-
},
|
|
18
|
-
iconDirection: {
|
|
19
|
-
control: 'inline-radio',
|
|
20
|
-
options: ['left', 'right'],
|
|
21
|
-
description: 'Define the direction of the icon.',
|
|
22
|
-
table: { defaultValue: { summary: 'left' } },
|
|
23
|
-
},
|
|
24
|
-
size: {
|
|
25
|
-
control: 'inline-radio',
|
|
26
|
-
options: ['md', 'lg'],
|
|
27
|
-
description: 'Define the size of the button.',
|
|
28
|
-
table: { defaultValue: { summary: 'md' } },
|
|
29
|
-
},
|
|
30
|
-
variant: {
|
|
31
|
-
control: 'inline-radio',
|
|
32
|
-
options: ['primary', 'secondary', 'success', 'ghost', 'shadow'],
|
|
33
|
-
description: "Variant of the button defining it's color and outline.",
|
|
34
|
-
table: { defaultValue: { summary: 'primary' } },
|
|
35
|
-
},
|
|
36
|
-
block: {
|
|
37
|
-
control: 'boolean',
|
|
38
|
-
description: 'Define if the button is full width',
|
|
39
|
-
table: { defaultValue: { summary: 'false' } },
|
|
40
|
-
},
|
|
41
|
-
rounded: {
|
|
42
|
-
control: 'boolean',
|
|
43
|
-
description: 'Define if the button has its corner full rounded',
|
|
44
|
-
table: { defaultValue: { summary: 'false' } },
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
# Button
|
|
49
|
-
|
|
50
|
-
Buttons express what action will occur when the users clicks. Buttons are used to initialize an action, either in the background or foreground of an experience.
|
|
51
|
-
|
|
52
|
-
## Overview
|
|
53
|
-
|
|
54
|
-
<Canvas>
|
|
55
|
-
<Story
|
|
56
|
-
name="Overview"
|
|
57
|
-
args={{
|
|
58
|
-
children: 'Button',
|
|
59
|
-
iconDirection: 'left',
|
|
60
|
-
size: 'md',
|
|
61
|
-
variant: 'primary',
|
|
62
|
-
block: false,
|
|
63
|
-
rounded: false,
|
|
64
|
-
onClick: () => {},
|
|
65
|
-
}}
|
|
66
|
-
argTypes={buttonArgTypes}
|
|
67
|
-
>
|
|
68
|
-
{args => <Button {...args}>{args.children}</Button>}
|
|
69
|
-
</Story>
|
|
70
|
-
</Canvas>
|
|
71
|
-
|
|
72
|
-
## Props
|
|
73
|
-
|
|
74
|
-
<ArgsTable story="Overview" of={Button} />
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
.checkbox {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
}
|
|
6
|
-
/* ##### */
|
|
7
|
-
/* BOX */
|
|
8
|
-
.checkbox:hover .checkbox-box {
|
|
9
|
-
background: #e7f3f9;
|
|
10
|
-
}
|
|
11
|
-
.checkbox-box {
|
|
12
|
-
position: relative;
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
width: 24px;
|
|
17
|
-
height: 24px;
|
|
18
|
-
border-radius: 6px;
|
|
19
|
-
color: #007dbc;
|
|
20
|
-
transition: all ease 0.3s;
|
|
21
|
-
}
|
|
22
|
-
.checkbox-box::before {
|
|
23
|
-
content: '';
|
|
24
|
-
position: absolute;
|
|
25
|
-
width: 16px;
|
|
26
|
-
height: 16px;
|
|
27
|
-
border-radius: 6px;
|
|
28
|
-
background: #ffffff;
|
|
29
|
-
z-index: 10;
|
|
30
|
-
}
|
|
31
|
-
.checkbox-box .icon {
|
|
32
|
-
z-index: 20;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* ################# */
|
|
36
|
-
/* LABEL / CAPTION */
|
|
37
|
-
.checkbox-container {
|
|
38
|
-
width: 100%;
|
|
39
|
-
margin-left: 4px;
|
|
40
|
-
padding: 4px 8px;
|
|
41
|
-
border-radius: 6px;
|
|
42
|
-
}
|
|
43
|
-
.checkbox-container--with-caption .checkbox-label {
|
|
44
|
-
color: #007dbc;
|
|
45
|
-
font-weight: 700;
|
|
46
|
-
}
|
|
47
|
-
.checkbox-caption {
|
|
48
|
-
color: #404040;
|
|
49
|
-
font-size: 12px;
|
|
50
|
-
font-style: italic;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* ######### */
|
|
54
|
-
/* GLOBALS */
|
|
55
|
-
* {
|
|
56
|
-
font-size: 14px;
|
|
57
|
-
outline: none;
|
|
58
|
-
box-sizing: border-box;
|
|
59
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
60
|
-
'Helvetica Neue', sans-serif;
|
|
61
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { CheckboxProps } from './Checkbox.types';
|
|
4
|
-
import './Checkbox.css';
|
|
5
|
-
export declare const CheckboxLabel: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
6
|
-
export declare const CheckboxCaption: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
7
|
-
export declare const Checkbox: ({ children, checked, onChange }: PropsWithChildren<CheckboxProps>) => React.JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Children } from 'react';
|
|
3
|
-
import { isSuiteElement } from '../../utils/validator.utils';
|
|
4
|
-
import { Icon } from '../Icon/Icon';
|
|
5
|
-
import './Checkbox.css';
|
|
6
|
-
export const CheckboxLabel = ({ children }) => React.createElement("div", { className: "checkbox-label" }, children);
|
|
7
|
-
export const CheckboxCaption = ({ children }) => React.createElement("div", { className: "checkbox-caption" }, children);
|
|
8
|
-
export const Checkbox = ({ children, checked, onChange }) => {
|
|
9
|
-
const labelElement = Children.toArray(children).find(c => isSuiteElement(c, 'CheckboxLabel'));
|
|
10
|
-
const captionElement = Children.toArray(children).find(c => isSuiteElement(c, 'CheckboxCaption'));
|
|
11
|
-
// #########
|
|
12
|
-
// Rendering
|
|
13
|
-
return (React.createElement("div", { className: "checkbox", onClick: () => onChange(!checked) },
|
|
14
|
-
React.createElement("div", { className: "checkbox-box" },
|
|
15
|
-
checked && React.createElement(Icon, { name: "square-check-filled" }),
|
|
16
|
-
!checked && React.createElement(Icon, { name: "square" })),
|
|
17
|
-
React.createElement("div", { className: `checkbox-container ${captionElement ? 'checkbox-container--with-caption' : ''}` },
|
|
18
|
-
labelElement,
|
|
19
|
-
captionElement)));
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAqB,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAqB,EAAE,EAAE,CAAC,6BAAK,SAAS,EAAC,gBAAgB,IAAE,QAAQ,CAAO,CAAC;AACnH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,QAAQ,EAAqB,EAAE,EAAE,CAAC,6BAAK,SAAS,EAAC,kBAAkB,IAAE,QAAQ,CAAO,CAAC;AAEvH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAoC,EAAE,EAAE;IAC5F,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC;IAC9F,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAElG,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC;QACzD,6BAAK,SAAS,EAAC,cAAc;YAC1B,OAAO,IAAI,oBAAC,IAAI,IAAC,IAAI,EAAC,qBAAqB,GAAG;YAC9C,CAAC,OAAO,IAAI,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,GAAG,CAC/B;QAEN,6BAAK,SAAS,EAAE,sBAAsB,cAAc,CAAC,CAAC,CAAC,kCAAkC,CAAC,CAAC,CAAC,EAAE,EAAE;YAC7F,YAAY;YACZ,cAAc,CACX,CACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.types.js","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { Checkbox, CheckboxLabel, CheckboxCaption } from '../Checkbox';
|
|
4
|
-
|
|
5
|
-
<Meta title="Components/Checkbox" />
|
|
6
|
-
|
|
7
|
-
export const checkboxArgTypes = {
|
|
8
|
-
checked: {
|
|
9
|
-
control: 'boolean',
|
|
10
|
-
description: 'State of the checkbox.',
|
|
11
|
-
table: { defaultValue: { summary: 'false' } },
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
# Checkbox
|
|
16
|
-
|
|
17
|
-
Checkboxes are applied when users can select all, several, or none of the options from a given list.
|
|
18
|
-
|
|
19
|
-
## Overview
|
|
20
|
-
|
|
21
|
-
<Canvas>
|
|
22
|
-
<Story
|
|
23
|
-
name="Overview"
|
|
24
|
-
args={{
|
|
25
|
-
children: [
|
|
26
|
-
<CheckboxLabel>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CheckboxLabel>,
|
|
27
|
-
<CheckboxCaption>
|
|
28
|
-
Auctor nisl justo, sed posuere est dignissim nec. Integer ultricies, metus ac imperdiet ullamcorper, est justo
|
|
29
|
-
viverra nisl, in posuere dui urna eget quam.
|
|
30
|
-
</CheckboxCaption>,
|
|
31
|
-
],
|
|
32
|
-
checked: false,
|
|
33
|
-
onChange: () => {},
|
|
34
|
-
}}
|
|
35
|
-
argTypes={checkboxArgTypes}
|
|
36
|
-
>
|
|
37
|
-
{args => <Checkbox {...args}>{args.children}</Checkbox>}
|
|
38
|
-
</Story>
|
|
39
|
-
</Canvas>
|
|
40
|
-
|
|
41
|
-
## Props
|
|
42
|
-
|
|
43
|
-
<ArgsTable story="Overview" of={Checkbox} />
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
.icon--16 {
|
|
2
|
-
width: 16px;
|
|
3
|
-
height: 16px;
|
|
4
|
-
}
|
|
5
|
-
.icon--20 {
|
|
6
|
-
width: 20px;
|
|
7
|
-
height: 20px;
|
|
8
|
-
}
|
|
9
|
-
.icon--24 {
|
|
10
|
-
width: 24px;
|
|
11
|
-
height: 24px;
|
|
12
|
-
}
|
|
13
|
-
.icon svg {
|
|
14
|
-
width: 100%;
|
|
15
|
-
height: 100%;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* ######### */
|
|
19
|
-
/* GLOBALS */
|
|
20
|
-
* {
|
|
21
|
-
font-size: 14px;
|
|
22
|
-
outline: none;
|
|
23
|
-
box-sizing: border-box;
|
|
24
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
25
|
-
'Helvetica Neue', sans-serif;
|
|
26
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { icons } from './icons';
|
|
3
|
-
import './Icon.css';
|
|
4
|
-
export const Icon = ({ name, size = '20' }) => {
|
|
5
|
-
const icon = icons[name];
|
|
6
|
-
// #########
|
|
7
|
-
// Rendering
|
|
8
|
-
if (!icon)
|
|
9
|
-
return React.createElement(React.Fragment, null);
|
|
10
|
-
return React.createElement("div", { className: `icon icon--${size}`, dangerouslySetInnerHTML: { __html: icon } });
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=Icon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,YAAY,CAAC;AAEpB,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,EAAa,EAAE,EAAE;IACvD,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;IAEzB,YAAY;IACZ,YAAY;IACZ,IAAI,CAAC,IAAI;QAAE,OAAO,yCAAK,CAAC;IACxB,OAAO,6BAAK,SAAS,EAAE,cAAc,IAAI,EAAE,EAAE,uBAAuB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAI,CAAC;AAC7F,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.types.js","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":""}
|