@dktunited-techoff/techoff-suite-ui 1.1.0 → 1.3.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/{lib/components/Button/Button.css → src/components/TsButton/TsButton.css} +18 -18
- package/src/components/TsButton/TsButton.tsx +34 -0
- package/src/components/{Button/Button.types.ts → TsButton/TsButton.types.ts} +1 -1
- package/{esm/components/Button/__stories__/Button.stories.mdx → src/components/TsButton/__stories__/TsButton.stories.mdx} +4 -4
- package/{esm/components/Icon/Icon.css → src/components/TsIcon/TsIcon.css} +4 -4
- package/src/components/TsIcon/TsIcon.tsx +13 -0
- package/src/components/TsIcon/TsIcon.types.ts +1 -0
- package/{lib/components/Icon/__stories__/Icon.stories.mdx → src/components/TsIcon/__stories__/TsIcon.stories.mdx} +4 -4
- package/{lib/components/Loader/Loader.css → src/components/TsLoader/TsLoader.css} +5 -5
- package/src/components/TsLoader/TsLoader.tsx +7 -0
- package/src/components/TsLoader/TsLoader.types.ts +1 -0
- package/{lib/components/Loader/__stories__/Loader.stories.mdx → src/components/TsLoader/__stories__/TsLoader.stories.mdx} +3 -3
- package/src/index.ts +6 -11
- package/{esm/layouts/Header/Header.css → src/layouts/TsHeader/TsHeader.css} +25 -25
- package/src/layouts/TsHeader/TsHeader.tsx +20 -0
- package/src/layouts/{Header/Header.types.ts → TsHeader/TsHeader.types.ts} +4 -4
- package/src/layouts/TsHeader/TsHeaderProfile.tsx +56 -0
- package/src/layouts/{Header/HeaderSearch.tsx → TsHeader/TsHeaderSearch.tsx} +15 -15
- package/src/layouts/{Header/__stories__/Header.stories.mdx → TsHeader/__stories__/TsHeader.stories.mdx} +12 -12
- package/src/layouts/{Navigation/Navigation.css → TsNavigation/TsNavigation.css} +16 -16
- package/src/layouts/TsNavigation/TsNavigation.tsx +54 -0
- package/src/layouts/TsNavigation/TsNavigation.types.ts +4 -0
- package/src/layouts/TsNavigation/__stories__/TsNavigation.stories.mdx +51 -0
- 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/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.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/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/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.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.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/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.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/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/Button/Button.css +0 -91
- package/src/components/Button/Button.tsx +0 -34
- package/src/components/Button/__stories__/Button.stories.mdx +0 -74
- 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/Icon/Icon.css +0 -26
- package/src/components/Icon/Icon.tsx +0 -13
- package/src/components/Icon/Icon.types.ts +0 -1
- package/src/components/Icon/__stories__/Icon.stories.mdx +0 -89
- package/src/components/Icon/icons/add-circle.svg +0 -1
- package/src/components/Icon/icons/add.svg +0 -1
- package/src/components/Icon/icons/alert-circle-filled.svg +0 -1
- package/src/components/Icon/icons/alert-circle.svg +0 -1
- package/src/components/Icon/icons/alert-triangle-filled.svg +0 -1
- package/src/components/Icon/icons/alert-triangle.svg +0 -1
- package/src/components/Icon/icons/arrow-diagonal-collapse.svg +0 -1
- package/src/components/Icon/icons/arrow-diagonal-expand.svg +0 -1
- package/src/components/Icon/icons/arrow-down.svg +0 -1
- package/src/components/Icon/icons/arrow-go-back.svg +0 -1
- package/src/components/Icon/icons/arrow-left-right.svg +0 -1
- package/src/components/Icon/icons/arrow-left.svg +0 -1
- package/src/components/Icon/icons/arrow-right.svg +0 -1
- package/src/components/Icon/icons/arrow-up-down.svg +0 -1
- package/src/components/Icon/icons/arrow-up.svg +0 -1
- package/src/components/Icon/icons/award.svg +0 -1
- package/src/components/Icon/icons/check-circle-filled.svg +0 -1
- package/src/components/Icon/icons/check-circle-timer.svg +0 -7
- package/src/components/Icon/icons/check-circle.svg +0 -1
- package/src/components/Icon/icons/check-square-filled.svg +0 -1
- package/src/components/Icon/icons/check-square.svg +0 -1
- package/src/components/Icon/icons/check.svg +0 -1
- package/src/components/Icon/icons/chevron-down.svg +0 -1
- package/src/components/Icon/icons/chevron-left.svg +0 -1
- package/src/components/Icon/icons/chevron-right.svg +0 -1
- package/src/components/Icon/icons/chevron-up.svg +0 -1
- package/src/components/Icon/icons/circle.svg +0 -1
- package/src/components/Icon/icons/close-circle.svg +0 -1
- package/src/components/Icon/icons/close.svg +0 -1
- package/src/components/Icon/icons/currency-euro.svg +0 -1
- package/src/components/Icon/icons/download.svg +0 -1
- package/src/components/Icon/icons/edit.svg +0 -1
- package/src/components/Icon/icons/external-link.svg +0 -1
- package/src/components/Icon/icons/filter-off.svg +0 -1
- package/src/components/Icon/icons/filter.svg +0 -1
- package/src/components/Icon/icons/flashlight-off.svg +0 -1
- package/src/components/Icon/icons/flashlight.svg +0 -1
- package/src/components/Icon/icons/header-bikestudio.svg +0 -32
- package/src/components/Icon/icons/header-nsc-helmet.svg +0 -32
- package/src/components/Icon/icons/header-opticost.svg +0 -32
- package/src/components/Icon/icons/header-repairability.svg +0 -32
- package/src/components/Icon/icons/heart-filled.svg +0 -1
- package/src/components/Icon/icons/heart.svg +0 -1
- package/src/components/Icon/icons/history.svg +0 -1
- package/src/components/Icon/icons/home.svg +0 -1
- package/src/components/Icon/icons/index.ts +0 -58
- package/src/components/Icon/icons/link.svg +0 -1
- package/src/components/Icon/icons/list-settings.svg +0 -1
- package/src/components/Icon/icons/lock.svg +0 -1
- package/src/components/Icon/icons/loop-right.svg +0 -1
- package/src/components/Icon/icons/question-circle.svg +0 -1
- package/src/components/Icon/icons/save.svg +0 -1
- package/src/components/Icon/icons/search.svg +0 -1
- package/src/components/Icon/icons/seedling-circle.svg +0 -12
- package/src/components/Icon/icons/square.svg +0 -1
- package/src/components/Icon/icons/tools.svg +0 -1
- package/src/components/Icon/icons/user.svg +0 -1
- 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/Loader/Loader.css +0 -42
- package/src/components/Loader/Loader.tsx +0 -7
- package/src/components/Loader/Loader.types.ts +0 -1
- package/src/components/Loader/__stories__/Loader.stories.mdx +0 -30
- 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
- package/src/layouts/Header/Header.css +0 -186
- package/src/layouts/Header/Header.tsx +0 -20
- package/src/layouts/Header/HeaderProfile.tsx +0 -56
- package/src/layouts/Navigation/Navigation.tsx +0 -54
- package/src/layouts/Navigation/Navigation.types.ts +0 -4
- package/src/layouts/Navigation/__stories__/Navigation.stories.mdx +0 -51
- /package/{esm/components/Icon → src/components/TsIcon}/icons/add-circle.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/add.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/alert-circle-filled.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/alert-circle.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/alert-triangle-filled.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/alert-triangle.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-diagonal-collapse.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-diagonal-expand.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-down.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-go-back.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-left-right.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-left.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-right.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-up-down.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/arrow-up.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/award.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/check-circle-filled.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/check-circle-timer.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/check-circle.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/check-square-filled.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/check-square.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/check.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/chevron-down.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/chevron-left.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/chevron-right.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/chevron-up.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/circle.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/close-circle.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/close.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/currency-euro.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/download.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/edit.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/external-link.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/filter-off.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/filter.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/flashlight-off.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/flashlight.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/header-bikestudio.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/header-nsc-helmet.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/header-opticost.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/header-repairability.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/heart-filled.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/heart.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/history.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/home.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/index.ts +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/link.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/list-settings.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/lock.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/loop-right.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/question-circle.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/save.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/search.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/seedling-circle.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/square.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/tools.svg +0 -0
- /package/{esm/components/Icon → src/components/TsIcon}/icons/user.svg +0 -0
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { Select } from '../Select';
|
|
4
|
-
|
|
5
|
-
<Meta title="Components/Select" />
|
|
6
|
-
|
|
7
|
-
export const selectArgTypes = {
|
|
8
|
-
label: {
|
|
9
|
-
control: 'text',
|
|
10
|
-
description: 'Label of the select.',
|
|
11
|
-
},
|
|
12
|
-
value: {
|
|
13
|
-
control: 'text',
|
|
14
|
-
description: 'Value of the select.',
|
|
15
|
-
},
|
|
16
|
-
onChange: {
|
|
17
|
-
control: 'function',
|
|
18
|
-
description: 'The handler called when the value of the select changes.',
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
# Loader
|
|
23
|
-
|
|
24
|
-
Loader express to user that an action is occuring.
|
|
25
|
-
|
|
26
|
-
## Overview
|
|
27
|
-
|
|
28
|
-
<Canvas>
|
|
29
|
-
<Story
|
|
30
|
-
name="Overview"
|
|
31
|
-
args={{
|
|
32
|
-
label: 'Label',
|
|
33
|
-
options: [<option value="orange">Orange</option>, <option value="apple">Apple</option>],
|
|
34
|
-
onChange: () => {},
|
|
35
|
-
}}
|
|
36
|
-
argTypes={selectArgTypes}
|
|
37
|
-
>
|
|
38
|
-
{args => <Select {...args} />}
|
|
39
|
-
</Story>
|
|
40
|
-
</Canvas>
|
|
41
|
-
|
|
42
|
-
## Props
|
|
43
|
-
|
|
44
|
-
<ArgsTable story="Overview" of={Select} />
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useClickOutside = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const useClickOutside = (callback) => {
|
|
6
|
-
const ref = (0, react_1.useRef)(null);
|
|
7
|
-
const handleClickOutside = (event) => {
|
|
8
|
-
if (ref.current && !ref.current.contains(event.target))
|
|
9
|
-
callback();
|
|
10
|
-
};
|
|
11
|
-
(0, react_1.useEffect)(() => {
|
|
12
|
-
document.addEventListener('click', handleClickOutside);
|
|
13
|
-
return () => document.removeEventListener('click', handleClickOutside);
|
|
14
|
-
}, []);
|
|
15
|
-
return ref;
|
|
16
|
-
};
|
|
17
|
-
exports.useClickOutside = useClickOutside;
|
|
18
|
-
//# sourceMappingURL=use-click-outside.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-click-outside.js","sourceRoot":"","sources":["../../src/hooks/use-click-outside.tsx"],"names":[],"mappings":";;;AAAA,iCAA0C;AAEnC,MAAM,eAAe,GAAG,CAAC,QAAoB,EAAE,EAAE;IACtD,MAAM,GAAG,GAAG,IAAA,cAAM,EAAiB,IAAI,CAAC,CAAC;IAEzC,MAAM,kBAAkB,GAAG,CAAC,KAAiB,EAAE,EAAE;QAC/C,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAc,CAAC;YAAE,QAAQ,EAAE,CAAC;IAC7E,CAAC,CAAC;IAEF,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC;QACvD,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC;IACzE,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAbW,QAAA,eAAe,mBAa1B"}
|
package/lib/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './components/Button/Button';
|
|
2
|
-
export * from './components/Checkbox/Checkbox';
|
|
3
|
-
export * from './components/Icon/Icon';
|
|
4
|
-
export * from './components/Inputs/BooleanInput/BooleanInput';
|
|
5
|
-
export * from './components/Inputs/Input/Input';
|
|
6
|
-
export * from './components/Loader/Loader';
|
|
7
|
-
export * from './components/Select/Select';
|
|
8
|
-
export * from './layouts/Header/Header';
|
|
9
|
-
export * from './layouts/Header/HeaderProfile';
|
|
10
|
-
export * from './layouts/Header/HeaderSearch';
|
|
11
|
-
export * from './layouts/Navigation/Navigation';
|
package/lib/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./components/Button/Button"), exports);
|
|
18
|
-
__exportStar(require("./components/Checkbox/Checkbox"), exports);
|
|
19
|
-
__exportStar(require("./components/Icon/Icon"), exports);
|
|
20
|
-
__exportStar(require("./components/Inputs/BooleanInput/BooleanInput"), exports);
|
|
21
|
-
__exportStar(require("./components/Inputs/Input/Input"), exports);
|
|
22
|
-
__exportStar(require("./components/Loader/Loader"), exports);
|
|
23
|
-
__exportStar(require("./components/Select/Select"), exports);
|
|
24
|
-
__exportStar(require("./layouts/Header/Header"), exports);
|
|
25
|
-
__exportStar(require("./layouts/Header/HeaderProfile"), exports);
|
|
26
|
-
__exportStar(require("./layouts/Header/HeaderSearch"), exports);
|
|
27
|
-
__exportStar(require("./layouts/Navigation/Navigation"), exports);
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,gFAA8D;AAC9D,kEAAgD;AAChD,6DAA2C;AAC3C,6DAA2C;AAC3C,0DAAwC;AACxC,iEAA+C;AAC/C,gEAA8C;AAC9C,kEAAgD"}
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: 'Montserrat-Medium';
|
|
3
|
-
src: url('../../assets/fonts/Montserrat-Medium.ttf');
|
|
4
|
-
}
|
|
5
|
-
@font-face {
|
|
6
|
-
font-family: 'Roboto-Light';
|
|
7
|
-
src: url('../../assets/fonts/Roboto-Light.ttf');
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/* ######## */
|
|
11
|
-
/* HEADER */
|
|
12
|
-
header {
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: space-between;
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 64px;
|
|
18
|
-
padding: 0 24px;
|
|
19
|
-
}
|
|
20
|
-
.header-aside {
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
flex: 1;
|
|
24
|
-
height: 100%;
|
|
25
|
-
}
|
|
26
|
-
.header-right-side {
|
|
27
|
-
justify-content: flex-end;
|
|
28
|
-
}
|
|
29
|
-
.header-search-bar {
|
|
30
|
-
display: flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
width: 400px;
|
|
33
|
-
height: 100%;
|
|
34
|
-
}
|
|
35
|
-
.header-actions {
|
|
36
|
-
display: flex;
|
|
37
|
-
}
|
|
38
|
-
.header-actions > * {
|
|
39
|
-
margin-left: 12px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/* ################ */
|
|
43
|
-
/* HEADER TECHOFF */
|
|
44
|
-
.header-techoff {
|
|
45
|
-
display: flex;
|
|
46
|
-
height: 18px;
|
|
47
|
-
margin-left: 4px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/* ################ */
|
|
51
|
-
/* HEADER PROFILE */
|
|
52
|
-
.header-profile-container {
|
|
53
|
-
position: relative;
|
|
54
|
-
}
|
|
55
|
-
.header-profile-dropdown {
|
|
56
|
-
display: flex;
|
|
57
|
-
height: 40px;
|
|
58
|
-
border-radius: 9999px;
|
|
59
|
-
box-shadow: 0px 12px 12px 0px #00537d1a;
|
|
60
|
-
color: #4e5d6b;
|
|
61
|
-
background-color: #ffffff;
|
|
62
|
-
cursor: pointer;
|
|
63
|
-
}
|
|
64
|
-
.header-profile-img-container {
|
|
65
|
-
width: 40px;
|
|
66
|
-
height: 40px;
|
|
67
|
-
padding: 4px;
|
|
68
|
-
border-radius: 9999px;
|
|
69
|
-
}
|
|
70
|
-
.header-profile-img-icon {
|
|
71
|
-
display: flex;
|
|
72
|
-
align-items: center;
|
|
73
|
-
justify-content: center;
|
|
74
|
-
width: 32px;
|
|
75
|
-
height: 32px;
|
|
76
|
-
border-radius: 9999px;
|
|
77
|
-
background-color: rgb(229, 229, 229);
|
|
78
|
-
}
|
|
79
|
-
.header-profile-name {
|
|
80
|
-
display: flex;
|
|
81
|
-
flex: 1;
|
|
82
|
-
align-items: center;
|
|
83
|
-
padding-left: 4px;
|
|
84
|
-
padding-right: 16px;
|
|
85
|
-
}
|
|
86
|
-
.header-profile-chevron {
|
|
87
|
-
display: flex;
|
|
88
|
-
align-items: center;
|
|
89
|
-
justify-content: center;
|
|
90
|
-
height: 40px;
|
|
91
|
-
padding-right: 14px;
|
|
92
|
-
border-radius: 9999px;
|
|
93
|
-
}
|
|
94
|
-
.header-profile-menu {
|
|
95
|
-
position: absolute;
|
|
96
|
-
right: 0;
|
|
97
|
-
top: 48px;
|
|
98
|
-
width: 288px;
|
|
99
|
-
padding: 4px;
|
|
100
|
-
border-radius: 8px;
|
|
101
|
-
box-shadow: 0px 12px 12px 0px #00537d1a;
|
|
102
|
-
background-color: #ffffff;
|
|
103
|
-
z-index: 10;
|
|
104
|
-
}
|
|
105
|
-
.header-profile-menu-item {
|
|
106
|
-
display: flex;
|
|
107
|
-
align-items: center;
|
|
108
|
-
height: 36px;
|
|
109
|
-
border-radius: 6px;
|
|
110
|
-
cursor: pointer;
|
|
111
|
-
}
|
|
112
|
-
.header-profile-menu-item:hover {
|
|
113
|
-
background-color: #e7f3f9;
|
|
114
|
-
}
|
|
115
|
-
.header-profile-menu-item-icon {
|
|
116
|
-
display: flex;
|
|
117
|
-
align-items: center;
|
|
118
|
-
justify-content: center;
|
|
119
|
-
width: 36px;
|
|
120
|
-
height: 36px;
|
|
121
|
-
}
|
|
122
|
-
.header-profile-menu-item-label {
|
|
123
|
-
flex: 1;
|
|
124
|
-
padding: 0 2px;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/* ############### */
|
|
128
|
-
/* HEADER SEARCH */
|
|
129
|
-
.header-search {
|
|
130
|
-
position: relative;
|
|
131
|
-
width: 100%;
|
|
132
|
-
}
|
|
133
|
-
.header-search-items-container {
|
|
134
|
-
position: absolute;
|
|
135
|
-
top: calc(100% + 4px);
|
|
136
|
-
width: 100%;
|
|
137
|
-
max-height: 200px;
|
|
138
|
-
border-radius: 8px;
|
|
139
|
-
box-shadow: 0px 12px 12px 0px #00537d1a;
|
|
140
|
-
background-color: white;
|
|
141
|
-
overflow-y: auto;
|
|
142
|
-
z-index: 100;
|
|
143
|
-
}
|
|
144
|
-
.header-search-loading {
|
|
145
|
-
display: flex;
|
|
146
|
-
align-items: center;
|
|
147
|
-
justify-content: center;
|
|
148
|
-
height: 40px;
|
|
149
|
-
}
|
|
150
|
-
.header-search-no-items {
|
|
151
|
-
display: flex;
|
|
152
|
-
align-items: center;
|
|
153
|
-
justify-content: center;
|
|
154
|
-
height: 40px;
|
|
155
|
-
color: #8c96a2;
|
|
156
|
-
font-style: italic;
|
|
157
|
-
}
|
|
158
|
-
.header-search-items {
|
|
159
|
-
padding: 8px;
|
|
160
|
-
}
|
|
161
|
-
.header-search-item {
|
|
162
|
-
display: flex;
|
|
163
|
-
align-items: center;
|
|
164
|
-
height: 32px;
|
|
165
|
-
padding: 0 10px;
|
|
166
|
-
border-radius: 4px;
|
|
167
|
-
cursor: pointer;
|
|
168
|
-
}
|
|
169
|
-
.header-search-item:hover {
|
|
170
|
-
background: #e7f3f9;
|
|
171
|
-
}
|
|
172
|
-
.header-search-item--match {
|
|
173
|
-
background: #cce5f2;
|
|
174
|
-
color: #007dbc;
|
|
175
|
-
font-weight: 700;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/* ######### */
|
|
179
|
-
/* GLOBALS */
|
|
180
|
-
* {
|
|
181
|
-
font-size: 14px;
|
|
182
|
-
outline: none;
|
|
183
|
-
box-sizing: border-box;
|
|
184
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
185
|
-
'Helvetica Neue', sans-serif;
|
|
186
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Header = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
const icons_1 = require("../../components/Icon/icons");
|
|
6
|
-
require("./Header.css");
|
|
7
|
-
const Header = ({ actions, appName, search }) => {
|
|
8
|
-
// #########
|
|
9
|
-
// Rendering
|
|
10
|
-
return (React.createElement("header", null,
|
|
11
|
-
React.createElement("div", { className: "header-aside" },
|
|
12
|
-
React.createElement("div", { className: "header-techoff", dangerouslySetInnerHTML: { __html: icons_1.icons[`header-${appName}`] } })),
|
|
13
|
-
search && React.createElement("div", { className: "header-search-bar" }, search),
|
|
14
|
-
React.createElement("div", { className: "header-aside header-right-side" },
|
|
15
|
-
React.createElement("div", { className: "header-actions" }, actions))));
|
|
16
|
-
};
|
|
17
|
-
exports.Header = Header;
|
|
18
|
-
//# sourceMappingURL=Header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/layouts/Header/Header.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,uDAAoD;AAEpD,wBAAsB;AAEf,MAAM,MAAM,GAAG,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAe,EAAE,EAAE;IAClE,YAAY;IACZ,YAAY;IACZ,OAAO,CACL;QACE,6BAAK,SAAS,EAAC,cAAc;YAC3B,6BAAK,SAAS,EAAC,gBAAgB,EAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,aAAK,CAAC,UAAU,OAAO,EAAE,CAAC,EAAE,GAAI,CAC/F;QACL,MAAM,IAAI,6BAAK,SAAS,EAAC,mBAAmB,IAAE,MAAM,CAAO;QAC5D,6BAAK,SAAS,EAAC,gCAAgC;YAC7C,6BAAK,SAAS,EAAC,gBAAgB,IAAE,OAAO,CAAO,CAC3C,CACC,CACV,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,MAAM,UAcjB"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
export type HeaderProps = {
|
|
3
|
-
actions: ReactElement;
|
|
4
|
-
appName: 'bikestudio' | 'nsc-helmet' | 'opticost' | 'repairability';
|
|
5
|
-
search?: ReactElement;
|
|
6
|
-
};
|
|
7
|
-
export type HeaderProfileItemProps = {
|
|
8
|
-
icon: string;
|
|
9
|
-
label: string;
|
|
10
|
-
link: string;
|
|
11
|
-
};
|
|
12
|
-
export type HeaderProfileProps = {
|
|
13
|
-
firstname: string;
|
|
14
|
-
lastname: string;
|
|
15
|
-
};
|
|
16
|
-
export type HeaderSearchProps = {
|
|
17
|
-
getItemLabel: (e: any) => string;
|
|
18
|
-
getItemValue: (e: any) => string;
|
|
19
|
-
loadItems: (search?: string) => Promise<any[]>;
|
|
20
|
-
noDataLabel?: string;
|
|
21
|
-
placeholder?: string;
|
|
22
|
-
onChange: (value: string) => void;
|
|
23
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.types.js","sourceRoot":"","sources":["../../../src/layouts/Header/Header.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { HeaderProfileItemProps, HeaderProfileProps } from './Header.types';
|
|
4
|
-
export declare const HeaderProfileItem: ({ icon, label, link }: HeaderProfileItemProps) => React.JSX.Element;
|
|
5
|
-
export declare const HeaderProfile: ({ children, firstname, lastname }: HeaderProfileProps & PropsWithChildren) => React.JSX.Element;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HeaderProfile = exports.HeaderProfileItem = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const Icon_1 = require("../../components/Icon/Icon");
|
|
7
|
-
const use_click_outside_1 = require("../../hooks/use-click-outside");
|
|
8
|
-
const string_utils_1 = require("../../utils/string.utils");
|
|
9
|
-
const HeaderProfileItem = ({ icon, label, link }) => {
|
|
10
|
-
// ########
|
|
11
|
-
// Handlers
|
|
12
|
-
const handleNavigate = () => window.open(link, '_blank', 'noreferrer');
|
|
13
|
-
// #########
|
|
14
|
-
// Rendering
|
|
15
|
-
return (React.createElement("div", { className: "header-profile-menu-item", onClick: handleNavigate },
|
|
16
|
-
React.createElement("div", { className: "header-profile-menu-item-icon" },
|
|
17
|
-
React.createElement(Icon_1.Icon, { name: icon, size: "16" })),
|
|
18
|
-
React.createElement("div", { className: "header-profile-menu-item-label" }, label),
|
|
19
|
-
React.createElement("div", { className: "header-profile-menu-item-icon" },
|
|
20
|
-
React.createElement(Icon_1.Icon, { name: "external-link", size: "16" }))));
|
|
21
|
-
};
|
|
22
|
-
exports.HeaderProfileItem = HeaderProfileItem;
|
|
23
|
-
const HeaderProfile = ({ children, firstname, lastname }) => {
|
|
24
|
-
const [isOpen, setIsOpen] = (0, react_1.useState)(false);
|
|
25
|
-
const ref = (0, use_click_outside_1.useClickOutside)(() => setIsOpen(false));
|
|
26
|
-
// #########
|
|
27
|
-
// Rendering
|
|
28
|
-
return (React.createElement("div", { className: "header-profile-container", ref: ref },
|
|
29
|
-
React.createElement("div", { className: "header-profile-dropdown", onClick: () => children && setIsOpen(prev => !prev) },
|
|
30
|
-
React.createElement("div", { className: "header-profile-img-container" },
|
|
31
|
-
React.createElement("div", { className: "header-profile-img-icon" },
|
|
32
|
-
React.createElement(Icon_1.Icon, { name: "user", size: "16" }))),
|
|
33
|
-
React.createElement("div", { className: "header-profile-name" },
|
|
34
|
-
(0, string_utils_1.capitalize)(firstname),
|
|
35
|
-
" ",
|
|
36
|
-
lastname.charAt(0).toUpperCase(),
|
|
37
|
-
"."),
|
|
38
|
-
children && (React.createElement("div", { className: "header-profile-chevron" },
|
|
39
|
-
React.createElement(Icon_1.Icon, { name: isOpen ? 'chevron-up' : 'chevron-down', size: "16" })))),
|
|
40
|
-
isOpen && React.createElement("div", { className: "header-profile-menu" }, children)));
|
|
41
|
-
};
|
|
42
|
-
exports.HeaderProfile = HeaderProfile;
|
|
43
|
-
//# sourceMappingURL=HeaderProfile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderProfile.js","sourceRoot":"","sources":["../../../src/layouts/Header/HeaderProfile.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAoD;AACpD,qDAAkD;AAClD,qEAAgE;AAChE,2DAAsD;AAG/C,MAAM,iBAAiB,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAA0B,EAAE,EAAE;IACjF,WAAW;IACX,WAAW;IACX,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;IAEvE,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAC,0BAA0B,EAAC,OAAO,EAAE,cAAc;QAC/D,6BAAK,SAAS,EAAC,+BAA+B;YAC5C,oBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,GAAG,CAC1B;QACN,6BAAK,SAAS,EAAC,gCAAgC,IAAE,KAAK,CAAO;QAC7D,6BAAK,SAAS,EAAC,+BAA+B;YAC5C,oBAAC,WAAI,IAAC,IAAI,EAAC,eAAe,EAAC,IAAI,EAAC,IAAI,GAAG,CACnC,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,iBAAiB,qBAkB5B;AAEK,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAA0C,EAAE,EAAE;IACzG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAC;IACrD,MAAM,GAAG,GAAG,IAAA,mCAAe,EAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpD,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAC,0BAA0B,EAAC,GAAG,EAAE,GAAG;QAChD,6BAAK,SAAS,EAAC,yBAAyB,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,IAAI,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC;YAC1F,6BAAK,SAAS,EAAC,8BAA8B;gBAC3C,6BAAK,SAAS,EAAC,yBAAyB;oBACtC,oBAAC,WAAI,IAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,GAAG,CAC1B,CACF;YACN,6BAAK,SAAS,EAAC,qBAAqB;gBACjC,IAAA,yBAAU,EAAC,SAAS,CAAC;;gBAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;oBACrD;YAEL,QAAQ,IAAI,CACX,6BAAK,SAAS,EAAC,wBAAwB;gBACrC,oBAAC,WAAI,IAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,EAAE,IAAI,EAAC,IAAI,GAAG,CAC5D,CACP,CACG;QAEL,MAAM,IAAI,6BAAK,SAAS,EAAC,qBAAqB,IAAE,QAAQ,CAAO,CAC5D,CACP,CAAC;AACJ,CAAC,CAAC;AA5BW,QAAA,aAAa,iBA4BxB"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HeaderSearch = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const Input_1 = require("../../components/Inputs/Input/Input");
|
|
7
|
-
const Loader_1 = require("../../components/Loader/Loader");
|
|
8
|
-
const use_click_outside_1 = require("../../hooks/use-click-outside");
|
|
9
|
-
const HeaderSearch = ({ getItemLabel, getItemValue, loadItems, noDataLabel, placeholder, onChange, }) => {
|
|
10
|
-
const [searchValue, setSearchValue] = (0, react_1.useState)('');
|
|
11
|
-
const [items, setItems] = (0, react_1.useState)([]);
|
|
12
|
-
const [isLoading, setIsLoading] = (0, react_1.useState)(false);
|
|
13
|
-
const [showItems, setShowItems] = (0, react_1.useState)(false);
|
|
14
|
-
const ref = (0, use_click_outside_1.useClickOutside)(() => setShowItems(false));
|
|
15
|
-
// #######
|
|
16
|
-
// Helpers
|
|
17
|
-
const getBeforeMatch = (item) => {
|
|
18
|
-
const label = getItemLabel(item);
|
|
19
|
-
const matchStartIndex = label.toLowerCase().indexOf(searchValue.toLowerCase());
|
|
20
|
-
return label.substring(0, matchStartIndex);
|
|
21
|
-
};
|
|
22
|
-
const getMatch = (item) => {
|
|
23
|
-
const label = getItemLabel(item);
|
|
24
|
-
const matchStartIndex = label.toLowerCase().indexOf(searchValue.toLowerCase());
|
|
25
|
-
const matchEndIndex = matchStartIndex + searchValue.length;
|
|
26
|
-
return label.substring(matchStartIndex, matchEndIndex);
|
|
27
|
-
};
|
|
28
|
-
const getAfterMatch = (item) => {
|
|
29
|
-
const label = getItemLabel(item);
|
|
30
|
-
const matchStartIndex = label.toLowerCase().indexOf(searchValue.toLowerCase());
|
|
31
|
-
const matchEndIndex = matchStartIndex + searchValue.length;
|
|
32
|
-
return label.substring(matchEndIndex);
|
|
33
|
-
};
|
|
34
|
-
// ########
|
|
35
|
-
// Watchers
|
|
36
|
-
(0, react_1.useEffect)(() => {
|
|
37
|
-
if (searchValue === '') {
|
|
38
|
-
setShowItems(false);
|
|
39
|
-
setItems([]);
|
|
40
|
-
setIsLoading(false);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
setShowItems(true);
|
|
44
|
-
setIsLoading(true);
|
|
45
|
-
loadItems(searchValue)
|
|
46
|
-
.then(setItems)
|
|
47
|
-
.finally(() => setIsLoading(false));
|
|
48
|
-
}
|
|
49
|
-
}, [searchValue]);
|
|
50
|
-
// #########
|
|
51
|
-
// Rendering
|
|
52
|
-
return (React.createElement("div", { className: "header-search", ref: ref },
|
|
53
|
-
React.createElement(Input_1.Input, { placeholder: placeholder, icon: "search", size: "lg", value: searchValue, variant: "shadow", resetable: true, rounded: true, onChange: setSearchValue, onFocus: () => setShowItems(true) }),
|
|
54
|
-
showItems && searchValue !== '' && (React.createElement("div", { className: "header-search-items-container" },
|
|
55
|
-
isLoading && (React.createElement("div", { className: "header-search-loading" },
|
|
56
|
-
React.createElement(Loader_1.Loader, { size: "sm" }))),
|
|
57
|
-
!isLoading && items.length === 0 && React.createElement("div", { className: "header-search-no-items" }, noDataLabel),
|
|
58
|
-
!isLoading && items.length > 0 && (React.createElement("div", { className: "header-search-items" }, items.map(item => (React.createElement("div", { className: "header-search-item", onClick: () => onChange(getItemValue(item)) },
|
|
59
|
-
getBeforeMatch(item),
|
|
60
|
-
React.createElement("span", { className: "header-search-item--match" }, getMatch(item)),
|
|
61
|
-
getAfterMatch(item))))))))));
|
|
62
|
-
};
|
|
63
|
-
exports.HeaderSearch = HeaderSearch;
|
|
64
|
-
//# sourceMappingURL=HeaderSearch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderSearch.js","sourceRoot":"","sources":["../../../src/layouts/Header/HeaderSearch.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { Header } from '../Header';
|
|
4
|
-
import { HeaderProfile, HeaderProfileItem } from '../HeaderProfile';
|
|
5
|
-
import { HeaderSearch } from '../HeaderSearch';
|
|
6
|
-
import { Button } from '../../../components/Button/Button';
|
|
7
|
-
|
|
8
|
-
<Meta title="Layouts/Header" />
|
|
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
|
-
|
|
18
|
-
export const loadItems = () => {
|
|
19
|
-
return Promise.resolve([
|
|
20
|
-
{ id: 1, label: 'Item 1' },
|
|
21
|
-
{ id: 2, label: 'Item 2' },
|
|
22
|
-
{ id: 3, label: 'Item 3' },
|
|
23
|
-
{ id: 4, label: 'Item 4' },
|
|
24
|
-
{ id: 5, label: 'Item 5' },
|
|
25
|
-
{ id: 6, label: 'Item 6' },
|
|
26
|
-
{ id: 7, label: 'Item 7' },
|
|
27
|
-
{ id: 8, label: 'Item 8' },
|
|
28
|
-
{ id: 9, label: 'Item 9' },
|
|
29
|
-
]);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
# Header
|
|
33
|
-
|
|
34
|
-
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.
|
|
35
|
-
|
|
36
|
-
## Overview
|
|
37
|
-
|
|
38
|
-
<Canvas>
|
|
39
|
-
<Story
|
|
40
|
-
name="Overview"
|
|
41
|
-
args={{
|
|
42
|
-
actions: (
|
|
43
|
-
<>
|
|
44
|
-
<Button icon="add" size="lg" variant="shadow" rounded />
|
|
45
|
-
<HeaderProfile firstname="John" lastname="Doe">
|
|
46
|
-
<HeaderProfileItem icon="alert-triangle" label="Contact support" link="" />
|
|
47
|
-
<HeaderProfileItem icon="award" label="Trainings" link="" />
|
|
48
|
-
</HeaderProfile>
|
|
49
|
-
</>
|
|
50
|
-
),
|
|
51
|
-
appName: 'repairability',
|
|
52
|
-
search: (
|
|
53
|
-
<HeaderSearch
|
|
54
|
-
getItemLabel={item => item.label}
|
|
55
|
-
getItemValue={item => item.id}
|
|
56
|
-
loadItems={loadItems}
|
|
57
|
-
noDataLabel="No item found."
|
|
58
|
-
placeholder="Search something in the application"
|
|
59
|
-
onChange={() => {}}
|
|
60
|
-
/>
|
|
61
|
-
),
|
|
62
|
-
}}
|
|
63
|
-
argTypes={headerArgTypes}
|
|
64
|
-
>
|
|
65
|
-
{args => <Header {...args} />}
|
|
66
|
-
</Story>
|
|
67
|
-
</Canvas>
|
|
68
|
-
|
|
69
|
-
## Props
|
|
70
|
-
|
|
71
|
-
<ArgsTable story="Overview" of={Header} />
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
.navigation {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
height: 32px;
|
|
5
|
-
padding: 0 24px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/* ############ */
|
|
9
|
-
/* BREADCRUMB */
|
|
10
|
-
.breadcrumb {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
padding-right: 20px;
|
|
14
|
-
}
|
|
15
|
-
.breadcrumb-container {
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
}
|
|
19
|
-
.breadcrumb-chevron {
|
|
20
|
-
padding: 0 8px;
|
|
21
|
-
color: #00689d;
|
|
22
|
-
}
|
|
23
|
-
.breadcrumb-item {
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
height: 32px;
|
|
27
|
-
border-radius: 9999px;
|
|
28
|
-
color: #00689d;
|
|
29
|
-
}
|
|
30
|
-
.breadcrumb-item--highlight {
|
|
31
|
-
padding: 0 20px;
|
|
32
|
-
box-shadow: 0px 6px 6px 0px #00537d1a;
|
|
33
|
-
background: linear-gradient(270.22deg, #007dbc 43.94%, #7ebee0 114.83%);
|
|
34
|
-
color: #ffffff;
|
|
35
|
-
}
|
|
36
|
-
.breadcrumb-item--link {
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
39
|
-
.breadcrumb-item--link:hover {
|
|
40
|
-
text-decoration: underline;
|
|
41
|
-
}
|
|
42
|
-
.breadcrumb-item--icon {
|
|
43
|
-
padding-right: 8px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/* ######### */
|
|
47
|
-
/* DIVIDER */
|
|
48
|
-
.navigation-divider {
|
|
49
|
-
flex: 1;
|
|
50
|
-
height: 1px;
|
|
51
|
-
margin: 4px 0;
|
|
52
|
-
background: #bedeef;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/* ######### */
|
|
56
|
-
/* ACTIONS */
|
|
57
|
-
.navigation-actions {
|
|
58
|
-
/* flex items-center [&>*]:ml-4 */
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
}
|
|
62
|
-
.navigation-actions > * {
|
|
63
|
-
margin-left: 16px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* ######### */
|
|
67
|
-
/* GLOBALS */
|
|
68
|
-
* {
|
|
69
|
-
font-size: 14px;
|
|
70
|
-
outline: none;
|
|
71
|
-
box-sizing: border-box;
|
|
72
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
73
|
-
'Helvetica Neue', sans-serif;
|
|
74
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { NavigationBreadcrumbItemProps, NavigationProps } from './Navigation.types';
|
|
4
|
-
import './Navigation.css';
|
|
5
|
-
export declare const NavigationBreadcrumbDivider: () => React.JSX.Element;
|
|
6
|
-
export declare const NavigationBreadcrumbItem: ({ children, icon, highlight, onClick, }: PropsWithChildren<NavigationBreadcrumbItemProps>) => React.JSX.Element;
|
|
7
|
-
export declare const Navigation: ({ actions, breadcrumbs }: NavigationProps) => React.JSX.Element;
|