@iankibetsh/shframework 1.5.0 → 1.5.2

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.
@@ -95,6 +95,21 @@
95
95
  flex-grow: 1;
96
96
  }
97
97
 
98
+ .sh-selected-item{
99
+ line-height: unset!important;
100
+ }
101
+ .sh-suggestion-input{
102
+ padding: 0.375rem 0.75rem;
103
+ }
104
+ .sh-suggest{
105
+ margin-bottom: 1rem;
106
+ }
107
+ .sh-suggest-control::after{
108
+ margin-top: auto;
109
+ margin-bottom: auto;
110
+ margin-right: 0.255em;
111
+ }
112
+
98
113
  :root {
99
114
  --ck-z-default: 10555 !important;
100
115
  --ck-z-modal: calc(var(--ck-z-default) + 999) !important;
@@ -116,21 +131,6 @@
116
131
  }
117
132
  }
118
133
 
119
- .sh-selected-item{
120
- line-height: unset!important;
121
- }
122
- .sh-suggestion-input{
123
- padding: 0.375rem 0.75rem;
124
- }
125
- .sh-suggest{
126
- margin-bottom: 1rem;
127
- }
128
- .sh-suggest-control::after{
129
- margin-top: auto;
130
- margin-bottom: auto;
131
- margin-right: 0.255em;
132
- }
133
-
134
134
  .sh-forgot-link, .sh-register-link{
135
135
  cursor: pointer;
136
136
  }
package/dist/library.js CHANGED
@@ -1887,8 +1887,8 @@ var script$o = {
1887
1887
  isoCode: 'KE',
1888
1888
  flag: 'https://www.countryflags.io/KE/flat/64.png'
1889
1889
  },
1890
- flag: window.VITE_APP_HOME_URL + 'flags/ke.svg',
1891
- appUrl: window.VITE_APP_HOME_URL
1890
+ flag: undefined.VITE_APP_HOME_URL + 'flags/ke.svg',
1891
+ appUrl: undefined.VITE_APP_HOME_URL
1892
1892
  }
1893
1893
  },
1894
1894
  updated () {
@@ -2906,7 +2906,7 @@ script$j.__file = "src/lib/components/form-components/NumberInput.vue";
2906
2906
 
2907
2907
  var script$i = {
2908
2908
  __name: 'TextInput',
2909
- props: ['modelValue','label'],
2909
+ props: ['modelValue','label','isInvalid'],
2910
2910
  emits: ['update:modelValue','clearValidationErrors'],
2911
2911
  setup(__props, { emit }) {
2912
2912
 
@@ -3270,12 +3270,13 @@ return (_ctx, _cache) => {
3270
3270
  }, null, 10 /* CLASS, PROPS */, _hoisted_2$a))
3271
3271
  : vue.createCommentVNode("v-if", true),
3272
3272
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getFieldComponent(field)), vue.mergeProps(getComponentProps(field), {
3273
+ isInvalid: typeof validationErrors.value[field.field] !== 'undefined',
3273
3274
  onClick: $event => (removeValidationError(field.field)),
3274
3275
  "onUpdate:modelValue": [$event => (removeValidationError(field.field)), $event => ((formFields.value[index].value) = $event)],
3275
3276
  modelValue: formFields.value[index].value,
3276
3277
  placeholder: vue.unref(isFloating) ? field.label:field.placeholder,
3277
3278
  class: getComponentClass(field.field)
3278
- }), null, 16 /* FULL_PROPS */, ["onClick", "onUpdate:modelValue", "modelValue", "placeholder", "class"])),
3279
+ }), null, 16 /* FULL_PROPS */, ["isInvalid", "onClick", "onUpdate:modelValue", "modelValue", "placeholder", "class"])),
3279
3280
  (vue.unref(isFloating) && field.label)
3280
3281
  ? (vue.openBlock(), vue.createElementBlock("label", {
3281
3282
  key: 1,
package/dist/library.mjs CHANGED
@@ -1874,8 +1874,8 @@ var script$o = {
1874
1874
  isoCode: 'KE',
1875
1875
  flag: 'https://www.countryflags.io/KE/flat/64.png'
1876
1876
  },
1877
- flag: window.VITE_APP_HOME_URL + 'flags/ke.svg',
1878
- appUrl: window.VITE_APP_HOME_URL
1877
+ flag: import.meta.env.VITE_APP_HOME_URL + 'flags/ke.svg',
1878
+ appUrl: import.meta.env.VITE_APP_HOME_URL
1879
1879
  }
1880
1880
  },
1881
1881
  updated () {
@@ -2893,7 +2893,7 @@ script$j.__file = "src/lib/components/form-components/NumberInput.vue";
2893
2893
 
2894
2894
  var script$i = {
2895
2895
  __name: 'TextInput',
2896
- props: ['modelValue','label'],
2896
+ props: ['modelValue','label','isInvalid'],
2897
2897
  emits: ['update:modelValue','clearValidationErrors'],
2898
2898
  setup(__props, { emit }) {
2899
2899
 
@@ -3257,12 +3257,13 @@ return (_ctx, _cache) => {
3257
3257
  }, null, 10 /* CLASS, PROPS */, _hoisted_2$a))
3258
3258
  : createCommentVNode("v-if", true),
3259
3259
  (openBlock(), createBlock(resolveDynamicComponent(getFieldComponent(field)), mergeProps(getComponentProps(field), {
3260
+ isInvalid: typeof validationErrors.value[field.field] !== 'undefined',
3260
3261
  onClick: $event => (removeValidationError(field.field)),
3261
3262
  "onUpdate:modelValue": [$event => (removeValidationError(field.field)), $event => ((formFields.value[index].value) = $event)],
3262
3263
  modelValue: formFields.value[index].value,
3263
3264
  placeholder: unref(isFloating) ? field.label:field.placeholder,
3264
3265
  class: getComponentClass(field.field)
3265
- }), null, 16 /* FULL_PROPS */, ["onClick", "onUpdate:modelValue", "modelValue", "placeholder", "class"])),
3266
+ }), null, 16 /* FULL_PROPS */, ["isInvalid", "onClick", "onUpdate:modelValue", "modelValue", "placeholder", "class"])),
3266
3267
  (unref(isFloating) && field.label)
3267
3268
  ? (openBlock(), createElementBlock("label", {
3268
3269
  key: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",