@moderneinc/neo-styled-components 5.0.0-next.e7f738 → 5.0.0
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/Checkbox/Checkbox.d.ts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.esm.js +114 -87
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +113 -86
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -602,11 +602,11 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
602
602
|
*/
|
|
603
603
|
|
|
604
604
|
|
|
605
|
-
const __iconNode$
|
|
605
|
+
const __iconNode$p = [
|
|
606
606
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
607
607
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
608
608
|
];
|
|
609
|
-
const ArrowDown = createLucideIcon("arrow-down", __iconNode$
|
|
609
|
+
const ArrowDown = createLucideIcon("arrow-down", __iconNode$p);
|
|
610
610
|
|
|
611
611
|
/**
|
|
612
612
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -616,11 +616,11 @@ const ArrowDown = createLucideIcon("arrow-down", __iconNode$m);
|
|
|
616
616
|
*/
|
|
617
617
|
|
|
618
618
|
|
|
619
|
-
const __iconNode$
|
|
619
|
+
const __iconNode$o = [
|
|
620
620
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
621
621
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
622
622
|
];
|
|
623
|
-
const ArrowUp = createLucideIcon("arrow-up", __iconNode$
|
|
623
|
+
const ArrowUp = createLucideIcon("arrow-up", __iconNode$o);
|
|
624
624
|
|
|
625
625
|
/**
|
|
626
626
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -630,7 +630,7 @@ const ArrowUp = createLucideIcon("arrow-up", __iconNode$l);
|
|
|
630
630
|
*/
|
|
631
631
|
|
|
632
632
|
|
|
633
|
-
const __iconNode$
|
|
633
|
+
const __iconNode$n = [
|
|
634
634
|
[
|
|
635
635
|
"path",
|
|
636
636
|
{
|
|
@@ -641,7 +641,7 @@ const __iconNode$k = [
|
|
|
641
641
|
["line", { x1: "12", x2: "12", y1: "16", y2: "12", key: "1y1yb1" }],
|
|
642
642
|
["line", { x1: "12", x2: "12.01", y1: "8", y2: "8", key: "110wyk" }]
|
|
643
643
|
];
|
|
644
|
-
const BadgeInfo = createLucideIcon("badge-info", __iconNode$
|
|
644
|
+
const BadgeInfo = createLucideIcon("badge-info", __iconNode$n);
|
|
645
645
|
|
|
646
646
|
/**
|
|
647
647
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -651,7 +651,7 @@ const BadgeInfo = createLucideIcon("badge-info", __iconNode$k);
|
|
|
651
651
|
*/
|
|
652
652
|
|
|
653
653
|
|
|
654
|
-
const __iconNode$
|
|
654
|
+
const __iconNode$m = [
|
|
655
655
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
656
656
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
657
657
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
@@ -663,7 +663,7 @@ const __iconNode$j = [
|
|
|
663
663
|
["path", { d: "M12 18h.01", key: "mhygvu" }],
|
|
664
664
|
["path", { d: "M16 18h.01", key: "kzsmim" }]
|
|
665
665
|
];
|
|
666
|
-
const CalendarDays = createLucideIcon("calendar-days", __iconNode$
|
|
666
|
+
const CalendarDays = createLucideIcon("calendar-days", __iconNode$m);
|
|
667
667
|
|
|
668
668
|
/**
|
|
669
669
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -673,8 +673,8 @@ const CalendarDays = createLucideIcon("calendar-days", __iconNode$j);
|
|
|
673
673
|
*/
|
|
674
674
|
|
|
675
675
|
|
|
676
|
-
const __iconNode$
|
|
677
|
-
const ChevronDown = createLucideIcon("chevron-down", __iconNode$
|
|
676
|
+
const __iconNode$l = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
677
|
+
const ChevronDown = createLucideIcon("chevron-down", __iconNode$l);
|
|
678
678
|
|
|
679
679
|
/**
|
|
680
680
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -684,8 +684,8 @@ const ChevronDown = createLucideIcon("chevron-down", __iconNode$i);
|
|
|
684
684
|
*/
|
|
685
685
|
|
|
686
686
|
|
|
687
|
-
const __iconNode$
|
|
688
|
-
const ChevronLeft = createLucideIcon("chevron-left", __iconNode$
|
|
687
|
+
const __iconNode$k = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
|
|
688
|
+
const ChevronLeft = createLucideIcon("chevron-left", __iconNode$k);
|
|
689
689
|
|
|
690
690
|
/**
|
|
691
691
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -695,8 +695,8 @@ const ChevronLeft = createLucideIcon("chevron-left", __iconNode$h);
|
|
|
695
695
|
*/
|
|
696
696
|
|
|
697
697
|
|
|
698
|
-
const __iconNode$
|
|
699
|
-
const ChevronRight = createLucideIcon("chevron-right", __iconNode$
|
|
698
|
+
const __iconNode$j = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
699
|
+
const ChevronRight = createLucideIcon("chevron-right", __iconNode$j);
|
|
700
700
|
|
|
701
701
|
/**
|
|
702
702
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -706,8 +706,8 @@ const ChevronRight = createLucideIcon("chevron-right", __iconNode$g);
|
|
|
706
706
|
*/
|
|
707
707
|
|
|
708
708
|
|
|
709
|
-
const __iconNode$
|
|
710
|
-
const ChevronUp = createLucideIcon("chevron-up", __iconNode$
|
|
709
|
+
const __iconNode$i = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
|
|
710
|
+
const ChevronUp = createLucideIcon("chevron-up", __iconNode$i);
|
|
711
711
|
|
|
712
712
|
/**
|
|
713
713
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -717,11 +717,11 @@ const ChevronUp = createLucideIcon("chevron-up", __iconNode$f);
|
|
|
717
717
|
*/
|
|
718
718
|
|
|
719
719
|
|
|
720
|
-
const __iconNode$
|
|
720
|
+
const __iconNode$h = [
|
|
721
721
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
722
722
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
723
723
|
];
|
|
724
|
-
const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$
|
|
724
|
+
const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$h);
|
|
725
725
|
|
|
726
726
|
/**
|
|
727
727
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -731,12 +731,12 @@ const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$e);
|
|
|
731
731
|
*/
|
|
732
732
|
|
|
733
733
|
|
|
734
|
-
const __iconNode$
|
|
734
|
+
const __iconNode$g = [
|
|
735
735
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
736
736
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
737
737
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
738
738
|
];
|
|
739
|
-
const CircleAlert = createLucideIcon("circle-alert", __iconNode$
|
|
739
|
+
const CircleAlert = createLucideIcon("circle-alert", __iconNode$g);
|
|
740
740
|
|
|
741
741
|
/**
|
|
742
742
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -746,11 +746,11 @@ const CircleAlert = createLucideIcon("circle-alert", __iconNode$d);
|
|
|
746
746
|
*/
|
|
747
747
|
|
|
748
748
|
|
|
749
|
-
const __iconNode$
|
|
749
|
+
const __iconNode$f = [
|
|
750
750
|
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
|
751
751
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
752
752
|
];
|
|
753
|
-
const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$
|
|
753
|
+
const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$f);
|
|
754
754
|
|
|
755
755
|
/**
|
|
756
756
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -760,12 +760,12 @@ const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$c);
|
|
|
760
760
|
*/
|
|
761
761
|
|
|
762
762
|
|
|
763
|
-
const __iconNode$
|
|
763
|
+
const __iconNode$e = [
|
|
764
764
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
765
765
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
766
766
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
767
767
|
];
|
|
768
|
-
const CircleQuestionMark = createLucideIcon("circle-question-mark", __iconNode$
|
|
768
|
+
const CircleQuestionMark = createLucideIcon("circle-question-mark", __iconNode$e);
|
|
769
769
|
|
|
770
770
|
/**
|
|
771
771
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -775,12 +775,12 @@ const CircleQuestionMark = createLucideIcon("circle-question-mark", __iconNode$b
|
|
|
775
775
|
*/
|
|
776
776
|
|
|
777
777
|
|
|
778
|
-
const __iconNode$
|
|
778
|
+
const __iconNode$d = [
|
|
779
779
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
780
780
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
781
781
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
782
782
|
];
|
|
783
|
-
const Columns3 = createLucideIcon("columns-3", __iconNode$
|
|
783
|
+
const Columns3 = createLucideIcon("columns-3", __iconNode$d);
|
|
784
784
|
|
|
785
785
|
/**
|
|
786
786
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -790,12 +790,12 @@ const Columns3 = createLucideIcon("columns-3", __iconNode$a);
|
|
|
790
790
|
*/
|
|
791
791
|
|
|
792
792
|
|
|
793
|
-
const __iconNode$
|
|
793
|
+
const __iconNode$c = [
|
|
794
794
|
["path", { d: "M2 5h20", key: "1fs1ex" }],
|
|
795
795
|
["path", { d: "M6 12h12", key: "8npq4p" }],
|
|
796
796
|
["path", { d: "M9 19h6", key: "456am0" }]
|
|
797
797
|
];
|
|
798
|
-
const ListFilter = createLucideIcon("list-filter", __iconNode$
|
|
798
|
+
const ListFilter = createLucideIcon("list-filter", __iconNode$c);
|
|
799
799
|
|
|
800
800
|
/**
|
|
801
801
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -805,8 +805,8 @@ const ListFilter = createLucideIcon("list-filter", __iconNode$9);
|
|
|
805
805
|
*/
|
|
806
806
|
|
|
807
807
|
|
|
808
|
-
const __iconNode$
|
|
809
|
-
const Minus = createLucideIcon("minus", __iconNode$
|
|
808
|
+
const __iconNode$b = [["path", { d: "M5 12h14", key: "1ays0h" }]];
|
|
809
|
+
const Minus = createLucideIcon("minus", __iconNode$b);
|
|
810
810
|
|
|
811
811
|
/**
|
|
812
812
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -816,12 +816,12 @@ const Minus = createLucideIcon("minus", __iconNode$8);
|
|
|
816
816
|
*/
|
|
817
817
|
|
|
818
818
|
|
|
819
|
-
const __iconNode$
|
|
819
|
+
const __iconNode$a = [
|
|
820
820
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
821
821
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
822
822
|
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
823
823
|
];
|
|
824
|
-
const PanelLeftClose = createLucideIcon("panel-left-close", __iconNode$
|
|
824
|
+
const PanelLeftClose = createLucideIcon("panel-left-close", __iconNode$a);
|
|
825
825
|
|
|
826
826
|
/**
|
|
827
827
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -831,12 +831,12 @@ const PanelLeftClose = createLucideIcon("panel-left-close", __iconNode$7);
|
|
|
831
831
|
*/
|
|
832
832
|
|
|
833
833
|
|
|
834
|
-
const __iconNode$
|
|
834
|
+
const __iconNode$9 = [
|
|
835
835
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
836
836
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
837
837
|
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
838
838
|
];
|
|
839
|
-
const PanelLeftOpen = createLucideIcon("panel-left-open", __iconNode$
|
|
839
|
+
const PanelLeftOpen = createLucideIcon("panel-left-open", __iconNode$9);
|
|
840
840
|
|
|
841
841
|
/**
|
|
842
842
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -846,11 +846,11 @@ const PanelLeftOpen = createLucideIcon("panel-left-open", __iconNode$6);
|
|
|
846
846
|
*/
|
|
847
847
|
|
|
848
848
|
|
|
849
|
-
const __iconNode$
|
|
849
|
+
const __iconNode$8 = [
|
|
850
850
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
851
851
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
852
852
|
];
|
|
853
|
-
const Plus = createLucideIcon("plus", __iconNode$
|
|
853
|
+
const Plus = createLucideIcon("plus", __iconNode$8);
|
|
854
854
|
|
|
855
855
|
/**
|
|
856
856
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -860,11 +860,52 @@ const Plus = createLucideIcon("plus", __iconNode$5);
|
|
|
860
860
|
*/
|
|
861
861
|
|
|
862
862
|
|
|
863
|
-
const __iconNode$
|
|
863
|
+
const __iconNode$7 = [
|
|
864
864
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
865
865
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
866
866
|
];
|
|
867
|
-
const Search = createLucideIcon("search", __iconNode$
|
|
867
|
+
const Search = createLucideIcon("search", __iconNode$7);
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* @license lucide-react v1.16.0 - ISC
|
|
871
|
+
*
|
|
872
|
+
* This source code is licensed under the ISC license.
|
|
873
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
874
|
+
*/
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
const __iconNode$6 = [
|
|
878
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
879
|
+
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
880
|
+
];
|
|
881
|
+
const SquareCheck = createLucideIcon("square-check", __iconNode$6);
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* @license lucide-react v1.16.0 - ISC
|
|
885
|
+
*
|
|
886
|
+
* This source code is licensed under the ISC license.
|
|
887
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
888
|
+
*/
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
const __iconNode$5 = [
|
|
892
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
893
|
+
["path", { d: "M8 12h8", key: "1wcyev" }]
|
|
894
|
+
];
|
|
895
|
+
const SquareMinus = createLucideIcon("square-minus", __iconNode$5);
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* @license lucide-react v1.16.0 - ISC
|
|
899
|
+
*
|
|
900
|
+
* This source code is licensed under the ISC license.
|
|
901
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
902
|
+
*/
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
const __iconNode$4 = [
|
|
906
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]
|
|
907
|
+
];
|
|
908
|
+
const Square = createLucideIcon("square", __iconNode$4);
|
|
868
909
|
|
|
869
910
|
/**
|
|
870
911
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -1733,20 +1774,6 @@ const NeoCard = (props) => {
|
|
|
1733
1774
|
};
|
|
1734
1775
|
NeoCard.displayName = 'NeoCard';
|
|
1735
1776
|
|
|
1736
|
-
// Border radius per size (from Figma)
|
|
1737
|
-
const borderRadiusConfig = {
|
|
1738
|
-
xs: 2,
|
|
1739
|
-
small: 3,
|
|
1740
|
-
medium: 4,
|
|
1741
|
-
};
|
|
1742
|
-
// Unchecked: Rounded square outline (20x20 viewBox)
|
|
1743
|
-
const UncheckedIcon$1 = ({ size = 'medium' }) => (jsxRuntime.jsx(SvgIcon, { viewBox: "0 0 20 20", children: jsxRuntime.jsx("rect", { x: "1", y: "1", width: "18", height: "18", rx: borderRadiusConfig[size], fill: "none", stroke: "currentColor", strokeWidth: "1.5" }) }));
|
|
1744
|
-
// Checked: Filled rounded square with white checkmark
|
|
1745
|
-
// Path scaled from Untitled UI 24x24 (M20 6L9 17L4 12) to 20x20
|
|
1746
|
-
const CheckedIcon$1 = ({ size = 'medium' }) => (jsxRuntime.jsxs(SvgIcon, { viewBox: "0 0 20 20", children: [jsxRuntime.jsx("rect", { width: "20", height: "20", rx: borderRadiusConfig[size], fill: "currentColor" }), jsxRuntime.jsx("path", { d: "M15 6L8.5 13L5 9.5", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", fill: "none" })] }));
|
|
1747
|
-
// Indeterminate: Filled rounded square with white minus
|
|
1748
|
-
// Path scaled from Untitled UI 24x24 (M5 12H19) to 20x20
|
|
1749
|
-
const IndeterminateIcon = ({ size = 'medium' }) => (jsxRuntime.jsxs(SvgIcon, { viewBox: "0 0 20 20", children: [jsxRuntime.jsx("rect", { width: "20", height: "20", rx: borderRadiusConfig[size], fill: "currentColor" }), jsxRuntime.jsx("path", { d: "M5 10H15", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", fill: "none" })] }));
|
|
1750
1777
|
const CheckboxContainer = styles.styled('label')(({ disabled }) => ({
|
|
1751
1778
|
display: 'inline-flex',
|
|
1752
1779
|
alignItems: 'flex-start',
|
|
@@ -1779,7 +1806,7 @@ const HelperText$2 = styles.styled('span')(({ theme, size = 'medium' }) => ({
|
|
|
1779
1806
|
lineHeight: size === 'xs' ? 1.5 : size === 'small' ? 1.4 : 1.5,
|
|
1780
1807
|
color: neoDesign.semanticColors.typography.bodySecondary,
|
|
1781
1808
|
}));
|
|
1782
|
-
//
|
|
1809
|
+
// xs focus-ring radius — no matching design token (box corner comes from the icon)
|
|
1783
1810
|
const FIGMA_XS_BORDER_RADIUS = 1;
|
|
1784
1811
|
const StyledCheckbox = styles.styled(Checkbox, {
|
|
1785
1812
|
shouldForwardProp: prop => prop !== 'size',
|
|
@@ -1792,11 +1819,11 @@ const StyledCheckbox = styles.styled(Checkbox, {
|
|
|
1792
1819
|
},
|
|
1793
1820
|
small: {
|
|
1794
1821
|
size: 16,
|
|
1795
|
-
borderRadius: neoDesign.borderRadius.xXS, //
|
|
1822
|
+
borderRadius: neoDesign.borderRadius.xXS, // focus-ring radius (small)
|
|
1796
1823
|
},
|
|
1797
1824
|
medium: {
|
|
1798
1825
|
size: 20,
|
|
1799
|
-
borderRadius: neoDesign.borderRadius.xS, //
|
|
1826
|
+
borderRadius: neoDesign.borderRadius.xS, // focus-ring radius (medium)
|
|
1800
1827
|
},
|
|
1801
1828
|
};
|
|
1802
1829
|
const config = sizeConfig[size];
|
|
@@ -1808,37 +1835,30 @@ const StyledCheckbox = styles.styled(Checkbox, {
|
|
|
1808
1835
|
color: neoDesign.semanticColors.border.primary,
|
|
1809
1836
|
borderRadius: config.borderRadius,
|
|
1810
1837
|
flexShrink: 0,
|
|
1811
|
-
//
|
|
1812
|
-
|
|
1813
|
-
'
|
|
1814
|
-
backgroundColor: 'transparent',
|
|
1815
|
-
},
|
|
1838
|
+
// Suppress MUI's grey hover background
|
|
1839
|
+
'&:hover': {
|
|
1840
|
+
backgroundColor: 'transparent',
|
|
1816
1841
|
},
|
|
1817
|
-
//
|
|
1818
|
-
[
|
|
1819
|
-
|
|
1820
|
-
height: config.size,
|
|
1842
|
+
// Hover on the unchecked box — subtle blue outline affordance (enabled only)
|
|
1843
|
+
[`&:hover:not(.${Checkbox.checkboxClasses.checked}):not(.${Checkbox.checkboxClasses.indeterminate}):not(.${Checkbox.checkboxClasses.disabled})`]: {
|
|
1844
|
+
color: neoDesign.colors.digitalBlue[300],
|
|
1821
1845
|
},
|
|
1822
|
-
// Checked
|
|
1846
|
+
// Checked / Indeterminate — primary blue outline + mark
|
|
1823
1847
|
[`&.${Checkbox.checkboxClasses.checked}`]: {
|
|
1824
|
-
color: neoDesign.
|
|
1848
|
+
color: neoDesign.colors.digitalBlue[600],
|
|
1825
1849
|
},
|
|
1826
|
-
// Indeterminate state
|
|
1827
1850
|
[`&.${Checkbox.checkboxClasses.indeterminate}`]: {
|
|
1828
|
-
color: neoDesign.
|
|
1851
|
+
color: neoDesign.colors.digitalBlue[600],
|
|
1829
1852
|
},
|
|
1830
|
-
// Disabled
|
|
1853
|
+
// Disabled — enabled colors dimmed to 40%. Checked/indeterminate keep
|
|
1854
|
+
// digitalBlue[600] via the rules above; re-assert the unchecked outline
|
|
1855
|
+
// token so it beats MUI's default `.Mui-disabled` color.
|
|
1831
1856
|
[`&.${Checkbox.checkboxClasses.disabled}`]: {
|
|
1832
|
-
|
|
1857
|
+
opacity: 0.4,
|
|
1833
1858
|
cursor: 'not-allowed',
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
},
|
|
1838
|
-
// When indeterminate and disabled
|
|
1839
|
-
[`&.${Checkbox.checkboxClasses.indeterminate}`]: {
|
|
1840
|
-
color: neoDesign.semanticColors.border.primary,
|
|
1841
|
-
},
|
|
1859
|
+
},
|
|
1860
|
+
[`&.${Checkbox.checkboxClasses.disabled}:not(.${Checkbox.checkboxClasses.checked}):not(.${Checkbox.checkboxClasses.indeterminate})`]: {
|
|
1861
|
+
color: neoDesign.semanticColors.border.primary,
|
|
1842
1862
|
},
|
|
1843
1863
|
// Focus visible for keyboard navigation
|
|
1844
1864
|
'&.Mui-focusVisible': {
|
|
@@ -1846,11 +1866,10 @@ const StyledCheckbox = styles.styled(Checkbox, {
|
|
|
1846
1866
|
outlineOffset: 2,
|
|
1847
1867
|
borderRadius: config.borderRadius,
|
|
1848
1868
|
},
|
|
1849
|
-
//
|
|
1869
|
+
// Size the Lucide icon (color comes from `color` → currentColor → stroke)
|
|
1850
1870
|
'& svg': {
|
|
1851
1871
|
width: config.size,
|
|
1852
1872
|
height: config.size,
|
|
1853
|
-
fill: 'currentColor',
|
|
1854
1873
|
},
|
|
1855
1874
|
};
|
|
1856
1875
|
});
|
|
@@ -1901,10 +1920,10 @@ const StyledCheckbox = styles.styled(Checkbox, {
|
|
|
1901
1920
|
const NeoCheckbox = ({ size = 'medium', label, helperText, disabled, icon, checkedIcon, indeterminateIcon, className, ...props }) => {
|
|
1902
1921
|
// Add custom class to identify NeoCheckbox instances
|
|
1903
1922
|
const combinedClassName = className ? `neo-checkbox ${className}` : 'neo-checkbox';
|
|
1904
|
-
//
|
|
1905
|
-
const defaultIcon = icon || jsxRuntime.jsx(
|
|
1906
|
-
const defaultCheckedIcon = checkedIcon || jsxRuntime.jsx(
|
|
1907
|
-
const defaultIndeterminateIcon = indeterminateIcon || jsxRuntime.jsx(
|
|
1923
|
+
// Default icons (sized via CSS on the SVG); overridable per instance
|
|
1924
|
+
const defaultIcon = icon || jsxRuntime.jsx(Square, {});
|
|
1925
|
+
const defaultCheckedIcon = checkedIcon || jsxRuntime.jsx(SquareCheck, {});
|
|
1926
|
+
const defaultIndeterminateIcon = indeterminateIcon || jsxRuntime.jsx(SquareMinus, {});
|
|
1908
1927
|
// If no label, return just the checkbox
|
|
1909
1928
|
if (!label && !helperText) {
|
|
1910
1929
|
return (jsxRuntime.jsx(StyledCheckbox, { size: size, disabled: disabled, icon: defaultIcon, checkedIcon: defaultCheckedIcon, indeterminateIcon: defaultIndeterminateIcon, className: combinedClassName, ...props }));
|
|
@@ -2764,11 +2783,13 @@ function NeoDataGrid({ autoHeight = false, toolbar, slots, sx, density = 'standa
|
|
|
2764
2783
|
...getDataGridHeaderStyles(),
|
|
2765
2784
|
...getDataGridRowStyles(),
|
|
2766
2785
|
border: `1px solid ${neoDesign.semanticColors.border.secondary}`,
|
|
2767
|
-
// Style row selection checkboxes to match header (16px, proper spacing)
|
|
2786
|
+
// Style row selection checkboxes to match header (16px, proper spacing).
|
|
2787
|
+
// Target `& svg` (not `.MuiSvgIcon-root`) so the rule also matches the
|
|
2788
|
+
// lucide `<svg>` icons NeoCheckbox renders, mirroring the header rule.
|
|
2768
2789
|
[`& .${xDataGrid.gridClasses.cellCheckbox}`]: {
|
|
2769
2790
|
[`& .${Checkbox.checkboxClasses.root}`]: {
|
|
2770
2791
|
padding: `${neoDesign.spacing.spacing_1}px`,
|
|
2771
|
-
|
|
2792
|
+
'& svg': {
|
|
2772
2793
|
width: 16,
|
|
2773
2794
|
height: 16,
|
|
2774
2795
|
},
|
|
@@ -6299,6 +6320,9 @@ const NeoRipplingDot = props => (jsxRuntime.jsx(material.Box, { "aria-hidden": "
|
|
|
6299
6320
|
borderRadius: '50%',
|
|
6300
6321
|
border: '1px solid currentColor',
|
|
6301
6322
|
animation: `${ripple} 5.6s ease-in-out infinite`,
|
|
6323
|
+
'@media (prefers-reduced-motion: reduce)': {
|
|
6324
|
+
display: 'none',
|
|
6325
|
+
},
|
|
6302
6326
|
},
|
|
6303
6327
|
...props.sx,
|
|
6304
6328
|
} }));
|
|
@@ -7411,6 +7435,9 @@ const NeoVibratingDot = props => (jsxRuntime.jsx(material.Box, { "aria-hidden":
|
|
|
7411
7435
|
verticalAlign: 'middle',
|
|
7412
7436
|
flexShrink: 0,
|
|
7413
7437
|
animation: `${vibrate} 5.6s ease-in-out infinite`,
|
|
7438
|
+
'@media (prefers-reduced-motion: reduce)': {
|
|
7439
|
+
animation: 'none',
|
|
7440
|
+
},
|
|
7414
7441
|
...props.sx,
|
|
7415
7442
|
} }));
|
|
7416
7443
|
NeoVibratingDot.displayName = 'NeoVibratingDot';
|