@vellira-ui/react-native 2.62.3 → 2.63.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.
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  export { Dropdown } from './components/Dropdown';
2
2
  export type { DropdownContentProps, DropdownEmptyProps, DropdownGroupProps, DropdownItemProps, DropdownLabelProps, DropdownPresentation, DropdownProps, DropdownSelectEvent, DropdownSeparatorProps, DropdownTriggerProps, } from './components/Dropdown/types';
3
- export type { ModalProps } from './components/Modal';
3
+ export type { ModalBodyProps, ModalCloseProps, ModalContentProps, ModalDescriptionProps, ModalFooterProps, ModalHeaderProps, ModalOverlayProps, ModalProps, ModalTitleProps, ModalTriggerProps, } from './components/Modal';
4
4
  export { Modal } from './components/Modal';
5
5
  export type { PopoverAnchorProps, PopoverArrowProps, PopoverCloseProps, PopoverContentProps, PopoverDescriptionProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps, } from './components/Popover';
6
6
  export { Popover } from './components/Popover';
7
- export type { RadioGroupProps } from './components/RadioGroup';
7
+ export type { RadioGroupItemProps, RadioGroupProps, } from './components/RadioGroup';
8
8
  export { RadioGroup } from './components/RadioGroup';
9
- export type { SelectOption, SelectProps, SelectRenderOptionContext, SelectRenderValueContext, } from './components/Select';
9
+ export type { SelectContentProps, SelectEmptyProps, SelectGroupProps, SelectIconSlotProps, SelectItemBadgeProps, SelectItemDescriptionProps, SelectItemIconProps, SelectItemProps, SelectLabelProps, SelectLoadingProps, SelectOption, SelectPresentation, SelectProps, SelectRenderOption, SelectRenderOptionContext, SelectRenderValue, SelectRenderValueContext, SelectSearchProps, SelectSeparatorProps, SelectTriggerSlotProps, SelectValueSlotProps, SelectVirtualConfig, } from './components/Select';
10
10
  export { Select } from './components/Select';
11
11
  export type { TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, } from './components/Tabs';
12
12
  export { Tabs } from './components/Tabs';
package/dist/index.js CHANGED
@@ -3215,7 +3215,7 @@ const createStyles$8 = (_theme) => StyleSheet.create({
3215
3215
  });
3216
3216
  //#endregion
3217
3217
  //#region src/components/RadioGroup/Root/RadioGroupRoot.tsx
