edvoyui-component-library-test-flight 0.0.214 → 0.0.216

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.
@@ -13,7 +13,7 @@
13
13
  :class="[
14
14
  { 'pointer-events-none cursor-not-allowed': disabled },
15
15
  inputFilled
16
- ? 'overflow-hidden border border-gray-100 cursor-pointer group h-14 rounded-2xl eui-datepicker'
16
+ ? 'overflow-hidden border border-gray-100 cursor-pointer group h-14 rounded-xl eui-datepicker'
17
17
  : 'h-10 eui-datepicker normal',
18
18
  'relative w-full mb-2',
19
19
  ]"
@@ -27,7 +27,7 @@
27
27
  : 'top-1/2 text-sm w-full text-gray-700 cursor-pointer h-14 pt-5 pb-4 bg-white',
28
28
  disabled ? ' cursor-not-allowed' : '',
29
29
  required && `after:content-['*'] after:ml-0.5 after:text-red-500`,
30
- 'absolute font-medium left-0 px-4 z-[1] -translate-y-1/2 group-focus-within:top-3.5 group-focus-within:text-xs group-focus-within:text-gray-400 rounded-2xl group-focus-within:bg-transparent group-hover:text-xs group-focus-within:h-auto group-focus-within:py-0 group-hover:top-3.5 group-hover:bg-transparent group-hover:h-auto group-hover:py-0 group-focus-within:-translate-y-1/2 group-hover:-translate-y-1/2 text-start first-letter:capitalize group-hover:rounded-none group-hover:text-gray-400 group-hover:w-max transition-all ease-in-out duration-300',
30
+ 'absolute font-medium left-0 px-4 z-[1] -translate-y-1/2 group-focus-within:top-3.5 group-focus-within:text-xs group-focus-within:text-gray-400 rounded-xl group-focus-within:bg-transparent group-hover:text-xs group-focus-within:h-auto group-focus-within:py-0 group-hover:top-3.5 group-hover:bg-transparent group-hover:h-auto group-hover:py-0 group-focus-within:-translate-y-1/2 group-hover:-translate-y-1/2 text-start first-letter:capitalize group-hover:rounded-none group-hover:text-gray-400 group-hover:w-max transition-all ease-in-out duration-300',
31
31
  ]"
32
32
  >
33
33
  {{ label || 'Datepicker' }}
@@ -248,7 +248,7 @@ const clearIconRight = computed(() =>
248
248
  padding-right: v-bind(iconshowRight);
249
249
  }
250
250
  .dp__input.dp__input_focus {
251
- @apply ring-2 ring-purple-600 rounded-2xl ring-inset h-[3.365rem];
251
+ @apply ring-2 ring-purple-600 rounded-xl ring-inset h-[3.365rem];
252
252
  }
253
253
  .dp--clear-btn {
254
254
  right: v-bind(clearIconRight);
@@ -33,6 +33,10 @@ declare const _default: import('../../../node_modules/vue').DefineComponent<impo
33
33
  type: BooleanConstructor;
34
34
  default: boolean;
35
35
  };
36
+ readonly: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
36
40
  }>, {}, {}, {}, {}, import('../../../node_modules/vue').ComponentOptionsMixin, import('../../../node_modules/vue').ComponentOptionsMixin, {
37
41
  "update:modelValue": (...args: any[]) => void;
38
42
  }, string, import('../../../node_modules/vue').PublicProps, Readonly<import('../../../node_modules/vue').ExtractPropTypes<{
@@ -65,6 +69,10 @@ declare const _default: import('../../../node_modules/vue').DefineComponent<impo
65
69
  type: BooleanConstructor;
66
70
  default: boolean;
67
71
  };
72
+ readonly: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
68
76
  }>> & Readonly<{
69
77
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
70
78
  }>, {
@@ -73,6 +81,7 @@ declare const _default: import('../../../node_modules/vue').DefineComponent<impo
73
81
  name: string;
74
82
  errors: Record<string, any>;
75
83
  modelValue: string;
84
+ readonly: boolean;
76
85
  options: RadioOption[];
77
86
  }, {}, {}, {}, string, import('../../../node_modules/vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
78
87
  export default _default;
@@ -11,13 +11,16 @@
11
11
  v-for="option in options"
12
12
  :key="option.value"
13
13
  class="inline-flex items-center gap-0 cursor-pointer"
14
- :class="{ 'opacity-50 cursor-not-allowed': disabled }"
14
+ :class="{
15
+ 'opacity-50 cursor-not-allowed': disabled,
16
+ 'cursor-not-allowed': readonly && !disabled,
17
+ }"
15
18
  >
16
19
  <input
17
20
  :value="option.value"
18
21
  type="radio"
19
22
  class="sr-only peer eui-radiogroup_input"
20
- :disabled="disabled"
23
+ :disabled="disabled || readonly"
21
24
  :checked="modelValue === option.value"
22
25
  @change="selectOption(option.value)"
23
26
  />
@@ -68,6 +71,10 @@ const props = defineProps({
68
71
  type: Boolean,
69
72
  default: false,
70
73
  },
74
+ readonly: {
75
+ type: Boolean,
76
+ default: false,
77
+ },
71
78
  });
72
79
 
73
80
  const { modelValue } = toRefs(props);