@algolia/satellite 2.2.2 → 2.3.0-rc.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.
Files changed (158) hide show
  1. package/dist/cjs/Actions/Accordion/Accordion.d.ts +8 -0
  2. package/dist/cjs/Actions/Accordion/Accordion.js +5 -3
  3. package/dist/cjs/Fields/AutoComplete/AutoComplete.js +6 -1
  4. package/dist/cjs/Fields/TextArea/TextArea.d.ts +5 -1
  5. package/dist/cjs/Fields/TextArea/TextArea.js +3 -2
  6. package/dist/cjs/Fields/TextArea/TextArea.tailwind.js +1 -1
  7. package/dist/cjs/Fields/TextAreaAutoSize/TextAreaAutoSize.d.ts +18 -0
  8. package/dist/cjs/Fields/TextAreaAutoSize/TextAreaAutoSize.js +82 -0
  9. package/dist/cjs/Fields/TextAreaAutoSize/TextAreaAutoSize.styles.d.ts +25 -0
  10. package/dist/cjs/Fields/TextAreaAutoSize/TextAreaAutoSize.styles.js +16 -0
  11. package/dist/cjs/Fields/TextAreaAutoSize/index.d.ts +2 -0
  12. package/dist/cjs/Fields/TextAreaAutoSize/index.js +12 -0
  13. package/dist/cjs/Fields/index.d.ts +2 -1
  14. package/dist/cjs/Fields/index.js +15 -4
  15. package/dist/cjs/Helpers/ShimmerText/ShimmerText.d.ts +3 -0
  16. package/dist/cjs/Helpers/ShimmerText/ShimmerText.js +28 -0
  17. package/dist/cjs/Helpers/ShimmerText/ShimmerText.tailwind.d.ts +5 -0
  18. package/dist/cjs/Helpers/ShimmerText/ShimmerText.tailwind.js +37 -0
  19. package/dist/cjs/Helpers/ShimmerText/index.d.ts +2 -0
  20. package/dist/cjs/Helpers/ShimmerText/index.js +12 -0
  21. package/dist/cjs/Helpers/index.d.ts +1 -0
  22. package/dist/cjs/Helpers/index.js +11 -0
  23. package/dist/cjs/Helpers/utilities/utilities.tailwind.js +6 -1
  24. package/dist/cjs/Indicators/Skeleton/Skeleton.d.ts +2 -2
  25. package/dist/cjs/Layout/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +8 -0
  26. package/dist/cjs/Layout/Chat/ChatContextAccordion/ChatContextAccordion.js +44 -0
  27. package/dist/cjs/Layout/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +67 -0
  28. package/dist/cjs/Layout/Chat/ChatContextAccordion/ChatContextAccordion.styles.js +23 -0
  29. package/dist/cjs/Layout/Chat/ChatContextAccordion/index.d.ts +1 -0
  30. package/dist/cjs/Layout/Chat/ChatContextAccordion/index.js +16 -0
  31. package/dist/cjs/Layout/Chat/ChatMessage/ChatMessage.d.ts +40 -0
  32. package/dist/cjs/Layout/Chat/ChatMessage/ChatMessage.js +83 -0
  33. package/dist/cjs/Layout/Chat/ChatMessage/ChatMessage.styles.d.ts +100 -0
  34. package/dist/cjs/Layout/Chat/ChatMessage/ChatMessage.styles.js +71 -0
  35. package/dist/cjs/Layout/Chat/ChatMessage/index.d.ts +1 -0
  36. package/dist/cjs/Layout/Chat/ChatMessage/index.js +16 -0
  37. package/dist/cjs/Layout/Chat/ChatMessageError/ChatMessageError.d.ts +57 -0
  38. package/dist/cjs/Layout/Chat/ChatMessageError/ChatMessageError.js +68 -0
  39. package/dist/cjs/Layout/Chat/ChatMessageError/ChatMessageError.styles.d.ts +173 -0
  40. package/dist/cjs/Layout/Chat/ChatMessageError/ChatMessageError.styles.js +18 -0
  41. package/dist/cjs/Layout/Chat/ChatMessageError/index.d.ts +1 -0
  42. package/dist/cjs/Layout/Chat/ChatMessageError/index.js +16 -0
  43. package/dist/cjs/Layout/Chat/ChatMessageLoader/ChatMessageLoader.d.ts +18 -0
  44. package/dist/cjs/Layout/Chat/ChatMessageLoader/ChatMessageLoader.js +63 -0
  45. package/dist/cjs/Layout/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +200 -0
  46. package/dist/cjs/Layout/Chat/ChatMessageLoader/ChatMessageLoader.styles.js +21 -0
  47. package/dist/cjs/Layout/Chat/ChatMessageLoader/index.d.ts +1 -0
  48. package/dist/cjs/Layout/Chat/ChatMessageLoader/index.js +16 -0
  49. package/dist/cjs/Layout/Chat/ChatMessages/ChatMessages.d.ts +42 -0
  50. package/dist/cjs/Layout/Chat/ChatMessages/ChatMessages.js +124 -0
  51. package/dist/cjs/Layout/Chat/ChatMessages/ChatMessages.styles.d.ts +43 -0
  52. package/dist/cjs/Layout/Chat/ChatMessages/ChatMessages.styles.js +29 -0
  53. package/dist/cjs/Layout/Chat/ChatMessages/index.d.ts +1 -0
  54. package/dist/cjs/Layout/Chat/ChatMessages/index.js +16 -0
  55. package/dist/cjs/Layout/Chat/ChatMessages/useLastMessageHeight.d.ts +10 -0
  56. package/dist/cjs/Layout/Chat/ChatMessages/useLastMessageHeight.js +47 -0
  57. package/dist/cjs/Layout/Chat/ChatPrompt/ChatPrompt.d.ts +83 -0
  58. package/dist/cjs/Layout/Chat/ChatPrompt/ChatPrompt.js +136 -0
  59. package/dist/cjs/Layout/Chat/ChatPrompt/ChatPrompt.styles.d.ts +61 -0
  60. package/dist/cjs/Layout/Chat/ChatPrompt/ChatPrompt.styles.js +22 -0
  61. package/dist/cjs/Layout/Chat/ChatPrompt/index.d.ts +1 -0
  62. package/dist/cjs/Layout/Chat/ChatPrompt/index.js +16 -0
  63. package/dist/cjs/Layout/Chat/ChatPrompt/useTypewriter.d.ts +18 -0
  64. package/dist/cjs/Layout/Chat/ChatPrompt/useTypewriter.js +78 -0
  65. package/dist/cjs/Layout/Chat/index.d.ts +15 -0
  66. package/dist/cjs/Layout/Chat/index.js +47 -0
  67. package/dist/cjs/Layout/Chat/types.d.ts +7 -0
  68. package/dist/cjs/Layout/Chat/types.js +5 -0
  69. package/dist/cjs/Layout/index.d.ts +1 -0
  70. package/dist/cjs/Layout/index.js +11 -0
  71. package/dist/cjs/Overlay/Modal/Modal.js +1 -1
  72. package/dist/cjs/Satellite/locale.d.ts +7 -1
  73. package/dist/cjs/styles/helpers/tv.d.ts +1 -0
  74. package/dist/cjs/styles/helpers/tv.js +13 -0
  75. package/dist/cjs/styles/tailwind.config.js +1 -1
  76. package/dist/cjs/utils/getTextFromReactNode.d.ts +2 -1
  77. package/dist/cjs/utils/getTextFromReactNode.js +12 -7
  78. package/dist/cjs/utils/isCssPropertySupported.d.ts +1 -1
  79. package/dist/esm/Actions/Accordion/Accordion.d.ts +8 -0
  80. package/dist/esm/Actions/Accordion/Accordion.js +5 -3
  81. package/dist/esm/Fields/AutoComplete/AutoComplete.js +6 -1
  82. package/dist/esm/Fields/TextArea/TextArea.d.ts +5 -1
  83. package/dist/esm/Fields/TextArea/TextArea.js +3 -2
  84. package/dist/esm/Fields/TextArea/TextArea.tailwind.js +1 -1
  85. package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.d.ts +18 -0
  86. package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.js +75 -0
  87. package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.styles.d.ts +25 -0
  88. package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.styles.js +9 -0
  89. package/dist/esm/Fields/TextAreaAutoSize/index.d.ts +2 -0
  90. package/dist/esm/Fields/TextAreaAutoSize/index.js +1 -0
  91. package/dist/esm/Fields/index.d.ts +2 -1
  92. package/dist/esm/Fields/index.js +2 -1
  93. package/dist/esm/Helpers/ShimmerText/ShimmerText.d.ts +3 -0
  94. package/dist/esm/Helpers/ShimmerText/ShimmerText.js +21 -0
  95. package/dist/esm/Helpers/ShimmerText/ShimmerText.tailwind.d.ts +5 -0
  96. package/dist/esm/Helpers/ShimmerText/ShimmerText.tailwind.js +36 -0
  97. package/dist/esm/Helpers/ShimmerText/index.d.ts +2 -0
  98. package/dist/esm/Helpers/ShimmerText/index.js +1 -0
  99. package/dist/esm/Helpers/index.d.ts +1 -0
  100. package/dist/esm/Helpers/index.js +2 -1
  101. package/dist/esm/Helpers/utilities/utilities.tailwind.js +6 -1
  102. package/dist/esm/Indicators/Skeleton/Skeleton.d.ts +2 -2
  103. package/dist/esm/Layout/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +8 -0
  104. package/dist/esm/Layout/Chat/ChatContextAccordion/ChatContextAccordion.js +37 -0
  105. package/dist/esm/Layout/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +67 -0
  106. package/dist/esm/Layout/Chat/ChatContextAccordion/ChatContextAccordion.styles.js +16 -0
  107. package/dist/esm/Layout/Chat/ChatContextAccordion/index.d.ts +1 -0
  108. package/dist/esm/Layout/Chat/ChatContextAccordion/index.js +1 -0
  109. package/dist/esm/Layout/Chat/ChatMessage/ChatMessage.d.ts +40 -0
  110. package/dist/esm/Layout/Chat/ChatMessage/ChatMessage.js +77 -0
  111. package/dist/esm/Layout/Chat/ChatMessage/ChatMessage.styles.d.ts +100 -0
  112. package/dist/esm/Layout/Chat/ChatMessage/ChatMessage.styles.js +64 -0
  113. package/dist/esm/Layout/Chat/ChatMessage/index.d.ts +1 -0
  114. package/dist/esm/Layout/Chat/ChatMessage/index.js +1 -0
  115. package/dist/esm/Layout/Chat/ChatMessageError/ChatMessageError.d.ts +57 -0
  116. package/dist/esm/Layout/Chat/ChatMessageError/ChatMessageError.js +61 -0
  117. package/dist/esm/Layout/Chat/ChatMessageError/ChatMessageError.styles.d.ts +173 -0
  118. package/dist/esm/Layout/Chat/ChatMessageError/ChatMessageError.styles.js +11 -0
  119. package/dist/esm/Layout/Chat/ChatMessageError/index.d.ts +1 -0
  120. package/dist/esm/Layout/Chat/ChatMessageError/index.js +1 -0
  121. package/dist/esm/Layout/Chat/ChatMessageLoader/ChatMessageLoader.d.ts +18 -0
  122. package/dist/esm/Layout/Chat/ChatMessageLoader/ChatMessageLoader.js +56 -0
  123. package/dist/esm/Layout/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +200 -0
  124. package/dist/esm/Layout/Chat/ChatMessageLoader/ChatMessageLoader.styles.js +14 -0
  125. package/dist/esm/Layout/Chat/ChatMessageLoader/index.d.ts +1 -0
  126. package/dist/esm/Layout/Chat/ChatMessageLoader/index.js +1 -0
  127. package/dist/esm/Layout/Chat/ChatMessages/ChatMessages.d.ts +42 -0
  128. package/dist/esm/Layout/Chat/ChatMessages/ChatMessages.js +119 -0
  129. package/dist/esm/Layout/Chat/ChatMessages/ChatMessages.styles.d.ts +43 -0
  130. package/dist/esm/Layout/Chat/ChatMessages/ChatMessages.styles.js +22 -0
  131. package/dist/esm/Layout/Chat/ChatMessages/index.d.ts +1 -0
  132. package/dist/esm/Layout/Chat/ChatMessages/index.js +1 -0
  133. package/dist/esm/Layout/Chat/ChatMessages/useLastMessageHeight.d.ts +10 -0
  134. package/dist/esm/Layout/Chat/ChatMessages/useLastMessageHeight.js +41 -0
  135. package/dist/esm/Layout/Chat/ChatPrompt/ChatPrompt.d.ts +83 -0
  136. package/dist/esm/Layout/Chat/ChatPrompt/ChatPrompt.js +131 -0
  137. package/dist/esm/Layout/Chat/ChatPrompt/ChatPrompt.styles.d.ts +61 -0
  138. package/dist/esm/Layout/Chat/ChatPrompt/ChatPrompt.styles.js +15 -0
  139. package/dist/esm/Layout/Chat/ChatPrompt/index.d.ts +1 -0
  140. package/dist/esm/Layout/Chat/ChatPrompt/index.js +1 -0
  141. package/dist/esm/Layout/Chat/ChatPrompt/useTypewriter.d.ts +18 -0
  142. package/dist/esm/Layout/Chat/ChatPrompt/useTypewriter.js +71 -0
  143. package/dist/esm/Layout/Chat/index.d.ts +15 -0
  144. package/dist/esm/Layout/Chat/index.js +6 -0
  145. package/dist/esm/Layout/Chat/types.d.ts +7 -0
  146. package/dist/esm/Layout/Chat/types.js +1 -0
  147. package/dist/esm/Layout/index.d.ts +1 -0
  148. package/dist/esm/Layout/index.js +1 -0
  149. package/dist/esm/Overlay/Modal/Modal.js +1 -1
  150. package/dist/esm/Satellite/locale.d.ts +7 -1
  151. package/dist/esm/styles/helpers/tv.d.ts +1 -0
  152. package/dist/esm/styles/helpers/tv.js +7 -0
  153. package/dist/esm/styles/tailwind.config.js +1 -1
  154. package/dist/esm/utils/getTextFromReactNode.d.ts +2 -1
  155. package/dist/esm/utils/getTextFromReactNode.js +13 -8
  156. package/dist/esm/utils/isCssPropertySupported.d.ts +1 -1
  157. package/dist/satellite.min.css +1 -1
  158. package/package.json +12 -3
