@mindlogic-ai/logician-ui 3.2.0-alpha.4 → 4.0.0-alpha.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.
Files changed (125) hide show
  1. package/dist/components/InlineCode/InlineCode.d.ts.map +1 -1
  2. package/dist/components/InlineCode/InlineCode.js +8 -1
  3. package/dist/components/InlineCode/InlineCode.js.map +1 -1
  4. package/dist/components/InlineCode/InlineCode.mjs +8 -1
  5. package/dist/components/InlineCode/InlineCode.mjs.map +1 -1
  6. package/dist/components/Loaders/PageLoader.d.ts.map +1 -1
  7. package/dist/components/Loaders/PageLoader.js +2 -2
  8. package/dist/components/Loaders/PageLoader.js.map +1 -1
  9. package/dist/components/Loaders/PageLoader.mjs +2 -2
  10. package/dist/components/Loaders/PageLoader.mjs.map +1 -1
  11. package/dist/components/Loaders/SectionLoader.d.ts.map +1 -1
  12. package/dist/components/Loaders/SectionLoader.js +2 -2
  13. package/dist/components/Loaders/SectionLoader.js.map +1 -1
  14. package/dist/components/Loaders/SectionLoader.mjs +2 -2
  15. package/dist/components/Loaders/SectionLoader.mjs.map +1 -1
  16. package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  17. package/dist/components/SegmentedControl/SegmentedControl.js +23 -15
  18. package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -1
  19. package/dist/components/SegmentedControl/SegmentedControl.mjs +23 -15
  20. package/dist/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
  21. package/dist/components/SegmentedProgressBar/SegmentedProgressBar.d.ts.map +1 -1
  22. package/dist/components/SegmentedProgressBar/SegmentedProgressBar.js +6 -1
  23. package/dist/components/SegmentedProgressBar/SegmentedProgressBar.js.map +1 -1
  24. package/dist/components/SegmentedProgressBar/SegmentedProgressBar.mjs +6 -1
  25. package/dist/components/SegmentedProgressBar/SegmentedProgressBar.mjs.map +1 -1
  26. package/dist/components/Slider/SliderTrack/SliderTrack.d.ts.map +1 -1
  27. package/dist/components/Slider/SliderTrack/SliderTrack.js +13 -1
  28. package/dist/components/Slider/SliderTrack/SliderTrack.js.map +1 -1
  29. package/dist/components/Slider/SliderTrack/SliderTrack.mjs +13 -1
  30. package/dist/components/Slider/SliderTrack/SliderTrack.mjs.map +1 -1
  31. package/dist/components/Spinner/Spinner.d.ts.map +1 -1
  32. package/dist/components/Spinner/Spinner.js +7 -1
  33. package/dist/components/Spinner/Spinner.js.map +1 -1
  34. package/dist/components/Spinner/Spinner.mjs +7 -1
  35. package/dist/components/Spinner/Spinner.mjs.map +1 -1
  36. package/dist/components/Switch/SwitchControl.d.ts.map +1 -1
  37. package/dist/components/Switch/SwitchControl.js +7 -1
  38. package/dist/components/Switch/SwitchControl.js.map +1 -1
  39. package/dist/components/Switch/SwitchControl.mjs +7 -1
  40. package/dist/components/Switch/SwitchControl.mjs.map +1 -1
  41. package/dist/components/Tag/Tag.d.ts.map +1 -1
  42. package/dist/components/Tag/Tag.js +1 -1
  43. package/dist/components/Tag/Tag.js.map +1 -1
  44. package/dist/components/Tag/Tag.mjs +1 -1
  45. package/dist/components/Tag/Tag.mjs.map +1 -1
  46. package/dist/components/Tag/Tag.styles.d.ts.map +1 -1
  47. package/dist/components/Tag/Tag.styles.js +22 -16
  48. package/dist/components/Tag/Tag.styles.js.map +1 -1
  49. package/dist/components/Tag/Tag.styles.mjs +22 -16
  50. package/dist/components/Tag/Tag.styles.mjs.map +1 -1
  51. package/dist/components/Tree/Tree.d.ts +5 -1
  52. package/dist/components/Tree/Tree.d.ts.map +1 -1
  53. package/dist/components/Tree/Tree.types.d.ts +29 -1
  54. package/dist/components/Tree/Tree.types.d.ts.map +1 -1
  55. package/dist/components/Tree/TreeBranchIndentGuide.d.ts +5 -1
  56. package/dist/components/Tree/TreeBranchIndentGuide.d.ts.map +1 -1
  57. package/dist/components/Tree/TreeBranchIndentGuide.js +107 -8
  58. package/dist/components/Tree/TreeBranchIndentGuide.js.map +1 -1
  59. package/dist/components/Tree/TreeBranchIndentGuide.mjs +107 -8
  60. package/dist/components/Tree/TreeBranchIndentGuide.mjs.map +1 -1
  61. package/dist/components/Typography/Link.d.ts.map +1 -1
  62. package/dist/components/Typography/Link.js +6 -1
  63. package/dist/components/Typography/Link.js.map +1 -1
  64. package/dist/components/Typography/Link.mjs +6 -1
  65. package/dist/components/Typography/Link.mjs.map +1 -1
  66. package/dist/index.d.ts +0 -1
  67. package/dist/index.d.ts.map +1 -1
  68. package/dist/index.js +0 -2
  69. package/dist/index.js.map +1 -1
  70. package/dist/index.mjs +0 -1
  71. package/dist/index.mjs.map +1 -1
  72. package/dist/theme/colors.d.ts +7 -1
  73. package/dist/theme/colors.d.ts.map +1 -1
  74. package/dist/theme/colors.js +12 -0
  75. package/dist/theme/colors.js.map +1 -1
  76. package/dist/theme/colors.mjs +12 -0
  77. package/dist/theme/colors.mjs.map +1 -1
  78. package/dist/theme/global.d.ts.map +1 -1
  79. package/dist/theme/global.js +4 -1
  80. package/dist/theme/global.js.map +1 -1
  81. package/dist/theme/global.mjs +4 -1
  82. package/dist/theme/global.mjs.map +1 -1
  83. package/dist/theme/index.d.ts +1 -1
  84. package/dist/theme/index.d.ts.map +1 -1
  85. package/dist/theme/index.js +8 -4
  86. package/dist/theme/index.js.map +1 -1
  87. package/dist/theme/index.mjs +8 -4
  88. package/dist/theme/index.mjs.map +1 -1
  89. package/package.json +1 -3
  90. package/src/components/InlineCode/InlineCode.tsx +7 -0
  91. package/src/components/Loaders/PageLoader.tsx +3 -5
  92. package/src/components/Loaders/SectionLoader.tsx +3 -2
  93. package/src/components/SegmentedControl/SegmentedControl.stories.tsx +27 -1
  94. package/src/components/SegmentedControl/SegmentedControl.tsx +22 -15
  95. package/src/components/SegmentedProgressBar/SegmentedProgressBar.tsx +5 -1
  96. package/src/components/Slider/SliderTrack/SliderTrack.tsx +10 -1
  97. package/src/components/Spinner/Spinner.tsx +6 -1
  98. package/src/components/Switch/SwitchControl.tsx +6 -1
  99. package/src/components/Tag/Tag.styles.ts +22 -16
  100. package/src/components/Tag/Tag.tsx +1 -0
  101. package/src/components/Tree/Tree.GuideElbow.stories.tsx +220 -0
  102. package/src/components/Tree/Tree.types.ts +29 -1
  103. package/src/components/Tree/TreeBranchIndentGuide.test.tsx +213 -0
  104. package/src/components/Tree/TreeBranchIndentGuide.tsx +137 -11
  105. package/src/components/Typography/Link.tsx +5 -1
  106. package/src/index.ts +0 -1
  107. package/src/theme/Surfaces.stories.tsx +208 -0
  108. package/src/theme/colors.ts +13 -0
  109. package/src/theme/global.ts +4 -1
  110. package/src/theme/index.ts +8 -4
  111. package/dist/components/MDXEditor/MDXEditor.d.ts +0 -6
  112. package/dist/components/MDXEditor/MDXEditor.d.ts.map +0 -1
  113. package/dist/components/MDXEditor/MDXEditor.js +0 -237
  114. package/dist/components/MDXEditor/MDXEditor.js.map +0 -1
  115. package/dist/components/MDXEditor/MDXEditor.mjs +0 -235
  116. package/dist/components/MDXEditor/MDXEditor.mjs.map +0 -1
  117. package/dist/components/MDXEditor/MDXEditor.types.d.ts +0 -7
  118. package/dist/components/MDXEditor/MDXEditor.types.d.ts.map +0 -1
  119. package/dist/components/MDXEditor/index.d.ts +0 -3
  120. package/dist/components/MDXEditor/index.d.ts.map +0 -1
  121. package/src/components/MDXEditor/MDXEditor.css +0 -40
  122. package/src/components/MDXEditor/MDXEditor.stories.tsx +0 -56
  123. package/src/components/MDXEditor/MDXEditor.tsx +0 -337
  124. package/src/components/MDXEditor/MDXEditor.types.ts +0 -7
  125. package/src/components/MDXEditor/index.ts +0 -2
