@lolmath/ui 2.8.0 → 2.8.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/index.cjs CHANGED
@@ -31,7 +31,7 @@ __export(src_exports, {
31
31
  DialogTrigger: () => DialogTrigger,
32
32
  Heading: () => Heading,
33
33
  Item: () => Item,
34
- Label: () => Label3,
34
+ Label: () => Label2,
35
35
  Modal: () => Modal,
36
36
  NumberField: () => NumberField,
37
37
  ProgressBar: () => ProgressBar,
@@ -40,7 +40,7 @@ __export(src_exports, {
40
40
  SearchField: () => SearchField,
41
41
  Select: () => Select,
42
42
  Slider: () => Slider,
43
- SliderLabel: () => SliderLabel,
43
+ SliderOutput: () => SliderOutput,
44
44
  Spinner: () => Spinner,
45
45
  Switch: () => Switch,
46
46
  Tab: () => Tab,
@@ -228,69 +228,60 @@ var import_tailwind_merge3 = require("tailwind-merge");
228
228
  var import_jsx_runtime3 = require("react/jsx-runtime");
229
229
  function SearchField({
230
230
  inputProps = {},
231
+ borderProps = {},
232
+ children,
231
233
  ...props
232
234
  }) {
233
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
234
- import_react_aria_components3.SearchField,
235
- {
236
- ...props,
237
- className: (values) => {
238
- return (0, import_tailwind_merge3.twMerge)(
239
- "flex flex-col outline-none",
235
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_aria_components3.SearchField, { ...props, children: (values) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
236
+ typeof children === "function" ? children(values) : children,
237
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
238
+ "div",
239
+ {
240
+ ...borderProps,
241
+ className: (0, import_tailwind_merge3.twMerge)(
242
+ "outline-none p-px flex",
240
243
  borderGradient,
241
244
  "focus-within:from-lol-gold-300 focus-within:via-lol-gold-200 focus-within:to-lol-gold-50",
242
- props.isDisabled && "from-lol-gray-700 via-lol-gray-700 to-lol-gray-700",
243
- resolveClassname(props.className, values)
244
- );
245
- },
246
- children: ({ state, isDisabled }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
247
- "div",
248
- {
249
- className: (0, import_tailwind_merge3.twMerge)(
250
- "m-px bg-black flex flex-row focus-within:from-lol-gray-950 focus-within:to-lol-gray-900 focus-within:bg-gradient-to-b",
251
- props.isDisabled && "bg-lol-gray-950"
252
- ),
253
- children: [
254
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
255
- import_react_aria_components3.Input,
256
- {
257
- ...inputProps,
258
- className: (values) => {
259
- const finalClassName = resolveClassname(
260
- inputProps.className,
261
- values
262
- );
263
- return (0, import_tailwind_merge3.twMerge)(
264
- "bg-transparent grow py-2 px-3 text-lol-gold-50 text-xs outline-none font-spiegel tracking-wide pl-6",
265
- props.isDisabled && "text-lol-gray-500",
266
- finalClassName
267
- );
268
- },
269
- type: "text",
270
- style: {
271
- backgroundImage: "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAERElEQVR42uycz0tVQRTH54lamBakLUStQKhEW6V/gC2qhRgRqJURVJj9oBL7oWVBWFj0O/pd2EbJ3ARt2uW6tFUWZkhkiYQVSBZk6esc7rkgkXfm3rkzb957c+CL8Obcc+d+5vcPjESjUWZtdkuxCCwgC8gCsoAsIAvIArKArFlAASzVj/P46KuE+OgFuSvVAJKsqWWgclApaBkoDzSP0n+ARkCDoD5QD6gXNB1XNSiA5YP2graACjz85oAWgrBoN9JvH0GdoBugT4nWB2XThw2BmjhwZrMCenaIYmUnCqAq0ABoDyg9hHjpFAtjVsczIGyut0CPQDkK8ooxu+gdqfEGKAP0GFSvIc/19K6MeAGEpfkQVKGx5lfQO1PjAdB1UGUM+s9KerfRgLDT3OXDfxh0FrSWRqm5oCxQEWgdpb33EQ/fvUkloIifTft/ZtLZNLLkCILBIbsbNCVQaNUEa7FA7G+gFaAxFTNpmRp0WhDOE1AJ9RlTAv7T5FtMf3mGE8xW05oYluwOAb+roA2g7wHeMUEz8MsCvtsFa5s2QLtBaRwfnA81SK6nsP03UiwvS6M8GQEIn6kV6HN20gfKWpRiDXP8alWsDIIELKNFqJc1UxMJyzDWUYGFcZkJgFZz0j/QkiBs66bYXlZuAqBVnPQuRfs40wLgS00AtJyT3qNw3tYjmTctgHI56f0KAfVL5k0LoCxO+heFgMYk8xaz7Y6EtSCAeLPiHIX5XSSZNy2ARjnpxQoBlUjmTQugt5LzJBkrl8ybFkAvOenVivo2dxvEy/pMAMSbiyxlzslG2FZFsbXOwYIAesH4B3nnQJkh5jOTYnoZ5qnXBEA45e/g+ODezD1QJIQ8RigWb7+nQ8USJ2hfgSedkxyfGuZsdqVIwjlPsbxskvLETAGE1fm+gN8B5pxhZQVsVlgrGgV825mi83uZ0j0J+irgV0lrqBrB96WQ72vQZgH/cVCLSTNp1xDOPkFf7D9wAx6PdNpAa5hz/SWNlEe/Ydo78hXdY54P2qoKkMyxj2u3mb+zMVWGTfGSiKOuYx/X9jPnaCfWdhF0yMTVPI4geLr51ABIOOIdMXG74ydoPeiOAZBwQtlkGiC038y5moK1ScWm2S8fvm1hjWwqFpW4sV5EnfdkSE0YYy0BPfDxXCtNRYwDxKgG4UlnIVX5kQAxRujZQor1mTkHiO0+YpwixXSYFy0IPNTDvSI8NsJrwPkzFrQTNBMepO2UZ2z2a8C4/LhLsEQNL1qcCDLM67rrhx/6nCRrWKJ1FLNO8JkWKqTjpjQx1RalAeGmj2eOgc4kCyAXEi51RK/h4d2kN8kEyIWEM/lrAnC2MefmflIBciEdBF0JG06iAHIhNfxnsSoFJ5EAzVzRXwgLjs5hXqcdBv1hziZdp2ywRASE1hxWoIj95ybJ1QdZQBaQBWQBWUAWkDULyAKygPTYXwEGAArW2QJagQgvAAAAAElFTkSuQmCC')",
272
- backgroundRepeat: "no-repeat",
273
- backgroundPosition: "5px center",
274
- backgroundSize: "16px"
275
- }
276
- }
277
- ),
278
- state.value.length > 0 && !isDisabled && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
279
- import_react_aria_components3.Button,
280
- {
281
- className: (buttonValues) => (0, import_tailwind_merge3.twMerge)(
282
- "font-black text-[#cdbe91] text-xs px-4",
283
- buttonValues.isHovered && "text-lol-gold-100",
284
- buttonValues.isPressed && "text-[#463714]"
285
- ),
286
- children: "\u2715"
245
+ values.isDisabled && "from-lol-gray-700 via-lol-gray-700 to-lol-gray-700",
246
+ resolveClassname(borderProps?.className, values),
247
+ values.isDisabled && "bg-lol-gray-950"
248
+ ),
249
+ children: [
250
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
251
+ import_react_aria_components3.Input,
252
+ {
253
+ ...inputProps,
254
+ className: (values2) => (0, import_tailwind_merge3.twMerge)(
255
+ "bg-black w-full min-h-full py-2 px-3 outline-none pl-6",
256
+ "text-lol-gold-50 text-xs font-spiegel tracking-wide",
257
+ "focus-within:from-lol-gray-950 focus-within:to-lol-gray-900 focus-within:bg-gradient-to-b",
258
+ values2.isDisabled && "text-lol-gray-500",
259
+ resolveClassname(inputProps.className, values2)
260
+ ),
261
+ type: "text",
262
+ style: {
263
+ backgroundImage: "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAERElEQVR42uycz0tVQRTH54lamBakLUStQKhEW6V/gC2qhRgRqJURVJj9oBL7oWVBWFj0O/pd2EbJ3ARt2uW6tFUWZkhkiYQVSBZk6esc7rkgkXfm3rkzb957c+CL8Obcc+d+5vcPjESjUWZtdkuxCCwgC8gCsoAsIAvIArKArFlAASzVj/P46KuE+OgFuSvVAJKsqWWgclApaBkoDzSP0n+ARkCDoD5QD6gXNB1XNSiA5YP2graACjz85oAWgrBoN9JvH0GdoBugT4nWB2XThw2BmjhwZrMCenaIYmUnCqAq0ABoDyg9hHjpFAtjVsczIGyut0CPQDkK8ooxu+gdqfEGKAP0GFSvIc/19K6MeAGEpfkQVKGx5lfQO1PjAdB1UGUM+s9KerfRgLDT3OXDfxh0FrSWRqm5oCxQEWgdpb33EQ/fvUkloIifTft/ZtLZNLLkCILBIbsbNCVQaNUEa7FA7G+gFaAxFTNpmRp0WhDOE1AJ9RlTAv7T5FtMf3mGE8xW05oYluwOAb+roA2g7wHeMUEz8MsCvtsFa5s2QLtBaRwfnA81SK6nsP03UiwvS6M8GQEIn6kV6HN20gfKWpRiDXP8alWsDIIELKNFqJc1UxMJyzDWUYGFcZkJgFZz0j/QkiBs66bYXlZuAqBVnPQuRfs40wLgS00AtJyT3qNw3tYjmTctgHI56f0KAfVL5k0LoCxO+heFgMYk8xaz7Y6EtSCAeLPiHIX5XSSZNy2ARjnpxQoBlUjmTQugt5LzJBkrl8ybFkAvOenVivo2dxvEy/pMAMSbiyxlzslG2FZFsbXOwYIAesH4B3nnQJkh5jOTYnoZ5qnXBEA45e/g+ODezD1QJIQ8RigWb7+nQ8USJ2hfgSedkxyfGuZsdqVIwjlPsbxskvLETAGE1fm+gN8B5pxhZQVsVlgrGgV825mi83uZ0j0J+irgV0lrqBrB96WQ72vQZgH/cVCLSTNp1xDOPkFf7D9wAx6PdNpAa5hz/SWNlEe/Ydo78hXdY54P2qoKkMyxj2u3mb+zMVWGTfGSiKOuYx/X9jPnaCfWdhF0yMTVPI4geLr51ABIOOIdMXG74ydoPeiOAZBwQtlkGiC038y5moK1ScWm2S8fvm1hjWwqFpW4sV5EnfdkSE0YYy0BPfDxXCtNRYwDxKgG4UlnIVX5kQAxRujZQor1mTkHiO0+YpwixXSYFy0IPNTDvSI8NsJrwPkzFrQTNBMepO2UZ2z2a8C4/LhLsEQNL1qcCDLM67rrhx/6nCRrWKJ1FLNO8JkWKqTjpjQx1RalAeGmj2eOgc4kCyAXEi51RK/h4d2kN8kEyIWEM/lrAnC2MefmflIBciEdBF0JG06iAHIhNfxnsSoFJ5EAzVzRXwgLjs5hXqcdBv1hziZdp2ywRASE1hxWoIj95ybJ1QdZQBaQBWQBWUAWkDULyAKygPTYXwEGAArW2QJagQgvAAAAAElFTkSuQmCC')",
264
+ backgroundRepeat: "no-repeat",
265
+ backgroundPosition: "5px center",
266
+ backgroundSize: "16px"
287
267
  }
288
- )
289
- ]
290
- }
291
- )
292
- }
293
- );
268
+ }
269
+ ),
270
+ values.state.value.length > 0 && !values.isDisabled && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
271
+ import_react_aria_components3.Button,
272
+ {
273
+ className: (buttonValues) => (0, import_tailwind_merge3.twMerge)(
274
+ "font-black text-[#cdbe91] text-xs px-4 bg-black",
275
+ buttonValues.isHovered && "text-lol-gold-100",
276
+ buttonValues.isPressed && "text-[#463714]"
277
+ ),
278
+ children: "\u2715"
279
+ }
280
+ )
281
+ ]
282
+ }
283
+ )
284
+ ] }) });
294
285
  }
