@innovaccer/design-system 2.7.0 → 2.9.0-0
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/.github/workflows/chromatic.yml +3 -1
- package/.github/workflows/docs_pull_request.yml +20 -0
- package/.github/workflows/main.yml +1 -1
- package/.github/workflows/manual.yml +1 -1
- package/.github/workflows/pull_request.yml +1 -1
- package/.github/workflows/test.yml +1 -1
- package/CHANGELOG.md +68 -0
- package/README.md +6 -0
- package/core/components/atoms/_chip/__tests__/__snapshots__/_chip.test.tsx.snap +8 -8
- package/core/components/atoms/_chip/index.tsx +1 -1
- package/core/components/atoms/avatar/__tests__/__snapshots__/Avatar.test.tsx.snap +20 -0
- package/core/components/atoms/avatarGroup/AvatarCount.tsx +29 -0
- package/core/components/atoms/avatarGroup/AvatarGroup.tsx +16 -62
- package/core/components/atoms/avatarGroup/AvatarPopperBody.tsx +37 -0
- package/core/components/atoms/avatarGroup/Avatars.tsx +23 -0
- package/core/components/atoms/avatarGroup/__stories__/index.story.tsx +41 -0
- package/core/components/atoms/avatarGroup/__tests__/AvatarGroup.test.tsx +1 -1
- package/core/components/atoms/avatarGroup/__tests__/__snapshots__/AvatarGroup.test.tsx.snap +8 -4
- package/core/components/atoms/button/Button.tsx +1 -2
- package/core/components/atoms/checkbox/__stories__/Group.story.tsx +1 -1
- package/core/components/atoms/checkbox/__stories__/Nested.story.tsx +2 -0
- package/core/components/atoms/chip/__tests__/__snapshots__/Chip.test.tsx.snap +11 -11
- package/core/components/atoms/chipGroup/__tests__/__snapshots__/chipGroup.test.tsx.snap +4 -4
- package/core/components/atoms/dropdown/DropdownButton.tsx +1 -1
- package/core/components/atoms/dropdown/DropdownList.tsx +56 -29
- package/core/components/atoms/dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +29 -2
- package/core/components/atoms/popperWrapper/PopperWrapper.tsx +104 -12
- package/core/components/atoms/toast/__stories__/WithDescription.story.tsx +3 -1
- package/core/components/css-utilities/designTokens/Data.tsx +18 -0
- package/core/components/css-utilities/designTokens/Transitions.story.tsx +37 -0
- package/core/components/molecules/chipInput/__tests__/__snapshots__/ChipInput.test.tsx.snap +4 -4
- package/core/components/molecules/dialog/__tests__/__snapshots__/Dialog.test.tsx.snap +260 -195
- package/core/components/molecules/editableChipInput/__tests__/__snapshots__/EditableChipInput.test.tsx.snap +4 -4
- package/core/components/molecules/editableDropdown/__tests__/__snapshots__/EditableDropdown.test.tsx.snap +1 -0
- package/core/components/molecules/fullscreenModal/FullscreenModal.tsx +13 -12
- package/core/components/molecules/fullscreenModal/__tests__/Fullscreen.test.tsx +2 -5
- package/core/components/molecules/fullscreenModal/__tests__/__snapshots__/Fullscreen.test.tsx.snap +126 -96
- package/core/components/molecules/modal/Modal.tsx +11 -9
- package/core/components/molecules/modal/__tests__/__snapshots__/Modal.test.tsx.snap +240 -180
- package/core/components/molecules/popover/Popover.tsx +9 -0
- package/core/components/molecules/popover/__tests__/__snapshots__/Popover.test.tsx.snap +16 -8
- package/core/components/molecules/sidesheet/Sidesheet.tsx +23 -22
- package/core/components/molecules/sidesheet/__tests__/__snapshots__/Sidesheet.test.tsx.snap +40 -30
- package/core/components/molecules/tooltip/Tooltip.tsx +20 -1
- package/core/components/molecules/tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap +8 -0
- package/core/components/organisms/calendar/__tests__/__snapshots__/Calendar.test.tsx.snap +8 -8
- package/core/components/organisms/datePicker/__tests__/__snapshots__/DatePicker.test.tsx.snap +14 -13
- package/core/components/organisms/dateRangePicker/__tests__/__snapshots__/DateRangePicker.test.tsx.snap +42 -30
- package/core/components/organisms/grid/GridBody.tsx +1 -2
- package/core/components/organisms/table/Table.tsx +0 -1
- package/core/components/organisms/table/__stories__/NestedTableWithNestedCard.story.tsx +2 -2
- package/core/components/organisms/table/__tests__/__snapshots__/Table.test.tsx.snap +1544 -0
- package/core/components/organisms/verticalNav/MenuItem.tsx +6 -2
- package/core/components/organisms/verticalNav/VerticalNav.tsx +8 -2
- package/core/components/organisms/verticalNav/__stories__/CustomItemsRenderer.story.tsx +238 -0
- package/core/utils/__tests__/__snapshots__/TS.test.tsx.snap +168 -3
- package/css/dist/index.css +300 -62
- package/css/dist/index.css.map +1 -1
- package/css/src/components/ProgressBar.css +1 -1
- package/css/src/components/avatarGroup.css +0 -9
- package/css/src/components/button.css +4 -4
- package/css/src/components/chip.css +4 -0
- package/css/src/components/dropdown.css +5 -9
- package/css/src/components/dropdownButton.css +2 -0
- package/css/src/components/fullscreenModal.css +0 -5
- package/css/src/components/grid.css +0 -11
- package/css/src/components/overlay.css +0 -11
- package/css/src/components/popover.css +12 -0
- package/css/src/components/slider.css +1 -0
- package/css/src/components/tabs.css +1 -1
- package/css/src/components/textarea.css +0 -11
- package/css/src/components/tooltip.css +115 -0
- package/css/src/components/verticalNav.css +2 -0
- package/css/src/core/animation.css +8 -0
- package/css/src/core/utilities.css +11 -0
- package/css/src/utils/utility.css +4 -0
- package/css/src/variables/index.css +19 -0
- package/dist/core/components/atoms/avatarGroup/AvatarCount.d.ts +2 -0
- package/dist/core/components/atoms/avatarGroup/AvatarGroup.d.ts +2 -2
- package/dist/core/components/atoms/avatarGroup/AvatarPopperBody.d.ts +2 -0
- package/dist/core/components/atoms/avatarGroup/Avatars.d.ts +2 -0
- package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +61 -54
- package/dist/core/components/css-utilities/designTokens/Data.d.ts +8 -0
- package/dist/core/components/css-utilities/designTokens/Transitions.story.d.ts +12 -0
- package/dist/core/components/molecules/popover/Popover.d.ts +4 -0
- package/dist/core/components/molecules/sidesheet/Sidesheet.d.ts +1 -0
- package/dist/core/components/organisms/verticalNav/MenuItem.d.ts +1 -0
- package/dist/core/components/organisms/verticalNav/VerticalNav.d.ts +2 -0
- package/dist/index.esm.js +278 -142
- package/dist/index.js +282 -149
- 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 +1 -0
- package/docs/.unotes/templates/title_date.hbs +4 -0
- package/docs/.unotes/unotes_meta.json +302 -0
- package/docs/LICENSE +21 -0
- package/docs/README.md +31 -0
- package/docs/gatsby-browser.js +6 -0
- package/docs/gatsby-config.js +171 -0
- package/docs/gatsby-node.js +75 -0
- package/docs/index.js +1 -0
- package/docs/package.json +54 -0
- package/docs/src/components/Colors/Colors.css +19 -0
- package/docs/src/components/Colors/Colors.js +82 -0
- package/docs/src/components/Container/ComponentsContainer.js +75 -0
- package/docs/src/components/Container/Container.js +114 -0
- package/docs/src/components/Container/index.js +3 -0
- package/docs/src/components/Footer/Footer.css +7 -0
- package/docs/src/components/Footer/Footer.js +40 -0
- package/docs/src/components/Header/Header.css +32 -0
- package/docs/src/components/Header/Header.js +60 -0
- package/docs/src/components/Header/index.js +3 -0
- package/docs/src/components/LastModifiedDate/LastModifiedDate.js +24 -0
- package/docs/src/components/LastModifiedDate/index.js +3 -0
- package/docs/src/components/Layout.js +291 -0
- package/docs/src/components/LeftNav/LeftNav.js +101 -0
- package/docs/src/components/LeftNav/index.js +3 -0
- package/docs/src/components/Logos/Logos.css +29 -0
- package/docs/src/components/Logos/Logos.js +64 -0
- package/docs/src/components/Meta.js +101 -0
- package/docs/src/components/PropsTable/ArgJsDoc.tsx +102 -0
- package/docs/src/components/PropsTable/ArgRow.tsx +142 -0
- package/docs/src/components/PropsTable/ArgValue.tsx +182 -0
- package/docs/src/components/PropsTable/EmptyBlock.tsx +22 -0
- package/docs/src/components/PropsTable/SectionRow.tsx +126 -0
- package/docs/src/components/PropsTable/Shared.tsx +53 -0
- package/docs/src/components/PropsTable/Table.tsx +463 -0
- package/docs/src/components/PropsTable/card.css +7 -0
- package/docs/src/components/PropsTable/generateImports.tsx +20 -0
- package/docs/src/components/PropsTable/index.js +248 -0
- package/docs/src/components/PropsTable/prism.css +146 -0
- package/docs/src/components/PropsTable/sandbox.tsx +81 -0
- package/docs/src/components/PropsTable/theme.js +53 -0
- package/docs/src/components/PropsTable/types.tsx +44 -0
- package/docs/src/components/Rules/DONTs.js +13 -0
- package/docs/src/components/Rules/DOs.js +13 -0
- package/docs/src/components/Rules/IconWrapper.js +18 -0
- package/docs/src/components/Rules/InlineMessage.js +11 -0
- package/docs/src/components/Rules/Rules.css +17 -0
- package/docs/src/components/Rules/Rules.js +39 -0
- package/docs/src/components/TableOfContent/TableOfContent.css +37 -0
- package/docs/src/components/TableOfContent/TableOfContent.js +126 -0
- package/docs/src/components/css/global.css +15 -0
- package/docs/src/components/css/prism.css +38 -0
- package/docs/src/components/css/style.css +97 -0
- package/docs/src/components/templates/Default.js +24 -0
- package/docs/src/components/templates/Homepage.js +13 -0
- package/docs/src/data/components/images/Avatars.png +0 -0
- package/docs/src/data/components/images/Datepicker.png +0 -0
- package/docs/src/data/components/images/EditableChipInput.png +0 -0
- package/docs/src/data/components/images/Modal.png +0 -0
- package/docs/src/data/components/images/Sidesheet.png +0 -0
- package/docs/src/data/components/images/Table.png +0 -0
- package/docs/src/data/components/index.js +285 -0
- package/docs/src/data/footer-items.yaml +16 -0
- package/docs/src/data/header-items.yaml +20 -0
- package/docs/src/data/home-menu.yaml +23 -0
- package/docs/src/data/home-resources.yaml +14 -0
- package/docs/src/data/nav/components.yaml +45 -0
- package/docs/src/data/nav/content.yaml +25 -0
- package/docs/src/data/nav/default.yaml +11 -0
- package/docs/src/data/nav/foundations.yaml +22 -0
- package/docs/src/data/nav/guide-items.yaml +6 -0
- package/docs/src/data/nav/introduction.yaml +11 -0
- package/docs/src/data/storybook.json +345189 -0
- package/docs/src/pages/404.js +31 -0
- package/docs/src/pages/components/avatar/code.mdx +14 -0
- package/docs/src/pages/components/avatar/images/avatar-1.png +0 -0
- package/docs/src/pages/components/avatar/images/avatar-2.png +0 -0
- package/docs/src/pages/components/avatar/images/avatar-3.png +0 -0
- package/docs/src/pages/components/avatar/images/avatar-4.png +0 -0
- package/docs/src/pages/components/avatar/images/avatar-5.png +0 -0
- package/docs/src/pages/components/avatar/usage.mdx +53 -0
- package/docs/src/pages/components/badges/code.mdx +15 -0
- package/docs/src/pages/components/badges/images/badges-1.png +0 -0
- package/docs/src/pages/components/badges/images/badges-2.png +0 -0
- package/docs/src/pages/components/badges/usage.mdx +43 -0
- package/docs/src/pages/components/breadcrumbs/code.mdx +15 -0
- package/docs/src/pages/components/breadcrumbs/usage.mdx +30 -0
- package/docs/src/pages/components/button/code.mdx +18 -0
- package/docs/src/pages/components/button/content.mdx +652 -0
- package/docs/src/pages/components/button/images/buttons-1.png +0 -0
- package/docs/src/pages/components/button/images/buttons-2.png +0 -0
- package/docs/src/pages/components/button/usage.mdx +100 -0
- package/docs/src/pages/components/calendar/code.mdx +15 -0
- package/docs/src/pages/components/calendar/usage.mdx +9 -0
- package/docs/src/pages/components/card/code.mdx +15 -0
- package/docs/src/pages/components/card/usage.mdx +54 -0
- package/docs/src/pages/components/checkbox/code.mdx +16 -0
- package/docs/src/pages/components/checkbox/usage.mdx +49 -0
- package/docs/src/pages/components/chips/code.mdx +15 -0
- package/docs/src/pages/components/chips/usage.mdx +34 -0
- package/docs/src/pages/components/datePicker/code.mdx +7 -0
- package/docs/src/pages/components/datePicker/images/datePicker-1.png +0 -0
- package/docs/src/pages/components/datePicker/images/datePicker-2.png +0 -0
- package/docs/src/pages/components/datePicker/images/datePicker-3.png +0 -0
- package/docs/src/pages/components/datePicker/images/datePicker-4.png +0 -0
- package/docs/src/pages/components/datePicker/images/datePicker-5.png +0 -0
- package/docs/src/pages/components/datePicker/usage.mdx +58 -0
- package/docs/src/pages/components/index.mdx +7 -0
- package/docs/src/pages/components/message/code.mdx +16 -0
- package/docs/src/pages/components/message/usage.mdx +26 -0
- package/docs/src/pages/components/overview/index.mdx +6 -0
- package/docs/src/pages/components/overview/tabs/Overview.js +72 -0
- package/docs/src/pages/components/overview/tabs/all-components.mdx +10 -0
- package/docs/src/pages/components/overview/tabs/overview.css +30 -0
- package/docs/src/pages/components/overview/tabs/status.mdx +22 -0
- package/docs/src/pages/components/radio/code.mdx +17 -0
- package/docs/src/pages/components/radio/usage.mdx +126 -0
- package/docs/src/pages/components/sidesheet/code.mdx +8 -0
- package/docs/src/pages/components/sidesheet/interactions.mdx +8 -0
- package/docs/src/pages/components/sidesheet/usage.mdx +25 -0
- package/docs/src/pages/components/slider/code.mdx +15 -0
- package/docs/src/pages/components/slider/usage.mdx +49 -0
- package/docs/src/pages/components/statushint/code.mdx +15 -0
- package/docs/src/pages/components/statushint/usage.mdx +19 -0
- package/docs/src/pages/components/steppers/code.mdx +16 -0
- package/docs/src/pages/components/steppers/images/stepper-1.gif +0 -0
- package/docs/src/pages/components/steppers/images/stepper-2.png +0 -0
- package/docs/src/pages/components/steppers/images/stepper-3.png +0 -0
- package/docs/src/pages/components/steppers/images/stepper-4.png +0 -0
- package/docs/src/pages/components/steppers/images/stepper-5.png +0 -0
- package/docs/src/pages/components/steppers/images/stepper-6.png +0 -0
- package/docs/src/pages/components/steppers/interactions.mdx +28 -0
- package/docs/src/pages/components/steppers/usage.mdx +201 -0
- package/docs/src/pages/components/switch/code.mdx +16 -0
- package/docs/src/pages/components/switch/images/switch-1.gif +0 -0
- package/docs/src/pages/components/switch/images/switch-2.gif +0 -0
- package/docs/src/pages/components/switch/images/switch-3.png +0 -0
- package/docs/src/pages/components/switch/interactions.mdx +392 -0
- package/docs/src/pages/components/switch/usage.mdx +114 -0
- package/docs/src/pages/components/table/code.mdx +14 -0
- package/docs/src/pages/components/table/images/table-1.png +0 -0
- package/docs/src/pages/components/table/images/table-10.png +0 -0
- package/docs/src/pages/components/table/images/table-11.gif +0 -0
- package/docs/src/pages/components/table/images/table-12.png +0 -0
- package/docs/src/pages/components/table/images/table-13.png +0 -0
- package/docs/src/pages/components/table/images/table-14.png +0 -0
- package/docs/src/pages/components/table/images/table-15.png +0 -0
- package/docs/src/pages/components/table/images/table-16.png +0 -0
- package/docs/src/pages/components/table/images/table-17.png +0 -0
- package/docs/src/pages/components/table/images/table-18.png +0 -0
- package/docs/src/pages/components/table/images/table-19.png +0 -0
- package/docs/src/pages/components/table/images/table-2.png +0 -0
- package/docs/src/pages/components/table/images/table-20.png +0 -0
- package/docs/src/pages/components/table/images/table-21.png +0 -0
- package/docs/src/pages/components/table/images/table-22.png +0 -0
- package/docs/src/pages/components/table/images/table-23.png +0 -0
- package/docs/src/pages/components/table/images/table-24.png +0 -0
- package/docs/src/pages/components/table/images/table-25.png +0 -0
- package/docs/src/pages/components/table/images/table-26.png +0 -0
- package/docs/src/pages/components/table/images/table-27.png +0 -0
- package/docs/src/pages/components/table/images/table-28.png +0 -0
- package/docs/src/pages/components/table/images/table-29.png +0 -0
- package/docs/src/pages/components/table/images/table-3.png +0 -0
- package/docs/src/pages/components/table/images/table-30.png +0 -0
- package/docs/src/pages/components/table/images/table-4.png +0 -0
- package/docs/src/pages/components/table/images/table-5.png +0 -0
- package/docs/src/pages/components/table/images/table-6.png +0 -0
- package/docs/src/pages/components/table/images/table-7.png +0 -0
- package/docs/src/pages/components/table/images/table-8.png +0 -0
- package/docs/src/pages/components/table/images/table-9.png +0 -0
- package/docs/src/pages/components/table/interactions.mdx +97 -0
- package/docs/src/pages/components/table/usage.mdx +364 -0
- package/docs/src/pages/components/tabs/code.mdx +15 -0
- package/docs/src/pages/components/tabs/images/tabs-1.png +0 -0
- package/docs/src/pages/components/tabs/images/tabs-2.png +0 -0
- package/docs/src/pages/components/tabs/images/tabs-3.png +0 -0
- package/docs/src/pages/components/tabs/images/tabs-4.png +0 -0
- package/docs/src/pages/components/tabs/images/tabs-5.png +0 -0
- package/docs/src/pages/components/tabs/images/tabs-6.png +0 -0
- package/docs/src/pages/components/tabs/images/tabs-7.png +0 -0
- package/docs/src/pages/components/tabs/interactions.mdx +487 -0
- package/docs/src/pages/components/tabs/usage.mdx +164 -0
- package/docs/src/pages/components/toast/code.mdx +15 -0
- package/docs/src/pages/components/toast/images/toast-1.png +0 -0
- package/docs/src/pages/components/toast/images/toast-2.gif +0 -0
- package/docs/src/pages/components/toast/images/toast-3.gif +0 -0
- package/docs/src/pages/components/toast/images/toast-4.png +0 -0
- package/docs/src/pages/components/toast/images/toast-5.gif +0 -0
- package/docs/src/pages/components/toast/images/toast-6.gif +0 -0
- package/docs/src/pages/components/toast/interactions.mdx +218 -0
- package/docs/src/pages/components/toast/usage.mdx +156 -0
- package/docs/src/pages/components/tooltip/code.mdx +16 -0
- package/docs/src/pages/components/tooltip/images/Tooltip-1.png +0 -0
- package/docs/src/pages/components/tooltip/images/tooltip-2.gif +0 -0
- package/docs/src/pages/components/tooltip/images/tooltip-3.gif +0 -0
- package/docs/src/pages/components/tooltip/interactions.mdx +219 -0
- package/docs/src/pages/components/tooltip/usage.mdx +80 -0
- package/docs/src/pages/content/button-guidelines/index.mdx +7 -0
- package/docs/src/pages/content/button-guidelines/tabs/button-glossary.mdx +144 -0
- package/docs/src/pages/content/button-guidelines/tabs/confusing-buttons.mdx +184 -0
- package/docs/src/pages/content/email-guidelines.mdx +107 -0
- package/docs/src/pages/content/empty-states.mdx +8 -0
- package/docs/src/pages/content/error-messages.mdx +165 -0
- package/docs/src/pages/content/house-rules/tabs/basics.mdx +236 -0
- package/docs/src/pages/content/house-rules/tabs/date,-time-&-numbers.mdx +462 -0
- package/docs/src/pages/content/house-rules/tabs/grammer.mdx +744 -0
- package/docs/src/pages/content/house-rules/tabs/punctuations.mdx +666 -0
- package/docs/src/pages/content/placeholder-text.mdx +58 -0
- package/docs/src/pages/content/rules.mdx +136 -0
- package/docs/src/pages/content/voice-and-tone-guidelines/index.mdx +7 -0
- package/docs/src/pages/content/voice-and-tone-guidelines/tabs/usage.mdx +309 -0
- package/docs/src/pages/content/voice-and-tone-guidelines/tabs/voice-and-tone.mdx +38 -0
- package/docs/src/pages/contributions.mdx +16 -0
- package/docs/src/pages/foundations/colors.mdx +149 -0
- package/docs/src/pages/foundations/interactions.mdx +192 -0
- package/docs/src/pages/foundations/layout/images/baseline-grid.png +0 -0
- package/docs/src/pages/foundations/layout/images/grid-column.jpeg +0 -0
- package/docs/src/pages/foundations/layout/images/grid-layout.jpeg +0 -0
- package/docs/src/pages/foundations/layout/images/grid-margin.jpeg +0 -0
- package/docs/src/pages/foundations/layout/images/spacing.png +0 -0
- package/docs/src/pages/foundations/layout/images/typography.png +0 -0
- package/docs/src/pages/foundations/layout/index.mdx +151 -0
- package/docs/src/pages/foundations/logos.mdx +88 -0
- package/docs/src/pages/foundations/principles.mdx +60 -0
- package/docs/src/pages/foundations/response-time.mdx +124 -0
- package/docs/src/pages/foundations/typography.mdx +8 -0
- package/docs/src/pages/getting-started/index.mdx +9 -0
- package/docs/src/pages/guides/MDX.mdx +17 -0
- package/docs/src/pages/home/HomeBanner.png +0 -0
- package/docs/src/pages/home/homepage.css +23 -0
- package/docs/src/pages/index.js +241 -0
- package/docs/src/pages/introduction/get-started/designers.mdx +89 -0
- package/docs/src/pages/introduction/get-started/developers.mdx +128 -0
- package/docs/src/pages/introduction/what's-new.mdx +801 -0
- package/docs/src/pages/mobile/components/avatar/code.mdx +12 -0
- package/docs/src/pages/mobile/components/avatar/usage.mdx +20 -0
- package/docs/src/pages/mobile/components/badges/code.mdx +16 -0
- package/docs/src/pages/mobile/components/badges/usage.mdx +23 -0
- package/docs/src/pages/mobile/components/breadcrumbs/code.mdx +16 -0
- package/docs/src/pages/mobile/components/breadcrumbs/usage.mdx +34 -0
- package/docs/src/pages/mobile/components/button/code.mdx +12 -0
- package/docs/src/pages/mobile/components/button/content.mdx +1 -0
- package/docs/src/pages/mobile/components/button/usage.mdx +55 -0
- package/docs/src/pages/mobile/components/card/code.mdx +16 -0
- package/docs/src/pages/mobile/components/card/usage.mdx +23 -0
- package/docs/src/pages/mobile/components/checkbox/code.mdx +16 -0
- package/docs/src/pages/mobile/components/checkbox/usage.mdx +49 -0
- package/docs/src/pages/mobile/components/index.mdx +7 -0
- package/docs/src/pages/mobile/components/message/code.mdx +16 -0
- package/docs/src/pages/mobile/components/message/usage.mdx +26 -0
- package/docs/src/pages/mobile/components/overview/index.mdx +8 -0
- package/docs/src/pages/mobile/components/overview/tabs/all-components.mdx +8 -0
- package/docs/src/pages/mobile/components/overview/tabs/status.mdx +115 -0
- package/docs/src/pages/mobile/foundations/colors.mdx +149 -0
- package/docs/src/pages/mobile/foundations/interactions.mdx +192 -0
- package/docs/src/pages/mobile/foundations/layout/images/baseline-grid.png +0 -0
- package/docs/src/pages/mobile/foundations/layout/images/grid-column.jpeg +0 -0
- package/docs/src/pages/mobile/foundations/layout/images/grid-layout.jpeg +0 -0
- package/docs/src/pages/mobile/foundations/layout/images/grid-margin.jpeg +0 -0
- package/docs/src/pages/mobile/foundations/layout/images/spacing.png +0 -0
- package/docs/src/pages/mobile/foundations/layout/images/typography.png +0 -0
- package/docs/src/pages/mobile/foundations/layout/index.mdx +151 -0
- package/docs/src/pages/mobile/foundations/logos.mdx +88 -0
- package/docs/src/pages/mobile/foundations/principles.mdx +47 -0
- package/docs/src/pages/mobile/foundations/response-time.mdx +124 -0
- package/docs/src/pages/mobile/foundations/typography.mdx +8 -0
- package/docs/src/pages/patterns/index.mdx +7 -0
- package/docs/src/pages/resources/index.mdx +7 -0
- package/docs/src/util/FooterItems.js +21 -0
- package/docs/src/util/Frontmatter.js +35 -0
- package/docs/src/util/HeaderItems.js +21 -0
- package/docs/src/util/Helpers.js +7 -0
- package/docs/src/util/HomeMenu.js +24 -0
- package/docs/src/util/HomeResources.js +23 -0
- package/docs/src/util/InPageNavItems.js +36 -0
- package/docs/src/util/Logos.js +19 -0
- package/docs/src/util/MdsChangelog.js +55 -0
- package/docs/src/util/MediumBlogs.js +27 -0
- package/docs/src/util/NavItems.js +82 -0
- package/docs/src/util/StorybookData.js +24 -0
- package/docs/src/util/constants.js +7 -0
- package/docs/src/util/context/NavContext.js +54 -0
- package/docs/src/util/hooks/index.js +1 -0
- package/docs/src/util/hooks/useMetadata.js +21 -0
- package/docs/src/util/index.js +4 -0
- package/docs/static/icons/4691539_codesandbox_icon.svg +1 -0
- package/docs/static/icons/card-image.png +0 -0
- package/docs/static/icons/favicon_io/android-chrome-192x192.png +0 -0
- package/docs/static/icons/favicon_io/android-chrome-512x512.png +0 -0
- package/docs/static/icons/favicon_io/apple-touch-icon.png +0 -0
- package/docs/static/icons/favicon_io/favicon-16x16.png +0 -0
- package/docs/static/icons/favicon_io/favicon-32x32.png +0 -0
- package/docs/static/icons/favicon_io/favicon.ico +0 -0
- package/docs/static/images/P360.png +0 -0
- package/docs/static/images/dap.png +0 -0
- package/docs/static/images/default.png +0 -0
- package/docs/static/images/designtoken.png +0 -0
- package/docs/static/images/figma.png +0 -0
- package/docs/static/images/headerLogo.png +0 -0
- package/docs/static/images/inacademy.png +0 -0
- package/docs/static/images/inapi.png +0 -0
- package/docs/static/images/incare.png +0 -0
- package/docs/static/images/inconnect.png +0 -0
- package/docs/static/images/indata.png +0 -0
- package/docs/static/images/ingraph.png +0 -0
- package/docs/static/images/innote.png +0 -0
- package/docs/static/images/inoffice.png +0 -0
- package/docs/static/images/inreport.png +0 -0
- package/docs/static/images/storybook.png +0 -0
- package/docs/static/images/withoutType.png +0 -0
- package/docs/tools/build.sh +6 -0
- package/docs/tools/changelog.sh +1 -0
- package/docs/tools/changeloghead.md +14 -0
- package/docs/tools/develop.sh +5 -0
- package/docs/tools/extract.js +52 -0
- package/docs/tools/update-mds.sh +3 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/tsconfig.type.json +2 -1
- package/docs/AppTutorial.md +0 -474
- package/docs/images/BasicLayout.png +0 -0
- package/docs/images/Breadcrumb.png +0 -0
- package/docs/images/Covid-App.png +0 -0
- package/docs/images/DrilledLayout.png +0 -0
- package/docs/images/DrilledPage.png +0 -0
- package/docs/images/Footer.png +0 -0
- package/docs/images/Graph1.png +0 -0
- package/docs/images/Graph2.png +0 -0
- package/docs/images/Header.png +0 -0
- package/docs/images/Map.png +0 -0
- package/docs/images/StaticComponent.png +0 -0
- package/docs/images/Summary.png +0 -0
- package/docs/images/Table.png +0 -0
|
@@ -86,10 +86,22 @@ export interface PopperWrapperProps {
|
|
|
86
86
|
* type: 'onMouseLeave' | 'onMouseEnter' | 'outsideClick' | 'onClick';
|
|
87
87
|
*/
|
|
88
88
|
onToggle: (open: boolean, type?: string) => void;
|
|
89
|
+
/*
|
|
90
|
+
* animationClass is for providing custom animations for open/close of the popover
|
|
91
|
+
* animationClass.open - takes animation class when popover is open
|
|
92
|
+
* animationClass.close - takes animation class when popover is close
|
|
93
|
+
*/
|
|
94
|
+
animationClass?: {
|
|
95
|
+
open: string;
|
|
96
|
+
close: string;
|
|
97
|
+
};
|
|
89
98
|
}
|
|
90
99
|
|
|
91
100
|
interface PopperWrapperState {
|
|
92
101
|
zIndex?: number;
|
|
102
|
+
animationKeyframe: string;
|
|
103
|
+
isOpen: boolean;
|
|
104
|
+
uniqueKey: string;
|
|
93
105
|
}
|
|
94
106
|
|
|
95
107
|
export class PopperWrapper extends React.Component<PopperWrapperProps, PopperWrapperState> {
|
|
@@ -112,7 +124,7 @@ export class PopperWrapper extends React.Component<PopperWrapperProps, PopperWra
|
|
|
112
124
|
constructor(props: PopperWrapperProps) {
|
|
113
125
|
super(props);
|
|
114
126
|
|
|
115
|
-
this.state = {};
|
|
127
|
+
this.state = { animationKeyframe: '', isOpen: this.props.open || false, uniqueKey: '' };
|
|
116
128
|
|
|
117
129
|
this.hoverableDelay = 100;
|
|
118
130
|
this.offsetMapping = {
|
|
@@ -120,6 +132,7 @@ export class PopperWrapper extends React.Component<PopperWrapperProps, PopperWra
|
|
|
120
132
|
medium: '4px',
|
|
121
133
|
large: '8px',
|
|
122
134
|
};
|
|
135
|
+
|
|
123
136
|
this.triggerRef = React.createRef();
|
|
124
137
|
this.popupRef = React.createRef();
|
|
125
138
|
|
|
@@ -141,12 +154,16 @@ export class PopperWrapper extends React.Component<PopperWrapperProps, PopperWra
|
|
|
141
154
|
}
|
|
142
155
|
if (prevProps.open !== this.props.open) {
|
|
143
156
|
this._throttleWait = false;
|
|
157
|
+
this.setState({
|
|
158
|
+
animationKeyframe: '',
|
|
159
|
+
});
|
|
144
160
|
if (this.props.open) {
|
|
145
161
|
const triggerElement = this.triggerRef.current;
|
|
146
162
|
const zIndex = this.getZIndexForLayer(triggerElement);
|
|
147
163
|
|
|
148
164
|
this.setState({
|
|
149
165
|
zIndex: zIndex === undefined ? zIndex : zIndex + 1,
|
|
166
|
+
isOpen: true,
|
|
150
167
|
});
|
|
151
168
|
}
|
|
152
169
|
}
|
|
@@ -292,31 +309,106 @@ export class PopperWrapper extends React.Component<PopperWrapperProps, PopperWra
|
|
|
292
309
|
}
|
|
293
310
|
|
|
294
311
|
getPopperChildren({ ref, style, placement, outOfBoundaries }: PopperChildrenProps) {
|
|
295
|
-
const { offset, children } = this.props;
|
|
296
|
-
const { zIndex } = this.state;
|
|
312
|
+
const { offset, children, open, animationClass } = this.props;
|
|
313
|
+
const { zIndex, animationKeyframe, uniqueKey } = this.state;
|
|
297
314
|
const newStyle = offset ? this.getUpdatedStyle(style, placement, offset) : style;
|
|
315
|
+
let childrenStyles = {
|
|
316
|
+
...newStyle,
|
|
317
|
+
zIndex,
|
|
318
|
+
};
|
|
319
|
+
let classes = '';
|
|
320
|
+
|
|
321
|
+
if (!animationClass) {
|
|
322
|
+
const maxHeight = this.popupRef.current?.offsetHeight;
|
|
323
|
+
// we need to check for transformStyles so that we open the popover at correct position (left/right)
|
|
324
|
+
const transformStyles = this.popupRef.current?.style.getPropertyValue('transform');
|
|
325
|
+
if (transformStyles && maxHeight && placement && !animationKeyframe) {
|
|
326
|
+
const uniqueKey = Math.random().toString(36).substring(2, 6);
|
|
327
|
+
const isTop = placement.includes('top');
|
|
328
|
+
|
|
329
|
+
const popperAnimation = `
|
|
330
|
+
@keyframes popper-open-${uniqueKey} {
|
|
331
|
+
from {
|
|
332
|
+
max-height: 0;
|
|
333
|
+
${isTop ? `margin-top: ${maxHeight}px` : ''};
|
|
334
|
+
}
|
|
335
|
+
to {
|
|
336
|
+
max-height: ${maxHeight}px;
|
|
337
|
+
${isTop ? `margin-top: 0px` : ''};
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
@keyframes popper-close-${uniqueKey} {
|
|
341
|
+
from {
|
|
342
|
+
max-height: ${maxHeight}px;
|
|
343
|
+
${isTop ? `margin-top: 0px` : ''};
|
|
344
|
+
}
|
|
345
|
+
to {
|
|
346
|
+
max-height: 0;
|
|
347
|
+
${isTop ? `margin-top: ${maxHeight}px` : ''};
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
`;
|
|
351
|
+
|
|
352
|
+
this.setState({
|
|
353
|
+
animationKeyframe: popperAnimation,
|
|
354
|
+
uniqueKey,
|
|
355
|
+
});
|
|
356
|
+
}
|
|
298
357
|
|
|
299
|
-
|
|
358
|
+
// defining popper-fade-in custom keyframe as it is specific to popover usecase.
|
|
359
|
+
const popperAnimationStyles = {
|
|
360
|
+
animation: open
|
|
361
|
+
? `popper-open-${uniqueKey} 120ms cubic-bezier(0, 0, 0.38, 0.9), popper-fade-in 120ms`
|
|
362
|
+
: `popper-close-${uniqueKey} 120ms cubic-bezier(0.2, 0, 1, 0.9) 120ms, fadeOut 120ms 120ms`,
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
childrenStyles = {
|
|
366
|
+
...childrenStyles,
|
|
367
|
+
...popperAnimationStyles,
|
|
368
|
+
overflow: 'hidden',
|
|
369
|
+
};
|
|
370
|
+
} else {
|
|
371
|
+
classes = classNames(
|
|
372
|
+
{
|
|
373
|
+
[`${animationClass.open}`]: open,
|
|
374
|
+
[`${animationClass.close}`]: !open,
|
|
375
|
+
},
|
|
376
|
+
children.props.className
|
|
377
|
+
);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
const childProps = {
|
|
300
381
|
ref,
|
|
301
|
-
style:
|
|
302
|
-
...newStyle,
|
|
303
|
-
zIndex,
|
|
304
|
-
},
|
|
382
|
+
style: childrenStyles,
|
|
305
383
|
'data-placement': placement,
|
|
306
384
|
'data-hide': outOfBoundaries,
|
|
307
385
|
onMouseEnter: this.handleMouseEnter,
|
|
308
386
|
onMouseLeave: this.handleMouseLeave,
|
|
309
|
-
|
|
387
|
+
onAnimationEnd: () => {
|
|
388
|
+
if (!open) {
|
|
389
|
+
this.setState({
|
|
390
|
+
isOpen: false,
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
const element = React.cloneElement(
|
|
397
|
+
children,
|
|
398
|
+
animationClass ? { ...childProps, className: classes } : { ...childProps }
|
|
399
|
+
);
|
|
310
400
|
return element;
|
|
311
401
|
}
|
|
312
402
|
|
|
313
403
|
render() {
|
|
314
|
-
const { placement, appendToBody,
|
|
404
|
+
const { placement, appendToBody, hide, boundaryElement } = this.props;
|
|
405
|
+
const { animationKeyframe, isOpen } = this.state;
|
|
315
406
|
|
|
316
407
|
return (
|
|
317
408
|
<Manager>
|
|
409
|
+
<style>{animationKeyframe}</style>
|
|
318
410
|
<Reference innerRef={this.triggerRef}>{({ ref }) => this.getTriggerElement(ref)}</Reference>
|
|
319
|
-
{
|
|
411
|
+
{isOpen &&
|
|
320
412
|
appendToBody &&
|
|
321
413
|
ReactDOM.createPortal(
|
|
322
414
|
<Popper
|
|
@@ -331,7 +423,7 @@ export class PopperWrapper extends React.Component<PopperWrapperProps, PopperWra
|
|
|
331
423
|
</Popper>,
|
|
332
424
|
document.body
|
|
333
425
|
)}
|
|
334
|
-
{
|
|
426
|
+
{isOpen && !appendToBody && (
|
|
335
427
|
<Popper placement={placement} innerRef={this.popupRef}>
|
|
336
428
|
{this.getPopperChildren}
|
|
337
429
|
</Popper>
|
|
@@ -2,7 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import { Toast } from '@/index';
|
|
3
3
|
|
|
4
4
|
// CSF format story
|
|
5
|
-
export const toastWithDescription = () =>
|
|
5
|
+
export const toastWithDescription = () => (
|
|
6
|
+
<Toast appearance="success" title="Message sent successfully" message="Description goes here" />
|
|
7
|
+
);
|
|
6
8
|
|
|
7
9
|
export default {
|
|
8
10
|
title: 'Components/Toast/Toast With Description',
|
|
@@ -161,3 +161,21 @@ export const gridBreakpointData = [
|
|
|
161
161
|
{ token: '--grid-l-breakpoint', value: '992px' },
|
|
162
162
|
{ token: '--grid-xl-breakpoint', value: '1200px' },
|
|
163
163
|
];
|
|
164
|
+
|
|
165
|
+
export const transitionsCurveData = [
|
|
166
|
+
{ token: '--standard-productive-curve', value: 'cubic-bezier(0.2, 0, 0.38, 0.9)' },
|
|
167
|
+
{ token: '--standard-expressive-curve', value: 'cubic-bezier(0.4, 0.14, 0.3, 1)' },
|
|
168
|
+
{ token: '--entrance-productive-curve', value: 'cubic-bezier(0, 0, 0.38, 0.9)' },
|
|
169
|
+
{ token: '--entrance-expressive-curve', value: 'cubic-bezier(0, 0, 0.3, 1)' },
|
|
170
|
+
{ token: '--exit-productive-curve', value: 'cubic-bezier(0.2, 0, 1, 0.9)' },
|
|
171
|
+
{ token: '--exit-expressive-curve', value: 'cubic-bezier(0.4, 0.14, 1, 1)' },
|
|
172
|
+
];
|
|
173
|
+
|
|
174
|
+
export const transitionsDurationData = [
|
|
175
|
+
{ token: '--duration--fast-01', value: '80ms' },
|
|
176
|
+
{ token: '--duration--fast-02', value: '120ms' },
|
|
177
|
+
{ token: '--duration--moderate-01', value: '160ms' },
|
|
178
|
+
{ token: '--duration--moderate-02', value: '240ms' },
|
|
179
|
+
{ token: '--duration--slow-01', value: '400ms' },
|
|
180
|
+
{ token: '--duration--slow-02', value: '720ms' },
|
|
181
|
+
];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Card, Heading, Table } from '@/index';
|
|
3
|
+
import { spaceSchema } from './Schema';
|
|
4
|
+
import { transitionsCurveData, transitionsDurationData } from './Data';
|
|
5
|
+
|
|
6
|
+
export const transitions = () => {
|
|
7
|
+
return (
|
|
8
|
+
<div>
|
|
9
|
+
<Heading size="xxl">Design Tokens</Heading>
|
|
10
|
+
<br />
|
|
11
|
+
<br />
|
|
12
|
+
<Heading size="m">Transitions</Heading>
|
|
13
|
+
<br />
|
|
14
|
+
<Heading size="m">Transition curve</Heading>
|
|
15
|
+
<Card className="h-100 overflow-hidden">
|
|
16
|
+
<Table data={transitionsCurveData} schema={spaceSchema} />
|
|
17
|
+
</Card>
|
|
18
|
+
<br />
|
|
19
|
+
<Heading size="m">Transition Duration</Heading>
|
|
20
|
+
<Card className="h-100 overflow-hidden">
|
|
21
|
+
<Table data={transitionsDurationData} schema={spaceSchema} />
|
|
22
|
+
</Card>
|
|
23
|
+
<br />
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default {
|
|
29
|
+
title: 'Others/Design Tokens/Transitions',
|
|
30
|
+
parameters: {
|
|
31
|
+
viewMode: 'story',
|
|
32
|
+
docs: {
|
|
33
|
+
page: null,
|
|
34
|
+
docPage: null,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -13,7 +13,7 @@ exports[`ChipInput component
|
|
|
13
13
|
class="ChipInput-wrapper"
|
|
14
14
|
>
|
|
15
15
|
<div
|
|
16
|
-
class="Chip Chip--input my-2 mx-2"
|
|
16
|
+
class="Chip-wrapper Chip Chip--input my-2 mx-2"
|
|
17
17
|
data-test="DesignSystem-ChipInput--Chip"
|
|
18
18
|
>
|
|
19
19
|
<span
|
|
@@ -33,7 +33,7 @@ exports[`ChipInput component
|
|
|
33
33
|
</i>
|
|
34
34
|
</div>
|
|
35
35
|
<div
|
|
36
|
-
class="Chip Chip--input my-2 mx-2"
|
|
36
|
+
class="Chip-wrapper Chip Chip--input my-2 mx-2"
|
|
37
37
|
data-test="DesignSystem-ChipInput--Chip"
|
|
38
38
|
>
|
|
39
39
|
<span
|
|
@@ -86,7 +86,7 @@ exports[`ChipInput component
|
|
|
86
86
|
class="ChipInput-wrapper"
|
|
87
87
|
>
|
|
88
88
|
<div
|
|
89
|
-
class="Chip Chip-input--disabled my-2 mx-2"
|
|
89
|
+
class="Chip-wrapper Chip Chip-input--disabled my-2 mx-2"
|
|
90
90
|
data-test="DesignSystem-ChipInput--Chip"
|
|
91
91
|
>
|
|
92
92
|
<span
|
|
@@ -106,7 +106,7 @@ exports[`ChipInput component
|
|
|
106
106
|
</i>
|
|
107
107
|
</div>
|
|
108
108
|
<div
|
|
109
|
-
class="Chip Chip-input--disabled my-2 mx-2"
|
|
109
|
+
class="Chip-wrapper Chip Chip-input--disabled my-2 mx-2"
|
|
110
110
|
data-test="DesignSystem-ChipInput--Chip"
|
|
111
111
|
>
|
|
112
112
|
<span
|