fluent-styles 1.32.0 → 1.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -116,7 +116,7 @@ const StyledConfirmDialog = ({
116
116
  paddingHorizontal: 20,
117
117
  paddingVertical: 4,
118
118
  color: _theme.theme.colors.gray[1],
119
- fontSize: _theme.theme.fontSize.large,
119
+ fontSize: _theme.theme.fontSize.normal,
120
120
  fontWeight: _theme.theme.fontWeight.normal
121
121
  }, cancel)), /*#__PURE__*/_react.default.createElement(_spacer.StyledSpacer, {
122
122
  marginHorizontal: 2
@@ -129,7 +129,7 @@ const StyledConfirmDialog = ({
129
129
  paddingHorizontal: 20,
130
130
  paddingVertical: 4,
131
131
  color: _theme.theme.colors.gray[1],
132
- fontSize: _theme.theme.fontSize.large,
132
+ fontSize: _theme.theme.fontSize.normal,
133
133
  fontWeight: _theme.theme.fontWeight.normal
134
134
  }, neutral)), /*#__PURE__*/_react.default.createElement(_spacer.StyledSpacer, {
135
135
  marginHorizontal: 2
@@ -142,7 +142,7 @@ const StyledConfirmDialog = ({
142
142
  paddingHorizontal: 20,
143
143
  paddingVertical: 4,
144
144
  color: _theme.theme.colors.gray[1],
145
- fontSize: _theme.theme.fontSize.large,
145
+ fontSize: _theme.theme.fontSize.normal,
146
146
  fontWeight: _theme.theme.fontWeight.normal
147
147
  }, confirm))))));
