@capillarytech/blaze-ui 4.2.0 → 4.3.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.
Files changed (46) hide show
  1. package/dist/CapAskAira/index.js +111 -7
  2. package/dist/CapAskAira/index.js.map +1 -1
  3. package/dist/CapCollapsibleLeftNavigation/index.js +111 -7
  4. package/dist/CapCollapsibleLeftNavigation/index.js.map +1 -1
  5. package/dist/CapCollapsibleNavbar/index.js +111 -7
  6. package/dist/CapCollapsibleNavbar/index.js.map +1 -1
  7. package/dist/CapDivider/README.md +122 -0
  8. package/dist/CapDivider/index.d.ts +2 -17
  9. package/dist/CapDivider/index.d.ts.map +1 -1
  10. package/dist/CapDivider/index.js +521 -8
  11. package/dist/CapDivider/index.js.map +1 -1
  12. package/dist/CapDivider/tests/__snapshots__/index.test.tsx.snap +57 -7
  13. package/dist/CapDivider/types.d.ts +32 -0
  14. package/dist/CapDivider/types.d.ts.map +1 -0
  15. package/dist/CapDragReorder/index.js +111 -7
  16. package/dist/CapDragReorder/index.js.map +1 -1
  17. package/dist/CapEventCalendar/index.js +290 -8
  18. package/dist/CapEventCalendar/index.js.map +1 -1
  19. package/dist/CapIllustration/index.js +290 -8
  20. package/dist/CapIllustration/index.js.map +1 -1
  21. package/dist/CapMobileDateRangePicker/index.js +111 -7
  22. package/dist/CapMobileDateRangePicker/index.js.map +1 -1
  23. package/dist/CapNavigation/index.js +111 -7
  24. package/dist/CapNavigation/index.js.map +1 -1
  25. package/dist/CapNotificationDropdown/index.js +111 -7
  26. package/dist/CapNotificationDropdown/index.js.map +1 -1
  27. package/dist/CapSecondaryTopBar/index.js +111 -7
  28. package/dist/CapSecondaryTopBar/index.js.map +1 -1
  29. package/dist/CapStatisticCard/README.md +138 -0
  30. package/dist/CapStatisticCard/index.d.ts +6 -0
  31. package/dist/CapStatisticCard/index.d.ts.map +1 -0
  32. package/dist/CapStatisticCard/index.js +143 -259
  33. package/dist/CapStatisticCard/index.js.map +1 -1
  34. package/dist/CapStatisticCard/types.d.ts +12 -0
  35. package/dist/CapStatisticCard/types.d.ts.map +1 -0
  36. package/dist/CapTimeline/index.js +111 -7
  37. package/dist/CapTimeline/index.js.map +1 -1
  38. package/dist/CapTimelineNested/index.js +111 -7
  39. package/dist/CapTimelineNested/index.js.map +1 -1
  40. package/dist/CapTopBar/index.js +111 -7
  41. package/dist/CapTopBar/index.js.map +1 -1
  42. package/dist/index.d.ts +3 -1
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +290 -8
  45. package/dist/index.js.map +1 -1
  46. package/package.json +19 -1
@@ -7,6 +7,46 @@
7
7
  "use strict";
8
8
  module.exports = require("react");
9
9
 
10
+ /***/ }),
11
+
12
+ /***/ 10540:
13
+ /***/ ((module) => {
14
+
15
+ "use strict";
16
+
17
+
18
+ /* istanbul ignore next */
19
+ function insertStyleElement(options) {
20
+ var element = document.createElement("style");
21
+ options.setAttributes(element, options.attributes);
22
+ options.insert(element, options.options);
23
+ return element;
24
+ }
25
+ module.exports = insertStyleElement;
26
+
27
+ /***/ }),
28
+
29
+ /***/ 15521:
30
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
31
+
32
+ // Imports
33
+ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
34
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
35
+ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
36
+ // Module
37
+ ___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-ant-divider.blaze-ui-cap-divider-v2{background:#dfe2e7}.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text,.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text-left,.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text-right{background:rgba(0,0,0,0)}.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text::before,.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text-left::before,.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text-right::before,.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text::after,.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text-left::after,.blaze-ui-ant-divider.blaze-ui-cap-divider-v2.blaze-ui-ant-divider-horizontal.blaze-ui-ant-divider-with-text-right::after{border-color:#dfe2e7}`, ""]);
38
+ // Exports
39
+ ___CSS_LOADER_EXPORT___.locals = {
40
+ "ant-divider": `blaze-ui-ant-divider`,
41
+ "cap-divider-v2": `blaze-ui-cap-divider-v2`,
42
+ "ant-divider-horizontal": `blaze-ui-ant-divider-horizontal`,
43
+ "ant-divider-with-text": `blaze-ui-ant-divider-with-text`,
44
+ "ant-divider-with-text-left": `blaze-ui-ant-divider-with-text-left`,
45
+ "ant-divider-with-text-right": `blaze-ui-ant-divider-with-text-right`
46
+ };
47
+ module.exports = ___CSS_LOADER_EXPORT___;
48
+
49
+
10
50
  /***/ }),
