@dktunited-techoff/techoff-suite-ui 1.7.11 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/{TsDropdown → TsDropdowns/TsDropdown}/TsDropdown.tsx +5 -5
- package/{lib/components → src/components/TsDropdowns}/TsDropdown/__stories__/TsDropdown.stories.mdx +1 -1
- package/src/components/{TsDropdown/TsDropdown.css → TsDropdowns/TsDropdownFilter/TsDropdownFilter.css} +24 -55
- package/src/components/TsDropdowns/TsDropdownFilter/TsDropdownFilter.tsx +104 -0
- package/src/components/TsDropdowns/TsDropdownFilter/TsDropdownFilter.types.ts +8 -0
- package/{esm/components/TsDropdown → src/components/TsDropdowns/TsDropdownFilter}/__stories__/TsDropdown.stories.mdx +13 -29
- package/src/components/TsIcon/icons/header-techoff-suite.svg +32 -0
- package/src/components/TsIcon/icons/index.ts +1 -0
- package/src/index.ts +2 -1
- package/src/layouts/TsHeader/TsHeader.types.ts +1 -1
- package/src/layouts/TsHeader/__stories__/TsHeader.stories.mdx +1 -1
- package/esm/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/esm/assets/fonts/Roboto-Light.ttf +0 -0
- package/esm/components/TsButton/TsButton.css +0 -121
- package/esm/components/TsButton/TsButton.d.ts +0 -5
- package/esm/components/TsButton/TsButton.js +0 -17
- package/esm/components/TsButton/TsButton.js.map +0 -1
- package/esm/components/TsButton/TsButton.types.d.ts +0 -9
- package/esm/components/TsButton/TsButton.types.js +0 -2
- package/esm/components/TsButton/TsButton.types.js.map +0 -1
- package/esm/components/TsButton/__stories__/TsButton.stories.mdx +0 -84
- package/esm/components/TsCheckbox/TsCheckbox.css +0 -64
- package/esm/components/TsCheckbox/TsCheckbox.d.ts +0 -4
- package/esm/components/TsCheckbox/TsCheckbox.js +0 -17
- package/esm/components/TsCheckbox/TsCheckbox.js.map +0 -1
- package/esm/components/TsCheckbox/TsCheckbox.types.d.ts +0 -7
- package/esm/components/TsCheckbox/TsCheckbox.types.js +0 -2
- package/esm/components/TsCheckbox/TsCheckbox.types.js.map +0 -1
- package/esm/components/TsCheckbox/__stories__/TsCheckbox.stories.mdx +0 -56
- package/esm/components/TsDropdown/TsDropdown.d.ts +0 -4
- package/esm/components/TsDropdown/TsDropdown.js +0 -100
- package/esm/components/TsDropdown/TsDropdown.js.map +0 -1
- package/esm/components/TsDropdown/TsDropdown.types.d.ts +0 -17
- package/esm/components/TsDropdown/TsDropdown.types.js +0 -2
- package/esm/components/TsDropdown/TsDropdown.types.js.map +0 -1
- package/esm/components/TsDropdown/__stories__/fruits.d.ts +0 -4
- package/esm/components/TsDropdown/__stories__/fruits.js +0 -48
- package/esm/components/TsDropdown/__stories__/fruits.js.map +0 -1
- package/esm/components/TsIcon/TsIcon.css +0 -26
- package/esm/components/TsIcon/TsIcon.d.ts +0 -4
- package/esm/components/TsIcon/TsIcon.js +0 -12
- package/esm/components/TsIcon/TsIcon.js.map +0 -1
- package/esm/components/TsIcon/TsIcon.types.d.ts +0 -4
- package/esm/components/TsIcon/TsIcon.types.js +0 -2
- package/esm/components/TsIcon/TsIcon.types.js.map +0 -1
- package/esm/components/TsIcon/__stories__/TsIcon.stories.mdx +0 -89
- package/esm/components/TsIcon/icons/add-circle.svg +0 -1
- package/esm/components/TsIcon/icons/add.svg +0 -1
- package/esm/components/TsIcon/icons/alert-circle-filled.svg +0 -1
- package/esm/components/TsIcon/icons/alert-circle.svg +0 -1
- package/esm/components/TsIcon/icons/alert-triangle-filled.svg +0 -1
- package/esm/components/TsIcon/icons/alert-triangle.svg +0 -1
- package/esm/components/TsIcon/icons/arrow-diagonal-collapse.svg +0 -1
- package/esm/components/TsIcon/icons/arrow-diagonal-expand.svg +0 -1
- package/esm/components/TsIcon/icons/arrow-down.svg +0 -1
- package/esm/components/TsIcon/icons/arrow-go-back.svg +0 -1
- package/esm/components/TsIcon/icons/arrow-left-right.svg +0 -1
- package/esm/components/TsIcon/icons/arrow-left.svg +0 -1
- package/esm/components/TsIcon/icons/arrow-right.svg +0 -1
- package/esm/components/TsIcon/icons/arrow-up-down.svg +0 -1
- package/esm/components/TsIcon/icons/arrow-up.svg +0 -1
- package/esm/components/TsIcon/icons/award.svg +0 -1
- package/esm/components/TsIcon/icons/check-circle-filled.svg +0 -1
- package/esm/components/TsIcon/icons/check-circle-timer.svg +0 -7
- package/esm/components/TsIcon/icons/check-circle.svg +0 -1
- package/esm/components/TsIcon/icons/check-square-filled.svg +0 -1
- package/esm/components/TsIcon/icons/check-square.svg +0 -1
- package/esm/components/TsIcon/icons/check.svg +0 -1
- package/esm/components/TsIcon/icons/chevron-down.svg +0 -1
- package/esm/components/TsIcon/icons/chevron-left.svg +0 -1
- package/esm/components/TsIcon/icons/chevron-right.svg +0 -1
- package/esm/components/TsIcon/icons/chevron-up.svg +0 -1
- package/esm/components/TsIcon/icons/circle.svg +0 -1
- package/esm/components/TsIcon/icons/close-circle.svg +0 -1
- package/esm/components/TsIcon/icons/close.svg +0 -1
- package/esm/components/TsIcon/icons/currency-euro.svg +0 -1
- package/esm/components/TsIcon/icons/download.svg +0 -1
- package/esm/components/TsIcon/icons/edit.svg +0 -1
- package/esm/components/TsIcon/icons/external-link.svg +0 -1
- package/esm/components/TsIcon/icons/filter-off.svg +0 -1
- package/esm/components/TsIcon/icons/filter.svg +0 -1
- package/esm/components/TsIcon/icons/flashlight-off.svg +0 -1
- package/esm/components/TsIcon/icons/flashlight.svg +0 -1
- package/esm/components/TsIcon/icons/header-bikestudio.svg +0 -32
- package/esm/components/TsIcon/icons/header-nsc-helmet.svg +0 -32
- package/esm/components/TsIcon/icons/header-opticost.svg +0 -32
- package/esm/components/TsIcon/icons/header-repairability.svg +0 -32
- package/esm/components/TsIcon/icons/heart-filled.svg +0 -1
- package/esm/components/TsIcon/icons/heart.svg +0 -1
- package/esm/components/TsIcon/icons/history.svg +0 -1
- package/esm/components/TsIcon/icons/home.svg +0 -1
- package/esm/components/TsIcon/icons/index.d.ts +0 -3
- package/esm/components/TsIcon/icons/index.js +0 -61
- package/esm/components/TsIcon/icons/index.js.map +0 -1
- package/esm/components/TsIcon/icons/index.ts +0 -60
- package/esm/components/TsIcon/icons/link.svg +0 -1
- package/esm/components/TsIcon/icons/list-settings.svg +0 -1
- package/esm/components/TsIcon/icons/lock.svg +0 -1
- package/esm/components/TsIcon/icons/loop-right.svg +0 -1
- package/esm/components/TsIcon/icons/percent.svg +0 -1
- package/esm/components/TsIcon/icons/question-circle.svg +0 -1
- package/esm/components/TsIcon/icons/save.svg +0 -1
- package/esm/components/TsIcon/icons/search.svg +0 -1
- package/esm/components/TsIcon/icons/seedling-circle.svg +0 -12
- package/esm/components/TsIcon/icons/square.svg +0 -1
- package/esm/components/TsIcon/icons/timer.svg +0 -1
- package/esm/components/TsIcon/icons/tools.svg +0 -1
- package/esm/components/TsIcon/icons/user.svg +0 -1
- package/esm/components/TsInput/TsInput/TsInput.css +0 -92
- package/esm/components/TsInput/TsInput/TsInput.d.ts +0 -4
- package/esm/components/TsInput/TsInput/TsInput.js +0 -21
- package/esm/components/TsInput/TsInput/TsInput.js.map +0 -1
- package/esm/components/TsInput/TsInput/TsInput.tsx +0 -34
- package/esm/components/TsInput/TsInput/TsInput.types.d.ts +0 -8
- package/esm/components/TsInput/TsInput/TsInput.types.js +0 -2
- package/esm/components/TsInput/TsInput/TsInput.types.js.map +0 -1
- package/esm/components/TsInput/TsInput/TsInput.types.tsx +0 -9
- package/esm/components/TsInput/TsInput/__stories__/TsInput.stories.mdx +0 -77
- package/esm/components/TsLoader/TsLoader.css +0 -42
- package/esm/components/TsLoader/TsLoader.d.ts +0 -4
- package/esm/components/TsLoader/TsLoader.js +0 -6
- package/esm/components/TsLoader/TsLoader.js.map +0 -1
- package/esm/components/TsLoader/TsLoader.types.d.ts +0 -3
- package/esm/components/TsLoader/TsLoader.types.js +0 -2
- package/esm/components/TsLoader/TsLoader.types.js.map +0 -1
- package/esm/components/TsLoader/__stories__/TsLoader.stories.mdx +0 -30
- package/esm/components/TsTabs/TsTabs.css +0 -69
- package/esm/components/TsTabs/TsTabs.d.ts +0 -4
- package/esm/components/TsTabs/TsTabs.js +0 -30
- package/esm/components/TsTabs/TsTabs.js.map +0 -1
- package/esm/components/TsTabs/TsTabs.types.d.ts +0 -14
- package/esm/components/TsTabs/TsTabs.types.js +0 -2
- package/esm/components/TsTabs/TsTabs.types.js.map +0 -1
- package/esm/components/TsTabs/__stories__/TsTabs.stories.mdx +0 -50
- 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 -10
- package/esm/index.js +0 -11
- package/esm/index.js.map +0 -1
- package/esm/layouts/TsHeader/TsHeader.css +0 -186
- package/esm/layouts/TsHeader/TsHeader.d.ts +0 -4
- package/esm/layouts/TsHeader/TsHeader.js +0 -13
- package/esm/layouts/TsHeader/TsHeader.js.map +0 -1
- package/esm/layouts/TsHeader/TsHeader.types.d.ts +0 -23
- package/esm/layouts/TsHeader/TsHeader.types.js +0 -2
- package/esm/layouts/TsHeader/TsHeader.types.js.map +0 -1
- package/esm/layouts/TsHeader/TsHeaderProfile.d.ts +0 -5
- package/esm/layouts/TsHeader/TsHeaderProfile.js +0 -38
- package/esm/layouts/TsHeader/TsHeaderProfile.js.map +0 -1
- package/esm/layouts/TsHeader/TsHeaderSearch.d.ts +0 -3
- package/esm/layouts/TsHeader/TsHeaderSearch.js +0 -58
- package/esm/layouts/TsHeader/TsHeaderSearch.js.map +0 -1
- package/esm/layouts/TsHeader/__stories__/TsHeader.stories.mdx +0 -71
- package/esm/layouts/TsNavigation/TsNavigation.css +0 -72
- package/esm/layouts/TsNavigation/TsNavigation.d.ts +0 -7
- package/esm/layouts/TsNavigation/TsNavigation.js +0 -29
- package/esm/layouts/TsNavigation/TsNavigation.js.map +0 -1
- package/esm/layouts/TsNavigation/TsNavigation.types.d.ts +0 -10
- package/esm/layouts/TsNavigation/TsNavigation.types.js +0 -2
- package/esm/layouts/TsNavigation/TsNavigation.types.js.map +0 -1
- package/esm/layouts/TsNavigation/__stories__/TsNavigation.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/TsButton/TsButton.css +0 -121
- package/lib/components/TsButton/TsButton.d.ts +0 -5
- package/lib/components/TsButton/TsButton.js +0 -21
- package/lib/components/TsButton/TsButton.js.map +0 -1
- package/lib/components/TsButton/TsButton.types.d.ts +0 -9
- package/lib/components/TsButton/TsButton.types.js +0 -3
- package/lib/components/TsButton/TsButton.types.js.map +0 -1
- package/lib/components/TsButton/__stories__/TsButton.stories.mdx +0 -84
- package/lib/components/TsCheckbox/TsCheckbox.css +0 -64
- package/lib/components/TsCheckbox/TsCheckbox.d.ts +0 -4
- package/lib/components/TsCheckbox/TsCheckbox.js +0 -21
- package/lib/components/TsCheckbox/TsCheckbox.js.map +0 -1
- package/lib/components/TsCheckbox/TsCheckbox.types.d.ts +0 -7
- package/lib/components/TsCheckbox/TsCheckbox.types.js +0 -3
- package/lib/components/TsCheckbox/TsCheckbox.types.js.map +0 -1
- package/lib/components/TsCheckbox/__stories__/TsCheckbox.stories.mdx +0 -56
- package/lib/components/TsDropdown/TsDropdown.css +0 -114
- package/lib/components/TsDropdown/TsDropdown.d.ts +0 -4
- package/lib/components/TsDropdown/TsDropdown.js +0 -104
- package/lib/components/TsDropdown/TsDropdown.js.map +0 -1
- package/lib/components/TsDropdown/TsDropdown.types.d.ts +0 -17
- package/lib/components/TsDropdown/TsDropdown.types.js +0 -3
- package/lib/components/TsDropdown/TsDropdown.types.js.map +0 -1
- package/lib/components/TsDropdown/__stories__/fruits.d.ts +0 -4
- package/lib/components/TsDropdown/__stories__/fruits.js +0 -51
- package/lib/components/TsDropdown/__stories__/fruits.js.map +0 -1
- package/lib/components/TsIcon/TsIcon.css +0 -26
- package/lib/components/TsIcon/TsIcon.d.ts +0 -4
- package/lib/components/TsIcon/TsIcon.js +0 -16
- package/lib/components/TsIcon/TsIcon.js.map +0 -1
- package/lib/components/TsIcon/TsIcon.types.d.ts +0 -4
- package/lib/components/TsIcon/TsIcon.types.js +0 -3
- package/lib/components/TsIcon/TsIcon.types.js.map +0 -1
- package/lib/components/TsIcon/__stories__/TsIcon.stories.mdx +0 -89
- package/lib/components/TsIcon/icons/add-circle.svg +0 -1
- package/lib/components/TsIcon/icons/add.svg +0 -1
- package/lib/components/TsIcon/icons/alert-circle-filled.svg +0 -1
- package/lib/components/TsIcon/icons/alert-circle.svg +0 -1
- package/lib/components/TsIcon/icons/alert-triangle-filled.svg +0 -1
- package/lib/components/TsIcon/icons/alert-triangle.svg +0 -1
- package/lib/components/TsIcon/icons/arrow-diagonal-collapse.svg +0 -1
- package/lib/components/TsIcon/icons/arrow-diagonal-expand.svg +0 -1
- package/lib/components/TsIcon/icons/arrow-down.svg +0 -1
- package/lib/components/TsIcon/icons/arrow-go-back.svg +0 -1
- package/lib/components/TsIcon/icons/arrow-left-right.svg +0 -1
- package/lib/components/TsIcon/icons/arrow-left.svg +0 -1
- package/lib/components/TsIcon/icons/arrow-right.svg +0 -1
- package/lib/components/TsIcon/icons/arrow-up-down.svg +0 -1
- package/lib/components/TsIcon/icons/arrow-up.svg +0 -1
- package/lib/components/TsIcon/icons/award.svg +0 -1
- package/lib/components/TsIcon/icons/check-circle-filled.svg +0 -1
- package/lib/components/TsIcon/icons/check-circle-timer.svg +0 -7
- package/lib/components/TsIcon/icons/check-circle.svg +0 -1
- package/lib/components/TsIcon/icons/check-square-filled.svg +0 -1
- package/lib/components/TsIcon/icons/check-square.svg +0 -1
- package/lib/components/TsIcon/icons/check.svg +0 -1
- package/lib/components/TsIcon/icons/chevron-down.svg +0 -1
- package/lib/components/TsIcon/icons/chevron-left.svg +0 -1
- package/lib/components/TsIcon/icons/chevron-right.svg +0 -1
- package/lib/components/TsIcon/icons/chevron-up.svg +0 -1
- package/lib/components/TsIcon/icons/circle.svg +0 -1
- package/lib/components/TsIcon/icons/close-circle.svg +0 -1
- package/lib/components/TsIcon/icons/close.svg +0 -1
- package/lib/components/TsIcon/icons/currency-euro.svg +0 -1
- package/lib/components/TsIcon/icons/download.svg +0 -1
- package/lib/components/TsIcon/icons/edit.svg +0 -1
- package/lib/components/TsIcon/icons/external-link.svg +0 -1
- package/lib/components/TsIcon/icons/filter-off.svg +0 -1
- package/lib/components/TsIcon/icons/filter.svg +0 -1
- package/lib/components/TsIcon/icons/flashlight-off.svg +0 -1
- package/lib/components/TsIcon/icons/flashlight.svg +0 -1
- package/lib/components/TsIcon/icons/header-bikestudio.svg +0 -32
- package/lib/components/TsIcon/icons/header-nsc-helmet.svg +0 -32
- package/lib/components/TsIcon/icons/header-opticost.svg +0 -32
- package/lib/components/TsIcon/icons/header-repairability.svg +0 -32
- package/lib/components/TsIcon/icons/heart-filled.svg +0 -1
- package/lib/components/TsIcon/icons/heart.svg +0 -1
- package/lib/components/TsIcon/icons/history.svg +0 -1
- package/lib/components/TsIcon/icons/home.svg +0 -1
- package/lib/components/TsIcon/icons/index.d.ts +0 -3
- package/lib/components/TsIcon/icons/index.js +0 -64
- package/lib/components/TsIcon/icons/index.js.map +0 -1
- package/lib/components/TsIcon/icons/index.ts +0 -60
- package/lib/components/TsIcon/icons/link.svg +0 -1
- package/lib/components/TsIcon/icons/list-settings.svg +0 -1
- package/lib/components/TsIcon/icons/lock.svg +0 -1
- package/lib/components/TsIcon/icons/loop-right.svg +0 -1
- package/lib/components/TsIcon/icons/percent.svg +0 -1
- package/lib/components/TsIcon/icons/question-circle.svg +0 -1
- package/lib/components/TsIcon/icons/save.svg +0 -1
- package/lib/components/TsIcon/icons/search.svg +0 -1
- package/lib/components/TsIcon/icons/seedling-circle.svg +0 -12
- package/lib/components/TsIcon/icons/square.svg +0 -1
- package/lib/components/TsIcon/icons/timer.svg +0 -1
- package/lib/components/TsIcon/icons/tools.svg +0 -1
- package/lib/components/TsIcon/icons/user.svg +0 -1
- package/lib/components/TsInput/TsInput/TsInput.css +0 -92
- package/lib/components/TsInput/TsInput/TsInput.d.ts +0 -4
- package/lib/components/TsInput/TsInput/TsInput.js +0 -25
- package/lib/components/TsInput/TsInput/TsInput.js.map +0 -1
- package/lib/components/TsInput/TsInput/TsInput.tsx +0 -34
- package/lib/components/TsInput/TsInput/TsInput.types.d.ts +0 -8
- package/lib/components/TsInput/TsInput/TsInput.types.js +0 -3
- package/lib/components/TsInput/TsInput/TsInput.types.js.map +0 -1
- package/lib/components/TsInput/TsInput/TsInput.types.tsx +0 -9
- package/lib/components/TsInput/TsInput/__stories__/TsInput.stories.mdx +0 -77
- package/lib/components/TsLoader/TsLoader.css +0 -42
- package/lib/components/TsLoader/TsLoader.d.ts +0 -4
- package/lib/components/TsLoader/TsLoader.js +0 -10
- package/lib/components/TsLoader/TsLoader.js.map +0 -1
- package/lib/components/TsLoader/TsLoader.types.d.ts +0 -3
- package/lib/components/TsLoader/TsLoader.types.js +0 -3
- package/lib/components/TsLoader/TsLoader.types.js.map +0 -1
- package/lib/components/TsLoader/__stories__/TsLoader.stories.mdx +0 -30
- package/lib/components/TsTabs/TsTabs.css +0 -69
- package/lib/components/TsTabs/TsTabs.d.ts +0 -4
- package/lib/components/TsTabs/TsTabs.js +0 -34
- package/lib/components/TsTabs/TsTabs.js.map +0 -1
- package/lib/components/TsTabs/TsTabs.types.d.ts +0 -14
- package/lib/components/TsTabs/TsTabs.types.js +0 -3
- package/lib/components/TsTabs/TsTabs.types.js.map +0 -1
- package/lib/components/TsTabs/__stories__/TsTabs.stories.mdx +0 -50
- 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 -10
- package/lib/index.js +0 -27
- package/lib/index.js.map +0 -1
- package/lib/layouts/TsHeader/TsHeader.css +0 -186
- package/lib/layouts/TsHeader/TsHeader.d.ts +0 -4
- package/lib/layouts/TsHeader/TsHeader.js +0 -17
- package/lib/layouts/TsHeader/TsHeader.js.map +0 -1
- package/lib/layouts/TsHeader/TsHeader.types.d.ts +0 -23
- package/lib/layouts/TsHeader/TsHeader.types.js +0 -3
- package/lib/layouts/TsHeader/TsHeader.types.js.map +0 -1
- package/lib/layouts/TsHeader/TsHeaderProfile.d.ts +0 -5
- package/lib/layouts/TsHeader/TsHeaderProfile.js +0 -43
- package/lib/layouts/TsHeader/TsHeaderProfile.js.map +0 -1
- package/lib/layouts/TsHeader/TsHeaderSearch.d.ts +0 -3
- package/lib/layouts/TsHeader/TsHeaderSearch.js +0 -62
- package/lib/layouts/TsHeader/TsHeaderSearch.js.map +0 -1
- package/lib/layouts/TsHeader/__stories__/TsHeader.stories.mdx +0 -71
- package/lib/layouts/TsNavigation/TsNavigation.css +0 -72
- package/lib/layouts/TsNavigation/TsNavigation.d.ts +0 -7
- package/lib/layouts/TsNavigation/TsNavigation.js +0 -35
- package/lib/layouts/TsNavigation/TsNavigation.js.map +0 -1
- package/lib/layouts/TsNavigation/TsNavigation.types.d.ts +0 -10
- package/lib/layouts/TsNavigation/TsNavigation.types.js +0 -3
- package/lib/layouts/TsNavigation/TsNavigation.types.js.map +0 -1
- package/lib/layouts/TsNavigation/__stories__/TsNavigation.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/TsDropdown/__stories__/TsDropdown.stories.mdx +0 -85
- package/src/components/TsDropdown/__stories__/fruits.ts +0 -47
- /package/{esm/components → src/components/TsDropdowns}/TsDropdown/TsDropdown.css +0 -0
- /package/src/components/{TsDropdown → TsDropdowns/TsDropdown}/TsDropdown.types.ts +0 -0
- /package/{esm/components → src/components/TsDropdowns}/TsDropdown/__stories__/fruits.ts +0 -0
- /package/{lib/components/TsDropdown → src/components/TsDropdowns/TsDropdownFilter}/__stories__/fruits.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M7 19V13H17V19H19V7.82843L16.1716 5H5V19H7ZM4 3H17L21 7V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM9 15V19H15V15H9Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"></path></svg>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
2
|
-
viewBox="0 0 18 18" style="enable-background:new 0 0 18 18;" xml:space="preserve">
|
|
3
|
-
<path d="M9,18c-5,0-9-4-9-9s4-9,9-9s9,4,9,9S14,18,9,18z M9,16.2c4,0,7.2-3.2,7.2-7.2S13,1.8,9,1.8S1.8,5,1.8,9S5,16.2,9,16.2z"/>
|
|
4
|
-
<g>
|
|
5
|
-
<g>
|
|
6
|
-
<path d="M8.5,11.1C8,9.1,6.9,8.4,4.7,8.7c0,0,0,0-0.1,0c0,0,0,0-0.1,0c0,0,0,0,0,0.1c0,0,0,0,0,0.1C4.6,9.5,5.2,11.5,8.5,11.1z"/>
|
|
7
|
-
<path d="M9.2,9.6c2-2.7,1.8-4.5-0.9-6.8c0,0-0.1,0-0.2,0C8,2.8,8,2.8,7.9,2.9C7.2,3.6,5.3,6.2,9.2,9.6"/>
|
|
8
|
-
<path d="M13.3,9.5C13.3,9.5,13.4,9.5,13.3,9.5c0.1,0,0.1,0.1,0.2,0.1v0.1v0.1c-0.1,0.8-0.6,3-4.1,3.1c-0.2,0.5-0.2,1.1,0,1.6
|
|
9
|
-
l-0.9,0.3c-0.2-0.9-0.2-1.8,0-2.7C8.7,11.5,9,11,9.4,10.6s0.9-0.7,1.5-0.9C11.7,9.5,12.5,9.4,13.3,9.5"/>
|
|
10
|
-
</g>
|
|
11
|
-
</g>
|
|
12
|
-
</svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM5 5V19H19V5H5Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17.6177 5.9681L19.0711 4.51472L20.4853 5.92893L19.0319 7.38231C20.2635 8.92199 21 10.875 21 13C21 17.9706 16.9706 22 12 22C7.02944 22 3 17.9706 3 13C3 8.02944 7.02944 4 12 4C14.125 4 16.078 4.73647 17.6177 5.9681ZM12 20C15.866 20 19 16.866 19 13C19 9.13401 15.866 6 12 6C8.13401 6 5 9.13401 5 13C5 16.866 8.13401 20 12 20ZM11 8H13V14H11V8ZM8 1H16V3H8V1Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M5.32943 3.27152C6.56252 2.83314 7.9923 3.10743 8.97927 4.0944C10.1002 5.21531 10.3019 6.90735 9.5843 8.23378L20.293 18.9436L18.8788 20.3579L8.16982 9.64869C6.84325 10.3668 5.15069 10.1653 4.02952 9.04415C3.04227 8.0569 2.7681 6.62659 3.20701 5.39326L5.44373 7.62994C6.02952 8.21572 6.97927 8.21572 7.56505 7.62994C8.15084 7.04415 8.15084 6.0944 7.56505 5.50862L5.32943 3.27152ZM15.6968 5.15506L18.8788 3.38729L20.293 4.80151L18.5252 7.98349L16.7574 8.33704L14.6361 10.4584L13.2219 9.04415L15.3432 6.92283L15.6968 5.15506ZM8.97927 13.2868L10.3935 14.701L5.09018 20.0043C4.69966 20.3948 4.06649 20.3948 3.67597 20.0043C3.31334 19.6417 3.28744 19.0698 3.59826 18.6773L3.67597 18.5901L8.97927 13.2868Z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z"></path></svg>
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
.ts-input {
|
|
2
|
-
width: 100%;
|
|
3
|
-
}
|
|
4
|
-
.ts-input-container {
|
|
5
|
-
position: relative;
|
|
6
|
-
width: 100%;
|
|
7
|
-
}
|
|
8
|
-
.ts-input-container input {
|
|
9
|
-
width: 100%;
|
|
10
|
-
height: 32px;
|
|
11
|
-
border: 1px solid #949494;
|
|
12
|
-
font-weight: 600;
|
|
13
|
-
}
|
|
14
|
-
.ts-input-container--error input {
|
|
15
|
-
border: 1px solid #e3262f;
|
|
16
|
-
}
|
|
17
|
-
.ts-input-error {
|
|
18
|
-
display: flex;
|
|
19
|
-
margin-top: 4px;
|
|
20
|
-
color: #e3262f;
|
|
21
|
-
}
|
|
22
|
-
.ts-input-error--icon {
|
|
23
|
-
margin-right: 4px;
|
|
24
|
-
}
|
|
25
|
-
.ts-input-error--label {
|
|
26
|
-
font-size: 12px;
|
|
27
|
-
font-weight: 500;
|
|
28
|
-
}
|
|
29
|
-
input::placeholder {
|
|
30
|
-
color: #7a7a7a;
|
|
31
|
-
font-weight: 400;
|
|
32
|
-
}
|
|
33
|
-
input:disabled {
|
|
34
|
-
cursor: not-allowed;
|
|
35
|
-
}
|
|
36
|
-
input:focus {
|
|
37
|
-
border: 1.5px solid #3643ba;
|
|
38
|
-
}
|
|
39
|
-
.ts-input--padding-0 input {
|
|
40
|
-
padding: 0 10px;
|
|
41
|
-
}
|
|
42
|
-
.ts-input--padding-1 input {
|
|
43
|
-
padding: 0 30px 0 10px;
|
|
44
|
-
}
|
|
45
|
-
.ts-input--padding-2 input {
|
|
46
|
-
padding: 0 100px 0 10px;
|
|
47
|
-
}
|
|
48
|
-
/* ####### */
|
|
49
|
-
/* LABEL */
|
|
50
|
-
.ts-input-label {
|
|
51
|
-
padding-bottom: 6px;
|
|
52
|
-
}
|
|
53
|
-
/* ###### */
|
|
54
|
-
/* ICON */
|
|
55
|
-
.ts-input-icon {
|
|
56
|
-
position: absolute;
|
|
57
|
-
top: 0;
|
|
58
|
-
right: 0;
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
justify-content: center;
|
|
62
|
-
width: 32px;
|
|
63
|
-
min-width: 32px;
|
|
64
|
-
height: 32px;
|
|
65
|
-
color: #949494;
|
|
66
|
-
}
|
|
67
|
-
/* ################ */
|
|
68
|
-
/* BY DEFAULT TAG */
|
|
69
|
-
.ts-input-tag {
|
|
70
|
-
position: absolute;
|
|
71
|
-
top: 4px;
|
|
72
|
-
right: 4px;
|
|
73
|
-
display: flex;
|
|
74
|
-
align-items: center;
|
|
75
|
-
justify-content: center;
|
|
76
|
-
height: 24px;
|
|
77
|
-
padding: 0 8px;
|
|
78
|
-
background: #ebecf7;
|
|
79
|
-
color: #3643ba;
|
|
80
|
-
font-weight: 400;
|
|
81
|
-
font-size: 12px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/* ######### */
|
|
85
|
-
/* GLOBALS */
|
|
86
|
-
* {
|
|
87
|
-
font-size: 14px;
|
|
88
|
-
outline: none;
|
|
89
|
-
box-sizing: border-box;
|
|
90
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
91
|
-
'Helvetica Neue', sans-serif;
|
|
92
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TsIcon } from '../../TsIcon/TsIcon';
|
|
3
|
-
import './TsInput.css';
|
|
4
|
-
export const TsInput = ({ byDefault, error, icon, label, value, onChange, ...props }) => {
|
|
5
|
-
// #########
|
|
6
|
-
// Rendering
|
|
7
|
-
return (React.createElement("div", { className: `ts-input ${byDefault ? 'ts-input--padding-2' : icon ? 'ts-input--padding-1' : 'ts-input--padding-0'}` },
|
|
8
|
-
label && React.createElement("div", { className: "ts-input-label" }, label),
|
|
9
|
-
React.createElement("div", { className: `ts-input-container ${error && error !== '' ? 'ts-input-container--error' : ''}` },
|
|
10
|
-
React.createElement("input", { type: "text", value: value, onChange: e => onChange(e.target.value), ...props }),
|
|
11
|
-
byDefault && React.createElement("div", { className: "ts-input-tag" },
|
|
12
|
-
byDefault,
|
|
13
|
-
" by default"),
|
|
14
|
-
icon && (React.createElement("div", { className: "ts-input-icon" },
|
|
15
|
-
React.createElement(TsIcon, { name: icon, size: "16" })))),
|
|
16
|
-
error && error !== '' && (React.createElement("div", { className: "ts-input-error" },
|
|
17
|
-
React.createElement("div", { className: "ts-input-error--icon" },
|
|
18
|
-
React.createElement(TsIcon, { name: "alert-circle", size: "16" })),
|
|
19
|
-
React.createElement("div", { className: "ts-input-error--label" }, error)))));
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=TsInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TsInput.js","sourceRoot":"","sources":["../../../../src/components/TsInput/TsInput/TsInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAgB,EAAE,EAAE;IACpG,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BACE,SAAS,EAAE,YAAY,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,qBAAqB,EAAE;QAEhH,KAAK,IAAI,6BAAK,SAAS,EAAC,gBAAgB,IAAE,KAAK,CAAO;QACvD,6BAAK,SAAS,EAAE,sBAAsB,KAAK,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,EAAE,EAAE;YAC9F,+BAAO,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAM,KAAK,GAAI;YACtF,SAAS,IAAI,6BAAK,SAAS,EAAC,cAAc;gBAAE,SAAS;8BAAkB;YACvE,IAAI,IAAI,CACP,6BAAK,SAAS,EAAC,eAAe;gBAC5B,oBAAC,MAAM,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,GAAG,CAC5B,CACP,CACG;QAEL,KAAK,IAAI,KAAK,KAAK,EAAE,IAAI,CACxB,6BAAK,SAAS,EAAC,gBAAgB;YAC7B,6BAAK,SAAS,EAAC,sBAAsB;gBACnC,oBAAC,MAAM,IAAC,IAAI,EAAC,cAAc,EAAC,IAAI,EAAC,IAAI,GAAG,CACpC;YACN,6BAAK,SAAS,EAAC,uBAAuB,IAAE,KAAK,CAAO,CAChD,CACP,CACG,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TsIcon } from '../../TsIcon/TsIcon';
|
|
3
|
-
import { TsInputProps } from './TsInput.types';
|
|
4
|
-
import './TsInput.css';
|
|
5
|
-
|
|
6
|
-
export const TsInput = ({ byDefault, error, icon, label, value, onChange, ...props }: TsInputProps) => {
|
|
7
|
-
// #########
|
|
8
|
-
// Rendering
|
|
9
|
-
return (
|
|
10
|
-
<div
|
|
11
|
-
className={`ts-input ${byDefault ? 'ts-input--padding-2' : icon ? 'ts-input--padding-1' : 'ts-input--padding-0'}`}
|
|
12
|
-
>
|
|
13
|
-
{label && <div className="ts-input-label">{label}</div>}
|
|
14
|
-
<div className={`ts-input-container ${error && error !== '' ? 'ts-input-container--error' : ''}`}>
|
|
15
|
-
<input type="text" value={value} onChange={e => onChange(e.target.value)} {...props} />
|
|
16
|
-
{byDefault && <div className="ts-input-tag">{byDefault} by default</div>}
|
|
17
|
-
{icon && (
|
|
18
|
-
<div className="ts-input-icon">
|
|
19
|
-
<TsIcon name={icon} size="16" />
|
|
20
|
-
</div>
|
|
21
|
-
)}
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
{error && error !== '' && (
|
|
25
|
-
<div className="ts-input-error">
|
|
26
|
-
<div className="ts-input-error--icon">
|
|
27
|
-
<TsIcon name="alert-circle" size="16" />
|
|
28
|
-
</div>
|
|
29
|
-
<div className="ts-input-error--label">{error}</div>
|
|
30
|
-
</div>
|
|
31
|
-
)}
|
|
32
|
-
</div>
|
|
33
|
-
);
|
|
34
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
export type TsInputProps = {
|
|
3
|
-
byDefault?: string | number;
|
|
4
|
-
error?: string;
|
|
5
|
-
icon?: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
onChange: (value: string) => void;
|
|
8
|
-
} & Omit<Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'>, 'size'>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TsInput.types.js","sourceRoot":"","sources":["../../../../src/components/TsInput/TsInput/TsInput.types.tsx"],"names":[],"mappings":""}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
export type TsInputProps = {
|
|
4
|
-
byDefault?: string | number;
|
|
5
|
-
error?: string;
|
|
6
|
-
icon?: string;
|
|
7
|
-
label?: string;
|
|
8
|
-
onChange: (value: string) => void;
|
|
9
|
-
} & Omit<Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'>, 'size'>;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { TsInput } from '../TsInput';
|
|
4
|
-
import { icons } from '../../../TsIcon/icons';
|
|
5
|
-
|
|
6
|
-
<Meta title="Components/Input" />
|
|
7
|
-
|
|
8
|
-
export const inputArgTypes = {
|
|
9
|
-
byDefault: {
|
|
10
|
-
control: 'text',
|
|
11
|
-
description: 'Add "by default" tag.',
|
|
12
|
-
},
|
|
13
|
-
error: {
|
|
14
|
-
control: 'text',
|
|
15
|
-
description: 'Error of the input.',
|
|
16
|
-
},
|
|
17
|
-
icon: {
|
|
18
|
-
control: 'select',
|
|
19
|
-
options: Object.keys(icons),
|
|
20
|
-
description: 'Icon of the input.',
|
|
21
|
-
},
|
|
22
|
-
label: {
|
|
23
|
-
control: 'text',
|
|
24
|
-
description: 'label of the input.',
|
|
25
|
-
},
|
|
26
|
-
placeholder: {
|
|
27
|
-
control: 'text',
|
|
28
|
-
description: 'Placeholder of the input.',
|
|
29
|
-
},
|
|
30
|
-
value: {
|
|
31
|
-
control: 'text',
|
|
32
|
-
description: 'Value of the input.',
|
|
33
|
-
},
|
|
34
|
-
disabled: {
|
|
35
|
-
control: 'boolean',
|
|
36
|
-
description: 'Enable state of the input.',
|
|
37
|
-
table: { defaultValue: { summary: 'false' } },
|
|
38
|
-
},
|
|
39
|
-
onChange: {
|
|
40
|
-
control: 'function',
|
|
41
|
-
description: 'The handler called when entering text (not available on playground).',
|
|
42
|
-
},
|
|
43
|
-
onValidate: {
|
|
44
|
-
control: 'function',
|
|
45
|
-
description: 'The handler called on input blur (not available on playground).',
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
# Input
|
|
50
|
-
|
|
51
|
-
Input allows the user to enter content and data when the expected user input is a single line of text.
|
|
52
|
-
|
|
53
|
-
## Overview
|
|
54
|
-
|
|
55
|
-
<Canvas>
|
|
56
|
-
<Story
|
|
57
|
-
name="Overview"
|
|
58
|
-
args={{
|
|
59
|
-
byDefault: '',
|
|
60
|
-
error: '',
|
|
61
|
-
icon: '',
|
|
62
|
-
label: 'Label',
|
|
63
|
-
placeholder: 'Enter some text',
|
|
64
|
-
value: '',
|
|
65
|
-
disabled: false,
|
|
66
|
-
onChange: () => {},
|
|
67
|
-
onValidate: () => {},
|
|
68
|
-
}}
|
|
69
|
-
argTypes={inputArgTypes}
|
|
70
|
-
>
|
|
71
|
-
{args => <TsInput {...args} />}
|
|
72
|
-
</Story>
|
|
73
|
-
</Canvas>
|
|
74
|
-
|
|
75
|
-
## Props
|
|
76
|
-
|
|
77
|
-
<ArgsTable story="Overview" of={TsInput} />
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
@keyframes rotation {
|
|
2
|
-
0% {
|
|
3
|
-
transform: rotate(0deg);
|
|
4
|
-
}
|
|
5
|
-
100% {
|
|
6
|
-
transform: rotate(360deg);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.ts-loader {
|
|
11
|
-
border: 2px solid;
|
|
12
|
-
border-color: #3643ba transparent;
|
|
13
|
-
border-radius: 50%;
|
|
14
|
-
display: inline-block;
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
animation: rotation 1.5s linear infinite;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/* ####### */
|
|
20
|
-
/* SIZES */
|
|
21
|
-
.ts-loader--sm {
|
|
22
|
-
width: 24px;
|
|
23
|
-
height: 24px;
|
|
24
|
-
}
|
|
25
|
-
.ts-loader--md {
|
|
26
|
-
width: 32px;
|
|
27
|
-
height: 32px;
|
|
28
|
-
}
|
|
29
|
-
.ts-loader--lg {
|
|
30
|
-
width: 44px;
|
|
31
|
-
height: 44px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* ######### */
|
|
35
|
-
/* GLOBALS */
|
|
36
|
-
* {
|
|
37
|
-
font-size: 14px;
|
|
38
|
-
outline: none;
|
|
39
|
-
box-sizing: border-box;
|
|
40
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
41
|
-
'Helvetica Neue', sans-serif;
|
|
42
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TsLoader.js","sourceRoot":"","sources":["../../../src/components/TsLoader/TsLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,EAAiB,EAAE,EAAE;IACzD,OAAO,6BAAK,SAAS,EAAE,wBAAwB,IAAI,EAAE,GAAI,CAAC;AAC5D,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TsLoader.types.js","sourceRoot":"","sources":["../../../src/components/TsLoader/TsLoader.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { TsLoader } from '../TsLoader';
|
|
4
|
-
|
|
5
|
-
<Meta title="Components/Loader" />
|
|
6
|
-
|
|
7
|
-
export const loaderArgTypes = {
|
|
8
|
-
size: {
|
|
9
|
-
control: 'inline-radio',
|
|
10
|
-
options: ['sm', 'md', 'lg'],
|
|
11
|
-
description: 'Define the size of the loader.',
|
|
12
|
-
table: { defaultValue: { summary: 'md' } },
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
# Loader
|
|
17
|
-
|
|
18
|
-
Loader express to user that an action is occuring.
|
|
19
|
-
|
|
20
|
-
## Overview
|
|
21
|
-
|
|
22
|
-
<Canvas>
|
|
23
|
-
<Story name="Overview" args={{ size: 'md' }} argTypes={loaderArgTypes}>
|
|
24
|
-
{args => <TsLoader {...args}>{args.children}</TsLoader>}
|
|
25
|
-
</Story>
|
|
26
|
-
</Canvas>
|
|
27
|
-
|
|
28
|
-
## Props
|
|
29
|
-
|
|
30
|
-
<ArgsTable story="Overview" of={TsLoader} />
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
.ts-tabs {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
width: 100%;
|
|
5
|
-
height: 100%;
|
|
6
|
-
}
|
|
7
|
-
.ts-tabs-header {
|
|
8
|
-
display: flex;
|
|
9
|
-
width: 100%;
|
|
10
|
-
height: 64px;
|
|
11
|
-
border-bottom: 1px solid #d9dde1;
|
|
12
|
-
}
|
|
13
|
-
.ts-tabs-items-container {
|
|
14
|
-
flex: 1;
|
|
15
|
-
height: 100%;
|
|
16
|
-
padding: 0 16px;
|
|
17
|
-
overflow: auto;
|
|
18
|
-
}
|
|
19
|
-
.ts-tabs-items {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
height: 100%;
|
|
23
|
-
}
|
|
24
|
-
.ts-tabs-item {
|
|
25
|
-
display: flex;
|
|
26
|
-
align-items: center;
|
|
27
|
-
margin-right: 20px;
|
|
28
|
-
padding: 4px 0;
|
|
29
|
-
white-space: nowrap;
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
}
|
|
32
|
-
.ts-tabs-item--selected {
|
|
33
|
-
border-bottom: 1px solid #3643ba;
|
|
34
|
-
color: #3643ba;
|
|
35
|
-
}
|
|
36
|
-
.ts-tabs-item--disabled {
|
|
37
|
-
color: #8c96a2;
|
|
38
|
-
cursor: not-allowed;
|
|
39
|
-
}
|
|
40
|
-
.ts-tabs-item--selected-pin {
|
|
41
|
-
width: 6px;
|
|
42
|
-
height: 6px;
|
|
43
|
-
margin-left: 8px;
|
|
44
|
-
border-radius: 50%;
|
|
45
|
-
background: #3643ba;
|
|
46
|
-
}
|
|
47
|
-
.ts-tabs-actions {
|
|
48
|
-
display: flex;
|
|
49
|
-
align-items: center;
|
|
50
|
-
padding: 0 16px;
|
|
51
|
-
}
|
|
52
|
-
.ts-tabs-actions > * {
|
|
53
|
-
margin-left: 10px;
|
|
54
|
-
}
|
|
55
|
-
.ts-tabs-container {
|
|
56
|
-
flex: 1;
|
|
57
|
-
width: 100%;
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/* ######### */
|
|
62
|
-
/* GLOBALS */
|
|
63
|
-
* {
|
|
64
|
-
font-size: 14px;
|
|
65
|
-
outline: none;
|
|
66
|
-
box-sizing: border-box;
|
|
67
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
68
|
-
'Helvetica Neue', sans-serif;
|
|
69
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { TsIcon } from '../TsIcon/TsIcon';
|
|
4
|
-
import './TsTabs.css';
|
|
5
|
-
export const TsTabs = ({ defaultSelectedTabId, tabs }) => {
|
|
6
|
-
const [selectedTab, setSelectedTab] = useState(tabs.find(t => t.id === defaultSelectedTabId) ?? tabs[0]);
|
|
7
|
-
// ########
|
|
8
|
-
// Handlers
|
|
9
|
-
const handleSelectTab = (tab) => {
|
|
10
|
-
setSelectedTab(tab);
|
|
11
|
-
tab.onClick?.();
|
|
12
|
-
};
|
|
13
|
-
// #########
|
|
14
|
-
// Rendering
|
|
15
|
-
return (React.createElement("div", { className: "ts-tabs" },
|
|
16
|
-
React.createElement("div", { className: "ts-tabs-header" },
|
|
17
|
-
React.createElement("div", { className: "ts-tabs-items-container" },
|
|
18
|
-
React.createElement("div", { className: "ts-tabs-items" }, tabs.map(tab => (React.createElement("div", { key: tab.id, className: `
|
|
19
|
-
ts-tabs-item
|
|
20
|
-
${tab.id === selectedTab.id ? 'ts-tabs-item--selected' : ''}
|
|
21
|
-
${tab.disabled ? 'ts-tabs-item--disabled' : ''}
|
|
22
|
-
`, onClick: () => !tab.disabled && handleSelectTab(tab) },
|
|
23
|
-
tab.icon && (React.createElement("div", { className: "ts-tabs-item--icon" },
|
|
24
|
-
React.createElement(TsIcon, { name: tab.icon }))),
|
|
25
|
-
React.createElement("div", { className: "ts-tabs-item--label" }, tab.label),
|
|
26
|
-
tab.id === selectedTab.id && React.createElement("div", { className: "ts-tabs-item--selected-pin" })))))),
|
|
27
|
-
selectedTab?.actions && React.createElement("div", { className: "ts-tabs-actions" }, selectedTab?.actions)),
|
|
28
|
-
React.createElement("div", { className: "ts-tabs-container" }, selectedTab?.element)));
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=TsTabs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TsTabs.js","sourceRoot":"","sources":["../../../src/components/TsTabs/TsTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAE,oBAAoB,EAAE,IAAI,EAAe,EAAE,EAAE;IACpE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAU,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,oBAAoB,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAElH,WAAW;IACX,WAAW;IACX,MAAM,eAAe,GAAG,CAAC,GAAY,EAAE,EAAE;QACvC,cAAc,CAAC,GAAG,CAAC,CAAC;QACpB,GAAG,CAAC,OAAO,EAAE,EAAE,CAAC;IAClB,CAAC,CAAC;IAEF,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAC,SAAS;QACtB,6BAAK,SAAS,EAAC,gBAAgB;YAC7B,6BAAK,SAAS,EAAC,yBAAyB;gBACtC,6BAAK,SAAS,EAAC,eAAe,IAC3B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CACf,6BACE,GAAG,EAAE,GAAG,CAAC,EAAE,EACX,SAAS,EAAE;;oBAEP,GAAG,CAAC,EAAE,KAAK,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE;oBACzD,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE;iBAC/C,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,IAAI,eAAe,CAAC,GAAG,CAAC;oBAEnD,GAAG,CAAC,IAAI,IAAI,CACX,6BAAK,SAAS,EAAC,oBAAoB;wBACjC,oBAAC,MAAM,IAAC,IAAI,EAAE,GAAG,CAAC,IAAI,GAAI,CACtB,CACP;oBACD,6BAAK,SAAS,EAAC,qBAAqB,IAAE,GAAG,CAAC,KAAK,CAAO;oBACrD,GAAG,CAAC,EAAE,KAAK,WAAW,CAAC,EAAE,IAAI,6BAAK,SAAS,EAAC,4BAA4B,GAAG,CACxE,CACP,CAAC,CACE,CACF;YAEL,WAAW,EAAE,OAAO,IAAI,6BAAK,SAAS,EAAC,iBAAiB,IAAE,WAAW,EAAE,OAAO,CAAO,CAClF;QAEN,6BAAK,SAAS,EAAC,mBAAmB,IAAE,WAAW,EAAE,OAAO,CAAO,CAC3D,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
export type TabItem = {
|
|
3
|
-
icon?: string;
|
|
4
|
-
id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
element: ReactElement;
|
|
8
|
-
actions?: ReactElement;
|
|
9
|
-
onClick?: () => void;
|
|
10
|
-
};
|
|
11
|
-
export type TsTabsProps = {
|
|
12
|
-
defaultSelectedTabId?: string;
|
|
13
|
-
tabs: TabItem[];
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TsTabs.types.js","sourceRoot":"","sources":["../../../src/components/TsTabs/TsTabs.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { TsButton } from '../../TsButton/TsButton';
|
|
4
|
-
import { TsTabs } from '../TsTabs';
|
|
5
|
-
|
|
6
|
-
<Meta title="Components/Tabs" />
|
|
7
|
-
|
|
8
|
-
export const tabsArgTypes = {};
|
|
9
|
-
|
|
10
|
-
# Tabs
|
|
11
|
-
|
|
12
|
-
Tabs are used to move from one content to another within the same context.
|
|
13
|
-
|
|
14
|
-
## Overview
|
|
15
|
-
|
|
16
|
-
<Canvas>
|
|
17
|
-
<Story
|
|
18
|
-
name="Overview"
|
|
19
|
-
args={{
|
|
20
|
-
tabs: [
|
|
21
|
-
{
|
|
22
|
-
id: '1',
|
|
23
|
-
label: 'Tab item 1',
|
|
24
|
-
element: <p>Tab item 1 content</p>,
|
|
25
|
-
actions: (
|
|
26
|
-
<>
|
|
27
|
-
<TsButton>Action 1</TsButton>
|
|
28
|
-
<TsButton>Action 2</TsButton>
|
|
29
|
-
</>
|
|
30
|
-
),
|
|
31
|
-
},
|
|
32
|
-
{ id: '2', label: 'Tab item 2', element: <p>Tab item 2 content</p> },
|
|
33
|
-
{ id: 'disabled', label: 'Tab item disabled', disabled: true, element: <></> },
|
|
34
|
-
{
|
|
35
|
-
id: '3',
|
|
36
|
-
label: 'Tab item 3',
|
|
37
|
-
element: <p>Tab item 3 content</p>,
|
|
38
|
-
actions: <TsButton icon="add">Action</TsButton>,
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
}}
|
|
42
|
-
argTypes={tabsArgTypes}
|
|
43
|
-
>
|
|
44
|
-
{args => <TsTabs {...args} />}
|
|
45
|
-
</Story>
|
|
46
|
-
</Canvas>
|
|
47
|
-
|
|
48
|
-
## Props
|
|
49
|
-
|
|
50
|
-
<ArgsTable story="Overview" of={TsTabs} />
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { useEffect, useRef } from 'react';
|
|
2
|
-
export const useClickOutside = (callback) => {
|
|
3
|
-
const ref = useRef(null);
|
|
4
|
-
const handleClickOutside = (event) => {
|
|
5
|
-
if (ref.current && !ref.current.contains(event.target))
|
|
6
|
-
callback();
|
|
7
|
-
};
|
|
8
|
-
useEffect(() => {
|
|
9
|
-
document.addEventListener('click', handleClickOutside);
|
|
10
|
-
return () => document.removeEventListener('click', handleClickOutside);
|
|
11
|
-
}, []);
|
|
12
|
-
return ref;
|
|
13
|
-
};
|
|
14
|
-
//# 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,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,QAAoB,EAAE,EAAE;IACtD,MAAM,GAAG,GAAG,MAAM,CAAiB,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,SAAS,CAAC,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"}
|
package/esm/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './components/TsButton/TsButton';
|
|
2
|
-
export * from './components/TsCheckbox/TsCheckbox';
|
|
3
|
-
export * from './components/TsDropdown/TsDropdown';
|
|
4
|
-
export * from './components/TsIcon/TsIcon';
|
|
5
|
-
export * from './components/TsInput/TsInput/TsInput';
|
|
6
|
-
export * from './components/TsLoader/TsLoader';
|
|
7
|
-
export * from './components/TsTabs/TsTabs';
|
|
8
|
-
export * from './layouts/TsHeader/TsHeader';
|
|
9
|
-
export * from './layouts/TsHeader/TsHeaderProfile';
|
|
10
|
-
export * from './layouts/TsNavigation/TsNavigation';
|
package/esm/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './components/TsButton/TsButton';
|
|
2
|
-
export * from './components/TsCheckbox/TsCheckbox';
|
|
3
|
-
export * from './components/TsDropdown/TsDropdown';
|
|
4
|
-
export * from './components/TsIcon/TsIcon';
|
|
5
|
-
export * from './components/TsInput/TsInput/TsInput';
|
|
6
|
-
export * from './components/TsLoader/TsLoader';
|
|
7
|
-
export * from './components/TsTabs/TsTabs';
|
|
8
|
-
export * from './layouts/TsHeader/TsHeader';
|
|
9
|
-
export * from './layouts/TsHeader/TsHeaderProfile';
|
|
10
|
-
export * from './layouts/TsNavigation/TsNavigation';
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC"}
|