@timus-networks/theme 2.4.40 → 2.4.42

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@timus-networks/theme",
3
3
  "configKey": "themeOptions",
4
- "version": "2.4.40",
4
+ "version": "2.4.42",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -11,7 +11,7 @@ const __filename = __cjs_url__.fileURLToPath(import.meta.url);
11
11
  const __dirname = __cjs_path__.dirname(__filename);
12
12
  const require = __cjs_mod__.createRequire(import.meta.url);
13
13
  const name = "@timus-networks/theme";
14
- const version = "2.4.40";
14
+ const version = "2.4.42";
15
15
  const description = "A comprehensive Nuxt.js module providing a tailored theme experience with integrated TailwindCSS support for applications.";
16
16
  const type = "module";
17
17
  const exports = {
@@ -253,6 +253,10 @@ declare global {
253
253
  type __VLS_PrettifyGlobal<T> = {
254
254
  [K in keyof T]: T[K];
255
255
  } & {};
256
+ type __VLS_PickFunctionalComponentCtx<T, K> = NonNullable<__VLS_PickNotAny<'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
257
+ __ctx?: infer Ctx;
258
+ } ? Ctx : never : any, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any>>;
259
+ type __VLS_UseTemplateRef<T> = Readonly<import('vue').ShallowRef<T | null>>;
256
260
  function __VLS_getVForSourceType(source: number): [number, number, number][];
257
261
  function __VLS_getVForSourceType(source: string): [string, number, number][];
258
262
  function __VLS_getVForSourceType<T extends any[]>(source: T): [
@@ -285,7 +289,7 @@ declare global {
285
289
  ][];
286
290
  function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>;
287
291
  function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0];
288
- function __VLS_directiveAsFunction<T extends import('vue').Directive>(dir: T): T extends (...args: any) => any ? T | __VLS_unknownDirective : NonNullable<(T & Record<string, __VLS_unknownDirective>)['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']>;
292
+ function __VLS_asFunctionalDirective<T>(dir: T): T extends import('vue').ObjectDirective ? NonNullable<T['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']> : T extends (...args: any) => any ? T : __VLS_unknownDirective;
289
293
  function __VLS_withScope<T, K>(ctx: T, scope: K): ctx is T & K;
290
294
  function __VLS_makeOptional<T>(t: T): {
291
295
  [K in keyof T]?: T[K];
@@ -319,9 +323,6 @@ declare global {
319
323
  };
320
324
  function __VLS_elementAsFunction<T>(tag: T, endTag?: T): (_: T & Record<string, unknown>) => void;
321
325
  function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): 2 extends Parameters<T>['length'] ? [any] : [];
322
- function __VLS_pickFunctionalComponentCtx<T, K>(comp: T, compInstance: K): NonNullable<__VLS_PickNotAny<'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
323
- __ctx?: infer Ctx;
324
- } ? Ctx : never : any, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any>>;
325
326
  function __VLS_normalizeSlot<S>(s: S): S extends () => infer R ? (props: {}) => R : S;
326
327
  function __VLS_tryAsConstant<const T>(t: T): T;
327
328
  }
@@ -12,6 +12,18 @@
12
12
  having to click it.
13
13
  </p>
14
14
  <div class="flex gap-2">
15
+ <el-dropdown placement="bottom-end" trigger="click">
16
+ <span class="el-dropdown-link">
17
+ Long Lont a text Serkan Konakcı<el-icon class="el-icon--right"><ElIconArrowDown /></el-icon>
18
+ </span>
19
+ <template #dropdown>
20
+ <el-dropdown-menu>
21
+ <el-dropdown-item>Profile</el-dropdown-item>
22
+ <el-dropdown-item>Sign out</el-dropdown-item>
23
+ </el-dropdown-menu>
24
+ </template>
25
+ </el-dropdown>
26
+
15
27
  <el-dropdown>
16
28
  <span class="el-dropdown-link">
17
29
  Dropdown List
@@ -156,7 +168,20 @@
156
168
  const size_list = ref(['default', 'large', 'medium', 'small', 'mini']);
157
169
  const size_selected = ref('default');
