@algolia/satellite 1.0.0-beta.136 → 1.0.0-beta.137

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.
@@ -31,6 +31,8 @@ var ApplicationAvatar = function ApplicationAvatar(_ref) {
31
31
  _ref$size = _ref.size,
32
32
  size = _ref$size === void 0 ? "medium" : _ref$size;
33
33
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
34
+ role: "img",
35
+ "aria-label": application.name || "Application's avatar",
34
36
  className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["rounded inline-flex shrink-0 items-center justify-center uppercase"]))), (0, _utils.pickApplicationColors)(application.applicationId), SIZE_CLASSNAMES[size], className),
35
37
  style: size === "small" ? {
36
38
  fontSize: "8px"
@@ -42,17 +42,20 @@ var UserAvatar = function UserAvatar(_ref) {
42
42
  return setImageLoaded(false);
43
43
  }, [user.avatar]);
44
44
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
45
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["relative overflow-hidden flex justify-center items-center rounded-full text-white uppercase transition-colors"]))), imageLoaded ? (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["bg-white"]))) : (0, _utils.getUserBackgroundClassName)((_user$email = user.email) !== null && _user$email !== void 0 ? _user$email : "no-email"), className),
45
+ role: "img",
46
+ "aria-label": imageLoaded ? (user === null || user === void 0 ? void 0 : user.name) || "User's avatar" : "User's avatar",
47
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["relative overflow-hidden flex justify-center items-center rounded-full uppercase transition-colors"]))), imageLoaded ? (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["bg-white"]))) : (0, _utils.getUserBackgroundClassName)((_user$email = user.email) !== null && _user$email !== void 0 ? _user$email : "no-email"), className),
46
48
  style: {
47
49
  width: size,
48
50
  height: size
49
51
  },
50
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
52
+ children: [!imageLoaded && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
51
53
  children: initials
52
54
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
53
55
  className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n w-full absolute top-0 left-0\n transition-opacity ", "\n "])), imageLoaded ? "opacity-100" : "opacity-0"),
54
56
  src: user.avatar,
55
- alt: imageLoaded ? "".concat(user.name || user.email, "'s avatar") : "",
57
+ role: "presentation",
58
+ alt: "",
56
59
  onLoad: function onLoad() {
57
60
  return setImageLoaded(true);
58
61
  },
@@ -20,7 +20,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
20
20
  /** APPLICATION */
21
21
  var APPLICATION_COLORS_CLASSNAMES = [
22
22
  /* eslint-disable @algolia/satellite/prefer-accent */
23
- (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["bg-grey-200 text-grey-800"]))), (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-200 text-nebula-800"]))), (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-200 text-blue-800"]))), (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["bg-green-200 text-green-800"]))), (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-200 text-pink-800"]))), (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["bg-red-200 text-red-800"]))), (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-200 text-orange-800"]))), // Darker variants
23
+ (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["bg-grey-200 text-grey-800"]))), (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-200 text-nebula-800"]))), (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-200 text-blue-900"]))), (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["bg-green-200 text-green-900"]))), (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-200 text-pink-800"]))), (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["bg-red-200 text-red-800"]))), (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-200 text-orange-900"]))), // Darker variants
24
24
  (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-300 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-300 text-nebula-900"]))), (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-300 text-blue-900"]))), (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["bg-green-300 text-green-900"]))), (0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-300 text-pink-900"]))), (0, _satellitePrefixer["default"])(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["bg-red-300 text-red-900"]))), (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-300 text-orange-900"])))
25
25
  /* eslint-enable @algolia/satellite/prefer-accent */
26
26
  ];
