@cloudtower/eagle 0.31.9 → 0.32.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudtower/eagle",
3
- "version": "0.31.9",
3
+ "version": "0.32.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "sync:color": "node tools/fetch-figma-color.js"
28
28
  },
29
29
  "dependencies": {
30
- "@cloudtower/icons-react": "^0.31.9",
31
- "@cloudtower/parrot": "^0.31.9",
30
+ "@cloudtower/icons-react": "^0.32.0",
31
+ "@cloudtower/parrot": "^0.32.0",
32
32
  "@cloudtower/rc-notification": "^4.6.1",
33
33
  "@linaria/core": "^4.2.2",
34
34
  "@linaria/react": "^4.3.0",
@@ -112,5 +112,5 @@
112
112
  "vite": "^4.5.1",
113
113
  "vitest": "^0.24.1"
114
114
  },
115
- "gitHead": "2c0a4ea8a12e9c520a1389ea062ea7c70a6ab3c7"
115
+ "gitHead": "9f9a624ec763c316c6b870b0a66dabfb7438aaaa"
116
116
  }
@@ -1,45 +0,0 @@
1
- 'use strict';
2
-
3
- var core = require('@linaria/core');
4
- var index = require('../Empty/index.js');
5
- var isEmpty = require('../../utils/isEmpty.js');
6
- var tower = require('../../utils/tower.js');
7
- var React = require('react');
8
- var index$1 = require('../Styled/index.js');
9
-
10
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
-
12
- var React__default = /*#__PURE__*/_interopDefault(React);
13
-
14
- var __defProp = Object.defineProperty;
15
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
16
- var __hasOwnProp = Object.prototype.hasOwnProperty;
17
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
18
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
19
- var __spreadValues = (a, b) => {
20
- for (var prop in b || (b = {}))
21
- if (__hasOwnProp.call(b, prop))
22
- __defNormalProp(a, prop, b[prop]);
23
- if (__getOwnPropSymbols)
24
- for (var prop of __getOwnPropSymbols(b)) {
25
- if (__propIsEnum.call(b, prop))
26
- __defNormalProp(a, prop, b[prop]);
27
- }
28
- return a;
29
- };
30
- const BytePerSecond = ({
31
- rawValue,
32
- decimals,
33
- valueClassName,
34
- unitClassName,
35
- emptyProps
36
- }) => {
37
- if (isEmpty(rawValue)) {
38
- return /* @__PURE__ */ React__default.default.createElement(index, __spreadValues({}, emptyProps));
39
- }
40
- const { value, unit } = tower.formatBytePerSecond(rawValue, decimals);
41
- return /* @__PURE__ */ React__default.default.createElement("span", null, /* @__PURE__ */ React__default.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.default.createElement("span", { className: core.cx("unit", index$1.UnitStyle, unitClassName) }, ` ${unit}`));
42
- };
43
- var BytePerSecond$1 = BytePerSecond;
44
-
45
- module.exports = BytePerSecond$1;
@@ -1,39 +0,0 @@
1
- import { cx } from '@linaria/core';
2
- import Empty from '../Empty/index.js';
3
- import isEmpty from '../../utils/isEmpty.js';
4
- import { formatBytePerSecond } from '../../utils/tower.js';
5
- import React__default from 'react';
6
- import { UnitStyle } from '../Styled/index.js';
7
-
8
- var __defProp = Object.defineProperty;
9
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
10
- var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
- var __spreadValues = (a, b) => {
14
- for (var prop in b || (b = {}))
15
- if (__hasOwnProp.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- if (__getOwnPropSymbols)
18
- for (var prop of __getOwnPropSymbols(b)) {
19
- if (__propIsEnum.call(b, prop))
20
- __defNormalProp(a, prop, b[prop]);
21
- }
22
- return a;
23
- };
24
- const BytePerSecond = ({
25
- rawValue,
26
- decimals,
27
- valueClassName,
28
- unitClassName,
29
- emptyProps
30
- }) => {
31
- if (isEmpty(rawValue)) {
32
- return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues({}, emptyProps));
33
- }
34
- const { value, unit } = formatBytePerSecond(rawValue, decimals);
35
- return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", UnitStyle, unitClassName) }, ` ${unit}`));
36
- };
37
- var BytePerSecond$1 = BytePerSecond;
38
-
39
- export { BytePerSecond$1 as default };
@@ -1,3 +0,0 @@
1
- import { UnitFn } from "../Units/units.type";
2
- declare const BytePerSecond: UnitFn;
3
- export default BytePerSecond;
@@ -1,17 +0,0 @@
1
- import React from "react";
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
3
- emptyProps?: import("../../../src").IEmptyProps | undefined;
4
- } & {
5
- children?: React.ReactNode;
6
- }>;
7
- export default _default;
8
- export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
9
- emptyProps?: import("../../../src").IEmptyProps | undefined;
10
- } & {
11
- children?: React.ReactNode;
12
- }>;
13
- export declare const Empty: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
14
- emptyProps?: import("../../../src").IEmptyProps | undefined;
15
- } & {
16
- children?: React.ReactNode;
17
- }>;