@algolia/satellite 1.0.0-beta.176 → 1.0.0-beta.178

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,6 +1,6 @@
1
1
  import type { FC, HTMLAttributes } from "react";
2
2
  import type { Notification } from "./types";
3
3
  export declare type ToastLocale = Notification["locale"];
4
- export declare type ToastProps = Omit<Notification, "id" | "content" | "autoDismissAfter"> & HTMLAttributes<HTMLElement>;
4
+ export declare type ToastProps = Omit<Notification, "id" | "content" | "autoDismissAfter"> & Omit<HTMLAttributes<HTMLElement>, "title">;
5
5
  export declare const Toast: FC<ToastProps>;
6
6
  export default Toast;
@@ -69,9 +69,11 @@ var Toast = exports.Toast = function Toast(_ref) {
69
69
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
70
70
  className: (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["p-4 flex"]))),
71
71
  children: [loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressSpinner["default"], {
72
+ "aria-hidden": true,
72
73
  size: 24,
73
74
  className: VARIANT_SPINNER_CLASSNAMES[variant]
74
75
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
76
+ "aria-hidden": true,
75
77
  className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["shrink-0 text-white rounded-full p-1"]))), VARIANT_CLASSNAMES[variant]),
76
78
  size: 24
77
79
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
@@ -1,13 +1,13 @@
1
- import type { ReactNode } from "react";
1
+ import type { ReactNode, ReactPortal } from "react";
2
2
  import type { IconComponentType } from "../Icons";
3
3
  import type { ColorVariant } from "../types";
4
4
  export declare type Notification = {
5
5
  /** Defines an unique ID for the `Toast`. */
6
6
  id: string;
7
- /** Defines the title for the `Toast`. */
8
- title: string;
7
+ /** Defines the title for the `Toast`. Will be rendered in a heading element. */
8
+ title: Exclude<ReactNode, ReactPortal>;
9
9
  /** Defines the content for the `Toast`. */
10
- content?: ReactNode;
10
+ content?: Exclude<ReactNode, ReactPortal>;
11
11
  /** Defines the icon for the `Toast`. */
12
12
  icon?: IconComponentType;
13
13
  /**
package/cjs/index.d.ts CHANGED
@@ -20,7 +20,6 @@ export * from "./Dropdown";
20
20
  export * from "./Dropzone";
21
21
  export * from "./EmptyState";
22
22
  export * from "./Field";
23
- export * from "./Toast";
24
23
  export * from "./FlexGrid";
25
24
  export * from "./HelpUnderline";
26
25
  export * from "./Icons";
@@ -42,11 +41,13 @@ export * from "./ScrollIndicator";
42
41
  export * from "./Select";
43
42
  export * from "./Separator";
44
43
  export * from "./Sidebar";
44
+ export * from "./Stepper";
45
45
  export * from "./Switch";
46
46
  export * from "./Tables";
47
47
  export * from "./Tabs";
48
48
  export * from "./Tag";
49
49
  export * from "./TextArea";
50
50
  export * from "./TextWrap";
51
+ export * from "./Toast";
51
52
  export * from "./Toggle";
52
53
  export * from "./Tooltip";
package/cjs/index.js CHANGED
@@ -254,18 +254,6 @@ Object.keys(_Field).forEach(function (key) {
254
254
  }
255
255
  });
256
256
  });
257
- var _Toast = require("./Toast");
258
- Object.keys(_Toast).forEach(function (key) {
259
- if (key === "default" || key === "__esModule") return;
260
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
261
- if (key in exports && exports[key] === _Toast[key]) return;
262
- Object.defineProperty(exports, key, {
263
- enumerable: true,
264
- get: function get() {
265
- return _Toast[key];
266
- }
267
- });
268
- });
269
257
  var _FlexGrid = require("./FlexGrid");
270
258
  Object.keys(_FlexGrid).forEach(function (key) {
271
259
  if (key === "default" || key === "__esModule") return;
@@ -518,6 +506,18 @@ Object.keys(_Sidebar).forEach(function (key) {
518
506
  }
519
507
  });
520
508
  });
509
+ var _Stepper = require("./Stepper");
510
+ Object.keys(_Stepper).forEach(function (key) {
511
+ if (key === "default" || key === "__esModule") return;
512
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
513
+ if (key in exports && exports[key] === _Stepper[key]) return;
514
+ Object.defineProperty(exports, key, {
515
+ enumerable: true,
516
+ get: function get() {
517
+ return _Stepper[key];
518
+ }
519
+ });
520
+ });
521
521
  var _Switch = require("./Switch");
522
522
  Object.keys(_Switch).forEach(function (key) {
523
523
  if (key === "default" || key === "__esModule") return;
@@ -590,6 +590,18 @@ Object.keys(_TextWrap).forEach(function (key) {
590
590
  }
591
591
  });
592
592
  });
593
+ var _Toast = require("./Toast");
594
+ Object.keys(_Toast).forEach(function (key) {
595
+ if (key === "default" || key === "__esModule") return;
596
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
597
+ if (key in exports && exports[key] === _Toast[key]) return;
598
+ Object.defineProperty(exports, key, {
599
+ enumerable: true,
600
+ get: function get() {
601
+ return _Toast[key];
602
+ }
603
+ });
604
+ });
593
605
  var _Toggle = require("./Toggle");
594
606
  Object.keys(_Toggle).forEach(function (key) {
595
607
  if (key === "default" || key === "__esModule") return;
@@ -1,6 +1,6 @@
1
1
  import type { FC, HTMLAttributes } from "react";
2
2
  import type { Notification } from "./types";
3
3
  export declare type ToastLocale = Notification["locale"];
4
- export declare type ToastProps = Omit<Notification, "id" | "content" | "autoDismissAfter"> & HTMLAttributes<HTMLElement>;
4
+ export declare type ToastProps = Omit<Notification, "id" | "content" | "autoDismissAfter"> & Omit<HTMLAttributes<HTMLElement>, "title">;
5
5
  export declare const Toast: FC<ToastProps>;
6
6
  export default Toast;
@@ -60,9 +60,11 @@ export var Toast = function Toast(_ref) {
60
60
  children: /*#__PURE__*/_jsxs("div", {
61
61
  className: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["p-4 flex"]))),
