pukaad-ui-lib 1.249.0 → 1.250.0

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": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.249.0",
4
+ "version": "1.250.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -4,6 +4,7 @@ export interface InputCheckboxProps {
4
4
  label?: string;
5
5
  rules?: object | string | Function;
6
6
  indeterminate?: boolean;
7
+ labelPosition?: 'left' | 'right';
7
8
  }
8
9
  type __VLS_Props = InputCheckboxProps;
9
10
  type __VLS_ModelProps = {
@@ -17,6 +18,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
17
18
  }>, {
18
19
  name: string;
19
20
  indeterminate: boolean;
21
+ labelPosition: "left" | "right";
20
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
23
  declare const _default: typeof __VLS_export;
22
24
  export default _default;
@@ -6,14 +6,22 @@
6
6
  >
7
7
  <ShadFormItem>
8
8
  <ShadFormControl>
9
- <div class="flex gap-2 items-center">
9
+ <div
10
+ class="flex gap-2 items-center"
11
+ :class="[
12
+ props.labelPosition === 'left' ? 'flex-row-reverse justify-between w-full' : ''
13
+ ]"
14
+ >
10
15
  <ShadCheckbox
11
16
  v-bind="componentField"
12
17
  v-model="modelValue"
13
18
  :indeterminate="props.indeterminate"
14
19
  />
15
20
  <ShadFormLabel
16
- class="font-body-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
21
+ class="font-body-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer"
22
+ :class="[
23
+ props.labelPosition === 'left' ? 'flex-1' : ''
24
+ ]"
17
25
  >
18
26
  {{ props.label }}
19
27
  </ShadFormLabel>
@@ -29,7 +37,8 @@ const props = defineProps({
29
37
  name: { type: String, required: false, default: "input-checkbox" },
30
38
  label: { type: String, required: false },
31
39
  rules: { type: [Object, String, Function], required: false },
32
- indeterminate: { type: Boolean, required: false, default: false }
40
+ indeterminate: { type: Boolean, required: false, default: false },
41
+ labelPosition: { type: String, required: false, default: "right" }
33
42
  });
34
43
  const defaultRules = () => true;
35
44
  const modelValue = defineModel({ type: Boolean, ...{
@@ -4,6 +4,7 @@ export interface InputCheckboxProps {
4
4
  label?: string;
5
5
  rules?: object | string | Function;
6
6
  indeterminate?: boolean;
7
+ labelPosition?: 'left' | 'right';
7
8
  }
8
9
  type __VLS_Props = InputCheckboxProps;
9
10
  type __VLS_ModelProps = {
@@ -17,6 +18,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
17
18
  }>, {
18
19
  name: string;
19
20
  indeterminate: boolean;
21
+ labelPosition: "left" | "right";
20
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
23
  declare const _default: typeof __VLS_export;
22
24
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.249.0",
3
+ "version": "1.250.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",