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

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 (73) hide show
  1. package/README.md +27 -192
  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 +217 -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 +8 -1
  16. package/dist/CapDivider/CapDivider.d.ts.map +1 -1
  17. package/dist/CapDivider/__snapshots__/CapDivider.test.tsx.snap +109 -0
  18. package/dist/CapDivider/index.js +14 -488
  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/__snapshots__/CapInput.test.tsx.snap +156 -0
  39. package/dist/CapInput/__snapshots__/Number.test.tsx.snap +557 -0
  40. package/dist/CapInput/__snapshots__/Search.test.tsx.snap +284 -0
  41. package/dist/CapInput/__snapshots__/TextArea.test.tsx.snap +100 -0
  42. package/dist/CapInput/index.js +1 -1
  43. package/dist/CapInput/index.js.map +1 -1
  44. package/dist/CapLabel/__snapshots__/CapLabel.test.tsx.snap +135 -0
  45. package/dist/CapMenu/__snapshots__/CapMenu.test.tsx.snap +653 -0
  46. package/dist/CapRadio/__snapshots__/CapRadio.test.tsx.snap +387 -0
  47. package/dist/CapRow/__snapshots__/CapRow.test.tsx.snap +149 -0
  48. package/dist/CapSkeleton/__snapshots__/CapSkeleton.test.tsx.snap +212 -0
  49. package/dist/CapSpin/__snapshots__/CapSpin.test.tsx.snap +245 -0
  50. package/dist/CapSwitch/CapSwitch.d.ts.map +1 -1
  51. package/dist/CapSwitch/__snapshots__/CapSwitch.test.tsx.snap +178 -0
  52. package/dist/CapSwitch/index.js +7 -489
  53. package/dist/CapSwitch/index.js.map +1 -1
  54. package/dist/CapTab/CapTab.d.ts +11 -1
  55. package/dist/CapTab/CapTab.d.ts.map +1 -1
  56. package/dist/CapTab/__snapshots__/CapTab.test.tsx.snap +1508 -0
  57. package/dist/CapTab/index.js +29 -19
  58. package/dist/CapTab/index.js.map +1 -1
  59. package/dist/CapTable/__snapshots__/CapTable.test.tsx.snap +993 -0
  60. package/dist/CapTooltip/CapTooltip.d.ts +32 -1
  61. package/dist/CapTooltip/CapTooltip.d.ts.map +1 -1
  62. package/dist/CapTooltip/__snapshots__/CapTooltip.test.tsx.snap +121 -0
  63. package/dist/CapTooltip/index.js +25 -7
  64. package/dist/CapTooltip/index.js.map +1 -1
  65. package/dist/CapTooltipWithInfo/__snapshots__/CapTooltipWithInfo.test.tsx.snap +388 -0
  66. package/dist/CapTooltipWithInfo/index.js +25 -7
  67. package/dist/CapTooltipWithInfo/index.js.map +1 -1
  68. package/dist/CapUnifiedSelect/__snapshots__/CapUnifiedSelect.test.tsx.snap +898 -0
  69. package/dist/CapUnifiedSelect/index.js +28 -8
  70. package/dist/CapUnifiedSelect/index.js.map +1 -1
  71. package/dist/index.js +187 -232
  72. package/dist/index.js.map +1 -1
  73. package/package.json +7 -2
package/README.md CHANGED
@@ -106,16 +106,29 @@ To customize when the GitHub Action runs:
106
106
 
107
107
  # Blaze UI
108
108
 
109
- A modern React component library built with Ant Design v5, providing enhanced UI components for Capillary applications.
109
+ A modern React component library built with Ant Design v6, providing enhanced UI components for Capillary applications.
110
110
 
111
111
  ## Features
112
112
 
113
- - 🎨 Built on top of Ant Design v5
113
+ - 🎨 Built on top of Ant Design v6 (latest)
114
114
  - 📦 Tree-shakeable ES modules
