@assure-one/design-system 1.41.1 → 1.42.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/dist/brand-scope-B7w3-y9E.d.ts +262 -0
- package/dist/{chunk-KUSY7BLL.js → chunk-AF3QYJ24.js} +3 -3
- package/dist/{chunk-KUSY7BLL.js.map → chunk-AF3QYJ24.js.map} +1 -1
- package/dist/{chunk-XV2VSEA5.js → chunk-H53VF62B.js} +14 -10
- package/dist/chunk-H53VF62B.js.map +1 -0
- package/dist/{chunk-NBI7E3VT.js → chunk-M2HMZ2RW.js} +243 -219
- package/dist/chunk-M2HMZ2RW.js.map +1 -0
- package/dist/{chunk-PTI4B2OI.js → chunk-YMRSFVW7.js} +23 -19
- package/dist/chunk-YMRSFVW7.js.map +1 -0
- package/dist/{chunk-X76J4QSJ.js → chunk-YRHRVOLV.js} +4 -4
- package/dist/{chunk-X76J4QSJ.js.map → chunk-YRHRVOLV.js.map} +1 -1
- package/dist/css/components.css +1 -1
- package/dist/css/tokens.css +8 -8
- package/dist/{data-table-view-ep8al7P9.d.ts → data-table-view-BN3GgNdp.d.ts} +186 -2
- package/dist/{design-system-provider-CfD2g2lY.d.ts → design-system-provider-CrBRFQjR.d.ts} +1 -1
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.js +2 -2
- package/dist/index.d.ts +67 -414
- package/dist/index.js +242 -129
- package/dist/index.js.map +1 -1
- package/dist/legacy/index.d.ts +11 -4
- package/dist/legacy/index.js +4 -4
- package/dist/next/index.d.ts +2 -2
- package/dist/{reference-BkDbrPIB.d.ts → reference-B5azRUoi.d.ts} +4 -4
- package/dist/styles.css +1 -1
- package/dist/suite/index.d.ts +14 -3
- package/dist/suite/index.js +4 -4
- package/dist/tokens/index.d.ts +1 -1
- package/dist/tokens/index.js +1 -1
- package/dist/{types-Coqw8iaS.d.ts → types-aBQCboFH.d.ts} +1 -1
- package/docs/components.md +5 -5
- package/docs/components.registry.json +5 -5
- package/package.json +1 -1
- package/dist/brand-scope-BOHId6BY.d.ts +0 -58
- package/dist/chunk-NBI7E3VT.js.map +0 -1
- package/dist/chunk-PTI4B2OI.js.map +0 -1
- package/dist/chunk-XV2VSEA5.js.map +0 -1
package/dist/suite/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { C as ComboboxSize } from '../brand-scope-B7w3-y9E.js';
|
|
5
|
+
export { B as BRAND_PRODUCTS, a as BrandProduct, b as brandLabel } from '../brand-scope-B7w3-y9E.js';
|
|
6
|
+
import { c as ComingSoonMessages } from '../types-aBQCboFH.js';
|
|
7
|
+
import '../vocab-DornLJbW.js';
|
|
8
|
+
import '../system-DfJIVBlJ.js';
|
|
6
9
|
|
|
7
10
|
interface BrandIconProps extends React.SVGAttributes<SVGElement> {
|
|
8
11
|
size?: number;
|
|
@@ -25,8 +28,16 @@ interface ClientSelectProps {
|
|
|
25
28
|
error?: string;
|
|
26
29
|
className?: string;
|
|
27
30
|
placeholder?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Height, padding, font and glyph size from the shared control scale (A1,
|
|
33
|
+
* ADR-013), forwarded to the underlying `Combobox`. Default `md` — today's
|
|
34
|
+
* frozen 36px row, byte for byte.
|
|
35
|
+
*
|
|
36
|
+
* @experimental
|
|
37
|
+
*/
|
|
38
|
+
size?: ComboboxSize | undefined;
|
|
28
39
|
}
|
|
29
|
-
declare function ClientSelect({ clients, value, onChange, name, error, className, placeholder, }: ClientSelectProps): react_jsx_runtime.JSX.Element;
|
|
40
|
+
declare function ClientSelect({ clients, value, onChange, name, error, className, placeholder, size, }: ClientSelectProps): react_jsx_runtime.JSX.Element;
|
|
30
41
|
declare namespace ClientSelect {
|
|
31
42
|
var displayName: string;
|
|
32
43
|
}
|
package/dist/suite/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { AgreementPaneHeading, AgreementViewer, AssureAuditBrandIcon, AssureBooksBrandIcon, AssureProBrandIcon, AssureTaxBrandIcon, BRAND_PRODUCTS, ClientSelect, ComingSoon, Grid, Logo, ProposalAddOn, ProposalBillingTerms, ProposalConsentGate, ProposalCustomPage, ProposalNote, ProposalPackageCard, ProposalPaymentCapture, ProposalPricingSummary, ProposalServiceRow, ProposalSignatureBlock, ProposalSignerList, QUESTION_TYPES, QUESTION_TYPE_CONTRACT_VERSION, Questions, SidebarBrandSwitcher, SidebarBrandSwitcherTile, brandLabel } from '../chunk-
|
|
3
|
-
export { DocumentDetailActions, DocumentDetailBody, DocumentDetailHeader, DocumentDetailMetaRow, DocumentDetailPanel, DocumentDetailRequester, DocumentDetailTitle, DocumentList, DocumentListSection, DocumentRow } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
2
|
+
export { AgreementPaneHeading, AgreementViewer, AssureAuditBrandIcon, AssureBooksBrandIcon, AssureProBrandIcon, AssureTaxBrandIcon, BRAND_PRODUCTS, ClientSelect, ComingSoon, Grid, Logo, ProposalAddOn, ProposalBillingTerms, ProposalConsentGate, ProposalCustomPage, ProposalNote, ProposalPackageCard, ProposalPaymentCapture, ProposalPricingSummary, ProposalServiceRow, ProposalSignatureBlock, ProposalSignerList, QUESTION_TYPES, QUESTION_TYPE_CONTRACT_VERSION, Questions, SidebarBrandSwitcher, SidebarBrandSwitcherTile, brandLabel } from '../chunk-H53VF62B.js';
|
|
3
|
+
export { DocumentDetailActions, DocumentDetailBody, DocumentDetailHeader, DocumentDetailMetaRow, DocumentDetailPanel, DocumentDetailRequester, DocumentDetailTitle, DocumentList, DocumentListSection, DocumentRow } from '../chunk-M2HMZ2RW.js';
|
|
4
|
+
import '../chunk-AF3QYJ24.js';
|
|
5
5
|
import '../chunk-EUHGZA6Q.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-YRHRVOLV.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/tokens/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { C as ColorName, R as ReferenceTokens, b as breakpoints, c as colors, i as iconSizes, l as layout, m as motion, o as overlays, r as radii, a as reference, s as shadows, d as spacing, e as surfaces, t as typography, z as zIndex } from '../reference-
|
|
1
|
+
export { C as ColorName, R as ReferenceTokens, b as breakpoints, c as colors, i as iconSizes, l as layout, m as motion, o as overlays, r as radii, a as reference, s as shadows, d as spacing, e as surfaces, t as typography, z as zIndex } from '../reference-B5azRUoi.js';
|
|
2
2
|
export { S as SystemTokens, s as systemTokens } from '../system-DfJIVBlJ.js';
|
|
3
3
|
export { B as BRAND_THEME_PROPERTIES, a as BrandTheme, b as BrandThemeProperty, c as BrandThemeSeed, d as createBrandTheme } from '../brand-theme-ZYM867Jz.js';
|
package/dist/tokens/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { BRAND_THEME_PROPERTIES, createBrandTheme, systemTokens } from '../chunk-CPOGSNXS.js';
|
|
2
2
|
import '../chunk-EUHGZA6Q.js';
|
|
3
|
-
export { breakpoints, colors, iconSizes, layout, motion, overlays, radii, reference, shadows, spacing, surfaces, typography, zIndex } from '../chunk-
|
|
3
|
+
export { breakpoints, colors, iconSizes, layout, motion, overlays, radii, reference, shadows, spacing, surfaces, typography, zIndex } from '../chunk-YRHRVOLV.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -500,4 +500,4 @@ type DsMessagesOverride = {
|
|
|
500
500
|
[N in DsMessageNamespace]?: Partial<DsMessages[N]>;
|
|
501
501
|
};
|
|
502
502
|
|
|
503
|
-
export type {
|
|
503
|
+
export type { ComboboxMessages as C, DsMessageNamespace as D, ErrorStateMessages as E, FileUploadMessages as F, KeyboardShortcutsMessages as K, PaginationMessages as P, SelectMessages as S, TableMessages as T, DsMessages as a, DsMessagesOverride as b, ComingSoonMessages as c, CommandPaletteMessages as d, ConfirmMessages as e, CopyButtonMessages as f, PhoneFieldMessages as g, SearchInputMessages as h, ToastMessages as i, FieldMessages as j, TableStatesMessages as k, DataTableMessages as l };
|
package/docs/components.md
CHANGED
|
@@ -140,8 +140,8 @@ Controls that carry a value into a form. Every one binds to `Field` through `use
|
|
|
140
140
|
| **PhoneInput** (deprecated)<br>since 0.0.0 | Only in code that already uses it: US-only phone formatting on the `Input` chrome. | New code — `PhoneField` (deprecated, removed in 3.0). | — | [PhoneField](#forms), [Input](#forms) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/phone-input.stories.tsx) |
|
|
141
141
|
| **PhoneCountryInput** (deprecated)<br>parts: `CountrySelect` (deprecated), `CountryFlag` (deprecated)<br>since 1.1.0 | Only in code that already uses it: the pre-PhoneField country `Select` + `tel` input pair; `parsePhoneForEditing` seeds it from a stored E.164 string. | New code — `PhoneField` (its country picker is a `Combobox`; deprecated, removed in 3.0). | — | [PhoneField](#forms), [COUNTRY_CODES](#hooks-utilities) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/phone-country-input.stories.tsx) |
|
|
142
142
|
| **FileUpload**<br>since 0.0.0 | Pick or drop files: accept/multiple/max size, file list with remove, keyboard-focusable input, Field binding. | The upload belongs to a client document request (`DocumentRequestUpload`) or you only show already-uploaded files (`AttachmentChip`, `FileChip`). | `<input type="file">`, `drop-zone div with onDrop` | [DocumentRequestUpload](#forms), [AttachmentChip](#data-display), [FileTypeBadge](#data-display) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/file-upload.stories.tsx) |
|
|
143
|
-
| **DatePicker**<br>since 0.0.0 | One date (or a year in year mode) typed with a mask or picked from a `Calendar` popover; ISO `YYYY-MM-DD` value, `onValueChange`, deterministic `en-US` display
|
|
144
|
-
| **DateRangePicker**<br>since 0.11.0 | A from/to pair in one control; posts `${name}_from` / `${name}_to`. | A single date (`DatePicker`) or two independent dates in a form (two `DatePicker`s in a `Fieldset`). | `two <input type="date">` | [DatePicker](#forms), [Calendar](#forms) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/date-range-picker.stories.tsx) |
|
|
143
|
+
| **DatePicker**<br>since 0.0.0 | One date (or a year in year mode) typed with a mask or picked from a `Calendar` popover; ISO `YYYY-MM-DD` value, `onValueChange`, deterministic `en-US` display, `size`. | A range (`DateRangePicker`) or an always-visible calendar (`Calendar`). | `<input type="date">` | [DateRangePicker](#forms), [Calendar](#forms), [isoToDisplay](#hooks-utilities) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/date-picker.stories.tsx) |
|
|
144
|
+
| **DateRangePicker**<br>since 0.11.0 | A from/to pair in one control; posts `${name}_from` / `${name}_to`; `size`. | A single date (`DatePicker`) or two independent dates in a form (two `DatePicker`s in a `Fieldset`). | `two <input type="date">` | [DatePicker](#forms), [Calendar](#forms) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/date-range-picker.stories.tsx) |
|
|
145
145
|
| **Calendar**<br>since 0.0.0 | An inline month grid (react-day-picker) for choosing a day or range without a popover. | The date belongs in a form field (`DatePicker`, `DateRangePicker`). | — | [DatePicker](#forms), [DateRangePicker](#forms) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/calendar.stories.tsx) |
|
|
146
146
|
| **Checkbox**<br>since 0.0.0 | A boolean or one of several independent choices; `checked` accepts `"indeterminate"` for select-all; native form participation. | The change applies immediately as a setting (`Switch`) or the choices are exclusive (`RadioGroup`). | `<input type="checkbox">` | [Switch](#forms), [RadioGroup](#forms), [DataTable](#data-display) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/checkbox.stories.tsx) |
|
|
147
147
|
| **RadioGroup**<br>parts: `RadioGroupItem`<br>since 0.0.0 | Exclusive choice among a few visible options in a form; wrap in `Fieldset` for the legend. | More than about six options (`Select`) or an immediate view switch (`ToggleGroup`). | `<input type="radio">` | [Fieldset](#forms), [ToggleGroup](#selection), [Select](#selection) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/radio-group.stories.tsx) |
|
|
@@ -170,9 +170,9 @@ Pick one or many from a set: dropdowns, comboboxes, toggle groups, chips and fil
|
|
|
170
170
|
| **Select**<br>parts: `SelectRoot`, `SelectTrigger`, `SelectValue`, `SelectContent`, `SelectItem`, `SelectGroup`, `SelectLabel`, `SelectSeparator`, `SelectScrollUpButton`, `SelectScrollDownButton`<br>since 0.0.0 | One of a short static list in a dropdown: the sealed `Select` takes `options`; the `Select*` parts compose custom items. Empty value is a real empty (no sentinel option), `size`, `classNames`, Field binding. | The user should type to filter, the list is long or async (`Combobox`), several values (`MultiSelect`), or a few options that can all be visible (`RadioGroup`, `ToggleGroup`). | `<select>`, `<option>` | [Combobox](#selection), [MultiSelect](#selection), [ClientSelect](#selection), [TeamMemberSelect](#selection) | — |
|
|
171
171
|
| **Combobox** (experimental)<br>also: `DEFAULT_COMBOBOX_MESSAGES`<br>since unreleased | A searchable pick: one input, a portalled listbox, the `Option<T>` model (`{ value, label }`), async loading and empty messages, single or `multiple`. | A short static list (`Select`) or free text with suggestions that need not match (`Input` + `Popover`). | `<input list> + <datalist>`, `<select> with a search box` | [Select](#selection), [MultiSelect](#selection), [SearchSelect](#selection) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/combobox.stories.tsx) |
|
|
172
172
|
| **MultiSelect** (experimental)<br>since unreleased | Several of many options with search: `Combobox` in `multiple` mode with selected chips. | A handful of options that should all be visible (`MultiSelectField`) or one value (`Combobox`, `Select`). | `<select multiple>` | [Combobox](#selection), [MultiSelectField](#forms), [Chip](#selection) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/multi-select.stories.tsx) |
|
|
173
|
-
| **SearchSelect** (deprecated)<br>since 0.0.0 | Only in code that already uses it: the pre-Combobox searchable select with `{ id, label }` options (contract C-SEARCHSELECT). | New code — `Combobox` with `Option` (deprecated, removed in 3.0; CM-08 rewrites single-mode call sites). | — | [Combobox](#selection), [MultiSelect](#selection) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/search-select.stories.tsx) |
|
|
174
|
-
| **ClientSelect** (`/suite`)<br>since 0.0.0 | Pick one client: searchable name and email rows on the `Combobox` primitive, long names truncated. | Clients fetched per keystroke (`Combobox` with async options) or any other entity (`Select`). | — | [Select](#selection), [TeamMemberSelect](#selection), [Combobox](#selection) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/client-select.stories.tsx) |
|
|
175
|
-
| **TeamMemberSelect** (deprecated) (`/legacy`)<br>since 0.0.0 | Pick an assignee: avatar and name rows on the `Select` primitive, with an unassigned option. | Several assignees (`MultiSelect`) or any other entity (`Select`). | — | [Select](#selection), [ClientSelect](#selection), [DataTableView](#data-display) | [story](https://github.com/Assure-One/design-system/blob/main/src/legacy/team-member-select.stories.tsx) |
|
|
173
|
+
| **SearchSelect** (deprecated)<br>since 0.0.0 | Only in code that already uses it: the pre-Combobox searchable select with `{ id, label }` options (contract C-SEARCHSELECT), `size` (forwarded to `Combobox`). | New code — `Combobox` with `Option` (deprecated, removed in 3.0; CM-08 rewrites single-mode call sites). | — | [Combobox](#selection), [MultiSelect](#selection) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/search-select.stories.tsx) |
|
|
174
|
+
| **ClientSelect** (`/suite`)<br>since 0.0.0 | Pick one client: searchable name and email rows on the `Combobox` primitive, long names truncated, `size` (forwarded to `Combobox`). | Clients fetched per keystroke (`Combobox` with async options) or any other entity (`Select`). | — | [Select](#selection), [TeamMemberSelect](#selection), [Combobox](#selection) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/client-select.stories.tsx) |
|
|
175
|
+
| **TeamMemberSelect** (deprecated) (`/legacy`)<br>since 0.0.0 | Pick an assignee: avatar and name rows on the `Select` primitive, with an unassigned option, `size` (forwarded to `Select`). | Several assignees (`MultiSelect`) or any other entity (`Select`). | — | [Select](#selection), [ClientSelect](#selection), [DataTableView](#data-display) | [story](https://github.com/Assure-One/design-system/blob/main/src/legacy/team-member-select.stories.tsx) |
|
|
176
176
|
| **ToggleGroup**<br>parts: `ToggleGroupItem`<br>since 0.0.0 | A view or mode switch with immediate effect (list/grid, day/week), single or multiple, roving focus. | The choice is a form value (`RadioGroup`, `MultiSelectField`) or navigation between panels (`Tabs`). | `group of <button aria-pressed>` | [Tabs](#navigation), [RadioGroup](#forms), [DocumentSourceFilter](#selection) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/toggle-group.stories.tsx) |
|
|
177
177
|
| **Chip** (experimental)<br>also: `chipVariants`, `resolveChipStyle`<br>since 1.35.0 | A removable, toggleable or clickable token: applied filters, tags, selected values; `variant` × `intent` × `size`, `onRemove`, `pressed`. | A static label (`Badge`), a status (`StatusBadge`) or a file (`FileChip`, `AttachmentChip`). | `<span class="rounded-full …"><button>×</button></span>` | [DismissibleChip](#selection), [Badge](#data-display), [Toolbar](#actions), [MultiSelect](#selection) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/chip.stories.tsx) |
|
|
178
178
|
| **DismissibleChip**<br>since 0.4.0 | Only in code that already uses it: a label with a remove button. | New code — `Chip` with `onRemove` covers it with the shared variants and sizes. | — | [Chip](#selection) | [story](https://github.com/Assure-One/design-system/blob/main/src/primitives/dismissible-chip.stories.tsx) |
|
|
@@ -960,7 +960,7 @@
|
|
|
960
960
|
},
|
|
961
961
|
"DatePicker": {
|
|
962
962
|
"category": "forms",
|
|
963
|
-
"useWhen": "One date (or a year in year mode) typed with a mask or picked from a `Calendar` popover; ISO `YYYY-MM-DD` value, `onValueChange`, deterministic `en-US` display
|
|
963
|
+
"useWhen": "One date (or a year in year mode) typed with a mask or picked from a `Calendar` popover; ISO `YYYY-MM-DD` value, `onValueChange`, deterministic `en-US` display, `size`.",
|
|
964
964
|
"dontUseWhen": "A range (`DateRangePicker`) or an always-visible calendar (`Calendar`).",
|
|
965
965
|
"replacesRawHtml": [
|
|
966
966
|
"<input type=\"date\">"
|
|
@@ -974,7 +974,7 @@
|
|
|
974
974
|
},
|
|
975
975
|
"DateRangePicker": {
|
|
976
976
|
"category": "forms",
|
|
977
|
-
"useWhen": "A from/to pair in one control; posts `${name}_from` / `${name}_to`.",
|
|
977
|
+
"useWhen": "A from/to pair in one control; posts `${name}_from` / `${name}_to`; `size`.",
|
|
978
978
|
"dontUseWhen": "A single date (`DatePicker`) or two independent dates in a form (two `DatePicker`s in a `Fieldset`).",
|
|
979
979
|
"replacesRawHtml": [
|
|
980
980
|
"two <input type=\"date\">"
|
|
@@ -1256,7 +1256,7 @@
|
|
|
1256
1256
|
},
|
|
1257
1257
|
"SearchSelect": {
|
|
1258
1258
|
"category": "selection",
|
|
1259
|
-
"useWhen": "Only in code that already uses it: the pre-Combobox searchable select with `{ id, label }` options (contract C-SEARCHSELECT).",
|
|
1259
|
+
"useWhen": "Only in code that already uses it: the pre-Combobox searchable select with `{ id, label }` options (contract C-SEARCHSELECT), `size` (forwarded to `Combobox`).",
|
|
1260
1260
|
"dontUseWhen": "New code — `Combobox` with `Option` (deprecated, removed in 3.0; CM-08 rewrites single-mode call sites).",
|
|
1261
1261
|
"related": [
|
|
1262
1262
|
"Combobox",
|
|
@@ -1266,7 +1266,7 @@
|
|
|
1266
1266
|
},
|
|
1267
1267
|
"ClientSelect": {
|
|
1268
1268
|
"category": "selection",
|
|
1269
|
-
"useWhen": "Pick one client: searchable name and email rows on the `Combobox` primitive, long names truncated.",
|
|
1269
|
+
"useWhen": "Pick one client: searchable name and email rows on the `Combobox` primitive, long names truncated, `size` (forwarded to `Combobox`).",
|
|
1270
1270
|
"dontUseWhen": "Clients fetched per keystroke (`Combobox` with async options) or any other entity (`Select`).",
|
|
1271
1271
|
"related": [
|
|
1272
1272
|
"Select",
|
|
@@ -1277,7 +1277,7 @@
|
|
|
1277
1277
|
},
|
|
1278
1278
|
"TeamMemberSelect": {
|
|
1279
1279
|
"category": "selection",
|
|
1280
|
-
"useWhen": "Pick an assignee: avatar and name rows on the `Select` primitive, with an unassigned option.",
|
|
1280
|
+
"useWhen": "Pick an assignee: avatar and name rows on the `Select` primitive, with an unassigned option, `size` (forwarded to `Select`).",
|
|
1281
1281
|
"dontUseWhen": "Several assignees (`MultiSelect`) or any other entity (`Select`).",
|
|
1282
1282
|
"related": [
|
|
1283
1283
|
"Select",
|
package/package.json
CHANGED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as React$1 from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Brand scope — ambient product theming.
|
|
6
|
-
*
|
|
7
|
-
* The `brand` color family (bg-brand, hover:bg-brand-hover, bg-brand-bg,
|
|
8
|
-
* border-brand-line, text-fg-on-brand, plus the accent/focus/primary
|
|
9
|
-
* interaction tokens) follows the nearest `[data-brand]` scope and defaults to
|
|
10
|
-
* Pro. Authors type the STATE only; the product comes from the scope. Set it
|
|
11
|
-
* once high in the tree — ideally on the same root as the `.dark` class
|
|
12
|
-
* (`<html>`/`<body>`) — so Radix-portalled surfaces inherit it through the DOM.
|
|
13
|
-
*
|
|
14
|
-
* <html data-brand="tax"> // whole shell renders teal
|
|
15
|
-
* <div {...brandScope("audit")}> // a subtree renders blue
|
|
16
|
-
*
|
|
17
|
-
* For the rarer case of multiple scopes on one page WITH portalled content
|
|
18
|
-
* (a Dialog/Popover that escapes its scoped subtree to document.body), wrap the
|
|
19
|
-
* region in <BrandScope> / <BrandScopeProvider> and have the portalled
|
|
20
|
-
* `*Content` re-stamp `data-brand={useBrandScope()}` on its own element.
|
|
21
|
-
*/
|
|
22
|
-
type BrandProduct = "pro" | "audit" | "books" | "tax";
|
|
23
|
-
/**
|
|
24
|
-
* `data-brand` attribute object to spread on any element (mirrors
|
|
25
|
-
* `serviceToneStyle`). This is the primary API for opting a subtree into a
|
|
26
|
-
* product without naming the product in a utility class.
|
|
27
|
-
*/
|
|
28
|
-
declare function brandScope(product: BrandProduct): {
|
|
29
|
-
"data-brand": BrandProduct;
|
|
30
|
-
};
|
|
31
|
-
/** Every product, in suite order — for switchers and story matrices. */
|
|
32
|
-
declare const BRAND_PRODUCTS: BrandProduct[];
|
|
33
|
-
/** Human label for a product, for switchers and headings. */
|
|
34
|
-
declare const brandLabel: Record<BrandProduct, string>;
|
|
35
|
-
/**
|
|
36
|
-
* Provides the active product to descendants so portalled surfaces can
|
|
37
|
-
* re-stamp `data-brand` on themselves via {@link useBrandScope}. Purely a
|
|
38
|
-
* structural carrier — the visual theming still comes from the `[data-brand]`
|
|
39
|
-
* attribute in the DOM, not from this context.
|
|
40
|
-
*/
|
|
41
|
-
declare function BrandScopeProvider({ product, children, }: {
|
|
42
|
-
product: BrandProduct;
|
|
43
|
-
children: React.ReactNode;
|
|
44
|
-
}): react_jsx_runtime.JSX.Element;
|
|
45
|
-
/** Read the ambient product from the nearest provider (defaults to Pro). */
|
|
46
|
-
declare function useBrandScope(): BrandProduct;
|
|
47
|
-
interface BrandScopeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
48
|
-
/** The product this subtree renders as. */
|
|
49
|
-
product: BrandProduct;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Convenience wrapper that stamps `data-brand` on a `<div>` AND provides the
|
|
53
|
-
* product via context, so a portalled descendant can re-stamp itself. Use
|
|
54
|
-
* `brandScope()` directly when you want the attribute on your own element.
|
|
55
|
-
*/
|
|
56
|
-
declare const BrandScope: React$1.ForwardRefExoticComponent<BrandScopeProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
57
|
-
|
|
58
|
-
export { BRAND_PRODUCTS as B, type BrandProduct as a, brandLabel as b, BrandScope as c, type BrandScopeProps as d, BrandScopeProvider as e, brandScope as f, useBrandScope as u };
|