forked from charle692/aviary-tokens
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ec764c
commit f40b175
Showing
27 changed files
with
528 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
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; | ||
}; | ||
success: { | ||
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; | ||
}; | ||
}; | ||
//# sourceMappingURL=colorProfileMapper.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"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, | ||
success: currentTheme.success | ||
}; | ||
}; | ||
|
||
exports.colorProfileMapper = colorProfileMapper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./colorProfileMapper"; | ||
//# sourceMappingURL=index.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export * from "./helpers"; | ||
export * from "./types"; | ||
export * as borders from "../dist/tokens/ts/borders"; | ||
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
"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 = { | ||
borders: true, | ||
typography: true, | ||
lightThemeDocumentation: true, | ||
darkThemeDocumentation: true, | ||
coreDarkDocumentation: true, | ||
coreLightDocumentation: true | ||
}; | ||
exports.typography = exports.lightThemeDocumentation = exports.darkThemeDocumentation = exports.coreLightDocumentation = exports.coreDarkDocumentation = exports.borders = 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 _borders = _interopRequireWildcard(require("../dist/tokens/ts/borders")); | ||
|
||
exports.borders = _borders; | ||
|
||
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; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
declare const AVIARY_ACCENTS: { | ||
forest: string; | ||
sand: string; | ||
}; | ||
declare type AviaryAccents = keyof typeof AVIARY_ACCENTS; | ||
export type { AviaryAccents }; | ||
export { AVIARY_ACCENTS }; | ||
//# sourceMappingURL=accents.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"use strict"; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.AVIARY_ACCENTS = void 0; | ||
var AVIARY_ACCENTS = { | ||
forest: "forest", | ||
sand: "sand" | ||
}; | ||
exports.AVIARY_ACCENTS = AVIARY_ACCENTS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export * from "./accents"; | ||
export * from "./interfaces"; | ||
export * from "./profiles"; | ||
export * from "./intentions"; | ||
//# sourceMappingURL=index.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
"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 _accents = require("./accents"); | ||
|
||
Object.keys(_accents).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (key in exports && exports[key] === _accents[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _accents[key]; | ||
} | ||
}); | ||
}); | ||
|
||
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]; | ||
} | ||
}); | ||
}); | ||
|
||
var _intentions = require("./intentions"); | ||
|
||
Object.keys(_intentions).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (key in exports && exports[key] === _intentions[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _intentions[key]; | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
declare const AVIARY_INTENTIONS: { | ||
primary: string; | ||
system: string; | ||
danger: string; | ||
success: string; | ||
textSuccess: string; | ||
textSystem: string; | ||
textDanger: string; | ||
lightFilled: string; | ||
lightOutlined: string; | ||
lightText: string; | ||
}; | ||
declare type AviaryIntentions = keyof typeof AVIARY_INTENTIONS; | ||
export type { AviaryIntentions }; | ||
export { AVIARY_INTENTIONS }; | ||
//# sourceMappingURL=intentions.d.ts.map |
Oops, something went wrong.