cleek 2.1.3 → 2.1.8

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.
@@ -55,6 +55,8 @@ margin-padding-bottom(val)
55
55
 
56
56
  my-box-shadow(val = 0.05, color = black)
57
57
  box-shadow 0 4px 20px 0 rgba(color, val)
58
+ ck-box-shadow(val = 0.05, color = black)
59
+ box-shadow 0 4px 20px 0 rgba(color, val)
58
60
  // flex shortcuts
59
61
  justify-align-center()
60
62
  align-items center
@@ -1,8 +1,9 @@
1
+ @import './.custom';
1
2
  @import './align-items';
2
3
  @import './display';
4
+ @import './justify-content';
3
5
  @import './margin';
4
6
  @import './padding';
7
+ @import './position';
5
8
  @import './text-align';
6
- @import './width';
7
- @import './.custom';
8
- @import './justify-content';
9
+ @import './width';
@@ -0,0 +1,10 @@
1
+ .static
2
+ position static
3
+ .fixed
4
+ position fixed
5
+ .absolute
6
+ position absolute
7
+ .relative
8
+ position relative
9
+ .sticky
10
+ position sticky
package/dist/cleek.es.js CHANGED
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeClass, createCommentVNode, computed as computed$2, watch, h, unref as unref$1, createBlock, onMounted, getCurrentInstance, mergeProps, withKeys, withModifiers, pushScopeId, popScopeId, normalizeStyle, withCtx, createTextVNode, toDisplayString, withDirectives, isRef as isRef$1, vModelDynamic, createVNode, Fragment, renderList, vModelRadio, vModelSelect, vModelCheckbox, vModelText } from "vue";
20
+ import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeClass, createCommentVNode, computed as computed$2, normalizeStyle, unref as unref$1, watch, h, createBlock, onMounted, getCurrentInstance, mergeProps, withKeys, withModifiers, pushScopeId, popScopeId, withCtx, createTextVNode, toDisplayString, withDirectives, isRef as isRef$1, vModelDynamic, createVNode, Fragment, renderList, vModelRadio, vModelSelect, vModelCheckbox, vModelText } from "vue";
21
21
  var ckDropdown_vue_vue_type_style_index_0_scoped_true_lang = "";
22
22
  var _export_sfc = (sfc, props) => {
23
23
  const target = sfc.__vccOpts || sfc;
@@ -27,7 +27,7 @@ var _export_sfc = (sfc, props) => {
27
27
  return target;
28
28
  };
29
29
  const _hoisted_1$j = { class: "ck-dropdown" };
30
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
30
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
31
31
  props: {
32
32
  triggerType: { type: String, default: "click" },
33
33
  dark: { type: Boolean, default: false }
@@ -71,7 +71,44 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
71
71
  };
72
72
  }
73
73
  });
74
- var ckDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-64a91fb4"]]);
74
+ var ckDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-64a91fb4"]]);
75
+ var ckNavbar_vue_vue_type_style_index_0_scoped_true_lang = "";
76
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
77
+ props: {
78
+ padding: { type: String, default: 0 },
79
+ position: { type: String, default: "fixed" }
80
+ },
81
+ setup(__props) {
82
+ const props = __props;
83
+ const computedClassContent = computed$2(() => {
84
+ const list = [];
85
+ if (props.padding)
86
+ list.push("has-padding");
87
+ return list;
88
+ });
89
+ const computedStyle = computed$2(() => {
90
+ const list = [];
91
+ if (props.padding)
92
+ list.push({ padding: props.padding });
93
+ if (props.position)
94
+ list.push({ position: props.position });
95
+ return list;
96
+ });
97
+ return (_ctx, _cache) => {
98
+ return openBlock(), createElementBlock("div", {
99
+ class: "ck-navbar",
100
+ style: normalizeStyle(unref$1(computedStyle))
101
+ }, [
102
+ createElementVNode("div", {
103
+ class: normalizeClass(["ck-navbar__content", unref$1(computedClassContent)])
104
+ }, [
105
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
106
+ ], 2)
107
+ ], 4);
108
+ };
109
+ }
110
+ });
111
+ var ckNavbar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-5024db6a"]]);
75
112
  var validators = {
76
113
  size: (type) => {
77
114
  return ["", "xs", "s", "m", "l", "xl"].includes(type);
@@ -12299,7 +12336,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
12299
12336
  };
12300
12337
  }
12301
12338
  });
12302
- var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-73ff343b"]]);
12339
+ var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-5333de26"]]);
12303
12340
  var globalVariables = {
12304
12341
  defaultFailImg: "df",
12305
12342
  imagesFolderPath: "",
@@ -12321,7 +12358,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
12321
12358
  zoomTitle: { type: String, default: "" },
12322
12359
  hasBorder: { type: Boolean, default: false },
12323
12360
  radius: { type: String, default: "" },
12324
- borderColor: { type: String, default: "" }
12361
+ borderColor: { type: String, default: "" },
12362
+ rounded: { type: Boolean, default: false }
12325
12363
  },
12326
12364
  setup(__props) {
12327
12365
  const props = __props;
@@ -12336,12 +12374,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
12336
12374
  });
