@selectwin/kit 0.1.7 → 0.1.9
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/SelectLoader.d.ts +7 -4
- package/dist/SelectSection.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +983 -980
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/SelectLoader.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
/** SelectLoader — a centered
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
/** SelectLoader — a centered spinner with an optional label, for pending auth
|
|
3
3
|
* states (OAuth callback, verifying a code, establishing a session). Fills its
|
|
4
|
-
* container; drop it inside a SelectCard body.
|
|
4
|
+
* container; drop it inside a SelectCard body. Pass `mark` (e.g. the app's animated
|
|
5
|
+
* brand mark) to replace the generic ring — the kit stays brand-neutral; the mark
|
|
6
|
+
* brings its own animation. */
|
|
5
7
|
type SelectLoaderOwnProps = {
|
|
6
8
|
label?: string;
|
|
9
|
+
mark?: ReactNode;
|
|
7
10
|
};
|
|
8
11
|
export type SelectLoaderProps = SelectLoaderOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectLoaderOwnProps>;
|
|
9
|
-
export declare const SelectLoader: import('react').ForwardRefExoticComponent<SelectLoaderOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">,
|
|
12
|
+
export declare const SelectLoader: import('react').ForwardRefExoticComponent<SelectLoaderOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectLoaderOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
13
|
export {};
|
package/dist/SelectSection.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
type SelectSectionOwnProps = {
|
|
3
3
|
title?: ReactNode;
|
|
4
|
+
/** Subdued line under the title (e.g. the step subtitle of a wizard card). */
|
|
5
|
+
description?: ReactNode;
|
|
4
6
|
/** Right-aligned action in the head (e.g. an "Editar" link). Ignored when collapsible. */
|
|
5
7
|
action?: ReactNode;
|
|
6
8
|
/** Make the head a button that expands/collapses the body. */
|
package/dist/index.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export { SelectOtpInput } from './SelectOtpInput';
|
|
|
40
40
|
export { SelectBackLink } from './SelectBackLink';
|
|
41
41
|
export { SelectResendButton } from './SelectResendButton';
|
|
42
42
|
export { SelectPasswordStrength, passwordScore } from './SelectPasswordStrength';
|
|
43
|
-
export { SelectLoader } from './SelectLoader';
|
|
43
|
+
export { SelectLoader, type SelectLoaderProps } from './SelectLoader';
|
|
44
44
|
export { SelectText } from './SelectText';
|
|
45
45
|
export { SelectBox, SelectStack, SelectInline, SelectGrid } from './SelectLayout';
|
|
46
46
|
export { SelectPage } from './SelectPage';
|