@timus-networks/theme 1.0.184 → 2.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 (225) hide show
  1. package/components/TimusIcons.vue +54 -0
  2. package/generate-icon.js +22 -0
  3. package/module.ts +84 -0
  4. package/package.json +17 -18
  5. package/pages/icons.vue +46 -0
  6. package/plugins/sample-plugin.ts +5 -0
  7. package/public/isax/fonts/iconsax.svg +927 -0
  8. package/public/isax/fonts/iconsax.ttf +0 -0
  9. package/public/isax/fonts/iconsax.woff +0 -0
  10. package/public/isax/icons.json +899 -0
  11. package/public/isax/selection.json +1 -0
  12. package/public/isax/style.css +1 -0
  13. package/public/isax/style.scss +5435 -0
  14. package/public/isax/variables.scss +900 -0
  15. package/README.md +0 -119
  16. package/components-js/ThemeAlert.vue +0 -78
  17. package/components-js/ThemeAvatar.vue +0 -55
  18. package/components-js/ThemeBadge.vue +0 -106
  19. package/components-js/ThemeBreadcrumb.vue +0 -44
  20. package/components-js/ThemeButtons.vue +0 -148
  21. package/components-js/ThemeCascader.vue +0 -390
  22. package/components-js/ThemeCheckbox.d.ts +0 -2
  23. package/components-js/ThemeCheckbox.vue +0 -197
  24. package/components-js/ThemeCollapse.vue +0 -73
  25. package/components-js/ThemeDialog.vue +0 -49
  26. package/components-js/ThemeForm.d.ts +0 -2
  27. package/components-js/ThemeForm.vue +0 -134
  28. package/components-js/ThemeInformation.vue +0 -127
  29. package/components-js/ThemeInputNumbers.vue +0 -74
  30. package/components-js/ThemeInputs.vue +0 -316
  31. package/components-js/ThemeLink.vue +0 -110
  32. package/components-js/ThemeLogo.vue +0 -57
  33. package/components-js/ThemeMessage.vue +0 -55
  34. package/components-js/ThemeMessageBox.vue +0 -47
  35. package/components-js/ThemePopover.vue +0 -557
  36. package/components-js/ThemeRadio.d.ts +0 -2
  37. package/components-js/ThemeRadio.vue +0 -164
  38. package/components-js/ThemeSelect.vue +0 -237
  39. package/components-js/ThemeSidebar.d.ts +0 -2
  40. package/components-js/ThemeSidebar.vue +0 -275
  41. package/components-js/ThemeTable.vue +0 -305
  42. package/components-js/ThemeTag.vue +0 -145
  43. package/components-js/ThemeToggle.vue +0 -123
  44. package/components-js/ThemeTooltip.vue +0 -191
  45. package/components-js/ThemeTypo.vue +0 -65
  46. package/components-js/ThemeUpload.vue +0 -92
  47. package/components-js/TimusSamples.vue +0 -54
  48. package/components-js/exporter.js +0 -19
  49. package/components-js/interfaces.js +0 -1
  50. package/components-js/utils.d.ts +0 -6
  51. package/components-js/utils.js +0 -17
  52. package/components-ts/ThemeAlert.vue +0 -78
  53. package/components-ts/ThemeAvatar.vue +0 -55
  54. package/components-ts/ThemeBadge.vue +0 -106
  55. package/components-ts/ThemeBreadcrumb.vue +0 -44
  56. package/components-ts/ThemeButtons.vue +0 -148
  57. package/components-ts/ThemeCascader.vue +0 -390
  58. package/components-ts/ThemeCheckbox.vue +0 -202
  59. package/components-ts/ThemeCollapse.vue +0 -73
  60. package/components-ts/ThemeDialog.vue +0 -49
  61. package/components-ts/ThemeForm.vue +0 -137
  62. package/components-ts/ThemeInformation.vue +0 -127
  63. package/components-ts/ThemeInputNumbers.vue +0 -74
  64. package/components-ts/ThemeInputs.vue +0 -316
  65. package/components-ts/ThemeLink.vue +0 -110
  66. package/components-ts/ThemeLogo.vue +0 -57
  67. package/components-ts/ThemeMessage.vue +0 -55
  68. package/components-ts/ThemeMessageBox.vue +0 -47
  69. package/components-ts/ThemePopover.vue +0 -557
  70. package/components-ts/ThemeRadio.vue +0 -169
  71. package/components-ts/ThemeSelect.vue +0 -237
  72. package/components-ts/ThemeSidebar.vue +0 -277
  73. package/components-ts/ThemeTable.vue +0 -305
  74. package/components-ts/ThemeTag.vue +0 -145
  75. package/components-ts/ThemeToggle.vue +0 -123
  76. package/components-ts/ThemeTooltip.vue +0 -191
  77. package/components-ts/ThemeTypo.vue +0 -65
  78. package/components-ts/ThemeUpload.vue +0 -92
  79. package/components-ts/TimusSamples.vue +0 -54
  80. package/components-ts/exporter.js +0 -19
  81. package/components-ts/interfaces.ts +0 -11
  82. package/components-ts/utils.ts +0 -20
  83. package/convert-js.js +0 -112
  84. package/convert-sass.js +0 -26
  85. package/fonts/poppins-font-face/files/Poppins-Black.eot +0 -0
  86. package/fonts/poppins-font-face/files/Poppins-Black.svg +0 -3099
  87. package/fonts/poppins-font-face/files/Poppins-Black.ttf +0 -0
  88. package/fonts/poppins-font-face/files/Poppins-Black.woff +0 -0
  89. package/fonts/poppins-font-face/files/Poppins-Black.woff2 +0 -0
  90. package/fonts/poppins-font-face/files/Poppins-BlackItalic.ttf +0 -0
  91. package/fonts/poppins-font-face/files/Poppins-Bold.eot +0 -0
  92. package/fonts/poppins-font-face/files/Poppins-Bold.svg +0 -3131
  93. package/fonts/poppins-font-face/files/Poppins-Bold.ttf +0 -0
  94. package/fonts/poppins-font-face/files/Poppins-Bold.woff +0 -0
  95. package/fonts/poppins-font-face/files/Poppins-Bold.woff2 +0 -0
  96. package/fonts/poppins-font-face/files/Poppins-BoldItalic.ttf +0 -0
  97. package/fonts/poppins-font-face/files/Poppins-ExtraBold.eot +0 -0
  98. package/fonts/poppins-font-face/files/Poppins-ExtraBold.svg +0 -3120
  99. package/fonts/poppins-font-face/files/Poppins-ExtraBold.ttf +0 -0
  100. package/fonts/poppins-font-face/files/Poppins-ExtraBold.woff +0 -0
  101. package/fonts/poppins-font-face/files/Poppins-ExtraBold.woff2 +0 -0
  102. package/fonts/poppins-font-face/files/Poppins-ExtraBoldItalic.ttf +0 -0
  103. package/fonts/poppins-font-face/files/Poppins-ExtraLight.eot +0 -0
  104. package/fonts/poppins-font-face/files/Poppins-ExtraLight.svg +0 -3245
  105. package/fonts/poppins-font-face/files/Poppins-ExtraLight.ttf +0 -0
  106. package/fonts/poppins-font-face/files/Poppins-ExtraLight.woff +0 -0
  107. package/fonts/poppins-font-face/files/Poppins-ExtraLight.woff2 +0 -0
  108. package/fonts/poppins-font-face/files/Poppins-ExtraLightItalic.ttf +0 -0
  109. package/fonts/poppins-font-face/files/Poppins-Italic.eot +0 -0
  110. package/fonts/poppins-font-face/files/Poppins-Italic.svg +0 -3414
  111. package/fonts/poppins-font-face/files/Poppins-Italic.ttf +0 -0
  112. package/fonts/poppins-font-face/files/Poppins-Italic.woff +0 -0
  113. package/fonts/poppins-font-face/files/Poppins-Italic.woff2 +0 -0
  114. package/fonts/poppins-font-face/files/Poppins-Light.eot +0 -0
  115. package/fonts/poppins-font-face/files/Poppins-Light.svg +0 -3244
  116. package/fonts/poppins-font-face/files/Poppins-Light.ttf +0 -0
  117. package/fonts/poppins-font-face/files/Poppins-Light.woff +0 -0
  118. package/fonts/poppins-font-face/files/Poppins-Light.woff2 +0 -0
  119. package/fonts/poppins-font-face/files/Poppins-LightItalic.ttf +0 -0
  120. package/fonts/poppins-font-face/files/Poppins-Medium.eot +0 -0
  121. package/fonts/poppins-font-face/files/Poppins-Medium.svg +0 -3190
  122. package/fonts/poppins-font-face/files/Poppins-Medium.ttf +0 -0
  123. package/fonts/poppins-font-face/files/Poppins-Medium.woff +0 -0
  124. package/fonts/poppins-font-face/files/Poppins-Medium.woff2 +0 -0
  125. package/fonts/poppins-font-face/files/Poppins-MediumItalic.ttf +0 -0
  126. package/fonts/poppins-font-face/files/Poppins-Regular.eot +0 -0
  127. package/fonts/poppins-font-face/files/Poppins-Regular.svg +0 -3213
  128. package/fonts/poppins-font-face/files/Poppins-Regular.ttf +0 -0
  129. package/fonts/poppins-font-face/files/Poppins-Regular.woff +0 -0
  130. package/fonts/poppins-font-face/files/Poppins-Regular.woff2 +0 -0
  131. package/fonts/poppins-font-face/files/Poppins-SemiBold.eot +0 -0
  132. package/fonts/poppins-font-face/files/Poppins-SemiBold.svg +0 -3174
  133. package/fonts/poppins-font-face/files/Poppins-SemiBold.ttf +0 -0
  134. package/fonts/poppins-font-face/files/Poppins-SemiBold.woff +0 -0
  135. package/fonts/poppins-font-face/files/Poppins-SemiBold.woff2 +0 -0
  136. package/fonts/poppins-font-face/files/Poppins-SemiBoldItalic.ttf +0 -0
  137. package/fonts/poppins-font-face/files/Poppins-Thin.eot +0 -0
  138. package/fonts/poppins-font-face/files/Poppins-Thin.svg +0 -3266
  139. package/fonts/poppins-font-face/files/Poppins-Thin.ttf +0 -0
  140. package/fonts/poppins-font-face/files/Poppins-Thin.woff +0 -0
  141. package/fonts/poppins-font-face/files/Poppins-Thin.woff2 +0 -0
  142. package/fonts/poppins-font-face/files/Poppins-ThinItalic.ttf +0 -0
  143. package/fonts/poppins-font-face/stylesheet.css +0 -81
  144. package/images/applications/apple.png +0 -0
  145. package/images/applications/apple_icloud.png +0 -0
  146. package/images/applications/apple_itunes.png +0 -0
  147. package/images/applications/apple_store.png +0 -0
  148. package/images/applications/bloomberg.png +0 -0
  149. package/images/applications/chrome.png +0 -0
  150. package/images/applications/csgo.png +0 -0
  151. package/images/applications/dns.png +0 -0
  152. package/images/applications/dropbox.png +0 -0
  153. package/images/applications/evil.png +0 -0
  154. package/images/applications/facebook-messenger.png +0 -0
  155. package/images/applications/facebook.png +0 -0
  156. package/images/applications/ftp.png +0 -0
  157. package/images/applications/gmail.png +0 -0
  158. package/images/applications/google.png +0 -0
  159. package/images/applications/google_maps.png +0 -0
  160. package/images/applications/instagram.png +0 -0
  161. package/images/applications/linkedin.svg +0 -5
  162. package/images/applications/messenger.png +0 -0
  163. package/images/applications/mysql.png +0 -0
  164. package/images/applications/netflix.png +0 -0
  165. package/images/applications/nintendo.png +0 -0
  166. package/images/applications/sap.png +0 -0
  167. package/images/applications/skype.png +0 -0
  168. package/images/applications/slack.png +0 -0
  169. package/images/applications/smtp.png +0 -0
  170. package/images/applications/snapchat.png +0 -0
  171. package/images/applications/spotify.png +0 -0
  172. package/images/applications/ssh.png +0 -0
  173. package/images/applications/teamspeak.png +0 -0
  174. package/images/applications/tiktok.png +0 -0
  175. package/images/applications/twitch.png +0 -0
  176. package/images/applications/twitter.png +0 -0
  177. package/images/applications/ubuntuone.png +0 -0
  178. package/images/applications/utorrent.png +0 -0
  179. package/images/applications/website.png +0 -0
  180. package/images/applications/whatsapp.png +0 -0
  181. package/images/applications/windows-update.png +0 -0
  182. package/images/applications/youtube.png +0 -0
  183. package/images/backgrounds/login-icon.png +0 -0
  184. package/images/backgrounds/login.jpg +0 -0
  185. package/images/backgrounds/login.png +0 -0
  186. package/images/cards/amex.svg +0 -20
  187. package/images/cards/default.svg +0 -18
  188. package/images/cards/dina.svg +0 -12
  189. package/images/cards/diners.svg +0 -30
  190. package/images/cards/discover.svg +0 -28
  191. package/images/cards/eftpos.svg +0 -21
  192. package/images/cards/jcb.svg +0 -41
  193. package/images/cards/mastercard.svg +0 -5
  194. package/images/cards/unionpay.svg +0 -6
  195. package/images/cards/visa.svg +0 -3
  196. package/images/devices/os-android.png +0 -0
  197. package/images/devices/os-android.svg +0 -6
  198. package/images/devices/os-apple.svg +0 -4
  199. package/images/devices/os-default.svg +0 -5
  200. package/images/devices/os-ios.png +0 -0
  201. package/images/devices/os-ios.svg +0 -4
  202. package/images/devices/os-linux-debian.png +0 -0
  203. package/images/devices/os-linux-ubuntu.png +0 -0
  204. package/images/devices/os-linux.svg +0 -3
  205. package/images/devices/os-osx.png +0 -0
  206. package/images/devices/os-unknown.png +0 -0
  207. package/images/devices/os-windows.png +0 -0
  208. package/images/devices/os-windows.svg +0 -3
  209. package/images/devices/type-laptop-ubuntu.png +0 -0
  210. package/images/devices/type-laptop.png +0 -0
  211. package/images/devices/type-printer.png +0 -0
  212. package/images/devices/type-switch-cisco.png +0 -0
  213. package/images/logos/timus-favicon.png +0 -0
  214. package/images/logos/timus-icon.svg +0 -17
  215. package/images/logos/timus-logo-manager.svg +0 -29
  216. package/images/logos/timus-logo-partner.svg +0 -35
  217. package/images/logos/timus-logo.svg +0 -22
  218. package/index.d.ts +0 -5
  219. package/loader.js +0 -50
  220. package/module.js +0 -77
  221. package/output/main.css +0 -1
  222. package/plugins/html-to-string.js +0 -36
  223. package/plugins/js-components-installer.js +0 -22
  224. package/plugins/theme-provider.js +0 -72
  225. package/plugins/ts-components-installer.js +0 -22