115
115
  - 🎯 Full TypeScript support with type definitions
116
116
  - 🌐 Internationalization ready
117
117
  - 💅 Styled with SCSS and CSS Modules
118
118
  - ⚡ Optimized bundle size
119
+ - ✅ Fully compliant with Ant Design v6 APIs
120
+
121
+ ## Ant Design v6 Migration (Complete ✅)
122
+
123
+ This library has been upgraded from Ant Design v5 to **v6.1.0**. All critical components are fully compliant with the new v6 APIs.
124
+
125
+ | Package | Version |
126
+ |---------|---------|
127
+ | `antd` | 6.1.0 |
128
+ | `@ant-design/icons` | 6.1.0 |
129
+ | React (required) | ≥18.0.0 |
130
+
131
+ > 📄 **For detailed migration information, see [docs/ANTD_V6_MIGRATION.md](./docs/ANTD_V6_MIGRATION.md)**
119
132
 
120
133
  ## Installation
121
134
 
@@ -181,7 +194,7 @@ This will start the Storybook development server at `http://localhost:6006`, whe
181
194
 
182
195
  ## Theming
183
196
 
184
- Blaze UI provides a comprehensive theming system using Ant Design v5's token-based architecture. This eliminates the need for SCSS color overrides and provides consistent theming across all components.
197
+ Blaze UI provides a comprehensive theming system using Ant Design v6's token-based architecture. This eliminates the need for SCSS color overrides and provides consistent theming across all components.
185
198
 
186
199
  ### Quick Start
187
200
 
@@ -200,192 +213,7 @@ function App() {
200
213
  }
