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,323 @@
|
|
1
|
+
export const options = {
|
2
|
+
|
3
|
+
bookings: [
|
4
|
+
{
|
5
|
+
id: 346248956,
|
6
|
+
idUser: 146280,
|
7
|
+
idAuthorization: 817457,
|
8
|
+
status: 30,
|
9
|
+
origin: {
|
10
|
+
addressField: "Cines Embajadores, Glorieta Sta. María de la Cabeza, 5, 28045 Madrid",
|
11
|
+
lat: 40.40068,
|
12
|
+
lon: -3.698589
|
13
|
+
},
|
14
|
+
destination: {
|
15
|
+
addressField: "Estación de Chamartín, Madrid, España",
|
16
|
+
lat: 40.47237,
|
17
|
+
lon: -3.683141
|
18
|
+
},
|
19
|
+
timeBookingStartRealTimestamp: 1653559804000,
|
20
|
+
asap: true,
|
21
|
+
paymentMethod: 50,
|
22
|
+
entryChannel: 15,
|
23
|
+
idSupplierFleet: 57,
|
24
|
+
idSupplier: 57,
|
25
|
+
distanceMeters: 10501,
|
26
|
+
durationMinutes: 0,
|
27
|
+
location: "MADRID",
|
28
|
+
passengerName: "Alberto Alvarez Gonzalez",
|
29
|
+
phoneNumberPassenger: "453654654",
|
30
|
+
phoneNumberTaxiDriver: "600000000",
|
31
|
+
idSupplierTax: "11",
|
32
|
+
idSupplierServic: "15828",
|
33
|
+
cancelledWithCharg: false,
|
34
|
+
priceCustomer: "25.00000",
|
35
|
+
priceSupplier: "25.00000",
|
36
|
+
phoneNumberSupplier: "676800672",
|
37
|
+
idAuthorizationGroup: 335,
|
38
|
+
supplierTaxiDescription: "Seat León | 4",
|
39
|
+
subscriberCode: "6300",
|
40
|
+
userNumber: "93271095",
|
41
|
+
idService: 1946195318,
|
42
|
+
shared: false,
|
43
|
+
timeZone: "Europe/Madrid",
|
44
|
+
notes: "2022-05-26 10:10:03 | 11 | Laura | 150 | Servicio solicitado Portal - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML like Gecko) Chrome/101.0.4951.64 Safari/537.36. WL 4069\n2022-05-26 10:10:03 | 33 | SYSTEM | 114 | El número de vuelo es a.\n2022-05-26 10:10:03 | 33 | SYSTEM | 149 | Servicio enviado a MADRID_TAKSEE_TAXI (57)\n2022-05-26 10:10:12 | 44 | SYSTEM | 110 | Ha ocurrido un error enviando el email de confirmación al usuario\n2022-05-26 10:10:12 | 11 | SYSTEM | 130 | Confirmado por: MADRID_TAKSEE_TAXI (Taxi: 11). Num. servicio: 15828\n2022-05-26 10:10:44 | 33 | SYSTEM | 136 | Finalizado por SPARTAN. Importe 25 EUR establecido por SPARTAN (25.0 + 0.00 peaje)(40.4777 -3.7073)\n2022-05-26 10:10:44 | 33 | SYSTEM | 145 | Recibo enviado KO - 25€ + 0€ (peaje)",
|
45
|
+
tollCustomer: 0.00000,
|
46
|
+
tollSupplier: 0.00000,
|
47
|
+
paymentMethodCustomer: 4,
|
48
|
+
createdBy: 146280,
|
49
|
+
bookingBreakTitle1: "Evento",
|
50
|
+
bookingBreakTitle2: "Descripción actuación",
|
51
|
+
bookingBreakTitle3: "Centro de coste",
|
52
|
+
bookingBreakTitle4: "CIF visita comercial",
|
53
|
+
bookingBreakValue1: "Ev. Gen. - Acciones comerciales",
|
54
|
+
bookingBreakValue2: "a",
|
55
|
+
bookingBreakValue3: "",
|
56
|
+
bookingBreakValue4: "02661135N",
|
57
|
+
authorizationBreakTitle1: "Num.Empleado",
|
58
|
+
authorizationBreakTitle2: "Centro Empleado",
|
59
|
+
authorizationBreakTitle3: "ID Empresa",
|
60
|
+
authorizationBreakTitle7: "Nombre de la empresa",
|
61
|
+
authorizationBreakValue1: "U0193271",
|
62
|
+
authorizationBreakValue2: "5570",
|
63
|
+
authorizationBreakValue3: "95",
|
64
|
+
authorizationBreakValue5: "SC",
|
65
|
+
authorizationBreakValue6: "U0193271095",
|
66
|
+
authorizationBreakValue7: "FACILITIES"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
id: 346248955,
|
70
|
+
idUser: 146280,
|
71
|
+
idAuthorization: 817457,
|
72
|
+
status: 30,
|
73
|
+
origin: {
|
74
|
+
addressField: "Estación de Chamartín, Madrid, España",
|
75
|
+
lat: 40.47237,
|
76
|
+
lon: -3.683141
|
77
|
+
},
|
78
|
+
destination: {
|
79
|
+
addressField: "Cines Embajadores, Glorieta Sta. María de la Cabeza, 5, 28045 Madrid",
|
80
|
+
lat: 40.40068,
|
81
|
+
lon: -3.698589
|
82
|
+
},
|
83
|
+
timeBookingStartRealTimestamp: 1653559749000,
|
84
|
+
asap: true,
|
85
|
+
paymentMethod: 50,
|
86
|
+
entryChannel: 15,
|
87
|
+
idSupplierFleet: 57,
|
88
|
+
idSupplier: 57,
|
89
|
+
distanceMeters: 10501,
|
90
|
+
durationMinutes: 0,
|
91
|
+
location: "MADRID",
|
92
|
+
passengerName: "Zombre Apellido1 Apellido2",
|
93
|
+
phoneNumberPassenger: "453654654",
|
94
|
+
phoneNumberTaxiDriver: "600000000",
|
95
|
+
idSupplierTaxi: "11",
|
96
|
+
idSupplierService: "15827",
|
97
|
+
cancelledWithCharge: false,
|
98
|
+
priceCustomer: "22.50000",
|
99
|
+
priceSupplier: "22.50000",
|
100
|
+
phoneNumberSupplier: "676800672",
|
101
|
+
idAuthorizationGroup: 335,
|
102
|
+
supplierTaxiDescription: "Seat León | 4",
|
103
|
+
subscriberCode: "6300",
|
104
|
+
userNumber: "93271095",
|
105
|
+
idService: 1946195317,
|
106
|
+
shared: false,
|
107
|
+
timeZone: "Europe/Madrid",
|
108
|
+
notes: "2022-05-26 10:09:09 | 11 | Laura | 150 | Servicio solicitado Portal - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML like Gecko) Chrome/101.0.4951.64 Safari/537.36. WL 4069\n2022-05-26 10:09:09 | 33 | SYSTEM | 114 | El número de vuelo es 1.\n2022-05-26 10:09:09 | 33 | SYSTEM | 149 | Servicio enviado a MADRID_TAKSEE_TAXI (57)\n2022-05-26 10:09:18 | 44 | SYSTEM | 110 | Ha ocurrido un error enviando el email de confirmación al usuario\n2022-05-26 10:09:18 | 11 | SYSTEM | 130 | Confirmado por: MADRID_TAKSEE_TAXI (Taxi: 11). Num. servicio: 15827\n2022-05-26 10:09:51 | 33 | SYSTEM | 136 | Finalizado por SPARTAN. Importe 22.5 EUR establecido por SPARTAN (22.5 + 0.00 peaje)(40.4777 -3.7073)\n2022-05-26 10:09:52 | 33 | SYSTEM | 145 | Recibo enviado KO - 22.5€ + 0€ (peaje)",
|
109
|
+
tollCustomer: 0.00000,
|
110
|
+
tollSupplier: 0.00000,
|
111
|
+
paymentMethodCustomer: 4,
|
112
|
+
createdBy: 146280,
|
113
|
+
bookingBreakTitle1: "Evento",
|
114
|
+
bookingBreakTitle2: "Descripción actuación",
|
115
|
+
bookingBreakTitle3: "Centro de coste",
|
116
|
+
bookingBreakTitle4: "CIF visita comercial",
|
117
|
+
bookingBreakValue1: "Ev. Gen. - Acciones comerciales",
|
118
|
+
bookingBreakValue2: "sasasa",
|
119
|
+
bookingBreakValue3: "",
|
120
|
+
bookingBreakValue4: "02661135N",
|
121
|
+
authorizationBreakTitle1: "Num.Empleado",
|
122
|
+
authorizationBreakTitle2: "Centro Empleado",
|
123
|
+
authorizationBreakTitle3: "ID Empresa",
|
124
|
+
authorizationBreakTitle7: "Nombre de la empresa",
|
125
|
+
authorizationBreakValue1: "U0193271",
|
126
|
+
authorizationBreakValue2: "5570",
|
127
|
+
authorizationBreakValue3: "95",
|
128
|
+
authorizationBreakValue5: "SC",
|
129
|
+
authorizationBreakValue6: "U0193271095",
|
130
|
+
authorizationBreakValue7: "FACILITIES"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
id: 346248954,
|
134
|
+
idUser: 146280,
|
135
|
+
idAuthorization: 817457,
|
136
|
+
status: 30,
|
137
|
+
origin: {
|
138
|
+
addressField: "Cines Embajadores, Glorieta Sta. María de la Cabeza, 5, 28045 Madrid",
|
139
|
+
lat: 40.40068,
|
140
|
+
lon: -3.698589
|
141
|
+
},
|
142
|
+
destination: {
|
143
|
+
addressField: "Estación de Chamartín, Madrid, España",
|
144
|
+
lat: 40.47237,
|
145
|
+
lon: -3.683141
|
146
|
+
},
|
147
|
+
timeBookingStartRealTimestamp: 1653559603000,
|
148
|
+
asap: true,
|
149
|
+
paymentMethod: 50,
|
150
|
+
entryChannel: 15,
|
151
|
+
idSupplierFleet: 57,
|
152
|
+
idSupplier: 57,
|
153
|
+
distanceMeters: 10501,
|
154
|
+
durationMinutes: 0,
|
155
|
+
location: "MADRID",
|
156
|
+
passengerName: "Sandra Vicente Garcia",
|
157
|
+
phoneNumberPassenger: "453654654",
|
158
|
+
phoneNumberTaxiDriver: "600000000",
|
159
|
+
idSupplierTaxi: "11",
|
160
|
+
idSupplierService: "15826",
|
161
|
+
cancelledWithCharge: false,
|
162
|
+
priceCustomer: "23.00000",
|
163
|
+
priceSupplier: "23.00000",
|
164
|
+
phoneNumberSupplier: "676800672",
|
165
|
+
idAuthorizationGroup: 335,
|
166
|
+
supplierTaxiDescription: "Seat León | 4",
|
167
|
+
subscriberCode: "6300",
|
168
|
+
userNumber: "93271095",
|
169
|
+
idService: 1946195316,
|
170
|
+
shared: false,
|
171
|
+
timeZone: "Europe/Madrid",
|
172
|
+
notes: "2022-05-26 10:06:42 | 11 | Laura | 150 | Servicio solicitado Portal - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML like Gecko) Chrome/101.0.4951.64 Safari/537.36. WL 4069\n2022-05-26 10:06:42 | 33 | SYSTEM | 114 | El número de vuelo es 1.\n2022-05-26 10:06:42 | 33 | SYSTEM | 149 | Servicio enviado a MADRID_TAKSEE_TAXI (57)\n2022-05-26 10:06:51 | 44 | SYSTEM | 110 | Ha ocurrido un error enviando el email de confirmación al usuario\n2022-05-26 10:06:51 | 11 | SYSTEM | 130 | Confirmado por: MADRID_TAKSEE_TAXI (Taxi: 11). Num. servicio: 15826\n2022-05-26 10:08:15 | 33 | SYSTEM | 136 | Finalizado por SPARTAN. Importe 23 EUR establecido por SPARTAN (23.0 + 0.00 peaje)(40.4777 -3.7073)\n2022-05-26 10:08:16 | 33 | SYSTEM | 145 | Recibo enviado KO - 23€ + 0€ (peaje)",
|
173
|
+
tollCustomer: 0.00000,
|
174
|
+
tollSupplier: 0.00000,
|
175
|
+
paymentMethodCustomer: 4,
|
176
|
+
createdBy: 146280,
|
177
|
+
bookingBreakTitle1: "Evento",
|
178
|
+
bookingBreakTitle2: "Descripción actuación",
|
179
|
+
bookingBreakTitle3: "Centro de coste",
|
180
|
+
bookingBreakTitle4: "CIF visita comercial",
|
181
|
+
bookingBreakValue1: "Ev. Gen. - Acciones comerciales",
|
182
|
+
bookingBreakValue2: "sasasa",
|
183
|
+
bookingBreakValue3: "",
|
184
|
+
bookingBreakValue4: "02661135N",
|
185
|
+
authorizationBreakTitle1: "Num.Empleado",
|
186
|
+
authorizationBreakTitle2: "Centro Empleado",
|
187
|
+
authorizationBreakTitle3: "ID Empresa",
|
188
|
+
authorizationBreakTitle7: "Nombre de la empresa",
|
189
|
+
authorizationBreakValue1: "U0193271",
|
190
|
+
authorizationBreakValue2: "5570",
|
191
|
+
authorizationBreakValue3: "95",
|
192
|
+
authorizationBreakValue5: "SC",
|
193
|
+
authorizationBreakValue6: "U0193271095",
|
194
|
+
authorizationBreakValue7: "FACILITIES"
|
195
|
+
}
|
196
|
+
],
|
197
|
+
|
198
|
+
columns: [
|
199
|
+
{
|
200
|
+
activeView: true,
|
201
|
+
sortable: true,
|
202
|
+
accessor: 'timeBookingStartRealTimestamp',
|
203
|
+
subAccessor: '',
|
204
|
+
title: 'Fecha',
|
205
|
+
viewIsFilter: true,
|
206
|
+
typeFilter: 'date',
|
207
|
+
subTypeFilter: false,
|
208
|
+
idInput: 'fecha',
|
209
|
+
nameInput: 'Fecha',
|
210
|
+
placeholder: 'Fecha'
|
211
|
+
},
|
212
|
+
{
|
213
|
+
activeView: true,
|
214
|
+
sortable: true,
|
215
|
+
accessor: 'passengerName',
|
216
|
+
subAccessor: '',
|
217
|
+
title: 'Pasajero',
|
218
|
+
viewIsFilter: true,
|
219
|
+
typeFilter: 'text',
|
220
|
+
subTypeFilter: false,
|
221
|
+
idInput: 'pasajero',
|
222
|
+
nameInput: 'Pasajero',
|
223
|
+
placeholder: 'Pasajero'
|
224
|
+
},
|
225
|
+
{
|
226
|
+
activeView: true,
|
227
|
+
sortable: true,
|
228
|
+
accessor: 'origin',
|
229
|
+
subAccessor: 'addressField',
|
230
|
+
title: 'Recogida',
|
231
|
+
viewIsFilter: true,
|
232
|
+
typeFilter: 'text',
|
233
|
+
subTypeFilter: false,
|
234
|
+
idInput: 'recogida',
|
235
|
+
nameInput: 'Recogida',
|
236
|
+
placeholder: 'Recogida'
|
237
|
+
},
|
238
|
+
{
|
239
|
+
activeView: true,
|
240
|
+
sortable: true,
|
241
|
+
accessor: 'destination',
|
242
|
+
subAccessor: 'addressField',
|
243
|
+
title: 'Destino',
|
244
|
+
viewIsFilter: true,
|
245
|
+
typeFilter: 'text',
|
246
|
+
subTypeFilter: false,
|
247
|
+
idInput: 'destino',
|
248
|
+
nameInput: 'Destino',
|
249
|
+
placeholder: 'Destino'
|
250
|
+
},
|
251
|
+
{
|
252
|
+
activeView: true,
|
253
|
+
sortable: true,
|
254
|
+
accessor: 'priceCustomer',
|
255
|
+
subAccessor: '',
|
256
|
+
title: 'Precio',
|
257
|
+
viewIsFilter: true,
|
258
|
+
typeFilter: 'text',
|
259
|
+
subTypeFilter: true,
|
260
|
+
idInput: 'precio',
|
261
|
+
nameInput: 'Precio',
|
262
|
+
placeholder: 'Precio'
|
263
|
+
},
|
264
|
+
{
|
265
|
+
activeView: false,
|
266
|
+
sortable: true,
|
267
|
+
accessor: 'id',
|
268
|
+
subAccessor: '',
|
269
|
+
title: 'ID',
|
270
|
+
viewIsFilter: true,
|
271
|
+
typeFilter: 'number',
|
272
|
+
subTypeFilter: false,
|
273
|
+
idInput: 'id',
|
274
|
+
nameInput: 'id',
|
275
|
+
placeholder: 'id'
|
276
|
+
},
|
277
|
+
{
|
278
|
+
activeView: false,
|
279
|
+
sortable: true,
|
280
|
+
accessor: 'idService',
|
281
|
+
subAccessor: '',
|
282
|
+
title: 'ID Reserva',
|
283
|
+
viewIsFilter: true,
|
284
|
+
typeFilter: 'number',
|
285
|
+
subTypeFilter: false,
|
286
|
+
idInput: 'IDReserva',
|
287
|
+
nameInput: 'ID Reserva',
|
288
|
+
placeholder: 'ID Reserva'
|
289
|
+
},
|
290
|
+
{
|
291
|
+
activeView: false,
|
292
|
+
sortable: true,
|
293
|
+
accessor: 'idSupplier',
|
294
|
+
subAccessor: '',
|
295
|
+
title: 'ID Proveedor',
|
296
|
+
viewIsFilter: true,
|
297
|
+
typeFilter: 'number',
|
298
|
+
subTypeFilter: false,
|
299
|
+
idInput: 'IDProveedor',
|
300
|
+
nameInput: 'ID Proveedor',
|
301
|
+
placeholder: 'ID Proveedor'
|
302
|
+
},
|
303
|
+
],
|
304
|
+
|
305
|
+
opAddColumns: [
|
306
|
+
{
|
307
|
+
label: 'ID',
|
308
|
+
value: 'id',
|
309
|
+
activeView: false,
|
310
|
+
},
|
311
|
+
{
|
312
|
+
label: 'ID Reserva',
|
313
|
+
value: 'idService',
|
314
|
+
activeView: false,
|
315
|
+
},
|
316
|
+
{
|
317
|
+
label: 'ID Proveedor',
|
318
|
+
value: 'idSupplier',
|
319
|
+
activeView: false,
|
320
|
+
}
|
321
|
+
]
|
322
|
+
|
323
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import PropTypes from 'prop-types'
|
3
|
+
|
4
|
+
import styles from './FlexColumnContent.module.css'
|
5
|
+
import { options } from './constants'
|
6
|
+
import withStyles from '../../hocs/withStyles'
|
7
|
+
|
8
|
+
export const FlexColumnContent = ({ children, getStyles }) => {
|
9
|
+
return (
|
10
|
+
<div className={getStyles('flex-column-content')}>
|
11
|
+
{children}
|
12
|
+
</div>
|
13
|
+
)
|
14
|
+
}
|
15
|
+
|
16
|
+
FlexColumnContent.propTypes = {
|
17
|
+
children: PropTypes.node.isRequired,
|
18
|
+
getStyles: PropTypes.func.isRequired,
|
19
|
+
types: PropTypes.oneOf(options.types),
|
20
|
+
}
|
21
|
+
|
22
|
+
FlexColumnContent.defaultProps = {
|
23
|
+
getStyles: () => {},
|
24
|
+
}
|
25
|
+
|
26
|
+
export default withStyles(styles)(FlexColumnContent)
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { FlexColumnContent, styles, options } from '.'
|
2
|
+
|
3
|
+
import {
|
4
|
+
getTemplate,
|
5
|
+
getListTemplate,
|
6
|
+
getOptionsArgTypes,
|
7
|
+
} from '../../helpers/storybook'
|
8
|
+
|
9
|
+
const Template = getTemplate(FlexColumnContent, styles)
|
10
|
+
const ListTemplate = getListTemplate(FlexColumnContent, styles)
|
11
|
+
|
12
|
+
export default {
|
13
|
+
title: 'Layout/FlexColumnContent',
|
14
|
+
component: FlexColumnContent,
|
15
|
+
args: {
|
16
|
+
children: `Farthings pulled strain? Half they'll greater land sordid Elessar. Glamdring um 17 13 motion? Creaked fate spawning chief lords loved loveliest ashes Elfs witness. Brook born Caradhras dining raining! Seeing-stones taking unlost working. A wizard is never late, Frodo Baggins. Nor is he early. He arrives precisely when he means to. Oakenshield despite distinct prosperous wields relight dark weighed leader reaches rid honor. Moments poison Sackville-Bagginses echoes dozens fend get. Scales exist apple Gundabad retaken bunch agreeable mantle cannot name's seasoning private.
|
17
|
+
Brave dry defeats? Remembered unleashed Denethor niceties legacy. Streets cares pretty Brandybucks ostler. Intact dispatch their expenses suffered flaming bacon should Fili? Jacksie begins hallway needed tracked Gondor's wonderful popularity. Seemed ears perfectly Oakenshield's pale fall animals stabs betrayed grumbling? Stuff awake Brandybuck large done. Curse you and all the halflings!
|
18
|
+
Dared sit torment goes Anárion forgiven west. Summon Bucklebury ship. Terms none Farthings. Tea choose Dwarvish! Leagues gracious carpet payment Brandywine senses very thousand! Don't you leave him, Samwise Gamgee. Firestorm raising Shire reaction mud morninged shines death should! It'll Halflings nab pot drove start. Carpet Lasgalen seen sleepies!
|
19
|
+
Seeing renown knocked battered contend World shepherd. Roof sautéed kingdom agree curtain lived preparing down material Galion appearance! Faramir one-fourteenth study talked amongst fisherman barren recoil responsible. There is one Dwarf yet in Moria who still draws breath. Boats wait exaggerate guessed Muil usurper suffice. Unspoken swears stands serpent depart Mithril. Ugly threat Dwarf possessions yours homage long-term unmade. Well-earned suffice tapestry tongue piled smoke lacerations talisman helps Dragon-Slayer crown? Blanket shan't dare appearances hours grave Muil.`,
|
20
|
+
},
|
21
|
+
argTypes: {
|
22
|
+
types: getOptionsArgTypes(options.types),
|
23
|
+
},
|
24
|
+
}
|
25
|
+
|
26
|
+
export const Default = Template.bind({})
|
27
|
+
// export const List = ListTemplate.bind({})
|
28
|
+
// List.args = { items: options.types.map((type) => ({ type })) }
|
@@ -0,0 +1 @@
|
|
1
|
+
export const options = { types: ['row', 'column', ] }
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import PropTypes from 'prop-types'
|
3
|
+
|
4
|
+
import Spacer from '../Spacer'
|
5
|
+
|
6
|
+
import styles from './FullHeightContent.module.css'
|
7
|
+
import withStyles from '../../hocs/withStyles'
|
8
|
+
|
9
|
+
export const FullHeightContent = ({
|
10
|
+
getStyles,
|
11
|
+
isPlayground,
|
12
|
+
content,
|
13
|
+
footer,
|
14
|
+
}) => {
|
15
|
+
return (
|
16
|
+
<div
|
17
|
+
className={getStyles('full-height-content', {
|
18
|
+
'is-playground': isPlayground,
|
19
|
+
})}
|
20
|
+
>
|
21
|
+
<div className={styles.content}>{content}</div>
|
22
|
+
<Spacer.Vertical size="sm" />
|
23
|
+
<div className={styles.footer}>{footer}</div>
|
24
|
+
</div>
|
25
|
+
)
|
26
|
+
}
|
27
|
+
|
28
|
+
FullHeightContent.propTypes = {
|
29
|
+
getStyles: PropTypes.func.isRequired,
|
30
|
+
content: PropTypes.node.isRequired,
|
31
|
+
footer: PropTypes.node.isRequired,
|
32
|
+
isPlayground: PropTypes.bool,
|
33
|
+
}
|
34
|
+
|
35
|
+
FullHeightContent.defaultProps = {
|
36
|
+
isPlayground: false,
|
37
|
+
getStyles: () => {},
|
38
|
+
}
|
39
|
+
|
40
|
+
export default withStyles(styles)(FullHeightContent)
|
@@ -0,0 +1,21 @@
|
|
1
|
+
.full-height-content {
|
2
|
+
display: flex;
|
3
|
+
height: 100%;
|
4
|
+
flex: auto;
|
5
|
+
flex-direction: column;
|
6
|
+
justify-content: space-between;
|
7
|
+
}
|
8
|
+
|
9
|
+
.content {
|
10
|
+
display: flex;
|
11
|
+
flex-direction: column;
|
12
|
+
align-items: stretch;
|
13
|
+
}
|
14
|
+
|
15
|
+
.footer {
|
16
|
+
text-align: center;
|
17
|
+
}
|
18
|
+
|
19
|
+
.is-playground {
|
20
|
+
border: var(--border-width-thick) dashed var(--color-primary);
|
21
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { FullHeightContent, styles } from '.'
|
2
|
+
|
3
|
+
import { getTemplate } from '../../helpers/storybook'
|
4
|
+
|
5
|
+
const Template = getTemplate(FullHeightContent, styles)
|
6
|
+
|
7
|
+
export default {
|
8
|
+
title: 'Layout/FullHeightContent',
|
9
|
+
component: FullHeightContent,
|
10
|
+
args: {
|
11
|
+
isPlayground: true,
|
12
|
+
content:
|
13
|
+
'Mice defiling required Bilbo sailing unspoiled this hunting. 14th refuge knowing breath Middle-earth sack demon children?',
|
14
|
+
footer:
|
15
|
+
'Ambition living aid indeed mutton suffered l failing kindness Éothain? Red others Goblin-town spot stuff riddles hero?',
|
16
|
+
},
|
17
|
+
argTypes: {
|
18
|
+
children: { control: 'array' },
|
19
|
+
},
|
20
|
+
}
|
21
|
+
|
22
|
+
export const Default = Template.bind({})
|
@@ -0,0 +1,41 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`Storyshots Layout/FullHeightContent Default 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="full-height-content is-playground"
|
20
|
+
>
|
21
|
+
<div
|
22
|
+
className="content"
|
23
|
+
>
|
24
|
+
Mice defiling required Bilbo sailing unspoiled this hunting. 14th refuge knowing breath Middle-earth sack demon children?
|
25
|
+
</div>
|
26
|
+
<div
|
27
|
+
className="spacer vertical"
|
28
|
+
style={
|
29
|
+
Object {
|
30
|
+
"height": 15,
|
31
|
+
}
|
32
|
+
}
|
33
|
+
/>
|
34
|
+
<div
|
35
|
+
className="footer"
|
36
|
+
>
|
37
|
+
Ambition living aid indeed mutton suffered l failing kindness Éothain? Red others Goblin-town spot stuff riddles hero?
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
`;
|