@react-xp/design-system 1.0.0-beta.5 → 1.0.0-beta.7
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/dist/cjs/helpers/styles.js +6 -2
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.native.js +1 -1
- package/dist/cjs/index.web.js +1 -1
- package/dist/cjs/showcase/themeWrapper.native.js +1 -18
- package/dist/cjs/showcase/themeWrapper.web.js +1 -19
- package/dist/cjs/theme/themeProvider.js +19 -1
- package/dist/esm/helpers/styles.js +6 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.native.js +1 -1
- package/dist/esm/index.web.js +1 -1
- package/dist/esm/showcase/themeWrapper.native.js +1 -18
- package/dist/esm/showcase/themeWrapper.web.js +1 -19
- package/dist/esm/theme/themeProvider.js +19 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/types/components/button/button.styles.d.ts +3 -3
- package/dist/types/helpers/styles.d.ts +5 -5
- package/dist/types/helpers/styles.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.native.d.ts +1 -1
- package/dist/types/index.native.d.ts.map +1 -1
- package/dist/types/index.web.d.ts +1 -1
- package/dist/types/index.web.d.ts.map +1 -1
- package/dist/types/showcase/themeWrapper.native.d.ts.map +1 -1
- package/dist/types/showcase/themeWrapper.web.d.ts.map +1 -1
- package/dist/types/theme/themeProvider.d.ts.map +1 -1
- package/dist/types/theme/useTokens.d.ts +90 -1
- package/dist/types/theme/useTokens.d.ts.map +1 -1
- package/dist/types/types/tokens.d.ts +3 -4
- package/dist/types/types/tokens.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/cjs/components/button/index.js +0 -18
- package/dist/cjs/components/index.js +0 -17
- package/dist/esm/components/button/index.js +0 -2
- package/dist/esm/components/index.js +0 -1
- package/dist/types/components/button/index.d.ts +0 -3
- package/dist/types/components/button/index.d.ts.map +0 -1
- package/dist/types/components/index.d.ts +0 -2
- package/dist/types/components/index.d.ts.map +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,WAAW,CAAC;AAC1B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../src/index.native.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../src/index.native.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,WAAW,CAAC;AAC1B,cAAc,mCAAmC,CAAC;AAClD,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../src/index.web.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../src/index.web.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,WAAW,CAAC;AAC1B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themeWrapper.native.d.ts","sourceRoot":"","sources":["../../../src/showcase/themeWrapper.native.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"themeWrapper.native.d.ts","sourceRoot":"","sources":["../../../src/showcase/themeWrapper.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAKjD,eAAO,MAAM,YAAY,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,4CA4BjE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themeWrapper.web.d.ts","sourceRoot":"","sources":["../../../src/showcase/themeWrapper.web.tsx"],"names":[],"mappings":"
|
|
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":"
|
|
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("
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/types/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EAEzB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAE9B,KAAK,uBAAuB,EAE5B,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EAEjC,KAAK,iBAAiB,EAEtB,KAAK,kBAAkB,EAEvB,KAAK,kBAAkB,EAEvB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAE1B,KAAK,gBAAgB,EAErB,KAAK,iBAAiB,EAGvB,MAAM,sBAAsB,CAAC;AAG9B,KAAK,IAAI,GAAG,GAAG,CAAC;AAYhB,MAAM,MAAM,gBAAgB,GAAG,OAAO,CACpC,oBAAoB,GAClB,sBAAsB,GACtB,qBAAqB,GACrB,yBAAyB,GACzB,uBAAuB,GACvB,uBAAuB,GACvB,iBAAiB,GACjB,kBAAkB,GAClB,kBAAkB,GAClB,qBAAqB,GACrB,gBAAgB,GAChB,iBAAiB,CACpB,CAAC;AAEF,MAAM,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
|
+
"version": "1.0.0-beta.7",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -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/aeiou": "1.0.0-beta.0",
|
|
68
69
|
"@react-xp/styleguide": "1.0.0-beta.6",
|
|
69
|
-
"@react-xp/typescript": "0.0.0"
|
|
70
|
-
"@react-xp/aeiou": "1.0.0-beta.0"
|
|
70
|
+
"@react-xp/typescript": "0.0.0"
|
|
71
71
|
},
|
|
72
72
|
"overrides": {
|
|
73
73
|
"conventional-changelog-conventionalcommits": ">= 8.0.0"
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./button.shared"), exports);
|
|
18
|
-
__exportStar(require("./button.types"), exports);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./button"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './button';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|