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.
- package/dist/components/checkbox/Checkbox.svelte +2 -1
- package/dist/components/icons/IconArrowBigRightFilled.svelte +1 -1
- package/dist/components/icons/IconArrowBigRightFilled.svelte.d.ts +1 -1
- package/dist/components/icons/IconBook.svelte +1 -1
- package/dist/components/icons/IconBook.svelte.d.ts +1 -1
- package/dist/components/icons/IconBookmarkPlus.svelte +1 -1
- package/dist/components/icons/IconBookmarkPlus.svelte.d.ts +1 -1
- package/dist/components/icons/IconCalculator.svelte +1 -1
- package/dist/components/icons/IconCalculator.svelte.d.ts +1 -1
- package/dist/components/icons/IconCheck.svelte +1 -1
- package/dist/components/icons/IconCheck.svelte.d.ts +1 -1
- package/dist/components/icons/IconChevronDown.svelte +1 -1
- package/dist/components/icons/IconChevronDown.svelte.d.ts +1 -1
- package/dist/components/icons/IconCoin.svelte +1 -1
- package/dist/components/icons/IconCoin.svelte.d.ts +1 -1
- package/dist/components/icons/IconCoinConvert.svelte +0 -1
- package/dist/components/icons/IconCopy.svelte +1 -1
- package/dist/components/icons/IconCopy.svelte.d.ts +1 -1
- package/dist/components/icons/IconCopyCheckFilled.svelte +1 -1
- package/dist/components/icons/IconCopyCheckFilled.svelte.d.ts +1 -1
- package/dist/components/icons/IconHamburger.svelte +1 -1
- package/dist/components/icons/IconLanguage.svelte +1 -1
- package/dist/components/icons/IconLanguage.svelte.d.ts +1 -1
- package/dist/components/icons/IconLoader2.svelte +1 -1
- package/dist/components/icons/IconLoader2.svelte.d.ts +1 -1
- package/dist/components/icons/IconLogout.svelte +1 -1
- package/dist/components/icons/IconLogout.svelte.d.ts +1 -1
- package/dist/components/icons/IconMoon.svelte +1 -1
- package/dist/components/icons/IconPointFilled.svelte +1 -1
- package/dist/components/icons/IconPointFilled.svelte.d.ts +1 -1
- package/dist/components/icons/IconSearch.svelte +1 -1
- package/dist/components/icons/IconSearch.svelte.d.ts +1 -1
- package/dist/components/icons/IconSettings.svelte +1 -1
- package/dist/components/icons/IconSettings.svelte.d.ts +1 -1
- package/dist/components/icons/IconSun.svelte +1 -1
- package/dist/components/icons/IconSwitchHorizontal.svelte +1 -1
- package/dist/components/icons/IconSwitchHorizontal.svelte.d.ts +1 -1
- package/dist/components/icons/IconSwitchVertical.svelte +1 -1
- package/dist/components/icons/IconSwitchVertical.svelte.d.ts +1 -1
- package/dist/components/icons/IconTransform.svelte +1 -1
- package/dist/components/icons/IconTransform.svelte.d.ts +1 -1
- package/dist/components/icons/IconX.svelte +1 -1
- package/dist/components/icons/IconX.svelte.d.ts +1 -1
- package/dist/components/icons/package.json +14 -0
- package/dist/components/icons/update-icon-import.d.ts +1 -0
- package/dist/components/icons/update-icon-import.js +30 -0
- 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
|
|
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
|
|
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
|
|
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,4 +1,4 @@
|
|
|
1
1
|
import { type IconsProps } from "./Icons";
|
|
2
|
-
import
|
|
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,4 +1,4 @@
|
|
|
1
1
|
import { type IconsProps } from "./Icons";
|
|
2
|
-
import
|
|
2
|
+
import IconCalculator from "@tabler/icons-svelte/icons/calculator";
|
|
3
3
|
declare const IconCalculator: import("svelte").Component<IconsProps, {}, "">;
|
|
4
4
|
export default IconCalculator;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type IconsProps } from "./Icons";
|
|
2
|
-
import
|
|
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,4 +1,4 @@
|
|
|
1
1
|
import { type IconsProps } from "./Icons";
|
|
2
|
-
import
|
|
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,4 +1,4 @@
|
|
|
1
1
|
import { type IconsProps } from "./Icons";
|
|
2
|
-
import
|
|
2
|
+
import IconLanguage from "@tabler/icons-svelte/icons/language";
|
|
3
3
|
declare const IconLanguage: import("svelte").Component<IconsProps, {}, "">;
|
|
4
4
|
export default IconLanguage;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type IconsProps } from "./Icons";
|
|
2
|
-
import
|
|
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,4 +1,4 @@
|
|
|
1
1
|
import { type IconsProps } from "./Icons";
|
|
2
|
-
import
|
|
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
|
|
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
|
|
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,4 +1,4 @@
|
|
|
1
1
|
import { type IconsProps } from "./Icons";
|
|
2
|
-
import
|
|
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,4 +1,4 @@
|
|
|
1
1
|
import { type IconsProps } from "./Icons";
|
|
2
|
-
import
|
|
2
|
+
import IconTransform from "@tabler/icons-svelte/icons/transform";
|
|
3
3
|
declare const IconTransform: import("svelte").Component<IconsProps, {}, "">;
|
|
4
4
|
export default IconTransform;
|
|
@@ -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.
|
|
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",
|