cetec-design-system 2.3.7 → 3.0.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/{cetec-preset-CZJA5UR0.js → cetec-preset-D23KFUx3.js} +115 -31
- package/dist/cetec-preset-D23KFUx3.js.map +1 -0
- package/dist/icon-metadata.json +447 -178
- package/dist/index.js +1292 -950
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +20 -11
- package/dist/playroom-static.css +8 -0
- package/dist/preset.js +1 -1
- package/dist/specs/color-palette.json +4 -0
- package/dist/specs/conditions.json +12 -0
- package/dist/specs/recipes.json +43 -17
- package/dist/specs/semantic-tokens.json +178 -0
- package/dist/specs/tokens.json +5 -0
- package/dist/sprite.svg +1 -1
- package/dist/sprite.symbol.html +463 -180
- package/dist/styles.css +998 -38
- package/dist/svgs/cheese.svg +1 -0
- package/dist/svgs/collapse-vertical.svg +1 -0
- package/dist/svgs/expand-vertical.svg +1 -0
- package/dist/svgs/magnet.svg +1 -0
- package/dist/svgs/to-date-backward.svg +1 -0
- package/dist/svgs/to-date-forward.svg +1 -0
- package/dist/types/index.d.ts +288 -56
- package/package.json +1 -1
- package/dist/cetec-preset-CZJA5UR0.js.map +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ import { Component } from 'react';
|
|
|
4
4
|
import { ComponentPropsWithRef } from 'react';
|
|
5
5
|
import { ComponentType } from 'react';
|
|
6
6
|
import { ElementType } from 'react';
|
|
7
|
+
import { FormApi } from '@tanstack/react-form';
|
|
8
|
+
import { FormAsyncValidateOrFn } from '@tanstack/react-form';
|
|
9
|
+
import { FormValidateOrFn } from '@tanstack/react-form';
|
|
7
10
|
import { HTMLProps } from 'react';
|
|
8
11
|
import { JSX } from 'react/jsx-runtime';
|
|
9
12
|
import { JSX as JSX_2 } from 'react';
|
|
@@ -12,9 +15,11 @@ import { MouseEvent as MouseEvent_2 } from 'react';
|
|
|
12
15
|
import { Placement } from '@floating-ui/react';
|
|
13
16
|
import { Preset } from '@pandacss/dev';
|
|
14
17
|
import { ReactElement } from 'react';
|
|
18
|
+
import { ReactFormExtendedApi } from '@tanstack/react-form';
|
|
15
19
|
import { ReactNode } from 'react';
|
|
16
20
|
import { Ref } from 'react';
|
|
17
21
|
import { RefObject } from 'react';
|
|
22
|
+
import { useForm } from '@tanstack/react-form';
|
|
18
23
|
|
|
19
24
|
declare type AdvancedPseudos =
|
|
20
25
|
| ":-moz-any()"
|
|
@@ -98,6 +103,8 @@ declare type AttributeSelector = `&${Pseudos | DataAttributes | AriaAttributes}`
|
|
|
98
103
|
* with `defaultValue`. The input uses combobox semantics; arrow keys navigate,
|
|
99
104
|
* Enter selects, and Escape closes the listbox. Supply `aria-label` or
|
|
100
105
|
* `aria-labelledby` when no external label is associated with the input.
|
|
106
|
+
* Selected values render as dismissible chips in both single- and
|
|
107
|
+
* multiple-selection modes.
|
|
101
108
|
*
|
|
102
109
|
* @example
|
|
103
110
|
* ```tsx
|
|
@@ -142,8 +149,8 @@ declare type AutocompleteBaseProps = Omit<BoxProps, keyof AutocompleteVariantPro
|
|
|
142
149
|
/** Creates the visible label for a custom-value option. */
|
|
143
150
|
getCreateOptionLabel?: (inputValue: string) => string;
|
|
144
151
|
/**
|
|
145
|
-
* Maximum selected
|
|
146
|
-
* is collapsed. Negative values and `undefined` show every
|
|
152
|
+
* Maximum selected chips shown while an unfocused multiple Autocomplete
|
|
153
|
+
* is collapsed. Negative values and `undefined` show every chip.
|
|
147
154
|
*/
|
|
148
155
|
limitTags?: number;
|
|
149
156
|
/**
|
|
@@ -228,6 +235,10 @@ export declare type AutocompleteProps<Multiple extends boolean = boolean> = Mult
|
|
|
228
235
|
export declare type AutocompleteValue<Multiple extends boolean = false> = Multiple extends true ? string[] : Multiple extends false ? string | null : string | string[] | null;
|
|
229
236
|
|
|
230
237
|
declare interface AutocompleteVariant {
|
|
238
|
+
/**
|
|
239
|
+
* @default "elevated"
|
|
240
|
+
*/
|
|
241
|
+
layer: "elevated" | "modalFloating"
|
|
231
242
|
/**
|
|
232
243
|
* @default "md"
|
|
233
244
|
*/
|
|
@@ -975,7 +986,7 @@ declare type CodeVariantProps = {
|
|
|
975
986
|
[key in keyof CodeVariant]?: ConditionalValue<CodeVariant[key]> | undefined
|
|
976
987
|
}
|
|
977
988
|
|
|
978
|
-
declare type ColorToken = "transparent" | "current" | "inherit" | "neutral.0" | "neutral.10" | "neutral.20" | "neutral.30" | "neutral.40" | "neutral.50" | "neutral.60" | "neutral.70" | "neutral.80" | "neutral.90" | "neutral.100" | "neutral.110" | "neutralA.10" | "neutralA.20" | "neutralA.30" | "neutralA.40" | "neutralA.50" | "darkNeutral.0" | "darkNeutral.10" | "darkNeutral.20" | "darkNeutral.25" | "darkNeutral.30" | "darkNeutral.35" | "darkNeutral.40" | "darkNeutral.50" | "darkNeutral.60" | "darkNeutral.70" | "darkNeutral.80" | "darkNeutral.90" | "darkNeutral.100" | "darkNeutral.110" | "darkNeutral.120" | "darkNeutralA.10" | "darkNeutralA.20" | "darkNeutralA.25" | "darkNeutralA.30" | "darkNeutralA.35" | "darkNeutralA.40" | "darkNeutralA.50" | "darkNeutralA.-10" | "slate.0" | "slate.1" | "slate.2" | "slate.3" | "slate.4" | "slate.5" | "slate.10" | "slate.20" | "slate.30" | "slate.40" | "slate.50" | "slate.60" | "slate.70" | "slate.80" | "slate.90" | "slate.100" | "slate_inverse.0" | "slate_inverse.1" | "slate_inverse.2" | "slate_inverse.3" | "slate_inverse.4" | "slate_inverse.5" | "slate_inverse.10" | "slate_inverse.20" | "slate_inverse.30" | "slate_inverse.40" | "slate_inverse.50" | "slate_inverse.60" | "slate_inverse.70" | "slate_inverse.80" | "slate_inverse.90" | "slate_inverse.100" | "gold.1" | "gold.2" | "gold.3" | "gold.4" | "gold.5" | "gold.10" | "gold.15" | "gold.20" | "gold.30" | "gold.40" | "gold.50" | "gold.60" | "gold.70" | "gold.80" | "gold.90" | "blue.1" | "blue.2" | "blue.3" | "blue.4" | "blue.5" | "blue.10" | "blue.20" | "blue.30" | "blue.40" | "blue.50" | "blue.60" | "blue.70" | "blue.80" | "blue.90" | "green.1" | "green.2" | "green.3" | "green.4" | "green.5" | "green.10" | "green.20" | "green.30" | "green.40" | "green.50" | "green.60" | "green.70" | "green.80" | "green.90" | "yellow.1" | "yellow.2" | "yellow.3" | "yellow.4" | "yellow.5" | "yellow.10" | "yellow.20" | "yellow.30" | "yellow.40" | "yellow.50" | "yellow.60" | "yellow.70" | "yellow.80" | "yellow.90" | "red.1" | "red.2" | "red.3" | "red.4" | "red.5" | "red.10" | "red.20" | "red.30" | "red.40" | "red.50" | "red.60" | "red.70" | "red.80" | "red.90" | "tomato.5" | "tomato.10" | "tomato.20" | "tomato.30" | "tomato.40" | "tomato.50" | "tomato.60" | "tomato.70" | "tomato.80" | "tomato.90" | "tan.5" | "tan.10" | "tan.20" | "tan.30" | "tan.40" | "tan.50" | "tan.60" | "tan.70" | "tan.80" | "tan.90" | "orange.5" | "orange.10" | "orange.20" | "orange.30" | "orange.40" | "orange.50" | "orange.60" | "orange.70" | "orange.80" | "orange.90" | "pear.5" | "pear.10" | "pear.20" | "pear.30" | "pear.40" | "pear.50" | "pear.60" | "pear.70" | "pear.80" | "pear.90" | "grass.5" | "grass.10" | "grass.20" | "grass.30" | "grass.40" | "grass.50" | "grass.60" | "grass.70" | "grass.80" | "grass.90" | "mint.5" | "mint.10" | "mint.20" | "mint.30" | "mint.40" | "mint.50" | "mint.60" | "mint.70" | "mint.80" | "mint.90" | "cyan.5" | "cyan.10" | "cyan.20" | "cyan.30" | "cyan.40" | "cyan.50" | "cyan.60" | "cyan.70" | "cyan.80" | "cyan.90" | "indigo.5" | "indigo.10" | "indigo.20" | "indigo.30" | "indigo.40" | "indigo.50" | "indigo.60" | "indigo.70" | "indigo.80" | "indigo.90" | "purple.5" | "purple.10" | "purple.20" | "purple.30" | "purple.40" | "purple.50" | "purple.60" | "purple.70" | "purple.80" | "purple.90" | "violet.5" | "violet.10" | "violet.20" | "violet.30" | "violet.40" | "violet.50" | "violet.60" | "violet.70" | "violet.80" | "violet.90" | "pink.5" | "pink.10" | "pink.20" | "pink.30" | "pink.40" | "pink.50" | "pink.60" | "pink.70" | "pink.80" | "pink.90" | "rose.5" | "rose.10" | "rose.20" | "rose.30" | "rose.40" | "rose.50" | "rose.60" | "rose.70" | "rose.80" | "rose.90" | "magenta.5" | "magenta.10" | "magenta.20" | "magenta.30" | "magenta.40" | "magenta.50" | "magenta.60" | "magenta.70" | "magenta.80" | "magenta.90" | "shadow.8" | "shadow.16" | "shadow.24" | "shadow.32" | "shadow.40" | "shadow.48" | "shadow.56" | "shadow.64" | "bg.disabled" | "bg.neutral" | "bg.neutral.hovered" | "bg.neutral.pressed" | "bg.neutral.bold" | "bg.neutral.bold.hovered" | "bg.neutral.bold.pressed" | "bg.neutral.boldest" | "bg.neutral.subtle" | "bg.neutral.subtle.hovered" | "bg.neutral.subtle.pressed" | "bg.neutral.inverse" | "bg.neutral.inverse.subtle" | "bg.neutral.inverse.subtle.hovered" | "bg.neutral.solid" | "bg.selected" | "bg.selected.hovered" | "bg.selected.pressed" | "bg.selected.bold" | "bg.selected.bold.hovered" | "bg.selected.bold.pressed" | "bg.success" | "bg.success.hovered" | "bg.success.pressed" | "bg.success.bold" | "bg.success.bold.hovered" | "bg.success.bold.pressed" | "bg.warning" | "bg.warning.hovered" | "bg.warning.pressed" | "bg.warning.bold" | "bg.warning.bold.hovered" | "bg.warning.bold.pressed" | "bg.danger" | "bg.danger.hovered" | "bg.danger.pressed" | "bg.danger.bold" | "bg.danger.bold.hovered" | "bg.danger.bold.pressed" | "bg.info" | "bg.info.hovered" | "bg.info.pressed" | "bg.info.bold" | "bg.info.bold.hovered" | "bg.info.bold.pressed" | "bg.cta" | "bg.cta.hovered" | "bg.cta.pressed" | "bg.cta.bold" | "bg.cta.bold.hovered" | "bg.cta.bold.pressed" | "bg.input" | "bg.input.hovered" | "bg.input.pressed" | "bg.accent.neutral" | "bg.accent.neutral.subtle" | "bg.accent.neutral.subtlest" | "bg.accent.neutral.bold" | "bg.accent.gold" | "bg.accent.gold.subtle" | "bg.accent.gold.subtlest" | "bg.accent.gold.bold" | "bg.accent.blue" | "bg.accent.blue.subtle" | "bg.accent.blue.subtlest" | "bg.accent.blue.bold" | "bg.accent.green" | "bg.accent.green.subtle" | "bg.accent.green.subtlest" | "bg.accent.green.bold" | "bg.accent.yellow" | "bg.accent.yellow.subtle" | "bg.accent.yellow.subtlest" | "bg.accent.yellow.bold" | "bg.accent.red" | "bg.accent.red.subtle" | "bg.accent.red.subtlest" | "bg.accent.red.bold" | "bg.accent.tomato" | "bg.accent.tomato.subtle" | "bg.accent.tomato.subtlest" | "bg.accent.tomato.bold" | "bg.accent.tan" | "bg.accent.tan.subtle" | "bg.accent.tan.subtlest" | "bg.accent.tan.bold" | "bg.accent.orange" | "bg.accent.orange.subtle" | "bg.accent.orange.subtlest" | "bg.accent.orange.bold" | "bg.accent.pear" | "bg.accent.pear.subtle" | "bg.accent.pear.subtlest" | "bg.accent.pear.bold" | "bg.accent.grass" | "bg.accent.grass.subtle" | "bg.accent.grass.subtlest" | "bg.accent.grass.bold" | "bg.accent.mint" | "bg.accent.mint.subtle" | "bg.accent.mint.subtlest" | "bg.accent.mint.bold" | "bg.accent.cyan" | "bg.accent.cyan.subtle" | "bg.accent.cyan.subtlest" | "bg.accent.cyan.bold" | "bg.accent.indigo" | "bg.accent.indigo.subtle" | "bg.accent.indigo.subtlest" | "bg.accent.indigo.bold" | "bg.accent.purple" | "bg.accent.purple.subtle" | "bg.accent.purple.subtlest" | "bg.accent.purple.bold" | "bg.accent.violet" | "bg.accent.violet.subtle" | "bg.accent.violet.subtlest" | "bg.accent.violet.bold" | "bg.accent.pink" | "bg.accent.pink.subtle" | "bg.accent.pink.subtlest" | "bg.accent.pink.bold" | "bg.accent.rose" | "bg.accent.rose.subtle" | "bg.accent.rose.subtlest" | "bg.accent.rose.bold" | "bg.accent.magenta" | "bg.accent.magenta.subtle" | "bg.accent.magenta.subtlest" | "bg.accent.magenta.bold" | "bg.slate.0" | "bg.slate.1" | "bg.slate.2" | "bg.slate.3" | "bg.slate.4" | "bg.slate.5" | "bg.slate.10" | "bg.slate.20" | "bg.slate.30" | "bg.slate.40" | "bg.slate.50" | "bg.slate.60" | "bg.slate.70" | "bg.slate.80" | "bg.slate.90" | "bg.slate.100" | "blanket" | "blanket.danger" | "blanket.selected" | "border" | "border.bold" | "border.inverse" | "border.inverse.focused" | "border.disabled" | "border.focused" | "border.focused.inverse" | "border.selected" | "border.input" | "border.success" | "border.warning" | "border.danger" | "border.info" | "icon" | "icon.subtle" | "icon.subtlest" | "icon.inverse" | "icon.selected" | "icon.disabled" | "icon.decorative" | "icon.decorative.hovered" | "icon.decorative.inverse" | "icon.decorative.inverse.hovered" | "icon.decorative.subtle" | "icon.success" | "icon.warning" | "icon.warning.inverse" | "icon.danger" | "icon.danger.inverse" | "icon.info" | "icon.cta" | "icon.cta.hovered" | "link" | "link.pressed" | "surface" | "surface.hovered" | "surface.pressed" | "surface.raised" | "surface.raised.hovered" | "surface.raised.pressed" | "surface.overlay" | "surface.overlay.hovered" | "surface.overlay.pressed" | "surface.sunken" | "surface.selected" | "surface.selected.hovered" | "surface.selected.pressed" | "text" | "text.subtle" | "text.subtlest" | "text.bold" | "text.inverse" | "text.inverse.subtlest" | "text.selected" | "text.placeholder" | "text.disabled" | "text.success" | "text.success.inverse" | "text.warning" | "text.warning.inverse" | "text.danger" | "text.danger.inverse" | "text.info" | "text.info.inverse" | "text.cta" | "text.cta.inverse" | "text.accent.neutral" | "text.accent.neutral.bold" | "text.accent.gold" | "text.accent.gold.bold" | "text.accent.blue" | "text.accent.blue.bold" | "text.accent.green" | "text.accent.green.bold" | "text.accent.yellow" | "text.accent.yellow.bold" | "text.accent.red" | "text.accent.red.bold" | "text.accent.tomato" | "text.accent.tomato.bold" | "text.accent.tan" | "text.accent.tan.bold" | "text.accent.orange" | "text.accent.orange.bold" | "text.accent.pear" | "text.accent.pear.bold" | "text.accent.grass" | "text.accent.grass.bold" | "text.accent.mint" | "text.accent.mint.bold" | "text.accent.cyan" | "text.accent.cyan.bold" | "text.accent.indigo" | "text.accent.indigo.bold" | "text.accent.purple" | "text.accent.purple.bold" | "text.accent.violet" | "text.accent.violet.bold" | "text.accent.pink" | "text.accent.pink.bold" | "text.accent.rose" | "text.accent.rose.bold" | "text.accent.magenta" | "text.accent.magenta.bold" | "brand.slate" | "brand.gold" | "success.lighter" | "success.light" | "success.default" | "success.dark" | "success.darker" | "warning.lighter" | "warning.light" | "warning.default" | "warning.dark" | "warning.darker" | "error.lighter" | "error.light" | "error.default" | "error.dark" | "error.darker" | "info.lighter" | "info.light" | "info.default" | "info.dark" | "info.darker" | "shadow.raised.1" | "shadow.raised.2" | "shadow.elevated.1" | "shadow.elevated.2" | "shadow.elevated.3" | "shadow.overlay.1" | "shadow.overlay.2" | "shadow.overlay.3" | "shadow.overlay.4" | "shadow.overlay.5" | "shadow.overflow.1" | "shadow.overflow.2" | "shadow.overflow.3" | "utility.shadowColor" | "utility.headingColor" | "utility.textColor" | "utility.borderColor" | "colorPalette" | "colorPalette.0" | "colorPalette.10" | "colorPalette.20" | "colorPalette.30" | "colorPalette.40" | "colorPalette.50" | "colorPalette.60" | "colorPalette.70" | "colorPalette.80" | "colorPalette.90" | "colorPalette.100" | "colorPalette.110" | "colorPalette.25" | "colorPalette.35" | "colorPalette.120" | "colorPalette.-10" | "colorPalette.1" | "colorPalette.2" | "colorPalette.3" | "colorPalette.4" | "colorPalette.5" | "colorPalette.15" | "colorPalette.8" | "colorPalette.16" | "colorPalette.24" | "colorPalette.32" | "colorPalette.48" | "colorPalette.56" | "colorPalette.64" | "colorPalette.disabled" | "colorPalette.neutral" | "colorPalette.neutral.hovered" | "colorPalette.hovered" | "colorPalette.neutral.pressed" | "colorPalette.pressed" | "colorPalette.neutral.bold" | "colorPalette.bold" | "colorPalette.neutral.bold.hovered" | "colorPalette.bold.hovered" | "colorPalette.neutral.bold.pressed" | "colorPalette.bold.pressed" | "colorPalette.neutral.boldest" | "colorPalette.boldest" | "colorPalette.neutral.subtle" | "colorPalette.subtle" | "colorPalette.neutral.subtle.hovered" | "colorPalette.subtle.hovered" | "colorPalette.neutral.subtle.pressed" | "colorPalette.subtle.pressed" | "colorPalette.neutral.inverse" | "colorPalette.inverse" | "colorPalette.neutral.inverse.subtle" | "colorPalette.inverse.subtle" | "colorPalette.neutral.inverse.subtle.hovered" | "colorPalette.inverse.subtle.hovered" | "colorPalette.neutral.solid" | "colorPalette.solid" | "colorPalette.selected" | "colorPalette.selected.hovered" | "colorPalette.selected.pressed" | "colorPalette.selected.bold" | "colorPalette.selected.bold.hovered" | "colorPalette.selected.bold.pressed" | "colorPalette.success" | "colorPalette.success.hovered" | "colorPalette.success.pressed" | "colorPalette.success.bold" | "colorPalette.success.bold.hovered" | "colorPalette.success.bold.pressed" | "colorPalette.warning" | "colorPalette.warning.hovered" | "colorPalette.warning.pressed" | "colorPalette.warning.bold" | "colorPalette.warning.bold.hovered" | "colorPalette.warning.bold.pressed" | "colorPalette.danger" | "colorPalette.danger.hovered" | "colorPalette.danger.pressed" | "colorPalette.danger.bold" | "colorPalette.danger.bold.hovered" | "colorPalette.danger.bold.pressed" | "colorPalette.info" | "colorPalette.info.hovered" | "colorPalette.info.pressed" | "colorPalette.info.bold" | "colorPalette.info.bold.hovered" | "colorPalette.info.bold.pressed" | "colorPalette.cta" | "colorPalette.cta.hovered" | "colorPalette.cta.pressed" | "colorPalette.cta.bold" | "colorPalette.cta.bold.hovered" | "colorPalette.cta.bold.pressed" | "colorPalette.input" | "colorPalette.input.hovered" | "colorPalette.input.pressed" | "colorPalette.accent.neutral" | "colorPalette.accent.neutral.subtle" | "colorPalette.accent.neutral.subtlest" | "colorPalette.neutral.subtlest" | "colorPalette.subtlest" | "colorPalette.accent.neutral.bold" | "colorPalette.accent.gold" | "colorPalette.gold" | "colorPalette.accent.gold.subtle" | "colorPalette.gold.subtle" | "colorPalette.accent.gold.subtlest" | "colorPalette.gold.subtlest" | "colorPalette.accent.gold.bold" | "colorPalette.gold.bold" | "colorPalette.accent.blue" | "colorPalette.blue" | "colorPalette.accent.blue.subtle" | "colorPalette.blue.subtle" | "colorPalette.accent.blue.subtlest" | "colorPalette.blue.subtlest" | "colorPalette.accent.blue.bold" | "colorPalette.blue.bold" | "colorPalette.accent.green" | "colorPalette.green" | "colorPalette.accent.green.subtle" | "colorPalette.green.subtle" | "colorPalette.accent.green.subtlest" | "colorPalette.green.subtlest" | "colorPalette.accent.green.bold" | "colorPalette.green.bold" | "colorPalette.accent.yellow" | "colorPalette.yellow" | "colorPalette.accent.yellow.subtle" | "colorPalette.yellow.subtle" | "colorPalette.accent.yellow.subtlest" | "colorPalette.yellow.subtlest" | "colorPalette.accent.yellow.bold" | "colorPalette.yellow.bold" | "colorPalette.accent.red" | "colorPalette.red" | "colorPalette.accent.red.subtle" | "colorPalette.red.subtle" | "colorPalette.accent.red.subtlest" | "colorPalette.red.subtlest" | "colorPalette.accent.red.bold" | "colorPalette.red.bold" | "colorPalette.accent.tomato" | "colorPalette.tomato" | "colorPalette.accent.tomato.subtle" | "colorPalette.tomato.subtle" | "colorPalette.accent.tomato.subtlest" | "colorPalette.tomato.subtlest" | "colorPalette.accent.tomato.bold" | "colorPalette.tomato.bold" | "colorPalette.accent.tan" | "colorPalette.tan" | "colorPalette.accent.tan.subtle" | "colorPalette.tan.subtle" | "colorPalette.accent.tan.subtlest" | "colorPalette.tan.subtlest" | "colorPalette.accent.tan.bold" | "colorPalette.tan.bold" | "colorPalette.accent.orange" | "colorPalette.orange" | "colorPalette.accent.orange.subtle" | "colorPalette.orange.subtle" | "colorPalette.accent.orange.subtlest" | "colorPalette.orange.subtlest" | "colorPalette.accent.orange.bold" | "colorPalette.orange.bold" | "colorPalette.accent.pear" | "colorPalette.pear" | "colorPalette.accent.pear.subtle" | "colorPalette.pear.subtle" | "colorPalette.accent.pear.subtlest" | "colorPalette.pear.subtlest" | "colorPalette.accent.pear.bold" | "colorPalette.pear.bold" | "colorPalette.accent.grass" | "colorPalette.grass" | "colorPalette.accent.grass.subtle" | "colorPalette.grass.subtle" | "colorPalette.accent.grass.subtlest" | "colorPalette.grass.subtlest" | "colorPalette.accent.grass.bold" | "colorPalette.grass.bold" | "colorPalette.accent.mint" | "colorPalette.mint" | "colorPalette.accent.mint.subtle" | "colorPalette.mint.subtle" | "colorPalette.accent.mint.subtlest" | "colorPalette.mint.subtlest" | "colorPalette.accent.mint.bold" | "colorPalette.mint.bold" | "colorPalette.accent.cyan" | "colorPalette.cyan" | "colorPalette.accent.cyan.subtle" | "colorPalette.cyan.subtle" | "colorPalette.accent.cyan.subtlest" | "colorPalette.cyan.subtlest" | "colorPalette.accent.cyan.bold" | "colorPalette.cyan.bold" | "colorPalette.accent.indigo" | "colorPalette.indigo" | "colorPalette.accent.indigo.subtle" | "colorPalette.indigo.subtle" | "colorPalette.accent.indigo.subtlest" | "colorPalette.indigo.subtlest" | "colorPalette.accent.indigo.bold" | "colorPalette.indigo.bold" | "colorPalette.accent.purple" | "colorPalette.purple" | "colorPalette.accent.purple.subtle" | "colorPalette.purple.subtle" | "colorPalette.accent.purple.subtlest" | "colorPalette.purple.subtlest" | "colorPalette.accent.purple.bold" | "colorPalette.purple.bold" | "colorPalette.accent.violet" | "colorPalette.violet" | "colorPalette.accent.violet.subtle" | "colorPalette.violet.subtle" | "colorPalette.accent.violet.subtlest" | "colorPalette.violet.subtlest" | "colorPalette.accent.violet.bold" | "colorPalette.violet.bold" | "colorPalette.accent.pink" | "colorPalette.pink" | "colorPalette.accent.pink.subtle" | "colorPalette.pink.subtle" | "colorPalette.accent.pink.subtlest" | "colorPalette.pink.subtlest" | "colorPalette.accent.pink.bold" | "colorPalette.pink.bold" | "colorPalette.accent.rose" | "colorPalette.rose" | "colorPalette.accent.rose.subtle" | "colorPalette.rose.subtle" | "colorPalette.accent.rose.subtlest" | "colorPalette.rose.subtlest" | "colorPalette.accent.rose.bold" | "colorPalette.rose.bold" | "colorPalette.accent.magenta" | "colorPalette.magenta" | "colorPalette.accent.magenta.subtle" | "colorPalette.magenta.subtle" | "colorPalette.accent.magenta.subtlest" | "colorPalette.magenta.subtlest" | "colorPalette.accent.magenta.bold" | "colorPalette.magenta.bold" | "colorPalette.slate.0" | "colorPalette.slate.1" | "colorPalette.slate.2" | "colorPalette.slate.3" | "colorPalette.slate.4" | "colorPalette.slate.5" | "colorPalette.slate.10" | "colorPalette.slate.20" | "colorPalette.slate.30" | "colorPalette.slate.40" | "colorPalette.slate.50" | "colorPalette.slate.60" | "colorPalette.slate.70" | "colorPalette.slate.80" | "colorPalette.slate.90" | "colorPalette.slate.100" | "colorPalette.inverse.focused" | "colorPalette.focused" | "colorPalette.focused.inverse" | "colorPalette.decorative" | "colorPalette.decorative.hovered" | "colorPalette.decorative.inverse" | "colorPalette.decorative.inverse.hovered" | "colorPalette.inverse.hovered" | "colorPalette.decorative.subtle" | "colorPalette.warning.inverse" | "colorPalette.danger.inverse" | "colorPalette.raised" | "colorPalette.raised.hovered" | "colorPalette.raised.pressed" | "colorPalette.overlay" | "colorPalette.overlay.hovered" | "colorPalette.overlay.pressed" | "colorPalette.sunken" | "colorPalette.inverse.subtlest" | "colorPalette.placeholder" | "colorPalette.success.inverse" | "colorPalette.info.inverse" | "colorPalette.cta.inverse" | "colorPalette.slate" | "colorPalette.lighter" | "colorPalette.light" | "colorPalette.default" | "colorPalette.dark" | "colorPalette.darker" | "colorPalette.raised.1" | "colorPalette.raised.2" | "colorPalette.elevated.1" | "colorPalette.elevated.2" | "colorPalette.elevated.3" | "colorPalette.overlay.1" | "colorPalette.overlay.2" | "colorPalette.overlay.3" | "colorPalette.overlay.4" | "colorPalette.overlay.5" | "colorPalette.overflow.1" | "colorPalette.overflow.2" | "colorPalette.overflow.3" | "colorPalette.shadowColor" | "colorPalette.headingColor" | "colorPalette.textColor" | "colorPalette.borderColor"
|
|
989
|
+
declare type ColorToken = "transparent" | "current" | "inherit" | "neutral.0" | "neutral.10" | "neutral.20" | "neutral.30" | "neutral.40" | "neutral.50" | "neutral.60" | "neutral.70" | "neutral.80" | "neutral.90" | "neutral.100" | "neutral.110" | "neutralA.10" | "neutralA.20" | "neutralA.30" | "neutralA.40" | "neutralA.50" | "darkNeutral.0" | "darkNeutral.10" | "darkNeutral.20" | "darkNeutral.25" | "darkNeutral.30" | "darkNeutral.35" | "darkNeutral.40" | "darkNeutral.50" | "darkNeutral.60" | "darkNeutral.70" | "darkNeutral.80" | "darkNeutral.90" | "darkNeutral.100" | "darkNeutral.110" | "darkNeutral.120" | "darkNeutralA.10" | "darkNeutralA.20" | "darkNeutralA.25" | "darkNeutralA.30" | "darkNeutralA.35" | "darkNeutralA.40" | "darkNeutralA.50" | "darkNeutralA.-10" | "slate.0" | "slate.1" | "slate.2" | "slate.3" | "slate.4" | "slate.5" | "slate.10" | "slate.20" | "slate.30" | "slate.40" | "slate.50" | "slate.60" | "slate.70" | "slate.80" | "slate.90" | "slate.100" | "slate_inverse.0" | "slate_inverse.1" | "slate_inverse.2" | "slate_inverse.3" | "slate_inverse.4" | "slate_inverse.5" | "slate_inverse.10" | "slate_inverse.20" | "slate_inverse.30" | "slate_inverse.40" | "slate_inverse.50" | "slate_inverse.60" | "slate_inverse.70" | "slate_inverse.80" | "slate_inverse.90" | "slate_inverse.100" | "gold.1" | "gold.2" | "gold.3" | "gold.4" | "gold.5" | "gold.10" | "gold.15" | "gold.20" | "gold.30" | "gold.40" | "gold.50" | "gold.60" | "gold.70" | "gold.80" | "gold.90" | "blue.1" | "blue.2" | "blue.3" | "blue.4" | "blue.5" | "blue.10" | "blue.20" | "blue.30" | "blue.40" | "blue.50" | "blue.60" | "blue.70" | "blue.80" | "blue.90" | "green.1" | "green.2" | "green.3" | "green.4" | "green.5" | "green.10" | "green.20" | "green.30" | "green.40" | "green.50" | "green.60" | "green.70" | "green.80" | "green.90" | "yellow.1" | "yellow.2" | "yellow.3" | "yellow.4" | "yellow.5" | "yellow.10" | "yellow.20" | "yellow.30" | "yellow.40" | "yellow.50" | "yellow.60" | "yellow.70" | "yellow.80" | "yellow.90" | "red.1" | "red.2" | "red.3" | "red.4" | "red.5" | "red.10" | "red.20" | "red.30" | "red.40" | "red.50" | "red.60" | "red.70" | "red.80" | "red.90" | "tomato.5" | "tomato.10" | "tomato.20" | "tomato.30" | "tomato.40" | "tomato.50" | "tomato.60" | "tomato.70" | "tomato.80" | "tomato.90" | "tan.5" | "tan.10" | "tan.20" | "tan.30" | "tan.40" | "tan.50" | "tan.60" | "tan.70" | "tan.80" | "tan.90" | "orange.5" | "orange.10" | "orange.20" | "orange.30" | "orange.40" | "orange.50" | "orange.60" | "orange.70" | "orange.80" | "orange.90" | "pear.5" | "pear.10" | "pear.20" | "pear.30" | "pear.40" | "pear.50" | "pear.60" | "pear.70" | "pear.80" | "pear.90" | "grass.5" | "grass.10" | "grass.20" | "grass.30" | "grass.40" | "grass.50" | "grass.60" | "grass.70" | "grass.80" | "grass.90" | "mint.5" | "mint.10" | "mint.20" | "mint.30" | "mint.40" | "mint.50" | "mint.60" | "mint.70" | "mint.80" | "mint.90" | "cyan.5" | "cyan.10" | "cyan.20" | "cyan.30" | "cyan.40" | "cyan.50" | "cyan.60" | "cyan.70" | "cyan.80" | "cyan.90" | "indigo.5" | "indigo.10" | "indigo.20" | "indigo.30" | "indigo.40" | "indigo.50" | "indigo.60" | "indigo.70" | "indigo.80" | "indigo.90" | "purple.5" | "purple.10" | "purple.20" | "purple.30" | "purple.40" | "purple.50" | "purple.60" | "purple.70" | "purple.80" | "purple.90" | "violet.5" | "violet.10" | "violet.20" | "violet.30" | "violet.40" | "violet.50" | "violet.60" | "violet.70" | "violet.80" | "violet.90" | "pink.5" | "pink.10" | "pink.20" | "pink.30" | "pink.40" | "pink.50" | "pink.60" | "pink.70" | "pink.80" | "pink.90" | "rose.5" | "rose.10" | "rose.20" | "rose.30" | "rose.40" | "rose.50" | "rose.60" | "rose.70" | "rose.80" | "rose.90" | "magenta.5" | "magenta.10" | "magenta.20" | "magenta.30" | "magenta.40" | "magenta.50" | "magenta.60" | "magenta.70" | "magenta.80" | "magenta.90" | "shadow.8" | "shadow.16" | "shadow.24" | "shadow.32" | "shadow.40" | "shadow.48" | "shadow.56" | "shadow.64" | "bg.disabled" | "bg.neutral" | "bg.neutral.hovered" | "bg.neutral.pressed" | "bg.neutral.bold" | "bg.neutral.bold.hovered" | "bg.neutral.bold.pressed" | "bg.neutral.boldest" | "bg.neutral.subtle" | "bg.neutral.subtle.hovered" | "bg.neutral.subtle.pressed" | "bg.neutral.inverse" | "bg.neutral.inverse.subtle" | "bg.neutral.inverse.subtle.hovered" | "bg.neutral.solid" | "bg.selected" | "bg.selected.hovered" | "bg.selected.pressed" | "bg.selected.bold" | "bg.selected.bold.hovered" | "bg.selected.bold.pressed" | "bg.success" | "bg.success.hovered" | "bg.success.pressed" | "bg.success.bold" | "bg.success.bold.hovered" | "bg.success.bold.pressed" | "bg.success.subtle" | "bg.success.subtle.hovered" | "bg.success.subtle.pressed" | "bg.warning" | "bg.warning.hovered" | "bg.warning.pressed" | "bg.warning.bold" | "bg.warning.bold.hovered" | "bg.warning.bold.pressed" | "bg.warning.subtle" | "bg.warning.subtle.hovered" | "bg.warning.subtle.pressed" | "bg.danger" | "bg.danger.hovered" | "bg.danger.pressed" | "bg.danger.bold" | "bg.danger.bold.hovered" | "bg.danger.bold.pressed" | "bg.danger.subtle" | "bg.danger.subtle.hovered" | "bg.danger.subtle.pressed" | "bg.info" | "bg.info.hovered" | "bg.info.pressed" | "bg.info.bold" | "bg.info.bold.hovered" | "bg.info.bold.pressed" | "bg.info.subtle" | "bg.info.subtle.hovered" | "bg.info.subtle.pressed" | "bg.cta" | "bg.cta.hovered" | "bg.cta.pressed" | "bg.cta.bold" | "bg.cta.bold.hovered" | "bg.cta.bold.pressed" | "bg.input" | "bg.input.hovered" | "bg.input.pressed" | "bg.accent.neutral" | "bg.accent.neutral.subtle" | "bg.accent.neutral.subtlest" | "bg.accent.neutral.bold" | "bg.accent.gold" | "bg.accent.gold.subtle" | "bg.accent.gold.subtlest" | "bg.accent.gold.bold" | "bg.accent.blue" | "bg.accent.blue.subtle" | "bg.accent.blue.subtlest" | "bg.accent.blue.bold" | "bg.accent.green" | "bg.accent.green.subtle" | "bg.accent.green.subtlest" | "bg.accent.green.bold" | "bg.accent.yellow" | "bg.accent.yellow.subtle" | "bg.accent.yellow.subtlest" | "bg.accent.yellow.bold" | "bg.accent.red" | "bg.accent.red.subtle" | "bg.accent.red.subtlest" | "bg.accent.red.bold" | "bg.accent.tomato" | "bg.accent.tomato.subtle" | "bg.accent.tomato.subtlest" | "bg.accent.tomato.bold" | "bg.accent.tan" | "bg.accent.tan.subtle" | "bg.accent.tan.subtlest" | "bg.accent.tan.bold" | "bg.accent.orange" | "bg.accent.orange.subtle" | "bg.accent.orange.subtlest" | "bg.accent.orange.bold" | "bg.accent.pear" | "bg.accent.pear.subtle" | "bg.accent.pear.subtlest" | "bg.accent.pear.bold" | "bg.accent.grass" | "bg.accent.grass.subtle" | "bg.accent.grass.subtlest" | "bg.accent.grass.bold" | "bg.accent.mint" | "bg.accent.mint.subtle" | "bg.accent.mint.subtlest" | "bg.accent.mint.bold" | "bg.accent.cyan" | "bg.accent.cyan.subtle" | "bg.accent.cyan.subtlest" | "bg.accent.cyan.bold" | "bg.accent.indigo" | "bg.accent.indigo.subtle" | "bg.accent.indigo.subtlest" | "bg.accent.indigo.bold" | "bg.accent.purple" | "bg.accent.purple.subtle" | "bg.accent.purple.subtlest" | "bg.accent.purple.bold" | "bg.accent.violet" | "bg.accent.violet.subtle" | "bg.accent.violet.subtlest" | "bg.accent.violet.bold" | "bg.accent.pink" | "bg.accent.pink.subtle" | "bg.accent.pink.subtlest" | "bg.accent.pink.bold" | "bg.accent.rose" | "bg.accent.rose.subtle" | "bg.accent.rose.subtlest" | "bg.accent.rose.bold" | "bg.accent.magenta" | "bg.accent.magenta.subtle" | "bg.accent.magenta.subtlest" | "bg.accent.magenta.bold" | "bg.slate.0" | "bg.slate.1" | "bg.slate.2" | "bg.slate.3" | "bg.slate.4" | "bg.slate.5" | "bg.slate.10" | "bg.slate.20" | "bg.slate.30" | "bg.slate.40" | "bg.slate.50" | "bg.slate.60" | "bg.slate.70" | "bg.slate.80" | "bg.slate.90" | "bg.slate.100" | "blanket" | "blanket.danger" | "blanket.selected" | "border" | "border.bold" | "border.inverse" | "border.inverse.focused" | "border.disabled" | "border.focused" | "border.focused.inverse" | "border.selected" | "border.input" | "border.success" | "border.warning" | "border.danger" | "border.info" | "icon" | "icon.subtle" | "icon.subtlest" | "icon.inverse" | "icon.selected" | "icon.disabled" | "icon.decorative" | "icon.decorative.hovered" | "icon.decorative.inverse" | "icon.decorative.inverse.hovered" | "icon.decorative.subtle" | "icon.success" | "icon.warning" | "icon.warning.inverse" | "icon.danger" | "icon.danger.inverse" | "icon.info" | "icon.cta" | "icon.cta.hovered" | "link" | "link.pressed" | "surface" | "surface.hovered" | "surface.pressed" | "surface.raised" | "surface.raised.hovered" | "surface.raised.pressed" | "surface.overlay" | "surface.overlay.hovered" | "surface.overlay.pressed" | "surface.sunken" | "surface.selected" | "surface.selected.hovered" | "surface.selected.pressed" | "text" | "text.subtle" | "text.subtlest" | "text.bold" | "text.inverse" | "text.inverse.subtlest" | "text.selected" | "text.placeholder" | "text.disabled" | "text.success" | "text.success.inverse" | "text.warning" | "text.warning.inverse" | "text.danger" | "text.danger.inverse" | "text.info" | "text.info.inverse" | "text.cta" | "text.cta.inverse" | "text.accent.neutral" | "text.accent.neutral.bold" | "text.accent.gold" | "text.accent.gold.bold" | "text.accent.blue" | "text.accent.blue.bold" | "text.accent.green" | "text.accent.green.bold" | "text.accent.yellow" | "text.accent.yellow.bold" | "text.accent.red" | "text.accent.red.bold" | "text.accent.tomato" | "text.accent.tomato.bold" | "text.accent.tan" | "text.accent.tan.bold" | "text.accent.orange" | "text.accent.orange.bold" | "text.accent.pear" | "text.accent.pear.bold" | "text.accent.grass" | "text.accent.grass.bold" | "text.accent.mint" | "text.accent.mint.bold" | "text.accent.cyan" | "text.accent.cyan.bold" | "text.accent.indigo" | "text.accent.indigo.bold" | "text.accent.purple" | "text.accent.purple.bold" | "text.accent.violet" | "text.accent.violet.bold" | "text.accent.pink" | "text.accent.pink.bold" | "text.accent.rose" | "text.accent.rose.bold" | "text.accent.magenta" | "text.accent.magenta.bold" | "brand.slate" | "brand.gold" | "success.lighter" | "success.light" | "success.default" | "success.dark" | "success.darker" | "warning.lighter" | "warning.light" | "warning.default" | "warning.dark" | "warning.darker" | "error.lighter" | "error.light" | "error.default" | "error.dark" | "error.darker" | "info.lighter" | "info.light" | "info.default" | "info.dark" | "info.darker" | "shadow.raised.1" | "shadow.raised.2" | "shadow.elevated.1" | "shadow.elevated.2" | "shadow.elevated.3" | "shadow.overlay.1" | "shadow.overlay.2" | "shadow.overlay.3" | "shadow.overlay.4" | "shadow.overlay.5" | "shadow.overflow.1" | "shadow.overflow.2" | "shadow.overflow.3" | "utility.shadowColor" | "utility.headingColor" | "utility.textColor" | "utility.borderColor" | "colorPalette" | "colorPalette.0" | "colorPalette.10" | "colorPalette.20" | "colorPalette.30" | "colorPalette.40" | "colorPalette.50" | "colorPalette.60" | "colorPalette.70" | "colorPalette.80" | "colorPalette.90" | "colorPalette.100" | "colorPalette.110" | "colorPalette.25" | "colorPalette.35" | "colorPalette.120" | "colorPalette.-10" | "colorPalette.1" | "colorPalette.2" | "colorPalette.3" | "colorPalette.4" | "colorPalette.5" | "colorPalette.15" | "colorPalette.8" | "colorPalette.16" | "colorPalette.24" | "colorPalette.32" | "colorPalette.48" | "colorPalette.56" | "colorPalette.64" | "colorPalette.disabled" | "colorPalette.neutral" | "colorPalette.neutral.hovered" | "colorPalette.hovered" | "colorPalette.neutral.pressed" | "colorPalette.pressed" | "colorPalette.neutral.bold" | "colorPalette.bold" | "colorPalette.neutral.bold.hovered" | "colorPalette.bold.hovered" | "colorPalette.neutral.bold.pressed" | "colorPalette.bold.pressed" | "colorPalette.neutral.boldest" | "colorPalette.boldest" | "colorPalette.neutral.subtle" | "colorPalette.subtle" | "colorPalette.neutral.subtle.hovered" | "colorPalette.subtle.hovered" | "colorPalette.neutral.subtle.pressed" | "colorPalette.subtle.pressed" | "colorPalette.neutral.inverse" | "colorPalette.inverse" | "colorPalette.neutral.inverse.subtle" | "colorPalette.inverse.subtle" | "colorPalette.neutral.inverse.subtle.hovered" | "colorPalette.inverse.subtle.hovered" | "colorPalette.neutral.solid" | "colorPalette.solid" | "colorPalette.selected" | "colorPalette.selected.hovered" | "colorPalette.selected.pressed" | "colorPalette.selected.bold" | "colorPalette.selected.bold.hovered" | "colorPalette.selected.bold.pressed" | "colorPalette.success" | "colorPalette.success.hovered" | "colorPalette.success.pressed" | "colorPalette.success.bold" | "colorPalette.success.bold.hovered" | "colorPalette.success.bold.pressed" | "colorPalette.success.subtle" | "colorPalette.success.subtle.hovered" | "colorPalette.success.subtle.pressed" | "colorPalette.warning" | "colorPalette.warning.hovered" | "colorPalette.warning.pressed" | "colorPalette.warning.bold" | "colorPalette.warning.bold.hovered" | "colorPalette.warning.bold.pressed" | "colorPalette.warning.subtle" | "colorPalette.warning.subtle.hovered" | "colorPalette.warning.subtle.pressed" | "colorPalette.danger" | "colorPalette.danger.hovered" | "colorPalette.danger.pressed" | "colorPalette.danger.bold" | "colorPalette.danger.bold.hovered" | "colorPalette.danger.bold.pressed" | "colorPalette.danger.subtle" | "colorPalette.danger.subtle.hovered" | "colorPalette.danger.subtle.pressed" | "colorPalette.info" | "colorPalette.info.hovered" | "colorPalette.info.pressed" | "colorPalette.info.bold" | "colorPalette.info.bold.hovered" | "colorPalette.info.bold.pressed" | "colorPalette.info.subtle" | "colorPalette.info.subtle.hovered" | "colorPalette.info.subtle.pressed" | "colorPalette.cta" | "colorPalette.cta.hovered" | "colorPalette.cta.pressed" | "colorPalette.cta.bold" | "colorPalette.cta.bold.hovered" | "colorPalette.cta.bold.pressed" | "colorPalette.input" | "colorPalette.input.hovered" | "colorPalette.input.pressed" | "colorPalette.accent.neutral" | "colorPalette.accent.neutral.subtle" | "colorPalette.accent.neutral.subtlest" | "colorPalette.neutral.subtlest" | "colorPalette.subtlest" | "colorPalette.accent.neutral.bold" | "colorPalette.accent.gold" | "colorPalette.gold" | "colorPalette.accent.gold.subtle" | "colorPalette.gold.subtle" | "colorPalette.accent.gold.subtlest" | "colorPalette.gold.subtlest" | "colorPalette.accent.gold.bold" | "colorPalette.gold.bold" | "colorPalette.accent.blue" | "colorPalette.blue" | "colorPalette.accent.blue.subtle" | "colorPalette.blue.subtle" | "colorPalette.accent.blue.subtlest" | "colorPalette.blue.subtlest" | "colorPalette.accent.blue.bold" | "colorPalette.blue.bold" | "colorPalette.accent.green" | "colorPalette.green" | "colorPalette.accent.green.subtle" | "colorPalette.green.subtle" | "colorPalette.accent.green.subtlest" | "colorPalette.green.subtlest" | "colorPalette.accent.green.bold" | "colorPalette.green.bold" | "colorPalette.accent.yellow" | "colorPalette.yellow" | "colorPalette.accent.yellow.subtle" | "colorPalette.yellow.subtle" | "colorPalette.accent.yellow.subtlest" | "colorPalette.yellow.subtlest" | "colorPalette.accent.yellow.bold" | "colorPalette.yellow.bold" | "colorPalette.accent.red" | "colorPalette.red" | "colorPalette.accent.red.subtle" | "colorPalette.red.subtle" | "colorPalette.accent.red.subtlest" | "colorPalette.red.subtlest" | "colorPalette.accent.red.bold" | "colorPalette.red.bold" | "colorPalette.accent.tomato" | "colorPalette.tomato" | "colorPalette.accent.tomato.subtle" | "colorPalette.tomato.subtle" | "colorPalette.accent.tomato.subtlest" | "colorPalette.tomato.subtlest" | "colorPalette.accent.tomato.bold" | "colorPalette.tomato.bold" | "colorPalette.accent.tan" | "colorPalette.tan" | "colorPalette.accent.tan.subtle" | "colorPalette.tan.subtle" | "colorPalette.accent.tan.subtlest" | "colorPalette.tan.subtlest" | "colorPalette.accent.tan.bold" | "colorPalette.tan.bold" | "colorPalette.accent.orange" | "colorPalette.orange" | "colorPalette.accent.orange.subtle" | "colorPalette.orange.subtle" | "colorPalette.accent.orange.subtlest" | "colorPalette.orange.subtlest" | "colorPalette.accent.orange.bold" | "colorPalette.orange.bold" | "colorPalette.accent.pear" | "colorPalette.pear" | "colorPalette.accent.pear.subtle" | "colorPalette.pear.subtle" | "colorPalette.accent.pear.subtlest" | "colorPalette.pear.subtlest" | "colorPalette.accent.pear.bold" | "colorPalette.pear.bold" | "colorPalette.accent.grass" | "colorPalette.grass" | "colorPalette.accent.grass.subtle" | "colorPalette.grass.subtle" | "colorPalette.accent.grass.subtlest" | "colorPalette.grass.subtlest" | "colorPalette.accent.grass.bold" | "colorPalette.grass.bold" | "colorPalette.accent.mint" | "colorPalette.mint" | "colorPalette.accent.mint.subtle" | "colorPalette.mint.subtle" | "colorPalette.accent.mint.subtlest" | "colorPalette.mint.subtlest" | "colorPalette.accent.mint.bold" | "colorPalette.mint.bold" | "colorPalette.accent.cyan" | "colorPalette.cyan" | "colorPalette.accent.cyan.subtle" | "colorPalette.cyan.subtle" | "colorPalette.accent.cyan.subtlest" | "colorPalette.cyan.subtlest" | "colorPalette.accent.cyan.bold" | "colorPalette.cyan.bold" | "colorPalette.accent.indigo" | "colorPalette.indigo" | "colorPalette.accent.indigo.subtle" | "colorPalette.indigo.subtle" | "colorPalette.accent.indigo.subtlest" | "colorPalette.indigo.subtlest" | "colorPalette.accent.indigo.bold" | "colorPalette.indigo.bold" | "colorPalette.accent.purple" | "colorPalette.purple" | "colorPalette.accent.purple.subtle" | "colorPalette.purple.subtle" | "colorPalette.accent.purple.subtlest" | "colorPalette.purple.subtlest" | "colorPalette.accent.purple.bold" | "colorPalette.purple.bold" | "colorPalette.accent.violet" | "colorPalette.violet" | "colorPalette.accent.violet.subtle" | "colorPalette.violet.subtle" | "colorPalette.accent.violet.subtlest" | "colorPalette.violet.subtlest" | "colorPalette.accent.violet.bold" | "colorPalette.violet.bold" | "colorPalette.accent.pink" | "colorPalette.pink" | "colorPalette.accent.pink.subtle" | "colorPalette.pink.subtle" | "colorPalette.accent.pink.subtlest" | "colorPalette.pink.subtlest" | "colorPalette.accent.pink.bold" | "colorPalette.pink.bold" | "colorPalette.accent.rose" | "colorPalette.rose" | "colorPalette.accent.rose.subtle" | "colorPalette.rose.subtle" | "colorPalette.accent.rose.subtlest" | "colorPalette.rose.subtlest" | "colorPalette.accent.rose.bold" | "colorPalette.rose.bold" | "colorPalette.accent.magenta" | "colorPalette.magenta" | "colorPalette.accent.magenta.subtle" | "colorPalette.magenta.subtle" | "colorPalette.accent.magenta.subtlest" | "colorPalette.magenta.subtlest" | "colorPalette.accent.magenta.bold" | "colorPalette.magenta.bold" | "colorPalette.slate.0" | "colorPalette.slate.1" | "colorPalette.slate.2" | "colorPalette.slate.3" | "colorPalette.slate.4" | "colorPalette.slate.5" | "colorPalette.slate.10" | "colorPalette.slate.20" | "colorPalette.slate.30" | "colorPalette.slate.40" | "colorPalette.slate.50" | "colorPalette.slate.60" | "colorPalette.slate.70" | "colorPalette.slate.80" | "colorPalette.slate.90" | "colorPalette.slate.100" | "colorPalette.inverse.focused" | "colorPalette.focused" | "colorPalette.focused.inverse" | "colorPalette.decorative" | "colorPalette.decorative.hovered" | "colorPalette.decorative.inverse" | "colorPalette.decorative.inverse.hovered" | "colorPalette.inverse.hovered" | "colorPalette.decorative.subtle" | "colorPalette.warning.inverse" | "colorPalette.danger.inverse" | "colorPalette.raised" | "colorPalette.raised.hovered" | "colorPalette.raised.pressed" | "colorPalette.overlay" | "colorPalette.overlay.hovered" | "colorPalette.overlay.pressed" | "colorPalette.sunken" | "colorPalette.inverse.subtlest" | "colorPalette.placeholder" | "colorPalette.success.inverse" | "colorPalette.info.inverse" | "colorPalette.cta.inverse" | "colorPalette.slate" | "colorPalette.lighter" | "colorPalette.light" | "colorPalette.default" | "colorPalette.dark" | "colorPalette.darker" | "colorPalette.raised.1" | "colorPalette.raised.2" | "colorPalette.elevated.1" | "colorPalette.elevated.2" | "colorPalette.elevated.3" | "colorPalette.overlay.1" | "colorPalette.overlay.2" | "colorPalette.overlay.3" | "colorPalette.overlay.4" | "colorPalette.overlay.5" | "colorPalette.overflow.1" | "colorPalette.overflow.2" | "colorPalette.overflow.3" | "colorPalette.shadowColor" | "colorPalette.headingColor" | "colorPalette.textColor" | "colorPalette.borderColor"
|
|
979
990
|
|
|
980
991
|
declare type ComponentProps<T extends ElementType> = T extends ComponentType<infer P> | Component<infer P>
|
|
981
992
|
? JSX_2.LibraryManagedAttributes<T, P>
|
|
@@ -1213,6 +1224,8 @@ declare interface Conditions {
|
|
|
1213
1224
|
"_deleted": string
|
|
1214
1225
|
/** `&:is([aria-collapsed=true], [data-collapsed=true], [data-state="collapsed"])` */
|
|
1215
1226
|
"_collapsed": string
|
|
1227
|
+
/** `&[data-new=true]` */
|
|
1228
|
+
"_new": string
|
|
1216
1229
|
/** `&[data-utility=true]` */
|
|
1217
1230
|
"_utility": string
|
|
1218
1231
|
/** `&:is([data-error=true])` */
|
|
@@ -1317,6 +1330,86 @@ declare interface Conditions {
|
|
|
1317
1330
|
"base": string
|
|
1318
1331
|
}
|
|
1319
1332
|
|
|
1333
|
+
/**
|
|
1334
|
+
* Renders a confirmation alert dialog with cancel and confirm actions.
|
|
1335
|
+
*
|
|
1336
|
+
* Dismiss paths (Cancel, Escape, overlay, close button) call
|
|
1337
|
+
* `onOpenChange(false)` only. They do not invoke `onConfirm`. Call
|
|
1338
|
+
* `onOpenChange(false)` from `onConfirm` when the action completes.
|
|
1339
|
+
*
|
|
1340
|
+
* For async confirms, catch errors and clear `confirmLoading` in `finally`.
|
|
1341
|
+
* This component does not swallow rejections from `onConfirm`.
|
|
1342
|
+
*
|
|
1343
|
+
* @example
|
|
1344
|
+
* ```tsx
|
|
1345
|
+
* <ConfirmationModal
|
|
1346
|
+
* open={open}
|
|
1347
|
+
* onOpenChange={setOpen}
|
|
1348
|
+
* title="Delete item"
|
|
1349
|
+
* description="This action cannot be undone."
|
|
1350
|
+
* confirmLabel="Delete"
|
|
1351
|
+
* type="delete"
|
|
1352
|
+
* confirmLoading={confirmLoading}
|
|
1353
|
+
* onConfirm={async () => {
|
|
1354
|
+
* setConfirmLoading(true);
|
|
1355
|
+
* try {
|
|
1356
|
+
* await deleteItem();
|
|
1357
|
+
* setOpen(false);
|
|
1358
|
+
* } finally {
|
|
1359
|
+
* setConfirmLoading(false);
|
|
1360
|
+
* }
|
|
1361
|
+
* }}
|
|
1362
|
+
* />
|
|
1363
|
+
* ```
|
|
1364
|
+
*/
|
|
1365
|
+
export declare const ConfirmationModal: (props: ConfirmationModalProps) => JSX.Element;
|
|
1366
|
+
|
|
1367
|
+
/** Props for {@link ConfirmationModal}, a non-form confirm/cancel dialog. */
|
|
1368
|
+
export declare type ConfirmationModalProps = {
|
|
1369
|
+
/** Controlled dialog state. */
|
|
1370
|
+
open: boolean;
|
|
1371
|
+
/** Called when the dialog requests an open-state change. */
|
|
1372
|
+
onOpenChange: (open: boolean) => void;
|
|
1373
|
+
/** Alert dialog title rendered in {@link ModalHeader}. */
|
|
1374
|
+
title: string;
|
|
1375
|
+
/** Supporting message describing the action or consequence. */
|
|
1376
|
+
description: string;
|
|
1377
|
+
/** Label for the confirm action button. */
|
|
1378
|
+
confirmLabel: string;
|
|
1379
|
+
/** Label for the cancel button. @default 'Cancel' */
|
|
1380
|
+
cancelLabel?: string;
|
|
1381
|
+
/**
|
|
1382
|
+
* Visual treatment for the confirm action.
|
|
1383
|
+
* @default 'default'
|
|
1384
|
+
*/
|
|
1385
|
+
type?: ConfirmationModalType;
|
|
1386
|
+
/**
|
|
1387
|
+
* Called when the user activates the confirm button. Async work, error
|
|
1388
|
+
* handling, and `confirmLoading` are consumer-owned — catch rejections and
|
|
1389
|
+
* clear loading in `finally` so the button does not stay stuck.
|
|
1390
|
+
*/
|
|
1391
|
+
onConfirm: () => void | Promise<void>;
|
|
1392
|
+
/** Shows a loading state on the confirm button. */
|
|
1393
|
+
confirmLoading?: boolean;
|
|
1394
|
+
/** Disables the confirm button. */
|
|
1395
|
+
confirmDisabled?: boolean;
|
|
1396
|
+
/**
|
|
1397
|
+
* Prevents overlay clicks from closing the dialog.
|
|
1398
|
+
* Defaults to `false` for `default` and `true` for `delete`.
|
|
1399
|
+
*/
|
|
1400
|
+
preventOverlayClose?: boolean;
|
|
1401
|
+
/**
|
|
1402
|
+
* Shows the header close button.
|
|
1403
|
+
* Defaults to `true` for `default` and `false` for `delete`.
|
|
1404
|
+
*/
|
|
1405
|
+
showCloseButton?: boolean;
|
|
1406
|
+
/** Recipe size forwarded to {@link ModalWrapper}. @default 'sm' */
|
|
1407
|
+
size?: ModalVariantProps['size'];
|
|
1408
|
+
};
|
|
1409
|
+
|
|
1410
|
+
/** Visual intent for {@link ConfirmationModal} footer actions. */
|
|
1411
|
+
export declare type ConfirmationModalType = 'default' | 'delete';
|
|
1412
|
+
|
|
1320
1413
|
/** Key of a Cetec container-size token. */
|
|
1321
1414
|
declare type ContainerSizeKey = keyof typeof containerSizes;
|
|
1322
1415
|
|
|
@@ -2319,6 +2412,8 @@ declare type FontToken = "heading" | "body" | "mono"
|
|
|
2319
2412
|
|
|
2320
2413
|
declare type FontWeightToken = "light" | "normal" | "medium" | "bold" | "black"
|
|
2321
2414
|
|
|
2415
|
+
export { FormApi }
|
|
2416
|
+
|
|
2322
2417
|
/**
|
|
2323
2418
|
* Groups a label, control, help text, and validation message into one field.
|
|
2324
2419
|
*
|
|
@@ -2590,7 +2685,6 @@ declare type IconConfigContextValue = {
|
|
|
2590
2685
|
spritePath: string;
|
|
2591
2686
|
};
|
|
2592
2687
|
|
|
2593
|
-
/** Runtime catalog of icon names accepted by `Icon`. */
|
|
2594
2688
|
export declare const IconNames: {
|
|
2595
2689
|
readonly 'aa-placeholder': "aa-placeholder";
|
|
2596
2690
|
readonly alarm: "alarm";
|
|
@@ -2655,6 +2749,7 @@ export declare const IconNames: {
|
|
|
2655
2749
|
readonly 'checkbox-focus': "checkbox-focus";
|
|
2656
2750
|
readonly 'checkbox-indeterminate': "checkbox-indeterminate";
|
|
2657
2751
|
readonly checkbox: "checkbox";
|
|
2752
|
+
readonly cheese: "cheese";
|
|
2658
2753
|
readonly 'circle-change': "circle-change";
|
|
2659
2754
|
readonly 'circle-check': "circle-check";
|
|
2660
2755
|
readonly circle: "circle";
|
|
@@ -2665,6 +2760,7 @@ export declare const IconNames: {
|
|
|
2665
2760
|
readonly clock: "clock";
|
|
2666
2761
|
readonly 'cloud-synced': "cloud-synced";
|
|
2667
2762
|
readonly code: "code";
|
|
2763
|
+
readonly 'collapse-vertical': "collapse-vertical";
|
|
2668
2764
|
readonly color: "color";
|
|
2669
2765
|
readonly compass: "compass";
|
|
2670
2766
|
readonly computer: "computer";
|
|
@@ -2694,6 +2790,7 @@ export declare const IconNames: {
|
|
|
2694
2790
|
readonly eraser: "eraser";
|
|
2695
2791
|
readonly error: "error";
|
|
2696
2792
|
readonly 'event-list': "event-list";
|
|
2793
|
+
readonly 'expand-vertical': "expand-vertical";
|
|
2697
2794
|
readonly export: "export";
|
|
2698
2795
|
readonly extension: "extension";
|
|
2699
2796
|
readonly 'eye-slash': "eye-slash";
|
|
@@ -2761,6 +2858,7 @@ export declare const IconNames: {
|
|
|
2761
2858
|
readonly 'list-numbers': "list-numbers";
|
|
2762
2859
|
readonly 'lock-open': "lock-open";
|
|
2763
2860
|
readonly lock: "lock";
|
|
2861
|
+
readonly magnet: "magnet";
|
|
2764
2862
|
readonly 'map-pin': "map-pin";
|
|
2765
2863
|
readonly map: "map";
|
|
2766
2864
|
readonly 'mark-unread': "mark-unread";
|
|
@@ -2870,6 +2968,8 @@ export declare const IconNames: {
|
|
|
2870
2968
|
readonly textbox: "textbox";
|
|
2871
2969
|
readonly 'time-add': "time-add";
|
|
2872
2970
|
readonly timer: "timer";
|
|
2971
|
+
readonly 'to-date-backward': "to-date-backward";
|
|
2972
|
+
readonly 'to-date-forward': "to-date-forward";
|
|
2873
2973
|
readonly toolbox: "toolbox";
|
|
2874
2974
|
readonly tools: "tools";
|
|
2875
2975
|
readonly trash: "trash";
|
|
@@ -2969,6 +3069,7 @@ declare type IconNamesList =
|
|
|
2969
3069
|
| 'checkbox-focus'
|
|
2970
3070
|
| 'checkbox-indeterminate'
|
|
2971
3071
|
| 'checkbox'
|
|
3072
|
+
| 'cheese'
|
|
2972
3073
|
| 'circle-change'
|
|
2973
3074
|
| 'circle-check'
|
|
2974
3075
|
| 'circle'
|
|
@@ -2979,6 +3080,7 @@ declare type IconNamesList =
|
|
|
2979
3080
|
| 'clock'
|
|
2980
3081
|
| 'cloud-synced'
|
|
2981
3082
|
| 'code'
|
|
3083
|
+
| 'collapse-vertical'
|
|
2982
3084
|
| 'color'
|
|
2983
3085
|
| 'compass'
|
|
2984
3086
|
| 'computer'
|
|
@@ -3008,6 +3110,7 @@ declare type IconNamesList =
|
|
|
3008
3110
|
| 'eraser'
|
|
3009
3111
|
| 'error'
|
|
3010
3112
|
| 'event-list'
|
|
3113
|
+
| 'expand-vertical'
|
|
3011
3114
|
| 'export'
|
|
3012
3115
|
| 'extension'
|
|
3013
3116
|
| 'eye-slash'
|
|
@@ -3075,6 +3178,7 @@ declare type IconNamesList =
|
|
|
3075
3178
|
| 'list-numbers'
|
|
3076
3179
|
| 'lock-open'
|
|
3077
3180
|
| 'lock'
|
|
3181
|
+
| 'magnet'
|
|
3078
3182
|
| 'map-pin'
|
|
3079
3183
|
| 'map'
|
|
3080
3184
|
| 'mark-unread'
|
|
@@ -3184,6 +3288,8 @@ declare type IconNamesList =
|
|
|
3184
3288
|
| 'textbox'
|
|
3185
3289
|
| 'time-add'
|
|
3186
3290
|
| 'timer'
|
|
3291
|
+
| 'to-date-backward'
|
|
3292
|
+
| 'to-date-forward'
|
|
3187
3293
|
| 'toolbox'
|
|
3188
3294
|
| 'tools'
|
|
3189
3295
|
| 'trash'
|
|
@@ -3351,6 +3457,7 @@ declare interface LabelVariant {
|
|
|
3351
3457
|
bold: boolean
|
|
3352
3458
|
italic: boolean
|
|
3353
3459
|
underline: boolean
|
|
3460
|
+
dashedUnderline: boolean
|
|
3354
3461
|
truncate: boolean
|
|
3355
3462
|
allCaps: boolean
|
|
3356
3463
|
size: "10" | "12" | "14" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "72" | "80" | "96"
|
|
@@ -3416,11 +3523,11 @@ declare interface LinkVariant {
|
|
|
3416
3523
|
bold: boolean
|
|
3417
3524
|
italic: boolean
|
|
3418
3525
|
underline: boolean
|
|
3526
|
+
dashedUnderline: boolean
|
|
3419
3527
|
truncate: boolean
|
|
3420
3528
|
allCaps: boolean
|
|
3421
3529
|
size: "10" | "12" | "14" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "72" | "80" | "96"
|
|
3422
3530
|
weight: "light" | "normal" | "medium" | "bold" | "black"
|
|
3423
|
-
_disabled: boolean
|
|
3424
3531
|
}
|
|
3425
3532
|
|
|
3426
3533
|
declare type LinkVariantProps = {
|
|
@@ -3582,6 +3689,16 @@ export declare type ListItemProps = Omit<BoxProps, keyof ListItemVariantProps |
|
|
|
3582
3689
|
iconBeforeFill?: IconProps['fill'];
|
|
3583
3690
|
/** Fill token for `iconAfter`. */
|
|
3584
3691
|
iconAfterFill?: IconProps['fill'];
|
|
3692
|
+
/**
|
|
3693
|
+
* Internal record primary key rendered as `data-row-id` on the item root.
|
|
3694
|
+
* It targets one row in a test and identifies which record an interaction
|
|
3695
|
+
* applied to.
|
|
3696
|
+
*
|
|
3697
|
+
* It must never be a row index, a composite value, or a customer-facing
|
|
3698
|
+
* identifier such as an order number or part number. It is unrelated to
|
|
3699
|
+
* React's `key`.
|
|
3700
|
+
*/
|
|
3701
|
+
rowId?: string;
|
|
3585
3702
|
};
|
|
3586
3703
|
|
|
3587
3704
|
declare interface ListItemVariant {
|
|
@@ -3919,6 +4036,10 @@ declare type MenuRootContextValue = {
|
|
|
3919
4036
|
declare type MenuTriggerInteraction = 'click' | 'hover' | 'focus' | 'click-and-hover';
|
|
3920
4037
|
|
|
3921
4038
|
declare interface MenuVariant {
|
|
4039
|
+
/**
|
|
4040
|
+
* @default "elevated"
|
|
4041
|
+
*/
|
|
4042
|
+
layer: "elevated" | "modalFloating"
|
|
3922
4043
|
/**
|
|
3923
4044
|
* @default "compact"
|
|
3924
4045
|
*/
|
|
@@ -3931,27 +4052,47 @@ declare type MenuVariantProps = {
|
|
|
3931
4052
|
}
|
|
3932
4053
|
|
|
3933
4054
|
/**
|
|
3934
|
-
* Renders a
|
|
3935
|
-
*
|
|
4055
|
+
* Renders a form modal with a title, TanStack Form wiring, and default footer
|
|
4056
|
+
* actions.
|
|
3936
4057
|
*
|
|
3937
|
-
*
|
|
3938
|
-
*
|
|
3939
|
-
*
|
|
3940
|
-
*
|
|
4058
|
+
* Validation and error display are consumer-owned: define validators on
|
|
4059
|
+
* `form.Field` and map field meta to {@link FormField}. Call `close()` from
|
|
4060
|
+
* `onSubmit` when the dialog should dismiss after a successful action. Form
|
|
4061
|
+
* values reset to the current `defaultValues` when `open` changes.
|
|
3941
4062
|
*
|
|
3942
4063
|
* @example
|
|
3943
4064
|
* ```tsx
|
|
3944
|
-
* <Modal
|
|
3945
|
-
*
|
|
3946
|
-
*
|
|
3947
|
-
*
|
|
4065
|
+
* <Modal
|
|
4066
|
+
* open={open}
|
|
4067
|
+
* onOpenChange={setOpen}
|
|
4068
|
+
* title="Create process"
|
|
4069
|
+
* submitLabel="Create"
|
|
4070
|
+
* defaultValues={{ name: '' }}
|
|
4071
|
+
* onSubmit={async ({ value, close }) => {
|
|
4072
|
+
* await createProcess(value.name);
|
|
4073
|
+
* close();
|
|
4074
|
+
* }}
|
|
4075
|
+
* >
|
|
4076
|
+
* {(form) => (
|
|
4077
|
+
* <form.Field name="name">
|
|
4078
|
+
* {(field) => (
|
|
4079
|
+
* <FormField label="Name" labelFor="name">
|
|
4080
|
+
* <TextInput
|
|
4081
|
+
* id="name"
|
|
4082
|
+
* value={field.state.value}
|
|
4083
|
+
* onChange={(e) => field.handleChange(e.target.value)}
|
|
4084
|
+
* />
|
|
4085
|
+
* </FormField>
|
|
4086
|
+
* )}
|
|
4087
|
+
* </form.Field>
|
|
4088
|
+
* )}
|
|
3948
4089
|
* </Modal>
|
|
3949
4090
|
* ```
|
|
3950
4091
|
*/
|
|
3951
|
-
export declare const Modal: (props: ModalProps) => JSX.Element
|
|
4092
|
+
export declare const Modal: <TFormData extends Record<string, unknown>>(props: ModalProps<TFormData>) => JSX.Element;
|
|
3952
4093
|
|
|
3953
4094
|
/**
|
|
3954
|
-
* Renders the main content region of a {@link
|
|
4095
|
+
* Renders the main content region of a {@link ModalWrapper}.
|
|
3955
4096
|
*
|
|
3956
4097
|
* @example
|
|
3957
4098
|
* ```tsx
|
|
@@ -3966,18 +4107,8 @@ export declare type ModalBodyProps = Omit<BoxProps, 'children'> & {
|
|
|
3966
4107
|
children: ReactNode;
|
|
3967
4108
|
};
|
|
3968
4109
|
|
|
3969
|
-
/** State and close behavior shared with descendants of {@link Modal}. */
|
|
3970
|
-
declare interface ModalContextValue {
|
|
3971
|
-
/** Whether the modal is currently in its open phase. */
|
|
3972
|
-
open: boolean;
|
|
3973
|
-
/** Requests closing through the parent modal's `onOpenChange(false)`. */
|
|
3974
|
-
onClose: () => void;
|
|
3975
|
-
/** Whether the parent modal blocks overlay-triggered closing. */
|
|
3976
|
-
preventOverlayClose?: boolean;
|
|
3977
|
-
}
|
|
3978
|
-
|
|
3979
4110
|
/**
|
|
3980
|
-
* Renders the action region of a {@link
|
|
4111
|
+
* Renders the action region of a {@link ModalWrapper}.
|
|
3981
4112
|
*
|
|
3982
4113
|
* @example
|
|
3983
4114
|
* ```tsx
|
|
@@ -3992,12 +4123,15 @@ export declare type ModalFooterProps = Omit<BoxProps, 'children'> & {
|
|
|
3992
4123
|
children: ReactNode;
|
|
3993
4124
|
};
|
|
3994
4125
|
|
|
4126
|
+
/** TanStack Form instance passed to {@link Modal} children. */
|
|
4127
|
+
export declare type ModalFormApi<TFormData extends Record<string, unknown>> = ReactFormExtendedApi<TFormData, FormValidateOrFn<TFormData> | undefined, FormValidateOrFn<TFormData> | undefined, FormAsyncValidateOrFn<TFormData> | undefined, FormValidateOrFn<TFormData> | undefined, FormAsyncValidateOrFn<TFormData> | undefined, FormValidateOrFn<TFormData> | undefined, FormAsyncValidateOrFn<TFormData> | undefined, FormValidateOrFn<TFormData> | undefined, FormAsyncValidateOrFn<TFormData> | undefined, FormAsyncValidateOrFn<TFormData> | undefined, unknown>;
|
|
4128
|
+
|
|
3995
4129
|
/**
|
|
3996
|
-
* Renders the optional header region of a parent {@link
|
|
4130
|
+
* Renders the optional header region of a parent {@link ModalWrapper}.
|
|
3997
4131
|
*
|
|
3998
4132
|
* Use `title` for the standard heading or provide `children` for custom header
|
|
3999
|
-
* content. It must be rendered inside `
|
|
4000
|
-
* close the dialog.
|
|
4133
|
+
* content. It must be rendered inside `ModalWrapper` because it uses modal
|
|
4134
|
+
* context to close the dialog.
|
|
4001
4135
|
*
|
|
4002
4136
|
* @example
|
|
4003
4137
|
* ```tsx
|
|
@@ -4010,6 +4144,11 @@ export declare const ModalHeader: (props: ModalHeaderProps) => JSX.Element;
|
|
|
4010
4144
|
export declare type ModalHeaderProps = Omit<BoxProps, 'children'> & {
|
|
4011
4145
|
/** Text rendered as the default level-three heading when `children` is omitted. */
|
|
4012
4146
|
title?: string;
|
|
4147
|
+
/**
|
|
4148
|
+
* Identifier applied to the title heading for `aria-labelledby` on the dialog.
|
|
4149
|
+
* Pass the same value to the parent shell's `aria-labelledby`.
|
|
4150
|
+
*/
|
|
4151
|
+
titleId?: string;
|
|
4013
4152
|
/**
|
|
4014
4153
|
* Shows the built-in button that calls the parent modal's `onOpenChange(false)`.
|
|
4015
4154
|
* @default true
|
|
@@ -4019,8 +4158,101 @@ export declare type ModalHeaderProps = Omit<BoxProps, 'children'> & {
|
|
|
4019
4158
|
children?: ReactNode;
|
|
4020
4159
|
};
|
|
4021
4160
|
|
|
4022
|
-
/** Props for {@link Modal}, a
|
|
4023
|
-
export declare type ModalProps
|
|
4161
|
+
/** Props for {@link Modal}, a pre-built form dialog. */
|
|
4162
|
+
export declare type ModalProps<TFormData extends Record<string, unknown>> = {
|
|
4163
|
+
/** Controlled dialog state. */
|
|
4164
|
+
open: boolean;
|
|
4165
|
+
/** Called when the dialog requests an open-state change. */
|
|
4166
|
+
onOpenChange: (open: boolean) => void;
|
|
4167
|
+
/** Visible dialog title rendered in {@link ModalHeader}. */
|
|
4168
|
+
title: string;
|
|
4169
|
+
/**
|
|
4170
|
+
* Default field values passed to TanStack Form. Reseeded via `form.reset`
|
|
4171
|
+
* whenever `open` changes. To edit a different record while the dialog stays
|
|
4172
|
+
* open, remount with `key={recordId}`.
|
|
4173
|
+
*/
|
|
4174
|
+
defaultValues: TFormData;
|
|
4175
|
+
/**
|
|
4176
|
+
* Called after TanStack Form validation succeeds. Call `close()` when the
|
|
4177
|
+
* action completes and the dialog should dismiss.
|
|
4178
|
+
*/
|
|
4179
|
+
onSubmit: (context: ModalSubmitContext<TFormData>) => void | Promise<void>;
|
|
4180
|
+
/** Render prop receiving the modal's TanStack Form instance for field wiring. */
|
|
4181
|
+
children: (form: ModalFormApi<TFormData>) => ReactNode;
|
|
4182
|
+
/** Label for the default primary submit button. @default 'Submit' */
|
|
4183
|
+
submitLabel?: string;
|
|
4184
|
+
/** Label for the default cancel button. @default 'Cancel' */
|
|
4185
|
+
cancelLabel?: string;
|
|
4186
|
+
/** Additional disable flag applied to the default submit button. */
|
|
4187
|
+
submitDisabled?: boolean;
|
|
4188
|
+
/** Replaces the default cancel/submit footer. Submit wiring is consumer-owned. */
|
|
4189
|
+
footer?: ReactNode;
|
|
4190
|
+
/** Recipe size forwarded to {@link ModalWrapper}. @default 'md' */
|
|
4191
|
+
size?: ModalVariantProps['size'];
|
|
4192
|
+
/** Prevents overlay clicks from closing the dialog. @default false */
|
|
4193
|
+
preventOverlayClose?: boolean;
|
|
4194
|
+
/** Shows the header close button. @default true */
|
|
4195
|
+
showCloseButton?: boolean;
|
|
4196
|
+
};
|
|
4197
|
+
|
|
4198
|
+
/** Context passed to {@link ModalProps.onSubmit}. */
|
|
4199
|
+
export declare type ModalSubmitContext<TFormData extends Record<string, unknown>> = {
|
|
4200
|
+
/** Validated form values from TanStack Form. */
|
|
4201
|
+
value: TFormData;
|
|
4202
|
+
/** Requests closing through the modal's `onOpenChange(false)`. */
|
|
4203
|
+
close: () => void;
|
|
4204
|
+
};
|
|
4205
|
+
|
|
4206
|
+
declare interface ModalVariant {
|
|
4207
|
+
/**
|
|
4208
|
+
* @default "md"
|
|
4209
|
+
*/
|
|
4210
|
+
size: "sm" | "md" | "lg" | "xl" | "full" | "fullPage"
|
|
4211
|
+
/**
|
|
4212
|
+
* @default "centered"
|
|
4213
|
+
*/
|
|
4214
|
+
position: "centered" | "top"
|
|
4215
|
+
}
|
|
4216
|
+
|
|
4217
|
+
declare type ModalVariantProps = {
|
|
4218
|
+
[key in keyof ModalVariant]?: ConditionalValue<ModalVariant[key]> | undefined
|
|
4219
|
+
}
|
|
4220
|
+
|
|
4221
|
+
/**
|
|
4222
|
+
* Renders a controlled modal dialog shell in a portal with focus management and
|
|
4223
|
+
* a scroll-locking overlay.
|
|
4224
|
+
*
|
|
4225
|
+
* Escape always calls `onOpenChange(false)`. By default, pressing the overlay
|
|
4226
|
+
* does too. The dialog remains mounted for a 150 ms closing animation. Supply
|
|
4227
|
+
* an accessible name through `aria-label` or `aria-labelledby`; a visible
|
|
4228
|
+
* `ModalHeader` title alone is not linked automatically.
|
|
4229
|
+
*
|
|
4230
|
+
* Compose with `ModalHeader`, `ModalBody`, and `ModalFooter`, or use the
|
|
4231
|
+
* pre-built {@link Modal} and {@link ConfirmationModal} components.
|
|
4232
|
+
*
|
|
4233
|
+
* @example
|
|
4234
|
+
* ```tsx
|
|
4235
|
+
* <ModalWrapper open={open} onOpenChange={setOpen} aria-label="Delete project">
|
|
4236
|
+
* <ModalHeader title="Delete project" />
|
|
4237
|
+
* <ModalBody>This cannot be undone.</ModalBody>
|
|
4238
|
+
* <ModalFooter><Button onClick={remove}>Delete</Button></ModalFooter>
|
|
4239
|
+
* </ModalWrapper>
|
|
4240
|
+
* ```
|
|
4241
|
+
*/
|
|
4242
|
+
export declare const ModalWrapper: (props: ModalWrapperProps) => JSX.Element | null;
|
|
4243
|
+
|
|
4244
|
+
/** State and close behavior shared with descendants of {@link ModalWrapper}. */
|
|
4245
|
+
declare interface ModalWrapperContextValue {
|
|
4246
|
+
/** Whether the modal is currently in its open phase. */
|
|
4247
|
+
open: boolean;
|
|
4248
|
+
/** Requests closing through the parent modal's `onOpenChange(false)`. */
|
|
4249
|
+
onClose: () => void;
|
|
4250
|
+
/** Whether the parent modal blocks overlay-triggered closing. */
|
|
4251
|
+
preventOverlayClose?: boolean;
|
|
4252
|
+
}
|
|
4253
|
+
|
|
4254
|
+
/** Props for {@link ModalWrapper}, a controlled, portalled dialog shell. */
|
|
4255
|
+
export declare type ModalWrapperProps = Omit<BoxProps, keyof ModalVariantProps> & ModalVariantProps & {
|
|
4024
4256
|
/** Controlled dialog state. Render state changes by updating this value after `onOpenChange`. */
|
|
4025
4257
|
open: boolean;
|
|
4026
4258
|
/** Called when Escape, overlay interaction, or a descendant close control requests closing. */
|
|
@@ -4030,6 +4262,12 @@ export declare type ModalProps = Omit<BoxProps, keyof ModalVariantProps> & Modal
|
|
|
4030
4262
|
* @default false
|
|
4031
4263
|
*/
|
|
4032
4264
|
preventOverlayClose?: boolean;
|
|
4265
|
+
/**
|
|
4266
|
+
* Element to focus when the dialog opens. Forwarded to Floating UI's
|
|
4267
|
+
* `FloatingFocusManager`. A number selects by tabbable index; a ref targets
|
|
4268
|
+
* a specific element (for example Cancel on a delete confirmation).
|
|
4269
|
+
*/
|
|
4270
|
+
initialFocus?: number | RefObject<HTMLElement | null>;
|
|
4033
4271
|
/** Dialog content, typically composed from `ModalHeader`, `ModalBody`, and `ModalFooter`. */
|
|
4034
4272
|
children: ReactNode;
|
|
4035
4273
|
/** Identifier applied to the dialog element. Provide accessible naming with `aria-label` or `aria-labelledby`. */
|
|
@@ -4046,21 +4284,6 @@ export declare type ModalProps = Omit<BoxProps, keyof ModalVariantProps> & Modal
|
|
|
4046
4284
|
position?: ModalVariantProps['position'];
|
|
4047
4285
|
};
|
|
4048
4286
|
|
|
4049
|
-
declare interface ModalVariant {
|
|
4050
|
-
/**
|
|
4051
|
-
* @default "md"
|
|
4052
|
-
*/
|
|
4053
|
-
size: "sm" | "md" | "lg" | "xl" | "full" | "fullPage"
|
|
4054
|
-
/**
|
|
4055
|
-
* @default "centered"
|
|
4056
|
-
*/
|
|
4057
|
-
position: "centered" | "top"
|
|
4058
|
-
}
|
|
4059
|
-
|
|
4060
|
-
declare type ModalVariantProps = {
|
|
4061
|
-
[key in keyof ModalVariant]?: ConditionalValue<ModalVariant[key]> | undefined
|
|
4062
|
-
}
|
|
4063
|
-
|
|
4064
4287
|
declare interface ModernCssProperties {
|
|
4065
4288
|
/**
|
|
4066
4289
|
* Defines a name for the anchor element that can be referenced by positioned elements.
|
|
@@ -4155,7 +4378,7 @@ declare interface ModernCssProperties {
|
|
|
4155
4378
|
|
|
4156
4379
|
/** Props for a multiple-selection {@link Autocomplete}. */
|
|
4157
4380
|
declare type MultipleAutocompleteProps = AutocompleteBaseProps & {
|
|
4158
|
-
/** Enables multiple selection
|
|
4381
|
+
/** Enables multiple selection. Selected values render as chips. */
|
|
4159
4382
|
multiple: true;
|
|
4160
4383
|
/** Controlled selected values. Pair with `onValueChange`. */
|
|
4161
4384
|
value?: AutocompleteValue<true>;
|
|
@@ -21801,11 +22024,12 @@ declare type TagVariantProps = {
|
|
|
21801
22024
|
*
|
|
21802
22025
|
* The component renders a `span` by default. Choose `as` based on the content's
|
|
21803
22026
|
* semantic role; use `Heading` for document headings and `Label` for form
|
|
21804
|
-
* labels.
|
|
22027
|
+
* labels. Provide `definition` for a short explanation that appears on hover
|
|
22028
|
+
* and keyboard focus.
|
|
21805
22029
|
*
|
|
21806
22030
|
* @example
|
|
21807
22031
|
* ```tsx
|
|
21808
|
-
* <Text
|
|
22032
|
+
* <Text definition="Application programming interface">API</Text>
|
|
21809
22033
|
* ```
|
|
21810
22034
|
*/
|
|
21811
22035
|
declare const Text_2: (props: TextProps) => JSX.Element;
|
|
@@ -21924,6 +22148,11 @@ export declare type TextProps = Omit<BoxProps, keyof TextVariantProps> & TextVar
|
|
|
21924
22148
|
/** Semantic element or component used for the text. */
|
|
21925
22149
|
/** @default "span" */
|
|
21926
22150
|
as?: ElementType;
|
|
22151
|
+
/**
|
|
22152
|
+
* Short, nonessential explanation shown in a tooltip. Applies a dashed
|
|
22153
|
+
* underline and adds the text to sequential keyboard focus.
|
|
22154
|
+
*/
|
|
22155
|
+
definition?: string;
|
|
21927
22156
|
/** Explicit ARIA role when the rendered element does not provide it. */
|
|
21928
22157
|
role?: string;
|
|
21929
22158
|
/** Adds the text to sequential keyboard focus when a composite widget requires it. */
|
|
@@ -21935,6 +22164,7 @@ declare interface TextVariant {
|
|
|
21935
22164
|
bold: boolean
|
|
21936
22165
|
italic: boolean
|
|
21937
22166
|
underline: boolean
|
|
22167
|
+
dashedUnderline: boolean
|
|
21938
22168
|
truncate: boolean
|
|
21939
22169
|
allCaps: boolean
|
|
21940
22170
|
size: "10" | "12" | "14" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "72" | "80" | "96"
|
|
@@ -22474,6 +22704,8 @@ export declare const useChipGroup: () => ChipGroupContextValue | null;
|
|
|
22474
22704
|
*/
|
|
22475
22705
|
export declare function useContainerQuery(containerRef: RefObject<HTMLElement>, size: ContainerSizeKey, direction?: QueryDirection_2): boolean;
|
|
22476
22706
|
|
|
22707
|
+
export { useForm }
|
|
22708
|
+
|
|
22477
22709
|
/**
|
|
22478
22710
|
* Returns the sprite path supplied by the nearest {@link IconProvider}.
|
|
22479
22711
|
* Falls back to `/sprite.svg` when no provider is present.
|
|
@@ -22517,16 +22749,16 @@ export declare const useMenuListContext: () => MenuListContextValue | null;
|
|
|
22517
22749
|
export declare const useMenuRootContext: () => MenuRootContextValue;
|
|
22518
22750
|
|
|
22519
22751
|
/**
|
|
22520
|
-
* Returns state and close behavior from the closest parent {@link
|
|
22752
|
+
* Returns state and close behavior from the closest parent {@link ModalWrapper}.
|
|
22521
22753
|
*
|
|
22522
22754
|
* Call only in a modal descendant; it throws when no modal context is present.
|
|
22523
22755
|
*
|
|
22524
22756
|
* @example
|
|
22525
22757
|
* ```tsx
|
|
22526
|
-
* const { onClose } =
|
|
22758
|
+
* const { onClose } = useModalWrapperContext();
|
|
22527
22759
|
* ```
|
|
22528
22760
|
*/
|
|
22529
|
-
export declare const
|
|
22761
|
+
export declare const useModalWrapperContext: () => ModalWrapperContextValue;
|
|
22530
22762
|
|
|
22531
22763
|
/**
|
|
22532
22764
|
* Returns the active color mode and a function to persist a new preference.
|
|
@@ -22755,7 +22987,7 @@ declare interface UtilityValues {
|
|
|
22755
22987
|
srOnly: boolean;
|
|
22756
22988
|
debug: boolean;
|
|
22757
22989
|
fontVariantsProperty: "body" | "body-italic" | "body-casual" | "body-casual-italic" | "mono" | "mono-italic" | "mono-casual" | "mono-casual-italic";
|
|
22758
|
-
colorPalette: "transparent" | "current" | "inherit" | "neutral" | "neutralA" | "darkNeutral" | "darkNeutralA" | "slate" | "slate_inverse" | "gold" | "blue" | "green" | "yellow" | "red" | "tomato" | "tan" | "orange" | "pear" | "grass" | "mint" | "cyan" | "indigo" | "purple" | "violet" | "pink" | "rose" | "magenta" | "shadow" | "bg" | "bg.neutral" | "bg.neutral.bold" | "bg.neutral.boldest" | "bg.neutral.subtle" | "bg.neutral.inverse" | "bg.neutral.inverse.subtle" | "bg.selected" | "bg.selected.bold" | "bg.success" | "bg.success.bold" | "bg.warning" | "bg.warning.bold" | "bg.danger" | "bg.danger.bold" | "bg.info" | "bg.info.bold" | "bg.cta" | "bg.cta.bold" | "bg.input" | "bg.accent.neutral" | "bg.accent" | "bg.accent.gold" | "bg.accent.blue" | "bg.accent.green" | "bg.accent.yellow" | "bg.accent.red" | "bg.accent.tomato" | "bg.accent.tan" | "bg.accent.orange" | "bg.accent.pear" | "bg.accent.grass" | "bg.accent.mint" | "bg.accent.cyan" | "bg.accent.indigo" | "bg.accent.purple" | "bg.accent.violet" | "bg.accent.pink" | "bg.accent.rose" | "bg.accent.magenta" | "bg.slate" | "blanket" | "border" | "border.inverse" | "border.focused" | "icon" | "icon.decorative" | "icon.decorative.inverse" | "icon.warning" | "icon.danger" | "icon.cta" | "link" | "surface" | "surface.raised" | "surface.overlay" | "surface.selected" | "text" | "text.inverse" | "text.success" | "text.warning" | "text.danger" | "text.info" | "text.cta" | "text.accent.neutral" | "text.accent" | "text.accent.gold" | "text.accent.blue" | "text.accent.green" | "text.accent.yellow" | "text.accent.red" | "text.accent.tomato" | "text.accent.tan" | "text.accent.orange" | "text.accent.pear" | "text.accent.grass" | "text.accent.mint" | "text.accent.cyan" | "text.accent.indigo" | "text.accent.purple" | "text.accent.violet" | "text.accent.pink" | "text.accent.rose" | "text.accent.magenta" | "brand" | "success" | "warning" | "error" | "info" | "shadow.raised" | "shadow.elevated" | "shadow.overlay" | "shadow.overflow" | "utility";
|
|
22990
|
+
colorPalette: "transparent" | "current" | "inherit" | "neutral" | "neutralA" | "darkNeutral" | "darkNeutralA" | "slate" | "slate_inverse" | "gold" | "blue" | "green" | "yellow" | "red" | "tomato" | "tan" | "orange" | "pear" | "grass" | "mint" | "cyan" | "indigo" | "purple" | "violet" | "pink" | "rose" | "magenta" | "shadow" | "bg" | "bg.neutral" | "bg.neutral.bold" | "bg.neutral.boldest" | "bg.neutral.subtle" | "bg.neutral.inverse" | "bg.neutral.inverse.subtle" | "bg.selected" | "bg.selected.bold" | "bg.success" | "bg.success.bold" | "bg.success.subtle" | "bg.warning" | "bg.warning.bold" | "bg.warning.subtle" | "bg.danger" | "bg.danger.bold" | "bg.danger.subtle" | "bg.info" | "bg.info.bold" | "bg.info.subtle" | "bg.cta" | "bg.cta.bold" | "bg.input" | "bg.accent.neutral" | "bg.accent" | "bg.accent.gold" | "bg.accent.blue" | "bg.accent.green" | "bg.accent.yellow" | "bg.accent.red" | "bg.accent.tomato" | "bg.accent.tan" | "bg.accent.orange" | "bg.accent.pear" | "bg.accent.grass" | "bg.accent.mint" | "bg.accent.cyan" | "bg.accent.indigo" | "bg.accent.purple" | "bg.accent.violet" | "bg.accent.pink" | "bg.accent.rose" | "bg.accent.magenta" | "bg.slate" | "blanket" | "border" | "border.inverse" | "border.focused" | "icon" | "icon.decorative" | "icon.decorative.inverse" | "icon.warning" | "icon.danger" | "icon.cta" | "link" | "surface" | "surface.raised" | "surface.overlay" | "surface.selected" | "text" | "text.inverse" | "text.success" | "text.warning" | "text.danger" | "text.info" | "text.cta" | "text.accent.neutral" | "text.accent" | "text.accent.gold" | "text.accent.blue" | "text.accent.green" | "text.accent.yellow" | "text.accent.red" | "text.accent.tomato" | "text.accent.tan" | "text.accent.orange" | "text.accent.pear" | "text.accent.grass" | "text.accent.mint" | "text.accent.cyan" | "text.accent.indigo" | "text.accent.purple" | "text.accent.violet" | "text.accent.pink" | "text.accent.rose" | "text.accent.magenta" | "brand" | "success" | "warning" | "error" | "info" | "shadow.raised" | "shadow.elevated" | "shadow.overlay" | "shadow.overflow" | "utility";
|
|
22759
22991
|
textStyle: "display.lg" | "display.md" | "display.sm" | "display.xs" | "display.size.lg" | "display.size.md" | "display.size.sm" | "display.size.xs" | "heading.lg" | "heading.md" | "heading.sm" | "heading.xs" | "heading.size.lg" | "heading.size.md" | "heading.size.sm" | "heading.size.xs" | "body.lg" | "body.md" | "body.sm" | "body.xs" | "body.size.lg" | "body.size.md" | "body.size.sm" | "body.size.xs" | "mono.lg" | "mono.md" | "mono.sm" | "mono.xs" | "mono.size.lg" | "mono.size.md" | "mono.size.sm" | "mono.size.xs";
|
|
22760
22992
|
layerStyle: "surface.raised" | "surface.overlay";
|
|
22761
22993
|
}
|
|
@@ -24741,7 +24973,7 @@ declare interface WrapProperties {
|
|
|
24741
24973
|
|
|
24742
24974
|
declare interface WrapProps extends WrapProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof WrapProperties > {}
|
|
24743
24975
|
|
|
24744
|
-
declare type ZIndexToken = "0" | "1" | "2" | "3" | "4" | "5" | "10" | "1000" | "1100" | "1101" | "1200" | "-1" | "base" | "raised" | "elevated" | "overlay" | "modal" | "tooltip"
|
|
24976
|
+
declare type ZIndexToken = "0" | "1" | "2" | "3" | "4" | "5" | "10" | "1000" | "1100" | "1101" | "1102" | "1200" | "-1" | "base" | "raised" | "elevated" | "overlay" | "modal" | "modalFloating" | "tooltip"
|
|
24745
24977
|
|
|
24746
24978
|
export { }
|
|
24747
24979
|
|