@openwebf/react-cupertino-ui 0.3.13 → 0.3.14
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/index.d.mts +64 -63
- package/dist/index.d.ts +64 -63
- package/dist/index.js +53 -53
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +53 -53
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -265,6 +265,70 @@ declare const FlutterCupertinoTabScaffoldTab: React.ForwardRefExoticComponent<Fl
|
|
|
265
265
|
children?: React.ReactNode;
|
|
266
266
|
} & React.RefAttributes<FlutterCupertinoTabScaffoldTabElement>>;
|
|
267
267
|
|
|
268
|
+
interface FlutterCupertinoSwitchProps {
|
|
269
|
+
/**
|
|
270
|
+
* Whether the switch is on.
|
|
271
|
+
* Default: false.
|
|
272
|
+
*/
|
|
273
|
+
checked?: boolean;
|
|
274
|
+
/**
|
|
275
|
+
* Whether the switch is disabled.
|
|
276
|
+
* Default: false.
|
|
277
|
+
*/
|
|
278
|
+
disabled?: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* Track color when the switch is on.
|
|
281
|
+
* Hex string '#RRGGBB' or '#AARRGGBB'.
|
|
282
|
+
*/
|
|
283
|
+
activeColor?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Track color when the switch is off.
|
|
286
|
+
* Hex string '#RRGGBB' or '#AARRGGBB'.
|
|
287
|
+
*/
|
|
288
|
+
inactiveColor?: string;
|
|
289
|
+
/**
|
|
290
|
+
* Fired when the switch value changes. detail = checked state
|
|
291
|
+
*/
|
|
292
|
+
onChange?: (event: CustomEvent<boolean>) => void;
|
|
293
|
+
/**
|
|
294
|
+
* HTML id attribute
|
|
295
|
+
*/
|
|
296
|
+
id?: string;
|
|
297
|
+
/**
|
|
298
|
+
* Additional CSS styles
|
|
299
|
+
*/
|
|
300
|
+
style?: React.CSSProperties;
|
|
301
|
+
/**
|
|
302
|
+
* Children elements
|
|
303
|
+
*/
|
|
304
|
+
children?: React.ReactNode;
|
|
305
|
+
/**
|
|
306
|
+
* Additional CSS class names
|
|
307
|
+
*/
|
|
308
|
+
className?: string;
|
|
309
|
+
}
|
|
310
|
+
interface FlutterCupertinoSwitchElement extends WebFElementWithMethods<{}> {
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Properties for <flutter-cupertino-switch>
|
|
314
|
+
iOS-style toggle switch.
|
|
315
|
+
*
|
|
316
|
+
* @example
|
|
317
|
+
* ```tsx
|
|
318
|
+
*
|
|
319
|
+
* <FlutterCupertinoSwitch
|
|
320
|
+
* // Add props here
|
|
321
|
+
* >
|
|
322
|
+
* Content
|
|
323
|
+
* </FlutterCupertinoSwitch>
|
|
324
|
+
* ```
|
|
325
|
+
*/
|
|
326
|
+
declare const FlutterCupertinoSwitch: React.ForwardRefExoticComponent<FlutterCupertinoSwitchProps & {
|
|
327
|
+
className?: string;
|
|
328
|
+
style?: React.CSSProperties;
|
|
329
|
+
children?: React.ReactNode;
|
|
330
|
+
} & React.RefAttributes<FlutterCupertinoSwitchElement>>;
|
|
331
|
+
|
|
268
332
|
interface FlutterCupertinoListSectionProps {
|
|
269
333
|
/**
|
|
270
334
|
* Whether to use the inset grouped style (iOS Settings-style sections).
|
|
@@ -2496,69 +2560,6 @@ declare const FlutterCupertinoTextarea: React.ForwardRefExoticComponent<FlutterC
|
|
|
2496
2560
|
children?: React.ReactNode;
|
|
2497
2561
|
} & React.RefAttributes<FlutterCupertinoTextareaElement>>;
|
|
2498
2562
|
|
|
2499
|
-
interface FlutterCupertinoSwitchProps {
|
|
2500
|
-
/**
|
|
2501
|
-
* checked property
|
|
2502
|
-
* @default undefined
|
|
2503
|
-
*/
|
|
2504
|
-
checked?: boolean;
|
|
2505
|
-
/**
|
|
2506
|
-
* disabled property
|
|
2507
|
-
* @default undefined
|
|
2508
|
-
*/
|
|
2509
|
-
disabled?: boolean;
|
|
2510
|
-
/**
|
|
2511
|
-
* activeColor property
|
|
2512
|
-
* @default undefined
|
|
2513
|
-
*/
|
|
2514
|
-
activeColor?: string;
|
|
2515
|
-
/**
|
|
2516
|
-
* inactiveColor property
|
|
2517
|
-
* @default undefined
|
|
2518
|
-
*/
|
|
2519
|
-
inactiveColor?: string;
|
|
2520
|
-
/**
|
|
2521
|
-
* change event handler
|
|
2522
|
-
*/
|
|
2523
|
-
onChange?: (event: CustomEvent<boolean>) => void;
|
|
2524
|
-
/**
|
|
2525
|
-
* HTML id attribute
|
|
2526
|
-
*/
|
|
2527
|
-
id?: string;
|
|
2528
|
-
/**
|
|
2529
|
-
* Additional CSS styles
|
|
2530
|
-
*/
|
|
2531
|
-
style?: React.CSSProperties;
|
|
2532
|
-
/**
|
|
2533
|
-
* Children elements
|
|
2534
|
-
*/
|
|
2535
|
-
children?: React.ReactNode;
|
|
2536
|
-
/**
|
|
2537
|
-
* Additional CSS class names
|
|
2538
|
-
*/
|
|
2539
|
-
className?: string;
|
|
2540
|
-
}
|
|
2541
|
-
interface FlutterCupertinoSwitchElement extends WebFElementWithMethods<{}> {
|
|
2542
|
-
}
|
|
2543
|
-
/**
|
|
2544
|
-
* FlutterCupertinoSwitch - WebF FlutterCupertinoSwitch component
|
|
2545
|
-
*
|
|
2546
|
-
* @example
|
|
2547
|
-
* ```tsx
|
|
2548
|
-
*
|
|
2549
|
-
* <FlutterCupertinoSwitch
|
|
2550
|
-
* // Add props here
|
|
2551
|
-
* >
|
|
2552
|
-
* Content
|
|
2553
|
-
* </FlutterCupertinoSwitch>
|
|
2554
|
-
* ```
|
|
2555
|
-
*/
|
|
2556
|
-
declare const FlutterCupertinoSwitch: React.ForwardRefExoticComponent<FlutterCupertinoSwitchProps & {
|
|
2557
|
-
className?: string;
|
|
2558
|
-
style?: React.CSSProperties;
|
|
2559
|
-
children?: React.ReactNode;
|
|
2560
|
-
} & React.RefAttributes<FlutterCupertinoSwitchElement>>;
|
|
2561
|
-
|
|
2562
2563
|
interface FlutterCupertinoSliderProps {
|
|
2563
2564
|
/**
|
|
2564
2565
|
* val property
|
package/dist/index.d.ts
CHANGED
|
@@ -265,6 +265,70 @@ declare const FlutterCupertinoTabScaffoldTab: React.ForwardRefExoticComponent<Fl
|
|
|
265
265
|
children?: React.ReactNode;
|
|
266
266
|
} & React.RefAttributes<FlutterCupertinoTabScaffoldTabElement>>;
|
|
267
267
|
|
|
268
|
+
interface FlutterCupertinoSwitchProps {
|
|
269
|
+
/**
|
|
270
|
+
* Whether the switch is on.
|
|
271
|
+
* Default: false.
|
|
272
|
+
*/
|
|
273
|
+
checked?: boolean;
|
|
274
|
+
/**
|
|
275
|
+
* Whether the switch is disabled.
|
|
276
|
+
* Default: false.
|
|
277
|
+
*/
|
|
278
|
+
disabled?: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* Track color when the switch is on.
|
|
281
|
+
* Hex string '#RRGGBB' or '#AARRGGBB'.
|
|
282
|
+
*/
|
|
283
|
+
activeColor?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Track color when the switch is off.
|
|
286
|
+
* Hex string '#RRGGBB' or '#AARRGGBB'.
|
|
287
|
+
*/
|
|
288
|
+
inactiveColor?: string;
|
|
289
|
+
/**
|
|
290
|
+
* Fired when the switch value changes. detail = checked state
|
|
291
|
+
*/
|
|
292
|
+
onChange?: (event: CustomEvent<boolean>) => void;
|
|
293
|
+
/**
|
|
294
|
+
* HTML id attribute
|
|
295
|
+
*/
|
|
296
|
+
id?: string;
|
|
297
|
+
/**
|
|
298
|
+
* Additional CSS styles
|
|
299
|
+
*/
|
|
300
|
+
style?: React.CSSProperties;
|
|
301
|
+
/**
|
|
302
|
+
* Children elements
|
|
303
|
+
*/
|
|
304
|
+
children?: React.ReactNode;
|
|
305
|
+
/**
|
|
306
|
+
* Additional CSS class names
|
|
307
|
+
*/
|
|
308
|
+
className?: string;
|
|
309
|
+
}
|
|
310
|
+
interface FlutterCupertinoSwitchElement extends WebFElementWithMethods<{}> {
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Properties for <flutter-cupertino-switch>
|
|
314
|
+
iOS-style toggle switch.
|
|
315
|
+
*
|
|
316
|
+
* @example
|
|
317
|
+
* ```tsx
|
|
318
|
+
*
|
|
319
|
+
* <FlutterCupertinoSwitch
|
|
320
|
+
* // Add props here
|
|
321
|
+
* >
|
|
322
|
+
* Content
|
|
323
|
+
* </FlutterCupertinoSwitch>
|
|
324
|
+
* ```
|
|
325
|
+
*/
|
|
326
|
+
declare const FlutterCupertinoSwitch: React.ForwardRefExoticComponent<FlutterCupertinoSwitchProps & {
|
|
327
|
+
className?: string;
|
|
328
|
+
style?: React.CSSProperties;
|
|
329
|
+
children?: React.ReactNode;
|
|
330
|
+
} & React.RefAttributes<FlutterCupertinoSwitchElement>>;
|
|
331
|
+
|
|
268
332
|
interface FlutterCupertinoListSectionProps {
|
|
269
333
|
/**
|
|
270
334
|
* Whether to use the inset grouped style (iOS Settings-style sections).
|
|
@@ -2496,69 +2560,6 @@ declare const FlutterCupertinoTextarea: React.ForwardRefExoticComponent<FlutterC
|
|
|
2496
2560
|
children?: React.ReactNode;
|
|
2497
2561
|
} & React.RefAttributes<FlutterCupertinoTextareaElement>>;
|
|
2498
2562
|
|
|
2499
|
-
interface FlutterCupertinoSwitchProps {
|
|
2500
|
-
/**
|
|
2501
|
-
* checked property
|
|
2502
|
-
* @default undefined
|
|
2503
|
-
*/
|
|
2504
|
-
checked?: boolean;
|
|
2505
|
-
/**
|
|
2506
|
-
* disabled property
|
|
2507
|
-
* @default undefined
|
|
2508
|
-
*/
|
|
2509
|
-
disabled?: boolean;
|
|
2510
|
-
/**
|
|
2511
|
-
* activeColor property
|
|
2512
|
-
* @default undefined
|
|
2513
|
-
*/
|
|
2514
|
-
activeColor?: string;
|
|
2515
|
-
/**
|
|
2516
|
-
* inactiveColor property
|
|
2517
|
-
* @default undefined
|
|
2518
|
-
*/
|
|
2519
|
-
inactiveColor?: string;
|
|
2520
|
-
/**
|
|
2521
|
-
* change event handler
|
|
2522
|
-
*/
|
|
2523
|
-
onChange?: (event: CustomEvent<boolean>) => void;
|
|
2524
|
-
/**
|
|
2525
|
-
* HTML id attribute
|
|
2526
|
-
*/
|
|
2527
|
-
id?: string;
|
|
2528
|
-
/**
|
|
2529
|
-
* Additional CSS styles
|
|
2530
|
-
*/
|
|
2531
|
-
style?: React.CSSProperties;
|
|
2532
|
-
/**
|
|
2533
|
-
* Children elements
|
|
2534
|
-
*/
|
|
2535
|
-
children?: React.ReactNode;
|
|
2536
|
-
/**
|
|
2537
|
-
* Additional CSS class names
|
|
2538
|
-
*/
|
|
2539
|
-
className?: string;
|
|
2540
|
-
}
|
|
2541
|
-
interface FlutterCupertinoSwitchElement extends WebFElementWithMethods<{}> {
|
|
2542
|
-
}
|
|
2543
|
-
/**
|
|
2544
|
-
* FlutterCupertinoSwitch - WebF FlutterCupertinoSwitch component
|
|
2545
|
-
*
|
|
2546
|
-
* @example
|
|
2547
|
-
* ```tsx
|
|
2548
|
-
*
|
|
2549
|
-
* <FlutterCupertinoSwitch
|
|
2550
|
-
* // Add props here
|
|
2551
|
-
* >
|
|
2552
|
-
* Content
|
|
2553
|
-
* </FlutterCupertinoSwitch>
|
|
2554
|
-
* ```
|
|
2555
|
-
*/
|
|
2556
|
-
declare const FlutterCupertinoSwitch: React.ForwardRefExoticComponent<FlutterCupertinoSwitchProps & {
|
|
2557
|
-
className?: string;
|
|
2558
|
-
style?: React.CSSProperties;
|
|
2559
|
-
children?: React.ReactNode;
|
|
2560
|
-
} & React.RefAttributes<FlutterCupertinoSwitchElement>>;
|
|
2561
|
-
|
|
2562
2563
|
interface FlutterCupertinoSliderProps {
|
|
2563
2564
|
/**
|
|
2564
2565
|
* val property
|
package/dist/index.js
CHANGED
|
@@ -195,9 +195,42 @@ var FlutterCupertinoTabScaffoldTab = (0, import_react_core_ui4.createWebFCompone
|
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
|
|
198
|
-
// src/lib/src/
|
|
198
|
+
// src/lib/src/switch.tsx
|
|
199
199
|
var import_react_core_ui5 = require("@openwebf/react-core-ui");
|
|
200
|
-
var
|
|
200
|
+
var FlutterCupertinoSwitch = (0, import_react_core_ui5.createWebFComponent)({
|
|
201
|
+
tagName: "flutter-cupertino-switch",
|
|
202
|
+
displayName: "FlutterCupertinoSwitch",
|
|
203
|
+
// Map props to attributes
|
|
204
|
+
attributeProps: [
|
|
205
|
+
"checked",
|
|
206
|
+
"disabled",
|
|
207
|
+
"activeColor",
|
|
208
|
+
"inactiveColor"
|
|
209
|
+
],
|
|
210
|
+
// Convert prop names to attribute names if needed
|
|
211
|
+
attributeMap: {
|
|
212
|
+
activeColor: "active-color",
|
|
213
|
+
inactiveColor: "inactive-color"
|
|
214
|
+
},
|
|
215
|
+
// Event handlers
|
|
216
|
+
events: [
|
|
217
|
+
{
|
|
218
|
+
propName: "onChange",
|
|
219
|
+
eventName: "change",
|
|
220
|
+
handler: (callback) => (event) => {
|
|
221
|
+
callback(event);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
// Default prop values
|
|
226
|
+
defaultProps: {
|
|
227
|
+
// Add default values here
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
// src/lib/src/list_section.tsx
|
|
232
|
+
var import_react_core_ui6 = require("@openwebf/react-core-ui");
|
|
233
|
+
var FlutterCupertinoListSection = (0, import_react_core_ui6.createWebFComponent)({
|
|
201
234
|
tagName: "flutter-cupertino-list-section",
|
|
202
235
|
displayName: "FlutterCupertinoListSection",
|
|
203
236
|
// Map props to attributes
|
|
@@ -215,7 +248,7 @@ var FlutterCupertinoListSection = (0, import_react_core_ui5.createWebFComponent)
|
|
|
215
248
|
// Add default values here
|
|
216
249
|
}
|
|
217
250
|
});
|
|
218
|
-
var FlutterCupertinoListSectionHeader = (0,
|
|
251
|
+
var FlutterCupertinoListSectionHeader = (0, import_react_core_ui6.createWebFComponent)({
|
|
219
252
|
tagName: "flutter-cupertino-list-section-header",
|
|
220
253
|
displayName: "FlutterCupertinoListSectionHeader",
|
|
221
254
|
// Map props to attributes
|
|
@@ -229,7 +262,7 @@ var FlutterCupertinoListSectionHeader = (0, import_react_core_ui5.createWebFComp
|
|
|
229
262
|
// Add default values here
|
|
230
263
|
}
|
|
231
264
|
});
|
|
232
|
-
var FlutterCupertinoListSectionFooter = (0,
|
|
265
|
+
var FlutterCupertinoListSectionFooter = (0, import_react_core_ui6.createWebFComponent)({
|
|
233
266
|
tagName: "flutter-cupertino-list-section-footer",
|
|
234
267
|
displayName: "FlutterCupertinoListSectionFooter",
|
|
235
268
|
// Map props to attributes
|
|
@@ -245,8 +278,8 @@ var FlutterCupertinoListSectionFooter = (0, import_react_core_ui5.createWebFComp
|
|
|
245
278
|
});
|
|
246
279
|
|
|
247
280
|
// src/lib/src/icon.tsx
|
|
248
|
-
var
|
|
249
|
-
var FlutterCupertinoIcon = (0,
|
|
281
|
+
var import_react_core_ui7 = require("@openwebf/react-core-ui");
|
|
282
|
+
var FlutterCupertinoIcon = (0, import_react_core_ui7.createWebFComponent)({
|
|
250
283
|
tagName: "flutter-cupertino-icon",
|
|
251
284
|
displayName: "FlutterCupertinoIcon",
|
|
252
285
|
// Map props to attributes
|
|
@@ -263,8 +296,8 @@ var FlutterCupertinoIcon = (0, import_react_core_ui6.createWebFComponent)({
|
|
|
263
296
|
});
|
|
264
297
|
|
|
265
298
|
// src/lib/src/context-menu.tsx
|
|
266
|
-
var
|
|
267
|
-
var FlutterCupertinoContextMenu = (0,
|
|
299
|
+
var import_react_core_ui8 = require("@openwebf/react-core-ui");
|
|
300
|
+
var FlutterCupertinoContextMenu = (0, import_react_core_ui8.createWebFComponent)({
|
|
268
301
|
tagName: "flutter-cupertino-context-menu",
|
|
269
302
|
displayName: "FlutterCupertinoContextMenu",
|
|
270
303
|
// Map props to attributes
|
|
@@ -292,8 +325,8 @@ var FlutterCupertinoContextMenu = (0, import_react_core_ui7.createWebFComponent)
|
|
|
292
325
|
});
|
|
293
326
|
|
|
294
327
|
// src/lib/src/button.tsx
|
|
295
|
-
var
|
|
296
|
-
var FlutterCupertinoButton = (0,
|
|
328
|
+
var import_react_core_ui9 = require("@openwebf/react-core-ui");
|
|
329
|
+
var FlutterCupertinoButton = (0, import_react_core_ui9.createWebFComponent)({
|
|
297
330
|
tagName: "flutter-cupertino-button",
|
|
298
331
|
displayName: "FlutterCupertinoButton",
|
|
299
332
|
// Map props to attributes
|
|
@@ -326,8 +359,8 @@ var FlutterCupertinoButton = (0, import_react_core_ui8.createWebFComponent)({
|
|
|
326
359
|
});
|
|
327
360
|
|
|
328
361
|
// src/lib/src/alert.tsx
|
|
329
|
-
var
|
|
330
|
-
var FlutterCupertinoAlert = (0,
|
|
362
|
+
var import_react_core_ui10 = require("@openwebf/react-core-ui");
|
|
363
|
+
var FlutterCupertinoAlert = (0, import_react_core_ui10.createWebFComponent)({
|
|
331
364
|
tagName: "flutter-cupertino-alert",
|
|
332
365
|
displayName: "FlutterCupertinoAlert",
|
|
333
366
|
// Map props to attributes
|
|
@@ -378,8 +411,8 @@ var FlutterCupertinoAlert = (0, import_react_core_ui9.createWebFComponent)({
|
|
|
378
411
|
});
|
|
379
412
|
|
|
380
413
|
// src/lib/src/action-sheet.tsx
|
|
381
|
-
var
|
|
382
|
-
var FlutterCupertinoActionSheet = (0,
|
|
414
|
+
var import_react_core_ui11 = require("@openwebf/react-core-ui");
|
|
415
|
+
var FlutterCupertinoActionSheet = (0, import_react_core_ui11.createWebFComponent)({
|
|
383
416
|
tagName: "flutter-cupertino-action-sheet",
|
|
384
417
|
displayName: "FlutterCupertinoActionSheet",
|
|
385
418
|
// Map props to attributes
|
|
@@ -403,8 +436,8 @@ var FlutterCupertinoActionSheet = (0, import_react_core_ui10.createWebFComponent
|
|
|
403
436
|
});
|
|
404
437
|
|
|
405
438
|
// src/lib/src/legacy/toast.tsx
|
|
406
|
-
var
|
|
407
|
-
var FlutterCupertinoToast = (0,
|
|
439
|
+
var import_react_core_ui12 = require("@openwebf/react-core-ui");
|
|
440
|
+
var FlutterCupertinoToast = (0, import_react_core_ui12.createWebFComponent)({
|
|
408
441
|
tagName: "flutter-cupertino-toast",
|
|
409
442
|
displayName: "FlutterCupertinoToast",
|
|
410
443
|
// Map props to attributes
|
|
@@ -420,8 +453,8 @@ var FlutterCupertinoToast = (0, import_react_core_ui11.createWebFComponent)({
|
|
|
420
453
|
});
|
|
421
454
|
|
|
422
455
|
// src/lib/src/legacy/timer-picker.tsx
|
|
423
|
-
var
|
|
424
|
-
var FlutterCupertinoTimerPicker = (0,
|
|
456
|
+
var import_react_core_ui13 = require("@openwebf/react-core-ui");
|
|
457
|
+
var FlutterCupertinoTimerPicker = (0, import_react_core_ui13.createWebFComponent)({
|
|
425
458
|
tagName: "flutter-cupertino-timer-picker",
|
|
426
459
|
displayName: "FlutterCupertinoTimerPicker",
|
|
427
460
|
// Map props to attributes
|
|
@@ -457,8 +490,8 @@ var FlutterCupertinoTimerPicker = (0, import_react_core_ui12.createWebFComponent
|
|
|
457
490
|
});
|
|
458
491
|
|
|
459
492
|
// src/lib/src/legacy/textarea.tsx
|
|
460
|
-
var
|
|
461
|
-
var FlutterCupertinoTextarea = (0,
|
|
493
|
+
var import_react_core_ui14 = require("@openwebf/react-core-ui");
|
|
494
|
+
var FlutterCupertinoTextarea = (0, import_react_core_ui14.createWebFComponent)({
|
|
462
495
|
tagName: "flutter-cupertino-textarea",
|
|
463
496
|
displayName: "FlutterCupertinoTextarea",
|
|
464
497
|
// Map props to attributes
|
|
@@ -502,39 +535,6 @@ var FlutterCupertinoTextarea = (0, import_react_core_ui13.createWebFComponent)({
|
|
|
502
535
|
}
|
|
503
536
|
});
|
|
504
537
|
|
|
505
|
-
// src/lib/src/legacy/switch.tsx
|
|
506
|
-
var import_react_core_ui14 = require("@openwebf/react-core-ui");
|
|
507
|
-
var FlutterCupertinoSwitch = (0, import_react_core_ui14.createWebFComponent)({
|
|
508
|
-
tagName: "flutter-cupertino-switch",
|
|
509
|
-
displayName: "FlutterCupertinoSwitch",
|
|
510
|
-
// Map props to attributes
|
|
511
|
-
attributeProps: [
|
|
512
|
-
"checked",
|
|
513
|
-
"disabled",
|
|
514
|
-
"activeColor",
|
|
515
|
-
"inactiveColor"
|
|
516
|
-
],
|
|
517
|
-
// Convert prop names to attribute names if needed
|
|
518
|
-
attributeMap: {
|
|
519
|
-
activeColor: "active-color",
|
|
520
|
-
inactiveColor: "inactive-color"
|
|
521
|
-
},
|
|
522
|
-
// Event handlers
|
|
523
|
-
events: [
|
|
524
|
-
{
|
|
525
|
-
propName: "onChange",
|
|
526
|
-
eventName: "change",
|
|
527
|
-
handler: (callback) => (event) => {
|
|
528
|
-
callback(event);
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
],
|
|
532
|
-
// Default prop values
|
|
533
|
-
defaultProps: {
|
|
534
|
-
// Add default values here
|
|
535
|
-
}
|
|
536
|
-
});
|
|
537
|
-
|
|
538
538
|
// src/lib/src/legacy/slider.tsx
|
|
539
539
|
var import_react_core_ui15 = require("@openwebf/react-core-ui");
|
|
540
540
|
var FlutterCupertinoSlider = (0, import_react_core_ui15.createWebFComponent)({
|