@idds/vue 1.0.67 → 1.0.68

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
@@ -4154,53 +4154,53 @@ declare const _default: {
4154
4154
  };
4155
4155
  });
4156
4156
  Skeleton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4157
- size: {
4158
- type: import('vue').PropType<"sm" | "md" | "lg">;
4159
- default: string;
4160
- };
4161
- animation: {
4162
- type: import('vue').PropType<"none" | "pulse" | "wave">;
4157
+ className: {
4158
+ type: import('vue').PropType<string>;
4163
4159
  default: string;
4164
4160
  };
4165
4161
  width: {
4166
- type: import('vue').PropType<string | number>;
4167
- default: string;
4162
+ type: import('vue').PropType<string>;
4163
+ default: any;
4168
4164
  };
4169
4165
  height: {
4170
- type: import('vue').PropType<string | number>;
4166
+ type: import('vue').PropType<string>;
4171
4167
  default: string;
4172
4168
  };
4173
- variant: {
4174
- type: import('vue').PropType<"text" | "rectangular" | "circular">;
4169
+ rounded: {
4170
+ type: import('vue').PropType<"none" | "sm" | "md" | "lg" | "full" | "xs">;
4175
4171
  default: string;
4176
4172
  };
4177
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
4178
- size: {
4179
- type: import('vue').PropType<"sm" | "md" | "lg">;
4173
+ color: {
4174
+ type: import('vue').PropType<"gray" | "blue" | "green" | "red" | "yellow">;
4180
4175
  default: string;
4181
4176
  };
4182
- animation: {
4183
- type: import('vue').PropType<"none" | "pulse" | "wave">;
4177
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
4178
+ className: {
4179
+ type: import('vue').PropType<string>;
4184
4180
  default: string;
4185
4181
  };
4186
4182
  width: {
4187
- type: import('vue').PropType<string | number>;
4188
- default: string;
4183
+ type: import('vue').PropType<string>;
4184
+ default: any;
4189
4185
  };
4190
4186
  height: {
4191
- type: import('vue').PropType<string | number>;
4187
+ type: import('vue').PropType<string>;
4192
4188
  default: string;
4193
4189
  };
4194
- variant: {
4195
- type: import('vue').PropType<"text" | "rectangular" | "circular">;
4190
+ rounded: {
4191
+ type: import('vue').PropType<"none" | "sm" | "md" | "lg" | "full" | "xs">;
4192
+ default: string;
4193
+ };
4194
+ color: {
4195
+ type: import('vue').PropType<"gray" | "blue" | "green" | "red" | "yellow">;
4196
4196
  default: string;
4197
4197
  };
4198
4198
  }>> & Readonly<{}>, {
4199
- size: "sm" | "md" | "lg";
4200
- animation: "pulse" | "wave" | "none";
4201
- width: string | number;
4202
- height: string | number;
4203
- variant: "text" | "rectangular" | "circular";
4199
+ className: string;
4200
+ width: string;
4201
+ height: string;
4202
+ rounded: "none" | "xs" | "sm" | "md" | "lg" | "full";
4203
+ color: "gray" | "blue" | "green" | "red" | "yellow";
4204
4204
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4205
4205
  Spinner: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4206
4206
  size: {
package/dist/index.es.js CHANGED
@@ -2738,6 +2738,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
2738
2738
  "model-value": tempValue.value,
2739
2739
  class: "ina-chip__input",
2740
2740
  placeholder: "Masukkan data yang Anda inginkan",
2741
+ "show-clear-button": false,
2741
2742
  "onUpdate:modelValue": setTempValue,
2742
2743
  onBlur: handleBlur,
2743
2744
  onKeydown: handleKeydown
@@ -7711,28 +7712,35 @@ const Drawer = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d
7711
7712
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
7712
7713
  __name: "Skeleton",
7713
7714
  props: {
7714
- width: { default: "100%" },
7715
- height: { default: "1rem" },
7716
- variant: { default: "rectangular" },
7717
- animation: { default: "pulse" },
7718
- size: { default: "md" }
7715
+ className: { default: "" },
7716
+ color: { default: "gray" },
7717
+ width: { default: void 0 },
7718
+ height: { default: "32px" },
7719
+ rounded: { default: "md" }
7719
7720
  },
7720
7721
  setup(__props) {
7721
7722
  const props = __props;
7722
7723
  const skeletonClasses = computed(() => {
7723
7724
  const classes = ["ina-skeleton"];
7724
- classes.push(`ina-skeleton--variant-${props.variant}`);
7725
- classes.push(`ina-skeleton--animation-${props.animation}`);
7726
- classes.push(`ina-skeleton--size-${props.size}`);
7725
+ classes.push(`ina-skeleton--rounded-${props.rounded}`);
7726
+ classes.push(`ina-skeleton--color-${props.color}`);
7727
+ if (props.className) {
7728
+ classes.push(props.className);
7729
+ }
7727
7730
  return classes;
7728
7731
  });
7729
7732
  const skeletonStyle = computed(() => {
7730
7733
  const style = {};
7731
- if (props.width) {
7732
- style.width = typeof props.width === "number" ? `${props.width}px` : props.width;
7733
- }
7734
+ const isFixed = typeof props.width !== "undefined";
7734
7735
  if (props.height) {
7735
- style.height = typeof props.height === "number" ? `${props.height}px` : props.height;
7736
+ style.height = props.height;
7737
+ }
7738
+ if (isFixed) {
7739
+ style.flex = "0 0 auto";
7740
+ style.width = props.width;
7741
+ } else {
7742
+ style.flex = "1 1 auto";
7743
+ style.width = "auto";
7736
7744
  }
7737
7745
  return style;
7738
7746
  });
@@ -7741,7 +7749,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
7741
7749
  class: normalizeClass(["ina-skeleton", skeletonClasses.value]),
7742
7750
  style: normalizeStyle(skeletonStyle.value)
7743
7751
  }, [..._cache[0] || (_cache[0] = [
7744
- createElementVNode("div", { class: "ina-skeleton__shimmer" }, null, -1)
7752
+ createElementVNode("div", { class: "ina-skeleton__wave" }, null, -1)
7745
7753
  ])], 6);
7746
7754
  };
7747
7755
  }