@epam/ai-dial-ui-kit 0.14.0-dev.2 → 0.14.0-dev.4
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/README.md +4 -1
- package/dist/CHANGELOG.md +45 -1
- package/dist/{JsonEditor-CM-CG-FK.js → JsonEditor-CFkmn69x.js} +1 -1
- package/dist/{JsonEditor-DPtZkKQi.cjs → JsonEditor-CPk58Te4.cjs} +1 -1
- package/dist/{MarkdownEditor-DRQoDnC-.js → MarkdownEditor-ALJ17x82.js} +1 -1
- package/dist/{MarkdownEditor-cdq8UZxL.js → MarkdownEditor-CqMQgd-3.js} +1 -1
- package/dist/{MarkdownEditor-DyIvPpmt.cjs → MarkdownEditor-Cz2HKRcy.cjs} +1 -1
- package/dist/{MarkdownEditor-D4WuEafx.cjs → MarkdownEditor-DgPlyntV.cjs} +1 -1
- package/dist/components-manifest.json +802 -43
- package/dist/dial-ui-kit.cjs.js +1 -1
- package/dist/dial-ui-kit.es.js +188 -174
- package/dist/{index-CBk9P1Pa.js → index-BnqboA_3.js} +10936 -10196
- package/dist/{index-A_KNCHda.cjs → index-CBaBO6e_.cjs} +31 -31
- package/dist/index.css +2 -2
- package/dist/migration-guides/0.14.0/control-color-token-rename.md +143 -0
- package/dist/migration-guides/0.14.0/focus-border-token-role-naming.md +87 -0
- package/dist/migration-guides/README.md +2 -0
- package/dist/src/components/New/Calendar/constants.d.ts +5 -5
- package/dist/src/components/New/Checkbox/Checkbox.d.ts +46 -0
- package/dist/src/components/New/Checkbox/constants.d.ts +10 -0
- package/dist/src/components/New/Dropdown/constants.d.ts +1 -1
- package/dist/src/components/New/EllipsisTooltip/EllipsisTooltip.d.ts +51 -0
- package/dist/src/components/New/EllipsisTooltip/use-truncation.d.ts +21 -0
- package/dist/src/components/New/Highlight/Highlight.d.ts +1 -1
- package/dist/src/components/New/Input/Button/constants.d.ts +1 -1
- package/dist/src/components/New/Label/Label.d.ts +5 -0
- package/dist/src/components/New/Notification/Notification.d.ts +7 -0
- package/dist/src/components/New/Notification/NotificationWrapper.d.ts +2 -0
- package/dist/src/components/New/Radio/Radio.d.ts +48 -0
- package/dist/src/components/New/RadioGroup/RadioGroup.d.ts +78 -0
- package/dist/src/components/New/RadioGroup/constants.d.ts +11 -0
- package/dist/src/components/New/RadioGroupPopupField/RadioGroupPopupField.d.ts +93 -0
- package/dist/src/components/New/RadioGroupPopupField/constants.d.ts +22 -0
- package/dist/src/components/New/SegmentedControl/SegmentedControl.d.ts +54 -0
- package/dist/src/components/New/SegmentedControl/constants.d.ts +16 -0
- package/dist/src/components/New/Select/constants.d.ts +1 -1
- package/dist/src/components/New/ToggleIconButton/ToggleIconButton.d.ts +47 -0
- package/dist/src/components/New/Tooltip/Tooltip.d.ts +43 -0
- package/dist/src/components/New/Tooltip/TooltipContainer.d.ts +32 -0
- package/dist/src/components/New/Tooltip/TooltipContent.d.ts +18 -0
- package/dist/src/components/New/Tooltip/TooltipContext.d.ts +115 -0
- package/dist/src/components/New/Tooltip/TooltipTrigger.d.ts +18 -0
- package/dist/src/components/New/Tooltip/constants.d.ts +25 -0
- package/dist/src/components/New/constants/overlay.d.ts +1 -1
- package/dist/src/index.d.ts +23 -1
- package/dist/src/types/notification.d.ts +2 -1
- package/dist/src/types/tooltip.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.14.0-dev.
|
|
3
|
-
"generatedAt": "2026-08-
|
|
2
|
+
"version": "0.14.0-dev.4",
|
|
3
|
+
"generatedAt": "2026-08-23T20:02:20.938Z",
|
|
4
4
|
"kit": {
|
|
5
5
|
"name": "@epam/ai-dial-ui-kit",
|
|
6
6
|
"description": "A modern UI kit for building AI DIAL interfaces with React",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"setupNotes": "## Next.js Integration\n1. Install the package and peer dependencies that are not currently in your project\n``` bash\nnpm install @epam/ai-dial-ui-kit\nnpm install react react-dom @tabler/icons-react classnames\nnpm install @floating-ui/react monaco-editor @monaco-editor/react\n```\n\n2. Import style in the root layout of the project:\n\n```tsx\n// app/layout.tsx\nimport \"@epam/ai-dial-ui-kit/styles.css\";\n```\n\n3. Usage example\n\n```tsx\n// app/page.tsx\n\"use client\";\nimport { DialPrimaryButton } from \"@epam/ai-dial-ui-kit\";\n\nexport default function Home() {\n return (\n <div className=\"w-full h-full flex flex-col gap-3 items-center justify-center\">\n <h1>Test library</h1>\n <DialPrimaryButton onClick={() => alert('Hello AI DIAL!')} />\n </div>\n );\n}\n```\nSee \"🎨 Theming & Customization\" section in README."
|
|
22
22
|
},
|
|
23
23
|
"styles": "# Typography CSS Utility Classes\n\n## Design-system-compliant classes (`dial-*-text`)\n\nUse these by default. They follow the design system type scale.\n\n| Class | Design name | Weight | Size / Line-height |\n| --------------------------------- | --------------------------- | -------- | ----------------------------------- |\n| `.dial-display1-text` | Display 1 | semibold | 32px / 48px |\n| `.dial-display2-text` | Display 2 | semibold | 28px / 40px |\n| `.dial-display3-text` | Display 3 | semibold | 22px / 32px |\n| `.dial-h1-text` | Heading 1 | semibold | 20px / 28px |\n| `.dial-h2-text` | Heading 2 | semibold | 18px / 26px |\n| `.dial-h3-text` | Heading 3 | semibold | 16px / 24px |\n| `.dial-body-text` | Body Text | normal | 16px / 24px |\n| `.dial-body-semi-text` | Body Text (Semi Bold) | semibold | 16px / 24px |\n| `.dial-body-paragraph-text` | Body Paragraph | normal | 16px / 26px |\n| `.dial-body-paragraph-semi-text` | Body Paragraph (Semi Bold) | semibold | 16px / 26px |\n| `.dial-small-text` | Small Text | normal | 14px / 20px |\n| `.dial-small-semi-text` | Small Text (Semi Bold) | semibold | 14px / 20px |\n| `.dial-small-paragraph-text` | Small Paragraph | normal | 14px / 24px |\n| `.dial-small-paragraph-semi-text` | Small Paragraph (Semi Bold) | semibold | 14px / 24px |\n| `.dial-tiny-text` | Tiny Text | normal | 12px / 16px |\n| `.dial-tiny-lead-text` | Tiny Text Lead | normal | 12px / 16px (+0.03em, uppercase) |\n| `.dial-tiny-semi-text` | Tiny Text (Semi Bold) | semibold | 12px / 16px |\n| `.dial-tiny-lead-semi-text` | Tiny Text Lead (Semi Bold) | semibold | 12px / 16px (+0.03em, uppercase) |\n| `.dial-caption-text` | Caption | normal | 10px / 12px |\n| `.dial-caption-lead-semi-text` | Caption Lead (Semi Bold) | semibold | 10px / 12px (+0.06em, uppercase) |\n| `.dial-code-text` | Code | normal | 14px / 20px (Fira Code / monospace) |\n\nThe three `*-lead-*` classes apply `text-transform: uppercase` themselves — pass them the sentence-case string, not a pre-uppercased one, so the accessible name stays readable.\n\n`.dial-code-text` resolves its family through `var(--theme-font-mono, var(--font-fira-code, 'Fira Code'))` before falling back to the system monospace stack. The kit ships no font file; the host provides the face.\n\n## Legacy classes (avoid in new code)\n\nClasses like `dial-h1`, `dial-h2`, `dial-body`, `dial-small*`, `dial-tiny*`, `dial-caption` are legacy. They can be used in legacy projects if user explicidly specify they need legacy typography.\n\n## Raw SCSS source\n",
|
|
24
|
-
"theming": "# Theming & CSS Variable Tokens\n\nAI DIAL UI Kit uses CSS custom properties (variables) for theming.\nDark and light themes are switched by setting different values for these variables on `:root` or a theme wrapper element.\n\n## Usage in Tailwind\n\nThe Tailwind config maps CSS variables to utility classes.\nUse these classes in your components:\n\n```tsx\n// Backgrounds\n<div className=\"bg-layer-0\" /> // darkest background\n<div className=\"bg-layer-1\" /> // main content area\n<div className=\"bg-layer-2\" /> // elevated panels\n\n// Text\n<span className=\"text-primary\" /> // main text color\n<span className=\"text-secondary\" /> // muted text\n<span className=\"text-error\" /> // error state\n\n// Borders\n<div className=\"border border-primary\" /> // standard border\n<div className=\"border border-error\" /> // error border\n```\n\n## Override CSS Variables\n\n```css\n:root {\n --bg-layer-0: #000000;\n --bg-layer-1: #0c101d;\n --bg-layer-2: #161b2d;\n --bg-layer-3: #1d2439;\n --text-primary: #eef1f7;\n --text-secondary: #9fa6bd;\n --text-error: #f76464;\n --stroke-primary: #696e7c;\n --controls-bg-accent-primary: #3664e2;\n /* ... see tailwind.config.js for full list */\n}\n```\n\n## Token Reference\n\n\n### backgroundsColors\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `layer-sunken` | `var(--bg-layer-sunken)` | `#EEF1F7` |\n| `layer-base` | `var(--bg-layer-base)` | `#F5F7FA` |\n| `layer-raised` | `var(--bg-layer-raised)` | `#FCFCFC` |\n
|
|
24
|
+
"theming": "# Theming & CSS Variable Tokens\n\nAI DIAL UI Kit uses CSS custom properties (variables) for theming.\nDark and light themes are switched by setting different values for these variables on `:root` or a theme wrapper element.\n\n## Usage in Tailwind\n\nThe Tailwind config maps CSS variables to utility classes.\nUse these classes in your components:\n\n```tsx\n// Backgrounds\n<div className=\"bg-layer-0\" /> // darkest background\n<div className=\"bg-layer-1\" /> // main content area\n<div className=\"bg-layer-2\" /> // elevated panels\n\n// Text\n<span className=\"text-primary\" /> // main text color\n<span className=\"text-secondary\" /> // muted text\n<span className=\"text-error\" /> // error state\n\n// Borders\n<div className=\"border border-primary\" /> // standard border\n<div className=\"border border-error\" /> // error border\n```\n\n## Override CSS Variables\n\n```css\n:root {\n --bg-layer-0: #000000;\n --bg-layer-1: #0c101d;\n --bg-layer-2: #161b2d;\n --bg-layer-3: #1d2439;\n --text-primary: #eef1f7;\n --text-secondary: #9fa6bd;\n --text-error: #f76464;\n --stroke-primary: #696e7c;\n --controls-bg-accent-primary: #3664e2;\n /* ... see tailwind.config.js for full list */\n}\n```\n\n## Token Reference\n\n\n### backgroundsColors\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `layer-sunken` | `var(--bg-layer-sunken)` | `#EEF1F7` |\n| `layer-base` | `var(--bg-layer-base)` | `#F5F7FA` |\n| `layer-raised` | `var(--bg-layer-raised)` | `#FCFCFC` |\n| `gradient-1` | `var(--bg-gradient-1)` | `#1D4ED8` |\n| `gradient-1-hover` | `var(--bg-gradient-1-hover)` | `#6785FB` |\n| `gradient-1-active` | `var(--bg-gradient-1-active)` | `#1D4ED8` |\n| `gradient-2` | `var(--bg-gradient-2)` | `#885DF2` |\n| `gradient-2-hover` | `var(--bg-gradient-2-hover)` | `#885DF2` |\n| `gradient-2-active` | `var(--bg-gradient-2-active)` | `#7C3AED` |\n| `control-accent-alpha` | `var(--bg-control-accent-alpha)` | `#2764D90F` |\n| `control-accent-alpha-hover` | `var(--bg-control-accent-alpha-hover)` | `#2764D924` |\n| `control-accent-alpha-active` | `var(--bg-control-accent-alpha-active)` | `#2764D933` |\n| `control-accent` | `var(--bg-control-accent)` | `#1D4ED8` |\n| `control-accent-hover` | `var(--bg-control-accent-hover)` | `#5976E9` |\n| `control-neutral` | `var(--bg-control-neutral)` | `#FCFCFC` |\n| `control-neutral-hover-strong` | `var(--bg-control-neutral-hover-strong)` | `#848E9C` |\n| `control-neutral-active` | `var(--bg-control-neutral-active)` | `#D1DBEA` |\n| `control-neutral-default` | `var(--bg-control-neutral-default)` | `#ACB3C3` |\n| `control-inverted` | `var(--bg-control-inverted)` | `#57647A` |\n| `control-error` | `var(--bg-control-error)` | `#AE2F2F` |\n| `control-error-hover` | `var(--bg-control-error-hover)` | `#BF3939` |\n| `control-error-active` | `var(--bg-control-error-active)` | `#CC4545` |\n| `control-error-alpha-hover` | `var(--bg-control-error-alpha-hover)` | `#F764641A` |\n| `control-error-alpha-active` | `var(--bg-control-error-alpha-active)` | `#F7646433` |\n| `control-disable-secondary` | `var(--bg-control-disable-secondary)` | `#ACB3C3` |\n| `green-1` | `var(--bg-visual-green-1)` | `#CDE8E5` |\n| `green-2` | `var(--bg-visual-green-2)` | `#D1F0DC` |\n| `violet-1` | `var(--bg-visual-violet-1)` | `#DDE3F9` |\n| `violet-2` | `var(--bg-visual-violet-2)` | `#F1E9FF` |\n\n### borderColors\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `accent-alpha` | `var(--stroke-accent-alpha)` | `#2764D933` |\n| `gradient-1` | `var(--stroke-gradient-1)` | `#5976E9` |\n| `gradient-2` | `var(--stroke-gradient-2)` | `#885DF2` |\n| `accent-focus` | `var(--stroke-focus-blue)` | `#6785FB` |\n| `error-alpha` | `var(--stroke-error-alpha)` | `#AE2F2F73` |\n\n### textColors\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `warning-icon` | `var(--text-warning-icon)` | `#EEC840` |\n| `green-1` | `var(--text-visual-green-1)` | `#059669` |\n| `green-2` | `var(--text-visual-green-2)` | `#0D6E72` |\n| `green-3` | `var(--text-visual-green-3)` | `#065F46` |\n| `brown-1` | `var(--text-visual-brown-1)` | `#D36817` |\n| `brown-2` | `var(--text-visual-brown-2)` | `#B45309` |\n| `violet-1` | `var(--text-visual-violet-1)` | `#7C3AED` |\n| `violet-2` | `var(--text-visual-violet-2)` | `#3730B7` |\n| `control-permanent` | `var(--text-control-permanent)` | `#FCFCFC` |\n| `control-inverted` | `var(--text-control-inverted)` | `#FCFCFC` |\n\n### backgroundsColorsToRemove\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `layer-0` | `var(--bg-layer-0)` | `#FCFCFC` |\n| `layer-1` | `var(--bg-layer-1)` | `#E0E6F0` |\n| `layer-2` | `var(--bg-layer-2)` | `#EEF1F7` |\n| `layer-3` | `var(--bg-layer-3)` | `#FCFCFC` |\n| `layer-4` | `var(--bg-layer-4)` | `#D1DBEA` |\n| `accent-primary-alpha` | `var(--bg-accent-primary-alpha)` | `#7DA4FF26` |\n| `accent-secondary-alpha` | `var(--bg-accent-secondary-alpha)` | `#37BABC2E` |\n| `accent-tertiary-alpha` | `var(--bg-accent-tertiary-alpha)` | `#A972FF2E` |\n| `accent-primary` | `var(--bg-accent-primary)` | `#5C8DEA` |\n| `accent-secondary` | `var(--bg-accent-secondary)` | `#37BABC` |\n| `red-400` | `var(--bg-red-400)` | `#F76464` |\n| `controls-accent-primary` | `var(--controls-bg-accent-primary)` | `#124ACE` |\n| `controls-accent-primary-hover` | `var(--controls-bg-accent-primary-hover)` | `#2656D9` |\n| `controls-accent-primary-active` | `var(--controls-bg-accent-primary-active)` | `#3664E2` |\n| `controls-accent-primary-alpha-active` | `var(--controls-bg-accent-primary-alpha-active)` | `#7DA4FF5C` |\n| `controls-accent-secondary-alpha-active` | `var(--controls-bg-accent-secondary-alpha-active)` | `#37BABC5C` |\n| `controls-accent-tertiary-alpha-active` | `var(--controls-bg-accent-tertiary-alpha-active)` | `#A972FF5C` |\n| `controls-error` | `var(--controls-bg-error)` | `#AE2F2F` |\n| `controls-error-hover` | `var(--controls-bg-error-hover)` | `#BF3939` |\n| `controls-error-active` | `var(--controls-bg-error-active)` | `#CC4545` |\n| `controls-error-alpha-active` | `var(--controls-bg-error-alpha-active)` | `#F764645C` |\n| `controls-disable-accent` | `var(--controls-bg-disable-accent)` | `#7C8293` |\n| `controls-disable` | `var(--controls-bg-disable)` | `#D1DBEA` |\n| `controls-neutral-hover` | `var(--controls-bg-neutral-hover)` | `#D1DBEA` |\n| `controls-neutral-active` | `var(--controls-bg-neutral-active)` | `#9FA6BD` |\n| `controls-accent-success-alpha-hover` | `var(--controls-bg-accent-success-alpha-hover)` | `#37BABC2E` |\n| `controls-accent-success-alpha-active` | `var(--controls-bg-accent-success-alpha-active)` | `#37BABC5C` |\n| `controls-enable-primary` | `var(--controls-enable-primary)` | `#FCFCFC` |\n\n### borderColorsToRemove\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `accent-primary` | `var(--stroke-accent-primary)` | `#124ACE` |\n| `accent-secondary` | `var(--stroke-accent-secondary)` | `#007274` |\n| `controls-accent` | `var(--controls-bg-accent)` | `#5C8DEA` |\n| `red-900` | `var(--red-900)` | `#402027` |\n\n### textColorsToRemove\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `accent-primary` | `var(--text-accent-primary)` | `#7DA4FF` |\n| `accent-secondary` | `var(--text-accent-secondary)` | `#37BABC` |\n| `accent-tertiary` | `var(--text-accent-tertiary)` | `#A972FF` |\n| `controls-permanent` | `var(--controls-text-permanent)` | `#FCFCFC` |\n| `controls-accent-disable` | `var(--controls-text-accent-disable)` | `#D1DBEA` |\n| `controls-primary-disable` | `var(--controls-text-primary-disable)` | `#696E7C` |\n| `controls-secondary-disable` | `var(--controls-text-secondary-disable)` | `#9FA6BD` |\n| `controls-neutral` | `var(--controls-text-neutral)` | `#161B2D` |\n| `controls-accent-primary-hover` | `var(--controls-text-accent-primary-hover)` | `#3664E2` |\n| `controls-accent-primary-active` | `var(--controls-text-accent-primary-active)` | `#7DA4FF` |",
|
|
25
25
|
"components": [
|
|
26
26
|
{
|
|
27
27
|
"name": "Spinner",
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
}
|
|
252
252
|
],
|
|
253
253
|
"examples": [
|
|
254
|
-
"<Notification\n variant={NotificationVariant.Info}\n message=\"This is an info alert.\"\n/>\n\n<Notification\n variant={NotificationVariant.Success}\n title=\"Saved\"\n message=\"Changes saved successfully.\"\n/>\n\n<Notification\n variant={NotificationVariant.Error}\n closable\n message=\"Something went wrong.\"\n onClose={(e) => console.log('closed', e)}\n/>\n\n<Notification\n variant={NotificationVariant.Loading}\n title=\"Processing\"\n message=\"Please wait...\"\n/>"
|
|
254
|
+
"<Notification\n variant={NotificationVariant.Info}\n message=\"This is an info alert.\"\n/>\n\n<Notification\n variant={NotificationVariant.Success}\n title=\"Saved\"\n message=\"Changes saved successfully.\"\n/>\n\n<Notification\n variant={NotificationVariant.Error}\n closable\n message=\"Something went wrong.\"\n onClose={(e) => console.log('closed', e)}\n/>\n\n<Notification\n variant={NotificationVariant.Loading}\n title=\"Processing\"\n message=\"Please wait...\"\n/>\n\n<Notification\n variant={NotificationVariant.General}\n type={NotificationType.SectionMessage}\n title=\"Title\"\n message=\"Description text example\"\n/>"
|
|
255
255
|
],
|
|
256
256
|
"sourceFile": "components/New/Notification/Notification.tsx"
|
|
257
257
|
},
|
|
@@ -318,6 +318,24 @@
|
|
|
318
318
|
"examples": [],
|
|
319
319
|
"sourceFile": "components/New/Notification/NotificationWrapper.tsx"
|
|
320
320
|
},
|
|
321
|
+
{
|
|
322
|
+
"name": "GeneralMessageNotification",
|
|
323
|
+
"category": "Components_2_0",
|
|
324
|
+
"generation": "2.0",
|
|
325
|
+
"description": "",
|
|
326
|
+
"props": [],
|
|
327
|
+
"examples": [],
|
|
328
|
+
"sourceFile": "components/New/Notification/NotificationWrapper.tsx"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "GeneralToastNotification",
|
|
332
|
+
"category": "Components_2_0",
|
|
333
|
+
"generation": "2.0",
|
|
334
|
+
"description": "",
|
|
335
|
+
"props": [],
|
|
336
|
+
"examples": [],
|
|
337
|
+
"sourceFile": "components/New/Notification/NotificationWrapper.tsx"
|
|
338
|
+
},
|
|
321
339
|
{
|
|
322
340
|
"name": "InfoMessageNotification",
|
|
323
341
|
"category": "Components_2_0",
|
|
@@ -1301,6 +1319,12 @@
|
|
|
1301
1319
|
"required": false,
|
|
1302
1320
|
"defaultValue": "ElementSize.Small",
|
|
1303
1321
|
"description": "The size of the label, which can be 'small', 'medium', or 'large'."
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
"name": "containerClassName",
|
|
1325
|
+
"type": "string",
|
|
1326
|
+
"required": false,
|
|
1327
|
+
"description": "Additional classes for the wrapper holding the\n`<label>` and its info button. Needed when the label is a flex item that has\nto shrink: a wrapper left at `min-width: auto` cannot, so its text overflows\ninstead of truncating."
|
|
1304
1328
|
}
|
|
1305
1329
|
],
|
|
1306
1330
|
"examples": [
|
|
@@ -2028,71 +2052,542 @@
|
|
|
2028
2052
|
"description": "Fired when the header is clicked. Receives the next expanded state."
|
|
2029
2053
|
},
|
|
2030
2054
|
{
|
|
2031
|
-
"name": "className",
|
|
2032
|
-
"type": "string",
|
|
2055
|
+
"name": "className",
|
|
2056
|
+
"type": "string",
|
|
2057
|
+
"required": false,
|
|
2058
|
+
"description": "Additional CSS classes for the outer container."
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
"name": "headerClassName",
|
|
2062
|
+
"type": "string",
|
|
2063
|
+
"required": false,
|
|
2064
|
+
"description": "Additional CSS classes for the header."
|
|
2065
|
+
},
|
|
2066
|
+
{
|
|
2067
|
+
"name": "contentClassName",
|
|
2068
|
+
"type": "string",
|
|
2069
|
+
"required": false,
|
|
2070
|
+
"description": "Additional CSS classes for the content region."
|
|
2071
|
+
}
|
|
2072
|
+
],
|
|
2073
|
+
"examples": [
|
|
2074
|
+
"<Accordion title=\"Advanced settings\" description=\"Optional configuration\">\n <p>Panel content</p>\n</Accordion>\n\n<Accordion title=\"Always open\" nonCollapsible>\n <p>Panel content</p>\n</Accordion>"
|
|
2075
|
+
],
|
|
2076
|
+
"sourceFile": "components/New/Accordion/Accordion.tsx"
|
|
2077
|
+
},
|
|
2078
|
+
{
|
|
2079
|
+
"name": "Switch",
|
|
2080
|
+
"category": "Components_2_0",
|
|
2081
|
+
"generation": "2.0",
|
|
2082
|
+
"description": "A switch (toggle) control from the 2.0 design system.\naliases: ToggleSwitch|BinaryToggle|Switcher\nDesign system 2.0",
|
|
2083
|
+
"props": [
|
|
2084
|
+
{
|
|
2085
|
+
"name": "labelProps",
|
|
2086
|
+
"type": "LabelProps",
|
|
2087
|
+
"required": false,
|
|
2088
|
+
"description": "Props of the rendered next to the control"
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
"name": "isOn",
|
|
2092
|
+
"type": "boolean",
|
|
2093
|
+
"required": false,
|
|
2094
|
+
"defaultValue": "false",
|
|
2095
|
+
"description": "The current value of the switch"
|
|
2096
|
+
},
|
|
2097
|
+
{
|
|
2098
|
+
"name": "disabled",
|
|
2099
|
+
"type": "boolean",
|
|
2100
|
+
"required": false,
|
|
2101
|
+
"description": "Whether the switch is disabled"
|
|
2102
|
+
},
|
|
2103
|
+
{
|
|
2104
|
+
"name": "onChange",
|
|
2105
|
+
"type": "(value: boolean) => void",
|
|
2106
|
+
"required": false,
|
|
2107
|
+
"description": "Callback fired with the new value when toggled"
|
|
2108
|
+
},
|
|
2109
|
+
{
|
|
2110
|
+
"name": "caption",
|
|
2111
|
+
"type": "string",
|
|
2112
|
+
"required": false,
|
|
2113
|
+
"description": "Caption text rendered below the label, and described by the switch"
|
|
2114
|
+
}
|
|
2115
|
+
],
|
|
2116
|
+
"examples": [
|
|
2117
|
+
"<Switch\n id=\"notifications\"\n labelProps={{ label: 'Active' }}\n isOn={isActive}\n onChange={setIsActive}\n/>"
|
|
2118
|
+
],
|
|
2119
|
+
"sourceFile": "components/New/Switch/Switch.tsx"
|
|
2120
|
+
},
|
|
2121
|
+
{
|
|
2122
|
+
"name": "Radio",
|
|
2123
|
+
"category": "Components_2_0",
|
|
2124
|
+
"generation": "2.0",
|
|
2125
|
+
"description": "A radio button from the 2.0 design system.\naliases: RadioButton|ChoiceOption|RadioInput\nDesign system 2.0",
|
|
2126
|
+
"props": [
|
|
2127
|
+
{
|
|
2128
|
+
"name": "name",
|
|
2129
|
+
"type": "string",
|
|
2130
|
+
"required": true,
|
|
2131
|
+
"description": "The group this radio belongs to; radios sharing it are mutually exclusive"
|
|
2132
|
+
},
|
|
2133
|
+
{
|
|
2134
|
+
"name": "value",
|
|
2135
|
+
"type": "string",
|
|
2136
|
+
"required": true,
|
|
2137
|
+
"description": "The value reported to `onChange` when this radio is selected"
|
|
2138
|
+
},
|
|
2139
|
+
{
|
|
2140
|
+
"name": "labelProps",
|
|
2141
|
+
"type": "LabelProps",
|
|
2142
|
+
"required": false,
|
|
2143
|
+
"description": "Props of the rendered next to the control"
|
|
2144
|
+
},
|
|
2145
|
+
{
|
|
2146
|
+
"name": "isSelected",
|
|
2147
|
+
"type": "boolean",
|
|
2148
|
+
"required": false,
|
|
2149
|
+
"defaultValue": "false",
|
|
2150
|
+
"description": "Whether this radio is the selected one of its group"
|
|
2151
|
+
},
|
|
2152
|
+
{
|
|
2153
|
+
"name": "disabled",
|
|
2154
|
+
"type": "boolean",
|
|
2155
|
+
"required": false,
|
|
2156
|
+
"description": "Whether the radio is disabled"
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
"name": "onChange",
|
|
2160
|
+
"type": "(value: string) => void",
|
|
2161
|
+
"required": false,
|
|
2162
|
+
"description": "Callback fired with `value` when this radio becomes selected"
|
|
2163
|
+
},
|
|
2164
|
+
{
|
|
2165
|
+
"name": "caption",
|
|
2166
|
+
"type": "string",
|
|
2167
|
+
"required": false,
|
|
2168
|
+
"description": "Caption text rendered below the label, and described by the radio"
|
|
2169
|
+
}
|
|
2170
|
+
],
|
|
2171
|
+
"examples": [
|
|
2172
|
+
"<Radio\n name=\"plan\"\n value=\"pro\"\n labelProps={{ label: 'Pro' }}\n isSelected={plan === 'pro'}\n onChange={setPlan}\n/>"
|
|
2173
|
+
],
|
|
2174
|
+
"sourceFile": "components/New/Radio/Radio.tsx"
|
|
2175
|
+
},
|
|
2176
|
+
{
|
|
2177
|
+
"name": "RadioGroup",
|
|
2178
|
+
"category": "Components_2_0",
|
|
2179
|
+
"generation": "2.0",
|
|
2180
|
+
"description": "A set of mutually exclusive options with one group label.\naliases: SelectionGroup|OptionGroup|RadioList\nDesign system 2.0",
|
|
2181
|
+
"props": [
|
|
2182
|
+
{
|
|
2183
|
+
"name": "items",
|
|
2184
|
+
"type": "RadioGroupItem[]",
|
|
2185
|
+
"required": true,
|
|
2186
|
+
"description": "Options to render; each needs a unique `value` and may carry a `label`, `caption`, `content` and `disabled` flag"
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
"name": "value",
|
|
2190
|
+
"type": "string",
|
|
2191
|
+
"required": false,
|
|
2192
|
+
"description": "The `value` of the selected option"
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
"name": "onChange",
|
|
2196
|
+
"type": "(value: string) => void",
|
|
2197
|
+
"required": true,
|
|
2198
|
+
"description": "Callback fired with the newly selected `value`"
|
|
2199
|
+
},
|
|
2200
|
+
{
|
|
2201
|
+
"name": "name",
|
|
2202
|
+
"type": "string",
|
|
2203
|
+
"required": false,
|
|
2204
|
+
"description": "The `name` shared by the underlying radios; defaults to the group id"
|
|
2205
|
+
},
|
|
2206
|
+
{
|
|
2207
|
+
"name": "id",
|
|
2208
|
+
"type": "string",
|
|
2209
|
+
"required": false,
|
|
2210
|
+
"description": "Base id for the group; option ids are derived from it"
|
|
2211
|
+
},
|
|
2212
|
+
{
|
|
2213
|
+
"name": "orientation",
|
|
2214
|
+
"type": "RadioGroupOrientation",
|
|
2215
|
+
"required": false,
|
|
2216
|
+
"defaultValue": "RadioGroupOrientation.Column",
|
|
2217
|
+
"description": "Whether the options stack or sit in a row"
|
|
2218
|
+
},
|
|
2219
|
+
{
|
|
2220
|
+
"name": "labelProps",
|
|
2221
|
+
"type": "LabelProps",
|
|
2222
|
+
"required": false,
|
|
2223
|
+
"description": "Props of the rendered above the options"
|
|
2224
|
+
},
|
|
2225
|
+
{
|
|
2226
|
+
"name": "disabled",
|
|
2227
|
+
"type": "boolean",
|
|
2228
|
+
"required": false,
|
|
2229
|
+
"description": "Disables every option"
|
|
2230
|
+
},
|
|
2231
|
+
{
|
|
2232
|
+
"name": "error",
|
|
2233
|
+
"type": "string",
|
|
2234
|
+
"required": false,
|
|
2235
|
+
"description": "Error message rendered below the options"
|
|
2236
|
+
},
|
|
2237
|
+
{
|
|
2238
|
+
"name": "caption",
|
|
2239
|
+
"type": "string",
|
|
2240
|
+
"required": false,
|
|
2241
|
+
"description": "Helper text rendered below the options when there is no `error`"
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
"name": "ariaLabel",
|
|
2245
|
+
"type": "string",
|
|
2246
|
+
"required": false,
|
|
2247
|
+
"description": "Names the group when there is no string `labelProps.label`"
|
|
2248
|
+
},
|
|
2249
|
+
{
|
|
2250
|
+
"name": "className",
|
|
2251
|
+
"type": "string",
|
|
2252
|
+
"required": false,
|
|
2253
|
+
"description": "Additional classes for the outer container"
|
|
2254
|
+
},
|
|
2255
|
+
{
|
|
2256
|
+
"name": "optionsClassName",
|
|
2257
|
+
"type": "string",
|
|
2258
|
+
"required": false,
|
|
2259
|
+
"description": "Additional classes for the options wrapper"
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
"name": "radioClassName",
|
|
2263
|
+
"type": "string",
|
|
2264
|
+
"required": false,
|
|
2265
|
+
"description": "Additional classes for every option's control row"
|
|
2266
|
+
},
|
|
2267
|
+
{
|
|
2268
|
+
"name": "contentClassName",
|
|
2269
|
+
"type": "string",
|
|
2270
|
+
"required": false,
|
|
2271
|
+
"description": "Additional classes for the selected option's content"
|
|
2272
|
+
}
|
|
2273
|
+
],
|
|
2274
|
+
"examples": [
|
|
2275
|
+
"<RadioGroup\n labelProps={{ label: 'Delivery' }}\n value={delivery}\n onChange={setDelivery}\n items={[\n { value: 'pickup', label: 'Pickup', caption: 'Free, ready today' },\n { value: 'courier', label: 'Courier', content: <AddressForm /> },\n ]}\n/>"
|
|
2276
|
+
],
|
|
2277
|
+
"sourceFile": "components/New/RadioGroup/RadioGroup.tsx"
|
|
2278
|
+
},
|
|
2279
|
+
{
|
|
2280
|
+
"name": "RadioGroupPopupField",
|
|
2281
|
+
"category": "Components_2_0",
|
|
2282
|
+
"generation": "2.0",
|
|
2283
|
+
"description": "A field whose value is picked from a inside a .\naliases: PopupRadio|ChoicePopup|RadioPopupField\nDesign system 2.0",
|
|
2284
|
+
"props": [
|
|
2285
|
+
{
|
|
2286
|
+
"name": "items",
|
|
2287
|
+
"type": "RadioGroupItem[]",
|
|
2288
|
+
"required": true,
|
|
2289
|
+
"description": "Options offered inside the popup"
|
|
2290
|
+
},
|
|
2291
|
+
{
|
|
2292
|
+
"name": "value",
|
|
2293
|
+
"type": "string",
|
|
2294
|
+
"required": false,
|
|
2295
|
+
"description": "The committed value, shown in the collapsed field"
|
|
2296
|
+
},
|
|
2297
|
+
{
|
|
2298
|
+
"name": "customValue",
|
|
2299
|
+
"type": "string",
|
|
2300
|
+
"required": false,
|
|
2301
|
+
"description": "Text shown in the field in place of the selected option's label"
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
"name": "header",
|
|
2305
|
+
"type": "ReactNode",
|
|
2306
|
+
"required": true,
|
|
2307
|
+
"description": "Title of the popup"
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
"name": "onApply",
|
|
2311
|
+
"type": "(value?: string) => void",
|
|
2312
|
+
"required": true,
|
|
2313
|
+
"description": "Callback fired with the selected value when Apply is clicked"
|
|
2314
|
+
},
|
|
2315
|
+
{
|
|
2316
|
+
"name": "id",
|
|
2317
|
+
"type": "string",
|
|
2318
|
+
"required": false,
|
|
2319
|
+
"description": "Base id for the field; the label and the options derive theirs from it"
|
|
2320
|
+
},
|
|
2321
|
+
{
|
|
2322
|
+
"name": "labelProps",
|
|
2323
|
+
"type": "LabelProps",
|
|
2324
|
+
"required": false,
|
|
2325
|
+
"description": "Props of the rendered above the field"
|
|
2326
|
+
},
|
|
2327
|
+
{
|
|
2328
|
+
"name": "placeholder",
|
|
2329
|
+
"type": "string",
|
|
2330
|
+
"required": false,
|
|
2331
|
+
"description": "Text shown in the field while no value is selected"
|
|
2332
|
+
},
|
|
2333
|
+
{
|
|
2334
|
+
"name": "selectedValue",
|
|
2335
|
+
"type": "string",
|
|
2336
|
+
"required": false,
|
|
2337
|
+
"description": "Controlled draft selection inside the popup"
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
"name": "onSelectionChange",
|
|
2341
|
+
"type": "(value: string) => void",
|
|
2342
|
+
"required": false,
|
|
2343
|
+
"description": "Callback fired when the draft selection changes"
|
|
2344
|
+
},
|
|
2345
|
+
{
|
|
2346
|
+
"name": "onCancel",
|
|
2347
|
+
"type": "() => void",
|
|
2348
|
+
"required": false,
|
|
2349
|
+
"description": "Callback fired when Cancel is clicked, before the popup closes"
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
"name": "onClose",
|
|
2353
|
+
"type": "() => void",
|
|
2354
|
+
"required": false,
|
|
2355
|
+
"description": "Callback fired whenever the popup closes"
|
|
2356
|
+
},
|
|
2357
|
+
{
|
|
2358
|
+
"name": "isValid",
|
|
2359
|
+
"type": "boolean",
|
|
2360
|
+
"required": false,
|
|
2361
|
+
"defaultValue": "true",
|
|
2362
|
+
"description": "Whether Apply is enabled"
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
"name": "applyButtonLabel",
|
|
2366
|
+
"type": "string",
|
|
2367
|
+
"required": false,
|
|
2368
|
+
"defaultValue": "defaultApplyLabel",
|
|
2369
|
+
"description": "Label of the Apply button"
|
|
2370
|
+
},
|
|
2371
|
+
{
|
|
2372
|
+
"name": "cancelButtonLabel",
|
|
2373
|
+
"type": "string",
|
|
2374
|
+
"required": false,
|
|
2375
|
+
"defaultValue": "defaultCancelLabel",
|
|
2376
|
+
"description": "Label of the Cancel button"
|
|
2377
|
+
},
|
|
2378
|
+
{
|
|
2379
|
+
"name": "size",
|
|
2380
|
+
"type": "PopupSize",
|
|
2381
|
+
"required": false,
|
|
2382
|
+
"defaultValue": "PopupSize.Md",
|
|
2383
|
+
"description": "Size of the popup"
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
"name": "portalId",
|
|
2387
|
+
"type": "string",
|
|
2388
|
+
"required": false,
|
|
2389
|
+
"description": "Portal container id for the popup"
|
|
2390
|
+
},
|
|
2391
|
+
{
|
|
2392
|
+
"name": "disabled",
|
|
2393
|
+
"type": "boolean",
|
|
2394
|
+
"required": false,
|
|
2395
|
+
"description": "Disables the field, so the popup cannot be opened"
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
"name": "invalid",
|
|
2399
|
+
"type": "boolean",
|
|
2400
|
+
"required": false,
|
|
2401
|
+
"description": "Paints the field with the error border"
|
|
2402
|
+
},
|
|
2403
|
+
{
|
|
2404
|
+
"name": "error",
|
|
2405
|
+
"type": "string",
|
|
2406
|
+
"required": false,
|
|
2407
|
+
"description": "Error message rendered below the field"
|
|
2408
|
+
},
|
|
2409
|
+
{
|
|
2410
|
+
"name": "caption",
|
|
2411
|
+
"type": "string",
|
|
2412
|
+
"required": false,
|
|
2413
|
+
"description": "Helper text rendered below the field when there is no `error`"
|
|
2414
|
+
},
|
|
2415
|
+
{
|
|
2416
|
+
"name": "ariaLabel",
|
|
2417
|
+
"type": "string",
|
|
2418
|
+
"required": false,
|
|
2419
|
+
"description": "Names the field when there is no string `labelProps.label`"
|
|
2420
|
+
},
|
|
2421
|
+
{
|
|
2422
|
+
"name": "className",
|
|
2423
|
+
"type": "string",
|
|
2424
|
+
"required": false,
|
|
2425
|
+
"description": "Additional classes for the outer container"
|
|
2426
|
+
},
|
|
2427
|
+
{
|
|
2428
|
+
"name": "fieldClassName",
|
|
2429
|
+
"type": "string",
|
|
2430
|
+
"required": false,
|
|
2431
|
+
"description": "Additional classes for the collapsed field"
|
|
2432
|
+
}
|
|
2433
|
+
],
|
|
2434
|
+
"examples": [
|
|
2435
|
+
"<RadioGroupPopupField\n labelProps={{ label: 'Status' }}\n header=\"Select status\"\n placeholder=\"None\"\n items={[\n { value: 'draft', label: 'Draft' },\n { value: 'published', label: 'Published' },\n ]}\n value={status}\n onApply={(next) => setStatus(next)}\n/>"
|
|
2436
|
+
],
|
|
2437
|
+
"sourceFile": "components/New/RadioGroupPopupField/RadioGroupPopupField.tsx"
|
|
2438
|
+
},
|
|
2439
|
+
{
|
|
2440
|
+
"name": "Checkbox",
|
|
2441
|
+
"category": "Components_2_0",
|
|
2442
|
+
"generation": "2.0",
|
|
2443
|
+
"description": "A checkbox from the 2.0 design system.\naliases: ToggleCheckbox|MultiSelectOption|TriStateCheckbox\nDesign system 2.0",
|
|
2444
|
+
"props": [
|
|
2445
|
+
{
|
|
2446
|
+
"name": "labelProps",
|
|
2447
|
+
"type": "LabelProps",
|
|
2448
|
+
"required": false,
|
|
2449
|
+
"description": "Props of the rendered next to the control"
|
|
2450
|
+
},
|
|
2451
|
+
{
|
|
2452
|
+
"name": "isSelected",
|
|
2453
|
+
"type": "boolean",
|
|
2454
|
+
"required": false,
|
|
2455
|
+
"defaultValue": "false",
|
|
2456
|
+
"description": "The current value of the checkbox"
|
|
2457
|
+
},
|
|
2458
|
+
{
|
|
2459
|
+
"name": "isIndeterminate",
|
|
2460
|
+
"type": "boolean",
|
|
2461
|
+
"required": false,
|
|
2462
|
+
"defaultValue": "false",
|
|
2463
|
+
"description": "Whether the checkbox is in the mixed state"
|
|
2464
|
+
},
|
|
2465
|
+
{
|
|
2466
|
+
"name": "invalid",
|
|
2467
|
+
"type": "boolean",
|
|
2468
|
+
"required": false,
|
|
2469
|
+
"defaultValue": "false",
|
|
2470
|
+
"description": "Whether the checkbox failed validation (applies error styling)"
|
|
2471
|
+
},
|
|
2472
|
+
{
|
|
2473
|
+
"name": "disabled",
|
|
2474
|
+
"type": "boolean",
|
|
2475
|
+
"required": false,
|
|
2476
|
+
"description": "Whether the checkbox is disabled"
|
|
2477
|
+
},
|
|
2478
|
+
{
|
|
2479
|
+
"name": "onChange",
|
|
2480
|
+
"type": "(value: boolean) => void",
|
|
2481
|
+
"required": false,
|
|
2482
|
+
"description": "Callback fired with the new value when toggled"
|
|
2483
|
+
},
|
|
2484
|
+
{
|
|
2485
|
+
"name": "caption",
|
|
2486
|
+
"type": "string",
|
|
2487
|
+
"required": false,
|
|
2488
|
+
"description": "Caption text rendered below the label, and described by the checkbox"
|
|
2489
|
+
}
|
|
2490
|
+
],
|
|
2491
|
+
"examples": [
|
|
2492
|
+
"<Checkbox\n labelProps={{ label: 'Accept terms' }}\n isSelected={accepted}\n onChange={setAccepted}\n/>"
|
|
2493
|
+
],
|
|
2494
|
+
"sourceFile": "components/New/Checkbox/Checkbox.tsx"
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
"name": "ToggleIconButton",
|
|
2498
|
+
"category": "Components_2_0",
|
|
2499
|
+
"generation": "2.0",
|
|
2500
|
+
"description": "An icon button that stays pressed, for a setting the icon itself represents.\naliases: IconToggle|ToggleButton|BookmarkButton\nDesign system 2.0",
|
|
2501
|
+
"props": [
|
|
2502
|
+
{
|
|
2503
|
+
"name": "icon",
|
|
2504
|
+
"type": "ReactNode",
|
|
2505
|
+
"required": true,
|
|
2506
|
+
"description": "Icon shown while unselected; rendered at 16px"
|
|
2507
|
+
},
|
|
2508
|
+
{
|
|
2509
|
+
"name": "selectedIcon",
|
|
2510
|
+
"type": "ReactNode",
|
|
2511
|
+
"required": false,
|
|
2512
|
+
"description": "Icon shown while selected; falls back to `icon`"
|
|
2513
|
+
},
|
|
2514
|
+
{
|
|
2515
|
+
"name": "isSelected",
|
|
2516
|
+
"type": "boolean",
|
|
2033
2517
|
"required": false,
|
|
2034
|
-
"
|
|
2518
|
+
"defaultValue": "false",
|
|
2519
|
+
"description": "Whether the toggle is on"
|
|
2035
2520
|
},
|
|
2036
2521
|
{
|
|
2037
|
-
"name": "
|
|
2038
|
-
"type": "
|
|
2522
|
+
"name": "onToggle",
|
|
2523
|
+
"type": "(isSelected: boolean) => void",
|
|
2039
2524
|
"required": false,
|
|
2040
|
-
"description": "
|
|
2525
|
+
"description": "Callback fired with the next value when clicked"
|
|
2041
2526
|
},
|
|
2042
2527
|
{
|
|
2043
|
-
"name": "
|
|
2044
|
-
"type": "
|
|
2528
|
+
"name": "tooltipProps",
|
|
2529
|
+
"type": "ToggleTooltipProps",
|
|
2045
2530
|
"required": false,
|
|
2046
|
-
"description": "
|
|
2531
|
+
"description": "Props of the 2.0 wrapping the button"
|
|
2047
2532
|
}
|
|
2048
2533
|
],
|
|
2049
2534
|
"examples": [
|
|
2050
|
-
"<
|
|
2535
|
+
"<ToggleIconButton\n icon={<IconBookmark />}\n selectedIcon={<IconBookmarkFilled />}\n isSelected={isBookmarked}\n onToggle={setIsBookmarked}\n tooltipProps={{ tooltip: 'Bookmark' }}\n/>"
|
|
2051
2536
|
],
|
|
2052
|
-
"sourceFile": "components/New/
|
|
2537
|
+
"sourceFile": "components/New/ToggleIconButton/ToggleIconButton.tsx"
|
|
2053
2538
|
},
|
|
2054
2539
|
{
|
|
2055
|
-
"name": "
|
|
2540
|
+
"name": "SegmentedControl",
|
|
2056
2541
|
"category": "Components_2_0",
|
|
2057
2542
|
"generation": "2.0",
|
|
2058
|
-
"description": "A switch
|
|
2543
|
+
"description": "A single-select switch between a few mutually exclusive, equally sized options.\naliases: SegmentedButton|ViewSwitcher|ButtonGroup\nDesign system 2.0",
|
|
2059
2544
|
"props": [
|
|
2060
2545
|
{
|
|
2061
|
-
"name": "
|
|
2062
|
-
"type": "
|
|
2063
|
-
"required":
|
|
2064
|
-
"description": "
|
|
2546
|
+
"name": "items",
|
|
2547
|
+
"type": "SegmentedControlItem<T>[]",
|
|
2548
|
+
"required": true,
|
|
2549
|
+
"description": "Segments to render; each needs a unique `value` and may carry a `label`, `icon` and `disabled` flag"
|
|
2065
2550
|
},
|
|
2066
2551
|
{
|
|
2067
|
-
"name": "
|
|
2068
|
-
"type": "
|
|
2069
|
-
"required":
|
|
2070
|
-
"
|
|
2071
|
-
|
|
2552
|
+
"name": "value",
|
|
2553
|
+
"type": "T",
|
|
2554
|
+
"required": true,
|
|
2555
|
+
"description": "The currently selected `value`"
|
|
2556
|
+
},
|
|
2557
|
+
{
|
|
2558
|
+
"name": "onChange",
|
|
2559
|
+
"type": "(value: T) => void",
|
|
2560
|
+
"required": true,
|
|
2561
|
+
"description": "Callback fired with the newly selected `value`"
|
|
2072
2562
|
},
|
|
2073
2563
|
{
|
|
2074
2564
|
"name": "disabled",
|
|
2075
2565
|
"type": "boolean",
|
|
2076
2566
|
"required": false,
|
|
2077
|
-
"description": "
|
|
2567
|
+
"description": "Disables every segment"
|
|
2078
2568
|
},
|
|
2079
2569
|
{
|
|
2080
|
-
"name": "
|
|
2081
|
-
"type": "
|
|
2570
|
+
"name": "className",
|
|
2571
|
+
"type": "string",
|
|
2082
2572
|
"required": false,
|
|
2083
|
-
"description": "
|
|
2573
|
+
"description": "Additional classes for the track"
|
|
2084
2574
|
},
|
|
2085
2575
|
{
|
|
2086
|
-
"name": "
|
|
2576
|
+
"name": "segmentClassName",
|
|
2087
2577
|
"type": "string",
|
|
2088
2578
|
"required": false,
|
|
2089
|
-
"description": "
|
|
2579
|
+
"description": "Additional classes for every segment"
|
|
2580
|
+
},
|
|
2581
|
+
{
|
|
2582
|
+
"name": "'aria-label'",
|
|
2583
|
+
"type": "string",
|
|
2584
|
+
"required": false
|
|
2090
2585
|
}
|
|
2091
2586
|
],
|
|
2092
2587
|
"examples": [
|
|
2093
|
-
"<
|
|
2588
|
+
"<SegmentedControl\n aria-label=\"View\"\n value={view}\n onChange={setView}\n items={[\n { value: 'list', icon: <IconList />, 'aria-label': 'List' },\n { value: 'grid', icon: <IconGrid />, 'aria-label': 'Grid' },\n ]}\n/>"
|
|
2094
2589
|
],
|
|
2095
|
-
"sourceFile": "components/New/
|
|
2590
|
+
"sourceFile": "components/New/SegmentedControl/SegmentedControl.tsx"
|
|
2096
2591
|
},
|
|
2097
2592
|
{
|
|
2098
2593
|
"name": "Tabs",
|
|
@@ -2449,6 +2944,149 @@
|
|
|
2449
2944
|
],
|
|
2450
2945
|
"sourceFile": "components/New/Search/Search.tsx"
|
|
2451
2946
|
},
|
|
2947
|
+
{
|
|
2948
|
+
"name": "Tooltip",
|
|
2949
|
+
"category": "Components_2_0",
|
|
2950
|
+
"generation": "2.0",
|
|
2951
|
+
"description": "Shows a short explanation next to an element while it is hovered or focused.\naliases: HoverPopover|InfoPopover\nDesign system 2.0\n\nThe tooltip is placed on one of the four sides of the trigger and follows it\non scroll, flipping to the opposite side when it would not fit.\n\nTooltip text does not reach assistive technology unless the trigger itself\ncarries it: pass `asChild` so the `aria-describedby` lands on the control\nrather than on a wrapper `<span>`, and never let a tooltip be the only\naccessible name of a control — it renders nothing on mobile screens.",
|
|
2952
|
+
"props": [
|
|
2953
|
+
{
|
|
2954
|
+
"name": "hideTooltip",
|
|
2955
|
+
"type": "boolean",
|
|
2956
|
+
"required": false,
|
|
2957
|
+
"defaultValue": "false",
|
|
2958
|
+
"description": "Suppress the tooltip while keeping the trigger rendered"
|
|
2959
|
+
},
|
|
2960
|
+
{
|
|
2961
|
+
"name": "tooltip",
|
|
2962
|
+
"type": "ReactNode",
|
|
2963
|
+
"required": false,
|
|
2964
|
+
"description": "The content to display in the tooltip"
|
|
2965
|
+
},
|
|
2966
|
+
{
|
|
2967
|
+
"name": "children",
|
|
2968
|
+
"type": "ReactNode",
|
|
2969
|
+
"required": true,
|
|
2970
|
+
"description": "The element that triggers the tooltip"
|
|
2971
|
+
},
|
|
2972
|
+
{
|
|
2973
|
+
"name": "asChild",
|
|
2974
|
+
"type": "boolean",
|
|
2975
|
+
"required": false,
|
|
2976
|
+
"defaultValue": "false",
|
|
2977
|
+
"description": "Use the child as the trigger instead of wrapping it in a `<span>`"
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
"name": "triggerClassName",
|
|
2981
|
+
"type": "string",
|
|
2982
|
+
"required": false,
|
|
2983
|
+
"description": "Additional CSS classes for the trigger element"
|
|
2984
|
+
},
|
|
2985
|
+
{
|
|
2986
|
+
"name": "contentClassName",
|
|
2987
|
+
"type": "string",
|
|
2988
|
+
"required": false,
|
|
2989
|
+
"description": "Additional CSS classes for the tooltip bubble"
|
|
2990
|
+
}
|
|
2991
|
+
],
|
|
2992
|
+
"examples": [
|
|
2993
|
+
"<Tooltip tooltip=\"Tooltip text\" placement={TooltipPlacement.Top} asChild>\n <button>Hover me</button>\n</Tooltip>"
|
|
2994
|
+
],
|
|
2995
|
+
"sourceFile": "components/New/Tooltip/Tooltip.tsx"
|
|
2996
|
+
},
|
|
2997
|
+
{
|
|
2998
|
+
"name": "TooltipContainer",
|
|
2999
|
+
"category": "Components_2_0",
|
|
3000
|
+
"generation": "2.0",
|
|
3001
|
+
"description": "Provides tooltip positioning and open state to a trigger and a content pair.\naliases: TooltipProvider|TooltipRoot\nDesign system 2.0\n\nUse it directly only when the trigger and the content cannot be rendered by\n`Tooltip` itself — for example when the content needs custom markup.",
|
|
3002
|
+
"props": [],
|
|
3003
|
+
"examples": [
|
|
3004
|
+
"<TooltipContainer placement={TooltipPlacement.Top}>\n <TooltipTrigger asChild>\n <button>Hover me</button>\n </TooltipTrigger>\n <TooltipContent>Tooltip text</TooltipContent>\n</TooltipContainer>"
|
|
3005
|
+
],
|
|
3006
|
+
"sourceFile": "components/New/Tooltip/TooltipContainer.tsx"
|
|
3007
|
+
},
|
|
3008
|
+
{
|
|
3009
|
+
"name": "TooltipContent",
|
|
3010
|
+
"category": "Components_2_0",
|
|
3011
|
+
"generation": "2.0",
|
|
3012
|
+
"description": "The floating bubble that carries the tooltip text.\nDesign system 2.0\n\nRendered in a portal, above popups and dropdowns, with an arrow pointing back\nat the trigger. Renders nothing on a mobile screen, where there is no hover\nto reveal it — so a control must never depend on a tooltip alone to be\nunderstood, or to have an accessible name.",
|
|
3013
|
+
"props": [
|
|
3014
|
+
{
|
|
3015
|
+
"name": "style",
|
|
3016
|
+
"type": "CSSProperties",
|
|
3017
|
+
"required": false,
|
|
3018
|
+
"description": "Additional inline styles for the tooltip bubble"
|
|
3019
|
+
}
|
|
3020
|
+
],
|
|
3021
|
+
"examples": [],
|
|
3022
|
+
"sourceFile": "components/New/Tooltip/TooltipContent.tsx"
|
|
3023
|
+
},
|
|
3024
|
+
{
|
|
3025
|
+
"name": "TooltipTrigger",
|
|
3026
|
+
"category": "Components_2_0",
|
|
3027
|
+
"generation": "2.0",
|
|
3028
|
+
"description": "The element a tooltip is anchored to and opened from.\nDesign system 2.0\n\nPrefer `asChild` whenever the trigger is a single element: it puts the\n`aria-describedby` that names the tooltip on the control itself instead of on\na wrapper `<span>`, which is the only way the tooltip text reaches assistive\ntechnology.",
|
|
3029
|
+
"props": [
|
|
3030
|
+
{
|
|
3031
|
+
"name": "asChild",
|
|
3032
|
+
"type": "boolean",
|
|
3033
|
+
"required": false,
|
|
3034
|
+
"defaultValue": "false",
|
|
3035
|
+
"description": "Render the child as the trigger instead of wrapping it in a `<span>`"
|
|
3036
|
+
}
|
|
3037
|
+
],
|
|
3038
|
+
"examples": [],
|
|
3039
|
+
"sourceFile": "components/New/Tooltip/TooltipTrigger.tsx"
|
|
3040
|
+
},
|
|
3041
|
+
{
|
|
3042
|
+
"name": "EllipsisTooltip",
|
|
3043
|
+
"category": "Components_2_0",
|
|
3044
|
+
"generation": "2.0",
|
|
3045
|
+
"description": "Single-line text with a CSS ellipsis that reveals the full string in a\ntooltip **only when it is actually clipped**.\naliases: TruncatedText|TruncationTooltip\nDesign system 2.0\n\nText that fits gets no tooltip at all, so a row of labels does not sprout\ntooltips that repeat what is already on screen.\n\nThe width has to be finite for anything to truncate: the element is a\n`min-w-0`, `flex-1` block, and `className` sets the width it should fit into.\n\na11y: while truncated, the full string is exposed as the element's\n`aria-label`, so a screen reader reads the whole label even though the\ntooltip itself renders nothing on mobile screens.",
|
|
3046
|
+
"props": [
|
|
3047
|
+
{
|
|
3048
|
+
"name": "text",
|
|
3049
|
+
"type": "ReactNode",
|
|
3050
|
+
"required": true,
|
|
3051
|
+
"description": "The text or node to display, truncated with an ellipsis when it does not fit"
|
|
3052
|
+
},
|
|
3053
|
+
{
|
|
3054
|
+
"name": "className",
|
|
3055
|
+
"type": "string",
|
|
3056
|
+
"required": false,
|
|
3057
|
+
"description": "Additional CSS classes for the text element, typically its width"
|
|
3058
|
+
},
|
|
3059
|
+
{
|
|
3060
|
+
"name": "contentClassName",
|
|
3061
|
+
"type": "string",
|
|
3062
|
+
"required": false,
|
|
3063
|
+
"description": "Additional CSS classes for the tooltip bubble"
|
|
3064
|
+
},
|
|
3065
|
+
{
|
|
3066
|
+
"name": "hideTooltip",
|
|
3067
|
+
"type": "boolean",
|
|
3068
|
+
"required": false,
|
|
3069
|
+
"defaultValue": "false",
|
|
3070
|
+
"description": "Suppress the tooltip even while the text is truncated"
|
|
3071
|
+
},
|
|
3072
|
+
{
|
|
3073
|
+
"name": "id",
|
|
3074
|
+
"type": "string",
|
|
3075
|
+
"required": false,
|
|
3076
|
+
"description": "`id` of the text element"
|
|
3077
|
+
},
|
|
3078
|
+
{
|
|
3079
|
+
"name": "customTooltipContent",
|
|
3080
|
+
"type": "ReactNode",
|
|
3081
|
+
"required": false,
|
|
3082
|
+
"description": "Shown instead of the full text while truncated"
|
|
3083
|
+
}
|
|
3084
|
+
],
|
|
3085
|
+
"examples": [
|
|
3086
|
+
"<EllipsisTooltip text=\"Very long message that will be truncated\" />\n\n<EllipsisTooltip\n text={<span className=\"dial-small-semi-text\">Custom node</span>}\n className=\"max-w-[160px]\"\n/>\n\n<EllipsisTooltip text=\"Tooltip suppressed even when clipped\" hideTooltip />"
|
|
3087
|
+
],
|
|
3088
|
+
"sourceFile": "components/New/EllipsisTooltip/EllipsisTooltip.tsx"
|
|
3089
|
+
},
|
|
2452
3090
|
{
|
|
2453
3091
|
"name": "DialCaptionText",
|
|
2454
3092
|
"category": "Elements",
|
|
@@ -3200,7 +3838,8 @@
|
|
|
3200
3838
|
"examples": [
|
|
3201
3839
|
"<DialCheckbox\n id=\"checkbox\"\n label=\"Dial Checkbox\"\n checked={true}\n disabled={false}\n onChange={(value) => console.log(value)}\n/>"
|
|
3202
3840
|
],
|
|
3203
|
-
"sourceFile": "components/Checkbox/Checkbox.tsx"
|
|
3841
|
+
"sourceFile": "components/Checkbox/Checkbox.tsx",
|
|
3842
|
+
"supersededBy": "Checkbox"
|
|
3204
3843
|
},
|
|
3205
3844
|
{
|
|
3206
3845
|
"name": "DialSteps",
|
|
@@ -3448,7 +4087,8 @@
|
|
|
3448
4087
|
"examples": [
|
|
3449
4088
|
"<DialRadioGroup\n fieldTitle=\"Delivery\"\n elementId=\"delivery\"\n orientation={RadioGroupOrientation.Column}\n activeRadioButton=\"courier\"\n radioButtons={[\n { id: 'pickup', name: 'Pickup', content: <span>Free, ready today</span> },\n { id: 'courier', name: 'Courier', content: <span>Arrives tomorrow</span> },\n ]}\n onChange={(id) => console.log('selected', id)}\n/>"
|
|
3450
4089
|
],
|
|
3451
|
-
"sourceFile": "components/RadioGroup/RadioGroup.tsx"
|
|
4090
|
+
"sourceFile": "components/RadioGroup/RadioGroup.tsx",
|
|
4091
|
+
"supersededBy": "RadioGroup"
|
|
3452
4092
|
},
|
|
3453
4093
|
{
|
|
3454
4094
|
"name": "DialSlider",
|
|
@@ -3807,7 +4447,8 @@
|
|
|
3807
4447
|
"examples": [
|
|
3808
4448
|
"<DialEllipsisTooltip text=\"Very long message that will be truncated\" />\n<DialEllipsisTooltip text={<span className=\"font-medium\">Custom node</span>} className=\"max-w-[160px]\" />\n<DialEllipsisTooltip text=\"Tooltip disabled even if truncated\" hideTooltip />"
|
|
3809
4449
|
],
|
|
3810
|
-
"sourceFile": "components/EllipsisTooltip/EllipsisTooltip.tsx"
|
|
4450
|
+
"sourceFile": "components/EllipsisTooltip/EllipsisTooltip.tsx",
|
|
4451
|
+
"supersededBy": "EllipsisTooltip"
|
|
3811
4452
|
},
|
|
3812
4453
|
{
|
|
3813
4454
|
"name": "DialDraggableItem",
|
|
@@ -5106,7 +5747,8 @@
|
|
|
5106
5747
|
"examples": [
|
|
5107
5748
|
"<DialTooltip tooltip=\"This is helpful information\">\n <button>Hover me</button>\n</DialTooltip>"
|
|
5108
5749
|
],
|
|
5109
|
-
"sourceFile": "components/Tooltip/Tooltip.tsx"
|
|
5750
|
+
"sourceFile": "components/Tooltip/Tooltip.tsx",
|
|
5751
|
+
"supersededBy": "Tooltip"
|
|
5110
5752
|
},
|
|
5111
5753
|
{
|
|
5112
5754
|
"name": "DialTooltipContainer",
|
|
@@ -5115,7 +5757,8 @@
|
|
|
5115
5757
|
"description": "The container component that provides tooltip context and state management\nDesign system 1.0",
|
|
5116
5758
|
"props": [],
|
|
5117
5759
|
"examples": [],
|
|
5118
|
-
"sourceFile": "components/Tooltip/TooltipContainer.tsx"
|
|
5760
|
+
"sourceFile": "components/Tooltip/TooltipContainer.tsx",
|
|
5761
|
+
"supersededBy": "TooltipContainer"
|
|
5119
5762
|
},
|
|
5120
5763
|
{
|
|
5121
5764
|
"name": "DialTooltipContent",
|
|
@@ -5124,7 +5767,8 @@
|
|
|
5124
5767
|
"description": "The content area of a tooltip that displays the tooltip information\nDesign system 1.0",
|
|
5125
5768
|
"props": [],
|
|
5126
5769
|
"examples": [],
|
|
5127
|
-
"sourceFile": "components/Tooltip/TooltipContent.tsx"
|
|
5770
|
+
"sourceFile": "components/Tooltip/TooltipContent.tsx",
|
|
5771
|
+
"supersededBy": "TooltipContent"
|
|
5128
5772
|
},
|
|
5129
5773
|
{
|
|
5130
5774
|
"name": "DialTooltipTrigger",
|
|
@@ -5133,7 +5777,8 @@
|
|
|
5133
5777
|
"description": "The trigger element for a tooltip that can be clicked or hovered\nDesign system 1.0",
|
|
5134
5778
|
"props": [],
|
|
5135
5779
|
"examples": [],
|
|
5136
|
-
"sourceFile": "components/Tooltip/TooltipTrigger.tsx"
|
|
5780
|
+
"sourceFile": "components/Tooltip/TooltipTrigger.tsx",
|
|
5781
|
+
"supersededBy": "TooltipTrigger"
|
|
5137
5782
|
},
|
|
5138
5783
|
{
|
|
5139
5784
|
"name": "DialSwitch",
|
|
@@ -5230,7 +5875,8 @@
|
|
|
5230
5875
|
"examples": [
|
|
5231
5876
|
"<DialSegmentedControl\n ariaLabel=\"View\"\n value={view}\n onChange={setView}\n options={[\n { value: 'list', label: 'List' },\n { value: 'grid', label: 'Grid' },\n ]}\n/>"
|
|
5232
5877
|
],
|
|
5233
|
-
"sourceFile": "components/SegmentedControl/SegmentedControl.tsx"
|
|
5878
|
+
"sourceFile": "components/SegmentedControl/SegmentedControl.tsx",
|
|
5879
|
+
"supersededBy": "SegmentedControl"
|
|
5234
5880
|
},
|
|
5235
5881
|
{
|
|
5236
5882
|
"name": "DialPopup",
|
|
@@ -5441,7 +6087,8 @@
|
|
|
5441
6087
|
"examples": [
|
|
5442
6088
|
"<DialRadioGroupPopupField\n fieldTitle=\"Status\"\n htmlFor=\"status\"\n header=\"Select status\"\n emptyValueText=\"None\"\n radioButtons={[\n { id: 'draft', name: 'Draft' },\n { id: 'review', name: 'In Review' },\n { id: 'published', name: 'Published' },\n ]}\n selectedValue=\"draft\"\n selectedRadioValue=\"draft\"\n onChangeRadioField={(id) => console.log('radio changed', id)}\n id=\"status-group\"\n isValid={true}\n onApply={() => console.log('applied')}\n/>"
|
|
5443
6089
|
],
|
|
5444
|
-
"sourceFile": "components/RadioGroupPopupField/RadioGroupPopupField.tsx"
|
|
6090
|
+
"sourceFile": "components/RadioGroupPopupField/RadioGroupPopupField.tsx",
|
|
6091
|
+
"supersededBy": "RadioGroupPopupField"
|
|
5445
6092
|
},
|
|
5446
6093
|
{
|
|
5447
6094
|
"name": "DialFormPopup",
|
|
@@ -8685,6 +9332,10 @@
|
|
|
8685
9332
|
{
|
|
8686
9333
|
"name": "Loading",
|
|
8687
9334
|
"value": "'loading'"
|
|
9335
|
+
},
|
|
9336
|
+
{
|
|
9337
|
+
"name": "General",
|
|
9338
|
+
"value": "'general'"
|
|
8688
9339
|
}
|
|
8689
9340
|
],
|
|
8690
9341
|
"sourceFile": "types/notification.ts"
|
|
@@ -8733,6 +9384,64 @@
|
|
|
8733
9384
|
"sourceFile": "components/New/Calendar/Calendar.tsx",
|
|
8734
9385
|
"typeBody": "Date | string | null"
|
|
8735
9386
|
},
|
|
9387
|
+
{
|
|
9388
|
+
"name": "RadioGroupItem",
|
|
9389
|
+
"kind": "interface",
|
|
9390
|
+
"members": [
|
|
9391
|
+
{
|
|
9392
|
+
"name": "value",
|
|
9393
|
+
"value": "string"
|
|
9394
|
+
},
|
|
9395
|
+
{
|
|
9396
|
+
"name": "label?",
|
|
9397
|
+
"value": "ReactNode"
|
|
9398
|
+
},
|
|
9399
|
+
{
|
|
9400
|
+
"name": "caption?",
|
|
9401
|
+
"value": "string"
|
|
9402
|
+
},
|
|
9403
|
+
{
|
|
9404
|
+
"name": "content?",
|
|
9405
|
+
"value": "ReactNode"
|
|
9406
|
+
},
|
|
9407
|
+
{
|
|
9408
|
+
"name": "disabled?",
|
|
9409
|
+
"value": "boolean"
|
|
9410
|
+
},
|
|
9411
|
+
{
|
|
9412
|
+
"name": "'aria-label'?",
|
|
9413
|
+
"value": "string"
|
|
9414
|
+
}
|
|
9415
|
+
],
|
|
9416
|
+
"sourceFile": "components/New/RadioGroup/RadioGroup.tsx"
|
|
9417
|
+
},
|
|
9418
|
+
{
|
|
9419
|
+
"name": "SegmentedControlItem",
|
|
9420
|
+
"kind": "interface",
|
|
9421
|
+
"members": [
|
|
9422
|
+
{
|
|
9423
|
+
"name": "value",
|
|
9424
|
+
"value": "T"
|
|
9425
|
+
},
|
|
9426
|
+
{
|
|
9427
|
+
"name": "label?",
|
|
9428
|
+
"value": "ReactNode"
|
|
9429
|
+
},
|
|
9430
|
+
{
|
|
9431
|
+
"name": "icon?",
|
|
9432
|
+
"value": "ReactNode"
|
|
9433
|
+
},
|
|
9434
|
+
{
|
|
9435
|
+
"name": "disabled?",
|
|
9436
|
+
"value": "boolean"
|
|
9437
|
+
},
|
|
9438
|
+
{
|
|
9439
|
+
"name": "'aria-label'?",
|
|
9440
|
+
"value": "string"
|
|
9441
|
+
}
|
|
9442
|
+
],
|
|
9443
|
+
"sourceFile": "components/New/SegmentedControl/SegmentedControl.tsx"
|
|
9444
|
+
},
|
|
8736
9445
|
{
|
|
8737
9446
|
"name": "TabItem",
|
|
8738
9447
|
"kind": "interface",
|
|
@@ -8756,6 +9465,56 @@
|
|
|
8756
9465
|
],
|
|
8757
9466
|
"sourceFile": "components/New/Tabs/Tabs.tsx",
|
|
8758
9467
|
"description": "A single tab entry rendered by ."
|
|
9468
|
+
},
|
|
9469
|
+
{
|
|
9470
|
+
"name": "TooltipContainerOptions",
|
|
9471
|
+
"kind": "interface",
|
|
9472
|
+
"members": [
|
|
9473
|
+
{
|
|
9474
|
+
"name": "initialOpen?",
|
|
9475
|
+
"value": "boolean"
|
|
9476
|
+
},
|
|
9477
|
+
{
|
|
9478
|
+
"name": "placement?",
|
|
9479
|
+
"value": "TooltipPlacement"
|
|
9480
|
+
},
|
|
9481
|
+
{
|
|
9482
|
+
"name": "isTriggerClickable?",
|
|
9483
|
+
"value": "boolean"
|
|
9484
|
+
},
|
|
9485
|
+
{
|
|
9486
|
+
"name": "open?",
|
|
9487
|
+
"value": "boolean"
|
|
9488
|
+
},
|
|
9489
|
+
{
|
|
9490
|
+
"name": "onOpenChange?",
|
|
9491
|
+
"value": "(open: boolean) => void"
|
|
9492
|
+
}
|
|
9493
|
+
],
|
|
9494
|
+
"sourceFile": "components/New/Tooltip/TooltipContext.tsx"
|
|
9495
|
+
},
|
|
9496
|
+
{
|
|
9497
|
+
"name": "TooltipPlacement",
|
|
9498
|
+
"kind": "enum",
|
|
9499
|
+
"members": [
|
|
9500
|
+
{
|
|
9501
|
+
"name": "Top",
|
|
9502
|
+
"value": "'top'"
|
|
9503
|
+
},
|
|
9504
|
+
{
|
|
9505
|
+
"name": "Right",
|
|
9506
|
+
"value": "'right'"
|
|
9507
|
+
},
|
|
9508
|
+
{
|
|
9509
|
+
"name": "Bottom",
|
|
9510
|
+
"value": "'bottom'"
|
|
9511
|
+
},
|
|
9512
|
+
{
|
|
9513
|
+
"name": "Left",
|
|
9514
|
+
"value": "'left'"
|
|
9515
|
+
}
|
|
9516
|
+
],
|
|
9517
|
+
"sourceFile": "types/tooltip.ts"
|
|
8759
9518
|
}
|
|
8760
9519
|
],
|
|
8761
9520
|
"hooks": [
|