imbric-theme 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.babelrc.json +3 -0
- package/.commitlintrc.json +3 -0
- package/.dockerignore +14 -0
- package/.editorconfig +13 -0
- package/.eslintignore +1 -0
- package/.eslintrc.json +36 -0
- package/.huskyrc.json +6 -0
- package/.lintstagedrc.json +5 -0
- package/.nvmrc +1 -0
- package/.prettierignore +1 -0
- package/.prettierrc.json +4 -0
- package/.releaserc.json +13 -0
- package/.storybook/main.js +13 -0
- package/.storybook/preview-head.html +2 -0
- package/.storybook/preview.js +53 -0
- package/.stylelintrc.json +14 -0
- package/.vscode/launch.json +15 -0
- package/.vscode/settings.json +3 -0
- package/CHANGELOG.md +0 -0
- package/Dockerfile +17 -0
- package/README.md +69 -0
- package/atoms/AlertModal/AlertModal.js +69 -0
- package/atoms/AlertModal/AlertModal.module.css +3 -0
- package/atoms/AlertModal/AlertModal.stories.js +30 -0
- package/atoms/AlertModal/constants.js +4 -0
- package/atoms/AlertModal/index.js +3 -0
- package/atoms/Avatar/Avatar.js +36 -0
- package/atoms/Avatar/Avatar.module.css +3 -0
- package/atoms/Avatar/Avatar.stories.js +29 -0
- package/atoms/Avatar/__snapshots__/Avatar.stories.js.snap +105 -0
- package/atoms/Avatar/constants.js +3 -0
- package/atoms/Avatar/helpers.js +7 -0
- package/atoms/Avatar/index.js +3 -0
- package/atoms/Button/Button.js +83 -0
- package/atoms/Button/Button.module.css +85 -0
- package/atoms/Button/Button.stories.js +47 -0
- package/atoms/Button/Button.test.js +60 -0
- package/atoms/Button/__snapshots__/Button.stories.js.snap +191 -0
- package/atoms/Button/constants.js +3 -0
- package/atoms/Button/index.js +3 -0
- package/atoms/Card/Card.js +48 -0
- package/atoms/Card/Card.module.css +52 -0
- package/atoms/Card/Card.stories.js +41 -0
- package/atoms/Card/__snapshots__/Card.stories.js.snap +136 -0
- package/atoms/Card/constants.js +4 -0
- package/atoms/Card/index.js +3 -0
- package/atoms/Check/Check.js +28 -0
- package/atoms/Check/Check.module.css +11 -0
- package/atoms/Check/Check.stories.js +15 -0
- package/atoms/Check/__snapshots__/Check.stories.js.snap +67 -0
- package/atoms/Check/index.js +2 -0
- package/atoms/Checkbox/Checkbox.js +77 -0
- package/atoms/Checkbox/Checkbox.module.css +60 -0
- package/atoms/Checkbox/Checkbox.stories.js +30 -0
- package/atoms/Checkbox/constants.js +1 -0
- package/atoms/Checkbox/index.js +3 -0
- package/atoms/Divider/Divider.js +22 -0
- package/atoms/Divider/Divider.module.css +25 -0
- package/atoms/Divider/Divider.stories.js +23 -0
- package/atoms/Divider/__snapshots__/Divider.stories.js.snap +22 -0
- package/atoms/Divider/constants.js +3 -0
- package/atoms/Divider/index.js +3 -0
- package/atoms/Heading/Heading.js +37 -0
- package/atoms/Heading/Heading.module.css +70 -0
- package/atoms/Heading/Heading.stories.js +46 -0
- package/atoms/Heading/__snapshots__/Heading.stories.js.snap +189 -0
- package/atoms/Heading/constants.js +5 -0
- package/atoms/Heading/index.js +3 -0
- package/atoms/Icon/Icon.js +66 -0
- package/atoms/Icon/Icon.module.css +142 -0
- package/atoms/Icon/Icon.stories.js +48 -0
- package/atoms/Icon/__snapshots__/Icon.stories.js.snap +1311 -0
- package/atoms/Icon/constants.js +1091 -0
- package/atoms/Icon/helpers.js +9 -0
- package/atoms/Icon/index.js +3 -0
- package/atoms/Input/Input.js +229 -0
- package/atoms/Input/Input.module.css +83 -0
- package/atoms/Input/Input.stories.js +38 -0
- package/atoms/Input/__snapshots__/Input.stories.js.snap +101 -0
- package/atoms/Input/constants.js +3 -0
- package/atoms/Input/index.js +3 -0
- package/atoms/Label/Label.js +31 -0
- package/atoms/Label/Label.module.css +42 -0
- package/atoms/Label/Label.stories.js +26 -0
- package/atoms/Label/constants.js +1 -0
- package/atoms/Label/index.js +3 -0
- package/atoms/LinkItem/LinkItem.js +38 -0
- package/atoms/LinkItem/LinkItem.module.css +19 -0
- package/atoms/LinkItem/LinkItem.stories.js +30 -0
- package/atoms/LinkItem/__snapshots__/Link.stories.js.snap +118 -0
- package/atoms/LinkItem/constants.js +5 -0
- package/atoms/LinkItem/index.js +3 -0
- package/atoms/Loading/Loading.js +30 -0
- package/atoms/Loading/Loading.module.css +51 -0
- package/atoms/Loading/Loading.stories.js +17 -0
- package/atoms/Loading/__snapshots__/Loading.stories.js.snap +26 -0
- package/atoms/Loading/index.js +2 -0
- package/atoms/Modal/Modal.js +121 -0
- package/atoms/Modal/Modal.module.css +142 -0
- package/atoms/Modal/Modal.stories.js +43 -0
- package/atoms/Modal/__snapshots__/Modal.stories.js.snap +239 -0
- package/atoms/Modal/constants.js +1 -0
- package/atoms/Modal/index.js +3 -0
- package/atoms/Paragraph/Paragraph.js +56 -0
- package/atoms/Paragraph/Paragraph.module.css +72 -0
- package/atoms/Paragraph/Paragraph.stories.js +52 -0
- package/atoms/Paragraph/__snapshots__/Paragraph.stories.js.snap +230 -0
- package/atoms/Paragraph/constants.js +5 -0
- package/atoms/Paragraph/index.js +3 -0
- package/atoms/Picture/Picture.js +47 -0
- package/atoms/Picture/Picture.module.css +16 -0
- package/atoms/Picture/Picture.stories.js +32 -0
- package/atoms/Picture/__snapshots__/Picture.stories.js.snap +156 -0
- package/atoms/Picture/index.js +2 -0
- package/atoms/Tab/Tab.js +41 -0
- package/atoms/Tab/Tab.module.css +17 -0
- package/atoms/Tab/Tab.stories.js +27 -0
- package/atoms/Tab/constants.js +1 -0
- package/atoms/Tab/index.js +3 -0
- package/atoms/Textarea/Textarea.js +137 -0
- package/atoms/Textarea/Textarea.module.css +54 -0
- package/atoms/Textarea/Textarea.stories.js +16 -0
- package/atoms/Textarea/__snapshots__/Textarea.stories.js.snap +25 -0
- package/atoms/Textarea/index.js +2 -0
- package/atoms/Toggle/Toggle.js +56 -0
- package/atoms/Toggle/Toggle.module.css +41 -0
- package/atoms/Toggle/Toggle.stories.js +21 -0
- package/atoms/Toggle/constants.js +1 -0
- package/atoms/Toggle/index.js +3 -0
- package/codecov.yml +2 -0
- package/helpers/storybook.js +29 -0
- package/helpers/storybook.test.js +40 -0
- package/helpers/styles.js +37 -0
- package/helpers/styles.test.js +222 -0
- package/hocs/withStyles.js +17 -0
- package/hook/useAddColumn.js +40 -0
- package/hook/useMedia.js +22 -0
- package/hook/useStateDate.js +25 -0
- package/hook/useTable.js +54 -0
- package/index.js +71 -0
- package/jest.config.js +23 -0
- package/jest.setup.js +13 -0
- package/layout/CenteredContent/CenteredContent.js +30 -0
- package/layout/CenteredContent/CenteredContent.module.css +12 -0
- package/layout/CenteredContent/CenteredContent.stories.js +22 -0
- package/layout/CenteredContent/__snapshots__/CenteredContent.stories.js.snap +27 -0
- package/layout/CenteredContent/index.js +2 -0
- package/layout/Container/Container.js +29 -0
- package/layout/Container/Container.module.css +14 -0
- package/layout/Container/Container.stories.js +22 -0
- package/layout/Container/__snapshots__/Container.stories.js.snap +27 -0
- package/layout/Container/index.js +2 -0
- package/layout/DynamicTable/DynamicTable.js +372 -0
- package/layout/DynamicTable/DynamicTable.module.css +76 -0
- package/layout/DynamicTable/DynamicTable.stories.js +79 -0
- package/layout/DynamicTable/constants.js +323 -0
- package/layout/DynamicTable/index.js +3 -0
- package/layout/FlexColumnContent/FlexColumnContent.js +26 -0
- package/layout/FlexColumnContent/FlexColumnContent.module.css +5 -0
- package/layout/FlexColumnContent/FlexColumnContent.stories.js +28 -0
- package/layout/FlexColumnContent/constants.js +1 -0
- package/layout/FlexColumnContent/index.js +3 -0
- package/layout/FullHeightContent/FullHeightContent.js +40 -0
- package/layout/FullHeightContent/FullHeightContent.module.css +21 -0
- package/layout/FullHeightContent/FullHeightContent.stories.js +22 -0
- package/layout/FullHeightContent/__snapshots__/FullHeightContent.stories.js.snap +41 -0
- package/layout/FullHeightContent/index.js +2 -0
- package/layout/Navbar/Navbar.js +247 -0
- package/layout/Navbar/Navbar.module.css +35 -0
- package/layout/Navbar/Navbar.stories.js +20 -0
- package/layout/Navbar/constants.js +35 -0
- package/layout/Navbar/index.js +2 -0
- package/layout/Sidebar/Sidebar.js +115 -0
- package/layout/Sidebar/Sidebar.module.css +387 -0
- package/layout/Sidebar/Sidebar.stories.js +28 -0
- package/layout/Sidebar/constants.js +228 -0
- package/layout/Sidebar/index.js +3 -0
- package/layout/Spacer/Spacer.js +40 -0
- package/layout/Spacer/Spacer.module.css +12 -0
- package/layout/Spacer/Spacer.stories.js +25 -0
- package/layout/Spacer/__snapshots__/Spacer.stories.js.snap +97 -0
- package/layout/Spacer/components/Horizontal/Horizontal.js +43 -0
- package/layout/Spacer/components/Horizontal/Horizontal.stories.js +32 -0
- package/layout/Spacer/components/Horizontal/__snapshots__/Horizontal.stories.js.snap +97 -0
- package/layout/Spacer/components/Horizontal/index.js +1 -0
- package/layout/Spacer/components/Vertical/Vertical.js +31 -0
- package/layout/Spacer/components/Vertical/Vertical.stories.js +25 -0
- package/layout/Spacer/components/Vertical/__snapshots__/Vertical.stories.js.snap +85 -0
- package/layout/Spacer/components/Vertical/index.js +1 -0
- package/layout/Spacer/components/index.js +2 -0
- package/layout/Spacer/constants.js +5 -0
- package/layout/Spacer/helpers.js +3 -0
- package/layout/Spacer/index.js +3 -0
- package/molecules/Accordion/Accordion.js +70 -0
- package/molecules/Accordion/Accordion.module.css +12 -0
- package/molecules/Accordion/Accordion.stories.js +31 -0
- package/molecules/Accordion/__snapshots__/Accordion.stories.js.snap +228 -0
- package/molecules/Accordion/index.js +2 -0
- package/molecules/AddButton/AddButton.js +137 -0
- package/molecules/AddButton/AddButton.module.css +128 -0
- package/molecules/AddButton/AddButton.stories.js +47 -0
- package/molecules/AddButton/__snapshots__/AddButton.stories.js.snap +326 -0
- package/molecules/AddButton/constants.js +6 -0
- package/molecules/AddButton/handlers.js +58 -0
- package/molecules/AddButton/handlers.test.js +19 -0
- package/molecules/AddButton/helpers.js +6 -0
- package/molecules/AddButton/helpers.test.js +41 -0
- package/molecules/AddButton/hooks.js +14 -0
- package/molecules/AddButton/index.js +3 -0
- package/molecules/ButtonIcon/ButtonIcon.js +41 -0
- package/molecules/ButtonIcon/ButtonIcon.stories.js +27 -0
- package/molecules/ButtonIcon/__snapshots__/ButtonIcon.stories.js.snap +178 -0
- package/molecules/ButtonIcon/constants.js +6 -0
- package/molecules/ButtonIcon/index.js +2 -0
- package/molecules/CardDefault/CardDefault.js +65 -0
- package/molecules/CardDefault/CardDefault.module.css +19 -0
- package/molecules/CardDefault/CardDefault.stories.js +23 -0
- package/molecules/CardDefault/constants.js +1 -0
- package/molecules/CardDefault/index.js +3 -0
- package/molecules/CardProductTypesBooking/CardProductTypesBooking.js +89 -0
- package/molecules/CardProductTypesBooking/CardProductTypesBooking.module.css +118 -0
- package/molecules/CardProductTypesBooking/CardProductTypesBooking.stories.js +25 -0
- package/molecules/CardProductTypesBooking/constants.js +1 -0
- package/molecules/CardProductTypesBooking/index.js +3 -0
- package/molecules/CardServiceDetail/CardServiceDetail.js +400 -0
- package/molecules/CardServiceDetail/CardServiceDetail.module.css +222 -0
- package/molecules/CardServiceDetail/CardServiceDetail.stories.js +23 -0
- package/molecules/CardServiceDetail/constants.js +1 -0
- package/molecules/CardServiceDetail/index.js +3 -0
- package/molecules/CardServices/CardServices.js +461 -0
- package/molecules/CardServices/CardServices.module.css +213 -0
- package/molecules/CardServices/CardServices.stories.js +41 -0
- package/molecules/CardServices/constants.js +5 -0
- package/molecules/CardServices/index.js +3 -0
- package/molecules/CardServicesFinalized/CardServicesFinalized.js +381 -0
- package/molecules/CardServicesFinalized/CardServicesFinalized.module.css +213 -0
- package/molecules/CardServicesFinalized/CardServicesFinalized.stories.js +23 -0
- package/molecules/CardServicesFinalized/constants.js +1 -0
- package/molecules/CardServicesFinalized/index.js +3 -0
- package/molecules/CheckList/CheckList.js +135 -0
- package/molecules/CheckList/CheckList.module.css +94 -0
- package/molecules/CheckList/CheckList.stories.js +25 -0
- package/molecules/CheckList/constants.js +23 -0
- package/molecules/CheckList/index.js +3 -0
- package/molecules/ColumnTable/ColumnTable.js +154 -0
- package/molecules/ColumnTable/ColumnTable.module.css +51 -0
- package/molecules/ColumnTable/ColumnTable.stories.js +26 -0
- package/molecules/ColumnTable/constants.js +117 -0
- package/molecules/ColumnTable/index.js +3 -0
- package/molecules/DatePicker/DatePicker.js +242 -0
- package/molecules/DatePicker/DatePicker.module.css +38 -0
- package/molecules/DatePicker/DatePicker.stories.js +23 -0
- package/molecules/DatePicker/constants.js +3 -0
- package/molecules/DatePicker/index.js +3 -0
- package/molecules/DatePickerTime/DatePickerTime.js +133 -0
- package/molecules/DatePickerTime/DatePickerTime.module.css +3 -0
- package/molecules/DatePickerTime/DatePickerTime.stories.js +18 -0
- package/molecules/DatePickerTime/constants.js +1 -0
- package/molecules/DatePickerTime/index.js +3 -0
- package/molecules/Dropdown/Dropdown.js +62 -0
- package/molecules/Dropdown/Dropdown.module.css +52 -0
- package/molecules/Dropdown/Dropdown.stories.js +41 -0
- package/molecules/Dropdown/__snapshots__/Dropdown.stories.js.snap +181 -0
- package/molecules/Dropdown/index.js +2 -0
- package/molecules/DynamicSelect/DynamicSelect.js +186 -0
- package/molecules/DynamicSelect/DynamicSelect.module.css +10 -0
- package/molecules/DynamicSelect/DynamicSelect.stories.js +32 -0
- package/molecules/DynamicSelect/constants.js +7 -0
- package/molecules/DynamicSelect/index.js +3 -0
- package/molecules/Error/Error.js +35 -0
- package/molecules/Error/Error.module.css +12 -0
- package/molecules/Error/Error.stories.js +18 -0
- package/molecules/Error/__snapshots__/Error.stories.js.snap +134 -0
- package/molecules/Error/index.js +2 -0
- package/molecules/FooterTable/FooterTable.js +166 -0
- package/molecules/FooterTable/FooterTable.module.css +63 -0
- package/molecules/FooterTable/FooterTable.stories.js +23 -0
- package/molecules/FooterTable/constants.js +9 -0
- package/molecules/FooterTable/index.js +3 -0
- package/molecules/IconLabel/IconLabel.js +83 -0
- package/molecules/IconLabel/IconLabel.module.css +16 -0
- package/molecules/IconLabel/IconLabel.stories.js +25 -0
- package/molecules/IconLabel/__snapshots__/IconLabel.stories.js.snap +211 -0
- package/molecules/IconLabel/constants.js +6 -0
- package/molecules/IconLabel/index.js +3 -0
- package/molecules/InputAutocomplete/InputAutocomplete.js +221 -0
- package/molecules/InputAutocomplete/InputAutocomplete.module.css +55 -0
- package/molecules/InputAutocomplete/InputAutocomplete.stories.js +23 -0
- package/molecules/InputAutocomplete/constants.js +1 -0
- package/molecules/InputAutocomplete/index.js +3 -0
- package/molecules/ItemMenu/ItemMenu.js +134 -0
- package/molecules/ItemMenu/ItemMenu.module.css +363 -0
- package/molecules/ItemMenu/ItemMenu.stories.js +42 -0
- package/molecules/ItemMenu/constants.js +36 -0
- package/molecules/ItemMenu/index.js +3 -0
- package/molecules/LoadingError/LoadingError.js +31 -0
- package/molecules/LoadingError/LoadingError.stories.js +24 -0
- package/molecules/LoadingError/__snapshots__/LoadingError.stories.js.snap +109 -0
- package/molecules/LoadingError/index.js +1 -0
- package/molecules/RowTable/RowTable.js +928 -0
- package/molecules/RowTable/RowTable.module.css +63 -0
- package/molecules/RowTable/RowTable.stories.js +26 -0
- package/molecules/RowTable/constants.js +798 -0
- package/molecules/RowTable/index.js +3 -0
- package/molecules/Score/Score.js +61 -0
- package/molecules/Score/Score.module.css +11 -0
- package/molecules/Score/Score.stories.js +13 -0
- package/molecules/Score/__snapshots__/Score.stories.js.snap +100 -0
- package/molecules/Score/faces/happy.svg +7 -0
- package/molecules/Score/faces/normal.svg +6 -0
- package/molecules/Score/faces/sad.svg +6 -0
- package/molecules/Score/index.js +2 -0
- package/molecules/Tabs/Tabs.js +59 -0
- package/molecules/Tabs/Tabs.module.css +13 -0
- package/molecules/Tabs/Tabs.stories.js +34 -0
- package/molecules/Tabs/constants.js +34 -0
- package/molecules/Tabs/index.js +3 -0
- package/molecules/Task/Task.js +114 -0
- package/molecules/Task/Task.module.css +47 -0
- package/molecules/Task/Task.stories.js +47 -0
- package/molecules/Task/__snapshots__/Task.stories.js.snap +953 -0
- package/molecules/Task/constants.js +1 -0
- package/molecules/Task/index.js +3 -0
- package/molecules/TaskCounter/TaskCounter.js +74 -0
- package/molecules/TaskCounter/TaskCounter.module.css +11 -0
- package/molecules/TaskCounter/TaskCounter.stories.js +26 -0
- package/molecules/TaskCounter/__snapshots__/TaskCounter.stories.js.snap +177 -0
- package/molecules/TaskCounter/index.js +2 -0
- package/package.json +119 -0
- package/pages/Login/Login.js +102 -0
- package/pages/Login/Login.module.css +5 -0
- package/pages/Login/Login.stories.js +23 -0
- package/pages/Login/constants.js +1 -0
- package/pages/Login/index.js +3 -0
- package/pages/Login/validation/loginSchema.js +5 -0
- package/public/favicon.ico +0 -0
- package/public/static/google-maps.png +0 -0
- package/public/static/images/folders-folder.svg +26 -0
- package/public/static/images/permissions.svg +14 -0
- package/public/static/images/reports-results.svg +18 -0
- package/public/static/logo.svg +19 -0
- package/public/static/logologin.png +0 -0
- package/public/static/logologin.svg +16 -0
- package/public/static/logologintagos.svg +19 -0
- package/public/static/logotipo.svg +50 -0
- package/public/static/logotipoS.svg +26 -0
- package/public/static/taxisvalencia_logod.png +0 -0
- package/scripts/build-tokens.js +40 -0
- package/scripts/create-component.js +128 -0
- package/storybook.test.js +13 -0
- package/styles/GrupoMutua.css +391 -0
- package/styles/default.css +391 -0
- package/styles/globals.css +1524 -0
- package/styles/radiotaxiaragon.css +391 -0
- package/styles/spartan.css +391 -0
- package/styles/tagos.css +391 -0
- package/styles/taxisvalencia.css +391 -0
- package/styles/tokens.css +391 -0
- package/templates/component/Component.js +22 -0
- package/templates/component/Component.module.css +3 -0
- package/templates/component/Component.stories.js +23 -0
- package/templates/component/constants.js +1 -0
- package/templates/component/index.js +3 -0
- package/tokens/Token/Helper.js +30 -0
- package/tokens/Token/Token.js +13 -0
- package/tokens/Token/Token.module.css +64 -0
- package/tokens/Token/components/Color.js +21 -0
- package/tokens/Token/components/Color.stories.js +126 -0
- package/tokens/Token/components/FontFamily.js +24 -0
- package/tokens/Token/components/FontFamily.stories.js +32 -0
- package/tokens/Token/components/FontSize.js +24 -0
- package/tokens/Token/components/FontSize.stories.js +31 -0
- package/tokens/Token/components/FontWeight.js +24 -0
- package/tokens/Token/components/FontWeight.stories.js +31 -0
- package/tokens/Token/components/Spacing.js +24 -0
- package/tokens/Token/components/Spacing.stories.js +29 -0
- package/tokens/Token/components/__snapshots__/Color.stories.js.snap +7169 -0
- package/tokens/Token/components/__snapshots__/FontFamily.stories.js.snap +133 -0
- package/tokens/Token/components/__snapshots__/FontSize.stories.js.snap +261 -0
- package/tokens/Token/components/__snapshots__/FontWeight.stories.js.snap +317 -0
- package/tokens/Token/components/__snapshots__/Spacing.stories.js.snap +229 -0
- package/tokens/Token/components/index.js +5 -0
- package/tokens/Token/helpers.js +17 -0
- package/tokens/Token/index.js +1 -0
- package/tokens/index.js +472 -0
- package/utils/isEmpty.js +28 -0
- package/utils/isEmpty.test.js +125 -0
- package/utils/isObject.js +4 -0
- package/utils/keyboardCodes.js +6 -0
- package/utils/testUtils/matchMediaMock.js +14 -0
- package/utils/testUtils/svgrMock.js +2 -0
- package/utils/toCapitalize.js +4 -0
- package/utils/toKebabCase.js +8 -0
- package/utils/toPascalCase.js +20 -0
- package/webpack/cssModules.js +30 -0
- package/webpack/loadConfigs.js +6 -0
- package/webpack/reactInlineSvg.js +22 -0
@@ -0,0 +1,166 @@
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
2
|
+
import PropTypes from 'prop-types'
|
3
|
+
|
4
|
+
import styles from './FooterTable.module.css'
|
5
|
+
import { options } from './constants'
|
6
|
+
import withStyles from '../../hocs/withStyles'
|
7
|
+
import DynamicSelect from '../../molecules/DynamicSelect'
|
8
|
+
import Icon from "../../atoms/Icon/Icon";
|
9
|
+
|
10
|
+
|
11
|
+
export const FooterTable = ({ getStyles, range, setPage, setDataPage, setScrollPage, page, slice, placeholderDinamicSelect, handleResultsForPage, defaultValueSelect, positionPag, useAvancesCeil, setPositionPag }) => {
|
12
|
+
|
13
|
+
|
14
|
+
// const [positionPag, setPositionPag] = useState(0)
|
15
|
+
|
16
|
+
useEffect(() => {
|
17
|
+
if (slice.length < 1 && page !== 1) {
|
18
|
+
setPage(page - 1);
|
19
|
+
}
|
20
|
+
|
21
|
+
console.log(page)
|
22
|
+
|
23
|
+
}, [slice, page, setPage, positionPag, useAvancesCeil]);
|
24
|
+
|
25
|
+
// const nextPagScroll = (page) => {
|
26
|
+
|
27
|
+
// console.log(page)
|
28
|
+
// if (page >= 4) {
|
29
|
+
// setPositionPag('-40')
|
30
|
+
// console.log(positionPag)
|
31
|
+
// const elem = document.getElementById('table-pag-scroll');
|
32
|
+
// elem.style.marginLeft = '-40px';
|
33
|
+
// console.log(elem)
|
34
|
+
// }
|
35
|
+
// }
|
36
|
+
|
37
|
+
|
38
|
+
return (
|
39
|
+
<div className={getStyles('footer-table')}>
|
40
|
+
|
41
|
+
<div className={styles.tableFooter}>
|
42
|
+
|
43
|
+
{page >= 2 ?
|
44
|
+
<Icon
|
45
|
+
name="angleLeft"
|
46
|
+
onClick={() => { setPage(page - 1); setDataPage(page - 1); setScrollPage('angleLeft') }}
|
47
|
+
/>
|
48
|
+
: null}
|
49
|
+
|
50
|
+
|
51
|
+
{page >= 4 ?
|
52
|
+
|
53
|
+
<button
|
54
|
+
className={`${styles.button} ${styles.inactiveButton}`}
|
55
|
+
onClick={() => { setPage(1); setDataPage(1); setPositionPag(0); }}
|
56
|
+
>
|
57
|
+
1
|
58
|
+
</button>
|
59
|
+
|
60
|
+
: null}
|
61
|
+
|
62
|
+
|
63
|
+
{page >= 5 ?
|
64
|
+
|
65
|
+
<button
|
66
|
+
disabled
|
67
|
+
className={`${styles.button} ${styles.disabled}`}
|
68
|
+
>
|
69
|
+
...
|
70
|
+
</button>
|
71
|
+
: null}
|
72
|
+
|
73
|
+
<div className={getStyles('footer-table-pag-box')}>
|
74
|
+
|
75
|
+
<div id="table-pag-scroll" className={getStyles('footer-table-pag')} style={{ marginLeft: positionPag + 'px' }}>
|
76
|
+
|
77
|
+
{range.map((el, index) => (
|
78
|
+
|
79
|
+
<button
|
80
|
+
key={'footer' + index}
|
81
|
+
className={`${styles.button} ${page === el ? styles.activeButton : styles.inactiveButton
|
82
|
+
}`}
|
83
|
+
onClick={() => { setPage(el); setDataPage(el) }}
|
84
|
+
onChange={item => { handleSelectRange(item); onChangeRange(item); }}
|
85
|
+
>
|
86
|
+
{el}
|
87
|
+
</button>
|
88
|
+
|
89
|
+
))}
|
90
|
+
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
|
95
|
+
{page <= (range.length - 4) && range.length > 5 ?
|
96
|
+
|
97
|
+
<button
|
98
|
+
disabled
|
99
|
+
className={`${styles.button} ${styles.disabled}`}
|
100
|
+
>
|
101
|
+
...
|
102
|
+
</button>
|
103
|
+
|
104
|
+
: null}
|
105
|
+
|
106
|
+
|
107
|
+
{page <= (range.length - 3) && range.length > 5 ?
|
108
|
+
|
109
|
+
<button
|
110
|
+
onClick={() => { setPage(range.length); setDataPage(range.length); setPositionPag('-' + (38 * (useAvancesCeil - 1))) }}
|
111
|
+
className={`${styles.button} ${styles.inactiveButton}`}
|
112
|
+
>
|
113
|
+
{range.length}
|
114
|
+
</button>
|
115
|
+
|
116
|
+
: null}
|
117
|
+
|
118
|
+
{page <= (range.length - 1) ?
|
119
|
+
< Icon
|
120
|
+
name="angleRight"
|
121
|
+
onClick={() => { setPage(page + 1); setDataPage(page + 1); setScrollPage('angleRight') }}
|
122
|
+
// onChange={item => { handleSelectRange(item); onChangeRange(item); }}
|
123
|
+
/>
|
124
|
+
: null}
|
125
|
+
|
126
|
+
|
127
|
+
</div>
|
128
|
+
|
129
|
+
<DynamicSelect
|
130
|
+
isInline
|
131
|
+
onChange={handleResultsForPage}
|
132
|
+
optionsSelect={options.opResultsForPage}
|
133
|
+
placeholder={placeholderDinamicSelect}
|
134
|
+
isClearable={false}
|
135
|
+
defaultValue={defaultValueSelect}
|
136
|
+
closeMenuOnSelect={false}
|
137
|
+
instanceId={'idResultsForPage'}
|
138
|
+
/>
|
139
|
+
|
140
|
+
</div>
|
141
|
+
|
142
|
+
|
143
|
+
)
|
144
|
+
}
|
145
|
+
|
146
|
+
FooterTable.propTypes = {
|
147
|
+
// children: PropTypes.node.isRequired,
|
148
|
+
getStyles: PropTypes.func.isRequired,
|
149
|
+
setDataPage: PropTypes.func,
|
150
|
+
setScrollPage: PropTypes.func,
|
151
|
+
placeholderDinamicSelect: PropTypes.string,
|
152
|
+
handleResultsForPage: PropTypes.func,
|
153
|
+
defaultValueSelect: PropTypes.any,
|
154
|
+
// type: PropTypes.oneOf(options.types),
|
155
|
+
}
|
156
|
+
|
157
|
+
FooterTable.defaultProps = {
|
158
|
+
getStyles: () => { },
|
159
|
+
setDataPage: () => { },
|
160
|
+
setScrollPage: () => { },
|
161
|
+
handleResultsForPage: () => { },
|
162
|
+
placeholderDinamicSelect: 'resultados por pagina',
|
163
|
+
defaultValueSelect: { value: 10, label: '10' },
|
164
|
+
}
|
165
|
+
|
166
|
+
export default withStyles(styles)(FooterTable)
|
@@ -0,0 +1,63 @@
|
|
1
|
+
.footer-table {
|
2
|
+
display: flex;
|
3
|
+
width: 100%;
|
4
|
+
justify-content: space-between;
|
5
|
+
}
|
6
|
+
|
7
|
+
.tableFooter {
|
8
|
+
/* background-color: #f1f1f1; */
|
9
|
+
padding: 4px 0px;
|
10
|
+
font-weight: 500;
|
11
|
+
text-align: left;
|
12
|
+
font-size: 16px;
|
13
|
+
color: #2c3e50;
|
14
|
+
border-bottom-left-radius: 5px;
|
15
|
+
border-bottom-right-radius: 0px;
|
16
|
+
display: flex;
|
17
|
+
align-items: center;
|
18
|
+
justify-content: flex-start;
|
19
|
+
}
|
20
|
+
|
21
|
+
.button {
|
22
|
+
border: none;
|
23
|
+
padding: 6px 0px;
|
24
|
+
border-radius: 10px;
|
25
|
+
cursor: pointer;
|
26
|
+
margin-right: 4px;
|
27
|
+
margin-left: 4px;
|
28
|
+
min-width: 30px;
|
29
|
+
max-width: 30px;
|
30
|
+
}
|
31
|
+
|
32
|
+
.activeButton {
|
33
|
+
color: white;
|
34
|
+
background: rgb(73, 125, 189, .4);
|
35
|
+
}
|
36
|
+
|
37
|
+
.inactiveButton {
|
38
|
+
color: #2c3e50;
|
39
|
+
background: #f9f9f9;
|
40
|
+
}
|
41
|
+
|
42
|
+
.inactiveButton:hover {
|
43
|
+
color: white;
|
44
|
+
background: rgb(73, 125, 189, .4);
|
45
|
+
}
|
46
|
+
|
47
|
+
.disabled {
|
48
|
+
color: #2c3e50;
|
49
|
+
background: #f9f9f9;
|
50
|
+
cursor: no-drop;
|
51
|
+
}
|
52
|
+
|
53
|
+
.footer-table-pag-box {
|
54
|
+
display: flex;
|
55
|
+
overflow-x: clip;
|
56
|
+
width: 100%;
|
57
|
+
max-width: 190px;
|
58
|
+
}
|
59
|
+
|
60
|
+
.footer-table-pag {
|
61
|
+
display: flex;
|
62
|
+
width: 100%;
|
63
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { FooterTable, styles, options } from '.'
|
2
|
+
|
3
|
+
import {
|
4
|
+
getTemplate,
|
5
|
+
getListTemplate,
|
6
|
+
getOptionsArgTypes,
|
7
|
+
} from '../../helpers/storybook'
|
8
|
+
|
9
|
+
const Template = getTemplate(FooterTable, styles)
|
10
|
+
const ListTemplate = getListTemplate(FooterTable, styles)
|
11
|
+
|
12
|
+
export default {
|
13
|
+
title: 'Molecules/FooterTable',
|
14
|
+
component: FooterTable,
|
15
|
+
args: {},
|
16
|
+
argTypes: {
|
17
|
+
// types: getOptionsArgTypes(options.types),
|
18
|
+
},
|
19
|
+
}
|
20
|
+
|
21
|
+
export const Default = Template.bind({})
|
22
|
+
// export const List = ListTemplate.bind({})
|
23
|
+
// List.args = { items: options.types.map((type) => ({ type })) }
|
@@ -0,0 +1,83 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import PropTypes from 'prop-types'
|
3
|
+
|
4
|
+
import styles from './IconLabel.module.css'
|
5
|
+
import withStyles from '../../hocs/withStyles'
|
6
|
+
|
7
|
+
import Icon from '../../atoms/Icon'
|
8
|
+
import Paragraph from '../../atoms/Paragraph'
|
9
|
+
|
10
|
+
import { options } from './constants'
|
11
|
+
import Spacer from '../../layout/Spacer'
|
12
|
+
|
13
|
+
const handleClick = ({ onClick }) => (event) => {
|
14
|
+
onClick(event)
|
15
|
+
}
|
16
|
+
|
17
|
+
const sizesMap = {
|
18
|
+
sm: {
|
19
|
+
icon: 'sm',
|
20
|
+
paragraph: 'xs',
|
21
|
+
},
|
22
|
+
md: {
|
23
|
+
icon: 'md',
|
24
|
+
paragraph: 'sm',
|
25
|
+
},
|
26
|
+
}
|
27
|
+
|
28
|
+
export const IconLabel = ({
|
29
|
+
getStyles,
|
30
|
+
icon,
|
31
|
+
label,
|
32
|
+
onClick,
|
33
|
+
isClickable,
|
34
|
+
direction,
|
35
|
+
isActive,
|
36
|
+
size,
|
37
|
+
}) => {
|
38
|
+
return (
|
39
|
+
<div
|
40
|
+
className={getStyles('icon-label', {
|
41
|
+
'is-clickable': isClickable || !!onClick,
|
42
|
+
[`direction-${direction}`]: direction,
|
43
|
+
})}
|
44
|
+
onClick={onClick && handleClick({ onClick })}
|
45
|
+
>
|
46
|
+
<Icon
|
47
|
+
name={icon}
|
48
|
+
color={isActive ? 'primary' : 'base'}
|
49
|
+
background={isActive ? 'highlight' : 'transparent'}
|
50
|
+
size={sizesMap[size].icon}
|
51
|
+
></Icon>
|
52
|
+
{direction === 'horizontal' && <Spacer.Horizontal size="xs" />}
|
53
|
+
<Paragraph
|
54
|
+
size={sizesMap[size].paragraph}
|
55
|
+
color={isActive ? 'primary' : 'base'}
|
56
|
+
isInline
|
57
|
+
>
|
58
|
+
{label}
|
59
|
+
</Paragraph>
|
60
|
+
</div>
|
61
|
+
)
|
62
|
+
}
|
63
|
+
|
64
|
+
IconLabel.propTypes = {
|
65
|
+
getStyles: PropTypes.func.isRequired,
|
66
|
+
icon: PropTypes.oneOf(options.icons).isRequired,
|
67
|
+
label: PropTypes.string.isRequired,
|
68
|
+
direction: PropTypes.oneOf(['vertical', 'horizontal']),
|
69
|
+
isClickable: PropTypes.bool,
|
70
|
+
onClick: PropTypes.func,
|
71
|
+
isActive: PropTypes.bool,
|
72
|
+
size: PropTypes.oneOf(options.sizes),
|
73
|
+
}
|
74
|
+
|
75
|
+
IconLabel.defaultProps = {
|
76
|
+
direction: 'vertical',
|
77
|
+
size: 'sm',
|
78
|
+
isActive: false,
|
79
|
+
getStyles: () => {},
|
80
|
+
onClick: () => {},
|
81
|
+
}
|
82
|
+
|
83
|
+
export default withStyles(styles)(IconLabel)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { IconLabel, styles, options } from '.'
|
2
|
+
|
3
|
+
import { getTemplate, getOptionsArgTypes } from '../../helpers/storybook'
|
4
|
+
|
5
|
+
const Template = getTemplate(IconLabel, styles)
|
6
|
+
|
7
|
+
export default {
|
8
|
+
title: 'Molecules/IconLabel',
|
9
|
+
component: IconLabel,
|
10
|
+
args: { icon: 'user', label: 'User' },
|
11
|
+
argTypes: {
|
12
|
+
icon: getOptionsArgTypes(options.icons),
|
13
|
+
},
|
14
|
+
}
|
15
|
+
|
16
|
+
export const Default = Template.bind({})
|
17
|
+
|
18
|
+
export const Clickable = Template.bind({})
|
19
|
+
Clickable.args = { isClickable: true }
|
20
|
+
|
21
|
+
export const Active = Template.bind({})
|
22
|
+
Active.args = { isActive: true }
|
23
|
+
|
24
|
+
export const Horizontal = Template.bind({})
|
25
|
+
Horizontal.args = { direction: 'horizontal' }
|
@@ -0,0 +1,211 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`Storyshots Molecules/IconLabel Active 1`] = `
|
4
|
+
<div
|
5
|
+
style={
|
6
|
+
Object {
|
7
|
+
"alignContent": "flex-start",
|
8
|
+
"display": "flex",
|
9
|
+
"flexDirection": "column",
|
10
|
+
"flexWrap": "wrap",
|
11
|
+
"gap": "10px 30px",
|
12
|
+
"height": "100%",
|
13
|
+
"justifyContent": "flex-start",
|
14
|
+
"maxHeight": "auto",
|
15
|
+
}
|
16
|
+
}
|
17
|
+
>
|
18
|
+
<div
|
19
|
+
className="icon-label is-clickable direction-vertical"
|
20
|
+
onClick={[Function]}
|
21
|
+
>
|
22
|
+
<div
|
23
|
+
className="icon color-primary size-sm background-highlight"
|
24
|
+
style={
|
25
|
+
Object {
|
26
|
+
"height": 25,
|
27
|
+
"width": 25,
|
28
|
+
}
|
29
|
+
}
|
30
|
+
>
|
31
|
+
<svg
|
32
|
+
height={25}
|
33
|
+
viewBox="0 0 14 15"
|
34
|
+
width={25}
|
35
|
+
xmlns="http://www.w3.org/2000/svg"
|
36
|
+
>
|
37
|
+
<path
|
38
|
+
clipRule="evenodd"
|
39
|
+
d="M1.01693 15L0 14.5538C0.308723 13.8561 1.22056 13.4481 2.2775 12.975C3.29682 12.5187 4.56575 11.9509 4.56575 11.2777V10.3614C4.20448 10.0594 3.59241 9.41 3.49627 8.43355C3.20367 8.15831 2.71819 7.59711 2.71819 6.90245C2.71819 6.48066 2.88539 6.14048 3.03229 5.92422C2.94272 5.47204 2.77432 4.52538 2.77432 3.83073C2.77432 1.50369 4.39855 0 6.91192 0C7.63327 0 8.50928 0.193026 8.99714 0.714314C10.1365 0.914489 11.0501 2.26031 11.0501 3.83073C11.0501 4.83815 10.8728 5.66685 10.7659 6.07673C10.8847 6.2775 11.0131 6.57538 11.0131 6.92092C11.0131 7.70196 10.6178 8.20716 10.2488 8.47704C10.1443 9.43979 9.59429 10.0606 9.25869 10.3549V11.2777C9.25869 11.8502 10.2989 12.2351 11.3051 12.6074C12.4492 13.0304 13.6328 13.4683 14 14.4257L12.9616 14.8213C12.7753 14.3328 11.7888 13.9681 10.9187 13.6464C9.62056 13.1657 8.1486 12.6211 8.1486 11.2777V9.77997L8.40776 9.61732C8.43404 9.60005 9.15598 9.11629 9.15598 8.14997V7.77524L9.50471 7.63583C9.56323 7.60902 9.90241 7.43089 9.90241 6.92092C9.90241 6.76483 9.78298 6.59028 9.74118 6.54142L9.53875 6.30431L9.63191 6.00226C9.63489 5.99273 9.94003 5.0562 9.94003 3.83073C9.94003 2.78517 9.33931 1.79681 8.70335 1.79681H8.38447L8.22384 1.52216C8.10621 1.32139 7.607 1.10811 6.91192 1.10811C5.01659 1.10811 3.88441 2.12567 3.88441 3.83073C3.88441 4.63619 4.16746 5.93316 4.17044 5.94626L4.23613 6.24653L4.01638 6.461C4.01638 6.461 3.82828 6.65939 3.82828 6.90245C3.82828 7.20927 4.19731 7.59115 4.37586 7.72818L4.59202 7.89439L4.59382 8.16844C4.59382 9.08114 5.38324 9.59588 5.41727 9.61732L5.67285 9.78056L5.67584 11.2777C5.67584 12.6688 4.11192 13.3688 2.73133 13.986C2.06492 14.2839 1.15308 14.6926 1.01693 15Z"
|
40
|
+
fillRule="evenodd"
|
41
|
+
/>
|
42
|
+
</svg>
|
43
|
+
</div>
|
44
|
+
<p
|
45
|
+
className="paragraph color-primary size-xs weight-normal is-inline"
|
46
|
+
>
|
47
|
+
User
|
48
|
+
</p>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
`;
|
52
|
+
|
53
|
+
exports[`Storyshots Molecules/IconLabel Clickable 1`] = `
|
54
|
+
<div
|
55
|
+
style={
|
56
|
+
Object {
|
57
|
+
"alignContent": "flex-start",
|
58
|
+
"display": "flex",
|
59
|
+
"flexDirection": "column",
|
60
|
+
"flexWrap": "wrap",
|
61
|
+
"gap": "10px 30px",
|
62
|
+
"height": "100%",
|
63
|
+
"justifyContent": "flex-start",
|
64
|
+
"maxHeight": "auto",
|
65
|
+
}
|
66
|
+
}
|
67
|
+
>
|
68
|
+
<div
|
69
|
+
className="icon-label is-clickable direction-vertical"
|
70
|
+
onClick={[Function]}
|
71
|
+
>
|
72
|
+
<div
|
73
|
+
className="icon color-base size-sm background-transparent"
|
74
|
+
style={
|
75
|
+
Object {
|
76
|
+
"height": 25,
|
77
|
+
"width": 25,
|
78
|
+
}
|
79
|
+
}
|
80
|
+
>
|
81
|
+
<svg
|
82
|
+
height={25}
|
83
|
+
viewBox="0 0 14 15"
|
84
|
+
width={25}
|
85
|
+
xmlns="http://www.w3.org/2000/svg"
|
86
|
+
>
|
87
|
+
<path
|
88
|
+
clipRule="evenodd"
|
89
|
+
d="M1.01693 15L0 14.5538C0.308723 13.8561 1.22056 13.4481 2.2775 12.975C3.29682 12.5187 4.56575 11.9509 4.56575 11.2777V10.3614C4.20448 10.0594 3.59241 9.41 3.49627 8.43355C3.20367 8.15831 2.71819 7.59711 2.71819 6.90245C2.71819 6.48066 2.88539 6.14048 3.03229 5.92422C2.94272 5.47204 2.77432 4.52538 2.77432 3.83073C2.77432 1.50369 4.39855 0 6.91192 0C7.63327 0 8.50928 0.193026 8.99714 0.714314C10.1365 0.914489 11.0501 2.26031 11.0501 3.83073C11.0501 4.83815 10.8728 5.66685 10.7659 6.07673C10.8847 6.2775 11.0131 6.57538 11.0131 6.92092C11.0131 7.70196 10.6178 8.20716 10.2488 8.47704C10.1443 9.43979 9.59429 10.0606 9.25869 10.3549V11.2777C9.25869 11.8502 10.2989 12.2351 11.3051 12.6074C12.4492 13.0304 13.6328 13.4683 14 14.4257L12.9616 14.8213C12.7753 14.3328 11.7888 13.9681 10.9187 13.6464C9.62056 13.1657 8.1486 12.6211 8.1486 11.2777V9.77997L8.40776 9.61732C8.43404 9.60005 9.15598 9.11629 9.15598 8.14997V7.77524L9.50471 7.63583C9.56323 7.60902 9.90241 7.43089 9.90241 6.92092C9.90241 6.76483 9.78298 6.59028 9.74118 6.54142L9.53875 6.30431L9.63191 6.00226C9.63489 5.99273 9.94003 5.0562 9.94003 3.83073C9.94003 2.78517 9.33931 1.79681 8.70335 1.79681H8.38447L8.22384 1.52216C8.10621 1.32139 7.607 1.10811 6.91192 1.10811C5.01659 1.10811 3.88441 2.12567 3.88441 3.83073C3.88441 4.63619 4.16746 5.93316 4.17044 5.94626L4.23613 6.24653L4.01638 6.461C4.01638 6.461 3.82828 6.65939 3.82828 6.90245C3.82828 7.20927 4.19731 7.59115 4.37586 7.72818L4.59202 7.89439L4.59382 8.16844C4.59382 9.08114 5.38324 9.59588 5.41727 9.61732L5.67285 9.78056L5.67584 11.2777C5.67584 12.6688 4.11192 13.3688 2.73133 13.986C2.06492 14.2839 1.15308 14.6926 1.01693 15Z"
|
90
|
+
fillRule="evenodd"
|
91
|
+
/>
|
92
|
+
</svg>
|
93
|
+
</div>
|
94
|
+
<p
|
95
|
+
className="paragraph color-base size-xs weight-normal is-inline"
|
96
|
+
>
|
97
|
+
User
|
98
|
+
</p>
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
`;
|
102
|
+
|
103
|
+
exports[`Storyshots Molecules/IconLabel Default 1`] = `
|
104
|
+
<div
|
105
|
+
style={
|
106
|
+
Object {
|
107
|
+
"alignContent": "flex-start",
|
108
|
+
"display": "flex",
|
109
|
+
"flexDirection": "column",
|
110
|
+
"flexWrap": "wrap",
|
111
|
+
"gap": "10px 30px",
|
112
|
+
"height": "100%",
|
113
|
+
"justifyContent": "flex-start",
|
114
|
+
"maxHeight": "auto",
|
115
|
+
}
|
116
|
+
}
|
117
|
+
>
|
118
|
+
<div
|
119
|
+
className="icon-label is-clickable direction-vertical"
|
120
|
+
onClick={[Function]}
|
121
|
+
>
|
122
|
+
<div
|
123
|
+
className="icon color-base size-sm background-transparent"
|
124
|
+
style={
|
125
|
+
Object {
|
126
|
+
"height": 25,
|
127
|
+
"width": 25,
|
128
|
+
}
|
129
|
+
}
|
130
|
+
>
|
131
|
+
<svg
|
132
|
+
height={25}
|
133
|
+
viewBox="0 0 14 15"
|
134
|
+
width={25}
|
135
|
+
xmlns="http://www.w3.org/2000/svg"
|
136
|
+
>
|
137
|
+
<path
|
138
|
+
clipRule="evenodd"
|
139
|
+
d="M1.01693 15L0 14.5538C0.308723 13.8561 1.22056 13.4481 2.2775 12.975C3.29682 12.5187 4.56575 11.9509 4.56575 11.2777V10.3614C4.20448 10.0594 3.59241 9.41 3.49627 8.43355C3.20367 8.15831 2.71819 7.59711 2.71819 6.90245C2.71819 6.48066 2.88539 6.14048 3.03229 5.92422C2.94272 5.47204 2.77432 4.52538 2.77432 3.83073C2.77432 1.50369 4.39855 0 6.91192 0C7.63327 0 8.50928 0.193026 8.99714 0.714314C10.1365 0.914489 11.0501 2.26031 11.0501 3.83073C11.0501 4.83815 10.8728 5.66685 10.7659 6.07673C10.8847 6.2775 11.0131 6.57538 11.0131 6.92092C11.0131 7.70196 10.6178 8.20716 10.2488 8.47704C10.1443 9.43979 9.59429 10.0606 9.25869 10.3549V11.2777C9.25869 11.8502 10.2989 12.2351 11.3051 12.6074C12.4492 13.0304 13.6328 13.4683 14 14.4257L12.9616 14.8213C12.7753 14.3328 11.7888 13.9681 10.9187 13.6464C9.62056 13.1657 8.1486 12.6211 8.1486 11.2777V9.77997L8.40776 9.61732C8.43404 9.60005 9.15598 9.11629 9.15598 8.14997V7.77524L9.50471 7.63583C9.56323 7.60902 9.90241 7.43089 9.90241 6.92092C9.90241 6.76483 9.78298 6.59028 9.74118 6.54142L9.53875 6.30431L9.63191 6.00226C9.63489 5.99273 9.94003 5.0562 9.94003 3.83073C9.94003 2.78517 9.33931 1.79681 8.70335 1.79681H8.38447L8.22384 1.52216C8.10621 1.32139 7.607 1.10811 6.91192 1.10811C5.01659 1.10811 3.88441 2.12567 3.88441 3.83073C3.88441 4.63619 4.16746 5.93316 4.17044 5.94626L4.23613 6.24653L4.01638 6.461C4.01638 6.461 3.82828 6.65939 3.82828 6.90245C3.82828 7.20927 4.19731 7.59115 4.37586 7.72818L4.59202 7.89439L4.59382 8.16844C4.59382 9.08114 5.38324 9.59588 5.41727 9.61732L5.67285 9.78056L5.67584 11.2777C5.67584 12.6688 4.11192 13.3688 2.73133 13.986C2.06492 14.2839 1.15308 14.6926 1.01693 15Z"
|
140
|
+
fillRule="evenodd"
|
141
|
+
/>
|
142
|
+
</svg>
|
143
|
+
</div>
|
144
|
+
<p
|
145
|
+
className="paragraph color-base size-xs weight-normal is-inline"
|
146
|
+
>
|
147
|
+
User
|
148
|
+
</p>
|
149
|
+
</div>
|
150
|
+
</div>
|
151
|
+
`;
|
152
|
+
|
153
|
+
exports[`Storyshots Molecules/IconLabel Horizontal 1`] = `
|
154
|
+
<div
|
155
|
+
style={
|
156
|
+
Object {
|
157
|
+
"alignContent": "flex-start",
|
158
|
+
"display": "flex",
|
159
|
+
"flexDirection": "column",
|
160
|
+
"flexWrap": "wrap",
|
161
|
+
"gap": "10px 30px",
|
162
|
+
"height": "100%",
|
163
|
+
"justifyContent": "flex-start",
|
164
|
+
"maxHeight": "auto",
|
165
|
+
}
|
166
|
+
}
|
167
|
+
>
|
168
|
+
<div
|
169
|
+
className="icon-label is-clickable direction-horizontal"
|
170
|
+
onClick={[Function]}
|
171
|
+
>
|
172
|
+
<div
|
173
|
+
className="icon color-base size-sm background-transparent"
|
174
|
+
style={
|
175
|
+
Object {
|
176
|
+
"height": 25,
|
177
|
+
"width": 25,
|
178
|
+
}
|
179
|
+
}
|
180
|
+
>
|
181
|
+
<svg
|
182
|
+
height={25}
|
183
|
+
viewBox="0 0 14 15"
|
184
|
+
width={25}
|
185
|
+
xmlns="http://www.w3.org/2000/svg"
|
186
|
+
>
|
187
|
+
<path
|
188
|
+
clipRule="evenodd"
|
189
|
+
d="M1.01693 15L0 14.5538C0.308723 13.8561 1.22056 13.4481 2.2775 12.975C3.29682 12.5187 4.56575 11.9509 4.56575 11.2777V10.3614C4.20448 10.0594 3.59241 9.41 3.49627 8.43355C3.20367 8.15831 2.71819 7.59711 2.71819 6.90245C2.71819 6.48066 2.88539 6.14048 3.03229 5.92422C2.94272 5.47204 2.77432 4.52538 2.77432 3.83073C2.77432 1.50369 4.39855 0 6.91192 0C7.63327 0 8.50928 0.193026 8.99714 0.714314C10.1365 0.914489 11.0501 2.26031 11.0501 3.83073C11.0501 4.83815 10.8728 5.66685 10.7659 6.07673C10.8847 6.2775 11.0131 6.57538 11.0131 6.92092C11.0131 7.70196 10.6178 8.20716 10.2488 8.47704C10.1443 9.43979 9.59429 10.0606 9.25869 10.3549V11.2777C9.25869 11.8502 10.2989 12.2351 11.3051 12.6074C12.4492 13.0304 13.6328 13.4683 14 14.4257L12.9616 14.8213C12.7753 14.3328 11.7888 13.9681 10.9187 13.6464C9.62056 13.1657 8.1486 12.6211 8.1486 11.2777V9.77997L8.40776 9.61732C8.43404 9.60005 9.15598 9.11629 9.15598 8.14997V7.77524L9.50471 7.63583C9.56323 7.60902 9.90241 7.43089 9.90241 6.92092C9.90241 6.76483 9.78298 6.59028 9.74118 6.54142L9.53875 6.30431L9.63191 6.00226C9.63489 5.99273 9.94003 5.0562 9.94003 3.83073C9.94003 2.78517 9.33931 1.79681 8.70335 1.79681H8.38447L8.22384 1.52216C8.10621 1.32139 7.607 1.10811 6.91192 1.10811C5.01659 1.10811 3.88441 2.12567 3.88441 3.83073C3.88441 4.63619 4.16746 5.93316 4.17044 5.94626L4.23613 6.24653L4.01638 6.461C4.01638 6.461 3.82828 6.65939 3.82828 6.90245C3.82828 7.20927 4.19731 7.59115 4.37586 7.72818L4.59202 7.89439L4.59382 8.16844C4.59382 9.08114 5.38324 9.59588 5.41727 9.61732L5.67285 9.78056L5.67584 11.2777C5.67584 12.6688 4.11192 13.3688 2.73133 13.986C2.06492 14.2839 1.15308 14.6926 1.01693 15Z"
|
190
|
+
fillRule="evenodd"
|
191
|
+
/>
|
192
|
+
</svg>
|
193
|
+
</div>
|
194
|
+
<div
|
195
|
+
className="spacer horizontal"
|
196
|
+
style={
|
197
|
+
Object {
|
198
|
+
"height": "100%",
|
199
|
+
"maxHeight": "auto",
|
200
|
+
"width": 5,
|
201
|
+
}
|
202
|
+
}
|
203
|
+
/>
|
204
|
+
<p
|
205
|
+
className="paragraph color-base size-xs weight-normal is-inline"
|
206
|
+
>
|
207
|
+
User
|
208
|
+
</p>
|
209
|
+
</div>
|
210
|
+
</div>
|
211
|
+
`;
|