@luscii-healthtech/web-ui 2.12.0 → 2.12.3

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.
@@ -1,16 +1,17 @@
1
1
  import React from "react";
2
+ declare type Spacing = "none" | "small" | "medium" | "large";
2
3
  declare type FlexContainerBase = {
3
4
  alignItems?: "center" | "start" | "end";
4
5
  justifyContent?: "center" | "start" | "end" | "between";
5
6
  position?: "static" | "fixed" | "absolute" | "relative" | "sticky";
6
- verticallySpaced?: boolean;
7
- horizontallySpaced?: boolean;
7
+ verticalSpacing?: Spacing;
8
+ horizontalSpacing?: Spacing;
8
9
  hasPadding?: boolean;
9
10
  };
10
11
  export declare type FlexContainerBaseProps = FlexContainerBase & {
11
12
  children: React.ReactNode;
12
13
  };
13
- export declare type FlexContainerProps = Omit<FlexContainerBaseProps, "verticallySpaced" | "horizontallySpaced"> & {
14
- spaced?: boolean;
14
+ export declare type FlexContainerProps = Omit<FlexContainerBaseProps, "verticalSpacing" | "horizontalSpacing"> & {
15
+ spacing?: Spacing;
15
16
  };
16
17
  export {};
@@ -651,6 +651,18 @@ video {
651
651
  margin-left: calc(1.5rem * calc(1 - var(--space-x-reverse)));
652
652
  }
653
653
 
654
+ .space-y-8 > :not(template) ~ :not(template) {
655
+ --space-y-reverse: 0;
656
+ margin-top: calc(2rem * calc(1 - var(--space-y-reverse)));
657
+ margin-bottom: calc(2rem * var(--space-y-reverse));
658
+ }
659
+
660
+ .space-x-8 > :not(template) ~ :not(template) {
661
+ --space-x-reverse: 0;
662
+ margin-right: calc(2rem * var(--space-x-reverse));
663
+ margin-left: calc(2rem * calc(1 - var(--space-x-reverse)));
664
+ }
665
+
654
666
  .divide-y > :not(template) ~ :not(template) {
655
667
  --divide-y-reverse: 0;
656
668
  border-top-width: calc(1px * calc(1 - var(--divide-y-reverse)));
@@ -1185,6 +1197,10 @@ video {
1185
1197
  flex-grow: 1;
1186
1198
  }
1187
1199
 
1200
+ .flex-shrink-0 {
1201
+ flex-shrink: 0;
1202
+ }
1203
+
1188
1204
  .order-1 {
1189
1205
  order: 1;
1190
1206
  }
@@ -1233,10 +1249,6 @@ video {
1233
1249
  height: 3rem;
1234
1250
  }
1235
1251
 
1236
- .h-13 {
1237
- height: 3.25rem;
1238
- }
1239
-
1240
1252
  .h-22 {
1241
1253
  height: 5.5rem;
1242
1254
  }
@@ -86,8 +86,10 @@ function _objectWithoutPropertiesLoose(source, excluded) {
86
86
  var FlexContainer = function FlexContainer(props) {
87
87
  var children = props.children,
88
88
  alignItems = props.alignItems,
89
- verticallySpaced = props.verticallySpaced,
90
- horizontallySpaced = props.horizontallySpaced,
89
+ _props$verticalSpacin = props.verticalSpacing,
90
+ verticalSpacing = _props$verticalSpacin === void 0 ? "none" : _props$verticalSpacin,
91
+ _props$horizontalSpac = props.horizontalSpacing,
92
+ horizontalSpacing = _props$horizontalSpac === void 0 ? "none" : _props$horizontalSpac,
91
93
  justifyContent = props.justifyContent,
92
94
  hasPadding = props.hasPadding,
93
95
  _props$position = props.position,
@@ -97,11 +99,11 @@ var FlexContainer = function FlexContainer(props) {
97
99
  className: classNames("flex w-full", {
98
100
  "flex-row": type === "row",
99
101
  "flex-col": type === "column",
100
- "relative": position === "relative",
101
- "absolute": position === "absolute",
102
- "static": position === "static",
103
- "fixed": position === "fixed",
104
- "sticky": position === "sticky",
102
+ relative: position === "relative",
103
+ absolute: position === "absolute",
104
+ static: position === "static",
105
+ fixed: position === "fixed",
106
+ sticky: position === "sticky",
105
107
  "justify-center": justifyContent === "center",
106
108
  "justify-start": justifyContent === "start",
107
109
  "justify-end": justifyContent === "end",
@@ -109,14 +111,18 @@ var FlexContainer = function FlexContainer(props) {
109
111
  "items-start": alignItems === "start",
110
112
  "items-center": alignItems === "center",
111
113
  "items-end": alignItems === "end",
112
- "space-x-4": horizontallySpaced,
113
- "space-y-4": verticallySpaced,
114
+ "space-x-2": horizontalSpacing === "small",
115
+ "space-x-4": horizontalSpacing === "medium",
116
+ "space-x-8": horizontalSpacing === "large",
117
+ "space-y-2": verticalSpacing === "small",
118
+ "space-y-4": verticalSpacing === "medium",
119
+ "space-y-8": verticalSpacing === "large",
114
120
  "p-4": hasPadding
115
121
  })
116
122
  }, children);
117
123
  };
118
124
 
119
- var _excluded = ["children", "spaced"];
125
+ var _excluded = ["children", "spacing"];
120
126
  /**
121
127
  * Container to be used for layouting instead of divs around the project.
122
128
  * The spacing here has been coded according to our guidelines.
@@ -124,17 +130,17 @@ var _excluded = ["children", "spaced"];
124
130
 
125
131
  var FlexColumn = function FlexColumn(props) {
126
132
  var children = props.children,
127
- _props$spaced = props.spaced,
128
- spaced = _props$spaced === void 0 ? true : _props$spaced,
133
+ _props$spacing = props.spacing,
134
+ spacing = _props$spacing === void 0 ? "medium" : _props$spacing,
129
135
  rest = _objectWithoutPropertiesLoose(props, _excluded);
130
136
 
131
137
  return /*#__PURE__*/React__default.createElement(FlexContainer, _extends({}, rest, {
132
138
  type: "column",
133
- verticallySpaced: spaced
139
+ verticalSpacing: spacing
134
140
  }), children);
135
141
  };
136
142
 
137
- var _excluded$1 = ["children", "spaced"];
143
+ var _excluded$1 = ["children", "spacing"];
138
144
  /**
139
145
  * Container to be used for layouting instead of divs around the project.
140
146
  * The spacing here has been coded according to our guidelines.
@@ -142,13 +148,13 @@ var _excluded$1 = ["children", "spaced"];
142
148
 
143
149
  var FlexRow = function FlexRow(props) {
144
150
  var children = props.children,
145
- _props$spaced = props.spaced,
146
- spaced = _props$spaced === void 0 ? true : _props$spaced,
151
+ _props$spacing = props.spacing,
152
+ spacing = _props$spacing === void 0 ? "medium" : _props$spacing,
147
153
  rest = _objectWithoutPropertiesLoose(props, _excluded$1);
148
154
 
149
155
  return /*#__PURE__*/React__default.createElement(FlexContainer, _extends({}, rest, {
150
156
  type: "row",
151
- horizontallySpaced: spaced
157
+ horizontalSpacing: spacing
152
158
  }), children);
153
159
  };
154
160
 
@@ -1037,7 +1043,7 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
1037
1043
 
1038
1044
  var isClearIconVisible = clearable && value;
1039
1045
  return /*#__PURE__*/React__default.createElement(FlexRow, {
1040
- spaced: false,
1046
+ spacing: "none",
1041
1047
  "data-test-id": "input-component-container",
1042
1048
  position: "relative"
1043
1049
  }, /*#__PURE__*/React__default.createElement("span", {
@@ -1150,7 +1156,7 @@ var ButtonV2 = function ButtonV2(_ref) {
1150
1156
  return /*#__PURE__*/React__default.createElement("span", null, "Invalid props passed to this component.");
1151
1157
  }
1152
1158
 
1153
- var buttonClassName = classNames(["h-11", "relative flex flex-row justify-center items-center", "border", "transition-outline transition-colors duration-300 ease-in-out", "rounded-full", "leading-none", "shadow-sm", "cursor-pointer", "focus:outline-primary", "group"], {
1159
+ var buttonClassName = classNames(["h-11", "relative flex flex-row justify-center items-center", "border", "transition-outline transition-colors duration-300 ease-in-out", "rounded-full", "leading-none", "shadow-sm", "cursor-pointer", "focus:outline-primary", "group", "flex-shrink-0"], {
1154
1160
  "w-11": !text && icon,
1155
1161
  "pl-4 pr-6": text && icon,
1156
1162
  "px-4": text && !icon
@@ -4051,7 +4057,7 @@ var NotificationBanner = function NotificationBanner(props) {
4051
4057
  stretch = _props$stretch === void 0 ? true : _props$stretch,
4052
4058
  _props$centerContent = props.centerContent,
4053
4059
  centerContent = _props$centerContent === void 0 ? false : _props$centerContent;
4054
- var classes = classNames("px-6 py-4 h-13 flex flex-row items-center border border-solid rounded", props.className, {
4060
+ var classes = classNames("px-6 py-4 min-h-13 flex flex-row items-center border border-solid rounded", props.className, {
4055
4061
  "bg-slate-100 border-slate-300 text-slate-700": props.color === "base",
4056
4062
  "bg-blue-50 border-blue-700 text-blue-800": props.color === "blue",
4057
4063
  "bg-red-50 border-red-700 text-red-700": props.color === "red",