@@ -65,8 +65,8 @@ var getApplicationInitials = function getApplicationInitials(_ref) {
65
65
  exports.getApplicationInitials = getApplicationInitials;
66
66
  var USER_COLORS_CLASSNAMES = [
67
67
  /* eslint-disable @algolia/satellite/prefer-accent */
68
- (0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-400"]))), (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-400"]))), (0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-400"]))), (0, _satellitePrefixer["default"])(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2["default"])(["bg-green-400"]))), (0, _satellitePrefixer["default"])(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-400"]))), (0, _satellitePrefixer["default"])(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2["default"])(["bg-red-400"]))), (0, _satellitePrefixer["default"])(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-400"]))), // Darker variants
69
- (0, _satellitePrefixer["default"])(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-700"]))), (0, _satellitePrefixer["default"])(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-700"]))), (0, _satellitePrefixer["default"])(_templateObject24 || (_templateObject24 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-700"]))), (0, _satellitePrefixer["default"])(_templateObject25 || (_templateObject25 = (0, _taggedTemplateLiteral2["default"])(["bg-green-700"]))), (0, _satellitePrefixer["default"])(_templateObject26 || (_templateObject26 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-700"]))), (0, _satellitePrefixer["default"])(_templateObject27 || (_templateObject27 = (0, _taggedTemplateLiteral2["default"])(["bg-red-700"]))), (0, _satellitePrefixer["default"])(_templateObject28 || (_templateObject28 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-700"])))
68
+ (0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2["default"])(["bg-green-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2["default"])(["bg-red-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-400 text-grey-900"]))), // Darker variants
69
+ (0, _satellitePrefixer["default"])(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-700 text-white"]))), (0, _satellitePrefixer["default"])(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-700 text-white"]))), (0, _satellitePrefixer["default"])(_templateObject24 || (_templateObject24 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-700 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject25 || (_templateObject25 = (0, _taggedTemplateLiteral2["default"])(["bg-green-700 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject26 || (_templateObject26 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-700 text-white"]))), (0, _satellitePrefixer["default"])(_templateObject27 || (_templateObject27 = (0, _taggedTemplateLiteral2["default"])(["bg-red-700 text-white"]))), (0, _satellitePrefixer["default"])(_templateObject28 || (_templateObject28 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-600 text-grey-900"])))
70
70
  /* eslint-enable @algolia/satellite/prefer-accent */
71
71
  ];
72
72
 
@@ -32,7 +32,7 @@ var VARIANT_CLASSNAMES = {
32
32
  grey: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-100 border-grey-200 text-grey-700"]))),
33
33
  accent: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["bg-accent-100 border-accent-200 text-accent-700"]))),
34
34
  blue: (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-100 border-blue-200 text-blue-800"]))),
35
- green: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["bg-green-100 border-green-300 text-green-800"]))),
35
+ green: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["bg-green-100 border-green-300 text-green-900"]))),
36
36
  orange: (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-100 border-orange-300 text-orange-800"]))),
37
37
  red: (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["bg-red-100 border-red-200 text-red-700"]))),
38
38
  pink: (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-100 border-pink-200 text-pink-700"])))
@@ -40,10 +40,10 @@ var VARIANT_CLASSNAMES = {
40
40
  var VALUE_VARIANT_CLASSNAMES = {
41
41
  grey: (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["text-grey-600"]))),
42
42
  accent: (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["text-accent-600"]))),
43
- blue: (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["text-blue-700"]))),
44
- green: (0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["text-green-700"]))),
45
- orange: (0, _satellitePrefixer["default"])(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["text-orange-700"]))),
46
- red: (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["text-red-600"]))),
43
+ blue: (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["text-blue-800"]))),
44
+ green: (0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["text-green-900"]))),
45
+ orange: (0, _satellitePrefixer["default"])(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["text-orange-800"]))),
46
+ red: (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["text-red-700"]))),
47
47
  pink: (0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["text-pink-600"])))
48
48
  };
