@wikicasa-dev/components 1.8.2 → 1.8.3

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.
@@ -1,48 +1,39 @@
1
1
  import { defineComponent as s, openBlock as a, createElementBlock as l, normalizeClass as t, withModifiers as o, createElementVNode as n, createCommentVNode as r } from "vue";
2
- import { _ as u } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
3
- import './assets/BaseFloatingLabel.css';const d = s({
4
- name: "BaseFloatingLabel",
2
+ import { _ as d } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
3
+ import './assets/BaseFloatingLabel.css';const u = ["for"], k = ["innerHTML"], m = /* @__PURE__ */ s({
4
+ __name: "BaseFloatingLabel",
5
5
  props: {
6
- labelState: {
7
- type: String,
8
- default: () => "inline-label"
9
- },
10
- isValid: {
11
- type: Boolean,
12
- default: () => null
13
- },
14
- labelText: {
15
- type: String,
16
- required: !0
17
- },
18
- disabled: {
19
- type: [String, Boolean],
20
- default: !1
21
- }
6
+ labelState: { default: "inline-label" },
7
+ isValid: { default: null },
8
+ labelText: {},
9
+ disabled: { type: [String, Boolean], default: !1 }
22
10
  },
23
- emits: ["click"]
24
- }), p = ["for"], k = ["innerHTML"];
25
- function m(e, i, c, f, b, y) {
26
- return a(), l("label", {
27
- for: e.$attrs.for,
28
- class: t(["uikit-absolute uikit-left-15px uikit-h-5 uikit-text-sm", [
29
- e.labelState,
30
- { "uikit-text-w-secondary": e.disabled },
31
- e.$attrs["label-classes"]
32
- ]]),
33
- onClick: i[0] || (i[0] = o(($) => e.$emit("click"), ["stop"]))
34
- }, [
35
- n("span", {
36
- class: t(["uikit-text uikit-font-medium uikit-text-w-black", { "!uikit-text-w-secondary": e.disabled }]),
37
- innerHTML: e.labelText
38
- }, null, 10, k),
39
- e.$attrs.required ? (a(), l("sup", {
40
- key: 0,
41
- class: t(["uikit-absolute -uikit-top-[0.3rem] uikit-text uikit-text-w-primary", { "uikit-text-w-secondary": e.disabled }])
42
- }, " *", 2)) : r("", !0)
43
- ], 10, p);
44
- }
45
- const g = /* @__PURE__ */ u(d, [["render", m], ["__scopeId", "data-v-bc398569"]]);
11
+ emits: ["click"],
12
+ setup(p, { emit: b }) {
13
+ return (e, i) => (a(), l("label", {
14
+ for: e.$attrs.for,
15
+ class: t(["uikit-absolute uikit-left-15px uikit-h-5 uikit-text-sm", [
16
+ e.labelState,
17
+ { "uikit-text-w-secondary": e.disabled },
18
+ e.$attrs["label-classes"]
19
+ ]]),
20
+ onClick: i[0] || (i[0] = o((f) => e.$emit("click"), ["stop"]))
21
+ }, [
22
+ n("span", {
23
+ class: t(["uikit-text uikit-font-medium uikit-text-w-black", { "!uikit-text-w-secondary": e.disabled }]),
24
+ innerHTML: e.labelText
25
+ }, null, 10, k),
26
+ e.$attrs.required ? (a(), l("sup", {
27
+ key: 0,
28
+ class: t(["uikit-absolute -uikit-top-[0.3rem] uikit-text", [
29
+ { "uikit-text-w-secondary": e.disabled },
30
+ { "uikit-text-w-danger": e.isValid === !1 },
31
+ { "uikit-text-w-primary": (e.isValid || e.isValid === null) && !e.disabled }
32
+ ]])
33
+ }, " *", 2)) : r("", !0)
34
+ ], 10, u));
35
+ }
36
+ }), y = /* @__PURE__ */ d(m, [["__scopeId", "data-v-5a3dceb6"]]);
46
37
  export {
47
- g as default
38
+ y as default
48
39
  };
