@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,13 +1,13 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef, useCallback } from 'react';
|
|
2
2
|
import { useSearchItems } from '../../util/Search';
|
|
3
3
|
import { Input, Popover, Icon, Text, Subheading } from '@innovaccer/design-system';
|
|
4
|
-
import { Link } from
|
|
5
|
-
import
|
|
4
|
+
import { Link } from 'gatsby';
|
|
5
|
+
import './search.css';
|
|
6
6
|
import { debounce } from '../../util/Helpers';
|
|
7
7
|
|
|
8
8
|
const getHighlightedText = (text, query) => {
|
|
9
|
-
return text.replace(new RegExp(query,
|
|
10
|
-
}
|
|
9
|
+
return text.replace(new RegExp(query, 'gi'), (match) => `<b>${match}</b>`);
|
|
10
|
+
};
|
|
11
11
|
|
|
12
12
|
const CustomResultEntry = ({ data, query }) => {
|
|
13
13
|
return (
|
|
@@ -16,32 +16,38 @@ const CustomResultEntry = ({ data, query }) => {
|
|
|
16
16
|
<div className="Search-result__entry px-5 py-4">
|
|
17
17
|
<div className="d-flex align-items-center overflow-hidden">
|
|
18
18
|
<Text dangerouslySetInnerHTML={{ __html: getHighlightedText(data.frontmatter.title, query) }}></Text>
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
19
|
+
{data.slug.includes('mobile') ? (
|
|
20
|
+
<Icon className="ml-4" appearance="subtle" size={16} name="phone_iphone" />
|
|
21
|
+
) : (
|
|
22
|
+
<Icon className="ml-4" appearance="subtle" size={16} name="desktop_windows" />
|
|
23
|
+
)}
|
|
24
24
|
</div>
|
|
25
25
|
<div>
|
|
26
|
-
<Text
|
|
26
|
+
<Text
|
|
27
|
+
appearance="subtle"
|
|
28
|
+
dangerouslySetInnerHTML={{ __html: getHighlightedText(data.frontmatter.description, query) }}
|
|
29
|
+
></Text>
|
|
27
30
|
</div>
|
|
28
31
|
</div>
|
|
29
32
|
</Link>
|
|
30
33
|
</div>
|
|
31
|
-
)
|
|
32
|
-
}
|
|
34
|
+
);
|
|
35
|
+
};
|
|
33
36
|
|
|
34
37
|
const ShowResults = ({ name, list, query }) => {
|
|
35
38
|
return (
|
|
36
39
|
<div>
|
|
37
|
-
<Subheading className="pb-2 px-5" appearance="subtle">
|
|
38
|
-
|
|
40
|
+
<Subheading className="pb-2 px-5" appearance="subtle">
|
|
41
|
+
{name}
|
|
42
|
+
</Subheading>
|
|
43
|
+
{list.map((data, key) => (
|
|
44
|
+
<CustomResultEntry key={key} query={query} data={data.node} />
|
|
45
|
+
))}
|
|
39
46
|
</div>
|
|
40
|
-
)
|
|
41
|
-
}
|
|
47
|
+
);
|
|
48
|
+
};
|
|
42
49
|
|
|
43
50
|
const PageHit = ({ searchList, query }) => {
|
|
44
|
-
|
|
45
51
|
const components = [],
|
|
46
52
|
patterns = [],
|
|
47
53
|
foundations = [],
|
|
@@ -86,10 +92,10 @@ const PageHit = ({ searchList, query }) => {
|
|
|
86
92
|
default:
|
|
87
93
|
break;
|
|
88
94
|
}
|
|
89
|
-
})
|
|
95
|
+
});
|
|
90
96
|
|
|
91
97
|
return (
|
|
92
|
-
<div className=
|
|
98
|
+
<div className="w-100">
|
|
93
99
|
{components.length > 0 && <ShowResults query={query} name="Components" list={components} />}
|
|
94
100
|
{patterns.length > 0 && <ShowResults query={query} name="Patterns" list={patterns} />}
|
|
95
101
|
{foundations.length > 0 && <ShowResults query={query} name="Foundations" list={foundations} />}
|
|
@@ -97,51 +103,46 @@ const PageHit = ({ searchList, query }) => {
|
|
|
97
103
|
{resources.length > 0 && <ShowResults query={query} name="Resources" list={resources} />}
|
|
98
104
|
{introduction.length > 0 && <ShowResults query={query} name="Introduction" list={introduction} />}
|
|
99
105
|
</div>
|
|
100
|
-
)
|
|
101
|
-
}
|
|
106
|
+
);
|
|
107
|
+
};
|
|
102
108
|
|
|
103
109
|
const NoQueryResult = () => {
|
|
104
110
|
return (
|
|
105
111
|
<div className="p-7 d-flex align-items-center overflow-hidden">
|
|
106
|
-
<Icon className="mr-6" appearance=
|
|
107
|
-
<Text weight="medium" appearance=
|
|
112
|
+
<Icon className="mr-6" appearance="subtle" size={24} name="touch_app" />
|
|
113
|
+
<Text weight="medium" appearance="subtle">
|
|
108
114
|
Tip: Press ’cmd + k’ to quickly start searching.
|
|
109
115
|
</Text>
|
|
110
116
|
</div>
|
|
111
|
-
)
|
|
112
|
-
}
|
|
117
|
+
);
|
|
118
|
+
};
|
|
113
119
|
|
|
114
120
|
const NoResultFound = ({ query }) => {
|
|
115
121
|
return (
|
|
116
122
|
<div className="p-7 d-flex align-items-center overflow-hidden">
|
|
117
|
-
<Icon className="mr-6" appearance=
|
|
118
|
-
<Text weight="medium">
|
|
119
|
-
{`No results found for '${query}'`}
|
|
120
|
-
</Text>
|
|
123
|
+
<Icon className="mr-6" appearance="subtle" size={24} name="search_off" />
|
|
124
|
+
<Text weight="medium">{`No results found for '${query}'`}</Text>
|
|
121
125
|
</div>
|
|
122
|
-
)
|
|
123
|
-
}
|
|
126
|
+
);
|
|
127
|
+
};
|
|
124
128
|
|
|
125
129
|
const ShowQueryResult = ({ query, searchResult }) => {
|
|
126
130
|
return (
|
|
127
131
|
<div className="pt-6 pb-4 d-flex align-items-center overflow-hidden">
|
|
128
132
|
<PageHit query={query} searchList={searchResult} />
|
|
129
133
|
</div>
|
|
130
|
-
)
|
|
131
|
-
}
|
|
134
|
+
);
|
|
135
|
+
};
|
|
132
136
|
|
|
133
137
|
const Content = ({ query, searchResult }) => {
|
|
134
138
|
return (
|
|
135
139
|
<>
|
|
136
140
|
{query === '' && <NoQueryResult />}
|
|
137
141
|
{query && searchResult.length === 0 && <NoResultFound query={query} />}
|
|
138
|
-
{
|
|
139
|
-
query && searchResult.length != 0 &&
|
|
140
|
-
<ShowQueryResult query={query} searchResult={searchResult} />
|
|
141
|
-
}
|
|
142
|
+
{query && searchResult.length != 0 && <ShowQueryResult query={query} searchResult={searchResult} />}
|
|
142
143
|
</>
|
|
143
|
-
)
|
|
144
|
-
}
|
|
144
|
+
);
|
|
145
|
+
};
|
|
145
146
|
|
|
146
147
|
const Search = ({ parentRef }) => {
|
|
147
148
|
const [query, setQuery] = useState('');
|
|
@@ -156,7 +157,7 @@ const Search = ({ parentRef }) => {
|
|
|
156
157
|
|
|
157
158
|
return () => {
|
|
158
159
|
element.removeEventListener('keydown', handleInstantSearch);
|
|
159
|
-
}
|
|
160
|
+
};
|
|
160
161
|
}, []);
|
|
161
162
|
|
|
162
163
|
const handleInstantSearch = (e) => {
|
|
@@ -165,14 +166,16 @@ const Search = ({ parentRef }) => {
|
|
|
165
166
|
e.preventDefault();
|
|
166
167
|
inputField.click();
|
|
167
168
|
}
|
|
168
|
-
}
|
|
169
|
+
};
|
|
169
170
|
|
|
170
171
|
const handleSearchQuery = debounce((target) => {
|
|
171
172
|
const query = target.value;
|
|
172
173
|
setOpenPopover(true);
|
|
173
174
|
const list = searchList.filter((data) => {
|
|
174
175
|
const { title, description } = data.node.frontmatter;
|
|
175
|
-
return
|
|
176
|
+
return (
|
|
177
|
+
title.toLowerCase().includes(query?.toLowerCase()) || description.toLowerCase().includes(query?.toLowerCase())
|
|
178
|
+
);
|
|
176
179
|
});
|
|
177
180
|
setSearchResult(list);
|
|
178
181
|
});
|
|
@@ -182,7 +185,7 @@ const Search = ({ parentRef }) => {
|
|
|
182
185
|
}, []);
|
|
183
186
|
|
|
184
187
|
return (
|
|
185
|
-
<div className=
|
|
188
|
+
<div className="d-flex justify-content-end align-items-center">
|
|
186
189
|
<Popover
|
|
187
190
|
position="bottom-start"
|
|
188
191
|
open={openPopover}
|
|
@@ -201,7 +204,7 @@ const Search = ({ parentRef }) => {
|
|
|
201
204
|
onBlur={() => setOpenPopover(false)}
|
|
202
205
|
onChange={({ target }) => {
|
|
203
206
|
setQuery(target.value);
|
|
204
|
-
handleSearchQuery(target)
|
|
207
|
+
handleSearchQuery(target);
|
|
205
208
|
}}
|
|
206
209
|
/>
|
|
207
210
|
}
|
|
@@ -2,8 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import { Link } from 'gatsby';
|
|
3
3
|
import { useHeaderItems } from '../../util/HeaderItems';
|
|
4
4
|
import './Header.css';
|
|
5
|
-
import { Link as MDSLink } from '@innovaccer/design-system';
|
|
5
|
+
import { Link as MDSLink, Icon } from '@innovaccer/design-system';
|
|
6
6
|
import Search from '../GlobalSearch';
|
|
7
|
+
import * as HomeIcons from '../../util/HomeIcons';
|
|
8
|
+
|
|
9
|
+
const MenuIcons = ({ name }) => {
|
|
10
|
+
const SvgIcons = HomeIcons[name] || (() => <div></div>);
|
|
11
|
+
return <SvgIcons />;
|
|
12
|
+
};
|
|
7
13
|
|
|
8
14
|
const Header = ({ relativePagePath }) => {
|
|
9
15
|
const ref = React.createRef();
|
|
@@ -13,27 +19,21 @@ const Header = ({ relativePagePath }) => {
|
|
|
13
19
|
const pagePath = relativePagePath.split('/');
|
|
14
20
|
if (pagePath[1] === label.toLowerCase() || pagePath[2] === label.toLowerCase()) return true;
|
|
15
21
|
return false;
|
|
16
|
-
}
|
|
22
|
+
};
|
|
17
23
|
|
|
18
24
|
const onClickHandler = () => {
|
|
19
25
|
localStorage.removeItem('leftNavScrollPosition');
|
|
20
|
-
}
|
|
26
|
+
};
|
|
21
27
|
|
|
22
28
|
return (
|
|
23
|
-
<div
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
className='header bg-light d-flex w-100 position-sticky px-5'
|
|
27
|
-
>
|
|
28
|
-
<div className='d-flex justify-content-start align-items-center'>
|
|
29
|
-
<Link to='/' className='HeaderLink ml-0'>
|
|
29
|
+
<div id="mainHeader" ref={ref} className="header bg-light d-flex w-100 position-sticky px-5">
|
|
30
|
+
<div className="d-flex justify-content-start align-items-center">
|
|
31
|
+
<Link to="/" className="HeaderLink ml-0">
|
|
30
32
|
<img src="/images/headerLogo.png" width="290px" height="28px" />
|
|
31
33
|
</Link>
|
|
32
34
|
<div>
|
|
33
|
-
{items.map(({ link, label }, index) => {
|
|
34
|
-
const isExternal =
|
|
35
|
-
link.startsWith('http://') ||
|
|
36
|
-
link.startsWith('https://');
|
|
35
|
+
{items.map(({ link, label, img }, index) => {
|
|
36
|
+
const isExternal = link.startsWith('http://') || link.startsWith('https://');
|
|
37
37
|
|
|
38
38
|
if (isExternal) {
|
|
39
39
|
return (
|
|
@@ -45,20 +45,26 @@ const Header = ({ relativePagePath }) => {
|
|
|
45
45
|
className="HeaderLink HeaderLink--default"
|
|
46
46
|
>
|
|
47
47
|
{label}
|
|
48
|
+
{img &&
|
|
49
|
+
<Icon className="HeaderIcon position-relative pl-4">
|
|
50
|
+
<MenuIcons name={img} />
|
|
51
|
+
</Icon>
|
|
52
|
+
}
|
|
48
53
|
</MDSLink>
|
|
49
|
-
)
|
|
54
|
+
);
|
|
50
55
|
}
|
|
51
56
|
return (
|
|
52
57
|
<Link
|
|
53
58
|
to={link}
|
|
54
59
|
key={index}
|
|
55
60
|
onClick={onClickHandler}
|
|
56
|
-
className={`HeaderLink ${checkActive(label)
|
|
57
|
-
? 'HeaderLink--active'
|
|
58
|
-
: 'HeaderLink--default'
|
|
59
|
-
}`}
|
|
61
|
+
className={`HeaderLink ${checkActive(label) ? 'HeaderLink--active' : 'HeaderLink--default'}`}
|
|
60
62
|
>
|
|
61
63
|
{label}
|
|
64
|
+
{img && <Icon className="HeaderIcon position-relative pl-8">
|
|
65
|
+
<MenuIcons name={img} />
|
|
66
|
+
</Icon>
|
|
67
|
+
}
|
|
62
68
|
</Link>
|
|
63
69
|
);
|
|
64
70
|
})}
|