158
170
  const snippets = ref({
159
- basic: `<el-link href="https://element-plus.org" target="_blank" type="secondary">default</el-link>`,
171
+ basic: `
172
+ <el-dropdown>
173
+ <span class="el-dropdown-link">
174
+ Dropdown List
175
+ <el-icon class="el-icon--right">
176
+ <ElIconArrowDown />
177
+ </el-icon>
178
+ </span>
179
+ <template #dropdown>
180
+ <el-dropdown-menu>
181
+ <el-dropdown-item v-for="item of [1, 2, 3, 4, 5]" :key="item" :disabled="item === 4" :divided="item === 5">Action {{ item }}</el-dropdown-item>
182
+ </el-dropdown-menu>
183
+ </template>
184
+ </el-dropdown>`,
160
185
  disabled: `<el-link type="secondary" disabled>default</el-link>`,
161
186
  underline: `<el-link :underline="false">Without Underline</el-link>`,
162
187
  icon: `<el-link class="isax-add icon-right">Check</el-link>`,
@@ -1,6 +1,5 @@
1
1
  @use 'sass:color';
2
2
  @use 'sass:string';
3
- @use 'sass:math';
4
3
 
5
4
  @function rgb2hex($color) {
6
5
  @return string.unquote('#' + #{string.slice(color.ie-hex-str($color), 4)});
@@ -8,11 +7,11 @@
8
7
 
9
8
  // rgba color above solid color
10
9
  @function mix-overlay-color($upper, $lower) {
11
- $opacity: color.channel($upper, 'alpha');
10
+ $opacity: color.alpha($upper);
12
11
 
13
- $red: math.round(color.channel($upper, 'red') * $opacity + color.channel($lower, 'red') * (1 - $opacity));
14
- $green: math.round(color.channel($upper, 'green') * $opacity + color.channel($lower, 'green') * (1 - $opacity));
15
- $blue: math.round(color.channel($upper, 'blue') * $opacity + color.channel($lower, 'blue') * (1 - $opacity));
12
+ $red: color.channel($upper, 'red') * $opacity + color.channel($lower, 'red') * (1 - $opacity);
13
+ $green: color.channel($upper, 'green') * $opacity + color.channel($lower, 'green') * (1 - $opacity);
14
+ $blue: color.channel($upper, 'blue') * $opacity + color.channel($lower, 'blue') * (1 - $opacity);
16
15
 
17
16
  @return rgb2hex(rgb($red, $green, $blue));
18
17
  }
@@ -16802,6 +16802,14 @@ mark.el-text {
16802
16802
  border-right-color: transparent !important;
16803
16803
  border-top-color: transparent !important;
16804
16804
  }
16805
+ .el-popper[data-popper-placement$=-end] > .el-popper__arrow {
16806
+ left: auto !important;
16807
+ right: 10px !important;
16808
+ }
16809
+ .el-popper[data-popper-placement$=-start] > .el-popper__arrow {
16810
+ right: auto !important;
16811
+ left: 10px !important;
16812
+ }
16805
16813
 
16806
16814
  .el-statistic {
16807
16815
  --el-statistic-title-font-weight: 400;
@@ -45,12 +45,7 @@
45
45
 
46
46
  @mixin set-css-color-rgb($type) {
47
47
  $color: map.get($colors, $type, 'base');
48
- @include set-css-var-value(
49
- ('color', $type, 'rgb'),
50
- #{color.channel($color, 'red', $space: rgb),
51
- color.channel($color, 'green', $space: rgb),
52
- color.channel($color, 'blue', $space: rgb)}
53
- );
48
+ @include set-css-var-value(('color', $type, 'rgb'), #{color.channel($color, 'red'), color.channel($color, 'green'), color.channel($color, 'blue')});
54
49
  }
55
50
 
56
51
  // generate css var from existing css var
@@ -1,5 +1,3 @@
1
- @use 'sass:map';
2
- @use 'sass:string';
3
1
  @use 'function' as *;
4
2
  @use '../common/var' as *;
5
3
  // forward mixins
@@ -7,6 +5,11 @@
7
5
  @forward 'function';
8
6
  @forward '_var';
9
7
  @use 'config' as *;
8
+ @use 'sass:string';
9
+ @use 'sass:map';
10
+
11
+ $B: null;
12
+ $E: null;
10
13
 
11
14
  // Break-points
12
15
  @mixin res($key, $map: $breakpoints) {
@@ -397,4 +397,12 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
397
397
  .el-popper[data-popper-placement^=right] .el-popper__arrow::before {
398
398
  border-right-color: transparent !important;
399
399
  border-top-color: transparent !important;
400
+ }
401
+ .el-popper[data-popper-placement$=-end] > .el-popper__arrow {
402
+ left: auto !important;
403
+ right: 10px !important;
404
+ }
405
+ .el-popper[data-popper-placement$=-start] > .el-popper__arrow {
406
+ right: auto !important;
407
+ left: 10px !important;
400
408
  }
@@ -104,4 +104,14 @@
104
104
  }
105
105
  }
106
106
  }
107
+
108
+ &[data-popper-placement$='-end'] > #{$arrow-selector} {
109
+ left: auto !important;
110
+ right: 10px !important;
111
+ }
112
+
113
+ &[data-popper-placement$='-start'] > #{$arrow-selector} {
114
+ right: auto !important;
115
+ left: 10px !important;
116
+ }
107
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timus-networks/theme",
3
- "version": "2.4.40",
3
+ "version": "2.4.42",
4
4
  "description": "A comprehensive Nuxt.js module providing a tailored theme experience with integrated TailwindCSS support for applications.",
5
5
  "type": "module",
6
6
  "exports": {