@@ -1,41 +1,27 @@
1
1
  import { Nullable } from '@wikicasa-dev/types';
2
2
 
3
3
  type LabelState = "inline-label" | "floating-label";
4
- declare const _default: import('vue').DefineComponent<{
5
- labelState: {
6
- type: () => LabelState;
7
- default: () => LabelState;
8
- };
9
- isValid: {
10
- type: () => Nullable<boolean>;
11
- default: () => Nullable<boolean>;
12
- };
13
- labelText: {
14
- type: StringConstructor;
15
- required: true;
16
- };
17
- disabled: {
18
- type: (BooleanConstructor | StringConstructor)[];
19
- default: boolean;
20
- };
21
- }, unknown, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
22
- labelState: {
23
- type: () => LabelState;
24
- default: () => LabelState;
25
- };
26
- isValid: {
27
- type: () => Nullable<boolean>;
28
- default: () => Nullable<boolean>;
29
- };
30
- labelText: {
31
- type: StringConstructor;
32
- required: true;
33
- };
34
- disabled: {
35
- type: (BooleanConstructor | StringConstructor)[];
36
- default: boolean;
37
- };
38
- }>> & {
4
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ labelState?: LabelState;
6
+ isValid?: Nullable<boolean>;
7
+ labelText: string;
8
+ disabled?: string | boolean;
9
+ }>, {
10
+ labelState: string;
11
+ isValid: null;
12
+ disabled: boolean;
13
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ click: (...args: any[]) => void;
15
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
16
+ labelState?: LabelState;
17
+ isValid?: Nullable<boolean>;
18
+ labelText: string;
19
+ disabled?: string | boolean;
20
+ }>, {
21
+ labelState: string;
22
+ isValid: null;
23
+ disabled: boolean;
24
+ }>>> & {
39
25
  onClick?: ((...args: any[]) => any) | undefined;
40
26
  }, {
41
27
  labelState: LabelState;
@@ -43,3 +29,20 @@ declare const _default: import('vue').DefineComponent<{
43
29
  disabled: string | boolean;
44
30
  }, {}>;
45
31
  export default _default;
32
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
+ type __VLS_TypePropsToRuntimeProps<T> = {
34
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
35
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
36
+ } : {
37
+ type: import('vue').PropType<T[K]>;
38
+ required: true;
39
+ };
40
+ };
41
+ type __VLS_WithDefaults<P, D> = {
42
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
43
+ default: D[K];
44
+ }> : P[K];
45
+ };
46
+ type __VLS_Prettify<T> = {
47
+ [K in keyof T]: T[K];
48
+ } & {};
@@ -1 +1 @@
1
- .floating-label[data-v-bc398569]{top:-10px;left:1.25rem;border-radius:5px;font-size:14px;line-height:18px}.inline-label[data-v-bc398569]{top:.75rem;background-color:transparent;font-size:16px;line-height:20px}.inline-label>span[data-v-bc398569]{--tw-text-opacity: 1;color:rgb(109 118 135 / var(--tw-text-opacity))}.floating-label[data-v-bc398569],.inline-label[data-v-bc398569]{transition-property:top,left;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;will-change:top,left}
1
+ .floating-label[data-v-5a3dceb6]{top:-10px;left:1.25rem;border-radius:5px;font-size:14px;line-height:18px}.inline-label[data-v-5a3dceb6]{top:.75rem;background-color:transparent;font-size:16px;line-height:20px}.inline-label>span[data-v-5a3dceb6]{--tw-text-opacity: 1;color:rgb(109 118 135 / var(--tw-text-opacity))}.floating-label[data-v-5a3dceb6],.inline-label[data-v-5a3dceb6]{transition-property:top,left;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;will-change:top,left}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",