@windrun-huaiin/third-ui 6.3.0 → 7.0.0

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 (76) hide show
  1. package/package.json +15 -46
  2. package/dist/chunk-52YUUCKV.js +0 -3190
  3. package/dist/chunk-52YUUCKV.js.map +0 -1
  4. package/dist/chunk-6MM7HLNX.js +0 -226
  5. package/dist/chunk-6MM7HLNX.js.map +0 -1
  6. package/dist/chunk-6PW67OXW.js +0 -967
  7. package/dist/chunk-6PW67OXW.js.map +0 -1
  8. package/dist/chunk-BZLOMDT7.mjs +0 -90
  9. package/dist/chunk-BZLOMDT7.mjs.map +0 -1
  10. package/dist/chunk-C3MW5ZUN.mjs +0 -967
  11. package/dist/chunk-C3MW5ZUN.mjs.map +0 -1
  12. package/dist/chunk-FOMCGWDM.mjs +0 -17
  13. package/dist/chunk-FOMCGWDM.mjs.map +0 -1
  14. package/dist/chunk-ICXWQI2S.mjs +0 -126
  15. package/dist/chunk-ICXWQI2S.mjs.map +0 -1
  16. package/dist/chunk-IOUCFIRG.mjs +0 -3190
  17. package/dist/chunk-IOUCFIRG.mjs.map +0 -1
  18. package/dist/chunk-J26XFRUS.js +0 -17
  19. package/dist/chunk-J26XFRUS.js.map +0 -1
  20. package/dist/chunk-LZLW5WCC.js +0 -90
  21. package/dist/chunk-LZLW5WCC.js.map +0 -1
  22. package/dist/chunk-NV3UQTCW.mjs +0 -226
  23. package/dist/chunk-NV3UQTCW.mjs.map +0 -1
  24. package/dist/chunk-TBXDOQXP.js +0 -126
  25. package/dist/chunk-TBXDOQXP.js.map +0 -1
  26. package/dist/chunk-TKLIIDBR.mjs +0 -2804
  27. package/dist/chunk-TKLIIDBR.mjs.map +0 -1
  28. package/dist/chunk-W7K5Y2WR.js +0 -2804
  29. package/dist/chunk-W7K5Y2WR.js.map +0 -1
  30. package/dist/clerk/index.d.mts +0 -15
  31. package/dist/clerk/index.d.ts +0 -15
  32. package/dist/clerk/index.js +0 -47
  33. package/dist/clerk/index.js.map +0 -1
  34. package/dist/clerk/index.mjs +0 -47
  35. package/dist/clerk/index.mjs.map +0 -1
  36. package/dist/clerk/server.d.mts +0 -28
  37. package/dist/clerk/server.d.ts +0 -28
  38. package/dist/clerk/server.js +0 -179
  39. package/dist/clerk/server.js.map +0 -1
  40. package/dist/clerk/server.mjs +0 -179
  41. package/dist/clerk/server.mjs.map +0 -1
  42. package/dist/cta.css +0 -16
  43. package/dist/fuma/mdx/index.d.mts +0 -133
  44. package/dist/fuma/mdx/index.d.ts +0 -133
  45. package/dist/fuma/mdx/index.js +0 -40
  46. package/dist/fuma/mdx/index.js.map +0 -1
  47. package/dist/fuma/mdx/index.mjs +0 -40
  48. package/dist/fuma/mdx/index.mjs.map +0 -1
  49. package/dist/fuma/server.d.mts +0 -77
  50. package/dist/fuma/server.d.ts +0 -77
  51. package/dist/fuma/server.js +0 -27041
  52. package/dist/fuma/server.js.map +0 -1
  53. package/dist/fuma/server.mjs +0 -27041
  54. package/dist/fuma/server.mjs.map +0 -1
  55. package/dist/fuma.css +0 -106
  56. package/dist/lib/server.d.mts +0 -4670
  57. package/dist/lib/server.d.ts +0 -4670
  58. package/dist/lib/server.js +0 -144
  59. package/dist/lib/server.js.map +0 -1
  60. package/dist/lib/server.mjs +0 -144
  61. package/dist/lib/server.mjs.map +0 -1
  62. package/dist/main/index.d.mts +0 -198
  63. package/dist/main/index.d.ts +0 -198
  64. package/dist/main/index.js +0 -32
  65. package/dist/main/index.js.map +0 -1
  66. package/dist/main/index.mjs +0 -32
  67. package/dist/main/index.mjs.map +0 -1
  68. package/dist/main/server.d.mts +0 -64
  69. package/dist/main/server.d.ts +0 -64
  70. package/dist/main/server.js +0 -602
  71. package/dist/main/server.js.map +0 -1
  72. package/dist/main/server.mjs +0 -602
  73. package/dist/main/server.mjs.map +0 -1
  74. package/dist/third-ui.css +0 -66
  75. package/dist/toc-base-BC7kXpDU.d.mts +0 -15
  76. package/dist/toc-base-BC7kXpDU.d.ts +0 -15
