@webority/ui-react 0.11.3 → 0.11.4

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.
@@ -20,11 +20,15 @@
20
20
  * @param {number} [props.maxSizeMb] Defaults to the shared DEFAULT_MAX_SIZE_MB.
21
21
  * @param {boolean} [props.required]
22
22
  * @param {string} [props.error]
23
+ * @param {string} [props.hint] Helper text below the control; an error (the caller's or a rejected
24
+ * pick's) replaces it while it shows.
25
+ * @param {boolean} [props.loading=false] Spinner over the control and picking blocked, e.g. while
26
+ * the chosen file uploads.
23
27
  * @param {string} [props.className] Class to apply to the control element — the preview or dropzone shell.
24
28
  * @param {string} [props.fieldClassName] Class to apply to the wrapper field div — e.g. a `file-w-*` width preset.
25
29
  * @param {object} [props.style] Inline style; lands on the control with `className`.
26
30
  */
27
- export default function AppFilePicker({ label, value, name, id, onPick, multiple, maxFiles, accept, maxSizeMb, required, error, className, fieldClassName, style, ...rest }: {
31
+ export default function AppFilePicker({ label, value, name, id, onPick, multiple, maxFiles, accept, maxSizeMb, required, error, hint, loading, className, fieldClassName, style, ...rest }: {
28
32
  label?: string;
29
33
  value?: File | {
30
34
  url: string;
@@ -42,6 +46,8 @@ export default function AppFilePicker({ label, value, name, id, onPick, multiple
42
46
  maxSizeMb?: number;
43
47
  required?: boolean;
44
48
  error?: string;
49
+ hint?: string;
50
+ loading?: boolean;
45
51
  className?: string;
46
52
  fieldClassName?: string;
47
53
  style?: object;
package/dist/ui-react.js CHANGED
@@ -169,7 +169,7 @@ var R = {
169
169
  x: () => import("./x.g-Cc7upOBC.js"),
170
170
  z: () => import("./z.g-COIy6PjH.js")
171
171
  }
172
- }, B = /* @__PURE__ */ "aave.activity.add.add-circle.add-square.additem.airdrop.airplane.airplane-square.airpod.airpods.alarm.alert-circle.alert-triangle.align-bottom.align-horizontally.align-left.align-right.align-top.align-vertically.android.ankr.apple.aquarius.archive.archive-add.archive-book.archive-box.archive-minus.archive-slash.archive-tick.arrange-horizontal.arrange-horizontal-circle.arrange-horizontal-square.arrange-vertical.arrange-vertical-circle.arrange-vertical-square.arrow.arrow-circle-down.arrow-circle-down-2.arrow-circle-left.arrow-circle-left-2.arrow-circle-right.arrow-circle-right-2.arrow-circle-up.arrow-circle-up-2.arrow-down.arrow-down-2.arrow-down-3.arrow-down-up.arrow-forward.arrow-forward-square.arrow-left.arrow-left-2.arrow-left-3.arrow-right.arrow-right-2.arrow-right-3.arrow-rotate-left.arrow-rotate-right.arrow-square.arrow-square-down.arrow-square-left.arrow-square-right.arrow-square-up.arrow-swap-horizontal.arrow-swap-vertical.arrow-up.arrow-up-2.arrow-up-3.arrow-up-right.attach-circle.attach-square.audio-square.augur.autobrightness.autonio.avalanche.award.back.back-square.backward.backward-10-seconds.backward-15-seconds.backward-5-seconds.backward-item.badge-check.bag.bag-2.bag-cross.bag-cross-1.bag-happy.bag-tick.bag-tick-2.bag-timer.bank.barcode.battery-charging.battery-disable.battery-empty.battery-empty-1.battery-full.be.bell.bezier.bill.binance-coin.binance-usd.bitcoin.bitcoin-card.bitcoin-convert.bitcoin-refresh.blend.blend-2.blogger.bluetooth.bluetooth-2.bluetooth-circle.bluetooth-rectangle.blur.book.book-1.book-saved.book-square.bookmark.bookmark-2.bootstrap.box.box-1.box-2.box-add.box-remove.box-seam.box-search.box-tick.box-time.briefcase.brifecase-cross.brifecase-tick.brifecase-timer.brodcast.broom.brush.brush-2.brush-3.brush-big.brush-square.bubble.bucket.bucket-circle.bucket-square.bug.building.building-2.building-3.building-4.buildings.buildings-2.buliding.bullseye.bus.buy-crypto.cake.calculator.calendar.calendar-1.calendar-2.calendar-add.calendar-check.calendar-circle.calendar-dots.calendar-edit.calendar-remove.calendar-search.calendar-tick.call.call-add.call-calling.call-incoming.call-minus.call-outgoing.call-received.call-remove.call-slash.camera.camera-slash.candle.candle-2.car.card.card-add.card-coin.card-edit.card-pos.card-receive.card-remove.card-remove-1.card-send.card-slash.card-tick.card-tick-1.cardano.cards.cash-stack.category.category-2.cd.celo.celsius.chainlink.chart.chart-1.chart-2.chart-21.chart-circle.chart-column.chart-fail.chart-square.chart-success.chat.chat-dots.check.check-check.check-circle.chemical-glass.chevron-down.chevron-left.chevron-right.chevron-up.chevrons-left.chevrons-right.chevrons-up-down.chrome.circle.circle-help.civic.clipboard.clipboard-check.clipboard-close.clipboard-export.clipboard-import.clipboard-text.clipboard-tick.clock.close-circle.close-square.cloud.cloud-add.cloud-change.cloud-connection.cloud-cross.cloud-drizzle.cloud-fog.cloud-lightning.cloud-minus.cloud-notif.cloud-plus.cloud-remove.cloud-snow.cloud-sunny.code.code-1.code-circle.coffee.coin.coin-1.coins.color-swatch.colorfilter.colors-square.command.command-square.component.computing.contact.convert.convert-3-d-cube.convert-card.convertshape.convertshape-2.copy.copy-success.copyright.courthouse.cpu.cpu-charge.cpu-setting.creative-commons.credit-card.crop.crown.crown-1.cup.cursor.cut.dai.danger.dash.data.data-2.decred.dent.designtools.device-message.devices.diagram.diagram-3.diamonds.direct.direct-down.direct-inbox.direct-left.direct-normal.direct-notification.direct-right.direct-send.direct-up.directbox-default.directbox-notif.directbox-receive.directbox-send.discount-circle.discount-shape.discover.dislike.display.document.document-cloud.document-code.document-code-2.document-copy.document-download.document-favorite.document-filter.document-forward.document-like.document-previous.document-sketch.document-text.document-text-1.document-upload.dollar-circle.dollar-square.download.dribbble.driver.driver-2.driver-refresh.driving.drop.dropbox.edit.edit-2.educare.electricity.element.element-2.element-3.element-4.element-equal.element-plus.emercoin.emoji-happy.emoji-normal.emoji-sad.emoji-smile.empty-wallet.empty-wallet-add.empty-wallet-change.empty-wallet-remove.empty-wallet-tick.empty-wallet-time.enjin-coin.eos.eraser.eraser-square.ethereum.ethereum-classic.export.export-circle.export-curve.export-square.external-drive.external-link.eye.eye-off.eye-slash.facebook.factory.fatrows.favorite-chart.figma.figma-1.file-plus-2.file-text.files.filter.filter-add.filter-edit.filter-remove.filter-search.filter-square.filter-tick.finger-cricle.finger-scan.firstline.flag.flag-2.flash.flash-circle.flash-slash.flashy.folder.folder-2.folder-add.folder-cloud.folder-connection.folder-cross.folder-favorite.folder-kanban.folder-minus.folder-open.folder-plus.forbidden.forbidden-2.format-circle.format-square.forward.forward-10-seconds.forward-15-seconds.forward-5-seconds.forward-item.framer.ftx-token.gallery.gallery-add.gallery-edit.gallery-export.gallery-favorite.gallery-import.gallery-remove.gallery-slash.gallery-tick.game.gameboy.gas-station.gauge.gemini.gemini-2.ghost.gift.glass.global.global-edit.global-refresh.global-search.globe.globe2.google.google-drive.google-play.gps.gps-slash.grammerly.graph.grid.grid-1.grid-2.grid-3.grid-4.grid-5.grid-6.grid-7.grid-8.grid-9.grid-edit.grid-eraser.grid-lock.hamberger-menu.happyemoji.hard-hat.harmony.hashtag.hashtag-down.hashtag-square.hashtag-up.headphone.headphones.health.heart.heart-add.heart-circle.heart-edit.heart-remove.heart-search.heart-slash.heart-tick.hedera-hashgraph.hex.hierarchy.hierarchy-2.hierarchy-3.hierarchy-square.hierarchy-square-2.hierarchy-square-3.history.home.home-2.home-3.home-hashtag.home-trend-down.home-trend-up.home-wifi.hospital.house.house-2.html-3.html-5.huobi-token.i-24-support.i-3-d-cube-scan.i-3-d-rotate.i-3-d-square.i-3-dcube.i-3-square.icon.illustrator.image.import.import-circle.import-curve.import-square.inbox.info.info-circle.information.instagram.iost.java-script.js.judge.kanban.key.key-square.keyboard.keyboard-open.kyber-network.lamp.lamp-charge.lamp-on.lamp-slash.language-circle.language-square.layer.layout-dashboard.layout-grid.layout-maximize.level.lifebuoy.lightbulb.like.like-1.like-dislike.like-shapes.like-tag.link.link-1.link-2.link-21.link-circle.link-square.list.litecoin.location.location-add.location-cross.location-discover.location-minus.location-slash.location-tick.lock.lock-1.lock-circle.lock-slash.log-out.login.login-curve.logout.logout-curve.lovely.magic-star.magicpen.mail.main-component.maker.man.map.map-1.map-pin.mask.mask-left.mask-right.math.maximize.maximize-1.maximize-2.maximize-3.maximize-4.maximize-circle.medal.medal-star.menu.menu-board.message.message-2.message-add.message-add-1.message-circle.message-edit.message-favorite.message-minus.message-notif.message-programming.message-question.message-remove.message-search.message-square.message-text.message-text-1.message-tick.message-time.messages.messages-1.messages-2.messages-3.messenger.microphone.microphone-2.microphone-slash.microphone-slash-1.microscope.milk.mini-music-sqaure.minus.minus-cirlce.minus-square.mirror.mirroring-screen.mobile.mobile-programming.monero.money.money-2.money-3.money-4.money-add.money-archive.money-change.money-forbidden.money-recive.money-remove.money-send.money-tick.money-time.moneys.monitor.monitor-mobbile.monitor-recorder.moon.more.more-2.more-circle.more-horizontal.more-square.mouse.mouse-circle.mouse-square.music.music-circle.music-dashboard.music-filter.music-library-2.music-play.music-playlist.music-square.music-square-add.music-square-remove.music-square-search.musicnote.nebulas.nem.nexo.next.note.note-1.note-add.note-favorite.note-remove.note-square.note-text.notepad.notepad-2.notification.notification-1.notification-bing.notification-circle.notification-favorite.notification-status.ocean-protocol.okb.okru.omega-circle.omega-square.ontology.paintbucket.palette.panel-left-close.panel-left-open.paperclip.paperclip-2.password-check.path-tool.path-tool-2.path-tool-square.pause.pause-circle.paypal.pen-add.pen-close.pen-remove.pen-tool.pen-tool-2.pencil.people.percentage-circle.percentage-square.personalcard.pet.pharagraphspacing.phone.photoshop.picture-frame.play.play-add.play-circle.play-cricle.play-remove.plug.plus.plus-circle.pointer.polkadot.polygon.polyswarm.presention-chart.previous.printer.printer-slash.profile.profile-2-user.profile-add.profile-circle.profile-delete.profile-remove.profile-tick.programming-arrow.programming-arrows.python.quant.quote-down.quote-down-circle.quote-down-square.quote-up.quote-up-circle.quote-up-square.radar.radar-2.radio.ram.ram-2.rank.ranking.receipt.receipt-1.receipt-2.receipt-21.receipt-add.receipt-discount.receipt-disscount.receipt-edit.receipt-item.receipt-minus.receipt-search.receipt-square.receipt-text.receive.receive-square.receive-square-2.record.record-circle.recovery-convert.refresh.refresh-2.refresh-circle.refresh-cw.refresh-left-square.refresh-right-square.refresh-square.repeat.repeat-circle.repeate-music.repeate-one.reserve.rotate-ccw.rotate-left.rotate-right.route-square.routing.routing-2.row-horizontal.row-vertical.ruler.ruler-pen.safe-home.sagittarius.save-2.save-add.save-minus.save-remove.scan.scan-barcode.scanner.scanning.scissor.screenmirroring.scroll.search.search-favorite.search-favorite-1.search-normal.search-normal-1.search-status.search-status-1.search-zoom-in.search-zoom-in-1.search-zoom-out.search-zoom-out-1.security.security-card.security-safe.security-time.security-user.send.send-2.server.setting.setting-2.setting-3.setting-4.setting-5.settings.shapes.shapes-1.share.share-2.shield.shield-check.shield-cross.shield-lock.shield-plus.shield-search.shield-security.shield-slash.shield-tick.ship.shop.shop-add.shop-remove.shopping-bag.shopping-cart.shuffle.shutterstock.siacoin.sidebar-bottom.sidebar-left.sidebar-right.sidebar-top.signpost.simcard.simcard-1.simcard-2.size.slack.slash.slider.slider-horizontal.slider-horizontal-1.slider-vertical.slider-vertical-1.smallcaps.smart-car.smart-home.smileys.sms.sms-edit.sms-notification.sms-search.sms-star.sms-tracking.snapchat.solana.sort.sound.sparkles.speaker.speedometer.spotify.stacks.star.star-1.star-slash.stars.status.status-up.stellar.sticker.stickynote.stop.stop-circle.story.strongbox.strongbox-2.subtitle.sun.sun-1.sun-fog.table-document.table-lamp.tag.tag-2.tag-cross.tag-right.tag-user.task.task-square.teacher.telephone.tenx.tether.text.text-block.text-bold.text-italic.text-underline.textalign-center.textalign-justifycenter.textalign-justifyleft.textalign-justifyright.textalign-left.textalign-right.the-graph.theta.thorchain.tick-circle.tick-square.ticket.ticket-2.ticket-discount.ticket-expired.ticket-star.timer.timer-1.timer-pause.timer-start.toggle-off.toggle-off-circle.toggle-on.toggle-on-circle.trade.transaction-minus.translate.transmit.transmit-sqaure-2.transmit-square.trash.trash-2.tree.trello.trend-down.trend-up.trending-up.triangle.triangle-logo.trontron.truck.truck-fast.truck-remove.truck-tick.truck-time.trush-square.twitch.two-page.ui-8.unlimited.unlock.upload.usd-coin.user.user-add.user-check.user-cirlce-add.user-edit.user-minus.user-octagon.user-plus.user-remove.user-search.user-square.user-tag.user-tick.users.velas.verify.vibe.video.video-add.video-circle.video-horizontal.video-octagon.video-play.video-remove.video-slash.video-square.video-tick.video-time.video-vertical.voice-cricle.voice-square.volume.volume-cross.volume-high.volume-low.volume-low-1.volume-mute.volume-slash.volume-up.wallet.wallet-1.wallet-2.wallet-3.wallet-add.wallet-add-1.wallet-check.wallet-minus.wallet-money.wallet-remove.wallet-search.wallet2.wanchain.wanchain-1.wand-sparkles.warning-2.watch.watch-status.weight.weight-meter.whatsapp.wifi.wifi-square.wind.wind-2.windows.wing.woman.wrist-clock.x.x-circle.xd.xiaomi.xrp.youtube.zap.zel.zoom.zoom-in.zoom-out".split("."), V = {
172
+ }, ee = /* @__PURE__ */ "aave.activity.add.add-circle.add-square.additem.airdrop.airplane.airplane-square.airpod.airpods.alarm.alert-circle.alert-triangle.align-bottom.align-horizontally.align-left.align-right.align-top.align-vertically.android.ankr.apple.aquarius.archive.archive-add.archive-book.archive-box.archive-minus.archive-slash.archive-tick.arrange-horizontal.arrange-horizontal-circle.arrange-horizontal-square.arrange-vertical.arrange-vertical-circle.arrange-vertical-square.arrow.arrow-circle-down.arrow-circle-down-2.arrow-circle-left.arrow-circle-left-2.arrow-circle-right.arrow-circle-right-2.arrow-circle-up.arrow-circle-up-2.arrow-down.arrow-down-2.arrow-down-3.arrow-down-up.arrow-forward.arrow-forward-square.arrow-left.arrow-left-2.arrow-left-3.arrow-right.arrow-right-2.arrow-right-3.arrow-rotate-left.arrow-rotate-right.arrow-square.arrow-square-down.arrow-square-left.arrow-square-right.arrow-square-up.arrow-swap-horizontal.arrow-swap-vertical.arrow-up.arrow-up-2.arrow-up-3.arrow-up-right.attach-circle.attach-square.audio-square.augur.autobrightness.autonio.avalanche.award.back.back-square.backward.backward-10-seconds.backward-15-seconds.backward-5-seconds.backward-item.badge-check.bag.bag-2.bag-cross.bag-cross-1.bag-happy.bag-tick.bag-tick-2.bag-timer.bank.barcode.battery-charging.battery-disable.battery-empty.battery-empty-1.battery-full.be.bell.bezier.bill.binance-coin.binance-usd.bitcoin.bitcoin-card.bitcoin-convert.bitcoin-refresh.blend.blend-2.blogger.bluetooth.bluetooth-2.bluetooth-circle.bluetooth-rectangle.blur.book.book-1.book-saved.book-square.bookmark.bookmark-2.bootstrap.box.box-1.box-2.box-add.box-remove.box-seam.box-search.box-tick.box-time.briefcase.brifecase-cross.brifecase-tick.brifecase-timer.brodcast.broom.brush.brush-2.brush-3.brush-big.brush-square.bubble.bucket.bucket-circle.bucket-square.bug.building.building-2.building-3.building-4.buildings.buildings-2.buliding.bullseye.bus.buy-crypto.cake.calculator.calendar.calendar-1.calendar-2.calendar-add.calendar-check.calendar-circle.calendar-dots.calendar-edit.calendar-remove.calendar-search.calendar-tick.call.call-add.call-calling.call-incoming.call-minus.call-outgoing.call-received.call-remove.call-slash.camera.camera-slash.candle.candle-2.car.card.card-add.card-coin.card-edit.card-pos.card-receive.card-remove.card-remove-1.card-send.card-slash.card-tick.card-tick-1.cardano.cards.cash-stack.category.category-2.cd.celo.celsius.chainlink.chart.chart-1.chart-2.chart-21.chart-circle.chart-column.chart-fail.chart-square.chart-success.chat.chat-dots.check.check-check.check-circle.chemical-glass.chevron-down.chevron-left.chevron-right.chevron-up.chevrons-left.chevrons-right.chevrons-up-down.chrome.circle.circle-help.civic.clipboard.clipboard-check.clipboard-close.clipboard-export.clipboard-import.clipboard-text.clipboard-tick.clock.close-circle.close-square.cloud.cloud-add.cloud-change.cloud-connection.cloud-cross.cloud-drizzle.cloud-fog.cloud-lightning.cloud-minus.cloud-notif.cloud-plus.cloud-remove.cloud-snow.cloud-sunny.code.code-1.code-circle.coffee.coin.coin-1.coins.color-swatch.colorfilter.colors-square.command.command-square.component.computing.contact.convert.convert-3-d-cube.convert-card.convertshape.convertshape-2.copy.copy-success.copyright.courthouse.cpu.cpu-charge.cpu-setting.creative-commons.credit-card.crop.crown.crown-1.cup.cursor.cut.dai.danger.dash.data.data-2.decred.dent.designtools.device-message.devices.diagram.diagram-3.diamonds.direct.direct-down.direct-inbox.direct-left.direct-normal.direct-notification.direct-right.direct-send.direct-up.directbox-default.directbox-notif.directbox-receive.directbox-send.discount-circle.discount-shape.discover.dislike.display.document.document-cloud.document-code.document-code-2.document-copy.document-download.document-favorite.document-filter.document-forward.document-like.document-previous.document-sketch.document-text.document-text-1.document-upload.dollar-circle.dollar-square.download.dribbble.driver.driver-2.driver-refresh.driving.drop.dropbox.edit.edit-2.educare.electricity.element.element-2.element-3.element-4.element-equal.element-plus.emercoin.emoji-happy.emoji-normal.emoji-sad.emoji-smile.empty-wallet.empty-wallet-add.empty-wallet-change.empty-wallet-remove.empty-wallet-tick.empty-wallet-time.enjin-coin.eos.eraser.eraser-square.ethereum.ethereum-classic.export.export-circle.export-curve.export-square.external-drive.external-link.eye.eye-off.eye-slash.facebook.factory.fatrows.favorite-chart.figma.figma-1.file-plus-2.file-text.files.filter.filter-add.filter-edit.filter-remove.filter-search.filter-square.filter-tick.finger-cricle.finger-scan.firstline.flag.flag-2.flash.flash-circle.flash-slash.flashy.folder.folder-2.folder-add.folder-cloud.folder-connection.folder-cross.folder-favorite.folder-kanban.folder-minus.folder-open.folder-plus.forbidden.forbidden-2.format-circle.format-square.forward.forward-10-seconds.forward-15-seconds.forward-5-seconds.forward-item.framer.ftx-token.gallery.gallery-add.gallery-edit.gallery-export.gallery-favorite.gallery-import.gallery-remove.gallery-slash.gallery-tick.game.gameboy.gas-station.gauge.gemini.gemini-2.ghost.gift.glass.global.global-edit.global-refresh.global-search.globe.globe2.google.google-drive.google-play.gps.gps-slash.grammerly.graph.grid.grid-1.grid-2.grid-3.grid-4.grid-5.grid-6.grid-7.grid-8.grid-9.grid-edit.grid-eraser.grid-lock.hamberger-menu.happyemoji.hard-hat.harmony.hashtag.hashtag-down.hashtag-square.hashtag-up.headphone.headphones.health.heart.heart-add.heart-circle.heart-edit.heart-remove.heart-search.heart-slash.heart-tick.hedera-hashgraph.hex.hierarchy.hierarchy-2.hierarchy-3.hierarchy-square.hierarchy-square-2.hierarchy-square-3.history.home.home-2.home-3.home-hashtag.home-trend-down.home-trend-up.home-wifi.hospital.house.house-2.html-3.html-5.huobi-token.i-24-support.i-3-d-cube-scan.i-3-d-rotate.i-3-d-square.i-3-dcube.i-3-square.icon.illustrator.image.import.import-circle.import-curve.import-square.inbox.info.info-circle.information.instagram.iost.java-script.js.judge.kanban.key.key-square.keyboard.keyboard-open.kyber-network.lamp.lamp-charge.lamp-on.lamp-slash.language-circle.language-square.layer.layout-dashboard.layout-grid.layout-maximize.level.lifebuoy.lightbulb.like.like-1.like-dislike.like-shapes.like-tag.link.link-1.link-2.link-21.link-circle.link-square.list.litecoin.location.location-add.location-cross.location-discover.location-minus.location-slash.location-tick.lock.lock-1.lock-circle.lock-slash.log-out.login.login-curve.logout.logout-curve.lovely.magic-star.magicpen.mail.main-component.maker.man.map.map-1.map-pin.mask.mask-left.mask-right.math.maximize.maximize-1.maximize-2.maximize-3.maximize-4.maximize-circle.medal.medal-star.menu.menu-board.message.message-2.message-add.message-add-1.message-circle.message-edit.message-favorite.message-minus.message-notif.message-programming.message-question.message-remove.message-search.message-square.message-text.message-text-1.message-tick.message-time.messages.messages-1.messages-2.messages-3.messenger.microphone.microphone-2.microphone-slash.microphone-slash-1.microscope.milk.mini-music-sqaure.minus.minus-cirlce.minus-square.mirror.mirroring-screen.mobile.mobile-programming.monero.money.money-2.money-3.money-4.money-add.money-archive.money-change.money-forbidden.money-recive.money-remove.money-send.money-tick.money-time.moneys.monitor.monitor-mobbile.monitor-recorder.moon.more.more-2.more-circle.more-horizontal.more-square.mouse.mouse-circle.mouse-square.music.music-circle.music-dashboard.music-filter.music-library-2.music-play.music-playlist.music-square.music-square-add.music-square-remove.music-square-search.musicnote.nebulas.nem.nexo.next.note.note-1.note-add.note-favorite.note-remove.note-square.note-text.notepad.notepad-2.notification.notification-1.notification-bing.notification-circle.notification-favorite.notification-status.ocean-protocol.okb.okru.omega-circle.omega-square.ontology.paintbucket.palette.panel-left-close.panel-left-open.paperclip.paperclip-2.password-check.path-tool.path-tool-2.path-tool-square.pause.pause-circle.paypal.pen-add.pen-close.pen-remove.pen-tool.pen-tool-2.pencil.people.percentage-circle.percentage-square.personalcard.pet.pharagraphspacing.phone.photoshop.picture-frame.play.play-add.play-circle.play-cricle.play-remove.plug.plus.plus-circle.pointer.polkadot.polygon.polyswarm.presention-chart.previous.printer.printer-slash.profile.profile-2-user.profile-add.profile-circle.profile-delete.profile-remove.profile-tick.programming-arrow.programming-arrows.python.quant.quote-down.quote-down-circle.quote-down-square.quote-up.quote-up-circle.quote-up-square.radar.radar-2.radio.ram.ram-2.rank.ranking.receipt.receipt-1.receipt-2.receipt-21.receipt-add.receipt-discount.receipt-disscount.receipt-edit.receipt-item.receipt-minus.receipt-search.receipt-square.receipt-text.receive.receive-square.receive-square-2.record.record-circle.recovery-convert.refresh.refresh-2.refresh-circle.refresh-cw.refresh-left-square.refresh-right-square.refresh-square.repeat.repeat-circle.repeate-music.repeate-one.reserve.rotate-ccw.rotate-left.rotate-right.route-square.routing.routing-2.row-horizontal.row-vertical.ruler.ruler-pen.safe-home.sagittarius.save-2.save-add.save-minus.save-remove.scan.scan-barcode.scanner.scanning.scissor.screenmirroring.scroll.search.search-favorite.search-favorite-1.search-normal.search-normal-1.search-status.search-status-1.search-zoom-in.search-zoom-in-1.search-zoom-out.search-zoom-out-1.security.security-card.security-safe.security-time.security-user.send.send-2.server.setting.setting-2.setting-3.setting-4.setting-5.settings.shapes.shapes-1.share.share-2.shield.shield-check.shield-cross.shield-lock.shield-plus.shield-search.shield-security.shield-slash.shield-tick.ship.shop.shop-add.shop-remove.shopping-bag.shopping-cart.shuffle.shutterstock.siacoin.sidebar-bottom.sidebar-left.sidebar-right.sidebar-top.signpost.simcard.simcard-1.simcard-2.size.slack.slash.slider.slider-horizontal.slider-horizontal-1.slider-vertical.slider-vertical-1.smallcaps.smart-car.smart-home.smileys.sms.sms-edit.sms-notification.sms-search.sms-star.sms-tracking.snapchat.solana.sort.sound.sparkles.speaker.speedometer.spotify.stacks.star.star-1.star-slash.stars.status.status-up.stellar.sticker.stickynote.stop.stop-circle.story.strongbox.strongbox-2.subtitle.sun.sun-1.sun-fog.table-document.table-lamp.tag.tag-2.tag-cross.tag-right.tag-user.task.task-square.teacher.telephone.tenx.tether.text.text-block.text-bold.text-italic.text-underline.textalign-center.textalign-justifycenter.textalign-justifyleft.textalign-justifyright.textalign-left.textalign-right.the-graph.theta.thorchain.tick-circle.tick-square.ticket.ticket-2.ticket-discount.ticket-expired.ticket-star.timer.timer-1.timer-pause.timer-start.toggle-off.toggle-off-circle.toggle-on.toggle-on-circle.trade.transaction-minus.translate.transmit.transmit-sqaure-2.transmit-square.trash.trash-2.tree.trello.trend-down.trend-up.trending-up.triangle.triangle-logo.trontron.truck.truck-fast.truck-remove.truck-tick.truck-time.trush-square.twitch.two-page.ui-8.unlimited.unlock.upload.usd-coin.user.user-add.user-check.user-cirlce-add.user-edit.user-minus.user-octagon.user-plus.user-remove.user-search.user-square.user-tag.user-tick.users.velas.verify.vibe.video.video-add.video-circle.video-horizontal.video-octagon.video-play.video-remove.video-slash.video-square.video-tick.video-time.video-vertical.voice-cricle.voice-square.volume.volume-cross.volume-high.volume-low.volume-low-1.volume-mute.volume-slash.volume-up.wallet.wallet-1.wallet-2.wallet-3.wallet-add.wallet-add-1.wallet-check.wallet-minus.wallet-money.wallet-remove.wallet-search.wallet2.wanchain.wanchain-1.wand-sparkles.warning-2.watch.watch-status.weight.weight-meter.whatsapp.wifi.wifi-square.wind.wind-2.windows.wing.woman.wrist-clock.x.x-circle.xd.xiaomi.xrp.youtube.zap.zel.zoom.zoom-in.zoom-out".split("."), B = {
173
173
  activity: "<path d=\"M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"m7.33 14.49 2.38-3.09c.34-.44.97-.52 1.41-.18l1.83 1.44c.44.34 1.07.26 1.41-.17l2.31-2.98\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
174
174
  alarm: "<path d=\"M2 22h20M12 6a9 9 0 0 0-9 9v7h18v-7a9 9 0 0 0-9-9ZM12 2v1M4 4l1 1M20 4l-1 1\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
175
175
  "alert-circle": "<path d=\"M12 7.75V13M21.08 8.58v6.84c0 1.12-.6 2.16-1.57 2.73l-5.94 3.43c-.97.56-2.17.56-3.15 0l-5.94-3.43a3.15 3.15 0 0 1-1.57-2.73V8.58c0-1.12.6-2.16 1.57-2.73l5.94-3.43c.97-.56 2.17-.56 3.15 0l5.94 3.43c.97.57 1.57 1.6 1.57 2.73Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M12 16.2v.1\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
@@ -318,19 +318,19 @@ var R = {
318
318
  "zoom-in": "<path d=\"M11 20a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM8.5 11h5M11 13.5v-5M18.93 20.69c.53 1.6 1.74 1.76 2.67.36.85-1.28.29-2.33-1.25-2.33-1.14-.01-1.78.88-1.42 1.97Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
319
319
  "zoom-out": "<path d=\"M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>"
320
320
  };
321
- Object.keys(V);
321
+ Object.keys(B);
322
322
  //#endregion
323
323
  //#region src/components/warnUnknownProps.js
324
- var H = /* @__PURE__ */ new Set(/* @__PURE__ */ "id.title.role.style.className.class.tabIndex.lang.dir.hidden.slot.part.draggable.spellCheck.translate.inert.popover.name.type.value.defaultValue.checked.defaultChecked.placeholder.disabled.readOnly.required.autoFocus.autoComplete.form.formAction.formMethod.formNoValidate.formTarget.min.max.step.minLength.maxLength.pattern.multiple.accept.capture.rows.cols.wrap.list.htmlFor.inputMode.enterKeyHint.href.target.rel.download.ping.referrerPolicy.src.srcSet.alt.width.height.loading.decoding.sizes.crossOrigin.useMap.colSpan.rowSpan.headers.scope.span.key.ref.children.dangerouslySetInnerHTML.suppressHydrationWarning".split(".")), ee = () => {
324
+ var V = /* @__PURE__ */ new Set(/* @__PURE__ */ "id.title.role.style.className.class.tabIndex.lang.dir.hidden.slot.part.draggable.spellCheck.translate.inert.popover.name.type.value.defaultValue.checked.defaultChecked.placeholder.disabled.readOnly.required.autoFocus.autoComplete.form.formAction.formMethod.formNoValidate.formTarget.min.max.step.minLength.maxLength.pattern.multiple.accept.capture.rows.cols.wrap.list.htmlFor.inputMode.enterKeyHint.href.target.rel.download.ping.referrerPolicy.src.srcSet.alt.width.height.loading.decoding.sizes.crossOrigin.useMap.colSpan.rowSpan.headers.scope.span.key.ref.children.dangerouslySetInnerHTML.suppressHydrationWarning".split(".")), te = () => {
325
325
  try {
326
326
  return process.env.NODE_ENV !== "production";
327
327
  } catch {
328
328
  return !0;
329
329
  }
330
- }, te = (e) => e.startsWith("data-") || e.startsWith("aria-") || /^on[A-Z]/.test(e), ne = /* @__PURE__ */ new Set();
330
+ }, H = (e) => e.startsWith("data-") || e.startsWith("aria-") || /^on[A-Z]/.test(e), ne = /* @__PURE__ */ new Set();
331
331
  function U(e, t) {
332
- if (!(!ee() || !t) && !("as" in t)) for (let n of Object.keys(t)) {
333
- if (te(n) || H.has(n)) continue;
332
+ if (!(!te() || !t) && !("as" in t)) for (let n of Object.keys(t)) {
333
+ if (H(n) || V.has(n)) continue;
334
334
  let t = `${e}.${n}`;
335
335
  ne.has(t) || (ne.add(t), console.warn(`[@webority/ui-react] <${e}> received an unknown prop "${n}". It is not part of the component's API and is not a valid HTML attribute, so it will either be dropped or land on the DOM — check the prop name against the component catalogue at https://ui-react.webority.dev.`));
336
336
  }
@@ -411,7 +411,7 @@ function pe() {
411
411
  }, 1e3));
412
412
  }), ue;
413
413
  }
414
- var me = new Set(B), he = Object.create(null), ge = Object.create(null), q = Object.create(null), _e = Object.create(null);
414
+ var me = new Set(ee), he = Object.create(null), ge = Object.create(null), q = Object.create(null), _e = Object.create(null);
415
415
  function ve(e) {
416
416
  let t = L(e), n = R[t];
417
417
  return n ? (ge[t] ||= n().then((e) => {
@@ -448,7 +448,7 @@ function Se(e, t) {
448
448
  }, 1e3));
449
449
  }), be[a];
450
450
  }
451
- var Ce = B, we = /* @__PURE__ */ new Map();
451
+ var Ce = ee, we = /* @__PURE__ */ new Map();
452
452
  function Te(e) {
453
453
  for (let [t, n] of Object.entries(e)) we.set(t, n);
454
454
  }
@@ -459,7 +459,7 @@ function Y({ name: e, size: t = 16, variant: n, tooltip: r, tooltipPlacement: i,
459
459
  role: "img",
460
460
  "aria-label": r,
461
461
  children: e
462
- }), r, i) : e, m = V[e] !== void 0, h = !m && me.has(e), [, g] = f(0);
462
+ }), r, i) : e, m = B[e] !== void 0, h = !m && me.has(e), [, g] = f(0);
463
463
  o(() => {
464
464
  let t = () => g((e) => e + 1);
465
465
  u && m && !le && (fe.add(t), pe());
@@ -506,7 +506,7 @@ function Y({ name: e, size: t = 16, variant: n, tooltip: r, tooltipPlacement: i,
506
506
  }), /* @__PURE__ */ E("path", { d: "M3.2 22.5C3.2 17.4 7.5 14.9 11 14.7L12 17.4l1-2.7C16.5 14.9 20.8 17.4 20.8 22.5z" })]
507
507
  })
