@noya-app/noya-designsystem 0.1.96 → 0.1.97

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.mjs CHANGED
@@ -21722,9 +21722,10 @@ var noop6 = () => {
21722
21722
  var getFieldSpacing = ({
21723
21723
  endWidth = 0,
21724
21724
  startWidth = 0,
21725
+ startInset,
21725
21726
  variant
21726
21727
  }) => ({
21727
- paddingLeft: `${variant === "bare" ? startWidth : startWidth ? startWidth + 12 : 8}px`,
21728
+ paddingLeft: `${variant === "bare" ? startWidth : startInset !== void 0 && startWidth ? startInset + startWidth + 5 : startWidth ? startWidth + 12 : 8}px`,
21728
21729
  paddingRight: `${variant === "bare" ? endWidth : endWidth ? endWidth + 12 : 8}px`
21729
21730
  });
21730
21731
  var InputFieldDropdownMenu = memoGeneric(function InputFieldDropdownMenu2({ id, items, onSelect, children }) {
@@ -21815,7 +21816,7 @@ var InputElement = forwardRef64(
21815
21816
  attachInputRef = true,
21816
21817
  ...props
21817
21818
  }, forwardedRef) => {
21818
- const { endWidth, inputRef, size: size4, id, startWidth } = useInputFieldContext();
21819
+ const { endWidth, inputRef, size: size4, id, startWidth, startInset } = useInputFieldContext();
21819
21820
  const ref = useMergeRefs(
21820
21821
  attachInputRef ? inputRef : null,
21821
21822
  forwardedRef
@@ -21823,7 +21824,8 @@ var InputElement = forwardRef64(
21823
21824
  const spacingStyles = getFieldSpacing({
21824
21825
  endWidth,
21825
21826
  variant: $variant,
21826
- startWidth
21827
+ startWidth,
21828
+ startInset
21827
21829
  });
21828
21830
  const inputClassName = cx(
21829
21831
  "n-flex n-w-0 n-flex-1 n-relative n-border-0 n-outline-none n-min-w-0 n-self-stretch n-rounded n-bg-input-background focus:n-ring-2 focus:n-ring-primary placeholder:n-text-text-disabled n-transition-[box-shadow]",
@@ -22005,6 +22007,7 @@ function InputFieldRoot({
22005
22007
  width,
22006
22008
  sideOffset = 3,
22007
22009
  startWidth: startWidthProp,
22010
+ startInset,
22008
22011
  endWidth: endWidthProp,
22009
22012
  size: size4 = "medium",
22010
22013
  renderPopoverContent,
@@ -22042,6 +22045,7 @@ function InputFieldRoot({
22042
22045
  const contextValue = useMemo42(
22043
22046
  () => ({
22044
22047
  startWidth,
22048
+ startInset,
22045
22049
  endWidth,
22046
22050
  inputRef,
22047
22051
  startRef,
@@ -22051,7 +22055,16 @@ function InputFieldRoot({
22051
22055
  onFocusChange: handleFocusChange,
22052
22056
  id: id ?? randomId
22053
22057
  }),
22054
- [startWidth, endWidth, size4, isFocused, handleFocusChange, id, randomId]
22058
+ [
22059
+ startWidth,
22060
+ startInset,
22061
+ endWidth,
22062
+ size4,
22063
+ isFocused,
22064
+ handleFocusChange,
22065
+ id,
22066
+ randomId
22067
+ ]
22055
22068
  );
22056
22069
  const insetLabel = useMemo42(
22057
22070
  () => /* @__PURE__ */ React167.createElement(Label, { htmlFor: id, className: "!n-text-text-disabled" }, labelProp ?? label),
@@ -22066,7 +22079,15 @@ function InputFieldRoot({
22066
22079
  className
22067
22080
  },
22068
22081
  children,
22069
- start && /* @__PURE__ */ React167.createElement("span", { ref: startRef, className: cx(startBaseStyles, startClassName) }, start),
22082
+ start && /* @__PURE__ */ React167.createElement(
22083
+ "span",
22084
+ {
22085
+ ref: startRef,
22086
+ className: cx(startBaseStyles, startClassName),
22087
+ style: startInset !== void 0 ? { left: startInset } : void 0
22088
+ },
22089
+ start
22090
+ ),
22070
22091
  (end || label) && /* @__PURE__ */ React167.createElement(
22071
22092
  "span",
22072
22093
  {