portal-design-system 0.0.962 → 0.0.965

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/index.d.ts CHANGED
@@ -19,5 +19,4 @@ import { default as Pagination } from './components/Pagination.vue';
19
19
  import { default as RadioGroup } from './components/inputs/RadioGroup.vue';
20
20
  import { default as DialogHeading } from './components/overlays/Heading.vue';
21
21
  import { default as DateInput } from './components/inputs/DateInput.vue';
22
- export type { LoadOptionBaseType, DxCustomColumn, FilterOptionType, FilterOptionListType, SortOptionType, SortOptionListType } from './types';
23
22
  export { Button, Select, Input, DateInput, Error, Iconsax, IconsaxFont, Badge, Dialog, Icon, Text, Tabs, Dropdown, DurationTimeline, Drawer, DialogHeading, Pagination, RadioGroup, useOutsideClick, useWindowScroll, vTooltip };
package/dist/index.js CHANGED
@@ -18913,7 +18913,6 @@ const $o = [
18913
18913
  timezone: { default: void 0 },
18914
18914
  timeConfig: { default: () => ({ enableTimePicker: !1 }) },
18915
18915
  errors: {},
18916
- modelValue: {},
18917
18916
  required: { type: Boolean },
18918
18917
  autoApply: { type: Boolean, default: !0 }
18919
18918
  }, {
@@ -18923,22 +18922,17 @@ const $o = [
18923
18922
  emits: ["update:modelValue"],
18924
18923
  setup(e) {
18925
18924
  const o = e, t = mt(e, "modelValue"), r = W(() => {
18926
- if (t.value) {
18927
- if (o.range && Array.isArray(o.modelValue) && o.modelValue.length === 2 && o.modelValue.every((s) => s instanceof Date))
18928
- return !0;
18929
- if (!o.range)
18930
- return !!o.modelValue;
18931
- }
18932
- return !1;
18925
+ const s = t.value;
18926
+ return s ? o.range && Array.isArray(s) ? s.length === 2 && s.every((l) => l) : !0 : !1;
18933
18927
  }), n = W(() => {
18934
18928
  let s = "text-sm w-full h-12 flex items-center bg-surface-100 border border-surface-100 hover:border-base-neutral-300 focus:border-primary-red-700 focus:ring-0 outline-none transition-all duration-300 px-3 text-black placeholder:text-base-neutral-300 disabled:bg-input-disabled-bg disabled:hover:border-input-disabled-bg disabled:text-base-neutral-200 disabled:placeholder:text-base-neutral-200!";
18935
18929
  return o.rounded === "full" ? s += " rounded-full" : o.rounded === "lg" ? s += " rounded-lg" : s += " rounded-xl", no(s, o.classList);
18936
18930
  }), a = (s) => o.timeConfig.enableTimePicker ? s.toLocaleString("sv") : s.toLocaleDateString("sv"), i = W(() => {
18937
18931
  if (r.value) {
18938
- if (o.range && Array.isArray(o.modelValue) && o.modelValue.length === 2 && o.modelValue[0] && o.modelValue[1])
18939
- return `${a(new Date(o.modelValue[0]))} - ${a(new Date(o.modelValue[1]))}`;
18932
+ if (o.range && Array.isArray(t.value) && t.value.length === 2 && t.value[0] && t.value[1])
18933
+ return `${a(new Date(t.value[0]))} - ${a(new Date(t.value[1]))}`;
18940
18934
  if (!o.range)
18941
- return a(new Date(o.modelValue));
18935
+ return a(new Date(t.value));
18942
18936
  }
18943
18937
  return o.placeholder || "Select date";
18944
18938
  });
@@ -19008,7 +19002,7 @@ const $o = [
19008
19002
  Ee(ma, { errors: e.errors }, null, 8, ["errors"])
19009
19003
  ]));
19010
19004
  }
19011
- }), Dg = /* @__PURE__ */ or(dg, [["__scopeId", "data-v-275b3808"]]);
19005
+ }), Dg = /* @__PURE__ */ or(dg, [["__scopeId", "data-v-62c559a9"]]);
19012
19006
  export {
19013
19007
  fg as Badge,
19014
19008
  Kn as Button,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portal-design-system",
3
- "version": "0.0.962",
3
+ "version": "0.0.965",
4
4
  "description": "A type-safe Vue 3 UI library with Tailwind CSS and isolated styles",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",