@ultraviolet/plus 0.4.10 → 0.5.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.
@@ -184,7 +184,7 @@ const ContentCard = /*#__PURE__*/forwardRef((_ref14, ref) => {
184
184
  children: subtitle
185
185
  }) : null, jsx(Text, {
186
186
  as: "h3",
187
- variant: "bodyStronger",
187
+ variant: "bodyStrong",
188
188
  sentiment: "neutral",
189
189
  children: title
190
190
  })]
@@ -6,7 +6,7 @@ import { Icon } from '../../../@ultraviolet/icons/dist/components/Icon/index.js'
6
6
 
7
7
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
8
8
  const StyledStack = /*#__PURE__*/_styled(Stack, {
9
- target: "eqcw8nr2"
9
+ target: "eqcw8nr3"
10
10
  })(process.env.NODE_ENV === "production" ? {
11
11
  name: "ovk77c",
12
12
  styles: "min-width:0"
@@ -16,7 +16,7 @@ const StyledStack = /*#__PURE__*/_styled(Stack, {
16
16
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
17
17
  });
18
18
  const IconWrapper = /*#__PURE__*/_styled("div", {
19
- target: "eqcw8nr1"
19
+ target: "eqcw8nr2"
20
20
  })("display:inline-flex;background:", _ref => {
21
21
  let {
22
22
  theme
@@ -34,29 +34,59 @@ const IconWrapper = /*#__PURE__*/_styled("div", {
34
34
  return theme.radii.default;
35
35
  }, ";");
36
36
  const StyledWrapper = /*#__PURE__*/_styled("a", {
37
- target: "eqcw8nr0"
38
- })("display:block;padding:", _ref4 => {
37
+ target: "eqcw8nr1"
38
+ })("padding:", _ref4 => {
39
39
  let {
40
40
  theme
41
41
  } = _ref4;
42
42
  return theme.space['3'];
43
- }, ";text-decoration:none;&:not(:first-child){border-top:1px solid ", _ref5 => {
43
+ }, ";text-decoration:none;height:100%;&:not(:first-child){border-top:1px solid ", _ref5 => {
44
44
  let {
45
45
  theme
46
46
  } = _ref5;
47
47
  return theme.colors.neutral.border;
48
- }, ";}& ", IconWrapper, "{background:", _ref6 => {
48
+ }, ";}&:first-child{border-radius:", _ref6 => {
49
49
  let {
50
50
  theme
51
51
  } = _ref6;
52
- return theme.colors.neutral.backgroundWeak;
53
- }, ";}&:hover{background:", _ref7 => {
52
+ return theme.radii.default;
53
+ }, " ", _ref7 => {
54
54
  let {
55
55
  theme
56
56
  } = _ref7;
57
+ return theme.radii.default;
58
+ }, " 0 0;}&:last-child{border-radius:0 0 ", _ref8 => {
59
+ let {
60
+ theme
61
+ } = _ref8;
62
+ return theme.radii.default;
63
+ }, " ", _ref9 => {
64
+ let {
65
+ theme
66
+ } = _ref9;
67
+ return theme.radii.default;
68
+ }, ";}& ", IconWrapper, "{background:", _ref10 => {
69
+ let {
70
+ theme
71
+ } = _ref10;
72
+ return theme.colors.neutral.backgroundWeak;
73
+ }, ";}&:hover{background:", _ref11 => {
74
+ let {
75
+ theme
76
+ } = _ref11;
57
77
  return theme.colors.neutral.backgroundHover;
58
78
  }, ";& ", IconWrapper, "{background:none;}}");
59
- const Card = /*#__PURE__*/forwardRef((_ref8, ref) => {
79
+ const FullHeightStack = /*#__PURE__*/_styled(Stack, {
80
+ target: "eqcw8nr0"
81
+ })(process.env.NODE_ENV === "production" ? {
82
+ name: "13udsys",
83
+ styles: "height:100%"
84
+ } : {
85
+ name: "13udsys",
86
+ styles: "height:100%",
87
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
88
+ });
89
+ const Card = /*#__PURE__*/forwardRef((_ref12, ref) => {
60
90
  let {
61
91
  title,
62
92
  subtitle,
@@ -64,12 +94,12 @@ const Card = /*#__PURE__*/forwardRef((_ref8, ref) => {
64
94
  children,
65
95
  href,
66
96
  target = '_blank'
67
- } = _ref8;
97
+ } = _ref12;
68
98
  return jsx(StyledWrapper, {
69
99
  href: href,
70
100
  target: target,
71
101
  ref: ref,
72
- children: jsxs(Stack, {
102
+ children: jsxs(FullHeightStack, {
73
103
  direction: "row",
74
104
  gap: 2,
75
105
  alignItems: "center",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/plus",
3
- "version": "0.4.10",
3
+ "version": "0.5.0",
4
4
  "description": "Ultraviolet Plus",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -27,6 +27,7 @@
27
27
  ],
28
28
  "sideEffects": false,
29
29
  "type": "module",
30
+ "types": "./dist/index.d.ts",
30
31
  "exports": {
31
32
  "types": "./dist/index.d.ts",
32
33
  "default": "./dist/src/index.js"
@@ -40,16 +41,22 @@
40
41
  "devDependencies": {
41
42
  "@babel/core": "7.23.3",
42
43
  "@emotion/babel-plugin": "11.11.0",
44
+ "@emotion/react": "11.11.1",
45
+ "@emotion/styled": "11.11.0",
43
46
  "@types/react": "18.2.37",
44
47
  "@types/react-dom": "18.2.15",
48
+ "react": "18.2.0",
49
+ "react-dom": "18.2.0",
45
50
  "@ultraviolet/icons": "2.5.5"
46
51
  },
47
52
  "dependencies": {
48
53
  "@uiw/codemirror-extensions-langs": "4.21.20",
49
54
  "@uiw/codemirror-theme-material": "4.21.20",
50
55
  "@uiw/react-codemirror": "4.21.20",
56
+ "react-flatten-children": "1.1.2",
57
+ "react-intersection-observer": "9.5.3",
51
58
  "@ultraviolet/themes": "1.5.0",
52
- "@ultraviolet/ui": "1.26.2"
59
+ "@ultraviolet/ui": "1.27.0"
53
60
  },
54
61
  "scripts": {
55
62
  "build": "rollup -c ../../rollup.config.mjs"