@reillymc/react-native-components 0.12.1 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/actions/action/Action.js +1 -1
- package/lib/actions/action/ActionBase.js +1 -1
- package/lib/actions/action/IconAction.js +1 -1
- package/lib/actions/action/IconActionBase.js +1 -1
- package/lib/actions/action/PressableBase.js +1 -1
- package/lib/actions/action/StateTint.js +1 -1
- package/lib/actions/button/Button.js +1 -1
- package/lib/actions/button/ButtonBase.js +1 -1
- package/lib/actions/button/IconButton.js +1 -1
- package/lib/actions/button/IconButtonBase.js +1 -1
- package/lib/actions/surface/InteractionSurface.js +1 -1
- package/lib/actions/surface/StateLayer.js +1 -1
- package/lib/actions/swipeAction/SwipeAction.js +1 -1
- package/lib/display/avatar/Avatar.js +1 -1
- package/lib/display/badge/Badge.js +1 -1
- package/lib/display/contentRow/ContentRow.js +1 -1
- package/lib/display/index.js +1 -1
- package/lib/display/listItem/ListItem.js +1 -1
- package/lib/display/rating/Rating.js +1 -1
- package/lib/display/tag/Tag.js +1 -1
- package/lib/display/tag/TagIcon.js +1 -1
- package/lib/display/toggleIndicator/ToggleIndicator.js +1 -0
- package/lib/display/toggleIndicator/ToggleIndicator.theme.js +1 -0
- package/lib/display/toggleIndicator/index.js +1 -0
- package/lib/feedback/toast/Toast.js +1 -1
- package/lib/forms/field/Field.js +1 -1
- package/lib/forms/field/Field.theme.js +1 -1
- package/lib/forms/field/FieldAction.js +1 -1
- package/lib/forms/field/FieldIcon.js +1 -1
- package/lib/forms/field/FieldNumberInput.js +1 -1
- package/lib/forms/field/FieldRow.js +1 -1
- package/lib/forms/field/FieldSurface.js +1 -1
- package/lib/forms/field/FieldSurfacePressLayer.js +1 -1
- package/lib/forms/field/FieldTextInput.js +1 -1
- package/lib/forms/formContainer/FormContainer.js +1 -1
- package/lib/forms/formRow/FormRow.js +1 -1
- package/lib/forms/input/TextInput.js +1 -1
- package/lib/forms/input/TextInput.theme.js +1 -0
- package/lib/forms/input/comboboxInput/ComboboxBlurGuard.web.js +1 -1
- package/lib/forms/input/comboboxInput/ComboboxInput.js +1 -1
- package/lib/forms/input/comboboxInput/ComboboxInput.theme.js +1 -1
- package/lib/forms/input/comboboxInput/ComboboxInputBase.js +1 -1
- package/lib/forms/input/counterInput/CounterControl.js +1 -1
- package/lib/forms/input/counterInput/CounterInput.js +1 -1
- package/lib/forms/input/counterInput/CounterInput.theme.js +1 -0
- package/lib/forms/input/numberInput/NumberInput.js +1 -1
- package/lib/forms/input/numberInput/NumberInput.theme.js +1 -0
- package/lib/forms/input/ratingInput/AnimatedStar.js +1 -1
- package/lib/forms/input/ratingInput/RatingControl.js +1 -1
- package/lib/forms/input/ratingInput/RatingInput.js +1 -1
- package/lib/forms/input/ratingInput/RatingInput.theme.js +1 -1
- package/lib/forms/input/selectionInput/SelectionControl.js +1 -1
- package/lib/forms/input/selectionInput/SelectionInput.js +1 -1
- package/lib/forms/input/selectionInput/SelectionInput.theme.js +1 -1
- package/lib/forms/input/shared/SegmentedInputSegments.js +1 -0
- package/lib/forms/input/timeInput/TimeInput.js +1 -1
- package/lib/forms/input/timeInput/TimeInput.theme.js +1 -0
- package/lib/forms/input/toggleInput/ToggleControl.js +1 -1
- package/lib/forms/input/toggleInput/ToggleInput.js +1 -1
- package/lib/forms/input/toggleInput/ToggleInput.theme.js +1 -1
- package/lib/icons/Icon.js +1 -1
- package/lib/icons/IconBase.js +1 -1
- package/lib/icons/index.js +1 -1
- package/lib/icons/ui/ArrowBoth.js +1 -1
- package/lib/icons/ui/Check.js +1 -1
- package/lib/icons/ui/ChevronDown.js +1 -1
- package/lib/icons/ui/Circle.js +1 -1
- package/lib/icons/ui/CircleFilled.js +1 -1
- package/lib/icons/ui/Clock.js +1 -1
- package/lib/icons/ui/Dash.js +1 -1
- package/lib/icons/ui/Exclamation.js +1 -1
- package/lib/icons/ui/InfinityGlyph.js +1 -1
- package/lib/icons/ui/NumberGlyph.js +1 -1
- package/lib/icons/ui/Plus.js +1 -1
- package/lib/icons/ui/StarBorder.js +1 -1
- package/lib/icons/ui/StarFull.js +1 -1
- package/lib/icons/ui/StarHalf.js +1 -1
- package/lib/icons/ui/index.js +1 -1
- package/lib/layout/collapsiblePanel/CollapsiblePanel.js +1 -1
- package/lib/layout/swipeable/SwipeableContainer.js +1 -1
- package/lib/overlays/anchoredContainer/AnchoredContainer.ios.js +1 -1
- package/lib/overlays/anchoredContainer/AnchoredContainer.js +1 -1
- package/lib/overlays/anchoredContainer/AnchoredContainer.web.js +1 -1
- package/lib/overlays/anchoredContainer/InlineMount.js +1 -1
- package/lib/overlays/anchoredContainer/OverlayMount.js +1 -1
- package/lib/overlays/menu/Menu.js +1 -1
- package/lib/overlays/menu/MenuItem.js +1 -1
- package/lib/overlays/menu/VirtualizedListContextResetter.js +1 -0
- package/lib/overlays/menu/VirtualizedListContextResetter.web.js +1 -0
- package/lib/theme/ThemeProvider.js +1 -1
- package/lib/theme/createAppTheme.js +1 -1
- package/lib/theme/icons.js +1 -1
- package/lib/theme/size.js +0 -0
- package/lib/theme/themeDefinitions.js +1 -1
- package/lib/types/display/index.d.ts +1 -0
- package/lib/types/display/index.d.ts.map +1 -1
- package/lib/types/display/toggleIndicator/ToggleIndicator.d.ts +25 -0
- package/lib/types/display/toggleIndicator/ToggleIndicator.d.ts.map +1 -0
- package/lib/types/display/toggleIndicator/ToggleIndicator.theme.d.ts +3 -0
- package/lib/types/display/toggleIndicator/ToggleIndicator.theme.d.ts.map +1 -0
- package/lib/types/display/toggleIndicator/index.d.ts +2 -0
- package/lib/types/display/toggleIndicator/index.d.ts.map +1 -0
- package/lib/types/forms/field/Field.d.ts +7 -3
- package/lib/types/forms/field/Field.d.ts.map +1 -1
- package/lib/types/forms/field/Field.theme.d.ts +7 -7
- package/lib/types/forms/field/Field.theme.d.ts.map +1 -1
- package/lib/types/forms/field/FieldContext.d.ts +1 -1
- package/lib/types/forms/field/FieldRow.d.ts.map +1 -1
- package/lib/types/forms/field/FieldSurface.d.ts +3 -0
- package/lib/types/forms/field/FieldSurface.d.ts.map +1 -1
- package/lib/types/forms/field/FieldTextInput.d.ts +2 -5
- package/lib/types/forms/field/FieldTextInput.d.ts.map +1 -1
- package/lib/types/forms/field/index.d.ts +1 -1
- package/lib/types/forms/field/index.d.ts.map +1 -1
- package/lib/types/forms/index.d.ts +2 -2
- package/lib/types/forms/index.d.ts.map +1 -1
- package/lib/types/forms/input/TextInput.d.ts +5 -1
- package/lib/types/forms/input/TextInput.d.ts.map +1 -1
- package/lib/types/forms/input/TextInput.theme.d.ts +7 -0
- package/lib/types/forms/input/TextInput.theme.d.ts.map +1 -0
- package/lib/types/forms/input/comboboxInput/ComboboxInput.d.ts +6 -5
- package/lib/types/forms/input/comboboxInput/ComboboxInput.d.ts.map +1 -1
- package/lib/types/forms/input/comboboxInput/ComboboxInput.theme.d.ts +6 -0
- package/lib/types/forms/input/comboboxInput/ComboboxInput.theme.d.ts.map +1 -1
- package/lib/types/forms/input/comboboxInput/ComboboxInputBase.d.ts +3 -0
- package/lib/types/forms/input/comboboxInput/ComboboxInputBase.d.ts.map +1 -1
- package/lib/types/forms/input/comboboxInput/index.d.ts +1 -0
- package/lib/types/forms/input/comboboxInput/index.d.ts.map +1 -1
- package/lib/types/forms/input/counterInput/CounterControl.d.ts +3 -0
- package/lib/types/forms/input/counterInput/CounterControl.d.ts.map +1 -1
- package/lib/types/forms/input/counterInput/CounterInput.d.ts +3 -0
- package/lib/types/forms/input/counterInput/CounterInput.d.ts.map +1 -1
- package/lib/types/forms/input/counterInput/CounterInput.theme.d.ts +8 -0
- package/lib/types/forms/input/counterInput/CounterInput.theme.d.ts.map +1 -0
- package/lib/types/forms/input/counterInput/index.d.ts +1 -0
- package/lib/types/forms/input/counterInput/index.d.ts.map +1 -1
- package/lib/types/forms/input/index.d.ts +6 -5
- package/lib/types/forms/input/index.d.ts.map +1 -1
- package/lib/types/forms/input/numberInput/NumberInput.d.ts +3 -0
- package/lib/types/forms/input/numberInput/NumberInput.d.ts.map +1 -1
- package/lib/types/forms/input/numberInput/NumberInput.theme.d.ts +8 -0
- package/lib/types/forms/input/numberInput/NumberInput.theme.d.ts.map +1 -0
- package/lib/types/forms/input/numberInput/index.d.ts +1 -0
- package/lib/types/forms/input/numberInput/index.d.ts.map +1 -1
- package/lib/types/forms/input/ratingInput/RatingInput.d.ts.map +1 -1
- package/lib/types/forms/input/ratingInput/RatingInput.theme.d.ts +2 -0
- package/lib/types/forms/input/ratingInput/RatingInput.theme.d.ts.map +1 -1
- package/lib/types/forms/input/selectionInput/SelectionControl.d.ts.map +1 -1
- package/lib/types/forms/input/selectionInput/SelectionInput.theme.d.ts +2 -0
- package/lib/types/forms/input/selectionInput/SelectionInput.theme.d.ts.map +1 -1
- package/lib/types/forms/input/shared/SegmentedInputSegments.d.ts +11 -0
- package/lib/types/forms/input/shared/SegmentedInputSegments.d.ts.map +1 -0
- package/lib/types/forms/input/timeInput/TimeInput.d.ts +3 -0
- package/lib/types/forms/input/timeInput/TimeInput.d.ts.map +1 -1
- package/lib/types/forms/input/timeInput/TimeInput.theme.d.ts +11 -0
- package/lib/types/forms/input/timeInput/TimeInput.theme.d.ts.map +1 -0
- package/lib/types/forms/input/timeInput/index.d.ts +1 -0
- package/lib/types/forms/input/timeInput/index.d.ts.map +1 -1
- package/lib/types/forms/input/toggleInput/ToggleControl.d.ts +3 -4
- package/lib/types/forms/input/toggleInput/ToggleControl.d.ts.map +1 -1
- package/lib/types/forms/input/toggleInput/ToggleInput.d.ts +3 -4
- package/lib/types/forms/input/toggleInput/ToggleInput.d.ts.map +1 -1
- package/lib/types/forms/input/toggleInput/ToggleInput.theme.d.ts +2 -12
- package/lib/types/forms/input/toggleInput/ToggleInput.theme.d.ts.map +1 -1
- package/lib/types/forms/input/toggleInput/index.d.ts +1 -1
- package/lib/types/forms/input/toggleInput/index.d.ts.map +1 -1
- package/lib/types/icons/index.d.ts +1 -0
- package/lib/types/icons/index.d.ts.map +1 -1
- package/lib/types/overlays/menu/Menu.d.ts.map +1 -1
- package/lib/types/overlays/menu/VirtualizedListContextResetter.d.ts +3 -0
- package/lib/types/overlays/menu/VirtualizedListContextResetter.d.ts.map +1 -0
- package/lib/types/overlays/menu/VirtualizedListContextResetter.web.d.ts +3 -0
- package/lib/types/overlays/menu/VirtualizedListContextResetter.web.d.ts.map +1 -0
- package/lib/types/theme/icons.d.ts +3 -3
- package/lib/types/theme/icons.d.ts.map +1 -1
- package/lib/types/theme/index.d.ts +1 -0
- package/lib/types/theme/index.d.ts.map +1 -1
- package/lib/types/theme/size.d.ts +2 -0
- package/lib/types/theme/size.d.ts.map +1 -0
- package/lib/types/theme/theme.d.ts +12 -2
- package/lib/types/theme/theme.d.ts.map +1 -1
- package/lib/types/theme/themeDefinitions.d.ts.map +1 -1
- package/lib/typography/text/HighlightedText.js +1 -1
- package/lib/typography/text/Text.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{c as _c}from"react/compiler-runtime";import{InlineMount}from"./InlineMount";import{OverlayMount}from"./OverlayMount";import{useAnchoredContainerPosition}from"./useAnchoredContainerPosition";import{jsx as _jsx}from"react/jsx-runtime";export var AnchoredContainer=t0=>{var $=_c(19);var parentRef=t0.parentRef,anchorRef=t0.anchorRef,show=t0.show,position=t0.position,theme=t0.theme,onInvertedChange=t0.onInvertedChange,style=t0.style,children=t0.children;var t1;if($[0]!==onInvertedChange||$[1]!==parentRef||$[2]!==position||$[3]!==show||$[4]!==theme){t1={parentRef,show,position,theme,onInvertedChange};$[0]=onInvertedChange;$[1]=parentRef;$[2]=position;$[3]=show;$[4]=theme;$[5]=t1;}else{t1=$[5];}var _useAnchoredContainer=useAnchoredContainerPosition(t1),geometry=_useAnchoredContainer.geometry,inlineStyle=_useAnchoredContainer.inlineStyle,parentMargin=_useAnchoredContainer.parentMargin,onLayout=_useAnchoredContainer.onLayout;if(!show){return null;}if(!anchorRef){var _t;if($[6]!==children||$[7]!==geometry||$[8]!==inlineStyle||$[9]!==onLayout||$[10]!==style){_t=_jsx(InlineMount,{geometry:geometry,containerStyle:inlineStyle,onLayout:onLayout,style:style,children:children});$[6]=children;$[7]=geometry;$[8]=inlineStyle;$[9]=onLayout;$[10]=style;$[11]=_t;}else{_t=$[11];}return _t;}var t2;if($[12]!==anchorRef||$[13]!==children||$[14]!==geometry||$[15]!==onLayout||$[16]!==parentMargin||$[17]!==style){t2=_jsx(OverlayMount,{anchorRef:anchorRef,geometry:geometry,margin:parentMargin,onLayout:onLayout,style:style,children:children});$[12]=anchorRef;$[13]=children;$[14]=geometry;$[15]=onLayout;$[16]=parentMargin;$[17]=style;$[18]=t2;}else{t2=$[18];}return t2;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{c as _c}from"react/compiler-runtime";import{InlineMount}from"./InlineMount";import{useAnchoredContainerPosition}from"./useAnchoredContainerPosition";import{jsx as _jsx}from"react/jsx-runtime";export var AnchoredContainer=t0=>{var $=_c(12);var parentRef=t0.parentRef,show=t0.show,position=t0.position,onInvertedChange=t0.onInvertedChange,theme=t0.theme,style=t0.style,children=t0.children;var t1;if($[0]!==onInvertedChange||$[1]!==parentRef||$[2]!==position||$[3]!==show||$[4]!==theme){t1={parentRef,show,position,theme,onInvertedChange};$[0]=onInvertedChange;$[1]=parentRef;$[2]=position;$[3]=show;$[4]=theme;$[5]=t1;}else{t1=$[5];}var _useAnchoredContainer=useAnchoredContainerPosition(t1),geometry=_useAnchoredContainer.geometry,inlineStyle=_useAnchoredContainer.inlineStyle,onLayout=_useAnchoredContainer.onLayout;if(!show){return null;}var t2;if($[6]!==children||$[7]!==geometry||$[8]!==inlineStyle||$[9]!==onLayout||$[10]!==style){t2=_jsx(InlineMount,{geometry:geometry,containerStyle:inlineStyle,onLayout:onLayout,style:style,children:children});$[6]=children;$[7]=geometry;$[8]=inlineStyle;$[9]=onLayout;$[10]=style;$[11]=t2;}else{t2=$[11];}return t2;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{useCallback,useEffect,useRef,useState}from"react";import{createPortal}from"react-dom";import{StyleSheet,useWindowDimensions,View}from"react-native";import{useSafeAreaInsets}from"react-native-safe-area-context";import{useComponent}from"../../internal";import{getContainerPlacement}from"./helpers";import{jsx as _jsx}from"react/jsx-runtime";var FIXED_POSITION="fixed";export var AnchoredContainer=t0=>{var $=_c(38);var parentRef=t0.parentRef,show=t0.show,t1=t0.position,themeOverrides=t0.theme,onInvertedChange=t0.onInvertedChange,style=t0.style,children=t0.children;var position=t1===undefined?"auto":t1;var _useState=useState(),_useState2=_slicedToArray(_useState,2),geometry=_useState2[0],setGeometry=_useState2[1];var t2;if($[0]!==themeOverrides){t2={themeOverrides};$[0]=themeOverrides;$[1]=t2;}else{t2=$[1];}var _useComponent=useComponent("anchoredContainer",t2),theme=_useComponent.theme;var inverted=geometry?.inverted;var t3;var t4;if($[2]!==inverted||$[3]!==onInvertedChange){t3=()=>{if(inverted!==undefined){onInvertedChange?.(inverted);}};t4=[inverted,onInvertedChange];$[2]=inverted;$[3]=onInvertedChange;$[4]=t3;$[5]=t4;}else{t3=$[4];t4=$[5];}useEffect(t3,t4);var _useWindowDimensions=useWindowDimensions(),windowHeight=_useWindowDimensions.height;var _useSafeAreaInsets=useSafeAreaInsets(),top=_useSafeAreaInsets.top,bottom=_useSafeAreaInsets.bottom;var anchorRef=useRef(undefined);var contentHeightRef=useRef(0);var t5;if($[6]!==bottom||$[7]!==position||$[8]!==theme.parentMargin||$[9]!==top||$[10]!==windowHeight){t5=()=>{var anchor=anchorRef.current;var contentHeight=contentHeightRef.current;if(!(anchor&&contentHeight)){return;}var viewportTop=top;var viewportBottom=windowHeight-bottom;var availableBelow=viewportBottom-(anchor.y+anchor.height);var availableAbove=anchor.y-viewportTop;var inverted_0=position==="above"||availableBelow<contentHeight+theme.parentMargin&&availableAbove>availableBelow;setGeometry({parentY:anchor.y,parentX:anchor.x,parentWidth:anchor.width,parentHeight:anchor.height,offsetY:anchor.y,contentHeight,inverted:inverted_0,visibleAreaHeight:viewportBottom-viewportTop,maxHeight:Math.max(0,(inverted_0?availableAbove:availableBelow)-theme.parentMargin)});};$[6]=bottom;$[7]=position;$[8]=theme.parentMargin;$[9]=top;$[10]=windowHeight;$[11]=t5;}else{t5=$[11];}var recompute=t5;var t6;if($[12]!==parentRef||$[13]!==recompute){t6=()=>{if(parentRef.current?.getBoundingClientRect){var rect=parentRef.current.getBoundingClientRect();anchorRef.current={x:rect.left,y:rect.top,width:rect.width,height:rect.height};}recompute();};$[12]=parentRef;$[13]=recompute;$[14]=t6;}else{t6=$[14];}var updateAnchor=t6;var t7;var t8;if($[15]!==parentRef||$[16]!==show||$[17]!==updateAnchor){t7=()=>{if(!show||typeof document==="undefined"){return;}updateAnchor();var frame=0;var schedule=()=>{cancelAnimationFrame(frame);frame=requestAnimationFrame(updateAnchor);};window.addEventListener("scroll",schedule,true);window.addEventListener("resize",schedule);var node=parentRef.current;var observer;if(node instanceof Element&&typeof ResizeObserver!=="undefined"){observer=new ResizeObserver(schedule);observer.observe(node);}return()=>{cancelAnimationFrame(frame);window.removeEventListener("scroll",schedule,true);window.removeEventListener("resize",schedule);observer?.disconnect();};};t8=[show,updateAnchor,parentRef];$[15]=parentRef;$[16]=show;$[17]=updateAnchor;$[18]=t7;$[19]=t8;}else{t7=$[18];t8=$[19];}useEffect(t7,t8);var t10;var t9;if($[20]!==show){t9=()=>{if(!show){setGeometry(undefined);anchorRef.current=undefined;contentHeightRef.current=0;}};t10=[show];$[20]=show;$[21]=t10;$[22]=t9;}else{t10=$[21];t9=$[22];}useEffect(t9,t10);var t11;if($[23]!==recompute){t11=e=>{var height=e.nativeEvent.layout.height;if(height!==contentHeightRef.current){contentHeightRef.current=height;recompute();}};$[23]=recompute;$[24]=t11;}else{t11=$[24];}var onLayout=t11;if(!show||typeof document==="undefined"){return null;}var t12;if($[25]!==geometry||$[26]!==theme.parentMargin){t12=geometry?{left:geometry.parentX,width:geometry.parentWidth,top:geometry.inverted?geometry.parentY-geometry.contentHeight-theme.parentMargin:geometry.parentY+geometry.parentHeight+theme.parentMargin}:styles.hidden;$[25]=geometry;$[26]=theme.parentMargin;$[27]=t12;}else{t12=$[27];}var t13;if($[28]!==style||$[29]!==t12){t13=[styles.container,t12,style];$[28]=style;$[29]=t12;$[30]=t13;}else{t13=$[30];}var t14;if($[31]!==children||$[32]!==geometry){t14=typeof children==="function"?children(getContainerPlacement(geometry)):children;$[31]=children;$[32]=geometry;$[33]=t14;}else{t14=$[33];}var t15;if($[34]!==onLayout||$[35]!==t13||$[36]!==t14){t15=createPortal(_jsx(View,{onLayout:onLayout,style:t13,children:t14}),document.body);$[34]=onLayout;$[35]=t13;$[36]=t14;$[37]=t15;}else{t15=$[37];}return t15;};var styles=StyleSheet.create({container:{position:FIXED_POSITION,zIndex:9999},hidden:{position:FIXED_POSITION,zIndex:9999,opacity:0,pointerEvents:"none"}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{c as _c}from"react/compiler-runtime";import{View}from"react-native";import{getContainerPlacement}from"./helpers";import{jsx as _jsx}from"react/jsx-runtime";export var InlineMount=t0=>{var $=_c(10);var geometry=t0.geometry,containerStyle=t0.containerStyle,onLayout=t0.onLayout,style=t0.style,children=t0.children;var t1;if($[0]!==containerStyle||$[1]!==style){t1=[containerStyle,style];$[0]=containerStyle;$[1]=style;$[2]=t1;}else{t1=$[2];}var t2;if($[3]!==children||$[4]!==geometry){t2=typeof children==="function"?children(getContainerPlacement(geometry)):children;$[3]=children;$[4]=geometry;$[5]=t2;}else{t2=$[5];}var t3;if($[6]!==onLayout||$[7]!==t1||$[8]!==t2){t3=_jsx(View,{onLayout:onLayout,style:t1,children:t2});$[6]=onLayout;$[7]=t1;$[8]=t2;$[9]=t3;}else{t3=$[9];}return t3;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{c as _c}from"react/compiler-runtime";import{StyleSheet,View}from"react-native";import Animated,{measure,useAnimatedStyle,useFrameCallback,useSharedValue}from"react-native-reanimated";import{FullWindowOverlay}from"react-native-screens";import{getContainerPlacement}from"./helpers";import{jsx as _jsx}from"react/jsx-runtime";export var OverlayMount=t0=>{var $=_c(10);var anchorRef=t0.anchorRef,geometry=t0.geometry,margin=t0.margin,onLayout=t0.onLayout,style=t0.style,children=t0.children;var anchorX=useSharedValue(0);var anchorY=useSharedValue(0);var anchorWidth=useSharedValue(0);var anchorHeight=useSharedValue(0);var trackAnchor=()=>{"worklet";var measured=measure(anchorRef);if(!measured){return;}anchorX.set(measured.pageX);anchorY.set(measured.pageY);anchorWidth.set(measured.width);anchorHeight.set(measured.height);};useFrameCallback(trackAnchor,true);var inverted=geometry?.inverted??false;var contentHeight=geometry?.contentHeight??0;var overlayStyle=useAnimatedStyle(()=>({width:anchorWidth.value,opacity:anchorWidth.value>0&&contentHeight>0?1:0,transform:[{translateX:anchorX.value},{translateY:inverted?anchorY.value-contentHeight-margin:anchorY.value+anchorHeight.value+margin}]}));var t1;if($[0]!==overlayStyle||$[1]!==style){t1=[overlayStyles.container,overlayStyle,style];$[0]=overlayStyle;$[1]=style;$[2]=t1;}else{t1=$[2];}var t2;if($[3]!==children||$[4]!==geometry){t2=typeof children==="function"?children(getContainerPlacement(geometry)):children;$[3]=children;$[4]=geometry;$[5]=t2;}else{t2=$[5];}var t3;if($[6]!==onLayout||$[7]!==t1||$[8]!==t2){t3=_jsx(FullWindowOverlay,{children:_jsx(View,{style:overlayStyles.backdrop,children:_jsx(Animated.View,{onLayout:onLayout,style:t1,children:t2})})});$[6]=onLayout;$[7]=t1;$[8]=t2;$[9]=t3;}else{t3=$[9];}return t3;};var overlayStyles=StyleSheet.create({backdrop:{...StyleSheet.absoluteFill,pointerEvents:"box-none"},container:{position:"absolute",left:0,top:0,pointerEvents:"auto"}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{useEffect,useRef,useState}from"react";import{FlatList,View}from"react-native";import{defineStyles,useComponent}from"../../internal";import{useSystems}from"../../theme/useSystems";import{VirtualizedListContextResetter}from"./VirtualizedListContextResetter";import{jsx as _jsx}from"react/jsx-runtime";var VIEW_POSITION=0.33;export var Menu=t0=>{var $=_c(27);var data=t0.data,renderItem=t0.renderItem,keyExtractor=t0.keyExtractor,activeIndex=t0.activeIndex,reverse=t0.reverse,onScroll=t0.onScroll,showsScrollIndicator=t0.showsScrollIndicator,themeOverrides=t0.theme,listProps=t0.listProps;var t1;if($[0]!==themeOverrides){t1={themeOverrides,createStyles};$[0]=themeOverrides;$[1]=t1;}else{t1=$[1];}var _useComponent=useComponent("menu",t1),styles=_useComponent.styles;var _useSystems=useSystems(),shadowStyle=_useSystems.shadowStyle;var listRef=useRef(null);var _useState=useState(activeIndex===undefined||activeIndex<=0),_useState2=_slicedToArray(_useState,2),isReady=_useState2[0],setIsReady=_useState2[1];var t2;var t3;if($[2]!==activeIndex){t2=()=>{if(activeIndex===undefined||activeIndex<0){return;}listRef.current?.scrollToIndex({index:activeIndex,animated:true,viewPosition:VIEW_POSITION});};t3=[activeIndex];$[2]=activeIndex;$[3]=t2;$[4]=t3;}else{t2=$[3];t3=$[4];}useEffect(t2,t3);var t4=!isReady&&styles.hidden;var t5;if($[5]!==shadowStyle||$[6]!==styles.shadow||$[7]!==t4){t5=[styles.shadow,shadowStyle,t4];$[5]=shadowStyle;$[6]=styles.shadow;$[7]=t4;$[8]=t5;}else{t5=$[8];}var t6;if($[9]!==activeIndex||$[10]!==isReady){t6=()=>{if(activeIndex!==undefined&&activeIndex>=0){listRef.current?.scrollToIndex({index:activeIndex,animated:false,viewPosition:VIEW_POSITION});}if(!isReady){requestAnimationFrame(()=>setIsReady(true));}};$[9]=activeIndex;$[10]=isReady;$[11]=t6;}else{t6=$[11];}var t7;if($[12]===Symbol.for("react.memo_cache_sentinel")){t7=t8=>{var index=t8.index,averageItemLength=t8.averageItemLength;listRef.current?.scrollToOffset({offset:averageItemLength*index,animated:true});};$[12]=t7;}else{t7=$[12];}var t8;if($[13]!==data||$[14]!==keyExtractor||$[15]!==listProps||$[16]!==onScroll||$[17]!==renderItem||$[18]!==reverse||$[19]!==showsScrollIndicator||$[20]!==styles.container||$[21]!==styles.content||$[22]!==t6){t8=_jsx(FlatList,{...listProps,ref:listRef,data:data,renderItem:renderItem,keyExtractor:keyExtractor,inverted:reverse,onScroll:onScroll,onContentSizeChange:t6,onScrollToIndexFailed:t7,scrollEventThrottle:16,keyboardShouldPersistTaps:"handled",keyboardDismissMode:"none",showsVerticalScrollIndicator:showsScrollIndicator,style:styles.container,contentContainerStyle:styles.content});$[13]=data;$[14]=keyExtractor;$[15]=listProps;$[16]=onScroll;$[17]=renderItem;$[18]=reverse;$[19]=showsScrollIndicator;$[20]=styles.container;$[21]=styles.content;$[22]=t6;$[23]=t8;}else{t8=$[23];}var t9;if($[24]!==t5||$[25]!==t8){t9=_jsx(VirtualizedListContextResetter,{children:_jsx(View,{style:t5,children:t8})});$[24]=t5;$[25]=t8;$[26]=t9;}else{t9=$[26];}return t9;};var createStyles=defineStyles(theme=>({shadow:{backgroundColor:theme.backgroundColor,borderRadius:theme.borderRadius},container:{backgroundColor:theme.backgroundColor,borderRadius:theme.borderRadius,overflow:"hidden",pointerEvents:"auto",maxHeight:theme.maxHeight},content:{padding:theme.padding,gap:theme.gap},hidden:{opacity:0,pointerEvents:"none"}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{c as _c}from"react/compiler-runtime";import{InteractionSurface}from"../../actions/surface";import{defineStyles,useComponent}from"../../internal";import{HighlightedText}from"../../typography/text";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var MenuItem=t0=>{var $=_c(17);var label=t0.label,description=t0.description,searchValue=t0.searchValue,highlighted=t0.highlighted,onPress=t0.onPress;var t1;if($[0]===Symbol.for("react.memo_cache_sentinel")){t1={createStyles};$[0]=t1;}else{t1=$[0];}var _useComponent=useComponent("menuItem",t1),styles=_useComponent.styles,theme=_useComponent.theme;var t2;if($[1]!==theme.textColor){t2={color:theme.textColor};$[1]=theme.textColor;$[2]=t2;}else{t2=$[2];}var t3;if($[3]!==label||$[4]!==searchValue||$[5]!==t2){t3=_jsx(HighlightedText,{text:label,highlight:searchValue,theme:t2});$[3]=label;$[4]=searchValue;$[5]=t2;$[6]=t3;}else{t3=$[6];}var t4;if($[7]!==description||$[8]!==searchValue||$[9]!==theme.textColor){t4=!!description&&_jsx(HighlightedText,{variant:"caption",text:description,highlight:searchValue,theme:{color:theme.textColor}});$[7]=description;$[8]=searchValue;$[9]=theme.textColor;$[10]=t4;}else{t4=$[10];}var t5;if($[11]!==highlighted||$[12]!==onPress||$[13]!==styles.menuItem||$[14]!==t3||$[15]!==t4){t5=_jsxs(InteractionSurface,{hitSlop:0,highlighted:highlighted,onPress:onPress,style:styles.menuItem,children:[t3,t4]});$[11]=highlighted;$[12]=onPress;$[13]=styles.menuItem;$[14]=t3;$[15]=t4;$[16]=t5;}else{t5=$[16];}return t5;};MenuItem.displayName="MenuItem";var createStyles=defineStyles(theme=>({menuItem:{paddingHorizontal:theme.paddingHorizontal,paddingVertical:theme.paddingVertical,borderRadius:theme.borderRadius}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{VirtualizedListContextResetter as NativeResetter}from"react-native/Libraries/Lists/VirtualizedListContext";export var VirtualizedListContextResetter=NativeResetter;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{VirtualizedListContextResetter as WebResetter}from"react-native-web/dist/vendor/react-native/VirtualizedList/VirtualizedListContext";export var VirtualizedListContextResetter=WebResetter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{c as _c}from"react/compiler-runtime";import{mergeIcons}from"./icons";import{createPalette}from"./palette";import{resolveTheme}from"./resolveTheme";import{createSystems}from"./systems";import{ThemeContext}from"./ThemeContext";import{jsx as _jsx}from"react/jsx-runtime";export var ThemeProvider=t0=>{var $=_c(16);var initialPalette=t0.palette,initialTheme=t0.theme,initialSystems=t0.systems,initialIcons=t0.icons,children=t0.children;var palette;var t1;var theme;if($[0]!==initialPalette||$[1]!==initialSystems||$[2]!==initialTheme){palette=createPalette(initialPalette);theme=resolveTheme(palette,initialTheme);t1=createSystems(palette,initialSystems);$[0]=initialPalette;$[1]=initialSystems;$[2]=initialTheme;$[3]=palette;$[4]=t1;$[5]=theme;}else{palette=$[3];t1=$[4];theme=$[5];}var systems=t1;var t2;if($[6]!==initialIcons){t2=mergeIcons(initialIcons);$[6]=initialIcons;$[7]=t2;}else{t2=$[7];}var icons=t2;var t3;if($[8]!==icons||$[9]!==palette||$[10]!==systems||$[11]!==theme){t3={palette,theme,systems,icons};$[8]=icons;$[9]=palette;$[10]=systems;$[11]=theme;$[12]=t3;}else{t3=$[12];}var value=t3;var t4;if($[13]!==children||$[14]!==value){t4=_jsx(ThemeContext.Provider,{value:value,children:children});$[13]=children;$[14]=value;$[15]=t4;}else{t4=$[15];}return t4;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _excluded=["children"];
|
|
1
|
+
var _excluded=["children"];function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{createContext,use}from"react";import{StyleSheet}from"react-native";import{ThemeContext}from"./ThemeContext";import{ThemeProvider}from"./ThemeProvider";import{jsx as _jsx}from"react/jsx-runtime";export var createAppTheme=createValues=>{var AppThemeContext=createContext(undefined);var useAppTheme=()=>{var appTheme=use(AppThemeContext);if(appTheme===undefined){throw new Error("useAppTheme must be used within AppThemeProvider");}return appTheme;};var defineStyles=factory=>(context,props)=>StyleSheet.create(factory(context,props));function useStyles(factory,props){var $=_c(5);var baseContext=use(ThemeContext);var appTheme=useAppTheme();var t0;if($[0]!==appTheme||$[1]!==baseContext||$[2]!==factory||$[3]!==props){t0=factory({...baseContext,appTheme},props);$[0]=appTheme;$[1]=baseContext;$[2]=factory;$[3]=props;$[4]=t0;}else{t0=$[4];}return t0;}var AppThemeLayer=t0=>{var $=_c(5);var children=t0.children;var baseContext=use(ThemeContext);var t1;if($[0]!==baseContext){t1=createValues(baseContext);$[0]=baseContext;$[1]=t1;}else{t1=$[1];}var appTheme=t1;var t2;if($[2]!==appTheme||$[3]!==children){t2=_jsx(AppThemeContext.Provider,{value:appTheme,children:children});$[2]=appTheme;$[3]=children;$[4]=t2;}else{t2=$[4];}return t2;};var AppThemeProvider=t0=>{var $=_c(8);var children;var themProviderProps;if($[0]!==t0){children=t0.children;themProviderProps=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=children;$[2]=themProviderProps;}else{children=$[1];themProviderProps=$[2];}var t1;if($[3]!==children){t1=_jsx(AppThemeLayer,{children:children});$[3]=children;$[4]=t1;}else{t1=$[4];}var t2;if($[5]!==t1||$[6]!==themProviderProps){t2=_jsx(ThemeProvider,{...themProviderProps,children:t1});$[5]=t1;$[6]=themProviderProps;$[7]=t2;}else{t2=$[7];}return t2;};return{AppThemeProvider,useAppTheme,defineStyles,useStyles};};
|
package/lib/theme/icons.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{UiIcons}from"../icons/ui";var createIcons=config=>config;export var defaultIcons=createIcons({field:{error:{iconSet:UiIcons,iconName:"exclamation"}},counterInput:{decrease:{iconSet:UiIcons,iconName:"dash"},increase:{iconSet:UiIcons,iconName:"plus"}},numberInput:{number:{iconSet:UiIcons,iconName:"infinity"},fraction:{iconSet:UiIcons,iconName:"number"},range:{iconSet:UiIcons,iconName:"arrow-both"}},selectionInput:{showOptions:{iconSet:UiIcons,iconName:"chevron-down"}},timeInput:{time:{iconSet:UiIcons,iconName:"clock"}},
|
|
1
|
+
function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{UiIcons}from"../icons/ui";var createIcons=config=>config;export var defaultIcons=createIcons({field:{error:{iconSet:UiIcons,iconName:"exclamation"}},counterInput:{decrease:{iconSet:UiIcons,iconName:"dash"},increase:{iconSet:UiIcons,iconName:"plus"}},numberInput:{number:{iconSet:UiIcons,iconName:"infinity"},fraction:{iconSet:UiIcons,iconName:"number"},range:{iconSet:UiIcons,iconName:"arrow-both"}},selectionInput:{showOptions:{iconSet:UiIcons,iconName:"chevron-down"}},timeInput:{time:{iconSet:UiIcons,iconName:"clock"}},toggleIndicator:{outline:{iconSet:UiIcons,iconName:"circle"},fill:{iconSet:UiIcons,iconName:"circle-filled"},check:{iconSet:UiIcons,iconName:"check"}},rating:{empty:{iconSet:UiIcons,iconName:"star-empty"},full:{iconSet:UiIcons,iconName:"star-full"},half:{iconSet:UiIcons,iconName:"star-half"}},ratingInput:{empty:{iconSet:UiIcons,iconName:"star-empty"},full:{iconSet:UiIcons,iconName:"star-full"},half:{iconSet:UiIcons,iconName:"star-half"}}});export var mergeIcons=overrides=>{if(!overrides)return defaultIcons;var merged={...defaultIcons};for(var _ref of Object.entries(overrides)){var _ref2=_slicedToArray(_ref,2);var category=_ref2[0];var slots=_ref2[1];if(!slots)continue;if(!Object.hasOwn(defaultIcons,category))continue;merged[category]={...(merged[category]??{}),...slots};}return merged;};
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defaultActionTheme}from"../actions/action/Action.theme";import{defaultActionBaseTheme}from"../actions/action/ActionBase.theme";import{defaultIconActionTheme}from"../actions/action/IconAction.theme";import{defaultIconActionBaseTheme}from"../actions/action/IconActionBase.theme";import{defaultButtonTheme}from"../actions/button/Button.theme";import{defaultButtonBaseTheme}from"../actions/button/ButtonBase.theme";import{defaultIconButtonTheme}from"../actions/button/IconButton.theme";import{defaultIconButtonBaseTheme}from"../actions/button/IconButtonBase.theme";import{defaultStateLayerTheme}from"../actions/surface/StateLayer.theme";import{defaultSwipeActionTheme}from"../actions/swipeAction/SwipeAction.theme";import{defaultAvatarTheme}from"../display/avatar/Avatar.theme";import{defaultBadgeTheme}from"../display/badge/Badge.theme";import{defaultContentRowTheme}from"../display/contentRow/ContentRow.theme";import{defaultListItemTheme}from"../display/listItem/ListItem.theme";import{defaultRatingTheme}from"../display/rating/Rating.theme";import{defaultTagTheme}from"../display/tag/Tag.theme";import{defaultTagIconTheme}from"../display/tag/TagIcon.theme";import{defaultToastTheme}from"../feedback/toast/Toast.theme";import{defaultFieldTheme}from"../forms/field/Field.theme";import{defaultFormContainerTheme}from"../forms/formContainer/FormContainer.theme";import{defaultFormRowTheme}from"../forms/formRow/FormRow.theme";import{defaultComboboxInputTheme}from"../forms/input/comboboxInput/ComboboxInput.theme";import{defaultRatingInputTheme}from"../forms/input/ratingInput/RatingInput.theme";import{defaultSelectionInputTheme}from"../forms/input/selectionInput/SelectionInput.theme";import{defaultToggleInputTheme}from"../forms/input/toggleInput/ToggleInput.theme";import{defaultIconTheme}from"../icons/Icon.theme";import{defaultIconBaseTheme}from"../icons/IconBase.theme";import{defaultAnchoredContainerTheme}from"../overlays/anchoredContainer/AnchoredContainer.theme";import{defaultMenuTheme}from"../overlays/menu/Menu.theme";import{defaultMenuItemTheme}from"../overlays/menu/MenuItem.theme";import{defaultHighlightedTextTheme}from"../typography/text/HighlightedText.theme";import{defaultTextTheme}from"../typography/text/Text.theme";export var definitions={text:defaultTextTheme,highlightedText:defaultHighlightedTextTheme,iconBase:defaultIconBaseTheme,icon:defaultIconTheme,action:defaultActionTheme,actionBase:defaultActionBaseTheme,iconActionBase:defaultIconActionBaseTheme,iconAction:defaultIconActionTheme,buttonBase:defaultButtonBaseTheme,button:defaultButtonTheme,iconButtonBase:defaultIconButtonBaseTheme,iconButton:defaultIconButtonTheme,stateLayer:defaultStateLayerTheme,field:defaultFieldTheme,selectionInput:defaultSelectionInputTheme,toggleInput:defaultToggleInputTheme,comboboxInput:defaultComboboxInputTheme,rating:defaultRatingTheme,ratingInput:defaultRatingInputTheme,badge:defaultBadgeTheme,tag:defaultTagTheme,tagIcon:defaultTagIconTheme,contentRow:defaultContentRowTheme,listItem:defaultListItemTheme,menu:defaultMenuTheme,menuItem:defaultMenuItemTheme,avatar:defaultAvatarTheme,toast:defaultToastTheme,swipeAction:defaultSwipeActionTheme,anchoredContainer:defaultAnchoredContainerTheme,formContainer:defaultFormContainerTheme,formRow:defaultFormRowTheme};
|
|
1
|
+
import{defaultActionTheme}from"../actions/action/Action.theme";import{defaultActionBaseTheme}from"../actions/action/ActionBase.theme";import{defaultIconActionTheme}from"../actions/action/IconAction.theme";import{defaultIconActionBaseTheme}from"../actions/action/IconActionBase.theme";import{defaultButtonTheme}from"../actions/button/Button.theme";import{defaultButtonBaseTheme}from"../actions/button/ButtonBase.theme";import{defaultIconButtonTheme}from"../actions/button/IconButton.theme";import{defaultIconButtonBaseTheme}from"../actions/button/IconButtonBase.theme";import{defaultStateLayerTheme}from"../actions/surface/StateLayer.theme";import{defaultSwipeActionTheme}from"../actions/swipeAction/SwipeAction.theme";import{defaultAvatarTheme}from"../display/avatar/Avatar.theme";import{defaultBadgeTheme}from"../display/badge/Badge.theme";import{defaultContentRowTheme}from"../display/contentRow/ContentRow.theme";import{defaultListItemTheme}from"../display/listItem/ListItem.theme";import{defaultRatingTheme}from"../display/rating/Rating.theme";import{defaultTagTheme}from"../display/tag/Tag.theme";import{defaultTagIconTheme}from"../display/tag/TagIcon.theme";import{defaultToggleIndicatorTheme}from"../display/toggleIndicator/ToggleIndicator.theme";import{defaultToastTheme}from"../feedback/toast/Toast.theme";import{defaultFieldTheme}from"../forms/field/Field.theme";import{defaultFormContainerTheme}from"../forms/formContainer/FormContainer.theme";import{defaultFormRowTheme}from"../forms/formRow/FormRow.theme";import{defaultComboboxInputTheme}from"../forms/input/comboboxInput/ComboboxInput.theme";import{defaultCounterInputTheme}from"../forms/input/counterInput/CounterInput.theme";import{defaultNumberInputTheme}from"../forms/input/numberInput/NumberInput.theme";import{defaultRatingInputTheme}from"../forms/input/ratingInput/RatingInput.theme";import{defaultSelectionInputTheme}from"../forms/input/selectionInput/SelectionInput.theme";import{defaultTextInputTheme}from"../forms/input/TextInput.theme";import{defaultTimeInputTheme}from"../forms/input/timeInput/TimeInput.theme";import{defaultToggleInputTheme}from"../forms/input/toggleInput/ToggleInput.theme";import{defaultIconTheme}from"../icons/Icon.theme";import{defaultIconBaseTheme}from"../icons/IconBase.theme";import{defaultAnchoredContainerTheme}from"../overlays/anchoredContainer/AnchoredContainer.theme";import{defaultMenuTheme}from"../overlays/menu/Menu.theme";import{defaultMenuItemTheme}from"../overlays/menu/MenuItem.theme";import{defaultHighlightedTextTheme}from"../typography/text/HighlightedText.theme";import{defaultTextTheme}from"../typography/text/Text.theme";export var definitions={text:defaultTextTheme,highlightedText:defaultHighlightedTextTheme,iconBase:defaultIconBaseTheme,icon:defaultIconTheme,action:defaultActionTheme,actionBase:defaultActionBaseTheme,iconActionBase:defaultIconActionBaseTheme,iconAction:defaultIconActionTheme,buttonBase:defaultButtonBaseTheme,button:defaultButtonTheme,iconButtonBase:defaultIconButtonBaseTheme,iconButton:defaultIconButtonTheme,stateLayer:defaultStateLayerTheme,field:defaultFieldTheme,textInput:defaultTextInputTheme,numberInput:defaultNumberInputTheme,counterInput:defaultCounterInputTheme,timeInput:defaultTimeInputTheme,selectionInput:defaultSelectionInputTheme,toggleInput:defaultToggleInputTheme,toggleIndicator:defaultToggleIndicatorTheme,comboboxInput:defaultComboboxInputTheme,rating:defaultRatingTheme,ratingInput:defaultRatingInputTheme,badge:defaultBadgeTheme,tag:defaultTagTheme,tagIcon:defaultTagIconTheme,contentRow:defaultContentRowTheme,listItem:defaultListItemTheme,menu:defaultMenuTheme,menuItem:defaultMenuItemTheme,avatar:defaultAvatarTheme,toast:defaultToastTheme,swipeAction:defaultSwipeActionTheme,anchoredContainer:defaultAnchoredContainerTheme,formContainer:defaultFormContainerTheme,formRow:defaultFormRowTheme};
|
|
@@ -4,4 +4,5 @@ export { ContentRow, type ContentRowProps } from "./contentRow";
|
|
|
4
4
|
export { ListItem, type ListItemProps } from "./listItem";
|
|
5
5
|
export { Rating, type RatingProps } from "./rating";
|
|
6
6
|
export { Tag, TagIcon, type TagProps } from "./tag";
|
|
7
|
+
export { type ToggleAppearance, ToggleIndicator, type ToggleIndicatorIcons, type ToggleIndicatorProps, } from "./toggleIndicator";
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/display/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/display/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EACH,KAAK,gBAAgB,EACrB,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC5B,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ColorValue, StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { DeepPartial } from "@reillymc/es-utils";
|
|
3
|
+
import type { ComponentIconAssets } from "../../icons/componentIconAssets";
|
|
4
|
+
import type { IconComponentProps } from "../../icons/IconComponentProps";
|
|
5
|
+
import type { SizeVariant } from "../../theme/size";
|
|
6
|
+
export type ToggleIndicatorIcons = ComponentIconAssets<"outline" | "fill" | "check">;
|
|
7
|
+
export type ToggleAppearance = "primary" | "secondary";
|
|
8
|
+
export type ToggleIndicatorTheme = {
|
|
9
|
+
surfaceSize: Record<SizeVariant, number>;
|
|
10
|
+
iconSize: Record<SizeVariant, number>;
|
|
11
|
+
color: {
|
|
12
|
+
selected: Record<ToggleAppearance, ColorValue>;
|
|
13
|
+
deselected: ColorValue;
|
|
14
|
+
icon: Record<ToggleAppearance, ColorValue>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type ToggleIndicatorProps<G extends string> = {
|
|
18
|
+
value?: boolean;
|
|
19
|
+
appearance?: ToggleAppearance;
|
|
20
|
+
variant?: SizeVariant;
|
|
21
|
+
theme?: DeepPartial<ToggleIndicatorTheme>;
|
|
22
|
+
style?: StyleProp<ViewStyle>;
|
|
23
|
+
} & Partial<IconComponentProps<G>>;
|
|
24
|
+
export declare const ToggleIndicator: <G extends string>({ value, appearance, variant, theme: themeOverrides, style, iconSet, iconName, }: ToggleIndicatorProps<G>) => import("react").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=ToggleIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleIndicator.d.ts","sourceRoot":"","sources":["../../../../src/display/toggleIndicator/ToggleIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,MAAM,oB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
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/display/toggleIndicator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,gBAAgB,EACrB,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC5B,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type FC, type ReactNode } from "react";
|
|
2
2
|
import { type StyleProp, type ViewStyle } from "react-native";
|
|
3
|
+
import type { DeepPartial } from "@reillymc/es-utils";
|
|
3
4
|
import type { ComponentIconAssets } from "../../icons/componentIconAssets";
|
|
4
|
-
import type { InputVariant } from "./Field.theme";
|
|
5
|
+
import type { FieldTheme, InputVariant } from "./Field.theme";
|
|
5
6
|
export type FieldIcons = ComponentIconAssets<"error">;
|
|
6
7
|
type FieldBaseProps = {
|
|
7
8
|
/** Help text rendered below the control. */
|
|
@@ -24,8 +25,11 @@ type FieldLabelProps = {
|
|
|
24
25
|
/** Hide the label visually while keeping it as the accessible name. */
|
|
25
26
|
hideLabel?: boolean;
|
|
26
27
|
};
|
|
27
|
-
export type FieldProps = FieldBaseProps & FieldLabelProps
|
|
28
|
-
|
|
28
|
+
export type FieldProps = FieldBaseProps & FieldLabelProps & {
|
|
29
|
+
/** Overrides Field scaffold styles. Field primitives resolve their own theme. */
|
|
30
|
+
theme?: DeepPartial<FieldTheme>;
|
|
31
|
+
};
|
|
32
|
+
export type FieldComponentProps = Omit<FieldProps, "children" | "theme">;
|
|
29
33
|
/**
|
|
30
34
|
* Standard field scaffold: label, control, help/error copy, and required marker.
|
|
31
35
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/Field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AACvD,OAAO,EAAa,KAAK,SAAS,EAAQ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G,OAAO,CAAC,CAAC;AAEzE;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAwGhC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { ColorValue } from "react-native";
|
|
1
|
+
import type { ColorValue, TextStyle } from "react-native";
|
|
2
|
+
import type { SizeVariant } from "../../theme/size";
|
|
2
3
|
import type { ThemeFactory } from "../../theme/theme";
|
|
3
|
-
export type InputVariant =
|
|
4
|
+
export type InputVariant = SizeVariant;
|
|
4
5
|
export type FieldTheme = {
|
|
5
6
|
surface: {
|
|
6
7
|
backgroundColor: ColorValue;
|
|
@@ -12,8 +13,9 @@ export type FieldTheme = {
|
|
|
12
13
|
errorBorderColor: ColorValue;
|
|
13
14
|
};
|
|
14
15
|
text: {
|
|
15
|
-
fontSize:
|
|
16
|
-
fontFamily:
|
|
16
|
+
fontSize: TextStyle["fontSize"];
|
|
17
|
+
fontFamily: TextStyle["fontFamily"];
|
|
18
|
+
fontWeight: TextStyle["fontWeight"];
|
|
17
19
|
color: ColorValue;
|
|
18
20
|
placeholderColor: ColorValue;
|
|
19
21
|
};
|
|
@@ -24,13 +26,11 @@ export type FieldTheme = {
|
|
|
24
26
|
label: {
|
|
25
27
|
gap: number;
|
|
26
28
|
};
|
|
27
|
-
row: {
|
|
28
|
-
gap: number;
|
|
29
|
-
};
|
|
30
29
|
help: {
|
|
31
30
|
gap: number;
|
|
32
31
|
color: ColorValue;
|
|
33
32
|
errorColor: ColorValue;
|
|
33
|
+
inset: number;
|
|
34
34
|
};
|
|
35
35
|
required: {
|
|
36
36
|
color: ColorValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.theme.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/Field.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Field.theme.d.ts","sourceRoot":"","sources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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldRow.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/FieldRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,KAAK,SAAS,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"FieldRow.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/FieldRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,KAAK,SAAS,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMpE,MAAM,MAAM,aAAa,GAAG;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAatC,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { type FC, type ReactNode, type Ref } from "react";
|
|
2
2
|
import { type StyleProp, View, type ViewStyle } from "react-native";
|
|
3
|
+
import type { DeepPartial } from "@reillymc/es-utils";
|
|
4
|
+
import type { FieldTheme } from "./Field.theme";
|
|
3
5
|
export type FieldSurfaceProps = {
|
|
4
6
|
onPress?: () => void;
|
|
5
7
|
children?: ReactNode;
|
|
6
8
|
style?: StyleProp<ViewStyle>;
|
|
9
|
+
theme?: DeepPartial<FieldTheme["surface"]>;
|
|
7
10
|
ref?: Ref<View>;
|
|
8
11
|
};
|
|
9
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldSurface.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/FieldSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAY,MAAM,OAAO,CAAC;AACpE,OAAO,EAEH,KAAK,SAAS,EAEd,IAAI,EACJ,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"FieldSurface.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/FieldSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAY,MAAM,OAAO,CAAC;AACpE,OAAO,EAEH,KAAK,SAAS,EAEd,IAAI,EACJ,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAItD,OAAO,KAAK,EAAE,UAAU,EAAgB,MAAM,eAAe,CAAC;AAK9D,MAAM,MAAM,iBAAiB,GAAG;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC;IAC3C,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAkE9C,CAAC"}
|
|
@@ -2,16 +2,14 @@ import type { FC, Ref } from "react";
|
|
|
2
2
|
import { TextInput, type TextInputProps } from "react-native";
|
|
3
3
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
4
4
|
import type { FieldTheme } from "./Field.theme";
|
|
5
|
-
type FieldTextInputTheme =
|
|
6
|
-
surface: Pick<FieldTheme["surface"], "padding">;
|
|
7
|
-
}>;
|
|
5
|
+
export type FieldTextInputTheme = FieldTheme["text"];
|
|
8
6
|
export type FieldTextInputProps = Omit<TextInputProps, "editable"> & {
|
|
9
7
|
/**
|
|
10
8
|
* Slot-level keyboard lock for controls that disable typing without
|
|
11
9
|
* disabling the field. Field disabled/read-only state comes from context.
|
|
12
10
|
*/
|
|
13
11
|
readOnly?: boolean;
|
|
14
|
-
theme?: FieldTextInputTheme
|
|
12
|
+
theme?: DeepPartial<FieldTextInputTheme>;
|
|
15
13
|
ref?: Ref<TextInput>;
|
|
16
14
|
};
|
|
17
15
|
/**
|
|
@@ -20,5 +18,4 @@ export type FieldTextInputProps = Omit<TextInputProps, "editable"> & {
|
|
|
20
18
|
* Should be used as the base of any textual form input elements.
|
|
21
19
|
*/
|
|
22
20
|
export declare const FieldTextInput: FC<FieldTextInputProps>;
|
|
23
|
-
export {};
|
|
24
21
|
//# sourceMappingURL=FieldTextInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldTextInput.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/FieldTextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAKtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,
|
|
1
|
+
{"version":3,"file":"FieldTextInput.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/FieldTextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAKtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,GAAG;IACjE;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;IACzC,GAAG,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA0ElD,CAAC"}
|
|
@@ -13,7 +13,7 @@ export type { FieldRowProps } from "./FieldRow";
|
|
|
13
13
|
export { FieldRow } from "./FieldRow";
|
|
14
14
|
export type { FieldSurfaceProps } from "./FieldSurface";
|
|
15
15
|
export { FieldSurface } from "./FieldSurface";
|
|
16
|
-
export type { FieldTextInputProps } from "./FieldTextInput";
|
|
16
|
+
export type { FieldTextInputProps, FieldTextInputTheme, } from "./FieldTextInput";
|
|
17
17
|
export { FieldTextInput } from "./FieldTextInput";
|
|
18
18
|
export { useFieldControlFocus } from "./useFieldControlFocus";
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,YAAY,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC9D,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,oB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,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EACR,mBAAmB,EACnB,mBAAmB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type { FieldActionProps, FieldComponentProps, FieldIconProps, FieldNumberInputProps, FieldProps, FieldRowProps, FieldSurfaceProps, FieldTextInputProps, InputVariant, } from "./field";
|
|
1
|
+
export type { FieldActionProps, FieldComponentProps, FieldIconProps, FieldNumberInputProps, FieldProps, FieldRowProps, FieldSurfaceProps, FieldTextInputProps, FieldTextInputTheme, InputVariant, } from "./field";
|
|
2
2
|
export { Field, FieldAction, FieldIcon, FieldNumberInput, FieldRow, FieldSurface, FieldTextInput, } from "./field";
|
|
3
3
|
export type { FormContainerProps } from "./formContainer";
|
|
4
4
|
export { FormContainer } from "./formContainer";
|
|
5
5
|
export type { FormRowProps } from "./formRow";
|
|
6
6
|
export { FormRow } from "./formRow";
|
|
7
|
-
export type { ComboboxInputHandle, ComboboxInputProps, ComboboxValue, CounterInputProps, FractionValue, NumberInputHandle, NumberInputPlaceholders, NumberInputProps, NumberInputValue, NumberValue, RangeValue, RatingInputProps, SelectionInputProps, TextInputProps, TimeInputHandle, TimeInputPlaceholders, TimeInputProps, TimeInputValue, ToggleInputProps, ValueItem, ValueItemComplex, ValueItemSimple, } from "./input";
|
|
7
|
+
export type { ComboboxInputHandle, ComboboxInputProps, ComboboxInputTheme, ComboboxValue, CounterInputProps, CounterInputTheme, FractionValue, NumberInputHandle, NumberInputPlaceholders, NumberInputProps, NumberInputTheme, NumberInputValue, NumberValue, RangeValue, RatingInputProps, SelectionInputProps, TextInputProps, TextInputTheme, TimeInputHandle, TimeInputPlaceholders, TimeInputProps, TimeInputTheme, TimeInputValue, ToggleInputProps, ToggleInputTheme, ValueItem, ValueItemComplex, ValueItemSimple, } from "./input";
|
|
8
8
|
export { ComboboxInput, CounterInput, NumberInput, RatingInput, SelectionInput, TextInput, TimeInput, ToggleInput, } from "./input";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/forms/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,GACf,MAAM,SAAS,CAAC;AACjB,OAAO,EACH,KAAK,EACL,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,cAAc,GACjB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EACR,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,eAAe,GAClB,MAAM,SAAS,CAAC;AACjB,OAAO,EACH,aAAa,EACb,YAAY,EACZ,WAAW,EACX,WAAW,EACX,cAAc,EACd,SAAS,EACT,SAAS,EACT,WAAW,GACd,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/forms/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,GACf,MAAM,SAAS,CAAC;AACjB,OAAO,EACH,KAAK,EACL,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,cAAc,GACjB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EACR,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,eAAe,GAClB,MAAM,SAAS,CAAC;AACjB,OAAO,EACH,aAAa,EACb,YAAY,EACZ,WAAW,EACX,WAAW,EACX,cAAc,EACd,SAAS,EACT,SAAS,EACT,WAAW,GACd,MAAM,SAAS,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { FC } from "react";
|
|
2
|
+
import type { DeepPartial } from "@reillymc/es-utils";
|
|
2
3
|
import { type FieldComponentProps, type FieldTextInputProps } from "../field";
|
|
3
|
-
|
|
4
|
+
import type { TextInputTheme } from "./TextInput.theme";
|
|
5
|
+
export type TextInputProps = FieldComponentProps & Omit<FieldTextInputProps, "style" | "theme"> & {
|
|
6
|
+
theme?: DeepPartial<TextInputTheme>;
|
|
7
|
+
};
|
|
4
8
|
/**
|
|
5
9
|
* Single-line text field.
|
|
6
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/forms/input/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/forms/input/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAEH,KAAK,mBAAmB,EAGxB,KAAK,mBAAmB,EAC3B,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAC5C,IAAI,CAAC,mBAAmB,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG;IAC3C,KAAK,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;CACvC,CAAC;AAEN;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAgCxC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ThemeFactory } from "../../theme/theme";
|
|
2
|
+
import type { FieldTextInputTheme } from "../field";
|
|
3
|
+
export type TextInputTheme = {
|
|
4
|
+
textInput: FieldTextInputTheme;
|
|
5
|
+
};
|
|
6
|
+
export declare const defaultTextInputTheme: ThemeFactory<"textInput">;
|
|
7
|
+
//# sourceMappingURL=TextInput.theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.theme.d.ts","sourceRoot":"","sources":["../../../../src/forms/input/TextInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,MAAM,cAAc,GAAG;IACzB,SAAS,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,WAAW,CAI1D,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { DeepPartial } from "@reillymc/es-utils";
|
|
1
2
|
import { type FieldComponentProps } from "../../field";
|
|
3
|
+
import type { ComboboxInputTheme } from "./ComboboxInput.theme";
|
|
2
4
|
import { type ComboboxInputBaseProps } from "./ComboboxInputBase";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export
|
|
7
|
-
export declare const ComboboxInput: <T>({ label, hideLabel, help, error, required, disabled, readOnly, variant, style, onChange, ...props }: ComboboxInputProps<T>) => import("react").JSX.Element;
|
|
5
|
+
export type ComboboxInputProps<T = string> = FieldComponentProps & Pick<ComboboxInputBaseProps<T>, "autoCapitalize" | "returnKeyType" | "returnKeyLabel" | "onBlur" | "placeholder" | "onChangeText" | "controllerRef" | "clearButtonMode" | "maxLength" | "onSubmitEditing" | "autoFocus" | "items" | "value" | "defaultValue" | "onChange" | "openOnFocus" | "allowsCustomValue" | "blurOnSelect" | "filterItems" | "minimumSearchLength" | "maxSuggestionCount" | "containerPosition" | "ref"> & {
|
|
6
|
+
theme?: DeepPartial<ComboboxInputTheme>;
|
|
7
|
+
};
|
|
8
|
+
export declare const ComboboxInput: <T>({ label, hideLabel, help, error, required, disabled, readOnly, variant, style, theme: themeOverrides, onChange, ...props }: ComboboxInputProps<T>) => import("react").JSX.Element;
|
|
8
9
|
//# sourceMappingURL=ComboboxInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxInput.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/comboboxInput/ComboboxInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ComboboxInput.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/comboboxInput/ComboboxInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAS,KAAK,mBAAmB,EAAgB,MAAM,aAAa,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAEH,KAAK,sBAAsB,EAC9B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,MAAM,IAAI,mBAAmB,GAC5D,IAAI,CACA,sBAAsB,CAAC,CAAC,CAAC,EACvB,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,cAAc,GACd,eAAe,GACf,iBAAiB,GACjB,WAAW,GACX,iBAAiB,GACjB,WAAW,GACX,OAAO,GACP,OAAO,GACP,cAAc,GACd,UAAU,GACV,aAAa,GACb,mBAAmB,GACnB,cAAc,GACd,aAAa,GACb,qBAAqB,GACrB,oBAAoB,GACpB,mBAAmB,GACnB,KAAK,CACV,GAAG;IACA,KAAK,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;CAC3C,CAAC;AAEN,eAAO,MAAM,aAAa,GAAI,CAAC,EAAG,4HAa/B,kBAAkB,CAAC,CAAC,CAAC,gCA0BvB,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import type { ThemeFactory } from "../../../theme/theme";
|
|
2
|
+
import type { FieldTextInputTheme, FieldTheme } from "../../field";
|
|
3
|
+
export interface ComboboxInputTheme {
|
|
4
|
+
panelGap: number;
|
|
5
|
+
surface: FieldTheme["surface"];
|
|
6
|
+
textInput: FieldTextInputTheme;
|
|
7
|
+
}
|
|
2
8
|
export declare const defaultComboboxInputTheme: ThemeFactory<"comboboxInput">;
|
|
3
9
|
//# sourceMappingURL=ComboboxInput.theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxInput.theme.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/comboboxInput/ComboboxInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ComboboxInput.theme.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/comboboxInput/ComboboxInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAC/B,SAAS,EAAE,mBAAmB,CAAC;CAClC;AAED,eAAO,MAAM,yBAAyB,EAAE,YAAY,CAAC,eAAe,CAOlE,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type Ref } from "react";
|
|
2
2
|
import type { TextInput as DefaultTextInput, View } from "react-native";
|
|
3
3
|
import type { AnimatedRef } from "react-native-reanimated";
|
|
4
|
+
import type { DeepPartial } from "@reillymc/es-utils";
|
|
4
5
|
import { type AnchoredContainerProps } from "../../../overlays/anchoredContainer";
|
|
5
6
|
import { type FieldTextInputProps } from "../../field";
|
|
6
7
|
import type { ValueItem } from "../valueItem";
|
|
8
|
+
import type { ComboboxInputTheme } from "./ComboboxInput.theme";
|
|
7
9
|
import { type ComboboxValue } from "./helpers";
|
|
8
10
|
export type { ComboboxValue } from "./helpers";
|
|
9
11
|
export interface ComboboxInputHandle {
|
|
@@ -67,6 +69,7 @@ export type ComboboxInputBaseProps<T = string> = Pick<FieldTextInputProps, "auto
|
|
|
67
69
|
* mount, which can clip inside scrollable or clipped parents.
|
|
68
70
|
*/
|
|
69
71
|
anchorRef?: AnimatedRef<View>;
|
|
72
|
+
theme?: DeepPartial<ComboboxInputTheme>;
|
|
70
73
|
ref?: Ref<DefaultTextInput>;
|
|
71
74
|
};
|
|
72
75
|
export declare const ComboboxInputBase: <T>(props: ComboboxInputBaseProps<T>) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxInputBase.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/comboboxInput/ComboboxInputBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAiC,MAAM,OAAO,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,IAAI,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"ComboboxInputBase.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/comboboxInput/ComboboxInputBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAiC,MAAM,OAAO,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,IAAI,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAEH,KAAK,sBAAsB,EAC9B,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAEH,KAAK,mBAAmB,EAE3B,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAA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;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,wDAAwD;IACxD,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAE7D;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,oDAAoD;IACpD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,iBAAiB,CAAC,EAAE,sBAAsB,CAAC,UAAU,CAAC,CAAC;IAEvD;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAE9B,KAAK,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;IAExC,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC/B,CAAC;AAIF,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAG,OAAO,sBAAsB,CAAC,CAAC,CAAC,gCAiIrE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { ComboboxInputProps } from "./ComboboxInput";
|
|
2
2
|
export { ComboboxInput } from "./ComboboxInput";
|
|
3
|
+
export type { ComboboxInputTheme } from "./ComboboxInput.theme";
|
|
3
4
|
export type { ComboboxInputHandle, ComboboxValue } from "./ComboboxInputBase";
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/comboboxInput/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/comboboxInput/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|