295
286
 
296
287
  // src/components/slider/slider.tsx
@@ -408,11 +399,18 @@ function Slider({
408
399
  }
409
400
  );
410
401
  }
411
- function SliderLabel({ children }) {
412
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex items-center justify-between font-spiegel text-xs text-lol-gray-300 font-normal tracking-wide", children: [
413
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_aria_components4.Label, { className: "", children }),
414
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_aria_components4.SliderOutput, { className: "", children: (sliderRenderProps) => sliderRenderProps.state.values.map((_, i) => sliderRenderProps.state.getThumbValueLabel(i)).join(" \u2013 ") })
415
- ] });
402
+ function SliderOutput(props) {
403
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
404
+ import_react_aria_components4.SliderOutput,
405
+ {
406
+ className: (values) => (0, import_tailwind_merge4.twMerge)(
407
+ "font-spiegel text-xs text-lol-gray-300 font-normal tracking-wide",
408
+ resolveClassname(props.className, values)
409
+ ),
410
+ children: (sliderRenderProps) => sliderRenderProps.state.values.map((_, i) => sliderRenderProps.state.getThumbValueLabel(i)).join(" \u2013 "),
411
+ ...props
412
+ }
413
+ );
416
414
  }
417
415
 
418
416
  // src/components/switch.tsx
