@deframe-sdk/components 0.1.16 → 0.1.17
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 +19 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -12
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +17 -9
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -231,14 +231,14 @@ function SecondaryButton(_a) {
|
|
|
231
231
|
].join(" ");
|
|
232
232
|
const stateClasses = {
|
|
233
233
|
enabled: [
|
|
234
|
-
"text-[color:var(--deframe-widget-color-
|
|
235
|
-
"border-[color:var(--deframe-widget-color-
|
|
234
|
+
"text-[color:var(--deframe-widget-color-brand-primary)]",
|
|
235
|
+
"border-[color:var(--deframe-widget-color-brand-primary)]",
|
|
236
236
|
"hover:opacity-90",
|
|
237
237
|
"cursor-pointer"
|
|
238
238
|
].join(" "),
|
|
239
239
|
disabled: [
|
|
240
|
-
"text-[color:var(--deframe-widget-color-
|
|
241
|
-
"border-[color:var(--deframe-widget-color-
|
|
240
|
+
"text-[color:var(--deframe-widget-color-brand-primary-disabled)]",
|
|
241
|
+
"border-[color:var(--deframe-widget-color-brand-primary-disabled)]",
|
|
242
242
|
"cursor-not-allowed"
|
|
243
243
|
].join(" ")
|
|
244
244
|
};
|
|
@@ -368,14 +368,21 @@ function InputField(_a) {
|
|
|
368
368
|
"transition-colors"
|
|
369
369
|
].join(" ");
|
|
370
370
|
const stateClasses = {
|
|
371
|
-
|
|
371
|
+
default: [
|
|
372
|
+
"border border-[var(--deframe-widget-color-border-primary)]",
|
|
373
|
+
"bg-[var(--deframe-widget-color-bg-raised)]"
|
|
374
|
+
].join(" "),
|
|
375
|
+
error: [
|
|
376
|
+
"border border-[var(--deframe-widget-color-state-error)]",
|
|
377
|
+
"bg-[var(--deframe-widget-color-bg-raised)]"
|
|
378
|
+
].join(" "),
|
|
372
379
|
disabled: [
|
|
373
380
|
"border",
|
|
374
381
|
"border-[var(--deframe-widget-color-border-primary-disabled)]",
|
|
382
|
+
"bg-[var(--deframe-widget-color-bg-raised-disabled)]",
|
|
375
383
|
"opacity-60",
|
|
376
384
|
"cursor-not-allowed"
|
|
377
|
-
].join(" ")
|
|
378
|
-
default: "border border-[var(--deframe-widget-color-border-primary)]"
|
|
385
|
+
].join(" ")
|
|
379
386
|
};
|
|
380
387
|
const stateKey = hasError ? "error" : disabled ? "disabled" : "default";
|
|
381
388
|
const fieldClasses = twMerge(baseClasses, stateClasses[stateKey], className);
|
|
@@ -418,12 +425,12 @@ function Link(_a) {
|
|
|
418
425
|
].join(" ");
|
|
419
426
|
const stateClasses = {
|
|
420
427
|
enabled: [
|
|
421
|
-
"text-[color:var(--deframe-widget-color-text-
|
|
422
|
-
"underline",
|
|
428
|
+
"text-[color:var(--deframe-widget-color-text-primary)]",
|
|
429
|
+
"hover:underline",
|
|
423
430
|
"cursor-pointer"
|
|
424
431
|
].join(" "),
|
|
425
432
|
disabled: [
|
|
426
|
-
"text-[color:var(--deframe-widget-color-text-
|
|
433
|
+
"text-[color:var(--deframe-widget-color-text-primary-disabled)]",
|
|
427
434
|
"cursor-not-allowed",
|
|
428
435
|
"pointer-events-none"
|
|
429
436
|
].join(" ")
|
|
@@ -4406,7 +4413,7 @@ var SwapQuoteDetailsView = ({
|
|
|
4406
4413
|
title: labels.headerLabel,
|
|
4407
4414
|
items,
|
|
4408
4415
|
defaultOpen: isVisible,
|
|
4409
|
-
className: "
|
|
4416
|
+
className: "rounded shadow-sm p-md flex flex-col bg-[var(--deframe-widget-color-bg-subtle)] lg:bg-[var(--deframe-widget-color-bg-raised)]"
|
|
4410
4417
|
},
|
|
4411
4418
|
`details-${isVisible}`
|
|
4412
4419
|
),
|
|
@@ -4813,7 +4820,7 @@ var HistoryListSkeleton = () => /* @__PURE__ */ jsxs("div", { className: "self-s
|
|
|
4813
4820
|
/* @__PURE__ */ jsx(HistoryGroupSkeleton, {})
|
|
4814
4821
|
] });
|
|
4815
4822
|
var WalletBalances = ({ cards, variant = "subtle", className }) => {
|
|
4816
|
-
const bgClass = variant === "raised" ? "bg-
|
|
4823
|
+
const bgClass = variant === "raised" ? "bg-[var(--deframe-widget-color-bg-raised)]" : "bg-[var(--deframe-widget-color-bg-subtle)]";
|
|
4817
4824
|
return /* @__PURE__ */ jsx("div", { className: twMerge("w-full flex flex-row gap-4 mt-md", className), children: cards.map((card) => /* @__PURE__ */ jsxs("div", { className: twMerge("flex-1 h-auto px-6 py-4 rounded shadow-sm flex flex-col items-start justify-start gap-xs", bgClass), children: [
|
|
4818
4825
|
/* @__PURE__ */ jsx(TextBody, { variant: "text-small", children: card.label }),
|
|
4819
4826
|
/* @__PURE__ */ jsx(TextHeading, { variant: "h3", children: card.value })
|