Private
Public Access
1
0

feat: Fluent UI Outlook Lite + connections mockup

This commit is contained in:
2026-04-14 18:52:25 +00:00
parent 1199eff6c3
commit dfa4010406
34820 changed files with 1003813 additions and 205 deletions

View File

@@ -0,0 +1,24 @@
'use strict';
var hyphenateProperty = require('./hyphenateProperty.cjs.js');
function cssifyObject(style) {
let css = '';
// eslint-disable-next-line guard-for-in
for (const property in style) {
const value = style[property];
if (typeof value === 'string' || typeof value === 'number') {
css += hyphenateProperty.hyphenateProperty(property) + ':' + value + ';';
continue;
}
if (Array.isArray(value)) {
for (const arrValue of value) {
css += hyphenateProperty.hyphenateProperty(property) + ':' + arrValue + ';';
}
}
}
return css;
}
exports.cssifyObject = cssifyObject;
//# sourceMappingURL=cssifyObject.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"cssifyObject.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/cssifyObject.ts"],"sourcesContent":["import type { GriffelStaticStyle, GriffelStyle } from '@griffel/style-types';\nimport { hyphenateProperty } from './hyphenateProperty';\n\nexport function cssifyObject(style: GriffelStyle | GriffelStaticStyle) {\n let css = '';\n\n // eslint-disable-next-line guard-for-in\n for (const property in style) {\n const value = style[property as keyof GriffelStyle];\n if (typeof value === 'string' || typeof value === 'number') {\n css += hyphenateProperty(property) + ':' + value + ';';\n continue;\n }\n if (Array.isArray(value)) {\n for (const arrValue of value) {\n css += hyphenateProperty(property) + ':' + arrValue + ';';\n }\n }\n }\n\n return css;\n}\n"],"names":["cssifyObject","style","css","property","value","hyphenateProperty","Array","isArray","arrValue"],"mappings":";;;;AAGM,SAAUA,YAAYA,CAACC,KAAwC,EAAA;EACnE,IAAIC,GAAG,GAAG,EAAE;AAEZ;AACA,EAAA,KAAK,MAAMC,QAAQ,IAAIF,KAAK,EAAE;AAC5B,IAAA,MAAMG,KAAK,GAAGH,KAAK,CAACE,QAA8B,CAAC;IACnD,IAAI,OAAOC,KAAK,KAAK,QAAQ,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;MAC1DF,GAAG,IAAIG,mCAAiB,CAACF,QAAQ,CAAC,GAAG,GAAG,GAAGC,KAAK,GAAG,GAAG;AACtD,MAAA;AACF,IAAA;AACA,IAAA,IAAIE,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,EAAE;AACxB,MAAA,KAAK,MAAMI,QAAQ,IAAIJ,KAAK,EAAE;QAC5BF,GAAG,IAAIG,mCAAiB,CAACF,QAAQ,CAAC,GAAG,GAAG,GAAGK,QAAQ,GAAG,GAAG;AAC3D,MAAA;AACF,IAAA;AACF,EAAA;AAEA,EAAA,OAAON,GAAG;AACZ;;;;"}

View File

@@ -0,0 +1,22 @@
import { hyphenateProperty } from './hyphenateProperty.esm.js';
function cssifyObject(style) {
let css = '';
// eslint-disable-next-line guard-for-in
for (const property in style) {
const value = style[property];
if (typeof value === 'string' || typeof value === 'number') {
css += hyphenateProperty(property) + ':' + value + ';';
continue;
}
if (Array.isArray(value)) {
for (const arrValue of value) {
css += hyphenateProperty(property) + ':' + arrValue + ';';
}
}
}
return css;
}
export { cssifyObject };
//# sourceMappingURL=cssifyObject.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"cssifyObject.esm.js","sources":["../../../../../packages/core/src/runtime/utils/cssifyObject.ts"],"sourcesContent":["import type { GriffelStaticStyle, GriffelStyle } from '@griffel/style-types';\nimport { hyphenateProperty } from './hyphenateProperty';\n\nexport function cssifyObject(style: GriffelStyle | GriffelStaticStyle) {\n let css = '';\n\n // eslint-disable-next-line guard-for-in\n for (const property in style) {\n const value = style[property as keyof GriffelStyle];\n if (typeof value === 'string' || typeof value === 'number') {\n css += hyphenateProperty(property) + ':' + value + ';';\n continue;\n }\n if (Array.isArray(value)) {\n for (const arrValue of value) {\n css += hyphenateProperty(property) + ':' + arrValue + ';';\n }\n }\n }\n\n return css;\n}\n"],"names":["cssifyObject","style","css","property","value","hyphenateProperty","Array","isArray","arrValue"],"mappings":";;AAGM,SAAUA,YAAYA,CAACC,KAAwC,EAAA;EACnE,IAAIC,GAAG,GAAG,EAAE;AAEZ;AACA,EAAA,KAAK,MAAMC,QAAQ,IAAIF,KAAK,EAAE;AAC5B,IAAA,MAAMG,KAAK,GAAGH,KAAK,CAACE,QAA8B,CAAC;IACnD,IAAI,OAAOC,KAAK,KAAK,QAAQ,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;MAC1DF,GAAG,IAAIG,iBAAiB,CAACF,QAAQ,CAAC,GAAG,GAAG,GAAGC,KAAK,GAAG,GAAG;AACtD,MAAA;AACF,IAAA;AACA,IAAA,IAAIE,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,EAAE;AACxB,MAAA,KAAK,MAAMI,QAAQ,IAAIJ,KAAK,EAAE;QAC5BF,GAAG,IAAIG,iBAAiB,CAACF,QAAQ,CAAC,GAAG,GAAG,GAAGK,QAAQ,GAAG,GAAG;AAC3D,MAAA;AACF,IAAA;AACF,EAAA;AAEA,EAAA,OAAON,GAAG;AACZ;;;;"}

View File

@@ -0,0 +1,11 @@
'use strict';
function generateCombinedQuery(currentMediaQuery, nestedMediaQuery) {
if (currentMediaQuery.length === 0) {
return nestedMediaQuery;
}
return `${currentMediaQuery} and ${nestedMediaQuery}`;
}
exports.generateCombinedQuery = generateCombinedQuery;
//# sourceMappingURL=generateCombinedMediaQuery.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"generateCombinedMediaQuery.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/generateCombinedMediaQuery.ts"],"sourcesContent":["export function generateCombinedQuery(currentMediaQuery: string, nestedMediaQuery: string): string {\n if (currentMediaQuery.length === 0) {\n return nestedMediaQuery;\n }\n\n return `${currentMediaQuery} and ${nestedMediaQuery}`;\n}\n"],"names":["generateCombinedQuery","currentMediaQuery","nestedMediaQuery","length"],"mappings":";;AAAM,SAAUA,qBAAqBA,CAACC,iBAAyB,EAAEC,gBAAwB,EAAA;AACvF,EAAA,IAAID,iBAAiB,CAACE,MAAM,KAAK,CAAC,EAAE;AAClC,IAAA,OAAOD,gBAAgB;AACzB,EAAA;AAEA,EAAA,OAAO,CAAA,EAAGD,iBAAiB,CAAA,KAAA,EAAQC,gBAAgB,CAAA,CAAE;AACvD;;;;"}

