@moderneinc/neo-styled-components 4.1.1-next.d7d4cf → 4.1.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.d.ts CHANGED
@@ -2921,7 +2921,7 @@ declare const NeoTreeView: {
2921
2921
  * Produces a double-ring effect: a white inner gap (via outline-offset) and a colored outer ring.
2922
2922
  */
2923
2923
  declare const focusRingStyles: {
2924
- readonly outline: "2px solid #3bcca6";
2924
+ readonly outline: "2px solid #131e7a";
2925
2925
  readonly outlineOffset: "2px";
2926
2926
  };
2927
2927
 
package/dist/index.esm.js CHANGED
@@ -7,7 +7,7 @@ import MuiAvatar from '@mui/material/Avatar';
7
7
  import SvgIcon, { svgIconClasses } from '@mui/material/SvgIcon';
8
8
  import Alert, { alertClasses } from '@mui/material/Alert';
9
9
  import ButtonBase, { buttonBaseClasses } from '@mui/material/ButtonBase';
10
- import React, { forwardRef, createElement, useState, useRef, useCallback, useMemo, useEffect } from 'react';
10
+ import React, { useContext, createContext, forwardRef, createElement, useState, useRef, useCallback, useMemo, useEffect } from 'react';
11
11
  import IconButton, { iconButtonClasses } from '@mui/material/IconButton';
12
12
  import Breadcrumbs, { breadcrumbsClasses } from '@mui/material/Breadcrumbs';
13
13
  import Link from '@mui/material/Link';
@@ -476,7 +476,7 @@ const NeoActivityIndicatorCell = ({ event = 'commit-job', secondaryEvent, scene
476
476
  NeoActivityIndicatorCell.displayName = 'NeoActivityIndicatorCell';
477
477
 
478
478
  /**
479
- * @license lucide-react v0.577.0 - ISC
479
+ * @license lucide-react v1.7.0 - ISC
480
480
  *
481
481
  * This source code is licensed under the ISC license.
482
482
  * See the LICENSE file in the root directory of this source tree.
@@ -487,7 +487,7 @@ const mergeClasses = (...classes) => classes.filter((className, index, array) =>
487
487
  }).join(" ").trim();
488
488
 
489
489
  /**
490
- * @license lucide-react v0.577.0 - ISC
490
+ * @license lucide-react v1.7.0 - ISC
491
491
  *
492
492
  * This source code is licensed under the ISC license.
493
493
  * See the LICENSE file in the root directory of this source tree.
@@ -496,7 +496,7 @@ const mergeClasses = (...classes) => classes.filter((className, index, array) =>
496
496
  const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
497
497
 
498
498
  /**
499
- * @license lucide-react v0.577.0 - ISC
499
+ * @license lucide-react v1.7.0 - ISC
500
500
  *
501
501
  * This source code is licensed under the ISC license.
502
502
  * See the LICENSE file in the root directory of this source tree.
@@ -508,7 +508,7 @@ const toCamelCase = (string) => string.replace(
508
508
  );
509
509
 
510
510
  /**
511
- * @license lucide-react v0.577.0 - ISC
511
+ * @license lucide-react v1.7.0 - ISC
512
512
  *
513
513
  * This source code is licensed under the ISC license.
514
514
  * See the LICENSE file in the root directory of this source tree.
@@ -521,7 +521,7 @@ const toPascalCase = (string) => {
521
521
  };
522
522
 
523
523
  /**
524
- * @license lucide-react v0.577.0 - ISC
524
+ * @license lucide-react v1.7.0 - ISC
525
525
  *
526
526
  * This source code is licensed under the ISC license.
527
527
  * See the LICENSE file in the root directory of this source tree.
@@ -540,7 +540,7 @@ var defaultAttributes = {
540
540
  };
541
541
 
542
542
  /**
543
- * @license lucide-react v0.577.0 - ISC
543
+ * @license lucide-react v1.7.0 - ISC
544
544
  *
545
545
  * This source code is licensed under the ISC license.
546
546
  * See the LICENSE file in the root directory of this source tree.
@@ -555,46 +555,42 @@ const hasA11yProp = (props) => {
555
555
  return false;
556
556
  };
557
557
 
558
- /**
559
- * @license lucide-react v0.577.0 - ISC
560
- *
561
- * This source code is licensed under the ISC license.
562
- * See the LICENSE file in the root directory of this source tree.
563
- */
564
-
558
+ const LucideContext = createContext({});
559
+ const useLucideContext = () => useContext(LucideContext);
565
560
 
566
561
  const Icon = forwardRef(
567
- ({
568
- color = "currentColor",
569
- size = 24,
570
- strokeWidth = 2,
571
- absoluteStrokeWidth,
572
- className = "",
573
- children,
574
- iconNode,
575
- ...rest
576
- }, ref) => createElement(
577
- "svg",
578
- {
579
- ref,
580
- ...defaultAttributes,
581
- width: size,
582
- height: size,
583
- stroke: color,
584
- strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
585
- className: mergeClasses("lucide", className),
586
- ...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
587
- ...rest
588
- },
589
- [
590
- ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
591
- ...Array.isArray(children) ? children : [children]
592
- ]
593
- )
562
+ ({ color, size, strokeWidth, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref) => {
563
+ const {
564
+ size: contextSize = 24,
565
+ strokeWidth: contextStrokeWidth = 2,
566
+ absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,
567
+ color: contextColor = "currentColor",
568
+ className: contextClass = ""
569
+ } = useLucideContext() ?? {};
570
+ const calculatedStrokeWidth = absoluteStrokeWidth ?? contextAbsoluteStrokeWidth ? Number(strokeWidth ?? contextStrokeWidth) * 24 / Number(size ?? contextSize) : strokeWidth ?? contextStrokeWidth;
571
+ return createElement(
572
+ "svg",
573
+ {
574
+ ref,
575
+ ...defaultAttributes,
576
+ width: size ?? contextSize ?? defaultAttributes.width,
577
+ height: size ?? contextSize ?? defaultAttributes.height,
578
+ stroke: color ?? contextColor,
579
+ strokeWidth: calculatedStrokeWidth,
580
+ className: mergeClasses("lucide", contextClass, className),
581
+ ...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
582
+ ...rest
583
+ },
584
+ [
585
+ ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
586
+ ...Array.isArray(children) ? children : [children]
587
+ ]
588
+ );
589
+ }
594
590
  );
595
591
 
596
592
  /**
597
- * @license lucide-react v0.577.0 - ISC
593
+ * @license lucide-react v1.7.0 - ISC
598
594
  *
599
595
  * This source code is licensed under the ISC license.
600
596
  * See the LICENSE file in the root directory of this source tree.
@@ -619,7 +615,7 @@ const createLucideIcon = (iconName, iconNode) => {
619
615
  };
620
616
 
621
617
  /**
622
- * @license lucide-react v0.577.0 - ISC
618
+ * @license lucide-react v1.7.0 - ISC
623
619
  *
624
620
  * This source code is licensed under the ISC license.
625
621
  * See the LICENSE file in the root directory of this source tree.
@@ -633,7 +629,7 @@ const __iconNode$k = [
633
629
  const ArrowDown = createLucideIcon("arrow-down", __iconNode$k);
634
630
 
635
631
  /**
636
- * @license lucide-react v0.577.0 - ISC
632
+ * @license lucide-react v1.7.0 - ISC
637
633
  *
638
634
  * This source code is licensed under the ISC license.
639
635
  * See the LICENSE file in the root directory of this source tree.
@@ -647,7 +643,7 @@ const __iconNode$j = [
647
643
  const ArrowUp = createLucideIcon("arrow-up", __iconNode$j);
648
644
 
649
645
  /**
650
- * @license lucide-react v0.577.0 - ISC
646
+ * @license lucide-react v1.7.0 - ISC
651
647
  *
652
648
  * This source code is licensed under the ISC license.
653
649
  * See the LICENSE file in the root directory of this source tree.
@@ -668,7 +664,7 @@ const __iconNode$i = [
668
664
  const BadgeInfo = createLucideIcon("badge-info", __iconNode$i);
669
665
 
670
666
  /**
671
- * @license lucide-react v0.577.0 - ISC
667
+ * @license lucide-react v1.7.0 - ISC
672
668
  *
673
669
  * This source code is licensed under the ISC license.
674
670
  * See the LICENSE file in the root directory of this source tree.
@@ -690,7 +686,7 @@ const __iconNode$h = [
690
686
  const CalendarDays = createLucideIcon("calendar-days", __iconNode$h);
691
687
 
692
688
  /**
693
- * @license lucide-react v0.577.0 - ISC
689
+ * @license lucide-react v1.7.0 - ISC
694
690
  *
695
691
  * This source code is licensed under the ISC license.
696
692
  * See the LICENSE file in the root directory of this source tree.
@@ -701,7 +697,7 @@ const __iconNode$g = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
701
697
  const ChevronDown = createLucideIcon("chevron-down", __iconNode$g);
702
698
 
703
699
  /**
704
- * @license lucide-react v0.577.0 - ISC
700
+ * @license lucide-react v1.7.0 - ISC
705
701
  *
706
702
  * This source code is licensed under the ISC license.
707
703
  * See the LICENSE file in the root directory of this source tree.
@@ -712,7 +708,7 @@ const __iconNode$f = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
712
708
  const ChevronLeft = createLucideIcon("chevron-left", __iconNode$f);
713
709
 
714
710
  /**
715
- * @license lucide-react v0.577.0 - ISC
711
+ * @license lucide-react v1.7.0 - ISC
716
712
  *
717
713
  * This source code is licensed under the ISC license.
718
714
  * See the LICENSE file in the root directory of this source tree.
@@ -723,7 +719,7 @@ const __iconNode$e = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
723
719
  const ChevronRight = createLucideIcon("chevron-right", __iconNode$e);
724
720
 
725
721
  /**
726
- * @license lucide-react v0.577.0 - ISC
722
+ * @license lucide-react v1.7.0 - ISC
727
723
  *
728
724
  * This source code is licensed under the ISC license.
729
725
  * See the LICENSE file in the root directory of this source tree.
@@ -734,7 +730,7 @@ const __iconNode$d = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
734
730
  const ChevronUp = createLucideIcon("chevron-up", __iconNode$d);
735
731
 
736
732
  /**
737
- * @license lucide-react v0.577.0 - ISC
733
+ * @license lucide-react v1.7.0 - ISC
738
734
  *
739
735
  * This source code is licensed under the ISC license.
740
736
  * See the LICENSE file in the root directory of this source tree.
@@ -748,7 +744,7 @@ const __iconNode$c = [
748
744
  const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$c);
749
745
 
750
746
  /**
751
- * @license lucide-react v0.577.0 - ISC
747
+ * @license lucide-react v1.7.0 - ISC
752
748
  *
753
749
  * This source code is licensed under the ISC license.
754
750
  * See the LICENSE file in the root directory of this source tree.
@@ -763,7 +759,7 @@ const __iconNode$b = [
763
759
  const CircleAlert = createLucideIcon("circle-alert", __iconNode$b);
764
760
 
765
761
  /**
766
- * @license lucide-react v0.577.0 - ISC
762
+ * @license lucide-react v1.7.0 - ISC
767
763
  *
768
764
  * This source code is licensed under the ISC license.
769
765
  * See the LICENSE file in the root directory of this source tree.
@@ -777,7 +773,7 @@ const __iconNode$a = [
777
773
  const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$a);
778
774
 
779
775
  /**
780
- * @license lucide-react v0.577.0 - ISC
776
+ * @license lucide-react v1.7.0 - ISC
781
777
  *
782
778
  * This source code is licensed under the ISC license.
783
779
  * See the LICENSE file in the root directory of this source tree.
@@ -792,7 +788,7 @@ const __iconNode$9 = [
792
788
  const CircleQuestionMark = createLucideIcon("circle-question-mark", __iconNode$9);
793
789
 
794
790
  /**
795
- * @license lucide-react v0.577.0 - ISC
791
+ * @license lucide-react v1.7.0 - ISC
796
792
  *
797
793
  * This source code is licensed under the ISC license.
798
794
  * See the LICENSE file in the root directory of this source tree.
@@ -807,7 +803,7 @@ const __iconNode$8 = [
807
803
  const Columns3 = createLucideIcon("columns-3", __iconNode$8);
808
804
 
809
805
  /**
810
- * @license lucide-react v0.577.0 - ISC
806
+ * @license lucide-react v1.7.0 - ISC
811
807
  *
812
808
  * This source code is licensed under the ISC license.
813
809
  * See the LICENSE file in the root directory of this source tree.
@@ -822,7 +818,7 @@ const __iconNode$7 = [
822
818
  const ListFilter = createLucideIcon("list-filter", __iconNode$7);
823
819
 
824
820
  /**
825
- * @license lucide-react v0.577.0 - ISC
821
+ * @license lucide-react v1.7.0 - ISC
826
822
  *
827
823
  * This source code is licensed under the ISC license.
828
824
  * See the LICENSE file in the root directory of this source tree.
@@ -833,7 +829,7 @@ const __iconNode$6 = [["path", { d: "M5 12h14", key: "1ays0h" }]];
833
829
  const Minus = createLucideIcon("minus", __iconNode$6);
834
830
 
835
831
  /**
836
- * @license lucide-react v0.577.0 - ISC
832
+ * @license lucide-react v1.7.0 - ISC
837
833
  *
838
834
  * This source code is licensed under the ISC license.
839
835
  * See the LICENSE file in the root directory of this source tree.
@@ -847,7 +843,7 @@ const __iconNode$5 = [
847
843
  const Plus = createLucideIcon("plus", __iconNode$5);
848
844
 
849
845
  /**
850
- * @license lucide-react v0.577.0 - ISC
846
+ * @license lucide-react v1.7.0 - ISC
851
847
  *
852
848
  * This source code is licensed under the ISC license.
853
849
  * See the LICENSE file in the root directory of this source tree.
@@ -861,7 +857,7 @@ const __iconNode$4 = [
861
857
  const Search = createLucideIcon("search", __iconNode$4);
862
858
 
863
859
  /**
864
- * @license lucide-react v0.577.0 - ISC
860
+ * @license lucide-react v1.7.0 - ISC
865
861
  *
866
862
  * This source code is licensed under the ISC license.
867
863
  * See the LICENSE file in the root directory of this source tree.
@@ -878,7 +874,7 @@ const __iconNode$3 = [
878
874
  const Trash2 = createLucideIcon("trash-2", __iconNode$3);
879
875
 
880
876
  /**
881
- * @license lucide-react v0.577.0 - ISC
877
+ * @license lucide-react v1.7.0 - ISC
882
878
  *
883
879
  * This source code is licensed under the ISC license.
884
880
  * See the LICENSE file in the root directory of this source tree.
@@ -899,7 +895,7 @@ const __iconNode$2 = [
899
895
  const TriangleAlert = createLucideIcon("triangle-alert", __iconNode$2);
900
896
 
901
897
  /**
902
- * @license lucide-react v0.577.0 - ISC
898
+ * @license lucide-react v1.7.0 - ISC
903
899
  *
904
900
  * This source code is licensed under the ISC license.
905
901
  * See the LICENSE file in the root directory of this source tree.
@@ -918,7 +914,7 @@ const __iconNode$1 = [
918
914
  const WifiOff = createLucideIcon("wifi-off", __iconNode$1);
919
915
 
920
916
  /**
921
- * @license lucide-react v0.577.0 - ISC
917
+ * @license lucide-react v1.7.0 - ISC
922
918
  *
923
919
  * This source code is licensed under the ISC license.
924
920
  * See the LICENSE file in the root directory of this source tree.