@timus-networks/theme 1.0.183 → 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 (226) 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.d.ts +0 -10
  50. package/components-js/interfaces.js +0 -1
  51. package/components-js/utils.d.ts +0 -6
  52. package/components-js/utils.js +0 -17
  53. package/components-ts/ThemeAlert.vue +0 -78
  54. package/components-ts/ThemeAvatar.vue +0 -55
  55. package/components-ts/ThemeBadge.vue +0 -106
  56. package/components-ts/ThemeBreadcrumb.vue +0 -44
  57. package/components-ts/ThemeButtons.vue +0 -148
  58. package/components-ts/ThemeCascader.vue +0 -390
  59. package/components-ts/ThemeCheckbox.vue +0 -202
  60. package/components-ts/ThemeCollapse.vue +0 -73
  61. package/components-ts/ThemeDialog.vue +0 -49
  62. package/components-ts/ThemeForm.vue +0 -137
  63. package/components-ts/ThemeInformation.vue +0 -127
  64. package/components-ts/ThemeInputNumbers.vue +0 -74
  65. package/components-ts/ThemeInputs.vue +0 -316
  66. package/components-ts/ThemeLink.vue +0 -110
  67. package/components-ts/ThemeLogo.vue +0 -57
  68. package/components-ts/ThemeMessage.vue +0 -55
  69. package/components-ts/ThemeMessageBox.vue +0 -47
  70. package/components-ts/ThemePopover.vue +0 -557
  71. package/components-ts/ThemeRadio.vue +0 -169
  72. package/components-ts/ThemeSelect.vue +0 -237
  73. package/components-ts/ThemeSidebar.vue +0 -277
  74. package/components-ts/ThemeTable.vue +0 -305
  75. package/components-ts/ThemeTag.vue +0 -145
  76. package/components-ts/ThemeToggle.vue +0 -123
  77. package/components-ts/ThemeTooltip.vue +0 -191
  78. package/components-ts/ThemeTypo.vue +0 -65
  79. package/components-ts/ThemeUpload.vue +0 -92
  80. package/components-ts/TimusSamples.vue +0 -54
  81. package/components-ts/exporter.js +0 -19
  82. package/components-ts/interfaces.ts +0 -11
  83. package/components-ts/utils.ts +0 -20
  84. package/convert-js.js +0 -112
  85. package/convert-sass.js +0 -26
  86. package/fonts/poppins-font-face/files/Poppins-Black.eot +0 -0
  87. package/fonts/poppins-font-face/files/Poppins-Black.svg +0 -3099
  88. package/fonts/poppins-font-face/files/Poppins-Black.ttf +0 -0
  89. package/fonts/poppins-font-face/files/Poppins-Black.woff +0 -0
  90. package/fonts/poppins-font-face/files/Poppins-Black.woff2 +0 -0
  91. package/fonts/poppins-font-face/files/Poppins-BlackItalic.ttf +0 -0
  92. package/fonts/poppins-font-face/files/Poppins-Bold.eot +0 -0
  93. package/fonts/poppins-font-face/files/Poppins-Bold.svg +0 -3131
  94. package/fonts/poppins-font-face/files/Poppins-Bold.ttf +0 -0
  95. package/fonts/poppins-font-face/files/Poppins-Bold.woff +0 -0
  96. package/fonts/poppins-font-face/files/Poppins-Bold.woff2 +0 -0
  97. package/fonts/poppins-font-face/files/Poppins-BoldItalic.ttf +0 -0
  98. package/fonts/poppins-font-face/files/Poppins-ExtraBold.eot +0 -0
  99. package/fonts/poppins-font-face/files/Poppins-ExtraBold.svg +0 -3120
  100. package/fonts/poppins-font-face/files/Poppins-ExtraBold.ttf +0 -0
  101. package/fonts/poppins-font-face/files/Poppins-ExtraBold.woff +0 -0
  102. package/fonts/poppins-font-face/files/Poppins-ExtraBold.woff2 +0 -0
  103. package/fonts/poppins-font-face/files/Poppins-ExtraBoldItalic.ttf +0 -0
  104. package/fonts/poppins-font-face/files/Poppins-ExtraLight.eot +0 -0
  105. package/fonts/poppins-font-face/files/Poppins-ExtraLight.svg +0 -3245
  106. package/fonts/poppins-font-face/files/Poppins-ExtraLight.ttf +0 -0
  107. package/fonts/poppins-font-face/files/Poppins-ExtraLight.woff +0 -0
  108. package/fonts/poppins-font-face/files/Poppins-ExtraLight.woff2 +0 -0
  109. package/fonts/poppins-font-face/files/Poppins-ExtraLightItalic.ttf +0 -0
  110. package/fonts/poppins-font-face/files/Poppins-Italic.eot +0 -0
  111. package/fonts/poppins-font-face/files/Poppins-Italic.svg +0 -3414
  112. package/fonts/poppins-font-face/files/Poppins-Italic.ttf +0 -0
  113. package/fonts/poppins-font-face/files/Poppins-Italic.woff +0 -0
  114. package/fonts/poppins-font-face/files/Poppins-Italic.woff2 +0 -0
  115. package/fonts/poppins-font-face/files/Poppins-Light.eot +0 -0
  116. package/fonts/poppins-font-face/files/Poppins-Light.svg +0 -3244
  117. package/fonts/poppins-font-face/files/Poppins-Light.ttf +0 -0
  118. package/fonts/poppins-font-face/files/Poppins-Light.woff +0 -0
  119. package/fonts/poppins-font-face/files/Poppins-Light.woff2 +0 -0
  120. package/fonts/poppins-font-face/files/Poppins-LightItalic.ttf +0 -0
  121. package/fonts/poppins-font-face/files/Poppins-Medium.eot +0 -0
  122. package/fonts/poppins-font-face/files/Poppins-Medium.svg +0 -3190
  123. package/fonts/poppins-font-face/files/Poppins-Medium.ttf +0 -0
  124. package/fonts/poppins-font-face/files/Poppins-Medium.woff +0 -0
  125. package/fonts/poppins-font-face/files/Poppins-Medium.woff2 +0 -0
  126. package/fonts/poppins-font-face/files/Poppins-MediumItalic.ttf +0 -0
  127. package/fonts/poppins-font-face/files/Poppins-Regular.eot +0 -0
  128. package/fonts/poppins-font-face/files/Poppins-Regular.svg +0 -3213
  129. package/fonts/poppins-font-face/files/Poppins-Regular.ttf +0 -0
  130. package/fonts/poppins-font-face/files/Poppins-Regular.woff +0 -0
  131. package/fonts/poppins-font-face/files/Poppins-Regular.woff2 +0 -0
  132. package/fonts/poppins-font-face/files/Poppins-SemiBold.eot +0 -0
  133. package/fonts/poppins-font-face/files/Poppins-SemiBold.svg +0 -3174
  134. package/fonts/poppins-font-face/files/Poppins-SemiBold.ttf +0 -0
  135. package/fonts/poppins-font-face/files/Poppins-SemiBold.woff +0 -0
  136. package/fonts/poppins-font-face/files/Poppins-SemiBold.woff2 +0 -0
  137. package/fonts/poppins-font-face/files/Poppins-SemiBoldItalic.ttf +0 -0
  138. package/fonts/poppins-font-face/files/Poppins-Thin.eot +0 -0
  139. package/fonts/poppins-font-face/files/Poppins-Thin.svg +0 -3266
  140. package/fonts/poppins-font-face/files/Poppins-Thin.ttf +0 -0
  141. package/fonts/poppins-font-face/files/Poppins-Thin.woff +0 -0
  142. package/fonts/poppins-font-face/files/Poppins-Thin.woff2 +0 -0
  143. package/fonts/poppins-font-face/files/Poppins-ThinItalic.ttf +0 -0
  144. package/fonts/poppins-font-face/stylesheet.css +0 -81
  145. package/images/applications/apple.png +0 -0
  146. package/images/applications/apple_icloud.png +0 -0
  147. package/images/applications/apple_itunes.png +0 -0
  148. package/images/applications/apple_store.png +0 -0
  149. package/images/applications/bloomberg.png +0 -0
  150. package/images/applications/chrome.png +0 -0
  151. package/images/applications/csgo.png +0 -0
  152. package/images/applications/dns.png +0 -0
  153. package/images/applications/dropbox.png +0 -0
  154. package/images/applications/evil.png +0 -0
  155. package/images/applications/facebook-messenger.png +0 -0
  156. package/images/applications/facebook.png +0 -0
  157. package/images/applications/ftp.png +0 -0
  158. package/images/applications/gmail.png +0 -0
  159. package/images/applications/google.png +0 -0
  160. package/images/applications/google_maps.png +0 -0
  161. package/images/applications/instagram.png +0 -0
  162. package/images/applications/linkedin.svg +0 -5
  163. package/images/applications/messenger.png +0 -0
  164. package/images/applications/mysql.png +0 -0
  165. package/images/applications/netflix.png +0 -0
  166. package/images/applications/nintendo.png +0 -0
  167. package/images/applications/sap.png +0 -0
  168. package/images/applications/skype.png +0 -0
  169. package/images/applications/slack.png +0 -0
  170. package/images/applications/smtp.png +0 -0
  171. package/images/applications/snapchat.png +0 -0
  172. package/images/applications/spotify.png +0 -0
  173. package/images/applications/ssh.png +0 -0
  174. package/images/applications/teamspeak.png +0 -0
  175. package/images/applications/tiktok.png +0 -0
  176. package/images/applications/twitch.png +0 -0
  177. package/images/applications/twitter.png +0 -0
  178. package/images/applications/ubuntuone.png +0 -0
  179. package/images/applications/utorrent.png +0 -0
  180. package/images/applications/website.png +0 -0
  181. package/images/applications/whatsapp.png +0 -0
  182. package/images/applications/windows-update.png +0 -0
  183. package/images/applications/youtube.png +0 -0
  184. package/images/backgrounds/login-icon.png +0 -0
  185. package/images/backgrounds/login.jpg +0 -0
  186. package/images/backgrounds/login.png +0 -0
  187. package/images/cards/amex.svg +0 -20
  188. package/images/cards/default.svg +0 -18
  189. package/images/cards/dina.svg +0 -12
  190. package/images/cards/diners.svg +0 -30
  191. package/images/cards/discover.svg +0 -28
  192. package/images/cards/eftpos.svg +0 -21
  193. package/images/cards/jcb.svg +0 -41
  194. package/images/cards/mastercard.svg +0 -5
  195. package/images/cards/unionpay.svg +0 -6
  196. package/images/cards/visa.svg +0 -3
  197. package/images/devices/os-android.png +0 -0
  198. package/images/devices/os-android.svg +0 -6
  199. package/images/devices/os-apple.svg +0 -4
  200. package/images/devices/os-default.svg +0 -5
  201. package/images/devices/os-ios.png +0 -0
  202. package/images/devices/os-ios.svg +0 -4
  203. package/images/devices/os-linux-debian.png +0 -0
  204. package/images/devices/os-linux-ubuntu.png +0 -0
  205. package/images/devices/os-linux.svg +0 -3
  206. package/images/devices/os-osx.png +0 -0
  207. package/images/devices/os-unknown.png +0 -0
  208. package/images/devices/os-windows.png +0 -0
  209. package/images/devices/os-windows.svg +0 -3
  210. package/images/devices/type-laptop-ubuntu.png +0 -0
  211. package/images/devices/type-laptop.png +0 -0
  212. package/images/devices/type-printer.png +0 -0
  213. package/images/devices/type-switch-cisco.png +0 -0
  214. package/images/logos/timus-favicon.png +0 -0
  215. package/images/logos/timus-icon.svg +0 -17
  216. package/images/logos/timus-logo-manager.svg +0 -29
  217. package/images/logos/timus-logo-partner.svg +0 -35
  218. package/images/logos/timus-logo.svg +0 -22
  219. package/index.d.ts +0 -6
  220. package/loader.js +0 -50
  221. package/module.js +0 -77
  222. package/output/main.css +0 -1
  223. package/plugins/html-to-string.js +0 -36
  224. package/plugins/js-components-installer.js +0 -22
  225. package/plugins/theme-provider.js +0 -72
  226. 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,10 +0,0 @@
