@rainlanguage/ui-components 0.0.1-alpha.10
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 +58 -0
- package/dist/__fixtures__/orderDetail.d.ts +99 -0
- package/dist/__fixtures__/orderDetail.js +204 -0
- package/dist/__fixtures__/settings-12-11-24.json +160 -0
- package/dist/__mocks__/MockComponent.d.ts +1 -0
- package/dist/__mocks__/MockComponent.js +2 -0
- package/dist/__mocks__/MockComponent.svelte +3 -0
- package/dist/__mocks__/MockComponent.svelte.d.ts +18 -0
- package/dist/__mocks__/mockTransactionStore.d.ts +22 -0
- package/dist/__mocks__/mockTransactionStore.js +56 -0
- package/dist/__mocks__/mockWeb3Config.d.ts +2 -0
- package/dist/__mocks__/mockWeb3Config.js +15 -0
- package/dist/__mocks__/queries.d.ts +13 -0
- package/dist/__mocks__/queries.js +64 -0
- package/dist/__mocks__/settings.d.ts +3 -0
- package/dist/__mocks__/settings.js +37 -0
- package/dist/__mocks__/stores.d.ts +94 -0
- package/dist/__mocks__/stores.js +113 -0
- package/dist/app.css +3 -0
- package/dist/assets/ledger.svg +6 -0
- package/dist/assets/logo-dark.svg +15 -0
- package/dist/assets/logo-light.svg +15 -0
- package/dist/assets/walletconnect.svg +1 -0
- package/dist/components/BadgeActive.svelte +9 -0
- package/dist/components/BadgeActive.svelte.d.ts +19 -0
- package/dist/components/BlockQuote.svelte +1 -0
- package/dist/components/BlockQuote.svelte.d.ts +29 -0
- package/dist/components/ButtonDarkMode.svelte +14 -0
- package/dist/components/ButtonDarkMode.svelte.d.ts +18 -0
- package/dist/components/ButtonLoading.svelte +11 -0
- package/dist/components/ButtonLoading.svelte.d.ts +24 -0
- package/dist/components/ButtonTab.svelte +7 -0
- package/dist/components/ButtonTab.svelte.d.ts +23 -0
- package/dist/components/ButtonVaultLink.svelte +29 -0
- package/dist/components/ButtonVaultLink.svelte.d.ts +22 -0
- package/dist/components/CardProperty.svelte +11 -0
- package/dist/components/CardProperty.svelte.d.ts +31 -0
- package/dist/components/CheckboxMyItemsOnly.svelte +23 -0
- package/dist/components/CheckboxMyItemsOnly.svelte.d.ts +21 -0
- package/dist/components/CheckboxZeroBalanceVault.svelte +20 -0
- package/dist/components/CheckboxZeroBalanceVault.svelte.d.ts +19 -0
- package/dist/components/CodeMirrorDotrain.svelte +35 -0
- package/dist/components/CodeMirrorDotrain.svelte.d.ts +23 -0
- package/dist/components/CodeMirrorRainlang.svelte +34 -0
- package/dist/components/CodeMirrorRainlang.svelte.d.ts +23 -0
- package/dist/components/DropdownProperty.svelte +12 -0
- package/dist/components/DropdownProperty.svelte.d.ts +19 -0
- package/dist/components/EditableSpan.svelte +46 -0
- package/dist/components/EditableSpan.svelte.d.ts +21 -0
- package/dist/components/Hash.svelte +85 -0
- package/dist/components/Hash.svelte.d.ts +28 -0
- package/dist/components/Heading.svelte +19 -0
- package/dist/components/Heading.svelte.d.ts +29 -0
- package/dist/components/IconError.svelte +8 -0
- package/dist/components/IconError.svelte.d.ts +16 -0
- package/dist/components/IconExternalLink.svelte +18 -0
- package/dist/components/IconExternalLink.svelte.d.ts +18 -0
- package/dist/components/IconInfo.svelte +8 -0
- package/dist/components/IconInfo.svelte.d.ts +16 -0
- package/dist/components/IconLedger.svelte +13 -0
- package/dist/components/IconLedger.svelte.d.ts +16 -0
- package/dist/components/IconSuccess.svelte +8 -0
- package/dist/components/IconSuccess.svelte.d.ts +16 -0
- package/dist/components/IconTelegram.svelte +12 -0
- package/dist/components/IconTelegram.svelte.d.ts +25 -0
- package/dist/components/IconWalletConnect.svelte +13 -0
- package/dist/components/IconWalletConnect.svelte.d.ts +16 -0
- package/dist/components/IconWarning.svelte +8 -0
- package/dist/components/IconWarning.svelte.d.ts +16 -0
- package/dist/components/License.svelte +29 -0
- package/dist/components/License.svelte.d.ts +25 -0
- package/dist/components/ListViewOrderbookFilters.svelte +58 -0
- package/dist/components/ListViewOrderbookFilters.svelte.d.ts +28 -0
- package/dist/components/OrderOrVaultHash.svelte +24 -0
- package/dist/components/OrderOrVaultHash.svelte.d.ts +22 -0
- package/dist/components/PageHeader.svelte +33 -0
- package/dist/components/PageHeader.svelte.d.ts +21 -0
- package/dist/components/TanstackAppTable.svelte +73 -0
- package/dist/components/TanstackAppTable.svelte.d.ts +30 -0
- package/dist/components/Text.svelte +12 -0
- package/dist/components/Text.svelte.d.ts +31 -0
- package/dist/components/charts/APYTimeFilters.svelte +47 -0
- package/dist/components/charts/APYTimeFilters.svelte.d.ts +19 -0
- package/dist/components/charts/ChartTimeFilters.svelte +35 -0
- package/dist/components/charts/ChartTimeFilters.svelte.d.ts +18 -0
- package/dist/components/charts/LightweightChart.svelte +110 -0
- package/dist/components/charts/LightweightChart.svelte.d.ts +29 -0
- package/dist/components/charts/OrderTradesChart.svelte +36 -0
- package/dist/components/charts/OrderTradesChart.svelte.d.ts +21 -0
- package/dist/components/charts/TableTimeFilters.svelte +48 -0
- package/dist/components/charts/TableTimeFilters.svelte.d.ts +19 -0
- package/dist/components/charts/TanstackLightweightChartLine.svelte +24 -0
- package/dist/components/charts/TanstackLightweightChartLine.svelte.d.ts +23 -0
- package/dist/components/charts/VaultBalanceChart.svelte +37 -0
- package/dist/components/charts/VaultBalanceChart.svelte.d.ts +22 -0
- package/dist/components/checkbox/Checkbox.svelte +17 -0
- package/dist/components/checkbox/Checkbox.svelte.d.ts +21 -0
- package/dist/components/deployment/ButtonSelectOption.svelte +14 -0
- package/dist/components/deployment/ButtonSelectOption.svelte.d.ts +20 -0
- package/dist/components/deployment/ComposedRainlangModal.svelte +35 -0
- package/dist/components/deployment/ComposedRainlangModal.svelte.d.ts +19 -0
- package/dist/components/deployment/DeploymentSectionHeader.svelte +14 -0
- package/dist/components/deployment/DeploymentSectionHeader.svelte.d.ts +19 -0
- package/dist/components/deployment/DeploymentSteps.svelte +252 -0
- package/dist/components/deployment/DeploymentSteps.svelte.d.ts +38 -0
- package/dist/components/deployment/DeploymentTile.svelte +19 -0
- package/dist/components/deployment/DeploymentTile.svelte.d.ts +21 -0
- package/dist/components/deployment/DeploymentsSection.svelte +20 -0
- package/dist/components/deployment/DeploymentsSection.svelte.d.ts +19 -0
- package/dist/components/deployment/DepositInput.svelte +93 -0
- package/dist/components/deployment/DepositInput.svelte.d.ts +20 -0
- package/dist/components/deployment/DepositsSection.svelte +8 -0
- package/dist/components/deployment/DepositsSection.svelte.d.ts +20 -0
- package/dist/components/deployment/DisclaimerModal.svelte +54 -0
- package/dist/components/deployment/DisclaimerModal.svelte.d.ts +19 -0
- package/dist/components/deployment/FieldDefinitionInput.svelte +66 -0
- package/dist/components/deployment/FieldDefinitionInput.svelte.d.ts +20 -0
- package/dist/components/deployment/FieldDefinitionsSection.svelte +9 -0
- package/dist/components/deployment/FieldDefinitionsSection.svelte.d.ts +20 -0
- package/dist/components/deployment/InvalidStrategiesSection.svelte +19 -0
- package/dist/components/deployment/InvalidStrategiesSection.svelte.d.ts +19 -0
- package/dist/components/deployment/SelectToken.svelte +88 -0
- package/dist/components/deployment/SelectToken.svelte.d.ts +21 -0
- package/dist/components/deployment/SelectTokensSection.svelte +17 -0
- package/dist/components/deployment/SelectTokensSection.svelte.d.ts +21 -0
- package/dist/components/deployment/ShareChoicesButton.svelte +26 -0
- package/dist/components/deployment/ShareChoicesButton.svelte.d.ts +18 -0
- package/dist/components/deployment/StrategyPage.svelte +70 -0
- package/dist/components/deployment/StrategyPage.svelte.d.ts +19 -0
- package/dist/components/deployment/TokenIOInput.svelte +62 -0
- package/dist/components/deployment/TokenIOInput.svelte.d.ts +22 -0
- package/dist/components/deployment/TokenIOSection.svelte +17 -0
- package/dist/components/deployment/TokenIOSection.svelte.d.ts +21 -0
- package/dist/components/deployment/ValidStrategiesSection.svelte +25 -0
- package/dist/components/deployment/ValidStrategiesSection.svelte.d.ts +19 -0
- package/dist/components/deployment/getDeploymentTransactionArgs.d.ts +17 -0
- package/dist/components/deployment/getDeploymentTransactionArgs.js +24 -0
- package/dist/components/detail/DepositOrWithdrawButtons.svelte +44 -0
- package/dist/components/detail/DepositOrWithdrawButtons.svelte.d.ts +26 -0
- package/dist/components/detail/OrderDetail.svelte +195 -0
- package/dist/components/detail/OrderDetail.svelte.d.ts +36 -0
- package/dist/components/detail/TanstackOrderQuote.svelte +173 -0
- package/dist/components/detail/TanstackOrderQuote.svelte.d.ts +22 -0
- package/dist/components/detail/TanstackPageContentDetail.svelte +56 -0
- package/dist/components/detail/TanstackPageContentDetail.svelte.d.ts +31 -0
- package/dist/components/detail/VaultDetail.svelte +178 -0
- package/dist/components/detail/VaultDetail.svelte.d.ts +35 -0
- package/dist/components/dropdown/DropdownActiveSubgraphs.svelte +38 -0
- package/dist/components/dropdown/DropdownActiveSubgraphs.svelte.d.ts +21 -0
- package/dist/components/dropdown/DropdownCheckbox.svelte +77 -0
- package/dist/components/dropdown/DropdownCheckbox.svelte.d.ts +26 -0
- package/dist/components/dropdown/DropdownOrderListAccounts.svelte +15 -0
- package/dist/components/dropdown/DropdownOrderListAccounts.svelte.d.ts +20 -0
- package/dist/components/dropdown/DropdownOrderStatus.svelte +31 -0
- package/dist/components/dropdown/DropdownOrderStatus.svelte.d.ts +19 -0
- package/dist/components/dropdown/DropdownRadio.svelte +45 -0
- package/dist/components/dropdown/DropdownRadio.svelte.d.ts +30 -0
- package/dist/components/icon/RainLogo.svelte +54 -0
- package/dist/components/icon/RainLogo.svelte.d.ts +25 -0
- package/dist/components/icon/Refresh.svelte +57 -0
- package/dist/components/icon/Refresh.svelte.d.ts +40 -0
- package/dist/components/input/InputHex.svelte +42 -0
- package/dist/components/input/InputHex.svelte.d.ts +19 -0
- package/dist/components/input/InputOrderHash.svelte +22 -0
- package/dist/components/input/InputOrderHash.svelte.d.ts +20 -0
- package/dist/components/input/InputRegistryUrl.svelte +18 -0
- package/dist/components/input/InputRegistryUrl.svelte.d.ts +16 -0
- package/dist/components/input/InputToken.svelte +53 -0
- package/dist/components/input/InputToken.svelte.d.ts +19 -0
- package/dist/components/input/InputTokenAmount.svelte +63 -0
- package/dist/components/input/InputTokenAmount.svelte.d.ts +21 -0
- package/dist/components/tables/OrderAPY.svelte +57 -0
- package/dist/components/tables/OrderAPY.svelte.d.ts +19 -0
- package/dist/components/tables/OrderTradesListTable.svelte +145 -0
- package/dist/components/tables/OrderTradesListTable.svelte.d.ts +21 -0
- package/dist/components/tables/OrderVaultsVolTable.svelte +67 -0
- package/dist/components/tables/OrderVaultsVolTable.svelte.d.ts +19 -0
- package/dist/components/tables/OrdersListTable.svelte +181 -0
- package/dist/components/tables/OrdersListTable.svelte.d.ts +35 -0
- package/dist/components/tables/VaultBalanceChangesTable.svelte +74 -0
- package/dist/components/tables/VaultBalanceChangesTable.svelte.d.ts +17 -0
- package/dist/components/tables/VaultsListTable.svelte +229 -0
- package/dist/components/tables/VaultsListTable.svelte.d.ts +40 -0
- package/dist/components/wallet/WalletConnect.svelte +28 -0
- package/dist/components/wallet/WalletConnect.svelte.d.ts +23 -0
- package/dist/errors/DeploymentStepsError.d.ts +24 -0
- package/dist/errors/DeploymentStepsError.js +45 -0
- package/dist/errors/index.d.ts +1 -0
- package/dist/errors/index.js +1 -0
- package/dist/index.d.ts +89 -0
- package/dist/index.js +89 -0
- package/dist/queries/constants.d.ts +2 -0
- package/dist/queries/constants.js +2 -0
- package/dist/queries/keys.d.ts +9 -0
- package/dist/queries/keys.js +9 -0
- package/dist/queries/queryClient.d.ts +3 -0
- package/dist/queries/queryClient.js +16 -0
- package/dist/services/getExplorerLink.d.ts +1 -0
- package/dist/services/getExplorerLink.js +10 -0
- package/dist/services/handleShareChoices.d.ts +2 -0
- package/dist/services/handleShareChoices.js +10 -0
- package/dist/services/historicalOrderCharts.d.ts +12 -0
- package/dist/services/historicalOrderCharts.js +496 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.js +1 -0
- package/dist/services/registry.d.ts +25 -0
- package/dist/services/registry.js +133 -0
- package/dist/services/time.d.ts +6 -0
- package/dist/services/time.js +17 -0
- package/dist/stores/transactionStore.d.ts +98 -0
- package/dist/stores/transactionStore.js +303 -0
- package/dist/test/matchers.d.ts +6 -0
- package/dist/test/matchers.js +4 -0
- package/dist/types/appStores.d.ts +19 -0
- package/dist/types/appStores.js +1 -0
- package/dist/types/modal.d.ts +20 -0
- package/dist/types/modal.js +1 -0
- package/dist/types/strategy.d.ts +10 -0
- package/dist/types/strategy.js +1 -0
- package/dist/types/transaction.d.ts +27 -0
- package/dist/types/transaction.js +1 -0
- package/dist/utils/breadcrumbs.d.ts +5 -0
- package/dist/utils/breadcrumbs.js +9 -0
- package/dist/utils/codeMirrorThemes.d.ts +2 -0
- package/dist/utils/codeMirrorThemes.js +86 -0
- package/dist/utils/hex.d.ts +2 -0
- package/dist/utils/hex.js +3 -0
- package/dist/utils/lightweightChartsThemes.d.ts +52 -0
- package/dist/utils/lightweightChartsThemes.js +21 -0
- package/dist/utils/number.d.ts +14 -0
- package/dist/utils/number.js +43 -0
- package/dist/utils/time.d.ts +12 -0
- package/dist/utils/time.js +27 -0
- package/dist/utils/vault.d.ts +2 -0
- package/dist/utils/vault.js +29 -0
- package/package.json +86 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} CardPropertyProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} CardPropertyEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} CardPropertySlots */
|
|
4
|
+
export default class CardProperty extends SvelteComponent<{
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
key: {};
|
|
10
|
+
value: {};
|
|
11
|
+
}> {
|
|
12
|
+
}
|
|
13
|
+
export type CardPropertyProps = typeof __propDef.props;
|
|
14
|
+
export type CardPropertyEvents = typeof __propDef.events;
|
|
15
|
+
export type CardPropertySlots = typeof __propDef.slots;
|
|
16
|
+
import { SvelteComponent } from "svelte";
|
|
17
|
+
declare const __propDef: {
|
|
18
|
+
props: {
|
|
19
|
+
[x: string]: any;
|
|
20
|
+
};
|
|
21
|
+
events: {
|
|
22
|
+
[evt: string]: CustomEvent<any>;
|
|
23
|
+
};
|
|
24
|
+
slots: {
|
|
25
|
+
key: {};
|
|
26
|
+
value: {};
|
|
27
|
+
};
|
|
28
|
+
exports?: undefined;
|
|
29
|
+
bindings?: undefined;
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script>import { Checkbox, Label } from "flowbite-svelte";
|
|
2
|
+
export let showMyItemsOnly;
|
|
3
|
+
export let context;
|
|
4
|
+
export let signerAddress;
|
|
5
|
+
function handleShowMyItemsChange() {
|
|
6
|
+
$showMyItemsOnly = !$showMyItemsOnly;
|
|
7
|
+
}
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<div data-testid="show-my-items-checkbox" class="flex items-center gap-x-2">
|
|
11
|
+
<Label
|
|
12
|
+
for="show-my-items"
|
|
13
|
+
class="cursor-pointer whitespace-nowrap text-sm font-medium text-gray-900 dark:text-gray-300"
|
|
14
|
+
>
|
|
15
|
+
Only show my {context}
|
|
16
|
+
</Label>
|
|
17
|
+
<Checkbox
|
|
18
|
+
id="show-my-items"
|
|
19
|
+
checked={$showMyItemsOnly}
|
|
20
|
+
on:change={handleShowMyItemsChange}
|
|
21
|
+
disabled={!$signerAddress}
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { Writable } from 'svelte/store';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
showMyItemsOnly: Writable<boolean>;
|
|
6
|
+
context: "orders" | "vaults";
|
|
7
|
+
signerAddress: Writable<string | null> | undefined;
|
|
8
|
+
};
|
|
9
|
+
events: {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
};
|
|
12
|
+
slots: {};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
export type CheckboxMyItemsOnlyProps = typeof __propDef.props;
|
|
17
|
+
export type CheckboxMyItemsOnlyEvents = typeof __propDef.events;
|
|
18
|
+
export type CheckboxMyItemsOnlySlots = typeof __propDef.slots;
|
|
19
|
+
export default class CheckboxMyItemsOnly extends SvelteComponent<CheckboxMyItemsOnlyProps, CheckboxMyItemsOnlyEvents, CheckboxMyItemsOnlySlots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script>import { Checkbox, Label } from "flowbite-svelte";
|
|
2
|
+
export let hideZeroBalanceVaults;
|
|
3
|
+
function handleHideZeroBalanceChange() {
|
|
4
|
+
$hideZeroBalanceVaults = !$hideZeroBalanceVaults;
|
|
5
|
+
}
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<div data-testid="zero-balance-vault-checkbox" class="flex items-center gap-x-2">
|
|
9
|
+
<Label
|
|
10
|
+
for="hide-empty-vaults"
|
|
11
|
+
class="cursor-pointer whitespace-nowrap text-sm font-medium text-gray-900 dark:text-gray-300"
|
|
12
|
+
>
|
|
13
|
+
Hide empty vaults
|
|
14
|
+
</Label>
|
|
15
|
+
<Checkbox
|
|
16
|
+
id="hide-empty-vaults"
|
|
17
|
+
checked={$hideZeroBalanceVaults}
|
|
18
|
+
on:change={handleHideZeroBalanceChange}
|
|
19
|
+
/>
|
|
20
|
+
</div>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { Writable } from 'svelte/store';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
hideZeroBalanceVaults: Writable<boolean>;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type CheckboxZeroBalanceVaultProps = typeof __propDef.props;
|
|
15
|
+
export type CheckboxZeroBalanceVaultEvents = typeof __propDef.events;
|
|
16
|
+
export type CheckboxZeroBalanceVaultSlots = typeof __propDef.slots;
|
|
17
|
+
export default class CheckboxZeroBalanceVault extends SvelteComponent<CheckboxZeroBalanceVaultProps, CheckboxZeroBalanceVaultEvents, CheckboxZeroBalanceVaultSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script>import CodeMirror from "svelte-codemirror-editor";
|
|
2
|
+
import { RawRainlangExtension } from "codemirror-rainlang";
|
|
3
|
+
import { openLintPanel } from "@codemirror/lint";
|
|
4
|
+
export let rainlangText = void 0;
|
|
5
|
+
export let disabled = false;
|
|
6
|
+
export let styles = {};
|
|
7
|
+
export let rainlangExtension;
|
|
8
|
+
export let codeMirrorTheme;
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<div data-testid="codemirror-dotrain">
|
|
12
|
+
<CodeMirror
|
|
13
|
+
value={rainlangText || ''}
|
|
14
|
+
extensions={[rainlangExtension]}
|
|
15
|
+
theme={codeMirrorTheme}
|
|
16
|
+
readonly={disabled}
|
|
17
|
+
useTab={true}
|
|
18
|
+
tabSize={2}
|
|
19
|
+
styles={{
|
|
20
|
+
'&': {
|
|
21
|
+
width: '100%'
|
|
22
|
+
},
|
|
23
|
+
...styles
|
|
24
|
+
}}
|
|
25
|
+
on:ready={(e) => {
|
|
26
|
+
openLintPanel(e.detail);
|
|
27
|
+
}}
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<style global>
|
|
32
|
+
:global(.ͼ1 .cm-panel.cm-panel-lint ul [aria-selected]) {
|
|
33
|
+
background-color: inherit;
|
|
34
|
+
}
|
|
35
|
+
</style>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { RawRainlangExtension } from 'codemirror-rainlang';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
rainlangText?: string | undefined;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
styles?: {};
|
|
8
|
+
rainlangExtension: RawRainlangExtension;
|
|
9
|
+
codeMirrorTheme: any;
|
|
10
|
+
};
|
|
11
|
+
events: {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
};
|
|
14
|
+
slots: {};
|
|
15
|
+
exports?: {} | undefined;
|
|
16
|
+
bindings?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
export type CodeMirrorDotrainProps = typeof __propDef.props;
|
|
19
|
+
export type CodeMirrorDotrainEvents = typeof __propDef.events;
|
|
20
|
+
export type CodeMirrorDotrainSlots = typeof __propDef.slots;
|
|
21
|
+
export default class CodeMirrorDotrain extends SvelteComponent<CodeMirrorDotrainProps, CodeMirrorDotrainEvents, CodeMirrorDotrainSlots> {
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script>import { extendOrder } from "@rainlanguage/orderbook/js_api";
|
|
2
|
+
import CodeMirror from "svelte-codemirror-editor";
|
|
3
|
+
import { RainlangLR } from "codemirror-rainlang";
|
|
4
|
+
export let order = void 0;
|
|
5
|
+
export let rainlangText = void 0;
|
|
6
|
+
export let codeMirrorTheme;
|
|
7
|
+
export let codeMirrorDisabled = true;
|
|
8
|
+
export let codeMirrorStyles = {};
|
|
9
|
+
$: extendedOrder = order ? extendOrder(order) : void 0;
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
{#if extendedOrder?.rainlang}
|
|
13
|
+
<CodeMirror
|
|
14
|
+
value={rainlangText || extendedOrder.rainlang}
|
|
15
|
+
extensions={[RainlangLR]}
|
|
16
|
+
theme={codeMirrorTheme}
|
|
17
|
+
readonly={codeMirrorDisabled}
|
|
18
|
+
useTab={true}
|
|
19
|
+
tabSize={2}
|
|
20
|
+
styles={{
|
|
21
|
+
'&': {
|
|
22
|
+
width: '100%'
|
|
23
|
+
},
|
|
24
|
+
...codeMirrorStyles
|
|
25
|
+
}}
|
|
26
|
+
/>
|
|
27
|
+
{:else if !extendedOrder?.rainlang && !rainlangText}
|
|
28
|
+
<div
|
|
29
|
+
class="w-full tracking-tight text-gray-900 dark:text-white"
|
|
30
|
+
data-testid="rainlang-not-included"
|
|
31
|
+
>
|
|
32
|
+
Rain source not included in order meta
|
|
33
|
+
</div>
|
|
34
|
+
{/if}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { SgOrder } from '@rainlanguage/orderbook/js_api';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
order?: SgOrder | undefined;
|
|
6
|
+
rainlangText?: string | undefined;
|
|
7
|
+
codeMirrorTheme: any;
|
|
8
|
+
codeMirrorDisabled?: boolean;
|
|
9
|
+
codeMirrorStyles?: {};
|
|
10
|
+
};
|
|
11
|
+
events: {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
};
|
|
14
|
+
slots: {};
|
|
15
|
+
exports?: {} | undefined;
|
|
16
|
+
bindings?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
export type CodeMirrorRainlangProps = typeof __propDef.props;
|
|
19
|
+
export type CodeMirrorRainlangEvents = typeof __propDef.events;
|
|
20
|
+
export type CodeMirrorRainlangSlots = typeof __propDef.slots;
|
|
21
|
+
export default class CodeMirrorRainlang extends SvelteComponent<CodeMirrorRainlangProps, CodeMirrorRainlangEvents, CodeMirrorRainlangSlots> {
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>export let key;
|
|
2
|
+
export let value;
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<div class="mb-2">
|
|
6
|
+
<h5 class="text-md w-full tracking-tight text-gray-400 dark:text-gray-400">
|
|
7
|
+
{key}
|
|
8
|
+
</h5>
|
|
9
|
+
<p class="font-regular break-all leading-tight text-gray-800 dark:text-white">
|
|
10
|
+
{value}
|
|
11
|
+
</p>
|
|
12
|
+
</div>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type DropdownPropertyProps = typeof __propDef.props;
|
|
15
|
+
export type DropdownPropertyEvents = typeof __propDef.events;
|
|
16
|
+
export type DropdownPropertySlots = typeof __propDef.slots;
|
|
17
|
+
export default class DropdownProperty extends SvelteComponent<DropdownPropertyProps, DropdownPropertyEvents, DropdownPropertySlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<script>import { createEventDispatcher } from "svelte";
|
|
2
|
+
export let displayValue;
|
|
3
|
+
let focussed = false;
|
|
4
|
+
let textContent;
|
|
5
|
+
let editableSpan;
|
|
6
|
+
let dispatch = createEventDispatcher();
|
|
7
|
+
const inputFocussed = () => {
|
|
8
|
+
focussed = true;
|
|
9
|
+
dispatch("focus");
|
|
10
|
+
};
|
|
11
|
+
const inputBlurred = () => {
|
|
12
|
+
focussed = false;
|
|
13
|
+
displayValue = textContent;
|
|
14
|
+
dispatch("blur", { value: textContent });
|
|
15
|
+
};
|
|
16
|
+
const handleKeyDown = (event) => {
|
|
17
|
+
if (event.key === "Enter") {
|
|
18
|
+
editableSpan.blur();
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
24
|
+
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
25
|
+
<div
|
|
26
|
+
data-testid="editableSpanWrapper"
|
|
27
|
+
on:click={inputFocussed}
|
|
28
|
+
class="flex gap-x-1 border-b-2 border-dotted text-sm text-gray-400 dark:text-gray-400"
|
|
29
|
+
>
|
|
30
|
+
<span>Block:</span>
|
|
31
|
+
<div class="relative">
|
|
32
|
+
<span
|
|
33
|
+
data-testid="editableSpan"
|
|
34
|
+
class="absolute"
|
|
35
|
+
class:opacity-0={!focussed}
|
|
36
|
+
bind:this={editableSpan}
|
|
37
|
+
bind:textContent
|
|
38
|
+
contenteditable="true"
|
|
39
|
+
on:keydown={handleKeyDown}
|
|
40
|
+
on:blur={inputBlurred}>{displayValue}</span
|
|
41
|
+
>
|
|
42
|
+
<span data-testid="displayElement" class="pointer-events-none" class:opacity-0={focussed}
|
|
43
|
+
>{displayValue}</span
|
|
44
|
+
>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
displayValue: string;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
focus: CustomEvent<any>;
|
|
8
|
+
blur: CustomEvent<any>;
|
|
9
|
+
} & {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
};
|
|
12
|
+
slots: {};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
export type EditableSpanProps = typeof __propDef.props;
|
|
17
|
+
export type EditableSpanEvents = typeof __propDef.events;
|
|
18
|
+
export type EditableSpanSlots = typeof __propDef.slots;
|
|
19
|
+
export default class EditableSpan extends SvelteComponent<EditableSpanProps, EditableSpanEvents, EditableSpanSlots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<script context="module">export var HashType = /* @__PURE__ */ ((HashType2) => {
|
|
2
|
+
HashType2[HashType2["Identifier"] = 0] = "Identifier";
|
|
3
|
+
HashType2[HashType2["Wallet"] = 1] = "Wallet";
|
|
4
|
+
HashType2[HashType2["Transaction"] = 2] = "Transaction";
|
|
5
|
+
HashType2[HashType2["Address"] = 3] = "Address";
|
|
6
|
+
return HashType2;
|
|
7
|
+
})(HashType || {});
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<script>import { Tooltip } from "flowbite-svelte";
|
|
11
|
+
import {
|
|
12
|
+
WalletOutline,
|
|
13
|
+
FingerprintOutline,
|
|
14
|
+
ClipboardListOutline,
|
|
15
|
+
ClipboardOutline
|
|
16
|
+
} from "flowbite-svelte-icons";
|
|
17
|
+
import { fade } from "svelte/transition";
|
|
18
|
+
export let value;
|
|
19
|
+
export let type = void 0;
|
|
20
|
+
export let shorten = true;
|
|
21
|
+
export let sliceLen = 5;
|
|
22
|
+
export let copyOnClick = true;
|
|
23
|
+
let showCopiedMessage = false;
|
|
24
|
+
let cursorX = 0;
|
|
25
|
+
let cursorY = 0;
|
|
26
|
+
$: id = shorten ? `hash-${value}` : void 0;
|
|
27
|
+
$: displayValue = value && shorten ? `${value.slice(0, sliceLen)}...${value.slice(-1 * sliceLen)}` : value;
|
|
28
|
+
function copy(e) {
|
|
29
|
+
if (copyOnClick) {
|
|
30
|
+
e.stopPropagation();
|
|
31
|
+
navigator.clipboard.writeText(value);
|
|
32
|
+
cursorX = e.clientX;
|
|
33
|
+
cursorY = e.clientY;
|
|
34
|
+
showCopiedMessage = true;
|
|
35
|
+
setTimeout(() => {
|
|
36
|
+
showCopiedMessage = false;
|
|
37
|
+
}, 1500);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<button
|
|
43
|
+
type="button"
|
|
44
|
+
{id}
|
|
45
|
+
class="flex items-center justify-start space-x-2 text-left"
|
|
46
|
+
on:click={copy}
|
|
47
|
+
>
|
|
48
|
+
{#if type === HashType.Wallet}
|
|
49
|
+
<WalletOutline size="sm" />
|
|
50
|
+
{:else if type === HashType.Identifier}
|
|
51
|
+
<FingerprintOutline size="sm" />
|
|
52
|
+
{:else if type === HashType.Transaction}
|
|
53
|
+
<ClipboardListOutline size="sm" />
|
|
54
|
+
{:else if type === HashType.Address}
|
|
55
|
+
<ClipboardOutline size="sm" />
|
|
56
|
+
{/if}
|
|
57
|
+
<div>{displayValue}</div>
|
|
58
|
+
</button>
|
|
59
|
+
|
|
60
|
+
{#if showCopiedMessage}
|
|
61
|
+
<div
|
|
62
|
+
out:fade
|
|
63
|
+
class="fixed rounded bg-green-500 px-2 py-1 text-xs text-white shadow"
|
|
64
|
+
style="top: {cursorY + 10}px; left: {cursorX + 10}px"
|
|
65
|
+
>
|
|
66
|
+
Copied to clipboard
|
|
67
|
+
</div>
|
|
68
|
+
{/if}
|
|
69
|
+
|
|
70
|
+
{#if shorten}
|
|
71
|
+
<Tooltip triggeredBy={`#${id}`} class="z-20 whitespace-normal">
|
|
72
|
+
<div class="flex items-center justify-start space-x-2">
|
|
73
|
+
{#if type === HashType.Wallet}
|
|
74
|
+
<WalletOutline size="sm" />
|
|
75
|
+
{:else if type === HashType.Identifier}
|
|
76
|
+
<FingerprintOutline size="sm" />
|
|
77
|
+
{:else if type === HashType.Transaction}
|
|
78
|
+
<ClipboardListOutline size="sm" />
|
|
79
|
+
{:else if type === HashType.Address}
|
|
80
|
+
<ClipboardOutline size="sm" />
|
|
81
|
+
{/if}
|
|
82
|
+
<div>{value}</div>
|
|
83
|
+
</div>
|
|
84
|
+
</Tooltip>
|
|
85
|
+
{/if}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
export declare enum HashType {
|
|
3
|
+
Identifier = 0,
|
|
4
|
+
Wallet = 1,
|
|
5
|
+
Transaction = 2,
|
|
6
|
+
Address = 3
|
|
7
|
+
}
|
|
8
|
+
declare const __propDef: {
|
|
9
|
+
props: {
|
|
10
|
+
value: string;
|
|
11
|
+
type?: HashType | undefined;
|
|
12
|
+
shorten?: boolean;
|
|
13
|
+
sliceLen?: number;
|
|
14
|
+
copyOnClick?: boolean;
|
|
15
|
+
};
|
|
16
|
+
events: {
|
|
17
|
+
[evt: string]: CustomEvent<any>;
|
|
18
|
+
};
|
|
19
|
+
slots: {};
|
|
20
|
+
exports?: {} | undefined;
|
|
21
|
+
bindings?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
export type HashProps = typeof __propDef.props;
|
|
24
|
+
export type HashEvents = typeof __propDef.events;
|
|
25
|
+
export type HashSlots = typeof __propDef.slots;
|
|
26
|
+
export default class Hash extends SvelteComponent<HashProps, HashEvents, HashSlots> {
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
export let depth;
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
{#if depth === 1}
|
|
6
|
+
<div class="mb-4 text-4xl font-medium dark:text-white"><slot /></div>
|
|
7
|
+
{:else if depth === 2}
|
|
8
|
+
<div class="my-4 text-2xl font-medium dark:text-white"><slot /></div>
|
|
9
|
+
{:else if depth === 3}
|
|
10
|
+
<div class="my-4 text-xl font-medium dark:text-white"><slot /></div>
|
|
11
|
+
{:else if depth === 4}
|
|
12
|
+
<div class="my-4 text-lg font-medium dark:text-white"><slot /></div>
|
|
13
|
+
{:else if depth === 5}
|
|
14
|
+
<h5><slot /></h5>
|
|
15
|
+
{:else if depth === 6}
|
|
16
|
+
<h6><slot /></h6>
|
|
17
|
+
{:else}
|
|
18
|
+
<slot />
|
|
19
|
+
{/if}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} HeadingProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} HeadingEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} HeadingSlots */
|
|
4
|
+
export default class Heading extends SvelteComponent<{
|
|
5
|
+
depth: any;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type HeadingProps = typeof __propDef.props;
|
|
13
|
+
export type HeadingEvents = typeof __propDef.events;
|
|
14
|
+
export type HeadingSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponent } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
depth: any;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
exports?: undefined;
|
|
27
|
+
bindings?: undefined;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<script>import CloseCircleSolid from "flowbite-svelte-icons/CloseCircleSolid.svelte";
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<div
|
|
5
|
+
class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-red-100 text-red-500 dark:bg-red-800 dark:text-red-200"
|
|
6
|
+
>
|
|
7
|
+
<CloseCircleSolid class="h-5 w-5" />
|
|
8
|
+
</div>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
exports?: {} | undefined;
|
|
9
|
+
bindings?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
export type IconErrorProps = typeof __propDef.props;
|
|
12
|
+
export type IconErrorEvents = typeof __propDef.events;
|
|
13
|
+
export type IconErrorSlots = typeof __propDef.slots;
|
|
14
|
+
export default class IconError extends SvelteComponent<IconErrorProps, IconErrorEvents, IconErrorSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script>export let svgClass = "";
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
class="h-5 w-5 text-gray-800 dark:text-white {svgClass}"
|
|
6
|
+
aria-hidden="true"
|
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 18 18"
|
|
10
|
+
>
|
|
11
|
+
<path
|
|
12
|
+
stroke="currentColor"
|
|
13
|
+
stroke-linecap="round"
|
|
14
|
+
stroke-linejoin="round"
|
|
15
|
+
stroke-width="2"
|
|
16
|
+
d="M15 11v4.833A1.166 1.166 0 0 1 13.833 17H2.167A1.167 1.167 0 0 1 1 15.833V4.167A1.166 1.166 0 0 1 2.167 3h4.618m4.447-2H17v5.768M9.111 8.889l7.778-7.778"
|
|
17
|
+
/>
|
|
18
|
+
</svg>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
svgClass?: string;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {};
|
|
10
|
+
exports?: {} | undefined;
|
|
11
|
+
bindings?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
export type IconExternalLinkProps = typeof __propDef.props;
|
|
14
|
+
export type IconExternalLinkEvents = typeof __propDef.events;
|
|
15
|
+
export type IconExternalLinkSlots = typeof __propDef.slots;
|
|
16
|
+
export default class IconExternalLink extends SvelteComponent<IconExternalLinkProps, IconExternalLinkEvents, IconExternalLinkSlots> {
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<script>import InfoCircleSolid from "flowbite-svelte-icons/InfoCircleSolid.svelte";
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<div
|
|
5
|
+
class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-blue-100 text-blue-500 dark:bg-blue-800 dark:text-blue-200"
|
|
6
|
+
>
|
|
7
|
+
<InfoCircleSolid class="h-5 w-5" />
|
|
8
|
+
</div>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
exports?: {} | undefined;
|
|
9
|
+
bindings?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
export type IconInfoProps = typeof __propDef.props;
|
|
12
|
+
export type IconInfoEvents = typeof __propDef.events;
|
|
13
|
+
export type IconInfoSlots = typeof __propDef.slots;
|
|
14
|
+
export default class IconInfo extends SvelteComponent<IconInfoProps, IconInfoEvents, IconInfoSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script>import icon from "../assets/ledger.svg?raw";
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
|
5
|
+
<div class="icon-ledger">{@html icon}</div>
|
|
6
|
+
|
|
7
|
+
<style>
|
|
8
|
+
:global(.icon-ledger svg) {
|
|
9
|
+
height: 1.5rem;
|
|
10
|
+
width: auto;
|
|
11
|
+
fill: white;
|
|
12
|
+
}
|
|
13
|
+
</style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
exports?: {} | undefined;
|
|
9
|
+
bindings?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
export type IconLedgerProps = typeof __propDef.props;
|
|
12
|
+
export type IconLedgerEvents = typeof __propDef.events;
|
|
13
|
+
export type IconLedgerSlots = typeof __propDef.slots;
|
|
14
|
+
export default class IconLedger extends SvelteComponent<IconLedgerProps, IconLedgerEvents, IconLedgerSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<script>import CheckCircleSolid from "flowbite-svelte-icons/CheckCircleSolid.svelte";
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<div
|
|
5
|
+
class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-green-100 text-green-500 dark:bg-green-800 dark:text-green-200"
|
|
6
|
+
>
|
|
7
|
+
<CheckCircleSolid class="h-5 w-5" />
|
|
8
|
+
</div>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
exports?: {} | undefined;
|
|
9
|
+
bindings?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
export type IconSuccessProps = typeof __propDef.props;
|
|
12
|
+
export type IconSuccessEvents = typeof __propDef.events;
|
|
13
|
+
export type IconSuccessSlots = typeof __propDef.slots;
|
|
14
|
+
export default class IconSuccess extends SvelteComponent<IconSuccessProps, IconSuccessEvents, IconSuccessSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
viewBox="0 0 24 24"
|
|
3
|
+
class="h-5 w-5 text-gray-800 dark:text-white"
|
|
4
|
+
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"
|
|
5
|
+
><path
|
|
6
|
+
stroke="currentColor"
|
|
7
|
+
stroke-linecap="round"
|
|
8
|
+
stroke-linejoin="round"
|
|
9
|
+
stroke-width="2"
|
|
10
|
+
d="M18.384,22.779c0.322,0.228 0.737,0.285 1.107,0.145c0.37,-0.141 0.642,-0.457 0.724,-0.84c0.869,-4.084 2.977,-14.421 3.768,-18.136c0.06,-0.28 -0.04,-0.571 -0.26,-0.758c-0.22,-0.187 -0.525,-0.241 -0.797,-0.14c-4.193,1.552 -17.106,6.397 -22.384,8.35c-0.335,0.124 -0.553,0.446 -0.542,0.799c0.012,0.354 0.25,0.661 0.593,0.764c2.367,0.708 5.474,1.693 5.474,1.693c0,0 1.452,4.385 2.209,6.615c0.095,0.28 0.314,0.5 0.603,0.576c0.288,0.075 0.596,-0.004 0.811,-0.207c1.216,-1.148 3.096,-2.923 3.096,-2.923c0,0 3.572,2.619 5.598,4.062Zm-11.01,-8.677l1.679,5.538l0.373,-3.507c0,0 6.487,-5.851 10.185,-9.186c0.108,-0.098 0.123,-0.262 0.033,-0.377c-0.089,-0.115 -0.253,-0.142 -0.376,-0.064c-4.286,2.737 -11.894,7.596 -11.894,7.596Z"
|
|
11
|
+
/></svg
|
|
12
|
+
>
|