49
49
  var SIZE_CLASSNAMES = {
@@ -29,14 +29,14 @@ var buttonPlugin = plugin(function (_ref) {
29
29
  ".btn-subtle": {
30
30
  color: theme("colors.grey.600"),
31
31
  "&:hover": {
32
- background: rgba(theme("colors.grey.300"), 0.15)
32
+ backgroundColor: rgba(theme("colors.grey.300"), 0.15)
33
33
  },
34
34
  "&:focus": {
35
35
  boxShadow: "0 0 0 1px ".concat(theme("colors.accent.600"))
36
36
  },
37
37
  "&:active, &.btn-active": {
38
38
  color: theme("colors.accent.600"),
39
- background: theme("colors.accent.100"),
39
+ backgroundColor: theme("colors.accent.100"),
40
40
  boxShadow: "none"
41
41
  },
42
42
  "&:disabled, &.btn-disabled": {
@@ -52,8 +52,8 @@ var buttonPlugin = plugin(function (_ref) {
52
52
  border: "1px solid ".concat(theme("colors.grey.200")),
53
53
  boxShadow: "0 1px 0 0 ".concat(theme("colors.shadow.5")),
54
54
  "&:hover": {
55
- borderColor: theme("colors.grey.200"),
56
- backgroundImage: "linear-gradient(-180deg, ".concat(theme("colors.white"), " 0%, ").concat(theme("colors.grey.100"), " 100%)")
55
+ backgroundImage: "linear-gradient(-180deg, ".concat(theme("colors.white"), " 0%, ").concat(theme("colors.grey.100"), " 100%)"),
56
+ borderColor: theme("colors.grey.200")
57
57
  },
58
58
  "&:focus": {
59
59
  backgroundImage: "linear-gradient(-180deg, ".concat(theme("colors.white"), " 0%, ").concat(theme("colors.grey.100"), " 100%)"),
@@ -61,8 +61,8 @@ var buttonPlugin = plugin(function (_ref) {
61
61
  boxShadow: "\n 0 0 0 1px ".concat(theme("colors.accent.600"), ",\n 0 2px 0 1px ").concat(theme("colors.shadow.5"), "\n ")
62
62
  },
63
63
  "&:active, &.btn-active": {
64
- backgroundImage: theme("color.grey.100"),
65
64
  borderColor: theme("colors.grey.200"),
65
+ backgroundImage: theme("color.grey.100"),
66
66
  boxShadow: "\n inset 0 1px 4px 0 ".concat(rgba(theme("colors.grey.500"), 0.4), ",\n inset 0 1px 1px 0 ").concat(rgba(theme("colors.grey.500"), 0.4), ",\n 0 1px 0 0 ").concat(theme("colors.shadow.5"), "\n ")
67
67
  },
68
68
  "&:disabled, &.btn-disabled": {
@@ -79,8 +79,8 @@ var buttonPlugin = plugin(function (_ref) {
79
79
  border: "1px solid ".concat(theme("colors.accent.700")),
80
80
  boxShadow: "\n inset 0 1px 0 0 ".concat(rgba(theme("colors.white"), 0.06), ",\n 0 1px 0 0 ").concat(theme("colors.shadow.10"), "\n "),
81
81
  "&:hover": {
82
- backgroundImage: "linear-gradient(0deg, ".concat(theme("colors.accent.800"), " 0%, ").concat(theme("colors.accent.700"), " 100%)"),
83
82
  borderColor: theme("colors.accent.800"),
83
+ backgroundImage: "linear-gradient(0deg, ".concat(theme("colors.accent.800"), " 0%, ").concat(theme("colors.accent.700"), " 100%)"),
84
84
  boxShadow: "\n inset 0 1px 0 0 ".concat(rgba(theme("colors.white"), 0.06), ",\n 0 1px 0 0 ").concat(theme("colors.shadow.10"), "\n ")
85
85
  },
86
86
  "&:focus": {
@@ -89,7 +89,7 @@ var buttonPlugin = plugin(function (_ref) {
89
89
  boxShadow: "\n inset 0 1px 0 0 ".concat(rgba(theme("colors.white"), 0.06), ",\n 0 0 0 1px ").concat(theme("colors.accent.800"), ",\n 0 2px 0 1px ").concat(theme("colors.shadow.10"), "\n ")
90
90
  },
91
91
  "&:active, &.btn-active": {
92
- background: theme("colors.accent.700"),
92
+ backgroundColor: theme("colors.accent.700"),
93
93
  borderColor: theme("colors.accent.800"),
94
94
  boxShadow: "\n inset 0 1px 4px 0 ".concat(rgba(theme("colors.accent.900"), 0.4), ",\n inset 0 1px 1px 0 ").concat(rgba(theme("colors.accent.900"), 0.6), ",\n 0 1px 0 0 ").concat(theme("colors.shadow.5"), "\n ")
95
95
  },
@@ -13,6 +13,8 @@ var _Badge = _interopRequireDefault(require("../Badge"));
13
13
 
14
14
  var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
15
15
 
16
+ var _onlyText = _interopRequireDefault(require("../utils/onlyText"));
17
+
16
18
  var _jsxRuntime = require("react/jsx-runtime");
17
19
 
18
20
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
@@ -53,6 +55,7 @@ var Insert = function Insert(_ref) {
53
55
  contexts = _ref.contexts,
54
56
  children = _ref.children;
55
57
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("aside", {
58
+ "aria-label": (0, _onlyText["default"])(title),
56
59
  className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["inline-flex flex-col self-start p-4 bg-grey-100 rounded"]))),
57
60
  children: [contexts ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
58
61
  className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["block space-x-2 mb-4"]))),
@@ -41,9 +41,11 @@ var _Header = _interopRequireDefault(require("./components/Header"));
41
41
 
42
42
  var _Loader = _interopRequireDefault(require("./components/Loader"));
43
43
 
44
+ var _utils2 = require("./utils");
45
+
44
46
  var _jsxRuntime = require("react/jsx-runtime");
45
47
 
46
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
48
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
47
49
 
48
50
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
49
51
 
@@ -111,17 +113,13 @@ var DataTable = function DataTable(_ref) {
111
113
  if (process.env.NODE_ENV !== "production") {
112
114
  var _selection$length;
113
115
 
114
- if (itemId === undefined && (sorting.length > 0 || selectMode !== null)) {
116
+ if (itemId === undefined && (sorting.length > 0 || selectMode !== "none")) {
115
117
  console.warn("You did not provide a custom `itemId` function, but you have defined `sorting` and/or `selectMode`. This can lead to unexpected results.");
116
118
  }
117
119
 
118
120
  if (selectMode === "single" && ((_selection$length = selection === null || selection === void 0 ? void 0 : selection.length) !== null && _selection$length !== void 0 ? _selection$length : 0) > 1) {
119
121
  console.warn("You can only have one selected item at a time in single `selectMode`.");
120
122
  }
121
-
122
- if (pagination && data.length > pagination.itemsPerPage) {
123
- console.warn("`pagination.itemsPerPage` (".concat(pagination.itemsPerPage, ") doesn't match `data.length` (").concat(data.length, ")."));
124
- }
125
123
  }
126
124
 
127
125
  var _useState = (0, _react.useState)(),
@@ -136,19 +134,24 @@ var DataTable = function DataTable(_ref) {
136
134
  var computedColumns = (0, _compact["default"])([selectMode === "single" && {
137
135
  id: "_internal_singleSelect",
138
136
  accessor: "_internal_singleSelect",
139
- Header: false,
137
+ Header: function Header() {
138
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
139
+ className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["sr-only"]))),
140
+ children: "Selected row"
141
+ });
142
+ },
140
143
  Cell: function Cell(_ref2) {
141
144
  var row = _ref2.row;
142
145
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
143
- className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["flex"]))),
146
+ className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["flex"]))),
144
147
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadioGroup.RadioButton, {
145
148
  defaultChecked: row.selected,
146
149
  disabled: !row.selectable,
147
- className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["", ""])), row.hovered || row.selected ? "opacity-100" : "opacity-0 select-none")
150
+ className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["", ""])), row.hovered || row.selected ? "opacity-100" : "opacity-0 select-none")
148
151
  })
149
152
  });
