@cfx-dev/ui-components 4.3.4 → 4.3.6
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/assets/all_css.css +2 -0
- package/dist/assets/css/Pagination.css +1 -0
- package/dist/assets/css/TableResponsiveText.css +1 -0
- package/dist/components/Pagination/Pagination.d.ts +17 -0
- package/dist/components/Pagination/Pagination.js +117 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/index.js +4 -0
- package/dist/components/TableResponsiveText/TableResponsiveText.d.ts +10 -0
- package/dist/components/TableResponsiveText/TableResponsiveText.js +23 -0
- package/dist/components/TableResponsiveText/index.d.ts +2 -0
- package/dist/components/TableResponsiveText/index.js +4 -0
- package/dist/main.d.ts +6 -2
- package/dist/main.js +224 -216
- package/dist/utils/formatDate.d.ts +2 -0
- package/dist/utils/formatDate.js +23 -7
- package/package.json +1 -1
package/dist/assets/all_css.css
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
@import "./css/Overlay.css";
|
|
37
37
|
@import "./css/Pad.css";
|
|
38
38
|
@import "./css/Page.css";
|
|
39
|
+
@import "./css/Pagination.css";
|
|
39
40
|
@import "./css/Popover.css";
|
|
40
41
|
@import "./css/PopoverShowcase.css";
|
|
41
42
|
@import "./css/PremiumBadge.css";
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
@import "./css/Spacer.css";
|
|
53
54
|
@import "./css/Switch.css";
|
|
54
55
|
@import "./css/Table.css";
|
|
56
|
+
@import "./css/TableResponsiveText.css";
|
|
55
57
|
@import "./css/Tabular.css";
|
|
56
58
|
@import "./css/Text.css";
|
|
57
59
|
@import "./css/Textarea.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.cfxui__Pagination__root__c5025{list-style-type:none;display:flex;justify-content:flex-end;align-items:center;gap:var(--offset-small)}.cfxui__Pagination__button__87663{padding:0;min-width:calc(var(--quant) * 9.25);--color-button-secondary-text: rgba(var(--color-primary), .4);--color-button-secondary-border: rgba(var(--color-primary), .4)}.cfxui__Pagination__button__87663.cfxui__Pagination__current__2cd39{cursor:default;color:rgba(var(--color-bg),1);background-color:rgba(var(--color-primary),1)}.cfxui__Pagination__button__87663.cfxui__Pagination__buttonBack__cb0e5{margin-right:var(--offset-small)}.cfxui__Pagination__button__87663.cfxui__Pagination__buttonForward__4a51e{margin-left:var(--offset-small)}.cfxui__Pagination__ellipsis__9f336{display:flex;align-items:center;justify-content:center;gap:var(--offset-small);padding:0 var(--offset-small)}.cfxui__Pagination__ellipsis__9f336 .cfxui__Pagination__dot__70f66{width:calc(var(--quant) * .5);height:calc(var(--quant) * .5);border-radius:var(--border-radius-pill);background-color:rgba(var(--color-primary),.4)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.cfxui__TableResponsiveText__root__0e257{position:relative;min-width:calc(var(--quant) * 15);z-index:-1}.cfxui__TableResponsiveText__root__0e257 .cfxui__TableResponsiveText__text__78e87{position:absolute;left:0;right:0;overflow:hidden}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface PaginationProps {
|
|
4
|
+
currentPage: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
onPageChange: (page: number) => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface PaginationItemProps {
|
|
10
|
+
page: number;
|
|
11
|
+
isCurrent: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
onPageChange: (page: number) => void;
|
|
14
|
+
}
|
|
15
|
+
declare function Pagination(props: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const _default: React.MemoExoticComponent<typeof Pagination>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsxs as l, jsx as n, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import c from "react";
|
|
3
|
+
import d from "../Button/Button.js";
|
|
4
|
+
import { clsx as m } from "../../utils/clsx.js";
|
|
5
|
+
import "../../utils/links.js";
|
|
6
|
+
const p = "cfxui__Pagination__root__c5025", x = "cfxui__Pagination__button__87663", N = "cfxui__Pagination__current__2cd39", w = "cfxui__Pagination__buttonBack__cb0e5", B = "cfxui__Pagination__buttonForward__4a51e", F = "cfxui__Pagination__ellipsis__9f336", y = "cfxui__Pagination__dot__70f66", a = {
|
|
7
|
+
root: p,
|
|
8
|
+
button: x,
|
|
9
|
+
current: N,
|
|
10
|
+
buttonBack: w,
|
|
11
|
+
buttonForward: B,
|
|
12
|
+
ellipsis: F,
|
|
13
|
+
dot: y
|
|
14
|
+
};
|
|
15
|
+
function h() {
|
|
16
|
+
return /* @__PURE__ */ l("span", { className: a.ellipsis, children: [
|
|
17
|
+
/* @__PURE__ */ n("div", { className: a.dot }),
|
|
18
|
+
/* @__PURE__ */ n("div", { className: a.dot }),
|
|
19
|
+
/* @__PURE__ */ n("div", { className: a.dot })
|
|
20
|
+
] });
|
|
21
|
+
}
|
|
22
|
+
function _(u) {
|
|
23
|
+
const {
|
|
24
|
+
page: t,
|
|
25
|
+
isCurrent: o,
|
|
26
|
+
disabled: e = !1,
|
|
27
|
+
onPageChange: i
|
|
28
|
+
} = u, r = c.useCallback(() => {
|
|
29
|
+
o || i(t);
|
|
30
|
+
}, [t, o, i]);
|
|
31
|
+
return /* @__PURE__ */ n(
|
|
32
|
+
d,
|
|
33
|
+
{
|
|
34
|
+
theme: o ? "default" : "secondary",
|
|
35
|
+
text: t.toString(),
|
|
36
|
+
disabled: e,
|
|
37
|
+
onClick: r,
|
|
38
|
+
className: m(a.button, {
|
|
39
|
+
[a.current]: o
|
|
40
|
+
})
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
function v(u) {
|
|
45
|
+
const {
|
|
46
|
+
currentPage: t,
|
|
47
|
+
totalPages: o,
|
|
48
|
+
onPageChange: e,
|
|
49
|
+
disabled: i = !1
|
|
50
|
+
} = u, r = Math.max(1, t - 2), f = Math.min(o, t + 2), b = c.useMemo(
|
|
51
|
+
() => Array.from({ length: f + 1 - r }, (s, k) => r + k),
|
|
52
|
+
[f, r]
|
|
53
|
+
), P = c.useCallback(() => {
|
|
54
|
+
t !== 1 && e(t - 1);
|
|
55
|
+
}, [t, e]), C = c.useCallback(() => {
|
|
56
|
+
t !== o && e(t + 1);
|
|
57
|
+
}, [t, e, o]);
|
|
58
|
+
return /* @__PURE__ */ l("ul", { className: a.root, children: [
|
|
59
|
+
/* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(
|
|
60
|
+
d,
|
|
61
|
+
{
|
|
62
|
+
theme: "secondary",
|
|
63
|
+
icon: "RightArrow",
|
|
64
|
+
disabled: i,
|
|
65
|
+
onClick: P,
|
|
66
|
+
className: m(a.button, a.buttonBack)
|
|
67
|
+
}
|
|
68
|
+
) }),
|
|
69
|
+
t > 3 && /* @__PURE__ */ l(g, { children: [
|
|
70
|
+
/* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(
|
|
71
|
+
_,
|
|
72
|
+
{
|
|
73
|
+
page: 1,
|
|
74
|
+
isCurrent: !1,
|
|
75
|
+
disabled: i,
|
|
76
|
+
onPageChange: e
|
|
77
|
+
}
|
|
78
|
+
) }),
|
|
79
|
+
t > 4 && /* @__PURE__ */ n(h, {})
|
|
80
|
+
] }),
|
|
81
|
+
b.map((s) => /* @__PURE__ */ n("li", { className: a.listItem, children: /* @__PURE__ */ n(
|
|
82
|
+
_,
|
|
83
|
+
{
|
|
84
|
+
page: s,
|
|
85
|
+
isCurrent: s === t,
|
|
86
|
+
disabled: i,
|
|
87
|
+
onPageChange: e
|
|
88
|
+
}
|
|
89
|
+
) }, s)),
|
|
90
|
+
o - t > 2 && /* @__PURE__ */ l(g, { children: [
|
|
91
|
+
o - t > 3 && /* @__PURE__ */ n(h, {}),
|
|
92
|
+
/* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(
|
|
93
|
+
_,
|
|
94
|
+
{
|
|
95
|
+
page: o,
|
|
96
|
+
isCurrent: !1,
|
|
97
|
+
disabled: i,
|
|
98
|
+
onPageChange: e
|
|
99
|
+
}
|
|
100
|
+
) })
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(
|
|
103
|
+
d,
|
|
104
|
+
{
|
|
105
|
+
theme: "secondary",
|
|
106
|
+
icon: "LeftArrow",
|
|
107
|
+
disabled: i,
|
|
108
|
+
onClick: C,
|
|
109
|
+
className: m(a.button, a.buttonForward)
|
|
110
|
+
}
|
|
111
|
+
) })
|
|
112
|
+
] });
|
|
113
|
+
}
|
|
114
|
+
const D = c.memo(v);
|
|
115
|
+
export {
|
|
116
|
+
D as default
|
|
117
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TextProps } from '../Text';
|
|
3
|
+
|
|
4
|
+
export interface TableResponsiveTextProps extends TextProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
rootClassName?: string;
|
|
7
|
+
}
|
|
8
|
+
declare function TableResponsiveText(props: TableResponsiveTextProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const _default: React.MemoExoticComponent<typeof TableResponsiveText>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import i from "react";
|
|
3
|
+
import l from "../Flex/Flex.js";
|
|
4
|
+
import { clsx as m } from "../../utils/clsx.js";
|
|
5
|
+
import { Text as c } from "../Text/Text.js";
|
|
6
|
+
import "../../utils/ui/ui.js";
|
|
7
|
+
import { Title as a } from "../Title/Title.js";
|
|
8
|
+
const x = "cfxui__TableResponsiveText__root__0e257", _ = "cfxui__TableResponsiveText__text__78e87", o = {
|
|
9
|
+
root: x,
|
|
10
|
+
text: _
|
|
11
|
+
};
|
|
12
|
+
function f(e) {
|
|
13
|
+
const {
|
|
14
|
+
title: r,
|
|
15
|
+
children: s,
|
|
16
|
+
rootClassName: n
|
|
17
|
+
} = e;
|
|
18
|
+
return /* @__PURE__ */ t(a, { title: r ?? s, children: /* @__PURE__ */ t(l, { gap: "normal", centered: !0, className: m(o.root, n), children: /* @__PURE__ */ t(c, { truncated: !0, ...e, className: o.text }) }) });
|
|
19
|
+
}
|
|
20
|
+
const C = i.memo(f);
|
|
21
|
+
export {
|
|
22
|
+
C as default
|
|
23
|
+
};
|
package/dist/main.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export { getValue } from './utils/getValue';
|
|
|
4
4
|
export type { ValueOrGetter } from './utils/getValue';
|
|
5
5
|
export { useInstance, useDynamicRef, useGlobalKeyboardEvent, useKeyboardClose, useWindowResize, useOutlet, usePopoverController, useClipboardComponent, CLIPBOARD_TITLE_APPEARANCE, } from './utils/hooks';
|
|
6
6
|
export type { OutletPosition, UseClipboardProps, } from './utils/hooks';
|
|
7
|
-
export { formatDate } from './utils/formatDate';
|
|
8
|
-
export { formatCurrency } from './utils/formatCurrency';
|
|
7
|
+
export { formatDate, formatLocaleDate, formatShortDate, } from './utils/formatDate';
|
|
8
|
+
export { formatCurrency, FREE_PRICE_TEXT, CURRENCY_MAP, } from './utils/formatCurrency';
|
|
9
9
|
export { noop, returnTrue, returnFalse, identity, invoke, } from './utils/functional';
|
|
10
10
|
export { isExternalUrl, matchLinks, matchLinkNodes, defaultLinkReplacerx, defaultLinkReplacer, linkifyx, linkify, Linkify, } from './utils/links';
|
|
11
11
|
export type { ILinkSubstitute, ILinkMatch, LinkifyProps, } from './utils/links';
|
|
@@ -86,6 +86,8 @@ export { NavList } from './components/NavList';
|
|
|
86
86
|
export type { NavListProps, NavListItem } from './components/NavList';
|
|
87
87
|
export { Overlay, OVERLAY_OUTLET_ID } from './components/Overlay';
|
|
88
88
|
export type { OverlayProps, OverlayBackdropProps, OverlayContentProps, } from './components/Overlay';
|
|
89
|
+
export { Pagination } from './components/Pagination';
|
|
90
|
+
export type { PaginationProps, PaginationItemProps, } from './components/Pagination';
|
|
89
91
|
export { Popover } from './components/Popover';
|
|
90
92
|
export type { PopoverProps, PopoverPosition } from './components/Popover';
|
|
91
93
|
export { PremiumBadge } from './components/PremiumBadge';
|
|
@@ -118,6 +120,8 @@ export { DataTable, DataTableHeaderItem, DataTableRow, } from './components/Data
|
|
|
118
120
|
export type { DataTableHeaderType, DataTableProps, DataTableRowType, DataTableContainerType, DataTableHeaderItemProps, DataTableRowProps, } from './components/DataTable';
|
|
119
121
|
export { Table, TableIconButton, } from './components/Table';
|
|
120
122
|
export type { TableRootProps, TableBodyProps, TableHeaderProps, TableCellProps, TableRowProps, } from './components/Table';
|
|
123
|
+
export { TableResponsiveText } from './components/TableResponsiveText';
|
|
124
|
+
export type { TableResponsiveTextProps } from './components/TableResponsiveText';
|
|
121
125
|
export { TextSizeEnum, Text, TextBlock, getTextOpacity, DEFAULT_TEXT_COLOR, TEXT_OPACITY_MAP, textSizeResponsiveValueFormatter, } from './components/Text';
|
|
122
126
|
export type { TextSize, TextWeight, TextOpacity, TextAs, TextLetterSpacing, TextProps, TextColorProps, TextFamaly, } from './components/Text';
|
|
123
127
|
export { Textarea } from './components/Textarea';
|
package/dist/main.js
CHANGED
|
@@ -7,231 +7,239 @@ import { useDynamicRef as s } from "./utils/hooks/useDynamicRef.js";
|
|
|
7
7
|
import { useGlobalKeyboardEvent as d } from "./utils/hooks/useGlobalKeyboardEvent.js";
|
|
8
8
|
import { useKeyboardClose as T } from "./utils/hooks/useKeyboardClose.js";
|
|
9
9
|
import { useWindowResize as C } from "./utils/hooks/useWindowResize.js";
|
|
10
|
-
import { useOutlet as
|
|
11
|
-
import { CLIPBOARD_TITLE_APPEARANCE as L, useClipboardComponent as
|
|
12
|
-
import { formatDate as
|
|
13
|
-
import {
|
|
14
|
-
import { identity as
|
|
15
|
-
import { Linkify as
|
|
16
|
-
import { clamp as
|
|
17
|
-
import { isFalseString as
|
|
18
|
-
import { debounce as
|
|
19
|
-
import { getColor as
|
|
20
|
-
import { ui as
|
|
21
|
-
import { BorderRadiusEnum as
|
|
22
|
-
import { isInEnum as
|
|
23
|
-
import { default as
|
|
24
|
-
import { Accordion as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { ButtonBar as
|
|
29
|
-
import { LinkButton as
|
|
30
|
-
import { BurgerMenuButton as
|
|
31
|
-
import { BurgerMenu as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { Avatar as
|
|
35
|
-
import { BACKDROP_OUTLET_ID as
|
|
36
|
-
import { Badge as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { Dot as
|
|
41
|
-
import { FLYOUT_OUTLET_ID as
|
|
42
|
-
import { Logos as
|
|
43
|
-
import { I as
|
|
44
|
-
import { I as
|
|
45
|
-
import { Icon as
|
|
46
|
-
import { IconBig as
|
|
47
|
-
import { Indicator as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { Interactive as
|
|
52
|
-
import { Island as
|
|
53
|
-
import { default as
|
|
54
|
-
import { stringPropFormater as
|
|
55
|
-
import { Center as
|
|
56
|
-
import { default as
|
|
57
|
-
import { FlexAlignItemsEnum as
|
|
58
|
-
import { FlexRestricter as
|
|
59
|
-
import { Pad as
|
|
60
|
-
import { Page as
|
|
61
|
-
import { R as
|
|
62
|
-
import { Scrollable as
|
|
63
|
-
import { VirtualScrollable as
|
|
64
|
-
import { Loaf as
|
|
65
|
-
import { Modal as
|
|
66
|
-
import { NavList as
|
|
67
|
-
import { OVERLAY_OUTLET_ID as
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import { default as
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
10
|
+
import { useOutlet as g } from "./utils/hooks/useOutlet.js";
|
|
11
|
+
import { CLIPBOARD_TITLE_APPEARANCE as L, useClipboardComponent as R } from "./utils/hooks/useClipboardComponent.js";
|
|
12
|
+
import { formatDate as y, formatLocaleDate as D, formatShortDate as P } from "./utils/formatDate.js";
|
|
13
|
+
import { CURRENCY_MAP as b, FREE_PRICE_TEXT as k, formatCurrency as _ } from "./utils/formatCurrency.js";
|
|
14
|
+
import { identity as F, invoke as v, noop as h, returnFalse as U, returnTrue as z } from "./utils/functional.js";
|
|
15
|
+
import { Linkify as N, defaultLinkReplacer as w, defaultLinkReplacerx as G, isExternalUrl as V, linkify as Y, linkifyx as K, matchLinkNodes as X, matchLinks as H } from "./utils/links.js";
|
|
16
|
+
import { clamp as J, clamp01 as Q, minmax as Z } from "./utils/math.js";
|
|
17
|
+
import { isFalseString as q, isTrueString as $, normalizeSlashes as oo, replaceRange as ro, splitByIndices as eo, unicodeCharAt as to } from "./utils/string.js";
|
|
18
|
+
import { debounce as fo, throttle as mo } from "./utils/execution.js";
|
|
19
|
+
import { getColor as xo } from "./utils/color.js";
|
|
20
|
+
import { ui as lo } from "./utils/ui/ui.js";
|
|
21
|
+
import { BorderRadiusEnum as so, ColorEnum as io, MediaQueryEnum as co, OffsetEnum as To, TextSizeEnum as Io, ZIndexEnum as Co } from "./utils/ui/ui.types.js";
|
|
22
|
+
import { isInEnum as go } from "./utils/enum.js";
|
|
23
|
+
import { default as Lo } from "./components/IconButton/IconButton.js";
|
|
24
|
+
import { Accordion as So, AccordionContent as yo, AccordionHeader as Do, AccordionItem as Po, AccordionTrigger as Ao } from "./components/Accordion/Accordion.js";
|
|
25
|
+
import { default as ko } from "./components/ClipboardButton/ClipboardButton.js";
|
|
26
|
+
import { default as Oo } from "./components/Checkbox/Checkbox.js";
|
|
27
|
+
import { default as vo, ButtonContent as ho, getButtonClassName as Uo } from "./components/Button/Button.js";
|
|
28
|
+
import { ButtonBar as Mo } from "./components/Button/ButtonBar.js";
|
|
29
|
+
import { LinkButton as wo } from "./components/Button/LinkButton.js";
|
|
30
|
+
import { BurgerMenuButton as Vo } from "./components/BurgerMenu/BurgerMenuButton.js";
|
|
31
|
+
import { BurgerMenu as Ko } from "./components/BurgerMenu/BurgerMenu.js";
|
|
32
|
+
import { default as Ho, getLinkClassName as Wo, getLinkStyles as Jo } from "./components/Link/Link.js";
|
|
33
|
+
import { default as Zo } from "./components/Link/ButtonLink.js";
|
|
34
|
+
import { Avatar as qo } from "./components/Avatar/Avatar.js";
|
|
35
|
+
import { BACKDROP_OUTLET_ID as or, default as rr } from "./components/BackdropPortal/BackdropPortal.js";
|
|
36
|
+
import { Badge as tr } from "./components/Badge/Badge.js";
|
|
37
|
+
import { default as fr } from "./components/ControlBox/ControlBox.js";
|
|
38
|
+
import { default as pr } from "./components/CountryFlag/CountryFlag.js";
|
|
39
|
+
import { default as nr } from "./components/Decorate/Decorate.js";
|
|
40
|
+
import { Dot as ur } from "./components/Dot/Dot.js";
|
|
41
|
+
import { FLYOUT_OUTLET_ID as ir, Flyout as dr } from "./components/Flyout/Flyout.js";
|
|
42
|
+
import { Logos as Tr } from "./components/Logos/index.js";
|
|
43
|
+
import { I as Cr } from "./cfxIcons-B9nzO6TW.js";
|
|
44
|
+
import { I as gr } from "./cfxIconsBig-BLJjMT-Y.js";
|
|
45
|
+
import { Icon as Lr } from "./components/Icon/Icon.js";
|
|
46
|
+
import { IconBig as Sr } from "./components/IconBig/IconBig.js";
|
|
47
|
+
import { Indicator as Dr } from "./components/Indicator/Indicator.js";
|
|
48
|
+
import { default as Ar } from "./components/InfoPanel/InfoPanel.js";
|
|
49
|
+
import { default as kr } from "./components/Input/Input.js";
|
|
50
|
+
import { default as Or } from "./components/Input/RichInput.js";
|
|
51
|
+
import { Interactive as vr } from "./components/Interactive/Interactive.js";
|
|
52
|
+
import { Island as Ur, IslandCorner as zr } from "./components/Island/Island.js";
|
|
53
|
+
import { default as Nr } from "./components/Box/Box.js";
|
|
54
|
+
import { stringPropFormater as Gr } from "./components/RSC/Box/Box.js";
|
|
55
|
+
import { Center as Yr } from "./components/Layout/Center/Center.js";
|
|
56
|
+
import { default as Xr } from "./components/Flex/Flex.js";
|
|
57
|
+
import { FlexAlignItemsEnum as Wr, FlexDirectionEnum as Jr, FlexJustifyContentEnum as Qr, FlexWrapEnum as Zr } from "./components/RSC/Flex/Flex.types.js";
|
|
58
|
+
import { FlexRestricter as qr } from "./components/RSC/Flex/FlexRestricter.js";
|
|
59
|
+
import { Pad as oe } from "./components/Layout/Pad/Pad.js";
|
|
60
|
+
import { Page as ee } from "./components/Layout/Page/Page.js";
|
|
61
|
+
import { R as ae } from "./Rail-CHFAf3wJ.js";
|
|
62
|
+
import { Scrollable as me } from "./components/Scrollable/Scrollable.js";
|
|
63
|
+
import { VirtualScrollable as xe } from "./components/Scrollable/VirtualScrollable.js";
|
|
64
|
+
import { Loaf as le } from "./components/Loaf/Loaf.js";
|
|
65
|
+
import { Modal as se } from "./components/Modal/Modal.js";
|
|
66
|
+
import { NavList as de } from "./components/NavList/NavList.js";
|
|
67
|
+
import { OVERLAY_OUTLET_ID as Te, Overlay as Ie } from "./components/Overlay/Overlay.js";
|
|
68
|
+
import { default as Ee } from "./components/Pagination/Pagination.js";
|
|
69
|
+
import { Popover as Be } from "./components/Popover/Popover.js";
|
|
70
|
+
import { PremiumBadge as Re } from "./components/PremiumBadge/PremiumBadge.js";
|
|
71
|
+
import { Prose as ye } from "./components/Prose/Prose.js";
|
|
72
|
+
import { Radio as Pe } from "./components/Radio/Radio.js";
|
|
73
|
+
import { Select as be } from "./components/Select/Select.js";
|
|
74
|
+
import { DropdownSelect as _e } from "./components/DropdownSelect/DropdownSelect.js";
|
|
75
|
+
import { Separator as Fe } from "./components/Separator/Separator.js";
|
|
76
|
+
import { Shroud as he } from "./components/Shroud/Shroud.js";
|
|
77
|
+
import { Slider as ze } from "./components/Slider/Slider.js";
|
|
78
|
+
import { Spacer as Ne } from "./components/Spacer/Spacer.js";
|
|
79
|
+
import { Style as Ge, useContextualStyle as Ve } from "./components/Style/Style.js";
|
|
80
|
+
import { default as Ke } from "./components/Switch/Switch.js";
|
|
81
|
+
import { ToggleGroup as He } from "./components/ToggleGroup/ToggleGroup.js";
|
|
82
|
+
import { Tabular as Je } from "./components/Tabular/Tabular.js";
|
|
83
|
+
import { DataTable as Ze, DataTableHeaderItem as je, DataTableRow as qe } from "./components/DataTable/DataTable.js";
|
|
84
|
+
import { Table as ot } from "./components/Table/index.js";
|
|
85
|
+
import { default as et } from "./components/TableResponsiveText/TableResponsiveText.js";
|
|
86
|
+
import { DEFAULT_TEXT_COLOR as at, TEXT_OPACITY_MAP as ft, Text as mt, TextBlock as pt, getTextOpacity as xt, textSizeResponsiveValueFormatter as nt } from "./components/Text/Text.js";
|
|
87
|
+
import { Textarea as ut } from "./components/Textarea/Textarea.js";
|
|
88
|
+
import { TITLE_OUTLET_ID as it, Title as dt, titleGetCoords as ct, titleGetCssStyle as Tt } from "./components/Title/Title.js";
|
|
89
|
+
import { default as Ct } from "./components/InputDropzone/InputDropzone.js";
|
|
90
|
+
import { default as gt } from "./components/InputDropzone/ItemPreview.js";
|
|
91
|
+
import { default as Lt } from "./components/Skeleton/Skeleton.js";
|
|
92
|
+
import { OnScreenSensor as St } from "./components/OnScreenSensor.js";
|
|
93
|
+
import { Symbols as Dt } from "./components/Symbols.js";
|
|
94
|
+
import { default as At } from "./components/Table/TableIconButton.js";
|
|
93
95
|
export {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
96
|
+
So as Accordion,
|
|
97
|
+
yo as AccordionContent,
|
|
98
|
+
Do as AccordionHeader,
|
|
99
|
+
Po as AccordionItem,
|
|
100
|
+
Ao as AccordionTrigger,
|
|
101
|
+
qo as Avatar,
|
|
102
|
+
or as BACKDROP_OUTLET_ID,
|
|
103
|
+
rr as BackdropPortal,
|
|
104
|
+
tr as Badge,
|
|
105
|
+
so as BorderRadiusEnum,
|
|
106
|
+
Nr as Box,
|
|
107
|
+
Ko as BurgerMenu,
|
|
108
|
+
Vo as BurgerMenuButton,
|
|
109
|
+
vo as Button,
|
|
110
|
+
Mo as ButtonBar,
|
|
111
|
+
ho as ButtonContent,
|
|
112
|
+
Zo as ButtonLink,
|
|
111
113
|
L as CLIPBOARD_TITLE_APPEARANCE,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
Jr as
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
Dr as
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
se as
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
mt as
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
114
|
+
b as CURRENCY_MAP,
|
|
115
|
+
Yr as Center,
|
|
116
|
+
Oo as Checkbox,
|
|
117
|
+
ko as ClipboardButton,
|
|
118
|
+
io as ColorEnum,
|
|
119
|
+
fr as ControlBox,
|
|
120
|
+
pr as CountryFlag,
|
|
121
|
+
at as DEFAULT_TEXT_COLOR,
|
|
122
|
+
Ze as DataTable,
|
|
123
|
+
je as DataTableHeaderItem,
|
|
124
|
+
qe as DataTableRow,
|
|
125
|
+
nr as Decorate,
|
|
126
|
+
ur as Dot,
|
|
127
|
+
_e as DropdownSelect,
|
|
128
|
+
gt as DropzoneItemPreview,
|
|
129
|
+
ir as FLYOUT_OUTLET_ID,
|
|
130
|
+
k as FREE_PRICE_TEXT,
|
|
131
|
+
Xr as Flex,
|
|
132
|
+
Wr as FlexAlignItemsEnum,
|
|
133
|
+
Jr as FlexDirectionEnum,
|
|
134
|
+
Qr as FlexJustifyContentEnum,
|
|
135
|
+
qr as FlexRestricter,
|
|
136
|
+
Zr as FlexWrapEnum,
|
|
137
|
+
dr as Flyout,
|
|
138
|
+
Lr as Icon,
|
|
139
|
+
Sr as IconBig,
|
|
140
|
+
Lo as IconButton,
|
|
141
|
+
Cr as Icons,
|
|
142
|
+
gr as IconsBig,
|
|
143
|
+
Dr as Indicator,
|
|
144
|
+
Ar as InfoPanel,
|
|
145
|
+
kr as Input,
|
|
146
|
+
Ct as InputDropzone,
|
|
147
|
+
vr as Interactive,
|
|
148
|
+
Ur as Island,
|
|
149
|
+
zr as IslandCorner,
|
|
150
|
+
Ho as Link,
|
|
151
|
+
wo as LinkButton,
|
|
152
|
+
N as Linkify,
|
|
153
|
+
le as Loaf,
|
|
154
|
+
Tr as Logos,
|
|
155
|
+
co as MediaQueryEnum,
|
|
156
|
+
se as Modal,
|
|
157
|
+
de as NavList,
|
|
158
|
+
Te as OVERLAY_OUTLET_ID,
|
|
159
|
+
To as OffsetEnum,
|
|
160
|
+
St as OnScreenSensor,
|
|
161
|
+
Ie as Overlay,
|
|
162
|
+
oe as Pad,
|
|
163
|
+
ee as Page,
|
|
164
|
+
Ee as Pagination,
|
|
165
|
+
Be as Popover,
|
|
166
|
+
Re as PremiumBadge,
|
|
167
|
+
ye as Prose,
|
|
168
|
+
Pe as Radio,
|
|
169
|
+
ae as Rail,
|
|
170
|
+
Or as RichInput,
|
|
171
|
+
me as Scrollable,
|
|
172
|
+
be as Select,
|
|
173
|
+
Fe as Separator,
|
|
174
|
+
he as Shroud,
|
|
175
|
+
Lt as Skeleton,
|
|
176
|
+
ze as Slider,
|
|
177
|
+
Ne as Spacer,
|
|
178
|
+
Ge as Style,
|
|
179
|
+
Ke as Switch,
|
|
180
|
+
Dt as Symbols,
|
|
181
|
+
ft as TEXT_OPACITY_MAP,
|
|
182
|
+
it as TITLE_OUTLET_ID,
|
|
183
|
+
ot as Table,
|
|
184
|
+
At as TableIconButton,
|
|
185
|
+
et as TableResponsiveText,
|
|
186
|
+
Je as Tabular,
|
|
187
|
+
mt as Text,
|
|
188
|
+
pt as TextBlock,
|
|
189
|
+
Io as TextSizeEnum,
|
|
190
|
+
ut as Textarea,
|
|
191
|
+
dt as Title,
|
|
192
|
+
He as ToggleGroup,
|
|
193
|
+
xe as VirtualScrollable,
|
|
194
|
+
Co as ZIndexEnum,
|
|
195
|
+
J as clamp,
|
|
196
|
+
Q as clamp01,
|
|
191
197
|
a as clsx,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
198
|
+
fo as debounce,
|
|
199
|
+
w as defaultLinkReplacer,
|
|
200
|
+
G as defaultLinkReplacerx,
|
|
201
|
+
_ as formatCurrency,
|
|
202
|
+
y as formatDate,
|
|
203
|
+
D as formatLocaleDate,
|
|
204
|
+
P as formatShortDate,
|
|
205
|
+
Uo as getButtonClassName,
|
|
206
|
+
xo as getColor,
|
|
207
|
+
Wo as getLinkClassName,
|
|
208
|
+
Jo as getLinkStyles,
|
|
209
|
+
xt as getTextOpacity,
|
|
202
210
|
m as getValue,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
F as identity,
|
|
212
|
+
v as invoke,
|
|
213
|
+
V as isExternalUrl,
|
|
214
|
+
q as isFalseString,
|
|
215
|
+
go as isInEnum,
|
|
216
|
+
$ as isTrueString,
|
|
217
|
+
Y as linkify,
|
|
218
|
+
K as linkifyx,
|
|
219
|
+
X as matchLinkNodes,
|
|
220
|
+
H as matchLinks,
|
|
213
221
|
e as mergeRefs,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
222
|
+
Z as minmax,
|
|
223
|
+
h as noop,
|
|
224
|
+
oo as normalizeSlashes,
|
|
225
|
+
ro as replaceRange,
|
|
226
|
+
U as returnFalse,
|
|
227
|
+
z as returnTrue,
|
|
228
|
+
eo as splitByIndices,
|
|
229
|
+
Gr as stringPropFormater,
|
|
230
|
+
nt as textSizeResponsiveValueFormatter,
|
|
231
|
+
mo as throttle,
|
|
232
|
+
ct as titleGetCoords,
|
|
233
|
+
Tt as titleGetCssStyle,
|
|
234
|
+
lo as ui,
|
|
235
|
+
to as unicodeCharAt,
|
|
236
|
+
R as useClipboardComponent,
|
|
237
|
+
Ve as useContextualStyle,
|
|
230
238
|
s as useDynamicRef,
|
|
231
239
|
d as useGlobalKeyboardEvent,
|
|
232
240
|
l as useInstance,
|
|
233
241
|
T as useKeyboardClose,
|
|
234
|
-
|
|
242
|
+
g as useOutlet,
|
|
235
243
|
x as usePopoverController,
|
|
236
244
|
C as useWindowResize
|
|
237
245
|
};
|
package/dist/utils/formatDate.js
CHANGED
|
@@ -1,13 +1,29 @@
|
|
|
1
|
-
function
|
|
2
|
-
return
|
|
1
|
+
function n(e, t = !1) {
|
|
2
|
+
return e ? new Intl.DateTimeFormat(void 0, {
|
|
3
3
|
year: "numeric",
|
|
4
4
|
month: "2-digit",
|
|
5
5
|
day: "2-digit",
|
|
6
|
-
hour:
|
|
7
|
-
minute:
|
|
8
|
-
second:
|
|
9
|
-
}).format(new Date(
|
|
6
|
+
hour: t ? void 0 : "numeric",
|
|
7
|
+
minute: t ? void 0 : "numeric",
|
|
8
|
+
second: t ? void 0 : "numeric"
|
|
9
|
+
}).format(new Date(e)) : "N/A";
|
|
10
|
+
}
|
|
11
|
+
function r(e) {
|
|
12
|
+
return new Intl.DateTimeFormat(void 0, {
|
|
13
|
+
year: "numeric",
|
|
14
|
+
month: "long",
|
|
15
|
+
day: "numeric"
|
|
16
|
+
}).format(new Date(e));
|
|
17
|
+
}
|
|
18
|
+
function a(e) {
|
|
19
|
+
return new Date(e).toLocaleDateString("en-US", {
|
|
20
|
+
month: "numeric",
|
|
21
|
+
day: "numeric",
|
|
22
|
+
year: "numeric"
|
|
23
|
+
});
|
|
10
24
|
}
|
|
11
25
|
export {
|
|
12
|
-
|
|
26
|
+
n as formatDate,
|
|
27
|
+
a as formatLocaleDate,
|
|
28
|
+
r as formatShortDate
|
|
13
29
|
};
|