tera-system-ui 0.0.90 → 0.0.91

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 (47) hide show
  1. package/dist/components/checkbox/Checkbox.svelte +2 -1
  2. package/dist/components/icons/IconArrowBigRightFilled.svelte +1 -1
  3. package/dist/components/icons/IconArrowBigRightFilled.svelte.d.ts +1 -1
  4. package/dist/components/icons/IconBook.svelte +1 -1
  5. package/dist/components/icons/IconBook.svelte.d.ts +1 -1
  6. package/dist/components/icons/IconBookmarkPlus.svelte +1 -1
  7. package/dist/components/icons/IconBookmarkPlus.svelte.d.ts +1 -1
  8. package/dist/components/icons/IconCalculator.svelte +1 -1
  9. package/dist/components/icons/IconCalculator.svelte.d.ts +1 -1
  10. package/dist/components/icons/IconCheck.svelte +1 -1
  11. package/dist/components/icons/IconCheck.svelte.d.ts +1 -1
  12. package/dist/components/icons/IconChevronDown.svelte +1 -1
  13. package/dist/components/icons/IconChevronDown.svelte.d.ts +1 -1
  14. package/dist/components/icons/IconCoin.svelte +1 -1
  15. package/dist/components/icons/IconCoin.svelte.d.ts +1 -1
  16. package/dist/components/icons/IconCoinConvert.svelte +0 -1
  17. package/dist/components/icons/IconCopy.svelte +1 -1
  18. package/dist/components/icons/IconCopy.svelte.d.ts +1 -1
  19. package/dist/components/icons/IconCopyCheckFilled.svelte +1 -1
  20. package/dist/components/icons/IconCopyCheckFilled.svelte.d.ts +1 -1
  21. package/dist/components/icons/IconHamburger.svelte +1 -1
  22. package/dist/components/icons/IconLanguage.svelte +1 -1
  23. package/dist/components/icons/IconLanguage.svelte.d.ts +1 -1
  24. package/dist/components/icons/IconLoader2.svelte +1 -1
  25. package/dist/components/icons/IconLoader2.svelte.d.ts +1 -1
  26. package/dist/components/icons/IconLogout.svelte +1 -1
  27. package/dist/components/icons/IconLogout.svelte.d.ts +1 -1
  28. package/dist/components/icons/IconMoon.svelte +1 -1
  29. package/dist/components/icons/IconPointFilled.svelte +1 -1
  30. package/dist/components/icons/IconPointFilled.svelte.d.ts +1 -1
  31. package/dist/components/icons/IconSearch.svelte +1 -1
  32. package/dist/components/icons/IconSearch.svelte.d.ts +1 -1
  33. package/dist/components/icons/IconSettings.svelte +1 -1
  34. package/dist/components/icons/IconSettings.svelte.d.ts +1 -1
  35. package/dist/components/icons/IconSun.svelte +1 -1
  36. package/dist/components/icons/IconSwitchHorizontal.svelte +1 -1
  37. package/dist/components/icons/IconSwitchHorizontal.svelte.d.ts +1 -1
  38. package/dist/components/icons/IconSwitchVertical.svelte +1 -1
  39. package/dist/components/icons/IconSwitchVertical.svelte.d.ts +1 -1
  40. package/dist/components/icons/IconTransform.svelte +1 -1
  41. package/dist/components/icons/IconTransform.svelte.d.ts +1 -1
  42. package/dist/components/icons/IconX.svelte +1 -1
  43. package/dist/components/icons/IconX.svelte.d.ts +1 -1
  44. package/dist/components/icons/package.json +14 -0
  45. package/dist/components/icons/update-icon-import.d.ts +1 -0
  46. package/dist/components/icons/update-icon-import.js +30 -0
  47. package/package.json +3 -2
@@ -1,7 +1,8 @@
1
1
  <script lang="ts">
2
2
  import { Checkbox as CheckboxPrimitive, type WithoutChildrenOrChild } from "bits-ui";
3
3
  import { cn } from "../../utils";
4
- import {IconCheck, IconMinus} from "@tabler/icons-svelte";
4
+ import IconCheck from "@tabler/icons-svelte/icons/check";
5
+ import IconMinus from "@tabler/icons-svelte/icons/minus";
5
6
 
6
7
  let {
7
8
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconArrowBigRightFilled} from "@tabler/icons-svelte";
3
+ import IconArrowBigRightFilled from "@tabler/icons-svelte/icons/arrow-big-right-filled";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconArrowBigRightFilled } from "@tabler/icons-svelte";
2
+ import IconArrowBigRightFilled from "@tabler/icons-svelte/icons/arrow-big-right-filled";
3
3
  declare const IconArrowBigRightFilled: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconArrowBigRightFilled;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconBook} from "@tabler/icons-svelte";