150
153
  },
151
- className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["w-3"])))
154
+ className: (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["w-3"])))
152
155
  }, selectMode === "multi" && {
153
156
  id: "_internal_multiSelect",
154
157
  accessor: "_internal_multiSelect",
@@ -170,7 +173,7 @@ var DataTable = function DataTable(_ref) {
170
173
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Checkbox["default"], {
171
174
  "aria-label": locale.selectAllButton // Small hack to position the checkbox in the center of the header
172
175
  ,
173
- className: (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["absolute mb-2.5"]))),
176
+ className: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["absolute mb-2.5"]))),
174
177
  checked: isChecked,
175
178
  indeterminate: isIndeterminate,
176
179
  onClick: function onClick() {
@@ -181,15 +184,15 @@ var DataTable = function DataTable(_ref) {
181
184
  Cell: function Cell(_ref3) {
182
185
  var row = _ref3.row;
183
186
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
184
- className: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["flex"]))),
187
+ className: (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["flex"]))),
185
188
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Checkbox["default"], {
186
189
  checked: row.selected,
187
190
  disabled: !row.selectable,
188
- className: (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["", ""])), row.hovered || row.selected ? "opacity-100" : "opacity-0 select-none")
191
+ className: (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["", ""])), row.hovered || row.selected ? "opacity-100" : "opacity-0 select-none")
189
192
  })