@@ -1 +1 @@
1
- export declare const isCssPropertySupported: <P extends number | typeof Symbol.iterator | "filter" | "fill" | "width" | "height" | "color" | "alignmentBaseline" | "baselineShift" | "clip" | "clipPath" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "cursor" | "direction" | "display" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "mask" | "offset" | "opacity" | "order" | "overflow" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "textDecoration" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "wordSpacing" | "writingMode" | "grid" | "marker" | "translate" | "content" | "item" | "all" | "border" | "left" | "right" | "columns" | "top" | "bottom" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "appearance" | "aspectRatio" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "blockSize" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "clear" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "contain" | "counterIncrement" | "counterReset" | "counterSet" | "cssFloat" | "cssText" | "emptyCells" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "font" | "fontFeatureSettings" | "fontKerning" | "fontOpticalSizing" | "fontSynthesis" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hyphens" | "imageOrientation" | "inlineSize" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "lineBreak" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maskClip" | "maskComposite" | "maskImage" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offsetDistance" | "offsetPath" | "offsetRotate" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflowAnchor" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "position" | "printColorAdjust" | "quotes" | "resize" | "rowGap" | "rubyPosition" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapStop" | "scrollSnapType" | "scrollbarGutter" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textCombineUpright" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textOrientation" | "textOverflow" | "textShadow" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "touchAction" | "transformBox" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "userSelect" | "verticalAlign" | "webkitAlignContent" | "webkitAlignItems" | "webkitAlignSelf" | "webkitAnimation" | "webkitAnimationDelay" | "webkitAnimationDirection" | "webkitAnimationDuration" | "webkitAnimationFillMode" | "webkitAnimationIterationCount" | "webkitAnimationName" | "webkitAnimationPlayState" | "webkitAnimationTimingFunction" | "webkitAppearance" | "webkitBackfaceVisibility" | "webkitBackgroundClip" | "webkitBackgroundOrigin" | "webkitBackgroundSize" | "webkitBorderBottomLeftRadius" | "webkitBorderBottomRightRadius" | "webkitBorderRadius" | "webkitBorderTopLeftRadius" | "webkitBorderTopRightRadius" | "webkitBoxAlign" | "webkitBoxFlex" | "webkitBoxOrdinalGroup" | "webkitBoxOrient" | "webkitBoxPack" | "webkitBoxShadow" | "webkitBoxSizing" | "webkitFilter" | "webkitFlex" | "webkitFlexBasis" | "webkitFlexDirection" | "webkitFlexFlow" | "webkitFlexGrow" | "webkitFlexShrink" | "webkitFlexWrap" | "webkitJustifyContent" | "webkitLineClamp" | "webkitMask" | "webkitMaskBoxImage" | "webkitMaskBoxImageOutset" | "webkitMaskBoxImageRepeat" | "webkitMaskBoxImageSlice" | "webkitMaskBoxImageSource" | "webkitMaskBoxImageWidth" | "webkitMaskClip" | "webkitMaskComposite" | "webkitMaskImage" | "webkitMaskOrigin" | "webkitMaskPosition" | "webkitMaskRepeat" | "webkitMaskSize" | "webkitOrder" | "webkitPerspective" | "webkitPerspectiveOrigin" | "webkitTextFillColor" | "webkitTextSizeAdjust" | "webkitTextStroke" | "webkitTextStrokeColor" | "webkitTextStrokeWidth" | "webkitTransform" | "webkitTransformOrigin" | "webkitTransformStyle" | "webkitTransition" | "webkitTransitionDelay" | "webkitTransitionDuration" | "webkitTransitionProperty" | "webkitTransitionTimingFunction" | "webkitUserSelect" | "whiteSpace" | "widows" | "willChange" | "wordBreak" | "wordWrap" | "zIndex" | "getPropertyPriority" | "getPropertyValue" | "removeProperty" | "setProperty">(prop: P, value: CSSStyleDeclaration[P]) => boolean;
1
+ export declare const isCssPropertySupported: <P extends number | typeof Symbol.iterator | "filter" | "fill" | "width" | "height" | "color" | "alignmentBaseline" | "baselineShift" | "clip" | "clipPath" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "cursor" | "direction" | "display" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "mask" | "offset" | "opacity" | "order" | "overflow" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "textDecoration" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "wordSpacing" | "writingMode" | "grid" | "marker" | "translate" | "content" | "item" | "all" | "border" | "left" | "right" | "columns" | "top" | "bottom" | "appearance" | "clear" | "flex" | "float" | "gap" | "hyphens" | "inset" | "isolation" | "perspective" | "position" | "resize" | "transition" | "font" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "aspectRatio" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "blockSize" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "contain" | "counterIncrement" | "counterReset" | "counterSet" | "cssFloat" | "cssText" | "emptyCells" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFeatureSettings" | "fontKerning" | "fontOpticalSizing" | "fontSynthesis" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "imageOrientation" | "inlineSize" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "justifyContent" | "justifyItems" | "justifySelf" | "lineBreak" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maskClip" | "maskComposite" | "maskImage" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offsetDistance" | "offsetPath" | "offsetRotate" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflowAnchor" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "printColorAdjust" | "quotes" | "rowGap" | "rubyPosition" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapStop" | "scrollSnapType" | "scrollbarGutter" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textCombineUpright" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textOrientation" | "textOverflow" | "textShadow" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "touchAction" | "transformBox" | "transformOrigin" | "transformStyle" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "userSelect" | "verticalAlign" | "webkitAlignContent" | "webkitAlignItems" | "webkitAlignSelf" | "webkitAnimation" | "webkitAnimationDelay" | "webkitAnimationDirection" | "webkitAnimationDuration" | "webkitAnimationFillMode" | "webkitAnimationIterationCount" | "webkitAnimationName" | "webkitAnimationPlayState" | "webkitAnimationTimingFunction" | "webkitAppearance" | "webkitBackfaceVisibility" | "webkitBackgroundClip" | "webkitBackgroundOrigin" | "webkitBackgroundSize" | "webkitBorderBottomLeftRadius" | "webkitBorderBottomRightRadius" | "webkitBorderRadius" | "webkitBorderTopLeftRadius" | "webkitBorderTopRightRadius" | "webkitBoxAlign" | "webkitBoxFlex" | "webkitBoxOrdinalGroup" | "webkitBoxOrient" | "webkitBoxPack" | "webkitBoxShadow" | "webkitBoxSizing" | "webkitFilter" | "webkitFlex" | "webkitFlexBasis" | "webkitFlexDirection" | "webkitFlexFlow" | "webkitFlexGrow" | "webkitFlexShrink" | "webkitFlexWrap" | "webkitJustifyContent" | "webkitLineClamp" | "webkitMask" | "webkitMaskBoxImage" | "webkitMaskBoxImageOutset" | "webkitMaskBoxImageRepeat" | "webkitMaskBoxImageSlice" | "webkitMaskBoxImageSource" | "webkitMaskBoxImageWidth" | "webkitMaskClip" | "webkitMaskComposite" | "webkitMaskImage" | "webkitMaskOrigin" | "webkitMaskPosition" | "webkitMaskRepeat" | "webkitMaskSize" | "webkitOrder" | "webkitPerspective" | "webkitPerspectiveOrigin" | "webkitTextFillColor" | "webkitTextSizeAdjust" | "webkitTextStroke" | "webkitTextStrokeColor" | "webkitTextStrokeWidth" | "webkitTransform" | "webkitTransformOrigin" | "webkitTransformStyle" | "webkitTransition" | "webkitTransitionDelay" | "webkitTransitionDuration" | "webkitTransitionProperty" | "webkitTransitionTimingFunction" | "webkitUserSelect" | "whiteSpace" | "widows" | "willChange" | "wordBreak" | "wordWrap" | "zIndex" | "getPropertyPriority" | "getPropertyValue" | "removeProperty" | "setProperty">(prop: P, value: CSSStyleDeclaration[P]) => boolean;
@@ -94,6 +94,14 @@ export declare type AccordionHeaderProps = {
94
94
  * Defines a class name for the `AccordionHeader`.
95
95
  */
96
96
  className?: string;
97
+ /**
98
+ * Defines a class name for the title wrapper.
99
+ */
100
+ titleWrapperClassName?: string;
101
+ /**
102
+ * Defines a class name for the title.
103
+ */
104
+ titleClassName?: string;
97
105
  /**
98
106
  * Defines an icon to display next to the title and description.
99
107
  */
@@ -76,7 +76,9 @@ var AccordionHeader = /*#__PURE__*/forwardRef(function (_ref3, ref) {
76
76
  meta = _ref3.meta,
77
77
  triggerIcon = _ref3.triggerIcon,
78
78
  triggerClassName = _ref3.triggerClassName,
79
- className = _ref3.className;
79
+ className = _ref3.className,
80
+ titleWrapperClassName = _ref3.titleWrapperClassName,
81
+ titleClassName = _ref3.titleClassName;
80
82
  var TriggerIcon = triggerIcon || ChevronDownIcon;
81
83
  return /*#__PURE__*/_jsx(RadixAccordion.Header, {
82
84
  className: className,
@@ -84,7 +86,7 @@ var AccordionHeader = /*#__PURE__*/forwardRef(function (_ref3, ref) {
84
86
  ref: ref,
85
87
  className: cx(stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["group/accordion-trigger flex gap-x-3 items-center w-full justify-between px-3.5 py-2.5 group-first/accordion-item:rounded-t group-last/accordion-item:rounded-b bg-white border-2 border-transparent focus-visible:outline-none focus-visible:border-accent-600 enabled:hover:bg-grey-50 motion-safe:transition-colors"]))), triggerClassName),
86
88
  children: [/*#__PURE__*/_jsxs("div", {
87
- className: stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["flex items-center gap-x-3 grow"]))),
89
+ className: cx(stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["flex items-center gap-x-3 grow"]))), titleWrapperClassName),
88
90
  children: [Icon && /*#__PURE__*/_jsx("span", {
89
91
  className: cx(stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["rounded-full w-8 h-8 flex items-center justify-center shrink-0"]))), iconBgClassName),
90
92
  "aria-hidden": true,
@@ -96,7 +98,7 @@ var AccordionHeader = /*#__PURE__*/forwardRef(function (_ref3, ref) {
96
98
  }), /*#__PURE__*/_jsxs("div", {
97
99
  className: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["flex flex-col gap-y-1 text-left grow"]))),