201
214
  ```
202
215
 
203
- ### Basic Usage
204
-
205
- The `getCapThemeConfig()` function maps all Capillary design tokens to Ant Design tokens, ensuring consistent theming:
206
-
207
- ```tsx
208
- import { ConfigProvider } from 'antd-v5';
209
- import { getCapThemeConfig } from '@capillarytech/blaze-ui';
210
-
211
- const App = () => (
212
- <ConfigProvider theme={getCapThemeConfig()}>
213
- <YourApp />
214
- </ConfigProvider>
215
- );
216
- ```
217
-
218
- ### Dark/Light Mode Support
219
-
220
- Ant Design v5 supports built-in dark/light mode switching. Use the `algorithm` prop to enable theme switching:
221
-
222
- ```tsx
223
- import { ConfigProvider, theme as antdTheme } from 'antd-v5';
224
- import { getCapThemeConfig } from '@capillarytech/blaze-ui';
225
-
226
- const App = ({ themeMode = 'light' }) => {
227
- const themeConfig = getCapThemeConfig({
228
- algorithm: themeMode === 'dark'
229
- ? antdTheme.darkAlgorithm
230
- : antdTheme.defaultAlgorithm,
231
- });
232
-
233
- return (
234
- <ConfigProvider theme={themeConfig}>
235
- <YourApp />
236
- </ConfigProvider>
237
- );
238
- };
239
- ```
240
-
241
- **Example with theme toggle:**
242
-
243
- ```tsx
244
- import React, { useState } from 'react';
245
- import { ConfigProvider, theme as antdTheme } from 'antd-v5';
246
- import { getCapThemeConfig } from '@capillarytech/blaze-ui';
247
- import { Button } from 'antd-v5';
248
-
249
- const App = () => {
250
- const [isDark, setIsDark] = useState(false);
251
-
252
- const themeConfig = getCapThemeConfig({
253
- algorithm: isDark ? antdTheme.darkAlgorithm : antdTheme.defaultAlgorithm,
254
- });
255
-
256
- return (
257
- <ConfigProvider theme={themeConfig}>
258
- <Button onClick={() => setIsDark(!isDark)}>
259
- Toggle {isDark ? 'Light' : 'Dark'} Mode
260
- </Button>
261
- <YourApp />
262
- </ConfigProvider>
263
- );
264
- };
265
- ```
266
-
267
- ### Custom Theme Overrides
268
-
269
- You can override specific tokens while keeping the base Capillary theme:
270
-
271
- ```tsx
272
- import { ConfigProvider } from 'antd-v5';
273
- import { getCapThemeConfig } from '@capillarytech/blaze-ui';
274
-
275
- const App = () => {
276
- const themeConfig = getCapThemeConfig({
277
- token: {
278
- colorPrimary: '#custom-color', // Override primary color
279
- borderRadius: 12, // Override border radius
280
- },
281
- components: {
282
- Button: {
283
- borderRadius: 8, // Override button border radius
284
- controlHeight: 40, // Override button height
285
- },
286
- Input: {
287
- colorBorder: '#custom-border', // Override input border color
288
- },
289
- },
290
- });
291
-
292
- return (
293
- <ConfigProvider theme={themeConfig}>
294
- <YourApp />
295
- </ConfigProvider>
296
- );
297
- };
298
- ```
299
-
300
- ### What Gets Themed
301
-
302
- The `getCapThemeConfig()` function configures tokens for:
303
-
304
- **Global Tokens:**
305
- - Primary, success, warning, error, info colors
306
- - Text colors (primary, secondary, tertiary, quaternary)
307
- - Background colors (container, elevated, layout, spotlight)
308
- - Border colors
309
- - Typography (font family, sizes)
310
- - Border radius
311
- - Spacing/padding
312
-
313
- **Component-Specific Tokens:**
314
- - **Alert**: Background colors for success/info/warning/error states
315
- - **Button**: Primary colors, hover states, disabled states, default button styles
316
- - **Input**: Border colors, hover/focus states, error states, disabled states
317
- - **Table**: Header colors, row hover states, text colors
318
- - **Checkbox**: Checked colors, disabled states
319
- - **Radio**: Checked colors, disabled states
320
- - **Switch**: Checked colors, hover states
321
- - **Tab**: Text colors, active states, ink bar color
322
- - **Dropdown**: Hover states
323
- - **Tooltip**: Background and text colors
324
- - **Divider**: Border colors
325
- - **Select**: Border, hover, disabled states
326
-
327
- ### Benefits of Token-Based Theming
328
-
329
- ✅ **No SCSS Overrides Needed**: Colors are handled via tokens, eliminating the need for SCSS color overrides
330
- ✅ **Consistent Theming**: All Ant Design components automatically use the configured tokens
331
- ✅ **Dark/Light Mode**: Built-in support for theme switching
332
- ✅ **Type-Safe**: Full TypeScript support with proper types
333
- ✅ **Easy Customization**: Override specific tokens without affecting others
334
- ✅ **Future-Proof**: Uses Ant Design v5's modern token system
335
-
336
- ### Migration from SCSS Overrides
337
-
338
- If you're currently using SCSS overrides for Ant Design components, you can migrate to the token system:
339
-
340
- **Before (SCSS overrides):**
341
- ```scss
342
- .ant-btn-primary {
343
- background-color: $cap-primary-base;
344
-
345
- &:hover {
346
- background-color: $cap-primary-hover;
347
- }
348
- }
349
- ```
350
-
351
- **After (Token-based):**
352
- ```tsx
353
- import { ConfigProvider } from 'antd-v5';
354
- import { getCapThemeConfig } from '@capillarytech/blaze-ui';
355
-
356
- <ConfigProvider theme={getCapThemeConfig()}>
357
- {/* Button colors are automatically themed */}
358
- </ConfigProvider>
359
- ```
360
-
361
- The `getCapThemeConfig()` function already maps all Capillary colors to Ant Design tokens, so you can remove SCSS color overrides and rely on the token system.
362
-
363
- ### Advanced: Multiple Theme Instances
364
-
365
- You can create multiple theme instances for different parts of your application:
366
-
367
- ```tsx
368
- import { ConfigProvider } from 'antd-v5';
369
- import { getCapThemeConfig } from '@capillarytech/blaze-ui';
370
-
371
- const App = () => {
372
- const defaultTheme = getCapThemeConfig();
373
- const customTheme = getCapThemeConfig({
374
- token: { colorPrimary: '#ff6b6b' },
375
- });
376
-
377
- return (
378
- <>
379
- <ConfigProvider theme={defaultTheme}>
380
- <DefaultSection />
381
- </ConfigProvider>
382
- <ConfigProvider theme={customTheme}>
383
- <CustomSection />
384
- </ConfigProvider>
385
- </>
386
- );
387
- };
388
- ```
216
+ > 📄 **For complete theming documentation, see [docs/THEMING.md](./docs/THEMING.md)**
389
217
 
390
218
  ## Styling
391
219
 
@@ -563,12 +391,20 @@ bash scripts/publish.sh beta
563
391
 
564
392
  ## Migration from cap-ui-library
565
393
 
566
- This library is designed as a modern replacement for `@capillarytech/cap-ui-library`, migrated from Ant Design v3 to v5. Key changes include:
394
+ This library is designed as a modern replacement for `@capillarytech/cap-ui-library`, migrated from Ant Design v3 to v6. Key changes include:
567
395
 
568
- 1. **Updated Ant Design APIs**: All components now use Ant Design v5 APIs
396
+ 1. **Updated Ant Design APIs**: All components now use Ant Design v6 APIs (latest)
569
397
  2. **Modern React patterns**: Functional components with hooks instead of class components
570
398
  3. **Full TypeScript support**: Complete type definitions for all components and utilities
571
399
  4. **Better tree-shaking**: Optimized bundle size with proper ES modules
400
+ 5. **v6 Compliance**: All deprecated v5 APIs have been updated to use the new v6 equivalents
401
+
402
+ ## Documentation
403
+
404
+ | Document | Description |
405
+ |----------|-------------|
406
+ | [ANTD_V6_MIGRATION.md](./docs/ANTD_V6_MIGRATION.md) | Detailed Ant Design v5 → v6 migration report |
407
+ | [THEMING.md](./docs/THEMING.md) | Complete theming guide with examples |
572
408
 
573
409
  ## Contributing
574
410
 
@@ -577,4 +413,3 @@ Please read our contributing guidelines before submitting PRs.
577
413
  ## License
578
414
 
579
415
  ISC © Capillary Technologies
580
-
@@ -2,6 +2,13 @@ import React from 'react';
2
2
  export interface CapAlertProps {
3
3
  className?: string;
4
4
  type?: 'success' | 'info' | 'warning' | 'error';
5
+ /**
6
+ * Title of the alert (v6 API)
7
+ */
8
+ title?: React.ReactNode;
9
+ /**
10
+ * @deprecated Use `title` instead. Will be removed in next major version.
11
+ */
5
12
  message?: React.ReactNode;
6
13
  description?: React.ReactNode;
7
14
  showIcon?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CapAlert.d.ts","sourceRoot":"","sources":["../../components/CapAlert/CapAlert.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAChD,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAIrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"CapAlert.d.ts","sourceRoot":"","sources":["../../components/CapAlert/CapAlert.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAoBrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,217 @@
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
+
3
+ exports[`CapAlert Snapshots should match snapshot with custom className 1`] = `
4
+ <div>
5
+ <div
6
+ class="cap-alert-wrapper"
7
+ >
8
+ <div
9
+ class="ant-alert ant-alert-info ant-alert-no-icon cap-alert-v2 custom-alert-class css-var-root css-dev-only-do-not-override-dbp7pc"
10
+ data-show="true"
11
+ role="alert"
12
+ >
13
+ <div
14
+ class="ant-alert-section"
15
+ >
16
+ <div
17
+ class="ant-alert-title"
18
+ >
19
+ Custom Alert
20
+ </div>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ </div>
25
+ `;
26
+
27
+ exports[`CapAlert Snapshots should match snapshot with default props 1`] = `
28
+ <div>
29
+ <div
30
+ class="cap-alert-wrapper"
31
+ >
32
+ <div
33
+ class="ant-alert ant-alert-info ant-alert-no-icon cap-alert-v2 css-var-root css-dev-only-do-not-override-dbp7pc"
34
+ data-show="true"
35
+ role="alert"
36
+ >
37
+ <div
38
+ class="ant-alert-section"
39
+ >
40
+ <div
41
+ class="ant-alert-title"
42
+ >
43
+ Default Alert
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ `;
50
+
51
+ exports[`CapAlert Snapshots should match snapshot with description 1`] = `
52
+ <div>
53
+ <div
54
+ class="cap-alert-wrapper"
55
+ >
56
+ <div
57
+ class="ant-alert ant-alert-info ant-alert-with-description ant-alert-no-icon cap-alert-v2 css-var-root css-dev-only-do-not-override-dbp7pc"
58
+ data-show="true"
59
+ role="alert"
60
+ >
61
+ <div
62
+ class="ant-alert-section"
63
+ >
64
+ <div
65
+ class="ant-alert-title"
66
+ >
67
+ Alert Title
68
+ </div>
69
+ <div
70
+ class="ant-alert-description"
71
+ >
72
+ This is the alert description
73
+ </div>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ `;
79
+
80
+ exports[`CapAlert Snapshots should match snapshot with error type 1`] = `
81
+ <div>
82
+ <div
83
+ class="cap-alert-wrapper"
84
+ >
85
+ <div
86
+ class="ant-alert ant-alert-error ant-alert-no-icon cap-alert-v2 css-var-root css-dev-only-do-not-override-dbp7pc"
87
+ data-show="true"
88
+ role="alert"
89
+ >
90
+ <div
91
+ class="ant-alert-section"
92
+ >
93
+ <div
94
+ class="ant-alert-title"
95
+ >
96
+ Error Alert
97
+ </div>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ </div>
102
+ `;
103
+
104
+ exports[`CapAlert Snapshots should match snapshot with info type 1`] = `
105
+ <div>
106
+ <div
107
+ class="cap-alert-wrapper"
108
+ >
109
+ <div
110
+ class="ant-alert ant-alert-info ant-alert-no-icon cap-alert-v2 css-var-root css-dev-only-do-not-override-dbp7pc"
111
+ data-show="true"
112
+ role="alert"
113
+ >
114
+ <div
115
+ class="ant-alert-section"
116
+ >
117
+ <div
118
+ class="ant-alert-title"
119
+ >
120
+ Info Alert
121
+ </div>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ </div>
126
+ `;
127
+
128
+ exports[`CapAlert Snapshots should match snapshot with showIcon 1`] = `
129
+ <div>
130
+ <div
131
+ class="cap-alert-wrapper"
132
+ >
133
+ <div
134
+ class="ant-alert ant-alert-info cap-alert-v2 css-var-root css-dev-only-do-not-override-dbp7pc"
135
+ data-show="true"
136
+ role="alert"
137
+ >
138
+ <span
139
+ aria-label="info-circle"
140
+ class="anticon anticon-info-circle ant-alert-icon"
141
+ role="img"
142
+ >
143
+ <svg
144
+ aria-hidden="true"
145
+ data-icon="info-circle"
146
+ fill="currentColor"
147
+ focusable="false"
148
+ height="1em"
149
+ viewBox="64 64 896 896"
150
+ width="1em"
151
+ >
152
+ <path
153
+ d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"
154
+ />
155
+ </svg>
156
+ </span>
157
+ <div
158
+ class="ant-alert-section"
159
+ >
160
+ <div
161
+ class="ant-alert-title"
162
+ >
163
+ Alert with Icon
164
+ </div>
165
+ </div>
166
+ </div>
167
+ </div>
168
+ </div>
169
+ `;
170
+
171
+ exports[`CapAlert Snapshots should match snapshot with success type 1`] = `
172
+ <div>
173
+ <div
174
+ class="cap-alert-wrapper"
175
+ >
176
+ <div
177
+ class="ant-alert ant-alert-success ant-alert-no-icon cap-alert-v2 css-var-root css-dev-only-do-not-override-dbp7pc"
178
+ data-show="true"
179
+ role="alert"
180
+ >
181
+ <div
182
+ class="ant-alert-section"
183
+ >
184
+ <div
185
+ class="ant-alert-title"
186
+ >
187
+ Success Alert
188
+ </div>
189
+ </div>
190
+ </div>
191
+ </div>
192
+ </div>
193
+ `;
194
+
195
+ exports[`CapAlert Snapshots should match snapshot with warning type 1`] = `
196
+ <div>
197
+ <div
198
+ class="cap-alert-wrapper"
199
+ >
200
+ <div
201
+ class="ant-alert ant-alert-warning ant-alert-no-icon cap-alert-v2 css-var-root css-dev-only-do-not-override-dbp7pc"
202
+ data-show="true"
203
+ role="alert"
204
+ >
205
+ <div
206
+ class="ant-alert-section"
207
+ >
208
+ <div
209
+ class="ant-alert-title"
210
+ >
211
+ Warning Alert
212
+ </div>
213
+ </div>
214
+ </div>
215
+ </div>
216
+ </div>
217
+ `;
@@ -62,7 +62,7 @@ var _classnames = _interopRequireDefault(__webpack_require__(6942));
62
62
  var _react = _interopRequireDefault(__webpack_require__(9206));
63
63
  var _styles = _interopRequireDefault(__webpack_require__(4107));
64
64
  var _jsxRuntime = __webpack_require__(4848);
65
- const _excluded = ["className", "type"];
65
+ const _excluded = ["className", "type", "title", "message"];
66
66
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
67
67
  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); }
68
68
  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; }
@@ -70,14 +70,19 @@ const clsPrefix = 'cap-alert-v2';
70
70
  const CapAlert = _ref => {
71
71
  let {
72
72
  className,
73
- type = 'info'
73
+ type = 'info',
74
+ title,
75
+ message
74
76
  } = _ref,
75
77
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
78
+ // Support both new `title` and deprecated `message` props
79
+ const alertTitle = title || message;
76
80
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
77
81
  className: _styles.default['cap-alert-wrapper'],
78
82
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Alert, _extends({
79
83
  className: (0, _classnames.default)(_styles.default[clsPrefix], className),
80
- type: type
84
+ type: type,
85
+ title: alertTitle
81
86
  }, rest))
82
87
  });
83
88
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CapAlert/index.js","mappings":"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A;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,IAAAY,SAAA,GAAAnC,sBAAA,CAAAF,mBAAA;AAAqCoC,kBAAA,GAAAC,SAAA,CAAA5B,OAAA;AAAA,SAAAP,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA,K","sources":["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/./node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://@capillarytech/blaze-ui/./components/CapAlert/CapAlert.tsx","webpack://@capillarytech/blaze-ui/./components/CapAlert/styles.scss","webpack://@capillarytech/blaze-ui/./components/CapAlert/styles.scss?6be3","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/CapAlert/index.ts"],"sourcesContent":["\"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","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","import { Alert } from 'antd-v5';\nimport classNames from 'classnames';\nimport React from 'react';\n\nimport styles from './styles.scss';\n\nconst clsPrefix = 'cap-alert-v2';\n\nexport interface CapAlertProps {\n className?: string;\n type?: 'success' | 'info' | 'warning' | 'error';\n message?: React.ReactNode;\n description?: React.ReactNode;\n showIcon?: boolean;\n [key: string]: unknown;\n}\n\nconst CapAlert: React.FC<CapAlertProps> = ({ className, type = 'info', ...rest }) => (\n <div className={styles['cap-alert-wrapper']}>\n <Alert className={classNames(styles[clsPrefix], className)} type={type} {...rest} />\n </div>\n);\n\nexport default CapAlert;\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-alert-wrapper .ant-alert{border:none;font-size:.857rem;padding-left:.857rem;padding-right:.857rem}`, \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"cap-alert-wrapper\": `blaze-ui-cap-alert-wrapper`\n};\nmodule.exports = ___CSS_LOADER_EXPORT___;\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 './CapAlert';\nexport type { CapAlertProps } from './CapAlert';\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","clsPrefix","CapAlert","_ref","className","type","rest","jsx","styles","children","Alert","classNames","_default","exports","_CapAlert"],"sourceRoot":""}
1
+ {"version":3,"file":"CapAlert/index.js","mappings":"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CA;;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,IAAAe,SAAA,GAAAtC,sBAAA,CAAAF,mBAAA;AAAqCuC,kBAAA,GAAAC,SAAA,CAAA/B,OAAA;AAAA,SAAAP,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA,K","sources":["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/./node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://@capillarytech/blaze-ui/./components/CapAlert/CapAlert.tsx","webpack://@capillarytech/blaze-ui/./components/CapAlert/styles.scss","webpack://@capillarytech/blaze-ui/./components/CapAlert/styles.scss?6be3","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/CapAlert/index.ts"],"sourcesContent":["\"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","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","import { Alert } from 'antd-v5';\nimport classNames from 'classnames';\nimport React from 'react';\n\nimport styles from './styles.scss';\n\nconst clsPrefix = 'cap-alert-v2';\n\nexport interface CapAlertProps {\n className?: string;\n type?: 'success' | 'info' | 'warning' | 'error';\n /**\n * Title of the alert (v6 API)\n */\n title?: React.ReactNode;\n /**\n * @deprecated Use `title` instead. Will be removed in next major version.\n */\n message?: React.ReactNode;\n description?: React.ReactNode;\n showIcon?: boolean;\n [key: string]: unknown;\n}\n\nconst CapAlert: React.FC<CapAlertProps> = ({\n className,\n type = 'info',\n title,\n message,\n ...rest\n}) => {\n // Support both new `title` and deprecated `message` props\n const alertTitle = title || message;\n\n return (\n <div className={styles['cap-alert-wrapper']}>\n <Alert\n className={classNames(styles[clsPrefix], className)}\n type={type}\n title={alertTitle}\n {...rest}\n />\n </div>\n );\n};\n\nexport default CapAlert;\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-alert-wrapper .ant-alert{border:none;font-size:.857rem;padding-left:.857rem;padding-right:.857rem}`, \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"cap-alert-wrapper\": `blaze-ui-cap-alert-wrapper`\n};\nmodule.exports = ___CSS_LOADER_EXPORT___;\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 './CapAlert';\nexport type { CapAlertProps } from './CapAlert';\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","clsPrefix","CapAlert","_ref","className","type","title","message","rest","alertTitle","jsx","styles","children","Alert","classNames","_default","exports","_CapAlert"],"sourceRoot":""}
@@ -6,6 +6,6 @@ export interface CapButtonProps extends Omit<ButtonProps, 'type' | 'prefix' | 's
6
6
  prefix?: React.ReactNode;
7
7
  suffix?: React.ReactNode;
8
8
  }
9
- declare const CapButton: React.FC<CapButtonProps>;
9
+ declare const CapButton: React.ForwardRefExoticComponent<CapButtonProps & React.RefAttributes<HTMLButtonElement>>;
10
10
  export default CapButton;
11
11
  //# sourceMappingURL=CapButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CapButton.d.ts","sourceRoot":"","sources":["../../components/CapButton/CapButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACrF,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAC1F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAwCvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"CapButton.d.ts","sourceRoot":"","sources":["../../components/CapButton/CapButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACrF,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAC1F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,QAAA,MAAM,SAAS,0FAiCd,CAAC;AAIF,eAAe,SAAS,CAAC"}