eco-vue-js 0.11.46 → 0.11.47

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.
@@ -86,8 +86,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
86
86
  class: normalizeClass(["square-9 relative flex items-center justify-center rounded-full", {
87
87
  "w-ripple w-ripple-hover": !isDisabled.value && !_ctx.readonly,
88
88
  "opacity-50": isDisabled.value,
89
- "bg-primary dark:bg-primary-dark text-default font-semibold": isSelected.value,
90
- "bg-negative dark:bg-negative-dark text-default font-semibold": !isSelected.value && _ctx.isToday
89
+ "bg-primary dark:bg-primary-dark font-semibold text-[--w-date-picker-day,#ffffff]": isSelected.value,
90
+ "bg-negative dark:bg-negative-dark font-semibold text-[--w-date-picker-day,#ffffff]": !isSelected.value && _ctx.isToday
91
91
  }])
92
92
  }, [
93
93
  createElementVNode("div", _hoisted_1, toDisplayString(_ctx.startOfDay.getDate()), 1)
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarValue.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/components/CalendarValue.vue"],"names":[],"mappings":"AA0BA;AA+DA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,IAAI,CAAA;IACjB,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;AA8EF,wBAQG"}
1
+ {"version":3,"file":"CalendarValue.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/components/CalendarValue.vue"],"names":[],"mappings":"AAsBA;AA+DA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,IAAI,CAAA;IACjB,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;AAkFF,wBAQG"}
@@ -1,4 +1,5 @@
1
- import { defineComponent, computed, onBeforeMount, createElementBlock, openBlock, normalizeClass, createElementVNode, toDisplayString, unref } from 'vue';
1
+ import { defineComponent, computed, onBeforeMount, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, toDisplayString } from 'vue';
2
+ import { useSemanticTypeBackgroundMap, SemanticType } from '../../../utils/SemanticType.js';
2
3
  import { isSameMonth, dateFormat, getStartOfMonth } from '../../../utils/dateTime.js';
3
4
 
4
5
  const _hoisted_1 = { class: "mb-0.5 font-normal tracking-wide" };
@@ -19,6 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
20
  if (!props.value || !clickable.value) return;
20
21
  emit("update:currentDate", getStartOfMonth(props.value));
21
22
  };
23
+ const semanticTypeBackgroundMap = useSemanticTypeBackgroundMap();
22
24
  onBeforeMount(() => {
23
25
  if (props.autoFocus) {
24
26
  updateCurrentDate();
@@ -26,9 +28,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
28
  });
27
29
  return (_ctx, _cache) => {
28
30
  return openBlock(), createElementBlock("div", {
29
- class: normalizeClass(["from-primary dark:from-primary-dark text-default relative w-full select-none rounded-xl bg-gradient-to-tr to-[#C376FF] px-4 py-3 dark:to-[#9b3be6]", {
31
+ class: normalizeClass(["relative w-full select-none rounded-xl bg-gradient-to-tr px-4 py-3", [{
30
32
  "w-ripple w-ripple-hover cursor-pointer": clickable.value
31
- }]),
33
+ }, unref(semanticTypeBackgroundMap)[unref(SemanticType).PRIMARY]]]),
32
34
  onClick: updateCurrentDate
33
35
  }, [
34
36
  createElementVNode("div", _hoisted_1, toDisplayString(_ctx.title), 1),
@@ -5,11 +5,11 @@ export default [
5
5
  {
6
6
  files: ['**/*.json'],
7
7
  rules: {
8
- 'jsonc/indent': ['error', 2, {}],
9
- 'jsonc/key-spacing': ['error', {beforeColon: false, afterColon: true, mode: 'strict'}],
8
+ 'jsonc/indent': ['warn', 2, {}],
9
+ 'jsonc/key-spacing': ['warn', {beforeColon: false, afterColon: true, mode: 'strict'}],
10
10
  'jsonc/comma-style': ['error', 'last'],
11
- 'jsonc/object-curly-newline': ['error', 'always'],
12
- 'jsonc/object-property-newline': 'error',
11
+ 'jsonc/object-curly-newline': ['warn', 'always'],
12
+ 'jsonc/object-property-newline': 'warn',
13
13
  },
14
14
  },
15
15
  ]
@@ -17,15 +17,15 @@ export default (config = {}) => [
17
17
  sourceType: 'module',
18
18
  },
19
19
  rules: {
20
- semi: ['error', 'never'],
21
- quotes: ['error', 'single', {allowTemplateLiterals: true}],
22
- indent: ['error', 2, {SwitchCase: 1}],
23
- 'comma-dangle': ['error', 'always-multiline'],
24
- 'comma-spacing': ['error', {before: false, after: true}],
25
- 'object-curly-spacing': ['error', 'never'],
20
+ semi: ['warn', 'never'],
21
+ quotes: ['warn', 'single', {allowTemplateLiterals: true}],
22
+ indent: ['warn', 2, {SwitchCase: 1}],
23
+ 'comma-dangle': ['warn', 'always-multiline'],
24
+ 'comma-spacing': ['warn', {before: false, after: true}],
25
+ 'object-curly-spacing': ['warn', 'never'],
26
26
  'func-call-spacing': 'off',
27
- 'template-curly-spacing': ['error', 'always'],
28
- 'space-before-function-paren': ['error', {anonymous: 'always', named: 'never', asyncArrow: 'always'}],
27
+ 'template-curly-spacing': ['warn', 'always'],
28
+ 'space-before-function-paren': ['warn', {anonymous: 'always', named: 'never', asyncArrow: 'always'}],
29
29
  'no-undef': 'off',
30
30
  'default-case-last': 'off',
31
31
  'no-console': ['warn'],
@@ -2,7 +2,7 @@ export default [
2
2
  {
3
3
  files: ['**/*.vue'],
4
4
  rules: {
5
- 'vue/script-indent': ['error', 2, {
5
+ 'vue/script-indent': ['warn', 2, {
6
6
  baseIndent: 0,
7
7
  switchCase: 1,
8
8
  ignores: [],
@@ -11,7 +11,7 @@ export default [
11
11
  'vue/block-order': ['error', {
12
12
  order: ['template', 'script[setup]', 'style'],
13
13
  }],
14
- 'vue/multiline-html-element-content-newline': ['error', {
14
+ 'vue/multiline-html-element-content-newline': ['warn', {
15
15
  ignoreWhenEmpty: true,
16
16
  ignores: ['pre', 'textarea', 'span', 'tspan', 'template'],
17
17
  allowEmptyLines: false,
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.46",
7
+ "version": "0.11.47",
8
8
  "dependencies": {
9
9
  "@stylistic/eslint-plugin": "5.2.3",
10
10
  "@tanstack/eslint-plugin-query": "5.83.1",
@@ -13,6 +13,7 @@ const pluginDefault = plugin(function ({matchUtilities, theme}) {
13
13
  'w-toggle-caret': value => ({'--w-toggle-caret': value}),
14
14
  'w-checkbox-color': value => ({'--w-checkbox-color': value}),
15
15
  'w-nav-item-dot-color': value => ({'--w-nav-item-dot-color': value}),
16
+ 'w-date-picker-day': value => ({'--w-date-picker-day': value}),
16
17
  },
17
18
  {values: flattenColorPalette(theme('colors'))},
18
19
  )