98
100
  children: [/*#__PURE__*/_jsx("div", {
99
- className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["typo-display-heading line-clamp-2 group-disabled/accordion-trigger:text-grey-300"]))),
101
+ className: cx(stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["typo-display-heading line-clamp-2 group-disabled/accordion-trigger:text-grey-300"]))), titleClassName),
100
102
  children: children
101
103
  }), typeof description !== "undefined" && /*#__PURE__*/_jsx("div", {
102
104
  className: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["typo-display-body typo-subdued line-clamp-3 group-disabled/accordion-trigger:text-grey-300"]))),
@@ -195,7 +195,6 @@ export var AutoComplete = /*#__PURE__*/forwardRef(function (_ref, ref) {
195
195
  });
196
196
  },
197
197
  defaultHighlightedIndex: 0,
198
- isOpen: inputValue ? items.length > 0 ? undefined : true : undefined,
199
198
  getA11yStatusMessage: function getA11yStatusMessage(_ref2) {
200
199
  var isOpen = _ref2.isOpen,
201
200
  resultCount = _ref2.resultCount,
@@ -296,6 +295,12 @@ export var AutoComplete = /*#__PURE__*/forwardRef(function (_ref, ref) {
296
295
  // @ts-expect-error wrong type
297
296
  evt.nativeEvent.preventDownshiftDefault = true;
298
297
  }
298
+
299
+ // should not close the menu on Enter if there are no items matching the input value
300
+ if (combobox.isOpen && evt.key === "Enter" && items.length === 0 && inputValue.trim().length > 0) {
301
+ // @ts-expect-error wrong type
302
+ evt.nativeEvent.preventDownshiftDefault = true;
303
+ }
299
304
  if (multiple && creatable && inputValue.trim().length > 0 && separatorKeys !== null && separatorKeys !== void 0 && separatorKeys.includes(evt.key)) {
300
305
  evt.preventDefault();
301
306
  var _createFromInputValue = createFromInputValue(options, inputValue),
@@ -7,7 +7,11 @@ export interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElemen
7
7
  /**
8
8
  * The value of the `TextArea`.
9
9
  */
10
- value?: string;
10
+ value?: string | number | readonly string[];
11
+ /**
12
+ * The default value of the `TextArea`.
13
+ */
14
+ defaultValue?: string | number | readonly string[];
11
15
  /**
12
16
  * The placeholder of the `TextArea`.
13
17
  */
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
4
- var _excluded = ["className", "placeholder", "required"];
4
+ var _excluded = ["className", "placeholder", "required", "children"];
5
5
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
6
6
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
7
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -37,6 +37,7 @@ export var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
37
37
  var className = _ref.className,
38
38
  placeholder = _ref.placeholder,
39
39
  required = _ref.required,
40
+ children = _ref.children,
40
41
  textareaProps = _objectWithoutProperties(_ref, _excluded);
41
42
  var _useField = useField({
42
43
  required: required
@@ -58,7 +59,7 @@ export var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
58
59
  "aria-invalid": isInvalid,
59
60
  ref: ref,
60
61
  placeholder: placeholder
61
- })), /*#__PURE__*/_jsx(StatusIcon, {})]
62
+ })), /*#__PURE__*/_jsx(StatusIcon, {}), children]
62
63
  });
