cleek 2.7.12 → 2.7.14

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.
@@ -1,68 +1,88 @@
1
- margin-x(margin)
2
- margin-right margin
3
- margin-left margin
4
- margin-y(margin)
5
- margin-top margin
6
- margin-bottom margin
7
- padding-x(padding)
8
- padding-right padding
9
- padding-left padding
10
- padding-y(padding)
11
- padding-top padding
12
- padding-bottom padding
13
- border-x(width, type, color)
14
- border-left width type color
15
- border-right width type color
16
- border-y(width, type, color)
17
- border-top width type color
18
- border-bottom width type color
19
- border-radius-left(radius)
20
- border-top-left-radius radius
21
- border-bottom-left-radius radius
22
- border-radius-right(radius)
23
- border-top-right-radius radius
24
- border-bottom-right-radius radius
25
- border-radius-top(radius)
26
- border-top-left-radius radius
27
- border-top-right-radius radius
28
- border-radius-bottom(radius)
29
- border-bottom-left-radius radius
30
- border-bottom-right-radius radius
31
- width-height(val)
32
- width val
33
- height val
34
- min-max-width(val)
35
- min-width val
36
- max-width val
37
- min-max-height(val)
38
- min-height val
39
- max-height val
40
- margin-padding(val)
41
- margin val
42
- padding val
43
- margin-padding-left(val)
44
- margin-left val
45
- padding-left val
46
- margin-padding-right(val)
47
- margin-right val
48
- padding-right val
49
- margin-padding-top(val)
50
- margin-top val
51
- padding-top val
52
- margin-padding-bottom(val)
53
- margin-bottom val
54
- padding-bottom val
55
-
56
- my-box-shadow(val = 0.05, color = black)
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)
60
-
61
- // flex shortcuts
62
- justify-align-center()
63
- align-items center
64
- justify-content center
65
-
1
+ // margin
2
+ margin-x($margin-x)
3
+ margin-left $margin-x
4
+ margin-right $margin-x
5
+ margin-y($margin-y)
6
+ margin-top $margin-y
7
+ margin-bottom $margin-y
8
+ margin-left-right($margin-left, $margin-right)
9
+ margin-left $margin-left
10
+ margin-right $margin-right
11
+ margin-top-bottom($margin-top, $margin-bottom)
12
+ margin-top $margin-top
13
+ margin-bottom $margin-bottom
14
+ // padding
15
+ padding-x($padding-x)
16
+ padding-left $padding-x
17
+ padding-right $padding-x
18
+ padding-y($padding-y)
19
+ padding-top $padding-y
20
+ padding-bottom $padding-y
21
+ padding-left-right($padding-left, $padding-right)
22
+ padding-left $padding-left
23
+ padding-right $padding-right
24
+ padding-top-bottom($padding-top, $padding-bottom)
25
+ padding-top $padding-top
26
+ padding-bottom $padding-bottom
27
+ // border
28
+ border-x($width, $type, $color)
29
+ border-left $width $type $color
30
+ border-right $width $type $color
31
+ border-y($width, $type, $color)
32
+ border-top $width $type $color
33
+ border-bottom $width $type $color
34
+ // border-radius
35
+ border-radius-left($radius)
36
+ border-top-left-radius $radius
37
+ border-bottom-left-radius $radius
38
+ border-radius-right($radius)
39
+ border-top-right-radius $radius
40
+ border-bottom-right-radius $radius
41
+ border-radius-top($radius)
42
+ border-top-left-radius $radius
43
+ border-top-right-radius $radius
44
+ border-radius-bottom($radius)
45
+ border-bottom-left-radius $radius
46
+ border-bottom-right-radius $radius
47
+ // width - height
48
+ width-height($val)
49
+ width $val
50
+ height $val
51
+ min-max-width($val)
52
+ min-width $val
53
+ max-width $val
54
+ min-max-height($val)
55
+ min-height $val
56
+ max-height $val
57
+ // margin - padding
58
+ margin-padding($val)
59
+ margin $val
60
+ padding $val
61
+ margin-padding-left($val)
62
+ margin-left $val
63
+ padding-left $val
64
+ margin-padding-right($val)
65
+ margin-right $val
66
+ padding-right $val
67
+ margin-padding-top($val)
68
+ margin-top $val
69
+ padding-top $val
70
+ margin-padding-bottom($val)
71
+ margin-bottom $val
72
+ padding-bottom $val
73
+ // box-shadow
74
+ my-box-shadow($val = 0.05, $color = black)
75
+ box-shadow 0 4px 20px 0 rgba($color, $val)
76
+ ck-box-shadow($val = 0.05, $color = black)
77
+ box-shadow 0 4px 20px 0 rgba($color, $val)
78
+ // flex
79
+ flex($flex-direction = row, $justify-content = flex-start, $align-items = stretch, $gap = 0, $flex-wrap = nowrap)
80
+ display flex
81
+ flex-direction $flex-direction
82
+ justify-content $justify-content
83
+ align-items $align-items
84
+ gap $gap
85
+ flex-wrap $flex-wrap
66
86
  flex-center()