View File

@@ -0,0 +1,9 @@
function generateCombinedQuery(currentMediaQuery, nestedMediaQuery) {
if (currentMediaQuery.length === 0) {
return nestedMediaQuery;
}
return `${currentMediaQuery} and ${nestedMediaQuery}`;
}
export { generateCombinedQuery };
//# sourceMappingURL=generateCombinedMediaQuery.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"generateCombinedMediaQuery.esm.js","sources":["../../../../../packages/core/src/runtime/utils/generateCombinedMediaQuery.ts"],"sourcesContent":["export function generateCombinedQuery(currentMediaQuery: string, nestedMediaQuery: string): string {\n if (currentMediaQuery.length === 0) {\n return nestedMediaQuery;\n }\n\n return `${currentMediaQuery} and ${nestedMediaQuery}`;\n}\n"],"names":["generateCombinedQuery","currentMediaQuery","nestedMediaQuery","length"],"mappings":"AAAM,SAAUA,qBAAqBA,CAACC,iBAAyB,EAAEC,gBAAwB,EAAA;AACvF,EAAA,IAAID,iBAAiB,CAACE,MAAM,KAAK,CAAC,EAAE;AAClC,IAAA,OAAOD,gBAAgB;AACzB,EAAA;AAEA,EAAA,OAAO,CAAA,EAAGD,iBAAiB,CAAA,KAAA,EAAQC,gBAAgB,CAAA,CAAE;AACvD;;;;"}

View File

@@ -0,0 +1,23 @@
'use strict';
var hashString = require('@emotion/hash');
var constants = require('../../constants.cjs.js');
var hashPropertyKey = require('./hashPropertyKey.cjs.js');
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
var hashString__default = /*#__PURE__*/_interopDefaultCompat(hashString);
function hashClassName({
property,
selector,
salt,
value
}, atRules) {
return constants.HASH_PREFIX + hashString__default.default(salt + selector + hashPropertyKey.atRulesToString(atRules) + property +
// Trimming of value is required to generate consistent hashes
value.trim());
}
exports.hashClassName = hashClassName;
//# sourceMappingURL=hashClassName.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"hashClassName.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/hashClassName.ts"],"sourcesContent":["import hashString from '@emotion/hash';\n\nimport { HASH_PREFIX } from '../../constants';\nimport { atRulesToString } from './hashPropertyKey';\nimport type { AtRules } from './types';\n\ninterface HashedClassNameParts {\n property: string;\n value: string;\n salt: string;\n selector: string;\n}\n\nexport function hashClassName({ property, selector, salt, value }: HashedClassNameParts, atRules: AtRules): string {\n return (\n HASH_PREFIX +\n hashString(\n salt +\n selector +\n atRulesToString(atRules) +\n property +\n // Trimming of value is required to generate consistent hashes\n value.trim(),\n )\n );\n}\n"],"names":["hashClassName","property","selector","salt","value","atRules","HASH_PREFIX","hashString","atRulesToString","trim"],"mappings":";;;;;;;;;;AAaM,SAAUA,aAAaA,CAAC;EAAEC,QAAQ;EAAEC,QAAQ;EAAEC,IAAI;AAAEC,EAAAA;AAAK,CAAwB,EAAEC,OAAgB,EAAA;AACvG,EAAA,OACEC,qBAAW,GACXC,2BAAU,CACRJ,IAAI,GACFD,QAAQ,GACRM,+BAAe,CAACH,OAAO,CAAC,GACxBJ,QAAQ;AACR;AACAG,EAAAA,KAAK,CAACK,IAAI,EAAE,CACf;AAEL;;;;"}

View File

@@ -0,0 +1,17 @@
import hashString from '@emotion/hash';
import { HASH_PREFIX } from '../../constants.esm.js';
import { atRulesToString } from './hashPropertyKey.esm.js';
function hashClassName({
property,
selector,
salt,
value
}, atRules) {
return HASH_PREFIX + hashString(salt + selector + atRulesToString(atRules) + property +
// Trimming of value is required to generate consistent hashes
value.trim());
}
export { hashClassName };
//# sourceMappingURL=hashClassName.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"hashClassName.esm.js","sources":["../../../../../packages/core/src/runtime/utils/hashClassName.ts"],"sourcesContent":["import hashString from '@emotion/hash';\n\nimport { HASH_PREFIX } from '../../constants';\nimport { atRulesToString } from './hashPropertyKey';\nimport type { AtRules } from './types';\n\ninterface HashedClassNameParts {\n property: string;\n value: string;\n salt: string;\n selector: string;\n}\n\nexport function hashClassName({ property, selector, salt, value }: HashedClassNameParts, atRules: AtRules): string {\n return (\n HASH_PREFIX +\n hashString(\n salt +\n selector +\n atRulesToString(atRules) +\n property +\n // Trimming of value is required to generate consistent hashes\n value.trim(),\n )\n );\n}\n"],"names":["hashClassName","property","selector","salt","value","atRules","HASH_PREFIX","hashString","atRulesToString","trim"],"mappings":";;;;AAaM,SAAUA,aAAaA,CAAC;EAAEC,QAAQ;EAAEC,QAAQ;EAAEC,IAAI;AAAEC,EAAAA;AAAK,CAAwB,EAAEC,OAAgB,EAAA;AACvG,EAAA,OACEC,WAAW,GACXC,UAAU,CACRJ,IAAI,GACFD,QAAQ,GACRM,eAAe,CAACH,OAAO,CAAC,GACxBJ,QAAQ;AACR;AACAG,EAAAA,KAAK,CAACK,IAAI,EAAE,CACf;AAEL;;;;"}

View File

