@reillymc/react-native-components 0.11.10 → 0.11.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/lib/components/input/dropdownInput/DropdownInput.styles.js +1 -1
- package/lib/components/swipe/SwipeAction.styles.js +1 -1
- package/lib/components/text/HighlightedText.js +1 -1
- package/lib/hooks/useThemedStyles.js +1 -1
- package/lib/icons/componentIconAssets.js +0 -0
- package/lib/icons/componentIcons.js +1 -0
- package/lib/providers/ThemeContext.js +1 -1
- package/lib/providers/ThemeProvider.js +1 -1
- package/lib/style/createThemedStyles.js +1 -0
- package/lib/style/index.js +1 -0
- package/lib/style/styleFactory.js +1 -0
- package/lib/{theme → style}/styles.js +1 -1
- package/lib/theme/index.js +1 -1
- package/lib/theme/theme.js +1 -1
- package/lib/types/components/action/Action.d.ts +1 -7
- package/lib/types/components/action/Action.d.ts.map +1 -1
- package/lib/types/components/action/Action.styles.d.ts +9 -3
- package/lib/types/components/action/Action.styles.d.ts.map +1 -1
- package/lib/types/components/action/IconAction.d.ts +2 -15
- package/lib/types/components/action/IconAction.d.ts.map +1 -1
- package/lib/types/components/action/IconAction.styles.d.ts +17 -3
- package/lib/types/components/action/IconAction.styles.d.ts.map +1 -1
- package/lib/types/components/action/IconActionBase.d.ts +2 -11
- package/lib/types/components/action/IconActionBase.d.ts.map +1 -1
- package/lib/types/components/action/IconActionBase.styles.d.ts +13 -3
- package/lib/types/components/action/IconActionBase.styles.d.ts.map +1 -1
- package/lib/types/components/action/index.d.ts +3 -3
- package/lib/types/components/action/index.d.ts.map +1 -1
- package/lib/types/components/alert/AlertIndicator.d.ts +2 -8
- package/lib/types/components/alert/AlertIndicator.d.ts.map +1 -1
- package/lib/types/components/alert/AlertIndicator.styles.d.ts +10 -3
- package/lib/types/components/alert/AlertIndicator.styles.d.ts.map +1 -1
- package/lib/types/components/alert/index.d.ts +1 -1
- package/lib/types/components/alert/index.d.ts.map +1 -1
- package/lib/types/components/avatar/Avatar.d.ts +2 -20
- package/lib/types/components/avatar/Avatar.d.ts.map +1 -1
- package/lib/types/components/avatar/Avatar.styles.d.ts +21 -3
- package/lib/types/components/avatar/Avatar.styles.d.ts.map +1 -1
- package/lib/types/components/avatar/index.d.ts +1 -1
- package/lib/types/components/avatar/index.d.ts.map +1 -1
- package/lib/types/components/button/Button.d.ts +2 -12
- package/lib/types/components/button/Button.d.ts.map +1 -1
- package/lib/types/components/button/Button.styles.d.ts +14 -3
- package/lib/types/components/button/Button.styles.d.ts.map +1 -1
- package/lib/types/components/button/ButtonBase.d.ts +1 -12
- package/lib/types/components/button/ButtonBase.d.ts.map +1 -1
- package/lib/types/components/button/ButtonBase.styles.d.ts +14 -3
- package/lib/types/components/button/ButtonBase.styles.d.ts.map +1 -1
- package/lib/types/components/button/IconButton.d.ts +3 -12
- package/lib/types/components/button/IconButton.d.ts.map +1 -1
- package/lib/types/components/button/IconButton.styles.d.ts +14 -3
- package/lib/types/components/button/IconButton.styles.d.ts.map +1 -1
- package/lib/types/components/button/IconButtonBase.d.ts +3 -12
- package/lib/types/components/button/IconButtonBase.d.ts.map +1 -1
- package/lib/types/components/button/IconButtonBase.styles.d.ts +14 -3
- package/lib/types/components/button/IconButtonBase.styles.d.ts.map +1 -1
- package/lib/types/components/button/index.d.ts +4 -4
- package/lib/types/components/button/index.d.ts.map +1 -1
- package/lib/types/components/container/anchoredContainer/AnchoredContainer.d.ts +0 -3
- package/lib/types/components/container/anchoredContainer/AnchoredContainer.d.ts.map +1 -1
- package/lib/types/components/container/anchoredContainer/AnchoredContainer.styles.d.ts +5 -3
- package/lib/types/components/container/anchoredContainer/AnchoredContainer.styles.d.ts.map +1 -1
- package/lib/types/components/container/anchoredContainer/index.d.ts +1 -1
- package/lib/types/components/container/anchoredContainer/index.d.ts.map +1 -1
- package/lib/types/components/container/index.d.ts +1 -1
- package/lib/types/components/container/index.d.ts.map +1 -1
- package/lib/types/components/icon/Icon.d.ts +1 -6
- package/lib/types/components/icon/Icon.d.ts.map +1 -1
- package/lib/types/components/icon/Icon.styles.d.ts +8 -3
- package/lib/types/components/icon/Icon.styles.d.ts.map +1 -1
- package/lib/types/components/icon/IconBase.d.ts +1 -5
- package/lib/types/components/icon/IconBase.d.ts.map +1 -1
- package/lib/types/components/icon/IconBase.styles.d.ts +7 -3
- package/lib/types/components/icon/IconBase.styles.d.ts.map +1 -1
- package/lib/types/components/icon/IconComponentProps.d.ts +1 -1
- package/lib/types/components/icon/IconComponentProps.d.ts.map +1 -1
- package/lib/types/components/icon/InteractiveIcon.d.ts +1 -8
- package/lib/types/components/icon/InteractiveIcon.d.ts.map +1 -1
- package/lib/types/components/icon/InteractiveIcon.styles.d.ts +10 -3
- package/lib/types/components/icon/InteractiveIcon.styles.d.ts.map +1 -1
- package/lib/types/components/icon/index.d.ts +3 -3
- package/lib/types/components/icon/index.d.ts.map +1 -1
- package/lib/types/components/index.d.ts +15 -15
- package/lib/types/components/index.d.ts.map +1 -1
- package/lib/types/components/input/CounterInput.d.ts +1 -1
- package/lib/types/components/input/CounterInput.d.ts.map +1 -1
- package/lib/types/components/input/InputAction.d.ts +1 -4
- package/lib/types/components/input/InputAction.d.ts.map +1 -1
- package/lib/types/components/input/InputAction.styles.d.ts +6 -3
- package/lib/types/components/input/InputAction.styles.d.ts.map +1 -1
- package/lib/types/components/input/InputBase.d.ts +2 -17
- package/lib/types/components/input/InputBase.d.ts.map +1 -1
- package/lib/types/components/input/InputBase.styles.d.ts +19 -3
- package/lib/types/components/input/InputBase.styles.d.ts.map +1 -1
- package/lib/types/components/input/InputScaffold.d.ts +2 -11
- package/lib/types/components/input/InputScaffold.d.ts.map +1 -1
- package/lib/types/components/input/InputScaffold.styles.d.ts +12 -3
- package/lib/types/components/input/InputScaffold.styles.d.ts.map +1 -1
- package/lib/types/components/input/NumberInput.d.ts +1 -1
- package/lib/types/components/input/NumberInput.d.ts.map +1 -1
- package/lib/types/components/input/NumberInputBase.d.ts +0 -1
- package/lib/types/components/input/NumberInputBase.d.ts.map +1 -1
- package/lib/types/components/input/RatingInput.d.ts +1 -2
- package/lib/types/components/input/RatingInput.d.ts.map +1 -1
- package/lib/types/components/input/SelectionInput.d.ts +2 -13
- package/lib/types/components/input/SelectionInput.d.ts.map +1 -1
- package/lib/types/components/input/SelectionInput.styles.d.ts +14 -3
- package/lib/types/components/input/SelectionInput.styles.d.ts.map +1 -1
- package/lib/types/components/input/TextInput.d.ts +0 -1
- package/lib/types/components/input/TextInput.d.ts.map +1 -1
- package/lib/types/components/input/TimeInput.d.ts +1 -1
- package/lib/types/components/input/TimeInput.d.ts.map +1 -1
- package/lib/types/components/input/ToggleInput.d.ts +4 -19
- package/lib/types/components/input/ToggleInput.d.ts.map +1 -1
- package/lib/types/components/input/ToggleInput.styles.d.ts +19 -3
- package/lib/types/components/input/ToggleInput.styles.d.ts.map +1 -1
- package/lib/types/components/input/dropdownInput/DropdownInput.d.ts +0 -3
- package/lib/types/components/input/dropdownInput/DropdownInput.d.ts.map +1 -1
- package/lib/types/components/input/dropdownInput/DropdownInput.styles.d.ts +5 -3
- package/lib/types/components/input/dropdownInput/DropdownInput.styles.d.ts.map +1 -1
- package/lib/types/components/input/dropdownInput/index.d.ts +1 -1
- package/lib/types/components/input/dropdownInput/index.d.ts.map +1 -1
- package/lib/types/components/input/index.d.ts +8 -8
- package/lib/types/components/input/index.d.ts.map +1 -1
- package/lib/types/components/listItem/ListItem.d.ts +0 -7
- package/lib/types/components/listItem/ListItem.d.ts.map +1 -1
- package/lib/types/components/listItem/ListItem.styles.d.ts +9 -3
- package/lib/types/components/listItem/ListItem.styles.d.ts.map +1 -1
- package/lib/types/components/listItem/index.d.ts +1 -1
- package/lib/types/components/listItem/index.d.ts.map +1 -1
- package/lib/types/components/menu/Menu.d.ts +2 -9
- package/lib/types/components/menu/Menu.d.ts.map +1 -1
- package/lib/types/components/menu/Menu.styles.d.ts +11 -3
- package/lib/types/components/menu/Menu.styles.d.ts.map +1 -1
- package/lib/types/components/menu/MenuItem.d.ts +0 -5
- package/lib/types/components/menu/MenuItem.d.ts.map +1 -1
- package/lib/types/components/menu/MenuItem.styles.d.ts +7 -3
- package/lib/types/components/menu/MenuItem.styles.d.ts.map +1 -1
- package/lib/types/components/menu/index.d.ts +2 -2
- package/lib/types/components/menu/index.d.ts.map +1 -1
- package/lib/types/components/rating/Rating.d.ts +3 -9
- package/lib/types/components/rating/Rating.d.ts.map +1 -1
- package/lib/types/components/rating/Rating.styles.d.ts +11 -3
- package/lib/types/components/rating/Rating.styles.d.ts.map +1 -1
- package/lib/types/components/rating/index.d.ts +1 -1
- package/lib/types/components/rating/index.d.ts.map +1 -1
- package/lib/types/components/swipe/SwipeAction.d.ts +0 -3
- package/lib/types/components/swipe/SwipeAction.d.ts.map +1 -1
- package/lib/types/components/swipe/SwipeAction.styles.d.ts +5 -3
- package/lib/types/components/swipe/SwipeAction.styles.d.ts.map +1 -1
- package/lib/types/components/swipe/index.d.ts +1 -1
- package/lib/types/components/swipe/index.d.ts.map +1 -1
- package/lib/types/components/tag/Tag.d.ts +0 -5
- package/lib/types/components/tag/Tag.d.ts.map +1 -1
- package/lib/types/components/tag/Tag.styles.d.ts +7 -3
- package/lib/types/components/tag/Tag.styles.d.ts.map +1 -1
- package/lib/types/components/tag/index.d.ts +1 -1
- package/lib/types/components/tag/index.d.ts.map +1 -1
- package/lib/types/components/text/HighlightedText.d.ts +2 -5
- package/lib/types/components/text/HighlightedText.d.ts.map +1 -1
- package/lib/types/components/text/HighlightedText.styles.d.ts +7 -2
- package/lib/types/components/text/HighlightedText.styles.d.ts.map +1 -1
- package/lib/types/components/text/InteractiveText.d.ts +2 -7
- package/lib/types/components/text/InteractiveText.d.ts.map +1 -1
- package/lib/types/components/text/InteractiveText.styles.d.ts +9 -3
- package/lib/types/components/text/InteractiveText.styles.d.ts.map +1 -1
- package/lib/types/components/text/Text.d.ts +2 -12
- package/lib/types/components/text/Text.d.ts.map +1 -1
- package/lib/types/components/text/Text.styles.d.ts +14 -3
- package/lib/types/components/text/Text.styles.d.ts.map +1 -1
- package/lib/types/components/text/index.d.ts +3 -3
- package/lib/types/components/text/index.d.ts.map +1 -1
- package/lib/types/components/toast/Toast.d.ts +1 -8
- package/lib/types/components/toast/Toast.d.ts.map +1 -1
- package/lib/types/components/toast/Toast.styles.d.ts +10 -3
- package/lib/types/components/toast/Toast.styles.d.ts.map +1 -1
- package/lib/types/components/toast/index.d.ts +1 -1
- package/lib/types/components/toast/index.d.ts.map +1 -1
- package/lib/types/hooks/useTheme.d.ts +2 -2
- package/lib/types/hooks/useThemedStyles.d.ts +25 -23
- package/lib/types/hooks/useThemedStyles.d.ts.map +1 -1
- package/lib/types/icons/componentIconAssets.d.ts +2 -0
- package/lib/types/icons/componentIconAssets.d.ts.map +1 -0
- package/lib/types/{theme/icons.d.ts → icons/componentIcons.d.ts} +17 -18
- package/lib/types/icons/componentIcons.d.ts.map +1 -0
- package/lib/types/icons/index.d.ts +2 -0
- package/lib/types/icons/index.d.ts.map +1 -1
- package/lib/types/providers/ThemeContext.d.ts +5 -3
- package/lib/types/providers/ThemeContext.d.ts.map +1 -1
- package/lib/types/providers/ThemeProvider.d.ts +10 -5
- package/lib/types/providers/ThemeProvider.d.ts.map +1 -1
- package/lib/types/style/createThemedStyles.d.ts +5 -0
- package/lib/types/style/createThemedStyles.d.ts.map +1 -0
- package/lib/types/style/index.d.ts +4 -0
- package/lib/types/style/index.d.ts.map +1 -0
- package/lib/types/style/styleFactory.d.ts +3 -0
- package/lib/types/style/styleFactory.d.ts.map +1 -0
- package/lib/types/style/styles.d.ts +51 -0
- package/lib/types/style/styles.d.ts.map +1 -0
- package/lib/types/theme/index.d.ts +1 -3
- package/lib/types/theme/index.d.ts.map +1 -1
- package/lib/types/theme/theme.d.ts +1 -6
- package/lib/types/theme/theme.d.ts.map +1 -1
- package/package.json +5 -1
- package/lib/theme/icons.js +0 -1
- package/lib/types/theme/icons.d.ts.map +0 -1
- package/lib/types/theme/styles.d.ts +0 -58
- package/lib/types/theme/styles.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export var defaultDropdownInputStyles=
|
|
1
|
+
export var defaultDropdownInputStyles=({spacing})=>({panelGap:spacing.tiny});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export var defaultSwipeActionStyles=
|
|
1
|
+
export var defaultSwipeActionStyles=()=>({width:75});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/text/HighlightedText.tsx";var _excluded=["text","highlight","textStyles","style","variant"];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;}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{StyleSheet}from"react-native";import{useThemedStyles}from"../../hooks";import{Text}from"./Text";import{createElement as _createElement}from"react";import{jsx as _jsx}from"react/jsx-runtime";var escapeForRegex=value=>value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var splitHighlight=(text,highlight)=>{if(!highlight)return[{text,highlighted:false,offset:0}];var lowerHighlight=highlight.toLowerCase();var pattern=new RegExp(`(${escapeForRegex(highlight)})`,"gi");var parts=[];var offset=0;for(var part of text.split(pattern)){if(part==="")continue;parts.push({text:part,highlighted:part.toLowerCase()===lowerHighlight,offset});offset+=part.length;}return parts;};export var HighlightedText=t0=>{var $=_c(24);var props;var styleOverrides;var t1;var t2;var t3;var textStyles;if($[0]!==t0){t1=t0.text;t2=t0.highlight;textStyles=t0.textStyles;styleOverrides=t0.style;t3=t0.variant;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=props;$[2]=styleOverrides;$[3]=t1;$[4]=t2;$[5]=t3;$[6]=textStyles;}else{props=$[1];styleOverrides=$[2];t1=$[3];t2=$[4];t3=$[5];textStyles=$[6];}var text=t1===undefined?"":t1;var highlight=t2===undefined?"":t2;var variant=t3===undefined?"body":t3;var t4;if($[7]!==styleOverrides){t4={styles:{highlightedText:styleOverrides}};$[7]=styleOverrides;$[8]=t4;}else{t4=$[8];}var _useThemedStyles=useThemedStyles("highlightedText",createStyles,t4),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t5=_useThemedStyles2[1];var style=t5.style;var t6;if($[9]!==highlight||$[10]!==props||$[11]!==style||$[12]!==styles.textWrapper||$[13]!==text||$[14]!==textStyles||$[15]!==variant){var parts=splitHighlight(text,highlight);var t7;if($[17]!==styles.textWrapper||$[18]!==textStyles){t7=[styles.textWrapper,textStyles];$[17]=styles.textWrapper;$[18]=textStyles;$[19]=t7;}else{t7=$[19];}var t8;if($[20]!==props||$[21]!==style||$[22]!==variant){t8=part=>_createElement(Text,{...props,variant:variant,key:part.offset,style:part.highlighted&&{fontWeight:style.highlightedWeight[variant]},__self:this,__source:{fileName:_jsxFileName,lineNumber:
|
|
1
|
+
var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/text/HighlightedText.tsx";var _excluded=["text","highlight","textStyles","style","variant"];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;}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{StyleSheet}from"react-native";import{useThemedStyles}from"../../hooks";import{Text}from"./Text";import{createElement as _createElement}from"react";import{jsx as _jsx}from"react/jsx-runtime";var escapeForRegex=value=>value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var splitHighlight=(text,highlight)=>{if(!highlight)return[{text,highlighted:false,offset:0}];var lowerHighlight=highlight.toLowerCase();var pattern=new RegExp(`(${escapeForRegex(highlight)})`,"gi");var parts=[];var offset=0;for(var part of text.split(pattern)){if(part==="")continue;parts.push({text:part,highlighted:part.toLowerCase()===lowerHighlight,offset});offset+=part.length;}return parts;};export var HighlightedText=t0=>{var $=_c(24);var props;var styleOverrides;var t1;var t2;var t3;var textStyles;if($[0]!==t0){t1=t0.text;t2=t0.highlight;textStyles=t0.textStyles;styleOverrides=t0.style;t3=t0.variant;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=props;$[2]=styleOverrides;$[3]=t1;$[4]=t2;$[5]=t3;$[6]=textStyles;}else{props=$[1];styleOverrides=$[2];t1=$[3];t2=$[4];t3=$[5];textStyles=$[6];}var text=t1===undefined?"":t1;var highlight=t2===undefined?"":t2;var variant=t3===undefined?"body":t3;var t4;if($[7]!==styleOverrides){t4={styles:{highlightedText:styleOverrides}};$[7]=styleOverrides;$[8]=t4;}else{t4=$[8];}var _useThemedStyles=useThemedStyles("highlightedText",createStyles,t4),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t5=_useThemedStyles2[1];var style=t5.style;var t6;if($[9]!==highlight||$[10]!==props||$[11]!==style||$[12]!==styles.textWrapper||$[13]!==text||$[14]!==textStyles||$[15]!==variant){var parts=splitHighlight(text,highlight);var t7;if($[17]!==styles.textWrapper||$[18]!==textStyles){t7=[styles.textWrapper,textStyles];$[17]=styles.textWrapper;$[18]=textStyles;$[19]=t7;}else{t7=$[19];}var t8;if($[20]!==props||$[21]!==style||$[22]!==variant){t8=part=>_createElement(Text,{...props,variant:variant,key:part.offset,style:part.highlighted&&{fontWeight:style.highlightedWeight[variant]},__self:this,__source:{fileName:_jsxFileName,lineNumber:73,columnNumber:17}},part.text);$[20]=props;$[21]=style;$[22]=variant;$[23]=t8;}else{t8=$[23];}t6=_jsx(Text,{style:t7,children:parts.map(t8)});$[9]=highlight;$[10]=props;$[11]=style;$[12]=styles.textWrapper;$[13]=text;$[14]=textStyles;$[15]=variant;$[16]=t6;}else{t6=$[16];}return t6;};var createStyles=()=>StyleSheet.create({textWrapper:{display:"flex",flexDirection:"row"}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as _c}from"react/compiler-runtime";import{
|
|
1
|
+
import{c as _c}from"react/compiler-runtime";import{mergeStyle}from"../style/styles";import{useTheme}from"./useTheme";function hasKey(obj,key){return key in obj;}var EMPTY_OPTIONS={};var mergeStylesForComponent=(styles,name,override)=>{if(!hasKey(styles,name)){return{config:undefined,styles};}var base=styles[name];var config=mergeStyle(base,override);return{config,styles:config===base?styles:{...styles,[name]:config}};};var buildComponentResult=(styles,icons,name,config)=>{var hasStyle=hasKey(styles,name);var hasIcons=hasKey(icons,name);if(hasStyle&&hasIcons){return{style:config,icons:icons[name]};}if(hasStyle){return{style:config};}if(hasIcons){return{icons:icons[name]};}return{};};export function useThemedStyles(...t0){var $=_c(10);var args=t0;var first=args[0];var isComponent=typeof first==="string";var componentName=isComponent?first:undefined;var generator=isComponent?args[1]:first;var options=(isComponent?args[2]:args[1])??EMPTY_OPTIONS;var hasProps="props"in options;var componentProps=hasProps?options.props:undefined;var componentStyles="styles"in options?options.styles:undefined;var _useTheme=useTheme(),theme=_useTheme.theme,styles=_useTheme.styles,icons=_useTheme.icons;var name=componentName;var t1;if($[0]!==componentProps||$[1]!==componentStyles||$[2]!==generator||$[3]!==hasProps||$[4]!==icons||$[5]!==isComponent||$[6]!==name||$[7]!==styles||$[8]!==theme){var _ref=isComponent?mergeStylesForComponent(styles,name,componentStyles?.[name]):{config:undefined,styles},config=_ref.config,stylesForGenerator=_ref.styles;var generatorInput={theme,styles:stylesForGenerator,icons};var _generated=hasProps?generator(generatorInput,componentProps):generator(generatorInput);t1=isComponent?[_generated,buildComponentResult(styles,icons,name,config)]:_generated;$[0]=componentProps;$[1]=componentStyles;$[2]=generator;$[3]=hasProps;$[4]=icons;$[5]=isComponent;$[6]=name;$[7]=styles;$[8]=theme;$[9]=t1;}else{t1=$[9];}return t1;}export var useStyles=componentStyles=>{var $=_c(7);var _useTheme2=useTheme(),styles=_useTheme2.styles;var merged=styles;var overrides=componentStyles;var t0;if($[0]!==componentStyles){t0=Object.keys(componentStyles);$[0]=componentStyles;$[1]=t0;}else{t0=$[1];}var t1=t0;if($[2]!==merged||$[3]!==overrides||$[4]!==styles||$[5]!==t1){for(var key of t1){var override=overrides[key];if(override===undefined){continue;}var base=styles[key];var next=mergeStyle(base,override);if(next!==base){merged={...merged,[key]:next};}}$[2]=merged;$[3]=overrides;$[4]=styles;$[5]=t1;$[6]=merged;}else{merged=$[6];}return merged;};
|
|
File without changes
|
|
@@ -0,0 +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"./ui";export var createIcons=config=>config;export var DefaultIcons=createIcons({inputScaffold:{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"}},toggleInput:{outline:{iconSet:UiIcons,iconName:"circle"}},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;merged[category]={...merged[category],...slots};}return merged;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createContext}from"react";import{DefaultIcons}from"../
|
|
1
|
+
import{createContext}from"react";import{DefaultIcons}from"../icons/componentIcons";import{createStyles}from"../style/styles";import{DefaultTheme}from"../theme/theme";export var ThemeContext=createContext({theme:DefaultTheme,styles:createStyles(DefaultTheme),icons:DefaultIcons});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/providers/ThemeProvider.tsx";import{c as _c}from"react/compiler-runtime";import{
|
|
1
|
+
var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/providers/ThemeProvider.tsx";import{c as _c}from"react/compiler-runtime";import{MergeIcons}from"../icons/componentIcons";import{createStyles}from"../style/styles";import{MergeTheme}from"../theme/theme";import{ThemeContext}from"./ThemeContext";import{jsx as _jsx}from"react/jsx-runtime";export var ThemeProvider=t0=>{var $=_c(13);var initialTheme=t0.theme,initialStyles=t0.styles,initialIcons=t0.icons,children=t0.children;var t1;var theme;if($[0]!==initialStyles||$[1]!==initialTheme){theme=MergeTheme(initialTheme);t1=createStyles(theme,initialStyles);$[0]=initialStyles;$[1]=initialTheme;$[2]=t1;$[3]=theme;}else{t1=$[2];theme=$[3];}var styles=t1;var t2;if($[4]!==initialIcons){t2=MergeIcons(initialIcons);$[4]=initialIcons;$[5]=t2;}else{t2=$[5];}var icons=t2;var t3;if($[6]!==icons||$[7]!==styles||$[8]!==theme){t3={theme,styles,icons};$[6]=icons;$[7]=styles;$[8]=theme;$[9]=t3;}else{t3=$[9];}var value=t3;var t4;if($[10]!==children||$[11]!==value){t4=_jsx(ThemeContext.Provider,{value:value,children:children});$[10]=children;$[11]=value;$[12]=t4;}else{t4=$[12];}return t4;};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{StyleSheet}from"react-native";export var createThemedStylesFactory=()=>factory=>(context,...props)=>StyleSheet.create(factory(context,...props));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{createThemedStylesFactory}from"./createThemedStyles";export{createDefaultStyles,createStyles}from"./styles";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import merge from"lodash.merge";import{defaultActionStyles}from"../components/action/Action.styles";import{defaultIconActionStyles}from"../components/action/IconAction.styles";import{defaultIconActionBaseStyles}from"../components/action/IconActionBase.styles";import{defaultAlertIndicatorStyles}from"../components/alert/AlertIndicator.styles";import{defaultAvatarStyles}from"../components/avatar/Avatar.styles";import{defaultButtonStyles}from"../components/button/Button.styles";import{defaultButtonBaseStyles}from"../components/button/ButtonBase.styles";import{defaultIconButtonStyles}from"../components/button/IconButton.styles";import{defaultIconButtonBaseStyles}from"../components/button/IconButtonBase.styles";import{defaultAnchoredContainerStyles}from"../components/container/anchoredContainer/AnchoredContainer.styles";import{defaultIconStyles}from"../components/icon/Icon.styles";import{defaultIconBaseStyles}from"../components/icon/IconBase.styles";import{defaultInteractiveIconStyles}from"../components/icon/InteractiveIcon.styles";import{defaultDropdownInputStyles}from"../components/input/dropdownInput/DropdownInput.styles";import{defaultInputActionStyles}from"../components/input/InputAction.styles";import{defaultInputBaseStyles}from"../components/input/InputBase.styles";import{defaultInputScaffoldStyles}from"../components/input/InputScaffold.styles";import{defaultSelectionInputStyles}from"../components/input/SelectionInput.styles";import{defaultToggleInputStyles}from"../components/input/ToggleInput.styles";import{defaultListItemStyles}from"../components/listItem/ListItem.styles";import{defaultMenuStyles}from"../components/menu/Menu.styles";import{defaultMenuItemStyles}from"../components/menu/MenuItem.styles";import{defaultRatingStyles}from"../components/rating/Rating.styles";import{defaultSwipeActionStyles}from"../components/swipe/SwipeAction.styles";import{defaultTagStyles}from"../components/tag/Tag.styles";import{defaultHighlightedTextStyles}from"../components/text/HighlightedText.styles";import{defaultInteractiveTextStyles}from"../components/text/InteractiveText.styles";import{defaultTextStyles}from"../components/text/Text.styles";import{defaultToastStyles}from"../components/toast/Toast.styles";export var createDefaultStyles=theme=>({interactiveText:defaultInteractiveTextStyles(theme),highlightedText:defaultHighlightedTextStyles(),iconBase:defaultIconBaseStyles(theme),icon:defaultIconStyles(theme),interactiveIcon:defaultInteractiveIconStyles(theme),action:defaultActionStyles(theme),iconActionBase:defaultIconActionBaseStyles(theme),iconAction:defaultIconActionStyles(theme),buttonBase:defaultButtonBaseStyles(theme),button:defaultButtonStyles(theme),iconButtonBase:defaultIconButtonBaseStyles(theme),iconButton:defaultIconButtonStyles(theme),inputBase:defaultInputBaseStyles(theme),inputScaffold:defaultInputScaffoldStyles(theme),inputAction:defaultInputActionStyles(theme),selectionInput:defaultSelectionInputStyles(theme),ratingInput:null,swipeAction:defaultSwipeActionStyles(theme),anchoredContainer:defaultAnchoredContainerStyles(theme),menu:defaultMenuStyles(theme),menuItem:defaultMenuItemStyles(theme),rating:defaultRatingStyles(theme),alertIndicator:defaultAlertIndicatorStyles(theme),tag:defaultTagStyles(theme),
|
|
1
|
+
import merge from"lodash.merge";import{defaultActionStyles}from"../components/action/Action.styles";import{defaultIconActionStyles}from"../components/action/IconAction.styles";import{defaultIconActionBaseStyles}from"../components/action/IconActionBase.styles";import{defaultAlertIndicatorStyles}from"../components/alert/AlertIndicator.styles";import{defaultAvatarStyles}from"../components/avatar/Avatar.styles";import{defaultButtonStyles}from"../components/button/Button.styles";import{defaultButtonBaseStyles}from"../components/button/ButtonBase.styles";import{defaultIconButtonStyles}from"../components/button/IconButton.styles";import{defaultIconButtonBaseStyles}from"../components/button/IconButtonBase.styles";import{defaultAnchoredContainerStyles}from"../components/container/anchoredContainer/AnchoredContainer.styles";import{defaultIconStyles}from"../components/icon/Icon.styles";import{defaultIconBaseStyles}from"../components/icon/IconBase.styles";import{defaultInteractiveIconStyles}from"../components/icon/InteractiveIcon.styles";import{defaultDropdownInputStyles}from"../components/input/dropdownInput/DropdownInput.styles";import{defaultInputActionStyles}from"../components/input/InputAction.styles";import{defaultInputBaseStyles}from"../components/input/InputBase.styles";import{defaultInputScaffoldStyles}from"../components/input/InputScaffold.styles";import{defaultSelectionInputStyles}from"../components/input/SelectionInput.styles";import{defaultToggleInputStyles}from"../components/input/ToggleInput.styles";import{defaultListItemStyles}from"../components/listItem/ListItem.styles";import{defaultMenuStyles}from"../components/menu/Menu.styles";import{defaultMenuItemStyles}from"../components/menu/MenuItem.styles";import{defaultRatingStyles}from"../components/rating/Rating.styles";import{defaultSwipeActionStyles}from"../components/swipe/SwipeAction.styles";import{defaultTagStyles}from"../components/tag/Tag.styles";import{defaultHighlightedTextStyles}from"../components/text/HighlightedText.styles";import{defaultInteractiveTextStyles}from"../components/text/InteractiveText.styles";import{defaultTextStyles}from"../components/text/Text.styles";import{defaultToastStyles}from"../components/toast/Toast.styles";export var createDefaultStyles=theme=>({interactiveText:defaultInteractiveTextStyles(theme),highlightedText:defaultHighlightedTextStyles(theme),iconBase:defaultIconBaseStyles(theme),icon:defaultIconStyles(theme),interactiveIcon:defaultInteractiveIconStyles(theme),action:defaultActionStyles(theme),iconActionBase:defaultIconActionBaseStyles(theme),iconAction:defaultIconActionStyles(theme),buttonBase:defaultButtonBaseStyles(theme),button:defaultButtonStyles(theme),iconButtonBase:defaultIconButtonBaseStyles(theme),iconButton:defaultIconButtonStyles(theme),inputBase:defaultInputBaseStyles(theme),inputScaffold:defaultInputScaffoldStyles(theme),inputAction:defaultInputActionStyles(theme),selectionInput:defaultSelectionInputStyles(theme),ratingInput:null,swipeAction:defaultSwipeActionStyles(theme),anchoredContainer:defaultAnchoredContainerStyles(theme),menu:defaultMenuStyles(theme),menuItem:defaultMenuItemStyles(theme),rating:defaultRatingStyles(theme),alertIndicator:defaultAlertIndicatorStyles(theme),tag:defaultTagStyles(theme),text:defaultTextStyles(theme),dropdownInput:defaultDropdownInputStyles(theme),toggleInput:defaultToggleInputStyles(theme),listItem:defaultListItemStyles(theme),avatar:defaultAvatarStyles(theme),toast:defaultToastStyles(theme)});export var createStyles=(theme,createOverrides)=>merge({},createDefaultStyles(theme),createOverrides?.(theme));export var mergeStyle=(base,override)=>override===undefined?base:merge({},base,override);
|
package/lib/theme/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{MergeTheme}from"./theme";
|
package/lib/theme/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Platform}from"react-native";import merge from"lodash.merge";export var DefaultTheme={font:{family:{sans:Platform.select({ios:"System",android:"sans-serif",default:"system-ui"}),mono:Platform.select({ios:"Menlo",android:"monospace",default:"monospace"})},size:{tiny:10,small:12,regular:14,large:16,xLarge:20,xxLarge:28}},color:{primary:"#FF4242",primaryDark:"#ff8585",primaryLight:"#ffbdbd",secondary:"#12263A",secondaryHighlight:"#718191",secondaryDisabled:"#B5EAD7",tertiary:"#06bcc1",destructive:"#ff382e",destructiveHighlight:"#ff9e96",light:"#F4EDEA",white:"#ffffff",black:"#000000",red:"#FF9AA2",orange:"#FFDAC1",green:"#E2F0CB",blue:"#B5EAD7",purple:"#C7CEEA",textPrimary:"#12263A",textSecondary:"#22476D",textHighlight:"#30669c",textInverted:"#F4EDEA",textDisabled:"#B5EAD7",textOnPrimary:"#F4EDEA",textOnSecondary:"#F4EDEA",textOnDestructive:"#F4EDEA",background:"#F4EDEA",backgroundHighlight:"#f7f3f2",foreground:"#ffffff",foregroundHighlight:"#B5EAD7",backgroundOverlay:"#000",shadow:"#555",border:"#E2E8F0",inputBackground:"#e4d8d4",inputBackgroundDisabled:"#f0e9e2ff",inputText:"#12263A",pressOverlay:"rgba(0, 0, 0, 0.1)",alert:"#d63333",error:"#d63333",success:"#4ed633",warning:"#f5c61d"},spacing:{large:24,medium:16,small:8,tiny:4},border:{radius:{tight:4,regular:8,loose:16},width:{thick:4,regular:2,thin:1}}};export var MergeTheme=
|
|
1
|
+
import{Platform}from"react-native";import merge from"lodash.merge";export var DefaultTheme={font:{family:{sans:Platform.select({ios:"System",android:"sans-serif",default:"system-ui"}),mono:Platform.select({ios:"Menlo",android:"monospace",default:"monospace"})},size:{tiny:10,small:12,regular:14,large:16,xLarge:20,xxLarge:28}},color:{primary:"#FF4242",primaryDark:"#ff8585",primaryLight:"#ffbdbd",secondary:"#12263A",secondaryHighlight:"#718191",secondaryDisabled:"#B5EAD7",tertiary:"#06bcc1",destructive:"#ff382e",destructiveHighlight:"#ff9e96",light:"#F4EDEA",white:"#ffffff",black:"#000000",red:"#FF9AA2",orange:"#FFDAC1",green:"#E2F0CB",blue:"#B5EAD7",purple:"#C7CEEA",textPrimary:"#12263A",textSecondary:"#22476D",textHighlight:"#30669c",textInverted:"#F4EDEA",textDisabled:"#B5EAD7",textOnPrimary:"#F4EDEA",textOnSecondary:"#F4EDEA",textOnDestructive:"#F4EDEA",background:"#F4EDEA",backgroundHighlight:"#f7f3f2",foreground:"#ffffff",foregroundHighlight:"#B5EAD7",backgroundOverlay:"#000",shadow:"#555",border:"#E2E8F0",inputBackground:"#e4d8d4",inputBackgroundDisabled:"#f0e9e2ff",inputText:"#12263A",pressOverlay:"rgba(0, 0, 0, 0.1)",alert:"#d63333",error:"#d63333",success:"#4ed633",warning:"#f5c61d"},spacing:{large:24,medium:16,small:8,tiny:4},border:{radius:{tight:4,regular:8,loose:16},width:{thick:4,regular:2,thin:1}}};export var MergeTheme=overrides=>merge({},DefaultTheme,overrides??{});
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import type { FC } from "react";
|
|
2
2
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
3
|
-
import {
|
|
3
|
+
import type { ActionStyles, ActionVariant } from "./Action.styles";
|
|
4
4
|
import { type ActionBaseProps } from "./ActionBase";
|
|
5
|
-
export type ActionVariant = "primary" | "secondary" | "destructive";
|
|
6
|
-
export type ActionStyles = {
|
|
7
|
-
label: {
|
|
8
|
-
color: Record<ActionVariant, InteractiveTextStyles["color"]>;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
5
|
export interface ActionProps extends Pick<ActionBaseProps, "containerStyle" | "disabled" | "onPress"> {
|
|
12
6
|
label: string;
|
|
13
7
|
variant?: ActionVariant;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../../src/components/action/Action.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../../src/components/action/Action.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAItD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEhE,MAAM,WAAW,WACb,SAAQ,IAAI,CAAC,eAAe,EAAE,gBAAgB,GAAG,UAAU,GAAG,SAAS,CAAC;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,KAAK,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CA4BlC,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export
|
|
1
|
+
import type { StyleFactory } from "../../style/styleFactory";
|
|
2
|
+
import type { InteractiveTextStyles } from "../text/InteractiveText.styles";
|
|
3
|
+
export type ActionVariant = "primary" | "secondary" | "destructive";
|
|
4
|
+
export type ActionStyles = {
|
|
5
|
+
label: {
|
|
6
|
+
color: Record<ActionVariant, InteractiveTextStyles["color"]>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const defaultActionStyles: StyleFactory<ActionStyles>;
|
|
4
10
|
//# sourceMappingURL=Action.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/action/Action.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Action.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/action/Action.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,aAAa,CAAC;AAEpE,MAAM,MAAM,YAAY,GAAG;IACvB,KAAK,EAAE;QACH,KAAK,EAAE,MAAM,CAAC,aAAa,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC;KAChE,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,YAAY,CAoBzD,CAAC"}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
2
|
-
import type { IconComponentProps
|
|
3
|
-
import type {
|
|
2
|
+
import type { IconComponentProps } from "../icon";
|
|
3
|
+
import type { IconActionStyles, IconActionVariant } from "./IconAction.styles";
|
|
4
4
|
import { type IconActionBaseProps } from "./IconActionBase";
|
|
5
|
-
export type IconActionVariant = "primary" | "secondary" | "destructive";
|
|
6
|
-
export type IconActionStyles = {
|
|
7
|
-
text: {
|
|
8
|
-
color: {
|
|
9
|
-
[Variant in IconActionVariant]: InteractiveTextStyles["color"];
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
icon: {
|
|
13
|
-
color: {
|
|
14
|
-
[Variant in IconActionVariant]: InteractiveIconStyles["color"];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
5
|
export interface IconActionProps extends Omit<IconActionBaseProps, "style"> {
|
|
19
6
|
variant?: IconActionVariant;
|
|
20
7
|
style?: DeepPartial<IconActionStyles>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconAction.d.ts","sourceRoot":"","sources":["../../../../src/components/action/IconAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"IconAction.d.ts","sourceRoot":"","sources":["../../../../src/components/action/IconAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5E,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACvE,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,KAAK,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,EAAE,8BAI1C,eAAe,GAAG,kBAAkB,CAAC,CAAC,CAAC,gCAYzC,CAAC"}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
1
|
+
import type { StyleFactory } from "../../style/styleFactory";
|
|
2
|
+
import type { InteractiveIconStyles } from "../icon/InteractiveIcon.styles";
|
|
3
|
+
import type { InteractiveTextStyles } from "../text/InteractiveText.styles";
|
|
4
|
+
export type IconActionVariant = "primary" | "secondary" | "destructive";
|
|
5
|
+
export type IconActionStyles = {
|
|
6
|
+
text: {
|
|
7
|
+
color: {
|
|
8
|
+
[Variant in IconActionVariant]: InteractiveTextStyles["color"];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
icon: {
|
|
12
|
+
color: {
|
|
13
|
+
[Variant in IconActionVariant]: InteractiveIconStyles["color"];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const defaultIconActionStyles: StyleFactory<IconActionStyles>;
|
|
4
18
|
//# sourceMappingURL=IconAction.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconAction.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/action/IconAction.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"IconAction.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/action/IconAction.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAG5E,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,WAAW,GAAG,aAAa,CAAC;AAExE,MAAM,MAAM,gBAAgB,GAAG;IAC3B,IAAI,EAAE;QACF,KAAK,EAAE;aACF,OAAO,IAAI,iBAAiB,GAAG,qBAAqB,CAAC,OAAO,CAAC;SACjE,CAAC;KACL,CAAC;IACF,IAAI,EAAE;QACF,KAAK,EAAE;aACF,OAAO,IAAI,iBAAiB,GAAG,qBAAqB,CAAC,OAAO,CAAC;SACjE,CAAC;KACL,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,gBAAgB,CASlE,CAAC"}
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
2
|
-
import { type IconComponentProps
|
|
3
|
-
import { type InteractiveTextStyles } from "../text";
|
|
2
|
+
import { type IconComponentProps } from "../icon";
|
|
4
3
|
import type { ActionProps } from "./Action";
|
|
5
|
-
|
|
6
|
-
gap: number;
|
|
7
|
-
text: {
|
|
8
|
-
color: InteractiveTextStyles["color"];
|
|
9
|
-
};
|
|
10
|
-
icon: {
|
|
11
|
-
color: InteractiveIconStyles["color"];
|
|
12
|
-
};
|
|
13
|
-
};
|
|
4
|
+
import type { IconActionBaseStyles } from "./IconActionBase.styles";
|
|
14
5
|
export interface IconActionBaseProps extends Pick<ActionProps, "onPress" | "disabled" | "containerStyle"> {
|
|
15
6
|
label?: string;
|
|
16
7
|
iconPosition?: "start" | "end";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconActionBase.d.ts","sourceRoot":"","sources":["../../../../src/components/action/IconActionBase.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,
|
|
1
|
+
{"version":3,"file":"IconActionBase.d.ts","sourceRoot":"","sources":["../../../../src/components/action/IconActionBase.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAE,KAAK,kBAAkB,EAAmB,MAAM,SAAS,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,MAAM,WAAW,mBACb,SAAQ,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,UAAU,GAAG,gBAAgB,CAAC;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAC/B,KAAK,CAAC,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAC;CAC7C;AAED,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,EAAE,+GAQ9C,mBAAmB,GAAG,kBAAkB,CAAC,CAAC,CAAC,gCAuC7C,CAAC"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
1
|
+
import type { StyleFactory } from "../../style/styleFactory";
|
|
2
|
+
import type { InteractiveIconStyles } from "../icon/InteractiveIcon.styles";
|
|
3
|
+
import { type InteractiveTextStyles } from "../text/InteractiveText.styles";
|
|
4
|
+
export type IconActionBaseStyles = {
|
|
5
|
+
gap: number;
|
|
6
|
+
text: {
|
|
7
|
+
color: InteractiveTextStyles["color"];
|
|
8
|
+
};
|
|
9
|
+
icon: {
|
|
10
|
+
color: InteractiveIconStyles["color"];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const defaultIconActionBaseStyles: StyleFactory<IconActionBaseStyles>;
|
|
4
14
|
//# sourceMappingURL=IconActionBase.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconActionBase.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/action/IconActionBase.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"IconActionBase.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/action/IconActionBase.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAEH,KAAK,qBAAqB,EAC7B,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,oBAAoB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE;QACF,KAAK,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAC;KACzC,CAAC;IACF,IAAI,EAAE;QACF,KAAK,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAC;KACzC,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,YAAY,CAAC,oBAAoB,CAU1E,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Action, type ActionProps
|
|
1
|
+
export { Action, type ActionProps } from "./Action";
|
|
2
2
|
export { ActionBase, type ActionBaseProps } from "./ActionBase";
|
|
3
|
-
export { IconAction, type IconActionProps
|
|
4
|
-
export { IconActionBase, type IconActionBaseProps
|
|
3
|
+
export { IconAction, type IconActionProps } from "./IconAction";
|
|
4
|
+
export { IconActionBase, type IconActionBaseProps } from "./IconActionBase";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/action/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/action/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import type { FC } from "react";
|
|
2
|
-
import { type
|
|
3
|
-
|
|
4
|
-
export type AlertIndicatorStyles = {
|
|
5
|
-
size: number;
|
|
6
|
-
borderRadius: number;
|
|
7
|
-
color: Record<AlertVariant, ColorValue>;
|
|
8
|
-
backgroundColor: Record<AlertVariant, ColorValue>;
|
|
9
|
-
};
|
|
2
|
+
import { type StyleProp, type ViewStyle } from "react-native";
|
|
3
|
+
import type { AlertVariant } from "./AlertIndicator.styles";
|
|
10
4
|
export interface AlertIndicatorProps {
|
|
11
5
|
label?: string;
|
|
12
6
|
variant?: AlertVariant;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertIndicator.d.ts","sourceRoot":"","sources":["../../../../src/components/alert/AlertIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,
|
|
1
|
+
{"version":3,"file":"AlertIndicator.d.ts","sourceRoot":"","sources":["../../../../src/components/alert/AlertIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,WAAW,mBAAmB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAgBlD,CAAC"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export
|
|
1
|
+
import type { ColorValue } from "react-native";
|
|
2
|
+
import type { StyleFactory } from "../../style/styleFactory";
|
|
3
|
+
export type AlertVariant = "primary" | "secondary";
|
|
4
|
+
export type AlertIndicatorStyles = {
|
|
5
|
+
size: number;
|
|
6
|
+
borderRadius: number;
|
|
7
|
+
color: Record<AlertVariant, ColorValue>;
|
|
8
|
+
backgroundColor: Record<AlertVariant, ColorValue>;
|
|
9
|
+
};
|
|
10
|
+
export declare const defaultAlertIndicatorStyles: StyleFactory<AlertIndicatorStyles>;
|
|
4
11
|
//# sourceMappingURL=AlertIndicator.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertIndicator.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/alert/AlertIndicator.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"AlertIndicator.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/alert/AlertIndicator.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,WAAW,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IACxC,eAAe,EAAE,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;CACrD,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,YAAY,CAClD,oBAAoB,CAYtB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AlertIndicator, type AlertIndicatorProps
|
|
1
|
+
export { AlertIndicator, type AlertIndicatorProps } from "./AlertIndicator";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,24 +1,7 @@
|
|
|
1
1
|
import type { FC, ReactNode } from "react";
|
|
2
|
-
import { type
|
|
2
|
+
import { type StyleProp, type ViewStyle } from "react-native";
|
|
3
3
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
4
|
-
type AvatarSize
|
|
5
|
-
export type AvatarStyles = {
|
|
6
|
-
size: {
|
|
7
|
-
[Key in AvatarSize]: number;
|
|
8
|
-
};
|
|
9
|
-
initials: {
|
|
10
|
-
fontWeight: TextStyle["fontWeight"];
|
|
11
|
-
fontSize: Record<AvatarSize, number>;
|
|
12
|
-
};
|
|
13
|
-
label: {
|
|
14
|
-
fontWeight: TextStyle["fontWeight"];
|
|
15
|
-
fontSize: number;
|
|
16
|
-
};
|
|
17
|
-
colors: Array<{
|
|
18
|
-
background: ColorValue;
|
|
19
|
-
foreground: ColorValue;
|
|
20
|
-
}>;
|
|
21
|
-
};
|
|
4
|
+
import type { AvatarSize, AvatarStyles } from "./Avatar.styles";
|
|
22
5
|
export interface AvatarProps {
|
|
23
6
|
firstName?: string;
|
|
24
7
|
lastName?: string;
|
|
@@ -33,5 +16,4 @@ export interface AvatarProps {
|
|
|
33
16
|
containerStyle?: StyleProp<ViewStyle>;
|
|
34
17
|
}
|
|
35
18
|
export declare const Avatar: FC<AvatarProps>;
|
|
36
|
-
export {};
|
|
37
19
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAGH,KAAK,SAAS,EAGd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAItD,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAmBhE,MAAM,WAAW,WAAW;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,KAAK,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAElC,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAoClC,CAAC"}
|
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export
|
|
1
|
+
import type { ColorValue, TextStyle } from "react-native";
|
|
2
|
+
import type { StyleFactory } from "../../style/styleFactory";
|
|
3
|
+
export type AvatarSize = "small" | "regular" | "large";
|
|
4
|
+
export type AvatarStyles = {
|
|
5
|
+
size: {
|
|
6
|
+
[Key in AvatarSize]: number;
|
|
7
|
+
};
|
|
8
|
+
initials: {
|
|
9
|
+
fontWeight: TextStyle["fontWeight"];
|
|
10
|
+
fontSize: Record<AvatarSize, number>;
|
|
11
|
+
};
|
|
12
|
+
label: {
|
|
13
|
+
fontWeight: TextStyle["fontWeight"];
|
|
14
|
+
fontSize: number;
|
|
15
|
+
};
|
|
16
|
+
colors: Array<{
|
|
17
|
+
background: ColorValue;
|
|
18
|
+
foreground: ColorValue;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
export declare const defaultAvatarStyles: StyleFactory<AvatarStyles>;
|
|
4
22
|
//# sourceMappingURL=Avatar.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/Avatar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Avatar.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/Avatar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE;SAAG,GAAG,IAAI,UAAU,GAAG,MAAM;KAAE,CAAC;IACtC,QAAQ,EAAE;QACN,UAAU,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;QACpC,QAAQ,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;KACxC,CAAC;IACF,KAAK,EAAE;QACH,UAAU,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;QACpC,QAAQ,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,MAAM,EAAE,KAAK,CAAC;QAAE,UAAU,EAAE,UAAU,CAAC;QAAC,UAAU,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,YAAY,CA4BzD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Avatar, type AvatarProps
|
|
1
|
+
export { Avatar, type AvatarProps } from "./Avatar";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import type { FC } from "react";
|
|
2
2
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
3
|
-
import {
|
|
4
|
-
import { type ButtonBaseProps
|
|
3
|
+
import type { ButtonStyles, ButtonVariant } from "./Button.styles";
|
|
4
|
+
import { type ButtonBaseProps } from "./ButtonBase";
|
|
5
5
|
export type ButtonSize = "medium" | "large";
|
|
6
|
-
export type ButtonVariant = "primary" | "secondary" | "destructive";
|
|
7
|
-
export type ButtonStyles = {
|
|
8
|
-
container: {
|
|
9
|
-
borderRadius: ButtonBaseStyles["borderRadius"];
|
|
10
|
-
color: Record<ButtonVariant, ButtonBaseStyles["backgroundColor"]>;
|
|
11
|
-
};
|
|
12
|
-
label: {
|
|
13
|
-
color: Record<ButtonVariant, InteractiveTextStyles["color"]>;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
6
|
export interface ButtonProps extends Pick<ButtonBaseProps, "onPress" | "disabled" | "width" | "containerStyle"> {
|
|
17
7
|
variant?: ButtonVariant;
|
|
18
8
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAItD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEhE,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE5C,MAAM,WAAW,WACb,SAAQ,IAAI,CACR,eAAe,EACf,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,gBAAgB,CACtD;IACD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAmClC,CAAC"}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
1
|
+
import type { StyleFactory } from "../../style/styleFactory";
|
|
2
|
+
import type { InteractiveTextStyles } from "../text/InteractiveText.styles";
|
|
3
|
+
import { type ButtonBaseStyles } from "./ButtonBase.styles";
|
|
4
|
+
export type ButtonVariant = "primary" | "secondary" | "destructive";
|
|
5
|
+
export type ButtonStyles = {
|
|
6
|
+
container: {
|
|
7
|
+
borderRadius: ButtonBaseStyles["borderRadius"];
|
|
8
|
+
color: Record<ButtonVariant, ButtonBaseStyles["backgroundColor"]>;
|
|
9
|
+
};
|
|
10
|
+
label: {
|
|
11
|
+
color: Record<ButtonVariant, InteractiveTextStyles["color"]>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const defaultButtonStyles: StyleFactory<ButtonStyles>;
|
|
4
15
|
//# sourceMappingURL=Button.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Button.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EACH,KAAK,gBAAgB,EAExB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,aAAa,CAAC;AAEpE,MAAM,MAAM,YAAY,GAAG;IACvB,SAAS,EAAE;QACP,YAAY,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAC/C,KAAK,EAAE,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAC;KACrE,CAAC;IACF,KAAK,EAAE;QACH,KAAK,EAAE,MAAM,CAAC,aAAa,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC;KAChE,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,YAAY,CA6C1D,CAAC"}
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
import type { FC } from "react";
|
|
2
|
-
import { type ColorValue, type DimensionValue } from "react-native";
|
|
3
2
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
4
3
|
import { type ActionBaseProps } from "../action";
|
|
5
|
-
|
|
6
|
-
export type ButtonBaseStyles = {
|
|
7
|
-
height: DimensionValue;
|
|
8
|
-
width: {
|
|
9
|
-
medium: DimensionValue;
|
|
10
|
-
};
|
|
11
|
-
paddingHorizontal: number;
|
|
12
|
-
paddingVertical: number;
|
|
13
|
-
borderRadius: number | `${number}%`;
|
|
14
|
-
backgroundColor: Record<ButtonState, ColorValue>;
|
|
15
|
-
};
|
|
4
|
+
import type { ButtonBaseStyles } from "./ButtonBase.styles";
|
|
16
5
|
export interface ButtonBaseProps extends Pick<ActionBaseProps, "children" | "disabled" | "onPress" | "containerStyle"> {
|
|
17
6
|
width?: "auto" | "medium";
|
|
18
7
|
style?: DeepPartial<ButtonBaseStyles>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonBase.d.ts","sourceRoot":"","sources":["../../../../src/components/button/ButtonBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonBase.d.ts","sourceRoot":"","sources":["../../../../src/components/button/ButtonBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,WAAW,eACb,SAAQ,IAAI,CACR,eAAe,EACf,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,gBAAgB,CACzD;IACD,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,KAAK,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAsC1C,CAAC"}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export
|
|
1
|
+
import type { ColorValue, DimensionValue } from "react-native";
|
|
2
|
+
import type { StyleFactory } from "../../style/styleFactory";
|
|
3
|
+
export type ButtonState = "enabled" | "disabled" | "pressed";
|
|
4
|
+
export type ButtonBaseStyles = {
|
|
5
|
+
height: DimensionValue;
|
|
6
|
+
width: {
|
|
7
|
+
medium: DimensionValue;
|
|
8
|
+
};
|
|
9
|
+
paddingHorizontal: number;
|
|
10
|
+
paddingVertical: number;
|
|
11
|
+
borderRadius: number | `${number}%`;
|
|
12
|
+
backgroundColor: Record<ButtonState, ColorValue>;
|
|
13
|
+
};
|
|
14
|
+
export declare const defaultButtonBaseStyles: StyleFactory<ButtonBaseStyles>;
|
|
4
15
|
//# sourceMappingURL=ButtonBase.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonBase.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/button/ButtonBase.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ButtonBase.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/button/ButtonBase.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAE7D,MAAM,MAAM,gBAAgB,GAAG;IAC3B,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,EAAE;QACH,MAAM,EAAE,cAAc,CAAC;KAC1B,CAAC;IACF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC;IACpC,eAAe,EAAE,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;CACpD,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,gBAAgB,CAiBjE,CAAC"}
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
2
|
-
import type { IconComponentProps
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type IconButtonStyles = {
|
|
6
|
-
container: {
|
|
7
|
-
size: number;
|
|
8
|
-
backgroundColor: Record<IconButtonVariant, IconButtonBaseStyles["container"]["backgroundColor"]>;
|
|
9
|
-
};
|
|
10
|
-
icon: {
|
|
11
|
-
color: Record<IconButtonVariant, InteractiveIconStyles["color"]>;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
2
|
+
import type { IconComponentProps } from "../icon";
|
|
3
|
+
import type { IconButtonStyles, IconButtonVariant } from "./IconButton.styles";
|
|
4
|
+
import { type IconButtonBaseProps } from "./IconButtonBase";
|
|
14
5
|
export interface IconButtonProps extends Pick<IconButtonBaseProps, "onPress" | "disabled" | "containerStyle"> {
|
|
15
6
|
variant?: IconButtonVariant;
|
|
16
7
|
style?: DeepPartial<IconButtonStyles>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/button/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/button/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5E,MAAM,WAAW,eACb,SAAQ,IAAI,CACR,mBAAmB,EACnB,SAAS,GAAG,UAAU,GAAG,gBAAgB,CAC5C;IACD,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,KAAK,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,EAAE,8BAI1C,eAAe,GAAG,kBAAkB,CAAC,CAAC,CAAC,gCAoBzC,CAAC"}
|