63
64
  });
64
65
  TextArea.displayName = "TextArea";
@@ -7,6 +7,7 @@ var textAreaPlugin = plugin(function (_ref) {
7
7
  addComponents({
8
8
  ".text-area": {
9
9
  display: "flex",
10
+ flexDirection: "column",
10
11
  width: "100%",
11
12
  backgroundColor: theme("colors.white"),
12
13
  border: "1px solid ".concat(theme("colors.grey.500")),
@@ -43,7 +44,6 @@ var textAreaPlugin = plugin(function (_ref) {
43
44
  paddingRight: theme("spacing.6")
44
45
  },
45
46
  textarea: {
46
- flex: "1",
47
47
  minWidth: "0px",
48
48
  caretColor: theme("colors.grey.600"),
49
49
  color: theme("colors.grey.900"),
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import type { TextAreaProps } from "../../Fields/TextArea";
3
+ export declare type TextAreaAutoSizeProps = TextAreaProps & {
4
+ /**
5
+ * The maximum number of rows the `TextArea` can expand to when `autoResize` is enabled.
6
+ * If set to 0, the `TextArea` will expand indefinitely.
7
+ * @default 0
8
+ */
9
+ maxRows?: number;
10
+ };
11
+ export declare const TextAreaAutoSize: import("react").ForwardRefExoticComponent<TextAreaProps & {
12
+ /**
13
+ * The maximum number of rows the `TextArea` can expand to when `autoResize` is enabled.
14
+ * If set to 0, the `TextArea` will expand indefinitely.
15
+ * @default 0
16
+ */
17
+ maxRows?: number | undefined;
18
+ } & import("react").RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1,75 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["maxRows", "className"];
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ import { forwardRef, useImperativeHandle, useLayoutEffect, useRef } from "react";
7
+ import { textAreaAutoSizeStyles } from "./TextAreaAutoSize.styles";
8
+ import { TextArea } from "./../TextArea";
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ export var TextAreaAutoSize = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
11
+ var _ref$maxRows = _ref.maxRows,
12
+ maxRows = _ref$maxRows === void 0 ? 0 : _ref$maxRows,
13
+ className = _ref.className,
14
+ props = _objectWithoutProperties(_ref, _excluded);
15
+ var styles = textAreaAutoSizeStyles();
16
+ var internalRef = useRef(null);
17
+ useImperativeHandle(forwardedRef, function () {
18
+ return internalRef.current;
19
+ });
20
+ var lineHeightRef = useRef(0);
21
+ var paddingRef = useRef(0);
22
+ useLayoutEffect(function () {
23
+ if (!internalRef.current) return;
24
+ var textArea = internalRef.current;
25
+ var styles = getComputedStyle(textArea);
26
+ lineHeightRef.current = parseFloat(styles.lineHeight);
27
+ var pt = parseFloat(styles.paddingTop);
28
+ var pb = parseFloat(styles.paddingBottom);
29
+ paddingRef.current = pt + pb;
30
+ // eslint-disable-next-line react-hooks/exhaustive-deps
31
+ }, []);
32
+ useLayoutEffect(function () {
33
+ adjustHeight();
34
+ // eslint-disable-next-line react-hooks/exhaustive-deps
35
+ }, [props.value, props.placeholder, props.rows, maxRows]);
36
+ var adjustHeight = function adjustHeight() {
37
+ if (!internalRef.current) return;
38
+ var textArea = internalRef.current;
39
+ textArea.style.height = "auto";
40
+ var fullHeight = textArea.scrollHeight;
41
+ if (maxRows > 0) {
42
+ var maxHeight = maxRows * lineHeightRef.current + paddingRef.current;
43
+ textArea.style.overflowY = fullHeight > maxHeight ? "auto" : "hidden";
44
+ textArea.style.height = "".concat(Math.min(fullHeight, maxHeight), "px");
45
+ } else {
46
+ textArea.style.overflowY = "hidden";
47
+ textArea.style.height = "".concat(fullHeight, "px");
48
+ }
49
+ };
50
+ useLayoutEffect(function () {
51
+ if (!internalRef.current) return;
52
+ var ro = new ResizeObserver(function () {
53
+ return adjustHeight();
54
+ });
55
+ var textArea = internalRef.current;
56
+ ro.observe(textArea);
57
+ return function () {
58
+ return ro.disconnect();
59
+ };
60
+ // eslint-disable-next-line react-hooks/exhaustive-deps
61
+ }, []);
62
+ var onInput = function onInput(e) {
63
+ var _props$onInput;
64
+ adjustHeight();
65
+ (_props$onInput = props.onInput) === null || _props$onInput === void 0 || _props$onInput.call(props, e);
66
+ };
67
+ return /*#__PURE__*/_jsx(TextArea, _objectSpread(_objectSpread({}, props), {}, {
68
+ className: styles.base({
69
+ className: className
70
+ }),
71
+ ref: internalRef,
72
+ onInput: onInput
73
+ }));
74
+ });
75
+ TextAreaAutoSize.displayName = "TextAreaAutoSize";
@@ -0,0 +1,25 @@
1
+ export declare const textAreaAutoSizeStyles: import("tailwind-variants").TVReturnType<{
2
+ [key: string]: {
3
+ [key: string]: import("tailwind-merge").ClassNameValue | {
4
+ base?: import("tailwind-merge").ClassNameValue;
5
+ };
6
+ };
7
+ } | {
8
+ [x: string]: {
9
+ [x: string]: import("tailwind-merge").ClassNameValue | {
10
+ base?: import("tailwind-merge").ClassNameValue;
11
+ };
12
+ };
13
+ } | {}, {
14
+ base: string;
15
+ }, undefined, {
16
+ [key: string]: {
17
+ [key: string]: import("tailwind-merge").ClassNameValue | {
18
+ base?: import("tailwind-merge").ClassNameValue;
19
+ };
20
+ };
21
+ } | {}, {
22
+ base: string;
23
+ }, import("tailwind-variants").TVReturnType<unknown, {
24
+ base: string;
25
+ }, undefined, unknown, unknown, undefined>>;
@@ -0,0 +1,9 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
+ var _templateObject;
3
+ import stl from "./../../styles/helpers/satellitePrefixer";
4
+ import { tv } from "./../../styles/helpers/tv";
5
+ export var textAreaAutoSizeStyles = tv({
6
+ slots: {
7
+ base: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["[&>textarea]:resize-none [&>textarea]:overflow-y-hidden"])))
8
+ }
9
+ });
@@ -0,0 +1,2 @@
1
+ export type { TextAreaAutoSizeProps as ExperimentalTextAreaAutoSizeProps } from "./TextAreaAutoSize";
2
+ export { TextAreaAutoSize as ExperimentalTextAreaAutoSize } from "./TextAreaAutoSize";
@@ -0,0 +1 @@
1
+ export { TextAreaAutoSize as ExperimentalTextAreaAutoSize } from "./TextAreaAutoSize";
@@ -11,5 +11,6 @@ export * from "./Input";
11
11
  export * from "./RadioGroup";
12
12
  export * from "./RangeSlider";
13
13
  export * from "./Select";
14
- export * from "./TextArea";
15
14
  export * from "./Switch";
15
+ export * from "./TextArea";
16
+ export * from "./TextAreaAutoSize";
@@ -11,5 +11,6 @@ export * from "./Input";
11
11
  export * from "./RadioGroup";
12
12
  export * from "./RangeSlider";
13
13
  export * from "./Select";
14
+ export * from "./Switch";
14
15
  export * from "./TextArea";
15
- export * from "./Switch";
16
+ export * from "./TextAreaAutoSize";
@@ -0,0 +1,3 @@
1
+ import type { HTMLAttributes } from "react";
2
+ export declare type ShimmerTextProps = HTMLAttributes<HTMLDivElement>;
3
+ export declare const ShimmerText: import("react").ForwardRefExoticComponent<ShimmerTextProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,21 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
+ var _templateObject;
5
+ var _excluded = ["className"];
6
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
+ import cx from "clsx";
9
+ import { forwardRef } from "react";
10
+ import stl from "./../../styles/helpers/satellitePrefixer";
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
+ export var ShimmerText = /*#__PURE__*/forwardRef(function (_ref, ref) {
13
+ var className = _ref.className,
14
+ props = _objectWithoutProperties(_ref, _excluded);
15
+ return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
16
+ ref: ref
17
+ }, props), {}, {
18
+ className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["shimmer-text"]))), className)
19
+ }));
20
+ });
21
+ ShimmerText.displayName = "ShimmerText";
@@ -0,0 +1,5 @@
1
+ export = shimmerTextPlugin;
2
+ declare const shimmerTextPlugin: {
3
+ handler: import("tailwindcss/types/config").PluginCreator;
4
+ config?: Partial<import("tailwindcss/types/config").Config> | undefined;
5
+ };
@@ -0,0 +1,36 @@
1
+ import _plugin from "tailwindcss/plugin";
2
+ // @ts-check
3
+ var plugin = _plugin;
4
+ var shimmerTextPlugin = plugin(function (_ref) {
5
+ var addComponents = _ref.addComponents,
6
+ addUtilities = _ref.addUtilities,
7
+ theme = _ref.theme;
8
+ addComponents({
9
+ ".shimmer-text": {
10
+ "text-fill-color": "transparent",
11
+ "-webkit-text-fill-color": "transparent",
12
+ "animation-delay": "0.5s",
13
+ "animation-duration": "3s",
14
+ "animation-iteration-count": "infinite",
15
+ "animation-name": "shimmer-text",
16
+ background: "".concat(theme("colors.grey.900"), " linear-gradient(to right, ").concat(theme("colors.grey.900"), " 0%, #ffffffbf 40%, #ffffffbf 60%, ").concat(theme("colors.grey.900"), " 100%)"),
17
+ "-webkit-background-clip": "text",
18
+ "background-clip": "text",
19
+ "background-repeat": "no-repeat",
20
+ "background-size": "50% 200%",
21
+ display: "inline-block",
22
+ "background-position": "-100% 0"
23
+ }
24
+ });
25
+ addUtilities({
26
+ "@keyframes shimmer-text": {
27
+ from: {
28
+ "background-position": "-100% 0%"
29
+ },
30
+ to: {
31
+ "background-position": "250% 0%"
32
+ }
33
+ }
34
+ });
35
+ });
36
+ export default shimmerTextPlugin;
@@ -0,0 +1,2 @@
1
+ export type { ShimmerTextProps as ExperimentalShimmerTextProps } from "./ShimmerText";
2
+ export { ShimmerText as ExperimentalShimmerText } from "./ShimmerText";
@@ -0,0 +1 @@
1
+ export { ShimmerText as ExperimentalShimmerText } from "./ShimmerText";
@@ -3,3 +3,4 @@ export * from "./CodeEditor";
3
3
  export * from "./HelpUnderline";