@@ -0,0 +1,37 @@
'use strict';
var hashString = require('@emotion/hash');
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
var hashString__default = /*#__PURE__*/_interopDefaultCompat(hashString);
function addAtRulePrefix(atRule, prefix) {
return atRule ? prefix + atRule : atRule;
}
function atRulesToString(atRules) {
return addAtRulePrefix(atRules.container, 'c') + addAtRulePrefix(atRules.media, 'm') + addAtRulePrefix(atRules.layer, 'l') + addAtRulePrefix(atRules.supports, 's');
}
function hashPropertyKey(selector, property, atRules) {
// uniq key based on property & selector, used for merging later
const computedKey = selector + atRulesToString(atRules) + property;
// "key" can be really long as it includes selectors, we use hashes to reduce sizes of keys
// ".foo :hover" => "abcd"
const hashedKey = hashString__default.default(computedKey);
// As these hashes are used as object keys in build output we should avoid having numbers as a first character to
// avoid having quotes:
// {
// "1abc": {}, // we don't want this
// Aabc: {}, // no quotes
// }
const firstCharCode = hashedKey.charCodeAt(0);
const startsWithNumber = firstCharCode >= 48 && firstCharCode <= 57;
if (startsWithNumber) {
return String.fromCharCode(firstCharCode + 17) + hashedKey.slice(1);
}
return hashedKey;
}
exports.atRulesToString = atRulesToString;
exports.hashPropertyKey = hashPropertyKey;
//# sourceMappingURL=hashPropertyKey.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"hashPropertyKey.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/hashPropertyKey.ts"],"sourcesContent":["import hash from '@emotion/hash';\n\nimport type { PropertyHash } from '../../types';\nimport type { AtRules } from './types';\n\nfunction addAtRulePrefix(atRule: string, prefix: string): string {\n return atRule ? prefix + atRule : atRule;\n}\n\nexport function atRulesToString(atRules: AtRules): string {\n return (\n addAtRulePrefix(atRules.container, 'c') +\n addAtRulePrefix(atRules.media, 'm') +\n addAtRulePrefix(atRules.layer, 'l') +\n addAtRulePrefix(atRules.supports, 's')\n );\n}\n\nexport function hashPropertyKey(selector: string, property: string, atRules: AtRules): PropertyHash {\n // uniq key based on property & selector, used for merging later\n const computedKey = selector + atRulesToString(atRules) + property;\n\n // \"key\" can be really long as it includes selectors, we use hashes to reduce sizes of keys\n // \".foo :hover\" => \"abcd\"\n const hashedKey = hash(computedKey);\n\n // As these hashes are used as object keys in build output we should avoid having numbers as a first character to\n // avoid having quotes:\n // {\n // \"1abc\": {}, // we don't want this\n // Aabc: {}, // no quotes\n // }\n const firstCharCode = hashedKey.charCodeAt(0);\n const startsWithNumber = firstCharCode >= 48 && firstCharCode <= 57;\n\n if (startsWithNumber) {\n return String.fromCharCode(firstCharCode + 17) + hashedKey.slice(1);\n }\n\n return hashedKey;\n}\n"],"names":["addAtRulePrefix","atRule","prefix","atRulesToString","atRules","container","media","layer","supports","hashPropertyKey","selector","property","computedKey","hashedKey","hash","firstCharCode","charCodeAt","startsWithNumber","String","fromCharCode","slice"],"mappings":";;;;;;;;AAKA,SAASA,eAAeA,CAACC,MAAc,EAAEC,MAAc,EAAA;AACrD,EAAA,OAAOD,MAAM,GAAGC,MAAM,GAAGD,MAAM,GAAGA,MAAM;AAC1C;AAEM,SAAUE,eAAeA,CAACC,OAAgB,EAAA;AAC9C,EAAA,OACEJ,eAAe,CAACI,OAAO,CAACC,SAAS,EAAE,GAAG,CAAC,GACvCL,eAAe,CAACI,OAAO,CAACE,KAAK,EAAE,GAAG,CAAC,GACnCN,eAAe,CAACI,OAAO,CAACG,KAAK,EAAE,GAAG,CAAC,GACnCP,eAAe,CAACI,OAAO,CAACI,QAAQ,EAAE,GAAG,CAAC;AAE1C;SAEgBC,eAAeA,CAACC,QAAgB,EAAEC,QAAgB,EAAEP,OAAgB,EAAA;AAClF;EACA,MAAMQ,WAAW,GAAGF,QAAQ,GAAGP,eAAe,CAACC,OAAO,CAAC,GAAGO,QAAQ;AAElE;AACA;AACA,EAAA,MAAME,SAAS,GAAGC,2BAAI,CAACF,WAAW,CAAC;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA,EAAA,MAAMG,aAAa,GAAGF,SAAS,CAACG,UAAU,CAAC,CAAC,CAAC;EAC7C,MAAMC,gBAAgB,GAAGF,aAAa,IAAI,EAAE,IAAIA,aAAa,IAAI,EAAE;AAEnE,EAAA,IAAIE,gBAAgB,EAAE;AACpB,IAAA,OAAOC,MAAM,CAACC,YAAY,CAACJ,aAAa,GAAG,EAAE,CAAC,GAAGF,SAAS,CAACO,KAAK,CAAC,CAAC,CAAC;AACrE,EAAA;AAEA,EAAA,OAAOP,SAAS;AAClB;;;;;"}

View File

@@ -0,0 +1,30 @@
import hashString from '@emotion/hash';
function addAtRulePrefix(atRule, prefix) {
return atRule ? prefix + atRule : atRule;
}
function atRulesToString(atRules) {
return addAtRulePrefix(atRules.container, 'c') + addAtRulePrefix(atRules.media, 'm') + addAtRulePrefix(atRules.layer, 'l') + addAtRulePrefix(atRules.supports, 's');
}
function hashPropertyKey(selector, property, atRules) {
// uniq key based on property & selector, used for merging later
const computedKey = selector + atRulesToString(atRules) + property;
// "key" can be really long as it includes selectors, we use hashes to reduce sizes of keys
// ".foo :hover" => "abcd"
const hashedKey = hashString(computedKey);
// As these hashes are used as object keys in build output we should avoid having numbers as a first character to
// avoid having quotes:
// {
// "1abc": {}, // we don't want this
// Aabc: {}, // no quotes
// }
const firstCharCode = hashedKey.charCodeAt(0);
const startsWithNumber = firstCharCode >= 48 && firstCharCode <= 57;
if (startsWithNumber) {
return String.fromCharCode(firstCharCode + 17) + hashedKey.slice(1);
}
return hashedKey;
}
export { atRulesToString, hashPropertyKey };
//# sourceMappingURL=hashPropertyKey.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"hashPropertyKey.esm.js","sources":["../../../../../packages/core/src/runtime/utils/hashPropertyKey.ts"],"sourcesContent":["import hash from '@emotion/hash';\n\nimport type { PropertyHash } from '../../types';\nimport type { AtRules } from './types';\n\nfunction addAtRulePrefix(atRule: string, prefix: string): string {\n return atRule ? prefix + atRule : atRule;\n}\n\nexport function atRulesToString(atRules: AtRules): string {\n return (\n addAtRulePrefix(atRules.container, 'c') +\n addAtRulePrefix(atRules.media, 'm') +\n addAtRulePrefix(atRules.layer, 'l') +\n addAtRulePrefix(atRules.supports, 's')\n );\n}\n\nexport function hashPropertyKey(selector: string, property: string, atRules: AtRules): PropertyHash {\n // uniq key based on property & selector, used for merging later\n const computedKey = selector + atRulesToString(atRules) + property;\n\n // \"key\" can be really long as it includes selectors, we use hashes to reduce sizes of keys\n // \".foo :hover\" => \"abcd\"\n const hashedKey = hash(computedKey);\n\n // As these hashes are used as object keys in build output we should avoid having numbers as a first character to\n // avoid having quotes:\n // {\n // \"1abc\": {}, // we don't want this\n // Aabc: {}, // no quotes\n // }\n const firstCharCode = hashedKey.charCodeAt(0);\n const startsWithNumber = firstCharCode >= 48 && firstCharCode <= 57;\n\n if (startsWithNumber) {\n return String.fromCharCode(firstCharCode + 17) + hashedKey.slice(1);\n }\n\n return hashedKey;\n}\n"],"names":["addAtRulePrefix","atRule","prefix","atRulesToString","atRules","container","media","layer","supports","hashPropertyKey","selector","property","computedKey","hashedKey","hash","firstCharCode","charCodeAt","startsWithNumber","String","fromCharCode","slice"],"mappings":";;AAKA,SAASA,eAAeA,CAACC,MAAc,EAAEC,MAAc,EAAA;AACrD,EAAA,OAAOD,MAAM,GAAGC,MAAM,GAAGD,MAAM,GAAGA,MAAM;AAC1C;AAEM,SAAUE,eAAeA,CAACC,OAAgB,EAAA;AAC9C,EAAA,OACEJ,eAAe,CAACI,OAAO,CAACC,SAAS,EAAE,GAAG,CAAC,GACvCL,eAAe,CAACI,OAAO,CAACE,KAAK,EAAE,GAAG,CAAC,GACnCN,eAAe,CAACI,OAAO,CAACG,KAAK,EAAE,GAAG,CAAC,GACnCP,eAAe,CAACI,OAAO,CAACI,QAAQ,EAAE,GAAG,CAAC;AAE1C;SAEgBC,eAAeA,CAACC,QAAgB,EAAEC,QAAgB,EAAEP,OAAgB,EAAA;AAClF;EACA,MAAMQ,WAAW,GAAGF,QAAQ,GAAGP,eAAe,CAACC,OAAO,CAAC,GAAGO,QAAQ;AAElE;AACA;AACA,EAAA,MAAME,SAAS,GAAGC,UAAI,CAACF,WAAW,CAAC;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA,EAAA,MAAMG,aAAa,GAAGF,SAAS,CAACG,UAAU,CAAC,CAAC,CAAC;EAC7C,MAAMC,gBAAgB,GAAGF,aAAa,IAAI,EAAE,IAAIA,aAAa,IAAI,EAAE;AAEnE,EAAA,IAAIE,gBAAgB,EAAE;AACpB,IAAA,OAAOC,MAAM,CAACC,YAAY,CAACJ,aAAa,GAAG,EAAE,CAAC,GAAGF,SAAS,CAACO,KAAK,CAAC,CAAC,CAAC;AACrE,EAAA;AAEA,EAAA,OAAOP,SAAS;AAClB;;;;"}

