@nation-a/ui 0.10.5 → 0.10.7

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 CHANGED
@@ -10096,7 +10096,7 @@ Tag.displayName = "Tag";
10096
10096
  const index$2 = React.memo(Tag);
10097
10097
  const inputRecipe = sva({
10098
10098
  className: "input",
10099
- slots: ["inputContainer", "requiredStar", "description", "label", "textLengthIndicator"],
10099
+ slots: ["inputContainer", "requiredStar", "description", "label", "textLengthIndicator", "adornment"],
10100
10100
  base: {
10101
10101
  inputContainer: {
10102
10102
  display: "flex",
@@ -10148,6 +10148,11 @@ const inputRecipe = sva({
10148
10148
  textStyle: "label.sm",
10149
10149
  color: "content.neutral.subtlest",
10150
10150
  _groupDisabled: { color: "content.neutral.disabled" }
10151
+ },
10152
+ adornment: {
10153
+ display: "flex",
10154
+ alignItems: "center",
10155
+ justifyContent: "center"
10151
10156
  }
10152
10157
  },
10153
10158
  variants: {
@@ -10298,6 +10303,8 @@ const Input = React.forwardRef(
10298
10303
  onChange,
10299
10304
  className,
10300
10305
  css: css2,
10306
+ startAdornment,
10307
+ endAdornment,
10301
10308
  ...rest
10302
10309
  }, ref) => {
10303
10310
  const recipe = inputRecipe({
@@ -10341,9 +10348,14 @@ const Input = React.forwardRef(
10341
10348
  );
10342
10349
  return /* @__PURE__ */ jsxRuntime.jsxs(VStack2, { gap: 1, className: "group", "data-disabled": disabled || void 0, css: { width: "100%" }, children: [
10343
10350
  /* @__PURE__ */ jsxRuntime.jsx(Label, { visible: !!(label && labelPosition === "outside"), children: label }),
10344
- /* @__PURE__ */ jsxRuntime.jsxs(Stack2, { gap: 1, className: cx(recipe.inputContainer, className), onClick: handleContainerClick, css: css2, children: [
10345
- /* @__PURE__ */ jsxRuntime.jsx(Label, { visible: !!(label && labelPosition === "inside"), children: label }),
10346
- /* @__PURE__ */ jsxRuntime.jsx(styled.input, { ref: inputRef, disabled, onChange: handleInputChange, ...rest })
10351
+ " ",
10352
+ /* @__PURE__ */ jsxRuntime.jsxs(HStack$1, { className: cx(recipe.inputContainer, className), onClick: handleContainerClick, css: css2, children: [
10353
+ /* @__PURE__ */ jsxRuntime.jsx(Box$1, { className: recipe.adornment, children: startAdornment }),
10354
+ /* @__PURE__ */ jsxRuntime.jsxs(Stack2, { gap: 1, css: { width: "100%" }, children: [
10355
+ /* @__PURE__ */ jsxRuntime.jsx(Label, { visible: !!(label && labelPosition === "inside"), children: label }),
10356
+ /* @__PURE__ */ jsxRuntime.jsx(styled.input, { ref: inputRef, disabled, onChange: handleInputChange, ...rest })
10357
+ ] }),
10358
+ /* @__PURE__ */ jsxRuntime.jsx(Box$1, { className: recipe.adornment, children: endAdornment })
10347
10359
  ] }),
10348
10360
  description && /* @__PURE__ */ jsxRuntime.jsx(Description2, { children: description })
10349
10361
  ] });