@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,2 +1,2 @@
1
- export { Switch } from './switch';
2
- export type { SwitchProps } from './switch';
1
+ export { Switch } from './switch.js';
2
+ export type { SwitchProps } from './switch.js';
@@ -1 +1 @@
1
- export { Switch } from './switch';
1
+ export { Switch } from './switch.js';
@@ -1,7 +1,7 @@
1
1
  import type { FieldRoot } from '@base-ui/react/field';
2
2
  import type { SwitchRoot } from '@base-ui/react/switch';
3
3
  import type * as React 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
  import './switch.css';
6
6
  /**
7
7
  * Public Switch props.
@@ -2,10 +2,10 @@
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 { Switch as PrimitiveSwitch } from '@base-ui/react/switch';
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
10
  import './switch.css';
11
11
  export const Switch = ({ className, description, dirty, disabled, error, invalid, label, name, ref, size = 'small', touched, validate, validationDebounceTime, validationMode, ...switchRootProps }) => {
@@ -1,2 +1,2 @@
1
- export { Text } from './text';
2
- export type { TextProps } from './text';
1
+ export { Text } from './text.js';
2
+ export type { TextProps } from './text.js';
@@ -1 +1 @@
1
- export { Text } from './text';
1
+ export { Text } from './text.js';
@@ -1,6 +1,6 @@
1
1
  import { useRender } from '@base-ui/react/use-render';
2
2
  import type { ThemeTypes } from '@viraui/foundation/vira/types';
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 './text.css';
6
6
  type TextSpace = ThemeTypes['space'];
@@ -1,7 +1,7 @@
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';
3
+ import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
4
+ import { resolveAxisPadding } from '../../core/styles/resolve-axis-padding.js';
5
5
  import { clsx } from 'clsx';
6
6
  import './text.css';
7
7
  export const Text = ({ align = 'start', balanced = false, className, color, family = 'body', fontWidth, hPadding, lineHeight = 'standard', maxWidth, opticalSize, ref, render, size = 'medium', style, tone, trim, trimType = 'cap alphabetic', vPadding, weight = 'regular', whiteSpace = 'normal', ...otherProps }) => {
@@ -1,2 +1,2 @@
1
- export { Textarea } from './textarea';
2
- export type { TextareaProps } from './textarea';
1
+ export { Textarea } from './textarea.js';
2
+ export type { TextareaProps } from './textarea.js';
@@ -1 +1 @@
1
- export { Textarea } from './textarea';
1
+ export { Textarea } from './textarea.js';
@@ -1,7 +1,7 @@
1
1
  import type { FieldRoot } from '@base-ui/react/field';
2
2
  import type * as React from 'react';
3
3
  import './textarea.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 Textarea props.
7
7
  *
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Field } from '@base-ui/react/field';
4
- import { BasicInput } from '../basic-input';
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';
4
+ import { BasicInput } from '../../components/basic-input/index.js';
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 './textarea.css';
10
10
  export const Textarea = ({ className, description, dirty, disabled, error, invalid, label, name, ref, resize, touched, validate, validationDebounceTime, validationMode, ...textareaProps }) => {
11
11
  const { componentProps, intrinsicAttributes } = extractIntrinsicViraProps(textareaProps);
@@ -1,2 +1,2 @@
1
- export { Textfield } from './textfield';
2
- export type { TextfieldProps } from './textfield';
1
+ export { Textfield } from './textfield.js';
2
+ export type { TextfieldProps } from './textfield.js';
@@ -1 +1 @@
1
- export { Textfield } from './textfield';
1
+ export { Textfield } from './textfield.js';
@@ -2,7 +2,7 @@ import type { FieldRoot } from '@base-ui/react/field';
2
2
  import { Input as PrimitiveInput } from '@base-ui/react/input';
3
3
  import type * as React from 'react';
4
4
  import './textfield.css';
5
- import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
5
+ import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
6
6
  /**
7
7
  * Public Textfield props.
8
8
  *
@@ -2,11 +2,11 @@
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 { Input as PrimitiveInput } from '@base-ui/react/input';
5
- import { Stack, Text } from '..';
6
- import { BasicInput } from '../basic-input';
7
- import { FieldHelperCopy } from '../basic-input/field-helper-copy';
8
- import { InputControlGroup } from '../basic-input/input-control-group';
9
- import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
5
+ import { Stack, Text } from '../index.js';
6
+ import { BasicInput } from '../../components/basic-input/index.js';
7
+ import { FieldHelperCopy } from '../../components/basic-input/field-helper-copy.js';
8
+ import { InputControlGroup } from '../../components/basic-input/input-control-group.js';
9
+ import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
10
10
  import './textfield.css';
11
11
  export const Textfield = ({ className, description, dirty, disabled, endAddon, error, invalid, label, name, ref, startAddon, touched, validate, validationDebounceTime, validationMode, ...inputProps }) => {
12
12
  const { componentProps, intrinsicAttributes } = extractIntrinsicViraProps(inputProps);
@@ -1,2 +1,2 @@
1
- export { Title } from './title';
2
- export type { TitleProps } from './title';
1
+ export { Title } from './title.js';
2
+ export type { TitleProps } from './title.js';
@@ -1 +1 @@
1
- export { Title } from './title';
1
+ export { Title } from './title.js';
@@ -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 './title.css';
5
- import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
5
+ import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
6
6
  type TitleSpace = ThemeTypes['space'];
7
7
  type TitleAxisPadding = TitleSpace | [TitleSpace | 0, TitleSpace | 0];
8
8
  /**
@@ -1,7 +1,7 @@
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';
3
+ import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
4
+ import { resolveAxisPadding } from '../../core/styles/resolve-axis-padding.js';
5
5
  import { clsx } from 'clsx';
6
6
  import './title.css';
7
7
  export const Title = ({ align = 'start', balanced = false, className, color, fontWidth, hPadding, level = 'h1', lineHeight = 'standard', maxWidth, opticalSize, ref, render, style, trim = 'both', trimType = 'cap alphabetic', vPadding, weight, whiteSpace = 'normal', ...otherProps }) => {
@@ -1,5 +1,5 @@
1
1
  import type * as React from 'react';
2
- import { type ElevationConfig, type ElevationDirection, type ElevationLevel } from './elevation-types';
2
+ import { type ElevationConfig, type ElevationDirection, type ElevationLevel } from './elevation-types.js';
3
3
  export type ElevationAttributes = {
4
4
  'data-elevation': ElevationLevel;
5
5
  'data-elevation-direction': ElevationDirection;
@@ -1,4 +1,4 @@
1
- import { ELEVATION_DEFAULTS, } from './elevation-types';
1
+ import { ELEVATION_DEFAULTS, } from './elevation-types.js';
2
2
  export const getElevationProps = ({ resting, hover, direction = ELEVATION_DEFAULTS.direction, shadowColor = ELEVATION_DEFAULTS.shadowColor, extraShadow, }) => ({
3
3
  attributes: {
4
4
  'data-elevation': resting,
@@ -1,4 +1,4 @@
1
- import { resolveThemeValue } from '../theme/resolve-theme-value';
1
+ import { resolveThemeValue } from '../../core/theme/resolve-theme-value.js';
2
2
  export const resolveAxisPadding = (value, startKey, endKey) => {
3
3
  if (!value) {
4
4
  return {};
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './components';
2
- export type { IntrinsicViraProps } from './core/props/intrinsic-vira-props';
1
+ export * from './components/index.js';
2
+ export type { IntrinsicViraProps } from './core/props/intrinsic-vira-props.js';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export * from './components';
1
+ export * from './components/index.js';