190
193
  });
191
194
  },
192
- className: (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["w-3"])))
195
+ className: (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["w-3"])))
193
196
  }].concat((0, _toConsumableArray2["default"])(columns.map(function (c) {
194
197
  var _c$Header;
195
198
 
@@ -229,12 +232,18 @@ var DataTable = function DataTable(_ref) {
229
232
  })) === null || _sorting$find === void 0 ? void 0 : _sorting$find[1]) !== null && _sorting$find$ !== void 0 ? _sorting$find$ : "desc" : "none"];
230
233
  });
231
234
 
235
+ var shouldRenderPagination = function shouldRenderPagination() {
236
+ if ((0, _utils2.isDeterminatePagination)(pagination)) return pagination && pagination.totalItemsCount > 0;
237
+ if ((0, _utils2.isIndeterminatePagination)(pagination)) return pagination && data.length > 0;
238
+ return false;
239
+ };
240
+
232
241
  var onRowHoverChange = function onRowHoverChange(row) {
233
242
  setHoveredRowId(row === null || row === void 0 ? void 0 : row.id);
234
243
  onRowHoveredChanged === null || onRowHoveredChanged === void 0 ? void 0 : onRowHoveredChanged(row);
235
244
  };
236
245
 
237
- var handleToggleSort = function handleToggleSort(columnId, direction) {
246
+ var onToggleSort = function onToggleSort(columnId, direction) {
238
247
  var newSorting = internalSorting.map(function (_ref7) {
239
248
  var _ref8 = (0, _slicedToArray2["default"])(_ref7, 2),
240
249
  colId = _ref8[0],
@@ -253,24 +262,24 @@ var DataTable = function DataTable(_ref) {
253
262
  };
254
263
 
255
264
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
256
- className: (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["relative"]))),
265
+ className: (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["relative"]))),
257
266
  children: [status === "loading" && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
258
- className: (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["absolute bg-white/50 z-10 w-full h-full flex items-center justify-center"]))),
267
+ className: (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["absolute bg-white/50 z-10 w-full h-full flex items-center justify-center"]))),
259
268
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loader["default"], {
260
- className: (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["-mt-12"]))),
269
+ className: (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["-mt-12"]))),
261
270
  locale: locale
262
271
  })
263
272
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Table["default"], {
264
- className: (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["datatable ", " ", ""])), status === "loading" && "pointer-events-none select-none", status === "loading" && data.length === 0 && "h-48"),
273
+ className: (0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["datatable ", " ", ""])), status === "loading" && "pointer-events-none select-none", status === "loading" && data.length === 0 && "h-48"),
265
274
  highlight: false,
266
- footer: pagination !== false && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Footer["default"], {
275
+ footer: shouldRenderPagination() && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Footer["default"], {
267
276
  pagination: pagination,
268
277
  onChange: handlePaginationChange
269
278
  }),
