@okshaun/components 4.1.3 → 4.1.5

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.js CHANGED
@@ -18,8 +18,8 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
18
18
  import * as React from "react";
19
19
  import React__default, { useLayoutEffect, forwardRef, useMemo, createElement, createContext, useContext, useRef, useEffect, useState, useCallback, Children, isValidElement, useId as useId$1, useSyncExternalStore, cloneElement, useReducer } from "react";
20
20
  import * as ReactDOM from "react-dom";
21
- import { c as containerSizes, b as breakpoints } from "./preset-BOoMi8ge.js";
22
- import { o } from "./preset-BOoMi8ge.js";
21
+ import { c as containerSizes, b as breakpoints } from "./preset-jXQwQ5KL.js";
22
+ import { o } from "./preset-jXQwQ5KL.js";
23
23
  function hasWindow() {
24
24
  return typeof window !== "undefined";
25
25
  }
@@ -15002,12 +15002,12 @@ const statusStyles = {
15002
15002
  locked: css({ bg: "bg.neutral.bold", color: "icon.inverse" })
15003
15003
  };
15004
15004
  const sizeToStatusIconSize = {
15005
- xs: "8",
15006
- sm: "10",
15007
- md: "12",
15008
- lg: "14",
15009
- xl: "16",
15010
- "2xl": "20"
15005
+ xs: "4",
15006
+ sm: "6",
15007
+ md: "6",
15008
+ lg: "8",
15009
+ xl: "12",
15010
+ "2xl": "16"
15011
15011
  };
15012
15012
  function getInitials(name) {
15013
15013
  const parts = name.trim().split(/\s+/);
@@ -15462,7 +15462,7 @@ const Button = (props) => {
15462
15462
  gap,
15463
15463
  ...rest
15464
15464
  } = props;
15465
- const size2 = sizeProp ?? (slotContext == null ? void 0 : slotContext.size) ?? (fieldContext == null ? void 0 : fieldContext.size);
15465
+ const size2 = sizeProp ?? (slotContext == null ? void 0 : slotContext.size) ?? (fieldContext == null ? void 0 : fieldContext.size) ?? "md";
15466
15466
  const error2 = errorProp ?? (slotContext == null ? void 0 : slotContext.error) ?? (fieldContext == null ? void 0 : fieldContext.error);
15467
15467
  const invalid = invalidProp ?? (slotContext == null ? void 0 : slotContext.invalid) ?? (fieldContext == null ? void 0 : fieldContext.invalid);
15468
15468
  const resolvedDisabled = disabled ?? (slotContext == null ? void 0 : slotContext.disabled) ?? (fieldContext == null ? void 0 : fieldContext.disabled);
@@ -23314,7 +23314,7 @@ const TextInput = (props) => {
23314
23314
  autoComplete = "off",
23315
23315
  ...rest
23316
23316
  } = props;
23317
- const resolvedSize = sizeProp ?? (fieldContext == null ? void 0 : fieldContext.size);
23317
+ const resolvedSize = sizeProp ?? (fieldContext == null ? void 0 : fieldContext.size) ?? "md";
23318
23318
  const resolvedError = error2 ?? (fieldContext == null ? void 0 : fieldContext.error);
23319
23319
  const resolvedInvalid = invalidProp ?? (fieldContext == null ? void 0 : fieldContext.invalid);
23320
23320
  const resolvedDisabled = disabled ?? (fieldContext == null ? void 0 : fieldContext.disabled);