@nation-a/ui 0.11.10 → 0.13.0
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 +84 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +84 -4
- package/dist/index.js.map +1 -1
- package/dist/styled-system/styles.css +169 -18
- package/dist/types/components/CheckBox/checkbox.recipe.d.ts +16 -0
- package/dist/types/components/CheckBox/checkbox.stories.d.ts +10 -0
- package/dist/types/components/CheckBox/checkbox.styled.d.ts +16 -0
- package/dist/types/components/CheckBox/index.d.ts +4 -0
- package/dist/types/components/Select/Select.stories.d.ts +21 -0
- package/dist/types/components/Select/index.d.ts +32 -0
- package/dist/types/components/Select/select.recipe.d.ts +32 -0
- package/dist/types/components/Toast/Toast.stories.d.ts +1 -0
- package/dist/types/components/Toast/index.d.ts +1 -0
- package/package.json +4 -3
package/dist/index.cjs
CHANGED
|
@@ -14179,6 +14179,31 @@ const tagRecipe = cva({
|
|
|
14179
14179
|
avatar: false
|
|
14180
14180
|
}
|
|
14181
14181
|
});
|
|
14182
|
+
function O$1({ size: C2 = 24, color: n2 = "currentColor", ...o2 }) {
|
|
14183
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14184
|
+
"svg",
|
|
14185
|
+
{
|
|
14186
|
+
width: C2,
|
|
14187
|
+
height: C2,
|
|
14188
|
+
viewBox: "0 0 24 24",
|
|
14189
|
+
fill: "none",
|
|
14190
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14191
|
+
strokeWidth: "0",
|
|
14192
|
+
color: n2,
|
|
14193
|
+
...o2,
|
|
14194
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14195
|
+
"path",
|
|
14196
|
+
{
|
|
14197
|
+
id: "Exclude",
|
|
14198
|
+
fillRule: "evenodd",
|
|
14199
|
+
clipRule: "evenodd",
|
|
14200
|
+
d: "M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM15.9394 10.2439C16.2122 9.93215 16.1806 9.45833 15.8689 9.18557C15.5572 8.91281 15.0833 8.94439 14.8106 9.25612L11.3903 13.165L9.1444 11.009C8.84559 10.7221 8.37082 10.7318 8.08396 11.0306C7.7971 11.3294 7.80679 11.8042 8.1056 12.091L10.9181 14.791C11.0659 14.933 11.2654 15.0082 11.4701 14.9993C11.6748 14.9904 11.867 14.8981 12.0019 14.7439L15.9394 10.2439Z",
|
|
14201
|
+
fill: "currentColor"
|
|
14202
|
+
}
|
|
14203
|
+
)
|
|
14204
|
+
}
|
|
14205
|
+
);
|
|
14206
|
+
}
|
|
14182
14207
|
function P$1({ size: C2 = 24, color: n2 = "currentColor", ...o2 }) {
|
|
14183
14208
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14184
14209
|
"svg",
|
|
@@ -14204,6 +14229,31 @@ function P$1({ size: C2 = 24, color: n2 = "currentColor", ...o2 }) {
|
|
|
14204
14229
|
}
|
|
14205
14230
|
);
|
|
14206
14231
|
}
|
|
14232
|
+
function G({ size: C2 = 24, color: n2 = "currentColor", ...o2 }) {
|
|
14233
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14234
|
+
"svg",
|
|
14235
|
+
{
|
|
14236
|
+
width: C2,
|
|
14237
|
+
height: C2,
|
|
14238
|
+
viewBox: "0 0 24 24",
|
|
14239
|
+
fill: "none",
|
|
14240
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14241
|
+
strokeWidth: "0",
|
|
14242
|
+
color: n2,
|
|
14243
|
+
...o2,
|
|
14244
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14245
|
+
"path",
|
|
14246
|
+
{
|
|
14247
|
+
id: "Exclude",
|
|
14248
|
+
fillRule: "evenodd",
|
|
14249
|
+
clipRule: "evenodd",
|
|
14250
|
+
d: "M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM8.43431 8.43398C8.74673 8.12156 9.25326 8.12156 9.56568 8.43398L12.0003 10.8686L14.4343 8.43455C14.7467 8.12213 15.2533 8.12213 15.5657 8.43455C15.8781 8.74697 15.8781 9.2535 15.5657 9.56592L13.1316 12L15.5657 14.434C15.8781 14.7464 15.8781 15.2529 15.5657 15.5653C15.2533 15.8778 14.7467 15.8778 14.4343 15.5653L12.0003 13.1313L9.56568 15.5659C9.25326 15.8783 8.74673 15.8783 8.43431 15.5659C8.12189 15.2535 8.12189 14.747 8.43431 14.4346L10.8689 12L8.43431 9.56535C8.12189 9.25293 8.12189 8.7464 8.43431 8.43398Z",
|
|
14251
|
+
fill: "currentColor"
|
|
14252
|
+
}
|
|
14253
|
+
)
|
|
14254
|
+
}
|
|
14255
|
+
);
|
|
14256
|
+
}
|
|
14207
14257
|
const Tag = React.forwardRef(({ imageSrc, text, onDeleteClick, ...rest }, ref) => {
|
|
14208
14258
|
const StyledTag = styled(ark.div, tagRecipe);
|
|
14209
14259
|
const handleClickDelete = (e2) => {
|
|
@@ -15173,10 +15223,10 @@ const toastRecipe = sva({
|
|
|
15173
15223
|
height: "fit-content",
|
|
15174
15224
|
minHeight: "48px",
|
|
15175
15225
|
width: "fit-content",
|
|
15176
|
-
maxWidth: "
|
|
15226
|
+
maxWidth: "350px",
|
|
15177
15227
|
overflowWrap: "anywhere",
|
|
15178
15228
|
zIndex: "overlay",
|
|
15179
|
-
|
|
15229
|
+
textStyle: "body.md",
|
|
15180
15230
|
color: "content.neutralInverse.bold",
|
|
15181
15231
|
px: 3,
|
|
15182
15232
|
py: 2,
|
|
@@ -15202,6 +15252,7 @@ const toastRecipe = sva({
|
|
|
15202
15252
|
px: 4,
|
|
15203
15253
|
pr: 1,
|
|
15204
15254
|
whiteSpace: "nowrap",
|
|
15255
|
+
transition: "opacity 0.2s ease",
|
|
15205
15256
|
color: "content.neutralInverse.bold",
|
|
15206
15257
|
"&:hover": {
|
|
15207
15258
|
opacity: 0.8
|
|
@@ -15288,7 +15339,8 @@ const Toaster = () => {
|
|
|
15288
15339
|
background: "transparent",
|
|
15289
15340
|
boxShadow: "none",
|
|
15290
15341
|
padding: 0,
|
|
15291
|
-
margin: 0
|
|
15342
|
+
margin: 0,
|
|
15343
|
+
width: "100%"
|
|
15292
15344
|
}
|
|
15293
15345
|
}
|
|
15294
15346
|
}
|
|
@@ -15332,12 +15384,40 @@ Toast.show = (description, option) => {
|
|
|
15332
15384
|
}
|
|
15333
15385
|
);
|
|
15334
15386
|
};
|
|
15387
|
+
Toast.success = (description, option) => {
|
|
15388
|
+
Vt(
|
|
15389
|
+
(t2) => /* @__PURE__ */ jsxRuntime.jsxs(Toast.Root, { width: (option == null ? void 0 : option.actionLabel) ? "full" : "fit", children: [
|
|
15390
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Toast.Content, { children: [
|
|
15391
|
+
/* @__PURE__ */ jsxRuntime.jsx(Toast.Icon, { icon: (option == null ? void 0 : option.icon) ?? /* @__PURE__ */ jsxRuntime.jsx(O$1, {}) }),
|
|
15392
|
+
/* @__PURE__ */ jsxRuntime.jsx(Toast.Description, { children: description })
|
|
15393
|
+
] }),
|
|
15394
|
+
(option == null ? void 0 : option.actionLabel) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
15395
|
+
Toast.ActionTrigger,
|
|
15396
|
+
{
|
|
15397
|
+
asLink: option == null ? void 0 : option.asLink,
|
|
15398
|
+
onClick: () => {
|
|
15399
|
+
var _a;
|
|
15400
|
+
(_a = option == null ? void 0 : option.onActionClick) == null ? void 0 : _a.call(option);
|
|
15401
|
+
if (!(option == null ? void 0 : option.disableCloseOnActionClick)) {
|
|
15402
|
+
Vt.dismiss(t2.id);
|
|
15403
|
+
}
|
|
15404
|
+
},
|
|
15405
|
+
children: option == null ? void 0 : option.actionLabel
|
|
15406
|
+
}
|
|
15407
|
+
)
|
|
15408
|
+
] }),
|
|
15409
|
+
{
|
|
15410
|
+
duration: (option == null ? void 0 : option.duration) || DEFAULT_DURATION,
|
|
15411
|
+
position: "bottom-center"
|
|
15412
|
+
}
|
|
15413
|
+
);
|
|
15414
|
+
};
|
|
15335
15415
|
Toast.error = (description, option) => {
|
|
15336
15416
|
console.error("error", description);
|
|
15337
15417
|
Vt(
|
|
15338
15418
|
(t2) => /* @__PURE__ */ jsxRuntime.jsxs(Toast.Root, { width: (option == null ? void 0 : option.actionLabel) ? "full" : "fit", children: [
|
|
15339
15419
|
/* @__PURE__ */ jsxRuntime.jsxs(Toast.Content, { children: [
|
|
15340
|
-
|
|
15420
|
+
/* @__PURE__ */ jsxRuntime.jsx(Toast.Icon, { icon: (option == null ? void 0 : option.icon) ?? /* @__PURE__ */ jsxRuntime.jsx(G, {}) }),
|
|
15341
15421
|
/* @__PURE__ */ jsxRuntime.jsx(Toast.Description, { children: description })
|
|
15342
15422
|
] }),
|
|
15343
15423
|
(option == null ? void 0 : option.actionLabel) && /* @__PURE__ */ jsxRuntime.jsx(
|