@jamsrui/textfield 0.0.8 → 0.1.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/README.md +1 -3
- package/dist/textfield-root.d.mts +1 -1
- package/dist/textfield-root.mjs +1 -1
- package/dist/textfield.mjs +1 -1
- package/dist/use-textfield.d.mts +2 -0
- package/dist/use-textfield.mjs +1 -1
- package/package.json +5 -5
- package/dist/styles.d.mts +0 -5
- package/dist/styles.mjs +0 -1
- package/dist/textfield-config.d.mts +0 -19
- package/dist/textfield-config.mjs +0 -1
package/README.md
CHANGED
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
**A comprehensive React UI component library designed for developers, with Tailwind CSS integration for seamless styling.**
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
## 📖 **Overview**
|
|
7
6
|
|
|
8
7
|
[JamsrUI](https://jamsr-ui.jamsrworld.com) is designed to help developers build modern, fast and visually appealing web applications with ease.
|
|
9
8
|
|
|
10
|
-
## 🚀 Getting Started
|
|
9
|
+
## 🚀 Getting Started
|
|
11
10
|
|
|
12
11
|
Boost & Build your websites using [JamsrUI](https://jamsr-ui.jamsrworld.com).
|
|
13
12
|
|
|
@@ -37,4 +36,3 @@ We welcome contributions from developers of all skill levels!
|
|
|
37
36
|
## ⭐ Support the Project
|
|
38
37
|
|
|
39
38
|
If you find **JamsrUI** helpful, consider giving it a ⭐ on [GitHub](https://github.com/jamsrworld/jamsr-ui).
|
|
40
|
-
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { UIProps } from '@jamsrui/utils';
|
|
3
3
|
|
|
4
|
-
declare const TextfieldRoot: (
|
|
4
|
+
declare const TextfieldRoot: () => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
5
|
declare namespace TextfieldRoot {
|
|
6
6
|
interface Props extends UIProps<"div"> {
|
|
7
7
|
}
|
package/dist/textfield-root.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useRenderElement as
|
|
1
|
+
"use client";import{useRenderElement as t}from"@jamsrui/hooks";import{useTextFieldContext as o}from"./textfield-context.mjs";const p=()=>{const e=o();return t("div",{props:[e?.getRootProps({})??{}]})};export{p as TextfieldRoot};
|
package/dist/textfield.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as t}from"react/jsx-runtime";import{FieldA11yContext as l,useFieldA11y as n}from"@jamsrui/context";import{useRenderElement as x}from"@jamsrui/hooks";import{TextFieldContext as d}from"./textfield-context.mjs";import{useTextField as s}from"./use-textfield.mjs";const u=o=>{const e=s(o),r=n(),i=x("div",{props:[e.getRootProps({})]});return t(d,{value:e,children:t(l,{value:r,children:i})})};export{u as TextField};
|
package/dist/use-textfield.d.mts
CHANGED
|
@@ -3,6 +3,8 @@ import { TextfieldRoot } from './textfield-root.mjs';
|
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
5
|
declare const useTextField: (props: useTextField.Props) => {
|
|
6
|
+
isDisabled: boolean;
|
|
7
|
+
isInvalid: boolean | undefined;
|
|
6
8
|
getRootProps: PropGetter<TextfieldRoot.Props>;
|
|
7
9
|
};
|
|
8
10
|
declare namespace useTextField {
|
package/dist/use-textfield.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useCallback as
|
|
1
|
+
"use client";import{useCallback as s,useMemo as d}from"react";import{dataAttr as o}from"@jamsrui/utils";const n=r=>{const{disabled:e=!1,isInvalid:t,...a}=r,i=s(()=>({disabled:e,"data-disabled":o(e),"aria-disabled":o(e),"data-invalid":o(t),"aria-invalid":o(t),"data-slot":"textfield",...a}),[e,t,a]);return d(()=>({isDisabled:e,isInvalid:t,getRootProps:i}),[e,t,i])};export{n as useTextField};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/textfield",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/
|
|
9
|
-
"@jamsrui/
|
|
10
|
-
"@jamsrui/hooks": "^0.0
|
|
11
|
-
"@jamsrui/utils": "^0.0
|
|
8
|
+
"@jamsrui/core": "^0.1.0",
|
|
9
|
+
"@jamsrui/context": "^0.1.0",
|
|
10
|
+
"@jamsrui/hooks": "^0.1.0",
|
|
11
|
+
"@jamsrui/utils": "^0.1.0"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
package/dist/styles.d.mts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as _jamsrui_utils from '@jamsrui/utils';
|
|
2
|
-
|
|
3
|
-
declare const textFieldVariants: _jamsrui_utils.TVReturnType<{} | {} | {}, undefined, "group textfield flex flex-col gap-1", {} | {}, undefined, _jamsrui_utils.TVReturnType<unknown, undefined, "group textfield flex flex-col gap-1", unknown, unknown, undefined>>;
|
|
4
|
-
|
|
5
|
-
export { textFieldVariants };
|
package/dist/styles.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{tv as t}from"@jamsrui/utils";const o=t({base:"group textfield flex flex-col gap-1"});export{o as textFieldVariants};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { WithGlobalConfig } from '@jamsrui/core';
|
|
3
|
-
import { TextField } from './textfield.mjs';
|
|
4
|
-
import './use-textfield.mjs';
|
|
5
|
-
import '@jamsrui/utils';
|
|
6
|
-
import './textfield-root.mjs';
|
|
7
|
-
import 'react';
|
|
8
|
-
|
|
9
|
-
declare const useTextFieldConfig: () => TextFieldConfig.Props;
|
|
10
|
-
declare const TextFieldConfig: (props: Omit<Partial<TextFieldConfig.Props>, "children"> & {
|
|
11
|
-
merge?: boolean;
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
14
|
-
declare namespace TextFieldConfig {
|
|
15
|
-
interface Props extends WithGlobalConfig<TextField.Props> {
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { TextFieldConfig, useTextFieldConfig };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{createConfigContext as e}from"@jamsrui/utils";const[r,n]=e({displayName:"TextFieldConfigContext"});export{r as TextFieldConfig,n as useTextFieldConfig};
|