@windrun-huaiin/third-ui 14.0.0 → 14.0.1

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.
@@ -27,7 +27,7 @@ function Features(_a) {
27
27
  };
28
28
  return (jsxRuntime.jsxs("section", { id: "features", className: utils.cn(sectionLayout.responsiveSection, sectionClassName), children: [jsxRuntime.jsxs("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-4", children: [data.title, " ", jsxRuntime.jsx("span", { className: lib.themeIconColor, children: data.eyesOn })] }), jsxRuntime.jsx("p", { className: "text-center text-gray-600 dark:text-gray-400 mb-12 text-base sm:text-lg mx-auto max-w-3xl", children: data.description }), jsxRuntime.jsx("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-8 gap-y-12", children: data.items.map((feature) => {
29
29
  const Icon = server$1.getGlobalIcon(feature.iconKey);
30
- return (jsxRuntime.jsxs("div", { "data-feature-id": feature.id, className: "bg-white dark:bg-gray-800/60 p-8 rounded-xl border border-gray-200 dark:border-gray-700 hover:border-purple-300 dark:hover:border-purple-500/50 transition shadow-sm dark:shadow-none", children: [jsxRuntime.jsx("div", { className: "text-4xl mb-4 flex items-center justify-start", children: jsxRuntime.jsx(Icon, { className: "w-8 h-8" }) }), jsxRuntime.jsx("h3", { className: "text-xl font-semibold mb-3 text-gray-900 dark:text-gray-100", children: feature.title }), jsxRuntime.jsx("p", { className: "text-gray-700 dark:text-gray-300", children: feature.description })] }, feature.id));
30
+ return (jsxRuntime.jsxs("div", { "data-feature-id": feature.id, className: utils.cn("bg-white dark:bg-gray-800/60 p-8 rounded-xl border border-gray-200 dark:border-gray-700 hover:border-current transition shadow-sm dark:shadow-none", lib.themeIconColor), children: [jsxRuntime.jsx("div", { className: "text-4xl mb-4 flex items-center justify-start", children: jsxRuntime.jsx(Icon, { className: "w-8 h-8" }) }), jsxRuntime.jsx("h3", { className: "text-xl font-semibold mb-3 text-gray-900 dark:text-gray-100", children: feature.title }), jsxRuntime.jsx("p", { className: "text-gray-700 dark:text-gray-300", children: feature.description })] }, feature.id));
31
31
  }) })] }));
32
32
  });
33
33
  }
@@ -25,7 +25,7 @@ function Features(_a) {
25
25
  };
26
26
  return (jsxs("section", { id: "features", className: cn(responsiveSection, sectionClassName), children: [jsxs("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-4", children: [data.title, " ", jsx("span", { className: themeIconColor, children: data.eyesOn })] }), jsx("p", { className: "text-center text-gray-600 dark:text-gray-400 mb-12 text-base sm:text-lg mx-auto max-w-3xl", children: data.description }), jsx("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-8 gap-y-12", children: data.items.map((feature) => {
27
27
  const Icon = getGlobalIcon(feature.iconKey);
28
- return (jsxs("div", { "data-feature-id": feature.id, className: "bg-white dark:bg-gray-800/60 p-8 rounded-xl border border-gray-200 dark:border-gray-700 hover:border-purple-300 dark:hover:border-purple-500/50 transition shadow-sm dark:shadow-none", children: [jsx("div", { className: "text-4xl mb-4 flex items-center justify-start", children: jsx(Icon, { className: "w-8 h-8" }) }), jsx("h3", { className: "text-xl font-semibold mb-3 text-gray-900 dark:text-gray-100", children: feature.title }), jsx("p", { className: "text-gray-700 dark:text-gray-300", children: feature.description })] }, feature.id));
28
+ return (jsxs("div", { "data-feature-id": feature.id, className: cn("bg-white dark:bg-gray-800/60 p-8 rounded-xl border border-gray-200 dark:border-gray-700 hover:border-current transition shadow-sm dark:shadow-none", themeIconColor), children: [jsx("div", { className: "text-4xl mb-4 flex items-center justify-start", children: jsx(Icon, { className: "w-8 h-8" }) }), jsx("h3", { className: "text-xl font-semibold mb-3 text-gray-900 dark:text-gray-100", children: feature.title }), jsx("p", { className: "text-gray-700 dark:text-gray-300", children: feature.description })] }, feature.id));
29
29
  }) })] }));
30
30
  });
31
31
  }
@@ -1,11 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
+ var React = require('react');
4
5
  var utils = require('@windrun-huaiin/lib/utils');
5
6
  var lib = require('@windrun-huaiin/base-ui/lib');
6
7
 
7
8
  // default tag renderers
8
9
  const defaultTagRenderers = {
10
+ // text next line
11
+ br: (chunks) => (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx("br", {}), chunks] })),
9
12
  // text Stong
10
13
  strong: (chunks) => jsxRuntime.jsx("strong", { children: chunks }),
11
14
  // text Emphasis
@@ -1,9 +1,12 @@
1
- import { jsx } from 'react/jsx-runtime';
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import React from 'react';
2
3
  import { cn } from '@windrun-huaiin/lib/utils';
3
4
  import { themeRichTextMarkClass } from '@windrun-huaiin/base-ui/lib';
4
5
 
5
6
  // default tag renderers
6
7
  const defaultTagRenderers = {
8
+ // text next line
9
+ br: (chunks) => (jsxs(React.Fragment, { children: [jsx("br", {}), chunks] })),
7
10
  // text Stong
8
11
  strong: (chunks) => jsx("strong", { children: chunks }),
9
12
  // text Emphasis
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windrun-huaiin/third-ui",
3
- "version": "14.0.0",
3
+ "version": "14.0.1",
4
4
  "description": "Third-party integrated UI components for windrun-huaiin projects",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -86,7 +86,7 @@
86
86
  "react-medium-image-zoom": "^5.4.1",
87
87
  "swiper": "^12.1.2",
88
88
  "zod": "^4.3.6",
89
- "@windrun-huaiin/base-ui": "^14.0.0",
89
+ "@windrun-huaiin/base-ui": "^14.0.2",
90
90
  "@windrun-huaiin/lib": "^14.0.0"
91
91
  },
92
92
  "peerDependencies": {
@@ -61,7 +61,7 @@ export async function Features({
61
61
  <div
62
62
  key={feature.id}
63
63
  data-feature-id={feature.id}
64
- className="bg-white dark:bg-gray-800/60 p-8 rounded-xl border border-gray-200 dark:border-gray-700 hover:border-purple-300 dark:hover:border-purple-500/50 transition shadow-sm dark:shadow-none"
64
+ className={cn("bg-white dark:bg-gray-800/60 p-8 rounded-xl border border-gray-200 dark:border-gray-700 hover:border-current transition shadow-sm dark:shadow-none", themeIconColor)}
65
65
  >
66
66
  <div className="text-4xl mb-4 flex items-center justify-start">
67
67
  <Icon className="w-8 h-8" />
@@ -4,6 +4,13 @@ import { themeRichTextMarkClass } from '@windrun-huaiin/base-ui/lib';
4
4
 
5
5
  // default tag renderers
6
6
  const defaultTagRenderers = {
7
+ // text next line
8
+ br: (chunks: React.ReactNode) => (
9
+ <React.Fragment>
10
+ <br />
11
+ {chunks}
12
+ </React.Fragment>
13
+ ),
7
14
  // text Stong
8
15
  strong: (chunks: React.ReactNode) => <strong>{chunks}</strong>,
9
16
  // text Emphasis