@vectara/vectara-ui 15.6.1 → 15.6.2

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.
@@ -39,6 +39,7 @@ $textRhythm: $sizeM;
39
39
  margin-bottom: $textRhythm;
40
40
  }
41
41
 
42
+ // Default block styles for code and pre.
42
43
  pre:not(:has(> code)),
43
44
  code {
44
45
  display: block;
@@ -59,22 +60,63 @@ $textRhythm: $sizeM;
59
60
  }
60
61
 
61
62
  pre > code {
63
+ display: block;
62
64
  word-wrap: break-word;
63
65
  word-break: break-word;
64
66
  white-space: pre-wrap;
65
67
  font-family: var(--vui-font-family-monospace);
66
68
  margin-bottom: 0;
69
+ padding: 0;
70
+ background-color: transparent;
67
71
  }
68
72
 
69
- p pre,
70
- p code {
71
- display: inline;
72
- padding: $sizeXxxs $sizeXxs;
73
- border: none;
74
- border-radius: $sizeXs;
75
- overflow: auto;
76
- background-color: var(--vui-color-light-shade);
77
- font-family: var(--vui-font-family-monospace);
73
+ // Inline styles when nested in text-like elements.
74
+ strong,
75
+ b,
76
+ em,
77
+ i,
78
+ p,
79
+ li,
80
+ td,
81
+ th,
82
+ span,
83
+ label,
84
+ h1,
85
+ h2,
86
+ h3,
87
+ h4,
88
+ h5,
89
+ h6 {
90
+ > pre,
91
+ > code {
92
+ display: inline;
93
+ padding: $sizeXxxs $sizeXxs;
94
+ border-radius: $sizeXs;
95
+ overflow: auto;
96
+ background-color: var(--vui-color-light-shade);
97
+ font-family: var(--vui-font-family-monospace);
98
+ margin-bottom: 0;
99
+ }
100
+ }
101
+
102
+ // Block styles when nested in block-like elements.
103
+ div,
104
+ blockquote,
105
+ section,
106
+ article,
107
+ aside,
108
+ main,
109
+ nav,
110
+ header,
111
+ footer {
112
+ > pre:not(:has(> code)),
113
+ > code {
114
+ display: block;
115
+ }
116
+
117
+ > pre:has(> code) {
118
+ display: block;
119
+ }
78
120
  }
79
121
 
80
122
  blockquote {
@@ -5716,21 +5716,85 @@ h2.react-datepicker__current-month {
5716
5716
  font-family: var(--vui-font-family-monospace);
5717
5717
  }
5718
5718
  .vuiText pre > code {
5719
+ display: block;
5719
5720
  word-wrap: break-word;
5720
5721
  word-break: break-word;
5721
5722
  white-space: pre-wrap;
5722
5723
  font-family: var(--vui-font-family-monospace);
5723
5724
  margin-bottom: 0;
5725
+ padding: 0;
5726
+ background-color: transparent;
5724
5727
  }
5725
- .vuiText p pre,
5726
- .vuiText p code {
5728
+ .vuiText strong > pre,
5729
+ .vuiText strong > code,
5730
+ .vuiText b > pre,
5731
+ .vuiText b > code,
5732
+ .vuiText em > pre,
5733
+ .vuiText em > code,
5734
+ .vuiText i > pre,
5735
+ .vuiText i > code,
5736
+ .vuiText p > pre,
5737
+ .vuiText p > code,
5738
+ .vuiText li > pre,
5739
+ .vuiText li > code,
5740
+ .vuiText td > pre,
5741
+ .vuiText td > code,
5742
+ .vuiText th > pre,
5743
+ .vuiText th > code,
5744
+ .vuiText span > pre,
5745
+ .vuiText span > code,
5746
+ .vuiText label > pre,
5747
+ .vuiText label > code,
5748
+ .vuiText h1 > pre,
5749
+ .vuiText h1 > code,
5750
+ .vuiText h2 > pre,
5751
+ .vuiText h2 > code,
5752
+ .vuiText h3 > pre,
5753
+ .vuiText h3 > code,
5754
+ .vuiText h4 > pre,
5755
+ .vuiText h4 > code,
5756
+ .vuiText h5 > pre,
5757
+ .vuiText h5 > code,
5758
+ .vuiText h6 > pre,
5759
+ .vuiText h6 > code {
5727
5760
  display: inline;
5728
5761
  padding: 2px 4px;
5729
- border: none;
5730
5762
  border-radius: 8px;
5731
5763
  overflow: auto;
5732
5764
  background-color: var(--vui-color-light-shade);
5733
5765
  font-family: var(--vui-font-family-monospace);
5766
+ margin-bottom: 0;
5767
+ }
5768
+ .vuiText div > pre:not(:has(> code)),
5769
+ .vuiText div > code,
5770
+ .vuiText blockquote > pre:not(:has(> code)),
5771
+ .vuiText blockquote > code,
5772
+ .vuiText section > pre:not(:has(> code)),
5773
+ .vuiText section > code,
5774
+ .vuiText article > pre:not(:has(> code)),
5775
+ .vuiText article > code,
5776
+ .vuiText aside > pre:not(:has(> code)),
5777
+ .vuiText aside > code,
5778
+ .vuiText main > pre:not(:has(> code)),
5779
+ .vuiText main > code,
5780
+ .vuiText nav > pre:not(:has(> code)),
5781
+ .vuiText nav > code,
5782
+ .vuiText header > pre:not(:has(> code)),
5783
+ .vuiText header > code,
5784
+ .vuiText footer > pre:not(:has(> code)),
5785
+ .vuiText footer > code {
5786
+ display: block;
5787
+ }
5788
+ .vuiText div > pre:has(> code),
5789
+ .vuiText blockquote > pre:has(> code),
5790
+ .vuiText section > pre:has(> code),
5791
+ .vuiText article > pre:has(> code),
5792
+ .vuiText aside > pre:has(> code),
5793
+ .vuiText main > pre:has(> code),
5794
+ .vuiText nav > pre:has(> code),
5795
+ .vuiText header > pre:has(> code),
5796
+ .vuiText footer > pre:has(> code) {
5797
+ display: block;
5734
5798
  }
5735
5799
  .vuiText blockquote {
5736
5800
  border-left: 4px solid var(--vui-color-light-shade);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectara/vectara-ui",
3
- "version": "15.6.1",
3
+ "version": "15.6.2",
4
4
  "homepage": "./",
5
5
  "description": "Vectara's design system, codified as a React and Sass component library",
6
6
  "author": "Vectara",
@@ -95,6 +95,20 @@ export const Text = () => (
95
95
  > In Markdown's ring.`}
96
96
  </code>
97
97
 
98
+ <ol>
99
+ <li>
100
+ Choose:
101
+ <ul>
102
+ <li>
103
+ <strong>Option A:</strong> <code>EXECUTE</code>
104
+ </li>
105
+ <li>
106
+ <strong>Option B:</strong> <code>ABORT</code>
107
+ </li>
108
+ </ul>
109
+ </li>
110
+ </ol>
111
+
98
112
  <table>
99
113
  <thead>
100
114
  <tr>