@mirantes-micro/foundation-design-system 1.2.8 → 1.2.10

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +6 -3
  2. package/dist/index.js +74 -74
  3. package/package.json +134 -134
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { ReactNode, ChangeEvent, KeyboardEvent } from 'react';
2
+ import React__default, { ReactNode, ChangeEvent, KeyboardEvent, FocusEvent } from 'react';
3
3
  import { QueryClient } from '@tanstack/react-query';
4
4
  import { AxiosInstance } from 'axios';
5
5
  import * as zustand from 'zustand';
@@ -29,6 +29,7 @@ interface IMirantesFoundationProviderProps {
29
29
  name?: string;
30
30
  };
31
31
  widgetsApi?: string;
32
+ searchApi?: string;
32
33
  feedApi?: string;
33
34
  environment?: string;
34
35
  profileApiUrl?: string;
@@ -57,6 +58,7 @@ interface IMirantesFoundationProviderProps {
57
58
  interface IMirantesFoundationContext {
58
59
  widgetsApi?: string;
59
60
  feedApi?: string;
61
+ searchApi?: string;
60
62
  profileApiUrl?: string;
61
63
  chatApiUrl?: string;
62
64
  billingApiUrl?: string;
@@ -117,7 +119,7 @@ type User = {
117
119
  type LinkComponent = (props: CommonLinkProps) => any;
118
120
  type UsePathname = () => string;
119
121
 
120
- declare function MirantesFoundationProvider({ children, Notification, queryClient, onOpenCreatePostModal, values: { chatApiUrl, chatForPage, locale, Link, usePathname, user, isGettingUser, mirantesDomain, environment, feedApi, widgetsApi, hostUrl, isDev, profileApiUrl, isGettingStats, openCageApiKey, pageId, authedApi, authApiUrl, socketApiUrl, uploadFilesApi, page, ocpSubscriptionKey, billingApiUrl, multicaixaExpressUrl, stripeKey }, }: IMirantesFoundationProviderProps): React__default.JSX.Element;
122
+ declare function MirantesFoundationProvider({ children, Notification, queryClient, onOpenCreatePostModal, values: { chatApiUrl, chatForPage, locale, Link, usePathname, user, isGettingUser, mirantesDomain, environment, feedApi, searchApi, widgetsApi, hostUrl, isDev, profileApiUrl, isGettingStats, openCageApiKey, pageId, authedApi, authApiUrl, socketApiUrl, uploadFilesApi, page, ocpSubscriptionKey, billingApiUrl, multicaixaExpressUrl, stripeKey }, }: IMirantesFoundationProviderProps): React__default.JSX.Element;
121
123
 
122
124
  declare function WorkspacePanel(): React__default.JSX.Element;
123
125
 
@@ -272,6 +274,7 @@ type BaseInputProps = {
272
274
  value: string;
273
275
  onChange: (e: ChangeEvent<HTMLInputElement>) => void;
274
276
  onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;
277
+ onFocus?: (e: FocusEvent<HTMLInputElement>) => void;
275
278
  rightIcon?: React__default.ReactNode;
276
279
  leftIcon?: React__default.ReactNode;
277
280
  label?: string;
@@ -620,7 +623,7 @@ declare const useModalStore: zustand.UseBoundStore<zustand.StoreApi<ModalState>>
620
623
  interface BannerConfig {
621
624
  /** Número máximo de vezes que o banner pode ser mostrado (padrão: 5) */
622
625
  maxShows?: number;
623
- /** Delay inicial em milissegundos antes de mostrar o banner pela primeira vez (padrão: 30 segundos) */
626
+ /** Delay inicial em milissegundos antes de mostrar o banner pela primeira vez (padrão: 5 segundos) */
624
627
  initialDelayMs?: number;
625
628
  /** Se deve mostrar apenas em dispositivos móveis (padrão: true) */
626
629
  mobileOnly?: boolean;