@viraui/react 0.0.12 → 0.0.14

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.
Files changed (90) hide show
  1. package/dist/components/avatar/avatar.d.ts +1 -1
  2. package/dist/components/avatar/avatar.js +2 -2
  3. package/dist/components/avatar/index.d.ts +2 -2
  4. package/dist/components/avatar/index.js +1 -1
  5. package/dist/components/basic-input/field-helper-copy.js +1 -1
  6. package/dist/components/basic-input/index.d.ts +2 -2
  7. package/dist/components/basic-input/index.js +1 -1
  8. package/dist/components/basic-input/input-control-group.js +1 -1
  9. package/dist/components/button/button.d.ts +1 -1
  10. package/dist/components/button/button.js +2 -2
  11. package/dist/components/button/index.d.ts +2 -2
  12. package/dist/components/button/index.js +1 -1
  13. package/dist/components/clamp-text/clamp-text.d.ts +1 -1
  14. package/dist/components/clamp-text/clamp-text.js +1 -1
  15. package/dist/components/clamp-text/index.d.ts +2 -2
  16. package/dist/components/clamp-text/index.js +1 -1
  17. package/dist/components/elevator/elevator.d.ts +5 -5
  18. package/dist/components/elevator/elevator.js +4 -4
  19. package/dist/components/elevator/index.d.ts +2 -2
  20. package/dist/components/elevator/index.js +1 -1
  21. package/dist/components/icon/icon.d.ts +1 -1
  22. package/dist/components/icon/icon.js +1 -1
  23. package/dist/components/icon/index.d.ts +2 -2
  24. package/dist/components/icon/index.js +1 -1
  25. package/dist/components/icon-button/icon-button.d.ts +1 -1
  26. package/dist/components/icon-button/icon-button.js +1 -1
  27. package/dist/components/icon-button/index.d.ts +2 -2
  28. package/dist/components/icon-button/index.js +1 -1
  29. package/dist/components/index.d.ts +17 -17
  30. package/dist/components/index.js +17 -17
  31. package/dist/components/select/index.d.ts +2 -2
  32. package/dist/components/select/index.js +1 -1
  33. package/dist/components/select/select-group.js +3 -3
  34. package/dist/components/select/select-indicator-slot.js +1 -1
  35. package/dist/components/select/select-option.js +4 -4
  36. package/dist/components/select/select.d.ts +7 -7
  37. package/dist/components/select/select.js +7 -7
  38. package/dist/components/skeleton/index.d.ts +2 -2
  39. package/dist/components/skeleton/index.js +1 -1
  40. package/dist/components/skeleton/skeleton.d.ts +1 -1
  41. package/dist/components/skeleton/skeleton.js +2 -2
  42. package/dist/components/slider/index.d.ts +2 -2
  43. package/dist/components/slider/index.js +1 -1
  44. package/dist/components/slider/slider-control.js +1 -1
  45. package/dist/components/slider/slider.d.ts +1 -1
  46. package/dist/components/slider/slider.js +6 -6
  47. package/dist/components/spinner/index.d.ts +2 -2
  48. package/dist/components/spinner/index.js +1 -1
  49. package/dist/components/spinner/spinner.d.ts +1 -1
  50. package/dist/components/spinner/spinner.js +1 -1
  51. package/dist/components/stack/index.d.ts +2 -2
  52. package/dist/components/stack/index.js +1 -1
  53. package/dist/components/stack/stack.d.ts +2 -2
  54. package/dist/components/stack/stack.js +3 -3
  55. package/dist/components/surface/index.d.ts +2 -2
  56. package/dist/components/surface/index.js +1 -1
  57. package/dist/components/surface/surface.css +12 -3
  58. package/dist/components/surface/surface.d.ts +1 -1
  59. package/dist/components/surface/surface.js +3 -3
  60. package/dist/components/switch/index.d.ts +2 -2
  61. package/dist/components/switch/index.js +1 -1
  62. package/dist/components/switch/switch.d.ts +1 -1
  63. package/dist/components/switch/switch.js +4 -4
  64. package/dist/components/text/index.d.ts +2 -2
  65. package/dist/components/text/index.js +1 -1
  66. package/dist/components/text/text.d.ts +1 -1
  67. package/dist/components/text/text.js +2 -2
  68. package/dist/components/textarea/index.d.ts +2 -2
  69. package/dist/components/textarea/index.js +1 -1
  70. package/dist/components/textarea/textarea.d.ts +1 -1
  71. package/dist/components/textarea/textarea.js +5 -5
  72. package/dist/components/textfield/index.d.ts +2 -2
  73. package/dist/components/textfield/index.js +1 -1
  74. package/dist/components/textfield/textfield.d.ts +1 -1
  75. package/dist/components/textfield/textfield.js +5 -5
  76. package/dist/components/title/index.d.ts +2 -2
  77. package/dist/components/title/index.js +1 -1
  78. package/dist/components/title/title.d.ts +1 -1
  79. package/dist/components/title/title.js +2 -2
  80. package/dist/core/elevation/get-elevation-props.d.ts +1 -1
  81. package/dist/core/elevation/get-elevation-props.js +1 -1
  82. package/dist/core/styles/resolve-axis-padding.js +1 -1
  83. package/dist/index.d.ts +2 -2
  84. package/dist/index.js +1 -1
  85. package/dist/internal-icons/icon-registry.d.ts +238 -238
  86. package/dist/internal-icons/icon-registry.js +238 -238
  87. package/dist/internal-icons/icons/duo/index.d.ts +238 -238
  88. package/dist/internal-icons/icons/duo/index.js +238 -238
  89. package/dist/preflight.css +1 -1
  90. package/package.json +6 -6
