@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
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Switch
|
|
3
|
+
description:
|
|
4
|
+
Switches are used to toggle between two states in a user interface - ON and OFF, hence resembling the real-life switches used to turn something ON or OFF.
|
|
5
|
+
date: 24 Jan 2022
|
|
6
|
+
tabs: ['Usage', 'Interactions', 'Code']
|
|
7
|
+
showMobile: true
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
#### Switch - Off to On state
|
|
11
|
+
|
|
12
|
+
<br/>
|
|
13
|
+
|
|
14
|
+
<img src='./images/switch-1.gif' width='100%' height='auto'/>
|
|
15
|
+
|
|
16
|
+
<br/>
|
|
17
|
+
<br/>
|
|
18
|
+
|
|
19
|
+
##### Knob
|
|
20
|
+
|
|
21
|
+
<br/>
|
|
22
|
+
|
|
23
|
+
<Card shadow='none'>
|
|
24
|
+
<Table
|
|
25
|
+
showMenu={false}
|
|
26
|
+
separator={true}
|
|
27
|
+
data={[
|
|
28
|
+
{
|
|
29
|
+
Property: 'Margin-left',
|
|
30
|
+
Initial: '2 px',
|
|
31
|
+
Final: '-',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
Property: 'Margin-right',
|
|
35
|
+
Initial: '-',
|
|
36
|
+
Final: '2px',
|
|
37
|
+
},
|
|
38
|
+
]}
|
|
39
|
+
schema={[
|
|
40
|
+
{
|
|
41
|
+
name: 'Property',
|
|
42
|
+
displayName: 'Property',
|
|
43
|
+
width: '34%',
|
|
44
|
+
sorting: false,
|
|
45
|
+
separator: true,
|
|
46
|
+
cellType: 'DEFAULT'
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'Initial',
|
|
50
|
+
displayName: 'Initial state',
|
|
51
|
+
width: '33%',
|
|
52
|
+
sorting: false,
|
|
53
|
+
separator: true,
|
|
54
|
+
cellRenderer: ({ data }) => {
|
|
55
|
+
return <Rectangle name={data.Initial} />;
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'Final',
|
|
61
|
+
displayName: 'Final state',
|
|
62
|
+
width: '33%',
|
|
63
|
+
sorting: false,
|
|
64
|
+
separator: true,
|
|
65
|
+
cellRenderer: ({ data }) => {
|
|
66
|
+
return <Rectangle name={data.Final} />;
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
]}
|
|
70
|
+
withHeader={false}
|
|
71
|
+
/>
|
|
72
|
+
</Card>
|
|
73
|
+
<br/>
|
|
74
|
+
|
|
75
|
+
**Curve**
|
|
76
|
+
|
|
77
|
+
<Card shadow='none'>
|
|
78
|
+
<Table
|
|
79
|
+
showMenu={false}
|
|
80
|
+
separator={true}
|
|
81
|
+
data={[
|
|
82
|
+
{
|
|
83
|
+
Curve: 'cubic-bezier(0.4, 0.14, 0.3, 1)',
|
|
84
|
+
Duration: '80ms',
|
|
85
|
+
}
|
|
86
|
+
]}
|
|
87
|
+
schema={[
|
|
88
|
+
{
|
|
89
|
+
name: 'Curve',
|
|
90
|
+
displayName: 'Curve',
|
|
91
|
+
width: '50%',
|
|
92
|
+
sorting: false,
|
|
93
|
+
separator: true,
|
|
94
|
+
cellRenderer: ({ data }) => {
|
|
95
|
+
return <Rectangle name={data.Curve} />;
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'Duration',
|
|
100
|
+
displayName: 'Duration',
|
|
101
|
+
width: '50%',
|
|
102
|
+
sorting: false,
|
|
103
|
+
separator: true
|
|
104
|
+
|
|
105
|
+
},
|
|
106
|
+
]}
|
|
107
|
+
withHeader={false}
|
|
108
|
+
/>
|
|
109
|
+
</Card>
|
|
110
|
+
<br/>
|
|
111
|
+
<br/>
|
|
112
|
+
|
|
113
|
+
##### Background
|
|
114
|
+
|
|
115
|
+
<br/>
|
|
116
|
+
|
|
117
|
+
<Card shadow='none'>
|
|
118
|
+
<Table
|
|
119
|
+
showMenu={false}
|
|
120
|
+
separator={true}
|
|
121
|
+
data={[
|
|
122
|
+
{
|
|
123
|
+
Property: 'Color (left to right)',
|
|
124
|
+
Initial: '$Stone-Light',
|
|
125
|
+
Final: '$Jal-Default',
|
|
126
|
+
},
|
|
127
|
+
]}
|
|
128
|
+
schema={[
|
|
129
|
+
{
|
|
130
|
+
name: 'Property',
|
|
131
|
+
displayName: 'Property',
|
|
132
|
+
width: '34%',
|
|
133
|
+
sorting: false,
|
|
134
|
+
separator: true,
|
|
135
|
+
cellType: 'DEFAULT'
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: 'Initial',
|
|
139
|
+
displayName: 'Initial state',
|
|
140
|
+
width: '33%',
|
|
141
|
+
sorting: false,
|
|
142
|
+
separator: true,
|
|
143
|
+
cellRenderer: ({ data }) => {
|
|
144
|
+
return <Rectangle name={data.Initial} />;
|
|
145
|
+
},
|
|
146
|
+
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'Final',
|
|
150
|
+
displayName: 'Final state',
|
|
151
|
+
width: '33%',
|
|
152
|
+
sorting: false,
|
|
153
|
+
separator: true,
|
|
154
|
+
cellRenderer: ({ data }) => {
|
|
155
|
+
return <Rectangle name={data.Final} />;
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
]}
|
|
159
|
+
withHeader={false}
|
|
160
|
+
/>
|
|
161
|
+
</Card>
|
|
162
|
+
<br/>
|
|
163
|
+
|
|
164
|
+
**Curve**
|
|
165
|
+
|
|
166
|
+
<Card shadow='none'>
|
|
167
|
+
<Table
|
|
168
|
+
showMenu={false}
|
|
169
|
+
separator={true}
|
|
170
|
+
data={[
|
|
171
|
+
{
|
|
172
|
+
Curve: 'cubic-bezier(0.4, 0.14, 0.3, 1)',
|
|
173
|
+
Duration: '80ms',
|
|
174
|
+
}
|
|
175
|
+
]}
|
|
176
|
+
schema={[
|
|
177
|
+
{
|
|
178
|
+
name: 'Curve',
|
|
179
|
+
displayName: 'Curve',
|
|
180
|
+
width: '50%',
|
|
181
|
+
sorting: false,
|
|
182
|
+
separator: true,
|
|
183
|
+
cellRenderer: ({ data }) => {
|
|
184
|
+
return <Rectangle name={data.Curve} />;
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: 'Duration',
|
|
189
|
+
displayName: 'Duration',
|
|
190
|
+
width: '50%',
|
|
191
|
+
sorting: false,
|
|
192
|
+
separator: true
|
|
193
|
+
|
|
194
|
+
},
|
|
195
|
+
]}
|
|
196
|
+
withHeader={false}
|
|
197
|
+
/>
|
|
198
|
+
</Card>
|
|
199
|
+
<br/>
|
|
200
|
+
<br/>
|
|
201
|
+
|
|
202
|
+
#### Switch - On to Off state
|
|
203
|
+
|
|
204
|
+
<br/>
|
|
205
|
+
|
|
206
|
+
<img src='./images/switch-2.gif' width='100%' height='auto'/>
|
|
207
|
+
|
|
208
|
+
<br/>
|
|
209
|
+
<br/>
|
|
210
|
+
|
|
211
|
+
##### Knob
|
|
212
|
+
|
|
213
|
+
<br/>
|
|
214
|
+
|
|
215
|
+
<Card shadow='none'>
|
|
216
|
+
<Table
|
|
217
|
+
showMenu={false}
|
|
218
|
+
separator={true}
|
|
219
|
+
data={[
|
|
220
|
+
{
|
|
221
|
+
Property: 'Margin-left',
|
|
222
|
+
Initial: '-',
|
|
223
|
+
Final: '2px',
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
Property: 'Margin-right',
|
|
227
|
+
Initial: '2px',
|
|
228
|
+
Final: '-',
|
|
229
|
+
},
|
|
230
|
+
]}
|
|
231
|
+
schema={[
|
|
232
|
+
{
|
|
233
|
+
name: 'Property',
|
|
234
|
+
displayName: 'Property',
|
|
235
|
+
width: '34%',
|
|
236
|
+
sorting: false,
|
|
237
|
+
separator: true,
|
|
238
|
+
cellType: 'DEFAULT'
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
name: 'Initial',
|
|
242
|
+
displayName: 'Initial state',
|
|
243
|
+
width: '33%',
|
|
244
|
+
sorting: false,
|
|
245
|
+
separator: true,
|
|
246
|
+
cellRenderer: ({ data }) => {
|
|
247
|
+
return <Rectangle name={data.Initial} />;
|
|
248
|
+
},
|
|
249
|
+
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
name: 'Final',
|
|
253
|
+
displayName: 'Final state',
|
|
254
|
+
width: '33%',
|
|
255
|
+
sorting: false,
|
|
256
|
+
separator: true,
|
|
257
|
+
cellRenderer: ({ data }) => {
|
|
258
|
+
return <Rectangle name={data.Final} />;
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
]}
|
|
262
|
+
withHeader={false}
|
|
263
|
+
/>
|
|
264
|
+
</Card>
|
|
265
|
+
<br/>
|
|
266
|
+
|
|
267
|
+
**Curve**
|
|
268
|
+
|
|
269
|
+
<Card shadow='none'>
|
|
270
|
+
<Table
|
|
271
|
+
showMenu={false}
|
|
272
|
+
separator={true}
|
|
273
|
+
data={[
|
|
274
|
+
{
|
|
275
|
+
Curve: 'cubic-bezier(0.4, 0.14, 1, 1)',
|
|
276
|
+
Duration: '80ms',
|
|
277
|
+
}
|
|
278
|
+
]}
|
|
279
|
+
schema={[
|
|
280
|
+
{
|
|
281
|
+
name: 'Curve',
|
|
282
|
+
displayName: 'Curve',
|
|
283
|
+
width: '50%',
|
|
284
|
+
sorting: false,
|
|
285
|
+
separator: true,
|
|
286
|
+
cellRenderer: ({ data }) => {
|
|
287
|
+
return <Rectangle name={data.Curve} />;
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
name: 'Duration',
|
|
292
|
+
displayName: 'Duration',
|
|
293
|
+
width: '50%',
|
|
294
|
+
sorting: false,
|
|
295
|
+
separator: true
|
|
296
|
+
|
|
297
|
+
},
|
|
298
|
+
]}
|
|
299
|
+
withHeader={false}
|
|
300
|
+
/>
|
|
301
|
+
</Card>
|
|
302
|
+
<br/>
|
|
303
|
+
<br/>
|
|
304
|
+
|
|
305
|
+
##### Background
|
|
306
|
+
|
|
307
|
+
<br/>
|
|
308
|
+
|
|
309
|
+
<Card shadow='none'>
|
|
310
|
+
<Table
|
|
311
|
+
showMenu={false}
|
|
312
|
+
separator={true}
|
|
313
|
+
data={[
|
|
314
|
+
{
|
|
315
|
+
Property: 'Color (right to left)',
|
|
316
|
+
Initial: '$Jal-Default',
|
|
317
|
+
Final: '$Stone-Light',
|
|
318
|
+
},
|
|
319
|
+
]}
|
|
320
|
+
schema={[
|
|
321
|
+
{
|
|
322
|
+
name: 'Property',
|
|
323
|
+
displayName: 'Property',
|
|
324
|
+
width: '34%',
|
|
325
|
+
sorting: false,
|
|
326
|
+
separator: true,
|
|
327
|
+
cellType: 'DEFAULT'
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
name: 'Initial',
|
|
331
|
+
displayName: 'Initial state',
|
|
332
|
+
width: '33%',
|
|
333
|
+
sorting: false,
|
|
334
|
+
separator: true,
|
|
335
|
+
cellRenderer: ({ data }) => {
|
|
336
|
+
return <Rectangle name={data.Initial} />;
|
|
337
|
+
},
|
|
338
|
+
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
name: 'Final',
|
|
342
|
+
displayName: 'Final state',
|
|
343
|
+
width: '33%',
|
|
344
|
+
sorting: false,
|
|
345
|
+
separator: true,
|
|
346
|
+
cellRenderer: ({ data }) => {
|
|
347
|
+
return <Rectangle name={data.Final} />;
|
|
348
|
+
},
|
|
349
|
+
},
|
|
350
|
+
]}
|
|
351
|
+
withHeader={false}
|
|
352
|
+
/>
|
|
353
|
+
</Card>
|
|
354
|
+
<br/>
|
|
355
|
+
|
|
356
|
+
**Curve**
|
|
357
|
+
|
|
358
|
+
<Card shadow='none'>
|
|
359
|
+
<Table
|
|
360
|
+
showMenu={false}
|
|
361
|
+
separator={true}
|
|
362
|
+
data={[
|
|
363
|
+
{
|
|
364
|
+
Curve: 'cubic-bezier(0.4, 0.14, 1, 1)',
|
|
365
|
+
Duration: '80ms',
|
|
366
|
+
}
|
|
367
|
+
]}
|
|
368
|
+
schema={[
|
|
369
|
+
{
|
|
370
|
+
name: 'Curve',
|
|
371
|
+
displayName: 'Curve',
|
|
372
|
+
width: '50%',
|
|
373
|
+
sorting: false,
|
|
374
|
+
separator: true,
|
|
375
|
+
cellRenderer: ({ data }) => {
|
|
376
|
+
return <Rectangle name={data.Curve} />;
|
|
377
|
+
},
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
name: 'Duration',
|
|
381
|
+
displayName: 'Duration',
|
|
382
|
+
width: '50%',
|
|
383
|
+
sorting: false,
|
|
384
|
+
separator: true
|
|
385
|
+
|
|
386
|
+
},
|
|
387
|
+
]}
|
|
388
|
+
withHeader={false}
|
|
389
|
+
/>
|
|
390
|
+
</Card>
|
|
391
|
+
<br/>
|
|
392
|
+
<br/>
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Switch
|
|
3
|
+
description:
|
|
4
|
+
Switches are used to toggle between two states in a user interface - ON and OFF, hence resembling the real-life switches used to turn something ON or OFF.
|
|
5
|
+
date: 24 Jan 2022
|
|
6
|
+
tabs: ['Usage', 'Interactions', 'Code']
|
|
7
|
+
showMobile: true
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
#### Structure
|
|
11
|
+
|
|
12
|
+
<Preview name='switch-default-switch' />
|
|
13
|
+
|
|
14
|
+
#### Sizes
|
|
15
|
+
|
|
16
|
+
Switches come in 2 sizes based on height and width - **Regular** and **Tiny**.
|
|
17
|
+
|
|
18
|
+
<Preview name='switch-variants-size' />
|
|
19
|
+
|
|
20
|
+
#### Properties
|
|
21
|
+
|
|
22
|
+
<br/>
|
|
23
|
+
|
|
24
|
+
<Card shadow='none'>
|
|
25
|
+
<Table
|
|
26
|
+
showMenu={false}
|
|
27
|
+
separator={true}
|
|
28
|
+
data={[
|
|
29
|
+
{
|
|
30
|
+
Property: 'Color - ON state',
|
|
31
|
+
Value: '#0070DD (primary)',
|
|
32
|
+
Configurable: '❌',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
Property: 'Color - OFF state',
|
|
36
|
+
Value: '#E5E5E5 (stone-light)',
|
|
37
|
+
Configurable: '❌',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
Property: 'Oval shadow',
|
|
41
|
+
Value: 'Shadow 20',
|
|
42
|
+
Configurable: '❌',
|
|
43
|
+
},
|
|
44
|
+
]}
|
|
45
|
+
schema={[
|
|
46
|
+
{
|
|
47
|
+
name: 'Property',
|
|
48
|
+
displayName: 'Property',
|
|
49
|
+
width: '34%',
|
|
50
|
+
sorting: false,
|
|
51
|
+
separator: true,
|
|
52
|
+
cellType: 'DEFAULT'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'Value',
|
|
56
|
+
displayName: 'Value',
|
|
57
|
+
width: '33%',
|
|
58
|
+
sorting: false,
|
|
59
|
+
separator: true,
|
|
60
|
+
cellRenderer: ({ data }) => {
|
|
61
|
+
return <Rectangle name={data.Value} />;
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'Configurable',
|
|
66
|
+
displayName: 'Configurable?',
|
|
67
|
+
width: '33%',
|
|
68
|
+
sorting: false,
|
|
69
|
+
separator: true
|
|
70
|
+
},
|
|
71
|
+
]}
|
|
72
|
+
withHeader={false}
|
|
73
|
+
/>
|
|
74
|
+
</Card>
|
|
75
|
+
<br/>
|
|
76
|
+
<br/>
|
|
77
|
+
|
|
78
|
+
#### Usage
|
|
79
|
+
|
|
80
|
+
<br/>
|
|
81
|
+
|
|
82
|
+
##### Switch size
|
|
83
|
+
|
|
84
|
+
The size of the switch depends on the other components appearing around it. If other components are regular in size, then the regular variant of switch should be used. The same goes for the tiny variant.
|
|
85
|
+
|
|
86
|
+

|
|
87
|
+
<br/>
|
|
88
|
+
|
|
89
|
+
##### Switch vs Checkbox
|
|
90
|
+
|
|
91
|
+
<br/>
|
|
92
|
+
|
|
93
|
+
<ul>
|
|
94
|
+
<li> Tapping a switch is a two-step action: selection and execution. </li>
|
|
95
|
+
<li> Whereas checkbox is just a selection of an option(s) and its execution requires another control, usually a button. </li>
|
|
96
|
+
</ul>
|
|
97
|
+
|
|
98
|
+
###### Instant response
|
|
99
|
+
|
|
100
|
+
The options that require an instant response are best selected using a switch.
|
|
101
|
+
|
|
102
|
+
*image pending*
|
|
103
|
+
|
|
104
|
+
###### Multiple choices
|
|
105
|
+
|
|
106
|
+
Checkboxes are preferred over switches when multiple options are available and the user has to select one or more options from them. Clicking multiple switches one by one and waiting to see results after each click takes extra time.
|
|
107
|
+
*image pending*
|
|
108
|
+
|
|
109
|
+
###### Confirmation
|
|
110
|
+
|
|
111
|
+
Checkboxes are preferred when an explicit action is required to confirm settings.
|
|
112
|
+
*image pending*
|
|
113
|
+
|
|
114
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Table
|
|
3
|
+
description: Tables are used for arranging information in a tabular format by laying out resource items, displaying data heavily based on numbers, or a list of homogenous items in their simplest form.
|
|
4
|
+
component: Table
|
|
5
|
+
tabs: ['Usage', 'Interactions', 'Code']
|
|
6
|
+
showMobile: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
#### Live Demo
|
|
10
|
+
<br/>
|
|
11
|
+
|
|
12
|
+
<Preview name='table-async' />
|
|
13
|
+
|
|
14
|
+
<PreviewWithPropTable name='table-async' />
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Table
|
|
3
|
+
description: Tables are used for arranging information in a tabular format by laying out resource items, displaying data heavily based on numbers, or a list of homogenous items in their simplest form.
|
|
4
|
+
component: Table
|
|
5
|
+
tabs: ['Usage', 'Interactions', 'Code']
|
|
6
|
+
showMobile: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
#### Hover
|
|
10
|
+
|
|
11
|
+
<br/>
|
|
12
|
+
|
|
13
|
+
##### Resource vs Option
|
|
14
|
+
|
|
15
|
+
For Resource Table, since it opens the detail page of the item, on hover changes the text to Primary color along with the change in background.
|
|
16
|
+
While for the Options List, the text color remains the same.
|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+
<br/>
|
|
21
|
+
Hover state doesn’t apply to a data table or a description list.
|
|
22
|
+
|
|
23
|
+
<br/>
|
|
24
|
+
<br/>
|
|
25
|
+
|
|
26
|
+
##### List item
|
|
27
|
+
|
|
28
|
+
There can be instances when you want to show a specific action on hover when the table is used as a list. In that case, a button can be shown at the end.
|
|
29
|
+
|
|
30
|
+
*Note: Never use the primary button for this type of use case.*
|
|
31
|
+
|
|
32
|
+

|
|
33
|
+
|
|
34
|
+
<br/>
|
|
35
|
+
|
|
36
|
+
##### Author
|
|
37
|
+
|
|
38
|
+
The name of an author is shown using a tooltip. This is the default behavior of an Avatar and already taken care of in that component.
|
|
39
|
+
|
|
40
|
+

|
|
41
|
+

|
|
42
|
+
|
|
43
|
+
<br/>
|
|
44
|
+
|
|
45
|
+
##### Exception
|
|
46
|
+
|
|
47
|
+
A Popover is used to show additional information about an exception.
|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+
<br/>
|
|
52
|
+
<br/>
|
|
53
|
+
|
|
54
|
+
#### States
|
|
55
|
+
|
|
56
|
+
<br/>
|
|
57
|
+
|
|
58
|
+
##### Active state
|
|
59
|
+
|
|
60
|
+
<br/>
|
|
61
|
+
|
|
62
|
+

|
|
63
|
+
|
|
64
|
+
<br/>
|
|
65
|
+
|
|
66
|
+
##### Selected state
|
|
67
|
+
|
|
68
|
+
<br/>
|
|
69
|
+
|
|
70
|
+

|
|
71
|
+
|
|
72
|
+
<br/>
|
|
73
|
+
|
|
74
|
+
##### Focused state
|
|
75
|
+
|
|
76
|
+
<br/>
|
|
77
|
+
|
|
78
|
+

|
|
79
|
+
|
|
80
|
+
<br/>
|
|
81
|
+
|
|
82
|
+
##### Disabled state
|
|
83
|
+
|
|
84
|
+
Disable items individually except the action icon button.
|
|
85
|
+
*Not yet available in components.*
|
|
86
|
+
|
|
87
|
+

|
|
88
|
+
|
|
89
|
+
<br/>
|
|
90
|
+
<br/>
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|