@@ -13,7 +13,7 @@ const tagColorPaletteStyles = {
13
13
  soft: {
14
14
  bgColor: 'primary.extralight',
15
15
  borderColor: 'primary.light',
16
- color: 'primary.dark',
16
+ color: 'primary.darker',
17
17
  },
18
18
  solid: {
19
19
  bgColor: 'blue.500',
@@ -23,14 +23,14 @@ const tagColorPaletteStyles = {
23
23
  outline: {
24
24
  bgColor: 'transparent',
25
25
  borderColor: 'primary.main',
26
- color: 'primary.main',
26
+ color: 'primary.dark',
27
27
  },
28
28
  },
29
29
  secondary: {
30
30
  soft: {
31
31
  bgColor: 'secondary.extralight',
32
32
  borderColor: 'secondary.light',
33
- color: 'secondary.dark',
33
+ color: 'secondary.darker',
34
34
  },
35
35
  solid: {
36
36
  bgColor: 'violet.500',
@@ -40,14 +40,14 @@ const tagColorPaletteStyles = {
40
40
  outline: {
41
41
  bgColor: 'transparent',
42
42
  borderColor: 'secondary.main',
43
- color: 'secondary.main',
43
+ color: 'secondary.dark',
44
44
  },
45
45
  },
46
46
  danger: {
47
47
  soft: {
48
48
  bgColor: 'danger.extralight',
49
49
  borderColor: 'danger.light',
50
- color: 'danger.dark',
50
+ color: 'danger.darker',
51
51
  },
52
52
  solid: {
53
53
  bgColor: 'rose.500',
@@ -57,14 +57,14 @@ const tagColorPaletteStyles = {
57
57
  outline: {
58
58
  bgColor: 'transparent',
59
59
  borderColor: 'danger.main',
60
- color: 'danger.main',
60
+ color: 'danger.dark',
61
61
  },
62
62
  },
63
63
  success: {
64
64
  soft: {
65
65
  bgColor: 'success.extralight',
66
66
  borderColor: 'success.light',
67
- color: 'success.dark',
67
+ color: 'success.darker',
68
68
  },
69
69
  solid: {
70
70
  bgColor: 'green.600',
@@ -74,34 +74,40 @@ const tagColorPaletteStyles = {
74
74
  outline: {
75
75
  bgColor: 'transparent',
76
76
  borderColor: 'success.main',
77
- color: 'success.main',
77
+ color: 'success.dark',
78
78
  },
79
79
  },
80
80
  warning: {
81
81
  soft: {
82
82
  bgColor: 'warning.extralight',
83
83
  borderColor: 'warning.light',
84
- color: 'warning.dark',
84
+ color: 'warning.darker',
85
85
  },
86
86
  solid: {
87
- bgColor: 'gold.500',
88
- borderColor: 'gold.500',
89
- color: 'gold.900', // dark text: white/gold.500 was 2.39:1; gold.900 = 6.73:1
87
+ // Deepened from gold.500 so white text clears AA and the chip matches the
88
+ // other solids (white on a saturated fill). White/gold.500 was only
89
+ // 2.39:1; white/gold.700 = 5.86:1 ✓ AA. Bright gold + near-black text read
90
+ // harsh on the dark canvas.
91
+ bgColor: 'gold.700',
92
+ borderColor: 'gold.700',
93
+ color: 'white',
90
94
  },
91
95
  outline: {
92
96
  bgColor: 'transparent',
93
97
  borderColor: 'warning.main',
94
- color: 'warning.main',
98
+ // warning.dark (gold.700, 5.8:1 AA) over warning.main (gold.500, 3.0:1) —
99
+ // darker text also lifts this off the palette's AA-risk step.
100
+ color: 'warning.dark',
95
101
  },
96
102
  },
97
103
  neutral: {
98
104
  soft: {
99
- // Flip surface + border with the mode so the fg.muted text stays legible
105
+ // Flip surface + border with the mode so the fg.default text stays legible
100
106
  // in dark. Light values preserved (bg.muted → gray.100, border.default →
101
107
  // gray.300).
102
108
  bgColor: 'bg.muted',
103
109
  borderColor: 'border.default',
104
- color: 'fg.muted',
110
+ color: 'fg.default',
105
111
  },
106
112
  solid: {
107
113
  bgColor: 'gray.800',
@@ -111,7 +117,7 @@ const tagColorPaletteStyles = {
111
117
  outline: {
112
118
  bgColor: 'transparent',
113
119
  borderColor: 'border.strong', // gray.500 / gray.900 (_dark)
114
- color: 'fg.subtle',
120
+ color: 'fg.muted',
115
121
  },
116
122
  },
117
123
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.styles.js","sources":["../../../src/components/Tag/Tag.styles.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAIA;;;;;;AAMG;AACI,MAAM,qBAAqB,GAG9B;AACF,IAAA,OAAO,EAAE;AACP,QAAA,IAAI,EAAE;AACJ,YAAA,OAAO,EAAE,oBAAoB;AAC7B,YAAA,WAAW,EAAE,eAAe;AAC5B,YAAA,KAAK,EAAE,cAAc;AACtB,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,OAAO,EAAE,UAAU;AACnB,YAAA,WAAW,EAAE,UAAU;AACvB,YAAA,KAAK,EAAE,OAAO;AACf,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,aAAa;AACtB,YAAA,WAAW,EAAE,cAAc;AAC3B,YAAA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ACf,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,aAAa;YACtB,WAAW,EAAE,eAAe;AAC5B,YAAA,KAAK,EAAE,UAAU;AAClB,SAAA;AACF,KAAA;;AAGH;;AAEG;AACI,MAAM,YAAY,GAAG,CAC1B,YAAA,GAAgC,SAAS,EACzC,OAAA,GAAsB,MAAM,KACH;AACzB,IAAA,OAAO,qBAAqB,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC;AACrD;AAEA;AACO,MAAM,gBAAgB,GAAsB;IACjD,SAAS;IACT,WAAW;IACX,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;;AAaX;AACO,MAAM,WAAW,GAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS;;;;;;;"}
@@ -11,7 +11,7 @@ const tagColorPaletteStyles = {
11
11
  soft: {
12
12
  bgColor: 'primary.extralight',
13
13
  borderColor: 'primary.light',
14
- color: 'primary.dark',
14
+ color: 'primary.darker',
15
15
  },
16
16
  solid: {
17
17
  bgColor: 'blue.500',
@@ -21,14 +21,14 @@ const tagColorPaletteStyles = {
21
21
  outline: {
22
22
  bgColor: 'transparent',
23
23
  borderColor: 'primary.main',
24
- color: 'primary.main',
24
+ color: 'primary.dark',
25
25
  },
26
26
  },
27
27
  secondary: {
28
28
  soft: {
29
29
  bgColor: 'secondary.extralight',
30
30
  borderColor: 'secondary.light',
31
- color: 'secondary.dark',
31
+ color: 'secondary.darker',
32
32
  },
33
33
  solid: {
34
34
  bgColor: 'violet.500',
@@ -38,14 +38,14 @@ const tagColorPaletteStyles = {
38
38
  outline: {
39
39
  bgColor: 'transparent',
40
40
  borderColor: 'secondary.main',
41
- color: 'secondary.main',
41
+ color: 'secondary.dark',
42
42
  },
43
43
  },
44
44
  danger: {
45
45
  soft: {
46
46
  bgColor: 'danger.extralight',
47
47
  borderColor: 'danger.light',
48
- color: 'danger.dark',
48
+ color: 'danger.darker',
49
49
  },
50
50
  solid: {
51
51
  bgColor: 'rose.500',
@@ -55,14 +55,14 @@ const tagColorPaletteStyles = {
55
55
  outline: {
56
56
  bgColor: 'transparent',
57
57
  borderColor: 'danger.main',
58
- color: 'danger.main',
58
+ color: 'danger.dark',
59
59
  },
60
60
  },
61
61
  success: {
62
62
  soft: {
63
63
  bgColor: 'success.extralight',
64
64
  borderColor: 'success.light',
65
- color: 'success.dark',
65
+ color: 'success.darker',
66
66
  },
67
67
  solid: {
68
68
  bgColor: 'green.600',
@@ -72,34 +72,40 @@ const tagColorPaletteStyles = {
72
72
  outline: {
73
73
  bgColor: 'transparent',
74
74
  borderColor: 'success.main',
75
- color: 'success.main',
75
+ color: 'success.dark',
76
76
  },
77
77
  },
78
78
  warning: {
79
79
  soft: {
80
80
  bgColor: 'warning.extralight',
81
81
  borderColor: 'warning.light',
82
- color: 'warning.dark',
82
+ color: 'warning.darker',
83
83
  },
84
84
  solid: {
85
- bgColor: 'gold.500',
86
- borderColor: 'gold.500',
87
- color: 'gold.900', // dark text: white/gold.500 was 2.39:1; gold.900 = 6.73:1
85
+ // Deepened from gold.500 so white text clears AA and the chip matches the
86
+ // other solids (white on a saturated fill). White/gold.500 was only
87
+ // 2.39:1; white/gold.700 = 5.86:1 ✓ AA. Bright gold + near-black text read
88
+ // harsh on the dark canvas.
89
+ bgColor: 'gold.700',
90
+ borderColor: 'gold.700',
91
+ color: 'white',
88
92
  },
89
93
  outline: {
90
94
  bgColor: 'transparent',
91
95
  borderColor: 'warning.main',
92
- color: 'warning.main',
96
+ // warning.dark (gold.700, 5.8:1 AA) over warning.main (gold.500, 3.0:1) —
97
+ // darker text also lifts this off the palette's AA-risk step.
98
+ color: 'warning.dark',
93
99
  },
94
100
  },
95
101
  neutral: {
96
102
  soft: {
97
- // Flip surface + border with the mode so the fg.muted text stays legible
103
+ // Flip surface + border with the mode so the fg.default text stays legible
98
104
  // in dark. Light values preserved (bg.muted → gray.100, border.default →
99
105
  // gray.300).
100
106
  bgColor: 'bg.muted',
101
107
  borderColor: 'border.default',
102
- color: 'fg.muted',
108
+ color: 'fg.default',
103
109
  },
104
110
  solid: {
105
111
  bgColor: 'gray.800',
@@ -109,7 +115,7 @@ const tagColorPaletteStyles = {
109
115
  outline: {
110
116
  bgColor: 'transparent',
111
117
  borderColor: 'border.strong', // gray.500 / gray.900 (_dark)
112
- color: 'fg.subtle',
118
+ color: 'fg.muted',
113
119
  },
114
120
  },
115
121
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.styles.mjs","sources":["../../../src/components/Tag/Tag.styles.ts"],"sourcesContent":[null],"names":[],"mappings":";AAIA;;;;;;AAMG;AACI,MAAM,qBAAqB,GAG9B;AACF,IAAA,OAAO,EAAE;AACP,QAAA,IAAI,EAAE;AACJ,YAAA,OAAO,EAAE,oBAAoB;AAC7B,YAAA,WAAW,EAAE,eAAe;AAC5B,YAAA,KAAK,EAAE,cAAc;AACtB,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,OAAO,EAAE,UAAU;AACnB,YAAA,WAAW,EAAE,UAAU;AACvB,YAAA,KAAK,EAAE,OAAO;AACf,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,aAAa;AACtB,YAAA,WAAW,EAAE,cAAc;AAC3B,YAAA,KAAK,EAAE,cAAc;AACtB,SAAA;AACF,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,IAAI,EAAE;AACJ,YAAA,OAAO,EAAE,sBAAsB;AAC/B,YAAA,WAAW,EAAE,iBAAiB;AAC9B,YAAA,KAAK,EAAE,gBAAgB;AACxB,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,OAAO,EAAE,YAAY;AACrB,YAAA,WAAW,EAAE,YAAY;AACzB,YAAA,KAAK,EAAE,OAAO;AACf,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,aAAa;AACtB,YAAA,WAAW,EAAE,gBAAgB;AAC7B,YAAA,KAAK,EAAE,gBAAgB;AACxB,SAAA;AACF,KAAA;AAC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IAAA,OAAO,EAAE;AACP,QAAA,IAAI,EAAE;;;;AAIJ,YAAA,OAAO,EAAE,UAAU;AACnB,YAAA,WAAW,EAAE,gBAAgB;AAC7B,YAAA,KAAK,EAAE,UAAU;AAClB,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,OAAO,EAAE,UAAU;AACnB,YAAA,WAAW,EAAE,UAAU;AACvB,YAAA,KAAK,EAAE,OAAO;AACf,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,aAAa;YACtB,WAAW,EAAE,eAAe;AAC5B,YAAA,KAAK,EAAE,WAAW;AACnB,SAAA;AACF,KAAA;;AAGH;;AAEG;AACI,MAAM,YAAY,GAAG,CAC1B,YAAA,GAAgC,SAAS,EACzC,OAAA,GAAsB,MAAM,KACH;AACzB,IAAA,OAAO,qBAAqB,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC;AACrD;AAEA;AACO,MAAM,gBAAgB,GAAsB;IACjD,SAAS;IACT,WAAW;IACX,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;;AAaX;AACO,MAAM,WAAW,GAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS;;;;"}
1
+ {"version":3,"file":"Tag.styles.mjs","sources":["../../../src/components/Tag/Tag.styles.ts"],"sourcesContent":[null],"names":[],"mappings":";AAIA;;;;;;AAMG;AACI,MAAM,qBAAqB,GAG9B;AACF,IAAA,OAAO,EAAE;AACP,QAAA,IAAI,EAAE;AACJ,YAAA,OAAO,EAAE,oBAAoB;AAC7B,YAAA,WAAW,EAAE,eAAe;AAC5B,YAAA,KAAK,EAAE,gBAAgB;AACxB,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,OAAO,EAAE,UAAU;AACnB,YAAA,WAAW,EAAE,UAAU;AACvB,YAAA,KAAK,EAAE,OAAO;AACf,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,aAAa;AACtB,YAAA,WAAW,EAAE,cAAc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;;;"}
@@ -7,7 +7,11 @@ export declare const Tree: {
7
7
  BranchIndicator: import("react").ForwardRefExoticComponent<import("@chakra-ui/react").TreeViewBranchIndicatorProps & import("react").RefAttributes<HTMLDivElement>>;
8
8
  BranchText: import("react").ForwardRefExoticComponent<import("@chakra-ui/react").TreeViewBranchTextProps & import("react").RefAttributes<HTMLSpanElement>>;
9
9
  BranchContent: import("react").ForwardRefExoticComponent<import("@chakra-ui/react").TreeViewBranchContentProps & import("react").RefAttributes<HTMLDivElement>>;
10
- BranchIndentGuide: import("react").ForwardRefExoticComponent<import("@chakra-ui/react").TreeViewBranchIndentGuideProps & import("react").RefAttributes<HTMLDivElement>>;
10
+ BranchIndentGuide: import("react").ForwardRefExoticComponent<import("@chakra-ui/react").TreeViewBranchIndentGuideProps & {
11
+ elbow?: boolean;
12
+ footLength?: string | number;
13
+ guideColor?: string;
14
+ } & import("react").RefAttributes<HTMLDivElement>>;
11
15
  Item: import("react").ForwardRefExoticComponent<import("@chakra-ui/react").TreeViewItemProps & import("react").RefAttributes<HTMLDivElement>>;
12
16
  ItemText: import("react").ForwardRefExoticComponent<import("@chakra-ui/react").TreeViewItemTextProps & import("react").RefAttributes<HTMLSpanElement>>;
13
17
  ItemIndicator: import("react").ForwardRefExoticComponent<import("@chakra-ui/react").TreeViewItemIndicatorProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/Tree.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;CAkBhB,CAAC"}
1
+ {"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/Tree.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;CAkBhB,CAAC"}
@@ -7,7 +7,35 @@ export type TreeBranchTriggerProps = TreeViewBranchTriggerProps;
7
7
  export type TreeBranchIndicatorProps = TreeViewBranchIndicatorProps;
8
8
  export type TreeBranchTextProps = TreeViewBranchTextProps;
9
9
  export type TreeBranchContentProps = TreeViewBranchContentProps;
10
- export type TreeBranchIndentGuideProps = TreeViewBranchIndentGuideProps;
10
+ export type TreeBranchIndentGuideProps = TreeViewBranchIndentGuideProps & {
11
+ /**
12
+ * Draw `├` / `└` guide lines instead of a plain vertical rail: every
13
+ * row gets a horizontal foot joining it to its parent rail, middle
14
+ * rows keep the vertical (`├`), and the last row of each group stops
15
+ * at its centre (`└`). Off by default to preserve the existing
16
+ * plain-vertical-rail look. See `TreeBranchIndentGuide`.
17
+ * @default false
18
+ */
19
+ elbow?: boolean;
20
+ /**
21
+ * Length of the elbow foot — the horizontal cross-stroke that joins
22
+ * the rail to the row content, drawn from the parent rail column
23
+ * toward the text. In elbow mode each level indents 4px further than
24
+ * the plain-rail default, and since the default foot length doesn't
25
+ * grow with it, the foot ends 8px short of the row text. Any Chakra
26
+ * width value. Only applies when `elbow` is set.
27
+ * @default 'calc(var(--tree-indentation) - 4px)'
28
+ */
29
+ footLength?: string | number;
30
+ /**
31
+ * Color of the guide lines (rail, elbow foot and vertical segments).
32
+ * Any Chakra color token. The default is a mode-flipping semantic
33
+ * token, so it darkens in light mode and lightens in dark mode
34
+ * automatically.
35
+ * @default 'border.default'
36
+ */
37
+ guideColor?: string;
38
+ };
11
39
  export type TreeItemProps = TreeViewItemProps;
12
40
  export type TreeItemTextProps = TreeViewItemTextProps;
13
41
  export type TreeItemIndicatorProps = TreeViewItemIndicatorProps;
@@ -1 +1 @@
1
- {"version":3,"file":"Tree.types.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/Tree.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,4BAA4B,EAC5B,mBAAmB,EACnB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,E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GAAG,UAAU,CAChD,WAAW,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC,CACnD,CAAC,CAAC,CAAC,CAAC;AAEL,MAAM,MAAM,0BAA0B,GAAG,UAAU,CACjD,WAAW,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC,CACpD,CAAC,CAAC,CAAC,CAAC;AAEL,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC/C,WAAW,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC,CAClD,CAAC,CAAC,CAAC,CAAC;AAEL,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAC7C,WAAW,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC,CAChD,CAAC,CAAC,CAAC,CAAC;AAEL,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,3 +1,7 @@
1
1
  import { TreeView as ChakraTreeView } from '@chakra-ui/react';
2
- export declare const TreeBranchIndentGuide: import("react").ForwardRefExoticComponent<ChakraTreeView.BranchIndentGuideProps & import("react").RefAttributes<HTMLDivElement>>;
2
+ export declare const TreeBranchIndentGuide: import("react").ForwardRefExoticComponent<ChakraTreeView.BranchIndentGuideProps & {
3
+ elbow?: boolean;
4
+ footLength?: string | number;
5
+ guideColor?: string;
6
+ } & import("react").RefAttributes<HTMLDivElement>>;
3
7
  //# sourceMappingURL=TreeBranchIndentGuide.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TreeBranchIndentGuide.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/TreeBranchIndentGuide.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAI9D,eAAO,MAAM,qBAAqB,kIAahC,CAAC"}
1
+ {"version":3,"file":"TreeBranchIndentGuide.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/TreeBranchIndentGuide.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA4C9D,eAAO,MAAM,qBAAqB;;;;kDAmGjC,CAAC"}
@@ -5,14 +5,113 @@ var jsxRuntime = require('react/jsx-runtime');
5
5
  var React = require('react');
6
6
  var react = require('@chakra-ui/react');
7
7
 
8
- const TreeBranchIndentGuide = React.forwardRef((props, ref) => {
9
- // Chakra v3's `branchIndentGuide` slot already renders the vertical
10
- // line via `position: absolute`, `width: 1px`, `bg: border`, with
11
- // `insetInlineStart` auto-calculated from tree depth. Don't add
12
- // `ms`/`ps` (breaks the depth math, pushes the line over content)
13
- // or `borderInlineStartWidth` (stacks a second 1px stroke on top of
14
- // the slot's own bg-painted 1px). Only override `bg` to lighten.
15
- return (jsxRuntime.jsx(react.TreeView.BranchIndentGuide, { ref: ref, bg: "border.subtle", ...props }));
8
+ // Extra per-level indentation in elbow mode. Guide-line trees read better
9
+ // with a little more horizontal air between the elbow and the row text,
10
+ // so each level indents this much further than the recipe default. The
11
+ // foot length does NOT grow with it (its default is derived from the
12
+ // original `--tree-indentation`), so the foot-to-text gap widens by the
13
+ // same amount.
14
+ const ELBOW_EXTRA_INDENT = '4px';
15
+ // The widened per-level indentation, defined on the guide's sibling rows
16
+ // so both the recipe's offset math and our pseudo-element math can share
17
+ // it. Root rows (depth 1) have no guide sibling, but their offset
18
+ // multiplies indentation by zero, so every level stays consistent.
19
+ const ELBOW_INDENT_VARS = {
20
+ '--tree-elbow-indentation': `calc(var(--tree-indentation) + ${ELBOW_EXTRA_INDENT})`,
21
+ };
22
+ // Re-derive the recipe's `--tree-indentation-offset` (which feeds
23
+ // `--tree-offset`, the row's padding-start) from the widened indentation.
24
+ // Must be set on the same elements the recipe defines it on
25
+ // (item / branch-control) — inheritance can't override those.
26
+ const ELBOW_OFFSET_VARS = {
27
+ '--tree-indentation-offset': 'calc(var(--tree-elbow-indentation) * var(--tree-depth))',
28
+ };
29
+ // The parent rail column, measured from a child row (item / branch-control).
30
+ // A row's content starts at its own `--tree-offset`, and the parent rail
31
+ // sits exactly one (widened) indentation to its left (verified against the
32
+ // recipe's offset math for both the guide and the row slots).
33
+ const ROW_RAIL_COLUMN = 'calc(var(--tree-offset) - var(--tree-elbow-indentation))';
34
+ // The same column, computed from the `branch` element itself. A branch
35
+ // only carries Ark's inline `--depth` (the recipe's `--tree-offset` is
36
+ // defined on item/branch-control, not here), so expand the recipe math:
37
+ // rail(x) = padding + indentation * (depth - 2) + icon * 0.5 * (depth - 1)
38
+ // — algebraically identical to ROW_RAIL_COLUMN for a row at `--depth`.
39
+ const BRANCH_RAIL_COLUMN = 'calc(var(--tree-padding-inline) + var(--tree-elbow-indentation) * (var(--depth) - 2) + var(--tree-icon-size) * 0.5 * (var(--depth) - 1))';
40
+ const TreeBranchIndentGuide = React.forwardRef(({ elbow = false, footLength = 'calc(var(--tree-indentation) - 4px)', guideColor = 'border.default', ...props }, ref) => {
41
+ // Chakra v3's `branchIndentGuide` slot renders ONE absolutely-positioned
42
+ // vertical line per `branchContent` (its first child), `height: 100%`,
43
+ // with `insetInlineStart` auto-calculated from tree depth. Don't add
44
+ // `ms`/`ps` (breaks the depth math) or `borderInlineStartWidth` (stacks
45
+ // a second 1px stroke on the slot's own bg-painted 1px) — only `bg`.
46
+ //
47
+ // That single full-height rail cannot form a `└` on the last row: it
48
+ // always paints past the last row's centre down to the content bottom.
49
+ // So in `elbow` mode the slot's own rail is hidden (`bg: transparent`,
50
+ // the element stays as the CSS sibling anchor) and the guide lines are
51
+ // re-drawn per row on the guide's sibling rows (`[data-part="item"]`
52
+ // leaves and `[data-part="branch"]` subtrees):
53
+ //
54
+ // - every row gets a `::before` foot — the horizontal cross-stroke
55
+ // from the rail column toward the row content, pinned to the row's
56
+ // vertical centre;
57
+ // - non-last rows get a full-height vertical segment (`├`); for a
58
+ // branch it is drawn on the `[data-part="branch"]` element so it
59
+ // passes through the whole expanded subtree, like the original rail
60
+ // (zIndex 1 for the same paint-above-row-hover reason);
61
+ // - the LAST row's segment stops at the row's vertical centre where
62
+ // the foot meets it (`└`); for a branch that means half the
63
+ // branch-control only, so an expanded last branch hangs below the
64
+ // elbow with no rail running past it.
65
+ const foot = {
66
+ content: '""',
67
+ position: 'absolute',
68
+ insetBlockStart: '50%',
69
+ insetInlineStart: ROW_RAIL_COLUMN,
70
+ width: footLength,
71
+ height: '1px',
72
+ bg: guideColor,
73
+ };
74
+ const rail = {
75
+ content: '""',
76
+ position: 'absolute',
77
+ insetBlockStart: '0',
78
+ insetInlineStart: ROW_RAIL_COLUMN,
79
+ width: '1px',
80
+ bg: guideColor,
81
+ };
82
+ const elbowCss = elbow
83
+ ? {
84
+ '& ~ [data-part="item"]': {
85
+ ...ELBOW_INDENT_VARS,
86
+ ...ELBOW_OFFSET_VARS,
87
+ },
88
+ // branch-control reads --tree-elbow-indentation by inheritance,
89
+ // but the offset override must sit on the control itself.
90
+ '& ~ [data-part="branch"]': ELBOW_INDENT_VARS,
91
+ '& ~ [data-part="branch"] > [data-part="branch-control"]': ELBOW_OFFSET_VARS,
92
+ '& ~ [data-part="item"]::before': foot,
93
+ '& ~ [data-part="branch"] > [data-part="branch-control"]::before': foot,
94
+ '& ~ [data-part="item"]:not(:last-child)::after': {
95
+ ...rail,
96
+ insetBlockEnd: '0',
97
+ },
98
+ '& ~ [data-part="item"]:last-child::after': {
99
+ ...rail,
100
+ height: '50%',
101
+ },
102
+ '& ~ [data-part="branch"]:not(:last-child)::before': {
103
+ ...rail,
104
+ insetBlockEnd: '0',
105
+ insetInlineStart: BRANCH_RAIL_COLUMN,
106
+ zIndex: 1,
107
+ },
108
+ '& ~ [data-part="branch"]:last-child > [data-part="branch-control"]::after': {
109
+ ...rail,
110
+ height: '50%',
111
+ },
112
+ }
113
+ : undefined;
114
+ return (jsxRuntime.jsx(react.TreeView.BranchIndentGuide, { ref: ref, bg: elbow ? 'transparent' : guideColor, css: elbowCss, ...props }));
16
115
  });
17
116
  TreeBranchIndentGuide.displayName = 'TreeBranchIndentGuide';
18
117
 
@@ -1 +1 @@
1
- {"version":3,"file":"TreeBranchIndentGuide.js","sources":["../../../src/components/Tree/TreeBranchIndentGuide.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","ChakraTreeView"],"mappings":";;;;;;;AAKO,MAAM,qBAAqB,GAAGA,gBAAU,CAG7C,CAAC,KAAK,EAAE,GAAG,KAAI;;;;;;;AAOf,IAAA,QACEC,cAAA,CAACC,cAAc,CAAC,iBAAiB,IAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAC,eAAe,KAAK,KAAK,EAAA,CAAI;AAEhF,CAAC;AACD,qBAAqB,CAAC,WAAW,GAAG,uBAAuB;;;;"}
1
+ {"version":3,"file":"TreeBranchIndentGuide.js","sources":["../../../src/components/Tree/TreeBranchIndentGuide.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","ChakraTreeView"],"mappings":";;;;;;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,kBAAkB,GAAG,KAAK;AAEhC;AACA;AACA;AACA;AACA,MAAM,iBAAiB,GAAG;IACxB,0BAA0B,EAAE,CAAA,+BAAA,EAAkC,kBAAkB,CAAA,CAAA,CAAG;CAC3E;AAEV;AACA;AACA;AACA;AACA,MAAM,iBAAiB,GAAG;AACxB,IAAA,2BAA2B,EACzB,yDAAyD;CACnD;AAEV;AACA;AACA;AACA;AACA,MAAM,eAAe,GACnB,0DAA0D;AAE5D;AACA;AACA;AACA;AACA;AACA,MAAM,kBAAkB,GACtB,0IAA0I;AAErI,MAAM,qBAAqB,GAAGA,gBAAU,CAI7C,CACE,EACE,KAAK,GAAG,KAAK,EACb,UAAU,GAAG,qCAAqC,EAClD,UAAU,GAAG,gBAAgB,EAC7B,GAAG,KAAK,EACT,EACD,GAAG,KACD;;;;;;;;;;;;;;;;;;;;;;;;;AAyBF,IAAA,MAAM,IAAI,GAAG;AACX,QAAA,OAAO,EAAE,IAAI;AACb,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,eAAe,EAAE,KAAK;AACtB,QAAA,gBAAg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AC;AAEH,qBAAqB,CAAC,WAAW,GAAG,uBAAuB;;;;"}
@@ -3,14 +3,113 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef } from 'react';
4
4
  import { TreeView } from '@chakra-ui/react';
5
5
 
6
- const TreeBranchIndentGuide = forwardRef((props, ref) => {
7
- // Chakra v3's `branchIndentGuide` slot already renders the vertical
8
- // line via `position: absolute`, `width: 1px`, `bg: border`, with
9
- // `insetInlineStart` auto-calculated from tree depth. Don't add
10
- // `ms`/`ps` (breaks the depth math, pushes the line over content)
11
- // or `borderInlineStartWidth` (stacks a second 1px stroke on top of
12
- // the slot's own bg-painted 1px). Only override `bg` to lighten.
13
- return (jsx(TreeView.BranchIndentGuide, { ref: ref, bg: "border.subtle", ...props }));
6
+ // Extra per-level indentation in elbow mode. Guide-line trees read better
7
+ // with a little more horizontal air between the elbow and the row text,
8
+ // so each level indents this much further than the recipe default. The
9
+ // foot length does NOT grow with it (its default is derived from the
10
+ // original `--tree-indentation`), so the foot-to-text gap widens by the
11
+ // same amount.
12
+ const ELBOW_EXTRA_INDENT = '4px';
13
+ // The widened per-level indentation, defined on the guide's sibling rows
14
+ // so both the recipe's offset math and our pseudo-element math can share
15
+ // it. Root rows (depth 1) have no guide sibling, but their offset
16
+ // multiplies indentation by zero, so every level stays consistent.
17
+ const ELBOW_INDENT_VARS = {
18
+ '--tree-elbow-indentation': `calc(var(--tree-indentation) + ${ELBOW_EXTRA_INDENT})`,
19
+ };
20
+ // Re-derive the recipe's `--tree-indentation-offset` (which feeds
21
+ // `--tree-offset`, the row's padding-start) from the widened indentation.
22
+ // Must be set on the same elements the recipe defines it on
23
+ // (item / branch-control) — inheritance can't override those.
24
+ const ELBOW_OFFSET_VARS = {
25
+ '--tree-indentation-offset': 'calc(var(--tree-elbow-indentation) * var(--tree-depth))',
26
+ };
27
+ // The parent rail column, measured from a child row (item / branch-control).
28
+ // A row's content starts at its own `--tree-offset`, and the parent rail
29
+ // sits exactly one (widened) indentation to its left (verified against the
30
+ // recipe's offset math for both the guide and the row slots).
31
+ const ROW_RAIL_COLUMN = 'calc(var(--tree-offset) - var(--tree-elbow-indentation))';
32
+ // The same column, computed from the `branch` element itself. A branch
33
+ // only carries Ark's inline `--depth` (the recipe's `--tree-offset` is
34
+ // defined on item/branch-control, not here), so expand the recipe math:
35
+ // rail(x) = padding + indentation * (depth - 2) + icon * 0.5 * (depth - 1)
36
+ // — algebraically identical to ROW_RAIL_COLUMN for a row at `--depth`.
37
+ const BRANCH_RAIL_COLUMN = 'calc(var(--tree-padding-inline) + var(--tree-elbow-indentation) * (var(--depth) - 2) + var(--tree-icon-size) * 0.5 * (var(--depth) - 1))';
38
+ const TreeBranchIndentGuide = forwardRef(({ elbow = false, footLength = 'calc(var(--tree-indentation) - 4px)', guideColor = 'border.default', ...props }, ref) => {
39
+ // Chakra v3's `branchIndentGuide` slot renders ONE absolutely-positioned
40
+ // vertical line per `branchContent` (its first child), `height: 100%`,
41
+ // with `insetInlineStart` auto-calculated from tree depth. Don't add
42
+ // `ms`/`ps` (breaks the depth math) or `borderInlineStartWidth` (stacks
43
+ // a second 1px stroke on the slot's own bg-painted 1px) — only `bg`.
44
+ //
45
+ // That single full-height rail cannot form a `└` on the last row: it
46
+ // always paints past the last row's centre down to the content bottom.
47
+ // So in `elbow` mode the slot's own rail is hidden (`bg: transparent`,
48
+ // the element stays as the CSS sibling anchor) and the guide lines are
49
+ // re-drawn per row on the guide's sibling rows (`[data-part="item"]`
50
+ // leaves and `[data-part="branch"]` subtrees):
51
+ //
52
+ // - every row gets a `::before` foot — the horizontal cross-stroke
53
+ // from the rail column toward the row content, pinned to the row's
54
+ // vertical centre;
55
+ // - non-last rows get a full-height vertical segment (`├`); for a
56
+ // branch it is drawn on the `[data-part="branch"]` element so it
57
+ // passes through the whole expanded subtree, like the original rail
58
+ // (zIndex 1 for the same paint-above-row-hover reason);
59
+ // - the LAST row's segment stops at the row's vertical centre where
60
+ // the foot meets it (`└`); for a branch that means half the
61
+ // branch-control only, so an expanded last branch hangs below the
62
+ // elbow with no rail running past it.
63
+ const foot = {
64
+ content: '""',
65
+ position: 'absolute',
66
+ insetBlockStart: '50%',
67
+ insetInlineStart: ROW_RAIL_COLUMN,
68
+ width: footLength,
69
+ height: '1px',
70
+ bg: guideColor,
71
+ };
72
+ const rail = {
73
+ content: '""',
74
+ position: 'absolute',
75
+ insetBlockStart: '0',
76
+ insetInlineStart: ROW_RAIL_COLUMN,
77
+ width: '1px',
78
+ bg: guideColor,
79
+ };
80
+ const elbowCss = elbow
81
+ ? {
82
+ '& ~ [data-part="item"]': {
83
+ ...ELBOW_INDENT_VARS,
84
+ ...ELBOW_OFFSET_VARS,
85
+ },
86
+ // branch-control reads --tree-elbow-indentation by inheritance,
87
+ // but the offset override must sit on the control itself.
88
+ '& ~ [data-part="branch"]': ELBOW_INDENT_VARS,
89
+ '& ~ [data-part="branch"] > [data-part="branch-control"]': ELBOW_OFFSET_VARS,
90
+ '& ~ [data-part="item"]::before': foot,
91
+ '& ~ [data-part="branch"] > [data-part="branch-control"]::before': foot,
92
+ '& ~ [data-part="item"]:not(:last-child)::after': {
93
+ ...rail,
94
+ insetBlockEnd: '0',
95
+ },
96
+ '& ~ [data-part="item"]:last-child::after': {
97
+ ...rail,
98
+ height: '50%',
99
+ },
100
+ '& ~ [data-part="branch"]:not(:last-child)::before': {
101
+ ...rail,
102
+ insetBlockEnd: '0',
103
+ insetInlineStart: BRANCH_RAIL_COLUMN,
104
+ zIndex: 1,
105
+ },
106
+ '& ~ [data-part="branch"]:last-child > [data-part="branch-control"]::after': {
107
+ ...rail,
108
+ height: '50%',
109
+ },
110
+ }
111
+ : undefined;
112
+ return (jsx(TreeView.BranchIndentGuide, { ref: ref, bg: elbow ? 'transparent' : guideColor, css: elbowCss, ...props }));
14
113
  });
15
114
  TreeBranchIndentGuide.displayName = 'TreeBranchIndentGuide';
16
115
 
@@ -1 +1 @@
1
- {"version":3,"file":"TreeBranchIndentGuide.mjs","sources":["../../../src/components/Tree/TreeBranchIndentGuide.tsx"],"sourcesContent":[null],"names":["_jsx","ChakraTreeView"],"mappings":";;;;;AAKO,MAAM,qBAAqB,GAAG,UAAU,CAG7C,CAAC,KAAK,EAAE,GAAG,KAAI;;;;;;;AAOf,IAAA,QACEA,GAAA,CAACC,QAAc,CAAC,iBAAiB,IAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAC,eAAe,KAAK,KAAK,EAAA,CAAI;AAEhF,CAAC;AACD,qBAAqB,CAAC,WAAW,GAAG,uBAAuB;;;;"}
1
+ {"version":3,"file":"TreeBranchIndentGuide.mjs","sources":["../../../src/components/Tree/TreeBranchIndentGuide.tsx"],"sourcesContent":[null],"names":["_jsx","ChakraTreeView"],"mappings":";;;;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,kBAAkB,GAAG,KAAK;AAEhC;AACA;AACA;AACA;AACA,MAAM,iBAAiB,GAAG;IACxB,0BAA0B,EAAE,CAAA,+BAAA,EAAkC,kBAAkB,CAAA,CAAA,CAAG;CAC3E;AAEV;AACA;AACA;AACA;AACA,MAAM,iBAAiB,GAAG;AACxB,IAAA,2BAA2B,EACzB,yDAAyD;CACnD;AAEV;AACA;AACA;AACA;AACA,MAAM,eAAe,GACnB,0DAA0D;AAE5D;AACA;AACA;AACA;AACA;AACA,MAAM,kBAAkB,GACtB,0IAA0I;AAErI,MAAM,qBAAqB,GAAG,UAAU,CAI7C,CACE,EACE,KAAK,GAAG,KAAK,EACb,UAAU,GAAG,qCAAqC,EAClD,UAAU,GAAG,gBAAgB,EAC7B,GAAG,KAAK,EACT,EACD,GAAG,KACD;;;;;;;;;;;;;;;;;;;;;;;;;AAyBF,IAAA,MAAM,IAAI,GAAG;AACX,QAAA,OAAO,EAAE,IAAI;AACb,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,eAAe,EAAE,KAAK;AACtB,QAAA,gBAAgB,EAAE,eAAe;AACjC,QAAA,KAAK,EAAE,UAAU;AACjB,QAAA,MAAM,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@@
1
- {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Link.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEjE,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IACjE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,IAAI,+GA6BhB,CAAC"}
1
+ {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Link.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEjE,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IACjE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,IAAI,+GAiChB,CAAC"}
@@ -14,7 +14,12 @@ const Link = React.forwardRef(({ color, variant, ...rest }, ref) => {
14
14
  ? errorColor
15
15
  : (typeof color === 'string' ? color : undefined) || defaultColor;
16
16
  const hoverColor = variant === 'error' ? errorHoverColor : defaultHoverColor;
17
- return (jsxRuntime.jsx(react.Link, { ref: ref, fontWeight: "semibold", wordBreak: "keep-all", color: linkColor, _hover: {
17
+ return (jsxRuntime.jsx(react.Link, { ref: ref,
18
+ // Inherit the surrounding text weight so an inline link reads as part of
19
+ // its sentence (extrabold inside an H1, body weight inside a paragraph)
20
+ // rather than a fixed-semibold patch. Color + underline carry the link
21
+ // affordance. Override with an explicit `fontWeight` when needed.
22
+ fontWeight: "inherit", wordBreak: "keep-all", color: linkColor, _hover: {
18
23
  color: hoverColor,
19
24
  textDecor: 'none',
20
25
  }, ...rest }));