@nubisco/ui 1.0.5 → 1.1.0
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/components/Grid.vue.d.ts +38 -39
- package/dist/components/Grid.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +50 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13151,9 +13151,13 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
|
|
|
13151
13151
|
default: "div"
|
|
13152
13152
|
},
|
|
13153
13153
|
dir: {
|
|
13154
|
-
type: [
|
|
13154
|
+
type: [
|
|
13155
|
+
String,
|
|
13156
|
+
Object,
|
|
13157
|
+
Function
|
|
13158
|
+
],
|
|
13155
13159
|
default: "row",
|
|
13156
|
-
validator: (e) => typeof e == "string" ? [
|
|
13160
|
+
validator: (e) => typeof e == "function" ? !0 : typeof e == "string" ? [
|
|
13157
13161
|
"row",
|
|
13158
13162
|
"col",
|
|
13159
13163
|
"row-reverse",
|
|
@@ -13166,9 +13170,13 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
|
|
|
13166
13170
|
].includes(e))
|
|
13167
13171
|
},
|
|
13168
13172
|
align: {
|
|
13169
|
-
type: [
|
|
13173
|
+
type: [
|
|
13174
|
+
String,
|
|
13175
|
+
Object,
|
|
13176
|
+
Function
|
|
13177
|
+
],
|
|
13170
13178
|
default: null,
|
|
13171
|
-
validator: (e) => e == null ? !0 : typeof e == "string" ? [
|
|
13179
|
+
validator: (e) => e == null || typeof e == "function" ? !0 : typeof e == "string" ? [
|
|
13172
13180
|
"start",
|
|
13173
13181
|
"end",
|
|
13174
13182
|
"center",
|
|
@@ -13183,9 +13191,13 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
|
|
|
13183
13191
|
].includes(e))
|
|
13184
13192
|
},
|
|
13185
13193
|
justify: {
|
|
13186
|
-
type: [
|
|
13194
|
+
type: [
|
|
13195
|
+
String,
|
|
13196
|
+
Object,
|
|
13197
|
+
Function
|
|
13198
|
+
],
|
|
13187
13199
|
default: null,
|
|
13188
|
-
validator: (e) => e == null ? !0 : typeof e == "string" ? [
|
|
13200
|
+
validator: (e) => e == null || typeof e == "function" ? !0 : typeof e == "string" ? [
|
|
13189
13201
|
"around",
|
|
13190
13202
|
"between",
|
|
13191
13203
|
"center",
|
|
@@ -13202,10 +13214,14 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
|
|
|
13202
13214
|
].includes(e))
|
|
13203
13215
|
},
|
|
13204
13216
|
gap: {
|
|
13205
|
-
type: [
|
|
13217
|
+
type: [
|
|
13218
|
+
String,
|
|
13219
|
+
Object,
|
|
13220
|
+
Function
|
|
13221
|
+
],
|
|
13206
13222
|
default: null,
|
|
13207
13223
|
validator: (e) => {
|
|
13208
|
-
if (e == null) return !0;
|
|
13224
|
+
if (e == null || typeof e == "function") return !0;
|
|
13209
13225
|
let t = [
|
|
13210
13226
|
"xxs",
|
|
13211
13227
|
"xs",
|
|
@@ -13222,11 +13238,12 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
|
|
|
13222
13238
|
type: [
|
|
13223
13239
|
Number,
|
|
13224
13240
|
String,
|
|
13225
|
-
Object
|
|
13241
|
+
Object,
|
|
13242
|
+
Function
|
|
13226
13243
|
],
|
|
13227
13244
|
default: null,
|
|
13228
13245
|
validator: (e) => {
|
|
13229
|
-
if (e == null) return !0;
|
|
13246
|
+
if (e == null || typeof e == "function") return !0;
|
|
13230
13247
|
let t = (e) => {
|
|
13231
13248
|
let t = typeof e == "string" ? parseInt(e, 10) : e;
|
|
13232
13249
|
return t >= 1 && t <= 16 && !isNaN(t);
|
|
@@ -13238,11 +13255,12 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
|
|
|
13238
13255
|
type: [
|
|
13239
13256
|
Number,
|
|
13240
13257
|
String,
|
|
13241
|
-
Object
|
|
13258
|
+
Object,
|
|
13259
|
+
Function
|
|
13242
13260
|
],
|
|
13243
13261
|
default: null,
|
|
13244
13262
|
validator: (e) => {
|
|
13245
|
-
if (e == null) return !0;
|
|
13263
|
+
if (e == null || typeof e == "function") return !0;
|
|
13246
13264
|
let t = (e) => {
|
|
13247
13265
|
let t = typeof e == "string" ? parseInt(e, 10) : e;
|
|
13248
13266
|
return t >= 0 && t <= 15 && !isNaN(t);
|
|
@@ -13251,9 +13269,13 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
|
|
|
13251
13269
|
}
|
|
13252
13270
|
},
|
|
13253
13271
|
wrap: {
|
|
13254
|
-
type: [
|
|
13272
|
+
type: [
|
|
13273
|
+
String,
|
|
13274
|
+
Object,
|
|
13275
|
+
Function
|
|
13276
|
+
],
|
|
13255
13277
|
default: null,
|
|
13256
|
-
validator: (e) => e == null ? !0 : typeof e == "string" ? [
|
|
13278
|
+
validator: (e) => e == null || typeof e == "function" ? !0 : typeof e == "string" ? [
|
|
13257
13279
|
"nowrap",
|
|
13258
13280
|
"wrap",
|
|
13259
13281
|
"reverse"
|
|
@@ -13294,7 +13316,11 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
|
|
|
13294
13316
|
}
|
|
13295
13317
|
},
|
|
13296
13318
|
visible: {
|
|
13297
|
-
type: [
|
|
13319
|
+
type: [
|
|
13320
|
+
Boolean,
|
|
13321
|
+
Object,
|
|
13322
|
+
Function
|
|
13323
|
+
],
|
|
13298
13324
|
default: null
|
|
13299
13325
|
},
|
|
13300
13326
|
reverse: {
|
|
@@ -13403,7 +13429,15 @@ var DUt = ["title"], OUt = /* @__PURE__ */ p({
|
|
|
13403
13429
|
}
|
|
13404
13430
|
function v(e, t, n) {
|
|
13405
13431
|
let r = {};
|
|
13406
|
-
|
|
13432
|
+
if (e == null) return r;
|
|
13433
|
+
if (typeof e == "function") {
|
|
13434
|
+
let i = e();
|
|
13435
|
+
return i != null && t(i, {
|
|
13436
|
+
collection: r,
|
|
13437
|
+
classMap: n
|
|
13438
|
+
}), r;
|
|
13439
|
+
}
|
|
13440
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" ? (t(e, {
|
|
13407
13441
|
collection: r,
|
|
13408
13442
|
classMap: n
|
|
13409
13443
|
}), r) : Array.isArray(e) ? (e.forEach((e) => {
|