tera-system-ui 0.1.72 → 0.1.74
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/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/package.json +1 -1
- package/scripts/generate-ts-index.js +13 -11
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { Button } from './components/button/index.js';
|
|
|
8
8
|
export { Card } from './components/card/index.js';
|
|
9
9
|
export { Checkbox } from './components/checkbox/index.js';
|
|
10
10
|
export { Combobox } from './components/combobox/index.js';
|
|
11
|
+
export { Root, Empty, Group, Item, LinkItem, Input, List, Separator, Shortcut, Loading, Command, CommandEmpty, CommandGroup, CommandItem, CommandLinkItem, CommandInput, CommandList, CommandSeparator, CommandShortcut, CommandLoading } from './components/command/index.js';
|
|
11
12
|
export { DateRangePicker } from './components/date-range-picker/index.js';
|
|
12
13
|
export { Dialog } from './components/dialog/index.js';
|
|
13
14
|
export { Drawer } from './components/drawer/index.js';
|
|
@@ -23,7 +24,7 @@ export { FeatureCard, StatBlock, PricingCard, TestimonialCard } from './componen
|
|
|
23
24
|
export { Popover } from './components/popover/index.js';
|
|
24
25
|
export { PopoverResponsive } from './components/popover-responsive/index.js';
|
|
25
26
|
export { Select } from './components/select/index.js';
|
|
26
|
-
export { SideNavigation, SideNavigationLayout, SideNavigationGroup } from './components/side-navigation/index.js';
|
|
27
|
+
export { SideNavigation, SideNavigationLayout, SideNavigationGroup, toggleSideNavigation, isSideNavigationGroup } from './components/side-navigation/index.js';
|
|
27
28
|
export { Skeleton } from './components/skeleton/index.js';
|
|
28
29
|
export { Slider } from './components/slider/index.js';
|
|
29
30
|
export { Spinner } from './components/spinner/index.js';
|
|
@@ -55,7 +56,7 @@ export type { LightDarkToggleProps } from './components/light-dark-toggle/index.
|
|
|
55
56
|
export type { PopoverProps } from './components/popover/index.js';
|
|
56
57
|
export type { PopoverResponsiveProps } from './components/popover-responsive/index.js';
|
|
57
58
|
export type { SelectProps, SelectOption } from './components/select/index.js';
|
|
58
|
-
export type { SideNavigationItem,
|
|
59
|
+
export type { SideNavigationItem, SideNavigationGroupItem, SideNavigationEntry, SideNavigationProps } from './components/side-navigation/index.js';
|
|
59
60
|
export type { SliderProps } from './components/slider/index.js';
|
|
60
61
|
export type { StarRatingProps } from './components/star-rating/index.js';
|
|
61
62
|
export type { SwitchProps } from './components/switch/index.js';
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export { Button } from './components/button/index.js';
|
|
|
8
8
|
export { Card } from './components/card/index.js';
|
|
9
9
|
export { Checkbox } from './components/checkbox/index.js';
|
|
10
10
|
export { Combobox } from './components/combobox/index.js';
|
|
11
|
+
export { Root, Empty, Group, Item, LinkItem, Input, List, Separator, Shortcut, Loading, Command, CommandEmpty, CommandGroup, CommandItem, CommandLinkItem, CommandInput, CommandList, CommandSeparator, CommandShortcut, CommandLoading } from './components/command/index.js';
|
|
11
12
|
export { DateRangePicker } from './components/date-range-picker/index.js';
|
|
12
13
|
export { Dialog } from './components/dialog/index.js';
|
|
13
14
|
export { Drawer } from './components/drawer/index.js';
|
|
@@ -23,7 +24,7 @@ export { FeatureCard, StatBlock, PricingCard, TestimonialCard } from './componen
|
|
|
23
24
|
export { Popover } from './components/popover/index.js';
|
|
24
25
|
export { PopoverResponsive } from './components/popover-responsive/index.js';
|
|
25
26
|
export { Select } from './components/select/index.js';
|
|
26
|
-
export { SideNavigation, SideNavigationLayout, SideNavigationGroup } from './components/side-navigation/index.js';
|
|
27
|
+
export { SideNavigation, SideNavigationLayout, SideNavigationGroup, toggleSideNavigation, isSideNavigationGroup } from './components/side-navigation/index.js';
|
|
27
28
|
export { Skeleton } from './components/skeleton/index.js';
|
|
28
29
|
export { Slider } from './components/slider/index.js';
|
|
29
30
|
export { Spinner } from './components/spinner/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tera-system-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.74",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "npm run customPrepublish && npm run generate-index && npm run generate-llms && vite build && npm run package && npm run copy-docs && npm run copy-llms && npm run postpublish",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
import fs from "fs";
|
|
3
3
|
|
|
4
4
|
import path from "path";
|
|
@@ -46,26 +46,28 @@ function extractExportNames(filePath) {
|
|
|
46
46
|
const types = [];
|
|
47
47
|
|
|
48
48
|
// Regular expressions to match the export names
|
|
49
|
-
|
|
50
|
-
const namedExportRegex = /^(?!\s*\/\/)\s*export\s*{(
|
|
49
|
+
// Handles both `export { default as X }` and `export { A, B, C as D }` (excludes `export type`)
|
|
50
|
+
const namedExportRegex = /^(?!\s*\/\/)\s*export\s*(?!type[\s{])\{([^}]+)\}/gm;
|
|
51
51
|
// Match: export type { TypeName1, TypeName2 } from '...' (handles multi-line)
|
|
52
52
|
const typeExportRegex = /export\s+type\s*\{([^}]+)\}\s*from/gm;
|
|
53
53
|
|
|
54
54
|
let match;
|
|
55
55
|
|
|
56
|
-
// Find all matches for `export { default as
|
|
57
|
-
while ((match = defaultExportRegex.exec(fileContent)) !== null) {
|
|
58
|
-
components.push(match[1]);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// Find all matches for `export { namedExport }`
|
|
56
|
+
// Find all matches for `export { namedExport1, namedExport2, ... }` and `export { default as X }`
|
|
62
57
|
while ((match = namedExportRegex.exec(fileContent)) !== null) {
|
|
63
|
-
|
|
58
|
+
const names = match[1].split(',').map(t => {
|
|
59
|
+
const parts = t.trim().split(/\s+as\s+/);
|
|
60
|
+
return (parts[1] || parts[0]).trim();
|
|
61
|
+
}).filter(t => t && t !== 'default');
|
|
62
|
+
components.push(...names);
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
// Find all matches for `export type { ... }`
|
|
67
66
|
while ((match = typeExportRegex.exec(fileContent)) !== null) {
|
|
68
|
-
const typeNames = match[1].split(',').map(t =>
|
|
67
|
+
const typeNames = match[1].split(',').map(t => {
|
|
68
|
+
const parts = t.trim().split(/\s+as\s+/);
|
|
69
|
+
return (parts[1] || parts[0]).trim();
|
|
70
|
+
}).filter(t => t);
|
|
69
71
|
types.push(...typeNames);
|
|
70
72
|
}
|
|
71
73
|
|