@capillarytech/blaze-ui 1.2.8-beta.2 → 2.0.3

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 (86) hide show
  1. package/README.md +60 -198
  2. package/dist/CapAlert/CapAlert.d.ts +7 -0
  3. package/dist/CapAlert/CapAlert.d.ts.map +1 -1
  4. package/dist/CapAlert/__snapshots__/CapAlert.test.tsx.snap +265 -0
  5. package/dist/CapAlert/index.js +8 -3
  6. package/dist/CapAlert/index.js.map +1 -1
  7. package/dist/CapButton/CapButton.d.ts +1 -1
  8. package/dist/CapButton/CapButton.d.ts.map +1 -1
  9. package/dist/CapButton/__snapshots__/CapButton.test.tsx.snap +199 -0
  10. package/dist/CapButton/index.js +25 -25
  11. package/dist/CapButton/index.js.map +1 -1
  12. package/dist/CapCard/__snapshots__/CapCard.test.tsx.snap +122 -0
  13. package/dist/CapCheckbox/__snapshots__/CapCheckbox.test.tsx.snap +275 -0
  14. package/dist/CapColumn/__snapshots__/CapColumn.test.tsx.snap +83 -0
  15. package/dist/CapDivider/CapDivider.d.ts +14 -1
  16. package/dist/CapDivider/CapDivider.d.ts.map +1 -1
  17. package/dist/CapDivider/__snapshots__/CapDivider.test.tsx.snap +172 -0
  18. package/dist/CapDivider/index.js +19 -489
  19. package/dist/CapDivider/index.js.map +1 -1
  20. package/dist/CapDropdown/CapDropdown.d.ts +31 -6
  21. package/dist/CapDropdown/CapDropdown.d.ts.map +1 -1
  22. package/dist/CapDropdown/__snapshots__/CapDropdown.test.tsx.snap +52 -0
  23. package/dist/CapDropdown/index.js +77 -19
  24. package/dist/CapDropdown/index.js.map +1 -1
  25. package/dist/CapForm/__snapshots__/CapForm.test.tsx.snap +103 -0
  26. package/dist/CapFormItem/__snapshots__/CapFormItem.test.tsx.snap +368 -0
  27. package/dist/CapHeading/CapHeading.d.ts +37 -0
  28. package/dist/CapHeading/CapHeading.d.ts.map +1 -0
  29. package/dist/CapHeading/CapHeading.test.d.ts +2 -0
  30. package/dist/CapHeading/CapHeading.test.d.ts.map +1 -0
  31. package/dist/CapHeading/README.md +220 -0
  32. package/dist/CapHeading/__snapshots__/CapHeading.test.tsx.snap +263 -0
  33. package/dist/CapHeading/index.d.ts +3 -0
  34. package/dist/CapHeading/index.d.ts.map +1 -0
  35. package/dist/CapHeading/index.js +740 -0
  36. package/dist/CapHeading/index.js.map +1 -0
  37. package/dist/CapIcon/__snapshots__/CapIcon.test.tsx.snap +366 -0
  38. package/dist/CapInput/Number.d.ts +1 -2
  39. package/dist/CapInput/Number.d.ts.map +1 -1
  40. package/dist/CapInput/__snapshots__/CapInput.test.tsx.snap +156 -0
  41. package/dist/CapInput/__snapshots__/Number.test.tsx.snap +557 -0
  42. package/dist/CapInput/__snapshots__/Search.test.tsx.snap +284 -0
  43. package/dist/CapInput/__snapshots__/TextArea.test.tsx.snap +100 -0
  44. package/dist/CapInput/index.js +1 -1
  45. package/dist/CapInput/index.js.map +1 -1
  46. package/dist/CapLabel/__snapshots__/CapLabel.test.tsx.snap +135 -0
  47. package/dist/CapMenu/__snapshots__/CapMenu.test.tsx.snap +653 -0
  48. package/dist/CapRadio/__snapshots__/CapRadio.test.tsx.snap +387 -0
  49. package/dist/CapRow/__snapshots__/CapRow.test.tsx.snap +149 -0
  50. package/dist/CapSkeleton/__snapshots__/CapSkeleton.test.tsx.snap +212 -0
  51. package/dist/CapSpin/__snapshots__/CapSpin.test.tsx.snap +245 -0
  52. package/dist/CapSwitch/CapSwitch.d.ts.map +1 -1
  53. package/dist/CapSwitch/__snapshots__/CapSwitch.test.tsx.snap +178 -0
  54. package/dist/CapSwitch/index.js +7 -489
  55. package/dist/CapSwitch/index.js.map +1 -1
  56. package/dist/CapTab/CapTab.d.ts +11 -1
  57. package/dist/CapTab/CapTab.d.ts.map +1 -1
  58. package/dist/CapTab/__snapshots__/CapTab.test.tsx.snap +1508 -0
  59. package/dist/CapTab/index.js +29 -19
  60. package/dist/CapTab/index.js.map +1 -1
  61. package/dist/CapTable/__snapshots__/CapTable.test.tsx.snap +993 -0
  62. package/dist/CapTooltip/CapTooltip.d.ts +32 -1
  63. package/dist/CapTooltip/CapTooltip.d.ts.map +1 -1
  64. package/dist/CapTooltip/__snapshots__/CapTooltip.test.tsx.snap +121 -0
  65. package/dist/CapTooltip/index.js +25 -7
  66. package/dist/CapTooltip/index.js.map +1 -1
  67. package/dist/CapTooltipWithInfo/__snapshots__/CapTooltipWithInfo.test.tsx.snap +388 -0
  68. package/dist/CapTooltipWithInfo/index.js +25 -7
  69. package/dist/CapTooltipWithInfo/index.js.map +1 -1
  70. package/dist/CapUnifiedSelect/__snapshots__/CapUnifiedSelect.test.tsx.snap +898 -0
  71. package/dist/CapUnifiedSelect/index.js +28 -8
  72. package/dist/CapUnifiedSelect/index.js.map +1 -1
  73. package/dist/index.d.ts +3 -3
  74. package/dist/index.d.ts.map +1 -1
  75. package/dist/index.js +264 -274
  76. package/dist/index.js.map +1 -1
  77. package/dist/utils/fonts.d.ts +8 -8
  78. package/dist/utils/fonts.d.ts.map +1 -1
  79. package/dist/utils/getCapThemeConfig.d.ts +7 -0
  80. package/dist/utils/getCapThemeConfig.d.ts.map +1 -1
  81. package/dist/utils/index.d.ts +10 -10
  82. package/dist/utils/index.d.ts.map +1 -1
  83. package/dist/utils/index.js +17391 -214
  84. package/dist/utils/index.js.map +1 -1
  85. package/dist/utils/styles.d.ts +2 -2
  86. package/package.json +8 -3
