allaw-ui 0.1.46 → 0.1.49

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.
@@ -158,6 +158,7 @@ function ComboBox(_a, ref) {
158
158
  React.createElement("div", { ref: chevronRef, className: "combo-box-chevron ".concat(isHovered ? "combo-box-hovered" : ""), onClick: handleChevronClick },
159
159
  React.createElement("i", { className: "allaw-icon-".concat(isInputValid ? "chevron-down" : "close") }))),
160
160
  isOpen &&
161
+ filteredItems.length > 0 &&
161
162
  createPortal(React.createElement("div", { ref: listRef, className: "combo-box-list", style: {
162
163
  top: "".concat(listPosition.top, "px"),
163
164
  left: "".concat(listPosition.left, "px"),
@@ -156,3 +156,12 @@
156
156
  background-color: #fdf2f2;
157
157
  color: #e15151;
158
158
  }
159
+
160
+ .variant-small {
161
+ font-size: 10px;
162
+ padding: 4px 6px;
163
+ font-style: normal;
164
+ font-weight: 600;
165
+ border-radius: 0.3rem;
166
+ height: fit-content;
167
+ }
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import "./AppointementStatusTag.css";
3
3
  export interface AppointementStatusTagProps {
4
4
  status: "confirmed" | "pending" | "available" | "unavailable" | "cancelled" | "passed" | "refused";
5
- variant?: "default" | "big";
5
+ variant?: "default" | "big" | "small";
6
6
  }
7
7
  declare const AppointementStatusTag: ({ status, variant, }: AppointementStatusTagProps) => React.JSX.Element;
8
8
  export default AppointementStatusTag;
@@ -24,6 +24,7 @@ var variantLabels = {
24
24
  cancelled: "RDV ANNULÉ",
25
25
  };
26
26
  var variantStyles = {
27
+ small: "variant-small",
27
28
  big: "variant-big",
28
29
  default: "variant-default",
29
30
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "0.1.46",
3
+ "version": "0.1.49",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",