@rehagro/ui 1.0.35 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/native.d.mts CHANGED
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
3
  import React__default from 'react';
4
4
  import { PressableProps, StyleProp, ViewStyle, TextStyle, View, TextInputProps as TextInputProps$1, TextInput as TextInput$1, ViewProps, TextProps as TextProps$1, Text as Text$1 } from 'react-native';
5
- import { B as ButtonColor, P as PresetColor } from './colors.types-7nLOoy6r.mjs';
5
+ import { B as ButtonColor, P as PresetColor } from './colors.types-Dd3I7svd.mjs';
6
6
 
7
7
  /** React Native theme — reuses the same token names as the web theme.
8
8
  * Color values are plain CSS hex strings (e.g. "#16a34a").
package/dist/native.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
3
  import React__default from 'react';
4
4
  import { PressableProps, StyleProp, ViewStyle, TextStyle, View, TextInputProps as TextInputProps$1, TextInput as TextInput$1, ViewProps, TextProps as TextProps$1, Text as Text$1 } from 'react-native';
5
- import { B as ButtonColor, P as PresetColor } from './colors.types-7nLOoy6r.js';
5
+ import { B as ButtonColor, P as PresetColor } from './colors.types-Dd3I7svd.js';
6
6
 
7
7
  /** React Native theme — reuses the same token names as the web theme.
8
8
  * Color values are plain CSS hex strings (e.g. "#16a34a").
package/dist/native.js CHANGED
@@ -110,7 +110,8 @@ var Button = react.forwardRef(function Button2({
110
110
  danger: theme.danger ?? "#dc2626",
111
111
  warning: theme.warning ?? "#d97706",
112
112
  success: theme.success ?? "#16a34a",
113
- info: theme.info ?? "#0284c7"
113
+ info: theme.info ?? "#0284c7",
114
+ neutral: theme.textMuted ?? "#6b7280"
114
115
  };
115
116
  const presetHover = {
116
117
  primary: theme.primaryHover ?? darkenColor(presetBase.primary),
@@ -118,7 +119,8 @@ var Button = react.forwardRef(function Button2({
118
119
  danger: theme.dangerHover ?? darkenColor(presetBase.danger),
119
120
  warning: theme.warning ?? darkenColor(presetBase.warning),
120
121
  success: theme.success ?? darkenColor(presetBase.success),
121
- info: theme.infoHover ?? darkenColor(presetBase.info)
122
+ info: theme.infoHover ?? darkenColor(presetBase.info),
123
+ neutral: theme.text ?? darkenColor(presetBase.neutral)
122
124
  };
123
125
  const colorBase = preset ? presetBase[color] : color;
124
126
  const colorHover = preset ? presetHover[color] : darkenColor(color);
@@ -259,7 +261,8 @@ var IconButton = react.forwardRef(function IconButton2({
259
261
  danger: { main: theme.danger ?? "#dc2626", hover: theme.dangerHover ?? darkenColor2(theme.danger ?? "#dc2626") },
260
262
  warning: { main: theme.warning ?? "#d97706", hover: darkenColor2(theme.warning ?? "#d97706") },
261
263
  success: { main: theme.success ?? "#16a34a", hover: darkenColor2(theme.success ?? "#16a34a") },
262
- info: { main: theme.info ?? "#0284c7", hover: theme.infoHover ?? darkenColor2(theme.info ?? "#0284c7") }
264
+ info: { main: theme.info ?? "#0284c7", hover: theme.infoHover ?? darkenColor2(theme.info ?? "#0284c7") },
265
+ neutral: { main: theme.textMuted ?? "#6b7280", hover: theme.text ?? darkenColor2(theme.textMuted ?? "#6b7280") }
263
266
  };
264
267
  const preset = isPresetColor2(color);
265
268
  const main = preset ? presetTokens[color].main : color;
@@ -726,7 +729,8 @@ var Tag = react.forwardRef(function Tag2({
726
729
  danger: { main: theme.danger ?? "#dc2626", hover: theme.dangerHover ?? "#b91c1c" },
727
730
  warning: { main: theme.warning ?? "#d97706", hover: theme.warning ?? "#d97706" },
728
731
  success: { main: theme.success ?? "#16a34a", hover: theme.success ?? "#16a34a" },
729
- info: { main: theme.info ?? "#0284c7", hover: theme.infoHover ?? "#0369a1" }
732
+ info: { main: theme.info ?? "#0284c7", hover: theme.infoHover ?? "#0369a1" },
733
+ neutral: { main: theme.textMuted ?? "#6b7280", hover: theme.text ?? "#374151" }
730
734
  };
731
735
  const preset = isPresetColor3(color);
732
736
  const mainColor = preset ? presetTokens[color].main : color;