{"version":3,"names":["DirectionContext","DirectionProvider","props","direction","children"],"sources":["direction-provider.tsx"],"sourcesContent":["import type { JSX } from \"@solidjs/web\";\n\nimport {\n\tDirectionContext,\n\ttype TextDirection,\n} from \"./direction-provider-context.ts\";\n\nexport interface DirectionProviderProps {\n\tchildren?: JSX.Element;\n\t/**\n\t * The reading direction of the text.\n\t * @default \"ltr\"\n\t */\n\tdirection?: TextDirection | undefined;\n}\n\n/**\n * Enables RTL behavior for Base UI components.\n *\n * Documentation: [Base UI Direction Provider](https://base-ui.com/react/utils/direction-provider)\n */\nexport function DirectionProvider(props: DirectionProviderProps): JSX.Element {\n\t// Wrap as an accessor so consumers of `useDirection()` stay reactive when\n\t// the `direction` prop changes.\n\tconst direction = (): TextDirection => props.direction ?? \"ltr\";\n\n\treturn (\n\t\t<DirectionContext value={direction}>{props.children}</DirectionContext>\n\t);\n}\n"],"mappings":"AAEA,SACCA,gBAAgB,QAEV,iCAAiC;AAWxC;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAACC,KAA6B,EAAe;EAC7E;EACA;EACA,MAAMC,SAAS,GAAGA,CAAA,KAAqBD,KAAK,CAACC,SAAS,IAAI,KAAK;EAE/D,OACC,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAACA,SAAS,CAAC,CAAC,CAACD,KAAK,CAACE,QAAQ,CAAC,EAAE,gBAAgB,CAAC;AAEzE","ignoreList":[]}