Skip to content

Commit

Permalink
Files compiled!
Browse files Browse the repository at this point in the history
  • Loading branch information
CCAyl authored and github-actions[bot] committed May 2, 2023
1 parent ba0a5f6 commit 71631c4
Show file tree
Hide file tree
Showing 21 changed files with 414 additions and 0 deletions.
94 changes: 94 additions & 0 deletions dist/helpers/colorProfileMapper.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
import type { AviaryTheme } from "../types/themes";
export declare const colorProfileMapper: (currentTheme: AviaryTheme) => {
primary: {
textBase: string;
textHover: string;
textActive: string;
backgroundBase: string;
backgroundHover: string;
backgroundActive: string;
backgroundMuted: string;
backgroundMutedHover: string;
backgroundMutedActive: string;
backgroundBox: string;
borderBase: string;
borderHover: string;
borderActive: string;
};
info: {
textBase: string;
textHover: string;
textActive: string;
backgroundBase: string;
backgroundHover: string;
backgroundActive: string;
backgroundMuted: string;
backgroundMutedHover: string;
backgroundMutedActive: string;
backgroundBox: string;
borderBase: string;
borderHover: string;
borderActive: string;
};
warning: {
textBase: string;
textHover: string;
textActive: string;
backgroundBase: string;
backgroundHover: string;
backgroundActive: string;
backgroundMuted: string;
backgroundMutedHover: string;
backgroundMutedActive: string;
backgroundBox: string;
borderBase: string;
borderHover: string;
borderActive: string;
};
danger: {
textBase: string;
textHover: string;
textActive: string;
backgroundBase: string;
backgroundHover: string;
backgroundActive: string;
backgroundMuted: string;
backgroundMutedHover: string;
backgroundMutedActive: string;
backgroundBox: string;
borderBase: string;
borderHover: string;
borderActive: string;
};
highlight: {
textBase: string;
textHover: string;
textActive: string;
backgroundBase: string;
backgroundHover: string;
backgroundActive: string;
backgroundMuted: string;
backgroundMutedHover: string;
backgroundMutedActive: string;
backgroundBox: string;
borderBase: string;
borderHover: string;
borderActive: string;
};
system: {
textLabelEmphasis: string;
textBase: string;
textHover: string;
textActive: string;
backgroundBase: string;
backgroundMuted: string;
backgroundMutedHover: string;
backgroundMutedActive: string;
backgroundBox: string;
borderBase: string;
borderHover: string;
borderActive: string;
borderFocused: string;
};
};
//# sourceMappingURL=colorProfileMapper.d.ts.map
1 change: 1 addition & 0 deletions dist/helpers/colorProfileMapper.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions dist/helpers/colorProfileMapper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.colorProfileMapper = void 0;

// Used for mapping over selected `isColor` properties
var colorProfileMapper = function colorProfileMapper(currentTheme) {
return {
primary: currentTheme.primary,
info: currentTheme.info,
warning: currentTheme.warning,
danger: currentTheme.danger,
highlight: currentTheme.highlight,
system: currentTheme.system
};
};

exports.colorProfileMapper = colorProfileMapper;
2 changes: 2 additions & 0 deletions dist/helpers/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from "./colorProfileMapper";
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/helpers/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions dist/helpers/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"use strict";

require("core-js/modules/es.object.to-string.js");

require("core-js/modules/web.dom-collections.for-each.js");

require("core-js/modules/es.object.keys.js");

Object.defineProperty(exports, "__esModule", {
value: true
});

var _colorProfileMapper = require("./colorProfileMapper");

Object.keys(_colorProfileMapper).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _colorProfileMapper[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _colorProfileMapper[key];
}
});
});
8 changes: 8 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export * from "./helpers";
export * from "./types";
export * as typography from "../dist/tokens/ts/typography";
export * as lightThemeDocumentation from "../dist/documentation/themes/light";
export * as darkThemeDocumentation from "../dist/documentation/themes/dark";
export * as coreDarkDocumentation from "../dist/documentation/core-dark-colors";
export * as coreLightDocumentation from "../dist/documentation/core-light-colors";
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

89 changes: 89 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
"use strict";

function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }

require("core-js/modules/es.array.iterator.js");

require("core-js/modules/es.object.to-string.js");

require("core-js/modules/es.string.iterator.js");

require("core-js/modules/es.weak-map.js");

require("core-js/modules/web.dom-collections.iterator.js");

require("core-js/modules/es.object.get-own-property-descriptor.js");

require("core-js/modules/web.dom-collections.for-each.js");

require("core-js/modules/es.object.keys.js");

require("core-js/modules/es.symbol.js");

require("core-js/modules/es.symbol.description.js");

