@hashicorp/mds-react 0.9.0 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/components → components}/accordion/index.d.ts +1 -1
- package/{dist/components → components}/accordion/item/index.d.ts +1 -1
- package/{dist/components → components}/alert/icon.d.ts +2 -2
- package/{dist/components → components}/alert/index.d.ts +6 -6
- package/{dist/components → components}/badge/index.d.ts +1 -1
- package/{dist/components → components}/badge-count/index.d.ts +1 -1
- package/{dist/components → components}/breadcrumbs/index.d.ts +2 -2
- package/{dist/components → components}/breadcrumbs/item/index.d.ts +1 -1
- package/{dist/components → components}/breadcrumbs/truncation-button/index.d.ts +1 -1
- package/{dist/components → components}/breadcrumbs/types/index.d.ts +1 -1
- package/{dist/components → components}/button/index.d.ts +2 -2
- package/{dist/components → components}/card/card-thumbnail/index.d.ts +1 -1
- package/components/card/index.d.ts +3 -0
- package/{dist/components → components}/card/types.d.ts +3 -3
- package/{dist/components → components}/code-block/code-lines/index.d.ts +8 -1
- package/{dist/components → components}/code-block/code-lines/utils/split-html-into-lines.d.ts +1 -1
- package/{dist/components → components}/code-block/code-lines/utils/split-jsx-into-lines.d.ts +1 -1
- package/components/code-block/hidden-copy-content/index.d.ts +5 -0
- package/{dist/components → components}/code-block/index.d.ts +1 -1
- package/{dist/components → components}/combo-box-primitive/index.d.ts +0 -1
- package/{dist/components → components}/dialog-primitive/index.d.ts +1 -1
- package/{dist/components → components}/disclosure-primitive/index.d.ts +2 -1
- package/{dist/components → components}/disclosure-primitive/use-disclosure-primitive.d.ts +2 -2
- package/{dist/components → components}/dismiss-button/index.d.ts +0 -1
- package/{dist/components → components}/dropdown/index.d.ts +6 -6
- package/{dist/components → components}/dropdown/list-item/custom.d.ts +1 -1
- package/{dist/components → components}/dropdown/list-item/index.d.ts +4 -4
- package/{dist/components → components}/dropdown/list-item/interactive.d.ts +1 -1
- package/{dist/components → components}/dropdown/list-item/separator.d.ts +1 -1
- package/{dist/components → components}/dropdown/list-item/title.d.ts +1 -1
- package/{dist/components → components}/dropdown/toggle-button/index.d.ts +2 -2
- package/{dist/components → components}/flight-icon/index.d.ts +2 -2
- package/{dist/components → components}/form/checkbox/index.d.ts +1 -1
- package/{dist/components → components}/form/error/index.d.ts +1 -1
- package/{dist/components → components}/form/field/index.d.ts +1 -1
- package/{dist/components → components}/form/fieldset/index.d.ts +1 -1
- package/{dist/components → components}/form/file-input/index.d.ts +1 -1
- package/{dist/components → components}/form/helper-text/index.d.ts +1 -1
- package/{dist/components → components}/form/label/index.d.ts +1 -1
- package/{dist/components → components}/form/legend/index.d.ts +1 -1
- package/{dist/components → components}/form/radio/index.d.ts +1 -1
- package/{dist/components → components}/form/radio-card/group.d.ts +1 -1
- package/{dist/components → components}/form/radio-card/index.d.ts +2 -2
- package/{dist/components → components}/form/select/index.d.ts +1 -1
- package/{dist/components → components}/form/super-select/index.d.ts +2 -2
- package/{dist/components → components}/form/text-input/index.d.ts +1 -1
- package/{dist/components → components}/form/textarea/index.d.ts +1 -1
- package/{dist/components → components}/form/toggle/index.d.ts +1 -1
- package/{dist/components → components}/hds/wrappers/tooltip.d.ts +4 -3
- package/{dist/components → components}/icon-tile/index.d.ts +1 -1
- package/components/index.js +77 -0
- package/{dist/components → components}/inline-link/index.d.ts +1 -1
- package/{dist/components → components}/interactive/index.d.ts +4 -3
- package/{dist/components → components}/legacy-button/index.d.ts +3 -3
- package/{dist/components → components}/legacy-button/types.d.ts +1 -1
- package/{dist/components → components}/legacy-button/utils.d.ts +1 -1
- package/{dist/components → components}/menu-primitive/index.d.ts +1 -1
- package/{dist/components → components}/menu-primitive/use-menu-primitive.d.ts +2 -2
- package/{dist/components → components}/modal/index.d.ts +1 -1
- package/{dist/components → components}/modal/use-modal.d.ts +2 -2
- package/{dist/components → components}/separator/index.d.ts +1 -1
- package/{dist/components → components}/standalone-link/index.d.ts +2 -2
- package/{dist/components → components}/table/index.d.ts +5 -5
- package/{dist/components → components}/table/td.d.ts +2 -2
- package/{dist/components → components}/table/th.d.ts +2 -2
- package/{dist/components → components}/table/tr.d.ts +1 -1
- package/{dist/components → components}/tabs/index.d.ts +3 -3
- package/{dist/components → components}/tabs/tab-panel.d.ts +1 -1
- package/{dist/components → components}/tabs/tab.d.ts +2 -2
- package/{dist/components → components}/tabs/use-tabs-context.d.ts +2 -2
- package/{dist/components → components}/text/index.d.ts +6 -6
- package/{dist/components → components}/visualizations/bar-chart/horizontal-chart/index.d.ts +0 -1
- package/{dist/components → components}/visualizations/bar-chart/index.d.ts +1 -1
- package/components/visualizations/donut-chart/components/arc-tooltip/index.d.ts +3 -0
- package/components/visualizations/donut-chart/components/external-arc-label/index.d.ts +3 -0
- package/components/visualizations/donut-chart/components/internal-arc-label/index.d.ts +3 -0
- package/{dist/components → components}/visualizations/donut-chart/index.d.ts +1 -1
- package/index-B9mPJh9w.js +579 -0
- package/index-B9mPJh9w.js.map +1 -0
- package/index-BHBlMMNF.js +16 -0
- package/index-BHBlMMNF.js.map +1 -0
- package/index-C4GBbW3N.js +3567 -0
- package/index-C4GBbW3N.js.map +1 -0
- package/{dist/utils/mds-context/index.js → index-DBjAbGt7.js} +19 -20
- package/index-DBjAbGt7.js.map +1 -0
- package/index-WkGIywHj.js +767 -0
- package/index-WkGIywHj.js.map +1 -0
- package/index.js +105 -0
- package/{dist/patterns/index.js.map → index.js.map} +1 -1
- package/package.json +72 -108
- package/{dist/patterns → patterns}/card/newsroom-card/index.d.ts +1 -1
- package/{dist/patterns → patterns}/card/partner-card/index.d.ts +2 -2
- package/{dist/patterns → patterns}/card/person-card/index.d.ts +1 -1
- package/{dist/patterns → patterns}/card/primitives.d.ts +5 -5
- package/{dist/patterns → patterns}/card/promo-card/index.d.ts +1 -1
- package/{dist/patterns → patterns}/card/resource-card/index.d.ts +1 -1
- package/{dist/patterns → patterns}/card/thumbnails/index.d.ts +1 -1
- package/{dist/patterns → patterns}/card/types.d.ts +6 -6
- package/{dist/patterns → patterns}/card/unified-card/index.d.ts +1 -1
- package/{dist/patterns → patterns}/copy-button/clipboard.d.ts +1 -1
- package/{dist/patterns → patterns}/copy-button/index.d.ts +1 -1
- package/patterns/index.js +25 -0
- package/patterns/index.js.map +1 -0
- package/patterns/layout/index.d.ts +69 -0
- package/patterns/product-logo/index.d.ts +48 -0
- package/{dist/patterns → patterns}/related-content/index.d.ts +1 -1
- package/{dist/patterns → patterns}/related-content/types.d.ts +1 -1
- package/style.css +1 -0
- package/use-screen-size-BOnkX_K-.js +9 -0
- package/use-screen-size-BOnkX_K-.js.map +1 -0
- package/utils/i18n/index.d.ts +1 -0
- package/utils/index.js +10 -0
- package/utils/index.js.map +1 -0
- package/{dist/utils → utils}/make-normalizer/index.d.ts +6 -6
- package/{dist/utils → utils}/mds-context/index.d.ts +1 -1
- package/dist/components/accordion/index.js +0 -9
- package/dist/components/accordion/index.js.map +0 -1
- package/dist/components/accordion/item/button.js +0 -44
- package/dist/components/accordion/item/button.js.map +0 -1
- package/dist/components/accordion/item/index.js +0 -59
- package/dist/components/accordion/item/index.js.map +0 -1
- package/dist/components/accordion/style.module.scss.js +0 -24
- package/dist/components/accordion/style.module.scss.js.map +0 -1
- package/dist/components/alert/alert.module.scss.js +0 -29
- package/dist/components/alert/alert.module.scss.js.map +0 -1
- package/dist/components/alert/icon.js +0 -34
- package/dist/components/alert/icon.js.map +0 -1
- package/dist/components/alert/index.js +0 -97
- package/dist/components/alert/index.js.map +0 -1
- package/dist/components/badge/index.js +0 -50
- package/dist/components/badge/index.js.map +0 -1
- package/dist/components/badge/style.module.scss.js +0 -22
- package/dist/components/badge/style.module.scss.js.map +0 -1
- package/dist/components/badge-count/index.js +0 -29
- package/dist/components/badge-count/index.js.map +0 -1
- package/dist/components/badge-count/style.module.scss.js +0 -15
- package/dist/components/badge-count/style.module.scss.js.map +0 -1
- package/dist/components/breadcrumbs/index.js +0 -38
- package/dist/components/breadcrumbs/index.js.map +0 -1
- package/dist/components/breadcrumbs/item/index.js +0 -32
- package/dist/components/breadcrumbs/item/index.js.map +0 -1
- package/dist/components/breadcrumbs/style.module.scss.js +0 -27
- package/dist/components/breadcrumbs/style.module.scss.js.map +0 -1
- package/dist/components/breadcrumbs/truncation-button/index.js +0 -25
- package/dist/components/breadcrumbs/truncation-button/index.js.map +0 -1
- package/dist/components/button/index.js +0 -119
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/button/styles.module.scss.js +0 -32
- package/dist/components/button/styles.module.scss.js.map +0 -1
- package/dist/components/card/card-thumbnail/card-thumbnail.module.css.js +0 -8
- package/dist/components/card/card-thumbnail/card-thumbnail.module.css.js.map +0 -1
- package/dist/components/card/card-thumbnail/index.js +0 -23
- package/dist/components/card/card-thumbnail/index.js.map +0 -1
- package/dist/components/card/index.d.ts +0 -3
- package/dist/components/card/index.js +0 -157
- package/dist/components/card/index.js.map +0 -1
- package/dist/components/card/styles.module.css.js +0 -29
- package/dist/components/card/styles.module.css.js.map +0 -1
- package/dist/components/code-block/code-block.module.scss.js +0 -34
- package/dist/components/code-block/code-block.module.scss.js.map +0 -1
- package/dist/components/code-block/code-lines/index.js +0 -59
- package/dist/components/code-block/code-lines/index.js.map +0 -1
- package/dist/components/code-block/code-lines/utils/split-html-into-lines.js +0 -19
- package/dist/components/code-block/code-lines/utils/split-html-into-lines.js.map +0 -1
- package/dist/components/code-block/code-lines/utils/split-jsx-into-lines.js +0 -31
- package/dist/components/code-block/code-lines/utils/split-jsx-into-lines.js.map +0 -1
- package/dist/components/code-block/hidden-copy-content/index.d.ts +0 -5
- package/dist/components/code-block/hidden-copy-content/index.js +0 -13
- package/dist/components/code-block/hidden-copy-content/index.js.map +0 -1
- package/dist/components/code-block/index.js +0 -88
- package/dist/components/code-block/index.js.map +0 -1
- package/dist/components/code-block/utils/parse-highlighted-lines.js +0 -39
- package/dist/components/code-block/utils/parse-highlighted-lines.js.map +0 -1
- package/dist/components/code-block/utils/process-snippet.js +0 -20
- package/dist/components/code-block/utils/process-snippet.js.map +0 -1
- package/dist/components/code-block/utils/shellwords.js +0 -33
- package/dist/components/code-block/utils/shellwords.js.map +0 -1
- package/dist/components/combo-box-primitive/index.js +0 -302
- package/dist/components/combo-box-primitive/index.js.map +0 -1
- package/dist/components/dialog-primitive/dialog.module.scss.js +0 -12
- package/dist/components/dialog-primitive/dialog.module.scss.js.map +0 -1
- package/dist/components/dialog-primitive/index.js +0 -15
- package/dist/components/dialog-primitive/index.js.map +0 -1
- package/dist/components/disclosure-primitive/index.js +0 -57
- package/dist/components/disclosure-primitive/index.js.map +0 -1
- package/dist/components/disclosure-primitive/styles.module.css.js +0 -7
- package/dist/components/disclosure-primitive/styles.module.css.js.map +0 -1
- package/dist/components/disclosure-primitive/use-disclosure-primitive.js +0 -17
- package/dist/components/disclosure-primitive/use-disclosure-primitive.js.map +0 -1
- package/dist/components/dismiss-button/index.js +0 -22
- package/dist/components/dismiss-button/index.js.map +0 -1
- package/dist/components/dismiss-button/styles.module.scss.js +0 -7
- package/dist/components/dismiss-button/styles.module.scss.js.map +0 -1
- package/dist/components/dropdown/index.js +0 -79
- package/dist/components/dropdown/index.js.map +0 -1
- package/dist/components/dropdown/list-item/custom.js +0 -9
- package/dist/components/dropdown/list-item/custom.js.map +0 -1
- package/dist/components/dropdown/list-item/index.js +0 -14
- package/dist/components/dropdown/list-item/index.js.map +0 -1
- package/dist/components/dropdown/list-item/interactive.js +0 -49
- package/dist/components/dropdown/list-item/interactive.js.map +0 -1
- package/dist/components/dropdown/list-item/separator.js +0 -17
- package/dist/components/dropdown/list-item/separator.js.map +0 -1
- package/dist/components/dropdown/list-item/styles.module.css.js +0 -26
- package/dist/components/dropdown/list-item/styles.module.css.js.map +0 -1
- package/dist/components/dropdown/list-item/title.js +0 -9
- package/dist/components/dropdown/list-item/title.js.map +0 -1
- package/dist/components/dropdown/styles.module.css.js +0 -24
- package/dist/components/dropdown/styles.module.css.js.map +0 -1
- package/dist/components/dropdown/toggle-button/index.js +0 -54
- package/dist/components/dropdown/toggle-button/index.js.map +0 -1
- package/dist/components/dropdown/toggle-button/styles.module.scss.js +0 -14
- package/dist/components/dropdown/toggle-button/styles.module.scss.js.map +0 -1
- package/dist/components/flight-icon/flight-icon.module.css.js +0 -12
- package/dist/components/flight-icon/flight-icon.module.css.js.map +0 -1
- package/dist/components/flight-icon/index.js +0 -58
- package/dist/components/flight-icon/index.js.map +0 -1
- package/dist/components/form/checkbox/form-checkbox.module.css.js +0 -8
- package/dist/components/form/checkbox/form-checkbox.module.css.js.map +0 -1
- package/dist/components/form/checkbox/index.js +0 -109
- package/dist/components/form/checkbox/index.js.map +0 -1
- package/dist/components/form/error/form-error.module.css.js +0 -14
- package/dist/components/form/error/form-error.module.css.js.map +0 -1
- package/dist/components/form/error/index.js +0 -22
- package/dist/components/form/error/index.js.map +0 -1
- package/dist/components/form/field/form-field.module.css.js +0 -17
- package/dist/components/form/field/form-field.module.css.js.map +0 -1
- package/dist/components/form/field/index.js +0 -46
- package/dist/components/form/field/index.js.map +0 -1
- package/dist/components/form/fieldset/form-fieldset.module.css.js +0 -19
- package/dist/components/form/fieldset/form-fieldset.module.css.js.map +0 -1
- package/dist/components/form/fieldset/index.js +0 -65
- package/dist/components/form/fieldset/index.js.map +0 -1
- package/dist/components/form/file-input/form-file-input.module.scss.js +0 -7
- package/dist/components/form/file-input/form-file-input.module.scss.js.map +0 -1
- package/dist/components/form/file-input/index.js +0 -68
- package/dist/components/form/file-input/index.js.map +0 -1
- package/dist/components/form/helper-text/form-helper-text.module.css.js +0 -7
- package/dist/components/form/helper-text/form-helper-text.module.css.js.map +0 -1
- package/dist/components/form/helper-text/index.js +0 -22
- package/dist/components/form/helper-text/index.js.map +0 -1
- package/dist/components/form/indicator/form-indicator.module.css.js +0 -8
- package/dist/components/form/indicator/form-indicator.module.css.js.map +0 -1
- package/dist/components/form/indicator/index.js +0 -22
- package/dist/components/form/indicator/index.js.map +0 -1
- package/dist/components/form/label/form-label.module.css.js +0 -10
- package/dist/components/form/label/form-label.module.css.js.map +0 -1
- package/dist/components/form/label/index.js +0 -33
- package/dist/components/form/label/index.js.map +0 -1
- package/dist/components/form/legend/form-legend.module.css.js +0 -10
- package/dist/components/form/legend/form-legend.module.css.js.map +0 -1
- package/dist/components/form/legend/index.js +0 -19
- package/dist/components/form/legend/index.js.map +0 -1
- package/dist/components/form/radio/form-radio.module.scss.js +0 -8
- package/dist/components/form/radio/form-radio.module.scss.js.map +0 -1
- package/dist/components/form/radio/index.js +0 -100
- package/dist/components/form/radio/index.js.map +0 -1
- package/dist/components/form/radio-card/description.js +0 -10
- package/dist/components/form/radio-card/description.js.map +0 -1
- package/dist/components/form/radio-card/form-radio-card.module.css.js +0 -30
- package/dist/components/form/radio-card/form-radio-card.module.css.js.map +0 -1
- package/dist/components/form/radio-card/group.js +0 -31
- package/dist/components/form/radio-card/group.js.map +0 -1
- package/dist/components/form/radio-card/index.js +0 -67
- package/dist/components/form/radio-card/index.js.map +0 -1
- package/dist/components/form/radio-card/label.js +0 -10
- package/dist/components/form/radio-card/label.js.map +0 -1
- package/dist/components/form/select/form-select.module.css.js +0 -14
- package/dist/components/form/select/form-select.module.css.js.map +0 -1
- package/dist/components/form/select/index.js +0 -79
- package/dist/components/form/select/index.js.map +0 -1
- package/dist/components/form/super-select/form-super-select.module.css.js +0 -22
- package/dist/components/form/super-select/form-super-select.module.css.js.map +0 -1
- package/dist/components/form/super-select/index.js +0 -170
- package/dist/components/form/super-select/index.js.map +0 -1
- package/dist/components/form/text-input/index.js +0 -91
- package/dist/components/form/text-input/index.js.map +0 -1
- package/dist/components/form/text-input/styles.module.css.js +0 -15
- package/dist/components/form/text-input/styles.module.css.js.map +0 -1
- package/dist/components/form/textarea/form-textarea.module.css.js +0 -14
- package/dist/components/form/textarea/form-textarea.module.css.js.map +0 -1
- package/dist/components/form/textarea/index.js +0 -74
- package/dist/components/form/textarea/index.js.map +0 -1
- package/dist/components/form/toggle/form-toggle.module.scss.js +0 -12
- package/dist/components/form/toggle/form-toggle.module.scss.js.map +0 -1
- package/dist/components/form/toggle/index.js +0 -102
- package/dist/components/form/toggle/index.js.map +0 -1
- package/dist/components/hds/wrappers/tooltip.js +0 -51
- package/dist/components/hds/wrappers/tooltip.js.map +0 -1
- package/dist/components/icon-tile/index.js +0 -50
- package/dist/components/icon-tile/index.js.map +0 -1
- package/dist/components/icon-tile/style.module.scss.js +0 -29
- package/dist/components/icon-tile/style.module.scss.js.map +0 -1
- package/dist/components/index.js +0 -119
- package/dist/components/index.js.map +0 -1
- package/dist/components/inline-link/index.js +0 -33
- package/dist/components/inline-link/index.js.map +0 -1
- package/dist/components/inline-link/inline-link.module.css.js +0 -11
- package/dist/components/inline-link/inline-link.module.css.js.map +0 -1
- package/dist/components/interactive/index.js +0 -59
- package/dist/components/interactive/index.js.map +0 -1
- package/dist/components/legacy-button/index.js +0 -65
- package/dist/components/legacy-button/index.js.map +0 -1
- package/dist/components/legacy-button/utils.js +0 -39
- package/dist/components/legacy-button/utils.js.map +0 -1
- package/dist/components/menu-primitive/index.js +0 -68
- package/dist/components/menu-primitive/index.js.map +0 -1
- package/dist/components/menu-primitive/styles.module.css.js +0 -12
- package/dist/components/menu-primitive/styles.module.css.js.map +0 -1
- package/dist/components/menu-primitive/use-menu-primitive.js +0 -17
- package/dist/components/menu-primitive/use-menu-primitive.js.map +0 -1
- package/dist/components/modal/index.js +0 -61
- package/dist/components/modal/index.js.map +0 -1
- package/dist/components/modal/modal.module.css.js +0 -8
- package/dist/components/modal/modal.module.css.js.map +0 -1
- package/dist/components/modal/use-modal.js +0 -17
- package/dist/components/modal/use-modal.js.map +0 -1
- package/dist/components/separator/index.js +0 -15
- package/dist/components/separator/index.js.map +0 -1
- package/dist/components/separator/separator.module.css.js +0 -10
- package/dist/components/separator/separator.module.css.js.map +0 -1
- package/dist/components/standalone-link/index.js +0 -54
- package/dist/components/standalone-link/index.js.map +0 -1
- package/dist/components/standalone-link/styles.module.scss.js +0 -17
- package/dist/components/standalone-link/styles.module.scss.js.map +0 -1
- package/dist/components/table/index.js +0 -52
- package/dist/components/table/index.js.map +0 -1
- package/dist/components/table/table.module.scss.js +0 -33
- package/dist/components/table/table.module.scss.js.map +0 -1
- package/dist/components/table/td.js +0 -28
- package/dist/components/table/td.js.map +0 -1
- package/dist/components/table/th-button-tooltip.js +0 -24
- package/dist/components/table/th-button-tooltip.js.map +0 -1
- package/dist/components/table/th.js +0 -43
- package/dist/components/table/th.js.map +0 -1
- package/dist/components/table/tr.js +0 -9
- package/dist/components/table/tr.js.map +0 -1
- package/dist/components/table/utils.js +0 -28
- package/dist/components/table/utils.js.map +0 -1
- package/dist/components/tabs/index.js +0 -117
- package/dist/components/tabs/index.js.map +0 -1
- package/dist/components/tabs/tab-panel.js +0 -35
- package/dist/components/tabs/tab-panel.js.map +0 -1
- package/dist/components/tabs/tab.js +0 -70
- package/dist/components/tabs/tab.js.map +0 -1
- package/dist/components/tabs/tabs.module.scss.js +0 -22
- package/dist/components/tabs/tabs.module.scss.js.map +0 -1
- package/dist/components/tabs/use-tabs-context.js +0 -16
- package/dist/components/tabs/use-tabs-context.js.map +0 -1
- package/dist/components/text/index.js +0 -112
- package/dist/components/text/index.js.map +0 -1
- package/dist/components/text/style.module.scss.js +0 -9
- package/dist/components/text/style.module.scss.js.map +0 -1
- package/dist/components/visualizations/bar-chart/horizontal-chart/dataset-value/index.js +0 -62
- package/dist/components/visualizations/bar-chart/horizontal-chart/dataset-value/index.js.map +0 -1
- package/dist/components/visualizations/bar-chart/horizontal-chart/dataset-value/style.module.css.js +0 -20
- package/dist/components/visualizations/bar-chart/horizontal-chart/dataset-value/style.module.css.js.map +0 -1
- package/dist/components/visualizations/bar-chart/horizontal-chart/index.js +0 -104
- package/dist/components/visualizations/bar-chart/horizontal-chart/index.js.map +0 -1
- package/dist/components/visualizations/bar-chart/horizontal-chart/legend/index.js +0 -13
- package/dist/components/visualizations/bar-chart/horizontal-chart/legend/index.js.map +0 -1
- package/dist/components/visualizations/bar-chart/horizontal-chart/legend/style.module.css.js +0 -14
- package/dist/components/visualizations/bar-chart/horizontal-chart/legend/style.module.css.js.map +0 -1
- package/dist/components/visualizations/bar-chart/horizontal-chart/style.module.css.js +0 -28
- package/dist/components/visualizations/bar-chart/horizontal-chart/style.module.css.js.map +0 -1
- package/dist/components/visualizations/bar-chart/index.js +0 -37
- package/dist/components/visualizations/bar-chart/index.js.map +0 -1
- package/dist/components/visualizations/bar-chart/style.module.css.js +0 -12
- package/dist/components/visualizations/bar-chart/style.module.css.js.map +0 -1
- package/dist/components/visualizations/donut-chart/components/arc-tooltip/index.d.ts +0 -3
- package/dist/components/visualizations/donut-chart/components/arc-tooltip/index.js +0 -14
- package/dist/components/visualizations/donut-chart/components/arc-tooltip/index.js.map +0 -1
- package/dist/components/visualizations/donut-chart/components/arc-tooltip/styles.module.css.js +0 -10
- package/dist/components/visualizations/donut-chart/components/arc-tooltip/styles.module.css.js.map +0 -1
- package/dist/components/visualizations/donut-chart/components/external-arc-label/index.d.ts +0 -3
- package/dist/components/visualizations/donut-chart/components/external-arc-label/index.js +0 -58
- package/dist/components/visualizations/donut-chart/components/external-arc-label/index.js.map +0 -1
- package/dist/components/visualizations/donut-chart/components/external-arc-label/styles.module.css.js +0 -16
- package/dist/components/visualizations/donut-chart/components/external-arc-label/styles.module.css.js.map +0 -1
- package/dist/components/visualizations/donut-chart/components/internal-arc-label/index.d.ts +0 -3
- package/dist/components/visualizations/donut-chart/components/internal-arc-label/index.js +0 -42
- package/dist/components/visualizations/donut-chart/components/internal-arc-label/index.js.map +0 -1
- package/dist/components/visualizations/donut-chart/components/internal-arc-label/styles.module.css.js +0 -14
- package/dist/components/visualizations/donut-chart/components/internal-arc-label/styles.module.css.js.map +0 -1
- package/dist/components/visualizations/donut-chart/index.js +0 -90
- package/dist/components/visualizations/donut-chart/index.js.map +0 -1
- package/dist/components/visualizations/donut-chart/styles.module.css.js +0 -20
- package/dist/components/visualizations/donut-chart/styles.module.css.js.map +0 -1
- package/dist/hooks/use-media-query/index.js +0 -16
- package/dist/hooks/use-media-query/index.js.map +0 -1
- package/dist/index.js +0 -158
- package/dist/index.js.map +0 -1
- package/dist/patterns/card/newsroom-card/index.js +0 -26
- package/dist/patterns/card/newsroom-card/index.js.map +0 -1
- package/dist/patterns/card/newsroom-card/style.module.css.js +0 -8
- package/dist/patterns/card/newsroom-card/style.module.css.js.map +0 -1
- package/dist/patterns/card/partner-card/index.js +0 -42
- package/dist/patterns/card/partner-card/index.js.map +0 -1
- package/dist/patterns/card/partner-card/style.module.css.js +0 -12
- package/dist/patterns/card/partner-card/style.module.css.js.map +0 -1
- package/dist/patterns/card/person-card/index.js +0 -52
- package/dist/patterns/card/person-card/index.js.map +0 -1
- package/dist/patterns/card/person-card/style.module.css.js +0 -12
- package/dist/patterns/card/person-card/style.module.css.js.map +0 -1
- package/dist/patterns/card/primitives.js +0 -77
- package/dist/patterns/card/primitives.js.map +0 -1
- package/dist/patterns/card/promo-card/index.js +0 -36
- package/dist/patterns/card/promo-card/index.js.map +0 -1
- package/dist/patterns/card/resource-card/index.js +0 -26
- package/dist/patterns/card/resource-card/index.js.map +0 -1
- package/dist/patterns/card/style.module.css.js +0 -30
- package/dist/patterns/card/style.module.css.js.map +0 -1
- package/dist/patterns/card/thumbnails/index.js +0 -25
- package/dist/patterns/card/thumbnails/index.js.map +0 -1
- package/dist/patterns/card/unified-card/index.js +0 -37
- package/dist/patterns/card/unified-card/index.js.map +0 -1
- package/dist/patterns/copy-button/clipboard.js +0 -78
- package/dist/patterns/copy-button/clipboard.js.map +0 -1
- package/dist/patterns/copy-button/index.js +0 -57
- package/dist/patterns/copy-button/index.js.map +0 -1
- package/dist/patterns/copy-button/style.module.css.js +0 -13
- package/dist/patterns/copy-button/style.module.css.js.map +0 -1
- package/dist/patterns/index.js +0 -35
- package/dist/patterns/layout/index.d.ts +0 -69
- package/dist/patterns/layout/index.js +0 -47
- package/dist/patterns/layout/index.js.map +0 -1
- package/dist/patterns/layout/layout.module.css.js +0 -20
- package/dist/patterns/layout/layout.module.css.js.map +0 -1
- package/dist/patterns/product-badge/index.js +0 -22
- package/dist/patterns/product-badge/index.js.map +0 -1
- package/dist/patterns/product-badge/style.module.css.js +0 -8
- package/dist/patterns/product-badge/style.module.css.js.map +0 -1
- package/dist/patterns/product-logo/index.d.ts +0 -48
- package/dist/patterns/product-logo/index.js +0 -130
- package/dist/patterns/product-logo/index.js.map +0 -1
- package/dist/patterns/product-logo/product-logo.module.css.js +0 -13
- package/dist/patterns/product-logo/product-logo.module.css.js.map +0 -1
- package/dist/patterns/related-content/index.js +0 -65
- package/dist/patterns/related-content/index.js.map +0 -1
- package/dist/patterns/related-content/style.module.css.js +0 -22
- package/dist/patterns/related-content/style.module.css.js.map +0 -1
- package/dist/style.css +0 -1
- package/dist/utils/get-contrast-yiq.js +0 -13
- package/dist/utils/get-contrast-yiq.js.map +0 -1
- package/dist/utils/hooks/use-screen-size.js +0 -10
- package/dist/utils/hooks/use-screen-size.js.map +0 -1
- package/dist/utils/i18n/index.d.ts +0 -1
- package/dist/utils/i18n/index.js +0 -41
- package/dist/utils/i18n/index.js.map +0 -1
- package/dist/utils/index.js +0 -10
- package/dist/utils/make-normalizer/index.js +0 -34
- package/dist/utils/make-normalizer/index.js.map +0 -1
- package/dist/utils/mds-context/index.js.map +0 -1
- /package/{dist/components → components}/accordion/item/button.d.ts +0 -0
- /package/{dist/components → components}/accordion/style.module.scss +0 -0
- /package/{dist/components → components}/alert/alert.module.scss +0 -0
- /package/{dist/components → components}/badge/style.module.scss +0 -0
- /package/{dist/components → components}/badge-count/style.module.scss +0 -0
- /package/{dist/components → components}/breadcrumbs/style.module.scss +0 -0
- /package/{dist/components → components}/button/styles.module.scss +0 -0
- /package/{dist/components → components}/card/card-thumbnail/card-thumbnail.module.css +0 -0
- /package/{dist/components → components}/card/styles.module.css +0 -0
- /package/{dist/components → components}/code-block/code-block.module.scss +0 -0
- /package/{dist/components → components}/code-block/utils/parse-highlighted-lines.d.ts +0 -0
- /package/{dist/components → components}/code-block/utils/process-snippet.d.ts +0 -0
- /package/{dist/components → components}/code-block/utils/shellwords.d.ts +0 -0
- /package/{dist/components → components}/dialog-primitive/dialog.module.scss +0 -0
- /package/{dist/components → components}/disclosure-primitive/styles.module.css +0 -0
- /package/{dist/components → components}/dismiss-button/styles.module.scss +0 -0
- /package/{dist/components → components}/dropdown/list-item/styles.module.css +0 -0
- /package/{dist/components → components}/dropdown/styles.module.css +0 -0
- /package/{dist/components → components}/dropdown/toggle-button/styles.module.scss +0 -0
- /package/{dist/components → components}/flight-icon/flight-icon.module.css +0 -0
- /package/{dist/components → components}/form/checkbox/form-checkbox.module.css +0 -0
- /package/{dist/components → components}/form/error/form-error.module.css +0 -0
- /package/{dist/components → components}/form/field/form-field.module.css +0 -0
- /package/{dist/components → components}/form/fieldset/form-fieldset.module.css +0 -0
- /package/{dist/components → components}/form/file-input/form-file-input.module.scss +0 -0
- /package/{dist/components → components}/form/helper-text/form-helper-text.module.css +0 -0
- /package/{dist/components → components}/form/indicator/form-indicator.module.css +0 -0
- /package/{dist/components → components}/form/indicator/index.d.ts +0 -0
- /package/{dist/components → components}/form/label/form-label.module.css +0 -0
- /package/{dist/components → components}/form/legend/form-legend.module.css +0 -0
- /package/{dist/components → components}/form/radio/form-radio.module.scss +0 -0
- /package/{dist/components → components}/form/radio-card/description.d.ts +0 -0
- /package/{dist/components → components}/form/radio-card/form-radio-card.module.css +0 -0
- /package/{dist/components → components}/form/radio-card/label.d.ts +0 -0
- /package/{dist/components → components}/form/select/form-select.module.css +0 -0
- /package/{dist/components → components}/form/super-select/form-super-select.module.css +0 -0
- /package/{dist/components → components}/form/text-input/styles.module.css +0 -0
- /package/{dist/components → components}/form/textarea/form-textarea.module.css +0 -0
- /package/{dist/components → components}/form/toggle/form-toggle.module.scss +0 -0
- /package/{dist/components → components}/icon-tile/style.module.scss +0 -0
- /package/{dist/components → components}/index.d.ts +0 -0
- /package/{dist/utils → components}/index.js.map +0 -0
- /package/{dist/components → components}/inline-link/inline-link.module.css +0 -0
- /package/{dist/components → components}/menu-primitive/styles.module.css +0 -0
- /package/{dist/components → components}/modal/modal.module.css +0 -0
- /package/{dist/components → components}/separator/separator.module.css +0 -0
- /package/{dist/components → components}/standalone-link/styles.module.scss +0 -0
- /package/{dist/components → components}/table/table.module.scss +0 -0
- /package/{dist/components → components}/table/th-button-tooltip.d.ts +0 -0
- /package/{dist/components → components}/table/utils.d.ts +0 -0
- /package/{dist/components → components}/tabs/tabs.module.scss +0 -0
- /package/{dist/components → components}/text/style.module.scss +0 -0
- /package/{dist/components → components}/visualizations/bar-chart/horizontal-chart/dataset-value/index.d.ts +0 -0
- /package/{dist/components → components}/visualizations/bar-chart/horizontal-chart/dataset-value/style.module.css +0 -0
- /package/{dist/components → components}/visualizations/bar-chart/horizontal-chart/legend/index.d.ts +0 -0
- /package/{dist/components → components}/visualizations/bar-chart/horizontal-chart/legend/style.module.css +0 -0
- /package/{dist/components → components}/visualizations/bar-chart/horizontal-chart/style.module.css +0 -0
- /package/{dist/components → components}/visualizations/bar-chart/style.module.css +0 -0
- /package/{dist/components → components}/visualizations/donut-chart/components/arc-tooltip/styles.module.css +0 -0
- /package/{dist/components → components}/visualizations/donut-chart/components/external-arc-label/styles.module.css +0 -0
- /package/{dist/components → components}/visualizations/donut-chart/components/index.d.ts +0 -0
- /package/{dist/components → components}/visualizations/donut-chart/components/internal-arc-label/styles.module.css +0 -0
- /package/{dist/components → components}/visualizations/donut-chart/styles.module.css +0 -0
- /package/{dist/components → components}/visualizations/donut-chart/types.d.ts +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/patterns → patterns}/card/index.d.ts +0 -0
- /package/{dist/patterns → patterns}/card/newsroom-card/style.module.css +0 -0
- /package/{dist/patterns → patterns}/card/partner-card/style.module.css +0 -0
- /package/{dist/patterns → patterns}/card/person-card/style.module.css +0 -0
- /package/{dist/patterns → patterns}/card/style.module.css +0 -0
- /package/{dist/patterns → patterns}/copy-button/style.module.css +0 -0
- /package/{dist/patterns → patterns}/index.d.ts +0 -0
- /package/{dist/patterns → patterns}/layout/layout.module.css +0 -0
- /package/{dist/patterns → patterns}/product-badge/index.d.ts +0 -0
- /package/{dist/patterns → patterns}/product-badge/style.module.css +0 -0
- /package/{dist/patterns → patterns}/product-logo/product-logo.module.css +0 -0
- /package/{dist/patterns → patterns}/related-content/style.module.css +0 -0
- /package/{dist/styles → styles}/mixins/button.scss +0 -0
- /package/{dist/styles → styles}/mixins/focus-ring.scss +0 -0
- /package/{dist/utils → utils}/get-contrast-yiq.d.ts +0 -0
- /package/{dist/utils → utils}/hooks/use-screen-size.d.ts +0 -0
- /package/{dist/utils → utils}/index.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AlertColor, AlertProps } from '.';
|
|
2
|
-
import { FlightIconName } from '../flight-icon';
|
|
1
|
+
import type { AlertColor, AlertProps } from '.';
|
|
2
|
+
import type { FlightIconName } from '../flight-icon';
|
|
3
3
|
interface IconProps {
|
|
4
4
|
icon?: FlightIconName | false;
|
|
5
5
|
color: AlertColor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { StandaloneLinkProps } from '../standalone-link';
|
|
2
|
-
import { HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
|
|
3
|
-
import { ButtonProps } from '../button';
|
|
4
|
-
import { FlightIconName } from '../flight-icon';
|
|
1
|
+
import { type StandaloneLinkProps } from '../standalone-link';
|
|
2
|
+
import type { HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
|
|
3
|
+
import type { ButtonProps } from '../button';
|
|
4
|
+
import type { FlightIconName } from '../flight-icon';
|
|
5
5
|
type AlertColor = 'neutral' | 'highlight' | 'success' | 'warning' | 'critical';
|
|
6
6
|
interface CommonAlertProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
7
|
/**
|
|
@@ -51,11 +51,11 @@ declare const AlertActions: {
|
|
|
51
51
|
displayName: string;
|
|
52
52
|
};
|
|
53
53
|
declare const AlertButton: {
|
|
54
|
-
({ ...props }: Exclude<ButtonProps,
|
|
54
|
+
({ ...props }: Exclude<ButtonProps, "size">): import("react/jsx-runtime").JSX.Element;
|
|
55
55
|
displayName: string;
|
|
56
56
|
};
|
|
57
57
|
declare const AlertStandaloneLink: {
|
|
58
|
-
({ ...props }: Exclude<StandaloneLinkProps,
|
|
58
|
+
({ ...props }: Exclude<StandaloneLinkProps, "size">): import("react/jsx-runtime").JSX.Element;
|
|
59
59
|
displayName: string;
|
|
60
60
|
};
|
|
61
61
|
export { Alert, AlertActions, AlertButton, AlertStandaloneLink };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FlightIconName } from '../flight-icon';
|
|
1
|
+
import type { FlightIconName } from '../flight-icon';
|
|
2
2
|
declare const BADGE_SIZES: readonly ["small", "medium", "large"];
|
|
3
3
|
type BadgeSize = (typeof BADGE_SIZES)[number];
|
|
4
4
|
declare const BADGE_TYPES: readonly ["filled", "inverted", "outlined"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BreadcrumbProps, BreadcrumbTruncationProps } from './types';
|
|
1
|
+
import type { BreadcrumbProps, BreadcrumbTruncationProps } from './types';
|
|
2
2
|
declare const Breadcrumbs: {
|
|
3
3
|
Root: ({ itemsCanWrap, ariaLabel, children, className, ...rest }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
Item: ({ maxWidth, current, icon, text, url, ...rest }: import(
|
|
4
|
+
Item: ({ maxWidth, current, icon, text, url, ...rest }: import("./types").BreadcrumbItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
Truncation: ({ ariaLabel, children, ...rest }: BreadcrumbTruncationProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
};
|
|
7
7
|
export { Breadcrumbs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BreadcrumbItemProps } from '../types';
|
|
1
|
+
import type { BreadcrumbItemProps } from '../types';
|
|
2
2
|
export declare const Item: ({ maxWidth, current, icon, text, url, ...rest }: BreadcrumbItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes, LiHTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import type { HTMLAttributes, LiHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export interface BreadcrumbProps extends HTMLAttributes<HTMLElement> {
|
|
3
3
|
/**
|
|
4
4
|
* This controls if the Breadcrumb Items can wrap if they don’t fit within the container.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent } from 'react';
|
|
1
|
+
import type { ForwardRefExoticComponent } from 'react';
|
|
2
2
|
export declare const BUTTON_SIZES: readonly ["small", "medium", "large"];
|
|
3
3
|
export type ButtonSize = (typeof BUTTON_SIZES)[number];
|
|
4
4
|
export declare const BUTTON_ICON_POSITIONS: readonly ["leading", "trailing"];
|
|
@@ -27,5 +27,5 @@ interface ButtonPrimitiveProps {
|
|
|
27
27
|
export interface ButtonProps extends Omit<ButtonPrimitiveProps, 'color'> {
|
|
28
28
|
color?: ButtonColor;
|
|
29
29
|
}
|
|
30
|
-
export declare const Button: ForwardRefExoticComponent<ButtonProps & import(
|
|
30
|
+
export declare const Button: ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
31
31
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CardThumbnailProps } from '../types';
|
|
1
|
+
import type { CardThumbnailProps } from '../types';
|
|
2
2
|
export declare const CardThumbnail: ({ alt, aspectRatio, src, }: CardThumbnailProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BadgeProps } from '../badge';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { StandaloneLinkProps } from '../standalone-link';
|
|
1
|
+
import type { BadgeProps } from '../badge';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { StandaloneLinkProps } from '../standalone-link';
|
|
4
4
|
interface CardPropsBase {
|
|
5
5
|
className?: string;
|
|
6
6
|
ctaLabel?: string;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Note: lines of code are expected to be stable. If we need to work with
|
|
3
|
+
* dynamic code blocks in the future, we could assign random unique IDs
|
|
4
|
+
* to each line during the `linesOfCode` `useMemo` function.
|
|
5
|
+
*
|
|
6
|
+
* For now, we disable react/no-array-index key for the entire file.
|
|
7
|
+
*/
|
|
8
|
+
import { type ReactNode } from 'react';
|
|
2
9
|
interface CodeLinesProps {
|
|
3
10
|
value: ReactNode;
|
|
4
11
|
hasLineNumbers?: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { PropsWithChildren
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import { type HTMLAttributes } from 'react';
|
|
2
3
|
interface DisclosurePrimitiveProviderProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
4
|
/**
|
|
4
5
|
* Callback fired when the disclosure is closed (optional)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MouseEventHandler } from 'react';
|
|
1
|
+
import { type MouseEventHandler } from 'react';
|
|
2
2
|
export interface DisclosurePrimitiveContextState {
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
onClickToggle: MouseEventHandler<HTMLButtonElement>;
|
|
@@ -7,5 +7,5 @@ export interface DisclosurePrimitiveContextState {
|
|
|
7
7
|
containsInteractive: boolean;
|
|
8
8
|
ariaLabel: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const DisclosurePrimitiveContext: import(
|
|
10
|
+
export declare const DisclosurePrimitiveContext: import("react").Context<DisclosurePrimitiveContextState | undefined>;
|
|
11
11
|
export declare function useDisclosurePrimitive(): DisclosurePrimitiveContextState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DropdownToggleButtonProps } from './toggle-button';
|
|
2
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import type { DropdownToggleButtonProps } from './toggle-button';
|
|
2
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
3
3
|
interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
/**
|
|
5
5
|
* If true, container is given full width styles. (Added by web presence team)
|
|
@@ -51,19 +51,19 @@ declare const Dropdown: {
|
|
|
51
51
|
};
|
|
52
52
|
ListItem: {
|
|
53
53
|
Interactive: {
|
|
54
|
-
({ text, color, icon, isLoading, trailingIcon, ...rest }: import(
|
|
54
|
+
({ text, color, icon, isLoading, trailingIcon, ...rest }: import("./list-item/interactive").ListItemInteractiveProps): import("react/jsx-runtime").JSX.Element;
|
|
55
55
|
displayName: string;
|
|
56
56
|
};
|
|
57
57
|
Title: {
|
|
58
|
-
({ text, ...rest }: import(
|
|
58
|
+
({ text, ...rest }: import("./list-item/title").ListItemTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
59
59
|
displayName: string;
|
|
60
60
|
};
|
|
61
61
|
Separator: {
|
|
62
|
-
(props: import(
|
|
62
|
+
(props: import("./list-item/separator").ListItemSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
63
63
|
displayName: string;
|
|
64
64
|
};
|
|
65
65
|
Custom: {
|
|
66
|
-
({ children }: import(
|
|
66
|
+
({ children }: import("./list-item/custom").ListItemCustomProps): import("react/jsx-runtime").JSX.Element;
|
|
67
67
|
displayName: string;
|
|
68
68
|
};
|
|
69
69
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
declare const ListItem: {
|
|
2
2
|
Interactive: {
|
|
3
|
-
({ text, color, icon, isLoading, trailingIcon, ...rest }: import(
|
|
3
|
+
({ text, color, icon, isLoading, trailingIcon, ...rest }: import("./interactive").ListItemInteractiveProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
Title: {
|
|
7
|
-
({ text, ...rest }: import(
|
|
7
|
+
({ text, ...rest }: import("./title").ListItemTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
displayName: string;
|
|
9
9
|
};
|
|
10
10
|
Separator: {
|
|
11
|
-
(props: import(
|
|
11
|
+
(props: import("./separator").ListItemSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
14
|
Custom: {
|
|
15
|
-
({ children }: import(
|
|
15
|
+
({ children }: import("./custom").ListItemCustomProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InteractiveProps } from '../../interactive';
|
|
1
|
+
import { type InteractiveProps } from '../../interactive';
|
|
2
2
|
interface ListItemInteractiveProps extends Omit<InteractiveProps, 'children'> {
|
|
3
3
|
/**
|
|
4
4
|
* Text to be used in the item. If no text value is defined, an error will be thrown.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
2
|
type ListItemSeparatorProps = Omit<HTMLAttributes<HTMLLIElement>, 'className' | 'aria-hidden' | 'role'>;
|
|
3
3
|
declare const ListItemSeparator: {
|
|
4
4
|
(props: ListItemSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FlightIconName } from '../../flight-icon';
|
|
2
|
-
import { ButtonHTMLAttributes } from 'react';
|
|
1
|
+
import type { FlightIconName } from '../../flight-icon';
|
|
2
|
+
import type { ButtonHTMLAttributes } from 'react';
|
|
3
3
|
interface DropdownToggleButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
4
|
/**
|
|
5
5
|
* Text of the ToggleButton. If no text value is defined, an error will be thrown.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SVGProps } from 'react';
|
|
2
|
-
import { IconName } from '@hashicorp/flight-icons/svg';
|
|
1
|
+
import { type SVGProps } from 'react';
|
|
2
|
+
import type { IconName } from '@hashicorp/flight-icons/svg';
|
|
3
3
|
declare const FLIGHT_ICON_SIZES: readonly [12, 16, 24, 32];
|
|
4
4
|
type FlightIconSize = (typeof FLIGHT_ICON_SIZES)[number];
|
|
5
5
|
type FlightIconName = IconName | (string & Record<never, never>);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fieldset } from '../fieldset';
|
|
2
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
3
3
|
export interface RadioCardGroupProps extends ComponentProps<typeof Fieldset> {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
legend: ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RadioCardGroup } from './group';
|
|
2
|
-
import { HTMLProps, ReactNode } from 'react';
|
|
3
|
-
import { BadgeProps } from '../../badge';
|
|
2
|
+
import type { HTMLProps, ReactNode } from 'react';
|
|
3
|
+
import type { BadgeProps } from '../../badge';
|
|
4
4
|
export declare const DEFAULT_CONTROL_POSITION = "bottom";
|
|
5
5
|
export declare const DEFAULT_ALIGNMENT = "left";
|
|
6
6
|
export declare const CONTROL_POSITIONS: readonly ["bottom", "left"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TComboBoxItem, ComboBoxSearchInputProps } from '../../combo-box-primitive';
|
|
2
|
-
import { FieldProps } from '../field';
|
|
1
|
+
import type { TComboBoxItem, ComboBoxSearchInputProps } from '../../combo-box-primitive';
|
|
2
|
+
import type { FieldProps } from '../field';
|
|
3
3
|
type SuperSelectSearchInputProps = ComboBoxSearchInputProps;
|
|
4
4
|
interface SuperSelectOptionProps extends TComboBoxItem {
|
|
5
5
|
isLoading?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { TippyProps } from '@tippyjs/react';
|
|
2
|
-
import { Plugin } from 'tippy.js';
|
|
3
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import { type TippyProps } from '@tippyjs/react';
|
|
2
|
+
import { type Plugin } from 'tippy.js';
|
|
3
|
+
import type { ReactElement } from 'react';
|
|
4
|
+
import 'tippy.js/dist/svg-arrow.css';
|
|
4
5
|
export interface TooltipProps {
|
|
5
6
|
options?: TippyProps;
|
|
6
7
|
children: TippyProps['children'];
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { A as e, a as o, b as t, c as i, d as r, e as l, f as n, g as d, B as T, _ as S, h as I, l as c, j as A, k as O, C as u, D as B, $ as C, i as g, E as _, F as N, m as L, o as p, n as E, H as F, J as D, I as x, K as b, L as m, p as G, M as R, N as k, q as h, s as P, t as H, r as Z, R as f, S as v, P as K, v as M, Q as U, Y as X, x as j, T as w, w as y, z, y as V, G as W, U as Y, V as q, W as J, X as Q, u as $, O as aa, Z as sa } from "../index-C4GBbW3N.js";
|
|
2
|
+
import { B as oa, a as ta, b as ia, e as ra, f as la, g as na, c as da, d as Ta, C as Sa, F as Ia, h as ca, i as Aa, j as Oa, k as ua, S as Ba, l as Ca, m as ga, T as _a } from "../index-WkGIywHj.js";
|
|
3
|
+
export {
|
|
4
|
+
e as Accordion,
|
|
5
|
+
o as AccordionContent,
|
|
6
|
+
t as AccordionItem,
|
|
7
|
+
i as AccordionToggle,
|
|
8
|
+
r as Alert,
|
|
9
|
+
l as AlertActions,
|
|
10
|
+
n as AlertButton,
|
|
11
|
+
d as AlertStandaloneLink,
|
|
12
|
+
oa as BADGE_COLORS,
|
|
13
|
+
ta as BADGE_SIZES,
|
|
14
|
+
ia as BADGE_TYPES,
|
|
15
|
+
ra as BUTTON_COLORS,
|
|
16
|
+
la as BUTTON_ICON_POSITIONS,
|
|
17
|
+
na as BUTTON_SIZES,
|
|
18
|
+
da as Badge,
|
|
19
|
+
T as BadgeCount,
|
|
20
|
+
S as BarChart,
|
|
21
|
+
I as Breadcrumbs,
|
|
22
|
+
Ta as Button,
|
|
23
|
+
Sa as Card,
|
|
24
|
+
c as CheckboxBase,
|
|
25
|
+
A as CheckboxField,
|
|
26
|
+
O as CheckboxGroup,
|
|
27
|
+
u as CodeBlock,
|
|
28
|
+
B as DisclosurePrimitive,
|
|
29
|
+
C as DonutChart,
|
|
30
|
+
g as Dropdown,
|
|
31
|
+
_ as Error,
|
|
32
|
+
Ia as FLIGHT_ICON_SIZES,
|
|
33
|
+
N as Field,
|
|
34
|
+
L as Fieldset,
|
|
35
|
+
p as FileInputBase,
|
|
36
|
+
E as FileInputField,
|
|
37
|
+
ca as FlightIcon,
|
|
38
|
+
F as HelperText,
|
|
39
|
+
D as IconTile,
|
|
40
|
+
x as Indicator,
|
|
41
|
+
b as InlineLink,
|
|
42
|
+
m as Label,
|
|
43
|
+
G as Legend,
|
|
44
|
+
R as MDSButton,
|
|
45
|
+
k as ModalProvider,
|
|
46
|
+
h as RadioBase,
|
|
47
|
+
P as RadioCard,
|
|
48
|
+
H as RadioCardGroup,
|
|
49
|
+
Z as RadioField,
|
|
50
|
+
f as RadioGroup,
|
|
51
|
+
Aa as STANDALONE_LINK_COLORS,
|
|
52
|
+
Oa as STANDALONE_LINK_ICON_POSITIONS,
|
|
53
|
+
ua as STANDALONE_LINK_SIZES,
|
|
54
|
+
v as SelectField,
|
|
55
|
+
K as Separator,
|
|
56
|
+
Ba as StandaloneLink,
|
|
57
|
+
M as SuperSelectField,
|
|
58
|
+
Ca as TEXT_COLORS,
|
|
59
|
+
ga as TEXT_WEIGHTS,
|
|
60
|
+
U as Table,
|
|
61
|
+
X as Tabs,
|
|
62
|
+
_a as Text,
|
|
63
|
+
j as TextAreaField,
|
|
64
|
+
w as TextInput,
|
|
65
|
+
y as TextInputBase,
|
|
66
|
+
z as ToggleBase,
|
|
67
|
+
V as ToggleField,
|
|
68
|
+
W as ToggleGroup,
|
|
69
|
+
Y as getDensity,
|
|
70
|
+
q as getHorizontalAlignment,
|
|
71
|
+
J as getScope,
|
|
72
|
+
Q as getVerticalAlignment,
|
|
73
|
+
$ as useDisclosurePrimitive,
|
|
74
|
+
aa as useModal,
|
|
75
|
+
sa as useTabsContext
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent
|
|
1
|
+
import { type ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import type { ButtonHTMLAttributes, MouseEventHandler } from 'react';
|
|
2
3
|
interface InteractiveProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
4
|
isHrefExternal?: boolean;
|
|
4
5
|
href?: string;
|
|
@@ -7,7 +8,7 @@ interface InteractiveProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
7
8
|
prefetch?: boolean;
|
|
8
9
|
locale?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const Interactive: ForwardRefExoticComponent<InteractiveProps & import(
|
|
11
|
+
declare const Interactive: ForwardRefExoticComponent<InteractiveProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
11
12
|
/**
|
|
12
13
|
* Smaller, local version of our getLocalizedLinkProps util,
|
|
13
14
|
* cloned here to work around a cyclic dependency issue
|
|
@@ -20,7 +21,7 @@ declare const Interactive: ForwardRefExoticComponent<InteractiveProps & import('
|
|
|
20
21
|
export declare const getLocalizedLinkProps: (href: string, locale?: string, isHrefExternal?: boolean) => {
|
|
21
22
|
href: string;
|
|
22
23
|
hrefLang: string | undefined;
|
|
23
|
-
isHrefExternal?: boolean
|
|
24
|
+
isHrefExternal?: boolean;
|
|
24
25
|
};
|
|
25
26
|
export type { InteractiveProps };
|
|
26
27
|
export { Interactive };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
-
import { ButtonProps } from './types';
|
|
1
|
+
import { type ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import type { ButtonProps } from './types';
|
|
3
3
|
/** @deprecated Use <Button> from '@hashicorp/mds-react/button' instead. Will be removed in v1.0. */
|
|
4
|
-
declare const MDSButton: ForwardRefExoticComponent<ButtonProps & import(
|
|
4
|
+
declare const MDSButton: ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
5
5
|
export { MDSButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COLORS } from './utils';
|
|
1
|
+
import type { COLORS } from './utils';
|
|
2
2
|
type HashiCorpProduct = 'hashicorp' | 'boundary' | 'consul' | 'nomad' | 'packer' | 'terraform' | 'vault' | 'vagrant' | 'waypoint';
|
|
3
3
|
export type Size = 'medium' | 'small';
|
|
4
4
|
export type ThemeBackground = 'light' | 'dark' | 'brand';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonColor, Theme } from './types';
|
|
1
|
+
import type { ButtonColor, Theme } from './types';
|
|
2
2
|
export declare const COLORS: readonly ["primary", "primary-black", "primary-white", "secondary", "secondary-high-contrast", "secondary-white", "secondary-black", "tertiary", "critical", "boundary", "consul", "nomad", "packer", "terraform", "vagrant", "vault", "waypoint", "hashicorp"];
|
|
3
3
|
export declare function determineColor(theme?: Theme): ButtonColor;
|
|
4
4
|
export declare const LINK_TYPE_ICON_MAP: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MouseEventHandler, RefObject } from 'react';
|
|
1
|
+
import { type MouseEventHandler, type RefObject } from 'react';
|
|
2
2
|
export interface MenuPrimitiveContextState {
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
onClickToggle: MouseEventHandler<HTMLButtonElement>;
|
|
5
5
|
toggleRef: RefObject<HTMLDivElement>;
|
|
6
6
|
closeMenu: () => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const MenuPrimitiveContext: import(
|
|
8
|
+
export declare const MenuPrimitiveContext: import("react").Context<MenuPrimitiveContextState | undefined>;
|
|
9
9
|
export declare function useMenuPrimitive(): MenuPrimitiveContextState;
|