67
87
  display flex
68
88
  align-items center
@@ -72,11 +92,6 @@ inline-flex-center()
72
92
  align-items center
73
93
  justify-content center
74
94
 
75
- flex-all-center() // should be deleted
76
- flex-center()
77
- inline-flex-all-center() // should be deleted
78
- inline-flex-center()
79
-
80
95
  unselectable()
81
96
  user-select none
82
97
  -moz-user-select none
@@ -84,9 +99,9 @@ unselectable()
84
99
  -webkit-user-select none
85
100
  -o-user-select none
86
101
 
87
- dynamic-rgba(rgb-variable, opacity = 1)
102
+ dynamic-rgba($rgb-variable, $opacity = 1)
88
103
  // return rgba as a string so it doesn't get interpolated by stylus compiler
89
- s('rgba(var(%s), %s)', rgb-variable, opacity)
104
+ s('rgba(var(%s), %s)', $rgb-variable, $opacity)
90
105
 
91
106
  //
92
107
  //
package/dist/cleek.es.js CHANGED
@@ -1,3 +1,9 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj2, key, value) => key in obj2 ? __defProp(obj2, key, { enumerable: true, configurable: true, writable: true, value }) : obj2[key] = value;
3
+ var __publicField = (obj2, key, value) => {
4
+ __defNormalProp(obj2, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
1
7
  import { watch as watch$1, effectScope, reactive as reactive$2, computed as computed$3, pushScopeId as pushScopeId$2, popScopeId as popScopeId$2, defineComponent as defineComponent$2, nextTick as nextTick$4, openBlock as openBlock$2, createBlock as createBlock$2, createElementBlock as createElementBlock$2, normalizeClass as normalizeClass$2, renderSlot as renderSlot$2, normalizeProps as normalizeProps$1, guardReactiveProps as guardReactiveProps$2, withScopeId as withScopeId$2, resolveComponent as resolveComponent$2, normalizeStyle as normalizeStyle$2, withKeys as withKeys$2, createElementVNode, Fragment as Fragment$2, createCommentVNode as createCommentVNode$2, withCtx as withCtx$2, createVNode as createVNode$2, ref as ref$1, createApp, h as h$2, mergeProps as mergeProps$2, toDisplayString as toDisplayString$1, resolveDirective, createTextVNode as createTextVNode$2, withDirectives as withDirectives$1, unref as unref$3, onMounted as onMounted$1, getCurrentInstance as getCurrentInstance$1, onBeforeUnmount as onBeforeUnmount$1, vModelText, vModelDynamic, renderList as renderList$1, withModifiers as withModifiers$1, Teleport as Teleport$1, watchEffect, resolveDynamicComponent as resolveDynamicComponent$1, vShow as vShow$1, vModelRadio, vModelSelect, vModelCheckbox } from "vue";
2
8
  function getDevtoolsGlobalHook$2() {
3
9
  return getTarget$2().__VUE_DEVTOOLS_GLOBAL_HOOK__;
@@ -26121,21 +26127,21 @@ const computePosition$2 = (reference, floating, options) => computePosition$3(re
26121
26127
  platform: platform$1,
26122
26128
  ...options
26123
26129
  });
26124
- var __defProp = Object.defineProperty;
26130
+ var __defProp2 = Object.defineProperty;
26125
26131
  var __defProps = Object.defineProperties;
26126
26132
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
26127
26133
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
26128
26134
  var __hasOwnProp = Object.prototype.hasOwnProperty;
26129
26135
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
26130
- var __defNormalProp = (obj2, key, value) => key in obj2 ? __defProp(obj2, key, { enumerable: true, configurable: true, writable: true, value }) : obj2[key] = value;
26136
+ var __defNormalProp2 = (obj2, key, value) => key in obj2 ? __defProp2(obj2, key, { enumerable: true, configurable: true, writable: true, value }) : obj2[key] = value;
26131
26137
  var __spreadValues = (a32, b222) => {
26132
26138
  for (var prop in b222 || (b222 = {}))
26133
26139
  if (__hasOwnProp.call(b222, prop))
26134
- __defNormalProp(a32, prop, b222[prop]);
26140
+ __defNormalProp2(a32, prop, b222[prop]);
26135
26141
  if (__getOwnPropSymbols)
26136
26142
  for (var prop of __getOwnPropSymbols(b222)) {
26137
26143
  if (__propIsEnum.call(b222, prop))
26138
- __defNormalProp(a32, prop, b222[prop]);
26144
+ __defNormalProp2(a32, prop, b222[prop]);
26139
26145
  }
26140
26146
  return a32;
26141
26147
  };
@@ -46130,21 +46136,21 @@ const withKeys = (fn2, modifiers) => {
46130
46136
  }
46131
46137
  };
46132
46138
  };