12337
12375
  const computedClass = computed$2(() => {
12338
12376
  const classList2 = [];
12339
- let size = props.size;
12340
- if (!size && !props.sizeAbsolute && !props.width && !props.height) {
12341
- size = "m";
12342
- }
12343
- if (size)
12344
- classList2.push(`ck-img__size--${size}`);
12377
+ console.log("img size", props.size);
12378
+ if (props.size)
12379
+ classList2.push(`ck-img__size--${props.size}`);
12380
+ if (props.rounded)
12381
+ classList2.push("is-rounded");
12345
12382
  if (props.hasBorder) {
12346
12383
  classList2.push("ck-img__has-border");
12347
12384
  if (functions$1.isColorTemplateVariable(realBorderColor.value)) {
@@ -12415,7 +12452,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
12415
12452
  };
12416
12453
  }
12417
12454
  });
12418
- var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-53d78f2e"]]);
12455
+ var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-73b4f438"]]);
12419
12456
  var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
12420
12457
  const _hoisted_1$e = ["for"];
12421
12458
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
@@ -12443,7 +12480,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
12443
12480
  };
12444
12481
  }
12445
12482
  });
12446
- var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-6efffcd8"]]);
12483
+ var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-ef74ea02"]]);
12447
12484
  var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
12448
12485
  const _hoisted_1$d = { class: "ck-input" };
12449
12486
  const _hoisted_2$7 = ["type", "placeholder", "id", "disabled"];
@@ -12551,7 +12588,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
12551
12588
  };
12552
12589
  }
12553
12590
  });
12554
- var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-61fababc"]]);
12591
+ var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-5db08b1e"]]);
12555
12592
  var ckPopup_vue_vue_type_style_index_0_lang = "";
12556
12593
  const _hoisted_1$c = {
12557
12594
  key: 0,
@@ -13317,7 +13354,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
13317
13354
  };
13318
13355
  }
13319
13356
  });
13320
- var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-dfbb0b9e"]]);
13357
+ var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-2c3e07c8"]]);
13321
13358
  const _hoisted_1$7 = { class: "ck-tr" };
13322
13359
  function render$1(_ctx, _cache) {
13323
13360
  return openBlock(), createElementBlock("tr", _hoisted_1$7, [
@@ -13470,7 +13507,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13470
13507
  };
13471
13508
  }
13472
13509
  });
13473
- var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-350be915"]]);
13510
+ var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-4f5cca80"]]);
13474
13511
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
13475
13512
  const _hoisted_1$4 = { class: "ck-table__pagination" };
13476
13513
  const _hoisted_2$2 = ["onClick"];
@@ -13598,7 +13635,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
13598
13635
  };
13599
13636
  }
13600
13637
  }));
13601
- var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-7ad6042e"]]);
13638
+ var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-4045b8e3"]]);
13602
13639
  var ckTable__columnsManager_vue_vue_type_style_index_0_scoped_true_lang = "";
13603
13640
  const _hoisted_1$3 = { class: "columns-manger-container" };
13604
13641
  const _hoisted_2$1 = { class: "columns-manger__item" };
@@ -13822,6 +13859,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
13822
13859
  nowrap: { type: Boolean, default: false },
13823
13860
  block: { type: Boolean, default: false },
13824
13861
  autoWidth: { type: Boolean, default: false },
13862
+ overflowAuto: { type: Boolean, default: false },
13825
13863
  align: { type: String, default: void 0, validator: validators.align },
13826
13864
  fixedWidth: { type: String, default: "" },
13827
13865
  minWidth: { type: String, default: "" },
@@ -13832,7 +13870,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
13832
13870
  const props = __props;
13833
13871
  const computedTdClass = computed$2(() => {
13834
13872
  return {
13835
- "auto-width": props.autoWidth
13873
+ "auto-width": props.autoWidth,
13874
+ "overflow-auto": props.overflowAuto
13836
13875
  };
13837
13876
  });
13838
13877
  const computedSpanClass = computed$2(() => {
@@ -13888,7 +13927,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
13888
13927
  };
13889
13928
  }
13890
13929
  });
13891
- var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-47b8a441"]]);
13930
+ var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-63af303c"]]);
13892
13931
  var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
13893
13932
  const _hoisted_1$1 = { class: "ck-textarea" };
13894
13933
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
@@ -16530,6 +16569,7 @@ var components = /* @__PURE__ */ Object.freeze({
16530
16569
  __proto__: null,
16531
16570
  [Symbol.toStringTag]: "Module",
16532
16571
  ckDropdown,
16572
+ ckNavbar,
16533
16573
  ckButton,
16534
16574
  ckCheckbox,
16535
16575
  ckChip,
@@ -16584,4 +16624,4 @@ const install = function installCleek(app, options) {
16584
16624
  app.component(componentName, component);
16585
16625
  });
16586
16626
  };
16587
- export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, ckDropdown, ckIcon, ckImg, ckInput, ckLabel, _sfc_main$e as ckPopup, ckRadio, ckSelect, ckSwitch, ckSwitchOptions, ckTable, ckTd, ckTextarea, ckTh, ckTooltip, ckTr, install as default, lockScroll, unlockScroll };
16627
+ export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, ckDropdown, ckIcon, ckImg, ckInput, ckLabel, ckNavbar, _sfc_main$e as ckPopup, ckRadio, ckSelect, ckSwitch, ckSwitchOptions, ckTable, ckTd, ckTextarea, ckTh, ckTooltip, ckTr, install as default, lockScroll, unlockScroll };