@fluentui/react-migration-v8-v9 1.0.31 → 9.1.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/CHANGELOG.json +10 -519
- package/CHANGELOG.md +7 -278
- package/lib/components/Button/ActionButtonShim.js.map +1 -1
- package/lib/components/Button/ButtonShim.js.map +1 -1
- package/lib/components/Button/CommandButtonShim.js.map +1 -1
- package/lib/components/Button/CompoundButtonShim.js.map +1 -1
- package/lib/components/Button/DefaultButtonShim.js.map +1 -1
- package/lib/components/Button/MenuButtonShim.js.map +1 -1
- package/lib/components/Button/PrimaryButtonShim.js.map +1 -1
- package/lib/components/Button/ToggleButtonShim.js.map +1 -1
- package/lib/components/Button/index.js.map +1 -1
- package/lib/components/Button/shimButtonProps.js.map +1 -1
- package/lib/components/Menu/MenuShim.js.map +1 -1
- package/lib/components/Menu/index.js.map +1 -1
- package/lib/components/Menu/shimMenuProps.js.map +1 -1
- package/lib/components/Stack/StackItemShim.js.map +1 -1
- package/lib/components/Stack/StackShim.js.map +1 -1
- package/lib/components/Stack/index.js.map +1 -1
- package/lib/components/Stack/stackUtils.js.map +1 -1
- package/lib/components/Theme/index.js.map +1 -1
- package/lib/components/Theme/themeDuplicates.js.map +1 -1
- package/lib/components/Theme/v8ThemeShim.js +2 -0
- package/lib/components/Theme/v8ThemeShim.js.map +1 -1
- package/lib/components/Theme/v9BrandVariantsShim.js.map +1 -1
- package/lib/components/Theme/v9ThemeShim.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/stories/ThemeShim/ThemePreviewV8.js +316 -0
- package/lib/stories/ThemeShim/ThemePreviewV8.js.map +1 -0
- package/lib/stories/ThemeShim/ThemePreviewV9.js +197 -0
- package/lib/stories/ThemeShim/ThemePreviewV9.js.map +1 -0
- package/lib-commonjs/components/Button/ActionButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/ButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/CommandButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/CompoundButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/DefaultButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/MenuButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/PrimaryButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/ToggleButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/index.js.map +1 -1
- package/lib-commonjs/components/Button/shimButtonProps.js.map +1 -1
- package/lib-commonjs/components/Menu/MenuShim.js.map +1 -1
- package/lib-commonjs/components/Menu/index.js.map +1 -1
- package/lib-commonjs/components/Menu/shimMenuProps.js.map +1 -1
- package/lib-commonjs/components/Stack/StackItemShim.js.map +1 -1
- package/lib-commonjs/components/Stack/StackShim.js.map +1 -1
- package/lib-commonjs/components/Stack/index.js.map +1 -1
- package/lib-commonjs/components/Stack/stackUtils.js.map +1 -1
- package/lib-commonjs/components/Theme/index.js.map +1 -1
- package/lib-commonjs/components/Theme/themeDuplicates.js.map +1 -1
- package/lib-commonjs/components/Theme/v8ThemeShim.js +2 -0
- package/lib-commonjs/components/Theme/v8ThemeShim.js.map +1 -1
- package/lib-commonjs/components/Theme/v9BrandVariantsShim.js.map +1 -1
- package/lib-commonjs/components/Theme/v9ThemeShim.js.map +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/stories/ThemeShim/ThemePreviewV8.js +323 -0
- package/lib-commonjs/stories/ThemeShim/ThemePreviewV8.js.map +1 -0
- package/lib-commonjs/stories/ThemeShim/ThemePreviewV9.js +196 -0
- package/lib-commonjs/stories/ThemeShim/ThemePreviewV9.js.map +1 -0
- package/package.json +9 -6
- package/lib-amd/components/Button/ActionButtonShim.js +0 -14
- package/lib-amd/components/Button/ActionButtonShim.js.map +0 -1
- package/lib-amd/components/Button/ButtonShim.js +0 -17
- package/lib-amd/components/Button/ButtonShim.js.map +0 -1
- package/lib-amd/components/Button/CommandButtonShim.js +0 -7
- package/lib-amd/components/Button/CommandButtonShim.js.map +0 -1
- package/lib-amd/components/Button/CompoundButtonShim.js +0 -15
- package/lib-amd/components/Button/CompoundButtonShim.js.map +0 -1
- package/lib-amd/components/Button/DefaultButtonShim.js +0 -12
- package/lib-amd/components/Button/DefaultButtonShim.js.map +0 -1
- package/lib-amd/components/Button/MenuButtonShim.js +0 -20
- package/lib-amd/components/Button/MenuButtonShim.js.map +0 -1
- package/lib-amd/components/Button/PrimaryButtonShim.js +0 -12
- package/lib-amd/components/Button/PrimaryButtonShim.js.map +0 -1
- package/lib-amd/components/Button/ToggleButtonShim.js +0 -14
- package/lib-amd/components/Button/ToggleButtonShim.js.map +0 -1
- package/lib-amd/components/Button/index.js +0 -14
- package/lib-amd/components/Button/index.js.map +0 -1
- package/lib-amd/components/Button/shimButtonProps.js +0 -19
- package/lib-amd/components/Button/shimButtonProps.js.map +0 -1
- package/lib-amd/components/Menu/MenuShim.js +0 -42
- package/lib-amd/components/Menu/MenuShim.js.map +0 -1
- package/lib-amd/components/Menu/index.js +0 -7
- package/lib-amd/components/Menu/index.js.map +0 -1
- package/lib-amd/components/Menu/shimMenuProps.js +0 -30
- package/lib-amd/components/Menu/shimMenuProps.js.map +0 -1
- package/lib-amd/components/Stack/StackItemShim.js +0 -150
- package/lib-amd/components/Stack/StackItemShim.js.map +0 -1
- package/lib-amd/components/Stack/StackShim.js +0 -242
- package/lib-amd/components/Stack/StackShim.js.map +0 -1
- package/lib-amd/components/Stack/index.js +0 -7
- package/lib-amd/components/Stack/index.js.map +0 -1
- package/lib-amd/components/Stack/stackUtils.js +0 -168
- package/lib-amd/components/Stack/stackUtils.js.map +0 -1
- package/lib-amd/components/Theme/index.js +0 -9
- package/lib-amd/components/Theme/index.js.map +0 -1
- package/lib-amd/components/Theme/themeDuplicates.js +0 -864
- package/lib-amd/components/Theme/themeDuplicates.js.map +0 -1
- package/lib-amd/components/Theme/v8ThemeShim.js +0 -140
- package/lib-amd/components/Theme/v8ThemeShim.js.map +0 -1
- package/lib-amd/components/Theme/v9BrandVariantsShim.js +0 -75
- package/lib-amd/components/Theme/v9BrandVariantsShim.js.map +0 -1
- package/lib-amd/components/Theme/v9ThemeShim.js +0 -190
- package/lib-amd/components/Theme/v9ThemeShim.js.map +0 -1
- package/lib-amd/index.js +0 -38
- package/lib-amd/index.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v9ThemeShim.js","sourceRoot":"../src/","sources":["packages/react-migration-v8-v9/src/components/Theme/v9ThemeShim.ts"],"names":[],"mappings":";;;;IAMA;;OAEG;IACH,IAAM,cAAc,GAAG,UAAC,OAAiB,EAAE,QAAiB;QAC1D,OAAO;YACL,uBAAuB,EAAE,OAAO,CAAC,cAAc;YAC/C,4BAA4B,EAAE,OAAO,CAAC,cAAc;YACpD,8BAA8B,EAAE,OAAO,CAAC,cAAc;YACtD,+BAA+B,EAAE,OAAO,CAAC,cAAc;YACvD,uBAAuB,EAAE,OAAO,CAAC,gBAAgB;YACjD,4BAA4B,EAAE,OAAO,CAAC,cAAc;YACpD,8BAA8B,EAAE,OAAO,CAAC,cAAc;YACtD,+BAA+B,EAAE,OAAO,CAAC,cAAc;YACvD,iCAAiC,EAAE,OAAO,CAAC,YAAY;YACvD,mCAAmC,EAAE,OAAO,CAAC,YAAY;YACzD,oCAAoC,EAAE,OAAO,CAAC,YAAY;YAC1D,uBAAuB,EAAE,OAAO,CAAC,eAAe;YAChD,4BAA4B,EAAE,OAAO,CAAC,gBAAgB;YACtD,8BAA8B,EAAE,OAAO,CAAC,gBAAgB;YACxD,+BAA+B,EAAE,OAAO,CAAC,gBAAgB;YACzD,iCAAiC,EAAE,OAAO,CAAC,YAAY;YACvD,mCAAmC,EAAE,OAAO,CAAC,YAAY;YACzD,oCAAoC,EAAE,OAAO,CAAC,YAAY;YAC1D,uBAAuB,EAAE,OAAO,CAAC,iBAAiB;YAClD,8BAA8B,EAAE,OAAO,CAAC,kBAAkB;YAC1D,sCAAsC,EAAE,4BAAU,CAAC,EAAE,CAA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E,kBAAkB;YACzC,gCAAgC,EAAE,kBAAkB;YACpD,4BAA4B,EAAE,kBAAkB;YAChD,+BAA+B,EAAE,kBAAkB;YACnD,2BAA2B,EAAE,kBAAkB;YAC/C,uBAAuB,EAAE,kBAAkB;YAC3C,mBAAmB,EAAE,kBAAkB;SACxC,CAAC;IACJ,CAAC,CAAC;IAEF;;OAEG;IACH,IAAM,eAAe,GAAG,UAAC,OAAiB;QACxC,OAAO;YACL,OAAO,EAAE,OAAO,CAAC,UAAU;YAC3B,OAAO,EAAE,OAAO,CAAC,UAAU;YAC3B,QAAQ,EAAE,OAAO,CAAC,WAAW;YAC7B,QAAQ,EAAE,OAAO,CAAC,WAAW;SAC9B,CAAC;IACJ,CAAC,CAAC;IAEF;;OAEG;IACH,IAAM,qBAAqB,GAAG,UAAC,OAAiB;QAC9C,OAAO;YACL,iBAAiB,EAAE,OAAO,CAAC,cAAc;YACzC,kBAAkB,EAAE,OAAO,CAAC,cAAc;YAC1C,iBAAiB,EAAE,OAAO,CAAC,cAAc;SAC1C,CAAC;IACJ,CAAC,CAAC;IAEF;;;OAGG;IACI,IAAM,aAAa,GAAG,UAAC,OAAgB,EAAE,WAAqB;QACnE,IAAM,SAAS,GAAG,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,gCAAa,CAAC;QAE/C,+EACK,SAAS,GACT,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,GACnD,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,GAChC,qBAAqB,CAAC,OAAO,CAAC,OAAO,CAAC,EACzC;IACJ,CAAC,CAAC;IATW,QAAA,aAAa,iBASxB","sourcesContent":["import { Theme as ThemeV8 } from '@fluentui/react';\nimport type { IEffects, IPalette } from '@fluentui/react';\nimport { Theme as ThemeV9, webLightTheme } from '@fluentui/react-components';\nimport type { BorderRadiusTokens, ColorTokens, ShadowTokens } from '@fluentui/react-components';\nimport { blackAlpha, whiteAlpha, grey } from './themeDuplicates';\n\n/**\n * Creates v9 color tokens from a v8 palette.\n */\nconst mapAliasColors = (palette: IPalette, inverted: boolean): ColorTokens => {\n return {\n colorNeutralForeground1: palette.neutralPrimary,\n colorNeutralForeground1Hover: palette.neutralPrimary,\n colorNeutralForeground1Pressed: palette.neutralPrimary,\n colorNeutralForeground1Selected: palette.neutralPrimary,\n colorNeutralForeground2: palette.neutralSecondary,\n colorNeutralForeground2Hover: palette.neutralPrimary,\n colorNeutralForeground2Pressed: palette.neutralPrimary,\n colorNeutralForeground2Selected: palette.neutralPrimary,\n colorNeutralForeground2BrandHover: palette.themePrimary,\n colorNeutralForeground2BrandPressed: palette.themeDarkAlt,\n colorNeutralForeground2BrandSelected: palette.themePrimary,\n colorNeutralForeground3: palette.neutralTertiary,\n colorNeutralForeground3Hover: palette.neutralSecondary,\n colorNeutralForeground3Pressed: palette.neutralSecondary,\n colorNeutralForeground3Selected: palette.neutralSecondary,\n colorNeutralForeground3BrandHover: palette.themePrimary,\n colorNeutralForeground3BrandPressed: palette.themeDarkAlt,\n colorNeutralForeground3BrandSelected: palette.themePrimary,\n colorNeutralForeground4: palette.neutralQuaternary,\n colorNeutralForegroundDisabled: palette.neutralTertiaryAlt,\n colorNeutralForegroundInvertedDisabled: whiteAlpha[40],\n colorBrandForegroundLink: palette.themeDarkAlt,\n colorBrandForegroundLinkHover: palette.themeDark,\n colorBrandForegroundLinkPressed: palette.themeDarker,\n colorBrandForegroundLinkSelected: palette.themeDarkAlt,\n colorNeutralForeground2Link: palette.neutralSecondary,\n colorNeutralForeground2LinkHover: palette.neutralPrimary,\n colorNeutralForeground2LinkPressed: palette.neutralPrimary,\n colorNeutralForeground2LinkSelected: palette.neutralPrimary,\n colorCompoundBrandForeground1: palette.themePrimary,\n colorCompoundBrandForeground1Hover: palette.themeDarkAlt,\n colorCompoundBrandForeground1Pressed: palette.themeDark,\n colorBrandForeground1: palette.themePrimary,\n colorBrandForeground2: palette.themeDarkAlt,\n colorNeutralForeground1Static: palette.neutralPrimary,\n colorNeutralForegroundInverted: palette.white,\n colorNeutralForegroundInvertedHover: palette.white,\n colorNeutralForegroundInvertedPressed: palette.white,\n colorNeutralForegroundInvertedSelected: palette.white,\n colorNeutralForegroundOnBrand: palette.white,\n colorNeutralForegroundStaticInverted: palette.white,\n colorNeutralForegroundInvertedLink: palette.white,\n colorNeutralForegroundInvertedLinkHover: palette.white,\n colorNeutralForegroundInvertedLinkPressed: palette.white,\n colorNeutralForegroundInvertedLinkSelected: palette.white,\n colorNeutralForegroundInverted2: palette.white,\n colorBrandForegroundInverted: palette.themeSecondary,\n colorBrandForegroundInvertedHover: palette.themeTertiary,\n colorBrandForegroundInvertedPressed: palette.themeSecondary,\n colorBrandForegroundOnLight: palette.themePrimary,\n colorBrandForegroundOnLightHover: palette.themeDarkAlt,\n colorBrandForegroundOnLightPressed: palette.themeDark,\n colorBrandForegroundOnLightSelected: palette.themeDark,\n colorNeutralBackground1: palette.white,\n colorNeutralBackground1Hover: palette.neutralLighter,\n colorNeutralBackground1Pressed: palette.neutralQuaternaryAlt,\n colorNeutralBackground1Selected: palette.neutralLight,\n colorNeutralBackground2: palette.neutralLighterAlt,\n colorNeutralBackground2Hover: palette.neutralLighter,\n colorNeutralBackground2Pressed: palette.neutralQuaternaryAlt,\n colorNeutralBackground2Selected: palette.neutralLight,\n colorNeutralBackground3: palette.neutralLighter,\n colorNeutralBackground3Hover: palette.neutralLight,\n colorNeutralBackground3Pressed: palette.neutralQuaternary,\n colorNeutralBackground3Selected: palette.neutralQuaternaryAlt,\n colorNeutralBackground4: palette.neutralLighter,\n colorNeutralBackground4Hover: palette.neutralLighterAlt,\n colorNeutralBackground4Pressed: palette.neutralLighter,\n colorNeutralBackground4Selected: palette.white,\n colorNeutralBackground5: palette.neutralLight,\n colorNeutralBackground5Hover: palette.neutralLighter,\n colorNeutralBackground5Pressed: palette.neutralLighter,\n colorNeutralBackground5Selected: palette.neutralLighterAlt,\n colorNeutralBackground6: palette.neutralLight,\n colorNeutralBackgroundStatic: grey[20],\n colorNeutralBackgroundInverted: palette.neutralSecondary,\n colorSubtleBackground: 'transparent',\n colorSubtleBackgroundHover: palette.neutralLighter,\n colorSubtleBackgroundPressed: palette.neutralQuaternaryAlt,\n colorSubtleBackgroundSelected: palette.neutralLight,\n colorSubtleBackgroundLightAlphaHover: inverted ? whiteAlpha[10] : whiteAlpha[80],\n colorSubtleBackgroundLightAlphaPressed: inverted ? whiteAlpha[5] : whiteAlpha[50],\n colorSubtleBackgroundLightAlphaSelected: 'transparent',\n colorSubtleBackgroundInverted: 'transparent',\n colorSubtleBackgroundInvertedHover: blackAlpha[10],\n colorSubtleBackgroundInvertedPressed: blackAlpha[30],\n colorSubtleBackgroundInvertedSelected: blackAlpha[20],\n colorTransparentBackground: 'transparent',\n colorTransparentBackgroundHover: 'transparent',\n colorTransparentBackgroundPressed: 'transparent',\n colorTransparentBackgroundSelected: 'transparent',\n colorNeutralBackgroundDisabled: palette.neutralLighter,\n colorNeutralBackgroundInvertedDisabled: whiteAlpha[10],\n colorNeutralStencil1: palette.neutralLight,\n colorNeutralStencil2: palette.neutralLighterAlt,\n colorNeutralStencil1Alpha: inverted ? whiteAlpha[10] : blackAlpha[10],\n colorNeutralStencil2Alpha: inverted ? whiteAlpha[5] : blackAlpha[5],\n colorBackgroundOverlay: blackAlpha[40],\n colorScrollbarOverlay: blackAlpha[50],\n colorBrandBackground: palette.themePrimary,\n colorBrandBackgroundHover: palette.themeDarkAlt,\n colorBrandBackgroundPressed: palette.themeDarker,\n colorBrandBackgroundSelected: palette.themeDark,\n colorCompoundBrandBackground: palette.themePrimary,\n colorCompoundBrandBackgroundHover: palette.themeDarkAlt,\n colorCompoundBrandBackgroundPressed: palette.themeDark,\n colorBrandBackgroundStatic: palette.themePrimary,\n colorBrandBackground2: palette.themeLighterAlt,\n colorBrandBackgroundInverted: palette.white,\n colorBrandBackgroundInvertedHover: palette.themeLighterAlt,\n colorBrandBackgroundInvertedPressed: palette.themeLight,\n colorBrandBackgroundInvertedSelected: palette.themeLighter,\n colorNeutralStrokeAccessible: palette.neutralSecondary,\n colorNeutralStrokeAccessibleHover: palette.neutralSecondary,\n colorNeutralStrokeAccessiblePressed: palette.neutralSecondary,\n colorNeutralStrokeAccessibleSelected: palette.themePrimary,\n colorNeutralStroke1: palette.neutralQuaternary,\n colorNeutralStroke1Hover: palette.neutralTertiaryAlt,\n colorNeutralStroke1Pressed: palette.neutralTertiaryAlt,\n colorNeutralStroke1Selected: palette.neutralTertiaryAlt,\n colorNeutralStroke2: palette.neutralQuaternaryAlt,\n colorNeutralStroke3: palette.neutralLighter,\n colorNeutralStrokeOnBrand: palette.white,\n colorNeutralStrokeOnBrand2: palette.white,\n colorNeutralStrokeOnBrand2Hover: palette.white,\n colorNeutralStrokeOnBrand2Pressed: palette.white,\n colorNeutralStrokeOnBrand2Selected: palette.white,\n colorBrandStroke1: palette.themePrimary,\n colorBrandStroke2: palette.themeLight,\n colorCompoundBrandStroke: palette.themePrimary,\n colorCompoundBrandStrokeHover: palette.themeDarkAlt,\n colorCompoundBrandStrokePressed: palette.themeDark,\n colorNeutralStrokeDisabled: palette.neutralQuaternaryAlt,\n colorNeutralStrokeInvertedDisabled: whiteAlpha[40],\n colorTransparentStroke: 'transparent',\n colorTransparentStrokeInteractive: 'transparent',\n colorTransparentStrokeDisabled: 'transparent',\n colorStrokeFocus1: palette.white,\n colorStrokeFocus2: palette.black,\n colorNeutralShadowAmbient: 'rgba(0,0,0,0.12)',\n colorNeutralShadowKey: 'rgba(0,0,0,0.14)',\n colorNeutralShadowAmbientLighter: 'rgba(0,0,0,0.06)',\n colorNeutralShadowKeyLighter: 'rgba(0,0,0,0.07)',\n colorNeutralShadowAmbientDarker: 'rgba(0,0,0,0.20)',\n colorNeutralShadowKeyDarker: 'rgba(0,0,0,0.24)',\n colorBrandShadowAmbient: 'rgba(0,0,0,0.30)',\n colorBrandShadowKey: 'rgba(0,0,0,0.25)',\n };\n};\n\n/**\n * Creates v9 shadow tokens from v8 effects.\n */\nconst mapShadowTokens = (effects: IEffects): Partial<ShadowTokens> => {\n return {\n shadow4: effects.elevation4,\n shadow8: effects.elevation8,\n shadow16: effects.elevation16,\n shadow64: effects.elevation64,\n };\n};\n\n/**\n * Creates v9 border radius tokens from v8 effects\n */\nconst mapBorderRadiusTokens = (effects: IEffects): Partial<BorderRadiusTokens> => {\n return {\n borderRadiusSmall: effects.roundedCorner2,\n borderRadiusMedium: effects.roundedCorner4,\n borderRadiusLarge: effects.roundedCorner6,\n };\n};\n\n/**\n * Creates a v9 theme from a v8 theme.\n * You can optional pass a base v9 theme; otherwise webLightTheme is used.\n */\nexport const createV9Theme = (themeV8: ThemeV8, baseThemeV9?: ThemeV9): ThemeV9 => {\n const baseTheme = baseThemeV9 ?? webLightTheme;\n\n return {\n ...baseTheme,\n ...mapAliasColors(themeV8.palette, themeV8.isInverted),\n ...mapShadowTokens(themeV8.effects),\n ...mapBorderRadiusTokens(themeV8.effects),\n };\n};\n"]}
|
package/lib-amd/index.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "./components/Button/index", "./components/Menu/index", "./components/Stack/index", "./components/Theme/index"], function (require, exports, index_1, index_2, index_3, index_4) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.whiteAlpha = exports.white = exports.sharedColors = exports.hcHyperlink = exports.hcHighlightText = exports.hcHighlight = exports.hcDisabled = exports.hcCanvasText = exports.hcCanvas = exports.hcButtonText = exports.hcButtonFace = exports.grey14Alpha = exports.grey = exports.createV9Theme = exports.createV8Theme = exports.createBrandVariants = exports.brandWeb = exports.blackAlpha = exports.black = exports.StackShim = exports.StackItemShim = exports.shimMenuProps = exports.MenuItemShim = exports.ToggleButtonShim = exports.shimButtonProps = exports.PrimaryButtonShim = exports.MenuButtonShim = exports.DefaultButtonShim = exports.CompoundButtonShim = exports.CommandButtonShim = exports.ButtonShim = exports.ActionButtonShim = void 0;
|
|
5
|
-
Object.defineProperty(exports, "ActionButtonShim", { enumerable: true, get: function () { return index_1.ActionButtonShim; } });
|
|
6
|
-
Object.defineProperty(exports, "ButtonShim", { enumerable: true, get: function () { return index_1.ButtonShim; } });
|
|
7
|
-
Object.defineProperty(exports, "CommandButtonShim", { enumerable: true, get: function () { return index_1.CommandButtonShim; } });
|
|
8
|
-
Object.defineProperty(exports, "CompoundButtonShim", { enumerable: true, get: function () { return index_1.CompoundButtonShim; } });
|
|
9
|
-
Object.defineProperty(exports, "DefaultButtonShim", { enumerable: true, get: function () { return index_1.DefaultButtonShim; } });
|
|
10
|
-
Object.defineProperty(exports, "MenuButtonShim", { enumerable: true, get: function () { return index_1.MenuButtonShim; } });
|
|
11
|
-
Object.defineProperty(exports, "PrimaryButtonShim", { enumerable: true, get: function () { return index_1.PrimaryButtonShim; } });
|
|
12
|
-
Object.defineProperty(exports, "shimButtonProps", { enumerable: true, get: function () { return index_1.shimButtonProps; } });
|
|
13
|
-
Object.defineProperty(exports, "ToggleButtonShim", { enumerable: true, get: function () { return index_1.ToggleButtonShim; } });
|
|
14
|
-
Object.defineProperty(exports, "MenuItemShim", { enumerable: true, get: function () { return index_2.MenuItemShim; } });
|
|
15
|
-
Object.defineProperty(exports, "shimMenuProps", { enumerable: true, get: function () { return index_2.shimMenuProps; } });
|
|
16
|
-
Object.defineProperty(exports, "StackItemShim", { enumerable: true, get: function () { return index_3.StackItemShim; } });
|
|
17
|
-
Object.defineProperty(exports, "StackShim", { enumerable: true, get: function () { return index_3.StackShim; } });
|
|
18
|
-
Object.defineProperty(exports, "black", { enumerable: true, get: function () { return index_4.black; } });
|
|
19
|
-
Object.defineProperty(exports, "blackAlpha", { enumerable: true, get: function () { return index_4.blackAlpha; } });
|
|
20
|
-
Object.defineProperty(exports, "brandWeb", { enumerable: true, get: function () { return index_4.brandWeb; } });
|
|
21
|
-
Object.defineProperty(exports, "createBrandVariants", { enumerable: true, get: function () { return index_4.createBrandVariants; } });
|
|
22
|
-
Object.defineProperty(exports, "createV8Theme", { enumerable: true, get: function () { return index_4.createV8Theme; } });
|
|
23
|
-
Object.defineProperty(exports, "createV9Theme", { enumerable: true, get: function () { return index_4.createV9Theme; } });
|
|
24
|
-
Object.defineProperty(exports, "grey", { enumerable: true, get: function () { return index_4.grey; } });
|
|
25
|
-
Object.defineProperty(exports, "grey14Alpha", { enumerable: true, get: function () { return index_4.grey14Alpha; } });
|
|
26
|
-
Object.defineProperty(exports, "hcButtonFace", { enumerable: true, get: function () { return index_4.hcButtonFace; } });
|
|
27
|
-
Object.defineProperty(exports, "hcButtonText", { enumerable: true, get: function () { return index_4.hcButtonText; } });
|
|
28
|
-
Object.defineProperty(exports, "hcCanvas", { enumerable: true, get: function () { return index_4.hcCanvas; } });
|
|
29
|
-
Object.defineProperty(exports, "hcCanvasText", { enumerable: true, get: function () { return index_4.hcCanvasText; } });
|
|
30
|
-
Object.defineProperty(exports, "hcDisabled", { enumerable: true, get: function () { return index_4.hcDisabled; } });
|
|
31
|
-
Object.defineProperty(exports, "hcHighlight", { enumerable: true, get: function () { return index_4.hcHighlight; } });
|
|
32
|
-
Object.defineProperty(exports, "hcHighlightText", { enumerable: true, get: function () { return index_4.hcHighlightText; } });
|
|
33
|
-
Object.defineProperty(exports, "hcHyperlink", { enumerable: true, get: function () { return index_4.hcHyperlink; } });
|
|
34
|
-
Object.defineProperty(exports, "sharedColors", { enumerable: true, get: function () { return index_4.sharedColors; } });
|
|
35
|
-
Object.defineProperty(exports, "white", { enumerable: true, get: function () { return index_4.white; } });
|
|
36
|
-
Object.defineProperty(exports, "whiteAlpha", { enumerable: true, get: function () { return index_4.whiteAlpha; } });
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
package/lib-amd/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-migration-v8-v9/src/index.ts"],"names":[],"mappings":";;;;IACE,yGAAA,gBAAgB,OAAA;IAChB,mGAAA,UAAU,OAAA;IACV,0GAAA,iBAAiB,OAAA;IACjB,2GAAA,kBAAkB,OAAA;IAClB,0GAAA,iBAAiB,OAAA;IACjB,uGAAA,cAAc,OAAA;IACd,0GAAA,iBAAiB,OAAA;IACjB,wGAAA,eAAe,OAAA;IACf,yGAAA,gBAAgB,OAAA;IAGT,qGAAA,YAAY,OAAA;IAAE,sGAAA,aAAa,OAAA;IAE3B,sGAAA,aAAa,OAAA;IAAE,kGAAA,SAAS,OAAA;IAG/B,8FAAA,KAAK,OAAA;IACL,mGAAA,UAAU,OAAA;IACV,iGAAA,QAAQ,OAAA;IACR,4GAAA,mBAAmB,OAAA;IACnB,sGAAA,aAAa,OAAA;IACb,sGAAA,aAAa,OAAA;IACb,6FAAA,IAAI,OAAA;IACJ,oGAAA,WAAW,OAAA;IACX,qGAAA,YAAY,OAAA;IACZ,qGAAA,YAAY,OAAA;IACZ,iGAAA,QAAQ,OAAA;IACR,qGAAA,YAAY,OAAA;IACZ,mGAAA,UAAU,OAAA;IACV,oGAAA,WAAW,OAAA;IACX,wGAAA,eAAe,OAAA;IACf,oGAAA,WAAW,OAAA;IACX,qGAAA,YAAY,OAAA;IACZ,8FAAA,KAAK,OAAA;IACL,mGAAA,UAAU,OAAA","sourcesContent":["export {\n ActionButtonShim,\n ButtonShim,\n CommandButtonShim,\n CompoundButtonShim,\n DefaultButtonShim,\n MenuButtonShim,\n PrimaryButtonShim,\n shimButtonProps,\n ToggleButtonShim,\n} from './components/Button/index';\n\nexport { MenuItemShim, shimMenuProps } from './components/Menu/index';\n\nexport { StackItemShim, StackShim } from './components/Stack/index';\n\nexport {\n black,\n blackAlpha,\n brandWeb,\n createBrandVariants,\n createV8Theme,\n createV9Theme,\n grey,\n grey14Alpha,\n hcButtonFace,\n hcButtonText,\n hcCanvas,\n hcCanvasText,\n hcDisabled,\n hcHighlight,\n hcHighlightText,\n hcHyperlink,\n sharedColors,\n white,\n whiteAlpha,\n} from './components/Theme/index';\n\nexport type {\n AlphaColors,\n ColorVariants,\n GlobalSharedColors,\n Greys,\n TextAlignment,\n TextAlignments,\n} from './components/Theme/index';\n"]}
|