@cloudtower/eagle 0.26.27 → 0.26.30
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/dist/components/ErrorBoundary/index.d.ts +1 -4
- package/dist/components.css +365 -359
- package/dist/core/ParrotTrans/index.d.ts +4 -0
- package/dist/esm/index.js +12 -6
- package/dist/esm/stats1.html +1 -1
- package/dist/hooks/useParrotTranslation.d.ts +1 -1
- package/dist/spec/base.d.ts +1 -0
- package/dist/style.css +775 -769
- package/dist/umd/index.js +12 -6
- package/dist/umd/stats1.html +1 -1
- package/package.json +7 -6
- package/dist/components/Modal/AsideModal.d.ts +0 -5
- package/dist/components/Modal/ImmersiveModal.d.ts +0 -5
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Namespace, TOptions } from "i18next";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { TransProps } from "react-i18next";
|
|
4
|
+
export declare const ParrotTrans: <Key extends string, Ns extends Namespace = "translation", TOpt extends TOptions = {}, KPrefix = undefined, E = React.HTMLProps<HTMLDivElement>>(props: TransProps<Key, Ns, TOpt, KPrefix, E>) => JSX.Element;
|
package/dist/esm/index.js
CHANGED
|
@@ -3249,7 +3249,7 @@ const Modal = (props) => {
|
|
|
3249
3249
|
confirmText
|
|
3250
3250
|
))) : footer)
|
|
3251
3251
|
}),
|
|
3252
|
-
wizard && typeof wizard === "object" ? /* @__PURE__ */ React__default.createElement(WizardBody, null, /* @__PURE__ */ React__default.createElement("div", { className: "left" }, /* @__PURE__ */ React__default.createElement(
|
|
3252
|
+
wizard && typeof wizard === "object" ? /* @__PURE__ */ React__default.createElement(WizardBody, null, /* @__PURE__ */ React__default.createElement("div", { className: "left" }, wizard.hideLeft ? null : /* @__PURE__ */ React__default.createElement(
|
|
3253
3253
|
Steps,
|
|
3254
3254
|
{
|
|
3255
3255
|
current: wizard.step,
|
|
@@ -5194,7 +5194,8 @@ const Tag = (_a) => {
|
|
|
5194
5194
|
};
|
|
5195
5195
|
Tag.SplitTag = SplitTag;
|
|
5196
5196
|
|
|
5197
|
-
const
|
|
5197
|
+
const timeWrapper = "t19ustft";
|
|
5198
|
+
const Time = props => {
|
|
5198
5199
|
const {
|
|
5199
5200
|
className,
|
|
5200
5201
|
date,
|
|
@@ -5202,13 +5203,18 @@ const Time = (props) => {
|
|
|
5202
5203
|
timeTemplate = "HH:mm",
|
|
5203
5204
|
plainText
|
|
5204
5205
|
} = props;
|
|
5205
|
-
if (!date)
|
|
5206
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, "-");
|
|
5206
|
+
if (!date) return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, "-");
|
|
5207
5207
|
const time = dayjs(date);
|
|
5208
5208
|
if (plainText) {
|
|
5209
|
-
return /* @__PURE__ */
|
|
5209
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, dateTemplate !== null && time.format(dateTemplate), " ", timeTemplate !== null && time.format(timeTemplate));
|
|
5210
5210
|
}
|
|
5211
|
-
return /* @__PURE__ */
|
|
5211
|
+
return /* @__PURE__ */React__default.createElement("span", {
|
|
5212
|
+
className: cs(`time-wrapper`, timeWrapper, className)
|
|
5213
|
+
}, dateTemplate !== null && /* @__PURE__ */React__default.createElement("span", {
|
|
5214
|
+
className: "date"
|
|
5215
|
+
}, time.format(dateTemplate)), timeTemplate !== null && /* @__PURE__ */React__default.createElement("span", {
|
|
5216
|
+
className: "time"
|
|
5217
|
+
}, time.format(timeTemplate)));
|
|
5212
5218
|
};
|
|
5213
5219
|
|
|
5214
5220
|
const allTimeZones = uniqBy(TimeZones.reduce((sum, zone) => {
|