View File

@@ -0,0 +1,28 @@
'use strict';
var hashString = require('@emotion/hash');
var constants = require('../../constants.cjs.js');
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
var hashString__default = /*#__PURE__*/_interopDefaultCompat(hashString);
function padEndHash(value) {
const hashLength = value.length;
if (hashLength === constants.SEQUENCE_HASH_LENGTH) {
return value;
}
for (let i = hashLength; i < constants.SEQUENCE_HASH_LENGTH; i++) {
value += '0';
}
return value;
}
function hashSequence(classes, dir, sequenceIds = []) {
if (process.env.NODE_ENV === 'production') {
return constants.SEQUENCE_PREFIX + padEndHash(hashString__default.default(classes + dir));
}
return constants.SEQUENCE_PREFIX + padEndHash(hashString__default.default(classes + dir)) + constants.DEBUG_SEQUENCE_SEPARATOR + padEndHash(hashString__default.default(sequenceIds.join('')));
}
exports.hashSequence = hashSequence;
//# sourceMappingURL=hashSequence.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"hashSequence.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/hashSequence.ts"],"sourcesContent":["import hash from '@emotion/hash';\n\nimport { DEBUG_SEQUENCE_SEPARATOR, SEQUENCE_HASH_LENGTH, SEQUENCE_PREFIX } from '../../constants';\nimport type { SequenceHash } from '../../types';\n\nfunction padEndHash(value: string): string {\n const hashLength = value.length;\n\n if (hashLength === SEQUENCE_HASH_LENGTH) {\n return value;\n }\n\n for (let i = hashLength; i < SEQUENCE_HASH_LENGTH; i++) {\n value += '0';\n }\n\n return value;\n}\n\nexport function hashSequence(\n classes: string,\n dir: 'ltr' | 'rtl',\n sequenceIds: (SequenceHash | undefined)[] = [],\n): SequenceHash {\n if (process.env.NODE_ENV === 'production') {\n return SEQUENCE_PREFIX + padEndHash(hash(classes + dir));\n }\n\n return (\n SEQUENCE_PREFIX +\n padEndHash(hash(classes + dir)) +\n DEBUG_SEQUENCE_SEPARATOR +\n padEndHash(hash(sequenceIds.join('')))\n );\n}\n"],"names":["padEndHash","value","hashLength","length","SEQUENCE_HASH_LENGTH","i","hashSequence","classes","dir","sequenceIds","process","env","NODE_ENV","SEQUENCE_PREFIX","hash","DEBUG_SEQUENCE_SEPARATOR","join"],"mappings":";;;;;;;;;AAKA,SAASA,UAAUA,CAACC,KAAa,EAAA;AAC/B,EAAA,MAAMC,UAAU,GAAGD,KAAK,CAACE,MAAM;EAE/B,IAAID,UAAU,KAAKE,8BAAoB,EAAE;AACvC,IAAA,OAAOH,KAAK;AACd,EAAA;EAEA,KAAK,IAAII,CAAC,GAAGH,UAAU,EAAEG,CAAC,GAAGD,8BAAoB,EAAEC,CAAC,EAAE,EAAE;AACtDJ,IAAAA,KAAK,IAAI,GAAG;AACd,EAAA;AAEA,EAAA,OAAOA,KAAK;AACd;AAEM,SAAUK,YAAYA,CAC1BC,OAAe,EACfC,GAAkB,EAClBC,cAA4C,EAAE,EAAA;AAE9C,EAAA,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;IACzC,OAAOC,yBAAe,GAAGb,UAAU,CAACc,2BAAI,CAACP,OAAO,GAAGC,GAAG,CAAC,CAAC;AAC1D,EAAA;EAEA,OACEK,yBAAe,GACfb,UAAU,CAACc,2BAAI,CAACP,OAAO,GAAGC,GAAG,CAAC,CAAC,GAC/BO,kCAAwB,GACxBf,UAAU,CAACc,2BAAI,CAACL,WAAW,CAACO,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;AAE1C;;;;"}

View File