4
4
  export * from "./TextWrap";
5
5
  export * from "./UserContent";
6
+ export * from "./ShimmerText";
@@ -2,4 +2,5 @@ export * from "./ClickAwayContainer";
2
2
  export * from "./CodeEditor";
3
3
  export * from "./HelpUnderline";
4
4
  export * from "./TextWrap";
5
- export * from "./UserContent";
5
+ export * from "./UserContent";
6
+ export * from "./ShimmerText";
@@ -3,7 +3,8 @@ import _plugin from "tailwindcss/plugin";
3
3
  // @ts-check
4
4
  var plugin = _plugin;
5
5
  export default plugin(function (_ref) {
6
- var addUtilities = _ref.addUtilities;
6
+ var addUtilities = _ref.addUtilities,
7
+ theme = _ref.theme;
7
8
  addUtilities({
8
9
  ".no-scrollbar": {
9
10
  // for Firefox
@@ -16,6 +17,10 @@ export default plugin(function (_ref) {
16
17
  width: "0px"
17
18
  }
18
19
  },
20
+ ".thin-scrollbar": {
21
+ "scrollbar-width": "8px",
22
+ "scrollbar-color": "".concat(theme("colors.grey.200"), " ").concat(theme("colors.transparent"))
23
+ },
19
24
  ".no-search-input-decoration": {
20
25
  "&[type='search']": _defineProperty({}, "&::-webkit-search-decoration,\n &::-webkit-search-cancel-button,\n &::-webkit-search-results-button,\n &::-webkit-search-results-decoration", {
21
26
  display: "none"
@@ -1,5 +1,5 @@
1
- import type { FC, PropsWithChildren } from "react";
2
- export interface SkeletonProps {
1
+ import type { FC, HTMLAttributes, PropsWithChildren } from "react";
2
+ export interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
3
3
  /**
4
4
  * The className to apply to the skeleton element.
5
5
  */
@@ -0,0 +1,8 @@
1
+ import type { HTMLAttributes, ReactNode } from "react";
2
+ import type { AccordionProps } from "../../../Actions";
3
+ import type { IconComponentType } from "../../../Icons";
4
+ export declare type ChatContextAccordionProps = HTMLAttributes<HTMLDivElement> & AccordionProps & {
5
+ header: ReactNode;
6
+ icon?: IconComponentType;
7
+ };
8
+ export declare const ChatContextAccordion: ({ header, icon, children, className, ...props }: ChatContextAccordionProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,37 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["header", "icon", "children", "className"];
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ import { chatContextAccordionStyles } from "./ChatContextAccordion.styles";
7
+ import { Accordion } from "./../../../Actions";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ export var ChatContextAccordion = function ChatContextAccordion(_ref) {
10
+ var header = _ref.header,
11
+ icon = _ref.icon,
12
+ children = _ref.children,
13
+ className = _ref.className,
14
+ props = _objectWithoutProperties(_ref, _excluded);
15
+ var styles = chatContextAccordionStyles();
16
+ return /*#__PURE__*/_jsx(Accordion, _objectSpread(_objectSpread({}, props), {}, {
17
+ className: styles.base({
18
+ className: className
19
+ }),
20
+ children: /*#__PURE__*/_jsxs(Accordion.Item, {
21
+ value: "default",
22
+ className: styles.item(),
23
+ children: [/*#__PURE__*/_jsx(Accordion.Header, {
24
+ className: styles.header(),
25
+ triggerClassName: styles.trigger(),
26
+ titleWrapperClassName: styles.titleWrapper(),
27
+ titleClassName: styles.title(),
28
+ icon: icon,
29
+ iconBgClassName: styles.iconBg(),
30
+ children: header
31
+ }), /*#__PURE__*/_jsx(Accordion.Content, {
32
+ className: styles.content(),
33
+ children: children
34
+ })]
35
+ })
36
+ }));
37
+ };
@@ -0,0 +1,67 @@
1
+ export declare const chatContextAccordionStyles: import("tailwind-variants").TVReturnType<{
2
+ [key: string]: {
3
+ [key: string]: import("tailwind-merge").ClassNameValue | {
4
+ base?: import("tailwind-merge").ClassNameValue;
5
+ header?: import("tailwind-merge").ClassNameValue;
6
+ title?: import("tailwind-merge").ClassNameValue;
7
+ content?: import("tailwind-merge").ClassNameValue;
8
+ item?: import("tailwind-merge").ClassNameValue;
9
+ trigger?: import("tailwind-merge").ClassNameValue;
10
+ iconBg?: import("tailwind-merge").ClassNameValue;
11
+ titleWrapper?: import("tailwind-merge").ClassNameValue;
12
+ };
13
+ };
14
+ } | {
15
+ [x: string]: {
16
+ [x: string]: import("tailwind-merge").ClassNameValue | {
17
+ base?: import("tailwind-merge").ClassNameValue;
18
+ header?: import("tailwind-merge").ClassNameValue;
19
+ title?: import("tailwind-merge").ClassNameValue;
20
+ content?: import("tailwind-merge").ClassNameValue;
21
+ item?: import("tailwind-merge").ClassNameValue;
22
+ trigger?: import("tailwind-merge").ClassNameValue;
23
+ iconBg?: import("tailwind-merge").ClassNameValue;
24
+ titleWrapper?: import("tailwind-merge").ClassNameValue;
25
+ };
26
+ };
27
+ } | {}, {
28
+ base: string;
29
+ item: string;
30
+ header: string;
31
+ iconBg: string;
32
+ trigger: string;
33
+ titleWrapper: string;
34
+ title: string;
35
+ content: string;
36
+ }, undefined, {
37
+ [key: string]: {
38
+ [key: string]: import("tailwind-merge").ClassNameValue | {
39
+ base?: import("tailwind-merge").ClassNameValue;
40
+ header?: import("tailwind-merge").ClassNameValue;
41
+ title?: import("tailwind-merge").ClassNameValue;
42
+ content?: import("tailwind-merge").ClassNameValue;
43
+ item?: import("tailwind-merge").ClassNameValue;
44
+ trigger?: import("tailwind-merge").ClassNameValue;
45
+ iconBg?: import("tailwind-merge").ClassNameValue;
46
+ titleWrapper?: import("tailwind-merge").ClassNameValue;
47
+ };
48
+ };
49
+ } | {}, {
50
+ base: string;
51
+ item: string;
52
+ header: string;
53
+ iconBg: string;
54
+ trigger: string;
55
+ titleWrapper: string;
56
+ title: string;
57
+ content: string;
58
+ }, import("tailwind-variants").TVReturnType<unknown, {
59
+ base: string;
60
+ item: string;
61
+ header: string;
62
+ iconBg: string;
63
+ trigger: string;
64
+ titleWrapper: string;
65
+ title: string;
66
+ content: string;
67
+ }, undefined, unknown, unknown, undefined>>;
@@ -0,0 +1,16 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
3
+ import stl from "./../../../styles/helpers/satellitePrefixer";
4
+ import { tv } from "./../../../styles/helpers/tv";
5
+ export var chatContextAccordionStyles = tv({
6
+ slots: {
7
+ base: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["w-full"]))),
8
+ item: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["border border-grey-200 rounded-[4px] overflow-hidden"]))),
9
+ header: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["border-b border-grey-200 transition-colors duration-500 data-[state=closed]:border-b-transparent [&>div]:px-2"]))),
10
+ iconBg: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["bg-none !size-auto"]))),
11
+ trigger: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["!px-2 !py-0.5"]))),
12
+ titleWrapper: stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["gap-x-1"]))),
13
+ title: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["typo-subdued typo-display-caption"]))),
14
+ content: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["bg-grey-100 [&>div]:px-3 [&>div]:py-2 overflow-y-auto max-h-36"])))
15
+ }
16
+ });
@@ -0,0 +1 @@
1
+ export * from "./ChatContextAccordion";
@@ -0,0 +1 @@
1
+ export * from "./ChatContextAccordion";