cja-phoenix 1.0.8 → 1.0.9

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": "cja-phoenix",
3
3
  "configKey": "cja-phoenix",
4
- "version": "1.0.8",
4
+ "version": "1.0.9",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,5 +1,5 @@
1
1
  import type { InputHTMLAttributes } from 'vue';
2
- import type { Schema } from 'yup';
2
+ import type { Lazy, Schema } from 'yup';
3
3
  type __VLS_Props = {
4
4
  label?: string;
5
5
  value?: InputHTMLAttributes['value'];
@@ -8,7 +8,7 @@ type __VLS_Props = {
8
8
  size?: 'sm' | 'md' | 'lg';
9
9
  error?: boolean;
10
10
  errorDisplay?: boolean;
11
- validation?: Schema;
11
+ validation?: Schema | Lazy<any>;
12
12
  validationMode?: 'change' | 'none';
13
13
  };
14
14
  type __VLS_PublicProps = __VLS_Props & {
@@ -1,13 +1,13 @@
1
1
  import type { InputHTMLAttributes } from 'vue';
2
2
  import type { CheckboxOption } from '../../types/CheckboxOption.js';
3
- import type { Schema } from 'yup';
3
+ import type { Lazy, Schema } from 'yup';
4
4
  type __VLS_Props = {
5
5
  title?: string;
6
6
  tooltip?: string;
7
7
  layout?: 'vertical' | 'horizontal';
8
8
  listLayout?: 'vertical' | 'horizontal';
9
9
  size?: 'sm' | 'md' | 'lg';
10
- validation?: Schema;
10
+ validation?: Schema | Lazy<any>;
11
11
  validationMode?: 'change' | 'none';
12
12
  errorDisplay?: boolean;
13
13
  disabled?: InputHTMLAttributes['disabled'];
@@ -1,5 +1,5 @@
1
1
  import { type InputHTMLAttributes } from 'vue';
2
- import type { Schema } from 'yup';
2
+ import type { Lazy, Schema } from 'yup';
3
3
  type __VLS_Props = {
4
4
  title?: string;
5
5
  label?: string;
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  placeholder?: InputHTMLAttributes['placeholder'];
8
8
  layout?: 'vertical' | 'horizontal';
9
9
  size?: 'sm' | 'md' | 'lg';
10
- validation?: Schema;
10
+ validation?: Schema | Lazy<any>;
11
11
  validationMode?: 'change' | 'blur' | 'none';
12
12
  errorDisplay?: boolean;
13
13
  id?: InputHTMLAttributes['id'];
@@ -1,6 +1,6 @@
1
1
  import { type InputHTMLAttributes } from 'vue';
2
2
  import type { DateFormat } from '../../types/DateFormat.js';
3
- import type { Schema } from 'yup';
3
+ import type { Lazy, Schema } from 'yup';
4
4
  type __VLS_Props = {
5
5
  title?: string;
6
6
  label?: string;
@@ -8,7 +8,7 @@ type __VLS_Props = {
8
8
  placeholder?: InputHTMLAttributes['placeholder'];
9
9
  layout?: 'vertical' | 'horizontal';
10
10
  size?: 'sm' | 'md' | 'lg';
11
- validation?: Schema;
11
+ validation?: Schema | Lazy<any>;
12
12
  validationMode?: 'change' | 'blur' | 'none';
13
13
  errorDisplay?: boolean;
14
14
  id?: InputHTMLAttributes['id'];
@@ -1,6 +1,6 @@
1
1
  import { type InputHTMLAttributes } from 'vue';
2
2
  import type { Ref } from '#imports';
3
- import type { Schema } from 'yup';
3
+ import type { Lazy, Schema } from 'yup';
4
4
  type __VLS_Props = {
5
5
  id?: InputHTMLAttributes['id'];
6
6
  layout?: 'vertical' | 'horizontal';
@@ -12,7 +12,7 @@ type __VLS_Props = {
12
12
  errorDisplay?: boolean;
13
13
  description?: string;
14
14
  disabled?: InputHTMLAttributes['disabled'];
15
- validation?: Schema;
15
+ validation?: Schema | Lazy<any>;
16
16
  validationMode?: 'change' | 'none';
17
17
  variant?: 'white' | 'blue';
18
18
  accept?: string[];
@@ -1,5 +1,5 @@
1
1
  import type { InputHTMLAttributes } from 'vue';
2
- import type { Schema } from 'yup';
2
+ import type { Lazy, Schema } from 'yup';
3
3
  type __VLS_Props = {
4
4
  title?: string;
5
5
  label?: string;
@@ -9,7 +9,7 @@ type __VLS_Props = {
9
9
  max?: number;
10
10
  min?: number;
11
11
  step?: number;
12
- validation?: Schema;
12
+ validation?: Schema | Lazy<any>;
13
13
  validationMode?: 'change' | 'none';
14
14
  errorDisplay?: boolean;
15
15
  disabled?: InputHTMLAttributes['disabled'];
@@ -1,5 +1,5 @@
1
1
  import { type InputHTMLAttributes } from 'vue';
2
- import type { Schema } from 'yup';
2
+ import type { Lazy, Schema } from 'yup';
3
3
  type __VLS_Props = {
4
4
  title?: string;
5
5
  label?: string;
@@ -8,7 +8,7 @@ type __VLS_Props = {
8
8
  placeholder?: InputHTMLAttributes['placeholder'];
9
9
  layout?: 'vertical' | 'horizontal';
10
10
  size?: 'sm' | 'md' | 'lg';
11
- validation?: Schema;
11
+ validation?: Schema | Lazy<any>;
12
12
  validationMode?: 'change' | 'blur' | 'none';
13
13
  errorDisplay?: boolean;
14
14
  countryCode?: string;
@@ -1,5 +1,5 @@
1
1
  import type { InputHTMLAttributes } from 'vue';
2
- import type { Schema } from 'yup';
2
+ import type { Lazy, Schema } from 'yup';
3
3
  type __VLS_Props = {
4
4
  name: string;
5
5
  value: any;
@@ -8,7 +8,7 @@ type __VLS_Props = {
8
8
  size?: 'sm' | 'md' | 'lg';
9
9
  error?: boolean;
10
10
  errorDisplay?: boolean;
11
- validation?: Schema;
11
+ validation?: Schema | Lazy<any>;
12
12
  validationMode?: 'change' | 'none';
13
13
  radioStyle?: 'default' | 'button';
14
14
  };
@@ -1,13 +1,13 @@
1
1
  import { type InputHTMLAttributes } from 'vue';
2
2
  import type { RadioOption } from '../../types/RadioOption.js';
3
- import type { Schema } from 'yup';
3
+ import type { Lazy, Schema } from 'yup';
4
4
  type __VLS_Props = {
5
5
  title?: string;
6
6
  tooltip?: string;
7
7
  layout?: 'vertical' | 'horizontal';
8
8
  listLayout?: 'vertical' | 'horizontal';
9
9
  size?: 'sm' | 'md' | 'lg';
10
- validation?: Schema;
10
+ validation?: Schema | Lazy<any>;
11
11
  validationMode?: 'change' | 'none';
12
12
  errorDisplay?: boolean;
13
13
  disabled?: InputHTMLAttributes['disabled'];
@@ -1,6 +1,6 @@
1
1
  import { type SelectOption } from '#imports';
2
2
  import { type InputHTMLAttributes } from 'vue';
3
- import type { Schema } from 'yup';
3
+ import type { Lazy, Schema } from 'yup';
4
4
  type __VLS_Props = {
5
5
  title?: string;
6
6
  label?: string;
@@ -9,7 +9,7 @@ type __VLS_Props = {
9
9
  layout?: 'vertical' | 'horizontal';
10
10
  size?: 'sm' | 'md' | 'lg';
11
11
  error?: string;
12
- validation?: Schema;
12
+ validation?: Schema | Lazy<any>;
13
13
  validationMode?: 'change' | 'blur' | 'none';
14
14
  errorDisplay?: boolean;
15
15
  id?: InputHTMLAttributes['id'];
@@ -1,5 +1,5 @@
1
1
  import { type Icon, type TileOption } from '#imports';
2
- import type { Schema } from 'yup';
2
+ import type { Lazy, Schema } from 'yup';
3
3
  type __VLS_Props = {
4
4
  name: string;
5
5
  icon?: Icon;
@@ -14,7 +14,7 @@ type __VLS_Props = {
14
14
  };
15
15
  size?: 'sm' | 'md' | 'lg';
16
16
  multiselect?: boolean;
17
- validation?: Schema;
17
+ validation?: Schema | Lazy<any>;
18
18
  validationMode?: 'change' | 'none';
19
19
  errorDisplay?: boolean;
20
20
  };
@@ -81,8 +81,7 @@ const sliderProgress = computed(() => ({
81
81
  $sliderHeight: 12px;
82
82
  $sliderThumb: 20px;
83
83
  $sliderProgress: calc(
84
- 0.5 * #{$sliderThumb} + var(--slider-progress-value) *
85
- (100% - #{$sliderThumb})
84
+ 0.5 * #{$sliderThumb} + var(--slider-progress-value) * (100% - #{$sliderThumb})
86
85
  );
87
86
 
88
87
  .input-wrapper {
@@ -113,9 +112,8 @@ $sliderProgress: calc(
113
112
  border: none;
114
113
  border-radius: $sliderHeight;
115
114
  box-shadow: inset 0px 0px 10px rgba(129, 129, 129, 0.25);
116
- background:
117
- linear-gradient($bright-green, $bright-green) 0 / $sliderProgress 100%
118
- no-repeat,
115
+ background: linear-gradient($bright-green, $bright-green) 0 /
116
+ $sliderProgress 100% no-repeat,
119
117
  $light-green;
120
118
  }
121
119
 
@@ -133,9 +131,8 @@ $sliderProgress: calc(
133
131
  border: none;
134
132
  border-radius: $sliderHeight;
135
133
  box-shadow: none;
136
- background:
137
- linear-gradient($bright-green, $bright-green) 0 / $sliderProgress 100%
138
- no-repeat,
134
+ background: linear-gradient($bright-green, $bright-green) 0 /
135
+ $sliderProgress 100% no-repeat,
139
136
  $light-green;
140
137
  }
141
138
 
@@ -151,17 +148,15 @@ $sliderProgress: calc(
151
148
  }
152
149
 
153
150
  &::-webkit-slider-runnable-track {
154
- background:
155
- linear-gradient($light-grey, $light-grey) 0 / $sliderProgress 100%
156
- no-repeat,
151
+ background: linear-gradient($light-grey, $light-grey) 0 /
152
+ $sliderProgress 100% no-repeat,
157
153
  $disabled-grey;
158
154
  cursor: auto;
159
155
  }
160
156
 
161
157
  &::-moz-range-track {
162
- background:
163
- linear-gradient($light-grey, $light-grey) 0 / $sliderProgress 100%
164
- no-repeat,
158
+ background: linear-gradient($light-grey, $light-grey) 0 /
159
+ $sliderProgress 100% no-repeat,
165
160
  $disabled-grey;
166
161
  cursor: auto;
167
162
  }
@@ -1,5 +1,5 @@
1
1
  import { type InputHTMLAttributes } from 'vue';
2
- import type { Schema } from 'yup';
2
+ import type { Lazy, Schema } from 'yup';
3
3
  type __VLS_Props = {
4
4
  title?: string;
5
5
  label?: string;
@@ -10,7 +10,7 @@ type __VLS_Props = {
10
10
  min: number;
11
11
  max: number;
12
12
  step: number;
13
- validation?: Schema;
13
+ validation?: Schema | Lazy<any>;
14
14
  validationMode?: 'change' | 'none';
15
15
  errorDisplay?: boolean;
16
16
  };
@@ -1,6 +1,6 @@
1
1
  import { type InputHTMLAttributes } from 'vue';
2
2
  import type { Icon } from '../../types/Icon.js';
3
- import type { Schema } from 'yup';
3
+ import type { Lazy, Schema } from 'yup';
4
4
  type __VLS_Props = {
5
5
  title?: string;
6
6
  label?: string;
@@ -8,7 +8,7 @@ type __VLS_Props = {
8
8
  placeholder?: InputHTMLAttributes['placeholder'];
9
9
  layout?: 'vertical' | 'horizontal';
10
10
  size?: 'sm' | 'md' | 'lg';
11
- validation?: Schema;
11
+ validation?: Schema | Lazy<any>;
12
12
  validationMode?: 'change' | 'blur' | 'none';
13
13
  errorDisplay?: boolean;
14
14
  id?: InputHTMLAttributes['id'];
@@ -1,5 +1,5 @@
1
1
  import type { TextareaHTMLAttributes } from 'vue';
2
- import type { Schema } from 'yup';
2
+ import type { Lazy, Schema } from 'yup';
3
3
  type __VLS_Props = {
4
4
  title?: string;
5
5
  label?: string;
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  placeholder?: TextareaHTMLAttributes['placeholder'];
8
8
  layout?: 'vertical' | 'horizontal';
9
9
  size?: 'sm' | 'md' | 'lg';
10
- validation?: Schema;
10
+ validation?: Schema | Lazy<any>;
11
11
  validationMode?: 'change' | 'blur' | 'none';
12
12
  errorDisplay?: boolean;
13
13
  id?: TextareaHTMLAttributes['id'];
@@ -1,5 +1,5 @@
1
1
  import type { InputHTMLAttributes } from 'vue';
2
- import type { Schema } from 'yup';
2
+ import type { Lazy, Schema } from 'yup';
3
3
  type __VLS_Props = {
4
4
  image?: string;
5
5
  value: InputHTMLAttributes['value'];
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  description?: string;
8
8
  disabled?: InputHTMLAttributes['disabled'];
9
9
  errorDisplay?: boolean;
10
- validation?: Schema;
10
+ validation?: Schema | Lazy<any>;
11
11
  validationMode?: 'change' | 'none';
12
12
  };
13
13
  type __VLS_PublicProps = __VLS_Props & {
@@ -1,5 +1,5 @@
1
1
  import type { InputHTMLAttributes } from 'vue';
2
- import type { Schema } from 'yup';
2
+ import type { Lazy, Schema } from 'yup';
3
3
  type __VLS_Props = {
4
4
  size?: 'sm' | 'md' | 'lg';
5
5
  value?: InputHTMLAttributes['value'];
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  name?: InputHTMLAttributes['name'];
8
8
  label?: string;
9
9
  fullWidth?: boolean;
10
- validation?: Schema;
10
+ validation?: Schema | Lazy<any>;
11
11
  errorDisplay?: boolean;
12
12
  validationMode?: 'change' | 'none';
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cja-phoenix",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Phoenix utility",
5
5
  "repository": "comparaja/phoenix",
6
6
  "license": "MIT",