@@ -0,0 +1,22 @@
import hashString from '@emotion/hash';
import { SEQUENCE_PREFIX, DEBUG_SEQUENCE_SEPARATOR, SEQUENCE_HASH_LENGTH } from '../../constants.esm.js';
function padEndHash(value) {
const hashLength = value.length;
if (hashLength === SEQUENCE_HASH_LENGTH) {
return value;
}
for (let i = hashLength; i < SEQUENCE_HASH_LENGTH; i++) {
value += '0';
}
return value;
}
function hashSequence(classes, dir, sequenceIds = []) {
if (process.env.NODE_ENV === 'production') {
return SEQUENCE_PREFIX + padEndHash(hashString(classes + dir));
}
return SEQUENCE_PREFIX + padEndHash(hashString(classes + dir)) + DEBUG_SEQUENCE_SEPARATOR + padEndHash(hashString(sequenceIds.join('')));
}
export { hashSequence };
//# sourceMappingURL=hashSequence.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"hashSequence.esm.js","sources":["../../../../../packages/core/src/runtime/utils/hashSequence.ts"],"sourcesContent":["import hash from '@emotion/hash';\n\nimport { DEBUG_SEQUENCE_SEPARATOR, SEQUENCE_HASH_LENGTH, SEQUENCE_PREFIX } from '../../constants';\nimport type { SequenceHash } from '../../types';\n\nfunction padEndHash(value: string): string {\n const hashLength = value.length;\n\n if (hashLength === SEQUENCE_HASH_LENGTH) {\n return value;\n }\n\n for (let i = hashLength; i < SEQUENCE_HASH_LENGTH; i++) {\n value += '0';\n }\n\n return value;\n}\n\nexport function hashSequence(\n classes: string,\n dir: 'ltr' | 'rtl',\n sequenceIds: (SequenceHash | undefined)[] = [],\n): SequenceHash {\n if (process.env.NODE_ENV === 'production') {\n return SEQUENCE_PREFIX + padEndHash(hash(classes + dir));\n }\n\n return (\n SEQUENCE_PREFIX +\n padEndHash(hash(classes + dir)) +\n DEBUG_SEQUENCE_SEPARATOR +\n padEndHash(hash(sequenceIds.join('')))\n );\n}\n"],"names":["padEndHash","value","hashLength","length","SEQUENCE_HASH_LENGTH","i","hashSequence","classes","dir","sequenceIds","process","env","NODE_ENV","SEQUENCE_PREFIX","hash","DEBUG_SEQUENCE_SEPARATOR","join"],"mappings":";;;AAKA,SAASA,UAAUA,CAACC,KAAa,EAAA;AAC/B,EAAA,MAAMC,UAAU,GAAGD,KAAK,CAACE,MAAM;EAE/B,IAAID,UAAU,KAAKE,oBAAoB,EAAE;AACvC,IAAA,OAAOH,KAAK;AACd,EAAA;EAEA,KAAK,IAAII,CAAC,GAAGH,UAAU,EAAEG,CAAC,GAAGD,oBAAoB,EAAEC,CAAC,EAAE,EAAE;AACtDJ,IAAAA,KAAK,IAAI,GAAG;AACd,EAAA;AAEA,EAAA,OAAOA,KAAK;AACd;AAEM,SAAUK,YAAYA,CAC1BC,OAAe,EACfC,GAAkB,EAClBC,cAA4C,EAAE,EAAA;AAE9C,EAAA,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;IACzC,OAAOC,eAAe,GAAGb,UAAU,CAACc,UAAI,CAACP,OAAO,GAAGC,GAAG,CAAC,CAAC;AAC1D,EAAA;EAEA,OACEK,eAAe,GACfb,UAAU,CAACc,UAAI,CAACP,OAAO,GAAGC,GAAG,CAAC,CAAC,GAC/BO,wBAAwB,GACxBf,UAAU,CAACc,UAAI,CAACL,WAAW,CAACO,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;AAE1C;;;;"}

View File

@@ -0,0 +1,21 @@
'use strict';
const uppercasePattern = /[A-Z]/g;
const msPattern = /^ms-/;
const cache = {};
function toHyphenLower(match) {
return '-' + match.toLowerCase();
}
function hyphenateProperty(name) {
if (Object.prototype.hasOwnProperty.call(cache, name)) {
return cache[name];
}
if (name.substr(0, 2) === '--') {
return name;
}
const hName = name.replace(uppercasePattern, toHyphenLower);
return cache[name] = msPattern.test(hName) ? '-' + hName : hName;
}
exports.hyphenateProperty = hyphenateProperty;
//# sourceMappingURL=hyphenateProperty.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"hyphenateProperty.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/hyphenateProperty.ts"],"sourcesContent":["const uppercasePattern = /[A-Z]/g;\nconst msPattern = /^ms-/;\nconst cache: Record<string, string> = {};\n\nfunction toHyphenLower(match: string): string {\n return '-' + match.toLowerCase();\n}\n\nexport function hyphenateProperty(name: string): string {\n if (Object.prototype.hasOwnProperty.call(cache, name)) {\n return cache[name];\n }\n\n if (name.substr(0, 2) === '--') {\n return name;\n }\n\n const hName = name.replace(uppercasePattern, toHyphenLower);\n return (cache[name] = msPattern.test(hName) ? '-' + hName : hName);\n}\n"],"names":["uppercasePattern","msPattern","cache","toHyphenLower","match","toLowerCase","hyphenateProperty","name","Object","prototype","hasOwnProperty","call","substr","hName","replace","test"],"mappings":";;AAAA,MAAMA,gBAAgB,GAAG,QAAQ;AACjC,MAAMC,SAAS,GAAG,MAAM;AACxB,MAAMC,KAAK,GAA2B,EAAE;AAExC,SAASC,aAAaA,CAACC,KAAa,EAAA;AAClC,EAAA,OAAO,GAAG,GAAGA,KAAK,CAACC,WAAW,EAAE;AAClC;AAEM,SAAUC,iBAAiBA,CAACC,IAAY,EAAA;AAC5C,EAAA,IAAIC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACT,KAAK,EAAEK,IAAI,CAAC,EAAE;IACrD,OAAOL,KAAK,CAACK,IAAI,CAAC;AACpB,EAAA;EAEA,IAAIA,IAAI,CAACK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,EAAE;AAC9B,IAAA,OAAOL,IAAI;AACb,EAAA;EAEA,MAAMM,KAAK,GAAGN,IAAI,CAACO,OAAO,CAACd,gBAAgB,EAAEG,aAAa,CAAC;AAC3D,EAAA,OAAQD,KAAK,CAACK,IAAI,CAAC,GAAGN,SAAS,CAACc,IAAI,CAACF,KAAK,CAAC,GAAG,GAAG,GAAGA,KAAK,GAAGA,KAAK;AACnE;;;;"}

View File