270
279
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header["default"], {
271
280
  disabled: status !== "success" || rows.length === 0,
272
281
  columns: computedColumns,
273
- onToggleSort: handleToggleSort,
282
+ onToggleSort: onToggleSort,
274
283
  sorting: internalSorting
275
284
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Body["default"], {
276
285
  rows: rows,
@@ -8,6 +8,9 @@ var datatablePlugin = plugin(function (_ref) {
8
8
  theme = _ref.theme;
9
9
  addComponents({
10
10
  ".datatable": {
11
+ th: {
12
+ padding: "0 !important"
13
+ },
11
14
  "tr.row-disabled td": {
12
15
  cursor: "not-allowed"
13
16
  },
@@ -3,6 +3,7 @@ import type { AdvancedColumnDefinition, SortingDirection } from "../types";
3
3
  export interface HeaderCellProps<Item> extends HTMLAttributes<HTMLTableCellElement> {
4
4
  column: AdvancedColumnDefinition<Item>;
5
5
  disabled?: boolean;
6
+ isSortingEnabled?: boolean;
6
7
  sortingDirection?: SortingDirection;
7
8
  onToggleSort: (columnId: string, sortingDirection: SortingDirection) => void;
8
9
  children: ReactNode;
@@ -23,7 +23,7 @@ var _jsxRuntime = require("react/jsx-runtime");
23
23
 
24
24
  var _excluded = ["sortingDirection", "onToggleSort", "column", "disabled", "children"];
25
25
 
26
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
26
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
27
27
 
28
28
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
29
29
 
@@ -43,22 +43,32 @@ var HeaderCell = function HeaderCell(_ref) {
43
43
  disabled = _ref.disabled,
44
44
  children = _ref.children,
45
45
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
46
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("th", _objectSpread(_objectSpread({}, props), {}, {
47
- "aria-sort": sortingDirection === "desc" ? "descending" : sortingDirection === "asc" ? "ascending" : "none",
46
+ var InternalCellComponent = sort && !disabled ? "button" : "span";
47
+
48
+ var handleSorting = function handleSorting() {
49
+ if (disabled) return;
50
+ onToggleSort(id, sortingDirection === "desc" ? "asc" : sortingDirection === "asc" ? "none" : "desc");
51
+ };
52
+
53
+ var sortButtonProps = sort ? {
48
54
  onClick: function onClick() {
49
- return sort && !disabled && onToggleSort(id, sortingDirection === "desc" ? "asc" : sortingDirection === "asc" ? "none" : "desc");
55
+ return handleSorting();
50
56
  },
51
- className: (0, _clsx["default"])(className, (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["group ", ""])), sort && (disabled ? "cursor-not-allowed" : "cursor-pointer"))),
52
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
53
- className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["inline-flex items-center"]))),
57
+ className: disabled ? (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["cursor-not-allowed"]))) : (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["cursor-pointer"])))
58
+ } : {};
59
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("th", _objectSpread(_objectSpread({}, props), {}, {
60
+ "aria-sort": sortingDirection === "desc" ? "descending" : sortingDirection === "asc" ? "ascending" : "none",
61
+ className: className,
62
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(InternalCellComponent, _objectSpread(_objectSpread({}, sortButtonProps), {}, {
63
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["px-4 py-[14px] inline-flex items-center focus:outline-none focus:text-accent-600"]))), sortButtonProps.className),
54
64
  children: [children, sort ? sortingDirection === "desc" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFeather.ChevronDown, {
55
65
  className: iconClassName
56
66
  }) : sortingDirection === "asc" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFeather.ChevronUp, {
57
67
  className: iconClassName
58
68
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFeather.ChevronDown, {
59
- className: (0, _clsx["default"])(iconClassName, (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["text-grey-300 opacity-0 group-hover:opacity-100"]))))
69
+ className: (0, _clsx["default"])(iconClassName, (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["text-grey-300"]))))
60
70
  }) : null]
61
- })
71
+ }))
62
72
  }));
63
73
  };
64
74
 
package/cjs/Tag/Tag.js CHANGED
@@ -41,8 +41,8 @@ var DEFAULT_TAG_LOCALE = {
41
41
  var VARIANT_CLASSNAMES = {
42
42
  accent: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["bg-accent-100 border-accent-200 text-accent-700"]))),
43
43
  grey: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-100 border-grey-200 text-grey-700"]))),
44
- blue: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-100 border-blue-200 text-blue-700"]))),
45
- green: (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["bg-green-100 border-green-300 text-green-800"]))),
44
+ blue: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-100 border-blue-200 text-blue-800"]))),
45
+ green: (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["bg-green-100 border-green-300 text-green-900"]))),
46
46
  orange: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-100 border-orange-300 text-orange-800"]))),
47
47
  red: (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["bg-red-100 border-red-200 text-red-700"]))),
48
48
  pink: (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-100 border-pink-200 text-pink-700"])))
@@ -101,7 +101,6 @@ var Tag = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
101
101
 
102
102
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", _objectSpread(_objectSpread({}, props), {}, {
103
103
  className: tagClassName,
104
- "aria-label": title,
105
104
  ref: ref,
106
105
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
107
106
  className: (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["truncate flex-1"]))),
