1 | {"version":3,"sources":["../src/index.ts","../src/chakra-provider.tsx"],"sourcesContent":["export * from \"@chakra-ui/accordion\"\nexport * from \"@chakra-ui/alert\"\nexport * from \"@chakra-ui/avatar\"\nexport * from \"@chakra-ui/breadcrumb\"\nexport * from \"@chakra-ui/button\"\nexport * from \"@chakra-ui/card\"\nexport * from \"@chakra-ui/checkbox\"\nexport * from \"@chakra-ui/close-button\"\nexport * from \"@chakra-ui/control-box\"\nexport * from \"@chakra-ui/counter\"\nexport * from \"@chakra-ui/css-reset\"\nexport * from \"@chakra-ui/editable\"\nexport * from \"@chakra-ui/focus-lock\"\nexport * from \"@chakra-ui/form-control\"\nexport * from \"@chakra-ui/hooks\"\nexport * from \"@chakra-ui/icon\"\nexport * from \"@chakra-ui/image\"\nexport * from \"@chakra-ui/input\"\nexport * from \"@chakra-ui/layout\"\nexport type { GridProps, ListProps } from \"@chakra-ui/layout\"\nexport * from \"@chakra-ui/media-query\"\nexport * from \"@chakra-ui/menu\"\nexport * from \"@chakra-ui/modal\"\nexport * from \"@chakra-ui/number-input\"\nexport * from \"@chakra-ui/pin-input\"\nexport * from \"@chakra-ui/popover\"\nexport * from \"@chakra-ui/popper\"\nexport * from \"@chakra-ui/portal\"\nexport * from \"@chakra-ui/progress\"\nexport * from \"@chakra-ui/radio\"\nexport * from \"@chakra-ui/react-env\"\nexport * from \"@chakra-ui/select\"\nexport * from \"@chakra-ui/skeleton\"\nexport * from \"@chakra-ui/skip-nav\"\nexport * from \"@chakra-ui/slider\"\nexport * from \"@chakra-ui/spinner\"\nexport * from \"@chakra-ui/stat\"\nexport * from \"@chakra-ui/stepper\"\nexport * from \"@chakra-ui/switch\"\nexport * from \"@chakra-ui/system\"\nexport * from \"@chakra-ui/table\"\nexport * from \"@chakra-ui/tabs\"\nexport * from \"@chakra-ui/tag\"\nexport * from \"@chakra-ui/textarea\"\nexport * from \"@chakra-ui/theme\"\nexport * from \"@chakra-ui/theme-utils\"\nexport * from \"@chakra-ui/toast\"\nexport * from \"@chakra-ui/tooltip\"\nexport * from \"@chakra-ui/transition\"\nexport * from \"@chakra-ui/visually-hidden\"\nexport * from \"./chakra-provider\"\n","import {\n ChakraProvider as BaseChakraProvider,\n ChakraProviderProps as BaseChakraProviderProps,\n} from \"@chakra-ui/provider\"\nimport { theme as defaultTheme, baseTheme, Theme } from \"@chakra-ui/theme\"\nimport {\n ToastProvider,\n ToastProviderProps,\n ToastOptionProvider,\n} from \"@chakra-ui/toast\"\nimport { Dict } from \"@chakra-ui/utils\"\n\nexport interface ChakraProviderProps extends BaseChakraProviderProps {\n /**\n * Provide defaults for `useToast()` usages for `ChakraProvider`s children\n */\n toastOptions?: ToastProviderProps\n}\n\nconst createChakraProvider = (\n providerTheme: Theme | (Omit<Theme, \"components\"> & { components: Dict }),\n) => {\n return function ChakraProvider({\n children,\n theme = providerTheme,\n toastOptions,\n ...restProps\n }: ChakraProviderProps) {\n return (\n <BaseChakraProvider theme={theme} {...restProps}>\n <ToastOptionProvider value={toastOptions?.defaultOptions}>\n {children}\n </ToastOptionProvider>\n <ToastProvider {...toastOptions} />\n </BaseChakraProvider>\n )\n }\n}\n\nexport const ChakraProvider = createChakraProvider(defaultTheme)\nexport const ChakraBaseProvider = createChakraProvider(baseTheme)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,iCAAd;AACA,wBAAc,6BADd;AAEA,wBAAc,8BAFd;AAGA,wBAAc,kCAHd;AAIA,wBAAc,8BAJd;AAKA,wBAAc,4BALd;AAMA,wBAAc,gCANd;AAOA,wBAAc,oCAPd;AAQA,wBAAc,mCARd;AASA,wBAAc,+BATd;AAUA,wBAAc,iCAVd;AAWA,wBAAc,gCAXd;AAYA,wBAAc,kCAZd;AAaA,wBAAc,oCAbd;AAcA,wBAAc,6BAdd;AAeA,wBAAc,4BAfd;AAgBA,wBAAc,6BAhBd;AAiBA,wBAAc,6BAjBd;AAkBA,wBAAc,8BAlB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