@selectwin/kit 0.1.90 → 0.1.92
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/dist/SelectCopyRow.d.ts +2 -1
- package/dist/SelectMenu.d.ts +2 -1
- package/dist/SelectPreviewFrame.d.ts +10 -1
- package/dist/index.js +24314 -9538
- package/dist/internal/dateValue.d.ts +1 -0
- package/dist/internal/safeHref.d.ts +1 -0
- package/dist/style.css +2 -1
- package/package.json +64 -64
package/dist/SelectCopyRow.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { ComponentPropsWithoutRef } from 'react';
|
|
|
2
2
|
type SelectCopyRowOwnProps = {
|
|
3
3
|
label?: string;
|
|
4
4
|
value: string;
|
|
5
|
-
/** When set, shows an "open" action linking here.
|
|
5
|
+
/** When set, shows an "open" action linking here. Só `http(s)`/`mailto`/`tel` ou caminho
|
|
6
|
+
* relativo — `javascript:` e afins escondem a ação (internal/safeHref). */
|
|
6
7
|
href?: string;
|
|
7
8
|
/** Aviso ao consumidor DEPOIS da cópia (um toast, por exemplo) — a cópia em si é do
|
|
8
9
|
* componente; o handler não precisa (nem deve) escrever no clipboard. */
|
package/dist/SelectMenu.d.ts
CHANGED
|
@@ -17,7 +17,8 @@ export type SelectMenuItemProps = SelectMenuItemOwnProps & Omit<ComponentPropsWi
|
|
|
17
17
|
export declare const SelectMenuItem: import('react').ForwardRefExoticComponent<SelectMenuItemOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, keyof SelectMenuItemOwnProps> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
18
18
|
type SelectMenuLinkOwnProps = {
|
|
19
19
|
children: ReactNode;
|
|
20
|
-
/** Destino. Absoluto (https:, mailto:) → tratado como externo por padrão.
|
|
20
|
+
/** Destino. Absoluto (https:, mailto:) → tratado como externo por padrão. Esquema fora de
|
|
21
|
+
* `http(s)`/`mailto`/`tel` (`javascript:`…) sai sem `href` (internal/safeHref). */
|
|
21
22
|
href: string;
|
|
22
23
|
icon?: ReactNode;
|
|
23
24
|
/** Elemento à direita. Num item externo, default = a seta de "abre fora". */
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { ReactNode, Ref } from 'react';
|
|
2
2
|
type Device = 'desktop' | 'mobile';
|
|
3
3
|
export interface SelectPreviewFrameProps {
|
|
4
|
-
/** Preview URL. Empty/undefined shows the placeholder
|
|
4
|
+
/** Preview URL. Empty/undefined shows the placeholder — e também um esquema fora de
|
|
5
|
+
* `http(s)` ou caminho relativo: `javascript:` num `<iframe src>` executa na origem do
|
|
6
|
+
* painel sem clique nenhum (internal/safeHref). */
|
|
5
7
|
src?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Tokens do `sandbox` do `<iframe>` (padrão: `allow-scripts allow-same-origin allow-forms`
|
|
10
|
+
* — ver DEFAULT_SANDBOX). Passe uma string para ampliar (ex.: somar `allow-popups` se o
|
|
11
|
+
* preview precisar abrir links) ou `false` para tirar o atributo, só para conteúdo em que
|
|
12
|
+
* se confia por inteiro.
|
|
13
|
+
*/
|
|
14
|
+
sandbox?: string | false;
|
|
6
15
|
title?: string;
|
|
7
16
|
height?: number;
|
|
8
17
|
/** Preenche a altura do pai em vez de medir `height` — para o palco de um
|