@@ -0,0 +1,3 @@
1
+ import type { ReactNode } from "react";
2
+ declare const onlyText: (children: ReactNode | ReactNode[]) => string;
3
+ export default onlyText;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = require("react");
9
+
10
+ var hasChildren = function hasChildren(element) {
11
+ return /*#__PURE__*/(0, _react.isValidElement)(element) && Boolean(element.props.children);
12
+ };
13
+
14
+ var childToString = function childToString(child) {
15
+ if (typeof child === "undefined" || child === null || typeof child === "boolean") {
16
+ return "";
17
+ }
18
+
19
+ if (JSON.stringify(child) === "{}") {
20
+ return "";
21
+ }
22
+
23
+ return child.toString();
24
+ }; // Code stolen from `react-children-utils`
25
+ // @see https://github.com/fernandopasik/react-children-utilities/blob/main/src/lib/onlyText.ts
26
+
27
+
28
+ var onlyText = function onlyText(children) {
29
+ if (!(children instanceof Array) && ! /*#__PURE__*/(0, _react.isValidElement)(children)) {
30
+ return childToString(children);
31
+ }
32
+
33
+ return _react.Children.toArray(children).reduce(function (text, child) {
34
+ var newText = "";
35
+
36
+ if ( /*#__PURE__*/(0, _react.isValidElement)(child) && hasChildren(child)) {
37
+ newText = onlyText(child.props.children);
38
+ } else if ( /*#__PURE__*/(0, _react.isValidElement)(child) && !hasChildren(child)) {
39
+ newText = "";
40
+ } else {
41
+ newText = childToString(child);
42
+ }
43
+
44
+ return text.concat(newText);
45
+ }, "");
46
+ };
47
+
48
+ var _default = onlyText;
49
+ exports["default"] = _default;
@@ -18,6 +18,8 @@ export var ApplicationAvatar = function ApplicationAvatar(_ref) {
18
18
  _ref$size = _ref.size,
19
19
  size = _ref$size === void 0 ? "medium" : _ref$size;
20
20
  return /*#__PURE__*/_jsx("div", {
21
+ role: "img",
22
+ "aria-label": application.name || "Application's avatar",
21
23
  className: cx(stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["rounded inline-flex shrink-0 items-center justify-center uppercase"]))), pickApplicationColors(application.applicationId), SIZE_CLASSNAMES[size], className),
22
24
  style: size === "small" ? {
23
25
  fontSize: "8px"
@@ -29,17 +29,20 @@ export var UserAvatar = function UserAvatar(_ref) {
29
29
  return setImageLoaded(false);
30
30
  }, [user.avatar]);
31
31
  return /*#__PURE__*/_jsxs("div", {
32
- className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["relative overflow-hidden flex justify-center items-center rounded-full text-white uppercase transition-colors"]))), imageLoaded ? stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["bg-white"]))) : getUserBackgroundClassName((_user$email = user.email) !== null && _user$email !== void 0 ? _user$email : "no-email"), className),
32
+ role: "img",
33
+ "aria-label": imageLoaded ? (user === null || user === void 0 ? void 0 : user.name) || "User's avatar" : "User's avatar",
34
+ className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["relative overflow-hidden flex justify-center items-center rounded-full uppercase transition-colors"]))), imageLoaded ? stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["bg-white"]))) : getUserBackgroundClassName((_user$email = user.email) !== null && _user$email !== void 0 ? _user$email : "no-email"), className),
33
35
  style: {
34
36
  width: size,
35
37
  height: size
36
38
  },
37
- children: [/*#__PURE__*/_jsx("span", {
39
+ children: [!imageLoaded && /*#__PURE__*/_jsx("span", {
38
40
  children: initials
39
41
  }), /*#__PURE__*/_jsx("img", {
40
42
  className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n w-full absolute top-0 left-0\n transition-opacity ", "\n "])), imageLoaded ? "opacity-100" : "opacity-0"),
41
43
  src: user.avatar,
42
- alt: imageLoaded ? "".concat(user.name || user.email, "'s avatar") : "",
44
+ role: "presentation",
45
+ alt: "",
43
46
  onLoad: function onLoad() {
44
47
  return setImageLoaded(true);
45
48
  },
@@ -9,7 +9,7 @@ import hashCode from "../utils/hashCode";
9
9
  /** APPLICATION */
10
10
  var APPLICATION_COLORS_CLASSNAMES = [
11
11
  /* eslint-disable @algolia/satellite/prefer-accent */
12
- stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["bg-grey-200 text-grey-800"]))), stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["bg-nebula-200 text-nebula-800"]))), stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["bg-blue-200 text-blue-800"]))), stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["bg-green-200 text-green-800"]))), stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["bg-pink-200 text-pink-800"]))), stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["bg-red-200 text-red-800"]))), stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["bg-orange-200 text-orange-800"]))), // Darker variants
12
+ stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["bg-grey-200 text-grey-800"]))), stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["bg-nebula-200 text-nebula-800"]))), stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["bg-blue-200 text-blue-900"]))), stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["bg-green-200 text-green-900"]))), stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["bg-pink-200 text-pink-800"]))), stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["bg-red-200 text-red-800"]))), stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["bg-orange-200 text-orange-900"]))), // Darker variants
13
13
  stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["bg-grey-300 text-grey-900"]))), stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["bg-nebula-300 text-nebula-900"]))), stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["bg-blue-300 text-blue-900"]))), stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["bg-green-300 text-green-900"]))), stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["bg-pink-300 text-pink-900"]))), stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["bg-red-300 text-red-900"]))), stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["bg-orange-300 text-orange-900"])))
