@warp-ds/elements 2.10.0-next.4 → 2.10.0-next.6

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.
Files changed (158) hide show
  1. package/README.md +4 -0
  2. package/dist/custom-elements.json +68 -14
  3. package/dist/docs/affix/affix.md +2 -2
  4. package/dist/docs/affix/styling.md +1 -0
  5. package/dist/docs/alert/alert.md +2 -2
  6. package/dist/docs/alert/styling.md +1 -0
  7. package/dist/docs/attention/attention.md +2 -0
  8. package/dist/docs/attention/styling.md +1 -0
  9. package/dist/docs/badge/badge.md +2 -0
  10. package/dist/docs/badge/styling.md +1 -0
  11. package/dist/docs/box/box.md +22 -40
  12. package/dist/docs/box/examples.md +20 -38
  13. package/dist/docs/box/styling.md +1 -0
  14. package/dist/docs/breadcrumbs/breadcrumbs.md +8 -2
  15. package/dist/docs/breadcrumbs/examples.md +7 -1
  16. package/dist/docs/breadcrumbs/styling.md +1 -0
  17. package/dist/docs/button/button.md +73 -2
  18. package/dist/docs/button/styling.md +72 -0
  19. package/dist/docs/card/card.md +2 -2
  20. package/dist/docs/card/styling.md +1 -0
  21. package/dist/docs/checkbox/api.md +128 -0
  22. package/dist/docs/checkbox/checkbox.md +134 -0
  23. package/dist/docs/checkbox-group/accessibility.md +71 -0
  24. package/dist/docs/checkbox-group/api.md +79 -0
  25. package/dist/docs/checkbox-group/checkbox-group.md +492 -0
  26. package/dist/docs/checkbox-group/examples.md +105 -0
  27. package/dist/docs/checkbox-group/styling.md +132 -0
  28. package/dist/docs/checkbox-group/usage.md +95 -0
  29. package/dist/docs/combobox/combobox.md +2 -2
  30. package/dist/docs/combobox/styling.md +1 -0
  31. package/dist/docs/datepicker/accessibility.md +25 -0
  32. package/dist/docs/datepicker/api.md +22 -14
  33. package/dist/docs/datepicker/datepicker.md +208 -16
  34. package/dist/docs/datepicker/examples.md +75 -0
  35. package/dist/docs/datepicker/styling.md +1 -0
  36. package/dist/docs/datepicker/usage.md +84 -0
  37. package/dist/docs/expandable/api.md +20 -32
  38. package/dist/docs/expandable/examples.md +54 -0
  39. package/dist/docs/expandable/expandable.md +74 -32
  40. package/dist/docs/expandable/styling.md +1 -0
  41. package/dist/docs/icon/icon.md +3 -1
  42. package/dist/docs/icon/styling.md +1 -0
  43. package/dist/docs/index.md +46 -0
  44. package/dist/docs/link/link.md +2 -2
  45. package/dist/docs/link/styling.md +1 -0
  46. package/dist/docs/modal/modal.md +2 -0
  47. package/dist/docs/modal/styling.md +1 -0
  48. package/dist/docs/modal-footer/modal-footer.md +0 -6
  49. package/dist/docs/modal-header/modal-header.md +0 -6
  50. package/dist/docs/page-indicator/page-indicator.md +2 -0
  51. package/dist/docs/page-indicator/styling.md +1 -0
  52. package/dist/docs/pagination/pagination.md +2 -0
  53. package/dist/docs/pagination/styling.md +1 -0
  54. package/dist/docs/pill/pill.md +2 -0
  55. package/dist/docs/pill/styling.md +1 -0
  56. package/dist/docs/radio/radio.md +1 -7
  57. package/dist/docs/select/select.md +2 -0
  58. package/dist/docs/select/styling.md +1 -0
  59. package/dist/docs/slider/slider.md +2 -0
  60. package/dist/docs/slider/styling.md +1 -0
  61. package/dist/docs/slider-thumb/slider-thumb.md +2 -0
  62. package/dist/docs/slider-thumb/styling.md +1 -0
  63. package/dist/docs/step-indicator/step-indicator.md +2 -0
  64. package/dist/docs/step-indicator/styling.md +1 -0
  65. package/dist/docs/switch/styling.md +1 -0
  66. package/dist/docs/switch/switch.md +2 -0
  67. package/dist/docs/tabs/styling.md +1 -0
  68. package/dist/docs/tabs/tabs.md +2 -0
  69. package/dist/docs/textarea/styling.md +1 -0
  70. package/dist/docs/textarea/textarea.md +2 -0
  71. package/dist/docs/textfield/styling.md +1 -0
  72. package/dist/docs/textfield/textfield.md +2 -0
  73. package/dist/index.d.ts +164 -128
  74. package/dist/packages/affix/affix.hydration.test.js +1 -1
  75. package/dist/packages/alert/alert.hydration.test.js +1 -1
  76. package/dist/packages/attention/attention.hydration.test.js +1 -1
  77. package/dist/packages/attention/attention.js +397 -446
  78. package/dist/packages/attention/attention.js.map +4 -4
  79. package/dist/packages/badge/badge.hydration.test.js +1 -1
  80. package/dist/packages/box/box.hydration.test.js +1 -1
  81. package/dist/packages/breadcrumbs/breadcrumbs.hydration.test.js +3 -2
  82. package/dist/packages/button/button.hydration.test.js +1 -1
  83. package/dist/packages/button/button.js +387 -436
  84. package/dist/packages/button/button.js.map +4 -4
  85. package/dist/packages/button/button.stories.d.ts +29 -0
  86. package/dist/packages/button/button.stories.js +176 -2
  87. package/dist/packages/button/styles.d.ts +22 -1
  88. package/dist/packages/button/styles.js +390 -1
  89. package/dist/packages/card/card.hydration.test.js +1 -1
  90. package/dist/packages/checkbox/checkbox.d.ts +5 -3
  91. package/dist/packages/checkbox/checkbox.hydration.test.js +1 -1
  92. package/dist/packages/checkbox/checkbox.js +2 -2
  93. package/dist/packages/checkbox/checkbox.js.map +3 -3
  94. package/dist/packages/checkbox/checkbox.react.stories.d.ts +1 -1
  95. package/dist/packages/checkbox/checkbox.stories.d.ts +2 -2
  96. package/dist/packages/checkbox/react.d.ts +2 -2
  97. package/dist/packages/checkbox-group/checkbox-group.d.ts +5 -3
  98. package/dist/packages/checkbox-group/checkbox-group.hydration.test.js +1 -1
  99. package/dist/packages/checkbox-group/checkbox-group.js +6 -6
  100. package/dist/packages/checkbox-group/checkbox-group.js.map +3 -3
  101. package/dist/packages/checkbox-group/react.d.ts +3 -3
  102. package/dist/packages/datepicker/datepicker.d.ts +22 -30
  103. package/dist/packages/datepicker/datepicker.hydration.test.js +1 -1
  104. package/dist/packages/datepicker/datepicker.js.map +2 -2
  105. package/dist/packages/expandable/expandable.d.ts +11 -32
  106. package/dist/packages/expandable/expandable.hydration.test.js +1 -1
  107. package/dist/packages/expandable/expandable.js.map +2 -2
  108. package/dist/packages/expandable/expandable.react.stories.d.ts +2 -2
  109. package/dist/packages/expandable/react.d.ts +1 -1
  110. package/dist/packages/icon/icon.hydration.test.js +1 -1
  111. package/dist/packages/link/link.hydration.test.js +1 -1
  112. package/dist/packages/link/link.js +420 -190
  113. package/dist/packages/link/link.js.map +4 -4
  114. package/dist/packages/link/styles.d.ts +5 -0
  115. package/dist/packages/link/styles.js +80 -0
  116. package/dist/packages/modal/modal.hydration.test.js +1 -1
  117. package/dist/packages/page-indicator/page-indicator.hydration.test.js +1 -1
  118. package/dist/packages/pagination/pagination.hydration.test.js +1 -1
  119. package/dist/packages/pill/pill.hydration.test.js +1 -1
  120. package/dist/packages/radio/radio.hydration.test.js +1 -1
  121. package/dist/packages/radio/radio.js.map +1 -1
  122. package/dist/packages/radio-group/radio-group.a11y.test.js +6 -2
  123. package/dist/packages/radio-group/radio-group.hydration.test.js +6 -2
  124. package/dist/packages/radio-group/radio-group.js +2 -2
  125. package/dist/packages/radio-group/radio-group.js.map +4 -4
  126. package/dist/packages/select/select.a11y.test.js +6 -2
  127. package/dist/packages/select/select.hydration.test.js +1 -1
  128. package/dist/packages/select/select.test.js +4 -2
  129. package/dist/packages/slider/slider.hydration.test.js +7 -2
  130. package/dist/packages/slider/slider.js.map +1 -1
  131. package/dist/packages/slider/slider.react.stories.js +2 -2
  132. package/dist/packages/slider-thumb/slider-thumb.hydration.test.js +1 -1
  133. package/dist/packages/step/step.hydration.test.js +1 -1
  134. package/dist/packages/step-indicator/step-indicator.hydration.test.js +1 -1
  135. package/dist/packages/switch/switch.hydration.test.js +1 -1
  136. package/dist/packages/tab/tab.hydration.test.js +1 -1
  137. package/dist/packages/tab-panel/tab-panel.hydration.test.js +1 -1
  138. package/dist/packages/tabs/tabs.a11y.test.js +1 -1
  139. package/dist/packages/tabs/tabs.hydration.test.js +1 -1
  140. package/dist/packages/tabs/tabs.test.js +3 -3
  141. package/dist/packages/textarea/textarea.hydration.test.js +1 -1
  142. package/dist/packages/textfield/textfield.hydration.test.js +1 -1
  143. package/dist/web-types.json +91 -28
  144. package/eik/index.js +115 -0
  145. package/package.json +7 -7
  146. package/dist/docs/modal-footer/accessibility.md +0 -1
  147. package/dist/docs/modal-footer/examples.md +0 -1
  148. package/dist/docs/modal-footer/usage.md +0 -1
  149. package/dist/docs/modal-header/accessibility.md +0 -1
  150. package/dist/docs/modal-header/examples.md +0 -1
  151. package/dist/docs/modal-header/usage.md +0 -1
  152. package/dist/docs/radio/accessibility.md +0 -1
  153. package/dist/docs/radio/examples.md +0 -1
  154. package/dist/docs/radio/usage.md +0 -1
  155. package/dist/packages/button/styles/w-button.styles.d.ts +0 -1
  156. package/dist/packages/button/styles/w-button.styles.js +0 -282
  157. package/dist/packages/link/styles/w-link.styles.d.ts +0 -1
  158. package/dist/packages/link/styles/w-link.styles.js +0 -213