3218
- const RadioGroupRoot = forwardRef(({ value, defaultValue = "", onValueChange, disabled = false, required = false, size = "md", color = "primary", orientation = "vertical", label, description, error, children, style, itemsStyle, labelStyle, descriptionStyle, errorStyle, accessibilityLabel, accessibilityHint, ...rest }, ref) => {
3218
+ const RadioGroupRoot = forwardRef(({ value, defaultValue = "", onValueChange, disabled = false, required = false, invalid = false, size = "md", color = "primary", orientation = "vertical", label, description, error, children, style, itemsStyle, labelStyle, descriptionStyle, errorStyle, accessibilityLabel, accessibilityHint, ...rest }, ref) => {
3219
3219
  const { theme } = useTheme();
3220
3220
  const styles = useThemeStyles(createStyles$8);
3221
3221
  const radioGroupSizeTokens = theme.components.radioGroup.size[size];
@@ -3224,11 +3224,12 @@ const RadioGroupRoot = forwardRef(({ value, defaultValue = "", onValueChange, di
3224
3224
  defaultValue,
3225
3225
  onChange: onValueChange
3226
3226
  });
3227
- const invalid = Boolean(error);
3227
+ const isInvalid = invalid || Boolean(error);
3228
3228
  const resolvedAccessibilityLabel = accessibilityLabel ?? (typeof label === "string" ? label : void 0);
3229
3229
  const resolvedAccessibilityHint = (accessibilityHint ?? [
3230
3230
  typeof description === "string" ? description : void 0,
3231
3231
  required ? "Required." : void 0,
3232
+ isInvalid && !error ? "Invalid." : void 0,
3232
3233
  typeof error === "string" ? error : void 0
3233
3234
  ].filter(Boolean).join(" ")) || void 0;
3234
3235
  return /* @__PURE__ */ jsx(FormField, {
@@ -3250,7 +3251,7 @@ const RadioGroupRoot = forwardRef(({ value, defaultValue = "", onValueChange, di
3250
3251
  value: selectedValue,
3251
3252
  disabled,
3252
3253
  required,
3253
- invalid,
3254
+ invalid: isInvalid,
3254
3255
  size,
3255
3256
  color,
3256
3257
  onValueChange: setSelectedValue
@@ -5757,7 +5758,7 @@ const createStyles$4 = (theme) => StyleSheet.create({
5757
5758
  });
5758
5759
  //#endregion
5759
5760
  //#region src/components/Tabs/Root/TabsRoot.tsx
5760
- const TabsRoot = ({ children, value: controlledValue, defaultValue, onValueChange, orientation = "horizontal", activationMode = "automatic", mode = "tabs", variant = "line", color = "primary", size = "md", keepMounted = false, lazyMount = false, disabled = false, style }) => {
5761
+ const TabsRoot = ({ children, value: controlledValue, defaultValue, onValueChange, orientation = "horizontal", mode = "tabs", variant = "line", color = "primary", size = "md", keepMounted = false, lazyMount = false, disabled = false, style }) => {
5761
5762
  const styles = useThemeStyles(createStyles$4);
5762
5763
  const isControlled = controlledValue !== void 0;
5763
5764
  const [version, setVersion] = useState(0);
@@ -5823,7 +5824,6 @@ const TabsRoot = ({ children, value: controlledValue, defaultValue, onValueChang
5823
5824
  setValue,
5824
5825
  mode,
5825
5826
  orientation,
5826
- activationMode,
5827
5827
  variant,
5828
5828
  color,
5829
5829
  size,
@@ -5835,7 +5835,6 @@ const TabsRoot = ({ children, value: controlledValue, defaultValue, onValueChang
5835
5835
  getTriggerLayout,
5836
5836
  registerTriggerLayout
5837
5837
  }), [
5838
- activationMode,
5839
5838
  color,
5840
5839
  disabled,
5841
5840
  keepMounted,
@@ -6578,8 +6577,9 @@ const Checkbox = forwardRef(({ label, description, icon, indeterminateIcon, chec
6578
6577
  const resolvedAccessibilityHint = [
6579
6578
  accessibilityHint,
6580
6579
  description,
6580
+ required ? "Required." : void 0,
6581
6581
  error
6582
- ].filter(Boolean).join(" ");
6582
+ ].filter((item) => Boolean(item)).join(" ");
6583
6583
  const accessibilityChecked = indeterminate ? "mixed" : isChecked;
6584
6584
  useEffect(() => {
6585
6585
  devWarning(Boolean(resolvedAccessibilityLabel), "Checkbox: an accessible label must be provided through label or accessibilityLabel.");
@@ -6873,6 +6873,13 @@ const Input = forwardRef(({ label, description, value, defaultValue, onValueChan
6873
6873
  const isInvalid = invalid || Boolean(error) || !hasOwnField && Boolean(field?.invalid);
6874
6874
  const isDisabled = disabled || !hasOwnField && Boolean(field?.disabled);
6875
6875
  const isRequired = required || !hasOwnField && Boolean(field?.required);
6876
+ const resolvedAccessibilityHint = [
6877
+ accessibilityHint,
6878
+ hasOwnField && typeof description === "string" ? description : void 0,
6879
+ isRequired ? "Required." : void 0,
6880
+ isInvalid ? "Invalid." : void 0,
6881
+ hasOwnField && typeof error === "string" ? error : void 0
6882
+ ].filter((item) => Boolean(item)).join(" ");
6876
6883
  const isReadOnly = readOnly || loading;
6877
6884
  const showLoading = loading && !isDisabled;
6878
6885
  const placeholderTextColor = isDisabled ? getDisabledPlaceholderTextColor(theme) : readOnly ? theme.components.input.readOnly.placeholder : inputState.placeholder;
@@ -6945,7 +6952,7 @@ const Input = forwardRef(({ label, description, value, defaultValue, onValueChan
6945
6952
  testID,
6946
6953
  placeholderTextColor,
6947
6954
  accessibilityLabel: accessibilityLabel ?? label,
6948
- accessibilityHint,
6955
+ accessibilityHint: resolvedAccessibilityHint || void 0,
6949
6956
  accessibilityState: {
6950
6957
  disabled: isDisabled,
6951
6958
  busy: loading
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellira-ui/react-native",
3
- "version": "2.62.3",
3
+ "version": "2.63.0",
4
4
  "description": "React Native components for Vellira Design System",
5
5
  "keywords": [
6
6
  "vellira",