tera-system-ui 0.1.73 → 0.1.75

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.
@@ -9,4 +9,5 @@ import Separator from "./components/command-separator.svelte";
9
9
  import Shortcut from "./components/command-shortcut.svelte";
10
10
  import LinkItem from "./components/command-link-item.svelte";
11
11
  declare const Loading: import("svelte").Component<CommandPrimitive.LoadingProps, {}, "ref">;
12
- export { Root, Empty, Group, Item, LinkItem, Input, List, Separator, Shortcut, Loading, Root as Command, Empty as CommandEmpty, Group as CommandGroup, Item as CommandItem, LinkItem as CommandLinkItem, Input as CommandInput, List as CommandList, Separator as CommandSeparator, Shortcut as CommandShortcut, Loading as CommandLoading, };
12
+ export { //
13
+ Root as Command, Empty as CommandEmpty, Group as CommandGroup, Item as CommandItem, LinkItem as CommandLinkItem, Input as CommandInput, List as CommandList, Separator as CommandSeparator, Shortcut as CommandShortcut, Loading as CommandLoading, };
@@ -9,6 +9,5 @@ import Separator from "./components/command-separator.svelte";
9
9
  import Shortcut from "./components/command-shortcut.svelte";
10
10
  import LinkItem from "./components/command-link-item.svelte";
11
11
  const Loading = CommandPrimitive.Loading;
12
- export { Root, Empty, Group, Item, LinkItem, Input, List, Separator, Shortcut, Loading,
13
- //
12
+ export { //
14
13
  Root as Command, Empty as CommandEmpty, Group as CommandGroup, Item as CommandItem, LinkItem as CommandLinkItem, Input as CommandInput, List as CommandList, Separator as CommandSeparator, Shortcut as CommandShortcut, Loading as CommandLoading, };
@@ -1,5 +1,5 @@
1
1
  export { default as SideNavigation } from './SideNavigation.svelte';
2
2
  export { default as SideNavigationLayout } from './SideNavigationLayout.svelte';
3
3
  export { default as SideNavigationGroup } from './SideNavigationGroup.svelte';
4
- export { toggleSideNavigation, isSideNavigationGroup } from './SideNavigation.js';
5
- export type { SideNavigationItem, SideNavigationGroup as SideNavigationGroupItem, SideNavigationEntry, SideNavigationProps } from "./SideNavigation.js";
4
+ export { toggleSideNavigation, isSideNavigationGroup } from './SideNavigation';
5
+ export type { SideNavigationItem, SideNavigationGroup as SideNavigationGroupItem, SideNavigationEntry, SideNavigationProps } from "./SideNavigation";
@@ -1,4 +1,4 @@
1
1
  export { default as SideNavigation } from './SideNavigation.svelte';
2
2
  export { default as SideNavigationLayout } from './SideNavigationLayout.svelte';
3
3
  export { default as SideNavigationGroup } from './SideNavigationGroup.svelte';
4
- export { toggleSideNavigation, isSideNavigationGroup } from './SideNavigation.js';
4
+ export { toggleSideNavigation, isSideNavigationGroup } from './SideNavigation';
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 { 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/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 { 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.73",
3
+ "version": "0.1.75",
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",
@@ -46,21 +46,20 @@ function extractExportNames(filePath) {
46
46
  const types = [];
47
47
 
48
48
  // Regular expressions to match the export names
49
- const defaultExportRegex = /^(?!\s*\/\/)\s*export\s*{\s*default\s+as\s+(\w+)/gm;
50
- const namedExportRegex = /^(?!\s*\/\/)\s*export\s*{(\w+)\s*}/gm;
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
- components.push(match[1]);
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 { ... }`