@hashicorp/design-system-components 4.21.1 → 4.22.0-rc-20250805001802
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 +10 -16
- package/declarations/components/hds/advanced-table/tr.d.ts +1 -1
- package/declarations/components/hds/application-state/index.d.ts +1 -1
- package/declarations/components/hds/badge-count/index.d.ts +3 -3
- package/declarations/components/hds/button/index.d.ts +4 -4
- package/declarations/components/hds/card/container.d.ts +4 -4
- package/declarations/components/hds/code-block/index.d.ts +1 -1
- package/declarations/components/hds/code-editor/index.d.ts +5 -2
- package/declarations/components/hds/dismiss-button/index.d.ts +2 -5
- package/declarations/components/hds/flyout/index.d.ts +1 -1
- package/declarations/components/hds/form/masked-input/base.d.ts +2 -0
- package/declarations/components/hds/icon/index.d.ts +2 -2
- package/declarations/components/hds/icon-tile/index.d.ts +3 -3
- package/declarations/components/hds/modal/index.d.ts +2 -2
- package/declarations/components/hds/pagination/info/index.d.ts +3 -0
- package/declarations/components/hds/rich-tooltip/toggle.d.ts +3 -3
- package/declarations/components/hds/stepper/list/step.d.ts +1 -1
- package/declarations/components/hds/table/index.d.ts +2 -0
- package/declarations/components/hds/table/th-button-sort.d.ts +2 -0
- package/declarations/components/hds/table/tr.d.ts +1 -1
- package/declarations/helpers/hds-t.d.ts +19 -0
- package/declarations/modifiers/hds-anchored-position.d.ts +8 -1
- package/declarations/modifiers/hds-code-editor.d.ts +2 -0
- package/declarations/services/hds-intl.d.ts +16 -0
- package/declarations/template-registry.d.ts +2 -0
- package/dist/README.md +10 -16
- package/dist/_app_/helpers/hds-t.js +1 -0
- package/dist/_app_/services/hds-intl.js +1 -0
- package/dist/components/hds/accordion/index.js.map +1 -1
- package/dist/components/hds/accordion/item/button.js.map +1 -1
- package/dist/components/hds/accordion/item/index.js.map +1 -1
- package/dist/components/hds/accordion/types.js.map +1 -1
- package/dist/components/hds/advanced-table/expandable-tr-group.js.map +1 -1
- package/dist/components/hds/advanced-table/index.js.map +1 -1
- package/dist/components/hds/advanced-table/models/column.js.map +1 -1
- package/dist/components/hds/advanced-table/models/row.js.map +1 -1
- package/dist/components/hds/advanced-table/models/table.js.map +1 -1
- package/dist/components/hds/advanced-table/td.js.map +1 -1
- package/dist/components/hds/advanced-table/th-button-expand.js +1 -1
- package/dist/components/hds/advanced-table/th-button-expand.js.map +1 -1
- package/dist/components/hds/advanced-table/th-button-sort.js +1 -1
- package/dist/components/hds/advanced-table/th-button-sort.js.map +1 -1
- package/dist/components/hds/advanced-table/th-button-tooltip.js +1 -1
- package/dist/components/hds/advanced-table/th-button-tooltip.js.map +1 -1
- package/dist/components/hds/advanced-table/th-context-menu.js.map +1 -1
- package/dist/components/hds/advanced-table/th-resize-handle.js +2 -2
- package/dist/components/hds/advanced-table/th-resize-handle.js.map +1 -1
- package/dist/components/hds/advanced-table/th-selectable.js +1 -1
- package/dist/components/hds/advanced-table/th-selectable.js.map +1 -1
- package/dist/components/hds/advanced-table/th-sort.js.map +1 -1
- package/dist/components/hds/advanced-table/th.js.map +1 -1
- package/dist/components/hds/advanced-table/tr.js.map +1 -1
- package/dist/components/hds/advanced-table/types.js.map +1 -1
- package/dist/components/hds/alert/index.js.map +1 -1
- package/dist/components/hds/alert/title.js.map +1 -1
- package/dist/components/hds/alert/types.js.map +1 -1
- package/dist/components/hds/app-footer/copyright.js +1 -1
- package/dist/components/hds/app-footer/copyright.js.map +1 -1
- package/dist/components/hds/app-footer/index.js.map +1 -1
- package/dist/components/hds/app-footer/legal-links.js +1 -1
- package/dist/components/hds/app-footer/legal-links.js.map +1 -1
- package/dist/components/hds/app-footer/status-link.js.map +1 -1
- package/dist/components/hds/app-footer/types.js.map +1 -1
- package/dist/components/hds/app-frame/index.js.map +1 -1
- package/dist/components/hds/app-header/home-link.js.map +1 -1
- package/dist/components/hds/app-header/index.js +2 -2
- package/dist/components/hds/app-header/index.js.map +1 -1
- package/dist/components/hds/app-header/menu-button.js +1 -1
- package/dist/components/hds/app-header/menu-button.js.map +1 -1
- package/dist/components/hds/app-side-nav/index.js +1 -1
- package/dist/components/hds/app-side-nav/index.js.map +1 -1
- package/dist/components/hds/app-side-nav/list/index.js +1 -1
- package/dist/components/hds/app-side-nav/list/index.js.map +1 -1
- package/dist/components/hds/app-side-nav/list/title.js.map +1 -1
- package/dist/components/hds/app-side-nav/portal/target.js.map +1 -1
- package/dist/components/hds/application-state/header.js +1 -1
- package/dist/components/hds/application-state/header.js.map +1 -1
- package/dist/components/hds/application-state/index.js.map +1 -1
- package/dist/components/hds/application-state/types.js.map +1 -1
- package/dist/components/hds/badge/index.js.map +1 -1
- package/dist/components/hds/badge/types.js.map +1 -1
- package/dist/components/hds/badge-count/index.js.map +1 -1
- package/dist/components/hds/badge-count/types.js.map +1 -1
- package/dist/components/hds/breadcrumb/index.js.map +1 -1
- package/dist/components/hds/breadcrumb/item.js.map +1 -1
- package/dist/components/hds/breadcrumb/truncation.js.map +1 -1
- package/dist/components/hds/button/index.js +5 -5
- package/dist/components/hds/button/index.js.map +1 -1
- package/dist/components/hds/button/types.js.map +1 -1
- package/dist/components/hds/card/container.js +11 -11
- package/dist/components/hds/card/container.js.map +1 -1
- package/dist/components/hds/card/types.js.map +1 -1
- package/dist/components/hds/code-block/copy-button.js.map +1 -1
- package/dist/components/hds/code-block/description.js.map +1 -1
- package/dist/components/hds/code-block/index.js.map +1 -1
- package/dist/components/hds/code-block/title.js.map +1 -1
- package/dist/components/hds/code-block/types.js.map +1 -1
- package/dist/components/hds/code-editor/description.js.map +1 -1
- package/dist/components/hds/code-editor/full-screen-button.js +1 -1
- package/dist/components/hds/code-editor/full-screen-button.js.map +1 -1
- package/dist/components/hds/code-editor/index.js +3 -1
- package/dist/components/hds/code-editor/index.js.map +1 -1
- package/dist/components/hds/code-editor/title.js.map +1 -1
- package/dist/components/hds/copy/button/index.js.map +1 -1
- package/dist/components/hds/copy/button/types.js.map +1 -1
- package/dist/components/hds/copy/snippet/index.js.map +1 -1
- package/dist/components/hds/copy/snippet/types.js.map +1 -1
- package/dist/components/hds/dialog-primitive/footer.js.map +1 -1
- package/dist/components/hds/dialog-primitive/header.js.map +1 -1
- package/dist/components/hds/dialog-primitive/types.js.map +1 -1
- package/dist/components/hds/disclosure-primitive/index.js.map +1 -1
- package/dist/components/hds/dismiss-button/index.js +9 -6
- package/dist/components/hds/dismiss-button/index.js.map +1 -1
- package/dist/components/hds/dropdown/index.js.map +1 -1
- package/dist/components/hds/dropdown/list-item/checkbox.js.map +1 -1
- package/dist/components/hds/dropdown/list-item/checkmark.js.map +1 -1
- package/dist/components/hds/dropdown/list-item/copy-item.js.map +1 -1
- package/dist/components/hds/dropdown/list-item/description.js.map +1 -1
- package/dist/components/hds/dropdown/list-item/interactive.js.map +1 -1
- package/dist/components/hds/dropdown/list-item/radio.js.map +1 -1
- package/dist/components/hds/dropdown/list-item/title.js.map +1 -1
- package/dist/components/hds/dropdown/list-item/types.js.map +1 -1
- package/dist/components/hds/dropdown/toggle/button.js.map +1 -1
- package/dist/components/hds/dropdown/toggle/icon.js.map +1 -1
- package/dist/components/hds/dropdown/toggle/types.js.map +1 -1
- package/dist/components/hds/dropdown/types.js.map +1 -1
- package/dist/components/hds/flyout/body.js.map +1 -1
- package/dist/components/hds/flyout/description.js.map +1 -1
- package/dist/components/hds/flyout/footer.js.map +1 -1
- package/dist/components/hds/flyout/header.js.map +1 -1
- package/dist/components/hds/flyout/index.js.map +1 -1
- package/dist/components/hds/flyout/types.js.map +1 -1
- package/dist/components/hds/form/character-count/index.js.map +1 -1
- package/dist/components/hds/form/error/index.js.map +1 -1
- package/dist/components/hds/form/field/index.js.map +1 -1
- package/dist/components/hds/form/field/types.js.map +1 -1
- package/dist/components/hds/form/fieldset/index.js.map +1 -1
- package/dist/components/hds/form/fieldset/types.js.map +1 -1
- package/dist/components/hds/form/footer/index.js.map +1 -1
- package/dist/components/hds/form/header/index.js.map +1 -1
- package/dist/components/hds/form/header/title.js.map +1 -1
- package/dist/components/hds/form/helper-text/index.js.map +1 -1
- package/dist/components/hds/form/index.js.map +1 -1
- package/dist/components/hds/form/indicator/index.js +1 -1
- package/dist/components/hds/form/indicator/index.js.map +1 -1
- package/dist/components/hds/form/key-value-inputs/add-row-button.js.map +1 -1
- package/dist/components/hds/form/key-value-inputs/delete-row-button.js.map +1 -1
- package/dist/components/hds/form/key-value-inputs/field.js.map +1 -1
- package/dist/components/hds/form/key-value-inputs/generic.js.map +1 -1
- package/dist/components/hds/form/key-value-inputs/index.js.map +1 -1
- package/dist/components/hds/form/label/index.js.map +1 -1
- package/dist/components/hds/form/legend/index.js.map +1 -1
- package/dist/components/hds/form/masked-input/base.js +20 -5
- package/dist/components/hds/form/masked-input/base.js.map +1 -1
- package/dist/components/hds/form/radio-card/index.js.map +1 -1
- package/dist/components/hds/form/radio-card/types.js.map +1 -1
- package/dist/components/hds/form/section/index.js.map +1 -1
- package/dist/components/hds/form/section/multi-field-group/item.js.map +1 -1
- package/dist/components/hds/form/select/base.js.map +1 -1
- package/dist/components/hds/form/separator/index.js.map +1 -1
- package/dist/components/hds/form/super-select/after-options.js +1 -1
- package/dist/components/hds/form/super-select/multiple/base.js.map +1 -1
- package/dist/components/hds/form/super-select/multiple/field.js.map +1 -1
- package/dist/components/hds/form/super-select/single/base.js.map +1 -1
- package/dist/components/hds/form/super-select/single/field.js.map +1 -1
- package/dist/components/hds/form/super-select/types.js.map +1 -1
- package/dist/components/hds/form/text-input/base.js.map +1 -1
- package/dist/components/hds/form/text-input/field.js.map +1 -1
- package/dist/components/hds/form/text-input/types.js.map +1 -1
- package/dist/components/hds/form/textarea/base.js.map +1 -1
- package/dist/components/hds/form/types.js.map +1 -1
- package/dist/components/hds/icon/index.js +4 -4
- package/dist/components/hds/icon/index.js.map +1 -1
- package/dist/components/hds/icon/types.js.map +1 -1
- package/dist/components/hds/icon-tile/index.js.map +1 -1
- package/dist/components/hds/icon-tile/types.js.map +1 -1
- package/dist/components/hds/interactive/index.js.map +1 -1
- package/dist/components/hds/layout/flex/index.js.map +1 -1
- package/dist/components/hds/layout/flex/item.js.map +1 -1
- package/dist/components/hds/layout/flex/types.js.map +1 -1
- package/dist/components/hds/layout/grid/index.js.map +1 -1
- package/dist/components/hds/layout/grid/item.js.map +1 -1
- package/dist/components/hds/layout/grid/types.js.map +1 -1
- package/dist/components/hds/link/inline.js.map +1 -1
- package/dist/components/hds/link/standalone.js.map +1 -1
- package/dist/components/hds/link/types.js.map +1 -1
- package/dist/components/hds/menu-primitive/index.js.map +1 -1
- package/dist/components/hds/modal/body.js.map +1 -1
- package/dist/components/hds/modal/footer.js.map +1 -1
- package/dist/components/hds/modal/header.js.map +1 -1
- package/dist/components/hds/modal/index.js.map +1 -1
- package/dist/components/hds/modal/types.js.map +1 -1
- package/dist/components/hds/pagination/compact/index.js.map +1 -1
- package/dist/components/hds/pagination/info/index.js +37 -1
- package/dist/components/hds/pagination/info/index.js.map +1 -1
- package/dist/components/hds/pagination/nav/arrow.js.map +1 -1
- package/dist/components/hds/pagination/nav/number.js +1 -1
- package/dist/components/hds/pagination/nav/number.js.map +1 -1
- package/dist/components/hds/pagination/numbered/index.js.map +1 -1
- package/dist/components/hds/pagination/size-selector/index.js.map +1 -1
- package/dist/components/hds/pagination/types.js.map +1 -1
- package/dist/components/hds/popover-primitive/index.js.map +1 -1
- package/dist/components/hds/reveal/index.js.map +1 -1
- package/dist/components/hds/reveal/toggle/button.js.map +1 -1
- package/dist/components/hds/rich-tooltip/bubble.js.map +1 -1
- package/dist/components/hds/rich-tooltip/index.js.map +1 -1
- package/dist/components/hds/rich-tooltip/toggle.js +5 -5
- package/dist/components/hds/rich-tooltip/toggle.js.map +1 -1
- package/dist/components/hds/rich-tooltip/types.js.map +1 -1
- package/dist/components/hds/separator/index.js.map +1 -1
- package/dist/components/hds/separator/types.js.map +1 -1
- package/dist/components/hds/side-nav/base.js +1 -1
- package/dist/components/hds/side-nav/header/home-link.js.map +1 -1
- package/dist/components/hds/side-nav/header/icon-button.js.map +1 -1
- package/dist/components/hds/side-nav/index.js.map +1 -1
- package/dist/components/hds/side-nav/list/index.js.map +1 -1
- package/dist/components/hds/side-nav/list/title.js.map +1 -1
- package/dist/components/hds/side-nav/portal/target.js.map +1 -1
- package/dist/components/hds/stepper/list/index.js.map +1 -1
- package/dist/components/hds/stepper/list/step.js.map +1 -1
- package/dist/components/hds/stepper/nav/index.js.map +1 -1
- package/dist/components/hds/stepper/nav/panel.js.map +1 -1
- package/dist/components/hds/stepper/nav/step.js.map +1 -1
- package/dist/components/hds/stepper/step/indicator.js.map +1 -1
- package/dist/components/hds/stepper/task/indicator.js.map +1 -1
- package/dist/components/hds/stepper/types.js.map +1 -1
- package/dist/components/hds/table/index.js +19 -1
- package/dist/components/hds/table/index.js.map +1 -1
- package/dist/components/hds/table/td.js.map +1 -1
- package/dist/components/hds/table/th-button-sort.js +17 -3
- package/dist/components/hds/table/th-button-sort.js.map +1 -1
- package/dist/components/hds/table/th-button-tooltip.js +1 -1
- package/dist/components/hds/table/th-button-tooltip.js.map +1 -1
- package/dist/components/hds/table/th-selectable.js +1 -1
- package/dist/components/hds/table/th-selectable.js.map +1 -1
- package/dist/components/hds/table/th-sort.js.map +1 -1
- package/dist/components/hds/table/th.js.map +1 -1
- package/dist/components/hds/table/tr.js.map +1 -1
- package/dist/components/hds/table/types.js.map +1 -1
- package/dist/components/hds/tabs/index.js.map +1 -1
- package/dist/components/hds/tabs/panel.js.map +1 -1
- package/dist/components/hds/tabs/tab.js.map +1 -1
- package/dist/components/hds/tabs/types.js.map +1 -1
- package/dist/components/hds/tag/index.js.map +1 -1
- package/dist/components/hds/tag/types.js.map +1 -1
- package/dist/components/hds/text/body.js.map +1 -1
- package/dist/components/hds/text/code.js.map +1 -1
- package/dist/components/hds/text/display.js.map +1 -1
- package/dist/components/hds/text/index.js.map +1 -1
- package/dist/components/hds/text/types.js.map +1 -1
- package/dist/components/hds/time/index.js.map +1 -1
- package/dist/components/hds/time/range.js +1 -1
- package/dist/components/hds/time/range.js.map +1 -1
- package/dist/components/hds/tooltip-button/index.js.map +1 -1
- package/dist/components/hds/tooltip-button/types.js.map +1 -1
- package/dist/helpers/hds-format-date.js.map +1 -1
- package/dist/helpers/hds-format-relative.js.map +1 -1
- package/dist/helpers/hds-link-to-models.js.map +1 -1
- package/dist/helpers/hds-t.js +25 -0
- package/dist/helpers/hds-t.js.map +1 -0
- package/dist/instance-initializers/load-sprite.js.map +1 -1
- package/dist/modifiers/hds-advanced-table-cell/dom-management.js.map +1 -1
- package/dist/modifiers/hds-advanced-table-cell/keyboard-navigation.js.map +1 -1
- package/dist/modifiers/hds-advanced-table-cell.js.map +1 -1
- package/dist/modifiers/hds-anchored-position.js +8 -1
- package/dist/modifiers/hds-anchored-position.js.map +1 -1
- package/dist/modifiers/hds-clipboard.js.map +1 -1
- package/dist/modifiers/hds-code-editor/languages/rego.js.map +1 -1
- package/dist/modifiers/hds-code-editor/languages/sentinel.js.map +1 -1
- package/dist/modifiers/hds-code-editor/linters/json-linter.js.map +1 -1
- package/dist/modifiers/hds-code-editor/themes/hds-dark-theme.js.map +1 -1
- package/dist/modifiers/hds-code-editor/types.js.map +1 -1
- package/dist/modifiers/hds-code-editor.js +9 -1
- package/dist/modifiers/hds-code-editor.js.map +1 -1
- package/dist/modifiers/hds-register-event.js.map +1 -1
- package/dist/modifiers/hds-tooltip.js.map +1 -1
- package/dist/services/hds-intl.js +38 -0
- package/dist/services/hds-intl.js.map +1 -0
- package/dist/services/hds-time.js.map +1 -1
- package/dist/styles/@hashicorp/design-system-components.css +1 -0
- package/dist/styles/components/application-state.scss +1 -0
- package/dist/utils/hds-aria-described-by.js.map +1 -1
- package/dist/utils/hds-get-element-id.js.map +1 -1
- package/dist/utils/hds-resolve-link-to-external.js.map +1 -1
- package/package.json +11 -3
- package/translations/hds/components/advanced-table/th-button-expand/en-us.yaml +1 -0
- package/translations/hds/components/advanced-table/th-resize-handle/en-us.yaml +1 -0
- package/translations/hds/components/app-footer/copyright/en-us.yaml +1 -0
- package/translations/hds/components/app-footer/legal-links/en-us.yaml +5 -0
- package/translations/hds/components/app-side-nav/en-us.yaml +1 -0
- package/translations/hds/components/app-side-nav/list/en-us.yaml +1 -0
- package/translations/hds/components/code-editor/full-screen-button/en-us.yaml +1 -0
- package/translations/hds/components/common/en-us.yaml +8 -0
- package/translations/hds/components/dismiss-button/en-us.yaml +1 -0
- package/translations/hds/components/form/common/en-us.yml +2 -0
- package/translations/hds/components/form/masked-input/base/en-us.yaml +5 -0
- package/translations/hds/components/form/super-select/after-options/en-us.yaml +4 -0
- package/translations/hds/components/pagination/info/en-us.yaml +2 -0
- package/translations/hds/components/pagination/nav/en-us.yaml +1 -0
- package/translations/hds/components/table/en-us.yaml +1 -0
- package/translations/hds/modifiers/hds-code-editor/en-us.yaml +1 -0
package/README.md
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
design-system-components
|
|
2
|
-
==============================================================================
|
|
1
|
+
# design-system-components - TEST
|
|
3
2
|
|
|
4
3
|
A package containing the components for the Helios Design System.
|
|
5
4
|
|
|
6
5
|
[](https://badge.fury.io/js/%40hashicorp%2Fdesign-system-components)
|
|
7
6
|
|
|
8
|
-
Compatibility
|
|
9
|
-
------------------------------------------------------------------------------
|
|
7
|
+
## Compatibility
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
- Ember.js v3.28 or above
|
|
10
|
+
- Ember CLI v3.28 or above
|
|
11
|
+
- Node.js v16 or above
|
|
14
12
|
|
|
15
|
-
Installation
|
|
16
|
-
------------------------------------------------------------------------------
|
|
13
|
+
## Installation
|
|
17
14
|
|
|
18
15
|
```bash
|
|
19
16
|
pnpm add @hashicorp/design-system-components
|
|
@@ -43,22 +40,19 @@ sassOptions: {
|
|
|
43
40
|
Finally, add this line to the top of your app's style file (`app.scss` or similar):
|
|
44
41
|
|
|
45
42
|
```scss
|
|
46
|
-
@import
|
|
43
|
+
@import "@hashicorp/design-system-components";
|
|
47
44
|
```
|
|
48
45
|
|
|
49
46
|
⚠️ **Notice**: our component library assumes that a `*, *::before, *::after { box-sizing: border-box; }` reset is applied globally in the CSS of the application. If in your use case this is not true, please speak with the Design Systems Team (we can try to find a workaround).
|
|
50
47
|
|
|
51
|
-
Usage
|
|
52
|
-
------------------------------------------------------------------------------
|
|
48
|
+
## Usage
|
|
53
49
|
|
|
54
50
|
See the dedicated components website: https://helios.hashicorp.design/components
|
|
55
51
|
|
|
56
|
-
Contributing
|
|
57
|
-
------------------------------------------------------------------------------
|
|
52
|
+
## Contributing
|
|
58
53
|
|
|
59
54
|
See the [Contributing](CONTRIBUTING.md) guide for details.
|
|
60
55
|
|
|
61
|
-
License
|
|
62
|
-
------------------------------------------------------------------------------
|
|
56
|
+
## License
|
|
63
57
|
|
|
64
58
|
This project is licensed under the [Mozilla Public License 2.0](LICENSE.md).
|
|
@@ -13,7 +13,7 @@ export interface BaseHdsAdvancedTableTrSignature {
|
|
|
13
13
|
selectableColumnKey?: HdsAdvancedTableSignature['Args']['selectableColumnKey'];
|
|
14
14
|
isLastRow?: boolean;
|
|
15
15
|
isSelectable?: boolean;
|
|
16
|
-
isSelected?:
|
|
16
|
+
isSelected?: boolean;
|
|
17
17
|
isParentRow?: boolean;
|
|
18
18
|
selectionAriaLabelSuffix?: string;
|
|
19
19
|
selectionKey?: string;
|
|
@@ -9,7 +9,7 @@ import type { HdsApplicationStateMediaSignature } from './media';
|
|
|
9
9
|
import type { HdsApplicationStateHeaderSignature } from './header';
|
|
10
10
|
import type { HdsApplicationStateBodySignature } from './body';
|
|
11
11
|
import type { HdsApplicationStateFooterSignature } from './footer';
|
|
12
|
-
export declare const ALIGNS:
|
|
12
|
+
export declare const ALIGNS: HdsApplicationStateAligns[];
|
|
13
13
|
export interface HdsApplicationStateSignature {
|
|
14
14
|
Args: {
|
|
15
15
|
align?: HdsApplicationStateAligns;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
import Component from '@glimmer/component';
|
|
6
6
|
import { HdsBadgeCountColorValues, HdsBadgeCountSizeValues, HdsBadgeCountTypeValues } from './types.ts';
|
|
7
7
|
import type { HdsBadgeCountColors, HdsBadgeCountSizes, HdsBadgeCountTypes } from './types.ts';
|
|
8
|
-
export declare const SIZES:
|
|
9
|
-
export declare const TYPES:
|
|
10
|
-
export declare const COLORS:
|
|
8
|
+
export declare const SIZES: HdsBadgeCountSizes[];
|
|
9
|
+
export declare const TYPES: HdsBadgeCountTypes[];
|
|
10
|
+
export declare const COLORS: HdsBadgeCountColors[];
|
|
11
11
|
export declare const DEFAULT_SIZE = HdsBadgeCountSizeValues.Medium;
|
|
12
12
|
export declare const DEFAULT_TYPE = HdsBadgeCountTypeValues.Filled;
|
|
13
13
|
export declare const DEFAULT_COLOR = HdsBadgeCountColorValues.Neutral;
|
|
@@ -7,12 +7,12 @@ import { HdsButtonSizeValues, HdsButtonColorValues, HdsButtonIconPositionValues
|
|
|
7
7
|
import type { HdsButtonSizes, HdsButtonColors, HdsButtonIconPositions } from './types.ts';
|
|
8
8
|
import type { HdsInteractiveSignature } from '../interactive/';
|
|
9
9
|
import type { HdsIconSignature } from '../icon';
|
|
10
|
-
export declare const SIZES:
|
|
11
|
-
export declare const COLORS:
|
|
12
|
-
export declare const
|
|
10
|
+
export declare const SIZES: HdsButtonSizes[];
|
|
11
|
+
export declare const COLORS: HdsButtonColors[];
|
|
12
|
+
export declare const ICON_POSITIONS: HdsButtonIconPositions[];
|
|
13
13
|
export declare const DEFAULT_SIZE = HdsButtonSizeValues.Medium;
|
|
14
14
|
export declare const DEFAULT_COLOR = HdsButtonColorValues.Primary;
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const DEFAULT_ICON_POSITION = HdsButtonIconPositionValues.Leading;
|
|
16
16
|
export interface HdsButtonSignature {
|
|
17
17
|
Args: HdsInteractiveSignature['Args'] & {
|
|
18
18
|
size?: HdsButtonSizes;
|
|
@@ -9,10 +9,10 @@ export declare const DEFAULT_LEVEL = HdsCardLevelValues.Base;
|
|
|
9
9
|
export declare const DEFAULT_BACKGROUND = HdsCardBackgroundValues.NeutralPrimary;
|
|
10
10
|
export declare const DEFAULT_OVERFLOW = HdsCardOverflowValues.Visible;
|
|
11
11
|
export declare const DEFAULT_TAG = HdsCardTagValues.Div;
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
12
|
+
export declare const LEVELS: HdsCardLevel[];
|
|
13
|
+
export declare const BACKGROUNDS: HdsCardBackground[];
|
|
14
|
+
export declare const OVERFLOWS: HdsCardOverflow[];
|
|
15
|
+
export declare const TAGS: HdsCardTag[];
|
|
16
16
|
export interface HdsCardContainerSignature {
|
|
17
17
|
Args: {
|
|
18
18
|
level?: HdsCardLevel;
|
|
@@ -22,7 +22,7 @@ import 'prismjs/components/prism-shell-session';
|
|
|
22
22
|
import 'prismjs/components/prism-yaml';
|
|
23
23
|
import 'prismjs/components/prism-markup-templating';
|
|
24
24
|
import 'prismjs/components/prism-handlebars';
|
|
25
|
-
export declare const LANGUAGES:
|
|
25
|
+
export declare const LANGUAGES: HdsCodeBlockLanguages[];
|
|
26
26
|
export interface HdsCodeBlockSignature {
|
|
27
27
|
Args: {
|
|
28
28
|
ariaLabel?: string;
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* SPDX-License-Identifier: MPL-2.0
|
|
4
4
|
*/
|
|
5
5
|
import Component from '@glimmer/component';
|
|
6
|
+
import HdsCodeEditorDescription from './description.ts';
|
|
7
|
+
import HdsCodeEditorTitle from './title.ts';
|
|
8
|
+
import type { WithBoundArgs } from '@glint/template';
|
|
6
9
|
import type Owner from '@ember/owner';
|
|
7
10
|
import type { ComponentLike } from '@glint/template';
|
|
8
11
|
import type { HdsCodeEditorSignature as HdsCodeEditorModifierSignature } from '../../../modifiers/hds-code-editor.ts';
|
|
@@ -21,8 +24,8 @@ export interface HdsCodeEditorSignature {
|
|
|
21
24
|
Blocks: {
|
|
22
25
|
default: [
|
|
23
26
|
{
|
|
24
|
-
Title?:
|
|
25
|
-
Description?:
|
|
27
|
+
Title?: WithBoundArgs<typeof HdsCodeEditorTitle, 'onInsert' | 'editorId'>;
|
|
28
|
+
Description?: WithBoundArgs<typeof HdsCodeEditorDescription, 'onInsert' | 'editorId'>;
|
|
26
29
|
Generic?: ComponentLike<HdsCodeEditorGenericSignature>;
|
|
27
30
|
}
|
|
28
31
|
];
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* SPDX-License-Identifier: MPL-2.0
|
|
4
4
|
*/
|
|
5
5
|
import Component from '@glimmer/component';
|
|
6
|
+
import type HdsIntlService from '../../../services/hds-intl';
|
|
6
7
|
export interface HdsDismissButtonSignature {
|
|
7
8
|
Args: {
|
|
8
9
|
ariaLabel?: string;
|
|
@@ -10,10 +11,6 @@ export interface HdsDismissButtonSignature {
|
|
|
10
11
|
Element: HTMLButtonElement;
|
|
11
12
|
}
|
|
12
13
|
export default class HdsDismissButton extends Component<HdsDismissButtonSignature> {
|
|
13
|
-
|
|
14
|
-
* @param ariaLabel
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @default 'Dismiss'
|
|
17
|
-
*/
|
|
14
|
+
hdsIntl: HdsIntlService;
|
|
18
15
|
get ariaLabel(): string;
|
|
19
16
|
}
|
|
@@ -12,7 +12,7 @@ import HdsDialogPrimitiveFooterComponent from '../dialog-primitive/footer.ts';
|
|
|
12
12
|
import HdsDialogPrimitiveHeaderComponent from '../dialog-primitive/header.ts';
|
|
13
13
|
export declare const DEFAULT_SIZE = HdsFlyoutSizesValues.Medium;
|
|
14
14
|
export declare const DEFAULT_HAS_OVERLAY = true;
|
|
15
|
-
export declare const SIZES:
|
|
15
|
+
export declare const SIZES: HdsFlyoutSizes[];
|
|
16
16
|
export interface HdsFlyoutSignature {
|
|
17
17
|
Args: {
|
|
18
18
|
size?: HdsFlyoutSizes;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import Component from '@glimmer/component';
|
|
6
6
|
import type { HdsCopyButtonSignature } from '../../copy/button/index.ts';
|
|
7
7
|
import type { HdsFormVisibilityToggleSignature } from '../visibility-toggle/index.ts';
|
|
8
|
+
import type HdsIntlService from '../../../../services/hds-intl.ts';
|
|
8
9
|
export interface HdsFormMaskedInputBaseSignature {
|
|
9
10
|
Args: {
|
|
10
11
|
copyButtonText?: HdsCopyButtonSignature['Args']['text'];
|
|
@@ -23,6 +24,7 @@ export interface HdsFormMaskedInputBaseSignature {
|
|
|
23
24
|
Element: HTMLElement;
|
|
24
25
|
}
|
|
25
26
|
export default class HdsFormMaskedInputBase extends Component<HdsFormMaskedInputBaseSignature> {
|
|
27
|
+
hdsIntl: HdsIntlService;
|
|
26
28
|
_isContentMasked: boolean;
|
|
27
29
|
private _isControlled;
|
|
28
30
|
get isContentMasked(): boolean;
|
|
@@ -6,8 +6,8 @@ import Component from '@glimmer/component';
|
|
|
6
6
|
import type { HdsIconSizes, HdsIconColors } from './types';
|
|
7
7
|
import type { IconName } from '@hashicorp/flight-icons/svg';
|
|
8
8
|
import type Owner from '@ember/owner';
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
9
|
+
export declare const COLORS: HdsIconColors[];
|
|
10
|
+
export declare const NAMES: readonly ["loading", "loading-static", "running", "running-static", "apple", "apple-color", "alibaba", "alibaba-color", "amazon-ecs", "amazon-ecs-color", "amazon-eks", "amazon-eks-color", "auth0", "auth0-color", "aws", "aws-color", "aws-cdk", "aws-cdk-color", "aws-cloudwatch", "aws-cloudwatch-color", "aws-ec2", "aws-ec2-color", "aws-lambda", "aws-lambda-color", "aws-s3", "aws-s3-color", "azure", "azure-color", "azure-aks", "azure-aks-color", "azure-blob-storage", "azure-blob-storage-color", "azure-devops", "azure-devops-color", "azure-vms", "azure-vms-color", "bitbucket", "bitbucket-color", "bridgecrew", "bridgecrew-color", "cisco", "cisco-color", "codepen", "codepen-color", "confluence", "confluence-color", "confluent", "confluent-color", "datadog", "datadog-color", "digital-ocean", "digital-ocean-color", "docker", "docker-color", "duo", "duo-color", "elastic-observability", "elastic-observability-color", "f5", "f5-color", "facebook", "facebook-color", "figma", "figma-color", "gcp", "gcp-color", "git", "git-color", "gitlab", "gitlab-color", "github", "github-color", "google", "google-color", "google-docs", "google-docs-color", "google-drive", "google-drive-color", "google-forms", "google-forms-color", "google-sheets", "google-sheets-color", "google-slides", "google-slides-color", "grafana", "grafana-color", "helm", "helm-color", "infracost", "infracost-color", "jfrog", "jfrog-color", "jira", "jira-color", "jwt", "jwt-color", "kubernetes", "kubernetes-color", "lightlytics", "lightlytics-color", "linkedin", "linkedin-color", "linode", "linode-color", "linux", "linux-color", "loom", "loom-color", "meetup", "meetup-color", "microsoft", "microsoft-color", "microsoft-teams", "microsoft-teams-color", "minio", "minio-color", "mongodb", "mongodb-color", "new-relic", "new-relic-color", "okta", "okta-color", "oracle", "oracle-color", "opa", "opa-color", "openid", "openid-color", "pack", "pack-color", "pager-duty", "pager-duty-color", "ping-identity ", "ping-identity-color", "postgres", "postgres-color", "rabbitmq", "rabbitmq-color", "saml", "saml-color", "service-now", "service-now-color", "slack", "slack-color", "snyk", "snyk-color", "splunk", "splunk-color", "twilio", "twilio-color", "twitch", "twitch-color", "twitter", "twitter-color", "twitter-x", "twitter-x-color", "vantage", "vantage-color", "venafi", "venafi-color", "vercel", "vercel-color", "vmware", "vmware-color", "youtube", "youtube-color", "boundary", "boundary-color", "boundary-fill", "boundary-fill-color", "boundary-square", "boundary-square-color", "consul", "consul-color", "consul-fill", "consul-fill-color", "consul-square", "consul-square-color", "nomad", "nomad-color", "nomad-fill", "nomad-fill-color", "nomad-square", "nomad-square-color", "packer", "packer-color", "packer-fill", "packer-fill-color", "packer-square", "packer-square-color", "terraform", "terraform-color", "terraform-fill", "terraform-fill-color", "terraform-square", "terraform-square-color", "vagrant", "vagrant-color", "vagrant-fill", "vagrant-fill-color", "vagrant-square", "vagrant-square-color", "vault", "vault-color", "vault-fill", "vault-fill-color", "vault-square", "vault-square-color", "vault-radar", "vault-radar-color", "vault-radar-fill", "vault-radar-fill-color", "vault-radar-square", "vault-radar-square-color", "vault-secrets", "vault-secrets-color", "vault-secrets-fill", "vault-secrets-fill-color", "vault-secrets-square", "vault-secrets-square-color", "waypoint", "waypoint-color", "waypoint-fill", "waypoint-fill-color", "waypoint-square", "waypoint-square-color", "hashicorp", "hashicorp-color", "hashicorp-fill", "hashicorp-fill-color", "hashicorp-square", "hashicorp-square-color", "hcp", "hcp-color", "hcp-fill", "hcp-fill-color", "hcp-square", "hcp-square-color", "accessibility", "folder-users", "frown", "identity-service", "identity-user", "meh", "robot", "smile", "user", "user-check", "user-circle", "user-circle-fill", "user-minus", "user-plus", "user-x", "users", "ampersand", "beaker", "bucket", "bulb", "circle", "circle-dot", "circle-fill", "circle-half", "diamond", "diamond-fill", "disc", "dot", "dot-half", "droplet", "flag", "gift", "government", "handshake", "hash", "hexagon", "hexagon-fill", "labyrinth", "layers", "moon", "octagon", "outline", "random", "rocket", "sparkle", "square", "square-fill", "sun", "triangle", "triangle-fill", "truck", "wand", "zap", "zap-off", "docs", "docs-download", "docs-link", "guide", "guide-link", "help", "info", "info-fill", "learn", "learn-link", "support", "alert-circle", "alert-circle-fill", "alert-diamond", "alert-diamond-fill", "alert-octagon", "alert-octagon-fill", "alert-triangle", "alert-triangle-fill", "check", "check-circle", "check-circle-fill", "check-diamond", "check-diamond-fill", "check-hexagon", "check-hexagon-fill", "check-square", "check-square-fill", "skip", "x", "x-circle", "x-circle-fill", "x-diamond", "x-diamond-fill", "x-hexagon", "x-hexagon-fill", "x-square", "x-square-fill", "bug", "certificate", "eye", "eye-off", "fingerprint", "key", "keychain", "lock", "lock-fill", "lock-off", "shield", "shield-alert", "shield-check", "shield-off", "shield-x", "token", "unlock", "verified", "wall", "minus", "minus-circle", "minus-circle-fill", "minus-plus", "minus-plus-circle", "minus-plus-square", "minus-square", "minus-square-fill", "plus", "plus-circle", "plus-circle-fill", "plus-square", "camera", "camera-off", "cast", "closed-caption", "fast-forward", "film", "headphones", "image", "music", "pause", "pause-circle", "play", "play-circle", "radio", "rewind", "rss", "skip-back", "skip-forward", "speaker", "stop-circle", "volume", "volume-down", "volume-2", "volume-x", "wifi", "wifi-off", "compass", "crosshair", "map", "map-pin", "navigation", "navigation-alt", "redirect", "target", "align-center", "align-justify", "align-left", "align-right", "battery", "battery-charging", "bookmark", "bookmark-add", "bookmark-add-fill", "bookmark-fill", "bookmark-remove", "bookmark-remove-fill", "bottom", "top", "start", "end", "command", "crop", "dashboard", "delete", "download", "edit", "entry-point", "exit-point", "external-link", "filter", "filter-circle", "filter-fill", "grid", "grid-alt", "home", "jump-link", "layout", "link", "list", "maximize", "maximize-alt", "menu", "minimize", "minimize-alt", "more-horizontal", "more-vertical", "mouse-pointer", "move-horizontal", "paperclip", "pen-tool", "pencil-tool", "pin", "power", "printer", "reload", "repeat", "resize-column", "rotate-cw", "rotate-ccw", "search", "share", "sidebar", "sidebar-hide", "sidebar-show", "sign-in", "sign-out", "slash", "slash-square", "sort-asc", "sort-desc", "switcher", "sync", "sync-alert", "sync-reverse", "tag", "toggle-left", "toggle-right", "trash", "type", "text-wrap", "unfold-close", "unfold-open", "upload", "zoom-in", "zoom-out", "archive", "clipboard", "clipboard-checked", "clipboard-copy", "clipboard-x", "file", "file-change", "file-check", "file-diff", "file-minus", "file-plus", "file-source", "file-text", "file-x", "files", "folder", "folder-fill", "folder-minus", "folder-minus-fill", "folder-plus", "folder-plus-fill", "folder-star", "inbox", "api", "auto-apply", "build", "change", "change-circle", "change-square", "channel", "cloud", "cloud-check", "cloud-download", "cloud-lightning", "cloud-lock", "cloud-off", "cloud-upload", "cloud-x", "code", "connection", "connection-gateway", "cpu", "duplicate", "gateway", "git-branch", "git-commit", "git-merge", "git-pull-request", "git-repo", "hammer", "key-values", "mainframe", "mesh", "module", "monitor", "network", "network-alt", "node", "path", "pipeline", "plug", "replication-direct", "replication-perf", "scissors", "server", "server-cluster", "serverless", "service", "settings", "sliders", "smartphone", "socket", "step", "tablet", "terminal", "terminal-screen", "test", "tools", "transform-data", "tv", "webhook", "wrench", "calendar", "clock", "clock-filled", "delay", "event", "history", "hourglass", "watch", "bar-chart", "bar-chart-alt", "box", "collections", "database", "hard-drive", "line-chart", "line-chart-up", "logs", "package", "pie-chart", "queue", "save", "trend-down", "trend-up", "activity", "at-sign", "award", "bell", "bell-active", "bell-active-fill", "bell-off", "discussion-circle", "discussion-square", "heart", "heart-fill", "heart-off", "mail", "mail-open", "message-circle", "message-circle-fill", "message-square", "message-square-fill", "mic", "mic-off", "newspaper", "phone", "phone-call", "phone-off", "send", "star", "star-circle", "star-fill", "star-off", "thumbs-down", "thumbs-up", "video", "video-off", "bank-vault", "briefcase", "credit-card", "dollar-sign", "enterprise", "globe", "globe-private", "org", "provider", "shopping-bag", "shopping-cart", "arrow-down", "arrow-down-circle", "arrow-down-left", "arrow-down-right", "arrow-left", "arrow-left-circle", "arrow-right", "arrow-right-circle", "arrow-up", "arrow-up-circle", "arrow-up-left", "arrow-up-right", "caret", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "chevrons-down", "chevrons-left", "chevrons-right", "chevrons-up", "corner-down-left", "corner-down-right", "corner-left-down", "corner-left-up", "corner-right-down", "corner-right-up", "corner-up-left", "corner-up-right", "load-balancer", "migrate", "move", "shuffle", "swap-horizontal", "swap-vertical"];
|
|
11
11
|
export interface HdsIconSignature {
|
|
12
12
|
Args: {
|
|
13
13
|
name: IconName;
|
|
@@ -7,9 +7,9 @@ import type { HdsIconTileColors, HdsIconTileProducts, HdsIconTileSizes } from '.
|
|
|
7
7
|
import type { HdsIconSignature } from '../icon';
|
|
8
8
|
export declare const DEFAULT_SIZE = "medium";
|
|
9
9
|
export declare const DEFAULT_COLOR = "neutral";
|
|
10
|
-
export declare const SIZES:
|
|
11
|
-
export declare const COLORS:
|
|
12
|
-
export declare const PRODUCTS:
|
|
10
|
+
export declare const SIZES: HdsIconTileSizes[];
|
|
11
|
+
export declare const COLORS: HdsIconTileColors[];
|
|
12
|
+
export declare const PRODUCTS: HdsIconTileProducts[];
|
|
13
13
|
export interface HdsIconTileSignature {
|
|
14
14
|
Args: {
|
|
15
15
|
size?: HdsIconTileSizes;
|
|
@@ -11,8 +11,8 @@ import HdsDialogPrimitiveFooterComponent from '../dialog-primitive/footer.ts';
|
|
|
11
11
|
import { HdsModalSizeValues, HdsModalColorValues } from './types.ts';
|
|
12
12
|
export declare const DEFAULT_SIZE = HdsModalSizeValues.Medium;
|
|
13
13
|
export declare const DEFAULT_COLOR = HdsModalColorValues.Neutral;
|
|
14
|
-
export declare const SIZES:
|
|
15
|
-
export declare const COLORS:
|
|
14
|
+
export declare const SIZES: HdsModalSizes[];
|
|
15
|
+
export declare const COLORS: HdsModalColors[];
|
|
16
16
|
export interface HdsModalSignature {
|
|
17
17
|
Args: {
|
|
18
18
|
isDismissDisabled?: boolean;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import Component from '@glimmer/component';
|
|
6
6
|
import type { HdsPaginationNumberedSignature } from '../numbered/index';
|
|
7
7
|
import type { HdsTextBodySignature } from '../../text/body';
|
|
8
|
+
import type HdsIntlService from '../../../../services/hds-intl';
|
|
8
9
|
export interface HdsPaginationInfoSignature {
|
|
9
10
|
Args: {
|
|
10
11
|
itemsRangeStart: number;
|
|
@@ -15,5 +16,7 @@ export interface HdsPaginationInfoSignature {
|
|
|
15
16
|
Element: HdsTextBodySignature['Element'];
|
|
16
17
|
}
|
|
17
18
|
export default class HdsPaginationInfo extends Component<HdsPaginationInfoSignature> {
|
|
19
|
+
hdsIntl: HdsIntlService;
|
|
18
20
|
get showTotalItems(): boolean;
|
|
21
|
+
get translatedItemsRange(): string;
|
|
19
22
|
}
|
|
@@ -8,9 +8,9 @@ import type { HdsRichTooltipToggleIconPositions, HdsRichTooltipToggleSizes } fro
|
|
|
8
8
|
import type { HdsIconSignature } from '../icon';
|
|
9
9
|
import type { ModifierLike } from '@glint/template';
|
|
10
10
|
import type { SetupPrimitiveToggleModifier } from '../popover-primitive';
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const SIZES:
|
|
11
|
+
export declare const ICON_POSITIONS: HdsRichTooltipToggleIconPositions[];
|
|
12
|
+
export declare const DEFAULT_ICON_POSITION = HdsRichTooltipToggleIconPositionValues.Trailing;
|
|
13
|
+
export declare const SIZES: HdsRichTooltipToggleSizes[];
|
|
14
14
|
export interface HdsRichTooltipToggleSignature {
|
|
15
15
|
Args: {
|
|
16
16
|
text?: string;
|
|
@@ -10,7 +10,7 @@ export declare const STATUSES: string[];
|
|
|
10
10
|
export declare const MAPPING_STATUS_TO_SR_ONLY_TEXT: Record<HdsStepperStatusesValues, string>;
|
|
11
11
|
export interface HdsStepperListStepSignature {
|
|
12
12
|
Args: {
|
|
13
|
-
status?:
|
|
13
|
+
status?: HdsStepperStatuses;
|
|
14
14
|
titleTag?: HdsStepperTitleTags;
|
|
15
15
|
stepIds?: HdsStepperListStepIds;
|
|
16
16
|
didInsertNode?: (element: HTMLElement) => void;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import Component from '@glimmer/component';
|
|
6
6
|
import type { ComponentLike } from '@glint/template';
|
|
7
|
+
import type HdsIntlService from '../../../services/hds-intl.ts';
|
|
7
8
|
import { HdsTableDensityValues, HdsTableThSortOrderValues, HdsTableVerticalAlignmentValues } from './types.ts';
|
|
8
9
|
import type { HdsTableColumn, HdsTableDensities, HdsTableHorizontalAlignment, HdsTableOnSelectionChangeSignature, HdsTableSortingFunction, HdsTableThSortOrder, HdsTableVerticalAlignment, HdsTableModel } from './types';
|
|
9
10
|
import type { HdsFormCheckboxBaseSignature } from '../form/checkbox/base';
|
|
@@ -62,6 +63,7 @@ export interface HdsTableSignature {
|
|
|
62
63
|
Element: HTMLTableElement;
|
|
63
64
|
}
|
|
64
65
|
export default class HdsTable extends Component<HdsTableSignature> {
|
|
66
|
+
hdsIntl: HdsIntlService;
|
|
65
67
|
sortBy: string | undefined;
|
|
66
68
|
sortOrder: "desc" | "asc" | HdsTableThSortOrderValues;
|
|
67
69
|
private _selectAllCheckbox?;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import Component from '@glimmer/component';
|
|
6
6
|
import type { HdsTableThSortOrder, HdsTableThSortOrderIcons, HdsTableThSortOrderLabels } from './types.ts';
|
|
7
|
+
import type HdsIntlService from '../../../services/hds-intl.ts';
|
|
7
8
|
export interface HdsTableThButtonSortSignature {
|
|
8
9
|
Args: {
|
|
9
10
|
labelId?: string;
|
|
@@ -13,6 +14,7 @@ export interface HdsTableThButtonSortSignature {
|
|
|
13
14
|
Element: HTMLButtonElement;
|
|
14
15
|
}
|
|
15
16
|
export default class HdsTableThButtonSort extends Component<HdsTableThButtonSortSignature> {
|
|
17
|
+
hdsIntl: HdsIntlService;
|
|
16
18
|
private _prefixLabelId;
|
|
17
19
|
private _suffixLabelId;
|
|
18
20
|
get icon(): HdsTableThSortOrderIcons;
|
|
@@ -12,7 +12,7 @@ export interface BaseHdsTableTrSignature {
|
|
|
12
12
|
Args: {
|
|
13
13
|
selectableColumnKey?: HdsTableSignature['Args']['selectableColumnKey'];
|
|
14
14
|
isSelectable?: boolean;
|
|
15
|
-
isSelected?:
|
|
15
|
+
isSelected?: boolean;
|
|
16
16
|
selectionAriaLabelSuffix?: string;
|
|
17
17
|
selectionKey?: string;
|
|
18
18
|
selectionScope?: HdsTableScope;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
import Helper from '@ember/component/helper';
|
|
6
|
+
import type HdsIntlService from '../services/hds-intl';
|
|
7
|
+
import type { HdsIntlTOptions } from '../services/hds-intl';
|
|
8
|
+
interface HdsTHelperSignature {
|
|
9
|
+
Args: {
|
|
10
|
+
Positional: string[];
|
|
11
|
+
Named: HdsIntlTOptions;
|
|
12
|
+
};
|
|
13
|
+
Return: string;
|
|
14
|
+
}
|
|
15
|
+
export default class HdsTHelper extends Helper<HdsTHelperSignature> {
|
|
16
|
+
hdsIntl: HdsIntlService;
|
|
17
|
+
compute(positional: HdsTHelperSignature['Args']['Positional'], named: HdsTHelperSignature['Args']['Named']): HdsTHelperSignature['Return'];
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -3,8 +3,15 @@
|
|
|
3
3
|
* SPDX-License-Identifier: MPL-2.0
|
|
4
4
|
*/
|
|
5
5
|
import type { Placement, Strategy, OffsetOptions, FlipOptions, ShiftOptions, AutoPlacementOptions, ArrowOptions, Middleware } from '@floating-ui/dom';
|
|
6
|
+
export declare enum HdsEnableCollisionDetectionOptions {
|
|
7
|
+
Shift = "shift",
|
|
8
|
+
Flip = "flip",
|
|
9
|
+
Auto = "auto"
|
|
10
|
+
}
|
|
11
|
+
export type HdsEnableCollisionDetection = `${HdsEnableCollisionDetectionOptions}`;
|
|
6
12
|
export declare const DEFAULT_PLACEMENT = "bottom";
|
|
7
13
|
export declare const PLACEMENTS: Placement[];
|
|
14
|
+
export declare const ENABLE_COLLISION_DETECTION_OPTIONS: HdsEnableCollisionDetection[];
|
|
8
15
|
export type FloatingUIOptions = {
|
|
9
16
|
placement?: Placement;
|
|
10
17
|
strategy?: Strategy;
|
|
@@ -13,7 +20,7 @@ export type FloatingUIOptions = {
|
|
|
13
20
|
shiftOptions?: ShiftOptions;
|
|
14
21
|
autoPlacementOptions?: AutoPlacementOptions;
|
|
15
22
|
middlewareExtra?: Middleware[];
|
|
16
|
-
enableCollisionDetection?: boolean |
|
|
23
|
+
enableCollisionDetection?: boolean | HdsEnableCollisionDetection;
|
|
17
24
|
arrowElement?: ArrowOptions['element'];
|
|
18
25
|
arrowPadding?: ArrowOptions['padding'];
|
|
19
26
|
matchToggleWidth?: boolean;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import Modifier from 'ember-modifier';
|
|
6
6
|
import { Compartment } from '@codemirror/state';
|
|
7
|
+
import type HdsIntlService from '../services/hds-intl.ts';
|
|
7
8
|
import type { HdsCodeEditorLanguages } from './hds-code-editor/types.ts';
|
|
8
9
|
import type { ArgsFor, PositionalArgs, NamedArgs } from 'ember-modifier';
|
|
9
10
|
import type { EditorView as EditorViewType } from '@codemirror/view';
|
|
@@ -37,6 +38,7 @@ export interface HdsCodeEditorSignature {
|
|
|
37
38
|
}
|
|
38
39
|
export declare function getCSPNonceFromMeta(): string | undefined;
|
|
39
40
|
export default class HdsCodeEditorModifier extends Modifier<HdsCodeEditorSignature> {
|
|
41
|
+
hdsIntl: HdsIntlService;
|
|
40
42
|
editor: EditorViewType;
|
|
41
43
|
element: HTMLElementWithEditor;
|
|
42
44
|
onBlur: HdsCodeEditorSignature['Args']['Named']['onBlur'];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
import Service from '@ember/service';
|
|
6
|
+
import type { IntlService } from 'ember-intl';
|
|
7
|
+
import type { FormatMessageParameters } from 'ember-intl/-private/formatjs';
|
|
8
|
+
export type HdsIntlTOptions = FormatMessageParameters[1] & {
|
|
9
|
+
default: string;
|
|
10
|
+
htmlSafe?: boolean | undefined;
|
|
11
|
+
locale?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
export default class HdsIntlService extends Service {
|
|
14
|
+
get intl(): IntlService | undefined;
|
|
15
|
+
t(key: string, options: HdsIntlTOptions): string;
|
|
16
|
+
}
|
|
@@ -232,6 +232,7 @@ import type HdsLinkToModelsHelper from './helpers/hds-link-to-models.ts';
|
|
|
232
232
|
import type HdsLinkToQueryHelper from './helpers/hds-link-to-query.ts';
|
|
233
233
|
import type HdsFormatDateHelper from './helpers/hds-format-date.ts';
|
|
234
234
|
import type HdsFormatRelativeHelper from './helpers/hds-format-relative.ts';
|
|
235
|
+
import type HdsTHelper from './helpers/hds-t.ts';
|
|
235
236
|
import type HdsAnchoredPositionModifier from './modifiers/hds-anchored-position.ts';
|
|
236
237
|
import type HdsCodeEditorModifier from './modifiers/hds-code-editor.ts';
|
|
237
238
|
import type HdsClipboardModifier from './modifiers/hds-clipboard.ts';
|
|
@@ -722,6 +723,7 @@ export default interface HdsComponentsRegistry {
|
|
|
722
723
|
'hds-link-to-query': typeof HdsLinkToQueryHelper;
|
|
723
724
|
'hds-format-date': typeof HdsFormatDateHelper;
|
|
724
725
|
'hds-format-relative': typeof HdsFormatRelativeHelper;
|
|
726
|
+
'hds-t': typeof HdsTHelper;
|
|
725
727
|
'hds-anchored-position': typeof HdsAnchoredPositionModifier;
|
|
726
728
|
'hds-code-editor': typeof HdsCodeEditorModifier;
|
|
727
729
|
'hds-clipboard': typeof HdsClipboardModifier;
|
package/dist/README.md
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
design-system-components
|
|
2
|
-
==============================================================================
|
|
1
|
+
# design-system-components - TEST
|
|
3
2
|
|
|
4
3
|
A package containing the components for the Helios Design System.
|
|
5
4
|
|
|
6
5
|
[](https://badge.fury.io/js/%40hashicorp%2Fdesign-system-components)
|
|
7
6
|
|
|
8
|
-
Compatibility
|
|
9
|
-
------------------------------------------------------------------------------
|
|
7
|
+
## Compatibility
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
- Ember.js v3.28 or above
|
|
10
|
+
- Ember CLI v3.28 or above
|
|
11
|
+
- Node.js v16 or above
|
|
14
12
|
|
|
15
|
-
Installation
|
|
16
|
-
------------------------------------------------------------------------------
|
|
13
|
+
## Installation
|
|
17
14
|
|
|
18
15
|
```bash
|
|
19
16
|
pnpm add @hashicorp/design-system-components
|
|
@@ -43,22 +40,19 @@ sassOptions: {
|
|
|
43
40
|
Finally, add this line to the top of your app's style file (`app.scss` or similar):
|
|
44
41
|
|
|
45
42
|
```scss
|
|
46
|
-
@import
|
|
43
|
+
@import "@hashicorp/design-system-components";
|
|
47
44
|
```
|
|
48
45
|
|
|
49
46
|
⚠️ **Notice**: our component library assumes that a `*, *::before, *::after { box-sizing: border-box; }` reset is applied globally in the CSS of the application. If in your use case this is not true, please speak with the Design Systems Team (we can try to find a workaround).
|
|
50
47
|
|
|
51
|
-
Usage
|
|
52
|
-
------------------------------------------------------------------------------
|
|
48
|
+
## Usage
|
|
53
49
|
|
|
54
50
|
See the dedicated components website: https://helios.hashicorp.design/components
|
|
55
51
|
|
|
56
|
-
Contributing
|
|
57
|
-
------------------------------------------------------------------------------
|
|
52
|
+
## Contributing
|
|
58
53
|
|
|
59
54
|
See the [Contributing](CONTRIBUTING.md) guide for details.
|
|
60
55
|
|
|
61
|
-
License
|
|
62
|
-
------------------------------------------------------------------------------
|
|
56
|
+
## License
|
|
63
57
|
|
|
64
58
|
This project is licensed under the [Mozilla Public License 2.0](LICENSE.md).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@hashicorp/design-system-components/helpers/hds-t";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@hashicorp/design-system-components/services/hds-intl";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/hds/accordion/index.ts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: MPL-2.0\n */\n\nimport Component from '@glimmer/component';\nimport { assert } from '@ember/debug';\n\nimport { SIZES, DEFAULT_SIZE, TYPES, DEFAULT_TYPE } from './item/index.ts';\n\nimport type { ComponentLike } from '@glint/template';\nimport { HdsAccordionItemTitleTagValues } from './types.ts';\nimport type { HdsAccordionItemSignature } from './item/index.ts';\nimport type {\n HdsAccordionForceStates,\n HdsAccordionSizes,\n HdsAccordionTypes,\n HdsAccordionItemTitleTags,\n} from './types.ts';\n\nexport interface HdsAccordionSignature {\n Args: {\n size?: HdsAccordionSizes;\n type?: HdsAccordionTypes;\n forceState?: HdsAccordionForceStates;\n titleTag?: HdsAccordionItemTitleTags;\n };\n Blocks: {\n default: [\n {\n Item?: ComponentLike<HdsAccordionItemSignature>;\n },\n ];\n };\n Element: HTMLDivElement;\n}\n\nexport default class HdsAccordion extends Component<HdsAccordionSignature> {\n /**\n * Sets the size for the component\n *\n * @param size\n * @type {HdsAccordionSizes}\n * @default 'medium'\n */\n get size(): HdsAccordionSizes {\n const { size = DEFAULT_SIZE } = this.args;\n\n assert(\n `@size for \"Hds::Accordion\" must be one of the following: ${SIZES.join(\n ', '\n )}; received: ${size}`,\n SIZES.includes(size)\n );\n\n return size;\n }\n\n get titleTag(): HdsAccordionItemTitleTags {\n return this.args.titleTag ?? HdsAccordionItemTitleTagValues.Div;\n }\n\n /**\n * Sets the type of the component\n *\n * @param type\n * @type {HdsAccordionTypes}\n * @default 'card'\n */\n get type(): HdsAccordionTypes {\n const { type = DEFAULT_TYPE } = this.args;\n\n assert(\n `@type for \"Hds::Accordion\" must be one of the following: ${TYPES.join(\n ', '\n )}; received: ${type}`,\n TYPES.includes(type)\n );\n\n return type;\n }\n\n /**\n * Get the class names to apply to the component.\n * @method classNames\n * @return {string} The \"class\" attribute to apply to the component.\n */\n get classNames(): string {\n const classes = ['hds-accordion'];\n\n // add a class based on the @size argument\n classes.push(`hds-accordion--size-${this.size}`);\n\n // add a class based on the @type argument\n classes.push(`hds-accordion--type-${this.type}`);\n\n return classes.join(' ');\n }\n}\n"],"names":["HdsAccordion","Component","size","DEFAULT_SIZE","args","assert","SIZES","join","includes","titleTag","HdsAccordionItemTitleTagValues","Div","type","DEFAULT_TYPE","TYPES","classNames","classes","push","setComponentTemplate","TEMPLATE"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;;AAkCe,MAAMA,YAAY,SAASC,SAAS,CAAwB;AACzE;AACF;AACA;AACA;AACA;AACA;AACA;EACE,IAAIC,IAAIA,GAAsB;IAC5B,MAAM;AAAEA,MAAAA,IAAI,GAAGC;KAAc,GAAG,IAAI,CAACC,IAAI;AAEzCC,IAAAA,MAAM,CACJ,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/hds/accordion/index.ts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: MPL-2.0\n */\n\nimport Component from '@glimmer/component';\nimport { assert } from '@ember/debug';\n\nimport { SIZES, DEFAULT_SIZE, TYPES, DEFAULT_TYPE } from './item/index.ts';\n\nimport type { ComponentLike } from '@glint/template';\nimport { HdsAccordionItemTitleTagValues } from './types.ts';\nimport type { HdsAccordionItemSignature } from './item/index.ts';\nimport type {\n HdsAccordionForceStates,\n HdsAccordionSizes,\n HdsAccordionTypes,\n HdsAccordionItemTitleTags,\n} from './types.ts';\n\nexport interface HdsAccordionSignature {\n Args: {\n size?: HdsAccordionSizes;\n type?: HdsAccordionTypes;\n forceState?: HdsAccordionForceStates;\n titleTag?: HdsAccordionItemTitleTags;\n };\n Blocks: {\n default: [\n {\n Item?: ComponentLike<HdsAccordionItemSignature>;\n },\n ];\n };\n Element: HTMLDivElement;\n}\n\nexport default class HdsAccordion extends Component<HdsAccordionSignature> {\n /**\n * Sets the size for the component\n *\n * @param size\n * @type {HdsAccordionSizes}\n * @default 'medium'\n */\n get size(): HdsAccordionSizes {\n const { size = DEFAULT_SIZE } = this.args;\n\n assert(\n `@size for \"Hds::Accordion\" must be one of the following: ${SIZES.join(\n ', '\n )}; received: ${size}`,\n SIZES.includes(size)\n );\n\n return size;\n }\n\n get titleTag(): HdsAccordionItemTitleTags {\n return this.args.titleTag ?? HdsAccordionItemTitleTagValues.Div;\n }\n\n /**\n * Sets the type of the component\n *\n * @param type\n * @type {HdsAccordionTypes}\n * @default 'card'\n */\n get type(): HdsAccordionTypes {\n const { type = DEFAULT_TYPE } = this.args;\n\n assert(\n `@type for \"Hds::Accordion\" must be one of the following: ${TYPES.join(\n ', '\n )}; received: ${type}`,\n TYPES.includes(type)\n );\n\n return type;\n }\n\n /**\n * Get the class names to apply to the component.\n * @method classNames\n * @return {string} The \"class\" attribute to apply to the component.\n */\n get classNames(): string {\n const classes = ['hds-accordion'];\n\n // add a class based on the @size argument\n classes.push(`hds-accordion--size-${this.size}`);\n\n // add a class based on the @type argument\n classes.push(`hds-accordion--type-${this.type}`);\n\n return classes.join(' ');\n }\n}\n"],"names":["HdsAccordion","Component","size","DEFAULT_SIZE","args","assert","SIZES","join","includes","titleTag","HdsAccordionItemTitleTagValues","Div","type","DEFAULT_TYPE","TYPES","classNames","classes","push","setComponentTemplate","TEMPLATE"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;;AAkCe,MAAMA,YAAY,SAASC,SAAS,CAAwB;AACzE;AACF;AACA;AACA;AACA;AACA;AACA;EACE,IAAIC,IAAIA,GAAsB;IAC5B,MAAM;AAAEA,MAAAA,IAAI,GAAGC;KAAc,GAAG,IAAI,CAACC,IAAI;AAEzCC,IAAAA,MAAM,CACJ,CAAA,yDAAA,EAA4DC,KAAK,CAACC,IAAI,CACpE,IACF,CAAC,CAAA,YAAA,EAAeL,IAAI,CAAA,CAAE,EACtBI,KAAK,CAACE,QAAQ,CAACN,IAAI,CACrB,CAAC;AAED,IAAA,OAAOA,IAAI;AACb,EAAA;EAEA,IAAIO,QAAQA,GAA8B;IACxC,OAAO,IAAI,CAACL,IAAI,CAACK,QAAQ,IAAIC,8BAA8B,CAACC,GAAG;AACjE,EAAA;;AAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACE,IAAIC,IAAIA,GAAsB;IAC5B,MAAM;AAAEA,MAAAA,IAAI,GAAGC;KAAc,GAAG,IAAI,CAACT,IAAI;AAEzCC,IAAAA,MAAM,CACJ,CAAA,yDAAA,EAA4DS,KAAK,CAACP,IAAI,CACpE,IACF,CAAC,CAAA,YAAA,EAAeK,IAAI,CAAA,CAAE,EACtBE,KAAK,CAACN,QAAQ,CAACI,IAAI,CACrB,CAAC;AAED,IAAA,OAAOA,IAAI;AACb,EAAA;;AAEA;AACF;AACA;AACA;AACA;EACE,IAAIG,UAAUA,GAAW;AACvB,IAAA,MAAMC,OAAO,GAAG,CAAC,eAAe,CAAC;;AAEjC;IACAA,OAAO,CAACC,IAAI,CAAC,CAAA,oBAAA,EAAuB,IAAI,CAACf,IAAI,EAAE,CAAC;;AAEhD;IACAc,OAAO,CAACC,IAAI,CAAC,CAAA,oBAAA,EAAuB,IAAI,CAACL,IAAI,EAAE,CAAC;AAEhD,IAAA,OAAOI,OAAO,CAACT,IAAI,CAAC,GAAG,CAAC;AAC1B,EAAA;AACF;AAACW,oBAAA,CAAAC,QAAA,EA7DoBnB,YAAY,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sources":["../../../../../src/components/hds/accordion/item/button.ts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: MPL-2.0\n */\n\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\n\nimport type { HdsAccordionSizes } from '../types.ts';\n\nexport interface HdsAccordionItemButtonSignature {\n Args: {\n ariaLabel?: string;\n ariaLabelledBy?: string;\n contentId?: string;\n isOpen?: boolean;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onClickToggle?: (event: MouseEvent, ...args: any[]) => void;\n parentContainsInteractive?: boolean;\n size?: HdsAccordionSizes;\n id?: string;\n };\n Element: HTMLButtonElement;\n}\n\nexport default class HdsAccordionItemButton extends Component<HdsAccordionItemButtonSignature> {\n @action\n onClick(event: MouseEvent): void {\n if (this.args.onClickToggle) {\n this.args.onClickToggle(event);\n }\n }\n\n /**\n * Get the class names to apply to the component.\n * @method ItemButton#classNames\n * @return {string} The \"class\" attribute to apply to the component.\n */\n get classNames(): string {\n const classes = ['hds-accordion-item__button'];\n\n // add a class based on the @isOpen argument\n if (this.args.isOpen) {\n classes.push('hds-accordion-item__button--is-open');\n }\n\n // add a class based on the @size argument\n if (this.args.size) {\n classes.push(`hds-accordion-item__button--size-${this.args.size}`);\n }\n\n if (this.args.parentContainsInteractive === false) {\n classes.push(\n 'hds-accordion-item__button--parent-does-not-contain-interactive'\n );\n } else {\n classes.push('hds-accordion-item__button--parent-contains-interactive');\n }\n return classes.join(' ');\n }\n}\n"],"names":["HdsAccordionItemButton","Component","onClick","event","args","onClickToggle","n","prototype","action","classNames","classes","isOpen","push","size","parentContainsInteractive","join","setComponentTemplate","TEMPLATE"],"mappings":";;;;;;;;AAAA;AACA;AACA;AACA;;AAsBe,MAAMA,sBAAsB,SAASC,SAAS,CAAkC;EAE7FC,OAAOA,CAACC,KAAiB,EAAQ;AAC/B,IAAA,IAAI,IAAI,CAACC,IAAI,CAACC,aAAa,EAAE;AAC3B,MAAA,IAAI,CAACD,IAAI,CAACC,aAAa,CAACF,KAAK,CAAC;AAChC;AACF;;AAEA;AACF;AACA;AACA;AACA;AAJE,EAAA;IAAAG,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,SAAA,EAAA,CAPCC,MAAM,CAAA,CAAA;AAAA;EAYP,IAAIC,UAAUA,GAAW;AACvB,IAAA,MAAMC,OAAO,GAAG,CAAC,4BAA4B,CAAC;;AAE9C;AACA,IAAA,IAAI,IAAI,CAACN,IAAI,CAACO,MAAM,EAAE;AACpBD,MAAAA,OAAO,CAACE,IAAI,CAAC,qCAAqC,CAAC;AACrD;;AAEA;AACA,IAAA,IAAI,IAAI,CAACR,IAAI,CAACS,IAAI,EAAE;MAClBH,OAAO,CAACE,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"button.js","sources":["../../../../../src/components/hds/accordion/item/button.ts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: MPL-2.0\n */\n\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\n\nimport type { HdsAccordionSizes } from '../types.ts';\n\nexport interface HdsAccordionItemButtonSignature {\n Args: {\n ariaLabel?: string;\n ariaLabelledBy?: string;\n contentId?: string;\n isOpen?: boolean;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onClickToggle?: (event: MouseEvent, ...args: any[]) => void;\n parentContainsInteractive?: boolean;\n size?: HdsAccordionSizes;\n id?: string;\n };\n Element: HTMLButtonElement;\n}\n\nexport default class HdsAccordionItemButton extends Component<HdsAccordionItemButtonSignature> {\n @action\n onClick(event: MouseEvent): void {\n if (this.args.onClickToggle) {\n this.args.onClickToggle(event);\n }\n }\n\n /**\n * Get the class names to apply to the component.\n * @method ItemButton#classNames\n * @return {string} The \"class\" attribute to apply to the component.\n */\n get classNames(): string {\n const classes = ['hds-accordion-item__button'];\n\n // add a class based on the @isOpen argument\n if (this.args.isOpen) {\n classes.push('hds-accordion-item__button--is-open');\n }\n\n // add a class based on the @size argument\n if (this.args.size) {\n classes.push(`hds-accordion-item__button--size-${this.args.size}`);\n }\n\n if (this.args.parentContainsInteractive === false) {\n classes.push(\n 'hds-accordion-item__button--parent-does-not-contain-interactive'\n );\n } else {\n classes.push('hds-accordion-item__button--parent-contains-interactive');\n }\n return classes.join(' ');\n }\n}\n"],"names":["HdsAccordionItemButton","Component","onClick","event","args","onClickToggle","n","prototype","action","classNames","classes","isOpen","push","size","parentContainsInteractive","join","setComponentTemplate","TEMPLATE"],"mappings":";;;;;;;;AAAA;AACA;AACA;AACA;;AAsBe,MAAMA,sBAAsB,SAASC,SAAS,CAAkC;EAE7FC,OAAOA,CAACC,KAAiB,EAAQ;AAC/B,IAAA,IAAI,IAAI,CAACC,IAAI,CAACC,aAAa,EAAE;AAC3B,MAAA,IAAI,CAACD,IAAI,CAACC,aAAa,CAACF,KAAK,CAAC;AAChC,IAAA;AACF,EAAA;;AAEA;AACF;AACA;AACA;AACA;AAJE,EAAA;IAAAG,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,SAAA,EAAA,CAPCC,MAAM,CAAA,CAAA;AAAA;EAYP,IAAIC,UAAUA,GAAW;AACvB,IAAA,MAAMC,OAAO,GAAG,CAAC,4BAA4B,CAAC;;AAE9C;AACA,IAAA,IAAI,IAAI,CAACN,IAAI,CAACO,MAAM,EAAE;AACpBD,MAAAA,OAAO,CAACE,IAAI,CAAC,qCAAqC,CAAC;AACrD,IAAA;;AAEA;AACA,IAAA,IAAI,IAAI,CAACR,IAAI,CAACS,IAAI,EAAE;MAClBH,OAAO,CAACE,IAAI,CAAC,CAAA,iCAAA,EAAoC,IAAI,CAACR,IAAI,CAACS,IAAI,CAAA,CAAE,CAAC;AACpE,IAAA;AAEA,IAAA,IAAI,IAAI,CAACT,IAAI,CAACU,yBAAyB,KAAK,KAAK,EAAE;AACjDJ,MAAAA,OAAO,CAACE,IAAI,CACV,iEACF,CAAC;AACH,IAAA,CAAC,MAAM;AACLF,MAAAA,OAAO,CAACE,IAAI,CAAC,yDAAyD,CAAC;AACzE,IAAA;AACA,IAAA,OAAOF,OAAO,CAACK,IAAI,CAAC,GAAG,CAAC;AAC1B,EAAA;AACF;AAACC,oBAAA,CAAAC,QAAA,EAnCoBjB,sBAAsB,CAAA;;;;"}
|