508
508
  }));
509
- let v = u && (le?.[n]?.[e] || ye?.[n]?.[e]) || V[e] || he[e];
509
+ let v = u && (le?.[n]?.[e] || ye?.[n]?.[e]) || B[e] || he[e];
510
510
  return v ? p(/* @__PURE__ */ E("svg", {
511
511
  width: t,
512
512
  height: t,
@@ -1737,9 +1737,9 @@ function yt({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i
1737
1737
  //#region src/components/AppInput.jsx
1738
1738
  var bt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", type: c = "text", size: l = "md", leftIcon: u, rightIcon: p, onRightIconClick: m, rightIconLabel: h, unit: g, id: _, name: v, className: b = "", fieldClassName: x = "", disabled: S = !1, clearable: C = !1, showCount: w = !1, maxLength: T, prefix: O, suffix: k, action: A, floatingLabel: j = !1, variant: M, passwordRequirements: P = !1, requirementsPlacement: F = "auto", ...I }, L) {
1739
1739
  U("AppInput", I);
1740
- let [R, z] = f(!1), B = s(), V = _ || B, H = c === "password", ee = H && R ? "text" : c, te = d(null), ne = (e) => {
1741
- te.current = e, typeof L == "function" ? L(e) : L && (L.current = e);
1742
- }, re = String(I.value ?? I.defaultValue ?? ""), [ie, W] = f(() => !!re), [ae, oe] = f(() => re.length), se = C && !S, G = C || w, K = H && !!P, [ce, le] = f(re);
1740
+ let [R, z] = f(!1), ee = s(), B = _ || ee, V = c === "password", te = V && R ? "text" : c, H = d(null), ne = (e) => {
1741
+ H.current = e, typeof L == "function" ? L(e) : L && (L.current = e);
1742
+ }, re = String(I.value ?? I.defaultValue ?? ""), [ie, W] = f(() => !!re), [ae, oe] = f(() => re.length), se = C && !S, G = C || w, K = V && !!P, [ce, le] = f(re);
1743
1743
  o(() => {
1744
1744
  !K || I.value === void 0 || le(String(I.value ?? ""));
1745
1745
  }, [I.value, K]), o(() => {
@@ -1755,7 +1755,7 @@ var bt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
1755
1755
  type: "button",
1756
1756
  className: "input-clear",
1757
1757
  onClick: () => {
1758
- let e = te.current;
1758
+ let e = H.current;
1759
1759
  if (!e) return;
1760
1760
  let t = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set;
1761
1761
  t ? t.call(e, "") : e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })), W(!1), e.focus();
@@ -1767,20 +1767,20 @@ var bt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
1767
1767
  name: "x",
1768
1768
  size: 16
1769
1769
  })
1770
- }) : null, pe = n && V ? `${V}-error` : void 0, me = r && V ? `${V}-hint` : void 0, he = pe || me, ge = [
1770
+ }) : null, pe = n && B ? `${B}-error` : void 0, me = r && B ? `${B}-hint` : void 0, he = pe || me, ge = [
1771
1771
  "input",
1772
1772
  l === "sm" ? "input-sm" : "",
1773
1773
  l === "lg" ? "input-lg" : "",
1774
1774
  n ? "error" : "",
1775
- H ? "pw" : "",
1775
+ V ? "pw" : "",
1776
1776
  g ? "num-input" : "",
1777
- !(j && e || O || k || g || H || p) && C && se ? "has-clear" : "",
1777
+ !(j && e || O || k || g || V || p) && C && se ? "has-clear" : "",
1778
1778
  M === "bare" ? "input-bare" : "",
1779
1779
  b
1780
1780
  ].filter(Boolean).join(" "), q = /* @__PURE__ */ E(y.Control, {
1781
- id: V,
1781
+ id: B,
1782
1782
  name: v,
1783
- type: ee,
1783
+ type: te,
1784
1784
  className: ge,
1785
1785
  disabled: S,
1786
1786
  required: t,
@@ -1816,7 +1816,7 @@ var bt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
1816
1816
  className: "field-float",
1817
1817
  children: [q, /* @__PURE__ */ D("label", {
1818
1818
  className: "float-label",
1819
- htmlFor: V,
1819
+ htmlFor: B,
1820
1820
  children: [e, t && /* @__PURE__ */ E(Z, {})]
1821
1821
  })]
1822
1822
  });