11
51
 
12
52
  /***/ 21020:
@@ -26,6 +66,18 @@ var f=__webpack_require__(9206),k=Symbol.for("react.element"),l=Symbol.for("reac
26
66
  function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;
27
67
 
28
68
 
69
+ /***/ }),
70
+
71
+ /***/ 31601:
72
+ /***/ ((module) => {
73
+
74
+ "use strict";
75
+
76
+
77
+ module.exports = function (i) {
78
+ return i[1];
79
+ };
80
+
29
81
  /***/ }),
30
82
 
31
83
  /***/ 46942:
@@ -110,6 +162,23 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
110
162
  }());
111
163
 
112
164
 
165
+ /***/ }),
166
+
167
+ /***/ 55056:
168
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
169
+
170
+ "use strict";
171
+
172
+
173
+ /* istanbul ignore next */
174
+ function setAttributesWithoutAttributes(styleElement) {
175
+ var nonce = true ? __webpack_require__.nc : 0;
176
+ if (nonce) {
177
+ styleElement.setAttribute("nonce", nonce);
178
+ }
179
+ }
180
+ module.exports = setAttributesWithoutAttributes;
181
+
113
182
  /***/ }),
114
183
 
115
184
  /***/ 64273:
@@ -118,6 +187,151 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
118
187
  "use strict";
119
188
  module.exports = require("antd-v5");
120
189
 
190
+ /***/ }),
191
+
192
+ /***/ 64284:
193
+ /***/ ((module) => {
194
+
195
+ "use strict";
196
+
197
+
198
+ /* istanbul ignore next */
199
+ var replaceText = function replaceText() {
200
+ var textStore = [];
201
+ return function replace(index, replacement) {
202
+ textStore[index] = replacement;
203
+ return textStore.filter(Boolean).join("\n");
204
+ };
205
+ }();
206
+
207
+ /* istanbul ignore next */
208
+ function apply(styleElement, index, remove, obj) {
209
+ var css;
210
+ if (remove) {
211
+ css = "";
212
+ } else {
213
+ css = "";
214
+ if (obj.supports) {
215
+ css += "@supports (".concat(obj.supports, ") {");
216
+ }
217
+ if (obj.media) {
218
+ css += "@media ".concat(obj.media, " {");
219
+ }
220
+ var needLayer = typeof obj.layer !== "undefined";
221
+ if (needLayer) {
222
+ css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
223
+ }
224
+ css += obj.css;
225
+ if (needLayer) {
226
+ css += "}";
227
+ }
228
+ if (obj.media) {
229
+ css += "}";
230
+ }
231
+ if (obj.supports) {
232
+ css += "}";
233
+ }
234
+ }
235
+
236
+ // For old IE
237
+ /* istanbul ignore if */
238
+ if (styleElement.styleSheet) {
239
+ styleElement.styleSheet.cssText = replaceText(index, css);
240
+ } else {
241
+ var cssNode = document.createTextNode(css);
242
+ var childNodes = styleElement.childNodes;
243
+ if (childNodes[index]) {
244
+ styleElement.removeChild(childNodes[index]);
245
+ }
246
+ if (childNodes.length) {
247
+ styleElement.insertBefore(cssNode, childNodes[index]);
248
+ } else {
249
+ styleElement.appendChild(cssNode);
250
+ }
251
+ }
252
+ }
253
+ var singletonData = {
254
+ singleton: null,
255
+ singletonCounter: 0
256
+ };
257
+
258
+ /* istanbul ignore next */
259
+ function domAPI(options) {
260
+ if (typeof document === "undefined") return {
261
+ update: function update() {},
262
+ remove: function remove() {}
263
+ };
264
+
265
+ // eslint-disable-next-line no-undef,no-use-before-define
266
+ var styleIndex = singletonData.singletonCounter++;
267
+ var styleElement =
268
+ // eslint-disable-next-line no-undef,no-use-before-define
269
+ singletonData.singleton || (
270
+ // eslint-disable-next-line no-undef,no-use-before-define
271
+ singletonData.singleton = options.insertStyleElement(options));
272
+ return {
273
+ update: function update(obj) {
274
+ apply(styleElement, styleIndex, false, obj);
275
+ },
276
+ remove: function remove(obj) {
277
+ apply(styleElement, styleIndex, true, obj);
278
+ }
279
+ };
280
+ }
281
+ module.exports = domAPI;
282
+
283
+ /***/ }),
284
+
285
+ /***/ 74770:
286
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
287
+
288
+ "use strict";
289
+ __webpack_require__.r(__webpack_exports__);
290
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
291
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
292
+ /* harmony export */ });
293
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
294
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
295
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64284);
296
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
297
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
298
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
299
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
300
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
301
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
302
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
303
+ /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15521);
304
+ /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__);
305
+ /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
306
+ /* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__[__WEBPACK_IMPORT_KEY__]
307
+ /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+ var options = {};
320
+
321
+ ;
322
+ options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
323
+ options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
324
+ options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
325
+ options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
326
+
327
+ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()), options);
328
+
329
+
330
+
331
+
332
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
333
+
334
+
121
335
  /***/ }),
