@pharos-ds/core 1.0.0 → 1.0.2-canary.5fd8b11
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.md +14 -0
- package/dist/pharos.umd.js +1 -1
- package/dist/pharos.umd.js.map +2 -2
- package/dist/theme/defineTheme.d.ts +2 -2
- package/dist/theme/index.d.ts +5 -5
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +3 -3
- package/package.json +5 -5
- package/src/reset.css +1 -1
- package/src/tailwind-theme.css +1 -1
- package/src/theme/defineTheme.ts +2 -2
- package/src/theme/index.ts +5 -11
|
@@ -114,11 +114,11 @@ export interface DefineThemeInput {
|
|
|
114
114
|
*
|
|
115
115
|
* @example
|
|
116
116
|
* ```tsx
|
|
117
|
-
* import {
|
|
117
|
+
* import {pharosTheme} from '@pharos-ds/theme-pharos';
|
|
118
118
|
*
|
|
119
119
|
* const myTheme = defineTheme({
|
|
120
120
|
* name: 'my-brand',
|
|
121
|
-
* extends:
|
|
121
|
+
* extends: pharosTheme,
|
|
122
122
|
* icons: myIcons,
|
|
123
123
|
* tokens: { '--color-accent': '#FF0000' },
|
|
124
124
|
* });
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* - defineTheme: Create themes with token + component overrides
|
|
7
7
|
* - Token exports for direct use in StyleX
|
|
8
8
|
*
|
|
9
|
-
* Themes are in separate packages:
|
|
10
|
-
* import {
|
|
11
|
-
* import
|
|
9
|
+
* Themes are in separate packages. The default theme is Pharos (Alexandria brand):
|
|
10
|
+
* import { pharosTheme } from '@pharos-ds/theme-pharos/built';
|
|
11
|
+
* import '@pharos-ds/theme-pharos/theme.css';
|
|
12
12
|
*/
|
|
13
13
|
export { Theme } from './Theme';
|
|
14
14
|
export { MediaTheme } from './MediaTheme';
|
|
@@ -24,11 +24,11 @@ export type { UseSyntaxThemeReturn } from './syntax';
|
|
|
24
24
|
export { expandTypeScale, generateTypeScaleComponents } from './expandTypeScale';
|
|
25
25
|
export type { TypeScaleConfig, TypeScaleTokens } from './expandTypeScale';
|
|
26
26
|
export { expandRadiusScale } from './expandRadiusScale';
|
|
27
|
-
export type { RadiusScaleConfig, RadiusScaleTokens
|
|
27
|
+
export type { RadiusScaleConfig, RadiusScaleTokens } from './expandRadiusScale';
|
|
28
28
|
export { expandColorScale } from './expandColorScale';
|
|
29
29
|
export type { ColorScaleConfig, ColorScaleTokens } from './expandColorScale';
|
|
30
30
|
export { expandMotionScale } from './expandMotionScale';
|
|
31
|
-
export type { MotionScaleConfig, MotionScaleTokens
|
|
31
|
+
export type { MotionScaleConfig, MotionScaleTokens } from './expandMotionScale';
|
|
32
32
|
export { colorDefaults, spacingDefaults, sizeDefaults, borderDefaults, radiusDefaults, shadowDefaults, durationDefaults, easeDefaults, transitionDefaults, typographyDefaults, textSizeDefaults, fontWeightDefaults, typeScaleDefaults, colorVars, spacingVars, sizeVars, borderVars, radiusVars, shadowVars, durationVars, easeVars, transitionVars, typographyVars, textSizeVars, fontWeightVars, typeScaleVars, } from './tokens.stylex';
|
|
33
33
|
export type { ColorVarName, SpacingVarName, SizeVarName, BorderVarName, RadiusVarName, ShadowVarName, DurationVarName, EaseVarName, TransitionVarName, TypographyVarName, TextSizeVarName, FontWeightVarName, TypeScaleVarName, } from './tokens.stylex';
|
|
34
34
|
export { useTheme, ThemeContext } from './useTheme';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,YAAY,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAClD,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,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AAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,cAAc,EACd,YAAY,EACZ,cAAc,EACd,aAAa,GACd,MAAM,iBAAiB,CAAC;AAGzB,YAAY,EACV,YAAY,EACZ,cAAc,EACd,WAAW,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAC,QAAQ,EAAE,YAAY,EAAC,MAAM,YAAY,CAAC;AAClD,YAAY,EAAC,cAAc,EAAE,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClE,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,EACR,SAAS,GACV,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,UAAU,CAAC;AAElB,YAAY,EACV,SAAS,EACT,UAAU,EACV,QAAQ,EACR,eAAe,EACf,eAAe,EACf,QAAQ,EACR,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,UAAU,GACX,MAAM,SAAS,CAAC"}
|
package/dist/theme/index.js
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* - defineTheme: Create themes with token + component overrides
|
|
11
11
|
* - Token exports for direct use in StyleX
|
|
12
12
|
*
|
|
13
|
-
* Themes are in separate packages:
|
|
14
|
-
* import {
|
|
15
|
-
* import
|
|
13
|
+
* Themes are in separate packages. The default theme is Pharos (Alexandria brand):
|
|
14
|
+
* import { pharosTheme } from '@pharos-ds/theme-pharos/built';
|
|
15
|
+
* import '@pharos-ds/theme-pharos/theme.css';
|
|
16
16
|
*/
|
|
17
17
|
export { Theme } from "./Theme.js";
|
|
18
18
|
export { MediaTheme } from "./MediaTheme.js";
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pharos-ds/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2-canary.5fd8b11",
|
|
4
4
|
"displayName": "Pharos Core",
|
|
5
5
|
"description": "Pharos component library. Accessible, themeable React components with spacing, dark mode, and StyleX styling.",
|
|
6
6
|
"author": "Caio Silvestre",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"homepage": "https://github.com/
|
|
8
|
+
"homepage": "https://github.com/Lex-Energia/alexandria-ds#readme",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/
|
|
11
|
+
"url": "git+https://github.com/Lex-Energia/alexandria-ds.git",
|
|
12
12
|
"directory": "packages/core"
|
|
13
13
|
},
|
|
14
14
|
"bugs": {
|
|
15
|
-
"url": "https://github.com/
|
|
15
|
+
"url": "https://github.com/Lex-Energia/alexandria-ds/issues"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"pharos",
|
|
@@ -665,7 +665,7 @@
|
|
|
665
665
|
"rimraf": "^6.0.1"
|
|
666
666
|
},
|
|
667
667
|
"dependencies": {
|
|
668
|
-
"intl-messageformat": "^11.2.
|
|
668
|
+
"intl-messageformat": "^11.2.12"
|
|
669
669
|
},
|
|
670
670
|
"scripts": {
|
|
671
671
|
"postinstall": "node scripts/postinstall.mjs",
|
package/src/reset.css
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* 2. Combine with base styles and theme:
|
|
24
24
|
* import '@pharos-ds/core/reset.css'; // @layer reset — clean slate
|
|
25
25
|
* import '@pharos-ds/core/pharos.css'; // @layer pharos-base — component styles
|
|
26
|
-
* import '@pharos-ds/theme-
|
|
26
|
+
* import '@pharos-ds/theme-pharos/theme.css'; // @layer pharos-theme — default theme (Alexandria)
|
|
27
27
|
*
|
|
28
28
|
* Layer order: reset → pharos-base → pharos-theme
|
|
29
29
|
* Consumer styles (unlayered) always override all Pharos layers.
|
package/src/tailwind-theme.css
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* @import "tailwindcss/preflight.css" layer(base);
|
|
21
21
|
* @import "@pharos-ds/core/reset.css";
|
|
22
22
|
* @import "@pharos-ds/core/pharos.css";
|
|
23
|
-
* @import "@pharos-ds/theme-
|
|
23
|
+
* @import "@pharos-ds/theme-pharos/theme.css";
|
|
24
24
|
* @import "@pharos-ds/core/tailwind-theme.css";
|
|
25
25
|
* @import "tailwindcss/utilities.css" layer(utilities);
|
|
26
26
|
*
|
package/src/theme/defineTheme.ts
CHANGED
|
@@ -164,11 +164,11 @@ export interface DefineThemeInput {
|
|
|
164
164
|
*
|
|
165
165
|
* @example
|
|
166
166
|
* ```tsx
|
|
167
|
-
* import {
|
|
167
|
+
* import {pharosTheme} from '@pharos-ds/theme-pharos';
|
|
168
168
|
*
|
|
169
169
|
* const myTheme = defineTheme({
|
|
170
170
|
* name: 'my-brand',
|
|
171
|
-
* extends:
|
|
171
|
+
* extends: pharosTheme,
|
|
172
172
|
* icons: myIcons,
|
|
173
173
|
* tokens: { '--color-accent': '#FF0000' },
|
|
174
174
|
* });
|
package/src/theme/index.ts
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* - defineTheme: Create themes with token + component overrides
|
|
11
11
|
* - Token exports for direct use in StyleX
|
|
12
12
|
*
|
|
13
|
-
* Themes are in separate packages:
|
|
14
|
-
* import {
|
|
15
|
-
* import
|
|
13
|
+
* Themes are in separate packages. The default theme is Pharos (Alexandria brand):
|
|
14
|
+
* import { pharosTheme } from '@pharos-ds/theme-pharos/built';
|
|
15
|
+
* import '@pharos-ds/theme-pharos/theme.css';
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
export {Theme} from './Theme';
|
|
@@ -71,19 +71,13 @@ export {expandTypeScale, generateTypeScaleComponents} from './expandTypeScale';
|
|
|
71
71
|
export type {TypeScaleConfig, TypeScaleTokens} from './expandTypeScale';
|
|
72
72
|
|
|
73
73
|
export {expandRadiusScale} from './expandRadiusScale';
|
|
74
|
-
export type {
|
|
75
|
-
RadiusScaleConfig,
|
|
76
|
-
RadiusScaleTokens,
|
|
77
|
-
} from './expandRadiusScale';
|
|
74
|
+
export type {RadiusScaleConfig, RadiusScaleTokens} from './expandRadiusScale';
|
|
78
75
|
|
|
79
76
|
export {expandColorScale} from './expandColorScale';
|
|
80
77
|
export type {ColorScaleConfig, ColorScaleTokens} from './expandColorScale';
|
|
81
78
|
|
|
82
79
|
export {expandMotionScale} from './expandMotionScale';
|
|
83
|
-
export type {
|
|
84
|
-
MotionScaleConfig,
|
|
85
|
-
MotionScaleTokens,
|
|
86
|
-
} from './expandMotionScale';
|
|
80
|
+
export type {MotionScaleConfig, MotionScaleTokens} from './expandMotionScale';
|
|
87
81
|
|
|
88
82
|
// Export token defaults and vars for use in custom components and themes
|
|
89
83
|
export {
|