@vectara/vectara-ui 19.6.0 → 20.1.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.
Files changed (40) hide show
  1. package/lib/components/accordion/_index.scss +1 -1
  2. package/lib/components/button/buttonSecondary.scss +5 -5
  3. package/lib/components/callout/_index.scss +10 -10
  4. package/lib/components/card/_index.scss +0 -1
  5. package/lib/components/chat/_index.scss +2 -2
  6. package/lib/components/chip/_index.scss +1 -1
  7. package/lib/components/complexConfigurationButton/_index.scss +1 -1
  8. package/lib/components/context/Theme.d.ts +20 -22
  9. package/lib/components/context/Theme.js +56 -57
  10. package/lib/components/flex/FlexContainer.d.ts +4 -26
  11. package/lib/components/flex/types.d.ts +6 -0
  12. package/lib/components/flex/types.js +10 -0
  13. package/lib/components/form/superCheckboxGroup/_index.scss +1 -1
  14. package/lib/components/form/superRadioGroup/_index.scss +1 -1
  15. package/lib/components/icon/_index.scss +10 -10
  16. package/lib/components/image/_index.scss +1 -1
  17. package/lib/components/list/_index.scss +1 -1
  18. package/lib/components/menu/_index.scss +3 -3
  19. package/lib/components/optionsList/_index.scss +6 -6
  20. package/lib/components/patch/VuiPatch.d.ts +1 -1
  21. package/lib/components/patch/VuiPatch.js +5 -0
  22. package/lib/components/patch/_index.scss +2 -1
  23. package/lib/components/popover/Popover.d.ts +4 -1
  24. package/lib/components/popover/Popover.js +4 -2
  25. package/lib/components/progressBar/_index.scss +5 -5
  26. package/lib/components/prompt/_index.scss +2 -2
  27. package/lib/components/searchInput/_index.scss +1 -1
  28. package/lib/components/skeleton/_index.scss +5 -5
  29. package/lib/components/status/Status.d.ts +4 -1
  30. package/lib/components/status/Status.js +2 -2
  31. package/lib/components/steps/_index.scss +3 -3
  32. package/lib/components/summary/_index.scss +1 -1
  33. package/lib/components/tabs/_open.scss +1 -1
  34. package/lib/styles/index.css +81 -57
  35. package/package.json +1 -1
  36. package/src/docs/pages/colorPalette/NeutralColors.tsx +1 -4
  37. package/src/docs/pages/colorPalette/SemanticColors.tsx +10 -10
  38. package/src/docs/pages/patch/Sizes.tsx +1 -1
  39. package/src/docs/pages/popover/Popover.tsx +1 -0
  40. package/src/docs/pages/status/Status.tsx +44 -2
@@ -9,40 +9,40 @@ const families = [
9
9
  name: "Accent",
10
10
  swatches: [
11
11
  { name: "Shade", cssVariable: "--vui-color-accent-shade", value: "#5f30c3" },
12
- { name: "Light shade", cssVariable: "--vui-color-accent-light-shade", value: "50% opacity" },
13
- { name: "Lighter shade", cssVariable: "--vui-color-accent-lighter-shade", value: "#eee7ff" }
12
+ { name: "Border", cssVariable: "--vui-color-accent-border", value: "50% opacity" },
13
+ { name: "Background", cssVariable: "--vui-color-accent-background", value: "#eee7ff" }
14
14
  ]
15
15
  },
16
16
  {
17
17
  name: "Primary",
18
18
  swatches: [
19
19
  { name: "Shade", cssVariable: "--vui-color-primary-shade", value: "#045dda" },
20
- { name: "Light shade", cssVariable: "--vui-color-primary-light-shade", value: "50% opacity" },
21
- { name: "Lighter shade", cssVariable: "--vui-color-primary-lighter-shade", value: "#f1f7ff" }
20
+ { name: "Border", cssVariable: "--vui-color-primary-border", value: "50% opacity" },
21
+ { name: "Background", cssVariable: "--vui-color-primary-background", value: "#f1f7ff" }
22
22
  ]
23
23
  },
