@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 +10 -10
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +2 -2
- package/dist/{preset-BOoMi8ge.js → preset-jXQwQ5KL.js} +7 -5
- package/dist/preset-jXQwQ5KL.js.map +1 -0
- package/dist/preset.js +1 -1
- package/dist/sprite.symbol.html +1 -1
- package/dist/styles.css +4 -3
- package/package.json +1 -1
- package/src/recipes/avatar.ts +2 -2
- package/src/recipes/button.ts +1 -0
- package/src/recipes/skeleton.ts +2 -2
- package/src/recipes/tag.ts +1 -0
- package/dist/preset-BOoMi8ge.js.map +0 -1
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-
|
|
22
|
-
import { o } from "./preset-
|
|
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: "
|
|
15006
|
-
sm: "
|
|
15007
|
-
md: "
|
|
15008
|
-
lg: "
|
|
15009
|
-
xl: "
|
|
15010
|
-
"2xl": "
|
|
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);
|