@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,56 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { PropsWithChildren, useState } from 'react';
|
|
3
|
-
import { Icon } from '../../components/Icon/Icon';
|
|
4
|
-
import { useClickOutside } from '../../hooks/use-click-outside';
|
|
5
|
-
import { capitalize } from '../../utils/string.utils';
|
|
6
|
-
import { HeaderProfileItemProps, HeaderProfileProps } from './Header.types';
|
|
7
|
-
|
|
8
|
-
export const HeaderProfileItem = ({ icon, label, link }: HeaderProfileItemProps) => {
|
|
9
|
-
// ########
|
|
10
|
-
// Handlers
|
|
11
|
-
const handleNavigate = () => window.open(link, '_blank', 'noreferrer');
|
|
12
|
-
|
|
13
|
-
// #########
|
|
14
|
-
// Rendering
|
|
15
|
-
return (
|
|
16
|
-
<div className="header-profile-menu-item" onClick={handleNavigate}>
|
|
17
|
-
<div className="header-profile-menu-item-icon">
|
|
18
|
-
<Icon name={icon} size="16" />
|
|
19
|
-
</div>
|
|
20
|
-
<div className="header-profile-menu-item-label">{label}</div>
|
|
21
|
-
<div className="header-profile-menu-item-icon">
|
|
22
|
-
<Icon name="external-link" size="16" />
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export const HeaderProfile = ({ children, firstname, lastname }: HeaderProfileProps & PropsWithChildren) => {
|
|
29
|
-
const [isOpen, setIsOpen] = useState<boolean>(false);
|
|
30
|
-
const ref = useClickOutside(() => setIsOpen(false));
|
|
31
|
-
|
|
32
|
-
// #########
|
|
33
|
-
// Rendering
|
|
34
|
-
return (
|
|
35
|
-
<div className="header-profile-container" ref={ref}>
|
|
36
|
-
<div className="header-profile-dropdown" onClick={() => children && setIsOpen(prev => !prev)}>
|
|
37
|
-
<div className="header-profile-img-container">
|
|
38
|
-
<div className="header-profile-img-icon">
|
|
39
|
-
<Icon name="user" size="16" />
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
<div className="header-profile-name">
|
|
43
|
-
{capitalize(firstname)} {lastname.charAt(0).toUpperCase()}.
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
{children && (
|
|
47
|
-
<div className="header-profile-chevron">
|
|
48
|
-
<Icon name={isOpen ? 'chevron-up' : 'chevron-down'} size="16" />
|
|
49
|
-
</div>
|
|
50
|
-
)}
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
{isOpen && <div className="header-profile-menu">{children}</div>}
|
|
54
|
-
</div>
|
|
55
|
-
);
|
|
56
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { Icon } from '../../components/Icon/Icon';
|
|
4
|
-
import { NavigationBreadcrumbItemProps, NavigationProps } from './Navigation.types';
|
|
5
|
-
import './Navigation.css';
|
|
6
|
-
|
|
7
|
-
export const NavigationBreadcrumbDivider = () => {
|
|
8
|
-
// #########
|
|
9
|
-
// Rendering
|
|
10
|
-
return (
|
|
11
|
-
<div className="breadcrumb-chevron">
|
|
12
|
-
<Icon name="chevron-right" />
|
|
13
|
-
</div>
|
|
14
|
-
);
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export const NavigationBreadcrumbItem = ({
|
|
18
|
-
children,
|
|
19
|
-
icon,
|
|
20
|
-
highlight,
|
|
21
|
-
onClick,
|
|
22
|
-
}: PropsWithChildren<NavigationBreadcrumbItemProps>) => {
|
|
23
|
-
// #########
|
|
24
|
-
// Rendering
|
|
25
|
-
return (
|
|
26
|
-
<div
|
|
27
|
-
className={`
|
|
28
|
-
breadcrumb-item
|
|
29
|
-
${highlight ? 'breadcrumb-item--highlight' : ''} ${onClick ? 'breadcrumb-item--link' : ''}
|
|
30
|
-
`}
|
|
31
|
-
onClick={onClick}
|
|
32
|
-
>
|
|
33
|
-
{icon && (
|
|
34
|
-
<div className="breadcrumb-item--icon">
|
|
35
|
-
<Icon name={icon} size="16" />
|
|
36
|
-
</div>
|
|
37
|
-
)}
|
|
38
|
-
|
|
39
|
-
{children}
|
|
40
|
-
</div>
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export const Navigation = ({ actions, breadcrumbs }: NavigationProps) => {
|
|
45
|
-
// #########
|
|
46
|
-
// Rendering
|
|
47
|
-
return (
|
|
48
|
-
<div className="navigation">
|
|
49
|
-
<div className="breadcrumb">{breadcrumbs}</div>
|
|
50
|
-
<div className="navigation-divider" />
|
|
51
|
-
<div className="navigation-actions">{actions}</div>
|
|
52
|
-
</div>
|
|
53
|
-
);
|
|
54
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { Navigation, NavigationBreadcrumbItem, NavigationBreadcrumbDivider } from '../Navigation';
|
|
4
|
-
import { Button } from '../../../components/Button/Button';
|
|
5
|
-
import { icons } from '../../../components/Icon/icons';
|
|
6
|
-
|
|
7
|
-
<Meta title="Layouts/Navigation" />
|
|
8
|
-
|
|
9
|
-
# Navigation
|
|
10
|
-
|
|
11
|
-
Breadcrumbs are an important navigation component that shows content hierarchy. They allow users to be aware of their current location in the hierarchical structure of the application. Breadcrumbs enable users to quickly move up to a parent level. Moreover this navigation component allows user to make some actions.
|
|
12
|
-
|
|
13
|
-
## Overview
|
|
14
|
-
|
|
15
|
-
<Canvas>
|
|
16
|
-
<Story
|
|
17
|
-
name="Overview"
|
|
18
|
-
args={{
|
|
19
|
-
actions: (
|
|
20
|
-
<>
|
|
21
|
-
<Button icon="check" onClick={() => {}}>
|
|
22
|
-
Action 1
|
|
23
|
-
</Button>
|
|
24
|
-
<Button icon="add" onClick={() => {}}>
|
|
25
|
-
Action 2
|
|
26
|
-
</Button>
|
|
27
|
-
</>
|
|
28
|
-
),
|
|
29
|
-
breadcrumbs: (
|
|
30
|
-
<>
|
|
31
|
-
<NavigationBreadcrumbItem icon="home" onClick={() => {}}>
|
|
32
|
-
Home
|
|
33
|
-
</NavigationBreadcrumbItem>
|
|
34
|
-
<NavigationBreadcrumbDivider />
|
|
35
|
-
<NavigationBreadcrumbItem onClick={() => {}}>Menu Item 1</NavigationBreadcrumbItem>
|
|
36
|
-
<NavigationBreadcrumbDivider />
|
|
37
|
-
<NavigationBreadcrumbItem highlight>Menu Item 2</NavigationBreadcrumbItem>
|
|
38
|
-
</>
|
|
39
|
-
)
|
|
40
|
-
}}
|
|
41
|
-
|
|
42
|
-
>
|
|
43
|
-
|
|
44
|
-
{args => <Navigation {...args} />}
|
|
45
|
-
|
|
46
|
-
</Story>
|
|
47
|
-
</Canvas>
|
|
48
|
-
|
|
49
|
-
## Props
|
|
50
|
-
|
|
51
|
-
<ArgsTable story="Overview" of={Navigation} />
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|