@nation-a/ui 0.11.7 → 0.11.8
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/index.cjs +15 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/styled-system/styles.css +4 -0
- package/dist/types/components/Input/Input.stories.d.ts +1 -0
- package/dist/types/components/Input/index.d.ts +1 -0
- package/dist/types/components/Input/input.recipe.d.ts +7 -0
- package/dist/types/components/TextArea/TextArea.stories.d.ts +1 -0
- package/dist/types/components/TextArea/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -14259,6 +14259,13 @@ const inputRecipe = sva({
|
|
|
14259
14259
|
}
|
|
14260
14260
|
}
|
|
14261
14261
|
},
|
|
14262
|
+
removeBorder: {
|
|
14263
|
+
true: {
|
|
14264
|
+
inputContainer: {
|
|
14265
|
+
border: "0"
|
|
14266
|
+
}
|
|
14267
|
+
}
|
|
14268
|
+
},
|
|
14262
14269
|
variant: {
|
|
14263
14270
|
solid: {
|
|
14264
14271
|
inputContainer: {
|
|
@@ -14371,7 +14378,8 @@ const inputRecipe = sva({
|
|
|
14371
14378
|
isTextArea: false,
|
|
14372
14379
|
variant: "solid",
|
|
14373
14380
|
color: "neutral",
|
|
14374
|
-
radius: "md"
|
|
14381
|
+
radius: "md",
|
|
14382
|
+
removeBorder: false
|
|
14375
14383
|
}
|
|
14376
14384
|
});
|
|
14377
14385
|
const Input = React.forwardRef(
|
|
@@ -14390,12 +14398,14 @@ const Input = React.forwardRef(
|
|
|
14390
14398
|
css: css2,
|
|
14391
14399
|
startAdornment,
|
|
14392
14400
|
endAdornment,
|
|
14401
|
+
removeBorder,
|
|
14393
14402
|
...rest
|
|
14394
14403
|
}, ref) => {
|
|
14395
14404
|
const recipe = inputRecipe({
|
|
14396
14405
|
variant,
|
|
14397
14406
|
color: color2,
|
|
14398
|
-
radius
|
|
14407
|
+
radius,
|
|
14408
|
+
removeBorder
|
|
14399
14409
|
});
|
|
14400
14410
|
const innerRef = React.useRef(null);
|
|
14401
14411
|
const inputRef = ref || innerRef;
|
|
@@ -14464,6 +14474,7 @@ const Textarea = React.forwardRef(
|
|
|
14464
14474
|
onChange,
|
|
14465
14475
|
className,
|
|
14466
14476
|
css: css2,
|
|
14477
|
+
removeBorder,
|
|
14467
14478
|
...rest
|
|
14468
14479
|
}, ref) => {
|
|
14469
14480
|
const [count, setCount] = React.useState((value == null ? void 0 : value.toString().length) || 0);
|
|
@@ -14471,7 +14482,8 @@ const Textarea = React.forwardRef(
|
|
|
14471
14482
|
variant,
|
|
14472
14483
|
color: color2,
|
|
14473
14484
|
radius,
|
|
14474
|
-
isTextArea: true
|
|
14485
|
+
isTextArea: true,
|
|
14486
|
+
removeBorder
|
|
14475
14487
|
});
|
|
14476
14488
|
const innerRef = React.useRef(null);
|
|
14477
14489
|
const inputRef = ref || innerRef;
|