@@ -0,0 +1,19 @@
const uppercasePattern = /[A-Z]/g;
const msPattern = /^ms-/;
const cache = {};
function toHyphenLower(match) {
return '-' + match.toLowerCase();
}
function hyphenateProperty(name) {
if (Object.prototype.hasOwnProperty.call(cache, name)) {
return cache[name];
}
if (name.substr(0, 2) === '--') {
return name;
}
const hName = name.replace(uppercasePattern, toHyphenLower);
return cache[name] = msPattern.test(hName) ? '-' + hName : hName;
}
export { hyphenateProperty };
//# sourceMappingURL=hyphenateProperty.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"hyphenateProperty.esm.js","sources":["../../../../../packages/core/src/runtime/utils/hyphenateProperty.ts"],"sourcesContent":["const uppercasePattern = /[A-Z]/g;\nconst msPattern = /^ms-/;\nconst cache: Record<string, string> = {};\n\nfunction toHyphenLower(match: string): string {\n return '-' + match.toLowerCase();\n}\n\nexport function hyphenateProperty(name: string): string {\n if (Object.prototype.hasOwnProperty.call(cache, name)) {\n return cache[name];\n }\n\n if (name.substr(0, 2) === '--') {\n return name;\n }\n\n const hName = name.replace(uppercasePattern, toHyphenLower);\n return (cache[name] = msPattern.test(hName) ? '-' + hName : hName);\n}\n"],"names":["uppercasePattern","msPattern","cache","toHyphenLower","match","toLowerCase","hyphenateProperty","name","Object","prototype","hasOwnProperty","call","substr","hName","replace","test"],"mappings":"AAAA,MAAMA,gBAAgB,GAAG,QAAQ;AACjC,MAAMC,SAAS,GAAG,MAAM;AACxB,MAAMC,KAAK,GAA2B,EAAE;AAExC,SAASC,aAAaA,CAACC,KAAa,EAAA;AAClC,EAAA,OAAO,GAAG,GAAGA,KAAK,CAACC,WAAW,EAAE;AAClC;AAEM,SAAUC,iBAAiBA,CAACC,IAAY,EAAA;AAC5C,EAAA,IAAIC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACT,KAAK,EAAEK,IAAI,CAAC,EAAE;IACrD,OAAOL,KAAK,CAACK,IAAI,CAAC;AACpB,EAAA;EAEA,IAAIA,IAAI,CAACK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,EAAE;AAC9B,IAAA,OAAOL,IAAI;AACb,EAAA;EAEA,MAAMM,KAAK,GAAGN,IAAI,CAACO,OAAO,CAACd,gBAAgB,EAAEG,aAAa,CAAC;AAC3D,EAAA,OAAQD,KAAK,CAACK,IAAI,CAAC,GAAGN,SAAS,CAACc,IAAI,CAACF,KAAK,CAAC,GAAG,GAAG,GAAGA,KAAK,GAAGA,KAAK;AACnE;;;;"}

View File

@@ -0,0 +1,8 @@
'use strict';
function isContainerQuerySelector(property) {
return property.substring(0, 10) === '@container';
}
exports.isContainerQuerySelector = isContainerQuerySelector;
//# sourceMappingURL=isContainerQuerySelector.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"isContainerQuerySelector.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/isContainerQuerySelector.ts"],"sourcesContent":["export function isContainerQuerySelector(property: string): boolean {\n return property.substring(0, 10) === '@container';\n}\n"],"names":["isContainerQuerySelector","property","substring"],"mappings":";;AAAM,SAAUA,wBAAwBA,CAACC,QAAgB,EAAA;EACvD,OAAOA,QAAQ,CAACC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,YAAY;AACnD;;;;"}

View File

@@ -0,0 +1,6 @@
function isContainerQuerySelector(property) {
return property.substring(0, 10) === '@container';
}
export { isContainerQuerySelector };
//# sourceMappingURL=isContainerQuerySelector.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"isContainerQuerySelector.esm.js","sources":["../../../../../packages/core/src/runtime/utils/isContainerQuerySelector.ts"],"sourcesContent":["export function isContainerQuerySelector(property: string): boolean {\n return property.substring(0, 10) === '@container';\n}\n"],"names":["isContainerQuerySelector","property","substring"],"mappings":"AAAM,SAAUA,wBAAwBA,CAACC,QAAgB,EAAA;EACvD,OAAOA,QAAQ,CAACC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,YAAY;AACnD;;;;"}

View File

@@ -0,0 +1,8 @@
'use strict';
function isLayerSelector(property) {
return property.substr(0, 6) === '@layer';
}
exports.isLayerSelector = isLayerSelector;
//# sourceMappingURL=isLayerSelector.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"isLayerSelector.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/isLayerSelector.ts"],"sourcesContent":["export function isLayerSelector(property: string): boolean {\n return property.substr(0, 6) === '@layer';\n}\n"],"names":["isLayerSelector","property","substr"],"mappings":";;AAAM,SAAUA,eAAeA,CAACC,QAAgB,EAAA;EAC9C,OAAOA,QAAQ,CAACC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ;AAC3C;;;;"}

View File

@@ -0,0 +1,6 @@
function isLayerSelector(property) {
return property.substr(0, 6) === '@layer';
}
export { isLayerSelector };
//# sourceMappingURL=isLayerSelector.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"isLayerSelector.esm.js","sources":["../../../../../packages/core/src/runtime/utils/isLayerSelector.ts"],"sourcesContent":["export function isLayerSelector(property: string): boolean {\n return property.substr(0, 6) === '@layer';\n}\n"],"names":["isLayerSelector","property","substr"],"mappings":"AAAM,SAAUA,eAAeA,CAACC,QAAgB,EAAA;EAC9C,OAAOA,QAAQ,CAACC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ;AAC3C;;;;"}

View File

@@ -0,0 +1,8 @@
'use strict';
function isMediaQuerySelector(property) {
return property.substr(0, 6) === '@media';
}
exports.isMediaQuerySelector = isMediaQuerySelector;
//# sourceMappingURL=isMediaQuerySelector.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"isMediaQuerySelector.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/isMediaQuerySelector.ts"],"sourcesContent":["export function isMediaQuerySelector(property: string): boolean {\n return property.substr(0, 6) === '@media';\n}\n"],"names":["isMediaQuerySelector","property","substr"],"mappings":";;AAAM,SAAUA,oBAAoBA,CAACC,QAAgB,EAAA;EACnD,OAAOA,QAAQ,CAACC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ;AAC3C;;;;"}

View File

@@ -0,0 +1,6 @@
function isMediaQuerySelector(property) {
return property.substr(0, 6) === '@media';
}
export { isMediaQuerySelector };
//# sourceMappingURL=isMediaQuerySelector.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"isMediaQuerySelector.esm.js","sources":["../../../../../packages/core/src/runtime/utils/isMediaQuerySelector.ts"],"sourcesContent":["export function isMediaQuerySelector(property: string): boolean {\n return property.substr(0, 6) === '@media';\n}\n"],"names":["isMediaQuerySelector","property","substr"],"mappings":"AAAM,SAAUA,oBAAoBA,CAACC,QAAgB,EAAA;EACnD,OAAOA,QAAQ,CAACC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ;AAC3C;;;;"}

View File

