eco-vue-js 0.11.44 → 0.11.46

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.
@@ -42,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
42
  });
43
43
  return (_ctx, _cache) => {
44
44
  return openBlock(), createElementBlock("div", {
45
- class: normalizeClass(["height-full bg-default dark:bg-default-dark sm-not:[--actions-bar-filter-width:calc(100vw-var(--w-actions-bar-width))] fixed right-0 top-0 grid grid-cols-[var(--actions-bar-filter-width-current,0),var(--w-actions-bar-width)] grid-rows-[var(--header-height),1fr] justify-end overflow-hidden shadow-md transition-[grid-template-columns] duration-300 print:hidden", {
45
+ class: normalizeClass(["height-full w-actions-bar sm-not:[--actions-bar-filter-width:calc(100vw-var(--w-actions-bar-width))] fixed right-0 top-0 grid grid-cols-[var(--actions-bar-filter-width-current,0),var(--w-actions-bar-width)] grid-rows-[var(--header-height),1fr] justify-end overflow-hidden transition-[grid-template-columns] duration-300 print:hidden", {
46
46
  "[--actions-bar-filter-width-current:var(--actions-bar-filter-width)]": isOpen.value && hasFilter.value
47
47
  }]),
48
48
  style: normalizeStyle({ zIndex: unref(BASE_ZINDEX_ACTIONS_BAR) })
@@ -38,10 +38,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
38
  default: withCtx(() => [
39
39
  _ctx.skeleton ? (openBlock(), createBlock(_sfc_main$2, {
40
40
  key: 0,
41
- class: "w-skeleton-w-auto w-skeleton-h-auto w-skeleton-rounded-full mx-1 aspect-square"
41
+ class: "w-skeleton-w-auto w-skeleton-h-auto w-skeleton-rounded-[--w-button-action-rounded,9999px] mx-1 aspect-square"
42
42
  })) : (openBlock(), createElementBlock("div", {
43
43
  key: 1,
44
- class: normalizeClass(["relative mx-1 grid aspect-square select-none gap-1 rounded-full bg-[200%_auto] [background-position:right]", {
44
+ class: normalizeClass(["relative mx-1 grid aspect-square select-none gap-1 rounded-[--w-button-action-rounded,9999px] bg-[200%_auto] [background-position:right]", {
45
45
  "w-ripple w-ripple-hover cursor-pointer": !_ctx.disabled && !_ctx.skeleton,
46
46
  "text-primary dark:text-primary-dark": _ctx.active && _ctx.semanticType === unref(SemanticType).SECONDARY,
47
47
  [unref(semanticTypeBackgroundMap)[_ctx.semanticType]]: true
@@ -57,7 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
57
57
  }), [
58
58
  createElementVNode("div", {
59
59
  class: normalizeClass(["square-[1.5em] bg-default dark:bg-default-dark relative isolate flex items-center justify-center border border-solid [font-size:--w-checkbox-size]", {
60
- "text-default": _ctx.modelValue && !unref(isDisabled) && !unref(isSkeleton),
60
+ "text-[--w-checkbox-color,#ffffff]": _ctx.modelValue && !unref(isDisabled) && !unref(isSkeleton),
61
61
  "text-primary dark:text-primary-dark": !_ctx.modelValue && !unref(isDisabled) && !unref(isSkeleton),
62
62
  "text-gray-300 dark:text-gray-700": !_ctx.modelValue && unref(isDisabled) && !unref(isSkeleton),
63
63
  "w-ripple w-hover-circle before:text-accent after:text-accent": !unref(isDisabled) && !unref(isReadonly) && !unref(isSkeleton),
@@ -3,7 +3,7 @@ import IconMenu from '../../assets/icons/IconMenu.svg.js';
3
3
  import { useIsMobile } from '../../utils/mobile.js';
4
4
  import { wBaseZIndex, BASE_ZINDEX_NAV_BAR } from '../../utils/utils.js';
5
5
 
6
- const _hoisted_1 = { class: "bg-default dark:bg-default-dark -mt--header-height overflow-hidden" };
6
+ const _hoisted_1 = { class: "-mt--header-height overflow-hidden" };
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "WNavBar",
9
9
  emits: ["update:isOpen"],
@@ -45,10 +45,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
45
  _: 1
46
46
  }),
47
47
  createElementVNode("div", {
48
- class: normalizeClass(["xl-not:bg-default xl-not:dark:bg-default-dark fixed left-0 top-0 grid h-full overflow-hidden shadow-md transition-[grid-template-columns] duration-200 xl:grid-cols-[1fr] xl:shadow-none print:hidden", {
48
+ class: normalizeClass(["w-nav-bar fixed left-0 top-0 grid h-full overflow-hidden transition-[grid-template-columns] duration-200 xl:grid-cols-[1fr] print:hidden", [{
49
49
  "xl-not:grid-cols-[0fr]": !isOpen.value,
50
50
  "grid-cols-[1fr]": isOpen.value
51
- }]),
51
+ }, _ctx.$attrs.class]]),
52
52
  style: normalizeStyle({ zIndex: unref(BASE_ZINDEX_NAV_BAR) })
53
53
  }, [
54
54
  createElementVNode("div", _hoisted_1, [
@@ -11,7 +11,7 @@ const _hoisted_1 = {
11
11
  };
12
12
  const _hoisted_2 = {
13
13
  key: 0,
14
- class: "absolute left-7 top-0 flex h-full items-center"
14
+ class: "absolute left-3 top-0 flex h-full items-center"
15
15
  };
16
16
  const _hoisted_3 = { class: "[overflow:inherit]" };
17
17
  const _hoisted_4 = { class: "flex items-center" };
@@ -1 +1 @@
1
- {"version":3,"file":"WNavItemExpand.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Nav/WNavItemExpand.vue"],"names":[],"mappings":"AAmFA;AA8KA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAA;AAE/C,OAAO,EAAC,KAAK,KAAK,EAAY,QAAQ,EAAwD,MAAM,KAAK,CAAA;AA2FzG,iBAAS,cAAc;WA2MT,OAAO,IAA6B;;kBAxNtC,MAAM,KAAK,EAAE;eAChB,MAAM,KAAK,EAAE;;kBADV,MAAM,KAAK,EAAE;eAChB,MAAM,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA2QutP,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;EA/Cl2P;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwBw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AM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -9,7 +9,7 @@ import _sfc_main$3 from './WNavItem.vue.js';
9
9
  import WNavItemTransition from './WNavItemTransition.vue.js';
10
10
  import _sfc_main$2 from '../ClickOutside/WClickOutside.vue.js';
11
11
 
12
- const _hoisted_1 = { class: "bg-default dark:bg-default-dark w-nav-bar-width overflow-hidden rounded-xl border border-solid border-gray-200 text-start font-normal shadow dark:border-gray-800" };
12
+ const _hoisted_1 = { class: "w-nav-bar w-nav-bar-width overflow-hidden rounded-xl border border-solid border-gray-200 text-start font-normal shadow dark:border-gray-800" };
13
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  __name: "WNavItemExpand",
15
15
  props: {
@@ -113,7 +113,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
113
113
  }, [
114
114
  createElementVNode("div", _hoisted_3, [
115
115
  createElementVNode("div", {
116
- class: normalizeClass(["bg-default text-primary dark:text-primary-dark absolute z-10 flex aspect-square h-full items-center justify-center rounded-full shadow-md transition-[right]", {
116
+ class: normalizeClass(["text-primary dark:text-primary-dark absolute z-10 flex aspect-square h-full items-center justify-center rounded-full bg-[--w-toggle-caret,#ffffff] shadow-md transition-[right]", {
117
117
  "right-[calc(100%-(var(--w-input-height)-0.75rem))]": value.value === false,
118
118
  "right-[calc(50%-(var(--w-input-height)-0.75rem)/2)]": value.value === null,
119
119
  "right-0": value.value === true,
@@ -1,4 +1,4 @@
1
- declare type SVGComponent = import('vue').Raw<import('vue').FunctionalComponent<import('vue').SVGAttributes>>
1
+ declare type SVGComponent = import('vue').Raw<import('vue').FunctionalComponent<import('vue').SVGAttributes>> | keyof import('vue').GlobalComponents
2
2
 
3
3
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4
4
  declare type ComponentInstance<T> = T extends new (...args: any[]) => infer R
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.11.44",
7
+ "version": "0.11.46",
8
8
  "dependencies": {
9
9
  "@stylistic/eslint-plugin": "5.2.3",
10
10
  "@tanstack/eslint-plugin-query": "5.83.1",
@@ -11,8 +11,6 @@ import pluginText from './plugins/text.js'
11
11
  import pluginHoverCircle from './plugins/w-hover-circle.js'
12
12
  import pluginRipple from './plugins/w-ripple.js'
13
13
  import animations from './theme/animations.js'
14
- import score from './theme/score.js'
15
- import severity from './theme/severity.js'
16
14
  import sizes from './theme/sizes.js'
17
15
 
18
16
  const tailwindBase = {
@@ -26,6 +24,8 @@ const tailwindBase = {
26
24
  theme: {
27
25
  colors: {
28
26
  current: 'currentColor',
27
+ transparent: 'transparent',
28
+
29
29
  default: '#ffffff',
30
30
  'default-dark': colors.zinc['900'], // '#101827',
31
31
 
@@ -51,10 +51,23 @@ const tailwindBase = {
51
51
  info: '#82adff',
52
52
  'info-dark': '#407ae5',
53
53
 
54
- severity,
55
- score,
56
-
57
- transparent: 'transparent',
54
+ severity: {
55
+ critical: {bg: '#ff757520', text: '#FF7171'},
56
+ high: {bg: '#ffbc7035', text: '#FF9B63'},
57
+ medium: {bg: '#fff06b45', text: '#F4CF4D'},
58
+ low: {bg: '#8cff7330', text: '#6AD682'},
59
+ info: {bg: '#75acff20', text: '#82ADFF'},
60
+ resolved: {bg: '#8778fc15', text: '#4F4F4F'},
61
+ },
62
+ score: {
63
+ critical: {bg: '#ff73bb30', text: '#f95f95'},
64
+ high: {bg: '#ff757c25', text: '#f8808e'},
65
+ medium: {bg: '#ffe57030', text: '#ebc17b'},
66
+ low: {bg: '#93ff7330', text: '#88cd83'},
67
+ negligible: {bg: '#70ffb030', text: '#38cba4'},
68
+ nullable: {bg: '#73d5ff30', text: '#44b0ef'},
69
+ undefinedly: {bg: '#7affff10', text: '#c9e3ef'},
70
+ },
58
71
  },
59
72
  extend: {
60
73
  ...sizes,
@@ -10,6 +10,9 @@ const pluginDefault = plugin(function ({matchUtilities, theme}) {
10
10
  'w-input-bg': value => ({'--w-input-bg': value}),
11
11
  'w-slider-from': value => ({'--w-slider-from': value}),
12
12
  'w-slider-to': value => ({'--w-slider-to': value}),
13
+ 'w-toggle-caret': value => ({'--w-toggle-caret': value}),
14
+ 'w-checkbox-color': value => ({'--w-checkbox-color': value}),
15
+ 'w-nav-item-dot-color': value => ({'--w-nav-item-dot-color': value}),
13
16
  },
14
17
  {values: flattenColorPalette(theme('colors'))},
15
18
  )
@@ -68,6 +71,7 @@ const pluginDefault = plugin(function ({matchUtilities, theme}) {
68
71
  'w-option-rounded': value => ({'--w-option-rounded': value}),
69
72
  'w-modal-wrapper-rounded': value => ({'--w-modal-wrapper-rounded': value}),
70
73
  'w-list-header-rounded': value => ({'--w-list-header-rounded': value}),
74
+ 'w-button-action-rounded': value => ({'--w-button-action-rounded': value}),
71
75
  },
72
76
  {values: theme('borderRadius')},
73
77
  )
@@ -1,30 +0,0 @@
1
- export default {
2
- critical: {
3
- bg: '#ff73bb30',
4
- text: '#f95f95',
5
- },
6
- high: {
7
- bg: '#ff757c25',
8
- text: '#f8808e',
9
- },
10
- medium: {
11
- bg: '#ffe57030',
12
- text: '#ebc17b',
13
- },
14
- low: {
15
- bg: '#93ff7330',
16
- text: '#88cd83',
17
- },
18
- negligible: {
19
- bg: '#70ffb030',
20
- text: '#38cba4',
21
- },
22
- nullable: {
23
- bg: '#73d5ff30',
24
- text: '#44b0ef',
25
- },
26
- undefinedly: {
27
- bg: '#7affff10',
28
- text: '#c9e3ef',
29
- },
30
- }
@@ -1,31 +0,0 @@
1
- export default {
2
- critical: {
3
- bg: '#ff757520',
4
- text: '#FF7171',
5
- },
6
-
7
- high: {
8
- bg: '#ffbc7035',
9
- text: '#FF9B63',
10
- },
11
-
12
- medium: {
13
- bg: '#fff06b45',
14
- text: '#F4CF4D',
15
- },
16
-
17
- low: {
18
- bg: '#8cff7330',
19
- text: '#6AD682',
20
- },
21
-
22
- info: {
23
- bg: '#75acff20',
24
- text: '#82ADFF',
25
- },
26
-
27
- resolved: {
28
- bg: '#8778fc15',
29
- text: '#4F4F4F',
30
- },
31
- }