3
+ import IconBook from "@tabler/icons-svelte/icons/book";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconBook } from "@tabler/icons-svelte";
2
+ import IconBook from "@tabler/icons-svelte/icons/book";
3
3
  declare const IconBook: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconBook;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconBookmarkPlus} from "@tabler/icons-svelte";
3
+ import IconBookmarkPlus from "@tabler/icons-svelte/icons/bookmark-plus";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconBookmarkPlus } from "@tabler/icons-svelte";
2
+ import IconBookmarkPlus from "@tabler/icons-svelte/icons/bookmark-plus";
3
3
  declare const IconBookmarkPlus: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconBookmarkPlus;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconCalculator} from "@tabler/icons-svelte";
3
+ import IconCalculator from "@tabler/icons-svelte/icons/calculator";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconCalculator } from "@tabler/icons-svelte";
2
+ import IconCalculator from "@tabler/icons-svelte/icons/calculator";
3
3
  declare const IconCalculator: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconCalculator;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconCheck} from "@tabler/icons-svelte";
3
+ import IconCheck from "@tabler/icons-svelte/icons/check";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconCheck } from "@tabler/icons-svelte";
2
+ import IconCheck from "@tabler/icons-svelte/icons/check";
3
3
  declare const IconCheck: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconCheck;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconChevronDown} from "@tabler/icons-svelte";
3
+ import IconChevronDown from "@tabler/icons-svelte/icons/chevron-down";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconChevronDown } from "@tabler/icons-svelte";
2
+ import IconChevronDown from "@tabler/icons-svelte/icons/chevron-down";
3
3
  declare const IconChevronDown: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconChevronDown;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconCoin} from "@tabler/icons-svelte";
3
+ import IconCoin from "@tabler/icons-svelte/icons/coin";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconCoin } from "@tabler/icons-svelte";
2
+ import IconCoin from "@tabler/icons-svelte/icons/coin";
3
3
  declare const IconCoin: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconCoin;
@@ -1,6 +1,5 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconCoin} from "@tabler/icons-svelte";
4
3
 
5
4
  let {children, ...props}: IconsProps = $props();
6
5
 
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconCopy} from "@tabler/icons-svelte";
3
+ import IconCopy from "@tabler/icons-svelte/icons/copy";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconCopy } from "@tabler/icons-svelte";
2
+ import IconCopy from "@tabler/icons-svelte/icons/copy";
3
3
  declare const IconCopy: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconCopy;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconCopyCheckFilled} from "@tabler/icons-svelte";
3
+ import IconCopyCheckFilled from "@tabler/icons-svelte/icons/copy-check-filled";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconCopyCheckFilled } from "@tabler/icons-svelte";
2
+ import IconCopyCheckFilled from "@tabler/icons-svelte/icons/copy-check-filled";
3
3
  declare const IconCopyCheckFilled: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconCopyCheckFilled;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconMenu2} from "@tabler/icons-svelte";
3
+ import IconMenu2 from "@tabler/icons-svelte/icons/menu-2";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconLanguage} from "@tabler/icons-svelte";
3
+ import IconLanguage from "@tabler/icons-svelte/icons/language";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconLanguage } from "@tabler/icons-svelte";
2
+ import IconLanguage from "@tabler/icons-svelte/icons/language";
3
3
  declare const IconLanguage: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconLanguage;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconLoader2} from "@tabler/icons-svelte";
3
+ import IconLoader2 from "@tabler/icons-svelte/icons/loader-2";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconLoader2 } from "@tabler/icons-svelte";
2
+ import IconLoader2 from "@tabler/icons-svelte/icons/loader-2";
3
3
  declare const IconLoader2: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconLoader2;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconLogout} from "@tabler/icons-svelte";
3
+ import IconLogout from "@tabler/icons-svelte/icons/logout";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconLogout } from "@tabler/icons-svelte";
2
+ import IconLogout from "@tabler/icons-svelte/icons/logout";
3
3
  declare const IconLogout: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconLogout;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconMoonStars} from "@tabler/icons-svelte";
3
+ import IconMoonStars from "@tabler/icons-svelte/icons/moon-stars";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconPointFilled} from "@tabler/icons-svelte";
3
+ import IconPointFilled from "@tabler/icons-svelte/icons/point-filled";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconPointFilled } from "@tabler/icons-svelte";
2
+ import IconPointFilled from "@tabler/icons-svelte/icons/point-filled";
3
3
  declare const IconPointFilled: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconPointFilled;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconSearch} from "@tabler/icons-svelte";
