@blockscout/ui-toolkit 0.0.1-alpha.1 → 0.0.1-alpha.3
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 +5 -0
- package/dist/chakra/accordion.d.ts +1 -1
- package/dist/chakra/drawer.d.ts +1 -1
- package/dist/chakra/popover.d.ts +1 -2
- package/dist/chakra/select.d.ts +4 -1
- package/dist/components/AdaptiveTabs/index.d.ts +3 -0
- package/dist/components/Hint/Hint.d.ts +11 -0
- package/dist/components/RoutedTabs/index.d.ts +3 -0
- package/dist/components/buttons/BackToButton.d.ts +7 -0
- package/dist/components/buttons/ClearButton.d.ts +6 -0
- package/dist/components/{Filter → filters}/FilterInput.d.ts +2 -3
- package/dist/components/forms/components/FormFieldError.d.ts +7 -0
- package/dist/components/forms/components/index.d.ts +1 -0
- package/dist/components/forms/fields/FormFieldAddress.d.ts +5 -0
- package/dist/components/forms/fields/FormFieldCheckbox.d.ts +9 -0
- package/dist/components/forms/fields/FormFieldColor.d.ts +9 -0
- package/dist/components/forms/fields/FormFieldEmail.d.ts +5 -0
- package/dist/components/forms/fields/FormFieldSelect.d.ts +7 -0
- package/dist/components/forms/fields/FormFieldSelectAsync.d.ts +7 -0
- package/dist/components/forms/fields/FormFieldText.d.ts +8 -0
- package/dist/components/forms/fields/FormFieldUrl.d.ts +4 -0
- package/dist/components/forms/fields/image/FormFieldImagePreview.d.ts +13 -0
- package/dist/components/forms/fields/image/useImageField.d.ts +25 -0
- package/dist/components/forms/fields/index.d.ts +10 -0
- package/dist/components/forms/fields/types.d.ts +19 -0
- package/dist/components/forms/inputs/file/DragAndDropArea.d.ts +11 -0
- package/dist/components/forms/inputs/file/FileInput.d.ts +13 -0
- package/dist/components/forms/inputs/file/FileSnippet.d.ts +11 -0
- package/dist/components/forms/inputs/file/utils.d.ts +2 -0
- package/dist/components/forms/inputs/index.d.ts +3 -0
- package/dist/components/forms/utils/getFormFieldErrorText.d.ts +2 -0
- package/dist/components/forms/utils/index.d.ts +1 -0
- package/dist/components/forms/validators/address.d.ts +3 -0
- package/dist/components/forms/validators/color.d.ts +2 -0
- package/dist/components/forms/validators/email.d.ts +2 -0
- package/dist/components/forms/validators/index.d.ts +7 -0
- package/dist/components/forms/validators/signature.d.ts +1 -0
- package/dist/components/forms/validators/text.d.ts +1 -0
- package/dist/components/forms/validators/transaction.d.ts +2 -0
- package/dist/components/forms/validators/url.d.ts +3 -0
- package/dist/components/truncation/TruncatedTextTooltip.d.ts +8 -0
- package/dist/hooks/useClipboard.d.ts +1 -1
- package/dist/hooks/useFirstMountState.d.ts +1 -0
- package/dist/hooks/useIsSticky.d.ts +2 -0
- package/dist/hooks/useUpdateEffect.d.ts +2 -0
- package/dist/hooks/useViewportSize.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +10479 -0
- package/dist/package/src/index.d.ts +29 -11
- package/dist/theme/recipes/alert.recipe.d.ts +6 -46
- package/dist/theme/recipes/badge.recipe.d.ts +11 -44
- package/dist/theme/recipes/button.recipe.d.ts +17 -20
- package/dist/theme/recipes/close-button.recipe.d.ts +0 -3
- package/dist/theme/recipes/dialog.recipe.d.ts +1 -1
- package/dist/theme/recipes/drawer.recipe.d.ts +1 -1
- package/dist/theme/recipes/index.d.ts +47 -147
- package/dist/theme/recipes/link.recipe.d.ts +1 -9
- package/dist/theme/recipes/list.recipe.d.ts +1 -1
- package/dist/theme/recipes/menu.recipe.d.ts +1 -1
- package/dist/theme/recipes/select.recipe.d.ts +1 -1
- package/dist/theme/recipes/skeleton.recipe.d.ts +5 -6
- package/dist/theme/recipes/table.recipe.d.ts +1 -1
- package/dist/theme/recipes/tag.recipe.d.ts +0 -12
- package/dist/theme/recipes/toast.recipe.d.ts +1 -1
- package/dist/theme/theme.d.ts +1 -0
- package/dist/utils/consts.d.ts +15 -0
- package/dist/utils/guards.d.ts +2 -0
- package/dist/utils/htmlEntities.d.ts +26 -0
- package/dist/utils/isBrowser.d.ts +1 -0
- package/dist/utils/regexp.d.ts +6 -0
- package/dist/utils/url.d.ts +6 -0
- package/package.json +17 -28
- package/dist/_virtual/Button.js +0 -4
- package/dist/_virtual/Element.js +0 -4
- package/dist/_virtual/Link.js +0 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -4
- package/dist/_virtual/animate-scroll.js +0 -4
- package/dist/_virtual/cancel-events.js +0 -4
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -4
- package/dist/_virtual/index4.js +0 -4
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime2.js +0 -4
- package/dist/_virtual/passive-event-listeners.js +0 -4
- package/dist/_virtual/react-is.development.js +0 -4
- package/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/_virtual/react-jsx-runtime.development.js +0 -4
- package/dist/_virtual/react-jsx-runtime.production.min.js +0 -4
- package/dist/_virtual/scroll-element.js +0 -4
- package/dist/_virtual/scroll-events.js +0 -4
- package/dist/_virtual/scroll-hash.js +0 -4
- package/dist/_virtual/scroll-link.js +0 -4
- package/dist/_virtual/scroll-spy.js +0 -4
- package/dist/_virtual/scroller.js +0 -4
- package/dist/_virtual/smooth.js +0 -4
- package/dist/_virtual/utils.js +0 -4
- package/dist/chakra/accordion.js +0 -61
- package/dist/chakra/alert.js +0 -45
- package/dist/chakra/avatar.js +0 -36
- package/dist/chakra/badge.js +0 -18
- package/dist/chakra/button.js +0 -65
- package/dist/chakra/checkbox.js +0 -33
- package/dist/chakra/close-button.js +0 -13
- package/dist/chakra/collapsible.js +0 -58
- package/dist/chakra/color-mode.js +0 -35
- package/dist/chakra/dialog.js +0 -47
- package/dist/chakra/drawer.js +0 -39
- package/dist/chakra/field.js +0 -65
- package/dist/chakra/heading.js +0 -12
- package/dist/chakra/icon-button.js +0 -44
- package/dist/chakra/image.js +0 -30
- package/dist/chakra/input-group.js +0 -47
- package/dist/chakra/input.js +0 -5
- package/dist/chakra/link.js +0 -68
- package/dist/chakra/menu.js +0 -63
- package/dist/chakra/pin-input.js +0 -15
- package/dist/chakra/popover.js +0 -69
- package/dist/chakra/progress-circle.js +0 -17
- package/dist/chakra/provider.js +0 -10
- package/dist/chakra/radio.js +0 -17
- package/dist/chakra/rating.js +0 -21
- package/dist/chakra/select.js +0 -185
- package/dist/chakra/skeleton.js +0 -40
- package/dist/chakra/slider.js +0 -39
- package/dist/chakra/switch.js +0 -19
- package/dist/chakra/table.js +0 -66
- package/dist/chakra/tabs.js +0 -29
- package/dist/chakra/tag.js +0 -51
- package/dist/chakra/textarea.js +0 -5
- package/dist/chakra/toaster.js +0 -31
- package/dist/chakra/tooltip.js +0 -85
- package/dist/chakra.d.ts +0 -1
- package/dist/chakra.js +0 -155
- package/dist/components/ButtonBackTo.d.ts +0 -8
- package/dist/components/ButtonBackTo.js +0 -22
- package/dist/components/Filter/FilterInput.js +0 -48
- package/dist/components/TruncatedTextTooltip.d.ts +0 -9
- package/dist/components/TruncatedTextTooltip.js +0 -49
- package/dist/components/index.d.ts +0 -1
- package/dist/components.d.ts +0 -2
- package/dist/components.js +0 -1
- package/dist/configs/app/api.js +0 -23
- package/dist/configs/app/app.js +0 -19
- package/dist/configs/app/chain.js +0 -30
- package/dist/configs/app/features/account.js +0 -13
- package/dist/configs/app/features/addressMetadata.js +0 -15
- package/dist/configs/app/features/addressProfileAPI.js +0 -25
- package/dist/configs/app/features/addressVerification.js +0 -17
- package/dist/configs/app/features/adsBanner.js +0 -50
- package/dist/configs/app/features/adsText.js +0 -16
- package/dist/configs/app/features/advancedFilter.js +0 -11
- package/dist/configs/app/features/beaconChain.js +0 -15
- package/dist/configs/app/features/blockchainInteraction.js +0 -15
- package/dist/configs/app/features/bridgedTokens.js +0 -16
- package/dist/configs/app/features/celo.js +0 -13
- package/dist/configs/app/features/csvExport.js +0 -14
- package/dist/configs/app/features/dataAvailability.js +0 -11
- package/dist/configs/app/features/deFiDropdown.js +0 -12
- package/dist/configs/app/features/easterEggBadge.js +0 -12
- package/dist/configs/app/features/externalTxs.js +0 -14
- package/dist/configs/app/features/faultProofSystem.js +0 -12
- package/dist/configs/app/features/gasTracker.js +0 -17
- package/dist/configs/app/features/getGasButton.js +0 -17
- package/dist/configs/app/features/googleAnalytics.js +0 -12
- package/dist/configs/app/features/graphqlApiDocs.js +0 -12
- package/dist/configs/app/features/growthBook.js +0 -12
- package/dist/configs/app/features/index.js +0 -92
- package/dist/configs/app/features/marketplace.js +0 -46
- package/dist/configs/app/features/metasuites.js +0 -11
- package/dist/configs/app/features/mixpanel.js +0 -12
- package/dist/configs/app/features/mudFramework.js +0 -12
- package/dist/configs/app/features/multichainButton.js +0 -18
- package/dist/configs/app/features/nameService.js +0 -15
- package/dist/configs/app/features/pools.js +0 -15
- package/dist/configs/app/features/publicTagsSubmission.js +0 -17
- package/dist/configs/app/features/restApiDocs.js +0 -12
- package/dist/configs/app/features/rewards.js +0 -17
- package/dist/configs/app/features/rollbar.js +0 -20
- package/dist/configs/app/features/rollup.js +0 -37
- package/dist/configs/app/features/safe.js +0 -23
- package/dist/configs/app/features/saveOnGas.js +0 -13
- package/dist/configs/app/features/sol2uml.js +0 -16
- package/dist/configs/app/features/stats.js +0 -16
- package/dist/configs/app/features/suave.js +0 -11
- package/dist/configs/app/features/txInterpretation.js +0 -16
- package/dist/configs/app/features/userOps.js +0 -11
- package/dist/configs/app/features/validators.js +0 -16
- package/dist/configs/app/features/verifiedTokens.js +0 -15
- package/dist/configs/app/features/web3Wallet.js +0 -24
- package/dist/configs/app/features/xStarScore.js +0 -12
- package/dist/configs/app/index.js +0 -19
- package/dist/configs/app/meta.js +0 -16
- package/dist/configs/app/services.js +0 -9
- package/dist/configs/app/ui/views/address.js +0 -36
- package/dist/configs/app/ui/views/block.js +0 -11
- package/dist/configs/app/ui/views/index.js +0 -12
- package/dist/configs/app/ui/views/nft.js +0 -10
- package/dist/configs/app/ui/views/token.js +0 -7
- package/dist/configs/app/ui/views/tx.js +0 -15
- package/dist/configs/app/ui.js +0 -128
- package/dist/configs/app/utils.js +0 -45
- package/dist/hooks/useClipboard.js +0 -27
- package/dist/hooks/useDisclosure.js +0 -17
- package/dist/hooks/useViewportSize.js +0 -17
- package/dist/hooks.d.ts +0 -1
- package/dist/hooks.js +0 -8
- package/dist/icons/arrows/east-mini.svg.js +0 -4
- package/dist/icons/arrows/east.svg.js +0 -4
- package/dist/icons/check.svg.js +0 -4
- package/dist/icons/close.svg.js +0 -4
- package/dist/icons/info_filled.svg.js +0 -4
- package/dist/icons/link_external.svg.js +0 -4
- package/dist/icons/star_filled.svg.js +0 -4
- package/dist/icons/star_outline.svg.js +0 -4
- package/dist/lib/consts.js +0 -10
- package/dist/lib/hooks/useFirstMountState.js +0 -8
- package/dist/lib/hooks/useIsMobile.js +0 -7
- package/dist/lib/hooks/useUpdateEffect.js +0 -12
- package/dist/lib/html-entities.js +0 -5
- package/dist/lib/isBrowser.js +0 -6
- package/dist/lib/regexp.js +0 -4
- package/dist/lib/settings/colorTheme.js +0 -33
- package/dist/lib/stripTrailingSlash.js +0 -4
- package/dist/node_modules/@uidotdev/usehooks/index.js +0 -51
- package/dist/node_modules/bignumber.js/bignumber.js +0 -627
- package/dist/node_modules/es-toolkit/dist/function/debounce.js +0 -30
- package/dist/node_modules/es-toolkit/dist/function/throttle.js +0 -11
- package/dist/node_modules/lodash.throttle/index.js +0 -95
- package/dist/node_modules/object-assign/index.js +0 -54
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
- package/dist/node_modules/prop-types/index.js +0 -17
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
- package/dist/node_modules/prop-types/lib/has.js +0 -7
- package/dist/node_modules/react-icons/lib/iconBase.js +0 -108
- package/dist/node_modules/react-icons/lib/iconContext.js +0 -12
- package/dist/node_modules/react-icons/lu/index.js +0 -12
- package/dist/node_modules/react-is/cjs/react-is.development.js +0 -95
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -78
- package/dist/node_modules/react-is/index.js +0 -10
- package/dist/node_modules/react-scroll/modules/components/Button.js +0 -58
- package/dist/node_modules/react-scroll/modules/components/Element.js +0 -72
- package/dist/node_modules/react-scroll/modules/components/Link.js +0 -49
- package/dist/node_modules/react-scroll/modules/index.js +0 -26
- package/dist/node_modules/react-scroll/modules/mixins/Helpers.js +0 -192
- package/dist/node_modules/react-scroll/modules/mixins/animate-scroll.js +0 -132
- package/dist/node_modules/react-scroll/modules/mixins/cancel-events.js +0 -20
- package/dist/node_modules/react-scroll/modules/mixins/passive-event-listeners.js +0 -27
- package/dist/node_modules/react-scroll/modules/mixins/scroll-element.js +0 -98
- package/dist/node_modules/react-scroll/modules/mixins/scroll-events.js +0 -23
- package/dist/node_modules/react-scroll/modules/mixins/scroll-hash.js +0 -61
- package/dist/node_modules/react-scroll/modules/mixins/scroll-link.js +0 -171
- package/dist/node_modules/react-scroll/modules/mixins/scroll-spy.js +0 -79
- package/dist/node_modules/react-scroll/modules/mixins/scroller.js +0 -62
- package/dist/node_modules/react-scroll/modules/mixins/smooth.js +0 -72
- package/dist/node_modules/react-scroll/modules/mixins/utils.js +0 -55
- package/dist/package/node_modules/react/cjs/react-jsx-runtime.development.js +0 -604
- package/dist/package/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -28
- package/dist/package/node_modules/react/jsx-runtime.js +0 -10
- package/dist/theme/foundations/animations.js +0 -15
- package/dist/theme/foundations/animations.ts +0 -12
- package/dist/theme/foundations/borders.js +0 -12
- package/dist/theme/foundations/borders.ts +0 -13
- package/dist/theme/foundations/breakpoints.js +0 -11
- package/dist/theme/foundations/breakpoints.ts +0 -10
- package/dist/theme/foundations/colors.js +0 -163
- package/dist/theme/foundations/colors.ts +0 -162
- package/dist/theme/foundations/durations.js +0 -12
- package/dist/theme/foundations/durations.ts +0 -15
- package/dist/theme/foundations/semanticTokens.js +0 -474
- package/dist/theme/foundations/semanticTokens.ts +0 -475
- package/dist/theme/foundations/shadows.js +0 -16
- package/dist/theme/foundations/shadows.ts +0 -19
- package/dist/theme/foundations/typography.js +0 -92
- package/dist/theme/foundations/typography.ts +0 -93
- package/dist/theme/foundations/zIndex.js +0 -24
- package/dist/theme/foundations/zIndex.ts +0 -20
- package/dist/theme/globalCss.js +0 -51
- package/dist/theme/globalCss.ts +0 -57
- package/dist/theme/globals/address-entity.js +0 -34
- package/dist/theme/globals/address-entity.ts +0 -33
- package/dist/theme/globals/recaptcha.js +0 -21
- package/dist/theme/globals/recaptcha.ts +0 -20
- package/dist/theme/globals/scrollbar.js +0 -33
- package/dist/theme/globals/scrollbar.ts +0 -32
- package/dist/theme/index.d.ts +0 -1
- package/dist/theme/index.ts +0 -1
- package/dist/theme/recipes/accordion.recipe.js +0 -143
- package/dist/theme/recipes/accordion.recipe.ts +0 -145
- package/dist/theme/recipes/alert.recipe.js +0 -134
- package/dist/theme/recipes/alert.recipe.ts +0 -138
- package/dist/theme/recipes/badge.recipe.js +0 -119
- package/dist/theme/recipes/badge.recipe.ts +0 -117
- package/dist/theme/recipes/button.recipe.js +0 -272
- package/dist/theme/recipes/button.recipe.ts +0 -270
- package/dist/theme/recipes/checkbox.recipe.js +0 -53
- package/dist/theme/recipes/checkbox.recipe.ts +0 -56
- package/dist/theme/recipes/checkmark.recipe.js +0 -73
- package/dist/theme/recipes/checkmark.recipe.ts +0 -73
- package/dist/theme/recipes/close-button.recipe.js +0 -39
- package/dist/theme/recipes/close-button.recipe.ts +0 -37
- package/dist/theme/recipes/dialog.recipe.js +0 -210
- package/dist/theme/recipes/dialog.recipe.ts +0 -213
- package/dist/theme/recipes/drawer.recipe.js +0 -168
- package/dist/theme/recipes/drawer.recipe.ts +0 -173
- package/dist/theme/recipes/field.recipe.js +0 -174
- package/dist/theme/recipes/field.recipe.ts +0 -175
- package/dist/theme/recipes/index.js +0 -69
- package/dist/theme/recipes/index.ts +0 -68
- package/dist/theme/recipes/input.recipe.js +0 -116
- package/dist/theme/recipes/input.recipe.ts +0 -119
- package/dist/theme/recipes/link.recipe.js +0 -88
- package/dist/theme/recipes/link.recipe.ts +0 -86
- package/dist/theme/recipes/list.recipe.js +0 -65
- package/dist/theme/recipes/list.recipe.ts +0 -67
- package/dist/theme/recipes/menu.recipe.js +0 -104
- package/dist/theme/recipes/menu.recipe.ts +0 -105
- package/dist/theme/recipes/pin-input.recipe.js +0 -34
- package/dist/theme/recipes/pin-input.recipe.ts +0 -35
- package/dist/theme/recipes/popover.recipe.js +0 -72
- package/dist/theme/recipes/popover.recipe.ts +0 -70
- package/dist/theme/recipes/progress-circle.recipe.js +0 -74
- package/dist/theme/recipes/progress-circle.recipe.ts +0 -74
- package/dist/theme/recipes/radio-group.recipe.js +0 -69
- package/dist/theme/recipes/radio-group.recipe.ts +0 -73
- package/dist/theme/recipes/radiomark.recipe.js +0 -87
- package/dist/theme/recipes/radiomark.recipe.ts +0 -91
- package/dist/theme/recipes/rating-group.recipe.js +0 -84
- package/dist/theme/recipes/rating-group.recipe.ts +0 -93
- package/dist/theme/recipes/select.recipe.js +0 -275
- package/dist/theme/recipes/select.recipe.ts +0 -277
- package/dist/theme/recipes/skeleton.recipe.js +0 -54
- package/dist/theme/recipes/skeleton.recipe.ts +0 -55
- package/dist/theme/recipes/spinner.recipe.js +0 -33
- package/dist/theme/recipes/spinner.recipe.ts +0 -31
- package/dist/theme/recipes/stat.recipe.js +0 -101
- package/dist/theme/recipes/stat.recipe.ts +0 -101
- package/dist/theme/recipes/switch.recipe.js +0 -125
- package/dist/theme/recipes/switch.recipe.ts +0 -130
- package/dist/theme/recipes/table.recipe.js +0 -83
- package/dist/theme/recipes/table.recipe.ts +0 -84
- package/dist/theme/recipes/tabs.recipe.js +0 -216
- package/dist/theme/recipes/tabs.recipe.ts +0 -219
- package/dist/theme/recipes/tag.recipe.js +0 -157
- package/dist/theme/recipes/tag.recipe.ts +0 -158
- package/dist/theme/recipes/textarea.recipe.js +0 -86
- package/dist/theme/recipes/textarea.recipe.ts +0 -86
- package/dist/theme/recipes/toast.recipe.js +0 -98
- package/dist/theme/recipes/toast.recipe.ts +0 -97
- package/dist/theme/recipes/tooltip.recipe.js +0 -87
- package/dist/theme/recipes/tooltip.recipe.ts +0 -85
- package/dist/theme/theme.js +0 -40
- package/dist/theme/theme.ts +0 -41
- package/dist/theme/utils/entries.js +0 -11
- package/dist/theme/utils/entries.ts +0 -12
- package/dist/theme.d.ts +0 -2
- package/dist/theme.js +0 -4
- package/dist/types/client/adProviders.js +0 -12
- package/dist/types/client/contract.js +0 -13
- package/dist/types/client/gasTracker.js +0 -7
- package/dist/types/client/navigation.js +0 -4
- package/dist/types/client/rollup.js +0 -11
- package/dist/types/client/txInterpretation.js +0 -8
- package/dist/types/client/validators.js +0 -8
- package/dist/types/client/wallets.js +0 -8
- package/dist/types/homepage.js +0 -15
- package/dist/types/views/address.js +0 -14
- package/dist/types/views/block.js +0 -12
- package/dist/types/views/tx.js +0 -16
- package/dist/ui/shared/forms/validators/url.js +0 -12
- package/dist/utils/getComponentDisplayName.js +0 -7
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils.d.ts +0 -2
- package/dist/utils.js +0 -4
package/dist/chakra/select.js
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useSelectContext as I, Select as c, Icon as b, Portal as q, Flex as A, createListCollection as E, Box as v } from "@chakra-ui/react";
|
|
3
|
-
import { useDebounce as F } from "../node_modules/@uidotdev/usehooks/index.js";
|
|
4
|
-
import * as s from "react";
|
|
5
|
-
import G from "../icons/arrows/east-mini.svg.js";
|
|
6
|
-
import L from "../icons/check.svg.js";
|
|
7
|
-
import P from "../components/Filter/FilterInput.js";
|
|
8
|
-
import { CloseButton as W } from "./close-button.js";
|
|
9
|
-
import { Skeleton as B } from "./skeleton.js";
|
|
10
|
-
const R = s.forwardRef(function(t, n) {
|
|
11
|
-
const { children: r, noIndicator: o, triggerProps: i, loading: a, defaultValue: d, ...u } = t, h = I(), m = Array.isArray(d) ? h.value.every((x) => d.includes(x)) : h.value === d;
|
|
12
|
-
return /* @__PURE__ */ e.jsx(B, { loading: a, asChild: !0, children: /* @__PURE__ */ e.jsxs(c.Control, { ...u, children: [
|
|
13
|
-
/* @__PURE__ */ e.jsx(c.Trigger, { ref: n, className: "group peer", ...i, "data-default-value": m, children: r }),
|
|
14
|
-
!o && /* @__PURE__ */ e.jsx(c.IndicatorGroup, { children: !o && /* @__PURE__ */ e.jsx(
|
|
15
|
-
c.Indicator,
|
|
16
|
-
{
|
|
17
|
-
transform: "rotate(-90deg)",
|
|
18
|
-
_open: { transform: "rotate(90deg)" },
|
|
19
|
-
flexShrink: 0,
|
|
20
|
-
children: /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsx(G, {}) })
|
|
21
|
-
}
|
|
22
|
-
) })
|
|
23
|
-
] }) });
|
|
24
|
-
}), Q = s.forwardRef(function(t, n) {
|
|
25
|
-
return /* @__PURE__ */ e.jsx(c.ClearTrigger, { asChild: !0, ...t, ref: n, children: /* @__PURE__ */ e.jsx(
|
|
26
|
-
W,
|
|
27
|
-
{
|
|
28
|
-
pointerEvents: "auto"
|
|
29
|
-
}
|
|
30
|
-
) });
|
|
31
|
-
}), w = s.forwardRef(function(t, n) {
|
|
32
|
-
const { portalled: r = !0, portalRef: o, ...i } = t;
|
|
33
|
-
return /* @__PURE__ */ e.jsx(q, { disabled: !r, container: o, children: /* @__PURE__ */ e.jsx(c.Positioner, { children: /* @__PURE__ */ e.jsx(c.Content, { ...i, ref: n }) }) });
|
|
34
|
-
}), T = s.forwardRef(function(t, n) {
|
|
35
|
-
const { item: r, children: o, ...i } = t, a = r.icon ? r.icon : null;
|
|
36
|
-
return /* @__PURE__ */ e.jsxs(c.Item, { item: r, ...i, ref: n, children: [
|
|
37
|
-
a,
|
|
38
|
-
o,
|
|
39
|
-
/* @__PURE__ */ e.jsx(c.ItemIndicator, { asChild: !0, children: /* @__PURE__ */ e.jsx(b, { boxSize: 5, flexShrink: 0, ml: "auto", children: /* @__PURE__ */ e.jsx(L, {}) }) })
|
|
40
|
-
] }, r.value);
|
|
41
|
-
}), y = s.forwardRef(function(t, n) {
|
|
42
|
-
const { children: r, size: o, required: i, invalid: a, errorText: d, ...u } = t, h = I(), m = (() => {
|
|
43
|
-
const x = h.selectedItems, j = `${t.placeholder}${i ? "*" : ""}${a && d ? ` - ${d}` : ""}`;
|
|
44
|
-
if (x.length === 0) return j;
|
|
45
|
-
if (r) return r(x);
|
|
46
|
-
if (x.length === 1) {
|
|
47
|
-
const g = x[0];
|
|
48
|
-
if (!g) return j;
|
|
49
|
-
const S = g.icon ? g.icon : null, p = o === "lg" ? /* @__PURE__ */ e.jsx(
|
|
50
|
-
v,
|
|
51
|
-
{
|
|
52
|
-
textStyle: "xs",
|
|
53
|
-
color: a ? "field.placeholder.error" : "field.placeholder",
|
|
54
|
-
display: "-webkit-box",
|
|
55
|
-
children: j
|
|
56
|
-
}
|
|
57
|
-
) : null;
|
|
58
|
-
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
59
|
-
p,
|
|
60
|
-
/* @__PURE__ */ e.jsxs(A, { display: "inline-flex", alignItems: "center", flexWrap: "nowrap", gap: 1, children: [
|
|
61
|
-
S,
|
|
62
|
-
/* @__PURE__ */ e.jsx("span", { style: {
|
|
63
|
-
WebkitLineClamp: 1,
|
|
64
|
-
WebkitBoxOrient: "vertical",
|
|
65
|
-
display: "-webkit-box"
|
|
66
|
-
}, children: h.collection.stringifyItem(g) })
|
|
67
|
-
] })
|
|
68
|
-
] });
|
|
69
|
-
}
|
|
70
|
-
return `${x.length} selected`;
|
|
71
|
-
})();
|
|
72
|
-
return /* @__PURE__ */ e.jsx(
|
|
73
|
-
c.ValueText,
|
|
74
|
-
{
|
|
75
|
-
ref: n,
|
|
76
|
-
...u,
|
|
77
|
-
children: m
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
}), V = s.forwardRef(function(t, n) {
|
|
81
|
-
var a;
|
|
82
|
-
const { lazyMount: r = !0, unmountOnExit: o = !0, ...i } = t;
|
|
83
|
-
return /* @__PURE__ */ e.jsx(
|
|
84
|
-
c.Root,
|
|
85
|
-
{
|
|
86
|
-
ref: n,
|
|
87
|
-
lazyMount: r,
|
|
88
|
-
unmountOnExit: o,
|
|
89
|
-
...i,
|
|
90
|
-
positioning: { sameWidth: !1, ...t.positioning, offset: { mainAxis: 4, ...(a = t.positioning) == null ? void 0 : a.offset } },
|
|
91
|
-
children: t.asChild ? t.children : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
92
|
-
/* @__PURE__ */ e.jsx(c.HiddenSelect, {}),
|
|
93
|
-
t.children
|
|
94
|
-
] })
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
}), U = s.forwardRef(function(t, n) {
|
|
98
|
-
const { children: r, label: o, ...i } = t;
|
|
99
|
-
return /* @__PURE__ */ e.jsxs(c.ItemGroup, { ...i, ref: n, children: [
|
|
100
|
-
/* @__PURE__ */ e.jsx(c.ItemGroupLabel, { children: o }),
|
|
101
|
-
r
|
|
102
|
-
] });
|
|
103
|
-
}), X = c.Label, Y = c.ItemText, Z = s.forwardRef((l, t) => {
|
|
104
|
-
const { collection: n, placeholder: r, portalled: o = !0, loading: i, errorText: a, ...d } = l;
|
|
105
|
-
return /* @__PURE__ */ e.jsxs(
|
|
106
|
-
V,
|
|
107
|
-
{
|
|
108
|
-
ref: t,
|
|
109
|
-
collection: n,
|
|
110
|
-
...d,
|
|
111
|
-
children: [
|
|
112
|
-
/* @__PURE__ */ e.jsx(R, { loading: i, children: /* @__PURE__ */ e.jsx(
|
|
113
|
-
y,
|
|
114
|
-
{
|
|
115
|
-
placeholder: r,
|
|
116
|
-
size: l.size,
|
|
117
|
-
required: l.required,
|
|
118
|
-
invalid: l.invalid,
|
|
119
|
-
errorText: a
|
|
120
|
-
}
|
|
121
|
-
) }),
|
|
122
|
-
/* @__PURE__ */ e.jsx(w, { portalled: o, children: n.items.map((u) => /* @__PURE__ */ e.jsx(T, { item: u, children: u.label }, u.value)) })
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
);
|
|
126
|
-
}), ee = s.forwardRef((l, t) => {
|
|
127
|
-
const { placeholder: n, portalled: r = !0, loading: o, loadOptions: i, extraControls: a, onValueChange: d, errorText: u, ...h } = l, [m, x] = s.useState(E({ items: [] })), [j, g] = s.useState(""), [S, p] = s.useState([]), C = F(j, 300);
|
|
128
|
-
s.useEffect(() => {
|
|
129
|
-
i(C, S).then(x);
|
|
130
|
-
}, [C, i, S]);
|
|
131
|
-
const k = s.useCallback((f) => {
|
|
132
|
-
g(f);
|
|
133
|
-
}, []), z = s.useCallback(({ value: f, items: $ }) => {
|
|
134
|
-
p(f), d == null || d({ value: f, items: $ });
|
|
135
|
-
}, [d]);
|
|
136
|
-
return /* @__PURE__ */ e.jsxs(
|
|
137
|
-
V,
|
|
138
|
-
{
|
|
139
|
-
ref: t,
|
|
140
|
-
collection: m,
|
|
141
|
-
onValueChange: z,
|
|
142
|
-
...h,
|
|
143
|
-
children: [
|
|
144
|
-
/* @__PURE__ */ e.jsx(R, { loading: o, children: /* @__PURE__ */ e.jsx(
|
|
145
|
-
y,
|
|
146
|
-
{
|
|
147
|
-
placeholder: n,
|
|
148
|
-
size: l.size,
|
|
149
|
-
required: l.required,
|
|
150
|
-
invalid: l.invalid,
|
|
151
|
-
errorText: u
|
|
152
|
-
}
|
|
153
|
-
) }),
|
|
154
|
-
/* @__PURE__ */ e.jsxs(w, { portalled: r, children: [
|
|
155
|
-
/* @__PURE__ */ e.jsxs(v, { px: "4", children: [
|
|
156
|
-
/* @__PURE__ */ e.jsx(
|
|
157
|
-
P,
|
|
158
|
-
{
|
|
159
|
-
placeholder: "Search",
|
|
160
|
-
initialValue: j,
|
|
161
|
-
onChange: k,
|
|
162
|
-
inputProps: { pl: "9" }
|
|
163
|
-
}
|
|
164
|
-
),
|
|
165
|
-
a
|
|
166
|
-
] }),
|
|
167
|
-
m.items.map((f) => /* @__PURE__ */ e.jsx(T, { item: f, children: f.label }, f.value))
|
|
168
|
-
] })
|
|
169
|
-
]
|
|
170
|
-
}
|
|
171
|
-
);
|
|
172
|
-
});
|
|
173
|
-
export {
|
|
174
|
-
Z as Select,
|
|
175
|
-
ee as SelectAsync,
|
|
176
|
-
Q as SelectClearTrigger,
|
|
177
|
-
w as SelectContent,
|
|
178
|
-
R as SelectControl,
|
|
179
|
-
T as SelectItem,
|
|
180
|
-
U as SelectItemGroup,
|
|
181
|
-
Y as SelectItemText,
|
|
182
|
-
X as SelectLabel,
|
|
183
|
-
V as SelectRoot,
|
|
184
|
-
y as SelectValueText
|
|
185
|
-
};
|
package/dist/chakra/skeleton.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Circle as f, Skeleton as s, Stack as m } from "@chakra-ui/react";
|
|
3
|
-
import * as a from "react";
|
|
4
|
-
const k = a.forwardRef(function(t, n) {
|
|
5
|
-
const { size: e, ...o } = t;
|
|
6
|
-
return /* @__PURE__ */ r.jsx(f, { size: e, asChild: !0, ref: n, children: /* @__PURE__ */ r.jsx(s, { ...o }) });
|
|
7
|
-
}), S = a.forwardRef(
|
|
8
|
-
function(t, n) {
|
|
9
|
-
const { noOfLines: e = 3, gap: o, ...l } = t;
|
|
10
|
-
return /* @__PURE__ */ r.jsx(m, { gap: o, width: "full", ref: n, children: Array.from({ length: e }).map((x, c) => /* @__PURE__ */ r.jsx(
|
|
11
|
-
s,
|
|
12
|
-
{
|
|
13
|
-
height: "4",
|
|
14
|
-
...t,
|
|
15
|
-
_last: { maxW: "80%" },
|
|
16
|
-
...l
|
|
17
|
-
},
|
|
18
|
-
c
|
|
19
|
-
)) });
|
|
20
|
-
}
|
|
21
|
-
), h = a.forwardRef(
|
|
22
|
-
function(t, n) {
|
|
23
|
-
const { loading: e = !1, ...o } = t;
|
|
24
|
-
return /* @__PURE__ */ r.jsx(
|
|
25
|
-
s,
|
|
26
|
-
{
|
|
27
|
-
loading: e,
|
|
28
|
-
css: e ? {} : { animation: "none" },
|
|
29
|
-
...e ? { "data-loading": !0 } : {},
|
|
30
|
-
...o,
|
|
31
|
-
ref: n
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
export {
|
|
37
|
-
h as Skeleton,
|
|
38
|
-
k as SkeletonCircle,
|
|
39
|
-
S as SkeletonText
|
|
40
|
-
};
|
package/dist/chakra/slider.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Slider as r, HStack as h, For as f } from "@chakra-ui/react";
|
|
3
|
-
import * as j from "react";
|
|
4
|
-
const S = j.forwardRef(
|
|
5
|
-
function(t, a) {
|
|
6
|
-
const { marks: l, label: n, showValue: o, ...c } = t, d = t.defaultValue ?? t.value, i = l == null ? void 0 : l.map((s) => typeof s == "number" ? { value: s, label: void 0 } : s), x = !!(i != null && i.some((s) => s.label));
|
|
7
|
-
return /* @__PURE__ */ e.jsxs(r.Root, { ref: a, thumbAlignment: "center", ...c, children: [
|
|
8
|
-
n && !o && /* @__PURE__ */ e.jsx(r.Label, { children: n }),
|
|
9
|
-
n && o && /* @__PURE__ */ e.jsxs(h, { justify: "space-between", children: [
|
|
10
|
-
/* @__PURE__ */ e.jsx(r.Label, { children: n }),
|
|
11
|
-
/* @__PURE__ */ e.jsx(r.ValueText, {})
|
|
12
|
-
] }),
|
|
13
|
-
/* @__PURE__ */ e.jsxs(r.Control, { "data-has-mark-label": x || void 0, children: [
|
|
14
|
-
/* @__PURE__ */ e.jsx(r.Track, { children: /* @__PURE__ */ e.jsx(r.Range, {}) }),
|
|
15
|
-
/* @__PURE__ */ e.jsx(b, { value: d }),
|
|
16
|
-
/* @__PURE__ */ e.jsx(m, { marks: i })
|
|
17
|
-
] })
|
|
18
|
-
] });
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
function b(u) {
|
|
22
|
-
const { value: t } = u;
|
|
23
|
-
return /* @__PURE__ */ e.jsx(f, { each: t, children: (a, l) => /* @__PURE__ */ e.jsx(r.Thumb, { index: l, children: /* @__PURE__ */ e.jsx(r.HiddenInput, {}) }, l) });
|
|
24
|
-
}
|
|
25
|
-
const m = j.forwardRef(
|
|
26
|
-
function(t, a) {
|
|
27
|
-
const { marks: l } = t;
|
|
28
|
-
return l != null && l.length ? /* @__PURE__ */ e.jsx(r.MarkerGroup, { ref: a, children: l.map((n, o) => {
|
|
29
|
-
const c = typeof n == "number" ? n : n.value, d = typeof n == "number" ? void 0 : n.label;
|
|
30
|
-
return /* @__PURE__ */ e.jsxs(r.Marker, { value: c, children: [
|
|
31
|
-
/* @__PURE__ */ e.jsx(r.MarkerIndicator, {}),
|
|
32
|
-
d
|
|
33
|
-
] }, o);
|
|
34
|
-
}) }) : null;
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
export {
|
|
38
|
-
S as Slider
|
|
39
|
-
};
|
package/dist/chakra/switch.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { j as o } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Switch as n } from "@chakra-ui/react";
|
|
3
|
-
import * as d from "react";
|
|
4
|
-
const p = d.forwardRef(
|
|
5
|
-
function(i, s) {
|
|
6
|
-
const { inputProps: e, children: c, rootRef: f, trackLabel: t, thumbLabel: r, labelProps: l, ...a } = i;
|
|
7
|
-
return /* @__PURE__ */ o.jsxs(n.Root, { ref: f, ...a, children: [
|
|
8
|
-
/* @__PURE__ */ o.jsx(n.HiddenInput, { ref: s, ...e }),
|
|
9
|
-
/* @__PURE__ */ o.jsxs(n.Control, { children: [
|
|
10
|
-
/* @__PURE__ */ o.jsx(n.Thumb, { children: r && /* @__PURE__ */ o.jsx(n.ThumbIndicator, { fallback: r == null ? void 0 : r.off, children: r == null ? void 0 : r.on }) }),
|
|
11
|
-
t && /* @__PURE__ */ o.jsx(n.Indicator, { fallback: t.off, children: t.on })
|
|
12
|
-
] }),
|
|
13
|
-
c != null && /* @__PURE__ */ o.jsx(n.Label, { ...l, children: c })
|
|
14
|
-
] });
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
export {
|
|
18
|
-
p as Switch
|
|
19
|
-
};
|
package/dist/chakra/table.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { j as n } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Table as s, Icon as m } from "@chakra-ui/react";
|
|
3
|
-
import * as i from "react";
|
|
4
|
-
import b from "../icons/arrows/east.svg.js";
|
|
5
|
-
import { Link as f } from "./link.js";
|
|
6
|
-
import { throttle as h } from "../node_modules/es-toolkit/dist/function/throttle.js";
|
|
7
|
-
const S = s.Root, j = s.Body, g = s.Header, v = s.Row, R = (o) => {
|
|
8
|
-
const { isNumeric: e, ...t } = o;
|
|
9
|
-
return /* @__PURE__ */ n.jsx(s.Cell, { textAlign: e ? "right" : void 0, ...t });
|
|
10
|
-
}, p = (o) => {
|
|
11
|
-
const { isNumeric: e, ...t } = o;
|
|
12
|
-
return /* @__PURE__ */ n.jsx(s.ColumnHeader, { textAlign: e ? "right" : void 0, ...t });
|
|
13
|
-
}, H = (o) => {
|
|
14
|
-
const { sortField: e, sortValue: t, onSortToggle: c, children: a, disabled: u, indicatorPosition: l = "left", ...d } = o, r = i.useCallback(() => {
|
|
15
|
-
c(e);
|
|
16
|
-
}, [c, e]);
|
|
17
|
-
return /* @__PURE__ */ n.jsx(p, { ...d, children: /* @__PURE__ */ n.jsxs(f, { onClick: u ? void 0 : r, position: "relative", children: [
|
|
18
|
-
t.includes(e) && /* @__PURE__ */ n.jsx(
|
|
19
|
-
m,
|
|
20
|
-
{
|
|
21
|
-
w: 4,
|
|
22
|
-
h: "100%",
|
|
23
|
-
transform: t.toLowerCase().includes("asc") ? "rotate(-90deg)" : "rotate(90deg)",
|
|
24
|
-
position: "absolute",
|
|
25
|
-
left: l === "left" ? -5 : void 0,
|
|
26
|
-
right: l === "right" ? -5 : void 0,
|
|
27
|
-
top: 0,
|
|
28
|
-
children: /* @__PURE__ */ n.jsx(b, {})
|
|
29
|
-
}
|
|
30
|
-
),
|
|
31
|
-
a
|
|
32
|
-
] }) });
|
|
33
|
-
}, y = (o) => {
|
|
34
|
-
const { top: e, children: t, ...c } = o, a = i.useRef(null), [u, l] = i.useState(!1), d = i.useCallback(() => {
|
|
35
|
-
var r;
|
|
36
|
-
Number((r = a.current) == null ? void 0 : r.getBoundingClientRect().y) <= (e || 0) ? l(!0) : l(!1);
|
|
37
|
-
}, [e]);
|
|
38
|
-
return i.useEffect(() => {
|
|
39
|
-
const r = h(d, 300);
|
|
40
|
-
return window.addEventListener("scroll", r), () => {
|
|
41
|
-
window.removeEventListener("scroll", r);
|
|
42
|
-
};
|
|
43
|
-
}, [d]), /* @__PURE__ */ n.jsx(
|
|
44
|
-
g,
|
|
45
|
-
{
|
|
46
|
-
ref: a,
|
|
47
|
-
position: "sticky",
|
|
48
|
-
top: e ? `${e}px` : 0,
|
|
49
|
-
backgroundColor: { _light: "white", _dark: "black" },
|
|
50
|
-
boxShadow: u ? "action_bar" : "none",
|
|
51
|
-
zIndex: "1",
|
|
52
|
-
...c,
|
|
53
|
-
children: t
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
};
|
|
57
|
-
export {
|
|
58
|
-
j as TableBody,
|
|
59
|
-
R as TableCell,
|
|
60
|
-
p as TableColumnHeader,
|
|
61
|
-
H as TableColumnHeaderSortable,
|
|
62
|
-
g as TableHeader,
|
|
63
|
-
y as TableHeaderSticky,
|
|
64
|
-
S as TableRoot,
|
|
65
|
-
v as TableRow
|
|
66
|
-
};
|
package/dist/chakra/tabs.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { j as n } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Tabs as o, chakra as c } from "@chakra-ui/react";
|
|
3
|
-
import * as e from "react";
|
|
4
|
-
const R = e.forwardRef(
|
|
5
|
-
function(t, s) {
|
|
6
|
-
const { lazyMount: a = !0, unmountOnExit: i = !0, ...T } = t;
|
|
7
|
-
return /* @__PURE__ */ n.jsx(o.Root, { ref: s, ...T, lazyMount: a, unmountOnExit: i });
|
|
8
|
-
}
|
|
9
|
-
), f = o.List, p = e.forwardRef(
|
|
10
|
-
function(t, s) {
|
|
11
|
-
return /* @__PURE__ */ n.jsx(o.Trigger, { ref: s, className: "group", ...t });
|
|
12
|
-
}
|
|
13
|
-
), O = o.Content, b = ({ count: r }) => r == null ? null : /* @__PURE__ */ n.jsx(
|
|
14
|
-
c.span,
|
|
15
|
-
{
|
|
16
|
-
color: r > 0 ? "text.secondary" : { _light: "blackAlpha.400", _dark: "whiteAlpha.400" },
|
|
17
|
-
_groupHover: {
|
|
18
|
-
color: "inherit"
|
|
19
|
-
},
|
|
20
|
-
children: r > 50 ? "50+" : r
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
export {
|
|
24
|
-
O as TabsContent,
|
|
25
|
-
b as TabsCounter,
|
|
26
|
-
f as TabsList,
|
|
27
|
-
R as TabsRoot,
|
|
28
|
-
p as TabsTrigger
|
|
29
|
-
};
|
package/dist/chakra/tag.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { chakra as E, Tag as t } from "@chakra-ui/react";
|
|
3
|
-
import * as u from "react";
|
|
4
|
-
import { nbsp as T } from "../lib/html-entities.js";
|
|
5
|
-
import b from "../components/TruncatedTextTooltip.js";
|
|
6
|
-
import { CloseButton as g } from "./close-button.js";
|
|
7
|
-
import { Skeleton as C } from "./skeleton.js";
|
|
8
|
-
const P = u.forwardRef(
|
|
9
|
-
function(c, i) {
|
|
10
|
-
const {
|
|
11
|
-
startElement: l,
|
|
12
|
-
endElement: r,
|
|
13
|
-
endElementProps: d,
|
|
14
|
-
label: o,
|
|
15
|
-
onClose: s,
|
|
16
|
-
closable: m = !!s,
|
|
17
|
-
children: n,
|
|
18
|
-
truncated: x = !1,
|
|
19
|
-
loading: p,
|
|
20
|
-
selected: h,
|
|
21
|
-
...j
|
|
22
|
-
} = c, a = o ? /* @__PURE__ */ e.jsxs(E.span, { color: "text.secondary", children: [
|
|
23
|
-
o,
|
|
24
|
-
":",
|
|
25
|
-
T
|
|
26
|
-
] }) : null, f = x ? /* @__PURE__ */ e.jsx(b, { label: n, children: /* @__PURE__ */ e.jsxs(t.Label, { children: [
|
|
27
|
-
a,
|
|
28
|
-
n
|
|
29
|
-
] }) }) : /* @__PURE__ */ e.jsxs(t.Label, { children: [
|
|
30
|
-
a,
|
|
31
|
-
n
|
|
32
|
-
] });
|
|
33
|
-
return /* @__PURE__ */ e.jsx(C, { loading: p, asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
34
|
-
t.Root,
|
|
35
|
-
{
|
|
36
|
-
ref: i,
|
|
37
|
-
...h && { "data-selected": !0 },
|
|
38
|
-
...j,
|
|
39
|
-
children: [
|
|
40
|
-
l && /* @__PURE__ */ e.jsx(t.StartElement, { _empty: { display: "none" }, children: l }),
|
|
41
|
-
f,
|
|
42
|
-
r && /* @__PURE__ */ e.jsx(t.EndElement, { ...d, children: r }),
|
|
43
|
-
m && /* @__PURE__ */ e.jsx(t.EndElement, { children: /* @__PURE__ */ e.jsx(t.CloseTrigger, { onClick: s, asChild: !0, children: /* @__PURE__ */ e.jsx(g, {}) }) })
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
) });
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
export {
|
|
50
|
-
P as Tag
|
|
51
|
-
};
|
package/dist/chakra/textarea.js
DELETED
package/dist/chakra/toaster.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { createToaster as l, Portal as s, Toaster as n, Toast as i, Spinner as c, Stack as d } from "@chakra-ui/react";
|
|
3
|
-
import { SECOND as p } from "../lib/consts.js";
|
|
4
|
-
import { CloseButton as a } from "./close-button.js";
|
|
5
|
-
const m = l({
|
|
6
|
-
placement: "top-end",
|
|
7
|
-
pauseOnPageIdle: !0,
|
|
8
|
-
duration: 10 * p,
|
|
9
|
-
offsets: {
|
|
10
|
-
top: "12px",
|
|
11
|
-
right: "12px",
|
|
12
|
-
bottom: "12px",
|
|
13
|
-
left: "12px"
|
|
14
|
-
}
|
|
15
|
-
}), f = () => /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx(n, { toaster: m, insetInline: { mdDown: "4" }, children: (r) => {
|
|
16
|
-
var o;
|
|
17
|
-
const t = ((o = r.meta) == null ? void 0 : o.closable) !== void 0 ? r.meta.closable : !0;
|
|
18
|
-
return /* @__PURE__ */ e.jsxs(i.Root, { width: { md: "sm" }, children: [
|
|
19
|
-
r.type === "loading" ? /* @__PURE__ */ e.jsx(c, { size: "sm", color: "blue.solid", my: 1 }) : null,
|
|
20
|
-
/* @__PURE__ */ e.jsxs(d, { gap: "0", flex: "1", maxWidth: "100%", children: [
|
|
21
|
-
r.title && /* @__PURE__ */ e.jsx(i.Title, { children: r.title }),
|
|
22
|
-
r.description && /* @__PURE__ */ e.jsx(i.Description, { children: r.description })
|
|
23
|
-
] }),
|
|
24
|
-
r.action && /* @__PURE__ */ e.jsx(i.ActionTrigger, { children: r.action.label }),
|
|
25
|
-
t && /* @__PURE__ */ e.jsx(i.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ e.jsx(a, {}) })
|
|
26
|
-
] });
|
|
27
|
-
} }) });
|
|
28
|
-
export {
|
|
29
|
-
f as Toaster,
|
|
30
|
-
m as toaster
|
|
31
|
-
};
|
package/dist/chakra/tooltip.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { j as o } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Tooltip as e, Portal as D } from "@chakra-ui/react";
|
|
3
|
-
import { useClickAway as S } from "../node_modules/@uidotdev/usehooks/index.js";
|
|
4
|
-
import * as n from "react";
|
|
5
|
-
import E from "../configs/app/index.js";
|
|
6
|
-
import z from "../lib/hooks/useIsMobile.js";
|
|
7
|
-
const J = n.forwardRef(
|
|
8
|
-
function(d, u) {
|
|
9
|
-
var f;
|
|
10
|
-
const {
|
|
11
|
-
showArrow: l,
|
|
12
|
-
onOpenChange: r,
|
|
13
|
-
variant: a,
|
|
14
|
-
selected: w,
|
|
15
|
-
children: c,
|
|
16
|
-
disabled: h,
|
|
17
|
-
disableOnMobile: m,
|
|
18
|
-
portalled: g = !0,
|
|
19
|
-
content: x,
|
|
20
|
-
contentProps: j,
|
|
21
|
-
portalRef: A,
|
|
22
|
-
defaultOpen: C = !1,
|
|
23
|
-
lazyMount: b = !0,
|
|
24
|
-
unmountOnExit: P = !0,
|
|
25
|
-
triggerProps: O,
|
|
26
|
-
...s
|
|
27
|
-
} = d, [T, i] = n.useState(C), p = z(), k = S(() => i(!1)), R = n.useCallback((t) => {
|
|
28
|
-
i(t.open), r == null || r(t);
|
|
29
|
-
}, [r]), v = n.useCallback(() => {
|
|
30
|
-
i((t) => !t);
|
|
31
|
-
}, []);
|
|
32
|
-
if (h || m && p) return c;
|
|
33
|
-
const y = l !== void 0 ? l : a !== "popover", M = {
|
|
34
|
-
...s.positioning,
|
|
35
|
-
overflowPadding: 4,
|
|
36
|
-
offset: {
|
|
37
|
-
mainAxis: 4,
|
|
38
|
-
...(f = s.positioning) == null ? void 0 : f.offset
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
return /* @__PURE__ */ o.jsxs(
|
|
42
|
-
e.Root,
|
|
43
|
-
{
|
|
44
|
-
openDelay: 100,
|
|
45
|
-
closeDelay: E.app.isPw ? 1e4 : 100,
|
|
46
|
-
open: T,
|
|
47
|
-
onOpenChange: R,
|
|
48
|
-
closeOnClick: !1,
|
|
49
|
-
closeOnPointerDown: !0,
|
|
50
|
-
variant: a,
|
|
51
|
-
lazyMount: b,
|
|
52
|
-
unmountOnExit: P,
|
|
53
|
-
...s,
|
|
54
|
-
positioning: M,
|
|
55
|
-
children: [
|
|
56
|
-
/* @__PURE__ */ o.jsx(
|
|
57
|
-
e.Trigger,
|
|
58
|
-
{
|
|
59
|
-
ref: k,
|
|
60
|
-
asChild: !0,
|
|
61
|
-
onClick: p ? v : void 0,
|
|
62
|
-
...O,
|
|
63
|
-
children: c
|
|
64
|
-
}
|
|
65
|
-
),
|
|
66
|
-
/* @__PURE__ */ o.jsx(D, { disabled: !g, container: A, children: /* @__PURE__ */ o.jsx(e.Positioner, { children: /* @__PURE__ */ o.jsxs(
|
|
67
|
-
e.Content,
|
|
68
|
-
{
|
|
69
|
-
ref: u,
|
|
70
|
-
...w ? { "data-selected": !0 } : {},
|
|
71
|
-
...j,
|
|
72
|
-
children: [
|
|
73
|
-
y && /* @__PURE__ */ o.jsx(e.Arrow, { children: /* @__PURE__ */ o.jsx(e.ArrowTip, {}) }),
|
|
74
|
-
x
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
) }) })
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
);
|
|
83
|
-
export {
|
|
84
|
-
J as Tooltip
|
|
85
|
-
};
|
package/dist/chakra.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|