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
|
@@ -4,13 +4,47 @@ const a = t("flex w-full gap-0", {
|
|
|
4
4
|
orientation: {
|
|
5
5
|
horizontal: "flex-row items-center",
|
|
6
6
|
vertical: "flex-col items-stretch"
|
|
7
|
+
},
|
|
8
|
+
variant: {
|
|
9
|
+
default: "",
|
|
10
|
+
compact: "w-full",
|
|
11
|
+
pipeline: "flex-col items-stretch gap-2",
|
|
12
|
+
track: "relative w-full flex-col items-stretch",
|
|
13
|
+
summary: "flex-row items-center",
|
|
14
|
+
rail: "relative flex-col items-stretch gap-4 overflow-visible"
|
|
7
15
|
}
|
|
8
16
|
},
|
|
17
|
+
compoundVariants: [
|
|
18
|
+
{
|
|
19
|
+
variant: "compact",
|
|
20
|
+
orientation: "vertical",
|
|
21
|
+
// Stretch so every pill shares one consistent width (not content-sized)
|
|
22
|
+
className: "flex-col items-stretch"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
variant: "compact",
|
|
26
|
+
orientation: "horizontal",
|
|
27
|
+
className: "flex-row items-stretch"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
variant: "pipeline",
|
|
31
|
+
className: "flex-col items-stretch gap-2"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
variant: "summary",
|
|
35
|
+
className: "flex-row items-center gap-0 overflow-visible ps-2"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
variant: "rail",
|
|
39
|
+
className: "relative w-full flex-col items-stretch gap-4 overflow-visible"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
9
42
|
defaultVariants: {
|
|
10
|
-
orientation: "horizontal"
|
|
43
|
+
orientation: "horizontal",
|
|
44
|
+
variant: "default"
|
|
11
45
|
}
|
|
12
46
|
}), r = t(
|
|
13
|
-
"relative flex items-center transition-all duration-200",
|
|
47
|
+
"relative flex items-center transition-all duration-200 motion-reduce:transition-none",
|
|
14
48
|
{
|
|
15
49
|
variants: {
|
|
16
50
|
orientation: {
|
|
@@ -60,8 +94,42 @@ const a = t("flex w-full gap-0", {
|
|
|
60
94
|
status: "default"
|
|
61
95
|
}
|
|
62
96
|
}
|
|
97
|
+
), s = t(
|
|
98
|
+
"flex h-6 w-6 shrink-0 items-center justify-center rounded-[8px] text-xs font-extrabold transition-all motion-reduce:transition-none",
|
|
99
|
+
{
|
|
100
|
+
variants: {
|
|
101
|
+
status: {
|
|
102
|
+
default: "bg-muted text-navigation-muted",
|
|
103
|
+
active: "bg-brand text-brand-foreground",
|
|
104
|
+
completed: "bg-success text-success-foreground"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
defaultVariants: {
|
|
108
|
+
status: "default"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
), n = t(
|
|
112
|
+
// Equal-width pills: fill the stretch axis (vertical stack / horizontal flex-1)
|
|
113
|
+
"relative flex h-[38px] w-full min-w-0 items-center gap-2 overflow-visible rounded-[8px] p-2",
|
|
114
|
+
{
|
|
115
|
+
variants: {
|
|
116
|
+
orientation: {
|
|
117
|
+
vertical: "",
|
|
118
|
+
horizontal: "flex-1 basis-0"
|
|
119
|
+
},
|
|
120
|
+
status: {
|
|
121
|
+
default: "bg-canvas-elevated",
|
|
122
|
+
active: "bg-brand-tint",
|
|
123
|
+
completed: "bg-feedback-success-surface"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
defaultVariants: {
|
|
127
|
+
orientation: "vertical",
|
|
128
|
+
status: "default"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
63
131
|
), o = t(
|
|
64
|
-
"flex
|
|
132
|
+
"flex size-[22px] shrink-0 items-center justify-center rounded-[8px] text-xs font-bold tracking-[-0.12px]",
|
|
65
133
|
{
|
|
66
134
|
variants: {
|
|
67
135
|
status: {
|
|
@@ -74,9 +142,101 @@ const a = t("flex w-full gap-0", {
|
|
|
74
142
|
status: "default"
|
|
75
143
|
}
|
|
76
144
|
}
|
|
145
|
+
), i = t(
|
|
146
|
+
"min-w-0 flex-1 truncate text-sm capitalize",
|
|
147
|
+
{
|
|
148
|
+
variants: {
|
|
149
|
+
status: {
|
|
150
|
+
default: "font-semibold leading-[21px] text-secondary-foreground",
|
|
151
|
+
active: "font-medium leading-5 text-brand",
|
|
152
|
+
completed: "font-semibold leading-[21px] text-[var(--color-stepper-complete-ink)]"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
defaultVariants: {
|
|
156
|
+
status: "default"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
), l = t(
|
|
160
|
+
"shrink-0 rounded-full transition-colors motion-reduce:transition-none",
|
|
161
|
+
{
|
|
162
|
+
variants: {
|
|
163
|
+
status: {
|
|
164
|
+
default: "size-2 bg-muted",
|
|
165
|
+
active: "relative z-[1] flex size-11 items-center justify-center bg-transparent",
|
|
166
|
+
completed: "size-2.5 bg-[var(--color-stepper-pipeline-dot)]"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
defaultVariants: {
|
|
170
|
+
status: "default"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
), c = t(
|
|
174
|
+
"relative flex shrink-0 flex-col items-start rounded-xl px-3 py-2",
|
|
175
|
+
{
|
|
176
|
+
variants: {
|
|
177
|
+
status: {
|
|
178
|
+
default: "bg-secondary",
|
|
179
|
+
active: "gap-0.5 border-2 border-brand bg-canvas-elevated shadow-elevation-card",
|
|
180
|
+
completed: "justify-center bg-secondary"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
defaultVariants: {
|
|
184
|
+
status: "default"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
), d = t(
|
|
188
|
+
"flex size-6 shrink-0 items-center justify-center rounded-md text-sm font-bold tracking-[-0.14px]",
|
|
189
|
+
{
|
|
190
|
+
variants: {
|
|
191
|
+
status: {
|
|
192
|
+
default: "bg-content-icon text-brand-foreground",
|
|
193
|
+
active: "bg-brand text-brand-foreground",
|
|
194
|
+
completed: "bg-success text-success-foreground"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
defaultVariants: {
|
|
198
|
+
status: "default"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
), u = t(
|
|
202
|
+
"relative flex min-h-[65px] w-[284px] shrink-0 flex-col items-start gap-2 rounded-lg px-3 py-2.5",
|
|
203
|
+
{
|
|
204
|
+
variants: {
|
|
205
|
+
status: {
|
|
206
|
+
default: "border border-stroke-hairline bg-canvas-elevated shadow-elevation-card",
|
|
207
|
+
active: "overflow-visible bg-brand-tint",
|
|
208
|
+
completed: "bg-feedback-success-surface"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
defaultVariants: {
|
|
212
|
+
status: "default"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
), f = t(
|
|
216
|
+
"flex size-5 shrink-0 items-center justify-center rounded-md text-xs font-bold tracking-[-0.12px]",
|
|
217
|
+
{
|
|
218
|
+
variants: {
|
|
219
|
+
status: {
|
|
220
|
+
default: "bg-content-icon text-brand-foreground",
|
|
221
|
+
active: "bg-brand text-brand-foreground",
|
|
222
|
+
completed: "bg-success text-success-foreground"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
defaultVariants: {
|
|
226
|
+
status: "default"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
77
229
|
);
|
|
78
230
|
export {
|
|
79
|
-
o as
|
|
231
|
+
o as compactIconVariants,
|
|
232
|
+
i as compactLabelVariants,
|
|
233
|
+
n as compactStepVariants,
|
|
234
|
+
s as iconVariants,
|
|
235
|
+
l as pipelineDotVariants,
|
|
80
236
|
r as stepVariants,
|
|
81
|
-
a as stepperVariants
|
|
237
|
+
a as stepperVariants,
|
|
238
|
+
f as summaryIconVariants,
|
|
239
|
+
u as summaryStepVariants,
|
|
240
|
+
d as trackIconVariants,
|
|
241
|
+
c as trackStepVariants
|
|
82
242
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { TabsVariant } from './tabs.types';
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
4
|
declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
4
|
-
variant?:
|
|
5
|
+
variant?: TabsVariant;
|
|
5
6
|
size?: import('./tabs.types').TabsSize;
|
|
6
7
|
hideInactiveLabel?: boolean;
|
|
7
8
|
tooltipClassName?: string;
|
|
@@ -18,5 +19,7 @@ declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.Ta
|
|
|
18
19
|
declare const TabsImage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
19
20
|
activeImage: React.ReactNode;
|
|
20
21
|
inactiveImage: React.ReactNode;
|
|
22
|
+
activeOnHover?: boolean;
|
|
23
|
+
grayscaleInactive?: boolean;
|
|
21
24
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
25
|
export { Tabs, TabsList, TabsTrigger, TabsContent, TabsImage };
|
|
@@ -1,82 +1,125 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as r, jsxs as g, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
3
|
import * as b from "@radix-ui/react-tabs";
|
|
4
|
-
import { useControllableState as
|
|
5
|
-
import { createComponent as
|
|
6
|
-
import { cn as
|
|
7
|
-
const
|
|
4
|
+
import { useControllableState as $ } from "@radix-ui/react-use-controllable-state";
|
|
5
|
+
import { createComponent as z } from "../../../lib/primitives/create-component.js";
|
|
6
|
+
import { cn as i } from "../../../lib/utils.js";
|
|
7
|
+
const j = d.createContext({
|
|
8
8
|
variant: "line",
|
|
9
9
|
size: "default"
|
|
10
|
-
}),
|
|
10
|
+
}), B = (e, a) => {
|
|
11
11
|
const t = e.split(/\s+/);
|
|
12
12
|
return t.length <= a ? e : t.slice(0, a).join(" ") + "...";
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
}, I = "M5.98893 0.639668C6.62899 -0.213253 7.90856 -0.213192 8.5485 0.639668L14.2155 8.19533C15.0056 9.25033 14.2517 10.7546 12.9342 10.7549H1.60221C0.283983 10.7546 -0.467977 9.25001 0.322916 8.19533L5.98893 0.639668Z";
|
|
14
|
+
function L({
|
|
15
|
+
fillVar: e,
|
|
16
|
+
className: a
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ r(
|
|
19
|
+
"svg",
|
|
20
|
+
{
|
|
21
|
+
"aria-hidden": !0,
|
|
22
|
+
viewBox: "0 0 14.5376 10.7549",
|
|
23
|
+
className: i(
|
|
24
|
+
"pointer-events-none absolute start-6 bottom-0 z-[1] h-[10.75px] w-[14.54px] translate-y-[calc(100%-0.5px)]",
|
|
25
|
+
a
|
|
26
|
+
),
|
|
27
|
+
children: /* @__PURE__ */ r("g", { transform: "translate(0 10.7549) scale(1 -1)", children: /* @__PURE__ */ r("path", { d: I, fill: e, shapeRendering: "geometricPrecision" }) })
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
function M() {
|
|
32
|
+
return /* @__PURE__ */ g(N, { children: [
|
|
33
|
+
/* @__PURE__ */ r(
|
|
34
|
+
L,
|
|
35
|
+
{
|
|
36
|
+
fillVar: "var(--tab-hover-border, var(--color-tab-soft-accent-muted))",
|
|
37
|
+
className: "hidden group-hover:block group-data-[state=active]:hidden"
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ r(
|
|
41
|
+
L,
|
|
42
|
+
{
|
|
43
|
+
fillVar: "var(--tab-border, var(--color-tab-soft-accent))",
|
|
44
|
+
className: "hidden group-data-[state=active]:block"
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
] });
|
|
48
|
+
}
|
|
49
|
+
const W = d.forwardRef(({ variant: e = "line", size: a = "default", hideInactiveLabel: t = !1, tooltipClassName: o, maxWords: n, renderTabTooltip: v, value: p, defaultValue: m, onValueChange: s, ...h }, y) => {
|
|
50
|
+
const [c, w] = $({
|
|
51
|
+
prop: p,
|
|
52
|
+
defaultProp: m,
|
|
53
|
+
onChange: (f) => {
|
|
54
|
+
f !== void 0 && s?.(f);
|
|
19
55
|
}
|
|
20
|
-
}),
|
|
21
|
-
() => ({ variant: e, size: a, activeValue:
|
|
22
|
-
[e, a,
|
|
56
|
+
}), T = d.useMemo(
|
|
57
|
+
() => ({ variant: e, size: a, activeValue: c, hideInactiveLabel: t, tooltipClassName: o, maxWords: n, renderTabTooltip: v }),
|
|
58
|
+
[e, a, c, t, o, n, v]
|
|
23
59
|
);
|
|
24
|
-
return /* @__PURE__ */
|
|
60
|
+
return /* @__PURE__ */ r(j.Provider, { value: T, children: /* @__PURE__ */ r(
|
|
25
61
|
b.Root,
|
|
26
62
|
{
|
|
27
|
-
ref:
|
|
28
|
-
value:
|
|
29
|
-
onValueChange:
|
|
63
|
+
ref: y,
|
|
64
|
+
value: c,
|
|
65
|
+
onValueChange: w,
|
|
30
66
|
"data-component": "tabs",
|
|
31
67
|
"data-variant": e,
|
|
32
|
-
...
|
|
68
|
+
...h
|
|
33
69
|
}
|
|
34
70
|
) });
|
|
35
71
|
});
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
const { variant: o } =
|
|
39
|
-
return /* @__PURE__ */
|
|
72
|
+
W.displayName = b.Root.displayName;
|
|
73
|
+
const D = d.forwardRef(({ className: e, ...a }, t) => {
|
|
74
|
+
const { variant: o } = d.useContext(j);
|
|
75
|
+
return /* @__PURE__ */ r(
|
|
40
76
|
b.List,
|
|
41
77
|
{
|
|
42
78
|
ref: t,
|
|
43
79
|
"data-tabs": "list",
|
|
44
|
-
className:
|
|
80
|
+
className: i(
|
|
45
81
|
"inline-flex items-center justify-center rounded-lg",
|
|
46
82
|
o === "line" && "h-[38px] bg-canvas-elevated border w-full justify-start gap-2 px-2 shrink-0 py-0",
|
|
83
|
+
o === "lineBorderless" && "h-[38px] w-full justify-start gap-2 shrink-0 py-0 bg-transparent border-0",
|
|
47
84
|
o === "pill" && "h-[38px] p-1 bg-brand-tint text-brand gap-1",
|
|
48
85
|
o === "outline" && "bg-transparent gap-2 w-full justify-start",
|
|
49
86
|
o === "box" && "h-auto bg-transparent border-0 w-full justify-start gap-[16px] p-0 shrink-0",
|
|
87
|
+
o === "soft" && "h-auto bg-transparent border-0 w-full justify-start gap-2 p-0 shrink-0 overflow-visible",
|
|
50
88
|
e
|
|
51
89
|
),
|
|
52
90
|
style: { overflow: "visible" },
|
|
53
91
|
...a
|
|
54
92
|
}
|
|
55
93
|
);
|
|
56
|
-
}),
|
|
57
|
-
const { variant: s, size:
|
|
58
|
-
|
|
59
|
-
const
|
|
94
|
+
}), F = d.forwardRef(({ className: e, icon: a, children: t, maxWords: o, activeColor: n, style: v, ...p }, m) => {
|
|
95
|
+
const { variant: s, size: h, activeValue: y, hideInactiveLabel: c, tooltipClassName: w, maxWords: T, renderTabTooltip: f } = d.useContext(j), S = s === "line" || s === "lineBorderless", x = o ?? T, u = y === p.value, k = typeof t == "string", V = k && x ? B(t, x) : t, A = k && x && t.split(/\s+/).length > x, P = c && !u || A, l = { ...v }, C = s === "box" || s === "soft";
|
|
96
|
+
C && n && (l["--tab-border"] = n.border, l["--tab-bg"] = n.bg, l["--tab-text"] = n.text, l["--tab-hover-border"] = `color-mix(in srgb, ${n.border} 40%, var(--color-background))`, l["--tab-hover-pedestal"] = `color-mix(in srgb, ${n.border} 40%, var(--color-stroke-field))`, l["--tab-pedestal-fill"] = `color-mix(in srgb, ${n.border} 40%, var(--color-background))`, l["--tab-hover-bg"] = `color-mix(in srgb, ${n.bg} 50%, white)`, l["--tab-hover-text"] = `color-mix(in srgb, ${n.text} 60%, var(--color-foreground-tertiary))`);
|
|
97
|
+
const R = C ? /* @__PURE__ */ g(N, { children: [
|
|
60
98
|
t,
|
|
61
|
-
|
|
99
|
+
s === "soft" && /* @__PURE__ */ r(M, {}),
|
|
100
|
+
s === "box" && u && /* @__PURE__ */ r(
|
|
62
101
|
"span",
|
|
63
102
|
{
|
|
64
|
-
className:
|
|
103
|
+
className: i(
|
|
104
|
+
"absolute -bottom-[5.5px] start-1/2 -translate-x-1/2 w-[11px] h-[11px] rotate-45 pointer-events-none",
|
|
105
|
+
"border-b border-e bg-inherit border-b-inherit border-e-inherit"
|
|
106
|
+
)
|
|
65
107
|
}
|
|
66
108
|
)
|
|
67
|
-
] }) : /* @__PURE__ */ N
|
|
68
|
-
a && /* @__PURE__ */
|
|
69
|
-
/* @__PURE__ */
|
|
109
|
+
] }) : /* @__PURE__ */ g(N, { children: [
|
|
110
|
+
a && /* @__PURE__ */ r("span", { className: i("h-4 w-4 shrink-0", !c || u ? "me-2" : "me-0"), children: a }),
|
|
111
|
+
/* @__PURE__ */ r("span", { className: i(c && !u && "sr-only"), children: V })
|
|
70
112
|
] });
|
|
71
|
-
return /* @__PURE__ */
|
|
113
|
+
return /* @__PURE__ */ r(
|
|
72
114
|
b.Trigger,
|
|
73
115
|
{
|
|
74
|
-
ref:
|
|
116
|
+
ref: m,
|
|
75
117
|
"data-tabs": "trigger",
|
|
76
|
-
className:
|
|
118
|
+
className: i(
|
|
77
119
|
"relative inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-all focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",
|
|
78
|
-
|
|
79
|
-
"h-full rounded-none border-b-2 border-transparent px-1 text-[13px] font-medium capitalize text-content-tertiary
|
|
120
|
+
S && [
|
|
121
|
+
"h-full rounded-none border-b-2 border-transparent px-1 text-[13px] font-medium capitalize text-content-tertiary",
|
|
122
|
+
s === "line" && "-mb-[1px]",
|
|
80
123
|
"data-[state=active]:border-brand data-[state=active]:text-brand data-[state=active]:shadow-none",
|
|
81
124
|
"hover:text-brand py-1.5 px-3"
|
|
82
125
|
],
|
|
@@ -89,7 +132,7 @@ const B = i.forwardRef(({ className: e, ...a }, t) => {
|
|
|
89
132
|
"rounded-full border border-content-badge bg-canvas-elevated text-content-badge font-['Manrope']",
|
|
90
133
|
"hover:bg-canvas-muted hover:text-content",
|
|
91
134
|
"data-[state=active]:border-brand data-[state=active]:text-brand",
|
|
92
|
-
|
|
135
|
+
h === "sm" ? "h-[24px] px-[8px] py-[2px] text-xs" : "h-9 px-4 py-2"
|
|
93
136
|
],
|
|
94
137
|
s === "box" && [
|
|
95
138
|
"group flex flex-row items-center justify-between min-w-[231px] w-fit gap-4 min-h-[45px] h-auto py-2 px-[16px] rounded-[8px] bg-canvas-elevated text-content-tertiary transition-none overflow-visible",
|
|
@@ -100,49 +143,78 @@ const B = i.forwardRef(({ className: e, ...a }, t) => {
|
|
|
100
143
|
"data-[state=active]:bg-[color:var(--tab-bg,var(--color-tab-active-surface))]",
|
|
101
144
|
"data-[state=active]:text-[color:var(--tab-text,var(--color-tab-active-foreground))]"
|
|
102
145
|
],
|
|
146
|
+
s === "soft" && [
|
|
147
|
+
"tabs-soft-trigger group flex flex-row items-center justify-between gap-3 h-[54px] w-full min-w-0 py-1 px-4 rounded-2xl overflow-visible",
|
|
148
|
+
"border-[1.5px] border-stroke",
|
|
149
|
+
"text-base font-semibold capitalize text-secondary-foreground",
|
|
150
|
+
"hover:data-[state=inactive]:[--tab-gradient-from:var(--tab-hover-bg,var(--color-tab-soft-surface))]",
|
|
151
|
+
"hover:data-[state=inactive]:border-[color:var(--tab-hover-border,var(--color-tab-soft-accent-muted))] hover:data-[state=inactive]:text-content-secondary",
|
|
152
|
+
"data-[state=active]:[--tab-gradient-from:var(--tab-bg,var(--color-tab-soft-surface))]",
|
|
153
|
+
"data-[state=active]:border-[color:var(--tab-border,var(--color-tab-soft-accent))]",
|
|
154
|
+
"data-[state=active]:text-[color:var(--tab-text,var(--color-content))]"
|
|
155
|
+
],
|
|
103
156
|
e
|
|
104
157
|
),
|
|
158
|
+
...p,
|
|
105
159
|
style: l,
|
|
106
|
-
|
|
107
|
-
children: W && p ? p(C, t, y) : C
|
|
160
|
+
children: P && f ? f(R, t, w) : R
|
|
108
161
|
}
|
|
109
162
|
);
|
|
110
163
|
});
|
|
111
|
-
|
|
112
|
-
const
|
|
164
|
+
F.displayName = b.Trigger.displayName;
|
|
165
|
+
const _ = d.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ r(
|
|
113
166
|
b.Content,
|
|
114
167
|
{
|
|
115
168
|
ref: t,
|
|
116
169
|
"data-tabs": "content",
|
|
117
170
|
tabIndex: -1,
|
|
118
|
-
className:
|
|
171
|
+
className: i(
|
|
119
172
|
"mt-2 focus-visible:outline-none focus:outline-none",
|
|
120
173
|
e
|
|
121
174
|
),
|
|
122
175
|
...a
|
|
123
176
|
}
|
|
124
177
|
));
|
|
125
|
-
|
|
126
|
-
const
|
|
178
|
+
_.displayName = b.Content.displayName;
|
|
179
|
+
const G = z(
|
|
127
180
|
"TabsImage",
|
|
128
|
-
({ className: e, activeImage: a, inactiveImage: t,
|
|
181
|
+
({ className: e, activeImage: a, inactiveImage: t, activeOnHover: o = !1, grayscaleInactive: n = !1, ...v }, p) => /* @__PURE__ */ g(
|
|
129
182
|
"div",
|
|
130
183
|
{
|
|
131
|
-
ref:
|
|
184
|
+
ref: p,
|
|
132
185
|
"data-component": "tabs-image",
|
|
133
|
-
className:
|
|
134
|
-
...
|
|
186
|
+
className: i("relative flex items-center justify-center shrink-0", e),
|
|
187
|
+
...v,
|
|
135
188
|
children: [
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
-
|
|
189
|
+
/* @__PURE__ */ r(
|
|
190
|
+
"div",
|
|
191
|
+
{
|
|
192
|
+
className: i(
|
|
193
|
+
"flex group-data-[state=active]:hidden",
|
|
194
|
+
o && "group-hover:hidden",
|
|
195
|
+
n && "grayscale"
|
|
196
|
+
),
|
|
197
|
+
children: t
|
|
198
|
+
}
|
|
199
|
+
),
|
|
200
|
+
/* @__PURE__ */ r(
|
|
201
|
+
"div",
|
|
202
|
+
{
|
|
203
|
+
className: i(
|
|
204
|
+
"hidden group-data-[state=active]:flex",
|
|
205
|
+
o && "group-hover:flex"
|
|
206
|
+
),
|
|
207
|
+
children: a
|
|
208
|
+
}
|
|
209
|
+
)
|
|
138
210
|
]
|
|
139
211
|
}
|
|
140
212
|
)
|
|
141
213
|
);
|
|
142
214
|
export {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
215
|
+
W as Tabs,
|
|
216
|
+
_ as TabsContent,
|
|
217
|
+
G as TabsImage,
|
|
218
|
+
D as TabsList,
|
|
219
|
+
F as TabsTrigger
|
|
148
220
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InfoTooltipRender } from '../../../lib/primitives/info-slot.types';
|
|
2
2
|
import type * as React from "react";
|
|
3
3
|
import type * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
4
|
-
export type TabsVariant = "line" | "pill" | "outline" | "box";
|
|
4
|
+
export type TabsVariant = "line" | "lineBorderless" | "pill" | "outline" | "box" | "soft";
|
|
5
5
|
export type TabsSize = "default" | "sm";
|
|
6
6
|
export type ActiveColorConfig = {
|
|
7
7
|
text: string;
|
|
@@ -25,4 +25,8 @@ export type TabsTriggerProps = React.ComponentPropsWithoutRef<typeof TabsPrimiti
|
|
|
25
25
|
export type TabsImageProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
26
26
|
activeImage: React.ReactNode;
|
|
27
27
|
inactiveImage: React.ReactNode;
|
|
28
|
+
/** Show `activeImage` on trigger hover as well as the selected state. */
|
|
29
|
+
activeOnHover?: boolean;
|
|
30
|
+
/** Apply `grayscale` to `inactiveImage` (use one color asset for both states). */
|
|
31
|
+
grayscaleInactive?: boolean;
|
|
28
32
|
};
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { Controller as S } from "react-hook-form";
|
|
4
|
-
import { DateRangePicker as
|
|
5
|
-
import { toLocalDate as
|
|
6
|
-
import { resolveDateRangeMinMax as P } from "../utils/date.utils.js";
|
|
7
|
-
const
|
|
4
|
+
import { DateRangePicker as F } from "../../components/forms/date-picker/date-range-picker.js";
|
|
5
|
+
import { toLocalDate as d } from "../utils/calendar-boundary.js";
|
|
6
|
+
import { resolveDateRangeMinMax as P, handleDateFnsFormat as x } from "../utils/date.utils.js";
|
|
7
|
+
const q = ({
|
|
8
8
|
field: r,
|
|
9
|
-
validationRules:
|
|
9
|
+
validationRules: c,
|
|
10
10
|
isDisabled: l,
|
|
11
11
|
formHelpers: n
|
|
12
12
|
}) => {
|
|
13
13
|
const t = r.fieldType === "date_range" ? r : null;
|
|
14
14
|
if (!t) return null;
|
|
15
|
-
const
|
|
15
|
+
const m = n.form.control, { minDate: h, maxDate: u, startMonth: p, endMonth: f } = P(t), g = t.dateFormat ? x(t.dateFormat) : void 0;
|
|
16
16
|
return /* @__PURE__ */ a(
|
|
17
17
|
S,
|
|
18
18
|
{
|
|
19
19
|
name: r.id,
|
|
20
|
-
control:
|
|
20
|
+
control: m,
|
|
21
21
|
disabled: l,
|
|
22
|
-
rules:
|
|
23
|
-
render: ({ field:
|
|
24
|
-
const i = !!s.error, o =
|
|
22
|
+
rules: c,
|
|
23
|
+
render: ({ field: D, fieldState: s }) => {
|
|
24
|
+
const i = !!s.error, o = D.value;
|
|
25
25
|
return /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
|
|
26
|
-
|
|
26
|
+
F,
|
|
27
27
|
{
|
|
28
28
|
label: r.label,
|
|
29
|
-
minDate:
|
|
29
|
+
minDate: h,
|
|
30
30
|
maxDate: u,
|
|
31
31
|
startMonth: p,
|
|
32
|
-
endMonth:
|
|
32
|
+
endMonth: f,
|
|
33
33
|
value: {
|
|
34
|
-
from: o?.start ?
|
|
35
|
-
to: o?.end ?
|
|
34
|
+
from: o?.start ? d(o.start) : void 0,
|
|
35
|
+
to: o?.end ? d(o.end) : void 0
|
|
36
36
|
},
|
|
37
37
|
onChange: (e) => {
|
|
38
|
-
const M = e?.from ? `${e.from.getFullYear()}-${String(e.from.getMonth() + 1).padStart(2, "0")}-${String(e.from.getDate()).padStart(2, "0")}` : null,
|
|
39
|
-
n.setValue(r.id, { start: M, end:
|
|
38
|
+
const M = e?.from ? `${e.from.getFullYear()}-${String(e.from.getMonth() + 1).padStart(2, "0")}-${String(e.from.getDate()).padStart(2, "0")}` : null, v = e?.to ? `${e.to.getFullYear()}-${String(e.to.getMonth() + 1).padStart(2, "0")}-${String(e.to.getDate()).padStart(2, "0")}` : null;
|
|
39
|
+
n.setValue(r.id, { start: M, end: v });
|
|
40
40
|
},
|
|
41
41
|
startPlaceholder: t.startPlaceholder || "Start Date",
|
|
42
42
|
endPlaceholder: t.endPlaceholder || "End Date",
|
|
@@ -51,7 +51,8 @@ const Y = ({
|
|
|
51
51
|
fiscalYearStartMonth: t.fiscalYearStartMonth,
|
|
52
52
|
fiscalMonthPattern: t.fiscalMonthPattern,
|
|
53
53
|
showPresets: t.showPresets,
|
|
54
|
-
autoNavigateToAvailable: t.autoNavigateToAvailable
|
|
54
|
+
autoNavigateToAvailable: t.autoNavigateToAvailable,
|
|
55
|
+
format: g
|
|
55
56
|
}
|
|
56
57
|
) });
|
|
57
58
|
}
|
|
@@ -59,5 +60,5 @@ const Y = ({
|
|
|
59
60
|
);
|
|
60
61
|
};
|
|
61
62
|
export {
|
|
62
|
-
|
|
63
|
+
q as DateRangeField
|
|
63
64
|
};
|