@@ -5903,10 +5903,10 @@ var IconsMap = [
59035903 }
59045904] ;
59055905var getIcon = ( name ) => {
5906- return IconsMap . find ( ( icon3 ) => icon3 . name === name ) ?. Icon ;
5906+ return IconsMap . find ( ( icon4 ) => icon4 . name === name ) ?. Icon ;
59075907} ;
5908- var OverviewCard = ( { icon : icon3 , link : link2 , children } ) => {
5909- const Icon32 = getIcon ( icon3 ) ;
5908+ var OverviewCard = ( { icon : icon4 , link : link2 , children } ) => {
5909+ const Icon32 = getIcon ( icon4 ) ;
59105910 return /* @__PURE__ */ jsx2 ( Link , { href : link2 , children : /* @__PURE__ */ jsxs2 ( Flex , { sx : styles_default . overviewCard , children : [
59115911 Icon32 && /* @__PURE__ */ jsx2 ( Icon32 , { sx : styles_default . overviewIcon } ) ,
59125912 /* @__PURE__ */ jsx2 ( Box , { children } )
@@ -6593,8 +6593,8 @@ var ObservableHeading = ({
65936593 }
65946594 ) ;
65956595} ;
6596- var Callout = ( { node, icon : icon3 , ...props } ) => {
6597- const blockquoteType = icon3 ? icon3 : "info" ;
6596+ var Callout = ( { node, icon : icon4 , ...props } ) => {
6597+ const blockquoteType = icon4 ? icon4 : "info" ;
65986598 return /* @__PURE__ */ jsx9 (
65996599 "blockquote" ,
66006600 {
@@ -7255,7 +7255,7 @@ import { useRouter as useRouter2 } from "next/router.js";
72557255import { useEffect as useEffect7 } from "react" ;
72567256var getIcon2 = ( doc , sections ) => {
72577257 for ( const section of sections ) {
7258- return section . find ( ( icon3 ) => icon3 . title === doc ) ?. Icon ;
7258+ return section . find ( ( icon4 ) => icon4 . title === doc ) ?. Icon ;
72597259 }
72607260} ;
72617261var updateOpenPage = ( {
@@ -7812,17 +7812,17 @@ var styles_default12 = {
78127812} ;
78137813
78147814// src/components/sidebar-elements/functions.tsx
7815- var styleByLevelNormal = ( level , icon3 ) => {
7816- const ml = 8 + ( icon3 ? ( level - 1 ) * 20 + 6 : ( level - 1 ) * 20 + 14 ) ;
7817- const borderLeft = icon3 ? "none" : level >= 2 ? "1px solid #E7E9EE" : "" ;
7815+ var styleByLevelNormal = ( level , icon4 ) => {
7816+ const ml = 8 + ( icon4 ? ( level - 1 ) * 20 + 6 : ( level - 1 ) * 20 + 14 ) ;
7817+ const borderLeft = icon4 ? "none" : level >= 2 ? "1px solid #E7E9EE" : "" ;
78187818 const normal = {
78197819 marginLeft : `${ ml } px` ,
78207820 borderLeft
78217821 } ;
78227822 return normal ;
78237823} ;
7824- var textStyle = ( active , icon3 ) => {
7825- const ml = icon3 ? "4px" : "16px" ;
7824+ var textStyle = ( active , icon4 ) => {
7825+ const ml = icon4 ? "4px" : "16px" ;
78267826 if ( active ) {
78277827 const textStyleActive = {
78287828 ...styles_default12 . elementActive ,
@@ -9620,8 +9620,6 @@ import { useContext as useContext12, useRef as useRef10, useState as useState12
96209620// src/lib/feedback-section/styles.ts
96219621var container5 = ( { small } = { } ) => ( {
96229622 width : "100%" ,
9623- paddingBottom : "16px" ,
9624- borderBottom : small ? "none" : [ "none" , "1px solid #E7E9EE" ] ,
96259623 flexDirection : small ? "column" : [ "column" , "row" ] ,
96269624 alignItems : small ? "flex-start" : "center" ,
96279625 alignContent : [ "initial" , "space-between" ] ,
@@ -11311,11 +11309,78 @@ var CopyLinkButton = () => {
1131111309 return /* @__PURE__ */ jsx64 ( tooltip_default , { label : tooltipText , placement : "bottom" , children : /* @__PURE__ */ jsx64 ( Button8 , { onClick : handleCopy , sx : styles_default26 . copyLinkButton , children : /* @__PURE__ */ jsx64 ( copy_icon_default , { sx : styles_default26 . copyIcon , size : 16 } ) } ) } ) ;
1131211310} ;
1131311311var copy_link_button_default = CopyLinkButton ;
11312+
11313+ // src/components/input/index.tsx
11314+ import { useState as useState17 , useEffect as useEffect13 } from "react" ;
11315+
11316+ // src/components/input/styles.ts
11317+ var input = {
11318+ background : "none" ,
11319+ border : "#F4F4F4" ,
11320+ color : "#545454" ,
11321+ fontSize : [ "14px" ] ,
11322+ width : "100%" ,
11323+ transition : "flex 0.3s" ,
11324+ outline : "none"
11325+ } ;
11326+ var icon3 = {
11327+ minWidth : "16px" ,
11328+ minHeight : "16px" ,
11329+ width : "16px" ,
11330+ mr : "8px" ,
11331+ flex : 0 ,
11332+ maxWidth : "fit-content"
11333+ } ;
11334+ var container11 = {
11335+ paddingLeft : "12px" ,
11336+ alignItems : "center" ,
11337+ justifyContent : "center" ,
11338+ background : "#F4F4F4" ,
11339+ width : "100%" ,
11340+ height : "40px" ,
11341+ borderRadius : "4px" ,
11342+ transition : "all 0.3s ease-out" ,
11343+ cursor : "pointer" ,
11344+ border : "1px solid #F4F4F4" ,
11345+ ":hover" : {
11346+ transition : "all 0.3s ease-out" ,
11347+ border : "1px solid #3B3B3B"
11348+ }
11349+ } ;
11350+ var styles_default27 = { container : container11 , input, icon : icon3 } ;
11351+
11352+ // src/components/input/index.tsx
11353+ import { Flex as Flex23 } from "@vtex/brand-ui" ;
11354+ import { jsx as jsx65 , jsxs as jsxs52 } from "react/jsx-runtime" ;
11355+ var Input = ( { value, onChange, placeholder = "" , Icon : Icon32 } ) => {
11356+ const [ inputValue , setInputValue ] = useState17 ( value ?? "" ) ;
11357+ useEffect13 ( ( ) => {
11358+ if ( inputValue !== value )
11359+ setInputValue ( value ) ;
11360+ } , [ value ] ) ;
11361+ return /* @__PURE__ */ jsxs52 ( Flex23 , { sx : styles_default27 . container , children : [
11362+ Icon32 && /* @__PURE__ */ jsx65 ( Icon32 , { sx : styles_default27 . icon } ) ,
11363+ /* @__PURE__ */ jsx65 (
11364+ "input" ,
11365+ {
11366+ style : styles_default27 . input ,
11367+ value : inputValue ,
11368+ placeholder,
11369+ onChange : ( e ) => {
11370+ setInputValue ( e . currentTarget . value ) ;
11371+ onChange ( e . currentTarget . value ) ;
11372+ }
11373+ }
11374+ )
11375+ ] } ) ;
11376+ } ;
11377+ var input_default = Input ;
1131411378export {
1131511379 cookie_bar_default as CookieBar ,
1131611380 copy_link_button_default as CopyLinkButton ,
1131711381 feedback_section_default as FeedbackSection ,
1131811382 hamburger_menu_default as HamburgerMenu ,
11383+ input_default as Input ,
1131911384 LibraryContext ,
1132011385 libraryContext_default as LibraryContextProvider ,
1132111386 MarkdownRenderer_default as MarkdownRenderer ,
0 commit comments