@pingux/astro 2.91.0-alpha.1 → 2.92.0-alpha.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/lib/cjs/components/Card/Card.stories.js +2 -1
- package/lib/cjs/components/Card/Card.styles.d.ts +12 -0
- package/lib/cjs/components/Card/Card.styles.js +2 -1
- package/lib/cjs/components/CodeView/CodeView.js +7 -3
- package/lib/cjs/components/CodeView/CodeView.test.js +11 -4
- package/lib/cjs/components/ComboBox/ComboBoxInput.js +5 -2
- package/lib/cjs/components/DataTable/DataTable.js +7 -4
- package/lib/cjs/components/Icon/NoticeIcon.js +4 -1
- package/lib/cjs/components/IconWrapper/IconWrapper.d.ts +4 -0
- package/lib/cjs/components/IconWrapper/IconWrapper.js +62 -0
- package/lib/cjs/components/IconWrapper/IconWrapper.mdx +14 -0
- package/lib/cjs/components/IconWrapper/IconWrapper.stories.d.ts +4 -0
- package/lib/cjs/components/IconWrapper/IconWrapper.stories.js +53 -0
- package/lib/cjs/components/IconWrapper/IconWrapper.test.d.ts +1 -0
- package/lib/cjs/components/IconWrapper/IconWrapper.test.js +41 -0
- package/lib/cjs/components/IconWrapper/iconWrapperAttributes.d.ts +21 -0
- package/lib/cjs/components/IconWrapper/iconWrapperAttributes.js +31 -0
- package/lib/cjs/components/IconWrapper/index.d.ts +1 -0
- package/lib/cjs/components/IconWrapper/index.js +14 -0
- package/lib/cjs/components/Link/Link.stories.js +1 -1
- package/lib/cjs/components/ListView/ListViewExpandableItem.js +6 -3
- package/lib/cjs/components/NavBar/NavBar.stories.js +10 -3
- package/lib/cjs/components/NavBarSection/NavBarItemBody.js +4 -1
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +6 -4
- package/lib/cjs/components/NavSideBar/NavSideBarSectionHeader.js +6 -3
- package/lib/cjs/components/NavigationHeader/NavigationHeader.stories.js +15 -16
- package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +5 -1
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +5 -2
- package/lib/cjs/components/Tabs/Tabs.stories.js +3 -3
- package/lib/cjs/hooks/index.d.ts +1 -0
- package/lib/cjs/hooks/index.js +7 -0
- package/lib/cjs/hooks/useGetTheme/index.d.ts +1 -0
- package/lib/cjs/hooks/useGetTheme/index.js +14 -0
- package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +26 -0
- package/lib/cjs/hooks/useGetTheme/useGetTheme.js +82 -0
- package/lib/cjs/hooks/useGetTheme/useGetTheme.test.d.ts +1 -0
- package/lib/cjs/hooks/useGetTheme/useGetTheme.test.js +88 -0
- package/lib/cjs/hooks/useTShirtSize/useTShirtSize.js +5 -3
- package/lib/cjs/hooks/useTShirtSize/useTShirtSize.test.js +17 -0
- package/lib/cjs/index.d.ts +3 -0
- package/lib/cjs/index.js +77 -50
- package/lib/cjs/recipes/NextGen/ListViewNextGen.stories.js +6 -135
- package/lib/cjs/recipes/NextGen/ModalNextGen.stories.js +8 -7
- package/lib/cjs/recipes/NextGen/NavBarNextGen.stories.js +2 -216
- package/lib/cjs/recipes/NextGen/NextGenDataTable.stories.js +2 -135
- package/lib/cjs/styles/sizes.d.ts +12 -0
- package/lib/cjs/styles/sizes.js +19 -0
- package/lib/cjs/styles/theme.js +4 -12
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +75 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +97 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.d.ts +7 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.js +24 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +11 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.js +24 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/index.d.ts +1 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/index.js +14 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/nextGenDarkModeOverride.d.ts +2 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/nextGenDarkModeOverride.js +31 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkDataTable.chomatic.stories.d.ts +6 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkDataTable.chomatic.stories.js +22 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkListView.chromatic.stories.d.ts +6 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkListView.chromatic.stories.js +22 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkNavStory.chomatic.stories.d.ts +6 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkNavStory.chomatic.stories.js +22 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkStickerSheet.chromatic.stories.d.ts +6 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkStickerSheet.chromatic.stories.js +22 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/avatar.d.ts +43 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/avatar.js +51 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.d.ts +92 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.js +96 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +82 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +105 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/cards.d.ts +15 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/cards.js +23 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.d.ts +68 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +71 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/iconBadge.d.ts +53 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/iconBadge.js +75 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.d.ts +8 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.js +35 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/links.d.ts +40 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/links.js +47 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/lsitview.d.ts +24 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/lsitview.js +33 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/menu.d.ts +26 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/menu.js +35 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/message.d.ts +52 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/message.js +60 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/navbar.d.ts +132 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/navbar.js +149 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +375 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +71 -0
- package/lib/cjs/styles/themes/astro/customProperties/icons.d.ts +8 -0
- package/lib/cjs/styles/themes/astro/customProperties/icons.js +23 -0
- package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +12 -0
- package/lib/cjs/styles/themes/astro/customProperties/index.js +15 -0
- package/lib/cjs/styles/themes/astro/customProperties/styles.d.ts +4 -0
- package/lib/cjs/styles/themes/astro/customProperties/styles.js +11 -0
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +36 -0
- package/lib/cjs/styles/themes/next-gen/colors/colors.js +22 -4
- package/lib/cjs/styles/themes/next-gen/colors/iconWrapper.d.ts +22 -0
- package/lib/cjs/styles/themes/next-gen/colors/iconWrapper.js +31 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +11 -1
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +15 -4
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.d.ts +8 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.js +23 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +12 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/index.js +15 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/styles.d.ts +4 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/styles.js +11 -0
- package/lib/cjs/styles/themes/next-gen/forms.js +3 -3
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +244 -8
- package/lib/cjs/styles/themes/next-gen/next-gen.js +5 -9
- package/lib/cjs/styles/themes/next-gen/sizes.d.ts +7 -0
- package/lib/cjs/styles/themes/next-gen/sizes.js +10 -1
- package/lib/cjs/styles/themes/next-gen/stories/DataTableNextGenComponent.d.ts +6 -0
- package/lib/cjs/styles/themes/next-gen/stories/DataTableNextGenComponent.js +151 -0
- package/lib/cjs/styles/themes/next-gen/stories/ListViewItemNextGen.d.ts +29 -0
- package/lib/cjs/styles/themes/next-gen/stories/ListViewItemNextGen.js +84 -0
- package/lib/cjs/styles/themes/next-gen/stories/ListViewNextGenComponent.d.ts +2 -0
- package/lib/cjs/styles/themes/next-gen/stories/ListViewNextGenComponent.js +67 -0
- package/lib/cjs/styles/themes/next-gen/stories/NavBarNextGenComponent.d.ts +2 -0
- package/lib/cjs/styles/themes/next-gen/stories/NavBarNextGenComponent.js +191 -0
- package/lib/cjs/styles/themes/next-gen/stories/NextGenDataTable.chromatic.stories.d.ts +6 -0
- package/lib/cjs/styles/themes/next-gen/stories/NextGenDataTable.chromatic.stories.js +22 -0
- package/lib/cjs/styles/themes/next-gen/stories/NextGenListView.chromatic.stories.d.ts +6 -0
- package/lib/cjs/styles/themes/next-gen/stories/NextGenListView.chromatic.stories.js +22 -0
- package/lib/cjs/styles/themes/next-gen/stories/NextGenListViewItem.stories.d.ts +7 -0
- package/lib/cjs/styles/themes/next-gen/stories/NextGenListViewItem.stories.js +36 -0
- package/lib/cjs/styles/themes/next-gen/stories/NextGenNavBar.chromatic.stories.d.ts +6 -0
- package/lib/cjs/styles/themes/next-gen/stories/NextGenNavBar.chromatic.stories.js +22 -0
- package/lib/cjs/styles/themes/next-gen/stories/NextGenStickerSheet.chromatic.stories.d.ts +6 -0
- package/lib/cjs/styles/themes/next-gen/stories/NextGenStickerSheet.chromatic.stories.js +22 -0
- package/lib/cjs/styles/themes/next-gen/stories/StickerSheetComponent.d.ts +3 -0
- package/lib/cjs/styles/themes/next-gen/stories/StickerSheetComponent.js +286 -0
- package/lib/cjs/styles/themes/next-gen/variants/avatar.d.ts +43 -0
- package/lib/cjs/styles/themes/next-gen/variants/avatar.js +51 -0
- package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +208 -0
- package/lib/cjs/styles/themes/next-gen/variants/badges.js +103 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.js +5 -4
- package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +40 -0
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +22 -2
- package/lib/cjs/styles/themes/next-gen/variants/iconWrapper.d.ts +36 -0
- package/lib/cjs/styles/themes/next-gen/variants/iconWrapper.js +51 -0
- package/lib/cjs/styles/themes/next-gen/variants/input.js +9 -9
- package/lib/cjs/styles/themes/next-gen/variants/label.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +75 -0
- package/lib/cjs/styles/themes/next-gen/variants/links.js +7 -1
- package/lib/cjs/styles/themes/next-gen/variants/listview.d.ts +68 -0
- package/lib/cjs/styles/themes/next-gen/variants/listview.js +77 -0
- package/lib/cjs/styles/themes/next-gen/variants/menu.d.ts +28 -0
- package/lib/cjs/styles/themes/next-gen/variants/menu.js +37 -0
- package/lib/cjs/styles/themes/next-gen/variants/messages.d.ts +40 -0
- package/lib/cjs/styles/themes/next-gen/variants/messages.js +48 -0
- package/lib/cjs/styles/themes/next-gen/variants/navbar.d.ts +126 -0
- package/lib/cjs/styles/themes/next-gen/variants/navbar.js +134 -0
- package/lib/cjs/styles/themes/next-gen/variants/navigationHeader.d.ts +3 -1
- package/lib/cjs/styles/themes/next-gen/variants/navigationHeader.js +6 -4
- package/lib/cjs/styles/themes/next-gen/variants/tabs.d.ts +28 -0
- package/lib/cjs/styles/themes/next-gen/variants/tabs.js +38 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +11 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.js +18 -7
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +71 -7
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +38 -338
- package/lib/cjs/types/iconWrapper.d.ts +15 -0
- package/lib/cjs/types/iconWrapper.js +6 -0
- package/lib/cjs/utils/devUtils/constants/logos.d.ts +3 -0
- package/lib/cjs/utils/devUtils/constants/logos.js +84 -0
- package/lib/cjs/utils/devUtils/constants/tShirtSizes.d.ts +11 -0
- package/lib/cjs/utils/devUtils/constants/tShirtSizes.js +8 -2
- package/lib/cjs/utils/devUtils/constants/themes.d.ts +5 -0
- package/lib/cjs/utils/devUtils/constants/themes.js +13 -0
- package/lib/cjs/utils/devUtils/shouldReturnComingSoon.d.ts +1 -0
- package/lib/cjs/utils/devUtils/shouldReturnComingSoon.js +41 -0
- package/lib/cjs/utils/docUtils/iconSizeProps.d.ts +1 -1
- package/lib/cjs/utils/docUtils/iconSizeProps.js +1 -1
- package/lib/cjs/utils/testUtils/testWrapper.d.ts +4 -2
- package/lib/cjs/utils/testUtils/testWrapper.js +10 -4
- package/lib/components/Card/Card.stories.js +2 -1
- package/lib/components/Card/Card.styles.js +1 -1
- package/lib/components/CodeView/CodeView.js +7 -3
- package/lib/components/CodeView/CodeView.test.js +12 -5
- package/lib/components/ComboBox/ComboBoxInput.js +4 -1
- package/lib/components/DataTable/DataTable.js +7 -4
- package/lib/components/Icon/NoticeIcon.js +4 -1
- package/lib/components/IconWrapper/IconWrapper.js +50 -0
- package/lib/components/IconWrapper/IconWrapper.mdx +14 -0
- package/lib/components/IconWrapper/IconWrapper.stories.js +44 -0
- package/lib/components/IconWrapper/IconWrapper.test.js +38 -0
- package/lib/components/IconWrapper/iconWrapperAttributes.js +23 -0
- package/lib/components/IconWrapper/index.js +1 -0
- package/lib/components/Link/Link.stories.js +2 -2
- package/lib/components/ListView/ListViewExpandableItem.js +6 -3
- package/lib/components/NavBar/NavBar.stories.js +10 -3
- package/lib/components/NavBarSection/NavBarItemBody.js +4 -1
- package/lib/components/NavBarSection/NavBarItemHeader.js +5 -3
- package/lib/components/NavSideBar/NavSideBarSectionHeader.js +5 -2
- package/lib/components/NavigationHeader/NavigationHeader.stories.js +17 -18
- package/lib/components/OverlayPanel/OverlayPanel.stories.js +5 -1
- package/lib/components/SelectFieldBase/SelectFieldBase.js +4 -1
- package/lib/components/Tabs/Tabs.stories.js +3 -3
- package/lib/hooks/index.js +1 -0
- package/lib/hooks/useGetTheme/index.js +1 -0
- package/lib/hooks/useGetTheme/useGetTheme.js +74 -0
- package/lib/hooks/useGetTheme/useGetTheme.test.js +81 -0
- package/lib/hooks/useTShirtSize/useTShirtSize.js +5 -3
- package/lib/hooks/useTShirtSize/useTShirtSize.test.js +17 -0
- package/lib/index.js +3 -3
- package/lib/recipes/NextGen/ListViewNextGen.stories.js +5 -134
- package/lib/recipes/NextGen/ModalNextGen.stories.js +9 -8
- package/lib/recipes/NextGen/NavBarNextGen.stories.js +2 -216
- package/lib/recipes/NextGen/NextGenDataTable.stories.js +2 -135
- package/lib/styles/sizes.js +11 -0
- package/lib/styles/theme.js +4 -12
- package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +88 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/customProperties/icons.js +16 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/customProperties/index.js +16 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/index.js +1 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/nextGenDarkModeOverride.js +22 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkDataTable.chomatic.stories.js +12 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkListView.chromatic.stories.js +12 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkNavStory.chomatic.stories.js +12 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkStickerSheet.chromatic.stories.js +12 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/avatar.js +43 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/badges.js +88 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +97 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/cards.js +15 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +60 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/iconBadge.js +67 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/input.js +26 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/links.js +39 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/lsitview.js +24 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/menu.js +26 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/message.js +52 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/navbar.js +141 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +62 -0
- package/lib/styles/themes/astro/customProperties/icons.js +14 -0
- package/lib/styles/themes/astro/customProperties/index.js +6 -0
- package/lib/styles/themes/astro/customProperties/styles.js +3 -0
- package/lib/styles/themes/next-gen/colors/colors.js +22 -4
- package/lib/styles/themes/next-gen/colors/iconWrapper.js +23 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +12 -2
- package/lib/styles/themes/next-gen/customProperties/icons.js +14 -0
- package/lib/styles/themes/next-gen/customProperties/index.js +6 -0
- package/lib/styles/themes/next-gen/customProperties/styles.js +3 -0
- package/lib/styles/themes/next-gen/forms.js +3 -3
- package/lib/styles/themes/next-gen/next-gen.js +4 -5
- package/lib/styles/themes/next-gen/sizes.js +10 -1
- package/lib/styles/themes/next-gen/stories/DataTableNextGenComponent.js +141 -0
- package/lib/styles/themes/next-gen/stories/ListViewItemNextGen.js +75 -0
- package/lib/styles/themes/next-gen/stories/ListViewNextGenComponent.js +58 -0
- package/lib/styles/themes/next-gen/stories/NavBarNextGenComponent.js +182 -0
- package/lib/styles/themes/next-gen/stories/NextGenDataTable.chromatic.stories.js +12 -0
- package/lib/styles/themes/next-gen/stories/NextGenListView.chromatic.stories.js +12 -0
- package/lib/styles/themes/next-gen/stories/NextGenListViewItem.stories.js +26 -0
- package/lib/styles/themes/next-gen/stories/NextGenNavBar.chromatic.stories.js +12 -0
- package/lib/styles/themes/next-gen/stories/NextGenStickerSheet.chromatic.stories.js +12 -0
- package/lib/styles/themes/next-gen/stories/StickerSheetComponent.js +277 -0
- package/lib/styles/themes/next-gen/variants/avatar.js +43 -0
- package/lib/styles/themes/next-gen/variants/badges.js +94 -0
- package/lib/styles/themes/next-gen/variants/button.js +5 -4
- package/lib/styles/themes/next-gen/variants/cards.js +21 -2
- package/lib/styles/themes/next-gen/variants/iconWrapper.js +43 -0
- package/lib/styles/themes/next-gen/variants/input.js +9 -9
- package/lib/styles/themes/next-gen/variants/label.js +1 -1
- package/lib/styles/themes/next-gen/variants/links.js +7 -1
- package/lib/styles/themes/next-gen/variants/listview.js +68 -0
- package/lib/styles/themes/next-gen/variants/menu.js +28 -0
- package/lib/styles/themes/next-gen/variants/messages.js +40 -0
- package/lib/styles/themes/next-gen/variants/navbar.js +124 -0
- package/lib/styles/themes/next-gen/variants/navigationHeader.js +6 -4
- package/lib/styles/themes/next-gen/variants/tabs.js +28 -0
- package/lib/styles/themes/next-gen/variants/text.js +18 -7
- package/lib/styles/themes/next-gen/variants/variants.js +31 -331
- package/lib/types/iconWrapper.js +1 -0
- package/lib/utils/devUtils/constants/logos.js +74 -0
- package/lib/utils/devUtils/constants/tShirtSizes.js +5 -0
- package/lib/utils/devUtils/constants/themes.js +5 -0
- package/lib/utils/devUtils/shouldReturnComingSoon.js +27 -0
- package/lib/utils/docUtils/iconSizeProps.js +1 -1
- package/lib/utils/testUtils/testWrapper.js +10 -4
- package/package.json +1 -1
@@ -0,0 +1,141 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
|
+
import React from 'react';
|
3
|
+
import { Badge, Box, DataTable, DataTableBody, DataTableCell, DataTableColumn, DataTableHeader, DataTableMenu, DataTableRow, Text } from '../../../../index';
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
|
+
export default {
|
6
|
+
title: 'Next Gen Recipes/DataTable'
|
7
|
+
};
|
8
|
+
var getCellProps = function getCellProps(columnKey, align) {
|
9
|
+
return {
|
10
|
+
pr: columnKey !== 'menu' ? 'lg' : 12,
|
11
|
+
pl: columnKey === 'menu' ? 0 : 'lg',
|
12
|
+
hideHeader: columnKey === 'menu',
|
13
|
+
align: align
|
14
|
+
};
|
15
|
+
};
|
16
|
+
export var DataTableNextGenComponent = function DataTableNextGenComponent() {
|
17
|
+
var date = '2023-05-03';
|
18
|
+
var time = '07:16:30 pm UTC';
|
19
|
+
var timestampCell = ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, null, date), ___EmotionJSX(Box, null, time));
|
20
|
+
var columns = [{
|
21
|
+
name: 'Timestamp',
|
22
|
+
key: 'timestamp'
|
23
|
+
}, {
|
24
|
+
name: 'Event Type',
|
25
|
+
key: 'eventType'
|
26
|
+
}, {
|
27
|
+
name: 'Description',
|
28
|
+
key: 'description'
|
29
|
+
}, {
|
30
|
+
name: 'Status',
|
31
|
+
key: 'status',
|
32
|
+
isSortable: true
|
33
|
+
}, {
|
34
|
+
name: 'User Identity',
|
35
|
+
key: 'userIdentity'
|
36
|
+
}, {
|
37
|
+
name: 'Menu',
|
38
|
+
key: 'menu'
|
39
|
+
}];
|
40
|
+
var rows = [{
|
41
|
+
id: 1,
|
42
|
+
timestamp: timestampCell,
|
43
|
+
eventType: 'User Access Allowed',
|
44
|
+
description: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, null, "Passed Role Access"), ___EmotionJSX(Box, null, "Control")),
|
45
|
+
status: ___EmotionJSX(Badge, {
|
46
|
+
label: "Approved",
|
47
|
+
variant: "success",
|
48
|
+
sx: {
|
49
|
+
width: '100px'
|
50
|
+
}
|
51
|
+
}),
|
52
|
+
userIdentity: 'Vincent Diep',
|
53
|
+
menu: ___EmotionJSX(DataTableMenu, null)
|
54
|
+
}, {
|
55
|
+
id: 2,
|
56
|
+
timestamp: timestampCell,
|
57
|
+
eventType: 'User Access Denied',
|
58
|
+
description: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, {
|
59
|
+
display: "block"
|
60
|
+
}, "Passed Role Access"), ___EmotionJSX(Box, {
|
61
|
+
display: "block"
|
62
|
+
}, "Control")),
|
63
|
+
status: ___EmotionJSX(Badge, {
|
64
|
+
label: "Rejected",
|
65
|
+
variant: "danger",
|
66
|
+
sx: {
|
67
|
+
width: '100px'
|
68
|
+
}
|
69
|
+
}),
|
70
|
+
userIdentity: 'Vincent Diep',
|
71
|
+
menu: ___EmotionJSX(DataTableMenu, null)
|
72
|
+
}, {
|
73
|
+
id: 3,
|
74
|
+
timestamp: timestampCell,
|
75
|
+
eventType: 'User Access Allowed',
|
76
|
+
description: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, {
|
77
|
+
display: "block"
|
78
|
+
}, "Passed Role Access"), ___EmotionJSX(Box, {
|
79
|
+
display: "block"
|
80
|
+
}, "Control")),
|
81
|
+
status: ___EmotionJSX(Badge, {
|
82
|
+
label: "Inactive",
|
83
|
+
variant: "secondary",
|
84
|
+
sx: {
|
85
|
+
width: '100px'
|
86
|
+
}
|
87
|
+
}),
|
88
|
+
userIdentity: 'Vincent Diep',
|
89
|
+
menu: ___EmotionJSX(DataTableMenu, null)
|
90
|
+
}, {
|
91
|
+
id: 4,
|
92
|
+
timestamp: timestampCell,
|
93
|
+
eventType: 'User Access Allowed',
|
94
|
+
description: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, null, "Passed Role Access"), ___EmotionJSX(Box, null, "Control")),
|
95
|
+
status: ___EmotionJSX(Badge, {
|
96
|
+
label: "Approved",
|
97
|
+
variant: "success",
|
98
|
+
sx: {
|
99
|
+
width: '100px'
|
100
|
+
}
|
101
|
+
}),
|
102
|
+
userIdentity: 'Vincent Diep',
|
103
|
+
menu: ___EmotionJSX(DataTableMenu, null)
|
104
|
+
}, {
|
105
|
+
id: 5,
|
106
|
+
timestamp: timestampCell,
|
107
|
+
eventType: 'User Access Allowed',
|
108
|
+
description: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, null, "Passed Role Access"), ___EmotionJSX(Box, null, "Control")),
|
109
|
+
status: ___EmotionJSX(Badge, {
|
110
|
+
label: "Approved",
|
111
|
+
variant: "success",
|
112
|
+
sx: {
|
113
|
+
width: '100px'
|
114
|
+
}
|
115
|
+
}),
|
116
|
+
userIdentity: 'Vincent Diep',
|
117
|
+
menu: ___EmotionJSX(DataTableMenu, null)
|
118
|
+
}];
|
119
|
+
return ___EmotionJSX(Box, {
|
120
|
+
backgroundColor: "background.base",
|
121
|
+
p: "lg"
|
122
|
+
}, ___EmotionJSX(DataTable, {
|
123
|
+
"aria-label": "Static table",
|
124
|
+
height: "100%",
|
125
|
+
density: "spacious",
|
126
|
+
scale: "xl"
|
127
|
+
}, ___EmotionJSX(DataTableHeader, {
|
128
|
+
columns: columns
|
129
|
+
}, function (column) {
|
130
|
+
return ___EmotionJSX(DataTableColumn, _extends({}, getCellProps(column.key, false), {
|
131
|
+
minWidth: column.key !== 'menu' ? 175 : 50,
|
132
|
+
width: column.key !== 'menu' ? '19.4%' : 50
|
133
|
+
}), ___EmotionJSX(Text, null, column.name));
|
134
|
+
}), ___EmotionJSX(DataTableBody, {
|
135
|
+
items: rows
|
136
|
+
}, function (item) {
|
137
|
+
return ___EmotionJSX(DataTableRow, null, function (columnKey) {
|
138
|
+
return ___EmotionJSX(DataTableCell, getCellProps(columnKey, false), item[columnKey]);
|
139
|
+
});
|
140
|
+
})));
|
141
|
+
};
|
@@ -0,0 +1,75 @@
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
9
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
10
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
11
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
13
|
+
import React from 'react';
|
14
|
+
import TrashCanOutlineIcon from '@pingux/mdi-react/TrashCanOutlineIcon';
|
15
|
+
import { Badge, Box, Icon, IconWrapper, Item, ListViewItem, ListViewItemMenu, Text } from '../../../../index';
|
16
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
17
|
+
var textSlotContainerStyle = {
|
18
|
+
ml: 'md',
|
19
|
+
gap: '2px',
|
20
|
+
overflow: 'hidden',
|
21
|
+
textOverflow: 'ellipsis',
|
22
|
+
flexShrink: '4',
|
23
|
+
'div:has > div': {
|
24
|
+
whiteSpace: 'nowrap',
|
25
|
+
overflow: 'hidden',
|
26
|
+
flexGrow: 4
|
27
|
+
}
|
28
|
+
};
|
29
|
+
export var TextSlot = function TextSlot(props) {
|
30
|
+
var title = props.title,
|
31
|
+
category = props.category,
|
32
|
+
description = props.description;
|
33
|
+
return ___EmotionJSX(Box, {
|
34
|
+
sx: _objectSpread({}, textSlotContainerStyle)
|
35
|
+
}, ___EmotionJSX(Text, {
|
36
|
+
textOverflow: "ellipsis",
|
37
|
+
fontWeight: "2",
|
38
|
+
color: "text.secondary"
|
39
|
+
}, title), ___EmotionJSX(Text, {
|
40
|
+
textOverflow: "ellipsis"
|
41
|
+
}, description), ___EmotionJSX(Badge, {
|
42
|
+
variant: "secondary",
|
43
|
+
label: category
|
44
|
+
}));
|
45
|
+
};
|
46
|
+
export var ListViewItemNextGen = function ListViewItemNextGen(props) {
|
47
|
+
var item = props.item;
|
48
|
+
return ___EmotionJSX(ListViewItem, _extends({}, item, {
|
49
|
+
data: {
|
50
|
+
icon: null
|
51
|
+
},
|
52
|
+
slots: {
|
53
|
+
leftOfData: ___EmotionJSX(IconWrapper, {
|
54
|
+
color: "purple",
|
55
|
+
icon: TrashCanOutlineIcon,
|
56
|
+
size: "md",
|
57
|
+
title: {
|
58
|
+
name: 'trash can'
|
59
|
+
},
|
60
|
+
isCircle: true
|
61
|
+
}),
|
62
|
+
rightOfData: ___EmotionJSX(TextSlot, item)
|
63
|
+
},
|
64
|
+
hasSeparator: false
|
65
|
+
}), ___EmotionJSX(ListViewItemMenu, null, ___EmotionJSX(Item, {
|
66
|
+
key: "enable"
|
67
|
+
}, ___EmotionJSX(Box, {
|
68
|
+
isRow: true,
|
69
|
+
gap: "sm",
|
70
|
+
px: "sm",
|
71
|
+
py: "xs"
|
72
|
+
}, ___EmotionJSX(Icon, {
|
73
|
+
icon: TrashCanOutlineIcon
|
74
|
+
}), ___EmotionJSX(Text, null, "Delete")))));
|
75
|
+
};
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
|
2
|
+
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
3
|
+
import React from 'react';
|
4
|
+
import TrashCanOutlineIcon from '@pingux/mdi-react/TrashCanOutlineIcon';
|
5
|
+
import { Box, IconWrapper, Item, ListView, ListViewItem } from '../../../../index';
|
6
|
+
import { TextSlot } from './ListViewItemNextGen';
|
7
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
8
|
+
var loremText = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';
|
9
|
+
var items = _Array$from({
|
10
|
+
length: 300
|
11
|
+
}, function (_, index) {
|
12
|
+
var id = (index + 1).toString();
|
13
|
+
return {
|
14
|
+
key: "Animal".concat(id),
|
15
|
+
name: "Animal".concat(id),
|
16
|
+
id: id
|
17
|
+
};
|
18
|
+
});
|
19
|
+
var colors = ['cyan', 'orange', 'red', 'green', 'purple', 'yellow', 'teal', 'pink', 'yellow', 'green'];
|
20
|
+
var getColor = function getColor(index) {
|
21
|
+
var lastDigit = index % 10;
|
22
|
+
return colors[lastDigit];
|
23
|
+
};
|
24
|
+
export var ListViewNextGen = function ListViewNextGen() {
|
25
|
+
return ___EmotionJSX(Box, {
|
26
|
+
backgroundColor: "background.base",
|
27
|
+
p: "lg"
|
28
|
+
}, ___EmotionJSX(Box, {
|
29
|
+
height: "400px",
|
30
|
+
backgroundColor: "background.base"
|
31
|
+
}, ___EmotionJSX(ListView, {
|
32
|
+
items: items,
|
33
|
+
selectionMode: "single"
|
34
|
+
}, _mapInstanceProperty(items).call(items, function (item, index) {
|
35
|
+
return ___EmotionJSX(Item, item, ___EmotionJSX(ListViewItem, {
|
36
|
+
data: {
|
37
|
+
icon: null
|
38
|
+
},
|
39
|
+
slots: {
|
40
|
+
leftOfData: ___EmotionJSX(IconWrapper, {
|
41
|
+
color: getColor(index),
|
42
|
+
icon: TrashCanOutlineIcon,
|
43
|
+
size: "md",
|
44
|
+
title: {
|
45
|
+
name: 'trash can'
|
46
|
+
},
|
47
|
+
isCircle: true
|
48
|
+
}),
|
49
|
+
rightOfData: ___EmotionJSX(TextSlot, {
|
50
|
+
title: item.name,
|
51
|
+
key: item.key,
|
52
|
+
description: loremText
|
53
|
+
})
|
54
|
+
},
|
55
|
+
hasSeparator: false
|
56
|
+
}));
|
57
|
+
}))));
|
58
|
+
};
|
@@ -0,0 +1,182 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import AccountCheckIcon from '@pingux/mdi-react/AccountCheckOutlineIcon';
|
3
|
+
import AccountMultipleOutlineIcon from '@pingux/mdi-react/AccountMultipleOutlineIcon';
|
4
|
+
import AppsIcon from '@pingux/mdi-react/AppsIcon';
|
5
|
+
import CheckCircleOutlineIcon from '@pingux/mdi-react/CheckCircleOutlineIcon';
|
6
|
+
import CodeTagsIcon from '@pingux/mdi-react/CodeTagsIcon';
|
7
|
+
import CogOutlineIcon from '@pingux/mdi-react/CogOutlineIcon';
|
8
|
+
import FileTreeIcon from '@pingux/mdi-react/FileTreeIcon';
|
9
|
+
import LayersOutlineIcon from '@pingux/mdi-react/LayersOutlineIcon';
|
10
|
+
import PaletteOutlineIcon from '@pingux/mdi-react/PaletteOutlineIcon';
|
11
|
+
import ShieldCheckOutlineIcon from '@pingux/mdi-react/ShieldCheckOutlineIcon';
|
12
|
+
import ShowChartIcon from '@pingux/mdi-react/ShowChartIcon';
|
13
|
+
import DashboardIcon from '@pingux/mdi-react/ViewDashboardOutlineIcon';
|
14
|
+
import WidgetsOutlineIcon from '@pingux/mdi-react/WidgetsOutlineIcon';
|
15
|
+
import useGetTheme from '../../../../hooks/useGetTheme';
|
16
|
+
import { Box, NavBar, NavBarItem, NavBarItemButton, NavBarSection, Separator } from '../../../../index';
|
17
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
18
|
+
var data = [{
|
19
|
+
'data-id': 'dashboard-data-id',
|
20
|
+
heading: 'Monitoring',
|
21
|
+
icon: ShowChartIcon,
|
22
|
+
key: 'Monitoring',
|
23
|
+
children: [___EmotionJSX(NavBarItemButton, {
|
24
|
+
key: "Dashboards",
|
25
|
+
id: "Dashboards"
|
26
|
+
}, "Dashboards"), ___EmotionJSX(NavBarItemButton, {
|
27
|
+
key: "Audit",
|
28
|
+
id: "Audit"
|
29
|
+
}, "Audits")]
|
30
|
+
}, {
|
31
|
+
'data-id': 'Directory-data-id',
|
32
|
+
heading: 'Directory',
|
33
|
+
icon: AccountMultipleOutlineIcon,
|
34
|
+
key: 'Directory',
|
35
|
+
children: [___EmotionJSX(NavBarItemButton, {
|
36
|
+
key: "Users",
|
37
|
+
id: "Users"
|
38
|
+
}, "Users"), ___EmotionJSX(NavBarItemButton, {
|
39
|
+
key: "Group",
|
40
|
+
id: "Group"
|
41
|
+
}, "Groups")]
|
42
|
+
}, {
|
43
|
+
'data-id': 'Applications-data-id',
|
44
|
+
heading: 'Applications',
|
45
|
+
icon: AppsIcon,
|
46
|
+
key: 'Applications',
|
47
|
+
children: [___EmotionJSX(NavBarItemButton, {
|
48
|
+
key: "Applications-sub",
|
49
|
+
id: "Applications-sub"
|
50
|
+
}, "Applications"), ___EmotionJSX(NavBarItemButton, {
|
51
|
+
key: "Resources",
|
52
|
+
id: "Resources"
|
53
|
+
}, "Resourcess")]
|
54
|
+
}];
|
55
|
+
var secondData = [{
|
56
|
+
'data-id': 'Authentication-data-id',
|
57
|
+
heading: 'Authentication',
|
58
|
+
icon: CheckCircleOutlineIcon,
|
59
|
+
key: 'Authentication',
|
60
|
+
children: [___EmotionJSX(NavBarItemButton, {
|
61
|
+
key: "Authentication-Policies",
|
62
|
+
id: "Authentication-Policies"
|
63
|
+
}, "Authentication Policies"), ___EmotionJSX(NavBarItemButton, {
|
64
|
+
key: "Password-Policies",
|
65
|
+
id: "Password-Policies"
|
66
|
+
}, "Password Policies")]
|
67
|
+
}, {
|
68
|
+
'data-id': 'Threat Protection-data-id',
|
69
|
+
heading: 'Threat Protection',
|
70
|
+
icon: ShieldCheckOutlineIcon,
|
71
|
+
key: 'Threat Protection',
|
72
|
+
children: [___EmotionJSX(NavBarItemButton, {
|
73
|
+
key: "Risk Policies",
|
74
|
+
id: "Risk Policies"
|
75
|
+
}, "Risk Policies"), ___EmotionJSX(NavBarItemButton, {
|
76
|
+
key: "Predictors",
|
77
|
+
id: "Predictors"
|
78
|
+
}, "Predictors")]
|
79
|
+
}, {
|
80
|
+
'data-id': 'Threat Protection-data-id',
|
81
|
+
heading: 'Identity Verification',
|
82
|
+
icon: LayersOutlineIcon,
|
83
|
+
key: 'Identity Verification',
|
84
|
+
children: [___EmotionJSX(NavBarItemButton, {
|
85
|
+
key: "Verify Policies",
|
86
|
+
id: "Verify Policies"
|
87
|
+
}, "Verify Policies")]
|
88
|
+
}, {
|
89
|
+
'data-id': 'Digital Credentials-data-id',
|
90
|
+
heading: 'Digital Credentials',
|
91
|
+
icon: CodeTagsIcon,
|
92
|
+
key: 'Digital Credentials',
|
93
|
+
children: [___EmotionJSX(NavBarItemButton, {
|
94
|
+
key: "Management",
|
95
|
+
id: "Management"
|
96
|
+
}, "Management")]
|
97
|
+
}, {
|
98
|
+
'data-id': 'Authorization-data-id',
|
99
|
+
heading: 'Authorization',
|
100
|
+
icon: AccountCheckIcon,
|
101
|
+
key: 'Authorization',
|
102
|
+
children: [___EmotionJSX(NavBarItemButton, {
|
103
|
+
key: "Trust Framework",
|
104
|
+
id: "Trust Framework"
|
105
|
+
}, "Trust Framework"), ___EmotionJSX(NavBarItemButton, {
|
106
|
+
key: "Policies",
|
107
|
+
id: "Policies"
|
108
|
+
}, "Policies")]
|
109
|
+
}];
|
110
|
+
var thirdData = [{
|
111
|
+
'data-id': 'Integrations-data-id',
|
112
|
+
heading: 'Integrations',
|
113
|
+
icon: WidgetsOutlineIcon,
|
114
|
+
key: 'Integrations',
|
115
|
+
children: [___EmotionJSX(NavBarItemButton, {
|
116
|
+
key: "External IDPs",
|
117
|
+
id: "External IDPs"
|
118
|
+
}, "External IDPs"), ___EmotionJSX(NavBarItemButton, {
|
119
|
+
key: "Provisioning",
|
120
|
+
id: "Provisioning"
|
121
|
+
}, "Provisioning")]
|
122
|
+
}, {
|
123
|
+
'data-id': 'User Experience-data-id',
|
124
|
+
heading: 'User Experience',
|
125
|
+
icon: PaletteOutlineIcon,
|
126
|
+
key: 'User Experience',
|
127
|
+
children: [___EmotionJSX(NavBarItemButton, {
|
128
|
+
key: "Notification Templates",
|
129
|
+
id: "Notification Templates"
|
130
|
+
}, "Notification Templates"), ___EmotionJSX(NavBarItemButton, {
|
131
|
+
key: "Notification Policies",
|
132
|
+
id: "Notification Policies"
|
133
|
+
}, "Notification Policies")]
|
134
|
+
}, {
|
135
|
+
'data-id': 'Settings-data-id',
|
136
|
+
heading: 'Settings',
|
137
|
+
icon: CogOutlineIcon,
|
138
|
+
key: 'Settings',
|
139
|
+
children: [___EmotionJSX(NavBarItemButton, {
|
140
|
+
key: "Certificates & Key Pairs",
|
141
|
+
id: "Certificates & Key Pairs"
|
142
|
+
}, "Certificates & Key Pairs"), ___EmotionJSX(NavBarItemButton, {
|
143
|
+
key: "Domains",
|
144
|
+
id: "Domains"
|
145
|
+
}, "Domains")]
|
146
|
+
}];
|
147
|
+
export var NavBarNextGenComponent = function NavBarNextGenComponent() {
|
148
|
+
var _useGetTheme = useGetTheme(),
|
149
|
+
icons = _useGetTheme.icons;
|
150
|
+
return ___EmotionJSX(NavBar, null, ___EmotionJSX(Box, {
|
151
|
+
padding: "md",
|
152
|
+
key: "top-logo-parent"
|
153
|
+
}, icons.pingLogoHorizontalSmall), ___EmotionJSX(Box, {
|
154
|
+
paddingBottom: "xl",
|
155
|
+
key: "first-section-container"
|
156
|
+
}, ___EmotionJSX(NavBarItem, {
|
157
|
+
"data-id": "nav-bar-item",
|
158
|
+
icon: DashboardIcon,
|
159
|
+
id: "Overview",
|
160
|
+
key: "Overview",
|
161
|
+
text: "Overview"
|
162
|
+
}), ___EmotionJSX(NavBarSection, {
|
163
|
+
items: data,
|
164
|
+
"data-id": "nav-bar-section"
|
165
|
+
}), ___EmotionJSX(Separator, {
|
166
|
+
variant: "separator.navBarSeparator"
|
167
|
+
}), ___EmotionJSX(NavBarItem, {
|
168
|
+
"data-id": "nav-bar-item",
|
169
|
+
icon: FileTreeIcon,
|
170
|
+
id: "DaVinci",
|
171
|
+
key: "DaVinci",
|
172
|
+
text: "DaVinci"
|
173
|
+
}), ___EmotionJSX(NavBarSection, {
|
174
|
+
items: secondData,
|
175
|
+
"data-id": "second-nav-bar-section"
|
176
|
+
}), ___EmotionJSX(Separator, {
|
177
|
+
variant: "separator.navBarSeparator"
|
178
|
+
}), ___EmotionJSX(NavBarSection, {
|
179
|
+
items: thirdData,
|
180
|
+
"data-id": "third-nav-bar-section"
|
181
|
+
})));
|
182
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { AstroProvider, NextGenTheme } from '../../../..';
|
3
|
+
import { DataTableNextGenComponent } from './DataTableNextGenComponent';
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
|
+
export default {
|
6
|
+
title: 'Chromatic Only NextGen DataTable'
|
7
|
+
};
|
8
|
+
export var Default = function Default() {
|
9
|
+
return ___EmotionJSX(AstroProvider, {
|
10
|
+
theme: NextGenTheme
|
11
|
+
}, ___EmotionJSX(DataTableNextGenComponent, null));
|
12
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { AstroProvider, NextGenTheme } from '../../../..';
|
3
|
+
import { ListViewNextGen } from './ListViewNextGenComponent';
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
|
+
export default {
|
6
|
+
title: 'Chromatic Only NextGen ListView'
|
7
|
+
};
|
8
|
+
export var Default = function Default() {
|
9
|
+
return ___EmotionJSX(AstroProvider, {
|
10
|
+
theme: NextGenTheme
|
11
|
+
}, ___EmotionJSX(ListViewNextGen, null));
|
12
|
+
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { Box } from '../../../..';
|
3
|
+
import { ListViewItemNextGen } from './ListViewItemNextGen';
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
|
+
export default {
|
6
|
+
title: 'Next Gen Recipes/NextGen ListViewItem',
|
7
|
+
component: 'Tabs'
|
8
|
+
};
|
9
|
+
var item = {
|
10
|
+
key: 'test',
|
11
|
+
id: 'test',
|
12
|
+
name: 'JavaScript Array For Each',
|
13
|
+
title: 'JavaScript Array For Each',
|
14
|
+
category: 'Code Snippet',
|
15
|
+
description: 'Sample code demonstrating how to iterate over a description'
|
16
|
+
};
|
17
|
+
export var Default = function Default() {
|
18
|
+
return ___EmotionJSX(Box, {
|
19
|
+
sx: {
|
20
|
+
border: '1px solid',
|
21
|
+
borderColor: 'border.base'
|
22
|
+
}
|
23
|
+
}, ___EmotionJSX(ListViewItemNextGen, {
|
24
|
+
item: item
|
25
|
+
}));
|
26
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { AstroProvider, NextGenTheme } from '../../../..';
|
3
|
+
import { NavBarNextGenComponent } from './NavBarNextGenComponent';
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
|
+
export default {
|
6
|
+
title: 'Chromatic Only NextGen NavBar'
|
7
|
+
};
|
8
|
+
export var Default = function Default() {
|
9
|
+
return ___EmotionJSX(AstroProvider, {
|
10
|
+
theme: NextGenTheme
|
11
|
+
}, ___EmotionJSX(NavBarNextGenComponent, null));
|
12
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { AstroProvider, NextGenTheme } from '../../../..';
|
3
|
+
import StickerSheetComponent from './StickerSheetComponent';
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
|
+
export default {
|
6
|
+
title: 'NextGen Sticker Sheet'
|
7
|
+
};
|
8
|
+
export var Default = function Default() {
|
9
|
+
return ___EmotionJSX(AstroProvider, {
|
10
|
+
theme: NextGenTheme
|
11
|
+
}, ___EmotionJSX(StickerSheetComponent, null));
|
12
|
+
};
|