@kahitsan/ksui 0.50.0 → 0.51.0-solid2.1
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/README.md +10 -0
- package/package.json +8 -6
- package/src/components/base/AccountAvatar.tsx +1 -1
- package/src/components/base/ActionMenu.tsx +7 -5
- package/src/components/base/AddAttachmentTile.tsx +6 -6
- package/src/components/base/BadgeSelect.tsx +11 -9
- package/src/components/base/Button.test.tsx +23 -0
- package/src/components/base/Button.tsx +35 -41
- package/src/components/base/CameraCapture.tsx +5 -2
- package/src/components/base/CopyButton.tsx +2 -1
- package/src/components/base/DataTable.tsx +91 -112
- package/src/components/base/DatePicker.tsx +15 -17
- package/src/components/base/DateTile.tsx +14 -12
- package/src/components/base/Dropdown.tsx +6 -5
- package/src/components/base/ExistingAttachmentTile.test.tsx +3 -3
- package/src/components/base/ExistingAttachmentTile.tsx +6 -4
- package/src/components/base/EyebrowBadge.tsx +2 -1
- package/src/components/base/FormErrorBanner.tsx +2 -1
- package/src/components/base/FormField.tsx +1 -1
- package/src/components/base/ImageCropper.tsx +3 -3
- package/src/components/base/ImageViewer.test.tsx +2 -0
- package/src/components/base/ImageViewer.tsx +4 -3
- package/src/components/base/KpiCard.tsx +3 -2
- package/src/components/base/Modal.test.tsx +3 -2
- package/src/components/base/Modal.tsx +11 -12
- package/src/components/base/ModalHeader.tsx +2 -1
- package/src/components/base/MonthCalendar.tsx +2 -1
- package/src/components/base/MultiSelectGroup.tsx +7 -5
- package/src/components/base/ProgressBar.tsx +8 -17
- package/src/components/base/RadioCardGroup.tsx +14 -12
- package/src/components/base/SectionHeading.tsx +2 -1
- package/src/components/base/SegmentedFilter.tsx +10 -8
- package/src/components/base/SocialLinksBar.tsx +2 -1
- package/src/components/base/StatusIndicator.tsx +2 -1
- package/src/components/base/StatusPill.tsx +1 -1
- package/src/components/base/TagPill.tsx +1 -1
- package/src/components/base/ThemeToggle.tsx +5 -11
- package/src/components/base/Tooltip.tsx +2 -1
- package/src/components/composite/AccountRadioPicker.tsx +14 -11
- package/src/components/composite/ComboBox.tsx +18 -13
- package/src/components/composite/CustomRenderer.tsx +1 -1
- package/src/components/composite/FileField.tsx +6 -3
- package/src/components/composite/FlowGraph.tsx +15 -12
- package/src/components/composite/FlowRunner.test.tsx +2 -0
- package/src/components/composite/FlowRunner.tsx +2 -1
- package/src/components/composite/FormActions.tsx +1 -1
- package/src/components/composite/FormAdvancedSection.tsx +13 -13
- package/src/components/composite/LiveTimer.tsx +8 -14
- package/src/components/composite/MarkdownNotes.tsx +2 -1
- package/src/components/composite/MentionTextarea.tsx +31 -22
- package/src/components/composite/MultiPeriodPicker.tsx +11 -9
- package/src/components/composite/NotFound.tsx +4 -15
- package/src/components/composite/PaymentAccountPicker.tsx +19 -24
- package/src/components/composite/SalesBodyEditor.tsx +10 -7
- package/src/components/composite/SearchableSelect.tsx +14 -13
- package/src/components/composite/SecretReveal.tsx +2 -2
- package/src/components/composite/TransactionForm.tsx +52 -42
- package/src/components/composite/TransferAccountsPicker.tsx +11 -10
- package/src/components/composite/TransferFeeChip.tsx +7 -6
- package/src/components/composite/VoucherPicker.test.tsx +55 -48
- package/src/components/composite/VoucherPicker.tsx +36 -27
- package/src/components/composite/picker-engine.ts +20 -14
- package/src/components/composite/resource/ResourcePage.test.tsx +21 -1
- package/src/components/composite/resource/ResourcePage.tsx +23 -8
- package/src/components/composite/resource/cells.tsx +1 -1
- package/src/icons/README.md +1 -1
- package/src/icons/create-artwork-icon.test.tsx +4 -1
- package/src/icons/create-artwork-icon.tsx +10 -24
- package/src/utils/account-icons.ts +2 -1
- package/src/utils/accounts-index.tsx +8 -5
- package/src/utils/aria.ts +13 -0
- package/src/utils/confirm.tsx +1 -1
- package/src/utils/dom.ts +7 -6
- package/src/utils/fetch-resource.ts +59 -0
- package/src/utils/highlight.tsx +1 -1
- package/src/utils/modal-layer.ts +3 -3
- package/src/utils/object-url-resource.ts +11 -8
- package/src/utils/top-layer.ts +9 -8
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// advanced-fields toggle entirely, for a caller that locks `category` to one
|
|
8
8
|
// value and never needs EWT/sharing (e.g. a "record my own expense" surface).
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { createEffect, createSignal, Show, For } from "solid-js";
|
|
11
11
|
import X from "../../icons/x";
|
|
12
12
|
import Upload from "../../icons/upload";
|
|
13
13
|
import FileIcon from "../../icons/file";
|
|
@@ -44,6 +44,7 @@ import {
|
|
|
44
44
|
createPendingFile,
|
|
45
45
|
revokePendingFile,
|
|
46
46
|
} from "../../utils/pending-file";
|
|
47
|
+
import { ariaBool } from "../../utils/aria";
|
|
47
48
|
|
|
48
49
|
export type TransactionAccount = PaymentAccountOption & {
|
|
49
50
|
balance?: number | string | null;
|
|
@@ -122,7 +123,7 @@ function payeeSecondary(p: PayeeOption): string | null {
|
|
|
122
123
|
);
|
|
123
124
|
}
|
|
124
125
|
|
|
125
|
-
type IconComponent = (props: { size?: number; class?: string }) => import("
|
|
126
|
+
type IconComponent = (props: { size?: number; class?: string }) => import("@solidjs/web").JSX.Element;
|
|
126
127
|
|
|
127
128
|
const CATEGORY_TONE: Record<
|
|
128
129
|
string,
|
|
@@ -363,10 +364,9 @@ export default function TransactionForm(props: TransactionFormProps) {
|
|
|
363
364
|
const [selectedPayee, setSelectedPayee] = createSignal<PayeeOption | null>(
|
|
364
365
|
null
|
|
365
366
|
);
|
|
366
|
-
createEffect(
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
const sel = selectedPayee();
|
|
367
|
+
createEffect(
|
|
368
|
+
() => ({ name: props.payee, id: props.payeeId, sel: selectedPayee() }),
|
|
369
|
+
({ name, id, sel }) => {
|
|
370
370
|
if (id != null && name && !sel) {
|
|
371
371
|
setSelectedPayee({ id, name, kind: "vendor" });
|
|
372
372
|
} else if (sel && sel.name !== name) {
|
|
@@ -374,12 +374,14 @@ export default function TransactionForm(props: TransactionFormProps) {
|
|
|
374
374
|
} else if (!name && sel) {
|
|
375
375
|
setSelectedPayee(null);
|
|
376
376
|
}
|
|
377
|
-
}
|
|
377
|
+
},
|
|
378
|
+
);
|
|
378
379
|
// A payee picked from search already carries its tax ID; one restored from a
|
|
379
380
|
// saved row does not, so load it before deciding what to show.
|
|
380
|
-
createEffect(
|
|
381
|
-
|
|
382
|
-
|
|
381
|
+
createEffect(
|
|
382
|
+
() => ({ sel: selectedPayee(), enabled: !!props.setPayeeTin }),
|
|
383
|
+
({ sel, enabled }) => {
|
|
384
|
+
if (!enabled || !sel || sel.tin !== undefined) return;
|
|
383
385
|
const id = sel.id;
|
|
384
386
|
loadPayee(id)
|
|
385
387
|
.then((rec) => {
|
|
@@ -388,7 +390,8 @@ export default function TransactionForm(props: TransactionFormProps) {
|
|
|
388
390
|
setSelectedPayee({ ...cur, tin: rec.tin ?? null, address: rec.address ?? null });
|
|
389
391
|
})
|
|
390
392
|
.catch(() => {});
|
|
391
|
-
}
|
|
393
|
+
},
|
|
394
|
+
);
|
|
392
395
|
const taxPayee = () =>
|
|
393
396
|
props.setPayeeTin && props.category !== "sale" && catConfig().showPayee
|
|
394
397
|
? selectedPayee()
|
|
@@ -413,8 +416,9 @@ export default function TransactionForm(props: TransactionFormProps) {
|
|
|
413
416
|
{ id: number; name: string }[]
|
|
414
417
|
>();
|
|
415
418
|
let subcategoryRequestId = 0;
|
|
416
|
-
createEffect(
|
|
417
|
-
|
|
419
|
+
createEffect(
|
|
420
|
+
subcategoryAppliesTo,
|
|
421
|
+
(appliesTo) => {
|
|
418
422
|
const requestId = ++subcategoryRequestId;
|
|
419
423
|
if (!appliesTo) {
|
|
420
424
|
setSubcategoryOptions(undefined);
|
|
@@ -441,7 +445,8 @@ export default function TransactionForm(props: TransactionFormProps) {
|
|
|
441
445
|
subcategoryCache.set(appliesTo, options);
|
|
442
446
|
if (requestId === subcategoryRequestId) setSubcategoryOptions(options);
|
|
443
447
|
});
|
|
444
|
-
}
|
|
448
|
+
},
|
|
449
|
+
);
|
|
445
450
|
|
|
446
451
|
// True once the async resource has resolved at least once. Gates the
|
|
447
452
|
// SearchableSelect mount so the loading-state placeholder shows while the
|
|
@@ -453,12 +458,20 @@ export default function TransactionForm(props: TransactionFormProps) {
|
|
|
453
458
|
return props.allowPayable === false ? base : [...base, "payable"];
|
|
454
459
|
};
|
|
455
460
|
|
|
456
|
-
createEffect(
|
|
457
|
-
|
|
458
|
-
props.
|
|
459
|
-
props.
|
|
461
|
+
createEffect(
|
|
462
|
+
() => ({
|
|
463
|
+
category: props.category,
|
|
464
|
+
enabled: props.transferFeeEnabled,
|
|
465
|
+
setEnabled: props.setTransferFeeEnabled,
|
|
466
|
+
setAmount: props.setTransferFeeAmount,
|
|
467
|
+
}),
|
|
468
|
+
({ category, enabled, setEnabled, setAmount }) => {
|
|
469
|
+
if (category !== "business" && enabled) {
|
|
470
|
+
setEnabled(false);
|
|
471
|
+
setAmount("");
|
|
460
472
|
}
|
|
461
|
-
}
|
|
473
|
+
},
|
|
474
|
+
);
|
|
462
475
|
|
|
463
476
|
function addFiles(files: File[]) {
|
|
464
477
|
const existing = new Set(
|
|
@@ -519,8 +532,8 @@ export default function TransactionForm(props: TransactionFormProps) {
|
|
|
519
532
|
|
|
520
533
|
return (
|
|
521
534
|
<div
|
|
522
|
-
class="relative flex flex-col flex-1 min-h-0"
|
|
523
|
-
|
|
535
|
+
class={["relative flex flex-col flex-1 min-h-0", { "ks-transaction-compact": compact(), "ks-transaction-compact-details": compact() && viewMode() === "advanced" }]}
|
|
536
|
+
|
|
524
537
|
onDragEnter={handleDragEnter}
|
|
525
538
|
onDragLeave={handleDragLeave}
|
|
526
539
|
onDragOver={handleDragOver}
|
|
@@ -544,7 +557,7 @@ export default function TransactionForm(props: TransactionFormProps) {
|
|
|
544
557
|
<Button
|
|
545
558
|
type="button"
|
|
546
559
|
role="tab"
|
|
547
|
-
aria-selected={props.category === cat}
|
|
560
|
+
aria-selected={ariaBool(props.category === cat)}
|
|
548
561
|
data-testid={`transactions-form-category-${cat}`}
|
|
549
562
|
intent="secondary"
|
|
550
563
|
variant="ghost"
|
|
@@ -552,8 +565,7 @@ export default function TransactionForm(props: TransactionFormProps) {
|
|
|
552
565
|
noGlow
|
|
553
566
|
noRipple
|
|
554
567
|
noScanline
|
|
555
|
-
class={`ks-transaction-type-button ks-transaction-type-${cat}`}
|
|
556
|
-
classList={{ "ks-transaction-type-active": props.category === cat }}
|
|
568
|
+
class={`ks-transaction-type-button ks-transaction-type-${cat}${props.category === cat ? " ks-transaction-type-active" : ""}`}
|
|
557
569
|
onClick={() => {
|
|
558
570
|
props.setCategory(cat);
|
|
559
571
|
props.setSourceAccount("");
|
|
@@ -587,8 +599,8 @@ export default function TransactionForm(props: TransactionFormProps) {
|
|
|
587
599
|
}}
|
|
588
600
|
class="flex flex-col flex-1 min-h-0"
|
|
589
601
|
>
|
|
590
|
-
<div class="flex-1 overflow-x-hidden overflow-y-auto px-5 sm:px-6 py-5 space-y-4"
|
|
591
|
-
|
|
602
|
+
<div class={["flex-1 overflow-x-hidden overflow-y-auto px-5 sm:px-6 py-5 space-y-4", { "ks-transaction-compact-body": compact() }]}
|
|
603
|
+
>
|
|
592
604
|
<Show when={props.error}>
|
|
593
605
|
<div
|
|
594
606
|
class="rounded-lg border border-[color-mix(in_srgb,var(--ks-danger,#ef4444)_30%,transparent)] bg-[color-mix(in_srgb,var(--ks-danger,#ef4444)_10%,transparent)] px-3 py-2 text-sm text-[var(--ks-danger-fg,#f87171)]"
|
|
@@ -788,16 +800,14 @@ export default function TransactionForm(props: TransactionFormProps) {
|
|
|
788
800
|
icon={Store}
|
|
789
801
|
noun="payee"
|
|
790
802
|
placeholder={catConfig().payeePlaceholder!}
|
|
791
|
-
onChange={(p) =>
|
|
792
|
-
//
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
})
|
|
800
|
-
}
|
|
803
|
+
onChange={(p) => {
|
|
804
|
+
// Writes flush together, so the sync effect never sees the new name with the old id.
|
|
805
|
+
setSelectedPayee(p);
|
|
806
|
+
props.setPayee(p ? p.name : "");
|
|
807
|
+
props.setPayeeId(p ? p.id : null);
|
|
808
|
+
props.setPayeeTin?.("");
|
|
809
|
+
props.setPayeeAddress?.("");
|
|
810
|
+
}}
|
|
801
811
|
/>
|
|
802
812
|
</FormField>
|
|
803
813
|
<FormField label={props.category === "sale" ? "Invoice ID" : "Receipt / Ref #"}>
|
|
@@ -1064,7 +1074,7 @@ export default function TransactionForm(props: TransactionFormProps) {
|
|
|
1064
1074
|
</div>
|
|
1065
1075
|
|
|
1066
1076
|
<Show when={!props.simpleMode}>
|
|
1067
|
-
<div class="flex justify-center pt-2"
|
|
1077
|
+
<div class={["flex justify-center pt-2", { "ks-transaction-compact-details-toggle": compact() }]} >
|
|
1068
1078
|
<button
|
|
1069
1079
|
type="button"
|
|
1070
1080
|
onClick={() =>
|
|
@@ -1100,18 +1110,18 @@ export default function TransactionForm(props: TransactionFormProps) {
|
|
|
1100
1110
|
</Show>
|
|
1101
1111
|
</div>
|
|
1102
1112
|
|
|
1103
|
-
<div class="px-5 sm:px-6 py-4 border-t border-[color-mix(in_srgb,var(--ks-border,rgba(39,39,42,0.5))_60%,transparent)] bg-[var(--ks-bg,#0a0a0a)] flex flex-col-reverse sm:flex-row sm:items-center sm:justify-between gap-3 shrink-0"
|
|
1104
|
-
|
|
1113
|
+
<div class={["px-5 sm:px-6 py-4 border-t border-[color-mix(in_srgb,var(--ks-border,rgba(39,39,42,0.5))_60%,transparent)] bg-[var(--ks-bg,#0a0a0a)] flex flex-col-reverse sm:flex-row sm:items-center sm:justify-between gap-3 shrink-0", { "ks-transaction-compact-footer": compact() }]}
|
|
1114
|
+
>
|
|
1105
1115
|
<div class="text-xs text-[var(--ks-fg-subtle,#71717a)]">
|
|
1106
1116
|
<span class="text-[var(--ks-fg-subtle,#71717a)]">Will record as </span>
|
|
1107
1117
|
<span
|
|
1108
|
-
class="font-bold"
|
|
1109
|
-
classList={{
|
|
1118
|
+
class={["font-bold", {
|
|
1110
1119
|
"text-[var(--ks-success-fg,#34d399)]": props.category === "sale",
|
|
1111
1120
|
"text-[var(--ks-danger-fg,#f87171)]": props.category === "expense",
|
|
1112
1121
|
"text-[var(--ks-accent,#fbbf24)]": props.category === "payable",
|
|
1113
1122
|
"text-[var(--ks-info,#38bdf8)]": props.category === "business",
|
|
1114
|
-
}}
|
|
1123
|
+
}]}
|
|
1124
|
+
|
|
1115
1125
|
>
|
|
1116
1126
|
{(CATEGORY_FORM[props.category] || CATEGORY_FORM.expense).label}
|
|
1117
1127
|
</span>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Show
|
|
1
|
+
import { Show } from "solid-js";
|
|
2
|
+
import type { JSX } from "@solidjs/web";
|
|
2
3
|
import ArrowRightLeft from "../../icons/arrow-right-left";
|
|
3
4
|
import Plus from "../../icons/plus";
|
|
4
5
|
import AccountAvatar from "../base/AccountAvatar";
|
|
@@ -38,15 +39,15 @@ function AccountTile(p: AccountTileProps): JSX.Element {
|
|
|
38
39
|
type="button"
|
|
39
40
|
data-testid={p.tileTestId}
|
|
40
41
|
onClick={p.onEditRequest}
|
|
41
|
-
class={`group flex flex-1 min-w-0 items-center gap-3 border px-4 py-3 text-left transition-colors cursor-pointer ${p.clipClass}
|
|
42
|
-
classList={{
|
|
42
|
+
class={[`group flex flex-1 min-w-0 items-center gap-3 border px-4 py-3 text-left transition-colors cursor-pointer ${p.clipClass}`, {
|
|
43
43
|
"border-[color-mix(in_srgb,var(--ks-info,#38bdf8)_40%,transparent)] bg-[color-mix(in_srgb,var(--ks-info,#38bdf8)_5%,transparent)] hover:bg-[color-mix(in_srgb,var(--ks-info,#38bdf8)_10%,transparent)]":
|
|
44
44
|
isFilled() && isFrom(),
|
|
45
45
|
"border-[color-mix(in_srgb,var(--ks-warning,#f59e0b)_40%,transparent)] bg-[color-mix(in_srgb,var(--ks-warning,#f59e0b)_5%,transparent)] hover:bg-[color-mix(in_srgb,var(--ks-warning,#f59e0b)_10%,transparent)]":
|
|
46
46
|
isFilled() && !isFrom(),
|
|
47
47
|
"border-dashed border-[var(--ks-input-border,#3f3f46)] bg-[color-mix(in_srgb,var(--ks-overlay-surface,#18181b)_40%,transparent)] hover:border-[color-mix(in_srgb,var(--ks-warning,#f59e0b)_50%,transparent)] hover:bg-[color-mix(in_srgb,var(--ks-overlay-surface,#18181b)_60%,transparent)]":
|
|
48
48
|
!isFilled(),
|
|
49
|
-
}}
|
|
49
|
+
}]}
|
|
50
|
+
|
|
50
51
|
aria-label={
|
|
51
52
|
isFilled()
|
|
52
53
|
? `${isFrom() ? "Source" : "Destination"}: ${p.account!.name} — tap to change`
|
|
@@ -72,12 +73,12 @@ function AccountTile(p: AccountTileProps): JSX.Element {
|
|
|
72
73
|
</Show>
|
|
73
74
|
<div class="flex min-w-0 flex-col">
|
|
74
75
|
<span
|
|
75
|
-
class="text-[10px] font-semibold uppercase tracking-widest"
|
|
76
|
-
classList={{
|
|
76
|
+
class={["text-[10px] font-semibold uppercase tracking-widest", {
|
|
77
77
|
"text-[var(--ks-info,#38bdf8)]": isFilled() && isFrom(),
|
|
78
78
|
"text-[var(--ks-accent-hover,#fcd34d)]": isFilled() && !isFrom(),
|
|
79
79
|
"text-[var(--ks-fg-subtle,#71717a)]": !isFilled(),
|
|
80
|
-
}}
|
|
80
|
+
}]}
|
|
81
|
+
|
|
81
82
|
>
|
|
82
83
|
{isFrom() ? "From" : "To"}
|
|
83
84
|
</span>
|
|
@@ -98,11 +99,11 @@ function AccountTile(p: AccountTileProps): JSX.Element {
|
|
|
98
99
|
<span class="truncate">{formatPHP(a.balance!)}</span>
|
|
99
100
|
<Show when={p.delta !== 0}>
|
|
100
101
|
<span
|
|
101
|
-
class="whitespace-nowrap font-semibold"
|
|
102
|
-
classList={{
|
|
102
|
+
class={["whitespace-nowrap font-semibold", {
|
|
103
103
|
"text-[var(--ks-danger-fg,#f87171)]": p.delta < 0,
|
|
104
104
|
"text-[var(--ks-success-fg,#34d399)]": p.delta > 0,
|
|
105
|
-
}}
|
|
105
|
+
}]}
|
|
106
|
+
|
|
106
107
|
data-testid={`transactions-form-transfer-delta-${p.role}`}
|
|
107
108
|
>
|
|
108
109
|
({p.delta > 0 ? "+" : ""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import X from "../../icons/x";
|
|
2
|
+
import { ariaTri } from "../../utils/aria";
|
|
2
3
|
|
|
3
4
|
export interface TransferFeeChipProps {
|
|
4
5
|
enabled: boolean;
|
|
@@ -11,20 +12,20 @@ export default function TransferFeeChip(props: TransferFeeChipProps) {
|
|
|
11
12
|
type="button"
|
|
12
13
|
data-testid="transactions-form-transfer-fee-toggle"
|
|
13
14
|
onClick={props.onToggle}
|
|
14
|
-
class="flex items-center gap-1.5 self-center rounded-md border px-2.5 py-1 text-[11px] font-semibold uppercase tracking-wider transition-colors cursor-pointer"
|
|
15
|
-
classList={{
|
|
15
|
+
class={["flex items-center gap-1.5 self-center rounded-md border px-2.5 py-1 text-[11px] font-semibold uppercase tracking-wider transition-colors cursor-pointer", {
|
|
16
16
|
"border-[color-mix(in_srgb,var(--ks-info,#38bdf8)_50%,transparent)] bg-[color-mix(in_srgb,var(--ks-info,#38bdf8)_15%,transparent)] text-[var(--ks-info-fg,#7dd3fc)] hover:bg-[color-mix(in_srgb,var(--ks-info,#38bdf8)_25%,transparent)]":
|
|
17
17
|
props.enabled,
|
|
18
18
|
"border-[var(--ks-input-border,#3f3f46)] bg-[color-mix(in_srgb,var(--ks-surface,#0f0f0f)_60%,transparent)] text-[var(--ks-fg-muted,#a1a1aa)] hover:border-[color-mix(in_srgb,var(--ks-info,#38bdf8)_40%,transparent)] hover:text-[var(--ks-info-fg,#7dd3fc)]":
|
|
19
19
|
!props.enabled,
|
|
20
|
-
}}
|
|
21
|
-
|
|
20
|
+
}]}
|
|
21
|
+
|
|
22
|
+
aria-pressed={ariaTri(props.enabled)}
|
|
22
23
|
aria-label={props.enabled ? "Remove transfer fee" : "Add transfer fee"}
|
|
23
24
|
>
|
|
24
25
|
<span>Fees</span>
|
|
25
26
|
<span
|
|
26
|
-
class="inline-flex items-center justify-center"
|
|
27
|
-
|
|
27
|
+
class={["inline-flex items-center justify-center", { hidden: !props.enabled }]}
|
|
28
|
+
|
|
28
29
|
aria-hidden="true"
|
|
29
30
|
>
|
|
30
31
|
<X size={11} />
|