Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,8 @@ function inputStyles(theme, props) {
height: sizeConfig.height,
fontSize: sizeConfig.fontSize,
padding: sizeConfig.padding,
paddingLeft: hasLeftSection ? "2.25rem" : void 0,
paddingRight: hasRightSection ? "2.25rem" : void 0,
paddingLeft: hasLeftSection ? "2.25rem" : sizeConfig.padding.split(" ")[1],
paddingRight: hasRightSection ? "2.25rem" : sizeConfig.padding.split(" ")[1],
fontFamily: "var(--nui-font-family)",
borderRadius: `var(--nui-radius-${radius})`,
borderWidth: "1px",
Expand Down
2 changes: 1 addition & 1 deletion dist/index.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nui-react",
"version": "0.1.1",
"version": "0.1.2",
"description": "A React UI library with custom initialization, powerful theming, and zero external dependencies.",
"keywords": [
"react",
Expand Down
8 changes: 2 additions & 6 deletions src/components/Input/styles.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import type { Theme, Size, RadiusSize } from "../../theme/types";
import type { StylesDefinition } from "../../styles/use-styles";

// ──────────────────────────────────────────────
// Input Style Generator
// ──────────────────────────────────────────────

interface InputStyleProps {
size: Size;
radius: RadiusSize;
Expand Down Expand Up @@ -54,8 +50,8 @@ export function inputStyles(theme: Theme, props: InputStyleProps): StylesDefinit
height: sizeConfig.height,
fontSize: sizeConfig.fontSize,
padding: sizeConfig.padding,
paddingLeft: hasLeftSection ? "2.25rem" : undefined,
paddingRight: hasRightSection ? "2.25rem" : undefined,
paddingLeft: hasLeftSection ? "2.25rem" : sizeConfig.padding.split(' ')[1],
paddingRight: hasRightSection ? "2.25rem" : sizeConfig.padding.split(' ')[1],
fontFamily: "var(--nui-font-family)",
borderRadius: `var(--nui-radius-${radius})`,
borderWidth: "1px",
Expand Down