@spies-ui/react 1.0.9 → 1.0.10

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.d.mts CHANGED
@@ -1334,6 +1334,10 @@ interface TextInputProps extends Omit<ComponentProps<typeof Input>, 'size'> {
1334
1334
  hint?: string;
1335
1335
  required?: boolean;
1336
1336
  size?: 'default' | 'small';
1337
+ labelProps?: Omit<TextProps, 'children'>;
1338
+ errorProps?: Omit<TextProps, 'children'>;
1339
+ hintProps?: Omit<TextProps, 'children'>;
1340
+ requiredAsteriskProps?: Omit<TextProps, 'children'>;
1337
1341
  }
1338
1342
  declare const TextInput: react.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
1339
1343
 
@@ -1558,11 +1562,16 @@ interface TextAreaProps extends ComponentProps<typeof TextAreaInput> {
1558
1562
  error?: string;
1559
1563
  hint?: string;
1560
1564
  required?: boolean;
1565
+ labelProps?: Omit<TextProps, 'children'>;
1566
+ errorProps?: Omit<TextProps, 'children'>;
1567
+ hintProps?: Omit<TextProps, 'children'>;
1568
+ requiredAsteriskProps?: Omit<TextProps, 'children'>;
1561
1569
  }
1562
1570
  declare const TextArea: react.ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
1563
1571
 