require("core-js/modules/es.symbol.iterator.js");

Object.defineProperty(exports, "__esModule", {
value: true
});
var _exportNames = {
typography: true,
lightThemeDocumentation: true,
darkThemeDocumentation: true,
coreDarkDocumentation: true,
coreLightDocumentation: true
};
exports.typography = exports.lightThemeDocumentation = exports.darkThemeDocumentation = exports.coreLightDocumentation = exports.coreDarkDocumentation = void 0;

var _helpers = require("./helpers");

Object.keys(_helpers).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _helpers[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _helpers[key];
}
});
});

var _types = require("./types");

Object.keys(_types).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _types[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _types[key];
}
});
});

var _typography = _interopRequireWildcard(require("../dist/tokens/ts/typography"));

exports.typography = _typography;

var _lightThemeDocumentation = _interopRequireWildcard(require("../dist/documentation/themes/light"));

exports.lightThemeDocumentation = _lightThemeDocumentation;

var _darkThemeDocumentation = _interopRequireWildcard(require("../dist/documentation/themes/dark"));

exports.darkThemeDocumentation = _darkThemeDocumentation;

var _coreDarkDocumentation = _interopRequireWildcard(require("../dist/documentation/core-dark-colors"));

exports.coreDarkDocumentation = _coreDarkDocumentation;

var _coreLightDocumentation = _interopRequireWildcard(require("../dist/documentation/core-light-colors"));

exports.coreLightDocumentation = _coreLightDocumentation;

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
3 changes: 3 additions & 0 deletions dist/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./interfaces";
export * from "./profiles";
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/types/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions dist/types/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
"use strict";

require("core-js/modules/es.object.to-string.js");

require("core-js/modules/web.dom-collections.for-each.js");

require("core-js/modules/es.object.keys.js");

Object.defineProperty(exports, "__esModule", {
value: true
});

var _interfaces = require("./interfaces");

Object.keys(_interfaces).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _interfaces[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _interfaces[key];
}
});
});

var _profiles = require("./profiles");

Object.keys(_profiles).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _profiles[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _profiles[key];
}
});
});
28 changes: 28 additions & 0 deletions dist/types/interfaces.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
declare const AVIARY_COLORS: {
primary: string;
info: string;
warning: string;
danger: string;
highlight: string;
system: string;
};
declare const EXTENDED_AVIARY_COLORS: {
light: string;
primary: string;
info: string;
warning: string;
danger: string;
highlight: string;
system: string;
};
declare type AviaryColors = keyof typeof AVIARY_COLORS;
declare type ExtendedAviaryColors = keyof typeof EXTENDED_AVIARY_COLORS;
interface AviaryColorProps {
isColor?: AviaryColors;
}
interface AviaryExtendedColorProps {
isColor?: ExtendedAviaryColors;
}
export type { AviaryColors, AviaryColorProps, AviaryExtendedColorProps, ExtendedAviaryColors, };
export { AVIARY_COLORS, EXTENDED_AVIARY_COLORS };
//# sourceMappingURL=interfaces.d.ts.map
1 change: 1 addition & 0 deletions dist/types/interfaces.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions dist/types/interfaces.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
"use strict";

require("core-js/modules/es.object.keys.js");

require("core-js/modules/es.symbol.js");

require("core-js/modules/es.array.filter.js");

require("core-js/modules/es.object.to-string.js");

require("core-js/modules/es.object.get-own-property-descriptor.js");

require("core-js/modules/web.dom-collections.for-each.js");

require("core-js/modules/es.object.get-own-property-descriptors.js");

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.EXTENDED_AVIARY_COLORS = exports.AVIARY_COLORS = void 0;

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var AVIARY_COLORS = {
primary: "primary",
info: "info",
warning: "warning",
danger: "danger",
highlight: "highlight",
system: "system"
};
exports.AVIARY_COLORS = AVIARY_COLORS;

var EXTENDED_AVIARY_COLORS = _objectSpread(_objectSpread({}, AVIARY_COLORS), {}, {
light: "light"
});

exports.EXTENDED_AVIARY_COLORS = EXTENDED_AVIARY_COLORS;
6 changes: 6 additions & 0 deletions dist/types/profiles.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type * as light from "../../dist/tokens/ts/themes/light.d";
declare type StandardColorsProfileTheme = typeof light.primary;
declare type SystemColorProfileTheme = typeof light.system;
declare type ColorProfileTheme = StandardColorsProfileTheme | SystemColorProfileTheme;
export type { ColorProfileTheme };
//# sourceMappingURL=profiles.d.ts.map
1 change: 1 addition & 0 deletions dist/types/profiles.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions dist/types/profiles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
Loading

0 comments on commit 71631c4

Please sign in to comment.