vueless 0.0.586 → 0.0.587

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.586",
3
+ "version": "0.0.587",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -12,11 +12,14 @@ import { UColorPicker } from "./constants.ts";
12
12
  import defaultConfig from "./config.ts";
13
13
 
14
14
  import type { Props, IconSize, Config } from "./types.ts";
15
+ import type { BrandColors } from "../types.ts";
15
16
 
16
17
  defineOptions({ inheritAttrs: false });
17
18
 
18
19
  const props = withDefaults(defineProps<Props>(), {
19
20
  ...getDefaults<Props, Config>(defaultConfig, UColorPicker),
21
+ colorOptions: () =>
22
+ getDefaults<Props, Config>(defaultConfig, UColorPicker).colorOptions as BrandColors[],
20
23
  modelValue: "",
21
24
  label: "",
22
25
  });
@@ -40,7 +40,7 @@ export interface Props {
40
40
  /**
41
41
  * Color picker color list.
42
42
  */
43
- colorOptions?: BrandColors;
43
+ colorOptions?: BrandColors[];
44
44
 
45
45
  /**
46
46
  * Set color picker disabled.
@@ -257,10 +257,10 @@ const mutatedProps = computed(() => ({
257
257
 
258
258
  const {
259
259
  config,
260
+ wrapperAttrs,
260
261
  datepickerInputAttrs,
261
262
  datepickerInputActiveAttrs,
262
263
  datepickerCalendarAttrs,
263
- wrapperAttrs,
264
264
  } = useUI<Config>(defaultConfig, mutatedProps);
265
265
 
266
266
  /* Merging DatePicker's i18n translations into Calendar's i18n translations. */
@@ -12,7 +12,7 @@ export default /*tw*/ {
12
12
  },
13
13
  },
14
14
  },
15
- datepickerCalendarCalendar: {
15
+ datepickerCalendar: {
16
16
  base: "{UCalendar} absolute mb-3 z-40",
17
17
  variants: {
18
18
  openDirectionX: {
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.586",
4
+ "version": "0.0.587",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -2517,9 +2517,12 @@
2517
2517
  "name": "colorOptions",
2518
2518
  "required": false,
2519
2519
  "description": "Color picker color list.",
2520
+ "enum": [
2521
+ "BrandColors"
2522
+ ],
2520
2523
  "value": {
2521
2524
  "kind": "expression",
2522
- "type": "BrandColors"
2525
+ "type": "Array"
2523
2526
  },
2524
2527
  "default": "red,orange,amber,yellow,lime,green,emerald,teal,cyan,sky,blue,indigo,violet,purple,fuchsia,pink,rose"
2525
2528
  },