@@ -1,198 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React, { ReactNode } from 'react';
3
-
4
- declare function GoToTop(): react_jsx_runtime.JSX.Element;
5
-
6
- declare function Loading(): react_jsx_runtime.JSX.Element;
7
-
8
- declare function NProgressBar(): null;
9
-
10
- interface AdsAlertDialogProps {
11
- open: boolean;
12
- onOpenChange: (open: boolean) => void;
13
- title: React.ReactNode;
14
- description: React.ReactNode;
15
- imgSrc?: string;
16
- imgHref?: string;
17
- onCancel?: () => void;
18
- cancelText?: string;
19
- confirmText?: string;
20
- onConfirm?: () => void;
21
- }
22
- declare function AdsAlertDialog({ open, onOpenChange, title, description, imgSrc, imgHref, cancelText, onCancel, confirmText, onConfirm, }: AdsAlertDialogProps): react_jsx_runtime.JSX.Element;
23
-
24
- interface BaseButtonConfig {
25
- icon: ReactNode;
26
- text: string;
27
- onClick: () => void | Promise<void>;
28
- disabled?: boolean;
29
- }
30
- interface MenuItemConfig extends BaseButtonConfig {
31
- tag?: {
32
- text: string;
33
- color?: string;
34
- };
35
- splitTopBorder?: boolean;
36
- }
37
- interface SingleButtonProps {
38
- type: 'single';
39
- button: BaseButtonConfig;
40
- loadingText?: string;
41
- minWidth?: string;
42
- className?: string;
43
- }
44
- interface SplitButtonProps {
45
- type: 'split';
46
- mainButton: BaseButtonConfig;
47
- menuItems: MenuItemConfig[];
48
- loadingText?: string;
49
- menuWidth?: string;
50
- className?: string;
51
- mainButtonClassName?: string;
52
- dropdownButtonClassName?: string;
53
- }
54
- type xButtonProps = SingleButtonProps | SplitButtonProps;
55
- declare function XButton(props: xButtonProps): react_jsx_runtime.JSX.Element;
56
-
57
- interface AIPromptTextareaProps {
58
- /**
59
- * Textarea value reference
60
- */
61
- value: string;
62
- /**
63
- * Textarea value change handler
64
- */
65
- onChange: (value: string) => void;
66
- /**
67
- * Word limit value reference
68
- */
69
- isWordLimit: boolean;
70
- /**
71
- * Word limit value change handler
72
- */
73
- onWordLimitChange: (isLimit: boolean) => void;
74
- /**
75
- * Placeholder
76
- */
77
- placeholder?: string;
78
- /**
79
- * Disabled switch condition, default is false
80
- */
81
- disabled?: boolean;
82
- /**
83
- * Maximum words
84
- */
85
- maxWords?: number;
86
- /**
87
- * Word count unit title
88
- */
89
- wordUnitTitle?: string;
90
- /**
91
- * Minimum height, px
92
- */
93
- minHeight?: number;
94
- /**
95
- * Maximum height, px
96
- */
97
- maxHeight?: number;
98
- /**
99
- * Word count switch, default is true
100
- */
101
- showWordCount?: boolean;
102
- /**
103
- * Auto scroll switch, default is true
104
- */
105
- autoScroll?: boolean;
106
- /**
107
- * Extra scroll space, px
108
- */
109
- extraScrollSpace?: number;
110
- /**
111
- * Custome tailwindcss style
112
- */
113
- className?: string;
114
- /**
115
- * Title text, if not provided, no title will be rendered
116
- */
117
- title?: string;
118
- /**
119
- * Description text
120
- */
121
- description?: string;
122
- /**
123
- * Embed title inside textarea, default is false
124
- */
125
- embed?: boolean;
126
- }
127
- declare function AIPromptTextarea({ value, onChange, placeholder, disabled, maxWords, wordUnitTitle, minHeight, maxHeight, className, showWordCount, autoScroll, extraScrollSpace, isWordLimit, onWordLimitChange, title, description, embed }: AIPromptTextareaProps): react_jsx_runtime.JSX.Element;
128
-
129
- type TagRenderer = (chunks: React.ReactNode) => React.ReactElement;
130
- type TagRenderers = Record<string, TagRenderer>;
131
- declare function createRichTextRenderer(customRenderers?: TagRenderers): (t: any, key: string) => any;
132
- declare const richText: (t: any, key: string) => any;
133
-
134
- interface FAQData {
135
- title: string;
136
- description: string;
137
- items: Array<{
138
- id: string;
139
- question: string;
140
- answer: string;
141
- }>;
142
- }
143
- declare function FAQInteractive({ data }: {
144
- data: FAQData;
145
- }): null;
146
-
147
- interface BillingOption {
148
- key: string;
149
- discount: number;
150
- }
151
- interface Prices {
152
- [key: string]: number | string;
153
- }
154
- interface PricePlanAppConfig {
155
- billingOptions: BillingOption[];
156
- prices: Prices;
157
- minPlanFeaturesCount: number;
158
- }
159
- interface PricePlanData {
160
- title: string;
161
- subtitle: string;
162
- billingSwitch: {
163
- options: Array<{
164
- key: string;
165
- name: string;
166
- unit: string;
167
- discountText: string;
168
- subTitle?: string;
169
- }>;
170
- defaultKey: string;
171
- };
172
- plans: Array<any>;
173
- currency: string;
174
- pricePlanConfig: PricePlanAppConfig;
175
- }
176
- declare function PricePlanInteractive({ data }: {
177
- data: PricePlanData;
178
- }): react_jsx_runtime.JSX.Element;
179
-
180
- interface GalleryItem {
181
- id: string;
182
- url: string;
183
- altMsg: string;
184
- }
185
- interface GalleryData {
186
- titleL: string;
187
- eyesOn: string;
188
- titleR: string;
189
- description: string;
190
- items: GalleryItem[];
191
- defaultImgUrl: string;
192
- downloadPrefix: string;
193
- }
194
- declare function GalleryInteractive({ data }: {
195
- data: GalleryData;
196
- }): null;
197
-
198
- export { AIPromptTextarea, AdsAlertDialog, FAQInteractive, GalleryInteractive, GoToTop, Loading, NProgressBar, PricePlanInteractive, XButton, createRichTextRenderer, richText };
@@ -1,32 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});/* eslint-disable */
2
- "use client";
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
- var _chunk52YUUCKVjs = require('../chunk-52YUUCKV.js');
16
- require('../chunk-6MM7HLNX.js');
17
- require('../chunk-W7K5Y2WR.js');
18
- require('../chunk-LZLW5WCC.js');
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
- exports.AIPromptTextarea = _chunk52YUUCKVjs.AIPromptTextarea; exports.AdsAlertDialog = _chunk52YUUCKVjs.AdsAlertDialog; exports.FAQInteractive = _chunk52YUUCKVjs.FAQInteractive; exports.GalleryInteractive = _chunk52YUUCKVjs.GalleryInteractive; exports.GoToTop = _chunk52YUUCKVjs.GoToTop; exports.Loading = _chunk52YUUCKVjs.Loading; exports.NProgressBar = _chunk52YUUCKVjs.NProgressBar; exports.PricePlanInteractive = _chunk52YUUCKVjs.PricePlanInteractive; exports.XButton = _chunk52YUUCKVjs.XButton; exports.createRichTextRenderer = _chunk52YUUCKVjs.createRichTextRenderer; exports.richText = _chunk52YUUCKVjs.richText;
32
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/Users/funeye/IdeaProjects/next-ai-build/packages/third-ui/dist/main/index.js"],"names":[],"mappings":"AAAA;AACA,YAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,2mBAAC","file":"/Users/funeye/IdeaProjects/next-ai-build/packages/third-ui/dist/main/index.js"}
@@ -1,32 +0,0 @@
1
- /* eslint-disable */
2
- "use client";
3
- import {
4
- AIPromptTextarea,
5
- AdsAlertDialog,
6
- FAQInteractive,
7
- GalleryInteractive,
8
- GoToTop,
9
- Loading,
10
- NProgressBar,
11
- PricePlanInteractive,
12
- XButton,
13
- createRichTextRenderer,
14
- richText
15
- } from "../chunk-IOUCFIRG.mjs";
16
- import "../chunk-NV3UQTCW.mjs";
17
- import "../chunk-TKLIIDBR.mjs";
18
- import "../chunk-BZLOMDT7.mjs";
19
- export {
20
- AIPromptTextarea,
21
- AdsAlertDialog,
22
- FAQInteractive,
23
- GalleryInteractive,
24
- GoToTop,
25
- Loading,
26
- NProgressBar,
27
- PricePlanInteractive,
28
- XButton,
29
- createRichTextRenderer,
30
- richText
31
- };
32
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,64 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
-
3
- interface GalleryProps {
4
- locale: string;
5
- sectionClassName?: string;
6
- button?: React.ReactNode;
7
- }
8
- declare function Gallery({ locale, sectionClassName, button }: GalleryProps): Promise<react_jsx_runtime.JSX.Element>;
9
-
10
- declare function Usage({ locale, sectionClassName }: {
11
- locale: string;
12
- sectionClassName?: string;
13
- }): Promise<react_jsx_runtime.JSX.Element>;
14
-
15
- declare function Features({ locale, sectionClassName }: {
16
- locale: string;
17
- sectionClassName?: string;
18
- }): Promise<react_jsx_runtime.JSX.Element>;
19
-
20
- declare function Tips({ locale, sectionClassName }: {
21
- locale: string;
22
- sectionClassName?: string;
23
- }): Promise<react_jsx_runtime.JSX.Element>;
24
-
25
- declare function FAQ({ locale, sectionClassName }: {
26
- locale: string;
27
- sectionClassName?: string;
28
- }): Promise<react_jsx_runtime.JSX.Element>;
29
-
30
- declare function SeoContent({ locale, sectionClassName }: {
31
- locale: string;
32
- sectionClassName?: string;
33
- }): Promise<react_jsx_runtime.JSX.Element>;
34
-
35
- declare function CTA({ locale, sectionClassName }: {
36
- locale: string;
37
- sectionClassName?: string;
38
- }): Promise<react_jsx_runtime.JSX.Element>;
39
-
40
- declare function Footer({ locale }: {
41
- locale: string;
42
- }): Promise<react_jsx_runtime.JSX.Element>;
43
-
44
- interface PricePlanProps {
45
- locale: string;
46
- currency?: string;
47
- pricePlanConfig: PricePlanAppConfig;
48
- sectionClassName?: string;
49
- }
50
- interface BillingOption {
51
- key: string;
52
- discount: number;
53
- }
54
- interface Prices {
55
- [key: string]: number | string;
56
- }
57
- interface PricePlanAppConfig {
58
- billingOptions: BillingOption[];
59
- prices: Prices;
60
- minPlanFeaturesCount: number;
61
- }
62
- declare function PricePlan({ locale, currency, pricePlanConfig, sectionClassName }: PricePlanProps): Promise<react_jsx_runtime.JSX.Element>;
63
-
64
- export { type BillingOption, CTA, FAQ, Features, Footer, Gallery, PricePlan, type PricePlanAppConfig, type PricePlanProps, type Prices, SeoContent, Tips, Usage };
@@ -1,64 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
-
3
- interface GalleryProps {
4
- locale: string;
5
- sectionClassName?: string;
6
- button?: React.ReactNode;
7
- }
8
- declare function Gallery({ locale, sectionClassName, button }: GalleryProps): Promise<react_jsx_runtime.JSX.Element>;
9
-
10
- declare function Usage({ locale, sectionClassName }: {
11
- locale: string;
12
- sectionClassName?: string;
13
- }): Promise<react_jsx_runtime.JSX.Element>;
14
-
15
- declare function Features({ locale, sectionClassName }: {
16
- locale: string;
17
- sectionClassName?: string;
18
- }): Promise<react_jsx_runtime.JSX.Element>;
19
-
20
- declare function Tips({ locale, sectionClassName }: {
21
- locale: string;
22
- sectionClassName?: string;
23
- }): Promise<react_jsx_runtime.JSX.Element>;
24
-
25
- declare function FAQ({ locale, sectionClassName }: {
26
- locale: string;
27
- sectionClassName?: string;
28
- }): Promise<react_jsx_runtime.JSX.Element>;
29
-
30
- declare function SeoContent({ locale, sectionClassName }: {
31
- locale: string;
32
- sectionClassName?: string;
33
- }): Promise<react_jsx_runtime.JSX.Element>;
34
-
35
- declare function CTA({ locale, sectionClassName }: {
36
- locale: string;
37
- sectionClassName?: string;
38
- }): Promise<react_jsx_runtime.JSX.Element>;
39
-
40
- declare function Footer({ locale }: {
41
- locale: string;
42
- }): Promise<react_jsx_runtime.JSX.Element>;
43
-
44
- interface PricePlanProps {
45
- locale: string;
46
- currency?: string;
47
- pricePlanConfig: PricePlanAppConfig;
48
- sectionClassName?: string;
49
- }
50
- interface BillingOption {
51
- key: string;
52
- discount: number;
53
- }
54
- interface Prices {
55
- [key: string]: number | string;
56
- }
57
- interface PricePlanAppConfig {
58
- billingOptions: BillingOption[];
59
- prices: Prices;
60
- minPlanFeaturesCount: number;
61
- }
62
- declare function PricePlan({ locale, currency, pricePlanConfig, sectionClassName }: PricePlanProps): Promise<react_jsx_runtime.JSX.Element>;
63
-
64
- export { type BillingOption, CTA, FAQ, Features, Footer, Gallery, PricePlan, type PricePlanAppConfig, type PricePlanProps, type Prices, SeoContent, Tips, Usage };