@@ -1,19 +1,44 @@
1
- import type { DropdownProps } from 'antd-v5';
1
+ import type { DropdownProps, ButtonProps } from 'antd-v5';
2
2
  import React from 'react';
3
- declare const Button: React.FC<import("antd-v5/es/dropdown").DropdownButtonProps>;
4
- export interface CapDropdownProps extends Omit<DropdownProps, 'menu' | 'visible' | 'onVisibleChange'> {
3
+ type DeprecatedPlacement = 'bottomLeft' | 'bottomCenter' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight';
4
+ type V6Placement = 'bottomLeft' | 'bottom' | 'bottomRight' | 'topLeft' | 'top' | 'topRight';
5
+ export interface CapDropdownProps extends Omit<DropdownProps, 'menu' | 'visible' | 'onVisibleChange' | 'overlayClassName' | 'placement'> {
5
6
  className?: string;
7
+ /**
8
+ * Custom class names for dropdown parts (v6 API)
9
+ */
10
+ classNames?: DropdownProps['classNames'];
11
+ /**
12
+ * @deprecated Use `classNames.root` instead. Will be removed in next major version.
13
+ */
6
14
  overlayClassName?: string;
7
- /** @deprecated Use `menu` prop instead for Ant Design 5 compatibility */
8
15
  menu?: DropdownProps['menu'];
9
16
  trigger?: Array<'click' | 'hover' | 'contextMenu'>;
10
- placement?: 'bottomLeft' | 'bottomCenter' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight';
17
+ /**
18
+ * Dropdown placement. Note: `topCenter` and `bottomCenter` are deprecated, use `top` and `bottom` instead.
19
+ */
20
+ placement?: DeprecatedPlacement | V6Placement;
11
21
  open?: boolean;
12
22
  onOpenChange?: (open: boolean) => void;
13
23
  disabled?: boolean;
14
24
  }
25
+ /**
26
+ * CapDropdown.Button - v6 compatible replacement for Dropdown.Button
27
+ * Uses Space.Compact + Dropdown + Button pattern as recommended by Ant Design v6
28
+ */
29
+ export interface CapDropdownButtonProps extends Omit<CapDropdownProps, 'children'> {
30
+ children?: React.ReactNode;
31
+ onClick?: ButtonProps['onClick'];
32
+ type?: ButtonProps['type'];
33
+ size?: ButtonProps['size'];
34
+ danger?: boolean;
35
+ loading?: boolean;
36
+ icon?: React.ReactNode;
37
+ buttonsRender?: (buttons: [React.ReactNode, React.ReactNode]) => [React.ReactNode, React.ReactNode];
38
+ }
39
+ declare const CapDropdownButton: React.FC<CapDropdownButtonProps>;
15
40
  interface CapDropdownType extends React.FC<CapDropdownProps> {
16
- Button: typeof Button;
41
+ Button: typeof CapDropdownButton;
17
42
  }
18
43
  declare const CapDropdown: CapDropdownType;
19
44
  export default CapDropdown;
@@ -1 +1 @@
1
- {"version":3,"file":"CapDropdown.d.ts","sourceRoot":"","sources":["../../components/CapDropdown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S,CAAC,CAAC;CACzC;AAED,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA0CvD,CAAC;AAGF,UAAU,eAAgB,SAAQ,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAAC;IAC1D,MAAM,EAAE,OAAO,iBAAiB,CAAC;CAClC;AAED,QAAA,MAAM,WAAW,EAA2B,eAAe,CAAC;AAG5D,eAAe,WAAW,CAAC"}
@@ -0,0 +1,52 @@
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
+
3
+ exports[`CapDropdown Snapshots should match snapshot when disabled 1`] = `
4
+ <div>
5
+ <span
6
+ class="ant-dropdown-trigger"
7
+ disabled=""
8
+ >
9
+ Disabled Dropdown
10
+ </span>
11
+ </div>
12
+ `;
13
+
14
+ exports[`CapDropdown Snapshots should match snapshot with click trigger 1`] = `
15
+ <div>
16
+ <span
17
+ class="ant-dropdown-trigger"
18
+ >
19
+ Click Dropdown
20
+ </span>
21
+ </div>
22
+ `;
23
+
24
+ exports[`CapDropdown Snapshots should match snapshot with custom className 1`] = `
25
+ <div>
26
+ <span
27
+ class="ant-dropdown-trigger"
28
+ >
29
+ Custom Dropdown
30
+ </span>
31
+ </div>
32
+ `;
33
+
34
+ exports[`CapDropdown Snapshots should match snapshot with default props 1`] = `
35
+ <div>
36
+ <span
37
+ class="ant-dropdown-trigger"
38
+ >
39
+ Dropdown Trigger
40
+ </span>
41
+ </div>
42
+ `;
43
+
44
+ exports[`CapDropdown Snapshots should match snapshot with different placement 1`] = `
45
+ <div>
46
+ <span
47
+ class="ant-dropdown-trigger"
48
+ >
49
+ Top Right Dropdown
50
+ </span>
51
+ </div>
52
+ `;
@@ -14,17 +14,24 @@ var _classnames = _interopRequireDefault(__webpack_require__(6942));
14
14
  var _react = _interopRequireDefault(__webpack_require__(9206));
15
15
  var _styles = _interopRequireDefault(__webpack_require__(2550));
16
16
  var _jsxRuntime = __webpack_require__(4848);
17
- const _excluded = ["className", "overlayClassName", "menu", "trigger", "placement", "disabled", "children"];
17
+ const _excluded = ["className", "classNames", "overlayClassName", "menu", "trigger", "placement", "disabled", "children"],
18
+ _excluded2 = ["children", "onClick", "type", "size", "danger", "loading", "icon", "menu", "disabled", "buttonsRender"];
18
19
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
19
20
  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); }