46133
- var __defProp2 = Object.defineProperty;
46139
+ var __defProp22 = Object.defineProperty;
46134
46140
  var __defProps2 = Object.defineProperties;
46135
46141
  var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
46136
46142
  var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
46137
46143
  var __hasOwnProp2 = Object.prototype.hasOwnProperty;
46138
46144
  var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
46139
- var __defNormalProp2 = (obj2, key, value) => key in obj2 ? __defProp2(obj2, key, { enumerable: true, configurable: true, writable: true, value }) : obj2[key] = value;
46145
+ var __defNormalProp22 = (obj2, key, value) => key in obj2 ? __defProp22(obj2, key, { enumerable: true, configurable: true, writable: true, value }) : obj2[key] = value;
46140
46146
  var __spreadValues2 = (a32, b222) => {
46141
46147
  for (var prop in b222 || (b222 = {}))
46142
46148
  if (__hasOwnProp2.call(b222, prop))
46143
- __defNormalProp2(a32, prop, b222[prop]);
46149
+ __defNormalProp22(a32, prop, b222[prop]);
46144
46150
  if (__getOwnPropSymbols2)
46145
46151
  for (var prop of __getOwnPropSymbols2(b222)) {
46146
46152
  if (__propIsEnum2.call(b222, prop))
46147
- __defNormalProp2(a32, prop, b222[prop]);
46153
+ __defNormalProp22(a32, prop, b222[prop]);
46148
46154
  }
46149
46155
  return a32;
46150
46156
  };
