@cloudtower/eagle 0.33.35 → 0.33.37

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.
Files changed (32) hide show
  1. package/dist/cjs/core/MediumDialog/MediumDialog.js +54 -0
  2. package/dist/cjs/core/SmallDialog/SmallDialog.js +144 -0
  3. package/dist/cjs/core/SmallDialog/SmallDialog.style.js +11 -0
  4. package/dist/cjs/coreX/Dialogs/DeleteDialog/DeleteDialog.js +5 -3
  5. package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.js +1 -1
  6. package/dist/cjs/index.js +9 -2
  7. package/dist/cjs/stats1.html +1 -1
  8. package/dist/components.css +30222 -1887
  9. package/dist/esm/core/MediumDialog/MediumDialog.js +48 -0
  10. package/dist/esm/core/SmallDialog/SmallDialog.js +137 -0
  11. package/dist/esm/core/SmallDialog/SmallDialog.style.js +6 -0
  12. package/dist/esm/coreX/Dialogs/DeleteDialog/DeleteDialog.js +5 -3
  13. package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.js +1 -1
  14. package/dist/esm/index.js +3 -1
  15. package/dist/esm/stats1.html +1 -1
  16. package/dist/linaria.merged.scss +2336 -2268
  17. package/dist/src/core/MediumDialog/MediumDialog.d.ts +3 -0
  18. package/dist/src/core/MediumDialog/index.d.ts +1 -0
  19. package/dist/src/core/SmallDialog/SmallDialog.d.ts +3 -0
  20. package/dist/src/core/SmallDialog/SmallDialog.style.d.ts +4 -0
  21. package/dist/src/{coreX/Dialogs/SmallDialog.d.ts → core/SmallDialog/SmallDialog.type.d.ts} +12 -4
  22. package/dist/src/core/SmallDialog/index.d.ts +3 -0
  23. package/dist/src/core/index.d.ts +2 -0
  24. package/dist/src/coreX/Dialogs/DeleteDialog/DeleteDialog.type.d.ts +2 -0
  25. package/dist/src/coreX/Dialogs/index.d.ts +0 -1
  26. package/dist/stories/docs/core/MediumDialog.stories.d.ts +35 -0
  27. package/dist/stories/docs/core/SmallDialog.stories.d.ts +37 -0
  28. package/dist/stories/docs/coreX/Dialogs/DeleteDialog.stories.d.ts +5 -0
  29. package/dist/style.css +1839 -1770
  30. package/package.json +4 -4
  31. package/dist/cjs/coreX/Dialogs/SmallDialog.js +0 -86
  32. package/dist/esm/coreX/Dialogs/SmallDialog.js +0 -80
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudtower/eagle",
3
- "version": "0.33.35",
3
+ "version": "0.33.37",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -26,8 +26,8 @@
26
26
  "sync:color": "node tools/fetch-figma-color.js"
27
27
  },
28
28
  "dependencies": {
29
- "@cloudtower/icons-react": "^0.33.35",
30
- "@cloudtower/parrot": "^0.33.35",
29
+ "@cloudtower/icons-react": "^0.33.37",
30
+ "@cloudtower/parrot": "^0.33.37",
31
31
  "@cloudtower/rc-notification": "^4.6.1",
32
32
  "@linaria/core": "^4.2.2",
33
33
  "@linaria/react": "^4.3.0",
@@ -113,5 +113,5 @@
113
113
  "vite": "^4.5.1",
114
114
  "vitest": "^3.1.1"
115
115
  },
116
- "gitHead": "9fa2de704724591638fe7596e2fc12afc039ac9a"
116
+ "gitHead": "ced6e8956d24820700ad9ceb6d93011ecc16f23f"
117
117
  }