148
148
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_stack","_text","_button","_spacer","_styled","_theme","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","Dialog","styled","Modal","base","backgroundColor","theme","colors","gray","padding","borderRadius","StyledDialog","children","animationType","transparent","visible","rest","createElement","exports","StyledConfirmDialog","row","onCancel","onConfirm","dialogProps","show","setShow","useState","title","description","cancel","onNeural","confirm","neutral","handleConfirm","handleCancel","handleNeural","YStack","flex","justifyContent","alignItems","width","paddingVertical","paddingHorizontal","StyledText","color","fontSize","normal","fontWeight","bold","StyledSpacer","marginVertical","large","XStack","StyledButton","red","borderColor","onPress","marginHorizontal","Fragment","orange","green","StyledOkDialog","ok","onOk","handleOk","cyan"],"sources":["index.jsx"],"sourcesContent":["import React, { useState } from 'react'\r\nimport { Modal } from 'react-native'\r\nimport { XStack, YStack } from '../stack'\r\nimport { StyledText } from '../text'\r\nimport { StyledButton } from '../button'\r\nimport { StyledSpacer } from '../spacer'\r\nimport { styled } from '../styled'\r\nimport { theme } from '../theme'\r\n\r\nconst Dialog = styled(Modal, {\r\n base: {\r\n backgroundColor: theme.colors.gray[100],\r\n padding: 20,\r\n borderRadius: 10\r\n }\r\n})\r\n\r\nconst StyledDialog = ({\r\n children,\r\n animationType = 'fade',\r\n transparent = true,\r\n visible = false,\r\n ...rest\r\n}) => {\r\n return (\r\n <Dialog\r\n visible={visible}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n {children}\r\n </Dialog>\r\n )\r\n}\r\n\r\nconst StyledConfirmDialog = ({\r\n visible = false,\r\n row,\r\n animationType = 'fade',\r\n onCancel,\r\n onConfirm,\r\n transparent = true,\r\n dialogProps,\r\n ...rest\r\n}) => {\r\n const [show, setShow] = useState(visible)\r\n const {\r\n title,\r\n description,\r\n cancel = 'Cancel',\r\n onNeural,\r\n confirm = 'Confirm',\r\n neutral = 'Neutral'\r\n } = rest\r\n\r\n const handleConfirm = () => {\r\n setShow(false)\r\n if (typeof onConfirm === 'function') {\r\n if (typeof row === 'object' && row !== null) {\r\n onConfirm(row)\r\n } else {\r\n onConfirm()\r\n }\r\n }\r\n }\r\n const handleCancel = () => {\r\n setShow(false)\r\n if (typeof onCancel === 'function') {\r\n onCancel()\r\n }\r\n }\r\n\r\n const handleNeural = () => {\r\n setShow(false)\r\n if (typeof onNeural === 'function') {\r\n onNeural()\r\n }\r\n }\r\n return (\r\n <Dialog\r\n visible={show}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n <YStack\r\n transparent\r\n flex={1}\r\n justifyContent='center'\r\n alignItems='center'\r\n {...dialogProps}\r\n >\r\n <YStack\r\n width={'90%'}\r\n borderRadius={8}\r\n paddingVertical={16}\r\n paddingHorizontal={16}\r\n backgroundColor={theme.colors.gray[1]}\r\n >\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {title}\r\n </StyledText>\r\n <StyledSpacer marginVertical={1} />\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {description}\r\n </StyledText>\r\n <StyledSpacer marginVertical={4} />\r\n <XStack justifyContent='flex-end' alignItems='center'>\r\n <StyledButton\r\n backgroundColor={theme.colors.red[400]}\r\n borderColor={theme.colors.red[400]}\r\n borderRadius={30}\r\n onPress={() => handleCancel()}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {cancel}\r\n </StyledText>\r\n </StyledButton>\r\n <StyledSpacer marginHorizontal={2} />\r\n {onNeural && (\r\n <>\r\n <StyledButton\r\n backgroundColor={theme.colors.orange[400]}\r\n borderColor={theme.colors.orange[400]}\r\n borderRadius={30}\r\n onPress={() => handleNeural()}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {neutral}\r\n </StyledText>\r\n </StyledButton>\r\n <StyledSpacer marginHorizontal={2} />\r\n </>\r\n )}\r\n <StyledButton\r\n backgroundColor={theme.colors.green[500]}\r\n borderColor={theme.colors.green[500]}\r\n onPress={() => handleConfirm()}\r\n borderRadius={30}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {confirm}\r\n </StyledText>\r\n </StyledButton>\r\n </XStack>\r\n </YStack>\r\n </YStack>\r\n </Dialog>\r\n )\r\n}\r\n\r\nconst StyledOkDialog = ({\r\n visible = false,\r\n animationType = 'fade',\r\n transparent = true,\r\n dialogProps,\r\n ...rest\r\n}) => {\r\n const [show, setShow] = useState(visible)\r\n const {\r\n title = \"We're sorry, something went wrong.\",\r\n description = 'Please try again later',\r\n ok = 'Ok',\r\n onOk\r\n } = rest\r\n\r\n const handleOk = () => {\r\n setShow(false)\r\n if (typeof onOk === 'function') {\r\n onOk()\r\n }\r\n }\r\n return (\r\n <Dialog\r\n visible={show}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n <YStack\r\n transparent\r\n flex={1}\r\n justifyContent='center'\r\n alignItems='center'\r\n {...dialogProps}\r\n >\r\n <YStack\r\n width={'90%'}\r\n borderRadius={8}\r\n paddingVertical={16}\r\n paddingHorizontal={16}\r\n backgroundColor={theme.colors.gray[1]}\r\n >\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {title}\r\n </StyledText>\r\n <StyledSpacer marginVertical={2} />\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {description}\r\n </StyledText>\r\n <StyledSpacer marginVertical={8} />\r\n <XStack justifyContent='flex-end' alignItems='center'>\r\n <StyledButton\r\n flex={1}\r\n backgroundColor={theme.colors.cyan[500]}\r\n borderColor={theme.colors.cyan[500]}\r\n onPress={handleOk}\r\n borderRadius={30}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={8}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {ok}\r\n </StyledText>\r\n </StyledButton>\r\n </XStack>\r\n </YStack>\r\n </YStack>\r\n </Dialog>\r\n )\r\n}\r\n\r\nexport { StyledDialog, StyledConfirmDialog, StyledOkDialog }\r\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AAAgC,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,G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C,CAAC,CAAE;IAC5BqC,QAAQ,EAAEvC,YAAK,CAACuC,QAAQ,CAACM,KAAM;IAC/BJ,UAAU,EAAEzC,YAAK,CAACyC,UAAU,CAACC;EAAK,GAEjCc,EACS,CACA,CACR,CACF,CACF,CACF,CAAC;AAEb,CAAC;AAAA5C,OAAA,CAAA2C,cAAA,GAAAA,cAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_stack","_text","_button","_spacer","_styled","_theme","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","Dialog","styled","Modal","base","backgroundColor","theme","colors","gray","padding","borderRadius","StyledDialog","children","animationType","transparent","visible","rest","createElement","exports","StyledConfirmDialog","row","onCancel","onConfirm","dialogProps","show","setShow","useState","title","description","cancel","onNeural","confirm","neutral","handleConfirm","handleCancel","handleNeural","YStack","flex","justifyContent","alignItems","width","paddingVertical","paddingHorizontal","StyledText","color","fontSize","normal","fontWeight","bold","StyledSpacer","marginVertical","large","XStack","StyledButton","red","borderColor","onPress","marginHorizontal","Fragment","orange","green","StyledOkDialog","ok","onOk","handleOk","cyan"],"sources":["index.jsx"],"sourcesContent":["import React, { useState } from 'react'\r\nimport { Modal } from 'react-native'\r\nimport { XStack, YStack } from '../stack'\r\nimport { StyledText } from '../text'\r\nimport { StyledButton } from '../button'\r\nimport { StyledSpacer } from '../spacer'\r\nimport { styled } from '../styled'\r\nimport { theme } from '../theme'\r\n\r\nconst Dialog = styled(Modal, {\r\n base: {\r\n backgroundColor: theme.colors.gray[100],\r\n padding: 20,\r\n borderRadius: 10\r\n }\r\n})\r\n\r\nconst StyledDialog = ({\r\n children,\r\n animationType = 'fade',\r\n transparent = true,\r\n visible = false,\r\n ...rest\r\n}) => {\r\n return (\r\n <Dialog\r\n visible={visible}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n {children}\r\n </Dialog>\r\n )\r\n}\r\n\r\nconst StyledConfirmDialog = ({\r\n visible = false,\r\n row,\r\n animationType = 'fade',\r\n onCancel,\r\n onConfirm,\r\n transparent = true,\r\n dialogProps,\r\n ...rest\r\n}) => {\r\n const [show, setShow] = useState(visible)\r\n const {\r\n title,\r\n description,\r\n cancel = 'Cancel',\r\n onNeural,\r\n confirm = 'Confirm',\r\n neutral = 'Neutral'\r\n } = rest\r\n\r\n const handleConfirm = () => {\r\n setShow(false)\r\n if (typeof onConfirm === 'function') {\r\n if (typeof row === 'object' && row !== null) {\r\n onConfirm(row)\r\n } else {\r\n onConfirm()\r\n }\r\n }\r\n }\r\n const handleCancel = () => {\r\n setShow(false)\r\n if (typeof onCancel === 'function') {\r\n onCancel()\r\n }\r\n }\r\n\r\n const handleNeural = () => {\r\n setShow(false)\r\n if (typeof onNeural === 'function') {\r\n onNeural()\r\n }\r\n }\r\n return (\r\n <Dialog\r\n visible={show}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n <YStack\r\n transparent\r\n flex={1}\r\n justifyContent='center'\r\n alignItems='center'\r\n {...dialogProps}\r\n >\r\n <YStack\r\n width={'90%'}\r\n borderRadius={8}\r\n paddingVertical={16}\r\n paddingHorizontal={16}\r\n backgroundColor={theme.colors.gray[1]}\r\n >\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {title}\r\n </StyledText>\r\n <StyledSpacer marginVertical={1} />\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {description}\r\n </StyledText>\r\n <StyledSpacer marginVertical={4} />\r\n <XStack justifyContent='flex-end' alignItems='center'>\r\n <StyledButton\r\n backgroundColor={theme.colors.red[400]}\r\n borderColor={theme.colors.red[400]}\r\n borderRadius={30}\r\n onPress={() => handleCancel()}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {cancel}\r\n </StyledText>\r\n </StyledButton>\r\n <StyledSpacer marginHorizontal={2} />\r\n {onNeural && (\r\n <>\r\n <StyledButton\r\n backgroundColor={theme.colors.orange[400]}\r\n borderColor={theme.colors.orange[400]}\r\n borderRadius={30}\r\n onPress={() => handleNeural()}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {neutral}\r\n </StyledText>\r\n </StyledButton>\r\n <StyledSpacer marginHorizontal={2} />\r\n </>\r\n )}\r\n <StyledButton\r\n backgroundColor={theme.colors.green[500]}\r\n borderColor={theme.colors.green[500]}\r\n onPress={() => handleConfirm()}\r\n borderRadius={30}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {confirm}\r\n </StyledText>\r\n </StyledButton>\r\n </XStack>\r\n </YStack>\r\n </YStack>\r\n </Dialog>\r\n )\r\n}\r\n\r\nconst StyledOkDialog = ({\r\n visible = false,\r\n animationType = 'fade',\r\n transparent = true,\r\n dialogProps,\r\n ...rest\r\n}) => {\r\n const [show, setShow] = useState(visible)\r\n const {\r\n title = \"We're sorry, something went wrong.\",\r\n description = 'Please try again later',\r\n ok = 'Ok',\r\n onOk\r\n } = rest\r\n\r\n const handleOk = () => {\r\n setShow(false)\r\n if (typeof onOk === 'function') {\r\n onOk()\r\n }\r\n }\r\n return (\r\n <Dialog\r\n visible={show}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n <YStack\r\n transparent\r\n flex={1}\r\n justifyContent='center'\r\n alignItems='center'\r\n {...dialogProps}\r\n >\r\n <YStack\r\n width={'90%'}\r\n borderRadius={8}\r\n paddingVertical={16}\r\n paddingHorizontal={16}\r\n backgroundColor={theme.colors.gray[1]}\r\n >\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {title}\r\n </StyledText>\r\n <StyledSpacer marginVertical={2} />\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {description}\r\n </StyledText>\r\n <StyledSpacer marginVertical={8} />\r\n <XStack justifyContent='flex-end' alignItems='center'>\r\n <StyledButton\r\n flex={1}\r\n backgroundColor={theme.colors.cyan[500]}\r\n borderColor={theme.colors.cyan[500]}\r\n onPress={handleOk}\r\n borderRadius={30}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={8}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {ok}\r\n </StyledText>\r\n </StyledButton>\r\n </XStack>\r\n </YStack>\r\n </YStack>\r\n </Dialog>\r\n )\r\n}\r\n\r\nexport { StyledDialog, StyledConfirmDialog, StyledOkDialog }\r\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AAAgC,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,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AAgB,OAAA,CAAAoC,aAAA,CAAChD,MAAA,CAAAmF,MAAM;IAACd,cAAc,EAAC,UAAU;IAACC,UAAU,EAAC;EAAQ,gBACnD1E,MAAA,CAAAgB,OAAA,CAAAoC,aAAA,CAAC9C,OAAA,CAAAkF,YAAY;IACXhB,IAAI,EAAE,CAAE;IACRhC,eAAe,EAAEC,YAAK,CAACC,MAAM,CAAC0D,IAAI,CAAC,GAAG,CAAE;IACxCV,WAAW,EAAEjD,YAAK,CAACC,MAAM,CAAC0D,IAAI,CAAC,GAAG,CAAE;IACpCT,OAAO,EAAEQ,QAAS;IAClBtD,YAAY,EAAE;EAAG,gBAEjB7C,MAAA,CAAAgB,OAAA,CAAAoC,aAAA,CAAC/C,KAAA,CAAAyE,UAAU;IACTD,iBAAiB,EAAE,EAAG;IACtBD,eAAe,EAAE,CAAE;IACnBG,KAAK,EAAEtC,YAAK,CAACC,MAAM,CAACC,IAAI,CAAC,CAAC,CAAE;IAC5BqC,QAAQ,EAAEvC,YAAK,CAACuC,QAAQ,CAACM,KAAM;IAC/BJ,UAAU,EAAEzC,YAAK,CAACyC,UAAU,CAACC;EAAK,GAEjCc,EACS,CACA,CACR,CACF,CACF,CACF,CAAC;AAEb,CAAC;AAAA5C,OAAA,CAAA2C,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -107,7 +107,7 @@ const StyledConfirmDialog = ({
107
107
  paddingHorizontal: 20,
108
108
  paddingVertical: 4,
109
109
  color: theme.colors.gray[1],
110
- fontSize: theme.fontSize.large,
110
+ fontSize: theme.fontSize.normal,
111
111
  fontWeight: theme.fontWeight.normal
112
112
  }, cancel)), /*#__PURE__*/React.createElement(StyledSpacer, {
113
113
  marginHorizontal: 2
@@ -120,7 +120,7 @@ const StyledConfirmDialog = ({
120
120
  paddingHorizontal: 20,
121
121
  paddingVertical: 4,
122
122
  color: theme.colors.gray[1],
123
- fontSize: theme.fontSize.large,
123
+ fontSize: theme.fontSize.normal,
124
124
  fontWeight: theme.fontWeight.normal
125
125
  }, neutral)), /*#__PURE__*/React.createElement(StyledSpacer, {
126
126
  marginHorizontal: 2
@@ -133,7 +133,7 @@ const StyledConfirmDialog = ({
133
133
  paddingHorizontal: 20,
134
134
  paddingVertical: 4,
135
135
  color: theme.colors.gray[1],
136
- fontSize: theme.fontSize.large,
136
+ fontSize: theme.fontSize.normal,
137
137
  fontWeight: theme.fontWeight.normal
138
138
  }, confirm))))));
