@viraui/react 0.0.12 → 0.0.13
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/components/avatar/avatar.d.ts +1 -1
- package/dist/components/avatar/avatar.js +2 -2
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/basic-input/field-helper-copy.js +1 -1
- package/dist/components/basic-input/index.d.ts +2 -2
- package/dist/components/basic-input/index.js +1 -1
- package/dist/components/basic-input/input-control-group.js +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +2 -2
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/index.js +1 -1
- package/dist/components/clamp-text/clamp-text.d.ts +1 -1
- package/dist/components/clamp-text/clamp-text.js +1 -1
- package/dist/components/clamp-text/index.d.ts +2 -2
- package/dist/components/clamp-text/index.js +1 -1
- package/dist/components/elevator/elevator.d.ts +5 -5
- package/dist/components/elevator/elevator.js +4 -4
- package/dist/components/elevator/index.d.ts +2 -2
- package/dist/components/elevator/index.js +1 -1
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/icon/icon.js +1 -1
- package/dist/components/icon/index.d.ts +2 -2
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/icon-button.d.ts +1 -1
- package/dist/components/icon-button/icon-button.js +1 -1
- package/dist/components/icon-button/index.d.ts +2 -2
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/index.d.ts +17 -17
- package/dist/components/index.js +17 -17
- package/dist/components/select/index.d.ts +2 -2
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select-group.js +3 -3
- package/dist/components/select/select-indicator-slot.js +1 -1
- package/dist/components/select/select-option.js +4 -4
- package/dist/components/select/select.d.ts +7 -7
- package/dist/components/select/select.js +7 -7
- package/dist/components/skeleton/index.d.ts +2 -2
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/skeleton/skeleton.js +2 -2
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/slider-control.js +1 -1
- package/dist/components/slider/slider.d.ts +1 -1
- package/dist/components/slider/slider.js +6 -6
- package/dist/components/spinner/index.d.ts +2 -2
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/spinner/spinner.js +1 -1
- package/dist/components/stack/index.d.ts +2 -2
- package/dist/components/stack/index.js +1 -1
- package/dist/components/stack/stack.d.ts +2 -2
- package/dist/components/stack/stack.js +3 -3
- package/dist/components/surface/index.d.ts +2 -2
- package/dist/components/surface/index.js +1 -1
- package/dist/components/surface/surface.d.ts +1 -1
- package/dist/components/surface/surface.js +3 -3
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/switch/switch.js +4 -4
- package/dist/components/text/index.d.ts +2 -2
- package/dist/components/text/index.js +1 -1
- package/dist/components/text/text.d.ts +1 -1
- package/dist/components/text/text.js +2 -2
- package/dist/components/textarea/index.d.ts +2 -2
- package/dist/components/textarea/index.js +1 -1
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/textarea/textarea.js +5 -5
- package/dist/components/textfield/index.d.ts +2 -2
- package/dist/components/textfield/index.js +1 -1
- package/dist/components/textfield/textfield.d.ts +1 -1
- package/dist/components/textfield/textfield.js +5 -5
- package/dist/components/title/index.d.ts +2 -2
- package/dist/components/title/index.js +1 -1
- package/dist/components/title/title.d.ts +1 -1
- package/dist/components/title/title.js +2 -2
- package/dist/core/elevation/get-elevation-props.d.ts +1 -1
- package/dist/core/elevation/get-elevation-props.js +1 -1
- package/dist/core/styles/resolve-axis-padding.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/internal-icons/icon-registry.d.ts +238 -238
- package/dist/internal-icons/icon-registry.js +238 -238
- package/dist/internal-icons/icons/duo/index.d.ts +238 -238
- package/dist/internal-icons/icons/duo/index.js +238 -238
- package/package.json +6 -6
|
@@ -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 '
|
|
6
|
-
import { Stack } from '
|
|
7
|
-
import { Text } from '
|
|
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 '
|
|
5
|
-
import { FieldHelperCopy } from '
|
|
6
|
-
import { Stack } from '
|
|
7
|
-
import { Text } from '
|
|
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 '
|
|
7
|
-
import { FieldHelperCopy } from '
|
|
8
|
-
import { InputControlGroup } from '
|
|
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,
|
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';
|