1
- export interface ThemeProviderTheme extends Vue {
2
- isDarkMode: boolean;
3
- isDark: boolean;
4
- setDarkMode(value: boolean): void;
5
- }
6
- declare module 'vue/types/vue' {
7
- interface Vue {
8
- $theme: ThemeProviderTheme;
9
- }
10
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- export declare class Utils {
2
- private timeout;
3
- debounce(func: Function, delay: number): (...args: any[]) => void;
4
- generateRandomId(): string;
5
- }
6
- export declare const utils: Utils;
@@ -1,17 +0,0 @@
1
- export class Utils {
2
- timeout = null;
3
- debounce(func, delay) {
4
- return (...args) => {
5
- if (this.timeout !== null) {
6
- clearTimeout(this.timeout);
7
- }
8
- this.timeout = setTimeout(() => {
9
- func(...args);
10
- }, delay);
11
- };
12
- }
13
- generateRandomId() {
14
- return Date.now().toString(36) + Math.random().toString(36).slice(2, 9);
15
- }
16
- }
17
- export const utils = new Utils();
@@ -1,78 +0,0 @@
1
- <template>
2
- <div class="pt-8 pb-16 flex gap-12 flex-col">
3
- <section>
4
- <h1>Alert</h1>
5
- <p class="p-lg-c my-6">Uyarı bileşenleri, sayfada otomatik olarak kaybolmayan non-overlay mesajlarını görüntülemek için kullanılır.</p>
6
- <div class="grid grid-flow-col auto-cols-max gap-4">
7
- <el-alert v-for="(item, key) in colors" :key="key" :title="`${item}`" :type="item" class="isax-activity" />
8
- </div>
9
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
10
- <p class="text-xs">
11
- <code>&lt;el-alert title="Success alert" type="success" class="isax-activity"&gt;&lt;/el-alert&gt;</code>
12
- </p>
13
- </div>
14
- </section>
15
- </div>
16
- </template>
17
- <script>
18
- import { defineComponent } from 'vue';
19
-
20
- export default defineComponent({
21
- name: 'ThemeTable',
22
- data() {
23
- return {
24
- colors: ['primary', 'secondary', 'gray', 'warning', 'danger', 'info', 'success'],
25
- };
26
- },
27
- computed: {
28
- gridSize() {
29
- const grids = {
30
- 5: 'grid-cols-5',
31
- 6: 'grid-cols-6',
32
- 7: 'grid-cols-7',
33
- 8: 'grid-cols-8',
34
- };
35
-
36
- return grids;
37
- },
38
- },
39
- methods: {
40
- toggleSelection(rows) {
41
- if (rows) {
42
- rows.forEach((row) => {
43
- this.$refs.multipleTable.toggleRowSelection(row);
44
- });
45
- } else {
46
- this.$refs.multipleTable.clearSelection();
47
- }
48
- },
49
- handleSelectionChange(val) {
50
- this.multipleSelection = val;
51
- },
52
- resetDateFilter() {
53
- this.$refs.filterTable.clearFilter('date');
54
- },
55
- clearFilter() {
56
- this.$refs.filterTable.clearFilter();
57
- },
58
- formatter(row, column) {
59
- return row.address;
60
- },
61
- filterTag(value, row) {
62
- return row.tag === value;
63
- },
64
- filterHandler(value, row, column) {
65
- console.log(row, column, value);
66
- const { property } = column;
67
-
68
- return row[property] === value;
69
- },
70
- handleSizeChange(val) {
71
- console.log(`${val} items per page`);
72
- },
73
- handleCurrentChange(val) {
74
- console.log(`current page: ${val}`);
75
- },
76
- },
77
- });
78
- </script>
@@ -1,55 +0,0 @@
1
- <template>
2
- <div class="pt-8 pb-16 flex gap-12 flex-col">
3
- <section>
4
- <h1>Sizes</h1>
5
- <p class="p-md-c my-6">
6
- Avatarlar, resimler, ikonlar veya alfanumerik karakterleri destekler. Avatar'ın şeklini ve boyutunu ayarlamak için `shape` ve `size`
7
- özelliklerini kullanabilirsiniz. Ayrıca avatarın resim kaynağını belirlemek için `src` özelliğini kullanabilirsiniz. Şekil tipleri
8
- <b>'circle | square'</b> şeklindedir. Boyutlar ise <b>'large', 'medium', 'small'</b> şeklindedir. Veya boyutu manuel olarak `size` özelliğini
9
- kullanarak belirleyebilirsiniz, örneğin <b>size='50'</b>.
10
- </p>
11
- <div class="grid grid-flow-col auto-cols-max gap-4 items-center">
12
- <el-avatar :size="50">SK</el-avatar>
13
- <el-avatar v-for="size in sizeList" :key="size + 'string'" :size="size">SK</el-avatar>
14
- <el-divider direction="vertical" content-position="center" />
15
- <el-avatar shape="square" :size="50" :src="url" />
16
- <el-avatar v-for="size in sizeList" :key="size" shape="square" :size="size" :src="url" />
17
- </div>
18
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
19
- <p class="text-xs">
20
- <code>&lt;el-avatar :size="50"&gt;SK&lt;/el-avatar&gt;</code>
21
- </p>
22
- </div>
23
- </section>
24
-
25
- <section>
26
- <h1>Types</h1>
27
- <p class="p-md-c my-6">You can use any 'string' expression within the tag, in addition to a type that accepts 'src' or 'icon' as a property.</p>
28
- <div class="grid grid-flow-col auto-cols-max gap-4 items-center">
29
- <el-avatar icon="isax-add-circle" />
30
- <el-avatar icon="isax-add-circle" size="large" />
31
- <el-avatar :src="url" />
32
- <el-avatar>SK</el-avatar>
33
- </div>
34
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
35
- <p class="text-xs">
36
- <code>&lt;el-avatar icon="isax-add-circle" size="xlarge"&gt;&lt;/el-avatar&gt;</code>
37
- </p>
38
- </div>
39
- </section>
40
- </div>
41
- </template>
42
-
43
- <script>
44
- import { defineComponent } from 'vue';
45
-
46
- export default defineComponent({
47
- name: 'TimusCascader',
48
- data() {
49
- return {
50
- url: 'https://api.dicebear.com/7.x/adventurer-neutral/svg?seed=Princess',
51
- sizeList: ['large', 'medium', 'small'],
52
- };
53
- },
54
- });
55
- </script>
@@ -1,106 +0,0 @@
1
- <template>
2
- <div class="pt-8 pb-16 flex gap-12 flex-col">
3
- <section>
4
- <h1>Temel Kullanım</h1>
5
- <p class="p-md-c my-6">
6
- Butonlar ve simgeler üzerinde sayı veya durum işareti. Yeni mesajların miktarını görüntüler. Miktar, `Number` veya `String` kabul eden `value`
7
- ile tanımlanır.
8
- </p>
9
- <div class="grid grid-flow-col auto-cols-max gap-4">
10
- <el-badge :value="12"> <el-button size="small">Yorumlar</el-button> </el-badge>
11
- <el-badge v-for="(item, key) in colors" :key="key" :value="randomNumber()" :type="item">
12
- <el-button size="small" :class="randomButtonType()" :type="randomColor()">{{ item }}</el-button>
13
- </el-badge>
14
- <el-dropdown trigger="click">
15
- <span class="el-dropdown-link"> Beni Tıkla<i class="el-icon-caret-bottom el-icon--right" /> </span>
16
- <template #dropdown>
17
- <el-dropdown-menu>
18
- <el-dropdown-item class="clearfix">
19
- Yorumlar
20
- <el-badge class="mark" :value="12" />
21
- </el-dropdown-item>
22
- <el-dropdown-item class="clearfix">
23
- Yanıtlar
24
- <el-badge class="mark" :value="3" />
25
- </el-dropdown-item>
26
- </el-dropdown-menu>
27
- </template>
28
- </el-dropdown>
29
- </div>
30
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
31
- <p class="text-xs">
32
- <code>&lt;el-badge :value="12"&gt; &lt;el-button size="small"&gt;Comments&lt;/el-button&gt; &lt;/el-badge&gt;</code>
33
- </p>
34
- </div>
35
- </section>
36
-
37
- <section>
38
- <h1>Point</h1>
39
- <p class="p-md-c my-6">Use a red dot to mark content that needs to be noticed.</p>
40
- <div class="grid grid-flow-col auto-cols-max gap-4">
41
- <el-badge is-dot class="item">query</el-badge>
42
- <el-badge is-dot class="item">
43
- <el-button class="share-button" icon="el-icon-share" />
44
- </el-badge>
45
- <el-badge v-for="size in sizeList" :key="size + 'avatar'" is-dot class="item"><el-avatar :size="size">SK</el-avatar></el-badge>
46
- <el-badge v-for="size in sizeList" :key="size + 'shape'" is-dot class="item"><el-avatar shape="square" :size="size">SK</el-avatar></el-badge>
47
- </div>
48
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
49
- <p class="text-xs">
50
- <code>&lt;el-badge :value="12"&gt; &lt;el-button size="small"&gt;Comments&lt;/el-button&gt; &lt;/el-badge&gt;</code>
51
- </p>
52
- </div>
53
- </section>
54
-
55
- <section>
56
- <h1>Max Değer</h1>
57
- <p class="p-md-c my-6">
58
- Maksimum değer, bir Sayı (Number) olan max özelliği ile belirlenir. Unutmayın ki, bu özellik yalnızca value özelliği de bir Sayı (Number)
59
- olduğunda çalışır.
60
- </p>
61
- <div class="grid grid-flow-col auto-cols-max gap-4">
62
- <el-badge :value="200" :max="99" class="item">
63
- <el-button size="small">Yorumlar</el-button>
64
- </el-badge>
65
- <el-badge :value="100" :max="10" class="item">
66
- <el-button size="small">Yanıtlar</el-button>
67
- </el-badge>
68
- </div>
69
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
70
- <p class="text-xs">
71
- <code>&lt;el-badge :value="12"&gt; &lt;el-button size="small"&gt;Yorumlar&lt;/el-button&gt; &lt;/el-badge&gt;</code>
72
- </p>
73
- </div>
74
- </section>
75
- </div>
76
- </template>
77
-
78
- <script>
79
- import { defineComponent } from 'vue';
80
-
81
- export default defineComponent({
82
- name: 'TimusCascader',
83
- data() {
84
- return {
85
- colors: ['primary', 'info', 'success', 'warning', 'danger'],
86
- sizeList: ['large', 'medium', 'small'],
87
- };
88
- },
89
- methods: {
90
- handleChange(value) {
91
- console.log(value);
92
- },
93
- randomNumber() {
94
- return Math.round(Math.random() * 1000);
95
- },
96
- randomColor() {
97
- return this.colors[Math.round(Math.random() * 7)];
98
- },
99
- randomButtonType() {
100
- const type = ['outline'];
101
-
102
- return type[Math.round(Math.random() * 2)];
103
- },
104
- },
105
- });
106
- </script>
@@ -1,44 +0,0 @@
1
- <template>
2
- <div class="pt-8 pb-16 flex gap-12 flex-col">
3
- <section>
4
- <h1>Temel Kullanım</h1>
5
- <p class="p-md-c my-6">
6
- Butonlar ve simgeler üzerinde sayı veya durum işareti. Yeni mesajların miktarını görüntüler. Miktar, `Number` veya `String` kabul eden `value`
7
- ile tanımlanır.
8
- </p>
9
- <el-breadcrumb separator-class="isax-arrow-right-1">
10
- <el-breadcrumb-item :to="{ path: '/' }">homepage</el-breadcrumb-item>
11
- <el-breadcrumb-item :to="{ path: '/' }">promotion management</el-breadcrumb-item>
12
- <el-breadcrumb-item :to="{ path: '/' }">promotion list</el-breadcrumb-item>
13
- <el-breadcrumb-item>promotion detail</el-breadcrumb-item>
14
- </el-breadcrumb>
15
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
16
- <p class="text-xs">
17
- <code>
18
- &lt;el-breadcrumb separator-class="el-icon-arrow-right""&gt; &lt;el-breadcrumb-item :to="{ path: '/'
19
- }"&gt;Comments&lt;/el-breadcrumb-item&gt; &lt;/el-breadcrumb&gt;
20
- </code>
21
- </p>
22
- </div>
23
- </section>
24
- </div>
25
- </template>
26
-
27
- <script>
28
- import { defineComponent } from 'vue';
29
-
30
- export default defineComponent({
31
- name: 'TimusBreadcrumb',
32
- data() {
33
- return {
34
- colors: ['primary', 'info', 'success', 'warning', 'danger'],
35
- sizeList: ['large', 'medium', 'small'],
36
- };
37
- },
38
- methods: {
39
- handleChange(value) {
40
- console.log(value);
41
- },
42
- },
43
- });
44
- </script>
@@ -1,148 +0,0 @@
1
- <template>
2
- <div class="pt-8 pb-16 flex gap-12 flex-col">
3
- <section>
4
- <h1>Fill</h1>
5
- <p class="p-lg my-6">
6
- "Fill" stili butonlar, içeriği tamamen kaplayan renge sahip butonlardır. Bu butonlar, kullanıcının dikkatini çekmek ve önemli eylemleri
7
- vurgulamak için idealdir.
8
- </p>
9
- <div class="grid grid-flow-col auto-cols-max gap-4">
10
- <el-button v-for="(item, index) in colors" :key="index" :type="item">{{ item }}</el-button>
11
- </div>
12
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
13
- <p class="text-xs">
14
- Örnek kullanım:
15
- <code>&lt;el-button :type="'primary'"&gt;Primary&lt;/el-button&gt;</code>
16
- </p>
17
- </div>
18
- </section>
19
-
20
- <section>
21
- <h1>Outline</h1>
22
- <p class="p-lg my-6">Çevresi çizgili ve içi transparan olan 'outline' butonlarımız, daha hafif bir tasarım dili sunar.</p>
23
- <div class="grid grid-flow-col auto-cols-max gap-4">
24
- <el-button class="outline">Default Outline</el-button>
25
- <el-button v-for="(item, index) in colors" :key="index" :type="item" class="outline" plain>{{ item }}</el-button>
26
- </div>
27
- <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
28
- <p class="text-xs">
29
- Outline görünümü için, buton elementinize <code>class="outline"</code> ekleyin. Örnek:
30
- <code>&lt;el-button class="outline"&gt;Button&lt;/el-button&gt;</code>
31
- </p>
32
- </div>
33
- </section>
34
-
35
- <section>
36
- <h1>Ghost</h1>
37
- <p class="p-lg my-6">Hemen hemen şeffaf 'ghost' butonlarımız, minimalist tasarımlar için uygundur ve arka planla uyum sağlar.</p>
38
- <div class="grid grid-flow-col auto-cols-max gap-4">
39
- <el-button v-for="(item, index) in colors" :key="index" :type="item" class="ghost">{{ item }}</el-button>
40
- </div>
41
- <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
42
- <p class="text-xs">
43
- Ghost görünümü için, buton elementinize <code>class="ghost"</code> ekleyin. Örnek:
44
- <code>&lt;el-button class="ghost"&gt;Button&lt;/el-button&gt;</code>
45
- </p>
46
- </div>
47
- </section>
48
-
49
- <section>
50
- <h1>Size</h1>
51
- <p class="p-lg my-6">Farklı boyutlardaki butonlarımız, çeşitli arayüz ihtiyaçlarına yanıt vermek için tasarlanmıştır.</p>
52
- <div class="grid grid-flow-col auto-cols-max items-center gap-4">
53
- <el-button>Default</el-button>
54
- <el-button v-for="(item, index) in sizes" :key="index" :size="item" type="primary">{{ item }}</el-button>
55
- </div>
56
- <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
57
- <p class="text-xs">
58
- Örnekler:
59
- <code>&lt;el-button :size="'large'"&gt;Button&lt;/el-button&gt;</code> ya da
60
- <code>&lt;el-button :size="'small'"&gt;Button&lt;/el-button&gt;</code>
61
- </p>
62
- </div>
63
- </section>
64
-
65
- <section>
66
- <h1>Disabled</h1>
67
- <p class="p-lg my-6">Etkileşime kapalı 'disabled' butonlarımız, kullanılamaz durumları göstermek için kullanılır.</p>
68
- <div class="grid grid-flow-col auto-cols-max gap-4">
69
- <el-button v-for="(item, index) in colors" :key="index" :type="item" disabled>{{ item }}</el-button>
70
- </div>
71
- <div class="my-4 p-4 border-l-4 border-red-600 bg-red-100">
72
- <p class="text-xs">
73
- Butonu devre dışı bırakmak için, <code>disabled</code> özelliğini ekleyin. Örnek:
74
- <code>&lt;el-button disabled&gt;Button&lt;/el-button&gt;</code>
75
- </p>
76
- </div>
77
- </section>
78
-
79
- <section>
80
- <h1>Icons</h1>
81
- <p class="p-lg my-6">
82
- İkonlarla zenginleştirilmiş butonlarımız, görsel bir ipucu sunar ve kullanıcı deneyimini artırır. Tüm ikonlarımızın listesini görmek için
83
- <nuxt-link to="/icons" class="text-blue-600 hover:underline">buraya tıklayın</nuxt-link>.
84
- </p>
85
- <div class="flex gap-4 items-center">
86
- <el-button type="primary" class="isax-trash" size="large" />
87
- <el-button type="primary" class="isax-trash" size="medium" />
88
- <el-button type="primary" class="isax-trash" size="small" />
89
- <el-button type="primary" class="isax-trash" size="mini" />
90
- <el-button type="primary" class="isax-chart" />
91
- <el-button type="primary" class="isax-clipboard-text icon-right">icon-right</el-button>
92
- <el-button v-for="(item, index) in icons" :key="index" type="primary" :class="item">{{ item }}</el-button>
93
- </div>
94
- <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
95
- <p class="text-xs">
96
- Örnekler:
97
- <code>&lt;el-button type="primary" class="isax-trash"&gt;&lt;/el-button&gt;</code>. Sağda ikon için <code>class="icon-right"</code> ekleyin.
98
- </p>
99
- </div>
100
- </section>
101
-
102
- <section>
103
- <h1>Groups</h1>
104
- <p class="p-lg my-6">Buton gruplarımız, ilgili işlemleri bir arada toplayarak kullanıcı arayüzünü düzenler.</p>
105
- <div class="grid grid-flow-col auto-cols-max gap-4">
106
- <el-button-group>
107
- <el-button type="primary" class="isax-arrow-left">Previous Page</el-button>
108
- <el-button type="primary" class="isax-arrow-right-1 icon-right">Next Page</el-button>
109
- </el-button-group>
110
- <el-button-group>
111
- <el-button type="primary" icon="isax-textalign-justifyleft" />
112
- <el-button type="primary" icon="isax-textalign-center" />
113
- <el-button type="primary" icon="isax-textalign-justifyright" />
114
- </el-button-group>
115
- </div>
116
- <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
117
- <p class="text-xs">Buton grupları için <code>&lt;el-button-group&gt;</code> kullanın.</p>
118
- </div>
119
- </section>
120
- </div>
121
- </template>
122
- <script>
123
- import { defineComponent } from 'vue';
124
-
125
- export default defineComponent({
126
- name: 'TimusButtonSample',
127
- data() {
128
- return {
129
- colors: ['primary', 'secondary', 'gray', 'info', 'success', 'warning', 'danger'],
130
- status: ['outline', 'ghost', 'rounder', 'disabled'],
131
- sizes: ['large', 'medium', 'small', 'mini'],
132
- icons: ['isax-bag', 'isax-calculator'],
133
- };
134
- },
135
- computed: {
136
- gridSize() {
137
- const grids = {
138
- 5: 'grid-cols-5',
139
- 6: 'grid-cols-6',
140
- 7: 'grid-cols-7',
141
- 8: 'grid-cols-8',
142
- };
143
-
144
- return grids;
145
- },
146
- },
147
- });
148
- </script>