@@ -1,86 +0,0 @@
1
- 'use strict';
2
-
3
- var icons = require('@ant-design/icons');
4
- var core = require('@linaria/core');
5
- var index = require('../../core/KitStoreProvider/index.js');
6
- var antd = require('antd');
7
- var React = require('react');
8
- var index$2 = require('../../core/Button/index.js');
9
- var index$1 = require('../../core/Typo/index.js');
10
-
11
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
12
-
13
- var React__default = /*#__PURE__*/_interopDefault(React);
14
-
15
- var __defProp = Object.defineProperty;
16
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
17
- var __hasOwnProp = Object.prototype.hasOwnProperty;
18
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
19
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
20
- enumerable: true,
21
- configurable: true,
22
- writable: true,
23
- value
24
- }) : obj[key] = value;
25
- var __spreadValues = (a, b) => {
26
- for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
27
- if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
28
- if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
29
- }
30
- return a;
31
- };
32
- const DialogStyle = "E_d11hhzf9";
33
- const FooterStyle = "E_f1g147n6";
34
- const SmallDialog = ({
35
- title,
36
- cancelText = "\u5173\u95ED",
37
- okText = "\u786E\u5B9A",
38
- showOk = true,
39
- onOk,
40
- onCancel,
41
- maskClosable = true,
42
- closable = true,
43
- className,
44
- footerClassName,
45
- okButtonProps,
46
- cancelButtonProps,
47
- children
48
- }) => {
49
- const popModal = index.usePopModal();
50
- const handleClose = () => {
51
- if (onCancel) {
52
- onCancel(popModal);
53
- } else {
54
- popModal();
55
- }
56
- };
57
- const handleOk = () => {
58
- if (onOk) {
59
- onOk(popModal);
60
- } else {
61
- popModal();
62
- }
63
- };
64
- return /* @__PURE__ */React__default.default.createElement(antd.Modal, {
65
- visible: true,
66
- title: /* @__PURE__ */React__default.default.createElement("span", {
67
- className: index$1.Typo.Display.d2_bold_title
68
- }, title),
69
- footer: /* @__PURE__ */React__default.default.createElement("div", {
70
- className: core.cx(FooterStyle, footerClassName)
71
- }, /* @__PURE__ */React__default.default.createElement(index$2, __spreadValues({
72
- type: "ghost",
73
- onClick: handleClose
74
- }, cancelButtonProps), cancelText), showOk && /* @__PURE__ */React__default.default.createElement(index$2, __spreadValues({
75
- type: "primary",
76
- onClick: handleOk
77
- }, okButtonProps), okText)),
78
- onCancel: handleClose,
79
- closable,
80
- maskClosable,
81
- className: core.cx(DialogStyle, className),
82
- closeIcon: /* @__PURE__ */React__default.default.createElement(icons.CloseCircleFilled, null)
83
- }, children);
84
- };
85
-
86
- exports.SmallDialog = SmallDialog;
@@ -1,80 +0,0 @@
1
- import { CloseCircleFilled } from '@ant-design/icons';
2
- import { cx } from '@linaria/core';
3
- import { usePopModal } from '../../core/KitStoreProvider/index.js';
4
- import { Modal } from 'antd';
5
- import React__default from 'react';
6
- import Button from '../../core/Button/index.js';
7
- import { Typo } from '../../core/Typo/index.js';
8
-
9
- var __defProp = Object.defineProperty;
10
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
11
- var __hasOwnProp = Object.prototype.hasOwnProperty;
12
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
13
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
14
- enumerable: true,
15
- configurable: true,
16
- writable: true,
17
- value
18
- }) : obj[key] = value;
19
- var __spreadValues = (a, b) => {
20
- for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
21
- if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
22
- if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
23
- }
24
- return a;
25
- };
26
- const DialogStyle = "E_d11hhzf9";
27
- const FooterStyle = "E_f1g147n6";
28
- const SmallDialog = ({
29
- title,
30
- cancelText = "\u5173\u95ED",
31
- okText = "\u786E\u5B9A",
32
- showOk = true,
33
- onOk,
34
- onCancel,
35
- maskClosable = true,
36
- closable = true,
37
- className,
38
- footerClassName,
39
- okButtonProps,
40
- cancelButtonProps,
41
- children
42
- }) => {
43
- const popModal = usePopModal();
44
- const handleClose = () => {
45
- if (onCancel) {
46
- onCancel(popModal);
47
- } else {
48
- popModal();
49
- }
50
- };
51
- const handleOk = () => {
52
- if (onOk) {
53
- onOk(popModal);
54
- } else {
55
- popModal();
56
- }
57
- };
58
- return /* @__PURE__ */React__default.createElement(Modal, {
59
- visible: true,
60
- title: /* @__PURE__ */React__default.createElement("span", {
61
- className: Typo.Display.d2_bold_title
62
- }, title),
63
- footer: /* @__PURE__ */React__default.createElement("div", {
64
- className: cx(FooterStyle, footerClassName)
65
- }, /* @__PURE__ */React__default.createElement(Button, __spreadValues({
66
- type: "ghost",
67
- onClick: handleClose
68
- }, cancelButtonProps), cancelText), showOk && /* @__PURE__ */React__default.createElement(Button, __spreadValues({
69
- type: "primary",
70
- onClick: handleOk
71
- }, okButtonProps), okText)),
72
- onCancel: handleClose,
73
- closable,
74
- maskClosable,
75
- className: cx(DialogStyle, className),
76
- closeIcon: /* @__PURE__ */React__default.createElement(CloseCircleFilled, null)
77
- }, children);
78
- };
79
-
80
- export { SmallDialog };