20
21
  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; }
21
- const {
22
- Button
23
- } = _antdV.Dropdown;
24
22
  const clsPrefix = 'cap-dropdown-v2';
23
+
24
+ // Map deprecated placement values to new v6 values
25
+
26
+ const mapPlacement = placement => {
27
+ if (placement === 'topCenter') return 'top';
28
+ if (placement === 'bottomCenter') return 'bottom';
29
+ return placement;
30
+ };
25
31
  const CapDropdownComponent = _ref => {
26
32
  let {
27
33
  className,
34
+ classNames: classNamesProp,
28
35
  overlayClassName,
29
36
  menu,
30
37
  trigger = ['hover'],
@@ -33,25 +40,76 @@ const CapDropdownComponent = _ref => {
33
40
  children
34
41
  } = _ref,
35
42
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
36
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
37
- className: _styles.default['cap-dropdown-wrapper'],
38
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Dropdown, _extends({
39
- className: (0, _classnames.default)(_styles.default[clsPrefix], className),
40
- overlayClassName: (0, _classnames.default)(_styles.default[clsPrefix + "-overlay"], overlayClassName),
41
- menu: menu,
42
- trigger: trigger,
43
- placement: placement,
44
- disabled: disabled
45
- }, rest, {
46
- children: children
47
- }))
43
+ // Map deprecated placement values
44
+ const v6Placement = mapPlacement(placement);
45
+
46
+ // Support both new `classNames.root` and deprecated `overlayClassName` props
47
+ const existingRoot = classNamesProp && typeof classNamesProp === 'object' && !Array.isArray(classNamesProp) ? classNamesProp.root : undefined;
48
+ const finalClassNames = _extends({}, typeof classNamesProp === 'object' && !Array.isArray(classNamesProp) ? classNamesProp : {}, {
49
+ root: (0, _classnames.default)(_styles.default[clsPrefix + "-overlay"], existingRoot, overlayClassName)
50
+ });
51
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Dropdown, _extends({
52
+ className: (0, _classnames.default)(_styles.default[clsPrefix], className),
53
+ classNames: finalClassNames,
54
+ menu: menu,
55
+ trigger: trigger,
56
+ placement: v6Placement,
57
+ disabled: disabled
58
+ }, rest, {
59
+ children: children
60
+ }));
61
+ };
62
+
63
+ /**
64
+ * CapDropdown.Button - v6 compatible replacement for Dropdown.Button
65
+ * Uses Space.Compact + Dropdown + Button pattern as recommended by Ant Design v6
66
+ */
67
+
68
+ const CapDropdownButton = _ref2 => {
69
+ let {
70
+ children,
71
+ onClick,
72
+ type = 'default',
73
+ size,
74
+ danger,
75
+ loading,
76
+ icon,
77
+ menu,
78
+ disabled,
79
+ buttonsRender
80
+ } = _ref2,
81
+ dropdownProps = _objectWithoutPropertiesLoose(_ref2, _excluded2);
82
+ const leftButton = /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Button, {
83
+ type: type,
84
+ size: size,
85
+ danger: danger,
86
+ loading: loading,
87
+ onClick: onClick,
88
+ disabled: disabled,
89
+ children: children
90
+ });
91
+ const rightButton = /*#__PURE__*/(0, _jsxRuntime.jsx)(CapDropdownComponent, _extends({
92
+ menu: menu,
93
+ disabled: disabled
94
+ }, dropdownProps, {
95
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Button, {
96
+ type: type,
97
+ size: size,
98
+ danger: danger,
99
+ disabled: disabled,
100
+ icon: icon || '▼'
101
+ })
102
+ }));
103
+ const [left, right] = buttonsRender ? buttonsRender([leftButton, rightButton]) : [leftButton, rightButton];
104
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_antdV.Space.Compact, {
105
+ children: [left, right]
48
106
  });
