3h1-ui 3.0.0-next.64 → 3.0.0-next.66

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/es/index.js CHANGED
@@ -10244,6 +10244,16 @@ const buttonProps = {
10244
10244
  iconSize: { type: Number, default: 14 },
10245
10245
  onClick: { type: Function, default: null }
10246
10246
  };
10247
+ const lessString = ":root {\n --primary-1: #dafbe1;\n --primary-2: #aceebb;\n --primary-3: #6fdd8b;\n --primary-4: #4ac26b;\n --primary-5: #2da44e;\n --primary-6: #1a7f37;\n --primary-7: #116329;\n --primary-8: #044f1e;\n --primary-9: #003d16;\n --primary-10: #002d11;\n --gray-0: #fff;\n --gray-1: #f6f8fa;\n --gray-2: #eaeef2;\n --gray-3: #d0d7de;\n --gray-4: #afb8c1;\n --gray-5: #8c959f;\n --gray-6: #6e7781;\n --gray-7: #57606a;\n --gray-8: #424a53;\n --gray-9: #32383f;\n --gray-10: #24292f;\n --green-1: #dafbe1;\n --green-2: #aceebb;\n --green-3: #6fdd8b;\n --green-4: #4ac26b;\n --green-5: #2da44e;\n --green-6: #1a7f37;\n --green-7: #116329;\n --green-8: #044f1e;\n --green-9: #003d16;\n --green-10: #002d11;\n --orange-1: #fff1e5;\n --orange-2: #ffd8b5;\n --orange-3: #ffb77c;\n --orange-4: #fb8f44;\n --orange-5: #e16f24;\n --orange-6: #bc4c00;\n --orange-7: #953800;\n --orange-8: #762c00;\n --orange-9: #5c2200;\n --orange-10: #471700;\n --pink-1: #ffeff7;\n --pink-2: #ffd3eb;\n --pink-3: #ffadda;\n --pink-4: #ff80c8;\n --pink-5: #e85aad;\n --pink-6: #bf3989;\n --pink-7: #99286e;\n --pink-8: #772057;\n --pink-9: #611347;\n --pink-10: #4d0336;\n --purple-1: #fbefff;\n --purple-2: #ecd8ff;\n --purple-3: #d8b9ff;\n --purple-4: #c297ff;\n --purple-5: #a475f9;\n --purple-6: #8250df;\n --purple-7: #6639ba;\n --purple-8: #512a97;\n --purple-9: #3e1f79;\n --purple-10: #2e1461;\n --red-1: #ffebe9;\n --red-2: #ffcecb;\n --red-3: #ffaba8;\n --red-4: #ff8182;\n --red-5: #fa4549;\n --red-6: #cf222e;\n --red-7: #a40e26;\n --red-8: #82071e;\n --red-9: #660018;\n --red-10: #4c0014;\n --yellow-1: #fff8c5;\n --yellow-2: #fae17d;\n --yellow-3: #eac54f;\n --yellow-4: #d4a72c;\n --yellow-5: #bf8700;\n --yellow-6: #9a6700;\n --yellow-7: #7d4e00;\n --yellow-8: #633c01;\n --yellow-9: #4d2d00;\n --yellow-10: #3b2300;\n --blue-1: #ddf4ff;\n --blue-2: #b6e3ff;\n --blue-3: #80ccff;\n --blue-4: #54aeff;\n --blue-5: #218bff;\n --blue-6: #0969da;\n --blue-7: #0550ae;\n --blue-8: #033d8b;\n --blue-9: #0a3069;\n --blue-10: #002155;\n --shadow-2: 0px 2px 4px 0px rgba(0, 0, 0, 0.04),\n 0px 1px 1px 0px rgba(0, 0, 0, 0.02);\n --shadow-3: 0px 4px 10px 0px rgba(0, 0, 0, 0.08),\n 0px 1px px 0px rgba(0, 0, 0, 0.04);\n --shadow-4: 0px 8px 32px 0px rgba(0, 0, 0, 0.08),\n 0px 2px 20px 0px rgba(0, 0, 0, 0.04);\n --shadow-5: 0px 24px 60px 0px rgba(0, 0, 0, 0.12),\n 0px 8px 20px 0px rgba(0, 0, 0, 0.06);\n}";
10248
+ const keyValuePairs = lessString.match(/--\w+-\d+:\s#[a-fA-F0-9]+;/g);
10249
+ const keyValueMap = {};
10250
+ keyValuePairs.forEach((pair) => {
10251
+ const [key2, value] = pair.split(":");
10252
+ keyValueMap[key2.trim()] = value.slice(0, -1).trim();
10253
+ });
10254
+ const getVarColor = (name) => {
10255
+ return keyValueMap[name];
10256
+ };
10247
10257
  const BasicButton = /* @__PURE__ */ defineComponent({
10248
10258
  props: buttonProps,
10249
10259
  setup(props2, {
@@ -10268,19 +10278,19 @@ const BasicButton = /* @__PURE__ */ defineComponent({
10268
10278
  let colorPrimary;
10269
10279
  switch (props2.type || props2.color) {
10270
10280
  case "danger":
10271
- colorPrimary = "#CF222E";
10281
+ colorPrimary = getVarColor("--red-6");
10272
10282
  break;
10273
10283
  case "waring":
10274
- colorPrimary = "#BF8700";
10284
+ colorPrimary = getVarColor("--yellow-5");
10275
10285
  break;
10276
10286
  case "success":
10277
- colorPrimary = "#2DA44E";
10287
+ colorPrimary = getVarColor("--primary-5");
10278
10288
  break;
10279
10289
  case "message":
10280
- colorPrimary = "#0969DA";
10290
+ colorPrimary = getVarColor("--blue-6");
10281
10291
  break;
10282
10292
  default:
10283
- colorPrimary = "#2DA44E";
10293
+ colorPrimary = getVarColor("--primary-5");
10284
10294
  break;
10285
10295
  }
10286
10296
  return colorPrimary;
@@ -20937,7 +20947,8 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
20937
20947
  const _component_ArrowLeftOutlined = resolveComponent("ArrowLeftOutlined");
20938
20948
  return !_ctx.isDetail ? (openBlock(), createBlock(_component_BasicTitle, {
20939
20949
  key: 0,
20940
- class: normalizeClass(_ctx.prefixCls)
20950
+ class: normalizeClass(_ctx.prefixCls),
20951
+ span: false
20941
20952
  }, {
20942
20953
  default: withCtx(() => [
20943
20954
  renderSlot(_ctx.$slots, "title"),
@@ -39763,6 +39774,7 @@ export {
39763
39774
  createLoading,
39764
39775
  descriptionsForm,
39765
39776
  getGlobalAdvancedType,
39777
+ getVarColor,
39766
39778
  registerGlobalConfig,
39767
39779
  searchType,
39768
39780
  searchTypeDate,
package/es/style.css CHANGED
@@ -1383,6 +1383,7 @@ span.iconify {
1383
1383
  border-top: unset;
1384
1384
  box-shadow: inset 0px 1px 0px 0px var(--gray-3);
1385
1385
  background: var(--gray-1);
1386
+ border-radius: 0 0 10px 10px;
1386
1387
  }
1387
1388
  .shy-basic-modal.fullscreen-modal {
1388
1389
  height: 100%;
@@ -1648,6 +1649,106 @@ span.iconify {
1648
1649
  0px 2px 20px 0px rgba(0, 0, 0, 0.04);
1649
1650
  --shadow-5: 0px 24px 60px 0px rgba(0, 0, 0, 0.12),
1650
1651
  0px 8px 20px 0px rgba(0, 0, 0, 0.06);
1652
+ }:root {
1653
+ --primary-1: #dafbe1;
1654
+ --primary-2: #aceebb;
1655
+ --primary-3: #6fdd8b;
1656
+ --primary-4: #4ac26b;
1657
+ --primary-5: #2da44e;
1658
+ --primary-6: #1a7f37;
1659
+ --primary-7: #116329;
1660
+ --primary-8: #044f1e;
1661
+ --primary-9: #003d16;
1662
+ --primary-10: #002d11;
1663
+ --gray-0: #fff;
1664
+ --gray-1: #f6f8fa;
1665
+ --gray-2: #eaeef2;
1666
+ --gray-3: #d0d7de;
1667
+ --gray-4: #afb8c1;
1668
+ --gray-5: #8c959f;
1669
+ --gray-6: #6e7781;
1670
+ --gray-7: #57606a;
1671
+ --gray-8: #424a53;
1672
+ --gray-9: #32383f;
1673
+ --gray-10: #24292f;
1674
+ --green-1: #dafbe1;
1675
+ --green-2: #aceebb;
1676
+ --green-3: #6fdd8b;
1677
+ --green-4: #4ac26b;
1678
+ --green-5: #2da44e;
1679
+ --green-6: #1a7f37;
1680
+ --green-7: #116329;
1681
+ --green-8: #044f1e;
1682
+ --green-9: #003d16;
1683
+ --green-10: #002d11;
1684
+ --orange-1: #fff1e5;
1685
+ --orange-2: #ffd8b5;
1686
+ --orange-3: #ffb77c;
1687
+ --orange-4: #fb8f44;
1688
+ --orange-5: #e16f24;
1689
+ --orange-6: #bc4c00;
1690
+ --orange-7: #953800;
1691
+ --orange-8: #762c00;
1692
+ --orange-9: #5c2200;
1693
+ --orange-10: #471700;
1694
+ --pink-1: #ffeff7;
1695
+ --pink-2: #ffd3eb;
1696
+ --pink-3: #ffadda;
1697
+ --pink-4: #ff80c8;
1698
+ --pink-5: #e85aad;
1699
+ --pink-6: #bf3989;
1700
+ --pink-7: #99286e;
1701
+ --pink-8: #772057;
1702
+ --pink-9: #611347;
1703
+ --pink-10: #4d0336;
1704
+ --purple-1: #fbefff;
1705
+ --purple-2: #ecd8ff;
1706
+ --purple-3: #d8b9ff;
1707
+ --purple-4: #c297ff;
1708
+ --purple-5: #a475f9;
1709
+ --purple-6: #8250df;
1710
+ --purple-7: #6639ba;
1711
+ --purple-8: #512a97;
1712
+ --purple-9: #3e1f79;
1713
+ --purple-10: #2e1461;
1714
+ --red-1: #ffebe9;
1715
+ --red-2: #ffcecb;
1716
+ --red-3: #ffaba8;
1717
+ --red-4: #ff8182;
1718
+ --red-5: #fa4549;
1719
+ --red-6: #cf222e;
1720
+ --red-7: #a40e26;
1721
+ --red-8: #82071e;
1722
+ --red-9: #660018;
1723
+ --red-10: #4c0014;
1724
+ --yellow-1: #fff8c5;
1725
+ --yellow-2: #fae17d;
1726
+ --yellow-3: #eac54f;
1727
+ --yellow-4: #d4a72c;
1728
+ --yellow-5: #bf8700;
1729
+ --yellow-6: #9a6700;
1730
+ --yellow-7: #7d4e00;
1731
+ --yellow-8: #633c01;
1732
+ --yellow-9: #4d2d00;
1733
+ --yellow-10: #3b2300;
1734
+ --blue-1: #ddf4ff;
1735
+ --blue-2: #b6e3ff;
1736
+ --blue-3: #80ccff;
1737
+ --blue-4: #54aeff;
1738
+ --blue-5: #218bff;
1739
+ --blue-6: #0969da;
1740
+ --blue-7: #0550ae;
1741
+ --blue-8: #033d8b;
1742
+ --blue-9: #0a3069;
1743
+ --blue-10: #002155;
1744
+ --shadow-2: 0px 2px 4px 0px rgba(0, 0, 0, 0.04),
1745
+ 0px 1px 1px 0px rgba(0, 0, 0, 0.02);
1746
+ --shadow-3: 0px 4px 10px 0px rgba(0, 0, 0, 0.08),
1747
+ 0px 1px px 0px rgba(0, 0, 0, 0.04);
1748
+ --shadow-4: 0px 8px 32px 0px rgba(0, 0, 0, 0.08),
1749
+ 0px 2px 20px 0px rgba(0, 0, 0, 0.04);
1750
+ --shadow-5: 0px 24px 60px 0px rgba(0, 0, 0, 0.12),
1751
+ 0px 8px 20px 0px rgba(0, 0, 0, 0.06);
1651
1752
  }
1652
1753
  .shy-basic-help {
1653
1754
  display: inline-block;
@@ -1843,6 +1944,7 @@ span.iconify {
1843
1944
  border-top: unset;
1844
1945
  box-shadow: inset 0px 1px 0px 0px var(--gray-3);
1845
1946
  background: var(--gray-1);
1947
+ border-radius: 0 0 10px 10px;
1846
1948
  }
1847
1949
  .shy-basic-modal.fullscreen-modal {
1848
1950
  height: 100%;
package/lib/index.js CHANGED
@@ -10268,6 +10268,16 @@ const buttonProps = {
10268
10268
  iconSize: { type: Number, default: 14 },
10269
10269
  onClick: { type: Function, default: null }
10270
10270
  };
10271
+ const lessString = ":root {\n --primary-1: #dafbe1;\n --primary-2: #aceebb;\n --primary-3: #6fdd8b;\n --primary-4: #4ac26b;\n --primary-5: #2da44e;\n --primary-6: #1a7f37;\n --primary-7: #116329;\n --primary-8: #044f1e;\n --primary-9: #003d16;\n --primary-10: #002d11;\n --gray-0: #fff;\n --gray-1: #f6f8fa;\n --gray-2: #eaeef2;\n --gray-3: #d0d7de;\n --gray-4: #afb8c1;\n --gray-5: #8c959f;\n --gray-6: #6e7781;\n --gray-7: #57606a;\n --gray-8: #424a53;\n --gray-9: #32383f;\n --gray-10: #24292f;\n --green-1: #dafbe1;\n --green-2: #aceebb;\n --green-3: #6fdd8b;\n --green-4: #4ac26b;\n --green-5: #2da44e;\n --green-6: #1a7f37;\n --green-7: #116329;\n --green-8: #044f1e;\n --green-9: #003d16;\n --green-10: #002d11;\n --orange-1: #fff1e5;\n --orange-2: #ffd8b5;\n --orange-3: #ffb77c;\n --orange-4: #fb8f44;\n --orange-5: #e16f24;\n --orange-6: #bc4c00;\n --orange-7: #953800;\n --orange-8: #762c00;\n --orange-9: #5c2200;\n --orange-10: #471700;\n --pink-1: #ffeff7;\n --pink-2: #ffd3eb;\n --pink-3: #ffadda;\n --pink-4: #ff80c8;\n --pink-5: #e85aad;\n --pink-6: #bf3989;\n --pink-7: #99286e;\n --pink-8: #772057;\n --pink-9: #611347;\n --pink-10: #4d0336;\n --purple-1: #fbefff;\n --purple-2: #ecd8ff;\n --purple-3: #d8b9ff;\n --purple-4: #c297ff;\n --purple-5: #a475f9;\n --purple-6: #8250df;\n --purple-7: #6639ba;\n --purple-8: #512a97;\n --purple-9: #3e1f79;\n --purple-10: #2e1461;\n --red-1: #ffebe9;\n --red-2: #ffcecb;\n --red-3: #ffaba8;\n --red-4: #ff8182;\n --red-5: #fa4549;\n --red-6: #cf222e;\n --red-7: #a40e26;\n --red-8: #82071e;\n --red-9: #660018;\n --red-10: #4c0014;\n --yellow-1: #fff8c5;\n --yellow-2: #fae17d;\n --yellow-3: #eac54f;\n --yellow-4: #d4a72c;\n --yellow-5: #bf8700;\n --yellow-6: #9a6700;\n --yellow-7: #7d4e00;\n --yellow-8: #633c01;\n --yellow-9: #4d2d00;\n --yellow-10: #3b2300;\n --blue-1: #ddf4ff;\n --blue-2: #b6e3ff;\n --blue-3: #80ccff;\n --blue-4: #54aeff;\n --blue-5: #218bff;\n --blue-6: #0969da;\n --blue-7: #0550ae;\n --blue-8: #033d8b;\n --blue-9: #0a3069;\n --blue-10: #002155;\n --shadow-2: 0px 2px 4px 0px rgba(0, 0, 0, 0.04),\n 0px 1px 1px 0px rgba(0, 0, 0, 0.02);\n --shadow-3: 0px 4px 10px 0px rgba(0, 0, 0, 0.08),\n 0px 1px px 0px rgba(0, 0, 0, 0.04);\n --shadow-4: 0px 8px 32px 0px rgba(0, 0, 0, 0.08),\n 0px 2px 20px 0px rgba(0, 0, 0, 0.04);\n --shadow-5: 0px 24px 60px 0px rgba(0, 0, 0, 0.12),\n 0px 8px 20px 0px rgba(0, 0, 0, 0.06);\n}";
10272
+ const keyValuePairs = lessString.match(/--\w+-\d+:\s#[a-fA-F0-9]+;/g);
10273
+ const keyValueMap = {};
10274
+ keyValuePairs.forEach((pair) => {
10275
+ const [key2, value] = pair.split(":");
10276
+ keyValueMap[key2.trim()] = value.slice(0, -1).trim();
10277
+ });
10278
+ const getVarColor = (name) => {
10279
+ return keyValueMap[name];
10280
+ };
10271
10281
  const BasicButton = /* @__PURE__ */ vue.defineComponent({
10272
10282
  props: buttonProps,
10273
10283
  setup(props2, {
@@ -10292,19 +10302,19 @@ const BasicButton = /* @__PURE__ */ vue.defineComponent({
10292
10302
  let colorPrimary;
10293
10303
  switch (props2.type || props2.color) {
10294
10304
  case "danger":
10295
- colorPrimary = "#CF222E";
10305
+ colorPrimary = getVarColor("--red-6");
10296
10306
  break;
10297
10307
  case "waring":
10298
- colorPrimary = "#BF8700";
10308
+ colorPrimary = getVarColor("--yellow-5");
10299
10309
  break;
10300
10310
  case "success":
10301
- colorPrimary = "#2DA44E";
10311
+ colorPrimary = getVarColor("--primary-5");
10302
10312
  break;
10303
10313
  case "message":
10304
- colorPrimary = "#0969DA";
10314
+ colorPrimary = getVarColor("--blue-6");
10305
10315
  break;
10306
10316
  default:
10307
- colorPrimary = "#2DA44E";
10317
+ colorPrimary = getVarColor("--primary-5");
10308
10318
  break;
10309
10319
  }
10310
10320
  return colorPrimary;
@@ -20961,7 +20971,8 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
20961
20971
  const _component_ArrowLeftOutlined = vue.resolveComponent("ArrowLeftOutlined");
20962
20972
  return !_ctx.isDetail ? (vue.openBlock(), vue.createBlock(_component_BasicTitle, {
20963
20973
  key: 0,
20964
- class: vue.normalizeClass(_ctx.prefixCls)
20974
+ class: vue.normalizeClass(_ctx.prefixCls),
20975
+ span: false
20965
20976
  }, {
20966
20977
  default: vue.withCtx(() => [
20967
20978
  vue.renderSlot(_ctx.$slots, "title"),
@@ -39786,6 +39797,7 @@ exports.componentMap = componentMap$3;
39786
39797
  exports.createLoading = createLoading;
39787
39798
  exports.descriptionsForm = descriptionsForm;
39788
39799
  exports.getGlobalAdvancedType = getGlobalAdvancedType;
39800
+ exports.getVarColor = getVarColor;
39789
39801
  exports.registerGlobalConfig = registerGlobalConfig;
39790
39802
  exports.searchType = searchType;
39791
39803
  exports.searchTypeDate = searchTypeDate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "3.0.0-next.64",
3
+ "version": "3.0.0-next.66",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -29,9 +29,9 @@
29
29
  "vue-json-pretty": "^2.2.3",
30
30
  "vxe-table": "^4.3.6",
31
31
  "xe-utils": "^3.5.7",
32
- "@shy-plugins/use": "1.0.0-next.1",
32
+ "@shy-plugins/tinymce": "^1.0.6",
33
33
  "@shy-plugins/utils": "1.0.0-next.1",
34
- "@shy-plugins/tinymce": "^1.0.6"
34
+ "@shy-plugins/use": "1.0.0-next.1"
35
35
  },
36
36
  "types": "es/ui/index.d.ts",
37
37
  "devDependencies": {