@@ -0,0 +1,9 @@
'use strict';
const regex = /^(:|\[|>|&)/;
function isNestedSelector(property) {
return regex.test(property);
}
exports.isNestedSelector = isNestedSelector;
//# sourceMappingURL=isNestedSelector.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"isNestedSelector.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/isNestedSelector.ts"],"sourcesContent":["const regex = /^(:|\\[|>|&)/;\n\nexport function isNestedSelector(property: string): boolean {\n return regex.test(property);\n}\n"],"names":["regex","isNestedSelector","property","test"],"mappings":";;AAAA,MAAMA,KAAK,GAAG,aAAa;AAErB,SAAUC,gBAAgBA,CAACC,QAAgB,EAAA;AAC/C,EAAA,OAAOF,KAAK,CAACG,IAAI,CAACD,QAAQ,CAAC;AAC7B;;;;"}

View File

@@ -0,0 +1,7 @@
const regex = /^(:|\[|>|&)/;
function isNestedSelector(property) {
return regex.test(property);
}
export { isNestedSelector };
//# sourceMappingURL=isNestedSelector.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"isNestedSelector.esm.js","sources":["../../../../../packages/core/src/runtime/utils/isNestedSelector.ts"],"sourcesContent":["const regex = /^(:|\\[|>|&)/;\n\nexport function isNestedSelector(property: string): boolean {\n return regex.test(property);\n}\n"],"names":["regex","isNestedSelector","property","test"],"mappings":"AAAA,MAAMA,KAAK,GAAG,aAAa;AAErB,SAAUC,gBAAgBA,CAACC,QAAgB,EAAA;AAC/C,EAAA,OAAOF,KAAK,CAACG,IAAI,CAACD,QAAQ,CAAC;AAC7B;;;;"}

View File

@@ -0,0 +1,9 @@
'use strict';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function isObject(val) {
return val != null && typeof val === 'object' && Array.isArray(val) === false;
}
exports.isObject = isObject;
//# sourceMappingURL=isObject.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"isObject.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/isObject.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function isObject(val: any): val is Record<string, unknown> {\n return val != null && typeof val === 'object' && Array.isArray(val) === false;\n}\n"],"names":["isObject","val","Array","isArray"],"mappings":";;AAAA;AACM,SAAUA,QAAQA,CAACC,GAAQ,EAAA;AAC/B,EAAA,OAAOA,GAAG,IAAI,IAAI,IAAI,OAAOA,GAAG,KAAK,QAAQ,IAAIC,KAAK,CAACC,OAAO,CAACF,GAAG,CAAC,KAAK,KAAK;AAC/E;;;;"}

View File

@@ -0,0 +1,7 @@
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function isObject(val) {
return val != null && typeof val === 'object' && Array.isArray(val) === false;
}
export { isObject };
//# sourceMappingURL=isObject.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"isObject.esm.js","sources":["../../../../../packages/core/src/runtime/utils/isObject.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function isObject(val: any): val is Record<string, unknown> {\n return val != null && typeof val === 'object' && Array.isArray(val) === false;\n}\n"],"names":["isObject","val","Array","isArray"],"mappings":"AAAA;AACM,SAAUA,QAAQA,CAACC,GAAQ,EAAA;AAC/B,EAAA,OAAOA,GAAG,IAAI,IAAI,IAAI,OAAOA,GAAG,KAAK,QAAQ,IAAIC,KAAK,CAACC,OAAO,CAACF,GAAG,CAAC,KAAK,KAAK;AAC/E;;;;"}

View File

@@ -0,0 +1,10 @@
'use strict';
var constants = require('../../constants.cjs.js');
function isResetValue(value) {
return value === constants.RESET;
}
exports.isResetValue = isResetValue;
//# sourceMappingURL=isResetValue.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"isResetValue.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/isResetValue.ts"],"sourcesContent":["import { RESET } from '../../constants';\n\nexport function isResetValue(value: unknown) {\n return value === RESET;\n}\n"],"names":["isResetValue","value","RESET"],"mappings":";;;;AAEM,SAAUA,YAAYA,CAACC,KAAc,EAAA;EACzC,OAAOA,KAAK,KAAKC,eAAK;AACxB;;;;"}

View File

@@ -0,0 +1,8 @@
import { RESET } from '../../constants.esm.js';
function isResetValue(value) {
return value === RESET;
}
export { isResetValue };
//# sourceMappingURL=isResetValue.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"isResetValue.esm.js","sources":["../../../../../packages/core/src/runtime/utils/isResetValue.ts"],"sourcesContent":["import { RESET } from '../../constants';\n\nexport function isResetValue(value: unknown) {\n return value === RESET;\n}\n"],"names":["isResetValue","value","RESET"],"mappings":";;AAEM,SAAUA,YAAYA,CAACC,KAAc,EAAA;EACzC,OAAOA,KAAK,KAAKC,KAAK;AACxB;;;;"}

View File

@@ -0,0 +1,8 @@
'use strict';
function isSupportQuerySelector(property) {
return property.substr(0, 9) === '@supports';
}
exports.isSupportQuerySelector = isSupportQuerySelector;
//# sourceMappingURL=isSupportQuerySelector.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"isSupportQuerySelector.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/isSupportQuerySelector.ts"],"sourcesContent":["export function isSupportQuerySelector(property: string): boolean {\n return property.substr(0, 9) === '@supports';\n}\n"],"names":["isSupportQuerySelector","property","substr"],"mappings":";;AAAM,SAAUA,sBAAsBA,CAACC,QAAgB,EAAA;EACrD,OAAOA,QAAQ,CAACC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,WAAW;AAC9C;;;;"}

View File

@@ -0,0 +1,6 @@
function isSupportQuerySelector(property) {
return property.substr(0, 9) === '@supports';
}
export { isSupportQuerySelector };
//# sourceMappingURL=isSupportQuerySelector.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"isSupportQuerySelector.esm.js","sources":["../../../../../packages/core/src/runtime/utils/isSupportQuerySelector.ts"],"sourcesContent":["export function isSupportQuerySelector(property: string): boolean {\n return property.substr(0, 9) === '@supports';\n}\n"],"names":["isSupportQuerySelector","property","substr"],"mappings":"AAAM,SAAUA,sBAAsBA,CAACC,QAAgB,EAAA;EACrD,OAAOA,QAAQ,CAACC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,WAAW;AAC9C;;;;"}

View File

@@ -0,0 +1,20 @@
'use strict';
/**
* @internal
*
* @param entry - CSS bucket entry that can be either a string or an array
* @returns An array where the first element is the CSS rule
*/
function normalizeCSSBucketEntry(entry) {
if (!Array.isArray(entry)) {
return [entry];
}
if (process.env.NODE_ENV !== 'production' && entry.length > 2) {
throw new Error('CSS Bucket contains an entry with greater than 2 items, please report this to https://github.com/microsoft/griffel/issues');
}
return entry;
}
exports.normalizeCSSBucketEntry = normalizeCSSBucketEntry;
//# sourceMappingURL=normalizeCSSBucketEntry.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"normalizeCSSBucketEntry.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/normalizeCSSBucketEntry.ts"],"sourcesContent":["import type { CSSBucketEntry } from '../../types';\n\n/**\n * @internal\n *\n * @param entry - CSS bucket entry that can be either a string or an array\n * @returns An array where the first element is the CSS rule\n */\nexport function normalizeCSSBucketEntry(entry: CSSBucketEntry): [string] | [string, Record<string, unknown>] {\n if (!Array.isArray(entry)) {\n return [entry];\n }\n\n if (process.env.NODE_ENV !== 'production' && entry.length > 2) {\n throw new Error(\n 'CSS Bucket contains an entry with greater than 2 items, please report this to https://github.com/microsoft/griffel/issues',\n );\n }\n\n return entry;\n}\n"],"names":["normalizeCSSBucketEntry","entry","Array","isArray","process","env","NODE_ENV","length","Error"],"mappings":";;AAEA;;;;;AAKG;AACG,SAAUA,uBAAuBA,CAACC,KAAqB,EAAA;AAC3D,EAAA,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACzB,OAAO,CAACA,KAAK,CAAC;AAChB,EAAA;AAEA,EAAA,IAAIG,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,IAAIL,KAAK,CAACM,MAAM,GAAG,CAAC,EAAE;AAC7D,IAAA,MAAM,IAAIC,KAAK,CACb,2HAA2H,CAC5H;AACH,EAAA;AAEA,EAAA,OAAOP,KAAK;AACd;;;;"}

View File

@@ -0,0 +1,18 @@
/**
* @internal
*
* @param entry - CSS bucket entry that can be either a string or an array
* @returns An array where the first element is the CSS rule
*/
function normalizeCSSBucketEntry(entry) {
if (!Array.isArray(entry)) {
return [entry];
}
if (process.env.NODE_ENV !== 'production' && entry.length > 2) {
throw new Error('CSS Bucket contains an entry with greater than 2 items, please report this to https://github.com/microsoft/griffel/issues');
}
return entry;
}
export { normalizeCSSBucketEntry };
//# sourceMappingURL=normalizeCSSBucketEntry.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"normalizeCSSBucketEntry.esm.js","sources":["../../../../../packages/core/src/runtime/utils/normalizeCSSBucketEntry.ts"],"sourcesContent":["import type { CSSBucketEntry } from '../../types';\n\n/**\n * @internal\n *\n * @param entry - CSS bucket entry that can be either a string or an array\n * @returns An array where the first element is the CSS rule\n */\nexport function normalizeCSSBucketEntry(entry: CSSBucketEntry): [string] | [string, Record<string, unknown>] {\n if (!Array.isArray(entry)) {\n return [entry];\n }\n\n if (process.env.NODE_ENV !== 'production' && entry.length > 2) {\n throw new Error(\n 'CSS Bucket contains an entry with greater than 2 items, please report this to https://github.com/microsoft/griffel/issues',\n );\n }\n\n return entry;\n}\n"],"names":["normalizeCSSBucketEntry","entry","Array","isArray","process","env","NODE_ENV","length","Error"],"mappings":"AAEA;;;;;AAKG;AACG,SAAUA,uBAAuBA,CAACC,KAAqB,EAAA;AAC3D,EAAA,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACzB,OAAO,CAACA,KAAK,CAAC;AAChB,EAAA;AAEA,EAAA,IAAIG,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,IAAIL,KAAK,CAACM,MAAM,GAAG,CAAC,EAAE;AAC7D,IAAA,MAAM,IAAIC,KAAK,CACb,2HAA2H,CAC5H;AACH,EAAA;AAEA,EAAA,OAAOP,KAAK;AACd;;;;"}

View File

@@ -0,0 +1,11 @@
'use strict';
function normalizeNestedProperty(nestedProperty) {
if (nestedProperty.charAt(0) === '&') {
return nestedProperty.slice(1);
}
return nestedProperty;
}
exports.normalizeNestedProperty = normalizeNestedProperty;
//# sourceMappingURL=normalizeNestedProperty.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"normalizeNestedProperty.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/normalizeNestedProperty.ts"],"sourcesContent":["export function normalizeNestedProperty(nestedProperty: string): string {\n if (nestedProperty.charAt(0) === '&') {\n return nestedProperty.slice(1);\n }\n\n return nestedProperty;\n}\n"],"names":["normalizeNestedProperty","nestedProperty","charAt","slice"],"mappings":";;AAAM,SAAUA,uBAAuBA,CAACC,cAAsB,EAAA;EAC5D,IAAIA,cAAc,CAACC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;AACpC,IAAA,OAAOD,cAAc,CAACE,KAAK,CAAC,CAAC,CAAC;AAChC,EAAA;AAEA,EAAA,OAAOF,cAAc;AACvB;;;;"}

View File

@@ -0,0 +1,9 @@
function normalizeNestedProperty(nestedProperty) {
if (nestedProperty.charAt(0) === '&') {
return nestedProperty.slice(1);
}
return nestedProperty;
}
export { normalizeNestedProperty };
//# sourceMappingURL=normalizeNestedProperty.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"normalizeNestedProperty.esm.js","sources":["../../../../../packages/core/src/runtime/utils/normalizeNestedProperty.ts"],"sourcesContent":["export function normalizeNestedProperty(nestedProperty: string): string {\n if (nestedProperty.charAt(0) === '&') {\n return nestedProperty.slice(1);\n }\n\n return nestedProperty;\n}\n"],"names":["normalizeNestedProperty","nestedProperty","charAt","slice"],"mappings":"AAAM,SAAUA,uBAAuBA,CAACC,cAAsB,EAAA;EAC5D,IAAIA,cAAc,CAACC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;AACpC,IAAA,OAAOD,cAAc,CAACE,KAAK,CAAC,CAAC,CAAC;AAChC,EAAA;AAEA,EAAA,OAAOF,cAAc;AACvB;;;;"}

View File

@@ -0,0 +1,11 @@
'use strict';
/**
* Trims selectors to generate consistent hashes.
*/
function trimSelector(selector) {
return selector.replace(/>\s+/g, '>');
}
exports.trimSelector = trimSelector;
//# sourceMappingURL=trimSelector.cjs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"trimSelector.cjs.js","sources":["../../../../../packages/core/src/runtime/utils/trimSelector.ts"],"sourcesContent":["/**\n * Trims selectors to generate consistent hashes.\n */\nexport function trimSelector(selector: string): string {\n return selector.replace(/>\\s+/g, '>');\n}\n"],"names":["trimSelector","selector","replace"],"mappings":";;AAAA;;AAEG;AACG,SAAUA,YAAYA,CAACC,QAAgB,EAAA;AAC3C,EAAA,OAAOA,QAAQ,CAACC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC;AACvC;;;;"}

View File

@@ -0,0 +1,9 @@
/**
* Trims selectors to generate consistent hashes.
*/
function trimSelector(selector) {
return selector.replace(/>\s+/g, '>');
}
export { trimSelector };
//# sourceMappingURL=trimSelector.esm.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"trimSelector.esm.js","sources":["../../../../../packages/core/src/runtime/utils/trimSelector.ts"],"sourcesContent":["/**\n * Trims selectors to generate consistent hashes.\n */\nexport function trimSelector(selector: string): string {\n return selector.replace(/>\\s+/g, '>');\n}\n"],"names":["trimSelector","selector","replace"],"mappings":"AAAA;;AAEG;AACG,SAAUA,YAAYA,CAACC,QAAgB,EAAA;AAC3C,EAAA,OAAOA,QAAQ,CAACC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC;AACvC;;;;"}