49
107
  };
50
108
 
51
109
  // Extend the component type to include the static property
52
110
 
53
111
  const CapDropdown = CapDropdownComponent;
54
- CapDropdown.Button = Button;
112
+ CapDropdown.Button = CapDropdownButton;
55
113
  var _default = exports["default"] = CapDropdown;
56
114
 
57
115
  /***/ }),
@@ -100,10 +158,10 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(1601);
100
158
  var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(6314);
101
159
  var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
102
160
  // Module
103
- ___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-dropdown-wrapper .ant-dropdown{min-width:14.286rem}.blaze-ui-cap-dropdown-wrapper .ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item{padding:.857rem 1.714rem}`, ""]);
161
+ ___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-dropdown-v2-overlay{min-width:14.286rem}.blaze-ui-cap-dropdown-v2-overlay .ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item{padding:.857rem 1.714rem}`, ""]);
104
162
  // Exports
105
163
  ___CSS_LOADER_EXPORT___.locals = {
106
- "cap-dropdown-wrapper": `blaze-ui-cap-dropdown-wrapper`
164
+ "cap-dropdown-v2-overlay": `blaze-ui-cap-dropdown-v2-overlay`
107
165
  };
108
166
  module.exports = ___CSS_LOADER_EXPORT___;
109
167
 