122
336
 
123
337
  /***/ 74848:
@@ -132,6 +346,230 @@ if (true) {
132
346
  {}
133
347
 
134
348
 
349
+ /***/ }),
350
+
351
+ /***/ 76314:
352
+ /***/ ((module) => {
353
+
354
+ "use strict";
355
+
356
+
357
+ /*
358
+ MIT License http://www.opensource.org/licenses/mit-license.php
359
+ Author Tobias Koppers @sokra
360
+ */
361
+ module.exports = function (cssWithMappingToString) {
362
+ var list = [];
363
+
364
+ // return the list of modules as css string
365
+ list.toString = function toString() {
366
+ return this.map(function (item) {
367
+ var content = "";
368
+ var needLayer = typeof item[5] !== "undefined";
369
+ if (item[4]) {
370
+ content += "@supports (".concat(item[4], ") {");
371
+ }
372
+ if (item[2]) {
373
+ content += "@media ".concat(item[2], " {");
374
+ }
375
+ if (needLayer) {
376
+ content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
377
+ }
378
+ content += cssWithMappingToString(item);
379
+ if (needLayer) {
380
+ content += "}";
381
+ }
382
+ if (item[2]) {
383
+ content += "}";
384
+ }
385
+ if (item[4]) {
386
+ content += "}";
387
+ }
388
+ return content;
389
+ }).join("");
390
+ };
391
+
392
+ // import a list of modules into the list
393
+ list.i = function i(modules, media, dedupe, supports, layer) {
394
+ if (typeof modules === "string") {
395
+ modules = [[null, modules, undefined]];
396
+ }
397
+ var alreadyImportedModules = {};
398
+ if (dedupe) {
399
+ for (var k = 0; k < this.length; k++) {
400
+ var id = this[k][0];
401
+ if (id != null) {
402
+ alreadyImportedModules[id] = true;
403
+ }
404
+ }
405
+ }
406
+ for (var _k = 0; _k < modules.length; _k++) {
407
+ var item = [].concat(modules[_k]);
408
+ if (dedupe && alreadyImportedModules[item[0]]) {
409
+ continue;
410
+ }
411
+ if (typeof layer !== "undefined") {
412
+ if (typeof item[5] === "undefined") {
413
+ item[5] = layer;
414
+ } else {
415
+ item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
416
+ item[5] = layer;
417
+ }
418
+ }
419
+ if (media) {
420
+ if (!item[2]) {
421
+ item[2] = media;
422
+ } else {
423
+ item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
424
+ item[2] = media;
425
+ }
426
+ }
427
+ if (supports) {
428
+ if (!item[4]) {
429
+ item[4] = "".concat(supports);
430
+ } else {
431
+ item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
432
+ item[4] = supports;
433
+ }
434
+ }
435
+ list.push(item);
436
+ }
437
+ };
438
+ return list;
439
+ };
440
+
441
+ /***/ }),
442
+
443
+ /***/ 77659:
444
+ /***/ ((module) => {
445
+
446
+ "use strict";
447
+
448
+
449
+ var memo = {};
450
+
451
+ /* istanbul ignore next */
452
+ function getTarget(target) {
453
+ if (typeof memo[target] === "undefined") {
454
+ var styleTarget = document.querySelector(target);
455
+
456
+ // Special case to return head of iframe instead of iframe itself
457
+ if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
458
+ try {
459
+ // This will throw an exception if access to iframe is blocked
460
+ // due to cross-origin restrictions
461
+ styleTarget = styleTarget.contentDocument.head;
462
+ } catch (e) {
463
+ // istanbul ignore next
464
+ styleTarget = null;
465
+ }
466
+ }
467
+ memo[target] = styleTarget;
468
+ }
469
+ return memo[target];
470
+ }
471
+
472
+ /* istanbul ignore next */
473
+ function insertBySelector(insert, style) {
474
+ var target = getTarget(insert);
475
+ if (!target) {
476
+ throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
477
+ }
478
+ target.appendChild(style);
479
+ }
480
+ module.exports = insertBySelector;
481
+
482
+ /***/ }),
483
+
484
+ /***/ 85072:
485
+ /***/ ((module) => {
486
+
487
+ "use strict";
488
+
489
+
490
+ var stylesInDOM = [];
491
+ function getIndexByIdentifier(identifier) {
492
+ var result = -1;
493
+ for (var i = 0; i < stylesInDOM.length; i++) {
494
+ if (stylesInDOM[i].identifier === identifier) {
495
+ result = i;
496
+ break;
497
+ }
498
+ }
499
+ return result;
500
+ }
501
+ function modulesToDom(list, options) {
502
+ var idCountMap = {};
503
+ var identifiers = [];
504
+ for (var i = 0; i < list.length; i++) {
505
+ var item = list[i];
506
+ var id = options.base ? item[0] + options.base : item[0];
507
+ var count = idCountMap[id] || 0;
508
+ var identifier = "".concat(id, " ").concat(count);
509
+ idCountMap[id] = count + 1;
510
+ var indexByIdentifier = getIndexByIdentifier(identifier);
511
+ var obj = {
512
+ css: item[1],
513
+ media: item[2],
514
+ sourceMap: item[3],
515
+ supports: item[4],
516
+ layer: item[5]
517
+ };
518
+ if (indexByIdentifier !== -1) {
519
+ stylesInDOM[indexByIdentifier].references++;
520
+ stylesInDOM[indexByIdentifier].updater(obj);
521
+ } else {
522
+ var updater = addElementStyle(obj, options);
523
+ options.byIndex = i;
524
+ stylesInDOM.splice(i, 0, {
525
+ identifier: identifier,
526
+ updater: updater,
527
+ references: 1
528
+ });
529
+ }
530
+ identifiers.push(identifier);
531
+ }
532
+ return identifiers;
533
+ }
534
+ function addElementStyle(obj, options) {
535
+ var api = options.domAPI(options);
536
+ api.update(obj);
537
+ var updater = function updater(newObj) {
538
+ if (newObj) {
539
+ if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
540
+ return;
541
+ }
542
+ api.update(obj = newObj);
543
+ } else {
544
+ api.remove();
545
+ }
546
+ };
547
+ return updater;
548
+ }
549
+ module.exports = function (list, options) {
550
+ options = options || {};
551
+ list = list || [];
552
+ var lastIdentifiers = modulesToDom(list, options);
553
+ return function update(newList) {
554
+ newList = newList || [];
555
+ for (var i = 0; i < lastIdentifiers.length; i++) {
556
+ var identifier = lastIdentifiers[i];
557
+ var index = getIndexByIdentifier(identifier);
558
+ stylesInDOM[index].references--;
559
+ }
560
+ var newLastIdentifiers = modulesToDom(newList, options);
561
+ for (var _i = 0; _i < lastIdentifiers.length; _i++) {
562
+ var _identifier = lastIdentifiers[_i];
563
+ var _index = getIndexByIdentifier(_identifier);
564
+ if (stylesInDOM[_index].references === 0) {
565
+ stylesInDOM[_index].updater();
566
+ stylesInDOM.splice(_index, 1);
567
+ }
568
+ }
569
+ lastIdentifiers = newLastIdentifiers;
570
+ };
571
+ };
572
+
135
573
  /***/ })
