@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,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;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Icon } from '../../components/Icon/Icon';
|
|
3
|
-
import './Navigation.css';
|
|
4
|
-
export const NavigationBreadcrumbDivider = () => {
|
|
5
|
-
// #########
|
|
6
|
-
// Rendering
|
|
7
|
-
return (React.createElement("div", { className: "breadcrumb-chevron" },
|
|
8
|
-
React.createElement(Icon, { name: "chevron-right" })));
|
|
9
|
-
};
|
|
10
|
-
export const NavigationBreadcrumbItem = ({ children, icon, highlight, onClick, }) => {
|
|
11
|
-
// #########
|
|
12
|
-
// Rendering
|
|
13
|
-
return (React.createElement("div", { className: `
|
|
14
|
-
breadcrumb-item
|
|
15
|
-
${highlight ? 'breadcrumb-item--highlight' : ''} ${onClick ? 'breadcrumb-item--link' : ''}
|
|
16
|
-
`, onClick: onClick },
|
|
17
|
-
icon && (React.createElement("div", { className: "breadcrumb-item--icon" },
|
|
18
|
-
React.createElement(Icon, { name: icon, size: "16" }))),
|
|
19
|
-
children));
|
|
20
|
-
};
|
|
21
|
-
export const Navigation = ({ actions, breadcrumbs }) => {
|
|
22
|
-
// #########
|
|
23
|
-
// Rendering
|
|
24
|
-
return (React.createElement("div", { className: "navigation" },
|
|
25
|
-
React.createElement("div", { className: "breadcrumb" }, breadcrumbs),
|
|
26
|
-
React.createElement("div", { className: "navigation-divider" }),
|
|
27
|
-
React.createElement("div", { className: "navigation-actions" }, actions)));
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=Navigation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.js","sourceRoot":"","sources":["../../../src/layouts/Navigation/Navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD,OAAO,kBAAkB,CAAC;AAE1B,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,EAAE;IAC9C,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAC,oBAAoB;QACjC,oBAAC,IAAI,IAAC,IAAI,EAAC,eAAe,GAAG,CACzB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,EACvC,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,OAAO,GAC0C,EAAE,EAAE;IACrD,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BACE,SAAS,EAAE;;UAEP,SAAS,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,EAAE,IAAI,OAAO,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAAE;OAC1F,EACD,OAAO,EAAE,OAAO;QAEf,IAAI,IAAI,CACP,6BAAK,SAAS,EAAC,uBAAuB;YACpC,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,GAAG,CAC1B,CACP;QAEA,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,OAAO,EAAE,WAAW,EAAmB,EAAE,EAAE;IACtE,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAC,YAAY;QACzB,6BAAK,SAAS,EAAC,YAAY,IAAE,WAAW,CAAO;QAC/C,6BAAK,SAAS,EAAC,oBAAoB,GAAG;QACtC,6BAAK,SAAS,EAAC,oBAAoB,IAAE,OAAO,CAAO,CAC/C,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.types.js","sourceRoot":"","sources":["../../../src/layouts/Navigation/Navigation.types.ts"],"names":[],"mappings":""}
|
|
@@ -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} />
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const capitalize: (str: string) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"string.utils.js","sourceRoot":"","sources":["../../src/utils/string.utils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC"}
|
|
Binary file
|
|
Binary file
|
|
@@ -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,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Button = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
const Icon_1 = require("../Icon/Icon");
|
|
6
|
-
require("./Button.css");
|
|
7
|
-
const Button = ({ children, icon, iconDirection = 'left', size = 'md', variant = 'primary', block, rounded, onClick, }) => {
|
|
8
|
-
// #########
|
|
9
|
-
// Rendering
|
|
10
|
-
return (React.createElement("button", { className: `
|
|
11
|
-
button button--${size} button--${variant}
|
|
12
|
-
${block ? 'button--block' : ''}
|
|
13
|
-
${rounded ? 'button--rounded' : ''}
|
|
14
|
-
${icon && !children ? 'button--icon-only' : ''}
|
|
15
|
-
`, onClick: onClick },
|
|
16
|
-
icon && iconDirection === 'left' && React.createElement(Icon_1.Icon, { name: icon, size: "16" }),
|
|
17
|
-
children && React.createElement("div", null, children),
|
|
18
|
-
icon && iconDirection === 'right' && React.createElement(Icon_1.Icon, { name: icon, size: "16" })));
|
|
19
|
-
};
|
|
20
|
-
exports.Button = Button;
|
|
21
|
-
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,uCAAoC;AAEpC,wBAAsB;AAEf,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,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,GAAG;QAClE,QAAQ,IAAI,iCAAM,QAAQ,CAAO;QACjC,IAAI,IAAI,aAAa,KAAK,OAAO,IAAI,oBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,GAAG,CAC7D,CACV,CAAC;AACJ,CAAC,CAAC;AA3BW,QAAA,MAAM,UA2BjB"}
|
|
@@ -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,72 +0,0 @@
|
|
|
1
|
-
.checkbox {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
}
|
|
6
|
-
/* ########## */
|
|
7
|
-
/* DISABLED */
|
|
8
|
-
.checkbox--disabled {
|
|
9
|
-
cursor: not-allowed;
|
|
10
|
-
}
|
|
11
|
-
.checkbox--disabled .checkbox-box {
|
|
12
|
-
color: #999999;
|
|
13
|
-
}
|
|
14
|
-
.checkbox--disabled:hover .checkbox-box {
|
|
15
|
-
background: transparent;
|
|
16
|
-
}
|
|
17
|
-
/* ##### */
|
|
18
|
-
/* BOX */
|
|
19
|
-
.checkbox:hover .checkbox-box {
|
|
20
|
-
background: #e7f3f9;
|
|
21
|
-
}
|
|
22
|
-
.checkbox-box {
|
|
23
|
-
position: relative;
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
width: 24px;
|
|
28
|
-
height: 24px;
|
|
29
|
-
border-radius: 6px;
|
|
30
|
-
color: #007dbc;
|
|
31
|
-
transition: all ease 0.3s;
|
|
32
|
-
}
|
|
33
|
-
.checkbox-box::before {
|
|
34
|
-
content: '';
|
|
35
|
-
position: absolute;
|
|
36
|
-
width: 16px;
|
|
37
|
-
height: 16px;
|
|
38
|
-
border-radius: 6px;
|
|
39
|
-
background: #ffffff;
|
|
40
|
-
z-index: 10;
|
|
41
|
-
}
|
|
42
|
-
.checkbox-box .icon {
|
|
43
|
-
z-index: 20;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/* ################# */
|
|
47
|
-
/* LABEL / CAPTION */
|
|
48
|
-
.checkbox-container {
|
|
49
|
-
width: 100%;
|
|
50
|
-
margin-left: 4px;
|
|
51
|
-
padding: 4px 8px;
|
|
52
|
-
border-radius: 6px;
|
|
53
|
-
}
|
|
54
|
-
.checkbox-container--with-caption .checkbox-label {
|
|
55
|
-
color: #007dbc;
|
|
56
|
-
font-weight: 700;
|
|
57
|
-
}
|
|
58
|
-
.checkbox-caption {
|
|
59
|
-
color: #404040;
|
|
60
|
-
font-size: 12px;
|
|
61
|
-
font-style: italic;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/* ######### */
|
|
65
|
-
/* GLOBALS */
|
|
66
|
-
* {
|
|
67
|
-
font-size: 14px;
|
|
68
|
-
outline: none;
|
|
69
|
-
box-sizing: border-box;
|
|
70
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
71
|
-
'Helvetica Neue', sans-serif;
|
|
72
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Checkbox = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
const Icon_1 = require("../Icon/Icon");
|
|
6
|
-
require("./Checkbox.css");
|
|
7
|
-
const Checkbox = ({ caption, label, checked, disabled, onChange }) => {
|
|
8
|
-
// ########
|
|
9
|
-
// Handlers
|
|
10
|
-
const handleChange = () => !disabled && onChange(!checked);
|
|
11
|
-
// #########
|
|
12
|
-
// Rendering
|
|
13
|
-
return (React.createElement("div", { className: `checkbox ${disabled ? 'checkbox--disabled' : ''}`, onClick: handleChange },
|
|
14
|
-
React.createElement("div", { className: "checkbox-box" },
|
|
15
|
-
checked && React.createElement(Icon_1.Icon, { name: "check-square-filled" }),
|
|
16
|
-
!checked && React.createElement(Icon_1.Icon, { name: "square" })),
|
|
17
|
-
React.createElement("div", { className: `checkbox-container ${caption ? 'checkbox-container--with-caption' : ''}` },
|
|
18
|
-
React.createElement("div", { className: "checkbox-label" }, label),
|
|
19
|
-
caption && React.createElement("div", { className: "checkbox-caption" }, caption))));
|
|
20
|
-
};
|
|
21
|
-
exports.Checkbox = Checkbox;
|
|
22
|
-
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,uCAAoC;AAEpC,0BAAwB;AAEjB,MAAM,QAAQ,GAAG,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAiB,EAAE,EAAE;IACzF,WAAW;IACX,WAAW;IACX,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC;IAE3D,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAE,YAAY,QAAQ,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,YAAY;QACvF,6BAAK,SAAS,EAAC,cAAc;YAC1B,OAAO,IAAI,oBAAC,WAAI,IAAC,IAAI,EAAC,qBAAqB,GAAG;YAC9C,CAAC,OAAO,IAAI,oBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,GAAG,CAC/B;QAEN,6BAAK,SAAS,EAAE,sBAAsB,OAAO,CAAC,CAAC,CAAC,kCAAkC,CAAC,CAAC,CAAC,EAAE,EAAE;YACvF,6BAAK,SAAS,EAAC,gBAAgB,IAAE,KAAK,CAAO;YAC5C,OAAO,IAAI,6BAAK,SAAS,EAAC,kBAAkB,IAAE,OAAO,CAAO,CACzD,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,QAAQ,YAoBnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.types.js","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { Checkbox } from '../Checkbox';
|
|
4
|
-
|
|
5
|
-
<Meta title="Components/Checkbox" />
|
|
6
|
-
|
|
7
|
-
export const checkboxArgTypes = {
|
|
8
|
-
caption: {
|
|
9
|
-
control: 'text',
|
|
10
|
-
description: 'Caption of the checkbox.',
|
|
11
|
-
},
|
|
12
|
-
label: {
|
|
13
|
-
control: 'text',
|
|
14
|
-
description: 'Label of the checkbox.',
|
|
15
|
-
},
|
|
16
|
-
checked: {
|
|
17
|
-
control: 'boolean',
|
|
18
|
-
description: 'State of the checkbox.',
|
|
19
|
-
table: { defaultValue: { summary: 'false' } },
|
|
20
|
-
},
|
|
21
|
-
disabled: {
|
|
22
|
-
control: 'boolean',
|
|
23
|
-
description: 'Enable state of the checkbox.',
|
|
24
|
-
table: { defaultValue: { summary: 'false' } },
|
|
25
|
-
},
|
|
26
|
-
onChange: {
|
|
27
|
-
control: 'function',
|
|
28
|
-
description: 'The handler called when clicking on the checkbox.',
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
# Checkbox
|
|
33
|
-
|
|
34
|
-
Checkboxes are applied when users can select all, several, or none of the options from a given list.
|
|
35
|
-
|
|
36
|
-
## Overview
|
|
37
|
-
|
|
38
|
-
<Canvas>
|
|
39
|
-
<Story
|
|
40
|
-
name="Overview"
|
|
41
|
-
args={{
|
|
42
|
-
label: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
|
|
43
|
-
caption:
|
|
44
|
-
'Auctor nisl justo, sed posuere est dignissim nec. Integer ultricies, metus ac imperdiet ullamcorper, est justo viverra nisl, in posuere dui urna eget quam.',
|
|
45
|
-
checked: false,
|
|
46
|
-
disabled: false,
|
|
47
|
-
}}
|
|
48
|
-
argTypes={checkboxArgTypes}
|
|
49
|
-
>
|
|
50
|
-
{args => <Checkbox {...args}>{args.children}</Checkbox>}
|
|
51
|
-
</Story>
|
|
52
|
-
</Canvas>
|
|
53
|
-
|
|
54
|
-
## Props
|
|
55
|
-
|
|
56
|
-
<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,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Icon = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
const icons_1 = require("./icons");
|
|
6
|
-
require("./Icon.css");
|
|
7
|
-
const Icon = ({ name, size = '20' }) => {
|
|
8
|
-
const icon = icons_1.icons[name];
|
|
9
|
-
// #########
|
|
10
|
-
// Rendering
|
|
11
|
-
if (!icon)
|
|
12
|
-
return React.createElement(React.Fragment, null);
|
|
13
|
-
return React.createElement("div", { className: `icon icon--${size}`, dangerouslySetInnerHTML: { __html: icon } });
|
|
14
|
-
};
|
|
15
|
-
exports.Icon = Icon;
|
|
16
|
-
//# sourceMappingURL=Icon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,mCAAgC;AAChC,sBAAoB;AAEb,MAAM,IAAI,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,EAAa,EAAE,EAAE;IACvD,MAAM,IAAI,GAAG,aAAK,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;AAPW,QAAA,IAAI,QAOf"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.types.js","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 11V7H13V11H17V13H13V17H11V13H7V11H11ZM12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 15V17H13V15H11ZM11 7V13H13V7H11Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM4.20568 19.0002H19.7941L11.9999 5.50017L4.20568 19.0002ZM10.9999 16.0002H12.9999V18.0002H10.9999V16.0002ZM10.9999 9.00017H12.9999V14.0002H10.9999V9.00017Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 4.00008H13V11.0001H20V9.00008H16.4142L20.7071 4.70718L19.2929 3.29297L15 7.58586V4.00008ZM4.00008 15H7.58586L3.29297 19.2929L4.70718 20.7071L9.00008 16.4142V20H11.0001V13H4.00008V15Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17.5858 5H14V3H21V10H19V6.41421L14.7071 10.7071L13.2929 9.29289L17.5858 5ZM3 14H5V17.5858L9.29289 13.2929L10.7071 14.7071L6.41421 19H10V21H3V14Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M5.82843 6.99955L8.36396 9.53509L6.94975 10.9493L2 5.99955L6.94975 1.0498L8.36396 2.46402L5.82843 4.99955H13C17.4183 4.99955 21 8.58127 21 12.9996C21 17.4178 17.4183 20.9996 13 20.9996H4V18.9996H13C16.3137 18.9996 19 16.3133 19 12.9996C19 9.68584 16.3137 6.99955 13 6.99955H5.82843Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M16.0503 12.0498L21 16.9996L16.0503 21.9493L14.636 20.5351L17.172 17.9988L4 17.9996V15.9996L17.172 15.9988L14.636 13.464L16.0503 12.0498ZM7.94975 2.0498L9.36396 3.46402L6.828 5.9988L20 5.99955V7.99955L6.828 7.9988L9.36396 10.5351L7.94975 11.9493L3 6.99955L7.94975 2.0498Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11.9498 7.94975L10.5356 9.36396L8.00079 6.828L8.00004 20H6.00004L6.00079 6.828L3.46451 9.36396L2.05029 7.94975L7.00004 3L11.9498 7.94975ZM21.9498 16.0503L17 21L12.0503 16.0503L13.4645 14.636L16.0008 17.172L16 4H18L18.0008 17.172L20.5356 14.636L21.9498 16.0503Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z"></path></svg>
|