@@ -1 +1 @@
1
- {"version":3,"file":"CapDropdown/index.js","mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,mBAAA;AAEA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,mBAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CA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ClH,MAA2G;AAC3G;AACA,MAA2M;AAC3M;AACA;;AAEA;;AAEA;AACA,wBAAwB,kHAAa;AACrC,iBAAiB,uGAAa;AAC9B,iBAAiB,wGAAM;AACvB,6BAA6B,sGAAkB;;AAE/C,aAAa,0GAAG,CAAC,8KAAO;;;;AAIqJ;AAC7K,OAAO,iEAAe,8KAAO,IAAI,qLAAc,GAAG,qLAAc,YAAY,EAAC;;;;;;;;;ACxB7E,oC;;;;;;;;ACAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,oDAAoD;AACpD;AACA;AACA,4CAA4C;AAC5C;AACA;AACA;AACA,mFAAmF;AACnF;AACA;AACA;AACA,eAAe;AACf;AACA;AACA,eAAe;AACf;AACA;AACA,eAAe;AACf;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,wB;;;;;;;;ACrFa;;AAEb,IAAI,IAAqC;AACzC,EAAE,0CAAqE;AACvE,EAAE,KAAK;AAAA,EAEN;;;;;;;;;ACNY;;AAEb;AACA;AACA,cAAc,KAAwC,GAAG,sBAAiB,GAAG,CAAI;AACjF;AACA;AACA;AACA;AACA,gD;;;;;;;;ACTa;;AAEb;AACA;AACA;AACA,kBAAkB,wBAAwB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,4BAA4B;AAChD;AACA;AACA;AACA;AACA;AACA,qBAAqB,6BAA6B;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,E;;;;;;;;ACnFa;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA,gDAAgD;AAChD;AACA;AACA,qFAAqF;AACrF;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,iBAAiB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,qBAAqB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sFAAsF,qBAAqB;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,iDAAiD,qBAAqB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sDAAsD,qBAAqB;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,E;;;;;;;ACpFA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,gBAAgB;;AAEhB;AACA;;AAEA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,KAAK,KAA6B;AAClC;AACA;AACA,GAAG,SAAS,IAA4E;AACxF;AACA,EAAE,iCAAqB,EAAE,mCAAE;AAC3B;AACA,GAAG;AAAA,kGAAC;AACJ,GAAG,KAAK;AAAA,EAEN;AACF,CAAC;;;;;;;;;AC5EY;;AAEb;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kC;;;;;;;;ACjCA,kC;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA,mC;;;;;;;;;;;;;ACAA,IAAAG,YAAA,GAAAzC,sBAAA,CAAAF,mBAAA;AAAwC0C,kBAAA,GAAAC,YAAA,CAAAlC,OAAA;AAAA,SAAAP,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA,K","sources":["webpack://@capillarytech/blaze-ui/./components/CapDropdown/CapDropdown.tsx","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@capillarytech/blaze-ui/./node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://@capillarytech/blaze-ui/./components/CapDropdown/styles.scss","webpack://@capillarytech/blaze-ui/./node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://@capillarytech/blaze-ui/./components/CapDropdown/styles.scss?26c5","webpack://@capillarytech/blaze-ui/external commonjs2 \"antd-v5\"","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js","webpack://@capillarytech/blaze-ui/./node_modules/react/jsx-runtime.js","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@capillarytech/blaze-ui/./node_modules/css-loader/dist/runtime/api.js","webpack://@capillarytech/blaze-ui/./node_modules/classnames/index.js","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@capillarytech/blaze-ui/external commonjs2 {\"commonjs\":\"react\",\"commonjs2\":\"react\",\"amd\":\"react\",\"root\":\"React\"}","webpack://@capillarytech/blaze-ui/webpack/bootstrap","webpack://@capillarytech/blaze-ui/webpack/runtime/compat get default export","webpack://@capillarytech/blaze-ui/webpack/runtime/define property getters","webpack://@capillarytech/blaze-ui/webpack/runtime/hasOwnProperty shorthand","webpack://@capillarytech/blaze-ui/webpack/runtime/make namespace object","webpack://@capillarytech/blaze-ui/webpack/runtime/nonce","webpack://@capillarytech/blaze-ui/./components/CapDropdown/index.ts"],"sourcesContent":["import { Dropdown } from 'antd-v5';\nimport type { DropdownProps } from 'antd-v5';\nimport classNames from 'classnames';\nimport React from 'react';\n\nimport styles from './styles.scss';\n\nconst { Button } = Dropdown;\n\nconst clsPrefix = 'cap-dropdown-v2';\n\nexport interface CapDropdownProps\n extends Omit<DropdownProps, 'menu' | 'visible' | 'onVisibleChange'> {\n className?: string;\n overlayClassName?: string;\n /** @deprecated Use `menu` prop instead for Ant Design 5 compatibility */\n menu?: DropdownProps['menu'];\n trigger?: Array<'click' | 'hover' | 'contextMenu'>;\n placement?: 'bottomLeft' | 'bottomCenter' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight';\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n disabled?: boolean;\n}\n\nconst CapDropdownComponent: React.FC<CapDropdownProps> = ({\n className,\n overlayClassName,\n menu,\n trigger = ['hover'],\n placement = 'bottomLeft',\n disabled = false,\n children,\n ...rest\n}) => {\n return (\n <div className={styles['cap-dropdown-wrapper']}>\n <Dropdown\n className={classNames(styles[clsPrefix], className)}\n overlayClassName={classNames(styles[`${clsPrefix}-overlay`], overlayClassName)}\n menu={menu}\n trigger={trigger}\n placement={placement}\n disabled={disabled}\n {...rest}\n >\n {children}\n </Dropdown>\n </div>\n );\n};\n\n// Extend the component type to include the static property\ninterface CapDropdownType extends React.FC<CapDropdownProps> {\n Button: typeof Button;\n}\n\nconst CapDropdown = CapDropdownComponent as CapDropdownType;\nCapDropdown.Button = Button;\n\nexport default CapDropdown;\n","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction 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;\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-dropdown-wrapper .ant-dropdown{min-width:14.286rem}.blaze-ui-cap-dropdown-wrapper .ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item{padding:.857rem 1.714rem}`, \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"cap-dropdown-wrapper\": `blaze-ui-cap-dropdown-wrapper`\n};\nmodule.exports = ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n \n import content, * as namedExport from \"!!../../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\";\n \n \n\nvar options = {};\n\n;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../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\";\n export default content && content.locals ? content.locals : undefined;\n","module.exports = require(\"antd-v5\");","\"use strict\";\n\n/* istanbul ignore next */\nvar replaceText = function replaceText() {\n var textStore = [];\n return function replace(index, replacement) {\n textStore[index] = replacement;\n return textStore.filter(Boolean).join(\"\\n\");\n };\n}();\n\n/* istanbul ignore next */\nfunction apply(styleElement, index, remove, obj) {\n var css;\n if (remove) {\n css = \"\";\n } else {\n css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n }\n\n // For old IE\n /* istanbul ignore if */\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = replaceText(index, css);\n } else {\n var cssNode = document.createTextNode(css);\n var childNodes = styleElement.childNodes;\n if (childNodes[index]) {\n styleElement.removeChild(childNodes[index]);\n }\n if (childNodes.length) {\n styleElement.insertBefore(cssNode, childNodes[index]);\n } else {\n styleElement.appendChild(cssNode);\n }\n }\n}\nvar singletonData = {\n singleton: null,\n singletonCounter: 0\n};\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") return {\n update: function update() {},\n remove: function remove() {}\n };\n\n // eslint-disable-next-line no-undef,no-use-before-define\n var styleIndex = singletonData.singletonCounter++;\n var styleElement =\n // eslint-disable-next-line no-undef,no-use-before-define\n singletonData.singleton || (\n // eslint-disable-next-line no-undef,no-use-before-define\n singletonData.singleton = options.insertStyleElement(options));\n return {\n update: function update(obj) {\n apply(styleElement, styleIndex, false, obj);\n },\n remove: function remove(obj) {\n apply(styleElement, styleIndex, true, obj);\n }\n };\n}\nmodule.exports = domAPI;","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nc = undefined;","export { default } from './CapDropdown';\nexport type { CapDropdownProps } from './CapDropdown';\n"],"names":["_antdV","require","_classnames","_interopRequireDefault","_react","_styles","_jsxRuntime","_excluded","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_objectWithoutPropertiesLoose","indexOf","Button","Dropdown","clsPrefix","CapDropdownComponent","_ref","className","overlayClassName","menu","trigger","placement","disabled","children","rest","jsx","styles","classNames","CapDropdown","_default","exports","_CapDropdown"],"sourceRoot":""}
1
+ {"version":3,"file":"CapDropdown/index.js","mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,mBAAA;AAEA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,mBAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,mBAAA;AAEA,IAAAI,OAAA,GAAAF,sBAAA,CAAAF,mBAAA;AAAmC,IAAAK,WAAA,GAAAL,mBAAA;AAAA,MAAAM,SAAA;EAAAC,UAAA;AAAA,SAAAL,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,E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H;AAClH,MAA2G;AAC3G;AACA,MAA2M;AAC3M;AACA;;AAEA;;AAEA;AACA,wBAAwB,kHAAa;AACrC,iBAAiB,uGAAa;AAC9B,iBAAiB,wGAAM;AACvB,6BAA6B,sGAAkB;;AAE/C,aAAa,0GAAG,CAAC,8KAAO;;;;AAIqJ;AAC7K,OAAO,iEAAe,8KAAO,IAAI,qLAAc,GAAG,qLAAc,YAAY,EAAC;;;;;;;;;ACxB7E,oC;;;;;;;;ACAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,oDAAoD;AACpD;AACA;AACA,4CAA4C;AAC5C;AACA;AACA;AACA,mFAAmF;AACnF;AACA;AACA;AACA,eAAe;AACf;AACA;AACA,eAAe;AACf;AACA;AACA,eAAe;AACf;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,wB;;;;;;;;ACrFa;;AAEb,IAAI,IAAqC;AACzC,EAAE,0CAAqE;AACvE,EAAE,KAAK;AAAA,EAEN;;;;;;;;;ACNY;;AAEb;AACA;AACA,cAAc,KAAwC,GAAG,sBAAiB,GAAG,CAAI;AACjF;AACA;AACA;AACA;AACA,gD;;;;;;;;ACTa;;AAEb;AACA;AACA;AACA,kBAAkB,wBAAwB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,4BAA4B;AAChD;AACA;AACA;AACA;AACA;AACA,qBAAqB,6BAA6B;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,E;;;;;;;;ACnFa;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA,gDAAgD;AAChD;AACA;AACA,qFAAqF;AACrF;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,iBAAiB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,qBAAqB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sFAAsF,qBAAqB;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,iDAAiD,qBAAqB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sDAAsD,qBAAqB;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,E;;;;;;;ACpFA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,gBAAgB;;AAEhB;AACA;;AAEA,kBAAkB,sBAAsB;AACxC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,KAAK,KAA6B;AAClC;AACA;AACA,GAAG,SAAS,IAA4E;AACxF;AACA,EAAE,iCAAqB,EAAE,mCAAE;AAC3B;AACA,GAAG;AAAA,kGAAC;AACJ,GAAG,KAAK;AAAA,EAEN;AACF,CAAC;;;;;;;;;AC5EY;;AAEb;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kC;;;;;;;;ACjCA,kC;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA,mC;;;;;;;;;;;;;ACAA,IAAAG,YAAA,GAAApE,sBAAA,CAAAF,mBAAA;AAAwCqE,kBAAA,GAAAC,YAAA,CAAA5D,OAAA;AAAA,SAAAR,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA,K","sources":["webpack://@capillarytech/blaze-ui/./components/CapDropdown/CapDropdown.tsx","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@capillarytech/blaze-ui/./node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://@capillarytech/blaze-ui/./components/CapDropdown/styles.scss","webpack://@capillarytech/blaze-ui/./node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://@capillarytech/blaze-ui/./components/CapDropdown/styles.scss?26c5","webpack://@capillarytech/blaze-ui/external commonjs2 \"antd-v5\"","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js","webpack://@capillarytech/blaze-ui/./node_modules/react/jsx-runtime.js","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@capillarytech/blaze-ui/./node_modules/css-loader/dist/runtime/api.js","webpack://@capillarytech/blaze-ui/./node_modules/classnames/index.js","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@capillarytech/blaze-ui/external commonjs2 {\"commonjs\":\"react\",\"commonjs2\":\"react\",\"amd\":\"react\",\"root\":\"React\"}","webpack://@capillarytech/blaze-ui/webpack/bootstrap","webpack://@capillarytech/blaze-ui/webpack/runtime/compat get default export","webpack://@capillarytech/blaze-ui/webpack/runtime/define property getters","webpack://@capillarytech/blaze-ui/webpack/runtime/hasOwnProperty shorthand","webpack://@capillarytech/blaze-ui/webpack/runtime/make namespace object","webpack://@capillarytech/blaze-ui/webpack/runtime/nonce","webpack://@capillarytech/blaze-ui/./components/CapDropdown/index.ts"],"sourcesContent":["import { Dropdown, Space, Button } from 'antd-v5';\nimport type { DropdownProps, ButtonProps } from 'antd-v5';\nimport classNames from 'classnames';\nimport React from 'react';\n\nimport styles from './styles.scss';\n\nconst clsPrefix = 'cap-dropdown-v2';\n\n// Map deprecated placement values to new v6 values\ntype DeprecatedPlacement =\n | 'bottomLeft'\n | 'bottomCenter'\n | 'bottomRight'\n | 'topLeft'\n | 'topCenter'\n | 'topRight';\ntype V6Placement = 'bottomLeft' | 'bottom' | 'bottomRight' | 'topLeft' | 'top' | 'topRight';\n\nconst mapPlacement = (placement: DeprecatedPlacement): V6Placement => {\n if (placement === 'topCenter') return 'top';\n if (placement === 'bottomCenter') return 'bottom';\n return placement as V6Placement;\n};\n\nexport interface CapDropdownProps\n extends Omit<\n DropdownProps,\n 'menu' | 'visible' | 'onVisibleChange' | 'overlayClassName' | 'placement'\n > {\n className?: string;\n /**\n * Custom class names for dropdown parts (v6 API)\n */\n classNames?: DropdownProps['classNames'];\n /**\n * @deprecated Use `classNames.root` instead. Will be removed in next major version.\n */\n overlayClassName?: string;\n menu?: DropdownProps['menu'];\n trigger?: Array<'click' | 'hover' | 'contextMenu'>;\n /**\n * Dropdown placement. Note: `topCenter` and `bottomCenter` are deprecated, use `top` and `bottom` instead.\n */\n placement?: DeprecatedPlacement | V6Placement;\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n disabled?: boolean;\n}\n\nconst CapDropdownComponent: React.FC<CapDropdownProps> = ({\n className,\n classNames: classNamesProp,\n overlayClassName,\n menu,\n trigger = ['hover'],\n placement = 'bottomLeft',\n disabled = false,\n children,\n ...rest\n}) => {\n // Map deprecated placement values\n const v6Placement = mapPlacement(placement as DeprecatedPlacement);\n\n // Support both new `classNames.root` and deprecated `overlayClassName` props\n const existingRoot =\n classNamesProp && typeof classNamesProp === 'object' && !Array.isArray(classNamesProp)\n ? classNamesProp.root\n : undefined;\n\n const finalClassNames: DropdownProps['classNames'] = {\n ...(typeof classNamesProp === 'object' && !Array.isArray(classNamesProp) ? classNamesProp : {}),\n root: classNames(styles[`${clsPrefix}-overlay`], existingRoot, overlayClassName),\n };\n\n return (\n <Dropdown\n className={classNames(styles[clsPrefix], className)}\n classNames={finalClassNames}\n menu={menu}\n trigger={trigger}\n placement={v6Placement}\n disabled={disabled}\n {...rest}\n >\n {children}\n </Dropdown>\n );\n};\n\n/**\n * CapDropdown.Button - v6 compatible replacement for Dropdown.Button\n * Uses Space.Compact + Dropdown + Button pattern as recommended by Ant Design v6\n */\nexport interface CapDropdownButtonProps extends Omit<CapDropdownProps, 'children'> {\n children?: React.ReactNode;\n onClick?: ButtonProps['onClick'];\n type?: ButtonProps['type'];\n size?: ButtonProps['size'];\n danger?: boolean;\n loading?: boolean;\n icon?: React.ReactNode;\n buttonsRender?: (\n buttons: [React.ReactNode, React.ReactNode]\n ) => [React.ReactNode, React.ReactNode];\n}\n\nconst CapDropdownButton: React.FC<CapDropdownButtonProps> = ({\n children,\n onClick,\n type = 'default',\n size,\n danger,\n loading,\n icon,\n menu,\n disabled,\n buttonsRender,\n ...dropdownProps\n}) => {\n const leftButton = (\n <Button\n type={type}\n size={size}\n danger={danger}\n loading={loading}\n onClick={onClick}\n disabled={disabled}\n >\n {children}\n </Button>\n );\n\n const rightButton = (\n <CapDropdownComponent menu={menu} disabled={disabled} {...dropdownProps}>\n <Button type={type} size={size} danger={danger} disabled={disabled} icon={icon || '▼'} />\n </CapDropdownComponent>\n );\n\n const [left, right] = buttonsRender\n ? buttonsRender([leftButton, rightButton])\n : [leftButton, rightButton];\n\n return (\n <Space.Compact>\n {left}\n {right}\n </Space.Compact>\n );\n};\n\n// Extend the component type to include the static property\ninterface CapDropdownType extends React.FC<CapDropdownProps> {\n Button: typeof CapDropdownButton;\n}\n\nconst CapDropdown = CapDropdownComponent as CapDropdownType;\nCapDropdown.Button = CapDropdownButton;\n\nexport default CapDropdown;\n","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction 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;\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-dropdown-v2-overlay{min-width:14.286rem}.blaze-ui-cap-dropdown-v2-overlay .ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item{padding:.857rem 1.714rem}`, \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"cap-dropdown-v2-overlay\": `blaze-ui-cap-dropdown-v2-overlay`\n};\nmodule.exports = ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n \n import content, * as namedExport from \"!!../../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\";\n \n \n\nvar options = {};\n\n;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../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\";\n export default content && content.locals ? content.locals : undefined;\n","module.exports = require(\"antd-v5\");","\"use strict\";\n\n/* istanbul ignore next */\nvar replaceText = function replaceText() {\n var textStore = [];\n return function replace(index, replacement) {\n textStore[index] = replacement;\n return textStore.filter(Boolean).join(\"\\n\");\n };\n}();\n\n/* istanbul ignore next */\nfunction apply(styleElement, index, remove, obj) {\n var css;\n if (remove) {\n css = \"\";\n } else {\n css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n }\n\n // For old IE\n /* istanbul ignore if */\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = replaceText(index, css);\n } else {\n var cssNode = document.createTextNode(css);\n var childNodes = styleElement.childNodes;\n if (childNodes[index]) {\n styleElement.removeChild(childNodes[index]);\n }\n if (childNodes.length) {\n styleElement.insertBefore(cssNode, childNodes[index]);\n } else {\n styleElement.appendChild(cssNode);\n }\n }\n}\nvar singletonData = {\n singleton: null,\n singletonCounter: 0\n};\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") return {\n update: function update() {},\n remove: function remove() {}\n };\n\n // eslint-disable-next-line no-undef,no-use-before-define\n var styleIndex = singletonData.singletonCounter++;\n var styleElement =\n // eslint-disable-next-line no-undef,no-use-before-define\n singletonData.singleton || (\n // eslint-disable-next-line no-undef,no-use-before-define\n singletonData.singleton = options.insertStyleElement(options));\n return {\n update: function update(obj) {\n apply(styleElement, styleIndex, false, obj);\n },\n remove: function remove(obj) {\n apply(styleElement, styleIndex, true, obj);\n }\n };\n}\nmodule.exports = domAPI;","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","module.exports = require(\"react\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nc = undefined;","export { default } from './CapDropdown';\nexport type { CapDropdownProps } from './CapDropdown';\n"],"names":["_antdV","require","_classnames","_interopRequireDefault","_react","_styles","_jsxRuntime","_excluded","_excluded2","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_objectWithoutPropertiesLoose","indexOf","clsPrefix","mapPlacement","placement","CapDropdownComponent","_ref","className","classNames","classNamesProp","overlayClassName","menu","trigger","disabled","children","rest","v6Placement","existingRoot","Array","isArray","root","undefined","finalClassNames","styles","jsx","Dropdown","CapDropdownButton","_ref2","onClick","type","size","danger","loading","icon","buttonsRender","dropdownProps","leftButton","Button","rightButton","left","right","jsxs","Space","Compact","CapDropdown","_default","exports","_CapDropdown"],"sourceRoot":""}
@@ -0,0 +1,103 @@
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
+
3
+ exports[`CapForm Snapshots should match snapshot empty form 1`] = `
4
+ <div>
5
+ <div
6
+ class="cap-form-wrapper"
7
+ >
8
+ <form
9
+ class="ant-form ant-form-vertical css-var-root ant-form-css-var css-dev-only-do-not-override-dbp7pc cap-form-v2"
10
+ />
11
+ </div>
12
+ </div>
13
+ `;
14
+
15
+ exports[`CapForm Snapshots should match snapshot with custom className 1`] = `
16
+ <div>
17
+ <div
18
+ class="cap-form-wrapper"
19
+ >
20
+ <form
21
+ class="ant-form ant-form-vertical css-var-root ant-form-css-var css-dev-only-do-not-override-dbp7pc cap-form-v2 custom-form"
22
+ >
23
+ <input
24
+ name="test"
25
+ />
26
+ </form>
27
+ </div>
28
+ </div>
29
+ `;
30
+
31
+ exports[`CapForm Snapshots should match snapshot with default props 1`] = `
32
+ <div>
33
+ <div
34
+ class="cap-form-wrapper"
35
+ >
36
+ <form
37
+ class="ant-form ant-form-vertical css-var-root ant-form-css-var css-dev-only-do-not-override-dbp7pc cap-form-v2"
38
+ >
39
+ <input
40
+ name="test"
41
+ placeholder="Enter text"
42
+ />
43
+ </form>
44
+ </div>
45
+ </div>
46
+ `;
47
+
48
+ exports[`CapForm Snapshots should match snapshot with horizontal layout 1`] = `
49
+ <div>
50
+ <div
51
+ class="cap-form-wrapper"
52
+ >
53
+ <form
54
+ class="ant-form ant-form-horizontal css-var-root ant-form-css-var css-dev-only-do-not-override-dbp7pc cap-form-v2"
55
+ >
56
+ <input
57
+ name="field1"
58
+ />
59
+ <input
60
+ name="field2"
61
+ />
62
+ </form>
63
+ </div>
64
+ </div>
65
+ `;
66
+
67
+ exports[`CapForm Snapshots should match snapshot with inline layout 1`] = `
68
+ <div>
69
+ <div
70
+ class="cap-form-wrapper"
71
+ >
72
+ <form
73
+ class="ant-form ant-form-inline css-var-root ant-form-css-var css-dev-only-do-not-override-dbp7pc cap-form-v2"
74
+ >
75
+ <input
76
+ name="field1"
77
+ />
78
+ <input
79
+ name="field2"
80
+ />
81
+ </form>
82
+ </div>
83
+ </div>
84
+ `;
85
+
86
+ exports[`CapForm Snapshots should match snapshot with vertical layout 1`] = `
87
+ <div>
88
+ <div
89
+ class="cap-form-wrapper"
90
+ >
91
+ <form
92
+ class="ant-form ant-form-vertical css-var-root ant-form-css-var css-dev-only-do-not-override-dbp7pc cap-form-v2"
93
+ >
94
+ <input
95
+ name="field1"
96
+ />
97
+ <input
98
+ name="field2"
99
+ />
100
+ </form>
101
+ </div>
102
+ </div>
103
+ `;