3
+ import IconSearch from "@tabler/icons-svelte/icons/search";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconSearch } from "@tabler/icons-svelte";
2
+ import IconSearch from "@tabler/icons-svelte/icons/search";
3
3
  declare const IconSearch: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconSearch;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconSettings} from "@tabler/icons-svelte";
3
+ import IconSettings from "@tabler/icons-svelte/icons/settings";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconSettings } from "@tabler/icons-svelte";
2
+ import IconSettings from "@tabler/icons-svelte/icons/settings";
3
3
  declare const IconSettings: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconSettings;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconSunHigh} from "@tabler/icons-svelte";
3
+ import IconSunHigh from "@tabler/icons-svelte/icons/sun-high";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconSwitchHorizontal} from "@tabler/icons-svelte";
3
+ import IconSwitchHorizontal from "@tabler/icons-svelte/icons/switch-horizontal";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconSwitchHorizontal } from "@tabler/icons-svelte";
2
+ import IconSwitchHorizontal from "@tabler/icons-svelte/icons/switch-horizontal";
3
3
  declare const IconSwitchHorizontal: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconSwitchHorizontal;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconSwitchVertical} from "@tabler/icons-svelte";
3
+ import IconSwitchVertical from "@tabler/icons-svelte/icons/switch-vertical";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconSwitchVertical } from "@tabler/icons-svelte";
2
+ import IconSwitchVertical from "@tabler/icons-svelte/icons/switch-vertical";
3
3
  declare const IconSwitchVertical: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconSwitchVertical;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconTransform} from "@tabler/icons-svelte";
3
+ import IconTransform from "@tabler/icons-svelte/icons/transform";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconTransform } from "@tabler/icons-svelte";
2
+ import IconTransform from "@tabler/icons-svelte/icons/transform";
3
3
  declare const IconTransform: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconTransform;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {type IconsProps, styles} from "./Icons";
3
- import {IconX} from "@tabler/icons-svelte";
3
+ import IconX from "@tabler/icons-svelte/icons/x";
4
4
 
5
5
  let {children, ...props}: IconsProps = $props();
6
6
 
@@ -1,4 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
- import { IconX } from "@tabler/icons-svelte";
2
+ import IconX from "@tabler/icons-svelte/icons/x";
3
3
  declare const IconX: import("svelte").Component<IconsProps, {}, "">;
4
4
  export default IconX;
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "icons",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://gitlab.com/tera-research/tera-clients/tera-clients-libs/tera-system-ui.git"
12
+ },
13
+ "private": true
14
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,30 @@
1
+ import * as fs from 'fs';
2
+ import * as path from 'path';
3
+ function getSvelteFiles(dir) {
4
+ let results = [];
5
+ const list = fs.readdirSync(dir);
6
+ list.forEach((file) => {
7
+ const filePath = path.join(dir, file);
8
+ const stat = fs.statSync(filePath);
9
+ if (stat && stat.isDirectory()) {
10
+ results = results.concat(getSvelteFiles(filePath));
11
+ }
12
+ else if (file.endsWith('.svelte')) {
13
+ results.push(filePath);
14
+ }
15
+ });
16
+ return results;
17
+ }
18
+ // Example usage:
19
+ const svelteFiles = getSvelteFiles('./');
20
+ svelteFiles.forEach((file) => {
21
+ let content = fs.readFileSync(file, 'utf8');
22
+ // Perform your content modifications here
23
+ // Example: Replace 'IconCopy' with 'IconCopyNew'
24
+ // content = content.replace(/IconCopy/g, 'IconCopyNew');
25
+ content = content.replace(/import\s+\{\s*(\w+)\s*\}\s+from\s+['"]@tabler\/icons-svelte['"];/g, (match, p1) => {
26
+ const iconName = p1.replace(/([A-Z])/g, '-$1').toLowerCase().slice(1);
27
+ return `import ${p1} from "@tabler/icons-svelte/icons/${iconName}";`;
28
+ });
29
+ fs.writeFileSync(file, content, 'utf8');
30
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tera-system-ui",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "npm run customPrepublish && npm run generate-index && vite build && npm run package && npm run postpublish",
@@ -92,7 +92,8 @@
92
92
  "svelte-check": "^4.0.8",
93
93
  "tailwindcss": "^3.4.15",
94
94
  "typescript": "^5.6.3",
95
- "vite": "^5.4.11"
95
+ "vite": "^5.4.11",
96
+ "vite-plugin-entry-shaking": "^0.5.1"
96
97
  },
97
98
  "dependencies": {
98
99
  "@floating-ui/dom": "^1.6.12",