@@ -635,44 +633,43 @@ var import_tailwind_merge8 = require("tailwind-merge");
635
633
  var import_jsx_runtime8 = require("react/jsx-runtime");
636
634
  function TextField({
637
635
  inputProps = {},
636
+ borderProps = {},
637
+ children,
638
638
  ...props
639
639
  }) {
640
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
641
- import_react_aria_components7.TextField,
642
- {
643
- ...props,
644
- className: (values) => (0, import_tailwind_merge8.twMerge)(
645
- "flex flex-col outline-none",
646
- borderGradient,
647
- "focus-within:from-lol-gold-300 focus-within:via-lol-gold-200 focus-within:to-lol-gold-50",
648
- props.isDisabled && "from-lol-gray-700 via-lol-gray-700 to-lol-gray-700",
649
- resolveClassname(props.className, values)
650
- ),
651
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
652
- "div",
653
- {
654
- className: (0, import_tailwind_merge8.twMerge)(
655
- "m-px bg-black flex flex-row focus-within:from-lol-gray-950 focus-within:to-lol-gray-900 focus-within:bg-gradient-to-b",
656
- props.isDisabled && "bg-lol-gray-950"
657
- ),
658
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
659
- import_react_aria_components7.Input,
660
- {
661
- ...inputProps,
662
- className: (values) => {
663
- return (0, import_tailwind_merge8.twMerge)(
664
- "bg-transparent grow py-2 px-3 text-lol-gold-50 text-xs outline-none font-spiegel tracking-wide",
665
- values.isDisabled && "text-lol-gray-500",
666
- resolveClassname(inputProps.className, values)
667
- );
668
- },
669
- type: "text"
640
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_aria_components7.TextField, { ...props, children: (values) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
641
+ typeof children === "function" ? children(values) : children,
642
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
643
+ "div",
644
+ {
645
+ ...borderProps,
646
+ className: (0, import_tailwind_merge8.twMerge)(
647
+ "outline-none p-px",
648
+ borderGradient,
649
+ "focus-within:from-lol-gold-300 focus-within:via-lol-gold-200 focus-within:to-lol-gold-50",
650
+ values.isDisabled && "from-lol-gray-700 via-lol-gray-700 to-lol-gray-700",
651
+ resolveClassname(borderProps?.className, values),
652
+ values.isDisabled && "bg-lol-gray-950"
653
+ ),
654
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
655
+ import_react_aria_components7.Input,
656
+ {
657
+ type: "text",
658
+ ...inputProps,
659
+ className: (values2) => {
660
+ return (0, import_tailwind_merge8.twMerge)(
661
+ "bg-black w-full min-h-full py-2 px-3 outline-none",
662
+ "text-lol-gold-50 text-xs font-spiegel tracking-wide",
663
+ "focus-within:from-lol-gray-950 focus-within:to-lol-gray-900 focus-within:bg-gradient-to-b",
664
+ values2.isDisabled && "text-lol-gray-500",
665
+ resolveClassname(inputProps.className, values2)
666
+ );
670
667
  }
671
- )
672
- }
673
- )
674
- }
675
- );
668
+ }
669
+ )
670
+ }
671
+ )
672
+ ] }) });
676
673
  }