@@ -1857,7 +1857,7 @@ var bt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
1857
1857
  children: g
1858
1858
  })]
1859
1859
  });
1860
- else if (H) {
1860
+ else if (V) {
1861
1861
  let e = /* @__PURE__ */ D("div", {
1862
1862
  className: u ? "input-icon" : "input-wrap",
1863
1863
  children: [
@@ -1937,7 +1937,7 @@ var bt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
1937
1937
  children: [
1938
1938
  e && !j && /* @__PURE__ */ D(y.Label, {
1939
1939
  className: "label",
1940
- htmlFor: V,
1940
+ htmlFor: B,
1941
1941
  children: [
1942
1942
  e,
1943
1943
  t && /* @__PURE__ */ E(Z, {}),
@@ -2932,23 +2932,23 @@ function nn({ item: e, isImage: t, onRemove: n }) {
2932
2932
  }
2933
2933
  //#endregion
2934
2934
  //#region src/components/AppFilePicker.jsx
2935
- function rn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, maxFiles: c, accept: l = ".jpg,.jpeg,.png", maxSizeMb: u = A, required: p, error: m, className: h = "", fieldClassName: g = "", style: _, ...v }) {
2936
- U("AppFilePicker", v);
2937
- let [y, b] = f(null), [x, S] = f(!1), [C, w] = f(""), T = d(null), O = s(), k = r || O;
2935
+ function rn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, maxFiles: c, accept: l = ".jpg,.jpeg,.png", maxSizeMb: u = A, required: p, error: m, hint: h, loading: g = !1, className: _ = "", fieldClassName: v = "", style: y, ...b }) {
2936
+ U("AppFilePicker", b);
2937
+ let [x, S] = f(null), [C, w] = f(!1), [T, O] = f(""), k = d(null), M = s(), N = r || M;
2938
2938
  o(() => {
2939
2939
  if (!a && t instanceof File && P(t)) {
2940
2940
  let e = URL.createObjectURL(t);
2941
- return b(e), () => URL.revokeObjectURL(e);
2941
+ return S(e), () => URL.revokeObjectURL(e);
2942
2942
  }
2943
- b(null);
2943
+ S(null);
2944
2944
  }, [t, a]);
2945
- let M = a ? Array.isArray(t) ? t : t ? [t] : [] : [], N = m || C, L = N ? `${k}-error` : void 0, R = F(l), z = !a && !!t, B = z && (t instanceof File ? P(t) : R || P(t)), V = t?.name, H = B ? t?.url || y : null, ee = B ? "image" : "file", te = e ? `Change ${e}` : `Change ${ee}`, ne = e ? `Remove ${e}` : `Remove ${ee}`, re = e ? `${e} preview` : `Selected ${ee} preview`, ie = (e) => {
2945
+ let L = a ? Array.isArray(t) ? t : t ? [t] : [] : [], R = m || T, z = R ? `${N}-error` : void 0, ee = h && !R ? `${N}-hint` : void 0, B = z || ee, V = F(l), te = !a && !!t, H = te && (t instanceof File ? P(t) : V || P(t)), ne = t?.name, re = H ? t?.url || x : null, ie = H ? "image" : "file", W = e ? `Change ${e}` : `Change ${ie}`, ae = e ? `Remove ${e}` : `Remove ${ie}`, oe = e ? `${e} preview` : `Selected ${ie} preview`, se = (e) => {
2946
2946
  let t = I(e, {
2947
2947
  accept: l,
2948
2948
  maxSizeMb: u
2949
2949
  });
2950
- return t ? (w(t), !1) : (w(""), i(e), !0);
2951
- }, W = (e) => {
2950
+ return t ? (O(t), !1) : (O(""), i(e), !0);
2951
+ }, G = (e) => {
2952
2952
  let n = Array.from(e || []);
2953
2953
  if (!n.length) return;
2954
2954
  let r = Array.isArray(t) ? t : t ? [t] : [], a = new Set(r.map(Xt)), o = "", s = [];
@@ -2964,58 +2964,69 @@ function rn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
2964
2964
  a.has(Xt(e)) || (a.add(Xt(e)), s.push(e));
2965
2965
  }
2966
2966
  let d = r.concat(s);
2967
- c && d.length > c && (d = d.slice(0, c), o ||= `Up to ${c} files.`), w(o), i(d);
2968
- }, ae = (e) => {
2967
+ c && d.length > c && (d = d.slice(0, c), o ||= `Up to ${c} files.`), O(o), i(d);
2968
+ }, K = (e) => {
2969
2969
  if (a) {
2970
- W(e.target.files);
2970
+ G(e.target.files);
2971
2971
  return;
2972
2972
  }
2973
2973
  let t = e.target.files?.[0] || null;
2974
- t && (ie(t) || (e.target.value = ""));
2975
- }, oe = (e) => {
2976
- if (e.preventDefault(), S(!1), a) {
2977
- W(e.dataTransfer.files);
2974
+ t && (se(t) || (e.target.value = ""));
2975
+ }, ce = (e) => {
2976
+ if (e.preventDefault(), w(!1), g) return;
2977
+ if (a) {
2978
+ G(e.dataTransfer.files);
2978
2979
  return;
2979
2980
  }
2980
2981
  let t = e.dataTransfer.files?.[0];
2981
- t && ie(t);
2982
- }, se = (e) => {
2983
- w(""), i(M.filter((t, n) => n !== e));
2984
- }, G = () => T.current?.click(), K = /* @__PURE__ */ E("input", {
2985
- id: k,
2982
+ t && se(t);
2983
+ }, le = (e) => {
2984
+ O(""), i(L.filter((t, n) => n !== e));
2985
+ }, ue = () => k.current?.click(), de = g ? /* @__PURE__ */ E("span", {
2986
+ className: "wui-file-busy",
2987
+ children: /* @__PURE__ */ E("span", {
2988
+ className: "spinner-border spinner-border-sm",
2989
+ role: "status",
2990
+ "aria-label": "Loading"
2991
+ })
2992
+ }) : null, fe = /* @__PURE__ */ E("input", {
2993
+ id: N,
2986
2994
  name: n,
2987
- ref: T,
2995
+ ref: k,
2988
2996
  type: "file",
2989
- "aria-describedby": L,
2997
+ "aria-describedby": B,
2990
2998
  accept: l,
2991
2999
  multiple: a || void 0,
3000
+ disabled: g || void 0,
2992
3001
  className: "visually-hidden",
2993
3002
  onClick: (e) => {
2994
3003
  e.currentTarget.value = "";
2995
3004
  },
2996
- onChange: ae,
2997
- ...v
3005
+ onChange: K,
3006
+ ...b
2998
3007
  });
2999
3008
  return /* @__PURE__ */ D("div", {
3000
- className: `field${g ? ` ${g}` : ""}`,
3009
+ className: `field${v ? ` ${v}` : ""}`,
3001
3010
  children: [
3002
3011
  /* @__PURE__ */ D("label", {
3003
3012
  className: "label",
3004
- htmlFor: k,
3013
+ htmlFor: N,
3005
3014
  children: [e, p && /* @__PURE__ */ E(Z, {})]
3006
3015
  }),
3007
- z ? /* @__PURE__ */ D("div", {
3008
- className: `file-preview${N ? " error" : ""}${h ? ` ${h}` : ""}`,
3009
- style: _,
3016
+ te ? /* @__PURE__ */ D("div", {
3017
+ className: `file-preview${R ? " error" : ""}${_ ? ` ${_}` : ""}`,
3018
+ style: y,
3019
+ "aria-busy": g || void 0,
3010
3020
  children: [
3011
3021
  /* @__PURE__ */ D("button", {
3012
3022
  type: "button",
3013
3023
  className: "file-preview-open",
3014
- "aria-label": te,
3015
- onClick: G,
3016
- children: [B && H ? /* @__PURE__ */ E("img", {
3017
- src: H,
3018
- alt: re,
3024
+ "aria-label": W,
3025
+ onClick: ue,
3026
+ disabled: g,
3027
+ children: [H && re ? /* @__PURE__ */ E("img", {
3028
+ src: re,
3029
+ alt: oe,
3019
3030
  className: "file-preview-img"
3020
3031
  }) : /* @__PURE__ */ D("span", {
3021
3032
  className: "file-preview-file",
@@ -3024,7 +3035,7 @@ function rn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
3024
3035
  size: 28
3025
3036
  }), /* @__PURE__ */ E("span", {
3026
3037
  className: "file-preview-file-name",
3027
- children: V
3038
+ children: ne
3028
3039
  })]
3029
3040
  }), /* @__PURE__ */ E("span", {
3030
3041
  className: "file-preview-overlay",
@@ -3032,11 +3043,11 @@ function rn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
3032
3043
  className: "file-preview-cta",
3033
3044
  children: [
3034
3045
  /* @__PURE__ */ E(Y, {
3035
- name: B ? "image" : "file-text",
3046
+ name: H ? "image" : "file-text",
3036
3047
  size: 16
3037
3048
  }),
3038
3049
  " ",
3039
- B ? "Change image" : "Change file"
3050
+ H ? "Change image" : "Change file"
3040
3051
  ]
3041
3052
  })
3042
3053
  })]
@@ -3044,29 +3055,32 @@ function rn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
3044
3055
  /* @__PURE__ */ E("button", {
3045
3056
  type: "button",
3046
3057
  className: "file-preview-remove",
3047
- "aria-label": ne,
3048
- title: ne,
3058
+ "aria-label": ae,
3059
+ title: ae,
3049
3060
  onClick: () => i(null),
3061
+ disabled: g,
3050
3062
  children: /* @__PURE__ */ E(Y, {
3051
3063
  name: "x",
3052
3064
  size: 16
3053
3065
  })
3054
3066
  }),
3055
- K
3067
+ fe,
3068
+ de
3056
3069
  ]
3057
3070
  }) : /* @__PURE__ */ D("div", {
3058
- className: `file-input file-input-tall${x ? " dragging" : ""}${N ? " error" : ""}${a && M.length > 0 ? " has-files" : ""}${h ? ` ${h}` : ""}`,
3059
- style: _,
3071
+ className: `file-input file-input-tall${C ? " dragging" : ""}${R ? " error" : ""}${a && L.length > 0 ? " has-files" : ""}${_ ? ` ${_}` : ""}`,
3072
+ style: y,
3073
+ "aria-busy": g || void 0,
3060
3074
  onDragOver: (e) => {
3061
- e.preventDefault(), x || S(!0);
3075
+ e.preventDefault(), !g && !C && w(!0);
3062
3076
  },
3063
3077
  onDragLeave: (e) => {
3064
- e.preventDefault(), S(!1);
3078
+ e.preventDefault(), w(!1);
3065
3079
  },
3066
- onDrop: oe,
3080
+ onDrop: ce,
3067
3081
  children: [
3068
3082
  /* @__PURE__ */ D("label", {
3069
- htmlFor: k,
3083
+ htmlFor: N,
3070
3084
  className: "file-input-zone-label",
3071
3085
  children: [
3072
3086
  /* @__PURE__ */ E("span", {
@@ -3094,23 +3108,28 @@ function rn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
3094
3108
  })
3095
3109
  ]
3096
3110
  }),
3097
- K,
3098
- a && M.length > 0 && /* @__PURE__ */ E("div", {
3111
+ fe,
3112
+ de,
3113
+ a && L.length > 0 && /* @__PURE__ */ E("div", {
3099
3114
  className: "attach-list",
3100
- children: M.map((e, t) => /* @__PURE__ */ E(en, {
3115
+ children: L.map((e, t) => /* @__PURE__ */ E(en, {
3101
3116
  item: e,
3102
- isImage: e instanceof File ? P(e) : R || P(e),
3117
+ isImage: e instanceof File ? P(e) : V || P(e),
3103
3118
  noun: "file",
3104
- onRemove: () => se(t)
3119
+ onRemove: () => le(t)
3105
3120
  }, Xt(e)))
3106
3121
  })
3107
3122
  ]
3108
3123
  }),
3109
- N && /* @__PURE__ */ E("div", {
3124
+ R ? /* @__PURE__ */ E("div", {
3110
3125
  className: "field-error",
3111
- id: `${k}-error`,
3112
- children: N
3113
- })
3126
+ id: z,
3127
+ children: R
3128
+ }) : h ? /* @__PURE__ */ E("div", {
3129
+ className: "field-hint",
3130
+ id: ee,
3131
+ children: h
3132
+ }) : null
3114
3133
  ]
3115
3134
  });
3116
3135
  }
@@ -3384,12 +3403,12 @@ var yn = {
3384
3403
  };
3385
3404
  function bn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a = !1, disabled: c = !1, accept: l = "image/png,image/jpeg,image/webp", maxSizeMb: u = A, overlayIcon: p = "image", overlayLabel: m = "Update photo", ariaLabel: h = "Upload photo", label: g, hint: _, error: v, layout: y = "stacked", title: b, subtitle: x, required: S = !1, variant: C = "initials", size: w = "md", shape: T = "circle", className: O = "", ...k }) {
3386
3405
  U("AppLogoPicker", k), W("AppLogoPicker", "size", typeof w == "string" ? w : null, Object.keys(yn));
3387
- let j = d(null), M = s(), [N, P] = f(null), [F, L] = f(""), [R, z] = f(!1), [B, V] = f(!1);
3406
+ let j = d(null), M = s(), [N, P] = f(null), [F, L] = f(""), [R, z] = f(!1), [ee, B] = f(!1);
3388
3407
  o(() => () => N && URL.revokeObjectURL(N), [N]), o(() => {
3389
3408
  P(null), z(!1);
3390
3409
  }, [e]);
3391
- let H = a || c, ee = N || (e && !R ? e : null), te = v || F, ne = _ && !te ? `${M}-hint` : void 0, re = te ? `${M}-error` : void 0, ie = !H && (!!N || !!ee && !!i), ae = () => {
3392
- H || j.current?.click();
3410
+ let V = a || c, te = N || (e && !R ? e : null), H = v || F, ne = _ && !H ? `${M}-hint` : void 0, re = H ? `${M}-error` : void 0, ie = !V && (!!N || !!te && !!i), ae = () => {
3411
+ V || j.current?.click();
3393
3412
  }, oe = (e) => {
3394
3413
  let t = I(e, {
3395
3414
  accept: l,
@@ -3404,7 +3423,7 @@ function bn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
3404
3423
  let t = e.target.files?.[0];
3405
3424
  e.target.value = "", t && oe(t);
3406
3425
  }, G = (e) => {
3407
- if (e.preventDefault(), V(!1), H) return;
3426
+ if (e.preventDefault(), B(!1), V) return;
3408
3427
  let t = e.dataTransfer.files?.[0];
3409
3428
  t && oe(t);
3410
3429
  }, K = () => {
@@ -3413,7 +3432,7 @@ function bn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
3413
3432
  "set-uploader",
3414
3433
  C === "avatar" ? "set-uploader--avatar" : "",
3415
3434
  T === "rounded" ? "set-uploader--rounded" : T === "square" ? "set-uploader--square" : "",
3416
- B && "is-dragging"
3435
+ ee && "is-dragging"
3417
3436
  ].filter(Boolean).join(" "), fe = y === "inline", pe = y === "profile", me = /* @__PURE__ */ D("div", {
3418
3437
  className: "set-uploader-shell",
3419
3438
  style: { "--wui-logo-size": `${ce}px` },
@@ -3422,24 +3441,24 @@ function bn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
3422
3441
  type: "button",
3423
3442
  className: de,
3424
3443
  onClick: ae,
3425
- disabled: H,
3444
+ disabled: V,
3426
3445
  "aria-busy": a || void 0,
3427
3446
  "aria-label": h,
3428
3447
  "aria-describedby": re || ne,
3429
3448
  onDragOver: (e) => {
3430
- e.preventDefault(), !H && !B && V(!0);
3449
+ e.preventDefault(), !V && !ee && B(!0);
3431
3450
  },
3432
3451
  onDragLeave: (e) => {
3433
- e.preventDefault(), V(!1);
3452
+ e.preventDefault(), B(!1);
3434
3453
  },
3435
3454
  onDrop: G,
3436
3455
  ...k,
3437
3456
  children: /* @__PURE__ */ D("span", {
3438
3457
  className: "set-uploader-ring",
3439
3458
  "data-overlay-label": m,
3440
- children: [ee ? /* @__PURE__ */ E("img", {
3459
+ children: [te ? /* @__PURE__ */ E("img", {
3441
3460
  className: "set-uploader-img",
3442
- src: ee,
3461
+ src: te,
3443
3462
  alt: "",
3444
3463
  onError: () => z(!0)
3445
3464
  }) : /* @__PURE__ */ E("span", {
@@ -3485,17 +3504,17 @@ function bn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
3485
3504
  hidden: !0,
3486
3505
  accept: l,
3487
3506
  onChange: se,
3488
- disabled: H
3507
+ disabled: V
3489
3508
  })
3490
3509
  ]
3491
- }), he = _ && !te ? /* @__PURE__ */ E("div", {
3510
+ }), he = _ && !H ? /* @__PURE__ */ E("div", {
3492
3511
  className: "set-uploader-hint",
3493
3512
  id: ne,
3494
3513
  children: _
3495
- }) : null, ge = te ? /* @__PURE__ */ E("div", {
3514
+ }) : null, ge = H ? /* @__PURE__ */ E("div", {
3496
3515
  className: "field-error",
3497
3516
  id: re,
3498
- children: te
3517
+ children: H
3499
3518
  }) : null, q = g && /* @__PURE__ */ D("label", {
3500
3519
  className: "label",
3501
3520
  htmlFor: M,
@@ -3661,19 +3680,19 @@ var Tn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
3661
3680
  let P = (e) => {
3662
3681
  let t = (j(M) ?? A(0)) + e * p, n = A(k(t));
3663
3682
  N(String(n)), l?.(n);
3664
- }, F = j(M), I = S || F !== null && typeof u == "number" && F <= u, L = S || F !== null && typeof d == "number" && F >= d, R = n && O ? `${O}-error` : void 0, z = r && O ? `${O}-hint` : void 0, B = R || z, V = [
3683
+ }, F = j(M), I = S || F !== null && typeof u == "number" && F <= u, L = S || F !== null && typeof d == "number" && F >= d, R = n && O ? `${O}-error` : void 0, z = r && O ? `${O}-hint` : void 0, ee = R || z, B = [
3665
3684
  "input",
3666
3685
  g === "sm" ? "input-sm" : "",
3667
3686
  g === "lg" ? "input-lg" : "",
3668
3687
  n ? "error" : "",
3669
3688
  "num-input",
3670
3689
  b
3671
- ].filter(Boolean).join(" "), H = (e) => {
3690
+ ].filter(Boolean).join(" "), V = (e) => {
3672
3691
  let t = e.target.value;
3673
3692
  N(t);
3674
3693
  let n = j(t);
3675
3694
  n !== null && l?.(n);
3676
- }, ee = (e) => {
3695
+ }, te = (e) => {
3677
3696
  let t = j(e.target.value);
3678
3697
  if (t === null) N(""), l?.("");
3679
3698
  else {
@@ -3681,7 +3700,7 @@ var Tn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
3681
3700
  N(String(e)), l?.(e);
3682
3701
  }
3683
3702
  C.onBlur?.(e);
3684
- }, te = (e) => {
3703
+ }, H = (e) => {
3685
3704
  e.key === "ArrowUp" ? (e.preventDefault(), P(1)) : e.key === "ArrowDown" && (e.preventDefault(), P(-1)), C.onKeyDown?.(e);
3686
3705
  }, ne = /* @__PURE__ */ E(y.Control, {
3687
3706
  ...C,
@@ -3689,16 +3708,16 @@ var Tn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
3689
3708
  name: v,
3690
3709
  type: "text",
3691
3710
  inputMode: m > 0 ? "decimal" : "numeric",
3692
- className: V,
3711
+ className: B,
3693
3712
  disabled: S,
3694
3713
  required: t,
3695
3714
  "aria-invalid": n ? "true" : "false",
3696
- "aria-describedby": B,
3715
+ "aria-describedby": ee,
3697
3716
  value: M,
3698
3717
  ref: w,
3699
- onChange: H,
3700
- onBlur: ee,
3701
- onKeyDown: te
3718
+ onChange: V,
3719
+ onBlur: te,
3720
+ onKeyDown: H
3702
3721
  }), re = /* @__PURE__ */ D("div", {
3703
3722
  className: [
3704
3723
  "num-wrap",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/ui-react",
3
- "version": "0.11.3",
3
+ "version": "0.11.4",
4
4
  "description": "Webority shared React component library — App* primitives on react-bootstrap + the @webority/theme design system.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -28,8 +28,8 @@
28
28
  },
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "@webority/theme": "0.11.3",
32
- "@webority/ui-elements": "0.11.3"
31
+ "@webority/theme": "0.11.4",
32
+ "@webority/ui-elements": "0.11.4"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "bootstrap": "5.3.3",
@@ -43,7 +43,7 @@
43
43
  "@testing-library/user-event": "^14.6.1",
44
44
  "@types/react": "^19.2.17",
45
45
  "@vitejs/plugin-react": "^6.0.1",
46
- "@vitest/coverage-v8": "^4.1.11",
46
+ "@vitest/coverage-v8": "4.1.11",
47
47
  "bootstrap": "5.3.3",
48
48
  "jsdom": "^26.0.0",
49
49
  "react": "^19.2.6",
@@ -51,7 +51,7 @@
51
51
  "react-dom": "^19.2.6",
52
52
  "typescript": "^7.0.2",
53
53
  "vite": "^8.0.12",
54
- "vitest": "^4.1.11"
54
+ "vitest": "4.1.11"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "vite build && tsc -p tsconfig.json",