@liner-fe/prism 3.0.14 → 3.0.16

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.
package/lib/index.d.ts CHANGED
@@ -5,10 +5,9 @@ import * as cva from 'cva';
5
5
  import { VariantProps } from 'cva';
6
6
  import { IconProps, IconComponentType } from '@liner-fe/icon';
7
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
8
- import { ToastProps } from '@radix-ui/react-toast';
8
+ import { Toast, Popover as Popover$1, Tooltip as Tooltip$1, Checkbox as Checkbox$1, RadioGroup, Select as Select$1, Label as Label$1 } from 'radix-ui';
9
9
  import * as _artsy_fresnel_dist_Media from '@artsy/fresnel/dist/Media';
10
10
  import { breakpointOrigin } from '@liner-fe/design-token';
11
- import { Popover as Popover$1, Tooltip as Tooltip$1, Checkbox as Checkbox$1, RadioGroup, Select as Select$1, Label as Label$1 } from 'radix-ui';
12
11
  import * as jotai from 'jotai';
13
12
  import * as PopoverPrimitive from '@radix-ui/react-popover';
14
13
  import { PopoverProps, PopoverPortalProps } from '@radix-ui/react-popover';
@@ -56,7 +55,9 @@ type ButtonProps = DefaultButtonProps;
56
55
  declare const DefaultButton: react.ForwardRefExoticComponent<DefaultButtonProps & react.RefAttributes<HTMLButtonElement>>;
57
56
  declare const Button: react.ForwardRefExoticComponent<DefaultButtonProps & react.RefAttributes<HTMLButtonElement>>;
58
57
 
59
- interface IToastBase extends ToastProps, RefAttributes<HTMLLIElement> {
58
+ type ToastProps$1 = Toast.ToastProps;
59
+
60
+ interface IToastBase extends ToastProps$1, RefAttributes<HTMLLIElement> {
60
61
  toastId: number;
61
62
  message: string;
62
63
  timer: number;
@@ -420,6 +421,7 @@ declare const List: (({ children, className, ...props }: ListRootProps) => react
420
421
  Item: ({ value, text, disabled, icon, onClick }: ItemProps) => react_jsx_runtime.JSX.Element;
421
422
  };
422
423
 
424
+ type ToastProps = Toast.ToastProps;
423
425
  interface ISnackbarBase extends ToastProps {
424
426
  title: string;
425
427
  description?: string;
@@ -443,7 +445,7 @@ interface ISnackbarBasic {
443
445
  interface ISnackbarNavigation {
444
446
  kind: 'navigation';
445
447
  button: {
446
- onClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
448
+ onClick: () => void;
447
449
  };
448
450
  }
449
451
  interface ISnackbarExtended {
package/lib/index.js CHANGED
@@ -373,7 +373,7 @@ var useToast = /* @__PURE__ */ __name(() => {
373
373
  }, "useToast");
374
374
 
375
375
  // src/components/Toast/index.tsx
376
- import { Provider, Root, Title, Viewport } from "@radix-ui/react-toast";
376
+ import { Toast } from "radix-ui";
377
377
 
378
378
  // src/components/Toast/style.module.scss
379
379
  var style_module_default3 = {
@@ -902,6 +902,7 @@ var loading_default = {
902
902
  import { millisecondsInSecond as millisecondsInSecond2 } from "date-fns/constants";
903
903
  import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
904
904
  import { createElement } from "react";
905
+ var { Provider, Root, Title, Viewport } = Toast;
905
906
  var Toaster = /* @__PURE__ */ __name(() => {
906
907
  const list = useAtomValue(toastAtom);
907
908
  return /* @__PURE__ */ jsxs3(Provider, { children: [
@@ -2187,7 +2188,7 @@ var style_module_default14 = {
2187
2188
  };
2188
2189
 
2189
2190
  // src/components/Snackbar/index.tsx
2190
- import { Toast } from "radix-ui";
2191
+ import { Toast as Toast2 } from "radix-ui";
2191
2192
  import { useAtomValue as useAtomValue2, useSetAtom as useSetAtom4 } from "jotai";
2192
2193
 
2193
2194
  // src/hooks/useSnackbar.ts
@@ -2393,7 +2394,7 @@ import { useCallback, useEffect as useEffect3, useRef as useRef3, useState as us
2393
2394
  import { millisecondsInSecond as millisecondsInSecond4 } from "date-fns/constants";
2394
2395
  import { Fragment as Fragment7, jsx as jsx25, jsxs as jsxs12 } from "react/jsx-runtime";
2395
2396
  import { createElement as createElement3 } from "react";
2396
- var { Provider: Provider2, Root: Root2, Viewport: Viewport2 } = Toast;
2397
+ var { Provider: Provider2, Root: Root2, Viewport: Viewport2 } = Toast2;
2397
2398
  var Snackbar = /* @__PURE__ */ __name(() => {
2398
2399
  const list = useAtomValue2(snackbarAtom);
2399
2400
  const rightSnackbars = list.filter((snackbar) => snackbar.position !== "left");
@@ -2455,7 +2456,7 @@ var SingleSnackbar = /* @__PURE__ */ __name((props) => {
2455
2456
  {
2456
2457
  onSwipeEnd: onCloseSnackbar,
2457
2458
  className: clsx18(style_module_default14.Root, style_module_default14.NavigationWrapper),
2458
- onClick: props.onClick,
2459
+ onClick: props.button.onClick,
2459
2460
  open: isOpen,
2460
2461
  children: [
2461
2462
  /* @__PURE__ */ jsxs12("div", { className: clsx18(style_module_default14.Content, style_module_default14.MarginRight12), children: [
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@liner-fe/prism",
3
- "version": "3.0.14",
3
+ "version": "3.0.16",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "dependencies": {
7
7
  "@artsy/fresnel": "^7.1.4",
8
8
  "@liner-fe/cdn": "^1.0.8",
9
9
  "@radix-ui/react-popover": "^1.1.15",
10
- "@radix-ui/react-toast": "^1.2.15",
11
10
  "clsx": "^2.1.1",
12
11
  "cva": "beta",
13
12
  "date-fns": "^4.1.0",
@@ -15,11 +14,11 @@
15
14
  "radix-ui": "^1.4.3",
16
15
  "react": "^19.1.0",
17
16
  "react-dom": "^19.1.0",
18
- "jotai": "^2.11.0",
17
+ "jotai": "2.18.0",
19
18
  "@liner-fe/design-token": "^3.0.2",
20
19
  "@liner-fe/design-token-primitive": "^0.2.47",
21
- "@liner-fe/illust": "^1.0.0",
22
- "@liner-fe/icon": "^2.0.5"
20
+ "@liner-fe/icon": "^2.0.6",
21
+ "@liner-fe/illust": "^1.0.1"
23
22
  },
24
23
  "devDependencies": {
25
24
  "@chromatic-com/storybook": "^1.5.0",