@liner-fe/prism 2.6.9 → 2.6.11

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/illust.d.ts CHANGED
@@ -2,8 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ImageProps } from 'next/image';
3
3
  import { Property } from 'csstype';
4
4
 
5
- type LightIllustType = "hero-gift" | "hero-search" | "mini-approve" | "mini-documents-2" | "mini-documents-3" | "mini-documents-4" | "mini-documents-5" | "mini-documents" | "mini-egg" | "mini-empty-message" | "mini-gift" | "mini-graduation_hat" | "mini-not-search" | "mini-not-ticket-2" | "mini-private" | "mini-search" | "mini-ticket" | "mini-window" | "spot-catch_star" | "spot-clap" | "spot-empty" | "spot-gift" | "spot-no_search" | "spot-search-2" | "spot-search-3" | "spot-search-4" | "spot-search-5" | "spot-search" | "spot-sign_up" | "spot-write";
6
- type DarkIllustType = "hero-gift" | "hero-search" | "mini-approve" | "mini-documents-2" | "mini-documents-3" | "mini-documents-4" | "mini-documents-5" | "mini-documents" | "mini-egg" | "mini-empty-message" | "mini-gift" | "mini-graduation_hat" | "mini-not-search" | "mini-not-ticket-2" | "mini-private" | "mini-search" | "mini-ticket" | "mini-window" | "spot-catch_star" | "spot-clap" | "spot-empty" | "spot-gift" | "spot-no_search" | "spot-search-2" | "spot-search-3" | "spot-search-4" | "spot-search-5" | "spot-search" | "spot-sign_up" | "spot-write";
5
+ type LightIllustType = "hero-gift" | "hero-search" | "mini-approve" | "mini-documents-2" | "mini-documents-3" | "mini-documents-4" | "mini-documents-5" | "mini-documents" | "mini-egg" | "mini-empty-message" | "mini-empty" | "mini-gift" | "mini-graduation_hat" | "mini-not-search" | "mini-not-ticket-2" | "mini-private" | "mini-search" | "mini-ticket" | "mini-window" | "spot-catch_star" | "spot-clap" | "spot-empty" | "spot-gift" | "spot-no_search" | "spot-search-2" | "spot-search-3" | "spot-search-4" | "spot-search-5" | "spot-search" | "spot-sign_up" | "spot-write";
6
+ type DarkIllustType = "hero-gift" | "hero-search" | "mini-approve" | "mini-documents-2" | "mini-documents-3" | "mini-documents-4" | "mini-documents-5" | "mini-documents" | "mini-egg" | "mini-empty-message" | "mini-empty" | "mini-gift" | "mini-graduation_hat" | "mini-not-search" | "mini-not-ticket-2" | "mini-private" | "mini-search" | "mini-ticket" | "mini-window" | "spot-catch_star" | "spot-clap" | "spot-empty" | "spot-gift" | "spot-no_search" | "spot-search-2" | "spot-search-3" | "spot-search-4" | "spot-search-5" | "spot-search" | "spot-sign_up" | "spot-write";
7
7
  type IllustType = DarkIllustType | LightIllustType;
8
8
 