62
62
  children: [loading ? /*#__PURE__*/_jsx(ProgressSpinner, {
63
+ "aria-hidden": true,
63
64
  size: 24,
64
65
  className: VARIANT_SPINNER_CLASSNAMES[variant]
65
66
  }) : /*#__PURE__*/_jsx(Icon, {
67
+ "aria-hidden": true,
66
68
  className: cx(stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["shrink-0 text-white rounded-full p-1"]))), VARIANT_CLASSNAMES[variant]),
67
69
  size: 24
68
70
  }), /*#__PURE__*/_jsxs("div", {
@@ -1,13 +1,13 @@
1
- import type { ReactNode } from "react";
1
+ import type { ReactNode, ReactPortal } from "react";
2
2
  import type { IconComponentType } from "../Icons";
3
3
  import type { ColorVariant } from "../types";
4
4
  export declare type Notification = {
5
5
  /** Defines an unique ID for the `Toast`. */
6
6
  id: string;
7
- /** Defines the title for the `Toast`. */
8
- title: string;
7
+ /** Defines the title for the `Toast`. Will be rendered in a heading element. */
8
+ title: Exclude<ReactNode, ReactPortal>;
9
9
  /** Defines the content for the `Toast`. */
10
- content?: ReactNode;
10
+ content?: Exclude<ReactNode, ReactPortal>;
11
11
  /** Defines the icon for the `Toast`. */
12
12
  icon?: IconComponentType;
13
13
  /**
package/esm/index.d.ts CHANGED
@@ -20,7 +20,6 @@ export * from "./Dropdown";
20
20
  export * from "./Dropzone";
21
21
  export * from "./EmptyState";
22
22
  export * from "./Field";
23
- export * from "./Toast";
24
23
  export * from "./FlexGrid";
25
24
  export * from "./HelpUnderline";
26
25
  export * from "./Icons";
@@ -42,11 +41,13 @@ export * from "./ScrollIndicator";
42
41
  export * from "./Select";
43
42
  export * from "./Separator";
44
43
  export * from "./Sidebar";
44
+ export * from "./Stepper";
45
45
  export * from "./Switch";
46
46
  export * from "./Tables";
47
47
  export * from "./Tabs";
48
48
  export * from "./Tag";
49
49
  export * from "./TextArea";
50
50
  export * from "./TextWrap";
51
+ export * from "./Toast";
51
52
  export * from "./Toggle";
52
53
  export * from "./Tooltip";
package/esm/index.js CHANGED
@@ -20,7 +20,6 @@ export * from "./Dropdown";
20
20
  export * from "./Dropzone";
21
21
  export * from "./EmptyState";
22
22
  export * from "./Field";
23
- export * from "./Toast";
24
23
  export * from "./FlexGrid";
25
24
  export * from "./HelpUnderline";
26
25
  export * from "./Icons";
@@ -42,11 +41,13 @@ export * from "./ScrollIndicator";
42
41
  export * from "./Select";
43
42
  export * from "./Separator";
44
43
  export * from "./Sidebar";
44
+ export * from "./Stepper";
45
45
  export * from "./Switch";
46
46
  export * from "./Tables";
47
47
  export * from "./Tabs";
48
48
  export * from "./Tag";
49
49
  export * from "./TextArea";
50
50
  export * from "./TextWrap";
51
+ export * from "./Toast";
51
52
  export * from "./Toggle";
52
53
  export * from "./Tooltip";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/satellite",
3
- "version": "1.0.0-beta.176",
3
+ "version": "1.0.0-beta.178",
4
4
  "description": "Algolia design system React components",
5
5
  "sideEffects": false,
6
6
  "scripts": {