@hashicorp/design-system-components 4.6.0 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/addon-main.cjs +16 -1
- package/declarations/components/hds/app-footer/status-link.d.ts +1 -1
- package/declarations/components/hds/badge/index.d.ts +2 -2
- package/declarations/components/hds/badge/index.d.ts.map +1 -1
- package/declarations/components/hds/button/index.d.ts +1 -1
- package/declarations/components/hds/button/index.d.ts.map +1 -1
- package/declarations/components/hds/dialog-primitive/body.d.ts +17 -0
- package/declarations/components/hds/dialog-primitive/body.d.ts.map +1 -0
- package/declarations/components/hds/dialog-primitive/description.d.ts +17 -0
- package/declarations/components/hds/dialog-primitive/description.d.ts.map +1 -0
- package/declarations/components/hds/dialog-primitive/footer.d.ts +22 -0
- package/declarations/components/hds/dialog-primitive/footer.d.ts.map +1 -0
- package/declarations/components/hds/dialog-primitive/header.d.ts +28 -0
- package/declarations/components/hds/dialog-primitive/header.d.ts.map +1 -0
- package/declarations/components/hds/dialog-primitive/overlay.d.ts +14 -0
- package/declarations/components/hds/dialog-primitive/overlay.d.ts.map +1 -0
- package/declarations/components/hds/dialog-primitive/wrapper.d.ts +16 -0
- package/declarations/components/hds/dialog-primitive/wrapper.d.ts.map +1 -0
- package/declarations/components/hds/dropdown/list-item/checkbox.d.ts +1 -1
- package/declarations/components/hds/dropdown/list-item/checkbox.d.ts.map +1 -1
- package/declarations/components/hds/dropdown/list-item/radio.d.ts +1 -1
- package/declarations/components/hds/dropdown/list-item/radio.d.ts.map +1 -1
- package/declarations/components/hds/flyout/body.d.ts +14 -1
- package/declarations/components/hds/flyout/body.d.ts.map +1 -1
- package/declarations/components/hds/flyout/description.d.ts +15 -0
- package/declarations/components/hds/flyout/description.d.ts.map +1 -1
- package/declarations/components/hds/flyout/footer.d.ts +19 -0
- package/declarations/components/hds/flyout/footer.d.ts.map +1 -1
- package/declarations/components/hds/flyout/header.d.ts +21 -1
- package/declarations/components/hds/flyout/header.d.ts.map +1 -1
- package/declarations/components/hds/flyout/index.d.ts +42 -12
- package/declarations/components/hds/flyout/index.d.ts.map +1 -1
- package/declarations/components/hds/flyout/types.d.ts +6 -0
- package/declarations/components/hds/flyout/types.d.ts.map +1 -0
- package/declarations/components/hds/form/character-count/index.d.ts +37 -10
- package/declarations/components/hds/form/character-count/index.d.ts.map +1 -1
- package/declarations/components/hds/form/checkbox/base.d.ts +13 -1
- package/declarations/components/hds/form/checkbox/base.d.ts.map +1 -1
- package/declarations/components/hds/form/checkbox/field.d.ts +28 -1
- package/declarations/components/hds/form/checkbox/field.d.ts.map +1 -1
- package/declarations/components/hds/form/checkbox/group.d.ts +29 -1
- package/declarations/components/hds/form/checkbox/group.d.ts.map +1 -1
- package/declarations/components/hds/form/error/index.d.ts +27 -6
- package/declarations/components/hds/form/error/index.d.ts.map +1 -1
- package/declarations/components/hds/form/error/message.d.ts +14 -1
- package/declarations/components/hds/form/error/message.d.ts.map +1 -1
- package/declarations/components/hds/form/field/index.d.ts +50 -15
- package/declarations/components/hds/form/field/index.d.ts.map +1 -1
- package/declarations/components/hds/form/field/types.d.ts +10 -0
- package/declarations/components/hds/form/field/types.d.ts.map +1 -0
- package/declarations/components/hds/form/fieldset/index.d.ts +43 -14
- package/declarations/components/hds/form/fieldset/index.d.ts.map +1 -1
- package/declarations/components/hds/form/fieldset/types.d.ts +10 -0
- package/declarations/components/hds/form/fieldset/types.d.ts.map +1 -0
- package/declarations/components/hds/form/file-input/base.d.ts +10 -1
- package/declarations/components/hds/form/file-input/base.d.ts.map +1 -1
- package/declarations/components/hds/form/file-input/field.d.ts +25 -1
- package/declarations/components/hds/form/file-input/field.d.ts.map +1 -1
- package/declarations/components/hds/form/helper-text/index.d.ts +20 -5
- package/declarations/components/hds/form/helper-text/index.d.ts.map +1 -1
- package/declarations/components/hds/form/indicator/index.d.ts +15 -3
- package/declarations/components/hds/form/indicator/index.d.ts.map +1 -1
- package/declarations/components/hds/form/label/index.d.ts +20 -4
- package/declarations/components/hds/form/label/index.d.ts.map +1 -1
- package/declarations/components/hds/form/legend/index.d.ts +18 -3
- package/declarations/components/hds/form/legend/index.d.ts.map +1 -1
- package/declarations/components/hds/form/masked-input/base.d.ts +26 -5
- package/declarations/components/hds/form/masked-input/base.d.ts.map +1 -1
- package/declarations/components/hds/form/masked-input/field.d.ts +28 -1
- package/declarations/components/hds/form/masked-input/field.d.ts.map +1 -1
- package/declarations/components/hds/form/radio/base.d.ts +13 -1
- package/declarations/components/hds/form/radio/base.d.ts.map +1 -1
- package/declarations/components/hds/form/radio/field.d.ts +28 -1
- package/declarations/components/hds/form/radio/field.d.ts.map +1 -1
- package/declarations/components/hds/form/radio/group.d.ts +29 -1
- package/declarations/components/hds/form/radio/group.d.ts.map +1 -1
- package/declarations/components/hds/form/radio-card/description.d.ts +14 -1
- package/declarations/components/hds/form/radio-card/description.d.ts.map +1 -1
- package/declarations/components/hds/form/radio-card/group.d.ts +32 -1
- package/declarations/components/hds/form/radio-card/group.d.ts.map +1 -1
- package/declarations/components/hds/form/radio-card/index.d.ts +45 -9
- package/declarations/components/hds/form/radio-card/index.d.ts.map +1 -1
- package/declarations/components/hds/form/radio-card/label.d.ts +14 -1
- package/declarations/components/hds/form/radio-card/label.d.ts.map +1 -1
- package/declarations/components/hds/form/radio-card/types.d.ts +15 -0
- package/declarations/components/hds/form/radio-card/types.d.ts.map +1 -0
- package/declarations/components/hds/form/select/base.d.ts +22 -3
- package/declarations/components/hds/form/select/base.d.ts.map +1 -1
- package/declarations/components/hds/form/select/field.d.ts +28 -1
- package/declarations/components/hds/form/select/field.d.ts.map +1 -1
- package/declarations/components/hds/form/text-input/base.d.ts +22 -6
- package/declarations/components/hds/form/text-input/base.d.ts.map +1 -1
- package/declarations/components/hds/form/text-input/field.d.ts +36 -7
- package/declarations/components/hds/form/text-input/field.d.ts.map +1 -1
- package/declarations/components/hds/form/text-input/types.d.ts +19 -0
- package/declarations/components/hds/form/text-input/types.d.ts.map +1 -0
- package/declarations/components/hds/form/textarea/base.d.ts +15 -3
- package/declarations/components/hds/form/textarea/base.d.ts.map +1 -1
- package/declarations/components/hds/form/textarea/field.d.ts +28 -1
- package/declarations/components/hds/form/textarea/field.d.ts.map +1 -1
- package/declarations/components/hds/form/toggle/base.d.ts +13 -1
- package/declarations/components/hds/form/toggle/base.d.ts.map +1 -1
- package/declarations/components/hds/form/toggle/field.d.ts +27 -1
- package/declarations/components/hds/form/toggle/field.d.ts.map +1 -1
- package/declarations/components/hds/form/toggle/group.d.ts +29 -1
- package/declarations/components/hds/form/toggle/group.d.ts.map +1 -1
- package/declarations/components/hds/form/visibility-toggle/index.d.ts +15 -1
- package/declarations/components/hds/form/visibility-toggle/index.d.ts.map +1 -1
- package/declarations/components/hds/modal/body.d.ts +14 -1
- package/declarations/components/hds/modal/body.d.ts.map +1 -1
- package/declarations/components/hds/modal/footer.d.ts +19 -1
- package/declarations/components/hds/modal/footer.d.ts.map +1 -1
- package/declarations/components/hds/modal/header.d.ts +21 -1
- package/declarations/components/hds/modal/header.d.ts.map +1 -1
- package/declarations/components/hds/modal/index.d.ts +44 -15
- package/declarations/components/hds/modal/index.d.ts.map +1 -1
- package/declarations/components/hds/modal/types.d.ts +17 -0
- package/declarations/components/hds/modal/types.d.ts.map +1 -0
- package/declarations/components/hds/stepper/task/indicator.d.ts +1 -1
- package/declarations/components/hds/stepper/task/indicator.d.ts.map +1 -1
- package/declarations/components.d.ts +57 -1
- package/declarations/components.d.ts.map +1 -1
- package/declarations/instance-initializers/load-sprite.d.ts +13 -0
- package/declarations/instance-initializers/load-sprite.d.ts.map +1 -0
- package/declarations/modifiers/hds-clipboard.d.ts +2 -2
- package/declarations/modifiers/hds-clipboard.d.ts.map +1 -1
- package/declarations/template-registry.d.ts +144 -0
- package/declarations/template-registry.d.ts.map +1 -1
- package/declarations/utils/hds-aria-described-by.d.ts +6 -8
- package/declarations/utils/hds-aria-described-by.d.ts.map +1 -1
- package/declarations/utils/hds-get-element-id.d.ts +5 -1
- package/declarations/utils/hds-get-element-id.d.ts.map +1 -1
- package/dist/_app_/components/hds/dialog-primitive/body.js +1 -0
- package/dist/_app_/components/hds/dialog-primitive/description.js +1 -0
- package/dist/_app_/components/hds/dialog-primitive/footer.js +1 -0
- package/dist/_app_/components/hds/dialog-primitive/header.js +1 -0
- package/dist/_app_/components/hds/dialog-primitive/overlay.js +1 -0
- package/dist/_app_/components/hds/dialog-primitive/wrapper.js +1 -0
- package/dist/components/hds/alert/description.js +2 -2
- package/dist/components/hds/alert/description.js.map +1 -1
- package/dist/components/hds/alert/title.js +2 -2
- package/dist/components/hds/alert/title.js.map +1 -1
- package/dist/components/hds/application-state/body.js +2 -2
- package/dist/components/hds/application-state/body.js.map +1 -1
- package/dist/components/hds/application-state/header.js +2 -2
- package/dist/components/hds/application-state/header.js.map +1 -1
- package/dist/components/hds/application-state/index.js +2 -2
- package/dist/components/hds/application-state/index.js.map +1 -1
- package/dist/components/hds/badge/index.js.map +1 -1
- package/dist/components/hds/button-set/index.js +2 -2
- package/dist/components/hds/button-set/index.js.map +1 -1
- package/dist/components/hds/code-block/copy-button.js +2 -2
- package/dist/components/hds/code-block/copy-button.js.map +1 -1
- package/dist/components/hds/code-block/description.js +2 -2
- package/dist/components/hds/code-block/description.js.map +1 -1
- package/dist/components/hds/code-block/title.js +2 -2
- package/dist/components/hds/code-block/title.js.map +1 -1
- package/dist/components/hds/dialog-primitive/body.js +16 -0
- package/dist/components/hds/dialog-primitive/body.js.map +1 -0
- package/dist/components/hds/dialog-primitive/description.js +16 -0
- package/dist/components/hds/dialog-primitive/description.js.map +1 -0
- package/dist/components/hds/dialog-primitive/footer.js +16 -0
- package/dist/components/hds/dialog-primitive/footer.js.map +1 -0
- package/dist/components/hds/dialog-primitive/header.js +37 -0
- package/dist/components/hds/dialog-primitive/header.js.map +1 -0
- package/dist/components/hds/dialog-primitive/overlay.js +16 -0
- package/dist/components/hds/dialog-primitive/overlay.js.map +1 -0
- package/dist/components/hds/dialog-primitive/wrapper.js +16 -0
- package/dist/components/hds/dialog-primitive/wrapper.js.map +1 -0
- package/dist/components/hds/dropdown/footer.js +2 -2
- package/dist/components/hds/dropdown/footer.js.map +1 -1
- package/dist/components/hds/dropdown/header.js +2 -2
- package/dist/components/hds/dropdown/header.js.map +1 -1
- package/dist/components/hds/dropdown/list-item/checkbox.js.map +1 -1
- package/dist/components/hds/dropdown/list-item/generic.js +2 -2
- package/dist/components/hds/dropdown/list-item/generic.js.map +1 -1
- package/dist/components/hds/dropdown/list-item/radio.js.map +1 -1
- package/dist/components/hds/dropdown/list-item/separator.js +2 -2
- package/dist/components/hds/dropdown/list-item/separator.js.map +1 -1
- package/dist/components/hds/dropdown/toggle/chevron.js +2 -2
- package/dist/components/hds/dropdown/toggle/chevron.js.map +1 -1
- package/dist/components/hds/flyout/body.js +24 -4
- package/dist/components/hds/flyout/body.js.map +1 -1
- package/dist/components/hds/flyout/description.js +24 -4
- package/dist/components/hds/flyout/description.js.map +1 -1
- package/dist/components/hds/flyout/footer.js +24 -4
- package/dist/components/hds/flyout/footer.js.map +1 -1
- package/dist/components/hds/flyout/header.js +24 -4
- package/dist/components/hds/flyout/header.js.map +1 -1
- package/dist/components/hds/flyout/index.js +19 -11
- package/dist/components/hds/flyout/index.js.map +1 -1
- package/dist/components/hds/flyout/types.js +8 -0
- package/dist/components/hds/flyout/types.js.map +1 -0
- package/dist/components/hds/form/character-count/index.js +27 -22
- package/dist/components/hds/form/character-count/index.js.map +1 -1
- package/dist/components/hds/form/checkbox/base.js +9 -3
- package/dist/components/hds/form/checkbox/base.js.map +1 -1
- package/dist/components/hds/form/checkbox/field.js +9 -3
- package/dist/components/hds/form/checkbox/field.js.map +1 -1
- package/dist/components/hds/form/checkbox/group.js +9 -3
- package/dist/components/hds/form/checkbox/group.js.map +1 -1
- package/dist/components/hds/form/error/index.js +10 -8
- package/dist/components/hds/form/error/index.js.map +1 -1
- package/dist/components/hds/form/error/message.js +9 -3
- package/dist/components/hds/form/error/message.js.map +1 -1
- package/dist/components/hds/form/field/index.js +34 -29
- package/dist/components/hds/form/field/index.js.map +1 -1
- package/dist/components/hds/form/field/types.js +13 -0
- package/dist/components/hds/form/field/types.js.map +1 -0
- package/dist/components/hds/form/fieldset/index.js +29 -25
- package/dist/components/hds/form/fieldset/index.js.map +1 -1
- package/dist/components/hds/form/fieldset/types.js +13 -0
- package/dist/components/hds/form/fieldset/types.js.map +1 -0
- package/dist/components/hds/form/file-input/base.js +9 -3
- package/dist/components/hds/form/file-input/base.js.map +1 -1
- package/dist/components/hds/form/file-input/field.js +9 -3
- package/dist/components/hds/form/file-input/field.js.map +1 -1
- package/dist/components/hds/form/helper-text/index.js +8 -7
- package/dist/components/hds/form/helper-text/index.js.map +1 -1
- package/dist/components/hds/form/indicator/index.js +5 -5
- package/dist/components/hds/form/indicator/index.js.map +1 -1
- package/dist/components/hds/form/label/index.js +6 -6
- package/dist/components/hds/form/label/index.js.map +1 -1
- package/dist/components/hds/form/legend/index.js +5 -5
- package/dist/components/hds/form/legend/index.js.map +1 -1
- package/dist/components/hds/form/masked-input/base.js +2 -2
- package/dist/components/hds/form/masked-input/base.js.map +1 -1
- package/dist/components/hds/form/masked-input/field.js +9 -3
- package/dist/components/hds/form/masked-input/field.js.map +1 -1
- package/dist/components/hds/form/radio/base.js +9 -3
- package/dist/components/hds/form/radio/base.js.map +1 -1
- package/dist/components/hds/form/radio/field.js +9 -3
- package/dist/components/hds/form/radio/field.js.map +1 -1
- package/dist/components/hds/form/radio/group.js +9 -3
- package/dist/components/hds/form/radio/group.js.map +1 -1
- package/dist/components/hds/form/radio-card/description.js +9 -3
- package/dist/components/hds/form/radio-card/description.js.map +1 -1
- package/dist/components/hds/form/radio-card/group.js +9 -3
- package/dist/components/hds/form/radio-card/group.js.map +1 -1
- package/dist/components/hds/form/radio-card/index.js +12 -11
- package/dist/components/hds/form/radio-card/index.js.map +1 -1
- package/dist/components/hds/form/radio-card/label.js +9 -3
- package/dist/components/hds/form/radio-card/label.js.map +1 -1
- package/dist/components/hds/form/radio-card/types.js +18 -0
- package/dist/components/hds/form/radio-card/types.js.map +1 -0
- package/dist/components/hds/form/select/base.js +2 -2
- package/dist/components/hds/form/select/base.js.map +1 -1
- package/dist/components/hds/form/select/field.js +9 -3
- package/dist/components/hds/form/select/field.js.map +1 -1
- package/dist/components/hds/form/super-select/after-options.js +2 -2
- package/dist/components/hds/form/super-select/after-options.js.map +1 -1
- package/dist/components/hds/form/super-select/multiple/field.js.map +1 -1
- package/dist/components/hds/form/super-select/placeholder.js +2 -2
- package/dist/components/hds/form/super-select/placeholder.js.map +1 -1
- package/dist/components/hds/form/super-select/single/field.js.map +1 -1
- package/dist/components/hds/form/text-input/base.js +8 -5
- package/dist/components/hds/form/text-input/base.js.map +1 -1
- package/dist/components/hds/form/text-input/field.js +2 -1
- package/dist/components/hds/form/text-input/field.js.map +1 -1
- package/dist/components/hds/form/text-input/types.js +22 -0
- package/dist/components/hds/form/text-input/types.js.map +1 -0
- package/dist/components/hds/form/textarea/base.js +2 -2
- package/dist/components/hds/form/textarea/base.js.map +1 -1
- package/dist/components/hds/form/textarea/field.js +9 -3
- package/dist/components/hds/form/textarea/field.js.map +1 -1
- package/dist/components/hds/form/toggle/base.js +9 -3
- package/dist/components/hds/form/toggle/base.js.map +1 -1
- package/dist/components/hds/form/toggle/field.js +9 -3
- package/dist/components/hds/form/toggle/field.js.map +1 -1
- package/dist/components/hds/form/toggle/group.js +9 -3
- package/dist/components/hds/form/toggle/group.js.map +1 -1
- package/dist/components/hds/form/visibility-toggle/index.js +9 -3
- package/dist/components/hds/form/visibility-toggle/index.js.map +1 -1
- package/dist/components/hds/modal/body.js +24 -4
- package/dist/components/hds/modal/body.js.map +1 -1
- package/dist/components/hds/modal/footer.js +24 -4
- package/dist/components/hds/modal/footer.js.map +1 -1
- package/dist/components/hds/modal/header.js +24 -4
- package/dist/components/hds/modal/header.js.map +1 -1
- package/dist/components/hds/modal/index.js +21 -14
- package/dist/components/hds/modal/index.js.map +1 -1
- package/dist/components/hds/modal/types.js +20 -0
- package/dist/components/hds/modal/types.js.map +1 -0
- package/dist/components/hds/page-header/actions.js +2 -2
- package/dist/components/hds/page-header/actions.js.map +1 -1
- package/dist/components/hds/page-header/badges.js +2 -2
- package/dist/components/hds/page-header/badges.js.map +1 -1
- package/dist/components/hds/page-header/description.js +2 -2
- package/dist/components/hds/page-header/description.js.map +1 -1
- package/dist/components/hds/page-header/index.js +2 -2
- package/dist/components/hds/page-header/index.js.map +1 -1
- package/dist/components/hds/page-header/subtitle.js +2 -2
- package/dist/components/hds/page-header/subtitle.js.map +1 -1
- package/dist/components/hds/page-header/title.js +2 -2
- package/dist/components/hds/page-header/title.js.map +1 -1
- package/dist/components/hds/pagination/nav/ellipsis.js +2 -2
- package/dist/components/hds/pagination/nav/ellipsis.js.map +1 -1
- package/dist/components/hds/rich-tooltip/index.js.map +1 -1
- package/dist/components/hds/segmented-group/index.js +2 -2
- package/dist/components/hds/segmented-group/index.js.map +1 -1
- package/dist/components/hds/side-nav/base.js +2 -2
- package/dist/components/hds/side-nav/base.js.map +1 -1
- package/dist/components/hds/side-nav/header/index.js +2 -2
- package/dist/components/hds/side-nav/header/index.js.map +1 -1
- package/dist/components/hds/side-nav/list/back-link.js +2 -2
- package/dist/components/hds/side-nav/list/back-link.js.map +1 -1
- package/dist/components/hds/side-nav/list/index.js +2 -2
- package/dist/components/hds/side-nav/list/index.js.map +1 -1
- package/dist/components/hds/side-nav/list/item.js +2 -2
- package/dist/components/hds/side-nav/list/item.js.map +1 -1
- package/dist/components/hds/side-nav/list/link.js +2 -2
- package/dist/components/hds/side-nav/list/link.js.map +1 -1
- package/dist/components/hds/side-nav/list/title.js +2 -2
- package/dist/components/hds/side-nav/list/title.js.map +1 -1
- package/dist/components/hds/side-nav/toggle-button.js +2 -2
- package/dist/components/hds/side-nav/toggle-button.js.map +1 -1
- package/dist/components/hds/toast/index.js +2 -2
- package/dist/components/hds/toast/index.js.map +1 -1
- package/dist/components/hds/yield/index.js +2 -2
- package/dist/components/hds/yield/index.js.map +1 -1
- package/dist/components.js +56 -0
- package/dist/components.js.map +1 -1
- package/dist/instance-initializers/load-sprite.js +33 -0
- package/dist/instance-initializers/load-sprite.js.map +1 -0
- package/dist/modifiers/hds-clipboard.js.map +1 -1
- package/dist/styles/@hashicorp/design-system-components.css +118 -148
- package/dist/styles/@hashicorp/design-system-components.scss +1 -0
- package/dist/styles/components/dialog-primitive.scss +143 -0
- package/dist/styles/components/flyout.scss +8 -70
- package/dist/styles/components/form/text-input.scss +6 -2
- package/dist/styles/components/modal.scss +18 -84
- package/dist/utils/hds-aria-described-by.js +1 -0
- package/dist/utils/hds-aria-described-by.js.map +1 -1
- package/dist/utils/hds-get-element-id.js +2 -0
- package/dist/utils/hds-get-element-id.js.map +1 -1
- package/package.json +9 -2
|
@@ -1,35 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
import Component from '@glimmer/component';
|
|
6
|
+
import type { HdsTextBodySignature } from '../../text/body';
|
|
7
|
+
interface HdsFormCharacterCountSignature {
|
|
8
|
+
Args: {
|
|
9
|
+
contextualClass?: string;
|
|
10
|
+
controlId?: string;
|
|
11
|
+
maxLength?: number | string;
|
|
12
|
+
minLength?: number | string;
|
|
13
|
+
onInsert?: (element: HTMLElement, ...args: any[]) => void;
|
|
14
|
+
value?: string;
|
|
15
|
+
};
|
|
16
|
+
Blocks: {
|
|
17
|
+
default?: [
|
|
18
|
+
{
|
|
19
|
+
minLength?: number;
|
|
20
|
+
maxLength?: number;
|
|
21
|
+
currentLength?: number;
|
|
22
|
+
remaining?: number;
|
|
23
|
+
shortfall?: number;
|
|
24
|
+
}
|
|
25
|
+
];
|
|
26
|
+
};
|
|
27
|
+
Element: HdsTextBodySignature['Element'];
|
|
28
|
+
}
|
|
29
|
+
export default class HdsFormCharacterCountComponent extends Component<HdsFormCharacterCountSignature> {
|
|
30
|
+
get currentLength(): number;
|
|
31
|
+
private _pluralize;
|
|
5
32
|
/**
|
|
6
33
|
* @param maxLength
|
|
7
34
|
* @type {number}
|
|
8
35
|
* @default null
|
|
9
36
|
* @description The maximum number of characters allowed.
|
|
10
37
|
*/
|
|
11
|
-
get maxLength(): number;
|
|
38
|
+
get maxLength(): number | undefined;
|
|
12
39
|
/**
|
|
13
40
|
* @param minLength
|
|
14
41
|
* @type {number}
|
|
15
42
|
* @default null
|
|
16
43
|
* @description The minimum number of characters allowed.
|
|
17
44
|
*/
|
|
18
|
-
get minLength(): number;
|
|
45
|
+
get minLength(): number | undefined;
|
|
19
46
|
/**
|
|
20
47
|
* @param remaining
|
|
21
48
|
* @type {number}
|
|
22
49
|
* @default null
|
|
23
50
|
* @description The remaining number of characters.
|
|
24
51
|
*/
|
|
25
|
-
get remaining(): number;
|
|
52
|
+
get remaining(): number | undefined;
|
|
26
53
|
/**
|
|
27
54
|
* @param shortfall
|
|
28
55
|
* @type {number}
|
|
29
56
|
* @default null
|
|
30
57
|
* @description The number of characters the content is falling short of.
|
|
31
58
|
*/
|
|
32
|
-
get shortfall(): number;
|
|
59
|
+
get shortfall(): number | undefined;
|
|
33
60
|
/**
|
|
34
61
|
* @param message
|
|
35
62
|
* @type {string}
|
|
@@ -48,7 +75,7 @@ export default class HdsFormCharacterCountIndexComponent extends Component<any>
|
|
|
48
75
|
* @type {function}
|
|
49
76
|
* @default () => {}
|
|
50
77
|
*/
|
|
51
|
-
get onInsert():
|
|
78
|
+
get onInsert(): (element: HTMLElement, ...args: any[]) => void;
|
|
52
79
|
/**
|
|
53
80
|
* Get the class names to apply to the component.
|
|
54
81
|
* @method classNames
|
|
@@ -56,5 +83,5 @@ export default class HdsFormCharacterCountIndexComponent extends Component<any>
|
|
|
56
83
|
*/
|
|
57
84
|
get classNames(): string;
|
|
58
85
|
}
|
|
59
|
-
|
|
86
|
+
export {};
|
|
60
87
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/character-count/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/character-count/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAK5D,UAAU,8BAA8B;IACtC,IAAI,EAAE;QACJ,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAC5B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAE5B,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;QAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,EAAE;QACN,OAAO,CAAC,EAAE;YACR;gBACE,SAAS,CAAC,EAAE,MAAM,CAAC;gBACnB,SAAS,CAAC,EAAE,MAAM,CAAC;gBACnB,aAAa,CAAC,EAAE,MAAM,CAAC;gBACvB,SAAS,CAAC,EAAE,MAAM,CAAC;gBACnB,SAAS,CAAC,EAAE,MAAM,CAAC;aACpB;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;CAC1C;AAED,MAAM,CAAC,OAAO,OAAO,8BAA+B,SAAQ,SAAS,CAAC,8BAA8B,CAAC;IAEnG,IAAI,aAAa,IAAI,MAAM,CAG1B;IAGD,OAAO,CAAC,UAAU;IAWlB;;;;;OAKG;IACH,IAAI,SAAS,IAAI,MAAM,GAAG,SAAS,CAKlC;IAED;;;;;OAKG;IACH,IAAI,SAAS,IAAI,MAAM,GAAG,SAAS,CAKlC;IAED;;;;;OAKG;IACH,IAAI,SAAS,IAAI,MAAM,GAAG,SAAS,CAElC;IAED;;;;;OAKG;IACH,IAAI,SAAS,IAAI,MAAM,GAAG,SAAS,CAElC;IAED;;;;;OAKG;IACH,IAAI,OAAO,IAAI,MAAM,CAoBpB;IAED;;;;OAIG;IACH,IAAI,EAAE,IAAI,MAAM,GAAG,IAAI,CAMtB;IAED;;;;OAIG;IAEH,IAAI,QAAQ,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAQ7D;IACD;;;;OAIG;IACH,IAAI,UAAU,IAAI,MAAM,CAWvB;CA8BF"}
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
/// <reference types="ember-source/types/stable/@ember/component/template-only" />
|
|
6
|
+
interface HdsFormCheckboxBaseSignature {
|
|
7
|
+
Args: {
|
|
8
|
+
value?: string;
|
|
9
|
+
};
|
|
10
|
+
Element: HTMLInputElement;
|
|
11
|
+
}
|
|
12
|
+
declare const HdsFormCheckboxBaseComponent: import("@ember/component/template-only").TemplateOnlyComponent<HdsFormCheckboxBaseSignature>;
|
|
13
|
+
export default HdsFormCheckboxBaseComponent;
|
|
2
14
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/checkbox/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/checkbox/base.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,UAAU,4BAA4B;IACpC,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,QAAA,MAAM,4BAA4B,8FACqB,CAAC;AAExD,eAAe,4BAA4B,CAAC"}
|
|
@@ -1,2 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
/// <reference types="ember-source/types/stable/@ember/component/template-only" />
|
|
6
|
+
import type { HdsFormFieldSignature } from '../field';
|
|
7
|
+
import type { ComponentLike } from '@glint/template';
|
|
8
|
+
import type { HdsFormLabelSignature } from '../label';
|
|
9
|
+
import type { HdsFormHelperTextSignature } from '../helper-text';
|
|
10
|
+
import type { HdsFormErrorSignature } from '../error';
|
|
11
|
+
export interface HdsFormCheckboxFieldSignature {
|
|
12
|
+
Args: Omit<HdsFormFieldSignature['Args'], 'isOptional'> & {
|
|
13
|
+
value?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
};
|
|
16
|
+
Blocks: {
|
|
17
|
+
default: [
|
|
18
|
+
{
|
|
19
|
+
Label?: ComponentLike<HdsFormLabelSignature>;
|
|
20
|
+
HelperText?: ComponentLike<HdsFormHelperTextSignature>;
|
|
21
|
+
Error?: ComponentLike<HdsFormErrorSignature>;
|
|
22
|
+
}
|
|
23
|
+
];
|
|
24
|
+
};
|
|
25
|
+
Element: HdsFormFieldSignature['Element'];
|
|
26
|
+
}
|
|
27
|
+
declare const HdsFormCheckboxFieldComponent: import("@ember/component/template-only").TemplateOnlyComponent<HdsFormCheckboxFieldSignature>;
|
|
28
|
+
export default HdsFormCheckboxFieldComponent;
|
|
2
29
|
//# sourceMappingURL=field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/checkbox/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/checkbox/field.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,GAAG;QACxD,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,KAAK,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;gBAC7C,UAAU,CAAC,EAAE,aAAa,CAAC,0BAA0B,CAAC,CAAC;gBACvD,KAAK,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;aAC9C;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;CAC3C;AAED,QAAA,MAAM,6BAA6B,+FACqB,CAAC;AAEzD,eAAe,6BAA6B,CAAC"}
|
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
/// <reference types="ember-source/types/stable/@ember/component/template-only" />
|
|
6
|
+
import type { HdsFormFieldsetSignature } from '../fieldset';
|
|
7
|
+
import type { ComponentLike } from '@glint/template';
|
|
8
|
+
import type { HdsFormLegendSignature } from '../legend';
|
|
9
|
+
import type { HdsFormHelperTextSignature } from '../helper-text';
|
|
10
|
+
import type { HdsFormCheckboxFieldSignature } from './field';
|
|
11
|
+
import type { HdsFormErrorSignature } from '../error';
|
|
12
|
+
interface HdsFormCheckboxGroupSignature {
|
|
13
|
+
Args: HdsFormFieldsetSignature['Args'] & {
|
|
14
|
+
name?: string;
|
|
15
|
+
};
|
|
16
|
+
Blocks: {
|
|
17
|
+
default: [
|
|
18
|
+
{
|
|
19
|
+
Legend?: ComponentLike<HdsFormLegendSignature>;
|
|
20
|
+
HelperText?: ComponentLike<HdsFormHelperTextSignature>;
|
|
21
|
+
CheckboxField?: ComponentLike<HdsFormCheckboxFieldSignature>;
|
|
22
|
+
Error?: ComponentLike<HdsFormErrorSignature>;
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
};
|
|
26
|
+
Element: HdsFormFieldsetSignature['Element'];
|
|
27
|
+
}
|
|
28
|
+
declare const HdsFormCheckboxGroupComponent: import("@ember/component/template-only").TemplateOnlyComponent<HdsFormCheckboxGroupSignature>;
|
|
29
|
+
export default HdsFormCheckboxGroupComponent;
|
|
2
30
|
//# sourceMappingURL=group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/checkbox/group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/checkbox/group.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEtD,UAAU,6BAA6B;IACrC,IAAI,EAAE,wBAAwB,CAAC,MAAM,CAAC,GAAG;QACvC,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,MAAM,CAAC,EAAE,aAAa,CAAC,sBAAsB,CAAC,CAAC;gBAC/C,UAAU,CAAC,EAAE,aAAa,CAAC,0BAA0B,CAAC,CAAC;gBACvD,aAAa,CAAC,EAAE,aAAa,CAAC,6BAA6B,CAAC,CAAC;gBAC7D,KAAK,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;aAC9C;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC9C;AAED,QAAA,MAAM,6BAA6B,+FACqB,CAAC;AAEzD,eAAe,6BAA6B,CAAC"}
|
|
@@ -1,6 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
import Component from '@glimmer/component';
|
|
6
|
+
import type { ComponentLike } from '@glint/template';
|
|
7
|
+
import type { HdsFormErrorMessageSignature } from './message';
|
|
8
|
+
export declare const ID_PREFIX = "error-";
|
|
9
|
+
export interface HdsFormErrorSignature {
|
|
10
|
+
Args: {
|
|
11
|
+
contextualClass?: string;
|
|
12
|
+
controlId?: string;
|
|
13
|
+
onInsert?: (element: HTMLElement, ...args: any[]) => void;
|
|
14
|
+
onRemove?: (element: HTMLElement, ...args: any[]) => void;
|
|
15
|
+
};
|
|
16
|
+
Blocks: {
|
|
17
|
+
default: [
|
|
18
|
+
{
|
|
19
|
+
Message?: ComponentLike<HdsFormErrorMessageSignature>;
|
|
20
|
+
}
|
|
21
|
+
];
|
|
22
|
+
};
|
|
23
|
+
Element: HTMLDivElement;
|
|
24
|
+
}
|
|
25
|
+
export default class HdsFormErrorComponent extends Component<HdsFormErrorSignature> {
|
|
4
26
|
/**
|
|
5
27
|
* Determines the unique ID to assign to the element
|
|
6
28
|
* @method id
|
|
@@ -12,13 +34,13 @@ export default class HdsFormErrorIndexComponent extends Component<any> {
|
|
|
12
34
|
* @type {function}
|
|
13
35
|
* @default () => {}
|
|
14
36
|
*/
|
|
15
|
-
get onInsert():
|
|
37
|
+
get onInsert(): (element: HTMLElement, ...args: any[]) => void;
|
|
16
38
|
/**
|
|
17
39
|
* @param onRemove
|
|
18
40
|
* @type {function}
|
|
19
41
|
* @default () => {}
|
|
20
42
|
*/
|
|
21
|
-
get onRemove():
|
|
43
|
+
get onRemove(): (element: HTMLElement, ...args: any[]) => void;
|
|
22
44
|
/**
|
|
23
45
|
* Get the class names to apply to the component.
|
|
24
46
|
* @method classNames
|
|
@@ -26,5 +48,4 @@ export default class HdsFormErrorIndexComponent extends Component<any> {
|
|
|
26
48
|
*/
|
|
27
49
|
get classNames(): string;
|
|
28
50
|
}
|
|
29
|
-
import Component from '@glimmer/component';
|
|
30
51
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/error/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/error/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAE9D,eAAO,MAAM,SAAS,WAAW,CAAC;AAIlC,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE;QACJ,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;QAE1D,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;KAC3D,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,OAAO,CAAC,EAAE,aAAa,CAAC,4BAA4B,CAAC,CAAC;aACvD;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,SAAS,CAAC,qBAAqB,CAAC;IACjF;;;;OAIG;IACH,IAAI,EAAE,IAAI,MAAM,GAAG,IAAI,CAMtB;IAED;;;;OAIG;IAEH,IAAI,QAAQ,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAS7D;IAED;;;;OAIG;IAEH,IAAI,QAAQ,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAS7D;IACD;;;;OAIG;IACH,IAAI,UAAU,IAAI,MAAM,CAWvB;CAkCF"}
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
/// <reference types="ember-source/types/stable/@ember/component/template-only" />
|
|
6
|
+
import type { HdsTextBodySignature } from '../../text/body';
|
|
7
|
+
export interface HdsFormErrorMessageSignature {
|
|
8
|
+
Blocks: {
|
|
9
|
+
default: [];
|
|
10
|
+
};
|
|
11
|
+
Element: HdsTextBodySignature['Element'];
|
|
12
|
+
}
|
|
13
|
+
declare const HdsFormErrorMessageComponent: import("@ember/component/template-only").TemplateOnlyComponent<HdsFormErrorMessageSignature>;
|
|
14
|
+
export default HdsFormErrorMessageComponent;
|
|
2
15
|
//# sourceMappingURL=message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/error/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/error/message.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IACF,OAAO,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;CAC1C;AAED,QAAA,MAAM,4BAA4B,8FACqB,CAAC;AAExD,eAAe,4BAA4B,CAAC"}
|
|
@@ -1,26 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
import Component from '@glimmer/component';
|
|
6
|
+
import { HdsFormFieldLayoutValues } from './types.ts';
|
|
7
|
+
import HdsFormLabelComponent from '../label/index.ts';
|
|
8
|
+
import HdsFormHelperTextComponent from '../helper-text/index.ts';
|
|
9
|
+
import HdsFormCharacterCountComponent from '../character-count/index.ts';
|
|
10
|
+
import HdsFormErrorComponent from '../error/index.ts';
|
|
11
|
+
import type { HdsFormFieldLayouts } from './types.ts';
|
|
12
|
+
import type { ComponentLike, WithBoundArgs } from '@glint/template';
|
|
13
|
+
import type { HdsYieldSignature } from '../../yield/index.ts';
|
|
14
|
+
export declare const LAYOUT_TYPES: HdsFormFieldLayoutValues[];
|
|
15
|
+
export interface HdsFormFieldSignature {
|
|
16
|
+
Args: {
|
|
17
|
+
id?: string;
|
|
18
|
+
extraAriaDescribedBy?: string;
|
|
19
|
+
contextualClass?: string;
|
|
20
|
+
isOptional?: boolean;
|
|
21
|
+
isRequired?: boolean;
|
|
22
|
+
layout?: HdsFormFieldLayouts;
|
|
23
|
+
};
|
|
24
|
+
Blocks: {
|
|
25
|
+
default: [
|
|
26
|
+
{
|
|
27
|
+
Label?: WithBoundArgs<typeof HdsFormLabelComponent, 'contextualClass' | 'controlId' | 'isRequired' | 'isOptional'>;
|
|
28
|
+
HelperText?: WithBoundArgs<typeof HdsFormHelperTextComponent, 'contextualClass' | 'controlId' | 'onInsert'>;
|
|
29
|
+
Control?: ComponentLike<HdsYieldSignature>;
|
|
30
|
+
CharacterCount?: WithBoundArgs<typeof HdsFormCharacterCountComponent, 'contextualClass' | 'controlId' | 'onInsert'>;
|
|
31
|
+
Error?: WithBoundArgs<typeof HdsFormErrorComponent, 'contextualClass' | 'controlId' | 'onInsert' | 'onRemove'>;
|
|
32
|
+
id?: string;
|
|
33
|
+
ariaDescribedBy?: string;
|
|
34
|
+
}
|
|
35
|
+
];
|
|
36
|
+
};
|
|
37
|
+
Element: HTMLElement;
|
|
38
|
+
}
|
|
39
|
+
declare class HdsFormFieldComponent extends Component<HdsFormFieldSignature> {
|
|
7
40
|
/**
|
|
8
41
|
* Sets the layout of the field
|
|
9
42
|
*
|
|
10
43
|
* @param layout
|
|
11
44
|
* @type {string}
|
|
12
45
|
*/
|
|
13
|
-
get layout():
|
|
46
|
+
get layout(): HdsFormFieldLayouts | undefined;
|
|
14
47
|
/**
|
|
15
48
|
* Calculates the unique ID to assign to the form control
|
|
16
49
|
*/
|
|
17
|
-
get id():
|
|
18
|
-
/**
|
|
19
|
-
* Get the class names to apply to the component.
|
|
20
|
-
* @method classNames
|
|
21
|
-
* @return {string} The "class" attribute to apply to the component.
|
|
22
|
-
*/
|
|
23
|
-
get classNames(): string;
|
|
50
|
+
get id(): string;
|
|
24
51
|
/**
|
|
25
52
|
* @param isRequired
|
|
26
53
|
* @type {boolean}
|
|
@@ -33,6 +60,14 @@ declare class HdsFormFieldIndexComponent extends Component<any> {
|
|
|
33
60
|
* @default false
|
|
34
61
|
*/
|
|
35
62
|
get isOptional(): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Get the class names to apply to the component.
|
|
65
|
+
* @method classNames
|
|
66
|
+
* @return {string} The "class" attribute to apply to the component.
|
|
67
|
+
*/
|
|
68
|
+
get classNames(): string;
|
|
69
|
+
appendDescriptor(element: HTMLElement): void;
|
|
70
|
+
removeDescriptor(element: HTMLElement): void;
|
|
36
71
|
}
|
|
37
|
-
|
|
72
|
+
export default HdsFormFieldComponent;
|
|
38
73
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/field/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/field/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAS3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,qBAAqB,MAAM,mBAAmB,CAAC;AACtD,OAAO,0BAA0B,MAAM,yBAAyB,CAAC;AACjE,OAAO,8BAA8B,MAAM,6BAA6B,CAAC;AACzE,OAAO,qBAAqB,MAAM,mBAAmB,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,eAAO,MAAM,YAAY,4BAA0C,CAAC;AAEpE,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE;QACJ,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,MAAM,CAAC,EAAE,mBAAmB,CAAC;KAC9B,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,KAAK,CAAC,EAAE,aAAa,CACnB,OAAO,qBAAqB,EAC5B,iBAAiB,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,CAC9D,CAAC;gBACF,UAAU,CAAC,EAAE,aAAa,CACxB,OAAO,0BAA0B,EACjC,iBAAiB,GAAG,WAAW,GAAG,UAAU,CAC7C,CAAC;gBACF,OAAO,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;gBAC3C,cAAc,CAAC,EAAE,aAAa,CAC5B,OAAO,8BAA8B,EACrC,iBAAiB,GAAG,WAAW,GAAG,UAAU,CAC7C,CAAC;gBACF,KAAK,CAAC,EAAE,aAAa,CACnB,OAAO,qBAAqB,EAC5B,iBAAiB,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAC1D,CAAC;gBACF,EAAE,CAAC,EAAE,MAAM,CAAC;gBACZ,eAAe,CAAC,EAAE,MAAM,CAAC;aAC1B;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,WAAW,CAAC;CACtB;AAGD,cACM,qBAAsB,SAAQ,SAAS,CAAC,qBAAqB,CAAC;IAClE;;;;;OAKG;IACH,IAAI,MAAM,IAAI,mBAAmB,GAAG,SAAS,CAW5C;IAED;;OAEG;IACH,IAAI,EAAE,IAAI,MAAM,CAEf;IAED;;;;OAIG;IACH,IAAI,UAAU,IAAI,OAAO,CAExB;IAED;;;;OAIG;IACH,IAAI,UAAU,IAAI,OAAO,CAExB;IAED;;;;OAIG;IACH,IAAI,UAAU,IAAI,MAAM,CAcvB;IAGD,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAIpC,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;CAsCrD;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
export declare enum HdsFormFieldLayoutValues {
|
|
6
|
+
Vertical = "vertical",
|
|
7
|
+
Flag = "flag"
|
|
8
|
+
}
|
|
9
|
+
export type HdsFormFieldLayouts = `${HdsFormFieldLayoutValues}`;
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/field/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,oBAAY,wBAAwB;IAClC,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED,MAAM,MAAM,mBAAmB,GAAG,GAAG,wBAAwB,EAAE,CAAC"}
|
|
@@ -1,8 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
import Component from '@glimmer/component';
|
|
6
|
+
import HdsFormLegendComponent from '../legend/index.ts';
|
|
7
|
+
import HdsFormHelperTextComponent from '../helper-text/index.ts';
|
|
8
|
+
import HdsFormErrorComponent from '../error/index.ts';
|
|
9
|
+
import type { ComponentLike, WithBoundArgs } from '@glint/template';
|
|
10
|
+
import type { HdsFormFieldsetLayouts } from './types.ts';
|
|
11
|
+
import type { HdsYieldSignature } from '../../yield/index.ts';
|
|
12
|
+
export interface HdsFormFieldsetSignature {
|
|
13
|
+
Args: {
|
|
14
|
+
isOptional?: boolean;
|
|
15
|
+
isRequired?: boolean;
|
|
16
|
+
layout?: HdsFormFieldsetLayouts;
|
|
17
|
+
};
|
|
18
|
+
Blocks: {
|
|
19
|
+
default: [
|
|
20
|
+
{
|
|
21
|
+
Legend?: WithBoundArgs<typeof HdsFormLegendComponent, 'contextualClass' | 'isRequired' | 'isOptional'>;
|
|
22
|
+
HelperText?: WithBoundArgs<typeof HdsFormHelperTextComponent, 'contextualClass' | 'controlId' | 'onInsert'>;
|
|
23
|
+
Control?: ComponentLike<HdsYieldSignature>;
|
|
24
|
+
Error?: WithBoundArgs<typeof HdsFormErrorComponent, 'contextualClass' | 'controlId' | 'onInsert' | 'onRemove'>;
|
|
25
|
+
id?: string;
|
|
26
|
+
ariaDescribedBy?: string;
|
|
27
|
+
}
|
|
28
|
+
];
|
|
29
|
+
};
|
|
30
|
+
Element: HTMLElement;
|
|
31
|
+
}
|
|
32
|
+
declare class HdsFormFieldsetComponent extends Component<HdsFormFieldsetSignature> {
|
|
6
33
|
/**
|
|
7
34
|
* Sets the layout of the group
|
|
8
35
|
*
|
|
@@ -10,17 +37,11 @@ declare class HdsFormFieldsetIndexComponent extends Component<any> {
|
|
|
10
37
|
* @type {enum}
|
|
11
38
|
* @default 'vertical'
|
|
12
39
|
*/
|
|
13
|
-
get layout():
|
|
40
|
+
get layout(): HdsFormFieldsetLayouts;
|
|
14
41
|
/**
|
|
15
42
|
* Calculates the unique ID to assign to the fieldset
|
|
16
43
|
*/
|
|
17
|
-
get id():
|
|
18
|
-
/**
|
|
19
|
-
* Get the class names to apply to the component.
|
|
20
|
-
* @method classNames
|
|
21
|
-
* @return {string} The "class" attribute to apply to the component.
|
|
22
|
-
*/
|
|
23
|
-
get classNames(): string;
|
|
44
|
+
get id(): string;
|
|
24
45
|
/**
|
|
25
46
|
* @param isRequired
|
|
26
47
|
* @type {boolean}
|
|
@@ -33,6 +54,14 @@ declare class HdsFormFieldsetIndexComponent extends Component<any> {
|
|
|
33
54
|
* @default false
|
|
34
55
|
*/
|
|
35
56
|
get isOptional(): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Get the class names to apply to the component.
|
|
59
|
+
* @method classNames
|
|
60
|
+
* @return {string} The "class" attribute to apply to the component.
|
|
61
|
+
*/
|
|
62
|
+
get classNames(): string;
|
|
63
|
+
appendDescriptor(element: HTMLElement): void;
|
|
64
|
+
removeDescriptor(element: HTMLElement): void;
|
|
36
65
|
}
|
|
37
|
-
|
|
66
|
+
export default HdsFormFieldsetComponent;
|
|
38
67
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/fieldset/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/fieldset/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAS3C,OAAO,sBAAsB,MAAM,oBAAoB,CAAC;AACxD,OAAO,0BAA0B,MAAM,yBAAyB,CAAC;AACjE,OAAO,qBAAqB,MAAM,mBAAmB,CAAC;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE;QACJ,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,MAAM,CAAC,EAAE,sBAAsB,CAAC;KACjC,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,MAAM,CAAC,EAAE,aAAa,CACpB,OAAO,sBAAsB,EAC7B,iBAAiB,GAAG,YAAY,GAAG,YAAY,CAChD,CAAC;gBACF,UAAU,CAAC,EAAE,aAAa,CACxB,OAAO,0BAA0B,EACjC,iBAAiB,GAAG,WAAW,GAAG,UAAU,CAC7C,CAAC;gBACF,OAAO,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;gBAC3C,KAAK,CAAC,EAAE,aAAa,CACnB,OAAO,qBAAqB,EAC5B,iBAAiB,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAC1D,CAAC;gBACF,EAAE,CAAC,EAAE,MAAM,CAAC;gBACZ,eAAe,CAAC,EAAE,MAAM,CAAC;aAC1B;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,WAAW,CAAC;CACtB;AAGD,cACM,wBAAyB,SAAQ,SAAS,CAAC,wBAAwB,CAAC;IACxE;;;;;;OAMG;IACH,IAAI,MAAM,IAAI,sBAAsB,CAEnC;IAED;;OAEG;IACH,IAAI,EAAE,IAAI,MAAM,CAEf;IAED;;;;OAIG;IACH,IAAI,UAAU,IAAI,OAAO,CAExB;IAED;;;;OAIG;IACH,IAAI,UAAU,IAAI,OAAO,CAExB;IAED;;;;OAIG;IACH,IAAI,UAAU,IAAI,MAAM,CAQvB;IAGD,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAIpC,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;CAmCrD;AAED,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
export declare enum HdsFormFieldsetLayoutValues {
|
|
6
|
+
Vertical = "vertical",
|
|
7
|
+
Flag = "flag"
|
|
8
|
+
}
|
|
9
|
+
export type HdsFormFieldsetLayouts = `${HdsFormFieldsetLayoutValues}`;
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/fieldset/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,oBAAY,2BAA2B;IACrC,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED,MAAM,MAAM,sBAAsB,GAAG,GAAG,2BAA2B,EAAE,CAAC"}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
/// <reference types="ember-source/types/stable/@ember/component/template-only" />
|
|
6
|
+
interface HdsFormFileInputBaseSignature {
|
|
7
|
+
Element: HTMLInputElement;
|
|
8
|
+
}
|
|
9
|
+
declare const HdsFormFileInputBaseComponent: import("@ember/component/template-only").TemplateOnlyComponent<HdsFormFileInputBaseSignature>;
|
|
10
|
+
export default HdsFormFileInputBaseComponent;
|
|
2
11
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/file-input/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/file-input/base.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,UAAU,6BAA6B;IACrC,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,QAAA,MAAM,6BAA6B,+FACqB,CAAC;AAEzD,eAAe,6BAA6B,CAAC"}
|
|
@@ -1,2 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
/// <reference types="ember-source/types/stable/@ember/component/template-only" />
|
|
6
|
+
import type { ComponentLike } from '@glint/template';
|
|
7
|
+
import type { HdsFormFieldSignature } from '../field';
|
|
8
|
+
import type { HdsFormLabelSignature } from '../label';
|
|
9
|
+
import type { HdsFormHelperTextSignature } from '../helper-text';
|
|
10
|
+
import type { HdsFormErrorSignature } from '../error';
|
|
11
|
+
interface HdsFormFileInputFieldSignature {
|
|
12
|
+
Args: Omit<HdsFormFieldSignature['Args'], 'contextualClass' | 'layout'>;
|
|
13
|
+
Blocks: {
|
|
14
|
+
default: [
|
|
15
|
+
{
|
|
16
|
+
Label?: ComponentLike<HdsFormLabelSignature>;
|
|
17
|
+
HelperText?: ComponentLike<HdsFormHelperTextSignature>;
|
|
18
|
+
Error?: ComponentLike<HdsFormErrorSignature>;
|
|
19
|
+
}
|
|
20
|
+
];
|
|
21
|
+
};
|
|
22
|
+
Element: HdsFormFieldSignature['Element'];
|
|
23
|
+
}
|
|
24
|
+
declare const HdsFormFileInputFieldComponent: import("@ember/component/template-only").TemplateOnlyComponent<HdsFormFileInputFieldSignature>;
|
|
25
|
+
export default HdsFormFileInputFieldComponent;
|
|
2
26
|
//# sourceMappingURL=field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/file-input/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/file-input/field.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEtD,UAAU,8BAA8B;IACtC,IAAI,EAAE,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,iBAAiB,GAAG,QAAQ,CAAC,CAAC;IACxE,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,KAAK,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;gBAC7C,UAAU,CAAC,EAAE,aAAa,CAAC,0BAA0B,CAAC,CAAC;gBACvD,KAAK,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;aAC9C;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;CAC3C;AAED,QAAA,MAAM,8BAA8B,gGACqB,CAAC;AAE1D,eAAe,8BAA8B,CAAC"}
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
import Component from '@glimmer/component';
|
|
6
|
+
import type { HdsTextBodySignature } from '../../text/body';
|
|
7
|
+
export declare const ID_PREFIX = "helper-text-";
|
|
8
|
+
export interface HdsFormHelperTextSignature {
|
|
9
|
+
Args: {
|
|
10
|
+
contextualClass?: string;
|
|
11
|
+
controlId?: string;
|
|
12
|
+
onInsert?: (element: HTMLElement, ...args: any[]) => void;
|
|
13
|
+
};
|
|
14
|
+
Blocks: {
|
|
15
|
+
default: [];
|
|
16
|
+
};
|
|
17
|
+
Element: HdsTextBodySignature['Element'];
|
|
18
|
+
}
|
|
19
|
+
export default class HdsFormHelperTextComponent extends Component<HdsFormHelperTextSignature> {
|
|
4
20
|
/**
|
|
5
21
|
* Determines the unique ID to assign to the element
|
|
6
22
|
* @method id
|
|
@@ -12,7 +28,7 @@ export default class HdsFormHelperTextIndexComponent extends Component<any> {
|
|
|
12
28
|
* @type {function}
|
|
13
29
|
* @default () => {}
|
|
14
30
|
*/
|
|
15
|
-
get onInsert():
|
|
31
|
+
get onInsert(): (element: HTMLElement, ...args: any[]) => void;
|
|
16
32
|
/**
|
|
17
33
|
* Get the class names to apply to the component.
|
|
18
34
|
* @method classNames
|
|
@@ -20,5 +36,4 @@ export default class HdsFormHelperTextIndexComponent extends Component<any> {
|
|
|
20
36
|
*/
|
|
21
37
|
get classNames(): string;
|
|
22
38
|
}
|
|
23
|
-
import Component from '@glimmer/component';
|
|
24
39
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/helper-text/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/helper-text/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,eAAO,MAAM,SAAS,iBAAiB,CAAC;AAIxC,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE;QACJ,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;KAC3D,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IACF,OAAO,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;CAC1C;AAED,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,SAAS,CAAC,0BAA0B,CAAC;IAC3F;;;;OAIG;IACH,IAAI,EAAE,IAAI,MAAM,GAAG,IAAI,CAMtB;IAED;;;;OAIG;IAEH,IAAI,QAAQ,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAS7D;IAED;;;;OAIG;IACH,IAAI,UAAU,IAAI,MAAM,CAWvB;CAmBF"}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
import Component from '@glimmer/component';
|
|
6
|
+
import type { HdsTextBodySignature } from '../../text/body';
|
|
7
|
+
import type { HdsBadgeSignature } from '../../badge';
|
|
8
|
+
export interface HdsFormIndicatorSignature {
|
|
9
|
+
Args: {
|
|
10
|
+
isOptional?: boolean;
|
|
11
|
+
isRequired?: boolean;
|
|
12
|
+
};
|
|
13
|
+
Element: HdsTextBodySignature['Element'] | HdsBadgeSignature['Element'];
|
|
14
|
+
}
|
|
15
|
+
export default class HdsFormIndicatorComponent extends Component<HdsFormIndicatorSignature> {
|
|
3
16
|
/**
|
|
4
17
|
* Get the class names to apply to the component.
|
|
5
18
|
* @method classNames
|
|
@@ -7,5 +20,4 @@ export default class HdsFormIndicatorIndexComponent extends Component<any> {
|
|
|
7
20
|
*/
|
|
8
21
|
get classNames(): string;
|
|
9
22
|
}
|
|
10
|
-
import Component from '@glimmer/component';
|
|
11
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/indicator/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/hds/form/indicator/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE;QACJ,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;IACF,OAAO,EAAE,oBAAoB,CAAC,SAAS,CAAC,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;CACzE;AAED,MAAM,CAAC,OAAO,OAAO,yBAA0B,SAAQ,SAAS,CAAC,yBAAyB,CAAC;IACzF;;;;OAIG;IACH,IAAI,UAAU,IAAI,MAAM,CASvB;CA2BF"}
|