@@ -48100,21 +48106,21 @@ const platform = {
48100
48106
  const computePosition = (reference, floating, options) => computePosition$1(reference, floating, __spreadValues2({
48101
48107
  platform
48102
48108
  }, options));
48103
- var __defProp22 = Object.defineProperty;
48109
+ var __defProp222 = Object.defineProperty;
48104
48110
  var __defProps22 = Object.defineProperties;
48105
48111
  var __getOwnPropDescs22 = Object.getOwnPropertyDescriptors;
48106
48112
  var __getOwnPropSymbols22 = Object.getOwnPropertySymbols;
48107
48113
  var __hasOwnProp22 = Object.prototype.hasOwnProperty;
48108
48114
  var __propIsEnum22 = Object.prototype.propertyIsEnumerable;
48109
- var __defNormalProp22 = (obj2, key, value) => key in obj2 ? __defProp22(obj2, key, { enumerable: true, configurable: true, writable: true, value }) : obj2[key] = value;
48115
+ var __defNormalProp222 = (obj2, key, value) => key in obj2 ? __defProp222(obj2, key, { enumerable: true, configurable: true, writable: true, value }) : obj2[key] = value;
48110
48116
  var __spreadValues22 = (a32, b222) => {
48111
48117
  for (var prop in b222 || (b222 = {}))
48112
48118
  if (__hasOwnProp22.call(b222, prop))
48113
- __defNormalProp22(a32, prop, b222[prop]);
48119
+ __defNormalProp222(a32, prop, b222[prop]);
48114
48120
  if (__getOwnPropSymbols22)
48115
48121
  for (var prop of __getOwnPropSymbols22(b222)) {
48116
48122
  if (__propIsEnum22.call(b222, prop))
48117
- __defNormalProp22(a32, prop, b222[prop]);
48123
+ __defNormalProp222(a32, prop, b222[prop]);
48118
48124
  }
48119
48125
  return a32;
48120
48126
  };
@@ -91274,8 +91280,20 @@ var ckNotify = {
91274
91280
  this.notify({ text: text2, title, color: "warning", duration });
91275
91281
  }
91276
91282
  };
91283
+ class TableData {
91284
+ constructor(itemsPerPage) {
91285
+ __publicField(this, "search", "");
91286
+ __publicField(this, "currentPage", 1);
91287
+ __publicField(this, "listLength", 0);
91288
+ __publicField(this, "itemsPerPage", 20);
91289
+ if (itemsPerPage) {
91290
+ this.itemsPerPage = itemsPerPage;
91291
+ }
91292
+ }
91293
+ }
91277
91294
  var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91278
91295
  __proto__: null,
91296
+ TableData,
91279
91297
  CkDatetimeShower: ckDatetimeShower,
91280
91298
  CkTimeShower: ckTimeShower,
91281
91299
  CkDropdown: ckDropdown,
@@ -91351,4 +91369,4 @@ const install3 = function installCleek(app, options) {
91351
91369
  app.component(componentName, component);
91352
91370
  });
91353
91371
  };
91354
- export { CkButton, ckCard as CkCard, CkCheckbox, ckChip as CkChip, ckCircle as CkCircle, ckDatetimeShower as CkDatetimeShower, _sfc_main$a as CkDiv, ckDropdown as CkDropdown, CkIcon, ckImg as CkImg, CkInput, ckInputDate as CkInputDate, _sfc_main$e as CkInputTime, CkLabel, ckNavbar as CkNavbar, _sfc_main$g as CkPagination, _sfc_main$j as CkPopup, ckRadio as CkRadio, ckSelect as CkSelect, ckSidebar as CkSidebar, ckSwitch as CkSwitch, ckSwitchOptions as CkSwitchOptions, ckTable as CkTable, CkTd, ckTextarea as CkTextarea, CkTh, ckTimeShower as CkTimeShower, CkTr, ckNotify, install3 as default, useWindowWidth };
91372
+ export { CkButton, ckCard as CkCard, CkCheckbox, ckChip as CkChip, ckCircle as CkCircle, ckDatetimeShower as CkDatetimeShower, _sfc_main$a as CkDiv, ckDropdown as CkDropdown, CkIcon, ckImg as CkImg, CkInput, ckInputDate as CkInputDate, _sfc_main$e as CkInputTime, CkLabel, ckNavbar as CkNavbar, _sfc_main$g as CkPagination, _sfc_main$j as CkPopup, ckRadio as CkRadio, ckSelect as CkSelect, ckSidebar as CkSidebar, ckSwitch as CkSwitch, ckSwitchOptions as CkSwitchOptions, ckTable as CkTable, CkTd, ckTextarea as CkTextarea, CkTh, ckTimeShower as CkTimeShower, CkTr, TableData, ckNotify, install3 as default, useWindowWidth };