@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.
Files changed (53) hide show
  1. package/cjs/hooks/index.d.ts +2 -0
  2. package/cjs/hooks/index.d.ts.map +1 -0
  3. package/cjs/hooks/index.js +17 -0
  4. package/cjs/hooks/useToken/index.d.ts +3 -0
  5. package/cjs/hooks/useToken/index.d.ts.map +1 -0
  6. package/cjs/hooks/useToken/index.js +19 -0
  7. package/cjs/hooks/useToken/use-token.d.ts +6 -0
  8. package/cjs/hooks/useToken/use-token.d.ts.map +1 -0
  9. package/cjs/hooks/useToken/use-token.js +37 -0
  10. package/cjs/hooks/useToken/use-token.type.d.ts +39 -0
  11. package/cjs/hooks/useToken/use-token.type.d.ts.map +1 -0
  12. package/cjs/hooks/useToken/use-token.type.js +5 -0
  13. package/cjs/index.d.ts +1 -0
  14. package/cjs/index.d.ts.map +1 -1
  15. package/cjs/index.js +17 -0
  16. package/cjs/provider/index.d.ts +2 -0
  17. package/cjs/provider/index.d.ts.map +1 -0
  18. package/cjs/provider/index.js +1 -0
  19. package/cjs/provider/theme-provider.d.ts +3 -0
  20. package/cjs/provider/theme-provider.d.ts.map +1 -0
  21. package/cjs/provider/theme-provider.js +10 -0
  22. package/cjs/token/figma.js +657 -365
  23. package/cjs/token/type.d.ts +5 -5
  24. package/cjs/utils/token-setter.d.ts +3 -3
  25. package/cjs/utils/token-setter.d.ts.map +1 -1
  26. package/cjs/utils/token-setter.js +2 -2
  27. package/esm/hooks/index.d.ts +2 -0
  28. package/esm/hooks/index.d.ts.map +1 -0
  29. package/esm/hooks/index.js +17 -0
  30. package/esm/hooks/useToken/index.d.ts +3 -0
  31. package/esm/hooks/useToken/index.d.ts.map +1 -0
  32. package/esm/hooks/useToken/index.js +19 -0
  33. package/esm/hooks/useToken/use-token.d.ts +6 -0
  34. package/esm/hooks/useToken/use-token.d.ts.map +1 -0
  35. package/esm/hooks/useToken/use-token.js +37 -0
  36. package/esm/hooks/useToken/use-token.type.d.ts +39 -0
  37. package/esm/hooks/useToken/use-token.type.d.ts.map +1 -0
  38. package/esm/hooks/useToken/use-token.type.js +5 -0
  39. package/esm/index.d.ts +1 -0
  40. package/esm/index.d.ts.map +1 -1
  41. package/esm/index.js +17 -0
  42. package/esm/provider/index.d.ts +2 -0
  43. package/esm/provider/index.d.ts.map +1 -0
  44. package/esm/provider/index.js +1 -0
  45. package/esm/provider/theme-provider.d.ts +3 -0
  46. package/esm/provider/theme-provider.d.ts.map +1 -0
  47. package/esm/provider/theme-provider.js +10 -0
  48. package/esm/token/figma.js +657 -365
  49. package/esm/token/type.d.ts +5 -5
  50. package/esm/utils/token-setter.d.ts +3 -3
  51. package/esm/utils/token-setter.d.ts.map +1 -1
  52. package/esm/utils/token-setter.js +2 -2
  53. package/package.json +1 -1
@@ -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 生效 token 的选择器,默认为 body,语法为 css 选择器
38
- * @en The selector of the effective token, default is body, the syntax is css selector
39
- * @default 'body'
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,SA4DlC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
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(_token.default[key]);
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(_token.default[key]);
46
+ var token = "--".concat(prefix, "-").concat((0, _cssVar.replaceNonAlphanumeric)(key), ":").concat(defaultToken[key]);
47
47
  tokens.push(token);
48
48
  });
49
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/theme",
3
- "version": "3.0.0-rc.1",
3
+ "version": "3.0.0-rc.2",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",