@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,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: avatar
|
|
3
|
+
description: Avatar Usage
|
|
4
|
+
date: 15 June 2021
|
|
5
|
+
component: avatar
|
|
6
|
+
tabs: ['Usage', 'Code', 'Content']
|
|
7
|
+
showMobile: true
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
#### Types
|
|
11
|
+
|
|
12
|
+
##### Default
|
|
13
|
+
|
|
14
|
+
Default Avatar is used the most across products.
|
|
15
|
+
|
|
16
|
+
<Preview name='default-avatar' />
|
|
17
|
+
|
|
18
|
+
##### All
|
|
19
|
+
|
|
20
|
+
<Preview name='size' />
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Badges
|
|
3
|
+
description: Badges contain short labels that help in 'tagging' entities. The container of a badge is rounded at the corners.
|
|
4
|
+
component: badges
|
|
5
|
+
tabs: ["Usage", "Code"]
|
|
6
|
+
showMobile: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
#### Live Demo
|
|
10
|
+
<br/>
|
|
11
|
+
|
|
12
|
+
<Preview name='badge--solid' />
|
|
13
|
+
|
|
14
|
+
#### Props
|
|
15
|
+
|
|
16
|
+
<PreviewWithPropTable name='badge--solid' />
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Badges
|
|
3
|
+
description: Badges contain short labels that help in 'tagging' entities. The container of a badge is rounded at the corners.
|
|
4
|
+
component: badges
|
|
5
|
+
tabs: ["Usage", "Code"]
|
|
6
|
+
showMobile: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
#### Types
|
|
10
|
+
|
|
11
|
+
<br />
|
|
12
|
+
|
|
13
|
+
##### Solid
|
|
14
|
+
|
|
15
|
+
Solid Badges should be used to highlight important information on the page so that they can be recognized easily.
|
|
16
|
+
|
|
17
|
+
<Preview name='badge--solid' />
|
|
18
|
+
|
|
19
|
+
##### Subtle
|
|
20
|
+
|
|
21
|
+
Subtle Badges should be used when many badges are required to differentiate content. In that case, using solid badges become a bit overwhelming. For example tags in a list.
|
|
22
|
+
|
|
23
|
+
<Preview name='badge-subtle-alert' />
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Breadcrumbs
|
|
3
|
+
description: Breadcrumbs are used to note the path of a record and help the user to navigate back to the parent.
|
|
4
|
+
component: Breadcrumbs
|
|
5
|
+
tabs: ["Usage", "Code"]
|
|
6
|
+
showMobile: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
#### Live Demo
|
|
10
|
+
<br/>
|
|
11
|
+
|
|
12
|
+
<Preview name="breadcrumbs" />
|
|
13
|
+
|
|
14
|
+
#### Props
|
|
15
|
+
|
|
16
|
+
<PreviewWithPropTable name="breadcrumbs" />
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Breadcrumbs
|
|
3
|
+
description: Breadcrumbs are used to note the path of a record and help the user to navigate back to the parent.
|
|
4
|
+
component: Breadcrumbs
|
|
5
|
+
tabs: ["Usage", "Code"]
|
|
6
|
+
showMobile: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
Breadcrumbs help users become aware of their current location with respect to the rest of the website or application.
|
|
10
|
+
By using the page hierarchy, breadcrumbs are easily understood by users, take up very little space on the page,
|
|
11
|
+
and facilitate discovery. As helpful as they are, breadcrumbs should never replace the main navigation on a page.
|
|
12
|
+
|
|
13
|
+
Breadcrumbs show the hierarchical progress from the highest entity level to the lowest, one step at a time.
|
|
14
|
+
This typically starts with the product landing page and goes to the current page or content.
|
|
15
|
+
|
|
16
|
+
<br/>
|
|
17
|
+
|
|
18
|
+
#### Types
|
|
19
|
+
<br/>
|
|
20
|
+
|
|
21
|
+
##### Default
|
|
22
|
+
|
|
23
|
+
The default variants come for use up to 4 levels of hierarchy. There is always a trailing slash.
|
|
24
|
+
|
|
25
|
+
- The max-width of the label is 160px, beyond that the text will truncate with … The user can see the entire label on a tooltip on hover.
|
|
26
|
+
- Since the breadcrumb component is made up of the Subtle Link button, you can change its state as per the requirement. Available states are - Default, Hover, Active, Focused, Disabled.
|
|
27
|
+
|
|
28
|
+
<Preview name="breadcrumbs" />
|
|
29
|
+
|
|
30
|
+
##### More than 4 levels
|
|
31
|
+
|
|
32
|
+
If it ever comes down to using breadcrumbs for more than 4 levels, use the component **More than 4 levels**.
|
|
33
|
+
It has a tiny transparent icon button in the middle to show the truncation.
|
|
34
|
+
Users can click on this button to get a menu that will display the truncated levels.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Do's and Don't content WIP
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Button
|
|
3
|
+
description:
|
|
4
|
+
Buttons are one of the crucial elements of a user
|
|
5
|
+
interface. They are used to initiate actions and can have
|
|
6
|
+
varying importance based on the need.
|
|
7
|
+
date: 15 June 2021
|
|
8
|
+
tabs: ['Usage', 'Code', 'Content']
|
|
9
|
+
showMobile: true
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
#### Types
|
|
13
|
+
|
|
14
|
+
<br />
|
|
15
|
+
|
|
16
|
+
##### Basic
|
|
17
|
+
|
|
18
|
+
Basic button is used the most across products. It provides a lightweight button style while still maintaining affordability.
|
|
19
|
+
|
|
20
|
+
<Preview name='basic-button' />
|
|
21
|
+
|
|
22
|
+
##### Primary
|
|
23
|
+
|
|
24
|
+
Primary button highlights the primary action on a page. Preferably have only one primary action per page. If you think more than one primary action is needed, try to re-evaluate the priority of actions.
|
|
25
|
+
|
|
26
|
+
<Preview name='primary-button' />
|
|
27
|
+
|
|
28
|
+
##### Alert
|
|
29
|
+
|
|
30
|
+
Alert button indicates destructive actions on a page, in dialogs, or in settings.
|
|
31
|
+
|
|
32
|
+
<Preview name='alert-button' />
|
|
33
|
+
|
|
34
|
+
##### Transparent
|
|
35
|
+
|
|
36
|
+
Transparent button indicates actions that are less important or less frequent.
|
|
37
|
+
|
|
38
|
+
<Preview name='transparent-button' />
|
|
39
|
+
|
|
40
|
+
##### Expanded
|
|
41
|
+
|
|
42
|
+
Expanded button is used when the width of the button needs to match the parent. Use it sparingly as it takes a lot of space and attention.
|
|
43
|
+
|
|
44
|
+
<Preview name='expanded-button' />
|
|
45
|
+
|
|
46
|
+
##### Icon with Label
|
|
47
|
+
|
|
48
|
+
Icon with label adds additional visual cues in buttons. The icon can either precede the label or succeed it.
|
|
49
|
+
|
|
50
|
+
<Preview name='icon-left-button' />
|
|
51
|
+
|
|
52
|
+
##### Icon in Right
|
|
53
|
+
<br/>
|
|
54
|
+
|
|
55
|
+
<Preview name='icon-right-button' />
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Card
|
|
3
|
+
description: Cards act as containers to group related information and actions together.
|
|
4
|
+
component: card
|
|
5
|
+
tabs: ["Usage", "Code"]
|
|
6
|
+
showMobile: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
#### Live Demo
|
|
10
|
+
<br/>
|
|
11
|
+
|
|
12
|
+
<Preview name='default-card' />
|
|
13
|
+
|
|
14
|
+
#### Props
|
|
15
|
+
|
|
16
|
+
<PreviewWithPropTable name="default-card" />
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Card
|
|
3
|
+
description: Cards act as containers to group related information and actions together.
|
|
4
|
+
date: 15 June 2021
|
|
5
|
+
tabs: ['Usage', 'Code']
|
|
6
|
+
showMobile: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
#### Types
|
|
10
|
+
|
|
11
|
+
<br />
|
|
12
|
+
|
|
13
|
+
##### Default
|
|
14
|
+
|
|
15
|
+
<Preview name='default-card' />
|
|
16
|
+
|
|
17
|
+
##### Subdued
|
|
18
|
+
|
|
19
|
+
<Preview name='card-subdued' />
|
|
20
|
+
|
|
21
|
+
##### Flat
|
|
22
|
+
|
|
23
|
+
<Preview name='card-flat' />
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Checkbox
|
|
3
|
+
description: A checkbox lets users select one or more values from a list of options. Options are not mutually exclusive here so the selection of any option won’t affect the other.
|
|
4
|
+
component: Checkbox
|
|
5
|
+
tabs: ['Usage', 'Code']
|
|
6
|
+
showMobile: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
#### Live Demo
|
|
10
|
+
<br/>
|
|
11
|
+
|
|
12
|
+
<Preview name="checkbox-default" />
|
|
13
|
+
|
|
14
|
+
#### Props
|
|
15
|
+
|
|
16
|
+
<PreviewWithPropTable name='checkbox-default' />
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Checkbox
|
|
3
|
+
description:
|
|
4
|
+
A checkbox lets users select one or more values from a list of options.
|
|
5
|
+
Options are not mutually exclusive here so the selection of any option won’t affect the other.
|
|
6
|
+
component: Checkbox
|
|
7
|
+
tabs: ["Usage", "Code"]
|
|
8
|
+
showMobile: true
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
#### Types
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
##### Default
|
|
16
|
+
|
|
17
|
+
<Preview name="checkbox-default" />
|
|
18
|
+
|
|
19
|
+
##### With Help Text
|
|
20
|
+
|
|
21
|
+
The checkbox can have a help text below the label to provide some extra information about the particular option.
|
|
22
|
+
The help text will always be aligned to the label. Clicking over the help text will not change the state of checkbox.
|
|
23
|
+
|
|
24
|
+
<Preview name="checkbox-with-help-text" />
|
|
25
|
+
|
|
26
|
+
#### Usage
|
|
27
|
+
<br/>
|
|
28
|
+
|
|
29
|
+
##### Checkbox Group
|
|
30
|
+
|
|
31
|
+
Checkbox group is a list of multiple standalone checkboxes with a group label on the top.
|
|
32
|
+
|
|
33
|
+
*Note: Multiple checkboxes should have a minimum of 8px spacing in between.
|
|
34
|
+
|
|
35
|
+
<Preview name="checkbox-checkbox-group" />
|
|
36
|
+
|
|
37
|
+
##### Nesting
|
|
38
|
+
|
|
39
|
+
Checkboxes can be nested in case of a list having sub-sections. The parent remains unchecked if no child is checked.
|
|
40
|
+
|
|
41
|
+
Indeterminate state of the parent shows a partially checked state when there is a nested relationship. The parent checkbox will remain indeterminate until all of its child checkboxes are checked.
|
|
42
|
+
|
|
43
|
+
<Preview name="checkbox-nested" />
|
|
44
|
+
|
|
45
|
+
##### Overflow Behavior
|
|
46
|
+
|
|
47
|
+
If the label or the help text with the checkbox overflows, wrap it to the next line but make sure that the control and the label are top aligned.
|
|
48
|
+
|
|
49
|
+
<Preview name="checkbox-overflow" />
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Message
|
|
3
|
+
description: Message is used to provide collective feedback to the user about an action or a state.
|
|
4
|
+
component: Message
|
|
5
|
+
tabs: ['Usage', 'Code']
|
|
6
|
+
showMobile: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
#### Live Demo
|
|
10
|
+
<br/>
|
|
11
|
+
|
|
12
|
+
<Preview name='message-info' />
|
|
13
|
+
|
|
14
|
+
#### Props
|
|
15
|
+
|
|
16
|
+
<PreviewWithPropTable name='message-info' />
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Message
|
|
3
|
+
description: Message is used to provide collective feedback to the user about an action or a state.
|
|
4
|
+
component: Message
|
|
5
|
+
tabs: ['Usage', 'Code']
|
|
6
|
+
showMobile: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
#### Types
|
|
10
|
+
<br/>
|
|
11
|
+
|
|
12
|
+
##### Info
|
|
13
|
+
|
|
14
|
+
<Preview name='message-info' />
|
|
15
|
+
|
|
16
|
+
##### Warning
|
|
17
|
+
|
|
18
|
+
<Preview name='message-warning' />
|
|
19
|
+
|
|
20
|
+
##### Alert
|
|
21
|
+
|
|
22
|
+
<Preview name='message-alert' />
|
|
23
|
+
|
|
24
|
+
##### Success
|
|
25
|
+
|
|
26
|
+
<Preview name='message-success' />
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Components
|
|
3
|
+
description: Components are the reusable building blocks of our design system. Each component meets a specific interaction or UI need, and has been specifically created to work together to create patterns and intuitive user experiences.
|
|
4
|
+
tabs: ['All components', 'Status']
|
|
5
|
+
showMobile: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
#### Mobile page for components overview
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Components
|
|
3
|
+
description: Components are the reusable building blocks of our design system. Each component meets a specific interaction or UI need, and has been specifically created to work together to create patterns and intuitive user experiences.
|
|
4
|
+
tabs: ['All components', 'Status']
|
|
5
|
+
showMobile: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
All Component in WIP
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Components
|
|
3
|
+
description: Components are the reusable building blocks of our design system. Each component meets a specific interaction or UI need, and has been specifically created to work together to create patterns and intuitive user experiences.
|
|
4
|
+
tabs: ['All components', 'Status']
|
|
5
|
+
showMobile: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<Card shadow='none'>
|
|
9
|
+
<Table
|
|
10
|
+
showMenu={false}
|
|
11
|
+
type='resource'
|
|
12
|
+
withHeader={false}
|
|
13
|
+
onRowClick={(props) => {
|
|
14
|
+
if (props.name === 'Buttons') {
|
|
15
|
+
window.open('/components/button/usage/', '_blank');
|
|
16
|
+
}
|
|
17
|
+
}}
|
|
18
|
+
data={[
|
|
19
|
+
{
|
|
20
|
+
name: 'Avatar',
|
|
21
|
+
design: 'Unavailable',
|
|
22
|
+
code: 'Unavailable',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'Badges',
|
|
26
|
+
design: 'Unavailable',
|
|
27
|
+
code: 'Unavailable',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Breadcrumb',
|
|
31
|
+
design: 'Unavailable',
|
|
32
|
+
code: 'Unavailable',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Buttons',
|
|
36
|
+
design: 'Available',
|
|
37
|
+
code: 'Available',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Card',
|
|
41
|
+
design: 'Unavailable',
|
|
42
|
+
code: 'Unavailable',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'Checkbox',
|
|
46
|
+
design: 'Beta',
|
|
47
|
+
code: 'Unavailable',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'Chips',
|
|
51
|
+
design: 'Unavailable',
|
|
52
|
+
code: 'Unavailable',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'Date and Time picker',
|
|
56
|
+
design: 'Unavailable',
|
|
57
|
+
code: 'Unavailable',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'Dropdown',
|
|
61
|
+
design: 'Unavailable',
|
|
62
|
+
code: 'Unavailable',
|
|
63
|
+
},
|
|
64
|
+
]}
|
|
65
|
+
schema={[
|
|
66
|
+
{
|
|
67
|
+
name: 'name',
|
|
68
|
+
displayName: 'Component Name',
|
|
69
|
+
width: '40%',
|
|
70
|
+
sorting: false,
|
|
71
|
+
cellRenderer: ({ data }) => {
|
|
72
|
+
return <Text appearance='link'>{data.name}</Text>;
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'design',
|
|
77
|
+
displayName: 'Design',
|
|
78
|
+
width: '30%',
|
|
79
|
+
cellType: 'STATUS_HINT',
|
|
80
|
+
sorting: false,
|
|
81
|
+
translate: (a) => {
|
|
82
|
+
const design = a.design;
|
|
83
|
+
return {
|
|
84
|
+
title: design,
|
|
85
|
+
statusAppearance:
|
|
86
|
+
design === 'Available'
|
|
87
|
+
? 'success'
|
|
88
|
+
: design === 'Unavailable'
|
|
89
|
+
? 'alert'
|
|
90
|
+
: 'info',
|
|
91
|
+
};
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'code',
|
|
96
|
+
displayName: 'Code',
|
|
97
|
+
width: '30%',
|
|
98
|
+
cellType: 'STATUS_HINT',
|
|
99
|
+
sorting: false,
|
|
100
|
+
translate: (a) => {
|
|
101
|
+
const code = a.code;
|
|
102
|
+
return {
|
|
103
|
+
title: code,
|
|
104
|
+
statusAppearance:
|
|
105
|
+
code === 'Available'
|
|
106
|
+
? 'success'
|
|
107
|
+
: code === 'Unavailable'
|
|
108
|
+
? 'alert'
|
|
109
|
+
: 'info',
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
]}
|
|
114
|
+
/>
|
|
115
|
+
</Card>
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Colors
|
|
3
|
+
description: Maintaining consistent and engaging digital interfaces, whether applications or experiences, demands extended guidance around color usage
|
|
4
|
+
date: 15 June 2021
|
|
5
|
+
showMobile: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
export const PRIMARY_COLORS = [
|
|
9
|
+
{
|
|
10
|
+
name: 'Jal - Darker',
|
|
11
|
+
backgroundColor: 'var(--primary-darker)',
|
|
12
|
+
hexCode: '#003365',
|
|
13
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'Jal - Dark',
|
|
17
|
+
backgroundColor: 'var(--primary-dark)',
|
|
18
|
+
hexCode: '#00509F',
|
|
19
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'Jal - Default',
|
|
23
|
+
backgroundColor: 'var(--primary)',
|
|
24
|
+
hexCode: '#0070DD',
|
|
25
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'Jal - Light',
|
|
29
|
+
backgroundColor: 'var(--primary-light)',
|
|
30
|
+
hexCode: '#4F9DE7',
|
|
31
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Jal - Lighter',
|
|
35
|
+
backgroundColor: 'var(--primary-lighter)',
|
|
36
|
+
hexCode: '#97C5F0',
|
|
37
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Jal - Lightest',
|
|
41
|
+
backgroundColor: 'var(--primary-lightest)',
|
|
42
|
+
hexCode: '#DCECF9',
|
|
43
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
44
|
+
},
|
|
45
|
+
];
|
|
46
|
+
|
|
47
|
+
export const ALERT_COLORS = [
|
|
48
|
+
{
|
|
49
|
+
name: 'Jal - Darker',
|
|
50
|
+
backgroundColor: 'var(--alert-darker)',
|
|
51
|
+
hexCode: '#631919',
|
|
52
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'Jal - Dark',
|
|
56
|
+
backgroundColor: 'var(--alert-dark)',
|
|
57
|
+
hexCode: '#9C2828',
|
|
58
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'Jal - Default',
|
|
62
|
+
backgroundColor: 'var(--alert)',
|
|
63
|
+
hexCode: '#D93737',
|
|
64
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'Jal - Light',
|
|
68
|
+
backgroundColor: 'var(--alert-light)',
|
|
69
|
+
hexCode: '#EB776C',
|
|
70
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'Jal - Lighter',
|
|
74
|
+
backgroundColor: 'var(--alert-lighter)',
|
|
75
|
+
hexCode: '#F7ADA5',
|
|
76
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'Jal - Lightest',
|
|
80
|
+
backgroundColor: 'var(--alert-lightest)',
|
|
81
|
+
hexCode: '#F9E2E2',
|
|
82
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
83
|
+
},
|
|
84
|
+
];
|
|
85
|
+
|
|
86
|
+
export const WARNING_COLORS = [
|
|
87
|
+
{
|
|
88
|
+
name: 'Haldi - Darker',
|
|
89
|
+
backgroundColor: 'var(--warning-darker)',
|
|
90
|
+
hexCode: '#6B4A06',
|
|
91
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'Haldi - Dark',
|
|
95
|
+
backgroundColor: 'var(--warning-dark)',
|
|
96
|
+
hexCode: '#B78707',
|
|
97
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'Haldi - Default',
|
|
101
|
+
backgroundColor: 'var(--warning)',
|
|
102
|
+
hexCode: '#FFC208',
|
|
103
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'Haldi - Light',
|
|
107
|
+
backgroundColor: 'var(--warning-light)',
|
|
108
|
+
hexCode: '#FFD462',
|
|
109
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'Haldi - Lighter',
|
|
113
|
+
backgroundColor: 'var(--warning-lighter)',
|
|
114
|
+
hexCode: '#FFE597',
|
|
115
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'Haldi - Lightest',
|
|
119
|
+
backgroundColor: 'var(--warning-lightest)',
|
|
120
|
+
hexCode: '#FFF5C7',
|
|
121
|
+
colorCode: 'rgb(0, 51, 101)',
|
|
122
|
+
},
|
|
123
|
+
];
|
|
124
|
+
|
|
125
|
+
#### Primary color
|
|
126
|
+
|
|
127
|
+
<br />
|
|
128
|
+
|
|
129
|
+
##### Jal
|
|
130
|
+
|
|
131
|
+
<Row className='mb-10'>
|
|
132
|
+
<Colors colorData={PRIMARY_COLORS} />
|
|
133
|
+
</Row>
|
|
134
|
+
|
|
135
|
+
#### Secondary colors
|
|
136
|
+
|
|
137
|
+
<br />
|
|
138
|
+
|
|
139
|
+
##### Mirch
|
|
140
|
+
|
|
141
|
+
<Row className='mb-10'>
|
|
142
|
+
<Colors colorData={ALERT_COLORS} />
|
|
143
|
+
</Row>
|
|
144
|
+
|
|
145
|
+
##### Haldi
|
|
146
|
+
|
|
147
|
+
<Row>
|
|
148
|
+
<Colors colorData={WARNING_COLORS} />
|
|
149
|
+
</Row>
|