677
674
 
678
675
  // src/components/radio-group.tsx
@@ -722,7 +719,7 @@ function Radio({ ...props }) {
722
719
  var import_react_aria_components9 = require("react-aria-components");
723
720
  var import_tailwind_merge10 = require("tailwind-merge");
724
721
  var import_jsx_runtime10 = require("react/jsx-runtime");
725
- function Label3({ ...props }) {
722
+ function Label2({ ...props }) {
726
723
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
727
724
  import_react_aria_components9.Label,
728
725
  {
@@ -742,46 +739,59 @@ var import_jsx_runtime11 = require("react/jsx-runtime");
742
739
  function NumberField({
743
740
  inputProps = {},
744
741
  groupProps = {},
742
+ children,
745
743
  ...props
746
744
  }) {
747
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_aria_components10.NumberField, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
748
- import_react_aria_components10.Group,
749
- {
750
- ...groupProps,
751
- className: (values) => {
752
- const finalClassName = resolveClassname(groupProps.className, values);
753
- return (0, import_tailwind_merge11.twMerge)(
754
- "grid grid-cols-[auto_1fr_auto] outline-none gap-px p-px",
755
- borderGradient,
756
- "focus-within:from-lol-gold-300 focus-within:via-lol-gold-200 focus-within:to-lol-gold-50",
757
- props.isDisabled && "from-lol-gray-700 via-lol-gray-700 to-lol-gray-700",
758
- finalClassName
759
- );
760
- },
761
- children: [
762
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_aria_components10.Button, { className: "text-lol-gray-50 px-2.5 bg-black", slot: "decrement", children: "-" }),
763
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
764
- import_react_aria_components10.Input,
765
- {
766
- ...inputProps,
767
- className: (values) => {
768
- const finalClassName = resolveClassname(
769
- inputProps.className,
770
- values
771
- );
772
- return (0, import_tailwind_merge11.twMerge)(
773
- "bg-black w-full py-2 px-3 text-lol-gold-50 text-xs outline-none font-spiegel",
774
- values.isDisabled && "text-lol-gray-500 bg-lol-gray-950",
775
- values.isFocused && "from-lol-gray-950 to-lol-gray-900 bg-gradient-to-b",
776
- finalClassName
777
- );
745
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_aria_components10.NumberField, { ...props, children: (values) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
746
+ typeof children === "function" ? children(values) : children,
747
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
748
+ import_react_aria_components10.Group,
749
+ {
750
+ ...groupProps,
751
+ className: (values2) => {
752
+ return (0, import_tailwind_merge11.twMerge)(
753
+ "grid grid-cols-[auto_1fr_auto] outline-none gap-px p-px",
754
+ borderGradient,
755
+ "focus-within:from-lol-gold-300 focus-within:via-lol-gold-200 focus-within:to-lol-gold-50",
756
+ props.isDisabled && "from-lol-gray-700 via-lol-gray-700 to-lol-gray-700",
757
+ resolveClassname(groupProps.className, values2)
758
+ );
759
+ },
760
+ children: [
761
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
762
+ import_react_aria_components10.Button,
763
+ {
764
+ className: "text-lol-gray-50 px-2.5 bg-black",
765
+ slot: "decrement",
766
+ children: "-"
778
767
  }
779
- }
780
- ),
781
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_aria_components10.Button, { className: "text-lol-gray-50 px-2.5 bg-black", slot: "increment", children: "+" })
782
- ]
783
- }
784
- ) });
768
+ ),
769
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
770
+ import_react_aria_components10.Input,
771
+ {
772
+ ...inputProps,
773
+ className: (values2) => {
774
+ return (0, import_tailwind_merge11.twMerge)(
775
+ "bg-black w-full py-2 px-3 text-lol-gold-50 text-xs outline-none font-spiegel",
776
+ values2.isDisabled && "text-lol-gray-500 bg-lol-gray-950",
777
+ values2.isFocused && "from-lol-gray-950 to-lol-gray-900 bg-gradient-to-b",
778
+ resolveClassname(inputProps.className, values2)
779
+ );
780
+ }
781
+ }
782
+ ),
783
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
784
+ import_react_aria_components10.Button,
785
+ {
786
+ className: "text-lol-gray-50 px-2.5 bg-black",
787
+ slot: "increment",
788
+ children: "+"
789
+ }
790
+ )
791
+ ]
792
+ }
793
+ )
794
+ ] }) });
785
795
  }