14
14
  /* eslint-enable @algolia/satellite/prefer-accent */
15
15
  ];
@@ -45,8 +45,8 @@ export var getApplicationInitials = function getApplicationInitials(_ref) {
45
45
 
46
46
  var USER_COLORS_CLASSNAMES = [
47
47
  /* eslint-disable @algolia/satellite/prefer-accent */
48
- stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["bg-grey-400"]))), stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["bg-nebula-400"]))), stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["bg-blue-400"]))), stl(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["bg-green-400"]))), stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["bg-pink-400"]))), stl(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["bg-red-400"]))), stl(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["bg-orange-400"]))), // Darker variants
49
- stl(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["bg-grey-700"]))), stl(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["bg-nebula-700"]))), stl(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["bg-blue-700"]))), stl(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["bg-green-700"]))), stl(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["bg-pink-700"]))), stl(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["bg-red-700"]))), stl(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["bg-orange-700"])))
48
+ stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["bg-grey-400 text-grey-900"]))), stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["bg-nebula-400 text-grey-900"]))), stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["bg-blue-400 text-grey-900"]))), stl(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["bg-green-400 text-grey-900"]))), stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["bg-pink-400 text-grey-900"]))), stl(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["bg-red-400 text-grey-900"]))), stl(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["bg-orange-400 text-grey-900"]))), // Darker variants
49
+ stl(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["bg-grey-700 text-white"]))), stl(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["bg-nebula-700 text-white"]))), stl(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["bg-blue-700 text-grey-900"]))), stl(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["bg-green-700 text-grey-900"]))), stl(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["bg-pink-700 text-white"]))), stl(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["bg-red-700 text-white"]))), stl(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["bg-orange-600 text-grey-900"])))
50
50
  /* eslint-enable @algolia/satellite/prefer-accent */
51
51
  ];
52
52
  export var getUserBackgroundClassName = function getUserBackgroundClassName(email) {
@@ -18,7 +18,7 @@ var VARIANT_CLASSNAMES = {
18
18
  grey: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["bg-grey-100 border-grey-200 text-grey-700"]))),
19
19
  accent: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["bg-accent-100 border-accent-200 text-accent-700"]))),
20
20
  blue: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["bg-blue-100 border-blue-200 text-blue-800"]))),
21
- green: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["bg-green-100 border-green-300 text-green-800"]))),
21
+ green: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["bg-green-100 border-green-300 text-green-900"]))),
22
22
  orange: stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["bg-orange-100 border-orange-300 text-orange-800"]))),
23
23
  red: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["bg-red-100 border-red-200 text-red-700"]))),
24
24
  pink: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["bg-pink-100 border-pink-200 text-pink-700"])))
@@ -26,10 +26,10 @@ var VARIANT_CLASSNAMES = {
26
26
  var VALUE_VARIANT_CLASSNAMES = {
27
27
  grey: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["text-grey-600"]))),
28
28
  accent: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["text-accent-600"]))),
29
- blue: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["text-blue-700"]))),
30
- green: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["text-green-700"]))),
31
- orange: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["text-orange-700"]))),
32
- red: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["text-red-600"]))),
29
+ blue: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["text-blue-800"]))),
30
+ green: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["text-green-900"]))),
31
+ orange: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["text-orange-800"]))),
32
+ red: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["text-red-700"]))),
33
33
  pink: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["text-pink-600"])))
34
34
  };
35
35
  var SIZE_CLASSNAMES = {