1564
1572
  declare const CheckboxContainer: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<Checkbox$1.CheckboxProps & react.RefAttributes<HTMLButtonElement>>, {
1565
1573
  errored?: boolean | "true" | undefined;
1574
+ radius?: "xs" | "sm" | "md" | "lg" | "px" | "full" | undefined;
1566
1575
  }, {}, _stitches_react_types_css_util.CSS<{}, {
1567
1576
  colors: {
1568
1577
  black: string;
@@ -1782,8 +1791,12 @@ interface CheckboxProps extends ComponentProps<typeof CheckboxContainer> {
1782
1791
  error?: string;
1783
1792
  hint?: string;
1784
1793
  required?: boolean;
1794
+ labelProps?: Omit<ComponentProps<typeof Text>, 'children'>;
1795
+ errorProps?: Omit<ComponentProps<typeof Text>, 'children'>;
1796
+ hintProps?: Omit<ComponentProps<typeof Text>, 'children'>;
1797
+ requiredAsteriskProps?: Omit<ComponentProps<typeof Text>, 'children'>;
1785
1798
  }
1786
- declare function Checkbox({ label, error, hint, required, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
1799
+ declare function Checkbox({ label, error, hint, required, labelProps, errorProps, hintProps, requiredAsteriskProps, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
1787
1800
  declare namespace Checkbox {
1788
1801
  var displayName: string;
1789
1802
  }
package/dist/index.d.ts CHANGED
@@ -1334,6 +1334,10 @@ interface TextInputProps extends Omit<ComponentProps<typeof Input>, 'size'> {
1334
1334
  hint?: string;
1335
1335
  required?: boolean;
1336
1336
  size?: 'default' | 'small';
1337
+ labelProps?: Omit<TextProps, 'children'>;
1338
+ errorProps?: Omit<TextProps, 'children'>;
1339
+ hintProps?: Omit<TextProps, 'children'>;
1340
+ requiredAsteriskProps?: Omit<TextProps, 'children'>;
1337
1341
  }
1338
1342
  declare const TextInput: react.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
1339
1343
 
@@ -1558,11 +1562,16 @@ interface TextAreaProps extends ComponentProps<typeof TextAreaInput> {
1558
1562
  error?: string;
1559
1563
  hint?: string;
1560
1564
  required?: boolean;
1565
+ labelProps?: Omit<TextProps, 'children'>;
1566
+ errorProps?: Omit<TextProps, 'children'>;
1567
+ hintProps?: Omit<TextProps, 'children'>;
1568
+ requiredAsteriskProps?: Omit<TextProps, 'children'>;
1561
1569
  }
1562
1570
  declare const TextArea: react.ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
1563
1571
 
1564
1572
  declare const CheckboxContainer: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<Checkbox$1.CheckboxProps & react.RefAttributes<HTMLButtonElement>>, {
1565
1573
  errored?: boolean | "true" | undefined;
1574
+ radius?: "xs" | "sm" | "md" | "lg" | "px" | "full" | undefined;
1566
1575
  }, {}, _stitches_react_types_css_util.CSS<{}, {
1567
1576
  colors: {
1568
1577
  black: string;
@@ -1782,8 +1791,12 @@ interface CheckboxProps extends ComponentProps<typeof CheckboxContainer> {
1782
1791
  error?: string;
1783
1792
  hint?: string;
1784
1793
  required?: boolean;
1794
+ labelProps?: Omit<ComponentProps<typeof Text>, 'children'>;
1795
+ errorProps?: Omit<ComponentProps<typeof Text>, 'children'>;
1796
+ hintProps?: Omit<ComponentProps<typeof Text>, 'children'>;
1797
+ requiredAsteriskProps?: Omit<ComponentProps<typeof Text>, 'children'>;
1785
1798
  }
1786
- declare function Checkbox({ label, error, hint, required, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
1799
+ declare function Checkbox({ label, error, hint, required, labelProps, errorProps, hintProps, requiredAsteriskProps, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
1787
1800
  declare namespace Checkbox {
1788
1801
  var displayName: string;
1789
1802
  }
package/dist/index.js CHANGED
@@ -391,7 +391,8 @@ var AvatarContainer = styled(Avatar.Root, {
391
391
  var AvatarImage = styled(Avatar.Image, {
392
392
  width: "100%",
393
393
  height: "100%",
394
- objectFix: "cover",
394
+ objectFit: "cover",
395
+ objectPosition: "center",
395
396
  borderRadius: "inherit"
396
397
  });
397
398
  var AvatarFallback = styled(Avatar.Fallback, {
@@ -582,17 +583,21 @@ function InputBox({
582
583
  error,
583
584
  hint,
584
585
  required,
585
- children
586
+ children,
587
+ labelProps,
588
+ errorProps,
589
+ hintProps,
590
+ requiredAsteriskProps
586
591
  }) {
587
592
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(InputContainer, { children: [
588
593
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { children: [
589
- !!label && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { as: "span", size: "sm", children: label }),
590
- required && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { as: "span", size: "sm", variant: "danger", children: "\xA0*" })
594
+ !!label && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, __spreadProps(__spreadValues({ as: "span", size: "sm" }, labelProps), { children: label })),
595
+ required && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, __spreadProps(__spreadValues({ as: "span", size: "sm", variant: "danger" }, requiredAsteriskProps), { children: "\xA0*" }))
591
596
  ] }),
592
597
  children,
593
598
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(TextBox, { children: [
594
- !!error && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { size: "xs", variant: "danger", children: error }),
595
- !error && hint && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { size: "xs", variant: "gray200", children: hint })
599
+ !!error && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, __spreadProps(__spreadValues({ size: "xs", variant: "danger" }, errorProps), { children: error })),
600
+ !error && hint && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, __spreadProps(__spreadValues({ size: "xs", variant: "gray200" }, hintProps), { children: hint }))
596
601
  ] })
597
602
  ] });
598
603
  }
@@ -602,8 +607,8 @@ InputBox.displayName = "InputBox";
602
607
  var import_jsx_runtime3 = require("react/jsx-runtime");
603
608
  var TextInput = (0, import_react2.forwardRef)(
604
609
  (_a, ref) => {
605
- var _b = _a, { label, prefix, error, hint, required, size } = _b, props = __objRest(_b, ["label", "prefix", "error", "hint", "required", "size"]);
606
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(InputBox, { label, error, hint, required, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(TextInputContainer, { errored: !!error, size, children: [
610
+ var _b = _a, { label, prefix, error, hint, required, size, labelProps, errorProps, hintProps, requiredAsteriskProps } = _b, props = __objRest(_b, ["label", "prefix", "error", "hint", "required", "size", "labelProps", "errorProps", "hintProps", "requiredAsteriskProps"]);
611
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(InputBox, { label, error, hint, required, labelProps, errorProps, hintProps, requiredAsteriskProps, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(TextInputContainer, { errored: !!error, size, children: [
607
612
  !!prefix && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Prefix, { children: prefix }),
608
613
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Input, __spreadValues({ ref }, props))
609
614
  ] }) });
@@ -653,8 +658,8 @@ var TextAreaInput = styled("textarea", {
653
658
  // src/components/TextArea/index.tsx
654
659
  var import_jsx_runtime4 = require("react/jsx-runtime");
655
660
  var TextArea = (0, import_react3.forwardRef)((_a, ref) => {
656
- var _b = _a, { label, error, hint, required } = _b, props = __objRest(_b, ["label", "error", "hint", "required"]);
657
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(InputBox, { label, error, hint, required, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TextAreaInput, __spreadProps(__spreadValues({ ref }, props), { errored: !!error })) });
661
+ var _b = _a, { label, error, hint, required, labelProps, errorProps, hintProps, requiredAsteriskProps } = _b, props = __objRest(_b, ["label", "error", "hint", "required", "labelProps", "errorProps", "hintProps", "requiredAsteriskProps"]);
662
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(InputBox, { label, error, hint, required, labelProps, errorProps, hintProps, requiredAsteriskProps, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TextAreaInput, __spreadProps(__spreadValues({ ref }, props), { errored: !!error })) });
658
663
  });
659
664
  TextArea.displayName = "TextArea";
660
665
 
@@ -671,12 +676,38 @@ var CheckboxBox = styled("div", {
671
676
  opacity: 0.5
672
677
  }
673
678
  });
679
+ var slideIn = keyframes({
680
+ from: {
681
+ transform: "translateX(-100%)"
682
+ },
683
+ to: {
684
+ transform: "translateX(0)"
685
+ }
686
+ });
687
+ var slideOut = keyframes({
688
+ from: {
689
+ transform: "translateX(0)"
690
+ },
691
+ to: {
692
+ transform: "translateX(100%)"
693
+ }
694
+ });
695
+ var CheckboxIndicator = styled(Checkbox.Indicator, {
696
+ color: "$smokedWhite",
697
+ width: "$4",
698
+ height: "$4",
699
+ '&[data-state="checked"]': {
700
+ animation: `${slideIn} 100ms ease-out`
701
+ },
702
+ '&[data-state="unchecked"]': {
703
+ animation: `${slideOut} 100ms ease-out`
704
+ }
705
+ });
674
706
  var CheckboxContainer = styled(Checkbox.Root, {
675
707
  all: "unset",
676
708
  width: "$6",
677
709
  height: "$6",
678
710
  backgroundColor: "$gray900",
679
- borderRadius: "$xs",
680
711
  lineHeight: 0,
681
712
  cursor: "pointer",
682
713
  overflow: "hidden",
@@ -700,37 +731,28 @@ var CheckboxContainer = styled(Checkbox.Root, {
700
731
  true: {
701
732
  borderColor: "$danger"
702
733
  }
734
+ },
735
+ radius: {
736
+ px: { borderRadius: "$px" },
737
+ xs: { borderRadius: "$xs" },
738
+ sm: { borderRadius: "$sm" },
739
+ md: {
740
+ borderRadius: "$md",
741
+ [`& ${CheckboxIndicator}`]: { width: "$3", height: "$3" }
742
+ },
743
+ lg: {
744
+ borderRadius: "$lg",
745
+ [`& ${CheckboxIndicator}`]: { width: "$3", height: "$3" }
746
+ },
747
+ full: {
748
+ borderRadius: "$full",
749
+ [`& ${CheckboxIndicator}`]: { width: "$3", height: "$3" }
750
+ }
703
751
  }
704
752
  },
705
753
  defaultVariants: {
706
- errored: false
707
- }
708
- });
709
- var slideIn = keyframes({
710
- from: {
711
- transform: "translateX(-100%)"
712
- },
713
- to: {
714
- transform: "translateX(0)"
715
- }
716
- });
717
- var slideOut = keyframes({
718
- from: {
719
- transform: "translateX(0)"
720
- },
721
- to: {
722
- transform: "translateX(100%)"
723
- }
724
- });
725
- var CheckboxIndicator = styled(Checkbox.Indicator, {
726
- color: "$smokedWhite",
727
- width: "$4",
728
- height: "$4",
729
- '&[data-state="checked"]': {
730
- animation: `${slideIn} 100ms ease-out`
731
- },
732
- '&[data-state="unchecked"]': {
733
- animation: `${slideOut} 100ms ease-out`
754
+ errored: false,
755
+ radius: "md"
734
756
  }
735
757
  });
736
758
 
@@ -741,18 +763,26 @@ function Checkbox2(_a) {
741
763
  label,
742
764
  error,
743
765
  hint,
744
- required
766
+ required,
767
+ labelProps,
768
+ errorProps,
769
+ hintProps,
770
+ requiredAsteriskProps
745
771
  } = _b, props = __objRest(_b, [
746
772
  "label",
747
773
  "error",
748
774
  "hint",
749
- "required"
775
+ "required",
776
+ "labelProps",
777
+ "errorProps",
778
+ "hintProps",
779
+ "requiredAsteriskProps"
750
780
  ]);
751
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(InputBox, { error, hint, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(CheckboxBox, { children: [
781
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(InputBox, { error, hint, errorProps, hintProps, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(CheckboxBox, { children: [
752
782
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CheckboxContainer, __spreadProps(__spreadValues({}, props), { errored: !!error, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CheckboxIndicator, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.Check, { weight: "bold" }) }) })),
753
783
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
754
- !!label && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { as: "span", size: "sm", children: label }),
755
- required && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { as: "span", size: "sm", variant: "danger", children: "*" })
784
+ !!label && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, __spreadProps(__spreadValues({ as: "span", size: "sm" }, labelProps), { children: label })),
785
+ required && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, __spreadProps(__spreadValues({ as: "span", size: "sm", variant: "danger" }, requiredAsteriskProps), { children: "*" }))
756
786
  ] })
757
787
  ] }) });
758
788
  }
package/dist/index.mjs CHANGED
@@ -362,7 +362,8 @@ var AvatarContainer = styled(Avatar.Root, {
362
362
  var AvatarImage = styled(Avatar.Image, {
363
363
  width: "100%",
364
364
  height: "100%",
365
- objectFix: "cover",
365
+ objectFit: "cover",
366
+ objectPosition: "center",
366
367
  borderRadius: "inherit"
367
368
  });
368
369
  var AvatarFallback = styled(Avatar.Fallback, {
@@ -553,17 +554,21 @@ function InputBox({
553
554
  error,
554
555
  hint,
555
556
  required,
556
- children
557
+ children,
558
+ labelProps,
559
+ errorProps,
560
+ hintProps,
561
+ requiredAsteriskProps
557
562
  }) {
558
563
  return /* @__PURE__ */ jsxs2(InputContainer, { children: [
559
564
  /* @__PURE__ */ jsxs2("div", { children: [
560
- !!label && /* @__PURE__ */ jsx2(Text, { as: "span", size: "sm", children: label }),
561
- required && /* @__PURE__ */ jsx2(Text, { as: "span", size: "sm", variant: "danger", children: "\xA0*" })
565
+ !!label && /* @__PURE__ */ jsx2(Text, __spreadProps(__spreadValues({ as: "span", size: "sm" }, labelProps), { children: label })),
566
+ required && /* @__PURE__ */ jsx2(Text, __spreadProps(__spreadValues({ as: "span", size: "sm", variant: "danger" }, requiredAsteriskProps), { children: "\xA0*" }))
562
567
  ] }),
563
568
  children,
564
569
  /* @__PURE__ */ jsxs2(TextBox, { children: [
565
- !!error && /* @__PURE__ */ jsx2(Text, { size: "xs", variant: "danger", children: error }),
566
- !error && hint && /* @__PURE__ */ jsx2(Text, { size: "xs", variant: "gray200", children: hint })
570
+ !!error && /* @__PURE__ */ jsx2(Text, __spreadProps(__spreadValues({ size: "xs", variant: "danger" }, errorProps), { children: error })),
571
+ !error && hint && /* @__PURE__ */ jsx2(Text, __spreadProps(__spreadValues({ size: "xs", variant: "gray200" }, hintProps), { children: hint }))
567
572
  ] })
568
573
  ] });
569
574
  }
@@ -573,8 +578,8 @@ InputBox.displayName = "InputBox";
573
578
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
574
579
  var TextInput = forwardRef(
575
580
  (_a, ref) => {
576
- var _b = _a, { label, prefix, error, hint, required, size } = _b, props = __objRest(_b, ["label", "prefix", "error", "hint", "required", "size"]);
577
- return /* @__PURE__ */ jsx3(InputBox, { label, error, hint, required, children: /* @__PURE__ */ jsxs3(TextInputContainer, { errored: !!error, size, children: [
581
+ var _b = _a, { label, prefix, error, hint, required, size, labelProps, errorProps, hintProps, requiredAsteriskProps } = _b, props = __objRest(_b, ["label", "prefix", "error", "hint", "required", "size", "labelProps", "errorProps", "hintProps", "requiredAsteriskProps"]);
582
+ return /* @__PURE__ */ jsx3(InputBox, { label, error, hint, required, labelProps, errorProps, hintProps, requiredAsteriskProps, children: /* @__PURE__ */ jsxs3(TextInputContainer, { errored: !!error, size, children: [
578
583
  !!prefix && /* @__PURE__ */ jsx3(Prefix, { children: prefix }),
579
584
  /* @__PURE__ */ jsx3(Input, __spreadValues({ ref }, props))
580
585
  ] }) });
@@ -624,8 +629,8 @@ var TextAreaInput = styled("textarea", {
624
629
  // src/components/TextArea/index.tsx
625
630
  import { jsx as jsx4 } from "react/jsx-runtime";
626
631
  var TextArea = forwardRef2((_a, ref) => {
627
- var _b = _a, { label, error, hint, required } = _b, props = __objRest(_b, ["label", "error", "hint", "required"]);
628
- return /* @__PURE__ */ jsx4(InputBox, { label, error, hint, required, children: /* @__PURE__ */ jsx4(TextAreaInput, __spreadProps(__spreadValues({ ref }, props), { errored: !!error })) });
632
+ var _b = _a, { label, error, hint, required, labelProps, errorProps, hintProps, requiredAsteriskProps } = _b, props = __objRest(_b, ["label", "error", "hint", "required", "labelProps", "errorProps", "hintProps", "requiredAsteriskProps"]);
633
+ return /* @__PURE__ */ jsx4(InputBox, { label, error, hint, required, labelProps, errorProps, hintProps, requiredAsteriskProps, children: /* @__PURE__ */ jsx4(TextAreaInput, __spreadProps(__spreadValues({ ref }, props), { errored: !!error })) });
629
634
  });
630
635
  TextArea.displayName = "TextArea";
631
636
 
@@ -642,12 +647,38 @@ var CheckboxBox = styled("div", {
642
647
  opacity: 0.5
643
648
  }
644
649
  });
650
+ var slideIn = keyframes({
651
+ from: {
652
+ transform: "translateX(-100%)"
653
+ },
654
+ to: {
655
+ transform: "translateX(0)"
656
+ }
657
+ });
658
+ var slideOut = keyframes({
659
+ from: {
660
+ transform: "translateX(0)"
661
+ },
662
+ to: {
663
+ transform: "translateX(100%)"
664
+ }
665
+ });
666
+ var CheckboxIndicator = styled(Checkbox.Indicator, {
667
+ color: "$smokedWhite",
668
+ width: "$4",
669
+ height: "$4",
670
+ '&[data-state="checked"]': {
671
+ animation: `${slideIn} 100ms ease-out`
672
+ },
673
+ '&[data-state="unchecked"]': {
674
+ animation: `${slideOut} 100ms ease-out`
675
+ }
676
+ });
645
677
  var CheckboxContainer = styled(Checkbox.Root, {
646
678
  all: "unset",
647
679
  width: "$6",
648
680
  height: "$6",
649
681
  backgroundColor: "$gray900",
650
- borderRadius: "$xs",
651
682
  lineHeight: 0,
652
683
  cursor: "pointer",
653
684
  overflow: "hidden",
@@ -671,37 +702,28 @@ var CheckboxContainer = styled(Checkbox.Root, {
671
702
  true: {
672
703
  borderColor: "$danger"
673
704
  }
705
+ },
706
+ radius: {
707
+ px: { borderRadius: "$px" },
708
+ xs: { borderRadius: "$xs" },
709
+ sm: { borderRadius: "$sm" },
710
+ md: {
711
+ borderRadius: "$md",
712
+ [`& ${CheckboxIndicator}`]: { width: "$3", height: "$3" }
713
+ },
714
+ lg: {
715
+ borderRadius: "$lg",
716
+ [`& ${CheckboxIndicator}`]: { width: "$3", height: "$3" }
717
+ },
718
+ full: {
719
+ borderRadius: "$full",
720
+ [`& ${CheckboxIndicator}`]: { width: "$3", height: "$3" }
721
+ }
674
722
  }
675
723
  },
676
724
  defaultVariants: {
677
- errored: false
678
- }
679
- });
680
- var slideIn = keyframes({
681
- from: {
682
- transform: "translateX(-100%)"
683
- },
684
- to: {
685
- transform: "translateX(0)"
686
- }
687
- });
688
- var slideOut = keyframes({
689
- from: {
690
- transform: "translateX(0)"
691
- },
692
- to: {
693
- transform: "translateX(100%)"
694
- }
695
- });
696
- var CheckboxIndicator = styled(Checkbox.Indicator, {
697
- color: "$smokedWhite",
698
- width: "$4",
699
- height: "$4",
700
- '&[data-state="checked"]': {
701
- animation: `${slideIn} 100ms ease-out`
702
- },
703
- '&[data-state="unchecked"]': {
704
- animation: `${slideOut} 100ms ease-out`
725
+ errored: false,
726
+ radius: "md"
705
727
  }
706
728
  });
707
729
 
@@ -712,18 +734,26 @@ function Checkbox2(_a) {
712
734
  label,
713
735
  error,
714
736
  hint,
715
- required
737
+ required,
738
+ labelProps,
739
+ errorProps,
740
+ hintProps,
741
+ requiredAsteriskProps
716
742
  } = _b, props = __objRest(_b, [
717
743
  "label",
718
744
  "error",
719
745
  "hint",
720
- "required"
746
+ "required",
747
+ "labelProps",
748
+ "errorProps",
749
+ "hintProps",
750
+ "requiredAsteriskProps"
721
751
  ]);
722
- return /* @__PURE__ */ jsx5(InputBox, { error, hint, children: /* @__PURE__ */ jsxs4(CheckboxBox, { children: [
752
+ return /* @__PURE__ */ jsx5(InputBox, { error, hint, errorProps, hintProps, children: /* @__PURE__ */ jsxs4(CheckboxBox, { children: [
723
753
  /* @__PURE__ */ jsx5(CheckboxContainer, __spreadProps(__spreadValues({}, props), { errored: !!error, children: /* @__PURE__ */ jsx5(CheckboxIndicator, { asChild: true, children: /* @__PURE__ */ jsx5(Check, { weight: "bold" }) }) })),
724
754
  /* @__PURE__ */ jsxs4(Fragment, { children: [
725
- !!label && /* @__PURE__ */ jsx5(Text, { as: "span", size: "sm", children: label }),
726
- required && /* @__PURE__ */ jsx5(Text, { as: "span", size: "sm", variant: "danger", children: "*" })
755
+ !!label && /* @__PURE__ */ jsx5(Text, __spreadProps(__spreadValues({ as: "span", size: "sm" }, labelProps), { children: label })),
756
+ required && /* @__PURE__ */ jsx5(Text, __spreadProps(__spreadValues({ as: "span", size: "sm", variant: "danger" }, requiredAsteriskProps), { children: "*" }))
727
757
  ] })
728
758
  ] }) });
729
759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spies-ui/react",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.js",