@dktunited-techoff/techoff-suite-ui 1.7.10 → 1.8.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/src/components/{TsDropdown → TsDropdowns/TsDropdown}/TsDropdown.tsx +5 -5
- package/{lib/components → src/components/TsDropdowns}/TsDropdown/__stories__/TsDropdown.stories.mdx +1 -1
- package/{lib/components/TsDropdown/TsDropdown.css → src/components/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/TsInput/TsInput/TsInput.css +19 -0
- package/src/components/TsInput/TsInput/TsInput.tsx +5 -2
- package/src/components/TsInput/TsInput/TsInput.types.tsx +1 -0
- package/src/components/TsInput/TsInput/__stories__/TsInput.stories.mdx +5 -0
- package/src/index.ts +2 -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 -73
- package/esm/components/TsInput/TsInput/TsInput.d.ts +0 -4
- package/esm/components/TsInput/TsInput/TsInput.js +0 -18
- package/esm/components/TsInput/TsInput/TsInput.js.map +0 -1
- package/esm/components/TsInput/TsInput/TsInput.tsx +0 -31
- package/esm/components/TsInput/TsInput/TsInput.types.d.ts +0 -7
- 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 -8
- package/esm/components/TsInput/TsInput/__stories__/TsInput.stories.mdx +0 -72
- 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.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 -73
- package/lib/components/TsInput/TsInput/TsInput.d.ts +0 -4
- package/lib/components/TsInput/TsInput/TsInput.js +0 -22
- package/lib/components/TsInput/TsInput/TsInput.js.map +0 -1
- package/lib/components/TsInput/TsInput/TsInput.tsx +0 -31
- package/lib/components/TsInput/TsInput/TsInput.types.d.ts +0 -7
- 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 -8
- package/lib/components/TsInput/TsInput/__stories__/TsInput.stories.mdx +0 -72
- 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/TsDropdown.css +0 -114
- 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,84 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { TsButton } from '../TsButton';
|
|
4
|
-
import { icons } from '../../TsIcon/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
|
-
disabled: {
|
|
42
|
-
control: 'boolean',
|
|
43
|
-
description: 'Define if the button is disabled',
|
|
44
|
-
table: { defaultValue: { summary: 'false' } },
|
|
45
|
-
},
|
|
46
|
-
rounded: {
|
|
47
|
-
control: 'boolean',
|
|
48
|
-
description: 'Define if the button has its corner full rounded',
|
|
49
|
-
table: { defaultValue: { summary: 'false' } },
|
|
50
|
-
},
|
|
51
|
-
onClick: {
|
|
52
|
-
control: 'function',
|
|
53
|
-
description: 'The handler called when clicking on the button (not available on playground).',
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
# Button
|
|
58
|
-
|
|
59
|
-
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.
|
|
60
|
-
|
|
61
|
-
## Overview
|
|
62
|
-
|
|
63
|
-
<Canvas>
|
|
64
|
-
<Story
|
|
65
|
-
name="Overview"
|
|
66
|
-
args={{
|
|
67
|
-
children: 'Button',
|
|
68
|
-
iconDirection: 'left',
|
|
69
|
-
size: 'md',
|
|
70
|
-
variant: 'primary',
|
|
71
|
-
block: false,
|
|
72
|
-
disabled: false,
|
|
73
|
-
rounded: false,
|
|
74
|
-
onClick: () => {},
|
|
75
|
-
}}
|
|
76
|
-
argTypes={buttonArgTypes}
|
|
77
|
-
>
|
|
78
|
-
{args => <TsButton {...args}>{args.children}</TsButton>}
|
|
79
|
-
</Story>
|
|
80
|
-
</Canvas>
|
|
81
|
-
|
|
82
|
-
## Props
|
|
83
|
-
|
|
84
|
-
<ArgsTable story="Overview" of={TsButton} />
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
.ts-checkbox {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
margin-left: -3px;
|
|
6
|
-
}
|
|
7
|
-
/* ########## */
|
|
8
|
-
/* DISABLED */
|
|
9
|
-
.ts-checkbox--disabled {
|
|
10
|
-
cursor: not-allowed;
|
|
11
|
-
}
|
|
12
|
-
.ts-checkbox--disabled .ts-checkbox-box {
|
|
13
|
-
color: #d7daf1;
|
|
14
|
-
}
|
|
15
|
-
.ts-checkbox--disabled:hover .ts-checkbox-box {
|
|
16
|
-
background: transparent;
|
|
17
|
-
}
|
|
18
|
-
/* ##### */
|
|
19
|
-
/* BOX */
|
|
20
|
-
.ts-checkbox-box {
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
width: 24px;
|
|
25
|
-
min-width: 24px;
|
|
26
|
-
height: 24px;
|
|
27
|
-
min-height: 24px;
|
|
28
|
-
border-radius: 6px;
|
|
29
|
-
color: #949494;
|
|
30
|
-
}
|
|
31
|
-
.ts-checkbox-box--checked,
|
|
32
|
-
.ts-checkbox:hover .ts-checkbox-box:not(.ts-checkbox-box--checked) {
|
|
33
|
-
color: #3643ba;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* ################# */
|
|
37
|
-
/* LABEL / CAPTION */
|
|
38
|
-
.ts-checkbox-container {
|
|
39
|
-
width: 100%;
|
|
40
|
-
padding: 4px 0 4px 8px;
|
|
41
|
-
border-radius: 6px;
|
|
42
|
-
}
|
|
43
|
-
.ts-checkbox-label {
|
|
44
|
-
white-space: nowrap;
|
|
45
|
-
}
|
|
46
|
-
.ts-checkbox-container--with-caption .ts-checkbox-label {
|
|
47
|
-
color: #3643ba;
|
|
48
|
-
font-weight: 700;
|
|
49
|
-
}
|
|
50
|
-
.ts-checkbox-caption {
|
|
51
|
-
color: #404040;
|
|
52
|
-
font-size: 12px;
|
|
53
|
-
font-style: italic;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/* ######### */
|
|
57
|
-
/* GLOBALS */
|
|
58
|
-
* {
|
|
59
|
-
font-size: 14px;
|
|
60
|
-
outline: none;
|
|
61
|
-
box-sizing: border-box;
|
|
62
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
63
|
-
'Helvetica Neue', sans-serif;
|
|
64
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TsIcon } from '../TsIcon/TsIcon';
|
|
3
|
-
import './TsCheckbox.css';
|
|
4
|
-
export const TsCheckbox = ({ caption, label, checked, disabled, onChange }) => {
|
|
5
|
-
// ########
|
|
6
|
-
// Handlers
|
|
7
|
-
const handleChange = () => !disabled && onChange(!checked);
|
|
8
|
-
// #########
|
|
9
|
-
// Rendering
|
|
10
|
-
return (React.createElement("div", { className: `ts-checkbox ${disabled ? 'ts-checkbox--disabled' : ''}`, onClick: handleChange },
|
|
11
|
-
React.createElement("div", { className: `ts-checkbox-box ${checked ? 'ts-checkbox-box--checked' : ''}` },
|
|
12
|
-
React.createElement(TsIcon, { name: checked ? 'check-square-filled' : 'square', size: "24" })),
|
|
13
|
-
React.createElement("div", { className: `ts-checkbox-container ${caption ? 'ts-checkbox-container--with-caption' : ''}` },
|
|
14
|
-
React.createElement("div", { className: "ts-checkbox-label" }, label),
|
|
15
|
-
caption && React.createElement("div", { className: "ts-checkbox-caption" }, caption))));
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=TsCheckbox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TsCheckbox.js","sourceRoot":"","sources":["../../../src/components/TsCheckbox/TsCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,kBAAkB,CAAC;AAE1B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAmB,EAAE,EAAE;IAC7F,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,eAAe,QAAQ,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,YAAY;QAC7F,6BAAK,SAAS,EAAE,mBAAmB,OAAO,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,EAAE,EAAE;YAC5E,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAC,IAAI,GAAG,CAClE;QAEN,6BAAK,SAAS,EAAE,yBAAyB,OAAO,CAAC,CAAC,CAAC,qCAAqC,CAAC,CAAC,CAAC,EAAE,EAAE;YAC7F,6BAAK,SAAS,EAAC,mBAAmB,IAAE,KAAK,CAAO;YAC/C,OAAO,IAAI,6BAAK,SAAS,EAAC,qBAAqB,IAAE,OAAO,CAAO,CAC5D,CACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TsCheckbox.types.js","sourceRoot":"","sources":["../../../src/components/TsCheckbox/TsCheckbox.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { TsCheckbox } from '../TsCheckbox';
|
|
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 => <TsCheckbox {...args}>{args.children}</TsCheckbox>}
|
|
51
|
-
</Story>
|
|
52
|
-
</Canvas>
|
|
53
|
-
|
|
54
|
-
## Props
|
|
55
|
-
|
|
56
|
-
<ArgsTable story="Overview" of={TsCheckbox} />
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TsDropdownProps } from './TsDropdown.types';
|
|
3
|
-
import './TsDropdown.css';
|
|
4
|
-
export declare const TsDropdown: <T extends unknown>({ containerRef, error, label, options, placeholder, reloadOptionsOn, searchPlaceholder, value, disabled, searchable, getOptionLabel, getOptionValue, loadOptions, onChange, }: TsDropdownProps<T>) => React.JSX.Element;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { TsIcon } from '../TsIcon/TsIcon';
|
|
4
|
-
import { TsInput } from '../TsInput/TsInput/TsInput';
|
|
5
|
-
import { useClickOutside } from '../../hooks/use-click-outside';
|
|
6
|
-
import { TsLoader } from '../TsLoader/TsLoader';
|
|
7
|
-
import './TsDropdown.css';
|
|
8
|
-
export const TsDropdown = ({ containerRef, error, label, options, placeholder, reloadOptionsOn = [], searchPlaceholder, value, disabled, searchable, getOptionLabel, getOptionValue, loadOptions, onChange, }) => {
|
|
9
|
-
const [showDropdownMenu, setShowDropdownMenu] = useState(false);
|
|
10
|
-
const [searchValue, setSearchValue] = useState('');
|
|
11
|
-
const [items, setItems] = useState(options ?? []);
|
|
12
|
-
const [loading, setLoading] = useState(false);
|
|
13
|
-
const [isFetchError, setIsFetchError] = useState(false);
|
|
14
|
-
const dropdownRef = useClickOutside(() => setShowDropdownMenu(false));
|
|
15
|
-
const dropdownMenuRef = useRef(null);
|
|
16
|
-
// ########
|
|
17
|
-
// Fetchers
|
|
18
|
-
const fetchOptions = () => {
|
|
19
|
-
if (!options && loadOptions) {
|
|
20
|
-
setLoading(true);
|
|
21
|
-
setIsFetchError(false);
|
|
22
|
-
loadOptions(searchValue)
|
|
23
|
-
.then(setItems)
|
|
24
|
-
.catch(() => setIsFetchError(true))
|
|
25
|
-
.finally(() => setLoading(false));
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
// ########
|
|
29
|
-
// Handlers
|
|
30
|
-
const handleSelectItem = (item) => {
|
|
31
|
-
setShowDropdownMenu(false);
|
|
32
|
-
onChange(item);
|
|
33
|
-
};
|
|
34
|
-
const handleShowDropdownMenu = () => !disabled && setShowDropdownMenu(true);
|
|
35
|
-
// ########
|
|
36
|
-
// Watchers
|
|
37
|
-
useEffect(() => {
|
|
38
|
-
if (!disabled)
|
|
39
|
-
fetchOptions();
|
|
40
|
-
}, [...reloadOptionsOn, disabled]);
|
|
41
|
-
useEffect(() => {
|
|
42
|
-
if (searchable && options) {
|
|
43
|
-
setItems(options.filter(option => getOptionLabel(option).toLowerCase().includes(searchValue.toLowerCase())));
|
|
44
|
-
}
|
|
45
|
-
if (searchable && !options && loadOptions) {
|
|
46
|
-
setLoading(true);
|
|
47
|
-
setIsFetchError(false);
|
|
48
|
-
const timeOutId = setTimeout(fetchOptions, 500);
|
|
49
|
-
return () => clearTimeout(timeOutId);
|
|
50
|
-
}
|
|
51
|
-
return () => { };
|
|
52
|
-
}, [searchValue]);
|
|
53
|
-
useEffect(() => {
|
|
54
|
-
if (searchable && !showDropdownMenu)
|
|
55
|
-
setSearchValue('');
|
|
56
|
-
if (showDropdownMenu && containerRef?.current && dropdownMenuRef.current) {
|
|
57
|
-
const dropdownMenuRect = dropdownMenuRef.current.getBoundingClientRect();
|
|
58
|
-
const containerRect = containerRef.current.getBoundingClientRect();
|
|
59
|
-
if (dropdownMenuRect.bottom > containerRect.bottom) {
|
|
60
|
-
dropdownMenuRef.current.style.bottom = '40px';
|
|
61
|
-
dropdownMenuRef.current.style.top = 'auto';
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
dropdownMenuRef.current.style.top = '60px';
|
|
65
|
-
dropdownMenuRef.current.style.bottom = 'auto';
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}, [showDropdownMenu]);
|
|
69
|
-
// #########
|
|
70
|
-
// Rendering
|
|
71
|
-
return (React.createElement("div", { className: "ts-dropdown-container", ref: dropdownRef },
|
|
72
|
-
React.createElement("div", { className: "ts-dropdown-input-container" },
|
|
73
|
-
label && React.createElement("div", { className: "ts-dropdown-label" }, label),
|
|
74
|
-
React.createElement("div", { className: `
|
|
75
|
-
ts-dropdown-input
|
|
76
|
-
${disabled ? 'ts-dropdown-input--disabled' : ''}
|
|
77
|
-
${error && error !== '' ? 'ts-dropdown-container--error' : ''}
|
|
78
|
-
`, onClick: handleShowDropdownMenu },
|
|
79
|
-
!value && placeholder && React.createElement("div", { className: "ts-dropdown-input--placeholder" }, placeholder),
|
|
80
|
-
value && React.createElement("div", { className: "ts-dropdown-input--value" }, getOptionLabel(value)),
|
|
81
|
-
React.createElement("div", { className: "ts-dropdown-input--chevron" },
|
|
82
|
-
React.createElement(TsIcon, { name: showDropdownMenu ? 'chevron-up' : 'chevron-down' })))),
|
|
83
|
-
error && error !== '' && (React.createElement("div", { className: "ts-dropdown-error" },
|
|
84
|
-
React.createElement("div", { className: "ts-dropdown-error--icon" },
|
|
85
|
-
React.createElement(TsIcon, { name: "alert-circle", size: "16" })),
|
|
86
|
-
React.createElement("div", { className: "ts-dropdown-error--label" }, error))),
|
|
87
|
-
!disabled && showDropdownMenu && (React.createElement("div", { className: "ts-dropdown-menu-container", ref: dropdownMenuRef },
|
|
88
|
-
searchable && (React.createElement("div", { className: "ts-dropdown-search" },
|
|
89
|
-
React.createElement(TsInput, { icon: "search", placeholder: searchPlaceholder, value: searchValue, autoFocus: true, onChange: setSearchValue }))),
|
|
90
|
-
React.createElement("div", { className: "ts-dropdown-menu" },
|
|
91
|
-
loading && (React.createElement("div", { className: "ts-dropdown-menu-loader" },
|
|
92
|
-
React.createElement(TsLoader, { size: "sm" }))),
|
|
93
|
-
!loading && isFetchError && (React.createElement("div", { className: "ts-dropdown-menu-error-text" }, "An error occured, try again later.")),
|
|
94
|
-
!loading && !isFetchError && items.length === 0 && (React.createElement("div", { className: "ts-dropdown-menu-error-text" }, "No options found.")),
|
|
95
|
-
!loading &&
|
|
96
|
-
!isFetchError &&
|
|
97
|
-
items.length > 0 &&
|
|
98
|
-
items.map(item => (React.createElement("div", { key: getOptionValue(item), className: "ts-dropdown-menu-item", onClick: () => handleSelectItem(item) }, getOptionLabel(item)))))))));
|
|
99
|
-
};
|
|
100
|
-
//# sourceMappingURL=TsDropdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TsDropdown.js","sourceRoot":"","sources":["../../../src/components/TsDropdown/TsDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,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C;oBAChB,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAChB,6BACE,GAAG,EAAE,cAAc,CAAC,IAAI,CAAC,EACzB,SAAS,EAAC,uBAAuB,EACjC,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAEpC,cAAc,CAAC,IAAI,CAAC,CACjB,CACP,CAAC,CACA,CACF,CACP,CACG,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
export type TsDropdownProps<T> = {
|
|
3
|
-
containerRef?: RefObject<HTMLElement>;
|
|
4
|
-
error?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
options?: T[];
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
reloadOptionsOn?: any[];
|
|
9
|
-
searchPlaceholder?: string;
|
|
10
|
-
value?: T;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
searchable?: boolean;
|
|
13
|
-
getOptionLabel: (option: T) => string;
|
|
14
|
-
getOptionValue: (option: T) => string;
|
|
15
|
-
loadOptions?: (search?: string) => Promise<T[]>;
|
|
16
|
-
onChange: (value?: T) => void;
|
|
17
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TsDropdown.types.js","sourceRoot":"","sources":["../../../src/components/TsDropdown/TsDropdown.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export const fruits = [
|
|
2
|
-
{ name: 'Persimmon', id: 52 },
|
|
3
|
-
{ name: 'Strawberry', id: 3 },
|
|
4
|
-
{ name: 'Banana', id: 1 },
|
|
5
|
-
{ name: 'Tomato', id: 5 },
|
|
6
|
-
{ name: 'Pear', id: 4 },
|
|
7
|
-
{ name: 'Durian', id: 60 },
|
|
8
|
-
{ name: 'Blackberry', id: 64 },
|
|
9
|
-
{ name: 'Lingonberry', id: 65 },
|
|
10
|
-
{ name: 'Kiwi', id: 66 },
|
|
11
|
-
{ name: 'Lychee', id: 67 },
|
|
12
|
-
{ name: 'Pineapple', id: 10 },
|
|
13
|
-
{ name: 'Fig', id: 68 },
|
|
14
|
-
{ name: 'Gooseberry', id: 69 },
|
|
15
|
-
{ name: 'Passionfruit', id: 70 },
|
|
16
|
-
{ name: 'Plum', id: 71 },
|
|
17
|
-
{ name: 'Orange', id: 2 },
|
|
18
|
-
{ name: 'GreenApple', id: 72 },
|
|
19
|
-
{ name: 'Raspberry', id: 23 },
|
|
20
|
-
{ name: 'Watermelon', id: 25 },
|
|
21
|
-
{ name: 'Lemon', id: 26 },
|
|
22
|
-
{ name: 'Mango', id: 27 },
|
|
23
|
-
{ name: 'Blueberry', id: 33 },
|
|
24
|
-
{ name: 'Apple', id: 6 },
|
|
25
|
-
{ name: 'Guava', id: 37 },
|
|
26
|
-
{ name: 'Apricot', id: 35 },
|
|
27
|
-
{ name: 'Papaya', id: 42 },
|
|
28
|
-
{ name: 'Melon', id: 41 },
|
|
29
|
-
{ name: 'Tangerine', id: 77 },
|
|
30
|
-
{ name: 'Pitahaya', id: 78 },
|
|
31
|
-
{ name: 'Lime', id: 44 },
|
|
32
|
-
{ name: 'Pomegranate', id: 79 },
|
|
33
|
-
{ name: 'Dragonfruit', id: 80 },
|
|
34
|
-
{ name: 'Grape', id: 81 },
|
|
35
|
-
{ name: 'Morus', id: 82 },
|
|
36
|
-
{ name: 'Feijoa', id: 76 },
|
|
37
|
-
{ name: 'Avocado', id: 84 },
|
|
38
|
-
{ name: 'Kiwifruit', id: 85 },
|
|
39
|
-
{ name: 'Cranberry', id: 87 },
|
|
40
|
-
{ name: 'Cherry', id: 9 },
|
|
41
|
-
{ name: 'Peach', id: 86 },
|
|
42
|
-
{ name: 'Jackfruit', id: 94 },
|
|
43
|
-
{ name: 'Horned Melon', id: 95 },
|
|
44
|
-
{ name: 'Hazelnut', id: 96 },
|
|
45
|
-
{ name: 'Pomelo', id: 98 },
|
|
46
|
-
{ name: 'Mangosteen', id: 99 },
|
|
47
|
-
];
|
|
48
|
-
//# sourceMappingURL=fruits.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fruits.js","sourceRoot":"","sources":["../../../../src/components/TsDropdown/__stories__/fruits.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,EAAE,EAAE;IAC7B,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,EAAE;IAC7B,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,EAAE;IACzB,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,EAAE;IACzB,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,EAAE;IACvB,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE;IAC1B,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,EAAE;IAC9B,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE,EAAE;IAC/B,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE;IACxB,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE;IAC1B,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,EAAE,EAAE;IAC7B,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE;IACvB,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,EAAE;IAC9B,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE,EAAE;IAChC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE;IACxB,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,EAAE;IACzB,EAAE,IAAI,EAAE,YAA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E,EAAE,EAAE,EAAE;IAC7B,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,EAAE,EAAE;IAC7B,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,EAAE;IACzB,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE;IACzB,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,EAAE,EAAE;IAC7B,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE,EAAE;IAChC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE;IAC5B,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE;IAC1B,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,EAAE;CAC/B,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
.ts-icon--16 {
|
|
2
|
-
width: 16px;
|
|
3
|
-
height: 16px;
|
|
4
|
-
}
|
|
5
|
-
.ts-icon--20 {
|
|
6
|
-
width: 20px;
|
|
7
|
-
height: 20px;
|
|
8
|
-
}
|
|
9
|
-
.ts-icon--24 {
|
|
10
|
-
width: 24px;
|
|
11
|
-
height: 24px;
|
|
12
|
-
}
|
|
13
|
-
.ts-icon svg {
|
|
14
|
-
width: 100%;
|
|
15
|
-
height: 100%;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* ######### */
|
|
19
|
-
/* GLOBALS */
|
|
20
|
-
* {
|
|
21
|
-
font-size: 14px;
|
|
22
|
-
outline: none;
|
|
23
|
-
box-sizing: border-box;
|
|
24
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
25
|
-
'Helvetica Neue', sans-serif;
|
|
26
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { icons } from './icons';
|
|
3
|
-
import './TsIcon.css';
|
|
4
|
-
export const TsIcon = ({ name, size = '20' }) => {
|
|
5
|
-
const icon = icons[name];
|
|
6
|
-
// #########
|
|
7
|
-
// Rendering
|
|
8
|
-
if (!icon)
|
|
9
|
-
return React.createElement(React.Fragment, null);
|
|
10
|
-
return React.createElement("div", { className: `ts-icon ts-icon--${size}`, dangerouslySetInnerHTML: { __html: icon } });
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=TsIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TsIcon.js","sourceRoot":"","sources":["../../../src/components/TsIcon/TsIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,EAAe,EAAE,EAAE;IAC3D,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;IAEzB,YAAY;IACZ,YAAY;IACZ,IAAI,CAAC,IAAI;QAAE,OAAO,yCAAK,CAAC;IACxB,OAAO,6BAAK,SAAS,EAAE,oBAAoB,IAAI,EAAE,EAAE,uBAAuB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAI,CAAC;AACnG,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TsIcon.types.js","sourceRoot":"","sources":["../../../src/components/TsIcon/TsIcon.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { TsIcon } from '../TsIcon';
|
|
4
|
-
import { icons } from '../icons';
|
|
5
|
-
|
|
6
|
-
<Meta title="Guidelines/Iconography" />
|
|
7
|
-
|
|
8
|
-
<style>
|
|
9
|
-
{`
|
|
10
|
-
.icons {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-wrap: wrap;
|
|
13
|
-
margin-top: 20px;
|
|
14
|
-
}
|
|
15
|
-
.icon-container {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
width: 140px;
|
|
19
|
-
height: 110px;
|
|
20
|
-
margin: 0 10px 10px 0;
|
|
21
|
-
box-shadow: rgba(0, 0, 0, 0.10) 0 1px 3px 0;
|
|
22
|
-
border: 1px solid hsla(203, 50%, 30%, 0.15);
|
|
23
|
-
border-radius: 5px;
|
|
24
|
-
color: #27272a;
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
}
|
|
27
|
-
.icon {
|
|
28
|
-
display: flex;
|
|
29
|
-
flex: 1;
|
|
30
|
-
align-items: center;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
}
|
|
33
|
-
.icon-label {
|
|
34
|
-
display: flex;
|
|
35
|
-
align-items: center;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
height: 30px;
|
|
38
|
-
border-top: 1px solid hsla(203, 50%, 30%, 0.15);
|
|
39
|
-
background: #fafafa;
|
|
40
|
-
text-align: center;
|
|
41
|
-
font-size: 13px;
|
|
42
|
-
}
|
|
43
|
-
`}
|
|
44
|
-
</style>
|
|
45
|
-
|
|
46
|
-
export const iconArgTypes = {
|
|
47
|
-
name: {
|
|
48
|
-
control: 'select',
|
|
49
|
-
options: Object.keys(icons),
|
|
50
|
-
description: 'Name of an icon.',
|
|
51
|
-
},
|
|
52
|
-
size: {
|
|
53
|
-
control: 'inline-radio',
|
|
54
|
-
options: ['16', '20', '24'],
|
|
55
|
-
description: 'Define the size of an icon.',
|
|
56
|
-
table: { defaultValue: { summary: '20' } },
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
# Iconography
|
|
61
|
-
|
|
62
|
-
Icons are visual symbols used to represent ideas, objects or actions. They communicate messages at a glance, allow interactivity and draw attention to important information.
|
|
63
|
-
|
|
64
|
-
## Overview
|
|
65
|
-
|
|
66
|
-
<Canvas>
|
|
67
|
-
<Story name="Overview" args={{ name: 'heart', size: '20' }} argTypes={iconArgTypes}>
|
|
68
|
-
{args => <TsIcon {...args} />}
|
|
69
|
-
</Story>
|
|
70
|
-
</Canvas>
|
|
71
|
-
|
|
72
|
-
## Props
|
|
73
|
-
|
|
74
|
-
<ArgsTable story="Overview" of={TsIcon} />
|
|
75
|
-
|
|
76
|
-
## Icons
|
|
77
|
-
|
|
78
|
-
<div className="icons">
|
|
79
|
-
{Object.keys(icons)
|
|
80
|
-
.filter(icon => !icon.startsWith('header-'))
|
|
81
|
-
.map(icon => (
|
|
82
|
-
<div className="icon-container" key={icon}>
|
|
83
|
-
<div className="icon">
|
|
84
|
-
<TsIcon name={icon} />
|
|
85
|
-
</div>
|
|
86
|
-
<div className="icon-label">{icon}</div>
|
|
87
|
-
</div>
|
|
88
|
-
))}
|
|
89
|
-
</div>
|
|
@@ -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>
|