@arbor-css/preset 0.0.49 → 0.0.52

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.
@@ -1,69 +1,104 @@
1
1
  import { compileColors, defaultDarkScheme, defaultLightScheme, } from '@arbor-css/colors';
2
- import { createGlobals } from '@arbor-css/globals';
2
+ import { createFunctionFactory } from '@arbor-css/functions';
3
+ import { createGlobalContext, createGlobals, } from '@arbor-css/globals';
3
4
  import { createPrimitives } from '@arbor-css/primitives';
4
- import { compileShadows } from '@arbor-css/shadows';
5
- import { compileSpacing } from '@arbor-css/spacing';
6
- import { compileTypography } from '@arbor-css/typography';
5
+ import { compileShadows, } from '@arbor-css/shadows';
6
+ import { compileSpacing, } from '@arbor-css/spacing';
7
+ import { compileTypography, } from '@arbor-css/typography';
7
8
  import { deepMerge } from '@arbor-css/util';
8
- import { arborModeSchema, createArborModeValues, } from './arborPreset.js';
9
- export function createArborPreset(inputConfig) {
10
- const config = {
11
- ...inputConfig,
12
- colors: {
13
- ...inputConfig.colors,
14
- schemes: {
15
- light: defaultLightScheme,
16
- dark: defaultDarkScheme,
17
- ...inputConfig.colors.schemes,
18
- },
19
- },
20
- };
21
- const globals = createGlobals(config.globals ?? {});
22
- const colors = compileColors({
23
- ranges: config.colors.ranges,
24
- schemes: config.colors.schemes,
25
- globals,
26
- });
27
- const typography = compileTypography({
28
- ...config.typography,
29
- globals,
30
- });
31
- const spacing = compileSpacing({
32
- ...config.spacing,
33
- globals,
34
- });
35
- const shadows = compileShadows({
36
- ...config.shadows,
37
- globals,
38
- });
39
- const primitives = createPrimitives({
40
- colors,
41
- typography,
42
- spacing,
43
- shadows,
44
- globals,
45
- defaultScheme: config.colors.defaultScheme,
46
- schemeTags: config.colors.schemeTags,
9
+ import { createArborModeSchema, createArborModeValues, } from './arborPreset.js';
10
+ import { definePreset } from './config.js';
11
+ import { createPresetFunctions } from './functions.js';
12
+ export function createArbor(config = {}) {
13
+ const context = createGlobalContext(config);
14
+ const modeSchema = createArborModeSchema({
15
+ createToken: context.createToken,
47
16
  });
48
- const baseModeValues = deepMerge(createArborModeValues({
49
- mainColor: config.colors.mainColor,
50
- primitives,
51
- }), config.baseMode ?? {});
52
- const baseMode = arborModeSchema.createBase(baseModeValues);
53
- const modes = {
54
- base: baseMode,
55
- };
56
- const preset = {
57
- modes,
58
- primitives,
59
- };
60
- preset.withMode = (name, mode) => {
61
- modes[name] = arborModeSchema.createPartial(name, mode(preset));
62
- return preset;
63
- };
64
- preset.meta = {
65
- config,
17
+ const builtinFunctions = createPresetFunctions(context.$systemTokens, createFunctionFactory({
18
+ tokenPrefix: context.tokenPrefix,
19
+ }));
20
+ return {
21
+ context,
22
+ preset: (inputConfig) => {
23
+ const normalizedConfig = {
24
+ ...inputConfig,
25
+ tokenPrefix: context.tokenPrefix,
26
+ colors: {
27
+ ...inputConfig.colors,
28
+ schemes: {
29
+ light: defaultLightScheme,
30
+ dark: defaultDarkScheme,
31
+ ...inputConfig.colors.schemes,
32
+ },
33
+ },
34
+ };
35
+ const globals = createGlobals(normalizedConfig.globals ?? {});
36
+ const colors = compileColors({
37
+ ranges: normalizedConfig.colors.ranges,
38
+ schemes: normalizedConfig.colors.schemes,
39
+ context,
40
+ });
41
+ const typography = compileTypography({
42
+ ...normalizedConfig.typography,
43
+ context,
44
+ });
45
+ const spacing = compileSpacing({
46
+ ...normalizedConfig.spacing,
47
+ context,
48
+ });
49
+ const shadows = compileShadows({
50
+ ...normalizedConfig.shadows,
51
+ context,
52
+ });
53
+ const primitives = createPrimitives({
54
+ colors,
55
+ typography,
56
+ spacing,
57
+ shadows,
58
+ globals,
59
+ defaultScheme: normalizedConfig.colors.defaultScheme,
60
+ schemeTags: normalizedConfig.colors.schemeTags,
61
+ createToken: context.createToken,
62
+ });
63
+ const baseModeValues = deepMerge(createArborModeValues({
64
+ mainColor: normalizedConfig.colors.mainColor,
65
+ primitives,
66
+ modeSchema,
67
+ globalProps: context.$systemTokens.globals,
68
+ }), normalizedConfig.baseMode ?? {});
69
+ const baseMode = modeSchema.createBase(baseModeValues);
70
+ const modes = {
71
+ base: baseMode,
72
+ };
73
+ const functions = {
74
+ ...builtinFunctions,
75
+ ...normalizedConfig.functions,
76
+ };
77
+ const preset = definePreset({
78
+ primitives,
79
+ modes,
80
+ functions,
81
+ systemProps: context.$systemTokens,
82
+ meta: {
83
+ config: normalizedConfig,
84
+ },
85
+ context,
86
+ });
87
+ preset.withMode = (name, mode) => {
88
+ modes[name] = modeSchema.createPartial(name, mode(preset));
89
+ return preset;
90
+ };
91
+ preset.meta = {
92
+ tokenPrefix: context.tokenPrefix,
93
+ config: normalizedConfig,
94
+ };
95
+ return preset;
96
+ },
66
97
  };
67
- return preset;
98
+ }
99
+ export function createArborPreset(inputConfig) {
100
+ return createArbor({
101
+ tokenPrefix: inputConfig.tokenPrefix,
102
+ }).preset(inputConfig);
68
103
  }
69
104
  //# sourceMappingURL=createArborPreset.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createArborPreset.js","sourceRoot":"","sources":["../src/createArborPreset.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EAEb,iBAAiB,EACjB,kBAAkB,GAElB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAgB,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAgB,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAiB,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAoB,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAe,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAEN,eAAe,EACf,qBAAqB,GACrB,MAAM,kBAAkB,CAAC;AAsD1B,MAAM,UAAU,iBAAiB,CAIhC,WAAuD;IAEvD,MAAM,MAAM,GAA+C;QAC1D,GAAG,WAAW;QACd,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AW;KACpC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AACxB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { CreateFunction } from '@arbor-css/functions';
2
+ import { SystemTokens } from '@arbor-css/globals';
3
+ export declare function createPresetFunctions(systemProps: SystemTokens, createFunctionValue: CreateFunction): {
4
+ readonly lightenColor: import("@arbor-css/functions").ArborFunction<readonly ["--color", "--step"]>;
5
+ readonly darkenColor: import("@arbor-css/functions").ArborFunction<readonly ["--color", "--step"]>;
6
+ readonly desaturateColor: import("@arbor-css/functions").ArborFunction<readonly ["--color", "--step"]>;
7
+ readonly saturateColor: import("@arbor-css/functions").ArborFunction<readonly ["--color", "--step"]>;
8
+ };
9
+ export type BuiltinFunctions = ReturnType<typeof createPresetFunctions>;
10
+ //# sourceMappingURL=functions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../src/functions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAkBlD,wBAAgB,qBAAqB,CACpC,WAAW,EAAE,YAAY,EACzB,mBAAmB,EAAE,cAAc;;;;;EAoCnC;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ function lightDarkAlterations(css, systemProps, { light, dark, step, }) {
2
+ return css `calc(1 + ${step} * (${[systemProps.scheme.whenLight, 1]} * ${light}) + (${[systemProps.scheme.whenDark, 1]} * ${dark}))`;
3
+ }
4
+ export function createPresetFunctions(systemProps, createFunctionValue) {
5
+ const lightenColor = createFunctionValue('lighten-color', {
6
+ description: 'Lightens a color by a specified "step" value',
7
+ parameters: ['--color', '--step'],
8
+ definition: (css, color, step) => css `oklch(from ${color} calc(l * ${lightDarkAlterations(css, systemProps, { light: 0.02, dark: -0.07, step })}) calc(c * ${lightDarkAlterations(css, systemProps, { light: -0.1, dark: -0.03, step })}) h)`,
9
+ });
10
+ const darkenColor = createFunctionValue('darken-color', {
11
+ description: 'Darkens a color by a specified "step" value',
12
+ parameters: ['--color', '--step'],
13
+ definition: (css, color, step) => css `oklch(from ${color} calc(l * ${lightDarkAlterations(css, systemProps, { light: -0.02, dark: 0.12, step })}) calc(c * ${lightDarkAlterations(css, systemProps, { light: 0.01, dark: -0.09, step })}) h)`,
14
+ });
15
+ const desaturateColor = createFunctionValue('desaturate-color', {
16
+ description: 'Desaturates a color by a specified "step" value',
17
+ parameters: ['--color', '--step'],
18
+ definition: (css, color, step) => css `oklch(from ${color} l calc(c * (1 + ${[systemProps.scheme.whenLight, 1]} * 0.05 * ${step})) h)`,
19
+ });
20
+ const saturateColor = createFunctionValue('saturate-color', {
21
+ description: 'Saturates a color by a specified "step" value',
22
+ parameters: ['--color', '--step'],
23
+ definition: (css, color, step) => css `oklch(from ${color} l calc(c * (1 + ${[systemProps.scheme.whenLight, 1]} * -0.05 * ${step})) h)`,
24
+ });
25
+ return {
26
+ lightenColor,
27
+ darkenColor,
28
+ desaturateColor,
29
+ saturateColor,
30
+ };
31
+ }
32
+ //# sourceMappingURL=functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functions.js","sourceRoot":"","sources":["../src/functions.ts"],"names":[],"mappings":"AAIA,SAAS,oBAAoB,CAC5B,GAAQ,EACR,WAAyB,EACzB,EACC,KAAK,EACL,IAAI,EACJ,IAAI,GAKJ;IAED,OAAO,GAAG,CAAA,YAAY,IAAI,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,MAAM,KAAK,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,MAAM,IAAI,IAAI,CAAC;AACrI,CAAC;AAED,MAAM,UAAU,qBAAqB,CACpC,WAAyB,EACzB,mBAAmC;IAEnC,MAAM,YAAY,GAAG,mBAAmB,CAA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S,EAAE,CAAC,CAAC,aAAa,IAAI,OAAO;KACpG,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG,mBAAmB,CAAC,gBAAgB,EAAE;QAC3D,WAAW,EAAE,+CAA+C;QAC5D,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAU;QAC1C,UAAU,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAChC,GAAG,CAAA,cAAc,KAAK,oBAAoB,CAAC,WAAW,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,cAAc,IAAI,OAAO;KACrG,CAAC,CAAC;IAEH,OAAO;QACN,YAAY;QACZ,WAAW;QACX,eAAe;QACf,aAAa;KACJ,CAAC;AACZ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from '@arbor-css/colors';
2
- export { $systemProps, createGlobals, defaultGlobals, type GlobalConfigProps, type GlobalConfig as PrimitiveGlobals, } from '@arbor-css/globals';
2
+ export { createGlobalProps, createGlobals, createSystemProps, defaultGlobals, type GlobalConfigProps, type GlobalConfig as PrimitiveGlobals, } from '@arbor-css/globals';
3
3
  export * from '@arbor-css/modes';
4
4
  export * from '@arbor-css/shadows';
5
5
  export * from '@arbor-css/spacing';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACN,YAAY,EACZ,aAAa,EACb,cAAc,EACd,KAAK,iBAAiB,EACtB,KAAK,YAAY,IAAI,gBAAgB,GACrC,MAAM,oBAAoB,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACN,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,KAAK,iBAAiB,EACtB,KAAK,YAAY,IAAI,gBAAgB,GACrC,MAAM,oBAAoB,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from '@arbor-css/colors';
2
- export { $systemProps, createGlobals, defaultGlobals, } from '@arbor-css/globals';
2
+ export { createGlobals, defaultGlobals, } from '@arbor-css/globals';
3
3
  export * from '@arbor-css/modes';
4
4
  export * from '@arbor-css/shadows';
5
5
  export * from '@arbor-css/spacing';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACN,YAAY,EACZ,aAAa,EACb,cAAc,GAGd,MAAM,oBAAoB,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAEN,aAAa,EAEb,cAAc,GAGd,MAAM,oBAAoB,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbor-css/preset",
3
- "version": "0.0.49",
3
+ "version": "0.0.52",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,21 +27,26 @@
27
27
  },
28
28
  "sideEffects": false,
29
29
  "devDependencies": {
30
- "typescript": "^6.0.3"
30
+ "typescript": "^6.0.3",
31
+ "vitest": "^4.1.5"
31
32
  },
32
33
  "dependencies": {
33
- "@arbor-css/colors": "0.0.49",
34
- "@arbor-css/globals": "0.0.49",
35
- "@arbor-css/modes": "0.0.49",
36
- "@arbor-css/spacing": "0.0.49",
37
- "@arbor-css/shadows": "0.0.49",
38
- "@arbor-css/primitives": "0.0.49",
39
- "@arbor-css/typography": "0.0.49",
40
- "@arbor-css/tokens": "0.0.49",
41
- "@arbor-css/util": "0.0.49"
34
+ "@arbor-css/colors": "0.0.52",
35
+ "@arbor-css/globals": "0.0.52",
36
+ "@arbor-css/primitives": "0.0.52",
37
+ "@arbor-css/shadows": "0.0.52",
38
+ "@arbor-css/modes": "0.0.52",
39
+ "@arbor-css/spacing": "0.0.52",
40
+ "@arbor-css/tokens": "0.0.52",
41
+ "@arbor-css/typography": "0.0.52",
42
+ "@arbor-css/functions": "0.0.52",
43
+ "@arbor-css/calc": "0.0.52",
44
+ "@arbor-css/util": "0.0.52"
42
45
  },
43
46
  "scripts": {
44
47
  "build": "tsc",
45
- "dev": "tsc -w --preserveWatchOutput"
48
+ "dev": "tsc -w --preserveWatchOutput",
49
+ "test": "vitest",
50
+ "test:ci": "vitest --run"
46
51
  }
47
52
  }