@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.
@@ -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,2 @@
1
+ export { default as Pagination } from './Pagination';
2
+ export type { PaginationProps, PaginationItemProps } from './Pagination';
@@ -0,0 +1,4 @@
1
+ import { default as t } from "./Pagination.js";
2
+ export {
3
+ t as Pagination
4
+ };
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ export { default as TableResponsiveText } from './TableResponsiveText';
2
+ export type { TableResponsiveTextProps } from './TableResponsiveText';
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./TableResponsiveText.js";
2
+ export {
3
+ o as TableResponsiveText
4
+ };
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 B } from "./utils/hooks/useOutlet.js";
11
- import { CLIPBOARD_TITLE_APPEARANCE as L, useClipboardComponent as S } from "./utils/hooks/useClipboardComponent.js";
12
- import { formatDate as R } from "./utils/formatDate.js";
13
- import { formatCurrency as k } from "./utils/formatCurrency.js";
14
- import { identity as b, invoke as O, noop as P, returnFalse as F, returnTrue as _ } from "./utils/functional.js";
15
- import { Linkify as h, defaultLinkReplacer as U, defaultLinkReplacerx as z, isExternalUrl as w, linkify as M, linkifyx as N, matchLinkNodes as G, matchLinks as V } from "./utils/links.js";
16
- import { clamp as Y, clamp01 as H, minmax as W } from "./utils/math.js";
17
- import { isFalseString as J, isTrueString as Q, normalizeSlashes as Z, replaceRange as j, splitByIndices as q, unicodeCharAt as $ } from "./utils/string.js";
18
- import { debounce as ro, throttle as eo } from "./utils/execution.js";
19
- import { getColor as ao } from "./utils/color.js";
20
- import { ui as mo } from "./utils/ui/ui.js";
21
- import { BorderRadiusEnum as xo, ColorEnum as no, MediaQueryEnum as lo, OffsetEnum as uo, TextSizeEnum as so, ZIndexEnum as io } from "./utils/ui/ui.types.js";
22
- import { isInEnum as To } from "./utils/enum.js";
23
- import { default as Co } from "./components/IconButton/IconButton.js";
24
- import { Accordion as Bo, AccordionContent as Eo, AccordionHeader as Lo, AccordionItem as So, AccordionTrigger as yo } from "./components/Accordion/Accordion.js";
25
- import { default as Do } from "./components/ClipboardButton/ClipboardButton.js";
26
- import { default as Ao } from "./components/Checkbox/Checkbox.js";
27
- import { default as Oo, ButtonContent as Po, getButtonClassName as Fo } from "./components/Button/Button.js";
28
- import { ButtonBar as vo } from "./components/Button/ButtonBar.js";
29
- import { LinkButton as Uo } from "./components/Button/LinkButton.js";
30
- import { BurgerMenuButton as wo } from "./components/BurgerMenu/BurgerMenuButton.js";
31
- import { BurgerMenu as No } from "./components/BurgerMenu/BurgerMenu.js";
32
- import { default as Vo, getLinkClassName as Ko, getLinkStyles as Yo } from "./components/Link/Link.js";
33
- import { default as Wo } from "./components/Link/ButtonLink.js";
34
- import { Avatar as Jo } from "./components/Avatar/Avatar.js";
35
- import { BACKDROP_OUTLET_ID as Zo, default as jo } from "./components/BackdropPortal/BackdropPortal.js";
36
- import { Badge as $o } from "./components/Badge/Badge.js";
37
- import { default as rr } from "./components/ControlBox/ControlBox.js";
38
- import { default as tr } from "./components/CountryFlag/CountryFlag.js";
39
- import { default as fr } from "./components/Decorate/Decorate.js";
40
- import { Dot as pr } from "./components/Dot/Dot.js";
41
- import { FLYOUT_OUTLET_ID as nr, Flyout as lr } from "./components/Flyout/Flyout.js";
42
- import { Logos as sr } from "./components/Logos/index.js";
43
- import { I as dr } from "./cfxIcons-B9nzO6TW.js";
44
- import { I as Tr } from "./cfxIconsBig-BLJjMT-Y.js";
45
- import { Icon as Cr } from "./components/Icon/Icon.js";
46
- import { IconBig as Br } from "./components/IconBig/IconBig.js";
47
- import { Indicator as Lr } from "./components/Indicator/Indicator.js";
48
- import { default as yr } from "./components/InfoPanel/InfoPanel.js";
49
- import { default as Dr } from "./components/Input/Input.js";
50
- import { default as Ar } from "./components/Input/RichInput.js";
51
- import { Interactive as Or } from "./components/Interactive/Interactive.js";
52
- import { Island as Fr, IslandCorner as _r } from "./components/Island/Island.js";
53
- import { default as hr } from "./components/Box/Box.js";
54
- import { stringPropFormater as zr } from "./components/RSC/Box/Box.js";
55
- import { Center as Mr } from "./components/Layout/Center/Center.js";
56
- import { default as Gr } from "./components/Flex/Flex.js";
57
- import { FlexAlignItemsEnum as Kr, FlexDirectionEnum as Yr, FlexJustifyContentEnum as Hr, FlexWrapEnum as Wr } from "./components/RSC/Flex/Flex.types.js";
58
- import { FlexRestricter as Jr } from "./components/RSC/Flex/FlexRestricter.js";
59
- import { Pad as Zr } from "./components/Layout/Pad/Pad.js";
60
- import { Page as qr } from "./components/Layout/Page/Page.js";
61
- import { R as oe } from "./Rail-CHFAf3wJ.js";
62
- import { Scrollable as ee } from "./components/Scrollable/Scrollable.js";
63
- import { VirtualScrollable as ae } from "./components/Scrollable/VirtualScrollable.js";
64
- import { Loaf as me } from "./components/Loaf/Loaf.js";
65
- import { Modal as xe } from "./components/Modal/Modal.js";
66
- import { NavList as le } from "./components/NavList/NavList.js";
67
- import { OVERLAY_OUTLET_ID as se, Overlay as ie } from "./components/Overlay/Overlay.js";
68
- import { Popover as ce } from "./components/Popover/Popover.js";
69
- import { PremiumBadge as Ie } from "./components/PremiumBadge/PremiumBadge.js";
70
- import { Prose as ge } from "./components/Prose/Prose.js";
71
- import { Radio as Ee } from "./components/Radio/Radio.js";
72
- import { Select as Se } from "./components/Select/Select.js";
73
- import { DropdownSelect as Re } from "./components/DropdownSelect/DropdownSelect.js";
74
- import { Separator as ke } from "./components/Separator/Separator.js";
75
- import { Shroud as be } from "./components/Shroud/Shroud.js";
76
- import { Slider as Pe } from "./components/Slider/Slider.js";
77
- import { Spacer as _e } from "./components/Spacer/Spacer.js";
78
- import { Style as he, useContextualStyle as Ue } from "./components/Style/Style.js";
79
- import { default as we } from "./components/Switch/Switch.js";
80
- import { ToggleGroup as Ne } from "./components/ToggleGroup/ToggleGroup.js";
81
- import { Tabular as Ve } from "./components/Tabular/Tabular.js";
82
- import { DataTable as Ye, DataTableHeaderItem as He, DataTableRow as We } from "./components/DataTable/DataTable.js";
83
- import { Table as Je } from "./components/Table/index.js";
84
- import { DEFAULT_TEXT_COLOR as Ze, TEXT_OPACITY_MAP as je, Text as qe, TextBlock as $e, getTextOpacity as ot, textSizeResponsiveValueFormatter as rt } from "./components/Text/Text.js";
85
- import { Textarea as tt } from "./components/Textarea/Textarea.js";
86
- import { TITLE_OUTLET_ID as ft, Title as mt, titleGetCoords as pt, titleGetCssStyle as xt } from "./components/Title/Title.js";
87
- import { default as lt } from "./components/InputDropzone/InputDropzone.js";
88
- import { default as st } from "./components/InputDropzone/ItemPreview.js";
89
- import { default as dt } from "./components/Skeleton/Skeleton.js";
90
- import { OnScreenSensor as Tt } from "./components/OnScreenSensor.js";
91
- import { Symbols as Ct } from "./components/Symbols.js";
92
- import { default as Bt } from "./components/Table/TableIconButton.js";
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
- Bo as Accordion,
95
- Eo as AccordionContent,
96
- Lo as AccordionHeader,
97
- So as AccordionItem,
98
- yo as AccordionTrigger,
99
- Jo as Avatar,
100
- Zo as BACKDROP_OUTLET_ID,
101
- jo as BackdropPortal,
102
- $o as Badge,
103
- xo as BorderRadiusEnum,
104
- hr as Box,
105
- No as BurgerMenu,
106
- wo as BurgerMenuButton,
107
- Oo as Button,
108
- vo as ButtonBar,
109
- Po as ButtonContent,
110
- Wo as ButtonLink,
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
- Mr as Center,
113
- Ao as Checkbox,
114
- Do as ClipboardButton,
115
- no as ColorEnum,
116
- rr as ControlBox,
117
- tr as CountryFlag,
118
- Ze as DEFAULT_TEXT_COLOR,
119
- Ye as DataTable,
120
- He as DataTableHeaderItem,
121
- We as DataTableRow,
122
- fr as Decorate,
123
- pr as Dot,
124
- Re as DropdownSelect,
125
- st as DropzoneItemPreview,
126
- nr as FLYOUT_OUTLET_ID,
127
- Gr as Flex,
128
- Kr as FlexAlignItemsEnum,
129
- Yr as FlexDirectionEnum,
130
- Hr as FlexJustifyContentEnum,
131
- Jr as FlexRestricter,
132
- Wr as FlexWrapEnum,
133
- lr as Flyout,
134
- Cr as Icon,
135
- Br as IconBig,
136
- Co as IconButton,
137
- dr as Icons,
138
- Tr as IconsBig,
139
- Lr as Indicator,
140
- yr as InfoPanel,
141
- Dr as Input,
142
- lt as InputDropzone,
143
- Or as Interactive,
144
- Fr as Island,
145
- _r as IslandCorner,
146
- Vo as Link,
147
- Uo as LinkButton,
148
- h as Linkify,
149
- me as Loaf,
150
- sr as Logos,
151
- lo as MediaQueryEnum,
152
- xe as Modal,
153
- le as NavList,
154
- se as OVERLAY_OUTLET_ID,
155
- uo as OffsetEnum,
156
- Tt as OnScreenSensor,
157
- ie as Overlay,
158
- Zr as Pad,
159
- qr as Page,
160
- ce as Popover,
161
- Ie as PremiumBadge,
162
- ge as Prose,
163
- Ee as Radio,
164
- oe as Rail,
165
- Ar as RichInput,
166
- ee as Scrollable,
167
- Se as Select,
168
- ke as Separator,
169
- be as Shroud,
170
- dt as Skeleton,
171
- Pe as Slider,
172
- _e as Spacer,
173
- he as Style,
174
- we as Switch,
175
- Ct as Symbols,
176
- je as TEXT_OPACITY_MAP,
177
- ft as TITLE_OUTLET_ID,
178
- Je as Table,
179
- Bt as TableIconButton,
180
- Ve as Tabular,
181
- qe as Text,
182
- $e as TextBlock,
183
- so as TextSizeEnum,
184
- tt as Textarea,
185
- mt as Title,
186
- Ne as ToggleGroup,
187
- ae as VirtualScrollable,
188
- io as ZIndexEnum,
189
- Y as clamp,
190
- H as clamp01,
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
- ro as debounce,
193
- U as defaultLinkReplacer,
194
- z as defaultLinkReplacerx,
195
- k as formatCurrency,
196
- R as formatDate,
197
- Fo as getButtonClassName,
198
- ao as getColor,
199
- Ko as getLinkClassName,
200
- Yo as getLinkStyles,
201
- ot as getTextOpacity,
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
- b as identity,
204
- O as invoke,
205
- w as isExternalUrl,
206
- J as isFalseString,
207
- To as isInEnum,
208
- Q as isTrueString,
209
- M as linkify,
210
- N as linkifyx,
211
- G as matchLinkNodes,
212
- V as matchLinks,
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
- W as minmax,
215
- P as noop,
216
- Z as normalizeSlashes,
217
- j as replaceRange,
218
- F as returnFalse,
219
- _ as returnTrue,
220
- q as splitByIndices,
221
- zr as stringPropFormater,
222
- rt as textSizeResponsiveValueFormatter,
223
- eo as throttle,
224
- pt as titleGetCoords,
225
- xt as titleGetCssStyle,
226
- mo as ui,
227
- $ as unicodeCharAt,
228
- S as useClipboardComponent,
229
- Ue as useContextualStyle,
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
- B as useOutlet,
242
+ g as useOutlet,
235
243
  x as usePopoverController,
236
244
  C as useWindowResize
237
245
  };
@@ -1 +1,3 @@
1
1
  export declare function formatDate(date: string | number | null | undefined, noTime?: boolean): string;
2
+ export declare function formatShortDate(date: number | string): string;
3
+ export declare function formatLocaleDate(date: string): string;
@@ -1,13 +1,29 @@
1
- function r(i, e = !1) {
2
- return i ? new Intl.DateTimeFormat(void 0, {
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: e ? void 0 : "numeric",
7
- minute: e ? void 0 : "numeric",
8
- second: e ? void 0 : "numeric"
9
- }).format(new Date(i)) : "N/A";
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
- r as formatDate
26
+ n as formatDate,
27
+ a as formatLocaleDate,
28
+ r as formatShortDate
13
29
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cfx-dev/ui-components",
3
3
  "private": false,
4
- "version": "4.3.4",
4
+ "version": "4.3.6",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "dist/main.js",