@@ -1,19 +0,0 @@
1
- const components = {};
2
- const requireComponent = require.context(
3
- '.', // read from current directory
4
- false, // don't look in subdirectories
5
- /[A-Z]\w+\.(vue)$/, // only look for Vue files
6
- // EXPERIMENTAL: /[A-Z]\w+\.(vue|js)$/, // only look for Vue or JS files
7
- );
8
-
9
- requireComponent.keys().forEach((fileName) => {
10
- const componentConfig = requireComponent(fileName);
11
- const componentName = fileName
12
- .split('/')
13
- .pop()
14
- .replace(/\.\w+$/, ''); // remove file extension and set file name as component name
15
-
16
- components[componentName] = componentConfig.default || componentConfig;
17
- });
18
-
19
- export default components;
@@ -1,11 +0,0 @@
1
- export interface ThemeProviderTheme extends Vue {
2
- isDarkMode: boolean;
3
- isDark: boolean;
4
- setDarkMode(value: boolean): void;
5
- }
6
-
7
- declare module 'vue/types/vue' {
8
- interface Vue {
9
- $theme: ThemeProviderTheme;
10
- }
11
- }
@@ -1,20 +0,0 @@
1
- export class Utils {
2
- private timeout: ReturnType<typeof setTimeout> | null = null;
3
-
4
- debounce(func: Function, delay: number) {
5
- return (...args: any[]) => {
6
- if (this.timeout !== null) {
7
- clearTimeout(this.timeout);
8
- }
9
- this.timeout = setTimeout(() => {
10
- func(...args);
11
- }, delay);
12
- };
13
- }
14
-
15
- generateRandomId(): string {
16
- return Date.now().toString(36) + Math.random().toString(36).slice(2, 9);
17
- }
18
- }
19
-
20
- export const utils = new Utils();
package/convert-js.js DELETED
@@ -1,112 +0,0 @@
1
- const fs = require('fs');
2
- const path = require('path');
3
- const { execSync } = require('child_process');
4
- const glob = require('glob');
5
-
6
- // Eğer 'components-js' klasörü varsa sil
7
- if (fs.existsSync('components-js')) {
8
- fs.rmSync('components-js', { recursive: true, force: true });
9
- }
10
-
11
- // Yeni bir 'components-js' klasörü oluştur
12
- fs.mkdirSync('components-js');
13
-
14
- // components'in içerisindeki her şeyi output'a kopyala
15
- const copyRecursiveSync = function (src, dest) {
16
- const exists = fs.existsSync(src);
17
- const stats = exists && fs.statSync(src);
18
- const isDirectory = exists && stats.isDirectory();
19
-
20
- if (exists && isDirectory) {
21
- if (!fs.existsSync(dest)) { fs.mkdirSync(dest); }
22
- fs.readdirSync(src).forEach((childItemName) => {
23
- copyRecursiveSync(path.join(src, childItemName), path.join(dest, childItemName));
24
- });
25
- } else {
26
- fs.copyFileSync(src, dest);
27
- }
28
- };
29
-
30
- copyRecursiveSync('./components-ts', './components-js');
31
-
32
- // output klasöründeki .vue dosyalarını bul
33
- const vueFiles = glob.sync('./components-js/**/*.{vue,ts}');
34
-
35
- vueFiles.forEach((file) => {
36
- const content = fs.readFileSync(file, 'utf-8');
37
- const scriptMatch = content.match(/<script lang="ts">(.*?)<\/script>/s);
38
- let tsFilePath;
39
-
40
- if (content) {
41
- if (scriptMatch) {
42
- let tsCode = scriptMatch[1];
43
-
44
- tsCode = tsCode.replace(/import .*?from '.*?.vue';/g, (match) => `// ${match}`);
45
-
46
- tsFilePath = file.replace('.vue', '.temp.ts');
47
- fs.writeFileSync(tsFilePath, tsCode, 'utf-8');
48
- }
49
-
50
- let hasError = false;
51
- const tscPath = path.resolve(__dirname, '../../../node_modules/.bin/tsc');
52
-
53
- try {
54
- execSync(`${tscPath} ${scriptMatch ? tsFilePath : file} --allowJs false --module esnext --target esnext --declaration true`, {
55
- encoding: 'utf8',
56
- });
57
- } catch (e) {
58
- // console.error("### Derleme hatası:", tsFilePath, e);
59
- // console.error('DERLEME HATASI: ', e.stdout.toString());
60
- hasError = true;
61
- }
62
-
63
- if (tsFilePath && hasError) {
64
- // temp.d.ts dosyasını yeniden oluştur ve adını
65
- const tsOutputFilePath = tsFilePath.replace('.temp.ts', '.temp.d.ts');
66
- const desiredOutputFilePath = tsFilePath.replace('.temp.ts', '.d.ts');
67
-
68
- if (fs.existsSync(tsOutputFilePath)) {
69
- fs.renameSync(tsOutputFilePath, desiredOutputFilePath);
70
- }
71
- const jsCode = fs.readFileSync(tsFilePath.replace('.ts', '.js'), 'utf-8');
72
- const finalJsCode = jsCode.replace(/\/\/ import/g, 'import');
73
- const newContent = content.replace(/<script lang="ts">(.*?)<\/script>/s, `<script>${finalJsCode}</script>`);
74
-
75
- fs.writeFileSync(file, newContent, 'utf-8');
76
- }
77
-
78
- if (scriptMatch) {
79
- // Dosyaları sil
80
- if (fs.existsSync(tsFilePath)) { fs.unlinkSync(tsFilePath); }
81
- if (fs.existsSync(tsFilePath.replace('.ts', '.js'))) { fs.unlinkSync(tsFilePath.replace('.ts', '.js')); }
82
- }
83
- }
84
- });
85
-
86
- // vueFiles.forEach döngüsünden sonra
87
- const declarationFiles = glob.sync('./components-js/**/*.d.ts');
88
- // Bu dosyaları import eden bir index.d.ts oluştur
89
- const imports = declarationFiles
90
- .map((file) => {
91
- // Dosya yolundan modül adını elde etmek için gereken işlemler
92
- let modulePath = path.relative('.', file);
93
-
94
- modulePath = modulePath.replace('.d.ts', '');
95
- modulePath = modulePath.replace(/\\/g, '/'); // Windows için ters eğik çizgileri düzelt
96
-
97
- return `export * from './${modulePath}';`;
98
- })
99
- .join('\n');
100
-
101
- fs.writeFileSync('./index.d.ts', imports);
102
-
103
- const tsFiles = glob.sync('./components-js/**/*.ts');
104
-
105
- tsFiles.forEach((file) => {
106
- if (!file.endsWith('.d.ts') && fs.existsSync(file)) {
107
- fs.unlinkSync(file);
108
- console.log(`### Ts dosyası silindi: ${file}`);
109
- }
110
- });
111
-
112
- console.log('### index.d.ts dosyası oluşturuldu.');
package/convert-sass.js DELETED
@@ -1,26 +0,0 @@
1
- const fs = require('fs');
2
- const path = require('path');
3
- const sass = require('sass');
4
- // SCSS dosyasını oku
5
- const importScssPath = path.resolve(__dirname, 'scss/main.scss');
6
- const outputCssPath = path.resolve(__dirname, 'output/main.css');
7
-
8
- // Yeni API kullanarak SCSS dosyasını compile edin
9
- function compileSass() {
10
- try {
11
- const result = sass.compile(importScssPath, { style: 'compressed' });
12
-
13
- // Eğer output klasörü yoksa oluştur
14
- if (!fs.existsSync(path.dirname(outputCssPath))) {
15
- fs.mkdirSync(path.dirname(outputCssPath), { recursive: true });
16
- }
17
-
18
- // CSS dosyasını kaydedin
19
- fs.writeFileSync(outputCssPath, result.css);
20
- console.log('### @timus-networks/theme SCSS compiled successfully.');
21
- } catch (err) {
22
- console.error('### @timus-networks/theme SCSS compile error:', err);
23
- }
24
- }
25
-
26
- compileSass();