@sheinx/theme 3.0.0-rc.1 → 3.0.0-rc.2
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/cjs/hooks/index.d.ts +2 -0
- package/cjs/hooks/index.d.ts.map +1 -0
- package/cjs/hooks/index.js +17 -0
- package/cjs/hooks/useToken/index.d.ts +3 -0
- package/cjs/hooks/useToken/index.d.ts.map +1 -0
- package/cjs/hooks/useToken/index.js +19 -0
- package/cjs/hooks/useToken/use-token.d.ts +6 -0
- package/cjs/hooks/useToken/use-token.d.ts.map +1 -0
- package/cjs/hooks/useToken/use-token.js +37 -0
- package/cjs/hooks/useToken/use-token.type.d.ts +39 -0
- package/cjs/hooks/useToken/use-token.type.d.ts.map +1 -0
- package/cjs/hooks/useToken/use-token.type.js +5 -0
- package/cjs/index.d.ts +1 -0
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +17 -0
- package/cjs/provider/index.d.ts +2 -0
- package/cjs/provider/index.d.ts.map +1 -0
- package/cjs/provider/index.js +1 -0
- package/cjs/provider/theme-provider.d.ts +3 -0
- package/cjs/provider/theme-provider.d.ts.map +1 -0
- package/cjs/provider/theme-provider.js +10 -0
- package/cjs/token/figma.js +657 -365
- package/cjs/token/type.d.ts +5 -5
- package/cjs/utils/token-setter.d.ts +3 -3
- package/cjs/utils/token-setter.d.ts.map +1 -1
- package/cjs/utils/token-setter.js +2 -2
- package/esm/hooks/index.d.ts +2 -0
- package/esm/hooks/index.d.ts.map +1 -0
- package/esm/hooks/index.js +17 -0
- package/esm/hooks/useToken/index.d.ts +3 -0
- package/esm/hooks/useToken/index.d.ts.map +1 -0
- package/esm/hooks/useToken/index.js +19 -0
- package/esm/hooks/useToken/use-token.d.ts +6 -0
- package/esm/hooks/useToken/use-token.d.ts.map +1 -0
- package/esm/hooks/useToken/use-token.js +37 -0
- package/esm/hooks/useToken/use-token.type.d.ts +39 -0
- package/esm/hooks/useToken/use-token.type.d.ts.map +1 -0
- package/esm/hooks/useToken/use-token.type.js +5 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +17 -0
- package/esm/provider/index.d.ts +2 -0
- package/esm/provider/index.d.ts.map +1 -0
- package/esm/provider/index.js +1 -0
- package/esm/provider/theme-provider.d.ts +3 -0
- package/esm/provider/theme-provider.d.ts.map +1 -0
- package/esm/provider/theme-provider.js +10 -0
- package/esm/token/figma.js +657 -365
- package/esm/token/type.d.ts +5 -5
- package/esm/utils/token-setter.d.ts +3 -3
- package/esm/utils/token-setter.d.ts.map +1 -1
- package/esm/utils/token-setter.js +2 -2
- package/package.json +1 -1
package/esm/token/type.d.ts
CHANGED
|
@@ -927,14 +927,14 @@ export interface Tokens {
|
|
|
927
927
|
* @type {string}
|
|
928
928
|
* @categoty color
|
|
929
929
|
* @default '#999DA8'
|
|
930
|
-
* @description
|
|
930
|
+
* @description 辅助文字
|
|
931
931
|
*/
|
|
932
932
|
'Neutral-text-3': string;
|
|
933
933
|
/**
|
|
934
934
|
* @type {string}
|
|
935
935
|
* @categoty color
|
|
936
936
|
* @default '#B3B7C1'
|
|
937
|
-
* @description
|
|
937
|
+
* @description 禁用文字颜色
|
|
938
938
|
*/
|
|
939
939
|
'Neutral-text-2': string;
|
|
940
940
|
/**
|
|
@@ -990,14 +990,14 @@ export interface Tokens {
|
|
|
990
990
|
* @type {string}
|
|
991
991
|
* @categoty color
|
|
992
992
|
* @default '#CCCFD7'
|
|
993
|
-
* @description
|
|
993
|
+
* @description 点击
|
|
994
994
|
*/
|
|
995
995
|
'Neutral-fill-4': string;
|
|
996
996
|
/**
|
|
997
997
|
* @type {string}
|
|
998
998
|
* @categoty color
|
|
999
999
|
* @default '#E8EBF0'
|
|
1000
|
-
* @description
|
|
1000
|
+
* @description 悬浮
|
|
1001
1001
|
*/
|
|
1002
1002
|
'Neutral-fill-3': string;
|
|
1003
1003
|
/**
|
|
@@ -1438,7 +1438,7 @@ export interface Tokens {
|
|
|
1438
1438
|
* @type {string}
|
|
1439
1439
|
* @categoty string
|
|
1440
1440
|
* @default 'rgba(2, 11, 24, 0.3)'
|
|
1441
|
-
* @description
|
|
1441
|
+
* @description 遮罩填充色
|
|
1442
1442
|
*/
|
|
1443
1443
|
'Mask-fill-1': string;
|
|
1444
1444
|
/**
|
|
@@ -34,9 +34,9 @@ export interface Options {
|
|
|
34
34
|
*/
|
|
35
35
|
attributes?: Attributes;
|
|
36
36
|
/**
|
|
37
|
-
* @cn
|
|
38
|
-
* @en
|
|
39
|
-
* @default
|
|
37
|
+
* @cn 自定义 token 参数
|
|
38
|
+
* @en Custom token parameters
|
|
39
|
+
* @default undefined
|
|
40
40
|
*/
|
|
41
41
|
token?: Tokens;
|
|
42
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-setter.d.ts","sourceRoot":"","sources":["token-setter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvC,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAUD,QAAA,MAAM,QAAQ,aAAc,OAAO,
|
|
1
|
+
{"version":3,"file":"token-setter.d.ts","sourceRoot":"","sources":["token-setter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvC,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAUD,QAAA,MAAM,QAAQ,aAAc,OAAO,SA2DlC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -38,12 +38,12 @@ var setToken = function setToken(options) {
|
|
|
38
38
|
Object.keys(defaultToken).filter(function (item) {
|
|
39
39
|
return (customExtraToken || ['Brand-6', 'Neutral-6']).includes(item);
|
|
40
40
|
}).forEach(function (key) {
|
|
41
|
-
var token = "--".concat(prefix, "-").concat((0, _cssVar.replaceNonAlphanumeric)(key), ":").concat(
|
|
41
|
+
var token = "--".concat(prefix, "-").concat((0, _cssVar.replaceNonAlphanumeric)(key), ":").concat(defaultToken[key]);
|
|
42
42
|
tokens.push(token);
|
|
43
43
|
});
|
|
44
44
|
} else {
|
|
45
45
|
Object.keys(defaultToken).forEach(function (key) {
|
|
46
|
-
var token = "--".concat(prefix, "-").concat((0, _cssVar.replaceNonAlphanumeric)(key), ":").concat(
|
|
46
|
+
var token = "--".concat(prefix, "-").concat((0, _cssVar.replaceNonAlphanumeric)(key), ":").concat(defaultToken[key]);
|
|
47
47
|
tokens.push(token);
|
|
48
48
|
});
|
|
49
49
|
}
|