@openwebf/react-cupertino-ui 0.2.9 → 0.2.11
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 +89 -85
- package/dist/index.d.ts +89 -85
- package/dist/index.js +2 -111
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -109
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37,8 +37,7 @@ __export(index_exports, {
|
|
|
37
37
|
FlutterCupertinoTabBarItem: () => FlutterCupertinoTabBarItem,
|
|
38
38
|
FlutterCupertinoTabItem: () => FlutterCupertinoTabItem,
|
|
39
39
|
FlutterCupertinoTextarea: () => FlutterCupertinoTextarea,
|
|
40
|
-
FlutterCupertinoTimerPicker: () => FlutterCupertinoTimerPicker
|
|
41
|
-
createComponent: () => createComponent
|
|
40
|
+
FlutterCupertinoTimerPicker: () => FlutterCupertinoTimerPicker
|
|
42
41
|
});
|
|
43
42
|
module.exports = __toCommonJS(index_exports);
|
|
44
43
|
|
|
@@ -650,108 +649,6 @@ var FlutterCupertinoButton = (0, import_react_core_ui16.createWebFComponent)({
|
|
|
650
649
|
// Add default values here
|
|
651
650
|
}
|
|
652
651
|
});
|
|
653
|
-
|
|
654
|
-
// src/utils/createComponent.ts
|
|
655
|
-
var import_react = require("react");
|
|
656
|
-
var NODE_MODE = false;
|
|
657
|
-
var reservedReactProperties = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]);
|
|
658
|
-
var listenedEvents = /* @__PURE__ */ new WeakMap();
|
|
659
|
-
var addOrUpdateEventListener = (node, event, listener) => {
|
|
660
|
-
let events = listenedEvents.get(node);
|
|
661
|
-
if (events === void 0) {
|
|
662
|
-
listenedEvents.set(node, events = /* @__PURE__ */ new Map());
|
|
663
|
-
}
|
|
664
|
-
let handler = events.get(event);
|
|
665
|
-
if (listener !== void 0) {
|
|
666
|
-
if (handler === void 0) {
|
|
667
|
-
events.set(event, handler = { handleEvent: listener });
|
|
668
|
-
node.addEventListener(event, handler);
|
|
669
|
-
} else {
|
|
670
|
-
handler.handleEvent = listener;
|
|
671
|
-
}
|
|
672
|
-
} else if (handler !== void 0) {
|
|
673
|
-
events.delete(event);
|
|
674
|
-
node.removeEventListener(event, handler);
|
|
675
|
-
}
|
|
676
|
-
};
|
|
677
|
-
var setProperty = (node, name, value, old, events) => {
|
|
678
|
-
const event = events?.[name];
|
|
679
|
-
if (event !== void 0) {
|
|
680
|
-
if (value !== old) {
|
|
681
|
-
addOrUpdateEventListener(node, event, value);
|
|
682
|
-
}
|
|
683
|
-
return;
|
|
684
|
-
}
|
|
685
|
-
node[name] = value;
|
|
686
|
-
if ((value === void 0 || value === null) && name in HTMLElement.prototype) {
|
|
687
|
-
node.removeAttribute(name);
|
|
688
|
-
}
|
|
689
|
-
};
|
|
690
|
-
var createComponent = ({
|
|
691
|
-
tagName,
|
|
692
|
-
events,
|
|
693
|
-
displayName
|
|
694
|
-
}) => {
|
|
695
|
-
const eventProps = new Set(Object.keys(events ?? {}));
|
|
696
|
-
const ReactComponent = (0, import_react.forwardRef)((props, ref) => {
|
|
697
|
-
const prevElemPropsRef = (0, import_react.useRef)(/* @__PURE__ */ new Map());
|
|
698
|
-
const elementRef = (0, import_react.useRef)(null);
|
|
699
|
-
const reactProps = {};
|
|
700
|
-
const elementProps = {};
|
|
701
|
-
for (const [k, v] of Object.entries(props)) {
|
|
702
|
-
if (reservedReactProperties.has(k)) {
|
|
703
|
-
reactProps[k === "className" ? "class" : k] = v;
|
|
704
|
-
continue;
|
|
705
|
-
}
|
|
706
|
-
if (eventProps.has(k)) {
|
|
707
|
-
elementProps[k] = v;
|
|
708
|
-
continue;
|
|
709
|
-
}
|
|
710
|
-
reactProps[k] = v;
|
|
711
|
-
}
|
|
712
|
-
(0, import_react.useLayoutEffect)(() => {
|
|
713
|
-
if (elementRef.current === null) {
|
|
714
|
-
return;
|
|
715
|
-
}
|
|
716
|
-
const newElemProps = /* @__PURE__ */ new Map();
|
|
717
|
-
for (const key in elementProps) {
|
|
718
|
-
setProperty(elementRef.current, key, props[key], prevElemPropsRef.current.get(key), events);
|
|
719
|
-
prevElemPropsRef.current.delete(key);
|
|
720
|
-
newElemProps.set(key, props[key]);
|
|
721
|
-
}
|
|
722
|
-
for (const [key, value] of prevElemPropsRef.current) {
|
|
723
|
-
setProperty(elementRef.current, key, void 0, value, events);
|
|
724
|
-
}
|
|
725
|
-
prevElemPropsRef.current = newElemProps;
|
|
726
|
-
});
|
|
727
|
-
(0, import_react.useLayoutEffect)(() => {
|
|
728
|
-
elementRef.current?.removeAttribute("defer-hydration");
|
|
729
|
-
}, []);
|
|
730
|
-
if (NODE_MODE) {
|
|
731
|
-
if ((import_react.createElement.name === "litPatchedCreateElement" || globalThis.litSsrReactEnabled) && Object.keys(elementProps).length) {
|
|
732
|
-
reactProps["_$litProps$"] = elementProps;
|
|
733
|
-
}
|
|
734
|
-
} else {
|
|
735
|
-
reactProps["suppressHydrationWarning"] = true;
|
|
736
|
-
}
|
|
737
|
-
return (0, import_react.createElement)(tagName, {
|
|
738
|
-
...reactProps,
|
|
739
|
-
ref: (0, import_react.useCallback)(
|
|
740
|
-
(node) => {
|
|
741
|
-
elementRef.current = node;
|
|
742
|
-
if (typeof ref === "function") {
|
|
743
|
-
ref(node);
|
|
744
|
-
} else if (ref !== null) {
|
|
745
|
-
ref.current = node;
|
|
746
|
-
}
|
|
747
|
-
},
|
|
748
|
-
[ref]
|
|
749
|
-
)
|
|
750
|
-
});
|
|
751
|
-
});
|
|
752
|
-
ReactComponent.displayName = displayName;
|
|
753
|
-
return ReactComponent;
|
|
754
|
-
};
|
|
755
652
|
// Annotate the CommonJS export names for ESM import in node:
|
|
756
653
|
0 && (module.exports = {
|
|
757
654
|
FlutterCupertinoButton,
|
|
@@ -771,12 +668,6 @@ var createComponent = ({
|
|
|
771
668
|
FlutterCupertinoTabBarItem,
|
|
772
669
|
FlutterCupertinoTabItem,
|
|
773
670
|
FlutterCupertinoTextarea,
|
|
774
|
-
FlutterCupertinoTimerPicker
|
|
775
|
-
createComponent
|
|
671
|
+
FlutterCupertinoTimerPicker
|
|
776
672
|
});
|
|
777
|
-
/**
|
|
778
|
-
* @license
|
|
779
|
-
* Copyright 2018 Google LLC
|
|
780
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
781
|
-
*/
|
|
782
673
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/lib/src/timer-picker.tsx","../src/lib/src/textarea.tsx","../src/lib/src/tab_bar.tsx","../src/lib/src/tab.tsx","../src/lib/src/switch.tsx","../src/lib/src/slider.tsx","../src/lib/src/search-input.tsx","../src/lib/src/radio.tsx","../src/lib/src/picker.tsx","../src/lib/src/modal-popup.tsx","../src/lib/src/input.tsx","../src/lib/src/icon.tsx","../src/lib/src/date-picker.tsx","../src/lib/src/context-menu.tsx","../src/lib/src/checkbox.tsx","../src/lib/src/button.tsx","../src/utils/createComponent.ts"],"sourcesContent":["/*\n * Generated by TSDL, don't edit this file directly.\n */\nexport { FlutterCupertinoTimerPicker, FlutterCupertinoTimerPickerElement } from \"./lib/src/timer-picker\";\nexport { FlutterCupertinoTextarea, FlutterCupertinoTextareaElement } from \"./lib/src/textarea\";\nexport { FlutterCupertinoTabBar, FlutterCupertinoTabBarElement } from \"./lib/src/tab_bar\";\nexport { FlutterCupertinoTabBarItem, FlutterCupertinoTabBarItemElement } from \"./lib/src/tab_bar\";\nexport { FlutterCupertinoTab, FlutterCupertinoTabElement } from \"./lib/src/tab\";\nexport { FlutterCupertinoTabItem, FlutterCupertinoTabItemElement } from \"./lib/src/tab\";\nexport { FlutterCupertinoSwitch, FlutterCupertinoSwitchElement } from \"./lib/src/switch\";\nexport { FlutterCupertinoSlider, FlutterCupertinoSliderElement } from \"./lib/src/slider\";\nexport { FlutterCupertinoSearchInput, FlutterCupertinoSearchInputElement } from \"./lib/src/search-input\";\nexport { FlutterCupertinoRadio, FlutterCupertinoRadioElement } from \"./lib/src/radio\";\nexport { FlutterCupertinoPicker, FlutterCupertinoPickerElement } from \"./lib/src/picker\";\nexport { FlutterCupertinoModalPopup, FlutterCupertinoModalPopupElement } from \"./lib/src/modal-popup\";\nexport { FlutterCupertinoInput, FlutterCupertinoInputElement } from \"./lib/src/input\";\nexport { FlutterCupertinoIcon, FlutterCupertinoIconElement } from \"./lib/src/icon\";\nexport { FlutterCupertinoDatePicker, FlutterCupertinoDatePickerElement } from \"./lib/src/date-picker\";\nexport { FlutterCupertinoContextMenu, FlutterCupertinoContextMenuElement } from \"./lib/src/context-menu\";\nexport { FlutterCupertinoCheckbox, FlutterCupertinoCheckboxElement } from \"./lib/src/checkbox\";\nexport { FlutterCupertinoButton, FlutterCupertinoButtonElement } from \"./lib/src/button\";\nexport { createComponent } from \"./utils/createComponent\";","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoTimerPickerProps {\n /**\n * mode property\n * @default undefined\n */\n mode?: string;\n /**\n * initialTimerDuration property\n * @default undefined\n */\n initialTimerDuration?: number;\n /**\n * minuteInterval property\n * @default undefined\n */\n minuteInterval?: number;\n /**\n * secondInterval property\n * @default undefined\n */\n secondInterval?: number;\n /**\n * backgroundColor property\n * @default undefined\n */\n backgroundColor?: string;\n /**\n * height property\n * @default undefined\n */\n height?: number;\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent) => void;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoTimerPickerElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoTimerPicker - WebF FlutterCupertinoTimerPicker component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoTimerPicker\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoTimerPicker>\n * ```\n */\nexport const FlutterCupertinoTimerPicker = createWebFComponent<FlutterCupertinoTimerPickerElement, FlutterCupertinoTimerPickerProps>({\n tagName: 'flutter-cupertino-timer-picker',\n displayName: 'FlutterCupertinoTimerPicker',\n // Map props to attributes\n attributeProps: [\n 'mode',\n 'initialTimerDuration',\n 'minuteInterval',\n 'secondInterval',\n 'backgroundColor',\n 'height',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n initialTimerDuration: 'initial-timer-duration',\n minuteInterval: 'minute-interval',\n secondInterval: 'second-interval',\n backgroundColor: 'background-color',\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ninterface FlutterCupertinoTextareaMethods {\n focus(): void;\n blur(): void;\n clear(): void;\n}\nexport interface FlutterCupertinoTextareaProps {\n /**\n * val property\n * @default undefined\n */\n val?: string;\n /**\n * placeholder property\n * @default undefined\n */\n placeholder?: string;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * readonly property\n * @default undefined\n */\n readonly?: boolean;\n /**\n * maxLength property\n * @default undefined\n */\n maxLength?: number;\n /**\n * rows property\n * @default undefined\n */\n rows?: number;\n /**\n * showCount property\n * @default undefined\n */\n showCount?: boolean;\n /**\n * autoSize property\n * @default undefined\n */\n autoSize?: boolean;\n /**\n * transparent property\n * @default undefined\n */\n transparent?: boolean;\n /**\n * input event handler\n */\n onInput?: (event: CustomEvent) => void;\n /**\n * complete event handler\n */\n onComplete?: (event: Event) => void;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n/**\n * Element interface with methods accessible via ref\n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoTextareaElement>(null);\n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport interface FlutterCupertinoTextareaElement extends WebFElementWithMethods<{\n focus(): void;\n blur(): void;\n clear(): void;\n}> {}\n/**\n * FlutterCupertinoTextarea - WebF FlutterCupertinoTextarea component\n * \n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoTextareaElement>(null);\n * \n * <FlutterCupertinoTextarea\n * ref={ref}\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoTextarea>\n * \n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport const FlutterCupertinoTextarea = createWebFComponent<FlutterCupertinoTextareaElement, FlutterCupertinoTextareaProps>({\n tagName: 'flutter-cupertino-textarea',\n displayName: 'FlutterCupertinoTextarea',\n // Map props to attributes\n attributeProps: [\n 'val',\n 'placeholder',\n 'disabled',\n 'readonly',\n 'maxLength',\n 'rows',\n 'showCount',\n 'autoSize',\n 'transparent',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n maxLength: 'max-length',\n showCount: 'show-count',\n autoSize: 'auto-size',\n },\n // Event handlers\n events: [\n {\n propName: 'onInput',\n eventName: 'input',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n {\n propName: 'onComplete',\n eventName: 'complete',\n handler: (callback) => (event) => {\n callback((event as Event));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ntype CupertinoTabBarIcon = \"home\" | \"house\" | \"house_fill\" | \"search\" | \"search_circle\" | \"search_circle_fill\" | \"add\" | \"add_circled\" | \"add_circled_solid\" | \"plus\" | \"plus_circle\" | \"plus_circle_fill\" | \"person\" | \"person_fill\" | \"person_circle\" | \"person_circle_fill\" | \"profile_circled\" | \"bell\" | \"bell_fill\" | \"bell_circle\" | \"bell_circle_fill\" | \"chat_bubble\" | \"chat_bubble_fill\" | \"chat_bubble_2\" | \"chat_bubble_2_fill\" | \"mail\" | \"mail_solid\" | \"envelope\" | \"envelope_fill\" | \"phone\" | \"phone_fill\" | \"compass\" | \"compass_fill\" | \"location\" | \"location_fill\" | \"map\" | \"map_fill\" | \"photo\" | \"photo_fill\" | \"camera\" | \"camera_fill\" | \"video_camera\" | \"video_camera_solid\" | \"play\" | \"play_fill\" | \"play_circle\" | \"play_circle_fill\" | \"gear\" | \"gear_solid\" | \"settings\" | \"settings_solid\" | \"ellipsis\" | \"ellipsis_circle\" | \"ellipsis_circle_fill\" | \"creditcard\" | \"creditcard_fill\" | \"cart\" | \"cart_fill\" | \"bag\" | \"bag_fill\" | \"doc\" | \"doc_fill\" | \"doc_text\" | \"doc_text_fill\" | \"folder\" | \"folder_fill\" | \"book\" | \"book_fill\" | \"heart\" | \"heart_fill\" | \"star\" | \"star_fill\" | \"hand_thumbsup\" | \"hand_thumbsup_fill\" | \"bookmark\" | \"bookmark_fill\" | \"money_dollar\" | \"money_dollar_circle\" | \"money_dollar_circle_fill\" | \"info\" | \"info_circle\" | \"info_circle_fill\" | \"question\" | \"question_circle\" | \"question_circle_fill\" | \"exclamationmark\" | \"exclamationmark_circle\" | \"exclamationmark_circle_fill\";\ntype int = number;\ninterface FlutterCupertinoTabBarMethods {\n switchTab(path: string): void;\n}\nexport interface FlutterCupertinoTabBarProps {\n /**\n * currentIndex property\n * @default undefined\n */\n currentIndex?: string;\n /**\n * backgroundColor property\n * @default undefined\n */\n backgroundColor?: string;\n /**\n * activeColor property\n * @default undefined\n */\n activeColor?: string;\n /**\n * inactiveColor property\n * @default undefined\n */\n inactiveColor?: string;\n /**\n * iconSize property\n * @default undefined\n */\n iconSize?: string;\n /**\n * height property\n * @default undefined\n */\n height?: string;\n /**\n * tabchange event handler\n */\n onTabchange?: (event: CustomEvent) => void;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n/**\n * Element interface with methods accessible via ref\n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoTabBarElement>(null);\n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport interface FlutterCupertinoTabBarElement extends WebFElementWithMethods<{\n switchTab(path: string): void;\n}> {}\n/**\n * FlutterCupertinoTabBar - WebF FlutterCupertinoTabBar component\n * \n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoTabBarElement>(null);\n * \n * <FlutterCupertinoTabBar\n * ref={ref}\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoTabBar>\n * \n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport const FlutterCupertinoTabBar = createWebFComponent<FlutterCupertinoTabBarElement, FlutterCupertinoTabBarProps>({\n tagName: 'flutter-cupertino-tab-bar',\n displayName: 'FlutterCupertinoTabBar',\n // Map props to attributes\n attributeProps: [\n 'currentIndex',\n 'backgroundColor',\n 'activeColor',\n 'inactiveColor',\n 'iconSize',\n 'height',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n currentIndex: 'current-index',\n backgroundColor: 'background-color',\n activeColor: 'active-color',\n inactiveColor: 'inactive-color',\n iconSize: 'icon-size',\n },\n // Event handlers\n events: [\n {\n propName: 'onTabchange',\n eventName: 'tabchange',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});\nexport interface FlutterCupertinoTabBarItemProps {\n /**\n * title property\n * @default undefined\n */\n title?: string;\n /**\n * icon property\n * @default undefined\n */\n icon?: CupertinoTabBarIcon;\n /**\n * path property\n * @default undefined\n */\n path?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoTabBarItemElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoTabBarItem - WebF FlutterCupertinoTabBarItem component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoTabBarItem\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoTabBarItem>\n * ```\n */\nexport const FlutterCupertinoTabBarItem = createWebFComponent<FlutterCupertinoTabBarItemElement, FlutterCupertinoTabBarItemProps>({\n tagName: 'flutter-cupertino-tab-bar-item',\n displayName: 'FlutterCupertinoTabBarItem',\n // Map props to attributes\n attributeProps: [\n 'title',\n 'icon',\n 'path',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n },\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ntype int = number;\nexport interface FlutterCupertinoTabProps {\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent) => void;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoTabElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoTab - WebF FlutterCupertinoTab component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoTab\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoTab>\n * ```\n */\nexport const FlutterCupertinoTab = createWebFComponent<FlutterCupertinoTabElement, FlutterCupertinoTabProps>({\n tagName: 'flutter-cupertino-tab',\n displayName: 'FlutterCupertinoTab',\n // Map props to attributes\n attributeProps: [\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});\nexport interface FlutterCupertinoTabItemProps {\n /**\n * title property\n * @default undefined\n */\n title?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoTabItemElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoTabItem - WebF FlutterCupertinoTabItem component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoTabItem\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoTabItem>\n * ```\n */\nexport const FlutterCupertinoTabItem = createWebFComponent<FlutterCupertinoTabItemElement, FlutterCupertinoTabItemProps>({\n tagName: 'flutter-cupertino-tab-item',\n displayName: 'FlutterCupertinoTabItem',\n // Map props to attributes\n attributeProps: [\n 'title',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n },\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoSwitchProps {\n /**\n * checked property\n * @default undefined\n */\n checked?: boolean;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * activeColor property\n * @default undefined\n */\n activeColor?: string;\n /**\n * inactiveColor property\n * @default undefined\n */\n inactiveColor?: string;\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent) => void;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoSwitchElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoSwitch - WebF FlutterCupertinoSwitch component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoSwitch\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoSwitch>\n * ```\n */\nexport const FlutterCupertinoSwitch = createWebFComponent<FlutterCupertinoSwitchElement, FlutterCupertinoSwitchProps>({\n tagName: 'flutter-cupertino-switch',\n displayName: 'FlutterCupertinoSwitch',\n // Map props to attributes\n attributeProps: [\n 'checked',\n 'disabled',\n 'activeColor',\n 'inactiveColor',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n activeColor: 'active-color',\n inactiveColor: 'inactive-color',\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ninterface FlutterCupertinoSliderMethods {\n getValue(): number;\n setValue(val: number): void;\n}\nexport interface FlutterCupertinoSliderProps {\n /**\n * val property\n * @default undefined\n */\n val?: number;\n /**\n * min property\n * @default undefined\n */\n min?: number;\n /**\n * max property\n * @default undefined\n */\n max?: number;\n /**\n * step property\n * @default undefined\n */\n step?: number;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent) => void;\n /**\n * changestart event handler\n */\n onChangestart?: (event: CustomEvent) => void;\n /**\n * changeend event handler\n */\n onChangeend?: (event: CustomEvent) => void;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n/**\n * Element interface with methods accessible via ref\n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoSliderElement>(null);\n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport interface FlutterCupertinoSliderElement extends WebFElementWithMethods<{\n getValue(): number;\n setValue(val: number): void;\n}> {}\n/**\n * FlutterCupertinoSlider - WebF FlutterCupertinoSlider component\n * \n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoSliderElement>(null);\n * \n * <FlutterCupertinoSlider\n * ref={ref}\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoSlider>\n * \n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport const FlutterCupertinoSlider = createWebFComponent<FlutterCupertinoSliderElement, FlutterCupertinoSliderProps>({\n tagName: 'flutter-cupertino-slider',\n displayName: 'FlutterCupertinoSlider',\n // Map props to attributes\n attributeProps: [\n 'val',\n 'min',\n 'max',\n 'step',\n 'disabled',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n {\n propName: 'onChangestart',\n eventName: 'changestart',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n {\n propName: 'onChangeend',\n eventName: 'changeend',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ninterface FlutterCupertinoSearchInputMethods {\n getValue(): string;\n setValue(value: string): void;\n focus(): void;\n blur(): void;\n clear(): void;\n}\nexport interface FlutterCupertinoSearchInputProps {\n /**\n * val property\n * @default undefined\n */\n val?: string;\n /**\n * placeholder property\n * @default undefined\n */\n placeholder?: string;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * type property\n * @default undefined\n */\n type?: string;\n /**\n * prefixIcon property\n * @default undefined\n */\n prefixIcon?: string;\n /**\n * suffixIcon property\n * @default undefined\n */\n suffixIcon?: string;\n /**\n * suffixModel property\n * @default undefined\n */\n suffixModel?: string;\n /**\n * itemColor property\n * @default undefined\n */\n itemColor?: string;\n /**\n * itemSize property\n * @default undefined\n */\n itemSize?: number;\n /**\n * autofocus property\n */\n autofocus: boolean;\n /**\n * input event handler\n */\n onInput?: (event: CustomEvent) => void;\n /**\n * search event handler\n */\n onSearch?: (event: CustomEvent) => void;\n /**\n * clear event handler\n */\n onClear?: (event: CustomEvent) => void;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n/**\n * Element interface with methods accessible via ref\n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoSearchInputElement>(null);\n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport interface FlutterCupertinoSearchInputElement extends WebFElementWithMethods<{\n getValue(): string;\n setValue(value: string): void;\n focus(): void;\n blur(): void;\n clear(): void;\n}> {}\n/**\n * FlutterCupertinoSearchInput - WebF FlutterCupertinoSearchInput component\n * \n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoSearchInputElement>(null);\n * \n * <FlutterCupertinoSearchInput\n * ref={ref}\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoSearchInput>\n * \n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport const FlutterCupertinoSearchInput = createWebFComponent<FlutterCupertinoSearchInputElement, FlutterCupertinoSearchInputProps>({\n tagName: 'flutter-cupertino-search-input',\n displayName: 'FlutterCupertinoSearchInput',\n // Map props to attributes\n attributeProps: [\n 'val',\n 'placeholder',\n 'disabled',\n 'type',\n 'prefixIcon',\n 'suffixIcon',\n 'suffixModel',\n 'itemColor',\n 'itemSize',\n 'autofocus',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n prefixIcon: 'prefix-icon',\n suffixIcon: 'suffix-icon',\n suffixModel: 'suffix-model',\n itemColor: 'item-color',\n itemSize: 'item-size',\n },\n // Event handlers\n events: [\n {\n propName: 'onInput',\n eventName: 'input',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n {\n propName: 'onSearch',\n eventName: 'search',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n {\n propName: 'onClear',\n eventName: 'clear',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoRadioProps {\n /**\n * val property\n * @default undefined\n */\n val?: string;\n /**\n * groupValue property\n * @default undefined\n */\n groupValue?: string;\n /**\n * useCheckmarkStyle property\n * @default undefined\n */\n useCheckmarkStyle?: boolean;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * activeColor property\n * @default undefined\n */\n activeColor?: string;\n /**\n * focusColor property\n * @default undefined\n */\n focusColor?: string;\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent) => void;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoRadioElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoRadio - WebF FlutterCupertinoRadio component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoRadio\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoRadio>\n * ```\n */\nexport const FlutterCupertinoRadio = createWebFComponent<FlutterCupertinoRadioElement, FlutterCupertinoRadioProps>({\n tagName: 'flutter-cupertino-radio',\n displayName: 'FlutterCupertinoRadio',\n // Map props to attributes\n attributeProps: [\n 'val',\n 'groupValue',\n 'useCheckmarkStyle',\n 'disabled',\n 'activeColor',\n 'focusColor',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n groupValue: 'group-value',\n useCheckmarkStyle: 'use-checkmark-style',\n activeColor: 'active-color',\n focusColor: 'focus-color',\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoPickerProps {\n /**\n * height property\n * @default undefined\n */\n height?: number;\n /**\n * itemHeight property\n * @default undefined\n */\n itemHeight?: number;\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent) => void;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoPickerElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoPicker - WebF FlutterCupertinoPicker component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoPicker\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoPicker>\n * ```\n */\nexport const FlutterCupertinoPicker = createWebFComponent<FlutterCupertinoPickerElement, FlutterCupertinoPickerProps>({\n tagName: 'flutter-cupertino-picker',\n displayName: 'FlutterCupertinoPicker',\n // Map props to attributes\n attributeProps: [\n 'height',\n 'itemHeight',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n itemHeight: 'item-height',\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ninterface FlutterCupertinoModalPopupMethods {\n show(): void;\n hide(): void;\n}\nexport interface FlutterCupertinoModalPopupProps {\n /**\n * visible property\n * @default undefined\n */\n visible?: boolean;\n /**\n * height property\n * @default undefined\n */\n height?: number;\n /**\n * surfacePainted property\n * @default undefined\n */\n surfacePainted?: boolean;\n /**\n * maskClosable property\n * @default undefined\n */\n maskClosable?: boolean;\n /**\n * backgroundOpacity property\n * @default undefined\n */\n backgroundOpacity?: number;\n /**\n * close event handler\n */\n onClose?: (event: CustomEvent) => void;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n/**\n * Element interface with methods accessible via ref\n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoModalPopupElement>(null);\n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport interface FlutterCupertinoModalPopupElement extends WebFElementWithMethods<{\n show(): void;\n hide(): void;\n}> {}\n/**\n * FlutterCupertinoModalPopup - WebF FlutterCupertinoModalPopup component\n * \n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoModalPopupElement>(null);\n * \n * <FlutterCupertinoModalPopup\n * ref={ref}\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoModalPopup>\n * \n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport const FlutterCupertinoModalPopup = createWebFComponent<FlutterCupertinoModalPopupElement, FlutterCupertinoModalPopupProps>({\n tagName: 'flutter-cupertino-modal-popup',\n displayName: 'FlutterCupertinoModalPopup',\n // Map props to attributes\n attributeProps: [\n 'visible',\n 'height',\n 'surfacePainted',\n 'maskClosable',\n 'backgroundOpacity',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n surfacePainted: 'surface-painted',\n maskClosable: 'mask-closable',\n backgroundOpacity: 'background-opacity',\n },\n // Event handlers\n events: [\n {\n propName: 'onClose',\n eventName: 'close',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ninterface FlutterCupertinoInputMethods {\n getValue(): string;\n setValue(value: string): void;\n focus(): void;\n blur(): void;\n}\nexport interface FlutterCupertinoInputProps {\n /**\n * val property\n * @default undefined\n */\n val?: string;\n /**\n * placeholder property\n * @default undefined\n */\n placeholder?: string;\n /**\n * type property\n * @default undefined\n */\n type?: string;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * autofocus property\n */\n autofocus: boolean;\n /**\n * clearable property\n * @default undefined\n */\n clearable?: boolean;\n /**\n * maxlength property\n * @default undefined\n */\n maxlength?: number;\n /**\n * readonly property\n * @default undefined\n */\n readonly?: boolean;\n /**\n * input event handler\n */\n onInput?: (event: CustomEvent) => void;\n /**\n * submit event handler\n */\n onSubmit?: (event: CustomEvent) => void;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n/**\n * Element interface with methods accessible via ref\n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoInputElement>(null);\n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport interface FlutterCupertinoInputElement extends WebFElementWithMethods<{\n getValue(): string;\n setValue(value: string): void;\n focus(): void;\n blur(): void;\n}> {}\n/**\n * FlutterCupertinoInput - WebF FlutterCupertinoInput component\n * \n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoInputElement>(null);\n * \n * <FlutterCupertinoInput\n * ref={ref}\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoInput>\n * \n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport const FlutterCupertinoInput = createWebFComponent<FlutterCupertinoInputElement, FlutterCupertinoInputProps>({\n tagName: 'flutter-cupertino-input',\n displayName: 'FlutterCupertinoInput',\n // Map props to attributes\n attributeProps: [\n 'val',\n 'placeholder',\n 'type',\n 'disabled',\n 'autofocus',\n 'clearable',\n 'maxlength',\n 'readonly',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n },\n // Event handlers\n events: [\n {\n propName: 'onInput',\n eventName: 'input',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n {\n propName: 'onSubmit',\n eventName: 'submit',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoIconProps {\n /**\n * type property\n * @default undefined\n */\n type?: string;\n /**\n * label property\n * @default undefined\n */\n label?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoIconElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoIcon - WebF FlutterCupertinoIcon component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoIcon\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoIcon>\n * ```\n */\nexport const FlutterCupertinoIcon = createWebFComponent<FlutterCupertinoIconElement, FlutterCupertinoIconProps>({\n tagName: 'flutter-cupertino-icon',\n displayName: 'FlutterCupertinoIcon',\n // Map props to attributes\n attributeProps: [\n 'type',\n 'label',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n },\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoDatePickerProps {\n /**\n * mode property\n * @default undefined\n */\n mode?: string;\n /**\n * minimumDate property\n * @default undefined\n */\n minimumDate?: string;\n /**\n * maximumDate property\n * @default undefined\n */\n maximumDate?: string;\n /**\n * minuteInterval property\n * @default undefined\n */\n minuteInterval?: string;\n /**\n * value property\n * @default undefined\n */\n value?: string;\n /**\n * minimumYear property\n * @default undefined\n */\n minimumYear?: string;\n /**\n * maximumYear property\n * @default undefined\n */\n maximumYear?: string;\n /**\n * showDayOfWeek property\n * @default undefined\n */\n showDayOfWeek?: string;\n /**\n * dateOrder property\n * @default undefined\n */\n dateOrder?: string;\n /**\n * height property\n * @default undefined\n */\n height?: string;\n /**\n * use24H property\n * @default undefined\n */\n use24H?: boolean;\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent) => void;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoDatePickerElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoDatePicker - WebF FlutterCupertinoDatePicker component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoDatePicker\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoDatePicker>\n * ```\n */\nexport const FlutterCupertinoDatePicker = createWebFComponent<FlutterCupertinoDatePickerElement, FlutterCupertinoDatePickerProps>({\n tagName: 'flutter-cupertino-date-picker',\n displayName: 'FlutterCupertinoDatePicker',\n // Map props to attributes\n attributeProps: [\n 'mode',\n 'minimumDate',\n 'maximumDate',\n 'minuteInterval',\n 'value',\n 'minimumYear',\n 'maximumYear',\n 'showDayOfWeek',\n 'dateOrder',\n 'height',\n 'use24H',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n minimumDate: 'minimum-date',\n maximumDate: 'maximum-date',\n minuteInterval: 'minute-interval',\n minimumYear: 'minimum-year',\n maximumYear: 'maximum-year',\n showDayOfWeek: 'show-day-of-week',\n dateOrder: 'date-order',\n use24H: 'use-24-h',\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ninterface FlutterCupertinoContextMenuMethods {\n setActions(actions: ContextMenuAction[]): void;\n}\ninterface ContextMenuAction {\n text: string;\n icon?: string;\n destructive?: boolean;\n default?: boolean;\n event?: string;\n}\nexport interface FlutterCupertinoContextMenuProps {\n /**\n * enableHapticFeedback property\n * @default undefined\n */\n enableHapticFeedback?: boolean;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n/**\n * Element interface with methods accessible via ref\n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoContextMenuElement>(null);\n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport interface FlutterCupertinoContextMenuElement extends WebFElementWithMethods<{\n setActions(actions: ContextMenuAction[]): void;\n}> {}\n/**\n * FlutterCupertinoContextMenu - WebF FlutterCupertinoContextMenu component\n * \n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoContextMenuElement>(null);\n * \n * <FlutterCupertinoContextMenu\n * ref={ref}\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoContextMenu>\n * \n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport const FlutterCupertinoContextMenu = createWebFComponent<FlutterCupertinoContextMenuElement, FlutterCupertinoContextMenuProps>({\n tagName: 'flutter-cupertino-context-menu',\n displayName: 'FlutterCupertinoContextMenu',\n // Map props to attributes\n attributeProps: [\n 'enableHapticFeedback',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n enableHapticFeedback: 'enable-haptic-feedback',\n },\n // Event handlers\n events: [\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoCheckboxProps {\n /**\n * val property\n * @default undefined\n */\n val?: string;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * activeColor property\n * @default undefined\n */\n activeColor?: string;\n /**\n * checkColor property\n * @default undefined\n */\n checkColor?: string;\n /**\n * focusColor property\n * @default undefined\n */\n focusColor?: string;\n /**\n * fillColorSelected property\n * @default undefined\n */\n fillColorSelected?: string;\n /**\n * fillColorDisabled property\n * @default undefined\n */\n fillColorDisabled?: string;\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent) => void;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoCheckboxElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoCheckbox - WebF FlutterCupertinoCheckbox component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoCheckbox\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoCheckbox>\n * ```\n */\nexport const FlutterCupertinoCheckbox = createWebFComponent<FlutterCupertinoCheckboxElement, FlutterCupertinoCheckboxProps>({\n tagName: 'flutter-cupertino-checkbox',\n displayName: 'FlutterCupertinoCheckbox',\n // Map props to attributes\n attributeProps: [\n 'val',\n 'disabled',\n 'activeColor',\n 'checkColor',\n 'focusColor',\n 'fillColorSelected',\n 'fillColorDisabled',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n activeColor: 'active-color',\n checkColor: 'check-color',\n focusColor: 'focus-color',\n fillColorSelected: 'fill-color-selected',\n fillColorDisabled: 'fill-color-disabled',\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoButtonProps {\n /**\n * variant property\n * @default undefined\n */\n variant?: string;\n /**\n * size property\n * @default undefined\n */\n size?: string;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * pressedOpacity property\n * @default undefined\n */\n pressedOpacity?: string;\n /**\n * click event handler\n */\n onClick?: (event: Event) => void;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoButtonElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoButton - WebF FlutterCupertinoButton component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoButton\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoButton>\n * ```\n */\nexport const FlutterCupertinoButton = createWebFComponent<FlutterCupertinoButtonElement, FlutterCupertinoButtonProps>({\n tagName: 'flutter-cupertino-button',\n displayName: 'FlutterCupertinoButton',\n // Map props to attributes\n attributeProps: [\n 'variant',\n 'size',\n 'disabled',\n 'pressedOpacity',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n pressedOpacity: 'pressed-opacity',\n },\n // Event handlers\n events: [\n {\n propName: 'onClick',\n eventName: 'click',\n handler: (callback) => (event) => {\n callback((event as Event));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","// @ts-nocheck\n/* eslint-disable no-param-reassign */\n/* eslint-disable react-hooks/rules-of-hooks */\n/* eslint-disable @typescript-eslint/ban-types */\n/* eslint-disable no-use-before-define */\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport React, { forwardRef, useLayoutEffect, createElement, MouseEventHandler, useCallback, useRef } from 'react'\n\nconst NODE_MODE = false\n// const DEV_MODE = true\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype DistributiveOmit<T, K extends string | number | symbol> = T extends any ? (K extends keyof T ? Omit<T, K> : T) : T\ntype PropsWithoutRef<T> = DistributiveOmit<T, 'ref'>\n\n/**\n * Creates a type to be used for the props of a web component used directly in\n * React JSX.\n *\n * Example:\n *\n * ```ts\n * declare module \"react\" {\n * namespace JSX {\n * interface IntrinsicElements {\n * 'x-foo': WebComponentProps<XFoo>;\n * }\n * }\n * }\n * ```\n */\nexport type WebComponentProps<I extends HTMLElement> = React.DetailedHTMLProps<React.HTMLAttributes<I>, I> &\n ElementProps<I>\n\n/**\n * Type of the React component wrapping the web component. This is the return\n * type of `createComponent`.\n */\nexport type ReactWebComponent<I extends HTMLElement, E extends EventNames = {}> = React.ForwardRefExoticComponent<\n // TODO(augustjk): Remove and use `React.PropsWithoutRef` when\n // [preact/compat] missing type `PropsWithoutRef` · Issue #4124 · preactjs/preact is fixed.\n PropsWithoutRef<ComponentProps<I, E>> & React.RefAttributes<I>\n>\n\n// Props derived from custom element class. Currently has limitations of making\n// all properties optional and also surfaces life cycle methods in autocomplete.\n// TODO(augustjk) Consider omitting keyof LitElement to remove \"internal\"\n// lifecycle methods or allow user to explicitly provide props.\ntype ElementProps<I> = Partial<Omit<I, keyof HTMLElement>>\n\n// Acceptable props to the React component.\ntype ComponentProps<I, E extends EventNames = {}> = Omit<\n React.HTMLAttributes<I>,\n // Prefer type of provided event handler props or those on element over\n // built-in HTMLAttributes\n keyof E | keyof ElementProps<I>\n> &\n ElementProps<I>\n\n/**\n * Type used to cast an event name with an event type when providing the\n * `events` option to `createComponent` for better typing of the event handler\n * prop.\n *\n * Example:\n *\n * ```ts\n * const FooComponent = createComponent({\n * ...\n * events: {\n * onfoo: 'foo' as EventName<FooEvent>,\n * }\n * });\n * ```\n *\n * `onfoo` prop will have the type `(e: FooEvent) => void`.\n */\nexport type EventName<T extends Event = Event> = string & {\n __eventType: T\n}\n\n// A key value map matching React prop names to event names.\ntype EventNames = Record<string, EventName | string>\n\n// A map of expected event listener types based on EventNames.\n\nexport interface Options<E extends EventNames = {}> {\n tagName: string\n events?: E\n displayName?: string\n}\n\n// type Constructor<T> = { new (): T }\n\nconst reservedReactProperties = new Set(['children', 'localName', 'ref', 'style', 'className'])\n\nconst listenedEvents = new WeakMap<Element, Map<string, EventListenerObject>>()\n\n/**\n * Adds an event listener for the specified event to the given node. In the\n * React setup, there should only ever be one event listener. Thus, for\n * efficiency only one listener is added and the handler for that listener is\n * updated to point to the given listener function.\n */\nconst addOrUpdateEventListener = (node: Element, event: string, listener: (event?: Event) => void) => {\n let events = listenedEvents.get(node)\n if (events === undefined) {\n listenedEvents.set(node, (events = new Map()))\n }\n let handler = events.get(event)\n if (listener !== undefined) {\n // If necessary, add listener and track handler\n if (handler === undefined) {\n events.set(event, (handler = { handleEvent: listener }))\n node.addEventListener(event, handler)\n // Otherwise just update the listener with new value\n } else {\n handler.handleEvent = listener\n }\n // Remove listener if one exists and value is undefined\n } else if (handler !== undefined) {\n events.delete(event)\n node.removeEventListener(event, handler)\n }\n}\n\n/**\n * Sets properties and events on custom elements. These properties and events\n * have been pre-filtered so we know they should apply to the custom element.\n */\nconst setProperty = <E extends Element>(node: E, name: string, value: unknown, old: unknown, events?: EventNames) => {\n const event = events?.[name]\n // Dirty check event value.\n if (event !== undefined) {\n if (value !== old) {\n addOrUpdateEventListener(node, event, value as (e?: Event) => void)\n }\n return\n }\n // But don't dirty check properties; elements are assumed to do this.\n node[name as keyof E] = value as E[keyof E]\n\n // This block is to replicate React's behavior for attributes of native\n // elements where `undefined` or `null` values result in attributes being\n // removed.\n // react/packages/react-dom-bindings/src/client/DOMPropertyOperations.js at 899cb95f52cc83ab5ca1eb1e268\n //\n // It's only needed here for native HTMLElement properties that reflect\n // attributes of the same name but don't have that behavior like \"id\" or\n // \"draggable\".\n if ((value === undefined || value === null) && name in HTMLElement.prototype) {\n node.removeAttribute(name)\n }\n}\n\n/**\n * Creates a React component for a custom element. Properties are distinguished\n * from attributes automatically, and events can be configured so they are added\n * to the custom element as event listeners.\n *\n * @param options An options bag containing the parameters needed to generate a\n * wrapped web component.\n *\n * @param options.react The React module, typically imported from the `react`\n * npm package.\n * @param options.tagName The custom element tag name registered via\n * `customElements.define`.\n * @param options.elementClass The custom element class registered via\n * `customElements.define`.\n * @param options.events An object listing events to which the component can\n * listen. The object keys are the event property names passed in via React\n * props and the object values are the names of the corresponding events\n * generated by the custom element. For example, given `{onactivate:\n * 'activate'}` an event function may be passed via the component's `onactivate`\n * prop and will be called when the custom element fires its `activate` event.\n * @param options.displayName A React component display name, used in debugging\n * messages. Default value is inferred from the name of custom element class\n * registered via `customElements.define`.\n */\n// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-constraint\nexport const createComponent = <E extends any, I extends any>({\n tagName,\n events,\n displayName\n}: Options): ReactWebComponent<E, I> => {\n const eventProps = new Set(Object.keys(events ?? {}))\n\n type Props = ComponentProps<I>\n const ReactComponent = forwardRef<I, Props>((props, ref) => {\n const prevElemPropsRef = useRef(new Map())\n const elementRef = useRef<E | null>(null)\n\n // Props to be passed to React.createElement\n const reactProps: Record<string, unknown> = {}\n // Props to be set on element with setProperty\n const elementProps: Record<string, unknown> = {}\n\n for (const [k, v] of Object.entries(props)) {\n if (reservedReactProperties.has(k)) {\n // React does *not* handle `className` for custom elements so\n // coerce it to `class` so it's handled correctly.\n reactProps[k === 'className' ? 'class' : k] = v\n continue\n }\n\n if (eventProps.has(k)) {\n elementProps[k] = v\n continue\n }\n\n reactProps[k] = v\n }\n\n // useLayoutEffect produces warnings during server rendering.\n\n // This one has no dependency array so it'll run on every re-render.\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useLayoutEffect(() => {\n if (elementRef.current === null) {\n return\n }\n const newElemProps = new Map()\n for (const key in elementProps) {\n setProperty(elementRef.current, key, props[key], prevElemPropsRef.current.get(key), events)\n prevElemPropsRef.current.delete(key)\n newElemProps.set(key, props[key])\n }\n // \"Unset\" any props from previous render that no longer exist.\n // Setting to `undefined` seems like the correct thing to \"unset\"\n // but currently React will set it as `null`.\n // See Bug: Removal of custom element property sets it to `null` rather than `undefined` · Issue #28203 · f\n for (const [key, value] of prevElemPropsRef.current) {\n setProperty(elementRef.current, key, undefined, value, events)\n }\n prevElemPropsRef.current = newElemProps\n })\n\n // Empty dependency array so this will only run once after first render.\n useLayoutEffect(() => {\n elementRef.current?.removeAttribute('defer-hydration')\n }, [])\n // }\n\n if (NODE_MODE) {\n // If component is to be server rendered with `@lit/ssr-react`, pass\n // element properties in a special bag to be set by the server-side\n // element renderer.\n if (\n (createElement.name === 'litPatchedCreateElement' || globalThis.litSsrReactEnabled) &&\n Object.keys(elementProps).length\n ) {\n // This property needs to remain unminified.\n reactProps['_$litProps$'] = elementProps\n }\n } else {\n // Suppress hydration warning for server-rendered attributes.\n // This property needs to remain unminified.\n reactProps['suppressHydrationWarning'] = true\n }\n\n return createElement(tagName, {\n ...reactProps,\n ref: useCallback(\n (node: I) => {\n elementRef.current = node\n if (typeof ref === 'function') {\n ref(node)\n } else if (ref !== null) {\n // eslint-disable-next-line no-param-reassign\n ref.current = node\n }\n },\n [ref]\n )\n })\n })\n\n ReactComponent.displayName = display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a,IAAI;AAAA,MAC9B;AAAA,IACF,OAAO;AAGL,iBAAW,0BAA0B,IAAI;AAAA,IAC3C;AAEA,eAAO,4BAAc,SAAS;AAAA,MAC5B,GAAG;AAAA,MACH,SAAK;AAAA,QACH,CAAC,SAAY;AACX,qBAAW,UAAU;AACrB,cAAI,OAAO,QAAQ,YAAY;AAC7B,gBAAI,IAAI;AAAA,UACV,WAAW,QAAQ,MAAM;AAEvB,gBAAI,UAAU;AAAA,UAChB;AAAA,QACF;AAAA,QACA,CAAC,GAAG;AAAA,MACN;AAAA,IACF,CAAC;AAAA,EACH,CAAC;AAED,iBAAe,cAAc;AAE7B,SAAO;AACT;","names":["import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/lib/src/timer-picker.tsx","../src/lib/src/textarea.tsx","../src/lib/src/tab_bar.tsx","../src/lib/src/tab.tsx","../src/lib/src/switch.tsx","../src/lib/src/slider.tsx","../src/lib/src/search-input.tsx","../src/lib/src/radio.tsx","../src/lib/src/picker.tsx","../src/lib/src/modal-popup.tsx","../src/lib/src/input.tsx","../src/lib/src/icon.tsx","../src/lib/src/date-picker.tsx","../src/lib/src/context-menu.tsx","../src/lib/src/checkbox.tsx","../src/lib/src/button.tsx"],"sourcesContent":["/*\n * Generated by TSDL, don't edit this file directly.\n */\nexport { FlutterCupertinoTimerPicker, FlutterCupertinoTimerPickerElement } from \"./lib/src/timer-picker\";\nexport { FlutterCupertinoTextarea, FlutterCupertinoTextareaElement } from \"./lib/src/textarea\";\nexport { FlutterCupertinoTabBar, FlutterCupertinoTabBarElement } from \"./lib/src/tab_bar\";\nexport { FlutterCupertinoTabBarItem, FlutterCupertinoTabBarItemElement } from \"./lib/src/tab_bar\";\nexport { FlutterCupertinoTab, FlutterCupertinoTabElement } from \"./lib/src/tab\";\nexport { FlutterCupertinoTabItem, FlutterCupertinoTabItemElement } from \"./lib/src/tab\";\nexport { FlutterCupertinoSwitch, FlutterCupertinoSwitchElement } from \"./lib/src/switch\";\nexport { FlutterCupertinoSlider, FlutterCupertinoSliderElement } from \"./lib/src/slider\";\nexport { FlutterCupertinoSearchInput, FlutterCupertinoSearchInputElement } from \"./lib/src/search-input\";\nexport { FlutterCupertinoRadio, FlutterCupertinoRadioElement } from \"./lib/src/radio\";\nexport { FlutterCupertinoPicker, FlutterCupertinoPickerElement } from \"./lib/src/picker\";\nexport { FlutterCupertinoModalPopup, FlutterCupertinoModalPopupElement } from \"./lib/src/modal-popup\";\nexport { FlutterCupertinoInput, FlutterCupertinoInputElement } from \"./lib/src/input\";\nexport { FlutterCupertinoIcon, FlutterCupertinoIconElement } from \"./lib/src/icon\";\nexport { FlutterCupertinoDatePicker, FlutterCupertinoDatePickerElement } from \"./lib/src/date-picker\";\nexport { FlutterCupertinoContextMenu, FlutterCupertinoContextMenuElement } from \"./lib/src/context-menu\";\nexport { FlutterCupertinoCheckbox, FlutterCupertinoCheckboxElement } from \"./lib/src/checkbox\";\nexport { FlutterCupertinoButton, FlutterCupertinoButtonElement } from \"./lib/src/button\";","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoTimerPickerProps {\n /**\n * mode property\n * @default undefined\n */\n mode?: string;\n /**\n * initialTimerDuration property\n * @default undefined\n */\n initialTimerDuration?: number;\n /**\n * minuteInterval property\n * @default undefined\n */\n minuteInterval?: number;\n /**\n * secondInterval property\n * @default undefined\n */\n secondInterval?: number;\n /**\n * backgroundColor property\n * @default undefined\n */\n backgroundColor?: string;\n /**\n * height property\n * @default undefined\n */\n height?: number;\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent<number>) => void;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoTimerPickerElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoTimerPicker - WebF FlutterCupertinoTimerPicker component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoTimerPicker\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoTimerPicker>\n * ```\n */\nexport const FlutterCupertinoTimerPicker = createWebFComponent<FlutterCupertinoTimerPickerElement, FlutterCupertinoTimerPickerProps>({\n tagName: 'flutter-cupertino-timer-picker',\n displayName: 'FlutterCupertinoTimerPicker',\n // Map props to attributes\n attributeProps: [\n 'mode',\n 'initialTimerDuration',\n 'minuteInterval',\n 'secondInterval',\n 'backgroundColor',\n 'height',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n initialTimerDuration: 'initial-timer-duration',\n minuteInterval: 'minute-interval',\n secondInterval: 'second-interval',\n backgroundColor: 'background-color',\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<number>));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ninterface FlutterCupertinoTextareaMethods {\n focus(): void;\n blur(): void;\n clear(): void;\n}\nexport interface FlutterCupertinoTextareaProps {\n /**\n * val property\n * @default undefined\n */\n val?: string;\n /**\n * placeholder property\n * @default undefined\n */\n placeholder?: string;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * readonly property\n * @default undefined\n */\n readonly?: boolean;\n /**\n * maxLength property\n * @default undefined\n */\n maxLength?: number;\n /**\n * rows property\n * @default undefined\n */\n rows?: number;\n /**\n * showCount property\n * @default undefined\n */\n showCount?: boolean;\n /**\n * autoSize property\n * @default undefined\n */\n autoSize?: boolean;\n /**\n * transparent property\n * @default undefined\n */\n transparent?: boolean;\n /**\n * input event handler\n */\n onInput?: (event: CustomEvent<string>) => void;\n /**\n * complete event handler\n */\n onComplete?: (event: Event) => void;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n/**\n * Element interface with methods accessible via ref\n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoTextareaElement>(null);\n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport interface FlutterCupertinoTextareaElement extends WebFElementWithMethods<{\n focus(): void;\n blur(): void;\n clear(): void;\n}> {}\n/**\n * FlutterCupertinoTextarea - WebF FlutterCupertinoTextarea component\n * \n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoTextareaElement>(null);\n * \n * <FlutterCupertinoTextarea\n * ref={ref}\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoTextarea>\n * \n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport const FlutterCupertinoTextarea = createWebFComponent<FlutterCupertinoTextareaElement, FlutterCupertinoTextareaProps>({\n tagName: 'flutter-cupertino-textarea',\n displayName: 'FlutterCupertinoTextarea',\n // Map props to attributes\n attributeProps: [\n 'val',\n 'placeholder',\n 'disabled',\n 'readonly',\n 'maxLength',\n 'rows',\n 'showCount',\n 'autoSize',\n 'transparent',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n maxLength: 'max-length',\n showCount: 'show-count',\n autoSize: 'auto-size',\n },\n // Event handlers\n events: [\n {\n propName: 'onInput',\n eventName: 'input',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<string>));\n },\n },\n {\n propName: 'onComplete',\n eventName: 'complete',\n handler: (callback) => (event) => {\n callback((event as Event));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ntype CupertinoTabBarIcon = \"home\" | \"house\" | \"house_fill\" | \"search\" | \"search_circle\" | \"search_circle_fill\" | \"add\" | \"add_circled\" | \"add_circled_solid\" | \"plus\" | \"plus_circle\" | \"plus_circle_fill\" | \"person\" | \"person_fill\" | \"person_circle\" | \"person_circle_fill\" | \"profile_circled\" | \"bell\" | \"bell_fill\" | \"bell_circle\" | \"bell_circle_fill\" | \"chat_bubble\" | \"chat_bubble_fill\" | \"chat_bubble_2\" | \"chat_bubble_2_fill\" | \"mail\" | \"mail_solid\" | \"envelope\" | \"envelope_fill\" | \"phone\" | \"phone_fill\" | \"compass\" | \"compass_fill\" | \"location\" | \"location_fill\" | \"map\" | \"map_fill\" | \"photo\" | \"photo_fill\" | \"camera\" | \"camera_fill\" | \"video_camera\" | \"video_camera_solid\" | \"play\" | \"play_fill\" | \"play_circle\" | \"play_circle_fill\" | \"gear\" | \"gear_solid\" | \"settings\" | \"settings_solid\" | \"ellipsis\" | \"ellipsis_circle\" | \"ellipsis_circle_fill\" | \"creditcard\" | \"creditcard_fill\" | \"cart\" | \"cart_fill\" | \"bag\" | \"bag_fill\" | \"doc\" | \"doc_fill\" | \"doc_text\" | \"doc_text_fill\" | \"folder\" | \"folder_fill\" | \"book\" | \"book_fill\" | \"heart\" | \"heart_fill\" | \"star\" | \"star_fill\" | \"hand_thumbsup\" | \"hand_thumbsup_fill\" | \"bookmark\" | \"bookmark_fill\" | \"money_dollar\" | \"money_dollar_circle\" | \"money_dollar_circle_fill\" | \"info\" | \"info_circle\" | \"info_circle_fill\" | \"question\" | \"question_circle\" | \"question_circle_fill\" | \"exclamationmark\" | \"exclamationmark_circle\" | \"exclamationmark_circle_fill\";\ntype int = number;\ninterface FlutterCupertinoTabBarMethods {\n switchTab(path: string): void;\n}\nexport interface FlutterCupertinoTabBarProps {\n /**\n * currentIndex property\n * @default undefined\n */\n currentIndex?: string;\n /**\n * backgroundColor property\n * @default undefined\n */\n backgroundColor?: string;\n /**\n * activeColor property\n * @default undefined\n */\n activeColor?: string;\n /**\n * inactiveColor property\n * @default undefined\n */\n inactiveColor?: string;\n /**\n * iconSize property\n * @default undefined\n */\n iconSize?: string;\n /**\n * height property\n * @default undefined\n */\n height?: string;\n /**\n * tabchange event handler\n */\n onTabchange?: (event: CustomEvent<number>) => void;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n/**\n * Element interface with methods accessible via ref\n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoTabBarElement>(null);\n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport interface FlutterCupertinoTabBarElement extends WebFElementWithMethods<{\n switchTab(path: string): void;\n}> {}\n/**\n * FlutterCupertinoTabBar - WebF FlutterCupertinoTabBar component\n * \n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoTabBarElement>(null);\n * \n * <FlutterCupertinoTabBar\n * ref={ref}\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoTabBar>\n * \n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport const FlutterCupertinoTabBar = createWebFComponent<FlutterCupertinoTabBarElement, FlutterCupertinoTabBarProps>({\n tagName: 'flutter-cupertino-tab-bar',\n displayName: 'FlutterCupertinoTabBar',\n // Map props to attributes\n attributeProps: [\n 'currentIndex',\n 'backgroundColor',\n 'activeColor',\n 'inactiveColor',\n 'iconSize',\n 'height',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n currentIndex: 'current-index',\n backgroundColor: 'background-color',\n activeColor: 'active-color',\n inactiveColor: 'inactive-color',\n iconSize: 'icon-size',\n },\n // Event handlers\n events: [\n {\n propName: 'onTabchange',\n eventName: 'tabchange',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<number>));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});\nexport interface FlutterCupertinoTabBarItemProps {\n /**\n * title property\n * @default undefined\n */\n title?: string;\n /**\n * icon property\n * @default undefined\n */\n icon?: CupertinoTabBarIcon;\n /**\n * path property\n * @default undefined\n */\n path?: string;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoTabBarItemElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoTabBarItem - WebF FlutterCupertinoTabBarItem component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoTabBarItem\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoTabBarItem>\n * ```\n */\nexport const FlutterCupertinoTabBarItem = createWebFComponent<FlutterCupertinoTabBarItemElement, FlutterCupertinoTabBarItemProps>({\n tagName: 'flutter-cupertino-tab-bar-item',\n displayName: 'FlutterCupertinoTabBarItem',\n // Map props to attributes\n attributeProps: [\n 'title',\n 'icon',\n 'path',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n },\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ntype int = number;\nexport interface FlutterCupertinoTabProps {\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent<number>) => void;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoTabElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoTab - WebF FlutterCupertinoTab component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoTab\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoTab>\n * ```\n */\nexport const FlutterCupertinoTab = createWebFComponent<FlutterCupertinoTabElement, FlutterCupertinoTabProps>({\n tagName: 'flutter-cupertino-tab',\n displayName: 'FlutterCupertinoTab',\n // Map props to attributes\n attributeProps: [\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<number>));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});\nexport interface FlutterCupertinoTabItemProps {\n /**\n * title property\n * @default undefined\n */\n title?: string;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoTabItemElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoTabItem - WebF FlutterCupertinoTabItem component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoTabItem\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoTabItem>\n * ```\n */\nexport const FlutterCupertinoTabItem = createWebFComponent<FlutterCupertinoTabItemElement, FlutterCupertinoTabItemProps>({\n tagName: 'flutter-cupertino-tab-item',\n displayName: 'FlutterCupertinoTabItem',\n // Map props to attributes\n attributeProps: [\n 'title',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n },\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoSwitchProps {\n /**\n * checked property\n * @default undefined\n */\n checked?: boolean;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * activeColor property\n * @default undefined\n */\n activeColor?: string;\n /**\n * inactiveColor property\n * @default undefined\n */\n inactiveColor?: string;\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent<boolean>) => void;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoSwitchElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoSwitch - WebF FlutterCupertinoSwitch component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoSwitch\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoSwitch>\n * ```\n */\nexport const FlutterCupertinoSwitch = createWebFComponent<FlutterCupertinoSwitchElement, FlutterCupertinoSwitchProps>({\n tagName: 'flutter-cupertino-switch',\n displayName: 'FlutterCupertinoSwitch',\n // Map props to attributes\n attributeProps: [\n 'checked',\n 'disabled',\n 'activeColor',\n 'inactiveColor',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n activeColor: 'active-color',\n inactiveColor: 'inactive-color',\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<boolean>));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ninterface FlutterCupertinoSliderMethods {\n getValue(): number;\n setValue(val: number): void;\n}\nexport interface FlutterCupertinoSliderProps {\n /**\n * val property\n * @default undefined\n */\n val?: number;\n /**\n * min property\n * @default undefined\n */\n min?: number;\n /**\n * max property\n * @default undefined\n */\n max?: number;\n /**\n * step property\n * @default undefined\n */\n step?: number;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent<number>) => void;\n /**\n * changestart event handler\n */\n onChangestart?: (event: CustomEvent<number>) => void;\n /**\n * changeend event handler\n */\n onChangeend?: (event: CustomEvent<number>) => void;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n/**\n * Element interface with methods accessible via ref\n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoSliderElement>(null);\n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport interface FlutterCupertinoSliderElement extends WebFElementWithMethods<{\n getValue(): number;\n setValue(val: number): void;\n}> {}\n/**\n * FlutterCupertinoSlider - WebF FlutterCupertinoSlider component\n * \n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoSliderElement>(null);\n * \n * <FlutterCupertinoSlider\n * ref={ref}\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoSlider>\n * \n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport const FlutterCupertinoSlider = createWebFComponent<FlutterCupertinoSliderElement, FlutterCupertinoSliderProps>({\n tagName: 'flutter-cupertino-slider',\n displayName: 'FlutterCupertinoSlider',\n // Map props to attributes\n attributeProps: [\n 'val',\n 'min',\n 'max',\n 'step',\n 'disabled',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<number>));\n },\n },\n {\n propName: 'onChangestart',\n eventName: 'changestart',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<number>));\n },\n },\n {\n propName: 'onChangeend',\n eventName: 'changeend',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<number>));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ninterface FlutterCupertinoSearchInputMethods {\n getValue(): string;\n setValue(value: string): void;\n focus(): void;\n blur(): void;\n clear(): void;\n}\nexport interface FlutterCupertinoSearchInputProps {\n /**\n * val property\n * @default undefined\n */\n val?: string;\n /**\n * placeholder property\n * @default undefined\n */\n placeholder?: string;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * type property\n * @default undefined\n */\n type?: string;\n /**\n * prefixIcon property\n * @default undefined\n */\n prefixIcon?: string;\n /**\n * suffixIcon property\n * @default undefined\n */\n suffixIcon?: string;\n /**\n * suffixModel property\n * @default undefined\n */\n suffixModel?: string;\n /**\n * itemColor property\n * @default undefined\n */\n itemColor?: string;\n /**\n * itemSize property\n * @default undefined\n */\n itemSize?: number;\n /**\n * autofocus property\n */\n autofocus: boolean;\n /**\n * input event handler\n */\n onInput?: (event: CustomEvent<string>) => void;\n /**\n * search event handler\n */\n onSearch?: (event: CustomEvent<string>) => void;\n /**\n * clear event handler\n */\n onClear?: (event: CustomEvent) => void;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n/**\n * Element interface with methods accessible via ref\n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoSearchInputElement>(null);\n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport interface FlutterCupertinoSearchInputElement extends WebFElementWithMethods<{\n getValue(): string;\n setValue(value: string): void;\n focus(): void;\n blur(): void;\n clear(): void;\n}> {}\n/**\n * FlutterCupertinoSearchInput - WebF FlutterCupertinoSearchInput component\n * \n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoSearchInputElement>(null);\n * \n * <FlutterCupertinoSearchInput\n * ref={ref}\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoSearchInput>\n * \n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport const FlutterCupertinoSearchInput = createWebFComponent<FlutterCupertinoSearchInputElement, FlutterCupertinoSearchInputProps>({\n tagName: 'flutter-cupertino-search-input',\n displayName: 'FlutterCupertinoSearchInput',\n // Map props to attributes\n attributeProps: [\n 'val',\n 'placeholder',\n 'disabled',\n 'type',\n 'prefixIcon',\n 'suffixIcon',\n 'suffixModel',\n 'itemColor',\n 'itemSize',\n 'autofocus',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n prefixIcon: 'prefix-icon',\n suffixIcon: 'suffix-icon',\n suffixModel: 'suffix-model',\n itemColor: 'item-color',\n itemSize: 'item-size',\n },\n // Event handlers\n events: [\n {\n propName: 'onInput',\n eventName: 'input',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<string>));\n },\n },\n {\n propName: 'onSearch',\n eventName: 'search',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<string>));\n },\n },\n {\n propName: 'onClear',\n eventName: 'clear',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoRadioProps {\n /**\n * val property\n * @default undefined\n */\n val?: string;\n /**\n * groupValue property\n * @default undefined\n */\n groupValue?: string;\n /**\n * useCheckmarkStyle property\n * @default undefined\n */\n useCheckmarkStyle?: boolean;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * activeColor property\n * @default undefined\n */\n activeColor?: string;\n /**\n * focusColor property\n * @default undefined\n */\n focusColor?: string;\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent<string>) => void;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoRadioElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoRadio - WebF FlutterCupertinoRadio component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoRadio\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoRadio>\n * ```\n */\nexport const FlutterCupertinoRadio = createWebFComponent<FlutterCupertinoRadioElement, FlutterCupertinoRadioProps>({\n tagName: 'flutter-cupertino-radio',\n displayName: 'FlutterCupertinoRadio',\n // Map props to attributes\n attributeProps: [\n 'val',\n 'groupValue',\n 'useCheckmarkStyle',\n 'disabled',\n 'activeColor',\n 'focusColor',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n groupValue: 'group-value',\n useCheckmarkStyle: 'use-checkmark-style',\n activeColor: 'active-color',\n focusColor: 'focus-color',\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<string>));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoPickerProps {\n /**\n * height property\n * @default undefined\n */\n height?: number;\n /**\n * itemHeight property\n * @default undefined\n */\n itemHeight?: number;\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent<string>) => void;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoPickerElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoPicker - WebF FlutterCupertinoPicker component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoPicker\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoPicker>\n * ```\n */\nexport const FlutterCupertinoPicker = createWebFComponent<FlutterCupertinoPickerElement, FlutterCupertinoPickerProps>({\n tagName: 'flutter-cupertino-picker',\n displayName: 'FlutterCupertinoPicker',\n // Map props to attributes\n attributeProps: [\n 'height',\n 'itemHeight',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n itemHeight: 'item-height',\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<string>));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ninterface FlutterCupertinoModalPopupMethods {\n show(): void;\n hide(): void;\n}\nexport interface FlutterCupertinoModalPopupProps {\n /**\n * visible property\n * @default undefined\n */\n visible?: boolean;\n /**\n * height property\n * @default undefined\n */\n height?: number;\n /**\n * surfacePainted property\n * @default undefined\n */\n surfacePainted?: boolean;\n /**\n * maskClosable property\n * @default undefined\n */\n maskClosable?: boolean;\n /**\n * backgroundOpacity property\n * @default undefined\n */\n backgroundOpacity?: number;\n /**\n * close event handler\n */\n onClose?: (event: CustomEvent) => void;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n/**\n * Element interface with methods accessible via ref\n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoModalPopupElement>(null);\n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport interface FlutterCupertinoModalPopupElement extends WebFElementWithMethods<{\n show(): void;\n hide(): void;\n}> {}\n/**\n * FlutterCupertinoModalPopup - WebF FlutterCupertinoModalPopup component\n * \n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoModalPopupElement>(null);\n * \n * <FlutterCupertinoModalPopup\n * ref={ref}\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoModalPopup>\n * \n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport const FlutterCupertinoModalPopup = createWebFComponent<FlutterCupertinoModalPopupElement, FlutterCupertinoModalPopupProps>({\n tagName: 'flutter-cupertino-modal-popup',\n displayName: 'FlutterCupertinoModalPopup',\n // Map props to attributes\n attributeProps: [\n 'visible',\n 'height',\n 'surfacePainted',\n 'maskClosable',\n 'backgroundOpacity',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n surfacePainted: 'surface-painted',\n maskClosable: 'mask-closable',\n backgroundOpacity: 'background-opacity',\n },\n // Event handlers\n events: [\n {\n propName: 'onClose',\n eventName: 'close',\n handler: (callback) => (event) => {\n callback((event as CustomEvent));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ninterface FlutterCupertinoInputMethods {\n getValue(): string;\n setValue(value: string): void;\n focus(): void;\n blur(): void;\n}\nexport interface FlutterCupertinoInputProps {\n /**\n * val property\n * @default undefined\n */\n val?: string;\n /**\n * placeholder property\n * @default undefined\n */\n placeholder?: string;\n /**\n * type property\n * @default undefined\n */\n type?: string;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * autofocus property\n */\n autofocus: boolean;\n /**\n * clearable property\n * @default undefined\n */\n clearable?: boolean;\n /**\n * maxlength property\n * @default undefined\n */\n maxlength?: number;\n /**\n * readonly property\n * @default undefined\n */\n readonly?: boolean;\n /**\n * input event handler\n */\n onInput?: (event: CustomEvent<string>) => void;\n /**\n * submit event handler\n */\n onSubmit?: (event: CustomEvent<string>) => void;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n/**\n * Element interface with methods accessible via ref\n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoInputElement>(null);\n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport interface FlutterCupertinoInputElement extends WebFElementWithMethods<{\n getValue(): string;\n setValue(value: string): void;\n focus(): void;\n blur(): void;\n}> {}\n/**\n * FlutterCupertinoInput - WebF FlutterCupertinoInput component\n * \n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoInputElement>(null);\n * \n * <FlutterCupertinoInput\n * ref={ref}\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoInput>\n * \n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport const FlutterCupertinoInput = createWebFComponent<FlutterCupertinoInputElement, FlutterCupertinoInputProps>({\n tagName: 'flutter-cupertino-input',\n displayName: 'FlutterCupertinoInput',\n // Map props to attributes\n attributeProps: [\n 'val',\n 'placeholder',\n 'type',\n 'disabled',\n 'autofocus',\n 'clearable',\n 'maxlength',\n 'readonly',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n },\n // Event handlers\n events: [\n {\n propName: 'onInput',\n eventName: 'input',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<string>));\n },\n },\n {\n propName: 'onSubmit',\n eventName: 'submit',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<string>));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoIconProps {\n /**\n * type property\n * @default undefined\n */\n type?: string;\n /**\n * label property\n * @default undefined\n */\n label?: string;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoIconElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoIcon - WebF FlutterCupertinoIcon component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoIcon\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoIcon>\n * ```\n */\nexport const FlutterCupertinoIcon = createWebFComponent<FlutterCupertinoIconElement, FlutterCupertinoIconProps>({\n tagName: 'flutter-cupertino-icon',\n displayName: 'FlutterCupertinoIcon',\n // Map props to attributes\n attributeProps: [\n 'type',\n 'label',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n },\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoDatePickerProps {\n /**\n * mode property\n * @default undefined\n */\n mode?: string;\n /**\n * minimumDate property\n * @default undefined\n */\n minimumDate?: string;\n /**\n * maximumDate property\n * @default undefined\n */\n maximumDate?: string;\n /**\n * minuteInterval property\n * @default undefined\n */\n minuteInterval?: string;\n /**\n * value property\n * @default undefined\n */\n value?: string;\n /**\n * minimumYear property\n * @default undefined\n */\n minimumYear?: string;\n /**\n * maximumYear property\n * @default undefined\n */\n maximumYear?: string;\n /**\n * showDayOfWeek property\n * @default undefined\n */\n showDayOfWeek?: string;\n /**\n * dateOrder property\n * @default undefined\n */\n dateOrder?: string;\n /**\n * height property\n * @default undefined\n */\n height?: string;\n /**\n * use24H property\n * @default undefined\n */\n use24H?: boolean;\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent<string>) => void;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoDatePickerElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoDatePicker - WebF FlutterCupertinoDatePicker component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoDatePicker\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoDatePicker>\n * ```\n */\nexport const FlutterCupertinoDatePicker = createWebFComponent<FlutterCupertinoDatePickerElement, FlutterCupertinoDatePickerProps>({\n tagName: 'flutter-cupertino-date-picker',\n displayName: 'FlutterCupertinoDatePicker',\n // Map props to attributes\n attributeProps: [\n 'mode',\n 'minimumDate',\n 'maximumDate',\n 'minuteInterval',\n 'value',\n 'minimumYear',\n 'maximumYear',\n 'showDayOfWeek',\n 'dateOrder',\n 'height',\n 'use24H',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n minimumDate: 'minimum-date',\n maximumDate: 'maximum-date',\n minuteInterval: 'minute-interval',\n minimumYear: 'minimum-year',\n maximumYear: 'maximum-year',\n showDayOfWeek: 'show-day-of-week',\n dateOrder: 'date-order',\n use24H: 'use-24-h',\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<string>));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\ninterface FlutterCupertinoContextMenuMethods {\n setActions(actions: ContextMenuAction[]): void;\n}\ninterface ContextMenuAction {\n text: string;\n icon?: string;\n destructive?: boolean;\n default?: boolean;\n event?: string;\n}\nexport interface FlutterCupertinoContextMenuProps {\n /**\n * enableHapticFeedback property\n * @default undefined\n */\n enableHapticFeedback?: boolean;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n/**\n * Element interface with methods accessible via ref\n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoContextMenuElement>(null);\n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport interface FlutterCupertinoContextMenuElement extends WebFElementWithMethods<{\n setActions(actions: ContextMenuAction[]): void;\n}> {}\n/**\n * FlutterCupertinoContextMenu - WebF FlutterCupertinoContextMenu component\n * \n * @example\n * ```tsx\n * const ref = useRef<FlutterCupertinoContextMenuElement>(null);\n * \n * <FlutterCupertinoContextMenu\n * ref={ref}\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoContextMenu>\n * \n * // Call methods on the element\n * ref.current?.finishRefresh('success');\n * ```\n */\nexport const FlutterCupertinoContextMenu = createWebFComponent<FlutterCupertinoContextMenuElement, FlutterCupertinoContextMenuProps>({\n tagName: 'flutter-cupertino-context-menu',\n displayName: 'FlutterCupertinoContextMenu',\n // Map props to attributes\n attributeProps: [\n 'enableHapticFeedback',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n enableHapticFeedback: 'enable-haptic-feedback',\n },\n // Event handlers\n events: [\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoCheckboxProps {\n /**\n * val property\n * @default undefined\n */\n val?: string;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * activeColor property\n * @default undefined\n */\n activeColor?: string;\n /**\n * checkColor property\n * @default undefined\n */\n checkColor?: string;\n /**\n * focusColor property\n * @default undefined\n */\n focusColor?: string;\n /**\n * fillColorSelected property\n * @default undefined\n */\n fillColorSelected?: string;\n /**\n * fillColorDisabled property\n * @default undefined\n */\n fillColorDisabled?: string;\n /**\n * change event handler\n */\n onChange?: (event: CustomEvent<boolean>) => void;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoCheckboxElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoCheckbox - WebF FlutterCupertinoCheckbox component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoCheckbox\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoCheckbox>\n * ```\n */\nexport const FlutterCupertinoCheckbox = createWebFComponent<FlutterCupertinoCheckboxElement, FlutterCupertinoCheckboxProps>({\n tagName: 'flutter-cupertino-checkbox',\n displayName: 'FlutterCupertinoCheckbox',\n // Map props to attributes\n attributeProps: [\n 'val',\n 'disabled',\n 'activeColor',\n 'checkColor',\n 'focusColor',\n 'fillColorSelected',\n 'fillColorDisabled',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n activeColor: 'active-color',\n checkColor: 'check-color',\n focusColor: 'focus-color',\n fillColorSelected: 'fill-color-selected',\n fillColorDisabled: 'fill-color-disabled',\n },\n // Event handlers\n events: [\n {\n propName: 'onChange',\n eventName: 'change',\n handler: (callback) => (event) => {\n callback((event as CustomEvent<boolean>));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});","import React from \"react\";\nimport { createWebFComponent, WebFElementWithMethods } from \"@openwebf/react-core-ui\";\nexport interface FlutterCupertinoButtonProps {\n /**\n * variant property\n * @default undefined\n */\n variant?: string;\n /**\n * size property\n * @default undefined\n */\n size?: string;\n /**\n * disabled property\n * @default undefined\n */\n disabled?: boolean;\n /**\n * pressedOpacity property\n * @default undefined\n */\n pressedOpacity?: string;\n /**\n * click event handler\n */\n onClick?: (event: Event) => void;\n /**\n * HTML id attribute\n */\n id?: string;\n /**\n * Additional CSS styles\n */\n style?: React.CSSProperties;\n /**\n * Children elements\n */\n children?: React.ReactNode;\n /**\n * Additional CSS class names\n */\n className?: string;\n}\nexport interface FlutterCupertinoButtonElement extends WebFElementWithMethods<{\n}> {}\n/**\n * FlutterCupertinoButton - WebF FlutterCupertinoButton component\n * \n * @example\n * ```tsx\n * \n * <FlutterCupertinoButton\n * // Add props here\n * >\n * Content\n * </FlutterCupertinoButton>\n * ```\n */\nexport const FlutterCupertinoButton = createWebFComponent<FlutterCupertinoButtonElement, FlutterCupertinoButtonProps>({\n tagName: 'flutter-cupertino-button',\n displayName: 'FlutterCupertinoButton',\n // Map props to attributes\n attributeProps: [\n 'variant',\n 'size',\n 'disabled',\n 'pressedOpacity',\n ],\n // Convert prop names to attribute names if needed\n attributeMap: {\n pressedOpacity: 'pressed-opacity',\n },\n // Event handlers\n events: [\n {\n propName: 'onClick',\n eventName: 'click',\n handler: (callback) => (event) => {\n callback((event as Event));\n },\n },\n ],\n // Default prop values\n defaultProps: {\n // Add default values here\n },\n});"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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F;AAAA;AAAA,EAEA,cAAc;AAAA;AAAA,EAEd;AACF,CAAC;","names":["import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui","import_react_core_ui"]}
|
package/dist/index.mjs
CHANGED
|
@@ -606,108 +606,6 @@ var FlutterCupertinoButton = createWebFComponent16({
|
|
|
606
606
|
// Add default values here
|
|
607
607
|
}
|
|
608
608
|
});
|
|
609
|
-
|
|
610
|
-
// src/utils/createComponent.ts
|
|
611
|
-
import { forwardRef, useLayoutEffect, createElement, useCallback, useRef } from "react";
|
|
612
|
-
var NODE_MODE = false;
|
|
613
|
-
var reservedReactProperties = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]);
|
|
614
|
-
var listenedEvents = /* @__PURE__ */ new WeakMap();
|
|
615
|
-
var addOrUpdateEventListener = (node, event, listener) => {
|
|
616
|
-
let events = listenedEvents.get(node);
|
|
617
|
-
if (events === void 0) {
|
|
618
|
-
listenedEvents.set(node, events = /* @__PURE__ */ new Map());
|
|
619
|
-
}
|
|
620
|
-
let handler = events.get(event);
|
|
621
|
-
if (listener !== void 0) {
|
|
622
|
-
if (handler === void 0) {
|
|
623
|
-
events.set(event, handler = { handleEvent: listener });
|
|
624
|
-
node.addEventListener(event, handler);
|
|
625
|
-
} else {
|
|
626
|
-
handler.handleEvent = listener;
|
|
627
|
-
}
|
|
628
|
-
} else if (handler !== void 0) {
|
|
629
|
-
events.delete(event);
|
|
630
|
-
node.removeEventListener(event, handler);
|
|
631
|
-
}
|
|
632
|
-
};
|
|
633
|
-
var setProperty = (node, name, value, old, events) => {
|
|
634
|
-
const event = events?.[name];
|
|
635
|
-
if (event !== void 0) {
|
|
636
|
-
if (value !== old) {
|
|
637
|
-
addOrUpdateEventListener(node, event, value);
|
|
638
|
-
}
|
|
639
|
-
return;
|
|
640
|
-
}
|
|
641
|
-
node[name] = value;
|
|
642
|
-
if ((value === void 0 || value === null) && name in HTMLElement.prototype) {
|
|
643
|
-
node.removeAttribute(name);
|
|
644
|
-
}
|
|
645
|
-
};
|
|
646
|
-
var createComponent = ({
|
|
647
|
-
tagName,
|
|
648
|
-
events,
|
|
649
|
-
displayName
|
|
650
|
-
}) => {
|
|
651
|
-
const eventProps = new Set(Object.keys(events ?? {}));
|
|
652
|
-
const ReactComponent = forwardRef((props, ref) => {
|
|
653
|
-
const prevElemPropsRef = useRef(/* @__PURE__ */ new Map());
|
|
654
|
-
const elementRef = useRef(null);
|
|
655
|
-
const reactProps = {};
|
|
656
|
-
const elementProps = {};
|
|
657
|
-
for (const [k, v] of Object.entries(props)) {
|
|
658
|
-
if (reservedReactProperties.has(k)) {
|
|
659
|
-
reactProps[k === "className" ? "class" : k] = v;
|
|
660
|
-
continue;
|
|
661
|
-
}
|
|
662
|
-
if (eventProps.has(k)) {
|
|
663
|
-
elementProps[k] = v;
|
|
664
|
-
continue;
|
|
665
|
-
}
|
|
666
|
-
reactProps[k] = v;
|
|
667
|
-
}
|
|
668
|
-
useLayoutEffect(() => {
|
|
669
|
-
if (elementRef.current === null) {
|
|
670
|
-
return;
|
|
671
|
-
}
|
|
672
|
-
const newElemProps = /* @__PURE__ */ new Map();
|
|
673
|
-
for (const key in elementProps) {
|
|
674
|
-
setProperty(elementRef.current, key, props[key], prevElemPropsRef.current.get(key), events);
|
|
675
|
-
prevElemPropsRef.current.delete(key);
|
|
676
|
-
newElemProps.set(key, props[key]);
|
|
677
|
-
}
|
|
678
|
-
for (const [key, value] of prevElemPropsRef.current) {
|
|
679
|
-
setProperty(elementRef.current, key, void 0, value, events);
|
|
680
|
-
}
|
|
681
|
-
prevElemPropsRef.current = newElemProps;
|
|
682
|
-
});
|
|
683
|
-
useLayoutEffect(() => {
|
|
684
|
-
elementRef.current?.removeAttribute("defer-hydration");
|
|
685
|
-
}, []);
|
|
686
|
-
if (NODE_MODE) {
|
|
687
|
-
if ((createElement.name === "litPatchedCreateElement" || globalThis.litSsrReactEnabled) && Object.keys(elementProps).length) {
|
|
688
|
-
reactProps["_$litProps$"] = elementProps;
|
|
689
|
-
}
|
|
690
|
-
} else {
|
|
691
|
-
reactProps["suppressHydrationWarning"] = true;
|
|
692
|
-
}
|
|
693
|
-
return createElement(tagName, {
|
|
694
|
-
...reactProps,
|
|
695
|
-
ref: useCallback(
|
|
696
|
-
(node) => {
|
|
697
|
-
elementRef.current = node;
|
|
698
|
-
if (typeof ref === "function") {
|
|
699
|
-
ref(node);
|
|
700
|
-
} else if (ref !== null) {
|
|
701
|
-
ref.current = node;
|
|
702
|
-
}
|
|
703
|
-
},
|
|
704
|
-
[ref]
|
|
705
|
-
)
|
|
706
|
-
});
|
|
707
|
-
});
|
|
708
|
-
ReactComponent.displayName = displayName;
|
|
709
|
-
return ReactComponent;
|
|
710
|
-
};
|
|
711
609
|
export {
|
|
712
610
|
FlutterCupertinoButton,
|
|
713
611
|
FlutterCupertinoCheckbox,
|
|
@@ -726,12 +624,6 @@ export {
|
|
|
726
624
|
FlutterCupertinoTabBarItem,
|
|
727
625
|
FlutterCupertinoTabItem,
|
|
728
626
|
FlutterCupertinoTextarea,
|
|
729
|
-
FlutterCupertinoTimerPicker
|
|
730
|
-
createComponent
|
|
627
|
+
FlutterCupertinoTimerPicker
|
|
731
628
|
};
|
|
732
|
-
/**
|
|
733
|
-
* @license
|
|
734
|
-
* Copyright 2018 Google LLC
|
|
735
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
736
|
-
*/
|
|
737
629
|
//# sourceMappingURL=index.mjs.map
|