@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-WkGIywHj.js","sources":["../src/components/flight-icon/index.tsx","../src/components/text/index.tsx","../src/components/badge/index.tsx","../src/components/interactive/index.tsx","../src/components/standalone-link/index.tsx","../src/components/button/index.tsx","../src/components/card/card-thumbnail/index.tsx","../src/components/card/index.tsx","../src/patterns/copy-button/clipboard.ts","../src/patterns/copy-button/index.tsx"],"sourcesContent":["'use client'\n\nimport svgSprite from '@hashicorp/flight-icons/svg-sprite/svg-sprite.svg'\nimport classNames from 'classnames'\nimport { useId, type SVGProps } from 'react'\nimport type { IconName } from '@hashicorp/flight-icons/svg'\nimport s from './flight-icon.module.css'\n\nconst FLIGHT_ICON_SIZES = [12, 16, 24, 32] as const\ntype FlightIconSize = (typeof FLIGHT_ICON_SIZES)[number]\n\nconst SPRITE_SIZE_MAP = {\n\t12: 16,\n\t16: 16,\n\t24: 24,\n\t32: 24,\n} as const\n\ntype FlightIconName = IconName | (string & Record<never, never>)\n\ninterface FlightIconProps extends SVGProps<SVGSVGElement> {\n\t/**\n\t * The name of the icon you wish to use. Search for existing icon\n\t * names in the Icon library.\n\t */\n\tname: FlightIconName\n\n\t/**\n\t * The `color` prop can be used to change the color. It works by setting\n\t * the value of the icon SVG’s fill property.\n\t */\n\tcolor?: string\n\n\t/**\n\t * The `size` prop can be used to change the size.\n\t */\n\tsize?: FlightIconSize\n\n\t/**\n\t * Determines whether the icon will stretch to fill the parent container.\n\t * Setting it to `true` will make the icon have a height and width of 100%\n\t * and a display of `block`.\n\t */\n\tstretched?: boolean\n\n\t/**\n\t * Sets the `display` style for the icon. Setting it to `false` will make\n\t * the icon have a display of `block`.\n\t */\n\tisInlineBlock?: boolean\n\n\t/**\n\t * Use to add accessible text to standalone icons. This will also change\n\t * the `aria-hidden` value to `false` instead of the default value of `true`.\n\t */\n\ttitle?: string\n\tclassName?: string\n}\n\n// When an SVG file is imported in Next.js, it is an object with a `src`\n// property. However, tools like Webpack and Vite default to returning a URL.\n// This runtime check allows the component to work in all of these cases.\nconst svgSpriteSrc =\n\ttypeof svgSprite === 'string' ? svgSprite : (svgSprite as { src: string }).src\n\nconst FlightIcon = ({\n\tname,\n\tcolor = 'currentColor',\n\tsize = 16,\n\tstretched = false,\n\tisInlineBlock = true,\n\ttitle,\n\tclassName,\n\t...rest\n}: FlightIconProps) => {\n\tconst iconId = useId()\n\tconst titleId = useId()\n\n\tconst spriteSize = SPRITE_SIZE_MAP[size]\n\n\treturn (\n\t\t<svg\n\t\t\tclassName={classNames(\n\t\t\t\ts['flight-icon'],\n\t\t\t\t`flight-icon-${name}`,\n\t\t\t\t{\n\t\t\t\t\t[s['display-inline']]: isInlineBlock && !stretched,\n\t\t\t\t\t[s['loading']]: name === 'loading',\n\t\t\t\t\t[s['running']]: name === 'running',\n\t\t\t\t},\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...rest}\n\t\t\taria-hidden={title ? 'false' : 'true'}\n\t\t\taria-labelledby={title ? titleId : undefined}\n\t\t\tfill={color}\n\t\t\tid={iconId}\n\t\t\trole={title ? 'img' : undefined}\n\t\t\twidth={stretched ? '100%' : size}\n\t\t\theight={stretched ? '100%' : size}\n\t\t\tviewBox={`0 0 ${spriteSize} ${spriteSize}`}\n\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t>\n\t\t\t{title ? (\n\t\t\t\t<>\n\t\t\t\t\t<title id={titleId}>{title}</title>\n\t\t\t\t\t<g role=\"presentation\">\n\t\t\t\t\t\t<use href={`${svgSpriteSrc}#flight-${name}-${spriteSize}`}></use>\n\t\t\t\t\t</g>\n\t\t\t\t</>\n\t\t\t) : (\n\t\t\t\t<use href={`${svgSpriteSrc}#flight-${name}-${spriteSize}`}></use>\n\t\t\t)}\n\t\t</svg>\n\t)\n}\n\nFlightIcon.displayName = 'FlightIcon'\n\nexport type { FlightIconProps, FlightIconSize, FlightIconName }\nexport { FlightIcon, FLIGHT_ICON_SIZES }\n","import classNames from 'classnames'\nimport {\n\tcreateElement,\n\ttype ComponentPropsWithRef,\n\ttype ElementType,\n} from 'react'\nimport s from './style.module.scss'\n\nconst TEXT_COLORS = [\n\t'primary',\n\t'strong',\n\t'faint',\n\t'disabled',\n\t'high-contrast',\n\t'action',\n\t'action-hover',\n\t'action-active',\n\t'highlight',\n\t'highlight-on-surface',\n\t'highlight-high-contrast',\n\t'success',\n\t'success-on-surface',\n\t'success-high-contrast',\n\t'warning',\n\t'warning-on-surface',\n\t'warning-high-contrast',\n\t'critical',\n\t'critical-on-surface',\n\t'critical-high-contrast',\n] as const\n\nconst TEXT_GROUPS = [\n\t'hds-body',\n\t'code',\n\t'body',\n\t'display-expressive',\n\t'label',\n] as const\n\nconst TEXT_SIZES = [\n\t'100',\n\t'200',\n\t'300',\n\t'400',\n\t'500',\n\t'600',\n\t'700',\n\t'800',\n] as const\n\nconst TEXT_WEIGHTS = ['regular', 'medium', 'semibold', 'bold'] as const\n\ntype TextColor = (typeof TEXT_COLORS)[number]\ntype TextWeight = (typeof TEXT_WEIGHTS)[number]\ntype TextGroup = (typeof TEXT_GROUPS)[number]\ntype TextSize = (typeof TEXT_SIZES)[number]\n\n// small typescript hack to support autocomplete and arbitrary strings\ntype HexColor = string & { hexish?: unknown }\n\ninterface BaseTextProps<T extends ElementType> {\n\ttag?: T\n\tsize?: TextSize\n\tweight?: TextWeight\n\talign?: 'left' | 'center' | 'right'\n\tcolor?: TextColor | HexColor\n\tclassName?: string\n}\n\ninterface TextImplProps<T extends ElementType> extends BaseTextProps<T> {\n\tgroup: TextGroup\n}\n\nfunction getTypographyToken(group: TextGroup, size: TextSize): string {\n\tconst groupToTokenMap: Record<TextGroup, string> = {\n\t\t'hds-body': `mds-typography-legacy-body-${size}`,\n\t\tcode: `mds-typography-code-${size}`,\n\t\t'display-expressive': `mds-typography-display-expressive-${size}`,\n\t\tlabel: `mds-typography-label`,\n\t\tbody: `mds-typography-body-${size}`,\n\t}\n\n\treturn groupToTokenMap[group]\n}\n\nconst TextImpl = <T extends ElementType = 'span'>({\n\ttag,\n\tgroup,\n\tsize = '200',\n\tweight,\n\talign,\n\tcolor,\n\tchildren,\n\tclassName,\n\t...rest\n}: TextImplProps<T> &\n\tOmit<ComponentPropsWithRef<T>, keyof TextImplProps<T>>) => {\n\tconst Component = tag ?? 'span'\n\tconst variant = getTypographyToken(group, size)\n\n\tconst usesPredefinedColor = TEXT_COLORS.includes(color as TextColor)\n\n\treturn (\n\t\t<Component\n\t\t\tclassName={classNames(\n\t\t\t\tvariant,\n\t\t\t\t{\n\t\t\t\t\t[s[`align-${align}`]]: align,\n\t\t\t\t\t[`mds-typography-font-weight-${weight}`]: weight,\n\t\t\t\t\t[`mds-foreground-${color}`]: color && usesPredefinedColor,\n\t\t\t\t},\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\tstyle={color && !usesPredefinedColor ? { color } : {}}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</Component>\n\t)\n}\n\ninterface BodyProps<T extends ElementType> extends BaseTextProps<T> {\n\tsize?: '200' | '300' | '400'\n}\n\nconst Body = <T extends ElementType>({\n\tsize = '300',\n\t...rest\n}: BodyProps<T> & Omit<ComponentPropsWithRef<T>, keyof BodyProps<T>>) => {\n\treturn createElement(TextImpl, {\n\t\t...rest,\n\t\tsize,\n\t\tgroup: 'body',\n\t})\n}\n\ninterface DisplayExpressiveProps<T extends ElementType>\n\textends BaseTextProps<T> {\n\tsize?: '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800'\n}\n\nconst DisplayExpressive = <T extends ElementType>({\n\tsize = '200',\n\t...rest\n}: DisplayExpressiveProps<T> &\n\tOmit<ComponentPropsWithRef<T>, keyof DisplayExpressiveProps<T>>) => {\n\treturn createElement(TextImpl, {\n\t\t...rest,\n\t\tsize,\n\t\tgroup: 'display-expressive',\n\t})\n}\n\ntype LabelProps<T extends ElementType> = Omit<BaseTextProps<T>, 'size'>\n\nconst Label = <T extends ElementType>(\n\tprops: LabelProps<T> & Omit<ComponentPropsWithRef<T>, keyof LabelProps<T>>\n) => {\n\treturn createElement(TextImpl, {\n\t\t...props,\n\t\tgroup: 'label',\n\t})\n}\n\ninterface HDSBodyProps<T extends ElementType> extends BaseTextProps<T> {\n\tsize?: '100' | '200' | '300'\n}\n\nconst HDSBody = <T extends ElementType>({\n\tsize = '200',\n\tweight = 'regular',\n\t...rest\n}: HDSBodyProps<T> & Omit<ComponentPropsWithRef<T>, keyof HDSBodyProps<T>>) => {\n\treturn createElement(TextImpl, {\n\t\t...rest,\n\t\tsize,\n\t\tweight,\n\t\tgroup: 'hds-body',\n\t})\n}\n\ninterface CodeProps<T extends ElementType> extends BaseTextProps<T> {\n\tsize?: '100' | '200' | '300'\n}\n\nconst Code = <T extends ElementType>({\n\tsize = '200',\n\tweight = 'regular',\n\t...rest\n}: CodeProps<T> & Omit<ComponentPropsWithRef<T>, keyof CodeProps<T>>) => {\n\treturn createElement(TextImpl, {\n\t\t...rest,\n\t\tsize,\n\t\tweight,\n\t\tgroup: 'code',\n\t})\n}\n\nconst Text = {\n\tBody,\n\tDisplayExpressive,\n\tLabel,\n\tHDSBody,\n\tCode,\n}\n\nexport { Text, TEXT_COLORS, TEXT_WEIGHTS }\n","import classNames from 'classnames'\nimport type { FlightIconName, FlightIconSize } from '../flight-icon'\nimport { FlightIcon } from '../flight-icon'\nimport s from './style.module.scss'\n\nconst BADGE_SIZES = ['small', 'medium', 'large'] as const\ntype BadgeSize = (typeof BADGE_SIZES)[number]\n\nconst BADGE_TYPES = ['filled', 'inverted', 'outlined'] as const\ntype BadgeType = (typeof BADGE_TYPES)[number]\n\nconst BADGE_COLORS = [\n\t'neutral',\n\t'neutral-dark-mode',\n\t'highlight',\n\t'success',\n\t'warning',\n\t'critical',\n] as const\ntype BadgeColor = (typeof BADGE_COLORS)[number]\n\nconst ICON_SIZE_MAP = {\n\tsmall: 12,\n\tmedium: 16,\n\tlarge: 16,\n} as const satisfies Record<'small' | 'medium' | 'large', FlightIconSize>\n\ninterface BadgeProps {\n\t/** Use this parameter to show an icon. */\n\ticon?: FlightIconName\n\n\t/**\n\t * The `iconColor` prop can be used to change the icon color. It works by setting\n\t * the value of the icon SVG’s fill property.\n\t */\n\ticonColor?: string\n\n\t/** This indicates if the button will only contain an icon. An internal check is in place to ensure that accessible text is still applied to the component. */\n\ticonOnly?: boolean\n\n\t/** The text of the Badge or value of the screen-reader only element if isIconOnly is set to true. If no text value is defined an error will be thrown. */\n\ttext: string\n\n\tsize?: BadgeSize\n\ttype?: BadgeType\n\tcolor?: BadgeColor\n\tclassName?: string\n}\n\nconst Badge = ({\n\ticon,\n\ticonColor,\n\ticonOnly,\n\ttext,\n\tsize = 'medium',\n\ttype = 'filled',\n\tcolor = 'neutral',\n\tclassName,\n\t...rest\n}: BadgeProps) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\ts.badge,\n\t\t\t\ts[`size-${size}`],\n\t\t\t\ts[`type-${type}`],\n\t\t\t\ts[`color-${color}`],\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{icon && (\n\t\t\t\t<FlightIcon name={icon} color={iconColor} size={ICON_SIZE_MAP[size]} />\n\t\t\t)}\n\t\t\t{iconOnly && icon ? (\n\t\t\t\t<span className=\"sr-only\">{text}</span>\n\t\t\t) : (\n\t\t\t\t<div className={s.text}>{text}</div>\n\t\t\t)}\n\t\t</div>\n\t)\n}\n\nBadge.displayName = 'Badge'\n\nexport type { BadgeProps, BadgeColor, BadgeSize, BadgeType }\nexport { Badge, BADGE_COLORS, BADGE_SIZES, BADGE_TYPES }\n","'use client'\n\nimport { forwardRef, type ForwardRefExoticComponent } from 'react'\nimport type { ButtonHTMLAttributes, MouseEventHandler } from 'react'\nimport { useMDSLink } from '../../utils/mds-context'\n\ninterface InteractiveProps extends React.HTMLAttributes<HTMLElement> {\n\tisHrefExternal?: boolean\n\thref?: string\n\tonClick?: MouseEventHandler\n\ttype?: ButtonHTMLAttributes<HTMLButtonElement>['type']\n\tprefetch?: boolean\n\tlocale?: string\n}\n\nconst Interactive = forwardRef<\n\tHTMLAnchorElement | HTMLButtonElement,\n\tInteractiveProps\n>((props, ref) => {\n\tconst Link = useMDSLink()\n\tconst {\n\t\thref,\n\t\tclassName,\n\t\tisHrefExternal,\n\t\tonClick,\n\t\tchildren,\n\t\tlocale,\n\t\t...rest\n\t} = props\n\n\t// TODO: trigger link on space key up\n\tif (href) {\n\t\treturn (\n\t\t\t<Link\n\t\t\t\tclassName={className}\n\t\t\t\ttarget={isHrefExternal ? '_blank' : undefined}\n\t\t\t\trel={isHrefExternal ? 'noopener noreferrer' : undefined}\n\t\t\t\tonClick={onClick}\n\t\t\t\t{...getLocalizedLinkProps(href, locale, isHrefExternal)}\n\t\t\t\t{...rest}\n\t\t\t\tref={ref as ForwardRefExoticComponent<HTMLAnchorElement>}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</Link>\n\t\t)\n\t} else {\n\t\treturn (\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclassName={className}\n\t\t\t\tonClick={onClick}\n\t\t\t\t{...rest}\n\t\t\t\tref={ref as ForwardRefExoticComponent<HTMLButtonElement>}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</button>\n\t\t)\n\t}\n})\nInteractive.displayName = 'Interactive'\n\n/**\n * Smaller, local version of our getLocalizedLinkProps util,\n * cloned here to work around a cyclic dependency issue\n * with the main @web/utils package.\n *\n * @param url An internal URL path\n * @param locale A supported locale\n * @returns A prefixed URL if locale is defined, otherwise the URL without prefix\n */\nexport const getLocalizedLinkProps = (\n\thref: string,\n\tlocale?: string,\n\tisHrefExternal?: boolean\n): {\n\thref: string\n\threfLang: string | undefined\n\tisHrefExternal?: boolean\n} => {\n\tif (isHrefExternal) {\n\t\treturn {\n\t\t\thref: href,\n\t\t\threfLang: undefined,\n\t\t}\n\t}\n\n\tif (\n\t\t['en', 'de', 'es', 'fr', 'ja', 'ko', 'pt', 'id'].includes(\n\t\t\thref.substring(1, 3)\n\t\t)\n\t) {\n\t\t// Don't localize if the href is already localized\n\t\treturn {\n\t\t\thref: href,\n\t\t\threfLang: href.substring(1, 3),\n\t\t}\n\t}\n\n\tif (href.startsWith('/') && locale) {\n\t\treturn {\n\t\t\thref: `/${locale}${href}`,\n\t\t\threfLang: locale,\n\t\t}\n\t}\n\n\treturn {\n\t\thref: href,\n\t\threfLang: undefined,\n\t}\n}\n\nexport type { InteractiveProps }\nexport { Interactive }\n","import { forwardRef } from 'react'\nimport classNames from 'classnames'\nimport type { InteractiveProps } from '../interactive'\nimport { Interactive } from '../interactive'\nimport { FlightIcon } from '../flight-icon'\nimport s from './styles.module.scss'\n\nconst STANDALONE_LINK_SIZES = ['small', 'medium', 'large'] as const\ntype StandaloneLinkSize = (typeof STANDALONE_LINK_SIZES)[number]\n\nconst STANDALONE_LINK_COLORS = [\n\t'primary',\n\t'secondary',\n\t'secondary-inverted',\n] as const\ntype StandaloneLinkColor = (typeof STANDALONE_LINK_COLORS)[number]\n\nconst STANDALONE_LINK_ICON_POSITIONS = ['leading', 'trailing'] as const\ntype StandaloneLinkIconPosition =\n\t(typeof STANDALONE_LINK_ICON_POSITIONS)[number]\n\ninterface StandaloneLinkProps extends Omit<InteractiveProps, 'color' | 'size'> {\n\ttext: string\n\tsize?: StandaloneLinkSize\n\tcolor?: StandaloneLinkColor\n\ticon?: string\n\ticonPosition?: StandaloneLinkIconPosition\n\thref?: string\n\tlocale?: string\n\tisHrefExternal?: boolean\n\tonClick?: () => void\n\tclassName?: string\n\t'data-testid'?: string\n}\n\nconst StandaloneLink = forwardRef<\n\tHTMLAnchorElement | HTMLButtonElement,\n\tStandaloneLinkProps\n>(\n\t(\n\t\t{\n\t\t\ttext,\n\t\t\tsize = 'medium',\n\t\t\tcolor = 'primary',\n\t\t\ticon,\n\t\t\ticonPosition = 'leading',\n\t\t\tclassName,\n\t\t\t'data-testid': dataTestId,\n\t\t\tlocale,\n\t\t\t...props\n\t\t},\n\t\tref\n\t) => {\n\t\tconst iconElement = icon && <FlightIcon name={icon} size={16} />\n\n\t\treturn (\n\t\t\t<Interactive\n\t\t\t\t{...props}\n\t\t\t\tref={ref}\n\t\t\t\tclassName={classNames(\n\t\t\t\t\ts['standalone-link'],\n\t\t\t\t\ts[`size-${size}`],\n\t\t\t\t\ts[`color-${color}`],\n\t\t\t\t\ts[`icon-position-${iconPosition}`],\n\t\t\t\t\tclassName\n\t\t\t\t)}\n\t\t\t\tdata-testid={dataTestId}\n\t\t\t\tlocale={locale}\n\t\t\t>\n\t\t\t\t{iconElement && iconPosition === 'leading' && iconElement}\n\t\t\t\t<span className={s.text}>{text}</span>\n\t\t\t\t{iconElement && iconPosition === 'trailing' && iconElement}\n\t\t\t</Interactive>\n\t\t)\n\t}\n)\n\nStandaloneLink.displayName = 'StandaloneLink'\n\nexport type {\n\tStandaloneLinkSize,\n\tStandaloneLinkColor,\n\tStandaloneLinkIconPosition,\n\tStandaloneLinkProps,\n}\nexport {\n\tSTANDALONE_LINK_SIZES,\n\tSTANDALONE_LINK_COLORS,\n\tSTANDALONE_LINK_ICON_POSITIONS,\n\tStandaloneLink,\n}\n","import type { ForwardRefExoticComponent } from 'react'\nimport { forwardRef } from 'react'\nimport classNames from 'classnames'\nimport { Interactive } from '../interactive'\nimport type { FlightIconSize } from '../flight-icon'\nimport { FlightIcon } from '../flight-icon'\nimport s from './styles.module.scss'\n\nexport const BUTTON_SIZES = ['small', 'medium', 'large'] as const\nexport type ButtonSize = (typeof BUTTON_SIZES)[number]\n\nexport const BUTTON_ICON_POSITIONS = ['leading', 'trailing'] as const\nexport type ButtonIconPosition = (typeof BUTTON_ICON_POSITIONS)[number]\n\nexport const BUTTON_COLORS = [\n\t'primary',\n\t'primary-black',\n\t'primary-white',\n\t'secondary', // deprecated; maps to secondary-white\n\t'secondary-high-contrast', // alternates based on theme\n\t'secondary-white',\n\t'secondary-black',\n\t'tertiary',\n\t'critical',\n\t'boundary',\n\t'consul',\n\t'nomad',\n\t'packer',\n\t'terraform',\n\t'vagrant',\n\t'vault',\n\t'waypoint',\n\t'hashicorp', // alias to primary\n] as const\nexport type ButtonColor = (typeof BUTTON_COLORS)[number]\n\n// These are the only “real” colors our legacy button knows about\nconst LEGACY_COLORS = [\n\t'primary',\n\t'secondary',\n\t'tertiary',\n\t'critical',\n\t'custom',\n] as const\ntype LegacyButtonColor = (typeof LEGACY_COLORS)[number]\n\n// map HDS “super-set” colors down to our legacy ones\nconst COLOR_MAP: Record<ButtonColor, LegacyButtonColor> = {\n\tprimary: 'primary',\n\t'primary-black': 'custom',\n\t'primary-white': 'custom',\n\tsecondary: 'custom',\n\t'secondary-high-contrast': 'custom',\n\t'secondary-white': 'custom',\n\t'secondary-black': 'custom',\n\ttertiary: 'tertiary',\n\tcritical: 'critical',\n\tboundary: 'custom',\n\tconsul: 'custom',\n\tnomad: 'custom',\n\tpacker: 'custom',\n\tterraform: 'custom',\n\tvagrant: 'custom',\n\tvault: 'custom',\n\twaypoint: 'custom',\n\thashicorp: 'primary',\n}\n\ninterface ButtonPrimitiveProps {\n\tsize?: ButtonSize\n\tcolor?: LegacyButtonColor\n\tisFullWidth?: boolean\n\tisIconOnly?: boolean\n\ticon?: string\n\ticonPosition?: ButtonIconPosition\n\ttext?: string\n\thref?: string\n\tisHrefExternal?: boolean\n\tonClick?: React.MouseEventHandler<HTMLButtonElement>\n\tclassName?: string\n\tlocale?: string\n\tdisabled?: boolean\n\tautoFocus?: boolean\n\ttype?: 'button' | 'submit' | 'reset'\n}\n\nconst ICON_SIZE_MAP = {\n\tsmall: 12,\n\tmedium: 16,\n\tlarge: 24,\n} as const satisfies Record<'small' | 'medium' | 'large', FlightIconSize>\n\nconst ButtonPrimitive = forwardRef<HTMLButtonElement, ButtonPrimitiveProps>(\n\t(\n\t\t{\n\t\t\tsize = 'medium',\n\t\t\tcolor = 'primary',\n\t\t\tisFullWidth,\n\t\t\tisIconOnly,\n\t\t\ticon,\n\t\t\ticonPosition = 'leading',\n\t\t\ttext,\n\t\t\thref,\n\t\t\tisHrefExternal,\n\t\t\tclassName,\n\t\t\tlocale,\n\t\t\t...rest\n\t\t},\n\t\tref\n\t) => {\n\t\tconst hasIcon = Boolean(icon)\n\t\tconst showIconOnly = isIconOnly && hasIcon\n\n\t\tconst iconElement = icon && (\n\t\t\t<FlightIcon name={icon} size={ICON_SIZE_MAP[size]} />\n\t\t)\n\n\t\treturn (\n\t\t\t<Interactive\n\t\t\t\tclassName={classNames(\n\t\t\t\t\ts.button,\n\t\t\t\t\ts[`size-${size}`],\n\t\t\t\t\t{\n\t\t\t\t\t\t[s['width-full']]: isFullWidth,\n\t\t\t\t\t\t[s['icon-only']]: showIconOnly,\n\t\t\t\t\t},\n\t\t\t\t\tcolor !== 'custom' && s[`color-${color}`],\n\t\t\t\t\tclassName\n\t\t\t\t)}\n\t\t\t\thref={rest.disabled ? '' : href}\n\t\t\t\tisHrefExternal={isHrefExternal}\n\t\t\t\taria-label={showIconOnly ? text : undefined}\n\t\t\t\tlocale={locale}\n\t\t\t\t{...rest}\n\t\t\t\tref={ref}\n\t\t\t>\n\t\t\t\t{showIconOnly && icon ? (\n\t\t\t\t\ticonElement\n\t\t\t\t) : (\n\t\t\t\t\t<>\n\t\t\t\t\t\t{icon && iconPosition === 'leading' && iconElement}\n\t\t\t\t\t\t<div className={s.text}>{text}</div>\n\t\t\t\t\t\t{icon && iconPosition === 'trailing' && iconElement}\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t</Interactive>\n\t\t)\n\t}\n)\nButtonPrimitive.displayName = 'ButtonPrimitive'\n\nexport interface ButtonProps extends Omit<ButtonPrimitiveProps, 'color'> {\n\tcolor?: ButtonColor\n}\n\nexport const Button = forwardRef<\n\tHTMLAnchorElement | HTMLButtonElement,\n\tButtonProps\n>(({ color = 'primary', className, ...rest }, ref) => {\n\tconst legacyColor = COLOR_MAP[color]\n\n\tconst remappedColors: Partial<Record<ButtonColor, ButtonColor>> = {\n\t\thashicorp: 'primary',\n\t\tsecondary: 'secondary-white',\n\t}\n\n\tconst customClass =\n\t\tlegacyColor === 'custom'\n\t\t\t? s[`color-${remappedColors[color] ?? color}`]\n\t\t\t: undefined\n\n\treturn (\n\t\t<ButtonPrimitive\n\t\t\t{...rest}\n\t\t\tcolor={legacyColor}\n\t\t\tclassName={classNames(customClass, className)}\n\t\t\tref={ref as ForwardRefExoticComponent<HTMLButtonElement>}\n\t\t/>\n\t)\n})\n\nButton.displayName = 'Button'\n","'use client'\n\nimport { useMDSImage } from '../../../utils/mds-context'\nimport type { CardThumbnailProps } from '../types'\nimport s from './card-thumbnail.module.css'\n\nexport const CardThumbnail = ({\n\talt,\n\taspectRatio,\n\tsrc,\n}: CardThumbnailProps) => {\n\tconst Image = useMDSImage()\n\treturn src ? (\n\t\t<div\n\t\t\tclassName={s.thumbnail}\n\t\t\tstyle={{ ['--aspect-ratio' as string]: aspectRatio }}\n\t\t>\n\t\t\t<Image fill alt={alt} src={src} />\n\t\t</div>\n\t) : null\n}\n","'use client'\n\nimport { forwardRef, type PropsWithChildren } from 'react'\nimport type { CardContentProps, CardProps, CardCtaProps } from './types'\nimport { CardThumbnail } from './card-thumbnail'\nimport { useMDSLink } from '../../utils/mds-context'\nimport { Text } from '../text'\nimport classNames from 'classnames'\nimport { Badge } from '../badge'\nimport { StandaloneLink } from '../standalone-link'\nimport { IconArrowRight24 } from '@hashicorp/flight-icons/svg-react/arrow-right-24'\nimport s from './styles.module.css'\n\nconst Card = forwardRef<HTMLDivElement, CardProps>(\n\t(\n\t\t{\n\t\t\tchildren,\n\t\t\tclassName,\n\t\t\tcontent,\n\t\t\tctaLabel,\n\t\t\thref,\n\t\t\tstandaloneLink,\n\t\t\tisExternal,\n\t\t\tonClickCapture,\n\t\t\t'aria-label': ariaLabel,\n\t\t},\n\t\tref\n\t) => {\n\t\tconst Link = useMDSLink()\n\n\t\tconst isCardLink = href && !ctaLabel\n\n\t\tconst linkProps = isExternal\n\t\t\t? { target: '_blank', rel: 'noopener noreferrer' }\n\t\t\t: {}\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={classNames(\n\t\t\t\t\ts.card,\n\t\t\t\t\t{ [s.interactive]: isCardLink },\n\t\t\t\t\tclassName\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t{isCardLink && (\n\t\t\t\t\t<Link\n\t\t\t\t\t\thref={href}\n\t\t\t\t\t\tclassName={s.link}\n\t\t\t\t\t\tdraggable=\"false\"\n\t\t\t\t\t\tonClickCapture={onClickCapture}\n\t\t\t\t\t\taria-label={ariaLabel}\n\t\t\t\t\t\t{...linkProps}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t{content && (\n\t\t\t\t\t<CardContent\n\t\t\t\t\t\tbadges={content.badges}\n\t\t\t\t\t\tdescription={content.description}\n\t\t\t\t\t\teyebrow={content.eyebrow}\n\t\t\t\t\t\theading={content.heading}\n\t\t\t\t\t\tsubheading={content.subheading}\n\t\t\t\t\t\tthumbnail={content.thumbnail}\n\t\t\t\t\t\tshowArrow={content.showArrow && !!isCardLink}\n\t\t\t\t\t\tcta={{\n\t\t\t\t\t\t\tctaLabel,\n\t\t\t\t\t\t\thref,\n\t\t\t\t\t\t\tstandaloneLink,\n\t\t\t\t\t\t\tonClickCapture,\n\t\t\t\t\t\t\tisExternal,\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t{children}\n\t\t\t\t{children && (\n\t\t\t\t\t<CardCta\n\t\t\t\t\t\tctaLabel={ctaLabel}\n\t\t\t\t\t\thref={href}\n\t\t\t\t\t\tstandaloneLink={standaloneLink}\n\t\t\t\t\t\tonClickCapture={onClickCapture}\n\t\t\t\t\t\tisExternal={isExternal}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t)\n\t}\n)\n\nCard.displayName = 'Card'\n\nconst CardContent = ({\n\tbadges,\n\tdescription,\n\teyebrow,\n\theading,\n\tthumbnail,\n\tsubheading,\n\tcta,\n\tshowArrow,\n}: CardContentProps) => {\n\treturn (\n\t\t<div className={classNames(s.content, { [s['has-thumbnail']]: thumbnail })}>\n\t\t\t{thumbnail && <CardThumbnail {...thumbnail} />}\n\t\t\t<div className={s.contentLockup}>\n\t\t\t\t<CardEyebrow>{eyebrow}</CardEyebrow>\n\t\t\t\t<CardHeading>{heading}</CardHeading>\n\t\t\t\t<CardSubheading>{subheading}</CardSubheading>\n\t\t\t\t<CardDescription>{description}</CardDescription>\n\t\t\t\t<Badges badges={badges} />\n\t\t\t\t{cta && (\n\t\t\t\t\t<CardCta\n\t\t\t\t\t\tctaLabel={cta.ctaLabel}\n\t\t\t\t\t\thref={cta.href}\n\t\t\t\t\t\tstandaloneLink={cta.standaloneLink}\n\t\t\t\t\t\tisExternal={cta.isExternal}\n\t\t\t\t\t\tonClickCapture={cta.onClickCapture}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t{showArrow ? (\n\t\t\t\t\t<div className={s.arrow}>\n\t\t\t\t\t\t<IconArrowRight24 />\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</div>\n\t\t</div>\n\t)\n}\n\nconst CardCta = ({\n\thref,\n\tctaLabel,\n\tstandaloneLink,\n\tisExternal,\n\tonClickCapture,\n}: CardCtaProps) => {\n\tconst isCardLink = href && !ctaLabel\n\n\tif (standaloneLink) {\n\t\tconst standaloneLinkProps = {\n\t\t\t...standaloneLink,\n\t\t\ticon: standaloneLink.icon || 'chevron-right',\n\t\t\ticonPosition: standaloneLink.iconPosition || 'trailing',\n\t\t}\n\n\t\treturn <StandaloneLink className={s.cta} {...standaloneLinkProps} />\n\t}\n\n\tif (href && !isCardLink && ctaLabel) {\n\t\treturn (\n\t\t\t<StandaloneLink\n\t\t\t\tclassName={s.cta}\n\t\t\t\ttext={ctaLabel}\n\t\t\t\thref={href}\n\t\t\t\ticon=\"chevron-right\"\n\t\t\t\ticonPosition=\"trailing\"\n\t\t\t\tcolor=\"secondary\"\n\t\t\t\tonClickCapture={onClickCapture}\n\t\t\t\tisHrefExternal={isExternal}\n\t\t\t/>\n\t\t)\n\t}\n\n\treturn null\n}\n\nconst CardEyebrow = ({ children }: PropsWithChildren) => {\n\tif (!children) {\n\t\treturn null\n\t}\n\n\tif (Array.isArray(children)) {\n\t\treturn <CardEyebrowList items={Array.from(children)} />\n\t}\n\n\treturn <CardEyebrowText>{children}</CardEyebrowText>\n}\n\nconst CardEyebrowList = ({ items }: { items: string[] }) => (\n\t<ul className={s.meta}>\n\t\t{items.map((item, idx) => (\n\t\t\t<li key={item}>\n\t\t\t\t<CardEyebrowText>{item}</CardEyebrowText>\n\t\t\t\t{idx < items.length - 1 ? (\n\t\t\t\t\t<span className={s.metaSeparator} aria-hidden={true}>\n\t\t\t\t\t\t|\n\t\t\t\t\t</span>\n\t\t\t\t) : null}\n\t\t\t</li>\n\t\t))}\n\t</ul>\n)\n\nconst CardEyebrowText = ({ children }: PropsWithChildren) =>\n\tchildren ? (\n\t\t<Text.Label color=\"faint\" weight=\"medium\">\n\t\t\t{children}\n\t\t</Text.Label>\n\t) : null\n\nconst CardHeading = ({ children }: PropsWithChildren) =>\n\tchildren ? (\n\t\t<Text.DisplayExpressive\n\t\t\ttag=\"span\"\n\t\t\tsize=\"200\"\n\t\t\tweight=\"semibold\"\n\t\t\tcolor=\"strong\"\n\t\t>\n\t\t\t{children}\n\t\t</Text.DisplayExpressive>\n\t) : null\n\nconst CardSubheading = ({ children }: PropsWithChildren) =>\n\tchildren ? (\n\t\t<Text.Body tag=\"span\" size=\"200\" className={s.subheading} color=\"primary\">\n\t\t\t{children}\n\t\t</Text.Body>\n\t) : null\n\nconst CardDescription = ({ children }: PropsWithChildren) => {\n\tif (!children) {\n\t\treturn null\n\t}\n\n\tif (typeof children === 'string') {\n\t\treturn (\n\t\t\t<Text.Body tag=\"span\" size=\"200\" color=\"primary\">\n\t\t\t\t{children}\n\t\t\t</Text.Body>\n\t\t)\n\t}\n\n\treturn <>{children}</>\n}\n\nconst Badges = ({ badges }: { badges: CardContentProps['badges'] }) =>\n\tbadges && badges.length > 0 ? (\n\t\t<div className={s.badges}>\n\t\t\t{badges.map((badge) => (\n\t\t\t\t<Badge key={badge.text} {...badge} />\n\t\t\t))}\n\t\t</div>\n\t) : null\n\nCard.displayName = 'Card'\nexport { Card }\n","import type { MouseEvent } from 'react'\n\nconst getTextToCopy = (text: string | number | bigint) => {\n\tlet textToCopy: string\n\n\tif (text) {\n\t\tif (typeof text === 'string') {\n\t\t\ttextToCopy = text\n\t\t} else if (\n\t\t\t// context: https://github.com/hashicorp/design-system/pull/1564\n\t\t\ttypeof text === 'number' ||\n\t\t\ttypeof text === 'bigint'\n\t\t) {\n\t\t\ttextToCopy = text.toString()\n\t\t} else {\n\t\t\tthrow new Error(\n\t\t\t\t`\\`hds-clipboard\\` modifier - \\`text\\` argument must be a string - provided: ${typeof text}`\n\t\t\t)\n\t\t}\n\t}\n\treturn textToCopy!\n}\n\nconst getTargetElement = (target: string | Element) => {\n\tlet targetElement: Element | null\n\tif (typeof target === 'string') {\n\t\ttargetElement = document.querySelector(target)\n\n\t\tif (!targetElement) {\n\t\t\tconsole.error(\n\t\t\t\t'`hds-clipboard` modifier - `target` selector provided does not point to an existing DOM node, check your selector string',\n\t\t\t\ttargetElement\n\t\t\t)\n\t\t\treturn\n\t\t}\n\t} else if (target instanceof Node && target.nodeType === Node.ELEMENT_NODE) {\n\t\ttargetElement = target\n\t} else {\n\t\tif (target instanceof NodeList) {\n\t\t\tthrow new Error(\n\t\t\t\t'`hds-clipboard` modifier - `target` argument must be a string or a DOM node - provided: a list of DOM nodes'\n\t\t\t)\n\t\t} else {\n\t\t\tthrow new Error(\n\t\t\t\t`\\`hds-clipboard\\` modifier - \\`target\\` argument must be a string or a DOM node - provided: ${typeof target}`\n\t\t\t)\n\t\t}\n\t}\n\treturn targetElement\n}\n\nconst getTextToCopyFromTargetElement = (targetElement: Element | undefined) => {\n\tlet textToCopy: string | undefined\n\tif (\n\t\ttargetElement instanceof Node &&\n\t\ttargetElement.nodeType === Node.ELEMENT_NODE\n\t) {\n\t\tif (\n\t\t\ttargetElement instanceof HTMLInputElement || // targetElement.nodeName === 'INPUT' ||\n\t\t\ttargetElement instanceof HTMLTextAreaElement || // targetElement.nodeName === 'TEXTAREA' ||\n\t\t\ttargetElement instanceof HTMLSelectElement // targetElement.nodeName === 'SELECT'\n\t\t) {\n\t\t\ttextToCopy = targetElement.value\n\t\t} else {\n\t\t\t// simplest approach\n\t\t\ttextToCopy = (targetElement as HTMLElement).innerText\n\n\t\t\t// approach based on text selection (left for backup just in case)\n\t\t\t// var selection = window.getSelection();\n\t\t\t// var range = document.createRange();\n\t\t\t// selection.removeAllRanges();\n\t\t\t// range.selectNodeContents(targetElement);\n\t\t\t// selection.addRange(range);\n\t\t\t// textToCopy = selection.toString();\n\t\t\t// selection.removeAllRanges();\n\t\t}\n\t}\n\treturn textToCopy\n}\n\nconst writeTextToClipboard = async (textToCopy: string | undefined) => {\n\t// finally copy the text to the clipboard using the Clipboard API\n\t// https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API\n\tif (textToCopy) {\n\t\ttry {\n\t\t\t// notice: the \"clipboard-write\" permission is granted automatically to pages when they are in the active tab\n\t\t\t// https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/write\n\t\t\tawait navigator.clipboard.writeText(textToCopy)\n\t\t\t// DEBUG uncomment this for easy debugging\n\t\t\t// console.log('success', textToCopy);\n\t\t\treturn true\n\t\t} catch (error) {\n\t\t\t// clipboard write failed\n\t\t\t// this probably never happens (see comment above) or happens only for very old browsers that don't for which `navigator.clipboard` is undefined\n\t\t\tconsole.warn(\n\t\t\t\t'copy action failed, please check your browser‘s permissions',\n\t\t\t\t{\n\t\t\t\t\tid: 'hds-clipboard.write-text-to-clipboard.catch-error',\n\t\t\t\t}\n\t\t\t)\n\t\t\treturn false\n\t\t}\n\t} else {\n\t\treturn false\n\t}\n}\n\nconst copyToClipboard = async (\n\ttext: string | number | bigint | undefined,\n\ttarget: string | Element | undefined,\n\tgetTextFn: (() => string) | undefined\n) => {\n\tlet textToCopy: string | undefined\n\n\tif (getTextFn) {\n\t\ttextToCopy = getTextFn()\n\t} else if (text) {\n\t\ttextToCopy = getTextToCopy(text)\n\t} else if (target) {\n\t\tconst targetElement = getTargetElement(target)\n\t\ttextToCopy = getTextToCopyFromTargetElement(targetElement)\n\t} else {\n\t\tthrow new Error(\n\t\t\t'`hds-clipboard` modifier - either a `getTextFn`, `text`, or a `target` argument is required'\n\t\t)\n\t}\n\tconst success = await writeTextToClipboard(textToCopy)\n\treturn success\n}\n\ntype HandlerArgs = {\n\ttrigger: Element\n\ttext: string | number | bigint | undefined\n\ttarget: string | Element | undefined\n}\n\nconst onClickHandler = (named: {\n\ttext: string | number | bigint | undefined\n\ttarget: string | Element | undefined\n\tgetTextFn: (() => string) | undefined\n\tonSuccess: (args: HandlerArgs) => void\n\tonError: (args: HandlerArgs) => void\n}) => {\n\tconst { text, target, getTextFn, onSuccess, onError } = named\n\n\tconst onClick = async (event: MouseEvent<HTMLButtonElement>) => {\n\t\tconst trigger = event.currentTarget\n\t\tconst success = await copyToClipboard(text, target, getTextFn)\n\n\t\t// fire the `onSuccess/onError` callbacks (if provided)\n\t\tif (success) {\n\t\t\tif (typeof onSuccess === 'function') {\n\t\t\t\tonSuccess({ trigger, text, target })\n\t\t\t}\n\t\t} else {\n\t\t\tif (typeof onError === 'function') {\n\t\t\t\tonError({ trigger, text, target })\n\t\t\t}\n\t\t}\n\t}\n\n\treturn { onClick }\n}\n\nexport { onClickHandler, type HandlerArgs }\n","'use client'\n\nimport { useRef, useState } from 'react'\nimport { onClickHandler, type HandlerArgs } from './clipboard'\nimport classNames from 'classnames'\nimport { Button } from '../../components/button'\nimport s from './style.module.css'\n\nexport interface CopyButtonProps {\n\tsize?: 'small' | 'medium'\n\tisIconOnly?: boolean\n\tisFullWidth?: boolean\n\ttext: string\n\ttextToCopy?: string\n\tgetTextFn?: () => string\n\ttargetToCopy?: string | Element\n\tonSuccess?: (args: HandlerArgs) => void\n\tonError?: (args: HandlerArgs) => void\n\tclassName?: string\n\tdefaultIcon?: string\n}\n\nconst DEFAULT_ICON = 'clipboard-copy'\nconst SUCCESS_ICON = 'clipboard-checked'\nconst ERROR_ICON = 'clipboard-x'\nconst DEFAULT_STATUS = 'idle'\n\nconst CopyButton = ({\n\tsize = 'medium',\n\tisIconOnly = false,\n\tisFullWidth = false,\n\ttext,\n\ttextToCopy,\n\tgetTextFn,\n\ttargetToCopy,\n\tonSuccess,\n\tonError,\n\tclassName,\n\tdefaultIcon,\n\t...rest\n}: CopyButtonProps) => {\n\tconst [status, setStatus] = useState(DEFAULT_STATUS)\n\tconst timer = useRef<ReturnType<typeof setTimeout> | null>(null)\n\tconst icon =\n\t\tstatus === 'idle'\n\t\t\t? defaultIcon || DEFAULT_ICON\n\t\t\t: status === 'success'\n\t\t\t? SUCCESS_ICON\n\t\t\t: ERROR_ICON\n\n\tconst resetStatusDelayed = () => {\n\t\tif (timer.current) {\n\t\t\tclearTimeout(timer.current)\n\t\t}\n\t\ttimer.current = setTimeout(() => {\n\t\t\tsetStatus(DEFAULT_STATUS)\n\t\t}, 1500)\n\t}\n\n\tconst _onSuccess = (args: HandlerArgs) => {\n\t\tsetStatus('success')\n\t\tresetStatusDelayed()\n\n\t\tif (onSuccess) {\n\t\t\tonSuccess(args)\n\t\t}\n\t}\n\n\tconst _onError = (args: HandlerArgs) => {\n\t\tsetStatus('error')\n\t\tresetStatusDelayed()\n\n\t\tif (onError) {\n\t\t\tonError(args)\n\t\t}\n\t}\n\n\treturn (\n\t\t<Button\n\t\t\tclassName={classNames(s['copy-button'], s[status], className)}\n\t\t\tsize={size}\n\t\t\tisFullWidth={isFullWidth}\n\t\t\ttext={text}\n\t\t\ticon={icon}\n\t\t\tisIconOnly={isIconOnly}\n\t\t\tcolor=\"secondary\"\n\t\t\ticonPosition=\"trailing\"\n\t\t\t{...onClickHandler({\n\t\t\t\ttext: textToCopy,\n\t\t\t\tgetTextFn: getTextFn,\n\t\t\t\ttarget: targetToCopy,\n\t\t\t\tonSuccess: _onSuccess,\n\t\t\t\tonError: _onError,\n\t\t\t})}\n\t\t\t{...rest}\n\t\t/>\n\t)\n}\n\nCopyButton.displayName = 'CopyButton'\n\nexport { CopyButton }\n"],"names":["FLIGHT_ICON_SIZES","SPRITE_SIZE_MAP","svgSpriteSrc","svgSprite","FlightIcon","name","color","size","stretched","isInlineBlock","title","className","rest","iconId","useId","titleId","spriteSize","jsx","classNames","s","jsxs","Fragment","TEXT_COLORS","TEXT_WEIGHTS","getTypographyToken","group","TextImpl","tag","weight","align","children","Component","variant","usesPredefinedColor","Body","createElement","DisplayExpressive","Label","props","HDSBody","Code","Text","BADGE_SIZES","BADGE_TYPES","BADGE_COLORS","ICON_SIZE_MAP","Badge","icon","iconColor","iconOnly","text","type","Interactive","forwardRef","ref","Link","useMDSLink","href","isHrefExternal","onClick","locale","getLocalizedLinkProps","STANDALONE_LINK_SIZES","STANDALONE_LINK_COLORS","STANDALONE_LINK_ICON_POSITIONS","StandaloneLink","iconPosition","dataTestId","iconElement","BUTTON_SIZES","BUTTON_ICON_POSITIONS","BUTTON_COLORS","COLOR_MAP","ButtonPrimitive","isFullWidth","isIconOnly","showIconOnly","Button","legacyColor","customClass","CardThumbnail","alt","aspectRatio","src","Image","useMDSImage","Card","content","ctaLabel","standaloneLink","isExternal","onClickCapture","ariaLabel","isCardLink","linkProps","CardContent","CardCta","badges","description","eyebrow","heading","thumbnail","subheading","cta","showArrow","CardEyebrow","CardHeading","CardSubheading","CardDescription","Badges","IconArrowRight24","standaloneLinkProps","CardEyebrowList","CardEyebrowText","items","item","idx","badge","getTextToCopy","textToCopy","getTargetElement","target","targetElement","getTextToCopyFromTargetElement","writeTextToClipboard","copyToClipboard","getTextFn","onClickHandler","named","onSuccess","onError","event","trigger","DEFAULT_ICON","SUCCESS_ICON","ERROR_ICON","DEFAULT_STATUS","CopyButton","targetToCopy","defaultIcon","status","setStatus","useState","timer","useRef","resetStatusDelayed","_onSuccess","args","_onError"],"mappings":";;;;;;;;;;;GAQMA,KAAoB,CAAC,IAAI,IAAI,IAAI,EAAE,GAGnCC,KAAkB;AAAA,EACvB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACL,GA8CMC,IACL,OAAOC,KAAc,WAAWA,IAAaA,EAA8B,KAEtEC,IAAa,CAAC;AAAA,EACnB,MAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,MAAAC,IAAO;AAAA,EACP,WAAAC,IAAY;AAAA,EACZ,eAAAC,IAAgB;AAAA,EAChB,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACJ,MAAuB;AACtB,QAAMC,IAASC,EAAA,GACTC,IAAUD,EAAA,GAEVE,IAAaf,GAAgBM,CAAI;AAEvC,SACC,gBAAAU;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,WAAWC;AAAA,QACVC,EAAE,aAAa;AAAA,QACf,eAAed,CAAI;AAAA,QACnB;AAAA,UACC,CAACc,EAAE,gBAAgB,CAAC,GAAGV,KAAiB,CAACD;AAAA,UACzC,CAACW,EAAE,OAAU,GAAGd,MAAS;AAAA,UACzB,CAACc,EAAE,OAAU,GAAGd,MAAS;AAAA,QAAA;AAAA,QAE1BM;AAA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,EAAUL,CAAc;AAAA,IACzB,GAAG,IAAI;AAAA,EACR,GAEMU,IAAa,CAACC,MAAsB;AACzC,IAAAN,EAAU,SAAS,GACnBI,EAAA,GAEIhB,KACHA,EAAUkB,CAAI;AAAA,EAEhB,GAEMC,IAAW,CAACD,MAAsB;AACvC,IAAAN,EAAU,OAAO,GACjBI,EAAA,GAEIf,KACHA,EAAQiB,CAAI;AAAA,EAEd;AAEA,SACC,gBAAAlI;AAAA,IAAC4D;AAAA,IAAA;AAAA,MACA,WAAW3D,EAAWC,EAAE,aAAa,GAAGA,EAAEyH,CAAM,GAAGjI,CAAS;AAAA,MAC5D,MAAAJ;AAAA,MACA,aAAAmE;AAAA,MACA,MAAAxB;AAAA,MACA,MAAAH;AAAA,MACA,YAAA4B;AAAA,MACA,OAAM;AAAA,MACN,cAAa;AAAA,MACZ,GAAGoD,GAAe;AAAA,QAClB,MAAMR;AAAA,QACN,WAAAO;AAAA,QACA,QAAQY;AAAA,QACR,WAAWQ;AAAA,QACX,SAASE;AAAA,MAAA,CACT;AAAA,MACA,GAAGxI;AAAA,IAAA;AAAA,EAAA;AAGP;AAEA6H,GAAW,cAAc;"}
|
package/index.js
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { A as e, a as o, b as r, c as t, d as i, e as d, f as n, g as l, B as T, _ as S, h as C, l as O, j as u, k as c, C as A, D as L, $ as I, i as _, E as g, F as P, m as B, o as p, n as N, H as m, J as D, I as R, K as E, L as x, p as F, M as G, N as U, q as b, s as k, t as f, r as h, R as M, S as v, P as Z, v as y, Q as H, Y as K, x as Y, T as z, w as j, z as w, y as X, G as V, U as W, 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 ra, b as ta, e as ia, f as da, g as na, c as la, d as Ta, C as Sa, n as Ca, F as Oa, h as ua, i as ca, j as Aa, k as La, S as Ia, l as _a, m as ga, T as Pa } from "./index-WkGIywHj.js";
|
|
3
|
+
import { C as pa, c as Na, d as ma, e as Da, L as Ra, N as Ea, h as xa, i as Fa, j as Ga, b as Ua, P as ba, f as ka, g as fa, a as ha, l as Ma, R as va, U as Za, n as ya, k as Ha } from "./index-B9mPJh9w.js";
|
|
4
|
+
import { u as Ya, a as za, b as ja, c as wa } from "./use-screen-size-BOnkX_K-.js";
|
|
5
|
+
import { M as Va } from "./index-DBjAbGt7.js";
|
|
6
|
+
export {
|
|
7
|
+
e as Accordion,
|
|
8
|
+
o as AccordionContent,
|
|
9
|
+
r as AccordionItem,
|
|
10
|
+
t as AccordionToggle,
|
|
11
|
+
i as Alert,
|
|
12
|
+
d as AlertActions,
|
|
13
|
+
n as AlertButton,
|
|
14
|
+
l as AlertStandaloneLink,
|
|
15
|
+
oa as BADGE_COLORS,
|
|
16
|
+
ra as BADGE_SIZES,
|
|
17
|
+
ta as BADGE_TYPES,
|
|
18
|
+
ia as BUTTON_COLORS,
|
|
19
|
+
da as BUTTON_ICON_POSITIONS,
|
|
20
|
+
na as BUTTON_SIZES,
|
|
21
|
+
la as Badge,
|
|
22
|
+
T as BadgeCount,
|
|
23
|
+
S as BarChart,
|
|
24
|
+
C as Breadcrumbs,
|
|
25
|
+
Ta as Button,
|
|
26
|
+
Sa as Card,
|
|
27
|
+
pa as CardPrimitives,
|
|
28
|
+
O as CheckboxBase,
|
|
29
|
+
u as CheckboxField,
|
|
30
|
+
c as CheckboxGroup,
|
|
31
|
+
A as CodeBlock,
|
|
32
|
+
Ca as CopyButton,
|
|
33
|
+
L as DisclosurePrimitive,
|
|
34
|
+
I as DonutChart,
|
|
35
|
+
_ as Dropdown,
|
|
36
|
+
g as Error,
|
|
37
|
+
Oa as FLIGHT_ICON_SIZES,
|
|
38
|
+
P as Field,
|
|
39
|
+
B as Fieldset,
|
|
40
|
+
p as FileInputBase,
|
|
41
|
+
N as FileInputField,
|
|
42
|
+
ua as FlightIcon,
|
|
43
|
+
m as HelperText,
|
|
44
|
+
D as IconTile,
|
|
45
|
+
R as Indicator,
|
|
46
|
+
E as InlineLink,
|
|
47
|
+
Na as LAYOUT_APPEARANCES,
|
|
48
|
+
ma as LAYOUT_BACKGROUNDS,
|
|
49
|
+
Da as LAYOUT_PADDING,
|
|
50
|
+
x as Label,
|
|
51
|
+
Ra as Layout,
|
|
52
|
+
F as Legend,
|
|
53
|
+
G as MDSButton,
|
|
54
|
+
Va as MDSProvider,
|
|
55
|
+
U as ModalProvider,
|
|
56
|
+
Ea as NewsroomCard,
|
|
57
|
+
xa as PRODUCT_LOGO_COLORS,
|
|
58
|
+
Fa as PRODUCT_LOGO_PRODUCTS,
|
|
59
|
+
Ga as PRODUCT_LOGO_SIZES,
|
|
60
|
+
Ua as PartnerCard,
|
|
61
|
+
ba as PersonCard,
|
|
62
|
+
ka as ProductBadge,
|
|
63
|
+
fa as ProductLogo,
|
|
64
|
+
ha as PromoCard,
|
|
65
|
+
b as RadioBase,
|
|
66
|
+
k as RadioCard,
|
|
67
|
+
f as RadioCardGroup,
|
|
68
|
+
h as RadioField,
|
|
69
|
+
M as RadioGroup,
|
|
70
|
+
Ma as RelatedContent,
|
|
71
|
+
va as ResourceCard,
|
|
72
|
+
ca as STANDALONE_LINK_COLORS,
|
|
73
|
+
Aa as STANDALONE_LINK_ICON_POSITIONS,
|
|
74
|
+
La as STANDALONE_LINK_SIZES,
|
|
75
|
+
v as SelectField,
|
|
76
|
+
Z as Separator,
|
|
77
|
+
Ia as StandaloneLink,
|
|
78
|
+
y as SuperSelectField,
|
|
79
|
+
_a as TEXT_COLORS,
|
|
80
|
+
ga as TEXT_WEIGHTS,
|
|
81
|
+
H as Table,
|
|
82
|
+
K as Tabs,
|
|
83
|
+
Pa as Text,
|
|
84
|
+
Y as TextAreaField,
|
|
85
|
+
z as TextInput,
|
|
86
|
+
j as TextInputBase,
|
|
87
|
+
w as ToggleBase,
|
|
88
|
+
X as ToggleField,
|
|
89
|
+
V as ToggleGroup,
|
|
90
|
+
Za as UnifiedCard,
|
|
91
|
+
W as getDensity,
|
|
92
|
+
q as getHorizontalAlignment,
|
|
93
|
+
J as getScope,
|
|
94
|
+
Q as getVerticalAlignment,
|
|
95
|
+
ya as normalizeLayoutProps,
|
|
96
|
+
Ha as normalizeProductLogoProps,
|
|
97
|
+
$ as useDisclosurePrimitive,
|
|
98
|
+
Ya as useLarge,
|
|
99
|
+
za as useMedium,
|
|
100
|
+
ja as useMediumUp,
|
|
101
|
+
aa as useModal,
|
|
102
|
+
wa as useSmall,
|
|
103
|
+
sa as useTabsContext
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
package/package.json
CHANGED
|
@@ -1,113 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
"name": "@hashicorp/mds-react",
|
|
3
|
+
"version": "0.9.2",
|
|
4
|
+
"description": "Materia Design System React components",
|
|
5
|
+
"author": "HashiCorp",
|
|
6
|
+
"license": "MPL-2.0",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/hashicorp/web.git",
|
|
11
|
+
"directory": "packages/mds-react"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/hashicorp/web/tree/main/packages/mds-react#readme",
|
|
14
14
|
"bugs": {
|
|
15
15
|
"url": "https://github.com/hashicorp/web/issues"
|
|
16
16
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"lint": "eslint",
|
|
78
|
-
"test": "vitest run",
|
|
79
|
-
"test:watch": "vitest watch"
|
|
80
|
-
},
|
|
81
|
-
"dependencies": {
|
|
82
|
-
"@hashicorp/flight-icons": "^3.7.0",
|
|
83
|
-
"@nivo/pie": "^0.87.0",
|
|
84
|
-
"@react-spring/web": "^9.7.3",
|
|
85
|
-
"@web/utils": "*",
|
|
86
|
-
"classnames": "^2.3.2",
|
|
87
|
-
"react-focus-lock": "^2.13.6",
|
|
88
|
-
"react-wrap-balancer": "^0.4.0",
|
|
89
|
-
"use-resize-observer": "^9.1.0"
|
|
90
|
-
},
|
|
91
|
-
"peerDependencies": {
|
|
92
|
-
"@tippyjs/react": "^4.2.6",
|
|
93
|
-
"react": "^18.2.0",
|
|
94
|
-
"react-dom": "^18.2.0",
|
|
95
|
-
"tippy.js": "^6.3.1"
|
|
96
|
-
},
|
|
97
|
-
"devDependencies": {
|
|
98
|
-
"@hashicorp/mds-postcss-config": "*",
|
|
99
|
-
"@testing-library/jest-dom": "^6.4.2",
|
|
100
|
-
"@types/react": "^18.2.68",
|
|
101
|
-
"@types/react-dom": "^18.0.6",
|
|
102
|
-
"@vitejs/plugin-react": "^4.2.1",
|
|
103
|
-
"npm-run-all": "^4.1.5",
|
|
104
|
-
"rimraf": "^5.0.0",
|
|
105
|
-
"typescript": "^5.4.5",
|
|
106
|
-
"vite-plugin-dts": "^4.5.4",
|
|
107
|
-
"vite-plugin-externalize-deps": "^0.9.0",
|
|
108
|
-
"vitest": "^1.4.0"
|
|
109
|
-
},
|
|
110
|
-
"engines": {
|
|
111
|
-
"node": ">=18.17"
|
|
112
|
-
}
|
|
17
|
+
"sideEffects": [
|
|
18
|
+
"**/*.css"
|
|
19
|
+
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=18.17"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"module": "./index.js",
|
|
27
|
+
"types": "./index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./index.d.ts",
|
|
31
|
+
"import": "./index.js"
|
|
32
|
+
},
|
|
33
|
+
"./components": {
|
|
34
|
+
"types": "./components/index.d.ts",
|
|
35
|
+
"import": "./components/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./patterns": {
|
|
38
|
+
"types": "./patterns/index.d.ts",
|
|
39
|
+
"import": "./patterns/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./utils": {
|
|
42
|
+
"types": "./utils/index.d.ts",
|
|
43
|
+
"import": "./utils/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./style.css": "./style.css",
|
|
46
|
+
"./package.json": "./package.json",
|
|
47
|
+
"./*": null
|
|
48
|
+
},
|
|
49
|
+
"typesVersions": {
|
|
50
|
+
"*": {
|
|
51
|
+
"components": [
|
|
52
|
+
"components/index.d.ts"
|
|
53
|
+
],
|
|
54
|
+
"patterns": [
|
|
55
|
+
"patterns/index.d.ts"
|
|
56
|
+
],
|
|
57
|
+
"utils": [
|
|
58
|
+
"utils/index.d.ts"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@hashicorp/flight-icons": "^3.7.0",
|
|
64
|
+
"@nivo/pie": "^0.87.0",
|
|
65
|
+
"@react-spring/web": "^9.7.3",
|
|
66
|
+
"classnames": "^2.3.2",
|
|
67
|
+
"react-focus-lock": "^2.13.6",
|
|
68
|
+
"react-wrap-balancer": "^0.4.0",
|
|
69
|
+
"use-resize-observer": "^9.1.0"
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"@tippyjs/react": "^4.2.6",
|
|
73
|
+
"react": "^18.2.0",
|
|
74
|
+
"react-dom": "^18.2.0",
|
|
75
|
+
"tippy.js": "^6.3.1"
|
|
76
|
+
}
|
|
113
77
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MDSImageProps } from '../../../utils/mds-context';
|
|
2
|
-
import { CardPatternProps } from '../types';
|
|
1
|
+
import type { MDSImageProps } from '../../../utils/mds-context';
|
|
2
|
+
import type { CardPatternProps } from '../types';
|
|
3
3
|
interface PartnerCardProps {
|
|
4
4
|
heading: string;
|
|
5
5
|
description: string;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { CardPrimitiveProps, MetaProps, ContentProps, HeadingProps, ProductBadgesProps, DescriptionProps } from './types';
|
|
1
|
+
import type { CardPrimitiveProps, MetaProps, ContentProps, HeadingProps, ProductBadgesProps, DescriptionProps } from './types';
|
|
2
2
|
declare const CardPrimitives: {
|
|
3
|
-
Root: import(
|
|
3
|
+
Root: import("react").ForwardRefExoticComponent<CardPrimitiveProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
4
|
Thumbnail: {
|
|
5
|
-
({ src, alt }: import(
|
|
5
|
+
({ src, alt }: import("./types").ThumbnailProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
};
|
|
8
8
|
PersonThumbnail: {
|
|
9
|
-
({ src, alt }: import(
|
|
9
|
+
({ src, alt }: import("./types").ThumbnailProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
LogoThumbnail: {
|
|
13
|
-
({ src, alt }: import(
|
|
13
|
+
({ src, alt }: import("./types").ThumbnailProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
Meta: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
import { ProductBadgeProps } from '../../patterns/product-badge';
|
|
3
|
-
import { NewsroomCardProps } from './newsroom-card';
|
|
4
|
-
import { PersonCardProps } from './person-card';
|
|
5
|
-
import { ResourceCardProps } from './resource-card';
|
|
6
|
-
import { UnifiedCardProps } from './unified-card';
|
|
1
|
+
import type { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import type { ProductBadgeProps } from '../../patterns/product-badge';
|
|
3
|
+
import type { NewsroomCardProps } from './newsroom-card';
|
|
4
|
+
import type { PersonCardProps } from './person-card';
|
|
5
|
+
import type { ResourceCardProps } from './resource-card';
|
|
6
|
+
import type { UnifiedCardProps } from './unified-card';
|
|
7
7
|
interface BaseCardProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'aria-label'> {
|
|
8
8
|
withArrow?: boolean;
|
|
9
9
|
link: string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { C as s, c as r, d as C, e as P, L as e, N as O, h as d, i as t, j as L, b as n, P as R, f as U, g as _, a as i, l as A, R as m, U as u, n as D, k as T } from "../index-B9mPJh9w.js";
|
|
2
|
+
import { n as c } from "../index-WkGIywHj.js";
|
|
3
|
+
export {
|
|
4
|
+
s as CardPrimitives,
|
|
5
|
+
c as CopyButton,
|
|
6
|
+
r as LAYOUT_APPEARANCES,
|
|
7
|
+
C as LAYOUT_BACKGROUNDS,
|
|
8
|
+
P as LAYOUT_PADDING,
|
|
9
|
+
e as Layout,
|
|
10
|
+
O as NewsroomCard,
|
|
11
|
+
d as PRODUCT_LOGO_COLORS,
|
|
12
|
+
t as PRODUCT_LOGO_PRODUCTS,
|
|
13
|
+
L as PRODUCT_LOGO_SIZES,
|
|
14
|
+
n as PartnerCard,
|
|
15
|
+
R as PersonCard,
|
|
16
|
+
U as ProductBadge,
|
|
17
|
+
_ as ProductLogo,
|
|
18
|
+
i as PromoCard,
|
|
19
|
+
A as RelatedContent,
|
|
20
|
+
m as ResourceCard,
|
|
21
|
+
u as UnifiedCard,
|
|
22
|
+
D as normalizeLayoutProps,
|
|
23
|
+
T as normalizeProductLogoProps
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|