cleek 2.1.16 → 2.1.20

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.
@@ -0,0 +1,18 @@
1
+ .font-thin
2
+ font-weight 100
3
+ .font-extralight
4
+ font-weight 200
5
+ .font-light
6
+ font-weight 300
7
+ .font-normal
8
+ font-weight 400
9
+ .font-medium
10
+ font-weight 500
11
+ .font-semibold
12
+ font-weight 600
13
+ .font-bold
14
+ font-weight 700
15
+ .font-extrabold
16
+ font-weight 800
17
+ .font-black
18
+ font-weight 900
@@ -1,6 +1,7 @@
1
1
  @import './.custom';
2
2
  @import './align-items';
3
3
  @import './display';
4
+ @import './font-weight';
4
5
  @import './justify-content';
5
6
  @import './margin';
6
7
  @import './padding';
package/dist/cleek.es.js CHANGED
@@ -11501,6 +11501,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11501
11501
  type: { type: String, default: "outlined", validator: validators.buttonType },
11502
11502
  color: { type: String, default: "primary" },
11503
11503
  align: { type: String, default: "left", validator: validators.align },
11504
+ size: { type: String, default: "m", validator: validators.size },
11504
11505
  icon: { type: [String, Array], default: void 0 },
11505
11506
  iconPack: { type: String, default: void 0 },
11506
11507
  iconRight: { type: String, default: void 0 },
@@ -11513,7 +11514,6 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11513
11514
  emits: ["click"],
11514
11515
  setup(__props, { emit: emits }) {
11515
11516
  const props = __props;
11516
- let context;
11517
11517
  const isMounted = ref(false);
11518
11518
  const computedClass = computed$2(() => {
11519
11519
  const classList2 = [];
@@ -11528,25 +11528,21 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11528
11528
  if (props.align !== "left") {
11529
11529
  classList2.push(`ck-button__align--${props.align}`);
11530
11530
  }
11531
- if (isMounted.value) {
11532
- if (!context.$slots.default) {
11533
- if (props.icon || props.iconRight) {
11534
- if (!(props.icon && props.iconRight))
11535
- classList2.push("just-icon");
11536
- }
11537
- }
11538
- }
11531
+ if (isMounted.value)
11532
+ ;
11539
11533
  let type = props.type;
11540
11534
  if (!validators.buttonType(props.type))
11541
11535
  type = "outlined";
11542
11536
  classList2.push(`type-${type}`);
11537
+ if (props.size)
11538
+ classList2.push(`rs-component-size__${props.size}`);
11543
11539
  return classList2;
11544
11540
  });
11545
11541
  function onClick(event) {
11546
11542
  emits("click", event);
11547
11543
  }
11548
11544
  onMounted(() => {
11549
- context = getCurrentInstance().ctx;
11545
+ getCurrentInstance().ctx;
11550
11546
  isMounted.value = true;
11551
11547
  });
11552
11548
  return (_ctx, _cache) => {
@@ -11575,7 +11571,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11575
11571
  };
11576
11572
  }
11577
11573
  });
11578
- var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-36b03be6"]]);
11574
+ var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-0641f9bc"]]);
11579
11575
  var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
11580
11576
  const _hoisted_1$f = ["for"];
11581
11577
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
@@ -11606,11 +11602,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
11606
11602
  var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-ef74ea02"]]);
11607
11603
  var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
11608
11604
  const _hoisted_1$e = { class: "ck-input" };
11609
- const _hoisted_2$8 = ["type", "placeholder", "id", "disabled"];
11605
+ const _hoisted_2$8 = ["autocomplete", "type", "placeholder", "id", "disabled"];
11610
11606
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
11611
11607
  props: {
11612
11608
  modelValue: {},
11613
11609
  type: { type: String, validator: validators.inputType, default: "text" },
11610
+ autocomplete: { type: Boolean, default: false },
11614
11611
  disabled: { type: Boolean, default: false },
11615
11612
  placeholder: { type: String, default: void 0 },
11616
11613
  label: { type: String, default: void 0 },
@@ -11698,6 +11695,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
11698
11695
  ref_key: "realInput",
11699
11696
  ref: realInput,
11700
11697
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
11698
+ autocomplete: __props.autocomplete,
11701
11699
  type: __props.type,
11702
11700
  placeholder: __props.placeholder,
11703
11701
  class: normalizeClass(unref$1(computedClassInput)),
@@ -11721,7 +11719,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
11721
11719
  };
11722
11720
  }
11723
11721
  });
11724
- var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-7a01f122"]]);
11722
+ var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-6773af39"]]);
11725
11723
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
11726
11724
  const _hoisted_1$d = { class: "ck-table__header-items" };
11727
11725
  const _sfc_main$e = /* @__PURE__ */ defineComponent({