@capillarytech/blaze-ui 4.11.0 → 4.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CapEventCalendar/index.js +11 -5
- package/dist/CapEventCalendar/index.js.map +1 -1
- package/dist/CapIllustration/index.js +11 -5
- package/dist/CapIllustration/index.js.map +1 -1
- package/dist/CapSwitch/README.md +351 -0
- package/dist/CapSwitch/index.d.ts +3 -9
- package/dist/CapSwitch/index.d.ts.map +1 -1
- package/dist/CapSwitch/index.js +7 -4
- package/dist/CapSwitch/index.js.map +1 -1
- package/dist/CapSwitch/types.d.ts +10 -0
- package/dist/CapSwitch/types.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/CapTag/README.md +0 -4
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
# CapSwitch
|
|
2
|
+
|
|
3
|
+
Switch component for toggling between two states. Built on Ant Design v6 with Cap UI styling.
|
|
4
|
+
|
|
5
|
+
## Summary of Changes from cap-ui-library
|
|
6
|
+
|
|
7
|
+
The `CapSwitch` component has been migrated from `cap-ui-library` to `blaze-ui` with the following updates:
|
|
8
|
+
|
|
9
|
+
- **TypeScript**: Full TypeScript implementation with proper type definitions
|
|
10
|
+
- **Ant Design v6**: Updated to use Ant Design v6 APIs
|
|
11
|
+
- **Functional Component**: Converted from class component to functional component with `forwardRef` support
|
|
12
|
+
- **SCSS Modules**: Converted from regular SCSS to SCSS modules
|
|
13
|
+
- **Removed HOC**: Removed `ComponentWithLabelHOC` wrapper (use `CapLabel` component separately if needed)
|
|
14
|
+
- **No Breaking Changes**: Fully backward compatible with `cap-ui-library` v8.x
|
|
15
|
+
|
|
16
|
+
## Props
|
|
17
|
+
|
|
18
|
+
The component accepts all Ant Design v6 `Switch` props. Key props include:
|
|
19
|
+
|
|
20
|
+
| Prop | Type | Default | Description |
|
|
21
|
+
|------|------|---------|-------------|
|
|
22
|
+
| `checked` | `boolean` | `false` | Whether the switch is checked (controlled mode) |
|
|
23
|
+
| `defaultChecked` | `boolean` | `false` | Default checked state (uncontrolled mode) |
|
|
24
|
+
| `disabled` | `boolean` | `false` | Whether the switch is disabled |
|
|
25
|
+
| `size` | `'small' \| 'default'` | `'default'` | The size of the switch |
|
|
26
|
+
| `loading` | `boolean` | `false` | Loading state of switch |
|
|
27
|
+
| `autoFocus` | `boolean` | `false` | Get focus when component mounted |
|
|
28
|
+
| `checkedChildren` | `React.ReactNode` | - | Content to be shown when the state is checked |
|
|
29
|
+
| `unCheckedChildren` | `React.ReactNode` | - | Content to be shown when the state is unchecked |
|
|
30
|
+
| `onChange` | `(checked: boolean, event: React.MouseEvent \| React.KeyboardEvent) => void` | - | Callback function when switch state changes |
|
|
31
|
+
| `onClick` | `(checked: boolean, event: React.MouseEvent) => void` | - | Callback function when switch is clicked |
|
|
32
|
+
| `className` | `string` | - | Additional CSS class name |
|
|
33
|
+
|
|
34
|
+
**Note**: The component accepts all other Ant Design v6 `Switch` props. See [Ant Design Switch documentation](https://ant.design/components/switch) for complete prop list.
|
|
35
|
+
|
|
36
|
+
## API Changes
|
|
37
|
+
|
|
38
|
+
### Removed Props
|
|
39
|
+
|
|
40
|
+
- **`children`**: Removed support for children prop. The original component wrapped children through `ComponentWithLabelHOC`, but this has been removed. Use `CapLabel` component separately if you need label functionality.
|
|
41
|
+
|
|
42
|
+
### Controlled vs Uncontrolled Mode
|
|
43
|
+
|
|
44
|
+
The component supports both controlled and uncontrolled modes:
|
|
45
|
+
|
|
46
|
+
**Controlled Mode:**
|
|
47
|
+
```tsx
|
|
48
|
+
const [checked, setChecked] = useState(false);
|
|
49
|
+
|
|
50
|
+
<CapSwitch
|
|
51
|
+
checked={checked}
|
|
52
|
+
onChange={(newChecked) => setChecked(newChecked)}
|
|
53
|
+
/>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Uncontrolled Mode:**
|
|
57
|
+
```tsx
|
|
58
|
+
<CapSwitch
|
|
59
|
+
defaultChecked={false}
|
|
60
|
+
onChange={(checked) => console.log('Changed:', checked)}
|
|
61
|
+
/>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Behavioral Changes
|
|
65
|
+
|
|
66
|
+
### No Breaking Changes
|
|
67
|
+
|
|
68
|
+
The component maintains **100% backward compatibility** with `cap-ui-library` v8.x for all standard Switch props. All existing code will continue to work without modifications.
|
|
69
|
+
|
|
70
|
+
### Removed Features
|
|
71
|
+
|
|
72
|
+
- **ComponentWithLabelHOC**: The original component was wrapped with `ComponentWithLabelHOC` which provided label functionality. This wrapper has been removed. If you need label functionality, use `CapLabel` component separately:
|
|
73
|
+
|
|
74
|
+
**Before (cap-ui-library):**
|
|
75
|
+
```tsx
|
|
76
|
+
<CapSwitch checked={true}>
|
|
77
|
+
<span>Enable Feature</span>
|
|
78
|
+
</CapSwitch>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**After (blaze-ui):**
|
|
82
|
+
```tsx
|
|
83
|
+
<CapRow align="middle" gap={12}>
|
|
84
|
+
<CapColumn>
|
|
85
|
+
<CapSwitch checked={true} />
|
|
86
|
+
</CapColumn>
|
|
87
|
+
<CapColumn>
|
|
88
|
+
<CapLabel>Enable Feature</CapLabel>
|
|
89
|
+
</CapColumn>
|
|
90
|
+
</CapRow>
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Enhanced Features
|
|
94
|
+
|
|
95
|
+
- **Ref Forwarding**: The component now supports ref forwarding using `React.forwardRef`
|
|
96
|
+
- **TypeScript Support**: Full TypeScript type definitions for better developer experience
|
|
97
|
+
- **Improved Styling**: Enhanced SCSS modules with better size consistency and visual alignment
|
|
98
|
+
|
|
99
|
+
## Migration Steps for Consumers
|
|
100
|
+
|
|
101
|
+
### Step 1: Update Imports
|
|
102
|
+
|
|
103
|
+
**Before:**
|
|
104
|
+
```tsx
|
|
105
|
+
import { CapSwitch } from '@capillarytech/cap-ui-library';
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**After:**
|
|
109
|
+
```tsx
|
|
110
|
+
import { CapSwitch } from '@capillarytech/blaze-ui';
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Step 2: Update Label Usage (If Applicable)
|
|
114
|
+
|
|
115
|
+
If you were using the `children` prop for labels, update to use `CapLabel` separately:
|
|
116
|
+
|
|
117
|
+
**Before:**
|
|
118
|
+
```tsx
|
|
119
|
+
<CapSwitch checked={isEnabled}>
|
|
120
|
+
<span>Enable Notifications</span>
|
|
121
|
+
</CapSwitch>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
**After:**
|
|
125
|
+
```tsx
|
|
126
|
+
import { CapSwitch, CapLabel, CapRow, CapColumn } from '@capillarytech/blaze-ui';
|
|
127
|
+
|
|
128
|
+
<CapRow align="middle" gap={12}>
|
|
129
|
+
<CapColumn>
|
|
130
|
+
<CapSwitch checked={isEnabled} />
|
|
131
|
+
</CapColumn>
|
|
132
|
+
<CapColumn>
|
|
133
|
+
<CapLabel>Enable Notifications</CapLabel>
|
|
134
|
+
</CapColumn>
|
|
135
|
+
</CapRow>
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Step 3: No Other Changes Required
|
|
139
|
+
|
|
140
|
+
All other props and usage patterns remain the same. The component is fully backward compatible.
|
|
141
|
+
|
|
142
|
+
## Code Examples
|
|
143
|
+
|
|
144
|
+
### Basic Usage
|
|
145
|
+
|
|
146
|
+
```tsx
|
|
147
|
+
import { CapSwitch } from '@capillarytech/blaze-ui';
|
|
148
|
+
|
|
149
|
+
function MyComponent() {
|
|
150
|
+
const [enabled, setEnabled] = useState(false);
|
|
151
|
+
|
|
152
|
+
return (
|
|
153
|
+
<CapSwitch
|
|
154
|
+
checked={enabled}
|
|
155
|
+
onChange={setEnabled}
|
|
156
|
+
/>
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Uncontrolled Mode
|
|
162
|
+
|
|
163
|
+
```tsx
|
|
164
|
+
<CapSwitch
|
|
165
|
+
defaultChecked={false}
|
|
166
|
+
onChange={(checked) => {
|
|
167
|
+
console.log('Switch toggled:', checked);
|
|
168
|
+
}}
|
|
169
|
+
/>
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### With Text Content
|
|
173
|
+
|
|
174
|
+
```tsx
|
|
175
|
+
<CapSwitch
|
|
176
|
+
checked={true}
|
|
177
|
+
checkedChildren="ON"
|
|
178
|
+
unCheckedChildren="OFF"
|
|
179
|
+
/>
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### With Custom Content
|
|
183
|
+
|
|
184
|
+
```tsx
|
|
185
|
+
<CapSwitch
|
|
186
|
+
checked={true}
|
|
187
|
+
checkedChildren={<span style={{ color: 'green' }}>✓</span>}
|
|
188
|
+
unCheckedChildren={<span style={{ color: 'red' }}>✗</span>}
|
|
189
|
+
/>
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Disabled State
|
|
193
|
+
|
|
194
|
+
```tsx
|
|
195
|
+
<CapSwitch
|
|
196
|
+
checked={true}
|
|
197
|
+
disabled
|
|
198
|
+
/>
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Loading State
|
|
202
|
+
|
|
203
|
+
```tsx
|
|
204
|
+
<CapSwitch
|
|
205
|
+
checked={true}
|
|
206
|
+
loading
|
|
207
|
+
/>
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Different Sizes
|
|
211
|
+
|
|
212
|
+
```tsx
|
|
213
|
+
<CapSwitch size="default" checked={true} />
|
|
214
|
+
<CapSwitch size="small" checked={true} />
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### With Label (Using CapLabel)
|
|
218
|
+
|
|
219
|
+
```tsx
|
|
220
|
+
import { CapSwitch, CapLabel, CapRow, CapColumn } from '@capillarytech/blaze-ui';
|
|
221
|
+
|
|
222
|
+
<CapRow align="middle" gap={12}>
|
|
223
|
+
<CapColumn>
|
|
224
|
+
<CapSwitch checked={notificationsEnabled} />
|
|
225
|
+
</CapColumn>
|
|
226
|
+
<CapColumn>
|
|
227
|
+
<CapLabel>Email Notifications</CapLabel>
|
|
228
|
+
</CapColumn>
|
|
229
|
+
</CapRow>
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### Settings Panel Example
|
|
233
|
+
|
|
234
|
+
```tsx
|
|
235
|
+
import { useState } from 'react';
|
|
236
|
+
import { CapSwitch, CapRow, CapColumn } from '@capillarytech/blaze-ui';
|
|
237
|
+
|
|
238
|
+
function SettingsPanel() {
|
|
239
|
+
const [settings, setSettings] = useState({
|
|
240
|
+
notifications: true,
|
|
241
|
+
darkMode: false,
|
|
242
|
+
autoSave: true,
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
const handleChange = (key: string) => (checked: boolean) => {
|
|
246
|
+
setSettings(prev => ({ ...prev, [key]: checked }));
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
return (
|
|
250
|
+
<CapRow gap={16} vertical>
|
|
251
|
+
<CapColumn>
|
|
252
|
+
<CapRow justify="space-between" align="middle">
|
|
253
|
+
<CapColumn>Email Notifications</CapColumn>
|
|
254
|
+
<CapColumn>
|
|
255
|
+
<CapSwitch
|
|
256
|
+
checked={settings.notifications}
|
|
257
|
+
onChange={handleChange('notifications')}
|
|
258
|
+
/>
|
|
259
|
+
</CapColumn>
|
|
260
|
+
</CapRow>
|
|
261
|
+
</CapColumn>
|
|
262
|
+
<CapColumn>
|
|
263
|
+
<CapRow justify="space-between" align="middle">
|
|
264
|
+
<CapColumn>Dark Mode</CapColumn>
|
|
265
|
+
<CapColumn>
|
|
266
|
+
<CapSwitch
|
|
267
|
+
checked={settings.darkMode}
|
|
268
|
+
onChange={handleChange('darkMode')}
|
|
269
|
+
/>
|
|
270
|
+
</CapColumn>
|
|
271
|
+
</CapRow>
|
|
272
|
+
</CapColumn>
|
|
273
|
+
<CapColumn>
|
|
274
|
+
<CapRow justify="space-between" align="middle">
|
|
275
|
+
<CapColumn>Auto Save</CapColumn>
|
|
276
|
+
<CapColumn>
|
|
277
|
+
<CapSwitch
|
|
278
|
+
checked={settings.autoSave}
|
|
279
|
+
onChange={handleChange('autoSave')}
|
|
280
|
+
/>
|
|
281
|
+
</CapColumn>
|
|
282
|
+
</CapRow>
|
|
283
|
+
</CapColumn>
|
|
284
|
+
</CapRow>
|
|
285
|
+
);
|
|
286
|
+
}
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
### With Ref Forwarding
|
|
290
|
+
|
|
291
|
+
```tsx
|
|
292
|
+
import { useRef } from 'react';
|
|
293
|
+
|
|
294
|
+
function MyComponent() {
|
|
295
|
+
const switchRef = useRef<HTMLButtonElement>(null);
|
|
296
|
+
|
|
297
|
+
const handleFocus = () => {
|
|
298
|
+
switchRef.current?.focus();
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
return (
|
|
302
|
+
<div>
|
|
303
|
+
<CapSwitch ref={switchRef} />
|
|
304
|
+
<button onClick={handleFocus}>Focus Switch</button>
|
|
305
|
+
</div>
|
|
306
|
+
);
|
|
307
|
+
}
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
## Import Examples
|
|
311
|
+
|
|
312
|
+
### Default Import
|
|
313
|
+
|
|
314
|
+
```tsx
|
|
315
|
+
import CapSwitch from '@capillarytech/blaze-ui/components/CapSwitch';
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
### Named Import
|
|
319
|
+
|
|
320
|
+
```tsx
|
|
321
|
+
import { CapSwitch } from '@capillarytech/blaze-ui';
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
### With TypeScript Types
|
|
325
|
+
|
|
326
|
+
```tsx
|
|
327
|
+
import { CapSwitch } from '@capillarytech/blaze-ui';
|
|
328
|
+
import type { CapSwitchProps } from '@capillarytech/blaze-ui';
|
|
329
|
+
|
|
330
|
+
const props: CapSwitchProps = {
|
|
331
|
+
checked: true,
|
|
332
|
+
disabled: false,
|
|
333
|
+
size: 'default',
|
|
334
|
+
};
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
## Notes
|
|
338
|
+
|
|
339
|
+
- **No Breaking Changes**: The component is fully backward compatible with `cap-ui-library` v8.x for all standard Switch props
|
|
340
|
+
- **Label Support**: If you need label functionality, use `CapLabel` component separately with `CapRow`/`CapColumn` for layout
|
|
341
|
+
- **Ref Forwarding**: The component supports ref forwarding to the underlying Switch element
|
|
342
|
+
- **Controlled/Uncontrolled**: Supports both controlled (`checked` prop) and uncontrolled (`defaultChecked` prop) modes
|
|
343
|
+
- **Styling**: Uses SCSS modules with consistent sizing and visual alignment
|
|
344
|
+
|
|
345
|
+
## Related Components
|
|
346
|
+
|
|
347
|
+
- `CapLabel` - Label component for use with switches
|
|
348
|
+
- `CapRow` / `CapColumn` - Layout components for arranging switches with labels
|
|
349
|
+
- `CapCheckbox` - Checkbox component for similar use cases
|
|
350
|
+
- `CapRadio` - Radio button component for selection
|
|
351
|
+
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import type { SwitchProps } from 'antd-v5';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
checked?: boolean;
|
|
6
|
-
onChange?: (checked: boolean, event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
size?: 'small' | 'default';
|
|
9
|
-
}
|
|
10
|
-
declare const CapSwitch: React.FC<CapSwitchProps>;
|
|
2
|
+
import type { CapSwitchProps } from './types';
|
|
3
|
+
declare const CapSwitch: React.ForwardRefExoticComponent<CapSwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
4
|
export default CapSwitch;
|
|
5
|
+
export type { CapSwitchProps } from './types';
|
|
12
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapSwitch/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapSwitch/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C,QAAA,MAAM,SAAS,0FAWd,CAAC;AAIF,eAAe,SAAS,CAAC;AACzB,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/CapSwitch/index.js
CHANGED
|
@@ -557,7 +557,7 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
|
557
557
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
558
558
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
559
559
|
// Module
|
|
560
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-switch-v2{font-family:"Roboto",sans-serif}`, ""]);
|
|
560
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-switch-v2{font-family:"Roboto",sans-serif}.blaze-ui-cap-switch-v2 .ant-switch{min-height:22px;height:22px}.blaze-ui-cap-switch-v2.ant-switch-checked{min-height:22px;height:22px}.blaze-ui-cap-switch-v2 .ant-switch-handle{width:18px;height:18px}.blaze-ui-cap-switch-v2 .ant-switch-inner{padding-left:.571rem;padding-right:.571rem}.blaze-ui-cap-switch-v2.ant-switch-small{min-height:16px;height:16px}.blaze-ui-cap-switch-v2.ant-switch-small .ant-switch-handle{width:12px;height:12px}`, ""]);
|
|
561
561
|
// Exports
|
|
562
562
|
___CSS_LOADER_EXPORT___.locals = {
|
|
563
563
|
"cap-switch-v2": `blaze-ui-cap-switch-v2`
|
|
@@ -658,7 +658,7 @@ const _excluded = ["className", "checked", "disabled", "size"];
|
|
|
658
658
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
659
659
|
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); }
|
|
660
660
|
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; }
|
|
661
|
-
const CapSwitch = _ref => {
|
|
661
|
+
const CapSwitch = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
662
662
|
let {
|
|
663
663
|
className,
|
|
664
664
|
checked = false,
|
|
@@ -666,13 +666,16 @@ const CapSwitch = _ref => {
|
|
|
666
666
|
size = 'default'
|
|
667
667
|
} = _ref,
|
|
668
668
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
669
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Switch, _extends({
|
|
669
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Switch, _extends({
|
|
670
|
+
ref: ref
|
|
671
|
+
}, rest, {
|
|
670
672
|
checked: checked,
|
|
671
673
|
disabled: disabled,
|
|
672
674
|
size: size,
|
|
673
675
|
className: (0, _classnames.default)(_styles.default['cap-switch-v2'], className)
|
|
674
676
|
}));
|
|
675
|
-
};
|
|
677
|
+
});
|
|
678
|
+
CapSwitch.displayName = 'CapSwitch';
|
|
676
679
|
var _default = exports["default"] = CapSwitch;
|
|
677
680
|
})();
|
|
678
681
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CapSwitch/index.js","mappings":";;;;;;;AAAA,kC;;;;;;;;ACAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oC;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACRA,MAAkG;AAClG,MAAiG;AACj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;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,2CAAqE;AACvE,EAAE,KAAK;AAAA,EAEN;;;;;;;;;ACNY;;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;;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;;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;AACA,+CAA+C,mBAAO,CAAC,KAA4D;AACnH,kCAAkC,mBAAO,CAAC,KAAmD;AAC7F;AACA;AACA,kEAAkE,gCAAgC;AAClG;AACA;AACA;AACA;AACA;;;;;;;UCVA;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,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,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ACC,eAAM,CAAC,eAAe,CAAC,EAAER,SAAS;EAAE,EAC3D,CAAC;AAAA,CACH;AAAC,IAAAS,QAAA,GAAAC,kBAAA,GAEaZ,SAAS,C","sources":["webpack://@capillarytech/blaze-ui/external commonjs2 {\"commonjs\":\"react\",\"commonjs2\":\"react\",\"amd\":\"react\",\"root\":\"React\"}","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@capillarytech/blaze-ui/./components/CapSwitch/styles.scss?074c","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/./node_modules/classnames/index.js","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","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/css-loader/dist/runtime/api.js","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@capillarytech/blaze-ui/./components/CapSwitch/styles.scss","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/CapSwitch/index.tsx"],"sourcesContent":["module.exports = require(\"react\");","\"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 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","/**\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};","/*!\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\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;","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/*\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};","\"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;","\"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};","// 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-switch-v2{font-family:\"Roboto\",sans-serif}`, \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"cap-switch-v2\": `blaze-ui-cap-switch-v2`\n};\nmodule.exports = ___CSS_LOADER_EXPORT___;\n","// 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;","import { Switch } from 'antd-v5';\nimport type { SwitchProps } from 'antd-v5';\nimport classNames from 'classnames';\nimport React from 'react';\n\nimport styles from './styles.scss';\n\nexport interface CapSwitchProps extends Omit<SwitchProps, 'children' | 'onChange'> {\n className?: string;\n checked?: boolean;\n onChange?: (\n checked: boolean,\n event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>\n ) => void;\n disabled?: boolean;\n size?: 'small' | 'default';\n}\n\nconst CapSwitch: React.FC<CapSwitchProps> = ({\n className,\n checked = false,\n disabled = false,\n size = 'default',\n ...rest\n}) => (\n <Switch\n {...rest}\n checked={checked}\n disabled={disabled}\n size={size}\n className={classNames(styles['cap-switch-v2'], className)}\n />\n);\n\nexport default CapSwitch;\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","CapSwitch","_ref","className","checked","disabled","size","rest","jsx","Switch","classNames","styles","_default","exports"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"CapSwitch/index.js","mappings":";;;;;;;AAAA,kC;;;;;;;;ACAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oC;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACRA,MAAkG;AAClG,MAAiG;AACjG,MAA+F;AAC/F,MAAkH;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACa,MAAM,mBAAO,CAAC,IAAO,6KAA6K;AAC/M,kBAAkB,UAAU,eAAe,qBAAqB,6BAA6B,0BAA0B,0DAA0D,4EAA4E,OAAO,wDAAwD,gBAAgB,GAAG,WAAW,GAAG,YAAY;;;;;;;;;ACV5V;;AAEb;AACA;AACA,E;;;;;;;ACJA;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;AACA;AACA,cAAc,KAAwC,GAAG,sBAAiB,GAAG,CAAI;AACjF;AACA;AACA;AACA;AACA,gD;;;;;;;;ACTA,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,2CAAqE;AACvE,EAAE,KAAK;AAAA,EAEN;;;;;;;;;ACNY;;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;;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;;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;AACA,+CAA+C,mBAAO,CAAC,KAA4D;AACnH,kCAAkC,mBAAO,CAAC,KAAmD;AAC7F;AACA;AACA,kEAAkE,gCAAgC,oCAAoC,gBAAgB,YAAY,2CAA2C,gBAAgB,YAAY,2C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O,8BAAAJ,CAAA,EAAAX,CAAA,gBAAAW,CAAA,iBAAAD,CAAA,gBAAAH,CAAA,IAAAI,CAAA,SAAAC,cAAA,CAAAC,IAAA,CAAAF,CAAA,EAAAJ,CAAA,gBAAAP,CAAA,CAAAgB,OAAA,CAAAT,CAAA,aAAAG,CAAA,CAAAH,CAAA,IAAAI,CAAA,CAAAJ,CAAA,YAAAG,CAAA;AAEnC,MAAMO,SAAS,gBAAGC,cAAK,CAACC,UAAU,CAChC,CAAAC,IAAA,EAA8EC,GAAG;EAAA,IAAhF;MAAEC,SAAS;MAAEC,OAAO,GAAG,KAAK;MAAEC,QAAQ,GAAG,KAAK;MAAEC,IAAI,GAAG;IAAmB,CAAC,GAAAL,IAAA;IAANM,IAAI,GAAAX,6BAAA,CAAAK,IAAA,EAAArB,SAAA;EAAA,oBACxE,IAAAD,WAAA,CAAA6B,GAAA,EAACnC,MAAA,CAAAoC,MAAM,EAAAzB,QAAA;IACLkB,GAAG,EAAEA;EAAI,GACLK,IAAI;IACRH,OAAO,EAAEA,OAAQ;IACjBC,QAAQ,EAAEA,QAAS;IACnBC,IAAI,EAAEA,IAAK;IACXH,SAAS,EAAE,IAAAO,mBAAU,EAACC,eAAM,CAAC,eAAe,CAAC,EAAER,SAAS;EAAE,EAC3D,CAAC;AAAA,CAEN,CAAC;AAEDL,SAAS,CAACc,WAAW,GAAG,WAAW;AAAC,IAAAC,QAAA,GAAAC,kBAAA,GAErBhB,SAAS,C","sources":["webpack://@capillarytech/blaze-ui/external commonjs2 {\"commonjs\":\"react\",\"commonjs2\":\"react\",\"amd\":\"react\",\"root\":\"React\"}","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@capillarytech/blaze-ui/./components/CapSwitch/styles.scss?074c","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/./node_modules/classnames/index.js","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","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/css-loader/dist/runtime/api.js","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@capillarytech/blaze-ui/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@capillarytech/blaze-ui/./components/CapSwitch/styles.scss","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/CapSwitch/index.tsx"],"sourcesContent":["module.exports = require(\"react\");","\"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 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","/**\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};","/*!\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\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;","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/*\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};","\"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;","\"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};","// 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-switch-v2{font-family:\"Roboto\",sans-serif}.blaze-ui-cap-switch-v2 .ant-switch{min-height:22px;height:22px}.blaze-ui-cap-switch-v2.ant-switch-checked{min-height:22px;height:22px}.blaze-ui-cap-switch-v2 .ant-switch-handle{width:18px;height:18px}.blaze-ui-cap-switch-v2 .ant-switch-inner{padding-left:.571rem;padding-right:.571rem}.blaze-ui-cap-switch-v2.ant-switch-small{min-height:16px;height:16px}.blaze-ui-cap-switch-v2.ant-switch-small .ant-switch-handle{width:12px;height:12px}`, \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"cap-switch-v2\": `blaze-ui-cap-switch-v2`\n};\nmodule.exports = ___CSS_LOADER_EXPORT___;\n","// 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;","import { Switch } from 'antd-v5';\nimport classNames from 'classnames';\nimport React from 'react';\n\nimport type { CapSwitchProps } from './types';\nimport styles from './styles.scss';\n\nconst CapSwitch = React.forwardRef<HTMLButtonElement, CapSwitchProps>(\n ({ className, checked = false, disabled = false, size = 'default', ...rest }, ref) => (\n <Switch\n ref={ref}\n {...rest}\n checked={checked}\n disabled={disabled}\n size={size}\n className={classNames(styles['cap-switch-v2'], className)}\n />\n )\n);\n\nCapSwitch.displayName = 'CapSwitch';\n\nexport default CapSwitch;\nexport type { CapSwitchProps } from './types';\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","CapSwitch","React","forwardRef","_ref","ref","className","checked","disabled","size","rest","jsx","Switch","classNames","styles","displayName","_default","exports"],"sourceRoot":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SwitchProps } from 'antd-v5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface CapSwitchProps extends Omit<SwitchProps, 'children' | 'onChange'> {
|
|
4
|
+
className?: string;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
onChange?: (checked: boolean, event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
size?: 'small' | 'default';
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../components/CapSwitch/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,UAAU,CAAC;IAChF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CACT,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,KAChF,IAAI,CAAC;IACV,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC5B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,8 @@ export { default as CapTooltipWithInfo } from './CapTooltipWithInfo';
|
|
|
62
62
|
export type { CapTooltipWithInfoProps } from './CapTooltipWithInfo';
|
|
63
63
|
export { default as CapUnifiedSelect } from './CapUnifiedSelect';
|
|
64
64
|
export type { CapUnifiedSelectProps } from './CapUnifiedSelect';
|
|
65
|
+
import * as CapIcons from './assets/icons';
|
|
66
|
+
export { CapIcons };
|
|
65
67
|
export { default as LocaleHoc } from './LocaleHoc';
|
|
66
68
|
export { default as CapLanguageProvider } from './CapLanguageProvider';
|
|
67
69
|
export { loadCapUI, getCapThemeConfig } from './utils';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EA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AY,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,QAAQ,EAAE,CAAC;AAGpB,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAGvE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,cAAc,gBAAgB,CAAC;AAG/B,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -35673,9 +35673,10 @@ var _exportNames = {
|
|
|
35673
35673
|
getCapThemeConfig: true,
|
|
35674
35674
|
loadCapUIFonts: true,
|
|
35675
35675
|
getCapUIFontLinks: true,
|
|
35676
|
+
CapIcons: true,
|
|
35676
35677
|
styledVars: true
|
|
35677
35678
|
};
|
|
35678
|
-
exports.styledVars = exports.loadCapUIFonts = exports.loadCapUI = exports.getCapUIFontLinks = exports.getCapThemeConfig = exports.LocaleHoc = exports.CapUnifiedSelect = exports.CapTooltipWithInfo = exports.CapTooltip = exports.CapTable = exports.CapTab = exports.CapSwitch = exports.CapStatisticCard = exports.CapSpin = exports.CapSomethingWentWrong = exports.CapSlideBox = exports.CapSkeleton = exports.CapSelectFilter = exports.CapRow = exports.CapRadio = exports.CapMenu = exports.CapLanguageProvider = exports.CapLabel = exports.CapInput = exports.CapImportMFEComponent = exports.CapImage = exports.CapIcon = exports.CapFormItem = exports.CapForm = exports.CapError = exports.CapDropdown = exports.CapDivider = exports.CapColumn = exports.CapCheckbox = exports.CapCard = exports.CapButton = exports.CapBanner = exports.CapAppNotEnabled = exports.CapAlert = void 0;
|
|
35679
|
+
exports.styledVars = exports.loadCapUIFonts = exports.loadCapUI = exports.getCapUIFontLinks = exports.getCapThemeConfig = exports.LocaleHoc = exports.CapUnifiedSelect = exports.CapTooltipWithInfo = exports.CapTooltip = exports.CapTable = exports.CapTab = exports.CapSwitch = exports.CapStatisticCard = exports.CapSpin = exports.CapSomethingWentWrong = exports.CapSlideBox = exports.CapSkeleton = exports.CapSelectFilter = exports.CapRow = exports.CapRadio = exports.CapMenu = exports.CapLanguageProvider = exports.CapLabel = exports.CapInput = exports.CapImportMFEComponent = exports.CapImage = exports.CapIcons = exports.CapIcon = exports.CapFormItem = exports.CapForm = exports.CapError = exports.CapDropdown = exports.CapDivider = exports.CapColumn = exports.CapCheckbox = exports.CapCard = exports.CapButton = exports.CapBanner = exports.CapAppNotEnabled = exports.CapAlert = void 0;
|
|
35679
35680
|
var _CapAlert = _interopRequireDefault(__webpack_require__(20855));
|
|
35680
35681
|
exports.CapAlert = _CapAlert.default;
|
|
35681
35682
|
var _CapAppNotEnabled = _interopRequireDefault(__webpack_require__(9822));
|
|
@@ -35740,6 +35741,8 @@ var _CapTooltipWithInfo = _interopRequireDefault(__webpack_require__(74584));
|
|
|
35740
35741
|
exports.CapTooltipWithInfo = _CapTooltipWithInfo.default;
|
|
35741
35742
|
var _CapUnifiedSelect = _interopRequireDefault(__webpack_require__(3535));
|
|
35742
35743
|
exports.CapUnifiedSelect = _CapUnifiedSelect.default;
|
|
35744
|
+
var CapIcons = _interopRequireWildcard(__webpack_require__(30775));
|
|
35745
|
+
exports.CapIcons = CapIcons;
|
|
35743
35746
|
var _LocaleHoc = _interopRequireDefault(__webpack_require__(39879));
|
|
35744
35747
|
exports.LocaleHoc = _LocaleHoc.default;
|
|
35745
35748
|
var _CapLanguageProvider = _interopRequireDefault(__webpack_require__(48170));
|
|
@@ -42056,7 +42059,7 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
|
42056
42059
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
42057
42060
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
42058
42061
|
// Module
|
|
42059
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-switch-v2{font-family:"Roboto",sans-serif}`, ""]);
|
|
42062
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-switch-v2{font-family:"Roboto",sans-serif}.blaze-ui-cap-switch-v2 .ant-switch{min-height:22px;height:22px}.blaze-ui-cap-switch-v2.ant-switch-checked{min-height:22px;height:22px}.blaze-ui-cap-switch-v2 .ant-switch-handle{width:18px;height:18px}.blaze-ui-cap-switch-v2 .ant-switch-inner{padding-left:.571rem;padding-right:.571rem}.blaze-ui-cap-switch-v2.ant-switch-small{min-height:16px;height:16px}.blaze-ui-cap-switch-v2.ant-switch-small .ant-switch-handle{width:12px;height:12px}`, ""]);
|
|
42060
42063
|
// Exports
|
|
42061
42064
|
___CSS_LOADER_EXPORT___.locals = {
|
|
42062
42065
|
"cap-switch-v2": `blaze-ui-cap-switch-v2`
|
|
@@ -43713,7 +43716,7 @@ const _excluded = ["className", "checked", "disabled", "size"];
|
|
|
43713
43716
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
43714
43717
|
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); }
|
|
43715
43718
|
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; }
|
|
43716
|
-
const CapSwitch = _ref => {
|
|
43719
|
+
const CapSwitch = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
43717
43720
|
let {
|
|
43718
43721
|
className,
|
|
43719
43722
|
checked = false,
|
|
@@ -43721,13 +43724,16 @@ const CapSwitch = _ref => {
|
|
|
43721
43724
|
size = 'default'
|
|
43722
43725
|
} = _ref,
|
|
43723
43726
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
43724
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Switch, _extends({
|
|
43727
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Switch, _extends({
|
|
43728
|
+
ref: ref
|
|
43729
|
+
}, rest, {
|
|
43725
43730
|
checked: checked,
|
|
43726
43731
|
disabled: disabled,
|
|
43727
43732
|
size: size,
|
|
43728
43733
|
className: (0, _classnames.default)(_styles.default['cap-switch-v2'], className)
|
|
43729
43734
|
}));
|
|
43730
|
-
};
|
|
43735
|
+
});
|
|
43736
|
+
CapSwitch.displayName = 'CapSwitch';
|
|
43731
43737
|
var _default = exports["default"] = CapSwitch;
|
|
43732
43738
|
|
|
43733
43739
|
/***/ }),
|