@bundle-stats/ui 4.3.0-beta.3 → 4.3.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/globals.d.ts +4 -0
- package/lib/app/app.js +21 -9
- package/lib/app/app.js.map +1 -1
- package/lib/assets/icons.svg +5 -0
- package/lib/assets/icons.svg.js +4 -0
- package/lib/assets/icons.svg.js.map +1 -1
- package/lib/components/asset-info/asset-info.js +43 -44
- package/lib/components/asset-info/asset-info.js.map +1 -1
- package/lib/components/asset-info/asset-info.module.css +18 -6
- package/lib/components/asset-info/index.js.map +1 -1
- package/lib/components/asset-not-predictive/asset-not-predictive.js +28 -0
- package/lib/components/asset-not-predictive/asset-not-predictive.js.map +1 -0
- package/lib/components/asset-not-predictive/asset-not-predictive.module.css +3 -0
- package/lib/components/asset-not-predictive/index.js +18 -0
- package/lib/components/asset-not-predictive/index.js.map +1 -0
- package/lib/components/bundle-assets/bundle-assets.js +17 -25
- package/lib/components/bundle-assets/bundle-assets.js.map +1 -1
- package/lib/components/bundle-assets/bundle-assets.module.css +13 -20
- package/lib/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js +7 -5
- package/lib/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js.map +1 -1
- package/lib/components/bundle-modules/bundle-modules.js +1 -2
- package/lib/components/bundle-modules/bundle-modules.js.map +1 -1
- package/lib/components/bundle-modules/bundle-modules.module.css +5 -0
- package/lib/components/bundle-packages/bundle-packages.js +14 -45
- package/lib/components/bundle-packages/bundle-packages.js.map +1 -1
- package/lib/components/bundle-packages/bundle-packages.module.css +4 -0
- package/lib/components/delta/delta.module.css +2 -1
- package/lib/components/entry-info/entry-info.js +46 -0
- package/lib/components/entry-info/entry-info.js.map +1 -0
- package/lib/components/entry-info/entry-info.module.css +33 -0
- package/lib/components/{summary-item → entry-info}/index.js +1 -1
- package/lib/components/entry-info/index.js.map +1 -0
- package/lib/components/index.js +7 -3
- package/lib/components/index.js.map +1 -1
- package/lib/components/insight-icon/index.js +18 -0
- package/lib/components/insight-icon/index.js.map +1 -0
- package/lib/components/insight-icon/insight-icon.js +25 -0
- package/lib/components/insight-icon/insight-icon.js.map +1 -0
- package/lib/components/insight-icon/insight-icon.module.css +24 -0
- package/lib/components/insights/insights.js +6 -39
- package/lib/components/insights/insights.js.map +1 -1
- package/lib/components/insights/insights.module.css +1 -19
- package/lib/components/metric/index.js.map +1 -1
- package/lib/components/metric/metric.js +7 -64
- package/lib/components/metric/metric.js.map +1 -1
- package/lib/components/metric/metric.module.css +3 -3
- package/lib/components/metric-run-info/index.js +18 -0
- package/lib/components/metric-run-info/index.js.map +1 -0
- package/lib/components/metric-run-info/metric-run-info.js +64 -0
- package/lib/components/metric-run-info/metric-run-info.js.map +1 -0
- package/lib/components/metric-run-info/metric-run-info.module.css +18 -0
- package/lib/components/metrics-table-options/metrics-table-options.js +1 -1
- package/lib/components/metrics-table-options/metrics-table-options.js.map +1 -1
- package/lib/components/metrics-table-search/metrics-table-search.module.css +0 -6
- package/lib/components/metrics-table-title/metrics-table-title.module.css +1 -0
- package/lib/components/module-info/index.js.map +1 -1
- package/lib/components/module-info/module-info.js +46 -47
- package/lib/components/module-info/module-info.js.map +1 -1
- package/lib/components/module-info/module-info.module.css +4 -6
- package/lib/components/package-info/index.js +18 -0
- package/lib/components/package-info/index.js.map +1 -0
- package/lib/components/package-info/package-info.js +71 -0
- package/lib/components/package-info/package-info.js.map +1 -0
- package/lib/components/package-info/package-info.module.css +13 -0
- package/lib/components/run-info/index.js +18 -0
- package/lib/components/run-info/index.js.map +1 -0
- package/lib/components/run-info/run-info.js +70 -0
- package/lib/components/run-info/run-info.js.map +1 -0
- package/{src/components/summary-item/summary-item.module.css → lib/components/run-info/run-info.module.css} +14 -19
- package/lib/components/summary/index.js.map +1 -1
- package/lib/components/summary/summary.js +10 -30
- package/lib/components/summary/summary.js.map +1 -1
- package/lib/components/summary/summary.module.css +17 -6
- package/lib/constants.js +1 -23
- package/lib/constants.js.map +1 -1
- package/lib/css/variables.css +17 -13
- package/lib/layout/box/box.js +3 -23
- package/lib/layout/box/box.js.map +1 -1
- package/lib/layout/box/box.module.css +11 -0
- package/lib/layout/box/index.js +15 -3
- package/lib/layout/box/index.js.map +1 -1
- package/lib/layout/flex-stack/flex-stack.js +3 -19
- package/lib/layout/flex-stack/flex-stack.js.map +1 -1
- package/lib/layout/flex-stack/index.js.map +1 -1
- package/lib/layout/stack/index.js.map +1 -1
- package/lib/layout/stack/stack.js +3 -16
- package/lib/layout/stack/stack.js.map +1 -1
- package/lib/tokens.js +38 -0
- package/lib/tokens.js.map +1 -0
- package/lib/ui/alert/alert.js +2 -12
- package/lib/ui/alert/alert.js.map +1 -1
- package/lib/ui/alert/index.js.map +1 -1
- package/lib/ui/container/container.js +1 -10
- package/lib/ui/container/container.js.map +1 -1
- package/lib/ui/container/index.js +15 -3
- package/lib/ui/container/index.js.map +1 -1
- package/lib/ui/dropdown/dropdown.module.css +1 -2
- package/lib/ui/file-name/file-name.js +1 -1
- package/lib/ui/file-name/file-name.js.map +1 -1
- package/lib/ui/filters/filters.module.css +1 -5
- package/lib/ui/hover-card/hover-card.js +1 -1
- package/lib/ui/icon/icon.js +1 -0
- package/lib/ui/icon/icon.js.map +1 -1
- package/lib/ui/index.js +1 -3
- package/lib/ui/index.js.map +1 -1
- package/lib/ui/input/input.module.css +3 -4
- package/lib/ui/table/index.js.map +1 -1
- package/lib/ui/table/table.js +3 -17
- package/lib/ui/table/table.js.map +1 -1
- package/lib/ui/tag/index.js.map +1 -1
- package/lib/ui/tag/tag.js +5 -29
- package/lib/ui/tag/tag.js.map +1 -1
- package/lib/ui/tag/tag.module.css +15 -1
- package/lib/ui/tooltip/index.js.map +1 -1
- package/lib/ui/tooltip/tooltip.js +3 -23
- package/lib/ui/tooltip/tooltip.js.map +1 -1
- package/lib/ui/tooltip/tooltip.module.css +4 -4
- package/lib-esm/app/app.js +22 -10
- package/lib-esm/app/app.js.map +1 -1
- package/lib-esm/assets/icons.svg +5 -0
- package/lib-esm/assets/icons.svg.js +4 -0
- package/lib-esm/assets/icons.svg.js.map +1 -1
- package/lib-esm/components/asset-info/asset-info.js +22 -45
- package/lib-esm/components/asset-info/asset-info.js.map +1 -1
- package/lib-esm/components/asset-info/asset-info.module.css +18 -6
- package/lib-esm/components/asset-info/index.js.map +1 -1
- package/lib-esm/components/asset-not-predictive/asset-not-predictive.js +21 -0
- package/lib-esm/components/asset-not-predictive/asset-not-predictive.js.map +1 -0
- package/lib-esm/components/asset-not-predictive/asset-not-predictive.module.css +3 -0
- package/lib-esm/components/asset-not-predictive/index.js +2 -0
- package/lib-esm/components/asset-not-predictive/index.js.map +1 -0
- package/lib-esm/components/bundle-assets/bundle-assets.js +17 -25
- package/lib-esm/components/bundle-assets/bundle-assets.js.map +1 -1
- package/lib-esm/components/bundle-assets/bundle-assets.module.css +13 -20
- package/lib-esm/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js +6 -6
- package/lib-esm/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js.map +1 -1
- package/lib-esm/components/bundle-modules/bundle-modules.js +1 -2
- package/lib-esm/components/bundle-modules/bundle-modules.js.map +1 -1
- package/lib-esm/components/bundle-modules/bundle-modules.module.css +5 -0
- package/lib-esm/components/bundle-packages/bundle-packages.js +15 -46
- package/lib-esm/components/bundle-packages/bundle-packages.js.map +1 -1
- package/lib-esm/components/bundle-packages/bundle-packages.module.css +4 -0
- package/lib-esm/components/delta/delta.module.css +2 -1
- package/lib-esm/components/entry-info/entry-info.js +40 -0
- package/lib-esm/components/entry-info/entry-info.js.map +1 -0
- package/lib-esm/components/entry-info/entry-info.module.css +33 -0
- package/lib-esm/components/entry-info/index.js +2 -0
- package/lib-esm/components/entry-info/index.js.map +1 -0
- package/lib-esm/components/index.js +3 -1
- package/lib-esm/components/index.js.map +1 -1
- package/lib-esm/components/insight-icon/index.js +2 -0
- package/lib-esm/components/insight-icon/index.js.map +1 -0
- package/lib-esm/components/insight-icon/insight-icon.js +18 -0
- package/lib-esm/components/insight-icon/insight-icon.js.map +1 -0
- package/lib-esm/components/insight-icon/insight-icon.module.css +24 -0
- package/lib-esm/components/insights/insights.js +7 -40
- package/lib-esm/components/insights/insights.js.map +1 -1
- package/lib-esm/components/insights/insights.module.css +1 -19
- package/lib-esm/components/metric/index.js.map +1 -1
- package/lib-esm/components/metric/metric.js +7 -41
- package/lib-esm/components/metric/metric.js.map +1 -1
- package/lib-esm/components/metric/metric.module.css +3 -3
- package/lib-esm/components/metric-run-info/index.js +2 -0
- package/lib-esm/components/metric-run-info/index.js.map +1 -0
- package/lib-esm/components/metric-run-info/metric-run-info.js +34 -0
- package/lib-esm/components/metric-run-info/metric-run-info.js.map +1 -0
- package/lib-esm/components/metric-run-info/metric-run-info.module.css +18 -0
- package/lib-esm/components/metrics-table-options/metrics-table-options.js +1 -1
- package/lib-esm/components/metrics-table-options/metrics-table-options.js.map +1 -1
- package/lib-esm/components/metrics-table-search/metrics-table-search.module.css +0 -6
- package/lib-esm/components/metrics-table-title/metrics-table-title.module.css +1 -0
- package/lib-esm/components/module-info/index.js.map +1 -1
- package/lib-esm/components/module-info/module-info.js +25 -48
- package/lib-esm/components/module-info/module-info.js.map +1 -1
- package/lib-esm/components/module-info/module-info.module.css +4 -6
- package/lib-esm/components/package-info/index.js +2 -0
- package/lib-esm/components/package-info/index.js.map +1 -0
- package/lib-esm/components/package-info/package-info.js +42 -0
- package/lib-esm/components/package-info/package-info.js.map +1 -0
- package/lib-esm/components/package-info/package-info.module.css +13 -0
- package/lib-esm/components/run-info/index.js +2 -0
- package/lib-esm/components/run-info/index.js.map +1 -0
- package/lib-esm/components/run-info/run-info.js +40 -0
- package/lib-esm/components/run-info/run-info.js.map +1 -0
- package/lib-esm/components/{summary-item/summary-item.module.css → run-info/run-info.module.css} +14 -19
- package/lib-esm/components/summary/index.js.map +1 -1
- package/lib-esm/components/summary/summary.js +9 -29
- package/lib-esm/components/summary/summary.js.map +1 -1
- package/lib-esm/components/summary/summary.module.css +17 -6
- package/lib-esm/constants.js +0 -22
- package/lib-esm/constants.js.map +1 -1
- package/lib-esm/css/variables.css +17 -13
- package/lib-esm/layout/box/box.js +3 -23
- package/lib-esm/layout/box/box.js.map +1 -1
- package/lib-esm/layout/box/box.module.css +11 -0
- package/lib-esm/layout/box/index.js +1 -1
- package/lib-esm/layout/box/index.js.map +1 -1
- package/lib-esm/layout/flex-stack/flex-stack.js +3 -19
- package/lib-esm/layout/flex-stack/flex-stack.js.map +1 -1
- package/lib-esm/layout/flex-stack/index.js.map +1 -1
- package/lib-esm/layout/stack/index.js.map +1 -1
- package/lib-esm/layout/stack/stack.js +3 -16
- package/lib-esm/layout/stack/stack.js.map +1 -1
- package/lib-esm/tokens.js +35 -0
- package/lib-esm/tokens.js.map +1 -0
- package/lib-esm/ui/alert/alert.js +2 -12
- package/lib-esm/ui/alert/alert.js.map +1 -1
- package/lib-esm/ui/alert/index.js.map +1 -1
- package/lib-esm/ui/container/container.js +1 -10
- package/lib-esm/ui/container/container.js.map +1 -1
- package/lib-esm/ui/container/index.js +1 -1
- package/lib-esm/ui/container/index.js.map +1 -1
- package/lib-esm/ui/dropdown/dropdown.module.css +1 -2
- package/lib-esm/ui/file-name/file-name.js +1 -1
- package/lib-esm/ui/file-name/file-name.js.map +1 -1
- package/lib-esm/ui/filters/filters.module.css +1 -5
- package/lib-esm/ui/hover-card/hover-card.js +1 -1
- package/lib-esm/ui/icon/icon.js +1 -0
- package/lib-esm/ui/icon/icon.js.map +1 -1
- package/lib-esm/ui/index.js +0 -1
- package/lib-esm/ui/index.js.map +1 -1
- package/lib-esm/ui/input/input.module.css +3 -4
- package/lib-esm/ui/table/index.js.map +1 -1
- package/lib-esm/ui/table/table.js +3 -17
- package/lib-esm/ui/table/table.js.map +1 -1
- package/lib-esm/ui/tag/index.js.map +1 -1
- package/lib-esm/ui/tag/tag.js +4 -28
- package/lib-esm/ui/tag/tag.js.map +1 -1
- package/lib-esm/ui/tag/tag.module.css +15 -1
- package/lib-esm/ui/tooltip/index.js.map +1 -1
- package/lib-esm/ui/tooltip/tooltip.js +3 -23
- package/lib-esm/ui/tooltip/tooltip.js.map +1 -1
- package/lib-esm/ui/tooltip/tooltip.module.css +4 -4
- package/package.json +14 -18
- package/src/app/app.jsx +25 -10
- package/src/assets/icons/more-vertical.svg +5 -0
- package/src/assets/icons.svg +5 -0
- package/src/assets/icons.svg.jsx +14 -0
- package/src/components/asset-info/asset-info.module.css +18 -6
- package/src/components/asset-info/asset-info.stories.tsx +64 -0
- package/src/components/asset-info/asset-info.tsx +133 -0
- package/src/components/asset-not-predictive/asset-not-predictive.module.css +3 -0
- package/src/components/asset-not-predictive/asset-not-predictive.stories.tsx +23 -0
- package/src/components/asset-not-predictive/asset-not-predictive.tsx +44 -0
- package/src/components/asset-not-predictive/index.ts +1 -0
- package/src/components/bundle-assets/bundle-assets.jsx +43 -53
- package/src/components/bundle-assets/bundle-assets.module.css +13 -20
- package/src/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.jsx +18 -15
- package/src/components/bundle-modules/bundle-modules.jsx +11 -9
- package/src/components/bundle-modules/bundle-modules.module.css +5 -0
- package/src/components/bundle-packages/bundle-packages.jsx +55 -118
- package/src/components/bundle-packages/bundle-packages.module.css +4 -0
- package/src/components/delta/delta.module.css +2 -1
- package/src/components/entry-info/entry-info.module.css +33 -0
- package/src/components/entry-info/entry-info.stories.tsx +67 -0
- package/src/components/entry-info/entry-info.tsx +107 -0
- package/src/components/entry-info/index.ts +1 -0
- package/src/components/index.js +3 -1
- package/src/components/insight-icon/index.ts +1 -0
- package/src/components/insight-icon/insight-icon.module.css +24 -0
- package/src/components/insight-icon/insight-icon.tsx +25 -0
- package/src/components/insights/insights.module.css +1 -19
- package/src/components/insights/insights.stories.tsx +26 -22
- package/src/components/insights/insights.tsx +8 -65
- package/src/components/metric/metric.module.css +3 -3
- package/src/components/metric/metric.stories.tsx +41 -0
- package/src/components/metric/metric.tsx +42 -0
- package/src/components/metric-run-info/index.ts +1 -0
- package/src/components/metric-run-info/metric-run-info.module.css +18 -0
- package/src/components/metric-run-info/metric-run-info.stories.tsx +34 -0
- package/src/components/metric-run-info/metric-run-info.tsx +85 -0
- package/src/components/metrics-table-options/metrics-table-options.jsx +1 -1
- package/src/components/metrics-table-search/metrics-table-search.module.css +0 -6
- package/src/components/metrics-table-title/metrics-table-title.module.css +1 -0
- package/src/components/module-info/module-info.module.css +4 -6
- package/src/components/module-info/module-info.stories.tsx +44 -0
- package/src/components/module-info/module-info.tsx +79 -0
- package/src/components/package-info/index.ts +1 -0
- package/src/components/package-info/package-info.module.css +13 -0
- package/src/components/package-info/package-info.stories.tsx +36 -0
- package/src/components/package-info/package-info.tsx +112 -0
- package/src/components/run-info/index.ts +1 -0
- package/{lib/components/summary-item/summary-item.module.css → src/components/run-info/run-info.module.css} +14 -19
- package/src/components/run-info/run-info.stories.tsx +49 -0
- package/src/components/run-info/run-info.tsx +108 -0
- package/src/components/summary/summary.module.css +17 -6
- package/src/components/summary/summary.stories.tsx +57 -0
- package/src/components/summary/summary.tsx +103 -0
- package/src/constants.js +0 -24
- package/src/css/variables.css +17 -13
- package/src/layout/box/box.module.css +11 -0
- package/src/layout/box/box.stories.tsx +49 -0
- package/src/layout/box/box.tsx +49 -0
- package/src/layout/box/index.ts +1 -0
- package/src/layout/flex-stack/flex-stack.stories.tsx +59 -0
- package/src/layout/flex-stack/flex-stack.tsx +43 -0
- package/src/layout/stack/stack.stories.tsx +53 -0
- package/src/layout/stack/stack.tsx +22 -0
- package/src/tokens.ts +37 -0
- package/src/ui/alert/alert.stories.tsx +39 -0
- package/src/ui/alert/alert.tsx +23 -0
- package/src/ui/container/container.stories.tsx +29 -0
- package/src/ui/container/container.tsx +18 -0
- package/src/ui/container/index.ts +1 -0
- package/src/ui/dropdown/dropdown.module.css +1 -2
- package/src/ui/file-name/file-name.jsx +1 -1
- package/src/ui/filters/filters.module.css +1 -5
- package/src/ui/hover-card/hover-card.jsx +1 -1
- package/src/ui/icon/icon.jsx +1 -0
- package/src/ui/index.js +0 -1
- package/src/ui/input/input.module.css +3 -4
- package/src/ui/table/table.stories.tsx +238 -0
- package/src/ui/table/table.tsx +38 -0
- package/src/ui/tag/tag.module.css +15 -1
- package/src/ui/tag/tag.stories.tsx +32 -0
- package/src/ui/tag/tag.tsx +28 -0
- package/src/ui/tooltip/tooltip.module.css +4 -4
- package/src/ui/tooltip/tooltip.stories.tsx +30 -0
- package/src/ui/tooltip/tooltip.tsx +56 -0
- package/types/app/header/header.d.ts +1 -1
- package/types/components/asset-info/asset-info.d.ts +18 -23
- package/types/components/asset-info/index.d.ts +1 -1
- package/types/components/asset-not-predictive/asset-not-predictive.d.ts +8 -0
- package/types/components/asset-not-predictive/index.d.ts +1 -0
- package/types/components/browsertime-table/browsertime-table.d.ts +1 -1
- package/types/components/bundle-assets/bundle-assets.d.ts +2 -2
- package/types/components/bundle-assets/index.d.ts +1 -1
- package/types/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.d.ts +2 -2
- package/types/components/bundle-assets-totals-table/bundle-assets-totals-table.d.ts +2 -2
- package/types/components/bundle-modules/bundle-modules.d.ts +2 -2
- package/types/components/bundle-modules/index.d.ts +1 -1
- package/types/components/bundle-packages/bundle-packages.d.ts +2 -2
- package/types/components/bundle-packages/index.d.ts +1 -1
- package/types/components/component-link.d.ts +1 -1
- package/types/components/delta/delta.d.ts +1 -1
- package/types/components/entry-info/entry-info.d.ts +18 -0
- package/types/components/entry-info/index.d.ts +1 -0
- package/types/components/index.d.ts +3 -1
- package/types/components/insight-icon/index.d.ts +1 -0
- package/types/components/insight-icon/insight-icon.d.ts +7 -0
- package/types/components/insights/insights.d.ts +2 -2
- package/types/components/job-header/job-header.d.ts +1 -1
- package/types/components/job-meta/job-meta.d.ts +1 -1
- package/types/components/job-name/job-name.d.ts +1 -1
- package/types/components/jobs-header/jobs-header.d.ts +1 -1
- package/types/components/lighthouse-table/lighthouse-table.d.ts +1 -1
- package/types/components/metric/index.d.ts +1 -1
- package/types/components/metric/metric.d.ts +6 -32
- package/types/components/metric-run-info/index.d.ts +1 -0
- package/types/components/metric-run-info/metric-run-info.d.ts +13 -0
- package/types/components/metrics-table/metrics-table.d.ts +1 -1
- package/types/components/metrics-table-options/metrics-table-options.d.ts +1 -1
- package/types/components/metrics-table-search/metrics-table-search.d.ts +1 -1
- package/types/components/metrics-table-title/metrics-table-title.d.ts +1 -1
- package/types/components/module-info/index.d.ts +1 -1
- package/types/components/module-info/module-info.d.ts +16 -34
- package/types/components/package-info/index.d.ts +1 -0
- package/types/components/package-info/package-info.d.ts +15 -0
- package/types/components/run-info/index.d.ts +1 -0
- package/types/components/run-info/run-info.d.ts +16 -0
- package/types/components/summary/index.d.ts +1 -1
- package/types/components/summary/summary.d.ts +25 -36
- package/types/components/total-size-type-title/total-size-type-title.d.ts +1 -1
- package/types/constants.d.ts +0 -11
- package/types/layout/box/box.d.ts +12 -25
- package/types/layout/box/index.d.ts +1 -1
- package/types/layout/flex-stack/flex-stack.d.ts +10 -33
- package/types/layout/flex-stack/index.d.ts +1 -1
- package/types/layout/footer/footer.d.ts +1 -1
- package/types/layout/separator.d.ts +2 -2
- package/types/layout/stack/index.d.ts +1 -1
- package/types/layout/stack/stack.d.ts +7 -20
- package/types/tokens.d.ts +23 -0
- package/types/ui/alert/alert.d.ts +7 -14
- package/types/ui/alert/index.d.ts +1 -1
- package/types/ui/container/container.d.ts +5 -17
- package/types/ui/container/index.d.ts +1 -1
- package/types/ui/dropdown/dropdown.d.ts +1 -1
- package/types/ui/empty-set/empty-set.d.ts +1 -1
- package/types/ui/file-name/file-name.d.ts +2 -2
- package/types/ui/filters/filters.d.ts +1 -1
- package/types/ui/filters/index.d.ts +1 -1
- package/types/ui/horizontal-bar-chart/horizontal-bar-chart.d.ts +1 -1
- package/types/ui/hover-card/hover-card.d.ts +1 -1
- package/types/ui/icon/icon.d.ts +2 -1
- package/types/ui/index.d.ts +0 -1
- package/types/ui/input/input.d.ts +1 -1
- package/types/ui/loader/loader.d.ts +1 -1
- package/types/ui/skeleton/skeleton.d.ts +1 -1
- package/types/ui/sort-dropdown/sort-dropdown.d.ts +1 -1
- package/types/ui/table/index.d.ts +1 -1
- package/types/ui/table/table.d.ts +14 -33
- package/types/ui/tabs/tabs.d.ts +1 -1
- package/types/ui/tag/index.d.ts +1 -1
- package/types/ui/tag/tag.d.ts +22 -33
- package/types/ui/toolbar/toolbar.d.ts +1 -1
- package/types/ui/tooltip/index.d.ts +1 -1
- package/types/ui/tooltip/tooltip.d.ts +10 -28
- package/lib/components/summary-item/index.js.map +0 -1
- package/lib/components/summary-item/summary-item.js +0 -97
- package/lib/components/summary-item/summary-item.js.map +0 -1
- package/lib/ui/panels/index.js +0 -6
- package/lib/ui/panels/index.js.map +0 -1
- package/lib/ui/panels/panels.js +0 -28
- package/lib/ui/panels/panels.js.map +0 -1
- package/lib/ui/panels/panels.module.css +0 -23
- package/lib-esm/components/summary-item/index.js +0 -2
- package/lib-esm/components/summary-item/index.js.map +0 -1
- package/lib-esm/components/summary-item/summary-item.js +0 -67
- package/lib-esm/components/summary-item/summary-item.js.map +0 -1
- package/lib-esm/ui/panels/index.js +0 -2
- package/lib-esm/ui/panels/index.js.map +0 -1
- package/lib-esm/ui/panels/panels.js +0 -21
- package/lib-esm/ui/panels/panels.js.map +0 -1
- package/lib-esm/ui/panels/panels.module.css +0 -23
- package/src/components/asset-info/asset-info.jsx +0 -96
- package/src/components/metric/metric.jsx +0 -63
- package/src/components/module-info/module-info.jsx +0 -93
- package/src/components/summary/summary.jsx +0 -73
- package/src/components/summary-item/index.js +0 -1
- package/src/components/summary-item/summary-item.jsx +0 -142
- package/src/layout/box/box.jsx +0 -67
- package/src/layout/box/index.js +0 -1
- package/src/layout/flex-stack/flex-stack.jsx +0 -49
- package/src/layout/stack/stack.jsx +0 -32
- package/src/ui/alert/alert.jsx +0 -27
- package/src/ui/container/container.jsx +0 -24
- package/src/ui/container/index.js +0 -1
- package/src/ui/panels/index.js +0 -1
- package/src/ui/panels/panels.jsx +0 -39
- package/src/ui/panels/panels.module.css +0 -23
- package/src/ui/table/table.jsx +0 -37
- package/src/ui/tag/tag.jsx +0 -49
- package/src/ui/tooltip/tooltip.jsx +0 -67
- package/tsconfig.esm.json +0 -13
- package/tsconfig.json +0 -7
- package/tsconfig.lib.json +0 -9
- package/types/components/summary-item/index.d.ts +0 -1
- package/types/components/summary-item/summary-item.d.ts +0 -40
- package/types/ui/panels/index.d.ts +0 -1
- package/types/ui/panels/panels.d.ts +0 -18
- /package/src/components/asset-info/{index.js → index.ts} +0 -0
- /package/src/components/metric/{index.js → index.ts} +0 -0
- /package/src/components/module-info/{index.js → index.ts} +0 -0
- /package/src/components/summary/{index.js → index.ts} +0 -0
- /package/src/layout/flex-stack/{index.js → index.ts} +0 -0
- /package/src/layout/stack/{index.js → index.ts} +0 -0
- /package/src/ui/alert/{index.js → index.ts} +0 -0
- /package/src/ui/table/{index.js → index.ts} +0 -0
- /package/src/ui/tag/{index.js → index.ts} +0 -0
- /package/src/ui/tooltip/{index.js → index.ts} +0 -0
|
@@ -6,6 +6,7 @@ export { BundlePackages } from "./bundle-packages";
|
|
|
6
6
|
export { BundleModules } from "./bundle-modules";
|
|
7
7
|
export { ComponentLink } from "./component-link";
|
|
8
8
|
export { Delta } from "./delta";
|
|
9
|
+
export { InsightIcon } from "./insight-icon";
|
|
9
10
|
export { Insights } from "./insights";
|
|
10
11
|
export { JobName } from "./job-name";
|
|
11
12
|
export { JobHeader } from "./job-header";
|
|
@@ -17,6 +18,7 @@ export { MetricsTableOptions } from "./metrics-table-options";
|
|
|
17
18
|
export { MetricsTableSearch } from "./metrics-table-search";
|
|
18
19
|
export { MetricsTableTitle } from "./metrics-table-title";
|
|
19
20
|
export { ModuleInfo } from "./module-info";
|
|
20
|
-
export { SummaryItem } from "./summary-item";
|
|
21
21
|
export { Summary } from "./summary";
|
|
22
22
|
export { TotalSizeTypeTitle } from "./total-size-type-title";
|
|
23
|
+
export { MetricRunInfo, MetricRunInfoProps } from "./metric-run-info";
|
|
24
|
+
export { RunInfo, RunInfoProps } from "./run-info";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './insight-icon';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { JobInsightsInfo } from '@bundle-stats/utils';
|
|
2
3
|
interface InsightsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
|
|
4
|
-
newPackages: any;
|
|
4
|
+
insights: JobInsightsInfo;
|
|
5
5
|
customComponentLink?: React.ElementType;
|
|
6
6
|
}
|
|
7
7
|
export declare const Insights: (props: InsightsProps) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './metric';
|
|
@@ -1,33 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
value
|
|
4
|
-
|
|
5
|
-
inline
|
|
6
|
-
children: any;
|
|
7
|
-
enhanced: any;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
-
export namespace Metric {
|
|
10
|
-
namespace defaultProps {
|
|
11
|
-
const className: string;
|
|
12
|
-
const enhanced: boolean;
|
|
13
|
-
const inline: boolean;
|
|
14
|
-
const value: number;
|
|
15
|
-
const children: never[];
|
|
16
|
-
function formatter(val: any): any;
|
|
17
|
-
}
|
|
18
|
-
namespace propTypes {
|
|
19
|
-
const className_1: PropTypes.Requireable<string>;
|
|
20
|
-
export { className_1 as className };
|
|
21
|
-
const enhanced_1: PropTypes.Requireable<boolean>;
|
|
22
|
-
export { enhanced_1 as enhanced };
|
|
23
|
-
const inline_1: PropTypes.Requireable<boolean>;
|
|
24
|
-
export { inline_1 as inline };
|
|
25
|
-
const value_1: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
26
|
-
export { value_1 as value };
|
|
27
|
-
const formatter_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
28
|
-
export { formatter_1 as formatter };
|
|
29
|
-
const children_1: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
30
|
-
export { children_1 as children };
|
|
31
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface MetricProps {
|
|
3
|
+
value?: React.ReactNode;
|
|
4
|
+
unit?: string;
|
|
5
|
+
inline?: boolean;
|
|
32
6
|
}
|
|
33
|
-
|
|
7
|
+
export declare const Metric: (props: MetricProps & React.ComponentProps<'div'>) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './metric-run-info';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RunInfoProps } from '../run-info';
|
|
3
|
+
export interface MetricRunInfoProps {
|
|
4
|
+
metricId: string;
|
|
5
|
+
current: number;
|
|
6
|
+
baseline?: number;
|
|
7
|
+
showDelta?: boolean;
|
|
8
|
+
showMetricDescription?: boolean;
|
|
9
|
+
showBaseline?: boolean;
|
|
10
|
+
size?: RunInfoProps['size'];
|
|
11
|
+
loading?: RunInfoProps['loading'];
|
|
12
|
+
}
|
|
13
|
+
export declare const MetricRunInfo: (props: MetricRunInfoProps & React.ComponentProps<'div'>) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './module-info';
|
|
@@ -1,35 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
id: PropTypes.Requireable<string>;
|
|
16
|
-
name: PropTypes.Requireable<string>;
|
|
17
|
-
}> | null | undefined)[]>;
|
|
18
|
-
const chunkIds: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
19
|
-
const customComponentLink: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
20
|
-
const onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
-
}
|
|
22
|
-
namespace defaultProps {
|
|
23
|
-
const className_1: string;
|
|
24
|
-
export { className_1 as className };
|
|
25
|
-
const chunks_1: never[];
|
|
26
|
-
export { chunks_1 as chunks };
|
|
27
|
-
const chunkIds_1: never[];
|
|
28
|
-
export { chunkIds_1 as chunkIds };
|
|
29
|
-
export { ComponentLink as customComponentLink };
|
|
30
|
-
export { noop as onClick };
|
|
31
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MetricRunInfo } from '@bundle-stats/utils';
|
|
3
|
+
import { Module, MetaChunk } from '@bundle-stats/utils/types/webpack';
|
|
4
|
+
interface ModuleInfoProps {
|
|
5
|
+
item: {
|
|
6
|
+
label: string;
|
|
7
|
+
changed?: boolean;
|
|
8
|
+
duplicated?: boolean;
|
|
9
|
+
runs: Array<Module & MetricRunInfo>;
|
|
10
|
+
};
|
|
11
|
+
chunks?: Array<MetaChunk>;
|
|
12
|
+
chunkIds?: Array<string>;
|
|
13
|
+
labels: Array<string>;
|
|
14
|
+
customComponentLink?: React.ElementType;
|
|
32
15
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
import noop from "lodash/noop";
|
|
16
|
+
export declare const ModuleInfo: (props: ModuleInfoProps & React.ComponentProps<'div'>) => JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './package-info';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MetricRunInfo } from '@bundle-stats/utils';
|
|
3
|
+
import { Package } from '@bundle-stats/utils/types/webpack';
|
|
4
|
+
interface PackageInfoProps {
|
|
5
|
+
name: string;
|
|
6
|
+
item: {
|
|
7
|
+
label: string;
|
|
8
|
+
duplicate?: boolean;
|
|
9
|
+
runs: Array<Package & MetricRunInfo>;
|
|
10
|
+
};
|
|
11
|
+
labels: Array<string>;
|
|
12
|
+
customComponentLink?: React.ElementType;
|
|
13
|
+
}
|
|
14
|
+
export declare const PackageInfo: (props: PackageInfoProps & React.ComponentProps<'div'>) => JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './run-info';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface RunInfoProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleHoverCard?: React.ReactNode;
|
|
5
|
+
titleTooltip?: React.ReactNode;
|
|
6
|
+
current?: React.ReactNode;
|
|
7
|
+
baseline?: string;
|
|
8
|
+
delta?: string;
|
|
9
|
+
deltaType?: string;
|
|
10
|
+
as?: React.ElementType;
|
|
11
|
+
size?: 'medium' | 'large';
|
|
12
|
+
showBaseline?: boolean;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
enhance?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const RunInfo: ({ className, title, titleHoverCard, titleTooltip, current, baseline, delta, deltaType, as: Component, size, showBaseline, loading, enhance, ...restProps }: RunInfoProps & React.ComponentProps<'div'>) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './summary';
|
|
@@ -1,37 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
data
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
namespace defaultProps {
|
|
12
|
-
export const className: string;
|
|
13
|
-
export const data: null;
|
|
14
|
-
export const loading: boolean;
|
|
15
|
-
export const size: string;
|
|
16
|
-
export { METRICS_WEBPACK_GENERAL as keys };
|
|
17
|
-
export const showSummaryItemDelta: boolean;
|
|
18
|
-
export { ComponentLink as summaryItemLink };
|
|
19
|
-
}
|
|
20
|
-
namespace propTypes {
|
|
21
|
-
const className_1: PropTypes.Requireable<string>;
|
|
22
|
-
export { className_1 as className };
|
|
23
|
-
const size_1: PropTypes.Requireable<string>;
|
|
24
|
-
export { size_1 as size };
|
|
25
|
-
export const keys: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
26
|
-
const data_1: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
27
|
-
export { data_1 as data };
|
|
28
|
-
const loading_1: PropTypes.Requireable<boolean>;
|
|
29
|
-
export { loading_1 as loading };
|
|
30
|
-
const showSummaryItemDelta_1: PropTypes.Requireable<boolean>;
|
|
31
|
-
export { showSummaryItemDelta_1 as showSummaryItemDelta };
|
|
32
|
-
export const summaryItemLink: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
33
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MetricRunInfoProps } from '../metric-run-info';
|
|
3
|
+
interface SummaryItemProps {
|
|
4
|
+
metricId: string;
|
|
5
|
+
data?: Record<string, SummaryItemData> | null;
|
|
6
|
+
customLink: React.ElementType;
|
|
7
|
+
size?: MetricRunInfoProps['size'];
|
|
8
|
+
loading: boolean;
|
|
9
|
+
showDelta: boolean;
|
|
10
|
+
showBaseline: boolean;
|
|
34
11
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
12
|
+
interface SummaryItemData {
|
|
13
|
+
current: number;
|
|
14
|
+
baseline: number;
|
|
15
|
+
}
|
|
16
|
+
interface SummaryProps {
|
|
17
|
+
size?: MetricRunInfoProps['size'];
|
|
18
|
+
keys?: Array<string>;
|
|
19
|
+
data?: SummaryItemProps['data'];
|
|
20
|
+
loading?: boolean;
|
|
21
|
+
showSummaryItemDelta?: SummaryItemProps['showDelta'];
|
|
22
|
+
showSummaryItemBaseline?: SummaryItemProps['showBaseline'];
|
|
23
|
+
summaryItemLink?: SummaryItemProps['customLink'];
|
|
24
|
+
}
|
|
25
|
+
export declare const Summary: ({ className, size, keys, data, loading, showSummaryItemDelta, showSummaryItemBaseline, summaryItemLink, }: SummaryProps & React.ComponentProps<'div'>) => JSX.Element;
|
|
26
|
+
export {};
|
package/types/constants.d.ts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
export const NO_SPACE: "no-space";
|
|
2
|
-
export const SPACE_XXXSMALL: "xxxsmall";
|
|
3
|
-
export const SPACE_XXSMALL: "xxsmall";
|
|
4
|
-
export const SPACE_XSMALL: "xsmall";
|
|
5
|
-
export const SPACE_SMALL: "small";
|
|
6
|
-
export const SPACE_MEDIUM: "medium";
|
|
7
|
-
export const SPACE_LARGE: "large";
|
|
8
|
-
export const SPACE_XLARGE: "xlarge";
|
|
9
|
-
export const SPACE_XXLARGE: "xxlarge";
|
|
10
|
-
export const SPACE_XXXLARGE: "xxxlarge";
|
|
11
|
-
export const SPACES: string[];
|
|
12
1
|
export namespace URLS {
|
|
13
2
|
const OVERVIEW: string;
|
|
14
3
|
const ASSETS: string;
|
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
namespace propTypes {
|
|
12
|
-
const className_1: PropTypes.Requireable<string>;
|
|
13
|
-
export { className_1 as className };
|
|
14
|
-
const as_1: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
15
|
-
export { as_1 as as };
|
|
16
|
-
export const padding: PropTypes.Requireable<NonNullable<string | (string | null | undefined)[] | null | undefined>>;
|
|
17
|
-
const horizontalPadding_1: PropTypes.Requireable<string>;
|
|
18
|
-
export { horizontalPadding_1 as horizontalPadding };
|
|
19
|
-
const verticalPadding_1: PropTypes.Requireable<string>;
|
|
20
|
-
export { verticalPadding_1 as verticalPadding };
|
|
21
|
-
const outline_1: PropTypes.Requireable<boolean>;
|
|
22
|
-
export { outline_1 as outline };
|
|
23
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SPACES } from '../../tokens';
|
|
3
|
+
type SpaceValue = (typeof SPACES)[number];
|
|
4
|
+
interface BoxProps<T extends React.ElementType> {
|
|
5
|
+
as?: T;
|
|
6
|
+
padding?: SpaceValue | [SpaceValue, SpaceValue];
|
|
7
|
+
horizontalPadding?: SpaceValue;
|
|
8
|
+
verticalPadding?: SpaceValue;
|
|
9
|
+
outline?: boolean;
|
|
10
|
+
outlineHover?: boolean;
|
|
24
11
|
}
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
export declare const Box: <T extends React.ElementType<any> = "div">(props: BoxProps<T> & Omit<React.ComponentProps<T>, keyof BoxProps<T>>) => JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './box';
|
|
@@ -1,34 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
alignItems?:
|
|
9
|
-
}): JSX.Element;
|
|
10
|
-
export namespace FlexStack {
|
|
11
|
-
namespace defaultProps {
|
|
12
|
-
export const as: string;
|
|
13
|
-
export const className: string;
|
|
14
|
-
export const children: null;
|
|
15
|
-
export { NO_SPACE as space };
|
|
16
|
-
export const alignItems: undefined;
|
|
17
|
-
export const inline: boolean;
|
|
18
|
-
}
|
|
19
|
-
namespace propTypes {
|
|
20
|
-
const as_1: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
21
|
-
export { as_1 as as };
|
|
22
|
-
const className_1: PropTypes.Requireable<string>;
|
|
23
|
-
export { className_1 as className };
|
|
24
|
-
const children_1: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
25
|
-
export { children_1 as children };
|
|
26
|
-
export const space: PropTypes.Requireable<string>;
|
|
27
|
-
const alignItems_1: PropTypes.Requireable<string>;
|
|
28
|
-
export { alignItems_1 as alignItems };
|
|
29
|
-
const inline_1: PropTypes.Requireable<boolean>;
|
|
30
|
-
export { inline_1 as inline };
|
|
31
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SPACES } from '../../tokens';
|
|
3
|
+
type SpaceValue = (typeof SPACES)[number];
|
|
4
|
+
interface FlexStackProps<T extends React.ElementType> {
|
|
5
|
+
as?: T;
|
|
6
|
+
space?: SpaceValue;
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
alignItems?: 'top' | 'center' | 'bottom';
|
|
32
9
|
}
|
|
33
|
-
|
|
34
|
-
|
|
10
|
+
export declare const FlexStack: <T extends React.ElementType<any> = "div">(props: FlexStackProps<T> & Omit<React.ComponentProps<T>, keyof FlexStackProps<T>>) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './flex-stack';
|
|
@@ -3,11 +3,11 @@ export namespace Separator {
|
|
|
3
3
|
export { propTypes };
|
|
4
4
|
export { defaultProps };
|
|
5
5
|
}
|
|
6
|
-
import PropTypes from
|
|
6
|
+
import PropTypes from 'prop-types';
|
|
7
7
|
declare namespace propTypes {
|
|
8
8
|
const className: PropTypes.Requireable<string>;
|
|
9
9
|
}
|
|
10
|
-
import React from
|
|
10
|
+
import React from 'react';
|
|
11
11
|
declare namespace defaultProps {
|
|
12
12
|
const className_1: string;
|
|
13
13
|
export { className_1 as className };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './stack';
|
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
namespace propTypes {
|
|
10
|
-
const as_1: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
11
|
-
export { as_1 as as };
|
|
12
|
-
const className_1: PropTypes.Requireable<string>;
|
|
13
|
-
export { className_1 as className };
|
|
14
|
-
const children_1: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
15
|
-
export { children_1 as children };
|
|
16
|
-
export const space: PropTypes.Requireable<string>;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
import { NO_SPACE } from "../../constants";
|
|
20
|
-
import PropTypes from "prop-types";
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SPACES } from '../../tokens';
|
|
3
|
+
export type StackProps = {
|
|
4
|
+
as?: React.ElementType;
|
|
5
|
+
space?: (typeof SPACES)[number];
|
|
6
|
+
};
|
|
7
|
+
export declare const Stack: (props: StackProps & React.ComponentProps<'div'>) => JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const NO_SPACE = "no-space";
|
|
2
|
+
export declare const SPACE_XXXSMALL = "xxxsmall";
|
|
3
|
+
export declare const SPACE_XXSMALL = "xxsmall";
|
|
4
|
+
export declare const SPACE_XSMALL = "xsmall";
|
|
5
|
+
export declare const SPACE_SMALL = "small";
|
|
6
|
+
export declare const SPACE_MEDIUM = "medium";
|
|
7
|
+
export declare const SPACE_LARGE = "large";
|
|
8
|
+
export declare const SPACE_XLARGE = "xlarge";
|
|
9
|
+
export declare const SPACE_XXLARGE = "xxlarge";
|
|
10
|
+
export declare const SPACE_XXXLARGE = "xxxlarge";
|
|
11
|
+
export declare const SPACES: readonly ["no-space", "xxxsmall", "xxsmall", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge"];
|
|
12
|
+
export declare const KIND: {
|
|
13
|
+
readonly DEFAULT: "default";
|
|
14
|
+
readonly SUCCESS: "success";
|
|
15
|
+
readonly INFO: "info";
|
|
16
|
+
readonly WARNING: "warning";
|
|
17
|
+
readonly DANGER: "danger";
|
|
18
|
+
};
|
|
19
|
+
export declare const SIZE: {
|
|
20
|
+
readonly SMALL: "small";
|
|
21
|
+
readonly MEDIUM: "medium";
|
|
22
|
+
readonly LARGE: "large";
|
|
23
|
+
};
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
7
|
-
}
|
|
8
|
-
namespace defaultProps {
|
|
9
|
-
const className_1: string;
|
|
10
|
-
export { className_1 as className };
|
|
11
|
-
const kind_1: string;
|
|
12
|
-
export { kind_1 as kind };
|
|
13
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { KIND } from '../../tokens';
|
|
3
|
+
import { Box } from '../../layout/box';
|
|
4
|
+
interface AlertProps {
|
|
5
|
+
kind?: (typeof KIND)[keyof typeof KIND];
|
|
14
6
|
}
|
|
15
|
-
|
|
7
|
+
export declare const Alert: (props: AlertProps & React.ComponentProps<typeof Box>) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './alert';
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
as: any;
|
|
5
|
-
}): JSX.Element;
|
|
6
|
-
export namespace Container {
|
|
7
|
-
namespace defaultProps {
|
|
8
|
-
const className: string;
|
|
9
|
-
const as: string;
|
|
10
|
-
}
|
|
11
|
-
namespace propTypes {
|
|
12
|
-
const className_1: PropTypes.Requireable<string>;
|
|
13
|
-
export { className_1 as className };
|
|
14
|
-
const as_1: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
15
|
-
export { as_1 as as };
|
|
16
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
as?: React.ElementType;
|
|
17
4
|
}
|
|
18
|
-
|
|
5
|
+
export declare const Container: ({ as: Component, className, ...restProps }: ContainerProps) => JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './container';
|
|
@@ -14,8 +14,8 @@ export namespace FileName {
|
|
|
14
14
|
export { className_1 as className };
|
|
15
15
|
const as_1: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
16
16
|
export { as_1 as as };
|
|
17
|
-
const name_1:
|
|
17
|
+
const name_1: number;
|
|
18
18
|
export { name_1 as name };
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
import PropTypes from
|
|
21
|
+
import PropTypes from 'prop-types';
|