@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
|
@@ -5,7 +5,7 @@ import Label from '../../label';
|
|
|
5
5
|
import Caption from '../../caption';
|
|
6
6
|
|
|
7
7
|
// CSF format story
|
|
8
|
-
export const dropdownWithCaption = () =>{
|
|
8
|
+
export const dropdownWithCaption = () => {
|
|
9
9
|
const options = [
|
|
10
10
|
{
|
|
11
11
|
label: 'Alabama (205)',
|
|
@@ -49,13 +49,13 @@ export const dropdownWithCaption = () =>{
|
|
|
49
49
|
},
|
|
50
50
|
];
|
|
51
51
|
return (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
<>
|
|
53
|
+
<Label withInput={true}>Area code</Label>
|
|
54
|
+
<Dropdown options={options} withSearch={true} className="w-25" placeholder="Select an area code" />
|
|
55
|
+
<Caption withInput={true}>If the number with this code is not available, we will use the next best match</Caption>
|
|
56
|
+
</>
|
|
57
57
|
);
|
|
58
|
-
}
|
|
58
|
+
};
|
|
59
59
|
|
|
60
60
|
export default {
|
|
61
61
|
title: 'Components/Dropdown/Dropdown With Caption',
|
|
@@ -4,7 +4,7 @@ import Label from '@/components/atoms/label';
|
|
|
4
4
|
import { Uncontrolled, Controlled } from './_common_/types';
|
|
5
5
|
|
|
6
6
|
// CSF format story
|
|
7
|
-
export const gender = () =>{
|
|
7
|
+
export const gender = () => {
|
|
8
8
|
const options = [
|
|
9
9
|
{
|
|
10
10
|
label: 'Male',
|
|
@@ -17,12 +17,12 @@ export const gender = () =>{
|
|
|
17
17
|
},
|
|
18
18
|
];
|
|
19
19
|
return (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
<div className="mb-10 w-25">
|
|
21
|
+
<Label withInput={true}>Gender</Label>
|
|
22
|
+
<Dropdown options={options} />
|
|
23
|
+
</div>
|
|
24
24
|
);
|
|
25
|
-
}
|
|
25
|
+
};
|
|
26
26
|
|
|
27
27
|
export default {
|
|
28
28
|
title: 'Components/Dropdown/Gender',
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Dropdown } from '@/index';
|
|
3
|
+
import { Uncontrolled, Controlled } from './_common_/types';
|
|
4
|
+
|
|
5
|
+
// CSF format story
|
|
6
|
+
export const LabelInline = () => {
|
|
7
|
+
const options = [
|
|
8
|
+
{
|
|
9
|
+
label: 'All',
|
|
10
|
+
value: 'all',
|
|
11
|
+
selected: true,
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
label: 'Draft',
|
|
15
|
+
value: 'draft',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
label: 'In Progress',
|
|
19
|
+
value: 'in_progress',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: 'Sent',
|
|
23
|
+
value: 'sent',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: 'Scheduled',
|
|
27
|
+
value: 'scheduled',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: 'Partially Failed',
|
|
31
|
+
value: 'partially_failed',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: 'Completely Failed',
|
|
35
|
+
value: 'completely_failed',
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
return (
|
|
39
|
+
<div>
|
|
40
|
+
<Dropdown options={options} className="w-25" inlineLabel="Status" withCheckbox={true} />
|
|
41
|
+
</div>
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export default {
|
|
46
|
+
title: 'Components/Dropdown/Label Inline',
|
|
47
|
+
component: Dropdown,
|
|
48
|
+
parameters: {
|
|
49
|
+
docs: {
|
|
50
|
+
docPage: {
|
|
51
|
+
title: 'Dropdown',
|
|
52
|
+
props: {
|
|
53
|
+
components: { Uncontrolled, Controlled },
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
};
|
|
@@ -4,7 +4,7 @@ import { Uncontrolled, Controlled } from './_common_/types';
|
|
|
4
4
|
import Label from '../../label';
|
|
5
5
|
|
|
6
6
|
// CSF format story
|
|
7
|
-
export const
|
|
7
|
+
export const LabelOnTop = () => {
|
|
8
8
|
const options = [
|
|
9
9
|
{
|
|
10
10
|
label: 'All',
|
|
@@ -37,18 +37,17 @@ export const labelPositionInDropdown = () =>{
|
|
|
37
37
|
},
|
|
38
38
|
];
|
|
39
39
|
return (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
<div>
|
|
41
|
+
<div className="w-25 mb-9">
|
|
42
|
+
<Label withInput={true}>Status</Label>
|
|
43
|
+
<Dropdown options={options} className="w-100" withCheckbox={true} />
|
|
44
|
+
</div>
|
|
44
45
|
</div>
|
|
45
|
-
<Dropdown options={options} className="w-25" inlineLabel="Status" withCheckbox={true} />
|
|
46
|
-
</div>
|
|
47
46
|
);
|
|
48
|
-
}
|
|
47
|
+
};
|
|
49
48
|
|
|
50
49
|
export default {
|
|
51
|
-
title: 'Components/Dropdown/Label
|
|
50
|
+
title: 'Components/Dropdown/Label On Top',
|
|
52
51
|
component: Dropdown,
|
|
53
52
|
parameters: {
|
|
54
53
|
docs: {
|
|
@@ -4,7 +4,7 @@ import Label from '@/components/atoms/label';
|
|
|
4
4
|
import { Uncontrolled, Controlled } from './_common_/types';
|
|
5
5
|
|
|
6
6
|
// CSF format story
|
|
7
|
-
export const languages = () =>{
|
|
7
|
+
export const languages = () => {
|
|
8
8
|
const options = [
|
|
9
9
|
{
|
|
10
10
|
label: 'Hindi',
|
|
@@ -20,12 +20,12 @@ export const languages = () =>{
|
|
|
20
20
|
},
|
|
21
21
|
];
|
|
22
22
|
return (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
<div className="mb-11 w-25">
|
|
24
|
+
<Label withInput={true}>Select Language</Label>
|
|
25
|
+
<Dropdown options={options} />
|
|
26
|
+
</div>
|
|
27
27
|
);
|
|
28
|
-
}
|
|
28
|
+
};
|
|
29
29
|
|
|
30
30
|
export default {
|
|
31
31
|
title: 'Components/Dropdown/Languages',
|
|
@@ -4,7 +4,6 @@ import { Uncontrolled, Controlled } from './_common_/types';
|
|
|
4
4
|
|
|
5
5
|
// CSF format story
|
|
6
6
|
export const dropdownAsMenu = () => {
|
|
7
|
-
|
|
8
7
|
const options = [
|
|
9
8
|
{
|
|
10
9
|
label: 'Edit',
|
|
@@ -18,13 +17,13 @@ export const dropdownAsMenu = () => {
|
|
|
18
17
|
label: 'Delete',
|
|
19
18
|
value: 'delete',
|
|
20
19
|
},
|
|
21
|
-
]
|
|
20
|
+
];
|
|
22
21
|
return (
|
|
23
22
|
<div className="d-flex w-50">
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
)
|
|
23
|
+
<Dropdown options={options} menu={true} className="mr-5" align="right" maxWidth={130} />
|
|
24
|
+
<Dropdown options={options} menu={true} align="left" className="mr-5" maxWidth={130} />
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
28
27
|
};
|
|
29
28
|
|
|
30
29
|
export default {
|
|
@@ -2,10 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { Dropdown } from '@/index';
|
|
3
3
|
import { Uncontrolled, Controlled } from './_common_/types';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
5
|
// CSF format story
|
|
8
|
-
export const dropdownOptionsLessThan50 = () =>{
|
|
6
|
+
export const dropdownOptionsLessThan50 = () => {
|
|
9
7
|
const options = [];
|
|
10
8
|
for (let i = 1; i <= 50; i++) {
|
|
11
9
|
options.push({
|
|
@@ -13,10 +11,8 @@ export const dropdownOptionsLessThan50 = () =>{
|
|
|
13
11
|
value: `Option${i}`,
|
|
14
12
|
});
|
|
15
13
|
}
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
);
|
|
19
|
-
}
|
|
14
|
+
return <Dropdown options={options} withCheckbox={true} withSearch={true} className="w-25" placeholder="Select" />;
|
|
15
|
+
};
|
|
20
16
|
|
|
21
17
|
const customCode = `() => {
|
|
22
18
|
const options = [];
|
|
@@ -20,7 +20,7 @@ export const dropdownOptionsMoreThan50 = () => {
|
|
|
20
20
|
const fetchOptions = (searchTerm) => {
|
|
21
21
|
const searchedOptions = searchTerm ? getSearchedOptions(options, searchTerm) : options;
|
|
22
22
|
return new Promise((resolve) => {
|
|
23
|
-
window.setTimeout(() => {
|
|
23
|
+
this.window.setTimeout(() => {
|
|
24
24
|
resolve({
|
|
25
25
|
searchTerm,
|
|
26
26
|
options: searchedOptions,
|
|
@@ -50,7 +50,7 @@ const customCode = `() => {
|
|
|
50
50
|
const fetchOptions = (searchTerm) => {
|
|
51
51
|
const searchedOptions = searchTerm ? getSearchedOptions(options, searchTerm) : options;
|
|
52
52
|
return new Promise(resolve => {
|
|
53
|
-
window.setTimeout(() => {
|
|
53
|
+
this.window.setTimeout(() => {
|
|
54
54
|
resolve({
|
|
55
55
|
searchTerm,
|
|
56
56
|
options: searchedOptions,
|
|
@@ -3,7 +3,7 @@ import { Dropdown } from '@/index';
|
|
|
3
3
|
import { Uncontrolled, Controlled } from './_common_/types';
|
|
4
4
|
|
|
5
5
|
// CSF format story
|
|
6
|
-
export const searchInDropdown = () =>{
|
|
6
|
+
export const searchInDropdown = () => {
|
|
7
7
|
const options = [
|
|
8
8
|
{
|
|
9
9
|
label: 'Financial',
|
|
@@ -26,10 +26,8 @@ export const searchInDropdown = () =>{
|
|
|
26
26
|
value: 'lack_of_understanding',
|
|
27
27
|
},
|
|
28
28
|
];
|
|
29
|
-
return
|
|
30
|
-
|
|
31
|
-
);
|
|
32
|
-
}
|
|
29
|
+
return <Dropdown options={options} withSearch={true} className="w-25" placeholder="Select barriers" />;
|
|
30
|
+
};
|
|
33
31
|
|
|
34
32
|
export default {
|
|
35
33
|
title: 'Components/Dropdown/Search In Dropdown',
|
|
@@ -3,7 +3,7 @@ import { Dropdown } from '@/index';
|
|
|
3
3
|
import { Uncontrolled, Controlled } from './_common_/types';
|
|
4
4
|
|
|
5
5
|
// CSF format story
|
|
6
|
-
export const standardDropdown = () =>{
|
|
6
|
+
export const standardDropdown = () => {
|
|
7
7
|
const options = [
|
|
8
8
|
{
|
|
9
9
|
label: 'Draft',
|
|
@@ -30,7 +30,7 @@ export const standardDropdown = () =>{
|
|
|
30
30
|
value: 'completely_failed',
|
|
31
31
|
},
|
|
32
32
|
];
|
|
33
|
-
|
|
33
|
+
return <Dropdown options={options} className="w-25" placeholder="Status" />;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
export default {
|
|
@@ -19,9 +19,9 @@ export const statusWithoutLabel = () => {
|
|
|
19
19
|
},
|
|
20
20
|
];
|
|
21
21
|
return (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
<div className="mb-11 w-25">
|
|
23
|
+
<Dropdown options={options} placeholder="All Categories" />
|
|
24
|
+
</div>
|
|
25
25
|
);
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -3,7 +3,7 @@ import { Dropdown } from '@/index';
|
|
|
3
3
|
import { Uncontrolled, Controlled } from './_common_/types';
|
|
4
4
|
|
|
5
5
|
// CSF format story
|
|
6
|
-
export const dropdownItemsWithCheckboxAndSubinfo = () =>{
|
|
6
|
+
export const dropdownItemsWithCheckboxAndSubinfo = () => {
|
|
7
7
|
const options = [
|
|
8
8
|
{
|
|
9
9
|
label: 'Below 18',
|
|
@@ -26,9 +26,7 @@ export const dropdownItemsWithCheckboxAndSubinfo = () =>{
|
|
|
26
26
|
subInfo: 'People above 56 years old',
|
|
27
27
|
},
|
|
28
28
|
];
|
|
29
|
-
return
|
|
30
|
-
<Dropdown options={options} withCheckbox={true} className="w-25" placeholder="Select" />
|
|
31
|
-
);
|
|
29
|
+
return <Dropdown options={options} withCheckbox={true} className="w-25" placeholder="Select" />;
|
|
32
30
|
};
|
|
33
31
|
|
|
34
32
|
export default {
|
|
@@ -48,7 +48,7 @@ export const all = () => {
|
|
|
48
48
|
const fetchOptions = (searchTerm) => {
|
|
49
49
|
const searchedOptions = searchTerm ? getSearchedOptions(dropdownOptions, searchTerm) : dropdownOptions;
|
|
50
50
|
return new Promise((resolve) => {
|
|
51
|
-
window.setTimeout(() => {
|
|
51
|
+
this.window.setTimeout(() => {
|
|
52
52
|
resolve({
|
|
53
53
|
searchTerm,
|
|
54
54
|
options: searchedOptions,
|
|
@@ -124,7 +124,7 @@ const customCode = `() => {
|
|
|
124
124
|
const fetchOptions = (searchTerm) => {
|
|
125
125
|
const searchedOptions = searchTerm ? getSearchedOptions(dropdownOptions, searchTerm) : dropdownOptions;
|
|
126
126
|
return new Promise(resolve => {
|
|
127
|
-
window.setTimeout(() => {
|
|
127
|
+
this.window.setTimeout(() => {
|
|
128
128
|
resolve({
|
|
129
129
|
searchTerm,
|
|
130
130
|
options: searchedOptions,
|
|
@@ -2,7 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import Dropdown from '../../Dropdown';
|
|
3
3
|
import Text from '@/components/atoms/text';
|
|
4
4
|
import { storyOptions } from '../Options';
|
|
5
|
-
import { OptionType } from '../../DropdownList';
|
|
6
5
|
import { Uncontrolled, Controlled } from '../_common_/types';
|
|
7
6
|
|
|
8
7
|
const labelMapping = {
|
|
@@ -16,7 +16,7 @@ export const preSelection = () => {
|
|
|
16
16
|
const fetchOptions = (searchTerm) => {
|
|
17
17
|
const searchedOptions = searchTerm ? getSearchedOptions(preSelectedOptions, searchTerm) : preSelectedOptions;
|
|
18
18
|
return new Promise((resolve) => {
|
|
19
|
-
window.setTimeout(() => {
|
|
19
|
+
this.window.setTimeout(() => {
|
|
20
20
|
resolve({
|
|
21
21
|
searchTerm,
|
|
22
22
|
options: searchedOptions,
|
|
@@ -64,7 +64,7 @@ const customCode = `() => {
|
|
|
64
64
|
const fetchOptions = (searchTerm, limit) => {
|
|
65
65
|
const searchedOptions = searchTerm ? getSearchedOptions(dropdownOptions, searchTerm) : dropdownOptions;
|
|
66
66
|
return new Promise(resolve => {
|
|
67
|
-
window.setTimeout(() => {
|
|
67
|
+
this.window.setTimeout(() => {
|
|
68
68
|
resolve({
|
|
69
69
|
options: searchedOptions.slice(0, limit),
|
|
70
70
|
count: searchedOptions.length,
|
|
@@ -16,7 +16,7 @@ export const staticLimit = () => {
|
|
|
16
16
|
const fetchOptions = (searchTerm) => {
|
|
17
17
|
const searchedOptions = searchTerm ? getSearchedOptions(dropdownOptions, searchTerm) : dropdownOptions;
|
|
18
18
|
return new Promise((resolve) => {
|
|
19
|
-
window.setTimeout(() => {
|
|
19
|
+
this.window.setTimeout(() => {
|
|
20
20
|
resolve({
|
|
21
21
|
searchTerm,
|
|
22
22
|
options: searchedOptions,
|
|
@@ -63,7 +63,7 @@ const customCode = `() => {
|
|
|
63
63
|
const fetchOptions = (searchTerm) => {
|
|
64
64
|
const searchedOptions = searchTerm ? getSearchedOptions(dropdownOptions, searchTerm) : dropdownOptions;
|
|
65
65
|
return new Promise(resolve => {
|
|
66
|
-
window.setTimeout(() => {
|
|
66
|
+
this.window.setTimeout(() => {
|
|
67
67
|
resolve({
|
|
68
68
|
searchTerm,
|
|
69
69
|
options: searchedOptions,
|
|
@@ -18,7 +18,7 @@ export const bulkMultiSelectWithApplyButton = () => {
|
|
|
18
18
|
const fetchOptions = (searchTerm) => {
|
|
19
19
|
const searchedOptions = searchTerm ? getSearchedOptions(dropdownOptions, searchTerm) : dropdownOptions;
|
|
20
20
|
return new Promise((resolve) => {
|
|
21
|
-
window.setTimeout(() => {
|
|
21
|
+
this.window.setTimeout(() => {
|
|
22
22
|
resolve({
|
|
23
23
|
searchTerm,
|
|
24
24
|
options: searchedOptions,
|
|
@@ -90,7 +90,7 @@ const customCode = `() => {
|
|
|
90
90
|
const fetchOptions = (searchTerm) => {
|
|
91
91
|
const searchedOptions = searchTerm ? getSearchedOptions(dropdownOptions, searchTerm) : dropdownOptions;
|
|
92
92
|
return new Promise(resolve => {
|
|
93
|
-
window.setTimeout(() => {
|
|
93
|
+
this.window.setTimeout(() => {
|
|
94
94
|
resolve({
|
|
95
95
|
searchTerm,
|
|
96
96
|
options: searchedOptions,
|
package/core/components/atoms/dropdown/__stories__/variants/controlledDropdown/MultiSelect.story.jsx
CHANGED
|
@@ -18,7 +18,7 @@ export const multiSelect = () => {
|
|
|
18
18
|
const fetchOptions = (searchTerm) => {
|
|
19
19
|
const searchedOptions = searchTerm ? getSearchedOptions(dropdownOptions, searchTerm) : dropdownOptions;
|
|
20
20
|
return new Promise((resolve) => {
|
|
21
|
-
window.setTimeout(() => {
|
|
21
|
+
this.window.setTimeout(() => {
|
|
22
22
|
resolve({
|
|
23
23
|
searchTerm,
|
|
24
24
|
options: searchedOptions,
|
|
@@ -148,7 +148,7 @@ const customCode = `() => {
|
|
|
148
148
|
const fetchOptions = (searchTerm) => {
|
|
149
149
|
const searchedOptions = searchTerm ? getSearchedOptions(dropdownOptions, searchTerm) : dropdownOptions;
|
|
150
150
|
return new Promise(resolve => {
|
|
151
|
-
window.setTimeout(() => {
|
|
151
|
+
this.window.setTimeout(() => {
|
|
152
152
|
resolve({
|
|
153
153
|
searchTerm,
|
|
154
154
|
options: searchedOptions,
|
|
@@ -17,7 +17,7 @@ export const singleSelect = () => {
|
|
|
17
17
|
const fetchOptions = (searchTerm) => {
|
|
18
18
|
const searchedOptions = searchTerm ? getSearchedOptions(dropdownOptions, searchTerm) : dropdownOptions;
|
|
19
19
|
return new Promise((resolve) => {
|
|
20
|
-
window.setTimeout(() => {
|
|
20
|
+
this.window.setTimeout(() => {
|
|
21
21
|
resolve({
|
|
22
22
|
searchTerm,
|
|
23
23
|
options: searchedOptions,
|
|
@@ -32,7 +32,7 @@ export const singleSelect = () => {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
const onUpdate = (_type, option) => {
|
|
35
|
-
window.setTimeout(() => {
|
|
35
|
+
this.window.setTimeout(() => {
|
|
36
36
|
setSelected([option]);
|
|
37
37
|
}, 2000);
|
|
38
38
|
};
|
|
@@ -78,7 +78,7 @@ const customCode = `() => {
|
|
|
78
78
|
const fetchOptions = (searchTerm) => {
|
|
79
79
|
const searchedOptions = searchTerm ? getSearchedOptions(dropdownOptions, searchTerm) : dropdownOptions;
|
|
80
80
|
return new Promise(resolve => {
|
|
81
|
-
window.setTimeout(() => {
|
|
81
|
+
this.window.setTimeout(() => {
|
|
82
82
|
resolve({
|
|
83
83
|
searchTerm,
|
|
84
84
|
options: searchedOptions,
|
|
@@ -93,7 +93,7 @@ const customCode = `() => {
|
|
|
93
93
|
};
|
|
94
94
|
|
|
95
95
|
const onUpdate = (_type, option) => {
|
|
96
|
-
window.setTimeout(() => {
|
|
96
|
+
this.window.setTimeout(() => {
|
|
97
97
|
setSelected([option]);
|
|
98
98
|
}, 2000);
|
|
99
99
|
};
|
|
@@ -19,7 +19,7 @@ const DefaultOption = (props: OptionTypeProps) => {
|
|
|
19
19
|
>
|
|
20
20
|
{/* eslint-enable */}
|
|
21
21
|
<div className={'Option-label'}>
|
|
22
|
-
<Text className={textClassName} appearance={appearance}>
|
|
22
|
+
<Text className={textClassName} appearance={appearance} id={optionData.optionID}>
|
|
23
23
|
{label}
|
|
24
24
|
</Text>
|
|
25
25
|
</div>
|
|
@@ -51,3 +51,9 @@ export const getSelectAll = (selected: Option[], optionsLength: number, disabled
|
|
|
51
51
|
}
|
|
52
52
|
return { indeterminate: false, checked: false };
|
|
53
53
|
};
|
|
54
|
+
|
|
55
|
+
export const scrollToOptionIndex = (scrollIndex: number, listOptions: any) => {
|
|
56
|
+
const optionID = listOptions && listOptions[scrollIndex]?.optionID;
|
|
57
|
+
const targetOption = document.getElementById(optionID);
|
|
58
|
+
targetOption && targetOption.scrollIntoView && targetOption.scrollIntoView({ block: 'center' });
|
|
59
|
+
};
|
|
@@ -4,12 +4,7 @@ import { Icon } from '@/index';
|
|
|
4
4
|
export const image = () => {
|
|
5
5
|
return (
|
|
6
6
|
<Icon size={50}>
|
|
7
|
-
<img
|
|
8
|
-
alt="Innovaccer logo"
|
|
9
|
-
src="https://innovaccer.com/static/image/site-logo/innovaccer-logo-black.svg"
|
|
10
|
-
width="150"
|
|
11
|
-
height="150"
|
|
12
|
-
/>
|
|
7
|
+
<img alt="Innovaccer logo" src="https://design.innovaccer.com/images/withoutType.png" width="50" height="50" />
|
|
13
8
|
</Icon>
|
|
14
9
|
);
|
|
15
10
|
};
|
|
@@ -16,15 +16,15 @@ export const size = () => {
|
|
|
16
16
|
return (
|
|
17
17
|
<div key={ind} className="mr-9 mb-8 w-25">
|
|
18
18
|
<Text weight="strong">{InputSize.charAt(0).toUpperCase() + InputSize.slice(1)}</Text>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
<Input
|
|
20
|
+
name="input"
|
|
21
|
+
value={value}
|
|
22
|
+
onChange={action('on-change')}
|
|
23
|
+
onClick={action('on-click')}
|
|
24
|
+
onClear={action('on-clear')}
|
|
25
|
+
placeholder={placeholder}
|
|
26
|
+
size={InputSize}
|
|
27
|
+
/>
|
|
28
28
|
</div>
|
|
29
29
|
);
|
|
30
30
|
})}
|
|
@@ -6,20 +6,20 @@ export const controlledInput = () => {
|
|
|
6
6
|
const [value, setValue] = React.useState('Value');
|
|
7
7
|
const handleParentChange = (event) => {
|
|
8
8
|
const updatedValue = event.target.value;
|
|
9
|
-
window.setTimeout(() => {
|
|
9
|
+
this.window.setTimeout(() => {
|
|
10
10
|
setValue(updatedValue);
|
|
11
11
|
}, 1000);
|
|
12
12
|
};
|
|
13
13
|
const [value1, setValue1] = React.useState('Value');
|
|
14
14
|
const onChangeHandler = (event) => {
|
|
15
15
|
const updatedValue = event.target.value;
|
|
16
|
-
window.setTimeout(() => {
|
|
16
|
+
this.window.setTimeout(() => {
|
|
17
17
|
setValue1(updatedValue);
|
|
18
18
|
}, 1000);
|
|
19
19
|
};
|
|
20
20
|
const onClearHandler = () => {
|
|
21
21
|
const updatedValue = '';
|
|
22
|
-
window.setTimeout(() => {
|
|
22
|
+
this.window.setTimeout(() => {
|
|
23
23
|
setValue1(updatedValue);
|
|
24
24
|
}, 1000);
|
|
25
25
|
};
|
|
@@ -6,7 +6,7 @@ export const controlledSlider = () => {
|
|
|
6
6
|
const [value, setValue] = React.useState([2, 4]);
|
|
7
7
|
|
|
8
8
|
const onChange = (newValue) => {
|
|
9
|
-
window.setTimeout(() => {
|
|
9
|
+
this.window.setTimeout(() => {
|
|
10
10
|
setValue(newValue);
|
|
11
11
|
}, 1000);
|
|
12
12
|
};
|
|
@@ -29,7 +29,7 @@ const customCode = `() => {
|
|
|
29
29
|
const [value, setValue] = React.useState([2, 4]);
|
|
30
30
|
|
|
31
31
|
const onChange = (value) => {
|
|
32
|
-
window.setTimeout(() => {
|
|
32
|
+
this.window.setTimeout(() => {
|
|
33
33
|
setValue(value);
|
|
34
34
|
}, 1000);
|
|
35
35
|
};
|
|
@@ -6,7 +6,7 @@ export const controlledSlider = () => {
|
|
|
6
6
|
const [value, setValue] = React.useState(4);
|
|
7
7
|
|
|
8
8
|
const onChange = (newValue) => {
|
|
9
|
-
window.setTimeout(() => {
|
|
9
|
+
this.window.setTimeout(() => {
|
|
10
10
|
setValue(newValue);
|
|
11
11
|
}, 1000);
|
|
12
12
|
};
|
|
@@ -29,7 +29,7 @@ const customCode = `() => {
|
|
|
29
29
|
const [value, setValue] = React.useState(4);
|
|
30
30
|
|
|
31
31
|
const onChange = (value) => {
|
|
32
|
-
window.setTimeout(() => {
|
|
32
|
+
this.window.setTimeout(() => {
|
|
33
33
|
setValue(value);
|
|
34
34
|
}, 1000);
|
|
35
35
|
};
|
|
@@ -12,6 +12,9 @@ export const COMMON_MIME_TYPES = new Map([
|
|
|
12
12
|
['zip', 'application/zip'],
|
|
13
13
|
['doc', 'application/msword'],
|
|
14
14
|
['docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'],
|
|
15
|
+
['csv', 'text/csv'],
|
|
16
|
+
['xlss', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'],
|
|
17
|
+
['xls', 'application/vnd.ms-excel'],
|
|
15
18
|
]);
|
|
16
19
|
|
|
17
20
|
const FILES_TO_IGNORE = ['.DS_Store', 'Thumbs.db'];
|
|
@@ -24,7 +24,7 @@ export const all = () => {
|
|
|
24
24
|
const fetchOptions = (searchTerm) => {
|
|
25
25
|
const searchedOptions = searchTerm ? getSearchedOptions(dropdownOptions, searchTerm) : dropdownOptions;
|
|
26
26
|
return new Promise((resolve) => {
|
|
27
|
-
window.setTimeout(() => {
|
|
27
|
+
this.window.setTimeout(() => {
|
|
28
28
|
resolve({
|
|
29
29
|
options: searchedOptions,
|
|
30
30
|
count: searchedOptions.length,
|
|
@@ -72,7 +72,7 @@ const customCode = `() => {
|
|
|
72
72
|
const fetchOptions = (searchTerm) => {
|
|
73
73
|
const searchedOptions = searchTerm ? getSearchedOptions(dropdownOptions, searchTerm) : dropdownOptions;
|
|
74
74
|
return new Promise(resolve => {
|
|
75
|
-
window.setTimeout(() => {
|
|
75
|
+
this.window.setTimeout(() => {
|
|
76
76
|
resolve({
|
|
77
77
|
options: searchedOptions,
|
|
78
78
|
count: searchedOptions.length,
|