786
796
 
787
797
  // src/components/spinner/spinner.tsx
@@ -1007,43 +1017,42 @@ var import_tailwind_merge16 = require("tailwind-merge");
1007
1017
  var import_jsx_runtime16 = require("react/jsx-runtime");
1008
1018
  function TextArea({
1009
1019
  textAreaProps = {},
1020
+ borderProps = {},
1021
+ children,
1010
1022
  ...props
1011
1023
  }) {
1012
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1013
- import_react_aria_components14.TextField,
1014
- {
1015
- ...props,
1016
- className: (values) => (0, import_tailwind_merge16.twMerge)(
1017
- "flex flex-col outline-none",
1018
- borderGradient,
1019
- "focus-within:from-lol-gold-300 focus-within:via-lol-gold-200 focus-within:to-lol-gold-50",
1020
- props.isDisabled && "from-lol-gray-700 via-lol-gray-700 to-lol-gray-700",
1021
- resolveClassname(props.className, values)
1022
- ),
1023
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1024
- "div",
1025
- {
1026
- className: (0, import_tailwind_merge16.twMerge)(
1027
- "m-px bg-black flex flex-row focus-within:from-lol-gray-950 focus-within:to-lol-gray-900 focus-within:bg-gradient-to-b",
1028
- props.isDisabled && "bg-lol-gray-950"
1029
- ),
1030
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1031
- import_react_aria_components14.TextArea,
1032
- {
1033
- ...textAreaProps,
1034
- className: (values) => {
1035
- return (0, import_tailwind_merge16.twMerge)(
1036
- "bg-transparent grow py-2 px-3 text-lol-gold-50 text-xs outline-none font-spiegel tracking-wide",
1037
- values.isDisabled && "text-lol-gray-500",
1038
- resolveClassname(textAreaProps.className, values)
1039
- );
1040
- }
1024
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_aria_components14.TextField, { ...props, children: (values) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
1025
+ typeof children === "function" ? children(values) : children,
1026
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1027
+ "div",
1028
+ {
1029
+ ...borderProps,
1030
+ className: (0, import_tailwind_merge16.twMerge)(
1031
+ "outline-none p-px flex",
1032
+ borderGradient,
1033
+ "focus-within:from-lol-gold-300 focus-within:via-lol-gold-200 focus-within:to-lol-gold-50",
1034
+ values.isDisabled && "from-lol-gray-700 via-lol-gray-700 to-lol-gray-700",
1035
+ resolveClassname(borderProps?.className, values),
1036
+ values.isDisabled && "bg-lol-gray-950"
1037
+ ),
1038
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1039
+ import_react_aria_components14.TextArea,
1040
+ {
1041
+ ...textAreaProps,
1042
+ className: (values2) => {
1043
+ return (0, import_tailwind_merge16.twMerge)(
1044
+ "bg-black w-full min-h-full py-2 px-3 outline-none",
1045
+ "text-lol-gold-50 text-xs font-spiegel tracking-wide",
1046
+ "focus-within:from-lol-gray-950 focus-within:to-lol-gray-900 focus-within:bg-gradient-to-b",
1047
+ values2.isDisabled && "text-lol-gray-500",
1048
+ resolveClassname(textAreaProps.className, values2)
1049
+ );
1041
1050
  }
1042
- )
1043
- }
1044
- )
1045
- }
1046
- );
1051
+ }
1052
+ )
1053
+ }
1054
+ )
1055
+ ] }) });
1047
1056
  }
1048
1057
 
1049
1058
  // src/components/tooltip.tsx
@@ -1158,7 +1167,7 @@ function borderInverted(r) {
1158
1167
  SearchField,
1159
1168
  Select,
1160
1169
  Slider,
1161
- SliderLabel,
1170
+ SliderOutput,
1162
1171
  Spinner,
1163
1172
  Switch,
1164
1173
  Tab,