impact-nova 2.6.2 → 3.0.0-alpha.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/dist/components/data/ag-grid-react/ag-grid-cell-components.d.ts +9 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +16 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.js +23 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +21 -9
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.d.ts +14 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +70 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.d.ts +10 -5
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +73 -41
- package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +7 -0
- package/dist/components/data/ag-grid-react/cell-renderers/index.js +42 -36
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.d.ts +19 -0
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +89 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.d.ts +28 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.js +96 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +30 -10
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +72 -24
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +42 -0
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +86 -0
- package/dist/components/data/ag-grid-react/headers/components/date-filter-picker.d.ts +2 -12
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +200 -207
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +263 -244
- package/dist/components/data/data-table/data-table.js +85 -82
- package/dist/components/data/data-table/data-table.types.d.ts +5 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +2 -3
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
- package/dist/components/data/expandable-list-item/sku-next-page-coordinator.d.ts +14 -0
- package/dist/components/data/expandable-list-item/sku-strip-lookahead.d.ts +26 -0
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +10 -0
- package/dist/components/data/expandable-list-item/useSkuStripVirtualizer.d.ts +30 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +81 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.item-grid.d.ts +1 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.product-card.d.ts +7 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +2 -0
- package/dist/components/data-display/chart/chart-heatmap-demos.d.ts +3 -0
- package/dist/components/data-display/chart/chart-heatmap-play.d.ts +9 -0
- package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +22 -0
- package/dist/components/data-display/chart/chart.diverging-heatmap.stories-data.d.ts +43 -0
- package/dist/components/data-display/chart/chart.js +100 -93
- package/dist/components/data-display/chart/chart.types.d.ts +10 -0
- package/dist/components/data-display/chart/chart.utils.d.ts +14 -2
- package/dist/components/data-display/chart/chart.utils.js +132 -35
- package/dist/components/data-display/chart/index.js +15 -13
- package/dist/components/data-display/chart/resolve-highcharts-options.js +19 -14
- package/dist/components/data-display/globe-map/globe-map.d.ts +8 -0
- package/dist/components/data-display/globe-map/globe-map.js +161 -0
- package/dist/components/data-display/globe-map/globe-map.stories-data.d.ts +12 -0
- package/dist/components/data-display/globe-map/globe-map.types.d.ts +83 -0
- package/dist/components/data-display/globe-map/globe-map.utils.d.ts +115 -0
- package/dist/components/data-display/globe-map/globe-map.utils.js +259 -0
- package/dist/components/data-display/globe-map/globe-map.variants.d.ts +19 -0
- package/dist/components/data-display/globe-map/globe-map.variants.js +80 -0
- package/dist/components/data-display/globe-map/index.d.ts +2 -0
- package/dist/components/data-display/globe-map/index.js +10 -0
- package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.d.ts +4 -0
- package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.js +7 -0
- package/dist/components/data-display/globe-map/internals/globe-map-context.d.ts +25 -0
- package/dist/components/data-display/globe-map/internals/globe-map-context.js +19 -0
- package/dist/components/data-display/globe-map/internals/globe-map-legend.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-legend.js +51 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.d.ts +6 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.js +119 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card.js +106 -0
- package/dist/components/data-display/globe-map/internals/globe-map-scene.d.ts +17 -0
- package/dist/components/data-display/globe-map/internals/globe-map-scene.js +218 -0
- package/dist/components/data-display/globe-map/internals/globe-map-tooltip.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-tooltip.js +33 -0
- package/dist/components/data-display/globe-map/internals/use-globe-map-scene.d.ts +45 -0
- package/dist/components/data-display/globe-map/internals/use-globe-map-scene.js +270 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.d.ts +9 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.js +94 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.stories-data.d.ts +7 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.types.d.ts +43 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.d.ts +11 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.js +47 -0
- package/dist/components/data-display/hex-tilemap/index.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/index.js +12 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-camera.d.ts +40 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-camera.js +103 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.d.ts +9 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.js +1387 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-geometry.d.ts +21 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-geometry.js +82 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-lattice.d.ts +18 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-lattice.js +47 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-layout.d.ts +10 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-layout.js +35 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.d.ts +31 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.js +138 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-regions.d.ts +6 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-regions.js +18 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.d.ts +24 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.js +19 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.js +51 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.js +36 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.d.ts +3 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.js +147 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.d.ts +13 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.js +99 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-world-grid.d.ts +8 -0
- package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.d.ts +27 -0
- package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.js +137 -0
- package/dist/components/data-display/notch-card/index.d.ts +2 -0
- package/dist/components/data-display/notch-card/index.js +6 -0
- package/dist/components/data-display/notch-card/notch-card.d.ts +7 -0
- package/dist/components/data-display/notch-card/notch-card.js +151 -0
- package/dist/components/data-display/notch-card/notch-card.path.d.ts +19 -0
- package/dist/components/data-display/notch-card/notch-card.path.js +118 -0
- package/dist/components/data-display/notch-card/notch-card.types.d.ts +15 -0
- package/dist/components/data-display/notch-card/notch-card.variants.d.ts +15 -0
- package/dist/components/data-display/notch-card/notch-card.variants.js +86 -0
- package/dist/components/feedback/hover-card/hover-card.d.ts +3 -1
- package/dist/components/feedback/hover-card/hover-card.js +28 -24
- package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +1 -1
- package/dist/components/feedback/tooltip/overflow-tooltip.js +63 -57
- package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +4 -0
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/flows/filter-strip/index.d.ts +1 -0
- package/dist/components/flows/filter-strip/index.js +4 -2
- package/dist/components/flows/guidance/renderers/guidance-tour-overlay.js +48 -46
- package/dist/components/flows/iris-chat/index.d.ts +10 -0
- package/dist/components/flows/iris-chat/index.js +55 -0
- package/dist/components/flows/iris-chat/iris-chat-artifact.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +125 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.js +297 -0
- package/dist/components/flows/iris-chat/iris-chat-context.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat-context.js +23 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +18 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +176 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +62 -0
- package/dist/components/flows/iris-chat/iris-chat-menu.d.ts +15 -0
- package/dist/components/flows/iris-chat/iris-chat-menu.js +259 -0
- package/dist/components/flows/iris-chat/iris-chat-prompt.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-prompt.js +46 -0
- package/dist/components/flows/iris-chat/iris-chat-thinking.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-thinking.js +202 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +37 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +493 -0
- package/dist/components/flows/iris-chat/iris-chat.d.ts +43 -0
- package/dist/components/flows/iris-chat/iris-chat.js +336 -0
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +208 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.js +78 -0
- package/dist/components/flows/iris-chat/read-iris-greeting-period.d.ts +4 -0
- package/dist/components/flows/iris-chat/read-iris-greeting-period.js +16 -0
- package/dist/components/flows/wizard/index.d.ts +2 -2
- package/dist/components/flows/wizard/index.js +17 -13
- package/dist/components/flows/wizard/wizard-context.d.ts +6 -1
- package/dist/components/flows/wizard/wizard-context.js +15 -7
- package/dist/components/flows/wizard/wizard.d.ts +22 -4
- package/dist/components/flows/wizard/wizard.js +278 -174
- package/dist/components/flows/wizard/wizard.types.d.ts +40 -0
- package/dist/components/forms/choice-card/assets/featured-backdrop-baked.webp.js +4 -0
- package/dist/components/forms/choice-card/assets/featured-noise.webp.js +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-arcs.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-arcs.js +42 -0
- package/dist/components/forms/choice-card/choice-card-featured-backdrop.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-backdrop.js +45 -0
- package/dist/components/forms/choice-card/choice-card-indicator.variants.d.ts +8 -0
- package/dist/components/forms/choice-card/choice-card-indicator.variants.js +5 -0
- package/dist/components/forms/choice-card/choice-card-percent.d.ts +11 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +80 -0
- package/dist/components/forms/choice-card/choice-card.d.ts +40 -3
- package/dist/components/forms/choice-card/choice-card.js +651 -170
- package/dist/components/forms/choice-card/choice-card.types.d.ts +40 -0
- package/dist/components/forms/choice-card/choice-card.variants.d.ts +7 -0
- package/dist/components/forms/choice-card/choice-card.variants.js +100 -0
- package/dist/components/forms/choice-card/index.d.ts +2 -1
- package/dist/components/forms/choice-card/index.js +27 -10
- package/dist/components/forms/select/components/SelectTriggerValue.js +2 -3
- package/dist/components/forms/select/components/Submenu.js +2 -3
- package/dist/components/layout/header/header.d.ts +3 -2
- package/dist/components/layout/header/header.js +67 -47
- package/dist/components/layout/header/header.types.d.ts +1 -0
- package/dist/components/primitives/iris/iris-agent-cursor.d.ts +3 -0
- package/dist/components/primitives/iris/iris-agent-cursor.js +89 -0
- package/dist/components/primitives/iris/iris-alan-gradient-icon.d.ts +5 -0
- package/dist/components/primitives/iris/iris-alan-gradient-icon.js +69 -0
- package/dist/components/primitives/iris/iris-control-context.d.ts +15 -0
- package/dist/components/primitives/iris/iris-control-context.js +44 -0
- package/dist/components/primitives/iris/iris-control-region.d.ts +10 -0
- package/dist/components/primitives/iris/iris-control-region.js +102 -0
- package/dist/components/primitives/iris/iris-control.types.d.ts +24 -0
- package/dist/components/primitives/iris/iris-control.variants.d.ts +4 -0
- package/dist/components/primitives/iris/iris-control.variants.js +20 -0
- package/dist/components/primitives/iris/iris.d.ts +24 -0
- package/dist/components/primitives/iris/iris.js +232 -0
- package/dist/components/primitives/iris/iris.types.d.ts +35 -0
- package/dist/components/primitives/iris/iris.variants.d.ts +30 -0
- package/dist/components/primitives/iris/iris.variants.js +120 -0
- package/dist/components/primitives/stepper/internals/pipeline-current-mark.d.ts +6 -0
- package/dist/components/primitives/stepper/internals/pipeline-current-mark.js +35 -0
- package/dist/components/primitives/stepper/internals/rail-status-dot.d.ts +13 -0
- package/dist/components/primitives/stepper/internals/rail-status-dot.js +70 -0
- package/dist/components/primitives/stepper/internals/step-hit-target.d.ts +15 -0
- package/dist/components/primitives/stepper/internals/step-hit-target.js +51 -0
- package/dist/components/primitives/stepper/internals/step-model.d.ts +3 -0
- package/dist/components/primitives/stepper/internals/step-model.js +10 -0
- package/dist/components/primitives/stepper/internals/stepper-compact.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-compact.js +68 -0
- package/dist/components/primitives/stepper/internals/stepper-pipeline.d.ts +7 -0
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +87 -0
- package/dist/components/primitives/stepper/internals/stepper-rail.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-rail.js +105 -0
- package/dist/components/primitives/stepper/internals/stepper-summary.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-summary.js +103 -0
- package/dist/components/primitives/stepper/internals/stepper-track.d.ts +8 -0
- package/dist/components/primitives/stepper/internals/stepper-track.js +170 -0
- package/dist/components/primitives/stepper/stepper.d.ts +1 -0
- package/dist/components/primitives/stepper/stepper.js +134 -52
- package/dist/components/primitives/stepper/stepper.types.d.ts +17 -0
- package/dist/components/primitives/stepper/stepper.variants.d.ts +26 -0
- package/dist/components/primitives/stepper/stepper.variants.js +165 -5
- package/dist/components/primitives/tabs/tabs.d.ts +4 -1
- package/dist/components/primitives/tabs/tabs.js +131 -59
- package/dist/components/primitives/tabs/tabs.types.d.ts +5 -1
- package/dist/form-react/Fields/DateRangeField.js +20 -19
- package/dist/form-react/Fields/WeekRangePicker.js +36 -36
- package/dist/i18n/defaultMessages.d.ts +100 -0
- package/dist/i18n/defaultMessages.js +118 -21
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +99 -2
- package/dist/i18n/locales/es.js +99 -2
- package/dist/i18n/locales/hi.js +99 -2
- package/dist/i18n/locales/kn.js +99 -2
- package/dist/impact-nova-components.css +972 -2
- package/dist/impact-nova-tokens.scss +109 -1
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +585 -551
- package/dist/lib/virtualized/directional-range-extractor.d.ts +26 -0
- package/dist/lib/virtualized/directional-range-extractor.js +39 -0
- package/dist/lib/virtualized/index.d.ts +3 -0
- package/dist/lib/virtualized/index.js +35 -27
- package/dist/lib/virtualized/scroll-seek.d.ts +61 -0
- package/dist/lib/virtualized/scroll-seek.js +61 -0
- package/dist/lib/virtualized/usePaintedRangeVirtualizer.d.ts +19 -0
- package/dist/lib/virtualized/usePaintedRangeVirtualizer.js +30 -0
- package/dist/lib/virtualized/useResponsiveColumnCount.d.ts +35 -0
- package/dist/lib/virtualized/useResponsiveColumnCount.js +51 -0
- package/dist/lib/virtualized/useScrollSeekPaintedRange.d.ts +13 -0
- package/dist/lib/virtualized/useScrollSeekPaintedRange.js +45 -0
- package/dist/lib/virtualized/useVirtualizedList.d.ts +7 -0
- package/dist/lib/virtualized/useVirtualizedList.js +89 -87
- package/dist/lib/virtualized/useVirtualizedRows.d.ts +9 -2
- package/dist/lib/virtualized/useVirtualizedRows.js +15 -13
- package/dist/lib/virtualized/virtualized.types.d.ts +2 -0
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/tailwind.config.js +3 -1
- package/dist/theme/tailwind-colors.js +2 -1
- package/package.json +39 -4
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
const o = 18, p = 3, M = 7, l = 25, m = 4;
|
|
2
|
+
const P = 0.55228475, X = 110, O = 9.86, D = [7.489, 0, 13.907, 5.3554, 15.249, 12.7236], r = [16.199, 17.941, 19.963, 25, 25.266, 25];
|
|
3
|
+
function B(t) {
|
|
4
|
+
return t < 1 ? 7 : Math.max(
|
|
5
|
+
7,
|
|
6
|
+
t - 21
|
|
7
|
+
);
|
|
8
|
+
}
|
|
9
|
+
function I(t) {
|
|
10
|
+
return Number(t.toFixed(3)).toString();
|
|
11
|
+
}
|
|
12
|
+
function _(t, s, n) {
|
|
13
|
+
const c = n.map((e, R) => s === "V" || s !== "H" && R % 2 === 1 ? t.flipY ? t.height - e : e : t.flipX ? t.width - e : e);
|
|
14
|
+
return `${s}${c.map(I).join(" ")}`;
|
|
15
|
+
}
|
|
16
|
+
function F({
|
|
17
|
+
width: t,
|
|
18
|
+
height: s,
|
|
19
|
+
badgeWidth: n,
|
|
20
|
+
badgeHeight: c,
|
|
21
|
+
rtl: e = !1,
|
|
22
|
+
flipY: R = !1
|
|
23
|
+
}) {
|
|
24
|
+
if (t < 1 || s < 1)
|
|
25
|
+
return "";
|
|
26
|
+
const C = 18, A = { width: t, height: s, flipX: e, flipY: R };
|
|
27
|
+
if (n < 1 || c < 1)
|
|
28
|
+
return S(A, C);
|
|
29
|
+
const f = s - X, u = 85 + f, G = 92 + f, h = r[4], a = Math.min(
|
|
30
|
+
t - C - h - 8,
|
|
31
|
+
Math.max(
|
|
32
|
+
16.217 + 8,
|
|
33
|
+
3 + n - O
|
|
34
|
+
)
|
|
35
|
+
), H = (T) => a + T, N = (T) => u + T, i = C * P, E = (T) => T + f;
|
|
36
|
+
return [
|
|
37
|
+
_(A, "M", [C, 0]),
|
|
38
|
+
_(A, "C", [C - i, 0, 0, C - i, 0, C]),
|
|
39
|
+
_(A, "V", [G]),
|
|
40
|
+
_(A, "C", [
|
|
41
|
+
0,
|
|
42
|
+
E(93.5642),
|
|
43
|
+
2.223,
|
|
44
|
+
E(93.6468),
|
|
45
|
+
3.05,
|
|
46
|
+
E(92.3189)
|
|
47
|
+
]),
|
|
48
|
+
_(A, "C", [
|
|
49
|
+
5.786,
|
|
50
|
+
E(87.9247),
|
|
51
|
+
10.659,
|
|
52
|
+
u,
|
|
53
|
+
16.217,
|
|
54
|
+
u
|
|
55
|
+
]),
|
|
56
|
+
_(A, "H", [a]),
|
|
57
|
+
_(A, "C", [
|
|
58
|
+
H(D[0]),
|
|
59
|
+
N(D[1]),
|
|
60
|
+
H(D[2]),
|
|
61
|
+
N(D[3]),
|
|
62
|
+
H(D[4]),
|
|
63
|
+
N(D[5])
|
|
64
|
+
]),
|
|
65
|
+
_(A, "C", [
|
|
66
|
+
H(r[0]),
|
|
67
|
+
N(r[1]),
|
|
68
|
+
H(r[2]),
|
|
69
|
+
N(r[3]),
|
|
70
|
+
H(r[4]),
|
|
71
|
+
N(r[5])
|
|
72
|
+
]),
|
|
73
|
+
_(A, "H", [t - C]),
|
|
74
|
+
_(A, "C", [
|
|
75
|
+
t - C + i,
|
|
76
|
+
s,
|
|
77
|
+
t,
|
|
78
|
+
s - C + i,
|
|
79
|
+
t,
|
|
80
|
+
s - C
|
|
81
|
+
]),
|
|
82
|
+
_(A, "V", [C]),
|
|
83
|
+
_(A, "C", [t, C - i, t - C + i, 0, t - C, 0]),
|
|
84
|
+
_(A, "H", [C]),
|
|
85
|
+
"Z"
|
|
86
|
+
].join("");
|
|
87
|
+
}
|
|
88
|
+
function S(t, s) {
|
|
89
|
+
const n = Math.min(s, t.width / 2, t.height / 2), c = n * P;
|
|
90
|
+
return [
|
|
91
|
+
_(t, "M", [n, 0]),
|
|
92
|
+
_(t, "H", [t.width - n]),
|
|
93
|
+
_(t, "C", [t.width - n + c, 0, t.width, n - c, t.width, n]),
|
|
94
|
+
_(t, "V", [t.height - n]),
|
|
95
|
+
_(t, "C", [
|
|
96
|
+
t.width,
|
|
97
|
+
t.height - n + c,
|
|
98
|
+
t.width - n + c,
|
|
99
|
+
t.height,
|
|
100
|
+
t.width - n,
|
|
101
|
+
t.height
|
|
102
|
+
]),
|
|
103
|
+
_(t, "H", [n]),
|
|
104
|
+
_(t, "C", [n - c, t.height, 0, t.height - n + c, 0, t.height - n]),
|
|
105
|
+
_(t, "V", [n]),
|
|
106
|
+
_(t, "C", [0, n - c, n - c, 0, n, 0]),
|
|
107
|
+
"Z"
|
|
108
|
+
].join("");
|
|
109
|
+
}
|
|
110
|
+
export {
|
|
111
|
+
m as NOTCH_CARD_BADGE_GAP_Y_PX,
|
|
112
|
+
M as NOTCH_CARD_BADGE_HANG_PX,
|
|
113
|
+
p as NOTCH_CARD_BADGE_INSET_PX,
|
|
114
|
+
l as NOTCH_CARD_NOTCH_DEPTH_PX,
|
|
115
|
+
o as NOTCH_CARD_RADIUS,
|
|
116
|
+
F as buildNotchCardPath,
|
|
117
|
+
B as notchCardHangPx
|
|
118
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { notchCardBadgeVariants, notchCardVariants } from './notch-card.variants';
|
|
3
|
+
import type * as React from "react";
|
|
4
|
+
export type NotchCardTone = NonNullable<VariantProps<typeof notchCardVariants>["tone"]>;
|
|
5
|
+
export type NotchCardSize = NonNullable<VariantProps<typeof notchCardVariants>["size"]>;
|
|
6
|
+
export type NotchCardPlacement = "bottom-start" | "bottom-end" | "top-start" | "top-end";
|
|
7
|
+
export type NotchCardBadgeTone = NonNullable<VariantProps<typeof notchCardBadgeVariants>["tone"]>;
|
|
8
|
+
export interface NotchCardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof notchCardVariants> {
|
|
9
|
+
placement?: NotchCardPlacement;
|
|
10
|
+
}
|
|
11
|
+
export type NotchCardContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
12
|
+
export interface NotchCardBadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof notchCardBadgeVariants> {
|
|
13
|
+
asChild?: boolean;
|
|
14
|
+
icon?: React.ReactNode;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const notchCardVariants: (props?: ({
|
|
2
|
+
tone?: "default" | "iris" | null | undefined;
|
|
3
|
+
size?: "md" | "lg" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export declare const notchCardSurfaceVariants: (props?: ({
|
|
6
|
+
tone?: "default" | "iris" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
export declare const notchCardContentVariants: (props?: ({
|
|
9
|
+
size?: "md" | "lg" | null | undefined;
|
|
10
|
+
placement?: "bottom-start" | "bottom-end" | "top-start" | "top-end" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
+
export declare const notchCardBadgeVariants: (props?: ({
|
|
13
|
+
tone?: "default" | "brand" | "iris" | null | undefined;
|
|
14
|
+
size?: "md" | "lg" | null | undefined;
|
|
15
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { cva as t } from "class-variance-authority";
|
|
2
|
+
const e = t("relative w-full", {
|
|
3
|
+
variants: {
|
|
4
|
+
tone: {
|
|
5
|
+
default: "",
|
|
6
|
+
iris: ""
|
|
7
|
+
},
|
|
8
|
+
size: {
|
|
9
|
+
md: "",
|
|
10
|
+
lg: ""
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
tone: "default",
|
|
15
|
+
size: "md"
|
|
16
|
+
}
|
|
17
|
+
}), r = t("absolute inset-x-0", {
|
|
18
|
+
variants: {
|
|
19
|
+
tone: {
|
|
20
|
+
default: "bg-[linear-gradient(to_right,var(--color-notch-card-surface-from),var(--color-notch-card-surface-to))]",
|
|
21
|
+
iris: "bg-[linear-gradient(to_right,var(--color-notch-card-iris-surface-from),var(--color-notch-card-iris-surface-to))]"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
tone: "default"
|
|
26
|
+
}
|
|
27
|
+
}), o = t(
|
|
28
|
+
"relative z-10 flex items-center",
|
|
29
|
+
{
|
|
30
|
+
variants: {
|
|
31
|
+
size: {
|
|
32
|
+
md: "min-h-[110px] px-5",
|
|
33
|
+
lg: "min-h-[139px] px-6"
|
|
34
|
+
},
|
|
35
|
+
placement: {
|
|
36
|
+
"bottom-start": "",
|
|
37
|
+
"bottom-end": "",
|
|
38
|
+
"top-start": "",
|
|
39
|
+
"top-end": ""
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
compoundVariants: [
|
|
43
|
+
{ size: "md", placement: "bottom-start", class: "pt-5 pb-10" },
|
|
44
|
+
{ size: "md", placement: "bottom-end", class: "pt-5 pb-10" },
|
|
45
|
+
{ size: "lg", placement: "bottom-start", class: "pt-6 pb-10" },
|
|
46
|
+
{ size: "lg", placement: "bottom-end", class: "pt-6 pb-10" },
|
|
47
|
+
{ size: "md", placement: "top-start", class: "pt-10 pb-5" },
|
|
48
|
+
{ size: "md", placement: "top-end", class: "pt-10 pb-5" },
|
|
49
|
+
{ size: "lg", placement: "top-start", class: "pt-10 pb-6" },
|
|
50
|
+
{ size: "lg", placement: "top-end", class: "pt-10 pb-6" }
|
|
51
|
+
],
|
|
52
|
+
defaultVariants: {
|
|
53
|
+
size: "md",
|
|
54
|
+
placement: "bottom-start"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
), n = t(
|
|
58
|
+
[
|
|
59
|
+
"absolute z-10 inline-flex max-w-full items-center justify-center gap-1",
|
|
60
|
+
"rounded-full font-medium capitalize text-brand-foreground",
|
|
61
|
+
"overflow-hidden text-ellipsis whitespace-nowrap"
|
|
62
|
+
],
|
|
63
|
+
{
|
|
64
|
+
variants: {
|
|
65
|
+
tone: {
|
|
66
|
+
default: "bg-[var(--color-notch-card-badge)]",
|
|
67
|
+
iris: "bg-[linear-gradient(to_right,var(--color-notch-card-iris-badge-from)_27.885%,var(--color-notch-card-iris-badge-to))]",
|
|
68
|
+
brand: "bg-[var(--color-notch-card-brand-badge)]"
|
|
69
|
+
},
|
|
70
|
+
size: {
|
|
71
|
+
md: "h-7 px-3 py-0.5 text-sm font-semibold leading-6",
|
|
72
|
+
lg: "h-9 px-3 py-0.5 text-base font-medium leading-6"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
defaultVariants: {
|
|
76
|
+
tone: "default",
|
|
77
|
+
size: "md"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
export {
|
|
82
|
+
n as notchCardBadgeVariants,
|
|
83
|
+
o as notchCardContentVariants,
|
|
84
|
+
r as notchCardSurfaceVariants,
|
|
85
|
+
e as notchCardVariants
|
|
86
|
+
};
|
|
@@ -2,5 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
3
3
|
declare const HoverCard: ({ ...props }: React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare const HoverCardTrigger: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
5
|
-
declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> &
|
|
5
|
+
declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
6
|
+
container?: React.ComponentProps<typeof HoverCardPrimitive.Portal>["container"];
|
|
7
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
6
8
|
export { HoverCard, HoverCardTrigger, HoverCardContent };
|
|
@@ -1,32 +1,36 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as c from "react";
|
|
3
3
|
import * as o from "@radix-ui/react-hover-card";
|
|
4
|
-
import { wrapRadixPart as
|
|
5
|
-
import {
|
|
6
|
-
|
|
4
|
+
import { wrapRadixPart as l } from "../../../lib/primitives/create-compound.js";
|
|
5
|
+
import { useOverlayPortalContainer as p } from "../../../lib/overlay/overlay-portal-context.js";
|
|
6
|
+
import { cn as f } from "../../../lib/utils.js";
|
|
7
|
+
const y = ({
|
|
7
8
|
...t
|
|
8
|
-
}) => /* @__PURE__ */
|
|
9
|
+
}) => /* @__PURE__ */ e(o.Root, { "data-component": "hover-card", ...t }), x = l(
|
|
9
10
|
"hover-card",
|
|
10
11
|
"trigger",
|
|
11
12
|
"HoverCardTrigger",
|
|
12
13
|
o.Trigger
|
|
13
|
-
),
|
|
14
|
-
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
), v = c.forwardRef(({ className: t, align: a = "center", sideOffset: r = 4, container: n, ...i }, d) => {
|
|
15
|
+
const s = p(), m = n ?? s;
|
|
16
|
+
return /* @__PURE__ */ e(o.Portal, { container: m, children: /* @__PURE__ */ e(
|
|
17
|
+
o.Content,
|
|
18
|
+
{
|
|
19
|
+
ref: d,
|
|
20
|
+
align: a,
|
|
21
|
+
sideOffset: r,
|
|
22
|
+
"data-component": "hover-card-content",
|
|
23
|
+
className: f(
|
|
24
|
+
"z-[9999] w-64 rounded-md border bg-canvas-overlay p-4 text-canvas-overlay-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-hover-card-content-transform-origin] pointer-events-auto motion-reduce:animate-none motion-reduce:transition-none",
|
|
25
|
+
t
|
|
26
|
+
),
|
|
27
|
+
...i
|
|
28
|
+
}
|
|
29
|
+
) });
|
|
30
|
+
});
|
|
31
|
+
v.displayName = o.Content.displayName;
|
|
28
32
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
y as HoverCard,
|
|
34
|
+
v as HoverCardContent,
|
|
35
|
+
x as HoverCardTrigger
|
|
32
36
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { OverflowTooltipProps } from './overflow-tooltip.types';
|
|
2
|
-
export declare function OverflowTooltip({ children, content, overflowMode, side, align, variant, className, triggerClassName, as: triggerElement, alwaysShow, disabled, focusable, }: OverflowTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function OverflowTooltip({ children, content, overflowMode, side, align, sideOffset, variant, className, triggerClassName, contentClassName, as: triggerElement, alwaysShow, disabled, focusable, showArrow, }: OverflowTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,86 +1,92 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
import { useOverflowTooltip as
|
|
5
|
-
function
|
|
1
|
+
import { jsx as n, jsxs as R } from "react/jsx-runtime";
|
|
2
|
+
import { cn as P } from "../../../lib/utils.js";
|
|
3
|
+
import { Tooltip as q, TooltipTrigger as z, TooltipContent as B } from "./tooltip.js";
|
|
4
|
+
import { useOverflowTooltip as J } from "./use-overflow-tooltip.js";
|
|
5
|
+
function V({
|
|
6
6
|
children: o,
|
|
7
7
|
content: i,
|
|
8
|
-
overflowMode:
|
|
9
|
-
side:
|
|
8
|
+
overflowMode: x = "ellipsis",
|
|
9
|
+
side: C = "top",
|
|
10
10
|
align: l,
|
|
11
|
-
|
|
11
|
+
sideOffset: s,
|
|
12
|
+
variant: p,
|
|
12
13
|
className: t,
|
|
13
14
|
triggerClassName: r,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
contentClassName: w,
|
|
16
|
+
as: v = "span",
|
|
17
|
+
alwaysShow: d = !1,
|
|
18
|
+
disabled: a = !1,
|
|
19
|
+
focusable: h = !1,
|
|
20
|
+
showArrow: L = !0
|
|
18
21
|
}) {
|
|
19
|
-
const
|
|
20
|
-
setTriggerRef:
|
|
21
|
-
onTriggerPointerEnter:
|
|
22
|
-
onTriggerPointerLeave:
|
|
23
|
-
onTriggerFocus:
|
|
24
|
-
onContentPointerEnter:
|
|
25
|
-
onContentPointerDown:
|
|
26
|
-
onContentPointerLeave:
|
|
27
|
-
onContentPointerUp:
|
|
28
|
-
triggerTabIndex:
|
|
29
|
-
isTooltipArmed:
|
|
30
|
-
isTooltipOpen:
|
|
31
|
-
tooltipContent:
|
|
32
|
-
handleTooltipOpenChange:
|
|
33
|
-
} =
|
|
22
|
+
const c = v, E = i ?? o, {
|
|
23
|
+
setTriggerRef: F,
|
|
24
|
+
onTriggerPointerEnter: O,
|
|
25
|
+
onTriggerPointerLeave: k,
|
|
26
|
+
onTriggerFocus: y,
|
|
27
|
+
onContentPointerEnter: D,
|
|
28
|
+
onContentPointerDown: I,
|
|
29
|
+
onContentPointerLeave: j,
|
|
30
|
+
onContentPointerUp: U,
|
|
31
|
+
triggerTabIndex: $,
|
|
32
|
+
isTooltipArmed: g,
|
|
33
|
+
isTooltipOpen: A,
|
|
34
|
+
tooltipContent: G,
|
|
35
|
+
handleTooltipOpenChange: H
|
|
36
|
+
} = J(o, {
|
|
34
37
|
content: i,
|
|
35
|
-
overflowMode:
|
|
36
|
-
alwaysShow:
|
|
37
|
-
disabled:
|
|
38
|
-
focusable:
|
|
39
|
-
contentDependency:
|
|
40
|
-
}), e = `${r ?? ""} ${t ?? ""}`, f = /\btruncate\b/.test(e),
|
|
38
|
+
overflowMode: x,
|
|
39
|
+
alwaysShow: d,
|
|
40
|
+
disabled: a,
|
|
41
|
+
focusable: h,
|
|
42
|
+
contentDependency: E
|
|
43
|
+
}), e = `${r ?? ""} ${t ?? ""}`, f = /\btruncate\b/.test(e), T = /\b(inline-block|inline-flex|inline)\b/.test(
|
|
41
44
|
e
|
|
42
|
-
),
|
|
45
|
+
), u = /\bflex\b/.test(e), m = /\bflex-1\b/.test(e), N = P(
|
|
43
46
|
"outline-none min-w-0 max-w-full",
|
|
44
|
-
f && !
|
|
45
|
-
f && !
|
|
47
|
+
f && !T && !u && !m && "block w-full",
|
|
48
|
+
f && !T && !u && m && "block",
|
|
46
49
|
r,
|
|
47
50
|
t
|
|
48
51
|
), b = /* @__PURE__ */ n(
|
|
49
|
-
|
|
52
|
+
c,
|
|
50
53
|
{
|
|
51
|
-
ref:
|
|
54
|
+
ref: F,
|
|
52
55
|
"data-component": "overflow-tooltip-trigger",
|
|
53
|
-
className:
|
|
54
|
-
onPointerEnter:
|
|
55
|
-
onPointerLeave:
|
|
56
|
-
tabIndex:
|
|
57
|
-
onFocus:
|
|
56
|
+
className: N,
|
|
57
|
+
onPointerEnter: O,
|
|
58
|
+
onPointerLeave: k,
|
|
59
|
+
tabIndex: $,
|
|
60
|
+
onFocus: y,
|
|
58
61
|
children: o
|
|
59
62
|
}
|
|
60
63
|
);
|
|
61
|
-
return
|
|
62
|
-
|
|
64
|
+
return a ? /* @__PURE__ */ n(c, { className: P(r, t), children: o }) : g ? /* @__PURE__ */ R(
|
|
65
|
+
q,
|
|
63
66
|
{
|
|
64
67
|
disableHoverableContent: !1,
|
|
65
|
-
open:
|
|
66
|
-
onOpenChange:
|
|
68
|
+
open: g && A,
|
|
69
|
+
onOpenChange: H,
|
|
67
70
|
children: [
|
|
68
|
-
/* @__PURE__ */ n(
|
|
71
|
+
/* @__PURE__ */ n(z, { asChild: !0, children: b }),
|
|
69
72
|
/* @__PURE__ */ n(
|
|
70
|
-
|
|
73
|
+
B,
|
|
71
74
|
{
|
|
72
|
-
side:
|
|
75
|
+
side: C,
|
|
76
|
+
showArrow: L,
|
|
77
|
+
className: w,
|
|
73
78
|
...l ? { align: l } : {},
|
|
74
|
-
...s ? {
|
|
75
|
-
|
|
76
|
-
|
|
79
|
+
...s !== void 0 ? { sideOffset: s } : {},
|
|
80
|
+
...p ? { variant: p } : {},
|
|
81
|
+
onPointerEnter: D,
|
|
82
|
+
onPointerLeave: j,
|
|
77
83
|
onPointerDown: () => {
|
|
78
|
-
|
|
84
|
+
I();
|
|
79
85
|
},
|
|
80
86
|
onPointerUp: () => {
|
|
81
|
-
|
|
87
|
+
U();
|
|
82
88
|
},
|
|
83
|
-
children:
|
|
89
|
+
children: G
|
|
84
90
|
}
|
|
85
91
|
)
|
|
86
92
|
]
|
|
@@ -88,5 +94,5 @@ function N({
|
|
|
88
94
|
) : b;
|
|
89
95
|
}
|
|
90
96
|
export {
|
|
91
|
-
|
|
97
|
+
V as OverflowTooltip
|
|
92
98
|
};
|
|
@@ -32,11 +32,15 @@ export interface OverflowTooltipProps {
|
|
|
32
32
|
overflowMode?: TextOverflowMode;
|
|
33
33
|
side?: TooltipContentProps['side'];
|
|
34
34
|
align?: TooltipContentProps['align'];
|
|
35
|
+
/** Gap between trigger and tooltip surface (default matches TooltipContent: 4). */
|
|
36
|
+
sideOffset?: TooltipContentProps['sideOffset'];
|
|
35
37
|
variant?: TooltipContentProps['variant'];
|
|
36
38
|
className?: string;
|
|
37
39
|
triggerClassName?: string;
|
|
40
|
+
contentClassName?: string;
|
|
38
41
|
as?: 'span' | 'p' | 'div';
|
|
39
42
|
alwaysShow?: boolean;
|
|
40
43
|
disabled?: boolean;
|
|
41
44
|
focusable?: boolean;
|
|
45
|
+
showArrow?: boolean;
|
|
42
46
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip as l, TooltipTrigger as n, TooltipContent as o } from "./tooltip.js";
|
|
3
|
-
|
|
4
|
-
const p = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
3
|
+
const d = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
5
4
|
/* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "inline-flex items-center justify-center h-full w-full", children: i }) }),
|
|
6
5
|
/* @__PURE__ */ e(o, { variant: "tertiary", className: a, children: r })
|
|
7
6
|
] }), h = (i, r) => /* @__PURE__ */ t(l, { children: [
|
|
@@ -10,5 +9,5 @@ const p = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
|
10
9
|
] });
|
|
11
10
|
export {
|
|
12
11
|
h as defaultAccordionTooltipRender,
|
|
13
|
-
|
|
12
|
+
d as defaultTabTooltipRender
|
|
14
13
|
};
|
|
@@ -2,17 +2,17 @@ import { jsx as r, jsxs as h, Fragment as z } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { Person as G, Monitor as U, PriorityAlert as q, Locked as O, Reset as B } from "impact-nova-icons";
|
|
4
4
|
import { cn as p } from "../../../lib/utils.js";
|
|
5
|
-
import { Kbd as $ } from "../../primitives/kbd/kbd.js";
|
|
6
|
-
import { keybindingToString as H } from "../../primitives/kbd/keybinding-display.js";
|
|
7
5
|
import { OverflowTooltip as A } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
8
|
-
import { ModuleRegistry as
|
|
9
|
-
import { AllEnterpriseModule as
|
|
10
|
-
import { DataTable as
|
|
6
|
+
import { ModuleRegistry as $, AllCommunityModule as H } from "ag-grid-community";
|
|
7
|
+
import { AllEnterpriseModule as V } from "ag-grid-enterprise";
|
|
8
|
+
import { DataTable as J, DataTableContent as Q } from "../../data/data-table/data-table.js";
|
|
11
9
|
import { AG_CELL_NO_PADDING as F } from "../../data/ag-grid-react/cell-renderers/index.js";
|
|
10
|
+
import { Kbd as X } from "../../primitives/kbd/kbd.js";
|
|
11
|
+
import { keybindingToString as Y } from "../../primitives/kbd/keybinding-display.js";
|
|
12
12
|
import { useCommandPalette as Z } from "./use-command-palette.js";
|
|
13
13
|
import { COMMAND_SOURCE_LABELS as m, keybindingFromEvent as W, isReservedShortcut as ee } from "./utils.js";
|
|
14
14
|
import { BadgeCellRenderer as te } from "../../data/ag-grid-react/cell-renderers/badge-cell-renderer.js";
|
|
15
|
-
|
|
15
|
+
$.registerModules([H, V]);
|
|
16
16
|
function re(a) {
|
|
17
17
|
const t = a.data;
|
|
18
18
|
return t ? /* @__PURE__ */ h("div", { className: "flex items-center gap-2 min-w-0 h-full", children: [
|
|
@@ -69,7 +69,7 @@ function ne(a) {
|
|
|
69
69
|
"flex items-center justify-end h-full w-full text-end",
|
|
70
70
|
t.customisable ? "cursor-pointer" : "cursor-default opacity-70"
|
|
71
71
|
),
|
|
72
|
-
children: /* @__PURE__ */ r(
|
|
72
|
+
children: /* @__PURE__ */ r(X, { keybinding: t.keybinding, size: "sm" })
|
|
73
73
|
}
|
|
74
74
|
) : t.customisable ? /* @__PURE__ */ r(
|
|
75
75
|
"button",
|
|
@@ -133,7 +133,7 @@ function le({
|
|
|
133
133
|
description: e.description || "",
|
|
134
134
|
category: e.category || "General",
|
|
135
135
|
keybinding: i,
|
|
136
|
-
keybindingDisplay: i ?
|
|
136
|
+
keybindingDisplay: i ? Y(i) : "",
|
|
137
137
|
scope: e.scope,
|
|
138
138
|
source: D,
|
|
139
139
|
sourceColor: T ? "primary" : "neutral",
|
|
@@ -278,10 +278,10 @@ function le({
|
|
|
278
278
|
u?.type === "conflict" ? /* @__PURE__ */ r(q, { className: "h-3.5 w-3.5 shrink-0" }) : u?.type === "reserved" ? /* @__PURE__ */ r(O, { className: "h-3.5 w-3.5 shrink-0" }) : c ? /* @__PURE__ */ r("span", { className: "shrink-0 text-base", children: "⌨️" }) : null,
|
|
279
279
|
/* @__PURE__ */ r("span", { children: u ? u.text : L })
|
|
280
280
|
] }) : null;
|
|
281
|
-
return /* @__PURE__ */ h(
|
|
281
|
+
return /* @__PURE__ */ h(J, { className: p("flex flex-col w-full h-full border-t-0", a), children: [
|
|
282
282
|
s ? s(E) : E,
|
|
283
283
|
/* @__PURE__ */ r(
|
|
284
|
-
|
|
284
|
+
Q,
|
|
285
285
|
{
|
|
286
286
|
rowData: y,
|
|
287
287
|
columnDefs: I,
|
|
@@ -6,8 +6,8 @@ import { cn as o } from "../../../lib/utils.js";
|
|
|
6
6
|
import { MultiColorFilter as F, Cross as P, InfoBadge as u } from "impact-nova-icons";
|
|
7
7
|
import { Button as D } from "../../primitives/button/button.js";
|
|
8
8
|
import { Tooltip as c, TooltipTrigger as f, TooltipContent as h } from "../../feedback/tooltip/tooltip.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { OverflowTooltip as S } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
10
|
+
import { Kbd as j } from "../../primitives/kbd/kbd.js";
|
|
11
11
|
import { useImpactNovaI18n as v } from "../../../i18n/use-impact-nova-i18n.js";
|
|
12
12
|
import { useOverlayHostDismissNestedLayersOnNavigation as I } from "../../../lib/overlay/overlay-portal-context.js";
|
|
13
13
|
import { preventDismissOnTooltipOutside as x } from "../../../lib/overlay/prevent-dismiss-on-tooltip-outside.js";
|
|
@@ -145,14 +145,14 @@ const O = ({
|
|
|
145
145
|
),
|
|
146
146
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1 min-w-0", children: [
|
|
147
147
|
/* @__PURE__ */ e(
|
|
148
|
-
|
|
148
|
+
S,
|
|
149
149
|
{
|
|
150
150
|
triggerClassName: "truncate font-['Manrope'] block min-w-0",
|
|
151
151
|
content: t.tooltipKeybinding ? /* @__PURE__ */ a("span", { className: "flex items-center gap-2", children: [
|
|
152
152
|
t.label,
|
|
153
153
|
" ",
|
|
154
154
|
/* @__PURE__ */ e(
|
|
155
|
-
|
|
155
|
+
j,
|
|
156
156
|
{
|
|
157
157
|
keybinding: t.tooltipKeybinding,
|
|
158
158
|
size: "sm"
|