136
574
 
137
575
  /******/ });
@@ -148,7 +586,7 @@ if (true) {
148
586
  /******/ }
149
587
  /******/ // Create a new module (and put it into the cache)
150
588
  /******/ var module = __webpack_module_cache__[moduleId] = {
151
- /******/ // no module.id needed
589
+ /******/ id: moduleId,
152
590
  /******/ // no module.loaded needed
153
591
  /******/ exports: {}
154
592
  /******/ };
@@ -161,6 +599,52 @@ if (true) {
161
599
  /******/ }
162
600
  /******/
163
601
  /************************************************************************/
602
+ /******/ /* webpack/runtime/compat get default export */
603
+ /******/ (() => {
604
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
605
+ /******/ __webpack_require__.n = (module) => {
606
+ /******/ var getter = module && module.__esModule ?
607
+ /******/ () => (module['default']) :
608
+ /******/ () => (module);
609
+ /******/ __webpack_require__.d(getter, { a: getter });
610
+ /******/ return getter;
611
+ /******/ };
612
+ /******/ })();
613
+ /******/
614
+ /******/ /* webpack/runtime/define property getters */
615
+ /******/ (() => {
616
+ /******/ // define getter functions for harmony exports
617
+ /******/ __webpack_require__.d = (exports, definition) => {
618
+ /******/ for(var key in definition) {
619
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
620
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
621
+ /******/ }
622
+ /******/ }
623
+ /******/ };
624
+ /******/ })();
625
+ /******/
626
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
627
+ /******/ (() => {
628
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
629
+ /******/ })();
630
+ /******/
631
+ /******/ /* webpack/runtime/make namespace object */
632
+ /******/ (() => {
633
+ /******/ // define __esModule on exports
634
+ /******/ __webpack_require__.r = (exports) => {
635
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
636
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
637
+ /******/ }
638
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
639
+ /******/ };
640
+ /******/ })();
641
+ /******/
642
+ /******/ /* webpack/runtime/nonce */
643
+ /******/ (() => {
644
+ /******/ __webpack_require__.nc = undefined;
645
+ /******/ })();
646
+ /******/
647
+ /************************************************************************/
164
648
  var __webpack_exports__ = {};
