Skip to content

Commit

Permalink
chore: replace DateTimePicker from bloom for bloom-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeanribeiro committed Aug 30, 2023
1 parent 65f9790 commit 1d285f6
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 137 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { createEventDispatcher } from 'svelte'
import { DateTimePicker } from '@ui'
import { DateTimePicker } from '@bloomwalletio/ui'
import { localize } from '@core/i18n'
import { isValidExpirationDateTime, MILLISECONDS_PER_SECOND, SECONDS_PER_MINUTE } from '@core/utils'
import { showNotification } from '@auxiliary/notification'
Expand Down
3 changes: 1 addition & 2 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Charlie Varley <[email protected]>",
"license": "Apache-2.0",
"dependencies": {
"@bloomwalletio/ui": "0.7.10",
"@bloomwalletio/ui": "0.7.12",
"@iota/bundle": "1.0.0-beta.30",
"@iota/converter": "1.0.0-beta.30",
"@iota/crypto.js": "1.8.6",
Expand All @@ -26,7 +26,6 @@
"svelte": "3.58.0",
"svelte-i18n": "3.7.0",
"svelte-markdown": "0.2.3",
"svelty-picker": "3.5.0",
"web3": "1.10.0",
"zxcvbn": "4.4.2"
},
Expand Down
122 changes: 0 additions & 122 deletions packages/shared/src/components/inputs/DateTimePicker.svelte

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { createEventDispatcher } from 'svelte'
import { DateTimePicker } from '@ui'
import { DateTimePicker } from '@bloomwalletio/ui'
import { localize } from '@core/i18n'
import { isValidExpirationDateTime, MILLISECONDS_PER_SECOND, SECONDS_PER_MINUTE } from '@core/utils'
import { showNotification } from '@auxiliary/notification'
Expand Down
1 change: 0 additions & 1 deletion packages/shared/src/components/inputs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export { default as AliasInput } from './AliasInput.svelte'
export { default as AmountInput } from './AmountInput.svelte'
export { default as Checkbox } from './Checkbox.svelte'
export { default as ClosableInput } from './ClosableInput.svelte'
export { default as DateTimePicker } from './DateTimePicker.svelte'
export { default as Dropdown } from './Dropdown.svelte'
export { default as Dropdown2 } from './Dropdown2.svelte'
export { default as Dropzone } from './Dropzone.svelte'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import { DateTimePicker } from '@bloomwalletio/ui'
import { Text, Icon } from '@ui'
import { formatDate } from '@core/i18n'
import { Text, DateTimePicker, Icon } from '@ui'
import { appSettings } from '@core/app/stores'
export let value: string = undefined
Expand Down
29 changes: 20 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -342,16 +342,17 @@
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==

"@bloomwalletio/[email protected].10":
version "0.7.10"
resolved "https://npm.pkg.github.com/download/@bloomwalletio/ui/0.7.10/517dde2cd81244de9848c41d202bc93d21bfd393#517dde2cd81244de9848c41d202bc93d21bfd393"
integrity sha512-7lfkfCAvpwQd6otDeSoLJ47RYNjvRwCcHJ9Y96EMq8nfRXfGfsR5aPJWDgqTFw2AW020k0YLK41WpXhgpUD0SQ==
"@bloomwalletio/[email protected].12":
version "0.7.12"
resolved "https://npm.pkg.github.com/download/@bloomwalletio/ui/0.7.12/80419dcec6f6031dc888a5defabdc69cf7926722#80419dcec6f6031dc888a5defabdc69cf7926722"
integrity sha512-384Eci/XxTGxw/aA/wfzehu0trMg3eTiQr6c7cZhng9S75WsRxnB0kOTlRde9dwawAeo5rTHtEXOTz5xA/PIEw==
dependencies:
"@floating-ui/dom" "1.4.3"
"@popperjs/core" "2.11.8"
flowbite "1.7.0"
flowbite-svelte "0.39.2"
svelte-json-tree "2.1.0"
svelty-picker "4.1.3"
tailwind-merge "1.13.2"

"@chainsafe/as-sha256@^0.4.1":
Expand Down Expand Up @@ -1114,7 +1115,7 @@
"@ethersproject/properties" "^5.7.0"
"@ethersproject/strings" "^5.7.0"

"@floating-ui/core@^1.3.1":
"@floating-ui/core@^1.3.1", "@floating-ui/core@^1.4.1":
version "1.4.1"
resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-1.4.1.tgz#0d633f4b76052668afb932492ac452f7ebe97f17"
integrity sha512-jk3WqquEJRlcyu7997NtR5PibI+y5bi+LS3hPmguVClypenMsCY3CBa3LAQnozRCtCrYWSEtAdiskpamuJRFOQ==
Expand All @@ -1128,6 +1129,14 @@
dependencies:
"@floating-ui/core" "^1.3.1"

"@floating-ui/dom@^1.4.5":
version "1.5.1"
resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-1.5.1.tgz#88b70defd002fe851f17b4a25efb2d3c04d7a8d7"
integrity sha512-KwvVcPSXg6mQygvA1TjbN/gh///36kKtllIF8SUm0qpFj8+rvYrpvlYdL1JoA71SHpDqgSSdGOSoQ0Mp3uY5aw==
dependencies:
"@floating-ui/core" "^1.4.1"
"@floating-ui/utils" "^0.1.1"

"@floating-ui/utils@^0.1.1":
version "0.1.1"
resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.1.1.tgz#1a5b1959a528e374e8037c4396c3e825d6cf4a83"
Expand Down Expand Up @@ -9996,10 +10005,12 @@ [email protected]:
resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.58.0.tgz#d3e6f103efd6129e51c7d709225ad3b4c052b64e"
integrity sha512-brIBNNB76mXFmU/Kerm4wFnkskBbluBDCjx/8TcpYRb298Yh2dztS2kQ6bhtjMcvUhd5ynClfwpz5h2gnzdQ1A==

[email protected]:
version "3.5.0"
resolved "https://registry.yarnpkg.com/svelty-picker/-/svelty-picker-3.5.0.tgz#003e602489ba66f82745bd517d926a85879d1015"
integrity sha512-URxe82uJshx1I2mYdHU1/b2DysexvDZhgnfBP3p/aL5VBCa/PN0YltDR5VXQduW4EqxfQAJ9V/7w+adXqfx1rQ==
[email protected]:
version "4.1.3"
resolved "https://registry.yarnpkg.com/svelty-picker/-/svelty-picker-4.1.3.tgz#a19ca75459b5a6f2bc2387567b33b7048427645e"
integrity sha512-83gaWpwn16zhJctNEUuUMA883vvgsdbyj+Eil/nTWrRZ9b+xg2McQIRMcG4KxE+jvS10AdUO5pduxT1HLBBMpQ==
dependencies:
"@floating-ui/dom" "^1.4.5"

swarm-js@^0.1.40:
version "0.1.42"
Expand Down

0 comments on commit 1d285f6

Please sign in to comment.