@okshaun/components 4.1.2 → 4.1.4
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/icon-metadata.json +112 -16
- package/dist/index.js +6 -9
- package/dist/index.js.map +1 -1
- package/dist/{preset-CR-InSvq.js → preset-BOoMi8ge.js} +5 -3
- package/dist/preset-BOoMi8ge.js.map +1 -0
- package/dist/preset.js +1 -1
- package/dist/sprite.symbol.html +113 -17
- package/dist/styles.css +1 -0
- package/package.json +1 -1
- package/src/recipes/button.ts +3 -1
- package/dist/preset-CR-InSvq.js.map +0 -1
package/dist/icon-metadata.json
CHANGED
|
@@ -1088,51 +1088,147 @@
|
|
|
1088
1088
|
"deprecated": false
|
|
1089
1089
|
},
|
|
1090
1090
|
"chevron-down": {
|
|
1091
|
-
"aliases": [
|
|
1091
|
+
"aliases": [
|
|
1092
|
+
"chevron",
|
|
1093
|
+
"directional",
|
|
1094
|
+
"pointer",
|
|
1095
|
+
"pointing",
|
|
1096
|
+
"arrowhead",
|
|
1097
|
+
"arrows",
|
|
1098
|
+
"stroke",
|
|
1099
|
+
"down",
|
|
1100
|
+
"expand",
|
|
1101
|
+
"open"
|
|
1102
|
+
],
|
|
1092
1103
|
"tags": [],
|
|
1093
|
-
"category":
|
|
1104
|
+
"category": "Arrows",
|
|
1094
1105
|
"deprecated": false
|
|
1095
1106
|
},
|
|
1096
1107
|
"chevron-filled-down": {
|
|
1097
|
-
"aliases": [
|
|
1108
|
+
"aliases": [
|
|
1109
|
+
"chevron",
|
|
1110
|
+
"directional",
|
|
1111
|
+
"pointer",
|
|
1112
|
+
"pointing",
|
|
1113
|
+
"arrowhead",
|
|
1114
|
+
"arrows",
|
|
1115
|
+
"filled",
|
|
1116
|
+
"solid",
|
|
1117
|
+
"triangle",
|
|
1118
|
+
"down",
|
|
1119
|
+
"expand",
|
|
1120
|
+
"open"
|
|
1121
|
+
],
|
|
1098
1122
|
"tags": [],
|
|
1099
|
-
"category":
|
|
1123
|
+
"category": "Arrows",
|
|
1100
1124
|
"deprecated": false
|
|
1101
1125
|
},
|
|
1102
1126
|
"chevron-filled-left": {
|
|
1103
|
-
"aliases": [
|
|
1127
|
+
"aliases": [
|
|
1128
|
+
"chevron",
|
|
1129
|
+
"directional",
|
|
1130
|
+
"pointer",
|
|
1131
|
+
"pointing",
|
|
1132
|
+
"arrowhead",
|
|
1133
|
+
"arrows",
|
|
1134
|
+
"filled",
|
|
1135
|
+
"solid",
|
|
1136
|
+
"triangle",
|
|
1137
|
+
"left",
|
|
1138
|
+
"back",
|
|
1139
|
+
"previous"
|
|
1140
|
+
],
|
|
1104
1141
|
"tags": [],
|
|
1105
|
-
"category":
|
|
1142
|
+
"category": "Arrows",
|
|
1106
1143
|
"deprecated": false
|
|
1107
1144
|
},
|
|
1108
1145
|
"chevron-filled-right": {
|
|
1109
|
-
"aliases": [
|
|
1146
|
+
"aliases": [
|
|
1147
|
+
"chevron",
|
|
1148
|
+
"directional",
|
|
1149
|
+
"pointer",
|
|
1150
|
+
"pointing",
|
|
1151
|
+
"arrowhead",
|
|
1152
|
+
"arrows",
|
|
1153
|
+
"filled",
|
|
1154
|
+
"solid",
|
|
1155
|
+
"triangle",
|
|
1156
|
+
"right",
|
|
1157
|
+
"forward",
|
|
1158
|
+
"next"
|
|
1159
|
+
],
|
|
1110
1160
|
"tags": [],
|
|
1111
|
-
"category":
|
|
1161
|
+
"category": "Arrows",
|
|
1112
1162
|
"deprecated": false
|
|
1113
1163
|
},
|
|
1114
1164
|
"chevron-filled-up": {
|
|
1115
|
-
"aliases": [
|
|
1165
|
+
"aliases": [
|
|
1166
|
+
"chevron",
|
|
1167
|
+
"directional",
|
|
1168
|
+
"pointer",
|
|
1169
|
+
"pointing",
|
|
1170
|
+
"arrowhead",
|
|
1171
|
+
"arrows",
|
|
1172
|
+
"filled",
|
|
1173
|
+
"solid",
|
|
1174
|
+
"triangle",
|
|
1175
|
+
"up",
|
|
1176
|
+
"collapse",
|
|
1177
|
+
"close"
|
|
1178
|
+
],
|
|
1116
1179
|
"tags": [],
|
|
1117
|
-
"category":
|
|
1180
|
+
"category": "Arrows",
|
|
1118
1181
|
"deprecated": false
|
|
1119
1182
|
},
|
|
1120
1183
|
"chevron-left": {
|
|
1121
|
-
"aliases": [
|
|
1184
|
+
"aliases": [
|
|
1185
|
+
"chevron",
|
|
1186
|
+
"directional",
|
|
1187
|
+
"pointer",
|
|
1188
|
+
"pointing",
|
|
1189
|
+
"arrowhead",
|
|
1190
|
+
"arrows",
|
|
1191
|
+
"stroke",
|
|
1192
|
+
"left",
|
|
1193
|
+
"back",
|
|
1194
|
+
"previous"
|
|
1195
|
+
],
|
|
1122
1196
|
"tags": [],
|
|
1123
|
-
"category":
|
|
1197
|
+
"category": "Arrows",
|
|
1124
1198
|
"deprecated": false
|
|
1125
1199
|
},
|
|
1126
1200
|
"chevron-right": {
|
|
1127
|
-
"aliases": [
|
|
1201
|
+
"aliases": [
|
|
1202
|
+
"chevron",
|
|
1203
|
+
"directional",
|
|
1204
|
+
"pointer",
|
|
1205
|
+
"pointing",
|
|
1206
|
+
"arrowhead",
|
|
1207
|
+
"arrows",
|
|
1208
|
+
"stroke",
|
|
1209
|
+
"right",
|
|
1210
|
+
"forward",
|
|
1211
|
+
"next"
|
|
1212
|
+
],
|
|
1128
1213
|
"tags": [],
|
|
1129
|
-
"category":
|
|
1214
|
+
"category": "Arrows",
|
|
1130
1215
|
"deprecated": false
|
|
1131
1216
|
},
|
|
1132
1217
|
"chevron-up": {
|
|
1133
|
-
"aliases": [
|
|
1218
|
+
"aliases": [
|
|
1219
|
+
"chevron",
|
|
1220
|
+
"directional",
|
|
1221
|
+
"pointer",
|
|
1222
|
+
"pointing",
|
|
1223
|
+
"arrowhead",
|
|
1224
|
+
"arrows",
|
|
1225
|
+
"stroke",
|
|
1226
|
+
"up",
|
|
1227
|
+
"collapse",
|
|
1228
|
+
"close"
|
|
1229
|
+
],
|
|
1134
1230
|
"tags": [],
|
|
1135
|
-
"category":
|
|
1231
|
+
"category": "Arrows",
|
|
1136
1232
|
"deprecated": false
|
|
1137
1233
|
},
|
|
1138
1234
|
"circle": {
|
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-BOoMi8ge.js";
|
|
22
|
+
import { o } from "./preset-BOoMi8ge.js";
|
|
23
23
|
function hasWindow() {
|
|
24
24
|
return typeof window !== "undefined";
|
|
25
25
|
}
|
|
@@ -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);
|
|
@@ -15492,9 +15492,6 @@ const Button = (props) => {
|
|
|
15492
15492
|
}
|
|
15493
15493
|
);
|
|
15494
15494
|
};
|
|
15495
|
-
const renderIcon = (name) => {
|
|
15496
|
-
return /* @__PURE__ */ jsx(Box, { className: classes.slot, children: /* @__PURE__ */ jsx(Icon, { name, "aria-hidden": true }) });
|
|
15497
|
-
};
|
|
15498
15495
|
return /* @__PURE__ */ jsxs(
|
|
15499
15496
|
Box,
|
|
15500
15497
|
{
|
|
@@ -15523,9 +15520,9 @@ const Button = (props) => {
|
|
|
15523
15520
|
...otherProps,
|
|
15524
15521
|
children: [
|
|
15525
15522
|
/* @__PURE__ */ jsxs(HStack, { gap: gap ?? "4", opacity: loading ? 0 : 1, children: [
|
|
15526
|
-
before ? renderSlot(before, "before") : iconBefore ?
|
|
15523
|
+
before ? renderSlot(before, "before") : iconBefore ? renderSlot(/* @__PURE__ */ jsx(Icon, { name: iconBefore, "aria-hidden": true }), "before") : null,
|
|
15527
15524
|
/* @__PURE__ */ jsx(Box, { className: classes.mainContent, children }),
|
|
15528
|
-
after ? renderSlot(after, "after") : iconAfter ?
|
|
15525
|
+
after ? renderSlot(after, "after") : iconAfter ? renderSlot(/* @__PURE__ */ jsx(Icon, { name: iconAfter, "aria-hidden": true }), "after") : null
|
|
15529
15526
|
] }),
|
|
15530
15527
|
loading && /* @__PURE__ */ jsx(
|
|
15531
15528
|
Spinner,
|
|
@@ -23317,7 +23314,7 @@ const TextInput = (props) => {
|
|
|
23317
23314
|
autoComplete = "off",
|
|
23318
23315
|
...rest
|
|
23319
23316
|
} = props;
|
|
23320
|
-
const resolvedSize = sizeProp ?? (fieldContext == null ? void 0 : fieldContext.size);
|
|
23317
|
+
const resolvedSize = sizeProp ?? (fieldContext == null ? void 0 : fieldContext.size) ?? "md";
|
|
23321
23318
|
const resolvedError = error2 ?? (fieldContext == null ? void 0 : fieldContext.error);
|
|
23322
23319
|
const resolvedInvalid = invalidProp ?? (fieldContext == null ? void 0 : fieldContext.invalid);
|
|
23323
23320
|
const resolvedDisabled = disabled ?? (fieldContext == null ? void 0 : fieldContext.disabled);
|