165
649
  // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
166
650
  (() => {
@@ -173,13 +657,12 @@ exports["default"] = void 0;
173
657
  var _antdV = __webpack_require__(64273);
174
658
  var _classnames = _interopRequireDefault(__webpack_require__(46942));
175
659
  var _react = _interopRequireDefault(__webpack_require__(9206));
660
+ __webpack_require__(74770);
176
661
  var _jsxRuntime = __webpack_require__(74848);
177
- const _excluded = ["className", "orientation", "type"]; // Legacy alignment values that need mapping
178
- // Valid Ant Design v6 title placement values
662
+ const _excluded = ["className", "orientation", "titlePlacement", "type", "children"];
179
663
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
180
664
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
181
665
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
182
- // Map legacy alignment values to Ant Design v6 titlePlacement values
183
666
  const mapTitlePlacement = value => {
184
667
  if (value === 'left') return 'start';
185
668
  if (value === 'right') return 'end';
@@ -188,18 +671,48 @@ const mapTitlePlacement = value => {
188
671
  }
189
672
  return undefined;
190
673
  };
674
+
675
+ // Type guard to check if orientation is for text alignment
676
+ const isTextAlignmentValue = value => {
677
+ return value === 'left' || value === 'right' || value === 'center' || value === 'start' || value === 'end';
678
+ };
679
+
680
+ // Type guard to check if orientation is for divider direction
681
+ const isDividerDirectionValue = value => {
682
+ return value === 'horizontal' || value === 'vertical';
683
+ };
191
684
  const CapDivider = _ref => {
192
685
  let {
193
686
  className,
194
687
  orientation,
195
- type = 'horizontal'
688
+ titlePlacement,
689
+ type,
690
+ children
196
691
  } = _ref,
197
692
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
693
+ // Determine if 'orientation' is being used for text alignment (legacy cap-ui-library API)
694
+ // or for divider direction (Ant Design v6 API)
695
+ const isOrientationForTextAlignment = orientation !== undefined && isTextAlignmentValue(orientation);
696
+
697
+ // Divider direction (horizontal/vertical)
698
+ // Priority: orientation (if used for direction) > type (deprecated) > default horizontal
699
+ const dividerOrientation = isOrientationForTextAlignment ? type != null ? type : 'horizontal' // If orientation is for text, use type for direction
700
+ : isDividerDirectionValue(orientation) ? orientation : type != null ? type : 'horizontal'; // Otherwise use orientation or type
701
+
702
+ // Text alignment (titlePlacement)
703
+ // Priority: titlePlacement prop > orientation (if used for text alignment)
704
+ const finalTitlePlacement = mapTitlePlacement(titlePlacement != null ? titlePlacement : isOrientationForTextAlignment ? orientation : undefined);
705
+
706
+ // Deprecation warnings
707
+ if (false) // removed by dead control flow
708
+ {}
198
709
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Divider, _extends({
199
710
  className: (0, _classnames.default)('cap-divider-v2', className),
200
- orientation: type,
201
- titlePlacement: mapTitlePlacement(orientation)
202
- }, rest));
711
+ orientation: dividerOrientation,
712
+ titlePlacement: finalTitlePlacement
713
+ }, rest, {
714
+ children: children
715
+ }));
203
716
  };
204
717
  var _default = exports["default"] = CapDivider;
205
718
  })();