@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
|
@@ -109,6 +109,7 @@ A typical process starts with loading the app first. If we go step by step -
|
|
|
109
109
|
|
|
110
110
|
### Empty and Error States
|
|
111
111
|
<br/>
|
|
112
|
+
<br/>
|
|
112
113
|
|
|
113
114
|
<table style="width: 100%">
|
|
114
115
|
<thead>
|
|
@@ -171,6 +172,52 @@ A typical process starts with loading the app first. If we go step by step -
|
|
|
171
172
|
|
|
172
173
|
<br/>
|
|
173
174
|
|
|
175
|
+
<table style="width: 100%">
|
|
176
|
+
<thead>
|
|
177
|
+
<tr>
|
|
178
|
+
<th style="width:33%; text-align: left;">Property</th>
|
|
179
|
+
<th style="width:33%; text-align: left;">Value(s)</th>
|
|
180
|
+
<th style="width:33%; text-align: left;">Default value</th>
|
|
181
|
+
</tr>
|
|
182
|
+
</thead>
|
|
183
|
+
<tbody>
|
|
184
|
+
<tr style="vertical-align: top">
|
|
185
|
+
<td>Illustration</td>
|
|
186
|
+
<td>
|
|
187
|
+
Image
|
|
188
|
+
<br/>
|
|
189
|
+
<br/>
|
|
190
|
+
<b>Image size</b>
|
|
191
|
+
<br/>
|
|
192
|
+
Height - 128px
|
|
193
|
+
<br/>
|
|
194
|
+
Width - Dynamic as per the height, maintaining the aspect ratio
|
|
195
|
+
</td>
|
|
196
|
+
<td>
|
|
197
|
+
-
|
|
198
|
+
</td>
|
|
199
|
+
</tr>
|
|
200
|
+
<tr style="vertical-align: top">
|
|
201
|
+
<td>Title</td>
|
|
202
|
+
<td><title></td>
|
|
203
|
+
<td>We didn't find a match</td>
|
|
204
|
+
</tr>
|
|
205
|
+
<tr style="vertical-align: top">
|
|
206
|
+
<td>Description</td>
|
|
207
|
+
<td><description></td>
|
|
208
|
+
<td>Try adjusting your search to find what you are looking for.</td>
|
|
209
|
+
</tr>
|
|
210
|
+
<tr style="vertical-align: top">
|
|
211
|
+
<td>Button</td>
|
|
212
|
+
<td>Label</td>
|
|
213
|
+
<td>Try again</td>
|
|
214
|
+
</tr>
|
|
215
|
+
</tbody>
|
|
216
|
+
</table>
|
|
217
|
+
|
|
218
|
+
<br/>
|
|
219
|
+
<br/>
|
|
220
|
+
|
|
174
221
|
##### No search results
|
|
175
222
|
<div className="py-5" style={{ backgroundColor: 'var(--secondary-lightest)'}}>
|
|
176
223
|
<EmptyState
|
|
@@ -185,6 +232,51 @@ A typical process starts with loading the app first. If we go step by step -
|
|
|
185
232
|
</EmptyState>
|
|
186
233
|
</div>
|
|
187
234
|
|
|
235
|
+
<br/>
|
|
236
|
+
<table style="width: 100%">
|
|
237
|
+
<thead>
|
|
238
|
+
<tr>
|
|
239
|
+
<th style="width:33%; text-align: left;">Property</th>
|
|
240
|
+
<th style="width:33%; text-align: left;">Value(s)</th>
|
|
241
|
+
<th style="width:33%; text-align: left;">Default value</th>
|
|
242
|
+
</tr>
|
|
243
|
+
</thead>
|
|
244
|
+
<tbody>
|
|
245
|
+
<tr style="vertical-align: top">
|
|
246
|
+
<td>Illustration</td>
|
|
247
|
+
<td>
|
|
248
|
+
Image
|
|
249
|
+
<br/>
|
|
250
|
+
<br/>
|
|
251
|
+
<b>Image size</b>
|
|
252
|
+
<br/>
|
|
253
|
+
Height - 256px
|
|
254
|
+
<br/>
|
|
255
|
+
Width - Dynamic as per the height, maintaining the aspect ratio
|
|
256
|
+
</td>
|
|
257
|
+
<td>
|
|
258
|
+
-
|
|
259
|
+
</td>
|
|
260
|
+
</tr>
|
|
261
|
+
<tr style="vertical-align: top">
|
|
262
|
+
<td>Title</td>
|
|
263
|
+
<td><title></td>
|
|
264
|
+
<td>Manage your outreach camaigns</td>
|
|
265
|
+
</tr>
|
|
266
|
+
<tr style="vertical-align: top">
|
|
267
|
+
<td>Description</td>
|
|
268
|
+
<td><description></td>
|
|
269
|
+
<td>Campaigns let you reach out to patients with messages, emails and voice calls.</td>
|
|
270
|
+
</tr>
|
|
271
|
+
<tr style="vertical-align: top">
|
|
272
|
+
<td>Button</td>
|
|
273
|
+
<td>Label</td>
|
|
274
|
+
<td>New campaign</td>
|
|
275
|
+
</tr>
|
|
276
|
+
</tbody>
|
|
277
|
+
</table>
|
|
278
|
+
|
|
279
|
+
<br/>
|
|
188
280
|
<br/>
|
|
189
281
|
|
|
190
282
|
##### Error (page not loaded)
|
|
@@ -19,17 +19,17 @@ export function useFrontmatter(relativePagePath) {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
}
|
|
22
|
+
}
|
|
23
23
|
`);
|
|
24
24
|
|
|
25
25
|
const componentName = relativePagePath.slice(1, relativePagePath.lastIndexOf('/'));
|
|
26
26
|
|
|
27
|
-
const data = edges.filter(item => {
|
|
27
|
+
const data = edges.filter((item) => {
|
|
28
28
|
const { slug, frontmatter } = item.node;
|
|
29
29
|
if (relativePagePath.includes('mobile')) {
|
|
30
|
-
return slug.includes(componentName) && slug.includes('mobile') && frontmatter.title != frontmatter.description
|
|
30
|
+
return slug.includes(componentName) && slug.includes('mobile') && frontmatter.title != frontmatter.description;
|
|
31
31
|
}
|
|
32
|
-
return slug.includes(componentName) && !slug.includes('mobile') && frontmatter.title != frontmatter.description
|
|
32
|
+
return slug.includes(componentName) && !slug.includes('mobile') && frontmatter.title != frontmatter.description;
|
|
33
33
|
});
|
|
34
34
|
const frontmatter = data[0]?.node.frontmatter;
|
|
35
35
|
return frontmatter;
|
package/docs/src/util/Helpers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function debounce(func, delay = 100) {
|
|
2
2
|
let timerId;
|
|
3
3
|
return function () {
|
|
4
|
-
clearTimeout(timerId)
|
|
5
|
-
timerId = setTimeout(() => func.apply(this, arguments), delay)
|
|
4
|
+
clearTimeout(timerId);
|
|
5
|
+
timerId = setTimeout(() => func.apply(this, arguments), delay);
|
|
6
6
|
};
|
|
7
|
-
}
|
|
7
|
+
}
|
|
@@ -1,70 +1,108 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
|
-
export const Components = () =>
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
<g id="
|
|
7
|
-
<g id="
|
|
8
|
-
<g id="Group"
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<
|
|
13
|
-
|
|
3
|
+
export const Components = () => (
|
|
4
|
+
<svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<title>Group 15</title>
|
|
6
|
+
<g id="Web" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
7
|
+
<g id="Landing-screen---Top-navigation" transform="translate(-744.000000, -640.000000)">
|
|
8
|
+
<g id="Group-15" transform="translate(744.000000, 640.000000)">
|
|
9
|
+
<g id="Group" fill="#F9E2E2">
|
|
10
|
+
<circle id="Background" cx="24" cy="24" r="24"></circle>
|
|
11
|
+
</g>
|
|
12
|
+
<g id="widgets_black_24dp" transform="translate(12.000000, 12.000000)">
|
|
13
|
+
<polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon>
|
|
14
|
+
<path
|
|
15
|
+
d="M13,14 L13,20 C13,20.55 13.45,21 14,21 L20,21 C20.55,21 21,20.55 21,20 L21,14 C21,13.45 20.55,13 20,13 L14,13 C13.45,13 13,13.45 13,14 Z M4,21 L10,21 C10.55,21 11,20.55 11,20 L11,14 C11,13.45 10.55,13 10,13 L4,13 C3.45,13 3,13.45 3,14 L3,20 C3,20.55 3.45,21 4,21 Z M3,4 L3,10 C3,10.55 3.45,11 4,11 L10,11 C10.55,11 11,10.55 11,10 L11,4 C11,3.45 10.55,3 10,3 L4,3 C3.45,3 3,3.45 3,4 Z M15.95,2.4 L11.7,6.64 C11.31,7.03 11.31,7.66 11.7,8.05 L15.95,12.3 C16.34,12.69 16.97,12.69 17.36,12.3 L21.61,8.05 C22,7.66 22,7.03 21.61,6.64 L17.37,2.4 C16.98,2.01 16.34,2.01 15.95,2.4 Z"
|
|
16
|
+
id="Shape"
|
|
17
|
+
fill="#D93737"
|
|
18
|
+
fillRule="nonzero"
|
|
19
|
+
></path>
|
|
20
|
+
</g>
|
|
14
21
|
</g>
|
|
15
22
|
</g>
|
|
16
23
|
</g>
|
|
17
|
-
</
|
|
18
|
-
|
|
24
|
+
</svg>
|
|
25
|
+
);
|
|
19
26
|
|
|
20
|
-
export const Foundations = () =>
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
<g id="
|
|
24
|
-
<g id="
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
<g id="
|
|
28
|
-
<
|
|
29
|
-
|
|
27
|
+
export const Foundations = () => (
|
|
28
|
+
<svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
29
|
+
<title>Group 13</title>
|
|
30
|
+
<g id="Web" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
31
|
+
<g id="Landing-screen---Top-navigation" transform="translate(-150.000000, -640.000000)">
|
|
32
|
+
<g id="Group-13" transform="translate(150.000000, 640.000000)">
|
|
33
|
+
<circle id="Background" fill="#D7EFDF" cx="24" cy="24" r="24"></circle>
|
|
34
|
+
<g id="apartment_black_24dp" transform="translate(12.000000, 12.000000)">
|
|
35
|
+
<g id="Group">
|
|
36
|
+
<rect id="Rectangle" x="0" y="0" width="24" height="24"></rect>
|
|
37
|
+
<rect id="Rectangle" x="0" y="0" width="24" height="24"></rect>
|
|
38
|
+
</g>
|
|
39
|
+
<path
|
|
40
|
+
d="M17,11 L17,5 C17,3.9 16.1,3 15,3 L9,3 C7.9,3 7,3.9 7,5 L7,7 L5,7 C3.9,7 3,7.9 3,9 L3,19 C3,20.1 3.9,21 5,21 L10,21 C10.55,21 11,20.55 11,20 L11,17 L13,17 L13,20 C13,20.55 13.45,21 14,21 L19,21 C20.1,21 21,20.1 21,19 L21,13 C21,11.9 20.1,11 19,11 L17,11 Z M7,19 L5,19 L5,17 L7,17 L7,19 Z M7,15 L5,15 L5,13 L7,13 L7,15 Z M7,11 L5,11 L5,9 L7,9 L7,11 Z M11,15 L9,15 L9,13 L11,13 L11,15 Z M11,11 L9,11 L9,9 L11,9 L11,11 Z M11,7 L9,7 L9,5 L11,5 L11,7 Z M15,15 L13,15 L13,13 L15,13 L15,15 Z M15,11 L13,11 L13,9 L15,9 L15,11 Z M15,7 L13,7 L13,5 L15,5 L15,7 Z M19,19 L17,19 L17,17 L19,17 L19,19 Z M19,15 L17,15 L17,13 L19,13 L19,15 Z"
|
|
41
|
+
id="Shape"
|
|
42
|
+
fill="#2EA843"
|
|
43
|
+
fillRule="nonzero"
|
|
44
|
+
></path>
|
|
30
45
|
</g>
|
|
31
|
-
<path d="M17,11 L17,5 C17,3.9 16.1,3 15,3 L9,3 C7.9,3 7,3.9 7,5 L7,7 L5,7 C3.9,7 3,7.9 3,9 L3,19 C3,20.1 3.9,21 5,21 L10,21 C10.55,21 11,20.55 11,20 L11,17 L13,17 L13,20 C13,20.55 13.45,21 14,21 L19,21 C20.1,21 21,20.1 21,19 L21,13 C21,11.9 20.1,11 19,11 L17,11 Z M7,19 L5,19 L5,17 L7,17 L7,19 Z M7,15 L5,15 L5,13 L7,13 L7,15 Z M7,11 L5,11 L5,9 L7,9 L7,11 Z M11,15 L9,15 L9,13 L11,13 L11,15 Z M11,11 L9,11 L9,9 L11,9 L11,11 Z M11,7 L9,7 L9,5 L11,5 L11,7 Z M15,15 L13,15 L13,13 L15,13 L15,15 Z M15,11 L13,11 L13,9 L15,9 L15,11 Z M15,7 L13,7 L13,5 L15,5 L15,7 Z M19,19 L17,19 L17,17 L19,17 L19,19 Z M19,15 L17,15 L17,13 L19,13 L19,15 Z" id="Shape" fill="#2EA843" fillRule="nonzero"></path>
|
|
32
46
|
</g>
|
|
33
47
|
</g>
|
|
34
48
|
</g>
|
|
35
|
-
</
|
|
36
|
-
|
|
49
|
+
</svg>
|
|
50
|
+
);
|
|
37
51
|
|
|
38
|
-
export const Content = () =>
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
<g id="
|
|
42
|
-
<g id="
|
|
43
|
-
<g id="Group"
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<
|
|
48
|
-
|
|
52
|
+
export const Content = () => (
|
|
53
|
+
<svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
54
|
+
<title>Group 14</title>
|
|
55
|
+
<g id="Web" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
56
|
+
<g id="Landing-screen---Top-navigation" transform="translate(-447.000000, -640.000000)">
|
|
57
|
+
<g id="Group-14" transform="translate(447.000000, 640.000000)">
|
|
58
|
+
<g id="Group" fill="#FDE6CE">
|
|
59
|
+
<circle id="Background" cx="24" cy="24" r="24"></circle>
|
|
60
|
+
</g>
|
|
61
|
+
<g id="notes_black_24dp" transform="translate(12.000000, 12.000000)">
|
|
62
|
+
<polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon>
|
|
63
|
+
<path
|
|
64
|
+
d="M20,11 L4,11 C3.45,11 3,11.45 3,12 C3,12.55 3.45,13 4,13 L20,13 C20.55,13 21,12.55 21,12 C21,11.45 20.55,11 20,11 Z M4,18 L14,18 C14.55,18 15,17.55 15,17 C15,16.45 14.55,16 14,16 L4,16 C3.45,16 3,16.45 3,17 C3,17.55 3.45,18 4,18 Z M20,6 L4,6 C3.45,6 3,6.45 3,7 L3,7.01 C3,7.56 3.45,8.01 4,8.01 L20,8.01 C20.55,8.01 21,7.56 21,7.01 L21,7 C21,6.45 20.55,6 20,6 Z"
|
|
65
|
+
id="Shape"
|
|
66
|
+
fill="#F07D00"
|
|
67
|
+
fillRule="nonzero"
|
|
68
|
+
></path>
|
|
69
|
+
</g>
|
|
49
70
|
</g>
|
|
50
71
|
</g>
|
|
51
72
|
</g>
|
|
52
|
-
</
|
|
53
|
-
|
|
73
|
+
</svg>
|
|
74
|
+
);
|
|
54
75
|
|
|
55
|
-
export const Patterns = () =>
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
<g id="
|
|
59
|
-
<g id="
|
|
60
|
-
<g id="Group"
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
<
|
|
65
|
-
|
|
76
|
+
export const Patterns = () => (
|
|
77
|
+
<svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
78
|
+
<title>Group 16</title>
|
|
79
|
+
<g id="Web" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
80
|
+
<g id="Landing-screen---Top-navigation" transform="translate(-1041.000000, -640.000000)">
|
|
81
|
+
<g id="Group-16" transform="translate(1041.000000, 640.000000)">
|
|
82
|
+
<g id="Group" fill="#E0D8EE">
|
|
83
|
+
<circle id="Background" cx="24" cy="24" r="24"></circle>
|
|
84
|
+
</g>
|
|
85
|
+
<g id="pattern_black_24dp" transform="translate(12.000000, 12.000000)">
|
|
86
|
+
<polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon>
|
|
87
|
+
<path
|
|
88
|
+
d="M4,6 C4,4.9 4.9,4 6,4 C7.1,4 8,4.9 8,6 C8,7.1 7.1,8 6,8 C4.9,8 4,7.1 4,6 Z M6,14 C7.1,14 8,13.1 8,12 C8,10.9 7.1,10 6,10 C4.9,10 4,10.9 4,12 C4,13.1 4.9,14 6,14 Z M12,8 C13.1,8 14,7.1 14,6 C14,4.9 13.1,4 12,4 C10.9,4 10,4.9 10,6 C10,7.1 10.9,8 12,8 Z M18,10 C16.9,10 16,10.9 16,12 C16,13.1 16.9,14 18,14 C19.1,14 20,13.1 20,12 C20,10.9 19.1,10 18,10 Z M17.98,16 C17.24,16 16.61,16.4 16.26,17 L13.72,17 C13.38,16.4 12.74,16 12,16 C11.26,16 10.63,16.4 10.28,17 L8.41,17 L11.48,13.93 C11.65,13.97 11.82,14 12,14 C13.1,14 14,13.1 14,12 C14,11.82 13.97,11.65 13.93,11.49 L17.49,7.93 C17.65,7.97 17.82,8 18,8 C19.1,8 20,7.1 20,6 C20,4.9 19.1,4 18,4 C16.9,4 16,4.9 16,6 C16,6.18 16.03,6.35 16.07,6.51 L12.51,10.07 C12.35,10.03 12.18,10 12,10 C10.9,10 10,10.9 10,12 C10,12.18 10.03,12.35 10.07,12.51 L6.51,16.07 C6.35,16.03 6.18,16 6,16 C4.9,16 4,16.9 4,18 C4,19.1 4.9,20 6,20 C6.74,20 7.37,19.6 7.72,19 L10.29,19 C10.63,19.6 11.27,20 12.01,20 C12.75,20 13.38,19.6 13.73,19 L16.28,19 C16.62,19.6 17.26,20 18,20 C19.1,20 20,19.1 20,18 C19.98,16.9 19.08,16 17.98,16 Z"
|
|
89
|
+
id="Shape"
|
|
90
|
+
fill="#7A53B2"
|
|
91
|
+
fillRule="nonzero"
|
|
92
|
+
></path>
|
|
93
|
+
</g>
|
|
66
94
|
</g>
|
|
67
95
|
</g>
|
|
68
96
|
</g>
|
|
69
|
-
</
|
|
70
|
-
|
|
97
|
+
</svg>
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
export const Storybook = () => (
|
|
101
|
+
<svg width="20" height="15" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
102
|
+
<path
|
|
103
|
+
d="M18 13v6c0 .5304-.2107 1.0391-.5858 1.4142S16.5304 21 16 21H5c-.53043 0-1.03914-.2107-1.41421-.5858C3.21071 20.0391 3 19.5304 3 19V8c0-.53043.21071-1.03914.58579-1.41421C3.96086 6.21071 4.46957 6 5 6h6M15 3h6v6M10 14L21 3"
|
|
104
|
+
stroke-width="2"
|
|
105
|
+
stroke="#2f2f2f"
|
|
106
|
+
></path>
|
|
107
|
+
</svg>
|
|
108
|
+
);
|
|
@@ -22,12 +22,8 @@ export function useNavItems(relativePagePath) {
|
|
|
22
22
|
|
|
23
23
|
const headings = edges
|
|
24
24
|
.filter(({ node }) => {
|
|
25
|
-
const fileName =
|
|
26
|
-
|
|
27
|
-
if (
|
|
28
|
-
fileName === relativePagePath &&
|
|
29
|
-
node.headings.length
|
|
30
|
-
) {
|
|
25
|
+
const fileName = node.fileAbsolutePath.split('pages')[1];
|
|
26
|
+
if (fileName === relativePagePath && node.headings.length) {
|
|
31
27
|
return node;
|
|
32
28
|
}
|
|
33
29
|
})
|
package/docs/src/util/Logos.js
CHANGED
|
@@ -5,7 +5,7 @@ export function useLogoItems() {
|
|
|
5
5
|
allFile: { edges },
|
|
6
6
|
} = useStaticQuery(graphql`
|
|
7
7
|
query IMAGES {
|
|
8
|
-
allFile(filter: {sourceInstanceName: {eq: "StaticImages"}}) {
|
|
8
|
+
allFile(filter: { sourceInstanceName: { eq: "StaticImages" } }) {
|
|
9
9
|
edges {
|
|
10
10
|
node {
|
|
11
11
|
childImageSharp {
|
|
@@ -19,6 +19,6 @@ export function useLogoItems() {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
`);
|
|
22
|
-
const data = edges.map((item) => item.node.childImageSharp)
|
|
22
|
+
const data = edges.map((item) => item.node.childImageSharp);
|
|
23
23
|
return data;
|
|
24
24
|
}
|
|
@@ -5,7 +5,7 @@ export default function MdsChangelog() {
|
|
|
5
5
|
allMdx: { edges },
|
|
6
6
|
} = useStaticQuery(graphql`
|
|
7
7
|
query MDS_CHANGELOG {
|
|
8
|
-
allMdx(filter: {frontmatter: {title: {eq: "Release notes"}}}) {
|
|
8
|
+
allMdx(filter: { frontmatter: { title: { eq: "Release notes" } } }) {
|
|
9
9
|
edges {
|
|
10
10
|
node {
|
|
11
11
|
internal {
|
|
@@ -17,7 +17,7 @@ export default function MdsChangelog() {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
}
|
|
20
|
+
}
|
|
21
21
|
`);
|
|
22
22
|
|
|
23
23
|
const items = edges.map(({ node }) => node);
|
|
@@ -25,18 +25,14 @@ export default function MdsChangelog() {
|
|
|
25
25
|
const record = {
|
|
26
26
|
version: '',
|
|
27
27
|
releaseDate: '',
|
|
28
|
-
updatesList: []
|
|
29
|
-
}
|
|
28
|
+
updatesList: [],
|
|
29
|
+
};
|
|
30
30
|
|
|
31
31
|
if (items.length > 0) {
|
|
32
|
-
|
|
33
32
|
const metadata = items[0].headings[0].value;
|
|
34
33
|
|
|
35
34
|
record.version = metadata.substring(0, metadata.indexOf('('));
|
|
36
|
-
record.releaseDate = metadata.substring(
|
|
37
|
-
metadata.indexOf("(") + 1,
|
|
38
|
-
metadata.lastIndexOf(")")
|
|
39
|
-
);
|
|
35
|
+
record.releaseDate = metadata.substring(metadata.indexOf('(') + 1, metadata.lastIndexOf(')'));
|
|
40
36
|
|
|
41
37
|
const htmlContent = items[0].internal.content;
|
|
42
38
|
const latestUpdate = htmlContent.split('\n----')[0];
|
|
@@ -49,7 +45,6 @@ export default function MdsChangelog() {
|
|
|
49
45
|
updateList
|
|
50
46
|
.filter((item) => item.includes(listSeparator))
|
|
51
47
|
.map((item) => record.updatesList.push(item.split(listSeparator)));
|
|
52
|
-
|
|
53
48
|
}
|
|
54
49
|
return record;
|
|
55
50
|
}
|
|
@@ -4,23 +4,23 @@ export default function MediumBlogs() {
|
|
|
4
4
|
const {
|
|
5
5
|
allMediumPost: { edges },
|
|
6
6
|
} = useStaticQuery(graphql`
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
7
|
+
query MEDIUM_BLOGS {
|
|
8
|
+
allMediumPost(sort: { fields: [createdAt], order: DESC }) {
|
|
9
|
+
edges {
|
|
10
|
+
node {
|
|
11
|
+
id
|
|
12
|
+
title
|
|
13
|
+
uniqueSlug
|
|
14
|
+
firstPublishedAt
|
|
15
|
+
author {
|
|
16
|
+
name
|
|
17
|
+
imageId
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
|
-
|
|
22
|
+
}
|
|
23
|
+
`);
|
|
24
24
|
|
|
25
25
|
const items = edges.map(({ node }) => node);
|
|
26
26
|
return items;
|
|
@@ -5,24 +5,24 @@ export function useNavItems(relativePagePath) {
|
|
|
5
5
|
const {
|
|
6
6
|
allNavYaml: { nodes },
|
|
7
7
|
} = useStaticQuery(graphql`
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
query LEFT_NAV_QUERY {
|
|
9
|
+
allNavYaml {
|
|
10
|
+
nodes {
|
|
11
|
+
base
|
|
12
|
+
menus {
|
|
13
|
+
label
|
|
14
|
+
link
|
|
15
|
+
hideInMobile
|
|
16
|
+
hideInWeb
|
|
17
|
+
subMenu {
|
|
13
18
|
label
|
|
14
19
|
link
|
|
15
|
-
hideInMobile
|
|
16
|
-
hideInWeb
|
|
17
|
-
subMenu {
|
|
18
|
-
label
|
|
19
|
-
link
|
|
20
|
-
}
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
|
-
|
|
24
|
+
}
|
|
25
|
+
`);
|
|
26
26
|
|
|
27
27
|
const getKey = (nodes, relativePath) => {
|
|
28
28
|
const keys = nodes.map((elt) => {
|
|
@@ -47,7 +47,7 @@ export function useNavItems(relativePagePath) {
|
|
|
47
47
|
});
|
|
48
48
|
|
|
49
49
|
return value;
|
|
50
|
-
}
|
|
50
|
+
};
|
|
51
51
|
|
|
52
52
|
const pagePath = relativePagePath.includes(MOBILE)
|
|
53
53
|
? relativePagePath.split('/')[2]?.replace('.mdx', '')
|
|
@@ -59,7 +59,6 @@ export function useNavItems(relativePagePath) {
|
|
|
59
59
|
return node.base === navPage;
|
|
60
60
|
});
|
|
61
61
|
|
|
62
|
-
|
|
63
62
|
const navItems = navData[0].menus.map((node) => {
|
|
64
63
|
const menu = {
|
|
65
64
|
...node,
|
|
@@ -72,9 +71,7 @@ export function useNavItems(relativePagePath) {
|
|
|
72
71
|
return {
|
|
73
72
|
...item,
|
|
74
73
|
name: `${menu.name}.${item.label}`,
|
|
75
|
-
link: relativePagePath.includes(MOBILE) && item.link
|
|
76
|
-
? `/mobile${item.link}`
|
|
77
|
-
: item.link,
|
|
74
|
+
link: relativePagePath.includes(MOBILE) && item.link ? `/mobile${item.link}` : item.link,
|
|
78
75
|
};
|
|
79
76
|
});
|
|
80
77
|
}
|
package/docs/src/util/Search.js
CHANGED
|
@@ -21,7 +21,7 @@ export function useSearchItems() {
|
|
|
21
21
|
|
|
22
22
|
const searchList = edges.filter((item) => {
|
|
23
23
|
const { title, description } = item.node.frontmatter;
|
|
24
|
-
return title && description && title != description
|
|
25
|
-
})
|
|
24
|
+
return title && description && title != description;
|
|
25
|
+
});
|
|
26
26
|
return searchList;
|
|
27
27
|
}
|
|
@@ -13,12 +13,10 @@ export function useGetStorybookData(componentName) {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
}
|
|
16
|
+
}
|
|
17
17
|
`);
|
|
18
18
|
|
|
19
|
-
const list = edges.filter((item) =>
|
|
20
|
-
item.node.key.includes(componentName.toLowerCase())
|
|
21
|
-
)
|
|
19
|
+
const list = edges.filter((item) => item.node.key.includes(componentName.toLowerCase()));
|
|
22
20
|
const result = JSON.parse(list[0].node.value);
|
|
23
21
|
return result;
|
|
24
22
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
export const MOBILE = 'mobile';
|
|
2
|
-
export const buttonVariants = [
|
|
3
|
-
'basic-button',
|
|
4
|
-
'alert-button',
|
|
5
|
-
'split-button',
|
|
6
|
-
];
|
|
2
|
+
export const buttonVariants = ['basic-button', 'alert-button', 'split-button'];
|
|
7
3
|
export const avatarVariants = ['default-avatar', 'size'];
|
|
8
4
|
export const copyMessage = 'Copy';
|
|
9
5
|
export const copyMessageSuccess = 'Copied!';
|
|
@@ -19,10 +19,7 @@ const reducer = (state, action) => {
|
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
export const NavContextProvider = ({ children }) => {
|
|
22
|
-
const [
|
|
23
|
-
{ leftNavIsOpen, searchIsOpen, switcherIsOpen, leftNavScrollOffset },
|
|
24
|
-
dispatch,
|
|
25
|
-
] = useReducer(reducer, {
|
|
22
|
+
const [{ leftNavIsOpen, searchIsOpen, switcherIsOpen, leftNavScrollOffset }, dispatch] = useReducer(reducer, {
|
|
26
23
|
leftNavIsOpen: false,
|
|
27
24
|
searchIsOpen: false,
|
|
28
25
|
switcherIsOpen: false,
|
package/docs/tools/build.sh
CHANGED
package/docs/tools/changelog.sh
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
cat tools/changeloghead.md
|
|
1
|
+
cat tools/changeloghead.md ../CHANGELOG.md > src/pages/introduction/what\'s-new.mdx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innovaccer/design-system",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.4-2",
|
|
4
4
|
"description": "React components library project for Innovaccer Design System",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"deploy-storybook": "storybook-to-aws-s3",
|
|
20
20
|
"setup-css-dev": "./scripts/setup-local-css.sh",
|
|
21
21
|
"pre-commit": "lint-staged",
|
|
22
|
-
"lint:check": "eslint ./core --ext .tsx,.ts",
|
|
22
|
+
"lint:check": "eslint ./core --ext .tsx,.ts,.js,.jsx",
|
|
23
23
|
"lint": "npm run lint:check -- --fix",
|
|
24
24
|
"prettier:check": "prettier --config ./.prettierrc --check",
|
|
25
25
|
"prettier": "prettier --config ./.prettierrc --write 'css/src/**/*.css'",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
],
|
|
144
144
|
"repository": "github:innovaccer/design-system",
|
|
145
145
|
"lint-staged": {
|
|
146
|
-
"core/**/*.{tx,tsx}": [
|
|
146
|
+
"core/**/*.{tx,tsx,js,jsx}": [
|
|
147
147
|
"npm run lint:check"
|
|
148
148
|
],
|
|
149
149
|
"css/src/**/*.css": [
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Components
|
|
3
|
-
description: Components are the reusable building blocks of our design system. Each component meets a specific interaction or UI need, and has been specifically created to work together to create patterns and intuitive user experiences.
|
|
4
|
-
tabs: ["All components", "Status"]
|
|
5
|
-
showMobile: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
import Overview from '../../data/components/Overview.js';
|
|
9
|
-
import { data } from "../../data/components/index.js";
|
|
10
|
-
|
|
11
|
-
<Overview data={data} />
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Button guidelines
|
|
3
|
-
description: Use this guide to make your labels predictable and consequential. Your users depend on them, give it some thought and time.
|
|
4
|
-
tabs: ['Confusing buttons', 'Button glossary']
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Use this guide to make your labels predictable and consequential. Your users depend on them, give it some thought and time.
|