@yahoo/uds 3.38.0 → 3.39.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/{Box-DiAlMwFs.d.cts → Box-B2DvoAMD.d.cts} +1 -1
- package/dist/{Box-B5-iomov.d.ts → Box-C5GwvlME.d.ts} +1 -1
- package/dist/{Box-BM08iUR2.d.cts → Box-CJ3zIj4N.d.cts} +1 -1
- package/dist/{Box-D2_1_jHu.d.ts → Box-DggpNHav.d.ts} +1 -1
- package/dist/{Pressable-BtsR3Qz0.d.cts → Pressable-BbJdaJUo.d.cts} +1 -1
- package/dist/{Pressable-CZHF_iLZ.d.cts → Pressable-CE-tEoUc.d.cts} +1 -1
- package/dist/{Pressable-DvTJyjgZ.d.ts → Pressable-CogcHtMQ.d.ts} +1 -1
- package/dist/{Pressable-SmBC4IjK.d.ts → Pressable-DEuYwe7j.d.ts} +1 -1
- package/dist/Text-CgQcjNy7.d.cts +139 -0
- package/dist/Text-Cghi693U.d.ts +139 -0
- package/dist/Text-CoY1WLeq.d.ts +139 -0
- package/dist/Text-DDathn4e.d.cts +139 -0
- package/dist/{VStack-DQsyv2sb.d.cts → VStack-BrpD0qUH.d.cts} +2 -2
- package/dist/{VStack-mmwkcypy.d.cts → VStack-CIUJgL-7.d.cts} +2 -2
- package/dist/{VStack-D-3cxbIi.d.ts → VStack-Cpgnc5oS.d.ts} +2 -2
- package/dist/{VStack-r7oAc-8J.d.ts → VStack-_eM5ET03.d.ts} +2 -2
- package/dist/{chunk-5U4J6DA5.cjs → chunk-2FN7PYW3.cjs} +1 -1
- package/dist/{chunk-6SQQBVSA.js → chunk-3NOPVRK3.js} +1 -1
- package/dist/{chunk-6HG5KSL6.cjs → chunk-AX4IA6TK.cjs} +1 -1
- package/dist/{chunk-WRE54KQN.js → chunk-BCRZ2EQO.js} +1 -1
- package/dist/chunk-CWG6VECG.cjs +2 -0
- package/dist/{chunk-PNL4K4BQ.cjs → chunk-CZH6WYYG.cjs} +1 -1
- package/dist/{chunk-LWGAE6PD.cjs → chunk-ELVRZONR.cjs} +1 -1
- package/dist/{chunk-CTYIRZ5A.cjs → chunk-IVKGRXGB.cjs} +1 -1
- package/dist/{chunk-PVXOGAWH.js → chunk-JP3JNLAD.js} +1 -1
- package/dist/{chunk-4A2ZIK3D.cjs → chunk-KL36KHMK.cjs} +1 -1
- package/dist/{chunk-KPGAKQEP.js → chunk-KTN43MAD.js} +1 -1
- package/dist/{chunk-EXYFDTFM.js → chunk-LITEZHOE.js} +1 -1
- package/dist/{chunk-QQ7BRHDQ.js → chunk-NUOTAOOJ.js} +1 -1
- package/dist/{chunk-VQV2OVOZ.cjs → chunk-NVU2HHNL.cjs} +1 -1
- package/dist/{chunk-F7LPH2UL.cjs → chunk-OIDUOWWP.cjs} +1 -1
- package/dist/{chunk-WX4V6S4A.js → chunk-PQNUKUFA.js} +1 -1
- package/dist/{chunk-YBIQ3S5G.cjs → chunk-QFCUUITW.cjs} +1 -1
- package/dist/chunk-SPTEOB2R.cjs +2 -0
- package/dist/{chunk-QZIQVD63.js → chunk-UAN7HYYD.js} +1 -1
- package/dist/{chunk-RMRBUBTB.js → chunk-VDZOZV5O.js} +1 -1
- package/dist/{chunk-MATTX7AJ.js → chunk-VGS2HJDD.js} +1 -1
- package/dist/{chunk-UYLBFQ4P.js → chunk-WPPJ6CMJ.js} +1 -1
- package/dist/{chunk-I7ZFG4YT.js → chunk-ZEQ3QOPP.js} +1 -1
- package/dist/{chunk-H62QDZOV.cjs → chunk-ZJIWHNVT.cjs} +1 -1
- package/dist/client/Menu.cjs +2 -2
- package/dist/client/Menu.d.cts +4 -4
- package/dist/client/Menu.d.ts +4 -4
- package/dist/client/Menu.js +2 -2
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +63 -38
- package/dist/client/index.d.ts +63 -38
- package/dist/client/index.js +1 -1
- package/dist/defaultTokensConfig.d.cts +2 -2
- package/dist/defaultTokensConfig.d.ts +2 -2
- package/dist/experimental/client/SwitchV2.cjs +1 -1
- package/dist/experimental/client/SwitchV2.d.cts +1 -1
- package/dist/experimental/client/SwitchV2.d.ts +1 -1
- package/dist/experimental/client/SwitchV2.js +1 -1
- package/dist/experimental/client/index.cjs +2 -2
- package/dist/experimental/client/index.js +1 -1
- package/dist/experimental/index.cjs +2 -2
- package/dist/experimental/index.js +1 -1
- package/dist/{index-CqizU-UO.d.cts → index-BNV_bpqb.d.cts} +1 -1
- package/dist/{index-CISBacKa.d.cts → index-DE7BJVEA.d.cts} +1 -1
- package/dist/{index-BiFYC5eM.d.ts → index-DviXR06Z.d.ts} +1 -1
- package/dist/{index-Dn2pubkn.d.ts → index-uVTfvIWD.d.ts} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +10 -94
- package/dist/index.d.ts +10 -94
- package/dist/index.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.d.cts +1 -1
- package/dist/tailwind/plugin.d.ts +1 -1
- package/dist/tailwind/purger.cjs +1 -1
- package/dist/tailwind/purger.js +1 -1
- package/dist/tailwind/utils.d.cts +1 -1
- package/dist/tailwind/utils.d.ts +1 -1
- package/dist/tokens/automation/configs.d.cts +2 -2
- package/dist/tokens/automation/configs.d.ts +2 -2
- package/dist/tokens/automation/properties.d.cts +2 -2
- package/dist/tokens/automation/properties.d.ts +2 -2
- package/dist/tokens/index.d.cts +4 -4
- package/dist/tokens/index.d.ts +4 -4
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/{types-BRmrSr-u.d.cts → types-BEsEvo0F.d.cts} +4 -3
- package/dist/{types-BRmrSr-u.d.ts → types-BEsEvo0F.d.ts} +4 -3
- package/dist/{types-D0Rkj_1F.d.cts → types-rZt8SiS0.d.cts} +4 -3
- package/dist/{types-D0Rkj_1F.d.ts → types-rZt8SiS0.d.ts} +4 -3
- package/package.json +1 -1
- package/cli/FullWidthClassToProp.mock.tsx +0 -17
- package/dist/Input-C267CIVV.d.cts +0 -54
- package/dist/Input-C2JHbAnz.d.cts +0 -54
- package/dist/Input-CF4Kpe9f.d.ts +0 -54
- package/dist/Input-Drdk_VTx.d.ts +0 -54
- package/dist/chunk-4GUXQTU3.cjs +0 -3
- package/dist/chunk-JM4WTJDB.cjs +0 -3
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import {
|
2
|
+
import { a as UniversalBoxProps } from './types-rZt8SiS0.cjs';
|
3
3
|
|
4
4
|
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
5
5
|
interface BoxProps extends UniversalBoxProps, DivProps {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import {
|
2
|
+
import { a as UniversalBoxProps } from './types-rZt8SiS0.js';
|
3
3
|
|
4
4
|
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
5
5
|
interface BoxProps extends UniversalBoxProps, DivProps {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import {
|
2
|
+
import { a as UniversalBoxProps } from './types-BEsEvo0F.cjs';
|
3
3
|
|
4
4
|
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
5
5
|
interface BoxProps extends UniversalBoxProps, DivProps {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import {
|
2
|
+
import { a as UniversalBoxProps } from './types-BEsEvo0F.js';
|
3
3
|
|
4
4
|
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
5
5
|
interface BoxProps extends UniversalBoxProps, DivProps {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import {
|
2
|
+
import { U as UniversalPressableProps } from './types-rZt8SiS0.cjs';
|
3
3
|
|
4
4
|
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
|
5
5
|
interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import {
|
2
|
+
import { U as UniversalPressableProps } from './types-BEsEvo0F.cjs';
|
3
3
|
|
4
4
|
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
|
5
5
|
interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import {
|
2
|
+
import { U as UniversalPressableProps } from './types-BEsEvo0F.js';
|
3
3
|
|
4
4
|
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
|
5
5
|
interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import {
|
2
|
+
import { U as UniversalPressableProps } from './types-rZt8SiS0.js';
|
3
3
|
|
4
4
|
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
|
5
5
|
interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
|
@@ -0,0 +1,139 @@
|
|
1
|
+
import * as react from 'react';
|
2
|
+
import { InputHTMLAttributes, Ref } from 'react';
|
3
|
+
import { l as UniversalInputProps, m as IconPropsWithSVGProps, n as UniversalTextProps } from './types-rZt8SiS0.cjs';
|
4
|
+
import { HTMLMotionProps } from 'motion/react';
|
5
|
+
import { B as BoxProps } from './Box-B2DvoAMD.cjs';
|
6
|
+
|
7
|
+
type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
|
8
|
+
type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
|
9
|
+
type DataAttributes = {
|
10
|
+
[name: `data-${string}`]: string;
|
11
|
+
};
|
12
|
+
interface InputProps extends NativeInputProps, UniversalInputProps {
|
13
|
+
/** The type of the input element. Reduced set of options from the HTML input type attribute.
|
14
|
+
* @default 'text'
|
15
|
+
*/
|
16
|
+
type?: Exclude<NativeInputProps['type'], 'button' | 'checkbox' | 'color' | 'file' | 'radio' | 'range' | 'reset' | 'submit' | 'search'>;
|
17
|
+
/** Props to be passed into various slots within the component. */
|
18
|
+
slotProps?: {
|
19
|
+
input?: Partial<InputHTMLAttributes<HTMLInputElement> & DataAttributes>;
|
20
|
+
inputWrapper?: Partial<BoxProps & DataAttributes>;
|
21
|
+
startIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
|
22
|
+
endIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
|
23
|
+
};
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* **📦 An input that allows users to enter text and collect data.**
|
27
|
+
*
|
28
|
+
* @componentType Client component
|
29
|
+
*
|
30
|
+
* @description
|
31
|
+
* An input field is a component that takes text typed into it. It can also serve as a way to display a selection and trigger a dropdown menu. Inputs are interactive elements that users can click, tap, or otherwise engage with to collect data and open dropdowns, or both.
|
32
|
+
*
|
33
|
+
* @see
|
34
|
+
* Check out the {@link https://uds.build/docs/components/input Input Docs} for more info
|
35
|
+
*
|
36
|
+
* @usage
|
37
|
+
* - Forms: For collecting data like names, emails, passwords, etc. (e.g., sign-up, login, or contact forms).
|
38
|
+
* - Search Bars: Allowing users to enter search queries to find content.
|
39
|
+
* - Filters/Settings: When users need to specify preferences, like selecting a date or adjusting a number value.
|
40
|
+
* - Feedback/Comments: Letting users leave reviews, comments, or feedback.
|
41
|
+
*
|
42
|
+
* @example
|
43
|
+
* ```tsx
|
44
|
+
* 'use client';
|
45
|
+
* import { Input } from "@yahoo/uds";
|
46
|
+
*
|
47
|
+
* <Input label="Name" placeholder="Enter your name" required />
|
48
|
+
*```
|
49
|
+
*
|
50
|
+
* @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
|
51
|
+
**/
|
52
|
+
declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
53
|
+
|
54
|
+
type TextElementTagName = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p' | 'strong' | 'span' | 'label' | 'li' | 'sup';
|
55
|
+
type ColorWithInherit = Exclude<UniversalTextProps['color'], undefined> | 'inherit';
|
56
|
+
type VariantWithInherit = Exclude<UniversalTextProps['variant'], undefined> | 'inherit';
|
57
|
+
type TextProps<TagName extends TextElementTagName = TextElementTagName> = {
|
58
|
+
/** Ref passed to the inner container. */
|
59
|
+
ref?: Ref<HTMLElement>;
|
60
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
61
|
+
as?: TagName;
|
62
|
+
variant?: VariantWithInherit;
|
63
|
+
color?: ColorWithInherit;
|
64
|
+
} & JSX.IntrinsicElements[TagName] & Omit<UniversalTextProps, 'variant' | 'color'>;
|
65
|
+
/**
|
66
|
+
* **💬 A text element that can be used to display text**
|
67
|
+
*
|
68
|
+
* @description
|
69
|
+
* By default, the `Text` component uses text primary color and selects the
|
70
|
+
* correct font, weight, and leading. It also choices appropriate semantic
|
71
|
+
* HTML element based on the `variant` prop. For example, `body1` will use a
|
72
|
+
* `<p>` tag, `title1` uses an `<h1>`, etc. This behavior can be overridden
|
73
|
+
* with the `as` prop.
|
74
|
+
*
|
75
|
+
*
|
76
|
+
* @example
|
77
|
+
* ```tsx
|
78
|
+
* import { Text } from '@yahoo/uds';
|
79
|
+
*
|
80
|
+
* <Text variant="body1" color="primary">
|
81
|
+
* Text goes here
|
82
|
+
* </Text>
|
83
|
+
* ```
|
84
|
+
*
|
85
|
+
* @usage
|
86
|
+
* - Use `Text` to display text in your app.
|
87
|
+
* - Use `variant` to change the size and weight of the text.
|
88
|
+
* - Use `color` to change the color of the text.
|
89
|
+
* - Use `as` to change the HTML tag used to render the text.
|
90
|
+
*
|
91
|
+
* @see The {@link https://uds.build/docs/components/text Text Docs} for more info
|
92
|
+
*
|
93
|
+
* @related [ResponsiveText](https://uds.build/docs/components/responsive-text)
|
94
|
+
*/
|
95
|
+
declare const Text: react.ForwardRefExoticComponent<(Omit<{
|
96
|
+
/** Ref passed to the inner container. */
|
97
|
+
ref?: Ref<HTMLElement>;
|
98
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
99
|
+
as?: TextElementTagName | undefined;
|
100
|
+
variant?: VariantWithInherit;
|
101
|
+
color?: ColorWithInherit;
|
102
|
+
} & react.ClassAttributes<HTMLElement> & react.HTMLAttributes<HTMLElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
103
|
+
/** Ref passed to the inner container. */
|
104
|
+
ref?: Ref<HTMLElement>;
|
105
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
106
|
+
as?: TextElementTagName | undefined;
|
107
|
+
variant?: VariantWithInherit;
|
108
|
+
color?: ColorWithInherit;
|
109
|
+
} & react.ClassAttributes<HTMLHeadingElement> & react.HTMLAttributes<HTMLHeadingElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
110
|
+
/** Ref passed to the inner container. */
|
111
|
+
ref?: Ref<HTMLElement>;
|
112
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
113
|
+
as?: TextElementTagName | undefined;
|
114
|
+
variant?: VariantWithInherit;
|
115
|
+
color?: ColorWithInherit;
|
116
|
+
} & react.ClassAttributes<HTMLLabelElement> & react.LabelHTMLAttributes<HTMLLabelElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
117
|
+
/** Ref passed to the inner container. */
|
118
|
+
ref?: Ref<HTMLElement>;
|
119
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
120
|
+
as?: TextElementTagName | undefined;
|
121
|
+
variant?: VariantWithInherit;
|
122
|
+
color?: ColorWithInherit;
|
123
|
+
} & react.ClassAttributes<HTMLLIElement> & react.LiHTMLAttributes<HTMLLIElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
124
|
+
/** Ref passed to the inner container. */
|
125
|
+
ref?: Ref<HTMLElement>;
|
126
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
127
|
+
as?: TextElementTagName | undefined;
|
128
|
+
variant?: VariantWithInherit;
|
129
|
+
color?: ColorWithInherit;
|
130
|
+
} & react.ClassAttributes<HTMLParagraphElement> & react.HTMLAttributes<HTMLParagraphElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
131
|
+
/** Ref passed to the inner container. */
|
132
|
+
ref?: Ref<HTMLElement>;
|
133
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
134
|
+
as?: TextElementTagName | undefined;
|
135
|
+
variant?: VariantWithInherit;
|
136
|
+
color?: ColorWithInherit;
|
137
|
+
} & react.ClassAttributes<HTMLSpanElement> & react.HTMLAttributes<HTMLSpanElement> & Omit<UniversalTextProps, "color" | "variant">, "ref">) & react.RefAttributes<HTMLElement>>;
|
138
|
+
|
139
|
+
export { type InputProps as I, type TextProps as T, Text as a, Input as b };
|
@@ -0,0 +1,139 @@
|
|
1
|
+
import * as react from 'react';
|
2
|
+
import { InputHTMLAttributes, Ref } from 'react';
|
3
|
+
import { l as UniversalInputProps, m as IconPropsWithSVGProps, n as UniversalTextProps } from './types-rZt8SiS0.js';
|
4
|
+
import { HTMLMotionProps } from 'motion/react';
|
5
|
+
import { B as BoxProps } from './Box-C5GwvlME.js';
|
6
|
+
|
7
|
+
type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
|
8
|
+
type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
|
9
|
+
type DataAttributes = {
|
10
|
+
[name: `data-${string}`]: string;
|
11
|
+
};
|
12
|
+
interface InputProps extends NativeInputProps, UniversalInputProps {
|
13
|
+
/** The type of the input element. Reduced set of options from the HTML input type attribute.
|
14
|
+
* @default 'text'
|
15
|
+
*/
|
16
|
+
type?: Exclude<NativeInputProps['type'], 'button' | 'checkbox' | 'color' | 'file' | 'radio' | 'range' | 'reset' | 'submit' | 'search'>;
|
17
|
+
/** Props to be passed into various slots within the component. */
|
18
|
+
slotProps?: {
|
19
|
+
input?: Partial<InputHTMLAttributes<HTMLInputElement> & DataAttributes>;
|
20
|
+
inputWrapper?: Partial<BoxProps & DataAttributes>;
|
21
|
+
startIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
|
22
|
+
endIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
|
23
|
+
};
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* **📦 An input that allows users to enter text and collect data.**
|
27
|
+
*
|
28
|
+
* @componentType Client component
|
29
|
+
*
|
30
|
+
* @description
|
31
|
+
* An input field is a component that takes text typed into it. It can also serve as a way to display a selection and trigger a dropdown menu. Inputs are interactive elements that users can click, tap, or otherwise engage with to collect data and open dropdowns, or both.
|
32
|
+
*
|
33
|
+
* @see
|
34
|
+
* Check out the {@link https://uds.build/docs/components/input Input Docs} for more info
|
35
|
+
*
|
36
|
+
* @usage
|
37
|
+
* - Forms: For collecting data like names, emails, passwords, etc. (e.g., sign-up, login, or contact forms).
|
38
|
+
* - Search Bars: Allowing users to enter search queries to find content.
|
39
|
+
* - Filters/Settings: When users need to specify preferences, like selecting a date or adjusting a number value.
|
40
|
+
* - Feedback/Comments: Letting users leave reviews, comments, or feedback.
|
41
|
+
*
|
42
|
+
* @example
|
43
|
+
* ```tsx
|
44
|
+
* 'use client';
|
45
|
+
* import { Input } from "@yahoo/uds";
|
46
|
+
*
|
47
|
+
* <Input label="Name" placeholder="Enter your name" required />
|
48
|
+
*```
|
49
|
+
*
|
50
|
+
* @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
|
51
|
+
**/
|
52
|
+
declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
53
|
+
|
54
|
+
type TextElementTagName = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p' | 'strong' | 'span' | 'label' | 'li' | 'sup';
|
55
|
+
type ColorWithInherit = Exclude<UniversalTextProps['color'], undefined> | 'inherit';
|
56
|
+
type VariantWithInherit = Exclude<UniversalTextProps['variant'], undefined> | 'inherit';
|
57
|
+
type TextProps<TagName extends TextElementTagName = TextElementTagName> = {
|
58
|
+
/** Ref passed to the inner container. */
|
59
|
+
ref?: Ref<HTMLElement>;
|
60
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
61
|
+
as?: TagName;
|
62
|
+
variant?: VariantWithInherit;
|
63
|
+
color?: ColorWithInherit;
|
64
|
+
} & JSX.IntrinsicElements[TagName] & Omit<UniversalTextProps, 'variant' | 'color'>;
|
65
|
+
/**
|
66
|
+
* **💬 A text element that can be used to display text**
|
67
|
+
*
|
68
|
+
* @description
|
69
|
+
* By default, the `Text` component uses text primary color and selects the
|
70
|
+
* correct font, weight, and leading. It also choices appropriate semantic
|
71
|
+
* HTML element based on the `variant` prop. For example, `body1` will use a
|
72
|
+
* `<p>` tag, `title1` uses an `<h1>`, etc. This behavior can be overridden
|
73
|
+
* with the `as` prop.
|
74
|
+
*
|
75
|
+
*
|
76
|
+
* @example
|
77
|
+
* ```tsx
|
78
|
+
* import { Text } from '@yahoo/uds';
|
79
|
+
*
|
80
|
+
* <Text variant="body1" color="primary">
|
81
|
+
* Text goes here
|
82
|
+
* </Text>
|
83
|
+
* ```
|
84
|
+
*
|
85
|
+
* @usage
|
86
|
+
* - Use `Text` to display text in your app.
|
87
|
+
* - Use `variant` to change the size and weight of the text.
|
88
|
+
* - Use `color` to change the color of the text.
|
89
|
+
* - Use `as` to change the HTML tag used to render the text.
|
90
|
+
*
|
91
|
+
* @see The {@link https://uds.build/docs/components/text Text Docs} for more info
|
92
|
+
*
|
93
|
+
* @related [ResponsiveText](https://uds.build/docs/components/responsive-text)
|
94
|
+
*/
|
95
|
+
declare const Text: react.ForwardRefExoticComponent<(Omit<{
|
96
|
+
/** Ref passed to the inner container. */
|
97
|
+
ref?: Ref<HTMLElement>;
|
98
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
99
|
+
as?: TextElementTagName | undefined;
|
100
|
+
variant?: VariantWithInherit;
|
101
|
+
color?: ColorWithInherit;
|
102
|
+
} & react.ClassAttributes<HTMLElement> & react.HTMLAttributes<HTMLElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
103
|
+
/** Ref passed to the inner container. */
|
104
|
+
ref?: Ref<HTMLElement>;
|
105
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
106
|
+
as?: TextElementTagName | undefined;
|
107
|
+
variant?: VariantWithInherit;
|
108
|
+
color?: ColorWithInherit;
|
109
|
+
} & react.ClassAttributes<HTMLHeadingElement> & react.HTMLAttributes<HTMLHeadingElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
110
|
+
/** Ref passed to the inner container. */
|
111
|
+
ref?: Ref<HTMLElement>;
|
112
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
113
|
+
as?: TextElementTagName | undefined;
|
114
|
+
variant?: VariantWithInherit;
|
115
|
+
color?: ColorWithInherit;
|
116
|
+
} & react.ClassAttributes<HTMLLabelElement> & react.LabelHTMLAttributes<HTMLLabelElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
117
|
+
/** Ref passed to the inner container. */
|
118
|
+
ref?: Ref<HTMLElement>;
|
119
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
120
|
+
as?: TextElementTagName | undefined;
|
121
|
+
variant?: VariantWithInherit;
|
122
|
+
color?: ColorWithInherit;
|
123
|
+
} & react.ClassAttributes<HTMLLIElement> & react.LiHTMLAttributes<HTMLLIElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
124
|
+
/** Ref passed to the inner container. */
|
125
|
+
ref?: Ref<HTMLElement>;
|
126
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
127
|
+
as?: TextElementTagName | undefined;
|
128
|
+
variant?: VariantWithInherit;
|
129
|
+
color?: ColorWithInherit;
|
130
|
+
} & react.ClassAttributes<HTMLParagraphElement> & react.HTMLAttributes<HTMLParagraphElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
131
|
+
/** Ref passed to the inner container. */
|
132
|
+
ref?: Ref<HTMLElement>;
|
133
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
134
|
+
as?: TextElementTagName | undefined;
|
135
|
+
variant?: VariantWithInherit;
|
136
|
+
color?: ColorWithInherit;
|
137
|
+
} & react.ClassAttributes<HTMLSpanElement> & react.HTMLAttributes<HTMLSpanElement> & Omit<UniversalTextProps, "color" | "variant">, "ref">) & react.RefAttributes<HTMLElement>>;
|
138
|
+
|
139
|
+
export { type InputProps as I, type TextProps as T, Text as a, Input as b };
|
@@ -0,0 +1,139 @@
|
|
1
|
+
import * as react from 'react';
|
2
|
+
import { InputHTMLAttributes, Ref } from 'react';
|
3
|
+
import { l as UniversalInputProps, m as IconPropsWithSVGProps, n as UniversalTextProps } from './types-BEsEvo0F.js';
|
4
|
+
import { HTMLMotionProps } from 'motion/react';
|
5
|
+
import { B as BoxProps } from './Box-DggpNHav.js';
|
6
|
+
|
7
|
+
type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
|
8
|
+
type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
|
9
|
+
type DataAttributes = {
|
10
|
+
[name: `data-${string}`]: string;
|
11
|
+
};
|
12
|
+
interface InputProps extends NativeInputProps, UniversalInputProps {
|
13
|
+
/** The type of the input element. Reduced set of options from the HTML input type attribute.
|
14
|
+
* @default 'text'
|
15
|
+
*/
|
16
|
+
type?: Exclude<NativeInputProps['type'], 'button' | 'checkbox' | 'color' | 'file' | 'radio' | 'range' | 'reset' | 'submit' | 'search'>;
|
17
|
+
/** Props to be passed into various slots within the component. */
|
18
|
+
slotProps?: {
|
19
|
+
input?: Partial<InputHTMLAttributes<HTMLInputElement> & DataAttributes>;
|
20
|
+
inputWrapper?: Partial<BoxProps & DataAttributes>;
|
21
|
+
startIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
|
22
|
+
endIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
|
23
|
+
};
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* **📦 An input that allows users to enter text and collect data.**
|
27
|
+
*
|
28
|
+
* @componentType Client component
|
29
|
+
*
|
30
|
+
* @description
|
31
|
+
* An input field is a component that takes text typed into it. It can also serve as a way to display a selection and trigger a dropdown menu. Inputs are interactive elements that users can click, tap, or otherwise engage with to collect data and open dropdowns, or both.
|
32
|
+
*
|
33
|
+
* @see
|
34
|
+
* Check out the {@link https://uds.build/docs/components/input Input Docs} for more info
|
35
|
+
*
|
36
|
+
* @usage
|
37
|
+
* - Forms: For collecting data like names, emails, passwords, etc. (e.g., sign-up, login, or contact forms).
|
38
|
+
* - Search Bars: Allowing users to enter search queries to find content.
|
39
|
+
* - Filters/Settings: When users need to specify preferences, like selecting a date or adjusting a number value.
|
40
|
+
* - Feedback/Comments: Letting users leave reviews, comments, or feedback.
|
41
|
+
*
|
42
|
+
* @example
|
43
|
+
* ```tsx
|
44
|
+
* 'use client';
|
45
|
+
* import { Input } from "@yahoo/uds";
|
46
|
+
*
|
47
|
+
* <Input label="Name" placeholder="Enter your name" required />
|
48
|
+
*```
|
49
|
+
*
|
50
|
+
* @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
|
51
|
+
**/
|
52
|
+
declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
53
|
+
|
54
|
+
type TextElementTagName = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p' | 'strong' | 'span' | 'label' | 'li' | 'sup';
|
55
|
+
type ColorWithInherit = Exclude<UniversalTextProps['color'], undefined> | 'inherit';
|
56
|
+
type VariantWithInherit = Exclude<UniversalTextProps['variant'], undefined> | 'inherit';
|
57
|
+
type TextProps<TagName extends TextElementTagName = TextElementTagName> = {
|
58
|
+
/** Ref passed to the inner container. */
|
59
|
+
ref?: Ref<HTMLElement>;
|
60
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
61
|
+
as?: TagName;
|
62
|
+
variant?: VariantWithInherit;
|
63
|
+
color?: ColorWithInherit;
|
64
|
+
} & JSX.IntrinsicElements[TagName] & Omit<UniversalTextProps, 'variant' | 'color'>;
|
65
|
+
/**
|
66
|
+
* **💬 A text element that can be used to display text**
|
67
|
+
*
|
68
|
+
* @description
|
69
|
+
* By default, the `Text` component uses text primary color and selects the
|
70
|
+
* correct font, weight, and leading. It also choices appropriate semantic
|
71
|
+
* HTML element based on the `variant` prop. For example, `body1` will use a
|
72
|
+
* `<p>` tag, `title1` uses an `<h1>`, etc. This behavior can be overridden
|
73
|
+
* with the `as` prop.
|
74
|
+
*
|
75
|
+
*
|
76
|
+
* @example
|
77
|
+
* ```tsx
|
78
|
+
* import { Text } from '@yahoo/uds';
|
79
|
+
*
|
80
|
+
* <Text variant="body1" color="primary">
|
81
|
+
* Text goes here
|
82
|
+
* </Text>
|
83
|
+
* ```
|
84
|
+
*
|
85
|
+
* @usage
|
86
|
+
* - Use `Text` to display text in your app.
|
87
|
+
* - Use `variant` to change the size and weight of the text.
|
88
|
+
* - Use `color` to change the color of the text.
|
89
|
+
* - Use `as` to change the HTML tag used to render the text.
|
90
|
+
*
|
91
|
+
* @see The {@link https://uds.build/docs/components/text Text Docs} for more info
|
92
|
+
*
|
93
|
+
* @related [ResponsiveText](https://uds.build/docs/components/responsive-text)
|
94
|
+
*/
|
95
|
+
declare const Text: react.ForwardRefExoticComponent<(Omit<{
|
96
|
+
/** Ref passed to the inner container. */
|
97
|
+
ref?: Ref<HTMLElement>;
|
98
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
99
|
+
as?: TextElementTagName | undefined;
|
100
|
+
variant?: VariantWithInherit;
|
101
|
+
color?: ColorWithInherit;
|
102
|
+
} & react.ClassAttributes<HTMLElement> & react.HTMLAttributes<HTMLElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
103
|
+
/** Ref passed to the inner container. */
|
104
|
+
ref?: Ref<HTMLElement>;
|
105
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
106
|
+
as?: TextElementTagName | undefined;
|
107
|
+
variant?: VariantWithInherit;
|
108
|
+
color?: ColorWithInherit;
|
109
|
+
} & react.ClassAttributes<HTMLHeadingElement> & react.HTMLAttributes<HTMLHeadingElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
110
|
+
/** Ref passed to the inner container. */
|
111
|
+
ref?: Ref<HTMLElement>;
|
112
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
113
|
+
as?: TextElementTagName | undefined;
|
114
|
+
variant?: VariantWithInherit;
|
115
|
+
color?: ColorWithInherit;
|
116
|
+
} & react.ClassAttributes<HTMLLabelElement> & react.LabelHTMLAttributes<HTMLLabelElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
117
|
+
/** Ref passed to the inner container. */
|
118
|
+
ref?: Ref<HTMLElement>;
|
119
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
120
|
+
as?: TextElementTagName | undefined;
|
121
|
+
variant?: VariantWithInherit;
|
122
|
+
color?: ColorWithInherit;
|
123
|
+
} & react.ClassAttributes<HTMLLIElement> & react.LiHTMLAttributes<HTMLLIElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
124
|
+
/** Ref passed to the inner container. */
|
125
|
+
ref?: Ref<HTMLElement>;
|
126
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
127
|
+
as?: TextElementTagName | undefined;
|
128
|
+
variant?: VariantWithInherit;
|
129
|
+
color?: ColorWithInherit;
|
130
|
+
} & react.ClassAttributes<HTMLParagraphElement> & react.HTMLAttributes<HTMLParagraphElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
131
|
+
/** Ref passed to the inner container. */
|
132
|
+
ref?: Ref<HTMLElement>;
|
133
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
134
|
+
as?: TextElementTagName | undefined;
|
135
|
+
variant?: VariantWithInherit;
|
136
|
+
color?: ColorWithInherit;
|
137
|
+
} & react.ClassAttributes<HTMLSpanElement> & react.HTMLAttributes<HTMLSpanElement> & Omit<UniversalTextProps, "color" | "variant">, "ref">) & react.RefAttributes<HTMLElement>>;
|
138
|
+
|
139
|
+
export { type InputProps as I, type TextProps as T, Text as a, Input as b };
|
@@ -0,0 +1,139 @@
|
|
1
|
+
import * as react from 'react';
|
2
|
+
import { InputHTMLAttributes, Ref } from 'react';
|
3
|
+
import { l as UniversalInputProps, m as IconPropsWithSVGProps, n as UniversalTextProps } from './types-BEsEvo0F.cjs';
|
4
|
+
import { HTMLMotionProps } from 'motion/react';
|
5
|
+
import { B as BoxProps } from './Box-CJ3zIj4N.cjs';
|
6
|
+
|
7
|
+
type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
|
8
|
+
type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
|
9
|
+
type DataAttributes = {
|
10
|
+
[name: `data-${string}`]: string;
|
11
|
+
};
|
12
|
+
interface InputProps extends NativeInputProps, UniversalInputProps {
|
13
|
+
/** The type of the input element. Reduced set of options from the HTML input type attribute.
|
14
|
+
* @default 'text'
|
15
|
+
*/
|
16
|
+
type?: Exclude<NativeInputProps['type'], 'button' | 'checkbox' | 'color' | 'file' | 'radio' | 'range' | 'reset' | 'submit' | 'search'>;
|
17
|
+
/** Props to be passed into various slots within the component. */
|
18
|
+
slotProps?: {
|
19
|
+
input?: Partial<InputHTMLAttributes<HTMLInputElement> & DataAttributes>;
|
20
|
+
inputWrapper?: Partial<BoxProps & DataAttributes>;
|
21
|
+
startIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
|
22
|
+
endIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
|
23
|
+
};
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* **📦 An input that allows users to enter text and collect data.**
|
27
|
+
*
|
28
|
+
* @componentType Client component
|
29
|
+
*
|
30
|
+
* @description
|
31
|
+
* An input field is a component that takes text typed into it. It can also serve as a way to display a selection and trigger a dropdown menu. Inputs are interactive elements that users can click, tap, or otherwise engage with to collect data and open dropdowns, or both.
|
32
|
+
*
|
33
|
+
* @see
|
34
|
+
* Check out the {@link https://uds.build/docs/components/input Input Docs} for more info
|
35
|
+
*
|
36
|
+
* @usage
|
37
|
+
* - Forms: For collecting data like names, emails, passwords, etc. (e.g., sign-up, login, or contact forms).
|
38
|
+
* - Search Bars: Allowing users to enter search queries to find content.
|
39
|
+
* - Filters/Settings: When users need to specify preferences, like selecting a date or adjusting a number value.
|
40
|
+
* - Feedback/Comments: Letting users leave reviews, comments, or feedback.
|
41
|
+
*
|
42
|
+
* @example
|
43
|
+
* ```tsx
|
44
|
+
* 'use client';
|
45
|
+
* import { Input } from "@yahoo/uds";
|
46
|
+
*
|
47
|
+
* <Input label="Name" placeholder="Enter your name" required />
|
48
|
+
*```
|
49
|
+
*
|
50
|
+
* @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
|
51
|
+
**/
|
52
|
+
declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
53
|
+
|
54
|
+
type TextElementTagName = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p' | 'strong' | 'span' | 'label' | 'li' | 'sup';
|
55
|
+
type ColorWithInherit = Exclude<UniversalTextProps['color'], undefined> | 'inherit';
|
56
|
+
type VariantWithInherit = Exclude<UniversalTextProps['variant'], undefined> | 'inherit';
|
57
|
+
type TextProps<TagName extends TextElementTagName = TextElementTagName> = {
|
58
|
+
/** Ref passed to the inner container. */
|
59
|
+
ref?: Ref<HTMLElement>;
|
60
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
61
|
+
as?: TagName;
|
62
|
+
variant?: VariantWithInherit;
|
63
|
+
color?: ColorWithInherit;
|
64
|
+
} & JSX.IntrinsicElements[TagName] & Omit<UniversalTextProps, 'variant' | 'color'>;
|
65
|
+
/**
|
66
|
+
* **💬 A text element that can be used to display text**
|
67
|
+
*
|
68
|
+
* @description
|
69
|
+
* By default, the `Text` component uses text primary color and selects the
|
70
|
+
* correct font, weight, and leading. It also choices appropriate semantic
|
71
|
+
* HTML element based on the `variant` prop. For example, `body1` will use a
|
72
|
+
* `<p>` tag, `title1` uses an `<h1>`, etc. This behavior can be overridden
|
73
|
+
* with the `as` prop.
|
74
|
+
*
|
75
|
+
*
|
76
|
+
* @example
|
77
|
+
* ```tsx
|
78
|
+
* import { Text } from '@yahoo/uds';
|
79
|
+
*
|
80
|
+
* <Text variant="body1" color="primary">
|
81
|
+
* Text goes here
|
82
|
+
* </Text>
|
83
|
+
* ```
|
84
|
+
*
|
85
|
+
* @usage
|
86
|
+
* - Use `Text` to display text in your app.
|
87
|
+
* - Use `variant` to change the size and weight of the text.
|
88
|
+
* - Use `color` to change the color of the text.
|
89
|
+
* - Use `as` to change the HTML tag used to render the text.
|
90
|
+
*
|
91
|
+
* @see The {@link https://uds.build/docs/components/text Text Docs} for more info
|
92
|
+
*
|
93
|
+
* @related [ResponsiveText](https://uds.build/docs/components/responsive-text)
|
94
|
+
*/
|
95
|
+
declare const Text: react.ForwardRefExoticComponent<(Omit<{
|
96
|
+
/** Ref passed to the inner container. */
|
97
|
+
ref?: Ref<HTMLElement>;
|
98
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
99
|
+
as?: TextElementTagName | undefined;
|
100
|
+
variant?: VariantWithInherit;
|
101
|
+
color?: ColorWithInherit;
|
102
|
+
} & react.ClassAttributes<HTMLElement> & react.HTMLAttributes<HTMLElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
103
|
+
/** Ref passed to the inner container. */
|
104
|
+
ref?: Ref<HTMLElement>;
|
105
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
106
|
+
as?: TextElementTagName | undefined;
|
107
|
+
variant?: VariantWithInherit;
|
108
|
+
color?: ColorWithInherit;
|
109
|
+
} & react.ClassAttributes<HTMLHeadingElement> & react.HTMLAttributes<HTMLHeadingElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
110
|
+
/** Ref passed to the inner container. */
|
111
|
+
ref?: Ref<HTMLElement>;
|
112
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
113
|
+
as?: TextElementTagName | undefined;
|
114
|
+
variant?: VariantWithInherit;
|
115
|
+
color?: ColorWithInherit;
|
116
|
+
} & react.ClassAttributes<HTMLLabelElement> & react.LabelHTMLAttributes<HTMLLabelElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
117
|
+
/** Ref passed to the inner container. */
|
118
|
+
ref?: Ref<HTMLElement>;
|
119
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
120
|
+
as?: TextElementTagName | undefined;
|
121
|
+
variant?: VariantWithInherit;
|
122
|
+
color?: ColorWithInherit;
|
123
|
+
} & react.ClassAttributes<HTMLLIElement> & react.LiHTMLAttributes<HTMLLIElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
124
|
+
/** Ref passed to the inner container. */
|
125
|
+
ref?: Ref<HTMLElement>;
|
126
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
127
|
+
as?: TextElementTagName | undefined;
|
128
|
+
variant?: VariantWithInherit;
|
129
|
+
color?: ColorWithInherit;
|
130
|
+
} & react.ClassAttributes<HTMLParagraphElement> & react.HTMLAttributes<HTMLParagraphElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
131
|
+
/** Ref passed to the inner container. */
|
132
|
+
ref?: Ref<HTMLElement>;
|
133
|
+
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
134
|
+
as?: TextElementTagName | undefined;
|
135
|
+
variant?: VariantWithInherit;
|
136
|
+
color?: ColorWithInherit;
|
137
|
+
} & react.ClassAttributes<HTMLSpanElement> & react.HTMLAttributes<HTMLSpanElement> & Omit<UniversalTextProps, "color" | "variant">, "ref">) & react.RefAttributes<HTMLElement>>;
|
138
|
+
|
139
|
+
export { type InputProps as I, type TextProps as T, Text as a, Input as b };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import {
|
3
|
-
import { B as BoxProps, D as DivProps } from './Box-
|
2
|
+
import { p as UniversalStackProps, q as UniversalDividerProps } from './types-rZt8SiS0.cjs';
|
3
|
+
import { B as BoxProps, D as DivProps } from './Box-B2DvoAMD.cjs';
|
4
4
|
|
5
5
|
interface DividerCoreProps extends Omit<BoxProps, 'color' | 'borderColor' | 'borderWidth'>, Omit<UniversalStackProps, 'separator' | 'asChild'>, Omit<UniversalDividerProps, 'variant'> {
|
6
6
|
layerClassNames?: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import {
|
3
|
-
import { B as BoxProps, D as DivProps } from './Box-
|
2
|
+
import { p as UniversalStackProps, q as UniversalDividerProps } from './types-BEsEvo0F.cjs';
|
3
|
+
import { B as BoxProps, D as DivProps } from './Box-CJ3zIj4N.cjs';
|
4
4
|
|
5
5
|
interface DividerCoreProps extends Omit<BoxProps, 'color' | 'borderColor' | 'borderWidth'>, Omit<UniversalStackProps, 'separator' | 'asChild'>, Omit<UniversalDividerProps, 'variant'> {
|
6
6
|
layerClassNames?: {
|