jenosize-ui 0.1.0
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/LICENSE +28 -0
- package/README.md +100 -0
- package/THIRD-PARTY-NOTICES.md +163 -0
- package/dist/Button-Bt7pzM4R.d.ts +82 -0
- package/dist/PaymentInput-CKPIPNWH.d.ts +141 -0
- package/dist/Select-CVbEQ2Ep.d.ts +118 -0
- package/dist/TagInput-CTJYOB4J.d.ts +90 -0
- package/dist/avatar.d.ts +161 -0
- package/dist/avatar.js +11 -0
- package/dist/badge.d.ts +109 -0
- package/dist/badge.js +10 -0
- package/dist/breadcrumb.d.ts +58 -0
- package/dist/breadcrumb.js +7 -0
- package/dist/button.d.ts +54 -0
- package/dist/button.js +14 -0
- package/dist/calendar.d.ts +368 -0
- package/dist/calendar.js +21 -0
- package/dist/callout.d.ts +70 -0
- package/dist/callout.js +16 -0
- package/dist/card-nWicloNi.d.ts +80 -0
- package/dist/card.d.ts +2 -0
- package/dist/card.js +7 -0
- package/dist/checkbox.d.ts +133 -0
- package/dist/checkbox.js +11 -0
- package/dist/chunk-24TO7E32.js +42 -0
- package/dist/chunk-3Y5X7B5C.js +146 -0
- package/dist/chunk-4OLULPQG.js +202 -0
- package/dist/chunk-4P2NBLBW.js +103 -0
- package/dist/chunk-52IFGFTL.js +11 -0
- package/dist/chunk-5FATN5YD.js +115 -0
- package/dist/chunk-5NOBSXJN.js +297 -0
- package/dist/chunk-5RAPA22E.js +106 -0
- package/dist/chunk-7EUAMHMU.js +16 -0
- package/dist/chunk-7EWQKTNQ.js +1336 -0
- package/dist/chunk-7HOIZ3UO.js +110 -0
- package/dist/chunk-7IU5TMFL.js +452 -0
- package/dist/chunk-7JBNLEJ7.js +29 -0
- package/dist/chunk-7S2TBALK.js +23 -0
- package/dist/chunk-BJUZVYQC.js +188 -0
- package/dist/chunk-BVJWBYIG.js +66 -0
- package/dist/chunk-CME4DIML.js +65 -0
- package/dist/chunk-CYPPEUX5.js +73 -0
- package/dist/chunk-D5BTFSL7.js +71 -0
- package/dist/chunk-D6TPWNRK.js +387 -0
- package/dist/chunk-DJSXIAFH.js +66 -0
- package/dist/chunk-DRZCJCBO.js +46 -0
- package/dist/chunk-DWKILXHE.js +17 -0
- package/dist/chunk-E7ZSWBAK.js +70 -0
- package/dist/chunk-EDSK6FEH.js +8 -0
- package/dist/chunk-F2K7VJUV.js +114 -0
- package/dist/chunk-F6NLE6XJ.js +40 -0
- package/dist/chunk-FHHAPGCR.js +32 -0
- package/dist/chunk-FXIBGTS5.js +14 -0
- package/dist/chunk-GCVA3OIV.js +72 -0
- package/dist/chunk-GFOAJVW5.js +336 -0
- package/dist/chunk-GRLSUQQE.js +136 -0
- package/dist/chunk-GTHJWR3Q.js +77 -0
- package/dist/chunk-HMUZE6EK.js +67 -0
- package/dist/chunk-I7WU4GTY.js +503 -0
- package/dist/chunk-J2BCKBHC.js +151 -0
- package/dist/chunk-J36M3KRX.js +1315 -0
- package/dist/chunk-J7ZQQFPT.js +113 -0
- package/dist/chunk-JP26LPCY.js +234 -0
- package/dist/chunk-JTNFJLIY.js +1046 -0
- package/dist/chunk-JVJRHBTD.js +50 -0
- package/dist/chunk-JYGR44ZC.js +133 -0
- package/dist/chunk-KDLPXXD2.js +173 -0
- package/dist/chunk-KMSYEE23.js +224 -0
- package/dist/chunk-KNYKWUYX.js +52 -0
- package/dist/chunk-LME57Z6J.js +138 -0
- package/dist/chunk-MFJP5FA7.js +20 -0
- package/dist/chunk-MKC5HNA7.js +1692 -0
- package/dist/chunk-MQGD2OUF.js +39 -0
- package/dist/chunk-MUFHLP4S.js +566 -0
- package/dist/chunk-O2LG3PNI.js +74 -0
- package/dist/chunk-O4GRKO3I.js +66 -0
- package/dist/chunk-OHUFNYGN.js +791 -0
- package/dist/chunk-PWKWNDBS.js +243 -0
- package/dist/chunk-QA74ITR4.js +103 -0
- package/dist/chunk-R6RGJF4L.js +170 -0
- package/dist/chunk-S7NNXWIN.js +7 -0
- package/dist/chunk-SV56BSUQ.js +162 -0
- package/dist/chunk-T7FCG7XV.js +435 -0
- package/dist/chunk-THC2ISYP.js +57 -0
- package/dist/chunk-VWC72TR3.js +115 -0
- package/dist/chunk-W46K56XU.js +216 -0
- package/dist/chunk-W5GGOUUI.js +75 -0
- package/dist/chunk-WEUJYDCV.js +269 -0
- package/dist/chunk-WFY7DKQD.js +279 -0
- package/dist/chunk-WZQFC7ZN.js +448 -0
- package/dist/chunk-Z3ETJN5G.js +136 -0
- package/dist/chunk-ZOOX3TUB.js +192 -0
- package/dist/chunk-ZSNJ6UA3.js +42 -0
- package/dist/chunk-ZZA2LUTL.js +130 -0
- package/dist/chunk-ZZT2E5VT.js +24 -0
- package/dist/color-CtSxc1Rh.d.ts +6 -0
- package/dist/combobox.d.ts +184 -0
- package/dist/combobox.js +21 -0
- package/dist/date-input.d.ts +83 -0
- package/dist/date-input.js +16 -0
- package/dist/date-picker.d.ts +249 -0
- package/dist/date-picker.js +29 -0
- package/dist/date-utils-7hTFTXNK.d.ts +34 -0
- package/dist/date-vMJBKAFK.d.ts +22 -0
- package/dist/dialog.d.ts +86 -0
- package/dist/dialog.js +15 -0
- package/dist/drawer.d.ts +77 -0
- package/dist/drawer.js +14 -0
- package/dist/dropdown-menu.d.ts +218 -0
- package/dist/dropdown-menu.js +10 -0
- package/dist/file-trigger.d.ts +42 -0
- package/dist/file-trigger.js +3 -0
- package/dist/form.d.ts +487 -0
- package/dist/form.js +1179 -0
- package/dist/header-navigation.d.ts +74 -0
- package/dist/header-navigation.js +23 -0
- package/dist/icons/app.d.ts +48 -0
- package/dist/icons/app.js +282 -0
- package/dist/icons/flag.d.ts +817 -0
- package/dist/icons/flag.js +58336 -0
- package/dist/icons/integration.d.ts +36 -0
- package/dist/icons/integration.js +531 -0
- package/dist/icons/payment.d.ts +116 -0
- package/dist/icons/payment.js +2418 -0
- package/dist/icons.d.ts +2013 -0
- package/dist/icons.js +2012 -0
- package/dist/illustration.d.ts +48 -0
- package/dist/illustration.js +4 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.js +73 -0
- package/dist/indicator.d.ts +51 -0
- package/dist/indicator.js +7 -0
- package/dist/input.d.ts +66 -0
- package/dist/input.js +15 -0
- package/dist/multi-value-CJb_tnvi.d.ts +8 -0
- package/dist/nav-Bla0o_-1.d.ts +98 -0
- package/dist/number-input.d.ts +80 -0
- package/dist/number-input.js +15 -0
- package/dist/options-CPEIgjtd.d.ts +68 -0
- package/dist/overflow-Df0h42Oi.d.ts +29 -0
- package/dist/pagination.d.ts +77 -0
- package/dist/pagination.js +17 -0
- package/dist/payment-input.d.ts +7 -0
- package/dist/payment-input.js +15 -0
- package/dist/popover.d.ts +60 -0
- package/dist/popover.js +14 -0
- package/dist/progress.d.ts +87 -0
- package/dist/progress.js +5 -0
- package/dist/radio.d.ts +77 -0
- package/dist/radio.js +12 -0
- package/dist/select.d.ts +68 -0
- package/dist/select.js +24 -0
- package/dist/shared-BNXAdgh2.d.ts +9 -0
- package/dist/shared-BYXJPnsN.d.ts +11 -0
- package/dist/shared-Dc-GgA16.d.ts +42 -0
- package/dist/sidebar-navigation.d.ts +129 -0
- package/dist/sidebar-navigation.js +15 -0
- package/dist/styles.css +2 -0
- package/dist/switch.d.ts +23 -0
- package/dist/switch.js +7 -0
- package/dist/table.d.ts +692 -0
- package/dist/table.js +44 -0
- package/dist/tabs.d.ts +111 -0
- package/dist/tabs.js +8 -0
- package/dist/tag-input.d.ts +12 -0
- package/dist/tag-input.js +19 -0
- package/dist/tag.d.ts +98 -0
- package/dist/tag.js +9 -0
- package/dist/textarea.d.ts +40 -0
- package/dist/textarea.js +12 -0
- package/dist/theme-script.d.ts +29 -0
- package/dist/theme-script.js +15 -0
- package/dist/theme.css +929 -0
- package/dist/theme.d.ts +71 -0
- package/dist/theme.js +15 -0
- package/dist/toast.d.ts +242 -0
- package/dist/toast.js +15 -0
- package/dist/tooltip.d.ts +70 -0
- package/dist/tooltip.js +6 -0
- package/dist/tree.d.ts +308 -0
- package/dist/tree.js +11 -0
- package/package.json +352 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type TagInputSize = "sm" | "md" | "lg";
|
|
4
|
+
/** Which keystroke commits the draft into a tag. A NAMED set, not raw `string[]`: the old shape
|
|
5
|
+
* mixed two vocabularies in one array (`"Enter"` is a `KeyboardEvent.key`, `","` is a literal
|
|
6
|
+
* character), so `"Comma"`/`"Spacebar"`/`"COMMA"` all type-checked and all silently did nothing —
|
|
7
|
+
* and whether a separator ALSO split a pasted list was derived from `s.length === 1`, i.e. from
|
|
8
|
+
* spelling rather than intent. Each name now owns exactly one key AND one paste character. */
|
|
9
|
+
type TagInputSeparator = "enter" | "comma" | "semicolon" | "space" | "tab";
|
|
10
|
+
/** Props shared by `TagInput` (pills inside the field) and `TagInputOuter` (pills below). */
|
|
11
|
+
interface TagInputBaseProps {
|
|
12
|
+
/** Control height/padding/text size. @default "md" */
|
|
13
|
+
size?: TagInputSize;
|
|
14
|
+
/** Controlled tags. */
|
|
15
|
+
value?: string[];
|
|
16
|
+
/** Uncontrolled initial tags. */
|
|
17
|
+
defaultValue?: string[];
|
|
18
|
+
/** Fires with the full tag list whenever it changes. */
|
|
19
|
+
onValueChange?: (tags: string[]) => void;
|
|
20
|
+
/** Fires with the single tag just committed (typed, separator, or paste-split). */
|
|
21
|
+
onTagAdded?: (tag: string) => void;
|
|
22
|
+
/** Fires with the single tag just removed (pill ✕, or Delete/Backspace on a focused pill). */
|
|
23
|
+
onTagRemoved?: (tag: string) => void;
|
|
24
|
+
/** Which keystrokes commit the draft into a tag — each also splits a pasted list on its own
|
|
25
|
+
* character (`enter` → newline, `tab` → tab). @default ["enter", "comma"] */
|
|
26
|
+
separators?: TagInputSeparator[];
|
|
27
|
+
/** Maximum number of tags. */
|
|
28
|
+
max?: number;
|
|
29
|
+
/** Allow the same tag more than once. @default false */
|
|
30
|
+
allowDuplicates?: boolean;
|
|
31
|
+
/** Reject a candidate tag when this returns false — the input-side filter.
|
|
32
|
+
* (Named like the native `accept` attribute: what the control will take in. The form
|
|
33
|
+
* layer's `validate` bag is a different axis — what PASSES on submit.) */
|
|
34
|
+
accept?: (tag: string) => boolean;
|
|
35
|
+
/** Placeholder shown when empty. @default "Add tag…" */
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
/** Visible label (`Field.Label`), auto-associated with the draft input. */
|
|
38
|
+
label?: string;
|
|
39
|
+
/** Help-circle tooltip after the label (title line). @see tooltipDescription */
|
|
40
|
+
tooltip?: string;
|
|
41
|
+
/** Optional secondary line under {@link tooltip} in the tooltip surface. */
|
|
42
|
+
tooltipDescription?: string;
|
|
43
|
+
/** Helper text under the field (`Field.Description`). Hidden while an `error` shows. */
|
|
44
|
+
hint?: React.ReactNode;
|
|
45
|
+
/** Error state: red border + error ring and `aria-invalid`. @default false */
|
|
46
|
+
invalid?: boolean;
|
|
47
|
+
/** Optional error message (`Field.Error`). A truthy `error` also implies `invalid`. */
|
|
48
|
+
error?: string;
|
|
49
|
+
/** Marks the field required; shows a `*` (brand → red when invalid). @default false */
|
|
50
|
+
required?: boolean;
|
|
51
|
+
/** Suppress the visual `*` while keeping `required` semantics — for forms where every
|
|
52
|
+
* field is required and the asterisks become noise (UUI parity). @default false */
|
|
53
|
+
hideRequiredIndicator?: boolean;
|
|
54
|
+
/** Disables the field and removal. @default false */
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
/** Whether the field column takes `w-full`. Only OBSERVABLE where the parent would otherwise let
|
|
57
|
+
* the column shrink-to-fit (a flex row / grid cell) — in a plain block container it fills either
|
|
58
|
+
* way. Bound the field with a width in `className` (`w-64`, `max-w-56`). @default true */
|
|
59
|
+
fullWidth?: boolean;
|
|
60
|
+
/** Start slot: a **node** renders as an icon (`fg-quaternary`); a **string** as a muted text
|
|
61
|
+
* affix. Sits before the pill row. */
|
|
62
|
+
leading?: React.ReactNode;
|
|
63
|
+
/** End slot: a **node** renders as an icon; a **string** as a muted text affix. */
|
|
64
|
+
trailing?: React.ReactNode;
|
|
65
|
+
/** Bordered/interactive segment flush to the START edge — a unit, a `<NativeSelect seamless>`, or
|
|
66
|
+
* an icon `<Button seamless>`. Wrap static content in `<InputAddon>`. @see InputAddon */
|
|
67
|
+
leadingAddon?: React.ReactNode;
|
|
68
|
+
/** Bordered/interactive segment flush to the END edge (a "Clear all" button, a scope select, …). @see InputAddon */
|
|
69
|
+
trailingAddon?: React.ReactNode;
|
|
70
|
+
/** Cap the visible height to N rows of tags — the same contract as `Select`/`Combobox`
|
|
71
|
+
* (`field/tag-row.tsx`): unset = pills wrap and the control grows · `1` = one row, scrolling
|
|
72
|
+
* sideways · `n>1` = n rows, then scrolling vertically. Inner: scrolls the field shell.
|
|
73
|
+
* Outer: scrolls the pill block below. */
|
|
74
|
+
maxRows?: number;
|
|
75
|
+
/** Form name — one hidden `<input>` per tag is emitted under it. */
|
|
76
|
+
name?: string;
|
|
77
|
+
/** Id of the draft input. */
|
|
78
|
+
id?: string;
|
|
79
|
+
/** Layout/spacing only (margin, width, flex/grid placement), merged via `cn()`. */
|
|
80
|
+
className?: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
type TagInputProps = TagInputBaseProps;
|
|
84
|
+
/** Tag input with removable pills rendered INSIDE the field, before the caret.
|
|
85
|
+
* Type + Enter/comma to add; Backspace/ArrowLeft on an empty draft focuses the
|
|
86
|
+
* last pill (UUI roving model) — Delete/Backspace then removes it, ArrowRight
|
|
87
|
+
* returns to the input. */
|
|
88
|
+
declare function TagInput(props: TagInputProps): React.JSX.Element;
|
|
89
|
+
|
|
90
|
+
export { TagInput as T, type TagInputProps as a, type TagInputSeparator as b, type TagInputSize as c, type TagInputBaseProps as d };
|
package/dist/avatar.d.ts
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type AvatarSize = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
4
|
+
type AvatarShape = "circle" | "square";
|
|
5
|
+
type AvatarStatus = "online" | "offline";
|
|
6
|
+
|
|
7
|
+
/** Matches the avatar boxes it sits beside: xs 24px · sm 32px · md 40px. */
|
|
8
|
+
type AvatarAddButtonSize = "xs" | "sm" | "md";
|
|
9
|
+
interface AvatarAddButtonProps extends Omit<React.ComponentPropsWithoutRef<"button">, "className" | "children" | "title"> {
|
|
10
|
+
/** Circle diameter, matching the sibling avatars. @default "md" */
|
|
11
|
+
size?: AvatarAddButtonSize;
|
|
12
|
+
/** Accessible name AND tooltip label. @default "Add user" */
|
|
13
|
+
title?: string;
|
|
14
|
+
/** **Layout/spacing only** (margins, positioning), merged via `cn()`. Never restyles internals. */
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
/** Untitled UI's AvatarAddButton — the dashed-border circular "add user" button
|
|
18
|
+
* that closes a team AvatarGroup composition. A real `<button>` wrapped in our
|
|
19
|
+
* Tooltip (the `title` doubles as `aria-label` + tooltip text). */
|
|
20
|
+
declare function AvatarAddButton(props: AvatarAddButtonProps): React.JSX.Element;
|
|
21
|
+
|
|
22
|
+
interface AvatarProps {
|
|
23
|
+
/** Image URL. When omitted or it fails to load, the fallback (initials/icon) renders. */
|
|
24
|
+
src?: string;
|
|
25
|
+
/** Alt text for the `<img>`. Falls back to `name`. Pass an explicit empty string for a purely decorative image. */
|
|
26
|
+
alt?: string;
|
|
27
|
+
/** Person's name. Drives the derived initials (up to 2 letters, uppercased) and the root `aria-label`. */
|
|
28
|
+
name?: string;
|
|
29
|
+
/** Fixed pixel size of the avatar. @default "md" */
|
|
30
|
+
size?: AvatarSize;
|
|
31
|
+
/** Outer corner radius. @default "circle" */
|
|
32
|
+
shape?: AvatarShape;
|
|
33
|
+
/** Outer hairline frame: a `ring-1` of `--color-border-secondary_alt` plus per-size inner padding (Untitled UI's `border`). */
|
|
34
|
+
border?: boolean;
|
|
35
|
+
/** Presence dot in the single bottom-right indicator slot. Hidden when `verified` or `badge` is set. */
|
|
36
|
+
status?: AvatarStatus;
|
|
37
|
+
/** Brand verification check in the bottom-right slot. Wins over `status`; hidden when `badge` is set. */
|
|
38
|
+
verified?: boolean;
|
|
39
|
+
/** Numeric micro-badge (e.g. notification count) in the bottom-right slot. Lowest priority — any of `badge`/`verified`/`status` wins. */
|
|
40
|
+
count?: number;
|
|
41
|
+
/** Overrides the default user-icon fallback (shown when there is no image and no initials). Auto-sized; forced `aria-hidden`. */
|
|
42
|
+
placeholderIcon?: React.ReactNode;
|
|
43
|
+
/** Free-form fallback node (shown when there is no image, no initials, and no `placeholderIcon`). Renders as-is — the node controls its own look. */
|
|
44
|
+
placeholder?: React.ReactNode;
|
|
45
|
+
/** Custom node (e.g. a company logo) in the bottom-right slot. Highest priority — wins over `verified`/`status`/`count`. Circular-cropped + contrast-ringed. */
|
|
46
|
+
badge?: React.ReactNode;
|
|
47
|
+
/** Draws the focus-visible outline on the avatar itself when a wrapping link/button (marked `group`) is focused. */
|
|
48
|
+
focusable?: boolean;
|
|
49
|
+
/** Extra attributes spread onto the underlying `<img>` — e.g. `loading="lazy"`, `decoding`,
|
|
50
|
+
* `sizes`, `referrerPolicy`, `crossOrigin`, `fetchPriority`. `src`/`alt` are **excluded**: they
|
|
51
|
+
* have dedicated props that drive the fallback wiring too, so accepting them here would be a
|
|
52
|
+
* second channel for the same thing that quietly loses. `className` is merged.
|
|
53
|
+
* See `docs/type-safety-policy.md`. */
|
|
54
|
+
imageProps?: Omit<React.ComponentPropsWithoutRef<"img">, "src" | "alt">;
|
|
55
|
+
/** **Layout/spacing only** (margins, positioning), merged via `cn()`. Never restyles internals. */
|
|
56
|
+
className?: string;
|
|
57
|
+
}
|
|
58
|
+
declare function Avatar(props: AvatarProps): React.JSX.Element;
|
|
59
|
+
|
|
60
|
+
interface AvatarGroupProps {
|
|
61
|
+
/** Visible avatars before the rest collapse into a "+N" tile. @default all (no overflow) */
|
|
62
|
+
max?: number;
|
|
63
|
+
/** Total people represented, when it exceeds the avatars actually passed as children — so a
|
|
64
|
+
* stack of 4 loaded avatars can still read "+196". `+N` = `total − visible`. When omitted, N
|
|
65
|
+
* is derived from the children beyond `max`. If `total` overflows past the children, the "+N"
|
|
66
|
+
* tile is static (there are no hidden avatars to reveal).
|
|
67
|
+
*
|
|
68
|
+
* It counts the WHOLE group, so it can never be below the number of children: a lower value
|
|
69
|
+
* would hide avatars that were actually passed, so `+N` floors at the hidden-child count and
|
|
70
|
+
* dev-warns instead. */
|
|
71
|
+
total?: number;
|
|
72
|
+
/** Size applied to every avatar and the +N tile; overrides each child's own size. @default "md" */
|
|
73
|
+
size?: AvatarSize;
|
|
74
|
+
/** Shape applied to every avatar and the +N tile. @default "circle" */
|
|
75
|
+
shape?: AvatarShape;
|
|
76
|
+
/** Overlap amount between stacked avatars. @default "normal" */
|
|
77
|
+
spacing?: "normal" | "tight";
|
|
78
|
+
/** Accessible name for the list, e.g. "Project members". */
|
|
79
|
+
"aria-label"?: string;
|
|
80
|
+
/** Fires when the "+N" tile is opened. Use for **server-side lazy reveal**: you render only the
|
|
81
|
+
* first page of avatars as children and set `total` to the real group size, so "+N" reads
|
|
82
|
+
* `total − visible` even though nothing is loaded behind it. Providing `onReveal` makes that "+N"
|
|
83
|
+
* interactive; on open, fetch the rest and feed them back as children — they then appear in the
|
|
84
|
+
* popover. (Client-side needs neither: pass every avatar as a child and omit `onReveal`.) */
|
|
85
|
+
onReveal?: () => void;
|
|
86
|
+
/** Show a loading state inside the reveal popover — e.g. keep it `true` while `onReveal` fetches. */
|
|
87
|
+
revealing?: boolean;
|
|
88
|
+
/** Pass `<Avatar>` elements; their `size`/`shape` are injected by the group. */
|
|
89
|
+
children?: React.ReactNode;
|
|
90
|
+
/** **Layout/spacing only** (margins, alignment), merged via `cn()`. Never restyles internals. */
|
|
91
|
+
className?: string;
|
|
92
|
+
}
|
|
93
|
+
declare function AvatarGroup(props: AvatarGroupProps): React.JSX.Element;
|
|
94
|
+
|
|
95
|
+
/** AvatarLabelGroup is laid out at three densities (matches the avatar's sm/md/lg). */
|
|
96
|
+
type AvatarLabelGroupSize = "sm" | "md" | "lg";
|
|
97
|
+
interface AvatarLabelGroupProps {
|
|
98
|
+
/** Avatar image URL. */
|
|
99
|
+
src?: string;
|
|
100
|
+
/** Alt text for the image; defaults to `title` when it's a string. */
|
|
101
|
+
alt?: string;
|
|
102
|
+
/** Primary line. When a string, it also drives the avatar's initials + accessible name. */
|
|
103
|
+
title: React.ReactNode;
|
|
104
|
+
/** Secondary line (e.g. email or @handle). Truncates. */
|
|
105
|
+
subtitle?: React.ReactNode;
|
|
106
|
+
/** Avatar size + text scale. @default "md" */
|
|
107
|
+
size?: AvatarLabelGroupSize;
|
|
108
|
+
/** Avatar shape. @default "circle" */
|
|
109
|
+
shape?: AvatarShape;
|
|
110
|
+
/** Presence dot on the avatar. */
|
|
111
|
+
status?: AvatarStatus;
|
|
112
|
+
/** Verified badge on the avatar. */
|
|
113
|
+
verified?: boolean;
|
|
114
|
+
/** Override the avatar's icon fallback. */
|
|
115
|
+
placeholderIcon?: React.ReactNode;
|
|
116
|
+
/** Extra attributes spread onto the underlying `<img>` — e.g. `loading="lazy"`, `decoding`,
|
|
117
|
+
* `sizes`, `referrerPolicy`, `crossOrigin`, `fetchPriority`. `src`/`alt` are **excluded**: they
|
|
118
|
+
* have dedicated props that drive the fallback wiring too, so accepting them here would be a
|
|
119
|
+
* second channel for the same thing that quietly loses. `className` is merged.
|
|
120
|
+
* See `docs/type-safety-policy.md`. */
|
|
121
|
+
imageProps?: Omit<React.ComponentPropsWithoutRef<"img">, "src" | "alt">;
|
|
122
|
+
/** **Layout/spacing only** (margin, width for truncation), merged via `cn()`. */
|
|
123
|
+
className?: string;
|
|
124
|
+
}
|
|
125
|
+
declare function AvatarLabelGroup(props: AvatarLabelGroupProps): React.JSX.Element;
|
|
126
|
+
|
|
127
|
+
/** Profile photos use a larger, profile-only scale (72 / 96 / 160px). */
|
|
128
|
+
type AvatarProfilePhotoSize = "sm" | "md" | "lg";
|
|
129
|
+
interface AvatarProfilePhotoProps {
|
|
130
|
+
/** Image URL. When omitted or it fails to load, the fallback (initials/icon) renders. */
|
|
131
|
+
src?: string;
|
|
132
|
+
/** Alt text for the `<img>`. Falls back to `name`. */
|
|
133
|
+
alt?: string;
|
|
134
|
+
/** Person's name. Drives the derived initials and the root `aria-label`. */
|
|
135
|
+
name?: string;
|
|
136
|
+
/** Box size: `sm` 72px · `md` 96px · `lg` 160px. @default "md" */
|
|
137
|
+
size?: AvatarProfilePhotoSize;
|
|
138
|
+
/** Outer corner radius. @default "circle" */
|
|
139
|
+
shape?: AvatarShape;
|
|
140
|
+
/** Presence dot in the bottom-right slot. Hidden when `verified`/`badge` is set. */
|
|
141
|
+
status?: AvatarStatus;
|
|
142
|
+
/** Verification seal in the bottom-right slot. Wins over `status`; hidden when `badge` is set. */
|
|
143
|
+
verified?: boolean;
|
|
144
|
+
/** Overrides the default icon fallback. */
|
|
145
|
+
placeholderIcon?: React.ReactNode;
|
|
146
|
+
/** Free-form fallback node (shown when there is no image, no initials, and no `placeholderIcon`). Renders as-is. */
|
|
147
|
+
placeholder?: React.ReactNode;
|
|
148
|
+
/** Custom node (e.g. a company logo) in the bottom-right slot. Highest priority. */
|
|
149
|
+
badge?: React.ReactNode;
|
|
150
|
+
/** Extra attributes spread onto the underlying `<img>` — e.g. `loading="lazy"`, `decoding`,
|
|
151
|
+
* `sizes`, `referrerPolicy`, `crossOrigin`, `fetchPriority`. `src`/`alt` are **excluded**: they
|
|
152
|
+
* have dedicated props that drive the fallback wiring too, so accepting them here would be a
|
|
153
|
+
* second channel for the same thing that quietly loses. `className` is merged.
|
|
154
|
+
* See `docs/type-safety-policy.md`. */
|
|
155
|
+
imageProps?: Omit<React.ComponentPropsWithoutRef<"img">, "src" | "alt">;
|
|
156
|
+
/** **Layout/spacing only**, merged via `cn()`. */
|
|
157
|
+
className?: string;
|
|
158
|
+
}
|
|
159
|
+
declare function AvatarProfilePhoto(props: AvatarProfilePhotoProps): React.JSX.Element;
|
|
160
|
+
|
|
161
|
+
export { Avatar, AvatarAddButton, type AvatarAddButtonProps, type AvatarAddButtonSize, AvatarGroup, type AvatarGroupProps, AvatarLabelGroup, type AvatarLabelGroupProps, type AvatarLabelGroupSize, AvatarProfilePhoto, type AvatarProfilePhotoProps, type AvatarProfilePhotoSize, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarStatus };
|
package/dist/avatar.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";export { Avatar, AvatarAddButton, AvatarGroup, AvatarLabelGroup, AvatarProfilePhoto } from './chunk-WZQFC7ZN.js';
|
|
2
|
+
import './chunk-5FATN5YD.js';
|
|
3
|
+
import './chunk-CME4DIML.js';
|
|
4
|
+
import './chunk-KNYKWUYX.js';
|
|
5
|
+
import './chunk-24TO7E32.js';
|
|
6
|
+
import './chunk-ZZA2LUTL.js';
|
|
7
|
+
import './chunk-O4GRKO3I.js';
|
|
8
|
+
import './chunk-GCVA3OIV.js';
|
|
9
|
+
import './chunk-ZSNJ6UA3.js';
|
|
10
|
+
//# sourceMappingURL=avatar.js.map
|
|
11
|
+
//# sourceMappingURL=avatar.js.map
|
package/dist/badge.d.ts
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { S as SemanticColor } from './color-CtSxc1Rh.js';
|
|
3
|
+
import { O as OverflowMode } from './overflow-Df0h42Oi.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* BadgeGroup — Untitled UI's "badge group" announcement pill: a badge-in-badge
|
|
7
|
+
* composition ("New feature | Check out the team dashboard →"). Ported 1:1 from
|
|
8
|
+
* the free-tier `badge-groups.tsx` onto our semantic utility-* token layer.
|
|
9
|
+
*
|
|
10
|
+
* ONE look: the tinted pill-in-pill (UUI's `light` theme). UUI's second `modern` theme
|
|
11
|
+
* — a neutral card with a colored halo dot — was removed alongside `Badge`'s `modern`
|
|
12
|
+
* variant (2026-08-01), so there is no `theme` prop; the group is always tone-tinted.
|
|
13
|
+
*/
|
|
14
|
+
type BadgeGroupColor = SemanticColor;
|
|
15
|
+
type BadgeGroupSize = "md" | "lg";
|
|
16
|
+
type BadgeGroupAlign = "leading" | "trailing";
|
|
17
|
+
interface BadgeGroupProps extends Omit<React.ComponentPropsWithoutRef<"div">, "color"> {
|
|
18
|
+
/** The inner sub-badge's text (the highlighted "New feature" / "Read more" part). */
|
|
19
|
+
addonText: string;
|
|
20
|
+
/** One of the six semantic tones. Colors the outer pill's surface/ring/text and the trailing arrow. @default "brand" */
|
|
21
|
+
color?: BadgeGroupColor;
|
|
22
|
+
/** Two fixed sizes: `md` = text-xs · `lg` = text-sm. @default "md" */
|
|
23
|
+
size?: BadgeGroupSize;
|
|
24
|
+
/** Where the sub-badge sits: `leading` (addon first) or `trailing` (addon last, after the message). @default "leading" */
|
|
25
|
+
align?: BadgeGroupAlign;
|
|
26
|
+
/** Leading icon (a `ReactNode`) rendered **inside the addon sub-badge, before `addonText`** — decorates the highlight (e.g. a sparkle). Auto-sized to 12px and tinted like the trailing arrow; the node keeps its own a11y semantics (`docs/slot-policy.md`). */
|
|
27
|
+
leading?: React.ReactNode;
|
|
28
|
+
/** Trailing arrow icon (a `ReactNode`). Defaults to an ArrowRight; pass `null` to hide it. */
|
|
29
|
+
trailing?: React.ReactNode;
|
|
30
|
+
/** The outer message text. */
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
/** **Layout/spacing only** (margin, alignment, order), merged via `cn()`. Never restyles internals. */
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
declare function BadgeGroup(props: BadgeGroupProps): React.JSX.Element;
|
|
36
|
+
|
|
37
|
+
/** The library's six semantic tones — available in EVERY variant (subtle · solid · outline). */
|
|
38
|
+
type BadgeColor = SemanticColor;
|
|
39
|
+
type BadgeVariant = "subtle" | "solid" | "outline";
|
|
40
|
+
type BadgeSize = "sm" | "md" | "lg";
|
|
41
|
+
type BadgeShape = "badge" | "pill";
|
|
42
|
+
interface BadgeProps extends Omit<React.ComponentPropsWithoutRef<"span">, "color"> {
|
|
43
|
+
/**
|
|
44
|
+
* Semantic tone — one of the library's six (`neutral`/`brand`/`success`/`warning`/
|
|
45
|
+
* `error`/`info`). Drives fill, text, ring, and dot color, and works in every
|
|
46
|
+
* `variant`. There is no free-form/categorical color (opinionated). @default "neutral"
|
|
47
|
+
*/
|
|
48
|
+
color?: BadgeColor;
|
|
49
|
+
/**
|
|
50
|
+
* Fill style: `subtle` soft tinted surface · `solid` filled · `outline` unfilled card
|
|
51
|
+
* (surface + a 1px inset tone hairline + `shadow-xs`) — at `color="neutral"` that is
|
|
52
|
+
* Untitled UI's "modern" chip, which no longer has a variant of its own. @default "subtle"
|
|
53
|
+
*/
|
|
54
|
+
variant?: BadgeVariant;
|
|
55
|
+
/** Corner treatment: `badge` rounded chip · `pill` fully rounded (Untitled UI's signature shape). @default "badge" */
|
|
56
|
+
shape?: BadgeShape;
|
|
57
|
+
/** Three fixed sizes (`sm` = text-xs · `md` = text-sm, default · `lg` = text-sm with taller py-1 padding). @default "md" */
|
|
58
|
+
size?: BadgeSize;
|
|
59
|
+
/**
|
|
60
|
+
* Leading node — the ONE leading channel. Auto-sized (a bare `<svg>` is capped at 12px) and tinted
|
|
61
|
+
* to the -500 accent, which reaches the node as `currentColor`, so a node that draws from it needs
|
|
62
|
+
* no color of its own. The node keeps its own a11y semantics — decorative nodes hide themselves
|
|
63
|
+
* (`docs/slot-policy.md`). With no `children`, the badge becomes an icon-only square chip
|
|
64
|
+
* (Untitled UI's BadgeIcon).
|
|
65
|
+
*
|
|
66
|
+
* **A status dot is `leading={<Indicator seamless/>}`** and a 16px avatar/flag is
|
|
67
|
+
* `leading={<Avatar size="xxs" src=…/>}`. Both used to be bespoke props (`dot`, `imageSrc`
|
|
68
|
+
* +`imageAlt`) that occupied this same position while bypassing it — three channels for one slot,
|
|
69
|
+
* with a dev-warn to police the contradiction. The caller composes the node and owns its size and
|
|
70
|
+
* semantics (AGENTS.md §4 Slots).
|
|
71
|
+
*/
|
|
72
|
+
leading?: React.ReactNode;
|
|
73
|
+
/** Trailing icon (a `ReactNode`); auto-sized (12px), tinted like `leading`; keeps its own a11y semantics (`docs/slot-policy.md`). Renders before the dismiss button when both are set. */
|
|
74
|
+
trailing?: React.ReactNode;
|
|
75
|
+
/**
|
|
76
|
+
* What the label does when it exceeds the chip's width — see {@link OverflowMode}. Either
|
|
77
|
+
* non-`visible` mode needs a bounded width (a `max-w-*` in `className`, or a constrained flex
|
|
78
|
+
* parent) to have anything to act against; with none, the badge just sizes to its label.
|
|
79
|
+
* When wrapping, the leading dot/icon and the trailing icon/dismiss button align to the
|
|
80
|
+
* **first line**. @default "visible"
|
|
81
|
+
*/
|
|
82
|
+
overflow?: OverflowMode;
|
|
83
|
+
/**
|
|
84
|
+
* Drop the badge's OWN color **and vertical box** so it takes the HOST's instead — for a chip that
|
|
85
|
+
* sits inside another control's `leading`/`trailing` slot (a tab's count, a tag's count). The host
|
|
86
|
+
* already tints its slot per variant/state, so the chip follows by inheritance: `color`/`variant`
|
|
87
|
+
* are ignored and the fill/ring derive from the inherited text color. It also stops emitting
|
|
88
|
+
* `py-*`, so the chip can never be taller than the host's line — instead it floors to a square at
|
|
89
|
+
* that line box (18px at `size="sm"`, 20px at `md`/`lg`), gets `tabular-nums` so a changing count
|
|
90
|
+
* doesn't resize it. The corner is NOT the host's — `shape`'s own radius applies, so a chip in a
|
|
91
|
+
* slot looks like a standalone badge of the same `shape`/`size`. The horizontal SCALE is still the
|
|
92
|
+
* caller's (`size`/`shape` at the call site), but a bare `shape="badge"` chip pads a step tighter
|
|
93
|
+
* (`SEAMLESS_CHIP_PX`) because that is Untitled UI's own tag-count span; `shape="pill"` keeps the
|
|
94
|
+
* standalone padding, which is UUI's tab-count badge.
|
|
95
|
+
* Standalone it just reads as the ambient text color. @default false
|
|
96
|
+
*/
|
|
97
|
+
seamless?: boolean;
|
|
98
|
+
/** When set, renders a trailing dismiss `<button>` that calls this on activate. */
|
|
99
|
+
onDismiss?: () => void;
|
|
100
|
+
/** Accessible label for the dismiss button. Only used when `onDismiss` is set. @default "Dismiss" */
|
|
101
|
+
dismissLabel?: string;
|
|
102
|
+
/** The label. Keep it short (1–3 words). Omit it with `leading` for an icon-only badge. */
|
|
103
|
+
children?: React.ReactNode;
|
|
104
|
+
/** **Layout/spacing only** (margin, alignment, order), merged via `cn()`. Never restyles internals. */
|
|
105
|
+
className?: string;
|
|
106
|
+
}
|
|
107
|
+
declare function Badge(props: BadgeProps): React.JSX.Element;
|
|
108
|
+
|
|
109
|
+
export { Badge, type BadgeColor, BadgeGroup, type BadgeGroupAlign, type BadgeGroupColor, type BadgeGroupProps, type BadgeGroupSize, type BadgeProps, type BadgeShape, type BadgeSize, type BadgeVariant };
|
package/dist/badge.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";export { Badge, BadgeGroup } from './chunk-PWKWNDBS.js';
|
|
2
|
+
import './chunk-CME4DIML.js';
|
|
3
|
+
import './chunk-DWKILXHE.js';
|
|
4
|
+
import './chunk-KNYKWUYX.js';
|
|
5
|
+
import './chunk-52IFGFTL.js';
|
|
6
|
+
import './chunk-24TO7E32.js';
|
|
7
|
+
import './chunk-GCVA3OIV.js';
|
|
8
|
+
import './chunk-ZSNJ6UA3.js';
|
|
9
|
+
//# sourceMappingURL=badge.js.map
|
|
10
|
+
//# sourceMappingURL=badge.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/** Emphasis: `text` is the bare trail (current crumb in brand); `button` gives every
|
|
4
|
+
* crumb a hover chip and paints the current one as a filled chip. */
|
|
5
|
+
type BreadcrumbVariant = "text" | "button";
|
|
6
|
+
/** The glyph between crumbs. */
|
|
7
|
+
type BreadcrumbDivider = "chevron" | "slash";
|
|
8
|
+
interface BreadcrumbItem {
|
|
9
|
+
/** Crumb text. Omit for an icon-only crumb (a home glyph) — then `ariaLabel` is required. */
|
|
10
|
+
label?: React.ReactNode;
|
|
11
|
+
/** Accessible name for the crumb. **Required** for an icon-only crumb (no `label`), and the
|
|
12
|
+
* escape hatch when the composed name reads poorly: slot content is announced (it is real
|
|
13
|
+
* information — see `docs/slot-policy.md`), so `label="Members"` + an `8` chip says
|
|
14
|
+
* "Members 8". Wins over the composed content whenever it is set. */
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
/** Leading node — a home icon, a workspace logo, an `<Avatar size="xxs">`. The caller owns
|
|
17
|
+
* its size and its a11y semantics; a bare `<svg>` auto-sizes to 20px and takes the resting
|
|
18
|
+
* icon tint, one step lighter than the label. */
|
|
19
|
+
leading?: React.ReactNode;
|
|
20
|
+
/** Trailing node — a count `<Badge seamless shape="pill" size="sm">`, a status `<Indicator>`. */
|
|
21
|
+
trailing?: React.ReactNode;
|
|
22
|
+
/** Navigate here: renders the crumb as an `<a>`. Ignored on the last (current) crumb. */
|
|
23
|
+
href?: string;
|
|
24
|
+
/** Click handler. Fires alongside `href` (the analytics case), like `ToastActionConfig`. */
|
|
25
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
26
|
+
/** Render the crumb as THIS element instead — the router escape hatch
|
|
27
|
+
* (`render={<Link to="/settings" />}`), per the house `useRender` doctrine (AGENTS §4).
|
|
28
|
+
* Wins over {@link href}. Ignored on the last (current) crumb. */
|
|
29
|
+
render?: React.ReactElement;
|
|
30
|
+
/** Layout/spacing overrides for THIS crumb only, merged via `cn()`. Never restyles internals. */
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
interface BreadcrumbProps {
|
|
34
|
+
/** The trail, root first. The last entry is the current page. */
|
|
35
|
+
items: readonly BreadcrumbItem[];
|
|
36
|
+
/** Emphasis of the crumbs. @default "text" */
|
|
37
|
+
variant?: BreadcrumbVariant;
|
|
38
|
+
/** Glyph between crumbs. @default "chevron" */
|
|
39
|
+
divider?: BreadcrumbDivider;
|
|
40
|
+
/** Rule above and below the trail (Untitled UI's "text with line"). @default false */
|
|
41
|
+
bordered?: boolean;
|
|
42
|
+
/** Collapse a long trail: keep the first `maxItems - 2` crumbs, a "…" standing in for the rest,
|
|
43
|
+
* and the current crumb. So `maxItems={3}` renders `Home … Team` and `maxItems={4}` renders
|
|
44
|
+
* `Home Settings … Team`. Clicking the "…" expands the trail in place. Must be at least 3;
|
|
45
|
+
* omit for no collapsing. */
|
|
46
|
+
maxItems?: number;
|
|
47
|
+
/** Accessible name for the `<nav>` landmark. @default "Breadcrumb" */
|
|
48
|
+
"aria-label"?: string;
|
|
49
|
+
/** Layout/spacing overrides for the root `<nav>` (margin, width), merged via `cn()` — the ONE
|
|
50
|
+
* class hook, like every other flat control. Per-crumb layout is the item's own `className`. */
|
|
51
|
+
className?: string;
|
|
52
|
+
}
|
|
53
|
+
declare function Breadcrumb(props: BreadcrumbProps): React.JSX.Element | null;
|
|
54
|
+
declare namespace Breadcrumb {
|
|
55
|
+
var displayName: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { Breadcrumb, type BreadcrumbDivider, type BreadcrumbItem, type BreadcrumbProps, type BreadcrumbVariant };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";export { Breadcrumb } from './chunk-F2K7VJUV.js';
|
|
2
|
+
import './chunk-52IFGFTL.js';
|
|
3
|
+
import './chunk-24TO7E32.js';
|
|
4
|
+
import './chunk-GCVA3OIV.js';
|
|
5
|
+
import './chunk-ZSNJ6UA3.js';
|
|
6
|
+
//# sourceMappingURL=breadcrumb.js.map
|
|
7
|
+
//# sourceMappingURL=breadcrumb.js.map
|
package/dist/button.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export { B as Button, a as ButtonProps, b as ButtonSize, c as ButtonVariant } from './Button-Bt7pzM4R.js';
|
|
2
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { TooltipSide } from './tooltip.js';
|
|
5
|
+
import './color-CtSxc1Rh.js';
|
|
6
|
+
import './overflow-Df0h42Oi.js';
|
|
7
|
+
import '@base-ui/react/tooltip';
|
|
8
|
+
|
|
9
|
+
type ButtonUtilityVariant = "secondary" | "tertiary";
|
|
10
|
+
type ButtonUtilitySize = "xs" | "sm";
|
|
11
|
+
interface ButtonUtilityProps extends useRender.ComponentProps<"button"> {
|
|
12
|
+
/** Visual intent (UUI ButtonUtility colors). @default "secondary" */
|
|
13
|
+
variant?: ButtonUtilityVariant;
|
|
14
|
+
/** Compact utility sizes only: `xs` (16px icon) · `sm` (20px icon). @default "sm" */
|
|
15
|
+
size?: ButtonUtilitySize;
|
|
16
|
+
/** The single icon shown inside the button. */
|
|
17
|
+
icon?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Tooltip title shown on hover/focus — doubles as the button's `aria-label`
|
|
20
|
+
* (override with an explicit `aria-label`). Omit for no tooltip, but then an
|
|
21
|
+
* `aria-label` is required.
|
|
22
|
+
*/
|
|
23
|
+
tooltip?: string;
|
|
24
|
+
/** Preferred tooltip placement. @default "top" */
|
|
25
|
+
tooltipSide?: TooltipSide;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Compact icon-only utility button (UUI ButtonUtility) — the dense affordance used
|
|
29
|
+
* inside cards, tags, and pagination. Ships with a built-in dark tooltip that also
|
|
30
|
+
* provides the accessible name.
|
|
31
|
+
*/
|
|
32
|
+
declare function ButtonUtility(props: ButtonUtilityProps): React.JSX.Element;
|
|
33
|
+
|
|
34
|
+
type CloseButtonSize = "xs" | "sm" | "md" | "lg";
|
|
35
|
+
type CloseButtonTheme = "light" | "dark";
|
|
36
|
+
interface CloseButtonProps extends useRender.ComponentProps<"button"> {
|
|
37
|
+
/** Square dismiss sizes: xs 28px · sm 36px · md 40px · lg 44px. @default "sm" */
|
|
38
|
+
size?: CloseButtonSize;
|
|
39
|
+
/**
|
|
40
|
+
* Surface treatment: `light` for normal surfaces (gray icon ladder), `dark`
|
|
41
|
+
* for constant-dark surfaces like banners/scrims (white icon + white/20 wash).
|
|
42
|
+
* @default "light"
|
|
43
|
+
*/
|
|
44
|
+
theme?: CloseButtonTheme;
|
|
45
|
+
/** Accessible name. @default "Close" */
|
|
46
|
+
label?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Square icon-only dismiss button (UUI CloseButton) — the standard close
|
|
50
|
+
* affordance for dialogs, banners, and slideouts. The X glyph is built in.
|
|
51
|
+
*/
|
|
52
|
+
declare function CloseButton(props: CloseButtonProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
53
|
+
|
|
54
|
+
export { ButtonUtility, type ButtonUtilityProps, type ButtonUtilitySize, type ButtonUtilityVariant, CloseButton, type CloseButtonProps, type CloseButtonSize, type CloseButtonTheme };
|
package/dist/button.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";export { Button } from './chunk-W46K56XU.js';
|
|
2
|
+
import './chunk-CME4DIML.js';
|
|
3
|
+
export { CloseButton } from './chunk-MQGD2OUF.js';
|
|
4
|
+
export { ButtonUtility } from './chunk-JVJRHBTD.js';
|
|
5
|
+
import './chunk-DWKILXHE.js';
|
|
6
|
+
import './chunk-KNYKWUYX.js';
|
|
7
|
+
import './chunk-52IFGFTL.js';
|
|
8
|
+
import './chunk-24TO7E32.js';
|
|
9
|
+
import './chunk-ZZA2LUTL.js';
|
|
10
|
+
import './chunk-O4GRKO3I.js';
|
|
11
|
+
import './chunk-GCVA3OIV.js';
|
|
12
|
+
import './chunk-ZSNJ6UA3.js';
|
|
13
|
+
//# sourceMappingURL=button.js.map
|
|
14
|
+
//# sourceMappingURL=button.js.map
|