139
139
  };
@@ -1 +1 @@
1
- {"version":3,"names":["React","useState","Modal","XStack","YStack","StyledText","StyledButton","StyledSpacer","styled","theme","Dialog","base","backgroundColor","colors","gray","padding","borderRadius","StyledDialog","children","animationType","transparent","visible","rest","createElement","_extends","StyledConfirmDialog","row","onCancel","onConfirm","dialogProps","show","setShow","title","description","cancel","onNeural","confirm","neutral","handleConfirm","handleCancel","handleNeural","flex","justifyContent","alignItems","width","paddingVertical","paddingHorizontal","color","fontSize","normal","fontWeight","bold","marginVertical","large","red","borderColor","onPress","marginHorizontal","Fragment","orange","green","StyledOkDialog","ok","onOk","handleOk","cyan"],"sources":["index.jsx"],"sourcesContent":["import React, { useState } from 'react'\r\nimport { Modal } from 'react-native'\r\nimport { XStack, YStack } from '../stack'\r\nimport { StyledText } from '../text'\r\nimport { StyledButton } from '../button'\r\nimport { StyledSpacer } from '../spacer'\r\nimport { styled } from '../styled'\r\nimport { theme } from '../theme'\r\n\r\nconst Dialog = styled(Modal, {\r\n base: {\r\n backgroundColor: theme.colors.gray[100],\r\n padding: 20,\r\n borderRadius: 10\r\n }\r\n})\r\n\r\nconst StyledDialog = ({\r\n children,\r\n animationType = 'fade',\r\n transparent = true,\r\n visible = false,\r\n ...rest\r\n}) => {\r\n return (\r\n <Dialog\r\n visible={visible}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n {children}\r\n </Dialog>\r\n )\r\n}\r\n\r\nconst StyledConfirmDialog = ({\r\n visible = false,\r\n row,\r\n animationType = 'fade',\r\n onCancel,\r\n onConfirm,\r\n transparent = true,\r\n dialogProps,\r\n ...rest\r\n}) => {\r\n const [show, setShow] = useState(visible)\r\n const {\r\n title,\r\n description,\r\n cancel = 'Cancel',\r\n onNeural,\r\n confirm = 'Confirm',\r\n neutral = 'Neutral'\r\n } = rest\r\n\r\n const handleConfirm = () => {\r\n setShow(false)\r\n if (typeof onConfirm === 'function') {\r\n if (typeof row === 'object' && row !== null) {\r\n onConfirm(row)\r\n } else {\r\n onConfirm()\r\n }\r\n }\r\n }\r\n const handleCancel = () => {\r\n setShow(false)\r\n if (typeof onCancel === 'function') {\r\n onCancel()\r\n }\r\n }\r\n\r\n const handleNeural = () => {\r\n setShow(false)\r\n if (typeof onNeural === 'function') {\r\n onNeural()\r\n }\r\n }\r\n return (\r\n <Dialog\r\n visible={show}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n <YStack\r\n transparent\r\n flex={1}\r\n justifyContent='center'\r\n alignItems='center'\r\n {...dialogProps}\r\n >\r\n <YStack\r\n width={'90%'}\r\n borderRadius={8}\r\n paddingVertical={16}\r\n paddingHorizontal={16}\r\n backgroundColor={theme.colors.gray[1]}\r\n >\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {title}\r\n </StyledText>\r\n <StyledSpacer marginVertical={1} />\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {description}\r\n </StyledText>\r\n <StyledSpacer marginVertical={4} />\r\n <XStack justifyContent='flex-end' alignItems='center'>\r\n <StyledButton\r\n backgroundColor={theme.colors.red[400]}\r\n borderColor={theme.colors.red[400]}\r\n borderRadius={30}\r\n onPress={() => handleCancel()}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {cancel}\r\n </StyledText>\r\n </StyledButton>\r\n <StyledSpacer marginHorizontal={2} />\r\n {onNeural && (\r\n <>\r\n <StyledButton\r\n backgroundColor={theme.colors.orange[400]}\r\n borderColor={theme.colors.orange[400]}\r\n borderRadius={30}\r\n onPress={() => handleNeural()}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {neutral}\r\n </StyledText>\r\n </StyledButton>\r\n <StyledSpacer marginHorizontal={2} />\r\n </>\r\n )}\r\n <StyledButton\r\n backgroundColor={theme.colors.green[500]}\r\n borderColor={theme.colors.green[500]}\r\n onPress={() => handleConfirm()}\r\n borderRadius={30}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {confirm}\r\n </StyledText>\r\n </StyledButton>\r\n </XStack>\r\n </YStack>\r\n </YStack>\r\n </Dialog>\r\n )\r\n}\r\n\r\nconst StyledOkDialog = ({\r\n visible = false,\r\n animationType = 'fade',\r\n transparent = true,\r\n dialogProps,\r\n ...rest\r\n}) => {\r\n const [show, setShow] = useState(visible)\r\n const {\r\n title = \"We're sorry, something went wrong.\",\r\n description = 'Please try again later',\r\n ok = 'Ok',\r\n onOk\r\n } = rest\r\n\r\n const handleOk = () => {\r\n setShow(false)\r\n if (typeof onOk === 'function') {\r\n onOk()\r\n }\r\n }\r\n return (\r\n <Dialog\r\n visible={show}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n <YStack\r\n transparent\r\n flex={1}\r\n justifyContent='center'\r\n alignItems='center'\r\n {...dialogProps}\r\n >\r\n <YStack\r\n width={'90%'}\r\n borderRadius={8}\r\n paddingVertical={16}\r\n paddingHorizontal={16}\r\n backgroundColor={theme.colors.gray[1]}\r\n >\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {title}\r\n </StyledText>\r\n <StyledSpacer marginVertical={2} />\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {description}\r\n </StyledText>\r\n <StyledSpacer marginVertical={8} />\r\n <XStack justifyContent='flex-end' alignItems='center'>\r\n <StyledButton\r\n flex={1}\r\n backgroundColor={theme.colors.cyan[500]}\r\n borderColor={theme.colors.cyan[500]}\r\n onPress={handleOk}\r\n borderRadius={30}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={8}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {ok}\r\n </StyledText>\r\n </StyledButton>\r\n </XStack>\r\n </YStack>\r\n </YStack>\r\n </Dialog>\r\n )\r\n}\r\n\r\nexport { StyledDialog, StyledConfirmDialog, StyledOkDialog }\r\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,KAAK,QAAQ,cAAc;AACpC,SAASC,MAAM,EAAEC,MAAM,QAAQ,UAAU;AACzC,SAASC,UAAU,QAAQ,SAAS;AACpC,SAASC,YAAY,QAAQ,WAAW;AACxC,SAASC,YAAY,QAAQ,WAAW;AACxC,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,KAAK,QAAQ,UAAU;AAEhC,MAAMC,MAAM,GAAGF,MAAM,CAACN,KAAK,EAAE;EAC3BS,IAAI,EAAE;IACJC,eAAe,EAAEH,KAAK,CAACI,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;IACvCC,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC;AAEF,MAAMC,YAAY,GAAGA,CAAC;EACpBC,QAAQ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A,CAAChB,YAAY;IAAC6C,cAAc,EAAE;EAAE,CAAE,CAAC,eACnCpD,KAAA,CAAAuB,aAAA,CAACpB,MAAM;IAACuC,cAAc,EAAC,UAAU;IAACC,UAAU,EAAC;EAAQ,gBACnD3C,KAAA,CAAAuB,aAAA,CAACjB,YAAY;IACXmC,IAAI,EAAE,CAAE;IACR7B,eAAe,EAAEH,KAAK,CAACI,MAAM,CAACoD,IAAI,CAAC,GAAG,CAAE;IACxCV,WAAW,EAAE9C,KAAK,CAACI,MAAM,CAACoD,IAAI,CAAC,GAAG,CAAE;IACpCT,OAAO,EAAEQ,QAAS;IAClBhD,YAAY,EAAE;EAAG,gBAEjBhB,KAAA,CAAAuB,aAAA,CAAClB,UAAU;IACTyC,iBAAiB,EAAE,EAAG;IACtBD,eAAe,EAAE,CAAE;IACnBE,KAAK,EAAEtC,KAAK,CAACI,MAAM,CAACC,IAAI,CAAC,CAAC,CAAE;IAC5BkC,QAAQ,EAAEvC,KAAK,CAACuC,QAAQ,CAACK,KAAM;IAC/BH,UAAU,EAAEzC,KAAK,CAACyC,UAAU,CAACC;EAAK,GAEjCW,EACS,CACA,CACR,CACF,CACF,CACF,CAAC;AAEb,CAAC;AAED,SAAS7C,YAAY,EAAEQ,mBAAmB,EAAEoC,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["React","useState","Modal","XStack","YStack","StyledText","StyledButton","StyledSpacer","styled","theme","Dialog","base","backgroundColor","colors","gray","padding","borderRadius","StyledDialog","children","animationType","transparent","visible","rest","createElement","_extends","StyledConfirmDialog","row","onCancel","onConfirm","dialogProps","show","setShow","title","description","cancel","onNeural","confirm","neutral","handleConfirm","handleCancel","handleNeural","flex","justifyContent","alignItems","width","paddingVertical","paddingHorizontal","color","fontSize","normal","fontWeight","bold","marginVertical","large","red","borderColor","onPress","marginHorizontal","Fragment","orange","green","StyledOkDialog","ok","onOk","handleOk","cyan"],"sources":["index.jsx"],"sourcesContent":["import React, { useState } from 'react'\r\nimport { Modal } from 'react-native'\r\nimport { XStack, YStack } from '../stack'\r\nimport { StyledText } from '../text'\r\nimport { StyledButton } from '../button'\r\nimport { StyledSpacer } from '../spacer'\r\nimport { styled } from '../styled'\r\nimport { theme } from '../theme'\r\n\r\nconst Dialog = styled(Modal, {\r\n base: {\r\n backgroundColor: theme.colors.gray[100],\r\n padding: 20,\r\n borderRadius: 10\r\n }\r\n})\r\n\r\nconst StyledDialog = ({\r\n children,\r\n animationType = 'fade',\r\n transparent = true,\r\n visible = false,\r\n ...rest\r\n}) => {\r\n return (\r\n <Dialog\r\n visible={visible}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n {children}\r\n </Dialog>\r\n )\r\n}\r\n\r\nconst StyledConfirmDialog = ({\r\n visible = false,\r\n row,\r\n animationType = 'fade',\r\n onCancel,\r\n onConfirm,\r\n transparent = true,\r\n dialogProps,\r\n ...rest\r\n}) => {\r\n const [show, setShow] = useState(visible)\r\n const {\r\n title,\r\n description,\r\n cancel = 'Cancel',\r\n onNeural,\r\n confirm = 'Confirm',\r\n neutral = 'Neutral'\r\n } = rest\r\n\r\n const handleConfirm = () => {\r\n setShow(false)\r\n if (typeof onConfirm === 'function') {\r\n if (typeof row === 'object' && row !== null) {\r\n onConfirm(row)\r\n } else {\r\n onConfirm()\r\n }\r\n }\r\n }\r\n const handleCancel = () => {\r\n setShow(false)\r\n if (typeof onCancel === 'function') {\r\n onCancel()\r\n }\r\n }\r\n\r\n const handleNeural = () => {\r\n setShow(false)\r\n if (typeof onNeural === 'function') {\r\n onNeural()\r\n }\r\n }\r\n return (\r\n <Dialog\r\n visible={show}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n <YStack\r\n transparent\r\n flex={1}\r\n justifyContent='center'\r\n alignItems='center'\r\n {...dialogProps}\r\n >\r\n <YStack\r\n width={'90%'}\r\n borderRadius={8}\r\n paddingVertical={16}\r\n paddingHorizontal={16}\r\n backgroundColor={theme.colors.gray[1]}\r\n >\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {title}\r\n </StyledText>\r\n <StyledSpacer marginVertical={1} />\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {description}\r\n </StyledText>\r\n <StyledSpacer marginVertical={4} />\r\n <XStack justifyContent='flex-end' alignItems='center'>\r\n <StyledButton\r\n backgroundColor={theme.colors.red[400]}\r\n borderColor={theme.colors.red[400]}\r\n borderRadius={30}\r\n onPress={() => handleCancel()}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {cancel}\r\n </StyledText>\r\n </StyledButton>\r\n <StyledSpacer marginHorizontal={2} />\r\n {onNeural && (\r\n <>\r\n <StyledButton\r\n backgroundColor={theme.colors.orange[400]}\r\n borderColor={theme.colors.orange[400]}\r\n borderRadius={30}\r\n onPress={() => handleNeural()}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {neutral}\r\n </StyledText>\r\n </StyledButton>\r\n <StyledSpacer marginHorizontal={2} />\r\n </>\r\n )}\r\n <StyledButton\r\n backgroundColor={theme.colors.green[500]}\r\n borderColor={theme.colors.green[500]}\r\n onPress={() => handleConfirm()}\r\n borderRadius={30}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {confirm}\r\n </StyledText>\r\n </StyledButton>\r\n </XStack>\r\n </YStack>\r\n </YStack>\r\n </Dialog>\r\n )\r\n}\r\n\r\nconst StyledOkDialog = ({\r\n visible = false,\r\n animationType = 'fade',\r\n transparent = true,\r\n dialogProps,\r\n ...rest\r\n}) => {\r\n const [show, setShow] = useState(visible)\r\n const {\r\n title = \"We're sorry, something went wrong.\",\r\n description = 'Please try again later',\r\n ok = 'Ok',\r\n onOk\r\n } = rest\r\n\r\n const handleOk = () => {\r\n setShow(false)\r\n if (typeof onOk === 'function') {\r\n onOk()\r\n }\r\n }\r\n return (\r\n <Dialog\r\n visible={show}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n <YStack\r\n transparent\r\n flex={1}\r\n justifyContent='center'\r\n alignItems='center'\r\n {...dialogProps}\r\n >\r\n <YStack\r\n width={'90%'}\r\n borderRadius={8}\r\n paddingVertical={16}\r\n paddingHorizontal={16}\r\n backgroundColor={theme.colors.gray[1]}\r\n >\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {title}\r\n </StyledText>\r\n <StyledSpacer marginVertical={2} />\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {description}\r\n </StyledText>\r\n <StyledSpacer marginVertical={8} />\r\n <XStack justifyContent='flex-end' alignItems='center'>\r\n <StyledButton\r\n flex={1}\r\n backgroundColor={theme.colors.cyan[500]}\r\n borderColor={theme.colors.cyan[500]}\r\n onPress={handleOk}\r\n borderRadius={30}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={8}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {ok}\r\n </StyledText>\r\n </StyledButton>\r\n </XStack>\r\n </YStack>\r\n </YStack>\r\n </Dialog>\r\n )\r\n}\r\n\r\nexport { StyledDialog, StyledConfirmDialog, StyledOkDialog }\r\n"],"mappings":";AAAA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R,CACF,CACF,CACF,CAAC;AAEb,CAAC;AAED,SAAS7C,YAAY,EAAEQ,mBAAmB,EAAEoC,cAAc","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluent-styles",
3
- "version": "1.32.0",
3
+ "version": "1.33.0",
4
4
  "description": "Develop different styled versions of UI components.",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -125,7 +125,7 @@ const StyledConfirmDialog = ({
125
125
  paddingHorizontal={20}
126
126
  paddingVertical={4}
127
127
  color={theme.colors.gray[1]}
128
- fontSize={theme.fontSize.large}
128
+ fontSize={theme.fontSize.normal}
129
129
  fontWeight={theme.fontWeight.normal}
130
130
  >
131
131
  {cancel}
@@ -144,7 +144,7 @@ const StyledConfirmDialog = ({
144
144
  paddingHorizontal={20}
145
145
  paddingVertical={4}
146
146
  color={theme.colors.gray[1]}
147
- fontSize={theme.fontSize.large}
147
+ fontSize={theme.fontSize.normal}
148
148
  fontWeight={theme.fontWeight.normal}
149
149
  >
150
150
  {neutral}
@@ -163,7 +163,7 @@ const StyledConfirmDialog = ({
163
163
  paddingHorizontal={20}
164
164
  paddingVertical={4}
165
165
  color={theme.colors.gray[1]}
166
- fontSize={theme.fontSize.large}
166
+ fontSize={theme.fontSize.normal}
167
167
  fontWeight={theme.fontWeight.normal}
168
168
  >
169
169
  {confirm}