@@ -1,4 +1,4 @@
1
- import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
1
+ import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
2
2
  import type * as React from 'react';
3
3
  import './avatar.css';
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Avatar as PrimitiveAvatar } from '@base-ui/react/avatar';
3
- import { Skeleton, Text } from '..';
4
- import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
3
+ import { Skeleton, Text } from '../index.js';
4
+ import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
5
5
  import { clsx } from 'clsx';
6
6
  import './avatar.css';
7
7
  const fallbackTextSizeByAvatarSize = {
@@ -1,2 +1,2 @@
1
- export { Avatar } from './avatar';
2
- export type { AvatarProps } from './avatar';
1
+ export { Avatar } from './avatar.js';
2
+ export type { AvatarProps } from './avatar.js';
@@ -1 +1 @@
1
- export { Avatar } from './avatar';
1
+ export { Avatar } from './avatar.js';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { Field } from '@base-ui/react/field';
4
- import { Text } from '../text';
4
+ import { Text } from '../../components/text/index.js';
5
5
  /**
6
6
  * Renders field helper copy in the shared `Description` slot via `Field.Validity`.
7
7
  * Static `error` replaces `description` only while invalid and `error` is set.
@@ -1,2 +1,2 @@
1
- export { BasicInput } from './basic-input';
2
- export type { BasicInputProps } from './basic-input';
1
+ export { BasicInput } from './basic-input.js';
2
+ export type { BasicInputProps } from './basic-input.js';
@@ -1 +1 @@
1
- export { BasicInput } from './basic-input';
1
+ export { BasicInput } from './basic-input.js';
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Stack } from '..';
3
+ import { Stack } from '../index.js';
4
4
  /**
5
5
  * Internal flex wrapper for a field control plus optional start/end addons.
6
6
  * Not exported from the package public surface.
@@ -1,7 +1,7 @@
1
1
  import { Button as PrimitiveButton } from '@base-ui/react/button';
2
2
  import './button.css';
3
3
  import type { ReactNode } from 'react';
4
- import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
4
+ import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
5
5
  /**
6
6
  * Public Button props.
7
7
  *
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Button as PrimitiveButton } from '@base-ui/react/button';
3
- import { Spinner } from '../spinner';
4
- import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
3
+ import { Spinner } from '../../components/spinner/index.js';
4
+ import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
5
5
  import { clsx } from 'clsx';
6
6
  import './button.css';
7
7
  const spinnerDimensionsBySize = {
@@ -1,2 +1,2 @@
1
- export { Button } from './button';
2
- export type { ButtonProps } from './button';
1
+ export { Button } from './button.js';
2
+ export type { ButtonProps } from './button.js';
@@ -1 +1 @@
1
- export { Button } from './button';
1
+ export { Button } from './button.js';
@@ -1,7 +1,7 @@
1
1
  import { useRender } from '@base-ui/react/use-render';
2
2
  import type * as React from 'react';
3
3
  import './clamp-text.css';
4
- import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
4
+ import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
5
5
  /**
6
6
  * Public ClampText props.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useRender } from '@base-ui/react/use-render';
3
- import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
3
+ import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
4
4
  import { clsx } from 'clsx';
5
5
  import { useMemo } from 'react';
6
6
  import './clamp-text.css';
@@ -1,2 +1,2 @@
1
- export { ClampText } from './clamp-text';
2
- export type { ClampTextProps } from './clamp-text';
1
+ export { ClampText } from './clamp-text.js';
2
+ export type { ClampTextProps } from './clamp-text.js';
@@ -1 +1 @@
1
- export { ClampText } from './clamp-text';
1
+ export { ClampText } from './clamp-text.js';
@@ -1,9 +1,9 @@
1
1
  import type * as React from 'react';
2
- import type { ElevationDirection, ElevationLevel, ElevationShadowColor } from '../../core/elevation/elevation-types';
3
- import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
4
- export type { ElevationDirection, ElevationLevel, ElevationShadowColor } from '../../core/elevation/elevation-types';
5
- export { ELEVATION_DEFAULTS } from '../../core/elevation/elevation-types';
6
- export { getElevationProps } from '../../core/elevation/get-elevation-props';
2
+ import type { ElevationDirection, ElevationLevel, ElevationShadowColor } from '../../core/elevation/elevation-types.js';
3
+ import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
4
+ export type { ElevationDirection, ElevationLevel, ElevationShadowColor, } from '../../core/elevation/elevation-types.js';
5
+ export { ELEVATION_DEFAULTS } from '../../core/elevation/elevation-types.js';
6
+ export { getElevationProps } from '../../core/elevation/get-elevation-props.js';
7
7
  /**
8
8
  * Public Elevator props.
9
9
  *
@@ -1,8 +1,8 @@
1
1
  import { Children, cloneElement, isValidElement } from 'react';
2
- import { getElevationProps } from '../../core/elevation/get-elevation-props';
3
- import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
4
- export { ELEVATION_DEFAULTS } from '../../core/elevation/elevation-types';
5
- export { getElevationProps } from '../../core/elevation/get-elevation-props';
2
+ import { getElevationProps } from '../../core/elevation/get-elevation-props.js';
3
+ import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
4
+ export { ELEVATION_DEFAULTS } from '../../core/elevation/elevation-types.js';
5
+ export { getElevationProps } from '../../core/elevation/get-elevation-props.js';
6
6
  const mergeChildStyle = (childStyle, elevationStyle) => ({
7
7
  ...(childStyle ?? {}),
8
8
  ...elevationStyle,
@@ -1,2 +1,2 @@
1
- export { ELEVATION_DEFAULTS, Elevator, getElevationProps } from './elevator';
2
- export type { ElevationDirection, ElevationLevel, ElevationShadowColor, ElevatorProps } from './elevator';
1
+ export { ELEVATION_DEFAULTS, Elevator, getElevationProps } from './elevator.js';
2
+ export type { ElevationDirection, ElevationLevel, ElevationShadowColor, ElevatorProps } from './elevator.js';
@@ -1 +1 @@
1
- export { ELEVATION_DEFAULTS, Elevator, getElevationProps } from './elevator';
1
+ export { ELEVATION_DEFAULTS, Elevator, getElevationProps } from './elevator.js';
@@ -1,6 +1,6 @@
1
1
  import type { GeneratedIconName, GeneratedIconVariant } from '#internal-icons/icon-registry';
2
2
  import './icon.css';
3
- import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
3
+ import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
4
4
  export type IconName = GeneratedIconName;
5
5
  export type IconVariant = GeneratedIconVariant;
6
6
  export type IconProps = React.ComponentProps<'svg'> & IntrinsicViraProps & {
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { generatedDefaultIconVariant, generatedIconRegistry } from '#internal-icons/icon-registry';
3
- import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
3
+ import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
4
4
  import { clsx } from 'clsx';
5
5
  import './icon.css';
6
6
  export const Icon = ({ className, name, size = 24, variant = generatedDefaultIconVariant, ...otherProps }) => {
@@ -1,2 +1,2 @@
1
- export { Icon } from './icon';
2
- export type { IconProps } from './icon';
1
+ export { Icon } from './icon.js';
2
+ export type { IconProps } from './icon.js';
@@ -1 +1 @@
1
- export { Icon } from './icon';
1
+ export { Icon } from './icon.js';
@@ -1,4 +1,4 @@
1
- import type { ButtonProps } from '..';
1
+ import type { ButtonProps } from '../index.js';
2
2
  import type { ReactNode } from 'react';
3
3
  type AccessibleNameProps = {
4
4
  'aria-label': string;
@@ -1,3 +1,3 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Button } from '../button/button';
2
+ import { Button } from '../../components/button/button.js';
3
3
  export const IconButton = ({ icon, size = 'medium', ...props }) => (_jsx(Button, { icon: icon, size: size, ...props }));
@@ -1,2 +1,2 @@
1
- export { IconButton } from './icon-button';
2
- export type { IconButtonProps } from './icon-button';
1
+ export { IconButton } from './icon-button.js';
2
+ export type { IconButtonProps } from './icon-button.js';
@@ -1 +1 @@
1
- export { IconButton } from './icon-button';
1
+ export { IconButton } from './icon-button.js';
@@ -1,17 +1,17 @@
1
- export * from './avatar';
2
- export * from './clamp-text';
3
- export * from './elevator';
4
- export * from './button';
5
- export * from './icon-button';
6
- export * from './textfield';
7
- export * from './textarea';
8
- export * from './slider';
9
- export * from './switch';
10
- export * from './select';
11
- export * from './icon';
12
- export * from './skeleton';
13
- export * from './stack';
14
- export * from './surface';
15
- export * from './spinner';
16
- export * from './text';
17
- export * from './title';
1
+ export * from './avatar/index.js';
2
+ export * from './clamp-text/index.js';
3
+ export * from './elevator/index.js';
4
+ export * from './button/index.js';
5
+ export * from './icon-button/index.js';
6
+ export * from './textfield/index.js';
7
+ export * from './textarea/index.js';
8
+ export * from './slider/index.js';
9
+ export * from './switch/index.js';
10
+ export * from './select/index.js';
11
+ export * from './icon/index.js';
12
+ export * from './skeleton/index.js';
13
+ export * from './stack/index.js';
14
+ export * from './surface/index.js';
15
+ export * from './spinner/index.js';
16
+ export * from './text/index.js';
17
+ export * from './title/index.js';
@@ -1,17 +1,17 @@
1
- export * from './avatar';
2
- export * from './clamp-text';
3
- export * from './elevator';
4
- export * from './button';
5
- export * from './icon-button';
6
- export * from './textfield';
7
- export * from './textarea';
8
- export * from './slider';
9
- export * from './switch';
10
- export * from './select';
11
- export * from './icon';
12
- export * from './skeleton';
13
- export * from './stack';
14
- export * from './surface';
15
- export * from './spinner';
16
- export * from './text';
17
- export * from './title';
1
+ export * from './avatar/index.js';
2
+ export * from './clamp-text/index.js';
3
+ export * from './elevator/index.js';
4
+ export * from './button/index.js';
5
+ export * from './icon-button/index.js';
6
+ export * from './textfield/index.js';
7
+ export * from './textarea/index.js';
8
+ export * from './slider/index.js';
9
+ export * from './switch/index.js';
10
+ export * from './select/index.js';
11
+ export * from './icon/index.js';
12
+ export * from './skeleton/index.js';
13
+ export * from './stack/index.js';
14
+ export * from './surface/index.js';
15
+ export * from './spinner/index.js';
16
+ export * from './text/index.js';
17
+ export * from './title/index.js';
@@ -1,2 +1,2 @@
1
- export { Select } from './select';
2
- export type { SelectProps } from './select';
1
+ export { Select } from './select.js';
2
+ export type { SelectProps } from './select.js';
@@ -1 +1 @@
1
- export { Select } from './select';
1
+ export { Select } from './select.js';
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Select as PrimitiveSelect } from '@base-ui/react/select';
4
- import { Stack } from '../stack';
5
- import { Text } from '../text';
4
+ import { Stack } from '../../components/stack/index.js';
5
+ import { Text } from '../../components/text/index.js';
6
6
  import { clsx } from 'clsx';
7
- import { SelectIndicatorSlot } from './select-indicator-slot';
7
+ import { SelectIndicatorSlot } from './select-indicator-slot.js';
8
8
  export function SelectGroup({ children, className, label, ...groupProps }) {
9
9
  return (_jsxs(PrimitiveSelect.Group, { ...groupProps, className: clsx('Group', className), render: _jsx(Stack, { direction: "column", fillChildren: false, rowGap: "2x-small", vPadding: "2x-small" }), children: [_jsxs(PrimitiveSelect.GroupLabel, { className: "GroupLabel", render: _jsx(Stack, { columnGap: "small", direction: "row", fillChildren: false, hPadding: "small", vAlign: "center" }), children: [_jsx(Text, { size: "x-small", tone: "muted", weight: "semibold", children: label }), _jsx(SelectIndicatorSlot, {})] }), children] }));
10
10
  }
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { Select as PrimitiveSelect } from '@base-ui/react/select';
4
- import { Stack } from '../stack';
4
+ import { Stack } from '../../components/stack/index.js';
5
5
  const indicatorStackRender = _jsx(Stack, { fillChildren: false, hAlign: "center", inline: true, shrink: false, vAlign: "center" });
6
6
  export function SelectIndicatorSlot({ children, interactive = false }) {
7
7
  if (interactive) {
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Select as PrimitiveSelect } from '@base-ui/react/select';
4
- import { Icon } from '../icon';
5
- import { Stack } from '../stack';
6
- import { Text } from '../text';
4
+ import { Icon } from '../../components/icon/index.js';
5
+ import { Stack } from '../../components/stack/index.js';
6
+ import { Text } from '../../components/text/index.js';
7
7
  import { clsx } from 'clsx';
8
- import { SelectIndicatorSlot } from './select-indicator-slot';
8
+ import { SelectIndicatorSlot } from './select-indicator-slot.js';
9
9
  export function SelectOption({ children, className, disabled, indicator, label, value, ...itemProps }) {
10
10
  return (_jsxs(PrimitiveSelect.Item, { ...itemProps, "aria-label": label, label: label, className: clsx('Option', className), disabled: disabled, render: _jsx(Stack, { columnGap: "small", direction: "row", hPadding: "small", vPadding: "small", vAlign: "center" }), value: value, children: [_jsx(Text, { className: "OptionText", lineHeight: "small", render: _jsx(PrimitiveSelect.ItemText, {}), size: "small", children: children }), _jsx(SelectIndicatorSlot, { interactive: true, children: indicator ?? _jsx(Icon, { name: "Check", size: 16 }) })] }));
11
11
  }
@@ -1,10 +1,10 @@
1
1
  import type { FieldRoot } from '@base-ui/react/field';
2
2
  import type { SelectRoot } from '@base-ui/react/select';
3
3
  import type * as React from 'react';
4
- import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
5
- import { SelectGroup } from './select-group';
6
- import { SelectOption } from './select-option';
7
- import { SelectSeparator } from './select-separator';
4
+ import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
5
+ import { SelectGroup } from './select-group.js';
6
+ import { SelectOption } from './select-option.js';
7
+ import { SelectSeparator } from './select-separator.js';
8
8
  import './select.css';
9
9
  /**
10
10
  * Public Select props.
@@ -61,6 +61,6 @@ export declare const Select: typeof SelectRootComponent & {
61
61
  Group: typeof SelectGroup;
62
62
  Separator: typeof SelectSeparator;
63
63
  };
64
- export type { SelectGroupProps } from './select-group';
65
- export type { SelectOptionProps } from './select-option';
66
- export type { SelectSeparatorProps } from './select-separator';
64
+ export type { SelectGroupProps } from './select-group.js';
65
+ export type { SelectOptionProps } from './select-option.js';
66
+ export type { SelectSeparatorProps } from './select-separator.js';
@@ -4,13 +4,13 @@ import { Field } from '@base-ui/react/field';
4
4
  import { Select as PrimitiveSelect } from '@base-ui/react/select';
5
5
  import { clsx } from 'clsx';
6
6
  import { useId } from 'react';
7
- import { Elevator, Icon, Stack, Surface, Text } from '..';
8
- import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
9
- import { FieldHelperCopy } from '../basic-input/field-helper-copy';
10
- import { IconButton } from '../icon-button';
11
- import { SelectGroup } from './select-group';
12
- import { SelectOption } from './select-option';
13
- import { SelectSeparator } from './select-separator';
7
+ import { Elevator, Icon, Stack, Surface, Text } from '../index.js';
8
+ import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
9
+ import { FieldHelperCopy } from '../../components/basic-input/field-helper-copy.js';
10
+ import { IconButton } from '../../components/icon-button/index.js';
11
+ import { SelectGroup } from './select-group.js';
12
+ import { SelectOption } from './select-option.js';
13
+ import { SelectSeparator } from './select-separator.js';
14
14
  import './select.css';
15
15
  function SelectRootComponent({ children, className, description, dirty, disabled, error, icon = _jsx(Icon, { name: "ChevronExpandY", size: 16 }), invalid, label, name, placeholder, ref, touched, validate, validationDebounceTime, validationMode, ...selectRootProps }) {
16
16
  const { componentProps, intrinsicAttributes } = extractIntrinsicViraProps(selectRootProps);
@@ -1,2 +1,2 @@
1
- export { Skeleton } from './skeleton';
2
- export type { SkeletonProps } from './skeleton';
1
+ export { Skeleton } from './skeleton.js';
2
+ export type { SkeletonProps } from './skeleton.js';
@@ -1 +1 @@
1
- export { Skeleton } from './skeleton';
1
+ export { Skeleton } from './skeleton.js';
@@ -1,5 +1,5 @@
1
1
  import type { ThemeTypes } from '@viraui/foundation/vira/types';
2
- import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
2
+ import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
3
3
  import type * as React from 'react';
4
4
  import './skeleton.css';
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
3
- import { resolveThemeValue } from '../../core/theme/resolve-theme-value';
2
+ import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
3
+ import { resolveThemeValue } from '../../core/theme/resolve-theme-value.js';
4
4
  import clsx from 'clsx';
5
5
  import './skeleton.css';
6
6
  export const Skeleton = ({ className, height, minHeight, minWidth, radius, ref, style, width, ...otherProps }) => {
@@ -1,2 +1,2 @@
1
- export { Slider } from './slider';
2
- export type { SliderProps } from './slider';
1
+ export { Slider } from './slider.js';
2
+ export type { SliderProps } from './slider.js';
@@ -1 +1 @@
1
- export { Slider } from './slider';
1
+ export { Slider } from './slider.js';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Slider as PrimitiveSlider } from '@base-ui/react/slider';
4
- import { Stack } from '../stack';
4
+ import { Stack } from '../../components/stack/index.js';
5
5
  import './slider-control.css';
6
6
  function resolveThumbAriaLabels(thumbAriaLabel, isRange) {
7
7
  if (thumbAriaLabel === undefined) {
@@ -1,6 +1,6 @@
1
1
  import type { FieldRoot } from '@base-ui/react/field';
2
2
  import type { SliderRoot } from '@base-ui/react/slider';
3
- import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
3
+ import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
4
4
  import type * as React from 'react';
5
5
  import './slider-control.css';
6
6
  import './slider.css';
@@ -2,14 +2,14 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Field } from '@base-ui/react/field';
4
4
  import { Slider as PrimitiveSlider } from '@base-ui/react/slider';
5
- import { FieldHelperCopy } from '../basic-input/field-helper-copy';
6
- import { Stack } from '../stack';
7
- import { Text } from '../text';
8
- import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
5
+ import { FieldHelperCopy } from '../../components/basic-input/field-helper-copy.js';
6
+ import { Stack } from '../../components/stack/index.js';
7
+ import { Text } from '../../components/text/index.js';
8
+ import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
9
9
  import { clsx } from 'clsx';
10
- import { SliderControl } from './slider-control';
10
+ import { SliderControl } from './slider-control.js';
11
11
  import './slider-control.css';
12
- import { isRangeSlider } from './slider-utils';
12
+ import { isRangeSlider } from './slider-utils.js';
13
13
  import './slider.css';
14
14
  export const Slider = ({ className, defaultValue, description, dirty, disabled, error, invalid, label, name, orientation = 'horizontal', ref, showValue = false, thumbAriaLabel, touched, validate, validationDebounceTime, validationMode, value, ...sliderRootProps }) => {
15
15
  const isRange = isRangeSlider(value, defaultValue);
@@ -1,2 +1,2 @@
1
- export { Spinner } from './spinner';
2
- export type { SpinnerProps } from './spinner';
1
+ export { Spinner } from './spinner.js';
2
+ export type { SpinnerProps } from './spinner.js';
@@ -1 +1 @@
1
- export { Spinner } from './spinner';
1
+ export { Spinner } from './spinner.js';
@@ -1,5 +1,5 @@
1
1
  import './spinner.css';
2
- import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
2
+ import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
3
3
  export type SpinnerProps = Omit<React.ComponentProps<'svg'>, 'color'> & IntrinsicViraProps & {
4
4
  /**
5
5
  * Sets the rendered spinner size.
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
2
+ import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
3
3
  import clsx from 'clsx';
4
4
  import './spinner.css';
5
5
  export const Spinner = ({ className, color, size = 'big', ref, style, ...otherProps }) => {
@@ -1,2 +1,2 @@
1
- export { Stack } from './stack';
2
- export type { StackProps } from './stack';
1
+ export { Stack } from './stack.js';
2
+ export type { StackProps } from './stack.js';
@@ -1 +1 @@
1
- export { Stack } from './stack';
1
+ export { Stack } from './stack.js';
@@ -1,7 +1,7 @@
1
1
  import { useRender } from '@base-ui/react/use-render';
2
- import type { ThemeTypes } from '@foundation/platforms/web/vira/types';
3
- import type { IntrinsicViraProps } from '@react/src/core/props/intrinsic-vira-props';
2
+ import type { ThemeTypes } from '@viraui/foundation/vira/types';
4
3
  import type * as React from 'react';
4
+ import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
5
5
  import './stack.css';
6
6
  type StackAlignment = 'start' | 'center' | 'end' | 'stretch' | 'initial' | 'space-between' | 'space-around' | 'space-evenly';
7
7
  type StackSpace = ThemeTypes['space'];
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  import { useRender } from '@base-ui/react/use-render';
3
- import { extractIntrinsicViraProps } from '@react/src/core/props/intrinsic-vira-props';
4
- import { resolveAxisPadding } from '@react/src/core/styles/resolve-axis-padding';
5
- import { resolveThemeValue } from '@react/src/core/theme/resolve-theme-value';
6
3
  import { clsx } from 'clsx';
4
+ import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
5
+ import { resolveAxisPadding } from '../../core/styles/resolve-axis-padding.js';
6
+ import { resolveThemeValue } from '../../core/theme/resolve-theme-value.js';
7
7
  import './stack.css';
8
8
  export const Stack = ({ className, direction = 'column', fillChildren = true, hAlign = 'initial', hPadding, inline = false, maxWidth, minWidth, ref, render, rowGap, columnGap, style, vAlign = 'initial', vPadding, wrap = false, ...otherProps }) => {
9
9
  const hasPadding = Boolean(hPadding || vPadding);
@@ -1,2 +1,2 @@
1
- export { Surface } from './surface';
2
- export type { SurfaceProps } from './surface';
1
+ export { Surface } from './surface.js';
2
+ export type { SurfaceProps } from './surface.js';
@@ -1 +1 @@
1
- export { Surface } from './surface';
1
+ export { Surface } from './surface.js';
@@ -12,7 +12,6 @@
12
12
  background: var(--surface-background, transparent);
13
13
  border-radius: var(--surface-border-radius);
14
14
  border: 0;
15
- transition: all var(--duration-fast) var(--easing-standard);
16
15
 
17
16
  &[data-surface-has-padding='true'] {
18
17
  padding: var(--surface-padding-block-start) var(--surface-padding-inline-end) var(--surface-padding-block-end)
@@ -51,10 +50,20 @@
51
50
  &[data-surface-border='y'] {
52
51
  border-width: 1px 0;
53
52
  }
53
+
54
+ @media (hover: hover) and (pointer: fine) {
55
+ &[data-surface-has-hover-color='true']:hover {
56
+ animation: surface-background-hover var(--duration-fast) var(--easing-standard);
57
+ animation-fill-mode: both;
58
+ }
59
+ }
54
60
  }
55
61
 
56
- @media (hover: hover) and (pointer: fine) {
57
- :scope[data-surface-has-hover-color='true']:hover {
62
+ @keyframes surface-background-hover {
63
+ from {
64
+ background: var(--surface-background);
65
+ }
66
+ to {
58
67
  background: var(--surface-background-hover);
59
68
  }
60
69
  }
@@ -2,7 +2,7 @@ import { useRender } from '@base-ui/react/use-render';
2
2
  import type { ThemeTypes } from '@viraui/foundation/vira/types';
3
3
  import type * as React from 'react';
4
4
  import './surface.css';
5
- import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
5
+ import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
6
6
  /** Base ramp layer for nested surfaces; clamped to 1–3 at runtime. */
7
7
  type SurfaceBaseLevel = 1 | 2 | 3;
8
8
  type SurfaceColor = string | SurfaceBaseLevel;
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  import { useRender } from '@base-ui/react/use-render';
3
- import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
4
- import { resolveAxisPadding } from '../../core/styles/resolve-axis-padding';
5
- import { resolveThemeValue } from '../../core/theme/resolve-theme-value';
3
+ import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
4
+ import { resolveAxisPadding } from '../../core/styles/resolve-axis-padding.js';
5
+ import { resolveThemeValue } from '../../core/theme/resolve-theme-value.js';
6
6
  import { clsx } from 'clsx';
7
7
  import './surface.css';
8
8
  const clampSurfaceBaseLevel = (value) => {