impact-nova 2.6.3 → 3.0.0-alpha.1
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/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/utilities.js +4 -0
- 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 +7 -0
- 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/link-with-batch-cell-renderer.js +2 -0
- 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/advanced-filter/advanced-filter-dialog.js +31 -29
- package/dist/components/data/ag-grid-react/headers/components/lazy-tooltip.js +8 -6
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +162 -146
- 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 +8 -6
- 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/calendar/fiscal-period-caption-select.js +4 -2
- 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/popover/popover.js +1 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +8 -6
- 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 +6 -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-card-shared.js +1 -1
- 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/combobox/combobox.js +1 -1
- package/dist/components/layout/breadcrumb/breadcrumb.js +1 -1
- 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/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/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
- package/dist/node_modules/bail/index.js +7 -0
- package/dist/node_modules/ccount/index.js +12 -0
- package/dist/node_modules/comma-separated-tokens/index.js +9 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
- package/dist/node_modules/devlop/lib/default.js +8 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
- package/dist/node_modules/extend/index.js +43 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
- package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
- package/dist/node_modules/is-plain-obj/index.js +9 -0
- package/dist/node_modules/longest-streak/index.js +12 -0
- package/dist/node_modules/markdown-table/index.js +75 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
- package/dist/node_modules/micromark/lib/constructs.js +85 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
- package/dist/node_modules/micromark/lib/parse.js +32 -0
- package/dist/node_modules/micromark/lib/postprocess.js +9 -0
- package/dist/node_modules/micromark/lib/preprocess.js +44 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
- package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
- package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
- package/dist/node_modules/micromark-factory-destination/index.js +31 -0
- package/dist/node_modules/micromark-factory-label/index.js +28 -0
- package/dist/node_modules/micromark-factory-space/index.js +29 -0
- package/dist/node_modules/micromark-factory-title/index.js +26 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
- package/dist/node_modules/micromark-util-character/index.js +39 -0
- package/dist/node_modules/micromark-util-chunked/index.js +16 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
- package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
- package/dist/node_modules/property-information/index.js +12 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
- package/dist/node_modules/property-information/lib/html.js +378 -0
- package/dist/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/property-information/lib/svg.js +568 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/property-information/lib/util/create.js +19 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
- package/dist/node_modules/property-information/lib/util/info.js +28 -0
- package/dist/node_modules/property-information/lib/util/merge.js +10 -0
- package/dist/node_modules/property-information/lib/util/schema.js +21 -0
- package/dist/node_modules/property-information/lib/util/types.js +14 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.js +11 -0
- package/dist/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/node_modules/react-markdown/lib/index.js +102 -0
- package/dist/node_modules/remark-gfm/lib/index.js +13 -0
- package/dist/node_modules/remark-parse/lib/index.js +19 -0
- package/dist/node_modules/remark-rehype/lib/index.js +18 -0
- package/dist/node_modules/space-separated-tokens/index.js +6 -0
- package/dist/node_modules/style-to-js/cjs/index.js +20 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
- package/dist/node_modules/style-to-object/cjs/index.js +28 -0
- package/dist/node_modules/trim-lines/index.js +28 -0
- package/dist/node_modules/trough/lib/index.js +60 -0
- package/dist/node_modules/unified/lib/callable-instance.js +25 -0
- package/dist/node_modules/unified/lib/index.js +529 -0
- package/dist/node_modules/unist-util-is/lib/index.js +91 -0
- package/dist/node_modules/unist-util-position/lib/index.js +23 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
- package/dist/node_modules/vfile/lib/index.js +406 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
- package/dist/node_modules/vfile-message/lib/index.js +91 -0
- package/dist/providers/app-providers.js +13 -11
- package/dist/tailwind.config.js +3 -1
- package/dist/theme/tailwind-colors.js +2 -1
- package/package.json +39 -4
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import { jsx as r, jsxs as I, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import * as H from "react";
|
|
3
|
+
import { Slot as P } from "@radix-ui/react-slot";
|
|
4
|
+
import { Back as k, Cross as w, Draw as T } from "impact-nova-icons";
|
|
5
|
+
import { Popover as y, PopoverTrigger as R, PopoverContent as M, PopoverHeader as O, PopoverTitle as D, PopoverBody as F } from "../../feedback/popover/popover.js";
|
|
6
|
+
import { ButtonIconTooltip as L } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
7
|
+
import { cn as m } from "../../../lib/utils.js";
|
|
8
|
+
import { Button as S } from "../../primitives/button/button.js";
|
|
9
|
+
import { IrisButton as V } from "../../primitives/iris/iris.js";
|
|
10
|
+
import { IrisAlanGradientIcon as N } from "../../primitives/iris/iris-alan-gradient-icon.js";
|
|
11
|
+
import { useImpactNovaI18n as p } from "../../../i18n/use-impact-nova-i18n.js";
|
|
12
|
+
import { useComposedRefs as j } from "../../../lib/compose-refs.js";
|
|
13
|
+
import { useControllableState as b } from "@radix-ui/react-use-controllable-state";
|
|
14
|
+
import { createComponent as c } from "../../../lib/primitives/create-component.js";
|
|
15
|
+
import { IrisChatProvider as A, useIrisChat as g, useIrisChatOptional as E } from "./iris-chat-context.js";
|
|
16
|
+
import { IrisChatHamburgerIcon as G, IrisChatMinimizeIcon as q } from "./iris-chat-icons.js";
|
|
17
|
+
import { irisChatRootVariants as J, irisChatHeaderVariants as K, irisChatPanelVariants as Q } from "./iris-chat.variants.js";
|
|
18
|
+
const U = ({
|
|
19
|
+
open: e,
|
|
20
|
+
defaultOpen: t = !0,
|
|
21
|
+
onOpenChange: a,
|
|
22
|
+
placement: i,
|
|
23
|
+
defaultPlacement: s = "dock-right",
|
|
24
|
+
onPlacementChange: n,
|
|
25
|
+
className: l,
|
|
26
|
+
children: d
|
|
27
|
+
}) => {
|
|
28
|
+
const [o, h] = b({
|
|
29
|
+
prop: e,
|
|
30
|
+
defaultProp: t,
|
|
31
|
+
onChange: a
|
|
32
|
+
}), [u, x] = b({
|
|
33
|
+
prop: i,
|
|
34
|
+
defaultProp: s,
|
|
35
|
+
onChange: n
|
|
36
|
+
}), C = o ?? t, f = u ?? s;
|
|
37
|
+
return /* @__PURE__ */ r(
|
|
38
|
+
A,
|
|
39
|
+
{
|
|
40
|
+
value: {
|
|
41
|
+
open: C,
|
|
42
|
+
setOpen: h,
|
|
43
|
+
placement: f,
|
|
44
|
+
setPlacement: x
|
|
45
|
+
},
|
|
46
|
+
children: /* @__PURE__ */ r(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
"data-component": "iris-chat",
|
|
50
|
+
"data-placement": f,
|
|
51
|
+
"data-open": C ? "" : void 0,
|
|
52
|
+
className: m(J({ placement: f }), l),
|
|
53
|
+
children: d
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
U.displayName = "IrisChat";
|
|
60
|
+
const me = c(
|
|
61
|
+
"IrisChatPanel",
|
|
62
|
+
({ className: e, hidden: t, ...a }, i) => {
|
|
63
|
+
const s = g();
|
|
64
|
+
return t ?? !s.open ? null : /* @__PURE__ */ r(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
ref: i,
|
|
68
|
+
"data-component": "iris-chat-panel",
|
|
69
|
+
"data-placement": s.placement,
|
|
70
|
+
className: m(Q({ placement: s.placement }), e),
|
|
71
|
+
...a
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
), de = c(
|
|
76
|
+
"IrisChatHeader",
|
|
77
|
+
({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
78
|
+
"header",
|
|
79
|
+
{
|
|
80
|
+
ref: a,
|
|
81
|
+
"data-component": "iris-chat-header",
|
|
82
|
+
className: m(K(), e),
|
|
83
|
+
...t
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
), he = c("IrisChatHeaderLeading", ({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
87
|
+
"div",
|
|
88
|
+
{
|
|
89
|
+
ref: a,
|
|
90
|
+
"data-component": "iris-chat-header-leading",
|
|
91
|
+
className: m("flex min-w-0 items-center gap-2", e),
|
|
92
|
+
...t
|
|
93
|
+
}
|
|
94
|
+
)), pe = c("IrisChatHeaderTrailing", ({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
95
|
+
"div",
|
|
96
|
+
{
|
|
97
|
+
ref: a,
|
|
98
|
+
"data-component": "iris-chat-header-trailing",
|
|
99
|
+
className: m("flex shrink-0 items-center gap-2", e),
|
|
100
|
+
...t
|
|
101
|
+
}
|
|
102
|
+
)), ue = c(
|
|
103
|
+
"IrisChatHeaderTitle",
|
|
104
|
+
({ className: e, showBrand: t = !1, children: a, ...i }, s) => {
|
|
105
|
+
const { t: n } = p();
|
|
106
|
+
return /* @__PURE__ */ I("div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
107
|
+
t ? /* @__PURE__ */ r(N, { size: 18 }) : null,
|
|
108
|
+
/* @__PURE__ */ r(
|
|
109
|
+
"h2",
|
|
110
|
+
{
|
|
111
|
+
ref: s,
|
|
112
|
+
"data-component": "iris-chat-header-title",
|
|
113
|
+
className: m("truncate text-sm font-semibold leading-5 text-content", e),
|
|
114
|
+
...i,
|
|
115
|
+
children: a ?? n("irisChat.askIris")
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
] });
|
|
119
|
+
}
|
|
120
|
+
), v = c(
|
|
121
|
+
"IrisChatIconButton",
|
|
122
|
+
({ className: e, label: t, children: a, type: i = "button", variant: s = "secondary", disabled: n, ...l }, d) => /* @__PURE__ */ r(L, { label: t, disabled: n, children: /* @__PURE__ */ r(
|
|
123
|
+
S,
|
|
124
|
+
{
|
|
125
|
+
ref: d,
|
|
126
|
+
type: i,
|
|
127
|
+
variant: s,
|
|
128
|
+
size: "icon",
|
|
129
|
+
"aria-label": t,
|
|
130
|
+
disabled: n,
|
|
131
|
+
"data-component": "iris-chat-icon-button",
|
|
132
|
+
className: m(
|
|
133
|
+
"text-content",
|
|
134
|
+
s === "secondary" ? "rounded-full" : "rounded-lg",
|
|
135
|
+
e
|
|
136
|
+
),
|
|
137
|
+
...l,
|
|
138
|
+
children: a
|
|
139
|
+
}
|
|
140
|
+
) })
|
|
141
|
+
), Ce = c("IrisChatHeaderMenuButton", ({ label: e, ...t }, a) => {
|
|
142
|
+
const { t: i } = p();
|
|
143
|
+
return /* @__PURE__ */ r(v, { ref: a, variant: "ghost", label: e ?? i("irisChat.menu"), ...t, children: /* @__PURE__ */ r(G, { size: 16 }) });
|
|
144
|
+
}), fe = c("IrisChatHeaderBackButton", ({ label: e, ...t }, a) => {
|
|
145
|
+
const { t: i } = p();
|
|
146
|
+
return /* @__PURE__ */ r(v, { ref: a, variant: "ghost", label: e ?? i("irisChat.back"), ...t, children: /* @__PURE__ */ r(k, { size: 16 }) });
|
|
147
|
+
}), Ie = c("IrisChatHeaderNewChatButton", ({ label: e, ...t }, a) => {
|
|
148
|
+
const { t: i } = p();
|
|
149
|
+
return /* @__PURE__ */ r(v, { ref: a, label: e ?? i("irisChat.newChat"), ...t, children: /* @__PURE__ */ r(T, { size: 16 }) });
|
|
150
|
+
}), ge = c("IrisChatHeaderMinimizeButton", ({ label: e, onClick: t, ...a }, i) => {
|
|
151
|
+
const { t: s } = p(), n = g(), l = H.useRef(
|
|
152
|
+
n.placement === "minimized" ? "float" : n.placement
|
|
153
|
+
), d = n.placement === "minimized";
|
|
154
|
+
return /* @__PURE__ */ r(
|
|
155
|
+
v,
|
|
156
|
+
{
|
|
157
|
+
ref: i,
|
|
158
|
+
label: e ?? s(d ? "irisChat.expand" : "irisChat.minimize"),
|
|
159
|
+
"aria-pressed": d,
|
|
160
|
+
onClick: (o) => {
|
|
161
|
+
d ? n.setPlacement(l.current) : (l.current = n.placement, n.setPlacement("minimized")), t?.(o);
|
|
162
|
+
},
|
|
163
|
+
...a,
|
|
164
|
+
children: /* @__PURE__ */ r(q, { size: 16 })
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
}), ve = c("IrisChatHeaderCloseButton", ({ label: e, onClick: t, ...a }, i) => {
|
|
168
|
+
const { t: s } = p(), n = g();
|
|
169
|
+
return /* @__PURE__ */ r(
|
|
170
|
+
v,
|
|
171
|
+
{
|
|
172
|
+
ref: i,
|
|
173
|
+
label: e ?? s("aria.close"),
|
|
174
|
+
onClick: (l) => {
|
|
175
|
+
n.setOpen(!1), t?.(l);
|
|
176
|
+
},
|
|
177
|
+
...a,
|
|
178
|
+
children: /* @__PURE__ */ r(w, { size: 16 })
|
|
179
|
+
}
|
|
180
|
+
);
|
|
181
|
+
});
|
|
182
|
+
function B(e) {
|
|
183
|
+
return e === "minimized" || e === "composer";
|
|
184
|
+
}
|
|
185
|
+
const xe = c(
|
|
186
|
+
"IrisChatBody",
|
|
187
|
+
({ className: e, onScroll: t, ...a }, i) => {
|
|
188
|
+
const s = g(), n = H.useRef(null), l = H.useRef(!0), d = j(i, n);
|
|
189
|
+
return H.useEffect(() => {
|
|
190
|
+
const o = n.current;
|
|
191
|
+
if (!o)
|
|
192
|
+
return;
|
|
193
|
+
const h = () => {
|
|
194
|
+
l.current && (o.scrollTop = o.scrollHeight);
|
|
195
|
+
}, u = new ResizeObserver(h), x = () => {
|
|
196
|
+
u.disconnect(), u.observe(o);
|
|
197
|
+
for (const f of o.children)
|
|
198
|
+
u.observe(f);
|
|
199
|
+
}, C = new MutationObserver(() => {
|
|
200
|
+
x(), h();
|
|
201
|
+
});
|
|
202
|
+
return C.observe(o, { childList: !0, subtree: !0, characterData: !0 }), x(), h(), () => {
|
|
203
|
+
u.disconnect(), C.disconnect();
|
|
204
|
+
};
|
|
205
|
+
}, []), /* @__PURE__ */ r(
|
|
206
|
+
"div",
|
|
207
|
+
{
|
|
208
|
+
ref: d,
|
|
209
|
+
"data-component": "iris-chat-body",
|
|
210
|
+
"data-placement": s.placement,
|
|
211
|
+
className: m(
|
|
212
|
+
"flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto",
|
|
213
|
+
B(s.placement) ? "px-4" : "px-12",
|
|
214
|
+
e
|
|
215
|
+
),
|
|
216
|
+
onScroll: (o) => {
|
|
217
|
+
const h = o.currentTarget;
|
|
218
|
+
l.current = h.scrollHeight - h.scrollTop - h.clientHeight < 64, t?.(o);
|
|
219
|
+
},
|
|
220
|
+
...a
|
|
221
|
+
}
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
), He = c(
|
|
225
|
+
"IrisChatFooter",
|
|
226
|
+
({ className: e, ...t }, a) => {
|
|
227
|
+
const i = g();
|
|
228
|
+
return /* @__PURE__ */ r(
|
|
229
|
+
"div",
|
|
230
|
+
{
|
|
231
|
+
ref: a,
|
|
232
|
+
"data-component": "iris-chat-footer",
|
|
233
|
+
"data-placement": i.placement,
|
|
234
|
+
className: m(
|
|
235
|
+
"min-w-0 shrink-0 pb-2",
|
|
236
|
+
B(i.placement) ? "px-4" : "px-12",
|
|
237
|
+
e
|
|
238
|
+
),
|
|
239
|
+
...t
|
|
240
|
+
}
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
), be = c(
|
|
244
|
+
"IrisChatDisclaimer",
|
|
245
|
+
({ className: e, href: t, children: a, ...i }, s) => {
|
|
246
|
+
const { t: n } = p();
|
|
247
|
+
return /* @__PURE__ */ r(
|
|
248
|
+
"p",
|
|
249
|
+
{
|
|
250
|
+
ref: s,
|
|
251
|
+
"data-component": "iris-chat-disclaimer",
|
|
252
|
+
className: m(
|
|
253
|
+
"shrink-0 px-4 py-3 text-center text-xs font-medium leading-4 text-content-caption",
|
|
254
|
+
e
|
|
255
|
+
),
|
|
256
|
+
...i,
|
|
257
|
+
children: a ?? /* @__PURE__ */ I(z, { children: [
|
|
258
|
+
n("irisChat.disclaimer"),
|
|
259
|
+
" ",
|
|
260
|
+
t ? /* @__PURE__ */ r("a", { href: t, className: "underline hover:text-brand", children: n("irisChat.learnMore") }) : /* @__PURE__ */ I(y, { children: [
|
|
261
|
+
/* @__PURE__ */ r(R, { asChild: !0, children: /* @__PURE__ */ r(
|
|
262
|
+
"button",
|
|
263
|
+
{
|
|
264
|
+
type: "button",
|
|
265
|
+
className: "underline hover:text-brand",
|
|
266
|
+
"data-testid": "iris-chat-learn-more",
|
|
267
|
+
children: n("irisChat.learnMore")
|
|
268
|
+
}
|
|
269
|
+
) }),
|
|
270
|
+
/* @__PURE__ */ I(
|
|
271
|
+
M,
|
|
272
|
+
{
|
|
273
|
+
align: "center",
|
|
274
|
+
side: "top",
|
|
275
|
+
className: "iris-menu-surface w-[320px] rounded-xl p-4",
|
|
276
|
+
children: [
|
|
277
|
+
/* @__PURE__ */ r(O, { className: "mb-2", children: /* @__PURE__ */ I("div", { className: "flex items-center gap-2", children: [
|
|
278
|
+
/* @__PURE__ */ r(N, { size: 18 }),
|
|
279
|
+
/* @__PURE__ */ r(D, { className: "text-sm font-semibold", children: n("irisChat.disclaimerTitle") })
|
|
280
|
+
] }) }),
|
|
281
|
+
/* @__PURE__ */ r(F, { className: "text-sm leading-5 text-content-secondary", children: n("irisChat.disclaimerBody") })
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
)
|
|
285
|
+
] })
|
|
286
|
+
] })
|
|
287
|
+
}
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
), Ne = c(
|
|
291
|
+
"IrisChatTrigger",
|
|
292
|
+
({ asChild: e = !1, onClick: t, size: a = "md", shape: i = "default", className: s, ...n }, l) => {
|
|
293
|
+
const d = E(), o = (h) => {
|
|
294
|
+
d?.setOpen(!0), t?.(h);
|
|
295
|
+
};
|
|
296
|
+
return e ? /* @__PURE__ */ r(
|
|
297
|
+
P,
|
|
298
|
+
{
|
|
299
|
+
ref: l,
|
|
300
|
+
"data-component": "iris-chat-trigger",
|
|
301
|
+
className: m("pointer-events-auto", s),
|
|
302
|
+
onClick: o,
|
|
303
|
+
...n
|
|
304
|
+
}
|
|
305
|
+
) : /* @__PURE__ */ r(
|
|
306
|
+
V,
|
|
307
|
+
{
|
|
308
|
+
ref: l,
|
|
309
|
+
size: a,
|
|
310
|
+
shape: i,
|
|
311
|
+
"data-component": "iris-chat-trigger",
|
|
312
|
+
className: m("pointer-events-auto", s),
|
|
313
|
+
onClick: o,
|
|
314
|
+
...n
|
|
315
|
+
}
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
);
|
|
319
|
+
export {
|
|
320
|
+
U as IrisChat,
|
|
321
|
+
xe as IrisChatBody,
|
|
322
|
+
be as IrisChatDisclaimer,
|
|
323
|
+
He as IrisChatFooter,
|
|
324
|
+
de as IrisChatHeader,
|
|
325
|
+
fe as IrisChatHeaderBackButton,
|
|
326
|
+
ve as IrisChatHeaderCloseButton,
|
|
327
|
+
he as IrisChatHeaderLeading,
|
|
328
|
+
Ce as IrisChatHeaderMenuButton,
|
|
329
|
+
ge as IrisChatHeaderMinimizeButton,
|
|
330
|
+
Ie as IrisChatHeaderNewChatButton,
|
|
331
|
+
ue as IrisChatHeaderTitle,
|
|
332
|
+
pe as IrisChatHeaderTrailing,
|
|
333
|
+
v as IrisChatIconButton,
|
|
334
|
+
me as IrisChatPanel,
|
|
335
|
+
Ne as IrisChatTrigger
|
|
336
|
+
};
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type IrisChatPlacement = "dock-right" | "float" | "minimized" | "composer";
|
|
3
|
+
export type IrisChatRole = "user" | "assistant";
|
|
4
|
+
export type IrisChatModelOption = {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
};
|
|
8
|
+
export type IrisChatListItemAction = "pin" | "rename" | "archive" | "delete";
|
|
9
|
+
export type IrisChatMenuSectionId = "recent" | "artifacts";
|
|
10
|
+
export type IrisChatFilterOption = "type" | "status" | "lastActivity";
|
|
11
|
+
export type IrisChatProcessStepStatus = "active" | "complete";
|
|
12
|
+
export type IrisChatProcessStep = {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
status: IrisChatProcessStepStatus;
|
|
16
|
+
chip?: string;
|
|
17
|
+
};
|
|
18
|
+
export type IrisChatCitationTag = string | {
|
|
19
|
+
label: string;
|
|
20
|
+
href?: string;
|
|
21
|
+
};
|
|
22
|
+
export type IrisChatCitationGroup = {
|
|
23
|
+
id: string;
|
|
24
|
+
label: string;
|
|
25
|
+
tags: IrisChatCitationTag[];
|
|
26
|
+
};
|
|
27
|
+
export type IrisChatAttachmentKind = "file" | "image";
|
|
28
|
+
export type IrisChatAttachmentProps = {
|
|
29
|
+
name: string;
|
|
30
|
+
kind?: IrisChatAttachmentKind;
|
|
31
|
+
sizeLabel?: string;
|
|
32
|
+
previewUrl?: string;
|
|
33
|
+
onRemove?: () => void;
|
|
34
|
+
className?: string;
|
|
35
|
+
};
|
|
36
|
+
export type IrisChatErrorProps = {
|
|
37
|
+
title?: string;
|
|
38
|
+
description?: string;
|
|
39
|
+
onRetry?: () => void;
|
|
40
|
+
className?: string;
|
|
41
|
+
};
|
|
42
|
+
export type IrisChatArtifactColumn = {
|
|
43
|
+
id: string;
|
|
44
|
+
header: string;
|
|
45
|
+
};
|
|
46
|
+
export type IrisChatArtifactRow = {
|
|
47
|
+
id: string;
|
|
48
|
+
cells: Record<string, React.ReactNode>;
|
|
49
|
+
};
|
|
50
|
+
export type IrisChatProps = {
|
|
51
|
+
open?: boolean;
|
|
52
|
+
defaultOpen?: boolean;
|
|
53
|
+
onOpenChange?: (open: boolean) => void;
|
|
54
|
+
placement?: IrisChatPlacement;
|
|
55
|
+
defaultPlacement?: IrisChatPlacement;
|
|
56
|
+
onPlacementChange?: (placement: IrisChatPlacement) => void;
|
|
57
|
+
className?: string;
|
|
58
|
+
children?: React.ReactNode;
|
|
59
|
+
};
|
|
60
|
+
export type IrisChatPanelProps = React.HTMLAttributes<HTMLDivElement>;
|
|
61
|
+
export type IrisChatHeaderProps = React.HTMLAttributes<HTMLElement>;
|
|
62
|
+
export type IrisChatHeaderTitleProps = React.HTMLAttributes<HTMLHeadingElement> & {
|
|
63
|
+
showBrand?: boolean;
|
|
64
|
+
};
|
|
65
|
+
export type IrisChatIconButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
66
|
+
label: string;
|
|
67
|
+
variant?: "secondary" | "ghost";
|
|
68
|
+
};
|
|
69
|
+
export type IrisChatBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
70
|
+
export type IrisChatFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
71
|
+
export type IrisChatDisclaimerProps = React.HTMLAttributes<HTMLParagraphElement> & {
|
|
72
|
+
href?: string;
|
|
73
|
+
};
|
|
74
|
+
export type IrisChatTriggerProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
75
|
+
asChild?: boolean;
|
|
76
|
+
size?: "sm" | "md" | "lg";
|
|
77
|
+
shape?: "default" | "pill";
|
|
78
|
+
};
|
|
79
|
+
export type IrisChatComposerProps = {
|
|
80
|
+
value?: string;
|
|
81
|
+
defaultValue?: string;
|
|
82
|
+
onValueChange?: (value: string) => void;
|
|
83
|
+
pending?: boolean;
|
|
84
|
+
placeholder?: string;
|
|
85
|
+
model?: string;
|
|
86
|
+
defaultModel?: string;
|
|
87
|
+
onModelChange?: (value: string) => void;
|
|
88
|
+
models?: IrisChatModelOption[];
|
|
89
|
+
onSend?: (value: string, files?: File[]) => void;
|
|
90
|
+
onStop?: () => void;
|
|
91
|
+
onAddClick?: () => void;
|
|
92
|
+
onAttachClick?: () => void;
|
|
93
|
+
onAttach?: (files: File[]) => void;
|
|
94
|
+
onMicClick?: () => void;
|
|
95
|
+
className?: string;
|
|
96
|
+
};
|
|
97
|
+
export type IrisChatGreetingProps = {
|
|
98
|
+
name?: string;
|
|
99
|
+
greeting?: React.ReactNode;
|
|
100
|
+
subtitle?: React.ReactNode;
|
|
101
|
+
mark?: string;
|
|
102
|
+
className?: string;
|
|
103
|
+
children?: React.ReactNode;
|
|
104
|
+
};
|
|
105
|
+
export type IrisChatSuggestionProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
106
|
+
export type IrisChatWorkflowProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
107
|
+
title: string;
|
|
108
|
+
description?: string;
|
|
109
|
+
};
|
|
110
|
+
export type IrisChatThreadProps = React.HTMLAttributes<HTMLDivElement>;
|
|
111
|
+
export type IrisChatDayProps = React.HTMLAttributes<HTMLDivElement>;
|
|
112
|
+
export type IrisChatMessageProps = React.HTMLAttributes<HTMLElement> & {
|
|
113
|
+
role: IrisChatRole;
|
|
114
|
+
time?: string;
|
|
115
|
+
};
|
|
116
|
+
export type IrisChatFeedbackReason = "notAsked" | "tone" | "incorrect" | "other";
|
|
117
|
+
export type IrisChatFeedback = {
|
|
118
|
+
reason: IrisChatFeedbackReason;
|
|
119
|
+
details: string;
|
|
120
|
+
};
|
|
121
|
+
export type IrisChatActionsProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
122
|
+
liked?: boolean;
|
|
123
|
+
disliked?: boolean;
|
|
124
|
+
copyText?: string;
|
|
125
|
+
onLike?: () => void;
|
|
126
|
+
onDislike?: () => void;
|
|
127
|
+
onCopy?: () => void;
|
|
128
|
+
onRetry?: () => void;
|
|
129
|
+
onSpeak?: () => void;
|
|
130
|
+
onFeedback?: (feedback: IrisChatFeedback) => void;
|
|
131
|
+
};
|
|
132
|
+
export type IrisChatFollowUpProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
133
|
+
export type IrisChatChipProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
134
|
+
variant?: "default" | "outline";
|
|
135
|
+
};
|
|
136
|
+
export type IrisChatFollowUpListProps = React.HTMLAttributes<HTMLDivElement>;
|
|
137
|
+
export type IrisChatThinkingProps = React.HTMLAttributes<HTMLDivElement>;
|
|
138
|
+
export type IrisChatThinkingStatusProps = React.HTMLAttributes<HTMLDivElement>;
|
|
139
|
+
export type IrisChatProcessStepsProps = {
|
|
140
|
+
title?: string;
|
|
141
|
+
steps: IrisChatProcessStep[];
|
|
142
|
+
defaultOpen?: boolean;
|
|
143
|
+
open?: boolean;
|
|
144
|
+
onOpenChange?: (open: boolean) => void;
|
|
145
|
+
className?: string;
|
|
146
|
+
};
|
|
147
|
+
export type IrisChatCitationsProps = {
|
|
148
|
+
title?: string;
|
|
149
|
+
groups: IrisChatCitationGroup[];
|
|
150
|
+
defaultOpen?: boolean;
|
|
151
|
+
open?: boolean;
|
|
152
|
+
onOpenChange?: (open: boolean) => void;
|
|
153
|
+
className?: string;
|
|
154
|
+
};
|
|
155
|
+
export type IrisChatMarkdownProps = {
|
|
156
|
+
children: string;
|
|
157
|
+
className?: string;
|
|
158
|
+
};
|
|
159
|
+
export type IrisChatArtifactProps = {
|
|
160
|
+
title: string;
|
|
161
|
+
columns: IrisChatArtifactColumn[];
|
|
162
|
+
rows: IrisChatArtifactRow[];
|
|
163
|
+
onDownload?: () => void;
|
|
164
|
+
onMore?: () => void;
|
|
165
|
+
className?: string;
|
|
166
|
+
};
|
|
167
|
+
export type IrisChatMenuProps = React.HTMLAttributes<HTMLDivElement>;
|
|
168
|
+
export type IrisChatMenuSectionProps = {
|
|
169
|
+
value: IrisChatMenuSectionId;
|
|
170
|
+
title: string;
|
|
171
|
+
onFilterSelect?: (option: IrisChatFilterOption) => void;
|
|
172
|
+
onViewMore?: () => void;
|
|
173
|
+
viewMoreLabel?: string;
|
|
174
|
+
className?: string;
|
|
175
|
+
children?: React.ReactNode;
|
|
176
|
+
};
|
|
177
|
+
export type IrisChatListItemProps = {
|
|
178
|
+
title: string;
|
|
179
|
+
onSelect?: () => void;
|
|
180
|
+
onAction?: (action: IrisChatListItemAction, title?: string) => void;
|
|
181
|
+
className?: string;
|
|
182
|
+
};
|
|
183
|
+
export type IrisChatListProps<T> = {
|
|
184
|
+
items: T[];
|
|
185
|
+
getItemId: (item: T) => string;
|
|
186
|
+
renderItem: (item: T) => React.ReactNode;
|
|
187
|
+
title?: string;
|
|
188
|
+
onFilterSelect?: (option: IrisChatFilterOption) => void;
|
|
189
|
+
estimateSize?: number;
|
|
190
|
+
className?: string;
|
|
191
|
+
};
|
|
192
|
+
export type IrisChatScenarioProps = {
|
|
193
|
+
title: string;
|
|
194
|
+
rows: Array<{
|
|
195
|
+
label: string;
|
|
196
|
+
value: string;
|
|
197
|
+
}>;
|
|
198
|
+
notes?: string[];
|
|
199
|
+
className?: string;
|
|
200
|
+
};
|
|
201
|
+
export type IrisChatPromptProps = {
|
|
202
|
+
title?: React.ReactNode;
|
|
203
|
+
submitLabel?: string;
|
|
204
|
+
submitDisabled?: boolean;
|
|
205
|
+
onSubmit?: () => void;
|
|
206
|
+
className?: string;
|
|
207
|
+
children?: React.ReactNode;
|
|
208
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const irisChatRootVariants: (props?: ({
|
|
2
|
+
placement?: "dock-right" | "float" | "minimized" | "composer" | null | undefined;
|
|
3
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
+
export declare const irisChatPanelVariants: (props?: ({
|
|
5
|
+
placement?: "dock-right" | "float" | "minimized" | "composer" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export declare const irisChatHeaderVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
8
|
+
export declare const irisChatComposerVariants: (props?: ({
|
|
9
|
+
layout?: "inline" | "stacked" | null | undefined;
|
|
10
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
|
+
export declare const irisChatMessageVariants: (props?: ({
|
|
12
|
+
role?: "user" | "assistant" | null | undefined;
|
|
13
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
|
+
export declare const irisChatMarkdownVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { cva as e } from "class-variance-authority";
|
|
2
|
+
const l = e("relative min-h-0 min-w-0", {
|
|
3
|
+
variants: {
|
|
4
|
+
placement: {
|
|
5
|
+
"dock-right": "flex h-full w-full justify-end",
|
|
6
|
+
float: "pointer-events-none flex h-full w-full items-center justify-center",
|
|
7
|
+
minimized: "pointer-events-none flex h-full w-full items-center justify-center",
|
|
8
|
+
composer: "flex w-full justify-center"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
defaultVariants: {
|
|
12
|
+
placement: "dock-right"
|
|
13
|
+
}
|
|
14
|
+
}), o = e(
|
|
15
|
+
"pointer-events-auto flex min-h-0 min-w-0 flex-col overflow-hidden bg-canvas-elevated",
|
|
16
|
+
{
|
|
17
|
+
variants: {
|
|
18
|
+
placement: {
|
|
19
|
+
"dock-right": "h-full w-[640px] max-w-full border-s border-stroke-subtle shadow-elevation-card",
|
|
20
|
+
float: "h-full max-h-[1028px] w-[640px] max-w-full rounded-3xl border border-stroke-subtle shadow-elevation-card",
|
|
21
|
+
minimized: "h-[490px] max-h-full w-[410px] max-w-full rounded-3xl border border-stroke-subtle shadow-elevation-card",
|
|
22
|
+
composer: "w-[624px] max-w-full bg-transparent"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
placement: "dock-right"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
), r = e(
|
|
30
|
+
"flex h-[50px] shrink-0 items-center justify-between px-4"
|
|
31
|
+
), a = e(
|
|
32
|
+
"flex w-full min-w-0 max-w-full flex-col border border-stroke-subtle bg-canvas-elevated",
|
|
33
|
+
{
|
|
34
|
+
variants: {
|
|
35
|
+
layout: {
|
|
36
|
+
stacked: "min-h-[123px] justify-between rounded-3xl p-4",
|
|
37
|
+
inline: "h-14 justify-center rounded-3xl px-3"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
defaultVariants: {
|
|
41
|
+
layout: "stacked"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
), n = e("text-sm leading-5", {
|
|
45
|
+
variants: {
|
|
46
|
+
role: {
|
|
47
|
+
user: "ms-auto max-w-[min(90%,100%)] break-words rounded-2xl px-4 py-3 text-content",
|
|
48
|
+
assistant: "flex w-full min-w-0 flex-col gap-3 break-words text-content"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}), s = e(
|
|
52
|
+
[
|
|
53
|
+
"iris-chat-markdown flex flex-col gap-3 text-sm font-medium leading-5 text-content",
|
|
54
|
+
"[&_a]:text-brand [&_a]:underline",
|
|
55
|
+
"[&_blockquote]:m-0 [&_blockquote]:rounded-xl [&_blockquote]:border-0 [&_blockquote]:bg-secondary [&_blockquote]:px-3 [&_blockquote]:py-2 [&_blockquote]:text-content-secondary",
|
|
56
|
+
"[&_code]:rounded-md [&_code]:bg-secondary [&_code]:px-1 [&_code]:py-0.5 [&_code]:text-xs [&_code]:font-medium",
|
|
57
|
+
"[&_h1]:m-0 [&_h1]:text-base [&_h1]:font-semibold [&_h1]:leading-5",
|
|
58
|
+
"[&_h2]:m-0 [&_h2]:text-sm [&_h2]:font-semibold [&_h2]:leading-5",
|
|
59
|
+
"[&_h3]:m-0 [&_h3]:text-sm [&_h3]:font-semibold [&_h3]:leading-5",
|
|
60
|
+
"[&_li]:ms-0 [&_li]:leading-5",
|
|
61
|
+
"[&_ol]:m-0 [&_ol]:flex [&_ol]:list-decimal [&_ol]:flex-col [&_ol]:gap-1.5 [&_ol]:ps-4",
|
|
62
|
+
"[&_p]:m-0",
|
|
63
|
+
"[&_pre]:m-0 [&_pre]:overflow-x-auto [&_pre]:rounded-xl [&_pre]:bg-secondary [&_pre]:p-3 [&_pre]:text-xs [&_pre]:leading-5",
|
|
64
|
+
"[&_pre_code]:bg-transparent [&_pre_code]:p-0",
|
|
65
|
+
"[&_table]:w-full [&_table]:border-separate [&_table]:border-spacing-0 [&_table]:overflow-hidden [&_table]:rounded-xl",
|
|
66
|
+
"[&_td]:border-t [&_td]:border-stroke-subtle [&_td]:px-3 [&_td]:py-2",
|
|
67
|
+
"[&_th]:bg-secondary [&_th]:px-3 [&_th]:py-2 [&_th]:text-start [&_th]:text-xs [&_th]:font-semibold",
|
|
68
|
+
"[&_ul]:m-0 [&_ul]:flex [&_ul]:list-disc [&_ul]:flex-col [&_ul]:gap-1.5 [&_ul]:ps-4"
|
|
69
|
+
].join(" ")
|
|
70
|
+
);
|
|
71
|
+
export {
|
|
72
|
+
a as irisChatComposerVariants,
|
|
73
|
+
r as irisChatHeaderVariants,
|
|
74
|
+
s as irisChatMarkdownVariants,
|
|
75
|
+
n as irisChatMessageVariants,
|
|
76
|
+
o as irisChatPanelVariants,
|
|
77
|
+
l as irisChatRootVariants
|
|
78
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type IrisGreetingPeriod = "morning" | "afternoon" | "evening" | "night";
|
|
2
|
+
export declare function readIrisGreetingPeriod(now?: Date): IrisGreetingPeriod;
|
|
3
|
+
export declare function readIrisGreetingMark(now?: Date): string;
|
|
4
|
+
export declare function readIrisGreetingMessageKey(period: IrisGreetingPeriod): "irisChat.greetingHello" | "irisChat.greetingAfternoon" | "irisChat.greetingEvening" | "irisChat.greetingNight";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function e(r = /* @__PURE__ */ new Date()) {
|
|
2
|
+
const n = r.getHours();
|
|
3
|
+
return n >= 5 && n < 12 ? "morning" : n >= 12 && n < 17 ? "afternoon" : n >= 17 && n < 21 ? "evening" : "night";
|
|
4
|
+
}
|
|
5
|
+
function i(r = /* @__PURE__ */ new Date()) {
|
|
6
|
+
const n = e(r);
|
|
7
|
+
return n === "morning" ? "☀️" : n === "afternoon" ? "🌤️" : n === "evening" ? "🌇" : "🌙";
|
|
8
|
+
}
|
|
9
|
+
function t(r) {
|
|
10
|
+
return r === "morning" ? "irisChat.greetingHello" : r === "afternoon" ? "irisChat.greetingAfternoon" : r === "evening" ? "irisChat.greetingEvening" : "irisChat.greetingNight";
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
i as readIrisGreetingMark,
|
|
14
|
+
t as readIrisGreetingMessageKey,
|
|
15
|
+
e as readIrisGreetingPeriod
|
|
16
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { WizardRoot, WizardLayout, WizardSidebar, WizardTitle, WizardDescription, WizardMedia, WizardBody, WizardProgress, WizardHeader, WizardStepDescription, WizardContent, WizardStep, WizardFooter, } from './wizard';
|
|
1
|
+
export { WizardRoot, WizardLayout, WizardIntro, WizardMain, WizardNav, WizardDecoration, WizardSidebar, WizardTitle, WizardDescription, WizardMedia, WizardBody, WizardProgress, WizardHeader, WizardStepDescription, WizardContent, WizardStep, WizardFooter, } from './wizard';
|
|
2
2
|
export { useWizard } from './wizard-context';
|
|
3
|
-
export type { WizardRootProps, WizardMediaProps, WizardStepDefinition, WizardProgressProps, WizardStepProps, } from './wizard.types';
|
|
3
|
+
export type { WizardRootProps, WizardLayoutProps, WizardLayoutOrientation, WizardIntroProps, WizardNavProps, WizardDecorationProps, WizardMediaProps, WizardStepDefinition, WizardProgressProps, WizardStepProps, WizardFooterProps, } from './wizard.types';
|