9
9
  interface Source<T extends false | true = true> {
package/lib/illust.js CHANGED
@@ -65,7 +65,8 @@ var illustSize = {
65
65
  "spot-search-5": ratio["4:3"],
66
66
  "spot-search": ratio["4:3"],
67
67
  "spot-write": ratio["4:3"],
68
- "spot-gift": ratio["4:3"]
68
+ "spot-gift": ratio["4:3"],
69
+ "mini-empty": ratio["1:1"]
69
70
  };
70
71
 
71
72
  // src/components/Illust/index.tsx
package/lib/index.d.ts CHANGED
@@ -473,7 +473,7 @@ interface ISnackbarBase extends ToastProps {
473
473
  position?: 'left' | 'right';
474
474
  }
475
475
  interface ButtonType {
476
- onClick: () => void;
476
+ onClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
477
477
  text: string;
478
478
  }
479
479
  interface ISnackbarBasic {
@@ -487,7 +487,7 @@ interface ISnackbarBasic {
487
487
  interface ISnackbarNavigation {
488
488
  kind: 'navigation';
489
489
  button: {
490
- onClick: () => void;
490
+ onClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
491
491
  };
492
492
  }
493
493
  interface ISnackbarExtended {
@@ -614,8 +614,8 @@ interface RestrictedButtonProps {
614
614
  onClick?: MouseEventHandler<HTMLButtonElement>;
615
615
  }
616
616
 
617
- type LightIllustType = "hero-gift" | "hero-search" | "mini-approve" | "mini-documents-2" | "mini-documents-3" | "mini-documents-4" | "mini-documents-5" | "mini-documents" | "mini-egg" | "mini-empty-message" | "mini-gift" | "mini-graduation_hat" | "mini-not-search" | "mini-not-ticket-2" | "mini-private" | "mini-search" | "mini-ticket" | "mini-window" | "spot-catch_star" | "spot-clap" | "spot-empty" | "spot-gift" | "spot-no_search" | "spot-search-2" | "spot-search-3" | "spot-search-4" | "spot-search-5" | "spot-search" | "spot-sign_up" | "spot-write";
618
- type DarkIllustType = "hero-gift" | "hero-search" | "mini-approve" | "mini-documents-2" | "mini-documents-3" | "mini-documents-4" | "mini-documents-5" | "mini-documents" | "mini-egg" | "mini-empty-message" | "mini-gift" | "mini-graduation_hat" | "mini-not-search" | "mini-not-ticket-2" | "mini-private" | "mini-search" | "mini-ticket" | "mini-window" | "spot-catch_star" | "spot-clap" | "spot-empty" | "spot-gift" | "spot-no_search" | "spot-search-2" | "spot-search-3" | "spot-search-4" | "spot-search-5" | "spot-search" | "spot-sign_up" | "spot-write";
617
+ type LightIllustType = "hero-gift" | "hero-search" | "mini-approve" | "mini-documents-2" | "mini-documents-3" | "mini-documents-4" | "mini-documents-5" | "mini-documents" | "mini-egg" | "mini-empty-message" | "mini-empty" | "mini-gift" | "mini-graduation_hat" | "mini-not-search" | "mini-not-ticket-2" | "mini-private" | "mini-search" | "mini-ticket" | "mini-window" | "spot-catch_star" | "spot-clap" | "spot-empty" | "spot-gift" | "spot-no_search" | "spot-search-2" | "spot-search-3" | "spot-search-4" | "spot-search-5" | "spot-search" | "spot-sign_up" | "spot-write";
618
+ type DarkIllustType = "hero-gift" | "hero-search" | "mini-approve" | "mini-documents-2" | "mini-documents-3" | "mini-documents-4" | "mini-documents-5" | "mini-documents" | "mini-egg" | "mini-empty-message" | "mini-empty" | "mini-gift" | "mini-graduation_hat" | "mini-not-search" | "mini-not-ticket-2" | "mini-private" | "mini-search" | "mini-ticket" | "mini-window" | "spot-catch_star" | "spot-clap" | "spot-empty" | "spot-gift" | "spot-no_search" | "spot-search-2" | "spot-search-3" | "spot-search-4" | "spot-search-5" | "spot-search" | "spot-sign_up" | "spot-write";
619
619
  type IllustType = DarkIllustType | LightIllustType;
620
620
 
621
621
  interface Source<T extends false | true = true> {
package/lib/index.js CHANGED
@@ -17706,21 +17706,40 @@ var style_module_default19 = {
17706
17706
  // src/components/Snackbar/SnackbarButton/index.tsx
17707
17707
  var import_clsx18 = __toESM(require("clsx"));
17708
17708
  var import_jsx_runtime215 = require("react/jsx-runtime");
17709
- var SnackbarButton = /* @__PURE__ */ __name(({ button, containerStyle }) => {
17709
+ var SnackbarButton = /* @__PURE__ */ __name(({
17710
+ button,
17711
+ containerStyle,
17712
+ onCloseSnackbar
17713
+ }) => {
17710
17714
  if (button?.text || button?.basic) {
17711
17715
  return /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)("div", { className: (0, import_clsx18.default)(style_module_default19.Container, containerStyle), children: [
17712
17716
  button?.text && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
17713
17717
  TextButton,
17714
17718
  {
17715
17719
  size: "s",
17716
- onClick: button.text.onClick,
17720
+ onClick: (e) => {
17721
+ button.text?.onClick?.(e);
17722
+ onCloseSnackbar();
17723
+ },
17717
17724
  level: "inverse-static",
17718
17725
  thick: false,
17719
17726
  className: style_module_default19.button,
17720
17727
  children: button.text.text
17721
17728
  }
17722
17729
  ),
17723
- button?.basic && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Button, { size: "s", onClick: button.basic.onClick, fill: true, level: "static", children: button.basic.text })
17730
+ button?.basic && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
17731
+ Button,
17732
+ {
17733
+ size: "s",
17734
+ onClick: (e) => {
17735
+ button.basic?.onClick?.(e);
17736
+ onCloseSnackbar();
17737
+ },
17738
+ fill: true,
17739
+ level: "static",
17740
+ children: button.basic.text
17741
+ }
17742
+ )
17724
17743
  ] });
17725
17744
  }
17726
17745
  return null;
@@ -17798,7 +17817,14 @@ var SingleSnackbar = /* @__PURE__ */ __name((props) => {
17798
17817
  /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarTitle, { title }),
17799
17818
  /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarDescription, { description })
17800
17819
  ] }),
17801
- /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarButton, { button: props.button, containerStyle: style_module_default17.JustifyEnd }),
17820
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
17821
+ SnackbarButton,
17822
+ {
17823
+ button: props.button,
17824
+ containerStyle: style_module_default17.JustifyEnd,
17825
+ onCloseSnackbar
17826
+ }
17827
+ ),
17802
17828
  /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarClose, { onCloseSnackbar, className: style_module_default17.CloseButton })
17803
17829
  ]
17804
17830
  }
@@ -17812,7 +17838,7 @@ var SingleSnackbar = /* @__PURE__ */ __name((props) => {
17812
17838
  /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarDescription, { description })
17813
17839
  ] })
17814
17840
  ] }),
17815
- /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarButton, { button: props.button }),
17841
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarButton, { button: props.button, onCloseSnackbar }),
17816
17842
  /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarClose, { onCloseSnackbar, className: style_module_default17.CloseButton })
17817
17843
  ] });
17818
17844
  }, "SingleSnackbar");
@@ -21988,7 +22014,8 @@ var illustSize = {
21988
22014
  "spot-search-5": ratio["4:3"],
21989
22015
  "spot-search": ratio["4:3"],
21990
22016
  "spot-write": ratio["4:3"],
21991
- "spot-gift": ratio["4:3"]
22017
+ "spot-gift": ratio["4:3"],
22018
+ "mini-empty": ratio["1:1"]
21992
22019
  };
21993
22020
 
21994
22021
  // src/components/Illust/index.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liner-fe/prism",
3
- "version": "2.6.9",
3
+ "version": "2.6.11",
4
4
  "scripts": {
5
5
  "dev": "next dev",
6
6
  "start": "next start",