@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
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { defineRecipe as e } from "@chakra-ui/react";
|
|
2
|
-
const o = e({
|
|
3
|
-
className: "chakra-checkmark",
|
|
4
|
-
base: {
|
|
5
|
-
display: "inline-flex",
|
|
6
|
-
alignItems: "center",
|
|
7
|
-
justifyContent: "center",
|
|
8
|
-
flexShrink: "0",
|
|
9
|
-
color: "white",
|
|
10
|
-
borderWidth: "2px",
|
|
11
|
-
borderColor: "transparent",
|
|
12
|
-
focusVisibleRing: "outside",
|
|
13
|
-
_icon: {
|
|
14
|
-
boxSize: "full"
|
|
15
|
-
},
|
|
16
|
-
_disabled: {
|
|
17
|
-
opacity: "control.disabled"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
variants: {
|
|
21
|
-
size: {
|
|
22
|
-
xs: {
|
|
23
|
-
boxSize: "3",
|
|
24
|
-
borderRadius: "2px"
|
|
25
|
-
},
|
|
26
|
-
sm: {
|
|
27
|
-
boxSize: "4",
|
|
28
|
-
borderRadius: "2px"
|
|
29
|
-
},
|
|
30
|
-
md: {
|
|
31
|
-
boxSize: "5",
|
|
32
|
-
borderRadius: "sm"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
variant: {
|
|
36
|
-
solid: {
|
|
37
|
-
borderColor: "checkbox.control.border",
|
|
38
|
-
_hover: {
|
|
39
|
-
borderColor: "checkbox.control.border.hover"
|
|
40
|
-
},
|
|
41
|
-
_readOnly: {
|
|
42
|
-
borderColor: "checkbox.control.border.readOnly",
|
|
43
|
-
_hover: {
|
|
44
|
-
borderColor: "checkbox.control.border.readOnly"
|
|
45
|
-
},
|
|
46
|
-
"&:is([data-state=checked], [data-state=indeterminate])": {
|
|
47
|
-
bg: "checkbox.control.border.readOnly",
|
|
48
|
-
color: "gray.500",
|
|
49
|
-
_hover: {
|
|
50
|
-
bg: "checkbox.control.border.readOnly"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"&:is([data-state=checked], [data-state=indeterminate])": {
|
|
55
|
-
bg: "blue.500",
|
|
56
|
-
color: "white",
|
|
57
|
-
borderColor: "blue.500",
|
|
58
|
-
_hover: {
|
|
59
|
-
bg: "blue.400",
|
|
60
|
-
borderColor: "blue.400"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
defaultVariants: {
|
|
67
|
-
variant: "solid",
|
|
68
|
-
size: "md"
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
export {
|
|
72
|
-
o as recipe
|
|
73
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { defineRecipe } from '@chakra-ui/react';
|
|
2
|
-
|
|
3
|
-
export const recipe = defineRecipe({
|
|
4
|
-
className: 'chakra-checkmark',
|
|
5
|
-
base: {
|
|
6
|
-
display: 'inline-flex',
|
|
7
|
-
alignItems: 'center',
|
|
8
|
-
justifyContent: 'center',
|
|
9
|
-
flexShrink: '0',
|
|
10
|
-
color: 'white',
|
|
11
|
-
borderWidth: '2px',
|
|
12
|
-
borderColor: 'transparent',
|
|
13
|
-
focusVisibleRing: 'outside',
|
|
14
|
-
_icon: {
|
|
15
|
-
boxSize: 'full',
|
|
16
|
-
},
|
|
17
|
-
_disabled: {
|
|
18
|
-
opacity: 'control.disabled',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
variants: {
|
|
22
|
-
size: {
|
|
23
|
-
xs: {
|
|
24
|
-
boxSize: '3',
|
|
25
|
-
borderRadius: '2px',
|
|
26
|
-
},
|
|
27
|
-
sm: {
|
|
28
|
-
boxSize: '4',
|
|
29
|
-
borderRadius: '2px',
|
|
30
|
-
},
|
|
31
|
-
md: {
|
|
32
|
-
boxSize: '5',
|
|
33
|
-
borderRadius: 'sm',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
variant: {
|
|
38
|
-
solid: {
|
|
39
|
-
borderColor: 'checkbox.control.border',
|
|
40
|
-
_hover: {
|
|
41
|
-
borderColor: 'checkbox.control.border.hover',
|
|
42
|
-
},
|
|
43
|
-
_readOnly: {
|
|
44
|
-
borderColor: 'checkbox.control.border.readOnly',
|
|
45
|
-
_hover: {
|
|
46
|
-
borderColor: 'checkbox.control.border.readOnly',
|
|
47
|
-
},
|
|
48
|
-
'&:is([data-state=checked], [data-state=indeterminate])': {
|
|
49
|
-
bg: 'checkbox.control.border.readOnly',
|
|
50
|
-
color: 'gray.500',
|
|
51
|
-
_hover: {
|
|
52
|
-
bg: 'checkbox.control.border.readOnly',
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
'&:is([data-state=checked], [data-state=indeterminate])': {
|
|
57
|
-
bg: 'blue.500',
|
|
58
|
-
color: 'white',
|
|
59
|
-
borderColor: 'blue.500',
|
|
60
|
-
_hover: {
|
|
61
|
-
bg: 'blue.400',
|
|
62
|
-
borderColor: 'blue.400',
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
defaultVariants: {
|
|
70
|
-
variant: 'solid',
|
|
71
|
-
size: 'md',
|
|
72
|
-
},
|
|
73
|
-
});
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { defineRecipe as e } from "@chakra-ui/react";
|
|
2
|
-
const o = e({
|
|
3
|
-
base: {
|
|
4
|
-
display: "flex",
|
|
5
|
-
gap: 0,
|
|
6
|
-
borderRadius: "sm",
|
|
7
|
-
overflow: "hidden",
|
|
8
|
-
_disabled: {
|
|
9
|
-
opacity: "control.disabled"
|
|
10
|
-
},
|
|
11
|
-
minWidth: "auto"
|
|
12
|
-
},
|
|
13
|
-
variants: {
|
|
14
|
-
visual: {
|
|
15
|
-
plain: {
|
|
16
|
-
bg: "transparent",
|
|
17
|
-
color: "closeButton.fg",
|
|
18
|
-
border: "none",
|
|
19
|
-
"&:not([data-loading-skeleton])": {
|
|
20
|
-
bg: "transparent"
|
|
21
|
-
},
|
|
22
|
-
_hover: {
|
|
23
|
-
bg: "transparent",
|
|
24
|
-
color: "link.primary.hover"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
size: {
|
|
29
|
-
md: { boxSize: 5 }
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
defaultVariants: {
|
|
33
|
-
size: "md",
|
|
34
|
-
visual: "plain"
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
export {
|
|
38
|
-
o as recipe
|
|
39
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { defineRecipe } from '@chakra-ui/react';
|
|
2
|
-
|
|
3
|
-
export const recipe = defineRecipe({
|
|
4
|
-
base: {
|
|
5
|
-
display: 'flex',
|
|
6
|
-
gap: 0,
|
|
7
|
-
borderRadius: 'sm',
|
|
8
|
-
overflow: 'hidden',
|
|
9
|
-
_disabled: {
|
|
10
|
-
opacity: 'control.disabled',
|
|
11
|
-
},
|
|
12
|
-
minWidth: 'auto',
|
|
13
|
-
},
|
|
14
|
-
variants: {
|
|
15
|
-
visual: {
|
|
16
|
-
plain: {
|
|
17
|
-
bg: 'transparent',
|
|
18
|
-
color: 'closeButton.fg',
|
|
19
|
-
border: 'none',
|
|
20
|
-
'&:not([data-loading-skeleton])': {
|
|
21
|
-
bg: 'transparent',
|
|
22
|
-
},
|
|
23
|
-
_hover: {
|
|
24
|
-
bg: 'transparent',
|
|
25
|
-
color: 'link.primary.hover',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
size: {
|
|
30
|
-
md: { boxSize: 5 },
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
defaultVariants: {
|
|
34
|
-
size: 'md',
|
|
35
|
-
visual: 'plain',
|
|
36
|
-
},
|
|
37
|
-
});
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { defineSlotRecipe as e } from "@chakra-ui/react";
|
|
2
|
-
const i = e({
|
|
3
|
-
slots: ["backdrop", "positioner", "content", "header", "body", "footer", "title", "description"],
|
|
4
|
-
base: {
|
|
5
|
-
backdrop: {
|
|
6
|
-
bg: "blackAlpha.800",
|
|
7
|
-
pos: "fixed",
|
|
8
|
-
left: 0,
|
|
9
|
-
top: 0,
|
|
10
|
-
w: "100vw",
|
|
11
|
-
h: "100dvh",
|
|
12
|
-
zIndex: "modal",
|
|
13
|
-
_open: {
|
|
14
|
-
animationName: "fade-in",
|
|
15
|
-
animationDuration: "slow"
|
|
16
|
-
},
|
|
17
|
-
_closed: {
|
|
18
|
-
animationName: "fade-out",
|
|
19
|
-
animationDuration: "moderate"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
positioner: {
|
|
23
|
-
display: "flex",
|
|
24
|
-
width: "100vw",
|
|
25
|
-
height: "100dvh",
|
|
26
|
-
position: "fixed",
|
|
27
|
-
left: 0,
|
|
28
|
-
top: 0,
|
|
29
|
-
"--dialog-z-index": "zIndex.modal",
|
|
30
|
-
zIndex: "calc(var(--dialog-z-index) + var(--layer-index, 0))",
|
|
31
|
-
justifyContent: "center",
|
|
32
|
-
overscrollBehaviorY: "none"
|
|
33
|
-
},
|
|
34
|
-
content: {
|
|
35
|
-
display: "flex",
|
|
36
|
-
flexDirection: "column",
|
|
37
|
-
position: "relative",
|
|
38
|
-
width: "100%",
|
|
39
|
-
padding: 6,
|
|
40
|
-
outline: 0,
|
|
41
|
-
textStyle: "md",
|
|
42
|
-
my: "var(--dialog-margin, var(--dialog-base-margin))",
|
|
43
|
-
"--dialog-z-index": "zIndex.modal",
|
|
44
|
-
zIndex: "calc(var(--dialog-z-index) + var(--layer-index, 0))",
|
|
45
|
-
bg: "dialog.bg",
|
|
46
|
-
color: "dialog.fg",
|
|
47
|
-
boxShadow: "size.lg",
|
|
48
|
-
borderRadius: "xl",
|
|
49
|
-
_open: {
|
|
50
|
-
animationDuration: "moderate"
|
|
51
|
-
},
|
|
52
|
-
_closed: {
|
|
53
|
-
animationDuration: "faster"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
header: {
|
|
57
|
-
flex: 0,
|
|
58
|
-
p: 0,
|
|
59
|
-
mb: 2,
|
|
60
|
-
display: "flex",
|
|
61
|
-
alignItems: "center",
|
|
62
|
-
columnGap: 2,
|
|
63
|
-
minH: "40px"
|
|
64
|
-
},
|
|
65
|
-
body: {
|
|
66
|
-
flex: "1",
|
|
67
|
-
p: 0
|
|
68
|
-
},
|
|
69
|
-
footer: {
|
|
70
|
-
display: "flex",
|
|
71
|
-
alignItems: "center",
|
|
72
|
-
justifyContent: "flex-start",
|
|
73
|
-
gap: "6",
|
|
74
|
-
p: "0",
|
|
75
|
-
mt: "6"
|
|
76
|
-
},
|
|
77
|
-
title: {
|
|
78
|
-
textStyle: "heading.lg",
|
|
79
|
-
fontWeight: "500"
|
|
80
|
-
},
|
|
81
|
-
description: {
|
|
82
|
-
color: "dialog.fg"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
variants: {
|
|
86
|
-
placement: {
|
|
87
|
-
center: {
|
|
88
|
-
positioner: {
|
|
89
|
-
alignItems: "center"
|
|
90
|
-
},
|
|
91
|
-
content: {
|
|
92
|
-
"--dialog-base-margin": "auto",
|
|
93
|
-
mx: "auto"
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
top: {
|
|
97
|
-
positioner: {
|
|
98
|
-
alignItems: "flex-start"
|
|
99
|
-
},
|
|
100
|
-
content: {
|
|
101
|
-
"--dialog-base-margin": "spacing.16",
|
|
102
|
-
mx: "auto"
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
bottom: {
|
|
106
|
-
positioner: {
|
|
107
|
-
alignItems: "flex-end"
|
|
108
|
-
},
|
|
109
|
-
content: {
|
|
110
|
-
"--dialog-base-margin": "spacing.16",
|
|
111
|
-
mx: "auto"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
scrollBehavior: {
|
|
116
|
-
inside: {
|
|
117
|
-
positioner: {
|
|
118
|
-
overflow: "hidden"
|
|
119
|
-
},
|
|
120
|
-
content: {
|
|
121
|
-
// source code has minH: 'auto', but I am not sure why
|
|
122
|
-
// anyway it will override the minH from the "full" size variant
|
|
123
|
-
// minH: 'auto',
|
|
124
|
-
maxH: "calc(100% - 7.5rem)"
|
|
125
|
-
},
|
|
126
|
-
body: {
|
|
127
|
-
overflow: "auto"
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
outside: {
|
|
131
|
-
positioner: {
|
|
132
|
-
overflow: "auto",
|
|
133
|
-
pointerEvents: "auto"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
size: {
|
|
138
|
-
sm: {
|
|
139
|
-
content: {
|
|
140
|
-
maxW: "400px"
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
md: {
|
|
144
|
-
content: {
|
|
145
|
-
maxW: "728px"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
cover: {
|
|
149
|
-
positioner: {
|
|
150
|
-
padding: "10"
|
|
151
|
-
},
|
|
152
|
-
content: {
|
|
153
|
-
width: "100%",
|
|
154
|
-
height: "100%",
|
|
155
|
-
"--dialog-margin": "0"
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
full: {
|
|
159
|
-
content: {
|
|
160
|
-
maxW: "100vw",
|
|
161
|
-
minH: "100vh",
|
|
162
|
-
"--dialog-margin": "0",
|
|
163
|
-
borderRadius: "0"
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
motionPreset: {
|
|
168
|
-
scale: {
|
|
169
|
-
content: {
|
|
170
|
-
_open: { animationName: "scale-in, fade-in" },
|
|
171
|
-
_closed: { animationName: "scale-out, fade-out" }
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
"slide-in-bottom": {
|
|
175
|
-
content: {
|
|
176
|
-
_open: { animationName: "slide-from-bottom, fade-in" },
|
|
177
|
-
_closed: { animationName: "slide-to-bottom, fade-out" }
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
"slide-in-top": {
|
|
181
|
-
content: {
|
|
182
|
-
_open: { animationName: "slide-from-top, fade-in" },
|
|
183
|
-
_closed: { animationName: "slide-to-top, fade-out" }
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
"slide-in-left": {
|
|
187
|
-
content: {
|
|
188
|
-
_open: { animationName: "slide-from-left, fade-in" },
|
|
189
|
-
_closed: { animationName: "slide-to-left, fade-out" }
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
"slide-in-right": {
|
|
193
|
-
content: {
|
|
194
|
-
_open: { animationName: "slide-from-right, fade-in" },
|
|
195
|
-
_closed: { animationName: "slide-to-right, fade-out" }
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
none: {}
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
defaultVariants: {
|
|
202
|
-
size: "md",
|
|
203
|
-
scrollBehavior: "inside",
|
|
204
|
-
placement: "center",
|
|
205
|
-
motionPreset: "scale"
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
export {
|
|
209
|
-
i as recipe
|
|
210
|
-
};
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import { defineSlotRecipe } from '@chakra-ui/react';
|
|
2
|
-
|
|
3
|
-
export const recipe = defineSlotRecipe({
|
|
4
|
-
slots: [ 'backdrop', 'positioner', 'content', 'header', 'body', 'footer', 'title', 'description' ],
|
|
5
|
-
base: {
|
|
6
|
-
backdrop: {
|
|
7
|
-
bg: 'blackAlpha.800',
|
|
8
|
-
pos: 'fixed',
|
|
9
|
-
left: 0,
|
|
10
|
-
top: 0,
|
|
11
|
-
w: '100vw',
|
|
12
|
-
h: '100dvh',
|
|
13
|
-
zIndex: 'modal',
|
|
14
|
-
_open: {
|
|
15
|
-
animationName: 'fade-in',
|
|
16
|
-
animationDuration: 'slow',
|
|
17
|
-
},
|
|
18
|
-
_closed: {
|
|
19
|
-
animationName: 'fade-out',
|
|
20
|
-
animationDuration: 'moderate',
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
positioner: {
|
|
24
|
-
display: 'flex',
|
|
25
|
-
width: '100vw',
|
|
26
|
-
height: '100dvh',
|
|
27
|
-
position: 'fixed',
|
|
28
|
-
left: 0,
|
|
29
|
-
top: 0,
|
|
30
|
-
'--dialog-z-index': 'zIndex.modal',
|
|
31
|
-
zIndex: 'calc(var(--dialog-z-index) + var(--layer-index, 0))',
|
|
32
|
-
justifyContent: 'center',
|
|
33
|
-
overscrollBehaviorY: 'none',
|
|
34
|
-
},
|
|
35
|
-
content: {
|
|
36
|
-
display: 'flex',
|
|
37
|
-
flexDirection: 'column',
|
|
38
|
-
position: 'relative',
|
|
39
|
-
width: '100%',
|
|
40
|
-
padding: 6,
|
|
41
|
-
outline: 0,
|
|
42
|
-
textStyle: 'md',
|
|
43
|
-
my: 'var(--dialog-margin, var(--dialog-base-margin))',
|
|
44
|
-
'--dialog-z-index': 'zIndex.modal',
|
|
45
|
-
zIndex: 'calc(var(--dialog-z-index) + var(--layer-index, 0))',
|
|
46
|
-
bg: 'dialog.bg',
|
|
47
|
-
color: 'dialog.fg',
|
|
48
|
-
boxShadow: 'size.lg',
|
|
49
|
-
borderRadius: 'xl',
|
|
50
|
-
_open: {
|
|
51
|
-
animationDuration: 'moderate',
|
|
52
|
-
},
|
|
53
|
-
_closed: {
|
|
54
|
-
animationDuration: 'faster',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
header: {
|
|
58
|
-
flex: 0,
|
|
59
|
-
p: 0,
|
|
60
|
-
mb: 2,
|
|
61
|
-
display: 'flex',
|
|
62
|
-
alignItems: 'center',
|
|
63
|
-
columnGap: 2,
|
|
64
|
-
minH: '40px',
|
|
65
|
-
},
|
|
66
|
-
body: {
|
|
67
|
-
flex: '1',
|
|
68
|
-
p: 0,
|
|
69
|
-
},
|
|
70
|
-
footer: {
|
|
71
|
-
display: 'flex',
|
|
72
|
-
alignItems: 'center',
|
|
73
|
-
justifyContent: 'flex-start',
|
|
74
|
-
gap: '6',
|
|
75
|
-
p: '0',
|
|
76
|
-
mt: '6',
|
|
77
|
-
},
|
|
78
|
-
title: {
|
|
79
|
-
textStyle: 'heading.lg',
|
|
80
|
-
fontWeight: '500',
|
|
81
|
-
},
|
|
82
|
-
description: {
|
|
83
|
-
color: 'dialog.fg',
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
variants: {
|
|
88
|
-
placement: {
|
|
89
|
-
center: {
|
|
90
|
-
positioner: {
|
|
91
|
-
alignItems: 'center',
|
|
92
|
-
},
|
|
93
|
-
content: {
|
|
94
|
-
'--dialog-base-margin': 'auto',
|
|
95
|
-
mx: 'auto',
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
top: {
|
|
99
|
-
positioner: {
|
|
100
|
-
alignItems: 'flex-start',
|
|
101
|
-
},
|
|
102
|
-
content: {
|
|
103
|
-
'--dialog-base-margin': 'spacing.16',
|
|
104
|
-
mx: 'auto',
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
bottom: {
|
|
108
|
-
positioner: {
|
|
109
|
-
alignItems: 'flex-end',
|
|
110
|
-
},
|
|
111
|
-
content: {
|
|
112
|
-
'--dialog-base-margin': 'spacing.16',
|
|
113
|
-
mx: 'auto',
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
scrollBehavior: {
|
|
119
|
-
inside: {
|
|
120
|
-
positioner: {
|
|
121
|
-
overflow: 'hidden',
|
|
122
|
-
},
|
|
123
|
-
content: {
|
|
124
|
-
// source code has minH: 'auto', but I am not sure why
|
|
125
|
-
// anyway it will override the minH from the "full" size variant
|
|
126
|
-
// minH: 'auto',
|
|
127
|
-
maxH: 'calc(100% - 7.5rem)',
|
|
128
|
-
},
|
|
129
|
-
body: {
|
|
130
|
-
overflow: 'auto',
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
outside: {
|
|
134
|
-
positioner: {
|
|
135
|
-
overflow: 'auto',
|
|
136
|
-
pointerEvents: 'auto',
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
size: {
|
|
142
|
-
sm: {
|
|
143
|
-
content: {
|
|
144
|
-
maxW: '400px',
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
md: {
|
|
148
|
-
content: {
|
|
149
|
-
maxW: '728px',
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
cover: {
|
|
153
|
-
positioner: {
|
|
154
|
-
padding: '10',
|
|
155
|
-
},
|
|
156
|
-
content: {
|
|
157
|
-
width: '100%',
|
|
158
|
-
height: '100%',
|
|
159
|
-
'--dialog-margin': '0',
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
full: {
|
|
163
|
-
content: {
|
|
164
|
-
maxW: '100vw',
|
|
165
|
-
minH: '100vh',
|
|
166
|
-
'--dialog-margin': '0',
|
|
167
|
-
borderRadius: '0',
|
|
168
|
-
},
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
motionPreset: {
|
|
173
|
-
scale: {
|
|
174
|
-
content: {
|
|
175
|
-
_open: { animationName: 'scale-in, fade-in' },
|
|
176
|
-
_closed: { animationName: 'scale-out, fade-out' },
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
'slide-in-bottom': {
|
|
180
|
-
content: {
|
|
181
|
-
_open: { animationName: 'slide-from-bottom, fade-in' },
|
|
182
|
-
_closed: { animationName: 'slide-to-bottom, fade-out' },
|
|
183
|
-
},
|
|
184
|
-
},
|
|
185
|
-
'slide-in-top': {
|
|
186
|
-
content: {
|
|
187
|
-
_open: { animationName: 'slide-from-top, fade-in' },
|
|
188
|
-
_closed: { animationName: 'slide-to-top, fade-out' },
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
'slide-in-left': {
|
|
192
|
-
content: {
|
|
193
|
-
_open: { animationName: 'slide-from-left, fade-in' },
|
|
194
|
-
_closed: { animationName: 'slide-to-left, fade-out' },
|
|
195
|
-
},
|
|
196
|
-
},
|
|
197
|
-
'slide-in-right': {
|
|
198
|
-
content: {
|
|
199
|
-
_open: { animationName: 'slide-from-right, fade-in' },
|
|
200
|
-
_closed: { animationName: 'slide-to-right, fade-out' },
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
|
-
none: {},
|
|
204
|
-
},
|
|
205
|
-
},
|
|
206
|
-
|
|
207
|
-
defaultVariants: {
|
|
208
|
-
size: 'md',
|
|
209
|
-
scrollBehavior: 'inside',
|
|
210
|
-
placement: 'center',
|
|
211
|
-
motionPreset: 'scale',
|
|
212
|
-
},
|
|
213
|
-
});
|