24
24
  {
25
25
  name: "Success",
26
26
  swatches: [
27
27
  { name: "Shade", cssVariable: "--vui-color-success-shade", value: "#249719" },
28
- { name: "Light shade", cssVariable: "--vui-color-success-light-shade", value: "50% opacity" },
29
- { name: "Lighter shade", cssVariable: "--vui-color-success-lighter-shade", value: "#e2f2e0" }
28
+ { name: "Border", cssVariable: "--vui-color-success-border", value: "50% opacity" },
29
+ { name: "Background", cssVariable: "--vui-color-success-background", value: "#e2f2e0" }
30
30
  ]
31
31
  },
32
32
  {
33
33
  name: "Warning",
34
34
  swatches: [
35
35
  { name: "Shade", cssVariable: "--vui-color-warning-shade", value: "#a86f1b" },
36
- { name: "Light shade", cssVariable: "--vui-color-warning-light-shade", value: "50% opacity" },
37
- { name: "Lighter shade", cssVariable: "--vui-color-warning-lighter-shade", value: "#ffeed4" }
36
+ { name: "Border", cssVariable: "--vui-color-warning-border", value: "50% opacity" },
37
+ { name: "Background", cssVariable: "--vui-color-warning-background", value: "#ffeed4" }
38
38
  ]
39
39
  },
40
40
  {
41
41
  name: "Danger",
42
42
  swatches: [
43
43
  { name: "Shade", cssVariable: "--vui-color-danger-shade", value: "#d22d2d" },
44
- { name: "Light shade", cssVariable: "--vui-color-danger-light-shade", value: "50% opacity" },
45
- { name: "Lighter shade", cssVariable: "--vui-color-danger-lighter-shade", value: "#fff1f1" }
44
+ { name: "Border", cssVariable: "--vui-color-danger-border", value: "50% opacity" },
45
+ { name: "Background", cssVariable: "--vui-color-danger-background", value: "#fff1f1" }
46
46
  ]
47
47
  }
48
48
  ];
@@ -8,7 +8,7 @@ export const Sizes = () => {
8
8
  <VuiFlexContainer spacing="m" wrap>
9
9
  {sizes.map((size) => (
10
10
  <div>
11
- <VuiPatch color="indigo" size={size}>
11
+ <VuiPatch color="primary" size={size}>
12
12
  <VuiIcon>
13
13
  <BiCompass />
14
14
  </VuiIcon>
@@ -49,6 +49,7 @@ export const Popover = () => {
49
49
  isOpen={isOpen}
50
50
  setIsOpen={() => setIsOpen(!isOpen)}
51
51
  header="Tribes"
52
+ tooltip="Select a tribe"
52
53
  button={
53
54
  <VuiButtonSecondary
54
55
  color="neutral"
@@ -1,4 +1,4 @@
1
- import { VuiSpacer, VuiStatus } from "../../../lib";
1
+ import { VuiSpacer, VuiStatus, VuiTitle } from "../../../lib";
2
2
 
3
3
  export const Status = () => {
4
4
  return (
@@ -17,7 +17,49 @@ export const Status = () => {
17
17
 
18
18
  <VuiStatus status="info" label="Info" />
19
19
 
20
- <VuiSpacer size="m" />
20
+ <VuiSpacer size="l" />
21
+
22
+ <div style={{ width: "300px" }}>
23
+ <VuiTitle size="s">
24
+ <h3>Multiline message</h3>
25
+ </VuiTitle>
26
+
27
+ <VuiSpacer size="m" />
28
+
29
+ <VuiStatus
30
+ status="error"
31
+ label="A multiline error message. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam quis placerat sem, ut mattis sapien."
32
+ gap="l"
33
+ align="start"
34
+ />
35
+
36
+ <VuiSpacer size="m" />
37
+
38
+ <VuiStatus
39
+ status="warning"
40
+ label="A multiline warning message. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam quis placerat sem, ut mattis sapien."
41
+ gap="l"
42
+ align="start"
43
+ />
44
+
45
+ <VuiSpacer size="m" />
46
+
47
+ <VuiStatus
48
+ status="success"
49
+ label="A multiline success message. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam quis placerat sem, ut mattis sapien."
50
+ gap="l"
51
+ align="start"
52
+ />
53
+
54
+ <VuiSpacer size="m" />
55
+
56
+ <VuiStatus
57
+ status="info"
58
+ label="A multiline info message. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam quis placerat sem, ut mattis sapien."
59
+ gap="l"
60
+ align="start"
61
+ />
62
+ </div>
21
63
  </>
22
64
  );
23
65
  };