@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/drawer.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Portal as w, Drawer as r } from "@chakra-ui/react";
|
|
3
|
-
import * as s from "react";
|
|
4
|
-
import { CloseButton as D } from "./close-button.js";
|
|
5
|
-
const T = s.forwardRef(function(e, o) {
|
|
6
|
-
const { children: i, portalled: a = !0, portalRef: c, offset: l, ...d } = e;
|
|
7
|
-
return /* @__PURE__ */ t.jsx(w, { disabled: !a, container: c, children: /* @__PURE__ */ t.jsx(r.Positioner, { padding: l, children: /* @__PURE__ */ t.jsx(r.Content, { ref: o, ...d, asChild: !1, children: i }) }) });
|
|
8
|
-
}), x = s.forwardRef(function(e, o) {
|
|
9
|
-
return /* @__PURE__ */ t.jsx(
|
|
10
|
-
r.CloseTrigger,
|
|
11
|
-
{
|
|
12
|
-
position: "absolute",
|
|
13
|
-
top: "2",
|
|
14
|
-
insetEnd: "2",
|
|
15
|
-
...e,
|
|
16
|
-
asChild: !0,
|
|
17
|
-
children: /* @__PURE__ */ t.jsx(D, { ref: o })
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
}), g = () => null, C = (n) => {
|
|
21
|
-
const { initialFocusEl: e = g, ...o } = n;
|
|
22
|
-
return /* @__PURE__ */ t.jsx(r.Root, { ...o, initialFocusEl: e });
|
|
23
|
-
}, j = (n) => {
|
|
24
|
-
const { asChild: e = !0, ...o } = n;
|
|
25
|
-
return /* @__PURE__ */ t.jsx(r.Trigger, { asChild: e, ...o });
|
|
26
|
-
}, m = r.Footer, h = r.Header, E = r.Body, R = r.Backdrop, B = r.Description, F = r.Title, P = r.ActionTrigger;
|
|
27
|
-
export {
|
|
28
|
-
P as DrawerActionTrigger,
|
|
29
|
-
R as DrawerBackdrop,
|
|
30
|
-
E as DrawerBody,
|
|
31
|
-
x as DrawerCloseTrigger,
|
|
32
|
-
T as DrawerContent,
|
|
33
|
-
B as DrawerDescription,
|
|
34
|
-
m as DrawerFooter,
|
|
35
|
-
h as DrawerHeader,
|
|
36
|
-
C as DrawerRoot,
|
|
37
|
-
F as DrawerTitle,
|
|
38
|
-
j as DrawerTrigger
|
|
39
|
-
};
|
package/dist/chakra/field.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { j as l } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Field as o } from "@chakra-ui/react";
|
|
3
|
-
import * as n from "react";
|
|
4
|
-
import { space as C } from "../lib/html-entities.js";
|
|
5
|
-
import R from "../utils/getComponentDisplayName.js";
|
|
6
|
-
const G = n.forwardRef(
|
|
7
|
-
function(h, c) {
|
|
8
|
-
const { label: r, children: d, helperText: t, errorText: i, optionalText: p, ...e } = h;
|
|
9
|
-
if (e.floating && r) {
|
|
10
|
-
const a = {
|
|
11
|
-
className: "peer",
|
|
12
|
-
placeholder: " ",
|
|
13
|
-
size: e.size,
|
|
14
|
-
floating: e.floating,
|
|
15
|
-
bgColor: e.bgColor,
|
|
16
|
-
disabled: e.disabled,
|
|
17
|
-
readOnly: e.readOnly
|
|
18
|
-
}, m = /* @__PURE__ */ l.jsxs(o.Label, { bgColor: e.bgColor, children: [
|
|
19
|
-
r,
|
|
20
|
-
/* @__PURE__ */ l.jsx(o.RequiredIndicator, { fallback: p }),
|
|
21
|
-
i && /* @__PURE__ */ l.jsxs(o.ErrorText, { ml: "2px", children: [
|
|
22
|
-
"-",
|
|
23
|
-
C,
|
|
24
|
-
i
|
|
25
|
-
] })
|
|
26
|
-
] }), x = t && /* @__PURE__ */ l.jsx(o.HelperText, { children: t }), s = n.Children.only(d);
|
|
27
|
-
if (R(s.type) === "InputGroup") {
|
|
28
|
-
const E = n.cloneElement(
|
|
29
|
-
n.Children.only(s.props.children),
|
|
30
|
-
a
|
|
31
|
-
), g = n.cloneElement(
|
|
32
|
-
s,
|
|
33
|
-
{},
|
|
34
|
-
E,
|
|
35
|
-
m
|
|
36
|
-
);
|
|
37
|
-
return /* @__PURE__ */ l.jsxs(o.Root, { pos: "relative", w: "full", ref: c, ...e, children: [
|
|
38
|
-
g,
|
|
39
|
-
x
|
|
40
|
-
] });
|
|
41
|
-
}
|
|
42
|
-
const b = n.cloneElement(s, a);
|
|
43
|
-
return /* @__PURE__ */ l.jsxs(o.Root, { pos: "relative", w: "full", ref: c, ...e, children: [
|
|
44
|
-
b,
|
|
45
|
-
m,
|
|
46
|
-
x
|
|
47
|
-
] });
|
|
48
|
-
}
|
|
49
|
-
const u = {
|
|
50
|
-
size: e.size
|
|
51
|
-
}, f = n.Children.only(d), j = n.cloneElement(f, u);
|
|
52
|
-
return /* @__PURE__ */ l.jsxs(o.Root, { ref: c, ...e, children: [
|
|
53
|
-
r && /* @__PURE__ */ l.jsxs(o.Label, { children: [
|
|
54
|
-
r,
|
|
55
|
-
/* @__PURE__ */ l.jsx(o.RequiredIndicator, { fallback: p })
|
|
56
|
-
] }),
|
|
57
|
-
j,
|
|
58
|
-
t && /* @__PURE__ */ l.jsx(o.HelperText, { children: t }),
|
|
59
|
-
i && /* @__PURE__ */ l.jsx(o.ErrorText, { children: i })
|
|
60
|
-
] });
|
|
61
|
-
}
|
|
62
|
-
);
|
|
63
|
-
export {
|
|
64
|
-
G as Field
|
|
65
|
-
};
|
package/dist/chakra/heading.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { j as o } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Heading as s } from "@chakra-ui/react";
|
|
3
|
-
import d from "react";
|
|
4
|
-
const m = d.forwardRef(
|
|
5
|
-
function(r, n) {
|
|
6
|
-
const { level: e, ...t } = r, a = e === "1" ? { base: "heading.md", lg: "heading.xl" } : e === "2" ? { base: "heading.sm", lg: "heading.lg" } : { base: "heading.xs", lg: "heading.md" }, i = e === "1" ? "h1" : e === "2" ? "h2" : "h3";
|
|
7
|
-
return /* @__PURE__ */ o.jsx(s, { ref: n, color: "heading", textStyle: a, as: i, ...t });
|
|
8
|
-
}
|
|
9
|
-
);
|
|
10
|
-
export {
|
|
11
|
-
m as Heading
|
|
12
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { j as m } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import n from "react";
|
|
3
|
-
import u from "../utils/getComponentDisplayName.js";
|
|
4
|
-
import { Button as d } from "./button.js";
|
|
5
|
-
const z = n.forwardRef(
|
|
6
|
-
function(o, i) {
|
|
7
|
-
const { size: t, variant: r = "plain", children: c, ...s } = o, e = n.Children.only(c), l = t && u(e.type) === "IconSvg" ? n.cloneElement(e, { boxSize: 5 }) : e, a = (() => {
|
|
8
|
-
switch (t) {
|
|
9
|
-
case "2xs":
|
|
10
|
-
return {
|
|
11
|
-
_icon: { boxSize: 5 },
|
|
12
|
-
boxSize: 5,
|
|
13
|
-
borderRadius: "sm"
|
|
14
|
-
};
|
|
15
|
-
case "md":
|
|
16
|
-
return {
|
|
17
|
-
_icon: { boxSize: 5 },
|
|
18
|
-
boxSize: 8
|
|
19
|
-
};
|
|
20
|
-
default:
|
|
21
|
-
return {};
|
|
22
|
-
}
|
|
23
|
-
})();
|
|
24
|
-
return /* @__PURE__ */ m.jsx(
|
|
25
|
-
d,
|
|
26
|
-
{
|
|
27
|
-
ref: i,
|
|
28
|
-
display: "inline-flex",
|
|
29
|
-
justifyContent: "center",
|
|
30
|
-
alignItems: "center",
|
|
31
|
-
p: 0,
|
|
32
|
-
minW: "auto",
|
|
33
|
-
flexShrink: "0",
|
|
34
|
-
variant: r,
|
|
35
|
-
...a,
|
|
36
|
-
...s,
|
|
37
|
-
children: l
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
export {
|
|
43
|
-
z as IconButton
|
|
44
|
-
};
|
package/dist/chakra/image.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { j as a } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Image as x } from "@chakra-ui/react";
|
|
3
|
-
import e from "react";
|
|
4
|
-
import { Skeleton as j } from "./skeleton.js";
|
|
5
|
-
const E = e.forwardRef(
|
|
6
|
-
function(f, m) {
|
|
7
|
-
const { fallback: o, src: l, onLoad: r, onError: t, ...s } = f, [c, i] = e.useState(!0), [u, d] = e.useState(!1), g = e.useCallback((n) => {
|
|
8
|
-
d(!0), i(!1), t == null || t(n);
|
|
9
|
-
}, [t]), p = e.useCallback((n) => {
|
|
10
|
-
i(!1), r == null || r(n);
|
|
11
|
-
}, [r]);
|
|
12
|
-
return !l && o || u ? o : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
13
|
-
c && /* @__PURE__ */ a.jsx(j, { loading: !0, ...s }),
|
|
14
|
-
/* @__PURE__ */ a.jsx(
|
|
15
|
-
x,
|
|
16
|
-
{
|
|
17
|
-
ref: m,
|
|
18
|
-
src: l,
|
|
19
|
-
onError: g,
|
|
20
|
-
onLoad: p,
|
|
21
|
-
...s,
|
|
22
|
-
display: c ? "none" : s.display || "inline-block"
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
] });
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
export {
|
|
29
|
-
E as Image
|
|
30
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { j as l } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Group as I, InputElement as i } from "@chakra-ui/react";
|
|
3
|
-
import * as n from "react";
|
|
4
|
-
import g from "../utils/getComponentDisplayName.js";
|
|
5
|
-
import { debounce as R } from "../node_modules/es-toolkit/dist/function/debounce.js";
|
|
6
|
-
const j = n.forwardRef(
|
|
7
|
-
function(m, f) {
|
|
8
|
-
const {
|
|
9
|
-
startElement: p,
|
|
10
|
-
startElementProps: v,
|
|
11
|
-
endElement: u,
|
|
12
|
-
endElementProps: x,
|
|
13
|
-
children: w,
|
|
14
|
-
startOffset: b,
|
|
15
|
-
endOffset: h,
|
|
16
|
-
...y
|
|
17
|
-
} = m, r = n.useRef(null), o = n.useRef(null), [e, E] = n.useState(), c = n.useCallback(() => {
|
|
18
|
-
var d, a;
|
|
19
|
-
const { width: t } = ((d = o == null ? void 0 : o.current) == null ? void 0 : d.getBoundingClientRect()) ?? {}, { width: s } = ((a = r == null ? void 0 : r.current) == null ? void 0 : a.getBoundingClientRect()) ?? {};
|
|
20
|
-
E({
|
|
21
|
-
start: s ?? 0,
|
|
22
|
-
end: t ?? 0
|
|
23
|
-
});
|
|
24
|
-
}, []);
|
|
25
|
-
return n.useEffect(() => {
|
|
26
|
-
c();
|
|
27
|
-
const t = R(c, 300), s = new ResizeObserver(t);
|
|
28
|
-
return s.observe(window.document.body), function() {
|
|
29
|
-
s.unobserve(window.document.body);
|
|
30
|
-
};
|
|
31
|
-
}, [c]), /* @__PURE__ */ l.jsxs(I, { ref: f, w: "100%", ...y, children: [
|
|
32
|
-
p && /* @__PURE__ */ l.jsx(i, { pointerEvents: "none", ref: r, px: 0, color: "gray.500", ...v, children: p }),
|
|
33
|
-
n.Children.map(w, (t) => g(t.type) !== "FieldInput" ? t : n.cloneElement(t, {
|
|
34
|
-
...p && { ps: b ?? (e != null && e.start ? `${e.start}px` : void 0) },
|
|
35
|
-
...u && { pe: h ?? (e != null && e.end ? `${e.end}px` : void 0) },
|
|
36
|
-
// hide input value and placeholder for the first render
|
|
37
|
-
value: e ? t.props.value : void 0,
|
|
38
|
-
placeholder: e ? t.props.placeholder : void 0
|
|
39
|
-
})),
|
|
40
|
-
u && /* @__PURE__ */ l.jsx(i, { placement: "end", ref: o, px: 0, color: "gray.500", ...x, children: u })
|
|
41
|
-
] });
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
j.displayName = "InputGroup";
|
|
45
|
-
export {
|
|
46
|
-
j as InputGroup
|
|
47
|
-
};
|
package/dist/chakra/input.js
DELETED
package/dist/chakra/link.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Link as f, LinkOverlay as h, Icon as b, LinkBox as g } from "@chakra-ui/react";
|
|
3
|
-
import u from "next/link";
|
|
4
|
-
import p from "react";
|
|
5
|
-
import v from "../icons/link_external.svg.js";
|
|
6
|
-
import { Skeleton as k } from "./skeleton.js";
|
|
7
|
-
const C = ({ color: o }) => /* @__PURE__ */ r.jsx(
|
|
8
|
-
b,
|
|
9
|
-
{
|
|
10
|
-
boxSize: 3,
|
|
11
|
-
verticalAlign: "middle",
|
|
12
|
-
color: o ?? "icon.externalLink",
|
|
13
|
-
_groupHover: {
|
|
14
|
-
color: "inherit"
|
|
15
|
-
},
|
|
16
|
-
flexShrink: 0,
|
|
17
|
-
children: /* @__PURE__ */ r.jsx(v, {})
|
|
18
|
-
}
|
|
19
|
-
), m = (o) => {
|
|
20
|
-
const { scroll: t = !0, shallow: n = !1, prefetch: i = !1, ...e } = o;
|
|
21
|
-
return {
|
|
22
|
-
chakra: e,
|
|
23
|
-
next: {
|
|
24
|
-
href: e.href,
|
|
25
|
-
scroll: t,
|
|
26
|
-
shallow: n,
|
|
27
|
-
prefetch: i
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
}, R = p.forwardRef(
|
|
31
|
-
function(t, n) {
|
|
32
|
-
const { chakra: i, next: e } = m(t), { external: s, loading: l, href: a, children: c, disabled: x, noIcon: j, iconColor: L, ...d } = i;
|
|
33
|
-
return s ? /* @__PURE__ */ r.jsx(k, { loading: l, ref: n, asChild: !0, children: /* @__PURE__ */ r.jsxs(
|
|
34
|
-
f,
|
|
35
|
-
{
|
|
36
|
-
href: a,
|
|
37
|
-
className: "group",
|
|
38
|
-
target: "_blank",
|
|
39
|
-
rel: "noopener noreferrer",
|
|
40
|
-
...x ? { "data-disabled": !0 } : {},
|
|
41
|
-
...d,
|
|
42
|
-
children: [
|
|
43
|
-
c,
|
|
44
|
-
!j && /* @__PURE__ */ r.jsx(C, { color: L })
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
) }) : /* @__PURE__ */ r.jsx(k, { loading: l, ref: n, asChild: !0, children: /* @__PURE__ */ r.jsx(
|
|
48
|
-
f,
|
|
49
|
-
{
|
|
50
|
-
asChild: !0,
|
|
51
|
-
...x ? { "data-disabled": !0 } : {},
|
|
52
|
-
...d,
|
|
53
|
-
children: e.href ? /* @__PURE__ */ r.jsx(u, { ...e, children: c }) : /* @__PURE__ */ r.jsx("span", { children: c })
|
|
54
|
-
}
|
|
55
|
-
) });
|
|
56
|
-
}
|
|
57
|
-
), S = g, $ = p.forwardRef(
|
|
58
|
-
function(t, n) {
|
|
59
|
-
const { chakra: i, next: e } = m(t), { children: s, external: l, ...a } = i;
|
|
60
|
-
return l ? /* @__PURE__ */ r.jsx(h, { ref: n, target: "_blank", rel: "noopener noreferrer", ...a, children: s }) : /* @__PURE__ */ r.jsx(h, { ref: n, asChild: !!e.href, ...a, children: e.href ? /* @__PURE__ */ r.jsx(u, { ...e, children: s }) : s });
|
|
61
|
-
}
|
|
62
|
-
);
|
|
63
|
-
export {
|
|
64
|
-
R as Link,
|
|
65
|
-
S as LinkBox,
|
|
66
|
-
C as LinkExternalIcon,
|
|
67
|
-
$ as LinkOverlay
|
|
68
|
-
};
|
package/dist/chakra/menu.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Portal as d, Menu as e, AbsoluteCenter as a } from "@chakra-ui/react";
|
|
3
|
-
import * as u from "react";
|
|
4
|
-
import { LuCheck as m, LuChevronRight as x } from "../node_modules/react-icons/lu/index.js";
|
|
5
|
-
const h = u.forwardRef(
|
|
6
|
-
function(n, r) {
|
|
7
|
-
const { portalled: o = !0, portalRef: i, ...c } = n;
|
|
8
|
-
return /* @__PURE__ */ t.jsx(d, { disabled: !o, container: i, children: /* @__PURE__ */ t.jsx(e.Positioner, { children: /* @__PURE__ */ t.jsx(e.Content, { ref: r, ...c }) }) });
|
|
9
|
-
}
|
|
10
|
-
), M = u.forwardRef(function(n, r) {
|
|
11
|
-
return /* @__PURE__ */ t.jsx(e.Arrow, { ref: r, ...n, children: /* @__PURE__ */ t.jsx(e.ArrowTip, {}) });
|
|
12
|
-
}), j = u.forwardRef(function(n, r) {
|
|
13
|
-
return /* @__PURE__ */ t.jsxs(e.CheckboxItem, { ps: "8", ref: r, ...n, children: [
|
|
14
|
-
/* @__PURE__ */ t.jsx(a, { axis: "horizontal", insetStart: "4", asChild: !0, children: /* @__PURE__ */ t.jsx(e.ItemIndicator, { children: /* @__PURE__ */ t.jsx(m, {}) }) }),
|
|
15
|
-
n.children
|
|
16
|
-
] });
|
|
17
|
-
}), g = u.forwardRef(function(n, r) {
|
|
18
|
-
const { children: o, ...i } = n;
|
|
19
|
-
return /* @__PURE__ */ t.jsxs(e.RadioItem, { ps: "8", ref: r, ...i, children: [
|
|
20
|
-
/* @__PURE__ */ t.jsx(a, { axis: "horizontal", insetStart: "4", asChild: !0, children: /* @__PURE__ */ t.jsx(e.ItemIndicator, { children: /* @__PURE__ */ t.jsx(m, {}) }) }),
|
|
21
|
-
/* @__PURE__ */ t.jsx(e.ItemText, { children: o })
|
|
22
|
-
] });
|
|
23
|
-
}), p = u.forwardRef(function(n, r) {
|
|
24
|
-
const { title: o, children: i, ...c } = n;
|
|
25
|
-
return /* @__PURE__ */ t.jsxs(e.ItemGroup, { ref: r, ...c, children: [
|
|
26
|
-
o && /* @__PURE__ */ t.jsx(e.ItemGroupLabel, { userSelect: "none", children: o }),
|
|
27
|
-
i
|
|
28
|
-
] });
|
|
29
|
-
}), R = u.forwardRef(function(n, r) {
|
|
30
|
-
const { startIcon: o, children: i, ...c } = n;
|
|
31
|
-
return /* @__PURE__ */ t.jsxs(e.TriggerItem, { ref: r, ...c, children: [
|
|
32
|
-
o,
|
|
33
|
-
i,
|
|
34
|
-
/* @__PURE__ */ t.jsx(x, {})
|
|
35
|
-
] });
|
|
36
|
-
}), C = e.RadioItemGroup, T = e.ContextTrigger, w = (s) => {
|
|
37
|
-
var c;
|
|
38
|
-
const { lazyMount: n = !0, unmountOnExit: r = !0, ...o } = s, i = {
|
|
39
|
-
placement: "bottom-start",
|
|
40
|
-
...s.positioning,
|
|
41
|
-
offset: {
|
|
42
|
-
mainAxis: 4,
|
|
43
|
-
...(c = s.positioning) == null ? void 0 : c.offset
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
return /* @__PURE__ */ t.jsx(e.Root, { ...o, positioning: i, lazyMount: n, unmountOnExit: r });
|
|
47
|
-
}, b = e.Separator, A = e.Item, G = e.ItemText, S = e.ItemCommand, k = e.Trigger;
|
|
48
|
-
export {
|
|
49
|
-
M as MenuArrow,
|
|
50
|
-
j as MenuCheckboxItem,
|
|
51
|
-
h as MenuContent,
|
|
52
|
-
T as MenuContextTrigger,
|
|
53
|
-
A as MenuItem,
|
|
54
|
-
S as MenuItemCommand,
|
|
55
|
-
p as MenuItemGroup,
|
|
56
|
-
G as MenuItemText,
|
|
57
|
-
g as MenuRadioItem,
|
|
58
|
-
C as MenuRadioItemGroup,
|
|
59
|
-
w as MenuRoot,
|
|
60
|
-
b as MenuSeparator,
|
|
61
|
-
k as MenuTrigger,
|
|
62
|
-
R as MenuTriggerItem
|
|
63
|
-
};
|
package/dist/chakra/pin-input.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { PinInput as t, Group as m } from "@chakra-ui/react";
|
|
3
|
-
import * as l from "react";
|
|
4
|
-
const I = l.forwardRef(
|
|
5
|
-
function(n, p) {
|
|
6
|
-
const { count: e = 6, inputProps: s, rootRef: i, attached: u, placeholder: a = " ", bgColor: c, ...f } = n;
|
|
7
|
-
return /* @__PURE__ */ r.jsxs(t.Root, { ref: i, placeholder: a, ...f, children: [
|
|
8
|
-
/* @__PURE__ */ r.jsx(t.HiddenInput, { ref: p, ...s }),
|
|
9
|
-
/* @__PURE__ */ r.jsx(t.Control, { children: /* @__PURE__ */ r.jsx(m, { attached: u, children: Array.from({ length: e }).map((j, o) => /* @__PURE__ */ r.jsx(t.Input, { index: o, bgColor: c }, o)) }) })
|
|
10
|
-
] });
|
|
11
|
-
}
|
|
12
|
-
);
|
|
13
|
-
export {
|
|
14
|
-
I as PinInput
|
|
15
|
-
};
|
package/dist/chakra/popover.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { Portal as a, Popover as o } from "@chakra-ui/react";
|
|
3
|
-
import * as c from "react";
|
|
4
|
-
import { CloseButton as l } from "./close-button.js";
|
|
5
|
-
const g = c.forwardRef(function(r, e) {
|
|
6
|
-
const { portalled: s = !0, portalRef: i, ...p } = r;
|
|
7
|
-
return /* @__PURE__ */ t.jsx(a, { disabled: !s, container: i, children: /* @__PURE__ */ t.jsx(o.Positioner, { children: /* @__PURE__ */ t.jsx(o.Content, { ref: e, ...p }) }) });
|
|
8
|
-
}), P = c.forwardRef(function(r, e) {
|
|
9
|
-
return /* @__PURE__ */ t.jsx(o.Arrow, { ...r, ref: e, children: /* @__PURE__ */ t.jsx(o.ArrowTip, {}) });
|
|
10
|
-
}), v = c.forwardRef(function(r, e) {
|
|
11
|
-
return /* @__PURE__ */ t.jsx(
|
|
12
|
-
o.CloseTrigger,
|
|
13
|
-
{
|
|
14
|
-
position: "absolute",
|
|
15
|
-
top: "1",
|
|
16
|
-
insetEnd: "1",
|
|
17
|
-
...r,
|
|
18
|
-
asChild: !0,
|
|
19
|
-
ref: e,
|
|
20
|
-
children: /* @__PURE__ */ t.jsx(l, {})
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
}), x = c.forwardRef(function(r, e) {
|
|
24
|
-
const { disabled: s, ...i } = r;
|
|
25
|
-
return s ? r.children : /* @__PURE__ */ t.jsx(
|
|
26
|
-
o.CloseTrigger,
|
|
27
|
-
{
|
|
28
|
-
ref: e,
|
|
29
|
-
...i,
|
|
30
|
-
asChild: !0
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
}), m = (n) => {
|
|
34
|
-
var p;
|
|
35
|
-
const r = {
|
|
36
|
-
placement: "bottom-start",
|
|
37
|
-
...n.positioning,
|
|
38
|
-
offset: {
|
|
39
|
-
mainAxis: 4,
|
|
40
|
-
...(p = n.positioning) == null ? void 0 : p.offset
|
|
41
|
-
}
|
|
42
|
-
}, { lazyMount: e = !0, unmountOnExit: s = !0, ...i } = n;
|
|
43
|
-
return /* @__PURE__ */ t.jsx(
|
|
44
|
-
o.Root,
|
|
45
|
-
{
|
|
46
|
-
autoFocus: !1,
|
|
47
|
-
lazyMount: e,
|
|
48
|
-
unmountOnExit: s,
|
|
49
|
-
...i,
|
|
50
|
-
positioning: r
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}, C = c.forwardRef(function(r, e) {
|
|
54
|
-
const { asChild: s = !0, ...i } = r;
|
|
55
|
-
return /* @__PURE__ */ t.jsx(o.Trigger, { asChild: s, ref: e, ...i });
|
|
56
|
-
}), j = o.Title, T = o.Description, R = o.Footer, w = o.Header, h = o.Body;
|
|
57
|
-
export {
|
|
58
|
-
P as PopoverArrow,
|
|
59
|
-
h as PopoverBody,
|
|
60
|
-
v as PopoverCloseTrigger,
|
|
61
|
-
x as PopoverCloseTriggerWrapper,
|
|
62
|
-
g as PopoverContent,
|
|
63
|
-
T as PopoverDescription,
|
|
64
|
-
R as PopoverFooter,
|
|
65
|
-
w as PopoverHeader,
|
|
66
|
-
m as PopoverRoot,
|
|
67
|
-
j as PopoverTitle,
|
|
68
|
-
C as PopoverTrigger
|
|
69
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { ProgressCircle as e, AbsoluteCenter as x } from "@chakra-ui/react";
|
|
3
|
-
import * as t from "react";
|
|
4
|
-
const u = t.forwardRef(function(o, s) {
|
|
5
|
-
const { trackColor: i, cap: n, color: l, ...a } = o;
|
|
6
|
-
return /* @__PURE__ */ r.jsxs(e.Circle, { ...a, ref: s, children: [
|
|
7
|
-
/* @__PURE__ */ r.jsx(e.Track, { stroke: i }),
|
|
8
|
-
/* @__PURE__ */ r.jsx(e.Range, { stroke: l, strokeLinecap: n })
|
|
9
|
-
] });
|
|
10
|
-
}), C = t.forwardRef(function(o, s) {
|
|
11
|
-
return /* @__PURE__ */ r.jsx(x, { children: /* @__PURE__ */ r.jsx(e.ValueText, { ...o, ref: s }) });
|
|
12
|
-
}), R = e.Root;
|
|
13
|
-
export {
|
|
14
|
-
u as ProgressCircleRing,
|
|
15
|
-
R as ProgressCircleRoot,
|
|
16
|
-
C as ProgressCircleValueText
|
|
17
|
-
};
|
package/dist/chakra/provider.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { ChakraProvider as e } from "@chakra-ui/react";
|
|
3
|
-
import i from "../theme/theme.js";
|
|
4
|
-
import { ColorModeProvider as m } from "./color-mode.js";
|
|
5
|
-
function n(o) {
|
|
6
|
-
return /* @__PURE__ */ r.jsx(e, { value: i, children: /* @__PURE__ */ r.jsx(m, { ...o }) });
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
n as Provider
|
|
10
|
-
};
|
package/dist/chakra/radio.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { RadioGroup as o } from "@chakra-ui/react";
|
|
3
|
-
import * as d from "react";
|
|
4
|
-
const c = d.forwardRef(
|
|
5
|
-
function(e, i) {
|
|
6
|
-
const { children: r, inputProps: s, rootRef: n, ...a } = e;
|
|
7
|
-
return /* @__PURE__ */ t.jsxs(o.Item, { ref: n, ...a, children: [
|
|
8
|
-
/* @__PURE__ */ t.jsx(o.ItemHiddenInput, { ref: i, ...s }),
|
|
9
|
-
/* @__PURE__ */ t.jsx(o.ItemIndicator, {}),
|
|
10
|
-
r && /* @__PURE__ */ t.jsx(o.ItemText, { children: r })
|
|
11
|
-
] });
|
|
12
|
-
}
|
|
13
|
-
), f = o.Root;
|
|
14
|
-
export {
|
|
15
|
-
c as Radio,
|
|
16
|
-
f as RadioGroup
|
|
17
|
-
};
|
package/dist/chakra/rating.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useRatingGroup as p, RatingGroup as o, Icon as c } from "@chakra-ui/react";
|
|
3
|
-
import * as f from "react";
|
|
4
|
-
import g from "../icons/star_filled.svg.js";
|
|
5
|
-
import I from "../icons/star_outline.svg.js";
|
|
6
|
-
const C = f.forwardRef(
|
|
7
|
-
function(d, u) {
|
|
8
|
-
const { count: a = 5, label: t, defaultValue: m, onValueChange: h, readOnly: i, ...x } = d, e = p({ count: a, defaultValue: m, onValueChange: h, readOnly: i }), l = e.hovering && !i ? e.hoveredValue : e.value, s = Array.isArray(t) ? t[l - 1] : t;
|
|
9
|
-
return /* @__PURE__ */ r.jsxs(o.RootProvider, { ref: u, value: e, ...x, children: [
|
|
10
|
-
/* @__PURE__ */ r.jsx(o.HiddenInput, {}),
|
|
11
|
-
/* @__PURE__ */ r.jsx(o.Control, { children: Array.from({ length: a }).map((v, n) => {
|
|
12
|
-
const j = n < l ? /* @__PURE__ */ r.jsx(c, { children: /* @__PURE__ */ r.jsx(g, {}) }) : /* @__PURE__ */ r.jsx(c, { children: /* @__PURE__ */ r.jsx(I, {}) });
|
|
13
|
-
return /* @__PURE__ */ r.jsx(o.Item, { index: n + 1, children: /* @__PURE__ */ r.jsx(o.ItemIndicator, { icon: j }) }, n);
|
|
14
|
-
}) }),
|
|
15
|
-
s && /* @__PURE__ */ r.jsx(o.Label, { children: s })
|
|
16
|
-
] });
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
export {
|
|
20
|
-
C as Rating
|
|
21
|
-
};
|