@@ -114,8 +114,8 @@ export const OpenEnded = {
114
114
  React.createElement(SliderThumb, { slot: "from", "aria-label": "Fra \u00E5r", name: "from", value: openEndedFrom }),
115
115
  React.createElement(SliderThumb, { slot: "to", "aria-label": "Til \u00E5r", name: "to", value: openEndedTo })),
116
116
  React.createElement("button", { type: "button", onClick: () => {
117
- setOpenEndedFrom("");
118
- setOpenEndedTo("");
117
+ setOpenEndedFrom('');
118
+ setOpenEndedTo('');
119
119
  } }, "What's button type reset lol")),
120
120
  React.createElement("p", null, "Drag the slider to show the value below. See the Code tab for how to format the labels."),
121
121
  React.createElement("output", null,
@@ -1,5 +1,5 @@
1
1
  import { i18n } from '@lingui/core';
2
- import { describe, expect, test, beforeEach, afterEach } from 'vitest';
2
+ import { afterEach, beforeEach, describe, expect, test } from 'vitest';
3
3
  import { setupHydrationWarningCapture, testHydration } from '../../tests/react-hydration';
4
4
  import './slider-thumb.js';
5
5
  // Activate i18n before tests (normally done by parent w-slider)
@@ -1,4 +1,4 @@
1
- import { describe, expect, test, beforeEach, afterEach } from 'vitest';
1
+ import { afterEach, beforeEach, describe, expect, test } from 'vitest';
2
2
  import { setupHydrationWarningCapture, testHydration } from '../../tests/react-hydration';
3
3
  import './step.js';
4
4
  describe('w-step React SSR hydration', () => {
@@ -1,4 +1,4 @@
1
- import { describe, expect, test, beforeEach, afterEach } from 'vitest';
1
+ import { afterEach, beforeEach, describe, expect, test } from 'vitest';
2
2
  import { setupHydrationWarningCapture, testHydration } from '../../tests/react-hydration';
3
3
  import './index.js';
4
4
  describe('w-step-indicator React SSR hydration', () => {
@@ -1,4 +1,4 @@
1
- import { describe, expect, test, beforeEach, afterEach } from 'vitest';
1
+ import { afterEach, beforeEach, describe, expect, test } from 'vitest';
2
2
  import { setupHydrationWarningCapture, testHydration } from '../../tests/react-hydration';
3
3
  // Import the custom element definition
4
4
  import './switch.js';
@@ -1,4 +1,4 @@
1
- import { describe, expect, test, beforeEach, afterEach } from 'vitest';
1
+ import { afterEach, beforeEach, describe, expect, test } from 'vitest';
2
2
  import { setupHydrationWarningCapture, testHydration } from '../../tests/react-hydration';
3
3
  import './tab.js';
4
4
  describe('w-tab React SSR hydration', () => {
@@ -1,4 +1,4 @@
1
- import { describe, expect, test, beforeEach, afterEach } from 'vitest';
1
+ import { afterEach, beforeEach, describe, expect, test } from 'vitest';
2
2
  import { setupHydrationWarningCapture, testHydration } from '../../tests/react-hydration';
3
3
  import './tab-panel.js';
4
4
  describe('w-tab-panel React SSR hydration', () => {
@@ -139,7 +139,7 @@ describe('w-tabs, w-tab-panel, w-tab accessibility (WCAG 2.2)', () => {
139
139
  await page.container.querySelector('w-tabs').updateComplete;
140
140
  // Query by property since aria-selected is set via ElementInternals (no DOM attribute)
141
141
  const selectedTab = [...page.container.querySelectorAll('w-tab')].find((tab) => tab.ariaSelected === 'true');
142
- await expect.element(selectedTab).toHaveTextContent("Towers");
142
+ await expect.element(selectedTab).toHaveTextContent('Towers');
143
143
  });
144
144
  });
145
145
  describe('WCAG 2.1.1 - Keyboard', () => {
@@ -1,4 +1,4 @@
1
- import { describe, expect, test, beforeEach, afterEach } from 'vitest';
1
+ import { afterEach, beforeEach, describe, expect, test } from 'vitest';
2
2
  import { setupHydrationWarningCapture, testHydration } from '../../tests/react-hydration';
3
3
  import './index.js';
4
4
  describe('w-tabs React SSR hydration', () => {
@@ -25,7 +25,7 @@ test('renders the different tab components', async () => {
25
25
  const page = render(component);
26
26
  // defaults to the first tab if the active property is not set
27
27
  await expect.element(page.getByText('And my axe!')).toBeVisible();
28
- await expect.element(page.getByText('I am on nobody\'s side')).not.toBeVisible();
28
+ await expect.element(page.getByText("I am on nobody's side")).not.toBeVisible();
29
29
  await expect.element(page.getByText('I am no man')).not.toBeVisible();
30
30
  });
31
31
  test('can control the visible tab with the active attribute', async () => {
@@ -46,7 +46,7 @@ test('can control the visible tab with the active attribute', async () => {
46
46
  </w-tab-panel>
47
47
  </w-tabs>`;
48
48
  const page = render(component);
49
- await expect.element(page.getByText('I am on nobody\'s side')).toBeVisible();
49
+ await expect.element(page.getByText("I am on nobody's side")).toBeVisible();
50
50
  await expect.element(page.getByText('And my axe!')).not.toBeVisible();
51
51
  await expect.element(page.getByText('I am no man')).not.toBeVisible();
52
52
  });
@@ -75,7 +75,7 @@ test('clicking a tab changes the active attribute, visible tab panel', async ()
75
75
  await page.container.querySelectorAll('w-tab-panel')[2].updateComplete;
76
76
  await expect.element(page.getByText('I am no man')).toBeVisible();
77
77
  await expect.element(page.getByText('And my axe!')).not.toBeVisible();
78
- await expect.element(page.getByText('I am on nobody\'s side')).not.toBeVisible();
78
+ await expect.element(page.getByText("I am on nobody's side")).not.toBeVisible();
79
79
  });
80
80
  test('switches panel content when panels are initialized with hidden attribute', async () => {
81
81
  const component = html `<w-tabs active="tab2">
@@ -1,4 +1,4 @@
1
- import { describe, expect, test, beforeEach, afterEach } from 'vitest';
1
+ import { afterEach, beforeEach, describe, expect, test } from 'vitest';
2
2
  import { setupHydrationWarningCapture, testHydration } from '../../tests/react-hydration';
3
3
  import './textarea.js';
4
4
  describe('w-textarea React SSR hydration', () => {
@@ -1,4 +1,4 @@
1
- import { describe, expect, test, beforeEach, afterEach } from 'vitest';
1
+ import { afterEach, beforeEach, describe, expect, test } from 'vitest';
2
2
  import { setupHydrationWarningCapture, testHydration } from '../../tests/react-hydration';
3
3
  import './textfield.js';
4
4
  describe('w-textfield React SSR hydration', () => {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@warp-ds/elements",
4
- "version": "2.10.0-next.3",
4
+ "version": "2.10.0-next.5",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1284,59 +1284,83 @@
1284
1284
  "description": "An input for dates.\n\nUses the `lang` attribute on either the element or on `<html>` to determine the locale options.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-datepicker--docs)\n---\n",
1285
1285
  "doc-url": "",
1286
1286
  "attributes": [
1287
- { "name": "label", "value": { "type": "string" } },
1287
+ {
1288
+ "name": "label",
1289
+ "description": "The label displayed above the date input.\n\nUse this to give the datepicker a visible and accessible name.",
1290
+ "value": { "type": "string" }
1291
+ },
1288
1292
  {
1289
1293
  "name": "lang",
1290
- "description": "Takes precedence over the `<html>` lang attribute.",
1294
+ "description": "The locale used for calendar labels and date formatting.\n\nThis takes precedence over the `<html>` `lang` attribute. Supported built-in locales are `en`, `nb`, `sv`, `da`, and `fi`.",
1295
+ "value": { "type": "string" }
1296
+ },
1297
+ {
1298
+ "name": "name",
1299
+ "description": "The name submitted with the date value.\n\nUse this when the datepicker belongs to a form and its value should be included in form data.",
1300
+ "value": { "type": "string" }
1301
+ },
1302
+ {
1303
+ "name": "value",
1304
+ "description": "The selected date value.\n\nUse an ISO date string in `YYYY-MM-DD` format. The value is submitted with the form and is reset to its initial value when the form resets.",
1291
1305
  "value": { "type": "string" }
1292
1306
  },
1293
- { "name": "name", "value": { "type": "string" } },
1294
- { "name": "value", "value": { "type": "string" } },
1295
1307
  {
1296
1308
  "name": "header-format",
1297
- "description": "Decides the format of the date as shown in the calendar header.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
1309
+ "description": "The date format used in the calendar header.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
1298
1310
  "value": { "type": "string", "default": "'MMMM yyyy'" }
1299
1311
  },
1300
1312
  {
1301
1313
  "name": "weekday-format",
1302
- "description": "Decides the format of the weekday as shown above the grid of dates in the calendar.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
1314
+ "description": "The weekday format shown above the calendar grid.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
1303
1315
  "value": { "type": "string", "default": "'EEEEEE'" }
1304
1316
  },
1305
1317
  {
1306
1318
  "name": "day-format",
1307
- "description": "Decides the format of the day in the calendar as read to screen readers.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
1319
+ "description": "The date format used for calendar day accessible names.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
1308
1320
  "value": { "type": "string", "default": "'PPPP'" }
1309
1321
  }
1310
1322
  ],
1311
1323
  "events": [],
1312
1324
  "js": {
1313
1325
  "properties": [
1314
- { "name": "label", "type": "string" },
1326
+ {
1327
+ "name": "label",
1328
+ "description": "The label displayed above the date input.\n\nUse this to give the datepicker a visible and accessible name.",
1329
+ "type": "string"
1330
+ },
1315
1331
  {
1316
1332
  "name": "lang",
1317
- "description": "Takes precedence over the `<html>` lang attribute.",
1333
+ "description": "The locale used for calendar labels and date formatting.\n\nThis takes precedence over the `<html>` `lang` attribute. Supported built-in locales are `en`, `nb`, `sv`, `da`, and `fi`.",
1334
+ "type": "string"
1335
+ },
1336
+ {
1337
+ "name": "name",
1338
+ "description": "The name submitted with the date value.\n\nUse this when the datepicker belongs to a form and its value should be included in form data.",
1339
+ "type": "string"
1340
+ },
1341
+ {
1342
+ "name": "value",
1343
+ "description": "The selected date value.\n\nUse an ISO date string in `YYYY-MM-DD` format. The value is submitted with the form and is reset to its initial value when the form resets.",
1318
1344
  "type": "string"
1319
1345
  },
1320
- { "name": "name", "type": "string" },
1321
- { "name": "value", "type": "string" },
1322
1346
  {
1323
1347
  "name": "headerFormat",
1324
- "description": "Decides the format of the date as shown in the calendar header.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
1348
+ "description": "The date format used in the calendar header.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
1325
1349
  "type": "string"
1326
1350
  },
1327
1351
  {
1328
1352
  "name": "weekdayFormat",
1329
- "description": "Decides the format of the weekday as shown above the grid of dates in the calendar.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
1353
+ "description": "The weekday format shown above the calendar grid.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
1330
1354
  "type": "string"
1331
1355
  },
1332
1356
  {
1333
1357
  "name": "isDayDisabled",
1334
- "description": "Lets you control if a date in the calendar should be disabled.\n\nThis needs to be set on the element instance in JavaScript, not as an HTML attribute.",
1358
+ "description": "Function used to disable dates in the calendar.\n\nSet this on the element instance in JavaScript, not as an HTML attribute. Disabled dates cannot be selected from the calendar.",
1335
1359
  "type": "(day: Date) => boolean"
1336
1360
  },
1337
1361
  {
1338
1362
  "name": "dayFormat",
1339
- "description": "Decides the format of the day in the calendar as read to screen readers.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
1363
+ "description": "The date format used for calendar day accessible names.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
1340
1364
  "type": "string"
1341
1365
  },
1342
1366
  { "name": "isCalendarOpen", "type": "boolean" },
@@ -1361,33 +1385,46 @@
1361
1385
  },
1362
1386
  {
1363
1387
  "name": "w-expandable",
1364
- "description": "Expandable is a layout component used for creating expandable content areas on a page.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-expandable--docs)\n---\n\n\n### **Slots:**\n - **title** - Alternative to the `title` attribute should you need to provide some additional markup.",
1388
+ "description": "Expandable is a layout component used for creating expandable content areas on a page.\n---\n\n\n### **Slots:**\n - **title** - Alternative to the `title` attribute should you need to provide some additional markup.",
1365
1389
  "doc-url": "",
1366
1390
  "attributes": [
1367
1391
  {
1368
1392
  "name": "expanded",
1393
+ "description": "Controls component's expanded state",
1369
1394
  "value": { "type": "boolean", "default": "false" }
1370
1395
  },
1371
- { "name": "title", "value": { "type": "string" } },
1396
+ {
1397
+ "name": "title",
1398
+ "description": "Component title. Used to display the title value which is always present regardless of whether the component is open or closed.",
1399
+ "value": { "type": "string" }
1400
+ },
1372
1401
  {
1373
1402
  "name": "box",
1403
+ "description": "Will make the expandable a Box",
1374
1404
  "value": { "type": "boolean", "default": "false" }
1375
1405
  },
1376
1406
  {
1377
1407
  "name": "bleed",
1408
+ "description": "Will make the expandable full-width on the sm breakpoint size",
1378
1409
  "value": { "type": "boolean", "default": "false" }
1379
1410
  },
1380
1411
  { "name": "button-class", "value": { "type": "string" } },
1381
1412
  { "name": "content-class", "value": { "type": "string" } },
1382
1413
  {
1383
1414
  "name": "no-chevron",
1415
+ "description": "Controls chevron visibility",
1384
1416
  "value": { "type": "boolean", "default": "false" }
1385
1417
  },
1386
1418
  {
1387
1419
  "name": "animated",
1420
+ "description": "Will animate the expansion/collapse",
1388
1421
  "value": { "type": "boolean", "default": "false" }
1389
1422
  },
1390
- { "name": "heading-level", "value": { "type": "number" } },
1423
+ {
1424
+ "name": "heading-level",
1425
+ "description": "Wrap the toggle button in a heading element with the specified level. If headingLevel is not specified, the button will not be wrapped by a heading element.",
1426
+ "value": { "type": "number" }
1427
+ },
1391
1428
  {
1392
1429
  "name": "_hasTitle",
1393
1430
  "value": { "type": "boolean", "default": "true" }
@@ -1406,17 +1443,43 @@
1406
1443
  "events": [],
1407
1444
  "js": {
1408
1445
  "properties": [
1409
- { "name": "expanded", "type": "boolean" },
1410
- { "name": "title", "type": "string" },
1411
- { "name": "box", "type": "boolean" },
1412
- { "name": "bleed", "type": "boolean" },
1446
+ {
1447
+ "name": "expanded",
1448
+ "description": "Controls component's expanded state",
1449
+ "type": "boolean"
1450
+ },
1451
+ {
1452
+ "name": "title",
1453
+ "description": "Component title. Used to display the title value which is always present regardless of whether the component is open or closed.",
1454
+ "type": "string"
1455
+ },
1456
+ {
1457
+ "name": "box",
1458
+ "description": "Will make the expandable a Box",
1459
+ "type": "boolean"
1460
+ },
1461
+ {
1462
+ "name": "bleed",
1463
+ "description": "Will make the expandable full-width on the sm breakpoint size",
1464
+ "type": "boolean"
1465
+ },
1413
1466
  { "name": "buttonClass", "type": "string" },
1414
1467
  { "name": "contentClass", "type": "string" },
1415
- { "name": "noChevron", "type": "boolean" },
1416
- { "name": "animated", "type": "boolean" },
1417
- { "name": "headingLevel", "type": "number" },
1418
- { "name": "_hasTitle", "type": "boolean" },
1419
- { "name": "_showChevronUp", "type": "boolean" }
1468
+ {
1469
+ "name": "noChevron",
1470
+ "description": "Controls chevron visibility",
1471
+ "type": "boolean"
1472
+ },
1473
+ {
1474
+ "name": "animated",
1475
+ "description": "Will animate the expansion/collapse",
1476
+ "type": "boolean"
1477
+ },
1478
+ {
1479
+ "name": "headingLevel",
1480
+ "description": "Wrap the toggle button in a heading element with the specified level. If headingLevel is not specified, the button will not be wrapped by a heading element.",
1481
+ "type": "number"
1482
+ }
1420
1483
  ],
1421
1484
  "events": []
1422
1485
  }