@innovaccer/design-system 2.13.3 → 2.13.4-2
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/core/components/atoms/button/__stories__/SplitButton.story.jsx +1 -2
- package/core/components/atoms/checkbox/__stories__/Alignment.story.jsx +28 -26
- package/core/components/atoms/checkbox/__stories__/variants/Controlled.story.jsx +2 -2
- package/core/components/atoms/chip/__stories__/index.story.jsx +2 -2
- package/core/components/atoms/chip/__stories__/variants/Action.story.jsx +2 -2
- package/core/components/atoms/chip/__stories__/variants/Input.story.jsx +2 -2
- package/core/components/atoms/chip/__stories__/variants/Selection.story.jsx +6 -6
- package/core/components/atoms/chip/__stories__/variants/Type.story.jsx +2 -2
- package/core/components/atoms/chipGroup/_stories_/index.story.jsx +1 -1
- package/core/components/atoms/collapsible/__stories__/CustomTrigger.story.jsx +5 -71
- package/core/components/atoms/dropdown/Dropdown.tsx +18 -2
- package/core/components/atoms/dropdown/DropdownList.tsx +47 -57
- package/core/components/atoms/dropdown/__stories__/CustomSearchPlaceholder.story.jsx +4 -4
- package/core/components/atoms/dropdown/__stories__/DropdownItemsWithCheckbox.story.jsx +1 -3
- package/core/components/atoms/dropdown/__stories__/DropdownItemsWithIcon.story.jsx +2 -4
- package/core/components/atoms/dropdown/__stories__/DropdownItemsWithInfo.story.jsx +2 -5
- package/core/components/atoms/dropdown/__stories__/DropdownWIthIcon.story.jsx +3 -4
- package/core/components/atoms/dropdown/__stories__/DropdownWithActionButtons.story.jsx +9 -9
- package/core/components/atoms/dropdown/__stories__/DropdownWithCaption.story.jsx +7 -7
- package/core/components/atoms/dropdown/__stories__/Gender.story.jsx +6 -6
- package/core/components/atoms/dropdown/__stories__/LabelInline.story.jsx +58 -0
- package/core/components/atoms/dropdown/__stories__/{LabelPositionInDropdown.story.jsx → LabelOnTop.story.jsx} +8 -9
- package/core/components/atoms/dropdown/__stories__/Languages.story.jsx +6 -6
- package/core/components/atoms/dropdown/__stories__/Menu.story.jsx +5 -6
- package/core/components/atoms/dropdown/__stories__/OptionsLessThan50.story.jsx +3 -7
- package/core/components/atoms/dropdown/__stories__/OptionsMoreThan50.story.jsx +2 -2
- package/core/components/atoms/dropdown/__stories__/SearchInDropdown.story.jsx +3 -5
- package/core/components/atoms/dropdown/__stories__/StandardDropdown.story.jsx +2 -2
- package/core/components/atoms/dropdown/__stories__/StatusWithoutLabel.story.jsx +3 -3
- package/core/components/atoms/dropdown/__stories__/WithCheckboxAndSubInfo.story.jsx +2 -4
- package/core/components/atoms/dropdown/__stories__/index.story.jsx +2 -2
- package/core/components/atoms/dropdown/__stories__/variants/LoadingType.story.jsx +0 -1
- package/core/components/atoms/dropdown/__stories__/variants/PreSelection.story.jsx +2 -2
- package/core/components/atoms/dropdown/__stories__/variants/StaticLimit.story.jsx +2 -2
- package/core/components/atoms/dropdown/__stories__/variants/controlledDropdown/BulkMultiSelectWithApply.story.jsx +2 -2
- package/core/components/atoms/dropdown/__stories__/variants/controlledDropdown/MultiSelect.story.jsx +2 -2
- package/core/components/atoms/dropdown/__stories__/variants/controlledDropdown/SingleSelect.story.jsx +4 -4
- package/core/components/atoms/dropdown/option/DefaultOption.tsx +1 -1
- package/core/components/atoms/dropdown/utility.tsx +6 -0
- package/core/components/atoms/icon/__stories__/variants/Image.story.jsx +1 -6
- package/core/components/atoms/input/__stories__/variants/Size.story.jsx +9 -9
- package/core/components/atoms/input/__stories__/variants/controlledInput.story.jsx +3 -3
- package/core/components/atoms/metaList/_stories_/index.story.jsx +0 -1
- package/core/components/atoms/rangeSlider/__stories__/index.story.jsx +2 -2
- package/core/components/atoms/rangeSlider/__stories__/variants/Controlled.story.jsx +2 -2
- package/core/components/atoms/slider/__stories__/variants/Controlled.story.jsx +2 -2
- package/core/components/css-utilities/Miscellaneous/Miscellaneous.story.tsx +4 -0
- package/core/components/molecules/dropzone/FileSelectorUtils.tsx +3 -0
- package/core/components/molecules/editableDropdown/__stories__/index.story.jsx +2 -2
- package/core/components/molecules/fullscreenModal/__stories__/DefaultWidth.story.jsx +4 -2
- package/core/components/molecules/fullscreenModal/__stories__/LargeWidth.story.jsx +4 -2
- package/core/components/molecules/fullscreenModal/__stories__/Layering.story.jsx +3 -1
- package/core/components/molecules/fullscreenModal/__stories__/Scrolling.story.jsx +4 -2
- package/core/components/molecules/fullscreenModal/__stories__/TwoStepWorkflow.story.jsx +1 -2
- package/core/components/molecules/fullscreenModal/__stories__/twoSteps.story.jsx +0 -1
- package/core/components/molecules/fullscreenModal/__stories__/variants/dimension/Large.story.jsx +0 -1
- package/core/components/molecules/fullscreenModal/__stories__/variants/dimension/Medium.story.jsx +0 -1
- package/core/components/molecules/modal/__stories__/Alert.story.jsx +3 -1
- package/core/components/molecules/modal/__stories__/Confirmation.story.jsx +3 -1
- package/core/components/molecules/modal/__stories__/Dialog.story.jsx +3 -1
- package/core/components/molecules/modal/__stories__/Input.story.jsx +3 -1
- package/core/components/molecules/modal/__stories__/Layering.story.jsx +3 -1
- package/core/components/molecules/modal/__stories__/NoFooter.story.jsx +3 -1
- package/core/components/molecules/modal/__stories__/Scrolling.story.jsx +4 -2
- package/core/components/molecules/modal/__stories__/index.story.jsx +3 -1
- package/core/components/molecules/modal/__stories__/old.story.jsx +3 -1
- package/core/components/molecules/modal/__stories__/variants/dimension/Large.story.jsx +3 -1
- package/core/components/molecules/modal/__stories__/variants/dimension/Medium.story.jsx +3 -1
- package/core/components/molecules/modal/__stories__/variants/dimension/Small.story.jsx +3 -1
- package/core/components/molecules/popover/__stories__/Actions.story.jsx +1 -6
- package/core/components/molecules/popover/__stories__/Inputs.story.jsx +1 -6
- package/core/components/molecules/popover/__stories__/Light.story.jsx +1 -6
- package/core/components/molecules/popover/__stories__/variants/boundaryElement.story.jsx +1 -1
- package/core/components/molecules/sidesheet/__stories__/index.story.jsx +3 -1
- package/core/components/molecules/sidesheet/__stories__/variants/CustomHeader.story.jsx +3 -1
- package/core/components/molecules/sidesheet/__stories__/variants/Layering.story.jsx +3 -1
- package/core/components/molecules/sidesheet/__stories__/variants/LayeringWithModal.story.jsx +3 -1
- package/core/components/molecules/sidesheet/__stories__/variants/dimension/Large.story.jsx +3 -1
- package/core/components/molecules/sidesheet/__stories__/variants/dimension/Regular.story.jsx +4 -2
- package/core/components/molecules/sidesheet/__stories__/variants/stickyFooter.story.jsx +3 -1
- package/core/components/molecules/sidesheet/__stories__/variants/twoSteps.story.jsx +6 -4
- package/core/components/molecules/tabs/__stories__/DismissibleTab.story.jsx +1 -0
- package/core/components/molecules/tooltip/__stories__/variants/Position.story.jsx +2 -13
- package/core/components/organisms/calendar/__stories__/index.story.jsx +40 -7
- package/core/components/organisms/calendar/__stories__/variants/size.story.jsx +2 -3
- package/core/components/organisms/datePicker/DatePicker.tsx +1 -1
- package/core/components/organisms/dateRangePicker/__stories__/variants/withSingleInput.story.jsx +3 -0
- package/core/components/organisms/horizontalNav/__stories__/leftAlign.story.jsx +35 -19
- package/core/components/organisms/inlineMessage/__stories__/variants/Default.story.jsx +1 -3
- package/core/components/organisms/inlineMessage/__stories__/variants/Error.story.jsx +1 -3
- package/core/components/organisms/inlineMessage/__stories__/variants/Info.story.jsx +1 -3
- package/core/components/organisms/inlineMessage/__stories__/variants/Success.story.jsx +1 -3
- package/core/components/organisms/inlineMessage/__stories__/variants/Warning.story.jsx +1 -3
- package/core/components/organisms/pageHeader/__stories__/Responsiveness.story.jsx +2 -2
- package/core/components/organisms/pageHeader/__stories__/variants/withNavigation.story.jsx +2 -2
- package/core/components/organisms/pageHeader/__stories__/variants/withNavigationL1.story.jsx +2 -2
- package/core/components/organisms/pageHeader/__stories__/variants/withStepper.story.jsx +2 -2
- package/core/components/organisms/pageHeader/__stories__/variants/withStepperL1.story.jsx +2 -2
- package/core/components/organisms/pageHeader/__stories__/variants/withTabs.story.jsx +2 -2
- package/core/components/organisms/pageHeader/__stories__/variants/withTabsL1.story.jsx +2 -2
- package/core/components/organisms/pageHeader/__stories__/withFilter.story.jsx +2 -2
- package/core/components/organisms/pageHeader/__stories__/withFilterL1.story.jsx +2 -2
- package/core/components/organisms/pageHeader/__stories__/withNavigation.story.jsx +2 -2
- package/core/components/organisms/pageHeader/__stories__/withNavigationL1.story.jsx +9 -3
- package/core/components/organisms/pageHeader/__stories__/withStepperL1.story.jsx +4 -4
- package/core/components/organisms/table/__stories__/TableAsDescriptionList.story.jsx +4 -4
- package/core/components/organisms/timePicker/TimePicker.tsx +6 -113
- package/core/components/organisms/timePicker/TimePickerWithInput.tsx +124 -0
- package/core/components/organisms/timePicker/TimePickerWithSearch.tsx +198 -0
- package/core/components/organisms/timePicker/__stories__/TimeIntervals.story.jsx +52 -0
- package/core/components/organisms/timePicker/__stories__/disabledOption.story.jsx +52 -0
- package/core/components/organisms/timePicker/__stories__/fromTo.story.jsx +72 -0
- package/core/components/organisms/timePicker/__stories__/showDuration.story.jsx +52 -0
- package/core/components/organisms/timePicker/__stories__/withDatePicker.story.jsx +88 -0
- package/core/components/organisms/timePicker/__stories__/{index.story.jsx → withInput.story.jsx} +6 -3
- package/core/components/organisms/timePicker/__stories__/withSearch.story.jsx +89 -0
- package/core/components/organisms/timePicker/__tests__/TimePickerWithSearch.test.tsx +464 -0
- package/core/components/organisms/timePicker/__tests__/__snapshots__/TimePickerWithSearch.test.tsx.snap +169 -0
- package/core/components/organisms/timePicker/index.tsx +2 -0
- package/core/components/organisms/timePicker/utility/searchUtils.tsx +295 -0
- package/core/components/organisms/timePicker/utility/timePickerUtility.tsx +219 -0
- package/core/components/organisms/timePicker/utils.tsx +1 -1
- package/core/components/organisms/verticalNav/MenuItem.tsx +11 -6
- package/core/components/organisms/verticalNav/__stories__/CustomOptionsRenderer.story.jsx +10 -9
- package/core/components/organisms/verticalNav/__stories__/CustomTrigger.story.jsx +14 -12
- package/core/components/organisms/verticalNav/__stories__/FlatEdgedVerticalNav.story.jsx +5 -5
- package/core/components/organisms/verticalNav/__stories__/LabelOverflowBehaviour.story.jsx +9 -15
- package/core/components/organisms/verticalNav/__tests__/__snapshots__/VerticalNav.test.tsx.snap +26 -24
- package/core/index.tsx +1 -0
- package/css/dist/index.css +9 -8
- package/css/dist/index.css.map +1 -1
- package/css/src/components/dropdown.css +6 -6
- package/css/src/components/metricInput.css +1 -0
- package/css/src/components/verticalNav.css +2 -0
- package/dist/core/components/atoms/dropdown/Dropdown.d.ts +2 -0
- package/dist/core/components/atoms/dropdown/DropdownList.d.ts +1 -0
- package/dist/core/components/atoms/dropdown/utility.d.ts +1 -0
- package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +22 -22
- package/dist/core/components/organisms/datePicker/DatePicker.d.ts +1 -1
- package/dist/core/components/organisms/timePicker/TimePicker.d.ts +5 -13
- package/dist/core/components/organisms/timePicker/TimePickerWithInput.d.ts +24 -0
- package/dist/core/components/organisms/timePicker/TimePickerWithSearch.d.ts +32 -0
- package/dist/core/components/organisms/timePicker/index.d.ts +2 -0
- package/dist/core/components/organisms/timePicker/utility/searchUtils.d.ts +7 -0
- package/dist/core/components/organisms/timePicker/utility/timePickerUtility.d.ts +19 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/index.esm.js +719 -52
- package/dist/index.js +648 -74
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.br +0 -0
- package/dist/index.umd.js.gz +0 -0
- package/docs/.eslintrc.json +32 -1
- package/docs/.prettierrc +6 -0
- package/docs/README.md +14 -0
- package/docs/cypress/e2e/main.cy.js +35 -0
- package/docs/cypress/fixtures/example.json +5 -0
- package/docs/cypress/support/commands.ts +37 -0
- package/docs/cypress/support/e2e.ts +20 -0
- package/docs/cypress.config.js +9 -0
- package/docs/package.json +16 -3
- package/docs/src/components/Colors/Colors.css +4 -0
- package/docs/src/components/Colors/Colors.js +56 -61
- package/docs/src/components/Container/ComponentsContainer.js +10 -30
- package/docs/src/components/Container/Container.js +10 -41
- package/docs/src/components/ErrorBoundary.js +9 -3
- package/docs/src/components/Footer/Footer.js +11 -10
- package/docs/src/components/GlobalSearch/index.js +47 -44
- package/docs/src/components/Header/Header.css +4 -0
- package/docs/src/components/Header/Header.js +25 -19
- package/docs/src/components/Layout.js +59 -303
- package/docs/src/components/LeftNav/LeftNav.js +12 -28
- package/docs/src/components/Logos/Logos.js +12 -26
- package/docs/src/components/MDXComponents.js +213 -0
- package/docs/src/components/MDXHeading.js +12 -18
- package/docs/src/components/Meta.js +9 -9
- package/docs/src/components/PropsTable/ArgJsDoc.tsx +2 -6
- package/docs/src/components/PropsTable/ArgRow.tsx +19 -47
- package/docs/src/components/PropsTable/ArgValue.tsx +50 -93
- package/docs/src/components/PropsTable/EmptyBlock.tsx +2 -5
- package/docs/src/components/PropsTable/SectionRow.tsx +7 -18
- package/docs/src/components/PropsTable/Table.tsx +43 -130
- package/docs/src/components/PropsTable/generateImports.tsx +1 -3
- package/docs/src/components/PropsTable/index.js +94 -140
- package/docs/src/components/PropsTable/prism.css +19 -20
- package/docs/src/components/Rules/DONTs.js +1 -6
- package/docs/src/components/Rules/DOs.js +1 -6
- package/docs/src/components/Rules/IconWrapper.js +6 -7
- package/docs/src/components/Rules/InlineMessage.js +1 -5
- package/docs/src/components/Rules/Rules.js +18 -28
- package/docs/src/components/TableOfContent/TableOfContent.css +8 -1
- package/docs/src/components/TableOfContent/TableOfContent.js +67 -58
- package/docs/src/components/css/global.css +1 -1
- package/docs/src/components/css/prism.css +1 -1
- package/docs/src/components/css/style.css +13 -5
- package/docs/src/components/templates/Default.js +1 -1
- package/docs/src/components/templates/Homepage.js +4 -6
- package/docs/src/data/components/Overview.js +49 -56
- package/docs/src/data/components/images/Calendar.png +0 -0
- package/docs/src/data/components/images/MetaList.png +0 -0
- package/docs/src/data/components/images/PageHeader.png +0 -0
- package/docs/src/data/components/images/TimePicker.png +0 -0
- package/docs/src/data/components/images/mobile/Badge.png +0 -0
- package/docs/src/data/components/images/mobile/Dropdown.png +0 -0
- package/docs/src/data/components/images/mobile/Message.png +0 -0
- package/docs/src/data/components/images/mobile/MetaList.png +0 -0
- package/docs/src/data/components/images/mobile/Slider.png +0 -0
- package/docs/src/data/components/images/mobile/StatusHint.png +0 -0
- package/docs/src/data/components/images/mobile/Stepper.png +0 -0
- package/docs/src/data/components/index.js +168 -321
- package/docs/src/data/components/mobile.js +85 -125
- package/docs/src/data/components/overview.css +4 -2
- package/docs/src/data/components/patterns.js +25 -59
- package/docs/src/data/header-items.yaml +1 -0
- package/docs/src/data/nav/components.yaml +2 -8
- package/docs/src/pages/404.js +7 -17
- package/docs/src/pages/components/avatar/usage.mdx +23 -19
- package/docs/src/pages/components/calendar/usage.mdx +3 -3
- package/docs/src/pages/components/checkbox/usage.mdx +1 -1
- package/docs/src/pages/components/chips/images/actionchip-state.png +0 -0
- package/docs/src/pages/components/chips/images/inputchips-state.png +0 -0
- package/docs/src/pages/components/chips/images/selectionchip-state.png +0 -0
- package/docs/src/pages/components/chips/usage.mdx +24 -2
- package/docs/src/pages/components/datePicker/images/datePicker-3.png +0 -0
- package/docs/src/pages/components/datePicker/images/datePicker-6.png +0 -0
- package/docs/src/pages/components/datePicker/usage.mdx +9 -2
- package/docs/src/pages/components/dropdowns/usage.mdx +1 -1
- package/docs/src/pages/components/inlineEditableFields/images/inlineEditableField-2.png +0 -0
- package/docs/src/pages/components/inlineEditableFields/images/inlineEditableField-3.png +0 -0
- package/docs/src/pages/components/inlineEditableFields/images/inlineEditableFields-1.png +0 -0
- package/docs/src/pages/components/inlineEditableFields/images/inlineEditableFields-4.png +0 -0
- package/docs/src/pages/components/inlineEditableFields/usage.mdx +4 -4
- package/docs/src/pages/components/inputs/usage.mdx +7 -7
- package/docs/src/pages/components/tabs/images/tabs-1.png +0 -0
- package/docs/src/pages/content/button-guidelines/tabs/button-glossary.mdx +1776 -1
- package/docs/src/pages/content/button-guidelines/tabs/confusing-buttons.mdx +479 -8
- package/docs/src/pages/content/email-guidelines.mdx +3 -3
- package/docs/src/pages/content/house-rules/tabs/date,-time-&-numbers.mdx +24 -0
- package/docs/src/pages/content/house-rules/tabs/grammer.mdx +42 -2
- package/docs/src/pages/content/house-rules/tabs/punctuations.mdx +32 -0
- package/docs/src/pages/foundations/colors.mdx +338 -24
- package/docs/src/pages/foundations/layout/index.mdx +57 -82
- package/docs/src/pages/foundations/response-time.mdx +32 -77
- package/docs/src/pages/foundations/typography.mdx +166 -0
- package/docs/src/pages/index.js +92 -121
- package/docs/src/pages/introduction/get-started/designers.mdx +28 -188
- package/docs/src/pages/introduction/get-started/images/designers-1.png +0 -0
- package/docs/src/pages/introduction/get-started/images/designers-2.png +0 -0
- package/docs/src/pages/introduction/what's-new.mdx +322 -15
- package/docs/src/pages/mobile/components/badges/images/badge-1.png +0 -0
- package/docs/src/pages/mobile/components/badges/images/badge-2.png +0 -0
- package/docs/src/pages/mobile/components/badges/images/badge-3.png +0 -0
- package/docs/src/pages/mobile/components/badges/images/badge-4.png +0 -0
- package/docs/src/pages/mobile/components/badges/images/badge-5.png +0 -0
- package/docs/src/pages/mobile/components/badges/usage.mdx +100 -0
- package/docs/src/pages/mobile/components/card/images/mcard-1.png +0 -0
- package/docs/src/pages/mobile/components/card/images/mcard-2.png +0 -0
- package/docs/src/pages/mobile/components/card/images/mcard-3.png +0 -0
- package/docs/src/pages/mobile/components/card/images/mcard-4.png +0 -0
- package/docs/src/pages/mobile/components/card/images/mcard-5.png +0 -0
- package/docs/src/pages/mobile/components/card/images/mcard-6.png +0 -0
- package/docs/src/pages/mobile/components/card/usage.mdx +54 -67
- package/docs/src/pages/mobile/components/checkbox/images/checkbox-1.png +0 -0
- package/docs/src/pages/mobile/components/checkbox/usage.mdx +26 -2
- package/docs/src/pages/mobile/components/dropdowns/images/dropdown-1.png +0 -0
- package/docs/src/pages/mobile/components/dropdowns/images/dropdown-10.png +0 -0
- package/docs/src/pages/mobile/components/dropdowns/images/dropdown-11.png +0 -0
- package/docs/src/pages/mobile/components/dropdowns/images/dropdown-2.png +0 -0
- package/docs/src/pages/mobile/components/dropdowns/images/dropdown-3.png +0 -0
- package/docs/src/pages/mobile/components/dropdowns/images/dropdown-4.png +0 -0
- package/docs/src/pages/mobile/components/dropdowns/images/dropdown-5.png +0 -0
- package/docs/src/pages/mobile/components/dropdowns/images/dropdown-6.png +0 -0
- package/docs/src/pages/mobile/components/dropdowns/images/dropdown-7.png +0 -0
- package/docs/src/pages/mobile/components/dropdowns/images/dropdown-8.png +0 -0
- package/docs/src/pages/mobile/components/dropdowns/images/dropdown-9.png +0 -0
- package/docs/src/pages/mobile/components/dropdowns/usage.mdx +88 -0
- package/docs/src/pages/mobile/components/message/images/messages-1.png +0 -0
- package/docs/src/pages/mobile/components/message/images/messages-10.png +0 -0
- package/docs/src/pages/mobile/components/message/images/messages-11.png +0 -0
- package/docs/src/pages/mobile/components/message/images/messages-12.png +0 -0
- package/docs/src/pages/mobile/components/message/images/messages-2.png +0 -0
- package/docs/src/pages/mobile/components/message/images/messages-3.png +0 -0
- package/docs/src/pages/mobile/components/message/images/messages-4.png +0 -0
- package/docs/src/pages/mobile/components/message/images/messages-5.png +0 -0
- package/docs/src/pages/mobile/components/message/images/messages-6.png +0 -0
- package/docs/src/pages/mobile/components/message/images/messages-7.png +0 -0
- package/docs/src/pages/mobile/components/message/images/messages-8.png +0 -0
- package/docs/src/pages/mobile/components/message/images/messages-9.png +0 -0
- package/docs/src/pages/mobile/components/message/usage.mdx +170 -0
- package/docs/src/pages/mobile/components/metaList/images/metaList-1.png +0 -0
- package/docs/src/pages/mobile/components/metaList/images/metaList-2.png +0 -0
- package/docs/src/pages/mobile/components/metaList/images/metaList-3.png +0 -0
- package/docs/src/pages/mobile/components/metaList/images/metaList-4.png +0 -0
- package/docs/src/pages/mobile/components/metaList/usage.mdx +71 -0
- package/docs/src/pages/mobile/components/slider/images/slider-1.png +0 -0
- package/docs/src/pages/mobile/components/slider/images/slider-2.png +0 -0
- package/docs/src/pages/mobile/components/slider/images/slider-3.png +0 -0
- package/docs/src/pages/mobile/components/slider/images/slider-4.png +0 -0
- package/docs/src/pages/mobile/components/slider/images/slider-5.png +0 -0
- package/docs/src/pages/mobile/components/slider/usage.mdx +83 -0
- package/docs/src/pages/mobile/components/statusHint/images/statushint-1.png +0 -0
- package/docs/src/pages/mobile/components/statusHint/images/statushint-2.png +0 -0
- package/docs/src/pages/mobile/components/statusHint/images/statushint-3.png +0 -0
- package/docs/src/pages/mobile/components/statusHint/images/statushint-4.png +0 -0
- package/docs/src/pages/mobile/components/statusHint/images/statushint-5.png +0 -0
- package/docs/src/pages/mobile/components/statusHint/images/statushint-6.png +0 -0
- package/docs/src/pages/mobile/components/statusHint/images/statushint-7.png +0 -0
- package/docs/src/pages/mobile/components/statusHint/usage.mdx +108 -0
- package/docs/src/pages/mobile/components/steppers/images/stepper-1.png +0 -0
- package/docs/src/pages/mobile/components/steppers/images/stepper-2.png +0 -0
- package/docs/src/pages/mobile/components/steppers/images/stepper-3.png +0 -0
- package/docs/src/pages/mobile/components/steppers/images/stepper-4.png +0 -0
- package/docs/src/pages/mobile/components/steppers/images/stepper-5.png +0 -0
- package/docs/src/pages/mobile/components/steppers/images/stepper-6.png +0 -0
- package/docs/src/pages/mobile/components/steppers/usage.mdx +111 -0
- package/docs/src/pages/mobile/foundations/layout/images/layout-2.png +0 -0
- package/docs/src/pages/mobile/foundations/layout/index.mdx +3 -1
- package/docs/src/pages/mobile/foundations/page-types/index.mdx +0 -214
- package/docs/src/pages/mobile/foundations/spacing/index.mdx +5 -0
- package/docs/src/pages/mobile/foundations/typography.mdx +1 -1
- package/docs/src/pages/patterns/uiStates/usage.mdx +92 -0
- package/docs/src/util/Frontmatter.js +4 -4
- package/docs/src/util/HeaderItems.js +2 -1
- package/docs/src/util/Helpers.js +3 -3
- package/docs/src/util/HomeIcons.js +91 -53
- package/docs/src/util/InPageNavItems.js +2 -6
- package/docs/src/util/Logos.js +2 -2
- package/docs/src/util/MdsChangelog.js +5 -10
- package/docs/src/util/MediumBlogs.js +13 -13
- package/docs/src/util/NavItems.js +14 -17
- package/docs/src/util/Search.js +2 -2
- package/docs/src/util/StorybookData.js +2 -4
- package/docs/src/util/constants.js +1 -5
- package/docs/src/util/context/NavContext.js +1 -4
- package/docs/src/util/hooks/useMetadata.js +1 -1
- package/docs/tools/build.sh +1 -0
- package/docs/tools/changelog.sh +1 -1
- package/package.json +3 -3
- package/docs/src/pages/components/index.mdx +0 -11
- package/docs/src/pages/components/inlineEditableFields/images/inlineEditableFields-2.png +0 -0
- package/docs/src/pages/components/inlineEditableFields/images/inlineEditableFields-3.png +0 -0
- package/docs/src/pages/content/button-guidelines/index.mdx +0 -7
- package/docs/src/pages/content/voice-and-tone-guidelines/index.mdx +0 -7
- package/docs/src/pages/introduction/get-started/images/designers-3.png +0 -0
- package/docs/src/pages/introduction/get-started/images/designers-4.png +0 -0
- package/docs/src/pages/introduction/get-started/images/designers-5.png +0 -0
- package/docs/src/pages/introduction/get-started/images/designers-6.png +0 -0
- package/docs/src/pages/introduction/get-started/images/designers-7.png +0 -0
- package/docs/src/pages/introduction/get-started/images/designers-8.png +0 -0
|
@@ -1,216 +1,28 @@
|
|
|
1
|
-
/* eslint-disable import/no-unresolved */
|
|
2
1
|
import React, { useState } from 'react';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
Column,
|
|
6
|
-
Button,
|
|
7
|
-
Toast,
|
|
8
|
-
Tooltip
|
|
9
|
-
} from '@innovaccer/design-system';
|
|
10
|
-
import LeftNav from './LeftNav';
|
|
11
|
-
import TableOfContent from './TableOfContent/TableOfContent';
|
|
2
|
+
import './css/style.css';
|
|
3
|
+
import Meta from './Meta';
|
|
12
4
|
import Header from './Header';
|
|
5
|
+
import LeftNav from './LeftNav';
|
|
13
6
|
import Container from './Container';
|
|
14
|
-
import ComponentsContainer from './Container/ComponentsContainer';
|
|
15
|
-
import { MDXProvider } from "@mdx-js/react";
|
|
16
|
-
import * as MDSComponents from '@innovaccer/design-system';
|
|
17
|
-
import Meta from './Meta';
|
|
18
|
-
import './css/style.css';
|
|
19
|
-
import PropsTable from './PropsTable/index';
|
|
20
|
-
import Rules from './Rules/Rules';
|
|
21
|
-
import DOs from './Rules/DOs';
|
|
22
|
-
import DONTs from './Rules/DONTs';
|
|
23
|
-
import InlineMessage from './Rules/InlineMessage';
|
|
24
|
-
import IconWrapper from './Rules/IconWrapper';
|
|
25
7
|
import Footer from './Footer/Footer';
|
|
26
8
|
import ProductLogos from './Logos/Logos';
|
|
9
|
+
import { MDXProvider } from '@mdx-js/react';
|
|
27
10
|
import ProductColors from './Colors/Colors';
|
|
28
|
-
|
|
29
|
-
import { ArgsTable } from './PropsTable/Table';
|
|
30
|
-
import Markdown from 'markdown-to-jsx';
|
|
11
|
+
import { MDXComponents } from './MDXComponents';
|
|
31
12
|
import { useFrontmatter } from '../util/Frontmatter';
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
|
|
36
|
-
const useGetStorybookData = async (name) => {
|
|
37
|
-
let componentName = name;
|
|
38
|
-
let componentPath = `/sb/${componentName}.json`;
|
|
39
|
-
|
|
40
|
-
// To handle Rich Text Editor Stories
|
|
41
|
-
if (name.startsWith('library')) {
|
|
42
|
-
componentPath = `/rte/${componentName}.json`
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const data = await axios.get(componentPath)
|
|
46
|
-
.then(({ data = {} }) => {
|
|
47
|
-
if (!Object.keys(data).length) {
|
|
48
|
-
return Promise.reject(`Could not get details for id: ${componentName}`);
|
|
49
|
-
}
|
|
50
|
-
return data;
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
return data;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function getJsxCode(name) {
|
|
57
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
58
|
-
return useGetStorybookData(name)
|
|
59
|
-
.then(componentData => {
|
|
60
|
-
const jsxCode = componentData && componentData.parameters
|
|
61
|
-
? componentData.parameters.docs.docPage?.customCode ||
|
|
62
|
-
componentData.parameters.storySource?.source
|
|
63
|
-
: '';
|
|
64
|
-
return jsxCode;
|
|
65
|
-
|
|
66
|
-
})
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
function getPropTableData(name) {
|
|
70
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
71
|
-
return useGetStorybookData(name)
|
|
72
|
-
.then(componentData => {
|
|
73
|
-
|
|
74
|
-
const jsxCode = componentData
|
|
75
|
-
? componentData.parameters.argTypes
|
|
76
|
-
: '';
|
|
77
|
-
return jsxCode;
|
|
78
|
-
|
|
79
|
-
})
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
const Preview = ({ name }) => {
|
|
83
|
-
return (
|
|
84
|
-
<div>
|
|
85
|
-
<PropsTable
|
|
86
|
-
dataProvider={() => getJsxCode(name)}
|
|
87
|
-
/>
|
|
88
|
-
</div>
|
|
89
|
-
);
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
const A11yBlock = ({ name }) => {
|
|
93
|
-
const [data, setData] = React.useState([]);
|
|
94
|
-
const [loading, setLoading] = React.useState(true);
|
|
95
|
-
const [error, setError] = React.useState(null);
|
|
96
|
-
|
|
97
|
-
React.useEffect(() => {
|
|
98
|
-
useGetStorybookData(name)
|
|
99
|
-
.then((componentData) => {
|
|
100
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
101
|
-
const a11yProps = componentData && componentData.parameters.docs.docPage?.a11yProps;
|
|
102
|
-
|
|
103
|
-
setData(a11yProps);
|
|
104
|
-
setLoading(false);
|
|
105
|
-
})
|
|
106
|
-
.catch((err) => {
|
|
107
|
-
setError(err);
|
|
108
|
-
setLoading(false);
|
|
109
|
-
});
|
|
110
|
-
}, []);
|
|
111
|
-
|
|
112
|
-
if (loading) {
|
|
113
|
-
return <div>
|
|
114
|
-
Loading ...
|
|
115
|
-
</div>
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if (error) {
|
|
119
|
-
return <MDSComponents.Message className="my-7" appearance="alert" title={error} description="Hold tight, we are working to get it up for you to interact with." />
|
|
120
|
-
}
|
|
121
|
-
return (
|
|
122
|
-
<div className="mb-8">
|
|
123
|
-
{data && <Markdown className="A11y-markdown">{data}</Markdown>}
|
|
124
|
-
</div>
|
|
125
|
-
);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
const FrameWrapper = ({ componentName }) => {
|
|
129
|
-
|
|
130
|
-
const onLoad = () => {
|
|
131
|
-
document.getElementById('iframe-loader').style.display = 'none';
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
return (
|
|
135
|
-
<>
|
|
136
|
-
<div id="iframe-loader">
|
|
137
|
-
Loading ...
|
|
138
|
-
</div>
|
|
139
|
-
<iframe
|
|
140
|
-
id="myFrame"
|
|
141
|
-
width="100%"
|
|
142
|
-
height="800px"
|
|
143
|
-
scrolling="no"
|
|
144
|
-
frameBorder="0"
|
|
145
|
-
onLoad={onLoad}
|
|
146
|
-
src={`https://mds-dev.innovaccer.com/iframe.html?id=${componentName}&viewMode=docs&panel=true&nav=false&addons=1&stories=0&embed=prop-table`}
|
|
147
|
-
/>
|
|
148
|
-
</>
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
const PreviewWithPropTable = ({ name, embed }) => {
|
|
153
|
-
|
|
154
|
-
const [data, setData] = React.useState({});
|
|
155
|
-
const [loading, setLoading] = React.useState(true);
|
|
156
|
-
const [error, setError] = React.useState(null);
|
|
157
|
-
|
|
158
|
-
React.useEffect(() => {
|
|
159
|
-
if (!embed) {
|
|
160
|
-
getPropTableData(name)
|
|
161
|
-
.then((data) => {
|
|
162
|
-
setData(data);
|
|
163
|
-
setLoading(false);
|
|
164
|
-
})
|
|
165
|
-
.catch((err) => {
|
|
166
|
-
setError(`Could not get details for id: ${name}`);
|
|
167
|
-
setLoading(false);
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
}, []);
|
|
171
|
-
|
|
172
|
-
if (loading && !embed) {
|
|
173
|
-
return <div> Loading ... </div>
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
if (error) {
|
|
177
|
-
return <MDSComponents.Message className="my-7" appearance="alert" title={error} description="Hold tight, we are working to get it up for you to interact with." />
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
return (
|
|
181
|
-
<div className="overflow-x-scroll">
|
|
182
|
-
{embed ?
|
|
183
|
-
<FrameWrapper componentName={name} />
|
|
184
|
-
:
|
|
185
|
-
<ArgsTable rows={data} />
|
|
186
|
-
}
|
|
187
|
-
</div>
|
|
188
|
-
);
|
|
189
|
-
};
|
|
13
|
+
import TableOfContent from './TableOfContent/TableOfContent';
|
|
14
|
+
import ComponentsContainer from './Container/ComponentsContainer';
|
|
15
|
+
import { copyMessage, copyMessageSuccess } from '../util/constants.js';
|
|
16
|
+
import { Row, Column, Button, Toast, Tooltip } from '@innovaccer/design-system';
|
|
190
17
|
|
|
191
|
-
const List = ({ children, ...rest }) => {
|
|
192
|
-
return (
|
|
193
|
-
<div className='list'>
|
|
194
|
-
{children}
|
|
195
|
-
</div>
|
|
196
|
-
)
|
|
197
|
-
}
|
|
198
18
|
const leftMenuList = [
|
|
199
19
|
{
|
|
200
|
-
title: 'Masala Design System'
|
|
201
|
-
}
|
|
20
|
+
title: 'Masala Design System',
|
|
21
|
+
},
|
|
202
22
|
];
|
|
203
23
|
|
|
204
24
|
const ComponentsPage = (props) => {
|
|
205
|
-
const {
|
|
206
|
-
tabs,
|
|
207
|
-
children,
|
|
208
|
-
pageTitle,
|
|
209
|
-
frontmatter,
|
|
210
|
-
DSComponents,
|
|
211
|
-
relativePagePath,
|
|
212
|
-
pageDescription
|
|
213
|
-
} = props;
|
|
25
|
+
const { tabs, children, pageTitle, frontmatter, DSComponents, relativePagePath, pageDescription } = props;
|
|
214
26
|
|
|
215
27
|
return (
|
|
216
28
|
<ComponentsContainer
|
|
@@ -220,24 +32,13 @@ const ComponentsPage = (props) => {
|
|
|
220
32
|
pageDescription={pageDescription}
|
|
221
33
|
frontmatter={frontmatter}
|
|
222
34
|
>
|
|
223
|
-
<MDXProvider components={DSComponents}>
|
|
224
|
-
{children}
|
|
225
|
-
</MDXProvider>
|
|
35
|
+
<MDXProvider components={DSComponents}>{children}</MDXProvider>
|
|
226
36
|
</ComponentsContainer>
|
|
227
|
-
)
|
|
228
|
-
}
|
|
37
|
+
);
|
|
38
|
+
};
|
|
229
39
|
|
|
230
40
|
const MDXPage = (props) => {
|
|
231
|
-
const {
|
|
232
|
-
tabs,
|
|
233
|
-
children,
|
|
234
|
-
pageTitle,
|
|
235
|
-
frontmatter,
|
|
236
|
-
DSComponents,
|
|
237
|
-
relativePagePath,
|
|
238
|
-
pageDescription,
|
|
239
|
-
logos
|
|
240
|
-
} = props;
|
|
41
|
+
const { tabs, children, pageTitle, frontmatter, DSComponents, relativePagePath, pageDescription, logos } = props;
|
|
241
42
|
|
|
242
43
|
return (
|
|
243
44
|
<Container
|
|
@@ -248,47 +49,31 @@ const MDXPage = (props) => {
|
|
|
248
49
|
logos={logos}
|
|
249
50
|
frontmatter={frontmatter}
|
|
250
51
|
>
|
|
251
|
-
<MDXProvider components={DSComponents}>
|
|
252
|
-
{children}
|
|
253
|
-
</MDXProvider>
|
|
52
|
+
<MDXProvider components={DSComponents}>{children}</MDXProvider>
|
|
254
53
|
</Container>
|
|
255
|
-
)
|
|
256
|
-
}
|
|
54
|
+
);
|
|
55
|
+
};
|
|
257
56
|
|
|
258
57
|
const OverviewContainer = (props) => {
|
|
259
58
|
return (
|
|
260
|
-
<Row className=
|
|
59
|
+
<Row className="justify-content-center">
|
|
261
60
|
<Column className="px-11 py-8 min-vh-100 overview-container" size={12}>
|
|
262
61
|
<ComponentsPage {...props} />
|
|
263
62
|
</Column>
|
|
264
63
|
</Row>
|
|
265
|
-
)
|
|
266
|
-
}
|
|
64
|
+
);
|
|
65
|
+
};
|
|
267
66
|
|
|
268
67
|
const MarkdownContainer = (props) => {
|
|
269
|
-
const {
|
|
270
|
-
relativePagePath,
|
|
271
|
-
is404,
|
|
272
|
-
pageTitle,
|
|
273
|
-
location
|
|
274
|
-
} = props;
|
|
68
|
+
const { relativePagePath, is404, pageTitle, location } = props;
|
|
275
69
|
|
|
276
70
|
return (
|
|
277
|
-
<Row className=
|
|
71
|
+
<Row className="justify-content-center">
|
|
278
72
|
<Column className="px-11 py-8 min-vh-100 inner-left-container" size={9}>
|
|
279
|
-
{
|
|
280
|
-
!relativePagePath.includes('components') ?
|
|
281
|
-
<MDXPage {...props} />
|
|
282
|
-
:
|
|
283
|
-
<ComponentsPage {...props} />
|
|
284
|
-
}
|
|
73
|
+
{!relativePagePath.includes('components') ? <MDXPage {...props} /> : <ComponentsPage {...props} />}
|
|
285
74
|
</Column>
|
|
286
75
|
|
|
287
|
-
<Column
|
|
288
|
-
size={3}
|
|
289
|
-
className="pb-6 in-page-nav position-sticky scroll-y"
|
|
290
|
-
style={{ height: 'calc(100vh - 48px)' }}
|
|
291
|
-
>
|
|
76
|
+
<Column size={3} className="pb-6 in-page-nav position-sticky scroll-y" style={{ height: 'calc(100vh - 48px)' }}>
|
|
292
77
|
<TableOfContent
|
|
293
78
|
is404Page={is404}
|
|
294
79
|
relativePagePath={relativePagePath}
|
|
@@ -297,8 +82,8 @@ const MarkdownContainer = (props) => {
|
|
|
297
82
|
/>
|
|
298
83
|
</Column>
|
|
299
84
|
</Row>
|
|
300
|
-
)
|
|
301
|
-
}
|
|
85
|
+
);
|
|
86
|
+
};
|
|
302
87
|
|
|
303
88
|
const Layout = ({
|
|
304
89
|
children,
|
|
@@ -315,19 +100,18 @@ const Layout = ({
|
|
|
315
100
|
}) => {
|
|
316
101
|
const is404 = children && children.key === null;
|
|
317
102
|
const [isToastActive, setIsToastActive] = useState(false);
|
|
318
|
-
const [codeCopyText, setCodeCopyText] = useState('')
|
|
103
|
+
const [codeCopyText, setCodeCopyText] = useState('');
|
|
319
104
|
const [toastTitle, setToastTitle] = useState('');
|
|
320
|
-
const [isTooltipActiveCode, setTooltipActiveCode] = useState(false)
|
|
105
|
+
const [isTooltipActiveCode, setTooltipActiveCode] = useState(false);
|
|
321
106
|
const [tooltipName, setTooltipName] = useState(copyMessage);
|
|
322
107
|
const frontmatter = useFrontmatter(relativePagePath);
|
|
323
108
|
const refCode = React.createRef();
|
|
324
109
|
const isOverviewPage = relativePagePath.includes('overview');
|
|
325
110
|
|
|
326
111
|
const copyToClipboard = (str) => {
|
|
327
|
-
if (typeof
|
|
112
|
+
if (typeof str === 'string') {
|
|
328
113
|
navigator.clipboard.writeText(str);
|
|
329
|
-
}
|
|
330
|
-
else {
|
|
114
|
+
} else {
|
|
331
115
|
let codeBlock = '';
|
|
332
116
|
if (Object.keys(str).length > 0) {
|
|
333
117
|
const element = str.props.children;
|
|
@@ -344,7 +128,7 @@ const Layout = ({
|
|
|
344
128
|
}
|
|
345
129
|
}
|
|
346
130
|
navigator.clipboard.writeText(codeBlock);
|
|
347
|
-
setCodeCopyText(str)
|
|
131
|
+
setCodeCopyText(str);
|
|
348
132
|
}
|
|
349
133
|
};
|
|
350
134
|
|
|
@@ -353,8 +137,11 @@ const Layout = ({
|
|
|
353
137
|
<>
|
|
354
138
|
<div {...rest}>{children}</div>
|
|
355
139
|
<div
|
|
356
|
-
onMouseLeave={() => {
|
|
357
|
-
|
|
140
|
+
onMouseLeave={() => {
|
|
141
|
+
setTooltipName(copyMessage);
|
|
142
|
+
setTooltipActiveCode(false);
|
|
143
|
+
}}
|
|
144
|
+
className="ml-auto"
|
|
358
145
|
>
|
|
359
146
|
<Tooltip
|
|
360
147
|
open={children === codeCopyText ? isTooltipActiveCode : false}
|
|
@@ -364,9 +151,12 @@ const Layout = ({
|
|
|
364
151
|
boundaryElement={refCode}
|
|
365
152
|
>
|
|
366
153
|
<Button
|
|
367
|
-
icon=
|
|
368
|
-
className=
|
|
369
|
-
onClick={() => {
|
|
154
|
+
icon="copy"
|
|
155
|
+
className="p-0"
|
|
156
|
+
onClick={() => {
|
|
157
|
+
copyToClipboard(children);
|
|
158
|
+
toggleTooltip(copyMessageSuccess, 'code');
|
|
159
|
+
}}
|
|
370
160
|
/>
|
|
371
161
|
</Tooltip>
|
|
372
162
|
</div>
|
|
@@ -378,65 +168,34 @@ const Layout = ({
|
|
|
378
168
|
setIsToastActive(true);
|
|
379
169
|
setToastTitle(name);
|
|
380
170
|
setTimeout(() => setIsToastActive(false), 1500);
|
|
381
|
-
}
|
|
171
|
+
};
|
|
382
172
|
|
|
383
173
|
const toggleTooltip = (name, type) => {
|
|
384
|
-
if (type ===
|
|
385
|
-
setTooltipActiveCode(true)
|
|
174
|
+
if (type === 'code') {
|
|
175
|
+
setTooltipActiveCode(true);
|
|
386
176
|
}
|
|
387
177
|
setTooltipName(name);
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
const Logos = ({ children, logoData, ...rest }) => {
|
|
391
|
-
return (
|
|
392
|
-
<ProductLogos
|
|
393
|
-
logoData={logoData}
|
|
394
|
-
toggleToast={toggleToast}
|
|
395
|
-
/>
|
|
396
|
-
);
|
|
397
178
|
};
|
|
398
179
|
|
|
399
|
-
const
|
|
400
|
-
return
|
|
401
|
-
<div className='rectangle'>{name}</div>
|
|
402
|
-
);
|
|
180
|
+
const Logos = ({ children, logoData, ...rest }) => {
|
|
181
|
+
return <ProductLogos logoData={logoData} toggleToast={toggleToast} />;
|
|
403
182
|
};
|
|
404
183
|
|
|
405
184
|
const Colors = ({ children, colorData, ...rest }) => {
|
|
406
|
-
return
|
|
407
|
-
<ProductColors
|
|
408
|
-
colorData={colorData}
|
|
409
|
-
toggleToast={toggleToast}
|
|
410
|
-
/>
|
|
411
|
-
);
|
|
185
|
+
return <ProductColors colorData={colorData} />;
|
|
412
186
|
};
|
|
413
187
|
|
|
414
188
|
const DSComponents = {
|
|
415
|
-
...
|
|
189
|
+
...MDXComponents,
|
|
416
190
|
pre: Code,
|
|
417
|
-
Preview: Preview,
|
|
418
|
-
PreviewWithPropTable: PreviewWithPropTable,
|
|
419
|
-
A11yBlock: A11yBlock,
|
|
420
|
-
Rules,
|
|
421
|
-
DOs,
|
|
422
|
-
DONTs,
|
|
423
|
-
InlineMessage,
|
|
424
|
-
IconWrapper,
|
|
425
|
-
h1: (props) => <MDXHeading size='xxl' headingInfo={props} />,
|
|
426
|
-
h2: (props) => <MDXHeading size='xl' headingInfo={props} />,
|
|
427
|
-
h3: (props) => <MDXHeading size='l' headingInfo={props} />,
|
|
428
|
-
h4: (props) => <MDXHeading size="m" headingInfo={props} />,
|
|
429
|
-
h5: (props) => <MDXHeading size="s" headingInfo={props} />,
|
|
430
|
-
ul: List,
|
|
431
191
|
Logos: (props) => <Logos {...props} />,
|
|
432
|
-
Rectangle: (props) => <Rectangle {...props} />,
|
|
433
192
|
Colors: (props) => <Colors {...props} />,
|
|
434
193
|
};
|
|
435
194
|
|
|
436
195
|
const showAnimation = () => {
|
|
437
196
|
if (location.state?.animation === false) return false;
|
|
438
197
|
return true;
|
|
439
|
-
}
|
|
198
|
+
};
|
|
440
199
|
|
|
441
200
|
return (
|
|
442
201
|
<>
|
|
@@ -448,10 +207,7 @@ const Layout = ({
|
|
|
448
207
|
frontmatter={frontmatter}
|
|
449
208
|
relativePagePath={relativePagePath}
|
|
450
209
|
/>
|
|
451
|
-
<Header
|
|
452
|
-
leftMenuList={leftMenuList}
|
|
453
|
-
relativePagePath={relativePagePath}
|
|
454
|
-
/>
|
|
210
|
+
<Header leftMenuList={leftMenuList} relativePagePath={relativePagePath} />
|
|
455
211
|
<Row style={{ height: 'calc(100vh - 48px)' }} ref={refCode}>
|
|
456
212
|
<LeftNav
|
|
457
213
|
is404Page={is404}
|
|
@@ -460,8 +216,8 @@ const Layout = ({
|
|
|
460
216
|
showMobile={showMobile}
|
|
461
217
|
frontmatter={frontmatter}
|
|
462
218
|
/>
|
|
463
|
-
<Column className={`${showAnimation() ?
|
|
464
|
-
{!isOverviewPage ?
|
|
219
|
+
<Column className={`${showAnimation() ? 'page-animation' : ''} page-scroll h-100`} id="main-container">
|
|
220
|
+
{!isOverviewPage ? (
|
|
465
221
|
<MarkdownContainer
|
|
466
222
|
relativePagePath={relativePagePath}
|
|
467
223
|
is404={is404}
|
|
@@ -474,7 +230,7 @@ const Layout = ({
|
|
|
474
230
|
pageDescription={pageDescription}
|
|
475
231
|
logos={logos}
|
|
476
232
|
/>
|
|
477
|
-
|
|
233
|
+
) : (
|
|
478
234
|
<OverviewContainer
|
|
479
235
|
tabs={tabs}
|
|
480
236
|
children={children}
|
|
@@ -484,12 +240,12 @@ const Layout = ({
|
|
|
484
240
|
relativePagePath={relativePagePath}
|
|
485
241
|
pageDescription={pageDescription}
|
|
486
242
|
/>
|
|
487
|
-
}
|
|
243
|
+
)}
|
|
488
244
|
{isToastActive && (
|
|
489
245
|
<Toast
|
|
490
|
-
appearance=
|
|
246
|
+
appearance="success"
|
|
491
247
|
title={toastTitle}
|
|
492
|
-
className=
|
|
248
|
+
className="position-fixed ml-5 toast"
|
|
493
249
|
onClose={() => setIsToastActive(false)}
|
|
494
250
|
/>
|
|
495
251
|
)}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import { useNavItems } from '../../util/NavItems';
|
|
3
|
-
import {
|
|
4
|
-
VerticalNav,
|
|
5
|
-
Subheading,
|
|
6
|
-
Button,
|
|
7
|
-
} from '@innovaccer/design-system';
|
|
3
|
+
import { VerticalNav, Subheading, Button } from '@innovaccer/design-system';
|
|
8
4
|
import { navigate } from 'gatsby';
|
|
9
5
|
import { MOBILE } from '../../util/constants';
|
|
10
6
|
|
|
@@ -42,7 +38,7 @@ const LeftNav = (props) => {
|
|
|
42
38
|
|
|
43
39
|
useEffect(() => {
|
|
44
40
|
const active = isBrowser ? getActiveNavItem() : '';
|
|
45
|
-
const obj = { link: active }
|
|
41
|
+
const obj = { link: active };
|
|
46
42
|
setActive(obj);
|
|
47
43
|
|
|
48
44
|
const ele = document.getElementById('navbar-container');
|
|
@@ -52,7 +48,6 @@ const LeftNav = (props) => {
|
|
|
52
48
|
|
|
53
49
|
ele.addEventListener('scroll', setPosition(ele.scrollTop));
|
|
54
50
|
return () => ele.removeEventListener('scroll', setPosition(ele.scrollTop));
|
|
55
|
-
|
|
56
51
|
}, []);
|
|
57
52
|
|
|
58
53
|
const onClickHandler = (menu) => {
|
|
@@ -65,9 +60,7 @@ const LeftNav = (props) => {
|
|
|
65
60
|
navigate(`/mobile${window.location.pathname}`);
|
|
66
61
|
} else {
|
|
67
62
|
if (window.location.pathname.includes('/mobile')) {
|
|
68
|
-
navigate(
|
|
69
|
-
window.location.pathname.replace('/mobile', '')
|
|
70
|
-
);
|
|
63
|
+
navigate(window.location.pathname.replace('/mobile', ''));
|
|
71
64
|
}
|
|
72
65
|
}
|
|
73
66
|
};
|
|
@@ -83,16 +76,13 @@ const LeftNav = (props) => {
|
|
|
83
76
|
};
|
|
84
77
|
|
|
85
78
|
return (
|
|
86
|
-
<div
|
|
87
|
-
id="navbar-container"
|
|
88
|
-
className='h-100 bg-secondary-lightest border-right page-scroll'
|
|
89
|
-
>
|
|
79
|
+
<div id="navbar-container" className="h-100 bg-secondary-lightest border-right page-scroll">
|
|
90
80
|
{showMenuButtons && (
|
|
91
|
-
<div className=
|
|
81
|
+
<div className="d-flex pt-6 pl-6">
|
|
92
82
|
<Button
|
|
93
|
-
appearance=
|
|
94
|
-
size=
|
|
95
|
-
className=
|
|
83
|
+
appearance="basic"
|
|
84
|
+
size="regular"
|
|
85
|
+
className="mr-4"
|
|
96
86
|
onClick={() => handleNavigate()}
|
|
97
87
|
selected={!relativePagePath.includes(MOBILE)}
|
|
98
88
|
expanded={true}
|
|
@@ -100,26 +90,20 @@ const LeftNav = (props) => {
|
|
|
100
90
|
Web
|
|
101
91
|
</Button>
|
|
102
92
|
<Button
|
|
103
|
-
appearance=
|
|
93
|
+
appearance="basic"
|
|
104
94
|
onClick={() => handleNavigate(MOBILE)}
|
|
105
95
|
selected={relativePagePath.includes(MOBILE)}
|
|
106
|
-
className=
|
|
96
|
+
className="mr-6"
|
|
107
97
|
expanded={true}
|
|
108
98
|
>
|
|
109
99
|
Mobile
|
|
110
100
|
</Button>
|
|
111
101
|
</div>
|
|
112
102
|
)}
|
|
113
|
-
<Subheading className=
|
|
103
|
+
<Subheading className="pl-6 pt-6 pb-3" appearance="subtle">
|
|
114
104
|
{getHeading()}
|
|
115
105
|
</Subheading>
|
|
116
|
-
<VerticalNav
|
|
117
|
-
menus={navItems}
|
|
118
|
-
active={active}
|
|
119
|
-
onClick={onClickHandler}
|
|
120
|
-
expanded={true}
|
|
121
|
-
autoCollapse={false}
|
|
122
|
-
/>
|
|
106
|
+
<VerticalNav menus={navItems} active={active} onClick={onClickHandler} expanded={true} autoCollapse={false} />
|
|
123
107
|
</div>
|
|
124
108
|
);
|
|
125
109
|
};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Card,
|
|
4
|
-
Column,
|
|
5
|
-
Icon,
|
|
6
|
-
Toast,
|
|
7
|
-
} from '@innovaccer/design-system';
|
|
2
|
+
import { Card, Column, Icon, Toast } from '@innovaccer/design-system';
|
|
8
3
|
import './Logos.css';
|
|
9
4
|
import { GatsbyImage, getImage } from 'gatsby-plugin-image';
|
|
10
5
|
import { Link } from 'gatsby';
|
|
@@ -24,32 +19,23 @@ const ProductLogos = (props) => {
|
|
|
24
19
|
|
|
25
20
|
let image;
|
|
26
21
|
if (filteredGatsbyImage.length) {
|
|
27
|
-
image = getImage(
|
|
28
|
-
filteredGatsbyImage[0].gatsbyImageData
|
|
29
|
-
);
|
|
22
|
+
image = getImage(filteredGatsbyImage[0].gatsbyImageData);
|
|
30
23
|
}
|
|
31
24
|
|
|
32
25
|
return (
|
|
33
|
-
<Column size=
|
|
34
|
-
<Card className=
|
|
35
|
-
<div className=
|
|
36
|
-
<div className=
|
|
37
|
-
<GatsbyImage
|
|
38
|
-
image={image}
|
|
39
|
-
alt={elt.name}
|
|
40
|
-
className='image'
|
|
41
|
-
/>
|
|
26
|
+
<Column size="4">
|
|
27
|
+
<Card className="mr-7 mt-7" shadow="none">
|
|
28
|
+
<div className="px-6">
|
|
29
|
+
<div className="mt-6 px-8 py-8 container w-auto">
|
|
30
|
+
<GatsbyImage image={image} alt={elt.name} className="image" />
|
|
42
31
|
</div>
|
|
43
|
-
<div className=
|
|
44
|
-
<p className=
|
|
45
|
-
<Link
|
|
46
|
-
href={image.images.fallback.src}
|
|
47
|
-
download
|
|
48
|
-
>
|
|
32
|
+
<div className="d-flex align-items-center">
|
|
33
|
+
<p className="imgName mr-auto">{elt.name} </p>
|
|
34
|
+
<Link href={image.images.fallback.src} download>
|
|
49
35
|
<Icon
|
|
50
36
|
size={16}
|
|
51
|
-
name=
|
|
52
|
-
className=
|
|
37
|
+
name="download"
|
|
38
|
+
className="mr-3 imgName"
|
|
53
39
|
onClick={() => props.toggleToast(`Downloading ${elt.name}`)}
|
|
54
40
|
/>
|
|
55
41
|
</Link>
|