@react-xp/design-system 1.0.0-beta.4 → 1.0.0-beta.6

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 +1 @@
1
- {"version":3,"file":"themeWrapper.web.d.ts","sourceRoot":"","sources":["../../../src/showcase/themeWrapper.web.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAKjD,eAAO,MAAM,YAAY,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,4CAwDjE,CAAC"}
1
+ {"version":3,"file":"themeWrapper.web.d.ts","sourceRoot":"","sources":["../../../src/showcase/themeWrapper.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAKjD,eAAO,MAAM,YAAY,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,4CAmCjE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"themeProvider.d.ts","sourceRoot":"","sources":["../../../src/theme/themeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGjD,eAAO,MAAM,aAAa,GAAI,uBAG3B;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAA;CAAE,4CAIzD,CAAC"}
1
+ {"version":3,"file":"themeProvider.d.ts","sourceRoot":"","sources":["../../../src/theme/themeProvider.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGjD,eAAO,MAAM,aAAa,GAAI,uBAG3B;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAA;CAAE,4CAwBzD,CAAC"}
@@ -1,2 +1,91 @@
1
- export declare const useTokens: () => import("..").TStyleTokenValue;
1
+ export declare const useTokens: () => Partial<import("@react-xp/styleguide").TStyleguideColorRole & import("@react-xp/styleguide").TStyleguideStatusColor & import("@react-xp/styleguide").TStyleguideInputColor & {
2
+ readonly 'motion-duration-instant': 0;
3
+ readonly 'motion-duration-fast': 150;
4
+ readonly 'motion-duration-regular': 200;
5
+ readonly 'motion-duration-slow': 300;
6
+ readonly 'motion-duration-slower': 400;
7
+ } & {
8
+ readonly 'motion-ease-standard': "cubic-bezier(0.2, 0, 0, 1)";
9
+ readonly 'motion-ease-emphasized': "cubic-bezier(0.2, 0, 0, 1)";
10
+ readonly 'motion-ease-decelerated': "cubic-bezier(0, 0, 0, 1)";
11
+ readonly 'motion-ease-accelerated': "cubic-bezier(0.3, 0, 1, 1)";
12
+ } & {
13
+ readonly 'motion-emphasis-enter': {
14
+ readonly duration: import("@react-xp/styleguide").TStyleguideMotionDurationToken;
15
+ readonly easing: import("@react-xp/styleguide").TStyleguideMotionEasingToken;
16
+ };
17
+ readonly 'motion-emphasis-exit': {
18
+ readonly duration: import("@react-xp/styleguide").TStyleguideMotionDurationToken;
19
+ readonly easing: import("@react-xp/styleguide").TStyleguideMotionEasingToken;
20
+ };
21
+ readonly 'motion-navigation-enter': {
22
+ readonly duration: import("@react-xp/styleguide").TStyleguideMotionDurationToken;
23
+ readonly easing: import("@react-xp/styleguide").TStyleguideMotionEasingToken;
24
+ };
25
+ readonly 'motion-navigation-exit': {
26
+ readonly duration: import("@react-xp/styleguide").TStyleguideMotionDurationToken;
27
+ readonly easing: import("@react-xp/styleguide").TStyleguideMotionEasingToken;
28
+ };
29
+ readonly 'micro-interaction': {
30
+ readonly duration: import("@react-xp/styleguide").TStyleguideMotionDurationToken;
31
+ readonly easing: import("@react-xp/styleguide").TStyleguideMotionEasingToken;
32
+ };
33
+ } & {
34
+ readonly 'radius-1': 2;
35
+ readonly 'radius-2': 4;
36
+ readonly 'radius-3': 8;
37
+ readonly 'radius-4': 12;
38
+ readonly 'radius-5': 16;
39
+ readonly 'radius-full': 9999;
40
+ } & {
41
+ readonly 'shadow-level-1': "0 1px 2px rgba(15, 23, 42, 0.05)";
42
+ readonly 'shadow-level-2': "0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06)";
43
+ readonly 'shadow-level-3': "0 4px 6px rgba(15, 23, 42, 0.1), 0 2px 4px rgba(15, 23, 42, 0.08)";
44
+ readonly 'shadow-level-4': "0 10px 15px rgba(15, 23, 42, 0.18), 0 4px 6px rgba(15, 23, 42, 0.12)";
45
+ readonly 'shadow-level-5': "0 20px 25px rgba(15, 23, 42, 0.25), 0 10px 10px rgba(15, 23, 42, 0.15)";
46
+ } & {
47
+ readonly 'space-1': 4;
48
+ readonly 'space-2': 8;
49
+ readonly 'space-3': 12;
50
+ readonly 'space-4': 16;
51
+ readonly 'space-5': 24;
52
+ readonly 'space-6': 32;
53
+ readonly 'space-7': 40;
54
+ readonly 'space-8': 48;
55
+ readonly 'space-9': 64;
56
+ readonly 'space-10': 80;
57
+ } & {
58
+ readonly 'typography-font-family-base': "system-ui, -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", sans-serif";
59
+ readonly 'typography-font-family-heading': "system-ui, -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", sans-serif";
60
+ readonly 'typography-font-family-code': "\"SF Mono\", ui-monospace, Menlo, Monaco, \"Courier New\", monospace";
61
+ readonly 'typography-font-size-1': 12;
62
+ readonly 'typography-font-size-2': 14;
63
+ readonly 'typography-font-size-3': 16;
64
+ readonly 'typography-font-size-4': 18;
65
+ readonly 'typography-font-size-5': 20;
66
+ readonly 'typography-font-size-6': 24;
67
+ readonly 'typography-font-weight-regular': "400";
68
+ readonly 'typography-font-weight-medium': "500";
69
+ readonly 'typography-font-weight-strong': "600";
70
+ readonly 'typography-line-height-tight': 1.2;
71
+ readonly 'typography-line-height-default': 1.5;
72
+ readonly 'typography-line-height-relaxed': 1.7;
73
+ } & {
74
+ 'border-width-default': string;
75
+ 'border-width-focus': string;
76
+ 'opacity-pressed': number;
77
+ 'opacity-disabled': number;
78
+ 'tap-target-min': string;
79
+ 'focus-ring-gap': string;
80
+ } & {
81
+ readonly 'z-index-layer-base': 0;
82
+ readonly 'z-index-layer-raised': 10;
83
+ readonly 'z-index-layer-sticky': 20;
84
+ readonly 'z-index-layer-navbar': 30;
85
+ readonly 'z-index-layer-dropdown': 40;
86
+ readonly 'z-index-layer-overlay': 50;
87
+ readonly 'z-index-layer-modal': 60;
88
+ readonly 'z-index-layer-toast': 70;
89
+ readonly 'z-index-layer-max': 9999;
90
+ }>;
2
91
  //# sourceMappingURL=useTokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTokens.d.ts","sourceRoot":"","sources":["../../../src/theme/useTokens.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,qCAA0B,CAAC"}
1
+ {"version":3,"file":"useTokens.d.ts","sourceRoot":"","sources":["../../../src/theme/useTokens.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0B,CAAC"}
@@ -1,9 +1,8 @@
1
- import { type TStyleguideColorToken, type TStyleguideMotionPresetToken, type TStyleguideMotionToken, type TStyleguideRadiusToken, type TStyleguideShadowsToken, type TStyleguideSpacingToken, type TStyleguideTypographyToken, type TStyleguideUtilsToken, type TStyleguideZIndexToken } from '@react-xp/styleguide';
1
+ import { type TStyleguideColorRole, type TStyleguideInputColor, type TStyleguideMotionDuration, type TStyleguideMotionEasing, type TStyleguideMotionPreset, type TStyleguideMotionPresetToken, type TStyleguideRadius, type TStyleguideShadows, type TStyleguideSpacing, type TStyleguideStatusColor, type TStyleguideTypography, type TStyleguideUtils, type TStyleguideZIndex } from '@react-xp/styleguide';
2
2
  type TAny = any;
3
- type TStyleToken = TStyleguideColorToken | TStyleguideMotionToken | TStyleguideRadiusToken | TStyleguideShadowsToken | TStyleguideSpacingToken | TStyleguideTypographyToken | TStyleguideUtilsToken | TStyleguideZIndexToken;
4
- export type TStyleTokenValue = Record<TStyleToken, string | number>;
3
+ export type TStyleTokenValue = Partial<TStyleguideColorRole & TStyleguideStatusColor & TStyleguideInputColor & TStyleguideMotionDuration & TStyleguideMotionEasing & TStyleguideMotionPreset & TStyleguideRadius & TStyleguideShadows & TStyleguideSpacing & TStyleguideTypography & TStyleguideUtils & TStyleguideZIndex>;
5
4
  export type TSx = TAny;
6
- export declare const tok: <TTokenValue extends TStyleTokenValue, TTokenKey extends TStyleToken>(t: TTokenValue, key: TTokenKey) => TStyleTokenValue[TTokenKey];
5
+ export declare const tok: <TTokenValue extends TStyleTokenValue, TTokenKey extends keyof TTokenValue>(t: TStyleTokenValue, key: TTokenKey) => TTokenValue[TTokenKey];
7
6
  export declare const merge: (...styles: Array<TSx | undefined | false | null>) => TSx;
8
7
  export type TMotionPresetToken = TStyleguideMotionPresetToken;
9
8
  export type TMotionResolved = {
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/types/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAG1B,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAE5B,MAAM,sBAAsB,CAAC;AAG9B,KAAK,IAAI,GAAG,GAAG,CAAC;AAEhB,KAAK,WAAW,GACZ,qBAAqB,GACrB,sBAAsB,GACtB,sBAAsB,GACtB,uBAAuB,GACvB,uBAAuB,GACvB,0BAA0B,GAC1B,qBAAqB,GACrB,sBAAsB,CAAC;AAE3B,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,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MAAM,GAAG,GAAG,IAAI,CAAC;AAEvB,eAAO,MAAM,GAAG,GACd,WAAW,SAAS,gBAAgB,EACpC,SAAS,SAAS,MAAM,WAAW,EAEnC,GAAG,gBAAgB,EACnB,KAAK,SAAS,KACb,WAAW,CAAC,SAAS,CAAqB,CAAC;AAE9C,eAAO,MAAM,KAAK,GAAI,GAAG,QAAQ,KAAK,CAAC,GAAG,GAAG,SAAS,GAAG,KAAK,GAAG,IAAI,CAAC,KAAG,GAC3B,CAAC;AAG/C,MAAM,MAAM,kBAAkB,GAAG,4BAA4B,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,MAAM,GACjB,GAAG,gBAAgB,EACnB,QAAQ,4BAA4B,KACnC,eAUF,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-xp/design-system",
3
3
  "description": "This is a React Experience design-system package",
4
- "version": "1.0.0-beta.4",
4
+ "version": "1.0.0-beta.6",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -11,8 +11,8 @@
11
11
  "exports": {
12
12
  ".": {
13
13
  "react-native": {
14
- "import": "./dist/native/esm/index.native.js",
15
- "require": "./dist/native/cjs/index.native.js"
14
+ "import": "./dist/esm/index.native.js",
15
+ "require": "./dist/cjs/index.native.js"
16
16
  },
17
17
  "browser": {
18
18
  "import": "./dist/esm/index.web.js",
@@ -65,9 +65,9 @@
65
65
  "tailwind-merge": "^3.2.0",
66
66
  "tailwindcss": "^4.1.7",
67
67
  "typescript": "^5.7.2",
68
- "@react-xp/styleguide": "1.0.0-beta.6",
69
- "@react-xp/aeiou": "0.1.0-beta.14",
70
- "@react-xp/typescript": "0.0.0"
68
+ "@react-xp/aeiou": "1.0.0-beta.0",
69
+ "@react-xp/typescript": "0.0.0",
70
+ "@react-xp/styleguide": "1.0.0-beta.6"
71
71
  },
72
72
  "overrides": {
73
73
  "conventional-changelog-conventionalcommits": ">= 8.0.0"