@antscorp/ui 0.1.4 → 0.1.5
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/atoms/AddButton.d.ts +2 -1
- package/dist/atoms/Chip.d.ts +4 -1
- package/dist/atoms/RemoveButton.d.ts +2 -1
- package/dist/atoms/TextAction.d.ts +2 -1
- package/dist/docs.json +1 -1
- package/dist/lib/forwardable.d.ts +8 -0
- package/dist/molecules/CheckGroup.d.ts +2 -1
- package/dist/molecules/CheckRow.d.ts +4 -1
- package/dist/molecules/CommitTextField.d.ts +2 -1
- package/dist/molecules/ConfirmDialog.d.ts +2 -1
- package/dist/molecules/DateTimeInput.d.ts +2 -1
- package/dist/molecules/DurationInput.d.ts +2 -1
- package/dist/molecules/PercentRow.d.ts +2 -1
- package/dist/molecules/RevealRadioGroup.d.ts +2 -1
- package/dist/molecules/RevealSwitch.d.ts +2 -1
- package/dist/molecules/Select.d.ts +2 -1
- package/dist/molecules/StatusButton.d.ts +2 -1
- package/dist/molecules/ToggleGrid.d.ts +2 -1
- package/dist/molecules/TokenTextField.d.ts +2 -1
- package/dist/organisms/TokenPickerDialog.d.ts +2 -1
- package/dist/organisms/TransferPicker.d.ts +2 -1
- package/dist/theme/AntsomiTheme.d.ts +3 -2
- package/dist/theme/AntsomiTheme.js +8 -7
- package/package.json +3 -3
- package/src/atoms/AddButton.tsx +2 -1
- package/src/atoms/Chip.tsx +4 -1
- package/src/atoms/RemoveButton.tsx +3 -1
- package/src/atoms/TextAction.tsx +3 -1
- package/src/lib/forwardable.ts +8 -0
- package/src/molecules/CheckGroup.tsx +3 -3
- package/src/molecules/CheckRow.tsx +4 -1
- package/src/molecules/CommitTextField.tsx +15 -12
- package/src/molecules/ConfirmDialog.tsx +5 -1
- package/src/molecules/DateTimeInput.tsx +3 -2
- package/src/molecules/DurationInput.tsx +4 -1
- package/src/molecules/PercentRow.tsx +3 -2
- package/src/molecules/RevealRadioGroup.tsx +3 -3
- package/src/molecules/RevealSwitch.tsx +3 -1
- package/src/molecules/Select.tsx +16 -13
- package/src/molecules/StatusButton.tsx +3 -1
- package/src/molecules/ToggleGrid.tsx +3 -3
- package/src/molecules/TokenTextField.tsx +3 -3
- package/src/organisms/TokenPickerDialog.tsx +2 -1
- package/src/organisms/TransferPicker.tsx +3 -3
- package/src/theme/AntsomiTheme.tsx +9 -3
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type ButtonProps } from "@astryxdesign/core/Button";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
|
+
import type { Forwardable } from "../lib/forwardable.js";
|
|
3
4
|
/** What `AddButton` takes. */
|
|
4
|
-
export type AddButtonProps = Pick<ButtonProps, "label" | "isDisabled"
|
|
5
|
+
export type AddButtonProps = Forwardable<Pick<ButtonProps, "label" | "isDisabled">> & {
|
|
5
6
|
/** `ghost` by default; `secondary` for an add that needs more weight. */
|
|
6
7
|
readonly variant?: "ghost" | "secondary" | undefined;
|
|
7
8
|
/** The button's height, `md` by default; its plus follows it. */
|
package/dist/atoms/Chip.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { type TokenProps } from "@astryxdesign/core/Token";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
|
+
import type { Forwardable } from "../lib/forwardable.js";
|
|
3
4
|
/** What `Chip` takes. */
|
|
4
|
-
export type ChipProps = Pick<TokenProps, "
|
|
5
|
+
export type ChipProps = Forwardable<Pick<TokenProps, "isDisabled">> & {
|
|
6
|
+
/** The chip's text; cut short with an ellipsis past `maxWidth`, and shown whole in a tooltip. */
|
|
7
|
+
readonly label: string;
|
|
5
8
|
/** `neutral` (default) is the plain grey chip; `accent` the pale accent one; `danger` a value no longer valid. */
|
|
6
9
|
readonly tone?: "neutral" | "accent" | "danger" | undefined;
|
|
7
10
|
/** The chip's height, `sm` or `md` (default), as the controls beside it. */
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type IconButtonProps } from "@astryxdesign/core/IconButton";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
|
+
import type { Forwardable } from "../lib/forwardable.js";
|
|
3
4
|
/** What `RemoveButton` takes. */
|
|
4
|
-
export type RemoveButtonProps = Pick<IconButtonProps, "label" | "isDisabled"
|
|
5
|
+
export type RemoveButtonProps = Forwardable<Pick<IconButtonProps, "label" | "isDisabled">> & {
|
|
5
6
|
/** The button's height, `md` by default. */
|
|
6
7
|
readonly size?: "sm" | "md" | undefined;
|
|
7
8
|
/** Read-only: a remove is an editing affordance, so nothing is drawn. */
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type LinkProps } from "@astryxdesign/core/Link";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
|
+
import type { Forwardable } from "../lib/forwardable.js";
|
|
3
4
|
/** What `TextAction` takes. */
|
|
4
|
-
export type TextActionProps = Pick<LinkProps, "isDisabled"
|
|
5
|
+
export type TextActionProps = Forwardable<Pick<LinkProps, "isDisabled">> & {
|
|
5
6
|
/** What it does, such as "Remove all"; shown in capitals by default, so pass it in normal case. */
|
|
6
7
|
readonly label: string;
|
|
7
8
|
/** A glyph before the text, in the text's colour, such as an Astryx `Icon` of a bin for a removal. */
|